How to convert c++ code to Mc68HC11 Motorola assembly code?

Uchiha

New member
Joined
Mar 8, 2010
Messages
16
Reaction score
0
Points
1
i am trying to convert my code into assembly code, and all i can find on google is at&t syntax, and its super annoying!!!
but i need to figure out how to convert this into the 68000 motorola assembly code, anything will help, i am also stuck on how to declare my parameters.

int foo(int n, int m);

int main() {
int n, m;
cin >> n;
cin >> m;
cout << f(n,m) << endl;
return 0;
}

int foo(int n, int m) {
if (m==0)
return n;
else
return foo(n+1, m-1);

}
 
Back
Top