home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / asm / PS_A80Z.ZIP / INTELZ.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-01-11  |  1.4 KB  |  41 lines

  1. ; The following definitions will simplify conversion of existing
  2. ; Intel format Source files.
  3. ;
  4. ;
  5.          .title "Intel compatibility definitions"
  6.          .opdef dw,.drw           ;define constant reverse word
  7.          .opdef db,.db            ;define constant byte
  8.          .opdef org,.org          ;set the location counter
  9.          .opdef cset,.cset         ;conventional temporary symbol definition
  10.                                   ; (for processors like the z80 that have
  11.                                   ; a set opcode we suggest you use cset
  12.                                   ; instead of set)
  13.          .opdef equ,.cequ         ;conventional symbol definition
  14.          .opdef end,.end          ;end of the program
  15.  
  16. ; test section -- the program from here to the end should be deleted
  17. ; and the above definitions should be included at the top of the
  18. ; program.
  19.  
  20.          .db 123 and (x'ff)
  21.          .db 123 and(0x00)
  22.          .db 123 or (x'ff)
  23.          .db 123 or(0h)
  24.          .db 123 xor (0ffh)
  25.          .db 123 xor(0x00)
  26.          .db 123 shr (1)
  27.          .db 123 shr(2)
  28.          .db 123 shl (1)
  29.          .db (123 shl 2) and 0ffh
  30.          db $2,022h,01b,022d,44q
  31.          dw $3,033
  32.          db "this is a test"
  33.          ;test motorola hex
  34.          db $22,$022
  35.          dw 033
  36.          db "this is a test"
  37. value1:  cset 55
  38. value2:  equ 56
  39.          db value2-value1
  40.          end
  41.