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