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
Irina-Kira [14]
3 years ago
15

Write, run, and test a MARIE assembly language program.The program should allow the user to input 8 numbers and find the smalles

t and the largest. The program should then print the smallest number and the largest number. Numbers are limited to integers, and can be positive, negative, or zero. You do NOT have to prompt input or label output.
Computers and Technology
1 answer:
STatiana [176]3 years ago
4 0

The language program is as follows:

<u>Explanation:</u>

ORG 100   / Calculation of the maximum

Load First /loading 1st array member

Store Next /address of next pointer,stores

Load Array /Loading 1st element

Store Max /maximum value with 1st element

Loop, Clear

AddI Next /Load next element!

Subt Max /Comparing with the maximum once

Skipcond 000 /If negative ->skip

Jump NewMax /If not negative ->max value

NextIdx, Load Next

Add One /pointer++

Store Next

Load Count /counter--

Subt One

Skipcond 800 /counter is positive ->same proceeding

Jump Print /else - printing the result

Store Count /counter decresed and stored

Jump Loop

NewMax, Clear / new maximum value

AddI Next

Store Max

Jump NextIdx

Print, Load Max

Output

Halt /Terminate program

First, Hex 11E /starting is location 11E(change as per...,as code changes don't forget to change it too)

Next, Hex 0 /next element index (memory location)

Max, Dec 0 /maximum value

Count, Hex 8 / loop counter decreases

One, Dec 1 /Loop stops

say array:

[Dec -5, Dec 15, Dec -17, Dec 20, Dec -23, Dec 12, Dec 130, Dec -12]

You might be interested in
What command is used to verify the condition of the switch interfaces, including the status of the interfaces and a configured I
vovangra [49]

Answer:

Show ip interface brief privileged mode command.

Explanation:

A switch is an intermediate network device for transmitting frames in a network. It operates at the Data-link layer of the OSI model. A Cisco switch uses the Cisco operating system for configuration.

There are three main mode in the switch operating system configuration interface, they are, user, privileged and global configuration mode.

The user mode has few commands vthat runs on it, but are not permanent configuration of the switch. The privileged mode is used mainly for verifying settings in the switch. To check for the IP addresses and status of switch ports, the "show ip interface brief" command is issued in the privileged mode.

All configuration in global mode that are saved in the startup configuration is permanent.

6 0
3 years ago
If we have a priority queue storing approximately million numbers, and the bottom level is "full", which of the following statem
Anna007 [38]

Answer:

The width of the lowest level of the structure is approximately 500,000 is a false statement.

7 0
3 years ago
The language a person speaks is one example of ________________.
adoni [48]

Answer: b. Códigos de comunicación/ comunication codes

Explanation:

5 0
3 years ago
Read 2 more answers
How do u stop loneliness
Ainat [17]

Answer:

U can make urself take parts in activities

5 0
3 years ago
Read 2 more answers
Which are examples of databases? Check all that apply.
Licemer1 [7]

Answer:

a set of stored information related to banking clients' transactions

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom fu
    12·1 answer
  • Matt Cooper of Soggy Bottom Canoe and Kayak Rental refers to concept testing as​ _____ testing.
    7·1 answer
  • What is considered Tim Berners-Lee's greatest contribution to the World Wide Web?
    5·1 answer
  • Sierra owns a small business and handles many responsibilities, from logistics to marketing. She's seen a lot of success with Go
    11·1 answer
  • Professor Gig A. Byte needs to store text made up of the characters A with frequency 6, B with frequency 2, C with frequency 3,
    10·1 answer
  • Create a parent class called Shape with width and height parameters of type double and a function that returns the area of the s
    12·1 answer
  • There are two circular grounds Ground-A and Ground-B. Ground-A is having diameter of 15 meters and Ground-B is having diameter o
    7·1 answer
  • Switched backbone networks:_____.a. always use a ring topology.b. require much more management that do routed backbone networks.
    10·1 answer
  • Examples of the many different ways an app can be used are called use
    6·2 answers
  • I'm pretty sure most of you know squid game, right? Well, are the actors really dying? or is it just CGI or effects? Because it'
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!