aboutsummaryrefslogtreecommitdiff
path: root/compiler/elymasAsm.ey
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-05-02 15:54:28 +0200
committerDrahflow <drahflow@gmx.de>2015-05-02 15:54:28 +0200
commitbeed2f58dace53f6ad298f66f33ab838b8140050 (patch)
tree0377d6fe06939131ee3ce417aa95cc2139bef237 /compiler/elymasAsm.ey
parent4879251f3b4bf6750c1d29aa342630c75e21599b (diff)
Hashed nametables
Diffstat (limited to 'compiler/elymasAsm.ey')
-rw-r--r--compiler/elymasAsm.ey9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/elymasAsm.ey b/compiler/elymasAsm.ey
index ff57627..e792b21 100644
--- a/compiler/elymasAsm.ey
+++ b/compiler/elymasAsm.ey
@@ -6,12 +6,15 @@
6148914691236517205 ==STACKBOTTOMMARKER
4 ==ERRORMARKER
+ 3 ==HASHPOSITIONS # number of positions to probe on collisions
# hex decoding
{
- "(.)(.)" regex { } { "not a valid hex-string" die } ? *
- { { eq }_ [ "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F" ] -01 index }
- -20*10* 16 mul add
+ 0 -01 { "(.)(.*)" regex } {
+ { 16 mul }
+ { { eq }_ [ "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F" ] -01 index add }
+ -41*20*3
+ } loop
} "%" defq
"elymasAsmOps.ey" include