Add DUP n
Clarification and motivation
New DUP n
instruction has appeared (
Note that this is a breaking change due to how the DUU+P
macro is now handled. For example, pre-008 expects that DUUP
gets expanded into DIP DUP ; SWAP
, whereas 008 expects DUUP
to expand to DUP 2
. Since we can't support compatibility to both 007
and 008
simultaneously in this matter, we regard this as a breaking change.
Acceptance criteria
- Implement
DUP n
(note that we already have a similarduupX
). - Deprecate
duupX
; check whether optimizations for@1
and@2
cases make sense now. - Replace existing
DIP n DUP; DIG N
encounters (e.g. indupL
implementation).
Edited by Heitor Toledo Lassarote de Paula