HN := $(shell hostname)
TILABHOSTS := $(shell echo ti{1..41}) apps1
STEFANHOST := ubuntu
+MPHOST := mp-lap
ifeq ($(findstring $(HN), $(TILABHOSTS)), $(HN))
DPROGFLAGS := -d /dev/ttyS0 -b 9600
ifeq ($(findstring $(HN), $(STEFANHOST)), $(HN))
DPROGFLAGS := -d /dev/ttyS0 -b 115200
else
+ifeq ($(findstring $(HN), $(MPHOST)), $(HN))
DPROGFLAGS := -d /dev/ttyS0 -b 115200
+else
+DPROGFLAGS := -d /dev/ttyUSB0 -b 115200
+endif
endif
endif
.ifill cmpi r6,0;0xecb00000
.ifill pop r6
;static calced
-.fill 1, 0x1b000103;breq- vm_next
-.fill 1, 0xeb000003;br+ CONST
+.fill 1, 0x0b000003;brne+ CONST
prog_imm:
.ifill push r6
ldil r7, prog_jmp@lo
ldih r7, prog_jmp@hi
;load branch template
- ldw r7, 12(r7)
+ ldw r7, 8(r7)
;if actual and base are equal, no entry
cmp r9, r10
ldw r0, 4(r4)
PROGINSTR
- ;breq+ vm_next
- ;is statically known
- ldw r0, 8(r4)
- PROGINSTR
-
;we add the offset to this instruction
- addi r8, r2, 3
+ addi r8, r2, 2
;we know calculate the jump destination
;shift to the position of imm in br
lls r8, r8, 7
;load template br
- ldw r0, 12(r4)
+ ldw r0, 8(r4)
or r0, r0, r8
PROGINSTR
;increment address
- addi r2, r2, 4
+ addi r2, r2, 3
br+ vm_loop
;increment defer table address
addi r9, r9, 8
;increment address
- addi r2, r2, 4
+ addi r2, r2, 3
br+ vm_loop
;case P