git @ Cat's Eye Technologies SixtyPical / master eg / rudiments / conditional.60p
master

Tree @master (Download .tar.gz)

conditional.60p @masterraw · history · blame

// Should print YN

include "chrout.60p"

define main routine
  trashes a, x, y, z, n, c, v
{
    ld a, 0
    if z {
        ld a, 89
        call chrout
    } else {
        ld a, 78
        call chrout
    }

    ld a, 1
    if z {
        ld a, 89
        call chrout
    } else {
        ld a, 78
        call chrout
    }
}