-
Notifications
You must be signed in to change notification settings - Fork 1
/
ELLIPSES.TXT
175 lines (152 loc) · 2.83 KB
/
ELLIPSES.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
NAM ELLIPSES
* DRAW ELLIPSES ON THE SCREEN
STX FDB 0
RR1 LDA #$FF
STA <RRFLG
CLR <FILFLG
BRA A@
RR2 LDA #$FF
STA <RRFLG
STA <FILFLG
BRA A@
ELL2 CLR <RRFLG
LDA #$FF
STA <FILFLG
BRA A@
ELL1 CLR <RRFLG
CLR <FILFLG
A@ LDA <WIDTH
STA <LNEWDT
LDX <AX
STX STX
LEAX 4,X
STX <JOYX
LDA <AY
ADDA #5
STA <JOYY
JSR [VALID]
LDX <JOYX
STX <BH1
LDA <JOYY
STA <BV1
CLRA
LDB #2
JSR [PCOPY]
CLR <WPAGE
EL1 LDA <WIDTH
STA <LNEWDT
LDA <WPAGE
JSR [VIEW]
JSR [PAGEIN]
JSR [DRWARW]
EORA #2
STA <WPAGE
JSR [PAGEIN]
DOEL LDA $FF00
ANDA #1
BEQ A@
TST <WPAGE
BNE B@
LDA #2
CLRB
JSR [PCOPY]
B@ CLR <LNEWDT
LDA <WPAGE
EORA #2
JSR [PAGEIN]
JSR [RPLARW]
CLRA
JSR [VIEW]
JSR [PAGEIN]
JSR [RPLARW]
JMP [MENU]
A@
JSR [JOYSTK]
LDX <JOYX
LEAX 4,X
STX <JOYX
LDA <JOYY
ADDA #5
STA <JOYY
JSR [VALID]
LDX <JOYX
LEAX -4,X
CMPX <AX
BNE A@
LDA <JOYY
SUBA #5
CMPA <AY
LBEQ DOEL
A@
LDA <WPAGE
EORA #2
JSR [PAGEIN]
JSR [RPLARW]
LDA <WPAGE
JSR [PAGEIN]
JSR [GET]
LDX <JOYX
STX <BH2
LEAX -4,X
STX <AX
LDA <JOYY
STA <BV2
SUBA #5
STA <AY
* SORT COORDS
* BH1<BH2
* BV1<BV2
LDU <BH1
LDX <BH2
CMPX <BH1
BHS A@
EXG X,U
A@ STX ELH2
STU ELH1
LDA <BV1
LDB <BV2
CMPB <BV1
BHS A@
EXG A,B
A@ STB ELV2
STA ELV1
LDD ELH2
SUBD ELH1
LSRA
RORB
STD RX
ADDD ELH1
STD X0
LDB ELV2
SUBB ELV1
LSRB
CLRA
STD RY
ADDB ELV1
STB Y0
LDX ELH1
STX SXA
LDX ELH2
STX BXA
LDA ELV1
STA SYA
LDA ELV2
STA BYA
TST RRFLG
BEQ A@
LDX RX
LEAX 3,X 5?
STX RX
LDX RY
LEAX 3,X
STX RY
A@
TST <FILFLG
BEQ A@
LDX #ELHK5
BRA B@
A@ LDX #ELHK4
B@ STX ELHK
JSR ELLPSE
JMP EL1
END