Working example on SMSQ/E:
5000 DEFine FuNction eval(e$)
5010 LOCal chan,result
5020 chan=FOP_OVER(ram1_eval_in_bas)
5030 PRINT#chan;"_chan=FOP_OVER(ram1_eval_out)"
5040 PRINT#chan;"_result=";e$;":PRINT#_chan;_result"
5050 PRINT#chan;"CLOSE#_chan"
5060 CLOSE#chan
5070 EW ram1_eval_in_bas
5080 chan ...
Search found 682 matches
- Mon Jun 30, 2025 11:37 am
- Forum: Software & Programming
- Topic: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
- Replies: 12
- Views: 521
- Sat Jun 28, 2025 10:50 pm
- Forum: Software & Programming
- Topic: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
- Replies: 12
- Views: 521
Re: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
There is no code (not even unvectored) in QDOS, which can evaluate a string as an expression. I assume if you have a line like:
PROCname expression (or FuNcname(expression))
e.g.:
myProc sin(pi/6)*2
SuperBASIC tokenizes the expression (sin(pi/6)*2) and then there seems to be a (none vectored ...
- Fri Jun 27, 2025 5:24 pm
- Forum: Software & Programming
- Topic: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
- Replies: 12
- Views: 521
Re: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
It's an interesting problem.
You cannot simply write a SB expression to a file and evaluate this using e.g. DO or MERGE, since that stops the program altogether (especially in a function).
Under Minerva and SMSQ/E however, it's possible for an SB program to start another SB program as an EXECutable ...
You cannot simply write a SB expression to a file and evaluate this using e.g. DO or MERGE, since that stops the program altogether (especially in a function).
Under Minerva and SMSQ/E however, it's possible for an SB program to start another SB program as an EXECutable ...
- Wed Jun 25, 2025 12:05 pm
- Forum: Software & Programming
- Topic: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
- Replies: 12
- Views: 521
Re: eval Function (eval$) for SuperBASIC (Job 0,0 only?) (does <EDIT>or does not(?)</EDIT> work in Minervas MultiBASICs)
It works in your first example since you give it a numeric argument (SIN(PI/6)), which is evaluated and coerced into a string before the function is called.
But when you give it a string argument, it simply returns the string itself.
I guess you want it to evaluate the string as a numerical ...
But when you give it a string argument, it simply returns the string itself.
I guess you want it to evaluate the string as a numerical ...
- Tue Jun 24, 2025 10:51 pm
- Forum: QL Emulation
- Topic: Emulator with debugger
- Replies: 13
- Views: 529
Re: Emulator with debugger
Qemulator has a good host-based debugger (it runs outside the emulated QL).ecdhe wrote: Tue Jun 24, 2025 3:46 pm What is the QL emulator with the best debugger? Something that allows to step into assembly, look at the memory.
- Tue Jun 24, 2025 10:37 pm
- Forum: Hardware
- Topic: QL internal 27C512 ROM adapter board
- Replies: 7
- Views: 1221
Re: QL internal 27C512 ROM adapter board
Is that one what I have described in my github? link to my repo
Looking for people with those machines or variants to get pictures. In case some of them were faulty, to check them in order to repair them.
Probably something similar; here are the schematics:
circuit.png
prom.png
No ...
- Mon Jun 23, 2025 10:15 pm
- Forum: Hardware
- Topic: QL internal 27C512 ROM adapter board
- Replies: 7
- Views: 1221
Re: QL internal 27C512 ROM adapter board
This is the famous 'Spanjer' RAM expansion, named after the father and son who supplied (and optionally fitted) it.
They soldered out the old 64K chips, fitted 256K chips, and added a bit of extra logic (74LS157 multiplexer and PROM for address decoding). The result was 512K internal RAM, which ...
They soldered out the old 64K chips, fitted 256K chips, and added a bit of extra logic (74LS157 multiplexer and PROM for address decoding). The result was 512K internal RAM, which ...
- Thu Jun 05, 2025 8:15 pm
- Forum: General QL Chat
- Topic: 2. International Sinclair QL meeting in Dormagen (Germany) 6.6 to 8.6
- Replies: 46
- Views: 4295
Re: 2. International Sinclair QL meeting in Dormagen (Germany) 6.6 to 8.6
If anyone not attending in person fancies joining at 430pm UK time to listen-in on this talk, get in touch and we can share the Zoom meeting link (Detlef is quite happy for remote attendees to join.)
Great!
I won't be able to attend either; my current physical condition keeps me from ...
- Wed Jun 04, 2025 6:40 pm
- Forum: QL Emulation
- Topic: QPC2 Increase QL window size
- Replies: 3
- Views: 222
Re: QPC2 Increase QL window size
Hi, have tied the various options for increasing the size of QPC2 but each time it just increases the size of the "black" window but the QL 3 screens ae just as small (especially on a 1920x1080 monitor). Am I asking the impossible?
Try setting the resolution to 640x480, and the window to ...
- Wed May 14, 2025 10:22 am
- Forum: The Off-Topic Section
- Topic: Flyby11
- Replies: 6
- Views: 488
Re: Flyby11
I've bought a new PC back in December with 14th Gen i7 processor and 32GB RAM. The PC I used for production until then is a 10-year old 4th Gen i7 with 8GB RAM and a 250GB SSD, which I now have upgraded to 1TB (+ 2TB HDD). In theory, it could be upgraded to Windows 11 using a registry hack to bypass ...