MSX Inbound!!
Re: MSX Inbound!!
Great to hear you getting on well with the msx @rubber_jonnie
If it ain't broke, test it to Destruction.
- mrbombermillzy
- Posts: 1441
- Joined: Sun Jun 03, 2018 7:37 pm
Re: MSX Inbound!!
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).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?
Don't know if there's another way of reading the joystick from BASIC?
- rubber_jonnie
- Site Admin
- Posts: 10464
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: MSX Inbound!!
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...
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...
- rubber_jonnie
- Site Admin
- Posts: 10464
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: MSX Inbound!!
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.mrbombermillzy wrote: ↑Mon Feb 07, 2022 7:20 pmNot 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).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?
Don't know if there's another way of reading the joystick from BASIC?
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...
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...
- mrbombermillzy
- Posts: 1441
- Joined: Sun Jun 03, 2018 7:37 pm
Re: MSX Inbound!!
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.
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.
- stephen_usher
- Posts: 5578
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: MSX Inbound!!
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.
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.
- rubber_jonnie
- Site Admin
- Posts: 10464
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: MSX Inbound!!
Oooh thanks, I'll try that when I get the joystick reassembled.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.
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...
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...
- rubber_jonnie
- Site Admin
- Posts: 10464
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: MSX Inbound!!
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...
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...
- rubber_jonnie
- Site Admin
- Posts: 10464
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: MSX Inbound!!
Hmm, didn't work, I will have another try though. Still works fin digitally, though super mushy!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.
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...
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...
- mrbombermillzy
- Posts: 1441
- Joined: Sun Jun 03, 2018 7:37 pm
Re: MSX Inbound!!
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?)rubber_jonnie wrote: ↑Wed Feb 09, 2022 2:39 pmHmm, didn't workmrbombermillzy 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.