POLY START 0 
    .x^4
    LDA x
    MUL x
    MUL x 
    MUL x
    STA res
    CLEAR A
    .+2x^3
    LDA x
    MUL x
    MUL x
    MUL #2
    ADD res
    STA res
    CLEAR A
    .+3x^2
    LDA x 
    MUL x
    MUL #3
    ADD res
    STA res
    CLEAR A
    .+4x
    LDA x 
    MUL #4
    ADD res
    STA res
    CLEAR A
    .+5
    LDA res
    ADD #5
    STA res
    CLEAR A
HALT J HALT
    END POLY

x WORD 2
res RESW 1
