Explain about cseg segment, Computer Engineering

Assignment Help:

CSEG SEGMENT

 ASSUME CS:CSEG, DS:CSEG, SS:CSEG

 ORG 100h

START:MOV AX, CSEG; Initialise data segment

 MOV DS, AX; register using AX

 MOV AL, NUM1; Take the first number in AL

ADD AL, NUM2;                                          Add the 2nd number to it

 MOV RESULT, AL;                                                 Store the result in location RESULT 

 RCL AL, 01;                                                  rotate carry into LSB

 AND AL, 00000001B;                                  Mask out all but LSB

MOV CARRY, AL;                                       Store the carry result

MOV AX,4C00h 

INT 21h

NUM1 DB                  15h;                             First number stored here

NUM2 DB                  20h;                             Second number stored here

RESULT DB              ? ;                                Put sum here

CARRY DB               ? ;                                Put any carry here

CSEG ENDS

END START

These programs are stored on a disk with an extension .com. A COM program needs less space on disk instead of equivalent EXE program. At run-time COM program places stack automatically at the end of segment so they use at least one complete segment.


Related Discussions:- Explain about cseg segment

Grapgh, representation of the adjacency matrix and adjacency list

representation of the adjacency matrix and adjacency list

What all 1's represents in 32bit ip addressing scheme, In 32bit IP Addressi...

In 32bit IP Addressing scheme all 1's represent? All 1's represent limited broadcast in 32 bit IP Addressing scheme.

Jewel polishing, Byteland county is very famous for luminous jewels. Lumino...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Resource management techniques, a company has 4 machines to do 3 jobs.each ...

a company has 4 machines to do 3 jobs.each job can be assigned to one and only machine.determine the job assignments which will minimize the total cost

Define organizing, Q. Define Organizing? Grouping of related activities...

Q. Define Organizing? Grouping of related activities together, Identification of required activities and forming departments and coordinating various departments with the estab

What is simd, What is SIMD? Single Instruction stream, Multiple Data st...

What is SIMD? Single Instruction stream, Multiple Data stream (SIMD) shows an organization that contains many processing units under the supervision of a common control unit. A

What is script-fu in gimp, Sript-Fu is the first GIMP scripting extension. ...

Sript-Fu is the first GIMP scripting extension. Extensions are split processes that communicate with the GIMP in the similar way that plug-ins do. The distinction is that extension

#title.sequential circuit, design modulo 12 up synchronous counter using t ...

design modulo 12 up synchronous counter using t flip flop

Explain the structure of plasma panel display, a. Explain the meaning of fr...

a. Explain the meaning of frame buffer? Draw a block diagram showing the method for scanning out an image from frame buffer to display surface. b. Explain the structure of plasm

Labels in the sub trees, A sorting method which uses the binary tree concep...

A sorting method which uses the binary tree concept such that label of any node is larger than all  the labels in the sub trees, is called A Sorting method which uses the binar

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd