Mercurial > repos > blastem
diff backend.h @ 1703:49a52c737bf0
Fix zero flag calculation in CPU DSL
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 28 Jan 2019 19:24:04 -0800 |
parents | 360d5bab199f |
children | 33ec5df77fac |
line wrap: on
line diff
--- a/backend.h Sun Jan 27 14:37:37 2019 -0800 +++ b/backend.h Mon Jan 28 19:24:04 2019 -0800 @@ -96,6 +96,8 @@ code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk const * memmap, uint32_t num_chunks, ftype fun_type, code_ptr *after_inc); void * get_native_pointer(uint32_t address, void ** mem_pointers, cpu_options * opts); uint16_t read_word(uint32_t address, void **mem_pointers, cpu_options *opts, void *context); +uint8_t read_byte(uint32_t address, void **mem_pointers, cpu_options *opts, void *context); +void write_byte(uint32_t address, uint8_t value, void **mem_pointers, cpu_options *opts, void *context); memmap_chunk const *find_map_chunk(uint32_t address, cpu_options *opts, uint16_t flags, uint32_t *size_sum); uint32_t chunk_size(cpu_options *opts, memmap_chunk const *chunk); uint32_t ram_size(cpu_options *opts);