Execution Procedure For 8086
Execution Procedure For 8086
A A SG 0 Press enter DA starting address( 4 bit format example DA 4000) Press enter N Then display shows @ here you have to write 1st mnemonic Press enter display displays address opcode mnemonic press N press N Then display shows @ here you have to write 2nd mnemonic Press enter N N Then display shows @ up to last mnemonic Press enter N N ! press enter
EX press enter ii) Execution of program (for registers): G enter starting address( means DA address) Press enter iii) Verify the result (for registers): R E Then it shows AX register output, for next register you press ,
EXECUTION PROCEDURE FOR 8086 (for memory locations) i) Writing a alp program into processor: Switch On Power Supply Press A A SG 0 Press enter DA starting address Press enter N Then display shows @ here you have to write 1st mnemonic Press enter display displays address opcode mnemonic press N press N Then display shows @ here you have to write 2nd mnemonic Press enter
N N Then display shows @ up to last mnemonic Press enter N N ! press enter EX press enter E (exam byte) Here you have to type SI address, give 1st data, 2nd data,-----,nth data, Press enter ii) Execution of program (for memory locations): G enter starting address Press enter iii) Verify the result (for memory locations): E Then give DI address press , then display shows the result of 1st 8 bit data For 2nd 8 bit data again press,-------,nth data
MASM procedure A) For registers Open start command and select run option , in that type cmd then press enter
Type Cd\ press enter Type D: (select drive location) press enter Type Cd masm611 then press enter Type edit filename.asm (ex: edit a1.asm) then press enter Here it opens a screen now you have to write the total program then go to file and select save option and again go to file and select exit option. Now type masm filename.asm (ex: masm a1.asm) then press enter Now type link filename.obj(ex:link a1.obj) then press enter Press enter Press enter Press enter Press enter Now type debug filename.exe(ex:debug a1.exe) then press enter Now screen shows symbol like _ Now press G then press enter Then press R then press enter Here screen shows all the registers like AX,BX,CX,DX,SI,DI in this you have to verify your result