mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Renaming and documentating header
This commit is contained in:
parent
9880eadf4f
commit
8158ac647c
19 changed files with 305 additions and 225 deletions
|
|
@ -23,10 +23,10 @@ void main(void) {
|
|||
case UVM32_SYSCALL_YIELD:
|
||||
break;
|
||||
case UVM32_SYSCALL_PUTC:
|
||||
putc(uvm32_getval(&vmst, &evt, ARG0));
|
||||
putc(uvm32_arg_getval(&vmst, &evt, ARG0));
|
||||
break;
|
||||
case UVM32_SYSCALL_PRINTLN: {
|
||||
const char *str = uvm32_getcstr(&vmst, &evt, ARG0);
|
||||
const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
|
||||
println(str);
|
||||
} break;
|
||||
default:
|
||||
|
|
@ -35,7 +35,9 @@ void main(void) {
|
|||
}
|
||||
break;
|
||||
case UVM32_EVT_ERR:
|
||||
println(evt.data.err.errstr);
|
||||
println("error: ");
|
||||
printdec(evt.data.err.errcode);
|
||||
println("");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue