Click to See Complete Forum and Search --> : Error msg 'Operand undefine'


mac_oasis
April 24th, 2006, 01:50 PM
Hi All Gurus,

Nice to meet u all , i'm new to this forum. I've just started to learn assembly lauguage and i have trouble compiling my assembly language code and encounter error msg 'operand undefine' but i can't seem to debug it. I really need some advice on this. Please kindly advice me on how to get around this problem . Thanks in advance.

--------------------------------------------------------------------

Assembly listing for: assignment3.mas
Assembled: Mon Apr 24 18:55:15 SGT 2006

| ORG 100
100 5000 | INPUT /Load second value to be used as counter
101 210E | STORE Ctr /Store as counter
102 5000 | INPUT
103 110F | Loop LOAD Sum /Load the sum
104 3??? | ADD X /Add X to Sum
**** Operand undefined.
105 210F | STORE Sum /Store result in Sum
106 110E | LOAD Ctr
107 4110 | SUBT One /Decrement counter
108 210E | STORE Ctr /Store counter
109 8400 | SKIPCOND 400 /If AC=0 (Ctr = 0), discontinue looping
10A 9103 | JUMP Loop /If AC not 0, continue looping
10B 110F | LOAD Sum
10C 6000 | OUTPUT /Print product
10D 7000 | HALT /Sum contains the product of X and Y
10E 0000 | Ctr DEC 0
10F 0000 | Sum DEC 0 /Initial value of Sum
110 0001 | One DEC 1 /The constant value 1
| END

1 error found. Assembly unsuccessful.