Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case (byte) Command.LOOP_BEG:
- if(Cell.Value == 0)
- {
- int depth = 0;
- while(true)
- {
- begin:
- switch (ByteCode[IP])
- {
- case (byte) Command.LOOP_BEG:
- depth++;
- break;
- case (byte) Command.LOOP_END:
- depth--;
- if(depth == 0) goto end;
- break;
- }
- IP++;
- goto begin;
- end:
- break;
- }
- }
- else
- {
- Stack.Push(IP);
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement