码迷,mamicode.com
首页 > 其他好文 > 详细

Add and Substract

时间:2016-10-19 22:03:31      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:

TITLE Add and Subtract          (AddSub.asm)

; This program adds and subtracts 32-bit integers.

INCLUDE Irvine32.inc

.code
main PROC

    mov    eax,10000h        ; EAX = 10000h
    add    eax,40000h        ; EAX = 50000h
    sub    eax,20000h        ; EAX = 30000h
    call    DumpRegs

    exit
main ENDP
END main

 

Add and Substract

标签:

原文地址:http://www.cnblogs.com/dreamafar/p/5978857.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!