Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

386SWAT debugger (Developers)

posted by mrichard, 28.03.2024, 21:30

> The 386SWAT debugger was also used in the D3X dos extender (code in PM32
> mode). See the SWAT.INC file which can be found in the archive for download
> from here:
>
> https://board.flatassembler.net/download.php?id=7858
> https://board.flatassembler.net/download.php?id=7859
>
> on web:
>
> https://board.flatassembler.net/topic.php?t=14416
>
> When detecting the presence of 386 SWAT, you must first check whether
> interrupt 67h is supported and then specify which descriptors in GDT are
> reserved for this debugger and which descriptors point to interrupts int
> 01h and 03h in IDT. Then, when you enter protected mode, you can invoke one
> of these interrupts.
>
> Good luck.

Thanks for your help.
INT 67h DEF0 returns V6.01 for 386SWAT because that's the version I'm using. I also have a version 6.06 which crashes at startup with certain computers.. I add 30 empty descriptors at the end of my GDT, then with INT 67h DEF2 I point ES:DI to the start of these 30 new descriptors, but in BX I don't understand if I should put a selector there that points to the IDT of the PM. Then INT 67h DEF3 selects for example int 3 with BX, but in ES:DI I don't know if I should point to the PM's IDT or a new IDT reserved for SWAT? (because I think I understand that in the help). In PM 32b, I make a far call using a selector for the start of GDT of SWAT with the linear address that INT 67h DEF2 returned in EDX, but is this correct? An int3 displays a smiley which proves that my IDT is recognized and working, but it does not break 386SWAT. Maybe because now INT3 doesn't do the same thing as before? (for INT1, etc. my IDT contains IRETD everywhere).
I haven't tried your version yet because it's still too confusing for me in terms of INT DEF2, DEF3 and the far call to be made in PM, etc. Please, can you give me a little information more ?

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 58 users online (0 registered, 58 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum