1# mach: all 2# output: 3# sim: --environment operating 4 5.include "t-macros.i" 6 7 start 8 9test_slae_1: 10 loadpsw2 PSW_ST|PSW_FX 11 loadacc2 a0 0x00 0x0AFF 0xF000 12 ldi r0, 4 13 slae a0, r0 14 checkacc2 1 a0 0x00 0x7FFF 0xFFFF 15 16test_slae_2: 17 loadpsw2 PSW_ST|PSW_FX 18 loadacc2 a0 0xFF 0xF700 0x1000 19 ldi r0, 4 20 slae a0, r0 21 checkacc2 2 a0 0xFF 0x8000 0x0000 22 23test_slae_3: 24 loadpsw2 PSW_ST|PSW_FX 25 loadacc2 a0 0x00 0x0010 0xA000 26 ldi r0, 4 27 slae a0, r0 28 checkacc2 3 a0 0x00 0x010A 0x0000 29 30test_slae_4: 31 loadpsw2 0 32 loadacc2 a0 0x00 0x0010 0xA000 33 ldi r0, 4 34 slae a0, r0 35 checkacc2 4 a0 0x00 0x010A 0x0000 36 37test_slae_5: 38 loadacc2 a0 0x00 0x0010 0xA000 39 ldi r0, -4 40 slae a0, r0 41 checkacc2 4 a0 0x00 0x0001 0x0A00 42 43 exit0 44