Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/fgetc.a @ 2474:7d70b7e1cb21
Moved net and alib files into here
author | boisy |
---|---|
date | Tue, 30 Mar 2010 02:44:42 +0000 |
parents | |
children | aaba193af04f |
rev | line source |
---|---|
2474 | 1 *************************************** |
2 | |
3 * Subroutine to input one character. | |
4 | |
5 * OTHER MODULES NEEDED: none | |
6 | |
7 * ENTRY: A=path | |
8 | |
9 | |
10 * EXIT: A character | |
11 * CC carry set if error (from I$Read) | |
12 * B error code if any | |
13 | |
14 nam Input Single Character | |
15 ttl Assembler Library Module | |
16 | |
17 | |
18 psect FGETC,0,0,0,0,0 | |
19 | |
20 FGETC: | |
21 pshs a,x,y | |
22 ldy #1 number of char to print | |
23 tfr s,x point x at 1 char buffer | |
24 os9 I$Read | |
25 puls a,x,y,pc | |
26 | |
27 endsect | |
28 |