▲ | JdeBP 3 days ago | ||||||||||||||||
There was no self-modifying code. BBC BASIC was in ROM. | |||||||||||||||||
▲ | classichasclass 3 days ago | parent [-] | ||||||||||||||||
I don't know the internals of BBC BASIC, but many Microsoft-derived BASICs do keep track of the current location in the program text with self-modifying code; the routine is copied to a reserved portion of zero page on 6502 machines for speed. On the C64 this routine lives at $0073 and the pointer is at $007a. Because it's in RAM, this makes it a popular location for wedging in additional behaviour or commands (hence the term "wedge" for such extensions). On some systems like the PET, this was the only way to accomplish it. | |||||||||||||||||
|