Skip to content

Commit

Permalink
Forth: Add DUMP ( a1 a2 -- ) rudimentary mem dump
Browse files Browse the repository at this point in the history
  • Loading branch information
adumont committed Nov 8, 2021
1 parent 75e536b commit bbdf84b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forth.s
Original file line number Diff line number Diff line change
Expand Up @@ -2461,6 +2461,8 @@ BOOT_PRG:
.BYTE " : t 8 L@ ; : t! 8 L! ;"
; End of Local variables support

.BYTE " : DUMP SWAP DUP . DO I C@ C. LOOP ; " ; ( addr1 addr2 -- ) dumps memory from addr1 to addr2

.BYTE " MARKER " ; so we can return to this point using FORGET
.BYTE " PRMP" ; Shows ok prompt to user

Expand Down

0 comments on commit bbdf84b

Please sign in to comment.