Convert INT64 to DOUBLE subroutine
Entry: 38
In: $71 - integer value
Out: $71 - float value
Mod: $72 - $76
Comments: Converts 8-byte integer into 8 byte double. Integer always can be converted into double, so subroutine always executes successfully.
Subroutine code: here
Convert DOUBLE to INT64 subroutine (with round)
Entry: 3C
In: $71 - float value
Out: $71 - integer value
Mod: $72 - $74
Comments: Converts 8-byte double into 8 byte integer with rounding. It just adds 0.5 to argument - and then the next subroutine follows.
Convert DOUBLE to INT64 subroutine (with trunc)
Entry: 40
In: $71 - float value
Out: $71 - integer value
Mod: $72 - $74
Comments: Converts 8-byte double into 8 byte integer. Overflow is handled.
Subroutine code: here