Add bin4.obf, fixed a bug in ovm.c

master
Stefan Bühler 13 years ago
parent 1cb1296f40
commit df4f1f95cf
  1. 7
      ovm/ovm.c
  2. 4
      task/Makefile
  3. BIN
      task/bin4.obf

@ -31,6 +31,13 @@ ovm_t* ovm_load(const gchar *filename) {
exit(1);
}
if (0 != len % 12) {
fprintf (stderr, "file size of %s not a multiple of frame size\n", filename);
exit(1);
}
len /= 12;
oi = ovm->instructions;
vi = ovm->values;
for (cur = buf, i = 0; i < len; i++) {

@ -3,7 +3,7 @@ OVMJIT=../ovm/kdebuild/ovmjit
.SUFFIXES: .c .obf .o
FILES_OBF=bin1.obf bin2.obf bin3.obf
FILES_OBF=bin1.obf bin2.obf bin3.obf bin4.obf
FILES_C=$(FILES_OBF:.obf=.c)
.PHONY: all sources clean
@ -11,7 +11,7 @@ FILES_C=$(FILES_OBF:.obf=.c)
all: sources
%.c: %.obf $(OVMJIT)
@echo Creatin $@ from $<
@echo Creating $@ from $<
@$(OVMJIT) $< $@
sources: $(FILES_C)

Binary file not shown.
Loading…
Cancel
Save