summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/type_check_comparision.easm
blob: 7bc8e90cf8befdcc716974ea1fa78568b957e2b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
format binary
use32
org $1000000
; DECL i -> integer, 0
; DECL b -> boolean, 0
; LET i <- 1 
mov eax, 1
push eax
pop eax
mov [i], eax
; LET b <- 0 
mov eax, 0
push eax
pop eax
mov [b], eax