Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/go51.asm @ 710:4b8f2de93c51
Added DS40 target
author | boisy |
---|---|
date | Sat, 04 Jan 2003 02:23:45 +0000 |
parents | b19b5d02a2e1 |
children | 67178d0593da |
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 |
118 | 26 u0000 rmb 2 |
27 u0002 rmb 2 | |
28 u0004 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/ |
36 Driver fcs /drvr51/ | |
37 Desc fcs /term/ | |
38 | |
39 start leax >IOMod,pcr | |
268 | 40 lbsr DoLink |
41 lbcs Bye | |
118 | 42 stx ,u |
268 | 43 lbsr DoUnlink |
204 | 44 leax >Driver,pcr |
268 | 45 lbsr DoLink |
46 lbcs Bye | |
118 | 47 stx u0002,u |
48 ldd $02,x | |
49 std u0004,u | |
50 pshs u,cc | |
203 | 51 orcc #IntMasks |
204 | 52 ldx >D.AltIRQ |
118 | 53 stx >$0032 |
54 ldy ,u | |
55 ldx u0004,u | |
56 ldu u0002,u | |
57 L0054 lda ,u+ | |
58 sta ,y+ | |
59 leax -$01,x | |
60 bne L0054 | |
61 ldx #$FF00 | |
62 lda $01,x | |
63 ora #$30 | |
64 anda #$F7 | |
65 sta $01,x | |
66 lda $03,x | |
67 anda #$F6 | |
68 ora #$30 | |
69 sta $03,x | |
70 ldx #$FF20 | |
71 lda $03,x | |
72 ora #$38 | |
73 sta $03,x | |
74 puls u,cc | |
75 ldx u0002,u | |
268 | 76 lbsr DoUnlink |
118 | 77 ldx ,u |
78 ldd $04,x | |
79 leax d,x | |
204 | 80 leay >IOMod,pcr |
118 | 81 ldb #$06 |
82 L008B lda ,y+ | |
83 sta ,x+ | |
84 decb | |
85 bne L008B | |
86 lda #$01 | |
204 | 87 ldb #SS.Opt |
268 | 88 leax OptBuf,u |
118 | 89 os9 I$GetStt |
268 | 90 bcs Bye |
91 clr (PD.UPC-PD.OPT),x | |
92 lda #24 | |
93 sta (PD.PAG-PD.OPT),x | |
118 | 94 lda #$01 |
204 | 95 ldb #SS.Opt |
118 | 96 os9 I$SetStt |
268 | 97 bcs Bye |
204 | 98 leax >Desc,pcr |
99 lda #Devic+Objct | |
118 | 100 pshs u |
101 os9 F$Link | |
102 tfr u,x | |
103 puls u | |
268 | 104 bcs Bye |
118 | 105 clr <$13,x |
106 lda #$18 | |
107 sta <$1A,x | |
268 | 108 bsr DoUnlink |
118 | 109 clrb |
268 | 110 Bye os9 F$Exit |
111 | |
112 DoLink pshs u | |
204 | 113 lda #Drivr+Objct |
118 | 114 os9 F$Link |
115 tfr u,x | |
116 puls pc,u | |
268 | 117 |
118 DoUnlink pshs u | |
118 | 119 tfr x,u |
120 os9 F$UnLink | |
121 puls pc,u | |
204 | 122 |
118 | 123 emod |
124 eom equ * | |
204 | 125 end |