summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-08-02 16:17:40 +0200
committer Olivier Galibert <galibert@pobox.com>2018-08-02 21:08:47 +0200
commit639c9b85fc21ab10dc98d73fafd49376041cf71c (patch)
tree3e0f120d7343210b91c0804668e2eec01f1229a2 /scripts/src
parentf8a26df4ada74502588709dcb5e7d4d0bf9c888a (diff)
memory: Allow simplified versions of handlers [O. Galibert]
A standard memory handler has as a prototype (where uX = u8, u16, u32 or u64): uX device::read(address_space &space, offs_t offset, uX mem_mask); void device::write(address_space &space, offs_t offset, uX data, uX mem_mask); We now allow simplified versions which are: uX device::read(offs_t offset, uX mem_mask); void device::write(offs_t offset, uX data, uX mem_mask); uX device::read(offs_t offset); void device::write(offs_t offset, uX data); uX device::read(); void device::write(uX data); Use them at will. Also consider (DECLARE_)(READ|WRITE)(8|16|32|64)_MEMBER on the way out, use the explicit prototypes. Same for lambdas in the memory map, the parameters are now optional following the same combinations.
Diffstat (limited to 'scripts/src')
0 files changed, 0 insertions, 0 deletions