flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > New subfunctions for syscall 58

Author
Thread Post new topic Reply to topic
ATV



Joined: 31 Aug 2004
Posts: 109
Location: Finland
ATV
APPEND uses byte level access, because 512 bytes block handling feels little silly. It return error code if file not exist or start position is outside file.

Code:
fileinfo:                 ; fileinfo for function 58
  .mode        dd 3       ; 3=append file
  .start_block dd -1      ; StartPos in bytes 0..File Size (-1 = EOF)
  .blocks      dd 0x0     ; bytes to write (0 = truncate file at StartPos)
  .address     dd buffer  ; source data pointer
  .workarea    dd 0x10000 ; work area for os
  dirnamez:    times 128 db 0

fileinfo.mode = 3  ; append file  (return: ebx = bytes written)
fileinfo.mode = 12 ; get_filesize (return: ebx = file/dir size in bytes)
fileinfo.mode = 13 ; get_fileattr (return: ebx = file/dir attribute)
fileinfo.mode = 14 ; get_filedate (return: ebx = file/dir date/time)
    


Description: Updated fat32.inc and fs.inc for MeOS v78p6
Download
Filename: APPEND.ZIP
Filesize: 30.44 KB
Downloaded: 224 Time(s)

Post 17 Jan 2005, 08:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.