daily pastebin goal
80%
SHARE
TWEET

Graphical Speedometer

a guest Dec 9th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Graphical Speedometer
  2.  
  3. This code will display a graphical speedometer at the bottom right of the screen during a race.
  4.  
  5. (NTSC-U)
  6. 68200091 00000001
  7. 9421FF80 BC610008
  8. 7D6802A6 91610084
  9. 480002FD 00000000
  10. 00000000 183C3C18
  11. 18001800 66662400
  12. 00000000 6C6CFE6C
  13. FE6C6C00 183E603C
  14. 067C1800 00C6CC18
  15. 3066C600 386C3876
  16. DCCC7600 18183000
  17. 00000000 0C183030
  18. 30180C00 30180C0C
  19. 0C183000 00663CFF
  20. 3C660000 0018187E
  21. 18180000 00000000
  22. 00181830 0000007E
  23. 00000000 00000000
  24. 00181800 060C1830
  25. 60C08000 386CC6D6
  26. C66C3800 18381818
  27. 18187E00 7CC6061C
  28. 3066FE00 7CC6063C
  29. 06C67C00 1C3C6CCC
  30. FE0C1E00 FEC0C0FC
  31. 06C67C00 3860C0FC
  32. C6C67C00 FEC60C18
  33. 30303000 7CC6C67C
  34. C6C67C00 7CC6C67E
  35. 060C7800 00181800
  36. 00181800 00181800
  37. 00181830 060C1830
  38. 180C0600 00007E00
  39. 007E0000 6030180C
  40. 18306000 7CC60C18
  41. 18001800 7CC6DEDE
  42. DEC07800 386CC6FE
  43. C6C6C600 FC66667C
  44. 6666FC00 3C66C0C0
  45. C0663C00 F86C6666
  46. 666CF800 FE626878
  47. 6862FE00 FE626878
  48. 6860F000 3C66C0C0
  49. CE663A00 C6C6C6FE
  50. C6C6C600 3C181818
  51. 18183C00 1E0C0C0C
  52. CCCC7800 E6666C78
  53. 6C66E600 F0606060
  54. 6266FE00 C6EEFEFE
  55. D6C6C600 C6E6F6DE
  56. CEC6C600 7CC6C6C6
  57. C6C67C00 FC66667C
  58. 6060F000 7CC6C6C6
  59. C6CE7C0E FC66667C
  60. 6C66E600 3C663018
  61. 0C663C00 7E7E5A18
  62. 18183C00 C6C6C6C6
  63. C6C67C00 C6C6C6C6
  64. C66C3800 C6C6C6D6
  65. D6FE6C00 C6C66C38
  66. 6CC6C600 6666663C
  67. 18183C00 FEC68C18
  68. 3266FE00 3C303030
  69. 30303C00 C0603018
  70. 0C060200 3C0C0C0C
  71. 0C0C3C00 10386CC6
  72. 00000000 00000000
  73. 000000FF 30180C00
  74. 00000000 0000780C
  75. 7CCC7600 E0607C66
  76. 6666DC00 00007CC6
  77. C0C67C00 1C0C7CCC
  78. CCCC7600 00007CC6
  79. FEC07C00 3C6660F8
  80. 6060F000 000076CC
  81. CC7C0CF8 E0606C76
  82. 6666E600 18003818
  83. 18183C00 06000606
  84. 0666663C E060666C
  85. 786CE600 38181818
  86. 18183C00 0000ECFE
  87. D6D6D600 0000DC66
  88. 66666600 00007CC6
  89. C6C67C00 0000DC66
  90. 667C60F0 000076CC
  91. CC7C0C1E 0000DC76
  92. 6060F000 00007EC0
  93. 7C06FC00 3030FC30
  94. 30361C00 0000CCCC
  95. CCCC7600 0000C6C6
  96. C66C3800 0000C6D6
  97. D6FE6C00 0000C66C
  98. 386CC600 0000C6C6
  99. C67E06FC 00007E4C
  100. 18327E00 0E181870
  101. 18180E00 18181818
  102. 18181800 7018180E
  103. 18187000 76DC0000
  104. 00000000 7DC802A6
  105. 4800002D 00000000
  106. EB80EB80 10801080
  107. 525A52F0 AC26ACAE
  108. D210D292 74477437
  109. 29F0296E 26E42670
  110. 50CC50B6 7FE802A6
  111. 549ED5BA 7E7EF82E
  112. 549E15BA 7E9EF82E
  113. 3D80CC00 618C2000
  114. 8BEC0049 57EF2834
  115. 8BEC001D 57FF801E
  116. A3CC001E 7FF0F378
  117. 56102834 66108000
  118. 5485563E 5486863E
  119. 7CC679D6 7FE53214
  120. 1FFF0008 7F30FA14
  121. 7F38CB78 3863FFFF
  122. 8EA30001 2C150000
  123. 418200D0 2C15000A
  124. 40820014 55FF1838
  125. 7F39FA14 7F38CB78
  126. 4BFFFFE0 2815007F
  127. 41800010 28150020
  128. 40800008 3AA00020
  129. 3AB5FFE0 56B61838
  130. 3BE00008 7FE903A6
  131. 3A400080 7EEEB0AE
  132. 7EFF9039 41820014
  133. 2C140000 41820024
  134. 92980000 48000014
  135. 2C130000 41820014
  136. 92780000 48000004
  137. 7C00C06C 7C0004AC
  138. 3B180004 5652F87E
  139. 28120000 41A1FFC4
  140. 3B18FFE0 7F187A14
  141. 3AD60001 4220FFAC
  142. 1FEF0008 7F1FC050
  143. 3B180020 1FEF0008
  144. 7FD0C050 7FBEFBD6
  145. 7FBDF9D6 7FBDF050
  146. 7C1D7840 40820010
  147. 55FF1838 7F39FA14
  148. 7F38CB78 4BFFFF2C
  149. 81610084 7D6803A6
  150. B8610008 38210080
  151. 4E800020 592E532E
  152. C0000000 00000013
  153. 3D208168 89290163
  154. 2C090001 4C820020
  155. 9421FE80 BC610108
  156. 7C6802A6 90610184
  157. 38610008 48000011
  158. 25336420 6B6D2F68
  159. 00000000 7C8802A6
  160. 3D808000 C3EC17C0
  161. FFE0FA10 FFE0F81C
  162. 38A017D0 7FE567AE
  163. 80AC17D0 3D808001
  164. 618C0ECC 7D8903A6
  165. 4E800421 38610008
  166. 3C801C1B 60840201
  167. 3D808000 818C17E0
  168. 7D8903A6 4E800421
  169. 80610184 7C6803A6
  170. B8610108 38210180
  171. 4E800020 00000000
  172. C27E4C9C 00000008
  173. 3DE0809C 81EFD110
  174. 81EF0020 1E600004
  175. 7DEF9A14 81EF0000
  176. 81EF0010 81EF0010
  177. 807FEE20 3D808168
  178. 3A600001 9A6C0163
  179. 3E608000 81EF0024
  180. 91F317C0 00000000
  181.  
  182. (PAL)
  183. 68200091 00000001
  184. 9421FF80 BC610008
  185. 7D6802A6 91610084
  186. 480002FD 00000000
  187. 00000000 183C3C18
  188. 18001800 66662400
  189. 00000000 6C6CFE6C
  190. FE6C6C00 183E603C
  191. 067C1800 00C6CC18
  192. 3066C600 386C3876
  193. DCCC7600 18183000
  194. 00000000 0C183030
  195. 30180C00 30180C0C
  196. 0C183000 00663CFF
  197. 3C660000 0018187E
  198. 18180000 00000000
  199. 00181830 0000007E
  200. 00000000 00000000
  201. 00181800 060C1830
  202. 60C08000 386CC6D6
  203. C66C3800 18381818
  204. 18187E00 7CC6061C
  205. 3066FE00 7CC6063C
  206. 06C67C00 1C3C6CCC
  207. FE0C1E00 FEC0C0FC
  208. 06C67C00 3860C0FC
  209. C6C67C00 FEC60C18
  210. 30303000 7CC6C67C
  211. C6C67C00 7CC6C67E
  212. 060C7800 00181800
  213. 00181800 00181800
  214. 00181830 060C1830
  215. 180C0600 00007E00
  216. 007E0000 6030180C
  217. 18306000 7CC60C18
  218. 18001800 7CC6DEDE
  219. DEC07800 386CC6FE
  220. C6C6C600 FC66667C
  221. 6666FC00 3C66C0C0
  222. C0663C00 F86C6666
  223. 666CF800 FE626878
  224. 6862FE00 FE626878
  225. 6860F000 3C66C0C0
  226. CE663A00 C6C6C6FE
  227. C6C6C600 3C181818
  228. 18183C00 1E0C0C0C
  229. CCCC7800 E6666C78
  230. 6C66E600 F0606060
  231. 6266FE00 C6EEFEFE
  232. D6C6C600 C6E6F6DE
  233. CEC6C600 7CC6C6C6
  234. C6C67C00 FC66667C
  235. 6060F000 7CC6C6C6
  236. C6CE7C0E FC66667C
  237. 6C66E600 3C663018
  238. 0C663C00 7E7E5A18
  239. 18183C00 C6C6C6C6
  240. C6C67C00 C6C6C6C6
  241. C66C3800 C6C6C6D6
  242. D6FE6C00 C6C66C38
  243. 6CC6C600 6666663C
  244. 18183C00 FEC68C18
  245. 3266FE00 3C303030
  246. 30303C00 C0603018
  247. 0C060200 3C0C0C0C
  248. 0C0C3C00 10386CC6
  249. 00000000 00000000
  250. 000000FF 30180C00
  251. 00000000 0000780C
  252. 7CCC7600 E0607C66
  253. 6666DC00 00007CC6
  254. C0C67C00 1C0C7CCC
  255. CCCC7600 00007CC6
  256. FEC07C00 3C6660F8
  257. 6060F000 000076CC
  258. CC7C0CF8 E0606C76
  259. 6666E600 18003818
  260. 18183C00 06000606
  261. 0666663C E060666C
  262. 786CE600 38181818
  263. 18183C00 0000ECFE
  264. D6D6D600 0000DC66
  265. 66666600 00007CC6
  266. C6C67C00 0000DC66
  267. 667C60F0 000076CC
  268. CC7C0C1E 0000DC76
  269. 6060F000 00007EC0
  270. 7C06FC00 3030FC30
  271. 30361C00 0000CCCC
  272. CCCC7600 0000C6C6
  273. C66C3800 0000C6D6
  274. D6FE6C00 0000C66C
  275. 386CC600 0000C6C6
  276. C67E06FC 00007E4C
  277. 18327E00 0E181870
  278. 18180E00 18181818
  279. 18181800 7018180E
  280. 18187000 76DC0000
  281. 00000000 7DC802A6
  282. 4800002D 00000000
  283. EB80EB80 10801080
  284. 525A52F0 AC26ACAE
  285. D210D292 74477437
  286. 29F0296E 26E42670
  287. 50CC50B6 7FE802A6
  288. 549ED5BA 7E7EF82E
  289. 549E15BA 7E9EF82E
  290. 3D80CC00 618C2000
  291. 8BEC0049 57EF2834
  292. 8BEC001D 57FF801E
  293. A3CC001E 7FF0F378
  294. 56102834 66108000
  295. 5485563E 5486863E
  296. 7CC679D6 7FE53214
  297. 1FFF0008 7F30FA14
  298. 7F38CB78 3863FFFF
  299. 8EA30001 2C150000
  300. 418200D0 2C15000A
  301. 40820014 55FF1838
  302. 7F39FA14 7F38CB78
  303. 4BFFFFE0 2815007F
  304. 41800010 28150020
  305. 40800008 3AA00020
  306. 3AB5FFE0 56B61838
  307. 3BE00008 7FE903A6
  308. 3A400080 7EEEB0AE
  309. 7EFF9039 41820014
  310. 2C140000 41820024
  311. 92980000 48000014
  312. 2C130000 41820014
  313. 92780000 48000004
  314. 7C00C06C 7C0004AC
  315. 3B180004 5652F87E
  316. 28120000 41A1FFC4
  317. 3B18FFE0 7F187A14
  318. 3AD60001 4220FFAC
  319. 1FEF0008 7F1FC050
  320. 3B180020 1FEF0008
  321. 7FD0C050 7FBEFBD6
  322. 7FBDF9D6 7FBDF050
  323. 7C1D7840 40820010
  324. 55FF1838 7F39FA14
  325. 7F38CB78 4BFFFF2C
  326. 81610084 7D6803A6
  327. B8610008 38210080
  328. 4E800020 592E532E
  329. C0000000 00000013
  330. 3D208168 89290163
  331. 2C090001 4C820020
  332. 9421FE80 BC610108
  333. 7C6802A6 90610184
  334. 38610008 48000011
  335. 25336420 6B6D2F68
  336. 00000000 7C8802A6
  337. 3D808000 C3EC17C0
  338. FFE0FA10 FFE0F81C
  339. 38A017D0 7FE567AE
  340. 80AC17D0 3D808001
  341. 618C1A2C 7D8903A6
  342. 4E800421 38610008
  343. 3C801C1B 60840201
  344. 3D808000 818C17E0
  345. 7D8903A6 4E800421
  346. 80610184 7C6803A6
  347. B8610108 38210180
  348. 4E800020 00000000
  349. C27EEFAC 00000008
  350. 3DE0809C 81EF18F8
  351. 81EF0020 1E600004
  352. 7DEF9A14 81EF0000
  353. 81EF0010 81EF0010
  354. 807F3618 3D808168
  355. 3A600001 9A6C0163
  356. 3E608000 81EF0024
  357. 91F317C0 00000000
  358.  
  359. (NTSC-J)
  360. 68200091 00000001
  361. 9421FF80 BC610008
  362. 7D6802A6 91610084
  363. 480002FD 00000000
  364. 00000000 183C3C18
  365. 18001800 66662400
  366. 00000000 6C6CFE6C
  367. FE6C6C00 183E603C
  368. 067C1800 00C6CC18
  369. 3066C600 386C3876
  370. DCCC7600 18183000
  371. 00000000 0C183030
  372. 30180C00 30180C0C
  373. 0C183000 00663CFF
  374. 3C660000 0018187E
  375. 18180000 00000000
  376. 00181830 0000007E
  377. 00000000 00000000
  378. 00181800 060C1830
  379. 60C08000 386CC6D6
  380. C66C3800 18381818
  381. 18187E00 7CC6061C
  382. 3066FE00 7CC6063C
  383. 06C67C00 1C3C6CCC
  384. FE0C1E00 FEC0C0FC
  385. 06C67C00 3860C0FC
  386. C6C67C00 FEC60C18
  387. 30303000 7CC6C67C
  388. C6C67C00 7CC6C67E
  389. 060C7800 00181800
  390. 00181800 00181800
  391. 00181830 060C1830
  392. 180C0600 00007E00
  393. 007E0000 6030180C
  394. 18306000 7CC60C18
  395. 18001800 7CC6DEDE
  396. DEC07800 386CC6FE
  397. C6C6C600 FC66667C
  398. 6666FC00 3C66C0C0
  399. C0663C00 F86C6666
  400. 666CF800 FE626878
  401. 6862FE00 FE626878
  402. 6860F000 3C66C0C0
  403. CE663A00 C6C6C6FE
  404. C6C6C600 3C181818
  405. 18183C00 1E0C0C0C
  406. CCCC7800 E6666C78
  407. 6C66E600 F0606060
  408. 6266FE00 C6EEFEFE
  409. D6C6C600 C6E6F6DE
  410. CEC6C600 7CC6C6C6
  411. C6C67C00 FC66667C
  412. 6060F000 7CC6C6C6
  413. C6CE7C0E FC66667C
  414. 6C66E600 3C663018
  415. 0C663C00 7E7E5A18
  416. 18183C00 C6C6C6C6
  417. C6C67C00 C6C6C6C6
  418. C66C3800 C6C6C6D6
  419. D6FE6C00 C6C66C38
  420. 6CC6C600 6666663C
  421. 18183C00 FEC68C18
  422. 3266FE00 3C303030
  423. 30303C00 C0603018
  424. 0C060200 3C0C0C0C
  425. 0C0C3C00 10386CC6
  426. 00000000 00000000
  427. 000000FF 30180C00
  428. 00000000 0000780C
  429. 7CCC7600 E0607C66
  430. 6666DC00 00007CC6
  431. C0C67C00 1C0C7CCC
  432. CCCC7600 00007CC6
  433. FEC07C00 3C6660F8
  434. 6060F000 000076CC
  435. CC7C0CF8 E0606C76
  436. 6666E600 18003818
  437. 18183C00 06000606
  438. 0666663C E060666C
  439. 786CE600 38181818
  440. 18183C00 0000ECFE
  441. D6D6D600 0000DC66
  442. 66666600 00007CC6
  443. C6C67C00 0000DC66
  444. 667C60F0 000076CC
  445. CC7C0C1E 0000DC76
  446. 6060F000 00007EC0
  447. 7C06FC00 3030FC30
  448. 30361C00 0000CCCC
  449. CCCC7600 0000C6C6
  450. C66C3800 0000C6D6
  451. D6FE6C00 0000C66C
  452. 386CC600 0000C6C6
  453. C67E06FC 00007E4C
  454. 18327E00 0E181870
  455. 18180E00 18181818
  456. 18181800 7018180E
  457. 18187000 76DC0000
  458. 00000000 7DC802A6
  459. 4800002D 00000000
  460. EB80EB80 10801080
  461. 525A52F0 AC26ACAE
  462. D210D292 74477437
  463. 29F0296E 26E42670
  464. 50CC50B6 7FE802A6
  465. 549ED5BA 7E7EF82E
  466. 549E15BA 7E9EF82E
  467. 3D80CC00 618C2000
  468. 8BEC0049 57EF2834
  469. 8BEC001D 57FF801E
  470. A3CC001E 7FF0F378
  471. 56102834 66108000
  472. 5485563E 5486863E
  473. 7CC679D6 7FE53214
  474. 1FFF0008 7F30FA14
  475. 7F38CB78 3863FFFF
  476. 8EA30001 2C150000
  477. 418200D0 2C15000A
  478. 40820014 55FF1838
  479. 7F39FA14 7F38CB78
  480. 4BFFFFE0 2815007F
  481. 41800010 28150020
  482. 40800008 3AA00020
  483. 3AB5FFE0 56B61838
  484. 3BE00008 7FE903A6
  485. 3A400080 7EEEB0AE
  486. 7EFF9039 41820014
  487. 2C140000 41820024
  488. 92980000 48000014
  489. 2C130000 41820014
  490. 92780000 48000004
  491. 7C00C06C 7C0004AC
  492. 3B180004 5652F87E
  493. 28120000 41A1FFC4
  494. 3B18FFE0 7F187A14
  495. 3AD60001 4220FFAC
  496. 1FEF0008 7F1FC050
  497. 3B180020 1FEF0008
  498. 7FD0C050 7FBEFBD6
  499. 7FBDF9D6 7FBDF050
  500. 7C1D7840 40820010
  501. 55FF1838 7F39FA14
  502. 7F38CB78 4BFFFF2C
  503. 81610084 7D6803A6
  504. B8610008 38210080
  505. 4E800020 592E532E
  506. C0000000 00000013
  507. 3D208168 89290163
  508. 2C090001 4C820020
  509. 9421FE80 BC610108
  510. 7C6802A6 90610184
  511. 38610008 48000011
  512. 25336420 6B6D2F68
  513. 00000000 7C8802A6
  514. 3D808000 C3EC17C0
  515. FFE0FA10 FFE0F81C
  516. 38A017D0 7FE567AE
  517. 80AC17D0 3D808001
  518. 618C1950 7D8903A6
  519. 4E800421 38610008
  520. 3C801C1B 60840201
  521. 3D808000 818C17E0
  522. 7D8903A6 4E800421
  523. 80610184 7C6803A6
  524. B8610108 38210180
  525. 4E800020 00000000
  526. C27EE618 00000008
  527. 3DE0809C 81EF0958
  528. 81EF0020 1E600004
  529. 7DEF9A14 81EF0000
  530. 81EF0010 81EF0010
  531. 807F2678 3D808168
  532. 3A600001 9A6C0163
  533. 3E608000 81EF0024
  534. 91F317C0 00000000
  535.  
  536. (NTSC-K)
  537. 68200091 00000001
  538. 9421FF80 BC610008
  539. 7D6802A6 91610084
  540. 480002FD 00000000
  541. 00000000 183C3C18
  542. 18001800 66662400
  543. 00000000 6C6CFE6C
  544. FE6C6C00 183E603C
  545. 067C1800 00C6CC18
  546. 3066C600 386C3876
  547. DCCC7600 18183000
  548. 00000000 0C183030
  549. 30180C00 30180C0C
  550. 0C183000 00663CFF
  551. 3C660000 0018187E
  552. 18180000 00000000
  553. 00181830 0000007E
  554. 00000000 00000000
  555. 00181800 060C1830
  556. 60C08000 386CC6D6
  557. C66C3800 18381818
  558. 18187E00 7CC6061C
  559. 3066FE00 7CC6063C
  560. 06C67C00 1C3C6CCC
  561. FE0C1E00 FEC0C0FC
  562. 06C67C00 3860C0FC
  563. C6C67C00 FEC60C18
  564. 30303000 7CC6C67C
  565. C6C67C00 7CC6C67E
  566. 060C7800 00181800
  567. 00181800 00181800
  568. 00181830 060C1830
  569. 180C0600 00007E00
  570. 007E0000 6030180C
  571. 18306000 7CC60C18
  572. 18001800 7CC6DEDE
  573. DEC07800 386CC6FE
  574. C6C6C600 FC66667C
  575. 6666FC00 3C66C0C0
  576. C0663C00 F86C6666
  577. 666CF800 FE626878
  578. 6862FE00 FE626878
  579. 6860F000 3C66C0C0
  580. CE663A00 C6C6C6FE
  581. C6C6C600 3C181818
  582. 18183C00 1E0C0C0C
  583. CCCC7800 E6666C78
  584. 6C66E600 F0606060
  585. 6266FE00 C6EEFEFE
  586. D6C6C600 C6E6F6DE
  587. CEC6C600 7CC6C6C6
  588. C6C67C00 FC66667C
  589. 6060F000 7CC6C6C6
  590. C6CE7C0E FC66667C
  591. 6C66E600 3C663018
  592. 0C663C00 7E7E5A18
  593. 18183C00 C6C6C6C6
  594. C6C67C00 C6C6C6C6
  595. C66C3800 C6C6C6D6
  596. D6FE6C00 C6C66C38
  597. 6CC6C600 6666663C
  598. 18183C00 FEC68C18
  599. 3266FE00 3C303030
  600. 30303C00 C0603018
  601. 0C060200 3C0C0C0C
  602. 0C0C3C00 10386CC6
  603. 00000000 00000000
  604. 000000FF 30180C00
  605. 00000000 0000780C
  606. 7CCC7600 E0607C66
  607. 6666DC00 00007CC6
  608. C0C67C00 1C0C7CCC
  609. CCCC7600 00007CC6
  610. FEC07C00 3C6660F8
  611. 6060F000 000076CC
  612. CC7C0CF8 E0606C76
  613. 6666E600 18003818
  614. 18183C00 06000606
  615. 0666663C E060666C
  616. 786CE600 38181818
  617. 18183C00 0000ECFE
  618. D6D6D600 0000DC66
  619. 66666600 00007CC6
  620. C6C67C00 0000DC66
  621. 667C60F0 000076CC
  622. CC7C0C1E 0000DC76
  623. 6060F000 00007EC0
  624. 7C06FC00 3030FC30
  625. 30361C00 0000CCCC
  626. CCCC7600 0000C6C6
  627. C66C3800 0000C6D6
  628. D6FE6C00 0000C66C
  629. 386CC600 0000C6C6
  630. C67E06FC 00007E4C
  631. 18327E00 0E181870
  632. 18180E00 18181818
  633. 18181800 7018180E
  634. 18187000 76DC0000
  635. 00000000 7DC802A6
  636. 4800002D 00000000
  637. EB80EB80 10801080
  638. 525A52F0 AC26ACAE
  639. D210D292 74477437
  640. 29F0296E 26E42670
  641. 50CC50B6 7FE802A6
  642. 549ED5BA 7E7EF82E
  643. 549E15BA 7E9EF82E
  644. 3D80CC00 618C2000
  645. 8BEC0049 57EF2834
  646. 8BEC001D 57FF801E
  647. A3CC001E 7FF0F378
  648. 56102834 66108000
  649. 5485563E 5486863E
  650. 7CC679D6 7FE53214
  651. 1FFF0008 7F30FA14
  652. 7F38CB78 3863FFFF
  653. 8EA30001 2C150000
  654. 418200D0 2C15000A
  655. 40820014 55FF1838
  656. 7F39FA14 7F38CB78
  657. 4BFFFFE0 2815007F
  658. 41800010 28150020
  659. 40800008 3AA00020
  660. 3AB5FFE0 56B61838
  661. 3BE00008 7FE903A6
  662. 3A400080 7EEEB0AE
  663. 7EFF9039 41820014
  664. 2C140000 41820024
  665. 92980000 48000014
  666. 2C130000 41820014
  667. 92780000 48000004
  668. 7C00C06C 7C0004AC
  669. 3B180004 5652F87E
  670. 28120000 41A1FFC4
  671. 3B18FFE0 7F187A14
  672. 3AD60001 4220FFAC
  673. 1FEF0008 7F1FC050
  674. 3B180020 1FEF0008
  675. 7FD0C050 7FBEFBD6
  676. 7FBDF9D6 7FBDF050
  677. 7C1D7840 40820010
  678. 55FF1838 7F39FA14
  679. 7F38CB78 4BFFFF2C
  680. 81610084 7D6803A6
  681. B8610008 38210080
  682. 4E800020 592E532E
  683. C0000000 00000013
  684. 3D208168 89290163
  685. 2C090001 4C820020
  686. 9421FE80 BC610108
  687. 7C6802A6 90610184
  688. 38610008 48000011
  689. 25336420 6B6D2F68
  690. 00000000 7C8802A6
  691. 3D808000 C3EC17C0
  692. FFE0FA10 FFE0F81C
  693. 38A017D0 7FE567AE
  694. 80AC17D0 3D808001
  695. 618C1A94 7D8903A6
  696. 4E800421 38610008
  697. 3C801C1B 60840201
  698. 3D808000 818C17E0
  699. 7D8903A6 4E800421
  700. 80610184 7C6803A6
  701. B8610108 38210180
  702. 4E800020 00000000
  703. C27DD36C 00000008
  704. 3DE0809B 81EFFF38
  705. 81EF0020 1E600004
  706. 7DEF9A14 81EF0000
  707. 81EF0010 81EF0010
  708. 807F1C58 3D808168
  709. 3A600001 9A6C0163
  710. 3E608000 81EF0024
  711. 91F317C0 00000000
  712.  
  713.  
  714.  
  715. #==================================================#
  716. # Source                                           #
  717. #==================================================#
  718.  
  719. lis r9, 0x8168 # r12-r9 are safe to use when the code handler is executing.
  720. lbz r9, 0x0163(r9)
  721. cmpwi r9, 0x1 # Check if we are in a race.
  722. bnelr- # If we are not in a race, do not draw.
  723.  
  724. .set region, ''
  725. .set sprintf, 0x0
  726.  
  727. .if     (region == 'E' || region == 'e') # RMCE
  728.         sprintf = 0x80010ECC
  729. .elseif (region == 'P' || region == 'p') # RMCP
  730.         sprintf = 0x80011A2C
  731. .elseif (region == 'J' || region == 'j') # RMCJ
  732.         sprintf = 0x80011950
  733. .elseif (region == 'K' || region == 'k') # RMCK
  734.         sprintf = 0x80011A94
  735. .else # Invalid Region
  736.         .abort
  737. .endif
  738.  
  739. # Function Prologue...
  740. stwu r1, -384(r1)
  741. stmw r3, 264(r1)
  742. mflr r3
  743. stw r3, 388(r1)
  744.  
  745. #==================================================#
  746. # sprintf                                          #
  747. #--------------------------------------------------#
  748. # Form the statement and call the function.        #
  749. #                                                  #
  750. #             r3             r4          r5        #
  751. # sprintf(char* str, const char* format, ...);     #
  752. #==================================================#
  753.  
  754. addi r3, r1, 8 # Store the pointer to the buffer where the String will be written into r3.
  755.  
  756. bl branch_link_write_sprintf_statement
  757.  
  758. .string "%3d km/h\0\0\0"
  759.  
  760. branch_link_write_sprintf_statement:
  761. mflr r4 # Store the pointer to the String into r4.
  762.  
  763. # Convert our speed...
  764. lis r12, 0x8000
  765. lfs f31, 0x17C0(r12) # f31-f14 are non-volatile, however, they are unused when the code handler is executing.
  766. fabs f31, f31 # Get the absolute value of our speed to account for being in reverse.
  767. fctiw f31, f31 # Convert our speed from a floating-point number to an integer.
  768.  
  769. # Store our speed...
  770. li r5, 0x17D0
  771. stfiwx f31, r5, r12 # Store the lower 32 bits of f31 to the address in r12 offset by the value in r5.
  772. lwz r5, 0x17D0(r12) # Load our speed (in hexadecimal) into r5.
  773.  
  774. # Branch to the sprintf function...
  775. lis r12, sprintf@h # Set the higher 16-bits of r12 to the higher 16-bits of the sprintf function address, and clear the lower 16-bits.
  776. ori r12, r12, sprintf@l # Set the lower 16-bits of r12 to the lower 16-bits of the sprintf function address.
  777. mtctr r12
  778. bctrl
  779.  
  780. # Form the draw statement...
  781. addi r3, r1, 8 # Store the pointer to the buffer where the String is located into r3.
  782.  
  783. lis r4, 0x1C1B # X and Y Coordinates, respectively. [8 bits each].
  784. ori r4, r4, 0x0201 # Font and Background Colour, respectively. [8 bits each].
  785.  
  786. # Branch to the draw function...
  787. lis r12, 0x8000
  788. lwz r12, 0x17E0(r12)
  789. mtctr r12
  790. bctrl
  791.  
  792. # Function Epilogue...
  793. lwz r3, 388(r1)
  794. mtlr r3
  795. lmw r3, 264(r1)
  796. addi r1, r1, 384
  797. blr
  798.  
  799.  
  800. #==================================================#
  801. # Speedometer                                      #
  802. #--------------------------------------------------#
  803. # We do not need to 'reset' the speedometer after  #
  804. # a race. This is because it will disappear. When  #
  805. # the next race begins, it will reset itself to    #
  806. # our current speed (0) before it reappears.       #
  807. #==================================================#
  808.  
  809. # Original Address Ports:
  810. # RMCE - 0x807E4C9C
  811. # RMCP - 0x807EEFAC
  812. # RMCJ - 0x807EE618
  813. # RMCK - 0x807DD36C
  814.  
  815. .set playerBase, 0x0
  816. .set playerDataUNK, 0x0
  817. .set region, ''
  818.  
  819. .if     (region == 'E' || region == 'e') # RMCE
  820.         playerBase = 0x809BD110
  821.         playerDataUNK = 0x809BEE20
  822. .elseif (region == 'P' || region == 'p') # RMCP
  823.         playerBase = 0x809C18F8
  824.         playerDataUNK = 0x809C3618
  825. .elseif (region == 'J' || region == 'j') # RMCJ
  826.         playerBase = 0x809C0958
  827.         playerDataUNK = 0x809C2678
  828. .elseif (region == 'K' || region == 'k') # RMCK
  829.         playerBase = 0x809AFF38
  830.         playerDataUNK = 0x809B1C58
  831. .else # Invalid Region
  832.         .abort
  833. .endif
  834.  
  835. lis r15, playerBase@ha
  836. lwz r15, playerBase@l(r15)
  837. lwz r15, 32(r15)
  838. mulli r19, r0, 4
  839. add r15, r15, r19
  840. lwz r15, 0(r15)
  841. lwz r15, 16(r15)
  842. lwz r15, 16(r15)
  843. lwz r3, playerDataUNK@l(r31) # Original instruction
  844.  
  845. lis r12, 0x8168 # This area of memory automatically clears after Scene Exit transitions, which will set the bool to false.
  846. li r19, 0x1 # Set the bool to true, indicating that we are in a race.
  847. stb r19, 0x0163(r12) # The current C2 replacement branch will only execute while we are in a race, ergo the bool will remain false until then.
  848.  
  849. lis r19, 0x8000
  850. lwz r15, 36(r15) # Load our speed (floating-point) into r15.
  851. stw r15, 0x17C0(r19) # Store our speed.
  852.  
  853.  
  854.  
  855. Notes:
  856. - This code is designed for interlace scan.
  857.  
  858. Code Creator: Star
  859. Code Credits: Y.S. (Easy Extender 1.1), Chadderz (Graphic Speedometer), mdmwii (Speedometer)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top