Skip to content

Commit 70d1c72

Browse files
committed
Preserve A flag in SAVE
1 parent 776e255 commit 70d1c72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

library-asm/save.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ SA_1_SEC:
150150
call SA_BYTES
151151

152152
SA_CHK_BRK:
153+
ld b, a
153154
ld a, (5C48h)
154155
and 38h
155156
rrca
@@ -159,6 +160,7 @@ SA_CHK_BRK:
159160
ld a, 7Fh
160161
in a, (0FEh)
161162
rra
163+
ld a, b
162164
ret
163165

164166
#endif

0 commit comments

Comments
 (0)