1 # output(): Hello, world.\n
4 # Emit hello world while switching back and forth between arm/thumb.
7 # This is "undefined" but it's not properly decoded yet.
9 # This is stc which isn't recognized yet.
15 # Run some simple insns to confirm the engine is at least working.
18 # Skip over output text.
23 .asciz "Hello, world.\n"
34 # Switch arm->thumb to output next chacter.
35 # At this point r4 must point to the next character to output.
37 adr r0, into_thumb + 1
45 mov r0,#3 @ writec angel call
47 swi 0xab @ ??? Confirm number.
58 # Load next character, see if done.
66 # Output a character (in arm mode).
72 # Load next character, see if done.
85 # If that fails, try to die with an invalid insn.