Skip to content

Commit

Permalink
Make the menu use VWF instead of being hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
Normmatt committed Feb 7, 2012
1 parent 04a597f commit be26c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion asm/bin/menuWidthTable.bin
@@ -1 +1 @@


10 changes: 5 additions & 5 deletions asm/menuVWF.asm
Expand Up @@ -46,9 +46,9 @@ putChar:
mov r7, r2 ;store bg color
BL Copy1BppCharacter
mov r2, #8 ; r2 = width, replace this with lookup table
;ldr r2, =WidthTable
;ldrb r2, [r2,r6]
;mov r2, #4 ; r2 = width, replace this with lookup table
ldr r2, =WidthTable
ldrb r2, [r2,r6]
LDRH R0, [R4,#0xC]
LSL R0, R0, #5
Expand Down Expand Up @@ -179,8 +179,8 @@ overflow: .word 0x03000000 ; my notes say this is free
mask: .word 0x11111111 ; mask
.pool

;WidthTable:
;.incbin asm/bin/menuWidthTable.bin
WidthTable:
.incbin asm/bin/menuWidthTable.bin

.close

Expand Down

0 comments on commit be26c09

Please sign in to comment.