comparison z80.cpu @ 1722:ac809d044cab

Implemented the rest of the rotate instructions in new Z80 core
author Michael Pavone <pavone@retrodev.com>
date Thu, 31 Jan 2019 23:03:51 -0800
parents 0e5df2bc0f9f
children b757ebc59851
comparison
equal deleted inserted replaced
1721:0e5df2bc0f9f 1722:ac809d044cab
1402 rlc tmp 1 tmp 1402 rlc tmp 1 tmp
1403 update_flags SZYH0PXN0C 1403 update_flags SZYH0PXN0C
1404 mov tmp scratch1 1404 mov tmp scratch1
1405 z80_store_hl 1405 z80_store_hl
1406 1406
1407 ddcb 00010110 rl_ixd 1407 z80_rl_index
1408 local tmp 8 1408 arg tmp 8
1409 mov wz scratch1 1409 mov wz scratch1
1410 ocall read_8 1410 ocall read_8
1411 cycles 1 1411 cycles 1
1412 mov scratch1 tmp 1412 mov scratch1 tmp
1413 rlc tmp 1 tmp 1413 rlc tmp 1 tmp
1414 update_flags SZYH0PXN0C 1414 update_flags SZYH0PXN0C
1415 mov tmp scratch1 1415 mov tmp scratch1
1416 z80_store_index 1416 z80_store_index
1417 1417
1418 ddcb 00010110 rl_ixd
1419 local tmp 8
1420 z80_rl_index tmp
1421
1418 fdcb 00010110 rl_iyd 1422 fdcb 00010110 rl_iyd
1419 local tmp 8 1423 local tmp 8
1424 z80_rl_index tmp
1425
1426
1427 ddcb 00010RRR rl_ixd_reg
1428 z80_rl_index main.R
1429
1430 fdcb 00010RRR rl_iyd_reg
1431 z80_rl_index main.R
1432
1433 cb 00001RRR rrc
1434 ror main.R 1 main.R
1435 update_flags SZYH0PXN0C
1436
1437 cb 00001110 rrc_hl
1438 local tmp 8
1439 z80_fetch_hl
1440 mov scratch1 tmp
1441 ror tmp 1 tmp
1442 update_flags SZYH0PXN0C
1443 mov tmp scratch1
1444 z80_store_hl
1445
1446 z80_rrc_index
1447 arg tmp 8
1420 mov wz scratch1 1448 mov wz scratch1
1421 ocall read_8 1449 ocall read_8
1422 cycles 1 1450 cycles 1
1423 mov scratch1 tmp 1451 mov scratch1 tmp
1424 rlc tmp 1 tmp 1452 ror tmp 1 tmp
1425 update_flags SZYH0PXN0C 1453 update_flags SZYH0PXN0C
1426 mov tmp scratch1 1454 mov tmp scratch1
1427 z80_store_index 1455 z80_store_index
1456
1457 ddcb 00001110 rrc_ixd
1458 local tmp 8
1459 z80_rrc_index tmp
1460
1461 ddcb 00001RRR rrc_ixd_reg
1462 z80_rrc_index main.R
1463
1464 fdcb 00001110 rrc_iyd
1465 local tmp 8
1466 z80_rrc_index tmp
1467
1468 fdcb 00001RRR rrc_iyd_reg
1469 z80_rrc_index main.R
1470
1471 cb 00011RRR rr
1472 rrc main.R 1 main.R
1473 update_flags SZYH0PXN0C
1474
1475 cb 00011110 rr_hl
1476 local tmp 8
1477 z80_fetch_hl
1478 mov scratch1 tmp
1479 rrc tmp 1 tmp
1480 update_flags SZYH0PXN0C
1481 mov tmp scratch1
1482 z80_store_hl
1483
1484 z80_rr_index
1485 arg tmp 8
1486 mov wz scratch1
1487 ocall read_8
1488 cycles 1
1489 mov scratch1 tmp
1490 rrc tmp 1 tmp
1491 update_flags SZYH0PXN0C
1492 mov tmp scratch1
1493 z80_store_index
1494
1495 ddcb 00011110 rr_ixd
1496 local tmp 8
1497 z80_rr_index tmp
1498
1499 ddcb 00011RRR rr_ixd_reg
1500 z80_rr_index main.R
1501
1502 fdcb 00011110 rr_iyd
1503 local tmp 8
1504 z80_rr_index tmp
1505
1506 fdcb 00011RRR rr_iyd_reg
1507 z80_rr_index main.R