Welcome, Guest. Please login or register.

Author Topic: C64 Basic Upgrade  (Read 17904 times)


0 Members and 1 Guest are viewing this topic.

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: C64 Basic Upgrade
« Reply #44 from previous page: April 06, 2013, 12:20:37 AM »
Quote from: LoadWB;730710
The trick is to make sure you don't have a particular ROM swapped out when you decide to use a routine contained within (like floating point math while BASIC is out or disk access routines while Kernal is swapped out) or attempt to access I/O devices with that space swapped out.

I forgot to mention the IRQ and NMI handling.  If you don't have your own IRQ and NMI routines (or turn off the IRQ) when you swap out the Kernal, you're heading right straight into a lock-up when the interrupt gets vectored by, and usually into, uninitialized memory.

Offline Amiga_Nut

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 926
    • Show only replies by Amiga_Nut
Re: C64 Basic Upgrade
« Reply #45 on: April 06, 2013, 05:17:30 AM »
Quote from: nicholas;729944
The IT teacher in my school hated me and my friend because we could code and he couldn't. He actively discouraged us from teaching ourselves to code.

He is still there at the school 20 years later apparently.

Same age as the guy who wrote the PAL and NTSC releases of Outrun :D

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: C64 Basic Upgrade
« Reply #46 on: April 06, 2013, 05:59:48 AM »
Quote from: psxphill;731086
You can't use more than 38911 for code.
You should be able to use c000 for variables, but that can't be in addition to anything in the 38911 area.

Luckily for me, all my programs are composed of code and data.  The data arrays works perfectly in the area above 38911.


All that rest can only be accessed with POKE and PEEK, which is a tad boring to code.

It is exactly like coding in asm.  Which is fine.


I ran out of ram in a basic program once and then I stopped writing basic programs.

I ran out of ram all the time.  I wrote large programs.  But then I discovered a basic compiler (which I think was called Blitz64 but I can't really remember) which squished the size of my code down enough that my programs could just barely run.  It stripped away all the REM statements to save a lot of space.  

Luckily the Amiga came out and saved me from ?OUT OF MEMORY ERROR IN LINE 12756  for many years until I started getting out of memory errors on my 32MB Apollo 060.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA

Offline RobertB

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1810
  • Thanked: 22 times
    • Show only replies by RobertB
    • http://www.dickestel.com/fcug.htm
Re: C64 Basic Upgrade
« Reply #47 on: August 28, 2017, 06:43:59 AM »
Quote from: RobertB;729907

The list does not seem to include BASIC 4.0 which was in the Better Working Turbo Load 'N Save cartridge nor the BASIC 4.5 which was in RUN magazine issues 18-20.
The mentioned link has moved to


Back in California,
Robert Bernardo
Fresno Commodore User Group