tweak viewports
skip experimental 6th viewport that got forgotten and limit max zoom to 7 (range 0-7) which is what looks good
This commit is contained in:
parent
65fcb44934
commit
837082cf56
2 changed files with 2 additions and 8 deletions
8
mandel.s
8
mandel.s
|
@ -296,7 +296,6 @@ viewport_zoom:
|
|||
.byte 7
|
||||
.byte 5
|
||||
.byte 7
|
||||
.byte 8
|
||||
|
||||
viewport_ox:
|
||||
.dword ($00000000 & $3fffffff) << 2
|
||||
|
@ -1393,7 +1392,7 @@ skip_char:
|
|||
|
||||
plus:
|
||||
lda zoom
|
||||
cmp #8
|
||||
cmp #7
|
||||
bpl skip_char
|
||||
inc zoom
|
||||
jmp done
|
||||
|
@ -1427,8 +1426,6 @@ number_keys:
|
|||
beq four
|
||||
cpy #KEY_5
|
||||
beq five
|
||||
cpy #KEY_6
|
||||
beq six
|
||||
jmp skip_char
|
||||
|
||||
one:
|
||||
|
@ -1445,9 +1442,6 @@ four:
|
|||
jmp load_key_viewport
|
||||
five:
|
||||
ldx #4
|
||||
jmp load_key_viewport
|
||||
six:
|
||||
ldx #5
|
||||
; fall through
|
||||
load_key_viewport:
|
||||
jsr load_viewport
|
||||
|
|
|
@ -18,7 +18,7 @@ Enjoy! I'll probably work on this off and on for the next few weeks until I've g
|
|||
|
||||
## Current state
|
||||
|
||||
Basic rendering is functional, with interactive zoom/pan (+/-/arrows) and 6 preset viewports via the number keys.
|
||||
Basic rendering is functional, with interactive zoom/pan (+/-/arrows) and 5 preset viewports via the number keys.
|
||||
|
||||
The 16-bit signed integer multiplication takes two 16-bit inputs and emits one 32-bit output in the zero page, using the Atari OS ROM's floating point registers as workspaces. Inputs are clobbered.
|
||||
|
||||
|
|
Loading…
Reference in a new issue