Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Assembly Language Step by Step Programming with DOS and Linux 2nd Ed 2000.pdf
Скачиваний:
156
Добавлен:
17.08.2013
Размер:
4.44 Mб
Скачать

Appendix D: Segment Register Assumptions

Where allowed, segment assumptions can be overridden with the segment override prefixes. These are DS: SS: CS: ES:. For example:

mov ES:[BX],AX

The assumptions are these:

1.When the offset is specified in BX, SI, or DI, the assumed segment register is DS.

2.When the offset is specified in SP, the assumed segment register is SS. CANNOT BE OVERRIDDEN.

3.When the offset is specified in BP, the assumed segment register is SS.

4.For string instruction LODS, the assumed segment is DS and the assumed offset is SI. CANNOT BE OVERRIDDEN.

5.For string instruction STOS and SCAS, the assumed segment is ES and the assumed offset is DI. CANNOT BE OVERRIDDEN.

6.For string instruction MOVS, the source must be pointed to be DS:SI and the destination must be pointed to by ES:DI. CANNOT BE OVERRIDDEN.

Appendix E: What's on the CD-ROM?

The CD-ROM included with Assembly Language Step-by-Step, Second Edition includes the following items:

The x86 NASM assembler for DOS

The x86 NASM assembler for Linux

Anthony Williams's ALINK free linker for DOS

Robert Anderton's NASM-IDE programming environment for DOS

All the example programs presented in the book, in source code form

The author's JLIST10 LaserJet source code print utility