papermario/asm/nonmatchings/os/code_3cc50_len_80/osWritebackDCache.s

46 lines
1.7 KiB
ArmAsm
Raw Normal View History

2020-08-04 08:49:11 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
2020-04-26 06:13:18 +02:00
2020-08-01 18:55:49 +02:00
glabel osWritebackDCache
2020-04-26 06:13:18 +02:00
/* 03CC50 80061850 18A00011 */ blez $a1, .L80061898
/* 03CC54 80061854 00000000 */ nop
/* 03CC58 80061858 240B2000 */ addiu $t3, $zero, 0x2000
/* 03CC5C 8006185C 00AB082B */ sltu $at, $a1, $t3
/* 03CC60 80061860 1020000F */ beqz $at, .L800618A0
/* 03CC64 80061864 00000000 */ nop
2020-04-26 08:34:37 +02:00
/* 03CC68 80061868 00804021 */ addu $t0, $a0, $zero
2020-04-26 06:13:18 +02:00
/* 03CC6C 8006186C 00854821 */ addu $t1, $a0, $a1
/* 03CC70 80061870 0109082B */ sltu $at, $t0, $t1
/* 03CC74 80061874 10200008 */ beqz $at, .L80061898
/* 03CC78 80061878 00000000 */ nop
/* 03CC7C 8006187C 2529FFF0 */ addiu $t1, $t1, -0x10
/* 03CC80 80061880 310A000F */ andi $t2, $t0, 0xf
/* 03CC84 80061884 010A4023 */ subu $t0, $t0, $t2
.L80061888:
/* 03CC88 80061888 BD190000 */ cache 0x19, ($t0)
/* 03CC8C 8006188C 0109082B */ sltu $at, $t0, $t1
/* 03CC90 80061890 1420FFFD */ bnez $at, .L80061888
/* 03CC94 80061894 25080010 */ addiu $t0, $t0, 0x10
.L80061898:
/* 03CC98 80061898 03E00008 */ jr $ra
/* 03CC9C 8006189C 00000000 */ nop
.L800618A0:
/* 03CCA0 800618A0 3C088000 */ lui $t0, 0x8000
/* 03CCA4 800618A4 010B4821 */ addu $t1, $t0, $t3
/* 03CCA8 800618A8 2529FFF0 */ addiu $t1, $t1, -0x10
.L800618AC:
/* 03CCAC 800618AC BD010000 */ cache 1, ($t0)
/* 03CCB0 800618B0 0109082B */ sltu $at, $t0, $t1
/* 03CCB4 800618B4 1420FFFD */ bnez $at, .L800618AC
/* 03CCB8 800618B8 25080010 */ addiu $t0, $t0, 0x10
/* 03CCBC 800618BC 03E00008 */ jr $ra
/* 03CCC0 800618C0 00000000 */ nop
/* 03CCC4 800618C4 00000000 */ nop
/* 03CCC8 800618C8 00000000 */ nop
/* 03CCCC 800618CC 00000000 */ nop
2020-08-06 06:11:15 +02:00