Re: [Ql-Users] A small machine code program...

2010-11-28 Thread gdgqler
On 27 Nov 2010, at 18:16, Marcel Kilgus wrote: Norman Dunbar wrote: Main() always returns int. True. Main always takes two parameters int and char **. Not true, int main(void) is valid according to C99 spec (see chapter 5.1.2.2.1 ;-) ) But in context of the IOCC contest Tobias

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread Marcel Kilgus
gdgqler wrote: Another 1988 winning entry was as follows according to Peter van der Linden. Though one must say that these programs are usually not written this way, they're written more readable and obfuscated afterwards, sometimes even using specialized obfuscation programs. In any case,

Re: [Ql-Users] QL on 2 monitors

2010-11-28 Thread gdgqler
On 28 Nov 2010, at 12:37, Dilwyn Jones wrote: Does anyone know if any (or all!) of the QL emulators can work on the second screen of a two-monitor PC setup? My PC can only handle a single monitor, so although I have QPC, QemuLator and QL2K on this PC, I can't test them. I had to set my

Re: [Ql-Users] QL on 2 monitors

2010-11-28 Thread Tobias Fröschle
Am 28.11.2010 13:37, schrieb Dilwyn Jones: Does anyone know if any (or all!) of the QL emulators can work on the second screen of a two-monitor PC setup? My PC can only handle a single monitor, so although I have QPC, QemuLator and QL2K on this PC, I can't test them. I think that what you

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread Laurence Reeves
Tony Firshman wrote: Marcel Kilgus wrote, on 26/Nov/10 17:02 | Nov26: Marcel Kilgus wrote: 1for i=1to 100 2a$=:if i mod 3=0:a$=FIZZ 3if i mod 5=0:a$=a$BUZZ 4print i,a$:next i (91 bytes including 4 LF) Damn, missed something: 1for i=1to 100 2a$=:if i mod 3=0:a$=FIZZ 3if i mod 5=0:a$=a$BUZZ

Re: [Ql-Users] QL on 2 monitors

2010-11-28 Thread Dilwyn Jones
Dilwyn, I have a Vista dual screen setup at my office and at least QPC2 works perfectly with it. And yes, you simply drag the QL window to the monitor of choice. This obviously doesn't work in full-screen mode, but full-screen doesn't work well on modern LCD screens anyhow because they

[Ql-Users] Q-emuLator

2010-11-28 Thread Dilwyn Jones
Um, a question from me this time... Anyone know if Q-emuLator can print to a printer on a USB port? As far as I can see it seems to be only possible to print to a parallel LPT port on the PC, or in some cases a serial port printer if using the emulation mode. (Am busy testing Quanta library

[Ql-Users] Hard directories

2010-11-28 Thread Tony Firshman
Is there any automated way to copy files *and* hard directories without manually using MAKE_DIR? Presumably WCOPY will only copy the files and not the directories. Can MAKE_DIR be used after copying? I am restoring my BBS from backup. Tony -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread gdgqler
On 28 Nov 2010, at 14:51, Laurence Reeves wrote: Tony Firshman wrote: Marcel Kilgus wrote, on 26/Nov/10 17:02 | Nov26: Marcel Kilgus wrote: 1for i=1to 100 2a$=:if i mod 3=0:a$=FIZZ 3if i mod 5=0:a$=a$BUZZ 4print i,a$:next i (91 bytes including 4 LF) Damn, missed something: 1for

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread Marcel Kilgus
Laurence Reeves wrote: 1PRINT CHR$(RND(TO 255)):GO TO 1 Great thought in the spirit of Tony's cheating :-) But there's always room for optimizations: 1REP:BPUT RND(90) Will probably also need a few thousand years less! :-) Marcel ___ QL-Users

Re: [Ql-Users] QL on 2 monitors

2010-11-28 Thread Tony Firshman
Dilwyn Jones wrote, on 28/Nov/10 12:37 | Nov28: Does anyone know if any (or all!) of the QL emulators can work on the second screen of a two-monitor PC setup? My PC can only handle a single monitor, so although I have QPC, QemuLator and QL2K on this PC, I can't test them. I think that what you

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread Tony Firshman
Marcel Kilgus wrote, on 28/Nov/10 16:02 | Nov28: Laurence Reeves wrote: 1PRINT CHR$(RND(TO 255)):GO TO 1 Great thought in the spirit of Tony's cheating :-) But there's always room for optimizations: 1REP:BPUT RND(90) Will probably also need a few thousand years less! :-) He he - infinite

