From: Martin Perner Date: Sat, 18 Dec 2010 10:54:22 +0000 (+0100) Subject: [bench] vm: jump is with int8_t, not with uint8_t X-Git-Tag: bootrom_v1~62 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=calu.git;a=commitdiff_plain;h=05bff303b56da2520f61c70c10c6ba3bc75157f5 [bench] vm: jump is with int8_t, not with uint8_t --- diff --git a/8_benchs/src/vm.s b/8_benchs/src/vm.s index 3d17099..05b9812 100644 --- a/8_benchs/src/vm.s +++ b/8_benchs/src/vm.s @@ -215,6 +215,12 @@ vm_jmp: ;if != 0 ;load pc+1 input ldb r6, 1(r4) + ;compare input with neg. max of 8 bit + cmpi r6, 0x80 + brlt- vm_possign + ldis r7, 0xFF00 + add r6, r6, r7 +vm_possign: ;pc += data add r2, r2, r6 br+ vm_loop