Question: Translate the following structure usage into Pep / 9 assembly. #include using namespace std; struct Person { char first, last; int age; } ; int
Translate the following structure usage into Pep assembly.
#include
using namespace std;
struct Person
char first, last;
int age;
;
int main
Person bill;
Person mary;
cout "Bill's age? ;
cin bill.age;
bill.first B;
bill.last Z;
mary.age bill.age;
bill.age; age bill
mary.first M;
mary.last A;
cout "Bill's initial's is bill.first bill.last age is bill.age endl;
cout "Mary's initial's is mary.first mary.last age is mary.age
endl;
return ;
Note: must use local variables, no globals, and use the index register in accessing the structure.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
