Shop OBEX P1 Docs P2 Docs Learn Events
Does anyone have an unscrambled ROM image handy? — Parallax Forums

Does anyone have an unscrambled ROM image handy?

Basically, for a quick proof of concept, I would need an unscrambled dump of the original P1 ROM, as a 32k binary file. Can't find it tho. Can someone point me to one?

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2016-09-27 19:10
    The source code for spinsim contains the ROM contents and routines that are used to unscramble the ROM when loading a cog from it. The ROM contents are in rom.h and the unscrambling function is swapit() in pasmdebug.c. swapit() is used by StartPasmCog() when the starting address is greater than or equal to 0x8000. The Spin interpreter is located at 0xf004 to 0xf7ff, and the booter is located at 0xf800 to 0xfeff.

    Let me know if this works for you. I could write a small C program to convert it to a binary file if you need it that way.
    h
    h
    208K
  • I decided to go ahead and generate the binary files. They are attached along with the program that generated them.
  • thanks!
  • Cluso99Cluso99 Posts: 18,069
    I have posted the unscrambled ROMs in the P1V thread. Hope you can find the thread in the search section (it's not very good)
  • Are you referring to this thread: New Unscrambled P1V ROM with Faster Spin Interpreter?

    This forum's search might not be great, but Googling "Cluso99 rom site:forums.parallax.com" produced a few seemingly-relevant results :)
  • Cluso99Cluso99 Posts: 18,069
    Yes, this is the thread and the two parts to the ROM unscrambled are posted in the third post.

    A few posts later is one which uses my faster spin interpreter which has a lookup/decode table squeezed in between the ROM gaps without affecting the SIN tables or anything else. I believe my interpreter works correctly, but beware there could be abug or two lurking. If you find one please report it thanks.
Sign In or Register to comment.