tailieunhanh - Cracker Handbook 1.0 part 53

Tham khảo tài liệu 'cracker handbook part 53', 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ả | Assembler Programming To build assembler programs using TASM programs is a different program structure than from using debug program. It s important to include the following assembler directives .MODEL SMALL Assembler directive that defines the memory model to use in the program .CODE Assembler directive that defines the program instructions .STACK Assembler directive that reserves a memory space for program instructions in the stack END Assembler directive that finishes the assembler program Let s program First step use any editor program to create the source file. Type the following lines first example use to put comments in the assembler program .MODEL SMALL memory model .STACK memory space for program instructions in the stack .CODE the following lines are program instructions mov ah 1h moves the value 1h to register ah mov cx 07h moves the value 07h to register cx int 10h 10h interruption mov ah 4ch moves the value 4 ch to register ah int 21h 21h interruption END finishes the program code This assembler program changes the size of the computer cursor. Second step Save the file with the following name Don t forget to save this in ASCII format. Third step Use the TASM program to build the object program. Example C tasm Turbo Assembler Version Copyright 1988 1990 Borland International Assembling file Error messages None Warning messages None Passes 1 Remaining memory 471k The TASM can only create programs in .OBJ format which are not executable by themselves but rather it is necessary to have a linker which generates the executable code. Fourth step Use the TLINK program to build the executable program example C tlink Turbo Link Version Copyright 1987 1990 Borland International C Where is the name of the intermediate program .OBJ. This generates a file directly with the name of the intermediate program and the .EXE extension. Fifth step Execute the executable program C exam1 enter Remember this .

TÀI LIỆU LIÊN QUAN
10    158    1
6    184    1
7    162    1
5    157    1
6    160    1
6    152    1
6    150    1
6    206    1
7    154    1