用汇编语言画图,汇编语言菜鸟求大家帮忙。感激不尽!

作为初学汇编语言的菜鸟,想请教一下怎么用汇编语言画6*6的矩形呢?图片说明图片说明图片说明

1个回答

IP: 机器代码 在DEBUG中U命令反汇编后的源代码

0100 B80400 MOV AX,0004
0103 CD10 INT 10

0105 B40B MOV AH,0B

0107 BB0001 MOV BX,0100
010A CD10 INT 10

010C B40B MOV AH,0B

010E BB0000 MOV BX,0000
0111 CD10 INT 10

0113 BA0100 MOV DX,0001
0116 B8010C MOV AX,0C01
0119 B91900 MOV CX,0019
011C CD10 INT 10

011E 42 INC DX

011F 81FAC000 CMP DX,00C0
0123 72F1 JB 0116

0125 B90100 MOV CX,0001
0128 BA0100 MOV DX,0001
012B B8010C MOV AX,0C01
012E CD10 INT 10

0130 41 INC CX

0131 81F90001 CMP CX,0100
0135 72F1 JB 0128

0137 B90200 MOV CX,0002
013A BA0200 MOV DX,0002
013D B8070C MOV AX,0C07
0140 CD10 INT 10

0142 41 INC CX

0143 42 INC DX

0144 81F9C000 CMP CX,00C0
0148 72F3 JB 013D

014A B408 MOV AH,08

014C CD21 INT 21

014E B80600 MOV AX,0006
0151 CD10 INT 10

0153 B40B MOV AH,0B

0155 BB0001 MOV BX,0100
0158 CD10 INT 10

015A B40B MOV AH,0B

015C BB0000 MOV BX,0000
015F CD10 INT 10

0161 BA0100 MOV DX,0001
0164 B8010C MOV AX,0C01
0167 B91900 MOV CX,0019
016A CD10 INT 10

016C 42 INC DX

016D 81FAC000 CMP DX,00C0
0171 72F1 JB 0164

0173 B90100 MOV CX,0001
0176 BA0100 MOV DX,0001
0179 B8010C MOV AX,0C01
017C CD10 INT 10

017E 41 INC CX

017F 81F90002 CMP CX,0200
0183 72F1 JB 0176

0185 B90200 MOV CX,0002
0188 BA0200 MOV DX,0002
018B B8070C MOV AX,0C07
018E CD10 INT 10

0190 83C102 ADD CX,+02
0193 42 INC DX

0194 81FAC000 CMP DX,00C0
0198 72F1 JB 018B

019A B408 MOV AH,08

019C CD21 INT 21

019E B80400 MOV AX,0004
01A1 CD10 INT 10

01A3 B40B MOV AH,0B

01A5 BB0001 MOV BX,0100
01A8 CD10 INT 10

01AA B40B MOV AH,0B

01AC BB0000 MOV BX,0000
01AF CD10 INT 10

01B1 BA1900 MOV DX,0019
01B4 B91400 MOV CX,0014
01B7 B8010C MOV AX,0C01
01BA CD10 INT 10

01BC 41 INC CX

01BD 81F9FF00 CMP CX,00FF
01C1 75F4 JNZ 01B7

01C3 B8010C MOV AX,0C01
01C6 CD10 INT 10

01C8 42 INC DX

01C9 83FA78 CMP DX,+78
01CC 75F5 JNZ 01C3

01CE B8010C MOV AX,0C01
01D1 CD10 INT 10

01D3 49 DEC CX

01D4 83F914 CMP CX,+14
01D7 75F5 JNZ 01CE

01D9 B8010C MOV AX,0C01
01DC CD10 INT 10

01DE 4A DEC DX

01DF 83FA19 CMP DX,+19
01E2 75F5 JNZ 01D9

01E4 B400 MOV AH,00

01E6 CD16 INT 16

01E8 BA1900 MOV DX,0019
01EB B91400 MOV CX,0014
01EE B8010C MOV AX,0C01
01F1 CD10 INT 10

