ds:si packet address int 13h ah=42h
Posted: Sun May 13, 2012 4:04 pm
Sorry if the answer is obvious, but how would one put the address of the ds:si packet in ds:si using nasm?
The Place to Start for Operating System Developers
http://f.osdev.org/
Thanks, quite helpfulevoex wrote:http://wiki.osdev.org/Segmentation
Code: Select all
1 mov [si], DWORD [packet]
2 mov es:[bx], 0x500
Im not convinced you have.... mov [es:bx], ax stores ax into the location at es:bx; it does not set es nor bx. If you want to set ds and si to contain the address of the packet, you need to know real mode addressing:nm, I figured it out
Code: Select all
mov ax, 0x7c0 ; ds:si -> 0x7c0:packet
mov ds, ax
mov si, packet