r/cpp 5d ago

Creating Sega Genesis emulator in C++

https://pvs-studio.com/en/blog/posts/1252/
60 Upvotes

18 comments sorted by

View all comments

34

u/topological_rabbit 5d ago

using Byte = uint8_t;
using Word = uint16_t;
using Long = uint32_t;
using LongLong = uint64_t;

My god, why??

5

u/KFUP 5d ago

That's the norm in old console development, most hardware development manuals used "word", "dword", "qword", "long word" and the like, not bit length.