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

SPASM treats includes relative to working directory instead of path of file #66

Open
ghost opened this issue May 29, 2023 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented May 29, 2023

When compiling a file in a different directory than the working directory as defined by $PWD, the include macros should include files relative to the path of the file. Here is a minimal example.

$ cat src/main.c
#include "ti84pce.inc"
.org userMem - 2
.db tExtTok, tAsm84CeCmp
ret
$ ls -R
.:
src

./src:
main.asm  ti84pce.inc
$ spasm -E src/main.asm main.8xp
Pass one...
src/main.aam:1: error: "ti84pce.inc: No such file or directory
src/main.asm:1: error SE001: Could not find the file '"ti84pce.inc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants