15 Commits

Author SHA1 Message Date
aa5db57b61 chore: dont allocate not-small ?Sprite array on stack
use memset like most other allocations in this emu
2022-10-21 05:57:08 -03:00
a8e0c9bed6 chore: move FrameBuffer struct to util.zig 2022-10-21 05:57:06 -03:00
2baa0d774c chore: move OAM, PALRAM and VRAM structs to separate files 2022-10-21 05:55:38 -03:00
fcb9094990 chore: refactor window 2022-10-21 05:50:42 -03:00
b32855d85f chore: crude background window impl (no affine) 2022-10-21 05:50:42 -03:00
35b1715690 chore: rename function (misspelt until now somehow) 2022-10-21 05:50:42 -03:00
e60b556f72 chore(ppu): remove BGR555 -> RGBA888 LUT
LUT probably couldn't fit in CPU cache anyways.

TODO: Consider whether LUTs for separate channels (size 32 * 3 * 3
instead of std.math.maxInt(u15))
2022-10-17 20:31:42 -03:00
21eddac31e style: improve code quality 2022-10-13 00:23:58 -03:00
fd38fd6506 style(scheduler): rename scheduler event handlers 2022-10-13 00:23:58 -03:00
13f6ee8ec4 style(bus): refactor several hardware abstractions 2022-10-10 11:57:57 -03:00
3fb7f2f814 chore: better conform to zig idioms 2022-09-03 18:30:48 -03:00
6a798d2c9d chore: allocate sprite array on heap
Each Sprite optional is 10 bytes meaning I'm allocating 1.28Kb on the
stack which isn't necessary.
2022-08-29 01:07:25 -05:00
5f8c6833f4 chore: improve init/deinit methods 2022-08-29 01:07:25 -05:00
53eec5c3ff chore: don't init bus in Arm7tdmi init 2022-07-27 13:44:24 -03:00
53191b0eeb chore: change directory structure 2022-07-22 21:11:19 -03:00