; demo.a -- Demonstration of what the SMAL assembler does ; with Hawk machine instructions. ; It's useful to assemble this and look at the listing file, ; and it's useful to then run the Hawk emulator on the object file. USE "hawk.h" ; different ways to put LIS instructions in memory B 2#11010011, 2#00000001 B #D4,#02 H #03D5 LIS R6,-1 ; different ways to put ADD instructions in memory B 2#00110111, 2#00110100 ADD R8,R5,R6 ; different ways to put LIL instructions in memory B 2#11101000, 2#11101111, 2#11001101, 2#10101011 LIL R9,#012345