Security code: Difference between revisions
Jump to navigation
Jump to search
m (Created page with "Pointed to by $182. From KOF96 (CD): <pre> moveq #0,d3 ;64728: 7600 tst 2580(a5) ;6472A: 4A6D0A14 bne LAB_20F3 ;6472E: 6600003C movea.l 2564(a5),a0 ;64732: 206D0A04 m…") |
No edit summary |
||
Line 1: | Line 1: | ||
Pointed to by $182. | Pointed to by $182. What is this used for ? | ||
From KOF96 (CD): | From KOF96 (CD): | ||
<pre> | <pre> | ||
moveq #0,d3 | moveq #0,d3 | ||
tst 2580(a5) ; | tst 2580(a5) ;$10FD14.w | ||
bne LAB_20F3 ; | bne LAB_20F3 ; | ||
movea.l 2564(a5),a0 ; | movea.l 2564(a5),a0 ;$10FD04.l | ||
move 2568(a5),d7 ; | move 2568(a5),d7 ;$10FD08.w | ||
LAB_20F0: | LAB_20F0: | ||
move.b d0,EXT_03E5 ; | move.b d0,EXT_03E5 ;watchdog | ||
move (a0),d1 | move (a0),d1 | ||
cmpi.b #$FF,d1 | cmpi.b #$FF,d1 | ||
beq.s LAB_20F1 ; | beq.s LAB_20F1 ;skip | ||
move 2(a0),d0 | move 2(a0),d0 | ||
cmp.b 2766(a5),d0 ; | cmp.b 2766(a5),d0 ;$10FDCE.b | ||
bne.s LAB_20F1 ; | bne.s LAB_20F1 ;skip | ||
move 4(a0),d0 | move 4(a0),d0 | ||
cmp.b 2767(a5),d0 ; | cmp.b 2767(a5),d0 ;$10FDCF.b | ||
bne.s LAB_20F1 ; | bne.s LAB_20F1 ;skip | ||
cmp.b 2768(a5),d1 ; | cmp.b 2768(a5),d1 ;$10FDD0.b | ||
beq.s LAB_20F2 | beq.s LAB_20F2 | ||
LAB_20F1: | LAB_20F1: | ||
addq.l #8,a0 | addq.l #8,a0 | ||
dbf d7,LAB_20F0 | dbf d7,LAB_20F0 | ||
move d7,d3 | move d7,d3 | ||
LAB_20F2: | LAB_20F2: | ||
rts | rts | ||
LAB_20F3: | LAB_20F3: | ||
movea.l 2564(a5),a0 ; | movea.l 2564(a5),a0 ;$10FD04.l | ||
move 2568(a5),d7 ; | move 2568(a5),d7 ;$10FD08.w | ||
LAB_20F4: | LAB_20F4: | ||
move (a0),d1 | move (a0),d1 | ||
lsr #8,d1 | lsr #8,d1 | ||
cmpi.b #$FF,d1 | cmpi.b #$FF,d1 | ||
beq.s LAB_20F5 ; | beq.s LAB_20F5 ;skip | ||
move (a0),d0 | move (a0),d0 | ||
cmp.b 2766(a5),d0 ; | cmp.b 2766(a5),d0 ;$10FDCE.b | ||
bne.s LAB_20F5 ; | bne.s LAB_20F5 ;skip | ||
move 2(a0),d0 | move 2(a0),d0 | ||
lsr #8,d0 | lsr #8,d0 | ||
cmp.b 2767(a5),d0 ; | cmp.b 2767(a5),d0 ;$10FDCF.b | ||
bne.s LAB_20F5 ; | bne.s LAB_20F5 ;skip | ||
cmp.b 2768(a5),d1 ; | cmp.b 2768(a5),d1 ;$10FDD0.b | ||
beq.s LAB_20F6 | beq.s LAB_20F6 | ||
LAB_20F5: | LAB_20F5: | ||
addq.l #4,a0 | addq.l #4,a0 | ||
dbf d7,LAB_20F4 | dbf d7,LAB_20F4 | ||
move d7,d3 | move d7,d3 | ||
LAB_20F6: | LAB_20F6: | ||
rts | rts | ||
</pre> | </pre> | ||
[[Category:Code]] | [[Category:Code]] |
Revision as of 08:18, 21 April 2011
Pointed to by $182. What is this used for ?
From KOF96 (CD):
moveq #0,d3 tst 2580(a5) ;$10FD14.w bne LAB_20F3 ; movea.l 2564(a5),a0 ;$10FD04.l move 2568(a5),d7 ;$10FD08.w LAB_20F0: move.b d0,EXT_03E5 ;watchdog move (a0),d1 cmpi.b #$FF,d1 beq.s LAB_20F1 ;skip move 2(a0),d0 cmp.b 2766(a5),d0 ;$10FDCE.b bne.s LAB_20F1 ;skip move 4(a0),d0 cmp.b 2767(a5),d0 ;$10FDCF.b bne.s LAB_20F1 ;skip cmp.b 2768(a5),d1 ;$10FDD0.b beq.s LAB_20F2 LAB_20F1: addq.l #8,a0 dbf d7,LAB_20F0 move d7,d3 LAB_20F2: rts LAB_20F3: movea.l 2564(a5),a0 ;$10FD04.l move 2568(a5),d7 ;$10FD08.w LAB_20F4: move (a0),d1 lsr #8,d1 cmpi.b #$FF,d1 beq.s LAB_20F5 ;skip move (a0),d0 cmp.b 2766(a5),d0 ;$10FDCE.b bne.s LAB_20F5 ;skip move 2(a0),d0 lsr #8,d0 cmp.b 2767(a5),d0 ;$10FDCF.b bne.s LAB_20F5 ;skip cmp.b 2768(a5),d1 ;$10FDD0.b beq.s LAB_20F6 LAB_20F5: addq.l #4,a0 dbf d7,LAB_20F4 move d7,d3 LAB_20F6: rts