summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/variable_initialization.easm
blob: 6d9b5e866cc9c2b09ddad5c735fb23e6018fd05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
format binary
use32
org $1000000
jmp __global_0
; CONST N -> integer, 1
; DECL a -> integer, 0
; DECL b -> integer, 1
; DECL c -> integer, 0
; DECL d -> boolean, true
__global_0:
; LET c <- 2 
mov eax, 2
push eax
pop eax
mov [c], eax
hlt
d: db $01
c: dd $00000000
b: dd $00000001
a: dd $00000000