Re: BASIC MODE Question



I demand that Michael Emerton may or may not have written...

[snip]
MODE 800,600,32
PRINT "Hello"

DIM block% 256
!block%=1
block%!4=800
block%!8=600
block%!12=5
block%!16=60
block%!20=-1
SYS "OS_ScreenMode",0, block%
PRINT "Hello"
[snip]

Oddly the first suggestion returned a syntax error,

And so it should, unless you're using a new enough BASIC module.

and the second needed a tweak (I changed !16 = 60 To !16 = -1

=> unspecified frame rate.

and removed !20

Wrong. At offset 20, you have index/value pairs (words) for VDU variables,
terminated with index=-1.

This works in the desktop, but fails outside (pre-desktop)
Any more ideas?

Yes. Load your mode definition file pre-desktop. :-)

--
| Darren Salt | d @ youmustbejoking,demon,co,uk | nr. Ashington, | Toon
| RISC OS, Linux | s zap,tartarus,org | Northumberland | Army
| + Buy local produce. Try to walk or cycle. TRANSPORT CAUSES GLOBAL WARMING.

See that ZX81, that's your 486 DX66, that is.
.



Relevant Pages


Loading