ZX/ProFile Improvement

Author(s): Kevin Smith
Publication: LISTing Newsletter
Date: August 1984
Pages: 4

There are times when even ZX PRO/FILE misses a sort, particularly when you’re looking through long strings of numbers, reports Kevin Smith. PRO/FILE only compares 2 digits at a time.

Kevin’s Fix for that little problem is the following piece of machine code. You can add the program lines shown, or just POKE the values in from immediate mode.

4996 REM      PRO FILE FIX
4997 REM ======================
4998 REM THIS PART CHANGES
4999 REM EXISTING CODE
5000 REM ----------------------
5001 POKE 16562,195
5002 POKE 16563,82
5003 POKE 16564,65
5004 POKE 16565,3
5005 POKE 16566,237
5006 POKE 16567,161
5007 POKE 16568,202
5008 POKE 16569,85
5009 POKE 16570,65
5010 POKE 16571,42
5011 POKE 16572,214
5012 POKE 16573,64
5013 REM ======================
5017 REM THIS PART ADDS NEW
5018 REM CODE IN UNUSED AREA
5019 REM ----------------------
5020 POKE 16722,34
5021 POKE 16723,214
5022 POKE 16724,64
5023 POKE 16725,19
5024 POKE 16726,26
5025 POKE 16727,254
5026 POKE 16728,155
5027 POKE 16729,202
5028 POKE 16730,193
5029 POKE 16731,64
5030 POKE 16732,195
5031 POKE 16733,181
5032 POKE 16734,64
5033 POKE 16735[illegible]
PRO/FILE FIX listing, lines 4996-5033: POKEs that change existing code and add new code in an unused area
PRO/FILE FIX listing, lines 4996-5033: POKEs that change existing code and add new code in an unused area

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.