Quick and dirty: data = (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,...
Yes sometimes it's difficult ;) My Problem is that i what to parse it in python and i have split it by 0x00... But that's the wrong idea... I have also "convert" the code from above in a clearer form: 0x1e,0x1a,0x0,0x1,PRINT "LINE NUMBER TEST",0x0, 0x1e,0x23,0x0,0xa,PRINT 10,0x0, 0x1e,0x2d,0x0,0x64,...
word PTR_NEXT_LINE word LINE_NUM byte[] TOKENISED_DATA byte $00 End of line delimiter 'Words' are 16-bit values, two bytes, so the thing is as follows: 0x1e12 Memory address of next line 0x000a Line number 10 ...FOR I = 1 TO 10... 0x0 << End of line delimiter 0x1e29 memory address of the next line ...
Now i try to handle the line numbers in the right way. But no success yet. Test BASIC code: 1 PRINT "LINE NUMBER TEST" 10 PRINT 10 100 PRINT 100 1000 PRINT 10000 32768 PRINT 32768 63999 PRINT "END";63999 This is the raw data block of the code: 0x1e,0x1a,0x0, 0x1 , 0x87 ,0x20,0x22,0x4c,0x49,0x4e,0x45...
Im not really a hardcore-hardware-hacker... So just a idea: Is it possible to emulate a dragon floppy controler+drive with a Raspberry Pi ? Connect the existing GPIO ports to the cartridge ? Maybe combine with this: http://archive.worldofdragon.org/index.php?title=Dragon_I/O_Cartridge_%28Rink%29 ? I...
Thx for info. I have implement this, now, here: https://github.com/jedie/python-code-snippets/commit/57f0e3c92b39faddead084c3baa8f6eb054ec21b#L1R511 So the complete code looks now like this: 10 PMODE 4,1:SCREEN 1,1:PCLS 5:COLOR 0,5 20 FOR I = 1 TO 1000 30 X=X+L*SIN(R):Y=Y+L*COS(R) 40 IF X<-128 OR X>...