Which registers change instruction during fetch and execute period?

Thread Starter

thexy

Joined Dec 13, 2015
130
The rules are in the data sheets or manual for the device you are looking at. Have you been able to locate one? If so, best you post a link to it so we can guide you where to look.

If not, google is your friend. Find one you like and post us the link.
 

Thread Starter

thexy

Joined Dec 13, 2015
130
The rules are in the data sheets or manual for the device you are looking at. Have you been able to locate one? If so, best you post a link to it so we can guide you where to look.

If not, google is your friend. Find one you like and post us the link.
At the end you'll see instructions. Can you please explain me how with help of this can I do this example? It's probably easier with this but...
 

Attachments

hp1729

Joined Nov 23, 2015
2,304
I have sheets for MC8.
Why affter ADD 81h value is 81h, why it's not 00FFh+81h?
At the end you'll see instructions. Can you please explain me how with help of this can I do this example? It's probably easier with this but...
Page 151 of the book mentions the MOV HL, dat_16 instruction. Move to register pair H and L a 16 bit data value in the two bytes following the instruction. The next byte is the lower 8-bits and goes to L. The following byte goes to H.
 

djsfantasi

Joined Apr 11, 2010
9,237
I have part of program in MC8-Assembler (The CPU of the MC8 is formed by the 8bit processor Zilog Z80 of the Training Board) What value is going to have flag after execution and what value is being found in register? Values before execution are given in first collum.

Can someone do it and write detailed explanation?
Try to fill out the table first, at least the contents of the two registers, A and HL. Do you understand the code is using those two registers? Hence, you are NOT adding 81h to FFh? Don't worry about the flags - just fill out the ten values for each step. If you need to refer to a Z80 datasheet to understand what the op codes do, please do so before replying Post the completed table for us to see.
 

Thread Starter

thexy

Joined Dec 13, 2015
130
So I would fill this table like this

REGISTER A REGISTER HL
FFh 00FFh
FFh 01FFh
FFh 001FFh+81h
001FFh+81h 001FFh+81h
001FFh+81h 001FFh+81h-02h
 
Top