Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 01:59:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: Assembling/Compiling pure asm  (Read 1752 times)
TooSexy
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
201.19 points

View Inventory
Send Money to TooSexy

View Profile
« on: October 29, 2009, 11:12:47 AM »

OK, I'm trying to set myself up to be able to create pure asm program for the psp. I'm using the MINPSPW and trying to compile the Minifire demo for the 3.xx+ kernels.

The last problem I'm having is the syscall commands, I get
Code:
Error: Instruction syscall requires absolute expression
for each of them.

In the source they are like this :
Code:
syscall _sceKernelCreateThread

Well, I understand that I should use the NID, but are they always the same for 3.xx+ firmware ? (Or does it need some import table or something ?)
The original program is for 1.0 and 1.5 and just uses known IDs, is there an equivalent for newer kernels ?

Can/Should I use the STUB_START, STUB_FUNC, STUB_END macros somehow for this ?
Logged


mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #1 on: October 29, 2009, 12:06:03 PM »

User mode functions NIDs shouldn't change,
Did you try it with the original NIDs

>Can/Should I use the STUB_START, STUB_FUNC, STUB_END macros somehow for this ?
If you want to import functions from other modules(maybe)
Logged

Check out my:
 Audio lib
 Pmf Viewer
TooSexy
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
201.19 points

View Inventory
Send Money to TooSexy

View Profile
« Reply #2 on: October 29, 2009, 12:23:26 PM »

I tried with the 1.50 nids but the program froze my psp   Smile

I guess it's because it uses kernel functions, tomorrow I will try with usermode only, is there some function reference/list ?

I'm gonna start with "hello world"  Razz

EDIT:
Maybe this ?
http://prxlibdocs.dark-alex.org/5.00/index.html
And here :
http://psp.jim.sh/pspsdk-doc/
« Last Edit: October 29, 2009, 12:30:13 PM by TooSexy » Logged
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.179 seconds with 27 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com