GitHub_collection_hello-world/a/Assembler pdp11 palx.palx
Richie Bendall dad1ce8fa0
Meta tweaks
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2021-02-17 17:39:48 +13:00

24 lines
231 B
Plaintext

.TITLE Hello World
R0=%0
R1=%1
TPS==177564
TPB==177566
.=400
START: MOV #1,@#TPS
MOV #HELLO,R0
LOOP: TSTB @#TPS
BPL LOOP
MOVB (R0)+,R1
BEQ STOP
MOVB R1,@#TPB
BR LOOP
STOP: HALT
HELLO: .ASCIZ /Hello World/
.END START