build.zig and memory.x as ld file for tivatm4c123g

This commit is contained in:
Filipriec
2026-03-09 09:06:04 +01:00
parent 27704a2f16
commit d8b4c8e8cf
8 changed files with 153 additions and 13 deletions

16
basics/src/calc.zig Normal file
View File

@@ -0,0 +1,16 @@
pub fn add(a: i32, b: i32) i32 {
return a + b;
}
pub fn sub(a: i32, b: i32) i32 {
return a - b;
}
pub fn mul(a: i32, b: i32) i32 {
return a * b;
}
pub fn divFloor(a: i32, b: i32) i32 {
return @divFloor(a, b);
}