Shop OBEX P1 Docs P2 Docs Learn Events
PropTool Initialization section — Parallax Forums

PropTool Initialization section

MagIO2MagIO2 Posts: 2,243
edited 2009-04-03 14:06 in Propeller 1
When clicking on Object Info in the PropTool you see the first row of memory used by some Initialization-data. I'm sure the first long contains the clkfreq. Does someone know what the remaining 4 longs mean?

Is this memory only used for initialization and can it be used otherwise during runtime?

Comments

  • mparkmpark Posts: 1,305
    edited 2009-04-03 00:57
  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-03 01:21
    The first 16 bytes of memory are used by the Spin interpreter. The long at location 0 is what is used for CLKFREQ. The byte at location 6 I think is used for CLKMODE. The other locations are used for various pointers and a checksum.
  • MagIO2MagIO2 Posts: 2,243
    edited 2009-04-03 11:08
    Thanks a lot!

    I wonder if it's possible to do the same with SPIN code as with PASM code - loading parts of SPIN-code during runtime, say from an SD card.

    Post Edited (MagIO2) : 4/3/2009 11:50:12 AM GMT
  • BradCBradC Posts: 2,601
    edited 2009-04-03 14:06
    MagIO2 said...
    Thanks a lot!

    I wonder if it's possible to do the same with SPIN code as with PASM code - loading parts of SPIN-code during runtime, say from an SD card.

    Yes it is. Check out DOL by Steven Messenger, it'll do just that.

    Alternatively, you can load *entire* propeller binary images at arbitrary locations in memory and start them up just like another cog. There are some caveats to doing this (don't go messing with clkfreq for example) but it can be done.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
Sign In or Register to comment.