1 # output(): Hello, world.\n
4 # Emit hello world while switching back and forth between arm/thumb.
8 # This is "undefined" but it's not properly decoded yet.
10 # This is stc which isn't recognized yet.
16 # Run some simple insns to confirm the engine is at least working.
19 # Skip over output text.
24 .asciz "Hello, world.\n"
35 # Switch arm->thumb to output next chacter.
36 # At this point r4 must point to the next character to output.
38 adr r0, into_thumb + 1
46 mov r0,#3 @ writec angel call
48 swi 0xab @ ??? Confirm number.
59 # Load next character, see if done.
67 # Output a character (in arm mode).
73 # Load next character, see if done.
86 # If that fails, try to die with an invalid insn.