Welcome to the Dictionary of Programming Languages, a compendium
of computer coding methods assembled to provide information and
aid your appreciation for computer science history.
Browse the dictionary by clicking on a section:
A
B
C
D
E
F
G
H
I
JK
L
M
N
O
P
QR
S
T
UV
WXYZ+
Get a full dump of the dictionary:
List of Names
Short Form
Full Form
code Segment; \ define code Segment.
Org 0100h; \ all .COM programs start at 0100h.
data Segment; \ define data Segment.
' First2 ='1', =13, =10, \ Initial 2 primes message text...
='2', =13, =10, =24h; \ followed by a $ for DOS.
' Primes =" primes.", \ declare message text...
crlf =13, =10, =24h; \ followed by CR, LF and $ for DOS.
EOP Label Byte; \ define End Of Program.
data EndS; \ close data segment, goes after code.
\
\ Computes and displays all of the primes between 0 and 65536 using the
\ Eratosthenes' Sieve method. Note that the first 2 primes (1 and 2)
\ are handled as a special case.
\
\
dx = O(First2); ah = 9; !21h; \* print first 2 primes using DOS.
sp = O(EOP 512); \ set up 256 word stack at end of prog.
bx = sp 15 > 4; \ bx = number of paragraphs we use.
es = ds = ax = cs bx; \ setup ds,es to free space past stack.
cx = 32768; ax = (-1); &di; \ cx = number, ax = value, di = offset.
; <> ** =; \ auto-inc, clear full 64K flags array.
bx = 2; &si; &ch; \ count = 2 (for 1 & 2), i = 0, ch = 0.
{ \ do...
cl = [si]; ?<> \ if flags[i] is non-zero...
{ \ then...
dx = si si 3; <<1; \ prime = i * 2 3, break if done...
ax = dx; =.PrintNum; \* print prime using PrintNum.
ax = H(14) L(13); !10h; \* print CR using BIOS.
ax = H(14) L(10); !10h; \* print LF using BIOS.
di = si dx; >> \ k = i prime, if & while k << limit,
{ [di] = ch; di dx; }>>; \ do flags[k] = 0, k = k prime.
bx ; \ count = count 1;
}; \ endif flags[i] is non-zero.
si ; \ i = i 1.
}.; \ loop forever-- break gets us out.
es = ds = ax = cs; \ restore ds and es.
ax = bx; =.PrintNum; \ print ax in decimal to screen.
dx = O(Primes); ah = 9; !21h; \ print " primes." using DOS.
!20h; \ return to DOS.
Descriptions in this dictionary are ©1997-99 Neal Ziring. Some examples copyright of their respective authors. Some technologies and languages are trademarked. Permission to copy descriptions is granted as long as authorship credit is preserved.
Comments on this dictionary, corrections and suggestions, are all welcome. Please use email, the address is ziring@home.com
[Ziring MicroWeb Home] [Dictionary Start] [Sign Guestbook]
Dictionary and script maintained by Neal Ziring, last major modifications 3/18/98. Most recent additions to dictionary and master list, 1/00.