Shop OBEX P1 Docs P2 Docs Learn Events
Bad Jump? — Parallax Forums

Bad Jump?

mrdevismrdevis Posts: 5
edited 2005-09-19 22:01 in General Discussion
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

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-17 20:33
    If you're jumping across a page boundary you need to do this:

    CALL @rK_Tab

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • mrdevismrdevis Posts: 5
    edited 2005-09-17 20:41
    thanks jon,

    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
  • mrdevismrdevis Posts: 5
    edited 2005-09-19 19:04
    hi list,

    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
  • BeanBean Posts: 8,129
    edited 2005-09-19 19:10
    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
    ·
  • mrdevismrdevis Posts: 5
    edited 2005-09-19 19:24
    It does!
    That's great, must be some small glitch in sxsim??
    is there a bug list for that?

    Thanks bean!
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-09-19 20:17
    Hi Jeroen,

    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
  • mrdevismrdevis Posts: 5
    edited 2005-09-19 22:01
    Hello Guenther,

    You're welcome! and greets from switzerland

    Jeroen
Sign In or Register to comment.