06-29-2012, 09:04 PM
Your code runs OK in my emulator. I don't see any corruption.
If you are adding extra machine code during runtime (por POKES or UDG), you might be corrupting the heap (used mainly for string -alphanumeric- variables). To use UDG use --spectrum, or better ask here the other (best) way to do it.
If you need to load machine code at any location, there are other methods, like using a malloc for reserving such space, or using asm directives with DEFB.
Can you upload a screenshot of the corruption?
If you are adding extra machine code during runtime (por POKES or UDG), you might be corrupting the heap (used mainly for string -alphanumeric- variables). To use UDG use --spectrum, or better ask here the other (best) way to do it.
If you need to load machine code at any location, there are other methods, like using a malloc for reserving such space, or using asm directives with DEFB.
Can you upload a screenshot of the corruption?