Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
550B

  1. ( Name of BOOT word )
  2. L1 BSET 'B' A, 'O' A, 'O' A, 'T' A, 0 A,
  3. PC ORG @ 1 + ! ( main )
  4. ( STACK OVERFLOW PROTECTION: See B76 )
  5. SP 0xfffa LDddnn,
  6. RAMSTART SP LD(nn)dd, ( RAM+00 == INITIAL_SP )
  7. IX RS_ADDR LDddnn,
  8. ( HERE begins at RAMEND )
  9. HL RAMSTART 0x80 + LDddnn,
  10. RAMSTART 0x04 + LD(nn)HL, ( RAM+04 == HERE )
  11. ( LATEST is a label to the latest entry of the dict. It is
  12. written at offset 0x08 by the process or person building
  13. Forth. )
  14. BIN( @ 0x08 + LDHL(nn),
  15. RAMSTART 0x02 + LD(nn)HL, ( RAM+02 == CURRENT cont. )