diff --git a/Linux Bootstrap/xeh.c b/Linux Bootstrap/xeh.c index 8a2ebe1..9d51919 100644 --- a/Linux Bootstrap/xeh.c +++ b/Linux Bootstrap/xeh.c @@ -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); diff --git a/makefile b/makefile index 2f47e61..bbe6e47 100644 --- a/makefile +++ b/makefile @@ -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