TAILIEUCHUNG - Cracker Handbook 1.0 part 42

Tham khảo tài liệu 'cracker handbook part 42', 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ả | installed in a PC. In order for the assembler to be able to manage the data it is necessary that each piece of information or instruction be found in the area that corresponds to its respective segments. The assembler accesses this information taking into account the localization of the segment given by the DS ES SS and CS registers and inside the register the address of the specified piece of information. It is because of this that when we create a program using the Debug on each line that we assemble something like this appears 1CB0 0102 MOV AX BX Where the first number 1CB0 corresponds to the memory segment being used the second one refers to the address inside this segment and the instructions which will be stored from that address follow. The way to indicate to the assembler with which of the segments we will work with is with the .CODE .DATA and .STACK directives. The assembler adjusts the size of the segments taking as a base the number of bytes each assembled instruction needs since it would be a waste of memory to use the whole segments. For example if a program only needs 10kb to store data the data segment will only be of 10kb and not the 64kb it can handle. SYMBOLS CHART Each one of the parts on code line in assembler is known as token for example on the code line MOV AX Var we have three tokens the MOV instruction the AX operator and the VAR operator. What the assembler does to generate the OBJ code is to read each one of the tokens and look for it on an internal equivalence chart known as the reserved words chart which is where all the mnemonic meanings we use as instructions are found. Following this process the assembler reads MOV looks for it on its chart and identifies it as a processor instruction. Likewise it reads AX and recognizes it as a register of the processor but when it looks for the Var token on the reserved words chart it does not find it so then it looks for it on the symbols chart which is a table where the names of the variables .

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.