chips icon indicating copy to clipboard operation
chips copied to clipboard

z80: fix compatibility with big-endian

Open rofl0r opened this issue 3 years ago • 0 comments

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 ...

rofl0r avatar Mar 02 '22 03:03 rofl0r