summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/variable_assign_from_constant.easm
blob: d92d138eff65c4df340e35c14ffb25b1b6e8aa3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
format binary
use32
org $1000000
; CONST N -> integer, 20
; DECL a -> integer, 0
; LET a <- 20 
mov eax, 20
push eax
pop eax
mov [a], eax
hlt
a: dd $00000000