From ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Fri, 22 Nov 2019 09:11:12 +0800 Subject: Added long awaited CD-ROM library and loads of fixes, see changelog for details --- libpsn00b/psxapi/sys/adddummytty.s | 10 ++++++++++ libpsn00b/psxapi/sys/getrcnt.s | 10 ++++++++++ libpsn00b/psxapi/sys/resetrcnt.s | 10 ++++++++++ libpsn00b/psxapi/sys/setrcnt.s | 10 ++++++++++ libpsn00b/psxapi/sys/startrcnt.s | 10 ++++++++++ libpsn00b/psxapi/sys/stoprcnt.s | 10 ++++++++++ 6 files changed, 60 insertions(+) create mode 100644 libpsn00b/psxapi/sys/adddummytty.s create mode 100644 libpsn00b/psxapi/sys/getrcnt.s create mode 100644 libpsn00b/psxapi/sys/resetrcnt.s create mode 100644 libpsn00b/psxapi/sys/setrcnt.s create mode 100644 libpsn00b/psxapi/sys/startrcnt.s create mode 100644 libpsn00b/psxapi/sys/stoprcnt.s (limited to 'libpsn00b/psxapi') diff --git a/libpsn00b/psxapi/sys/adddummytty.s b/libpsn00b/psxapi/sys/adddummytty.s new file mode 100644 index 0000000..a569d38 --- /dev/null +++ b/libpsn00b/psxapi/sys/adddummytty.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global AddDummyTty +.type AddDummyTty, @function +AddDummyTty: + addiu $t2, $0, 0xa0 + jr $t2 + addiu $t1, $0, 0x99 diff --git a/libpsn00b/psxapi/sys/getrcnt.s b/libpsn00b/psxapi/sys/getrcnt.s new file mode 100644 index 0000000..0b035ed --- /dev/null +++ b/libpsn00b/psxapi/sys/getrcnt.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global GetRCnt +.type GetRCnt, @function +GetRCnt: + addiu $t2, $0, 0xb0 + jr $t2 + addiu $t1, $0, 0x03 \ No newline at end of file diff --git a/libpsn00b/psxapi/sys/resetrcnt.s b/libpsn00b/psxapi/sys/resetrcnt.s new file mode 100644 index 0000000..5811625 --- /dev/null +++ b/libpsn00b/psxapi/sys/resetrcnt.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global ResetRCnt +.type ResetRCnt, @function +ResetRCnt: + addiu $t2, $0, 0xb0 + jr $t2 + addiu $t1, $0, 0x06 \ No newline at end of file diff --git a/libpsn00b/psxapi/sys/setrcnt.s b/libpsn00b/psxapi/sys/setrcnt.s new file mode 100644 index 0000000..ec6180a --- /dev/null +++ b/libpsn00b/psxapi/sys/setrcnt.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global SetRCnt +.type SetRCnt, @function +SetRCnt: + addiu $t2, $0, 0xb0 + jr $t2 + addiu $t1, $0, 0x02 \ No newline at end of file diff --git a/libpsn00b/psxapi/sys/startrcnt.s b/libpsn00b/psxapi/sys/startrcnt.s new file mode 100644 index 0000000..0fd5c33 --- /dev/null +++ b/libpsn00b/psxapi/sys/startrcnt.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global StartRCnt +.type StartRCnt, @function +StartRCnt: + addiu $t2, $0, 0xb0 + jr $t2 + addiu $t1, $0, 0x04 \ No newline at end of file diff --git a/libpsn00b/psxapi/sys/stoprcnt.s b/libpsn00b/psxapi/sys/stoprcnt.s new file mode 100644 index 0000000..4af94da --- /dev/null +++ b/libpsn00b/psxapi/sys/stoprcnt.s @@ -0,0 +1,10 @@ +.set noreorder + +.section .text + +.global StopRCnt +.type StopRCnt, @function +StopRCnt: + addiu $t2, $0, 0xb0 + jr $t2 + addiu $t1, $0, 0x05 \ No newline at end of file -- cgit v1.2.3