Search found 3 matches

by jtiai
Tue Aug 27, 2019 7:23 pm
Forum: BASIC programming
Topic: Basic TAP file format
Replies: 4
Views: 6727

Re: Basic TAP file format

\o/ got it working! :) Got some small issues with byte ordering. For some strange reason (I blame English engineers back in the days), header addresses uses MSB format but then actual code lines uses LSB format. Ever heard of consistency..? Also I couldn't figure out why an earth there are 2 random ...
by jtiai
Tue Aug 27, 2019 5:02 am
Forum: BASIC programming
Topic: Basic TAP file format
Replies: 4
Views: 6727

Re: Basic TAP file format

Thank you very much for so illustrative explanation. Apparently it was pure luck that my beginning of the next line addresses were same in both test cases. Once I get my tokenizer working my plan is to build higher lever BASIC abstraction like: if a > 100 then do something do something else endif or...
by jtiai
Mon Aug 26, 2019 8:32 pm
Forum: BASIC programming
Topic: Basic TAP file format
Replies: 4
Views: 6727

Basic TAP file format

Hi all, I'm trying to replicate bas2tap (which is written in quite terrible c++ :D ) and since I'm Python programmer, I write it in Python of course. Only thing I really don't understand is few bytes in tokenized basic line. First word (2 bytes) is a starting address, but starting address of what? I...