SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C notation

 
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related
View previous topic :: View next topic  
Author Message
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Sat May 18, 2002 12:13 am    Post subject: Reply with quote

Code:

unsigned int LFNRename(char *oldname, char *newname)
{
    unsigned int retval;
    asm
    {
        push ds
        lds dx,oldname
        les di,newname
        mov ax,0x7156
        int 0x21
        pop ds
        sbb bx,bx
        and ax,bx
        mov [retval],ax
    }
    return retval;
}


I am rewriting the above function in PowerBASIC....and before I go hacking around and causing all sorts of trouble for myself....I just want to make sure I am right...

*oldname and *newname would be pointers to the data passed in to the function....right? Just need to make sure so I impliment the code correctly.


_________________
Amos


[url=mailto:18238073@pager.icq.com]Msg@Home[/url]
[url=mailto:154644152@pager.icq.com]Msg@Work[/url]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Sat May 18, 2002 5:13 am    Post subject: Reply with quote

Yes.

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Sat May 18, 2002 5:40 am    Post subject: Reply with quote

Yes indeed
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Sat May 18, 2002 10:36 pm    Post subject: Reply with quote

Sweet....with that information, I shouldn't have much trouble implimenting the LFN API per Microsoft's documentation...

I had to re-impliment REG for PowerBASIC, since it didn't do 8-bit registers... But with my new implimentation, I can do the whole LFN API.

I'm also thinking of writing a bitcode compiler/interpreter based on MIPS Assembly registers

ie: It will compile to MIPS compatible Machine code, and run it on an x86 sytem.

_________________
Amos


[url=mailto:18238073@pager.icq.com]Msg@Home[/url]
[url=mailto:154644152@pager.icq.com]Msg@Work[/url]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Sun May 19, 2002 6:00 am    Post subject: Reply with quote

Just wondering, what are you wanting this for? DJGPP already supports the long filename API.

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Sun May 19, 2002 6:11 am    Post subject: Reply with quote

Read the initial post.

_________________
Amos


[url=mailto:18238073@pager.icq.com]Msg@Home[/url]
[url=mailto:154644152@pager.icq.com]Msg@Work[/url]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Sun May 19, 2002 12:26 pm    Post subject: Reply with quote

Oh, so it's just a general purpose routine for your use in PB?

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Sun May 19, 2002 8:51 pm    Post subject: Reply with quote

Yep. I will initially write it for PB then I can port it to other versions of BASIC.

I also intend to impliment most (or all) of the rest of the LFN API as well.

This *could* be integrated into VHA as well...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group