ECE 120 Lecture Notes - Lecture 33: Memory Address, Asian Boxing Council, Ath
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