git.s-ol.nu subv / master examples / ex.pack
master

Tree @master (Download .tar.gz)

ex.pack @masterraw · history · blame

== code 0x80400000
# repeatedly print "Hi\n"
# main:
# load 0x10000000 (UART0) into t0
b7 02 00 10
# store 0x48 (H) in UART0+0
13 03 80 04
23 80 62 00
# store 0x69 (i) in UART0+0
13 03 90 06
23 80 62 00
# store 0x0a (\n) in UART0+0
13 03 a0 00
23 80 62 00
# jump back up to the top
6f f0 5f fe