•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 402,829 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,069 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 936 | Replies: 10
I'm trying to translate the following code from C++ into Asembly language but am having trouble. I know that I have to make a cmp and one or more jmp. If any1 has sugguestions or tips thats great. Here's the C++ coding:
int x = 1 * 2;
int y = 3 * 4;
cout << "x = " << x << endl;
cout << "y = " << y << endl;
if (x == y)
cout << "x and y are the same." << endl;
else
cout << "x and y are not the same." << endl;
return 0;•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Computer Architecture Reference (Computer Science and Software Design)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- MC68000/..332 Calculator (Assembly)
- multiplication in assembly mips (Assembly)
- help (Assembly)
- urgent help needed !!! (Assembly)
- Unsigned Division (Assembly)
- Just bought an assembly book and having problems with basic stuff. (Assembly)
Other Threads in the Assembly Forum
- Previous Thread: Can you help me to write this program?
- Next Thread: Bubble Sort/Random Numbers



Threaded Mode