Merge pull request #15 from neobrain/refactor
Add the system call outputDebugString.
This commit is contained in:
commit
3032a15f95
@ -48,5 +48,6 @@ s32 svcGetProcessInfo(s64* out, Handle process, u32 type);
|
|||||||
s32 svcConnectToPort(volatile Handle* out, const char* portName);
|
s32 svcConnectToPort(volatile Handle* out, const char* portName);
|
||||||
s32 svcSendSyncRequest(Handle session);
|
s32 svcSendSyncRequest(Handle session);
|
||||||
s32 svcGetProcessId(u32 *out, Handle handle);
|
s32 svcGetProcessId(u32 *out, Handle handle);
|
||||||
|
s32 svcOutputDebugString(const char* str, int length);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -195,3 +195,13 @@ svcGetProcessId:
|
|||||||
ldr r3, [sp], #4
|
ldr r3, [sp], #4
|
||||||
str r1, [r3]
|
str r1, [r3]
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
.global svcOutputDebugString
|
||||||
|
.type svcOutputDebugString, %function
|
||||||
|
svcOutputDebugString:
|
||||||
|
str r0, [sp,#-0x4]!
|
||||||
|
svc 0x3D
|
||||||
|
ldr r2, [sp], #4
|
||||||
|
str r1, [r2]
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user