flat assembler
Message board for the users of flat assembler.
Index
> Windows > Windows98 ring0 mode? Goto page Previous 1, 2 |
Author |
|
revolution 01 Oct 2018, 02:47
You could try putting some NOP instructions at the 32-bit code entry point. Then it'll only skip the NOPs.
|
|||
01 Oct 2018, 02:47 |
|
Tomasz Grysztar 01 Oct 2018, 07:45
Ben321 wrote: Problem is sometimes debuggers (at least with DOS Box's debugger version) have trouble following the code jump from 16bit real mode to 32bit protected mode, and end up landing on the wrong opcode (allowing several opcodes to get executed without debugging, so I can't execute anything step by step and until the debugger finally recognizes where it should be and starts the debugging process again several opcodes past the landing spot for the jump to 32bit protected mode). I did at one point use DOS Box Debugger for my debugger, and had a test program that jumped to 32bit mode from 16bit real mode, and DOS Box Debugger was terrible, so I figured that this was fairly representative of most debuggers in DOS (they just tend to have trouble with the jump to 32bit protected mode, it's part of their nature). So I have basically given up on DOS programming in assembly. Ben321 wrote: Also is "FASM for DOS" a version of FASM that runs in DOS, or a version of FASM that runs in Windows and then compiles for DOS (which then allows you to put your compiled program into a disk image via WinImage, and then load that disk image into something like VirtualBox to use it)? |
|||
01 Oct 2018, 07:45 |
|
sinsi 02 Oct 2018, 00:46
Bochs has a debug version.
|
|||
02 Oct 2018, 00:46 |
|
Ben321 02 Oct 2018, 03:17
sinsi wrote: Bochs has a debug version. Unfortunately it looks like it's not a default feature. It looks like you need to compile yourself with certain compile options to enable it. I'm not about to set up an entire development environment just to enable one feature. If somebody can point me to a download link where they have posted their own compiled copy with debug mode enabled though, I'd be fine with that. |
|||
02 Oct 2018, 03:17 |
|
sinsi 02 Oct 2018, 04:14
https://sourceforge.net/projects/bochs/files/bochs/2.6.9/
The file Bochs-2.6.9.exe contains bochsdbg.exe |
|||
02 Oct 2018, 04:14 |
|
rugxulo 02 Oct 2018, 07:00
Ben321 wrote:
DOS has tons of debuggers, but I don't know which will suit your purpose (esp. if you're trying to run graphically using VGA atop Win9x). There were several debuggers mentioned here in another thread (keep scrolling down for my post). |
|||
02 Oct 2018, 07:00 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.