Commit Graph

448 Commits

Author SHA1 Message Date
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
766c67c041 first calls to use the new cdecl16 macros 2025-09-07 16:11:18 -04:00
49d82be0e8 use rotate instead of stack context in macros 2025-09-07 16:10:59 -04:00
69bd7d8f56 small clean up and use configured segment for return to real mode 2025-09-07 14:50:40 -04:00
875527aa98 output to bochs magic debug port as well 2025-09-07 14:49:21 -04:00
c0d47d4db0 re-organize bochs config, added USB 1.0/1.1/2.0 and e1000 network 2025-09-07 14:48:35 -04:00
81a3442ac5 remove magic debug from unrealmode entry 2025-09-07 13:51:23 -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
20c715fadd update notes on unreal entry 2025-09-07 13:15:40 -04:00
920c623a93 update README.md
All checks were successful
Daily Build and trunk tester / debian_update (push) Successful in 1m5s
2025-09-06 13:56:00 -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
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
4e5112b45b move unreal mode hackery back to stage2.nasm 2025-09-05 20:32:19 -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
31d05c35e5 move __TINY_DS_ES to unreal_mode function
also some cleanup
2025-09-05 16:18:34 -04:00
534e04ef34 fix a typo 2025-09-05 15:48:43 -04:00
f58bf93507 don't exit if we are running as root
just warn
2025-09-05 15:45:33 -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
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
01ec6da0cc make unreal mode unreal again 2025-09-05 11:45:46 -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
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
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
b106eae066 fix alignment macros 2025-09-04 20:04:03 -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
28b23b9ce2 paragraph align the values in bss 2025-09-04 15:32:42 -04:00
105ceb8b8b make sure eax and edx are set each call to E820 2025-09-04 15:32:28 -04:00
7fd5b9b85d wx is still broken, also point to disk.img in build/ 2025-09-04 15:31:39 -04:00
a618a837d4 added root check back in, but check that we aren't root
changed how mtools accesses images, should functionally be the same.
2025-09-04 12:29:57 -04:00
930d49c353 Delete LICENSE.md
GPLv3 is in COPYING, remove LICENSE.md
2025-09-04 10:11:36 -04:00
06d00d02e2 Update .github/workflows/daily.yaml
oh boy, github actions as well
2025-09-04 09:19:23 -04:00