[A86] Hybid ASM/BASIC Prog questions..
[Prev][Next][Index][Thread]
[A86] Hybid ASM/BASIC Prog questions..
Hello again,
Geez, I'm full of questions, a while ago I started to make a basic rpg that used around 6 picture files (1024 Bytes EACH!) and now that I have some ASM knowlege, I was trying to find away to transfer thos pics to ONE asm prog, heres what I was thining.
You would write in basic.
:2|->|xr
:asm(pics
That would display the second pic in the file.
Now I want to know if there's a way to simply transfer whats in say the ti variable xr into regestar a easily (NOTE: I have very little knowlege of the VAT etc. so bear with me), and also would this work in asm... (for the picture data)
...
... ;some code blah blah
...
;since i'm coding the basic, I'll
cp 1 ;make sure xr is under 255
jr z,pic1
cp 2
jr z,pic2
... ;rest the same for number of pics.
than for acually drawing it, wold this work?
pic1:
ld hl,$fc00
ld (hl),pic1_data ;since pic1_data is
;much larger than $fc00
; it will carry over.
... ; pic drawers for other pics.
...
pic1_data:
.db %oooooooo,%00000000,%00000000, ...
.db ... ... ... ...
.db ... ... ... ...
...
...
and make it be like a sprite as big as the screen..
Thanks,
Dillon Foley
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
1 cent a minute calls anywhere in the U.S.!
http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com
Follow-Ups: