UMBC L A N R Y D A B M A L F T U M B C I 1 O M - - PowerPoint PPT Presentation

umbc
SMART_READER_LITE
LIVE PREVIEW

UMBC L A N R Y D A B M A L F T U M B C I 1 O M - - PowerPoint PPT Presentation


slide-1
SLIDE 1 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

1

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations. MOVS,LODS,STOS,INS,OUTS Allowdatatransfersofabyte,awordoradoubleword,orifrepeated,a blockofeachofthese. TheDflag-bit(direction),SIandDIareimplicitlyused.

  • D=0:AutoincrementDIandSI.

UseCLDinstructiontoclearthisflag.

  • D=1:AutodecrementDIandSI.

UseSTDinstructiontosetit. DI: Accessesdataintheextrasegment.CanNOToverride. SI: Accessesdatainthedatasegment.Canbeoverriddenwithsegment

  • verrideprefix.
slide-2
SLIDE 2 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

2

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations. LODS: LoadsAL,AXorEAXwithdatastoredatthedatasegment(orextra segment)+offsetgivenbySI. SIisincrementedordecrementedafterwards: STOSB: StoresAL,AXorEAXtotheextrasegment(ES)+offsetgivenbyDI. EScannotbeoverridden. DIisincrementedordecrementedafterwards: LODS

  • ✁✂
✁ ✄ ☎ ✆ ✁✝ ✞ ✟ ✠ ✡ ✟ ☛☞ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✑ ✒ ✓
  • ✁✂
✁ ✄ ✔

LODSB

☎ ✁✕ ✞ ✟ ✠ ✡ ✟ ☛☞ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✄

LODSD

☎ ✆ ✁✝ ✞ ✟ ✠ ✡ ✟ ☛☞ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✑

doubleword. LODS

✆✟ ✠
  • ✁✂
✁ ✄ ☎ ✖✘✗ ✙✚ ✚ ✒ ✛ ✙ ✟ ✜

STOS

  • ✁✂
✁ ✄ ☎ ✆✟ ✠ ✡
  • ☛☞
✞ ✁✝ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✢ ✒ ✓
  • ✁✂
✁ ✄ ✔

STOSB

☎ ✆✟ ✠ ✡
  • ☛☞
✞ ✁✕ ☎
✌ ✍✏✎ ✄

STOSD

☎ ✆✟ ✠ ✡
  • ☛☞
✞ ✆ ✁✝ ☎
✌ ✍✏✎ ✑

word.

slide-3
SLIDE 3 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

3

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations: LODSW EAX EBX ECX EDX ESP EBP EDI ESI CS DS ES SS

✂ ✁ ✄ ☎ ✆

*10H

✝ ✞ ✞ ✞

+

✝ ✞ ✞ ✞

11000

✟ ✞ ✠ ✡ ✟ ✞ ✠ ✡

+/- 2

slide-4
SLIDE 4 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

4

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations. REPprefix: ExecutestheinstructionCXtimes. NOTE:REPdoesnotmakesensewiththeLODSinstruction. CLD

✕ ✂ ☛✁ ✂

.STARTUP MOV AX

✄ ☎ ✆ ✝ ☎ ☎ ✞

.EXIT END

☎ ✟ ✙ ✟ ✙✠ ✡ ✒☞☛ ✠ ✚ ✙✌ ✙ ☛ ✡ ✌ ✍ ✛ ✙ ✜

.CODE

☎ ✁ ✛ ✛ ✚ ✙✎ ✎ ✗ ✒ ✛ ✙ ✍ ✎ ✙✏ ✆ ✝ ☎ ☎ ✜

MOV ES

AX MOV DI

✄ ☎ ☎ ✖ ✓ ✓ ✎ ✙ ✡ ☎ ✜

MOV CX

✄ ✢ ✑ ✒ ✝ ☎ ☎ ✕ ✍ ✔ ✛ ✠ ✍✓ ☛ ✡ ✜

MOV AX

✄ ☎ ✔ ✢ ☎ ✞ ☎ ✕ ✍ ✔ ✛ ✔ ✡ ✡ ✚ ✒ ✕ ✓ ✡ ✙ ✔ ☛ ✛ ✠ ✖ ✔ ✚ ✜ ✗✘ ✙ ✄✚ ✛ ✄✜ ☎ ✢ ✟ ✙ ✔ ✚ ✡ ✖ ✙ ✎ ✠ ✚ ✙ ✙ ☛ ✜
slide-5
SLIDE 5 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

5

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations. MOVS: Movesabyte,wordordoublewordfromdatasegmentandoffsetSI toextrasegmentandoffsetDI. Increments/decrementsbothDIandSI: INS/OUTS(notavailableonthe8086): Transfersabyte,wordordoublewordofdatafrom/toanI/Odevice into/outoftheextra/datasegment+offsetDI/SI,respectively. TheI/OaddressisstoredintheDXregister. MOVS

