0 Members and 1 Guest are viewing this topic.
A logical shift right is equivalent to a multiply by 2, and a logical shift right is equivalent to a division by...
multiplyHLBy100: ld e, l ld d, h ;de = 1;multiply by 2 add hl, hl ;hl = 2;add 1 add hl, de ;hl = 3;multiply by 8 add hl, hl ;hl = 6 add hl, hl ;hl = 12 add hl, hl ;hl = 24;add 1 add hl, de ;hl = 25;multiply by 4 add hl, hl ;hl = 50 add hl, hl ;hl = 100 ret