Skip to content

Commit 4c49c2c

Browse files
committed
Simplify PRINT routine
1 parent 8d8e383 commit 4c49c2c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/arch/zx48k/library-asm/print.asm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,8 @@ INVERSE_MODE: ; 00 -> NOP -> INVERSE 0
179179
ld hl, (MAXX)
180180
ld a, e
181181
dec l ; l = MAXX
182-
cp l ; Lower than max?
183-
jp c, __PRINT_CONT; Nothing to do
184-
call __PRINT_EOL1
185-
exx ; counteracts __PRINT_EOL1 exx
186-
jp __PRINT_CONT2
182+
cp l ; Lower than max?
183+
jp nc, __PRINT_EOL1
187184

188185
__PRINT_CONT:
189186
call __SAVE_S_POSN

0 commit comments

Comments
 (0)