944,052 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 6564
  • C++ RSS
Jan 24th, 2005
0

How can i use inline assembly in VC++ editor

Expand Post »
HI,

I m using VC++ editor for C programming and i want to move cursor one row up in my terminal window.

I have tried interrupt using Inline assembly but when i execute the programm Error comes "access voilation " .

I m using Windows XP OS.

What should should i adopt to achieve my goal.

Thx
inderjeet singh
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
inderjeet singh is offline Offline
1 posts
since Jan 2005
Jan 24th, 2005
0

Re: How can i use inline assembly in VC++ editor

>What should should i adopt to achieve my goal.
Use the Win32 API instead of trying to break your computer with ASM. Specifically, look up SetConsoleCursorPosition on MSDN.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jan 25th, 2005
0

Re: How can i use inline assembly in VC++ editor

With assembly bear in mind 99% of asm tutorials / examples are 16 bit code NOT to be compiled on a 32 bit setting. This is the single most common cause of inline asm errors and be very suspicious of code containing interrupts, as 32 bit compilation requires much different asm code overall
Reputation Points: 16
Solved Threads: 6
Posting Pro in Training
1o0oBhP is offline Offline
445 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Linux compilers
Next Thread in C++ Forum Timeline: C++ quiz .. test your knowlegde (and help me in the process!)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC