Re: A83: ASM Tutorials


[Prev][Next][Index][Thread]

Re: A83: ASM Tutorials




Jared173@aol.com wrote:
> 
> I was reading about the sprite routine in your tutorials - is there any way to
> create a bigger sprite than this confined rectangular area:
>         .db %01000000
>         .db %01100000
>         .db %01110000
>         .db %01111000
>         .db %01111100
>         .db %01111000
>         .db %01111100
>         .db %01011000

You can easily (or not) modify a routine to suit your needs.  For
example, to make wider sprites, make the blit routine blit more bytes
per line.  For taller sprites, simply blit more lines (an easier
change).  If you want to make a routine which blits sprites with odd
sizes, that would be even more (much more) difficult.

Or perhaps somebody has already written what you are looking for...

> When I looked at some source code, I found this as a way of creating a big
> picture:
> ...
>     .db
> 128,143,214,17,18,149,74,2,49,74,37,255,80,223,211,83,82,90,202,106,122,202,71
> ,250,73,223,233,115,116,90,213
>     .db
> 110,122,213,98,102,137,239,219,115,84,172,213,70,124,213,110,118,150,175,235,1
> 06,246,189,213,109,85,213,237,90,214,255
> .....Ahh! What's with all the big numbers and commas?  Is that Pic83

Undoubtedly generated.  The intention of those numbers (data) would be
better expressed in hexadecimal, though.  If there are 768 bytes there,
I suspect ldir is used as the "blitting" routine.

-- 
John Kugelman.  kugelman@mnsinc.com

I believe we can change anything.
I believe in my dream.
    - Joe Satriani


References: