Author Topic: Need help, trying to get programs onto a tape for my 2001-8  (Read 643 times)

0 Members and 1 Guest are viewing this topic.

Offline dabone

  • KIM-1 user
  • **
  • Posts: 49
  • Activity:
    0%
  • Reputation: 2
  • With us since: 21/01/2009
    YearsYearsYearsYears
    • View Profile
I'm trying to get some software onto a tape for my pet. I have a 128 and a datacassette, and can read the pet tape I have, and I can load programs from it. I've tried the following program in c64 mode.
 
100 CIA = 56576:VIC = 53248:VRAM = 648:BSTART = 43:BTERM = 55:NMIVEC = 792
110 POKE CIA, PEEK(CIA) AND 252 OR 1:REM SELECT VIC MEMORY BANK #2 ($8000 - $BFFF)
120 POKE VIC+24, PEEK(VIC+24) AND 15:REM SET VIDEO RAM TO START OF BANK
130 POKE VRAM,128
140 POKE NMIVEC,193:REM POINT VECTOR TO RTI (DISABLE STOP/RESTORE)
150 POKE BSTART+1,4:REM SET START OF BASIC RAM TO $0401
160 POKE 1024,0:REM ENSURE BYTE AT NEW BASIC START - 1 IS NULL
170 POKE BTERM+1,128:SET END OF BASIC RAM TO $8000
200 POKE VIC+32,0:POKE VIC+33,0:REM SET BORDER/BACKGROUND COLOR TO BLACK
210 PRINT "{green}{clr}### COMMODORE BASIC ###"
220 PRINT " 31743 BYTES FREE."
230 NEW

This program sets up the 64 like a larger Pet, basic starts at 1025 and it's giving it 32k of ram. Can anybody modify this to reflect a 2001 vic with 8k of ram. Or is it ok the way it is?
 
I load and run this program, then load the pet prg from my uiec and then save to tape.
 
So far I've transfered space invaders and pinball fine. It this just fine for most pet programs, or is there something else I should be using?
 
Thanks,
later,
dabone
 

Offline carlsson

  • Class of '6502
  • PET user
  • ***
  • Posts: 97
  • Age: 38
  • Location: Västerås
  • Activity:
    0%
  • Reputation: 20
  • Gender: Male
  • Anders Carlsson
  • With us since: 20/02/2009
    YearsYearsYearsYears
    • View Profile
Re: Need help, trying to get programs onto a tape for my 2001-8
« Reply #1 on: March 21, 2011, 10:23 PM »
Let's see, you are using a NTSC C64/128? In that way, the clock timing frequencies compared to what the PET expects should be pretty much equal. If you used a PAL machine, you might find the two differ more (C64 0.98 MHz vs PET 1.00 MHz vs VIC-20 1.01 MHz).
 
Tezza at the Vintage Computer Forum recently prepared a set of TAP files with PET software, which I believe were intended to be written through some PC software directly to the microphone input of a regular tape recorder. I don't know if X1531 software etc handles PET frequencies but usually they should if they anyhow handle more than one Commodore computer.
 
As for your program that relocates memory pointers, I think it is superfluous if you use a proper copying program, one that can load files into whichever memory position and save those back to the same position. I'm not sure which programs are that capable, but they surely should exist even for files that load into what normally is screen matrix on the C64.
 
A third way to transfer files might be if you make a PRLINK or PC64 cable to connect a PC directly to the userport of the PET. Assuming that connection is made working, you should be able to use cbmlink to transfer files directly into the PET memory and from there save to tape if you need them later on. Have you considered this setup?

Offline dabone

  • KIM-1 user
  • **
  • Posts: 49
  • Activity:
    0%
  • Reputation: 2
  • With us since: 21/01/2009
    YearsYearsYearsYears
    • View Profile
Re: Need help, trying to get programs onto a tape for my 2001-8
« Reply #2 on: March 22, 2011, 09:25 PM »
Quote
I think it is superfluous if you use a proper copying program, one that can load files into whichever memory position and save those back to the same position

 
Any what program would that be?
 
The pet reads the tapes I'm making fine it seems, it's just finding a program that loads off the disk and writes to the tape I need.
 
 
Quote
A third way to transfer files might be if you make a PRLINK or PC64 cable to connect a PC directly to the userport of the PET. Assuming that connection is made working, you should be able to use cbmlink to transfer files directly into the PET memory and from there save to tape if you need them later on. Have you considered this setup?

I was trying to get away with not having to make anything. I also cannot use any disk drive or ieee adapter for the pet because mine has the original roms that don't support disk access.(I looked at adding ieee to one of my 1541s but that put a stop to that.)
 
 
Thanks.
Later,
dabone
 

 



Back to top