Make self and mandel examples a bit smaller
Some checks are pending
CI / test (ubuntu-latest) (push) Waiting to run

This commit is contained in:
Toby Jaffey 2025-12-15 01:12:47 +00:00
parent 4741900562
commit 4e61e3bd4a
7 changed files with 12 additions and 19 deletions

View file

@ -17,12 +17,9 @@ const unsigned char mandel[] = {
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
0x13, 0x0e, 0x1e, 0x09, 0xe3, 0xd6, 0xc3, 0xf9, 0x13, 0x05, 0xa0, 0x00,
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x37, 0x05, 0x00, 0x80,
0x13, 0x05, 0x05, 0x10, 0x93, 0x08, 0x30, 0x00, 0x93, 0x05, 0x00, 0x00,
0x73, 0x00, 0x00, 0x00, 0x03, 0x24, 0xc1, 0x00, 0x13, 0x01, 0x01, 0x01,
0x67, 0x80, 0x00, 0x00, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f,
0x72, 0x6c, 0x64, 0x00
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x03, 0x24, 0xc1, 0x00,
0x13, 0x01, 0x01, 0x01, 0x67, 0x80, 0x00, 0x00
};
unsigned int mandel_len =
268
236
;

View file

@ -26,18 +26,18 @@ void main(void) {
putc(uvm32_arg_getval(&vmst, &evt, ARG0));
break;
case UVM32_SYSCALL_PRINTLN: {
const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
println(str);
//const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
//println(str);
} break;
default:
println("Unhandled syscall");
// println("Unhandled syscall");
break;
}
break;
case UVM32_EVT_ERR:
println("error: ");
printdec(evt.data.err.errcode);
println("");
// println("error: ");
// printdec(evt.data.err.errcode);
// println("");
break;
default:
break;

View file

@ -36,5 +36,4 @@ fn mandel() void {
export fn main() void {
mandel();
uvm.println("Hello world");
}