08-28-2004, 01:57 AM
Iâm having problems with loading sprites with BSAVE and BLOAD, Iâm trying to save a sprite to a file with one program, and the open it with another program. Hereâs my code:
yeah, I figure Iâm doing something wrong⦠I get an illegal function call when loading sprites, about five seconds into the program when I run the loading part.
Could someone lead me in the right direction? Thanks!
Code:
âsaving sprites
DEF SEG = &HA000
BSAVE "yay.dat", 0, 199
DEF SEG
DATA 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
DATA 10,10,10,10,10,10,10,10,10,10,10,02,10,10,10
DATA 10,10,10,10,10,10,10,10,10,10,02,10,10,10,10
DATA 10,10,10,02,10,10,10,02,10,10,02,10,10,10,10
DATA 10,10,10,10,02,10,02,10,10,10,10,10,10,10,10
DATA 02,10,10,10,02,10,02,10,10,10,02,10,10,10,10
DATA 10,02,10,10,02,10,02,10,10,02,10,10,02,10,10
DATA 10,10,02,02,10,02,10,10,10,02,10,02,10,10,10
DATA 10,10,10,10,10,10,10,10,10,02,10,02,10,10,10
DATA 02,02,10,10,02,10,10,10,02,02,02,10,10,10,10
DATA 10,10,02,02,10,10,10,10,10,10,10,10,10,10,10
DATA 10,10,10,10,10,10,02,02,10,10,10,10,10,10,10
DATA 10,10,10,10,10,10,02,10,10,10,10,10,10,10,10
âloading sprites
DIM sprite(50)
SCREEN 13
DEF SEG = &HA000
BLOAD "yay.dat", 0
PUT (1, 1), sprite
yeah, I figure Iâm doing something wrong⦠I get an illegal function call when loading sprites, about five seconds into the program when I run the loading part.
Could someone lead me in the right direction? Thanks!