aboutsummaryrefslogtreecommitdiff
path: root/src/example/cpc.asm
blob: aa9fcb09f578f4c364a3e2ea04b2245c17aec9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	; Simple example CPC code
	;
	; To use:
	;
	; RUN ""

	option	output-file,cpc.tap
	option	output-format,cpc
	option	cpc-start,start

start:	org $8000

	ld	hl,msg
loop:
	ld	a,(hl)
	ret	z
	call	$bb5a
	inc	hl
	jr loop

msg:	org	$8800
	defb "Hello World",0