Drill Sizes and SpinAsm AND: Difference between pages

From PedalPCB Wiki
(Difference between pages)
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |+ |3mm LED |1/8" |- |3mm LED Bezel |15/64" |- |3mm LED Lens |11/64" |- |5mm LED |13/64" |- |5mm LED Bezel |5/16" |- |5mm LED Lens |1/4" |- |Toggle Switch |15/64" |- |16mm Pot |9/32" |- |1/4" Enclosed Jack |3/8" |- |3PDT Footswitch |15/32" |- |DC Jack (External Nut) |1/2" |- |DC Jack (Lumberg) |5/16" |}")
 
(Created page with "==AND== {| class="wikitable" |+ !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) {| class="wikitable" |+ !Name !Width !Ent...")
 
Line 1: Line 1:
==AND==
{| class="wikitable"
{| class="wikitable"
|+
|+
|3mm LED
!Mnemonic
|1/8"
!Operation
!Instruction coding
|-
|-
|3mm LED Bezel
|AND
|15/64"
|ACC & MASK
|-
|MMMMMMMMMMMMMMMMMMMMMMMM000001110
|3mm LED Lens
|}
|11/64"
 
|-
======Description======
|5mm LED
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)
|13/64"
{| class="wikitable"
|-
|+
|5mm LED Bezel
!Name
|5/16"
!Width
|-
!Entry formats, range
|5mm LED Lens
|1/4"
|-
|Toggle Switch
|15/64"
|-
|16mm Pot
|9/32"
|-
|1/4" Enclosed Jack
|3/8"
|-
|3PDT Footswitch
|15/32"
|-
|DC Jack (External Nut)
|1/2"
|-
|-
|DC Jack (Lumberg)
|M
|5/16"
|24 Bit
|Binary
Hex ($000000 - $FFFFFF)
Symbolic
|}
|}
======Syntax======
AND M
======Coding Example======
<syntaxhighlight line="1">
Off  EQU  1.0                  ;
                                ;
; Halve way rectifier ­­­­­­­­
sof  0,0                        ; Clear ACC
rdax ADCL,1.0                  ; Read from left ADC channel
sof  1.0,Off                    ; Subtract offset
sof  1.0,Off                    ; Add offset
</syntaxhighlight>

Revision as of 20:20, 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)

Name Width Entry formats, range
M 24 Bit Binary

Hex ($000000 - $FFFFFF) Symbolic

Syntax

AND M

Coding Example
Off  EQU  1.0                   ; 
                                ; 
; Halve way rectifier ­­­­­­­­
sof  0,0                        ; Clear ACC 
rdax ADCL,1.0                   ; Read from left ADC channel
sof  1.0,Off                    ; Subtract offset 
sof  1.0,Off                    ; Add offset