Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
80 THE x86 MICROPROCESSORS
Example 2.8
.MODEL TINY
0000 .CODE
0000 50 NUM1 DB 50H ;place 50H into NUM1
0001 210A NUM2 DW 210AH ;place 210AH into NUM2
0003 0789 NUM3 DW 0789H ;place 0789H into NUM3
.STARTUP
0100 A0 0000 R MOV AL, NUM1 ;move NUM1 to AL
0103 8B 1E 0001 R MOV BX, NUM2 ;move NUM2 into BX
0107 8B C8 MOV CX, AX ;copy AX to CX
0109 8B 1E 0003 R MOV BX, NUM3 ;move NUM3 into BX
.EXIT
END
Example 2.8 is a listing, which shows data being placed in the code segment itself. In the tiny
model, we can have data and code in the same segment, with the restriction that the size of the
segment should not exceed 64 Kbytes. NUM1, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169