You must log in or # to comment.
Unsafe block detected. Extermination initiated. There is no hiding from memory safety!
Oh you fancy PC people and your fancy
syscall
instruction.I still don’t know why I could remember
jsr $ab1e
. I didn’t even write that much assembly.That looks like a 6502 instruction. What system is it from?
Personally,
echo Hello World!
use std::process::Command; fn main() { Command::new("sh") .arg("-c") .arg("echo Hello World!") .spawn() .unwrap(); }
Like this?
No, more like
use std::process::Command; fn main() { Command::new("sh").arg("-c").arg("echo Hello World!").spawn().unwrap(); }
.
Just a little bit shorter, as it seems /s
Or, you could just go the whole hog. Create your own simple CPU emulator, design a basic 8bitesque CPU, give it an output port that is the console, and load up some basic ASM to cycle through Hello World to the console port.
System.out.println
Console.WriteLine("Hello World!");