parent
64cdcfed2c
commit
97b2a7df25
40 changed files with 139707 additions and 92 deletions
27
x86_64/bin_to_h.c
Normal file
27
x86_64/bin_to_h.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
unsigned n = 0;
|
||||
int c;
|
||||
|
||||
printf("UINT8 rmswitch_image[] = {\n");
|
||||
|
||||
while ((c = getchar()) != EOF) {
|
||||
printf("0x%02x,%s",
|
||||
c & 0xFF,
|
||||
(++n & 0x07) ? " " : "\n");
|
||||
}
|
||||
|
||||
if (n & 0x07) {
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
printf(
|
||||
"};\n"
|
||||
"UINTN rmswitch_size = sizeof rmswitch_image;\n");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue