flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 03 Nov 2004, 10:37
You have no "ret" or "return" in your proc's. I think this may a problem.
Also Win NT and up (2K and XP) do not allow "in" and "out" instructions to most ports. they are privileged instructions. I am not sure about the speaker port perhaps that port is open. If not you can try USERPORT. I can't remember where I downloaded it from but it has been very useful for me when I use the parallel port for direct I/O transfer. You can set the access for all the ports as you need. And you can set how the access is applied, for eg. you can set some ports to be always open to every program and set other ports just for access for your program etc.
Last edited by revolution on 10 Nov 2008, 10:49; edited 2 times in total |
|||||||||||
![]() |
|
Consumed 03 Nov 2004, 17:54
I added the returns and I'm still getting the bad image error. And I tried out some of that speaker code in a com app and it worked fine. I don't know what's up with this thing but it sure is stumping me.
![]() |
|||
![]() |
|
pelaillo 03 Nov 2004, 17:59
You need to sort the exported functions. Case sensitive.
|
|||
![]() |
|
Consumed 03 Nov 2004, 19:41
I've tried exporting the functions in several different orders, yet I still get the same error.
|
|||
![]() |
|
pelaillo 03 Nov 2004, 21:54
One more thing: you need to import at least one function from kernel32 API in order to have the dll loaded.
Look at this thread: http://board.flatassembler.net/topic.php?t=428 |
|||
![]() |
|
Consumed 04 Nov 2004, 00:13
Ok, the dll is valid now. Though the pc speaker isn't making any sound.
![]() |
|||
![]() |
|
revolution 04 Nov 2004, 05:31
You don't have any delays between SpeakerOn and SpeakerOff. Depending on your PC the loop is probably running at MHz.
|
|||
![]() |
|
Matrix 04 Nov 2004, 07:56
hello, can i recommend a delay less sound output code?
http://board.flatassembler.net/topic.php?t=2432 ![]() well the topic says bad image |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.