// Tests creating, assigning returning and calling pointers to non-args no-return functions
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
main: {
    .label _1 = 3
    .label i = 2
    lda #0
    sta i
  b2:
    inc i
    lda i
    jsr getfn
    jsr bi__1
    jmp b2
  bi__1:
    jmp (_1)
}
// getfn(byte register(A) b)
getfn: {
    .label return = 3
    and #1
    cmp #0
    beq b1
    lda #<fn2
    sta return
    lda #>fn2
    sta return+1
    rts
  b1:
    lda #<fn1
    sta return
    lda #>fn1
    sta return+1
    rts
}
fn2: {
    .label BGCOL = $d021
    inc BGCOL
    rts
}
fn1: {
    .label BORDERCOL = $d020
    inc BORDERCOL
    rts
}
