Both of the 2 EFI Mazda engines, the 2.2 and the 2.6, can have ECU issues. There are 2 capacitors on the ECU board that will leak (If it is a factory ECU and the capacitors have not been swapped out) and start etching the traces and other components on the board.
What I would do is disconnect the battery, unplug and remove the ECU, it's located behind the passenger side kick panel, and remove the cover and have a look at the board.
If you have some leakage from those two caps, then it is time to send it to a company like AvPro and have them fix it, or look for another ECU........I would have yours fixed though.
Here is a few pics of a B2600i computer, but the one for the B2200 is very similar.
Here's one that was in my truck when I first bought it.......it worked, but the MPG was not too good. I got lucky and found a good one at our local JY and put it in my truck and I picked up at least 2 MPG on in town driving! This ECU had leaked and the board was hurting!!
The company that "fixed" this one was NOT AvPro by the way! They kinda butchered this I think......
Bottom line........look at your ECU board BEFORE you throw any more money at the truck!
If your not sure of what it looks like......take a few good CAMERA pictures, and post them here for us to look at.
Let us know what you find out.