How does a assembler (at very basic level) work in translation of Assembly language to machine code ?
[What my understanding is that when a Programme is written it is written in text and then assembler converts these "texts" into bits which computer understands . So for example if I wrote MOV A, B this will be saved in memory with the help of "keyboard"( in 0s & 1s which are basically electrical pulses). Now as these saved bits will be containing bits corresponding to alphabets like 'M' ,'O' 'V' (The ASCII code) so and so on .Now what assembler will do is to compare these bits stored in the memory ( which are corresponding to the "texts") to the bits already stored in "assembler". So the text bits ( MOV…) will match to some of these assembler bits ( out of lots of bit groups which are related to other key words like MVI ,ADD ) and as a result of these comparisons it will give "opcode" relating to “MOV” text. Am I right or is this a wrong way of thinking? ]