So, I'm messing around with building BASIC code with Assembly and here is some possibly fun info for you:
I wanted to see how many lines of basic I could cram into the available BASIC RAM.
So, this program:
0 A$="*"
1 PRINTA$;
...
With line 1 repeated as many times as possible, incrementing by 1, resulted in a program with ending line number 4292.
So, when RUN, prints 4292 asterisks, not even filling up one 80x60 screen (4800 characters).
The program ends on byte $9ef1, consuming 38641 bytes (I'm not counting basic's 00 at $0800)
Run time of the ml program to build the BASIC program is imperceptible, basically instantaneous, I could put in some timing code to get a number, but meh
So, I'm messing around with building BASIC code with Assembly and here is some possibly fun info for you:
I wanted to see how many lines of basic I could cram into the available BASIC RAM.
So, this program:
0 A$="*"
1 PRINTA$;
...
With line 1 repeated as many times as possible, incrementing by 1, resulted in a program with ending line number 4292.
So, when RUN, prints 4292 asterisks, not even filling up one 80x60 screen (4800 characters).
The program ends on byte $9ef1, consuming 38641 bytes (I'm not counting basic's 00 at $0800)
Run time of the ml program to build the BASIC program is imperceptible, basically instantaneous, I could put in some timing code to get a number, but meh
Later!
Share this post
Link to post
Share on other sites