Sign in to follow this  
taguilo

Is "b" a stack operation?

Recommended Posts

Hello,I am realizing that the Baron and 747 gauges are increasinly the best way to learn about XML gauge programming. I came across this in the ECU gauge for the baron and am curious about the "b" I see in the value section: (A:general eng1 throttle lever position,part) (A:Throttle lower limit,part) /-/ + b 1 + /What is that "b"?Thanks,J-

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

"b" is a backspace operator.It jumps the last stack entry and pop the beforelast, but WITHOUT poping (removing) the last. Examples:2 4 5 b = gives 4 and jumps 5 stack 2 4 5 + b = gives 5 and jumps + operator2 4 + 5 b = gives 6 jumps 53 5 b b = gives 5 and jumps the b operator 3 5 b b b = gives 3 and jumps the 54 5 7 b (>LVar1) (>LVar2) now LVar1 equals 5 and LVar2 equals 7 Tom

Share this post


Link to post
Share on other sites

Thanks Tom.Is that documented somewhere and I missed it? I have the SDK stuff, Arne's stuff and the FS2X.com stuff for documentation.J-

Share this post


Link to post
Share on other sites

It is not documented that I know. And BTW I find it rather confusing. I prefer to use other operators like "r" (though not the same meaning), registers (s,l) etc. Tom

Share this post


Link to post
Share on other sites

Re: "confusing" couldn't concur more. What a "black art" this all is. However, I am forcing myself to make a panel using XML gauge scripting as a way to learn it better. This is the year I stop "lurking" as an add-on guy and start getting my hands dirty. I've found FSDS v3 a good inspiration as something about gMax wouldn't stick with me. As I've dabbled with modeling, I've also decided to try my luck with XML gauge stuff. So far, I have an OAT gauge (WHOOOOPEEEE!!!).Thanks for the help,J-

Share this post


Link to post
Share on other sites

In your first example, what's the state of the stack after calling the operator b?

Share this post


Link to post
Share on other sites

"b" examples:2 4 5 b = stack is 2 4 5 4 2 4 5 + b = stack is 2 9 5 2 4 + 5 b = stack is 6 5 6 Tom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this