Skip to content

Commit

Permalink
Fix cp a, n -> cp a, cp n
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelavenuto committed Dec 4, 2023
1 parent 027d227 commit 40e2525
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions driver/driver.asm
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ DRV_DIRECT4:

DEV_RW:
push af
cp 3 ; somente 2 dispositivos
cp a
cp 3 ; somente 2 dispositivos
jr nc, .saicomerroidl
dec c ; somente 1 logical unit
jr nz, .saicomerroidl
Expand Down Expand Up @@ -627,7 +628,8 @@ escrita:

DEV_INFO:
inc b
cp 3 ; somente 2 dispositivos
cp a
cp 3 ; somente 2 dispositivos
jr nc, .saicomerro
push hl
call testaCartao ; verificar se cartao esta OK
Expand Down Expand Up @@ -759,7 +761,8 @@ DEV_INFO:
; DEV_STATUS itself. Please read the Driver Developer Guide for more info.

DEV_STATUS:
cp 3 ; 2 dispositivos somente
cp a
cp 3 ; 2 dispositivos somente
jr nc, .saicomerro
dec b ; 1 logical unit somente
jr nz, .saicomerro
Expand Down Expand Up @@ -834,7 +837,8 @@ DEV_STATUS:
; For other types of device, these fields must be zero.

LUN_INFO:
cp 3 ; somente 2 dispositivo
cp a
cp 3 ; somente 2 dispositivo
jr nc, .saicomerro
dec b ; somente 1 logical unit
jr nz, .saicomerro
Expand Down

0 comments on commit 40e2525

Please sign in to comment.