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
Next revisionBoth sides next revision
x68000:doscall [2017/09/11 04:08] – added _KEYSNS neko68kx68000:doscall [2017/09/11 05:00] – added _CONSNS, _PRNSNS, _CINSNS, _COUTSNS neko68k
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|_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)|
 |$FF08|[[doscall#getc|_GETC]]|Get one character from the keyboard (with break check)| |$FF08|[[doscall#getc|_GETC]]|Get one character from the keyboard (with 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^
 +|Arg|CODE.w|Single-byte character code|
 +|Return|CODE=0xFF,0xFE, Input key code (no input if d0.l =0) \\ CODE=other, d0.l=0||
 +|If the CODE value is 0xFF if the key is not pressed it returns 0 immediately. If CODE=0xFE the key is read and the value stays in the buffer. If CODE is any other value it is regarded as a character code and displayed.|||
 +
 +Usage:
 + move CODE,-(sp)
 + DOS _INPOUT
 + addq.l #2,sp
 --- ---
 ^$FF07^<BOOKMARK:inkey>_INKEY^Enter one character from the keyboard (no break check)^ ^$FF07^<BOOKMARK:inkey>_INKEY^Enter one character from the keyboard (no break check)^
Line 268: 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^
x68000/doscall.txt · Last modified: 2020/01/26 15:54 by sigvec