![]() |
Comments inside ASM blocks (*solved*) - 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: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: Comments inside ASM blocks (*solved*) (/showthread.php?tid=566) |
Comments inside ASM blocks (*solved*) - einar - 08-20-2013 Trying to compile the sub-routine below... Code: sub test() ...produces this error message: Quote:C:\...\zxbasic-1.3.0s1022\dist>zxb test.bas However the following sub-routine compiles just fine: Code: sub test() This other sub-routine also compiles just fine: Code: sub test() ZX BASIC parser is obviously misunderstanding those two apostrophes in the first case. Re: Comments inside ASM blocks - boriel - 11-22-2013 einar Wrote:Trying to compile the sub-routine below...This is, again, another corner case for the ZXBASIC preprocessor when entering an ASM context. A' is also a register (hence the confusion). Let me check it... Re: Comments inside ASM blocks - boriel - 11-23-2013 I think I finally fixed it. Please, download the Latest version and check if it works ok now. :| |