Skip to content
New issue

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

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

Already on GitHub? # to your account

Run the program from anywhere #3

Open
nataliapc opened this issue Sep 10, 2024 · 0 comments
Open

Run the program from anywhere #3

nataliapc opened this issue Sep 10, 2024 · 0 comments

Comments

@nataliapc
Copy link

At this time the program can only be executed where the font.bin and index.gph are allocated.

Could be great that the program read the executable .COM folder and try to load the files from there.

For this you need just to read the Environment variable PROGRAM and extract the folder.

Example of howto:
https://github.com/nataliapc/sdcc_msxdos/blob/main/src/dos_get_program_path.c
https://github.com/nataliapc/sdcc_msxdos/blob/main/src/dos2_get_env.c

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant