A86: saving hiscores and other data
[Prev][Next][Index][Thread]
A86: saving hiscores and other data
I am having trouble saving data in my ASM program. At the end, I have the line
HiScore: .dw $0000 This is the high score. I use ld hl,(HighScore) to
retrieve the data, and it displays the right value And I use ld hl,(score) \
ld (HiScore),hl to save the current score as the high score. However, when I
exit and re-enter the program, the high score is always 0! (or whatever is
after .dw) Please help!
P.S. The current score is a 2-byte value stored in (score)