This shows you the differences between two versions of the page.
— |
blog:pushbx:2022:1111_ldebug_bootunitflx_flag_2_to_force_using_bpb_geometry [2022-11-11 21:11:12 +0100 Nov Fri] (current) ecm created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== lDebug: BOOTUNITFLx flag 2 to force using BPB geometry ====== | ||
+ | |||
+ | After [[blog: | ||
+ | |||
+ | ===== ===== | ||
+ | |||
+ | This is a hack, and probably will be extended or replaced by something better, but it does work insofar as what it's intended to do. I also prepared a small test case to check that it works, at https:// | ||
+ | |||
+ | < | ||
+ | 0060:0003 8ED8 mov ds, ax | ||
+ | 0060:0005 668B1E4C00 | ||
+ | 0060:000A 0E push cs | ||
+ | 0060:000B 680010 | ||
+ | 0060:000E 662E891E0020 | ||
+ | 0060:0014 668F064C00 | ||
+ | 0060:0019 90 nop | ||
+ | 0060:001A CC int3 | ||
+ | 0060:001B 90 nop | ||
+ | |||
+ | 0060:1000 80FC08 | ||
+ | 0060:1003 751B jnz 1020 | ||
+ | 0060:1005 9C pushf | ||
+ | 0060:1006 2EFF1E0020 | ||
+ | 0060:100B 7203 jb 1010 | ||
+ | 0060:100D B10F mov cl, 0F | ||
+ | 0060:100F 90 nop | ||
+ | 0060:1010 55 push bp | ||
+ | 0060:1011 89E5 mov bp, sp | ||
+ | 0060:1013 D05E06 | ||
+ | 0060:1016 D04606 | ||
+ | 0060:1019 5D pop bp | ||
+ | 0060:101A CF iret | ||
+ | |||
+ | 0060:1020 2EFF2E0020 | ||
+ | |||
+ | Before running the interrupt handler interception, | ||
+ | |||
+ | |||
+ | {{tag> | ||
+ | |||
+ | |||
+ | ~~DISCUSSION~~ | ||