Greetings: I'm still developing my 128 project, and have run into a snag.... lets say were at line# 1000 in BASIC at an ML input routine. If a certain key's pressed, another ML program is loaded at $b000 and it execute its sole purpose, until another special key is pressed, then I'm trying to get the code @ $bxxx to perform a GOTO, to the last BASIC line#/token that BASIC was running??? Everything is working, except the goto, or some means to get back to the BASIC interpreter, or another line at the first ML input routine? Am I asking too much?
Im calling a routine that gets loaded, and for some reason, all of my attempts to RTS/JMP back to the call that loads the module, breaks to monitor. And my assembler skills are poor, but debugging via the c128 monitor... im even worse.
It's been quite some time, but if simply using GOSUB and RETURN isn't helping... wasn't there something about GOTO [variable]? I do know the older BASIC constructs originally meant for dynamic program flow (specifically GOTO [constant] and ON [variable] GOTO) aren't always suitable.
The world’s only gsteemso
Agitator-in-chief for the Seattle Retro-Computing Society
remark: you're right! i preserved the value @ $ff00, then stored a $0e, jsr to code, rts, PLA, sta $ff00, rts and it worked like a charm!!!!! Sheesh.. i'll tell ya... sometime learning, can be totally doable..