Skip to content

Commit

Permalink
document that float won't work from cartridge
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotlinski committed Oct 7, 2017
1 parent 8fdd94f commit 436791f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions forth_src/float.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
( BASIC floating point words.

NB: If running from cartridge, these
words will crash because BASIC ROM
cannot be accessed!

Example:

s" .5" strf .5
s" .8" strf .8
.5 fac! .8 fac* fac.

...prints .4! )

: bsys \ system call to BASIC ROM
1 c@ dup 3 or 1 c! swap sys 1 c! ;
: fac, bbca bsys
Expand All @@ -13,11 +27,3 @@ dup 100/ yr ! ar ! bba2 bsys ;
: fac* ( faddr -- )
dup 100/ yr ! ar ! ba28 bsys ;
: fac. bddd bsys b487 bsys ab21 bsys ;

( example:

s" .5" strf .5
s" .8" strf .8
.5 fac! .8 fac* fac.

...prints .4! )

0 comments on commit 436791f

Please sign in to comment.