Login
Back to forumSee the full topicGo to last reply

Posted By

Harry Potter
on 2022-08-20
14:10:45
 Re: MemBankP4/cc65: demo prg won't load data to expansion RAM

Now, I got the data to load properly. I was using Hannes. happy Unfortunately, when I retrieve a key from the user, the screen blinks several times then displays a message that I pressed an invalid key. If I press a wrong key, it will tell me and then restart the code to display the main menu. I'm not pressing a key. sad I will attach the getkey() code now.
---------------------
.segment "LOWCODE"

.proc _getkey
sta ENABLE_ROM
@lp:
;inc $0C00
jsr $ffe4 ;Call the getin kernal routine to
;lda #$E4
;jsr callkernal
;get the key-press.
cmp #0 ;Continue until key pressed.
beq @lp
ldx #0 ;Clear MSB because I keep seeing
;this done in cc65's source code.
;sta $C00
sta ENABLE_RAM
rts ;Return.
.endproc
----------------------



Back to top


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon