Sha256: 5d3943524b110de3fb1e48b94d92f001681808269b08c9562167e98c9587b49a

Contents?: true

Size: 738 Bytes

Versions: 10

Compression:

Stored size: 738 Bytes

Contents

Using native SVC (Supervisor Call) to write to system console:
<syntaxhighlight lang="360 assembly">
HELLO    CSECT 
         USING HELLO,15
         LA    1,MSGAREA     Point Register 1 to message area
         SVC   35            Invoke SVC 35 (Write to Operator) 
         BR    14            Return
MSGAREA  EQU   *             Message Area
         DC    AL2(19)       Total area length = 19 (Prefix length:4 + Data Length:15) 
         DC    XL2'00'       2 bytes binary of zeros
         DC    C'Hello world!'  Text to be written to system console
         END
Using WTO Macro to generate SVC 35 and message area:
<syntaxhighlight lang="360 assembly">         WTO   'Hello world!'
         BR    14            Return
         END

Version data entries

10 entries across 7 versions & 1 rubygems

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