Mercurial > repos > blastem
comparison z80.cpu @ 1731:366b65d91614
Implemented DD/FD prefixes for EX in new Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 02 Feb 2019 20:43:20 -0800 |
parents | 71f7827ff30a |
children | 3b286be82ea5 |
comparison
equal
deleted
inserted
replaced
1730:71f7827ff30a | 1731:366b65d91614 |
---|---|
664 ocall read_8 | 664 ocall read_8 |
665 xchg l scratch1 | 665 xchg l scratch1 |
666 cycles 1 | 666 cycles 1 |
667 mov sp scratch2 | 667 mov sp scratch2 |
668 ocall write_8 | 668 ocall write_8 |
669 add 1 sp wz | 669 add 1 sp scratch1 |
670 mov wz scratch1 | |
671 ocall read_8 | 670 ocall read_8 |
672 xchg h scratch1 | 671 xchg h scratch1 |
673 cycles 2 | 672 cycles 2 |
674 mov wz scratch2 | 673 add 1 sp scratch2 |
675 ocall write_8 | 674 ocall write_8 |
675 lsl h 8 wz | |
676 or l wz wz | |
677 | |
678 dd 11100011 ex_sp_ix | |
679 mov sp scratch1 | |
680 ocall read_8 | |
681 mov scratch1 wz | |
682 mov ix scratch1 | |
683 cycles 1 | |
684 mov sp scratch2 | |
685 ocall write_8 | |
686 add 1 sp scratch1 | |
687 ocall read_8 | |
688 lsl scratch1 8 scratch1 | |
689 or scratch1 wz wz | |
690 lsr ix 8 scratch1 | |
691 cycles 2 | |
692 add 1 sp scratch2 | |
693 ocall write_8 | |
694 mov wz ix | |
695 | |
696 fd 11100011 ex_sp_iy | |
697 mov sp scratch1 | |
698 ocall read_8 | |
699 mov scratch1 wz | |
700 mov iy scratch1 | |
701 cycles 1 | |
702 mov sp scratch2 | |
703 ocall write_8 | |
704 add 1 sp scratch1 | |
705 ocall read_8 | |
706 lsl scratch1 8 scratch1 | |
707 or scratch1 wz wz | |
708 lsr iy 8 scratch1 | |
709 cycles 2 | |
710 add 1 sp scratch2 | |
711 ocall write_8 | |
712 mov wz iy | |
676 | 713 |
677 10000RRR add_reg | 714 10000RRR add_reg |
678 add a main.R a | 715 add a main.R a |
679 update_flags SZYHVXN0C | 716 update_flags SZYHVXN0C |
680 | 717 |