Added Assembler Pdp11 Palx
Fixes: #568 Co-Authored-By: Lars Brinkhoff <lars.spam@nocrew.org>
This commit is contained in:
23
a/assembler_pdp11_palx.palx
Normal file
23
a/assembler_pdp11_palx.palx
Normal file
@@ -0,0 +1,23 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user