From 88e26b42f5872f611cf1692744d63caca4101280 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 30 Oct 2020 22:36:00 -0400 Subject: [PATCH] Fixed: PHP pushes only 8 bits regardless of mode. --- Processors/65816/Implementation/65816Storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/65816/Implementation/65816Storage.cpp b/Processors/65816/Implementation/65816Storage.cpp index 8359f8537..8c0b4249f 100644 --- a/Processors/65816/Implementation/65816Storage.cpp +++ b/Processors/65816/Implementation/65816Storage.cpp @@ -785,7 +785,7 @@ ProcessorStorage::ProcessorStorage() { /* 0x05 ORA d */ op(direct, ORA); /* 0x06 ASL d */ op(direct_rmw, ASL); /* 0x07 ORA [d] */ op(direct_indirect_long, ORA); - /* 0x08 PHP s */ op(stack_push, PHP); + /* 0x08 PHP s */ op(stack_push, PHP, AccessMode::Always8Bit); /* 0x09 ORA # */ op(immediate, ORA); /* 0x0a ASL A */ op(accumulator, ASL); /* 0x0b PHD s */ op(stack_push, PHD, AccessMode::Always8Bit);