Dragon32.com and a new Disk mag?

A place to discuss everything Dragon related that doesn't fall into the other categories.
User avatar
daftspaniel
Posts: 46
Joined: Fri Jan 07, 2011 5:50 pm

Re: Dragon32.com and a new Disk mag?

Post by daftspaniel »

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 :lol: :oops:

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
User avatar
robcfg
Posts: 1532
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Dragon32.com and a new Disk mag?

Post by robcfg »

One thing I had forgotten is the max 2 letter variable names.
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... :mrgreen:

Man, 2 character names makes a program more difficult to read even than assembler language...
Mike Bradshaw
Posts: 7
Joined: Mon Nov 15, 2010 5:45 pm

Re: Dragon32.com and a new Disk mag?

Post by Mike Bradshaw »

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
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Dragon32.com and a new Disk mag?

Post by sixxie »

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.
User avatar
daftspaniel
Posts: 46
Joined: Fri Jan 07, 2011 5:50 pm

Re: Dragon32.com and a new Disk mag?

Post by daftspaniel »

Thanks Sixxie - that is a great feature which will be SO useful when coding :D

Davy
User avatar
rolfmichelsen
Posts: 299
Joined: Wed Apr 08, 2009 8:43 pm
Location: Oslo, Norway
Contact:

Re: Dragon32.com and a new Disk mag?

Post by rolfmichelsen »

sixxie 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.
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 :-)

-- Rolf
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: Dragon32.com and a new Disk mag?

Post by sixxie »

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 :-)
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.:

Code: Select all

-lp-pipe "enscript -B -N  r -d printer-name"
The filter won't complete until you hit the key combination, which is probably what you want in that case (enscript is a Unix tool that does ASCII to Postscript conversion and, in this case, sends it to a network printer).
Post Reply