Re: HP38/39: How to set DEG mode?
- From: Jean-Yves Avenard <me@xxxxxxxxxxx>
- Date: Thu, 05 Jan 2006 11:19:59 +1100
Khanh-Dang wrote:
An Aplet doesn't work like the 49/48 when it comes to flag settings, they are linked to an applet, so each applet have their own flags and settings.Hmmm.. Then, I'd rather seting the angle mode with something like: SEVENTEEN ClrSysFlag EIGHTEEN ClrSysFlag ( SETDEG )
If you do what you suggest, it will only switch the settings temporarily, if you ever suspend your aplet to run a calculation in the HOME screen for example, your settings will be lost.
When you change your flag, you need to change the settings as you describe (playing with the system flags) or using the supported entry SetSysAngle but you also need to set it up in your aplet structure. If you check the aplet skeleton, you'll see that one of the variable of the aplets containt the current mode. Store 1 for Degree.
The system aplet do it that way:
NULLNAME AngleSto2
::
CONTEXT@ SWAP SETaplCXT
DUP SetSysAngle ( Set Angle System Flag as well )
Angle@ ?ReDrREPL#
CONTEXT!
;
.- Follow-Ups:
- Re: HP38/39: How to set DEG mode?
- From: Khanh-Dang
- Re: HP38/39: How to set DEG mode?
- References:
- HP38/39: How to set DEG mode?
- From: Khanh-Dang
- Re: HP38/39: How to set DEG mode?
- From: onlyforspam
- Re: HP38/39: How to set DEG mode?
- From: Khanh-Dang
- HP38/39: How to set DEG mode?
- Prev by Date: Manual Finance Rom Card for HP48SX
- Next by Date: Re: HPGCC 2.0 examples not compiling
- Previous by thread: Re: HP38/39: How to set DEG mode?
- Next by thread: Re: HP38/39: How to set DEG mode?
- Index(es):
Relevant Pages
|