Title | Hands on Assignment 4 EasyCPU Assembly Language Code Attachments |
---|---|
Author | alex armel |
Course | Computer Systems Architecture |
Institution | University of Maryland Global Campus |
Pages | 2 |
File Size | 56.2 KB |
File Type | |
Total Downloads | 79 |
Total Views | 142 |
nothing much to say about the description but i will see if i have it...
HOA# 4: Easy CPU Assembly Language Code Q1. Click menu, then select. Use this function to step through the assembly code. After the statement in address 11 is first executed, what are the value of registers AX, BX, CX, DX, and PC? Explain the function of AX, BX, CX, DX, and PC. A1: AX-5 BX- 30 CX- 5 DX – 0 PC – 5 AX is the accumulator register and performs most of the arithmetical operations. BX is the base register and it is commonly used to do array operations. CX is the counter register and is used for counter purposes. DX is the data register and is the destination in the I/O operations. BX, CX, and DX are all general-purpose registers that can be used by the programmer. The PC is the program counter, which is the register that oversees saving the address of the memory cell that holds the next statement to be run.
Q2. After statement 11 is first executed, what is the next statement to be executed? Can you tell what is statements 5 through 11 is doing in a simple statement? A2: Statement 5 will be the next statement to be executed. Statements 5 through 11 can be described as program looping
Q3: How many times the statements 5 through 11 were executed before the statement 12 is executed? How can you tell, if you don't step through it? Which register or memory location that you can determine the value without stepping through all codes till exit? Statement 5 and 6 are executed 6 times before statement 12 is executed. I can tell this through a memory known as master programmer in the ENIAC. The unit provides flexible mechanism for nested loops and their sequences. The master programmer has inputs that can be used to jump to the next loop in sequence thus making a number of conditional branching possible. If a number is passed into the single pulse using any reluctant programs, then the master programmer selects one of the two actions disregarding whether it is positive or negative. Statement 5 and 6 are executed 6 times before statement 12 is executed. I can tell this through a memory known as master programmer in the ENIAC. The unit provides flexible mechanism for nested loops and their sequences. The master programmer has inputs that can be used to jump to the next loop in sequence thus making a number of conditional branching possible. If a number is passed into the single pulse using any reluctant programs, then the master programmer selects one of the two actions disregarding whether it is positive or negative. Statement 5 and 6 are executed 6 times before statement 12 is executed. I can tell this through a memory known as master programmer in the ENIAC. The unit provides flexible mechanism for nested loops and their sequences. The master programmer has inputs that can be used to jump to the next loop in sequence thus making a number of conditional branching possible. If a number is passed into the single pulse using any reluctant programs, then the
master programmer selects one of the two actions disregarding whether it is positive or negative. Statements 5and 6 were executed 6 times before statement 12 is executed. You can tell because after executing statement 6 if the result in AX is zero it will jump to statement 12. In statement 5 after execution, it will subtract 1 from AX. Therefore, you can tell that when Register AX is zero it will move to command 12. Since AX is at 5 after statement 6 is executed, you will be able to know that it will take 6 times for statements 5 to 6 to be executed before moving to statement 12....