Thanks Steve that looks really handy. I tried very hard to keep the code structured but line numbered basic is certainly a different kettle of fish!
One thing I had forgotten is the max 2 letter variable names. I thought my program was doing some really random stuff till I realised ROLL and ROUND were being treated as the same
The Pig dice game is going well. Hopefully get it released soon - as long as I shake off this cold.
What sort of games do people still play on the Dragon? I was thinking of writing something a bit bigger along the lines of Dragon Data's Quest next.
Cheers,
Davy
Dragon32.com and a new Disk mag?
Re: Dragon32.com and a new Disk mag?
I didn't knew that and after 3 hours of debugging I realized that could be the only thing that failed in my program, so I checked the BASIC manual and then I really didn't knew if I should trhow my Dragon through the window or it was Microsoft's fault as usual...One thing I had forgotten is the max 2 letter variable names.
Man, 2 character names makes a program more difficult to read even than assembler language...
-
- Posts: 7
- Joined: Mon Nov 15, 2010 5:45 pm
Re: Dragon32.com and a new Disk mag?
Hi guys,
Seeing the reference by Steve to SAVE"PROGNAME",A reminds me that I tried a lot of times to save basic programmes written on Xroar to a text file using CSAVE"PROGNAME",A
Sometimes this worked and listed the programme as written but most of the time it came out in what looked like Japanese text.
Any ideas why this was?
Cheers,
Mike
Seeing the reference by Steve to SAVE"PROGNAME",A reminds me that I tried a lot of times to save basic programmes written on Xroar to a text file using CSAVE"PROGNAME",A
Sometimes this worked and listed the programme as written but most of the time it came out in what looked like Japanese text.
Any ideas why this was?
Cheers,
Mike
Re: Dragon32.com and a new Disk mag?
CSAVE"..",A will save in ASCII, but it's still wrapped up in tape block headers/footers. With a decent text editor it's quite easy to strip all those headers, but there is now an easier way.
If you try the latest XRoar snapshot from here, you can run with "-lp-file filename", and then type "LLIST" to list your file to the "printer" (file). Possibly "POKE &H14B,10" first for Unix-style line endings.
If you try the latest XRoar snapshot from here, you can run with "-lp-file filename", and then type "LLIST" to list your file to the "printer" (file). Possibly "POKE &H14B,10" first for Unix-style line endings.
- daftspaniel
- Posts: 46
- Joined: Fri Jan 07, 2011 5:50 pm
Re: Dragon32.com and a new Disk mag?
Thanks Sixxie - that is a great feature which will be SO useful when coding
Davy
Davy
- rolfmichelsen
- Posts: 299
- Joined: Wed Apr 08, 2009 8:43 pm
- Location: Oslo, Norway
- Contact:
Re: Dragon32.com and a new Disk mag?
Very handy feature! Thanks for adding it. Would be even more useful if you flush the output file from time to time so that I don't have to exit xroar to get all the outputsixxie wrote:If you try the latest XRoar snapshot from here, you can run with "-lp-file filename", and then type "LLIST" to list your file to the "printer" (file). Possibly "POKE &H14B,10" first for Unix-style line endings.
-- Rolf
Re: Dragon32.com and a new Disk mag?
Ah, try Control+Shift+P. I guess when sending to file a timed flush would be useful, but the reason it's not there now is that you can also use "-lp-pipe" to send to a fiter. e.g.:rolfmichelsen wrote: Very handy feature! Thanks for adding it. Would be even more useful if you flush the output file from time to time so that I don't have to exit xroar to get all the output
Code: Select all
-lp-pipe "enscript -B -N r -d printer-name"