✆ ✄ ✄ ✆ ✢ ☎ ✆ ✟ ✠ ✡
  • ☛☞
✞ ✟ ✠ ✡ ✟ ☛☞ ☎
✌ ✍✏✎ ✄ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✄

MOVSB

☎ ✆✟ ✠ ✡
  • ☛☞
✞ ✟ ✠ ✡ ✟ ☛☞ ☎
✌ ✍✏✎ ✄ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✄

MOVSD

☎ ✆ ✟ ✠ ✡
  • ☛☞
✞ ✟ ✠ ✡ ✟ ☛☞ ☎
✌ ✍✏✎ ✑ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✑
✄✜ ✂ ✄ ✄ ✂ ✢ ☎ ✆ ✟ ✠ ✡
  • ☛☞
✞ ✡
☞ ☎
✌ ✍✏✎ ✢ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✢

INSB

☎ ✆✟ ✠ ✡
  • ☛☞
✞ ✡
☞ ☎
✌ ✍✏✎ ✄

INSD

☎ ✆ ✟ ✠ ✡
  • ☛☞
✞ ✡
☞ ☎
✌ ✍✏✎ ✑

OUTSB

☎ ✡
☞ ✞ ✟ ✠ ✡ ✟ ☛☞ ☎ ✟ ☛ ✞ ✟ ☛ ✌ ✍✏✎ ✄
slide-6
SLIDE 6 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

6

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

StringOperations. INSExample: NOTE: Thisassumesthedeviceisabletomakedataavailableatthespeedof theprogram,andinsyncwiththeprogram. Sincethisisalmostnevertrue,thecodeaboveneedstohavea “devicestatuscheck”instruction(s). Ofcourse,theREPprefixcannotbeusedinthiscase. ThesameholdstrueforOUTSinstructions. LEA DI

✄ ✕ ☛ ✟ ✂ ☎ ✁ ✛ ✛ ✚ ✙✎ ✎ ✔ ✚ ✚ ✔

MOV DX

✄ ✁ ✁ ✢ ✞ ☎ ✟ ✍ ✌ ✙ ☛ ✍ ✖ ✛ ✙ ✗ ✒ ✠ ✙ ✔ ✛ ✛ ✚ ✙✎ ✎ ✜

MOV CX

✄ ✑ ☎ ✗✘ ✙
✄ ✂ ☎ ✄ ✙ ✡ ✡ ✖ ✙ ✛ ✔ ✡ ✔ ✜

... CLD ...

slide-7
SLIDE 7 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

7

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

MiscellaneousDataTransferOperations. XCHG: Exchangesthecontentsofaregisterwiththecontentsofanyother registerormemorylocation. ItcanNOTexchangesegmentregistersormemory-to-memorydata. Byte,wordanddoublewordscanbeexchangedusinganyaddressing mode(exceptimmediate,ofcourse). XLAT: PerformsatablelookupoperationbyconvertingthevalueinAL fromanindextoavaluestoredinthecellofatableinmemory.

✁ ✂✄

EDX

ESI

☎ ✆✆☎ ✠ ✖ ✔ ☛ ✏ ✙ ✆
✔ ☛ ✛ ✆✟ ☛ ✁ ✂✄

AL

  • ✁✂
✁ ✢ ☎ ✆ ☎ ✠ ✖ ✔ ☛ ✏ ✙ ✚ ✙✏ ✒ ✎ ✡ ✙✚ ✔ ☛ ✛ ✌ ✙✌ ✍ ✚
✔ ✟ ✓ ✙✎ ✜

MOV AL

✄ ✑ ☎ ✕ ✍ ✔ ✛ ✒ ☛ ✛ ✙☎ ✜

XLAT ...

✝ ✘ ✟

BX

✄ ✖✞ ✞ ✟ ✆ ✂ ✂ ✁ ✆ ✕ ✆ ☎ ✆ ✔ ✎ ✙ ✔ ✛ ✛ ✚ ✙ ✎ ✎ ✍ ✓ ✡ ✔ ✕ ✟ ✙ ✜ ☎ ✟ ✟ ✔✠ ✕
✙ ✔ ✡ ✁✕ ✌ ✆ ✝ ✌ ✟ ✟ ✒ ✡ ✖ ✁✕ ✜

...

slide-8
SLIDE 8 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

8

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

MiscellaneousDataTransferOperations. INandOUT: Transfersabyte,wordordoublewordofdatafrom/toanI/Odevice into/outofAL,AXandEAX,respectively. Memoryoperationsarenotavailable(astheyareinINSandOUTS): Twoforms:

  • Fixed-portaddressing:

8-bitportnumberencodedininstruction. 8-bitvalueissign-extendedintoaddressbits8-15. Addressbits16-31areundefined.

  • Variable-portaddressing:

