mirror of https://github.com/nmlgc/ReC98.git
11 lines
381 B
C++
11 lines
381 B
C++
// Flag comparisons
|
|
// ----------------
|
|
// When used inside a conditional expression like
|
|
// if(FLAGS_*) { goto some_label; | return; }
|
|
// these assemble into the single given instruction. Apply the ! operator to
|
|
// get the N versions.
|
|
|
|
#define FLAGS_CARRY (_FLAGS & 0x01) /* JC / JAE / JB */
|
|
#define FLAGS_ZERO (_FLAGS & 0x40) /* JZ */
|
|
#define FLAGS_SIGN (_FLAGS & 0x80) /* JS */
|