adding_buttons_for_bankstick_switching
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | adding_buttons_for_bankstick_switching [2008/03/23 21:56] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to add bankstick UP/DOWN buttons to mbSID v2 ====== | ||
+ | This is another draft. Actually it's just the source code that you'll need to add :D Make sure you've read the other tutorials that cover all the stuff needed to understand this one. This is not really a great way of achieving what we want, but it's good enough for now... | ||
+ | |||
+ | * In app_defines.h you'll need to find some space (1 byte) for a variable we'll name " | ||
+ | |||
+ | * In cs_menu_buttons.inc: | ||
+ | < | ||
+ | CS_MENU_BUTTON_BankUp | ||
+ | ;; do nothing if button has been depressed | ||
+ | btfsc MIOS_PARAMETER2, | ||
+ | return | ||
+ | incf | ||
+ | goto CS_MENU_BUTTON_AssignBank | ||
+ | |||
+ | CS_MENU_BUTTON_BankDown | ||
+ | ;; do nothing if button has been depressed | ||
+ | btfsc MIOS_PARAMETER2, | ||
+ | return | ||
+ | decf BANK_STICK_NO, | ||
+ | ;; goto CS_MENU_BUTTON_AssignBank | ||
+ | |||
+ | CS_MENU_BUTTON_AssignBank | ||
+ | andlw | ||
+ | movwf BANK_STICK_NO | ||
+ | movwf CS_MENU_SID_M_BANK | ||
+ | movff CS_MENU_SID_M_BANK, | ||
+ | ;; mask out ' | ||
+ | bcf SID_PATCH, | ||
+ | call CS_MENU_EXEC_GoToMain | ||
+ | return | ||
+ | </ |
adding_buttons_for_bankstick_switching.txt · Last modified: 2008/03/23 21:56 by 127.0.0.1