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
501B

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