EE 361 LAB 5 HEXADECIMAL AND BINARY MEMORY DISPLAY References: EE361 Text Schedule: Week of Oct 6: Do the lab Week of Oct 13: Last chance to demo the lab. Hand in the assembler listing. 1. Pre-Lab: Review Chapter S5.4 - Monitor Utility Routines. Come to the lab with a source file ready to do the following programming assignment. 2. In the previous lab you programmed the M68HC11 to fill some data buffers and then to add and two's complement the data. You are now to take that program and add the following features. a. Locate BUF1 and BUF2 contiguously in a constant data area in the EVB. That is, BUF2 should immediately follow BUF1 in the EVB pseudo-ROM. Locate BUF3 and BUF4 contiguously in the RAM data area in the EVB. BUF3 should be immediately followed by BUF4. b. Do the arithmetic and negation just as you did in Lab 4. c. Output the string "BUF1:" followed by the bytes in BUF1 as hex values, i.e., if memory contains 01010011 00111000 ..., the display should be BUF1: 53 38 ... (note the space between the values). You must print all 12 data values from BUF1 d. Output a carriage return, line feed to the screen. e. Output the string "BUF2:" followed by the bytes in BUF2 to the screen just like in 2.c. Do the same for BUF3 and BUF4. f. Output a carriage return, line feed. g. Output the string "The binary values in BUF4 are:" followed by a carriage return, line feed. h. Output the first 5 bytes in BUF4 in the format Hex_Value = Binary_Value Hex_Value = Binary_Value ... Where Hex_Value is the hexadecimal display of the data in BUF4 and Binary_Value is a binary display. Each of the five data locations should be on a separate line. A typical output would look like this (you do not have to print what is in parenthesis): BUF1: FF FF 01 ...(These are from BUF1) BUF2: 01 02 01 ...(These are from BUF2) BUF3: 00 01 02 ...(These are from BUF3) BUF4: 00 FE FD ...(These are from BUF4) The binary values in BUF4 are: 00 = 00000000 (First byte in BUF4) FE = 11111110 (Second byte in BUF4) FD = 11111101 (etc) ... 3. Extra Credit. Assume the code for the numbers in BUF4 is unsigned binary. Add the following printout to the program. The decimal values in BUF4 are: 00 = 000 (or 00 = 0) FE = 254 FD = 253 4. Grading: NO MEMO REPORT REQUIRED. Demo (2) 10 points, source code listing for (2) 10 points [you will be graded on your use of labels, equates, orgs and other assembler language features - only one listing per group need be submitted], extra credit (3) 5 points