Debugging build code (Intel 8086)

I participate in the Assembly class, focused on the Intel 8086 architecture (all compilation / linking / execution comes from running DOS on win7 via DOS-Box).

I finished programming the last task, but since I have not had time to program any program for the first time, I am now stuck trying to debug my code.

I have visual studio 2010, and I was wondering if there is a built-in function that will help me debug my build code, in particular, I'm looking to track the value of a variable.

Otherwise, instructions pointing to the DOS-Box debugger (and instructions!) Will be highly appreciated. (I think I managed to start debugging the code, but I could not figure out how to do what I was looking for).

+3
source share
3 answers

Yes, indeed, you can use the debugger in VS to learn almost everything. The Irvine site has a section on using the debugger here . You can study registers, use the viewport, etc. It also has asm keyword guidance if you need it.

Edit: as Hans pointed out, if you use 16-bit instead of 32-bit protection, you will need different tools. There are several options listed here .

+2
source

You generate 16-bit code, you need to get into the museum to find the best equipment. Try Borland's , perhaps a debugger is included in Turbo C.

+2

Borland DOS tasm, tlink tdebug.

+1

Source: https://habr.com/ru/post/1753216/


All Articles