Advertisement
tepples

Floyd Fill: 32 byte struct, no shortcuts

Mar 21st, 2021
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. Cycles to move a struct member pointer in HL from member I to member J
  2. using inc, dec, set, and res, calculated using the Floyd Fill algorithm
  3. No shortcuts used
  4. Distance matrix
  5. 0001020302030403020304050405040302030405040506050405060706070605
  6. 0100010203020304030203040504050403020304050405060504050607060706
  7. 0201000102030203040302030405040504030203040504050605040506070607
  8. 0302010001020302030403020304050405040302030405040506050405060706
  9. 0203020100010203040504030203040504050403020304050607060504050607
  10. 0302030201000102030405040302030405040504030203040506070605040506
  11. 0403020302010001020304050403020304050405040302030405060706050405
  12. 0304030203020100010203040304030203040504050403020304050605060504
  13. 0203040304030201000102030203040304050605060504030203040504050605
  14. 0302030405040302010001020302030405040506070605040302030405040506
  15. 0403020304050403020100010203020304050405060706050403020304050405
  16. 0504030203040504030201000102030203040504050607060504030203040504
  17. 0405040302030403020302010001020304050605040506050405040302030405
  18. 0504050403020304030203020100010203040506050405060504050403020304
  19. 0405040504030203040302030201000102030405040504050405040504030203
  20. 0304050405040302030403020302010001020304030405040304050405040302
  21. 0203040504050403040504030403020100010203020304030203040504050403
  22. 0302030405040504050405040504030201000102030203040302030405040504
  23. 0403020304050405060504050605040302010001020302030403020304050405
  24. 0504030203040504050605040506050403020100010203020304030203040504
  25. 0405040302030405060706050405040302030201000102030405040302030405
  26. 0504050403020304050607060504050403020302010001020304050403020304
  27. 0605040504030203040506070605040504030203020100010203040504030203
  28. 0506050405040302030405060506050403040302030201000102030403040302
  29. 0405060506050403020304050405040302030403040302010001020302030403
  30. 0504050607060504030203040504050403020304050403020100010203020304
  31. 0605040506070605040302030405040504030203040504030201000102030203
  32. 0706050405060706050403020304050405040302030405040302010001020302
  33. 0607060504050605040504030203040504050403020304030203020100010203
  34. 0706070605040506050405040302030405040504030203040302030201000102
  35. 0607060706050405060504050403020304050405040302030403020302010001
  36. 0506070607060504050605040504030203040504050403020304030203020100
  37. maximum 7, average 3.59
  38.  
  39. Calculated with Floyd Fill
  40. https://github.com/pinobatch/little-things-gb/blob/7982daf6742d12614184eaa7266bb6aef7a71492/common/tools/floydfill.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement