// Test a procedure with calling convention stack
// A slightly more complex call

char* const SCREEN = 0x0400;

char i = 0;

void main(void) {
    for(char a:0..1) {
        char v = a+1;
        char w = plus('0', v);
        SCREEN[i] = w+a;
    }
}

char __stackcall plus(char a, char b) {
    i++;
    return a+b;
}