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
Masja [62]
4 years ago
8

Consider the following MARIE Code: 100 If, Load X /Load the first value 101 Subt Y /Subtract the value of Y, store result in AC

102 Skipcond 400 /If AC=0 (X=Y), skip the next instruction 103 Jump Else /Jump to Else part if AC is not equal to 0 104 Then, Load X /Reload X so it can be doubled 105 Add X /Double X Store X /Store the new value 107 Jump Endif /Skip over the false, or else, part to the end of if 108 Else, Load Y /Start the else part by loading Y 109 Subt X /Subtract X from Y 10A Store Y /Store Y-X in Y 10B Endif, Halt /Terminate program (it doesn't do much!) 10C X, Dec 12 /Assume these values for X and Y 10D Y, Dec 20 Find the values stored in the following registers after the execution of "Skipcond 400" instruction: [5 marks] (i) PC (ii) IR (iii) MAR (iv) MBR (v) AC
Computers and Technology
1 answer:
Strike441 [17]4 years ago
4 0

The values stored in the registers is calculated by using the following codes:

<u>Explanation</u>:

The program is given below,

100 If, Load / by Load the first value

101 Subt Y / Subtract the value of Y, store result in AC

102 Skipcond 400 / If AC=0 (X=Y), skip the next instruction

103 Jump Else / Jump to Else part if AC is not equal to 0

104 Then, Load X / Reload X so it can be doubled

105 Add X / Double X

106 Store X / Store the new value

107 Jump Endif / Skip over the false, or else, part to the end of if

108 Else, Load Y / Start the else part by loading Y

109 Subt X / Subtract X from Y

10A Store Y / Store Y-X in Y

10B Endif, Halt / Terminate program (it doesn't do much!)

10C X, Dec 12 / Assume these values for X and Y

10D Y, Dec 20

You might be interested in
What are output statement in QBASIC?
Roman55 [17]

Answer:

<h2> hi. here's your answer ....</h2>

<h3>print statement provides output on the screen . it prints the value of the expression on the screen . if the expression list is blank , no character is print . the expression in the list may be numeric or string .</h3><h2>Hope you like it..</h2><h2>(◕ᴗ◕✿)</h2>

5 0
3 years ago
Write a class called MagicSquare, which contains a single method called check that accepts a two-dimensional array as an argumen
ira [324]

Answer:

public class MagicSquare {

   public static void main(String[] args) {

       int[][] square = {

               { 8, 11, 14, 1},

               {13, 2, 7,12},

               { 3, 16, 9, 6},

               {10, 5, 4, 15}

       };

       System.out.printf("The square %s a magic square. %n",

               (isMagicSquare(square) ? "is" : "is not"));

   }

   public static boolean isMagicSquare(int[][] square) {

       if(square.length != square[0].length) {

           return false;

       }

       int sum = 0;

       for(int i = 0; i < square[0].length; ++i) {

           sum += square[0][i];

       }

       int d1 = 0, d2 = 0;

       for(int i = 0; i < square.length; ++i) {

           int row_sum = 0;

           int col_sum = 0;

           for(int j = 0; j < square[0].length; ++j) {

               if(i == j) {

                   d1 += square[i][j];

               }

               if(j == square.length-i-1) {

                   d2 += square[i][j];

               }

               row_sum += square[i][j];

               col_sum += square[j][i];

           }

           if(row_sum != sum || col_sum != sum) {

               return false;

           }

       }

       return d1 == sum && d2 == sum;

   }

}

5 0
3 years ago
____________ describes all the communication channels that allow community-based input, interaction, content-sharing and collabo
vladimir1956 [14]

Answer:

Social media.

Explanation:

The social media is an online platform that provides its users with the web application interface for easy communication. Since it is online, the user must subscribe to a ISP service, create an account on the social media website, and optionally download it's application on the device for easy access.

User accounts are secured with a username and password. The user on the site can share graphic, video, audio and text content, interact with friends etc.

7 0
4 years ago
An employment situation that pays bills but is largely unfilling is
Ilia_Sergeevich [38]

Answer:

Explanation:Any job that a person doesn't particularly like or enjoy.

7 0
3 years ago
What two internetworking devices does xyz schools have to install?
patriot [66]
PC's and LAN spreaders* or internet network extenders.
*if the school uses a LAN network.
7 0
3 years ago
Other questions:
  • Which tool relies on the logged on user's certificate details to encrypt or decrypt files and folders? powershell bitlocker encr
    12·1 answer
  • Pick the correct statements regarding cell references.
    8·2 answers
  • What form of internet access currently uses a technology called 4gb?
    10·1 answer
  • Which phrase best defines communication​
    9·1 answer
  • Write a function (funception) that takes in another function func_a and a number start and returns a function (func_b) that will
    7·1 answer
  • What are the three primary separation of concerns on the client-side of a dynamic web application? (Check all that apply)
    13·1 answer
  • Player casts 'Assassinate' on 'Acolyte of pain'. Acolyte's owner will:
    6·2 answers
  • WHO SAYS BUP ALL THE TIME ​
    8·1 answer
  • There are spoilers that doctor brenner is back in stranger things four and eleven is going back. Do you believe it or no? Make s
    12·1 answer
  • 66 POINTS HELP
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!