Skip to content

Commit

Permalink
pad is now defined like in fig-forth!
Browse files Browse the repository at this point in the history
Not sure why I had a static buffer before...

Now I can use pad for chat over usb and serial, instead of allocating other
buffers.
  • Loading branch information
nimblemachines committed Feb 15, 2012
1 parent be2321b commit adec4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion startup.mu4
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ ctrl M constant #CR -- 13
( Since we're putting "thousands" separations in here as well, I thought I
might increase the size to an over-generous 128 bytes.)

128 allot here constant pad ( 64 digits + sign + alignment)
: pad here 128 + ; ( 64 digits + sign + alignment)

variable hld
: hold -1 hld +! hld @ c! ;
Expand Down

0 comments on commit adec4d5

Please sign in to comment.