File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " melon"
3
- version = " 0.2.0 "
3
+ version = " 0.2.1 "
4
4
authors = [
" Julian Laubstein <[email protected] >" ]
5
5
description = " A library for creating retro computing platforms"
6
6
repository = " https://github.com/bakervm/melon"
Original file line number Diff line number Diff line change @@ -795,14 +795,14 @@ impl VM {
795
795
}
796
796
797
797
/// Calls the function at the given address
798
- fn call ( & mut self , addr : Address ) {
798
+ pub fn call ( & mut self , addr : Address ) {
799
799
let call = self . pc ;
800
800
self . call_stack . push_front ( call) ;
801
801
self . pc = addr;
802
802
}
803
803
804
804
/// Returns from a function call
805
- fn ret ( & mut self ) -> Result < ( ) > {
805
+ pub fn ret ( & mut self ) -> Result < ( ) > {
806
806
let return_addr = self . call_stack
807
807
. pop_front ( )
808
808
. ok_or ( format_err ! ( "cannot return from an empty call stack" ) ) ?;
You can’t perform that action at this time.
0 commit comments