Forthretro.new.fr wrote:Siggi,
Thanks, but the question asked by Rich, as I could understand, was from the PROGRAMMER point of view.
The purpose, clearly, is to ask the programmer to include (if possible) a Low Res and a HGR version of the same programm.
The programm detect if the required configuration is avaible and, according the test, launch the Low Res OR the HGR version.
It is to say : If your programm need one of the classes of HGR, could you detect if the zetty's configuration the player use is OK ?
No, that is not possible. The program can only detect (using PEEK/POKE), whether there is ram, where the HIRES software wants to write its HIRES image to. But it cannot detect, whether this ram region is able to display UDG or HIRES. The only possibitily would be to show a test picture and ask the user, whether he can see it.
1- For pseudo HGR, no test (I mean no Graphic test) is needed. (question solved). Now, if enough RAM (1, 2, 16, 32 or 48K is another problem)
2- For those which require RAM at 8k, I gave a test I can include in my program since I use this kind of HGR and I know where my HIRES image is located.(question solved)
No, not solved: as written before: you know only, that there is ANY ram at 8K. But it can be "normal" ram, not usable for UDG or HRG.
3- But the Rich's question : "With the various (understand other ) ways of creating hi-res graphics on the ZX81, what is the best way of detecting whether it is available? remain unsolved.
The best solution is already done by Wilf or Matthias: their HIRES-programs use only their own HIRES-program package and don't work with other HIRES variants (Note: HIRES/UDG is a non-standard-feature of non-standard-Zeddies!). Nevertheless they don't know, whether the user can see the HIRES-image (if the ram is not modified for HIRES).
Can a programmer using other hi-res graphics than RAM at 8k include a test ?
A PEEK/POKE ram test (at 8K or anywhere else) does not give information, whether that ram there can display UDG or HIRES!!!
Example: if you do your PEEK/POKE test in a standard 16K ram pack, you would find, that there is ram. But it is not usable for HIRES (without hardware modification).
Siggi
There are 10 types of people in this world: those who understand binary and those who don't.