Scrap preprocessor, add .include directive instead
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -1,14 +1,4 @@
|
||||
.section data $0x1000 {
|
||||
beef: .u16 $0xBEEF
|
||||
; TODO(syntax)
|
||||
; bytes: .u8 [
|
||||
; $0xEF,
|
||||
; $0xBE,
|
||||
; $0xAD,
|
||||
; $0xDE,
|
||||
; ]
|
||||
.export beef
|
||||
}
|
||||
.include "constants.asm"
|
||||
|
||||
.section code $0x0 {
|
||||
main:
|
||||
@@ -20,7 +10,7 @@
|
||||
or %r0, %r01
|
||||
cmpeq %r0, $0xDEADBEEF
|
||||
; jump to the address 'end'
|
||||
jz end
|
||||
jnz end
|
||||
mov %status, $1
|
||||
end:
|
||||
halt
|
||||
|
||||
Reference in New Issue
Block a user