Use correct chs order in floppy programs

This commit is contained in:
2025-09-25 11:54:12 +02:00
parent 2120df695e
commit fa1b26ef10
2 changed files with 6 additions and 6 deletions

View File

@@ -14,11 +14,11 @@ mov es, dx ; es = 0
mov bx, 0xf000 ; store the read sector there
mov ax, 0x0201 ; read, 1 sector
; params: head, cylinder, sector, out
; params: cylinder, head, sector, out
mov si, [bp+14]
mov dh, [si]
mov si, [bp+12]
mov ch, [si]
mov si, [bp+12]
mov dh, [si]
mov si, [bp+10]
mov cl, [si]

View File

@@ -14,11 +14,11 @@ mov es, dx ; es = 0
mov bx, 0xf000 ; store the read sector there
mov ax, 0x0301 ; write, 1 sector
; params: head, cylinder, sector, out
; params: cylinder, head, sector, out
mov si, [bp+14]
mov dh, [si]
mov si, [bp+12]
mov ch, [si]
mov si, [bp+12]
mov dh, [si]
mov si, [bp+10]
mov cl, [si]