.text
.org 0
.align 2

; 28B
.long 0xfeedface
.long 18   ; cputype
.long 0    ; cpusubtype
.long 2    ; filetype
.long 2    ; number of load commands
.long code ; size of commands
.long 0x1  ; flags

; 44B?
.long 1
.long 44
hello:
.ascii "Hello, world!\n\0\0"
.long 0; vmaddr
.long 0x1000; vmsize
.long 0  ; fileoff
.long done  ; filesize
.long 7     ; maximum VM protection
;.long 5     ; initial VM protection
;.long 0     ; # of secs
;.long 0     ; flags

; 176B
;UNIXTHREAD
.long 5
.long 176   ; ???
.long 1     ; flaver
.long 40    ; count
.long code  ; srr0
.long 0     ; srr1
.long 4     ; r0
.long 0     ; r1
.long 0     ; r2
.long 1     ; r3
.long hello ; r4
.long 14    ; r5

.org 220
code:
;        stwu r1, -64(r1)

;        li r3, 1
;        lis r4, ha16(hello)
        la r4, lo16(hello)(r4)
;        li r5, 14
;        li r0, 4
        sc

        stwu r1, 64(r1)
        li r0, 1
        li r3, 0
        sc

done:

.org 248