16-bitportnumberstoredinDX.

AL

✄ ✠ ✝ ☎ ✝ ✎ ✕ ✒ ✡ ✎ ✔ ✚ ✙ ✎ ✔ ✗ ✙ ✛ ✡ ✍ ✁✕ ✓ ✚ ✍ ✌ ☛ ✍ ✖ ✠ ✍ ✚ ✡ ✠ ✝ ✜

EAX

✄ ✠ ✝ ☎ ✁ ✢ ✎ ✕ ✒ ✡ ✎ ✔ ✚ ✙ ✎ ✔ ✗ ✙ ✛ ✡ ✍ ✆ ✁✝ ✜ ✛

DX

EAX

☎ ✁ ✢ ✎ ✕ ✒ ✡ ✎ ✔ ✚ ✙ ✟ ✚ ✒ ✡ ✡ ✙ ☛ ✡ ✍ ✠ ✍ ✚ ✡
✓ ✚ ✍ ✌ ✆ ✁✝ ✜
slide-9
SLIDE 9 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

9

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

MiscellaneousDataTransferOperations. INandOUTExample: Notethattheoldcontentsofthehigher-orderbitpositionsoftheportare preserved. IN AL

✞ ✜
✕ ✂ ☛✁ ✂

.STARTUP OR AL

✄ ✁

.EXIT END

☎ ✁ ✙ ✔ ✛ ✠ ✍ ✚ ✡
✞ ✂ ✎ ✠ ✙ ✔ ✄ ✙✚ ☎ ✜

.CODE

☎ ✟ ✙ ✡ ✚ ✒ ✏ ✖ ✡ ✌ ✍ ✎ ✡ ✡ ✟ ✍ ✕ ✒ ✡ ✎ ✜

OUT

✞ ✄

AL LOOP

✕ ✄ ☎ ✂ ✒ ✌ ✙ ✛ ✙ ✟ ✔

IN AL

✞ ☎ ✁ ✙ ✔ ✛ ✠ ✍ ✚ ✡
✞ ✜

AND AL

✄ ☎ ✞ ✢ ✞ ☎ ✢ ✟ ✙ ✔ ✚ ✚ ✒ ✏ ✖ ✡ ✌ ✍ ✎ ✡ ✡ ✟ ✍ ✕ ✒ ✡ ✎ ✜ ✛
✞ ✄

AL

☎ ✟ ✠ ✙ ✔ ✄ ✙✚ ✍ ✓ ✓ ✜ ☎ ✂ ✓ ✚ ☛ ✍ ☛ ✡ ✖ ✙ ✎ ✠ ✙ ✔ ✄ ✙✚ ✜

MOV CX

✄ ✄ ☎ ☎ ☎ ✞ ☎
✟ ✔
✍✓ ☛ ✡ ✜

L1:

slide-10
SLIDE 10 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

10

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

MiscellaneousDataTransferOperations. MOVSXandMOVZX(80386anduponly): Move-and-sign-extendandMove-and-zero-extend: BSWAP(80486anduponly): Swapsthefirstbytewiththeforth,andthesecondbytewiththe third. Usedtoconvertbetweenlittleendianandbigendian:

  • ✛✁
  • CX

BL

☎ ✟ ✒ ✏ ☛ ✎ ✙☎ ✡ ✙ ☛ ✛ ✎ ✆ ✕ ✒ ☛ ✡ ✍ ✢ ✝
  • ✛✁
  • EAX
  • ✁✂
✁ ✢ ☎ ✄ ✙✚ ✍ ✙☎ ✡ ✙ ☛ ✛ ✎ ✟ ✍ ✚ ✛ ✔ ✡
  • ✁✂
✁ ✢ ✒ ☛ ✆ ✆ ☎ ✜ ✂ ✄✜ ✟ ✙

EAX EAX EBX ECX EDX

✡ ✡ ✠ ✠ ✞ ✞ ✝ ✝ ✝ ✝ ✞ ✞ ✠ ✠ ✡ ✡
slide-11
SLIDE 11 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

11

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6 ✬✎✭ ✮✠✯ ✰✱ ✲ ✲ ✯ ✳ ✴ ✰✎✵

MiscellaneousDataTransferOperations. CMOV(Pentiumanduponly): Theseinstructionsmovedataonlyifaconditionistrue. ConditionsaresetbyapreviousinstructionandincludeCarry,Zero, Sign,OverflowandParity: Therearemanyvariationsofthisinstruction. SeeAppendixBoftext.

  • ✛✁

AX

BX

✗ ✙ ✒ ✓ ✄ ✙✚ ✍ ✓ ✟ ✔ ✏ ✒ ✎ ✎ ✙ ✡ ✙ ✟ ✎ ✙ ✛ ✍

