Write a LC3 program to count occurrences of a character in a file Character to be input from the keyboard. Result to be displayed on the monitor. Program only works if no more than 9 occurrences are...

1 answer below »





Write a LC3 program to count occurrences of a character in a file Character to be input from the keyboard. Result to be displayed on the monitor. Program only works if no more than 9 occurrences are found.



CSC240CountCharsSP.png


Here is the data I used for the screen print above. It is not the data I will use to grade your project.


.ORIG x4000
.FILL x57 ;W
.FILL x69 ;i
.FILL x6c ;l
.FILL x6c ;l
.FILL x69 ;i
.FILL x61 ;a
.FILL x6d ;m
.FILL x20 ; space
.FILL x54 ;T
.FILL x2e ;.
.FILL x20 ; space
.FILL x4d ;M
.FILL x69 ;i
.FILL x6e ;n
.FILL x6b ;k
.FILL x04 ;EOT
TRAP x25
.END







Rubric





Some Rubric
















































Some Rubric

CriteriaRatingsPts




This criterion is linked to a Learning Outcome

Documentation


















10pts

Full Marks










0pts

No Marks








10pts






This criterion is linked to a Learning Outcome

Input


















10pts

Full Marks










0pts

No Marks








10pts






This criterion is linked to a Learning Outcome

Use of pointer to find data


















20pts

Full Marks










0pts

No Marks








20pts






This criterion is linked to a Learning Outcome

Use of loop to scan data


















20pts

Full Marks










0pts

No Marks








20pts






This criterion is linked to a Learning Outcome

Match UI


















20pts

Full Marks










0pts

No Marks








20pts






This criterion is linked to a Learning Outcome

Correct results


















20pts

Full Marks










0pts

No Marks








20pts



Total Points:100








Answered Same DayNov 20, 2022

Answer To: Write a LC3 program to count occurrences of a character in a file Character to be input from the...

Robert answered on Nov 21 2022
35 Votes
GIVEN THAT :
Char Count in Assembly Language
# Program to count occurrences of a character in a fi
le.Character to be input from the keyboard. Result to be displayed on the monitor. Program only works if no more than 9 occurrences are found.
; Initialization
;
.ORIG x3000
AND R2, R2, #0 ; R2 is counter, initially 0
LD R3, PTR ; R3 is pointer to...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here