Sha256: 6a579f4b618b0d39c4391719e19543fd1744329c6f8058e725fc5bf4bde39ae4

Contents?: true

Size: 577 Bytes

Versions: 10

Compression:

Stored size: 577 Bytes

Contents

	; This is Hello World, written in 8080 assembly to run under CP/M
	; As you can see, it is similar to the 8086, and CP/M is very
	; similar to DOS in the way it is called.
	org	100h	; CP/M .COM entry point is 100h - like DOS
	mvi	c,9	; C holds the syscall, 9 = print string - like DOS
	lxi	d,msg	; DE holds a pointer to the string
	jmp	5	; CP/M calls are accessed through the jump at 05h
	; Normally you'd CALL it, but since you'd end the program by RETurning,
	; JMP saves a byte (if you've only got 64k of address space you want to
	; save bytes). 
msg:	db	'Hello world!$'

Version data entries

10 entries across 7 versions & 1 rubygems

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