1 # r0-r3 are used as tmps, consider them call clobbered by these macros.
2 # This uses the angel rom monitor calls.
3 # ??? How do we use the \@ facility of .macros ???
4 # @ is the comment char!
6 .macro mvi_h_gr reg, val
12 .macro mvaddr_h_gr reg, addr
46 # *** Other macros know pass/fail are 4 bytes in size! Yuck.
57 # ??? This works with the ARMulator but maybe not others.
60 # This seems to be portable (though it ignores rc).
64 # If that returns, punt with a sigill.
68 # Other macros know this only clobbers r0.
69 # WARNING: It also clobbers the condition codes (FIXME).
70 .macro test_h_gr reg, val
77 .macro mvi_h_cnvz c, n, v, z
80 orr r0, r0, #0x20000000
83 orr r0, r0, #0x80000000
86 orr r0, r0, #0x10000000
89 orr r0, r0, #0x40000000
92 bic r1, r1, #0xf0000000
98 # ??? Preserve condition codes?
99 .macro test_h_cnvz c, n, v, z
102 orr r0, r0, #0x20000000
105 orr r0, r0, #0x80000000
108 orr r0, r0, #0x10000000
111 orr r0, r0, #0x40000000
114 and r1, r1, #0xf0000000