ReXGlue SDK
Loading...
Searching...
No Matches
rex::ppc::VSCRRegister Struct Reference

#include <rex/ppc/context.h>

Public Member Functions

u32 Read () const noexcept
void Write (u32 word) noexcept

Public Attributes

u8 sat = 0
u8 nj = 0

Detailed Description

Vector status and control register (VSCR).

Member Function Documentation

◆ Read()

u32 rex::ppc::VSCRRegister::Read ( ) const
inlinenoexcept

Returns the register as mfvscr reads it.

Returns
The word with sat in bit 0 and nj in bit 16.

◆ Write()

void rex::ppc::VSCRRegister::Write ( u32 word)
inlinenoexcept

Sets the register as mtvscr writes it.

Parameters
wordThe word to store. Only bit 0 for sat and bit 16 for nj are kept.

Member Data Documentation

◆ nj

u8 rex::ppc::VSCRRegister::nj = 0

Non Java mode bit as mtvscr stored it.

◆ sat

u8 rex::ppc::VSCRRegister::sat = 0

Saturation flag, 1 once a saturating vector operation clamped a result.


The documentation for this struct was generated from the following file: