3 ms·
subtraction is trivial to add in userspace once you've loaded it though : - sp@ @ nand 1 + + ; or as it appears in the hello_world.FORTH file : dup sp@ @
by Avshalom 3y ago
subtraction is trivial to add in userspace once you've loaded it though
: - sp@ @ nand 1 + + ;
or as it appears in the hello_world.FORTH file
: dup sp@ @ ;
: invert dup nand ;
: negate invert 1 + ;
: - negate + ;
There is of course no benefit to this thing at all other than reclaiming the crown from those deviant lispers... well I suppose if you're making a your own computer from scratch like https://www.homebrewcpuring.org/ https://www.homebrewcpuring.org/ it might be a useful starting point.