Shop OBEX P1 Docs P2 Docs Learn Events
propgcc and spinsim — Parallax Forums

propgcc and spinsim

yetiyeti Posts: 818
edited 2016-09-24 12:20 in Propeller 1
I like using spinsim to play with spin on my notebook without having a real propeller attached...

Is there doc somewhere about using spinsim with propgcc and a pointer to spinsim specific conio and fileio libs? Maybe even about using spinsim's extmem for XMM?

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2014-03-03 11:27
    I don't think I ever documented how the memory-mapped console and file I/O works. I'm just about to do another update on spinsim in the P2 thread, and I could write up a description of how that works. The memory mapped I/O talks through a mailbox at memory location 0x1234000x. This also allows for specifying and creating external memory at run time. I had a "-x" command-line option that could also specify external memory, but I removed that a while ago. I believe the external memory was mapped at addresses of 0x100xxxxx and 0x200xxxxx, or something like that. I've forgotten the details.

    The conio and fileio drivers are written in Spin. It would be fairly easy to create C versions that would either work stand-alone, or could be integrated with the standard I/O drivers. I'll look at it when I have a chance.
Sign In or Register to comment.