NefMoto

Technical => Reverse Engineering => Topic started by: terminator on May 30, 2014, 05:58:25 AM



Title: ADDRSEL
Post by: terminator on May 30, 2014, 05:58:25 AM
I would like to ask someone who knows assembler very well. 
I'm trying to understand how to know where to load flash, eeprom, RAM? (according to this forum 800000 address for ROM and 380000 for RAM). But what about eeprom?

ROM:7726                 mov     ADDRSEL1, #3801h
ROM:772A                 mov     BUSCON1, #40Ch
ROM:772E                 mov     ADDRSEL2, #1007h
ROM:7732                 mov     BUSCON2, #48Ch
ROM:7736                 mov     ADDRSEL3, #0
ROM:773A                 mov     BUSCON3, #0
ROM:773E                 mov     ADDRSEL4, #0
ROM:7742                 mov     BUSCON4, #0

Ok, 3801h means that memory space 8kb and 380000 address. This is for RAM as I understand.

But ADDRSEL2, #1007h means 512kb and 100000? ADDRSEL3 = 0 ???

In VAG me7 its possible to use DPP0-3 for finding memory address, but in edc15 there are 0,1,2,3 in DPP registers.   

Please give me a point to start.