Fixed STA; it's the only operation that doesn't have extra cycles for crossing page boundaries

This commit is contained in:
Rob McMullen 2017-12-18 22:34:29 -08:00
parent 53ca2a61d5
commit 454e33269a
1 changed files with 1 additions and 0 deletions

1
6502.c
View File

@ -428,6 +428,7 @@ static void inst_SEI()
static void inst_STA()
{
* write_ptr() = A;
extra_cycles = 0; // STA has no addressing modes that use the extra cycle
}
static void inst_STX()