10-09-2014, 10:18 PM
SPR=special purpose register
GPR=general purpose register
To set the flags, there needs to be a compare operation. The flags will only re update once a new compare op has been sent to the cpu. IIRC
Most people(including me) in minecraft have a Compare instruction then followed by a Flag register read.
The Flag register read can be BEQ(branch if equal to), BGT(branch if greater than), BLT(branch if less than), BNEQ(branch if not equal to)....etc, along these lines of any amount of possible conditions.
This then reads from the proper flags register and performs a jump to a specified address(usually found in the IMM or a pointer).
GPR=general purpose register
To set the flags, there needs to be a compare operation. The flags will only re update once a new compare op has been sent to the cpu. IIRC
Most people(including me) in minecraft have a Compare instruction then followed by a Flag register read.
The Flag register read can be BEQ(branch if equal to), BGT(branch if greater than), BLT(branch if less than), BNEQ(branch if not equal to)....etc, along these lines of any amount of possible conditions.
This then reads from the proper flags register and performs a jump to a specified address(usually found in the IMM or a pointer).