0 Members and 1 Guest are viewing this topic.
transformA: push bc ld c, 11h sub c jp nc, loc_4F03 or a adc a, c cp 0 jr z, loc_4F03 cp 1 jr z, loc_4F03 ld b, a dec b ld a, 2loc_4EFA: sla a djnz loc_4EFA ld b, 1 sub b jr loc_4F05loc_4F03: ld a, 0loc_4F05: pop bc ret
transformA: push bc ld c, 11h sub c jp nc, loc_4F03 or a adc a, c
cp 0 jr z, loc_4F03 cp 1 jr z, loc_4F03 ld b, a dec b ld a, 2
loc_4EFA: sla a djnz loc_4EFA ld b, 1 sub b jr loc_4F05
loc_4F03: ld a, 0loc_4F05: pop bc ret
transformA: or a ret z cp 11h jr c, notOver17 xor a retnotOver17: ld b, a ;b is trash anyways ld a, 1shiftLoop: add a, a djnz shiftLoop dec a ret
call getCertByteloc_4E55: push af ld b, 9 sub b jr c, loc_4E6B pop af ld b, 8 sub b call transfromA ld d, a ld a, 8 call transformA ld e, a jr loc_4E72loc_4E6B: ld d, 0 pop af call transformA ld e, aloc_4E72:
Another thing, sla a should probably be add a,a (and like you said, the programmer probably didn't know about add )
Most of the stuff here is stuff anyone would do if they had little experience,...
Quote from: Hot_Dog on September 18, 2011, 04:00:44 pmMost of the stuff here is stuff anyone would do if they had little experience,...but still: only TI does 'or a \ adc a, c'. Everyone that knows what a z80 is uses 'add a, c'.