IS 139 
 
Assignment 2 
 
 
Instructions 
 
● Assignment should be done by a group of maximum 2 people 
 
● For each of the following questions write the MARIE program, assemble it and test it 
using the provided MARIE simulator. 
 
● Submit a zip file containing the MARIE assembly file(s) for each question 
 
 
Questions 
 
1. Write a MARIE program using a loop that multiplies two positive numbers by using repeated 
addition. For example, to multiply 3 x 5, the program would add 3 five times, or 3 + 3 + 3 + 3 + 3  
 
2. Write a MARIE assembly program to accomplish the following task 
 
if x == y then 
    x = x * 2; 
else 
    y = y ­ x; 
   
    where x & y can be any value. e.g. x = 15 & y = 20 
 
3. Write a MARIE assembly program that adds the first ten numbers from 1 to 10  
i.e. 1 + 2 + 3 + 4 + 5 + 6 +7 + 8 + 9 + 10 
 
4. Write a MARIE assembly program that subtracts two numbers given as input from the 
keyboard and displays the result as output. 

More Related Content

DOC
Md university cmis 102 week 3 hands
PDF
7th math c2 -l61
PDF
C activities
PDF
Course project solutions 2018
DOC
List of programs for practical file
PDF
Array sheet
PPTX
Impact of error
DOCX
Exercises
Md university cmis 102 week 3 hands
7th math c2 -l61
C activities
Course project solutions 2018
List of programs for practical file
Array sheet
Impact of error
Exercises

What's hot (7)

PPT
Tutorials--Modeling Integers Using Algebra Tiles
DOCX
Dti2143 dam31303 lab sheet 5
PPT
test(3)arithmetic in c
PDF
A story about my journey in the land of programming practices
PDF
Cs8261 cp lab syllabus
PDF
Unit 1 algorithms practise
PDF
201707 CSE110 Lecture 17
Tutorials--Modeling Integers Using Algebra Tiles
Dti2143 dam31303 lab sheet 5
test(3)arithmetic in c
A story about my journey in the land of programming practices
Cs8261 cp lab syllabus
Unit 1 algorithms practise
201707 CSE110 Lecture 17
Ad

Similar to IS 139 Assignment 2 (20)

PPTX
Lecture 7.pptx
PDF
Programming Fundamental handouts
PDF
Course project solutions 2019
DOC
Md university cmis 102 week 4 hands on lab new
DOC
Md university cmis 102 week 4 hands on lab new
DOC
Md university cmis 102 week 4 hands on lab new
PDF
Year 2 dsa c++ exercises on user defined functions
DOCX
Important C program of Balagurusamy Book
PDF
Arithmetic instructions
PDF
A01
PPTX
Introduction to computer_lec_04_fall_2018
PDF
2.3 notes b
PDF
Lesson7 incdecoperators
PDF
PDF
Little book of programming challenges
PPTX
C programming assignment presentation file
DOCX
COMP 122 Entire Course NEW
PPTX
Course work Questions and answers .pptx
PPTX
Lecture 1: basic syntax
DOCX
If switch structure
Lecture 7.pptx
Programming Fundamental handouts
Course project solutions 2019
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
Year 2 dsa c++ exercises on user defined functions
Important C program of Balagurusamy Book
Arithmetic instructions
A01
Introduction to computer_lec_04_fall_2018
2.3 notes b
Lesson7 incdecoperators
Little book of programming challenges
C programming assignment presentation file
COMP 122 Entire Course NEW
Course work Questions and answers .pptx
Lecture 1: basic syntax
If switch structure
Ad

More from wajanga (20)

PPTX
IS 151 Lecture 3
PPTX
IS 151 Lecture 2
PPTX
IS 151 Lecture 1
DOC
IS 151 Outline 2014
PDF
IS 139 Assignment 3
PPT
IS 139 Lecture 7
PPT
IS 139 Lecture 6
PPTX
IS 139 Lecture 5
PPT
IS 139 Lecture 4
PDF
IS 139 Assignment 1
PPT
IS 139 Lecture 3
PPTX
IS 139 Lecture 1
PPT
IS 139 Lecture 2
PPTX
IS 151 Lecture 11
PPTX
IS 151 Lecture 10
PPTX
IS 151 Lecture 9
PPTX
IS 151 Lecture 8
PPTX
IS 151 Lecture 7
PPTX
IS 151 Lecture 6
PPTX
IS 151 Lecture 6
IS 151 Lecture 3
IS 151 Lecture 2
IS 151 Lecture 1
IS 151 Outline 2014
IS 139 Assignment 3
IS 139 Lecture 7
IS 139 Lecture 6
IS 139 Lecture 5
IS 139 Lecture 4
IS 139 Assignment 1
IS 139 Lecture 3
IS 139 Lecture 1
IS 139 Lecture 2
IS 151 Lecture 11
IS 151 Lecture 10
IS 151 Lecture 9
IS 151 Lecture 8
IS 151 Lecture 7
IS 151 Lecture 6
IS 151 Lecture 6

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
August Patch Tuesday
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PPTX
The various Industrial Revolutions .pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
DOCX
search engine optimization ppt fir known well about this
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Architecture types and enterprise applications.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
sustainability-14-14877-v2.pddhzftheheeeee
Tartificialntelligence_presentation.pptx
August Patch Tuesday
Final SEM Unit 1 for mit wpu at pune .pptx
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Enhancing emotion recognition model for a student engagement use case through...
A novel scalable deep ensemble learning framework for big data classification...
Web Crawler for Trend Tracking Gen Z Insights.pptx
The various Industrial Revolutions .pptx
Hindi spoken digit analysis for native and non-native speakers
search engine optimization ppt fir known well about this
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
NewMind AI Weekly Chronicles – August ’25 Week III
Benefits of Physical activity for teenagers.pptx
Architecture types and enterprise applications.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Group 1 Presentation -Planning and Decision Making .pptx
sustainability-14-14877-v2.pddhzftheheeeee

IS 139 Assignment 2