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:04] – added _GETSS neko68kx68000:doscall [2017/09/11 04:22] – added _INPOUT neko68k
Line 16: Line 16:
 |$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|_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)|
 |$FF09|[[doscall#print|_PRINT]]|Print string| |$FF09|[[doscall#print|_PRINT]]|Print string|
 |$FF0A|[[doscall#gets|_GETS]]|Get character string (with break check)| |$FF0A|[[doscall#gets|_GETS]]|Get character string (with break check)|
-|$FF0B|_KEYSNS|Key input state check|+|$FF0B|[[doscall#keysns|_KEYSNS]]|Key input state check|
 |$FF0C|_KFLUSH|Keyboard input after buffer flush| |$FF0C|_KFLUSH|Keyboard input after buffer flush|
 |$FF0D|[[doscall#fflush|_FFLUSH]]|Disk reset| |$FF0D|[[doscall#fflush|_FFLUSH]]|Disk reset|
Line 211: Line 211:
  DOS _COMOUT  DOS _COMOUT
  addq.l #2,sp  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 247: Line 256:
  DOS _GETS  DOS _GETS
  addq.l #4,sp  addq.l #4,sp
 +---
 +^$FF0B^<BOOKMARK:keysns>_KEYSNS^Check key input state^
 +|Arg|None||
 +|Return|Input state (0: no input, -1: input)||
 +|Examine the key input state. Checks for %%^%%C, %%^%%S, %%^%%P, or %%^%%N. |||
  
 --- ---
x68000/doscall.txt · Last modified: 2020/01/26 15:54 by sigvec