Fixed formatting and added function to makefile
This commit is contained in:
parent
9f14c28646
commit
ba9bb0ba29
|
@ -29,16 +29,16 @@ int main ()
|
||||||
int i = read(0, &c, 1);
|
int i = read(0, &c, 1);
|
||||||
while( i > 0)
|
while( i > 0)
|
||||||
{
|
{
|
||||||
output[0] = table[c / 16];
|
output[0] = table[c / 16];
|
||||||
output[1] = table[c % 16];
|
output[1] = table[c % 16];
|
||||||
write(1, output, 2 );
|
write(1, output, 2 );
|
||||||
col = col - 2;
|
col = col - 2;
|
||||||
if(0 == col)
|
if(0 == col)
|
||||||
{
|
{
|
||||||
col = 40;
|
col = 40;
|
||||||
write(1, "\n", 1);
|
write(1, "\n", 1);
|
||||||
}
|
}
|
||||||
i = read(0, &c, 1);
|
i = read(0, &c, 1);
|
||||||
}
|
}
|
||||||
write(1, "\n", 1);
|
write(1, "\n", 1);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
3
makefile
3
makefile
|
@ -83,6 +83,9 @@ dis: High_level_prototypes/disasm.c | bin
|
||||||
hex: Linux\ Bootstrap/hex.c | bin
|
hex: Linux\ Bootstrap/hex.c | bin
|
||||||
gcc Linux\ Bootstrap/hex.c -o bin/hex
|
gcc Linux\ Bootstrap/hex.c -o bin/hex
|
||||||
|
|
||||||
|
xeh: Linux\ Bootstrap/xeh.c | bin
|
||||||
|
gcc Linux\ Bootstrap/xeh.c -o bin/xeh
|
||||||
|
|
||||||
# libVM Builds for Development tools
|
# libVM Builds for Development tools
|
||||||
libvm.so: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
libvm.so: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
||||||
gcc -ggdb -Dtty_lib=true -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
gcc -ggdb -Dtty_lib=true -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
||||||
|
|
Loading…
Reference in New Issue