Sandbox

Assemble and run LCC assembly in the browser — syntax highlighting updates live.

LCC Assembly

; helloWorld.a: print Hello, World! and halt
        lea r0, msg
        sout r0
        nl
        halt
msg:    .string "Hello, World!"

stdin (pre-supply lines, or leave blank — an interactive prompt appears when the program waits for input)

Output

(click Run to execute)