Mode 7 can be achieved a couple of different ways. One of them is clever zooming of the different horizontal layers of pixels on the screen. That's what produced the effect on the SNES and GBA, but it's hard to implement into SB. Another is using a 3D projection formula to derive some equations that translate 2D coordinates to 3D coordinates assuming constant Y values.
The equation I use for 3D projection is X2D=X/Z*ZOOM:Y2D=Y/Z*ZOOM
Using algebra, assuming a constant Y you can easily derive the equations Z=Y/Y2D*ZOOM:X=Z*X2D/ZOOM
Which should get you 3D coordinates from 2D coordinates and a constant Y value.
Using this you can easily use the X and Z coordinates as X and Y coordinates and place pixels accurately on the screen for the mode 7 effect.