If you notice in the first pattern it actually goes from 0900 to 09FC which plays the breakbeat all the way through.
In the second pattern I just made it a little more varied to demonstrate what else you could do. It restarts from 0940 because that’s where the snare drum in the loop hits, so I just did that to shuffle up the beat a little bit.
As far as the “system” goes there isn’t much to it really. You just have to check how long (in pattern rows) your breakbeat is while playing at the correct bpm. Let’s say your loop is 16 rows long, then you just have to spread the 09xy commands (from 0900 to 09FF) over that amount. Which might look something like this:
00 - 0900
01 - 0910
02 - 0920
03 - 0930
04 - 0940
05 - 0950
06 - 0960
07 - 0970
08 - 0980
09 - 0990
0A - 09A0
0B - 09B0
0C - 09C0
0D - 09D0
0E - 09E0
0F - 09F0
But you can see that at this bpm/speed it doesn’t give you much flexibility with the sample offsets since you’re incrementing in steps of 16, so we double it up and get:
00 - 0900
01 - 0908
02 - 0910
03 - 0918
04 - 0920
05 - 0928
06 - 0930
07 - 0938
…
Even that is still a bit rough, so once more we double up:
00 - 0900
01 - 0904
02 - 0908
03 - 090C
04 - 0910
05 - 0914
06 - 0918
07 - 091C
…
At this point we’re running at twice the bpm (340 vs 170) and twice the speed (speed 3 vs speed 6), and we’ve got a finer degree of control over the sample offset points. The more sample offsets you can squeeze in there, the better it’s gonna sound when you’re pitching the beat to more extreme levels. How complex you want/need to go is really up to you.
Edit: And yeah, vvoois already mentioned about the method for finding the exact points in your loop where the hits are, kicks, snares, etc. You will probably find that these “exact” increments (ie. always incrementing by 4) don’t always land on the optimum points in the loop. You might have to get a little more detailed with what you do to get it perfect, something like:
00 - 0900
01 - 0911
02 - 0920
03 - 0933
04 - 0941
05 - 0950
06 - 0962
07 - 0975
…
Live breakbeats can really be all over the place unless you groove quantise first them with some other application (like Recycle or something).