sub_E36: ; CODE XREF: sub_F60+18p
push r17
push r28
push r29
lds r24, unk_100064
tst r24
breq loc_E71
lds r24, unk_10006A
tst r24
breq loc_E71
lds r24, unk_100091
cpi r24, 0x10
brcs loc_E48
sts unk_100064, r1
rjmp loc_E71
; ---------------------------------------------------------------------------
loc_E48: ; CODE XREF: sub_E36+Ej
mov r17, r24
subi r17, -1
lsr r24
lsr r24
mov r28, r24
clr r29
subi r28, 0x75 ; 'u'
sbci r29, -2 ; '?
mov r22, r17
ld r24, Y
call sub_9EF
mov r30, r24
subi r30, 1
sts unk_100061, r30
lds r24, unk_100060
cp r30, r24
breq loc_E6C
sts unk_100060, r30
clr r31
subi r30, 0x70 ; 'p'
sbci r31, -2 ; '?
ld r30, Z
mov r24, r30
subi r24, 1
cpi r24, 2
brcs loc_E68
cpi r30, 6
brne loc_E6C
loc_E68: ; CODE XREF: sub_E36+2Fj
mov r22, r17
ld r24, Y
call sub_A61
loc_E6C: ; CODE XREF: sub_E36+25j sub_E36+31j
lds r24, unk_100091
subi r24, -1
sts unk_100091, r24
loc_E71: ; CODE XREF: sub_E36+6j sub_E36+Aj ...
pop r29
pop r28
pop r17
ret
请求高手帮忙解释下这段程序的具体含义 |