Post Reply 
(32S) Floor Function
07-02-2017, 10:18 AM
Post: #10
RE: (32S) Floor Function
X<> ST X is two bytes, and I have a label there for the CEIL function to jump to ;-)

Code:
 { 38-Byte Prgm }
>LBL"CEIL"
 INT
 X<>Y
 X<> L
 X>Y?
 ISG Y        always skips
 X<=Y?        nop
 GTO 00
>LBL"FLOOR"
 INT
 X<>Y
 X<> L
 X<Y?
 DSE Y        always skips
>LBL 00        not a nop
 X<> L
 X<>Y
 END

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(32S) Floor Function - Gerald H - 06-03-2017, 07:47 AM
RE: (32S) Floor Function - c785 - 06-29-2017, 04:02 PM
RE: (32S) Floor Function - Werner - 06-30-2017, 07:05 AM
RE: (32S) Floor Function - c785 - 06-30-2017, 07:23 AM
RE: (32S) Floor Function - Werner - 06-30-2017, 08:51 AM
RE: (32S) Floor Function - c785 - 06-30-2017, 11:31 AM
RE: (32S) Floor Function - c785 - 06-30-2017, 02:58 PM
RE: (32S) Floor Function - Werner - 07-01-2017, 10:16 AM
RE: (32S) Floor Function - c785 - 07-02-2017, 09:29 AM
RE: (32S) Floor Function - Werner - 07-02-2017 10:18 AM



User(s) browsing this thread: 1 Guest(s)