My simplest "hello world" assembly code can compile and link. But everytime I tried to run it, just got system error "The program tried to execute an invalid instruction". First, I thought it's because 386 up CPUs run under Protected Mode in default and I need to use DPMI. However, NO NO and it just works on my friends windows98 machine. I tried both TASM2.0 and MASM6.00B, got the same result. If I restart the machine within DOS mode and try to run it, the machine just died. AmKG,Straiph? Do you have any idea? It may be a simple problem, but I really have no idea.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.