Fixed formatting and added function to makefile

This commit is contained in:
Jeremiah Orians 2017-06-03 12:34:28 -04:00
parent 9f14c28646
commit ba9bb0ba29
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
2 changed files with 11 additions and 8 deletions

View File

@ -29,16 +29,16 @@ int main ()
int i = read(0, &c, 1);
while( i > 0)
{
output[0] = table[c / 16];
output[1] = table[c % 16];
write(1, output, 2 );
col = col - 2;
if(0 == col)
{
output[0] = table[c / 16];
output[1] = table[c % 16];
write(1, output, 2 );
col = col - 2;
if(0 == col)
{
col = 40;
write(1, "\n", 1);
}
i = read(0, &c, 1);
}
i = read(0, &c, 1);
}
write(1, "\n", 1);
exit(EXIT_SUCCESS);

View File

@ -83,6 +83,9 @@ dis: High_level_prototypes/disasm.c | bin
hex: Linux\ Bootstrap/hex.c | bin
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.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