File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,6 +211,17 @@ impl CoreRegs {
211211 }
212212 }
213213
214+ /// Get value from `a8` register.
215+ pub fn a8 ( & self , idx : impl Into < Reg32 > ) -> Option < u8 > { self . a8 [ idx. into ( ) . to_usize ( ) ] }
216+ /// Get value from `a16` register.
217+ pub fn a16 ( & self , idx : impl Into < Reg32 > ) -> Option < u16 > { self . a16 [ idx. into ( ) . to_usize ( ) ] }
218+ /// Get value from `a32` register.
219+ pub fn a32 ( & self , idx : impl Into < Reg32 > ) -> Option < u32 > { self . a32 [ idx. into ( ) . to_usize ( ) ] }
220+ /// Get value from `a64` register.
221+ pub fn a64 ( & self , idx : impl Into < Reg32 > ) -> Option < u64 > { self . a64 [ idx. into ( ) . to_usize ( ) ] }
222+ /// Get value from `a128` register.
223+ pub fn a128 ( & self , idx : impl Into < Reg32 > ) -> Option < u128 > { self . a128 [ idx. into ( ) . to_usize ( ) ] }
224+
214225 /// Extracts value for any type of registers
215226 pub fn get ( & self , reg : impl Into < Reg > ) -> RegValue {
216227 match reg. into ( ) {
You can’t perform that action at this time.
0 commit comments