UK Vintage Radio Repair and Restoration Powered By Google Custom Search Vintage Radio and TV Service Data

Go Back   UK Vintage Radio Repair and Restoration Discussion Forum > Specific Vintage Equipment > Vintage Computers

Notices

Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment.

Closed Thread
 
Thread Tools
Old 6th Dec 2022, 4:15 pm   #41
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Llister, showchar

UPDATE: see post 65 for horserace, & 79 for Minefield
Attached Files
File Type: zip lister_bin.zip (322 Bytes, 16 views)
File Type: zip showchar_bin.zip (193 Bytes, 31 views)

Last edited by Phil__G; 6th Dec 2022 at 4:28 pm.
Phil__G is online now  
Old 6th Dec 2022, 4:19 pm   #42
777xxxx
Tetrode
 
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Quote:
Originally Posted by Phil__G View Post
Horserace, lister
awesome, thanks. im not sure any of them are working. although lister may work

showchar is working...

Last edited by 777xxxx; 6th Dec 2022 at 4:35 pm.
777xxxx is offline  
Old 6th Dec 2022, 4:37 pm   #43
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Think thats all except segtris, which is in 2 parts, can you load 2 things?
Part1 loads at F14
Part2 loads at B00

If you tell me one thats defo not working, I'll double check it

G I just use DOS debug thats all, no app as such

UPDATE: see post 63 for Segtris

Last edited by Phil__G; 6th Dec 2022 at 4:44 pm.
Phil__G is online now  
Old 6th Dec 2022, 4:45 pm   #44
777xxxx
Tetrode
 
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Quote:
Originally Posted by Phil__G View Post
Think thats all except segtris, which is in 2 parts, can you load 2 things?
Part1 loads at F14
Part2 loads at B00

If you tell me one thats defo not working, I'll double check it

G I just use DOS debug thats all, no app
i loaded both parts but it doesnt work. horser and minefeild dont work also

and like i say im not sure about lister:
Attached Thumbnails
Click image for larger version

Name:	l.jpg
Views:	26
Size:	95.0 KB
ID:	269472  

Last edited by 777xxxx; 6th Dec 2022 at 4:51 pm.
777xxxx is offline  
Old 6th Dec 2022, 4:57 pm   #45
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Just checking, are you running them from the correct start address? I dont know, I'm just going on what the hex file says...
they dont all start at the beginning - eg horser starts at 0B3B according to the hex file BUT at B4B according to DJD: https://worldradiohistory.com/UK/Pra...2-01-S-OCR.pdf page 73
Lister starts at F79 according to the hex file

Sirius, is there a mistake in minefield.hex? the hex file says it starts at F00 but theres no code there

Last edited by Phil__G; 6th Dec 2022 at 5:14 pm.
Phil__G is online now  
Old 6th Dec 2022, 5:07 pm   #46
777xxxx
Tetrode
 
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Quote:
Originally Posted by Phil__G View Post
Just checking, are you running them from the correct start address? I dont know, I'm just going on what the hex file says...
they dont all start at the beginning - eg horser starts at 0B3B according to the hex file
Lister starts at F79

Sirius, is there a mistake in minefield.hex? the hex file says it starts at F00 but theres no code there
tried b3b and b4b with horser which doesnt work and f79 with lister says length specified too large, load failed.

Last edited by 777xxxx; 6th Dec 2022 at 5:20 pm.
777xxxx is offline  
Old 6th Dec 2022, 5:22 pm   #47
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Sorry you need one of our resident MK14 experts, thats not me I'm afraid...
Phil__G is online now  
Old 6th Dec 2022, 5:59 pm   #48
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

According to DJD, minefield starts at F21
https://worldradiohistory.com/UK/Pra...cs-1980-06.pdf page 59
Gotta go, will check in later, model flying club meeting tonight, if I'm not there I'll end up on the committee... -

Last edited by Phil__G; 6th Dec 2022 at 6:04 pm.
Phil__G is online now  
Old 6th Dec 2022, 6:20 pm   #49
777xxxx
Tetrode
 
Join Date: Nov 2022
Location: Cornwall, UK.
Posts: 60
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Quote:
Originally Posted by Phil__G View Post
According to DJD, minefield starts at F21
https://worldradiohistory.com/UK/Pra...cs-1980-06.pdf page 59
Gotta go, will check in later, model flying club meeting tonight, if I'm not there I'll end up on the committee... -
tried that. still not working
777xxxx is offline  
Old 6th Dec 2022, 7:05 pm   #50
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

The 'Minefield' program presented on page 69 (not 59) of the magazine indicated above and discussed on page 68 is for the MK14 and the PE VDU, not for the MK14 and SOC VDU.

Tim made the necessary alterations to make it work with the SOC VDU and may also have added bits in during the initial stages to drive the 8154 to control the various inputs on the VDU, so there may be quite some difference between the PE VDU original and Tim's version customised for the SOC VDU and his way of driving it. I would not apply anything you see in the magazine article to Tim's custom version.
SiriusHardware is online now  
Old 6th Dec 2022, 7:19 pm   #51
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Not sure about the start address for Tims minefield, according the 'execute' line in the hex file its F00 :

:02FFFE000F00F2


...but it doesnt load any code at that address... the first address it loads is F19 which is an XPPC (P3)

AHA! found Tim's source:
; Execute at 0F21 with a clear screen a minefield will be displayed.

Last edited by Phil__G; 6th Dec 2022 at 7:26 pm.
Phil__G is online now  
Old 6th Dec 2022, 7:39 pm   #52
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

I've just looked at the ASM, LST and HEX of Tim's version of Minefield that I have working here. Phil was right to spot that the execution address contained within the second last line of that Intel Hex file at FFFE/FFFF is incorrect (0F00) and it should instead be 0FBD, so (777xxxx) try loading Phil's binary of Minefield at address 0F1F but execute it from 0FBD instead.

At OFBD there is, as I predicted, some code to set up the 8154 ports to put the VDU into a specific configuration but that doesn't matter as the VDU settings are not influenced by the 8154 port pins in the MAME emulator.

This particular game needs the VDU pointed at 0F00 and 0B00 and in Character mode.
SiriusHardware is online now  
Old 6th Dec 2022, 7:44 pm   #53
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Quote:
AHA! found Tim's source:
; Execute at 0F21 with a clear screen a minefield will be displayed.
And the bad news is: Those comments are from the original PE article source, describing the program as originally written.

At the end of Tim's source there is a short fragment defining the execution address for the uploader to use as the label ENTER which according to the .LST file is OFBD.

The 'LST file also confirms that the file start address / load address should be 0F1F, so that's where it should be loaded to in the MAME emulator.
SiriusHardware is online now  
Old 6th Dec 2022, 7:53 pm   #54
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

This is embarrasing, I've forgotten how to run SBASM
I remember I had to prefix the SBASM command it with the python interpreter name which I cant remember... All those nights spent on KB+ and its gone

Edit: I remember now, I changed my PC, I never installed SBASM on the new one, just copied it across, I'll have to study Sans page again as I dont think I have the python interpreter installed on the new one ?

Last edited by Phil__G; 6th Dec 2022 at 7:59 pm.
Phil__G is online now  
Old 6th Dec 2022, 8:04 pm   #55
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Usually it's 'python..' or 'python3...' depending on which version of Python you have installed / intend to run it under/ need to run it under. If you run it from a command line window then the 'shebang' line in the first line of the Python script should be enough to make sure that the required python interpreter is called upon to run it, as long as the required Python interpreter is already installed and in the command search path.

On Linux machines I just use

Code:
SBASM sourcefilename.asm
SiriusHardware is online now  
Old 6th Dec 2022, 8:06 pm   #56
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

On Windows machines installing 'IDLE Python' will install the Python interpreter as a side effect of the installation of IDLE.
SiriusHardware is online now  
Old 6th Dec 2022, 10:32 pm   #57
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

I persevered a bit more with Hxd.

Taking SEGTRIS.HEX as an example.

Go to File - Import - Intel Hex - Navigate to the SEGTRIS.HEX Intel Hex file and load it.
After loading it into HxD it will be seen that there are two main areas of code, one spanning 0B00-0BD0, and the other spanning 0F14-0FDB.
These two chunks need to be saved as two separate binary files.

Go to Edit - Select Block
In Start-Offset box enter 0B00
In End-Offset box enter 0BD0
Click OK, the box closes and the selected code block is highlighted in blue.

Go to File - Save Selection
Use the file save dialogue box to enter a meaningful name , ie, 'Segtris_0B00.bin' and click 'SAVE' to save the file and close the box.

Go to Edit - Select Block
In Start-Offset box enter 0F14
In End-Offset box enter 0FDB
Click OK, the box closes and the selected code block is highlighted in blue.

Go to File - Save Selection
Use the file save dialogue box to enter a meaningful name , ie, 'Segtris_0F14.bin' and click 'SAVE' to save the file and close the box.

You should now have the two binary files ready to load separately into the MAME emulator at the addresses contained in the filenames. You still need to then RUN the program from the right address and whether it works will depend on whether the original HEX file is good.

Last edited by SiriusHardware; 6th Dec 2022 at 10:37 pm.
SiriusHardware is online now  
Old 6th Dec 2022, 11:35 pm   #58
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

I've just looked through Tim's SBASM source for SEGTRIS and at the end is

Code:
;Support SH PI-Progammer Auto Start

	.OR 0xFFFE
	.DB 0x0B
	.DB 0x00
This is an instruction to the keypad injection uploaders which support this feature - 'After loading, run the program from 0B00'. Therefore, after loading the two BIN files, you should probably run from 0B00 as well.
SiriusHardware is online now  
Old 7th Dec 2022, 12:06 am   #59
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,080
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

Well that was embarrassing, nothing is ever straightforward eh, SBASM is all sorted now but if anyone else gets this after installing Python for Windows:
"Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings"
Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"

Complete cure, my SBASM is working fine again

777xxxx just to be clear, you're ok with the "load address" and "execution address" concepts? Sorry I'm sure you know this and its a granny/eggs situation, but clutching at straws as to why these things arent running...
Horser for example loads at 0A80 but runs from 0B3B
Minefield loads at address 0F1F but runs from 0FBD

Last edited by Phil__G; 7th Dec 2022 at 12:27 am.
Phil__G is online now  
Old 7th Dec 2022, 12:16 am   #60
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,482
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

On reflection it may be better to refer to them consistently as 'load address' and 'execution address', as that makes what they each refer to a little bit clearer. 'Start address' could be 'the address the program starts loading at' or 'the address at which to start the program running'.
SiriusHardware is online now  
Closed Thread

Thread Tools



All times are GMT +1. The time now is 4:12 pm.


All information and advice on this forum is subject to the WARNING AND DISCLAIMER located at https://www.vintage-radio.net/rules.html.
Failure to heed this warning may result in death or serious injury to yourself and/or others.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright ©2002 - 2023, Paul Stenning.