Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save bug (*solved*)
#17
Darkstar Wrote:
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.
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.

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)