From: Maarten B. <sou...@ds...> - 2014-10-02 11:53:01
|
>> Well, you know if you or someone else put it there. This is common for >> BIOS-like library functions that are already present in the memory. > > Thanks for your explanation. I have no experience on using BIOS-like > library, but I guess what you mean is some kind of library that > preloaded into memory at a fixed address? Yes. > When talking about function call, I only know call by function name, > or call by a function pointer. Treating a memory address as function > is really new to me. This kind of usage only exists in microchip > enviroment, or I can reproduce it in my PC? Just curious. ;-) Actually the memory address is treated as a function pointer. And indeed this is only meaningful on a microcontroller where there is no MMU or sophisticated OS. The last time this was possible on a PC was when DOS ruled the PC (>25 years ago). |