File: hellospec.asm

package info (click to toggle)
pasmo 0.5.3-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 892 kB
  • ctags: 1,805
  • sloc: cpp: 8,508; asm: 3,020; sh: 790; makefile: 627
file content (33 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
	org 30000

tv_flag	equ 5C3Ch

start
	; Directs rst 10h output to main screen.
	xor a
	ld (tv_flag),a

	ld b, 50

another

	push bc

	ld hl,hello
again	ld a,(hl)
	cp 0
	jr z, exit
	push hl
	rst 10h
	pop hl
	inc hl
	jr again

exit
	pop bc
	djnz another
	ret

hello	db "Hello, world.", 0Dh, 0

	end start