I'm having problem with printing a message in pdp-11. The code is:
tks = 177560
tkb = 177562
tps = 177564
tpb = 177566
mask1: .word 177600
WELM: .ascii<Welcome to Shir and Maya checkers game!>
SOG: mov #0,r2
movb WELM(r2),r1; put the letters in r1 by order
bic mask1,r1; clear high byte
tstb @#tps; while the printer is busy
bpl .-4;
mov r1,@#tpb; send to the printer
inc r2; add 1 to r2
cmp #46,r2; untill end of the string
bge .-32; repeat
The output is suppose to be the message: Welcome to Shir and Maya checkers game!
Instead we get the message: Welcome tol@r and Maya checkers game!
Which means that for some unknown reason the " Shir" got replaced with "l@r"
What should I do?