1# mach: all 2# output: 3# sim: --environment operating 4 5.include "t-macros.i" 6 7 start 8 9test_sac_1: 10 loadacc2 a0 0x00 0xAFFF 0x0000 11 sac r4, a0 12 check 1 r4 0x7FFF 13 check 2 r5 0xFFFF 14 15test_sac_2: 16 loadacc2 a0 0xFF 0x7000 0x0000 17 sac r4, a0 18 check 3 r4 0x8000 19 check 4 r5 0x0000 20 21test_sac_3: 22 loadacc2 a0 0x00 0x1000 0xA000 23 sac r4, a0 24 check 5 r4 0x1000 25 check 6 r5 0xA000 26 27 exit0 28