|
楼主 |
发表于 2013-5-23 00:14:45
|
显示全部楼层
CNUM1 EQU 1234H
CNUM2 EQU 'HELLO ASM!'
DSEG SEGMENT
A1 DB 36q,-128,10001001B,CNUM2
A2 DB 3*5,48/4,36-5,26 mod 10
A3 DB 10,10H,10B,'10B'
A4 DB 2 DUP(2 DUP(4),15)
A5 DB CNUM1 EQ 1,CNUM1 NE 1,CNUM1 GT 1,CNUM1 LE 1
org 100h
B1 DW $,$+1,-32768,8000H,'XY'
B2 DW SEG A4,OFFSET A4,TYPE A4,LENGTH A4,SIZE A4
B3 DW CNUM1+1234H,CNUM1-1234H,CNUM1 AND 1234H,CNUM1 OR 1234H,CNUM1 XOR 1234H,NOT CNUM1
B4 DW 3 DUP(510H),B1
org 200h
C1 DD 4294967295
C2 DD 80000000H,-1
C3 DD 36.625,-36.625 ;浮点数
C4 DD 'MN'
C5 DD C1
DSEG ENDs
CSEG SEGMENT
ASSUME CS:CSEG,DS:DSEG
START:
MOV AX,DSEG
MOV DS,AX
MOV BX,OFFSET B2 ;提示,可以修改此条指令,获取各个变量的地址,然
;后再debug中使用D命令查看数据
MOV AH,4CH
INT 21H
CSEG ENDS
END START |
|