Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi value #10

Open
thomscoder opened this issue Nov 9, 2022 · 0 comments
Open

Add multi value #10

thomscoder opened this issue Nov 9, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@thomscoder
Copy link
Owner

Now that Luna supports subtractions and addition, should be able to call different functions like this

(module
  (func $subtractNumbers (param i32 i32) (result i32)
    local.get 1
    local.get 0
  	i32.sub
  )

  (func (export "addNumbers") (param i32 i32 i32) (result i32)
    local.get 0
    local.get 1
    call $subtractNumbers
    local.get 2
    i32.add))
@thomscoder thomscoder added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant