Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LAB 1:
- Introduction to debug utility (ALP) 6/7/15
- >cd DEBUG125
- >debug
- >-r //to see values of all registers
- AX:0000
- AH 00
- AL 00
- MFP Labflags: NC - carry flag; if no carry is there
- PO - Pairity Odd
- NA - Auxillary Carry flag
- NZ - Zero flag
- ...
- > -d
- -a
- starting address: 072A:0100
- -MOV AL, 02
- -MOV BL,03
- -ADD AL,BL
- -INT 3 //it is same as hault. which will stop the execution of the program.
- -
- >-G=0100
- WRITE 10+3 OPTIONS IN JOURNAL. 10 COVERD IN LAB AND 3 OTHER ON YOUR ON. WRITE DESCRIPTIONS ON YOUR OWN. GOOD FOR YOU. :|
- *implement a code which will affect zero flag
- mov al,02
- mov bl,02
- sub al,bl
- int 3
- *implement a code which will affect carry flag
- MOV AL,02
- MOV BL,03
- SUB AL,BL
- INT 3
- *implement a code which will affect overflow flag
- MOV AL,7F
- MOV BL,7F
- ADD AL,BL
- INT 3
- *sign flag
- same code as carry flag
- DESCRIPTION OF "ADD, SUB, MOV, INT" IN JOURNAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement