1 % Run some simple tests on MOR
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 MOR $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 #7824317821437294
35 OCTA #9812189744372983
36 OCTA #797a79ff67ffb5fe
38 OCTA #1234567890ABCDEF
39 OCTA #0000000000000001
40 OCTA #00000000000000EF
42 OCTA #1234567890ABCDEF
43 OCTA #0000000000000002
44 OCTA #00000000000000CD
46 OCTA #1234567890ABCDEF
47 OCTA #0000000000000100
48 OCTA #000000000000EF00
54 OCTA #8000000000000000
55 OCTA #FFFFFFFFFFFFFFFF
56 OCTA #8080808080808080
58 OCTA #8000000000000017
64 OCTA #ffffffffffffffff
72 OCTA #efefefefefef0105
74 OCTA #8000000000000017
80 % XXX This should be a separate module prefixed to .txt files
81 % XXX I just need to pick a good address for the Traphandler
82 % This has no impact on mmix simulation, but is for RTL
83 Traphandler GET $255,rBB