MSX Inbound!!

Blogs & guides and tales of woo by forum members.
User avatar
PhilC
Moderator
Moderator
Posts: 6012
Joined: Fri Mar 23, 2018 8:22 pm

Re: MSX Inbound!!

Post by PhilC »

Great to hear you getting on well with the msx @rubber_jonnie
If it ain't broke, test it to Destruction.
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: MSX Inbound!!

Post by mrbombermillzy »

rubber_jonnie wrote: Mon Feb 07, 2022 6:48 pm
@mrbombermillzy it turns out that it is analog, but when reading the stick, all I get are values from the 8 corners and trigger.

Wondering if there is a way of reading the analog values?
Not having ever had an MSX, or indeed knowing how MSX BASIC handles the joystick input, I would hazard a guess that the BASIC read command you are using actually reads the POTX/Y and if below or = 127, it's off if >127 it's on. (I'm also guessing that it has an 8-bit ADC in there).

Don't know if there's another way of reading the joystick from BASIC? :shrug:
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10464
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: MSX Inbound!!

Post by rubber_jonnie »

PhilC wrote: Mon Feb 07, 2022 6:51 pm Great to hear you getting on well with the msx @rubber_jonnie
It really is a very nice machine :)
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10464
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: MSX Inbound!!

Post by rubber_jonnie »

mrbombermillzy wrote: Mon Feb 07, 2022 7:20 pm
rubber_jonnie wrote: Mon Feb 07, 2022 6:48 pm
@mrbombermillzy it turns out that it is analog, but when reading the stick, all I get are values from the 8 corners and trigger.

Wondering if there is a way of reading the analog values?
Not having ever had an MSX, or indeed knowing how MSX BASIC handles the joystick input, I would hazard a guess that the BASIC read command you are using actually reads the POTX/Y and if below or = 127, it's off if >127 it's on. (I'm also guessing that it has an 8-bit ADC in there).

Don't know if there's another way of reading the joystick from BASIC? :shrug:
I honestly don't know enough at present, as other than the STICK() and STRIG() commands, I am unfamiliar with the inner workings of MSX Basic. I need to dig out a manual, see what the options are.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: MSX Inbound!!

Post by mrbombermillzy »

Had a quick look for you :)


It seems that an analog stick on an MSX is not a very commonly supported thing, so try the BASIC commands Pad(17) and Pad(18) for joystick port 1 and Pad(17) and Pad(18) for port 2 to get paddle values (offset x/y -128 to +127). This should work.

If not, you may have to get dirty in that old Z80 ASM code.
User avatar
stephen_usher
Posts: 5578
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: MSX Inbound!!

Post by stephen_usher »

:dualthumbup:

Glad it's working. :-)
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10464
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: MSX Inbound!!

Post by rubber_jonnie »

mrbombermillzy wrote: Mon Feb 07, 2022 8:18 pm Had a quick look for you :)


It seems that an analog stick on an MSX is not a very commonly supported thing, so try the BASIC commands Pad(17) and Pad(18) for joystick port 1 and Pad(17) and Pad(18) for port 2 to get paddle values (offset x/y -128 to +127). This should work.

If not, you may have to get dirty in that old Z80 ASM code.
Oooh thanks, I'll try that when I get the joystick reassembled.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10464
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: MSX Inbound!!

Post by rubber_jonnie »

stephen_usher wrote: Mon Feb 07, 2022 8:51 pm :dualthumbup:

Glad it's working. :-)
Very impressed with the build quality, no wonder they were expensive.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10464
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: MSX Inbound!!

Post by rubber_jonnie »

mrbombermillzy wrote: Mon Feb 07, 2022 8:18 pm Had a quick look for you :)


It seems that an analog stick on an MSX is not a very commonly supported thing, so try the BASIC commands Pad(17) and Pad(18) for joystick port 1 and Pad(17) and Pad(18) for port 2 to get paddle values (offset x/y -128 to +127). This should work.

If not, you may have to get dirty in that old Z80 ASM code.
Hmm, didn't work, I will have another try though. Still works fin digitally, though super mushy!

Has cleaned up very nicely with one of the auto interior wipes though :) Only thing I can't do much about is the button colour, but that's ok.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: MSX Inbound!!

Post by mrbombermillzy »

rubber_jonnie wrote: Wed Feb 09, 2022 2:39 pm
mrbombermillzy wrote: Mon Feb 07, 2022 8:18 pm Had a quick look for you :)


It seems that an analog stick on an MSX is not a very commonly supported thing, so try the BASIC commands Pad(17) and Pad(18) for joystick port 1 and Pad(17) and Pad(18) for port 2 to get paddle values (offset x/y -128 to +127). This should work.
Hmm, didn't work
What did reading the pad values give you? (I take it you read the values into a variable, like eg: 'x=Pad(17)' or whatever and then displayed x value?)
Post Reply

Return to “MEMBER BLOGS”