| CPUDB_get_[unused_]memory_block_info(index, info-type) |
Returns the requested information on the memory block with index specified by parameter index (1 up to the number of blocks), info-type is ADDRESS (initial block address), SIZE (block size in addressable units), TYPE (memory type: RAM, ROM (i.e. ROM or OTP), FLASH, I/O, EEPROM, FIRMWARE, EXTERNAL i.e. unoccupied external address space), DISPLAY_TYPE (memory type as displayed in the User Interface, standard memory type may be overwritten by custom value), AREA (name of memory area if there are multiple supported by CPU; if not supported, this will return an empty string; naming will depend on the CPU model, largely CODE or DATA), MIRROR (returns yes/no, depending on whether this is a memory block that mirrors a memory of another block), MIRROR_FROM_ADDR (returns the address of source address, "n/a" if the block is not mirrored), WORDSIZE (the width of addressable block word in bits), EXTERNAL (will return yes/no, depending on whether this is a block outside the internal memory); SDRAM (returns yes/no, depending on whether this is SDRAM-like RAM); StandByRAM (will return yes/no, depending on whether RAM is battery backed-up RAM); NAME (returns specific name of the memory block, usually it is unused; used for "BootROM"); HINT (will return the hint to the memory block that has been assigned to that block under the PE code, contains additional information regarding the block and is displayed in the hint within PE); the unused_ function will work with non-allocated memory only.
|
| CPUDB_get_[unused_]memory_block_index(addr[,space]) |
Returns the memory block index within the memory map according to the address specified (from one); in case of error, it will return zero; the optional space parameter specifies the name of the area in which the address is to be searched (implicitly, the main address area), area names are displayed within the memory map heading; the unused_ function will work with a non-allocated memory only.
|