04-08-2012, 11:35 AM
britlion Wrote::!:boriel Wrote:I'm also wondering which one is faster!
I think they have to be....similar. Given they are byte for byte identical:

Well, don't remember if I did them on my own, or took them from speccy.org (probably from there).
Anyway, getting the next/previous scanline is quite standard: ZX Spectrum have few registers, and usually HL is used for "pokeing" the screen.
So, yes: except for the INC B and attibute flag, this routine is identical. I think I'm going to remove the INC B out of it, and make them independent (separated in their own files). So they can be included by the Fill routine, and so.