annotate lib/alib/inkey.a @ 2765:0bd16cca86b7

Updated rules.mak for all the os9 format's to format the entire disk. People were having some issues with the disk images not being formatted to their full capacity and preventing some functions from working.
author drencor-xeen
date Thu, 17 Jan 2013 11:03:26 -0600
parents 7d70b7e1cb21
children aaba193af04f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2474
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
1 ***************************************
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
2
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
3 * Subroutine to input one character from std in. if ready
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
4 * like an INKEY$...
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
5
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
6 * OTHER MODULES NEEDED: FGETC
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
7
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
8 * ENTRY: none
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
9
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
10
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
11 * EXIT: A character, 0=no char
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
12 * CC carry set if error (from I$Read)
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
13 * B error code if any
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
14
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
15 nam Inkey
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
16 ttl Assembler Library Module
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
17
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
18
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
19 psect INKEY,0,0,0,0,0
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
20
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
21 INKEY:
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
22 clra std in
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
23 ldb #SS.Ready
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
24 os9 I$GetStt see if key ready
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
25 bcc getit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
26 cmpb #E$NotRdy no keys ready=no error
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
27 bne exit other error, report it
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
28 clra no error
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
29 bra exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
30
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
31 getit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
32 lbsr FGETC go get the key
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
33
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
34 * this inst. needed since ctrl/: sometimes returns a null
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
35 * usually callers are not expecting a null....
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
36
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
37 tsta
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
38
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
39 exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
40 rts
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
41
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
42 endsect
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
43