CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:46:16 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=138689a570058debfe80b567ba9d7e33da2cc79d4d27b423ddd62b182faa3e79a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22RAX92_TNq8RzMv_w3YfnYJlxNqGbw1y4%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d39bf3fa67c19a-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
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 23 sec ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 36 sec ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Make $15OO in 2O minutesV G⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 1 min ago | 0.25 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 1 min ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 1 min 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