TAILIEUCHUNG - Cracker Handbook 1.0 part 66

Tham khảo tài liệu 'cracker handbook part 66', 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ả | Position 8 6 Macro Libraries One of the facilities that the use of macros offers is the creation of libraries which are groups of macros which can be included in a program from a different file. The creation of these libraries is very simple we only have to write a file with all the macros which will be needed and save it as a text file. To call these macros it is only necessary to use the following instruction Include NameOfTheFile on the part of our program where we would normally write the macros this is at the beginning of our program before the declaration of the memory model. The macros file was saved with the name of the instruction Include would be used the following way Beginning of the program Include .MODEL SMALL .DATA The data goes here .CODE Beginning The code of the program is inserted here .STACK The stack is defined End beginning Our program ends More debug program examples In this section we provide you several assembler programs to run in the debug program. You can execute each assembler program using the t trace command to see what each instruction does. First example -a0100 297D 0100 MOV AX 0006 Puts value 0006 at register AX 297D 0103 MOV BX 0004 Puts value 0004 at register BX 297D 0106 ADD AX BX Adds BX to AX contents 297D 0108 INT 20 Causes end of the Program The only thing that this program does is to save two values in two registers and add the value of one to the other. Second example - a100 0C1B 0100 jmp 125 Jumps to direction 125H 0C1B 0102 Enter - e 102 Hello How are you 0d 0a - a125 0C1B 0125 MOV DX 0102 Copies string to DX register 0C1B 0128 MOV CX 000F Times the string will be displayed 0C1B 012B MOV AH 09 Copies 09 value to AH register 0C1B 012D INT 21 Displays string 0C1B 012F DEC CX Reduces in 1 CX 0C1B 0130 JCXZ 0134 If CX is equal to 0 jumps to 0134 0C1B 0132 JMP 012D Jumps to direction 012D 0C1B 0134 INT 20 Ends the program This program displays on the screen 15 times a character string. Third .

TÀI LIỆU LIÊN QUAN
10    127    1
6    150    1
7    127    1
5    125    1
6    127    1
6    115    1
6    122    1
6    174    1
7    122    1
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.