i know i just copy and pasted his code and did not feel like changing it.
adding a ,$d6 to the end of the line did not make it go down an extra line. it still only showed the first line.
this is the code i am using:
Code:
and it is not making it so that it goes down one line. it just shows the first line and cuts off part of the n on ansalon. also i am programming it in ion but is there still a way i can make it have a custom dcs icon.
Code:
about:
bcall(_clrlcdfull)
ld hl,0*256+0
ld (pencol),hl
ld hl,info
bcall(_vputs)
bcall(_getkey)
jp start
info:
.db "This is a game called Ansalon",$D6
.db "and is in no way similar to the",$D6
.db "online mud. The controls are very",$D6
.db "simple.",$D6
.db " ",$D6
.db "Arrows=Move",$D6
.db "Clear=Quit",0
and it is not making it so that it goes down one line. it just shows the first line and cuts off part of the n on ansalon. also i am programming it in ion but is there still a way i can make it have a custom dcs icon.
I just found out that $D6 is ASCII for the new line found in the program editor, so it only works on the homescreen.
calc84maniac wrote:
I just found out that $D6 is ASCII for the new line found in the program editor, so it only works on the homescreen.
The ASCII for a newline is 10 ($0A), $D6 (214) is outside of ASCII range (You are correct in that $D6 is TI's newline, but not that it is ASCII - may seem nitpicky, but it is an important distiction due to TI not following ASCII, which could trip up newbs)
@Lafferjm: Or you could create your own multi-line text display. Shouldn't be overly hard, just check each byte for D6, and if it is, scroll down a line and continue, if its not, then check if its 0, and if it is, return from the call, otherwise call _vputc and display it
Plz, just use this routine:
Code:
Just replace all of your bcall(_vputs) with call vputs.
Code:
vputsnl:
ld a,(penrow)
ld b,7
add a,b
ld (penrow),a
xor a
ld (pencol),a
vputs:
ld a,(hl)
inc hl
or a
ret z
cp $D6
jr z,vputsnl
bcall(_vputmap)
jr vputs
Just replace all of your bcall(_vputs) with call vputs.
At this point, I'd suggest you just copy the routine in, and accept that it works. If you work on the basics and keep practicing than there's nothing you can't do.
alright. and i added that and my sprite draw and erase to an inc file called usefull.inc. and when i do the header i put:
Code:
oh and usefull has an include to ion.inc in it. but i get this error when it comes time to compile
File too large! Binary file may not be larger than 26000 bytes.
how would i fix that.
Code:
.nolist
#include "usefull.inc"
#include "keyval.inc"
oh and usefull has an include to ion.inc in it. but i get this error when it comes time to compile
File too large! Binary file may not be larger than 26000 bytes.
how would i fix that.
I'm honestly unsure of what the problem is, but I don't profess to be an expert on include files so maybe we can both learn something here. I'm going to guess that you can't include a file in an include file. In other words, your including ion.inc in usefull.inc. I'd try just including ion.inc in the main program and not in usefull.inc and see if that helps at all. If that's not the problem, than I'm not sure what is. Usefull.inc isn't over 26000 bytes, right
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 2 of 8
» All times are UTC - 5 Hours
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 vote in polls 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 vote in polls in this forum
Advertisement