Better padding method in GWROMDisk

This commit is contained in:
Zane Kaminski 2020-06-24 16:58:00 -04:00
parent 58416dfc78
commit 4b4931b243

20
rdisk.c
View File

@ -11,12 +11,20 @@
// This function is here just to put padding at the // This function is here just to put padding at the
// beginning of the output file // beginning of the output file
void GWROMDisk() { void GWROMDisk() {
StripAddress(&GWROMDisk); __asm__ __volatile__
StripAddress(&GWROMDisk); (
StripAddress(&GWROMDisk); ".long 0x00000000\n\t"
StripAddress(&GWROMDisk); ".long 0x00000000\n\t"
StripAddress(&GWROMDisk); ".long 0x00000000\n\t"
StripAddress(&GWROMDisk); ".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t"
".long 0x00000000\n\t":::);
} }
#define RDiskSize (0x00180000L) #define RDiskSize (0x00180000L)