Included in this archive are two machine language utilities that allow you to display photo scraps in GeoBasic. One is called 'photo.ml' and will display the photo scrap that resides in the 'Photo Scrap' file on the current drive. The other is called 'album.ml' and will display a photo scrap from a photo album.
The only problem with these is caused by a bug that exists in GeoBasic. The only way to avoid the bug is to have your GeoBasic program display the scrap on the screen and then the program must end. If you try to display more than one scrap or do most anything else in your program, GeoBasic will crash and lockup. As of this date, I haven't been able to track down the cause of the problem, but if I get the time, I will investigate it further. In the meantime, maybe these utilities will serve a purpose for someone anyway.
Included are two sample GeoBasic programs that you can use to call up the machine language file to display the photo scraps. When using the programs, there are two variables that allow you to choose where on the screen to place the photo scrap. These are simply 'x' and 'y'. x can be any value between 0 and 39 while y can be between 0 and 199. The x value tells the ml code where to place the scrap in the horizontal position and y is for the vertical position. There is very little error checking done, so be sure to use valid values here. If you don't, it's your own fault. Sorry.
The source code for the machine language is also included, just in case anybody wishes to experiment with it further. I didn't comment any of it hardly at all but at least it's there. The font I use for my source code is also included. This font performs just like the Commodore 10pt font. I think it looks better on the screen though.
To summarize, the two files you need to display a photo scrap are:
showphoto - this is the GeoBasic program.
photo.ml - this is the ml file to go with it.
To show a photo scrap from an album you need:
showalbum - this is the GeoBasic program.
album.ml - this is the ml file to go with it.
The following are the GeoProgrammer source code files for photo.ml:
Photo.lnk - the link file for GeoLinker.
Photo - the main source code.
PhotoHdr - the header file.
The following are the GeoProgrammer source code files for album.ml:
Album.lnk - the link file for GeoLinker.
Album - the main source code.
AlbumHdr - the header file.
Anyway, have fun with this and get some use out of it.