$30
BBM 103: Introduction to Programming Laboratory I
Quiz 1
Subject : HMMM
You will use submit system for submission
Introduction
What is HMMM
HMMM (Harvey Mudd Miniature Machine) is a 16-bit, 23-instruction simulated assembly
language with 28=256 16-bit words of memory. HMMM is written in python, and it is
intended as an introduction to assembly coding in general. Programs written in HMMM
consist of numbered lines with one instruction per line, and comments.
Gravity Calculator
If we want to calculate gravity, following equation is used.
Gravity Calculator:
f inalP osition =
gravity ∗ f allingT ime ∗ f allingT ime
2
+ (1)
initialV elocity ∗ f allingT ime + initialP osition
1
Fall 2021
BBM 103: Introduction to Programming Laboratory I
Problem Statement
Write a program in Hmmm assembly language that calculates gravity. Gravity constant
should be equal to −10. Initial position, initial velocity and falling time should be taken as
input and the output of the program should be the final position.
Example:
Input: fallingTime=5 initialPosition=0 initialVelocity=0
Output: -125
Notes
• Do not miss the submission deadline.
• Save all your work until the quiz is graded.
• You can ask your questions via Piazza and you are supposed to be aware of everything
discussed on Piazza.
• You can find detailed documentation on Hmmm at https://www.cs.hmc.edu/
˜cs5grad/cs5/hmmm/documentation/documentation.html
• You must submit your work with the file hierarchy as stated below:
→ <quiz1.hmmm>
2