each individual register is a separate object and observable . this handy method will add the given observer to each one . concode_field_sep int VADDR concode_elem_sep int DEFAULT_STATUS_VALUE concode_elem_sep int EXCEPTION_LEVEL concode_elem_sep Register[] registers concode_elem_sep int CAUSE concode_elem_sep int EPC concode_elem_sep int STATUS concode_field_sep int getNumber concode_elem_sep int getValue concode_elem_sep void resetRegisters concode_elem_sep int getRegisterPosition concode_elem_sep int updateRegister concode_elem_sep int updateRegister concode_elem_sep void showRegisters concode_elem_sep Register[] getRegisters concode_elem_sep Register getRegister concode_elem_sep void deleteRegistersObserver
void function ( Observer arg0 ) { for ( int loc0 = 0 ; loc0 < registers . length ; loc0 ++ ) { registers [ loc0 ] . addObserver ( arg0 ) ; } }