I am trying to write a string into sector 2 of a hard-disk. It seems to be failing. Here is the code I have at the moment:
xor ax, ax
mov es, ax
mov cx, 1
mov dx, 0080h
mov bx, NameString
mov ax, 0301h
int 13h
NameString db 'string', 0
Thank you guys!
The address of NameString needs to be in es:bx but you're zeroing es. Load es correctly and it will work.