User Tools

Site Tools


software:emulation:emulator_oem

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
software:emulation:emulator_oem [2024/11/20 22:16] clydesoftware:emulation:emulator_oem [2025/09/09 01:13] (current) clyde
Line 82: Line 82:
 </code> </code>
  
 +
 +===== Memory Browser =====
 +
 +The emulator has a memory browser tool that can pick up the out.map file from CC65, which the SDK uses.
 +If you're not using the C SDK and want to use this feature, you can create an out.map at ../build/out.map relative to your rom file and format it like this:
 +
 +<code>
 +Exports list by value:
 +----------------------
 +__CONSTRUCTOR_COUNT__     000000 REA    __DESTRUCTOR_COUNT__      000000 REA    
 +__RAM_FILEOFFS__          000000  EA    __ZEROPAGE_LOAD__         000000  LA    
 +__ZEROPAGE_RUN__          000000  LA    __ZP_FILEOFFS__           000000  EA    
 +__ZP_START__              000000  LA    __STARTUP__               000001 REA    
 +_tile_anim_counters       000014 RLZ    c_sp                      00001E RLZ    
 +sp                        00001E RLZ    sreg                      000020 RLZ    
 +regsave                   000022  LZ    ptr1                      000026 RLZ    
 +ptr2                      000028 RLZ    ptr3                      00002A RLZ    
 +ptr4                      00002C RLZ    tmp1                      00002E RLZ    
 +tmp2                      00002F  LZ    tmp3                      000030  LZ    
 +tmp4                      000031  LZ    regbank                   000032 RLZ    
 +__ZEROPAGE_SIZE__         000038  EA    __ZP_LAST__               000038  LA    
 +__ZP_SIZE__               000100  EA    __DATA_RUN__              000200 RLA    
 +__RAM_START__             000200 RLA    _call_mob_draw_func       000200 RLA    
 +_call_mob_update_func     000217 RLA    _call_mob_hitbox_func     00022E RLA    
 +_core_tile_draw_loop      000245 RLA    _grab_dsf_entry           0002EC RLA    
 +_grab_dsf_entry_mini      000318 RLA    _health_string            000336  LA    
 +</code>
 +The emulator doesn't care about the third or sixth columns, it just expects there to be any string there.
 +The first and fourth columns are names of memory locations, and the second and fifth are hexadecimal addresses.
software/emulation/emulator_oem.1732140985.txt.gz · Last modified: 2024/11/20 22:16 by clyde