2026-07-31 11:35:14 -04:00
|
|
|
10 REM A leading zero is padding, not a radix. The reference selects base 8 for
|
|
|
|
|
20 REM any lexeme starting with 0, so 010 printed 8 and 08 was a parse error --
|
|
|
|
|
30 REM TODO.md section 6 item 10, fixed. Commodore BASIC has no octal literals.
|
|
|
|
|
40 REM 0x is the one prefix that changes the base, and it now reaches the scanner
|
|
|
|
|
50 REM whole: that was section 6 item 15.
|
|
|
|
|
60 PRINT 010
|
|
|
|
|
70 PRINT 08
|
|
|
|
|
80 PRINT 0xff
|
|
|
|
|
90 PRINT 0x10 + 1
|