! !Purpose: !This program tests if the assembler can recognize !all synthetic instructions and their formats. !Description: !All synthetic instructions are used in the .text section. !All formats of each synthetic instruction are applied to it. .section ".text" !Compare Instructions cmp %r1, %r2 cmp %r1, 2 !Test Instructions tst %r1 !Return from Subroutine Instructions ret !Complement Instructions not %r1, %r2 not %r1 neg %r1, %r2 neg %r1 !Increment and Decrement Instructions inc %r1 inc 2, %r1 inccc %r1 inccc 2, %r1 dec %r1 dec 2, %r1 deccc %r1 deccc 2, %r1 !Move Instructions mov %r1, %r2 mov 2, %r2