From c3882811997c11bfbeaed61e82a87aa127526aa4 Mon Sep 17 00:00:00 2001 From: sup39 Date: Wed, 26 Oct 2022 13:30:11 +0900 Subject: [PATCH] add -mregnames -mgekko flags --- setup.cfg | 2 +- src/supSMSASM/cli.py | 3 +- src/supSMSASM/include/macros.inc | 72 -------------------------------- 3 files changed, 3 insertions(+), 74 deletions(-) diff --git a/setup.cfg b/setup.cfg index bb8a96d..fa87dd9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = supSMSASM -version = 0.0.3 +version = 0.0.4 author = sup39 author_email = sms@sup39.dev description = A tool to make Gecko code from ASM for SMS diff --git a/src/supSMSASM/cli.py b/src/supSMSASM/cli.py index 4b3b011..d8462ef 100644 --- a/src/supSMSASM/cli.py +++ b/src/supSMSASM/cli.py @@ -18,7 +18,7 @@ def pbcopy(content): win32clipboard.SetClipboardText(content) win32clipboard.CloseClipboard() -logger = logging.getLogger('supGeckoCode') +logger = logging.getLogger('supSMSASM') def normalize_dolver(s): if re.match(r'^(?:JP?|N(?:TSC)?[-_]?J)(?:1\.?0|\.0)?$|^1\.0$', s): @@ -55,6 +55,7 @@ def asm2gecko(fnIn, dolver): # assemble if system([ 'powerpc-eabi-as', + '-mregnames', '-mgekko', '-o', distOBJ, '-I', includeDir, distASM, diff --git a/src/supSMSASM/include/macros.inc b/src/supSMSASM/include/macros.inc index 6c5c3e3..e69de29 100644 --- a/src/supSMSASM/include/macros.inc +++ b/src/supSMSASM/include/macros.inc @@ -1,72 +0,0 @@ -.set r0, 0 -.set r1, 1 -.set r2, 2 -.set r3, 3 -.set r4, 4 -.set r5, 5 -.set r6, 6 -.set r7, 7 -.set r8, 8 -.set r9, 9 -.set r10, 10 -.set r11, 11 -.set r12, 12 -.set r13, 13 -.set r14, 14 -.set r15, 15 -.set r16, 16 -.set r17, 17 -.set r18, 18 -.set r19, 19 -.set r20, 20 -.set r21, 21 -.set r22, 22 -.set r23, 23 -.set r24, 24 -.set r25, 25 -.set r26, 26 -.set r27, 27 -.set r28, 28 -.set r29, 29 -.set r30, 30 -.set r31, 31 -.set f0, 0 -.set f1, 1 -.set f2, 2 -.set f3, 3 -.set f4, 4 -.set f5, 5 -.set f6, 6 -.set f7, 7 -.set f8, 8 -.set f9, 9 -.set f10, 10 -.set f11, 11 -.set f12, 12 -.set f13, 13 -.set f14, 14 -.set f15, 15 -.set f16, 16 -.set f17, 17 -.set f18, 18 -.set f19, 19 -.set f20, 20 -.set f21, 21 -.set f22, 22 -.set f23, 23 -.set f24, 24 -.set f25, 25 -.set f26, 26 -.set f27, 27 -.set f28, 28 -.set f29, 29 -.set f30, 30 -.set f31, 31 -.set cr0, 0 -.set cr1, 1 -.set cr2, 2 -.set cr3, 3 -.set cr4, 4 -.set cr5, 5 -.set cr6, 6 -.set cr7, 7