Changeset 3202
- Timestamp:
- Aug 20, 2012 11:44:00 AM (9 months ago)
- File:
-
- 1 edited
-
cpu/x86/pc/olpc/via/fsupdate.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/x86/pc/olpc/via/fsupdate.fth
r3099 r3202 7 7 safe-parse-word 8 8 push-hex $number pop-base " Bad number" ?nand-abort 9 ; 10 11 : get-dhex# ( -- d ) 12 0 safe-parse-word 13 push-hex $dnumber pop-base " Bad number" ?nand-abort 9 14 ; 10 15 … … 146 151 ; 147 152 153 0 2value file-bytes 154 : size: ( "bytes" -- ) 155 get-dhex# ( d.size ) 156 file-bytes d<> ( invalid? ) 157 " Inconsistent size of zdata file" ?nand-abort 158 ; 159 148 160 : erase-all ( -- ) 149 161 #image-eblocks show-writing … … 260 272 r/o open-file ( fd error? ) 261 273 " Can't open file" ?nand-abort ( fd ) 274 dup file-size ( fd [size.d] error? ) 275 " Can't size file" ?nand-abort ( fd size.d ) 276 [ also nand-commands ] to file-bytes [ previous ] 262 277 263 278 linefeed over force-line-delimiter ( fd )
Note: See TracChangeset
for help on using the changeset viewer.
