Convert c++ code to Mc68HC11 Motorola assembly code?

1 reply [Last post]
utchia
Offline
Last seen: 2 years 22 weeks ago
Joined: 2012-02-25
bOt Points: 54

 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);



}

shashwat
Offline
Last seen: 12 weeks 6 days ago
Joined: 2009-02-18
bOt Points: 1160
Please see this thread

Founder and Admin