Skip to content

Commit

Permalink
Move menu state instructions after the "should record" check
Browse files Browse the repository at this point in the history
  • Loading branch information
altf4 committed Jun 19, 2020
1 parent 0868375 commit d800e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Recording/SendMenuFrame.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
.set STACK_OFST_EXI_BUF, BKP_FREE_SPACE_OFFSET

backup STACK_FREE_SPACE
addi r3, sp, STACK_OFST_EXI_BUF # This is the start address for the free space
byteAlign32 r3 # Align to next 32 byte boundary

# check if NOT VS Mode
branchl r12,FN_ShouldRecord
cmpwi r3,0x1
beq Injection_Exit

addi r3, sp, STACK_OFST_EXI_BUF # This is the start address for the free space
byteAlign32 r3 # Align to next 32 byte boundary

li r4, CMD_MENU_FRAME # Command byte
stb r4, 0x0(r3)
Expand Down

0 comments on commit d800e31

Please sign in to comment.