Ask Chuck

Author(s): Chuck Dawson
Publication: The Data Expansion
Pub Details: The D/FW Data Expansion v4 n12 (Volume 4, Issue 12)
Date: December 1987
Pages: 4-5

QUESTION: I am confused about the difference between the GRAPHICS and the GRAFTABL commands. If they are different, how do they differ?

ANSWER: The GRAPHICS command installs a resident routine that is used to copy the screen, bit by bit, to a graphics printer. When the screen is in a text mode (screen 1 for example), a control prt scrn (print screen) sends the ASCII value for each character on the screen to the printer. In this mode, you do not need the GRAPHICS installed. The screen copy is very quick, but an “A” with a rounded top may come out with a pointed top on the printer. This is because the ASCII code for “A” is sent to the printer and the printer (through its built in ROM) decides how an “A” should look.

In the GRAPHICS mode (screen 3 perhaps), it is possible to draw circles, lines, and turn on or off individual pixels on the screen. Now, a screen copy must reproduce each and every pixel on the paper. This is where the GRAPHICS resident routine comes in. It checks to see that you are in a graphics mode, then intercepts the normal text copy routine and substitutes its own dot-for-dot version. This copy procedure takes a bit longer, and your printer has to be able to receive information in the dot-for-dot mode, but it is worth it to get an exact copy of the screen.

GRAPHTABL, on the other hand, is used to let the monitor display the extended ASCII characters 128 to 255 when in a graphics mode. These are the Greek letters, Box drawing characters, etc., that IBM included in the character set. They can be displayed with no trouble in the text mode, but when in a graphics mode, they cannot be displayed without the GRAFTABL resident routine. It needs to be run only once after power-up and from then on, the resident routine is standing by to help display the extended characters on the screen.

QUESTION: What is the difference between using DISKCOPY and COPY *.*?

ANSWER: With DISKCOPY, the disk is copied track by track. The copied disk should be an exact duplicate of the original. This may or may not be an advantage. If a disk has been used for a while, the files may be fragmented all over the disk. This slows down read time, since the read heads have to be moved excessively during the read. If you copy using *.*, each file is copied as a unit to the new disk, with no fragmentation.