Motorola 68000 Assembly

445 views Asked by At

I got a simple question. No idea where to start. I need a simple math calculation (+,_,*,/) to output at least 2 digits.

Example: 1+2=03

move #1,D0
move #2,D1
add.l D0,D1

the above needs to output a 03. ...it outputs a 3.

I've gotta display the 0, but the normal add instruction does not do this. How does one even approach this? i'm lost. ?? TY.

1

There are 1 answers

0
MattBorg On

Answer posted above

Disassemble printf("%02d",3) in a 68k dissembler (IDE68k)