Skip to content

Commit

Permalink
* ZXDev/Lib/Laser2.CLSV & INVV: * jump to next atr.line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-N-Cher committed Dec 25, 2016
1 parent b693d9c commit 4baf8b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ZXDev/Lib/C/Laser2.c
Expand Up @@ -722,13 +722,13 @@ CLSV_PUT_ZERO$: LD (DE), A
INC E ; Next screen line
DEC C
JR NZ, CLSV_PUT_ZERO0$
LD A, L ; Restore E
LD A, L
ADD #0x20 ; Next charline
LD E, A ; If carry then jump to next third of screen
LD L, A ; If carry then jump to next third of screen
JR NC, CONTIN_1_3_CLSV$
LD A, D ; Next third of screen
LD A, H ; Next third of screen
ADD #8
LD D, A ; DE := DE + 0x0800
LD H, A ; HL := HL + 0x0800
CONTIN_1_3_CLSV$: POP BC
DJNZ CLSV_HLINE$ ; End of loop on charlines (the same third)
__endasm;
Expand Down Expand Up @@ -785,13 +785,13 @@ INVV_INV_BYTE$: LD A, (DE)
INC E ; Next screen line
DEC C
JR NZ, INVV_INV_BYTE0$
LD A, L ; Restore E
LD A, L
ADD #0x20 ; Next charline
LD E, A ; If carry then jump to next third of screen
LD L, A ; If carry then jump to next third of screen
JR NC, INVV_CONTIN_1_3$
LD A, D ; Next third of screen
LD A, H ; Next third of screen
ADD #8
LD D, A ; DE := DE + 0x0800
LD H, A ; HL := HL + 0x0800
INVV_CONTIN_1_3$: POP BC
DJNZ INVV_HLINE$ ; End of loop on charlines (the same third)
__endasm;
Expand Down
Binary file modified ZXDev/Lib/Laser2.lib
Binary file not shown.

0 comments on commit 4baf8b4

Please sign in to comment.