Bad Jump?
mrdevis
Posts: 5
Hi,
I'm possibly just overlooking the obvious, but while executing following code I get a "bad jump or return address: 0203"
message from SXSim. (ver 2.06.02)
org $200
rK_Tab jmp pc+w
retw 12,6,0,0,0,6
table is called with
call rK_Tab
is this a known phenomenon?
Thanks for any help,
jeroen
Post Edited By Moderator (Jon Williams (Parallax)) : 9/17/2005 8:28:38 PM GMT
I'm possibly just overlooking the obvious, but while executing following code I get a "bad jump or return address: 0203"
message from SXSim. (ver 2.06.02)
org $200
rK_Tab jmp pc+w
retw 12,6,0,0,0,6
table is called with
call rK_Tab
is this a known phenomenon?
Thanks for any help,
jeroen
Post Edited By Moderator (Jon Williams (Parallax)) : 9/17/2005 8:28:38 PM GMT
Comments
CALL @rK_Tab
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thing is, I'm staying in the same page. Nevertheless I tried it, to no avail. [noparse]:([/noparse]
It seems when I run the prog on the sx-key it runs quite normal, I just seem to get this in the sxsim.
regards, jeroen
I'll try to discribe this more exact, I have been tinkering with this phenomenon a bit more. It seems that if I <RUN> over the code in SXSim there is no complaint, but no effect either, that is, table values are not read. However if I <STEP> into to code spot, I get the error message, which -when ok'd- resets SXSim.
Anybody seen this before? Happy with any clues,
cheers, jeroen
Does it work if you put each RETW value on it's own line ?
RETW 12
RETW 6
RETW 0
RETW 0
RETW 0
RETW 6
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
Available soon!! Video overlay(OSD) module...
"I'm a man, but I can change, if I have to, I guess"
Red Green
·
That's great, must be some small glitch in sxsim??
is there a bug list for that?
Thanks bean!
thanks for sharing your experience with SXSim. I'll try to reproduce that problem, and will fix it in the next version of SXSim.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
You're welcome! and greets from switzerland
Jeroen