《《考研资料》作业10答案.doc》由会员分享,可在线阅读,更多相关《《考研资料》作业10答案.doc(2页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、作业101 分别用DB,DW,DD伪指令写出在BLOCK开始的连续8个单元中依次存放数据20H,30H,40,50h,60h,70h,80h,90H的数据定义语句解:(1) BLOCK DB 20h,30h,40h,50h,60h,70h,80h,90h(2) BLOCK DW 3020H, 5040H, 7060H,9080h(3) BLOCK DD 50403020h, 9080706H2 若有以下数据定义语句,试画出内存分配示意图 VAR1 DB 12,-12H,3 DUP(0,FFH)VAR2 DB 100 DUP(0,2 DUP(1,2),0,3)VAR3 DB WELCOME TO
2、VAR4 DW VAR3+6VAR5 DD VAR3解:从某个地址(如0000H)开始,依次存放元地址内容0000H(VAR1)0CH0001HF4H0002H00H0003HFFH(00,FF共3次重复)0008H(VAR2)00H0009H01H000AH02H000BH01H000CH02H000DH00H000EH03H(0008H-000EH单元内容,100次重复)02C4H(VAR3)57H02C5H45H02C6H4CH02C7H43H02C8H4FH02C9H4DH02CAH45H02CBH20H02CCH54H02CDH4FH02CEHCAH02CFH02H02D0HC4H02D1H02H02D2H段地址低8位02D3H段地址高8位3 设某数据段定义如下:D_SEG SEGMENT PARA DATA ORG 30HDATA1 EQU 10HDATA2 EQU DATA1+20HVAR1 DB 10 DUP(?)VAR2 DW AB,2,2000HCNT EQU $-VAR1D_SEG ENDS(1) VAR1,VAR2的偏移量是多少?VAR1: 0030H,VAR2:003AH(2) 符号常量CNT的值=?CNT=16(3) VAR2+2单元的内容是多少?02H