Hello world/Text is part of Short Circuit's Console Program Basics selection.
Task

Display the string Hello world! on a text console.

Related tasks

   Hello world/Graphical
   Hello world/Line Printer
   Hello world/Newbie
   Hello world/Newline omission
   Hello world/Standard error
   Hello world/Web server


org		$4000
 
txt_output:	equ	$bb5a
 
		push	hl
		ld	hl,world
 
print:		ld	a,(hl)
		cp	0
		jr	z,end
		call	txt_output
		inc	hl
		jr	print
 
end:		pop	hl
		ret
 
world:		defm	"Hello world!\r\n\0"