User Tools

Site Tools


tops-20

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tops-20 [2020/05/06 23:32]
smj
tops-20 [2020/05/06 23:39] (current)
smj
Line 48: Line 48:
       ​       ​
                ​END ​                                   ;END the program                ​END ​                                   ;END the program
-      ^Z+      ^Z                                              ;​CTRL-Z closes the file
       @type test.for ​                                 ;TYPE the test.for file and verify       @type test.for ​                                 ;TYPE the test.for file and verify
                ​PROGRAM TEST                ​PROGRAM TEST
Line 78: Line 78:
 For an excellent summary to get started with FORTRAN on TOPS-20, check out For an excellent summary to get started with FORTRAN on TOPS-20, check out
 [[http://​wiki.twenex.org/​doku.php?​id=tutorials:​fortran]] [[http://​wiki.twenex.org/​doku.php?​id=tutorials:​fortran]]
 +
 +**MACRO-20**
 +
 +MACRO is the assembler on TOPS-20. ​ Here is a simple example of a Hello World in MACRO
 +
 +       @COPY TTY:​hello.mac ​                            ;A simple way to enter text into a file
 +       title hello                                      ​
 +       
 +       entry output
 +       ​search uuosym
 +       
 +       ​hello:​ asciz /Hello there.
 +       
 +       /
 +       ​output:​ outstr hello
 +       ​ monrt.
 +        end output
 +       ^Z
 +       
 +       @type hello.mac
 +       title hello
 +       
 +       entry output
 +       ​search uuosym
 +       
 +       ​hello:​ asciz /Hello there.
 +       
 +       /
 +       ​output:​ outstr hello
 +       ​ monrt.
 +        end output
 +       ​compile hello
 +       ​MACRO:​ hello
 +       
 +       EXIT
 +       @load hello
 +       ​LINK:​ Loading
 +       @save hello
 +        HELLO.EXE.1 Saved
 +       ​@<​smj>​hello
 +       Hello there.
 +
  
 Scans of original user and reference manuals can be found at: Scans of original user and reference manuals can be found at:
tops-20.txt · Last modified: 2020/05/06 23:39 by smj