sms.inc 786 B

12345678910111213141516171819202122232425262728
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2021 by Karoly Balogh
  4. Interface to SMS only OS functions used by the Sinclair QL RTL
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. const
  12. _IOF_MKDR = $4d;
  13. function iof_mkdr(chan: Tchanid): longint; assembler; nostackframe; public name '_iof_mkdr';
  14. asm
  15. move.l d3,-(sp)
  16. move.l chan,a0
  17. moveq.l #-1,d3
  18. moveq.l #0,d1
  19. moveq.l #_IOF_MKDR,d0
  20. trap #3
  21. move.l (sp)+,d3
  22. end;