Using Marie Simulator we have do the following homework assi

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.

Solution

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

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 check

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site