Shop OBEX P1 Docs P2 Docs Learn Events
The First 16 locations of the Main Memory RAM Map? — Parallax Forums

The First 16 locations of the Main Memory RAM Map?

GreenDevilGreenDevil Posts: 7
edited 2014-07-02 18:37 in Propeller 1
I could only find two Names of the first 16 locations in the hub Main Memory Ram $0000-$000F.
$0000 being MC Hertz
$0004 being CLK Register

Could somebody please help fill in the blanks? The Boot Loader and Interpreter depends on it. Thanks

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2014-07-02 12:48
    $0005 Checksum
    $0006 PBASE - Top object address. Normally has a value of $10
    $0008 VBASE - Top object VAR address. Same as size of binary file
    $000A DBASE - Stack variable base address. Address of RESULT variable in top object.
    $000C PCURR - Starting address to execute. Address of first method in the top object.
    $000E DCURR - Starting value of the stack pointer
  • GreenDevilGreenDevil Posts: 7
    edited 2014-07-02 12:55
    Hey, thanks so much.
  • ElectrodudeElectrodude Posts: 1,658
    edited 2014-07-02 18:28
    How is the checksum calculated? I'm planning on writing a new spin compiler that supports runtime-instantiable classes and such (and also will do much much more), and right now I'm trying to fill in all the gaps in my understanding of the spin interpreter, because it's the part of the propeller I have the least knowledge about.

    electrodude
  • kuronekokuroneko Posts: 3,623
    edited 2014-07-02 18:35
    How is the checksum calculated?
    The sum of all bytes in an EEPROM file (32K) is 0.
  • ElectrodudeElectrodude Posts: 1,658
    edited 2014-07-02 18:37
    OK, thanks.
Sign In or Register to comment.