>> All of which makes me think that it's not really worth while pursuing
>> this development any further. As an ex-programmer (yes, I sometimes
>> did write comments, but in assembler you rather have to)
> Though I have to admit that this was from my youth, an age where you
> consider yourself and your memory immortal.
> DELAY is sort of a misnomer: it does not actually do any delay but
> tells the timing logic how much time a routine spent doing its job.
> Since we are talking about 363373 cycles on a 4MHz machine, the unit for
> "DELAY" would appear to be slices of 0.5ms.
> Scrolling by 16 pixels on a bitmapped display by using
> EX (SP),HL ;19
> DEC SP ;25
> DEC SP ;31
> as the workhorse rather than
> LDI ;16
> LDI ;32
> may seem a bit overoptimizing but it leaves quite more registers
> available for loop control and stride adjustment and only takes 3 bytes
> instead of 4.
> Sorry for the distraction: your remark about the necessity of commenting
> assembly language triggered this memory.
> It turns out that basically the module moving player and monsters
> actually has bonafide comments in it (and it is not timing-critical so
> there are no cycle counts and no call of DELAY). A collaborator
> insisted on them.