comparison z80.cpu @ 1741:3dbfb4524ad2

Implemented RLD/RRD in new Z80 core
author Michael Pavone <pavone@retrodev.com>
date Mon, 04 Feb 2019 22:51:56 -0800
parents 28ab56ff8cea
children 6290c88949bd
comparison
equal deleted inserted replaced
1740:28ab56ff8cea 1741:3dbfb4524ad2
2225 dispatch O 2225 dispatch O
2226 2226
2227 fd OOOOOOOO fd_normal 2227 fd OOOOOOOO fd_normal
2228 dispatch O 2228 dispatch O
2229 2229
2230 ed 01101111 rld
2231 local tmp 8
2232 local tmp2 8
2233 z80_fetch_hl
2234 cycles 4
2235
2236 lsr scratch1 4 tmp
2237
2238 lsl scratch1 4 scratch1
2239
2240 and 0xF a tmp2
2241 or tmp2 scratch1 scratch1
2242
2243 and 0xF0 a a
2244 or tmp a a
2245 update_flags SZYH0XPN0
2246 z80_store_hl
2247
2248 ed 01100111 rrd
2249 local tmp 8
2250 local tmp2 8
2251 z80_fetch_hl
2252 cycles 4
2253
2254 and 0xF scratch1 tmp
2255 lsr scratch1 4 scratch1
2256
2257 lsl a 4 tmp2
2258 or tmp2 scratch1 scratch1
2259
2260 and 0xF0 a a
2261 or tmp a a
2262 update_flags SZYH0XPN0
2263 z80_store_hl
2264