Skip to content

Commit

Permalink
cpu/z80/t6a84: Fix emscripton compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
algestam committed Dec 2, 2024
1 parent bfb156d commit d6d59ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/devices/cpu/z80/t6a84.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,23 @@ bool t6a84_device::memory_translate(int spacenum, int intention, offs_t &address

uint32_t t6a84_device::code_address(uint16_t address)
{
const uint32_t page_address = PAGE_SIZE * m_code_page + address;
const uint32_t page_address = DEVICE_PAGE_SIZE * m_code_page + address;
LOGMASKED(LOG_MEM, "CODE @ %06x => %06x\n", address, page_address);

return page_address;
}

uint32_t t6a84_device::data_address(uint16_t address)
{
const uint32_t page_address = PAGE_SIZE * m_data_page + address;
const uint32_t page_address = DEVICE_PAGE_SIZE * m_data_page + address;
LOGMASKED(LOG_MEM, "DATA @ %06x => %06x\n", address, page_address);

return page_address;
}

uint32_t t6a84_device::stack_address(uint16_t address)
{
const uint32_t page_address = PAGE_SIZE * m_stack_page + address;
const uint32_t page_address = DEVICE_PAGE_SIZE * m_stack_page + address;
LOGMASKED(LOG_MEM, "STACK @ %06x => %06x\n", address, page_address);

return page_address;
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/z80/t6a84.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class t6a84_device : public z80_device
uint32_t stack_address(uint16_t address);

protected:
static inline constexpr uint32_t PAGE_SIZE = 0x10000;
static inline constexpr uint32_t DEVICE_PAGE_SIZE = 0x10000;

t6a84_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor io_map);

Expand Down

0 comments on commit d6d59ce

Please sign in to comment.