Title: ??1 ?DEBUG?????
1????????(??)
2??1 ?DEBUG?????
???????,???????????????,??????????????????????????
???????????????,??,???????2???,????DEBUG??????????
??????? ??DEBUG???????????????????????????A.2.4
3?????BCD??????,?68-9
mov ax, 0608h mov bl, 09h sub al, bl aas
??debug
4???A??????
Debug????16???,????H??
?????????????
5??T??????
???T??????????
???T??????
???
???????????????????
????????????????
???????????????
6?????Q????DEBUG? DEBUG??????2??D?????DEBUG????????
????
?? ?1? ?0?
??OF ??DF ??IF ??SF ??ZF ??AF ??PF ??CF OV DN EI NG ZR AC PE CY NV UP DI PL NZ NA PO NC
7????????????
MOV SI, 0050H (DS)2000H MOV
DI, 0100H (ES)3000H MOV CX, 5
CLD REP MOVSB
1)??A??????
82)?R????DS?ES???????
DS????
??????
3)?D??????????????
94)?E????????????D??????????????
105)????????
116)???????????????
12??,?A???????,??????debug?????????????????,????????
?
13??2 ?????????MASM 5.0????(????CMD?????)
?????
14?????
?????,?????
15???????
16????????
17?DEBUG????
1)?U???????????????
182)?T??????,?????????,DEBUG??????????????????
193)????????,???G????????,????P????????????????
?????,????INT 21H????
INT 21H???????
20??DEBUG???16?????,?????32?????,???MASM
6.11?????,?CodeView??????????MASM 6.11???CodeView
4.01????32????????,??????????????????SoftICE??? ??
,VC????????80486?????,???32????
21?VC6.0??C?????
22(No Transcript)
23?????asmsample.cpp
24????????asmsample.cpp?
include ltiostream.hgt int power2(int, int) void
main(void) coutltlt"2?6???5??\t"
coutltltpower2(5,6)ltltendl int power2(int num,
int power) _asm mov eax, num
?????? mov ecx, power ?????? shl
eax, cl ??EAXEAX(2CL)
// ?????EAX
25(No Transcript)
26????????