home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
compiler
/
ubasic
/
ubmpqs32
/
mpqshd.h
< prev
next >
Wrap
Text File
|
1990-08-06
|
2KB
|
109 lines
;mpqshd.h ver3.2
; 1989/90 by Yuji KIDA
maxprimes equ 0c000h
maxbuffersize equ maxprimes/4
primeunitbytes equ 16
mask24bit equ 00ffffffh
pmodeworkadr equ 00100000h
;
; data area for each prime
;
primeadr equ pmodeworkadr
primeadr2 equ 70000h ;0a0000h-70000h >= 4bytes*maxprimes
primeseg2 equ primeadr2/10h
;
; sieve constants
;
sieveRep equ 16
sieveRepLog equ 4 ;= log of sieveRep
;
; lpv constants
;
wword equ 2
wbyte equ 4
xword equ 22
t_word equ 24
t_byte equ 48
;
; Gauss constants
;
maxunitcolumns equ 1024 ;power of 2 >= 32
maxunitbytes equ maxunitcolumns/8
gaussMiniadr equ 00100000h
gaussShortadr equ gaussMiniadr+maxprimes
;needs size*(maxunitbytes+maxunitcolumns*2/8)
;
; real-protect common parameter area
;
_memoseg equ 7fe0h
_memoadr equ _memoseg*10h
_result equ 0+_memoadr
_primes equ 4+_memoadr
_primesR equ 4
_primes1 equ 8+_memoadr
_primes2 equ 0ch+_memoadr
_inilog equ 20h+_memoadr
_inilogR equ 20h
_cutlog equ 24h+_memoadr
_cutlogR equ 24h
_offset equ 28h+_memoadr
_sievewidth equ 2ch+_memoadr
_sievewidthR equ 2ch
_start equ 30h+_memoadr
_absQ equ 34h+_memoadr
_absQR equ 34h
_sievetop equ 40h+_memoadr ;= pmodeworkadr
;+ maxprimes * primeunitbytes
_sievetopR equ 40h
_sieveBsize equ 44h+_memoadr ;= sieveover - sievetop
_sieveBsizeR equ 44h
_sieveConst equ 48h+_memoadr ;= sieveBsize - sievetop
_sieveConstR equ 48h
_sieveover equ 4ch+_memoadr
_sieveoverR equ 4ch
_sieveXsize equ 50h+_memoadr ;= sieveBsize\16
_sieveXsizeR equ 50h
_lpvmaxnumber equ 60h+_memoadr
_lpvindexadr equ 64h+_memoadr
_lpvdataadr equ 68h+_memoadr
_A2 equ 80h+_memoadr
_A2R equ 80h
_MIA2P equ 0a0h+_memoadr
_B equ 0c0h+_memoadr
_BR equ 0c0h
_W equ 0e0h+_memoadr
_WR equ 0e0h
;100h-1ffh are gdttbl
_gdttblseg equ _memoseg+10h
_gdttbladr equ _gdttblseg*10h
;
; sieve answer area
;
sieveansarea equ 80000h