Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: 4ce_labs on April 05, 2006, 01:21:00 pm

Title: asm sprite programs ?
Post by: 4ce_labs on April 05, 2006, 01:21:00 pm
I got a few (computer) programs that are supose to:
-make sprites
or
-turn calc pic's into asm sprites

and then it give's me a code,

so I save the code as an .asm file OR .z80

break-out the old comiler and....
:overheat:xplod.gif

ether I get A bunch of errors or when I put it on the calc
like :dissapointed:nonono.gif
c1-->
CODE
ec1:asm(prgmSPRITE
ERROR;SYNTAXc2
ec2
OR SOME THING WHATS WRONG???
I EVEN TRYED HEADERS AND STUFF.  
:(sad.gif:angry:mad.gif
Title: asm sprite programs ?
Post by: kalan_vod on April 05, 2006, 01:36:00 pm
What program? zsprite?
Title: asm sprite programs ?
Post by: Liazon on April 05, 2006, 01:44:00 pm
it's just data right? well there's no executable to actually put it onto the screen?
Title: asm sprite programs ?
Post by: kalan_vod on April 05, 2006, 01:47:00 pm
If it's zsprite, then it has a compiler and it works fine with windows. But I would suggest using xLIB for on calc sprites (if you are planning on using an asm lib).
Title: asm sprite programs ?
Post by: 4ce_labs on April 05, 2006, 01:57:00 pm
ok, and I was using turbo sprites, and pic copy

can anyone give me a code that displays a sprite an pauses then ends.

:crazy:fou.gif

(on the TI-Os)
Title: asm sprite programs ?
Post by: DJ Omnimaga on April 05, 2006, 02:01:00 pm
i think you are trying to execute the actual sprite data, which is impossible as you need to write the proper assembly code to do it. However there is some libraries avaliable in the archives that can do it for you, like xLIB 0.1 to xLIB 0.601a, Omnicalc, CODEX and zsprites

I cant really help much on z80 assembly programming tho as I only program in BASIC
Title: asm sprite programs ?
Post by: Spellshaper on April 06, 2006, 03:28:00 am
My advice: stick to xLib or Omnicalc. They
Title: asm sprite programs ?
Post by: tifreak on April 06, 2006, 03:57:00 am
There is of course my nifty BASIC program... :Dbiggrin.gif
Title: asm sprite programs ?
Post by: Liazon on April 06, 2006, 09:33:00 am
QuoteBegin-4ce_labs+-->
QUOTE (4ce_labs)
ok, and I was using turbo sprites, and pic copy

can anyone give me a code that displays a sprite an pauses then ends.

:crazy:fou.gif

(on the TI-Os)


There are no r0m calls for displaying sprites.

You must write the first byte of the sprite to plotscreen, the second byte to plotscreen+12, the third byte to plotscreen+24, and so on iirc.  Then call the r0m call that displays the graph buffer onto the LCD screen.

Oh, btw, if you are trying to do this to increase the speed of your sprited BASIC program, DON'T! It actually slows it down because iirc, ASM doesn't splice into basic very easily.  This has something to do with leaving the Ti-OS to run the program and then returning, and then finding the spot in the original Basic program.  The reason why xlib is so good is because it uses a parser hook much like the Ti-OS that interprets tokenized Basic code.
Title: asm sprite programs ?
Post by: 4ce_labs on April 06, 2006, 01:22:00 pm
ok,thanks