git @ Cat's Eye Technologies SixtyPical / 0.3 eg / conditional2.p60
0.3

Tree @0.3 (Download .tar.gz)

conditional2.p60 @0.3raw · history · blame

routine chrout
  inputs a
  trashes a
  @ 65490

routine main
  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
    }
}