diff options
| author | 2024-04-25 21:24:10 +0100 | |
|---|---|---|
| committer | 2024-04-25 22:32:27 +0000 | |
| commit | 2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch) | |
| tree | 80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/DEV/RAMDRIVE/SYSCALL.INC | |
| parent | Merge pull request #430 from jpbaltazar/typoptbr (diff) | |
| download | ms-dos-main.tar.gz ms-dos-main.tar.xz ms-dos-main.zip | |
Diffstat (limited to 'v4.0/src/DEV/RAMDRIVE/SYSCALL.INC')
| -rw-r--r-- | v4.0/src/DEV/RAMDRIVE/SYSCALL.INC | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/v4.0/src/DEV/RAMDRIVE/SYSCALL.INC b/v4.0/src/DEV/RAMDRIVE/SYSCALL.INC new file mode 100644 index 0000000..9761b0c --- /dev/null +++ b/v4.0/src/DEV/RAMDRIVE/SYSCALL.INC | |||
| @@ -0,0 +1,146 @@ | |||
| 1 | BREAK <system call definitions> | ||
| 2 | |||
| 3 | Abort EQU 0 ; 0 0 | ||
| 4 | Std_Con_Input EQU 1 ; 1 1 | ||
| 5 | Std_Con_Output EQU 2 ; 2 2 | ||
| 6 | Std_Aux_Input EQU 3 ; 3 3 | ||
| 7 | Std_Aux_Output EQU 4 ; 4 4 | ||
| 8 | Std_Printer_Output EQU 5 ; 5 5 | ||
| 9 | Raw_Con_IO EQU 6 ; 6 6 | ||
| 10 | Raw_Con_Input EQU 7 ; 7 7 | ||
| 11 | Std_Con_Input_No_Echo EQU 8 ; 8 8 | ||
| 12 | Std_Con_String_Output EQU 9 ; 9 9 | ||
| 13 | Std_Con_String_Input EQU 10 ; 10 A | ||
| 14 | Std_Con_Input_Status EQU 11 ; 11 B | ||
| 15 | Std_Con_Input_Flush EQU 12 ; 12 C | ||
| 16 | Disk_Reset EQU 13 ; 13 D | ||
| 17 | Set_Default_Drive EQU 14 ; 14 E | ||
| 18 | FCB_Open EQU 15 ; 15 F | ||
| 19 | FCB_Close EQU 16 ; 16 10 | ||
| 20 | Dir_Search_First EQU 17 ; 17 11 | ||
| 21 | Dir_Search_Next EQU 18 ; 18 12 | ||
| 22 | FCB_Delete EQU 19 ; 19 13 | ||
| 23 | FCB_Seq_Read EQU 20 ; 20 14 | ||
| 24 | FCB_Seq_Write EQU 21 ; 21 15 | ||
| 25 | FCB_Create EQU 22 ; 22 16 | ||
| 26 | FCB_Rename EQU 23 ; 23 17 | ||
| 27 | Get_Default_Drive EQU 25 ; 25 19 | ||
| 28 | Set_DMA EQU 26 ; 26 1A | ||
| 29 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 30 | ; C A V E A T P R O G R A M M E R ; | ||
| 31 | ; ; | ||
| 32 | Get_Default_DPB EQU 31 ; 31 1F | ||
| 33 | ; ; | ||
| 34 | ; C A V E A T P R O G R A M M E R ; | ||
| 35 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 36 | FCB_Random_Read EQU 33 ; 33 21 | ||
| 37 | FCB_Random_Write EQU 34 ; 34 22 | ||
| 38 | Get_FCB_File_Length EQU 35 ; 35 23 | ||
| 39 | Get_FCB_Position EQU 36 ; 36 24 | ||
| 40 | Set_Interrupt_Vector EQU 37 ; 37 25 | ||
| 41 | Create_Process_Data_Block EQU 38 ; 38 26 | ||
| 42 | FCB_Random_Read_Block EQU 39 ; 39 27 | ||
| 43 | FCB_Random_Write_Block EQU 40 ; 40 28 | ||
| 44 | Parse_File_Descriptor EQU 41 ; 41 29 | ||
| 45 | Get_Date EQU 42 ; 42 2A | ||
| 46 | Set_Date EQU 43 ; 43 2B | ||
| 47 | Get_Time EQU 44 ; 44 2C | ||
| 48 | Set_Time EQU 45 ; 45 2D | ||
| 49 | Set_Verify_On_Write EQU 46 ; 46 2E | ||
| 50 | ; Extended functionality group | ||
| 51 | Get_DMA EQU 47 ; 47 2F | ||
| 52 | Get_Version EQU 48 ; 48 30 | ||
| 53 | Keep_Process EQU 49 ; 49 31 | ||
| 54 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 55 | ; C A V E A T P R O G R A M M E R ; | ||
| 56 | ; ; | ||
| 57 | Get_DPB EQU 50 ; 50 32 | ||
| 58 | ; ; | ||
| 59 | ; C A V E A T P R O G R A M M E R ; | ||
| 60 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 61 | Set_CTRL_C_Trapping EQU 51 ; 51 33 | ||
| 62 | Get_InDOS_Flag EQU 52 ; 52 34 | ||
| 63 | Get_Interrupt_Vector EQU 53 ; 53 35 | ||
| 64 | Get_Drive_Freespace EQU 54 ; 54 36 | ||
| 65 | Char_Oper EQU 55 ; 55 37 | ||
| 66 | International EQU 56 ; 56 38 | ||
| 67 | ; Directory Group | ||
| 68 | MKDir EQU 57 ; 57 39 | ||
| 69 | RMDir EQU 58 ; 58 3A | ||
| 70 | CHDir EQU 59 ; 59 3B | ||
| 71 | ; File Group | ||
| 72 | Creat EQU 60 ; 60 3C | ||
| 73 | Open EQU 61 ; 61 3D | ||
| 74 | Close EQU 62 ; 62 3E | ||
| 75 | Read EQU 63 ; 63 3F | ||
| 76 | Write EQU 64 ; 64 40 | ||
| 77 | Unlink EQU 65 ; 65 41 | ||
| 78 | LSeek EQU 66 ; 66 42 | ||
| 79 | CHMod EQU 67 ; 67 43 | ||
| 80 | IOCtl EQU 68 ; 68 44 | ||
| 81 | XDup EQU 69 ; 69 45 | ||
| 82 | XDup2 EQU 70 ; 70 46 | ||
| 83 | Current_Dir EQU 71 ; 71 47 | ||
| 84 | ; Memory Group | ||
| 85 | Alloc EQU 72 ; 72 48 | ||
| 86 | Dealloc EQU 73 ; 73 49 | ||
| 87 | Setblock EQU 74 ; 74 4A | ||
| 88 | ; Process Group | ||
| 89 | Exec EQU 75 ; 75 4B | ||
| 90 | Exit EQU 76 ; 76 4C | ||
| 91 | Wait EQU 77 ; 77 4D | ||
| 92 | Find_First EQU 78 ; 78 4E | ||
| 93 | ; Special Group | ||
| 94 | Find_Next EQU 79 ; 79 4F | ||
| 95 | ; SPECIAL SYSTEM GROUP | ||
| 96 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 97 | ; C A V E A T P R O G R A M M E R ; | ||
| 98 | ; ; | ||
| 99 | Set_Current_PDB EQU 80 ; 80 50 | ||
| 100 | Get_Current_PDB EQU 81 ; 81 51 | ||
| 101 | Get_In_Vars EQU 82 ; 82 52 | ||
| 102 | SetDPB EQU 83 ; 83 53 | ||
| 103 | ; ; | ||
| 104 | ; C A V E A T P R O G R A M M E R ; | ||
| 105 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 106 | Get_Verify_On_Write EQU 84 ; 84 54 | ||
| 107 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 108 | ; C A V E A T P R O G R A M M E R ; | ||
| 109 | ; ; | ||
| 110 | Dup_PDB EQU 85 ; 85 55 | ||
| 111 | ; ; | ||
| 112 | ; C A V E A T P R O G R A M M E R ; | ||
| 113 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 114 | Rename EQU 86 ; 86 56 | ||
| 115 | File_Times EQU 87 ; 87 57 | ||
| 116 | AllocOper EQU 88 ; 88 58 | ||
| 117 | ; Network extention system calls | ||
| 118 | GetExtendedError EQU 89 ; 89 59 | ||
| 119 | CreateTempFile EQU 90 ; 90 5A | ||
| 120 | CreateNewFile EQU 91 ; 91 5B | ||
| 121 | LockOper EQU 92 ; 92 5C Lock and Unlock | ||
| 122 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 123 | ; C A V E A T P R O G R A M M E R ; | ||
| 124 | ; ; | ||
| 125 | ServerCall EQU 93 ; 93 5D CommitAll, ServerDOSCall, | ||
| 126 | ; CloseByName, CloseUser, | ||
| 127 | ; CloseUserProcess, | ||
| 128 | ; GetOpenFileList | ||
| 129 | ; ; | ||
| 130 | ; C A V E A T P R O G R A M M E R ; | ||
| 131 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; | ||
| 132 | UserOper EQU 94 ; 94 5E Get and Set | ||
| 133 | AssignOper EQU 95 ; 95 5F On, Off, Get, Set, Cancel | ||
| 134 | xNameTrans EQU 96 ; 96 60 | ||
| 135 | PathParse EQU 97 ; 97 61 | ||
| 136 | GetCurrentPSP EQU 98 ; 98 62 | ||
| 137 | Hongeul EQU 99 ; 99 63 | ||
| 138 | |||
| 139 | Set_Oem_Handler EQU 248 ; 248 F8 | ||
| 140 | OEM_C1 EQU 249 ; 249 F9 | ||
| 141 | OEM_C2 EQU 250 ; 250 FA | ||
| 142 | OEM_C3 EQU 251 ; 251 FB | ||
| 143 | OEM_C4 EQU 252 ; 252 FC | ||
| 144 | OEM_C5 EQU 253 ; 253 FD | ||
| 145 | OEM_C6 EQU 254 ; 254 FE | ||
| 146 | OEM_C7 EQU 255 ; 255 FF | ||