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

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

>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.

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

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 :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.