New answers tagged pdp-11
3
If you want to print a string (terminated with a NUL (000)) suggest the following:
string: .asciz "the quick brown ..."
mov #1000,sp ; init stack
mov #string,R0 ; pass string as argument
jsr pc,Print ; to Print function
...
Print:mov r1,-(sp) ; save R1
br 20$ ; jump to NUL test
10$: ...
Top 50 recent answers are included
Related Tags
pdp-11 × 44history × 7
unix × 6
hardware × 5
assembly × 5
instruction-set × 5
operating-system × 3
c × 3
terminal × 3
dec × 3
ussr × 3
simh × 3
software-development × 2
electronika-bk × 2
z80 × 1
memory × 1
zx-spectrum × 1
cpu × 1
crt-monitor × 1
hard-disk × 1
boot × 1
file-format × 1
compilers × 1
disk-image × 1
file-system × 1