Mercurial > repos > blastem
comparison z80.cpu @ 1714:e170a0f75c4f
fix half-carry for or and xor in new Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 29 Jan 2019 22:17:15 -0800 |
parents | 0a9a88b3d061 |
children | 4fd84c3efc72 |
comparison
equal
deleted
inserted
replaced
1713:0264d8b288e2 | 1714:e170a0f75c4f |
---|---|
581 and a scratch1 a | 581 and a scratch1 a |
582 update_flags SZYH1PXN0C0 | 582 update_flags SZYH1PXN0C0 |
583 | 583 |
584 10110RRR or_reg | 584 10110RRR or_reg |
585 or a main.R a | 585 or a main.R a |
586 update_flags SZYH1PXN0C0 | 586 update_flags SZYH0PXN0C0 |
587 | 587 |
588 10110110 or_hl | 588 10110110 or_hl |
589 z80_fetch_hl | 589 z80_fetch_hl |
590 or a scratch1 a | 590 or a scratch1 a |
591 update_flags SZYH1PXN0C0 | 591 update_flags SZYH0PXN0C0 |
592 | 592 |
593 11110110 or_immed | 593 11110110 or_immed |
594 z80_fetch_immed | 594 z80_fetch_immed |
595 or a scratch1 a | 595 or a scratch1 a |
596 update_flags SZYH1PXN0C0 | 596 update_flags SZYH0PXN0C0 |
597 | 597 |
598 10101RRR xor_reg | 598 10101RRR xor_reg |
599 xor a main.R a | 599 xor a main.R a |
600 update_flags SZYH1PXN0C0 | 600 update_flags SZYH0PXN0C0 |
601 | 601 |
602 10101110 xor_hl | 602 10101110 xor_hl |
603 z80_fetch_hl | 603 z80_fetch_hl |
604 xor a scratch1 a | 604 xor a scratch1 a |
605 update_flags SZYH1PXN0C0 | 605 update_flags SZYH0PXN0C0 |
606 | 606 |
607 11101110 xor_immed | 607 11101110 xor_immed |
608 z80_fetch_immed | 608 z80_fetch_immed |
609 xor a scratch1 a | 609 xor a scratch1 a |
610 update_flags SZYH1PXN0C0 | 610 update_flags SZYH0PXN0C0 |
611 | 611 |
612 10111RRR cp_reg | 612 10111RRR cp_reg |
613 cmp main.R a | 613 cmp main.R a |
614 update_flags SZYHVXN1C | 614 update_flags SZYHVXN1C |
615 | 615 |