Skip to content

Commit

Permalink
Switch from tonc{set,cpy} to mem{set,cpy}
Browse files Browse the repository at this point in the history
BlocksDS actually has a sane version of these, making coranac's version
unnecessary.
  • Loading branch information
lifehackerhansol committed Apr 10, 2023
1 parent e396fed commit cbcf5ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 225 deletions.
7 changes: 3 additions & 4 deletions arm9/source/main.c
Expand Up @@ -16,7 +16,6 @@
#include <fat.h>

#include "fifoChannels.h"
#include "tonccpy.h"

/*
Firmware type enum.
Expand Down Expand Up @@ -90,7 +89,7 @@ void printBiosCRC32(u8* buffer, u32 size) {
// no point in adding return value as BIOS is always 4KiB
void dump_arm9(u8* buffer, u32 size) {
printf("Dumping BIOS9\n\n");
tonccpy((void*)buffer, (void*)0xFFFF0000, size);
memcpy((void*)buffer, (void*)0xFFFF0000, size);
printBiosCRC32(buffer, size);
}

Expand Down Expand Up @@ -236,7 +235,7 @@ int dump_all(void) {
}
printf("\n\n");

toncset(buffer, 0, BUFFER_SIZE);
memset(buffer, 0, BUFFER_SIZE);
dump_arm7(buffer, 0x4000);
memcpy(filename+16, "biosnds7.rom", 12);
if(!write_file(filename, buffer, 0x4000)) {
Expand All @@ -245,7 +244,7 @@ int dump_all(void) {
}
printf("\n\n");

toncset(buffer, 0, BUFFER_SIZE);
memset(buffer, 0, BUFFER_SIZE);
dump_arm9(buffer, 0x1000);
memcpy(filename+16, "biosnds9.rom", 12);
if(!write_file(filename, buffer, 0x1000)) {
Expand Down
157 changes: 0 additions & 157 deletions arm9/source/tonccpy.c

This file was deleted.

64 changes: 0 additions & 64 deletions arm9/source/tonccpy.h

This file was deleted.

0 comments on commit cbcf5ae

Please sign in to comment.