x68000:doscall
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
x68000:doscall [2017/09/10 13:11] – added _DSKFRE neko68k | x68000:doscall [2017/09/10 15:38] – neko68k | ||
---|---|---|---|
Line 13: | Line 13: | ||
|$FF01|[[doscall# | |$FF01|[[doscall# | ||
|$FF02|[[doscall# | |$FF02|[[doscall# | ||
- | |$FF03|_COMINP|RS-232C 1 byte input| | + | |$FF03|[[doscall# |
- | |$FF04|_COMOUT|RS-232C 1 byte output| | + | |$FF04|[[doscall# |
|$FF05|_PRNOUT|Printer 1 character output| | |$FF05|_PRNOUT|Printer 1 character output| | ||
|$FF06|_INPOUT|Character I/O| | |$FF06|_INPOUT|Character I/O| | ||
Line 43: | Line 43: | ||
^Code^Name^Description^ | ^Code^Name^Description^ | ||
- | |$FF20|_SUPER|Supervisor/ | + | |$FF20|[[doscall# |
|$FF21|_FNCKEY|Get/ | |$FF21|_FNCKEY|Get/ | ||
|$FF22|_KNJCTRL|Kana-to-kanji conversion| | |$FF22|_KNJCTRL|Kana-to-kanji conversion| | ||
Line 61: | Line 61: | ||
^Code^Name^Description^ | ^Code^Name^Description^ | ||
- | |$FF30|_VERNUM|Get OS version| | + | |$FF30|[[doscall# |
|$FF31|_KEEPPR|Terminate and stay resident| | |$FF31|_KEEPPR|Terminate and stay resident| | ||
|$FF32|_GETDPB|Get drive parameter block| | |$FF32|_GETDPB|Get drive parameter block| | ||
Line 105: | Line 105: | ||
|$FF87|_FILEDATE|Get/ | |$FF87|_FILEDATE|Get/ | ||
|$FF88|_MALLOC2|Alloc memory| | |$FF88|_MALLOC2|Alloc memory| | ||
- | |$FF8A|_MAKETMP|Create temporary file| | + | |$FF8A|[[doscall# |
|$FF8B|_NEWFILE|Create new file| | |$FF8B|_NEWFILE|Create new file| | ||
|$FF8C|_LOCK|Lock file| | |$FF8C|_LOCK|Lock file| | ||
Line 196: | Line 196: | ||
DOS _PUTCHAR | DOS _PUTCHAR | ||
addq.l # | addq.l # | ||
+ | --- | ||
+ | ^$FF03^< | ||
+ | |Arg|None|| | ||
+ | |Return|1 byte received|| | ||
+ | |Receive 1 byte from the RS-232C port (with break check)||| | ||
+ | --- | ||
+ | ^$FF04^< | ||
+ | |Arg|CODE.w|Byte code| | ||
+ | |Return|None|| | ||
+ | |Send 1 byte to the RS-232C port (with break check)||| | ||
+ | |||
+ | Usage: | ||
+ | move CODE, | ||
+ | DOS _COMOUT | ||
+ | addq.l # | ||
+ | |||
--- | --- | ||
^$FF07^< | ^$FF07^< | ||
Line 298: | Line 314: | ||
DOS _FPUTS | DOS _FPUTS | ||
addq.l # | addq.l # | ||
- | |||
--- | --- | ||
^$FF1F^< | ^$FF1F^< | ||
Line 304: | Line 319: | ||
|Return|None|| | |Return|None|| | ||
|Close all open files||| | |Close all open files||| | ||
+ | --- | ||
+ | ^$FF20^< | ||
+ | |Arg|STACK.l|Switching mode (0 or address set in SSP)| | ||
+ | |Return|STACK=0 Value of the previous SSP (error code if negative) \\ Switch the supervisor/ | ||
+ | |Close all open files||| | ||
+ | |||
+ | Usage: | ||
+ | pea (STACK) | ||
+ | DOS _SUPER | ||
+ | addq.l # | ||
+ | --- | ||
+ | ^$FF30^< | ||
+ | |Arg|None|| | ||
+ | |Return|Version number|| | ||
+ | |Check the verion number of Human68k \\ \\ bit 31~24 ' | ||
--- | --- | ||
^$FF36^< | ^$FF36^< | ||
Line 315: | Line 345: | ||
|4|1.w|Number of sectors per cluster| | |4|1.w|Number of sectors per cluster| | ||
|6|1.w|Number of bytes per sector| | |6|1.w|Number of bytes per sector| | ||
+ | |||
+ | Usage: | ||
+ | pea (BUFFER) | ||
+ | move DRIVE, | ||
+ | DOS _DSKFRE | ||
+ | addq.l # | ||
--- | --- | ||
^$FF39^< | ^$FF39^< | ||
Line 487: | Line 523: | ||
|Return|Exit code|| | |Return|Exit code|| | ||
|Examine the exit code of the executed process. It is the same as the return value of //DOS _EXEC(MODE=0, | |Examine the exit code of the executed process. It is the same as the return value of //DOS _EXEC(MODE=0, | ||
+ | --- | ||
+ | ^$FF8A^< | ||
+ | |Arg 1|FILE.l|Pointer to file name| | ||
+ | |Arg 2|ATR.w|File attribute (%XLAD_VSHR)| | ||
+ | |Return|The file handle of the created file. If negative, an error occured.|| | ||
+ | |Create a temporary file specified by FILE with attributes ATR. The file name can contain '?', | ||
+ | |||
+ | Usage: | ||
+ | move ATR, | ||
+ | pea (FILE) | ||
+ | DOS _MAKETMP | ||
+ | addq.l # | ||
x68000/doscall.txt · Last modified: 2020/01/26 15:54 by sigvec