Replies: 6 comments
-
Try this command |
Beta Was this translation helpful? Give feedback.
-
But you're importing the binary, right?
I worry if somehow you haven't done the import at all... pretty sure you also get this error if the You might look at the WASM-4 console examples though and if you wanted to port over their AsssemblyScript stuff so we "officially" support it (by providing an easy to use build template/example) that'd be awesome. |
Beta Was this translation helpful? Give feedback.
-
Well actually getting memory in the right segments matter, which is why I refer you to the WASM-4 examples... but that would be a problem you'd run into AFTER you get past the "can't find TIC" error... |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip nesbox, that works pretty good. I was not putting the '&' between commands. I'll keep experimenting with assembly script and when I get something basic working, I'll post it here. I look at the textual output of assemblyscript and see if it is actually in the right segement. |
Beta Was this translation helpful? Give feedback.
-
I don't know, but seems like webassembly is more of a complicated beast than I anticipated. I was hoping to be able to create web assembly binaries without actually have to know web assembly itself. But anyway here is an example output from the compiler. It doesn't seem to have that error I had previously, but as soon as I try to declare a function it gives me that error. Here is the .ts file: declare function cls(n: i32): void and here is the output from the compiler: (module |
Beta Was this translation helpful? Give feedback.
-
That looks sort of ok, but the
You'll need to adjust the memory config slightly for TIC-80:
|
Beta Was this translation helpful? Give feedback.
-
How to I load a binary .wasm file in TIC-80 from a given path? Right now, I have to copy the binary into my %appdata% com.nesbox.tic folder in order for it to find it and that makes the build process more difficult. Also I get an "unknown option" when using the -code argument. Did something change?
(On pro version).
Also, I wrote a simple Test in AssebemblyScript and got it to build:
declare function print(s: string,x: i32,y: i32): void;
export function TIC():void
{
print("this is a test",10,10);
}
Error: WASM must export a TIC function.
Looking at the text file of the compiled assembly, it looks like
it is exported. Has anyone tried using AssebmblyScript for tic80?
Beta Was this translation helpful? Give feedback.
All reactions