1 % Run some simple tests on MXOR
3 % This depends on working GETA, LDOU, PUT
8 Main GETA $255,Traphandler
10 PUT rT,$255 % We only try this in supervisor mode
15 LDOU $3,$0,16 % Expected result
17 MXOR $5,$1,$2 % check result
21 ADDU $0,$0,24 % move to next data tuple
28 Done TRAP 0,Fputs,StdOut
31 PassMsg BYTE "Passed",#a,0
32 FailMsg BYTE "Failed!",#a,0
34 Numbers OCTA #1234567890ABCDEF
35 OCTA #0000000000000001
36 OCTA #00000000000000EF
38 OCTA #1234567890ABCDEF
39 OCTA #0000000000000002
40 OCTA #00000000000000CD
42 OCTA #1234567890ABCDEF
43 OCTA #0000000000000100
44 OCTA #000000000000EF00
50 OCTA #8000000000000000
51 OCTA #FFFFFFFFFFFFFFFF
52 OCTA #8080808080808080
54 OCTA #8000000000000017
60 OCTA #6d6d6d6d6d6dfefa
68 OCTA #6e6e6e6e6e6e0105
70 OCTA #8000000000000017
76 % XXX This should be a separate module prefixed to .txt files
77 % XXX I just need to pick a good address for the Traphandler
78 % This has no impact on mmix simulation, but is for RTL
79 Traphandler GET $255,rBB