mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
ARMv7: CMP_REG, LDR_IMM, LDR_LIT, STR_REG, SUB_REG
sceLibc: exit and printf drafts This actually allows to display hello world.
This commit is contained in:
parent
31c71b4a48
commit
df72f5e37c
6 changed files with 268 additions and 28 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/System.h"
|
||||
#include "Emu/Memory/Memory.h"
|
||||
#include "Emu/ARMv7/PSVFuncList.h"
|
||||
|
||||
extern psv_log_base& sceLibc;
|
||||
|
|
@ -12,17 +14,25 @@ namespace sce_libc_func
|
|||
|
||||
void exit()
|
||||
{
|
||||
sceLibc.Todo(__FUNCTION__);
|
||||
sceLibc.Error("exit()");
|
||||
Emu.Pause();
|
||||
sceLibc.Success("Process finished");
|
||||
CallAfter([]()
|
||||
{
|
||||
Emu.Stop();
|
||||
});
|
||||
}
|
||||
|
||||
void printf()
|
||||
void printf(vm::psv::ptr<const char> fmt)
|
||||
{
|
||||
sceLibc.Todo(__FUNCTION__);
|
||||
sceLibc.Error("printf(fmt_addr=0x%x)", fmt.addr());
|
||||
|
||||
LOG_NOTICE(TTY, "%s", fmt.get_ptr());
|
||||
}
|
||||
|
||||
void __cxa_set_dso_handle_main()
|
||||
{
|
||||
sceLibc.Todo(__FUNCTION__);
|
||||
sceLibc.Error("__cxa_set_dso_handle_main()");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue