Commit Graph

142 Commits

Author SHA1 Message Date
Nero d9affa3cae Kernel: Fix segmenting bugs 2021-04-20 16:27:10 +00:00
Nero 39a1ed085c Implement reading/writing a DTA full from a cluster without ptr advance 2021-04-05 23:05:08 +00:00
Nero b617709684 Fix rootdir.asm re-using potentially wrong DS 2021-03-19 19:26:38 +00:00
Nero 5e3ae0aa08 Put rootdir and cluster access into separate files 2021-03-19 19:01:38 +00:00
Nero fbab632616 Implement file open 2021-03-19 18:50:50 +00:00
Nero f702006582 implement fcb search with more efficient segmenting and dta use 2021-02-25 00:45:56 +00:00
Nero 7c4b84ecb3 word-align disk buffer 2021-02-19 19:41:34 +00:00
Nero ec205407a7 fix conout using stray DS 2021-02-19 19:41:24 +00:00
Nero a91fb3de0d Implement common char i/o functions 2021-02-19 08:57:21 +00:00
Nero 78233db88d fix nasm orphaned labels warnings 2021-02-18 20:20:14 +00:00
Nero 84b754551c Restructure kernel to use 1-segment COM convention 2021-02-07 16:17:31 +00:00
Nero ebd356ed8e Implement file search in directory 2021-01-23 17:32:53 +00:00
Nero 4530866130 fix psp/setdta corrupting DS 2021-01-21 22:30:35 +00:00
Nero 1ec84fc411 Single out PSP management 2021-01-21 22:28:57 +00:00
Nero 3056d659fa fix syscall gateway not preserving DS on entry 2021-01-13 18:36:12 +00:00
Nero 440187c2a8 Harden drive.asm against unexpected DS and ES values 2021-01-13 18:32:17 +00:00
Nero df243e668e Remove PIC functionality from syscall.asm
Makes things easier
2021-01-13 17:38:22 +00:00
Nero 4046dd7d6c Improve syscall entrypoint 2021-01-13 17:20:49 +00:00
Nero 750bfbdc60 Remove outdated comments 2021-01-05 00:15:36 +00:00
Nero 34023678a4 Implement current drive for user programs 2021-01-04 23:29:50 +00:00
Nero 7e2e91b2b7 Reorder code and remove unused farptr components 2021-01-04 23:19:14 +00:00
Nero 0256d6ab36 Improve syscall gateway: now position-independent
Also it now keeps all register values except SS:SP on entry.
2021-01-04 23:01:14 +00:00
Nero fb4bbfc8cf Continued development on int 21h interface 2021-01-03 18:11:41 +00:00
Nero 3f8cfaac42 Remove debugging output 2021-01-03 18:10:54 +00:00
Nero 1dbfb2f592 Implement entrypoint and table for syscalls 2021-01-02 03:45:03 +00:00
Nero 015eea2f2f Rename fndfst to open 2021-01-02 02:48:04 +00:00
Nero 9a1c4139a6 Implement searching directory for exact matches 2021-01-02 02:07:40 +00:00
Nero 7754312609 remove unused kernel/main 2020-12-27 00:25:30 +00:00
Nero 2bb40e315c Fix ebios dap packet: wrong size 2020-12-26 20:58:51 +00:00
Nero af5df85c16 Use ebios extensions if enabled 2020-12-26 20:54:39 +00:00
Nero c75b323d31 Add support for hard disks 2020-12-26 17:44:48 +00:00
Nero b8b56e1f45 make logdrv also use int13 stub 2020-12-26 16:43:04 +00:00
Nero c5afc6ec61 Add printf facility for kernel to allow debug messages on phys. system 2020-12-26 16:03:15 +00:00
Nero 424e174523 drive i/o: improvements regarding reset and stack usage
- read and write now run in the same function, less branching
- implemented on-demand controller reset
- set up a function stub for int 0x13 for later stack switching
2020-12-26 14:40:43 +00:00
Nero 0a2a0e4659 Support managing floppy parameter table 2020-12-22 21:14:16 +00:00
Nero f10fa026cf Add support for floppy types with other geometry than 18/2/80 2020-12-18 18:29:26 +00:00
Nero de04b5ca01 Make logging in drive a no-op if drive already logged in 2020-12-17 00:41:53 +00:00
Nero bd3b27362d skip reads when sector number already matches 2020-12-17 00:10:02 +00:00
Nero e096745c13 Implement map-like sector access for floppy drives 2020-12-15 23:29:35 +00:00
Nero 6bdb1da2ed Read disk geometry and DPT from BIOS 2020-10-30 09:29:22 +00:00
Nero 50aa6e4eec Use uppercase non-struct constants for BPB 2020-10-25 09:15:33 +00:00
Nero dc6035fe9d Protypical implementation of DPT copying 2020-10-24 22:50:23 +00:00
Nero c41782c78f Build drive selection logic for FCBs 2020-10-13 20:10:23 +00:00
Nero 4e779c5a22 Lay out skeletons for FCB handling 2020-10-11 21:33:01 +00:00
Nero 303b1756e0 Fuck up the kernel, i have other ideas now 2020-09-15 21:44:32 +02:00
Nero 79c902c197 kernel: Fix borked ax assignment 2020-08-31 20:21:10 +00:00
Nero 352540bd25 kernel: First steps of calculating drive tab data from BPB 2020-08-31 20:11:05 +00:00
Nero f0a000b7d1 kernel: implement diskio using drive table 2020-08-27 20:52:16 +00:00
Nero 4a294ee21c kernel: fix advancing of drive table pointer during drive init 2020-08-22 23:38:11 +00:00
Nero 3b39572043 kernel: fall back to defaults if int 13h/ah=8 spews bogus data 2020-08-22 23:36:25 +00:00