Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/z80/t6a84: Fix emscripten compile issue #13042

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading