0 Members and 2 Guests are viewing this topic.
Similar to yours, CPD not only decreases DE and BC but checks to see if BC is zero.
ExhHL: adc hl,hl adc hl,hl adc hl,hl adc hl,hl adc hl,hl adc hl,hl adc hl,hl adc hl,hl rl l
Here is an incredibly inefficient and slow way to do an "ex h,l" but its impressive that it uses no extra registers or memory. Even the carry flag is preserved.