Full Stack Language
About...
-
Examples...
Stack count
Collapse blank lines
Show Comments
// Initialization PUSH 0 0 // Total sum PUSH 1 1 // Counter 1-20 :loop PUSH 0 s1 // Sum counter ADD 0 PUSH 1 s1 // Compare with 20 (limit) PUSH 1 20 SUB 1 JZ 1 end // If is 20, ended POP 1 // If isn't 20, increment counter PUSH 1 1 ADD 1 JMP loop :end WRITE s0
Click on a line to set a breakpoint
Execution
Output