Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo,

start:

mov ax, .title_msg
	mov bx, .footer_msg
	mov cx, 10011111b	; Colour
	
	call os_draw_background

	mov si, .message

	call os_print_string
	
	.message	db 'Hallo en welkom to pirom cloud server', 0
	
	.title_msg	db 'Pirom could Setup Systeem', 0
	.footer_msg	db 'Setup ...', 0


Now i wanne try do print a string whit db arry

      ;print the instructions
pmsg:   mov dl,16               ;col
        mov dh,6                ;row
        xor cl,cl
        mov si,intro            ;message pointer


 ;line length (including 0), Message, 0
intro:  db 16,'Deep Sea Fisher',0
        db 1,0
        db 39,'Catch a fish and reel it in for points',0
        db 49,'The deeper the fish, the more points it is worth',0
        db 43,'If a fish hits your line, you loose a hook',0
        db 45,'When you run out of hooks, the game is over!',0
        db 1,0
        db 45,'Up arrow raises hook, Down arrow lowers hook',0
        db 35,'Press Esc at any time to quit game',0
        db 1,0
        db 20,'Press Enter to start',0
es      db 0



but i get the error :


test.asm:10: error: symbol `start.title_msg' undefined
test.asm:11: error: symbol `start.footer_msg' undefined

What I have tried:

the code is now :

but the page black

;------------------------------------------------------
; Install screens 1 
;------------------------------------------------------
	BITS 16
	ORG 32768
	%INCLUDE "pirom_dev.inc"


pmsg:   mov dl,16               ;col
        mov dh,6                ;row
        xor cl,cl
        mov si,intro            ;message pointer
.loop   cmp cl,11    



start:
mov ax, .title_msg
	mov bx, .footer_msg
	mov cx, 10011111b	; Colour
	

	call os_draw_background
           ;number of lines in message
	
	
	
	
	.title_msg	db 'Pirom could Setup Systeem', 0
	.footer_msg	db 'Setup ...', 0




intro:  db 16,'Deep Sea Fisher',0
        db 1,0
        db 39,'Catch a fish and reel it in for points',0
        db 49,'The deeper the fish, the more points it is worth',0
        db 43,'If a fish hits your line, you loose a hook',0
        db 45,'When you run out of hooks, the game is over!',0
        db 1,0
        db 45,'Up arrow raises hook, Down arrow lowers hook',0
        db 35,'Press Esc at any time to quit game',0
        db 1,0
        db 20,'Press Enter to start',0
es      db 0
Posted
Updated 23-Jul-17 2:55am
Comments
Richard MacCutchan 23-Jul-17 8:05am    
Where is line 10, where is line 11? Please edit your question and show us where the error(s) occur.

1 solution

You are using the .label format for both the title_msg and footer_msg... It probably will make them local and unreachable from the external print method...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900