View Single Post
  #11    
Old January 3rd, 2010, 08:14 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 21
Gender: Male
Nature: Gentle
Quote:
Originally Posted by interdpth View Post
here's the function

SAME FOR FR/LG

Spoiler:
Code:
ROM:0806D698 EachStepTests                           ; CODE XREF: sub_806D5E8+36p
ROM:0806D698                 PUSH    {R4,LR}         ; Push registers
ROM:0806D69A                 LSLS    R0, R0, #0x10   ; Logical Shift Left
ROM:0806D69C                 LSRS    R4, R0, #0x10   ; Logical Shift Right
ROM:0806D69E                 BL      sub_811B0D0     ; Branch with Link
ROM:0806D69E
ROM:0806D6A2                 CMP     R0, #1          ; Set cond. codes on Op1 - Op2
ROM:0806D6A4                 BEQ     loc_806D72C     ; Branch
ROM:0806D6A4
ROM:0806D6A6                 LDR     R0, =byte_203ADFA ; Load from Memory
ROM:0806D6A8                 LDRB    R0, [R0]        ; Load from Memory
ROM:0806D6AA                 CMP     R0, #2          ; Set cond. codes on Op1 - Op2
ROM:0806D6AC                 BEQ     loc_806D72C     ; Branch
ROM:0806D6AC
ROM:0806D6AE                 BL      sub_806D74C     ; Branch with Link
ROM:0806D6AE
ROM:0806D6B2                 LDR     R0, =dword_2037078 ; Load from Memory
ROM:0806D6B4                 LDRB    R1, [R0]        ; Load from Memory
ROM:0806D6B6                 MOVS    R0, #0x40 ; '@' ; Rd = Op2
ROM:0806D6B8                 ANDS    R0, R1          ; Rd = Op1 & Op2
ROM:0806D6BA                 CMP     R0, #0          ; Set cond. codes on Op1 - Op2
ROM:0806D6BC                 BNE     safari          ; Branch
ROM:0806D6BC
ROM:0806D6BE                 LSLS    R0, R4, #0x18   ; Logical Shift Left
ROM:0806D6C0                 LSRS    R0, R0, #0x18   ; Logical Shift Right
ROM:0806D6C2                 BL      sub_8059D70     ; Branch with Link
ROM:0806D6C2
ROM:0806D6C6                 LSLS    R0, R0, #0x18   ; Logical Shift Left
ROM:0806D6C8                 CMP     R0, #0          ; Set cond. codes on Op1 - Op2
ROM:0806D6CA                 BNE     safari          ; Branch
ROM:0806D6CA
ROM:0806D6CC                 BL      sub_810C4EC     ; Branch with Link
ROM:0806D6CC
ROM:0806D6D0                 LSLS    R0, R0, #0x18   ; Logical Shift Left
ROM:0806D6D2                 LSRS    R0, R0, #0x18   ; Logical Shift Right
ROM:0806D6D4                 CMP     R0, #1          ; Set cond. codes on Op1 - Op2
ROM:0806D6D6                 BNE     poison          ; Branch
ROM:0806D6D6
ROM:0806D6D8                 LDR     R0, =EachStep   ; Load from Memory
ROM:0806D6DA                 BL      DoScript        ; Branch with Link
ROM:0806D6DA
ROM:0806D6DE                 B       fin             ; Branch
ROM:0806D6DE
ROM:0806D6DE ; ---------------------------------------------------------------------------
ROM:0806D6E0 off_806D6E0     DCD byte_203ADFA        ; DATA XREF: EachStepTests+Er
ROM:0806D6E4 off_806D6E4     DCD dword_2037078       ; DATA XREF: EachStepTests+1Ar
ROM:0806D6E8 off_806D6E8     DCD EachStep            ; DATA XREF: EachStepTests+40r
ROM:0806D6EC ; ---------------------------------------------------------------------------
ROM:0806D6EC
ROM:0806D6EC poison                                  ; CODE XREF: EachStepTests+3Ej
ROM:0806D6EC                 BL      CheckForPoison  ; Branch with Link
ROM:0806D6EC
ROM:0806D6F0                 LSLS    R0, R0, #0x18   ; Logical Shift Left
ROM:0806D6F2                 LSRS    R0, R0, #0x18   ; Logical Shift Right
ROM:0806D6F4                 CMP     R0, #1          ; Set cond. codes on Op1 - Op2
ROM:0806D6F6                 BNE     eggs            ; Branch
ROM:0806D6F6
ROM:0806D6F8                 LDR     R0, =EachStepPoison ; Load from Memory
ROM:0806D6FA                 BL      DoScript        ; Branch with Link
ROM:0806D6FA
ROM:0806D6FE                 B       fin             ; Branch
ROM:0806D6FE
ROM:0806D6FE ; ---------------------------------------------------------------------------
ROM:0806D700 off_806D700     DCD EachStepPoison      ; DATA XREF: EachStepTests+60r
ROM:0806D704 ; ---------------------------------------------------------------------------
ROM:0806D704
ROM:0806D704 eggs                                    ; CODE XREF: EachStepTests+5Ej
ROM:0806D704                 BL      sub_80463B8     ; Branch with Link
ROM:0806D704
ROM:0806D708                 LSLS    R0, R0, #0x18   ; Logical Shift Left
ROM:0806D70A                 CMP     R0, #0          ; Set cond. codes on Op1 - Op2
ROM:0806D70C                 BEQ     safari          ; Branch
ROM:0806D70C
ROM:0806D70E                 MOVS    R0, #0xD        ; Rd = Op2
ROM:0806D710                 BL      btl2_8054E90    ; Branch with Link
ROM:0806D710
ROM:0806D714                 LDR     R0, =script_EggHatch ; Load from Memory
ROM:0806D716                 BL      DoScript        ; Branch with Link
ROM:0806D716
ROM:0806D71A                 B       fin             ; Branch
ROM:0806D71A
ROM:0806D71A ; ---------------------------------------------------------------------------
ROM:0806D71C off_806D71C     DCD script_EggHatch     ; DATA XREF: EachStepTests+7Cr
ROM:0806D720 ; ---------------------------------------------------------------------------
ROM:0806D720
ROM:0806D720 safari                                  ; CODE XREF: EachStepTests+24j
ROM:0806D720                                         ; EachStepTests+32j
ROM:0806D720                                         ; EachStepTests+74j
ROM:0806D720                 BL      CheckSafariSteps ; Branch with Link
ROM:0806D720
ROM:0806D724                 LSLS    R0, R0, #0x18   ; Logical Shift Left
ROM:0806D726                 LSRS    R0, R0, #0x18   ; Logical Shift Right
ROM:0806D728                 CMP     R0, #1          ; Set cond. codes on Op1 - Op2
ROM:0806D72A                 BEQ     fin             ; Branch
ROM:0806D72A
ROM:0806D72C
ROM:0806D72C loc_806D72C                             ; CODE XREF: EachStepTests+Cj
ROM:0806D72C                                         ; EachStepTests+14j
ROM:0806D72C                 MOVS    R0, #0          ; Rd = Op2
ROM:0806D72E                 B       loc_806D732     ; Branch
ROM:0806D72E
ROM:0806D730 ; ---------------------------------------------------------------------------
ROM:0806D730
ROM:0806D730 fin                                     ; CODE XREF: EachStepTests+46j
ROM:0806D730                                         ; EachStepTests+66j
ROM:0806D730                                         ; EachStepTests+82j
ROM:0806D730                                         ; EachStepTests+92j
ROM:0806D730                 MOVS    R0, #1          ; Rd = Op2
ROM:0806D730
ROM:0806D732
ROM:0806D732 loc_806D732                             ; CODE XREF: EachStepTests+96j
ROM:0806D732                 POP     {R4}            ; Pop registers
ROM:0806D734                 POP     {R1}            ; Pop registers
ROM:0806D736                 BX      R1              ; Branch to/from Thumb mode
ROM:0806D736
ROM:0806D736 ; End of function EachStepTests
ROM:0806D736
Sweet
I think that if one were to branch off into the movement of a second sprite, it would be important to do that, BEFORE the Poison and Egg Checks.
I don't know if it would make any difference, but if the second sprite moves after an egg hatches, then would the second sprite move? Or would it sit there, and end up de-syncing with the player?

Also, I have East Asian Language Suppourt on for programs, so any letters that aren't normal, show up as Chinese... what is "EachStepTests+7Cr"
But more importantly, what is the +7Cr thing?
All I see after the C is a strange box that looks like...
___
|00|
|18|

Sorry for the crappy ASCII representation...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Reply With Quote