mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-06 22:08:19 +03:00
An assortment of instructions have been implemented so far, mostly basic
stuff such as stack management. The following program can be executed:
int main(void)
{
hello(2);
for (;;) {
system.Peek();
system.Sleep(1);
}
return 0;
}
void hello(int n)
{
int i;
for (i = 0; i < n; i++) {
system.Output("Hello, world! " + string(i));
}
}
5 lines
172 B
Meson
5 lines
172 B
Meson
project('system4', 'c')
|
|
system4 = ['system4.c', 'ain.c', 'instructions.c', 'vm.c', 'string.c']
|
|
zdep = dependency('zlib')
|
|
executable('system4', system4, dependencies: zdep)
|