The AC97 is not as easy as most people think, there,s loads of AC97 codex, but they are slight differant, eg: the intel is differant from the VIA etc to setup, if you run the code and it finds it, it should work, you all so need a CD to sound card cable, (most new PC do not have these any more, as XP does not use this meford to play CD).
These are the only ones that it test for
INTEL_VID equ 8086h ; Intel's PCI vendor ID
ICH_DID equ 2415h ; ICH device ID
ICH0_DID equ 2425h ; ICH0
ICH2_DID equ 2445h ; ICH2
Maybe one or two others.
The DEX1 is needed to make sure its a dex file.
As for the comments not far, i am busy with network code.
You all ways use earphones
.
PS: This may interest you converted by 0x4e71 (sleepy mode)
Hacked TinyC, produces Dex4u executables:
http://4e71.org/dex4u/TCCDEX4U.ZIP
win32 binary only at the moment, but should compile under UNIX too (if I haven't messed it up too much)
As mentioned before, don't expect super optimal code because TCC is a simple compiler. However TCC has some really cool things:
1 - It is Compiler/Assembler/Linker all in one, no extra programs or temp files.
2 - It is very fast.
3 - It is a (relatively) small program
I especially like point 1, that it's always a plus point for me. Also it kind of fits the dex4u spirit I think
Note that with some library work it shouldn't be too difficult to port the compiler itself to Dex4u!
And now, of course, a bit of README
USAGE
The usual syntax: tcc bla.c
Will produce bla.dex, a ready to run dex4u executables.
Note that Dex4u requires some initialization work in order
to call system functions etc. Look in the TEST directory for
examples.
Note:
- I broke BSS, so do NOT leave globals uninitialized,
Example:
long z; /* BAD! */
long z=0; /* GOOD */
This does not apply to locals
- The entry point starts is exactly the first of your program,
so look at one of the tests for the snippet of assembly code
to put on top of your source code.
- It is all alpha quality, so be careful.
- There is no clib for it, any function you want you have to either write or paste it
into your source code.
0x4e71 done a great job
.
EDIT
See here:
http://akma.disseminary.org/archives/001548.html
and you will find this
I know some brilliant programmers and insightful geeks who are dyslexic and spell very poorly -- making fun of someone's spelling online is a lot like making fun of someone's speech-impediment. Sometimes it turns out to be an affectation, sometimes it turns out that you're making sport of someone with a cleft palette. So stop being pedantic dorks, all right?