04-14-2013, 12:20 AM
Darkstar Wrote:Yes, the print routine (both in the ROM and ZX Basic one) uses MEMBOT to store the char bytes as a temporary buffer (e.g. graphic chars, inverse, Italic, bold effects, etc). This is much faster than heap, as it its done per char and membot is already there.Code:MEM0 EQU 5C92h ; Temporary memory buffer used by ROM chars
This is the same as MEMBOT or 23698 with a length of 30 bytes.
Load routine already uses the heap for loading (one side). Save uses MEMBOT, and I see there is a bug in it (still debugging it).
Why you find hard to refactor it? :? It is easy to use the heap, anyway. I will look for it.