Mirror of CollapseOS
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

14 linhas
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.