Motorola 680x0 Registers Checker (Check Registers)
Motorola 680x0 Registers Checker (MRC for short) is small extension that will show all the registers used in a code snippet in 680x0 assembly. This tool only checks for direct register usage. For instance:
Where the x after the register (data/address) is the register number (0-7).
It will not do:
Or anything close to this.
This extension do NOT check for errors in your code, so if you have made an error in your code in any way. This extension will not complain/tell you about it.
WHERE TO FIND MRC AFTER BEING INSTALLED
You can find this tool in the command template search path as "Check Registers". MRC is set default to use the key shortcut Ctrl+Shift+F1. If this do not work, you need to change this in the keyboard shortcuts mentioned in the Extension Settings section.
How to use
First of all you need to select a 68030 code snippet, then you can use this tool by using either a shortcut or by finding "Check Registers" in the command template under the VIEW menu in VSCode. If there are any direct registers found in your snippet, CheckRegisters will notice you in the lower right corner of the screen what registers that is being used in your code. This should make it much easier for you as a coder to keep track of what registers that has been used.
checkRegisters.insertCode Setting this to true will insert the USED or FREE or both registers above the selected code.
Can be compined with: checkRegisters.commentFree or
checkRegisters.commentString This will be used as the comment char/string for the USED/FREE string.
Default: ; -------
checkRegisters.commentFree Setting this to true will insert the FREE registers to clipboard/sourcecode depending on insertCode and copyToClipboard settings.
checkRegisters.commentUsed Setting this to true will insert the USED registers to clipboard/sourcecode depending on insertCode and copyToClipboard settings.
checkRegisters.copyToClipboard Setting this to true will copy the USED registers to clipboard.
If you like to put MRC on a key shortcut, then you can go to File -> Preferences -> Keyboard Shortcuts , in the search input field you can paste this:
From here you set it up with your keybinding that you like, set WHEN to editorTextFocus. Thats about it.
The current version does this automatically. But, you should make sure checking the keyboard shortcuts.
Furthermore, read the CHANGELOG for changes.