doc about no conditional compilation, fixes #93

also added a note to MEMTOP about 0 result
This commit is contained in:
Irmen de Jong 2023-02-06 23:36:19 +01:00
parent 6733253826
commit edf56d34f8
2 changed files with 5 additions and 1 deletions

View File

@ -462,6 +462,8 @@ inline asmsub getrambank() -> ubyte @A {
asmsub numbanks() -> ubyte @A {
; -- uses MEMTOP's cx16 extension to query the number of available RAM banks. (each is 8 Kb)
; Note: when 0 is returned, it doesn't mean 'zero banks', instead it means 256 banks (=2Mb banked RAM),
; as there is no X16 without at least 1 page of banked RAM.
%asm {{
phx
sec

View File

@ -202,7 +202,9 @@ You can create multiple source files yourself to modularize your large programs
multiple module files. You can also create "library" modules this way with handy routines,
that can be shared among programs. By importing those module files, you can use them in other modules.
It is possible to tell the compiler where it should look for these files, by using
the ``srcdirs`` command line option.
the ``srcdirs`` command line option. This can also be a lo-fi way to use different source files
for different compilation targets if you wish. Which is useful as currently the compiler
doesn't have conditional compilation like #ifdef/#endif in C.
.. _debugging: