inst_set.default
来自「有趣的模拟进化的程序 由国外一生物学家开发 十分有趣」· DEFAULT 代码 · 共 52 行
DEFAULT
52 行
nop-A 1 # a
nop-B 1 # b
nop-C 1 # c
if-n-equ 1 # d
if-less 1 # e
pop 1 # f
push 1 # g
swap-stk 1 # h
swap 1 # i
shift-r 1 # j
shift-l 1 # k
inc 1 # l
dec 1 # m
add 1 # n
sub 1 # o
nand 1 # p
IO 1 # q Puts current contents of register and gets new.
h-alloc 1 # r Allocate as much memory as organism can use.
h-divide 1 # s Cuts off everything between the read and write heads
h-copy 1 # t Combine h-read and h-write
h-search 1 # u Search for matching template, set flow head & return info
# # if no template, move flow-head here, set size&offset=0.
mov-head 1 # v Move ?IP? head to flow control.
jmp-head 1 # w Move ?IP? head by fixed amount in CX. Set old pos in CX.
get-head 1 # x Get position of specified head in CX.
if-label 1 # y
set-flow 1 # z Move flow-head to address in ?CX?
#adv-head 1
#jump-f 1
#jump-b 1
#call 1
#return 1
#if-bit-1 1
#get 1
#put 1
#h-read 1
#h-write 1
#set-head 1
#search-f 1
#search-b 1
# Works on multiple nops: pop push inc dec IO adv-head
# What if we add a new head. Search will return the location of something,
# and put the new head there. Then set-head will move another head to that
# point. In the case of the copy loop, it only needs to be set once and
# this will speed up the code quite a bit!
# Search with no template returns current position (abs line number) in
# genome.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?