Check your program by compiling and running it in Titokone.
; record person: 3 integer fields Id EQU 0 ; relative address within record Age EQU 1 Salary EQU 2
Records Pekka and Jussi have been allocated and initialized from memory, and record Maija has been allocated but not initialized from memory with pseudoinstructions
Pekka DC 3214 ; ID = 3214 P1 DC 35 ; AGE = 35 P2 DC 12345 ; SALARY = 12345 Jussi DC 8888 J1 DC 54 J2 DC 14321 Maija DS 3 ; initial values not defined
Example: If R4 points to the beginning of record Pekka, then Pekka's salary is loaded into register R5 with machine instruction "LOAD R5, Salary(R4)". Labels P1, P2, J1 and J2 are there because Titokone can not handle DC-instructions without label-fields.
Write a ttk-91 symbolic assembly language program that
Check your program by compiling and executing it with Titokone.
Use standard method for building and taking apart activation records, when implementing subroutines and functions. Take care, that all work registers (R0-R5) have the same value at the time of subroutine or function return as they were when the subroutine or function call was made.