WARDuino icon indicating copy to clipboard operation
WARDuino copied to clipboard

Move address util functions into Module struct

Open MaartenS11 opened this issue 1 year ago • 0 comments

Currently the debugger uses a lambda

auto toVA = [m](uint8_t *addr) { return toVirtualAddress(addr, m); };

and then later the code uses

toVA(m->pc_ptr)

It's just a short way of writing toVirtualAddress(m->pc_ptr, m). By moving the virtual adress conversion into a module function we can do something like m->toVirtualAddress(addr) which is a bit better and doesn't use the lambda.

MaartenS11 avatar Apr 05 '24 11:04 MaartenS11