home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / c128 / text / examples.arc / CSDOS.I < prev    next >
Text File  |  1989-12-01  |  6KB  |  106 lines

  1. ; csdos.i
  2. ;──────────────────────────────────────────────────────────────────────────────
  3. ; Include file ... CS-DOS definitions
  4. ;──────────────────────────────────────────────────────────────────────────────
  5.  
  6. int00       = $1700     ; Set default drive (Letter in .a)
  7. int01       = $1701     ; Get default drive (Letter to .a)
  8. int02       = $1702     ; Get default unit,drive (To .x, .a)
  9. int03       = $1703     ; Convert drive letter (.a) to unit (.x) and drive (.a)
  10. int04       = $1704     ; Get first char of parameter .x
  11. int05       = $1705     ; Get next char after int04
  12. int06       = $1706     ; Assign drive letter (.a) to unit (.x) drive (.y)
  13. int07       = $1707     ; Unimplemented Command
  14. int08       = $1708     ; Open file %x for read (.a=type "s","p",0 or "$")
  15. int09       = $1709     ; Open file %x for write (.a=type "s" or "p")
  16. int0a       = $170a     ; Find free LA (.a) and SA (.y)
  17. int0b       = $170b     ; Abort (int0e) if disk error
  18. int0c       = $170c     ; Fetch disk status (.a    =DS)
  19. int0d       = $170d     ; Display disk status after int0c
  20. int0e       = $170e     ; Program terminate (.a=errorlevel)
  21. int0f       = $170f     ; Parse filename. Sets DV and D: from (fnadr)
  22. int10       = $1710     ; Display shell version info
  23. int11       = $1711     ; Evaluate constant (returned in .x low .a high)
  24. int12       = $1712     ; not used
  25. int13       = $1713     ; Scratch file %x
  26. int14       = $1714     ; Get (carry=0) or Set (carry=1) date from .x low .y high
  27. int15       = $1715     ; Print date (from .x, .y)
  28. int16       = $1716     ; Find first matching file for %x
  29. int17       = $1717     ; Get next match after int16
  30.  
  31. int20       = $1720     ; Redirect input (EXEC file %x)
  32.  
  33. int21       = $1721     ; Function interrupt
  34. Cancel      = 1         ; Function 1 - Cancel redirected input
  35. Setup       = 2         ; Function 2 - Make filename out of %x
  36. EnqDsk      = 3         ; Function 3 - Enquire Disk
  37. Linit       = 4         ; Function 4
  38. NewFil      = 5         ; Function 5
  39. Locate      = 6         ; Function 6
  40. Bump        = 7         ; Function 7
  41. SkpDsk      = 8         ; Function 8
  42. Obytn       = 9         ; Function 9 - Fetch byte from EXEC file
  43. SetFet      = 10        ; Function 10
  44. RamFet      = 11        ; Function 11
  45. Rs232on     = 12        ; Function 12 - Enable RS232
  46. Rs232off    = 13        ; Function 13 - Disable RS232
  47. Clear       = 14        ; Function 14 - Clear RS232 input buffer
  48. SetBaud     = 15        ; Function 15 - Set Baud rate from .a high .x low
  49.  
  50. int3c       = $173c     ; LOAD (carry=0) or LOAD & RUN (carry=1) program %x (y=bank)
  51.  
  52. buf0        = $1b00     ; misc work area. result of pattern match etc.
  53. buf1        = $1b20     ; misc work area. parameter 1
  54. buf2        = $1b40     ; misc work area. parameter 2
  55. buf3        = $1b60     ; misc work area. parsed filename
  56.  
  57. remote      = $1bc2     ; Flag. BMI flags remote keyboard is active
  58. snmi        = $1bc3     ; RS232 routines save old NMI here
  59. lpsave      = $1bc5     ; LOOP saves exec address here
  60. tcolor      = $1bc8     ; Color for Text mode
  61. bcolor      = $1bc9     ; Color for Basic mode
  62. scolor      = $1bca     ; Color for Seq files
  63. pcolor      = $1bcb     ; Color for prg files
  64. ucolor      = $1bcc     ; Color for usr files
  65. rcolor      = $1bcd     ; Color for Rel files
  66. ocolor      = $1bce     ; Other color
  67. arclim      = $1bcf     ; buffer limits for ARC work area
  68. caplim      = $1bd0     ; capture buffer limits 16*min+max 1750 bank
  69. stk1        = $1bd1     ; stack pointer saved by 'lookup'
  70. decho       = $1bd2     ; default echo status when an EXEC begins
  71. osvx        = $1bd3     ; temps
  72. ptrflg      = $1bd6     ; flag BMI=redirect to printer
  73. srdila      = $1bd7     ; save redirect la
  74. shellf      = $1bd8     ; bit 7. 0    =direct mode, 1=int0e will RTS
  75. ssw1        = $1bd9     ; switch 1 copy for batch files
  76. ssw2        = $1bda     ;   ''   2  ''       ''
  77. savecd      = $1bdb     ; pushdir/popdir save current drive here
  78. eocom       = $1bdc     ; highest Common RAM address used by shell
  79. eoshl       = $1bde     ; highest RAM 1 address used by shell
  80. errlvl      = $1be0     ; error level returned by int0e
  81. colr        = $1be1     ; screen color (set by text and basic)
  82. svbrk       = $1be2     ; save BRK vector
  83. reg         = $1be4     ; registration number (obsolete)
  84. stk0        = $1be7     ; stack pointer saved by int40
  85. stk         = $1be8     ; stack pointer. saved by "main"
  86. rdodv       = $1be9     ; device to which output is redirected
  87. rdosa       = $1bea     ; sa to which output is redirected
  88. echo        = $1beb     ; 0=echo off $ff=on for exec
  89. cola        = $1bec     ; current output la
  90. cila        = $1bed     ; current input la
  91. ptrdv       = $1bee     ; printer device number
  92. ptrsa       = $1bef     ; printer sa
  93. rflag       = $1bf0     ; bit 7=1 if RAM disk is in 1750
  94. rdmax       = $1bf1     ; end address for RAM disk
  95. rdbnk       = $1bf3     ; bank/CR for RAM disk
  96. rdadr       = $1bf5     ; start address of RAM disk
  97. cl          = $1bf7     ; drive  letter for last disk operation
  98. cdr         = $1bf8     ; drive  number for last disk operation
  99. cdv         = $1bf9     ; device number for last disk operation
  100. rdila       = $1bfa     ; la for redirected  input
  101. rdola       = $1bfb     ; la for redirected output
  102. sw1         = $1bfc     ; /xy   (y)
  103. sw2         = $1bfd     ; /xy   (x)
  104. tx          = $1bfe     ; text mode flag
  105. dosver      = $1bff     ; CS-DOS version number
  106.