flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > discovery: menuet and fasmw

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1046
Location: Michigan, USA
madmatt
Hello everyone! First post on this sight! I made a discovery that you can use fasm windows version 1.49 and make a menuet kernel object that works very good. First copy all the menuet code to an empty folder on your hard drive. Extract the kernel.zip file to a folder. Two changes in the code you will have to make are (a)(b) [see source codes below]. You will also have to delete the old menuet.mnt and change the menuet.com file that is produced to menuet.mnt. after this copy the menuet.mnt file to the floppy disk and reboot your computer. Everything should work good!
Now you can work with fasmw and develope a bit easier! Laughing


(a) First change (begins at line 4030)

CHANGE THIS:
.20d:
sub edx,1
cmp edx,0
jnz .21d
jmp frnoreadd
.21d:
mov esi,eax ;Name of file we want
mov ecx, 11
cld
rep cmpsb ;Found the file?
je fifoundd ;Yes
add cl, 21 ;Offset to next directory entry
add edi, ecx ;Advance to next entry
jmp .20d

TO THIS:
f.20d:
sub edx,1
cmp edx,0
jnz f.21d
jmp frnoreadd
f.21d:
mov esi,eax ;Name of file we want
mov ecx, 11
cld
rep cmpsb ;Found the file?
je fifoundd ;Yes
add cl, 21 ;Offset to next directory entry
add edi, ecx ;Advance to next entry
jmp f.20d

(b) The second change (begins at line 4262)

CHANGE THIS:
.20ds:
sub edx,1
cmp edx,0
jnz .21ds
jmp frnoreadds
.21ds:
cmp [edi],byte 0xE5
jz fifoundds
cmp [edi],byte 0x0
jz fifoundds
add edi,32 ; Advance to next entry
jmp .20ds

TO THIS:
f.20ds:
sub edx,1
cmp edx,0
jnz f.21ds
jmp frnoreadds
f.21ds:
cmp [edi],byte 0xE5
jz fifoundds
cmp [edi],byte 0x0
jz fifoundds
add edi,32 ; Advance to next entry
jmp f.20ds
Post 08 Oct 2003, 10:20
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-2019, Tomasz Grysztar.

Powered by rwasa.