Mercurial > repos > blastem
comparison z80inst.h @ 2362:b6c5a0fa3dfc
Refactor debugger a bit. Allow types other than integers to be passed in expressions and stored in arrays. Better namespace support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 06 Nov 2023 22:41:33 -0800 |
parents | 1625555e346e |
children |
comparison
equal
deleted
inserted
replaced
2361:3350b3c8faa8 | 2362:b6c5a0fa3dfc |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Michael Pavone | 2 Copyright 2013 Michael Pavone |
3 This file is part of BlastEm. | 3 This file is part of BlastEm. |
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 #ifndef Z80INST_H_ | 6 #ifndef Z80INST_H_ |
7 #define Z80INST_H_ | 7 #define Z80INST_H_ |
8 | 8 |
135 uint8_t ea_reg; | 135 uint8_t ea_reg; |
136 uint16_t immed; | 136 uint16_t immed; |
137 uint16_t opcode_bytes; | 137 uint16_t opcode_bytes; |
138 } z80inst; | 138 } z80inst; |
139 | 139 |
140 extern const char *z80_regs[Z80_USE_IMMED]; | |
141 | |
140 uint8_t * z80_decode(uint8_t * istream, z80inst * decoded); | 142 uint8_t * z80_decode(uint8_t * istream, z80inst * decoded); |
141 int z80_disasm(z80inst * decoded, char * dst, uint16_t address); | 143 int z80_disasm(z80inst * decoded, char * dst, uint16_t address); |
142 uint8_t z80_high_reg(uint8_t reg); | 144 uint8_t z80_high_reg(uint8_t reg); |
143 uint8_t z80_low_reg(uint8_t reg); | 145 uint8_t z80_low_reg(uint8_t reg); |
144 uint8_t z80_word_reg(uint8_t reg); | 146 uint8_t z80_word_reg(uint8_t reg); |