Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I'm wondering what conditions can make int 13h function 0x43 (Extended Write sectors function) to fail. Int 13h here doesn't seem to execute at all. Here's the failing code (I'm using nasm)
mov ax, cs
mov ds, ax
mov es, ax
mov si, DISK_ACCESS_STRUCTURE ; Location of the Disk Access Structure
mov ah, 0x43 ; Extended function for writing sectors
mov dl, 0x80 ; Write to the First Hard drive
int 13h ; Low Level Disk Services
align 8 ; Align the following data on an 8 byte boundary
DISK_ACCESS_STRUCTURE:
DAP_SIZE: db 0x10
DAP_UNUSED: db 0x00
DAP_SECTOR_COUNT: dw 2
DAP_OFFSET: dw KEKEREOS_BINARY
DAP_SEGMENT: dw 0x9C0
DAP_START_SECTOR: dq 0x00000000
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]