From 8a6ef17fbfa4bfead85411fdd64b132dcfd99522 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 30 Oct 2020 21:50:53 +0100 Subject: [PATCH] option --- docs/source/syntaxreference.rst | 3 ++- examples/test.p8 | 3 --- examples/testarrays.p8 | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index 88dc209a1..23b1f14b3 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -122,7 +122,8 @@ Directives - For a module option, there is ``enable_floats``, which will tell the compiler to deal with floating point numbers (by using various subroutines from the Commodore-64 kernal). - Otherwise, floating point support is not enabled. + Otherwise, floating point support is not enabled. Normally you don't have to use this yourself as + importing the ``floats`` library is required anyway and that will enable it for you automatically. - There's also ``no_sysinit`` which cause the resulting program to *not* include the system re-initialization logic of clearing the screen, resetting I/O config etc. You'll have to take care of that yourself. The program will just start running from whatever state the machine is in when the diff --git a/examples/test.p8 b/examples/test.p8 index aaa1e464a..a7948b7ab 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,14 +1,11 @@ %import textio %import floats %import syslib -%option enable_floats ; TODO remove this option, only import floats is requires %zeropage basicsafe ; Note: this program is compatible with C64 and CX16. -; TODO fix abs() and the other builtin funcs - main { sub start() { diff --git a/examples/testarrays.p8 b/examples/testarrays.p8 index ac4bc1fd1..9bcc6eceb 100644 --- a/examples/testarrays.p8 +++ b/examples/testarrays.p8 @@ -1,7 +1,6 @@ %import textio %import floats %zeropage basicsafe -%option enable_floats ; Note: this program is compatible with C64 and CX16.