Compiler/virtual machine interpreter: Difference between revisions

m
Line 8,750:
%%% Usage: vm [INPUTFILE [OUTPUTFILE]]
%%% The notation "-" means to use standard input or standard output.
%%% Leaving out an argument is equivalent to specifyingdspecifying "-".
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Line 8,827:
pop_value(Y),
pop_value(X),
((X =\= 0, Y =\= 0) -> Z = 1; Z = 0),
push_value(Z))
; (Opcode == ('or'),
pop_value(Y),
pop_value(X),
((X =\= 0; Y =\= 0) -> Z = 1; Z = 0),
push_value(Z))
; (Opcode == ('neg'),
Line 9,121:
count is: 8
count is: 9</pre>
 
 
 
 
=={{header|Python}}==
1,448

edits