Bob
Bob
CC#
Created by Bob on 4/29/2024 in #help
Kind of a low-level question about bits and such
Hi .. I am writing an emulator for an old computer, and I want to implement a tag for each memory location (max 32K). I am thinking about using something like a ushort or uint that has specific bits defined .. maybe a value field too. Like a "breakpoint" bit. it's a 16 bit machine, so maybe the tag will something like "if the accumulator is equal to" portion. I don't want it to slow down the "CPU" too much (having to lookaside and do a bunch of calculations for each instruction. Got any thoughts on this. (I know how I would do it in assembler, but not sure how well C# handles things like this.) Thanks!
6 replies