
- #ARRAY IN EMU8086 SOFTWARE#
- #ARRAY IN EMU8086 CODE#
LOOP 40C: decrease the value of CX by 1 and check whether Zero Flag is set(1) or not.XCHG DL, : swaps the content of DL with content at offset BX.
JNZ 417: jumps to offset 0417, if zero flag is reset(0). JC 41F: jumps to offset 041F, if carry flag is set(1). CMP AL, : compares the content of AL with content at offset SI. MOV AH, CL: stores the contents of CL in AH.
XOR CH, CH: stores the result of logical operation XOR b/w CH and CH in CH. MOV CL, : stores the content at offset SI in CL. Number of each iteration of the outer loopĬX - Stores the counter for the outer loop 42F HLT End of program.Įxplanation – Registers AH, AL, BX, CX, DL, SI, DI are used for general purpose: AL - Stored the smallest numberĪH - Stores the counter for the inner loop Offset Mnemonics Comment 400 MOV DI, 501 DI 428 XCHG DL, DL 42A INC DI DI < – DI+0001 42B MOV SI, DI SI < – DI 42D LOOP 40C CX < – CX-0001 If Zero Flag = 0, goto offset 40C. Keep repeating the process till all elements are traversed. Swap the smallest number from the first element of the array. We first find the smallest number in the array. Difference between Von Neumann and Harvard Architecture. Different Types of RAM (Random Access Memory ). Computer Organization | Von Neumann architecture. Computer Organization | Basic Computer Instructions. Memory Segmentation in 8086 Microprocessor. Addressing modes in 8086 microprocessor. Advantages and disadvantages of Computer. LEA SI,ARR MOV AL,ARRSI MOV MIN,AL MOV MAX,AL. #ARRAY IN EMU8086 CODE#
CODE SEGMENT ASSUME DS:DATA CS:CODE START: MOV AX,DATA MOV DS,AX. DATA SEGMENT ARR DB 5,3,7,1,9,2,6,8,4 LEN DW -ARR MIN DB MAX DB DATA ENDS.
Computer Organization | Booth's Algorithm Develop and execute an assembly language program to read an array of numbers and find the minimal and maximal elements. Memory Hierarchy Design and its Characteristics. Computer Organization and Architecture | Pipelining | Set 1 (Execution, Stages and Throughput). Logical and Physical Address in Operating System. Addressing modes in 8085 microprocessor. Computer Organization | Instruction Formats (Zero, One, Two and Three Address Instruction). IEEE Standard 754 Floating Point Numbers. #ARRAY IN EMU8086 SOFTWARE#
Difference between Hardware and Software.Random Access Memory (RAM) and Read Only Memory (ROM).Program for Binary To Decimal Conversion.Program for Decimal to Binary Conversion.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.