gasolinewaltz
New member
Hello all. Very new here, although I admit I've been lurking for quite some time.
I've been thinking about how to approach emulation for quite some time. I pretty much exclusively program in C++, trying not to abuse OO concepts etc..
Anyway, a little while back I was watching a video on algorithms for a class I was taking and in the video the prof talks about the "4241 microprocessor," which preforms an extremely simple (perhaps the simplest!) set of operations. So, I set out to program how I thought it should be implemented, and I came up with this:
4241.h
4241.cpp
program.cpp
I know its probably not the most optimized, but I feel like it's missing something to be technically an "emulator"? It works fine, I did a couple of tests with sample progs etc... I tried finding specs on the chip but I'm starting to think that it was made up for the class in the video.
I'm moving on to a slightly bigger project, but I want to know if my approach is at least decent before I start going further.
I've been thinking about how to approach emulation for quite some time. I pretty much exclusively program in C++, trying not to abuse OO concepts etc..
Anyway, a little while back I was watching a video on algorithms for a class I was taking and in the video the prof talks about the "4241 microprocessor," which preforms an extremely simple (perhaps the simplest!) set of operations. So, I set out to program how I thought it should be implemented, and I came up with this:
4241.h
4241.cpp
program.cpp
I know its probably not the most optimized, but I feel like it's missing something to be technically an "emulator"? It works fine, I did a couple of tests with sample progs etc... I tried finding specs on the chip but I'm starting to think that it was made up for the class in the video.
I'm moving on to a slightly bigger project, but I want to know if my approach is at least decent before I start going further.