So I have this code..
How the heck would I display it?


Code:
; ASM Array File Generated by SpritED :: Sprite Editor
; Generated On 09-22-2008 At 19:52

sprite:
    dc.l $000FF800
    dc.l $007A8F00
    dc.l $00C18180
    dc.l $03010060
    dc.l $46018030
    dc.l $6C028018
    dc.l $5802400C
    dc.l $54042004
    dc.l $7E842002
    dc.l $70C81023
    dc.l $50B9D225
    dc.l $49FB6B17
    dc.l $C9222AD9
    dc.l $C5E37668
    dc.l $8079EDC8
    dc.l $80400618
    dc.l $80801D14
    dc.l $80806514
    dc.l $810380A4
    dc.l $810C00A2
    dc.l $C2300043
    dc.l $C4C40041
    dc.l $E7040021
    dc.l $FC0402A3
    dc.l $B8040712
    dc.l $DDDD4ABC
    dc.l $B95552AF
    dc.l $AD5552AD
    dc.l $A7DDCABD
    dc.l $43000062
    dc.l $40C00182
    dc.l $80780F01
    dc.l $FFF007FF
    dc.l $FF8570FF
    dc.l $FF3E7E7F
    dc.l $FCFEFF9F
    dc.l $F9FE7FCF
    dc.l $F3FD7FE7
    dc.l $FFFDBFF3
    dc.l $EFFBDFFB
    dc.l $FFFBDFFF
    dc.l $DFF7EFFE
    dc.l $FFF7EFFE
    dc.l $FFFFF7FC
    dc.l $7FDFF7FE
    dc.l $7FDFFBBF
    dc.l $7FBFFFFF
    dc.l $7FBFFFFF
    dc.l $7F7FE6FF
    dc.l $7F7F9EFF
    dc.l $7EFC7F7F
    dc.l $7EF3FF7F
    dc.l $3DCFFFFE
    dc.l $FB3FFFFF
    dc.l $B8FFFFDF
    dc.l $93FFDFDC
    dc.l $E7FFBFED
    dc.l $FFFF7FFF
    dc.l $E7FFFFFB
    dc.l $F3FF7FFF
    dc.l $F9FFDFFF
    dc.l $BCFFEF9D
    dc.l $BF3F8E7D
    dc.l $7F8670FE

You're wanthing this to go in to your Assembly code, right? This cannot work in a basic program, its written in z80 assembly.
Not only that, you didn't say how many sprites that is, and what the dimensions of each sprite are.
Exactly. Try and include some details in your post and it'll make it easier for us to help you Smile

Although, I am not an ASM coder, lol.
( I still need to get around to learning it... I thank Calc for the little knowledge I have though Razz )
I know nothing about coding in Z80 assembly Very Happy
But there is one sprite, dimensions are 32x32.
Reapex wrote:
I know nothing about coding in Z80 assembly Very Happy
But there is one sprite, dimensions are 32x32.
You have 64x4 bytes there, or 32x8 bytes, so you have twice as many bytes as you should for a 32x32 sprite. Something's wrong. Assuming we can get that straightened out, I'd be happy to put that in a program such that it will XOR the sprite as (X,Y) from a BASIC program.
Well, if this has anything to do with it, it is greyscale.
Reapex wrote:
Well, if this has anything to do with it, it is greyscale.
Oh, you didn't mention that. I don't have a good way to do this for you then.
  
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
Page 1 of 1
» 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

 

Advertisement