Shop OBEX P1 Docs P2 Docs Learn Events
How to find out how much program memory is remaining? — Parallax Forums

How to find out how much program memory is remaining?

CatwareCatware Posts: 14
edited 2005-03-03 03:58 in General Discussion
Ok, this is perhaps an idiot question but I am unable to find out how much program·memory is remaining. I see that the SX has 2k of program space, but can't find out how much I have left with my program(s) and don't want to just run out all fo a sudden. Can anyone enlighten me? I am using the standard SX-Key assembler.

Thank you,

David

P.S. I did a search before posting this thread but couldn't find the answer.

Comments

  • BeanBean Posts: 8,129
    edited 2005-02-22 11:54
    Do "Run->View List" scroll to the bottom to see what is the last address used.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out· the "SX-Video Display Module"

    www.sxvm.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-02-22 14:06
    I believe at least one member of this forum has created some macros to help them with this, perhaps they would be willing to share, you could check out sxlist.com to see if James has provided these on his site.
  • James NewtonJames Newton Posts: 329
    edited 2005-02-22 16:14
    Nope, no macros for that. I just look at the list file as suggested above.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • CatwareCatware Posts: 14
    edited 2005-03-03 03:33
    Thanks for the replies.

    So on the Code - List file, I have at the last line on the page the numbers: 841· 0315· 000D

    The first number (841) increments with each line of code,·including·comments. I'm guessing that's not it. The next number (0315) is a hex number corresponding to 789 decimal. Is this the number to look at? Will the SX be full when it reaches 2048 (0800 in hex)?
  • BeanBean Posts: 8,129
    edited 2005-03-03 03:51
    Well actually the memory runs from $000 to $7FF, but $7FF holds the reset jump, so $7FE is the last valid instruction address.
    So your program takes up about 40% of the total program space.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out· the "SX-Video Display Module"

    www.sxvm.com
    ·
  • CatwareCatware Posts: 14
    edited 2005-03-03 03:58
    Ah, great. Thanks a lot, Bean!
Sign In or Register to comment.