But to get a bit on-topic, here is a Basic-program:
10 poke 53280,0:poke 53281,0
20 s$="acgt"
30 c$=chr$(28)+chr$(30)+chr$(31)+chr$(158)
40 r=1+int(rnd(0)*4)
50 print mid$(c$,r,1);mid$(s$,r,1);
60 goto 40
Jan van den Broek <balglaas@dds.nl> writes:
But to get a bit on-topic, here is a Basic-program:
10 poke 53280,0:poke 53281,0
20 s$="acgt"
30 c$=chr$(28)+chr$(30)+chr$(31)+chr$(158)
40 r=1+int(rnd(0)*4)
50 print mid$(c$,r,1);mid$(s$,r,1);
60 goto 40
Pretty cool.
So what's a convenient command line way to get from an ascii basic
listing to a prg inside a d64 image? After some looking I used tok64 and c1541.
Second place was bastext to t64 and then to d64 via c1541 but I was
weirded out since it seems the only binary output bastext is willing to
do is a t64 file. And while c1541 should handle those, it didn't in this case.
I was also about to type it into the VICE emulator.
So no image created?
Andreas Kohlbach <ank@spamfence.net> writes:
So no image created?
If I was unclear, not by the bastext + c1541 combo. No issue with tok64
and c1541.
On Mon, 30 Oct 2023 19:08:08 -0400, Andreas Kohlbach
<ank@spamfence.net> wrote:
I was also about to type it into the VICE emulator.
You do know that you can simply paste it into the Vice window?
(On the Windows version, at least)
Andreas Kohlbach <ank@spamfence.net> writes:
So no image created?
If I was unclear, not by the bastext + c1541 combo. No issue with tok64
and c1541.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,134 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 04:07:05 |
| Calls: | 14,529 |
| Calls today: | 2 |
| Files: | 186,444 |
| D/L today: |
8,567 files (3,036M bytes) |
| Messages: | 2,566,661 |