Welcome, Guest. Please login or register.

Author Topic: C64 Basic Upgrade  (Read 20918 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: C64 Basic Upgrade
« on: April 02, 2013, 11:51:03 PM »
Quote from: nicholas;730399
No, but it had 60k of accessible RAM and could display 128 colours onscreen. The c64 had less than 40k of usable RAM and 16 colours so it's a fair trade. :)


FYI all 64K of the C64's RAM is accessible.  I wrote lots of BASIC programs and I always used all 64K of RAM.

The 38911 byte limit is only for newbs :)
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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: C64 Basic Upgrade
« Reply #1 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.

Quote

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.

Quote

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