From 9c5afe83024f32c0dd544d3c9e4c164be6be8671 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 21 Nov 2017 00:35:08 -0500 Subject: [PATCH] Added svcOutputDebugString. --- nx/include/switch/svc.h | 1 + nx/source/kernel/svc.s | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/nx/include/switch/svc.h b/nx/include/switch/svc.h index 878dfd35..029ab6d6 100644 --- a/nx/include/switch/svc.h +++ b/nx/include/switch/svc.h @@ -49,6 +49,7 @@ u64 svcGetSystemTick(void); Result svcSendSyncRequest(Handle session); Result svcGetProcessId(u64 *processID, Handle handle); Result svcBreak(u32 breakReason, u64 inval1, u64 inval2); +Result svcOutputDebugString(const char *str, u64 size); Result svcGetInfo(u64* out, u64 id0, Handle handle, u64 id1); Result svcCreateSession(Handle *server_handle, Handle *client_handle, u32 unk0, u64 unk1);//unk* are normally 0? Result svcAcceptSession(Handle *session_handle, Handle port_handle); diff --git a/nx/source/kernel/svc.s b/nx/source/kernel/svc.s index bddaab7b..886c5c1f 100644 --- a/nx/source/kernel/svc.s +++ b/nx/source/kernel/svc.s @@ -143,6 +143,11 @@ SVC_BEGIN svcBreak ret SVC_END +SVC_BEGIN svcOutputDebugString + svc 0x27 + ret +SVC_END + SVC_BEGIN svcGetInfo str x0, [sp, #-16]! svc 0x29