EquipmentThe following was used to complete this lab:• Windows PC• Dragon 12 Plus TrainerObjectivesPart OneSummaryThis initial section of the lab had instructed us to utilize the D-Bug12 module ofthe MiniIDE software to assemble a given program and record responses to a giventable. This program was designed to interpret a user-given ASCII character inputfrom terminal, and repeat that character
...[Show More]
Equipment
The following was used to complete this lab:
• Windows PC
• Dragon 12 Plus Trainer
Objectives
Part One
Summary
This initial section of the lab had instructed us to utilize the D-Bug12 module of
the MiniIDE software to assemble a given program and record responses to a given
table. This program was designed to interpret a user-given ASCII character input
from terminal, and repeat that character a set number of times in a formatted
manner. Both the number of times it would be repeated, and the formatting of the
outputted text, would later be altered per the lab manuals instructions. The
completion of this parts components was verified by the TA.
Algorithm
We were required to translate the given algorithm into C code to further understand
its process. The following is the code we developed:
Include <stdio.h>
int main(void){
int a, b;
putchar(‘:’);
b=getchar();
for (a=3;a!=0;a--){
putchar(‘ ’);
putchar(b);
} return 0;
}
Observations of Outcomes
Given a list of instructions, we were then asked to record the subsequent address
and contents observed throughout operation. This is seen in Table A1
[Show Less]