add viewport number 5 full zoom

This commit is contained in:
Brooke Vibber 2024-12-31 15:45:03 -08:00
parent d8601bb856
commit 87caa52543

View file

@ -290,18 +290,21 @@ viewport_zoom:
.byte 6 .byte 6
.byte 8 .byte 8
.byte 6 .byte 6
.byte 8
viewport_ox: viewport_ox:
.dword $00000000 .dword $00000000
.dword $ff110000 .dword $ff110000
.dword $ff110000 .dword $ff110000
.dword $fe400000 .dword $fe400000
.dword $fe3b0000
viewport_oy: viewport_oy:
.dword $00000000 .dword $00000000
.dword $ffb60000 .dword $ffb60000
.dword $ffbe0000 .dword $ffbe0000
.dword $00000000 .dword $00000000
.dword $fffe0000
; 2 + 9 * byte cycles ; 2 + 9 * byte cycles
.macro add bytes, dest, arg1, arg2 .macro add bytes, dest, arg1, arg2
@ -1399,6 +1402,8 @@ number_keys:
beq three beq three
cpy #KEY_4 cpy #KEY_4
beq four beq four
cpy #KEY_5
beq five
jmp skip_char jmp skip_char
one: one:
@ -1412,6 +1417,9 @@ three:
jmp load_key_viewport jmp load_key_viewport
four: four:
ldx #3 ldx #3
jmp load_key_viewport
five:
ldx #4
; fall through ; fall through
load_key_viewport: load_key_viewport:
jsr load_viewport jsr load_viewport