用汇编编写一个程序”把一个含有30个字型数据的ARY数组分成两组;正数数组P和负数数组N”

日期:2009-05-27 13:44:36 人气:1

用汇编编写一个程序”把一个含有30个字型数据的ARY数组分成两组;正数数组P和负数数组N”

code segment assume cs:code,ds:code org 100h start: push cs pop ds lea bx,ARY ;源数组首址 lea si,P ;正数数组首址 lea di,N ;负数数组首址 mov cx,30 Q0:mov ax,[bx] inc bx inc bx or ax,ax js Q1 mov [si],ax inc si inc si jmp Q2 Q1:mov [di],ax inc di inc di
    A+
热门评论