mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2025-01-07 23:40:42 +01:00
simplify float functions
moves the logic for handling floating point precision into where its relivent
This commit is contained in:
parent
5534c05f75
commit
c4ba480b18
@ -337,6 +337,7 @@ mflr r29
|
||||
lfsu f1, 4(r24)
|
||||
lis r4, str_floating_precision_INImod@hi
|
||||
ori r4, r4, str_floating_precision_INImod@l
|
||||
lbzu r3, 1(r21)
|
||||
addi r3, r3, 0x30
|
||||
bl CheckifPrecisionIsValidINImod
|
||||
stb r3, 2(r4)
|
||||
@ -396,7 +397,6 @@ b PrintSettingsINImod
|
||||
;calls sprintf to print the float
|
||||
PrintFloatINImod:
|
||||
mflr r28
|
||||
lbzu r3, 1(r21)
|
||||
bl CallsprintfINImod
|
||||
bl PrintNewLineINImod
|
||||
mtlr r28
|
||||
@ -413,15 +413,14 @@ PrintAMVPINImod:
|
||||
mflr r28
|
||||
lis r19, 0x202C
|
||||
ori r19, r19, 0x2000
|
||||
lbzu r3, 1(r21)
|
||||
bl CallsprintfINImod
|
||||
stw r19, 0(r30)
|
||||
addi r30, r30, 3
|
||||
lbz r3, 0(r21)
|
||||
addi r21, r21, -1
|
||||
bl CallsprintfINImod
|
||||
stw r19, 0(r30)
|
||||
addi r30, r30, 3
|
||||
lbz r3, 0(r21)
|
||||
addi r21, r21, -1
|
||||
bl CallsprintfINImod
|
||||
bl PrintNewLineINImod
|
||||
mtlr r28
|
||||
|
Loading…
Reference in New Issue
Block a user