Commit graph mandel-6502/mandel-core.s
Author SHA1 Message Date
4b352e8f63 Merge branch 'regression' 2026-08-22 15:35:29 -07:00
e284587edc Fix regression from merging ptr and pixel_ptr
the XE fast-path assumed low byte of ptr never changes
to save a couple cycles
2026-08-22 15:35:03 -07:00
829f46755a Save another few cycles per multiple
add_carry took a fixed 8 cycles with a lda/adc/sta pattern

we can instead use bcc to handle the carry-not-set case in just
2 cycles, skipping over the inc which takes 5 cycles on the
carry-is-set case.

Result is 2-7 cycles instead of 8, saving 1-6 cycles twice
per 16-bit multiplication or square.

Neat!
2026-08-22 14:43:17 -07:00
b4cb773cf1 tweak comment 2026-08-22 14:34:53 -07:00
d9f7ce3e35 whoops missed a bit 2026-08-22 14:27:52 -07:00
3ce4c1e580 Add some timing notes 2026-08-22 13:01:23 -07:00
25c37a1188 zeropage tweaks
* switched zero-page from hardcoded assignments to symbols
* moved most non-hotpath stuff out to .data
* merged ptr and pixel_ptr

Slight slowdown in Atari800MacX from 5m13s to 5m15s
2026-04-08 20:16:31 -07:00
b27be3c159 Add a C shell, which currently just passes through
This is a first step toward moving the UI to C and
adding file and network I/O in C. The fractal core
will remain in assembler as well as the multiplier.
2025-12-28 09:23:38 -08:00
Renamed from mandel.s (Browse further)