Is My Calculation of PC, AR, DR, AC, and IR Using the STA Instruction Correct?

AI Thread Summary
The discussion revolves around a computer architecture problem involving the STA instruction, which transfers the value in the accumulator (AC) to a specified memory location. Given the initial values of the program counter (PC), accumulator (AC), and memory address, the calculations for the program counter (PC), address register (AR), data register (DR), accumulator (AC), and instruction register (IR) were presented. The calculated values include PC as 101, AR as 055, DR as ABCD, AC as ABCD, and IR as 3055. It is noted that the correctness of these values hinges on the assumption that memory location 100 holds the value 3055.
itech4814
Messages
10
Reaction score
0
I have an issue with my computer architecture problem.

Computer has intial I=0, PC=100, AC=ABCD, Address 055. The content of memory location (055) is 7777. I have to find PC, AR, DR, AC, and IR from that information using the STA instruction.

The STA instruction is M[AR] <-AC

I calculated the following values and believe it is correct...

PC=101;
AR=055;
DR=ABCD;
AC=ABCD;
IR=3055;

Can anyone tell me if this is correct?
 
Computer science news on Phys.org
This looks correct, assuming the memory location 100 contains the value 3055.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top