Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math suggestions #207

Open
Bippym opened this issue Feb 9, 2022 · 3 comments
Open

Math suggestions #207

Bippym opened this issue Feb 9, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Bippym
Copy link

Bippym commented Feb 9, 2022

Can the extension automatically work out math parts and also bit shifting. For example:

move.w #sprheight<<6,d2 ; #sprheight*64 = 32*64 = 2048

if I hover on this it tells me that sprheight is 32. Can it tell me that sprheight evaluates to 2048? even if it means highlighting it?
Clipboard Image (1)

and
blitsize equ (BOBHEIGHT*SCREEN_DEPTH*64)+BOBWIDTH/16

If I was to highlight part of the equation (so I highlight BOBWIDTH/16) can it give me the evaluation (in this case 2 as BOBWIDTH = 32)

Clipboard Image

@prb28
Copy link
Owner

prb28 commented Feb 9, 2022

You have the result in the status bar:
With

COPPERLIST_SIZE = 1000<<2                                ;Size of the copperlist

image

Result 4002.
Maybe with a hover it would be better, I agree, I don't know how it will interact with the rest of the hover options. I'll look at it.

@Bippym
Copy link
Author

Bippym commented Feb 9, 2022

Well I never :D

Being an added part of the existing hover would be great

@prb28
Copy link
Owner

prb28 commented Feb 9, 2022

Yes it's one of the firsts features... deserves to be changed.

@prb28 prb28 added the enhancement New feature or request label Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants