|
Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment. |
|
Thread Tools |
7th Dec 2022, 12:24 am | #61 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Sirius, do your two binary parts of segtris agree with mine from post #43 above?
maybe use "fc mine yours" ? Maybe I made a whoopsie in the conversion. Agree about the start address thing, can be confusing. Load & Execute it is |
7th Dec 2022, 12:43 am | #62 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
https://www.vintage-radio.net/forum/...40&postcount=4 Mine: Segtris_0b00.bin 209 bytes, chk16=5605h. Your SEGTRIS2.BIN = 208 bytes Mine: Segtris_0f14.bin 200 bytes, chk16=4E58h, Your SEGTRIS1.BIN = 199 bytes. *The file sizes in bytes are those reported by the file browser when looking at the properties in Windows 10. I haven't done a code compare yet because the file lengths do not match so any such comparison will fail. Edit: Ok, now I have done a byte against byte comparison. The only difference between your and my equivalent files is that mine have one extra byte on the end, in both cases '3F'. Edit #2: Just looked at the Hex file I stripped mine from and the last data byte in each of the two blocks of code is indeed 3F, roughly equivalent to 'RET' which you might reasonably expect to find on the end of a block of code. Last edited by SiriusHardware; 7th Dec 2022 at 1:06 am. |
|
7th Dec 2022, 1:07 am | #63 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Yep, really sorry - I messed up, forgot to add one to cx before saving. This should be right, should compare ok with yours G but I need to check the other files.
|
7th Dec 2022, 1:11 am | #64 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
I have to bale out for the night, but will look again tomorrow. Good luck.
|
7th Dec 2022, 1:26 am | #65 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Horserace, lister, checked ok
Update: see post 79 for Minefield Last edited by Phil__G; 7th Dec 2022 at 1:53 am. |
7th Dec 2022, 3:52 am | #66 | |
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:
|
|
7th Dec 2022, 4:00 am | #67 |
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?
|
7th Dec 2022, 9:55 am | #68 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Does SEGTRIS work? bearing in mind that it is a LED game, not a VDU game...
|
7th Dec 2022, 12:08 pm | #69 |
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?
|
7th Dec 2022, 12:20 pm | #70 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
So everything but minefield works?
Here's another LED demo, the 'Message' from the S of C manual. As an aside, HxD seems to lack lack a handy feature - 'relaxed checksum on import' - many of the Intel hex files I've found have null checksums, probably because many hexreader implementations dont check it, for example the programmer software Xgpro doesnt - which means Xgpro can be used to regenerate 'good' checksums on hex files Last edited by Phil__G; 7th Dec 2022 at 12:34 pm. |
7th Dec 2022, 12:44 pm | #71 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
So far I have always had to manually checksum files after loading in Intel Hex files, by
Analysis - Checksums - Checksum16 which opens up another bar below the main hex screen showing the checksum you asked for. It doesn't dynamically update though, so, load in another file and the checksum figure remains the same until you go Analysis - Checksums - Checksum16 ...again.. Another thing about HxD which has me shaking my head. |
7th Dec 2022, 12:48 pm | #72 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
How are you getting HxD to import a hex file that has nulled checksums G?
Mine craps out on line one... for example: :100F2000C40D35C40031C40F36C4CA32C4FFC8F000 <--hxd aborts on bad CS :100F3000C40701C280C980C4FF027094F5B8E19C00 :080F4000EFC6FF94E790DF0000 :00000001FF |
7th Dec 2022, 12:49 pm | #73 | |
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:
|
|
7th Dec 2022, 1:20 pm | #74 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Phil, I haven't (so far) encountered any IH files with empty or invalid checksums. Where are you finding those?
|
7th Dec 2022, 1:54 pm | #75 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Actually 'message' is the only one I can find now, I thought I had a few... maybe not
G are we certain we're working on a good, working copy if minefield? |
7th Dec 2022, 1:58 pm | #76 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
I have what certainly was a working copy of Tim's Minefield on a machine at home, I will take a look at it later. Last edited by SiriusHardware; 7th Dec 2022 at 2:15 pm. |
|
7th Dec 2022, 2:38 pm | #77 | ||
Octode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 1,392
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
Quote:
I think Intel Hex Import may have only been added fairly-recently to HxD, so it may be worth putting in a feature request to the author of HxD, as it seems he's quite amenable to suggestions of any useful extra features - And IIRC Chris Oddy had previously been in contact with him, from previous discussions on here where it seemed many hex-editors didn't handle certain Intel-hex files correctly (especially those with blank lines at the start). Not sure how good the old DOS Command-line tools were / if source-code was provided, but probably difficult to select specific areas of memory to copy. Although there is now an 'SRecord' large open-source conversion utilities library to save having to do your own: https://srecord.sourceforge.net/ There are a few other - mostly freeware - Hex editors, alongside HxD mentioned here: https://www.ultraedit.com/company/bl...-software.html Although I've not tried most of these. I have in the past used PSedit (DOS), Hexworks32, Hexworkshop, WinHex, HHd etc., but these days mainly use HxD or Dataman's Programmer software (does still work fully for this, without a programmer, in 'Demo' mode) built-in open / save in various formats as well as splitting files into individual even/odd extra byte ones. I also recall having to split files by upper/lower nibble, for 4bit PROM's. Last edited by ortek_service; 7th Dec 2022 at 2:55 pm. |
||
7th Dec 2022, 3:19 pm | #78 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
Quote:
The author fixed that particular problem in his mainstream (german language) version and sent it to me to try, and I confirmed it did fix that problem and I asked if he would incorporate it into the next release (across all languages). My feeling about HxD is that it aspires to be a file / disc editor first and foremost and it is probably very good at that, but for loading and shifting code around, isolating one section and removing the rest then converting it from one file format to another, it's not as intuitive or usable as it could be yet. |
|
7th Dec 2022, 5:01 pm | #79 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,078
|
Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?
I think I might have found the problem, this is Tims original posting of minefield (?)
https://www.vintage-radio.net/forum/...71#post1260471 Now the thing is, the hex and the asm in the posted zip file do not match A quick & easy check is the asm ends with the title "Minefield" in ASCII, but there is no ASCII text in the hex file posted, so I'm guessing this isnt the hex file for the MK14 VDU. So, re-assembled from Tims source in the post linked above, here is the 'new' binary file (with the ASCII title!) (PILoader execute address in the hex file is 0FBD) 777 please try this one, I'm hoping this version of minefield runs, and this has just been a version mix-up. Here is the newly assembled binary version of Minefield: Last edited by Phil__G; 7th Dec 2022 at 5:24 pm. |
7th Dec 2022, 6:39 pm | #80 | |
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:
|
|