Skip to content

Commit

Permalink
fxpakpro: fix asm copy generation tests per new sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed Mar 17, 2024
1 parent 7ae4ab0 commit c9b94d7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions devices/snes/drivers/fxpakpro/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0:0x1e2],
Data: d[0:0x1de],
},
},
wantRemainder: []devices.MemoryWriteRequest(nil),
},
test{
name: "split at $1e2",
name: "split at $1de",
args: []devices.MemoryWriteRequest{
{
RequestAddress: devices.AddressTuple{
Expand All @@ -76,11 +76,11 @@ func TestGenerateCopyAsm(t *testing.T) {
wantRemainder: []devices.MemoryWriteRequest{
{
RequestAddress: devices.AddressTuple{
Address: 0xF50000 + 0x1e2,
Address: 0xF50000 + 0x1de,
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2:],
Data: d[0x1de:],
},
},
},
Expand All @@ -93,15 +93,15 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0 : 0x1e2-12],
Data: d[0 : 0x1de-12],
},
{
RequestAddress: devices.AddressTuple{
Address: 0xF51000,
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12:],
Data: d[0x1de-12:],
},
},
wantRemainder: []devices.MemoryWriteRequest{
Expand All @@ -111,7 +111,7 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12:],
Data: d[0x1de-12:],
},
},
},
Expand All @@ -124,15 +124,15 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0 : 0x1e2-11],
Data: d[0 : 0x1de-11],
},
{
RequestAddress: devices.AddressTuple{
Address: 0xF51000,
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12:],
Data: d[0x1de-12:],
},
},
wantRemainder: []devices.MemoryWriteRequest{
Expand All @@ -142,7 +142,7 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12:],
Data: d[0x1de-12:],
},
},
},
Expand All @@ -155,15 +155,15 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0 : 0x1e2-13],
Data: d[0 : 0x1de-13],
},
{
RequestAddress: devices.AddressTuple{
Address: 0xF51000,
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12:],
Data: d[0x1de-12:],
},
},
wantRemainder: []devices.MemoryWriteRequest{
Expand All @@ -173,7 +173,7 @@ func TestGenerateCopyAsm(t *testing.T) {
AddressSpace: sni.AddressSpace_FxPakPro,
MemoryMapping: sni.MemoryMapping_LoROM,
},
Data: d[0x1e2-12+1:],
Data: d[0x1de-12+1:],
},
},
},
Expand Down

0 comments on commit c9b94d7

Please sign in to comment.