Mirror of CollapseOS
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

17 строки
690B

  1. Stack management
  2. The Parameter stack (PS) is maintained by SP and the Return
  3. stack (RS) is maintained by IX. This allows us to generally use
  4. push and pop freely because PS is the most frequently used.
  5. However, this causes a problem with routine calls: because in
  6. Forth, the stack isn't balanced within each call, our return
  7. offset, when placed by a CALL, messes everything up. This is
  8. one of the reasons why we need stack management routines below.
  9. IX always points to RS' Top Of Stack (TOS)
  10. This return stack contain "Interpreter pointers", that is a
  11. pointer to the address of a word, as seen in a compiled list of
  12. words.
  13. (cont.)