News for hackers. Stuff that matters.
Re:Sol – a sunny little virtual machine (2012) by praptak on Saturday June 06, 2020 @07:58AM (#23438554)
While z80 does have control, it only has jumps to constant addresses. You had to do a push and a ret in order to jump at a calculated address. Or use self-modifying code, although I don't think it was really used.
Re:Sol – a sunny little virtual machine (2012) by geofb on Saturday June 06, 2020 @09:22AM (#23439000)
Could this be done by JP (HL) or JP (IX) or JP (IY)
Re:Sol – a sunny little virtual machine (2012) by praptak on Saturday June 06, 2020 @02:24PM (#23441240)
Ah, I misremembered. The push-ret trick was for things like emulating JP(BC) or pushing multiple addresses to indirectly call a few functions in a row. There was an indirect jump but no indirect call.
Re:Sol – a sunny little virtual machine (2012) by jojobas on Saturday June 06, 2020 @09:43AM (#23439108)
Yes it could. Maybe he meant there's no conditional calculated jump, but then you can combine conditional JP cond.,NN and calculated JP (HL).