Assembly variable declaretion ?

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 51
Reputation: Jacky1 is an unknown quantity at this point 
Solved Threads: 2
Jacky1 Jacky1 is offline Offline
Junior Poster in Training

Assembly variable declaretion ?

 
0
  #1
Nov 17th, 2008
Hi

I would like someone to check what am doing

1- Declare a 4-byte variable in a relocatable segment of internal directly
addressable data memory.

  1. x SEGMENT data
  2. RESG x
  3. x: DS 4

2- Declare a 2-byte variable in an absolute segment of internal directly
addressable data memory beginning at 0300H.

  1.  
  2.  
  3. DSEG at 0300H
  4. m: DB 2

3- Declare a 1-byte variable in a relocatable segment of indirectly addressable
internal memory beginning at 60H

  1. y SEGMENT idata
  2. RESG y
  3. y: DS 1

but I don't know how to set the beginning AT 60h

4- Set the value of the part 1 to 101h

  1. mov x, #101h


Thanks in advance
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC