Archived
1
0
Fork 0

add -mregnames -mgekko flags

This commit is contained in:
sup39 2022-10-26 13:30:11 +09:00
parent dacf0c2c79
commit c388281199
3 changed files with 3 additions and 74 deletions

View file

@ -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

View file

@ -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,

View file

@ -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