[comp.sys.cbm] Amiga <=> C64/128 Transferring ???

glc10686@uxa.cso.uiuc.edu (05/12/89)

I am looking for a program that will convert a BASIC program file to an
ascii form on the C64/128.  My hope is to convert a couple of BASIC 
programs over to an ascii form so that I can transfer them over to my 
Amiga.  Also, does anyone have pinouts for a direct connection between
the two machines.  I won't have access to a modem for the my 128 after
another week.  Thanks.
					Jon Wahlmann
					jrw10536@uxa.cso.uiuc.edu
					wahlmann@mrcnext.cso.uiuc.edu
					wahlmann@uiece.ece.uiuc.edu

izot@f171.n221.z1.FIDONET.ORG (Geoffrey Welsh) (05/14/89)

 > From: glc10686@uxa.cso.uiuc.edu
 > Message-ID: <111600007@uxa.cso.uiuc.edu>
 >
 > I am looking for a program that will convert a BASIC program file to an
 > ascii form on the C64/128.  My hope is to convert a couple of BASIC
 > programs over to an ascii form so that I can transfer them over to my
 > Amiga.  Also, does anyone have pinouts for a direct connection between
 > the two machines.  I won't have access to a modem for the my 128 after
 > another week.  Thanks.
 
   I'll tackle the physical layer first: any RS-232 interface for the C64/128 
will do. A null modem just "exchanges" certain lines and, since C64 terminal 
programs don't do hardware handshaking the following schematic will do:
 
        Pin             Pin
        ---             ---
         1 ------------- 1
         2 ------v------ 2
         3 ------^------ 3
         7 ------------- 7
         8 ------------- 20
        20 ------------- 8
 
   Note that pin 2 on one connector is wired to pin 3 on the other, etc.; the 
pin 20 - pin 8 bridge fakes carrier detect (may not be necessary); pins 1 & 7 
are ground, they may be commoned so that only one wire is needed in stead of 
two.
 
   If you're using an Omnitronix Deluxe (or similar interface), you can get 
away with changing the switches to "printer" from "modem" and you don't need 
to cross the wires at 2 & 3 (a "gender changer" may be necessary, though, to 
get the interface to plug into tha Ami... then again, it may not, depending on 
which model you have... I think...)
 
   OK, now software: I suppose you could write custom software if you want to 
move masses of programs accross, but it might be quicker & easier to do it 
this way:
 
OPEN1,8,2,"asciiname,S,W":CMD1:LIST
PRINT#1:CLOSE1
 
   Now load up your favorite terminal and send [asciiname] to the Ami (this 
will convert from PETSCII to ASCII). If the program list is too long (which 
may be the case), simply use LIST xxxx-yyyy to list a range and merge them on 
the Ami.
 
   Please keep in mind that anything but trivial programs will have to be 
modified to run under AmigaBASIC; programs that use PEEK, POKE, SYS, or USR 
may be particularly difficult.
 
   Geoff
 


--  
 Geoffrey Welsh - via FidoNet node 1:221/162
     UUCP: ...!watmath!isishq!171!izot
 Internet: izot@f171.n221.z1.FIDONET.ORG

hackeron@athena.mit.edu (Harris L Gilliam) (05/15/89)

In article <111600007@uxa.cso.uiuc.edu> glc10686@uxa.cso.uiuc.edu writes:
>
>I am looking for a program that will convert a BASIC program file to an
>ascii form on the C64/128.  My hope is to convert a couple of BASIC 
>programs over to an ascii form so that I can transfer them over to my 
>Amiga.  Also, does anyone have pinouts for a direct connection between
>the two machines.  I won't have access to a modem for the my 128 after
>another week.  Thanks.


Hmm...  A simply way to convert 64/128 progs to ascii is to list them to disk:

open 1,8,0,"0:filename,s,w"

cmd 1

list

print# 1

close 1

This puts the program (line numbers and all) into a sequential file.
Note however that the file will be in Commodore acsii and not your
standard 128 code ascii so you might want to write a small prog to
convert it.  As for direct 64/128 to amiga connections thats not
possible unless you get a rs232 interface (or build one) for the
64/128 side because the 64/128 doesn't use the standard ibm flavor
rs232 interface.  The voltages on the pins are different so direct
connect null modems have to be via a rs232 interface. See the other
articles in comp.sys.cbm about rs232 iterfaces for more info.



							----Harris





|Harris L. Gilliam                   ()    4 Ames St. Cambridge MA 02139 |
|Internet : hackeron@athena.mit.edu  () hgilliam@gertie.media.mit.edu    |
|UUCP     : {backbone..}!bloom-beacon!mit-eddie!mit-athena!hackeron      |
|GEnie    : H.GILLIAM1                                                   |

KRSEAR01@ULKYVX.BITNET (Kendall 'Opusii' Sears) (05/16/89)

