Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Calculate QFE pressure to remote point using HP-42S programmable calculator!
- //P0=QFE at respawn point, in hPa!
- //T=temp at respawn point, in Celsius.
- //H0=Ground elevation (ASL) at respawn, in meters.
- //H1=Ground elevation (ASL) at target, in meters.
- //Prints answer into X registry! in hPa!
- //Very simple and basic code with low effort ;)
- //Copyleft! Fell free to use as you want!
- //HOWTO enter data: enter P0 then press R/S (and not ENTER) button on calculator, then enter T and press R/S and so on...
- //Put all those shit below in https://www.swissmicros.com/dm42/decoder/index.php to make *.raw file from the code
- 00 { 103-Byte Prgm }
- 01▸LBL "QFE"
- 02 "P0?"
- 03 PROMPT
- 04 STO "P0"
- 05 "HSPAWN?"
- 06 PROMPT
- 07 STO "H0"
- 08 "HTGT?"
- 09 PROMPT
- 10 STO "H1"
- 11 "TEMP?"
- 12 PROMPT
- 13 STO "T"
- 14 RCL "H0"
- 15 RCL- "H1"
- 16 65ᴇ-4
- 17 ×
- 18 275.15
- 19 RCL+ "T"
- 20 ÷
- 21 STO 10
- 22 1
- 23 RCL- 10
- 24 5.255
- 25 Y↑X
- 26 RCL× "P0"
- 27 "TGTQFE="
- 28 AVIEW
- 29 STOP
- 30 END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement