![]() |
| ||
| Assembly Help Hello, Ive just started programming in Assembly and im having a little trouble with the language itself. I wanted to make a program that takes two positive integers and adds them together, and outputs a message if theres a carry over, but i have no idea how to go about it. Ive made a assembly program thats adds together before, but i dont know how to do the rest. Any help would be appreciated. Heres my previous program ORG 0 ; Any help would be really appreciated, i just am trying to learn =]. |
| ||
| Re: Assembly Help Do you want us to guess which processor and host OS you're using? |
| ||
| Re: Assembly Help Well tbh it made sound nooby, but ive been using a emulator and just Windows XP Professional. The emulator that i am using is called Emu8086 |
| ||
| Re: Assembly Help Well the 'problem' is that the code you posted doesn't look at all like x86 assembler. I found something called BEP/16, but is that relevant? |
| ||
| Re: Assembly Help Yes im sorry, that is relevant, if you could help me i would really appreciate it. |
| ||
| Re: Assembly Help > and outputs a message if theres a carry over So you do the add, look at some flags, make a decision. |
| ||
| Re: Assembly Help There will be a "carry over" if the result can't fit into a 32 bit integer, presumably, which will cause the carry flag to be set. Then you just need to check the carry flag, which will be 1 if there was a carry, 0 otherwise |
| All times are GMT -4. The time now is 10:26 pm. |
Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC