summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/string_variable.easm
blob: 1bbd6a642301b07d1b8424c8ced2b16fafdb3fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
format binary
use32
org $1000000
jmp __global_0
; CONST S -> array 14 of character, "hello world"
; DECL s1 -> array 18 of character, "hello world"
; DECL s2 -> array 19 of character, "hello again world"
; DECL s3 -> array 20 of character, ""
__global_0:
hlt
s3: db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
s2: db "hello again world", 0, 0
s1: db "hello world", 0, 0, 0, 0, 0, 0, 0