cen64/debugger/register_model.cpp
Derek "Turtle" Roe 8b89df2fdc See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-01 18:44:21 -05:00

29 lines
582 B
C++

//
// register_model.cpp: CEN64D register model (MVC).
//
// CEN64D: Cycle-Accurate Nintendo 64 Debugger
// Copyright (C) 2015, Tyler J. Stachecki.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "register_model.h"
RegisterModel::RegisterModel(unsigned num_regs) {
data = new quint64[num_regs];
}
RegisterModel::~RegisterModel() {
delete[] data;
}
quint64 RegisterModel::getIndex(unsigned i) {
return data[i];
}
void RegisterModel::setIndex(unsigned i, quint64 d) {
data[i] = d;
}