Commit Graph

23 Commits

Author SHA1 Message Date
Byron Lathi
5c74d161d4 Add some basic fat32 code 2023-12-03 23:27:45 -08:00
Byron Lathi
de804ac3ca Use tmp1 instead of y register
popa clobbers y
2023-12-01 22:53:41 -08:00
Byron Lathi
e8452eb98c Add rtc_set 2023-12-01 08:28:38 -08:00
Byron Lathi
32c82044a7 Fix more bugs 2023-12-01 00:56:16 -08:00
Byron Lathi
a169b30028 Fix not saving to ptr1 and comparing y 2023-11-30 23:58:30 -08:00
Byron Lathi
597d15e234 Add terminal write as well, use it in kernel 2023-11-29 17:19:18 -08:00
Byron Lathi
b25d0e9bdb First shot at terminal read 2023-11-29 08:38:25 -08:00
Byron Lathi
5b6a4e1442 Start terminal driver 2023-11-28 23:52:27 -08:00
Byron Lathi
e73d8db74c Serial Fix
Fixes a typo with getc_nb, removes the RTC tick code (since we know it
works now and it is clogging up the screen), read characters in a loop
instead of just once.
2023-11-28 23:23:31 -08:00
Byron Lathi
fd9ccdbce4 Add serial driver and irq support 2023-11-28 22:54:26 -08:00
Byron Lathi
9ce5b7592f Use longer rtc interval 2023-11-22 20:57:49 -08:00
Byron Lathi
930e802a86 Add init code for mapper
init_mapper now remaps so that it can change irq vectors
2023-11-22 17:33:12 -08:00
Byron Lathi
102c4dfe8a Use vectors for irq and nmi 2023-11-21 18:53:17 -08:00
Byron Lathi
4392a01de8 #53 Reduce interrupts to 128 2023-11-21 08:17:36 -08:00
Byron Lathi
7089b663ca add interrupt init code (and increase rtc tick rate) 2023-11-20 22:23:18 -08:00
Byron Lathi
531bb4cf13 Fix bad sp and writing to zp0 2023-11-20 18:37:04 -08:00
Byron Lathi
e6a16b0c73 Add device setup test using kernel drivers 2023-11-20 08:29:35 -08:00
Byron Lathi
3861e44693 PIC: Disable all irqs at start 2023-11-19 23:30:02 -08:00
Byron Lathi
1e9be6c764 RTC: Fix threshold/irq_threshold initialization
Also throw some newlines in the kernel print messages.
2023-11-19 23:28:11 -08:00
Byron Lathi
680bccee62 Init rtc and pic in kernel 2023-11-19 22:11:29 -08:00
Byron Lathi
a770d938de Copy bios device functions to kernel 2023-09-04 14:31:55 -07:00
Byron Lathi
7ad1079289 Restart kernel 2023-08-12 11:59:45 -07:00
Byron Lathi
c6098f2d1f Separate kernel code from test code
Eventually I want the kernel to be loaded from the SD card as well, but
it still needs to separate from user programs.

At some point there should be a folder just for the BIOS, which should
read from the boot block of the SD card and start executing, and thats
it.
2022-04-16 21:58:37 -05:00