mirror of
https://github.com/irmen/prog8.git
synced 2024-12-27 05:29:38 +00:00
option
This commit is contained in:
parent
5f337a0bd9
commit
8a6ef17fbf
@ -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
|
||||
|
@ -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() {
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
%import textio
|
||||
%import floats
|
||||
%zeropage basicsafe
|
||||
%option enable_floats
|
||||
|
||||
; Note: this program is compatible with C64 and CX16.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user