Question

Write a parity checker for the ASCII system in MARIE. MARIE is an assembly language. The...

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;

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.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Write a parity checker for the ASCII system in MARIE. MARIE is an assembly language. The...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • NEED HELP WITH THIS . Write a MARIE assembly language program that would simulate calling and exe...

    NEED HELP WITH THIS . Write a MARIE assembly language program that would simulate calling and executing the following C function, as shown below: z = someFunction(a, b); where z, a and b are main( ) program variables, and the values stored in a and b are input by the user. The value stored in z will be output. Did your program execute correctly? This is the code for the function: int someFunction(int x, int y) { return 3 *...

  • Write a program in 68K assembly code that adds an odd parity to each ASCII character....

    Write a program in 68K assembly code that adds an odd parity to each ASCII character. Your code must satisfy the following specifications: 1. Define the following 64 characters in the SRC address.SRC:DC.B 'Computing and Software Systems, University of Washington Bothell' 2. Define the 64-byte space.DST:DC.B 64 3. Read each of the 64 characters, (i.e., each byte) into D0, check the number of 1s in it, set 1 to the MSB with "ORI.B #$80, D0" to create an odd parity,...

  • Soru 7 The ASCII code has 128 binary-coded characters. If a computer generates 125,000 characters per...

    Soru 7 The ASCII code has 128 binary-coded characters. If a computer generates 125,000 characters per second, determine the following: a) The number of bits (binary digits) required per character. b) The number of bits per second required to transmit the computer output, and the minimum bandwidth (Nyquist frequency) required to transmit this signal. c) For single error detection capability, an additional bit (called a parity bit) is added to the code for each character. Calculate your answers for part...

  • Marie Assembly Language

    Assembly (MARIE), how can I output my input variables on exit?I am trying to compose an assembly (MARIE) program to output my input variables **on exit**. I am triggering an exit when . (period) is entered. I am transforming the input, and to later display the new value on exit.Some context, FOO will return SBB when ran through Rot-13However, my program is displaying the output on each iteration of my loop. I am instead wanting to not display anything, until . is entered...

  • Using the MARIE computer assembly language, write a program that computes the following expression: z =...

    Using the MARIE computer assembly language, write a program that computes the following expression: z = a * b * c. The computer will read in the input values a, b, and c from the keyboard and the final result (z) have to be displayed. In addition, every time an input value is read in, it must be displayed on the screen. Remember that the instruction set does not have an instruction to execute multiplication. The program must be tested...

  • please in c language thank u AUT COMP500/ ENSE501: Week 11- Exercise: EXERCISE NAME: Encrypted ASCII...

    please in c language thank u AUT COMP500/ ENSE501: Week 11- Exercise: EXERCISE NAME: Encrypted ASCII The file encrypted.bin contains an encrypted ASCII image Each byte store in the file needs to have its bit flipped to reveal its secret ASCII code. Read in the binary file, one byte at a time. Flip the bits of each byte, and print out the resulting ASCII value to reveal an image Ensure the program output is exactly as described, and that the...

  • What is the machine code that corresponds to the AVR Assembly Language Instruction and r31, rO En...

    What is the machine code that corresponds to the AVR Assembly Language Instruction and r31, rO Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.) What is the machine code that corresponds to the AVR Assembly Language Instruction and r31, rO Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.)

  • Your assignment is to write an assembly language program which read a string and print it in...

    Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for the...

  • What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 E...

    What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.) What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.)

  • 2. Searching a String: Write a MIPS assembly language program to do the following: Read a...

    2. Searching a String: Write a MIPS assembly language program to do the following: Read a string and store it in memory. Limit the string length to 100 characters. Then, ask the user to enter a character. Search and count the number of occurrences of the character in the string. The search is not case sensitive. Lowercase and uppercase letters should be equal. Then ask the user to enter a string of two characters. Search and count the number of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT