27 lines
384 B
C++
27 lines
384 B
C++
//
|
|
// Created by Selim Mustafaev on 09.09.2023.
|
|
//
|
|
|
|
#ifndef NES_SHIFTER_H
|
|
#define NES_SHIFTER_H
|
|
|
|
#include <cstdint>
|
|
|
|
namespace nes {
|
|
|
|
class Shifter {
|
|
public:
|
|
Shifter();
|
|
void load(uint8_t lo, uint8_t hi);
|
|
void shift();
|
|
uint16_t getValue(uint8_t offset);
|
|
|
|
public:
|
|
uint16_t _lo;
|
|
uint16_t _hi;
|
|
};
|
|
|
|
}
|
|
|
|
#endif //NES_SHIFTER_H
|