;
;       Hello world -  8031SBC demo program
;       
;
;  Primary controls
;
	$MOD52         ; for the 80C32 CPU register definitions etc.
	$TITLE(Hello world demo program)
	$PAGEWIDTH(132)
;
;       Monitor entry points
;
monitor equ     03F00H          ; Go to the monitor
getchar equ     03F03H          ; Get character in Acc
sendchar equ    03F06H          ; Sends char in Acc to monitor display
sendstr equ     03F09H          ; Sends a string to the display
;
;  Variable declarations
;
;
base    equ     4000H           ; beginning of program RAM on SBC
;
;base   equ     0H              ; alternate equate to burn in EPROM
;
reset:        
	org     base+0H         ; reset vector
;
	ajmp    start           
;
start:
	mov     dptr,#message   ; point to the string
	lcall   sendstr         ; print it
	lcall   monitor         ; show results in regs
	jmp     0               ; and return
;
;       This is where the data is stored
;
message:
	db      0dh, 0ah, 'Hello there!', 0dh, 0ah, '$'

	END
