kspalaiologos / asmbf

The only true brainfuck-targetting assembler.
https://esolangs.org/wiki/Asm2bf
MIT License
109 stars 6 forks source link

Advanced conditional comparisons #83

Closed kspalaiologos closed 4 years ago

kspalaiologos commented 4 years ago

... in form of c [logical operation] [comparison operation], for example: candeq, candne, candle, candge, candlt, candgt, coreq, corne, corle, corge, corlt, corgt, supporting all comparison operations AND the following logical operations: and, or, xor. Also, I plan on implementing logical xor as a standalone instruction.

Example usage:

@isdigit
    cge r1, .0
    candle r1, .9
    clr r2
    cmov r2, 1
    ret
kspalaiologos commented 4 years ago

Done!