Skip to content

Idea: get_32/64 routines to work on table/offsets as well as components #11

@karlp

Description

@karlp

Currently, the helpers to get/set 32/64 bit values from 16bit registers expect to get each register as a parameter.

regs = read_registers(0x2000, 20)
local number = mb.get_s64(regs[10],regs[11], regs[12], regs[13])

when pulling out multiple numbers, it might be nice to support indexing a register table instead? Could automatically attempt to do the right thing based on the type of the first argument?

regs = read_registers(0x2000, 20)
local number = mb.get_s64(regs, 10)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions