Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the Codio Programming Assignment HALIX 1 0 1 . We will demonstrate in class how to do the problems. HALIX 1 0 1 :

Complete the Codio Programming Assignment HALIX101. We will demonstrate in class how to do the problems.
HALIX101: Halix Machine Code Programming Set I
----------------------------------------------
Directions: Write these programs in Halix machine language.
Use symbolic pseudo-code to identify your variables and
the Halix instructions you will be using (e.g., LOAD a for 0301).
Test the program thoroughly, to make sure they really work.
WARNING: All file names must include your class ID, which has 3 parts:
- last name -- LOWER CASE
- first initial -- UPPER CASE
- last 3 digits of FAMU ID
Example: jonesE421
FAILURE TO NAME FILE correctly results in ZERO -- will not be graded!!
----------------------------------------------
1.(add2-zzzz.hlx) Write this program in Halix machine language. NOTE: zzzz is your class ID.
read (A, B)
C = A + B
write (C)
Name your pseudo-code: add2_pseudoHLX
TO RUN: ./halix.run add2.hlx
2.(mult-zzzz.hlx) Write this program, store constant 14
at data memory address 00.
int X =14;
Y =5* X
write Y
Name your pseudo-code: mult_pseudoHLX
Name your program: mult.hlx
3.(algebra-zzzz.hlx) Write this program, use stored values
at data memory addresses 00 and 01.
int A =3
int B =4
C = A*A + A*B - B
write C
Name your pseudo-code:
4. BONUS (count-zzzz.hlx) Write this program.
----------------------------------------------
Due: Week2, Day 2
----------------------------------------------
Write a LOOP to generate the values 1,2,3,4,5.
Name your pseudo-code: count_pseudoHLX-zzzz.txt
============= A LITTLE HELP with pseudo-code ========
int LIMIT =5
int COUNT =0
NEXT:
if (LIMIT == COUNT) goto DONE
COUNT = COUNT +1
write COUNT
goto NEXT
DONE:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

What is networking?

Answered: 1 week ago

Question

Do you suggest Lisa use a PEO? Why?

Answered: 1 week ago