Hang from a pull-up bar with an overhand grip and your hands about shoulder-width apart. Flex your hips and bend your knees, holding them above your hips in front of your torso.
Now roll your torso upwards, bringing your knees toward your chin. Slowly reverse this motion without allowing your knees to become un-tucked from your body. Don't use momentum.
The way these exercises are usually performed – with your legs hanging down and flexing at your hips – is primarily a hip flexion exercise. Tuck your pelvis and you'll target the abs much better.
Step back with one leg. As you come back up, lift the dumbbell with the thigh: flex your hip and raise your knee just above a 90-degree angle with the floor.