ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 1 PC Object I Line Source A 1 ; ZiLOG Z8 Encore! ANSI C Compiler Release 3.51 A 2 ; -noregvar -debug -const=RAM -model=L -nooptlink -reduceopt A 3 ; -norevaa -peephole -localcse -optsize -alias -doublesize=32 A 4 ; -floatsize=32 -bitfieldsize=32 -longsize=32 -charsize=8 A 5 ; -intsize=16 A 6 DEFINE mazer_TEXT,SPACE=ROM A 7 FILE "..\MAZER.C" A 8 .debug "C" A 9 SEGMENT FAR_BSS 000000 A 10 _a: 000000 A 11 DS 2*1 A 12 .define "a" A 13 .alias "_a" A 14 .class 83 A 15 .value _a A 16 .type 3 A 17 .type 0 A 18 .endef 000002 A 19 _b: 000002 A 20 DS 2*1 A 21 .define "b" A 22 .alias "_b" A 23 .class 83 A 24 .value _b A 25 .type 3 A 26 .type 0 A 27 .endef 000004 A 28 _d: 000004 A 29 DS 2*1 A 30 .define "d" A 31 .alias "_d" A 32 .class 83 A 33 .value _d A 34 .type 3 A 35 .type 0 A 36 .endef A 37 SEGMENT ROM_DATA A 38 A 39 A 40 ;**************************** _main *************************** A 41 ;Name Addr/Register Size Type A 42 ;_left IMPORT ----- function A 43 ;_rotateL IMPORT ----- function A 44 ;_right IMPORT ----- function A 45 ;_forward IMPORT ----- function A 46 ;_rotateR IMPORT ----- function A 47 ;_reverse IMPORT ----- function A 48 ;_b STATIC 1 variable A 49 ;_a STATIC 1 variable A 50 ;input R15-2 1 variable A 51 A 52 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 2 PC Object I Line Source mazer.src A 53 ; Aggregate Stack Size: -2 (words) A 54 A 55 A 56 ; 1 #include A 57 ; 2 A 58 ; 3 void forward(int ontime1, int offtime1); A 59 ; 4 void reverse(int ontime1, int offtime1); A 60 ; 5 void left(int ontime1, int offtime1); A 61 ; 6 void rotateL(int ontime1, int offtime1); A 62 ; 7 void right(int ontime1, int offtime1); A 63 ; 8 void rotateR(int ontime1, int offtime1); A 64 ; 9 A 65 ; 10 int a, b, d; A 66 SEGMENT mazer_TEXT A 67 ; 11 A 68 ; 12 void main() A 69 ; 13 { 000000 A 70 _main: A 71 .define "_main" A 72 .value _main A 73 .class 2 A 74 .type 65 A 75 .type 0 A 76 .endef A 77 .begfunc "main",13,"_main" A 78 .define "input" A 79 .class 1 A 80 .value -2 A 81 .type 3 A 82 .type 0 A 83 .endef 000000 9C02 A 84 LD R9,#2 000002 D6 0000 A 85 CALL __b_frameset0 A 86 ; 14 int input; A 87 ; 15 a=0; A 88 .line 15 000005 E9000000 A 89 LDX _a,#-0 000009 E9000001 A 90 LDX _a+1,#-0 A 91 ; 16 A 92 ; 17 // PAADDR=0x01; A 93 ; 18 PADD=0xff; //Port A all input A 94 .line 18 00000D E9010FD0 A 95 LDX 4048,#1 000011 E9FF0FD1 A 96 LDX 4049,#255 A 97 ; 19 // PBADDR=0x01; A 98 ; 20 PBDD=0x00; //Port B all output A 99 .line 20 000015 E9010FD4 A 100 LDX 4052,#1 000019 E9000FD5 A 101 LDX 4053,#-0 A 102 ; 21 // PCADDR=0x01; A 103 ; 22 PCDD=0xff; //Port C all input A 104 .line 22 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 3 PC Object I Line Source mazer.src 00001D E9010FD8 A 105 LDX 4056,#1 000021 E9FF0FD9 A 106 LDX 4057,#255 A 107 ; 23 A 108 ; 24 input=PAIN; A 109 .line 24 000025 840FD2 A 110 LDX R0,4050 000028 B0E1 A 111 CLR R1 00002A 89E1FE A 112 LDX -2(RR14),R1 00002D 89E0FF A 113 LDX -1(RR14),R0 A 114 ; 25 input=input&0x70; A 115 .line 25 000030 880EFF A 116 LDX R0,-1(RR14) 000033 56E070 A 117 AND R0,#112 000036 89E0FF A 118 LDX -1(RR14),R0 000039 B0E0 A 119 CLR R0 00003B 89E0FE A 120 LDX -2(RR14),R0 A 121 ; 26 A 122 ; 27 /* PB truth table: hex value: A 123 ; 28 0000 = stop 0x00 A 124 ; 29 0010 = left 0x02 A 125 ; 30 1111 = reverse 0x0f A 126 ; 31 1110 = rotateL 0x0e A 127 ; 32 1000 = right 0x08 A 128 ; 33 1011 = rotateR 0x0b A 129 ; 34 1010 = forward 0x0a A 130 ; 35 A 131 ; 36 Sensor truth table: hex value: A 132 ; 37 000 = reverse 0x00 A 133 ; 38 001 = rotateR 0x01 A 134 ; 39 010 = forward 0x02 A 135 ; 40 011 = right 0x03 A 136 ; 41 100 = rotateL 0x04 A 137 ; 42 101 = 0x05 A 138 ; 43 110 = left 0x06 A 139 ; 44 111 = forward 0x07 A 140 ; 45 */ A 141 ; 46 while(1) A 142 .line 46 A 143 ; 47 { A 144 ; 48 while(input==0x00) A 145 .line 48 00003E 8B 4D A 146 JR _1_L_8 000040 A 147 _1_L_9: 000040 E9000002 A 148 LDX _b,#-0 000044 E9000003 A 149 LDX _b+1,#-0 A 150 ; 49 { A 151 ; 50 for(b=0;b<10;b++){ A 152 .line 50 000048 8B 1F A 153 JR _1_L_6 00004A A 154 _1_L_4: A 155 ; 51 reverse(400,800);} A 156 .line 51 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 4 PC Object I Line Source mazer.src 00004A 1F7020 A 157 PUSH #32 00004D 1F7003 A 158 PUSH #3 000050 1F7090 A 159 PUSH #144 000053 1F7001 A 160 PUSH #1 000056 D6 02FA A 161 CALL _reverse 000059 50E0 A 162 POP R0 00005B 50E0 A 163 POP R0 00005D 50E0 A 164 POP R0 00005F 50E0 A 165 POP R0 000061 09010003 A 166 ADDX _b+1,#1 000065 19000002 A 167 ADCX _b,#-0 000069 A 168 _1_L_6: A 169 .line 50 000069 A90A0003 A 170 CPX _b+1,#10 00006D 1FA90000 02 A 171 CPCX _b,#0 000072 1B D6 A 172 JR LT,_1_L_4 A 173 ; 52 input=PAIN; A 174 .line 52 000074 840FD2 A 175 LDX R0,4050 000077 B0E1 A 176 CLR R1 000079 89E1FE A 177 LDX -2(RR14),R1 00007C 89E0FF A 178 LDX -1(RR14),R0 A 179 ; 53 input=input&0x70; A 180 .line 53 00007F 880EFF A 181 LDX R0,-1(RR14) 000082 56E070 A 182 AND R0,#112 000085 89E0FF A 183 LDX -1(RR14),R0 000088 B0E0 A 184 CLR R0 00008A 89E0FE A 185 LDX -2(RR14),R0 A 186 ; 54 } 00008D A 187 _1_L_8: A 188 .line 54 00008D 880EFE A 189 LDX R0,-2(RR14) 000090 881EFF A 190 LDX R1,-1(RR14) 000093 A6E100 A 191 CP R1,#0 000096 1FA6E000 A 192 CPC R0,#-0 00009A 6B A4 A 193 JR Z,_1_L_9 A 194 ; 55 while(input==0x10) A 195 .line 55 00009C 8B 38 A 196 JR _1_L_10 00009E A 197 _1_L_11: A 198 ; 56 { A 199 ; 57 rotateR(550,650); A 200 .line 57 00009E 1F708A A 201 PUSH #138 0000A1 1F7002 A 202 PUSH #2 0000A4 1F7026 A 203 PUSH #38 0000A7 1F7002 A 204 PUSH #2 0000AA D6 044E A 205 CALL _rotateR 0000AD 50E0 A 206 POP R0 0000AF 50E0 A 207 POP R0 0000B1 50E0 A 208 POP R0 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 5 PC Object I Line Source mazer.src 0000B3 50E0 A 209 POP R0 A 210 ; 58 a=1; A 211 .line 58 0000B5 E9000000 A 212 LDX _a,#-0 0000B9 E9010001 A 213 LDX _a+1,#1 A 214 ; 59 input=PAIN; A 215 .line 59 0000BD 840FD2 A 216 LDX R0,4050 0000C0 B0E1 A 217 CLR R1 0000C2 89E1FE A 218 LDX -2(RR14),R1 0000C5 89E0FF A 219 LDX -1(RR14),R0 A 220 ; 60 input=input&0x70; A 221 .line 60 0000C8 880EFF A 222 LDX R0,-1(RR14) 0000CB 56E070 A 223 AND R0,#112 0000CE 89E0FF A 224 LDX -1(RR14),R0 0000D1 B0E0 A 225 CLR R0 0000D3 89E0FE A 226 LDX -2(RR14),R0 A 227 ; 61 } 0000D6 A 228 _1_L_10: A 229 .line 61 0000D6 880EFE A 230 LDX R0,-2(RR14) 0000D9 881EFF A 231 LDX R1,-1(RR14) 0000DC A6E110 A 232 CP R1,#16 0000DF 1FA6E000 A 233 CPC R0,#-0 0000E3 6B B9 A 234 JR Z,_1_L_11 A 235 ; 62 while(input==0x20) A 236 .line 62 0000E5 8B 30 A 237 JR _1_L_13 0000E7 A 238 _1_L_14: A 239 ; 63 { A 240 ; 64 forward(300,900); A 241 .line 64 0000E7 1F7084 A 242 PUSH #132 0000EA 1F7003 A 243 PUSH #3 0000ED 1F702C A 244 PUSH #44 0000F0 1F7001 A 245 PUSH #1 0000F3 D6 04A3 A 246 CALL _forward 0000F6 50E0 A 247 POP R0 0000F8 50E0 A 248 POP R0 0000FA 50E0 A 249 POP R0 0000FC 50E0 A 250 POP R0 A 251 ; 65 input=PAIN; A 252 .line 65 0000FE 840FD2 A 253 LDX R0,4050 000101 B0E1 A 254 CLR R1 000103 89E1FE A 255 LDX -2(RR14),R1 000106 89E0FF A 256 LDX -1(RR14),R0 A 257 ; 66 input=input&0x70; A 258 .line 66 000109 880EFF A 259 LDX R0,-1(RR14) 00010C 56E070 A 260 AND R0,#112 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 6 PC Object I Line Source mazer.src 00010F 89E0FF A 261 LDX -1(RR14),R0 000112 B0E0 A 262 CLR R0 000114 89E0FE A 263 LDX -2(RR14),R0 A 264 ; 67 } 000117 A 265 _1_L_13: A 266 .line 67 000117 880EFE A 267 LDX R0,-2(RR14) 00011A 881EFF A 268 LDX R1,-1(RR14) 00011D A6E120 A 269 CP R1,#32 000120 1FA6E000 A 270 CPC R0,#-0 000124 6B C1 A 271 JR Z,_1_L_14 A 272 ; 68 while(input==0x30) //right A 273 .line 68 000126 8B 38 A 274 JR _1_L_16 000128 A 275 _1_L_17: A 276 ; 69 { A 277 ; 70 right(600,600); A 278 .line 70 000128 1F7058 A 279 PUSH #88 00012B 1F7002 A 280 PUSH #2 00012E 1F7058 A 281 PUSH #88 000131 1F7002 A 282 PUSH #2 000134 D6 03F9 A 283 CALL _right 000137 50E0 A 284 POP R0 000139 50E0 A 285 POP R0 00013B 50E0 A 286 POP R0 00013D 50E0 A 287 POP R0 A 288 ; 71 a=1; A 289 .line 71 00013F E9000000 A 290 LDX _a,#-0 000143 E9010001 A 291 LDX _a+1,#1 A 292 ; 72 input=PAIN; A 293 .line 72 000147 840FD2 A 294 LDX R0,4050 00014A B0E1 A 295 CLR R1 00014C 89E1FE A 296 LDX -2(RR14),R1 00014F 89E0FF A 297 LDX -1(RR14),R0 A 298 ; 73 input=input&0x70; A 299 .line 73 000152 880EFF A 300 LDX R0,-1(RR14) 000155 56E070 A 301 AND R0,#112 000158 89E0FF A 302 LDX -1(RR14),R0 00015B B0E0 A 303 CLR R0 00015D 89E0FE A 304 LDX -2(RR14),R0 A 305 ; 74 } 000160 A 306 _1_L_16: A 307 .line 74 000160 880EFE A 308 LDX R0,-2(RR14) 000163 881EFF A 309 LDX R1,-1(RR14) 000166 A6E130 A 310 CP R1,#48 000169 1FA6E000 A 311 CPC R0,#-0 00016D 6B B9 A 312 JR Z,_1_L_17 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 7 PC Object I Line Source mazer.src A 313 ; 75 while(input==0x40) A 314 .line 75 00016F 8B 38 A 315 JR _1_L_19 000171 A 316 _1_L_20: A 317 ; 76 { A 318 ; 77 rotateL(550,650); A 319 .line 77 000171 1F708A A 320 PUSH #138 000174 1F7002 A 321 PUSH #2 000177 1F7026 A 322 PUSH #38 00017A 1F7002 A 323 PUSH #2 00017D D6 03A4 A 324 CALL _rotateL 000180 50E0 A 325 POP R0 000182 50E0 A 326 POP R0 000184 50E0 A 327 POP R0 000186 50E0 A 328 POP R0 A 329 ; 78 a=0; A 330 .line 78 000188 E9000000 A 331 LDX _a,#-0 00018C E9000001 A 332 LDX _a+1,#-0 A 333 ; 79 input=PAIN; A 334 .line 79 000190 840FD2 A 335 LDX R0,4050 000193 B0E1 A 336 CLR R1 000195 89E1FE A 337 LDX -2(RR14),R1 000198 89E0FF A 338 LDX -1(RR14),R0 A 339 ; 80 input=input&0x70; A 340 .line 80 00019B 880EFF A 341 LDX R0,-1(RR14) 00019E 56E070 A 342 AND R0,#112 0001A1 89E0FF A 343 LDX -1(RR14),R0 0001A4 B0E0 A 344 CLR R0 0001A6 89E0FE A 345 LDX -2(RR14),R0 A 346 ; 81 } 0001A9 A 347 _1_L_19: A 348 .line 81 0001A9 880EFE A 349 LDX R0,-2(RR14) 0001AC 881EFF A 350 LDX R1,-1(RR14) 0001AF A6E140 A 351 CP R1,#64 0001B2 1FA6E000 A 352 CPC R0,#-0 0001B6 6B B9 A 353 JR Z,_1_L_20 A 354 ; 82 while(input==0x50 && a==1) A 355 .line 82 0001B8 8B 30 A 356 JR _1_L_23 0001BA A 357 _1_L_24: A 358 ; 83 { A 359 ; 84 rotateR(550,650); A 360 .line 84 0001BA 1F708A A 361 PUSH #138 0001BD 1F7002 A 362 PUSH #2 0001C0 1F7026 A 363 PUSH #38 0001C3 1F7002 A 364 PUSH #2 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 8 PC Object I Line Source mazer.src 0001C6 D6 044E A 365 CALL _rotateR 0001C9 50E0 A 366 POP R0 0001CB 50E0 A 367 POP R0 0001CD 50E0 A 368 POP R0 0001CF 50E0 A 369 POP R0 A 370 ; 85 input=PAIN; A 371 .line 85 0001D1 840FD2 A 372 LDX R0,4050 0001D4 B0E1 A 373 CLR R1 0001D6 89E1FE A 374 LDX -2(RR14),R1 0001D9 89E0FF A 375 LDX -1(RR14),R0 A 376 ; 86 input=input&0x70; A 377 .line 86 0001DC 880EFF A 378 LDX R0,-1(RR14) 0001DF 56E070 A 379 AND R0,#112 0001E2 89E0FF A 380 LDX -1(RR14),R0 0001E5 B0E0 A 381 CLR R0 0001E7 89E0FE A 382 LDX -2(RR14),R0 A 383 ; 87 } 0001EA A 384 _1_L_23: A 385 .line 87 0001EA 880EFE A 386 LDX R0,-2(RR14) 0001ED 881EFF A 387 LDX R1,-1(RR14) 0001F0 A6E150 A 388 CP R1,#80 0001F3 1FA6E000 A 389 CPC R0,#-0 0001F7 EB 3D A 390 JR NE,_1_L_27 0001F9 A9010001 A 391 CPX _a+1,#1 0001FD 1FA90000 00 A 392 CPCX _a,#0 000202 6B B6 A 393 JR Z,_1_L_24 A 394 ; 88 while(input==0x50 && a==0) A 395 .line 88 000204 8B 30 A 396 JR _1_L_27 000206 A 397 _1_L_28: A 398 ; 89 { A 399 ; 90 rotateL(550,650); A 400 .line 90 000206 1F708A A 401 PUSH #138 000209 1F7002 A 402 PUSH #2 00020C 1F7026 A 403 PUSH #38 00020F 1F7002 A 404 PUSH #2 000212 D6 03A4 A 405 CALL _rotateL 000215 50E0 A 406 POP R0 000217 50E0 A 407 POP R0 000219 50E0 A 408 POP R0 00021B 50E0 A 409 POP R0 A 410 ; 91 input=PAIN; A 411 .line 91 00021D 840FD2 A 412 LDX R0,4050 000220 B0E1 A 413 CLR R1 000222 89E1FE A 414 LDX -2(RR14),R1 000225 89E0FF A 415 LDX -1(RR14),R0 A 416 ; 92 input=input&0x70; ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 9 PC Object I Line Source mazer.src A 417 .line 92 000228 880EFF A 418 LDX R0,-1(RR14) 00022B 56E070 A 419 AND R0,#112 00022E 89E0FF A 420 LDX -1(RR14),R0 000231 B0E0 A 421 CLR R0 000233 89E0FE A 422 LDX -2(RR14),R0 A 423 ; 93 } 000236 A 424 _1_L_27: A 425 .line 93 000236 880EFE A 426 LDX R0,-2(RR14) 000239 881EFF A 427 LDX R1,-1(RR14) 00023C A6E150 A 428 CP R1,#80 00023F 1FA6E000 A 429 CPC R0,#-0 000243 EB 45 A 430 JR NE,_1_L_30 000245 A9000001 A 431 CPX _a+1,#-0 000249 1FA90000 00 A 432 CPCX _a,#0 00024E 6B B6 A 433 JR Z,_1_L_28 A 434 ; 94 while(input==0x60) A 435 .line 94 000250 8B 38 A 436 JR _1_L_30 000252 A 437 _1_L_31: A 438 ; 95 { A 439 ; 96 left(600,600); //left A 440 .line 96 000252 1F7058 A 441 PUSH #88 000255 1F7002 A 442 PUSH #2 000258 1F7058 A 443 PUSH #88 00025B 1F7002 A 444 PUSH #2 00025E D6 034F A 445 CALL _left 000261 50E0 A 446 POP R0 000263 50E0 A 447 POP R0 000265 50E0 A 448 POP R0 000267 50E0 A 449 POP R0 A 450 ; 97 a=0; A 451 .line 97 000269 E9000000 A 452 LDX _a,#-0 00026D E9000001 A 453 LDX _a+1,#-0 A 454 ; 98 input=PAIN; A 455 .line 98 000271 840FD2 A 456 LDX R0,4050 000274 B0E1 A 457 CLR R1 000276 89E1FE A 458 LDX -2(RR14),R1 000279 89E0FF A 459 LDX -1(RR14),R0 A 460 ; 99 input=input&0x70; A 461 .line 99 00027C 880EFF A 462 LDX R0,-1(RR14) 00027F 56E070 A 463 AND R0,#112 000282 89E0FF A 464 LDX -1(RR14),R0 000285 B0E0 A 465 CLR R0 000287 89E0FE A 466 LDX -2(RR14),R0 A 467 ; 100 } 00028A A 468 _1_L_30: ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 10 PC Object I Line Source mazer.src A 469 .line 100 00028A 880EFE A 470 LDX R0,-2(RR14) 00028D 881EFF A 471 LDX R1,-1(RR14) 000290 A6E160 A 472 CP R1,#96 000293 1FA6E000 A 473 CPC R0,#-0 000297 6B B9 A 474 JR Z,_1_L_31 A 475 ; 101 while(input==0x70) A 476 .line 101 000299 8B 30 A 477 JR _1_L_33 00029B A 478 _1_L_34: A 479 ; 102 { A 480 ; 103 forward(300,900); A 481 .line 103 00029B 1F7084 A 482 PUSH #132 00029E 1F7003 A 483 PUSH #3 0002A1 1F702C A 484 PUSH #44 0002A4 1F7001 A 485 PUSH #1 0002A7 D6 04A3 A 486 CALL _forward 0002AA 50E0 A 487 POP R0 0002AC 50E0 A 488 POP R0 0002AE 50E0 A 489 POP R0 0002B0 50E0 A 490 POP R0 A 491 ; 104 input=PAIN; A 492 .line 104 0002B2 840FD2 A 493 LDX R0,4050 0002B5 B0E1 A 494 CLR R1 0002B7 89E1FE A 495 LDX -2(RR14),R1 0002BA 89E0FF A 496 LDX -1(RR14),R0 A 497 ; 105 input=input&0x70; A 498 .line 105 0002BD 880EFF A 499 LDX R0,-1(RR14) 0002C0 56E070 A 500 AND R0,#112 0002C3 89E0FF A 501 LDX -1(RR14),R0 0002C6 B0E0 A 502 CLR R0 0002C8 89E0FE A 503 LDX -2(RR14),R0 A 504 ; 106 } 0002CB A 505 _1_L_33: A 506 .line 106 0002CB 880EFE A 507 LDX R0,-2(RR14) 0002CE 881EFF A 508 LDX R1,-1(RR14) 0002D1 A6E170 A 509 CP R1,#112 0002D4 1FA6E000 A 510 CPC R0,#-0 0002D8 6B C1 A 511 JR Z,_1_L_34 A 512 ; 107 input=PAIN; A 513 .line 107 0002DA 840FD2 A 514 LDX R0,4050 0002DD B0E1 A 515 CLR R1 0002DF 89E1FE A 516 LDX -2(RR14),R1 0002E2 89E0FF A 517 LDX -1(RR14),R0 A 518 ; 108 input=input&0x70; A 519 .line 108 0002E5 880EFF A 520 LDX R0,-1(RR14) ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 11 PC Object I Line Source mazer.src 0002E8 56E070 A 521 AND R0,#112 0002EB 89E0FF A 522 LDX -1(RR14),R0 0002EE B0E0 A 523 CLR R0 0002F0 89E0FE A 524 LDX -2(RR14),R0 A 525 ; 109 } A 526 .line 109 0002F3 8D 00 8D A 527 JR _1_L_8 A 528 ; 110 } A 529 .line 110 0002F6 D6 0000 A 530 CALL __b_framereset 0002F9 AF A 531 RET A 532 .endfunc "main",110,"_main" A 533 SEGMENT ROM_DATA A 534 A 535 A 536 ;**************************** _reverse *************************** A 537 ;Name Addr/Register Size Type A 538 ;_d STATIC 1 variable A 539 ;offtime1 R15+6 1 parameter A 540 ;ontime1 R15+4 1 parameter A 541 A 542 A 543 ; Aggregate Stack Size: 0 (words) A 544 A 545 A 546 SEGMENT mazer_TEXT A 547 ; 111 A 548 ; 112 void reverse(int ontime1, int offtime1) A 549 ; 113 { 0002FA A 550 _reverse: A 551 .define "_reverse" A 552 .value _reverse A 553 .class 2 A 554 .type 65 A 555 .type 0 A 556 .endef A 557 .begfunc "reverse",113,"_reverse" A 558 .define "ontime1" A 559 .class 17 A 560 .reg -1 A 561 .type 3 A 562 .type 0 A 563 .endef A 564 .define "offtime1" A 565 .class 17 A 566 .reg -1 A 567 .type 3 A 568 .type 0 A 569 .endef 0002FA D6 0000 A 570 CALL __b_frameset00 A 571 ; 114 PBOUT=0x0f; // reverse A 572 .line 114 ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402) 25-Aug-07 10:39:12 page: 12 PC Object I Line Source mazer.src 0002FD E90F0FD7 A 573 LDX 4055,#15 000301 E9000004 A 574 LDX _d,#-0 000305 E9000005 A 575 LDX _d+1,#-0 A 576 ; 115 for(d=0;d