|
First, run the RT-11SJ at simh
1: Install simh: direct installation under Win, Linux Rear Lower make pdp11 found in the BIN directory and directory search path to the next cp
2: to http://simh.trailing-edge.com/software.html download RT-11 V4 for the PDP-11 mirrored disk file rt11swre.tar.Z and extract obtained in the image file rtv4_rk Disks directory. dsk
Or Linux commune Resources Download Station:
3: Create a run directory rt11swre, the rtv4_rk.dsk over this directory
4: Establish simh boot file boot.ini as follows: rt11swre $ cat boot.ini
set cpu 256k
att rk0 rtv4_rk.dsk
boot rk0
5: Start pdp11
$ Pdp11 boot.ini
PDP-11 simulator V3.9-0
Disabling CR
RT-11SJ V04.00C
.D 56 = 5015
.TYPE V4USER.TXT
Welcome to RT-11 Version 4. RT-11 V04 provides new hardware support
and some major enhancements over Version 3B.
Please use the HELP command; it describes the new options in many
of the utilities.
If you are using a terminal that requires fill characters,
modify location 56 with a Deposit command before proceeding with
system installation. LA36 DECwriter II and VT52 DECscope terminals
do NOT require such modification.
.D 56 = 0
.
. No. RT-11 operating system command prompt (c similar to dos under: \> $ unix or under)
Second, in the RT-11 environmental input source HELLO.MAC
Editor EDIT I would not use this with the COPY command (similar to unix file creation method using the cat command):
.COPY TT: HELLO.MAC
Files copied:
^ .TITLE HELLO WORLD
.MCALL .TTYOUT, .EXIT
HELLO :: MOV # MSG, R1; STARTING ADDRESS OF STRING
1 $: MOVB (R1) +, R0; FETCH NEXT CHARACTER
BEQ DONE; IF ZERO, EXIT LOOP
.TTYOUT; OTHERWISE PRINT IT
BR 1 $; REPEAT LOOP
DONE: .EXIT
MSG: .ASCIZ / HELLO, WORLD /!
.END HELLO
^ ZTT: to DK: HELLO.MAC
Note that the last line (you must start a new line, not behind .END HELLO) Simply enter the ctrl + Z files will be saved to disk
.DIR * .MAC
HELLO .MAC 1
1 Files, 1 Blocks
2496 Free blocks
Third, compilation
.MACRO HELLO
ERRORS DETECTED: 0
Fourth, connect and run
.LINK HELLO
.R HELLO
HELLO, WORLD!
Simpler HELLOWORLD:
; MACRO-11 EXAMPLE.
.MCALL .EXIT, .PRINT
START:
.PRINT #MES
.EXIT
MES: .ASCIZ / HELLO !!! /
.END START
There is also a version:
.MCALL .REGDEF, .TTYOUT, .EXIT
.REGDEF
HELLO:
MOV # MSG, R1
MOVB (R1), R0
LOOP: .TTYOUT
MOVB (R1) +, R0
BNE LOOP
.EXIT
MSG: .ASCIZ / HELLO, WORLD /!
.END HELLO |
|
|
|