can someone please help?i'm very new to assmbly language .i used ASMiDE for HCS12.
i want to write a prog.

that will

1.add the each indivvidual entry a set say A to the corresponding entry of another set say B ie A={1,2,3,........,10},B={1,2,3.........10}
2. store this as another set say C={1+1,2+2,3+3,.......10+10) starting at $1020
3.then sum all entries in set C and store in $1030

Below is what i have so far but its not showing anything in location $1020 i have no idea what the prob is

            ORG    $1000
A            DB      1,2,3,4,5,6,7,9,10
            ORG    $1010
B            DB      1,2,3,4,5,6,7,9,10
            ORG    1020
C            DB      10
            ORG    $1030
SUM_C  DS      2

Count        EQU    10
Code        ORG    $2000
            CLRA
            STAA    SUM_C
            LDX    $1000
            LDY    $1010
            LDS    $1020
           
loop      LDAA    0,X
            LDAB    0,Y
            ABA
            STAA    0,SP
            INS
            INX
            INY
AGAIN    ADDA    SUM_C
            BNE    AGAIN
            STAA    SUM_C
    END

Posted on 2010-11-06 22:28:30 by masi713
5th line

should be ORG $1020
instead of ORG 1020

yes?
Posted on 2010-11-07 18:15:09 by Homer
i corrected that in the original coding but still nothing is showing in $1020.
Posted on 2010-11-07 18:20:30 by masi713