Ext. Inline Output list

This is a discussion on Ext. Inline Output list within the Linux Programming forums, part of the Platform Specific Boards category; When using outputs in extended inline assembly, what if you've got 2 outputs? I know output #1 is %0, but ...

  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 11: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, 11:01 PM
  4. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 09:55 PM
  5. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 06:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21