Added tak
This commit is contained in:
parent
3e2082dddf
commit
5668efaac8
|
@ -96,7 +96,7 @@
|
|||
INC GTHk ?&>loop-body
|
||||
POP2 &end JMP2r
|
||||
|
||||
@set-pos ( z mod -- )
|
||||
@set-pos ( z mod max -- )
|
||||
LDZ OVR INC ?{ ROT STZ
|
||||
POP JMP2r }
|
||||
DIVk MUL SUB SWP STZ
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
@on-reset ( -> )
|
||||
#0b #14 #18 tak
|
||||
#010e DEO
|
||||
BRK
|
||||
|
||||
@tak ( z y x -- res )
|
||||
LTHk ?{ POP2 JMP2r }
|
||||
ROT ROTk ROTk
|
||||
( x-1 ) #01 SUB tak STH
|
||||
( y-1 ) #01 SUB tak STH
|
||||
( z-1 ) #01 SUB tak STHr STHr !tak
|
||||
|
Loading…
Reference in New Issue