diff options
Diffstat (limited to 'src/stage1_functions.asm')
-rw-r--r-- | src/stage1_functions.asm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/stage1_functions.asm b/src/stage1_functions.asm index 854b3b4..6a145f6 100644 --- a/src/stage1_functions.asm +++ b/src/stage1_functions.asm @@ -2,7 +2,7 @@ ; 3 * 512 for bootloader stage2 and the kernel code ; (note: the first sector gets loaded by the BIOS, so ; subtract 1 here!) -NOF_LOAD_SECTORS equ 13 +NOF_LOAD_SECTORS equ 14 ; IN bx: begin of memory area to dump ; IN ax: number of words to dump @@ -64,13 +64,13 @@ print_newline: ; IN si print_string: push ax -_loop_print_string: +.loop: lodsb cmp al, 0 - je print_string_fini + je .fini call print_char - jmp _loop_print_string -print_string_fini: + jmp .loop +.fini: pop ax ret @@ -120,14 +120,14 @@ read_from_disk: int 0x13 - jc read_error + jc .read_error cmp al, NOF_LOAD_SECTORS ; 1 sector read? - jne short_read ; if not, short read + jne .short_read ; if not, short read ret -read_error: +.read_error: mov si, DISK_ERROR call print_string mov dh, 0 @@ -135,7 +135,7 @@ read_error: call print_hex jmp $ -short_read: +.short_read: mov si, SHORT_READ call print_string jmp $ |