0 Members and 2 Guests are viewing this topic.
ld b,8doubleloop: rlca adc hl,hl rrca adc hl,hl rlca djnz doubleloop
ld h,doubleLUT >> 8 ld l,a ld e,(hl) inc h ld d,(hl)
ld h,LUT>>8add a,ajr nc,$+3inc hld e,(hl)inc hlld d,(hl)
calc84's is broken as far as I can tell because it neglects that when "duplicated" A is two bytes. (You also need to 256-byte align the table.)
Code: [Select] inc h
inc h