1# mach: all 2# output: 3# sim: --environment operating 4 5.include "t-macros.i" 6 7 start 8 9 ;; clear FX 10 ldi r2, #0x8005 11 mvtc r2, cr0 12 13 loadacc2 a1 0x7f 0xffff 0xffff 14 ldi r8, 0xffff 15 ldi r9, 0x8001 16test_msbu1: 17 MSBU a1, r9, r8 18 checkacc2 1 a1 0X7F 0x7FFF 0x8000 19 20 21 ;; set FX 22 ldi r2, #0x8085 23 mvtc r2, cr0 24 25 loadacc2 a1 0x7f 0xffff 0xffff 26 ldi r8, 0xffff 27 ldi r9, 0x8001 28test_msbu2: 29 MSBU a1, r9, r8 30 checkacc2 2 a1 0X7E 0xFFFF 0x0001 31 32 exit0 33