Sha256: 5775334a5ede763e2dba1a761848d73e849655a903470649b7b3f30cada34716

Contents?: true

Size: 842 Bytes

Versions: 10

Compression:

Stored size: 842 Bytes

Contents

<syntaxhighlight lang="macro-10">

        TITLE HELLO

COMMENT !
  Hello-World program, PDP-10 assembly language, written by kjx, 2022.
           Assembler: MACRO-10    Operating system: TOPS-20
!

        SEARCH MONSYM                      ;Get symbolic names for system-calls.

GO::    RESET%                             ;System call: Initialize process.

        HRROI 1,[ASCIZ /Hello World!/]     ;Put pointer to string into register 1.
        PSOUT%                             ;System call: Print string.
        HALTF%                             ;System call: Halt program.

        JRST GO                            ;Unconditional jump to GO (in case the
                                           ;user uses the CONTINUE-command while this
                                           ;program is still loaded).

        END GO


Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.6 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.6 files.zettacode2/hello_world.text/macro-10.txt
zettacode-0.1.5 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.5 files.zettacode2/hello_world.text/macro-10.txt
zettacode-0.1.4 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.4 files.zettacode2/hello_world.text/macro-10.txt
zettacode-0.1.3 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.2 files.zettacode/hello_world.text/macro-10.txt
zettacode-0.1.1 zettacode.files/hello_world.text/macro-10.txt