Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
tabemann committed May 25, 2024
2 parents 398ccc3 + 4836e0a commit 75b627f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/stm32f746/forth/erase.fs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ commit-flash
then
;

\ Forget up to and including a word in RAM
: forget ( "name" -- )
token-word dup ram-base >= over ram-end < and if
dup internal::next-word @ ram-latest! ram-here!
latest ram-base >= latest ram-end < and if ram-latest latest! then
else
drop
then
;

\ Ending compiling code in flash
end-compress-flash

Expand Down
10 changes: 10 additions & 0 deletions src/stm32l476/forth/erase.fs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ commit-flash
then
;

\ Forget up to and including a word in RAM
: forget ( "name" -- )
token-word dup ram-base >= over ram-end < and if
dup internal::next-word @ ram-latest! ram-here!
latest ram-base >= latest ram-end < and if ram-latest latest! then
else
drop
then
;

\ Ending compiling code in flash
end-compress-flash

Expand Down

0 comments on commit 75b627f

Please sign in to comment.