!pr0
!lm12
!rm75
An Addition to CATALOG ARRANGER.................Dave Barkovitch

I really like Bill Morgan's CATALOG ARRANGER, from the October issue of AAL.  There is something I want to change, though.

When you move the cursor to the end of a long catalog, the cursor stays in the middle of the screen and the catalog scrolls up, until only the top half of the screen is filled.  Here are some patches to make the cursor move down to the end, and keep 22 files on the screen:

!lm+5
2931       LDA NUMBER.OF.ELEMENTS
2932       SEC
2933       SBC #LINE.COUNT
2934       BPL .5
2935       LDA #ZERO
2936 .5    STA LAST.ELEMENT


3830       BPL .7

3841       BEQ .1
3842 .7    CMP LAST.ELEMENT
3843       BCC .1
3844       LDA LAST.ELEMENT

5991 LAST.ELEMENT .BS 1
!lm-5



And Another Change.................................Bill Collins

CATALOG ARRANGER is a great utility.  Here are a couple of things you might like to know:

1.  Version 4.0 of the S-C Assembler will not accept division in the operand.  If you have that version then change line 3820 to SBC #11.

2.  If you have DOS relocated into a RAM card you need to add the following lines for bank switching purposes:

!lm+5
1165 MONREAD .EQ $C082
1167 DOSREAD .EQ $C083
!lm-5

Then add BIT MONREAD at these positions:  Lines 1675, 3785, 3855, 3895, 4015 (".5" moved to this line), 4205 (".3" moved to this line), 4315, 4425, 4455 (".7" moved to this line).

And add BIT DOSREAD at these spots:  Lines 1535-36, 1685-86, 3795-96, 3905-06, 3975-76, 4035-36, 4215-16, 4345-46, 4465-66, 4955-56.

Also, all DOS addresses must be moved up 16K (lines 1180-1310.)  $Axxx addresses become $Exxx and $Bxxx become $Fxxx.
