Question

Write and run a program using 8086 assembly language which finds the highest of four byte values stored in memory. The highest value should be left in AL register.

07 Aug 2023
Answer :
Word Count : 461

Sure, I can provide you with an example 8086 assembly language program that increments a byte value stored in a memory location by a value of 2 and stores the result back in the same memory location. Please note that you'll need an 8086 emulator or environment to run this program, such as DOSBox or an online assembler/emulator.

```assembly
ORG 100h  ; Set origin address

MOV SI, 0000h  ; Initialize source index to memory location
MOV AL, [SI]   ; Load byte value from memory into AL register
ADD AL, 2      ; Increment AL by 2

MOV [SI], AL   ; Store the result back into the same memory location

MOV AH, 4Ch    ; DOS function to terminate program
INT 21h        ; Invoke DOS interrupt

RET            ; Return from the program

TIMES 510-($-$$) DB 0  ; Fill remaining space with zeroes
DW 0AA55h             ; Boot signature
```

**Explanation:**
1. `ORG 100h`:

_______ __________ _____ ___ ______ _____ __________.
_________ _______ _____ ___ ________ ___ _________ ____ __________ _________.
___ ____ ____ ________ ______ _______ _____.
_______ ___ __________ ______ ________ ____.
______ ___ __________ ___ ____ ____ ___.
____ _____ ___ ______ ___ ________ ________ ______ _________.
____ ______ ______ _____ _____ ________ ______ ___ ______ ______ __________.
________ _______ ______ ________ __________ __________ ____ _______ ______.
_________ ____ _____ ______ __________.
____ _____ _____ ________ ____ ________ __________ _____ _________ _____.
________ ____ _____ ______ ________ __________ __________ ____ ____ _____ ___.
____ ________ _________ __________ _____ _______ _______ ___ _______ _________ _______.
__________ ____ ____ __________ ________ ________ ____ _____ _____.
___ _______ _____ _____ ______ _________ _________ _________.
______ _________ ________ ___ ___ __________ _______ _______ __________.
_____ _____ ___ ________ ________ ___ ______ ___ ______ ______.
_________ ____ __________ _________ _____ __________ _____.
____ ______ ______ _________ __________ _________ ________ ____ ___ __________ _____.
_________ ______ _________ ________ ______ __________ ____ ____ ______ _______.
______ ____ __________ ____ ________ ______.
__________ ________ ____ ______ _____ ________ ____ _____ __________ _____.
_______ ____ _______ ________ ________.
________ _____ __________ ___ ________ _____ ________ ____.
______ ______ _________ __________ ______.
____ ______ ______ ______ __________ ___ ________ _____ ____ _________ __________ _____.
_____ ________ _________ ______ ________ _________.
______ ________ _____ _____ _____ __________ _______ _________ ________ __________ _______ ________.
______ ___ _____ _____ _______ ______ ___ ________ _________ ____.
______ ______ _____ ________ ____ ______ _______ ________ __________.
_________ ________ _________ __________ ____ __________ ________ ______ __________ _____ _______ _______.
________ _________ ____ ___ ___ __________ ________.
____ ___ _______ _________ ______ _______ _______ _______.
_____ _________ _________ ________ _______ ________ _________ _________.
____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU BCSL 22 2023 2024 - Write and run a program using 8086 assembly language which finds the h | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→