NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: BRK and the I Flag  
Posted byblargg
Posted on7/18/04 04:12 AM
From IP199.170.89.44  



I ran some tests on the NES CPU and found the following behavior:

The CPU's status register AND $30 is always 0 (there's no way to actually find out whether these bits are implemented or not, thus it makes no difference). i.e. there is no Break or Reserved bit in the status flag, but those bits are used in the byte which is pushed on the stack during status saves.

PHP         push status OR $30
BRK push status OR $30, then set I to 1
IRQ, NMI push status OR $20, then set I to 1
RTI, PLP pop status unchanged




-
Entire Thread
Subject  Posted byPosted On
*BRK and the I Flag  Fx37/17/04 11:36 PM
.*Re: BRK and the I Flag  Anonymous7/18/04 10:13 AM
..*Re: BRK and the I Flag  Fx37/18/04 4:10 PM
...*Re: BRK and the I Flag  Anonymous7/19/04 7:22 PM
.*Re: BRK and the I Flag  koitsu7/18/04 07:19 AM
..*Re: BRK and the I Flag  Fx37/18/04 4:06 PM
..Re: BRK and the I Flag  blargg7/18/04 04:12 AM
.*Re: BRK and the I Flag  Disch7/18/04 02:30 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo