DEBUGGING ARTIST II

Flummoxed by the bugs in Artist II? Carol Brooksbank rides to the rescue.

	You may have seen in the review of Softechnics' Artist II' in the February ZXC that I mentioned that there are a number of bugs in the program. Certainly, if you have a copy, you will have met some of them.

	This is such a good graphics program despite the bugs that I decided to see how many I could remove, and now have my copy in good working order. As most of the changes are quite small, I am sure you would like to clean yours up too, so here is how it is done.

	First, a few bugs that I have left alone because their effects are easily corrected or avoided. After using the 'Up' mode to work on the part of the screen normally hidden by the icon menu, you will sometimes find that a couple of lines from the bottom of the screen are transferred to the top when you return to the 'Down' mode. 

	This is easily corrected by using the 'Window' option to scroll the whole screen. When using the 'Enlarge' mode to work in detail on small sections of the screen, the program may crash if you run the cursor off the right hand edge of the enlarged window. Avoid running the cursor off the edge. When you need to work at the right hand side of the enlarged area, move the window over a bit so that the area comes to the centre of the window. If you are on the right hand edge of your picture, move the cursor slowly so that you can control it, and keep it inside the window.

	I mentioned the save/load bug in the type font design option in the review. The 'Save' option saves the wrong block of code, and 'Load' crashes the program. Follow this procedure to save/load successfully.

	Select the save/load option, and give the file name when prompted. Use the BREAK key to return to BASIC (Do not start the tape if saving). Enter as a direct command:

LET B=number
  number = 62268 for font 3
		   61500 for font 4
		   63036 for font 5
Enter GOTO
	72 to load from microdrive/disc
	74 to load from tape
	82 to save to microdrive/disc
	84 to save to tape

Proceed as usual to save/load.

	The most serious bugs are in the printing operations, in both the main program and the Pagemaker. The following changes should be made before saving a back-up customised copy.

Kempston E

	The last command on LINE 97 of the main program BASIC is COPY : REM CHR$ NOT PI
My interface is not initialised by this. I am not sure whether this is a quirk of my particular interface, or whether it is always the case that NOT PI is not recognised. 
	If your interface is not initialised after responding 'Y' to 'KEMPTON PRINT', then change the last command on LINE 97 to COPY : REM CHR$ 0

Enabling the screen dumps

	The shaded screen dumps work, but the ordinary large and small ones do not if you are using Epson or compatible printers. For the technically minded, this is because there is a mistake in the Epson bit-image graphic codes. The program makes use of the ESC * control code, which allows the bit image mode to be selected by a number which follows "*". This number can be 0-4 or 6, or 5 on some of the latest models. The program uses 7. A call to Epson confirmed by suspicion that there is no such mode, so the fault can be corrected by POKEing a valid number into the locations concerned. 

	You can experiment to see the effect of the various numbers, but I found 1 the most satisfactory. The only problem is that the large screen dump does not quite fit on the page - about two character squares are cut off the right hand edge - but none of the other modes produces a large dump which comes anywhere near fitting the page.

These are the POKES you need:
  POKE 65180,4 (Small screen dump)
  POKE 65186,1 (Large screen dump)

	You could try juggling with the values of the two pairs of bit-image data. I could not find a more satisfactory combination than those in the program, but if you have more patience than I, the locations and present values are:
  65181 (0) [Small dump]
  65182 (2)
  65187 (0) [Large dump]
  65188 (4)

	The main program can now be saved. As I have no Opus disc unit, I changed line 96 to make the program autorun.

Routine to allow use of the Kempston E Interface:

	BA62 E5					PUSH HL
	BA63 C5					PUSH BC
	BA64 F5					PUSH AF
	BA65 CD 7B BA	CHKBUS	CALL BUSY
	BA68 20 BF				JR NZ, CHKBUS
	BA6A F1					POP AF
	BA6B 01 BF FF			LD BC, 0xFFBF
	BA6E ED 79				OUT (C),A
	BA70 0E BB				LD C,0xBB
	BA72 ED 79				OUT (C),A
	BA74 0E BF				LD C,0xBF
	BA76 ED 79				OUT (C),A
	BA78 C1					POP BC
	BA79 E1					POP HL
	BA7A C9					RET
	BA7B 01 BF FF	BUSY	LD BC,0xFFBF
	BA7E ED 7B				IN A,(C)
	BA80 E6 C0				AND 0xC0
	BA82 C9					RET

ZX Computing Monthly
March 1987

https://spectrumcomputing.co.uk/page.php?issue_id=371&page=64
https://archive.org/details/zxcomputing-magazine-1987-03/page/n63/mode/1up?view=theater
