Main > Software Forum
Warlords 4 LED (start button) support
SirPoonga:
What HowardC said is not 100% accurate.
In dos it is supper easy, outp(), inp() are the functions.
98 exact same code, no dll. You get direct access to the ports.
In any NT based OS (WinNT, Win2k, WinXP, etc...) as a programmer you don't have direct access to the ports unless you use a special dll (which, if you are picky, creates a security hole).
To get them to go on an off in mame is easy, it's built into the driver. The LEDs flash because the ROM told them to. It controlled when they went on and off. On those events is where you put the code in the driver.
To adjust what HowardC said, there is no easy way crossplatform in a couple lines of code to do this. You can do it in a couple lines of code that is specific to an OS.
KrawDaddy:
--- Quote from: SirPoonga on August 08, 2005, 02:22:23 am ---What HowardC said is not 100% accurate.
In dos it is supper easy, outp(), inp() are the functions.
98 exact same code, no dll.
--- End quote ---
Howard_Casto:
--- Quote from: SirPoonga on August 08, 2005, 02:22:23 am ---What HowardC said is not 100% accurate.
In dos it is supper easy, outp(), inp() are the functions.
98 exact same code, no dll.
--- End quote ---
Buddabing:
--- Quote from: Howard_Casto on August 09, 2005, 07:31:30 pm ---
--- Quote from: SirPoonga on August 08, 2005, 02:22:23 am ---What HowardC said is not 100% accurate.
In dos it is supper easy, outp(), inp() are the functions.
98 exact same code, no dll.
--- End quote ---
--- End quote ---
SirPoonga:
--- Quote from: Howard_Casto on August 09, 2005, 07:31:30 pm ---
--- Quote from: SirPoonga on August 08, 2005, 02:22:23 am ---What HowardC said is not 100% accurate.
In dos it is supper easy, outp(), inp() are the functions.
98 exact same code, no dll. You get direct access to the ports.
In any NT based OS (WinNT, Win2k, WinXP, etc...) as a programmer you don't have direct access to the ports unless you use a special dll (which, if you are picky, creates a security hole).
To get them to go on an off in mame is easy, it's built into the driver. The LEDs flash because the ROM told them to. It controlled when they went on and off. On those events is where you put the code in the driver.
To adjust what HowardC said, there is no easy way crossplatform in a couple lines of code to do this. You can do it in a couple lines of code that is specific to an OS.
--- End quote ---
Have you actually tested those method though? Last time I tried they kinda didn't work.
--- End quote ---
Yeah, have a direct port open source program for slot car race timing that interfaces with parallel port via outp and inp, in 98.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version