Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Files on cassette have a header that contains the starting address to load to (https://eden.mose.org.uk/download/Commodore%20Tape%20Format....), so while you cannot specify at load time where to load data, files that load into specific screen ranges can be created. I don’t remember how this was done, but chances are it involved manually calling a few undocumented ROM routines.


You just need to specify a secondary address of "1" when loading the file, so that it loads into the memory area specified in the header instead of the default location.

This was rarely used with the tape though, but rather with autoloader programs on the disk - there would be a specially crafted program that loaded itself info the system stack or variable area and overwrote some vectors, so that it would be automatically run without the need to type RUN:

LOAD "*", 8, 1 : REM 8 is the disk drive and 1 is the secondary address

I consider this mostly a party trick, but it was cool when we were kids ;)


I want to get invited to your parties.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: