Files
bits-runner-builder/samples/test.brc
Rafał Grodziński 26c566f4f6 Parse raw function
2025-07-13 11:12:35 +09:00

37 lines
478 B
Plaintext

@extern putchar fun: character sint32 -> sint32
// ./build/brb samples/test.brc -S -x86-asm-syntax=intel
/*
User type
name data<u8, 32>
age u32
successRatio r32
isActive bool
;
*/
/*
i u32 <- 0, rep text[i] != 0:
putchar(text[i])
i++
;
*/
// text data<u8> <- "Hello world!"
/*addStuff asm<+r, r>: num1 u32, num2 u32 -> u32
add $1, $0
;*/
rawAdd raw
mov eax, 5
mov ebx, 42
add eax, ebx
;
main fun -> sint32
rawAdd()
ret 0
;