Non sense results (or error) working with defm strings - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: Non sense results (or error) working with defm strings (/showthread.php?tid=514) |
Non sense results (or error) working with defm strings - wilco2009 - 12-15-2012 Just to save space, I'm coding some strings in inline Asm sentences, and I found a bug. If you execute the following code: Code: Dim x as byte = 1 If you delete the lines: Code: defm "HASTA MUCHO TIEMPO DESPUES" I think the bug have relation with the memory reserved by the asm lines, because deleting or adding lines you get differents errors, sometimes you get an "Out of Memory" message or shows the correct result but paper white instead black. Re: Non sense results (or error) working with defm strings - wilco2009 - 12-17-2012 I`m sorry. Previous code have an evident bug. I writted the data in first position and the program was running the data as instructions. Due to it the behaviour was inpredictible. Re: Non sense results (or error) working with defm strings - boriel - 12-17-2012 wilco2009 Wrote:I`m sorry. Previous code have an evident bug.I've been rather busy, but glad to see you fixed it. 8) I usually put a STOP or END just before the ASM to avoid this problem (many other users have this problem before ). |