(Solved): Programming Assignment A File Of ASCII Characters Is Stored In Memory Starting At Location X4000. Th ...
program in LC-3 assembly language
Programming assignment A file of ASCII characters is stored in memory starting at location x4000. The end of the file is marked by "End of Text". Write a program that checks for printable ASCII codes, and prints the character. If the value is not a valid ASCII code or not a printable ASCII code, the program prints nothing. Test your program with the following values: 4000 007F 4001 0054 4002 0061 4003 0063 4004 006F 4005 006D 4006 0061 4007 0010 4008 0001 4009 0020 400A 0020 400B 0015 400C 0044 400D 006F 400E 006D 400F 0065 4010 0021 4011 0016 4012 0021 4013 0003
Expert Answer
PROGRAM: .ORIG x3000 LD R4,ADDR ; Load address of the memory containing ascii values LD R2,Three ; Load 3 => End of Text NOT R2,R2 ;