M100 SCREEN GRAPHICS EDITING AND SCREEN DUMPS TO 9-PIN EPSON AND OTHER GRAPHICS PRINTERS. Documentation file for SKETCH.BA and GRAFIX.CO by Robert H. Pigford, (c) 1989, Newark, DE 19711. Last update 1/23/91. SKETCH.BA and GRAFIX.CO work together to provide dot-by-dot M100 LCD screen pixel editing, SAVING of screen sketches to PICTUR.CO filenames assigned by the user, and retrieval/re-editing of any of those PICTUR.CO files from RAM. The 1920 byte PICTUR.CO files created by SKETCH.BA have their execution addresses set to 0 so they will return you to the M100 main menu if accidently loaded. The machine language program GRAFIX.CO (created by LDGRFX.BA) will be 2800 bytes long. In normal operation, GRAFIX.CO is CALLed by SKETCH.BA as a way of providing graphics screen prints in any of 12 different Height and Width combinations. The 1 wide X 1 high printout is great for printing a logo at the top of a page with a letterhead. The 4 wide X 4 high printout will almost fill the paper and is great for scientific graph printouts. GRAFIX.CO does not reset all the printer settings so, when finished, you will not have to reset your margins, bold, etc. When a wide printout is too wide for the set margins, it will "fall off" the right edge of the paper but no harm is done. Hitting Shift-Break while printing will return control to the M100 program but the printer may be locked in graphics mode requiring you to turn it off and back on to completely clear it. LOADING: -------- In BASIC, load the ASCII text program LDGRFX.DO. SAVE it as LDGRFX.BA. You may then KILL"LDGRFX.DO" to save RAM space. Run LDGRFX.BA to create the GRAFIX.CO program. LDGRFX.BA allows you to choose where in memory GRAFIX.CO will always load and run. Designate the required 2800 bytes to a part of RAM which will not conflict with any other machine language program which you may wish to have active at the same time as GRAFIX.CO (like your Disk Operating System). When the loading is complete, you are offered two user determined configuration choices: 1. Want Linefeeds sent to your printer upon printouts ? Some people set their printers to automatically throw in a linefeed every time it sees a carriage return. If so, then chose . If you want the program to supply the needed linefeeds, choose . 2. Set printer linespacing value. Most Epson compatible printers use 24 (actually 24/180 inch). Printers using other values for their graphics vertical line spacing include the Gemini-10X which uses 16. If you don't know about your printer, use the "24" default value and see if the printouts have spaces or overlaps in the print. If you later decide to change these configurable values, you will have to run LDGRFX.BA over again. When complete, LDGRFX.BA prompts you to WRITE DOWN 5 important values. These are the various addresses CALLed by SKETCH.BA. In BASIC, load the ASCII text program SKETCH.DO, then SAVE it as SKETCH.BA. You may then KILL"SKETCH.DO" to save RAM space. With SKETCH.BA loaded into BASIC (but not RUN), you MUST next EDIT lines 800-820 to enter the values you wrote down. If you don't adjust the addresses in SKETCH.BA before RUNning it, it will cause a CRASH because it will try to CALL the wrong address and not know how to find it's way back to BASIC. DO NOT RUN SKETCH.BA WITHOUT EDITING ------------------------------------ IN THE CORRECT GRAFIX.CO ADDRESSES! ---------------------------------- After editing lines 800-820, RUN the SKETCH.BA progam. At the first menu, press Enter to continue with LOADMing of GRAFIX.CO into high memory. The HIMEM value will be reset accordingly. At the MAIN MENU, choose for instructions. After reading these, choose to create a new picture. The dot will start at the upper left corner. Move the dot around with the keypad directors. When ready to Save or Print the screen contents, hit to bring up the GRAFIX choices on line 8 of the picture. You may then choose: uit returns you to Editing where you left off.

rint will prompt you for your choices of Height multiple, then Width multiple desired. When the Width choice is entered, the printout begins. If it dosen't, check that your printer may be offline. If so, put it online to begin. Choose to make a SAVE. When GRAFIX completes a screen scan, it clears the screen and asks you to choose a filename for saving, to return to your sketch, or to return to the Main Menu. Choosing <3> for Main Menu will ERASE your picture. Note: When SAVing, using the same filename as an existing RAM filename will overwrite it with the latest picture. Make frequent saves and even change filenames if you wish to save different copies of the same picture. When saving is complete, you are left in BASIC. Hit F4 to RUN SKETCH.BA again, this time choosing at the Main Menu. When asked for a filename, enter the name of your picture file in RAM (don't use the extension). If SKETCH.BA can't find it, it will tell you. If found, your picture file will unfold onto the screen and leave you in dot editing mode. TOGGLE the dot on/off with the to help locate it. Pixel Editing tips: Dot postitioning with the Cntrl+ARROW keys then the combination is a quick way to draw lines, borders, etc. The Shift+ARROWS moves the dot 16 pixel at a time up/down and 12 pixels left/right so, if started from an edge, it can be helpful in choosing where to place text (text chrs. are 8 dots high x 6 dots wide). Remember that when using the raw function, that the second can be cancelled by hitting Cntrl-D. The ext function is also handy for making selective erasures. Just put the dot near where you wish to erase, hit , then use the spacebar to print spaces over the graphics. Once erased this way, however, the dot graphics are gone. You will have to redraw them if wanted (or Edit your recently saved RAM file again). If you hit and then change your mind, just hit to finish and get back to dot editing without having put any text over the graphics. Saved PIXTUR.CO files from other GRAFIX.CO memory locations will be loadable at their original Start,End, and Exe addresses but that dosen't matter to SKETCH.BA or GRAFIX.CO. However, remember that inadvertent ENTER action with the CURSOR BAR over any PICTUR.CO file loads it into RAM (if HIMEM happens to be set low enough) and WIPES OUT any other program which may have been there before. To conserve RAM, the SKETCH.BA program can be shortened by: 1. Editing out the instructions (just change Line#600 to BEEP:GOTO330 and DELETE 605-680). 2. Editing out the 'REMARKS. 3. Removing the LINE commands (but not line #570). As long as GRAFIX.CO remains intact with author credit to me, feel free to add it to your own non-commercial programs when you want nice graphics dumps. If you do use it this way, the ave function will work but you will have to go right to BASIC and do a SAVEM"filnam",BS#,BE#,0 to actually make the save. Have fun!