| ??? 10/25/06 07:12 Read: times |
#126971 - it seems to be non-51 Responding to: ???'s previous message |
Metalink asm51:
1
0030 2 COUNT1 EQU 30h
0031 3 COUNT2 EQU 31h
4
0000 E530 5 BEG: MOV A,COUNT1 ; Move LSD to A
0002 14 6 DEC A ; Decrement the LSD
0003 B413FA 7 CJNE 0FFh, BEG2 ; Check for underflow
****---------------------------------------^------^
****ERROR #20: Illegal operand
****ERROR #22: Missing operand delimiter
0006 753009 8 MOV COUNT1, #09h ; If underflow, reload with 09 and dec MSD
9 ;
0009 E531 10 MOV A, COUNT2 ; Fetch MSD
000B 14 11 DEC A ; Decrement the MSD
000C B411F1 12 CJNE 0FFh, BEG1 ; Check for underflow
****---------------------------------------^------^
****ERROR #20: Illegal operand
****ERROR #22: Missing operand delimiter
000F 7409 13 MOV A, #09h ; Reload MSD with 9
0011 F531 14 BEG1: MOV COUNT2, A ; Save the MSD
15 JP BEG3 ; Jump to end
****---------------------------------^
****ERROR #23: Illegal or missing directive
0013 F530 16 BEG2: MOV COUNT1,A ; Save LSD
0015 17 BEG3:
18 end
VERSION 1.2k ASSEMBLY COMPLETE, 7 ERRORS FOUND
JW |
| Topic | Author | Date |
| AT89C51 countdown timer | 01/01/70 00:00 | |
| I Think... | 01/01/70 00:00 | |
| Decimal Counting down | 01/01/70 00:00 | |
| if you post errors | 01/01/70 00:00 | |
| it seems to be non-51 | 01/01/70 00:00 | |
| aha | 01/01/70 00:00 | |
| I screwed up | 01/01/70 00:00 | |
| we just wanted to run down on somebody :-) | 01/01/70 00:00 | |
| This group | 01/01/70 00:00 | |
| BCD=IncrementByAdding01HDecByAdding99H | 01/01/70 00:00 | |
| RTFB | 01/01/70 00:00 | |
| Why count BCD down? | 01/01/70 00:00 | |
| Why microcontroller? | 01/01/70 00:00 | |
The Appliction | 01/01/70 00:00 | |
| Why count BCD down? | 01/01/70 00:00 |



