flat assembler
Message board for the users of flat assembler.

Index > OS Construction > FASM manipulating CD-Rome or DVD Rome

Author
Thread Post new topic Reply to topic
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 04 May 2011, 08:48
any one can help me?? can u give me a fasm program that manipulate cd-rome or dvd-rome,, any kind
Post 04 May 2011, 08:48
View user's profile Send private message Yahoo Messenger Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 04 May 2011, 09:15
or anything that can use cd-rome or dvdrome,, thnx
Post 04 May 2011, 09:15
View user's profile Send private message Yahoo Messenger Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 04 May 2011, 20:50
Here is a bootable cdplayer i coded, its has a basic atapi driver.


Description:
Download
Filename: CDplayer.zip
Filesize: 51.03 KB
Downloaded: 245 Time(s)

Post 04 May 2011, 20:50
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 04 May 2011, 22:04
hmm....could be something i'm interested in.
Post 04 May 2011, 22:04
View user's profile Send private message Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 05 May 2011, 03:55
thnx Dex4u,,, but I nid a codes that manipulate the cd-rome,,
example: When u run the program, the CD-Rome will open,, and countdown 5sec, then cd-rome will close. . .
Post 05 May 2011, 03:55
View user's profile Send private message Yahoo Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 05 May 2011, 03:56
rever0lf: See the "BEER" example in the fasm download. It uses the CDROM.
Post 05 May 2011, 03:56
View user's profile Send private message Visit poster's website Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 05 May 2011, 04:02
I see, , can u help in BEER example?? ca u help me to revice that example
Post 05 May 2011, 04:02
View user's profile Send private message Yahoo Messenger Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 05 May 2011, 04:04
"BEER" is just to open the CD-Rome but can't close,, can we add codes to close the cd-rome,, thnx
Post 05 May 2011, 04:04
View user's profile Send private message Yahoo Messenger Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler 05 May 2011, 05:38
Code:
_cmd_eject db 'set cdaudio door closed',0    

_________________
This is a block of text that can be added to posts you make.
Post 05 May 2011, 05:38
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 05 May 2011, 10:00
thnx sir. . . . I try that
Post 05 May 2011, 10:00
View user's profile Send private message Yahoo Messenger Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 05 May 2011, 15:08
rever0lf wrote:
thnx Dex4u,,, but I nid a codes that manipulate the cd-rome,,
example: When u run the program, the CD-Rome will open,, and countdown 5sec, then cd-rome will close. . .

Sorry i thought you ment from your os.
The enclosed zip does do that when you boot it, but you mean from windows.
Post 05 May 2011, 15:08
View user's profile Send private message Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 07 May 2011, 01:04
Quote:

; Beer - example of tiny (one section) Win32 program

format PE GUI 4.0

include 'WIN32A.INC'

; no section defined - fasm will automatically create .flat section for both
; code and data, and set entry point at the beginning of this section

invoke MessageBoxA,0,_message,_caption,MB_ICONQUESTION+MB_YESNO
cmp eax,IDYES
jne exit

invoke mciSendString,_cmd_open,0,0,0
invoke mciSendString,_cmd_eject,0,0,0
invoke mciSendString,_cmd_close,0,0,0

exit:
invoke ExitProcess,0

_message db 'Do you need additional place for the beer?',0
_caption db 'Desktop configuration',0

_cmd_open db 'open cdaudio',0
_cmd_eject db 'set cdaudio door open',0
_cmd_close db 'close cdaudio',0

; import data in the same section

data import

library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL',\
winmm,'WINMM.DLL'

import kernel32,\
ExitProcess,'ExitProcess'

import user32,\
MessageBoxA,'MessageBoxA'

import winmm,\
mciSendString,'mciSendStringA'

end data





plss help me w/ this codes,, any one can define what are the purpose each line,,,

thnx. . . .
Post 07 May 2011, 01:04
View user's profile Send private message Yahoo Messenger Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 07 May 2011, 08:38
ca I ask a question?? what is the purpose of invoke? and format PE GUI 4.0
Post 07 May 2011, 08:38
View user's profile Send private message Yahoo Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 07 May 2011, 09:16
Answers of all your questions (at least for the next 2000 lines of code) are Here.
Please read them carefully and then ask again if something is not clear.

Regards.
Post 07 May 2011, 09:16
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
rever0lf



Joined: 04 May 2011
Posts: 15
rever0lf 08 May 2011, 03:40
what is the purpose win32a.inc in BEER program???
Post 08 May 2011, 03:40
View user's profile Send private message Yahoo Messenger Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 08 May 2011, 06:48
windows 32 bit Application Programming Interface - include file
*ahem!*
Post 08 May 2011, 06:48
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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.