mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Improve the state of handwritten assembly files (#865)
* Format all handwritten asm and document some * Use c preprocessor for constants * Fix * Fix PI_STATUS_ERROR, some label improvements * Avoid hi/lo for constants * Some more comments * Properly mark functions as functions and their sizes * Fix merge * Improvements * Review suggestions, rework procedure start/end macros to be more like libreultra * Move IPL3 symbol definitions into ipl3.s * Fix undefined_syms, add include and language guards to asm.h and fix the comment in gbi.h * Consistent hex capitalization, add some MIPS builtin defines to CC_CHECK to behave properly * Add -no-pad-sections assembler option and clean up alignment in gu files and bzero * Further suggestions and improvements * Matrix conversion function clarifications * Fix passing AVOID_UB to gcc * Suggestions * Suggestions, global interrupt mask improvements * Further suggestions, interrupt mask comments * Comments fixes, rdb.h * Switch from # comments to // comments, remove unnecesary .set gp=64 directives * Further review suggestions * Missed one
This commit is contained in:
parent
b9fded7b4e
commit
7334ffa373
62 changed files with 2758 additions and 2083 deletions
|
@ -1,31 +1,30 @@
|
|||
.include "macro.inc"
|
||||
#include "ultra64/asm.h"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purpose registers
|
||||
.set noat
|
||||
.set noreorder
|
||||
|
||||
.section .text
|
||||
|
||||
.balign 16
|
||||
.balign 32
|
||||
|
||||
glabel guMtxIdent
|
||||
/* B7AD00 80103B60 20080001 */ addi $t0, $zero, 1
|
||||
/* B7AD04 80103B64 00084C00 */ sll $t1, $t0, 0x10
|
||||
/* B7AD08 80103B68 AC890000 */ sw $t1, ($a0)
|
||||
/* B7AD0C 80103B6C AC800004 */ sw $zero, 4($a0)
|
||||
/* B7AD10 80103B70 AC880008 */ sw $t0, 8($a0)
|
||||
/* B7AD14 80103B74 AC80000C */ sw $zero, 0xc($a0)
|
||||
/* B7AD18 80103B78 AC800010 */ sw $zero, 0x10($a0)
|
||||
/* B7AD1C 80103B7C AC890014 */ sw $t1, 0x14($a0)
|
||||
/* B7AD20 80103B80 AC800018 */ sw $zero, 0x18($a0)
|
||||
/* B7AD24 80103B84 AC88001C */ sw $t0, 0x1c($a0)
|
||||
/* B7AD28 80103B88 AC800020 */ sw $zero, 0x20($a0)
|
||||
/* B7AD2C 80103B8C AC800024 */ sw $zero, 0x24($a0)
|
||||
/* B7AD30 80103B90 AC800028 */ sw $zero, 0x28($a0)
|
||||
/* B7AD34 80103B94 AC80002C */ sw $zero, 0x2c($a0)
|
||||
/* B7AD38 80103B98 AC800030 */ sw $zero, 0x30($a0)
|
||||
/* B7AD3C 80103B9C AC800034 */ sw $zero, 0x34($a0)
|
||||
/* B7AD40 80103BA0 AC800038 */ sw $zero, 0x38($a0)
|
||||
/* B7AD44 80103BA4 03E00008 */ jr $ra
|
||||
/* B7AD48 80103BA8 AC80003C */ sw $zero, 0x3c($a0)
|
||||
LEAF(guMtxIdent)
|
||||
addi $t0, $zero, 1
|
||||
sll $t1, $t0, 0x10
|
||||
sw $t1, ($a0)
|
||||
sw $zero, 4($a0)
|
||||
sw $t0, 8($a0)
|
||||
sw $zero, 0xc($a0)
|
||||
sw $zero, 0x10($a0)
|
||||
sw $t1, 0x14($a0)
|
||||
sw $zero, 0x18($a0)
|
||||
sw $t0, 0x1C($a0)
|
||||
sw $zero, 0x20($a0)
|
||||
sw $zero, 0x24($a0)
|
||||
sw $zero, 0x28($a0)
|
||||
sw $zero, 0x2c($a0)
|
||||
sw $zero, 0x30($a0)
|
||||
sw $zero, 0x34($a0)
|
||||
sw $zero, 0x38($a0)
|
||||
jr $ra
|
||||
sw $zero, 0x3C($a0)
|
||||
END(guMtxIdent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue