[A83] Re: HL / 12 (fast)


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

[A83] Re: HL / 12 (fast)




of course jr nc,$+1 should be jr nc,$+3

> From: "Tijl Coosemans" <tijl@ulyssis.org>
> 
> ; de = hl / 12
> ; f,b,c,d,e,h,l destroyed
> ; 474-480 tstates w/o ret
> 
>     ld     b,h
>     ld     c,l
>     ld     de,0
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d
>     add    hl,bc
>     jr     nc,$+1
>     inc    de
>     add    hl,hl
>     rl     e
>     rl     d




References: