- Function
Read one word from a location in the system bank.
- Header
- Declaration
unsigned __fastcall__ peekwsys (unsigned addr);
- Description
peekwsys
reads one word from the given address in the system bank (bank 15) of the CBM PET-II machines and returns it. Following the usual 6502 conventions, the low byte is read fromaddr
, and the high byte is read fromaddr+1
.- Limits
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- The order in which the two bytes are read is undefined.
- Availability
cc65
- See also
- Example
None.