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.

16 lines
483B

  1. lblchkPS BSET ( chkPS )
  2. ( thread carefully in there: sometimes, we're in the
  3. middle of a EXX to protect BC. BC must never be touched
  4. here. )
  5. EXX,
  6. ( We have the return address for this very call on the stack
  7. and protected registers. 2- is to compensate that. )
  8. HL PS_ADDR 2- LDdi,
  9. SP SUBHLd,
  10. EXX,
  11. CNC RETc, ( PS_ADDR >= SP? good )
  12. ( continue to uflw )
  13. lbluflw BSET ( abortUnderflow )
  14. DE BIN( @ 0x06 ( uflw ) + LDd(i),
  15. JR, lblexec BWR