git @ Cat's Eye Technologies SixtyPical / semaphore-setup eg / rudiments / conditional2.60p
semaphore-setup

Tree @semaphore-setup (Download .tar.gz)

conditional2.60p @semaphore-setupraw · history · blame

// Include `support/${PLATFORM}.60p` before this source
// Should print YA

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

    ld a, 65
    call chrout

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