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

missing tools/assembler/bin\assembler.dart #18

Open
zoul0813 opened this issue Aug 4, 2024 · 3 comments
Open

missing tools/assembler/bin\assembler.dart #18

zoul0813 opened this issue Aug 4, 2024 · 3 comments

Comments

@zoul0813
Copy link

zoul0813 commented Aug 4, 2024

It looks like [Bb]in/ is in the .gitignore, and the tools/assembler/bin\assembler.dart file referenced in build_releases.cmd is not available.

I'm attempting to make a MacOS build, but can not generate the assembler due to the missing assembler.dart

Admittedly, I'm not very familiar with Dart, and could be doing something wrong...

I've duplicated all the .cmd files, and converted them into MacOS friendly .sh files (and can provide this as a PR once I get it working - with linux compatibility included)

@nicolacimmino
Copy link
Owner

Thanks for pointing this out! I have fixed and added the file.

If you manage to get a working version for the Mac that would be great, I don't have one around to test.

@zoul0813
Copy link
Author

zoul0813 commented Aug 6, 2024

@nicolacimmino thanks - looks like I managed to get a working build on my Mac, but after further review of the tools/assembler/README.md, I noticed it mentions an assembler-cc65 option, and links to that folder ... but that folder is also not supplied in the repo.

To test the Mac build of the assembler, I assembled the tools/simulator/examples/test_program_a.asm with it ... the resulting binary I got was 256B in size, compared to the original 13B bin that was in the folder (I also had to add the .board directive to the top - perhaps the assembler should assume the PLC14500-Nano unless specified?).

My newly compiled test_program_a.bin, at 256B, also appears to have set all the zeros to 0x0F ... where the original bin had a trailing 0, mine has trailing 0x0F up to 256B

Not sure if this is due to changes in the assembler, made after the test_program_a.bin was last compiled for the simulator?

@nicolacimmino
Copy link
Owner

nicolacimmino commented Aug 7, 2024

@zoul0813 zoul0813 Thanks for pointing that out! The CC65 stuff was moved to another repo to avoid generting too much confusion, I have fixed the read.me link to point to that repo instead of the old folder.

Regarding the binaries that's exactly what the current bootloader expects: 256-byte files padded with 0x0F (which is a NOPF, so no side effects if you forget a JMP 0 at the end of your program).

I like to have the board directive mandatory so that it's always clear for what board to build, true that at the moment there is only the nano, but I have plans to develop others.

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

2 participants