t6a84: no need for PAGE_SIZE, it's a given that a 16-bit address space has a length of 0x10000

This commit is contained in:
hap 2024-12-04 23:52:08 +01:00
parent af81cba31f
commit 991bdf14be
3 changed files with 4 additions and 5 deletions

View File

@ -1604,6 +1604,7 @@ distinguished by the changed copyright from Magnavox to N.A.P. (North American P
</software>
<software name="gtwallst">
<!-- board game -->
<description>The Great Wall Street Fortune Hunt (Europe, USA)</description>
<year>1983</year>
<publisher>Philips</publisher>

View File

@ -139,7 +139,7 @@ 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 = m_code_page << 16 | address;
LOGMASKED(LOG_MEM, "CODE @ %06x => %06x\n", address, page_address);
return page_address;
@ -147,7 +147,7 @@ uint32_t t6a84_device::code_address(uint16_t 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 = m_data_page << 16 | address;
LOGMASKED(LOG_MEM, "DATA @ %06x => %06x\n", address, page_address);
return page_address;
@ -155,7 +155,7 @@ uint32_t t6a84_device::data_address(uint16_t 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 = m_stack_page << 16 | address;
LOGMASKED(LOG_MEM, "STACK @ %06x => %06x\n", address, page_address);
return page_address;

View File

@ -41,8 +41,6 @@ public:
uint32_t stack_address(uint16_t address);
protected:
static inline constexpr uint32_t 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);
// device-level overrides