home *** CD-ROM | disk | FTP | other *** search
File List | 1979-12-31 | 1.0 KB | 30 lines |
- The Cybernetic Micro Systems 8051 Family Assembler, Version 3.03 Page 1
- 01-01-80
-
-
- ; DEMO51.ASM 8051 SOURCE CODE
- ;
- 4869 = Abc EQU 'Hi' ;string value equate
- 00BD = Val1 EQU 0BDH ;hexadecimal constant
- 004B = Val2 EQU 75 ;decimal constant
- ;
- 0025 ORG 25H
- ;
- START:
- 0025 2465 add A,#65H
- 0027 0532 inc 32H
- 0029 853225 mov 25H,32H ;COPY (32) TO (25)
- 002C 904869 mov DPTR,#Abc ;16 BIT DATA, MSB FIRST !!
- 002F B41BF3 cjne A,#27,START ;LOOP RELATIVE TO START
- 0032 C3 clr C
- 0033 94BD subb A,#Val1
- 0035 20D202 jb OV,NEXT ;JUMP IF OVERFLOW FLAG SET
- 0038 B24B cpl Val2 ;BIT ADDRESS
- ;
- NEXT:
- 003A B04B anl C,/Val2
- 003C 60E7 jz START
- 0025 END START ;STARTING ADDRESS
-
- 00 Errors (0000)
-