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.

romtbl.sf 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .PAGE 'ROMTBL'
  2. DIRTRK .BYT 18 ;DIRECTORY TRACK #
  3. BAMSIZ .BYT 4 ;# BYTES/TRACK IN BAM
  4. MAPOFF .BYT 4 ;OFFSET OF BAM IN SECTOR
  5. DSKNAM .BYT $90 ;OFFSET OF DISK NAME IN BAM SECTOR
  6. ;
  7. ; COMMAND SEARCH TABLE
  8. CMDTBL .BYT 'VIDMBUP&CRSN'
  9. ; VALIDATE-DIR INIT-DRIVE DUPLICATE
  10. ; MEMORY-OP BLOCK-OP USER
  11. ; POSITION DSKCPY UTLODR RENAME SCRATCH NEW
  12. NCMDS =*-CMDTBL
  13. ; JUMP TABLE LOW
  14. CJUMPL .BYT <VERDIR,<INTDRV,<DUPLCT
  15. .BYT <MEM,<BLOCK,<USER
  16. .BYT <RECORD
  17. .BYT <UTLODR
  18. .BYT <DSKCPY
  19. .BYT <RENAME,<SCRTCH,<NEW
  20. *=CJUMPL+NCMDS
  21. ; JUMP TABLE HIGH
  22. CJUMPH .BYT >VERDIR,>INTDRV,>DUPLCT
  23. .BYT >MEM,>BLOCK,>USER
  24. .BYT >RECORD
  25. .BYT >UTLODR
  26. .BYT >DSKCPY
  27. .BYT >RENAME,>SCRTCH,>NEW
  28. *=CJUMPH+NCMDS
  29. VAL=0 ;VALIDATE (VERIFY) CMD #
  30. .SKIP
  31. ; STRUCTURE IMAGES FOR CMDS
  32. PCMD =9
  33. .BYT %01010001 ; DSKCPY
  34. STRUCT =*-PCMD ; CMDS NOT PARSED
  35. .BYT %11011101 ; RENAME
  36. .BYT %00011100 ; SCRATCH
  37. .BYT %10011110 ; NEW
  38. LDCMD =*-STRUCT ; LOAD CMD IMAGE
  39. .BYT %00011100 ; LOAD
  40. ; --- ---
  41. ; PGDRPGDR
  42. ; FS1 FS2
  43. .SKIP
  44. ; BIT REPS: NOT PATTERN
  45. ; NOT GREATER THAN ONE FILE
  46. ; NOT DEFAULT DRIVE(S)
  47. ; REQUIRED FILENAME
  48. .SKIP
  49. MODLST .BYT 'RWAM' ; MODE TABLE
  50. NMODES =*-MODLST
  51. ;FILE TYPE TABLE
  52. TPLST .BYT 'DSPUL'
  53. TYPLST .BYT 'DSPUR' ;DEL, SEQ, PROG, USER, RELATIVE
  54. NTYPES =*-TYPLST
  55. TP1LST .BYT 'EERSE'
  56. TP2LST .BYT 'LQGRL'
  57. LEDMSK .BYT LED0,LED1
  58. ;
  59. ; ERROR FLAG VARS FOR BIT
  60. ;
  61. ER00 .BYT 0
  62. ER0 .BYT $3F
  63. ER1 .BYT $7F
  64. ER2 .BYT $BF
  65. ER3 .BYT $FF
  66. ;
  67. NUMSEC ;(4) SECTORS/TRACK
  68. .BYTE 17,18,19,21
  69. VERNUM .BYT FM4040 ;FORMAT TYPE
  70. NZONES .BYT 4 ;# OF ZONES
  71. MAXTRK ;MAXIMUM TRACK # +1
  72. TRKNUM ;ZONE BOUNDARIES TRACK NUMBERS
  73. .BYTE 36,31,25,18
  74. OFFSET ;FOR RECOVERY
  75. .BYTE 1,$FF,$FF,1,0
  76. ;
  77. BUFIND
  78. .BYTE $03,$04,$05,$06,$07,$07
  79. ;
  80. .SKIP
  81. .END