TAILIEUCHUNG - The 80x86 IBM PC and Compatible Computers- P14

The 80x86 IBM PC and Compatible Computers- P14: Praised by experts for its clarity and topical breadth, this visually appealing, one-stop source on PCs uses an easy-to-understand, step-by-step approach to teaching the fundamentals of 80x86 assembly language programming and PC architecture. Offering users a fun, hands-on learning experience, it uses the Debug utility to show what action the instruction performs, then provides a sample program to show its application. | This program adds two positive integer numbers and stores the result. 8087 PAGE 60 132 MODEL SMALL STACK 32 1 .DATA ORG 00H INT1 DD -50000 ORG 10H INT2 DD 25000000 ORG 2ÖH SUM DD 1 .CODE START PROC FAR MOV AX DATA MOV DS AX CALL ADD INT MOV INT 21H START ENDP procedure to add two integers ADD INT PROC NEAR FINIT initialize 8087 FILD INT1 load integer 1 onto stack FIADD INT2 add the second integer FIST SUM store result in SUM RET ADDJNT ENDP t END START The data dumped in DEBUG is as follows -d 1065 0 2f 1065 0000 B0 3C FF FF 00 00 00 00-00 00 00 00 00 00 00 00 0 . 1065 0010 40 78 7D 01 00 00 00 00-00 00 00 00 00 00 00 00 @x . 1065 0020 F0 B4 7C 01 00 00 00 00-00 00 00 00 00 00 00 00 p4 . Data Analysis INT1 FF FF 3C BO binary 1111 1111 1111 1111 0011 1100 1 011 0000 sign 1 binary reverse bits for negative 1111111111111110011110010110000 0000000000000001100001101001111 add 1. 0000000000000001100001101010000 decimal -50000 INT2 01 7D 78 40 binary 0000 0001 0111 1101 0111 1000 0100 0000 sign 0 for positive integer 000 0001 0111 1101 0111 1000 0100 0000 decimal 25 000 000 SUM 01 7C B4 F0 binary 0000 0001 0111 1100 1011 0100 1111 0000 sign 0 for positive integer 000 0001 0111 1100 1011 0100 1111 0000 decimal 24 950 000 Program 20-6 PleaslÊ fô 2SBfwatermark. 615 Review Questions 1. In Assembly language programming which data directive is used for singlc-pre-cison data 2. In Assembly language programming which data directive is used for double-pre-cison data 3. State the number of general-purpose registers in the 80x87. 4. 80x87 registers are accessed acording to__ LIFO FIFO . 5. True or false. While in the 8086 AX always refers to the same physical register in the 80x87 ST 2 could be assigned to different physical registers at different times. 6. The top of stack is referred to as ST _ . 7. ST 1 is the register_ above below ST 0 . 8. What does FADD ST 4 do What are the operands and where is the result kept 9. What is the purpose of .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.