summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/character_variable.easm
blob: 4377d6503710063e2275b9f44d0a8b0939d3aa6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
format binary
use32
org $1000000
jmp __global_0
; CONST C -> character, 'A'
; DECL c1 -> character, 'A'
; DECL c2 -> character, 'B'
__global_0:
; LET c2 <- 'C' 
mov eax, 67
push eax
pop eax
mov [c2], al
hlt
c2: db $42
c1: db $41