Files
.vim
documentation
library
object
source
test
tool
generators
flatten.c
heyo.asm
heyo_object.asm
include.txt
label.asm
metalatten.sh
multiply.asm
nop.c
plug
qfat.c
system.asm
test.asm
test.c
test.sh
tester.c
xfat.c
xia32e.c
xia32e_test.asm
xlatten.c
.gitignore
LICENSE.md
Makefile
README.md
eaxhla/tool/nop.c
2024-07-08 14:38:45 -04:00

40 lines
629 B
C

#include <xolatile/xtandard.c>
int main (int argc, char * * argv) {
int file = -1;
int size = 0;
int offset = 0;
unsigned char * buffer = NULL;
file = file_open (argv [1], O_RDONLY);
size = file_size (argv [1]);
buffer = allocate (size);
file_read (file, buffer, size);
file = file_close (file);
offset = 64 + 2 * 56 + 3;
do {
int byte = (int) buffer [offset];
if (byte == 0X90) {
echo ("\n");
echo_byte ((int) buffer [offset]);
} else {
echo_byte (buffer [offset]);
}
++offset;
} while (offset != size);
echo ("\n");
buffer = deallocate (buffer);
return (EXIT_SUCCESS);
}