OpenCores

cpu65c02_tc - R65C02 Processor Soft Core with accurate timing

Issue List
RTI instruction #3
Closed gbecker opened this issue about 15 years ago
gbecker commented about 15 years ago

The RTI instruction pulls the wrong data from the stack. Instead of pulling the Stack Pointer + 1, Stack Pointer + 2, and Stack Pointer + 3, it pulls Stack Pointer - 1, Stack Pointer - 2, and Stack Pointer - 3. This causes the wrong data to be put into Processor Status Register and the processor to continue execution at the wrong location.

+++ CORRECTED +++ RTI referenced to parts of the ALU section which was removed in earlier versions. So the direction control for the stack pointer was hard wired to "-" by RTI.

fpga_is_funny closed this about 15 years ago

Assignee
No one
Labels
Bug