So, as the question states, what is the purpose of CS and IP registers in intel's 8086
I found this explanation:
Code segment (CS) is a 16-bit register containing address of 64 KB segment with processor
instructions. The processor uses CS segment for all accesses to instructions referenced by
instruction pointer (IP) register. CS register cannot be changed directly. The CS register
is automatically updated during far jump, far call and far return instructions.
and this for IP:
Instruction Pointer (IP) is a 16-bit register.
I don't really understand what this basically means, so if someone could provide a more "vivid" explanation, that would be great :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…