You must log in or register to comment.
Unsafe block detected. Extermination initiated. There is no hiding from memory safety!
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.
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?
System.out.println
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
Console.WriteLine("Hello World!");