mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +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
|
- 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).
|
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
|
- 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
|
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
|
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 textio
|
||||||
%import floats
|
%import floats
|
||||||
%import syslib
|
%import syslib
|
||||||
%option enable_floats ; TODO remove this option, only import floats is requires
|
|
||||||
%zeropage basicsafe
|
%zeropage basicsafe
|
||||||
|
|
||||||
|
|
||||||
; Note: this program is compatible with C64 and CX16.
|
; Note: this program is compatible with C64 and CX16.
|
||||||
|
|
||||||
; TODO fix abs() and the other builtin funcs
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
sub start() {
|
sub start() {
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
%import textio
|
%import textio
|
||||||
%import floats
|
%import floats
|
||||||
%zeropage basicsafe
|
%zeropage basicsafe
|
||||||
%option enable_floats
|
|
||||||
|
|
||||||
; Note: this program is compatible with C64 and CX16.
|
; Note: this program is compatible with C64 and CX16.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user