Compare commits

..

12 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 750fdb65ae fix: account for pipeline in obscure bios behaviour 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 05b5081351 chore: update README.md 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka be3ce71a96 fix: advance r15, even when the pipeline is reloaded from the scheduler
The PC would fall behind whenever an IRQ was called because the pipeline
was reloaded (+8 to PC), however that was never actually done by any code

Now, the PC is always incremented when the pipeline is reloaded
2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 8e2022dffd chore: dump pipeline state on cpu panic 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 0fe164db11 fix: reimpl THUMB.5 instructions
pipeline branch now passes arm.gba and thumb.gba again

(TODO: Stop rewriting my commits away)
2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 41f10c6c12 fix: impl workaround for stage2 miscompilation 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka d5acfb6eb0 chore: instantly refill the pipeline on flush
I believe this to be necessary in order to get hardware interrupts
working.

thumb.gba test 108 fails but I'm committing anyways (despite the
regression) because this is kind of rebase/merge hell and I have
something that at least sort of works rn
2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 6428be5f22 fix: reimpl handleInterrupt code 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 1d09554ea4 feat: implement basic pipeline
passes arm.gba, thumb.gb and armwrestler, fails in actual games
TODO: run FuzzARM debug specific titles
2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 66ad155a76 feat: resolve off-by-{word, halfword} errors when printing debug info 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka 1fa855d8b5 feat: reimplement cpu logging 2022-09-26 16:26:45 -03:00
Rekai Nyangadzayi Musuka c71e954748 chore: SDL2.zig expects target to be set before link() is called 2022-09-25 18:59:55 -03:00
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,8 @@ pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("zba", "src/main.zig");
exe.setTarget(target);
// Known Folders (%APPDATA%, XDG, etc.)
exe.addPackagePath("known_folders", "lib/known-folders/known-folders.zig");
@ -29,10 +31,8 @@ pub fn build(b: *std.build.Builder) void {
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
const sdk = Sdk.init(b);
sdk.link(exe, .dynamic);
exe.addPackage(sdk.getNativePackage("sdl2"));
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();