mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Make self and mandel examples a bit smaller
Some checks are pending
CI / test (ubuntu-latest) (push) Waiting to run
Some checks are pending
CI / test (ubuntu-latest) (push) Waiting to run
This commit is contained in:
parent
4741900562
commit
4e61e3bd4a
7 changed files with 12 additions and 19 deletions
|
|
@ -17,12 +17,9 @@ const unsigned char mandel[] = {
|
||||||
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
|
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
|
||||||
0x13, 0x0e, 0x1e, 0x09, 0xe3, 0xd6, 0xc3, 0xf9, 0x13, 0x05, 0xa0, 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,
|
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, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x03, 0x24, 0xc1, 0x00,
|
||||||
0x13, 0x05, 0x05, 0x10, 0x93, 0x08, 0x30, 0x00, 0x93, 0x05, 0x00, 0x00,
|
0x13, 0x01, 0x01, 0x01, 0x67, 0x80, 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
|
|
||||||
};
|
};
|
||||||
unsigned int mandel_len =
|
unsigned int mandel_len =
|
||||||
268
|
236
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,18 @@ void main(void) {
|
||||||
putc(uvm32_arg_getval(&vmst, &evt, ARG0));
|
putc(uvm32_arg_getval(&vmst, &evt, ARG0));
|
||||||
break;
|
break;
|
||||||
case UVM32_SYSCALL_PRINTLN: {
|
case UVM32_SYSCALL_PRINTLN: {
|
||||||
const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
|
//const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
|
||||||
println(str);
|
//println(str);
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
println("Unhandled syscall");
|
// println("Unhandled syscall");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case UVM32_EVT_ERR:
|
case UVM32_EVT_ERR:
|
||||||
println("error: ");
|
// println("error: ");
|
||||||
printdec(evt.data.err.errcode);
|
// printdec(evt.data.err.errcode);
|
||||||
println("");
|
// println("");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -36,5 +36,4 @@ fn mandel() void {
|
||||||
|
|
||||||
export fn main() void {
|
export fn main() void {
|
||||||
mandel();
|
mandel();
|
||||||
uvm.println("Hello world");
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,9 @@ const unsigned char mandel[] = {
|
||||||
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
|
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
|
||||||
0x13, 0x0e, 0x1e, 0x09, 0xe3, 0xd6, 0xc3, 0xf9, 0x13, 0x05, 0xa0, 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,
|
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, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x03, 0x24, 0xc1, 0x00,
|
||||||
0x13, 0x05, 0x05, 0x10, 0x93, 0x08, 0x30, 0x00, 0x93, 0x05, 0x00, 0x00,
|
0x13, 0x01, 0x01, 0x01, 0x67, 0x80, 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
|
|
||||||
};
|
};
|
||||||
unsigned int mandel_len =
|
unsigned int mandel_len =
|
||||||
268
|
236
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue