Skip to content

Commit

Permalink
6502: add comment on use of interrupt bitmask.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Jan 1, 2025
1 parent e170692 commit 9bd99ca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/6502.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,20 @@ void writemem(uint16_t addr, uint8_t val)

int nmi, oldnmi, interrupt, takeint;

/*
* Note interrupt flags in the above interrupt variable:
*
* 0x001: System VIA.
* 0x002: User VIA
* 0x004: System ACIA
* 0x008: Tube ULA
* 0x010: SCSI
* 0x080: Bodge flag.
* 0x100: Music 2000 ACIA 1
* 0x200: Music 2000 ACIA 2
* 0x400: Music 2000 ACIA 3
*/

void m6502_reset(void)
{
int c;
Expand Down

0 comments on commit 9bd99ca

Please sign in to comment.