Advertisement
tsnaik

MFP Lab 1

Jul 5th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. LAB 1:
  2. Introduction to debug utility (ALP) 6/7/15
  3.  
  4. >cd DEBUG125
  5. >debug
  6. >-r //to see values of all registers
  7.  
  8.  
  9. AX:0000
  10. AH 00
  11. AL 00
  12.  
  13.  
  14. MFP Labflags: NC - carry flag; if no carry is there
  15. PO - Pairity Odd
  16. NA - Auxillary Carry flag
  17. NZ - Zero flag
  18.  
  19. ...
  20.  
  21. > -d
  22.  
  23. -a
  24.  
  25. starting address: 072A:0100
  26. -MOV AL, 02
  27. -MOV BL,03
  28. -ADD AL,BL
  29. -INT 3 //it is same as hault. which will stop the execution of the program.
  30. -
  31.  
  32. >-G=0100
  33.  
  34.  
  35. WRITE 10+3 OPTIONS IN JOURNAL. 10 COVERD IN LAB AND 3 OTHER ON YOUR ON. WRITE DESCRIPTIONS ON YOUR OWN. GOOD FOR YOU. :|
  36.  
  37.  
  38. *implement a code which will affect zero flag
  39. mov al,02
  40. mov bl,02
  41. sub al,bl
  42. int 3
  43.  
  44. *implement a code which will affect carry flag
  45. MOV AL,02
  46. MOV BL,03
  47. SUB AL,BL
  48. INT 3
  49.  
  50. *implement a code which will affect overflow flag
  51. MOV AL,7F
  52. MOV BL,7F
  53. ADD AL,BL
  54. INT 3
  55.  
  56. *sign flag
  57. same code as carry flag
  58.  
  59.  
  60. DESCRIPTION OF "ADD, SUB, MOV, INT" IN JOURNAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement