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