Int32
*(int*)OffsetToWriteTo = IntergerToWrite;
int mem = *(int*)OffsetToRead;
Float
*(float*)OffsetToWriteTo = FloatToWrite;
float mem = *(int*)OffsetToRead;
there is many more of these just google it or look at xbox :p
#include <sys/syscall.h>
sys_pid_t sys_process_getpid(void)
{
system_call_0(1);
return_to_user_prog(sys_pid_t);
}
#include <sys/sys_time.h>
void sleep(second_t time)
{
sys_timer_sleep(time);
}
#include <sys/syscall.h>
int sys_ppu_thread_exit()
{
system_call_1(41, 0);
return_to_user_prog(int);
}
#include <sys/syscall.h>
#include <sys/ppu_thread.h>
sys_ppu_thread_t id;
sys_ppu_thread_t create_thread(void (*entry)(uint64_t), int priority, size_t stacksize, const char* threadname)
{
if(sys_ppu_thread_create(&id, entry, 0, priority , stacksize, 0, threadname) != CELL_OK)
{
console_write("Thread creation failed\n");
}
else
{
console_write("Thread created\n");
}
return id;
}
#include <string.h>
#include <sys/syscall.h>
#include <stdarg.h>
#include <stddef.h>
int console_write(const char * s)
{
uint32_t len;
system_call_4(403, 0, (uint64_t) s, std::strlen(s), (uint64_t) &len);
return_to_user_prog(int);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.