[A83] Re: HL / 12 (fast)
[Prev][Next][Index][Thread]
[A83] Re: HL / 12 (fast)
slightly faster
; de = hl / 12
; af,bc,de,hl destroyed
; 434-476 tstates w/o ret
ld b,h
ld c,l
xor a
ld d,a
add hl,hl
adc a,a
rl d
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
add hl,bc
jr nc,$+5
ld e,a
inc de
ld a,e
add hl,hl
adc a,a
rl d
ld e,a
References: