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