![]() |
|
found a bug on draw command - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16) +---- Thread: found a bug on draw command (/showthread.php?tid=379) |
found a bug on draw command - nitrofurano - 2011-10-01 Code: 10 cls:out 254,6this code should draw two lines, not one line and one dot...
Re: found a bug on draw command - boriel - 2011-10-01 Unlike Sinclair Basic, which uses FLOAT type for every variable, when you don't declare vars, ZX BASIC tries to guess the best type for them. It seems it's using Byte types (range -128..127) which could to be causing overflow. Add this line: Code: 11 DIM x1, x2, y1, y2 As IntegerRe: found a bug on draw command - nitrofurano - 2011-10-01 thanks!
|