TIS-100
   
奖励
收藏
已收藏
取消收藏
说明
"Signal Edge Detector"
2 条留言
Batou  [作者] 19 小时以前 
if you have the space you can get the program to work in parallel and you can get a lower cycle count
Lapras 10 月 21 日 下午 1:40 
I have been following your guides for a while and have been having trouble understanding why you expand your solution to so many modes some times.

Until I got to this solution with only 4 nodes for this "segment".

Everything is still a copy of your work... So I'm still gonna think over it for a while.

@0


@1
MOV ACC DOWN
MOV UP ACC
MOV ACC DOWN

@2


@3


@4


@5
1:MOV UP ACC
SUB UP
JGZ 2
NEG
2:SUB 9
JGZ 3
MOV 0 DOWN
JMP 1
3:MOV 1 DOWN

@6


@7


@8
MOV UP RIGHT

@9
MOV LEFT DOWN

@10

The difference is 408 cycles/ 4 nodes/ 14 instructions to the original (yours) 202/9/47

Thank you for your work!