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

textri() causes error when using javascript #328

Closed
NathanMeyers42 opened this issue Oct 7, 2017 · 1 comment
Closed

textri() causes error when using javascript #328

NathanMeyers42 opened this issue Oct 7, 2017 · 1 comment
Assignees
Labels
API Issues related to TIC80 API bug
Milestone

Comments

@NathanMeyers42
Copy link

NathanMeyers42 commented Oct 7, 2017

This code results in an error "RangeError: invalid stack index 12":

function TIC() {
 cls();
 textri(0, 0, 
	32, 0, 
	0, 32, 
	8, 0, 
	24, 0, 
	8, 16,
	false, -1);
}

Its equivalent in LUA works perfectly fine:

function TIC()
 cls()
 textri(0, 0, 
	32, 0, 
	0, 32, 
	8, 0, 
	24, 0, 
	8, 16,
	false, -1)
end

screen

@nesbox nesbox self-assigned this Oct 8, 2017
@nesbox nesbox added bug API Issues related to TIC80 API labels Oct 8, 2017
@nesbox nesbox added this to the 0.47.0 milestone Oct 8, 2017
@nesbox
Copy link
Owner

nesbox commented Oct 8, 2017

fixed in .47

@nesbox nesbox closed this as completed Oct 8, 2017
CliffsDover pushed a commit to CliffsDover/TIC-80 that referenced this issue Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to TIC80 API bug
Projects
None yet
Development

No branches or pull requests

2 participants