| The United-TI Forum is Read-Only. | |
| 06 Jul 2010 08:57:47 am by calc84maniac | ||||||||
That's not a valid way to put data. I'm surprised your assembler isn't giving an error. It should be:
Assuming that's not the problem, where is the location of "clip_mask"? Edit: Meh, the forum ate my "% 00". Just pretend they are still there >_> |
||||||||
| 06 Jul 2010 10:18:58 am by Jerros | ||||
Thats idd not the problem 0x5, I wasnt paying much attention there, in my real program its like its supposed to be. I also forgot to put clip_mask there, its just in the APP, below the piece of script I posted. Shoult it be copyd to the ram or something? Thanks for your reply! |
||||
| 06 Jul 2010 09:30:42 pm by DigiTan | ||
| I don't know if this applies to every APP builder, but I have to include validate() as the last line of code. Also, I'll need to do a bjump(JForceCmdNoChar) to safely exit to TI-OS. Since there's no exit after the CALL ShowSprite part, the system will try to execute the sprite data and do something mean. | ||
| 06 Jul 2010 09:37:06 pm by calc84maniac | ||||||
clip_mask should be in RAM, yes. Otherwise the routine will try to modify flash and fail. |
||||||
| 07 Jul 2010 01:32:30 am by Jerros | ||||||
Thanks for the reply, but what I've posted is of course just a small piece of the programm, not the whole thing. I'ts not nessecary to post the whole header + a complete working programm.
That will be the problem then, but when do I move and read it from the ram? I mean, where in the script do I copy it to the ram, and how/where do I "read" it? Like I said, don't underestimate my newbyness here Thanks for the help. |
||||||
| 08 Jul 2010 12:29:40 pm by calc84maniac | ||||
You need to define all of your variables in RAM somewhere, like this:
There is no actual copying going on, you simply have the variables in a different location (in the safe-to-use area of appbackupscreen) |
||||
| 09 Jul 2010 02:10:20 am by Jerros | ||||||||||
Omg, I finally get how things work, thank you! Just to be sure, each "+1" is a value of hF or hFF? (yes, I am THAT big of a newb) That way I know how wether to do +1 or +2 or +whatever. Or is the beautiful thing here that you dont need to bother with that, since you're using the previous variable +1? EDIT: At elast the sprites now show, though the locations are off. This might be because I use this to keep track of the sprite locations:
Now, with your advie I defined it like:
Maybe +2 isnt enough? Or am I angering the asm gods with this? Anyway, thanks alot, I think this will help me much further, since my game is nearly completed : ) |
||||||||||
| The United TI Forum is Read-Only. | |
[Switch to Desktop view]
© Copyright 2000-2013 Cemetech & Kerm Martian :: Mobile Design by Alex "comicIDIOT" Glanville
Problems? Issues? Or Suggestions? There's a thread for that!
© Copyright 2000-2013 Cemetech & Kerm Martian :: Mobile Design by Alex "comicIDIOT" Glanville
Problems? Issues? Or Suggestions? There's a thread for that!
