Unused ROM Anywhere?

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
chysn
Vic 20 Scientist
Posts: 1205
Joined: Tue Oct 22, 2019 12:36 pm
Website: http://www.beigemaze.com
Location: Michigan, USA
Occupation: Software Dev Manager

Unused ROM Anywhere?

Post by chysn »

I know all (or most) of the nooks and crannies in RAM where I can put little machine language routines.

Are there any such "empty" places in ROM? Something that is never used, where ROM hackers can put something short? I don't much care if it's KERNAL or BASIC. I haven't seen anything promising in the disassembly, but I figured I might not recognize such a thing.
VIC-20 Projects: wAx Assembler, TRBo: Turtle RescueBot, Helix Colony, Sub Med, Trolley Problem, Dungeon of Dance, ZEPTOPOLIS, MIDI KERNAL, The Archivist, Ed for Prophet-5

WIP: MIDIcast BASIC extension

he/him/his
tlr
Vic 20 Nerd
Posts: 567
Joined: Mon Oct 04, 2004 10:53 am

Re: Unused ROM Anywhere?

Post by tlr »

Commonly enhanced kernals would strip out RS-232 routines and/or tape routines to allow space for added code.
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Unused ROM Anywhere?

Post by srowe »

There's some empty patch space in both BASIC and the KERNAL
  • $DF52 - 40 bytes
  • $E47C - 37 bytes
  • $E4DA - 38 bytes
  • $FF85 - 5 bytes
  • $FFF6 - 4 bytes
User avatar
chysn
Vic 20 Scientist
Posts: 1205
Joined: Tue Oct 22, 2019 12:36 pm
Website: http://www.beigemaze.com
Location: Michigan, USA
Occupation: Software Dev Manager

Re: Unused ROM Anywhere?

Post by chysn »

tlr wrote: Fri Apr 01, 2022 12:50 pm Commonly enhanced kernals would strip out RS-232 routines and/or tape routines to allow space for added code.
Thanks! It crossed my mind that RS-232 might be a good candidate for general uselessness.
srowe wrote: Fri Apr 01, 2022 1:22 pm There's some empty patch space in both BASIC and the KERNAL
Thanks! It doesn't seem like much, but a few dozen bytes here and there might be useful.
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Unused ROM Anywhere?

Post by Mike »

srowe wrote:There's some empty patch space in both BASIC and the KERNAL
  • $DF52 - 40 bytes
  • [...]
This space already contains my patch for the bugged multiplication routine in the BASIC interpreter. :mrgreen:
Post Reply