From 1aa0e17df7c325a41de8cf8a57f52ed853f08bf3 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Fri, 24 Apr 2020 19:01:28 +0800 Subject: Refined toolchain instructions, organized examples, added automatic retry for CdRead(), added FIOCSCAN ioctl in psxsio TTY driver, added tty and console examples. --- libpsn00b/psxapi/stdio/atoi.s | 9 +++++++++ libpsn00b/psxapi/stdio/atol.s | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 libpsn00b/psxapi/stdio/atoi.s create mode 100644 libpsn00b/psxapi/stdio/atol.s (limited to 'libpsn00b/psxapi/stdio') diff --git a/libpsn00b/psxapi/stdio/atoi.s b/libpsn00b/psxapi/stdio/atoi.s new file mode 100644 index 0000000..74c4ae7 --- /dev/null +++ b/libpsn00b/psxapi/stdio/atoi.s @@ -0,0 +1,9 @@ +.set noreorder +.section .text + +.global atoi +.type atoi, @function +atoi: + addiu $t2, $0, 0xa0 + jr $t2 + addiu $t1, $0, 0x10 diff --git a/libpsn00b/psxapi/stdio/atol.s b/libpsn00b/psxapi/stdio/atol.s new file mode 100644 index 0000000..f0da653 --- /dev/null +++ b/libpsn00b/psxapi/stdio/atol.s @@ -0,0 +1,9 @@ +.set noreorder +.section .text + +.global atol +.type atol, @function +atol: + addiu $t2, $0, 0xa0 + jr $t2 + addiu $t1, $0, 0x11 -- cgit v1.2.3