Re: A83: delay routines...HELP!


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

Re: A83: delay routines...HELP!




>Here's the code from frogger...

>DelayChk:
>pushaf
>pushbc
>lda,(level)
>cp1
>jpz,d2500
>cp2
>jpz,d2000
>cp3
>jpz,d1500
>cp4
>jpz,d1000
>jpnz,500
>d2500:
>ldbc,$2500
>jpdelayLoop

>d2000:
>ldbc,$2000
>jpdelayLoop

>d1500:
>ldbc,$1500
>jpdelayLoop

>d1000:
>ldbc,$1000
>jpdelayLoop

>d500:
>ldbc,$500
>jpdelayLoop
>
>delayLoop:
>DEC BC
>LD A, B
>OR C
>JR NZ, delayLoop
>POP BC
>POP AF
>ret

lol... who wrote this?

Linus

PS. No offence =)


References: