CellulaS's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
45 (0.07 per day)
Joined:
19-June 12
Profile Views:
221
Last Active:
User is offline Feb 11 2014 02:52 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   CellulaS has not set their status

Posts I've Made

  1. In Topic: I Got Question About Jump Instruction and Compare

    Posted 30 Jan 2014

    View PostCellulaS, on 30 January 2014 - 11:22 PM, said:

    i was wondering is this possible or not? to have two CMP

    The first cmp would compare value of user input 1 =1
    cmp eax,1
    je E1
    jl N1

    second cmp would compare value user input 10 = 10
    cmp ebx,10
    je E10
    JL N10


      
            mov eax, Number1
            add eax, Number2
            mov NumSum, eax
            cmp eax,1
            je YES
            jne NO  
            
                    
            invoke dwtoa, NumSum, addr SumString
        
           YES:
           invoke StdOut, addr Message3
           invoke StdOut, addr SumString
    
           NO:
           invoke StdOut, addr Message4
    
    


    When i enter my first number: 1 and the my second number: 1 it give me this Message4 db "1 AND 10 ONLY", 0
    and when i enter my first number :1 my second number: 0 give me Message3 db "Sum of the 2 numbers is : ", 0
    Message4 db "1 AND 10 ONLY", 0 how do i fix this ?
  2. In Topic: I Got Question About Jump Instruction and Compare

    Posted 30 Jan 2014

    i was wondering is this possible or not? to have two CMP

    The first cmp would compare value of user input 1 =1
    cmp eax,1
    je E1
    jl N1

    second cmp would compare value user input 10 = 10
    cmp ebx,10
    je E10
    JL N10
  3. In Topic: I Got Question About Jump Instruction and Compare

    Posted 30 Jan 2014

    View PostCellulaS, on 30 January 2014 - 09:59 PM, said:

    I read most of the documentation on MASM but the our professor does not want us to use "High Level" just yet and want us to learn the basic of invoke and jmp,cmp before we start the high level one my only problem is i still don't know how jmp and cmp works.
  4. In Topic: I Got Question About Jump Instruction and Compare

    Posted 30 Jan 2014

    I read most of the documentation on MASM but the our professor does not want us to use "High Level" just yet and want us to learn the basic of invoke and jmp,cmp before we start the high level one my only problem is i still don't know how jmp and cmp works.
  5. In Topic: Got A Question How Do I Optimize My Code?

    Posted 6 Oct 2012

    Sorry About that copy and pasted code Salem_C it was 4:00 Am when i was coding it i was already sleepy my eye where barely open Thanks about the idea i finally got my code working i do still have some question about the customerOrder[20] how should i implement this.

    Hey Jim was wondering if i could use the int function for my computation
    and using the void function as for my display is this possible ?
    int getData(menuItemType menuList[20])
    {
    
    	menuList[0].name = "Plain Egg";
    	menuList[0].price = 15.45;
    	menuList[1].name = "Bacon and Egg";
    	menuList[1].price = 34.75;
    	menuList[2].name = "ChickenJoy";
    	menuList[2].price = 89.75;
    	menuList[3].name = "French Fries";
    	menuList[3].price = 25.50;
    	menuList[4].name = "Coke Float";
    	menuList[4].price = 35.50;
    	menuList[5].name = "Coke (Large)";
    	menuList[5].price = 25.15;
    	menuList[6].name = "Swirly Bitz";
    }
    

    instead of using int showMenu i would like to use void and having both int function and void function in my code
    void display() { 
      showMenu(menuList);
    }
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

CellulaS hasn't added any friends yet.

Comments

CellulaS has no profile comments yet. Why not say hello?