x68000:doscall
This is an old revision of the document!
$ff00 | _EXIT | Terminate program |
End the program. Open file handles are closed. |
$ff01 | _GETCHAR | Wait for keyboard input(with echo) |
Arg | none | |
Return | key code | |
Wait for key input and output the character to stdout. ^C - Return to the parent process ^P - Toggle output stdout to the printer also ^N - Check the printer output state |
$ff02 | _PUTCHAR | Display character |
Arg | CODE.w | Single-byte character |
Return | Always 0 | |
CODE Outputs the character specified by CODE to stdout. It checks whether the key is ^C, ^S, ^P, or ^N. |
Usage:
move CODE,-(sp) DOS _PUTCHAR addq.l #2,sp
x68000/doscall.1502858502.txt.gz · Last modified: 2019/08/27 20:44 (external edit)