A86: New Asm programmer Needs Help


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

A86: New Asm programmer Needs Help




 Helo my name is JT. I am new to this mailing list and to asm programming in
general.
Below is a program I made i was trying to put a 24X24 sprite on the screen can
someone please tell me where I went wrong? It doesn't work very well at all :)

> .org _asm_exec_ram
>         call _clrLCD
>         ld hl, PIC1
>     call Sprite
>
> Sprite:
>         ld b,(hl) ;
>         inc hl
>         ld c, (hl)
>         push hl
>         pop ix
>         ld hl,$fc00
>         ld de,$18
>
> Pixel_Put:
>         ld a,(ix)
>         ld (hl),a
>         inc ix
>         djnz Pixel_Put
>         jp Next_Row
> Next_Row:
>         add hl,de
>         ld b,24
>         jp Pixel_Put
>         ret
>
> PIC1:
>
>    .db 24, 24
>
>  .db (the sprite data in here)
>



References: