6th Dec 2022, 12:07 pm | #21 | |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
|
|
6th Dec 2022, 12:47 pm | #22 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
OK, I recognise that file. Your problem is that it contains code in four distinct, different blocks, namely at
0880 onwards 0B00 onwards 0F00 onwards FFFE onwards (2 bytes). The last section (2 bytes at FFFE/FFFF) isn't actually needed as it is there to inform the keypad injection type loaders which address to execute from after loading, but it is fooling the converter into creating a really, really long file. You could only represent that code file as a single binary file by creating one which spans from 0880 to FFFF with very small pockets of actual code and a lot of padding in between. Even if you took away just that part the converter would still generate a binary file spanning 0880-0FFF, and attempting to load it would result in some of the code being loaded into areas which aren't RAM. This is why I was suggesting that the ability for MAME to load Intel Hex files natively would be particularly useful - no, I'm actually going to say - essential, in the case of the MK14, where the RAM is distributed as isolated little 'islands' instead of in one continuous run. Binary files are only useful for loading one continuous area of RAM in one go. Last edited by SiriusHardware; 6th Dec 2022 at 12:55 pm. |
6th Dec 2022, 1:00 pm | #23 | |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
Last edited by 777xxxx; 6th Dec 2022 at 1:13 pm. |
|
6th Dec 2022, 1:36 pm | #24 |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
im not sure how to save it or what format to export it to...
|
6th Dec 2022, 2:13 pm | #25 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
It's the 'SC/MP Inside' image mapped at 0200-03FF by the addresses in the hex file. When successfully loaded the VDU would have to be configured to display the 0200-03FF RAM area in order to view it and I think it might necessary to turn SWAP PAGES on to arrange the two halves of the image in the right order.
I have to agree that HxD (if that is what 777xxxx is using and is what I have just been using) is absolutely shocking when it comes to loading and saving specific file formats and moving blocks of code around. It isn't intuitive at all. When inside.hex is loaded HxD loads it at 0200 (as it should, because that this the address contained in the file). If you do a 'Save' (which implies binary save) it saves from 0000-03FF as binary without asking you what range you want to save, so you end up with a 1024 byte (1K) file with the significant info stashed in the upper half. You could try to copy the code from 0200-03FF down to 0000-1FFF and save only those 512 bytes as binary. In the short time I spent trying I couldn't see any way to do that. If anyone does know, please enlighten us. Does anyone know of another Windows Hex editor which behaves more like the editor of an EPROM programmer's support software? The Dataman software has been mentioned but it seems absurd to have to load up actual eprommer support software in order to access a decent hex editor. |
6th Dec 2022, 2:15 pm | #26 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,115
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Try this:
|
6th Dec 2022, 2:24 pm | #27 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
That ought to be exactly 512 bytes I think, Phil. Oh sorry, you zipped it of course.
|
6th Dec 2022, 2:29 pm | #28 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
if Phil's done it right then you need to binary load it at address 0200 and there is no executable code, therefore no run address on this one. You just point the VDU at address 0200-03FF and the image will be there.
As said earlier you probably also need to activate SWAP PAGEs to show the upper and lower halves of the image in the correct order, also Graphics (not character) mode needs to be selected. |
6th Dec 2022, 3:04 pm | #29 | |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
the problem is, when i save it as inside.bin, it saves it as hex... here are the other files i would like to convert: Last edited by 777xxxx; 6th Dec 2022 at 3:25 pm. |
|
6th Dec 2022, 3:23 pm | #30 | |
Triode
Join Date: Nov 2022
Location: Croydon, Surrey, UK
Posts: 37
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
|
|
6th Dec 2022, 3:24 pm | #31 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Perhaps Phil can now explain how he managed to convert the file to .bin. I suspect he didn't use HxD.
|
6th Dec 2022, 3:26 pm | #32 |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
ive just attatched the files i would like to convert ^
|
6th Dec 2022, 3:30 pm | #33 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
|
|
6th Dec 2022, 3:31 pm | #34 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
|
|
6th Dec 2022, 3:36 pm | #35 |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
ok, fixed:
|
6th Dec 2022, 3:39 pm | #36 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Sorry, I must have caught you in mid-edit because your file was attached to #29 when I looked again. You realise your attached file is only 22 bytes? Even for a zipped file that is improbably small. Want to check it again?
|
6th Dec 2022, 3:41 pm | #37 |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
|
6th Dec 2022, 3:50 pm | #38 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,560
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Some of those files have code in more than one area and will present difficulties with conversion to a single binary file. If they originate from Tim at least some of them will have the program execution address in addresses FFFE and FFFF of the file which will completely freak out any Intel to Binary converter.
777xxxx's original question was how to go about converting one format to the other. Phil seems to have a method but hasn't yet explained, for the benefit of the OP, what that is. |
6th Dec 2022, 3:58 pm | #39 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,115
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Clive:
|
6th Dec 2022, 4:01 pm | #40 |
Tetrode
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
|