Skip to content

Commit b83e795

Browse files
committed
optimized show_msgs
1 parent 14ff592 commit b83e795

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libload/libload.asm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ disable_relocations
9494
ld (flag_save), a
9595
ld (ix_save), ix ; save IX since older ICE programs don't
9696

97-
ld de, show_msgs ; disable or enable error printing
98-
ld a, 1
99-
ld (de), a
10097
ld hl, $AA55AA
10198
xor a, a
10299
sbc hl, bc
103-
jr nz, .show_msgs
104-
ld (de), a
105-
.show_msgs:
100+
jr z, .no_show_msgs
101+
; .show_msgs:
102+
inc a
103+
.no_show_msgs:
104+
ld hl, show_msgs ; disable or enable error printing
105+
ld (hl), a
106106

107107
pop hl
108108
ld de,helpers.source
@@ -573,7 +573,7 @@ throw_error: ; draw the error message onscreen
573573
ld a, (show_msgs)
574574
or a, a
575575
jr z, .return
576-
.show_msgs:
576+
.show_msgs:
577577
ld a, ti.lcdBpp16
578578
ld (ti.mpLcdCtrl), a
579579
push hl

0 commit comments

Comments
 (0)