Jump to content

Debugging

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
deltagods

deltagods

    Newbie

  • Members
  • Pip
  • 1 posts
mov dx,word ptr ds:[43E77Eh]
mov al,byte ptr ds:[0043E788h]
out dx,al
ret

Everytime i run this program, it crashes before it opens, so i clicked debug and it gave me this:
Unhandled exception at 0x00401f34 in *********.exe: 0xC0000096: Privileged instruction.

and the break is at above assembly line.

I want to know what it's doing (the assembly code) and what the error is.

#2
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
Sounds like an awkward approach to error handling, if you ask me.. Couldn't you post your C/C++ code?What compiler are you using?
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#3
Steve.L

Steve.L

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 444 posts
Considering you posted this in the C/C++ section, we're all going to assume this is a C or C++ related issue. You should probably post your source code so we can debug it.

If you're indeed writing in Assembly, you've posted in the wrong forum and this needs to be moved!

#4
Guest_jacob123_*

Guest_jacob123_*
  • Guests
hi to all