nothing.

slide-12
SLIDE 12 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

12

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6

IntelAssembly SegmentOverridePrefix: Allowstheprogrammertooverridethedefaultsegment. Appendsanadditionalbytetothefrontofaninstruction. JumpandCallinstructionscannotbeprefixed,mustuseCS. AssemblerDirectives: MOV AX

✄ ✡

DI]

☎ ✁ ✎ ✎ ✓ ✌ ✙✎ ✟

MOV AX

✄ ✆ ✟ ✠ ✡

DI]

☎ ✖✘✗ ✙✚ ✚ ✒ ✛ ✙ ✟ ✒ ✡ ✖ ✆✟

LISTB

✄ ☎
✂ ✢ ☎ ☎ ☛ ☛ ✒ ✡ ✒ ✔ ✟ ✒✂✁ ✙✎ ✄ ☎ ✕
✙✎ ✡ ✍ ☎ ✢ ✞ ✜

LISTA

✄ ☎ ✁ ✎ ✎ ✒ ✏ ☛ ✎ ☎ ✡ ✍ ✡ ✖ ✙ ✕
✙ ✜ ✟ ✝

2

☎ ☎ ✟ ✔ ✠ ✙ ✛ ✔ ✡ ✔ ✍ ☛ ✔ ✟ ✍ ✚ ✛ ✕ ✍✓ ☛ ✛ ✔ ✚

TEN

✘ ☎
  • 10
  • ✙✠
✖ ✔ ☛ ✒ ✎ ✌ ✓ ✍ ✚ ✛ ✙ ✓ ✒ ☛ ✒ ☛ ✏ ✠ ✍ ☛ ✎ ✡

DATA1

✘ ☎
✞ ☛ ✟ ✆ ✂ ✂ ✆ ☎ ✁ ✎ ✎ ✒ ✏ ☛ ✔ ✕
✙ ✟ ✔ ✕ ✟ ✙ ✡ ✍ ✔ ✟ ✍ ✚ ✛

DATA_SEG

✄ ✘ ✄ ✘ ✁ ✚ ☎
✓ ✒ ☛ ✙ ✔ ✎ ✙ ✏ ✌ ✙ ☛ ✡ ✜ ✟ ✄ ✄

CS:CODE_SEG

☎ ✂ ✙ ✟ ✟ ✔ ✎ ✎ ✙✌ ✕ ✟ ✙✚ ☛ ✔ ✌ ✙ ✡ ✍ ✓ ✎ ✙ ☎ ✓ ✍ ✚ ✢ ✟
slide-13
SLIDE 13 ✂✁ ✄ ☎ ✆ ✝ ✄ ✞✠✟✡ ☛ ✟☞ ✝ ✝ ✌✎✍ ☛ ✏✑ ✒ ✏✓ ✔ ✄ ✄ ✆ ✝ ✕✖ ✁ ✗ ✘ ✙ ✞✚ ✛✜ ✑

13

✢ ✔✎✣ ✟ ✌ ✖✤ ✑✦✥ ✤ ✑ ✑ ✜ ✧✎★ ✩✪ ☞ ✝ ✫

UMBC

U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6

IntelAssembly AssemblerDirectives: FullSegmentDefinitions: ADD BX

CX

☎ ✁ ✖ ✢ ✄ ✙ ✗ ✛ ✁
✗ ☎
✓ ✒ ☛ ✙ ✔ ✠ ✚ ✍ ✠ ✙ ✛ ✓ ✚ ✙ ✜

ADD BX

DX ADD AX

BX RET

☎ ✁ ✖ ✢ ✄ ✆ ✁
✟ ✂ ✁ ✢✁ ✂ ✟ ✆ ✄ ✄ ✘ ✄ ✘ ✁ ✚ ✄✚ ✟ ✁ ✄ ☎
✓ ✒ ☛ ✙ ✡ ✖ ✙ ✎ ✡ ✔ ✠ ✄ ✟ ✂ ✁ ✢✁ ✂ ✟ ✆ ✄

ENDS

  • ✁✂
✁ ✂ ✟ ✆ ✄

SEGMENT

  • ✁✂
✁ ✆

...

✝✞ ✟ ✞ ✠✡ ☛

ENDS

...

✢ ✖
✂ ✟ ✆ ✄ ✄ ✘ ✄ ✘ ✁ ✚
✘ ✝☞

‘CODE’

✌✍ ✝ ✡ ✎ ✠ ✡ ☛

ENDS

... ASSUME

✢ ✟ ✠ ✢ ✖
✂ ✟ ✆ ✄ ✄ ✟ ✠
  • ✁✂
✁ ✂ ✟ ✆ ✄ ✄ ✟ ✟ ✠ ✟ ✂ ✁ ✢✁ ✂ ✟ ✆ ✄