Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/fgetc.a @ 2719:2fda91bdc268 lwtools-port
added httpd
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Thu, 26 Jul 2012 11:01:43 -0500 |
parents | 7d70b7e1cb21 |
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 |