Fixed flag problem and changed s command to be enable to set value to ibuf and obuf.
Fixed flag error and implemented non-interactive mode.
Merge branch 'master' into hyamamoto
Merged stdout.c and added the prototype file.

There is still error about stdout.c.

Scanning dependencies of target kuechip
[  6%] [ 20%] [ 13%] [ 26%] [ 33%] Building C object kue-chip2/CMak
Building C object kue-chip2/CMakeFiles/kuechip.dir/cont.c.o
[ 40%] Building C object kue-chip2/CMakeFiles/kuechip.dir/init.c.o
[ 46%] Building C object kue-chip2/CMakeFiles/kuechip.dir/interpret
Building C object kue-chip2/CMakeFiles/kuechip.dir/mem_file.c.o
Building C object kue-chip2/CMakeFiles/kuechip.dir/memdiff.c.o
[ 53%] Building C object kue-chip2/CMakeFiles/kuechip.dir/reg.c.o
Building C object kue-chip2/CMakeFiles/kuechip.dir/set.c.o
[ 60%] /home/hyamamoto/Documents/info_ed1/source/kue-chip2/interfacesult'
      is invalid in C99 [-Wimplicit-function-declaration]
                                  output_result(result+cpu);
                                                              ^
                                                              [ 66%] Building C object kue-chip2/CMakeFiles/kuechip.dir/memory.c.
                                                              [ 73%] Building C object kue-chip2/CMakeFiles/kuechip.dir/string.c.
                                                              1 warning generated.
                                                              [ 80%] Building C object kue-chip2/CMakeFiles/kuechip.dir/out_to_cs
                                                              Building C object kue-chip2/CMakeFiles/kuechip.dir/stdout.c.o
                                                              /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:107: warni
                                                                    [-Wconstant-logical-operand]
                                                                      ...%d:%2x OUT: %d:%2x\n", d->acc, d->ix, ((d->flags||0x8)>>3), ((d->fla
                                                                                                                           ^ ~~~
                                                                                                                           /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:107: note: use '|' for a bitwise operation
                                                                                                                             ...%d:%2x OUT: %d:%2x\n", d->acc, d->ix, ((d->flags||0x8)>>3), ((d->fla
                                                                                                                                                                                  ^~~~~
                                                                                                                                                                                                                                       |
                                                                                                                                                                                                                                       /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:129: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                             [-Wconstant-logical-operand]
                                                                                                                                                                                                                                               ...d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flag
                                                                                                                                                                                                                                                                                                   ^ ~~~
                                                                                                                                                                                                                                                                                                   /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:129: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                     ...d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flag
                                                                                                                                                                                                                                                                                                                                                         ^~~~~
                                                                                                                                                                                                                                                                                                                                                                                                             |
                                                                                                                                                                                                                                                                                                                                                                                                             /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:151: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                   [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                     ...d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag, (d->in)->bi
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:5:151: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ...d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag, (d->in)->bi
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:26:35: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           output_memory_dump_line(d, (int)a||0xF0);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^ ~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:26:35: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            output_memory_dump_line(d, (int)a||0xF0);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^~~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:27:36: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            output_memory_dump_line(d, ((int)a||0xF0)+8);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^ ~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:27:36: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              output_memory_dump_line(d, ((int)a||0xF0)+8);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^~~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:39:18: error: read-only variable is not assignable
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          if(d->code_size = 2) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~ ^
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:159: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ...d->cpuid, d->pc, d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1),...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^ ~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:159: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ...d->cpuid, d->pc, d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1),...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:181: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ...d->pc, d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag,...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^ ~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:181: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ...d->pc, d->acc, d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag,...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:203: warning: use of logical '||' with constant operand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [-Wconstant-logical-operand]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ...d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag, (d->in)->bits,...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^ ~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     /home/hyamamoto/Documents/info_ed1/source/kue-chip2/stdout.c:42:203: note: use '|' for a bitwise operation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ...d->ix, ((d->flags||0x8)>>3), ((d->flags||0x4)>>2), ((d->flags||0x2)>>1), (d->flags||0x1), (d->in)->flag, (d->in)->bits,...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^~~~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           8 warnings and 1 error generated.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           make[2]: *** [kue-chip2/CMakeFiles/kuechip.dir/stdout.c.o] Error 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           make[2]: *** Waiting for unfinished jobs....
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           make[1]: *** [kue-chip2/CMakeFiles/kuechip.dir/all] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           make: *** [all] Error 2