Reply 160 of 164, by theelf
- Rank
- Oldbie
ripsaw8080 wrote on Yesterday, 18:03:Suggestion for greater efficiency: […]
Suggestion for greater efficiency:
asm {
push dx
mov dx,2C0h
out dx,al
pop dx
}
There's no need to push/pop AX because the value isn't changed, and you can instead push/pop DX to write to the port directly -- then al_val and outp() aren't needed.
Thanks i compiled with tasm but i get no sound from two games i modded, zak and maniac
Now im working let my try to compile again and i will give you feedback
thanks a lot for your code and help!