Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'cracker handbook 1.0 part 59', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 4.8 Counting instructions They are used to decrease or increase the content of the counters. DEC INC DEC INSTRUCTION Purpose To decrease the operator. Syntax DEC destiny This operation subtracts 1 from the destiny operator and stores the new value in the same operator. INC INSTRUCTION Purpose To increase the operator. Syntax INC destiny The instruction adds 1 to the destiny operator and keeps the result in the same destiny operator. 4.9 Comparison instructions They are used to compare operators and they affect the content of the flags. CMP CMPS CMPSB CMPSW CMP INSTRUCTION Purpose To compare the operators. Syntax CMP destiny source This instruction subtracts the source operator from the destiny operator but without this one storing the result of the operation and it only affects the state of the flags. CMPS CMPSB CMPSW INSTRUCTION Purpose To compare chains of a byte or a word. Syntax CMP destiny source With this instruction the chain of source characters is subtracted from the destiny chain. DI is used as an index for the extra segment of the source chain and SI as an index of the destiny chain. It only affects the content of the flags and DI as well as SI are incremented. 4.10 Flag instructions They directly affect the content of the flags. CLC CLD CLI CMC STC STD STI CLC INSTRUCTION Purpose To clean the cartage flag. Syntax CLC This instruction turns off the bit corresponding to the cartage flag or in other words it puts it on zero. CLD INSTRUCTION Purpose To clean the address flag. Syntax .