answersLogoWhite

0


Best Answer

I have a problem on my PC,when running the BorlandC program. It appears like this

Borland C++ for DOS

The NTVDM CPU has encountered an illegal instruction.

CS:c000 IP:ed31 OP:8d e0 30 8e Choose 'close 'to terminate the aplication

Please if someone of you solve such problems help me.Thanks a lot.

New and Perfect Answer:

I have tried it and it really works 100% surity.

download DosBox for windows and then open it . in it type the following code:

z:\> mount c:\TC

z:\>c:

c:\>cd BIN

c:\BIN>tc

the tc ide will appear in which set the Options->Directories : change directory path to C:\Include and C:\Lib instead of C:\TC\Include and C:\TC\Lib and click on OK.

now when using graphics in initgraph(&g,&h,"C:\\BGI"); here C:\\BGI is used instead of C:\\TC\\BGI.

You will have to always make above settings whenever dosbox will be used.

And also now is you compile and run your program through Ctrl + F9 and if dosbox closes then you should use F4 or F8 keys. F8 line by line compiling and F4 compiles till cursor position , if F4 is used then place cursor position on the closegraph() code and after seeing the output you can use Ctrl+F9 or F8 function keys to complete the program execution.

and + if you are not working with graphics.h then there is a much easy solution for this find tc.exe go to it's property(not shortcut of TC.exe) in property there should be a tap called "screen" .. check "usage" to "window" rather than "full screen" .. :) .. now start it .. it will open in window mode .. then press ALT + Enter to get full screen .. it works for all programming but with graphics.h ..it may or may not work :(

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The NTVDM CPU has encountered an illegal instruction?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When you run c plus plus graphics program it show error message ntvdm CPU has encountered an illegal instruction?

That's sad. You should try DOSBOX, it's a bit better DOS-emulator.


How do you solve error c plus plus ntvdm CPU illegal?

Use the debugger to locate the error.


Why does ntvdm exe keeps cloning itself and eating up CPU how can you get it to stop cloning itself?

It happens if you are using 16 bit applications.


Role of instruction pointer in 8086?

Its role is to point to the next instruction to be executed in the CPU. It always points to the next instruction to be executed in the CPU


What is IR in microprocessor?

it's instruction pointer register it's in cpu and it holds the instruction which the cpu fetching it from memory


Describe the function of the instruction set of a CPU?

They tell the CPU where to find the data, when to read it, and what to do with it.


What is considered a function of the instruction set for the CPU?

The Functions of the instruction set is to instruct All CPU's with a set of instructions: Tells the CPU where to find data When to read the data What to do with the data. Hope that helps Don


What is the instruction set in CPU?

It is a system of coded numbers that when read by the CPU control unit are interpreted as commands for the various operations it can perform. Each different type of CPU has a differently coded instruction set.


Which CPU's have the SSE4 instruction set?

Planned x86 processors will have the SSE4 instruction set.


Temporarily holds data and instruction as the CPU processes them?

Random Access


What factor help in deciding the length of instruction format?

the number of bits required to represent an instruction of a cpu is known as length of the instruction or known as instruction.


What is the term for a CPU's complete set of commands?

The entire set of instuctions that a CPU can execute is known as the CPU INSTUCTION SET.