ECE 120 Lecture Notes - Lecture 33: Memory Address, Asian Boxing Council, Ath

56 views3 pages

Document Summary

Lecture 33 - introduction to lc-3 assembly language; the assembly process. ; program to count occurrences of a character in a file. Ld r0, char ; r0 gets character to count. Ld r3, ptr ; r3 is pointer to characters in the file. And r2, r2, #0 ; r2 is counter, initially 0. Next ldr r1, r3, #0 ; r1 gets next char to test. Add r4, r1, #-4 ; test for eot (ascii x04) Brz output ; if done, store the output. Add r1, r1, #1 ; r1

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers