Weird label handling

hippy

Technical Support
Staff member
Following up on my label truncation testing ...

Programming Editor 4.1.4, PICAXE-18X, 8MHz, 16 GOSUB's

- SYMBOL a2345678901234567890123456789012x = 1
- SYMBOL a2345678901234567890123456789012y = 2
- b0 = a2345678901234567890123456789012x
- END

Compiles okay, "16 bytes out of 2048"

- SYMBOL a2345678901234567890123456789012x = 1
- SYMBOL a2345678901234567890123456789012y = 2
- b0 = a2345678901234567890123456789012y
- END

"Unknown symbol a2345678901234567890123456789012y" given for the second line ( the SYMBOL definition )

- SYMBOL a2345678901234567890123456789012x = 1
- SYMBOL a2345678901234567890123456789012y = 2
- b0 = a2345678901234567890123456789012x
- b0 = a2345678901234567890123456789012y
- END

Gives "Unknown symbol a2345678901234567890123456789012y" given for the first assignment line ( b0 = .....x )

- SYMBOL a23456789012345678901234567890123x = 1
- SYMBOL a23456789012345678901234567890123y = 2
- END

Compiles okay, alleges, "0 bytes of 2048" used.

- SYMBOL a234567890123456789012345678901234x = 1
-SYMBOL a234567890123456789012345678901234y = 2
- END

"Illegal character ('^@'(0x00))"
 

Technical

Technical Support
Staff member
Labels are limited to 31 chrs, anything above thsi just confuses the compiler to give unexpected results. We will look at adding an error message.
 
Top