Commit Graph

124 Commits

Author SHA1 Message Date
935cbd1089 naming changes to ReadMbr/Vbr 2025-09-13 14:56:26 -04:00
7f1b4fa632 more naming changes 2025-09-13 14:51:30 -04:00
14f6788a22 renaming things to a hungarian style and adding "types" 2025-09-13 14:41:09 -04:00
526c3e7ea5 remove define_info macro, improved cstr macro and renamed all the OK/Msg debug strings 2025-09-13 13:45:37 -04:00
721ff2e62d cap bss, clean up some padding issues and clean up sign section 2025-09-13 12:50:42 -04:00
7cd6baa74d added 2 proc's to read mbr/vbr to a buffer and setup some early ptr's to partition tables and the like 2025-09-12 23:16:04 -04:00
40fa4062ce 1KiB stack stage2 gets doesn't need extra information from the mbr/vbr now. 2025-09-12 23:13:57 -04:00
a8b24c7b01 add functions to get the mbr/vbr in stage2 2025-09-11 19:05:50 -04:00
58fc4a08dd more me just reviewing the code base and comments 2025-09-11 17:33:08 -04:00
3da2af2d2d add comments to args passed to vbr 2025-09-11 17:06:35 -04:00
ef22bc9cd3 quick todo 2025-09-10 21:14:34 -04:00
507a05949f account for .sign section in bytes_remaining calculation 2025-09-10 11:36:40 -04:00
caed66a243 don't relocate the MBR to the stage2 heap space
this will save us disk reads for patition table info
2025-09-10 11:36:10 -04:00
d5cd8d6c45 remove unused early_mem.inc 2025-09-09 18:54:28 -04:00
71d50cdbd8 move the bpb_offset_bx file to old fat32 2025-09-09 18:50:34 -04:00
3c654b1be0 more rtfm'ing with encoding, 25 bytes of free code space in vbr now 2025-09-09 18:37:39 -04:00
0d90b3efd6 I rtfm'ed and saw there was a push m/16 encoding
mbr now has 93 bytes free for more code
2025-09-09 18:25:24 -04:00
b08605f295 remove dep on fat32_structures 2025-09-09 17:47:17 -04:00
700148a2f6 disable fat32 parts to keep the build...building 2025-09-09 17:01:44 -04:00
1e181bc22c remove print_string macro 2025-09-07 16:25:08 -04:00
766c67c041 first calls to use the new cdecl16 macros 2025-09-07 16:11:18 -04:00
69bd7d8f56 small clean up and use configured segment for return to real mode 2025-09-07 14:50:40 -04:00
81a3442ac5 remove magic debug from unrealmode entry 2025-09-07 13:51:23 -04:00
9493aefa68 rename __CDECL16_ENTRY and EXIT 2025-09-07 13:29:24 -04:00
20c715fadd update notes on unreal entry 2025-09-07 13:15:40 -04:00
af8e7d74d3 I don't plan on using mmx/sse, set the minimum cpu to a 686 2025-09-06 13:55:45 -04:00
4e5112b45b move unreal mode hackery back to stage2.nasm 2025-09-05 20:32:19 -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
31d05c35e5 move __TINY_DS_ES to unreal_mode function
also some cleanup
2025-09-05 16:18:34 -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
b9b3e92632 actually set cs to 16-bit segment for a bit in-case we want to run some pm code 2025-09-05 15:26:24 -04:00
01ec6da0cc make unreal mode unreal again 2025-09-05 11:45:46 -04:00
69d82dc0c2 small comment update 2025-09-05 11:43:41 -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
d824493ba2 small clarification on what "unreal" mode really is 2025-09-05 09:12:55 -04:00
b106eae066 fix alignment macros 2025-09-04 20:04:03 -04:00
28b23b9ce2 paragraph align the values in bss 2025-09-04 15:32:42 -04:00
402bf9974d moved map file output to build
moved output of builds to build/output
updated gitea action
2025-08-24 10:47:18 -04:00
8d5996566e Update licensing and switch back to GPLv3 😅 2025-08-22 11:41:33 -04:00
b2c5a6bf46 macro defines this as BootTarget_cstr_cstr...fix this 2025-01-12 22:24:42 -05:00
531f4fa25f Merge branch 'fat32_sys_rewrite' of github.com:Nivirx/stevia into fat32_sys_rewrite 2025-01-12 20:00:51 -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
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
3bdef99939 typo 2024-10-19 11:17:09 -04:00
d98786072c use movzx instead of goofy mov word and and mask the upper bits 2024-10-18 07:58:40 -04:00