Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Marie Simulator we have do the following homework assignment. Marie is an

ID: 3922677 • Letter: U

Question

Using Marie Simulator we have do the following homework assignment. Marie is an assembly language.

Write a parity checker for the ASCII system. The parity checker should repeatedly execute a loop that performs the following tasks:

1. Ask the user for an input X, which can be any printable ASCII character from Table 1;

2. Output the decimal code of X;

3. Output the total number of 1’s that appears in the binary code of X;

4. Output the parity bit which, when added to the binary code of X, will make the number of 1’s even.

Explanation / Answer

INPUT

STORE x

INPUT

STORE y

circle, LOAD x

Include increase

STORE increase

Stack y

SUBT one

STORE y

SKIPCOND 400

Bounce circle

Stack increase

Yield

Stop

x, Dec 0

y, Dec 0

one, Dec 1

increase, Dec 0

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote