This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: clearAll: sets all the variables to 0. set1(d,n): sets R[d] to n set2(d,s): sets R[d] to value of R[s] set3(d,a): sets R[d] to RAM[R[a]] set4(s,a): sets RAM[R[a]] to R[S] add1(d,n): adds n to R[d] add2(d,s): adds R[s] to R[d] multiply1(d,n): multiplies R[d] by n and stores it in R[d] multiply2(d,s): multiplies R[d] by R[s] and stores it in R[d] goto(d,s): if (R[s]!=0), then RAMindex is set to d, and the program continues from the new RAMindex. buildOutput: This will output a table using: N X, where N is a number from 0-9, and X is the number of times Nxx was seen in the program. There will be counters (c1, c2, c3,… c9) that increment each time an instruction of that opcode is called. This should give you a working program....
View Full Document
This note was uploaded on 05/01/2008 for the course EE 312 taught by Professor Shafer during the Spring '08 term at University of Texas.
- Spring '08