[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f0op8DBgI08uN88Z5H6ugU1RTRR1vurirbzX-Yeh2ahc":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":8,"question":15,"related":16,"source":20,"type":21},[],"2024-01-02 12:20:13",125471503,[],{"count":9,"courseId":10,"courseImg":11,"courseName":12,"workId":13,"workName":14},29,"a301cf6396ffd62be8e2a120cdd93cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F7e2d5ad53be3d12aacc56ee37db405b7.jpg","汇编语言","exam_112484803","汇编语言测验-2021级计算机科学与技术","编写程序实现:如果AL最高位为0,则设置AH=0; 如果AL最高位为1,则设置AH=FFH. test al,80h jz next0 jmp done next0: done:..",[17,22,27,32,37,43,48,53,59,64],{"answer":18,"createTime":5,"id":6,"options":19,"question":15,"source":20,"type":21},[],[],"v1",2,{"answer":23,"createTime":5,"id":24,"options":25,"question":26,"source":20,"type":21},[],125471506,[],"计算|X-Y|(绝对值),X和Y为存放于X单元和Y单元的16位操作数,结果存入result mov ax,X jns nonneg nonneg:mov result,ax",{"answer":28,"createTime":5,"id":29,"options":30,"question":31,"source":20,"type":21},[],125471507,[],"记录BX中1的个数 xor al,al again: test bx,0ffffh &zwj; jnc again inc al jmp again next:..",{"answer":33,"createTime":5,"id":34,"options":35,"question":36,"source":20,"type":21},[],125471508,[],"比较无符号数大小,将较大的存入result主存单元 cmp ax,bx next: mov result,ax",{"answer":38,"createTime":39,"id":40,"options":41,"question":42,"source":20,"type":21},[],"2024-01-02 12:20:14",125471509,[],"设BX中放有一个带符号数,编写程序段根据BX值的负、0或正的情况,在AL中置数据-1、0或+1. &hellip;&hellip; CMP BX,0 JL LAB1 JG JMP LAB3 LAB1: JMP LAB3 LAB2: MOV AL,1 LAB3: &hellip;&hellip;",{"answer":44,"createTime":39,"id":45,"options":46,"question":47,"source":20,"type":21},[],125471512,[],"已知字节变量X,Y存放于VARX,VARY存储单元中,利用公式求Z的值, 并将结果存放于RESULT存储单元中. 公式:Z=((X+Y)*8-X)\u002F2 程序如下: data segment varx db 06h vary db 07h result db ? data ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax mov dl,varx sal dl,cl sar dl,1 mov ah,4ch int 21h code ends end start",{"answer":49,"createTime":39,"id":50,"options":51,"question":52,"source":20,"type":21},[],125471513,[],"编程序求下列和值: S=(1+2+3)+(1+2+3+4)+(1+2+3+4+5) 将和值存在数据段偏移量为0100H的单元中. data segment var db ? data ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax ┌ │ call sum └ mov dh,bh ┌ mov ah,4 │ call sum └ add dh,bh ┌ mov ah,5 │ call sum └ add dh,bh mov var,dh mov ah,4ch int 21h ┌─ sum proc near │ mov ch,0 │ mov bh,0 │ go: inc ch │ │ │ │ ret └─ sum endp code ends end start",{"answer":54,"createTime":39,"id":55,"options":56,"question":57,"source":20,"type":58},[],125471514,[],"假设程序中,数据段定义如下: Data1 db 50 dup(?) Data2 dw 10 dup(0) Data3 db 5 dup(2 dup(1,2)) (1)用指令将数据段首地址放入数据段寄存器中. (2)用一条指令将data2的第一个数据放入BX寄存器中. (3)将数据段字节数放入CX寄存器",4,{"answer":60,"createTime":39,"id":61,"options":62,"question":63,"source":20,"type":58},[],125471519,[],"定义数据段,满足如下要求: (1)array为字符串变量:'inspire a generation!' (2)data1 为十六进制数:0FEDCBAH (3)data2为二进制数:10101010B. (4)data3为100个为零的字节变量. (5)分配500个字的空间待用",{"answer":65,"createTime":39,"id":66,"options":67,"question":72,"source":20,"type":73},[],125471522,[68,69,70,71],"MOV AX,BL","MOV [SI], [DI]","MOV ES,200H","MOV [SI],AL","下列指令中正确的是( )",0]