Use correct chs order in floppy programs
This commit is contained in:
@@ -14,11 +14,11 @@ mov es, dx ; es = 0
|
|||||||
mov bx, 0xf000 ; store the read sector there
|
mov bx, 0xf000 ; store the read sector there
|
||||||
mov ax, 0x0201 ; read, 1 sector
|
mov ax, 0x0201 ; read, 1 sector
|
||||||
|
|
||||||
; params: head, cylinder, sector, out
|
; params: cylinder, head, sector, out
|
||||||
mov si, [bp+14]
|
mov si, [bp+14]
|
||||||
mov dh, [si]
|
|
||||||
mov si, [bp+12]
|
|
||||||
mov ch, [si]
|
mov ch, [si]
|
||||||
|
mov si, [bp+12]
|
||||||
|
mov dh, [si]
|
||||||
mov si, [bp+10]
|
mov si, [bp+10]
|
||||||
mov cl, [si]
|
mov cl, [si]
|
||||||
|
|
||||||
|
@@ -14,11 +14,11 @@ mov es, dx ; es = 0
|
|||||||
mov bx, 0xf000 ; store the read sector there
|
mov bx, 0xf000 ; store the read sector there
|
||||||
mov ax, 0x0301 ; write, 1 sector
|
mov ax, 0x0301 ; write, 1 sector
|
||||||
|
|
||||||
; params: head, cylinder, sector, out
|
; params: cylinder, head, sector, out
|
||||||
mov si, [bp+14]
|
mov si, [bp+14]
|
||||||
mov dh, [si]
|
|
||||||
mov si, [bp+12]
|
|
||||||
mov ch, [si]
|
mov ch, [si]
|
||||||
|
mov si, [bp+12]
|
||||||
|
mov dh, [si]
|
||||||
mov si, [bp+10]
|
mov si, [bp+10]
|
||||||
mov cl, [si]
|
mov cl, [si]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user