André's 8-bit Pages  Projects  Code  Resources  Tools  Forum
(by Google)

65002 Configuration Registers

This section describes the configuration registers of the 65002. Please note that more detail is available in the respective feature page related to the configuration register.

Note that there are two opcodes that allow reading and writing the processor configuration registers, LCR, SCR. Also there is BCR, a BIT of AC with the value of the processor configuration register.

The configuration value registers are basically constant values that the program can query from the processor. These values can then be used by the program to identify the processor, resp. adapt itself to the processor features present. They also allow to peek into some of the runtime registers, and allow to control e.g. interrupt handling.

The following processor configuration registers are defined (note narrow values are always zero-extended):

Register#rw/roglobal/per coreNameWidthValue
$00roglobalVENDOR16  bitDefines the vendor of the processor. Currently defined are:
$AFA. Fachat
$01roper coreMC_MYCOREW bitNumber of the core executing the load
$02roglobalMC_NCOREW bitNumber of cores
$03roglobalMC_ACTCOREW bitBitmask of active cores, can be set to start cores and cleared to stop them (except the own core)
$10roper coreST_SR16 bitStatus register
$11rwglobalST_IMR8 bitinterrupt mask register
$12roglobalST_ISR8 bitinterrupt status register
$13roglobalST_EIM8 biteffective interrupt mask register
$14roper coreST_SP8 bitstack pointer (hypervisor)
$15roper coreST_USP8 bitstack pointer (user mode)
$16rwper coreST_MH8 bitmatch code (hypervisor)
$17rwper coreST_MU8 bitmatch code (user mode)
$20rwglobalST_IVW bitInterrupt vector base register
$21rwglobalST_AVW bitAbort vector base register
$22rwglobalST_TVW bitTrap vector base register
$30roglobalMM_CONT8  bitNumber of memory management containers
 

Disclaimer

All Copyrights are acknowledged. The information here is provided under the terms as described in the license section.

Last updated 2012-04-23. Last modified: 2012-04-29
follow

Follow my 8-bit tweets on Mastodon (In new window) or Bluesky

discuss

Discuss my site on this 6502.org forum thread

(Forum registration required to post)

hot!

Dive into the retro feeling and build yourself a Micro-PET or a Multi-board Commodore 4032 replica

Need more speed? Speed up your 6502 computer with this 10 MHz 6502 CPU accelerator board

Interested in electronics design? Look at the design lesson I got from Bil Herd, the hardware designer of the C128

Want 64bit? - pimp the 6502 with the 65k processor design!