Page 9 of 9 FirstFirst ... 789
Results 121 to 126 of 126

Thread: Mips disassembler v0.1

  1. #121
    Join Date
    Jan 2005
    Posts
    127
    Quote Originally Posted by RandC View Post
    How do you go about creating or modifying the brf.sh file for 6.4a software. I'm playing around with MIPS disassembler and am interested in what this adds to the output.
    First run tivoapp through mips.dasm-0.4.6.pl to generate a proc file. Then run it through again using that proc file:
    Code:
    mips.dasm-0.4.6.pl tivoapp raw
    cat tivapp.proc.new >>tivoapp.proc
    mips.dasm-0.4.6.pl tivoapp raw
    Now look through tivoapp_w_raw.S in a text editor and find the LocateResource function. You should be able to find it by searching for "LocateResource".

    Within that function, you'll see blocks of code that look like this:
    Code:
    0x0047e440 0x0c123e29 jal    0x0048f8a4       # ; </uilib/lib/resources/Thumbs.brf> 
    0x0047e444 0x00000000 nop     
    0x0047e448 0x3c05ffae lui    a1,0xffae        # a1 = 0xffae0000 
    0x0047e44c 0x34a584a0 ori    a1,a1,0x84a0     # a1 = 0xffae84a0
    Note the name of the brf file (Thumbs.brf in this instance), and the final a1 value (0xffae84a0, in this case). Add a line to brf.sh with this data:
    Code:
    brfstrings.tcl Thumbs.brf 0xffae84a0
    Repeat for all the similar code blocks in the LookupResource function.

    You'll need to fetch the brf files (e.g. with TuikHelper.tcl) and drop them in the same directory with the brf.sh script when you run it. I don't have the 6.4a brf files, so I haven't done it for that software version.
    Last edited by 7.1; 11-20-2009 at 03:42 PM.

  2. #122
    Join Date
    Dec 2003
    Location
    Indianapolis
    Posts
    297
    Quote Originally Posted by 7.1 View Post
    You'll need to fetch the brf files (e.g. with TuikHelper.tcl) and drop them in the same directory with the brf.sh script when you run it. I don't have the 6.4a brf files, so I haven't done it for that software version.
    Already Tuik'ed the brf files onto PC. I will run as you posted and see how things turn out.
    (2) UltimateTV - upgraded w/160GB
    (1) HR10-250 2TB 6.4a
    (1) HR10-250 620GB 6.4a
    (1) HR10-250 300GB 6.4a
    (3) HR21 (2) with AM21 & internal 2TB Seagate
    RandC

  3. #123
    Join Date
    Dec 2003
    Location
    Indianapolis
    Posts
    297
    Quote Originally Posted by 7.1 View Post
    Within that function, you'll see blocks of code that look like this:
    Code:
    0x0047e440 0x0c123e29 jal    0x0048f8a4       # ; </uilib/lib/resources/Thumbs.brf> 
    0x0047e444 0x00000000 nop     
    0x0047e448 0x3c05ffae lui    a1,0xffae        # a1 = 0xffae0000 
    0x0047e44c 0x34a584a0 ori    a1,a1,0x84a0     # a1 = 0xffae84a0
    Note the name of the brf file (Thumbs.brf in this instance), and the final a1 value (0xffae84a0, in this case). Add a line to brf.sh with this data:
    Code:
    brfstrings.tcl Thumbs.brf 0xffae84a0
    Repeat for all the similar code blocks in the LookupResource function.
    Would this qualify as three entries?
    Code:
    0x0059f7ac jal    0x005e11d8       # ; </soma_uicommon/lib/somascheduler/TvSchedulerResultFormat.brf>
    0x0059f7b0 addiu  a0,sp,24
    0x0059f7b4 jal    0x0043040c
    0x0059f7b8 move   a0,s0
    0x0059f7bc move   v1,v0
    0x0059f7c0 lui    v0,0x2           # v0 = 0x00020000
    0x0059f7c4 ori    v0,v0,0x981c     # v0 = 0x0002981c
    0x0059f7c8 beq    v1,v0,0x0059f978
    0x0059f7cc sltu   v0,v0,v1
    0x0059f7d0 bnez   v0,0x0059f8cc
    0x0059f7d4 lui    v0,0x2           # v0 = 0x00020000
    0x0059f7d8 ori    v0,v0,0x9817     # v0 = 0x00029817
    0x0059f7dc beq    v1,v0,0x0059f8ac
    0x0059f7e0 sltu   v0,v0,v1
    0x0059f7e4 bnez   v0,0x0059f874
    0x0059f7e8 lui    v0,0x2           # v0 = 0x00020000
    0x0059f7ec ori    v0,v0,0x9816     # v0 = 0x00029816
    Code:
    brfstrings.tcl TvSchedulerResultFormat.brf 0x0002981c
    brfstrings.tcl TvSchedulerResultFormat.brf 0x00029817
    brfstrings.tcl TvSchedulerResultFormat.brf 0x00029816
    (2) UltimateTV - upgraded w/160GB
    (1) HR10-250 2TB 6.4a
    (1) HR10-250 620GB 6.4a
    (1) HR10-250 300GB 6.4a
    (3) HR21 (2) with AM21 & internal 2TB Seagate
    RandC

  4. #124
    Join Date
    Jan 2005
    Posts
    127
    Quote Originally Posted by RandC View Post
    Would this qualify as three entries?
    ...
    Nope. You aren't in the right section of code. You only want to do this in the LookupResource function. In 6.4a, it starts at 0x0047e160 and ends at 0x0047ea14.

    I've attached what I came up with. If you have the .brf files and process them to produce a tivoapp.brfstrings file, please post it.

  5. #125
    Join Date
    Jun 2006
    Location
    Dougal County
    Posts
    1,014
    here are .proc and .brfstrings files I've been using with 6.4a

  6. #126
    Join Date
    Apr 2017
    Posts
    1
    Hi, where can I download scripts in topic

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •