Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z80: fix compatibility with big-endian #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rofl0r
Copy link

@rofl0r rofl0r commented Mar 2, 2022

the macros used are exposed by default on gcc >= 4.8.x, and clang 3.1
and most other compilers.

before:
$ qemu-ppc z80test zexall.cim
*** TEST: zexall.cim

*** 25390418 instructions executed on 25390418 cycles (expected=268500992, diff=46734978649)

after:
$ qemu-ppc z80test zexall.cim
*** TEST: zexall.cim
Z80all instruction exerciser
<adc,sbc> hl,<bc,de,hl,sp>.... OK
add hl,<bc,de,hl,sp>.......... OK
...

the macros used are exposed by default on gcc >= 4.8.x, and clang 3.1
and most other compilers.

before:
$ qemu-ppc z80test zexall.cim
*** TEST: zexall.cim

*** 25390418 instructions executed on 25390418 cycles (expected=268500992, diff=46734978649)

after:
$ qemu-ppc z80test zexall.cim
*** TEST: zexall.cim
Z80all instruction exerciser
<adc,sbc> hl,<bc,de,hl,sp>....  OK
add hl,<bc,de,hl,sp>..........  OK
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant