----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: 07 January 2002 10:17
Subject: A Sam-related post :-)


>
> Other questions:
>
> Steve Taylor's Mouse Driver 2.0 - this has a LOAD "D1:something" coded
into
> the loading code - can the "D1:" bit be replaced or POKEd out?

Yes. Load the sector containing the "Mdriver" file to memory using
    READ AT d,t,s,65536 where d=drive, t= track and s= sector
   then POKE 65546,32: POKE 65833,1 .
 Finaly return the modified code to disk using  WRITE AT d,t,s,65536

If you do not know the track/sector of the file then save it to a BLANK disk
then it will be at track 4, sector 1 or use the listing below which will
locate the file from the directory entry.

 10 INPUT  "Drive (1 or 2) ";d
 20 DIR d "mdriver"
 30 INPUT " Enter number of  'Mdriver' file ";f
 40 LET f=f-1,t=f  DIV 20,s=(f MOD 20 DIV 2)+1,p= 256*f  MOD 2
 50 READ AT d,t,s,65536
 60 LET t=PEEK (65549+p), s=PEEK (65550+p)
 70 READ AT d,t,s,65536
 80 POKE 65546,32: POKE 65833,19
 90 WRITE AT d,t,s,65536

For more info see SAM Community issue 5 page 9

Geoff Bridges


Reply via email to