antoine-source/TrueConvert/True.Thermo.s
Antoine Vignau 4d4fb6a665 Let's free the code!!
Some old (WIP) disassemblies and my own source code now available online.
2024-07-23 23:38:22 +02:00

47 lines
651 B
ArmAsm

*----------------------------------------
* True Convert : Thermometer
*----------------------------------------
ctlTHERMO = $1602
showTHERMO pha
pha
PushLong #0
PushLong #wTHERMO
PushLong #PAINTTHERMO
PushLong #0
PushWord #refIsResource
PushLong #wTHERMO
PushWord #$800e
_NewWindow2
PullLong wiTHERMO
rts
hideTHERMO PushLong wiTHERMO
_CloseWindow
rts
*--------------
initTHERMO PushWord #1
PushLong wiTHERMO
PushLong #ctlTHERMO
_SetCtlValueByID
rts
moveTHERMO pha
PushLong wiTHERMO
PushLong #ctlTHERMO
_SetCtlValueByID
rts
*--------------
PAINTTHERMO PushLong wiTHERMO
_DrawControls
rtl
*--------------
wiTHERMO ds 4