2020-02-27 15:52:17 -05:00
|
|
|
.include "constants.asm"
|
2020-01-25 19:17:39 -05:00
|
|
|
|
2020-02-25 12:07:24 -05:00
|
|
|
.section code $0x0 {
|
|
|
|
|
main:
|
|
|
|
|
mov %r0, $0xDEAD
|
|
|
|
|
shl %r0, $16
|
|
|
|
|
; move 32 bits at 'beef' to %r01
|
|
|
|
|
; TODO(syntax)
|
|
|
|
|
mov %r1, (beef)u32
|
|
|
|
|
or %r0, %r01
|
|
|
|
|
cmpeq %r0, $0xDEADBEEF
|
|
|
|
|
; jump to the address 'end'
|
2020-02-27 15:52:17 -05:00
|
|
|
jnz end
|
2020-02-25 12:07:24 -05:00
|
|
|
mov %status, $1
|
|
|
|
|
end:
|
|
|
|
|
halt
|
2020-02-09 13:04:56 -05:00
|
|
|
.export main
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-25 12:07:24 -05:00
|
|
|
.meta {
|
2020-02-09 13:04:56 -05:00
|
|
|
entry: main
|
|
|
|
|
}
|