578e9934d8
more bug catching after changing the location of data
...
also cleanup comment from previous bug
2024-12-19 18:59:34 -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
2a6792ae01
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
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
2c5e5ccbee
might have fixed some of the boot_drive issues with ext_read
2024-12-19 13:13:46 -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
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
d98786072c
use movzx instead of goofy mov word and and mask the upper bits
2024-10-18 07:58:40 -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
45aeb9b3d0
ClusterToLBA to fastcall
...
cleanup of NextCluster
2024-10-17 20:36:05 -04:00
046821ff7a
add fastcall-ish macro for light functions
...
only does a stack frame setup with no locals space
2024-10-17 20:35:12 -04:00
520f877b05
make space in bss directly for boot_drive and partition offsets
2024-10-17 20:33:44 -04:00
508bf1aa55
update a few missed fields and correct ALIGN on FSInfoPrinter
...
disable bad cluster jmp for now
2024-10-17 14:34:23 -04:00
ccf846909a
update field name
2024-10-17 14:33:42 -04:00
4708c78d54
correction
2024-10-17 14:33:32 -04:00
6942c4dbb4
bit smaller of an instruction
2024-10-17 14:33:22 -04:00
9d4479bd86
clear dh and al
2024-10-17 14:17:15 -04:00
496a389ba4
remove newline and fix stack at end
2024-10-17 14:16:14 -04:00
2b3ab1dc3a
changed informational strings
2024-10-17 14:15:49 -04:00
85a8f0da1c
rewrite InitFATDriver to use si/di/bx relative addresses
2024-10-17 10:34:32 -04:00
b5cc1c9ec1
move fsinfo just for my easy reading
2024-10-17 10:33:52 -04:00
e12ea89fda
changing names of values to match spec more
...
also added prototype for FS info printer that will print some basic santity check type info.
2024-10-17 07:50:37 -04:00
e33f010f73
added carry and divz checks across the fat32 code
...
also use the pointers we have in bss to our saved data
2024-10-16 11:58:57 -04:00
a830191547
added carry and divz checks across the fat32 code
...
also use the pointers we have in bss to our saved data
2024-10-16 11:58:57 -04:00
c9f4b18d2b
some debuging text for fat32 stuff
2024-10-15 20:37:49 -04:00
38bcd93ced
some debuging text for fat32 stuff
2024-10-15 20:37:49 -04:00
e680620148
remove some redundant reloads of si
...
use xchg to swap si/di instead of the stack
uninline ClusterToLBA call
2024-10-15 20:01:24 -04:00
f1842d0cbc
remove some redundant reloads of si
...
use xchg to swap si/di instead of the stack
uninline ClusterToLBA call
2024-10-15 20:01:24 -04:00
fb54c65caf
remove jmp short init at the start of stage2
...
also correct total size output as combined .data + .text
2024-10-15 18:33:57 -04:00
e085cbbab7
remove jmp short init at the start of stage2
...
also correct total size output as combined .data + .text
2024-10-15 18:33:57 -04:00
7f6436297e
align to 16 byte bounds and add git info to build
2024-10-15 18:28:06 -04:00
915ac4c8ae
align to 16 byte bounds and add git info to build
2024-10-15 18:28:06 -04:00
5159ef8a7c
correct size of operand in PrintDWORD
...
added some magic debug points for stuff that isn't working as well.
2024-10-15 13:32:36 -04:00
e65220fece
correct size of operand in PrintDWORD
...
added some magic debug points for stuff that isn't working as well.
2024-10-15 13:32:36 -04:00
56e8081118
magic debug before touching anything in error printer
2024-10-15 13:31:51 -04:00
6731e03e38
magic debug before touching anything in error printer
2024-10-15 13:31:51 -04:00
50b08f6b72
turn off magic debug in mbr/vbr stages
2024-10-15 13:31:32 -04:00
47a47051b2
turn off magic debug in mbr/vbr stages
2024-10-15 13:31:32 -04:00
a97e3bea9b
removed bpb_offset_bx dep
...
reworked init: process
512 byte stack...should be more than enough for the vbr
2024-10-15 12:57:54 -04:00
8e2ca06406
removed bpb_offset_bx dep
...
reworked init: process
512 byte stack...should be more than enough for the vbr
2024-10-15 12:57:54 -04:00
aa8c7b67ab
moved stack to end of bss & reduced size for now.
...
removed redzone label
reordered sp/bp setup and bss zeroing in init:
fixed kmemcpy call stack usage
2024-10-15 12:56:12 -04:00
2b9d0d9946
moved stack to end of bss & reduced size for now.
...
removed redzone label
reordered sp/bp setup and bss zeroing in init:
fixed kmemcpy call stack usage
2024-10-15 12:56:12 -04:00
b4621a7fb8
reduced stack size in mbr stage
...
removed some unused data in bss
reordered how/when in init we set sp/bp and zero bss
we now push the top of the stack pointer/bp at the top of the stack, which makes the stack frame more 'normal'
also use movsb instead of movsw
2024-10-15 12:53:22 -04:00
1ce3f67263
reduced stack size in mbr stage
...
removed some unused data in bss
reordered how/when in init we set sp/bp and zero bss
we now push the top of the stack pointer/bp at the top of the stack, which makes the stack frame more 'normal'
also use movsb instead of movsw
2024-10-15 12:53:22 -04:00