Hi everyone,
Im in a bit of a pickle!
Just about every register in the Z80 can be saved with the exception of the stack pointer, that is, it can only be written to :/
Does anyone know of a way to save the position that the stack pointer is currently pointing to? For example, a instruction that I would have loved in the Z80 would be LD HL, SP where HL gets loaded with the value of the SP register.
Many thanks guys,
Robin
Im in a bit of a pickle!
Just about every register in the Z80 can be saved with the exception of the stack pointer, that is, it can only be written to :/
Does anyone know of a way to save the position that the stack pointer is currently pointing to? For example, a instruction that I would have loved in the Z80 would be LD HL, SP where HL gets loaded with the value of the SP register.
Many thanks guys,
Robin