I need to move (video) memory on Sam, what's the fastest routine? I expect it must utilize push & pop instructions, since they take just 10T to move a byte, but I am unsure what is exact look of the whole routine. Please can somebody help me?
There is not a single fastest routine for everything. To get the fastest routine it must be tailormade for it's task. For clearing or filling use PUSHes 16T per two bytes For scrolling use PUSH/POPS 28Ts per two bytes For copying use many LDIs 20 T per byte For sprite drawing use LD (HL),nn,INC L 16 T per byte Note that a PUSH qq takes16T and a POP qq takes 12T Edwin

