mirror of
https://github.com/zeldaret/af.git
synced 2026-10-05 17:02:58 -04:00
d66a21685f
* git subrepo clone git@github.com:ethteck/splat.git tools/splat subrepo: subdir: "tools/splat" merged: "4fec014" upstream: origin: "git@github.com:ethteck/splat.git" branch: "master" commit: "4fec014" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * gitignore * decompress_baserom.py * Initial yaml * run flib * more yaml stuff * Builds an uncompressed ROM * setup ido download * git subrepo clone git@github.com:simonlindholm/asm-differ.git tools/asm-differ subrepo: subdir: "tools/asm-differ" merged: "ae40866" upstream: origin: "git@github.com:simonlindholm/asm-differ.git" branch: "main" commit: "ae40866" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo clone git@github.com:simonlindholm/asm-processor.git tools/asm-processor subrepo: subdir: "tools/asm-processor" merged: "bbd86ea" upstream: origin: "git@github.com:simonlindholm/asm-processor.git" branch: "main" commit: "bbd86ea" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo clone (merge) git@github.com:EllipticEllipsis/fado.git tools/fado subrepo: subdir: "tools/fado" merged: "8d896ee" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "8d896ee" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * setup ido in makefile * data and rodata * add automatic file splits * bootstrap most symbol_addrs * git subrepo clone --branch=irix git@github.com:hensldm/ultralib.git lib/ultralib subrepo: subdir: "lib/ultralib" merged: "0d1e095" upstream: origin: "git@github.com:hensldm/ultralib.git" branch: "irix" commit: "0d1e095" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * setup ido building * various tooling * git subrepo pull tools/asm-differ subrepo: subdir: "tools/asm-differ" merged: "857b398" upstream: origin: "git@github.com:simonlindholm/asm-differ.git" branch: "main" commit: "857b398" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Change defines to match IDO * review * newlin * update gitignore * Windows error * D_01000000 * yeet settings.json * yeet * git subrepo clone git@github.com:decompals/ultralib.git lib/ultralib subrepo: subdir: "lib/ultralib" merged: "d03b2a3" upstream: origin: "git@github.com:decompals/ultralib.git" branch: "main" commit: "d03b2a3" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * clangformat and clangtidy * Setup a bunch of headers * bootstrap boot and code functions and variables headers * global.h * update format.py includes * -D_MIPS_SZLONG=32 * format.py: --verbose * Update tools/decompress_baserom.py Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Add libc to global.h * review * yeet saved_regs * yeet headers * yeet _MSC_VER * more header cleanup * add readme licensing note --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
188 lines
3.4 KiB
C
188 lines
3.4 KiB
C
/************************************************************************
|
|
Copyright (C) 1998,1999 NINTENDO Co,Ltd,
|
|
Copyright (C) 1998,1999 MONEGI CORPORATION,
|
|
All Rights Reserved
|
|
This program is a trade secret of NINTENDO Co,Ltd and MONEGI Corp.
|
|
and it is not to be reproduced, published, disclosed to others, copied,
|
|
adapted, distributed, or displayed without the prior authorization of
|
|
NINTENDO Co,Ltd. and MONEGI Corp. Licensee agrees to attach or embed
|
|
this Notice on all copies of the program, including partial copies or
|
|
modified versions thereof.
|
|
*************************************************************************/
|
|
/************************************************************************
|
|
$Date: 1999/07/06 13:21:13 $
|
|
$Revision: 1.1 $
|
|
$Author: doseki $
|
|
************************************************************************/
|
|
|
|
#ifndef __REGDEF_H__
|
|
#define __REGDEF_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef mips
|
|
|
|
#if (_MIPS_SIM == _MIPS_SIM_ABI32)
|
|
#define zero $0
|
|
#define AT $at
|
|
#define v0 $2
|
|
#define v1 $3
|
|
#define a0 $4
|
|
#define a1 $5
|
|
#define a2 $6
|
|
#define a3 $7
|
|
#define t0 $8
|
|
#define t1 $9
|
|
#define t2 $10
|
|
#define t3 $11
|
|
#define t4 $12
|
|
#define ta0 $12
|
|
#define t5 $13
|
|
#define ta1 $13
|
|
#define t6 $14
|
|
#define ta2 $14
|
|
#define t7 $15
|
|
#define ta3 $15
|
|
#define s0 $16
|
|
#define s1 $17
|
|
#define s2 $18
|
|
#define s3 $19
|
|
#define s4 $20
|
|
#define s5 $21
|
|
#define s6 $22
|
|
#define s7 $23
|
|
#define t8 $24
|
|
#define t9 $25
|
|
#define jp $25
|
|
#define k0 $26
|
|
#define k1 $27
|
|
#define gp $28
|
|
#define sp $29
|
|
#define fp $30
|
|
#define s8 $30
|
|
#define ra $31
|
|
#endif
|
|
|
|
#if (_MIPS_SIM == _MIPS_SIM_ABI64)
|
|
#define zero $0
|
|
#define AT $at
|
|
#define v0 $2
|
|
#define v1 $3
|
|
#define a0 $4
|
|
#define a1 $5
|
|
#define a2 $6
|
|
#define a3 $7
|
|
#define a4 $8
|
|
#define ta0 $8
|
|
#define a5 $9
|
|
#define ta1 $9
|
|
#define a6 $10
|
|
#define ta2 $10
|
|
#define a7 $11
|
|
#define ta3 $11
|
|
#define t0 $12
|
|
#define t1 $13
|
|
#define t2 $14
|
|
#define t3 $15
|
|
#define s0 $16
|
|
#define s1 $17
|
|
#define s2 $18
|
|
#define s3 $19
|
|
#define s4 $20
|
|
#define s5 $21
|
|
#define s6 $22
|
|
#define s7 $23
|
|
#define t8 $24
|
|
#define t9 $25
|
|
#define jp $25
|
|
#define k0 $26
|
|
#define k1 $27
|
|
#define gp $28
|
|
#define sp $29
|
|
#define fp $30
|
|
#define s8 $30
|
|
#define ra $31
|
|
#endif
|
|
|
|
#if (_MIPS_SIM == _MIPS_SIM_ABI32)
|
|
#define fv0 $f0
|
|
#define fv0f $f1
|
|
#define fv1 $f2
|
|
#define fv1f $f3
|
|
#define fa0 $f12
|
|
#define fa0f $f13
|
|
#define fa1 $f14
|
|
#define fa1f $f15
|
|
#define ft0 $f4
|
|
#define ft0f $f5
|
|
#define ft1 $f6
|
|
#define ft1f $f7
|
|
#define ft2 $f8
|
|
#define ft2f $f9
|
|
#define ft3 $f10
|
|
#define ft3f $f11
|
|
#define ft4 $f16
|
|
#define ft4f $f17
|
|
#define ft5 $f18
|
|
#define ft5f $f19
|
|
#define fs0 $f20
|
|
#define fs0f $f21
|
|
#define fs1 $f22
|
|
#define fs1f $f23
|
|
#define fs2 $f24
|
|
#define fs2f $f25
|
|
#define fs3 $f26
|
|
#define fs3f $f27
|
|
#define fs4 $f28
|
|
#define fs4f $f29
|
|
#define fs5 $f30
|
|
#define fs5f $f31
|
|
#endif
|
|
|
|
#if (_MIPS_SIM == _MIPS_SIM_ABI64)
|
|
#define fv0 $f0
|
|
#define fv1 $f2
|
|
#define fa0 $f12
|
|
#define fa1 $f13
|
|
#define fa2 $f14
|
|
#define fa3 $f15
|
|
#define fa4 $f16
|
|
#define fa5 $f17
|
|
#define fa6 $f18
|
|
#define fa7 $f19
|
|
#define ft0 $f4
|
|
#define ft1 $f5
|
|
#define ft2 $f6
|
|
#define ft3 $f7
|
|
#define ft4 $f8
|
|
#define ft5 $f9
|
|
#define ft6 $f10
|
|
#define ft7 $f11
|
|
#define ft8 $f20
|
|
#define ft9 $f21
|
|
#define ft10 $f22
|
|
#define ft11 $f23
|
|
#define ft12 $f1
|
|
#define ft13 $f3
|
|
#define fs0 $f24
|
|
#define fs1 $f25
|
|
#define fs2 $f26
|
|
#define fs3 $f27
|
|
#define fs4 $f28
|
|
#define fs5 $f29
|
|
#define fs6 $f30
|
|
#define fs7 $f31
|
|
#endif
|
|
|
|
#define fcr31 $31
|
|
|
|
#endif /* mips */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !__REGDEF_H__ */
|