News:

  • June 09, 2026, 11:23:30 PM

Login with username, password and session length

Author Topic: SBR Nickname and Documentation  (Read 8397 times)

gvanderloop

  • Newbie
  • *
  • Posts: 3
SBR Nickname and Documentation
« on: November 24, 2008, 02:53:22 PM »
Hello I am a newbie. I was wondering if there is a way to assign a nickname to a Subroutine (SBR) and add documentation to like you can for a Stage. Thanks for the help.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: SBR Nickname and Documentation
« Reply #1 on: November 24, 2008, 03:03:33 PM »
No, sorry.  The subroutine parameter takes a K constant value, and K's don't have nicknames.

Nicknames and elements must have a 1-to-1 mapping, but K constants are used in many different places (subroutine numbers, timer/counter presets, arithmetic calculations, etc.).  For example, you might have a subroutine K10 that calculations Fibonacci numbers  ;D, and a timer preset of K10 for a 1 second timer, a counter preset of K10 that counts the number steps in a process, and K10 in a BCD calcuation, and K10 in a binary/decimal calculation, where it may mean 16.  Each of these K10 element references would need its own nickname, not the same nickname.  There is no "context" for a nickname other than the element itself, i.e. "K10".