// Test that volatile vars are turned into load/store
.pc = $801 "Basic"
:BasicUpstart(__bbegin)
.pc = $80d "Program"
  .label SCREEN = $400
  .label i = 2
__bbegin:
  lda #3
  sta.z i
  jsr main
  rts
main: {
  __b1:
    lda.z i
    cmp #7
    bcc __b2
    rts
  __b2:
    ldy.z i
    tya
    sta SCREEN,y
    inc.z i
    jmp __b1
}
