The loop instructions are used to repeat the block each time while performing the increment and decrement operations. STOP :NOP Call and Jump Instructions Loop Instructions: The 8051 programming consists of call and jump instructions such as LCALL, SJMP. This reduces the complexity of the program. #PASSWORD MINI PROGRAM IN 8086 ASSEMBLY LANGUAGE CODE#When some specific code used more than once in different places in the program, if we mention specific name to code then we could use that name anywhere in the program without entering a code for every time. The call and jump instructions are used to avoid the code replication of the program. MOV 20h ,#05h //20h is the address of the register 05 stored in the 20h// MOV P0, #07h //P0 is a SFR register 07 is stored in the P0// MOV R0 ,#15 // R0 is a general purpose register 15 is stored in the R0 register// MOV A, #20h //A is an accumulator register, 20 is stored in the A// It is used for immediately storing the value in the memory registers. In this addressing mode, the source must be a value that can be followed by the ‘#’ and destination must be SFR registers, general purpose registers and address. The 8051 microcontroller consists of five addressing modes such as: The CPU can access the data in different ways by using addressing modes. The way of accessing data is called addressing mode. For example, print the “EDGEFX” wherein each character is taken by the address and finally prints the “string” by the DB directly with double quotes.ĮQU (equivalent): The equivalent directive is used to equate address of the variable.ĮND :The END directive is used to indicate the end of the program. Example, multiplication operation is performed by the operands that are multiplied by the operand.ĭB (define byte): The define byte is used to allow a string of bytes. Operands: The operands are a single piece of data that can be operated by the op-code. Op-code: The op-code is a single instruction that can be executed by the CPU. The assembly language mnemonics are in the form of op-code, such as MOV, ADD, JMP, and so on, which are used to perform the operations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |