CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 20:10:41 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=2dba8547d41866d63f71532e63a58a78a451012ba77835fdaa9cc9cabb591ed2a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22jPCI0FuN3j-7D3gaUqbpZRAmb56tvDND%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d10096fb1dc1a1-BLR
SpeedAngle2Offset - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .macro neg16 lo, hi
- sec ;Ensure carry is set
- lda #0 ;Load constant zero
- sbc lo ;... subtract the least significant byte
- sta lo ;... and store the result
- lda #0 ;Load constant zero again
- sbc hi ;... subtract the most significant byte
- sta hi ;... and store the result
- .endmacro
- ; Calculates a horizontal and vertical speed from a speed and an angle
- ; input: A (speed) Y (angle, 0-31)
- ; output: 0,1 (X offset), 2,3 (Y offset)
- .proc SpeedAngle2Offset
- Angle = 4
- Speed = 5
- sty Angle
- sta Speed
- lda CosineTable,y
- php ; Save whether it's negative or positive
- bpl :+ ; Take the absolute value
- eor #255
- add #1
- : ldy Speed
- jsr mul8 ; Multiply the absolute value by the speed
- sty 0 ; Write the offset
- sta 1
- plp
- bpl :+ ; If it was negative, make it negative again
- neg16 0, 1
- :
- ldy Angle
- lda SineTable,y
- php ; Save whether it's positive or negative
- bpl :+ ; Take the absolute value
- eor #255
- add #1
- : ldy Speed
- jsr mul8 ; Multiply the absolute value by the speed
- sty 2
- sta 3
- plp
- bpl :+ ; If it was negative, make it negative again
- neg16 2, 3
- :
- rts
- .endproc
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐⭐⭐ X
JavaScript | 4 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ P
JavaScript | 5 sec ago | 0.25 KB
-
📝 Exchange profit method
JavaScript | 9 sec ago | 0.24 KB
-
📌 Swapzone +37% glitch ⭐ O
JavaScript | 13 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ G
JavaScript | 14 sec ago | 0.25 KB
-
⭐ Free Crypto Method ⭐
JavaScript | 18 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 5
JavaScript | 22 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 0
JavaScript | 23 sec ago | 0.25 KB
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