左岸阳光

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月5日

摘要: 1 ;解决除法溢出的子程序,(商为32位时的溢出) 2 assume cs : codesg, ds : datasg, ss : stacksg 3 4 datasg SEGMENT 5 db 'welcome to masm!' 6 datasg ENDS 7 8 stacksg SEGMENT 9 dw 8 dup (0)10 stacksg ENDS11 12 codesg SEGMENT13 14 15 start: 16 mov ax, stacksg17 mov ss, ax18 mov sp, 1619 20 mov ax, 4240h21 mov dx, 0f 阅读全文
posted @ 2012-11-05 20:58 左岸阳光 阅读(226) 评论(1) 推荐(0) 编辑

摘要: 1 ;16位汇编 BX、BP、SI、DI 才能间接寻址, ax不行 2 ;程序开始时cx大小是程序的长度 3 ;存储器不能到存储器 mov/add 4 5 assume cs : codesg, ds : datasg, ss : stacksg 6 7 datasg SEGMENT 8 db '19751976197719781979','1977','1977','1977','1977','1977','1977','1977','1977',& 阅读全文
posted @ 2012-11-05 16:00 左岸阳光 阅读(313) 评论(0) 推荐(0) 编辑