Mercurial > repos > blastem
changeset 1732:3b286be82ea5
Implemented ld a,r and ld a,i in new Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 02 Feb 2019 21:22:02 -0800 |
parents | 366b65d91614 |
children | 1f0a86f5e055 |
files | z80.cpu |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/z80.cpu Sat Feb 02 20:43:20 2019 -0800 +++ b/z80.cpu Sat Feb 02 21:22:02 2019 -0800 @@ -11,6 +11,7 @@ alt 8 b' c' d' e' h' l' f' a' i 8 r 8 + rhigh 8 iff1 8 iff2 8 imode 8 @@ -389,8 +390,22 @@ ed 01001111 ld_r_a mov a r + and 0x80 a rhigh cycles 1 +ed 01011111 ld_a_r + cycles 1 + and 0x7F r a + or rhigh a a + update_flags SZYH0XN0 + mov iff2 pvflag + +ed 01010111 ld_a_i + cycles 1 + mov i a + update_flags SZYH0XN0 + mov iff2 pvflag + 00000001 ld_bc_immed meta high b meta low c