Re: A86: Question About Sprites...
[Prev][Next][Index][Thread]
Re: A86: Question About Sprites...
you need a special call to display sprites, not _puts.
James Thompson wrote:
>
> I've just started ASM programming and have the basics down....I tried
> to use a small 8x8 sprite in one of my programs and instead of
> displaying the sprite the program displayed a string of charecters
> that the sprites bit sequence stood for....the program is listed
> below...what did I miss?
>
> <<START OF FILE>>
>
> #include "ti86asm.inc"
>
> .org _asm_exec_ram
>
> call _clrLCD
> ld hl , $0000
> ld (_curRow) , hl
> ld hl , Sprite
> call _puts
> call _newline
> ld hl , String
> call _puts
> call _newline
> ret
>
> Sprite:
> .db %11011011
> .db %10011001
> .db %10100101
> .db %10011001
> .db %11000011
> .db %10011001
> .db %10100101
> .db %10111101
>
> String:
> .db "A small sprite..."
>
> .end
>
> <<END OF FILE>>
>
> Thanks in advanced...
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
--
=====================================
= =
= Kirk Meyer (mailto:_@ibm.net) =
= http://www.bigfoot.com/~kirkmeyer =
= =
= "Set your affection on things =
= above, not on things on the =
= earth." Colossians 3:2 =
= =
=====================================
References: