| | |
XY position
![]() |
•
•
Join Date: Feb 2008
Posts: 13
Reputation:
Solved Threads: 0
Hi guys,
I am trying set cursor postion in the screen and print a value.But this loop gives me a unlimited loop..can anyone help me to figure out whats wrng.?
I am trying set cursor postion in the screen and print a value.But this loop gives me a unlimited loop..can anyone help me to figure out whats wrng.?
Assembly Syntax (Toggle Plain Text)
mov ecx,5 L1: mov XYPos.X, eax mov XYPos.Y, ebx INVOKE GetStdHandle, STD_OUTPUT_HANDLE mov consoleHandle, eax INVOKE SetConsoleCursorPosition, ConsoleHandle, XYPos mov eax, 3 Call WriteDec inc ebx add edx, 3 loop l1
I don't know how to work with the cursor but looping looks like this...
Assembly Syntax (Toggle Plain Text)
cmp ax,bx ; compares the values jng L1 ; jumps to L1 if ax is not greater (jng=Jump if Not Greater)
Last edited by Alex_; May 5th, 2009 at 4:29 am.
Fundamental law of life:
do{ ThingsToDo+=me.CompleteTask(ThingsToDo); }while(ThingsToDo); Die(me);
Law of the Spirit:
do{ Rebuke(me); }while(!me.Repented); LiveEternal(me);
PM me to know more why i wrote this or what it means.
do{ ThingsToDo+=me.CompleteTask(ThingsToDo); }while(ThingsToDo); Die(me);
Law of the Spirit:
do{ Rebuke(me); }while(!me.Repented); LiveEternal(me);
PM me to know more why i wrote this or what it means.
![]() |
Similar Threads
- How can I get Mouse Position? (VB.NET)
- PHP/MySQL Programmer Position (Web Development Job Offers)
- Image Position (Site Layout and Usability)
Other Threads in the Assembly Forum
- Previous Thread: 16-2- 32
- Next Thread: cipher text idea ?
| Thread Tools | Search this Thread |





