Commit Graph

121 Commits

Author SHA1 Message Date
71d50cdbd8 move the bpb_offset_bx file to old fat32 2025-09-09 18:50:34 -04:00
aa0efe5ff8 a bunch of planning for what the new FAT driver should probably look like. 2025-09-09 17:02:35 -04:00
14ef0151ca move old fat32 system to fat32/old 2025-09-09 17:01:14 -04:00
891bff9509 use __CDECL16 macros and clean up a few proc calls 2025-09-07 17:38:21 -04:00
1e181bc22c remove print_string macro 2025-09-07 16:25:08 -04:00
68c8200aa4 remove invoke macro for now 2025-09-07 16:21:19 -04:00
49d82be0e8 use rotate instead of stack context in macros 2025-09-07 16:10:59 -04:00
875527aa98 output to bochs magic debug port as well 2025-09-07 14:49:21 -04:00
3ec55f5a39 change some macro names to make them more clear 2025-09-07 13:33:26 -04:00
9493aefa68 rename __CDECL16_ENTRY and EXIT 2025-09-07 13:29:24 -04:00
6f2fc627be new fancy macros to make it nicer to call functions 2025-09-07 13:16:37 -04:00
fde7abc544 replace or opcode with test
test only updates flags
2025-09-06 08:38:16 -04:00
69223a1ad2 explaination on the power of two stuff
All checks were successful
Daily Build and trunk tester / debian_update (push) Successful in 1m21s
2025-09-05 20:54:29 -04:00
130cd22ff1 remove unreal mode stuff from cdecl16.inc 2025-09-05 20:33:00 -04:00
66e8e3c7fc prototype allocate function 2025-09-05 19:55:08 -04:00
b0bd4b27b0 🎉 simple allocator init in the code 2025-09-05 16:48:24 -04:00
cd316afdd1 basic arena allocator implementation 2025-09-05 16:42:25 -04:00
9a478aa4d4 added another __REFLAT variant 2025-09-05 16:28:01 -04:00
534e04ef34 fix a typo 2025-09-05 15:48:43 -04:00
b5ae11f850 set ds/es to a tiny memory model after entering Unreal mode
ss/fs/gs will all be huge/flat model after
2025-09-05 15:43:22 -04:00
5fac10f02c use easier to read logic 2025-09-05 14:40:44 -04:00
fa4524aa59 add macros to go from real <-> unreal 2025-09-05 14:39:16 -04:00
2e2b4f991d add cursor manipulation via bios or crtc 2025-09-05 11:45:20 -04:00
d7b29d9113 __CDECL16_ENTRY now takes 0-1 params, if you give it a size it sets up local varible redzone 2025-09-05 11:44:30 -04:00
a53534acd2 clear the carry flag before calling BIOS functions 2025-09-05 10:33:42 -04:00
c3871d2b7d move string functions to video.nasm
caught a bug where SetTextMode was setting mono text not 16-color mode
2025-09-05 10:33:03 -04:00
cb089681cf make arena_align_up use 16-bit values 2025-09-05 09:12:26 -04:00
d868008726 another oopsie from when I changed the calling convention... 2025-09-05 08:43:41 -04:00
935427509a inital code for align_up function 2025-09-05 08:27:56 -04:00
f5e4927d70 add basic arena area init code
Some checks failed
Daily Build and trunk tester / debian_update (push) Failing after 1m14s
2025-09-04 20:04:25 -04:00
f2657fdc01 seems I found a /little/ oopsie in the fat32 system 2025-09-04 19:59:36 -04:00
86d966811b prototypes for displaying some memory maps
but now I need to write an arena allocator...so brb
2025-09-04 17:51:52 -04:00
c10394a0cd early allocator prototypes 2025-09-04 17:49:57 -04:00
105ceb8b8b make sure eax and edx are set each call to E820 2025-09-04 15:32:28 -04:00
8d5996566e Update licensing and switch back to GPLv3 😅 2025-08-22 11:41:33 -04:00
531f4fa25f Merge branch 'fat32_sys_rewrite' of github.com:Nivirx/stevia into fat32_sys_rewrite 2025-01-12 20:00:51 -05:00
aa181bbae4 minor edit 2024-12-20 10:22:55 -05:00
ddd3f35a8b inlined ClusterToLBA into ReadFATCluster
fixed a bug where fat32_state wasn't being updated...
2024-12-20 10:10:12 -05:00
d6e8a2a923 minor cleanup and add dev enviroment files to gitignore 2024-12-20 02:07:46 +00:00
9918f2367e Merge upstream changes from branch 'trunk' into fat32_sys_rewrite 2024-12-19 20:09:48 -05:00
56b86fe12e more bug catching after changing the location of data
also cleanup comment from previous bug
2024-12-19 18:59:34 -05:00
37eb87239c moved varibles passed from vbr to .data section
this is to work around having to save them without .bss ready
2024-12-19 15:18:28 -05:00
63a1a1beea might have fixed some of the boot_drive issues with ext_read 2024-12-19 13:13:46 -05:00
4535b89eaf clarify clobbers 2024-10-19 11:17:04 -04:00
ee9fd9b684 corrected a few instances of accessing boot_drive incorrectly after the location change 2024-10-19 11:08:19 -04:00
6ff9a2307f clear Next cluster data in bss on every NextCluster call 2024-10-19 10:54:58 -04:00
b7e2a8e886 use bx rel addressing for fat32_state in SearchFATDIR 2024-10-18 07:58:09 -04:00
94c2a1626d correct some field sizes 2024-10-18 07:57:42 -04:00
48f0de8f7b clean up 2024-10-18 07:30:23 -04:00
b606e28958 clean up of comments 2024-10-18 07:30:14 -04:00