Test BASIC code:
Code: Select all
1 PRINT "LINE NUMBER TEST"
10 PRINT 10
100 PRINT 100
1000 PRINT 10000
32768 PRINT 32768
63999 PRINT "END";63999
Normally 0x87 is PRINT...0x1e,0x1a,0x0,
0x1,0x87,0x20,0x22,0x4c,0x49,0x4e,0x45,0x20,0x4e,0x55,0x4d,0x42,0x45,0x52,0x20,0x54,0x45,0x53,0x54,0x22,0x0,
0x1e,0x23,0x0,
0xa,0x87,0x20,0x31,0x30,0x0,
0x1e,0x2d,0x0,
0x64,0x87,0x20,0x31,0x30,0x30,0x0,
0x1e,0x38,
0x3,0xe8,0x87,0x20,0x31,0x30,0x30,0x30,0x0,
0x1e,0x44,
0x27,0x10,0x87,0x20,0x31,0x30,0x30,0x30,0x30,0x0,
0x1e,0x50,
0x80,0x0,0x87,0x20,0x33,0x32,0x37,0x36,0x38,0x0,
0x1e,0x62,
0xf9,0xff,0x87,0x20,0x22,0x45,0x4e,0x44,0x22,0x3b,0x36,0x33,0x39,0x39,0x39,0x0,
0x0,0x00
I marked the 1Bit line numbers: 1, 10 and 100... and then?
EDIT: I make the value 10, 100, 1000 and 10000 in blue
So 0x1e,0x38,0x3,0xe8 must be the line number 1000 and 0x1e,0x44,0x27,0x10 must be 10000, isn't it?
EDIT2: And 32768 must be 0x33,0x32,0x37,0x36,0x38
and 63999 -> 0x36,0x33,0x39,0x39,0x39
EDIT3: Mark all 0x87 which must be PRINTs also.
EDIT4: Mark these line numbers:
0x3,0xe8 -> 1000
0x27,0x10 -> 10000
0x80,0x0 -> 32768
0xf9,0xff -> 63999