home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / MRFiles / GS3DVPAK.ARC / GSAPPENDIX3 (.txt) < prev    next >
Encoding:
GEOS ConVerT  |  2019-04-13  |  3.8 KB  |  30 lines

  1. gsappendix3
  2. PRG formatted GEOS file V1.0
  3. CONVERTED WITH GEOSHELL V2.2
  4. Write Image V2.1
  5. geoWrite    V2.1
  6. @APPENDIX C
  7. @MODES AND THEIR VALUES
  8. GEOS is a system that has been developed to be shared as closely as possible between the two Commodore computers, the 64 and 128. In most cases, when an application works with GEOS 64, it will work with GEOS 128 in 40 column mode. But, once in a while, an application will show up that can only be run on a specific machine or in a specific mode, such as a 128 in 80 column mode. There is a byte in a file's header block that will identify the type of computer that it is allowed or was designed to be run on. That byte can be found at fileHeader+96 when the file's header block is loaded in at fileHeader. There is a geoSHELL routine for checking if a file is compatible with the computer or the current mode it is in. That routine is CkModeFlag. Refer to the documentation on this routine for more info on how to use it.
  9. For manual checking of this byte, here is a listing of the possible values and their meaning:
  10. $00 = 40 column only - 128 or 64
  11. $20 = 128 - 40 column only
  12. $40 = All modes allowed
  13. $60 = 128 only - 40 or 80 columns
  14. $80 = 64 only
  15. $c0 = 128 - 80 column only
  16. If the current mode of the computer does not match or is not compatible with this byte, then geoSHELL will not execute a file that the user is trying to run. For the same token, if your command is being written specifically for a particular machine or mode, then be sure to include the correct byte in the header file of your command.
  17. While your command is executing, if you need to check the type of computer or mode, then just test the variable 'screenmode' for this information. Here are the possible variations of this variable:
  18. #%10000000 = 128 in 80 column mode
  19. #%00000000 = 128 in 40 column mode
  20. #%01000000 = 64
  21. In addition to this, the variable 'videomode' will tell you if the RGB mode of the 80 column screen has been selected. Bit 7 will reflect this. This can be set even if the computer is in 40 column mode. That way, when the user switches to 80 column mode, it will be put into RGB (color) mode.
  22. When manually placing text or graphics on the screen, it is not a good idea to use the lower portion of the screen below scanline 176 since geoSHELL allows a 16K video ram equipped 128 to operate in color mode. You will notice that none of the standard functions in geoSHELL do anything in this lower area. Even the mouse is prevented from entering this area. So, keep this in mind unless the machine is not in color mode. But that would prevent your command from being used by those who like 
  23. using geoSHELL's color on the 80 column screen.
  24. The geoSHELL Programmer's Development Package    C-PAGE
  25. L routine for checking if a fil
  26. using geoSHELL's color on the 80 column screen.
  27. The geoSHELL Programmer's Development Package    C-PAGE
  28. L routine for checking if a file is compatible with the computer or the current mo
  29. The geoSHELL Programmer's Development Package    C-PAGE
  30.