Re: A82: Side-Scrolling - some code


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

Re: A82: Side-Scrolling - some code




   I couldn't get his actual code to work. This is the best I could come up 
with using Adamman's idea, and I think it is 8 bytes smaller anyway.

Scroll_Left:
    ld b,96
Screen_Loop:
    push bc
    ld b,64
    ld  ix,APD_BUF+767
    ld  hl,GRAPH_MEM+767
Screen_Loop2:
    push bc
    ld b,12
    push bc
    or a
Scroll_Line_APD:
    rl  (ix)
    dec ix
    djnz    Scroll_Line_APD
    pop bc
Scroll_Line_Graph:
    rl  (hl)
    dec hl
    djnz Scroll_Line_Graph
    pop bc
    djnz    Screen_Loop2
    push hl
    push ix
    ROM_CALL(DISP_GRAPH)
    pop ix
    pop hl
    pop bc
    djnz Screen_Loop
    ret
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com