0% found this document useful (0 votes)
12 views4 pages

Errata

Uploaded by

Haram fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Errata

Uploaded by

Haram fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Errata for Assembly Language Programming Lecture Notes

Page 12
In Topic 1.8.Segmented Memory Model, under heading Rationale, in second paragraph, second
line
Change "additional to" to "addition to"
Page 13
In Topic 1.8.Segmented Memory Model, under heading Mechanism, in fifth paragraph, second
last line,
Change "anywhere is the whole megabyte" to "anywhere in the whole megabyte"
Page 24
In Example 2.7, in the description of code line 010, in ninth line,
Change "If the CX register becomes zero as a result of this subtraction the zero flag will
be set and the jump will be taken" to " As long as the CX register is non zero after this
subtraction the zero flag will not be set and the jump will be taken"
Page 26
In Topic 2.6.Segment Association, third paragraph, fourth line,
Change "register used in BP" to “register used is BP”
Page 32
In Topic 3.1.Comparison and Conditions, in the second last line above the table,
Change "numbers than occur after a comparison" to "numbers that occur after a
comparison"
Page 33
In Topic 3.2.Conditional Jumps,
In the last column of the whole table swap destination and source (as shown in the table
given below). All comparisons reveal the relation of the destination to the source and not
the other way round.

JC Jump if carry CF = 1 The jump is taken if the


last arithmetic operation
JB Jump if below
generated a carry or
JNAE Jump if not above or equal required a borrow. After
a CMP it is taken if the
unsigned destination is
smaller than the unsigned
source.

JNC Jump if not carry CF = 0 This jump is taken if the


last arithmetic operation
JNB Jump if not below
did not generated a carry
JAE Jump if above or equal or required a borrow.
After a CMP it is taken if
the unsigned destination
is larger or equal to the
unsigned source.

JA Jump if above ZF =0 AND CF This jump is taken after a


=0 CMP if the unsigned
JNBE Jump if not below or equal
destination is larger than
the unsigned source.

JNA Jump if not above ZF = 1 OR CF = This jump is taken after a


1 CMP if the unsigned
JBE Jump if below or equal
destination is smaller
than or equal to the
unsigned source.

JL Jump if less SF ≠ OF This jump is taken after a


CMP if the signed
JNGE Jump if not greater or equal
destination is smaller
than the signed source.

JNL Jump if not less SF = OF This jump is taken after a


CMP if the signed
JGE Jump if greater or equal
destination is larger than
or equal to the signed
source.

JG Jump if greater ZF = 0 AND SF This jump is taken after a


=OF CMP if the signed
JNLE Jump if not less or equal
destination is larger than
the signed source.

JNG Jump if not greater ZF = 1 OR SF ≠ This jump is taken after a


OF CMP if the signed
JLE Jump if less or equal
destination is smaller
than or equal to the
signed source.

Page 34
In the above table, also change the entry in second column corresponding to JBE from
"Jump if not Below or Equal" to "Jump if Below or Equal"
Page 35
In Topic 3.2.Conditional Jumps, after the table, third paragraph, first line,
Change “It is JCXZ, jump if the CS register is zero" to “It is JCXZ, jump if the CX register
is zero"
Page 38
In Topic 3.5.Types of Jump, under heading Far Jump, sixth line,
Change "wit the segment part“ to "with the segment part"
Page 39
In Example 3.3, code line 025,
Change “je bsort” to “je start”
Page 46
In Topic 4.3.Multiplication in Assembly Language, third paragraph, second last point,
Change "shift the multiplicand to the right" to "shift the multiplicand to the
left.”
Page 50
In Example 4.2, in the description of code line 05-07,
Change "the multiplicand and the multiplier are stored in 32bit space” to “the
multiplicand and the result are stored in 32bit space.”
Page 51
In Topic 4.5.Bitwise Logical Operations, under heading NOT operation, last line,
Change "not byte [mem], 5" to "not byte [mem]”
In Topic 4.6.Masking Operations, under heading Selective Bit Setting,
Change "The operation can be used as a masking operation" to "The OR
operation can be used as a masking operation”
Page 52
In Example 4.3, in code line 12,
Change comments "move right most bit in carry" to "test right most bit”
Page 71
In Topic.6.1.ASCII Codes, in third paragraph, first line,
Change "Standard ASCII has 128 characters with assigned numbers" to
"Standard ASCII has 128 characters with numbers assigned”
Page 73
In Topic 6.2.Display Memory Formation, under heading Display Examples, fourth
paragraph, last line,
Change "green color on black background" to "green color on blue
background”
Page 74
In Topic 6.3.Hello Word in Assembly Language, in first paragraph, after the last line,
Change "db 0x61, 0x61, 0x63" to "db 0x61, 0x62, 0x63”
Page 83
In Topic 7.1.String Processing, in first paragraph, last line,
Change "whole block to 0741" to "whole block to 0720”
Page 84
In Topic 7.1.String Processing, under heading STOS, second paragraph,
Change "If DF is clear, SI will be incremented” to “If DF is clear, DI will be
incremented”
Change “If DF is set SI will be decremented” to “If DF is set, DI will be
decremented”
Page 96
In Topic 8.1.Interrupts, second paragraph, fifth line,
Change “Far all allows us to” to “Far call allows us to”
Page 113
In Topic 9.3.Terminate and Stay Resident, fourth paragraph,
Change “Above it are the BIOS data area” to “Then are the BIOS data area”

You might also like