hello,
I am working with Motorola 68000.
I have to make a program wich
will add the BCD number NUM1=22875362 saved in memory $400400-400403,
the BCD number NUM2=635213 saved in memory $400404-400407 and it will stores the sum in memory $400400-400403. Next it will removes from the sum stored in memory $400400-400403 the BCD number NUM3=17195312 stored in memory $400408-$40040B and the result will be stored at memory
RESLT= $40040C-$40040F. At the end of the program the memory address $400400-400403 must have the sum of the first 2 BCD numbers.
I've done the program but when i use the assembler 68k i take sum = 5315263 and the pointer X=1
When i use the assembler Easy68k i take sum = 6315263 wich is the correct number. Any idea?
I've attached the code below so u can use
Mike
I am working with Motorola 68000.
I have to make a program wich
will add the BCD number NUM1=22875362 saved in memory $400400-400403,
the BCD number NUM2=635213 saved in memory $400404-400407 and it will stores the sum in memory $400400-400403. Next it will removes from the sum stored in memory $400400-400403 the BCD number NUM3=17195312 stored in memory $400408-$40040B and the result will be stored at memory
RESLT= $40040C-$40040F. At the end of the program the memory address $400400-400403 must have the sum of the first 2 BCD numbers.
I've done the program but when i use the assembler 68k i take sum = 5315263 and the pointer X=1
When i use the assembler Easy68k i take sum = 6315263 wich is the correct number. Any idea?
I've attached the code below so u can use
Mike
Attachments
-
1 KB Views: 31