mirror of
https://github.com/PDP-10/its.git
synced 2026-02-27 01:09:49 +00:00
Hello world for MACRO-10.
This commit is contained in:
29
src/hello/hello.mac
Normal file
29
src/hello/hello.mac
Normal file
@@ -0,0 +1,29 @@
|
||||
TITLE HELLO WORLD
|
||||
|
||||
;Hello world example for MACRO-10, for running under DECUUO.
|
||||
|
||||
;MACRO-10 is not a native program, so it's running under the TOPS-10
|
||||
;emulator DECUUO. It outputs a relocatable file for the TOPS-10
|
||||
;LOADER or LINK. The linked program must be specially prepared for
|
||||
;running under DECUUO.
|
||||
|
||||
;To assemble, type
|
||||
; :cwd hello
|
||||
; :macro
|
||||
; *hello=hello.mac
|
||||
; *^C
|
||||
;To link and dump a DECUUO program, type
|
||||
; :dec sys:loader
|
||||
; *hello/g
|
||||
; *45$g
|
||||
; Command: dump
|
||||
; *:pdump ts hello
|
||||
|
||||
SEARCH UUOSYM
|
||||
|
||||
START: RESET
|
||||
OUTSTR [ASCIZ /HELLO TOPS-10/]
|
||||
EXIT 1,
|
||||
JRST START
|
||||
|
||||
END START
|
||||
Reference in New Issue
Block a user