LessNick Posted August 23, 2019 Share Posted August 23, 2019 Hello there o/ I need to convert macroassembler Mac65 source files (* .M65) to text file format on PeeCee. Are there any utilities for this? If you simply open the file in any text editor, we will see strange text. But everything looks great in the same MAC65 editor. As i can see file is tokenized or something like that. Thanks in advance for your reply. Quote Link to comment Share on other sites More sharing options...
AtariGeezer Posted August 23, 2019 Share Posted August 23, 2019 ATR Tools will do this for you: https://atariage.com/forums/topic/192052-atr-tools/?do=findComment&comment=4331394 Open an ATR and Right-Click on the .M65 file in the Directory Listing and choose View File. Check the View -> Output -> ASCII Menu. Click the Save Button in the File View tab... 1 Quote Link to comment Share on other sites More sharing options...
LessNick Posted August 23, 2019 Author Share Posted August 23, 2019 2 hours ago, AtariGeezer said: ATR Tools will do this for you: https://atariage.com/forums/topic/192052-atr-tools/?do=findComment&comment=4331394 Open an ATR and Right-Click on the .M65 file in the Directory Listing and choose View File. Check the View -> Output -> ASCII Menu. Click the Save Button in the File View tab... Big thanks! It's really works! Even without the need to switch between Output -> ASCII and ATASCII! Quote Link to comment Share on other sites More sharing options...
LessNick Posted August 23, 2019 Author Share Posted August 23, 2019 2 hours ago, AtariGeezer said: ATR Tools will do this for you: And yet there is a small problem when saving the file: If the text is written in inverted font, then the characters are not saved correctly. Please can you fix this? Thanks a lot in advance! Quote Link to comment Share on other sites More sharing options...
Rybags Posted August 23, 2019 Share Posted August 23, 2019 It's doing the right thing - the utility saves the text to suit the Atari. Atari uses bit 7 set high in ATASCII to represent inverse video (except $9B which is CR). Normal ASCII, ANSI, UTF-8, Unicode etc doesn't, in the case you see those character values are accented letters. Quote Link to comment Share on other sites More sharing options...
ivop Posted August 23, 2019 Share Posted August 23, 2019 I was about to point you to here: but it seems the forum upgrade ate all attachments to ALL my blog posts 1 Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted August 23, 2019 Share Posted August 23, 2019 (edited) IVOP, please contact AL about this, if something can't be done directly, he may be able to provide you the back ups from the previous forum software and thereby a possible re construction of you valuables might be accomplished. I've noticed this sort of thing here or there but thought it would take care of itself as the forum settled. Becoming complacent and forgetting to follow up eventually. I suspect many of us are guilty of that sort of thing. /s.s Edited August 23, 2019 by _The Doctor__ Quote Link to comment Share on other sites More sharing options...
ivop Posted August 23, 2019 Share Posted August 23, 2019 Thanks. I've opened an issue on the tracker. It's not that I don't have the code anymore, but it's a pity that all those blogs now refer to unavailable files. For now, here's demac65.c demac65.zip 2 Quote Link to comment Share on other sites More sharing options...
LessNick Posted August 23, 2019 Author Share Posted August 23, 2019 2 hours ago, Rybags said: It's doing the right thing - the utility saves the text to suit the Atari. Hmm.… May be utility can reset the 7th bit and saving it as plain text? Logically it's same text, just decorated, it isn't? …or at least make one of the possible convertation mode Quote Link to comment Share on other sites More sharing options...
LessNick Posted August 23, 2019 Author Share Posted August 23, 2019 28 minutes ago, ivop said: Thanks. I've opened an issue on the tracker. It's not that I don't have the code anymore, but it's a pity that all those blogs now refer to unavailable files. For now, here's demac65.c demac65.zip 1.98 kB · 1 download Thank you! Very useful tool, but still same problem with inverted chars Quote Link to comment Share on other sites More sharing options...
1050 Posted August 23, 2019 Share Posted August 23, 2019 4 hours ago, LessNick said: And yet there is a small problem when saving the file: If the text is written in inverted font, then the characters are not saved correctly. Please can you fix this? Thanks a lot in advance! The solution is in the converter, the equivalent that is printable would look like this: 4150 .BYTE +$80," MYDOS double density ATARI OS ",$1B except we still need a non-inverted space preceding that so writing the converter code that would do this automatically for us is fraught will all sorts of problems that were understandably dismissed as good enough for government work. Leaving it to us as a manual exercise. Quote Link to comment Share on other sites More sharing options...
Roydea6 Posted August 23, 2019 Share Posted August 23, 2019 (edited) Doesn't Memopad (by) Joyfulcoder do Mac 65 files also besides basic file translations. http://joyfulcoder.com/memopad/ Edited August 23, 2019 by rdea6 Quote Link to comment Share on other sites More sharing options...
+Nezgar Posted August 23, 2019 Share Posted August 23, 2019 Or just use an Atari font on the PC that has inverted characters for 128-255... I thought there was an old bitmap .FON floating around, maybe atrtools uses it internally. Quote Link to comment Share on other sites More sharing options...
LessNick Posted August 23, 2019 Author Share Posted August 23, 2019 1 hour ago, 1050 said: The solution is in the converter, the equivalent that is printable would look like this: 4150 .BYTE +$80," MYDOS double density ATARI OS ",$1B OK. Good idea. But required global code analyse and neat fix some source. So here, my quick fix bit solution on python3: fix_atascii.zip Quote Link to comment Share on other sites More sharing options...
+MrFish Posted August 26, 2019 Share Posted August 26, 2019 Try using this:http://joyfulcoder.com/memopad/Sent from my UL40 using Tapatalk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.