Advertising (This ad goes away for registered users. You can Login or Register)

how does one display something to the screen using mips asse

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
grief3r
Posts: 357
Joined: Sat Nov 09, 2013 4:12 am

how does one display something to the screen using mips asse

Post by grief3r » Tue Jan 20, 2015 2:52 am

say i jump to my own subroutine using tempAR or some kind of memory ediot, what assembly instructions would you have to use to display something like ' hello world' on the screen
is there a module for this in assembly?
Advertising
PSV1001 2.61 FieldRunners
PSP1001 6.60 Pro-C
PSP 3001 6.20 Pro-C2

doctorgoat
Posts: 264
Joined: Sat Jan 03, 2015 12:19 am

Re: how does one display something to the screen using mips

Post by doctorgoat » Tue Jan 20, 2015 3:01 am

There are some good examples in the PSPSDK.

I don't remember if you're going to need a custom sdk file to get stuff to work when injected in a game. :/ There isn't much documentation laying around.
Advertising

User avatar
qwikrazor87
Guru
Posts: 2868
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: how does one display something to the screen using mips

Post by qwikrazor87 » Tue Jan 20, 2015 3:06 am

It would require quite a bit of code to allow drawing text to the screen, since you'll need the font set, and the function to draw the input string to vram, examples of those functions/files can be found in font.c and graphics.c from VHBL.
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Maxwest Nitro 4 phone - Android 5.1
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

grief3r
Posts: 357
Joined: Sat Nov 09, 2013 4:12 am

Re: how does one display something to the screen using mips

Post by grief3r » Tue Jan 20, 2015 3:42 am

so if the game already loads the modules wouldn't it just take calling those functions and editing the parameters? i would just have to figure out which ones i need
PSV1001 2.61 FieldRunners
PSP1001 6.60 Pro-C
PSP 3001 6.20 Pro-C2

doctorgoat
Posts: 264
Joined: Sat Jan 03, 2015 12:19 am

Re: how does one display something to the screen using mips

Post by doctorgoat » Tue Jan 20, 2015 3:45 am

One thing to study would definitely be the SDK example with the snow.

I think that's in the SDK folder of versions of the HBL around r200? I haven't been able to get it to compile, though.It's probably because I used games that were missing functions.

grief3r
Posts: 357
Joined: Sat Nov 09, 2013 4:12 am

Re: how does one display something to the screen using mips

Post by grief3r » Tue Jan 20, 2015 10:52 pm

can i look at the assembly code if i compile something with psp sdk?
PSV1001 2.61 FieldRunners
PSP1001 6.60 Pro-C
PSP 3001 6.20 Pro-C2

User avatar
noname120
Developer
Posts: 776
Joined: Thu Oct 07, 2010 4:29 pm

Re: how does one display something to the screen using mips

Post by noname120 » Sun Mar 01, 2015 12:10 pm

Yes, just disassemble it with a tool like prxtool.
Funny stuff
<yifanlu> I enjoy being loud and obnoxious
<yifanlu> rooting an android is like getting a hooker pregnant
<xerpi> I sometimes think I should leave all this stressing **** and be a farmer instead

Post Reply

Return to “Programming and Security”