Presentation is loading. Please wait.

Presentation is loading. Please wait.

Location Counter (LC) = 0 while line of code <> END if ORG

Similar presentations


Presentation on theme: "Location Counter (LC) = 0 while line of code <> END if ORG"— Presentation transcript:

1 Location Counter (LC) = 0 while line of code <> END if ORG
Assembler Pass I Location Counter (LC) = 0 while line of code <> END if ORG set LC else if label if label already used, error if EQU store label in symbol table with evaluated operand store label in symbol table with value in LC increment LC by machine code or data size go to pass II

2 Location Counter (LC) = 0 Assembler Pass II while line of code <> END if assembly directive if ORG, set LC if DC/DS convert operand to binary store in location(s) given by LC increment LC as appropriate else store machine code in location given by LC if symbol in operand get binary equivalent from symbol table evaluate operand and set bits given by LC incrementing LC as necessary PC <= start address from END statement


Download ppt "Location Counter (LC) = 0 while line of code <> END if ORG"

Similar presentations


Ads by Google