Added missing PHP and PLP instructions

This commit is contained in:
Leeland Heins 2018-12-18 23:31:48 -06:00 committed by GitHub
parent 0e8f3e5944
commit 1ef4c78d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

10
as65.pl
View File

@ -565,6 +565,10 @@ my %mnemonics = (
# PHA Implied PHA 48 1 3
'Implied' => 0x48,
},
'PHP' => {
# PHP Implied PHP 08 1 3
'Implied' => 0x48,
},
'PHX' => {
# PHX Implied PHX DA 1 3
'Implied' => 0xda,
@ -577,6 +581,10 @@ my %mnemonics = (
# PLA Implied PLA 68 1 4
'Implied' => 0x68,
},
'PLP' => {
# PLP Implied PLP 68 1 4
'Implied' => 0x28,
},
'PLX' => {
# PLX Implied PLX FA 1 4
'Implied' => 0xfa,
@ -1840,9 +1848,11 @@ sub generate_Relative {
# INY C8
# NOP EA
# PHA 48
# PHP 08
# PHX DA
# PHY 5A
# PLA 68
# PLP 28
# PLX FA
# PLY 7A
# RTI 40