// Tests that immediate zero values are reused - even when assigning to words
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
main: {
    .label w = 2
    lda #<0
    sta w
    sta w+1
    tax
  b1:
    txa
    clc
    adc w
    sta w
    lda #0
    adc w+1
    sta w+1
    inx
    cpx #$b
    bne b1
    rts
}
