vscode-amiga-assembly icon indicating copy to clipboard operation
vscode-amiga-assembly copied to clipboard

Math suggestions

Open Bippym opened this issue 3 years ago • 3 comments

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

Bippym avatar Feb 09 '22 21:02 Bippym

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.

prb28 avatar Feb 09 '22 22:02 prb28

Well I never :D

Being an added part of the existing hover would be great

Bippym avatar Feb 09 '22 22:02 Bippym

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

prb28 avatar Feb 09 '22 22:02 prb28