home *** CD-ROM | disk | FTP | other *** search
- ; The following definitions will simplify conversion of existing
- ; Intel format Source files.
- ;
- ;
- .title "Intel compatibility definitions"
- .opdef dw,.drw ;define constant reverse word
- .opdef db,.db ;define constant byte
- .opdef org,.org ;set the location counter
- .opdef cset,.cset ;conventional temporary symbol definition
- ; (for processors like the z80 that have
- ; a set opcode we suggest you use cset
- ; instead of set)
- .opdef equ,.cequ ;conventional symbol definition
- .opdef end,.end ;end of the program
-
- ; test section -- the program from here to the end should be deleted
- ; and the above definitions should be included at the top of the
- ; program.
-
- .db 123 and (x'ff)
- .db 123 and(0x00)
- .db 123 or (x'ff)
- .db 123 or(0h)
- .db 123 xor (0ffh)
- .db 123 xor(0x00)
- .db 123 shr (1)
- .db 123 shr(2)
- .db 123 shl (1)
- .db (123 shl 2) and 0ffh
- db $2,022h,01b,022d,44q
- dw $3,033
- db "this is a test"
- ;test motorola hex
- db $22,$022
- dw 033
- db "this is a test"
- value1: cset 55
- value2: equ 56
- db value2-value1
- end