Template:Regsimple2/doc

From WiiBrew
< Template:Regsimple2
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template can be used for simple registers with two fields, especially where the first field is just Unimplemented bits (i.e. registers where the top bits are unused).

Usage

{{regsimple2 | MAGIC_REGISTER | addr=0x1337 | bits=32 | split=24 | access = W}}

Gives:

MAGIC_REGISTER (0x1337)
  3124 230
Access U W


The width is adjusted automagically:

{{regsimple2 | MAGIC_REGISTER | addr=0x1337 | bits=32 | split=8 | access = W}}

MAGIC_REGISTER (0x1337)
  318 70
Access U W


See also