Sha256: 65d6c812d0a531fa1edf1350d3c6de3003600ed61932eaa95856f93e84a1c8bb

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

This is Dennis Ritchie's Unix Assembler ("as"). Other PDP-11 assemblers include PAL-11R, PAL-11S and MACRO-11.

{{works with|UNIX|1}} to {{works with|UNIX|7}}

.globl  start
	.text
start:
        mov	$1,r0               / r0=stream, STDOUT=$1
	sys	4; outtext; outlen  / sys 4 is write
	sys	1                   / sys 1 is exit
	rts	pc                  / in case exit returns

	.data
outtext: <Hello world!\n>
outlen = . - outtext

Version data entries

10 entries across 7 versions & 1 rubygems

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