User Tools

Site Tools


x68000:doscall

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
x68000:doscall [2017/09/11 04:22] – added _INPOUT neko68kx68000:doscall [2020/01/26 15:54] (current) – [Detailed Descriptions] sigvec
Line 5: Line 5:
  to $FF80~$FFAF in Version 3 and later  to $FF80~$FFAF in Version 3 and later
  
- Processing address calls at $FFF5~$FFF7 and $FFFA~$FFfE can not be changed(ignored)+ Processing address calls at $FFF5~$FFF7 and $FFFA~$FFFE can not be changed(ignored)
  $FFF8,$FFFF is executed after the original processing is normally completed.  $FFF8,$FFFF is executed after the original processing is normally completed.
  $FFF8 is called every time a thread is deleted.  $FFF8 is called every time a thread is deleted.
Line 15: Line 15:
 |$FF03|[[doscall#cominp|_COMINP]]|RS-232C 1 byte input| |$FF03|[[doscall#cominp|_COMINP]]|RS-232C 1 byte input|
 |$FF04|[[doscall#comout|_COMOUT]]|RS-232C 1 byte output| |$FF04|[[doscall#comout|_COMOUT]]|RS-232C 1 byte output|
-|$FF05|_PRNOUT|Printer 1 character output|+|$FF05|[[doscall#prnout|_PRNOUT]]|Printer 1 character output|
 |$FF06|[[doscall#inpout|_INPOUT]]|Character I/O| |$FF06|[[doscall#inpout|_INPOUT]]|Character I/O|
 |$FF07|[[doscall#inkey|_INKEY]]|Get one character from the keyboard (no break check)| |$FF07|[[doscall#inkey|_INKEY]]|Get one character from the keyboard (no break check)|
Line 28: Line 28:
  
 ^Code^Name^Description^ ^Code^Name^Description^
-|$FF10|_CONSNS|Screen output check| +|$FF10|[[doscall#consns|_CONSNS]]|Screen output check| 
-|$FF11|_PRNSNS|Printer output check| +|$FF11|[[doscall#prnsns|_PRNSNS]]|Printer output check| 
-|$FF12|_CINSNS|RS-232C input check| +|$FF12|[[doscall#cinsns|_CINSNS]]|RS-232C input check| 
-|$FF13|_COUTSNS|RS-232C output check|+|$FF13|[[doscall#coutsns|_COUTSNS]]|RS-232C output check|
 |$FF17|_FATCHK|File concatenation state check| |$FF17|_FATCHK|File concatenation state check|
 |$FF18|_HENDSP|Kanji conversion control| |$FF18|_HENDSP|Kanji conversion control|
Line 211: Line 211:
  DOS _COMOUT  DOS _COMOUT
  addq.l #2,sp  addq.l #2,sp
 +---
 +^$FF05^<BOOKMARK:prnout>_PRNOUT^Output 1 character to the printer^
 +|Arg|CODE.w|Single-byte character code|
 +|Return|None||
 +|Output one character specified by CODE to the printer (with break check). Because the high-order byte of CODE must be 0, kanji is output by sending two bytes in a row in the order of high byte first, then low byte.|||
 +
 +Usage:
 + move CODE,-(sp)
 + DOS _PRNOUT
 + addq.l #2,sp
 +
 --- ---
 ^$FF06^<BOOKMARK:INPOUT>_INPOUT^Key input/output^ ^$FF06^<BOOKMARK:INPOUT>_INPOUT^Key input/output^
Line 277: Line 288:
  DOS _CHGDRV  DOS _CHGDRV
  addq.l #2,sp  addq.l #2,sp
 +---
 +^$FF10^<BOOKMARK:consns>_CONSNS^Check if screen output is possible^
 +|Arg|none||
 +|Return|Output status (0: output impossible, nonzero: output possible)||
 +|Check if screen output is possible.|||
 +---
 +^$FF11^<BOOKMARK:prnsns>_PRNSNS^Check if printer output is possible^
 +|Arg|none||
 +|Return|Output status (0: output impossible, nonzero: output possible)||
 +|Check if printer output is possible.|||
 +---
 +^$FF12^<BOOKMARK:cinsns>_CINSNS^Check if RS-232C input is possible^
 +|Arg|none||
 +|Return|Output status (0: input impossible, nonzero: input possible)||
 +|Check if RS-232C input is possible.|||
 +---
 +^$FF13^<BOOKMARK:coutsns>_COUTSNS^Check if RS-232C output is possible^
 +|Arg|none||
 +|Return|Output status (0: output impossible, nonzero: output possible)||
 +|Check if RS-232C output is possible.|||
 --- ---
 ^$FF19^<BOOKMARK:curdrv>_CURDRV^Get the current drive^ ^$FF19^<BOOKMARK:curdrv>_CURDRV^Get the current drive^
Line 482: Line 513:
 ^$FF42^<BOOKMARK:seek>_SEEK^Move file pointer^ ^$FF42^<BOOKMARK:seek>_SEEK^Move file pointer^
 |Arg 1|FILENO.w|File handle| |Arg 1|FILENO.w|File handle|
-|Arg 2|MODE.w|Movement mode|+|Arg 2|OFFSET.l|File offset| 
 +|Arg 3|MODE.w|Movement mode|
 |Return|Offset from the beginning of the file.|| |Return|Offset from the beginning of the file.||
 |The pointer of the file specified by FILENO is moved based on the specified MODE and OFFSET. Attempts to move past the beginning or end of the file results in an error. The character device can't seek and the current position will always return 0. \\ \\ MODE = 0 - Start \\ MODE = 1 - Current position (Negative offsets will move the pointer forward) \\ MODE = 2 - EOF (offset must be less than or equal to 0.)||| |The pointer of the file specified by FILENO is moved based on the specified MODE and OFFSET. Attempts to move past the beginning or end of the file results in an error. The character device can't seek and the current position will always return 0. \\ \\ MODE = 0 - Start \\ MODE = 1 - Current position (Negative offsets will move the pointer forward) \\ MODE = 2 - EOF (offset must be less than or equal to 0.)|||
x68000/doscall.1505067777.txt.gz · Last modified: 2019/08/27 20:44 (external edit)