home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 363_01 / bitfield.asm < prev    next >
Assembly Source File  |  1991-05-25  |  1KB  |  27 lines

  1. * Bit field instructions' tests.
  2.         org     $1000
  3.         bra.s   label
  4.         bfchg   label.w{d1:d2}
  5.         bfclr   ([5,a0,d0.l*8],$55){d1:d2}
  6.         bfclr   ([$55555,a0,d0.l*8],$aaaaa){d1:d2}
  7.         bfexts  d0{7:11},d1
  8. label   bfextu  d0{7:11},d3
  9.         bfffo   label.l{7:11},d5
  10.         bfins   d7,d0{7:11}
  11.         bftst   d0{5:3}
  12.         bftst   d0{$12345678:$3333}
  13.         bftst   d7{d5:3}
  14.         bftst   d5{5:d3}
  15.         bra     label
  16.  
  17. * Entries with errors
  18.         bfexts  d0{7:11}            missing destination register
  19.         bfins   d0{7:11}            missing source register
  20.         bfchg   (128,PC{d1:d2}      PC relative not allowed
  21.         bfchg   d0{1:2},d1          no destination allowed for bfchg
  22.         bfchg   d0                  missing field specification
  23.         bfchg   d0{1,2}             invalid offset/width separator
  24.         bfchg   d0{a1,d0}           address register must not ne used
  25.         bfchg   {2:3}               missing effective address
  26.         end
  27.