构建时提示warning L4055: start address not equal to 0x100 for /TINY
如题,用RADASM编译,代码如下
.MODEL SMALL
DSEGSEGMENT
bmdd0AAAAh
resultdd?
ocdb'Original Code: ','$'
ccdb'Complement: ','$'
DSEGENDS
SSEG SEGMENT
SSEGENDS
CSEG SEGMENTAT 200h
ASSUME CS:CSEG,DS:DSEG,SS:SSEG
_32bmPROC
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
ORG300h
START: mov ah,9
lea dx,oc
int 21h
;输出原码
call _32bm
mov ah,9
lea dx,cc
int 21h
;输出补码
CSEGENDS
end START