|
|
@@ -65,8 +65,8 @@ let assemble program =
|
|
|
end @
|
|
|
[Comment (sprintf "function \"%s\" with %d parameters and %d local vars"
|
|
|
label (List.length params) (indexof node));
|
|
|
- Label label;
|
|
|
- RtnEnter (indexof node)] @
|
|
|
+ Label label] @
|
|
|
+ (match indexof node with 0 -> [] | n -> [RtnEnter n]) @
|
|
|
(trav_all params) @
|
|
|
(trav body) @
|
|
|
(match ret_type with Void -> [Ret Void] | _ -> []) @
|