25.10.2013 Views

fig-FORTH FOR 6800 - Forth Interest Group

fig-FORTH FOR 6800 - Forth Interest Group

fig-FORTH FOR 6800 - Forth Interest Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Copyright :FOETfl <strong>Interest</strong> <strong>Group</strong> SSB MNEMOMC RSSmm PAGE 4<br />

OOEO<br />

OOEO<br />

OOEE<br />

OOEB<br />

OOEC<br />

OOEE<br />

OOFO<br />

00F2<br />

00 F4<br />

00F6<br />

* * *<br />

*<br />

* (XXVEWIONS USED IN THIS PROGRAM ARE AS FOUS:<br />

*<br />

* IP points to the current instruction ( pre-increment mode )<br />

* RP points to second free byte (first free word) in return stack<br />

* SP (hardware SP) points to first free byte in data stack<br />

*<br />

* when A and E hold one 16 bit <strong><strong>FOR</strong>TH</strong> data word,<br />

* A contains the high byte, B, the low byte.<br />

* * *<br />

ORG $EO variables<br />

used as scratch by (FIND) ,J!XLOSE,CM3VE,EMIT,KEY,<br />

SP@ , mp,ms> ,COLD<br />

These locations are used by the TRACE routine :<br />

TRLIM RMB 1 the count for tracing without user intervention<br />

TRF.CEM RME 1 non-zero = trace mode<br />

BRKPT RMB 2 the breakpoint address at which<br />

* the program will go into trace mode<br />

VECT RMB 2 vector to machine code<br />

* (only needed if the TRACE routine is resident)<br />

W<br />

I P<br />

RF'<br />

UP<br />

*<br />

Registers used by the MRTH virtual machine:<br />

Starting at SOOFO :<br />

RMB 2 the instruction register points to <strong>6800</strong> code<br />

RME 2 the instruction pointer pints to pinter tc <strong>6800</strong> ~ 2 s<br />

RMB 2 the return stack pointer<br />

RMB 2 the pointer to bese of current user's 'USE3' table<br />

( altered during multi-tasking )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!