How to edit MSX files on PC?

Page 2/2
1 |

By robodrunk

Resident (47)

robodrunk's picture

24-09-2020, 21:29

Time for a little advertisement! Big smile

With this tool (having a .DSK image of your stuff)
you can open up binary .BAS files in a DSK image file and see it's proper source text

http://pen-code.com/download?id=MsxDiskTool

Maybe I should make a separate application for this, though...

By joy_33

Supporter (10)

joy_33's picture

25-09-2020, 17:24

amazing program, works wonderfully

is it possible to edit any file that is on DSK?
directly in this program?
Did I manage to verify and examine the file, can I also edit and then save the file?

By robodrunk

Resident (47)

robodrunk's picture

26-09-2020, 02:31

Well, it is not very straightforward, as it only reads and shows/decodes the BAS source.
So you need to save it to a local folder, edit it with something (there are some MSX BAS syntax highlighters available with a few popular source text editors, like Sublime Text) - and then you can just drag it back into the DSK to update the image.

By NYYRIKKI

Enlighted (5595)

NYYRIKKI's picture

26-09-2020, 03:32

Text to MSX is very easy... You can ie. copy/paste your source to left window here:
https://msxpen.com/
... press Run on right side and see MSX executing it...

Text from MSX is more hard as (in case of disk) you really need to save the file with ",A" parameter. In case you are OpenMSX user and you use "dir as disk"-feature, you should find the file and all is Ok. On most other emulators you need to extract the resulting file from the disk image (*.DSK)

In theory you can also transfer files back without emulating disk, but practically.... just don't take that road.

By robodrunk

Resident (47)

robodrunk's picture

26-09-2020, 04:13

NYYRIKKI, I've implemented the MSX Basic binary decoder that is built-in into that MsxDiskTool utility. So it's just a click to get the file displayed as a proper ASCII text (or save it to local folder).
Going from ASCII back to binary was not something I planned, though (well, it's just a viewer, not a full scale BASIC decoder/compiler)

By joy_33

Supporter (10)

joy_33's picture

29-09-2020, 06:42

thank you all for the advice, I was looking for something like that.

By robodrunk

Resident (47)

robodrunk's picture

29-09-2020, 07:33

BTW, if you find any MSX BASIC decoding problems / errors in MsxDiskTool, please let me know Smile

Page 2/2
1 |