Hello,
I have now created a SuperBASIC extension here: http://www.terdina.net/ql/soft/qemu_version_bin It defines two functions: IS_QEMULATOR returns 1 if running on Q-emuLator, 0 otherwise. QEMU_VER$ returns a string with the emulator name and version. Currently only Q-emuLator supports it (but that could change) and on other platforms it returns an empty string. Thanks, Daniele ________________________________ From: Ql-Users <ql-users-boun...@lists.q-v-d.com> on behalf of Urs Koenig (QL) via Ql-Users <ql-users@lists.q-v-d.com> Sent: Tuesday, March 19, 2024 1:05 PM To: ql-us...@q-v-d.com <ql-us...@q-v-d.com> Cc: Urs Koenig (QL) <q...@bluewin.ch> Subject: Re: [Ql-Users] Q-emulator Have a look at QL/E's QLEhelper_bas (or boot_verbose which uses the compiled QLEhelper) where the command line option \QEMU does exactly this. Inside QLEhelper_bas look at the PROCedure QemuLator_detect which uses that Trap call. Feel free to copy, (amend) and use what you need in SuperBASIC. > -----Ursprüngliche Nachricht----- > Von: Ql-Users [mailto:ql-users-boun...@lists.q-v-d.com] Im Auftrag von > Daniele Terdina via Ql-Users > Gesendet: Dienstag, 19. März 2024 20:48 > An: ql-us...@q-v-d.com > Cc: Daniele Terdina > Betreff: Re: [Ql-Users] Q-emulator > > I can write you an extension for that later today. > > Thanks > Daniele > ________________________________ > From: Ql-Users <ql-users-boun...@lists.q-v-d.com> on behalf of desin via > Ql-Users <ql-users@lists.q-v-d.com> > Sent: Tuesday, March 19, 2024 12:24 PM > To: ql-us...@q-v-d.com <ql-us...@q-v-d.com> > Cc: desin <de...@vtxmail.ch> > Subject: Re: [Ql-Users] Q-emulator > > > > Am 19.03.24 um 19:25 schrieb Daniele Terdina via Ql-Users: > > This is correct, thank you Dilwyn! > > > > If you'd like to test whether you are running on the Q-emuLator-specific > version of SMSQ/E (file named SMSQ_QEM, that can only run on Q- > emuLator), you can use MACHINE and check for code 26. > > > > On any version of QDOS or SMSQ/E, you can test whether you are running > on Q-emuLator by setting D0=-26 (notice the minus sign), D1=1 and calling > TRAP #1. On return, if the error code (in D0) is zero and D1.B is 1, you are > running on Q-emuLator. > > Thanks Daniele > but how do it in basic ? > > Background > > A boot file that runs on most systems (native/emulated) > on Q-emulator it must check what version of SMSQE > is necessary > > Greetings from Switzerland > Markus > > _______________________________________________ > QL-Users Mailing List > _______________________________________________ > QL-Users Mailing List _______________________________________________ QL-Users Mailing List _______________________________________________ QL-Users Mailing List