写出下列程序的流程图DATA SEGMENT SUM DW 0 DATA ENDS CODE SEGMENT ASSUME CS:CODE DS:DATA START: MOV AX,DATA MOV DS,AX MOV CX,50 MOV AX,0 MOV BX,1 LOOP_START: ADD AX,BX INC BX LOOP LOOP_START MOV [SUM],AX MOV AH,4CH INT 21H CODE ENDS END START
时间: 2024-02-10 10:08:13 浏览: 133
好的,以下是程序的流程图:
```
+------------+
| START |
+------------+
|
V
+------------+
| Data Segment|
+------------+
|
V
+------------+
| Code Segment|
+------------+
|
V
+------------+
| MOV AX,DATA |
+------------+
|
V
+------------+
| MOV DS,AX |
+------------+
|
V
+------------+
| MOV CX,50 |
+------------+
|
V
+------------+
| MOV AX,0 |
+------------+
|
V
+------------+
| MOV BX,1 |
+------------+
|
V
+---------------+
| LOOP_START: |
| ADD AX,BX |
| INC BX |
| LOOP LOOP_START|
+---------------+
|
V
+------------+
| MOV [SUM],AX |
+------------+
|
V
+------------+
| MOV AH,4CH |
+------------+
|
V
+------------+
| INT 21H |
+------------+
|
V
+------------+
| Code Ends |
+------------+
|
V
+------------+
| END START |
+------------+
```
希望能对你有所帮助!
阅读全文