flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > How do I use pointers from an app in my syscall?

Author
Thread Post new topic Reply to topic
compilax



Joined: 18 Feb 2004
Posts: 56
compilax
Hi. I've been messing with MeOS for a while now, but I've just started doing a few additions to the kernel. I have a syscall that works, but how do I use pointers passed to my syscall?

I've tried not doing anything to the pointer and just using it, that didnt work. Then I had a look and found what seemed like a solution and did this:

; ********************
; * VFS_mount *
; * EBX > Attributes * <-- DWORD
; * ECX > Mountpoint * <-- Pointer to ASCIIZ string
; ********************
cat_vfs_mount:
mov edi,[0x3010] ; ECX should now point to the place it is meant
add edi,0x10 ; to from this code's perspective.
add ecx,[edi]

But it always ends up pointing to a capitalised M somewhere.

Any ideas?
Post 03 Aug 2004, 12:27
View user's profile Send private message Visit poster's website MSN Messenger 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 GitHub, YouTube, Twitter.

Website powered by rwasa.