Load Sectors to RAM in qemu
问题 I code a simple program which loads the sector (sector num.2) to the RAM but prints nothing. first, I tried this code for bootsector: org 0x7c00 mov ax, 0x1000 ; ES:BX = 1000:0000 mov es, ax mov bx, 0x00 LoadSectortoMemory: mov al, 0x01 ; Load 1 sectors mov ah, 0x02 ; Load disk data to ES:BX mov cl, 0x02 ; Sector = 2 mov ch, 0x00 ; Cylinder = 0 mov dl, 0x00 ; Drive = 0 mov dh, 0x00 ; Head = 0 int 13h ; Read jc LoadSectortoMemory ; ERROR => Try again jmp 0x1000:0x0000 times 510-($-$$) db 0 dw