Go Back   DriverHeaven > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP
Register Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old Mar 5, 2007, 10:22 AM   #1 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

ANDXOR Instruction

The ANDXOR instruction (currently) is not really documented in the guide, but is documented in the AS10k1 Online manual.

However, I noticed that the documentation (as well as the macro in the emu_constants.asm file) in the AS10k1 Manual for implementing logical 'OR' is not correct.

The correct implementation is as follows:

Code:
; ANDXOR = (A AND X) XOR Y

; Y OR X = (NOT(Y) AND X) XOR Y
andxor tmp, Y, 0xffffffff, 0xffffffff;
andxor tmp, tmp, X, Y;
I just thought I would post this in case anyone ever has the need for using logical 'OR' in their code.

If anyone wants to post anything else about the ANDXOR instruction, maybe posting it in this thread would be a good idea...

-Russ

Last edited by Russ : Mar 5, 2007 at 10:32 AM.
Russ is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 02:45 AM. Copyright ©2008 DriverHeaven.net