-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid executable in the fab-agon-emulator #4
Comments
not sure, but the TI stuff (ti/screen.h and ti/getcsc.h) are not Agon interfaces. I have the same problem with args/argv, I only get 1 in argc, the name of the executable; anything I append to either the I suspect this is just WIP "not working yet" and will continue to look for clues. |
And this just now... for a main.c int main(int argc, char **argv) {
printf("TCVM\n\r");
for (int i = 0; i < argc; i++)
{
printf("%d %s\n\r", argc, argv[i]);
}
if (argc < 2) fail("usage: tcvm program [args]");
Args = argv;
Narg = argc;
printf ("TCVM Starting...\r\n");
// load(argv[1]);
// run();
return EXIT_SUCCESS;
} and this was the result notice how the tokens |
BUT the .bin that was loaded before, is the one memory resident for the run command. a run does not load a new binary even if you put it as the first arg of the run command. |
|
yes, And if you put something nonsense there like |
If you use LOAD it reads the file and copies it to the memory. If you use RUN it executes the program in the memory. So you can then even delete the file and still RUN it. |
I'm pretty sure binaries created with this toolchain do work in the emulator (because I use it all the time). So it must be some installation error. |
Following the directions in the Readme.md to install the toolchain everything seems to be ok.
When compiling some code (args demo) it gives me (with the fab-agon-Emulator 0.9.11) Invalid executable.
I am using it in the following procedure:
1- Start the Emulator with: fab-agon-emulator --firmware quark (I am using the Official Quark VDP emulator as well) 2- Type *BYE to exit from BBC Basic 3- load args.bin 4-run &040000 Hello World Invalid executable
The code is compiling simply invoking the command: make
[compiling] src/args.c [lto opt] obj/lto.bc [convimg] description [linking] bin/args.bin [success] bin/args.8xp, 8462 bytes.
The same problem is with the bin or 8xp file.
Can you help me out?
Regards,
Gianluca
The text was updated successfully, but these errors were encountered: