annotate level1/cmds/go51.asm @ 880:67178d0593da

Made more comments
author boisy
date Fri, 17 Jan 2003 04:46:24 +0000
parents b19b5d02a2e1
children c155aac72190
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
1 ********************************************************************
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
2 * go51 - The 51 column by 24 line video display
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
3 *
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
4 * $Id$
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
5 *
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
7 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
8 * 1 From Dragon OS-9 Level One VR 01.02.00
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
9
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
10 nam go51
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
11 ttl The 51 column by 24 line video display
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
12
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
13 * Disassembled 02/07/06 21:10:42 by Disasm v1.6 (C) 1988 by RML
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
14
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
15 ifp1
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
16 use defsfile
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
17 endc
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
18
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
19 tylg set Prgrm+Objct
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
20 atrv set ReEnt+rev
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
21 rev set $01
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
22 edition set 1
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
23
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
25
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
26 ioptr rmb 2
67178d0593da Made more comments
boisy
parents: 268
diff changeset
27 drvrptr rmb 2
67178d0593da Made more comments
boisy
parents: 268
diff changeset
28 drvrsiz rmb 2
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
29 OptBuf rmb 32
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
30 size equ .
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
31
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
32 name fcs /go51/
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
33 fcb edition
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 120
diff changeset
34
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
35 IOMod fcs /KBVDIO/
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
36 IOModL equ *-IOMod
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
37 Driver fcs /drvr51/
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
38 Desc fcs /term/
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
39
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
40 start leax >IOMod,pcr point to I/O module
67178d0593da Made more comments
boisy
parents: 268
diff changeset
41 lbsr DoLink link to it
67178d0593da Made more comments
boisy
parents: 268
diff changeset
42 lbcs Bye branch if error
67178d0593da Made more comments
boisy
parents: 268
diff changeset
43 stx ioptr,u save ptr to module
67178d0593da Made more comments
boisy
parents: 268
diff changeset
44 lbsr DoUnlink unlink it
67178d0593da Made more comments
boisy
parents: 268
diff changeset
45 leax >Driver,pcr point to driver
67178d0593da Made more comments
boisy
parents: 268
diff changeset
46 lbsr DoLink link to it
67178d0593da Made more comments
boisy
parents: 268
diff changeset
47 lbcs Bye branch if error
67178d0593da Made more comments
boisy
parents: 268
diff changeset
48 stx drvrptr,u save ptr to driver
67178d0593da Made more comments
boisy
parents: 268
diff changeset
49 ldd M$Size,x get module size
67178d0593da Made more comments
boisy
parents: 268
diff changeset
50 std drvrsiz,u save driver size
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
51 pshs u,cc
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
52 orcc #IntMasks mask interrupts
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
53 ldx >D.AltIRQ
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
54 stx >D.IRQ swap irq vector
67178d0593da Made more comments
boisy
parents: 268
diff changeset
55 ldy ioptr,u
67178d0593da Made more comments
boisy
parents: 268
diff changeset
56 ldx drvrsiz,u get driver size
67178d0593da Made more comments
boisy
parents: 268
diff changeset
57 ldu drvrptr,u get driver pointer
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
58 L0054 lda ,u+
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
59 sta ,y+
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
60 leax -$01,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
61 bne L0054
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
62 ldx #$FF00
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
63 lda $01,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
64 ora #$30
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
65 anda #$F7
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
66 sta $01,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
67 lda $03,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
68 anda #$F6
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
69 ora #$30
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
70 sta $03,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
71 ldx #$FF20
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
72 lda $03,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
73 ora #$38
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
74 sta $03,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
75 puls u,cc
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
76 ldx drvrptr,u get pointer to driver module
67178d0593da Made more comments
boisy
parents: 268
diff changeset
77 lbsr DoUnlink unlink it
67178d0593da Made more comments
boisy
parents: 268
diff changeset
78 ldx ioptr,u get io mod pointer
67178d0593da Made more comments
boisy
parents: 268
diff changeset
79 ldd M$Name,x get offset to I/O module name
67178d0593da Made more comments
boisy
parents: 268
diff changeset
80 leax d,x point X to name
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
81 leay >IOMod,pcr
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
82 ldb #IOModL
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
83 L008B lda ,y+
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
84 sta ,x+
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
85 decb
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
86 bne L008B
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
87 lda #$01 standard output
67178d0593da Made more comments
boisy
parents: 268
diff changeset
88 ldb #SS.Opt option getstat
67178d0593da Made more comments
boisy
parents: 268
diff changeset
89 leax OptBuf,u point to buffer
67178d0593da Made more comments
boisy
parents: 268
diff changeset
90 os9 I$GetStt get status
67178d0593da Made more comments
boisy
parents: 268
diff changeset
91 bcs Bye branch if error
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
92 clr (PD.UPC-PD.OPT),x
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
93 lda #24
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
94 sta (PD.PAG-PD.OPT),x
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
95 lda #$01
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
96 ldb #SS.Opt
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
97 os9 I$SetStt
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
98 bcs Bye
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
99 leax >Desc,pcr
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
100 lda #Devic+Objct
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
101 pshs u
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
102 os9 F$Link
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
103 tfr u,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
104 puls u
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
105 bcs Bye
880
67178d0593da Made more comments
boisy
parents: 268
diff changeset
106 clr <IT.UPC,x clear uppercase flag
67178d0593da Made more comments
boisy
parents: 268
diff changeset
107 lda #24 new screen has 24 lines
67178d0593da Made more comments
boisy
parents: 268
diff changeset
108 sta <IT.PAG,x save it
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
109 bsr DoUnlink
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
110 clrb
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
111 Bye os9 F$Exit
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
112
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
113 DoLink pshs u
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
114 lda #Drivr+Objct
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
115 os9 F$Link
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
116 tfr u,x
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
117 puls pc,u
268
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
118
b19b5d02a2e1 Source enhancements
boisy
parents: 204
diff changeset
119 DoUnlink pshs u
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
120 tfr x,u
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
121 os9 F$UnLink
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
122 puls pc,u
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
123
118
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
124 emod
ce8dbdbb3ca2 The Go51 module for 51x24 display
roug
parents:
diff changeset
125 eom equ *
204
338195952a01 Made some source improvements
boisy
parents: 203
diff changeset
126 end