[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help! No-Slot-Clock & Apple IIc+



Gus Vilomar writes ...
> 
> Need some more help!!!
> 
> I installed the Smartwatch without a problem. The computer boots up and runs
> fine so I'm assuming that the chip was installed properly.  However, the
> Smartwatch software (SWU.SYSTEM) doesn't "see" the chip thus giving me a
> message that the Smartwatch clock is not installed.  I already verified that
> I have the correct chip so I'm assuming that I'm did something wrong when I
> "patched" the ProDOS operating system.
> 
> In the Smartwatch software instructions, it states to do the following:
> 
>         BLOAD PRODOS, TSYS, A$2000
>         BLOAD P8.PATCH.5E80, A$5E80
>         >using the monitor locate and change the JMP $0800 address to $5E80
>         BSAVE PRODOS, TSYS, A$2000, E$5FFF
> 
> I think that the lines above loads the ProDOS operating system at A$2000
> then loads P8.PATCH.5E80 at A$5E80.  I didn't know what to do with the third
> line did so I didn't do anything.  I figured that the fourth line saves a
> new ProDOS that is a combination of the original PRODOS with the appended
> P8.PATCH.5E80.
> 
> The save command worked but the computer is not recognizing the chip so I
> think my mistake is with line 3:
> 
>        >using the monitor locate and change the JMP $0800 address to $5E80
> 
> I guess I need to hack PRODOS and find the code that says "JMP $0800" and
> change it to say "JMP $5E80."  If this is the case, I need help in doing
> so...I don't know what program to use to hack PRODOS.  If I'm not suppose to
> hack PRODOS, then please let me know what I need to do in order to have my
> computer / operating system recognize the chip.
> 
> On the flip side, if anybody has a NSC chip installed on their computer, I
> would appreciate it if you can send me your working "patched" PRODOS file.
> I'm currently using Prodos 8 v.2.0.3 but any version would be appreciated -
> the latest version would be preferred.
 ....

     You can find the JMP to $0800 (4C 00 08) at address $2245 in version 1.9
and $22B7 in version 2.0.3. However (after writing up some really spiffy
directions for adding the patch to these versions), I noticed the suggested
BSAVE command-- i.e. BSAVE PRODOS, TSYS, A$2000, E$5FFF 

     Evidently, the patch is a block of code which is tacked on after the
PRODOS code. This looks like it will work for versions up through v1.8. ProDOS
v1.8 length is 15,741. This puts the end of the BLOADed code at $5D7D.

     By version 1.9, PRODOS seems to be too large for the patch. v1.9 length is
16,509 which would put the end of the BLOADed code at $607D, well past $5E80.
Version 2.0.3 adds another 600+ bytes.
 

     To add the patch to, say, ProDOS v1.8, you can boot a ProDOS v1.8 disk,
get to the usual Applesoft prompt, and enter BLOAD PRODOS,A$2000,TSYS. And,
then, BLOAD P8.PATCH.5E80,A$5E80 to BLOAD the patch.

     Next, enter CALL -151.

     In the monitor (with the "*" prompt) enter 2220L to get a disassem listing
starting at $2220. The 4C 00 08 JMP instruction should show up at address
$2232.

Enter 2232:4C 80 5E

Check to see that the above got entered by doing another 2220L. The new JMP
should show up as 

2232-  4C 80 5E   JMP  $5E80

     Now, you just need to get out of the monitor-- type Control-C and then
RETURN-- and BSAVE the patched ProDOS.


     Probably, you could add the patch to v1.9 and v2.0.3 by BLOADing it after
PRODOS-- e.g. for v1.9 it might go at $6100-- and, possibly, modifying the
patch code. (The code may be position independent and not require any changes.
Or, a few bytes might need to be changed. Fortunately, the patch is not very
large; so, the mods should be fairly easy.)  The only other change would be to
set the JMP in PRODOS to point to the new location of the patch-- such as

2245: 4C 00 61   (for v1.9)

I guess the corresponding BSAVE would be BSAVE PRODOS,A$2000,E$617F,TSYS




Rubywand