Shop OBEX P1 Docs P2 Docs Learn Events
Unable to assemble — Parallax Forums

Unable to assemble

SterlingSterling Posts: 51
edited 2006-04-21 18:29 in General Discussion
I get the error message "Unable to assemble due to some errors in the source code." when I attempt to assemble the following code. It highlights the first line.
    device        sx281,oschs3
    device        turbo,stackx,optionx
    IRC_CAL        IRC_SLOW
    reset        start_point
    freq        50000000    ; 50 MHZ


    org        0

start_point    mov    !rb,#0
        mov    !rb,#0
        sleep




I typed this right out of the Exploring the SX book. What am I doing wrong here? Maybe it's just too late and the letters all look alike, but I don't see any difference.

Post Edited (Sterling) : 4/21/2006 5:33:10 AM GMT

Comments

  • PJMontyPJMonty Posts: 983
    edited 2006-04-21 05:36
    Stirling,

    It's not an sx281, it's an Sx28. Also, try assembling it again only this time look at the list of errors that pops up at the bottom of the IDE. It tells you the specific word causing the problem where it says, "Bad argument <sx281>".
      Thanks, PeterM

    Post Edited (PJMonty) : 4/21/2006 5:39:40 AM GMT
  • SterlingSterling Posts: 51
    edited 2006-04-21 05:43
    Thanks PeterM!

    Don't I feel silly...
  • PJMontyPJMonty Posts: 983
    edited 2006-04-21 07:36
    Sterling,

    It's cool. I'm guessing that you're new to the SX, so the learning goes step by step.

    With any luck, the most important thing you've learned is that error messages (while often cryptic), aren't impossible to figure out. The dialog is there mainly to give you a heads up that there was a problem. The error messages at the bottom are there to (hopefully) spell it out.

    The other thing you learned is that the forum here is usually quite useful. Keep posting.
      Thanks, PeterM
  • SterlingSterling Posts: 51
    edited 2006-04-21 16:17
    The support here is amazing. I made the right choice when I purchased from Parallax.
  • BeanBean Posts: 8,129
    edited 2006-04-21 16:21
    Sterling,
    It was probably SX28L (L instead of 1).
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012


    "SX-Video OSD module"·available·for only·$49.95·www.sxvm.com
    Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • SterlingSterling Posts: 51
    edited 2006-04-21 18:29
    I see... the IDE font prints "l" and "1" exactly the same. Good to know...
Sign In or Register to comment.