6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat May 11, 2024 9:55 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Vector Pull - WDC65C02
PostPosted: Tue Apr 30, 2024 5:49 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 684
Location: Potsdam, DE
The data sheet I have states:
Quote:
3.15 Vector Pull (VPB)
The Vector Pull (VPB) output indicates that a vector location is being addressed during an interrupt
sequence. VPB is low during the last interrupt sequence cycles, during which time the processor reads the
interrupt vector. The VPB signal may be used to select and prioritize interrupts from several sources by
modifying the vector addresses.


Is the reset considered an interrupt; that is, does VBP behave the same way? I may have an idea to drop IO into most of the top page of the memory, but overriding it back to eeprom/ram for booting and interrupts.

Thanks,

Neil


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 30, 2024 7:39 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8180
Location: Midwestern USA
barnacle wrote:
Is the reset considered an interrupt?

Yes.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 30, 2024 8:35 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 684
Location: Potsdam, DE
Thank you!


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 30, 2024 2:18 pm 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 266
Location: South Africa
barnacle wrote:
Is the reset considered an interrupt?
To add a bit more it behaves almost exactly like an interrupt.

The first cycle 'fetches' the RESET op-code and sets SYNC (I tend to get a value of $FFFF on the address bus but I don't know where that comes from; the op-code fetched is ignored*).
The second cycle is doing an internal operation like any other interrupt (the address bus has whatever the last value the program counter was before the reset).
The next three cycles 'push' the program counter and status register onto the stack (but it does reads instead of writes; the stack continues from the value it had before the reset).
The last two cycles fetch the interrupt vector and $FFFC then $FFFD appear on the address bus.

* I don't think the first cycle is always $FFFF I vaguely remember that sometimes it is the old program counter and that it might depend on whether or not the reset happened whilst the clock was high. But I'm waaaaayy off in the weeds here.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: