diff options
author | Marvin Borner | 2020-06-21 00:44:48 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-21 00:44:48 +0200 |
commit | 0129acce7d9133d8199e2b6e5ac4b33fc799a8c2 (patch) | |
tree | bbdd973b4068c92c4d4ccea9f3e55c3b35e57609 /src/entry.asm | |
parent | e2a264fa749bcf7a332b0d474eb527d988531472 (diff) |
Some fixes
Diffstat (limited to 'src/entry.asm')
-rw-r--r-- | src/entry.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/entry.asm b/src/entry.asm index 65ce0fc..0ee6862 100644 --- a/src/entry.asm +++ b/src/entry.asm @@ -20,7 +20,7 @@ _start: jnz lba_error ; Check disk and move dl - and dl, 0x80 + and dl, 0x80 ; Use disk 0 jz disk_error mov [drive], dl @@ -89,12 +89,12 @@ dw 0xAA55 stage_two: mov si, stage_two_msg - call print + call print ; yay! + ; Verify signature mov ax, [superblock +56] cmp ax, 0xEF53 jne disk_error - mov si, disk_success_msg call print @@ -114,7 +114,7 @@ stage_two: ; TODO: File crawling instead of fixed inode xor bx, bx - mov bx, 0x1200 ; First block (4 * 128) + mov bx, 0x1200 ; First block (4 * 128 + dest) mov cx, [bx + 28] ; Number of sectors for inode lea di, [bx + 40] ; Address of first block pointer |