> convert it.  As for direct 64/128 to amiga connections thats not
> possible unless you get a rs232 interface (or build one) for the
> 64/128 side because the 64/128 doesn't use the standard ibm flavor
> rs232 interface.  The voltages on the pins are different so direct
> connect null modems have to be via a rs232 interface. See the other
> articles in comp.sys.cbm about rs232 iterfaces for more info.
>
Actually the way I transfer files between my amiga and 128 is using
the modems I have on both.  I hook my amiga's avatex to my 1670
and tell one (It doesn't matter which) to dial (via ATD) and then
I go to the other and issue an ATA command.  The two then act as
if they were hooked thru MA BELL.

The only draw-back to this method is that you only transfer at whatever
speeds your modem(s) can handle.

Have fun.
Opusii.

   Kendall "Opusii" Sears
   KRSEAR01@ULKYVX.bitnet
   ...!psuvax!ulkyvx.bitnet!KRSEAR01  (UUCP)
   K.SEARS                            (GEnie)
---------------------------------------------------
"VIC's LIVE... Really. I just used one..."

jyouells@pnet02.cts.com (John Youells) (05/17/89)

Actually in the Amiga section of Qlink we have been using a cable between the
user port of a 64/128 and the parallel port of the Amiga.  With some software
written by Greg Trevaris (sp) (and enhanced for the 128) you can get file
transfer speed in excess of 5.3K/sec. The cable diagram and software is called
FAST! . Because I sysop the Amiga section I also use a 5.25" drive on the
amiga with Disk-2-Disk from Central Coast Software to read 1541 disks
directly.  If there is interest I can probably post the FAST! software and
cable diagrams here.


UUCP: {ames!elroy, <backbone>}!gryphon!pnet02!jyouells
INET: jyouells@pnet02.cts.com

po87553@tut.fi (Ojala Pasi Juhani) (05/17/89)

In article <15858@gryphon.COM> jyouells@pnet02.cts.com (John Youells) writes:
>directly.  If there is interest I can probably post the FAST! software and
>cable diagrams here.

Please post them, it would be much nicer to transfer those 400KB
files.. They are mostly digitized sounds/music..

-- 
   ////////////////////////////////////////  My friend runs a bbs in
  //  Pasi Ojala     //   Pasbox v2.6   //   his Vic-20. Is there
 // po87553@tut.fi  //   C64 forever   //    another one in the world?
////////////////////////////////////////

glas1989@dunkirk.DKK (Michael R. Glasier) (05/29/89)

In article <2358.246E4D4E@isishq.FIDONET.ORG>, izot@f171.n221.z1.FIDONET.ORG (Geoffrey Welsh) writes:
>  
>  
> move masses of programs accross, but it might be quicker & easier to do it 
> this way:
>  
> OPEN1,8,2,"asciiname,S,W":CMD1:LIST


On a C-64 you might have to use a number larger than
130 for a file number.  Anything smaller won't
give carriage returns at the ends of the lines.
 (OPEN 140,8,2,"filename,s,w":CMD140:LIST)

izot@f171.n221.z1.FIDONET.ORG (Geoffrey Welsh) (05/29/89)

 > From: glas1989@dunkirk.DKK (Michael R. Glasier)
 > Message-ID: <189@dunkirk.DKK>
 
 > In article <2358.246E4D4E@isishq.FIDONET.ORG>,
 > izot@f171.n221.z1.FIDONET.ORG (Geoffrey Welsh) writes:
 > > OPEN1,8,2,"asciiname,S,W":CMD1:LIST
 >
 > On a C-64 you might have to use a number larger than
 > 130 for a file number.  Anything smaller won't
 > give carriage returns at the ends of the lines.
 >  (OPEN 140,8,2,"filename,s,w":CMD140:LIST)
 
   Er, you mean linefeeds, and any number greater than 127 will do.
 
   You are, however, quite correct. Sadly, there is no easy way to get the C64 
to skip the CR and send only the newline (as I suspect the Amiga would like).
 


--  
 Geoffrey Welsh - via FidoNet node 1:221/162
     UUCP: ...!watmath!isishq!171!izot
 Internet: izot@f171.n221.z1.FIDONET.ORG

jbh@mibte.UUCP (James Harvey) (05/30/89)

In article <15858@gryphon.COM>, jyouells@pnet02.cts.com (John Youells) writes:
> FAST! . Because I sysop the Amiga section I also use a 5.25" drive on the
> amiga with Disk-2-Disk from Central Coast Software to read 1541 disks
> directly.  If there is interest I can probably post the FAST! software and
> cable diagrams here.
> 
> UUCP: {ames!elroy, <backbone>}!gryphon!pnet02!jyouells
> INET: jyouells@pnet02.cts.com

I have been using the "Transfer" program which comes with the C64
Emulator by Readysoft to do this.  I tried Disk-2-Disk and found
it tended to err out a lot.  "Transfer" lets you hook up a
standard 1541 to the Amiga.

I would be interested in your FAST! software.

-- 

Jim Harvey                        |      "Ask not for whom the bell
Michigan Bell Telephone           |      tolls and you will only pay
29777 Telegraph                   |      Station-to-Station rates."
Southfield, Mich. 48034           | 

ulysses!gamma!mibte!jbh