16. Storing Successive Numbers

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 16. Storing Successive Numbers as PDF for free.

More details

  • Words: 126
  • Pages: 1
Adam’s Engineering College, Paloncha ECE Department –MPI LAB Experiment No.: 16 Page 1 of 1

Year : III/IV B.Tech II Semester

STORING SUCCESSIVE NUMBERS

Aim: - To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations. Registers: - AX and CX Description: - Storing successive numbers from 00H to FFH in successive memory locations. Ports:- None. DATA SEGMENT VAR DB 0100 DUP(00) DATA ENDS CODE SEGMENT ASSUME CS: CODE, DS: DATA START:

NEXT:

MOV AX, DATA MOV DS, AX XOR AL, AL LEA SI, VAR MOV CX, 0100 MOV [SI], AL INC AL INC SI LOOP NEXT

CODE ENDS END START Result: Successive numbers are stored in given

successive memory locations from00H to FFH. Lab in-charge

HOD, ECE

Related Documents