Closed Homo-carbonis closed 1 year ago
Thanks, this looks good to me. I've given it a quick manual test and it seems to work. I'm not sure exactly what was supposed to be happening with ifstream::streampos - there was quite a lot of discussion about this at one point - but FWIW this code builds fine for me on Ubuntu 20.04.5 LTS with gcc 9.4.0.
Thanks for the fix.
The latest version of beebasm is in the proposed-updates branch. This includes a fix for the streampos thing which, unfortunately, clashes with your fix. Would you mind rebasing this pr on the proposed-updates branch?
In the very near future, when v1.10 is released, we are moving development to the master branch to avoid this confusion.
I changed the if statement which rejects letters and underscores after instruction mnemonics to just reject anything which isn't a space which resolves my macro issue, though possibly breaks someone else's code.
I also changed the deprecated ifstream::streampos type so it compiles without warnings.