广工微机实验代码(部分)

实验1 编程练习1

STACK SEGMENT STACK

DW 64 DUP (?)

STACK ENDS

DATA SEGMENT

ORG 0500H

DATA1 DB 5 DUP (?)

ORG 050AH

DATA2 DB 5 DUP (?)

DATA ENDS

CODE SEGMENT

ASSUME CS : CODE, DS : DATA START : MOV AX, DATA

MOV DS, AX

LEA SI, DATA1

LEA DI, DATA2

MOV CX, 05H

A : MOV AL, [SI]

CMP AL, 30H

JB B

CMP AL, 39H

JA B

SUB AL, 30H

MOV [DI], AL

JMP C

B: MOV [DI], 0FFH

C: INC SI

INC DI

LOOP A

MOV AH, 4CH

INT 21H

CODE ENDS

END START

实验二编程练习2

STACK SEGMENT STACK

DW 64 DUP (?)

STACK ENDS

DATA SEGMENT

ORG 0500H

DATA1 DB 6 DUP (?)

免费下载该文档:广工微机实验代码(部分)
相关文档