01F3 41 INC CX

01F4 81F9FF00 CMP CX,00FF
01F8 75F4 JNZ 01EE

01FA B8010C MOV AX,0C01
01FD CD10 INT 10

01FF 42 INC DX

0200 81FAC000 CMP DX,00C0
0204 75F4 JNZ 01FA

0206 B8010C MOV AX,0C01
0209 CD10 INT 10

020B 49 DEC CX

020C 83F914 CMP CX,+14
020F 75F5 JNZ 0206

0211 B8010C MOV AX,0C01
0214 CD10 INT 10

0216 4A DEC DX

0217 83FA19 CMP DX,+19
021A 75F5 JNZ 0211

021C B400 MOV AH,00

021E CD16 INT 16

0220 B40B MOV AH,0B

0222 BB0101 MOV BX,0101
0225 CD10 INT 10

0227 B40B MOV AH,0B

0229 BB0000 MOV BX,0000
022C CD10 INT 10

022E BA1900 MOV DX,0019
0231 B91400 MOV CX,0014
0234 B8010C MOV AX,0C01
0237 CD10 INT 10

0239 41 INC CX

023A 81F9FF00 CMP CX,00FF
023E 72F4 JB 0234

0240 B8020C MOV AX,0C02
0243 CD10 INT 10

0245 42 INC DX

0246 83FA78 CMP DX,+78
0249 75F5 JNZ 0240

024B B8030C MOV AX,0C03
024E CD10 INT 10

0250 49 DEC CX

0251 83F914 CMP CX,+14
0254 75F5 JNZ 024B

0256 B8020C MOV AX,0C02
0259 CD10 INT 10

025B 4A DEC DX

025C 83FA19 CMP DX,+19
025F 75F5 JNZ 0256

0261 B400 MOV AH,00

0263 CD16 INT 16

0265 BA2000 MOV DX,0020
0268 B92500 MOV CX,0025
026B B8050C MOV AX,0C05
026E CD10 INT 10

0270 41 INC CX

0271 81F91001 CMP CX,0110
0275 75F4 JNZ 026B

0277 B8060C MOV AX,0C06
027A CD10 INT 10

027C 42 INC DX

027D 81FAC500 CMP DX,00C5
0281 75F4 JNZ 0277

0283 B8070C MOV AX,0C07
0286 CD10 INT 10

0288 49 DEC CX

0289 83F925 CMP CX,+25
028C 75F5 JNZ 0283

028E B8020C MOV AX,0C02
0291 CD10 INT 10

0293 4A DEC DX

0294 83FA20 CMP DX,+20
0297 75F5 JNZ 028E

0299 B400 MOV AH,00

029B CD16 INT 16

029D B40B MOV AH,0B

029F BB0001 MOV BX,0100
02A2 CD10 INT 10

02A4 B400 MOV AH,00

02A6 CD16 INT 16

02A8 B40B MOV AH,0B

02AA BB0001 MOV BX,0100
02AD CD10 INT 10

02AF B40B MOV AH,0B

02B1 BB0000 MOV BX,0000
02B4 CD10 INT 10

02B6 BA1900 MOV DX,0019
02B9 E81700 CALL 02D3

02BC 42 INC DX

02BD 81FAA000 CMP DX,00A0
02C1 7702 JA 02C5

02C3 EBF4 JMP 02B9

02C5 B400 MOV AH,00

02C7 CD16 INT 16

02C9 B80300 MOV AX,0003
02CC CD10 INT 10

02CE B44C MOV AH,4C

02D0 CD20 INT 20

02D2 90 NOP

02D3 B91400 MOV CX,0014
02D6 B8010C MOV AX,0C01
02D9 CD10 INT 10

02DB 41 INC CX

02DC 81F9FF00 CMP CX,00FF
02E0 75F4 JNZ 02D6

02E2 C3 RET

02E3 0000 ADD [BX+SI],AL
02E5 0000 ADD [BX+SI],AL

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