mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[160041] - Added a sample PDA program that recursively descends the stack to a set depth.
This commit is contained in:
parent
bf58b66316
commit
d8d51a37b2
1 changed files with 11 additions and 0 deletions
11
plugins/org.eclipse.dd.examples.pda/samples/stack.pda
Normal file
11
plugins/org.eclipse.dd.examples.pda/samples/stack.pda
Normal file
|
@ -0,0 +1,11 @@
|
|||
push 100
|
||||
:inner
|
||||
dup
|
||||
output
|
||||
dup
|
||||
branch_not_zero descend
|
||||
return
|
||||
:descend
|
||||
dec
|
||||
call inner
|
||||
return
|
Loading…
Add table
Reference in a new issue