Adds a new command called MidPoint
Syntax
MidPoint High Number, Low Number
Overview
Returns the mid point between the two numbers.
Operators
High Number – a number, byte or word variable Low Number – a number, byte or word variable
Code:
Include "PROTON_4.INC"
Dim A As Word
Dim B As Word
A = 500
B = MidPoint A,200
HRSOut "The mid point of ", Dec A,", 200 is ", Dec B
Stop
Download module
Download: MidPoint

Menu
Recent Articles


Using PDS with SPI GLCD based on ST7565R Controller
Graphic LCDs based on the ST7565 are cheaper then GLCDs with other controllers. SPI requires only four pins. If the circuit