-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getrez() + 2 is an unreliable way how to detect resolution #1
Comments
See also freemint/tos.hyp#89 |
Hello, I just read about this insane story on https://web.archive.org/web/20190531112355/http://www.fultonsoft.com/revisiting-gem-for-the-atari-st-part-1/ I just have a question in this case, is it only for the Falcon, or all Atari machines? |
Hi Patrice, nice to see you around. Actually it is the other way around -- Mike Fulton believed that it is wrong to use What he argued about was usage of direct constants instead of @th-otto made some very good points as of why it is OK to use |
Do you think it would be OK this way, if I want a program that runs on any Atari, and whatever VDI is running:
Currently, I don't know how I could check for a custom VDI (FVDI or NVDI), maybe trap #2 not pointing into ROM ? |
I was thinking that maybe more like So just change that one check and you're good I think. What do you think @th-otto? |
I think that check isn't needed at all. workin[0] = 1 will work with all TOS versions, not only >= 3.x Also, how would you check whether VDI is in ROM or not? Only because the VDI trap points to RAM does not mean that there is a different VDI behind it. It could be just some helper program like VDIFIX. |
In fact, I was wondering how the AES opens the physical workstation; either the ROM AES, or one of the few custom AES (NAES, myAES, Oaesis, etc). So the purpose of this program is just that, showing how it is (or should be) done. |
As discussed in our email conversation, there are at least two scenarios where I got
vdi_vd.ttp
crash in Falcon's 640x480@256c:In both cases, replacing
work_in[0] = Getrez() + 2;
withwork_in[0] = 1;
fixes the issue.The text was updated successfully, but these errors were encountered: