assign4_design - Main function:-read from text file-fill in...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Main function:-read from text file-fill in DecMack using functions-populate Frequency-print display (frequency and amount of Instr2() set register d to n Instr3() Add n to register d Instr4() Mult register d by n Instr5() Set register d to value of register n Instr6() Add value of register n to register d Instr7() Mult register d by value in register n Instr8() Set register d to the value in RAM whose address is in register Instr9() Set the value in RAM whose address is in register n to the value in Instr0() Go to the location in register d unless register n contains d, n, *DecMack * DecMack Pseudo code: Main() { fp = fopen (interpreter.txt, r); check if file can be opened if open, continue; if not open, EXIT_FAILURE fread file into temp[ ][ ] (temp[ ][ ] is n x 3 matrix, where n is the number of instruction lines)...
View Full Document

Page1 / 4

assign4_design - Main function:-read from text file-fill in...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online