[A83] Re: Text problem


[Prev][Next][Index][Thread]

[A83] Re: Text problem




It all looks alright to me.  The only thing, tho, is that when you are
setting up the coords by loading values into hl and then into (pencol) you
are (I assume since every one is 4 digits, even the ones with leading
zeros) using hex, not decimal.  If this is true, then put a $ before the
number or an h after the number.  Otherwise the compiler won't read it as
hexadecimal.
----------------------------------------------
Original Message
From: "Stephen Watson"<fif_freak00@hotmail.com>
Subject: [A83] Text problem
Date: Wed, 12 Sep 2001 17:44:43 -0700

>
>My current project (Pixel 2.0) is off to an OK start.  But, when making
the 
>title screen, not all the text shows up.  Please help me out.  I have 
>provided the code:
>
>mainmenu:
>	bcall(_grbufclr)			; Clear the buffer
>	bcall(_clrscrf)				; Clear the display
>	ld	bc, 0*256+56			; Load bc with the first coords for a line
>	ld	de, 95*256+56			; Load de with the second coords
>	ld	hl, 1				; Make sure the ROM call turns pixels ON
>	bcall(_darkline)			; Draw the line
>	ld	hl, 0018			; Make coords for text
>	ld	(pencol), hl			; Load the coords to pencol/penrow
>	ld	hl, menutext			; Load the text
>	bcall(_vputs)				; Put the text on the screen
>	ld	hl, 2028			; Put on the menu choices
>	ld	(pencol), hl
>	ld	hl, mainchoice1
>	bcall(_vputs)
>	ld	hl, 2728
>	ld	(pencol), hl
>	ld	hl, mainchoice2
>	bcall(_vputs)
>	ld	hl, 3428
>	ld	(pencol), hl
>	ld	hl, mainchoice3
>	bcall(_vputs)
>	ld	hl, 4128
>	ld	(pencol), hl
>	ld	hl, mainchoice4
>	bcall(_vputs)
>	ld	hl, 4828
>	ld	(pencol), hl
>	ld	hl, mainchoice5
>	bcall(_vputs)
>	bcall(_getkey)
>	ret
>menutext:
>	.db	"Pixel 2.0 Main Menu",0
>mainchoice1:
>	.db	"New Pic",0
>mainchoice2:
>	.db	"Load a Pic",0
>mainchoice3:
>	.db	"Swap Pics",0
>mainchoice4:
>	.db	"Help",0
>mainchoice5:
>	.db	"Quit",0
>.end
>end
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
>

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com