[gforth] / gforth / filedump.fs  

gforth: gforth/filedump.fs

Diff for /gforth/filedump.fs between version 1.1 and 1.2

version 1.1, Fri Feb 11 16:30:46 1994 UTC version 1.2, Thu Jun 8 15:28:26 1995 UTC
Line 1 
Line 1 
 #! /usr/stud/paysan/bin/forth  #! /usr/stud/paysan/bin/gforth
 \ file hex dump  \ file hex dump
   
 Create buffer $10 allot  Create buffer $10 allot
   
 : dumpline ( addr handle -- flag )  : dumpline ( addr handle -- flag )
   buffer $10 2dup 0 fill rot read-file throw    buffer $10 2dup 0 fill rot read-file throw
   $10 <> swap 6 u.r ." : "  buffer .line cr ;    dup /dump !  $10 <> swap 6 u.r ." : "  buffer .line cr ;
   
 : init  cr $10 base ! ;  : init  cr $10 base ! ;
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help