feat: implement ARM7TDMI (and stub ARM946E-S)

This commit is contained in:
2023-06-25 16:37:43 -05:00
parent c8e78c42ec
commit d2db52e495
22 changed files with 2450 additions and 4 deletions

View File

@@ -24,6 +24,12 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
const zba_util_mod = b.dependency("zba-util", .{}).module("zba-util");
const bitfield_mod = b.createModule(.{ .source_file = .{ .path = "lib/bitfield.zig" }, .dependencies = &.{} });
lib.addModule("zba-util", zba_util_mod); // https://git.musuka.dev/paoda/zba-util
lib.addModule("bitfield", bitfield_mod);
// This declares intent for the library to be installed into the standard
// location when the user invokes the "install" step (the default step when
// running `zig build`).
@@ -37,6 +43,9 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
main_tests.addModule("zba-util", zba_util_mod); // https://git.musuka.dev/paoda/zba-util
main_tests.addModule("bitfield", bitfield_mod);
const run_main_tests = b.addRunArtifact(main_tests);
// This creates a build step. It will be visible in the `zig build --help` menu,