Thread: Ext. Inline Output list

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Ext. Inline Output list

    When using outputs in extended inline assembly, what if you've got 2 outputs? I know output #1 is %0, but what is output #2 (%1 is input #1).

    *edit*

    What I want to do is move two numbers (in binary format) into two variables (a and b):

    Code:
    __asm__ ("movl $01100011, %0\n\t"
    	"movl $01000001, #\n\t"
    	:"=r" (a), "=r" (b)
    	);
    I want to do it using binary representation because I've just started my Electronics course and want to & them together - self teaching myself some stuff before we get going

    # is where I don't know what to do BTW.
    Last edited by cboard_member; 09-09-2005 at 10:43 AM.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help! Placement of nodes in a Linked List
    By lostmyshadow in forum C Programming
    Replies: 6
    Last Post: 12-17-2007, 01:21 PM
  2. Recursion Revisited again, and again!
    By clegs in forum C++ Programming
    Replies: 93
    Last Post: 12-08-2007, 08:02 PM
  3. Pleas take a look & give a critique
    By sh3rpa in forum C++ Programming
    Replies: 14
    Last Post: 10-19-2007, 10:01 PM
  4. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  5. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM