Assembly is a family of low-level languages for programming computers. They implement a symbolic representation of the machine instructions and data needed to program a particular CPU architecture with its particular instruction- and register set. An assembler is used to translate the assembly source code into executable machine instructions in object code. Almost each architecture and its extensions have their own proprietary assembly language with different syntax and mnemonics for operations, data declarations etc..
** COUNTS - COUNT MEMBERS OF A SQUARE LIST
COUNTS MACRO Y
.STST
LOADS Y
.CHK2
CX'.S1' X'.S1'
CX'.S2' X'.S2'
IX'.SS' X'.S2'+X'.S1'
.STND
COUNTS ENDM
...
SETQ MOBIL,(PLUS,(COUNTS,(INDEXS,ATKFR,(LSHIFT,SQLN,1))),MOB
LDB B,[014300,,A] ;or MOVE B,A then LSH B,-1
AND B,[333333,,333333]
SUB A,B
LSH B,-1
AND B,[333333,,333333]
SUBB A,B ;each octal digit is replaced by number of 1's in it
LSH B,-3
ADD A,B
AND A,[070707,,070707]
IDIVI A,77 ;casting out 63.'s
Table of Contents
Assembly is a family of low-level languages for programming computers. They implement a symbolic representation of the machine instructions and data needed to program a particular CPU architecture with its particular instruction- and register set. An assembler is used to translate the assembly source code into executable machine instructions in object code. Almost each architecture and its extensions have their own proprietary assembly language with different syntax and mnemonics for operations, data declarations etc..
Assembler
CDC 6600/Cyber
Mobility in Chess 4.6 based on 47 CXi Xk Population Count, written in COMPASS, the CDC Macro Assembler for the CDC 6600 and CDC Cyber [1]. The square list aka bitboard was loaded into two 60-bit registers, with both populations added and stored.Cray
Cray Assembly Language (CAL) [2], some snippet from Cray Blitz Bitboard code for the Cray-1 or Cray X-MP [3]:l1020 = * s3 msave3-1,a2 s4 msave4-1,a2 a4 pcount-1,a1 a6 pcount-1,a5 pfirst-1,a1 s1 plast-1,a1 s2 pfirst-1,a5 s3 plast-1,a5 s4 a4 a4-1 a6 a6+1 pcount-1,a1 a4 pcount-1,a5 a6Intel/AMD
Architectures
Syntax
Intel-Syntax: operation target, sourceAT & T Syntax operation<type> source, target
PDP-6
HAKMEM 169, to count the ones in a PDP-6/PDP-10 36-bit word, written in MIDAS [4]:Inline Assembly
Inline assembly is embedded inside various C, C++, D, Pascal and Delphi compiler [5].See also
Publications
Listings
Manuals
6502
68000
Alpha
ARM
Fairchild F8
HP Saturn
PowerPC
SPARC
x86-64
Z80
Forum Posts
External Links
DEC
IBM
Intel
References
Up one Level