diff --git a/doc/geos.sgml b/doc/geos.sgml index 09bc24ace..7726e7409 100644 --- a/doc/geos.sgml +++ b/doc/geos.sgml @@ -6,7 +6,7 @@
-GEOSLib in its current stage doesn't support standard cc65 libraries. It is likely to be changed -in next version. Note that it doesn't mean that it will not work now. I didn't bother myself to -check if it is possible. All I needed for a start was including only I am an assembler programmer and GEOSLib was designed in such way that cc65 could emit the best available code (well, the best as for machine :). Many of the Requirements
@@ -70,9 +72,9 @@ Reference Guide and BSW for GEOS.
GEOSLib is covered by the same license as cc65. You can find the whole text among documentation. I would really appreciate if you would like to send me your comments, suggestions, questions, -changes, bug reports etc. I feel that GEOSLib may be much better. After all, this is the first -release. I will also appreciate if you will just give me a sign that you are using GEOSLib - -not especially something big and important, mail me even if you are just playing with it. +changes, bug reports etc. I will also appreciate if you will just give me a sign that you are +using GEOSLib - not especially something big and important, mail me even if you are just playing +with it.
You can send postcards with hellos to:
@@ -88,15 +90,11 @@ This chapter describes some rules you ought to obey, and how to use GEOSLib.
-Ulrich probably won't like it, but I don't want you to use his standard C functions. In fact, the
-best way (IMO) of programming GEOS with GEOSLib is to only use GEOS lib. You don't need anything
-else. You shouldn't need anything else.
+Think twice before you use standard C library function. In current implementation almost always
+you will get better code using only
-If you really, really need to mix standard libraries with GEOSLib be warned that it probably won't
-work and lookout for the
-Apart from this file which merely describes only standard GEOS library functions you should read
+Apart from this file, which merely describes only standard GEOS library functions, you should read
These two functions are for copying parts of the screen to (Line Functions
@@ -411,9 +409,9 @@ same as
Icons are working similar to menus except the fact that there is only one level. Icons are
defined as a screen area filled with a bitmap, but if you would setup icons and erase the
-screen they are still working and cliking in the place where formerly an icon was will cause
+screen they are still active and clicking in the place where formerly an icon was will cause
an effect. Similary if you would setup icons and then turn them off with DoIcons
@@ -425,7 +423,7 @@ look at DialogBoxes
-This chapter covers the most powerful GEOS function - GEOS standard
@@ -514,7 +512,7 @@ but they are not cleared from the screen.
-The fist function turns the mouse pointer on. It will appear on next IRQ. The second one does
+The first function turns the mouse pointer on. It will appear on next IRQ. The second one does
the opposite - it turns off the pointer, but its position is still updated by input driver.
You are free to use any of the eight sprites, but keep in mind that sprite 0 is actually the mouse
-pointer and sprite 1 can be overwritten when is used as text prompt.
+pointer and sprite 1 can be overwritten when using text prompt.
This function initializes the sprite data. PosSprite
@@ -542,7 +540,7 @@ not initialized and sprite is not yet visible.
This function positions the sprite on the screen. Given coordinates are screen ones - they are
-converted to sprite coords by GEOS. Due to this you cannot use this function to position your
+converted to sprite coordinates by GEOS. Due to this you cannot use this function to position your
sprite off the left or top to the screen.
-These two functions are responsible for the fact if the sprite will or will not appear on the
-screen.
+These two functions are responsible for making the sprite visible or not.
-The first function places text prompt in given place and enables it so it blinks and generally is
-visible. The second function is pretty self-explanatory.
+The first function places text prompt in given place and enables its blinking
+The second one is pretty self-explanatory.
@@ -587,6 +584,8 @@ you may easily corrupt data on disks. Also remember that contemporary GEOS suppo
devices and sticking to 1541 track layout (e.g. expecting the directory on track 18) might be
dangerous.
+For some purposes you might consider using
All GEOS disk functions return error code in X register. In some cases this is returned by
GEOSLib function (if its type is
This function returns the bit value from BAM (Block Allocation Map) for given sector. The bit is
set if the sector is free to use. Returned value is always zero if the sector is already allocated.
-In fact, this function could be described as e.g.
-Anyway, I feel that this function is slightly low-level, maybe too low-level.
+Anyway, I feel that this function is too low-level.
@@ -699,9 +699,9 @@ number of track equal to 0 and sector equal to 255. The simpliest way of using t
predefined space in GEOS data space and pass
The difference between those two is that
-You need to FreeBlock
@@ -713,10 +713,10 @@ Simply deallocates a block in BAM. You need to update BAM with
-This function finds first free sector starting from given track and sector. It might return the
-same argument if the given block is not allocated. I wanted this function to be type-clean, but
-it made usage a bit tricky. To assign a value to own
@@ -749,8 +747,8 @@ This is useful for sending some DOS commands for drive e.g. for formatting. Note
interaction with Kernal in ROM you have to call ChangeDiskDevice
@@ -759,9 +757,7 @@ but also removes it from drive RAM (not quite true, but it works like that). Aft
This function changes logical number of current device (in fact drives only) with given one. It is
usable for swapping drives. There's no check if given Disk Initialization
@@ -796,16 +792,16 @@ Functions described here are common for SEQ and VLIR structures.
These two functions are best suited for scanning whole directory for particular files. Note that
-returned filehandles describe all file slots in directories - even those with deleted files.
+returned filehandles describes all file slots in the directory - even those with deleted files.
The return value can be obtained by casting both sides to FindFile
-This function scans whole directory for given filename. It returns either 0 (success) or 5
+This function scans whole directory for the given filename. It returns either 0 (success) or 5
(FILE_NOT_FOUND, defined in DeleteFile
@@ -859,13 +855,15 @@ This function reads at most
-This function returns next byte from file. Before first call to this function you must load the
-first sector of file, easiest way by using
-Returned value is valid only if there wasn't any error. End of file is marked as SaveFile
@@ -990,8 +988,8 @@ are replacement for those like CopyString
@@ -1065,14 +1063,14 @@ These functions are interface to REU - Ram Expansion Unit. I think that they are
Weird? Not at all. GEOS has limited multitasking ability. You can set up a chain of functions
-called in specified intervals and you can sleep the main program without disturbing other
-tasks.
+called in specified intervals and you can put the main program to sleep without disturbing other
+tasks and making user interface unresponsive.
-This is the main initialization routine. After calling this processes are set up, but not
+This is the main initialization routine. After calling it processes are set up, but not
enabled. The parameters for
-
This is system caller routine. You need to provide pointer to a function and it will be immediately
called, unless the pointer is equal to
but by calling this function you are sure that the results will be always different.
-SetDevice
-
This function sets current device to given. It might be used together with Library Structures
-To simplify using and optimize passing parameters to functions I have declared several structures
+To simplify usage and optimize passing parameters to functions I have declared several structures
which describe most common objects. Some of these structures are binded to static addresses in
GEOS data space ($8000-$8fff), so you can use their fields directly in optimized way.
Please see pixel
-One simple structure describing point on the screen.
+One simple structure describing a point on the screen.
-This structure describes font in one pointsize. There is current font -
This simple structure holds track and sector number of something. Do not expect the track to be
in range 1-35, as GEOS can support many various and weird devices. For example my C128 256K
-expansion is utilized as RAMDisk with layout of 4 tracks 128 sectors each.
+expansion is utilized as RAMDisk with layout of 4 tracks 128 sectors each. However assuming that
+track number equal to 0 is illegal might be wise.
This is placeholder for file datestamp. This structure is also present in filehandle
@@ -1423,10 +1422,10 @@ default icons and the number of selected icon will be returned from window proce
DB_ICON(OK, DBI_X_0, DBI_Y_0),
...