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

  1. CODE @WRSEC ( drv cylsec addr -- f ) EXX, ( protect BC )
  2. HL POP,
  3. DE POP,
  4. BC POP,
  5. chkPS,
  6. A 0x35 LDri, ( @WRSEC )
  7. 0x28 RST,
  8. PUSHZ,
  9. EXX, ( unprotect BC ) ;CODE
  10. CODE @GET ( a -- c f )
  11. DE POP,
  12. chkPS,
  13. A 0x03 LDri, ( @GET )
  14. 0x28 RST,
  15. PUSHA, PUSHZ,
  16. ;CODE