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.

50 lines
612B

  1. basBSEL:
  2. call rdExpr
  3. ret nz
  4. push ix \ pop hl
  5. call blkSelPtr
  6. ld a, l
  7. jp blkSel
  8. basBSEEK:
  9. call rdExpr
  10. ret nz
  11. push ix ; --> lvl 1
  12. call rdExpr
  13. push ix \ pop de
  14. pop hl ; <-- lvl 1
  15. jr z, .skip
  16. ; DE not supplied, set to zero
  17. ld de, 0
  18. .skip:
  19. xor a ; absolute mode
  20. call blkSeek
  21. cp a ; ensure Z
  22. ret
  23. basGETB:
  24. call blkGetB
  25. ret nz
  26. ld (VAR_TBL), a
  27. xor a
  28. ld (VAR_TBL+1), a
  29. ret
  30. basPUTB:
  31. call rdExpr
  32. ret nz
  33. push ix \ pop hl
  34. ld a, l
  35. jp blkPutB
  36. basBLKCmds:
  37. .db "bsel", 0
  38. .dw basBSEL
  39. .db "bseek", 0
  40. .dw basBSEEK
  41. .db "getb", 0
  42. .dw basGETB
  43. .db "putb", 0
  44. .dw basPUTB
  45. .db 0xff ; end of table