mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-03 15:29:28 +00:00
15 lines
230 B
LLVM
15 lines
230 B
LLVM
|
|
||
|
global %MyVar = int *
|
||
|
global %MyIntList = { \2 *, int } *
|
||
|
global int * ; int*:0
|
||
|
|
||
|
implementation
|
||
|
|
||
|
int "foo"(int %blah)
|
||
|
begin
|
||
|
store int 5, int *%MyVar
|
||
|
store int 12, { \2 *, int } * %MyIntList, ubyte 1
|
||
|
ret int %blah
|
||
|
end
|
||
|
|