Commit Graph
6 Commits
Author SHA1 Message Date
Nunuhara Cabbage 55f3991546 Implement more string instructions
Implement all of the string instructions that I could get the compiler
to generate code for. Still ASCII-only.
2019-10-14 14:18:09 -07:00
Nunuhara Cabbage cc2a2c594a Floating point instructions 2019-10-13 21:32:17 -07:00
Nunuhara Cabbage 8a40058c81 Overhaul VM design
Overhaul the VM design to more closely resemble System40.exe. See
system4.md for further details.
2019-10-13 17:51:22 -07:00
Nunuhara Cabbage 827e0a85d7 S_ASSIGN & fix SH_LOCALREF for strings 2019-10-10 21:26:41 -07:00
Nunuhara Cabbage 53dc8a7a44 strings: store size together with text in memory 2019-10-07 16:54:46 -07:00
Nunuhara Cabbage 84df756faf Initial commit
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));
    }
}
2019-10-06 19:35:36 -07:00