Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a parity checker for the ASCII system in MARIE. MARIE is an assembly language. The parity checker should repeatedly execute a loop that performs

Write a parity checker for the ASCII system in MARIE. MARIE is an assembly language. 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 1image text in transcribed

2. Output the decimal code of X

3. Output the total number of 1s 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 1s even.

64100 0000 96 110 0000 65 100 0001 97 110 0001 34 010 0010 B 66 100 0010 b 98 110 0010 # | 35 | 010 0011 | C | 67 | 100 0011| c | 99 |110 0011 100 110 0100 37 010 0101 E69 100 0101 e 101 110 0101 &38010 0110 F70 100 0110f102 110 0110 39 010 0111G 71100 0111g 103 110 0111 40010 1000 72 100 1000 h104 110 1000 ) 41 ?101. 331. '/3.H30?.00? Si, IWS 30,30,0 30,@6D30, 33010 0001 A 010 0100 D 100 0100 1 105 110 1001 106 110 1010 107 110 1011 108 110 1100 45 | 010 11011 M | 77 | 100 1101| m | 109 | 110 1101 110 110 1110 | 47 | 010 1111 | O | 79 | 100 ????| o | III | 10 ???? 100 1010 +43 010 1011 K 75 100 1011k1 100 1100 46010 1110N 78 100 1110n 101 0000 81101 0001 83101 0011 85 101 0101 49011 0001 000 113 111 0001 003 250 011 0010R 82 101 0010 r114 111 0010 115 111 0011 116 111 0100 117 1110101 6 | 54 | 011 0110| v | 86 | 101 01101 v | 1181 111 0110 87 101 0111 W 119 111 0111 120111 1000 011 0011 S 011 0100 T 755011 0111 56 | 011 10001 X 011 1001 Y 011 1010 Z 88101 1000 89 101 1001 90 101 1010z 122 111 1010 59011 101191 101 1011 123 111 1011 Table 1: Printable ASCII characters 012345678901 0000000011111111000000001 1111111c 78901234567890123 B 000000000000000000000000 0000000 567890123456789 --.-/0123456789 .. 64100 0000 96 110 0000 65 100 0001 97 110 0001 34 010 0010 B 66 100 0010 b 98 110 0010 # | 35 | 010 0011 | C | 67 | 100 0011| c | 99 |110 0011 100 110 0100 37 010 0101 E69 100 0101 e 101 110 0101 &38010 0110 F70 100 0110f102 110 0110 39 010 0111G 71100 0111g 103 110 0111 40010 1000 72 100 1000 h104 110 1000 ) 41 ?101. 331. '/3.H30?.00? Si, IWS 30,30,0 30,@6D30, 33010 0001 A 010 0100 D 100 0100 1 105 110 1001 106 110 1010 107 110 1011 108 110 1100 45 | 010 11011 M | 77 | 100 1101| m | 109 | 110 1101 110 110 1110 | 47 | 010 1111 | O | 79 | 100 ????| o | III | 10 ???? 100 1010 +43 010 1011 K 75 100 1011k1 100 1100 46010 1110N 78 100 1110n 101 0000 81101 0001 83101 0011 85 101 0101 49011 0001 000 113 111 0001 003 250 011 0010R 82 101 0010 r114 111 0010 115 111 0011 116 111 0100 117 1110101 6 | 54 | 011 0110| v | 86 | 101 01101 v | 1181 111 0110 87 101 0111 W 119 111 0111 120111 1000 011 0011 S 011 0100 T 755011 0111 56 | 011 10001 X 011 1001 Y 011 1010 Z 88101 1000 89 101 1001 90 101 1010z 122 111 1010 59011 101191 101 1011 123 111 1011 Table 1: Printable ASCII characters 012345678901 0000000011111111000000001 1111111c 78901234567890123 B 000000000000000000000000 0000000 567890123456789 --.-/0123456789

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_2

Step: 3

blur-text-image_3

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions