Main Page and SpinAsm AND: Difference between pages

From PedalPCB Wiki
(Difference between pages)
Jump to navigation Jump to search
Tag: Reverted
 
No edit summary
 
Line 1: Line 1:
This is the testing area for the '''PedalPCB Wiki'''.  The information listed here is for experimental purposes only.
==AND==
{| class="wikitable"
|+
!Mnemonic
!Operation
!Instruction coding
|-
|AND
|ACC & MASK
|MMMMMMMMMMMMMMMMMMMMMMMM000001110
|}


== Component References ==
======Description======
* [[Potentiometers]]
AND will perform a bit wise "and" of the current ACC and the 24­bit MASK specified within the instruction word. The instruction might be used to load a constant into ACC provided ACC contains $FFFFFF or to clear ACC if MASK equals $000000. (see also the pseudo opcode section)
* [[LEDs]]
{| class="wikitable"
* [[Jacks]]
|+Parameters
* [[Switches]]
!Name
** [[Momentary vs Latching]]
!Width
** [[Normally Open vs Normally Closed]]
!Entry formats, range
** [[Make before Break vs Break before Make]]
|-
** [[ON/ON]]
|M
** [[ON/OFF/ON]]
|24 Bit
** [[ON/ON/ON]]
|Binary
** [[SPST]]
Hex ($000000 - $FFFFFF)
** [[SPDT]]
** [[DPDT]]
** [[3PDT]]
** [[4PDT]]
** [[Rotary Switches]]
* [[SMD Component Lookup]]
* [[EIA-96 SMD Resistor Codes]]
* [[Op Amp Slew Rates]]
* [[Resistor Color Code Chart]]


== Wiring Diagrams ==
Symbolic
* [[Standard True-Bypass Wiring]]
|}
* [[2-in-1 Pedal Wiring]]
* [[2-in-1 Pedal Wiring (Single Footswitch)]]
* [[2-in-1 Pedal Wiring (AB)]]
* [[3PDT Order Switch Wiring]]
* [[Expression Control Wiring]]
* [[DPDT ON/ON/ON as 3-way Switch]]


== To Do ==
======Syntax======
* Basic Electronics Theory
AND M
* Resistors
* Capacitors
* Diodes
* Transistors
* Integrated Circuits
* Enclosures
* Switches
* [[PCB list by SKU]]
* [[JFET chart]]


== SpinAsm Reference ==
======Coding Example======
* [[SpinAsm SOF]]
<syntaxhighlight line="1">
* [[SpinAsm AND]]
AMASK EQU  $F0FFFF                  ;
* [[SpinAsm OR]]
                                    ;
* [[SpinAsm XOR]]
;------------------------------------
* [[SpinAsm LOG]]
or $FFFFFF                          ; Set all bits within ACC
* [[SpinAsm EXP]]
and  $FFFFFE                        ; Clear LSB
* [[SpinAsm SKP]]
and  %01111111_11111111_11111111    ; Clear MSB
and  AMASK                          ; Clear ACC[19..16]  
and  $0                            ; Clear ACC
</syntaxhighlight>

Revision as of 20:53, 6 January 2023

AND

Mnemonic Operation Instruction coding
AND ACC & MASK MMMMMMMMMMMMMMMMMMMMMMMM000001110
Description

AND will perform a bit wise "and" of the current ACC and the 24­bit MASK specified within the instruction word. The instruction might be used to load a constant into ACC provided ACC contains $FFFFFF or to clear ACC if MASK equals $000000. (see also the pseudo opcode section)

Parameters
Name Width Entry formats, range
M 24 Bit Binary

Hex ($000000 - $FFFFFF)

Symbolic

Syntax

AND M

Coding Example
AMASK EQU  $F0FFFF                  ; 
                                    ; 
;------------------------------------
or $FFFFFF                          ; Set all bits within ACC 
and  $FFFFFE                        ; Clear LSB 
and  %01111111_11111111_11111111    ; Clear MSB 
and  AMASK                          ; Clear ACC[19..16] 
and  $0                             ; Clear ACC