[A83] Re: Tilemap/Displaying Pics/ Scrolling Screen


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

[A83] Re: Tilemap/Displaying Pics/ Scrolling Screen




>>From: "Nick Palladino" <nickps1@hotmail.com>
>>
>>Okay, I new to assembly and need some help. I&#8217;ve seen some
>>tutorials on tilemaps and stuff but they didn&#8217;t help. I want
>>to know how to
>>  1. Make and display a picture in assembly.
>>  2. Make a tilemap to scroll.
>>Can some one please send me some example code that includes
>>a real scrolling tilemap that actually works. Thank You.
>>
>>P.S could the reply to this be in extensive detail so I don&#8217;t
>>have to bug anyone else on how to do tilemaps.
>
>Extensive detail? Here we go....
>
>--------------------------------------------------
>Chapter I Displaying your own pictures in assembly
>--------------------------------------------------
>________________
>* example code *
>覧覧覧覧覧覧覧覧
>.org progStart
>
> ld hl,picture ; get the picture
> ld de,8E29h ; is scrnBuf
    ;probably for the regular TI-83
> ld bc,768 ; is number bytes we have
> ldir ;   to copy (12*64)
> call fastCopy ; copy scrnBuf to screen
> bcall(_getKey) ; wait for a key so we can
> ret ;   watch our picture
>picture:
> .db $AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA
> .db $55,$55,$55,$55,$55,$55,$55,$55,$55,$55,$55,$55
>; ..64 lines in total..
> .db $AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$AA
> .db $55,$55,$55,$55,$55,$55,$55,$55,$55,$55,$55,$55
>.end
>_______________
[snip]