GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

For the purposes of this question, please assume the followi…

For the purposes of this question, please assume the following declarations have been made. theArray : int8[ 12 ] := [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ];theSize : int8 := 12; Based on the implementation shown above, Pam the Programmer is trying to invoke this procedure.  Which of the following options correctly accomplish this task? A. push( theArray );mov( 0, ECX );mov( theSize, CL );push( ECX );call incrementArray; B. push( theArray );mov( 0, CX );mov( theSize, CL );push( CX );call incrementArray; C. mov( &theArray, EAX );push( EAX );mov( 0, CX );mov( theSize, CL );push( CX );call incrementArray; D. mov( &theArray, EAX );push( EAX );mov( 0, ECX );mov( theSize, CL );push( ECX );call incrementArray; E. mov( &theArray, EAX );push( [ EAX ] );mov( 0, ECX );mov( theSize, CL );push( ECX );call incrementArray; F. mov( &theArray, EAX );push( [ EAX ] );mov( 0, CX );mov( theSize, CL );push( CX );call incrementArray;

Read Details

The next few questions deal with the following program and i…

The next few questions deal with the following program and its implementation.  Some of the code is identified with line numbers that will be referenced in later questions. program StringProgram;#include( “stdlib.hhf” );#include( “cs17string.hla” ); static stringData : dword;procedure xOut( stringData : dword; searchFor : byte ); @nodisplay; @noframe;static dReturnAddress : dword; dECXRegister : dword; dEBXRegister : dword; data : byte := ‘x’; // line 1begin xOut; mov( ECX, dECXRegister ); mov( EBX, dEBXRegister ); pop( dReturnAddress ); pop( CX ); mov( CL, searchFor ); pop( stringData ); push( dReturnAddress ); push( dEBXRegister ); push( dECXRegister ); mov( stringData, EBX ); mov( data, CL );bodyLoop: mov( [ EBX ], CH ); cmp( CH, 0 ); // line 4 je endLoop; cmp( CH, searchFor ); je foundIt; jmp incEBX;foundIt: mov( CL, [ EBX ] ); jmp endLoop;   // line 2incEBX: inc( EBX ); jmp bodyLoop;endLoop: pop( ECX ); pop( EBX );ret();end xOut;begin StringProgram; stdout.put( “Please enter a string to process”, nl );mov( @size( byte ), AL );mov( 80, BL );inc( BL );mul( BL );mov( 0, EBX );mov( AX, BX );malloc( EBX );mov( EAX, stringData );mov( &stringData, EBX );push( EBX );mov( 80, CX );  push( CX );       // line 3call gets;// print the stringstdout.put( “—-> here is the string you entered: ” );push( stringData );call puts;stdout.newln();mov( &stringData, EBX );push( EBX );mov( 0, CX );mov( ‘h’, CL );push( CX );call xOut;stdout.put( “—-> here is the string after calling xOut: ” );mov( &stringData, EBX );push( EBX );call puts;stdout.newln();end StringProgram;

Read Details

Line 4 originally says: mov( [ EBX + ECX ], DH );  // Line 4…

Line 4 originally says: mov( [ EBX + ECX ], DH );  // Line 4 For the purposes of this question only, suppose I decide to rewrite that statement as: mov( [ EBX ], DH );  // Revised Line 4 With this change in place, to make the code loop correctly and complete its task with this revised line 4, what would Line 5 need to be changed to?

Read Details

Which of the following organisms causes chromoblastomycosis?

Which of the following organisms causes chromoblastomycosis?

Read Details

A patient presents with mycotic mycetoma of the foot. Small…

A patient presents with mycotic mycetoma of the foot. Small granules are recovered from pus draining from the infection. What are these granules composed of?

Read Details

Which of the following causes Cave s disease?

Which of the following causes Cave s disease?

Read Details

What the most likely name of the fertilized, corticated ova…

What the most likely name of the fertilized, corticated ova seen in the picture below from a stool sample?  

Read Details

Consistency of the stool may indicate the type of protozoan…

Consistency of the stool may indicate the type of protozoan present. Formed stools are more likely to reveal…

Read Details

One of the Herpesviridae, Epstein-Barr (EB) virus, is the ca…

One of the Herpesviridae, Epstein-Barr (EB) virus, is the causative agent of:

Read Details

The trophozoite of the motile Trichomonas vaginalis organism…

The trophozoite of the motile Trichomonas vaginalis organism measures 7 to 23 microns long and 5 to 15 microns wide.  The recommended treatment of choice for this urogenital infection is…

Read Details

Posts pagination

Newer posts 1 … 37 38 39 40 41 … 86,582 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top