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
Next revision
Previous revision
Last revision Both sides next revision
tops-20 [2020/05/06 23:22]
smj
tops-20 [2020/05/06 23:39]
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 75: Line 75:
        TESTING 1 2 3!        TESTING 1 2 3!
        CPU time 0.09   Elapsed time 0.19        CPU time 0.09   Elapsed time 0.19
 +
 +For an excellent summary to get started with FORTRAN on TOPS-20, check out
 +[[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.
  
  
tops-20.txt · Last modified: 2020/07/13 10:36 by setala