Re: [Ql-Users] Hard directories

2010-11-28 Thread Dilwyn Jones
- Original Message - From: Tony Firshman t...@firshman.co.uk To: ql-users ql-us...@q-v-d.com Sent: Sunday, November 28, 2010 3:44 PM Subject: [Ql-Users] Hard directories Is there any automated way to copy files *and* hard directories without manually using MAKE_DIR? Presumably

Re: [Ql-Users] QL on 2 monitors

2010-11-28 Thread Dilwyn Jones
Dilwyn Jones wrote, on 28/Nov/10 12:37 | Nov28: Does anyone know if any (or all!) of the QL emulators can work on the second screen of a two-monitor PC setup? My PC can only handle a single monitor, so although I have QPC, QemuLator and QL2K on this PC, I can't test them. I think that what

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Tobias Fröschle
Am 28.11.2010 16:44, schrieb Dilwyn Jones: Um, a question from me this time... Anyone know if Q-emuLator can print to a printer on a USB port? As far as I can see it seems to be only possible to print to a parallel LPT port on the PC, or in some cases a serial port printer if using the

Re: [Ql-Users] Hard directories

2010-11-28 Thread Dave Walker
-Original Message- From: ql-users-boun...@lists.q-v-d.com [mailto:ql-users- boun...@lists.q-v-d.com] On Behalf Of Tobias Fröschle Sent: 28 November 2010 17:47 To: ql-us...@q-v-d.com Subject: Re: [Ql-Users] Hard directories Am 28.11.2010 16:44, schrieb Tony Firshman: Is there

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Dilwyn Jones
Am 28.11.2010 16:44, schrieb Dilwyn Jones: Um, a question from me this time... Anyone know if Q-emuLator can print to a printer on a USB port? As far as I can see it seems to be only possible to print to a parallel LPT port on the PC, or in some cases a serial port printer if using the

Re: [Ql-Users] Hard directories

2010-11-28 Thread Dilwyn Jones
The 'cp' copy command that comes with c68 can copy everything including hard directories. I used to sue it regularily Why did you sue it? Did it go disastrously wrong or something? :o))) Dilwyn Jones ___ QL-Users Mailing List

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Tobias Fröschle
Am 28.11.2010 19:10, schrieb Dilwyn Jones: Am 28.11.2010 16:44, schrieb Dilwyn Jones: Um, a question from me this time... Anyone know if Q-emuLator can print to a printer on a USB port? As far as I can see it seems to be only possible to print to a parallel LPT port on the PC, or in some

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Dilwyn Jones
I needed to run something on a QDOS system (i.e. QemuLator) which wouldn't run on SMSQ/E on QPC2. As I had never printed from this QemuLator (it's version 3 BTW) I don't know how to persuade it to print via a USB port to a printer which understands Epson control codes. Dilwyn, get out from

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Tobias Fröschle
Am 28.11.2010 20:04, schrieb Dilwyn Jones: I needed to run something on a QDOS system (i.e. QemuLator) which wouldn't run on SMSQ/E on QPC2. As I had never printed from this QemuLator (it's version 3 BTW) I don't know how to persuade it to print via a USB port to a printer which understands

Re: [Ql-Users] Hard directories

2010-11-28 Thread Norman Dunbar
If you use WinBack to create a backup, there was a (useful) utility which took a snapshot of the directory structure, built a new SuperBasic file (called Make_directory_bas I think) and you would run this first against a new disk prior to a restore. It made life easier as the restore would put

Re: [Ql-Users] A small machine code program...

2010-11-28 Thread Norman Dunbar
On 27/11/10 17:53, Tobias Fröschle wrote: Puts() needs #includestdio.h or at least defining correctly! It should, for the sake of art, but doesn't need to. Hmm. Not declaring a function, even one returning int (the default return type) is listed in my book of common C mistakes. Main() always

Re: [Ql-Users] Q-emuLator

2010-11-28 Thread Dilwyn Jones
Great - thanks Rich. It never occurred to me that QPCprint could be used with anything other than QPC2! (Oops sorry Tony, just realised too late I've top-posted) Dilwyn Jones - Original Message - From: Rich Mellor r...@rwapservices.co.uk To: ql-us...@q-v-d.com Sent: Sunday, November