• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

ASM196 DCW directives

I am currently doing the debugging of assembly codes for 80296SA chip. I do have the definition of all the possible directives in ASM196 but the problem is its vague definition. I have this segment of code which is written as follows:

DCW      03H        ; NUMBER OF WORDS DIFFERENT FROM STANDARD
                   ;                                    
DCW    0002H,0843H ; 0002h = ADDRESS, 43h = DEFAULT DATA    
                ; 0003h = ADDRESS, 08h = DEFAULT DATA

Further explanation on the meaning of how the directive is being used is much appreciated...thanks.    
0
ray_ars
Asked:
ray_ars
  • 2
1 Solution
 
dimitryCommented:
According to A196 assembler spec:
Function: Defines a word constant in a const or code segment.
Syntax:
[ label:] dcw expression [,...]
Therefore it is constant definition. But it is also used
to set interrupt services if it is used in code segment:
  cseg at 02030h
  dcw Transmit_ISR
It simply sets at the beginning of 02030h segment address of Transmit_ISR (function name)
0
 
ray_arsAuthor Commented:
Thank you very much. Would you mine giving me some sites that I could refer in the future pertaining to A196 assembler?
0
 
dimitryCommented:
Actually Intel has a lot of information about 80196:
http://www.intel.com/design/MCS96/docs_mcs96.htm
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now