comparison z80.cpu @ 1729:bd13d017f16f

Implemented SET instruction in Z80 core
author Michael Pavone <pavone@retrodev.com>
date Sat, 02 Feb 2019 15:42:45 -0800
parents b0e01e64d76d
children 71f7827ff30a
comparison
equal deleted inserted replaced
1728:b0e01e64d76d 1729:bd13d017f16f
1790 local tmp 8 1790 local tmp 8
1791 z80_res_index B tmp 1791 z80_res_index B tmp
1792 1792
1793 fdcb 10BBBRRR res_iyd_reg 1793 fdcb 10BBBRRR res_iyd_reg
1794 z80_res_index B main.R 1794 z80_res_index B main.R
1795
1796 cb 11BBBRRR set_reg
1797 local tmp 8
1798 lsl 1 B tmp
1799 or main.R tmp main.R
1800
1801 cb 11BBB110 set_hl
1802 z80_fetch_hl
1803 cycles 1
1804 local tmp 8
1805 lsl 1 B tmp
1806 or scratch1 tmp scratch1
1807 z80_store_hl
1808
1809 z80_set_index
1810 arg bit 8
1811 arg tmp 8
1812 lsl 1 bit tmp
1813 mov wz scratch1
1814 ocall read_8
1815 cycles 1
1816 or scratch1 tmp tmp
1817 mov tmp scratch1
1818 z80_store_index
1819
1820 ddcb 11BBB110 set_ixd
1821 local tmp 8
1822 z80_set_index B tmp
1823
1824 ddcb 11BBBRRR set_ixd_reg
1825 z80_set_index B main.R
1826
1827 fdcb 11BBB110 set_iyd
1828 local tmp 8
1829 z80_set_index B tmp
1830
1831 fdcb 11BBBRRR set_iyd_reg
1832 z80_set_index B main.R