From beb76e4dd362374b8f42cd971d394bba1074cd8d Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 5 Jul 2025 02:34:11 +0200 Subject: Replace .include with #include For some reason, both mipsel-unknown-elf-gcc 8.2.0 and mipsel-non-elf 15.1.0 were unable to resolve .include assembler directives. As a workaround, it is still possible to use the preprocessor, and therefore the usual #include preprocessor directive. However, this requires the assembly files to use the uppercase .S file extension. --- libpsn00b/psxgte/initgeom.s | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 libpsn00b/psxgte/initgeom.s (limited to 'libpsn00b/psxgte/initgeom.s') diff --git a/libpsn00b/psxgte/initgeom.s b/libpsn00b/psxgte/initgeom.s deleted file mode 100644 index ccda7f1..0000000 --- a/libpsn00b/psxgte/initgeom.s +++ /dev/null @@ -1,44 +0,0 @@ -.set noreorder - -.include "hwregs_a.inc" -.include "gtereg.inc" - -.section .text.InitGeom -.global InitGeom -.type InitGeom, @function -InitGeom: - # Disable interrupts and make sure the GTE is enabled in COP0. - lui $v0, IOBASE - lhu $v1, IRQ_MASK($v0) - nop - sh $0, IRQ_MASK($v0) - - mfc0 $a0, $12 - lui $a1, 0x4000 - or $a1, $a0 - mtc0 $a1, $12 - nop - #nop - - # Re-enable interrupts, then load default values into some GTE registers. - sh $v1, IRQ_MASK($v0) - - ctc2 $0, C2_OFX - nop - ctc2 $0, C2_OFY - - li $a0, 320 - ctc2 $a0, C2_H - - li $a0, 0x155 - ctc2 $a0, C2_ZSF3 - li $a0, 0x100 - ctc2 $a0, C2_ZSF4 - - li $a0, 0xef9e - ctc2 $a0, C2_DQA - lui $a0, 0x0140 - ctc2 $a0, C2_DQB - - jr $ra - nop -- cgit v1.2.3