stevesmythe
Senior Member
I have been playing with Blockly for Picaxe for a while and have come across some weird behaviour when compiling and wondered whether there are some limitations as to the maximum number of blocks or embedded loops in a program.
An example is a program that I have (with a lot of nested loops) which compiled OK until I added a couple more blocks. Then, when I compiled it, the converted BASIC code put the main: section right at the bottom of the program and never gets to it as it runs a different subroutine first. If I manually cut and paste that section of code back up to the top of the program, it runs correctly.
I have looked in Picaxe Manual 5 but I don't see anything about maximum code size or nested loops, or number of subroutines.
An example is a program that I have (with a lot of nested loops) which compiled OK until I added a couple more blocks. Then, when I compiled it, the converted BASIC code put the main: section right at the bottom of the program and never gets to it as it runs a different subroutine first. If I manually cut and paste that section of code back up to the top of the program, it runs correctly.
I have looked in Picaxe Manual 5 but I don't see anything about maximum code size or nested loops, or number of subroutines.