i would write something like
or depending on which way your axes point, change one or both of the +'s into -'s.
(the above graphics example looks like the Y axis should point up and left, rather than up and right, then again i vaguely remember this sort of game not paying all that much attention to consistency with the background graphics)
to do jumping in my own code, i tend to maintain an upwards velocity variable, call it DZ, then in your game loop do something like
Code:
Z=Z+DZ
DZ=DZ-1
if Z<0
Z=0
DZ=0
end if
if Jup(1) AND Z=0 then DZ = 20
you can experiment with the numbers obviously