User Tag List

Results 1 to 7 of 7

Thread: Ahhh help... Fkn code doesnt work

  1. #1
    Ahhh help... Fkn code doesnt work

    User Info Menu

    Ahhh help... Fkn code doesnt work

    I need to know why this code i made doesnt work

    #ACCELERATE
    0x00000098 0x0a400000
    0x00800000 0x3c0808d6
    0x00800004 0x8d083a10
    0x00800008 0x3c0c3f80
    0x0080000c 0x10080009
    0x00800010 0x3c0908d6
    0x00800014 0x8d28fa2c
    0x00800018 0x3c0a3fff
    0x0080001c 0x110a0007
    0x00800020 0x3c0b0001
    0x00800024 0x010b5821
    0x00800028 0xad2bfa2c
    0x0080002c 0x0820000f
    0x00800034 0xad2cfa2c
    0x0080003c 0x03e00008

    the addresses this code uses are 0055fa2c "flash" and a 00563a10 "a address whose value is 0 when you stand still and not 0 when you are running"

    #ACCELERATE
    0x00000098 0x0a400000;hook
    0x00800000 0x3c0808d6;loads first half of 00563a10 into t0
    0x00800004 0x8d083a10;loads value at 00563a10 into t0
    0x00800008 0x3c0c3f80;loads 3f80 into t4 "default flash value"
    0x0080000c 0x10080009;branches to 00800034 if zero = t0 "turns off flash if you are still"
    0x00800010 0x3c0908d6;loads first half of flash into t1
    0x00800014 0x8d28fa2c;load value at flash into t0
    0x00800018 0x3c0a3fff;loads 3fff into t2 "top speed"
    0x0080001c 0x110a0007;branch if t0 = t2 "skips increment if at top speed"
    0x00800020 0x3c0b0001;loads 0001 into upper bytes of t3
    0x00800024 0x010b5821;adds t0 to t3 and puts result in t3
    0x00800028 0xad2bfa2c;store t3 into flash
    0x0080002c 0x0820000f;jump to jr ra
    ---- 30 slot delay
    0x00800034 0xad2cfa2c;load 3f80 into flash
    ---- 38 slot delay
    0x0080003c 0x03e00008;jr ra

    help would be MUCH MUCH appreciated.... thanks - rep+ - BJ - i'll kill your worst enemy - i'll buy you a pony
    ø¤º°`°º¤ø
    ,¸¸,ø¤º°`°º¤ø,¸¸, PSP 1000 CFW 5.50GEN-D3
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º
    °`°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º °`°`°
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°
    ,¸¸,ø¤º°`°º¤ø,¸¸ PSP 3000 5.03 w/ CFW ENABLER

  2. #2
    Ahhh help... Fkn code doesnt work

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    Does it freeze u or just not work wen
    u turn it on
    Get At Me Bl4Ck.KiD... Aka BK
    Future Rapper - Spits Fire
    Psp Coder - Mips, C
    Web Designer - HTML, Javascript, Some PHP
    Computer Programmer - Currently Learning C/C++, Visual Basic, Pascal, Brainfuck, Python, Ruby

  3. #3
    Ahhh help... Fkn code doesnt work

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    freeze... but not always instantly... sometimes it takes a sec

    does the code look like it is correct for what it is supposed to do and how it is structured
    Last edited by ShaneO; 02-04-2010 at 01:56 AM.
    ø¤º°`°º¤ø
    ,¸¸,ø¤º°`°º¤ø,¸¸, PSP 1000 CFW 5.50GEN-D3
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º
    °`°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º °`°`°
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°
    ,¸¸,ø¤º°`°º¤ø,¸¸ PSP 3000 5.03 w/ CFW ENABLER

  4. #4
    Wu-Tang

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    should be a branch delay under 1st&2nd branches, and the jump should have an A instead of an 8, and doesnt need to be a delay when you save 3f8 to flash address. I'll try to help when I'm on a comp.
    "These cats they sentimental such with a gentle touch
    Dancin' double dutch and all sayin' nothin' much" -Black Thought

  5. #5
    Ahhh help... Fkn code doesnt work

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    i didnt put a delay slot after the branches because the codes that are after both of them dont matter if they activate

    the two branch delay slots that i did do however... one is definetly required and the other was just to be safe

    if i changed the 8 in the jump to an A it would jump to 0880003c which makes no sense

    however if you are trying to tell me that the address in the jump need to be in real addressing then i could change the 82 to a a4 and it would jump to 0900003c which is 00800003c in real addressing

    --------------

    i just tried it with the 82 as a a4 and it didnt work... i think i froze once i tried to move
    Last edited by ShaneO; 02-04-2010 at 01:57 AM.
    ø¤º°`°º¤ø
    ,¸¸,ø¤º°`°º¤ø,¸¸, PSP 1000 CFW 5.50GEN-D3
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º
    °`°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º °`°`°
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°
    ,¸¸,ø¤º°`°º¤ø,¸¸ PSP 3000 5.03 w/ CFW ENABLER

  6. #6
    Wu-Tang

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    Well, I couldn't tell what it would be in real addressing when I was on the psp, but any thing you load/save/jump to it has to be in real addressing, otherwise the hook wouldn't be in real addressing. So, I changed the jump (0x0080002c) to the correct one yous said (0a40000f) and tried it online and it works, so for you it might be the hook or area. These kind of hooks are different for everyone depending on fw and prx's used, and some may work only in different parts of the game. The area might not be an empty area you can use depending on the umd/iso/cso. So, it might be one of those cause I can confirm it works for me when I changed it, and I don't have flash other then this code in my db.
    "These cats they sentimental such with a gentle touch
    Dancin' double dutch and all sayin' nothin' much" -Black Thought

  7. #7
    Ahhh help... Fkn code doesnt work

    User Info Menu

    Re: Ahhh help... Fkn code doesnt work

    awsome!! thank you so much... i have been trying the code offline so maybe that hook is no good offline... if thats not the case i'll just change the hook

    i also have a joker that i made where i used my own template and the code froze... i cant remember if i tried it online.. i know that i tried all the hooks for my fw... i'll post it if i cant get it to work

    rep+

    ----------------------update

    i tried the code online with the jump in real addressing and the hook as A4 and the code works

    however, it accelerates too fast so i changed it a little bit

    #ACCELERATE v1 (fail)
    ;jump is not in real addressing
    ;accelerates to fast
    0x00000098 0x0a400000
    0x00800000 0x3c0808d6
    0x00800004 0x8d083a10
    0x00800008 0x3c0c3f80
    0x0080000c 0x10080009
    0x00800010 0x3c0908d6
    0x00800014 0x8d28fa2c
    0x00800018 0x3c0a3fff
    0x0080001c 0x110a0007
    0x00800020 0x3c0b0001
    0x00800024 0x010b5821
    0x00800028 0xad2bfa2c
    0x0080002c 0x0820000f
    0x00800034 0xad2cfa2c
    0x0080003c 0x03e00008

    #ACCELERATE v2
    ;initial acceleration is too slow
    ;top speed reached too quicky
    ;ghetto cruise control built in
    0x000000a4 0x0a400000
    0x00800000 0x3c0808d6
    0x00800004 0x8d083a10
    0x00800008 0x3c0c3f80
    0x0080000c 0x10080009
    0x00800010 0x3c0908d6
    0x00800014 0x8d28fa2c
    0x00800018 0x3c0a3fff; top speed
    0x0080001c 0x110a0007
    0x00800020 0x340b2000; acceleration rate
    0x00800024 0x010b5821
    0x00800028 0xad2bfa2c
    0x0080002c 0x0a40000f
    0x00800034 0xad2cfa2c
    0x0080003c 0x03e00008

    i labled the top speed and acceleration so you can experiment with it - make sure if you change either of them that your acceleration rate is a factor of the last byte in your top speed

    v2 is optimized at just the right acceleration yet it seems unrealistic accelerating at a constant rate until 3fff is reached

    i will be making a new version that has two different top speeds and two acceleration rates so that the initial acceleration is quick and the second accel rate is slower

    the final version will have 3 top speeds and 3 acceleration rates and i might add a slow down and a cruise control joker lol

    btw.. i know this alot of hype about such a puny code but its good practice for me
    Last edited by ShaneO; 02-05-2010 at 03:27 AM.
    ø¤º°`°º¤ø
    ,¸¸,ø¤º°`°º¤ø,¸¸, PSP 1000 CFW 5.50GEN-D3
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º
    °`°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º °`°`°
    °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°
    ,¸¸,ø¤º°`°º¤ø,¸¸ PSP 3000 5.03 w/ CFW ENABLER

Tags for this Thread

Bookmarks

Posting Permissions

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