git @ Cat's Eye Technologies SixtyPical / 16-bit-compare eg / rudiments / if.60p
16-bit-compare

Tree @16-bit-compare (Download .tar.gz)

if.60p @16-bit-compareraw · history · blame

define main routine
  inputs a
  outputs a
  trashes z, n, c
{
    cmp a, 42
    if z {
        ld a, 7
    } else {
        ld a, 23
    }
}