Sie sind auf Seite 1von 5

EXECUTION PROCEDURE FOR 8086 (for registers) i) Writing a alp program into processor: Switch On Power Supply Press

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

b) for memory locations


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 _ For assigning inputs: Now press E SI value( EX: in your program SI initialized with 2000 location then you type E 2000) then press enter Now here you have to type 1st data then give space button then type 2nd data then give space button , like that you have to enter nth data then give space button and press enter Then press G then press enter Verifying of output in memory locations: Press D DI value DI end value(EX: in your program DI initialized with 3000 location then you type D 2000 2004) then press enter Here screen shows the final output Note: For both procedures: if you want verify opcode you type U 0000 press enter( for For closing Press q then press enter Press exit then press enter

Das könnte Ihnen auch gefallen