From 969122d85f3cce66c3d0b3eaeb901cb954fcd48f Mon Sep 17 00:00:00 2001 From: sup39 Date: Sat, 15 Oct 2022 21:07:08 +0900 Subject: [PATCH] fix CustomizedDisplay: forgot to do setup after drawText --- Codes.xml | 2 +- site/.vuepress/components/codes/CustomizedDisplay/codegen.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Codes.xml b/Codes.xml index 1fa3312..640b420 100644 --- a/Codes.xml +++ b/Codes.xml @@ -3285,7 +3285,7 @@ Customized display カスタマイズ表示 sup39(サポミク) - 0.1 + 0.2 Oct 15, 2022 drawText diff --git a/site/.vuepress/components/codes/CustomizedDisplay/codegen.js b/site/.vuepress/components/codes/CustomizedDisplay/codegen.js index 51e5751..59d9803 100644 --- a/site/.vuepress/components/codes/CustomizedDisplay/codegen.js +++ b/site/.vuepress/components/codes/CustomizedDisplay/codegen.js @@ -407,6 +407,10 @@ export default function codegen(version) { } // addi r1, r1, spOff if (spOff) program.push(ASM.addi(1, 1, spOff)); + // addi r3, r1, 0xE90 + program.push(ASM.addi(3, 1, 0xe90)); + // bl setup + program.bl(addrSetup2D); // b orig+4 program.b(addrOrig + 4);