如题,用RADASM编译,代码如下
.MODEL SMALL
DSEG SEGMENT
bm dd 0AAAAh
result dd ?
oc db 'Original Code: ','$'
cc db 'Complement: ','$'
DSEG ENDS
SSEG SEGMENT
SSEG ENDS
CSEG SEGMENT AT 200h
ASSUME CS:CSEG,DS:DSEG,SS:SSEG
_32bm PROC
mov bx,word ptr bm+2
cmp bx,01111111b
jns @F
mov ax,word ptr bm
NOT ax
NOT bx
add ax,1
adc bx,0
@@: mov word ptr result,ax
mov word ptr result+2,bx
ret
_32bm ENDP
ORG 300h
START: mov ah,9
lea dx,oc
int 21h
;输出原码
call _32bm
mov ah,9
lea dx,cc
int 21h
;输出补码
CSEG ENDS
end START
试过在START前面加ORG 100h,SEGMENT AT 100
都不行,求解
------解决方案--------------------
没用过这个环境,看提示好像是你选择错了程序类型,应该是 small 而非 tiny