; Times tables from 1 to 10

start:
    LDA 1     ; Start at 1 times table
    STA table

loop:
    OUT
    ADD table ; Calculate next value of the times table
    JPC next
    JMP loop

next:
    LDA table
    ADI 1     ; Next table
    STA table
    SUI 11    ; Times table up to 10
    JPZ end
    LDI 1     ; Start at 1 x table
    JMP loop

end:
    HLT

table: .data 1 0