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.

14 lines
635B

  1. STABLE ABI: As a compatible binary, this binary follows the
  2. same stable ABI as its z80 counterpart.
  3. PS CHECKS: Unlike z80 boot code, we don't check PS at each next
  4. call (we do check RS though). It is the responsibility of every
  5. native PSP-modifying word to call chkPS, . Also, chkPS, is a
  6. bit different than in z80: it is parametrizable. The idea is
  7. that we always call chkPS, before popping, telling the expected
  8. size of stack. This allows for some interesting optimization.
  9. For example, in SWAP, no need to pop, chkPS, then push, we can
  10. chkPS and then proceed to optimized swapping in PS.
  11. To assemble, load blocks 805 through 820.