Question: I need some help with writing simple programs in assembly language. The instructions and the form required are stated below. 1. Description You are required
I need some help with writing simple programs in assembly language.
The instructions and the form required are stated below.

1. Description You are required to write simple programs in assembly language Hamming Distance Background Hamming distance measures the minimum number of substitutions re- quired to change one string into the other, or the minimum number of errors that could have transformed one string into the other. For example, the distance between 1011 and 1001 is one, and the distance between 2345 and 2333 is two. Requirement You are asked to implement code to calculate Hamming distance bet- ween two strings of numbers with length of two (e.g. 11 and 12) You need to use the console to input number and also output your result to the console, otherwise you cannot be graded. For example, this is the format of calculator: input first num: 30 input second num: 15 input operation (1~4,1:+,2-3:x,4:s): 3 result is: 450 1. Description You are required to write simple programs in assembly language Hamming Distance Background Hamming distance measures the minimum number of substitutions re- quired to change one string into the other, or the minimum number of errors that could have transformed one string into the other. For example, the distance between 1011 and 1001 is one, and the distance between 2345 and 2333 is two. Requirement You are asked to implement code to calculate Hamming distance bet- ween two strings of numbers with length of two (e.g. 11 and 12) You need to use the console to input number and also output your result to the console, otherwise you cannot be graded. For example, this is the format of calculator: input first num: 30 input second num: 15 input operation (1~4,1:+,2-3:x,4:s): 3 result is: 450
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
