Mercurial > repos > blastem
comparison z80_to_x86.c @ 755:7306b3967c51
Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 27 Jun 2015 12:17:18 -0700 |
parents | 043393b79e28 |
children | 724bbec47f86 |
comparison
equal
deleted
inserted
replaced
754:cfa402c6ced8 | 755:7306b3967c51 |
---|---|
1949 } | 1949 } |
1950 | 1950 |
1951 uint8_t * z80_interp_handler(uint8_t opcode, z80_context * context) | 1951 uint8_t * z80_interp_handler(uint8_t opcode, z80_context * context) |
1952 { | 1952 { |
1953 if (!context->interp_code[opcode]) { | 1953 if (!context->interp_code[opcode]) { |
1954 if (opcode == 0xCB || (opcode >= 0xDD && opcode & 0xF == 0xD)) { | 1954 if (opcode == 0xCB || (opcode >= 0xDD && (opcode & 0xF) == 0xD)) { |
1955 fprintf(stderr, "Encountered prefix byte %X at address %X. Z80 interpeter doesn't support those yet.", opcode, context->pc); | 1955 fprintf(stderr, "Encountered prefix byte %X at address %X. Z80 interpeter doesn't support those yet.", opcode, context->pc); |
1956 exit(1); | 1956 exit(1); |
1957 } | 1957 } |
1958 uint8_t codebuf[8]; | 1958 uint8_t codebuf[8]; |
1959 memset(codebuf, 0, sizeof(codebuf)); | 1959 memset(codebuf, 0, sizeof(codebuf)); |