User Tools

Site Tools


notes:flashcart:ezflash5

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
notes:flashcart:ezflash5 [2024/11/07 20:13] asienotes:flashcart:ezflash5 [2024/11/07 22:50] (current) asie
Line 3: Line 3:
 ===== Commands ===== ===== Commands =====
  
-==== SRAM: Read byte (B7 01 aa aa aa 00 00 00) ====+==== Card: Read with prefetch (B7 aa bb cc dd nn 00 00) ====
  
-Returns four bytes; the first byte is the read byte.+  * First, ''B7aaaaaaaa010000'' is sent - returns 4 bytes. The final byte may be ''FF'' or ''00'' - if it's ''00'', prefetch is complete. 
 +  * Next, if prefetch was not complete, ''B7aaaaaaaa020000'' is sent repeatedly - returns 4 bytes, same format as above. 
 +  * Then, ''B7aaaaaaaa000000'' is issued as normal.
  
-==== ?? (B8 F2 00 00 nn 00 00 00) ====+==== SRAM: Read words (B7 01 aa bb cc 00 00 00) ====
  
-- ''nn'' = 00 ~ A2 (in increments of 2)+Returns 4 or 512 bytes (maybe more).
  
-==== ?? Write ASIC register ?? (B8 F4 ?? ?? ?? ?? ?? ??) ====+==== NOR: Write byte (B8 F0 aa bb cc 00 00 dd) ====
  
-''B8,F4,01,00,55,AA,55,00'' +Writes byte ''dd'' to address ''aabbcc''.
-''B8,F4,02,06,55,AA,55,AA'' +
-- ''B8,F4,01,04,55,AA,55,00''+
  
-These may influence the behaviour of command ''B7''.+==== NOR: Write word (B8 F0 aa bb cc 00 ee dd) ====
  
-''B8,F4,03,03,55,AA,55,AA''+Writes word ''ddee'' (as two bytes?) to address ''aabbcc''.
  
-In this mode, it appears that command ''B7'' acts differently:+==== SRAMWrite word (B8 F2 aa bb cc 00 ee dd) ====
  
-- First, ''B7aaaaaaaa010000'' is sent (prefetch?) - returns 4 bytes. The final byte may be ''FF'' or ''00'' - if it's ''00'', prefetch is complete. +Writes word ''ddee'' to address ''aabbcc''.
-- Next, if prefetch was not complete, ''B7aaaaaaaa020000'' is sent repeatedly - returns 4 bytes, same format as above. +
-- Then, ''B7aaaaaaaa000000'' is issued as normal.+
  
-It appears the cartridge runs a self-test of some kind for this?+==== Card: ?? (B8 F4 01 nn 55 AA 55 00) ==== 
 + 
 +==== Card: Configure save emulation (B8 F4 02 nn 55 AA 55 AA) ==== 
 + 
 +==== Card: ?? (B8 F4 03 nn 55 AA 55 AA) ====
  
 ==== TF: Write data (B8 F6 Fa Fb Fc Fd 00 00) ==== ==== TF: Write data (B8 F6 Fa Fb Fc Fd 00 00) ====
Line 33: Line 35:
 ==== TF: Start data write (B8 F6 FF FF FF F0 00 00) ==== ==== TF: Start data write (B8 F6 FF FF FF F0 00 00) ====
  
-''ab cd'' - bytes to write (sent as nibbles)+  * ''ab cd'' - bytes to write (sent as nibbles)
  
 ==== TF: Read 512 bytes (B8 F7 00 00 00 00 00 00) ==== ==== TF: Read 512 bytes (B8 F7 00 00 00 00 00 00) ====
Line 43: Line 45:
 ==== TF: Read response (B8 FA nn 00 00 00 00 00) ==== ==== TF: Read response (B8 FA nn 00 00 00 00 00) ====
  
-''nn'' - page to read (1-5).+  * ''nn'' - page to read (1-5). 
 + 
 +==== ?? Lock ?? (B9 FF 55 AA 00 00 00 00) ====
  
-==== ?? Unlock ?? (B9 FF 55 AA 00 00 00 00) ====+==== ?? Unlock ?? (B9 FF A5 5A 00 00 00 00) ====
  
-==== ?? Lock ?? (B9 FF A5 5A 00 00 00 00) ====+==== Lock until reset? (B9 FF 5A A5 00 00 00 00) ====
  
 ===== SRAM ===== ===== SRAM =====
  
-''0x7DFE0'' - 1 if high-capacity TF card, 0 otherwise+  * ''0x7DFE0'' - 1 if high-capacity TF card, 0 otherwise
  
notes/flashcart/ezflash5.1731010427.txt.gz · Last modified: 2024/11/07 20:13 by asie