Oldschool Gaming - reviewing new games on classic computers
It is currently Wed Jun 19, 2013 11:51 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Hex files problem with Hex tutorial 8 code
PostPosted: Tue Sep 23, 2008 2:15 pm 
Offline

Joined: Tue Sep 23, 2008 1:51 pm
Posts: 2
Hi all :D
I've been coding on the C64 for about 4 weeks now and I'm stuck on a certain part of the demo in Hex 8.

I just cannot get the scolling text to show upper or lowercase letters. It will only show numbers and punctuation, etc?!

I use TMP by SounDemon in my MMC Replay in my breadbox 64 with Kernel-03.
I've triple-quadruple checked my code against the pic_demo.asm code and it's the same, apart from that I load the music,sines,chars,sprites and bitmap to the correct addresses instead of .incbin (which doesn't work in TMP).
I load:
music to $1000
sines to $3e00
chars to $4000
sprites to $4400
bitmap to $5800

I also changed:
message .scrl "welcome to yet another scrolling "
.scrl "message erfg er fg er oded for "
to:
message .text "welcome to yet another scrolling "
.text "message erfg er fg er oded for "

because TMP uses .text not .scrl.
Is this right?

Any ideas? Anyone else found this problem?

I've tested my code on a breadbox with Kernel-02, a breadbox with Kernel-03, a C64C and even in Vice, but get exactly the same result.

Please help... I've been really scraping through the code in detail but haven't fixed this one yet.
cheers :wink:

Oh... and did I say hi :P
The Hex files series of tutorials has been really, really good.. Much thanks :DD


Top
 Profile  
 
 Post subject: Re: Hex files problem with Hex tutorial 8 code
PostPosted: Tue Sep 23, 2008 3:45 pm 
Offline
Site Admin

Joined: Tue Aug 07, 2007 3:59 pm
Posts: 1228
Location: Leeds, U.K.
decilinear wrote:
I also changed:
message .scrl "welcome to yet another scrolling "
.scrl "message erfg er fg er oded for "
to:
message .text "welcome to yet another scrolling "
.text "message erfg er fg er oded for "

because TMP uses .text not .scrl.
Is this right?


Well, i've never been a fan of Turbo Assembler personally so i'm not entirely sure if my memory is right on this one, but if it is then this is the problem; i believe that the .text command doesn't write the same data to memory as .scrl will from C64Asm, rather than screen codes, i believe it produces PETSCII and the characters in that format don't align up to the font (or indeed the upper case ROM font for that matter). For the original version of the articles, the text had to be distributed as a binary file in the same way the graphics and music are, this and my dislike of the assembler itself were a couple of the main reasons that the articles were migrated away from Turbo Assembler when the OSG "remixes" were done.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2008 4:19 pm 
Offline

Joined: Tue Sep 23, 2008 1:51 pm
Posts: 2
ok. cheers.
I had actually created and compiled a new object file with just:

*=$2800
message .text "dfdfhgdfhfhdfh df hdf"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.text "dfg fdhg dh tgh h rth rt hr"
.byte $00

and then loaded it to address $2800.
When I go into my monitor and do '.I 2800 2840' I see my text there.
Are you saying that the .scrl command will do something other than put the text into $2800 and beyond?
Please scuse tha noob :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2008 8:19 pm 
Offline
Site Admin

Joined: Tue Aug 07, 2007 3:59 pm
Posts: 1228
Location: Leeds, U.K.
decilinear wrote:
When I go into my monitor and do '.I 2800 2840' I see my text there.
Are you saying that the .scrl command will do something other than put the text into $2800 and beyond?


It'll write the text into exactly the same place but not use the same values; .scrl "a" will put $01 into memory and, if i'm remembering correctly, .text "a" will write $41 - the I command in the AR or RR monitor will translate PETSCII codes into screen codes to display them, the command to read screen codes from memory is I*

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Content copyright © 2004-2013 Oldschool Gaming     Designed and hosted by Enisoc Design