aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/clearotagr.s
blob: 3e888f15510ec52ce20603aa3938b1f590014d41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.set noreorder

.include "hwregs_a.h"

.section .text


.global ClearOTagR
.type ClearOTagR, @function
ClearOTagR:
	lui		$a2, 0x1f80
	addi	$v0, $a1, -1
	sll		$v0, 2
	addu	$a0, $v0
	sw		$a0, D6_MADR($a2)
	andi	$a1, 0xffff
	sw		$a1, D6_BCR($a2)
	lui		$v0, 0x1100
	addiu	$v0, 2
	jr		$ra
	sw		$v0, D6_CHCR($a2)