![]() In data segment, we have initialized two variables a and b, in code segment we moved data from memory to register AX and BX and then we performed addition by using ADD opcode. ![]() We use DW which stand for “data word” because data word is used for 16-bit variables. In the above addition program, we used AX, BX registers because they are 16-bit register and we are adding 16-bit numbers we have to use X registers. X86 Assembly Addition of 16-bit Numbers Q: Write a program, take two 16-bit numbers of your choice, add them and display the results.Model small 2.0.1 Q: Write a program, take two 8-bit numbers of your choice, add them and display the results.2 x86 Assembly Addition of 18-bit Numbers.1.0.1 Q: Write a program, take two 16-bit numbers of your choice, add them and display the results.1 x86 Assembly Addition of 16-bit Numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |