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.
Locked
grief3r
Posts: 358
Joined: Sat Nov 09, 2013 4:12 am

how does one display something to the screen using mips asse

Post by grief3r »

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 »

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
qwikrazor87
Guru
Posts: 2874
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 »

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ō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS
grief3r
Posts: 358
Joined: Sat Nov 09, 2013 4:12 am

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

Post by grief3r »

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 »

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: 358
Joined: Sat Nov 09, 2013 4:12 am

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

Post by grief3r »

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
noname120
Developer
Posts: 777
Joined: Thu Oct 07, 2010 4:29 pm

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

Post by noname120 »

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
Locked

Return to “Programming and Security”