1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
katrin [286]
3 years ago
11

Assembly (Procedure and Conditional Processing). For the following program, what are outputs for register EAX, EBX, ECX, and EDX

in decimal? include Irvine32.inc .code main proc mov eax, 10 mov ebx, 10 mov ecx, 10 mov edx, 10 call proc1 call DumpRegs exit main endp proc1 proc uses ebx ecx L1: add eax, 1 add ebx, 1 loop L1 cmp ebx, 20 jne return mov edx, 20 return: ret proc1 endp end main EAX = ____________________ EBX = ________________________ ECX = ____________________ EDX = ________________________
Computers and Technology
1 answer:
marta [7]3 years ago
7 0

Answer:

See explaination

Explanation:

Given data:

.code main

mov eax, 10 means eax=10,(now eax register contain 10)

mov ebx ,10 means ebx=10

mov ecx, 10 means ecx=10

mov edx, 10 means edx =10

call proc1 measn invoke the proc1 function

call DumpReg means Display the register

exit main endp means main function closed

///// now proc1 function part'

L1 means it's start a scope as loop

add eax, 1 means increament one or eax=eax+1 => 11 ( because eax was 10 )

add ebx , 1 means ebx=ebx+1 =>11

Loop L1 means this is loop

cmp ebx ,20 compare ebx with 20

jne return means if ebx==20 then jump onto return statement else go ahead

mov edx 20 means edx=20

retunrn : ret proc1 endp endp main means when return statement come it will end then proc1 and redirect to main function;

after exicute this code :

EAX contain 11

EBX contain aslo 11

ECX contain 10

EDX contain 20

You might be interested in
I really want to know the best way to deal as much heart as possible plz tell me
Natasha2012 [34]

Answer:

Set aside time every day for doing something that feels positive, whether that’s journaling, meeting up with a close friend, or watching a show that makes you laugh. Scheduling in moments that bring you joy is vital for healing a broken heart. It’s important to talk about your feelings with others and not numb yourself out.

Explanation:

7 0
3 years ago
Read 2 more answers
The Mark Table of Contents Entry option is used for marking nonheading text for the table of contents. the options are manually
enyata [817]

Answer:number 1

Explanation:asian culture

5 0
3 years ago
Read 2 more answers
The IntList class contains code for an integer list class. Study it; notice that the only things you can do are: create a list o
torisob [31]

Explanation:

public class Int_List

{

protected int[] list;

protected int numEle = 0;

 

public Int_List( int size )

{

list = new int[size];

public void add( int value )

{

if ( numEle == list.length )

{

System.out.println( "List is full" );

}

else

{

list[numEle] = value;

numEle++;

}

}

public String toString()

{

String returnStr = "";

for ( int x = 0; x < numEle; x++ )

{

returnStr += x + ": " + list[x] + "\n";

}

return returnStr;

}

}

public class Run_List_Test

{

public static void main( String[] args )

{

 

Int_List myList = new Int_List( 7 );

myList.add( 102 );

myList.add( 51 );

myList.add( 202 );

myList.add( 27 );

System.out.println( myList );

}

}

Note: Use appropriate keyword when you override "tostring" method

8 0
3 years ago
In microsoft word, when you highlight existing text you want to replace you are
RSB [31]
You are changing the word
8 0
3 years ago
Whoever understands this first and replies will be the brainliest.<br><br><br><br> Road work ahead?
Scorpion4ik [409]

I SURE HOPE IT DOES (this is the best vibe if you dont get this you are an uncultured swine)

7 0
4 years ago
Read 2 more answers
Other questions:
  • What is Administrator windows 10
    8·1 answer
  • What is not true about contracts?
    12·2 answers
  • Why is distance learning better
    12·2 answers
  • You need to subnet a network that has 5 subnets, each with at least 16 hosts. Which classful subnet mask would you use?A. 255.25
    12·1 answer
  • Number are stored and transmitted inside a computer in the form of​
    6·1 answer
  • What do computer programs generally try to solve and how? A) Computer programs generally try to solve a well-defined problem usi
    14·1 answer
  • WAFL (write-anywhere file layout) Select one: a. is a distributed file system b. is a file system dedicated to single user opera
    6·1 answer
  • How should you schedule a meeting with someone in another time zone?
    7·1 answer
  • Goals of the project objectives
    6·1 answer
  • Suppose that you have the following definitions:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!