|
求救帮小弟 看懂这段程序!!!!!!!!!!!!!!!!!!!!!!!!
[复制链接]
ub_3FE80: ; CODE XREF: seg002:7786P
; sub_3FF12+1CP ...
cmp r7, #0
jmpr cc_NZ, loc_3FEC4
mov MDL, r5
mov MDH, #0
divlu r6
mov r1, MDH
mov r5, MDL
mov MDL, r4
mov MDH, r1
divlu r6
mov r6, MDH
mov r4, MDL
mov r7, #0
RETS
; ==========================================================================
loc_3FEAC: ; CODE XREF: sub_3FE80+58j
mov r1, r5
sub r1, r2
mov MDL, r4
mov MDH, r1
divlu r2
mov r1, MDL
shr r1, #1
bset r1.15
jmpr cc_UC, loc_3FEEA
; ==========================================================================
loc_3FEC4: ; CODE XREF: sub_3FE80+2
prior r1, r7
mov r2, r7
shl r2, r1
mov r3, #0Fh
sub r3, r1
mov r1, r6
shr r1, #1
shr r1, r3
or r2, r1
cmp r5, r2
jmpr cc_NC, loc_3FEAC
mov MDL, r4
mov MDH, r5
divlu r2
mov r1, MDL
shr r1, #1
loc_3FEEA: ; CODE XREF: sub_3FE80+42
shr r1, r3
mulu r6, r1
mov r3, MDH
mov r2, MDL
mulu r7, r1
add r3, MDL
sub r4, r2
subc r5, r3
jmpr cc_NC, loc_3FF08
sub r1, #1
add r4, r6
addc r5, r7
loc_3FF08: ; CODE XREF: sub_3FE80+80
mov r6, r4
mov r7, r5
mov r4, r1
mov r5, #0
RETS
; End of function sub_3FE80
|
|