Skip to content

Commit 313c978

Browse files
committed
Make scroll cyclic again
If using -D DISABLE_SCROLL, scroll behaves as in the past.
1 parent 329a5d3 commit 313c978

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

library-asm/print.asm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
; vim:ts=4:sw=4:et:
2+
; vim:ts=4:sw=4:et:
23
; PRINT command routine
34
; Does not print attribute. Use PRINT_STR or PRINT_NUM for that
45

@@ -219,9 +220,13 @@ __PRINT_AT1_END:
219220
ld hl, (MAXY)
220221
cp l
221222
jr c, __PRINT_EOL_END ; Carry if (MAXY) < d
223+
#ifndef DISABLE_SCROLL
222224
ld hl, __TVFLAGS
223225
set 1, (hl)
224226
ld a, d
227+
#else
228+
xor a
229+
#endif
225230

226231
__PRINT_EOL_END:
227232
ld d, a
@@ -470,8 +475,10 @@ PRINT_AT: ; Changes cursor to ROW, COL
470475

471476
call __IN_SCREEN
472477
ret nc ; Return if out of screen
478+
#ifndef DISABLE_SCROLL
473479
ld hl, __TVFLAGS
474480
res 1, (hl)
481+
#endif
475482
jp __SAVE_S_POSN
476483

477484
LOCAL __PRINT_COM

0 commit comments

Comments
 (0)