Type in the [login to view URL] program and get it working.
Then add something else that is interesting to it.
Tell me what you added to the program.
This program will let you experiment with addition, subtraction, increment, decrement and negate commands.
You can do some more arithmetic in your version of the program.?
TITLE Addition and Subtraction
INCLUDE [login to view URL]
.data
Rval SDWORD ?
Xval SDWORD 26
Yval SDWORD 30
Zval SDWORD 40
.code
main PROC
; INC and DEC
mov ax,1000h
inc ax ; 1001h
dec ax ; 1000h
; Expression: Rval = -Xval + (Yval - Zval)
mov eax,Xval
neg eax ; -26
mov ebx,Yval
sub ebx,Zval
add eax,ebx
mov Rval,eax
; Zero flag example:
mov cx,1
sub cx,1
mov ax,0FFFFh
inc ax
; Sign flag example:
mov cx,0
sub cx,1
mov ax,7FFFh
add ax,2
; Carry flag example:
mov al,0FFh
add al,1
; Overflow flag example:
mov al,+127
add al,1
mov al,-128
sub al,1
exit main ENDP
END main
I have ~7 years of experience in C++ and over 3 in C#. I also write some Python code and recently Haskell, so the task will not be a problem for me.
Could you please contact me to discuss the details?
What exactly do you want to be added?
Hi,
I know assembly language. But i use NASM assembler (32 bit x86 architecture).
Do you want any program in assembly, please PM me. I can write and explain it for you
Regards,
Anoop S
I have written several assembly language programs using Irvine 32, and can finish your program quickly.
Relevant Skills and Experience
I am a senior Software Engineering major at Auburn University and am well versed in many programming languages. I received an “A” average for my programming assignments in my Assembly Language courses