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.

inderjeet singh

Recommended Answers

All 2 Replies

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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.