2 ms·
I often wished I had access to the flag bits in C (or at least a somewhat portable subset). Would be very handy for writing CPU emulators :)
by flohofwoe 5y ago
I often wished I had access to the flag bits in C (or at least a somewhat portable subset). Would be very handy for writing CPU emulators :)
- spc476 5y agoHaving written a CPU emulator [1], I don't thunk it would have been of much use. The Intel CPUs typically don't set the flags on a MOV, but Motorola CPUs typically do. [1] https://github.com/spc476/mc6809 https://github.com/spc476/mc6809