Shop OBEX P1 Docs P2 Docs Learn Events
extracting the hexcode file from the basic stamp software — Parallax Forums

extracting the hexcode file from the basic stamp software

qtommerqtommer Posts: 4
edited 2008-12-21 17:16 in BASIC Stamp
does anyone know how i can extract the hexcode file from the basic stamp editor??im using the bs2 and my professor wants me to do that but im not really sure how to...help would be really appreciated..thank you=)

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-21 14:27
    Read the BASIC Stamp Syntax and Reference Manual (www.parallax.com/tabid/440/Default.aspx) on pages 75-76.
    This discusses saving the object file (containing the compiled interpretive code) after compilation
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2008-12-21 17:16
    The low tech way to do that is to bring up the memory map, CTRL-M, and then write down the hex codes you see there. Note that the program starts from high addresses and goes down in memory, while DATA starts at the bottom of memory and goes up.

    If you follow Mike's suggestion and generate the object file, you will find it to be a 19400 byte text file. The hex codes are embedded in that file. You can look at this post, where Jeff Martin delineated the format of that file for us.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
Sign In or Register to comment.