Shop OBEX P1 Docs P2 Docs Learn Events
SX-Key Editor problems — Parallax Forums

SX-Key Editor problems

MacGeek117MacGeek117 Posts: 747
edited 2006-03-12 17:51 in General Discussion
I just installed the new SX/B compiler, but when I try to use a interrupt, an error message comes up saying "Unable to assemble due to errors in source code".· I have attached the list file with the highlighted line of code commented. Just uncomment the line, then assemble the code.

RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Frankly, I'm scared by the Propeller. Self-modifying code!? Insert one wrong command and "What's it doing?!"

This is going to be a good chip!
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com


Post Edited (RoboGeek) : 3/12/2006 3:00:34 AM GMT

Comments

  • John CoutureJohn Couture Posts: 370
    edited 2006-03-12 06:12
    RG,

    You put the DELAY in the wrong place:· That area should read as follows.· Notice the DELAY SUB is AFTER Interrupt and you have to put a GOTO in there:

    '
    · INTERRUPT
    '
    GOTO ISR_START
    '
    ' Subroutine Jump Table
    '
    DELAY······SUB 1, 2
    ISR_Start:
    ·· ' your interrupt routine in here
    ISR_Exit:
    RETURNINT 156

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • MacGeek117MacGeek117 Posts: 747
    edited 2006-03-12 17:51
    Thanks, John! I didn't know that. Funny.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Frankly, I'm scared by the Propeller. Self-modifying code!? Insert one wrong command and "What's it doing?!"

    This is going to be a good chip!
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
Sign In or Register to comment.