54 |
#if FORCE_USE_OF_MEMORYSIZECONSTANTS |
#if FORCE_USE_OF_MEMORYSIZECONSTANTS |
55 |
// force use of MemorySizeConstants |
// force use of MemorySizeConstants |
56 |
MemoryRangeStart = MemorySizeConstants.MinimumAddress; |
MemoryRangeStart = MemorySizeConstants.MinimumAddress; |
57 |
MemoryRangeSizee = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress; |
MemoryRangeSize = MemoryRangeStart + MemorySizeConstants.MaximumAddressSize; |
58 |
#endif |
#endif |
59 |
#if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS |
#if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS |
60 |
//// code to automatically choose the best starting memory address and size |
//// code to automatically choose the best starting memory address and size |
72 |
else |
else |
73 |
{ |
{ |
74 |
MemoryRangeStart = MemorySizeConstants.MinimumAddress; |
MemoryRangeStart = MemorySizeConstants.MinimumAddress; |
75 |
MemoryRangeSize = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress; |
MemoryRangeSize = MemorySizeConstants.MaximumAddressSize; |
76 |
} |
} |
77 |
#endif |
#endif |
78 |
|
|