Howdy.
I'm learning assembly in college (for the m68000).
Is the following conversion from java to assembly correct ?

Code:
int a, b, c, d;
d = (b - a) + c;
goes to

Code:
A      DC.L     0 
B      DC.L     0 
C      DC.L     0 
D      DC.L     0 
       
       ORG      $0000
       
       MOVE     D0,A
       MOVE     D1,B
       MOVE     D2,C
       MOVE     D3,D
       
       SUB      D1,D0
       ADD      D1,D2
       MOVE     D3,D1
       
       NOP
       END