comparison z80.cpu @ 1728:b0e01e64d76d

Implemented RES instruction in new Z80 core
author Michael Pavone <pavone@retrodev.com>
date Sat, 02 Feb 2019 15:35:15 -0800
parents 9ea0b4cc8f02
children bd13d017f16f
comparison
equal deleted inserted replaced
1727:9ea0b4cc8f02 1728:b0e01e64d76d
1749 cycles 1 1749 cycles 1
1750 lsl 1 B tmp 1750 lsl 1 B tmp
1751 lsr wz 8 last_flag_result 1751 lsr wz 8 last_flag_result
1752 and scratch1 tmp tmp 1752 and scratch1 tmp tmp
1753 update_flags SZH1PN0 1753 update_flags SZH1PN0
1754
1755 cb 10BBBRRR res_reg
1756 local tmp 8
1757 lsl 1 B tmp
1758 not tmp tmp
1759 and main.R tmp main.R
1760
1761 cb 10BBB110 res_hl
1762 z80_fetch_hl
1763 cycles 1
1764 local tmp 8
1765 lsl 1 B tmp
1766 not tmp tmp
1767 and scratch1 tmp scratch1
1768 z80_store_hl
1769
1770 z80_res_index
1771 arg bit 8
1772 arg tmp 8
1773 lsl 1 bit tmp
1774 not tmp tmp
1775 mov wz scratch1
1776 ocall read_8
1777 cycles 1
1778 and scratch1 tmp tmp
1779 mov tmp scratch1
1780 z80_store_index
1781
1782 ddcb 10BBB110 res_ixd
1783 local tmp 8
1784 z80_res_index B tmp
1785
1786 ddcb 10BBBRRR res_ixd_reg
1787 z80_res_index B main.R
1788
1789 fdcb 10BBB110 res_iyd
1790 local tmp 8
1791 z80_res_index B tmp
1792
1793 fdcb 10BBBRRR res_iyd_reg
1794 z80_res_index B main.R