| | |
Assembly variable declaretion ?
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 51
Reputation:
Solved Threads: 2
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.
2- Declare a 2-byte variable in an absolute segment of internal directly
addressable data memory beginning at 0300H.
3- Declare a 1-byte variable in a relocatable segment of indirectly addressable
internal memory beginning at 60H
but I don't know how to set the beginning AT 60h
4- Set the value of the part 1 to 101h
Thanks in advance
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.
Assembly Syntax (Toggle Plain Text)
x SEGMENT data RESG x x: DS 4
2- Declare a 2-byte variable in an absolute segment of internal directly
addressable data memory beginning at 0300H.
Assembly Syntax (Toggle Plain Text)
DSEG at 0300H m: DB 2
3- Declare a 1-byte variable in a relocatable segment of indirectly addressable
internal memory beginning at 60H
Assembly Syntax (Toggle Plain Text)
y SEGMENT idata RESG y 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
Assembly Syntax (Toggle Plain Text)
mov x, #101h
Thanks in advance
![]() |
Other Threads in the Assembly Forum
- Previous Thread: Assembly vs. C++ Performance
- Next Thread: Define jmptable array in GAS asm, GAS AT&T Assembly
| Thread Tools | Search this Thread |





