User Tools

Site Tools


reverse_engineering:ghidra:create_a_project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
reverse_engineering:ghidra:create_a_project [2022/03/12 12:01] – [ROMCOPY regions from static analysis] kitorreverse_engineering:ghidra:create_a_project [2022/03/12 14:28] – [ROMCOPY regions from static analysis] kitor
Line 61: Line 61:
  
 As a rule of thumb: As a rule of thumb:
-  * RAM starts at 0x40000000 +  * RAM starts at ''0x40000000'' 
-  * There's a mirror of RAM available at 0x00000000+  * There's a mirror of RAM available at ''0x00000000''
   * Size of RAM depends on model.   * Size of RAM depends on model.
-  * 0xCxxxxxxx and 0xDxxxxxxx are ranges where most devices live+  * ''0xCxxxxxxx'' and ''0xDxxxxxxx'' are ranges where most devices live
  
 Memory map for [[https://www.magiclantern.fm/forum/index.php?topic=19737.msg212603#msg212603|Digic 7]] [[https://www.magiclantern.fm/forum/index.php?topic=22770.msg212090#msg212090|Digic 8]] [[https://www.magiclantern.fm/forum/index.php?topic=24827.msg230859#msg230859|Digic X]] Memory map for [[https://www.magiclantern.fm/forum/index.php?topic=19737.msg212603#msg212603|Digic 7]] [[https://www.magiclantern.fm/forum/index.php?topic=22770.msg212090#msg212090|Digic 8]] [[https://www.magiclantern.fm/forum/index.php?topic=24827.msg230859#msg230859|Digic X]]
Line 154: Line 154:
 In disassembled code those may look like: In disassembled code those may look like:
 <code> <code>
 +// src holds address of data source in rom
 src = &DAT_e101ced8; src = &DAT_e101ced8;
 +
 +// loop reads src, writes to dst and increases both pointers by 1
 +// as long as "end" destination address is reached
 for (dst = &DAT_00004000; dst < &DAT_00023770; dst = dst + 1) { for (dst = &DAT_00004000; dst < &DAT_00023770; dst = dst + 1) {
   *dst = *src;   *dst = *src;
reverse_engineering/ghidra/create_a_project.txt · Last modified: 2022/04/01 17:46 by kitor