annotate 3rdparty/packages/basic09/inkey.asm @ 3054:22ddd48b4ec2

level1 krn: Fix scheduler bug that only affected 6309 The original 6809 binary was correct, but it was disassembled and interpreted wrongly, so that reassembly went wrong on 6309.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 25 Jan 2015 22:36:02 +0100
parents 57f23da9790a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
1 ********************************************************************
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
2 * Inkey - Key detect subroutine
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
3 *
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
4 * $Id$
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
5 *
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
7 * Comment
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
9 * ????/??/??
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
10 * From Tandy OS-9 Level One VR 02.00.00.
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
11 *
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
12 * 1 1998/10/26 Boisy G. Pitre
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
13 * Put a proper edition number after the name.
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
14
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
15 nam Inkey
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
16 ttl Key detect subroutine
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
17
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
18 * Disassembled 98/09/11 11:55:29 by Disasm v1.6 (C) 1988 by RML
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
19
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
20 ifp1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
21 use defsfile
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
22 endc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
23
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
24 tylg set Sbrtn+Objct
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
25 atrv set ReEnt+rev
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
26 rev set $00
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
27 edition set 1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
28
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
29 mod eom,name,tylg,atrv,start,size
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
30
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
31 u0000 rmb 0
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
32 size equ .
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
33
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
34 name fcs /Inkey/
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
35 fcb edition
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
36
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
37 start leax $04,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
38 ldd $02,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
39 cmpd #$0001
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
40 beq L0033
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
41 cmpd #$0002
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
42 bne L0057
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
43 ldd [<$04,s]
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
44 ldx $06,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
45 leax -$01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
46 beq L0031
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
47 leax -$01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
48 bne L0057
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
49 tfr b,a
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
50 L0031 leax $08,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
51 L0033 ldu $02,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
52 ldx ,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
53 ldb #$FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
54 stb ,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
55 cmpu #$0002
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
56 bcs L0043
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
57 stb $01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
58 L0043 ldb #SS.Ready
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
59 os9 I$GetStt
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
60 bcs L0052
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
61 ldy #0001
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
62 os9 I$Read
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
63 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
64 L0052 cmpb #E$NotRdy
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
65 bne L0059
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
66 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
67 L0057 ldb #E$ParmEr
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
68 L0059 coma
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
69 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
70
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
71 emod
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
72 eom equ *
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
73 end
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
74