assembly language step by step programming with dos and linux PHẦN 10

VidCheck điều đầu tiên không có gì gọi DispID để xác định các bộ chuyển đổi hiển thị cài đặt. Xây dựng trên các công cụ của riêng bạn không cần phải lặp lại logic nếu bạn có thể tránh nó. Mã bộ chuyển đổi ID được lưu trữThay vì các int mặc định, các loại byte có thể được sử dụng một cách rõ ràng các lợi ích của hiệu quả không gian | CMP Arithmetic subtraction Flags affected 0 D I T s 1 A p c FFFFFFFFF OF Overflow flag OF Direction flag IF Interrupt flag TF Trap flag SFi Sign flag ZFi Zero flag AF Aux carry PF Parity flag CF Carry flag Legal forms CMP CMP CMP CMP rl6 rl6 CMP 118 rie CMP CMP CMP ffl8J8 CMP rl6J16 CMP fflie. 116 CMP F16JB CMP CMP ALJ8 CMP AX 116 Examples CMP CMP AXhOFFFFH Useỉ single-byte opcode CMP iUses single-byte opcode CMP CMP WORD PTR BX SỈ lnset .5 CMP WORD PTR E 8X .OB800H Notes CMP compares its two operations and sets the flags IO indicate the results of the comparison The destination operand ứ MOT cạ êcítìi The operation itself is identical to subtraction of the source from the destination without borrow SUB save that the result docs not replace the destination. Typically CMP is followed by one of the conditional jump instructions JE to jump if the operands were equal JNE if they were unequal etc. rS - AL AH BL BH CL CH DL OH sr - cs DS ss E5 m8 - B-bit memory data 18 - B blt immediate data d0 - 8-b1t signed displacement r 6 - AX fix ex DX BP SP 51 DI ffll6 - 16 bit memory data 116 - 16 bit immediate data dl6 16-bit signed displacement DEC Decrement operand Flags affected OF Ow rfltiw flag Of Direction flag IF interrupt flag TF Trap flag SFi Slgà flag ĨF Zero flag AFí Aux carry PF Parity fliij CF Carry flag 0 0 I T 5 1 A p c F F F F F F F F F Legal forms DEC m3 DEC ml 6 DEC Al DEC Cl DEC ŨL DEC BL DEC AH DEC DH DEC CH DEC 0H DEC AX DEC ex DEC ex DEC OX DEC SP DEC BP DEC SỈ DEC 01 Examples DEC exTE PTR BP DEC Al DEC ex DEC WORD PTR BX Decrements the BYTE at BP OtcrEmen the WORD at BX Notes Remember that segment registers ttmnoi be decremented with DEC. All register-haư opcodes are ftup bytes tn length but all 16-bii register Opcodes are Or byte in length. If you can decrement an entire register of which only the lower half contains dnia use lhe 16-bit opcode J fid save a byte. Memory data forms tnusi be .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
18    88    2    26-06-2024
33    83    1    26-06-2024
Đã 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.