News for hackers. Stuff that matters.
Re:Z80 arithmetic: also surprisingly terrible (2018) by timonoko on Monday January 14, 2019 @03:52AM (#18901633)
What you did in really complex arithmetics, was to implement a stack machine. PUSH HL, POP BC etc were guite cheap operations.
Re:Z80 arithmetic: also surprisingly terrible (2018) by vanderZwan on Monday January 14, 2019 @06:31AM (#18902252)
They were also a way to empty a long section of memory faster than LDDR: swap out the stack pointer to the starting address, set HL to zero, then PUSH HL inside an optionally unrolled loop