• Please review our updated Terms and Rules here

Relocator for Altiar 8K BASIC

alank2

Veteran Member
Joined
Aug 3, 2016
Messages
2,264
Location
USA
I have 8K BASIC running in my emulator at 0x0000, but I'd like to move it to 0x8000 to see if I could run it from flash instead of sram on a device I'm building. I've heard that it has some self modifying code, but I could probably find that by having the emulator trap when anything is attempted to be written above 0x8000. I'm not sure I could get this working, but I'm tempted to try it. My understanding is that there is no real source for Altair 8K BASIC out there. My question is, is there an 8080 relocator that could attempt this? Or perhaps a disassembler that can disassemble it if an assembler could produce the same binary from the disassembly. The goal here would be to move as much of it as possible to flash memory at 0x8000 leaving only was is needed in sram in sram to increase the free space in sram.
 
I've got the low SRAM, I just don't want to waste it on the BASIC itself if I could move the bulk of BASIC to flash.
 
If anyone is interested, I modified the extended ROM basic 4.1 to:

Replace the underscore functionality with backspace. When you type backspace, it will backspace, space, backspace so that it is destructive.

I also enabled most of the version/copyright. (I replaced the " BY MITS INC." with the code that does the backspace, space.)

It now says:

MEMORY SIZE?
LINEPRINTER? O
ALTAIR ROM BASIC VER 4.1
COPYRIGHT 1977

The file is pure binary beginning at 0x0000:
View attachment Extended ROM BASIC 4.1 (BS).zip
 
Back
Top