still need to fix literal arrays, it has the same problem as struct literals had with moving the literal into memory and modifying the memory with variables
8 lines
144 B
Plaintext
8 lines
144 B
Plaintext
|
|
|
|
// fn syscall(arg_count: usize, syscall_num: usize, args: )
|
|
|
|
fn puts(s: &str) {
|
|
__INTERNAL_syscall(1 as u8, 1 as u8, &[s] as &[&void]);
|
|
}
|