Basics of subroutines when programming in asm

Assignment Help Assembly Language
Reference no: EM132194348

Topic - Motorola 68000 Assembly

Purpose
This assignment is designed to familiarize you with the basics of subroutines when programming in ASM.

Requirements
This assignment consists of five major requirements.
1) Developing a solution to the problem below.
2) Ensuring that it assembles and runs correctly using the tools on edoras.
3) Documenting your solutions correctly.
4) Organizing your handin directory and submissions correctly.

Problem
1) For this program you will be creating two .s files (and you will turn in both .s files). You will be building a subroutine in the findmin.s file and a prog4.s file which will be your main. You should ORG your findmin subroutine to $6000.

Your findmin.s subroutine will recursively find the minimum value of an array of values.

You should implement the following psuedocode:

int findmin(int* vals, int count)
{
if(count == 1){
return vals[0];

}else{

int minrest = findmin(vals+1,count-1); if (minrest < vals[0]){
return minrest

}else{

}
}
}

return vals[0]

The basic idea is that the minimum value is either the first element of the list, or it is the minimum value from the rest of list. You should correctly implement the above psuedocode in your findmin.s file.

Your prog4.s file will be your main program. In it, you will define a data array of your choice. Your prog4.s file will print your title, print what the minimum value in the array should be then call the findmin function and print the minimum value that it returns with the provided strings. Program #4, SSS LLL, mascxxxx
Minimum number is: 4
Found Minimum number is: 4

In theory, you could write the program such that it simply prints to correct answer, but you should know that your findmin.s function will be tested independently of your prog4.s and validity of prog4.s will be inspected by hand.

2) You must ensure that your assembler can be assembled and run on rohan using the tools ppasm and bsvc. You may develop your solution on any machine you desire, as long as the final solution works on rohan.

3) Your solution must have a complete comment header as is detailed in your template.s file. During runtime, your solution to section 1 must output a correct title string as the first line printed. It should be in this format: Program #1, Student Name, mascXXXX

Attachment:- Problem.rar

Reference no: EM132194348

Questions Cloud

Maslow and herzberg to the understanding of worker : Describe and compare the basic contributions of Maslow and Herzberg to the understanding of worker motivation.
Maslow and herzberg to the understanding of worker : Describe and compare the basic contributions of Maslow and Herzberg to the understanding of worker motivation.
Identify the operative employment and contract laws : MBA 610 :Explain how the identified facts will help establish the legal rights and/or obligations of the defendant in relation to your company.
What significant historical or cultural event relate to text : Need help writing a 6 page paper from The Aeneid by Virgil and the City of Ladies by Christine de Pizan it must include comparison ex.
Basics of subroutines when programming in asm : Designed to familiarize you with the basics of subroutines when programming in ASM - Ensuring that it assembles and runs correctly using the tools on edoras
Enterprise resource planning system : What could be the possible risks associated with an Enterprise Resource Planning system (ERP)?
What could be done to reduce stress on the job : What could be done to reduce stress on the job and what strategies could be implemented to relieve stress when it does occur?
What is a job position in which you are interested : Based on these descriptions, describe two typical situations someone in this position would face; then write situational interview questions
Write a critique of the delivery technique : Look at the following video. Then write a critique of the delivery technique. Does this speaker, Emma Watson, follow the recommendations given.

Reviews

len2194348

12/15/2018 12:39:54 AM

Example Output Output is being recorded in, outfile 55555 Program #4, SSS LLL, mascxxxx Minimum number is: 4 Found Minimum number is: 4 Additional Details You do not need to do input checking. You can assume that the input value is a valid input.

Write a Review

Assembly Language Questions & Answers

  Bios interrupt int 21 to read current system time

Write a program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen.

  Write a single arm assembly language instruction equivalent

Write a single ARM assembly language instruction equivalent to a function that takes in three strings and checks if any are a substring to one another, if so return 1, if not return 0.

  Given the memory components of the ias computer

Given the memory components of the IAS computer shown below, show the assembly code language for the program, starting at address 08A.

  Validate correct program operation by examining the update

The program should begin by loading the contents of four signed integer operands (A, B, C, and D) from memory into registers.

  Implement assembly language program to find greatest value

Write an assembly language program that will accept two 1-digit numbers (from 0 to 9) from the keyboard, compare the two numbers, and then print out the number of greatest value.

  Arm assembly programming

ARM Assembly Programming- Complete the task1.s code to produce an assembly program that. Waits for the user to enter an integer (this part is already coded).

  Compute number of lines of the address bus

Compute number of lines of the address bus connecting the RAM and the CPU - what is the maximum size in Bytes for RAM.

  Write a program which will give the calendar for 3 mnth

Need the following assignment assembled Using MASM and notepad ++ for windows 8086 processor write a program which will give the calendar for atleast 3 months starting from November 2011 to January 2012 including the days/dates

  Write an arm assembly program to implement a time-of-day

Write an ARM assembly program to implement a Time-Of-Day clock application as specified.

  How you clear memory word on machine with no clr instruction

How can you clear a memory word on a machine with no CLR instruction? For the 16-bit binary number 1001 0101 1100 0011, show the effect of A right shift of 4 bits with zero fill.

  Write assembly language program that write out two strings

Write an Assembly Language program that will write out two strings. The first string will be defined in the data segment.

  Write an assembly language program using the pep8 assembler

Write an assembly language program using the PEP8 assembler (free download) that corresponds to the following C++ program

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd