Commit Graph

69 Commits

Author SHA1 Message Date
Byron Lathi
21efb8ace8 New sw folders 2024-10-14 23:48:16 -07:00
Byron Lathi
0a0394ae33 Delete everything 2024-03-02 20:11:33 -08:00
Byron Lathi
0aca4af272 Add fixes for multiple sectors per cluster 2023-12-08 23:11:52 -08:00
Byron Lathi
5259fa8e65 Clear the carry flag, not the interrupt flag... 2023-12-08 08:12:50 -08:00
Byron Lathi
15e9b44318 Try clearing carry flag, that always helps. Also don't need verilog image anymore 2023-12-07 23:29:18 -08:00
Byron Lathi
6f16ac4daf Add close, add filesystem code to main kernel for hardware testing 2023-12-07 08:10:45 -08:00
Byron Lathi
0327ab6a2b Handle non-aligned reads 2023-12-06 21:02:41 -08:00
Byron Lathi
066bb0ee8c Get read working a little bit more. Need to handle edge cases! 2023-12-05 23:29:00 -08:00
Byron Lathi
4c3c3fd731 Get something working with read
It is not reading offset correctly
2023-12-05 22:47:24 -08:00
Byron Lathi
48b39eb92d Hack together open() 2023-12-05 19:10:27 -08:00
Byron Lathi
9ae1593957 Read out very long file, but not very long name 2023-12-05 08:29:44 -08:00
Byron Lathi
13738fc0d8 Read a little bit of the data from the file 2023-12-05 08:15:24 -08:00
Byron Lathi
946234381d Look through files without trying too hard 2023-12-05 08:08:20 -08:00
Byron Lathi
2859055f98 Add some basic code, build kernel stuff in tree 2023-12-04 23:06:00 -08:00
Byron Lathi
902b1b5bb9 Save root cluster number 2023-12-04 21:57:36 -08:00
Byron Lathi
84814f05f9 Calculate data start 2023-12-04 18:40:21 -08:00
Byron Lathi
16a7f4db4d Update cc65 pointer with PVSeek 2023-12-04 00:18:18 -08:00
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
e7f8be44b7 enable interrupt when we register irq 2023-11-21 08:06:46 -08:00
Byron Lathi
d172706313 Clear interrupt before waiting 2023-11-20 23:32:05 -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
e3662e703c Add back long string 2023-10-30 00:04:57 -07:00
Byron Lathi
59a6f13eb3 Skip the copydata in kernel setup 2023-10-28 18:31:21 -07:00
Byron Lathi
2577ab2a9a Update kernel makefile, test more kernel code 2023-10-28 13:12:41 -07:00
Byron Lathi
4104a2eeb9 Do a more sane string print first 2023-10-27 20:49:06 -07:00
Byron Lathi
cf8a5d782f Make kernel as part of full chip sim 2023-10-26 21:25:26 -07:00
Byron Lathi
85f53816f9 Remove unneeded CR 2023-09-27 23:03:22 -07:00
Byron Lathi
a770d938de Copy bios device functions to kernel 2023-09-04 14:31:55 -07:00
Byron Lathi
791bffb248 Add copy data back 2023-09-04 14:08:52 -07:00
Byron Lathi
15b7d50a30 Fix zerobss bug
Well, not really fix but problem is avoided for now
2023-09-01 21:49:36 -07:00
Byron Lathi
b2b3b84bc4 Kernel crashing 2023-08-26 23:15:36 +00:00
Byron Lathi
eba24c2990 Disable inits which fail 2023-08-26 13:42:06 -07:00