Commit Graph
39 Commits
Author SHA1 Message Date
Matthew Laux 005fb5ed3b remove small loop "optimization", no longer necessary and was messing up games that waited on cp [hl] to change 2026-08-19 20:45:14 -05:00
Matthew Laux 6ca1ae93be make cycles in the JIT count up again, counting down was more complicated and didn't help performance at all 2026-08-06 23:13:45 -05:00
Matthew Laux 4af08af085 fix miscompiling data after loop end as code - fixes Pokemon Yellow 2026-08-04 23:15:06 -05:00
Matthew Laux 42acc41a0d WIP compiler improvements 2026-07-27 11:24:31 -05:00
Matthew Laux db7a18ec31 don't call patch helper at all for HRAM, v2.0.1 2026-07-25 23:49:58 -05:00
Matthew Laux 4029b832bc shift optimization on page table lookup, replace all fixed branch targets with patching 2026-07-14 18:37:59 -05:00
Matthew Laux 71bb51ec88 instruction optimization round 1 2026-07-14 17:52:49 -05:00
Matthew Laux efae2406d0 remove fused branches, complexity wasn't worth it 2026-07-14 14:46:12 -05:00
Matthew Laux a778e8a79b track cycles in the block then count them at the end. kind of a wash? 2026-07-14 14:27:49 -05:00
Matthew Laux 00de54b442 add slow path for call/ret/rst (fixes SML2) 2026-07-12 23:38:46 -05:00
Matthew Laux faddf5d469 make m68k_offsets static (code block size -= 256) 2026-07-12 17:49:07 -05:00
Matthew Laux ed37a7c185 half-remove cycles_per_exit, optimize STAT interrupts, but will remove 2026-07-12 17:18:06 -05:00
Matthew Laux 7610d3ce96 biased page tables, scaled index on 68020+, interrupt fixes (that may or may not have actually improved compatibility) 2026-07-08 20:12:32 -05:00
Matthew Laux 8e30a2bff5 add extra cycles for taken branch 2026-02-16 17:05:48 -06:00
Matthew Laux d627b7265b re-add SP range detection, avoid copying lcd pixels twice 2026-01-21 21:20:42 -06:00
Matthew Laux 1927fc04db arena allocator for blocks, remove duplicate blocks by tracking backward branches 2026-01-14 23:48:19 -06:00
Matthew Laux fb9c430397 clean up externs, make indentation consistent in jit, add some comments 2026-01-14 17:33:01 -06:00
Matthew Laux 814a9ccf0b dmg_write16 instead of two dmg_write for stack ops 2026-01-13 23:40:28 -06:00
Matthew Laux 74f91d802e prepare for dmg_read/write16, rename functions, simplify interop 2026-01-13 22:37:04 -06:00
Matthew Laux 9f91bd7526 add 1x scale, audio refactor and fix wave frequency issue, remove crazy SP detection and always go through dmg_read/write 2026-01-13 21:47:25 -06:00
Matthew Laux c611c553ca fix flag bugs (wow that was hard to find), make DIV better, add color icons 2026-01-12 19:24:03 -06:00
Matthew Laux 1fd912fdba save/restore D2 across dmg_read 2026-01-11 18:47:54 -06:00
Matthew Laux f472ce46bd use 68k ccr instead of GB flag format. it's getting crashy 2026-01-09 00:42:26 -06:00
Matthew Laux ea687bed84 finish options dialog 2026-01-08 20:28:10 -06:00
Matthew Laux da0e9dffca use key mappings, load/save key mappings, experiment with interrupt check every 16 scanlines 2026-01-08 10:28:09 -06:00
Matthew Laux 68937eb3f3 patch blocks to jump directly to next block 2026-01-07 18:53:53 -06:00
Matthew Laux bdeb43c0b3 more timing............................ 2026-01-05 15:09:39 -06:00
Matthew Laux 5f63c690c1 more cycle counting 2026-01-05 02:02:20 -06:00
Matthew Laux b814e4fccd attempt better lcd timing 2026-01-05 01:33:28 -06:00
Matthew Laux 698fe41688 more efficient context switch into JIT, remove old compiler files, fix vblank flag bug 2026-01-04 17:45:52 -06:00
Matthew Laux 6126315141 conditional call, LRU block cache, MBC support, much more complicated dispatcher :/ 2026-01-03 13:58:29 -06:00
Matthew Laux 7f3c857bb8 fused cp/jr, and a/jr, or a/jr 2026-01-02 16:37:12 -06:00
Matthew Laux 6b1d164e6e VERY hacky changes to allow tetris to work 2025-12-30 00:09:15 -06:00
Matthew Laux 3ee9d50483 rest of the loads, wip direct block chain 2025-12-23 13:47:14 -06:00
Matthew Laux 322f520924 compiler gets to the tetris copyright screen - cycle counting is a dead end 2025-12-20 00:58:10 -06:00
Matthew Laux 1e9a822765 conditional return 2025-12-18 21:19:44 -06:00
Matthew Laux 91c0a39bb0 more instructions and tests 2025-12-18 20:51:27 -06:00
Matthew Laux 567041d1c3 ton of compiler improvements and new instructions 2025-12-18 20:16:00 -06:00
Matthew Laux 28e5bc5c93 add basic compiler support to system6 version, xor a, split a bunch of stuff into different files 2025-12-17 23:28:17 -06:00