From 3edad9078886ceea843c5f9c39950abba08fa36e Mon Sep 17 00:00:00 2001 From: 0xMAC8205 Date: Tue, 24 Oct 2023 23:34:20 +0200 Subject: [PATCH] First Commit --- assets/UTF.8.bin | Bin 0 -> 2048 bytes assets/UTF.8.bmf | Bin 0 -> 4097 bytes lib/kernel.s | 0 lib/kernel/console.s | 0 lib/kernel/int.s | 0 lib/kernel/irq.s | 0 lib/kernel/keyboard.s | 0 lib/kernel/string.s | 0 main.s | 37 +++++++++++++++++++++++++++++++++++++ monitor.s | 0 10 files changed, 37 insertions(+) create mode 100644 assets/UTF.8.bin create mode 100644 assets/UTF.8.bmf create mode 100644 lib/kernel.s create mode 100644 lib/kernel/console.s create mode 100644 lib/kernel/int.s create mode 100644 lib/kernel/irq.s create mode 100644 lib/kernel/keyboard.s create mode 100644 lib/kernel/string.s create mode 100644 main.s create mode 100644 monitor.s diff --git a/assets/UTF.8.bin b/assets/UTF.8.bin new file mode 100644 index 0000000000000000000000000000000000000000..90fc4071dc67d0230a9a9f3c7ac4a5be2452f8dc GIT binary patch literal 2048 zcmeHGv5MR<6dZ&IE|wsUD@-s!2obJaQUqfZqX=W1^EjJOeOZ-?Sg>11{Aw(L`dVjq=2fvqkx`R9gZew?ZN0dnT{2P#bYBUjZx?9;!v-PT%hBThuLRM}7fveLB` z|9CCd1|Z6b6@uu}0p@NHZ!VF+)ywao`t%Voo|m+oS)&5-Db>`Enk?%b5o3^ORum1L$eMw!cO< z2V%At9nAC%_{4D^q%H=Obb@4wIgp7S+d MeYm~{FYkZwA2*|uQ2+n{ literal 0 HcmV?d00001 diff --git a/assets/UTF.8.bmf b/assets/UTF.8.bmf new file mode 100644 index 0000000000000000000000000000000000000000..385356fed463b32f42c22a4eb0b84fc9019b82e9 GIT binary patch literal 4097 zcmeHHv5MP35FM5!s4!tUt`I?lMJ(Y;lOhzh1U+>#3W9OV_fKB1N_fG1$!dhDhpL^Vln@7Rq+~^dXxvn`!%|GwUQXUzw`^dOS z-C;-#scVt6s$-0G z#qm?9>pGkmPcfdN((8;P$MOEBq~1?+IjOhH{!{wDgdMEXGqwHqzLk7*gCzr}r^5l9 zTrUlu_npFdz7)g{_&6g7I6uet;T7W?*Y%nd8~y#y{fd9VjwOBq2toM|_;7eq{h=9@ z z3aI&v*>e RJ+a&e%YCri2mkMV@E1F5lTiQw literal 0 HcmV?d00001 diff --git a/lib/kernel.s b/lib/kernel.s new file mode 100644 index 0000000..e69de29 diff --git a/lib/kernel/console.s b/lib/kernel/console.s new file mode 100644 index 0000000..e69de29 diff --git a/lib/kernel/int.s b/lib/kernel/int.s new file mode 100644 index 0000000..e69de29 diff --git a/lib/kernel/irq.s b/lib/kernel/irq.s new file mode 100644 index 0000000..e69de29 diff --git a/lib/kernel/keyboard.s b/lib/kernel/keyboard.s new file mode 100644 index 0000000..e69de29 diff --git a/lib/kernel/string.s b/lib/kernel/string.s new file mode 100644 index 0000000..e69de29 diff --git a/main.s b/main.s new file mode 100644 index 0000000..28f4475 --- /dev/null +++ b/main.s @@ -0,0 +1,37 @@ + + + + .org $c000 + + ; libraries + + .include "lib/kernel.s" + +reset + + + + .org $fffa + .addr $0f00 + .addr reset + .addr irq_jump + +; hardware registers +vidx = $be00 +vidy = $be01 +vidm = $be02 +vidd = $be03 + +porta = $bf80 +portb = $bf81 +ddrb = $bf82 +ddra = $bf83 +t1cl = $bf84 +t1ch = $bf85 +acr = $bf8b +ifr = $bf8d +ier = $bf8e + +keyboard_port = $bd00 +system_register = $bc00 + .end \ No newline at end of file diff --git a/monitor.s b/monitor.s new file mode 100644 index 0000000..e69de29