Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-11-2008, 07:20 PM   #1 (permalink)
56Phosphurous
Recruit
 
Join Date: Oct 2008
Posts: 1
56Phosphurous is on a distinguished road
Beginner Question

I have a function which uses %ecx register as a parameter
and a memory variable set to 0.
I only want to jump when the memory variable is greater than or equal
to %ecx, that is when %ecx is less than or equal to MEM. Since MEM is 0, %ecx is greater.
Will this prevent it from jumping when %ecx is greater:

[GNU Assembler, AT&T syntax]

cmpl MEM,%ecx
jle donotchange // jump only when %ecx is less
movl %ecx,MEM
donotchange:
56Phosphurous is offline   Reply With Quote
Reply

Bookmarks

Tags
newbie, x86

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner looking for advice on creating a multi variable web search function. Snot PHP 14 06-13-2008 10:09 AM
Total Beginner Question: Problems with classes markster Standard C, C++ 3 10-08-2007 01:46 PM
Plz help I am beginner in ASP honey MS Technologies ( ASP, VB, C#, .NET ) 0 09-28-2007 06:21 AM
Total beginner, need help with my code! Urgent timeframe cleverest Standard C, C++ 3 03-20-2005 06:44 PM
Beginner - Borland Compiler question Redline Platform/API C++ 1 11-08-2004 02:34 AM


All times are GMT -8. The time now is 03:51 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting