Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

14 lines
483B

  1. PC ORG @ 1 + ! ( main )
  2. ( STACK OVERFLOW PROTECTION: See B76 )
  3. SP PS_ADDR LDddnn, IX RS_ADDR LDddnn,
  4. ( HERE begins at RAMEND )
  5. HL RAMSTART 0x80 + LDddnn,
  6. RAMSTART 0x04 + LD(nn)HL, ( RAM+04 == HERE )
  7. ( LATEST is a label to the latest entry of the dict. It is
  8. written at offset 0x08 by the process or person building
  9. Forth. )
  10. BIN( @ 0x08 + LDHL(nn),
  11. RAMSTART 0x02 ( CURRENT ) + LD(nn)HL,
  12. DE BIN( @ 0x04 ( BOOT ) + LDdd(nn),
  13. JR, L1 FWR ( execute, B301 )