hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 588 values | lang stringclasses 305 values | max_stars_repo_path stringlengths 3 363 | max_stars_repo_name stringlengths 5 118 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringdate 2015-01-01 00:00:35 2022-03-31 23:43:49 ⌀ | max_stars_repo_stars_event_max_datetime stringdate 2015-01-01 12:37:38 2022-03-31 23:59:52 ⌀ | max_issues_repo_path stringlengths 3 363 | max_issues_repo_name stringlengths 5 118 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count float64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 363 | max_forks_repo_name stringlengths 5 135 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringdate 2015-01-01 00:01:02 2022-03-31 23:27:27 ⌀ | max_forks_repo_forks_event_max_datetime stringdate 2015-01-03 08:55:07 2022-03-31 23:59:24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1.13 1.04M | max_line_length int64 1 1.05M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68fc717e1b4c2ba4b36d66b97beb1d7cc9263559 | 1,273 | asm | Assembly | samples/03_8051/original/asm/xrom_test.asm | kubasz/verinject | ab9dd56d9388d02b20ff355bf80ea6327ec009fb | [
"Apache-2.0"
] | null | null | null | samples/03_8051/original/asm/xrom_test.asm | kubasz/verinject | ab9dd56d9388d02b20ff355bf80ea6327ec009fb | [
"Apache-2.0"
] | null | null | null | samples/03_8051/original/asm/xrom_test.asm | kubasz/verinject | ab9dd56d9388d02b20ff355bf80ea6327ec009fb | [
"Apache-2.0"
] | null | null | null | ajmp start;
check:
subb a, #04;
jnz error1;
mov a, b;
jnz error2;
ret;
error1:
mov p1, #01;
ajmp error1;
error2:
mov p1, #02;
ajmp error2;
.org 020eh
start:
mov p0, #090h;
mov a, #20;
mov b, #05;
div ab;
lcall check;
mov p0, #00h;
ljmp test1;
.org 500dh;
test1:
mov a, #00;
mov b, #00;
mov r0, a;
mov r1, #30h
mov dptr, #data;
loop1:
mov a, r0;
movc a, @a+dptr;
mov @r1, a;
inc r0;
inc r1;
mov a, r0;
subb a, #25;
jnz loop1;
mov p0, #01h;
mov r0, #00h;
mov r1, #30h;
mov b, #05;
loop2:
clr c;
mov a, @r1;
subb a, b;
jnz error3;
inc b;
inc r1;
inc r0;
mov a, r0;
subb a, #25;
jnz loop2;
mov p0, #002h;
ljmp _end;
error3:
mov p1, #03;
ajmp error3;
.org 800fh;
_end:
mov p0, #0eeh;
ajmp _end;
.org 9000h;
data:
.db 5;
.db 6;
.db 7;
.db 8;
.db 9;
.db 10;
.db 11;
.db 12;
.db 13;
.db 14;
.db 15;
.db 16;
.db 17;
.db 18;
.db 19;
.db 20;
.db 21;
.db 22;
.db 23;
.db 24;
.db 25;
.db 26;
.db 27;
.db 28;
.db 29;
.db 30;
.db 31;
| 12.009434 | 20 | 0.428908 |
0dc9c3b5ef1539f97ab58e65b44edbacd8f475f1 | 15,187 | asm | Assembly | ZORTON.reko/ZORTON_1744.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_1744.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_1744.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | 1 | 2021-03-10T22:29:06.000Z | 2021-03-10T22:29:06.000Z | ;;; Segment 1744 (1744:0000)
1744:0000 5A 66 59 0F A1 0F A9 5D C9 CB ZfY....]..
;; fn1744_000A: 1744:000A
;; Called from:
;; 0CE0:0A8B (in fn0CE0_08FC)
fn1744_000A proc
enter 4h,0h
push 52h
call far 0800h:07B4h
pop cx
mov [bp-2h],dx
mov [bp-4h],ax
cmp dword ptr [bp-4h],0h
jz 0053h
l1744_0023:
les bx,[bp-4h]
xor eax,eax
mov es:[bx+4h],eax
mov es:[bx],eax
mov dword ptr es:[bx+8h],0h
mov word ptr es:[bx+10h],0h
mov eax,[bp+6h]
mov es:[bx+0Ch],eax
mov dword ptr es:[bx+8h],0h
l1744_0053:
mov dx,[bp-2h]
mov ax,[bp-4h]
leave
retf
;; fn1744_005B: 1744:005B
;; Called from:
;; 0CE0:0C07 (in fn0CE0_08FC)
fn1744_005B proc
enter 6h,0h
les bx,[bp+0Ah]
cmp dword ptr es:[bx],0h
jnz 0099h
l1744_0069:
mov eax,[bp+6h]
mov es:[bx],eax
jmp 007Fh
l1744_0073:
les bx,[bp+6h]
mov eax,es:[bx+24h]
mov [bp+6h],eax
l1744_007F:
les bx,[bp+6h]
cmp dword ptr es:[bx+24h],0h
jnz 0073h
l1744_008A:
les bx,[bp+0Ah]
mov eax,[bp+6h]
mov es:[bx+4h],eax
jmp 016Fh
l1744_0099:
les bx,[bp+0Ah]
mov eax,es:[bx]
mov [bp-4h],eax
mov byte ptr [bp-5h],0h
l1744_00A8:
les bx,[bp-4h]
mov ax,es:[bx+8h]
les bx,[bp+6h]
cmp ax,es:[bx+8h]
jle 010Ch
l1744_00B8:
les bx,[bp-4h]
mov eax,es:[bx+28h]
les bx,[bp+6h]
mov es:[bx+28h],eax
mov eax,[bp-4h]
mov es:[bx+24h],eax
les bx,[bp-4h]
cmp dword ptr es:[bx+28h],0h
jnz 00E9h
l1744_00DC:
les bx,[bp+0Ah]
mov eax,[bp+6h]
mov es:[bx],eax
jmp 00FEh
l1744_00E9:
les bx,[bp-4h]
les bx,es:[bx+28h]
mov ax,[bp+8h]
mov dx,[bp+6h]
mov es:[bx+26h],ax
mov es:[bx+24h],dx
l1744_00FE:
les bx,[bp-4h]
mov eax,[bp+6h]
mov es:[bx+28h],eax
jmp 015Fh
l1744_010C:
les bx,[bp-4h]
cmp dword ptr es:[bx+24h],0h
jz 0122h
l1744_0117:
mov eax,es:[bx+24h]
mov [bp-4h],eax
jmp 0163h
l1744_0122:
les bx,[bp+6h]
mov eax,[bp-4h]
mov es:[bx+28h],eax
les bx,[bp-4h]
mov eax,[bp+6h]
mov es:[bx+24h],eax
jmp 0148h
l1744_013C:
les bx,[bp+6h]
mov eax,es:[bx+24h]
mov [bp+6h],eax
l1744_0148:
les bx,[bp+6h]
cmp dword ptr es:[bx+24h],0h
jnz 013Ch
l1744_0153:
les bx,[bp+0Ah]
mov eax,[bp+6h]
mov es:[bx+4h],eax
l1744_015F:
mov byte ptr [bp-5h],1h
l1744_0163:
mov al,[bp-5h]
mov ah,0h
or ax,ax
jnz 016Fh
l1744_016C:
jmp 00A8h
l1744_016F:
leave
retf
1744:0171 C8 D0 00 00 56 C4 5E 06 66 26 8B 07 66 89 46 ....V.^.f&..f.F
1744:0180 F0 C7 46 FE 00 00 EB 14 8B 5E FE 6B DB 06 8D 86 ..F......^.k....
1744:0190 34 FF 03 D8 36 C7 07 00 00 FF 46 FE 83 7E FE 20 4...6.....F..~.
1744:01A0 7C E6 B8 10 00 89 46 F8 89 46 FA 8B 5E F8 6B DB |.....F..F..^.k.
1744:01B0 06 8D 86 34 FF 03 D8 C4 76 F0 26 8B 44 08 36 89 ...4....v.&.D.6.
1744:01C0 07 8B 5E F8 6B DB 06 8D 86 30 FF 03 D8 8B 46 F2 ..^.k....0....F.
1744:01D0 8B 56 F0 36 89 47 02 36 89 17 E9 1C 01 C4 5E F0 .V.6.G.6......^.
1744:01E0 26 F7 47 1A 18 00 74 03 E9 0E 01 8B 5E F8 6B DB &.G...t.....^.k.
1744:01F0 06 8D 86 34 FF 03 D8 36 8B 07 3B 46 FC 7C 14 FF ...4...6..;F.|..
1744:0200 4E F8 8B 5E F8 6B DB 06 8D 86 34 FF 03 D8 8B 46 N..^.k....4....F
1744:0210 FC EB AB 8B 5E FA 6B DB 06 8D 86 34 FF 03 D8 36 ....^.k....4...6
1744:0220 8B 07 3B 46 FC 7F 1A FF 46 FA 8B 5E FA 6B DB 06 ..;F....F..^.k..
1744:0230 8D 86 34 FF 03 D8 8B 46 FC 36 89 07 8B 5E FA EB ..4....F.6...^..
1744:0240 83 C7 46 FE 00 00 8B 46 FA 89 46 F6 FF 46 FE FF ..F....F..F..F..
1744:0250 4E F6 8B 5E F6 6B DB 06 8D 86 34 FF 03 D8 36 8B N..^.k....4...6.
1744:0260 07 3B 46 FC 7F E6 8B 46 FA 89 46 F6 8B 46 FE 89 .;F....F..F..F..
1744:0270 46 F4 8B 5E F6 6B DB 06 8D 86 34 FF 03 D8 36 8B F..^.k....4...6.
1744:0280 07 8B 5E FA 03 5E FE 6B DB 06 8D 96 34 FF 03 DA ..^..^.k....4...
1744:0290 36 89 07 8B 5E F6 6B DB 06 8D 86 30 FF 03 D8 36 6...^.k....0...6
1744:02A0 8B 47 02 36 8B 17 8B 5E FA 03 5E FE 6B DB 06 8D .G.6...^..^.k...
1744:02B0 8E 30 FF 03 D9 36 89 47 02 36 89 17 FF 4E FE FF .0...6.G.6...N..
1744:02C0 4E F6 83 7E FE 00 75 AA 8B 5E F6 6B DB 06 8D 86 N..~..u..^.k....
1744:02D0 3A FF 03 D8 8B 46 FC 36 89 07 8B 5E F6 6B DB 06 :....F.6...^.k..
1744:02E0 8D 86 36 FF 03 D8 8B 46 F2 8B 56 F0 36 89 47 02 ..6....F..V.6.G.
1744:02F0 36 89 17 8B 46 F4 01 46 FA C4 5E F0 26 8B 47 26 6...F..F..^.&.G&
1744:0300 26 8B 57 24 89 46 F2 8E C0 89 56 F0 8B DA 26 8B &.W$.F....V...&.
1744:0310 47 08 89 46 FC 66 83 7E F0 00 74 03 E9 BE FE 8B G..F.f.~..t.....
1744:0320 5E F8 6B DB 06 8D 86 30 FF 03 D8 36 8B 47 02 36 ^.k....0...6.G.6
1744:0330 8B 17 C4 5E 06 26 89 47 02 26 89 17 8B 5E F8 6B ...^.&.G.&...^.k
1744:0340 DB 06 8D 86 30 FF 03 D8 36 C4 1F 26 C7 47 2A 00 ....0...6..&.G*.
1744:0350 00 26 C7 47 28 00 00 8B 5E F8 6B DB 06 8D 86 36 .&.G(...^.k....6
1744:0360 FF 03 D8 36 8B 47 02 36 8B 17 8B 5E F8 6B DB 06 ...6.G.6...^.k..
1744:0370 8D 8E 30 FF 03 D9 36 8B 1F 26 89 47 26 26 89 57 ..0...6..&.G&&.W
1744:0380 24 8B 46 F8 40 89 46 FE EB 53 8B 5E FE 6B DB 06 $.F.@.F..S.^.k..
1744:0390 8D 86 2A FF 03 D8 36 8B 47 02 36 8B 17 8B 5E FE ..*...6.G.6...^.
1744:03A0 6B DB 06 8D 8E 30 FF 03 D9 36 C4 1F 26 89 47 2A k....0...6..&.G*
1744:03B0 26 89 57 28 8B 5E FE 6B DB 06 8D 86 36 FF 03 D8 &.W(.^.k....6...
1744:03C0 36 8B 47 02 36 8B 17 8B 5E FE 6B DB 06 03 D9 36 6.G.6...^.k....6
1744:03D0 8B 1F 26 89 47 26 26 89 57 24 FF 46 FE 8B 46 FE ..&.G&&.W$.F..F.
1744:03E0 3B 46 FA 7C A5 8B 5E FA 6B DB 06 8D 86 30 FF 03 ;F.|..^.k....0..
1744:03F0 D8 36 8B 47 02 36 8B 17 89 46 F2 89 56 F0 8B 5E .6.G.6...F..V..^
1744:0400 FA 6B DB 06 8D 86 2A FF 03 D8 36 8B 47 02 36 8B .k....*...6.G.6.
1744:0410 17 C4 5E F0 26 89 47 2A 26 89 57 28 66 26 C7 47 ..^.&.G*&.W(f&.G
1744:0420 24 00 00 00 00 EB 0C C4 5E F0 66 26 8B 47 24 66 $.......^.f&.G$f
1744:0430 89 46 F0 C4 5E F0 66 26 83 7F 24 00 75 E9 C4 5E .F..^.f&..$.u..^
1744:0440 06 66 8B 46 F0 66 26 89 47 04 5E C9 CB .f.F.f&.G.^..
;; fn1744_044D: 1744:044D
;; Called from:
;; 0CE0:0210 (in fn0CE0_0170)
;; 0CE0:02DE (in fn0CE0_023E)
;; 0CE0:03A6 (in fn0CE0_030C)
;; 0CE0:046E (in fn0CE0_03D4)
;; 0CE0:0C65 (in fn0CE0_08FC)
fn1744_044D proc
enter 8h,0h
les bx,[bp+6h]
cmp word ptr es:[bx+10h],0h
jz 0467h
l1744_045B:
push word ptr [bp+8h]
push bx
call far 16CCh:02B2h
add sp,4h
l1744_0467:
les bx,[bp+6h]
mov eax,es:[bx]
jmp 04FEh
l1744_0471:
les bx,[bp-4h]
test word ptr es:[bx+1Ah],18h
jz 047Fh
l1744_047C:
jmp 04F6h
1744:047E 90 .
l1744_047F:
cmp dword ptr es:[bx+30h],0h
jz 04B1h
l1744_0487:
mov eax,es:[bx+30h]
jmp 04A6h
l1744_048E:
push dword ptr [bp+6h]
push dword ptr [bp-8h]
call far 16CCh:001Ch
add sp,8h
les bx,[bp-8h]
mov eax,es:[bx+24h]
l1744_04A6:
mov [bp-8h],eax
cmp dword ptr [bp-8h],0h
jnz 048Eh
l1744_04B1:
push dword ptr [bp+6h]
push dword ptr [bp-4h]
call far 16CCh:001Ch
add sp,8h
les bx,[bp-4h]
cmp dword ptr es:[bx+2Ch],0h
jz 04F6h
l1744_04CC:
mov eax,es:[bx+30h]
jmp 04EBh
l1744_04D3:
push dword ptr [bp+6h]
push dword ptr [bp-8h]
call far 16CCh:001Ch
add sp,8h
les bx,[bp-8h]
mov eax,es:[bx+24h]
l1744_04EB:
mov [bp-8h],eax
cmp dword ptr [bp-8h],0h
jnz 04D3h
l1744_04F6:
les bx,[bp-4h]
mov eax,es:[bx+24h]
l1744_04FE:
mov [bp-4h],eax
cmp dword ptr [bp-4h],0h
jz 050Ch
l1744_0509:
jmp 0471h
l1744_050C:
leave
retf
1744:050E C8 02 ..
1744:0510 00 00 C4 5E 0C 66 26 83 7F 08 00 75 54 66 6A 40 ...^.f&....uTfj@
1744:0520 9A 38 1D 00 08 83 C4 04 C4 5E 0C 26 89 57 0A 26 .8.......^.&.W.&
1744:0530 89 47 08 66 26 83 7F 08 00 75 0C 1E 68 9A 23 9A .G.f&....u..h.#.
1744:0540 B6 04 3F 26 83 C4 04 C7 46 FE 00 00 EB 1D C4 5E ..?&....F......^
1744:0550 0C 26 C4 5F 08 8B 46 FE C1 E0 02 03 D8 26 C7 47 .&._..F......&.G
1744:0560 02 00 00 26 C7 07 00 00 FF 46 FE 83 7E FE 10 7C ...&.....F..~..|
1744:0570 DD C4 5E 0C 26 C4 5F 08 8B 46 06 C1 E0 02 03 D8 ..^.&._..F......
1744:0580 8B 46 0A 8B 56 08 26 89 47 02 26 89 17 C9 CB C8 .F..V.&.G.&.....
1744:0590 04 00 00 C7 46 FE FF FF C7 46 FC FF FF 8B 5E 10 ....F....F....^.
1744:05A0 0F BC C3 89 46 FE 8B 5E 0E 0F BC C3 89 46 FC C4 ....F..^.....F..
1744:05B0 5E 16 26 C4 5F 08 8B 46 FE C1 E0 02 03 D8 26 8B ^.&._..F......&.
1744:05C0 07 26 0B 47 02 74 1C FF 76 12 66 FF 76 06 C4 5E .&.G.t..v.f.v..^
1744:05D0 16 26 C4 5F 08 8B 46 FE C1 E0 02 03 D8 26 FF 1F .&._..F......&..
1744:05E0 83 C4 06 C4 5E 16 26 C4 5F 08 8B 46 FC C1 E0 02 ....^.&._..F....
1744:05F0 03 D8 26 8B 07 26 0B 47 02 74 1C FF 76 14 66 FF ..&..&.G.t..v.f.
1744:0600 76 0A C4 5E 16 26 C4 5F 08 8B 46 FC C1 E0 02 03 v..^.&._..F.....
1744:0610 D8 26 FF 1F 83 C4 06 C9 CB C8 06 00 00 C7 46 FE .&............F.
1744:0620 0F 00 C4 5E 06 26 8B 47 04 C4 5E 0A 26 3B 47 04 ...^.&.G..^.&;G.
1744:0630 7D 0D 83 66 FE FD 26 8B 47 04 C4 5E 06 EB 0E 83 }..f..&.G..^....
1744:0640 66 FE F7 C4 5E 06 26 8B 47 04 C4 5E 0A 26 2B 47 f...^.&.G..^.&+G
1744:0650 04 89 46 FA C4 5E 06 26 8B 47 06 C4 5E 0A 26 3B ..F..^.&.G..^.&;
1744:0660 47 06 7D 0D 83 66 FE FE 26 8B 47 06 C4 5E 06 EB G.}..f..&.G..^..
1744:0670 0E 83 66 FE FB C4 5E 06 26 8B 47 06 C4 5E 0A 26 ..f...^.&.G..^.&
1744:0680 2B 47 06 89 46 FC 8B 46 FC 3B 46 FA 7E 06 83 66 +G..F..F.;F.~..f
1744:0690 FE 05 EB 04 83 66 FE 0A 8B 46 FE C9 CB C8 14 00 .....f...F......
1744:06A0 00 C4 5E 06 66 26 8B 47 04 66 89 46 F4 33 C0 89 ..^.f&.G.f.F.3..
1744:06B0 46 F8 89 46 FE E9 AB 02 C4 5E F4 66 26 83 7F 30 F..F.....^.f&..0
1744:06C0 00 75 03 E9 D5 00 66 26 8B 47 30 E9 BF 00 C4 5E .u....f&.G0....^
1744:06D0 EC 26 F7 47 1A 08 00 74 03 E9 A9 00 26 83 7F 0A .&.G...t....&...
1744:06E0 00 75 03 E9 9F 00 B8 BA 28 8E C0 66 26 FF 36 86 .u......(..f&.6.
1744:06F0 A8 FF 76 EE 53 9A EB 05 CC 16 83 C4 08 09 46 FE ..v.S.........F.
1744:0700 83 7E FE 00 75 03 EB 7D 90 C4 5E EC EB 65 90 C4 .~..u..}..^..e..
1744:0710 5E F0 8B 46 FE 26 85 47 0C 74 55 FF 76 F2 53 66 ^..F.&.G.tU.v.Sf
1744:0720 FF 76 EC 0E E8 F2 FE 83 C4 08 89 46 FC 8B 46 FC .v.........F..F.
1744:0730 8B D8 8B C8 83 E3 0C 33 C0 C1 EB 02 0B C3 83 E1 .......3........
1744:0740 03 C1 E1 02 0B C1 89 46 FA 66 FF 76 06 FF 76 FA .......F.f.v..v.
1744:0750 FF 76 FC C4 5E F0 26 FF 77 0C C4 5E EC 26 FF 77 .v..^.&.w..^.&.w
1744:0760 0C 66 FF 76 F0 FF 76 EE 53 0E E8 22 FE 83 C4 14 .f.v..v.S.."....
1744:0770 C4 5E F0 66 26 8B 47 24 66 89 46 F0 66 83 7E F0 .^.f&.G$f.F.f.~.
1744:0780 00 74 02 EB 8A C4 5E EC 66 26 8B 47 24 66 89 46 .t....^.f&.G$f.F
1744:0790 EC 66 83 7E EC 00 74 03 E9 33 FF C4 5E F4 26 F7 .f.~..t..3..^.&.
1744:07A0 47 1A 08 00 74 03 E9 A9 00 26 83 7F 0A 00 75 03 G...t....&....u.
1744:07B0 E9 9F 00 B8 BA 28 8E C0 66 26 FF 36 86 A8 FF 76 .....(..f&.6...v
1744:07C0 F6 53 9A EB 05 CC 16 83 C4 08 09 46 FE 83 7E FE .S.........F..~.
1744:07D0 00 75 03 EB 7D 90 C4 5E F4 EB 65 90 C4 5E F0 8B .u..}..^..e..^..
1744:07E0 46 FE 26 85 47 0C 74 55 FF 76 F2 53 66 FF 76 F4 F.&.G.tU.v.Sf.v.
1744:07F0 0E E8 25 FE 83 C4 08 89 46 FC 8B 46 FC 8B D8 8B ..%.....F..F....
1744:0800 C8 83 E3 0C 33 C0 C1 EB 02 0B C3 83 E1 03 C1 E1 ....3...........
1744:0810 02 0B C1 89 46 FA 66 FF 76 06 FF 76 FA FF 76 FC ....F.f.v..v..v.
1744:0820 C4 5E F0 26 FF 77 0C C4 5E F4 26 FF 77 0C 66 FF .^.&.w..^.&.w.f.
1744:0830 76 F0 FF 76 F6 53 0E E8 55 FD 83 C4 14 C4 5E F0 v..v.S..U.....^.
1744:0840 66 26 8B 47 24 66 89 46 F0 66 83 7E F0 00 74 02 f&.G$f.F.f.~..t.
1744:0850 EB 8A C4 5E F4 66 26 83 7F 2C 00 75 03 E9 D5 00 ...^.f&..,.u....
1744:0860 66 26 8B 47 2C E9 BF 00 C4 5E EC 26 F7 47 1A 08 f&.G,....^.&.G..
1744:0870 00 74 03 E9 A9 00 26 83 7F 0A 00 75 03 E9 9F 00 .t....&....u....
1744:0880 B8 BA 28 8E C0 66 26 FF 36 86 A8 66 FF 76 F4 9A ..(..f&.6..f.v..
1744:0890 EB 05 CC 16 83 C4 08 09 46 FE 83 7E FE 00 75 03 ........F..~..u.
1744:08A0 EB 7D 90 C4 5E EC EB 65 90 C4 5E F0 8B 46 FE 26 .}..^..e..^..F.&
1744:08B0 85 47 0C 74 55 FF 76 F2 53 66 FF 76 EC 0E E8 58 .G.tU.v.Sf.v...X
1744:08C0 FD 83 C4 08 89 46 FC 8B 46 FC 8B D8 8B C8 83 E3 .....F..F.......
1744:08D0 0C 33 C0 C1 EB 02 0B C3 83 E1 03 C1 E1 02 0B C1 .3..............
1744:08E0 89 46 FA 66 FF 76 06 FF 76 FA FF 76 FC C4 5E F0 .F.f.v..v..v..^.
1744:08F0 26 FF 77 0C C4 5E EC 26 FF 77 0C 66 FF 76 F0 FF &.w..^.&.w.f.v..
1744:0900 76 EE 53 0E E8 88 FC 83 C4 14 C4 5E F0 66 26 8B v.S........^.f&.
1744:0910 47 24 66 89 46 F0 66 83 7E F0 00 74 02 EB 8A C4 G$f.F.f.~..t....
1744:0920 5E EC 66 26 8B 47 24 66 89 46 EC 66 83 7E EC 00 ^.f&.G$f.F.f.~..
1744:0930 74 03 E9 33 FF 8B 46 FE 09 46 F8 C7 46 FE 00 00 t..3..F..F..F...
1744:0940 B8 BA 28 8E C0 66 26 FF 36 86 A8 66 FF 76 F4 9A ..(..f&.6..f.v..
1744:0950 D6 06 CC 16 83 C4 08 C4 5E F4 66 26 8B 47 28 66 ........^.f&.G(f
1744:0960 89 46 F4 66 83 7E F4 00 74 03 E9 4B FD 8B 46 F8 .F.f.~..t..K..F.
1744:0970 C9 CB ..
;; fn1744_0972: 1744:0972
;; Called from:
;; 0CE0:0B08 (in fn0CE0_08FC)
fn1744_0972 proc
enter 4h,0h
push 38h
call far 0800h:1D38h
add sp,4h
mov [bp-2h],dx
mov [bp-4h],ax
cmp dword ptr [bp-4h],0h
jnz 0995h
l1744_098E:
xor dx,dx
xor ax,ax
jmp 0A6Dh
l1744_0995:
cmp word ptr [bp+12h],0h
jz 09EBh
l1744_099B:
cmp word ptr [bp+14h],0h
jz 09EBh
l1744_09A1:
mov ax,[bp+12h]
imul word ptr [bp+14h]
add ax,4h
movsx eax,ax
push eax
call far 0800h:1D38h
add sp,4h
les bx,[bp-4h]
mov es:[bx+14h],dx
mov es:[bx+12h],ax
cmp dword ptr es:[bx+12h],0h
jnz 09F7h
l1744_09CB:
push word ptr [bp-2h]
push bx
call far 0800h:1C24h
add sp,4h
push 0C8h
push ds
push 23B7h
call far 263Fh:043Fh
add sp,8h
jmp 09F7h
l1744_09EB:
les bx,[bp-4h]
mov dword ptr es:[bx+12h],0h
l1744_09F7:
les bx,[bp-4h]
xor ax,ax
mov es:[bx+2h],ax
mov es:[bx],ax
mov ax,[bp+6h]
mov es:[bx+4h],ax
mov ax,[bp+8h]
mov es:[bx+6h],ax
mov ax,[bp+0Ah]
mov es:[bx+8h],ax
mov ax,[bp+0Ch]
mov es:[bx+0Ah],ax
mov ax,[bp+0Eh]
mov es:[bx+0Ch],ax
mov dword ptr es:[bx+0Eh],0h
mov dword ptr es:[bx+16h],0h
mov ax,[bp+10h]
mov es:[bx+1Ah],ax
mov ax,[bp+12h]
mov es:[bx+1Ch],ax
mov ax,[bp+14h]
mov es:[bx+1Eh],ax
xor eax,eax
mov es:[bx+28h],eax
mov es:[bx+24h],eax
xor eax,eax
mov es:[bx+30h],eax
mov es:[bx+2Ch],eax
mov dx,[bp-2h]
mov ax,[bp-4h]
l1744_0A6D:
leave
retf
;; fn1744_0A6F: 1744:0A6F
;; Called from:
;; 0CE0:12C7 (in fn0CE0_08FC)
fn1744_0A6F proc
push bp
mov bp,sp
cmp dword ptr [bp+6h],0h
jz 0A9Dh
l1744_0A79:
les bx,[bp+6h]
cmp dword ptr es:[bx+12h],0h
jz 0A91h
l1744_0A84:
push dword ptr es:[bx+12h]
call far 0800h:1C24h
add sp,4h
l1744_0A91:
push dword ptr [bp+6h]
call far 0800h:1C24h
add sp,4h
l1744_0A9D:
pop bp
retf
1744:0A9F C8 .
1744:0AA0 04 00 00 B8 BA 28 8E C0 66 26 FF 36 80 AA 66 68 .....(..f&.6..fh
1744:0AB0 C8 00 00 00 66 68 00 00 40 01 6A 00 9A D8 03 6E ....fh..@.j....n
1744:0AC0 21 83 C4 0E C6 46 FF 00 EB 72 90 C6 46 FE 00 EB !....F...r..F...
1744:0AD0 5D 8A 46 FF B4 00 69 C0 40 01 C4 5E 06 03 D8 8A ].F...i.@..^....
1744:0AE0 46 FE B4 00 D1 E0 03 D8 26 8A 07 88 46 FD 0A C0 F.......&...F...
1744:0AF0 74 34 B8 BA 28 8E C0 66 26 FF 36 80 AA 8A 46 FD t4..(..f&.6...F.
1744:0B00 B4 00 BA FF 00 2B D0 52 66 68 02 00 02 00 8A 46 .....+.Rfh.....F
1744:0B10 FF B4 00 D1 E0 50 8A 46 FE B4 00 D1 E0 50 9A D8 .....P.F.....P..
1744:0B20 03 6E 21 83 C4 0E 8A 46 FE FE C0 88 46 FE 80 7E .n!....F....F..~
1744:0B30 FE A0 72 9D 8A 46 FF FE C0 88 46 FF 80 7E FF 64 ..r..F....F..~.d
| 30.252988 | 74 | 0.596365 |
d8030e901d0bf86347793456070359a30e39e8a2 | 809 | asm | Assembly | src/kernel/boot/gdt.asm | soumitradev/BruhOS | 852625f77dc62cbb158d25d5038e5584d35a12f5 | [
"MIT"
] | 2 | 2021-03-06T01:06:29.000Z | 2021-04-02T12:56:08.000Z | src/kernel/boot/gdt.asm | soumitradev/BruhOS | 852625f77dc62cbb158d25d5038e5584d35a12f5 | [
"MIT"
] | null | null | null | src/kernel/boot/gdt.asm | soumitradev/BruhOS | 852625f77dc62cbb158d25d5038e5584d35a12f5 | [
"MIT"
] | 1 | 2021-07-16T08:57:36.000Z | 2021-07-16T08:57:36.000Z | [bits 64]
align 0x10
gdt:
null_descriptor:
dw 0x0000
dw 0x0000
db 0x00
db 00000000b
db 00000000b
db 0x00
kernel_code_64:
dw 0x0000
dw 0x0000
db 0x00
db 10011010b
db 00100000b
db 0x00
kernel_data:
dw 0x0000
dw 0x0000
db 0x00
db 10010010b
db 00000000b
db 0x00
user_data_64:
dw 0x0000
dw 0x0000
db 0x00
db 11110010b
db 00000000b
db 0x00
gdt_end:
global gdt_ptr
gdt_ptr:
dw gdt_end - gdt - 1
dq gdt
CODE_SEG equ kernel_code_64 - gdt
DATA_SEG equ kernel_data - gdt
global init_gdt
init_gdt:
lgdt [gdt_ptr]
mov rax, rsp
push DATA_SEG
push rax
pushfq
push CODE_SEG
push flush
iretq
flush:
mov ax, DATA_SEG
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
ret
| 11.897059 | 33 | 0.639061 |
5eb99b4644609498df6e9672e371351d49611e2f | 1,323 | asm | Assembly | src/memchk.asm | codebje/cpmsuite | 4692b936e7061d39c26919fcaa86340344309705 | [
"MIT"
] | null | null | null | src/memchk.asm | codebje/cpmsuite | 4692b936e7061d39c26919fcaa86340344309705 | [
"MIT"
] | null | null | null | src/memchk.asm | codebje/cpmsuite | 4692b936e7061d39c26919fcaa86340344309705 | [
"MIT"
] | null | null | null | .z180
#target bin
#code TEXT, $100
#include "src/z180registers.z80"
.org $100
;; set up the bank area at $c000 logical
ld a, $fc
out0 (CBAR), a
;; the first bank to test should be physical $10000
;; which now maps into the BBR as $10000-$c000 = $4000
;; the bank counter will run from $4 to $73
ld d, $4
bankloop: out0 (BBR), d
ld sp, $b000 ; safely out of the ay
ld hl, $c000
ld bc, $10 ; 16 outer loops, 256 inner loops, 4096 each time
loop: ld a, (hl)
push af
xor $be ; less predictable bit pattern
ld (hl), a
ld e, a
ld a, (hl)
cp e
jr nz, fail ; if a different value is read back, it's bad
pop af
ld (hl), a ; restore what was there
djnz loop ; dec b, loop if not zero
dec c
jr nz, loop ; ... 16 times
call cleanup
jp 0
cleanup: ld bc, $f000
out0 (BBR), c
out0 (CBAR), b
ret
fail: push bc
call cleanup
pop bc
ld a, d
call bin_to_hex
ld (badmsg), de
; bc counts down from $1000, s.t. when bc=$1000 the third three digits should be 000
; and when bc=$0001 the third three digits should be FFF
ld a, $10
sub b
call bin_to_hex
ld a, e
ld (badmsg+2), a
xor a
sub c
call bin_to_hex
ld (badmsg+3), de
ld c, 9
call 5
jp 0
badmsg: .text '?????: memory test failed',13,10,'$'
#include "src/bin2hex.z80"
#end
| 17.878378 | 86 | 0.619048 |
0bf888438b448ddca399d7a6b1ad6abea708cc1f | 4,992 | asm | Assembly | 7. File Check/7. File Check/Source.asm | ShinoharaYuuyoru/Assembly-Language-Project | 968d1650f361493677cccbd2925ae8c24858b092 | [
"MIT"
] | null | null | null | 7. File Check/7. File Check/Source.asm | ShinoharaYuuyoru/Assembly-Language-Project | 968d1650f361493677cccbd2925ae8c24858b092 | [
"MIT"
] | null | null | null | 7. File Check/7. File Check/Source.asm | ShinoharaYuuyoru/Assembly-Language-Project | 968d1650f361493677cccbd2925ae8c24858b092 | [
"MIT"
] | 1 | 2019-06-20T06:48:59.000Z | 2019-06-20T06:48:59.000Z | .386
.model flat, stdcall
option casemap: none
;****************************************
include windows.inc
include shell32.inc
include user32.inc
include comctl32.inc
include masm32.inc
include kernel32.inc
include msvcrt.inc
includelib user32.lib
includelib comctl32.lib
includelib masm32.lib
includelib kernel32.lib
includelib shell32.lib
includelib msvcrt.lib
;****************************************
fopen PROTO C :DWORD, :DWORD
feof PROTO C :DWORD
fgets PROTO C :DWORD, :DWORD, :DWORD
fclose PROTO C :DWORD
printf PROTO C :DWORD, :vararg
MainPro PROTO
FileRead PROTO
GetLine PROTO
Check PROTO
CloseFile PROTO
;****************************************
.data
dfrtLineCtr DD 0
dfrtLineNum DD 0
sameFlag DD 0
lsFlag DD 0 ;Long Short Flag - 0:same length 1:File1.txt is shorter 2:File2.txt is shorter
;----------------------------------------
.data?
file1Ptr DD ?
file2Ptr DD ?
file1EOFPtr DD ?
file2EOFPtr DD ?
file1Buffer DB 1024 dup(?)
file2Buffer DB 1024 dup(?)
;----------------------------------------
.const
stringFmt DB "%s", 0
intFmt DB "%d", 0
readMode DB "rb", 0
file1Name DB "File1.txt", 0
file2Name DB "File2.txt", 0
markLine DB "Line: ", 0
insertEnt DB 0ah, 0
insertDot DB ".", 0ah, 0
unsameMsg1 DB "File1.txt and File2.txt are different. ", 0ah, "There are ", 0
unsameMsg2 DB " different line(s) between two files.", 0ah, 0
unsameMsg3 DB "The different line(s) are as mentioned above.", 0ah, 0
sameMsg DB "In the same line, File1.txt and File2.txt are the same.", 0ah, 0
file1StrMsg DB "***Warning: File1.txt has less line(s) than File2.txt.***", 0ah, 0
file1EndMsg DB "File1.txt ends at Line: ", 0
file2StrMsg DB "***Warning: File2.txt has less line(s) than File1.txt.***", 0ah, 0
file2EndMsg DB "File2.txt ends at Line: ", 0
sizeofBfr DD 1024
charaPtr DD 0
;****************************************
.code
start:
invoke MainPro
ret
MainPro PROC
invoke FileRead
.while 1
invoke GetLine
.if (file1EOFPtr != 0) && (file2EOFPtr != 0) ;EOF
.if sameFlag == 0
invoke printf, offset stringFmt, offset sameMsg
.else
invoke printf, offset stringFmt, offset unsameMsg1
invoke printf, offset intFmt, dfrtLineCtr
invoke printf, offset stringFmt, offset unsameMsg2
invoke printf, offset stringFmt, offset unsameMsg3
.endif
.break
.endif
invoke Check
.if lsFlag == 1
invoke printf, offset stringFmt, offset file1StrMsg
invoke printf, offset stringFmt, offset file1EndMsg
invoke printf, offset intFmt, dfrtLineNum
invoke printf, offset stringFmt, offset insertDot
.if sameFlag == 0
invoke printf, offset stringFmt, offset sameMsg
.else
invoke printf, offset stringFmt, offset unsameMsg1
invoke printf, offset intFmt, dfrtLineCtr
invoke printf, offset stringFmt, offset unsameMsg2
invoke printf, offset stringFmt, offset unsameMsg3
.endif
.break
.endif
.if lsFlag == 2
invoke printf, offset stringFmt, offset file2StrMsg
invoke printf, offset stringFmt, offset file2EndMsg
invoke printf, offset intFmt, dfrtLineNum
invoke printf, offset stringFmt, offset insertDot
.if sameFlag == 0
invoke printf, offset stringFmt, offset sameMsg
.else
invoke printf, offset stringFmt, offset unsameMsg1
invoke printf, offset intFmt, dfrtLineCtr
invoke printf, offset stringFmt, offset unsameMsg2
invoke printf, offset stringFmt, offset unsameMsg3
.endif
.break
.endif
.endw
invoke CloseFile
ret
MainPro ENDP
FileRead PROC
invoke fopen, offset file1Name, offset readMode
mov file1Ptr, EAX
invoke fopen, offset file2Name, offset readMode
mov file2Ptr, EAX
ret
FileRead ENDP
GetLine PROC
invoke fgets, offset file1Buffer, sizeofBfr, file1Ptr
invoke fgets, offset file2Buffer, sizeofBfr, file2Ptr
invoke feof, file1Ptr
mov file1EOFPtr, EAX
invoke feof, file2Ptr
mov file2EOFPtr, EAX
mov EAX, file1EOFPtr
mov EBX, file2EOFPtr
.if EAX != 0
.if EBX != 0 ;ALL set to EOF line.
mov lsFlag, 0
.else ;File1.txt is shorter.
mov lsFlag, 1
.endif
.else
.if EBX != 0 ;File2,txt is shorter.
mov lsFlag, 2
.else ;ALL NOT set to EOF line.
mov lsFlag, 0
.endif
.endif
inc dfrtLineNum
ret
GetLine ENDP
Check PROC
mov EAX, charaPtr
mov EBX, offset file1Buffer
mov ECX, offset file2Buffer
.while 1
push EAX
push EBX
push ECX
add EBX, EAX
add ECX, EAX
mov BL, [EBX]
mov CL, [ECX]
.if (BL == 0) && (CL == 0)
pop ECX
pop EBX
pop EAX
.break
.endif
.if BL != CL
mov sameFlag, 1
invoke printf, offset stringFmt, offset markLine
invoke printf, offset intFmt, dfrtLineNum
invoke printf, offset stringFmt, offset insertEnt
inc dfrtLineCtr
pop ECX
pop EBX
pop EAX
.break
.endif
pop ECX
pop EBX
pop EAX
inc EAX
.endw
ret
Check ENDP
CloseFile PROC
invoke fclose, file1Ptr
invoke fclose, file2Ptr
ret
CloseFile ENDP
end start | 21.517241 | 94 | 0.670272 |
cd865c8af2b97bd3556e2756d92e913c22c26339 | 402 | asm | Assembly | oeis/118/A118434.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/118/A118434.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/118/A118434.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A118434: Row sums of self-inverse triangle A118433.
; Submitted by Christian Krause
; 1,0,2,4,-4,0,-8,-16,16,0,32,64,-64,0,-128,-256,256,0,512,1024,-1024,0,-2048,-4096,4096,0,8192,16384,-16384,0,-32768,-65536,65536,0,131072,262144,-262144,0,-524288,-1048576,1048576,0,2097152,4194304,-4194304
mov $2,-1
pow $2,$0
mov $1,$2
sub $2,1
lpb $0
sub $0,1
mul $1,2
sub $1,$2
add $2,$1
lpe
mov $0,$1
| 25.125 | 208 | 0.661692 |
6e68f5ad14070a84de2feb19aadebb2e18f3338d | 3,429 | asm | Assembly | main.asm | pietroluongo/x86-calc | 2dd394618507c8966dd683ee7cc2b47771e46cff | [
"MIT"
] | null | null | null | main.asm | pietroluongo/x86-calc | 2dd394618507c8966dd683ee7cc2b47771e46cff | [
"MIT"
] | null | null | null | main.asm | pietroluongo/x86-calc | 2dd394618507c8966dd683ee7cc2b47771e46cff | [
"MIT"
] | null | null | null | extern _soma, _mult, _div, _sub
extern _printString, _readString, _readOperator
extern _ascii2dec, _bin2ascii
extern _printNewline
extern _printNewline, _printFirstInputRequest, _printSecondInputRequest, _printOperatorRequest, _printResultMsg, _printErrorMsg
SEGMENT CODE
..start:
; Stack setup
MOV AX, DATA
MOV DS, AX
MOV AX, STACK
MOV SS, AX
MOV SP, STACKTOP
; Print input
; MOV DX, MSG
; PUSH DX
; CALL _printString
initialCalculatorFlow:
; Read operator
CALL _printOperatorRequest
MOV AX, SELECTED_OP
PUSH AX
CALL _readOperator
MOV AL, [SELECTED_OP]
CMP AL, 'q'
JNE shouldAskForNumbers
JMP exit
shouldAskForNumbers:
CALL _printNewline
; Read first number input
CALL _printFirstInputRequest
MOV AX, USR_INPUT_MAX_SIZE
PUSH AX
CALL _readString
CALL _printNewline
; Convert first number input
MOV AX, USR_INPUT_BUFFER
PUSH AX
MOV AL, [USR_INPUT_ACTUAL_SIZE]
MOV AH, 0
PUSH AX
MOV AX, FST_OP
PUSH AX
CALL _ascii2dec
; Read second number input
CALL _printSecondInputRequest
MOV AX, USR_INPUT_MAX_SIZE
PUSH AX
CALL _readString
CALL _printNewline
; Convert second number input
MOV AX, USR_INPUT_BUFFER
PUSH AX
MOV AL, [USR_INPUT_ACTUAL_SIZE]
MOV AH, 0
PUSH AX
MOV AX, SND_OP
PUSH AX
CALL _ascii2dec
; Move results to BX
MOV BL, [SELECTED_OP]
; Load data for actual functions on the stack
MOV AX, [FST_OP]
PUSH AX
MOV AX, [SND_OP]
PUSH AX
MOV AX, RESULT
PUSH AX
CMP BL, '+'
JE handleAdd
CMP BL, '-'
JE handleSubtract
CMP BL, '*'
JE handleMultiply
CMP BL, '/'
JE handleDivide
JMP handleInputError
handleAdd:
CALL _soma
JMP calculatorFlowEnd
handleSubtract:
CALL _sub
JMP calculatorFlowEnd
handleMultiply:
CALL _mult
JMP calculatorFlowEnd
handleDivide:
CALL _div
JMP calculatorFlowEnd
calculatorFlowEnd:
CALL _printResultMsg
INT 3
NOP
NOP
NOP
NOP
NOP
MOV AX, [RESULT]
PUSH AX
MOV AX, RESULT_ASCII
PUSH AX
CALL _bin2ascii
MOV DX, RESULT_ASCII
MOV AH, 9
INT 21h
; MOV AX, [FST_OP]
; PUSH AX
; MOV AX, [SND_OP]
; PUSH AX
; MOV AX, [SELECTED_OP]
; PUSH AX
; MOV AX, RESULT_ASCII
; PUSH AX
CALL _printNewline
JMP initialCalculatorFlow
handleInputError:
; TODO: Print error message
CALL _printErrorMsg
JMP initialCalculatorFlow
exit:
; Fim do programa
MOV AH, 4CH
INT 21H
%include "data.asm"
SEGMENT STACK STACK
RESB 256
STACKTOP: | 23.168919 | 128 | 0.516477 |
65caedd4af9316badbc5d4157b5b73d2002bd7ae | 417 | asm | Assembly | oeis/214/A214441.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/214/A214441.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/214/A214441.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A214441: Catalan numbers at square positions: a(n) = A000108(n^2).
; Submitted by Christian Krause
; 1,1,14,4862,35357670,4861946401452,11959798385860453492,509552245179617138054608572,368479169875816659479009042713546950,4462290049988320482463241297506133183499654740,896519947090131496687170070074100632420837521538745909320
pow $0,2
seq $0,108 ; Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!).
| 59.571429 | 227 | 0.805755 |
808eac953267b759fe21c728b75733ad3c450ed9 | 1,743 | asm | Assembly | Games/CMonster (Breakout)/Source/loaderce.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2019-03-31T11:49:12.000Z | 2019-03-31T11:49:12.000Z | Games/CMonster (Breakout)/Source/loaderce.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | null | null | null | Games/CMonster (Breakout)/Source/loaderce.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2020-03-09T13:21:19.000Z | 2020-03-09T13:21:19.000Z | ;############## Calcuzap by Patrick Davidson - TI-84 Plus CE unpacker
; Memory map on TI-84 CE ($D031F6 through $D13FD7 is available)
;
; $D031F6 to $D06FFF for unpacker, stack at very end (start = pixelShadow)
; $D07000 to $D0FFFF for main game
; $D10000 to $D13FD7 for variables (not fully used)
#include ti84pce.inc
load_address =$D07000
.org userMem-2
.db tExtTok,tAsm84CeCmp
call _RunIndicOff
ld hl,unpacker_source
ld de,unpacker_start
ld bc,unpacker_end-unpacker_start
ldir
ld a,$d0
ld mb,a ; Z80 mode will be on $D00000 page
di
ld.sis sp,$7000 ; set Z80 mode stack pointer
jp.sis unpacker_start-$D00000 ; run unpacker in Z80 mode
unpacker_done:
call load_address
ei
call _DrawStatusBar
set 0,(iy+graphFlags)
call _ClrScrnFull
jp _Clrtxtshd
unpacker_source:
.org pixelShadow
.ASSUME ADL=0
unpacker_start:
ld hl,compressed_data-$D00000
ld de,load_address-$D00000
call Decompress-$D00000
jp.lil unpacker_done ; go back to ADL mode for the rest
#include "..\ti86\lite86\lite86.asm"
compressed_data:
#import compressedce.bin
unpacker_end:
#if ($ > $d06f00)
.echo "CE loader overflow of available memory by ",eval($ - $d06f00)
.error "!!!!!!!!!!!!!!!!!!!! DISASTER !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
#else
.echo "Bytes left over for CE loader: ",eval($d06f00 - $)
#endif | 29.542373 | 78 | 0.529547 |
33c9ac65f3cf2bd950d478c42d063605893c693d | 126 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erf_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erf_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erf_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _erf_fastcall
EXTERN cm48_sdcciy_erf_fastcall
defc _erf_fastcall = cm48_sdcciy_erf_fastcall
| 14 | 45 | 0.880952 |
4fef42569e6a1c023ce9db482814027e77f79b05 | 697 | asm | Assembly | oeis/077/A077445.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077445.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077445.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077445: Numbers k such that (k^2 - 8)/2 is a square.
; Submitted by Christian Krause
; 4,20,116,676,3940,22964,133844,780100,4546756,26500436,154455860,900234724,5246952484,30581480180,178241928596,1038870091396,6054978619780,35291001627284,205691031143924,1198855185236260,6987440080273636,40725785296405556,237367271698159700,1383477844892552644,8063499797657156164,46997520941050384340,273921625848645149876,1596532234150820514916,9305271779056277939620,54235098440186847122804,316105318862064804797204,1842396814732201981660420,10738275569531147085165316,62587256602454680529331476
mov $1,1
mov $2,2
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
mov $0,$2
mul $0,2
| 43.5625 | 500 | 0.830703 |
7eb015e4834d12a386a3dedc103de70171bbed8a | 443 | asm | Assembly | iod/con2/sprite/f12.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/sprite/f12.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/sprite/f12.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Sprite f12
*
* Mode 4
* +|-----------+
* -ggg g ggg -
* |g gg g g |
* |g g g |
* |gg g g |
* |g g g |
* |g g g |
* |g g gggg |
* +|-----------+
*
section sprite
xdef sp_f12
xref sp_zero
sp_f12
dc.w $0100,$0000
dc.w 10,7,0,0
dc.l sc4_f12-*
dc.l sp_zero-*
dc.l 0
sc4_f12
dc.w $E900,$8000
dc.w $9A00,$4000
dc.w $8800,$4000
dc.w $C800,$8000
dc.w $8900,$0000
dc.w $8A00,$0000
dc.w $8B00,$C000
*
end
| 13.424242 | 17 | 0.485327 |
8a09be8a107c07c6eea28ae0e63ef545eba6fe68 | 4,866 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_69.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_69.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_69.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c084, %r10
nop
nop
nop
nop
nop
cmp $3907, %rbx
mov $0x6162636465666768, %rbp
movq %rbp, (%r10)
nop
nop
nop
cmp %r14, %r14
lea addresses_D_ht+0x50f4, %rsi
lea addresses_WT_ht+0x5ef4, %rdi
nop
nop
sub $26842, %r10
mov $75, %rcx
rep movsl
nop
xor %r14, %r14
lea addresses_D_ht+0xa4e4, %rbp
nop
nop
xor $47204, %r10
vmovups (%rbp), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %rbx
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x19284, %r10
nop
xor %rcx, %rcx
movw $0x6162, (%r10)
nop
cmp %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r9
push %rbp
push %rdi
push %rsi
// Faulty Load
lea addresses_WC+0x12684, %rdi
nop
nop
nop
nop
nop
and $31067, %rbp
mov (%rdi), %r9w
lea oracles, %rsi
and $0xff, %r9
shlq $12, %r9
mov (%rsi,%r9,1), %r9
pop %rsi
pop %rdi
pop %rbp
pop %r9
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'38': 21829}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
| 49.653061 | 2,999 | 0.660707 |
9b603fa72713a5698ebe252ab6058768cf1cccab | 7,407 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_989.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_989.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_989.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x12ea2, %rsi
lea addresses_WT_ht+0x822b, %rdi
nop
nop
nop
inc %r8
mov $64, %rcx
rep movsl
nop
xor %r14, %r14
lea addresses_UC_ht+0x11487, %rsi
lea addresses_UC_ht+0x1d02b, %rdi
clflush (%rdi)
sub $53592, %r9
mov $95, %rcx
rep movsl
nop
nop
cmp $3480, %r9
lea addresses_WC_ht+0x116db, %rsi
lea addresses_D_ht+0x1042b, %rdi
xor %r12, %r12
mov $45, %rcx
rep movsb
nop
nop
nop
nop
add $40862, %r12
lea addresses_normal_ht+0x1b72b, %rsi
lea addresses_normal_ht+0x1e82b, %rdi
nop
sub %r12, %r12
mov $11, %rcx
rep movsb
xor %r8, %r8
lea addresses_UC_ht+0x513b, %rdi
nop
nop
nop
cmp $55156, %r9
movw $0x6162, (%rdi)
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_A_ht+0x982b, %r12
nop
nop
nop
nop
nop
cmp %rsi, %rsi
mov (%r12), %edi
and $13527, %r8
lea addresses_D_ht+0x1e53b, %r12
nop
nop
nop
nop
dec %r14
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_D_ht+0x19191, %r12
nop
inc %rcx
movw $0x6162, (%r12)
nop
nop
nop
nop
cmp $44699, %r12
lea addresses_WT_ht+0xcf2b, %rdi
nop
sub %r9, %r9
movl $0x61626364, (%rdi)
nop
nop
nop
nop
add %r8, %r8
lea addresses_normal_ht+0x6ce5, %rsi
lea addresses_WT_ht+0x1982b, %rdi
clflush (%rsi)
dec %r10
mov $106, %rcx
rep movsw
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_normal_ht+0x1847, %rsi
lea addresses_A_ht+0x2f6b, %rdi
nop
nop
nop
sub $21842, %r9
mov $31, %rcx
rep movsq
nop
nop
add %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rax
push %rcx
push %rdx
push %rsi
// Store
lea addresses_D+0x1d22b, %rdx
nop
nop
nop
nop
nop
and $63387, %r11
mov $0x5152535455565758, %rcx
movq %rcx, %xmm2
vmovntdq %ymm2, (%rdx)
nop
nop
xor %r11, %r11
// Store
lea addresses_normal+0x13beb, %r8
nop
nop
nop
nop
xor %r9, %r9
movl $0x51525354, (%r8)
nop
nop
nop
nop
add %rax, %rax
// Faulty Load
lea addresses_normal+0x1582b, %rax
nop
nop
nop
nop
and $29724, %rdx
vmovups (%rax), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r8
lea oracles, %r11
and $0xff, %r8
shlq $12, %r8
mov (%r11,%r8,1), %r8
pop %rsi
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 34.451163 | 2,999 | 0.660051 |
4ccb15c7ca67030d2284052eaa467a532559d500 | 517 | asm | Assembly | oeis/225/A225573.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/225/A225573.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/225/A225573.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A225573: Number of trees over all forests of labeled rooted trees in which some (possibly all or none) of the trees have been specially designated.
; Submitted by Christian Krause
; 0,2,12,90,864,10290,147456,2480058,48000000,1052307234,25798901760,699896958618,20826335158272,674680957031250,23643898043695104,891412022961534330,35982083287879778304,1548474957047229426498,70778880000000000000000
mov $2,$0
mov $3,$0
mov $4,1
lpb $3
sub $3,1
max $3,1
add $4,2
mul $2,$4
mov $4,$0
lpe
mov $0,$2
mul $0,2
| 30.411765 | 217 | 0.77176 |
429475499bb340c9aad72dc6de11b4123789b1b5 | 726 | asm | Assembly | programs/oeis/156/A156749.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/156/A156749.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/156/A156749.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A156749: For all numbers k(n) congruent to -1 or +1 (mod 4) starting with k(n) = {3,5,7,9,11,...}, a(k(n)) is incremented by the congruence (mod 4) if k(n) is prime and by 0 if k(n) is composite.
; -1,0,-1,-1,-2,-1,-1,0,-1,-1,-2,-2,-2,-1,-2,-2,-2,-1,-1,0,-1,-1,-2,-2,-2,-1,-1,-1,-2,-1,-1,-1,-2,-2,-3,-2,-2,-2,-3,-3,-4,-4,-4,-3,-3,-3,-3,-2,-2,-1,-2,-2,-3,-2,-2,-1,-1,-1,-1,-1,-1,-1,-2,-2,-3,-3,-3,-2,-3,-3,-3,-3,-3,-2,-3,-3,-3,-2,-2,-2,-3,-3,-4,-4,-4,-3,-3,-3,-4,-3,-3,-3,-3,-3,-4,-3,-3,-2,-3,-3
mov $1,$0
mov $0,0
mul $1,2
add $1,2
lpb $1
mov $2,$1
sub $1,1
div $1,2
mul $1,2
seq $2,151763 ; If n is a prime == 1 mod 4 then a(n) = 1, if n is a prime == 3 mod 4 then a(n) = -1, otherwise a(n) = 0.
add $0,$2
lpe
| 45.375 | 298 | 0.479339 |
f018434506220ce3586bfcefaaa8841c706d0ffe | 560 | asm | Assembly | Working Disassembly/Levels/DEZ/Misc Object Data/Map - Retracting Spring.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | 5 | 2021-07-09T08:17:56.000Z | 2022-02-27T19:57:47.000Z | Working Disassembly/Levels/DEZ/Misc Object Data/Map - Retracting Spring.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/Levels/DEZ/Misc Object Data/Map - Retracting Spring.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | dc.w word_481BC-Map_DEZRetractingSpring
dc.w word_481D0-Map_DEZRetractingSpring
dc.w word_481DE-Map_DEZRetractingSpring
word_481BC: dc.w 3 ; DATA XREF: ROM:000481B6o
dc.b 0, $D, 0, 0, $FF, $F0
dc.b $F0, $C, $E1, $72, $FF, $F0
dc.b $F8, 4, $E1, $7A, $FF, $F8
word_481D0: dc.w 2 ; DATA XREF: ROM:000481B6o
dc.b 0, $D, 0, 0, $FF, $F0
dc.b $F8, $C, $E1, $72, $FF, $F0
word_481DE: dc.w 3 ; DATA XREF: ROM:000481B6o
dc.b 0, $D, 0, 0, $FF, $F0
dc.b $E0, $C, $E1, $72, $FF, $F0
dc.b $E8, 6, $E1, $7C, $FF, $F8
| 37.333333 | 48 | 0.558929 |
7d5fcce9130af0a33cc6c18a0d1ab6c12f9b4085 | 712 | asm | Assembly | data/pokemon/base_stats/cyndaquil.asm | Karkino/KarkCrystal16 | 945dde0354016f9357e9d3798312cc6efa52ff7a | [
"blessing"
] | null | null | null | data/pokemon/base_stats/cyndaquil.asm | Karkino/KarkCrystal16 | 945dde0354016f9357e9d3798312cc6efa52ff7a | [
"blessing"
] | null | null | null | data/pokemon/base_stats/cyndaquil.asm | Karkino/KarkCrystal16 | 945dde0354016f9357e9d3798312cc6efa52ff7a | [
"blessing"
] | null | null | null | db 0 ; species ID placeholder
db 42, 62, 48, 75, 34, 54
; hp atk def spd sat sdf
db FIRE, FIRE ; type
db 45 ; catch rate
db 65 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/cyndaquil/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_MEDIUM_SLOW ; growth rate
dn EGG_GROUND, EGG_GROUND ; egg groups
; tm/hm learnset
tmhm DYNAMICPUNCH, HEADBUTT, CURSE, ROAR, TOXIC, ROCK_SMASH, SUNNY_DAY, SNORE, PROTECT, IRON_HEAD, RETURN, DIG, DOUBLE_TEAM, ICE_PUNCH, SWAGGER, SLEEP_TALK, FIRE_BLAST, SWIFT, PURSUIT, REST, ATTRACT, FIRE_PUNCH, THRASH, CUT, STRENGTH, FLAMETHROWER
; end
| 32.363636 | 248 | 0.710674 |
b68e1de04f9353d49f4aa4ebdfb84d43f43b78ca | 163 | asm | Assembly | libsrc/target/rx78/graphics/pointxy.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/rx78/graphics/pointxy.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/rx78/graphics/pointxy.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; Point pixel at (x,y) coordinate.
SECTION code_clib
PUBLIC pointxy
defc NEEDpoint= 1
.pointxy
INCLUDE "pixel.inc"
| 11.642857 | 38 | 0.546012 |
6b5305f42e10225cb59c7494c7cb0992b3e53778 | 16 | asm | Assembly | src/public/src/FM7/util/fm7code/org1400.asm | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | 1 | 2019-08-10T00:24:09.000Z | 2019-08-10T00:24:09.000Z | src/public/src/FM7/util/fm7code/org1400.asm | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | null | null | null | src/public/src/FM7/util/fm7code/org1400.asm | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | 2 | 2019-05-01T03:11:10.000Z | 2019-05-01T03:30:35.000Z | ORG $1400
| 8 | 15 | 0.4375 |
f27e7e8fc4af6d335828479fd6c2dab511af877c | 312 | asm | Assembly | programs/oeis/158/A158411.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158411.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158411.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158411: Maximum number of colors required to paint a map having n regions.
; 0,1,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
mov $1,$0
trn $0,4
sub $1,$0
| 44.571429 | 203 | 0.567308 |
88150a70699f336a223939e9bee24c57b84ca105 | 383 | asm | Assembly | oeis/063/A063203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/063/A063203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/063/A063203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A063203: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 23 ).
; Submitted by Jamie Morken(s2)
; 2,5,9,13,17,19,25,27,31,35,39,41,47,49,53,57,61,63,69,71,75,79,83,85,91,93,97,101,105,107,113,115,119,123,127,129,135,137,141,145,149,151,157,159,163,167,171,173,179,181
mov $1,$0
mul $0,3
div $1,3
mul $1,2
mov $2,$0
trn $0,3
mod $0,2
add $0,$1
add $0,$2
add $0,2
| 25.533333 | 171 | 0.673629 |
650d178506ae955a07d2ded81cf688a12af16be7 | 447 | asm | Assembly | oeis/122/A122178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/122/A122178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/122/A122178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A122178: Triangle, read by rows, where T(n,k) = C( n*(n+1)/2 + n-k - 1, n-k), for n>=k>=0.
; Submitted by Christian Krause
; 1,1,1,6,3,1,56,21,6,1,715,220,55,10,1,11628,3060,680,120,15,1,230230,53130,10626,1771,231,21,1,5379616,1107568,201376,31465,4060,406,28,1,145008513,26978328,4496388,658008,82251,8436,666,36,1,4431613550
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
mov $0,$1
bin $0,2
add $0,$1
sub $0,1
add $0,$2
bin $0,$2
| 26.294118 | 204 | 0.646532 |
52a9b69502be8e3c843dd9f8101e865ad757ab7c | 322 | asm | Assembly | programs/oeis/004/A004968.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/004/A004968.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/004/A004968.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A004968: a(n) = ceiling(n*phi^13), where phi is the golden ratio, A001622.
; 0,522,1043,1564,2085,2606,3127,3648,4169,4690,5211,5732,6253,6774,7295,7816,8337,8858,9379,9900,10421,10942,11463,11984,12505,13026,13547,14068,14589,15110,15631,16152
mov $1,$0
trn $1,1
mov $2,$0
sub $0,$1
lpb $2
add $0,521
sub $2,1
lpe
| 26.833333 | 169 | 0.708075 |
07caa58e3c140d656961dd7c32ad99ca592db0da | 3,466 | asm | Assembly | src/core/bytecode/wasm/tmp.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null | src/core/bytecode/wasm/tmp.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | 4 | 2019-02-27T05:41:26.000Z | 2020-07-16T00:24:24.000Z | src/core/bytecode/wasm/tmp.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null |
section .text
default rel
extern print
global _0x00
global _0x00_unreachable
global _0x01_nop
global _0x02_block
global _0x03_loop
global _0x04_if
global _0x05_else
global _0x0b_end
global _0x0c_br
global _0x0d_br_if
global _0x0e_br_table
global _0x0f_return
global _0x10_call
global _0x11_indirect
global _0x1a_drop
global _0x1b_select
;; global _0x20_get_local
;; global _0x21_set_local
global _0x22_tee_local
global _0x23_get_global
global _0x24_set_global
global _0x28_i32_load
global _0x29_i64_load
global _0x2a_f32_load
global _0x2b_f64_load
global _0x2c_i32_load8_s
global _0x2d_i32_load8_u
global _0x2e_i32_load16_s
global _0x2f_i32_load16_u
global _0x30_i64_load8_s
global _0x31_i64_load8_u
global _0x32_i64_load16_s
global _0x33_i64_load16_u
global _0x34_i64_load32_s
global _0x35_i64_load32_u
global _0x36_i32_store
global _0x37_i64_store
global _0x38_f32_store
global _0x39_f64_store
global _0x3a_i32_store8
global _0x3b_i32_store16
global _0x3c_i64_store8
global _0x3d_i64_store16
global _0x3e_i64_store32
global _0x3f_current_memory
global _0x40_grow_memory
;; Constant
;; global _0x41_i32_const
;; global _0x42_i64_const
;; global _0x43_f32_const
;; global _0x44_f64_const
global _0x45
global _0x46
global _0x47
global _0x48
global _0x49
global _0x4a
global _0x4b
global _0x4c
global _0x4d
global _0x4e
global _0x4f
global _0x50
global _0x51
global _0x52
global _0x53
global _0x54
global _0x55
global _0x56
global _0x57
global _0x58
global _0x59
global _0x5a
global _0x5b
global _0x5c
global _0x5d
global _0x5e
global _0x5f
global _0x60
global _0x61
global _0x62
global _0x63
global _0x64
global _0x65
global _0x66
global _0x67_clz
global _0x68_ctz
global _0x69_popcnt
;; global _0x6a_add
global _0x6b_sub
_0x00:
ret
_0x00_unreachable:
ret
_0x01_nop:
ret
_0x02_block:
ret
_0x03_loop:
ret
_0x04_if:
ret
_0x05_else:
ret
_0x0b_end:
ret
_0x0c_br:
ret
_0x0d_br_if:
ret
_0x0e_br_table:
ret
_0x0f_return:
ret
_0x10_call:
ret
_0x11_indirect:
ret
_0x1a_drop:
ret
_0x1b_select:
ret
_0x20_get_local:
ret
_0x21_set_local:
ret
_0x22_tee_local:
ret
_0x23_get_global:
ret
_0x24_set_global:
ret
_0x28_i32_load:
ret
_0x29_i64_load:
ret
_0x2a_f32_load:
ret
_0x2b_f64_load:
ret
_0x2c_i32_load8_s:
ret
_0x2d_i32_load8_u:
ret
_0x2e_i32_load16_s:
ret
_0x2f_i32_load16_u:
ret
_0x30_i64_load8_s:
ret
_0x31_i64_load8_u:
ret
_0x32_i64_load16_s:
ret
_0x33_i64_load16_u:
ret
_0x34_i64_load32_s:
ret
_0x35_i64_load32_u:
ret
_0x36_i32_store:
ret
_0x37_i64_store:
ret
_0x38_f32_store:
ret
_0x39_f64_store:
ret
_0x3a_i32_store8:
ret
_0x3b_i32_store16:
ret
_0x3c_i64_store8:
ret
_0x3d_i64_store16:
ret
_0x3e_i64_store32:
ret
_0x3f_current_memory:
ret
_0x40_grow_memory:
ret
;; Constant
_0x41_i32_const:
mov r8,0x41
call print
ret
_0x42_i64_const:
ret
_0x43_f32_const:
ret
_0x44_f64_const:
ret
_0x45:
ret
_0x46:
ret
_0x47:
ret
_0x48:
ret
_0x49:
ret
_0x4a:
ret
_0x4b:
ret
_0x4c:
ret
_0x4d:
ret
_0x4e:
ret
_0x4f:
ret
_0x50:
ret
_0x51:
ret
_0x52:
ret
_0x53:
ret
_0x54:
ret
_0x55:
ret
_0x56:
ret
_0x57:
ret
_0x58:
ret
_0x59:
ret
_0x5a:
ret
_0x5b:
ret
_0x5c:
ret
_0x5d:
ret
_0x5e:
ret
_0x5f:
ret
_0x60:
ret
_0x61:
ret
_0x62:
ret
_0x63:
ret
_0x64:
ret
_0x65:
ret
_0x66:
_0x67_clz:
ret
_0x68_ctz:
ret
_0x69_popcnt:
ret
_0x6a_add:
ret
_0x6b_sub:
ret
| 12.076655 | 28 | 0.78996 |
f32aefaedaeff4dbb4d015627e1b311ca841ebbd | 194 | asm | Assembly | annum_of_pwn/001/shellcode.asm | 0xmanjoos/hackerman_hackertime | e447f5dc3ffc1041905190756dad221c7f42c92f | [
"MIT"
] | 9 | 2021-05-05T04:07:13.000Z | 2022-02-16T17:34:37.000Z | annum_of_pwn/001/shellcode.asm | 0xmanjoos/hackerman_hackertime | e447f5dc3ffc1041905190756dad221c7f42c92f | [
"MIT"
] | null | null | null | annum_of_pwn/001/shellcode.asm | 0xmanjoos/hackerman_hackertime | e447f5dc3ffc1041905190756dad221c7f42c92f | [
"MIT"
] | 2 | 2021-03-18T22:51:12.000Z | 2021-12-03T19:26:02.000Z | section .text
global _start
_start:
xor rdx, rdx
mov rbx, '//bin/sh'
shr rbx, 8
push rbx
mov rdi, rsp
push rax
push rdi
mov rsi, rsp
mov al, 0x3b
syscall
| 13.857143 | 23 | 0.572165 |
1b08d22e5fd9221c83e4c0d1390b69b9120800bb | 736 | asm | Assembly | oeis/097/A097741.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097741.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097741.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097741: Pell equation solutions (10*a(n))^2 - 101*b(n)^2 = -1 with b(n) = A097742(n), n >= 0.
; Submitted by Jamie Morken(w1)
; 1,403,162005,65125607,26180332009,10524428342011,4230794013156413,1700768668860536015,683704774087922321617,274847618414675912754019,110488058897925629004794021,44415924829347688184014442423,17855091293338872724344801060025,7177702283997397487498426011687627,2885418463075660451101642911897366029,1159931044454131503945372952156729456031,466289394452097788925588825124093343958433,187447176638698857016582762326933367541834035,75353298719362488422877344866602089658473323637
mul $0,2
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
mul $2,10
add $3,$2
lpe
mov $0,$3
div $0,10
| 40.888889 | 476 | 0.815217 |
35695e314839f9c8abbace708507122d367dc46b | 27,922 | asm | Assembly | documents/manuals/intel/80386/ops/LOADALL/emuload.asm | jriwanek-forks/pcjs | 868047405c383e2b05848e771e89e2bd4558ee96 | [
"MIT"
] | 711 | 2015-01-12T21:43:49.000Z | 2022-03-31T15:04:16.000Z | documents/manuals/intel/80386/ops/LOADALL/emuload.asm | jriwanek-forks/pcjs | 868047405c383e2b05848e771e89e2bd4558ee96 | [
"MIT"
] | 98 | 2015-01-06T11:52:01.000Z | 2022-03-28T18:14:28.000Z | documents/manuals/intel/80386/ops/LOADALL/emuload.asm | jriwanek-forks/pcjs | 868047405c383e2b05848e771e89e2bd4558ee96 | [
"MIT"
] | 152 | 2015-02-01T20:23:27.000Z | 2022-03-30T21:58:48.000Z | Page 60,132
;-----------------------------------------------------------------------------
; BEGIN LISTING 3
;-----------------------------------------------------------------------------
;
; EMULOAD.ASM
;
; Copyright (c) 1991, 1995-Present Robert Collins
;
; You have my permission to copy and distribute this software for
; non-commercial purposes. Any commercial use of this software or
; source code is allowed, so long as the appropriate copyright
; attributions (to me) are intact, *AND* my email address is properly
; displayed.
;
; Basically, give me credit, where credit is due, and show my email
; address.
;
;-----------------------------------------------------------------------------
;
; Robert R. Collins email: rcollins@x86.org
;
;-----------------------------------------------------------------------------
;
; This utility uses '386 LOADALL to emulate '286 LOADALL.
; All 16-bit registers are zero-extended to 32-bit
; registers. All 24-bit physical addresses are zero-
; extended to 32-bit registers. '386-specific registers
; not used in '286 LOADALL are either set to the current
; values (Debug registers), or zeroed (segment registers).
;
;---------------------------------------------------------------
;
; This program assumes that you have run the '386 LOADALL
; test prior to installing this TSR. Obviously if LOADALL
; has been removed from the '386 mask, then this program
; will never work. Likewise, it is easier for me to
; document the need to run the LOADALL test program, than
; to incorporate it into this code.
;
;---------------------------------------------------------------
;
; EMULOAD returns ERROR codes to DOS that can be
; intecepted by the batch file command 'IF ERRORLEVEL'.
; The following ERRORLEVEL codes are generated by this
; program:
; 0 = EMULOAD driver now installed in memory
; 1 = Attempted removal of the EMULOAD driver from
; memory failed because EMULOAD was not in already
; in memory.
; 2 = The EMULOAD driver was already in memory when an
; attempt was made to install it again.
; 3 = Bogus command line argument(s).
; 4 = Help requested.
; 5 = The EMULOAD driver was sucessfully removed from
; memory.
; 6 = Can't install the EMULOAD driver because this
; computer isn't an 80386.
;
;---------------------------------------------------------------
;
; Compilation instructions:
; MASM EMULOAD; (MASM 5.1)
; LINK EMULOAD;
; EXE2BIN EMULOAD EMULOAD.COM
; DEL EMULOAD.EXE
;
; The resultant EMULOAD.COM file is 1473 bytes, while the
; TSR portion is 1072 bytes.
;
;---------------------------------------------------------------
; Compiler directives
;---------------------------------------------------------------
Title EMULOAD
.radix 16
.8086
;---------------------------------------------------------------
; Interrupt vector segment
;---------------------------------------------------------------
ABS0 segment at 0
org 6*4
INT_6 dd ?
org 800h
Loadall_286 dd ?
ABS0 ends
;---------------------------------------------------------------
; Structure definitions
;---------------------------------------------------------------
Desc_cache2 STRUC ; 80286 Descriptor cache
A15_A00 dw ? ; register layout.
A23_A16 db ?
_Type2 db ?
_Limit2 dw ?
Desc_cache2 ENDS
Desc_cache3 STRUC ; 80386 Descriptor cache
_Access db 0 ; register layout
_Type db ?
_CS32 db 0
db 0
_Addr dd ?
_Limit dd ?
Desc_cache3 ENDS
Loadall_struc2 STRUC ; 80286 LOADALL table
dw 3 dup (?) ; RESERVED
_286Msw dw ? ; MSW
dw 7 dup (?) ; RESERVED
_286Tr dw ? ; TR
_Flags dw ? ; FLAGS
_286Ip dw ? ; IP
_286Ldt dw ? ; LDT
_286Ds dw ? ; DS
_286Ss dw ? ; SS
_286Cs dw ? ; CS
_286Es dw ? ; ES
_286Di dw ? ; DI
_286Si dw ? ; SI
_286Bp dw ? ; BP
_286Sp dw ? ; SP
_286Bx dw ? ; BX
_286Dx dw ? ; DX
_286Cx dw ? ; CX
_286Ax dw ? ; AX
ES_Desc286 dw 3 dup (?) ; ES Desc. Cache
CS_Desc286 dw 3 dup (?) ; CS Desc. Cache
SS_Desc286 dw 3 dup (?) ; SS Desc. Cache
DS_Desc286 dw 3 dup (?) ; DS Desc. Cache
Gdt_Desc286 dw 3 dup (?) ; GDTR
Ldt_Desc286 dw 3 dup (?) ; LDTR
Idt_Desc286 dw 3 dup (?) ; IDTR
TSS_Desc286 dw 3 dup (?) ; TSSR
Loadall_Struc2 ENDS
Loadall_struc3 STRUC
_Cr0 dd ? ; EAX
_Eflags dd ? ; EFLAGS
_Eip dd ? ; EIP
_Edi dd ? ; EDI
_Esi dd ? ; ESI
_Ebp dd ? ; EBP
_Esp dd ? ; ESP
_Ebx dd ? ; EBX
_Edx dd ? ; EDX
_Ecx dd ? ; ECX
_Eax dd ? ; EAX
_Dr6 dd ? ; DR6
_Dr7 dd ? ; DR7
_Tr dd ? ; TR
_Ldt dd ? ; LDT
_Gs dd ? ; GS
_Fs dd ? ; FS
_Ds dd ? ; DS
_Ss dd ? ; SS
_Cs dd ? ; CS
_Es dd ? ; ES
TSS_Desc dd 3 dup (?) ; TSSR
IDT_Desc dd 3 dup (?) ; IDTR
Gdt_Desc dd 3 dup (?) ; GDTR
Ldt_Desc dd 3 dup (?) ; LDTR
GS_Desc dd 3 dup (?) ; GS Desc. Cache
FS_Desc dd 3 dup (?) ; FS Desc. Cache
DS_Desc dd 3 dup (?) ; DS Desc. Cache
SS_Desc dd 3 dup (?) ; SS Desc. Cache
CS_Desc dd 3 dup (?) ; CS Desc. Cache
ES_Desc dd 3 dup (?) ; ES Desc. Cache
dd 0ah dup (?) ; RESERVED
Loadall_Struc3 ENDS
INT_VEC STRUC
int_offset dw ?
int_segment dw ?
INT_VEC ENDS
;---------------------------------------------------------------
; Equate definitions
;---------------------------------------------------------------
LOADALL286 equ 050fh
CRLF equ <0dh,0ah>
CRLF$ equ <0dh,0ah,'$'>
INT6 equ [bp-4]
;---------------------------------------------------------------
; Macro definitions
;---------------------------------------------------------------
LOADALL_386 MACRO
db 0fh,07h
ENDM
PRINT_STRING MACRO MSG_NAME
mov ah,9
mov dx,offset MSG_NAME
int 21h
ENDM
_TEXT SEGMENT PARA PUBLIC 'CODE'
Assume CS:_TEXT, DS:_TEXT, ES:_TEXT, SS:_TEXT
Org 100h
.386p
;---------------------------------------------------------------
Emulate_286_Loadall Proc Far
;---------------------------------------------------------------
jmp EMULOAD ; goto beginning instruction
Align 4
;---------------------------------------------------------------
; Local Data
;---------------------------------------------------------------
Loadall_tbl Loadall_Struc3 <>
emuload_msg db "80286 LOADALL EMULATOR utility.",CRLF
db "Version 1.0 Only for 80386 computers."
db CRLF
db "Copyright (c) 1991 Robert Collins."
db CRLF$
emu_msg_len equ $-emuload_msg
align 4
;---------------------------------------------------------------
; TSR Code begins here as an INT06 replacement.
;---------------------------------------------------------------
Int06: push bp
mov bp,sp
push si
push ds
lds si,[bp][2] ; get CS:IP of bogus
; opcode
cmp word ptr [si],LOADALL286; was it LOADALL?
jne @Not_LOADALL ; nope
mov di,0
mov ds,di
mov di,cs
mov es,di
mov edi,offset Loadall_tbl
Assume DS:ABS0, ES:_TEXT, SS:NOTHING
;---------------------------------------------------------------
; Convert 80286 registers to 80386 counterparts. The sequencing
; order follows the 80386 LOADALL table.
;---------------------------------------------------------------
; While mapping MSW to CR0, bit5 in CR0 is documented as
; RESERVED on the '386 DX, and '1' on the '386 SX. Bit6 is
; defined as 'NE' (Numeric Exception) on the '486. If we wanted
; this code to work on the '486, then we should mask the lower
; nibble of MSW with CR0. But the '486 doesn't have LOADALL,
; so this isn't necesary. Next consider the Reserved bit5 on
; the '386 DX. Since LOADALL completely redefines the CPU
; state, it is safe to clear this reserved bit instead of
; masking it with MSW.
;---------------------------------------------------------------
mov eax,cr0 ; MSW --> CR0
mov ax,Loadall_286._286Msw
mov Loadall_tbl._CR0,eax
movzx eax,Loadall_286._Flags ; FLAGS --> EFLAGS
mov Loadall_tbl._EFLAGS,eax
;---------------------------------------------------------------
; Hereafter MOVZX isn't needed because the upper 16-bits are
; guaranteed to be 0.
;---------------------------------------------------------------
mov ax,Loadall_286._286IP ; IP --> EIP
mov Loadall_tbl._EIP,eax
mov ax,Loadall_286._286DI ; DI --> EDI
mov Loadall_tbl._EDI,eax
mov ax,Loadall_286._286SI ; SI --> ESI
mov Loadall_tbl._ESI,eax
mov ax,Loadall_286._286BP ; BP --> EBP
mov Loadall_tbl._EBP,eax
mov ax,Loadall_286._286SP ; SP --> ESP
mov Loadall_tbl._ESP,eax
mov ax,Loadall_286._286BX ; BX --> EBX
mov Loadall_tbl._EBX,eax
mov ax,Loadall_286._286DX ; DX --> EDX
mov Loadall_tbl._EDX,eax
mov ax,Loadall_286._286CX ; CX --> ECX
mov Loadall_tbl._ECX,eax
mov ax,Loadall_286._286AX ; AX --> EAX
mov Loadall_tbl._EAX,eax
;---------------------------------------------------------------
; DR6 & DR7 aren't in the '286, so let's use the current values.
; By keeping the current values, guarantees that any ICE
; breakpoints, or debug register breakpoints are preserved.
; (ICE breakpoints use (at least) the upper two of the
; 'RESERVED' bits in DR7.
;---------------------------------------------------------------
mov eax,dr6 ; Keep DR6
mov Loadall_tbl._DR6,eax
mov eax,dr7 ; Keep DR7
mov Loadall_tbl._DR7,eax
movzx eax,Loadall_286._286TR ; TR --> TR
mov Loadall_tbl._TR,eax
mov ax,Loadall_286._286LDT ; LDT --> LDT
mov Loadall_tbl._LDT,eax
;---------------------------------------------------------------
; FS & GS aren't in the '286, so let's zero them out.
;---------------------------------------------------------------
xor ax,ax
mov Loadall_tbl._GS,eax ; Clear GS
mov Loadall_tbl._FS,eax ; Clear FS
mov ax,Loadall_286._286DS ; DS --> DS
mov Loadall_tbl._DS,eax
mov ax,Loadall_286._286SS ; SS --> SS
mov Loadall_tbl._SS,eax
mov ax,Loadall_286._286CS ; CS --> CS
mov Loadall_tbl._CS,eax
mov ax,Loadall_286._286ES ; ES --> ES
mov Loadall_tbl._ES,eax
;-----------------------------------------------------------
; Convert '286 descriptor cache register entries to '386
; format.
;-----------------------------------------------------------
mov esi,offset Loadall_286.TSS_Desc286
mov edi,offset Loadall_tbl.TSS_Desc
call CVT_Desc
mov esi,offset Loadall_286.IDT_Desc286
mov edi,offset Loadall_tbl.IDT_Desc
call CVT_Desc
mov esi,offset Loadall_286.GDT_Desc286
mov edi,offset Loadall_tbl.GDT_Desc
call CVT_Desc
mov esi,offset Loadall_286.LDT_Desc286
mov edi,offset Loadall_tbl.LDT_Desc
call CVT_Desc
;-----------------------------------------------------------
; Fill in FS & GS descriptor cache entires with 0.
;-----------------------------------------------------------
mov Loadall_tbl.GS_Desc._Type,93h
mov Loadall_tbl.GS_Desc._Addr,0
mov Loadall_tbl.GS_Desc._Limit,0ffffh
mov Loadall_tbl.FS_Desc._Type,93h
mov Loadall_tbl.FS_Desc._Addr,0
mov Loadall_tbl.FS_Desc._Limit,0ffffh
;-----------------------------------------------------------
; Convert '286 descriptor cache register entries to '386
; format.
;-----------------------------------------------------------
mov esi,offset Loadall_286.DS_Desc286
mov edi,offset Loadall_tbl.DS_Desc
call CVT_Desc
mov esi,offset Loadall_286.SS_Desc286
mov edi,offset Loadall_tbl.SS_Desc
call CVT_Desc
mov esi,offset Loadall_286.CS_Desc286
mov edi,offset Loadall_tbl.CS_Desc
call CVT_Desc
mov esi,offset Loadall_286.ES_Desc286
mov edi,offset Loadall_tbl.ES_Desc
call CVT_Desc
mov edi,offset Loadall_tbl
LOADALL_386
HLT ; This instruction never
; gets executed
@Not_LOADALL:
pop ds
pop si
pop bp
Orig_int06:
jmp far ptr INT_6
Emulate_286_Loadall endp
;---------------------------------------------------------------
CVT_Desc proc near ; Convert '286 descriptor table
; ; cache register format to '386
; ; format.
;---------------------------------------------------------------
; Input: DS:ESI = Pointer to '286 descriptor cache entry
; DS:EDI = Pointer to '386 descriptor cache entry
; Output: None
; Register(s) modified: EAX, EBX, ECX
;---------------------------------------------------------------
mov eax,[esi] ; get 24-bit base &
; access rights
mov ebx,eax ; make a copy
movzx ecx,[esi]._Limit2 ; get 16-bit limit
rol eax,8 ; put access in AL
and ebx,00ffffffh ; make 24-bit address
mov ES:[edi]._Type,al ; store Access
mov ES:[edi]._Addr,ebx ; store Address
mov ES:[edi]._Limit,ecx ; store Limit
ret
CVT_Desc endp
TSR_End label word
;---------------------------------------------------------------
; End of TSR program
;---------------------------------------------------------------
;---------------------------------------------------------------
; Local DATA used for initialization code only.
;---------------------------------------------------------------
bogus_msg1 db "Unrecognized command line argument."
db CRLF$
bogus_msg2 db "Not 80386 computer.",7,CRLF$
driver_msg1 db "Resident driver installed."
db CRLF$
driver_msg2 db "Resident driver already installed."
db 7,CRLF$
driver_msg3 db "Resident driver removed from memory."
db CRLF$
driver_msg4 db "Resident driver was not already "
db "installed",7,CRLF$
help_msg db CRLF
db "Syntax: EMULOAD",CRLF
db " EMULOAD -R (to remove from "
db "memory)",CRLF$
ASSUME DS:_TEXT
;---------------------------------------------------------------
EMULOAD proc near ; Beginning of initialization
; ; code as the NON-TSR part of
; ; the program.
;---------------------------------------------------------------
cld ; clear direction flag
Print_String emuload_msg ; Print initialization
; message.
;---------------------------------------------------------------
; Check CPU type
;---------------------------------------------------------------
call CPU_TYPE ; Get CPU type
and al,0fh ; mask out CPU sub-type
cmp al,3 ; 80386?
jz short @F ; yes
Print_String Bogus_msg2 ; Not 80386 computer
mov ax,4c06h ; set function to DOS
int 21h ; exit to DOS
;---------------------------------------------------------------
; Check command line argument
;---------------------------------------------------------------
@@: xor ax,ax ; clear AX
mov si,80h ; get start of PSP
lodsb ; get command line len.
or ax,ax ; Any command line args?
jz short Installed? ; nope
mov cx,ax ; put into counter
mov di,si ;
mov al,' ' ; skip past superfluous
repz scasb ; blank characters
cmp byte ptr [di],0dh ; are we at the end?
jz short Installed? ; yep
cmp byte ptr [di-1],'-' ; check if it's a switch
jnz short @F ; if not, then error
mov si,di ; get pointer
lodsb ; get cmd line switch
cmp al,'r' ; remove driver?
jz short remove_driver ; yep
cmp al,'R' ; remove driver?
jz short remove_driver ; go remove driver
cmp al,'?' ; help?
jnz short @F ; nope
Print_String help_msg ; Print help message
mov ax,4c04h ; set return code
int 21h ; exit to DOS
;---------------------------------------------------------------
; Bogus command line argument
;---------------------------------------------------------------
@@: Print_String bogus_msg1 ; Invalid command line
mov ax,4c03h ; set function code
int 21h ; exit to DOS
;---------------------------------------------------------------
; Remove driver from memory
;---------------------------------------------------------------
remove_driver:
call check_installed ; Driver installed?
jnz short @F ; driver not installed
mov bp,sp ; create stack frame
push ds ; save (DS)
mov dx,ABS0 ; get bottom of memory
mov ds,dx ; make segment register
ASSUME DS:ABS0, ES:_TEXT
;---------------------------------------------------------------
; Restore original INT6 vector
;---------------------------------------------------------------
; We can restore the original INT6 by getting the vector from
; our current memory resident driver -- not the DS from the
; code now executing. The original DS is the same as the code
; segment for our EMULOAD driver. Hence we only need to get
; the original segment value from the memory resident image.
; And we get this by looking at the segment for INT6!
;---------------------------------------------------------------
mov es,int_6.int_segment ; Original DS
mov ax,es:orig_int06[1].int_offset ; Original INT6
mov bx,es:orig_int06[1].int_segment ; " "
mov int_6.int_offset,ax ; Restore orig.
mov int_6.int_segment,bx ; INT6
;---------------------------------------------------------------
; Free memory pointed to by ES
;---------------------------------------------------------------
mov ah,49h ; DOS FREE_MEM function
int 21h ; free allocated memory
mov ds,[bp-2] ; get original (DS)
ASSUME DS:_TEXT
;---------------------------------------------------------------
; Now split with TSR removed from memory.
;---------------------------------------------------------------
Print_String driver_msg3 ; Driver removed
mov ax,4c05h ; set function to DOS
int 21h ; exit to DOS
;---------------------------------------------------------------
; If EMULOAD was not in memory, then come here and split with
; the error code.
;---------------------------------------------------------------
@@: Print_String driver_msg4 ; Driver not installed
mov ax,4c01h ; set function to DOS
int 21h ; exit to DOS
;---------------------------------------------------------------
; Check for driver already installed
;---------------------------------------------------------------
Installed?:
call check_installed ; check if driver is
jnz short @F ; already installed?
;---------------------------------------------------------------
; Driver already installed
;---------------------------------------------------------------
Print_String driver_msg2 ; Driver already inst.
mov ax,4c02h ; set function to DOS
int 21h ; exit to DOS
;---------------------------------------------------------------
; Driver not yet installed
;---------------------------------------------------------------
@@: Print_String driver_msg1 ; Driver now installed
;---------------------------------------------------------------
; Install driver into memory
;---------------------------------------------------------------
xor dx,dx ; Point to INT. vectors
mov ds,dx ; complete the move
ASSUME ds:ABS0
;---------------------------------------------------------------
; Chain to INT6 by replacing and saving the original INT6
; vector.
;---------------------------------------------------------------
mov ax,int_6.int_offset ; Orig. offset
mov bx,int_6.int_segment ; Orig. segment
mov orig_int06[1].int_offset,ax ; save old INT6
mov orig_int06[1].int_segment,bx ; vector.
;---------------------------------------------------------------
; Now replace the original INT6 vector.
;---------------------------------------------------------------
mov dx,offset cs:int06 ; Get new INT6 vector
mov int_6.int_offset,dx ; as CS:INT6
mov int_6.int_segment,cs ;
ASSUME DS:_TEXT
;---------------------------------------------------------------
; Terminate and Stay Resident
;---------------------------------------------------------------
mov dx,cs ; make DS=CS
mov ds,dx
mov es,ds:[2ch] ; get DOS env. segment
mov ah,49h ; release memory func.
int 21h ; release memory
mov dx,offset tsr_end ; get ending address
shr dx,4 ; divide by 16
adc dx,1 ; check for remainder;
; add 1
mov ax,3100h ; set return code to DOS
int 21h
EMULOAD endp
ASSUME ES:ABS0
;---------------------------------------------------------------
; Check to see if the EMULOAD driver is installed in memory.
; It is possible to check if a TSR program is already installed
; in memory by looking for a semaphore in the memory image.
; Luckily we can locate the memory image of our TSR by looking
; at the current INT6 vector. The INT6 code segment is the
; segment of the TSR! So this routine looks in this segment
; for the inital banner message:
;
; 80286 LOADALL EMULATOR utility.
; Version 1.0 Only for 80386 computers.
; Copyright (c) 1991 Robert Collins.
;
; If this message is found, then the TSR is in memory. If
; another TSR has chained to the same INT6 vector, this
; technique will fail to find EMULOAD, as it very well should!
;---------------------------------------------------------------
Check_installed proc near
;---------------------------------------------------------------
; Input: None
; Output: NZ if NOT installed
; ZF if ALREADY installed
; Register(s) modified: CX, SI, DI
;---------------------------------------------------------------
push es ; save (ES)
mov cx,ABS0 ; get bios data segment
mov es,cx ; put in (ES)
mov cx,emu_msg_len ; # of bytes to compare
mov si,offset emuload_msg ; get address of message
les di,ES:INT_6 ; get INT6 vector
sub di,int06-emuload_msg ; point to theoretical
; start of message
repz cmpsb ; check data
pop es ; restore (ES)
ret ; split
Check_installed endp
;---------------------------------------------------------------
; Include the CPU_TYPE procedure & LOADALL test
;---------------------------------------------------------------
Include CPU_TYPE.ASM
_TEXT ends
end Emulate_286_LOADALL
;---------------------------------------------------------------
; END LISTING 3
;---------------------------------------------------------------
| 43.023112 | 78 | 0.393238 |
9823fcea62f4fa52446a5d8d7966ee90b4ab281c | 1,232 | asm | Assembly | programs/oeis/018/A018902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/018/A018902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/018/A018902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A018902: a(n+2) = 5*a(n+1) - 3*a(n).
; 1,4,17,73,314,1351,5813,25012,107621,463069,1992482,8573203,36888569,158723236,682950473,2938582657,12644061866,54404561359,234090621197,1007239421908,4333925245949,18647907964021,80237764082258,345245096519227,1485512190349361,6391825662189124,27502591739897537,118337481712920313,509179633344908954,2190885721585783831,9426889707894192293,40561791374713609972,174528287749885472981,750956064625286534989,3231195459876776256002,13903109105508021675043,59821959147909779607209,257400468423024833010916,1107536464671394826232953,4765480918087899632132017,20504795196425313681961226,88227533227862869513410079,379623280550038406521166717,1633433803066603424065603348,7028299173682901900764516589,30241194459214699231625772901,130121074775024790455835314738,559881790497479854584299254987,2409045728162324901553990330721,10365583269319184944017053888644,44600779162108950015423298451057,191907146002587195245065330589353,825733392526609126179056757593594,3552945524625284045160087796199911,15287527445546592847263268708218773,65778800653857112100836080152494132,283031420932645781962390594637814341
mov $1,6
mov $2,2
lpb $0
sub $0,1
add $1,$2
add $2,$1
mul $1,3
lpe
mov $0,$1
div $0,6
| 88 | 1,097 | 0.895292 |
037cc06c5123ef5eb848760d93ac2409af474452 | 7,004 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_661.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_661.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_661.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xcae9, %rax
add %r15, %r15
and $0xffffffffffffffc0, %rax
vmovaps (%rax), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rcx
nop
dec %r14
lea addresses_WC_ht+0x13dc5, %rsi
lea addresses_normal_ht+0x9669, %rdi
nop
nop
xor $43993, %r14
mov $35, %rcx
rep movsl
nop
nop
nop
nop
xor $25571, %rsi
lea addresses_UC_ht+0x1a5c9, %rcx
nop
nop
nop
nop
sub $2390, %rdi
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
nop
nop
dec %rsi
lea addresses_A_ht+0x15729, %rsi
lea addresses_UC_ht+0xf6e9, %rdi
clflush (%rsi)
nop
nop
nop
nop
dec %rbp
mov $2, %rcx
rep movsl
cmp %r14, %r14
lea addresses_UC_ht+0x13fe9, %rsi
lea addresses_D_ht+0x6f29, %rdi
nop
nop
nop
add %r11, %r11
mov $24, %rcx
rep movsw
nop
nop
nop
nop
nop
and %r11, %r11
lea addresses_normal_ht+0xa29, %r14
nop
nop
nop
add $42666, %rbp
mov (%r14), %esi
xor $37932, %r14
lea addresses_A_ht+0x1c1e9, %rsi
lea addresses_UC_ht+0x17cb1, %rdi
nop
nop
nop
nop
nop
sub %r15, %r15
mov $39, %rcx
rep movsb
nop
cmp $49642, %rsi
lea addresses_A_ht+0xefe9, %rsi
lea addresses_D_ht+0x1e49, %rdi
nop
nop
add %rax, %rax
mov $51, %rcx
rep movsq
nop
nop
nop
nop
and %r11, %r11
lea addresses_D_ht+0x1bd29, %rsi
lea addresses_normal_ht+0x6091, %rdi
nop
nop
and $2439, %r11
mov $48, %rcx
rep movsb
nop
nop
nop
cmp $26303, %r11
lea addresses_UC_ht+0x8739, %rsi
lea addresses_normal_ht+0x18965, %rdi
clflush (%rdi)
nop
nop
nop
nop
lfence
mov $75, %rcx
rep movsb
nop
nop
and %rdi, %rdi
lea addresses_WC_ht+0x18de9, %rbp
nop
nop
add $36265, %rax
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
movups %xmm1, (%rbp)
nop
nop
nop
nop
nop
xor $13064, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %rdi
push %rdx
// Faulty Load
lea addresses_normal+0x173e9, %rdi
nop
nop
nop
nop
nop
xor %r11, %r11
mov (%rdi), %r15
lea oracles, %rdi
and $0xff, %r15
shlq $12, %r15
mov (%rdi,%r15,1), %r15
pop %rdx
pop %rdi
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 8}}
{'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 9}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 36.103093 | 2,999 | 0.664477 |
81ab52d04ee355b9fa69eb63188a1440504d5c49 | 2,188 | asm | Assembly | app.asm | mohamed-abdelaziz721/Traffic-Light---Assembly | a40b4753905b5945aab2d21ff03a5161a39d1470 | [
"MIT"
] | null | null | null | app.asm | mohamed-abdelaziz721/Traffic-Light---Assembly | a40b4753905b5945aab2d21ff03a5161a39d1470 | [
"MIT"
] | null | null | null | app.asm | mohamed-abdelaziz721/Traffic-Light---Assembly | a40b4753905b5945aab2d21ff03a5161a39d1470 | [
"MIT"
] | null | null | null | $NOMOD51 ;to suppress the pre-defined addresses by keil
$include (C8051F020.INC) ; to declare the device peripherals with it's addresses
ORG 0H ; to start writing the code from the base 0
;diable the watch dog
MOV WDTCN,#11011110B ;0DEH
MOV WDTCN,#10101101B ;0ADH
; config of clock
MOV OSCICN , #14H ; 2MH clock
;config cross bar
MOV XBR0 , #00H
MOV XBR1 , #00H
MOV XBR2 , #040H ; Cross bar enabled , weak Pull-up enabled
;config,setup
MOV P0MDOUT, #00h
MOV P1MDOUT, #0FFh
MOV P2MDOUT, #0FFh
MOV P3MDOUT, #0FFh
MOV R0,#3
MOV R1,#3
MOV P2, #01H
MAX EQU 10
MIN EQU 0
INIT:
MOV R4,#10
MOV DPTR, #400h
MOV A,#10
CLR C
SUBB A,R0
MOVC A,@A+DPTR
MOV P1,A
AJMP COUNT
START:
MOV R4,#10
MOV DPTR, #400h
AJMP COUNT
MAIN:
DJNZ R4, COUNT
DJNZ R0, INIT
ACALL LED_TOGGLE
LED_TOGGLE_END:
AJMP RESTART
END_COUNT:
ACALL SWITCHS
AJMP MAIN
LED_TOGGLE:
CLR A
MOV A, P2
CJNE A, #01H, RED_ON
RED_ON_END:
ACALL GREEN_ON
RET
RED_ON:
MOV P2,#01H
AJMP LED_TOGGLE_END
GREEN_ON:
MOV P2, #02H
RET
RESTART:
MOV A,R1
MOV R0, A
AJMP INIT
SWITCHS:
CLR A
MOV A, P0
ANL A, #00000001B
JNZ FAST
MOV A, P0
ANL A, #00000010B
JNZ MEDIUM
MOV A, P0
ANL A, #00000100B
JNZ SLOW
ACALL DEFULT_DELAY
SKIP_SPEED:
MOV A, P0
ANL A, #00001000B
JZ INCRENENT
MOV A, P0
ANL A, #00010000B
JZ DECREMENT
RET
SLOW:
ACALL SLOW_DELAY
AJMP SKIP_SPEED
MEDIUM:
ACALL DEFULT_DELAY
AJMP SKIP_SPEED
FAST:
ACALL FAST_DELAY
AJMP SKIP_SPEED
INCRENENT:
; MOV R7, #NOW
CJNE R1, #MAX, DO_INCREMENT
AJMP RESTART
DO_INCREMENT:
INC R1
AJMP RESTART
RET
DECREMENT:
CJNE R1, #MIN, DO_DECREMENT
AJMP RESTART
DO_DECREMENT:
DEC R1
AJMP RESTART
RET
COUNT: CLR A
MOVC A,@A+DPTR
MOV P3,A
INC DPTR
AJMP END_COUNT
FAST_DELAY:
MOV R7,#5
LOOP4:MOV R6,#200
LOOP5:MOV R5,#198
LOOP6:DJNZ R5,LOOP6
DJNZ R6,LOOP5
DJNZ R7,LOOP4
RET
DEFULT_DELAY:
MOV R7,#10
LOOP7:MOV R6,#200
LOOP8:MOV R5,#198
LOOP9:DJNZ R5,LOOP9
DJNZ R6,LOOP8
DJNZ R7,LOOP7
RET
SLOW_DELAY:
MOV R7,#20
LOOP10:MOV R6,#200
LOOP11:MOV R5,#198
LOOP12:DJNZ R5,LOOP12
DJNZ R6,LOOP11
DJNZ R7,LOOP10
RET
ORG 400H
DB 6FH,7FH,07H,7DH,6DH,66H,4FH,5BH,06H,3FH
END | 13.936306 | 81 | 0.697898 |
b0ff7c3b73c59d90ad0223b2fee3075bd3ee054e | 2,444 | asm | Assembly | 45/runtime/crt/fmsghdr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/crt/fmsghdr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/crt/fmsghdr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | page ,132
title fmsghdr - far message handler and finder
;***
;fmsghdr.asm - far message handler and finder
;
; Copyright (c) 1986-1988, Microsoft Corporation. All rights reserved.
;
;Purpose:
; Far message handler and finder.
;
;*******************************************************************************
?DF= 1 ; this is special for c startup
include version.inc
?PLM= 1 ; pascal calling conventions
.xlist
include cmacros.inc
include msdos.inc
.list
createSeg _TEXT, code, word, public, CODE, <>
createSeg _DATA, data, word, public, DATA, DGROUP
createSeg FAR_HDR,fhdr, byte, public, FAR_MSG,FMGROUP
createSeg FAR_MSG,fmsg, byte, public, FAR_MSG,FMGROUP
createSeg FAR_PAD,fpad, byte, common, FAR_MSG,FMGROUP
createSeg FAR_EPAD,fepad, byte, common, FAR_MSG,FMGROUP
defGrp DGROUP ; define DGROUP
defGrp FMGROUP ; define FMGROUP
codeOFFSET equ offset _TEXT:
fmsgOFFSET equ offset FMGROUP:
assumesdata macro seg ;;[1] Newer versions of CMACROS reject
assumes seg,DGROUP ;;[1]
endm ;;[1]
sBegin fhdr
assumesdata ds ;[1]
db '<<FMSG>>'
stfmsg label byte
sEnd
SBegin fpad
assumesdata ds ;[1]
dw -1 ; message padding marker
sEnd
sBegin fepad
assumesdata ds ;[1]
db -1
sEnd
sBegin code
assumes cs,code
assumesdata ds ;[1]
page
;***
;__FMSG_TEXT(messagenumber) - find message for given message number
;
;Purpose:
; This routine returns a far pointer to the message associated with
; messagenumber. If the message does not exist, then a 0:0 is returned.
;
;Entry:
; ==PASCAL CALLING CONVENTIONS==
; messagenumber = WORD number of desired message
;
;Exit:
; DX:AX = pointer to message text or 0:0 if message doesn't exist
;
;Uses:
;
;Exceptions:
;
;*******************************************************************************
cProc __FMSG_TEXT,<PUBLIC>,<ds,si,di,es> ;[1] pascal calling - added ES
parmW msgt
cBegin
mov ax,FMGROUP
mov ds,ax ; ds = FMGROUP (force it always)
push ds
pop es
mov dx,msgt ; dx = message number
mov si,fmsgOFFSET stfmsg ; start of far messages
tloop:
lodsw ; ax = current message number
cmp ax,dx
je found ; found it - return address
inc ax
xchg ax,si
jz found ; at end and not found - return 0
xchg di,ax
xor ax,ax
mov cx,-1
repne scasb ; skip until 00
mov si,di
jmp tloop ; try next entry
found:
xchg ax,si
cwd ; zero out dx in case NULL
or ax,ax
jz notfound
mov dx,ds ; remember segment selector
notfound:
cEnd
sEnd
end
| 19.244094 | 80 | 0.670213 |
279d1fd614632d816f2f38bcceb65bc63a530477 | 3,716 | asm | Assembly | fasmcpp.win64.asm | LHLaurini/fasmcpp | f061fc5be5a86182c271e5df18e35701ddbe0a87 | [
"MIT"
] | 4 | 2017-05-10T09:16:28.000Z | 2020-01-12T16:47:22.000Z | fasmcpp.win64.asm | step9/fasmcpp | f061fc5be5a86182c271e5df18e35701ddbe0a87 | [
"MIT"
] | 2 | 2020-01-13T16:47:50.000Z | 2020-01-13T20:45:17.000Z | fasmcpp.win64.asm | step9/fasmcpp | f061fc5be5a86182c271e5df18e35701ddbe0a87 | [
"MIT"
] | 2 | 2018-10-23T12:44:06.000Z | 2019-04-13T12:42:46.000Z |
use64
org WIN64_LOW_MEMORY_FIXED_ADDRESS
; symbols to export
dq _assemble
dq _run
dq _input_filename
dq _output_filename
dq _fasm_memory
; symbols to import
fasmError dq ?
fasmOpen dq ?
fasmRead dq ?
fasmWrite dq ?
fasmClose dq ?
fasmLseek dq ?
fasmDisplayBlock dq ?
; code
_assemble: ; Assembly* assembly, void* memory, uint32_t size, const char* predefinitions
mov [rsp+8], rcx
mov [rsp+16], rdx
mov [rsp+24], r8
mov [rsp+32], r9
push rbp
push rbx
push rdi
push rsi
mov rax, [rsp+4*8+8]
mov [assembly], rax
; We split memory just like the Win32 assembler interface: 25% memory, 75% additional memory
mov eax, [rsp+4*8+16]
mov [memory_start], eax
mov ebx, [rsp+4*8+24]
mov ecx, ebx
shr ebx, 2
sub ecx, ebx
add ebx, eax
mov [memory_end], ebx
mov [additional_memory], ebx
add ebx, ecx
mov [additional_memory_end], ebx
mov eax, esp
and eax, not 0FFFh
add eax, 1000h-10000h
mov [stack_limit], eax
mov eax, [rsp+4*8+32]
mov [initial_definitions], eax
mov [input_file], _input_filename
mov [output_file], _output_filename
mov [symbols_file], 0
mov [passes_limit], 100
mov [rsp_backup], rsp
call preprocessor
call parser
call assembler
call formatter
exit:
call show_display_buffer
mov rsp, [rsp_backup]
pop rsi
pop rdi
pop rbx
pop rbp
ret
_run:
push rbx
push rbp
push rdi
push rsi
push r12
push r13
push r14
push r15
mov [rsp_backup], rsp
call rcx
mov rsp, [rsp_backup]
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbp
pop rbx
ret
macro pusha
{
push rcx
push rdx
push r8
push r9
push r10
push r11
}
macro popa
{
pop r11
pop r10
pop r9
pop r8
pop rdx
pop rcx
}
macro fix_stack
{
mov r12, rsp
sub rsp, 8*4
and rsp, not 0xF
}
macro restore_stack
{
mov rsp, r12
}
fatal_error:
assembler_error:
mov rcx, [assembly]
mov edx, [rsp]
fix_stack
call [fasmError]
jmp exit
create: ; in: edx = filename - out: ebx = handle, cf = error
open: ; in: edx = filename - out: ebx = handle, cf = error
pusha
fix_stack
mov rcx, [assembly]
call [fasmOpen]
restore_stack
popa
or eax, eax
jz open_error
mov ebx, eax
clc
ret
open_error:
stc
ret
read: ; in: ebx = handle, ecx = size, edx = buffer - out: cf = error
pusha
fix_stack
mov r9d, ecx
mov r8d, edx
mov edx, ebx
mov rcx, [assembly]
call [fasmRead]
restore_stack
popa
ret
write: ; in: ebx = handle, ecx = size, edx = buffer - out: cf = error
pusha
fix_stack
mov r9d, ecx
mov r8d, edx
mov edx, ebx
mov rcx, [assembly]
call [fasmWrite]
restore_stack
popa
ret
close: ; in: ebx = handle
pusha
fix_stack
mov rcx, [assembly]
mov edx, ebx
call [fasmClose]
restore_stack
popa
ret
lseek: ; in: ebx = handle, edx = offset, al = mode (0: begin, 1: current, 2: end) out: eax
pusha
fix_stack
movzx r9d, al
mov r8d, edx
mov edx, ebx
mov rcx, [assembly]
call [fasmLseek]
restore_stack
popa
ret
get_environment_variable: ; in: esi = name, edi = buffer, ecx = size
ret
display_block: ; in: esi = message, ecx = size
pusha
fix_stack
mov r8d, ecx
mov edx, esi
mov rcx, [assembly]
call [fasmDisplayBlock]
restore_stack
popa
ret
make_timestamp:
jmp code_cannot_be_generated
initial_defs db 0
_input_filename db "input", 0
input_filename_end:
_output_filename db "output", 0
output_filename_end:
purge pusha, popa
include 'linux/x64/modes.inc'
include 'version.inc'
include 'errors.inc'
include 'symbdump.inc'
include 'preproce.inc'
include 'parser.inc'
include 'exprpars.inc'
include 'assemble.inc'
include 'exprcalc.inc'
include 'formats.inc'
include 'avx.inc'
include 'x86_64.inc'
include 'tables.inc'
include 'messages.inc'
; data
assembly dq ?
rsp_backup dq ?
include 'variable.inc'
_fasm_memory:
| 14.687747 | 93 | 0.705059 |
e5280506a9b3cc6ac2c445138929f6b2c70515f4 | 740 | asm | Assembly | oeis/054/A054890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054890: Layer counting sequence for hyperbolic tessellation by regular heptagons of angle Pi/3.
; 1,7,42,245,1428,8323,48510,282737,1647912,9604735,55980498,326278253,1901689020,11083855867,64601446182,376524821225,2194547481168,12790760065783,74550012913530,434509317415397,2532505891578852,14760526032057715,86030650300767438,501423375772546913,2922509604334514040,17033634250234537327,99279295897072709922,578642141132201722205,3372573550896137623308,19656799164244624017643,114568221434571606482550,667752529443185014877657,3891946955224538482783392,22683929201904045881822695
mov $1,1
mov $3,1
lpb $0
sub $0,1
sub $1,$3
add $2,$1
add $2,$1
add $1,6
add $2,1
add $1,$2
sub $2,1
add $1,$2
mov $3,$4
lpe
mov $0,$1
| 38.947368 | 484 | 0.813514 |
1fb637242ed5dd45acc9bac06b2858fc334bc53b | 35,554 | asm | Assembly | Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/clsplcn.asm | lborgav/Historical-Source-Codes | c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5 | [
"MIT"
] | 7 | 2017-01-12T17:48:48.000Z | 2021-11-28T04:37:34.000Z | Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/clsplcn.asm | lborgav/Historical-Source-Codes | c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5 | [
"MIT"
] | null | null | null | Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/clsplcn.asm | lborgav/Historical-Source-Codes | c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5 | [
"MIT"
] | 5 | 2017-03-28T08:04:30.000Z | 2020-03-25T14:25:29.000Z | include w2.inc
include noxport.inc
include consts.inc
include structs.inc
createSeg clsplc_PCODE,clsplcn,byte,public,CODE
; DEBUGGING DECLARATIONS
ifdef DEBUG
midClsplcn equ 26 ; module ID, for native asserts
endif
; EXTERNAL FUNCTIONS
externFP <FChngSizePhqLcb>
externFP <ReloadSb>
externFP <N_QcpQfooPlcfoo>
externFP <AdjustHplcCpsToLim>
ifdef DEBUG
externFP <AssertProcForNative>
externFP <FCheckHandle>
externFP <S_FOpenPlc>
externFP <S_FStretchPlc>
externFP <S_ShrinkPlc>
endif
sBegin data
;
; /* E X T E R N A L S */
;
externW mpsbps ; extern SB mpsbps[];
externW vmerr ; extern struct MERR vmerr;
externW vfUrgentAlloc ; extern int vfUrgentAlloc;
externW vfInCommit ; extern int vfInCommit;
ifdef DEBUG
externW wFillBlock
externW vsccAbove
externW vpdrfHead
externW vpdrfHeadUnused
endif ;/* DEBUG */
sEnd data
; CODE SEGMENT _clsplcn
sBegin clsplcn
assumes cs,clsplcn
assumes ds,dgroup
assumes ss,dgroup
include asserth.asm
;-------------------------------------------------------------------------
; FInsertInPlc(hplc, i, cp, pch)
;-------------------------------------------------------------------------
;/* F I N S E R T I N P L C */
;/* open space in PLC and copy passed cp to plc.rgcp[i], and move structure
; foo pointed to by pch to the ith entry in the range of foos. */
;EXPORT FInsertInPlc(hplc, i, cp, pch)
;struct PLC **hplc;
;int i;
;CP cp;
;char *pch;
;{
; %%Function:N_FInsertInPlc %%Owner:BRADV
cProc N_FInsertInPlc,<PUBLIC,FAR>,<si,di>
ParmW hplc
ParmW iArg
ParmD cpArg
ParmW pch
cBegin
; Assert(hplc);
ifdef DEBUG
push ax
push bx
push cx
push dx
mov ax, midClsplcn
mov bx, 1001 ; label # for native assert
cCall AssertHForNative,<[hplc], ax, bx>
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
; if (!FOpenPlc(hplc, i, 1))
; return fFalse;
mov bx,[hplc]
mov si,[iArg]
mov ax,1
push bx ;save hplc
push bx
push si
push ax
ifdef DEBUG
cCall S_FOpenPlc,<>
else ;not DEBUG
push cs
call near ptr N_FOpenPlc
endif ;DEBUG
pop bx ;restore hplc
or ax,ax
je FIIP03
; Assert((*hplc)->cb == 0 || pch != NULL);
ifdef DEBUG
push ax
push bx
push cx
push dx
mov bx,[hplc]
mov bx,[bx]
cmp [bx.cbPlc],0
je FIIP01
cmp [pch],NULL
jne FIIP01
mov ax,midClsplcn
mov bx,1022
cCall AssertProcForNative,<ax,bx>
FIIP01:
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
; if ((*hplc)->cb) PutPlc(hplc, i, pch);
; PutCpPlc(hplc, i, cp);
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
ifdef DEBUG
xor di,di ;Not O.K. to pass ifldMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call FIIP04
endif ;DEBUG
;***Begin in-line PutCpPlc
mov dx,[iArg]
cmp dx,[bx.icpAdjustPlc]
mov ax,[OFF_cpArg]
mov dx,[SEG_cpArg]
jl FIIP02
sub ax,[bx.LO_dcpAdjustPlc]
sbb dx,[bx.HI_dcpAdjustPlc]
FIIP02:
mov es:[di],ax
mov es:[di+2],dx
;***End in-line PutCpPlc
;***Begin in-line PutPlc
mov di,si
mov si,[pch]
rep movsb
;***End in-line PutPlc
; return fTrue;
mov ax,fTrue
FIIP03:
cEnd
ifdef DEBUG
FIIP04:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc FIIP05
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1002
cCall AssertProcForNative,<ax,bx>
FIIP05:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je FIIP06
mov ax,midClsplcn
mov bx,1003
cCall AssertProcForNative,<ax,bx>
FIIP06:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
; End of FInsertInPlc
;-------------------------------------------------------------------------
; FOpenPlc(hplc, i, di)
;-------------------------------------------------------------------------
;/* F O P E N P L C */
;/* when di > 0, FOpenPlc inserts di empty entries at position i in the PLC.
; when di < 0, FOpenPlc deletes the -di entries beginning at position i
; in the PLC. */
;NATIVE FOpenPlc(hplc, i, di)
;struct PLC **hplc;
;int i;
;int di;
;{
; struct PLC *pplc;
; int cpPlc;
; int iMacOld;
; int iMaxNew;
; int cbPlc;
Ltemp002:
jmp FOP08
; %%Function:N_FOpenPlc %%Owner:BRADV
cProc N_FOpenPlc,<PUBLIC,FAR>,<si,di>
ParmW hplc
ParmW iArg
ParmW diArg
cBegin
;/* if no change requested, there's nothing to do. return. */
; if (di == 0)
; return(fTrue);
mov di,[diArg]
or di,di
jz Ltemp002
;/* must unwind the fence up to pplc->rgcp[i], because caller is signaling
; intention to alter plc beginning with ith entry (even when di == 0). */
; pplc = *hplc;
; if (pplc->icpAdjust < i)
; AdjustHplcCpsToLim(hplc, i);
mov si,[hplc]
mov bx,[si]
mov ax,[iArg]
cmp [bx.icpAdjustPlc],ax
jge FOP01
cCall AdjustHplcCpsToLim,<si,ax>
FOP01:
; Assert(i <= pplc->iMac);
ifdef DEBUG
; /* Assert (i < pplc->iMac) with a call so as not to mess up
; short jumps */
call FOP10
endif ;/* DEBUG */
; cbPlc = pplc->cb;
; iMacOld = pplc->iMac;
;Assembler note: get these values when they are needed.
; if (di > 0)
; {
or di,di
jle FOP03
; /* we are expanding the plc */
; if (!FStretchPlc(hplc, di))
; return fFalse;
;LN_FStretchPlc takes hplc in si and di in di.
;The result is returned in ax. ax, bx, cx, dx, di are altered.
call LN_FStretchPlc
or ax,ax
je Ltemp001
; pplc = *hplc;
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,si
mov si,[bx]
mov si,[si.iMacPlcStr]
ifdef DEBUG
mov di,1 ;O.K. to pass iMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call FOP12
endif ;DEBUG
;/* move rgfoo entries */
; BltInPlc(bpmFoo, hplc, i, 0, di, iMacOld - i);
;***Begin in-line BltInPlc
push di ;save pcp
mov ax,[bx.iMacPlcStr]
push es
pop ds
std
sub ax,[iArg]
push ax ;save iMacOld - i
mul cx
xchg ax,cx
dec si
dec si ;adjust for post-decrement
mov di,si
mov dx,[diArg]
mul dx
add di,ax
ifdef DEBUG
; /* Assert (!(cx & 1)) with a call so as not to mess up
; short jumps */
call FOP15
endif ;/* DEBUG */
shr cx,1
rep movsw
pop cx ;restore iMacOld - i
pop di ;restore pcp
;***End in-line BltInPlc
;/* move rgcp entries */
; BltInPlc(bpmCp, hplc, i, di, 0, iMacOld - i + 1);
;***Begin in-line BltInPlc
;have iMacOld - i in cx
inc cx
shl cx,1
inc di
inc di ;adjust for post-decrement and position after iMac
mov si,di
mov ax,[diArg]
mov dx,ax ;save di for later
shl ax,1
shl ax,1
add di,ax
rep movsw
;***End in-line BltInPlc
cld
push ss
pop ds
; pplc->iMac = iMacOld + di;
add [bx.iMacPlcStr],dx
; if (pplc->icpAdjust < i)
; pplc->icpAdjust = i;
mov ax,[iArg]
cmp [bx.icpAdjustPlc],ax
jge FOP02
mov [bx.icpAdjustPlc],ax
FOP02:
; pplc->icpAdjust += di;
add [bx.icpAdjustPlc],dx
; }
jmp short FOP08
Ltemp001:
jmp short FOP09
; else if (di < 0)
; {
;Assembler note: No need to test for di < 0 here. We know it is.
FOP03:
; /* in this case we will be removing di entries */
; di = -di;
neg di
; Assert(i + di <= iMacOld);
ifdef DEBUG
; /* Assert (i + di <= iMacOld) with a call so as not to mess up
; short jumps */
call FOP17
endif ;/* DEBUG */
; iMaxNew = pplc->iMax;
; /* if the Mac is less than half of the Max, we will later
; shift rgcp and foo entries in the PLC and reduce the
; size of the allocation */
; if ((iMacOld - di) * 2 <= iMaxNew)
; iMaxNew = iMacOld - di;
mov bx,[si]
mov dx,[bx.iMaxPlc]
mov ax,[bx.iMacPlcStr]
sub ax,di
shl ax,1
cmp ax,dx
ja FOP04
shr ax,1
xchg ax,dx
FOP04:
; if (pplc->icpAdjust > i + di)
; pplc->icpAdjust -= di;
; else if (pplc->icpAdjust > i)
; pplc->icpAdjust = i;
mov ax,[iArg]
mov cx,ax
add cx,di
cmp [bx.icpAdjustPlc],cx
jle FOP05
sub [bx.icpAdjustPlc],di
jmp short FOP06
FOP05:
cmp [bx.icpAdjustPlc],ax
jle FOP06
mov [bx.icpAdjustPlc],ax
FOP06:
; ShrinkPlc(hplc, iMaxNew, i, di);
push si
push dx
push ax
push di
ifdef DEBUG
cCall S_ShrinkPlc,<>
else ;not DEBUG
push cs
call near ptr N_ShrinkPlc
endif ;DEBUG
;/* blow the hint for the binary search. */
; pplc = *hplc;
; if (pplc->icpHint >= pplc->iMac)
; pplc->icpHint = 0;
mov bx,[si]
mov ax,[bx.iMacPlcStr]
cmp [bx.icpHintPlc],ax
jl FOP07
mov [bx.icpHintPlc],0
FOP07:
; }
; return (fTrue);
FOP08:
mov ax,fTrue
FOP09:
ifdef DEBUG
push ax
push bx
push cx
push dx
mov bx,[hplc]
mov bx,[bx]
mov ax,[bx.iMacPlcStr]
cmp ax,[bx.iMaxPlc]
jb FOP095
mov ax,midClsplcn
mov bx,1020
cCall AssertProcForNative,<ax,bx>
FOP095:
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
;}
cEnd
ifdef DEBUG
; Assert(i <= pplc->iMac);
FOP10:
push ax
push bx
push cx
push dx
mov ax,[iArg]
mov bx,[hplc]
mov bx,[bx]
cmp ax,[bx.iMacPlcStr]
jle FOP11
mov ax,midClsplcn
mov bx,1004
cCall AssertProcForNative,<ax,bx>
FOP11:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
ifdef DEBUG
FOP12:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc FOP13
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1005
cCall AssertProcForNative,<ax,bx>
FOP13:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je FOP14
mov ax,midClsplcn
mov bx,1006
cCall AssertProcForNative,<ax,bx>
FOP14:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
ifdef DEBUG
; Assert(!(cx & 1));
FOP15:
test cl,1
je FOP16
push ax
push bx
push cx
push dx
push ss
pop ds
cld
mov ax,midClsplcn
mov bx,1007
cCall AssertProcForNative,<ax,bx>
std
pop dx
pop cx
pop bx
pop ax
FOP16:
ret
endif ;/* DEBUG */
ifdef DEBUG
; Assert(i + di <= iMacOld);
FOP17:
push ax
push bx
push cx
push dx
mov ax,[iArg]
add ax,di
mov bx,[hplc]
mov bx,[bx]
cmp ax,[bx.iMacPlcStr]
jle FOP18
mov ax,midClsplcn
mov bx,1008
cCall AssertProcForNative,<ax,bx>
FOP18:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
;-------------------------------------------------------------------------
; ShrinkPlc(hplc, iMaxNew, i, di)
;-------------------------------------------------------------------------
;/* S H R I N K P L C */
;/* shrink size to iMaxNew while deleting di entries starting with i */
;ShrinkPlc(hplc, iMaxNew, i, di)
;struct PLC **hplc; int iMaxNew, i, di;
;{
; struct PLC *pplc = *hplc;
; int iMaxOld = pplc->iMax;
; int iMacOld = pplc->iMac;
; int iLim = i + di;
; int cbPlc = pplc->cb;
; int dicp;
; %%Function:N_ShrinkPlc %%Owner:BRADV
cProc N_ShrinkPlc,<PUBLIC,FAR>,<si,di>
ParmW hplc
ParmW iMaxNew
ParmW iArg
ParmW diArg
cBegin
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,[hplc]
mov si,[iArg]
add si,[diArg]
push si ;save i + di
ifdef DEBUG
mov di,1 ;O.K. to pass iMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call SP03
endif ;DEBUG
pop ax ;restore i + di
; pplc->iMac = iMacOld - di;
;Assembler note: This is done later in the assembler version.
; /* shift down rgcp[j] for j >= i + di */
; BltInPlc(bpmCp, hplc, iLim, -di, 0, (iMacOld + 1) - iLim);
;***Begin in-line BltInPlc
mov cx,[bx.iMacPlcStr]
push es
pop ds
push si ;save pfoo
mov si,di ;&rgcp[i+di]
mov dx,[diArg]
shl dx,1
shl dx,1
sub di,dx ;&rgcp[i]
inc cx
sub cx,ax
shl cx,1
rep movsw
pop si ;restore pfoo
;***End in-line BltInPlc
; /* shift down rgfoo[j] for 0 <=j < i to cover any rgcp entries
; that must be reclaimed. */
; Assert(iMaxNew <= iMaxOld);
; iMaxNew = min(iMaxNew + 5, iMaxOld); /* leave some room */
; dicp = iMaxOld - iMaxNew;
; if (dicp && i > 0)
; BltInPlc(bpmFoo, hplc, 0, -dicp, 0, i);
xor dx,dx ;default no movement due to iMax change
mov cx,[iMaxNew]
add cx,5
sub cx,ss:[bx.iMaxPlc]
jge SP01
push si ;save pfoo
add ss:[bx.iMaxPlc],cx
;***Begin in-line BltInPlc
mul ss:[bx.cbPlc] ;already have i+di in ax
sub si,ax ;&rgcp[iMaxNew]
mov di,si
mov ax,[iArg]
mul ss:[bx.cbPlc]
mov dx,cx
shl dx,1
shl dx,1
add di,dx ;&rgcp[iMaxOld]
xchg ax,cx
ifdef DEBUG
; /* Assert (!(cx & 1)) with a call so as not to mess up
; short jumps */
call SP06
endif ;/* DEBUG */
shr cx,1
rep movsw
;***End in-line BltInPlc
pop si ;restore pfoo
SP01:
push dx ;save diMax << 2
;Assembler note: the following line is done above in the C version.
; pplc->iMac = iMacOld - di;
mov ax,[diArg]
sub ss:[bx.iMacPlcStr],ax
; /* shift down rgfoo[i] for j >= i + di to cover space reclaimed
; from deleted rgfoos */
; BltInPlc(bpmFoo, hplc, iLim, -dicp, -di, iMacOld - iLim);
;***Begin in-line BltInPlc
mov di,si
add di,dx ;adjust for iMax change
mov cx,ss:[bx.cbPlc]
mul cx
sub di,ax ;adjust for di foo's
;Assembler note: At this point pplc->iMac is iMacOld - di, and we
;want iMacOld - iLim = iMacOld - (i + di) = (iMacOld - di) - i
mov ax,ss:[bx.iMacPlcStr]
sub ax,[iArg]
mul cx
xchg ax,cx
ifdef DEBUG
; /* Assert (!(cx & 1)) with a call so as not to mess up
; short jumps */
call SP06
endif ;/* DEBUG */
shr cx,1
rep movsw
;***End in-line BltInPlc
push ss
pop ds
; pplc->iMax = iMaxNew;
; if (iMaxNew < iMaxOld && !vfInCommit)
; {
; if (!pplc->fExternal)
; FChngSizeHCw(hplc, CwFromCch(cbPLCBase + (iMaxNew-1)
; * (sizeof(CP)+cbPlc) + sizeof(CP)), fTrue);
; else
; {
; HQ hqplce = pplc->hqplce; /* WARNING: heap may move */
; FChngSizePhqLcb(&hqplce, (((long)iMaxNew - 1) *
; (sizeof(CP) + cbPlc) + sizeof(CP)));
; (*hplc)->hqplce = hqplce;
; }
; }
;}
pop cx ;restore diMax << 2
jcxz SP025
mov si,[hplc]
xor di,di ;don't let LN_FSetSizeByDiMax alter pplc->iMax
;LN_FSetSizeByDiMax takes hplc in si, diMax in di and returns
;carry set iff the size of the hplc could be altered by diMax.
;(*hplc)->iMax is adjusted by this routine also.
call LN_FSetSizeByDiMax
ifdef DEBUG
jc SP02
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1009
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
SP02:
endif ;/* DEBUG */
SP025:
cEnd
ifdef DEBUG
SP03:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc SP04
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1010
cCall AssertProcForNative,<ax,bx>
SP04:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je SP05
mov ax,midClsplcn
mov bx,1011
cCall AssertProcForNative,<ax,bx>
SP05:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
ifdef DEBUG
; Assert(!(cx & 1));
SP06:
test cl,1
je SP07
push ax
push bx
push cx
push dx
push ss
pop ds
mov ax,midClsplcn
mov bx,1012
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
SP07:
ret
endif ;/* DEBUG */
;-------------------------------------------------------------------------
; FStretchPlc(hplc, di)
;-------------------------------------------------------------------------
;/* F S T R E T C H P L C */
;/* Assure room in hplc for di more entries. Changes iMax if necessary but does
;not change any other data. Returns fFalse iff no room.
;*/
;EXPORT FStretchPlc(hplc, di)
;struct PLC **hplc;
;int di;
;{
; struct PLC *pplc = *hplc;
; int diNeeded, diRequest;
; %%Function:N_FStretchPlc %%Owner:BRADV
cProc N_FStretchPlc,<PUBLIC,FAR>,<si,di>
ParmW hplc
ParmW diArg
cBegin
mov di,[diArg]
mov si,[hplc]
;LN_FStretchPlc takes hplc in si and di in di.
;The result is returned in ax. ax, bx, cx, dx, di are altered.
call LN_FStretchPlc
cEnd
;LN_FStretchPlc takes hplc in si and di in di.
;The result is returned in ax. ax, bx, cx, dx, di are altered.
LN_FStretchPlc:
; Assert(vfUrgentAlloc);
ifdef DEBUG
cmp [vfUrgentAlloc],fFalse
jne FSP01
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1013
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
FSP01:
endif ;DEBUG
; AssertH(hplc);
ifdef DEBUG
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov cx,1014 ; label # for native assert
cCall AssertHForNative,<si, ax, cx>
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
; if ((diNeeded = di - (pplc->iMax - pplc->iMac - 1)) <= 0)
;/* there is already sufficient space, do nothing */
; return fTrue;
mov bx,[si]
mov cx,di
sub di,[bx.iMaxPlc]
add di,[bx.iMacPlcStr]
inc di
mov ax,fTrue
jle FSP03
; else
;/* we need to expand beyond current max */
; {
; if (di == 1 && !vfInCommit &&
; (diRequest = pplc->iMax/4) > diNeeded)
;/* if just growing by one, try to grow by a larger increment first */
; {
;ax = 1, bx = pplc, cx = di, si = hplc, di = diNeeded
errnz <fTrue - 1>
cmp cx,ax
jne FSP02
cmp [vfInCommit],fFalse
jne FSP02
mov dx,[bx.iMaxPlc]
shr dx,1
shr dx,1
cmp dx,di
jle FSP02
; BOOL f;
; int matSave;
;/* we don't want to hand over swap space just to give a plc extra entries so
; we declare that the first allocation we will try is non-urgent. */
; vfUrgentAlloc = fFalse;
errnz <fTrue - fFalse - 1>
dec ax
mov [vfUrgentAlloc],ax
; matSave = vmerr.mat;
push [vmerr.matMerr]
; f = FStretchPlc2(hplc, diRequest);
push di ;save diNeeded
mov di,dx
;LN_FStretchPlc2 takes hplc in si, di in di and returns
;the result in ax. ax, bx, cx, dx, di are altered.
call LN_FStretchPlc2
pop di ;restore diNeeded
; vfUrgentAlloc = fTrue;
errnz <fTrue - fFalse - 1>
inc [vfUrgentAlloc]
; if (f)
; return fTrue;
pop dx ;remove matSave from stack
or ax,ax
jne FSP03
; /* if 1st alloc failed, restore vmerr flag in case
; 2nd try succeeds.
; */
; vmerr.mat = matSave;
mov [vmerr.matMerr],dx
; }
FSP02:
; return FStretchPlc2(hplc, diNeeded);
;LN_FStretchPlc2 takes hplc in si, di in di and returns
;the result in ax. ax, bx, cx, dx, di are altered.
call LN_FStretchPlc2
; }
;}
FSP03:
ret
;-------------------------------------------------------------------------
; FStretchPlc2(hplc, di)
;-------------------------------------------------------------------------
;/* F S T R E T C H P L C 2 */
;/* Grows iMax by exactly di. Returns fFalse iff no room.
;*/
;FStretchPlc2(hplc, di)
;struct PLC **hplc;
;int di;
;{
; struct PLC *pplc = *hplc;
; long lcb;
; int iMaxNew;
;LN_FStretchPlc2 takes hplc in si, di in di and returns
;the result in ax. ax, bx, cx, dx, di are altered.
LN_FStretchPlc2:
;/* don't let plc overflow iMac */
; if ((iMaxNew = pplc->iMax + di) < 0)
; {
; SetErrorMat(matMem);
; return fFalse;
; }
mov bx,[si]
mov dx,di
add dx,[bx.iMaxPlc]
clc
jl FSP201
; if (pplc->fExternal)
; if (vfInCommit)
;/* should already be big enough */
; Assert(CbOfHq(pplc->hqplce) >= lcb);
; else
; {
; HQ hq = pplc->hqplce;
; if (!FChngSizePhqLcb(&hq, lcb)) /* HM */
; return fFalse;
; (*hplc)->hqplce = hq;
; }
; else
; if (vfInCommit)
;/* should already be big enough */
; Assert(CbOfH(hplc) >= lcb + cbPLCBase);
; else
; {
;/* protect against cb overflow */
; if ((lcb += cbPLCBase) > 0x00007fff)
; {
; SetErrorMat(matMem);
; return fFalse;
; }
; if (!FChngSizeHCw(hplc, CwFromCch((uns)lcb), fFalse))
; return fFalse;
; }
;LN_FSetSizeByDiMax takes hplc in si, diMax in di and returns
;carry set iff the size of the hplc could be altered by diMax.
;(*hplc)->iMax is adjusted by this routine also.
call LN_FSetSizeByDiMax
FSP201:
sbb ax,ax
je FSP202
; pplc = *hplc;
;/* push rgfoo tables from old pos, up by di CP's */
; BltInPlc(bpmFoo, hplc, 0, di, 0, pplc->iMac);
; pplc->iMax += di;
;***Begin in-line BltInPlc
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
push si ;save hplc
push di ;save di argument
mov bx,si
mov si,[si]
mov si,[si.iMacPlcStr]
ifdef DEBUG
mov di,1 ;O.K. to pass iMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call FSP203
endif ;DEBUG
pop ax ;restore di argument
dec si
dec si ;adjust for post-decrement
mov di,si
shl ax,1
shl ax,1
sub si,ax
mov ax,[bx.iMacPlcStr]
mul cx
xchg ax,cx
ifdef DEBUG
; /* Assert (!(cx & 1)) with a call so as not to mess up
; short jumps */
call FSP206
endif ;/* DEBUG */
shr cx,1
push es
pop ds
std
rep movsw
cld
push ss
pop ds
;***End in-line BltInPlc
pop si ;restore hplc
; return fTrue;
mov ax,fTrue
;}
FSP202:
ret
ifdef DEBUG
FSP203:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc FSP204
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1015
cCall AssertProcForNative,<ax,bx>
FSP204:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je FSP205
mov ax,midClsplcn
mov bx,1016
cCall AssertProcForNative,<ax,bx>
FSP205:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
ifdef DEBUG
; Assert(!(cx & 1));
FSP206:
test cl,1
je FSP207
push ax
push bx
push cx
push dx
push ss
pop ds
mov ax,midClsplcn
mov bx,1021
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
FSP207:
ret
endif ;/* DEBUG */
;LN_FSetSizeByDiMax takes hplc in si, diMax in di and returns
;carry set iff the size of the hplc could be altered by diMax.
;(*hplc)->iMax is adjusted by this routine also.
LN_FSetSizeByDiMax:
; lcb = (long)(iMaxNew-1)*(pplc->cb + sizeof(CP)) + sizeof(CP);
mov bx,[si]
;Assembler note: assert we have an external plc here because no
;one creates internal PLC's anymore.
ifdef DEBUG
test [bx.fExternalPlc],maskFExternalPlc
jne FSSBIM01
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1017
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
FSSBIM01:
endif ;DEBUG
mov ax,[bx.cbPlc]
add ax,4
mov dx,[bx.iMaxPlc]
add dx,di
dec dx
ifdef DEBUG
jge FSSBIM02
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1018
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
FSSBIM02:
endif ;DEBUG
mul dx
add ax,4
adc dx,0
clc
jnz FSSBIM06
; if (vfInCommit)
; Assert(CbOfHq(pplc->hqplce) >= lcb);
;#define CbOfHq(hq) (*((uns HUGE *)HpOfHq(hq)-1))
mov dx,[bx.LO_hqplcePlc]
mov bx,[bx.HI_hqplcePlc]
push bx
push dx ;save hqplce in memory
ifdef DEBUG
push dx ;save low hqplce
endif ;DEBUG
call LN_ReloadSb
ifdef DEBUG
pop bx ;restore low hqplce
endif ;DEBUG
cmp [vfInCommit],fFalse
ifdef DEBUG
jne FSSBIM07
else ;not DEBUG
jne FSSBIM04
endif ;DEBUG
; else
; {
; HQ hqplce = pplc->hqplce; /* WARNING: heap may move */
; if (!FChngSizePhqLcb(&hqplce, lcb)) /* HM */
; return fFalse;
; (*hplc)->hqplce = hqplce;
; }
mov bx,sp
xor cx,cx
cCall FChngSizePhqLcb,<bx, cx, ax>
or ax,ax
je FSSBIM05
FSSBIM04:
mov bx,[si]
pop [bx.LO_hqplcePlc]
pop [bx.HI_hqplcePlc]
add [bx.iMaxPlc],di
stc
db 0B8h ;turns "pop dx, pop bx" to "mov ax,immediate"
FSSBIM05:
pop dx
pop bx ;remove hqplce from stack
FSSBIM06:
ret
ifdef DEBUG
FSSBIM07:
push ax
push bx
push cx
push dx
mov bx,es:[bx]
cmp ax,es:[bx-2]
push bx
push ax
jbe FSSBIM08
mov ax,midClsplcn
mov bx,1019
cCall AssertProcForNative,<ax,bx>
FSSBIM08:
pop ax
pop bx
pop dx
pop cx
pop bx
pop ax
jmp FSSBIM04
endif ;DEBUG
LN_ReloadSb:
push ax ;save lcb
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc RS01
; reload sb trashes ax, cx, and dx
cCall ReloadSb,<>
RS01:
ifdef DEBUG
mov bx,[wFillBlock]
mov cx,[wFillBlock]
mov dx,[wFillBlock]
endif ;DEBUG
pop ax ;restore lcb
ret
;-------------------------------------------------------------------------
; MiscPlcLoops(hplc, iFirst, iLim, pResult, wRoutine)
;-------------------------------------------------------------------------
;HANDNATIVE C_MiscPlcLoops(hplc, iFirst, iLim, pResult, wRoutine)
;struct PLC **hplc;
;int iFirst;
;int iLim;
;char *pResult;
;int wRoutine;
;{
; union {
; struct PAD pad;
; struct PGD pgd;
; struct PHE phe;
; struct SED sed;
; struct FRD frd;
; struct PCD pcd;
; } foo;
; int ifoo;
; %%Function:N_MiscPlcLoops %%Owner:BRADV
cProc N_MiscPlcLoops,<PUBLIC,FAR>,<si,di>
ParmW hplc
ParmW iFirst
ParmW iLim
ParmW pResult
ParmW wRoutine
cBegin
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,[hplc]
mov si,[iFirst]
ifdef DEBUG
mov di,1 ;O.K. to pass ifldMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call MSL09
endif ;DEBUG
xchg ax,cx
mov cx,[iLim]
sub cx,[iFirst]
jle MSL08
mov di,[pResult]
; if (wRoutine == 0 /* SetPlcUnk */)
; {
cmp bptr ([wRoutine]),1
jae MSL02
; for (ifoo = iFirst; ifoo < iLim; ifoo++)
; {
; GetPlc(hplc, ifoo, &foo);
; foo.pad.fUnk = fTrue;
; PutPlcLast(hplc, ifoo, &foo);
; }
MSL01:
or es:[si.fUnkPgd],maskFUnkPgd
add si,ax
loop MSL01
; }
jmp short MSL08
; if (wRoutine == 1 /* NAutoFtn */)
; {
MSL02:
ja MSL05
; for (ifoo = iFirst; ifoo < iLim; ifoo++)
; {
; GetPlc(hplc, ifoo, &foo);
; *((int *)pResult) += foo.frd.fAuto;
; }
mov bx,[di]
; Assert(hplc->cb == 2);
ifdef DEBUG
cmp ax,2
je MSL03
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1023
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
MSL03:
endif ;/* DEBUG */
MSL04:
lods wptr es:[si]
add bx,ax
loop MSL04
mov [di],bx
jmp short MSL08
; }
; if (wRoutine == 2 /* MarkAllReferencedFn */)
; {
MSL05:
; for (ifoo = iFirst; ifoo < iLim; ifoo++)
; {
; GetPlc(hplc, ifoo, &foo);
; Assert(foo.pcd.fn < fnMax);
; Assert(fnNil == 0);
; pResult[foo.pcd.fn] = fTrue;
; }
xor bx,bx
MSL06:
mov bl,es:[si.fnPcd]
ifdef DEBUG
cmp bl,fnMax
jb MSL07
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1024
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
MSL07:
endif ;/* DEBUG */
mov bptr [bx+di],fTrue
add si,ax
loop MSL06
; }
MSL08:
;}
cEnd
ifdef DEBUG
MSL09:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc MSL10
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1025
cCall AssertProcForNative,<ax,bx>
MSL10:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je MSL11
mov ax,midClsplcn
mov bx,1026
cCall AssertProcForNative,<ax,bx>
MSL11:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
; End of MiscPlcLoops
;-------------------------------------------------------------------------
; CopyMultPlc( cFoo, hplcSrc, ifooSrc, hplcDest, ifooDest,
; dcp, di, dc )
;-------------------------------------------------------------------------
;/* C O P Y M U L T P L C */
;/* this routine can copy a block of entries from one plc to another (needs
;separate base registers in 8086 architecture).
;Dcp optionally (!=0) added to the copied cp's.
;di (0 or 1) is optional displacement for cp indeces. In some plc's it is
;necessary to move cp[i + 1] with foo[i].
;dc (0 or 1) is optional extra count for cp copying. In some plc's it is
;necessary to move one more cp's than foo's.
;*/
;native CopyMultPlc(cFoo, hplcSrc, ifooSrc, hplcDest, ifooDest, dcp, di, dc)
;int cFoo;
;struct PLC **hplcSrc, **hplcDest;
;int ifooSrc, ifooDest;
;CP dcp;
;int di, dc;
;{
; %%Function:CopyMultPlc %%Owner:BRADV
cProc CopyMultPlc,<PUBLIC,FAR>,<si,di>
ParmW cFoo
ParmW hplcSrc
ParmW ifooSrc
ParmW hplcDest
ParmW ifooDest
ParmD dcp
ParmW diArg
ParmW dcArg
LocalW <OFF_lprgcpSrc>
LocalW <OFF_lprgcpDest>
cBegin
; AssertH( hplcSrc );
; AssertH( hplcDest );
ifdef DEBUG
push ax
push bx
push cx
push dx
mov ax,midClsplcn
mov bx,1027
cCall AssertHForNative,<hplcSrc, ax, bx>
mov ax,midClsplcn
mov bx,1028
cCall AssertHForNative,<hplcDest, ax, bx>
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
; save old cFoo, ifooSrc, ifooDest for blt.
push [cFoo]
; ifooSrc += di; ifooDest += di;
;Assembler note: add diArg to the ifoos only when we need them.
mov di,[diArg]
; cFoo += dc;
mov ax,[dcArg]
add [cFoo],ax
;/* unwind the fenced PLC optimization, so that cps are accurate. */
; if ((*hplcDest)->icpAdjust < ifooDest)
; AdjustHplcCpsToLim(hplcDest, ifooDest);
; if ((*hplcSrc)->icpAdjust < ifooSrc + cFoo)
; AdjustHplcCpsToLim(hplcSrc, ifooSrc + cFoo);
mov bx,[hplcSrc]
mov si,[bx]
mov ax,[ifooSrc]
add ax,di
add ax,[cFoo]
cmp ax,[si.icpAdjustPlc]
jle CMP03
cCall AdjustHplcCpsToLim,<bx,ax>
CMP03:
mov bx,[hplcDest]
mov si,[bx]
mov ax,[ifooDest]
add ax,di
cmp ax,[si.icpAdjustPlc]
jle CMP04
cCall AdjustHplcCpsToLim,<bx,ax>
CMP04:
;/* we must move the destination adjustment fence past the end of the range
; we're going to write over. */
; if ((*hplcDest)->icpAdjust < ifooDest + cFoo)
; (*hplcDest)->icpAdjust = ifooDest + cFoo;
; di = *hplcDest
mov ax,[ifooDest]
add ax,di
add ax,[cFoo]
cmp ax,[si.icpAdjustPlc]
jle CMP05
mov [si.icpAdjustPlc],ax
CMP05:
; /* transfer foo's */
; NOTE: We don't check for cFoo == 0 in the assembler version
; because the blt code does necessary segment reloading.
; if (cFoo > 0)
; bltbx(QInPlc(hplcSrc, ifooSrc), QInPlc(hplcDest, ifooDest), (*hplcSrc)->cb * cFoo);
; It is possible that the call later on to ReloadSb for hplcDest
; would force out the sb for hplcSrc. This would happen if now
; sbSrc was oldest on the LRU list but still swapped in, and sbDest
; was swapped out. In that event ReloadSb would not be called for
; sbSrc, the LRU entry would not get updated, and the call to ReloadSb
; for sbDest would swap out sbSrc.
; This call to QcpQfooPlcfoo makes that state impossible and so works
; around the LMEM quirk.
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,[hplcDest]
xor si,si
ifdef DEBUG
mov di,1 ;O.K. to pass ifldMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call CMP12
endif ;DEBUG
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,[hplcSrc]
mov si,[ifooSrc]
ifdef DEBUG
mov di,1 ;O.K. to pass ifldMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call CMP12
endif ;DEBUG
mov [OFF_lprgcpSrc],di
push es
push si ;save lpFooSrc
; QcpQfooPlcfoo takes hplcfoo in bx, ifoo in si, it returns pplcfoo
; in bx, cbfoo in cx, qcp in es:di, qfoo in es:si.
; if DEBUG it returns hpcp in dx:di, hpfoo in dx:si.
; Changes ax, bx, cx, dx, si, di.
mov bx,[hplcDest]
mov si,[ifooDest]
ifdef DEBUG
mov di,1 ;O.K. to pass ifldMac
endif ;DEBUG
cCall N_QcpQfooPlcfoo,<>
ifdef DEBUG
;Check that es == mpsbps[dx];
call CMP12
endif ;DEBUG
mov [OFF_lprgcpDest],di
mov di,si
pop si
pop ds ;restore lpFooSrc
pop ax ;restore old cFoo
mul ss:[bx.cbPlc]
xchg ax,cx
cmp si,di ; reverse direction of the blt if
jae CMP08 ; necessary
add si,cx
add di,cx
std
dec si
dec di
dec si
dec di
CMP08:
shr cx,1
ifdef DEBUG
jnc CMP085
push ax
push bx
push cx
push dx
cld
mov ax,midClsplcn
mov bx,1029
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
CMP085:
endif ;/* DEBUG */
rep movsw
cld
; CP far *lprgcpSrc = LprgcpForPlc(*hplcSrc);
; CP far *lprgcpDest = LprgcpForPlc(*hplcDest);
mov ax,[diArg]
shl ax,1
shl ax,1
mov si,[OFF_lprgcpSrc]
add si,ax
mov di,[OFF_lprgcpDest]
add di,ax
; /* transfer cp's */
; bltbx((char far *)(lprgcpSrc) + ifooSrc * sizeof(CP),
; (char far *)(lprgcpDest) + ifooDest * sizeof(CP),
; cFoo * sizeof(CP));
; if (dcp != cp0)
; while (cFoo--)
; {
; PutCpPlc(hplcDest, ifooDest, CpPlc(hplcDest, ifooDest) + dcp);
; ifooDest++;
; }
mov bx,[OFF_dcp]
mov dx,[SEG_dcp]
mov cx,[cFoo]
push bp
xor bp,bp
cmp si,di
ja CMP09
mov bp,cx
dec bp
shl bp,1
shl bp,1
add si,bp
add di,bp
mov bp,8
CMP09:
inc cx ;adjust for loop instruction
jmp short CMP11
CMP10:
lodsw
add ax,bx
stosw
lodsw
adc ax,dx
stosw
sub si,bp
sub di,bp
CMP11:
loop CMP10
pop bp
push ss
pop ds
;}
cEnd
ifdef DEBUG
CMP12:
push ax
push bx
push cx
push dx
push es ;save es from QcpQfooPlcfoo
mov bx,dx
shl bx,1
mov ax,mpsbps[bx]
mov es,ax
shr ax,1
jc CMP13
;Assembler note: There is no way we should have to call ReloadSb here.
; reload sb trashes ax, cx, and dx
; cCall ReloadSb,<>
mov ax,midClsplcn
mov bx,1030
cCall AssertProcForNative,<ax,bx>
CMP13:
pop ax ;restore es from QcpQfooPlcfoo
mov bx,es ;compare with es rederived from the SB of QcpQfooPlcfoo
cmp ax,bx
je CMP14
mov ax,midClsplcn
mov bx,1031
cCall AssertProcForNative,<ax,bx>
CMP14:
pop dx
pop cx
pop bx
pop ax
ret
endif ;/* DEBUG */
; End of CopyMultPlc
sEnd clsplcn
end
| 20.235629 | 87 | 0.621618 |
bdb9061b7a74246cfc4a396cdda8161dfd018f57 | 3,737 | asm | Assembly | arch/x86/pic.asm | pi-pi3/funky-kernel | e6938c0e75e5aabf49cc94f6720250f21bf94900 | [
"Zlib"
] | null | null | null | arch/x86/pic.asm | pi-pi3/funky-kernel | e6938c0e75e5aabf49cc94f6720250f21bf94900 | [
"Zlib"
] | null | null | null | arch/x86/pic.asm | pi-pi3/funky-kernel | e6938c0e75e5aabf49cc94f6720250f21bf94900 | [
"Zlib"
] | null | null | null | bits 32
%define pic1_com 020h
%define pic1_dat 021h
%define pic2_com 0a0h
%define pic2_dat 0a1h
extern io_wait
section .text
;; void init_pic(offset1, offset2)
global init_pic:function (init_pic.end - init_pic)
init_pic:
push ebp
mov ebp, esp
sub esp, 8
;; save masks
in al, pic1_dat
mov [ebp - 4], al
in al, pic2_dat
mov [ebp - 8], al
;; starts the initialization sequence (in cascade mode)
mov al, 11h
out pic1_com, al
call io_wait
mov al, 11h
out pic2_com, al
call io_wait
;; offset both pics
mov al, [ebp + 8]
out pic1_dat, al
call io_wait
mov al, [ebp + 12]
out pic2_dat, al
call io_wait
;; icw3: tell master pic that there is a slave pic at irq2 (0000 0100)
mov al, 100b
out pic1_dat, al
call io_wait
;; icw3: tell slave pic its cascade identity (0000 0010)
mov al, 10b
out pic2_dat, al
call io_wait
;; 8086/88 mode
mov al, 1h
out pic1_dat, al
call io_wait
mov al, 1h
out pic2_dat, al
call io_wait
;; eoi
mov al, 20h
out pic1_com, al
call io_wait
mov al, 20h
out pic2_com, al
call io_wait
mov al, [ebp - 4]
out pic1_dat, al
mov al, [ebp - 8]
out pic2_dat, al
add esp, 8
pop ebp
ret
.end:
; void pic_setmask(char line)
global pic_setmask:function (pic_setmask.end - pic_setmask)
pic_setmask:
push ebp
mov ebp, esp
push ebx
mov cl, [ebp + 8]
cmp cl, 8h
jge .slave
.master:
mov dx, pic1_dat
jmp .endif
.slave:
mov dx, pic2_dat
sub cl, 8
.endif:
in al, dx
mov bl, 1
shl bl, cl
or al, bl
out dx, al
pop ebx
pop ebp
ret
.end:
; void pic_clearmask(int line)
global pic_clearmask:function (pic_clearmask.end - pic_clearmask)
pic_clearmask:
push ebp
mov ebp, esp
push ebx
mov cl, [ebp + 8]
cmp cl, 8h
jge .slave
.master:
mov dx, pic1_dat
jmp .endif
.slave:
mov dx, pic2_dat
sub cl, 8
.endif:
in al, dx
mov bl, 1
shl bl, cl
not bl
and al, bl
out dx, al
pop ebx
pop ebp
ret
.end:
; void pic_setall()
global pic_setall:function (pic_setall.end - pic_setall)
pic_setall:
push ebp
mov ebp, esp
push ebx
mov al, 0ffh
out pic1_dat, al
out pic2_dat, al
pop ebx
pop ebp
ret
.end:
; void pic_clearall()
global pic_clearall:function (pic_clearall.end - pic_clearall)
pic_clearall:
push ebp
mov ebp, esp
push ebx
mov al, 0h
out pic1_dat, al
out pic2_dat, al
pop ebx
pop ebp
ret
.end:
; void pic_eoi(int number)
global pic_eoi:function (pic_eoi.end - pic_eoi)
pic_eoi:
push ebp
mov ebp, esp
mov al, 20h
cmp byte [ebp + 8], 8
jl .master
out pic2_com, al
.master:
out pic1_com, al
pop ebp
ret
.end:
| 19.983957 | 78 | 0.466685 |
148fca10a70ad89702793dad1203954a483b9397 | 702 | asm | Assembly | libsrc/gfx/wide/w_point_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/gfx/wide/w_point_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/gfx/wide/w_point_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; ----- int point_callee(int x, int y)
;Result is true/false
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION code_graphics
PUBLIC point_callee
PUBLIC _point_callee
PUBLIC asm_point
EXTERN swapgfxbk
EXTERN swapgfxbk1
EXTERN w_pointxy
INCLUDE "graphics/grafix.inc"
.point_callee
._point_callee
pop bc
pop de ; y
pop hl ; x
push bc
.asm_point
push ix
IF NEED_swapgfxbk = 1
call swapgfxbk
ENDIF
call w_pointxy
IF NEED_swapgfxbk = 1
push af
call swapgfxbk1
pop af
ENDIF
pop ix
ld hl,1
ret nz ;pixel set
dec hl
ret
ENDIF
| 16.325581 | 38 | 0.575499 |
1b6defdb026bccbcdb0a8cba9b30c8e4673cbfc9 | 5,461 | asm | Assembly | board.asm | rudla/multiloops | b4e346d95ba6f272bb754252b6fcdb9482d7cc67 | [
"MIT"
] | null | null | null | board.asm | rudla/multiloops | b4e346d95ba6f272bb754252b6fcdb9482d7cc67 | [
"MIT"
] | null | null | null | board.asm | rudla/multiloops | b4e346d95ba6f272bb754252b6fcdb9482d7cc67 | [
"MIT"
] | null | null | null | ;Board size is configures as a number between 0 to BOARD_MAX_SIZE.
BOARD_SIZE_MAX = 3
NextBoardSize .PROC
;Purpose:
; Set next board size.
;Input:
; board_zize
;Output:
; board_h, board_w, board_max_y, board_max_x, board_x, board_y
ldx board_size
cpx #BOARD_SIZE_MAX
sne
ldx #-1
inx
stx board_size
.def :InitBoardSize
;Purpose:
; Set specified predefined board size.
ldy bh,x
sty board_h
dey
sty board_max_y
ldy bw,x
sty board_w
dey
sty board_max_x
lda #SCR_WIDTH
sub board_w
lsr
sta board_x
lda #24 ;maximum board height
sub board_h
lsr
sta board_y
rts
bw dta b(10,20,30,39)
bh dta b(6,12,18,24)
.ENDP
TileAdr .PROC
;a x coordinate
;y y coordinate
clc
adc board_x
pha
tya
adc board_y
tay
pla
jmp ScreenAdr
.ENDP
GenerateBoard .PROC
;20 vs. 24
lda board_h
lsr
lsr
sta b2
lda board_h
sbc b2
sta b2
@ jsr AddToBoard
dec b2
bne @-
lda #0
sta loose
sta loose+1
rts
.ENDP
AddToBoard .PROC
mva board_w b1
gen_hor
@ ;y pos
lda RANDOM
and #31
cmp board_h
bcs @-
tay
@ ;x pos
lda RANDOM
and #63
cmp board_max_x
bcs @-
jsr TileAdr
ldy #0
lda (scr),y
ora #f_right
sta (scr),y
iny
lda (scr),y
ora #f_left
sta (scr),y
dec b1
bne gen_hor
;------------------------
lda board_w
; adc board_w
sta b1
gen_vert
@ ;y pos
lda RANDOM
and #31
cmp board_max_y
bcs @-
tay
@ ;x pos
lda RANDOM
and #63
cmp board_w
bcs @-
jsr TileAdr
ldy #0
lda (scr),y
ora #f_down
sta (scr),y
; ldy #40
; lda (scr),y
; ora #f_up+f_down
; sta (scr),y
ldy #40
lda (scr),y
ora #f_up
sta (scr),y
dec b1
bne gen_vert
rts
.ENDP
ShuffleBoard .PROC
mva board_w aux ;4
a1 mva board_h b2 ;255
@ jsr ShuffleTile
dec b2
bne @-
dec aux
bne a1
rts
.ENDP
ShuffleTile .PROC
@ ;y pos
lda RANDOM
and #31
cmp board_h
bcs @-
tay
@ ;x pos
lda RANDOM
and #63
cmp board_w
bcs @-
jsr RotateTile
rts
.ENDP
RotTileAdr .PROC
jsr TileAdr
lda scr
sec
sbc #BOARD_WIDTH+1
sta scr
scs
dec scr+1
rts
.ENDP
RotateTile .PROC
;In:
; a x
; y y
;Out:
; b2 Original tile before rotation
; b3 tile after rotation
jsr RotTileAdr
jsr LooseEnds
stx b1 ;loose = loose - x
lda loose
sec
sbc b1
sta loose
scs
dec loose+1
ldy #BOARD_WIDTH+1
lda (scr),y
tax
sta b2
lda rot,x
sta (scr),y
sta b3
jsr LooseEnds
txa ;loose =loose + x
clc
adc loose
sta loose
scc
inc loose+1
rts
.ENDP
;
; +-------+
; 0 | 1 |
; | |
; +-------+-------+-------+
; | BW | BW+1 | BW+2 |
; | | | |
; +-------+-------+-------+
; | 2*BW+1|
; | |
; +-------+
LooseEnds .PROC
ldy #BOARD_WIDTH+1
lda (scr),y
sta b1
ldx #0 ;number of loose ends
;DOWN
ldy #1
lda (scr),y ;down = 4
and #f_down
lsr
lsr
eor b1
and #1
beq no_up
inx
no_up
lsr b1
;RIGHT
ldy #BOARD_WIDTH+2
lda (scr),y ;left = 8
lsr
lsr
lsr
eor b1
and #1
beq no_right
inx
no_right
lsr b1
;DOWN
ldy #2*BOARD_WIDTH+1
lda (scr),y ;up = 1
eor b1
and #1
beq no_down
inx
no_down
lsr b1
;LEFT
ldy #BOARD_WIDTH
lda (scr),y ;right = 2
lsr
eor b1
and #1
beq no_left
inx
no_left
rts
.ENDP
rot
dta b(%0000) ;%0000
dta b(%1000) ;%0001
dta b(%0001) ;%0010
dta b(%1001) ;%0011
dta b(%0010) ;%0100
dta b(%1010) ;%0101
dta b(%0011) ;%0110
dta b(%1011) ;%0111
dta b(%0100) ;%1000
dta b(%1100) ;%1001
dta b(%0101) ;%1010
dta b(%1101) ;%1011
dta b(%0110) ;%1100
dta b(%1110) ;%1101
dta b(%0111) ;%1110
dta b(%1111) ;%1111
/*
dta b(%0000) ;%0000
dta b(%0001) ;%0001
dta b(%0010) ;%0010
dta b(%0011) ;%0011
dta b(%0100) ;%0100
dta b(%0101) ;%0101
dta b(%0110) ;%0110
dta b(%0111) ;%0111
dta b(%1000) ;%1000
dta b(%1001) ;%1001
dta b(%1010) ;%1010
dta b(%1011) ;%1011
dta b(%1100) ;%1100
dta b(%1101) ;%1101
dta b(%1110) ;%1110
dta b(%1111) ;%1111
*/
HiliteLooseEnds .PROC
mva board_max_y b2
line
mva board_max_x aux
@
lda aux
ldy b2
jsr RotTileAdr
jsr LooseEndsAtThisTile
cpx #0
beq no_loose
ldy #SCR_WIDTH+1
lda (scr),y
eor #128
sta (scr),y
no_loose
dec aux
bpl @-
dec b2
bpl line
rts
.ENDP
LooseEndsAtThisTile .PROC
ldy #BOARD_WIDTH+1
lda (scr),y
sta b1
ldx #0 ;number of loose ends
;--- UP
lsr b1
bcc no_up
ldy #1
lda (scr),y
and #f_down
bne no_up
inx
no_up
;--- RIGHT
lsr b1
bcc no_right
ldy #BOARD_WIDTH+2
lda (scr),y ;down = 4
and #f_left
bne no_right
inx
no_right
;--- DOWN
lsr b1
bcc no_down
ldy #BOARD_WIDTH*2+1
lda (scr),y ;down = 4
and #f_up
bne no_down
inx
no_down
;--- LEFT
lsr b1
bcc no_left
ldy #BOARD_WIDTH
lda (scr),y ;down = 4
and #f_right
bne no_left
inx
no_left
rts
.ENDP
| 13.127404 | 67 | 0.524995 |
62e0a07e5e540e89617bd7ea121575d019cd681b | 379 | asm | Assembly | programs/oeis/010/A010096.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/010/A010096.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/010/A010096.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A010096: log2*(n) (version 1): number of times floor(log_2(x)) is used in floor(log_2(floor(log_2(...(floor(log_2(n)))...)))) = 0.
; 1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
mov $1,6
mov $3,$0
mul $3,4
mul $1,$3
mov $2,$1
cmp $2,0
add $1,$2
log $1,7
add $1,1
| 29.153846 | 159 | 0.548813 |
1c7a5f4f6cd42bcd996046070ddd65cb390d3dab | 341 | asm | Assembly | programs/oeis/141/A141101.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/141/A141101.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/141/A141101.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A141101: a(n) = prime(2*n) - n*2.
; 1,3,7,11,19,25,29,37,43,51,57,65,75,79,83,99,105,115,125,133,139,149,153,175,179,187,197,207,213,221,231,247,251,269,279,287,299,307,319,329,339,349,357,369,373,387,397,407,423,441,455,465,471,485,491,501
mov $2,$0
mul $0,2
seq $0,98090 ; Numbers k such that 2k-3 is prime.
sub $0,$2
mul $0,2
sub $0,5
| 34.1 | 206 | 0.665689 |
b78262f9a91e1006f13b6c8b40e54859dfb09d94 | 314 | asm | Assembly | programs/oeis/318/A318666.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/318/A318666.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/318/A318666.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A318666: a(n) = 2^{the 3-adic valuation of n}.
; 1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,8,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,8,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,16,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,4,1
add $0,1
mov $1,1
lpb $0
dif $0,3
mul $1,2
lpe
mov $0,$1
| 28.545455 | 202 | 0.519108 |
408799d89a8acb5e59a609522b363f66c5a08360 | 3,663 | asm | Assembly | Transynther/x86/_processed/US/_st_sm_/i7-7700_9_0xca_notsx.log_134_899.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_sm_/i7-7700_9_0xca_notsx.log_134_899.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_sm_/i7-7700_9_0xca_notsx.log_134_899.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xf39b, %rsi
lea addresses_WT_ht+0x10f5b, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
inc %r13
mov $118, %rcx
rep movsl
nop
nop
and %r11, %r11
lea addresses_normal_ht+0x1c05b, %rsi
lea addresses_WC_ht+0x1d11b, %rdi
nop
xor %r13, %r13
mov $5, %rcx
rep movsl
nop
xor %rcx, %rcx
lea addresses_A_ht+0x1005b, %r10
nop
and %rdi, %rdi
mov $0x6162636465666768, %r11
movq %r11, (%r10)
nop
nop
nop
xor $4618, %r11
lea addresses_A_ht+0x1815b, %rcx
sub %rax, %rax
mov (%rcx), %r11d
nop
nop
nop
add %rax, %rax
lea addresses_WT_ht+0x1af65, %rcx
nop
nop
dec %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm1
vmovups %ymm1, (%rcx)
nop
nop
nop
nop
nop
dec %r11
lea addresses_UC_ht+0x154cb, %rsi
lea addresses_normal_ht+0xd48, %rdi
clflush (%rsi)
xor $15959, %r9
mov $91, %rcx
rep movsq
nop
nop
sub $43020, %r11
lea addresses_D_ht+0x1455b, %r13
nop
nop
nop
nop
and $29541, %rax
mov (%r13), %r9d
dec %r11
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r8
push %rax
push %rbx
push %rdi
// Store
lea addresses_PSE+0x475b, %rax
nop
nop
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %r8
movq %r8, %xmm5
movups %xmm5, (%rax)
nop
add $52373, %r8
// Store
lea addresses_US+0x7f5b, %r12
clflush (%r12)
nop
nop
nop
nop
nop
cmp $3404, %rdi
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
xor %r8, %r8
// Faulty Load
lea addresses_US+0x7f5b, %rbx
nop
nop
add %rdi, %rdi
mov (%rbx), %r12
lea oracles, %r14
and $0xff, %r12
shlq $12, %r12
mov (%r14,%r12,1), %r12
pop %rdi
pop %rbx
pop %rax
pop %r8
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'52': 134}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 21.934132 | 401 | 0.65329 |
1d7456e7ab0cb864d69080f1d84aa74860bdbc3f | 95 | asm | Assembly | src/main/fragment/mos6502-common/vwsm1=vwsm1_plus_pbsz2_derefidx_vbuyy .asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/vwsm1=vwsm1_plus_pbsz2_derefidx_vbuyy .asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/vwsm1=vwsm1_plus_pbsz2_derefidx_vbuyy .asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | clc
lda ({z2}),y
adc {m1}
sta {m1}
lda ({z2}),y
ora #$7f
bmi !+
lda #0
!:
adc {m1}+1
sta {m1}+1 | 8.636364 | 12 | 0.515789 |
c8b4fedcf2866394125f1954b6b143e959612ce5 | 1,154 | asm | Assembly | maps/Route31VioletGate.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | maps/Route31VioletGate.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | maps/Route31VioletGate.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | object_const_def ; object_event constants
const ROUTE31VIOLETGATE_OFFICER
const ROUTE31VIOLETGATE_COOLTRAINER_F
Route31VioletGate_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route31VioletGateOfficerScript:
jumptextfaceplayer Route31VioletGateOfficerText
Route31VioletGateCooltrainerFScript:
jumptextfaceplayer Route31VioletGateCooltrainerFText
Route31VioletGateOfficerText:
text "Hi there!"
line "Did you visit"
cont "SPROUT TOWER?"
done
Route31VioletGateCooltrainerFText:
text "I came too far"
line "out. I'd better"
cont "phone home!"
done
Route31VioletGate_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
warp_event 0, 4, VIOLET_CITY, 8
warp_event 0, 5, VIOLET_CITY, 9
warp_event 9, 4, ROUTE_31, 1
warp_event 9, 5, ROUTE_31, 2
db 0 ; coord events
db 0 ; bg events
db 2 ; object events
object_event 5, 2, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route31VioletGateOfficerScript, -1
object_event 1, 2, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route31VioletGateCooltrainerFScript, -1
| 26.227273 | 165 | 0.785962 |
773a5c60d31914a31bbeef1d8fdc18e102d92be4 | 326 | asm | Assembly | macros/rst.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | macros/rst.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | macros/rst.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | FarCall EQU $08
Bankswitch EQU $10
JumpTable EQU $28
farcall: MACRO ; bank, address
ld a, BANK(\1)
ld hl, \1
rst FarCall
ENDM
callfar: MACRO ; address, bank
ld hl, \1
ld a, BANK(\1)
rst FarCall
ENDM
homecall: MACRO
ldh a, [hROMBank]
push af
ld a, BANK(\1)
rst Bankswitch
call \1
pop af
rst Bankswitch
ENDM
| 12.538462 | 30 | 0.674847 |
2f057d1046834280e57ea7e362fb75d9bc4c0d98 | 407 | asm | Assembly | oeis/053/A053610.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/053/A053610.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/053/A053610.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A053610: Number of positive squares needed to sum to n using the greedy algorithm.
; Submitted by Jon Maiga
; 1,2,3,1,2,3,4,2,1,2,3,4,2,3,4,1,2,3,4,2,3,4,5,3,1,2,3,4,2,3,4,5,3,2,3,1,2,3,4,2,3,4,5,3,2,3,4,5,1,2,3,4,2,3,4,5,3,2,3,4,5,3,4,1,2,3,4,2,3,4,5,3,2,3,4,5,3,4,5,2,1,2,3,4,2,3,4,5,3,2,3,4,5,3,4,5,2,3,4,1
add $0,1
lpb $0
add $1,1
mov $2,1
lpb $0
sub $2,2
add $0,$2
lpe
lpe
mov $0,$1
| 27.133333 | 201 | 0.565111 |
d27b1ded909f79649229ee80d0f24cb7afcf93ee | 5,178 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1266.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1266.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1266.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1d7a1, %rdx
sub $16889, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm6
vmovups %ymm6, (%rdx)
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_UC_ht+0xe3e9, %r9
nop
xor %rdi, %rdi
mov $0x6162636465666768, %r8
movq %r8, %xmm5
movups %xmm5, (%r9)
nop
nop
nop
nop
nop
inc %rbp
lea addresses_A_ht+0x3ff1, %rsi
lea addresses_A_ht+0x1ec69, %rdi
nop
nop
nop
sub %r11, %r11
mov $20, %rcx
rep movsw
nop
nop
nop
xor %rdi, %rdi
lea addresses_UC_ht+0x190a1, %rdi
nop
nop
nop
and %rsi, %rsi
mov (%rdi), %dx
nop
nop
nop
cmp %r8, %r8
lea addresses_WT_ht+0x15669, %r14
nop
nop
dec %rdx
vmovups (%r14), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %rbp
nop
nop
nop
and $9811, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rax
// Faulty Load
lea addresses_RW+0x110a1, %r11
nop
cmp %r15, %r15
mov (%r11), %r9
lea oracles, %r11
and $0xff, %r9
shlq $12, %r9
mov (%r11,%r9,1), %r9
pop %rax
pop %r9
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 43.881356 | 2,999 | 0.659714 |
484ba5f7815f8cb2a867e99a56fce3c6a0bf0cef | 655 | asm | Assembly | oeis/055/A055612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/055/A055612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/055/A055612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A055612: a(n) = Product_{m=1..n} (binomial(n,m)+1).
; Submitted by Christian Krause
; 1,2,6,32,350,8712,526848,80289792,31428168318,31906468445000,84447578671097576,584524457418427932672,10604795873304968964262400,505245441738743508813986275328,63320582170435750241601032951040000,20908669294849228879861552351685432573952,18218185986931789013337257184583689511975529598,41947018866905081917547399417064936413487021265102728,255561302721594894729925794418711649664082279698713102625000,4125043817182827926533243343423323292834951236997434089686488320000
mov $1,1
mov $2,$0
lpb $0
sub $0,1
mov $3,$2
bin $3,$0
add $3,1
mul $1,$3
lpe
mov $0,$1
| 43.666667 | 469 | 0.842748 |
c620a90883cdfec2c5a3f9b98c53a23397dda812 | 582 | asm | Assembly | oeis/195/A195026.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/195/A195026.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/195/A195026.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A195026: a(n) = 7*n*(2*n + 1).
; 0,21,70,147,252,385,546,735,952,1197,1470,1771,2100,2457,2842,3255,3696,4165,4662,5187,5740,6321,6930,7567,8232,8925,9646,10395,11172,11977,12810,13671,14560,15477,16422,17395,18396,19425,20482,21567,22680,23821,24990,26187,27412,28665,29946,31255,32592,33957,35350,36771,38220,39697,41202,42735,44296,45885,47502,49147,50820,52521,54250,56007,57792,59605,61446,63315,65212,67137,69090,71071,73080,75117,77182,79275,81396,83545,85722,87927,90160,92421,94710,97027,99372,101745,104146,106575,109032
sub $1,$0
sub $1,$0
bin $1,2
mul $1,7
mov $0,$1
| 64.666667 | 499 | 0.769759 |
dcb7aed0f87541316e4ded0db4a62d372192a547 | 622 | asm | Assembly | oeis/296/A296965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/296/A296965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/296/A296965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A296965: Expansion of x*(1 - x + 2*x^2) / ((1 - x)*(1 - 2*x)).
; 0,1,2,6,14,30,62,126,254,510,1022,2046,4094,8190,16382,32766,65534,131070,262142,524286,1048574,2097150,4194302,8388606,16777214,33554430,67108862,134217726,268435454,536870910,1073741822,2147483646,4294967294,8589934590,17179869182,34359738366,68719476734,137438953470,274877906942,549755813886,1099511627774,2199023255550,4398046511102,8796093022206,17592186044414,35184372088830,70368744177662,140737488355326,281474976710654,562949953421310,1125899906842622,2251799813685246,4503599627370494
mov $1,2
pow $1,$0
mov $2,2
dif $2,$1
trn $1,$2
mov $0,$1
| 62.2 | 497 | 0.807074 |
01fd8bfda8493b757a835b825af09b25305a13ef | 1,103 | asm | Assembly | programs/oeis/200/A200905.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/200/A200905.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/200/A200905.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A200905: 3*phi(n), where phi (A000010) is the Euler totient function.
; 3,3,6,6,12,6,18,12,18,12,30,12,36,18,24,24,48,18,54,24,36,30,66,24,60,36,54,36,84,24,90,48,60,48,72,36,108,54,72,48,120,36,126,60,72,66,138,48,126,60,96,72,156,54,120,72,108,84,174,48,180,90,108,96,144,60,198,96,132,72,210,72,216,108,120,108,180,72,234,96,162,120,246,72,192,126,168,120,264,72,216,132,180,138,216,96,288,126,180,120,300,96,306,144,144,156,318,108,324,120,216,144,336,108,264,168,216,174,288,96,330,180,240,180,300,108,378,192,252,144,390,120,324,198,216,192,408,132,414,144,276,210,360,144,336,216,252,216,444,120,450,216,288,180,360,144,468,234,312,192,396,162,486,240,240,246,498,144,468,192,324,252,516,168,360,240,348,264,534,144,540,216,360,264,432,180,480,276,324,216,570,192,576,288,288,252,588,180,594,240,396,300,504,192,480,306,396,288,540,144,630,312,420,318,504,216,540,324,432,240,576,216,666,288,360,336,678,216,684,264,360,336,696,216,552,348,468,288,714,192,720,330,486,360,504,240,648,360,492,300
cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
mov $1,$0
mul $1,3
| 157.571429 | 932 | 0.722575 |
f1d4d85733fc872483a11903feac3c4bacc89c52 | 385 | asm | Assembly | oeis/052/A052594.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052594.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052594.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052594: E.g.f. x(1+x-2x^2)/(1-2x).
; Submitted by Christian Krause
; 0,1,6,24,192,1920,23040,322560,5160960,92897280,1857945600,40874803200,980995276800,25505877196800,714164561510400,21424936845312000,685597979049984000,23310331287699456000
mov $2,2
cmp $2,$0
add $2,2
lpb $0
add $3,1
lpb $3
mul $2,$0
sub $0,$3
mul $2,2
div $3,10
lpe
lpe
mov $0,$2
div $0,4
| 20.263158 | 174 | 0.688312 |
1083396772dfbe51b35fcbd90cbab05bdfcda78c | 7,901 | asm | Assembly | MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm | sususweet/MSP430F541x-MSP430F543x-Code-Examples | 183b45c1aea66c1e71f717c697159acc4261d9cd | [
"Apache-2.0"
] | null | null | null | MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm | sususweet/MSP430F541x-MSP430F543x-Code-Examples | 183b45c1aea66c1e71f717c697159acc4261d9cd | [
"Apache-2.0"
] | null | null | null | MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm | sususweet/MSP430F541x-MSP430F543x-Code-Examples | 183b45c1aea66c1e71f717c697159acc4261d9cd | [
"Apache-2.0"
] | null | null | null | ; --COPYRIGHT--,BSD_EX
; Copyright (c) 2012, Texas Instruments Incorporated
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
;
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
;
; * Redistributions in binary form must reproduce the above copyright
; notice, this list of conditions and the following disclaimer in the
; documentation and/or other materials provided with the distribution.
;
; * Neither the name of Texas Instruments Incorporated nor the names of
; its contributors may be used to endorse or promote products derived
; from this software without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;
; ******************************************************************************
;
; MSP430 CODE EXAMPLE DISCLAIMER
;
; MSP430 code examples are self-contained low-level programs that typically
; demonstrate a single peripheral function or device feature in a highly
; concise manner. For this the code may rely on the device's power-on default
; register values and settings such as the clock configuration and care must
; be taken when combining code from several examples to avoid potential side
; effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware
; for an API functional library-approach to peripheral configuration.
;
; --/COPYRIGHT--
;******************************************************************************
; MSP430F543xA Demo - ADC12_A, Repeated Single Channel Conversions
;
; Description: This example shows how to perform repeated conversions on a
; single channel using "repeat-single-channel" mode. AVcc is used for the
; reference and repeated conversions are performed on Channel A0. Each
; conversion result is moved to an 8-element array called results[]. Test by
; applying a voltage to channel A0, then running. Open a watch window in
; debugger and view the results. Set Breakpoint1 in the index increment line
; to see the array value change sequentially and Breakpoint to see the entire
; array of conversion results in "results[]" for the specified Num_of_Results.
; This can run even in LPM4 mode as ADC has its own clock (MODOSC)
;
; MSP430F5438A
; -----------------
; /|\| |
; | | |
; --|RST |
; | |
; Vin -->|P6.0/A0 |
; | |
;
;
; D. Dang
; Texas Instruments Inc.
; December 2009
; Built with CCS Version: 4.0.2
;******************************************************************************
.cdecls C,LIST,"msp430.h"
;-------------------------------------------------------------------------------
.def RESET ; Export program entry-point to
; make it known to linker.
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
.bss results,16
;-------------------------------------------------------------------------------
.global _main
.text ; Assemble to Flash memory
;-------------------------------------------------------------------------------
_main
RESET mov.w #0x5C00,SP ; Initialize stackpointer
mov.w #WDTPW + WDTHOLD,&WDTCTL; Stop WDT
clr.w R4 ; Clear the array index
bis.b #0x01,&P6SEL ; Enable A/D channel inputs
mov.w #ADC12ON + ADC12MSC + ADC12SHT0_8,&ADC12CTL0
; Turn on ADC12, set sampling time
; set multiple sample conversion
mov.w #ADC12SHP + ADC12CONSEQ_2,&ADC12CTL1
; Use sampling timer, set mode
mov.w #0x01,&ADC12IE ; Enabled ADC12IFG.0
bis.w #ADC12ENC,&ADC12CTL0 ; Enable conversions
bis.w #ADC12SC,&ADC12CTL0 ; Start conversion - sw trigger
bis.w #LPM4 + GIE,SR ; Enter LPM0, enable interrupts
nop ; Only for debugging purposes
;-------------------------------------------------------------------------------
ADC12_ISR
;-------------------------------------------------------------------------------
add.w &ADC12IV,PC ; Add offset to PC
reti ; Vector 0: No interrupt
reti ; Vector 2: ADC overflow
reti ; Vector 4: ADC timing overflow
jmp ADC12IFG0_HND ; Vector 6: ADC12IFG0
reti ; Vector 8: ADC12IFG1
reti ; Vector 10: ADC12IFG2
reti ; Vector 12: ADC12IFG3
reti ; Vector 14: ADC12IFG4
reti ; Vector 16: ADC12IFG5
reti ; Vector 18: ADC12IFG6
reti ; Vector 20: ADC12IFG7
reti ; Vector 22: ADC12IFG8
reti ; Vector 24: ADC12IFG9
reti ; Vector 26: ADC12IFG10
reti ; Vector 28: ADC12IFG11
reti ; Vector 30: ADC12IFG12
reti ; Vector 32: ADC12IFG13
reti ; Vector 34: ADC12IFG14
ADC12IFG0_HND
rla.w R4 ; Index * 2 > indirect offset
mov.w &ADC12MEM0,0x1C00(R4) ; Move A0 results, IFG is cleared
rra.w R4 ; Indirect offset / 2 > index
inc.w R4 ; Increment arr_index
cmp.b #0x08,R4 ; Is arr_index < 8 ?
jne exit_isr ; yes -> Jump to exit_isr
clr R4 ; no -> Clear arr_index
nop ; Set breakpoint here
exit_isr reti ; Return from interrupt
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".int55" ; ADC12 isr vector
.short ADC12_ISR
.sect ".reset" ; POR, ext. Reset
.short RESET
.end
| 54.116438 | 83 | 0.471712 |
2b71a6bb889921b054b81ed570b57b6f172c33d5 | 434 | asm | Assembly | src/mods/horv_via_undeploysinto.asm | mvdhout1992/ts-patches | a426970abeb6993eea6703d1a756fd74489ffed2 | [
"MIT"
] | 33 | 2016-07-30T14:17:28.000Z | 2021-12-19T15:45:19.000Z | src/mods/horv_via_undeploysinto.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 73 | 2018-08-17T00:25:19.000Z | 2021-05-10T08:31:15.000Z | src/mods/horv_via_undeploysinto.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 18 | 2017-05-16T11:28:06.000Z | 2022-03-20T20:41:03.000Z | %include "macros/patch.inc"
; This hack allows specifying different "harvester without back" units
; for different harvesters via the UndeploysInto= key
; With this we're able to have unique refineries and harvesters for TD and RA factions
; Credits to AlexB for the original hack
@SET 0x00653D89, {mov cl, [esi+36Dh]}
@SET 0x00653D8F, {test cl, cl}
@SET 0x00653D93, {mov eax, [eax+278h]}
@SET 0x00653D99, nop
@SET 0x00653D9A, nop
| 31 | 86 | 0.75576 |
adf6daeb8ac8e3694d77150f95127ca5be512217 | 1,005 | asm | Assembly | oeis/269/A269963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/269/A269963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/269/A269963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A269963: Start with a square; at each stage add a square at each expandable vertex so that the ratio between the side of the squares at stage n+1 and at stage n is the golden ratio phi=0.618...; a(n) is the number of squares in a portion of the n-th stage (see below).
; Submitted by Jon Maiga
; 1,2,7,16,37,82,187,428,985,2262,5191,11904,27301,62618,143635,329476,755761,1733566,3976447,9121160,20922109,47991138,110082091,252506316,579198985,1328566598,3047466007,6990277456,16034298325,36779473258,84364755139,193515873812,443886707809,1018187322318,2335518061615,5357211287832,12288371155885,28187065536626,64655490421339,148306762766428,340186049768377,780318754845526,1789895145842503,4105661453369312,9417566167959685,21602013106831482,49550697276260083,113659388521855908
mov $2,2
lpb $0
sub $0,1
add $4,$1
mul $1,2
add $3,1
add $1,$3
add $2,2
div $3,2
mul $4,2
add $5,$2
mov $2,$3
mov $3,$5
sub $3,$1
add $4,3
div $4,2
add $2,$4
mul $2,2
lpe
mov $0,$1
add $0,1
| 38.653846 | 485 | 0.755224 |
6a2248ab9ad21e11dbf96bf9b8e56acba997d05e | 348 | asm | Assembly | programs/oeis/160/A160929.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/160/A160929.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/160/A160929.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A160929: a(n)= n * reversal(n-1)
; 0,2,6,12,20,30,42,56,72,90,11,132,273,434,615,816,1037,1278,1539,1820,42,264,506,768,1050,1352,1674,2016,2378,2760,93,416,759,1122,1505,1908,2331,2774,3237,3720,164,588,1032,1496,1980,2484,3008,3552,4116,4700
mov $1,$0
add $0,1
seq $1,4086 ; Read n backwards (referred to as R(n) in many sequences).
mul $0,$1
| 43.5 | 210 | 0.704023 |
6e97e7d68a92fd95d29ad1e981e7d1d2be08d0f7 | 705 | asm | Assembly | oeis/346/A346671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/346/A346671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/346/A346671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A346671: a(n) = Sum_{k=0..n} binomial(7*k,k) / (6*k + 1).
; 1,2,9,79,898,11370,153148,2150836,31140511,461462144,6964815000,106691488130,1654539334220,25923944408960,409770113121064,6526344613981944,104632592920840659,1687270854882480906,27348675382672733281,445328790513987869681,7281393330439106226281,119498775340776757409417,1967786083936251118489127,32503335269747632909877527,538394064947601594090813457,8941191905777265167857132039,148842029321175117478130598931,2483206724534065074201902918585,41513359908526050913009306370625
mov $3,$0
mov $5,$0
lpb $5
mov $0,$3
sub $5,1
sub $0,$5
mov $2,6
mul $2,$0
add $0,$2
bin $0,$2
add $2,1
div $0,$2
add $4,$0
lpe
mov $0,$4
add $0,1
| 35.25 | 476 | 0.784397 |
986c932c1efbb6fa814259c764454935b8070faf | 17,452 | asm | Assembly | enduser/netmeeting/av/codecs/intel/h261/i386/cx51282.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/netmeeting/av/codecs/intel/h261/i386/cx51282.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/netmeeting/av/codecs/intel/h261/i386/cx51282.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ;*************************************************************************
;** INTEL Corporation Proprietary Information
;**
;** This listing is supplied under the terms of a license
;** agreement with INTEL Corporation and may not be copied
;** nor disclosed except in accordance with the terms of
;** that agreement.
;**
;** Copyright (c) 1995 Intel Corporation.
;** All Rights Reserved.
;**
;*************************************************************************
;//
;// $Header: S:\h26x\src\dec\cx51282.asv
;//
;// $Log: S:\h26x\src\dec\cx51282.asv $
;//
;// Rev 1.6 18 Mar 1996 09:58:42 bnickers
;// Make color convertors non-destructive.
;//
;// Rev 1.5 05 Feb 1996 13:35:38 BNICKERS
;// Fix RGB16 color flash problem, by allowing different RGB16 formats at oce.
;//
;// Rev 1.4 16 Jan 1996 11:23:08 BNICKERS
;// Fix starting point in output stream, so we don't start at line two and
;// write off the end of the output frame.
;//
;// Rev 1.3 22 Dec 1995 15:53:50 KMILLS
;// added new copyright notice
;//
;// Rev 1.2 03 Nov 1995 14:39:42 BNICKERS
;// Support YUV12 to CLUT8 zoom by 2.
;//
;// Rev 1.1 26 Oct 1995 09:46:10 BNICKERS
;// Reduce the number of blanks in the "proc" statement because the assembler
;// sometimes has problems with statements longer than 512 characters long.
;//
;// Rev 1.0 25 Oct 1995 17:59:22 BNICKERS
;// Initial revision.
;//
;////////////////////////////////////////////////////////////////////////////
; +---------- Color convertor.
; |+--------- For both H261 and H263.
; ||+-------- Version for the Pentium Microprocessor.
; |||++------ Convert from YUV12.
; |||||+----- Convert to CLUT8.
; ||||||+---- Zoom by two.
; |||||||
; cx51282 -- This function performs YUV12 to CLUT8 zoom-by-2 color conversion
; for H26x. It is tuned for best performance on the Pentium(r)
; Microprocessor. It dithers among 9 chroma points and 26 luma
; points, mapping the 8 bit luma pels into the 26 luma points by
; clamping the ends and stepping the luma by 8.
;
; The color convertor is non-destructive; the input Y, U, and V
; planes will not be clobbered.
OPTION PROLOGUE:None
OPTION EPILOGUE:ReturnAndRelieveEpilogueMacro
include locals.inc
include ccinst.inc
include decconst.inc
.xlist
include memmodel.inc
.list
.DATA
; any data would go here
.CODE
ASSUME cs : FLAT
ASSUME ds : FLAT
ASSUME es : FLAT
ASSUME fs : FLAT
ASSUME gs : FLAT
ASSUME ss : FLAT
; void FAR ASM_CALLTYPE YUV12ToCLUT8ZoomBy2 (U8 * YPlane,
; U8 * VPlane,
; U8 * UPlane,
; UN FrameWidth,
; UN FrameHeight,
; UN YPitch,
; UN VPitch,
; UN AspectAdjustmentCount,
; U8 * ColorConvertedFrame,
; U32 DCIOffset,
; U32 CCOffsetToLine0,
; IN CCOPitch,
; IN CCType)
;
; CCOffsetToLine0 is relative to ColorConvertedFrame.
;
PUBLIC YUV12ToCLUT8ZoomBy2
; due to the need for the ebp reg, these parameter declarations aren't used,
; they are here so the assembler knows how many bytes to relieve from the stack
YUV12ToCLUT8ZoomBy2 proc DIST LANG AYPlane: DWORD,
AVPlane: DWORD,
AUPlane: DWORD,
AFrameWidth: DWORD,
AFrameHeight: DWORD,
AYPitch: DWORD,
AVPitch: DWORD,
AAspectAdjustmentCnt: DWORD,
AColorConvertedFrame: DWORD,
ADCIOffset: DWORD,
ACCOffsetToLine0: DWORD,
ACCOPitch: DWORD,
ACCType: DWORD
LocalFrameSize = 64+768*2+4
RegisterStorageSize = 16
; Arguments:
YPlane_arg = RegisterStorageSize + 4
VPlane_arg = RegisterStorageSize + 8
UPlane_arg = RegisterStorageSize + 12
FrameWidth_arg = RegisterStorageSize + 16
FrameHeight = RegisterStorageSize + 20
YPitch_arg = RegisterStorageSize + 24
ChromaPitch_arg = RegisterStorageSize + 28
AspectAdjustmentCount_arg = RegisterStorageSize + 32
ColorConvertedFrame = RegisterStorageSize + 36
DCIOffset = RegisterStorageSize + 40
CCOffsetToLine0 = RegisterStorageSize + 44
CCOPitch_arg = RegisterStorageSize + 48
CCType_arg = RegisterStorageSize + 52
EndOfArgList = RegisterStorageSize + 56
; Locals (on local stack frame)
CCOCursor EQU [esp+ 0]
ChromaLineLen EQU [esp+ 4]
YLimit EQU [esp+ 8]
YCursor EQU [esp+12]
VCursor EQU [esp+16]
DistanceFromVToU EQU [esp+20]
EndOfChromaLine EQU [esp+24]
AspectCount EQU [esp+28]
FrameWidth EQU [esp+32]
ChromaPitch EQU [esp+36]
AspectAdjustmentCount EQU [esp+40]
LumaPitch EQU [esp+44]
CCOPitch EQU [esp+48]
StashESP EQU [esp+52]
ChromaContribution EQU [esp+64]
push esi
push edi
push ebp
push ebx
mov edi,esp
sub esp,LocalFrameSize
and esp,0FFFFF800H
mov eax,[edi+FrameWidth_arg]
mov ebx,[edi+ChromaPitch_arg]
mov ecx,[edi+AspectAdjustmentCount_arg]
mov edx,[edi+YPitch_arg]
mov esi,[edi+CCOPitch_arg]
mov FrameWidth,eax
mov ChromaPitch,ebx
mov AspectAdjustmentCount,ecx
mov AspectCount,ecx
mov LumaPitch,edx
mov CCOPitch,esi
mov ebx,[edi+VPlane_arg]
mov ecx,[edi+UPlane_arg]
mov eax,[edi+YPlane_arg]
sub ecx,ebx
mov DistanceFromVToU,ecx
mov VCursor,ebx
mov YCursor,eax
mov eax,[edi+ColorConvertedFrame]
add eax,[edi+DCIOffset]
add eax,[edi+CCOffsetToLine0]
mov CCOCursor,eax
mov StashESP,edi
mov edx,[edi+FrameHeight]
mov ecx,LumaPitch
imul edx,ecx
mov ebx,FrameWidth
mov esi,YCursor ; Fetch cursor over luma plane.
sar ebx,1
add edx,esi
mov ChromaLineLen,ebx
mov YLimit,edx
NextTwoLines:
; Convert line of U and V pels to the corresponding UVDitherPattern Indices.
;
; Register Usage
;
; edi -- Cursor over V line
; esi -- Cursor over storage to hold preprocessed UV.
; ebp -- Distance from V line to U line.
; edx -- UVDitherPattern index: ((V:{0:8}*9) + U:{0:8}) * 2 + 1
; bl -- U pel value
; cl -- V pel value
; eax -- Scratch
mov edi,VCursor ; Fetch address of pel 0 of next line of V.
mov ebp,DistanceFromVToU ; Fetch span from V plane to U plane.
lea esi,ChromaContribution
mov eax,ChromaLineLen
mov edx,ChromaPitch
add eax,edi
mov EndOfChromaLine,eax
add edx,edi
mov bl,[edi] ; Fetch first V pel.
;
and ebx,0FCH ; Reduce to 6 bits.
mov cl,[edi+ebp*1] ; Fetch first U pel.
and ecx,0FCH ; Reduce to 6 bits.
mov VCursor,edx ; Stash for next time around.
@@:
mov edx,PD UVDitherLine01[ebx] ; Fetch dither pattern for V point.
mov bl,[edi+1] ; Fetch next V pel.
mov eax,PD UVDitherLine23[ecx] ; Fetch dither pattern for U point.
mov cl,[edi+ebp*1+1] ; Fetch next U pel.
lea edx,[edx+edx*2+00A0A0A0AH] ; Weight V dither pattern.
and bl,0FCH ; Reduce to 6 bits.
add eax,edx ; Combine dither patterns for U and V.
and cl,0FCH ; Reduce to 6 bits.
mov edx,PD UVDitherLine01[ebx] ; Fetch dither pattern for V point.
mov [esi],eax ; Stash UV corresponding to Y00,Y01,Y10,Y11.
mov eax,PD UVDitherLine23[ecx] ; Fetch dither pattern for U point.
mov bl,[edi+2] ; Fetch next V pel.
lea edx,[edx+edx*2+00A0A0A0AH] ; Weight V dither pattern.
mov cl,[edi+ebp*1+2] ; Fetch next U pel.
add eax,edx ; Combine dither patterns for U and V.
mov edx,EndOfChromaLine ; Fetch EOL address.
mov [esi+4],eax ; Stash UV corresponding to Y02,Y03,Y12,Y13.
add edi,2 ; Advance U plane cursor.
and bl,0FCH ; Reduce to 6 bits.
and cl,0FCH ; Reduce to 6 bits.
add esi,8
sub edx,edi
jne @b
; Now color convert a line of luma.
;
; Register Usage
; edi -- Cursor over line of color converted output frame, minus esi.
; esi -- Cursor over Y line.
; ebp -- Not used.
; edx,eax -- Build output pels.
; ecx,ebx -- Y pels.
mov [esi],edx ; Stash EOL indication.
mov esi,YCursor ; Reload cursor over Y line.
mov edi,CCOCursor ; Fetch output cursor.
mov eax,CCOPitch ; Compute start of next line.
mov bl,[esi+1] ; Fetch Y01.
add eax,edi
mov cl,[esi] ; Fetch Y00.
mov CCOCursor,eax ; Stash start of next line.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y01 Y01 Y01 Y01>.
sub edi,esi ; Get span from Y cursor to CCO cursor.
and edx,0FFFF0000H ; Extract < Y01 Y01 ___ ___>.
sub edi,esi
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y00 Y00 Y00 Y00>.
mov bl,[esi+3] ; Fetch Y03.
and eax,00000FFFFH ; Extract < ___ ___ Y00 Y00>.
mov cl,[esi+2] ; Fetch Y02.
or eax,edx ; < Y01 Y01 Y00 Y00>.
mov edx,ChromaContribution ; Fetch <UV01 UV01 UV00 UV00>.
sub esp,1536
Line0Loop:
add eax,edx ; < P01 P01 P00 P00>.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y03 Y03 Y03 Y03>.
mov Ze [edi+esi*2],eax ; Store four pels to color conv output.
add esi,4 ; Advance cursor.
and edx,0FFFF0000H ; Extract < Y03 Y03 ___ ___>.
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y02 Y02 Y02 Y02>.
and eax,00000FFFFH ; Extract < ___ ___ Y02 Y02>.
mov bl,[esi+1] ; Fetch next Y01.
or eax,edx ; < Y03 Y03 Y02 Y02>.
mov edx,ChromaContribution+1536+4 ; Fetch <UV03 UV03 UV02 UV02>.
add eax,edx ; < P03 P03 P02 P02>.
mov cl,[esi] ; Fetch next Y00.
mov Ze [edi+esi*2+4-8],eax ; Store four pels to color conv output.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y01 Y01 Y01 Y01>.
and edx,0FFFF0000H ; Extract < Y01 Y01 ___ ___>.
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y00 Y00 Y00 Y00>.
and eax,00000FFFFH ; Extract < ___ ___ Y00 Y00>.
mov bl,[esi+3] ; Fetch Y03.
or eax,edx ; < Y01 Y01 Y00 Y00>.
mov edx,ChromaContribution+1536+8 ; Fetch <UV01 UV01 UV00 UV00>.
add esp,8
mov cl,[esi+2] ; Fetch Y02.
test edx,edx
jne Line0Loop
and esp,0FFFFF800H
add esp,0800H
; Color convert same input line, dithering differently.
mov edx,AspectCount
mov edi,CCOCursor ; Fetch output cursor.
sub edx,2
mov eax,CCOPitch ; Compute start of next line.
mov AspectCount,edx
mov esi,YCursor ; Reload cursor over Y line.
mov ebp,AspectAdjustmentCount
jg KeepLine1
add edx,ebp
mov AspectCount,edx
jmp SkipLine1
KeepLine1:
mov bl,[esi+1] ; Fetch Y01.
add eax,edi
mov cl,[esi] ; Fetch Y00.
mov CCOCursor,eax ; Stash start of next line.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y01 Y01 Y01 Y01>.
sub edi,esi ; Get span from Y cursor to CCO cursor.
shl edx,16 ; Extract < Y01 Y01 ___ ___>.
sub edi,esi
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y00 Y00 Y00 Y00>.
mov bl,[esi+3] ; Fetch Y03.
shr eax,16 ; Extract < ___ ___ Y00 Y00>.
mov cl,[esi+2] ; Fetch Y02.
or eax,edx ; < Y01 Y01 Y00 Y00>.
mov edx,ChromaContribution ; Fetch <UV01 UV01 UV00 UV00>.
rol edx,16 ; Swap dither pattern.
sub esp,1536
Line1Loop:
add eax,edx ; < P01 P01 P00 P00>.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y03 Y03 Y03 Y03>.
mov Ze [edi+esi*2],eax ; Store four pels to color conv output.
add esi,4 ; Advance cursor.
shl edx,16 ; Extract < Y03 Y03 ___ ___>.
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y02 Y02 Y02 Y02>.
shr eax,16 ; Extract < ___ ___ Y02 Y02>.
mov bl,[esi+1] ; Fetch next Y01.
or eax,edx ; < Y03 Y03 Y02 Y02>.
mov edx,ChromaContribution+1536+4 ; Fetch <UV03 UV03 UV02 UV02>.
rol edx,16 ; Swap dither pattern.
add esp,8
add eax,edx ; < P03 P03 P02 P02>.
mov cl,[esi] ; Fetch next Y00.
mov Ze [edi+esi*2+4-8],eax ; Store four pels to color conv output.
mov edx,PD YDitherZ2[ebx*4] ; Fetch < Y01 Y01 Y01 Y01>.
shl edx,16 ; Extract < Y01 Y01 ___ ___>.
mov eax,PD YDitherZ2[ecx*4] ; Fetch < Y00 Y00 Y00 Y00>.
shr eax,16 ; Extract < ___ ___ Y00 Y00>.
mov bl,[esi+3] ; Fetch Y03.
or eax,edx ; < Y01 Y01 Y00 Y00>.
mov edx,ChromaContribution+1536 ; Fetch <UV01 UV01 UV00 UV00>.
rol edx,16 ; Swap dither pattern.
mov cl,[esi+2] ; Fetch Y02.
test edx,edx
jne Line1Loop
and esp,0FFFFF800H
add esp,0800H
SkipLine1:
; Now color convert the second input line of luma.
mov esi,YCursor
mov ebp,LumaPitch
mov edi,CCOCursor
mov eax,CCOPitch
mov bl,[esi+ebp*1]
add eax,edi
mov cl,[esi+ebp*1+1]
mov CCOCursor,eax
mov edx,PD YDitherZ2[ebx*4]
sub edi,esi
shl edx,16
sub edi,esi
mov eax,PD YDitherZ2[ecx*4]
mov bl,[esi+ebp*1+2]
shr eax,16
mov cl,[esi+ebp*1+3]
or eax,edx
mov edx,ChromaContribution
rol edx,16
sub esp,1536
Line2Loop:
add eax,edx
mov edx,PD YDitherZ2[ebx*4]
bswap eax
mov Ze [edi+esi*2],eax
add esi,4
shl edx,16
mov eax,PD YDitherZ2[ecx*4]
shr eax,16
mov bl,[esi+ebp*1]
or eax,edx
mov edx,ChromaContribution+1536+4
rol edx,16
add esp,8
add eax,edx
mov cl,[esi+ebp*1+1]
bswap eax
mov Ze [edi+esi*2+4-8],eax
mov edx,PD YDitherZ2[ebx*4]
shl edx,16
mov eax,PD YDitherZ2[ecx*4]
shr eax,16
mov bl,[esi+ebp*1+2]
or eax,edx
mov edx,ChromaContribution+1536
rol edx,16
mov cl,[esi+ebp*1+3]
test edx,edx
jne Line2Loop
and esp,0FFFFF800H
add esp,0800H
; Color convert same input line, dithering differently.
mov esi,YCursor
mov edx,AspectCount
mov edi,CCOCursor
sub edx,2
lea eax,[esi+ebp*2]
mov AspectCount,edx
mov YCursor,eax
jg KeepLine3
add edx,AspectAdjustmentCount
mov AspectCount,edx
jmp SkipLine3
KeepLine3:
mov bl,[esi+ebp*1]
mov eax,CCOPitch
add eax,edi
mov cl,[esi+ebp*1+1]
mov CCOCursor,eax
mov edx,PD YDitherZ2[ebx*4]
sub edi,esi
mov eax,PD YDitherZ2[ecx*4]
and edx,0FFFF0000H
sub edi,esi
mov bl,[esi+ebp*1+2]
and eax,00000FFFFH
mov cl,[esi+ebp*1+3]
or eax,edx
mov edx,ChromaContribution
sub esp,1536
Line3Loop:
add eax,edx
mov edx,PD YDitherZ2[ebx*4]
bswap eax
mov Ze [edi+esi*2],eax
add esi,4
and edx,0FFFF0000H
mov eax,PD YDitherZ2[ecx*4]
and eax,00000FFFFH
mov bl,[esi+ebp*1]
or eax,edx
mov edx,ChromaContribution+1536+4
add eax,edx
mov cl,[esi+ebp*1+1]
bswap eax
mov Ze [edi+esi*2+4-8],eax
mov edx,PD YDitherZ2[ebx*4]
and edx,0FFFF0000H
mov eax,PD YDitherZ2[ecx*4]
and eax,00000FFFFH
mov bl,[esi+ebp*1+2]
or eax,edx
mov edx,ChromaContribution+1536+8
add esp,8
mov cl,[esi+ebp*1+3]
test edx,edx
jne Line3Loop
and esp,0FFFFF800H
add esp,0800H
SkipLine3:
mov esi,YCursor
mov eax,YLimit
cmp eax,esi
jne NextTwoLines
mov esp,StashESP
pop ebx
pop ebp
pop edi
pop esi
rturn
YUV12ToCLUT8ZoomBy2 endp
END
| 33.626204 | 81 | 0.536214 |
0ac17519d6474acc74dea35e1715c1cbdef60b4c | 733 | asm | Assembly | programs/oeis/078/A078070.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/078/A078070.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/078/A078070.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A078070: Expansion of (1-x)/(1 + 2*x + 2*x^2 + x^3).
; 1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3,1,0,1,-3,4,-3
mov $1,$0
add $0,2
add $1,$0
pow $1,2
div $1,3
mov $0,$1
lpb $0,1
sub $0,8
lpe
mov $1,$0
| 52.357143 | 585 | 0.444748 |
de1f2bc74891bfd9a6144b72c2cca164cd311566 | 622 | asm | Assembly | programs/oeis/048/A048701.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/048/A048701.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/048/A048701.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A048701: List of binary palindromes of even length (written in base 10).
; 0,3,9,15,33,45,51,63,129,153,165,189,195,219,231,255,513,561,585,633,645,693,717,765,771,819,843,891,903,951,975,1023,2049,2145,2193,2289,2313,2409,2457,2553,2565,2661,2709,2805,2829,2925,2973,3069,3075,3171,3219,3315,3339,3435,3483,3579,3591,3687,3735,3831,3855,3951,3999,4095,8193,8385,8481,8673,8721,8913,9009,9201,9225,9417,9513,9705,9753,9945,10041,10233,10245,10437,10533,10725,10773,10965,11061,11253,11277,11469,11565,11757,11805,11997,12093,12285,12291,12483,12579,12771
mov $1,$0
lpb $1
mul $0,2
sub $0,$1
div $1,2
lpe
mul $0,3
| 56.545455 | 481 | 0.754019 |
742dc007f58ced750f37dcc1fedbf120b2e403d6 | 1,517 | asm | Assembly | games/Donkey Konga 3/Main.asm | BttrDrgn/GC-Translation | 4d9feab9523bc49c5b23542e28565bc50c1152c7 | [
"Unlicense"
] | 1 | 2022-03-27T09:03:45.000Z | 2022-03-27T09:03:45.000Z | games/Donkey Konga 3/Main.asm | BttrDrgn/GC-Translation | 4d9feab9523bc49c5b23542e28565bc50c1152c7 | [
"Unlicense"
] | null | null | null | games/Donkey Konga 3/Main.asm | BttrDrgn/GC-Translation | 4d9feab9523bc49c5b23542e28565bc50c1152c7 | [
"Unlicense"
] | null | null | null | // GameCube "Donkey Konga 3" Japanese To English Translation
endian msb // GameCube PPC requires Big-Endian Encoding (Most Significant Bit)
output "../../output/Donkey Konga 3 [U].iso", create
origin $000000; insert "../../isos/Donkey Konga 3 [J].iso" // Include Japanese Kururin Squash! ISO
macro Text(OFFSET, TEXT) {
map 0, 0, 256 // Map Default ASCII Chars
origin {OFFSET}
db {TEXT} // ASCII Text To Print
}
macro TextShiftJIS(OFFSET, TEXT) {
// Map Shift-JIS Words
map ' ', $8140
map $2C, $8143 // Comma ","
map '.', $8144
map ':', $8146
map '?', $8148
map '!', $8149
map '~', $8160
map '\s', $8166 // Single Quote "'"
map '\d', $8168 // Double Quote '"'
map '+', $817B
map '&', $8195
map '0', $824F, 10 // Map Numbers
map 'A', $8260, 26 // Map English "Upper Case" Characters
map 'a', $8281, 26 // Map English "Lower Case" Characters
origin {OFFSET}
dw {TEXT} // Shift-JIS Text To Print
}
//Not a real assert, just prints the error message in console and doesn't compile further
macro Assert(MESSAGE) {
"{MESSAGE}\n"
}
macro ReplaceAsset(ORIGIN, FILE, SIZE) {
if !file.exists({FILE}) {
print "{FILE} doesn't exist!"
} else if file.exists({FILE}) {
if (file.size({FILE}) > {SIZE} && {SIZE} != -1) {
Assert("File {FILE} is bigger than Size {SIZE}")
} else if (file.size({FILE}) <= {SIZE}) {
origin {ORIGIN}
insert {FILE}
fill {SIZE} - file.size({FILE})
}
}
}
//Region
Text($3, "E")
include "Resource.asm"
| 26.155172 | 98 | 0.603823 |
10d8d8dc65c0c2a2fb21bf54170c249d6509b4c7 | 13,831 | asm | Assembly | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 26 | 2015-01-05T16:27:43.000Z | 2021-07-10T17:54:34.000Z | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 12 | 2015-11-26T22:17:09.000Z | 2018-06-03T11:47:45.000Z | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 5 | 2015-02-26T03:23:53.000Z | 2021-03-17T07:42:37.000Z | ; freemlib for Neo-Geo - Fix Layer Functions
;==============================================================================;
; [Ranges/Valid Values]
; Combined Cell Location $XXYY, where XX=$0-$27,YY=$00-$1F
; Raw VRAM Address $7000-$74FF
; [Notes]
; Most of these functions change LSPC_INCR values, so it's up to the caller to
; reset LSPC_INCR after calling any function in this file.
; todo:
; * fix_Draw8x16 needs to be easier to use
; * ability to use multiple pages in a single string (currently limited to 1)
; * test fix_ClearAll
; * finish writing fix_Draw16x16
; * finish writing vram <-> 68k ram routines
; * routine for taking a "nametable" and writing it to the fix layer
;==============================================================================;
; fixmac_CalcVRAMAddr
; This macro is slightly complicated...
; 1) Determine if the param passed in is a combined cell location or VRAM address.
; 2) If it's a combined cell location, calculate the VRAM address; otherwise, do nothing.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; (Combined cell location format: $XXYY, where XX=$00-$27,YY=$00-$1F)
; Note: No sanity checking is done here with the ranges.
; (Output)
; d0 [word] output VRAM address
; (Clobbers)
; d5 Used for converting X/Y location to VRAM address
; d6 Used for calculating X coordinate
; d7 Used for calculating Y coordinate
fixmac_CalcVRAMAddr: macro
; 1) do check for vram addr or cell location (d0 >= $7000)
cmpi.w #$7000,d0
bge .fm_CVA_end\@ ; no need to process values $7000 or greater
; 2) Calculate VRAM address from cell location
move.w d0,d7 ; put combined cell location in d7
andi.w #$00FF,d7 ; mask for Y position
move.w d0,d6 ; put combined cell location in d6
andi.w #$FF00,d6 ; mask for X position
asr.w #8,d6 ; shift over
; convert to vram address
; VRAM Address from Cells = $7000 + (X*$20) + (Y)
move.w #$0020,d5 ; store $20 for multiplying
mulu.w d5,d6 ; do X*20
add.w d7,d6 ; add Y
addi.w #$7000,d6 ; add $7000
move.w d6,d0 ; = new value in d0 (other fix functions depend on this)
.fm_CVA_end\@:
endm
;==============================================================================;
; fix_UpdateTile
; Change the tile number and palette index of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New palette index (pppp) and tile number (TTTT tttttttt)
fix_UpdateTile:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w d1,LSPC_DATA ; change tile number and palette index
rts
;==============================================================================;
; fix_ChangeTile
; Change the tile number of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New tile number ($000-$FFF)
; (Clobbers)
; d2 Used for reading from VRAM
fix_ChangeTile:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w LSPC_DATA,d2 ; get current data
andi.w #$F000,d2 ; mask for palette
or.w d2,d1 ; OR with new tile data
move.w d1,LSPC_DATA ; change tile number
rts
;==============================================================================;
; fix_ChangePal
; Change the palette index of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New palette number ($0000-$F000, only incrementing the first value)
; (Clobbers)
; d2 Used for reading from VRAM
fix_ChangePal:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w LSPC_DATA,d2 ; get current data
andi.w #$0FFF,d2 ; mask for tile index
or.w d2,d1 ; OR with new palette
move.w d1,LSPC_DATA ; change palette index
rts
;==============================================================================;
; fix_DrawString
; Draws horizontal text to the screen manually. End code is $FF.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Palette index and tile number MSB
; a0 [long] Pointer to string to draw
; (Clobbers)
; d2 Byte for writing
; d3 Used for temporary tile assembly
fix_DrawString:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
moveq #0,d2 ; set up d2
; set up d3
moveq #0,d3
move.w d1,d3 ; get pal. index and tile number MSB
lsl.w #8,d3 ; shift into upper byte of word
.fix_DrawString_Loop:
cmpi.b #$FF,(a0)
beq.b .fix_DrawString_End
move.b (a0)+,d2 ; read byte from string, increment read position
or.w d3,d2 ; OR with shifted pal. index and tile number MSB
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_DrawString_Loop ; loop until finding $FF
.fix_DrawString_End:
rts
;==============================================================================;
; todo: fix_DrawStringJP (8x8, horizontal version)
; The major difference between this and fix_DrawString is the ability to draw
; dakuten and handakuten (Japanese modifier marks) "properly".
; This was originally coded for FM Studio, but for a more portable solution,
; the IDs of the tenten and maru (dakuten/handakuten) need to be configurable.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Palette index and tile number MSB
; a0 [long] Pointer to string to draw
; (Clobbers)
; d2 Byte for writing
; d3 Used for temporary tile assembly
fix_DrawStringJP:
rts
;==============================================================================;
; fix_Draw8x16
; Draws "normal" 8x16 text to the screen horizontally. End code is $FF.
; "normal 8x16 text" means this font layout:
; A B C D <- top half
; A B C D <- bottom half
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [byte] Palette index
; a0 [long] Pointer to string to draw
; a1 [long] Pointer to character map
; (Clobbers)
; a2 Used for original string pointer
; d2 Byte for writing
; d3 Used for temporary tile assembly and VRAM address changing
fix_Draw8x16:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
movea.l a0,a2 ; copy original string pointer for later
; set up d3
moveq #0,d3
move.b d1,d3 ; get pal. index
andi.w #$F0,d3 ; mask for palette
lsl.w #8,d3 ; shift into upper byte of word
; draw top line
.fix_d8x16_TopLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d8x16_FinishTop
moveq #0,d2 ; set up d2
move.b (a0)+,d2 ; read byte from string, increment read position
lsl.w #1,d2
move.w (a1,d2),d2
or.w d3,d2 ; OR with shifted pal. index
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_d8x16_TopLoop ; loop until finding $FF
.fix_d8x16_FinishTop:
; prepare to draw bottom line
; change VRAM address
move.w d0,d3 ; get original VRAM position
addi.w #$01,d3 ; add +1 for next vertical line
move.w d3,LSPC_ADDR ; set new VRAM address
; reset original string pointer
movea.l a2,a0
; set up d3
moveq #0,d3
move.b d1,d3 ; get pal. index
andi.w #$F0,d3 ; mask for palette
lsl.w #8,d3 ; shift into upper byte of word
; draw bottom line
.fix_d8x16_BotLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d8x16_End
moveq #0,d2 ; set up d2
move.b (a0)+,d2 ; read byte from string, increment read position
lsl.w #1,d2
move.w (a1,d2),d2
addi.b #$10,d2 ; bottom tile is $10 below top tile
or.w d3,d2 ; OR with shifted pal. index
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_d8x16_BotLoop ; loop until finding $FF
.fix_d8x16_End:
rts
;==============================================================================;
; fix_Draw16x16
; Draws "normal" 16x16 text to the screen horizontally. End code is $FF.
; "normal 16x16 text" means this font layout:
; A A <- top left, top right
; A A <- bottom left, bottom right
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 Palette index
; a0 [long] Pointer to string to draw
; a1 [long] Pointer to character map
fix_Draw16x16:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; draw top line
.fix_d16x16_TopLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d16x16_FinishTop
;char and char+1
bra.b .fix_d16x16_TopLoop ; loop until finding $FF
.fix_d16x16_FinishTop:
; prepare to draw bottom line
; change VRAM address
move.w d0,d3 ; get original VRAM position
addi.w #$01,d3 ; add +1 for next vertical line
move.w d3,LSPC_ADDR ; set new VRAM address
; reset loop vars
; draw bottom line
.fix_d16x16_BotLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d16x16_End
;char+$10 and char+$11
bra.b .fix_d16x16_BotLoop ; loop until finding $FF
.fix_d16x16_End:
rts
;==============================================================================;
; fix_DrawRegion
; Draws a rectangular region of tiles using a single palette and tile number MSB.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
; d2 [byte] Palette index and tile number MSB
; a0 [long] Pointer to data to draw
; (Clobbers)
; d5 Combined value to write to VRAM
; d6 Used for column/X size
; d7 Used for row/Y size
fix_DrawRegion:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set initial VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; get rows
move.w d1,d7
andi.w #$FF00,d7
lsr.w #8,d7 ; shift right
; loop 1 (row/Y)
.fix_DrawRegion_Rows:
; get cols
move.w d1,d6
andi.w #$00FF,d6
; loop 2 (column/X)
.fix_DrawRegion_Cols:
moveq #0,d5 ; clear d5 for combiation
move.b d2,d5 ; copy d2 to d5
lsl.w #8,d5 ; shift d2 to upper byte
move.b (a0)+,d5 ; get byte from data
; write data
move.w d5,LSPC_DATA
; loop cols
dbra d6,.fix_DrawRegion_Cols
; update vram address
addi.w #1,d0
move.w d0,LSPC_ADDR
; loop rows
dbra d7,.fix_DrawRegion_Rows
.fix_DrawRegion_End:
rts
;==============================================================================;
; fix_FillRegion
; Fills a rectangular region of tiles with the specified tile.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
; d2 [word] Tile data to use for filling.
fix_FillRegion:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set initial VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; get rows
move.w d1,d7
andi.w #$FF00,d7
lsr.w #8,d7 ; shift right
; loop 1 (row/Y)
.fix_FillRegion_Rows:
; get cols
move.w d1,d6
andi.w #$00FF,d6
; loop 2 (column/X)
.fix_FillRegion_Cols:
move.w d2,LSPC_DATA ; write data
; loop cols
dbra d6,.fix_FillRegion_Cols
; update vram address
addi.w #1,d0
move.w d0,LSPC_ADDR
; loop rows
dbra d7,.fix_FillRegion_Rows
.fix_FillRegion_End:
rts
;------------------------------------------------------------------------------;
; fix_ClearRegion
; Macro for clearing a region using tile $00FF.
; (Params)
; d0 [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
fix_ClearRegion: macro
move.w #$00FF,d2 ; clear tile
jsr fix_FillRegion
endm
;==============================================================================;
; fix_CopyToRAM
; Copies Fix tilemap data from VRAM to 68K RAM.
; (Params)
; a? [long] Starting 68K RAM location
; d? [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d? [word] Copy region size ($XXYY)
fix_CopyToRAM:
; force MESS_OUT busy? (don't modify while we read)
.fix_CopyToRAM_End:
rts
;==============================================================================;
; fix_WriteFromRAM
; Writes Fix tilemap data from 68K RAM to VRAM.
; (Params)
; a? [long] Starting 68K RAM location
; d? [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d? [word] Write region size ($XXYY)
fix_WriteFromRAM:
; force MESS_OUT busy? (don't modify while we write)
.fix_WriteFromRAM_End:
rts
;==============================================================================;
; fix_ClearAll
; Clears all tiles on the fix layer, including the leftmost and rightmost columns.
; Uses tile number $0FF, palette 0.
; (Clobbers)
; d7 Loop counter
fix_ClearAll:
move.w #$7000,LSPC_ADDR ; start at $7000 (end at $74FF)
move.w #1,LSPC_INCR ; VRAM increment +1
move.w #$4FF,d7 ; loop counter (xxx: does it need to be $4FF-1?)
.fix_ClearAll_Loop:
move.w #$00FF,LSPC_DATA ; write blank tile (palette 0, tile $0FF)
dbra d7,.fix_ClearAll_Loop ;loop
rts
| 29.490405 | 90 | 0.620346 |
3fbe020f8553afa1d299c5b7865e45978261d72d | 137,739 | asm | Assembly | ioq3/build/release-js-js/missionpack/game/ai_team.asm | RawTechnique/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 1 | 2021-12-31T10:26:58.000Z | 2021-12-31T10:26:58.000Z | ioq3/build/release-js-js/missionpack/game/ai_team.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 28 | 2019-03-05T20:45:07.000Z | 2019-03-05T20:45:57.000Z | ioq3/build/release-js-js/missionpack/game/ai_team.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | null | null | null | export BotValidTeamLeader
code
proc BotValidTeamLeader 8 4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 0
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
INDIRU4
CNSTU4 0
NEU4 $55
CNSTI4 0
RETI4
ADDRGP4 $54
JUMPV
LABELV $55
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 ClientFromName
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 -1
NEI4 $57
CNSTI4 0
RETI4
ADDRGP4 $54
JUMPV
LABELV $57
CNSTI4 1
RETI4
LABELV $54
endproc BotValidTeamLeader 8 4
bss
align 4
LABELV $60
skip 4
export BotNumTeamMates
code
proc BotNumTeamMates 1064 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 $60
INDIRI4
CNSTI4 0
NEI4 $61
ADDRGP4 $63
ARGP4
ADDRLP4 1032
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $60
ADDRLP4 1032
INDIRI4
ASGNI4
LABELV $61
ADDRLP4 1036
CNSTI4 0
ASGNI4
ADDRLP4 1028
ADDRLP4 1036
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 1036
INDIRI4
ASGNI4
ADDRGP4 $67
JUMPV
LABELV $64
ADDRLP4 0
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 4
ARGP4
ADDRLP4 1040
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1040
INDIRU4
CNSTU4 0
EQU4 $71
ADDRLP4 4
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1044
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1044
INDIRP4
ARGP4
ADDRLP4 1048
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1048
INDIRU4
CNSTU4 0
NEU4 $68
LABELV $71
ADDRGP4 $65
JUMPV
LABELV $68
ADDRLP4 4
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1052
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1052
INDIRP4
ARGP4
ADDRLP4 1056
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1056
INDIRI4
CNSTI4 3
NEI4 $72
ADDRGP4 $65
JUMPV
LABELV $72
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 1060
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1060
INDIRI4
CNSTI4 0
EQI4 $75
ADDRLP4 1028
ADDRLP4 1028
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $75
LABELV $65
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $67
ADDRLP4 0
INDIRI4
ADDRGP4 $60
INDIRI4
GEI4 $77
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $64
LABELV $77
ADDRLP4 1028
INDIRI4
RETI4
LABELV $59
endproc BotNumTeamMates 1064 12
export BotClientTravelTimeToGoal
proc BotClientTravelTimeToGoal 480 16
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 BotAI_GetClientState
CALLI4
pop
ADDRLP4 0+20
ARGP4
ADDRLP4 472
ADDRGP4 BotPointAreaNum
CALLI4
ASGNI4
ADDRLP4 468
ADDRLP4 472
INDIRI4
ASGNI4
ADDRLP4 468
INDIRI4
CNSTI4 0
NEI4 $80
CNSTI4 1
RETI4
ADDRGP4 $78
JUMPV
LABELV $80
ADDRLP4 468
INDIRI4
ARGI4
ADDRLP4 0+20
ARGP4
ADDRFP4 4
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ARGI4
CNSTI4 18616254
ARGI4
ADDRLP4 476
ADDRGP4 trap_AAS_AreaTravelTimeToGoalArea
CALLI4
ASGNI4
ADDRLP4 476
INDIRI4
RETI4
LABELV $78
endproc BotClientTravelTimeToGoal 480 16
bss
align 4
LABELV $84
skip 4
export BotSortTeamMatesByBaseTravelTime
code
proc BotSortTeamMatesByBaseTravelTime 1356 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRLP4 1300
CNSTP4 0
ASGNP4
ADDRLP4 1304
ADDRGP4 gametype
INDIRI4
ASGNI4
ADDRLP4 1304
INDIRI4
CNSTI4 4
EQI4 $87
ADDRLP4 1304
INDIRI4
CNSTI4 5
NEI4 $85
LABELV $87
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1308
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 1308
INDIRI4
CNSTI4 1
NEI4 $88
ADDRLP4 1300
ADDRGP4 ctf_redflag
ASGNP4
ADDRGP4 $86
JUMPV
LABELV $88
ADDRLP4 1300
ADDRGP4 ctf_blueflag
ASGNP4
ADDRGP4 $86
JUMPV
LABELV $85
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1308
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 1308
INDIRI4
CNSTI4 1
NEI4 $90
ADDRLP4 1300
ADDRGP4 redobelisk
ASGNP4
ADDRGP4 $91
JUMPV
LABELV $90
ADDRLP4 1300
ADDRGP4 blueobelisk
ASGNP4
LABELV $91
LABELV $86
ADDRGP4 $84
INDIRI4
CNSTI4 0
NEI4 $92
ADDRGP4 $63
ARGP4
ADDRLP4 1308
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $84
ADDRLP4 1308
INDIRI4
ASGNI4
LABELV $92
ADDRLP4 1312
CNSTI4 0
ASGNI4
ADDRLP4 264
ADDRLP4 1312
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 1312
INDIRI4
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $94
ADDRLP4 268
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 276
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 276
ARGP4
ADDRLP4 1316
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1316
INDIRU4
CNSTU4 0
EQU4 $100
ADDRLP4 276
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1320
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1320
INDIRP4
ARGP4
ADDRLP4 1324
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1324
INDIRU4
CNSTU4 0
NEU4 $98
LABELV $100
ADDRGP4 $95
JUMPV
LABELV $98
ADDRLP4 276
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1328
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1328
INDIRP4
ARGP4
ADDRLP4 1332
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1332
INDIRI4
CNSTI4 3
NEI4 $101
ADDRGP4 $95
JUMPV
LABELV $101
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 268
INDIRI4
ARGI4
ADDRLP4 1336
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1336
INDIRI4
CNSTI4 0
EQI4 $103
ADDRLP4 268
INDIRI4
ARGI4
ADDRLP4 1300
INDIRP4
ARGP4
ADDRLP4 1340
ADDRGP4 BotClientTravelTimeToGoal
CALLI4
ASGNI4
ADDRLP4 272
ADDRLP4 1340
INDIRI4
ASGNI4
ADDRLP4 260
CNSTI4 0
ASGNI4
ADDRGP4 $108
JUMPV
LABELV $105
ADDRLP4 272
INDIRI4
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
GEI4 $109
ADDRLP4 0
ADDRLP4 264
INDIRI4
ASGNI4
ADDRGP4 $114
JUMPV
LABELV $111
ADDRLP4 1344
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ASGNI4
ADDRLP4 1344
INDIRI4
ADDRLP4 4
ADDP4
ADDRLP4 1344
INDIRI4
ADDRLP4 4-4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 1348
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ASGNI4
ADDRLP4 1348
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
ADDRLP4 1348
INDIRI4
CNSTI4 4
SUBI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
LABELV $112
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
LABELV $114
ADDRLP4 0
INDIRI4
ADDRLP4 260
INDIRI4
GTI4 $111
ADDRGP4 $107
JUMPV
LABELV $109
LABELV $106
ADDRLP4 260
ADDRLP4 260
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $108
ADDRLP4 260
INDIRI4
ADDRLP4 264
INDIRI4
LTI4 $105
LABELV $107
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
ADDRLP4 272
INDIRI4
ASGNI4
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ADDRLP4 268
INDIRI4
ASGNI4
ADDRLP4 264
ADDRLP4 264
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 264
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $116
ADDRGP4 $96
JUMPV
LABELV $116
LABELV $103
LABELV $95
ADDRLP4 268
ADDRLP4 268
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $97
ADDRLP4 268
INDIRI4
ADDRGP4 $84
INDIRI4
GEI4 $118
ADDRLP4 268
INDIRI4
CNSTI4 64
LTI4 $94
LABELV $118
LABELV $96
ADDRLP4 264
INDIRI4
RETI4
LABELV $83
endproc BotSortTeamMatesByBaseTravelTime 1356 12
export BotSetTeamMateTaskPreference
proc BotSetTeamMateTaskPreference 36 12
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
ADDRFP4 8
INDIRI4
ASGNI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences
ADDP4
ARGP4
ADDRLP4 0
ARGP4
ADDRGP4 qk_strcpy
CALLP4
pop
LABELV $119
endproc BotSetTeamMateTaskPreference 36 12
export BotGetTeamMateTaskPreference
proc BotGetTeamMateTaskPreference 40 12
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
INDIRI4
CNSTI4 0
NEI4 $122
CNSTI4 0
RETI4
ADDRGP4 $121
JUMPV
LABELV $122
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences
ADDP4
ARGP4
ADDRLP4 36
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 36
INDIRI4
CNSTI4 0
EQI4 $125
CNSTI4 0
RETI4
ADDRGP4 $121
JUMPV
LABELV $125
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
INDIRI4
RETI4
LABELV $121
endproc BotGetTeamMateTaskPreference 40 12
export BotSortTeamMatesByTaskPreference
proc BotSortTeamMatesByTaskPreference 804 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRLP4 788
CNSTI4 0
ASGNI4
ADDRLP4 272
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 788
INDIRI4
ASGNI4
ADDRGP4 $132
JUMPV
LABELV $129
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRLP4 792
ADDRGP4 BotGetTeamMateTaskPreference
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 792
INDIRI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
EQI4 $133
ADDRLP4 796
ADDRLP4 8
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 12
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
ADDRGP4 $134
JUMPV
LABELV $133
ADDRLP4 4
INDIRI4
CNSTI4 2
BANDI4
CNSTI4 0
EQI4 $135
ADDRLP4 796
ADDRLP4 268
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 276
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
ADDRGP4 $136
JUMPV
LABELV $135
ADDRLP4 796
ADDRLP4 272
INDIRI4
ASGNI4
ADDRLP4 272
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 532
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
LABELV $136
LABELV $134
LABELV $130
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $132
ADDRLP4 0
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $129
ADDRFP4 8
CNSTI4 0
ASGNI4
ADDRLP4 792
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 792
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 12
ARGP4
ADDRLP4 8
INDIRI4
CVIU4 4
ADDRLP4 792
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 8
INDIRI4
ADDI4
ASGNI4
ADDRLP4 796
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 796
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 532
ARGP4
ADDRLP4 272
INDIRI4
CVIU4 4
ADDRLP4 796
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 272
INDIRI4
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 276
ARGP4
ADDRLP4 268
INDIRI4
CVIU4 4
ADDRLP4 800
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 268
INDIRI4
ADDI4
ASGNI4
ADDRFP4 8
INDIRI4
RETI4
LABELV $128
endproc BotSortTeamMatesByTaskPreference 804 12
export BotSayTeamOrderAlways
proc BotSayTeamOrderAlways 548 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ADDRFP4 4
INDIRI4
NEI4 $138
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRLP4 256
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 trap_BotGetChatMessage
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 512
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 $140
ARGP4
ADDRLP4 512
ARGP4
ADDRLP4 256
ARGP4
ADDRGP4 Com_sprintf
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 1
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 trap_BotQueueConsoleMessage
CALLV
pop
ADDRGP4 $139
JUMPV
LABELV $138
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
LABELV $139
LABELV $137
endproc BotSayTeamOrderAlways 548 20
export BotSayTeamOrder
proc BotSayTeamOrder 256 12
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 trap_BotGetChatMessage
CALLV
pop
LABELV $141
endproc BotSayTeamOrder 256 12
export BotVoiceChat
proc BotVoiceChat 8 12
ADDRFP4 4
INDIRI4
CNSTI4 -1
NEI4 $143
ADDRGP4 $145
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
ADDRGP4 $144
JUMPV
LABELV $143
ADDRGP4 $146
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
LABELV $144
LABELV $142
endproc BotVoiceChat 8 12
export BotVoiceChatOnly
proc BotVoiceChatOnly 8 12
ADDRFP4 4
INDIRI4
CNSTI4 -1
NEI4 $148
ADDRGP4 $150
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
ADDRGP4 $149
JUMPV
LABELV $148
ADDRGP4 $151
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
LABELV $149
LABELV $147
endproc BotVoiceChatOnly 8 12
export BotSayVoiceTeamOrder
proc BotSayVoiceTeamOrder 0 12
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRGP4 BotVoiceChat
CALLV
pop
LABELV $152
endproc BotSayVoiceTeamOrder 0 12
export BotCTFOrders_BothFlagsNotAtBase
proc BotCTFOrders_BothFlagsNotAtBase 368 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRLP4 352
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 352
INDIRI4
CNSTI4 1
EQI4 $155
ADDRLP4 352
INDIRI4
CNSTI4 2
EQI4 $158
ADDRLP4 352
INDIRI4
CNSTI4 3
EQI4 $164
ADDRGP4 $154
JUMPV
LABELV $158
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $159
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $160
JUMPV
LABELV $159
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $160
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $155
JUMPV
LABELV $164
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $165
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $166
JUMPV
LABELV $165
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $166
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $168
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $170
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $169
JUMPV
LABELV $170
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 260
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $169
JUMPV
LABELV $168
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $169
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $176
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $177
JUMPV
LABELV $176
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $177
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $181
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $155
JUMPV
LABELV $154
ADDRLP4 300
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 4
LEI4 $182
ADDRLP4 300
CNSTI4 4
ASGNI4
LABELV $182
ADDRLP4 360
CNSTF4 1056964608
ASGNF4
ADDRLP4 304
ADDRLP4 360
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 360
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 5
LEI4 $184
ADDRLP4 304
CNSTI4 5
ASGNI4
LABELV $184
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $186
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $191
JUMPV
LABELV $188
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $192
ADDRGP4 $189
JUMPV
LABELV $192
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $194
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $195
JUMPV
LABELV $194
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 260
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $195
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $189
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $191
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $188
ADDRGP4 $187
JUMPV
LABELV $186
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $199
JUMPV
LABELV $196
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $200
ADDRGP4 $197
JUMPV
LABELV $200
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $197
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $199
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $196
LABELV $187
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $205
JUMPV
LABELV $202
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $206
ADDRGP4 $203
JUMPV
LABELV $206
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $181
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $203
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $205
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $202
LABELV $155
LABELV $153
endproc BotCTFOrders_BothFlagsNotAtBase 368 20
export BotCTFOrders_FlagNotAtBase
proc BotCTFOrders_FlagNotAtBase 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $213
ADDRLP4 312
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 312
INDIRI4
CNSTI4 1
EQI4 $214
ADDRLP4 312
INDIRI4
CNSTI4 2
EQI4 $219
ADDRLP4 312
INDIRI4
CNSTI4 3
EQI4 $225
ADDRGP4 $215
JUMPV
LABELV $219
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $214
JUMPV
LABELV $225
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $214
JUMPV
LABELV $215
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $232
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $232
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $234
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $234
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $239
JUMPV
LABELV $236
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $237
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $239
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $236
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $243
JUMPV
LABELV $240
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $241
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $243
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $240
ADDRGP4 $214
JUMPV
LABELV $213
ADDRLP4 312
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 312
INDIRI4
CNSTI4 1
EQI4 $247
ADDRLP4 312
INDIRI4
CNSTI4 2
EQI4 $250
ADDRLP4 312
INDIRI4
CNSTI4 3
EQI4 $254
ADDRGP4 $246
JUMPV
LABELV $250
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $247
JUMPV
LABELV $254
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $247
JUMPV
LABELV $246
ADDRLP4 300
CNSTF4 1045220557
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 2
LEI4 $261
ADDRLP4 300
CNSTI4 2
ASGNI4
LABELV $261
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $263
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $263
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $268
JUMPV
LABELV $265
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $266
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $268
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $265
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $272
JUMPV
LABELV $269
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $270
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $272
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $269
LABELV $247
LABELV $214
LABELV $212
endproc BotCTFOrders_FlagNotAtBase 320 16
export BotCTFOrders_EnemyFlagNotAtBase
proc BotCTFOrders_EnemyFlagNotAtBase 360 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 260
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 260
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $278
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $280
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $284
ADDRGP4 $277
JUMPV
LABELV $280
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $281
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $282
JUMPV
LABELV $281
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $282
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $278
JUMPV
LABELV $284
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $285
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $286
JUMPV
LABELV $285
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $286
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $288
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $289
JUMPV
LABELV $288
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $289
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $278
JUMPV
LABELV $277
ADDRLP4 300
CNSTF4 1058642330
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 6
LEI4 $293
ADDRLP4 300
CNSTI4 6
ASGNI4
LABELV $293
ADDRLP4 304
CNSTF4 1050253722
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 3
LEI4 $295
ADDRLP4 304
CNSTI4 3
ASGNI4
LABELV $295
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $300
JUMPV
LABELV $297
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $301
ADDRGP4 $298
JUMPV
LABELV $301
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $298
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $300
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $297
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $303
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $308
JUMPV
LABELV $305
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $309
ADDRGP4 $306
JUMPV
LABELV $309
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $313
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $314
JUMPV
LABELV $313
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $314
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $306
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $308
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $305
ADDRGP4 $278
JUMPV
LABELV $303
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $321
JUMPV
LABELV $318
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $322
ADDRGP4 $319
JUMPV
LABELV $322
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $319
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $321
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $318
LABELV $278
LABELV $276
endproc BotCTFOrders_EnemyFlagNotAtBase 360 20
export BotCTFOrders_BothFlagsAtBase
proc BotCTFOrders_BothFlagsAtBase 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $329
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $330
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $334
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $338
ADDRGP4 $331
JUMPV
LABELV $334
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $330
JUMPV
LABELV $338
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $330
JUMPV
LABELV $331
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $345
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $345
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $347
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $347
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $352
JUMPV
LABELV $349
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $350
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $352
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $349
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $356
JUMPV
LABELV $353
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $354
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $356
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $353
ADDRGP4 $330
JUMPV
LABELV $329
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $361
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $363
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $367
ADDRGP4 $360
JUMPV
LABELV $363
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $361
JUMPV
LABELV $367
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $361
JUMPV
LABELV $360
ADDRLP4 300
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 4
LEI4 $374
ADDRLP4 300
CNSTI4 4
ASGNI4
LABELV $374
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 304
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 5
LEI4 $376
ADDRLP4 304
CNSTI4 5
ASGNI4
LABELV $376
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $381
JUMPV
LABELV $378
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $379
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $381
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $378
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $385
JUMPV
LABELV $382
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $383
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $385
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $382
LABELV $361
LABELV $330
LABELV $328
endproc BotCTFOrders_BothFlagsAtBase 320 16
export BotCTFOrders
proc BotCTFOrders 20 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 1
NEI4 $390
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6948
ADDP4
INDIRI4
CNSTI4 1
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 6952
ADDP4
INDIRI4
ADDI4
ASGNI4
ADDRGP4 $391
JUMPV
LABELV $390
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6952
ADDP4
INDIRI4
CNSTI4 1
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 6948
ADDP4
INDIRI4
ADDI4
ASGNI4
LABELV $391
ADDRLP4 16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRLP4 16
INDIRI4
CNSTI4 0
LTI4 $392
ADDRLP4 16
INDIRI4
CNSTI4 3
GTI4 $392
ADDRLP4 16
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $398
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $398
address $394
address $395
address $396
address $397
code
LABELV $394
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_BothFlagsAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $395
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_EnemyFlagNotAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $396
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_FlagNotAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $397
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_BothFlagsNotAtBase
CALLV
pop
LABELV $392
LABELV $393
LABELV $389
endproc BotCTFOrders 20 4
export BotCreateGroup
proc BotCreateGroup 76 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRFP4 4
INDIRP4
INDIRI4
ARGI4
ADDRLP4 40
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 1
ASGNI4
ADDRGP4 $403
JUMPV
LABELV $400
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 4
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $404
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRGP4 $405
JUMPV
LABELV $404
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 40
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
LABELV $405
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrderAlways
CALLV
pop
LABELV $401
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $403
ADDRLP4 0
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $400
LABELV $399
endproc BotCreateGroup 76 20
bss
align 4
LABELV $407
skip 4
export BotTeamOrders
code
proc BotTeamOrders 1320 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 $407
INDIRI4
CNSTI4 0
NEI4 $408
ADDRGP4 $63
ARGP4
ADDRLP4 1288
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $407
ADDRLP4 1288
INDIRI4
ASGNI4
LABELV $408
ADDRLP4 1292
CNSTI4 0
ASGNI4
ADDRLP4 1028
ADDRLP4 1292
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 1292
INDIRI4
ASGNI4
ADDRGP4 $413
JUMPV
LABELV $410
ADDRLP4 0
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 4
ARGP4
ADDRLP4 1296
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1296
INDIRU4
CNSTU4 0
EQU4 $416
ADDRLP4 4
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1300
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1300
INDIRP4
ARGP4
ADDRLP4 1304
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1304
INDIRU4
CNSTU4 0
NEU4 $414
LABELV $416
ADDRGP4 $411
JUMPV
LABELV $414
ADDRLP4 4
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1308
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1308
INDIRP4
ARGP4
ADDRLP4 1312
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1312
INDIRI4
CNSTI4 3
NEI4 $417
ADDRGP4 $411
JUMPV
LABELV $417
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 1316
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1316
INDIRI4
CNSTI4 0
EQI4 $419
ADDRLP4 1028
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 1032
ADDP4
ADDRLP4 0
INDIRI4
ASGNI4
ADDRLP4 1028
ADDRLP4 1028
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $419
LABELV $411
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $413
ADDRLP4 0
INDIRI4
ADDRGP4 $407
INDIRI4
GEI4 $421
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $410
LABELV $421
ADDRLP4 1028
INDIRI4
CNSTI4 1
LTI4 $422
ADDRLP4 1028
INDIRI4
CNSTI4 5
GTI4 $422
ADDRLP4 1028
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $437-4
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $437
address $423
address $423
address $426
address $427
address $429
code
LABELV $426
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $427
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032+8
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $429
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032+8
ARGP4
CNSTI4 3
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $422
ADDRLP4 1028
INDIRI4
CNSTI4 10
GTI4 $423
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $436
JUMPV
LABELV $433
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1304
CNSTI4 2
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 1
LSHI4
ADDRLP4 1304
INDIRI4
LSHI4
ADDRLP4 1032
ADDP4
ARGP4
ADDRLP4 1304
INDIRI4
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
LABELV $434
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $436
ADDRLP4 0
INDIRI4
ADDRLP4 1028
INDIRI4
CNSTI4 2
DIVI4
LTI4 $433
LABELV $423
LABELV $406
endproc BotTeamOrders 1320 12
export Bot1FCTFOrders_FlagAtCenter
proc Bot1FCTFOrders_FlagAtCenter 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $440
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $441
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $445
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $449
ADDRGP4 $442
JUMPV
LABELV $445
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $441
JUMPV
LABELV $449
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $441
JUMPV
LABELV $442
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $455
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $455
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $457
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $457
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $462
JUMPV
LABELV $459
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $460
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $462
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $459
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $466
JUMPV
LABELV $463
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $464
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $466
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $463
ADDRGP4 $441
JUMPV
LABELV $440
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $471
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $473
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $477
ADDRGP4 $470
JUMPV
LABELV $473
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $471
JUMPV
LABELV $477
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $471
JUMPV
LABELV $470
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $484
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $484
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $486
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $486
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $491
JUMPV
LABELV $488
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $489
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $491
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $488
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $495
JUMPV
LABELV $492
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $493
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $495
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $492
LABELV $471
LABELV $441
LABELV $439
endproc Bot1FCTFOrders_FlagAtCenter 320 16
export Bot1FCTFOrders_TeamHasFlag
proc Bot1FCTFOrders_TeamHasFlag 360 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 260
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 260
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $500
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $501
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $505
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $511
ADDRGP4 $502
JUMPV
LABELV $505
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $506
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $507
JUMPV
LABELV $506
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $507
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $501
JUMPV
LABELV $511
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $512
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $513
JUMPV
LABELV $512
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $513
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $515
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $516
JUMPV
LABELV $515
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $516
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $520
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $522
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $521
JUMPV
LABELV $522
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $521
JUMPV
LABELV $520
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $521
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRGP4 $501
JUMPV
LABELV $502
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $524
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $524
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $526
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $526
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $531
JUMPV
LABELV $528
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $532
ADDRGP4 $529
JUMPV
LABELV $532
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $529
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $531
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $528
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $534
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $539
JUMPV
LABELV $536
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $540
ADDRGP4 $537
JUMPV
LABELV $540
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $544
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $545
JUMPV
LABELV $544
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $545
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $537
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $539
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $536
ADDRGP4 $501
JUMPV
LABELV $534
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $552
JUMPV
LABELV $549
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $553
ADDRGP4 $550
JUMPV
LABELV $553
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $550
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $552
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $549
ADDRGP4 $501
JUMPV
LABELV $500
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $560
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $562
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $566
ADDRGP4 $559
JUMPV
LABELV $562
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $563
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $564
JUMPV
LABELV $563
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $564
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $560
JUMPV
LABELV $566
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $567
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $568
JUMPV
LABELV $567
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $568
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $570
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $571
JUMPV
LABELV $570
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $571
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $575
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $576
JUMPV
LABELV $575
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $576
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRGP4 $560
JUMPV
LABELV $559
ADDRLP4 300
CNSTF4 1045220557
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 2
LEI4 $577
ADDRLP4 300
CNSTI4 2
ASGNI4
LABELV $577
ADDRLP4 304
CNSTF4 1061997773
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 8
LEI4 $579
ADDRLP4 304
CNSTI4 8
ASGNI4
LABELV $579
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $584
JUMPV
LABELV $581
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $585
ADDRGP4 $582
JUMPV
LABELV $585
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $582
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $584
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $581
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $590
JUMPV
LABELV $587
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $591
ADDRGP4 $588
JUMPV
LABELV $591
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $595
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $596
JUMPV
LABELV $595
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $596
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $588
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $590
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $587
LABELV $560
LABELV $501
LABELV $499
endproc Bot1FCTFOrders_TeamHasFlag 360 20
export Bot1FCTFOrders_EnemyHasFlag
proc Bot1FCTFOrders_EnemyHasFlag 316 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $601
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $602
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $606
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $610
ADDRGP4 $603
JUMPV
LABELV $606
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $602
JUMPV
LABELV $610
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $602
JUMPV
LABELV $603
ADDRLP4 300
CNSTF4 1061997773
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 8
LEI4 $617
ADDRLP4 300
CNSTI4 8
ASGNI4
LABELV $617
ADDRLP4 304
CNSTF4 1036831949
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 1
LEI4 $619
ADDRLP4 304
CNSTI4 1
ASGNI4
LABELV $619
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $624
JUMPV
LABELV $621
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $622
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $624
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $621
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $628
JUMPV
LABELV $625
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $626
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $628
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $625
ADDRGP4 $602
JUMPV
LABELV $601
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $634
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $636
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $640
ADDRGP4 $633
JUMPV
LABELV $636
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $634
JUMPV
LABELV $640
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $634
JUMPV
LABELV $633
ADDRLP4 300
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 7
LEI4 $647
ADDRLP4 300
CNSTI4 7
ASGNI4
LABELV $647
ADDRLP4 304
CNSTF4 1045220557
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 2
LEI4 $649
ADDRLP4 304
CNSTI4 2
ASGNI4
LABELV $649
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $654
JUMPV
LABELV $651
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $652
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $654
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $651
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $658
JUMPV
LABELV $655
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $656
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $658
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $655
LABELV $634
LABELV $602
LABELV $600
endproc Bot1FCTFOrders_EnemyHasFlag 316 16
export Bot1FCTFOrders_EnemyDroppedFlag
proc Bot1FCTFOrders_EnemyDroppedFlag 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $663
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $664
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $668
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $672
ADDRGP4 $665
JUMPV
LABELV $668
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $664
JUMPV
LABELV $672
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $664
JUMPV
LABELV $665
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $679
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $679
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $681
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $681
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $686
JUMPV
LABELV $683
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $684
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $686
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $683
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $690
JUMPV
LABELV $687
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $688
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $690
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $687
ADDRGP4 $664
JUMPV
LABELV $663
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $695
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $697
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $701
ADDRGP4 $694
JUMPV
LABELV $697
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $695
JUMPV
LABELV $701
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $695
JUMPV
LABELV $694
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $708
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $708
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $710
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $710
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $715
JUMPV
LABELV $712
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $713
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $715
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $712
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $719
JUMPV
LABELV $716
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $717
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $719
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $716
LABELV $695
LABELV $664
LABELV $662
endproc Bot1FCTFOrders_EnemyDroppedFlag 320 16
export Bot1FCTFOrders
proc Bot1FCTFOrders 8 4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6956
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
LTI4 $724
ADDRLP4 0
INDIRI4
CNSTI4 3
GTI4 $724
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $731
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $731
address $727
address $728
address $729
address $730
code
LABELV $727
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_FlagAtCenter
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $728
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_TeamHasFlag
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $729
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_EnemyHasFlag
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $730
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_EnemyDroppedFlag
CALLV
pop
LABELV $724
LABELV $725
LABELV $723
endproc Bot1FCTFOrders 8 4
export BotObeliskOrders
proc BotObeliskOrders 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $733
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $734
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $738
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $742
ADDRGP4 $735
JUMPV
LABELV $738
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $734
JUMPV
LABELV $742
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $734
JUMPV
LABELV $735
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $749
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $749
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $751
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $751
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $756
JUMPV
LABELV $753
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $754
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $756
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $753
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $760
JUMPV
LABELV $757
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $758
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $760
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $757
ADDRGP4 $734
JUMPV
LABELV $733
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $765
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $767
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $771
ADDRGP4 $764
JUMPV
LABELV $767
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $765
JUMPV
LABELV $771
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $765
JUMPV
LABELV $764
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $778
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $778
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $780
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $780
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $785
JUMPV
LABELV $782
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $783
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $785
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $782
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $789
JUMPV
LABELV $786
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $787
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $789
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $786
LABELV $765
LABELV $734
LABELV $732
endproc BotObeliskOrders 320 16
export BotHarvesterOrders
proc BotHarvesterOrders 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $794
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $795
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $799
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $804
ADDRGP4 $796
JUMPV
LABELV $799
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $795
JUMPV
LABELV $804
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $795
JUMPV
LABELV $796
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $811
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $811
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $813
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $813
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $818
JUMPV
LABELV $815
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $816
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $818
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $815
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $822
JUMPV
LABELV $819
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $820
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $822
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $819
ADDRGP4 $795
JUMPV
LABELV $794
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $827
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $829
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $833
ADDRGP4 $826
JUMPV
LABELV $829
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $827
JUMPV
LABELV $833
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $827
JUMPV
LABELV $826
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $840
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $840
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $842
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $842
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $847
JUMPV
LABELV $844
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $845
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $847
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $844
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $851
JUMPV
LABELV $848
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $849
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $851
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $848
LABELV $827
LABELV $795
LABELV $793
endproc BotHarvesterOrders 320 16
export FindHumanTeamLeader
proc FindHumanTeamLeader 12 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
CNSTI4 0
ASGNI4
LABELV $856
CNSTI4 812
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+520
ADDP4
INDIRI4
CNSTI4 0
EQI4 $860
CNSTI4 812
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+208+216
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
NEI4 $863
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 notleader
ADDP4
INDIRI4
CNSTI4 0
NEI4 $867
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 4
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $869
ADDRLP4 0
INDIRI4
ARGI4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
CNSTI4 32
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
ADDRGP4 BotSetLastOrderedTask
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
NEI4 $871
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 BotVoiceChat_Defend
CALLV
pop
LABELV $871
CNSTI4 1
RETI4
ADDRGP4 $855
JUMPV
LABELV $869
LABELV $867
LABELV $863
LABELV $860
LABELV $857
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $856
CNSTI4 0
RETI4
LABELV $855
endproc FindHumanTeamLeader 12 12
export BotTeamAI
proc BotTeamAI 72 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 3
GEI4 $874
ADDRGP4 $873
JUMPV
LABELV $874
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 40
ADDRGP4 BotValidTeamLeader
CALLI4
ASGNI4
ADDRLP4 40
INDIRI4
CNSTI4 0
NEI4 $876
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 44
ADDRGP4 FindHumanTeamLeader
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
CNSTI4 0
NEI4 $878
ADDRLP4 52
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
INDIRF4
ADDRLP4 52
INDIRF4
NEF4 $880
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
INDIRF4
ADDRLP4 52
INDIRF4
NEF4 $880
ADDRFP4 0
INDIRP4
CNSTI4 6064
ADDP4
INDIRF4
CNSTF4 1092616192
ADDF4
ADDRGP4 floattime
INDIRF4
LEF4 $882
ADDRLP4 56
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
ADDF4
CNSTF4 1092616192
ADDRLP4 56
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRGP4 $883
JUMPV
LABELV $882
ADDRLP4 56
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
ADDF4
CNSTF4 1092616192
ADDRLP4 56
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
LABELV $883
LABELV $880
ADDRLP4 56
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
INDIRF4
ASGNF4
ADDRLP4 56
INDIRF4
CNSTF4 0
EQF4 $884
ADDRLP4 56
INDIRF4
ADDRGP4 floattime
INDIRF4
GEF4 $884
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $886
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
CNSTF4 0
ASGNF4
ADDRLP4 60
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1090519040
ADDF4
CNSTF4 1092616192
ADDRLP4 60
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
LABELV $884
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $873
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
GEF4 $873
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $889
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 -1
ARGI4
ADDRGP4 $890
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 0
ARGP4
CNSTU4 32
ARGU4
ADDRGP4 qk_strncpy
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6896
CNSTU4 31
ADDI4
ADDP4
CNSTI1 0
ASGNI1
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $873
JUMPV
LABELV $878
LABELV $876
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 44
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
CNSTI4 0
EQI4 $891
ADDRGP4 $873
JUMPV
LABELV $891
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 48
ADDRGP4 BotNumTeamMates
CALLI4
ASGNI4
ADDRLP4 36
ADDRLP4 48
INDIRI4
ASGNI4
ADDRLP4 52
ADDRGP4 gametype
INDIRI4
ASGNI4
ADDRLP4 52
INDIRI4
CNSTI4 3
LTI4 $893
ADDRLP4 52
INDIRI4
CNSTI4 7
GTI4 $893
ADDRLP4 52
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $935-12
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $935
address $895
address $901
address $912
address $923
address $929
code
LABELV $895
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $898
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $896
LABELV $898
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $896
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotTeamOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1123024896
ADDF4
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $901
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $905
ADDRLP4 60
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
NEI4 $905
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
EQI4 $902
LABELV $905
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $902
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1131413504
SUBF4
GEF4 $906
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 64
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRLP4 64
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
CNSTF4 1053609165
GEF4 $908
ADDRLP4 68
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
ASGNP4
ADDRLP4 68
INDIRP4
ADDRLP4 68
INDIRP4
INDIRI4
CNSTI4 1
BXORI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
LABELV $908
LABELV $906
ADDRLP4 64
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 64
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 64
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1077936128
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $912
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $916
ADDRLP4 60
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
NEI4 $916
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
EQI4 $913
LABELV $916
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $913
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1131413504
SUBF4
GEF4 $917
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 64
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRLP4 64
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
CNSTF4 1053609165
GEF4 $919
ADDRLP4 68
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
ASGNP4
ADDRLP4 68
INDIRP4
ADDRLP4 68
INDIRP4
INDIRI4
CNSTI4 1
BXORI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
LABELV $919
LABELV $917
ADDRLP4 64
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 64
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 64
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $923
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $926
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $924
LABELV $926
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $924
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotObeliskOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1106247680
ADDF4
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $929
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $932
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $930
LABELV $932
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $930
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotHarvesterOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1106247680
ADDF4
ASGNF4
LABELV $893
LABELV $894
LABELV $873
endproc BotTeamAI 72 12
bss
export ctftaskpreferences
align 4
LABELV ctftaskpreferences
skip 2560
import BotVoiceChat_Defend
import BotVoiceChatCommand
import BotDumpNodeSwitches
import BotResetNodeSwitches
import AINode_Battle_NBG
import AINode_Battle_Retreat
import AINode_Battle_Chase
import AINode_Battle_Fight
import AINode_Seek_LTG
import AINode_Seek_NBG
import AINode_Seek_ActivateEntity
import AINode_Stand
import AINode_Respawn
import AINode_Observer
import AINode_Intermission
import AIEnter_Battle_NBG
import AIEnter_Battle_Retreat
import AIEnter_Battle_Chase
import AIEnter_Battle_Fight
import AIEnter_Seek_Camp
import AIEnter_Seek_LTG
import AIEnter_Seek_NBG
import AIEnter_Seek_ActivateEntity
import AIEnter_Stand
import AIEnter_Respawn
import AIEnter_Observer
import AIEnter_Intermission
import BotPrintTeamGoal
import BotMatchMessage
import notleader
import BotChatTest
import BotValidChatPosition
import BotChatTime
import BotChat_Random
import BotChat_EnemySuicide
import BotChat_Kill
import BotChat_Death
import BotChat_HitNoKill
import BotChat_HitNoDeath
import BotChat_HitTalking
import BotChat_EndLevel
import BotChat_StartLevel
import BotChat_ExitGame
import BotChat_EnterGame
import neutralobelisk
import blueobelisk
import redobelisk
import ctf_neutralflag
import ctf_blueflag
import ctf_redflag
import bot_challenge
import bot_testrchat
import bot_nochat
import bot_fastchat
import bot_rocketjump
import bot_grapple
import maxclients
import gametype
import BotMapScripts
import BotPointAreaNum
import ClientOnSameTeamFromName
import ClientFromName
import stristr
import BotFindWayPoint
import BotCreateWayPoint
import BotAlternateRoute
import BotGetAlternateRouteGoal
import BotEnemyCubeCarrierVisible
import BotTeamCubeCarrierVisible
import BotHarvesterRetreatGoals
import BotHarvesterSeekGoals
import BotGoHarvest
import BotObeliskRetreatGoals
import BotObeliskSeekGoals
import Bot1FCTFRetreatGoals
import Bot1FCTFSeekGoals
import BotHarvesterCarryingCubes
import Bot1FCTFCarryingFlag
import BotCTFRetreatGoals
import BotCTFSeekGoals
import BotRememberLastOrderedTask
import BotCTFCarryingFlag
import BotOppositeTeam
import BotTeam
import BotClearActivateGoalStack
import BotPopFromActivateGoalStack
import BotEnableActivateGoalAreas
import BotAIPredictObstacles
import BotAIBlocked
import BotCheckAttack
import BotAimAtEnemy
import BotEntityVisible
import BotRoamGoal
import BotFindEnemy
import InFieldOfVision
import BotVisibleTeamMatesAndEnemies
import BotEnemyFlagCarrierVisible
import BotTeamFlagCarrierVisible
import BotTeamFlagCarrier
import TeamPlayIsOn
import BotSameTeam
import BotAttackMove
import BotWantsToCamp
import BotHasPersistantPowerupAndWeapon
import BotCanAndWantsToRocketJump
import BotWantsToHelp
import BotWantsToChase
import BotWantsToRetreat
import BotFeelingBad
import BotAggression
import BotTeamGoals
import BotSetLastOrderedTask
import BotSynonymContext
import ClientSkin
import EasyClientName
import ClientName
import BotSetTeamStatus
import BotSetUserInfo
import EntityHasKamikaze
import EntityIsShooting
import EntityIsInvisible
import EntityIsDead
import BotInLavaOrSlime
import BotIntermission
import BotIsObserver
import BotIsDead
import BotBattleUseItems
import BotUpdateBattleInventory
import BotUpdateInventory
import BotSetupForMovement
import BotChooseWeapon
import BotFreeWaypoints
import BotDeathmatchAI
import BotShutdownDeathmatchAI
import BotSetupDeathmatchAI
import BotTeamLeader
import BotAI_GetSnapshotEntity
import BotAI_GetEntityState
import BotAI_GetClientState
import BotAI_Trace
import BotAI_BotInitialChat
import BotAI_Print
import floattime
import BotEntityInfo
import NumBots
import BotResetState
import BotResetWeaponState
import BotFreeWeaponState
import BotAllocWeaponState
import BotLoadWeaponWeights
import BotGetWeaponInfo
import BotChooseBestFightWeapon
import BotShutdownWeaponAI
import BotSetupWeaponAI
import BotShutdownMoveAI
import BotSetupMoveAI
import BotSetBrushModelTypes
import BotAddAvoidSpot
import BotInitMoveState
import BotFreeMoveState
import BotAllocMoveState
import BotPredictVisiblePosition
import BotMovementViewTarget
import BotReachabilityArea
import BotResetLastAvoidReach
import BotResetAvoidReach
import BotMoveInDirection
import BotMoveToGoal
import BotResetMoveState
import BotShutdownGoalAI
import BotSetupGoalAI
import BotFreeGoalState
import BotAllocGoalState
import BotFreeItemWeights
import BotLoadItemWeights
import BotMutateGoalFuzzyLogic
import BotSaveGoalFuzzyLogic
import BotInterbreedGoalFuzzyLogic
import BotUpdateEntityItems
import BotInitLevelItems
import BotSetAvoidGoalTime
import BotAvoidGoalTime
import BotGetMapLocationGoal
import BotGetNextCampSpotGoal
import BotGetLevelItemGoal
import BotItemGoalInVisButNotVisible
import BotTouchingGoal
import BotChooseNBGItem
import BotChooseLTGItem
import BotGetSecondGoal
import BotGetTopGoal
import BotGoalName
import BotDumpGoalStack
import BotDumpAvoidGoals
import BotEmptyGoalStack
import BotPopGoal
import BotPushGoal
import BotRemoveFromAvoidGoals
import BotResetAvoidGoals
import BotResetGoalState
import GeneticParentsAndChildSelection
import BotSetChatName
import BotSetChatGender
import BotLoadChatFile
import BotReplaceSynonyms
import UnifyWhiteSpaces
import BotMatchVariable
import BotFindMatch
import StringContains
import BotGetChatMessage
import BotEnterChat
import BotChatLength
import BotReplyChat
import BotNumInitialChats
import BotInitialChat
import BotNumConsoleMessages
import BotNextConsoleMessage
import BotRemoveConsoleMessage
import BotQueueConsoleMessage
import BotFreeChatState
import BotAllocChatState
import BotShutdownChatAI
import BotSetupChatAI
import BotShutdownCharacters
import Characteristic_String
import Characteristic_BInteger
import Characteristic_Integer
import Characteristic_BFloat
import Characteristic_Float
import BotFreeCharacter
import BotLoadCharacter
import EA_Shutdown
import EA_Setup
import EA_ResetInput
import EA_GetInput
import EA_EndRegular
import EA_View
import EA_Move
import EA_DelayedJump
import EA_Jump
import EA_SelectWeapon
import EA_Use
import EA_Gesture
import EA_Talk
import EA_Respawn
import EA_Attack
import EA_MoveRight
import EA_MoveLeft
import EA_MoveBack
import EA_MoveForward
import EA_MoveDown
import EA_MoveUp
import EA_Walk
import EA_Crouch
import EA_Action
import EA_Command
import EA_SayTeam
import EA_Say
import GetBotLibAPI
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_RealTime
import trap_Milliseconds
import trap_Error
import trap_Print
import g_proxMineTimeout
import g_singlePlayer
import g_enableBreath
import g_enableDust
import g_rankings
import pmove_msec
import pmove_fixed
import g_smoothClients
import g_blueteam
import g_redteam
import g_cubeTimeout
import g_obeliskRespawnDelay
import g_obeliskRegenAmount
import g_obeliskRegenPeriod
import g_obeliskHealth
import g_filterBan
import g_banIPs
import g_teamForceBalance
import g_teamAutoJoin
import g_allowVote
import g_blood
import g_doWarmup
import g_warmup
import g_motd
import g_synchronousClients
import g_weaponTeamRespawn
import g_weaponRespawn
import g_debugDamage
import g_debugAlloc
import g_debugMove
import g_inactivity
import g_forcerespawn
import g_quadfactor
import g_knockback
import g_speed
import g_gravity
import g_needpass
import g_password
import g_friendlyFire
import g_capturelimit
import g_timelimit
import g_fraglimit
import g_dmflags
import g_restarted
import g_maxGameClients
import g_maxclients
import g_cheats
import g_dedicated
import g_gametype
import g_entities
import level
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import TeamName
import OtherTeam
import BotTestAAS
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import Svcmd_AbortPodium_f
import SpawnModelsOnVictoryPads
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import CheckObeliskAttack
import Team_CheckDroppedItem
import OnSameTeam
import G_RunClient
import ClientEndFrame
import ClientThink
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import G_Error
import G_Printf
import SendScoreboardMessageToAllClients
import G_LogPrintf
import AddTournamentQueue
import G_RunThink
import CheckTeamLeader
import SetLeader
import FindIntermissionPoint
import MoveClientToIntermission
import DeathmatchScoreboardMessage
import G_StartKamikaze
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import SpotWouldTelefrag
import CalculateRanks
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import BeginIntermission
import ClientRespawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import Weapon_HookThink
import Weapon_HookFree
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import DropPortalDestination
import DropPortalSource
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import fire_prox
import fire_nail
import fire_grapple
import fire_bfg
import fire_rocket
import fire_grenade
import fire_plasma
import G_RunMissile
import TossClientCubes
import TossClientPersistantPowerups
import TossClientItems
import body_die
import G_InvulnerabilityEffect
import G_RadiusDamage
import G_Damage
import CanDamage
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vectoyaw
import vtos
import tv
import G_TouchTriggers
import G_EntitiesFree
import G_FreeEntity
import G_Sound
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_Find
import G_KillBox
import G_TeamCommand
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $890
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $889
byte 1 105
byte 1 97
byte 1 109
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $886
byte 1 119
byte 1 104
byte 1 111
byte 1 105
byte 1 115
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $801
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 104
byte 1 97
byte 1 114
byte 1 118
byte 1 101
byte 1 115
byte 1 116
byte 1 0
align 1
LABELV $630
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 114
byte 1 101
byte 1 116
byte 1 117
byte 1 114
byte 1 110
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $510
byte 1 111
byte 1 102
byte 1 102
byte 1 101
byte 1 110
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $509
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 116
byte 1 116
byte 1 97
byte 1 99
byte 1 107
byte 1 101
byte 1 110
byte 1 101
byte 1 109
byte 1 121
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $221
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 0
align 1
LABELV $220
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $181
byte 1 114
byte 1 101
byte 1 116
byte 1 117
byte 1 114
byte 1 110
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $175
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 99
byte 1 97
byte 1 114
byte 1 114
byte 1 105
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $174
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 99
byte 1 99
byte 1 111
byte 1 109
byte 1 112
byte 1 97
byte 1 110
byte 1 121
byte 1 0
align 1
LABELV $173
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $172
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 99
byte 1 99
byte 1 111
byte 1 109
byte 1 112
byte 1 97
byte 1 110
byte 1 121
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $163
byte 1 103
byte 1 101
byte 1 116
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $162
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 103
byte 1 101
byte 1 116
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $151
byte 1 118
byte 1 111
byte 1 116
byte 1 101
byte 1 108
byte 1 108
byte 1 32
byte 1 37
byte 1 100
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $150
byte 1 118
byte 1 111
byte 1 115
byte 1 97
byte 1 121
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $146
byte 1 118
byte 1 116
byte 1 101
byte 1 108
byte 1 108
byte 1 32
byte 1 37
byte 1 100
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $145
byte 1 118
byte 1 115
byte 1 97
byte 1 121
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $140
byte 1 25
byte 1 40
byte 1 37
byte 1 115
byte 1 25
byte 1 41
byte 1 25
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $74
byte 1 116
byte 1 0
align 1
LABELV $70
byte 1 110
byte 1 0
align 1
LABELV $63
byte 1 115
byte 1 118
byte 1 95
byte 1 109
byte 1 97
byte 1 120
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
| 10.536143 | 48 | 0.842165 |
210ef6753cb8867fd7bff312ebb4c5cfe312d9d2 | 124 | asm | Assembly | r5asm/test/test001.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | r5asm/test/test001.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | r5asm/test/test001.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | .code
set R1, 0
cmp R1, 0
bz label1
set R1, 1
bt label2
label1:
set R1, 2
label2:
bt label2
nop
nop
nop
| 8.857143 | 11 | 0.58871 |
96686d3cdef65571c4ccff6d89fdfc34a1ae6e3d | 402 | asm | Assembly | libsrc/games/sam/bit_open_di.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/games/sam/bit_open_di.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | libsrc/games/sam/bit_open_di.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | ; $Id: bit_open_di.asm,v 1.1 2003/02/04 09:10:18 stefano Exp $
;
; ZX Spectrum 1 bit sound functions
;
; Open sound and disable interrupts for exact timing
;
; Stefano Bodrato - 28/9/2001
;
XLIB bit_open_di
LIB bit_open
XREF snd_tick
.bit_open_di
di
jp bit_open
; ld a,(23624)
; rrca
; rrca
; rrca
; or 8
; ld (snd_tick),a
; ret
| 16.08 | 62 | 0.579602 |
0f3dfb4efdeaad13fc3c24f4a19aa71f0815d160 | 2,336 | asm | Assembly | kernel/cpuinfo.asm | Anne1231/yurios | 4e55c25b4b0cb0fec35cb416574997d7f2527485 | [
"MIT"
] | 1 | 2020-10-20T10:44:29.000Z | 2020-10-20T10:44:29.000Z | kernel/cpuinfo.asm | Anne1231/yurios | 4e55c25b4b0cb0fec35cb416574997d7f2527485 | [
"MIT"
] | 7 | 2016-12-08T14:56:37.000Z | 2017-02-01T15:00:23.000Z | kernel/cpuinfo.asm | Anne1231/yurios | 4e55c25b4b0cb0fec35cb416574997d7f2527485 | [
"MIT"
] | null | null | null | [BITS 32]
;;; CPUの情報とかを調べるアセンブリ関数群
global cpu_vendor
global cpu_geneinfo_sub
global cpu_cache_sub
global cpu_brand_string
;;; CPUベンダと拡張性を調べるアセンブリ関数
;;; void cpu_vendor(u32_t *ebx, u32_t *ecx, u32_t *edx);
cpu_vendor:
;; バックアップ
push ebx
push ecx
push edx
push esi
;; CPUベンダと拡張性を調べるため0x00を代入
mov eax, 0x00
;; CPUIDを実行
cpuid
;; eaxをバックアップ
mov esi, eax
;; 引数のポインタに結果を代入
mov eax, [esp+20]
mov [eax], ebx
mov eax, [esp+24]
mov [eax], ecx
mov eax, [esp+28]
mov [eax], edx
;; 元に戻す
mov eax, esi
pop esi
pop edx
pop ecx
pop ebx
ret
;;; CPUの基本情報を調べるアセンブリ関数
;;; void cpu_geneinfo_sub(u32_t *ebx, u32_t *ecx, u32_t *edx);
cpu_geneinfo_sub:
;;バックアップ
push ebx
push ecx
push edx
push esi
;;CPUの基本的な情報を得るためにwaxに0x01を代入
mov eax, 0x01
;;CPUIDを実行
cpuid
mov esi, eax
;; 引数のポインタに結果を代入
mov eax, [esp+20]
mov [eax], ebx
mov eax, [esp+24]
mov [eax], ecx
mov eax, [esp+28]
mov [eax], edx
;; 元に戻す
mov eax, esi
pop esi
pop edx
pop ecx
pop ebx
ret
;;; CPUのキャッシュ情報を得る関数
;;; void cpu_cache_sub(u32_t *ebx, u32_t *ecx, u32_t *edx);
cpu_cache_sub:
;;バックアップ
push ebx
push ecx
push edx
push esi
;;CPUの基本的な情報を得るためにwaxに0x01を代入
mov eax, 0x02
;;CPUIDを実行
cpuid
mov esi, eax
;; 引数のポインタに結果を代入
mov eax, [esp+20]
mov [eax], ebx
mov eax, [esp+24]
mov [eax], ecx
mov eax, [esp+28]
mov [eax], edx
;; 元に戻す
mov eax, esi
pop esi
pop edx
pop ecx
pop ebx
ret
;;; CPUのブランドストリングを取得する関数
;;; i32_t cpu_brand_string(char *string);
cpu_brand_string:
;;バックアップ
push ebx
push ecx
push edx
push esi
;; CPUIDの拡張命令に対応しているか判定
mov eax, 0x01
;; CPUIDを実行
cpuid
and eax, 0x80000000
jz not_support
;; 以下ブランドストリング取得の拡張CPUID命令に対応している場合
;; CPUID実行後、EAXレジスタにCPUID拡張機能の最大インデックスがセットされる
;; プロセッサブランドストリングに対応しているかどうか
sub eax, 0x80000004
jz not_support
;; プロセッサブランドストリングに対応している
mov eax, 0x80000002
cpuid
mov esi, eax
mov eax, [esp+20]
mov [eax], esi
mov [eax+4], ebx
mov [eax+8], ecx
mov [eax+12], edx
mov eax, 1
jmp cpuid_end
not_support:
;; ブランドストリング取得の拡張CPUID命令に対応していない
mov eax, -1
jmp cpuid_end
cpuid_end:
pop esi
pop edx
pop ecx
pop ebx
ret
| 16.805755 | 64 | 0.626284 |
cc8786cae7cb99849212d6ab80185a898d086dec | 514 | asm | Assembly | oeis/113/A113605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/113/A113605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/113/A113605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A113605: a(1) = a(2) = a(3) = 1; a(n) = a(n-3) + gcd(a(n-1), a(n-2)).
; Submitted by Christian Krause
; 1,1,1,2,2,3,3,5,4,4,9,5,5,14,6,7,15,7,8,16,15,9,19,16,10,21,17,11,22,28,13,23,29,14,24,31,15,25,36,16,29,37,17,30,38,19,49,39,20,50,49,21,57,52,22,59,53,23,60,54,29,61,55,30,66,61,31,67,62,32,69,63,35,76,64,39,77,65,40,82,67,41,83,68,42,85,69,43,86,112,45,87,115,46,110,117,47,111,118,48
mov $2,3
mov $3,3
lpb $0
sub $0,1
gcd $2,$1
add $2,$4
mov $4,$1
mov $1,$3
mov $3,$2
lpe
mov $0,$2
div $0,3
| 30.235294 | 289 | 0.581712 |
56486ac814d3a5fb9621567c7322bc461dfe8cd5 | 229 | ahk | AutoHotkey | Task/Search-a-list/AutoHotkey/search-a-list.ahk | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Search-a-list/AutoHotkey/search-a-list.ahk | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Search-a-list/AutoHotkey/search-a-list.ahk | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | haystack = Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo
needle = bush, washington
Loop, Parse, needle, `,
{
If InStr(haystack, A_LoopField)
MsgBox, % A_LoopField
Else
MsgBox % A_LoopField . " not in haystack"
}
| 22.9 | 61 | 0.707424 |
364403b150412994e620615c2b3e21b28cea815f | 7,016 | ahk | AutoHotkey | @Saved/AHK.net Archive/~Suny/ListBox/Control_ListBox.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 21 | 2021-04-23T06:09:02.000Z | 2022-03-20T08:45:04.000Z | @Saved/AHK.net Archive/~Suny/ListBox/Control_ListBox.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | null | null | null | @Saved/AHK.net Archive/~Suny/ListBox/Control_ListBox.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 12 | 2021-05-07T03:33:13.000Z | 2022-03-03T22:25:20.000Z | c1=Add string
c2=|Delete string N
c3=|Choose N
c4=|ChooseString
c5=|Inverse selection
c6=|Choose all with string
c7=|Choose all except string
c8=|Select all
c9=|Deselect all
cb=%c1%%c2%%c3%%c4%%c5%%c6%%c7%%c8%%c9%
Gui, Add, ComboBox, vChoice r20, %cb%
Gui, Add, Text,, Enter string or number to work.
Gui, Add, Edit, vStringN w290
Gui, Add, Text,, Name
Gui, Add, Edit, vName w290
Gui, Add, Text,, Handle
Gui, Add, Edit, vHandle w290
Gui, Add, Text,, Choose ListBox in some window and press Alt+Z to action
Gui, Add, Text,, Press Alt+X to use Name and Handle
Gui, Show
Control, Choose, 1, ComboBox1, A
return
!z::
ActiveWindow:= WinExist("A")
ControlGetFocus, FocusedControl, ahk_id %ActiveWindow%
if not FocusedControl
return
Gui, Submit, NoHide
if Choice=Add string
Control, Add,%StringN%,%FocusedControl%,A
if Choice=Delete string N
Control, Delete,%StringN%,%FocusedControl%,A
if Choice=Choose N
Control, Choose,%StringN%,%FocusedControl%,A
if Choice=ChooseString
Control, ChooseString,%StringN%,%FocusedControl%,A
if Choice=Choose all with string
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %FocusedControl%, A
n_of_it=%ErrorLevel%
;------------DeSelect all-------------------------------------------------
SendMessage, 0x185, 0, -1, %FocusedControl%, A
;------------Select_all_with_string---------------------------------------
ret=retrieval string
VAR_address:= DllCall("CharNext", str, ret, UInt)-1
Loop, %n_of_it%
{
SendMessage, 0x189, a_index-1, VAR_address, %FocusedControl%, A
StringGetPos, pos, ret, %StringN%
if pos >= 0
Control, Choose,%a_index%-1,%FocusedControl%,A
;Below was showed analog of Control-Choose as you see it have difference
;SendMessage, 0x185, 1, a_index-1, %FocusedControl%, A
}
}
if Choice=Inverse selection
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %FocusedControl%, A
n_of_it=%ErrorLevel%
Loop, %n_of_it%
{
SendMessage, 0x187, a_index-1, 0, %FocusedControl%, A
if ErrorLevel=1
SendMessage, 0x185, 0, a_index-1, %FocusedControl%, A
else
SendMessage, 0x185, 1, a_index-1, %FocusedControl%, A
}
}
if Choice=Choose all except string
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %FocusedControl%, A
n_of_it=%ErrorLevel%
;------------DeSelect all-------------------------------------------------
SendMessage, 0x185, 0, -1, %FocusedControl%, A
;------------Select_all_with_string---------------------------------------
ret=retrieval string
VAR_address:= DllCall("CharNext", str, ret, UInt)-1
Loop, %n_of_it%
{
SendMessage, 0x189, a_index-1, VAR_address, %FocusedControl%, A
StringGetPos, pos, ret, %StringN%
if pos >= 0
Control, Choose,%a_index%-1,%FocusedControl%,A
;Below was showed analog of Control-Choose as you see it have difference
;SendMessage, 0x185, 1, a_index-1, %FocusedControl%, A
}
;------------Inverse selection--------------------------------------------
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %FocusedControl%, A
n_of_it=%ErrorLevel%
Loop, %n_of_it%
{
SendMessage, 0x187, a_index-1, 0, %FocusedControl%, A
if ErrorLevel=1
SendMessage, 0x185, 0, a_index-1, %FocusedControl%, A
else
SendMessage, 0x185, 1, a_index-1, %FocusedControl%, A
}
}
if Choice=Select all
SendMessage, 0x185, 1, -1, %FocusedControl%, A
if Choice=Deselect all
SendMessage, 0x185, 0, -1, %FocusedControl%, A
return
!x::
ActiveWindow:= WinExist("A")
ControlGetFocus, FocusedControl, ahk_id %ActiveWindow%
if not FocusedControl
return
Gui, Submit, NoHide
if Choice=Add string
Control, Add,%StringN%,%Name%,%Handle%
if Choice=Delete string N
Control, Delete,%StringN%,%Name%,%Handle%
if Choice=Choose N
Control, Choose,%StringN%,%Name%,%Handle%
if Choice=ChooseString
Control, ChooseString,%StringN%,%Name%,%Handle%
if Choice=Choose all with string
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %Name%,%Handle%
n_of_it=%ErrorLevel%
;------------DeSelect all-------------------------------------------------
SendMessage, 0x185, 0, -1, %Name%,%Handle%
;------------Select_all_with_string---------------------------------------
ret=retrieval string
VAR_address:= DllCall("CharNext", str, ret, UInt)-1
Loop, %n_of_it%
{
SendMessage, 0x189, a_index-1, VAR_address, %Name%,%Handle%
StringGetPos, pos, ret, %StringN%
if pos >= 0
Control, Choose,%a_index%-1,%Name%,%Handle%
;Below was showed analog of Control-Choose as you see it have difference
;SendMessage, 0x185, 1, a_index-1, %Name%,%Handle%
}
}
if Choice=Inverse selection
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %Name%,%Handle%
n_of_it=%ErrorLevel%
Loop, %n_of_it%
{
SendMessage, 0x187, a_index-1, 0, %Name%,%Handle%
if ErrorLevel=1
SendMessage, 0x185, 0, a_index-1, %Name%,%Handle%
else
SendMessage, 0x185, 1, a_index-1, %Name%,%Handle%
}
}
if Choice=Choose all except string
{
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %Name%,%Handle%
n_of_it=%ErrorLevel%
;------------DeSelect all-------------------------------------------------
SendMessage, 0x185, 0, -1, %Name%,%Handle%
;------------Select_all_with_string---------------------------------------
ret=retrieval string
VAR_address:= DllCall("CharNext", str, ret, UInt)-1
Loop, %n_of_it%
{
SendMessage, 0x189, a_index-1, VAR_address, %Name%,%Handle%
StringGetPos, pos, ret, %StringN%
if pos >= 0
Control, Choose,%a_index%-1,%Name%,%Handle%
;Below was showed analog of Control-Choose as you see it have difference
;SendMessage, 0x185, 1, a_index-1, %Name%,%Handle%
}
;------------Inverse selection--------------------------------------------
;------------Number of items----------------------------------------------
SendMessage, 0x18b, 0, 0, %Name%,%Handle%
n_of_it=%ErrorLevel%
Loop, %n_of_it%
{
SendMessage, 0x187, a_index-1, 0, %Name%,%Handle%
if ErrorLevel=1
SendMessage, 0x185, 0, a_index-1, %Name%,%Handle%
else
SendMessage, 0x185, 1, a_index-1, %Name%,%Handle%
}
}
if Choice=Select all
SendMessage, 0x185, 1, -1, %Name%,%Handle%
if Choice=Deselect all
SendMessage, 0x185, 0, -1, %Name%,%Handle%
return
| 35.256281 | 79 | 0.550599 |
8a76811322b7dba33fd26345e96118ed5145fd45 | 3,566 | ahk | AutoHotkey | YouPlayTubeList.ahk | vladscript/YouPlayTubeList | 8255dd17500cba991e6fd47974d37a2d41eeb3dc | [
"MIT"
] | 1 | 2021-07-15T01:35:43.000Z | 2021-07-15T01:35:43.000Z | YouPlayTubeList.ahk | vladscript/YouPlayTubeList | 8255dd17500cba991e6fd47974d37a2d41eeb3dc | [
"MIT"
] | null | null | null | YouPlayTubeList.ahk | vladscript/YouPlayTubeList | 8255dd17500cba991e6fd47974d37a2d41eeb3dc | [
"MIT"
] | null | null | null | #SingleInstance, Force
; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; GUI
Gui, Font, cWhite
; botoN CREA LISTA
Gui, Add, Text, x15 y20, Crear lista
Gui, Add, Button, x35 y40 w50 h20 gLista, Crea
; botoN REPRODUCE LISTA
Gui, Add, Text, x200 y20, Reproducir lista
Gui, Add, Button, x215 y40 w50 h20 gPlay, PLAY
Gui, Add, Picture,x0 w320 h-1, %A_ScriptDir%/Figs/Logo.png
Gui, Color, Black
Gui, Show, x400 y50 w320 h195, YouPlayTubeList
return
; LABELS
GuiClose:
ExitApp
return
; #########################################################################
Lista:
; msgbox, Pega la URL
InputBox, URLPLayList, URL de la playlist, Pega la URL de playlist de YouTube: ,100,300, , , locale
Switch ErrorLevel
{
case 0:
Needle := "https://youtube.com/playlist?"
If InStr(URLPLayList,Needle)
{
InputBox, NamePLayList, Nombre de la playlist, Nombre: ,50,200, , , locale
If NamePLayList =
{
s := (s := "0123456789abcdefghijklmnopqrstuvwxyz") . s . s
loop, 6 {
Random, r, 1, StrLen(s)
i .= (c := SubStr(s, r, 1))
StrReplace(s, c, "",, 1)
}
NamePLayList = Playlist_%i%
}
MsgBox, Tu playlist es %NamePLayList%
; Lee Ruta de Youtube-DL
FileReadLine, DirYoutubeDL, %A_WorkingDir%/CONFIG.txt, 1
; MsgBox, Youtube-DL dir: %DirYoutubeDL%
Run cmd.exe /c cd "%DirYoutubeDL%" && youtube-dl.exe --get-id %URLPLayList% -i > %NamePLayList%.txt
; Run cmd.exe, %DirYoutubeDL%
; WinWait, ahk_exe cmd.exe
; Send youtube-dl.exe --get-id %URLPLayList% -i > %NamePLayList%.txt
}
Else
MsgBox, Revisa el formato de tu URL debe contener: %Needle%.
case 1:
MsgBox, Bye!
}
return
; #########################################################################
Play:
; msgbox, Play
FileReadLine, DirYoutubeDL, %A_WorkingDir%/CONFIG.txt, 1
FileSelectFile, PlaylistFile, 3, %DirYoutubeDL%, Selecciona la playlist (*.txt), *txt
if (PlaylistFile = "")
MsgBox, Sin playlist. Ciao!
else
{
YTtemplate=https://www.youtube.com/watch?v=
Array := StrSplit(PlaylistFile, "\")
MsgBox, % "Reproducir: "Array[Array.Length()]
; OPEN VLC
; Run cmd.exe /c cd "%A_ProgramFiles%"\VideoLAN\VLC && vlc --intf rc --extraintf skins2
Run cmd.exe, %A_ProgramFiles%\VideoLAN\VLC
WinWait, ahk_exe cmd.exe
Send vlc --intf rc --extraintf skins2{Enter}
WinWait vlc --intf rc --extraintf skins2
WinActivate
; WinGet, pidVLCcw, PID, A
FileRead, FilePlay, %PlaylistFile%
ListArray := []
; Completa el Array con las IDs de las URLs
loop, parse, FilePlay, `n
ListArray.push(A_LoopField)
; Identificar PID de VLC commanf Window
WinGet, pidVLCcw, PID, A
; MsgBox, The active window's PID is "%pidVLCcw%".
; Agregar al VLC
for each, line in ListArray
{
; MsgBox Cargar Canción
; Send a{Enter}
if (line ="") {
; MsgBox, Empty.
} else{
WinActivate, ahk_pid %pidVLCcw%
; Send enqueue %YTtemplate%%line%{Enter}
; Send enqueue %YTtemplate%%line% :network-caching=5000{Enter}
Send enqueue %YTtemplate%%line%
; Send status{Enter}
; Send add %YTtemplate%%line%{Enter}
Sleep, 999
Send {Enter}
}
}
Send playlist{Enter}
WinActivate, ahk_pid %pidVLCcw%
WinClose, ahk_exe cmd.exe
Send play{Enter}
}
return
; FUNCTIONS
^x::ExitApp | 28.301587 | 104 | 0.647224 |
a6d83d42db2df9d4594e30a9cbd7808783b81faf | 1,127 | ahk | AutoHotkey | trademocro/lib/PoEScripts_CheckInvalidScriptFolder.ahk | AtriCZE23/POe-full | 89be2fda5747e44764a62ba5e358d8c9309fbf0a | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 1 | 2020-09-25T21:11:20.000Z | 2020-09-25T21:11:20.000Z | trademocro/lib/PoEScripts_CheckInvalidScriptFolder.ahk | AtriCZE23/Atri | 34ed092852b49daeafeb9c94adf3bfba42819b37 | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 5 | 2021-12-14T20:56:36.000Z | 2021-12-20T14:45:34.000Z | trademocro/lib/PoEScripts_CheckInvalidScriptFolder.ahk | AtriCZE23/POe-full | 89be2fda5747e44764a62ba5e358d8c9309fbf0a | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | null | null | null | PoEScripts_CheckInvalidScriptFolder(currentDir, project, critical = false) {
valid := true
SplitPath, currentDir, FileName, Dir, Extension, NameNoExt, Drive
msg := ""
If (InStr(currentDir, A_Desktop)) {
valid := false
msg := "your Desktop (or any of its subfolders)"
}
If (currentDir = drive) {
valid := false
msg := "any drive root"
}
If (not valid) {
msg := "Executing " project " from " msg " may cause script or permission errors, please choose a different directory."
msg .= "`n`n" "Current script directory: """ currentDir """"
If (not critical) {
msg .= "`n`n" "Do not report this! Just ignore it or move your script folder to somewhere else."
msg .= "`n`n" "The script will continue to execute but it is highly recommended to use a different path."
Msgbox, 0x1030, %project% Problematic Installation Path, % msg
} Else {
SplashTextOff
SplashUI.DestroyUI()
msg .= "`n`n" "Do not report this, it is intended behaviour! Move your script folder to somewhere else!"
Msgbox, 0x1010, %project% Invalid Installation Path, % msg
}
If (critical) {
ExitApp
}
}
} | 32.2 | 121 | 0.673469 |
0ba5b1879fe113ded16bd2d850d33e28fdc5db4e | 4,190 | ahk | AutoHotkey | src/ScreenSpace/ScreenSpace.ahk | Onimuru/GDI-plus | 69ef39cf81081ba32162b8f2b45c45aa069c0656 | [
"MIT"
] | 2 | 2020-01-08T17:10:25.000Z | 2020-01-09T08:57:56.000Z | src/ScreenSpace/ScreenSpace.ahk | Onimuru/GDI-plus | 69ef39cf81081ba32162b8f2b45c45aa069c0656 | [
"MIT"
] | null | null | null | src/ScreenSpace/ScreenSpace.ahk | Onimuru/GDI-plus | 69ef39cf81081ba32162b8f2b45c45aa069c0656 | [
"MIT"
] | 2 | 2019-09-30T07:42:37.000Z | 2020-01-08T17:50:10.000Z | ;===== Auto-execute =========================;
;=============== Setting ===============;
#Include, %A_ScriptDir%\..\..\..\lib\Color.ahk
#Include, %A_ScriptDir%\..\..\..\lib\General.ahk
#Include, %A_ScriptDir%\..\..\..\lib\ObjectOriented.ahk
#Include, %A_ScriptDir%\..\..\..\lib\Math.ahk
#Include, %A_ScriptDir%\..\..\..\lib\GDIp.ahk
#Include, %A_ScriptDir%\..\..\..\lib\Geometry.ahk
#KeyHistory 0
#NoEnv
#Persistent
#SingleInstance, Force
CoordMode, Mouse, Screen
ListLines, Off
Process, Priority, , R
SetBatchLines, -1
SetWorkingDir, % A_ScriptDir . "\..\..\.."
;=============== Variable ===============;
IniRead, vDebug, % A_WorkingDir . "\cfg\Settings.ini", Debug, Debug
Global vDebug
, oCanvas := [new GDIp.Canvas({"x": 0, "y": 0, "Width": A_ScreenWidth, "Height": A_ScreenHeight}, "-Caption +AlwaysOnTop +ToolWindow +OwnDialogs +E0x20", "gCanvas1"), new GDIp.Canvas({"x": 0, "y": 0, "Width": A_ScreenWidth, "Height": A_ScreenHeight}, "-Caption +AlwaysOnTop +ToolWindow +OwnDialogs +E0x20", "gCanvas2")]
, oPen := new GDIp.Pen("0x80FFFFFF")
, oRectangle := [new Rectangle(A_ScreenWidth/2, A_ScreenHeight/2, A_ScreenWidth/2, A_ScreenHeight/2) ;* Bottom right.
, new Rectangle(0, A_ScreenHeight/2, A_ScreenWidth/2, A_ScreenHeight/2) ;* Bottom left.
, new Rectangle(0, 0, A_ScreenWidth/2, A_ScreenHeight/2) ;* Top left.
, new Rectangle(A_ScreenWidth/2, 0, A_ScreenWidth/2, A_ScreenHeight/2)] ;* Top right.
, oPoint := [[{}]]
For i, v in oRectangle {
oCanvas[0].DrawRectangle(oPen, v)
}
oCanvas[0].Update()
;=============== Other ===============;
OnExit("Exit"), Update()
Exit
;===== Hotkey =========================;
;=============== Mouse ===============;
$^LButton::
If (oPoint[oPoint.Length - 1].Length != 3) {
oPoint[oPoint.Length - 1].Push(MouseGet("Pos"))
If (oPoint[oPoint.Length - 1].Length == 3) {
oPoint.Push([{}])
}
}
Return
$^RButton::
oPoint := [[{}]]
Return
;=============== Keyboard ===============;
#If (WinActive(A_ScriptName) || WinActive("GDIp.ahk") || WinActive("Geometry.ahk"))
~$^s::
Critical
Sleep, 200
Reload
Return
$F10::ListVars
#If
$^Up::
$^Left::
$^Down::
$^Right::MouseMove, % Round({"Left": -1, "Right": 1}[k := KeyGet(A_ThisHotkey)]), % Round({"Up": -1, "Down": 1}[k]), 0, R
~$Esc::
If (KeyWait("Esc", "T1")) {
Exit()
}
Return
;===== Function =========================;
Exit() {
Critical
GDIp.Shutdown()
ExitApp
}
q::
MouseMove, 50, 50
Return
Update() {
If (QueryPerformanceCounter_Passive()) {
For i, v in oPoint {
Switch (v.Length) {
Case "2":
m := MouseGet("Pos")
v[0].Distance := Point2D.Distance(v[1], m)
v[0].MidPoint := Point2D.MidPoint(v[1], m)
If (v[0].Distance) {
v[0].Color := Format("{:#X}{:06X}", 255, DllCall("shlwapi\ColorHLSToRGB", "UInt", (r := Floor(v[0].Distance/A_ScreenWidth*240) + 160) + (r > 240 ? -240 : 0), "UInt", 120, "UInt", 240))
oCanvas[1].DrawLine(new GDIp.Pen(v[0].Color), v[1], m)
oCanvas[1].DrawString(new GDIp.Brush(v[0].Color), v[0].Distance, Format("Bold r4 s20 x{} y{}", v[0].MidPoint.x, v[0].MidPoint.y))
}
Case "3":
oCanvas[1].DrawLine(new GDIp.Pen(v[0].Color), v[1], v[2])
oCanvas[1].DrawString(new GDIp.Brush(v[0].Color), v[0].Distance, Format("Bold r4 s20 x{} y{}", v[0].MidPoint.x, v[0].MidPoint.y))
}
}
; oCanvas[1].DrawLine(new GDIp.Pen("0xFFFFFFFF", 3), {"x": 5, "y": 5}, {"x": 5, "y": 10})
e := oCanvas[1].DrawEllipse(new GDIp.Pen("0xFFFFFFFF", 1), {"x": 5, "y": 5, "Width": 10, "Height": 10})
; oCanvas[1].FillEllipse(new GDIp.Brush("0xFFFFFFFF"), {"x": 5, "y": 5, "Width": 10, "Height": 10})
; oCanvas[1].DrawRectangle(new GDIp.Pen("0xFFFFFFFF", 2), {"x": 5, "y": 5, "Width": 5, "Height": 10})
; oCanvas[1].FillRectangle(new GDIp.Brush("0xFFFFFFFF"), {"x": 5, "y": 5, "Width": 5, "Height": 10})
oCanvas[1].Update()
}
SetTimer, Update, -1
}
| 30.583942 | 321 | 0.535561 |
1812eb5e4b4d9e3201b70b93d72777a751371746 | 140 | ahk | AutoHotkey | common/hotstring_demo.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | 1 | 2017-07-17T06:04:48.000Z | 2017-07-17T06:04:48.000Z | common/hotstring_demo.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | null | null | null | common/hotstring_demo.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | null | null | null | #Include ./hotstring.ahk
dynamic_hotstring := new DynamicHotstring("hotstring.ini", "HotString")
dynamic_hotstring.StartDynamicHotstring()
| 28 | 71 | 0.814286 |
180727560880b54704696e7b83b6089f148da5ae | 231 | ahk | AutoHotkey | base.ahk | mudssky/myAHKScripts | 0b3171a2da14c1c2c330f825839c1da7f2f48d4b | [
"MIT"
] | 1 | 2021-12-11T02:09:44.000Z | 2021-12-11T02:09:44.000Z | base.ahk | mudssky/myAHKScripts | 0b3171a2da14c1c2c330f825839c1da7f2f48d4b | [
"MIT"
] | null | null | null | base.ahk | mudssky/myAHKScripts | 0b3171a2da14c1c2c330f825839c1da7f2f48d4b | [
"MIT"
] | 1 | 2021-12-31T12:59:00.000Z | 2021-12-31T12:59:00.000Z | ; 拼接所有的ahk脚本的头部,做一些通用的设置
#SingleInstance Force ;跳过对话框,执行此脚本时默认覆盖原来的同名脚本,只允许当前脚本的一个实例存在
#Warn ;启用所有警告,并且把他们显示到消息框中
SendMode "Input" ; 让 Send 成为 SendInput 的代名词. 由于其卓越的速度和可靠性, 推荐在新脚本中使用.
SetWorkingDir A_ScriptDir ;设置脚本工作目录为当前脚本所在的目录。
| 38.5 | 69 | 0.839827 |
5cae39e3ce6b6c029493b7599d1b628f1eeb55ea | 418 | ahk | AutoHotkey | exeuction_time_poc.ahk | ur0n2/macro | 398acc440d84c9b955c75335279e1c5b96067e3b | [
"Apache-2.0"
] | 1 | 2017-07-09T23:47:52.000Z | 2017-07-09T23:47:52.000Z | exeuction_time_poc.ahk | ur0n2/macro | 398acc440d84c9b955c75335279e1c5b96067e3b | [
"Apache-2.0"
] | 11 | 2017-07-08T15:54:24.000Z | 2017-08-08T00:45:10.000Z | exeuction_time_poc.ahk | ur0n2/macro | 398acc440d84c9b955c75335279e1c5b96067e3b | [
"Apache-2.0"
] | null | null | null | global tick_timer = False
F1::
Critical, OFF
Critical
startTime := A_TickCount ;
Critical, OFF
sleep, 3000
Critical
minute := (A_TickCount - startTime) / 1000 / 60
second := (A_TickCount - startTime) / 1000
Critical, OFF
msgbox , , , %minute%
FormatTime, %minute%, , s
msgbox , , , %minute%
; `n%second%
/*
msg = [*] RUNNING TIME %minute% m, (== %second% s)
*/
F2::
ExitApp
F3::
Suspend | 14.928571 | 51 | 0.614833 |
5bad1989294eb38dfd2ab6dbc2879c09b6984d45 | 3,223 | ahk | AutoHotkey | MailslotEx.ahk | cocobelgica/AutoHotkey-Mailslot | f84771c5f79ef96bb463c2b49cabfdddc5560d7a | [
"WTFPL"
] | 3 | 2016-12-06T04:18:37.000Z | 2019-04-27T20:15:55.000Z | MailslotEx.ahk | cocobelgica/AutoHotkey-Mailslot | f84771c5f79ef96bb463c2b49cabfdddc5560d7a | [
"WTFPL"
] | null | null | null | MailslotEx.ahk | cocobelgica/AutoHotkey-Mailslot | f84771c5f79ef96bb463c2b49cabfdddc5560d7a | [
"WTFPL"
] | null | null | null | #Include %A_LineFile%\..\Mailslot.ahk
class MailslotEx extends Mailslot
{
class Server extends Mailslot.Server
{
FStream(encoding:="CP0")
{
return new MailslotEx.Reader(this, encoding)
}
}
class Client extends Mailslot.Client
{
FStream(encoding:="CP0")
{
return new MailslotEx.Writer(this, encoding)
}
}
class Reader
{
__New(slot, encoding:="CP0")
{
ObjSetCapacity(this, "_", bytes := slot._GetInfo("Size"))
addr := ObjGetAddress(this, "_")
if !(read := slot.FRead(addr + 0, bytes))
return
this.__Slot := &slot
this.__Ptr := addr + 0
this.Pos := addr + 0
this.Size := read + 0
this.Encoding := RTrim(encoding, "-RAWraw") ;// StrGet doesn't seem to recognize the 'RAW' suffix
}
__Get(key:="", args*)
{
if !key
return ObjGetAddress(this, "_")
}
__Call(method, args*)
{
if (method ~= "i)^Read(U?(Int|Short|Char|Ptr)|Int64|Double|Float)$")
return this.ReadNum(SubStr(method, 5))
}
Read(chars:=-1)
{
enc := this.Encoding
BytesPerChar := (enc = "UTF-16" || enc = "CP1200") ? 2 : 1
bytes_left := (this.__Ptr + this.Size) - this.Pos
chars_left := bytes_left // BytesPerChar
if (chars < 0 || chars > chars_left) ;// read rest of buffer from current pos
chars := chars_left
str := StrGet(this.Pos, chars, enc)
this.Seek((StrPut(str, enc) - 1) * BytesPerChar, 1)
return str
}
ReadLine()
{
enc := this.Encoding
BytesPerChar := (enc = "UTF-16" || enc = "CP1200") ? 2 : 1
length := ((this.__Ptr + this.Size) - this.Pos) // BytesPerChar
str := StrGet(this.Pos, length, enc)
ln := SubStr(str, 1, (p := InStr(str, "`n")) ? p : StrLen(str))
this.Seek((StrPut(str, enc) - 1) * BytesPerChar, 1)
return ln
}
RawRead(ByRef buf, bytes)
{
VarSetCapacity(buf, bytes)
DllCall("RtlMoveMemory", "Ptr", &buf, "Ptr", this.Pos, "UPtr", bytes)
}
Seek(distance, origin:=0)
{
if (distance < 0 && origin != 2)
origin := 2
start := origin == 0 ? this.__Ptr
: origin == 1 ? this.Pos
: origin == 2 ? this.__Ptr + this.Size
: 0
return start ? this.Pos := start + distance : 0
}
ReadNum(NumType:="UPtr")
{
static sizeof := { "Char": 1, "Short": 2, "Int": 4, "Int64": 8
, "Float": 4, "Double": 8, "Ptr": A_PtrSize }
ptr := this.Pos, this.Seek(sizeof[ LTrim(NumType, "Uu") ], 1)
return NumGet(ptr + 0, NumType)
}
}
class Writer
{
__New(slot, encoding:="CP0")
{
if !(fSlot := FileOpen(slot.Filename, "w"))
return
this.__Slot := &slot
this.__Stream := fSlot
this.Encoding := encoding ;// set encoding after opening the file to avoid BOM
}
__Delete()
{
this.__Stream.Close()
}
__Call(method, args*)
{
if (method ~= "i)^Write(Line|U?(Int|Short|Char)|Int64|Double|Float)?$")
{
fSlot := this.__Stream
return fSlot[method](args*)
}
}
RawWrite(ByRef buf, bytes)
{
fSlot := this.__Stream
return fSlot.RawWrite(buf, bytes)
}
__Handle {
get {
return this.__Stream.__Handle
}
}
Encoding {
get {
return this.__Stream.Encoding
}
set {
return this.__Stream.Encoding := value
}
}
}
} | 21.630872 | 100 | 0.582997 |
ff6e8236072d93b6525715f2e34b30e00125e7cb | 2,357 | ahk | AutoHotkey | Lib/AutoType.ahk | anonymous1184/bitwarden-autotype | 181699fea373625c309e2e0095b46616fd97b0e2 | [
"WTFPL"
] | 77 | 2020-03-25T11:29:31.000Z | 2022-03-12T01:11:27.000Z | Lib/AutoType.ahk | anonymous1184/bitwarden-autotype | 181699fea373625c309e2e0095b46616fd97b0e2 | [
"WTFPL"
] | 21 | 2020-04-07T05:11:40.000Z | 2022-03-28T22:09:46.000Z | Lib/AutoType.ahk | anonymous1184/bitwarden-autotype | 181699fea373625c309e2e0095b46616fd97b0e2 | [
"WTFPL"
] | 12 | 2020-04-06T21:00:45.000Z | 2022-02-06T09:00:02.000Z |
AutoType(Entry, Mode)
{
; Reprompt
if (Entry.reprompt)
&& !ValidateUser("Re-prompt", INI.ADVANCED["reprompt-with-pin"])
Exit
; Generate TOTP
if StrLen(Entry.otpauth)
{
totp := TOTP_Parse(Entry.otpauth, Mode)
if StrLen(totp)
Entry.totp := totp
}
; TCATO
switch Entry.tcato
{
case "on" : obfuscate := true
case "off": obfuscate := false
default:
obfuscate := INI.GENERAL.tcato
}
Entry.Delete("tcato") ; To be used as placeholder
; Perform
BlockInput On ; Only works with UI Access.
p := 1
while p := RegExMatch(Entry.sequence, "[^{}]+|{[^{}]+}", match, p)
p += AutoType_Part(match, Entry, obfuscate)
BlockInput Off
}
AutoType_Part(part, Entry, ByRef obfuscate)
{
regex := "Si){(?<PLACEHOLDER>\w+)(?:\s*)(?<PARAMETERS>(?<PARAMETER1>[^"
. " }]*)(?:\s*)(?<PARAMETER2>[^}]*))}"
RegExMatch(part, regex, $)
if ($Placeholder = "AppActivate")
{
if (SubStr($Parameters, -3) = ".exe")
$Parameters := "ahk_exe" $Parameters
i := 1
w := WinExist($Parameters)
while (w && !WinActive() && i++ < 5)
WinActivate
}
else if ($Placeholder = "Beep")
{
if ($Parameter1 $Parameter2 ~= "\d+")
SoundBeep % $Parameter1, % $Parameter2
}
else if ($Placeholder = "Clipboard")
{
if StrLen($Parameters)
Clipboard := $Parameters
else
Send ^v
}
else if ($Placeholder = "ClearField")
{
Send ^a{Delete}
}
else if ($Placeholder ~= "i)(Delay|Sleep|Wait)")
{
if ($Parameter1 ~= "\d+")
Sleep % $Parameter1
}
else if ($Placeholder = "SmartTab")
{
AutoType_SmartTab()
}
else if ($Placeholder = "TCATO")
{
if (!$Parameter1)
obfuscate := !obfuscate
else
obfuscate := ($Parameter1 = "on")
}
else if GetKeySC($Placeholder) ; Named Keys
Send % part
else ; Auto-type placeholders / free text
{
txt := Entry.HasKey($Placeholder) ? Entry[$Placeholder] : part
if (obfuscate && $Placeholder != "TOTP")
{
wait := INI.ADVANCED["tcato-wait"]
ksps := INI.ADVANCED["tcato-ksps"]
Tcato(txt, UserSeed, wait, ksps)
}
else if (txt != "{TOTP}") ; TOTP placeholder but no code
Send % "{Text}" txt
}
return StrLen(part)
}
AutoType_SmartTab()
{
if (!A_CaretX || !A_CaretY)
{
Send {Tab}
return
}
loop 5
{
Send {Tab}{Right}
Sleep 250
if (A_CaretX || A_CaretY)
break
}
if (!A_CaretX || !A_CaretY) ; Not found
{
Send +{Tab 4}
Exit ; Stop auto-type
}
}
| 19.641667 | 72 | 0.613492 |
f1b791cd4bd3452b6346d00cd085e67bf9980b62 | 1,302 | ahk | AutoHotkey | template.ahk | itmitica/fragfrag | aa0313d5441750da35675115a89a1b0e4c3c0413 | [
"MIT"
] | 2 | 2021-04-21T18:09:18.000Z | 2021-04-22T00:31:33.000Z | template.ahk | itmitica/fragfrag | aa0313d5441750da35675115a89a1b0e4c3c0413 | [
"MIT"
] | null | null | null | template.ahk | itmitica/fragfrag | aa0313d5441750da35675115a89a1b0e4c3c0413 | [
"MIT"
] | 1 | 2021-04-22T00:32:06.000Z | 2021-04-22T00:32:06.000Z | #Include %A_ScriptDir%\base.ahk
#Include %A_ScriptDir%\lib.ahk
vWorkingDir := A_Args[1]
SetWorkingDir, %vWorkingDir%
vStepsTemplate := { 1_cleanup: 1
, 2_createfragdir: 0
, 3_templatefileexists: 0
, 4_templatefilecut: 0 }
FileDelete, template.log
if FileExist(vTemplateTokenDir) {
FileRemoveDir, %vTemplateTokenDir%, 1
if ErrorLevel
vStepsTemplate["1_cleanup"] := 0
}
if vStepsTemplate["1_cleanup"] {
FileCreateDir, %vTemplateTokenDir%
if !ErrorLevel
vStepsTemplate["2_createfragdir"] := 1
}
if vStepsTemplate["2_createfragdir"] {
if FileExist(vTemplateFile)
vStepsTemplate["3_templatefileexists"] := 1
}
if vStepsTemplate["3_templatefileexists"] {
Loop, read, %vTemplateFile%
{
if InStr(A_LoopReadLine, vCutPrefix) {
FileName := vTemplateTokenDir
. RTrim(LTrim(StrReplace(A_LoopReadLine, " ", ""), vCutPrefix), vCutSuffix)
. vFileExt
FileAppend, , %FileName%
}
else
FileAppend, %A_LoopReadLine%`n, %FileName%
}
if !ErrorLevel
vStepsTemplate["4_templatefilecut"] := 1
}
LogSteps("template", "", vStepsTemplate)
| 26.571429 | 92 | 0.596774 |
4b623d2cca9f3083b72eb91d1df4136e6eedfebf | 961 | ahk | AutoHotkey | ELO_UserAutomation.ahk | Jessebeau2001/AutoSort-ELO | c717f9e5d0e45a97a593af04297531818dcc95d8 | [
"Unlicense"
] | null | null | null | ELO_UserAutomation.ahk | Jessebeau2001/AutoSort-ELO | c717f9e5d0e45a97a593af04297531818dcc95d8 | [
"Unlicense"
] | null | null | null | ELO_UserAutomation.ahk | Jessebeau2001/AutoSort-ELO | c717f9e5d0e45a97a593af04297531818dcc95d8 | [
"Unlicense"
] | null | null | null | ^F5::Reload
^Numpad7::
Send {Down}{Down}{Down}{Right}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}{Tab}{Down}{Down}{Enter}{Tab}{Tab}{Tab}{Tab}{Enter}{Tab}{Tab}{Tab}{Enter}{Enter}
Sleep, 1500
Send {Enter}
return
^Numpad8::
Send {Down}{Down}{Down}{Down}{Down}{Down}{Right}{Down}{Down}{Down}{Down}{Down}{Enter}{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}
return
^Numpad9::
Send {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}{Tab}{Down}{Down}{Enter}{Tab}{Tab}{Tab}{Tab}{Enter}
return
^Numpad0::
Send {F4}
Sleep, 200
Send {Tab}{Tab}
WinActivate Dossier Klanten
Send {Home}{F2}^{Home}+^{Right}
Send +{Left}^c{esc}
WinActivate Index voor nieuw document
Send ^v
Sleep, 2800
Send {Down}{Enter}
Send {Tab}{Tab}
return
^p::
WinActivate Dossier Klanten
Send Home
KeyWait Control
Sleep, 400
Send {Del}
KeyWait, Enter, D
Sleep, 1000
WinActivate Dossier Klanten
MouseClick, middle, 400, 125
MouseClickDrag, Left, 400, 125, -1800, -200
WinActivate ELO
Send ^t{Up}
return
| 21.355556 | 153 | 0.703434 |
bad87e5cdec79415e5c5a8e2336c937eaa8e28cc | 6,187 | ahk | AutoHotkey | @Completed/Functions And Scriptlets/String List.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 21 | 2021-04-23T06:09:02.000Z | 2022-03-20T08:45:04.000Z | @Completed/Functions And Scriptlets/String List.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | null | null | null | @Completed/Functions And Scriptlets/String List.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 12 | 2021-05-07T03:33:13.000Z | 2022-03-03T22:25:20.000Z | ;AHK v1
#NoEnv
/*
;StringList := "`nRed`nOrange`nYellow`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`n", ElementDelimiter := "`n"
StringList := "`r`nRed`r`nOrange`r`nYellow`r`nGreen`r`nBlue`r`nIndigo`r`nViolet`r`nBlue`r`nStringTest`r`n", ElementDelimiter := "`r`n"
MsgBox % """" . StringElementList(StringList,ElementDelimiter) . """" ;Red`nOrange`nYellow`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest
MsgBox % """" . StringElementCount(StringList,"",ElementDelimiter) . """" ;9
MsgBox % """" . StringElementCount(StringList,"Blue",ElementDelimiter) . """" ;2
MsgBox % """" . StringElementFind(StringList,"Blue",6,0,ElementDelimiter) . """" ;8
MsgBox % """" . StringElementGet(StringList,-3,1,ElementDelimiter) . """" ;`nViolet`n
MsgBox % """" . StringElementGet(StringList,3,4,ElementDelimiter) . """" ;`nYellow`nGreen`nBlue`nIndigo`n
MsgBox % """" . StringElementInsert(StringList,"TestString","",0,ElementDelimiter) . """" ;`nRed`nOrange`nYellow`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`nTestString`n
MsgBox % """" . StringElementInsert(StringList,"SomeString",3,0,ElementDelimiter) . """" ;`nRed`nOrange`nSomeString`nYellow`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`n
MsgBox % """" . StringElementInsert(StringList,"SomeTest",-5,1,ElementDelimiter) . """" ;`nRed`nOrange`nYellow`nGreen`nSomeTest`nIndigo`nViolet`nBlue`nStringTest`n
MsgBox % """" . StringElementRemove(StringList,-3,1,ElementDelimiter) . """" ;`nRed`nOrange`nYellow`nGreen`nBlue`nIndigo`nBlue`nStringTest`n
MsgBox % """" . StringElementRemove(StringList,2,2,ElementDelimiter) . """" ;`nRed`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`n
MsgBox % """" . StringElementReplace(StringList,"Yellow","TestString",0,ElementDelimiter) ;`nRed`nOrange`nTestString`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`n
AnotherStringList := ElementDelimiter . "Another Item" . ElementDelimiter . "Something" . ElementDelimiter
MsgBox % """" . StringElementJoin(StringList,AnotherStringList,ElementDelimiter) . """" ;`nRed`nOrange`nYellow`nGreen`nBlue`nIndigo`nViolet`nBlue`nStringTest`nAnother Item`nSomething`n
MsgBox % """" . StringElementUnique(StringList,0,ElementDelimiter) . """" ;`nRed`nOrange`nYellow`nGreen`nBlue`nIndigo`nViolet`nStringTest`n
StringElementParse(StringList,"TestFunc","BlaBlaBla",ElementDelimiter)
Return
TestFunc(Field,Index,PassBack)
{
MsgBox "%Field%"`n"%PassBack%"`n%Index%
}
*/
StringElementList(ByRef String,ElementDelimiter = "`n")
{
Temp1 := StrLen(ElementDelimiter)
Return, SubStr(String,Temp1 + 1,0 - Temp1)
}
StringElementCount(ByRef String,Item = "",ElementDelimiter = "`n")
{
If (Item = "")
{
StringReplace, String, String, %ElementDelimiter%, %ElementDelimiter%, UseErrorLevel
Return, ErrorLevel - 1
}
Else
{
StringReplace, String, String, %ElementDelimiter%%Item%%ElementDelimiter%, %ElementDelimiter%%Item%%ElementDelimiter%, UseErrorLevel
Return, ErrorLevel
}
}
StringElementFind(ByRef String,Item,StartingPos = 1,CaseSense = 0,ElementDelimiter = "`n")
{
StringGetPos, StartingPos, String, %ElementDelimiter%, % (StartingPos > 0) ? ("L" . StartingPos) : ("R" . (1 - StartingPos))
Temp1 := InStr(String,ElementDelimiter . Item . ElementDelimiter,CaseSense,StartingPos + 1)
If !Temp1
Return, -1
Temp1 := SubStr(String,1,Temp1 - 1)
StringReplace, Temp1, Temp1, %ElementDelimiter%, %ElementDelimiter%, UseErrorLevel
Return, ErrorLevel + 1
}
StringElementGet(ByRef String,Index = 1,Amount = 1,ElementDelimiter = "`n")
{
StringGetPos, Temp1, String, %ElementDelimiter%, % (Index > 0) ? ("L" . Index) : ("R" . (1 - Index))
Temp3 := StrLen(ElementDelimiter)
StringGetPos, Temp2, String, %ElementDelimiter%, L%Amount%, Temp1 + Temp3
Return, ErrorLevel ? -1 : SubStr(String,Temp1 + 1,Temp2 - (Temp1 - Temp3))
}
StringElementInsert(ByRef String,Item = "",Index = "",Replace = 0,ElementDelimiter = "`n")
{
If (String = "")
Return, ElementDelimiter . Item . ElementDelimiter
If (Index = "")
Return, String . Item . ElementDelimiter
StringGetPos, Temp1, String, %ElementDelimiter%, % (Index > 0) ? ("L" . Index) : ("R" . (1 - Index))
Temp2 := StrLen(ElementDelimiter)
Return, SubStr(String,1,Temp1 + Temp2) . Item . SubStr(String,Replace ? InStr(String,ElementDelimiter,0,Temp1 + Temp2 + 1) : Temp1 + 1)
}
StringElementRemove(ByRef String,Index = 1,Amount = 1,ElementDelimiter = "`n")
{
StringGetPos, Temp1, String, %ElementDelimiter%, % (Index > 0) ? ("L" . Index) : ("R" . (1 - Index))
If ErrorLevel
Return, -1
Temp2 := StrLen(ElementDelimiter), Temp1 += Temp2
StringGetPos, Temp3, String, %ElementDelimiter%, L%Amount%, Temp1
If ErrorLevel
Return, -1
Temp1 := SubStr(String,1,Temp1) . SubStr(String,Temp3 + Temp2 + 1)
Return, (Temp1 = ElementDelimiter) ? "" : Temp1
}
StringElementReplace(ByRef String,Item,Replacement = "",ReplaceAll = 0,ElementDelimiter = "`n")
{
StringReplace, Temp1, String, %ElementDelimiter%%Item%%ElementDelimiter%, %ElementDelimiter%%Replacement%%ElementDelimiter%, ReplaceAll ? "All" : ""
Return, Temp1
}
StringElementJoin(ByRef String,ByRef SecondString,ElementDelimiter = "`n")
{
Return, String . SubStr(SecondString,StrLen(ElementDelimiter) + 1)
}
StringElementUnique(ByRef String,CaseSense = 0,ElementDelimiter = "`n")
{
Unique := ElementDelimiter, Temp1 := StrLen(ElementDelimiter), FoundPos := 1
While, (FoundPos := InStr(String,ElementDelimiter,0,FoundPos))
{
FoundPos += Temp1, Temp2 := InStr(String,ElementDelimiter,0,FoundPos)
If !Temp2
Break
Temp2 := SubStr(String,FoundPos,Temp2 - FoundPos), !InStr(Unique,ElementDelimiter . Temp2 . ElementDelimiter,CaseSense) ? (Unique .= Temp2 . ElementDelimiter)
}
Return, Unique
}
StringElementParse(ByRef String,CallBack,PassBack = "",ElementDelimiter = "`n")
{
If !IsFunc(CallBack)
Return, -1
Temp1 := StrLen(ElementDelimiter), FoundPos := 1
While, (FoundPos := InStr(String,ElementDelimiter,0,FoundPos))
{
FoundPos += Temp1, Temp2 := InStr(String,ElementDelimiter,0,FoundPos)
If !Temp2
Break
Temp2 := SubStr(String,FoundPos,Temp2 - FoundPos)
%CallBack%(Temp2,A_Index,PassBack)
}
} | 46.871212 | 185 | 0.710845 |
2b49558d663abf39cc6d8cdbbcd82466b8cf2253 | 4,195 | ahk | AutoHotkey | @Saved/AHK.net Archive/~infogulch/TrayIcon.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 21 | 2021-04-23T06:09:02.000Z | 2022-03-20T08:45:04.000Z | @Saved/AHK.net Archive/~infogulch/TrayIcon.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | null | null | null | @Saved/AHK.net Archive/~infogulch/TrayIcon.ahk | Uberi/AHK-Scripts | a7939d97fbc9b71663a2c08985e72b2929929fcf | [
"MIT"
] | 12 | 2021-05-07T03:33:13.000Z | 2022-03-03T22:25:20.000Z | ;#NoTrayIcon
;DetectHiddenWindows, On
;MsgBox % TrayIcon_GetInfo() ;%
;SDR()
/*
WM_MOUSEMOVE = 0x0200
WM_LBUTTONDOWN = 0x0201
WM_LBUTTONUP = 0x0202
WM_LBUTTONDBLCLK = 0x0203
WM_RBUTTONDOWN = 0x0204
WM_RBUTTONUP = 0x0205
WM_RBUTTONDBLCLK = 0x0206
WM_MBUTTONDOWN = 0x0207
WM_MBUTTONUP = 0x0208
WM_MBUTTONDBLCLK = 0x0209
PostMessage, nMsg, uID, WM_RBUTTONDOWN, , ahk_id %hWnd%
PostMessage, nMsg, uID, WM_RBUTTONUP , , ahk_id %hWnd%
*/
TrayIcon_GetInfo(sExeName = "")
{
DetectHiddenWindows, On
idxTB := TrayIcon_GetTrayBar()
WinGet, pidTaskbar, PID, ahk_class Shell_TrayWnd
hProc := DllCall("OpenProcess", "Uint", 0x38, "int", 0, "Uint", pidTaskbar)
pRB := DllCall("VirtualAllocEx", "Uint", hProc, "Uint", 0, "Uint", 20, "Uint", 0x1000, "Uint", 0x4)
VarSetCapacity(btn, 20)
VarSetCapacity(nfo, 24)
VarSetCapacity(sTooltip, 128)
VarSetCapacity(wTooltip, 128 * 2)
SendMessage, 0x418, 0, 0, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_BUTTONCOUNT
Loop, %ErrorLevel%
{
SendMessage, 0x417, A_Index - 1, pRB, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_GETBUTTON
DllCall("ReadProcessMemory", "Uint", hProc, "Uint", pRB, "Uint", &btn, "Uint", 20, "Uint", 0)
iBitmap := NumGet(btn, 0)
idn := NumGet(btn, 4)
Statyle := NumGet(btn, 8)
dwData := NumGet(btn,12)
iString := NumGet(btn,16)
DllCall("ReadProcessMemory", "Uint", hProc, "Uint", dwData, "Uint", &nfo, "Uint", 24, "Uint", 0)
hWnd := NumGet(nfo, 0)
uID := NumGet(nfo, 4)
nMsg := NumGet(nfo, 8)
hIcon := NumGet(nfo,20)
WinGet, pid, PID, ahk_id %hWnd%
WinGet, sProcess, ProcessName, ahk_id %hWnd%
WinGetClass, sClass, ahk_id %hWnd%
If !sExeName || (sExeName = sProcess) || (sExeName = pid)
{
DllCall("ReadProcessMemory", "Uint", hProc, "Uint", iString, "Uint", &wTooltip, "Uint", 128 * 2, "Uint", 0)
DllCall("WideCharToMultiByte", "Uint", 0, "Uint", 0, "str", wTooltip, "int", -1, "str", sTooltip, "int", 128, "Uint", 0, "Uint", 0)
sTrayIcon_GetInfo .= "idx: " . A_Index - 1 . " | idn: " . idn . " | Pid: " . pid . " | uID: " . uID . " | MessageID: " . nMsg . " | hWnd: " . hWnd . " | Class: " . sClass . " | Process: " . sProcess . "`n" . " | Tooltip: " . sTooltip . "`n"
}
}
DllCall("VirtualFreeEx", "Uint", hProc, "Uint", pRB, "Uint", 0, "Uint", 0x8000)
DllCall("CloseHandle", "Uint", hProc)
Return sTrayIcon_GetInfo
}
TrayIcon_Remove(hWnd, uID, nMsg = 0, hIcon = 0, nRemove = 2)
{
DetectHiddenWindows, On
NumPut(VarSetCapacity(ni,444,0), ni)
NumPut(hWnd , ni, 4)
NumPut(uID , ni, 8)
NumPut(1|2|4, ni,12)
NumPut(nMsg , ni,16)
NumPut(hIcon, ni,20)
Return DllCall("shell32\Shell_NotifyIconA", "Uint", nRemove, "Uint", &ni)
}
TrayIcon_Hide(idn, bHide = True)
{
DetectHiddenWindows, On
idxTB := TrayIcon_GetTrayBar()
SendMessage, 0x404, idn, bHide, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_HIDEBUTTON
SendMessage, 0x1A, 0, 0, , ahk_class Shell_TrayWnd
}
TrayIcon_Delete(idx)
{
DetectHiddenWindows, On
idxTB := TrayIcon_GetTrayBar()
SendMessage, 0x416, idx - 1, 0, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_DELETEBUTTON
SendMessage, 0x1A, 0, 0, , ahk_class Shell_TrayWnd
}
TrayIcon_Move(idxOld, idxNew)
{
DetectHiddenWindows, On
idxTB := TrayIcon_GetTrayBar()
SendMessage, 0x452, idxOld - 1, idxNew - 1, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_MOVEBUTTON
}
TrayIcon_GetTrayBar()
{
DetectHiddenWindows, On
WinGet, ControlList, ControlList, ahk_class Shell_TrayWnd
RegExMatch(ControlList, "(?<=ToolbarWindow32)\d+(?!.*ToolbarWindow32)", nTB)
Loop, %nTB%
{
ControlGet, hWnd, hWnd,, ToolbarWindow32%A_Index%, ahk_class Shell_TrayWnd
hParent := DllCall("GetParent", "Uint", hWnd)
WinGetClass, sClass, ahk_id %hParent%
If (sClass <> "SysPager")
Continue
idxTB := A_Index
Break
}
Return idxTB
}
TrayIcon_GetHotItem()
{
idxTB := TrayIcon_GetTrayBar()
SendMessage, 0x447, 0, 0, ToolbarWindow32%idxTB%, ahk_class Shell_TrayWnd ; TB_GETHOTITEM
Return ErrorLevel << 32 >> 32
}
| 29.964286 | 246 | 0.655066 |
76d5cddb525d528c27f61a118b132f44b91c0870 | 4,128 | ahk | AutoHotkey | CArgyBargyServerCore.ahk | CharlesWillis3/ahk-argybargy | 1cf93476393f8819bc7f09e5578516f5ad726bd3 | [
"MIT"
] | null | null | null | CArgyBargyServerCore.ahk | CharlesWillis3/ahk-argybargy | 1cf93476393f8819bc7f09e5578516f5ad726bd3 | [
"MIT"
] | null | null | null | CArgyBargyServerCore.ahk | CharlesWillis3/ahk-argybargy | 1cf93476393f8819bc7f09e5578516f5ad726bd3 | [
"MIT"
] | null | null | null | #include %A_LineFile%\..\CArgyBargyBase.ahk
DetectHiddenWindows, On
class CArgyBargyServerCore extends CArgyBargyBase
{
; An array of windows handles that have registered to receive messages from this server
_rghRcvrs := []
; Use the keys as a hash set
_rghMaybeInvalidRcvrs := {}
__New(sServerId)
{
global AB_GOODBYE
OnExit(this.OnExit.Bind(this), 1)
OnError(this.OnError.Bind(this), 1)
this._nAddRcvrMsgId := this.GetAddRcvrMsgId(sServerId)
OnMessage(this._nAddRcvrMsgId, this.AB_ADDRCVR.Bind(this))
OnMessage(AB_GOODBYE, this.AB_GOODBYE.Bind(this))
global fn_Reval_rcvr := this.OnRevalidateClients.Bind(this)
SetTimer, % fn_reval_rcvr, -5000
}
AdviseRcvrsChanged(fnOnRcvrsChanged)
{
this._fnOnRcvrsChanged := fnOnRcvrsChanged
}
OnExit(sExitReason, nExitCode)
{
global AB_GOODBYE
OutputDebug % A_ThisFunc " ExitReason: " sExitReason " ExitCode: " nExitCode
this.PostMessage(AB_GOODBYE, A_ScriptHwnd)
return 0
}
OnError(pException)
{
global AB_FAULT
OutputDebug % A_ThisFunc " Line: " pException.Line " Message: " pException.Message
this.PostMessage(AB_FAULT, A_ScriptHwnd)
return 1
}
OnRevalidateClients()
{
global AB_PING, AB_ACK, AB_GOODBYE, fn_reval_rcvr
Thread, Interrupt, 0
Thread, Priority, -10
rgh_maybe_invalid_clone := this._rghMaybeInvalidRcvrs.Clone()
this._rghMaybeInvalidRcvrs := {}
for h_rcvr in rgh_maybe_invalid_clone {
SendMessage, AB_PING, A_ScriptHwnd,,, ahk_id %h_rcvr%
if (ErrorLevel == AB_ACK) {
OutputDebug % "The rcvr has been revalidated: " AS_HEX16(h_rcvr)
} else {
OutputDebug % "The rcvr has been invalidated: " AS_HEX16(h_rcvr)
this.DetachClient(h_rcvr)
PostMessage, AB_GOODBYE, A_ScriptHwnd, AB_PING,, ahk_id %h_rcvr%
}
}
SetTimer, % fn_reval_rcvr, -10000
}
PostMessage(nMsgId, wParam, lParam := "")
{
Critical
rgh_rcvrs_clone := this._rghRcvrs.Clone()
loop % rgh_rcvrs_clone.Length() {
h_rcvr := rgh_rcvrs_clone[A_Index]
PostMessage, nMsgId, wParam, lParam,, ahk_id %h_rcvr%
if (ErrorLevel) {
this._rghMaybeInvalidRcvrs[h_rcvr] := 0
}
OutputDebug % A_ThisFunc " msgId: " AS_HEX16(nMsgId) " wParam: " AS_HEX16(wParam) " lParam: " AS_HEX16(lParam) " rcvr: " AS_HEX16(h_rcvr) " LastError: " A_LastError " ErrorLevel: " ErrorLevel
}
return (ErrorLevel == 0)
}
PostError(nErrorCode)
{
global AB_ERROR
this.PostMessage(AB_ERROR, A_ScriptHwnd, nErrorCode)
}
DetachClient(hRcvr)
{
loop % this._rghRcvrs.Length() {
if (this._rghRcvrs[A_Index] == hRcvr)
idx_remove := A_Index
}
if (idx_remove) {
this._rghRcvrs.RemoveAt(idx_remove)
this._fnOnRcvrsChanged.Call(hRcvr, false)
OutputDebug % A_ThisFunc " Removed rcvr: " AS_HEX16(hRcvr)
return AB_ACK
} else {
OutputDebug % A_ThisFunc " Failed to remove rcvr: " AS_HEX16(hRcvr)
return false
}
}
AB_ADDRCVR(wParam, lParam, msg, hwnd)
{
global AB_ACK, AB_WELCOME
SendMessage, AB_WELCOME, A_ScriptHwnd,,, ahk_id %wParam%,,,, 500
if (ErrorLevel == AB_ACK) {
OutputDebug % A_ThisFunc " Adding rcvr: " AS_HEX16(wParam) " ScriptHandle: " A_ScriptHwnd
this._rghRcvrs.Push(wParam)
this._fnOnRcvrsChanged.Call(wParam, true)
}
else
OutputDebug % A_ThisFunc " AB_WELCOME not acknowledged within timeout. " AS_HEX16(wParam) " ErrorLevel: " AS_HEX16(ErrorLevel)
}
AB_GOODBYE(wParam, lParam, msg, hwnd)
{
global AB_ACK
OutputDebug % A_ThisFunc " wParam: " AS_HEX16(wParam)
return this.DetachClient(wParam)
}
} | 30.80597 | 203 | 0.611192 |
285107c4a18da931ccfbe97ac006bbb54627cce0 | 793 | ahk | AutoHotkey | AutoHotKey.ahk | corbob/RandoAHK | 82e3ec7e357b265f208ce8730bf83a1e055c67e6 | [
"MIT"
] | 1 | 2019-06-28T04:56:59.000Z | 2019-06-28T04:56:59.000Z | AutoHotKey.ahk | corbob/RandoAHK | 82e3ec7e357b265f208ce8730bf83a1e055c67e6 | [
"MIT"
] | null | null | null | AutoHotKey.ahk | corbob/RandoAHK | 82e3ec7e357b265f208ce8730bf83a1e055c67e6 | [
"MIT"
] | null | null | null | SetTimer,UPDATEDSCRIPT,5000
UPDATEDSCRIPT:
FileGetAttrib,attribs,%A_ScriptFullPath%
IfInString,attribs,A
{
FileSetAttrib,-A,%A_ScriptFullPath%
Reload
}
Return
CapsLock::Return
#if GetKeyState("CapsLock","P")
q::SendInput,q
w::SendInput,w
e::SendInput,e
r::SendInput,r
t::SendInput,t
y::SendInput,y
u::SendInput,u
i::SendInput,i
o::SendInput,o
p::SendInput,p
[::SendInput,[
]::SendInput,]
\::SendInput,\
a::SendInput,a
s::SendInput,s
d::SendInput,d
f::SendInput,f
g::SendInput,g
h::SendInput,{Left}
j::SendInput,{Down}
k::SendInput,{Up}
l::SendInput,{Right}
;::SendInput,;
'::SendInput,'
z::SendInput,z
x::SendInput,x
c::SendInput,c
v::SendInput,v
b::SendInput,b
n::SendInput,n
m::SendInput,m
,::SendInput,,
.::SendInput,.
/::SendInput,/ | 16.87234 | 42 | 0.679697 |
429a437c6d22e291aa9cd279e30a3b805abb891e | 4,587 | ahk | AutoHotkey | src/Config.ahk | johngrib/AhkVimLike | b042f816fd970ab794cf3837e15678343629eb63 | [
"MIT"
] | 8 | 2016-02-29T06:37:29.000Z | 2019-12-04T07:34:47.000Z | src/Config.ahk | johngrib/AhkVimLike | b042f816fd970ab794cf3837e15678343629eb63 | [
"MIT"
] | 1 | 2015-12-10T11:15:30.000Z | 2015-12-10T11:16:34.000Z | src/Config.ahk | johngrib/AhkVimLike | b042f816fd970ab794cf3837e15678343629eb63 | [
"MIT"
] | 4 | 2017-06-05T23:00:50.000Z | 2021-05-14T01:17:54.000Z | class Config {
/*
Contructor
*/
__New(file_address) {
this.file_address := file_address
this.cfg := {}
this.set_stat_color()
this.set_multi_monitor_location()
this.cfg["STAT_LOC"] := this.func_get_stat_location()
this.cfg["OP_ADDRESS"] := this.get_ini_section("OP_ADDRESS")
this.cfg["INPUT_COMMAND"] := this.get_input_command()
} ; // end of __New
get_input_command(){
str := ""
file := this.file_address
IniRead,se, %file%, INPUT_COMMAND
Loop,Parse,se,`n,`r
{
line := Trim(A_LoopField)
str := str . "," . line
}
enum := this.cfg["OP_ADDRESS"]._NewEnum()
While enum[k, v]
{
temp := ",op " . k
str := str . temp
}
str := SubStr(str, 2)
Sort, str, CL D,
return StrSplit(str, ",", ".")
}
set_stat_color(){
this.cfg["NORMAL"] := {"font_color" : "FF0000", "bg_color" : "000000", "_title": "avl_normal", "trans": "220" }
this.cfg["INSERT"] := {"font_color" : "3F51B5", "bg_color" : "FFFFFF", "_title": "avl_insert", "trans": "220" }
this.cfg["CAPSLOCK"] := {"font_color" : "FF4081", "bg_color" : "FFFFFF", "_title": "avl_capslock", "trans": "220" }
for sect, obj in this.cfg {
for key, def in obj {
ini_value := this.get_ini_value(sect, key, def)
if(this.is_invalid_value(key, ini_value)){
ini_value := this.fix_ini_value( sect, key, this.cfg[sect][key] )
}
this.cfg[sect][key] := ini_value
}
}
}
set_multi_monitor_location(){
this.cfg["MONITOR_CNT"] := this.get_monitor_cnt()
cnt := this.cfg["MONITOR_CNT"]
loop %cnt% {
SysGet, mon, Monitor, %A_Index%
name := "FENCE" . A_Index
this.cfg[name] := {"loc" : "down", "size" : 0, "width" : monRight - monLeft, "height" : monBottom - monTop, "x" : monLeft, "y" : monTop }
}
this.cfg["FENCE"] := this.func_get_tray_location()
}
get_ini_section(sect){
map := {}
file := this.file_address
IniRead,se, %file%, %sect%
Loop,Parse,se,`n,`r
{
line := Trim(A_LoopField)
if(RegExMatch(line, "^\s*\w+\s*\=\s*.+$")) {
key := RegExReplace(A_LoopField, "^\s*(\w+)\s*\=\s*.+$", "$1")
val := RegExReplace(A_LoopField, "^\s*\w+\s*\=\s*(.+)$", "$1")
map[key] := val
}
}
return map
}
/*
get monitor count
*/
get_monitor_cnt(){
SysGet, cnt, MonitorCount
return cnt
}
/*
check config section
*/
has_sect(str){
return this.cfg.HasKey(str)
}
/*
get section config
*/
get_sect(str){
return this.cfg[str]
}
/*
get section-key value
*/
get_value(sect, key){
return this.cfg[sect][key]
}
/*
get value from ini file
*/
get_ini_value(sect, key, default_value){
file := this.file_address
IniRead, value, %file%, %sect%, %key%, %default_value%
return value
}
/*
ini value validate check
*/
is_invalid_value( key, value ) {
if(RegExMatch( key , "^_"))
return false
if( RegExMatch( key, "^[^_]+_color$" ) )
return not RegExMatch( value, "^[0-9a-fA-F]{6}$" )
}
/*
fix unvalid value in ini file
*/
fix_ini_value( sect, key, value ){
file := this.file_address
IniWrite, %value%, %file%, %sect%, %key%
return value
}
/*
*/
func_get_stat_location(){
tray_info := this.cfg["FENCE"]
loc := tray_info["loc"]
size := tray_info["size"]
height := this.get_stat_height()
if( loc = "down" )
return {"x" : Floor(A_ScreenWidth/2), "y" : A_ScreenHeight - size - height }
else
return {"x" : Floor(A_ScreenWidth/2), "y" : A_ScreenHeight - height }
}
func_get_tray_location(){
WinGetPos,xx,yy,ww,hh,ahk_class Shell_TrayWnd,,,
if( ww > hh and yy > 0 )
return {"loc" : "down", "size" : hh, "width" : A_ScreenWidth, "height" : A_ScreenHeight - hh, "x" : 0, "y" : 0 }
else if( ww < hh and yy = 0 and xx = 0)
return {"loc" : "left", "size" : hh, "width" : A_ScreenWidth - ww, "height" : A_ScreenHeight, "x" : ww, "y" : 0 }
else if( ww < hh and xx > 0 )
return {"loc" : "right", "size" : hh, "width" : A_ScreenWidth - ww, "height" : A_ScreenHeight, "x" : 0, "y" : 0 }
else
return {"loc" : "up", "size" : hh, "width" : A_ScreenWidth, "height" : A_ScreenHeight - hh, "x" : 0, "y" : hh }
}
get_stat_height(){
create_gui("PANEL", "size_test", "NORMAL", -100, -100, "000000", "FFFFFF", "220")
WinGetPos,xx,yy,ww, hh, size_test
return hh
}
} | 26.824561 | 143 | 0.551341 |
896788b89f034acf922f3bde7532a1d5837010b4 | 842 | ahk | AutoHotkey | GDO.Utilities/create_browsers_preprod.ahk | bkavuncu/GDO | d3225660af2b8151eccdb52238cbc51bf2005c3e | [
"MIT"
] | null | null | null | GDO.Utilities/create_browsers_preprod.ahk | bkavuncu/GDO | d3225660af2b8151eccdb52238cbc51bf2005c3e | [
"MIT"
] | 1 | 2019-10-09T08:50:15.000Z | 2019-10-09T08:50:15.000Z | GDO.Utilities/create_browsers_preprod.ahk | bkavuncu/GDO | d3225660af2b8151eccdb52238cbc51bf2005c3e | [
"MIT"
] | 2 | 2019-10-02T20:35:22.000Z | 2021-05-17T00:56:45.000Z | Width := 1920
Height := 1080
Cols := 1
Rows := 2
URL := "http://dsigdopreprod.doc.ic.ac.uk//Web/Node.cshtml"
URLParameter :="clientId"
Title := "GDO Node "
TopLeftX := 0
TopLeftY := 0
Node := 0
Step := 16
Node += %1%
Numnodes := (Cols*Rows)
Col := 0
Row := Rows
Loop, %Rows%
{
Loop, %Cols%
{
Parameter := " --app="
Fullurl = %URL%?%UrlParameter%=%Node%
run "chrome.exe" --app=%Fullurl%
Sleep 400
WinActivate, %Title%%Node%
WinWaitActive, %Title%%Node%
WinGet Style, Style, A
CordX := ((Col*Width)+TopLeftX)
CordY := (((Row-1)*Height)+TopLeftY)
if(Style & 0xC40000) {
WinSet, Style, -0xC40000, A
WinMove,A,,%CordX%,%CordY%,%Width%,%Height%
} else {
WinSet, Style, +0xC40000, A
WinMove,A,,%CordX%,%CordY%,%Width%,%Height%
}
Node += 1
Col += 1
}
Node += (Step-Cols)
Col := 0
Row -= 1
}
Exitapp | 17.183673 | 59 | 0.598575 |
38872d26365e273eb7913f23d99c5d6e8a6704c2 | 37 | ahk | AutoHotkey | home-enter-up.ahk | mytee306/ahk-scripts | b32d101e7c51de5befc05dd315ec2dc16905cfb3 | [
"MIT"
] | null | null | null | home-enter-up.ahk | mytee306/ahk-scripts | b32d101e7c51de5befc05dd315ec2dc16905cfb3 | [
"MIT"
] | null | null | null | home-enter-up.ahk | mytee306/ahk-scripts | b32d101e7c51de5befc05dd315ec2dc16905cfb3 | [
"MIT"
] | null | null | null | !+\::
Send, {home}{enter}{up}
return
| 9.25 | 23 | 0.567568 |
fbec4bdf7c05654a372ddb350d85b47d7b1ffee6 | 3,089 | ahk | AutoHotkey | window/WindowFromPoint.ahk | flipeador/Library-AutoHotkey | d66c1ab8b5ce6a9a0cc2dfdb7cc0ff1ffaba0da7 | [
"Unlicense"
] | 9 | 2018-08-20T20:47:52.000Z | 2021-03-01T10:19:22.000Z | window/WindowFromPoint.ahk | flipeador/Library-AutoHotkey | d66c1ab8b5ce6a9a0cc2dfdb7cc0ff1ffaba0da7 | [
"Unlicense"
] | 1 | 2019-03-14T16:05:08.000Z | 2019-04-05T18:28:04.000Z | window/WindowFromPoint.ahk | flipeador/Library-AutoHotkey | d66c1ab8b5ce6a9a0cc2dfdb7cc0ff1ffaba0da7 | [
"Unlicense"
] | 7 | 2019-03-14T15:51:47.000Z | 2021-11-30T19:28:44.000Z | /*
Recupera el identificador de la ventana que coincide con el punto especificado.
Parámetros:
X : El punto X.
Y : El punto Y.
ParentID: El identificador de la ventana padre. Si se utiliza, la función busca por una ventana hija (ej. un control) y los puntos X e Y son relativos a esta ventana.
Hidden : Si se establece en TRUE, busca tambien por ventanas ocultas.
Disabled: Si se establece en TRUE, busca tambien por ventanas deshabilitadas.
Return:
0 = No se ha encontrado ninguna ventana en el punto especificado o ParentID no existe (si ParentID != 0).
[array] = Devuelve un array con el identificador de cada ventana encontrada en el punto especificado.
Ejemplo:
Gui := GuiCreate()
LV := Gui.AddListView('x0 y0 w500 h400', 'Hwnd|Title|ClassName')
For Each, WindowID in WindowFromPoint(100, 100)
LV.Add(, WindowID, WinGetTitle('ahk_id' . WindowID), WinGetClass('ahk_id' . WindowID))
Loop (2)
LV.ModifyCol(A_Index, 'AutoHdr')
Gui.Show('w500 h400')
WinWaitClose('ahk_id' . Gui.hWnd)
ExitApp
*/
WindowFromPoint(X, Y, ParentID := 0, Hidden := FALSE, Disabled := FALSE)
{
If (ParentID && !DllCall('User32.dll\IsWindow', 'Ptr', ParentID))
Return (FALSE)
Local RECT
VarSetCapacity(RECT, 16)
Local Info := {X: X, Y: Y, ParentID: ParentID, Hidden: Hidden, Disabled: Disabled, pRect: &RECT}
, pInfo := &Info
, pEnumChildProc := RegisterCallback('WindowFromPoint_EnumChildProc',,, pInfo)
, Data := []
DllCall('User32.dll\EnumChildWindows', 'Ptr', ParentID, 'UPtr', pEnumChildProc, 'UPtr', &Data)
DllCall('Kernel32.dll\GlobalFree', 'UPtr', pEnumChildProc, 'UPtr')
Return (Data.Length() ? Data : 0)
} ;https://msdn.microsoft.com/en-us/library/windows/desktop/ms633493(v=vs.85).aspx
WindowFromPoint_EnumChildProc(hWnd, pData)
{
Local Info := Object(A_EventInfo)
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms633530(v=vs.85).aspx
If (!Info.Hidden && !DllCall('User32.dll\IsWindowVisible', 'Ptr', hWnd))
Return (TRUE)
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646303(v=vs.85).aspx
If (!Info.Disabled && !DllCall('User32.dll\IsWindowEnabled', 'Ptr', hWnd))
Return (TRUE)
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms633519(v=vs.85).aspx
DllCall('User32.dll\GetWindowRect', 'Ptr', hWnd, 'UPtr', Info.pRect)
Local X := NumGet(Info.pRect , 'Int')
, Y := NumGet(Info.pRect + 4, 'Int')
, W := NumGet(Info.pRect + 8, 'Int') - X
, H := NumGet(Info.pRect + 12, 'Int') - Y
If (Info.ParentID)
{
DllCall('User32.dll\ScreenToClient', 'Ptr', Info.ParentID, 'UPtr', Info.pRect)
X := NumGet(Info.pRect , 'Int')
Y := NumGet(Info.pRect + 4, 'Int')
}
If (Info.X >= X && Info.X <= X+W && Info.Y >= Y && Info.Y <= Y+H)
Object(pData).Push(hWnd)
Return (TRUE)
}
| 39.101266 | 174 | 0.619618 |
749b38844380176935767c39b4961c5c2d429854 | 19,425 | ahk | AutoHotkey | WindowTweak.ahk | DeathByNukes/WindowTweak | 2b03075b91a0ac671ecb6aec6c408ba3484ab821 | [
"Unlicense"
] | 1 | 2017-11-02T00:40:36.000Z | 2017-11-02T00:40:36.000Z | WindowTweak.ahk | DeathByNukes/WindowTweak | 2b03075b91a0ac671ecb6aec6c408ba3484ab821 | [
"Unlicense"
] | null | null | null | WindowTweak.ahk | DeathByNukes/WindowTweak | 2b03075b91a0ac671ecb6aec6c408ba3484ab821 | [
"Unlicense"
] | null | null | null | #NoEnv
SetBatchLines, -1
SendMode Input
SetWorkingDir %A_ScriptDir%
Menu, TRAY, Icon, %A_WinDir%\system32\shell32.dll, 166
SetWinDelay, -1
SetControlDelay, -1
CoordMode, ToolTip, Screen
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
CoordMode, Caret, Screen
CoordMode, Menu, Screen
hotkey_window = !#Space
; acts on an individual control rather than the whole window
hotkey_control = ^#Space
; re-runs the last selected menu item at the current cursor position
hotkey_repeat_window = ^!#Space
;hotkey_window = #Space
;hotkey_repeat_window = ^!#Space
; have to be high DPI aware to work with real window coordinates
EnvGet, __COMPAT_LAYER, __COMPAT_LAYER
IfNotInString, __COMPAT_LAYER, HIGHDPIAWARE
{
__COMPAT_LAYER .= (__COMPAT_LAYER = "" ? "" : " ") "HIGHDPIAWARE"
EnvSet, __COMPAT_LAYER, %__COMPAT_LAYER%
Reload
}
if !A_IsAdmin
Menu, TRAY, Add, Run as &administrator, RunAsAdmin
loop 0
{
RunAsAdmin:
if A_IsCompiled
Run *RunAs "%A_ScriptFullPath%" /restart
else
Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
return
}
/*
*
* Extended Window Styles
*
#define WS_EX_DLGMODALFRAME 0x00000001L
#define WS_EX_NOPARENTNOTIFY 0x00000004L
#define WS_EX_TOPMOST 0x00000008L
#define WS_EX_ACCEPTFILES 0x00000010L
#define WS_EX_TRANSPARENT 0x00000020L
#if(WINVER >= 0x0400)
#define WS_EX_MDICHILD 0x00000040L
#define WS_EX_TOOLWINDOW 0x00000080L
#define WS_EX_WINDOWEDGE 0x00000100L
#define WS_EX_CLIENTEDGE 0x00000200L
#define WS_EX_CONTEXTHELP 0x00000400L
#endif * WINVER >= 0x0400 *
#if(WINVER >= 0x0400)
#define WS_EX_RIGHT 0x00001000L
#define WS_EX_LEFT 0x00000000L
#define WS_EX_RTLREADING 0x00002000L
#define WS_EX_LTRREADING 0x00000000L
#define WS_EX_LEFTSCROLLBAR 0x00004000L
#define WS_EX_RIGHTSCROLLBAR 0x00000000L
#define WS_EX_CONTROLPARENT 0x00010000L
#define WS_EX_STATICEDGE 0x00020000L
#define WS_EX_APPWINDOW 0x00040000L
#define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
#define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
#endif * WINVER >= 0x0400 *
#if(_WIN32_WINNT >= 0x0500)
#define WS_EX_LAYERED 0x00080000
#endif * _WIN32_WINNT >= 0x0500 *
#if(WINVER >= 0x0500)
#define WS_EX_NOINHERITLAYOUT 0x00100000L // Disable inheritence of mirroring by children
#define WS_EX_LAYOUTRTL 0x00400000L // Right to left mirroring
#endif * WINVER >= 0x0500 *
#if(_WIN32_WINNT >= 0x0500)
#define WS_EX_COMPOSITED 0x02000000L
#define WS_EX_NOACTIVATE 0x08000000L
#endif * _WIN32_WINNT >= 0x0500 *
*/
Menu, TweakTransColor, Add, Transparent Color, TweakTransColor100
Menu, TweakTransColor, Add, Remaining portion 75`% transparent, TweakTransColor75
Menu, TweakTransColor, Add, Remaining portion 50`% transparent, TweakTransColor50
Menu, TweakTransColor, Add, Remaining portion 25`% transparent, TweakTransColor25
Menu, TweakTransColor, Add, No Transparency, TweakTransColor0
Menu, Tweak, Add, Transparent Color, :TweakTransColor
Menu, TweakResize, Add, Resize Custom, TweakResizeCustom
Menu, TweakResize, Add, Copy Dimensions, TweakResizeCopy
Menu, TweakResize, Add, Paste Dimensions, TweakResizePaste
Menu, TweakResize, Add, Resize "Normal", TweakResizeNormal
Menu, TweakResize, Add, Resize "Normal" (centered), TweakResizeNormalCentered
Menu, TweakResize, Add, Resize 50`%, TweakResizeScale50
Menu, TweakResize, Add, Resize 200`%, TweakResizeScale200
Menu, TweakResize, Add, Resize 640x480, TweakResize640x480
Menu, TweakResize, Add, Resize 800x600, TweakResize800x600
Menu, TweakResize, Add, Resize 1024x768, TweakResize1024x768
Menu, TweakResize, Add, Resize 1152x864, TweakResize1152x864
Menu, TweakResize, Add, Resize 1280x720, TweakResize1280x720
Menu, TweakResize, Add, Resize 1280x1024, TweakResize1280x1024
Menu, TweakResize, Add, Resize 1600x900, TweakResize1600x900
Menu, TweakResize, Add, Resize 1600x1200, TweakResize1600x1200
Menu, TweakResize, Add, Resize 1920x1080, TweakResize1920x1080
Menu, TweakResize, Add, Resize 1920x1200, TweakResize1920x1200
Menu, Tweak, Add, Resize, :TweakResize
TweakX = Add
TweakY = Add
Loop, 2
{
Menu, TweakStyle%TweakX%, Add, Always On Top, TweakStyle%TweakX%AlwaysOnTop
Menu, TweakStyle%TweakX%, Add, Disabled, TweakStyle%TweakX%Disabled
Menu, TweakStyle%TweakX%, Add, Standard Title Bar (border + dialog frame), TweakStyle%TweakX%Caption
Menu, TweakStyle%TweakX%, Add, Border, TweakStyle%TweakX%Border
Menu, TweakStyle%TweakX%, Add, Dialog Box Frame, TweakStyle%TweakX%Dlgframe
Menu, TweakStyle%TweakX%, Add, Maximize Button, TweakStyle%TweakX%Maximizebox
Menu, TweakStyle%TweakX%, Add, Minimize Button, TweakStyle%TweakX%Minimizebox
Menu, TweakStyle%TweakX%, Add, Resizable, TweakStyle%TweakX%Sizebox
Menu, TweakStyle%TweakX%, Add, System Menu, TweakStyle%TweakX%Sysmenu
;Menu, TweakStyle%TweakX%, Add, , TweakStyle%TweakX%
Menu, Tweak, Add, %TweakY% Styles, :TweakStyle%TweakX%
TweakX = Del
TweakY = Remove
}
Menu, Tweak, Add, Set Text, TweakText
Menu, Tweak, Add, Enable and Click, TweakClick
Menu, Tweak, Add, &Fullscreen, TweakFullscreen
Menu, Tweak, Add, UnFullscreen, TweakUnFullscreen
Menu, Tweak, Add, Center, TweakCenter
Menu, Tweak, Add, Move To 0`,0, TweakMove00
Menu, Tweak, Add, Maximum &Width, TweakMaxWidth
Menu, Tweak, Add, Get Style, TweakGetStyle
Menu, Tweak, Add, Get ExStyle, TweakGetExStyle
Menu, Tweak, Add, Get Controls, TweakGetControls
Menu, Tweak, Add
Menu, Tweak, Add, &Close, TweakClose
Menu, TweakKill, Add, Yes I'm sure, TweakKillWin
Menu, Tweak, Add, Kill Process, :TweakKill
Menu, Tweak, Add
Menu, TweakHelp, Add, Window: %hotkey_window%, HotkeyWindow
Menu, TweakHelp, Add, Control: %hotkey_control%, HotkeyControl
Menu, TweakHelp, Add, Repeat Window: %hotkey_repeat_window%, HotkeyRepeatWindow
Menu, Tweak, Add, Help, :TweakHelp
Menu, TRAY, Add, Help, :TweakHelp
; set a default so we don't have to check whether it's set
TweakLastCommand = TweakGetStyle
click_sound = %ProgramFiles%\DBN\hlwavpak\click.wav
IfNotExist %click_sound%
click_sound = *64
Hotkey, %hotkey_window%, HotkeyWindow
Hotkey, %hotkey_control%, HotkeyControl
Hotkey, %hotkey_repeat_window%, HotkeyRepeatWindow
return ; ---------------------------------------------------------------------------------
HotkeyWindow:
MouseGetPos, TweakX, TweakY, TweakWin, TweakControl, 2
PixelGetColor, TweakColor, TweakX, TweakY, RGB
Menu, Tweak, Show
return
; acts on an individual control rather than the whole window
HotkeyControl:
TweakControl =
MouseGetPos, TweakX, TweakY,, TweakWin, 2
PixelGetColor, TweakColor, TweakX, TweakY, RGB
Menu, Tweak, Show
return
; re-runs the last selected menu item at the current cursor position
HotkeyRepeatWindow:
SoundPlay %click_sound%
MouseGetPos, TweakX, TweakY, TweakWin, TweakControl, 2
PixelGetColor, TweakColor, TweakX, TweakY, RGB
Goto %TweakLastCommand%
return
TweakInvoked()
{
global
TweakLastCommand := A_ThisLabel
IfWinNotExist ahk_id %TweakWin% ; set the last found window
{
SoundPlay *16
Exit
}
}
TweakTransColor100:
TweakInvoked()
WinSet, TransColor, %TweakColor%
return
TweakTransColor75:
TweakTransColor50:
TweakTransColor25:
TweakInvoked()
WinSet, TransColor, % TweakColor " " round(SubStr(A_ThisLabel,16)/100*255)
return
TweakTransColor0:
TweakInvoked()
WinSet, TransColor, OFF
return
TweakResizeScale50:
TweakResizeScale200:
TweakInvoked()
scale := SubStr(A_ThisLabel,17) / 100
WinGetClientPos(TweakWin, 0+0, 0+0, w, h)
WinMoveClientArea(w * scale, h * scale)
return
TweakResize640x480:
TweakResize800x600:
TweakResize1024x768:
TweakResize1152x864:
TweakResize1280x720:
TweakResize1280x1024:
TweakResize1600x900:
TweakResize1600x1200:
TweakResize1920x1080:
TweakResize1920x1200:
TweakInvoked()
WinMoveClientArea( bisect(SubStr(A_ThisLabel,12), "x", h)
, h)
return
TweakResizeCopy:
TweakInvoked()
Clipboard := TweakResizeRead(TweakWin)
return
TweakResizePaste:
TweakInvoked()
if TweakResizeParse(Clipboard, TweakResizeCustom_X, TweakResizeCustom_Y, TweakWin)
WinMoveClientArea(TweakResizeCustom_X, TweakResizeCustom_Y)
else
SoundPlay *16
return
TweakResizeCustom:
TweakInvoked()
if TweakResizeCustom_Ok !=
return
WinGetClientPos(TweakWin, 0+0, 0+0, TweakResizeCustom_X, TweakResizeCustom_Y)
Gui, 70:Add, Edit, x6 y10 w200 h20 vTweakResizeCustom_Size, %TweakResizeCustom_X% x %TweakResizeCustom_Y%
Gui, 70:Add, Button, x216 y9 w75 h23 Default gTweakResizeCustom_Ok, &OK
; Generated using SmartGUI Creator 4.0 :D
Gui, 70:+LabelTweakResizeCustom +ToolWindow +AlwaysOnTop
Gui, 70:Show, x%TweakX% y%TweakY% h43 w303, Resize
TweakResizeCustom_Ok = 0
While TweakResizeCustom_Ok == 0
Sleep, 50
Gui, 70:Destroy
if TweakResizeCustom_Ok = 1
WinMoveClientArea(TweakResizeCustom_X, TweakResizeCustom_Y)
TweakResizeCustom_Ok =
return
TweakResizeCustomEscape:
TweakResizeCustomClose:
TweakResizeCustom_Ok = -1
return
TweakResizeCustom_Ok:
Gui, Submit, Nohide
if TweakResizeParse(TweakResizeCustom_Size, TweakResizeCustom_X, TweakResizeCustom_Y, TweakWin)
{
TweakResizeCustom_Ok = 1
return
}
SoundPlay *16
return
TweakResizeRead(TweakWin)
{
WinGetClientPos(TweakWin, 0+0, 0+0, w, h)
return w " x " h
}
TweakResizeParse(input, ByRef w, ByRef h, TweakWin)
{
if !RegExMatch(input, "^\s*[a-zA-Z]*\s*(?P<w>\d+)(?P<wp>%?)(?:\s*|\s*[a-zA-Z]+\s*|\s*,\s*)(?P<h>\d+)(?P<hp>%?)\s*$", match_)
return false
w := match_w
h := match_h
if (match_wp != "" && match_hp != "")
{
WinGetClientPos(TweakWin, 0+0, 0+0, current_w, current_h)
if (match_wp != "")
w := w / 100 * current_w
if (match_hp != "")
h := h / 100 * current_h
}
return true
}
TweakResizeNormal:
TweakResizeNormalCentered:
TweakInvoked()
m := GetMonitorInfo(MonitorFromPoint(TweakX, TweakY, 1))
m.w := m.work_right - m.work_left
m.h := m.work_bottom - m.work_top
w := {w: m.w * 0.75, h: m.h * 0.75}
if A_ThisLabel = TweakResizeNormalCentered
{
w.x := m.work_left + m.w * 0.125
w.y := m.work_top + m.h * 0.125
}
WinMove,,, w.x, w.y, w.w, w.h
return
TweakStyleChange(num, attribute = "Style") {
WinSet, %attribute%, % (TweakStyleIsAdd() ? "+" : "-") num
}
TweakStyleIsAdd() {
return SubStr(A_ThisLabel,11,3) == "Add"
}
TweakStyleAddCaption:
TweakStyleDelCaption:
TweakInvoked()
TweakStyleChange(0xC00000)
return
TweakStyleAddBorder:
TweakStyleDelBorder:
TweakInvoked()
TweakStyleChange(0x800000)
return
TweakStyleAddDlgframe:
TweakStyleDelDlgframe:
TweakInvoked()
TweakStyleChange(0x400000)
return
TweakStyleAddMaximizebox:
TweakStyleDelMaximizebox:
TweakInvoked()
TweakStyleChange(0x10000)
return
TweakStyleAddMinimizebox:
TweakStyleDelMinimizebox:
TweakInvoked()
TweakStyleChange(0x20000)
return
TweakStyleAddSizebox:
TweakStyleDelSizebox:
TweakInvoked()
TweakStyleChange(0x40000)
return
TweakStyleAddSysmenu:
TweakStyleDelSysmenu:
TweakInvoked()
TweakStyleChange(0x80000)
return
TweakStyleAddDisabled:
TweakStyleDelDisabled:
TweakInvoked()
TweakStyleChange(0x8000000)
return
TweakStyleAddAlwaysOnTop:
TweakStyleDelAlwaysOnTop:
TweakInvoked()
Loop 4
{
WinSet, AlwaysOnTop, % TweakStyleIsAdd() ? "On" : "Off"
if ErrorLevel
SoundPlay *16
Sleep 200
}
return
TweakText:
TweakInvoked()
_TweakText()
return
_TweakText()
{
WinGetTitle text
InputBox, text, Set Text, Change the "text" attribute:,,,,,,,, %text%
if ErrorLevel
return
WinSetTitle %text%
}
TweakClick:
TweakInvoked()
WinSet, Style, -0x8000000
ControlClick,, ahk_id %TweakWin%,,,, NA
return
TweakFullscreen:
TweakInvoked()
_TweakFullscreen()
return
_TweakFullscreen()
{
WinMaximize
WinSet, Style, -0xC00000
WinSet, Style, -0x40000
SysGet, m, Monitor
WinGetClass, TweakWinClass
if TweakWinClass = Photo_Lightweight_Viewer
{
mTop -= 30
mBottom += 157 - 130
}
WinMoveClientArea(mRight - mLeft, mBottom - mTop, mLeft, mTop)
Sleep 250
WinMoveClientArea(mRight - mLeft, mBottom - mTop, mLeft, mTop)
}
TweakUnFullscreen:
TweakInvoked()
WinSet, Style, +0xC00000
WinSet, Style, +0x40000
WinRestore
return
TweakMove00:
TweakInvoked()
WinMoveClientArea("", "", 0, 0)
return
TweakCenter:
TweakInvoked()
_TweakCenter()
return
_TweakCenter()
{
global TweakWin
monitor := MonitorIndexFromWindow(TweakWin)
if monitor =
{
SoundPlay *16
return
}
SysGet, m, Monitor, %monitor%
WinMoveClientCenter(mLeft + (mRight-mLeft)//2, mTop + (mBottom-mTop)//2)
}
TweakMaxWidth:
TweakInvoked()
_TweakMaxWidth()
return
_TweakMaxWidth()
{
global TweakWin
monitor := MonitorIndexFromWindow(TweakWin)
if monitor =
{
SoundPlay *16
return
}
SysGet, m, Monitor, %monitor%
WinMoveClientArea(mRight - mLeft, "", mLeft, "")
}
TweakGetStyle:
TweakGetExStyle:
TweakInvoked()
WinGet, TweakExStyle, ExStyle
;Loop
return
TweakGetControls:
WinGet, tmp, ControlList
MsgBox, 0, %A_ScriptName%, %tmp%
tmp=
return
TweakClose:
TweakInvoked()
WinClose
return
TweakKillWin:
TweakInvoked()
killApp(TweakWin)
return
killApp(hwnd)
{
IfWinExist ahk_id %hwnd%
{
WinGetClass class
if !(class == "Ghost")
WinGet, pid, PID
else
{
hwnd := HungWindowFromGhostWindow(WinExist())
if hwnd
WinGet, pid, PID, ahk_id %hwnd%
}
}
if !pid
return false
Process, Close, %pid%
return ErrorLevel ? false : true
}
; these two functions are undocumented
HungWindowFromGhostWindow(hwnd) {
return DllCall("HungWindowFromGhostWindow", "Ptr", hwnd, "Ptr")
}
;GhostWindowFromHungWindow(hwnd) {
; return DllCall("GhostWindowFromHungWindow", "Ptr", hwnd, "Ptr")
;}
WinMoveClientArea(W, H, X = "", Y = "")
{
WinGetPos, WindowX, WindowY, WindowW, WindowH
if (WindowX == "" || !WinGetClientPos(WinExist(), FrameL, FrameT, ClientW, ClientH))
{
SoundPlay *64
return
}
FrameL -= WindowX
FrameT -= WindowY
FrameR := WindowW - ClientW - FrameL
FrameB := WindowH - ClientH - FrameT
if X !=
X -= FrameL
if Y !=
Y -= FrameT
if W !=
W += FrameL + FrameR
if H !=
H += FrameT + FrameB
WinMove,,, X, Y, W, H
}
WinMoveClientCenter(X, Y)
{
WinGetPos, WindowX, WindowY, WindowW, WindowH
if (WindowX == "" || !WinGetClientPos(WinExist(), FrameL, FrameT, ClientW, ClientH))
{
SoundPlay *64
return
}
FrameL -= WindowX
FrameT -= WindowY
if X !=
X -= FrameL + ClientW//2
if Y !=
Y -= FrameT + ClientH//2
WinMove,,, X, Y
}
WinGetClientPos(hwnd, ByRef x, ByRef y, ByRef w, ByRef h)
{
; STRUCT is used as a POINT for ClientToScreen and a RECT for GetClientRect
if VarSetCapacity(STRUCT, 16, 0) < 16
|| !DllCall("ClientToScreen", "Ptr", hwnd, "Ptr", &STRUCT) ; 0,0
{
x=
y=
w=
h=
return false
}
x := NumGet(STRUCT, 0, "Int")
y := NumGet(STRUCT, 4, "Int")
if !DllCall("GetClientRect", "Ptr", hwnd, "Ptr", &STRUCT)
{
w=
h=
return false
}
w := NumGet(STRUCT, 8, "Int")
h := NumGet(STRUCT, 12, "Int")
return true
}
; 0 = MONITOR_DEFAULTTONULL, 1 = MONITOR_DEFAULTTOPRIMARY, 2 = MONITOR_DEFAULTTONEAREST
MonitorFromWindow(hwnd, dwFlags = 2) {
return DllCall("User32\MonitorFromWindow", "Ptr", hwnd, "UInt", dwFlags, "Ptr")
}
MonitorFromPoint(x, y, dwFlags = 2) {
return DllCall("User32\MonitorFromPoint", "Int64", ((y & 0xFFFFFFFF) << 32) | (x & 0xFFFFFFFF), "UInt", dwFlags, "Ptr")
}
MonitorIndexFromWindow(hwnd, option = 2)
{
hmonitor := MonitorFromWindow(hwnd, option)
if (hmonitor == 0)
return ""
return MonitorHandleToIndex(hmonitor)
}
; converts a WinAPI HMONITOR to a monitor index acceptable by AHK's SysGet
MonitorHandleToIndex(hmonitor)
{
global MonitorHandleToIndex__counter
static callback
Critical
if callback =
{
callback := RegisterCallback("MonitorHandleToIndex__callback", "F")
if callback =
goto %crash%
}
; AHK's monitor indices are based on the order monitors are returned from EnumDisplayMonitors
MonitorHandleToIndex__counter := 0
success := DllCall("EnumDisplayMonitors", "Ptr", 0, "Ptr", 0, "Ptr", callback, "Ptr", hmonitor)
if success =
goto %crash%
result := MonitorHandleToIndex__counter
MonitorHandleToIndex__counter =
Critical Off
; EnumDisplayMonitors returns failure if the callback aborted the enumeration, which our callback does when it finds the right monitor
if (success || result == 0)
return ""
return result
}
MonitorHandleToIndex__callback(hMonitor, hdcMonitor, lprcMonitor, dwData)
{
global MonitorHandleToIndex__counter
++MonitorHandleToIndex__counter
; dwData is the 4th argument supplied to EnumDisplayMonitors, "hmonitor"
return dwData != hMonitor ; abort enumeration if it's the one we're looking for
}
GetMonitorInfo(hMonitor)
{
;MONITORINFO:
/*
4 UInt cbSize
4 Int rcMonitor.left
4 Int rcMonitor.top
4 Int rcMonitor.right
4 Int rcMonitor.bottom
4 Int rcWork.left
4 Int rcWork.top
4 Int rcWork.right
4 Int rcWork.bottom
4 UInt dwFlags
*/
if VarSetCapacity(MONITORINFO, 40) < 40
throw "out of memory"
NumPut(40, MONITORINFO, 0, "UInt") ; set cbSize
if !DllCall("User32\GetMonitorInfo", "Ptr", hMonitor, "Ptr", &MONITORINFO)
{
if ErrorLevel
throw "GetMonitorInfo DllCall failed: " ErrorLevel
throw LastErrorException("GetMonitorInfo failed: ")
}
out := {}
static names = ["left", "top", "right", "bottom", "work_left", "work_top", "work_right", "work_bottom"]
for i,name in names
out[name] := NumGet(MONITORINFO, i*4, "Int")
out.flags := NumGet(MONITORINFO, 36, "UInt")
return out
}
bisect(string, delimiter, ByRef out_second_half, occurence = "L1", offset = 0)
{
StringGetPos, pos, string, %delimiter%, %occurence%, offset
if ErrorLevel
{
out_second_half := ""
return string
}
; pos is 0-based, StringMid and SubStr are 1-based
StringMid, out_second_half, string, pos + 1 + StrLen(delimiter)
ErrorLevel := 0
return SubStr(string, 1, pos)
}
LastErrorException(prefix = "", what = -2, extra = "") {
return Exception(prefix LastErrorString(), what, extra)
}
LastErrorString(number = "")
{
; probably x64 and unicode compatible
if number =
number := A_LastError
; The importance of the IGNORE_INSERTS flag: http://blogs.msdn.com/b/oldnewthing/archive/2007/11/28/6564257.aspx
if VarSetCapacity(string, 1024) >= 1024
ret := DllCall("FormatMessage"
, "UInt", 0x00001200 ; DWORD dwFlags: FORMAT_MESSAGE_FROM_SYSTEM 0x00001000 | FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
, "Ptr", 0 ; void* lpSource
, "UInt", number ; DWORD dwMessageId
, "UInt", 0 ; DWORD dwLanguageId: auto
, "Str", string ; TSTR* lpBuffer
, "UInt", 1024 ; DWORD nSize
, "Ptr", 0) ; va_list* Arguments
StringReplace, string, string, `r`n, %A_Space%, All
return string " (#" number ")"
} | 25.934579 | 136 | 0.70471 |
fc7cf1e6fe473792863040ae05ccffd936367f34 | 6,855 | ahk | AutoHotkey | PC98/NekoProject II 0.84/WrapperNp21nt.ahk | nayasis/EmuWrapper | 9ad36bc49ac21d9c4b518c0d3514065b80099c5c | [
"Apache-2.0"
] | null | null | null | PC98/NekoProject II 0.84/WrapperNp21nt.ahk | nayasis/EmuWrapper | 9ad36bc49ac21d9c4b518c0d3514065b80099c5c | [
"Apache-2.0"
] | null | null | null | PC98/NekoProject II 0.84/WrapperNp21nt.ahk | nayasis/EmuWrapper | 9ad36bc49ac21d9c4b518c0d3514065b80099c5c | [
"Apache-2.0"
] | null | null | null | #NoEnv
#include %A_ScriptDir%\..\..\ZZ_Library\Include.ahk
emulatorPid := ""
imageDirPath := %0%
; imageDirPath := "\\NAS\emul\image\PC98\Ys 2 (T-ko)"
; imageDirPath := "\\NAS\emul\image\PC98\Mahou no Shougakusei Clit-chan (ja)"
fddContainer := new DiskContainer( imageDirPath, "i).*\.(d88|fdi|fdd|hdm|nfd|xdf|tfd)" )
fddContainer.initSlot( 2 )
if ( setConfig( imageDirPath ) == true ) {
; ResolutionChanger.change( 1366, 768 )
; ResolutionChanger.change( 1024, 768 )
; ResolutionChanger.change( 1280, 720 )
Run, % "np2nt.exe " fddContainer.toOption(),,,emulatorPid
WinWait, ahk_class NP2-MainWindow,, 5
IfWinExist
{
Send {F11}{S}{F} ;Send !{Enter}
WinWaitClose, ahk_class NP2-MainWindow
}
ResolutionChanger.restore()
} else {
RunWait, % "np2nt.exe",,,emulatorPid
}
ExitApp
!F4:: ; ALT + F4
Process, Close, %emulatorPid%
return
^+PGUP::
If GetKeyState( "z", "P" ) ; Ctrl + Shift + Z + PgUp :: Remove Disk in Drive#1
fddContainer.removeDisk( "1", "removeDisk" )
else ; Ctrl + Shift + PgUp :: Insert Disk in Drive#1
fddContainer.insertDisk( "1", "insertDisk" )
return
^+PGDN:: ; Insert Disk in Drive#2
If GetKeyState( "z", "P" ) ; Ctrl + Shift + Z + PgDn :: Remove Disk in Drive#2
fddContainer.removeDisk( "2", "removeDisk" )
else ; Ctrl + Shift + PgDn :: Insert Disk in Drive#2
fddContainer.insertDisk( "2", "insertDisk" )
return
^+End:: ; Cancel Disk Change
fddContainer.cancel()
return
^+Del:: ; Reset
reset()
return
getOption( imageDirPath ) {
dirConf := imageDirPath "\_EL_CONFIG"
IfExist %dirConf%\option\option.json
{
FileRead, jsonText, %dirConf%\option\option.json
return JSON.load( jsonText )
}
return {}
}
waitEmulator() {
WinWait, ahk_class NP2-MainWindow,,10
IfWinExist
activateEmulator()
}
activateEmulator() {
WinActivate, ahk_class NP2-MainWindow,,10
}
reset() {
activateEmulator()
Send {F11}{E}{R}
}
insertDisk( slotNo, file ) {
IfNotExist % file
return
activateEmulator()
if( slotNo == "1" ) {
Send {F11}{1}{O} ;FDD1
} else if( slotNo == "2" ) {
Send {F11}{2}{O} ;FDD2
} else {
return
}
WinWait, Select floppy image
IfWinExist
{
Send !{N}
Clipboard := %file%
Send ^v
Send {Enter}
}
}
removeDisk( slotNo ) {
activateEmulator()
if( slotNo == "1" ) {
Send {F11}{1}{E} ;FDD1
} else if( slotNo == "2" ) {
Send {F11}{2}{E} ;FDD2
} else {
return
}
}
getCdRom( imageDirPath ) {
dirCdrom := imageDirPath "\_EL_CONFIG\cdrom"
cdRom := FileUtil.getFile( dirCdrom, "i).*\.(cue)$" )
if( cdRom == "" )
cdRom := FileUtil.getFile( dirCdrom, "i).*\.(ccd)$" )
if( cdRom == "" )
cdRom := FileUtil.getFile( dirCdrom, "i).*\.(iso|bin|img)$" )
return cdRom
}
setConfig( imageDirPath ) {
currDir := FileUtil.getDir( imageDirpath )
confDir := currDir . "\_EL_CONFIG"
NekoIniFile := % A_ScriptDir "\np2nt.ini"
if( currDir = "" ) {
IniWrite, %A_ScriptDir%\font.rom, %NekoIniFile%, NekoProjectII, fontfile
IniWrite, 0, %NekoIniFile%, NekoProjectII, windtype
IniWrite, false, %NekoIniFile%, NekoProjectII, Mouse_sw
return false
}
; Set font
IfExist %confDir%\font
{
Loop, %confDir%\font\*.*
{
IniWrite, %A_LoopFileFullPath%, %NekoIniFile%, NekoProjectII, fontfile
break
}
} else {
IniWrite, %A_ScriptDir%\font.rom, %NekoIniFile%, NekoProjectII, fontfile
}
; Set WindowType
IniWrite, 0, %NekoIniFile%, NekoProjectII, WindposX
IniWrite, 0, %NekoIniFile%, NekoProjectII, WindposY
IniWrite, 1, %NekoIniFile%, NekoProjectII, windtype
; Set Bios for sound
; IniWrite, 3e 63 7b, %NekoIniFile%, NekoProjectII, DIPswtch
; IniWrite, 48 05 04 08 0b 20 00 6e, %NekoIniFile%, NekoProjectII, MEMswtch
; Lock Mouse
IniWrite, true, %NekoIniFile%, NekoProjectII, Mouse_sw
; Init INI
IniWrite, %currDir%, %NekoIniFile%, NekoProjectII, FDfolder
IniWrite, %currDir%, %NekoIniFile%, NekoProjectII, HDfolder
; Loop, 8
; {
; fdIndex := A_Index - 1
; IniDelete, %NekoIniFile%, NP2 tool, FD1NAME%fdIndex%
; IniDelete, %NekoIniFile%, NP2 tool, FD2NAME%fdIndex%
; }
; IniDelete, %NekoIniFile%, NekoProjectII, HDD1FILE
; IniDelete, %NekoIniFile%, NekoProjectII, HDD2FILE
; Init Hdd. Fdd, CdRom
Loop, 4
{
IniWrite, % "", %NekoIniFile%, NekoProjectII, HDD%a_index%FILE
IniWrite, % "", %NekoIniFile%, NekoProjectII, FD%a_index%NAME0
IniWrite, % "", %NekoIniFile%, NekoProjectII, CD%a_index%_FILE
}
; Set Hdd, Fdd, CdRom
files := FileUtil.getFiles( currDir, "i).*\.(hdi|hdd)" )
Loop, % files.MaxIndex()
{
if( A_Index > 2 )
break
IniWrite, % files[a_index], %NekoIniFile%, NekoProjectII, HDD%a_index%FILE
}
files := FileUtil.getFiles( currDir, "i).*\.(d88|fdi|fdd|hdm|nfd|xdf|tfd)$" )
Loop, % files.MaxIndex()
{
if( A_Index > 2 )
break
IniWrite, % files[a_index], %NekoIniFile%, NP2 tool, FD%a_index%NAME0
}
cdRom := getCdRom( imageDirPath )
if( cdRom != "" )
IniWrite, % cdRom, %NekoIniFile%, NekoProjectII, CD3_FILE
; Set option
option := getOption( imageDirPath )
if( option.config.clk_mult != "" )
IniWrite, % option.config.clk_mult, %NekoIniFile%, NekoProjectII, clk_mult
if( option.config.ExMemory != "" )
IniWrite, % option.config.ExMemory, %NekoIniFile%, NekoProjectII, ExMemory
; set DIP switch
dipswitch := "3e"
if( option.config.GdcBlock == "2.5" ) {
dipswitch .= " e3"
} else {
dipswitch .= " 63"
}
if( option.config.cpuMode == "low" ) {
dipswitch .= " fb"
} else {
dipswitch .= " 7b"
}
IniWrite, % dipswitch, %NekoIniFile%, NekoProject21, DIPswtch
; boot priority
; - MEMswtch=48 05 04 08 0b 20 00 6e : 1 Floopy disk -> Hard disk
; - MEMswtch=48 05 04 08 2b 20 00 6e : 2 Boot on 640KB Floop disk
; - MEMswtch=48 05 04 08 4b 20 00 6e : 3 Boot on 1MB Floop disk
; - MEMswtch=48 05 04 08 ab 20 00 6e : 4 Boot on hard disk 1
; - MEMswtch=48 05 04 08 bb 20 00 6e : 5 Boot on hard disk 2
; - MEMswtch=48 05 04 08 fb 20 00 6e : 6 ROM BASIC
IniRead, MemorySwitch, %NekoIniFile%, NekoProject21, MEMswtch
debug( "MEMswtch (before) : " MemorySwitch )
switch option.config.bootPrior {
case "1" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 0$2 $3")
case "2" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 2$2 $3")
case "3" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 4$2 $3")
case "4" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 a$2 $3")
case "5" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 b$2 $3")
case "6" : MemorySwitch := RegExReplace( MemorySwitch, "(.. .. .. ..) .(.) (.. .. ..)", "$1 f$2 $3")
}
debug( "MEMswtch (after) : " MemorySwitch )
IniWrite, % MemorySwitch, %NekoIniFile%, NekoProject21, MEMswtch
return true
} | 25.674157 | 104 | 0.637199 |
03b664a440b8180bbc339dcf4fb6076a92e6a590 | 58 | ahk | AutoHotkey | Task/Even-or-odd/AutoHotkey/even-or-odd.ahk | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Even-or-odd/AutoHotkey/even-or-odd.ahk | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Even-or-odd/AutoHotkey/even-or-odd.ahk | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | if ( int & 1 ){
; do odd stuff
}else{
; do even stuff
}
| 9.666667 | 16 | 0.534483 |
b844625adaaee485199c11c33ec79e813c392e96 | 11,478 | ahk | AutoHotkey | rollmouse.ahk | evilC/RollMouse | 265568a2d25a8ca6fc325c58012f468abddb45aa | [
"MIT"
] | 11 | 2015-06-10T06:20:50.000Z | 2021-07-19T20:18:00.000Z | rollmouse.ahk | evilC/RollMouse | 265568a2d25a8ca6fc325c58012f468abddb45aa | [
"MIT"
] | 2 | 2017-11-22T14:04:21.000Z | 2017-12-05T16:24:17.000Z | rollmouse.ahk | evilC/RollMouse | 265568a2d25a8ca6fc325c58012f468abddb45aa | [
"MIT"
] | 3 | 2017-12-05T16:16:50.000Z | 2019-02-11T21:33:14.000Z | ; Requires AHK >= 1.1.21.00
/*
ToDo:
* Better history.
Expire items that are too old.
Filter outliers - eg a slight move up sometimes has a few move downs in there - keep general up motion but filter out direction inversions.
Clear history on change of direction?
*/
#SingleInstance force
global ADHD := new ADHDLib
ADHD.config_about({name: "Rollmouse", version: "1.0.8", author: "evilC", link: "<a href=""https://github.com/evilC/RollMouse"">GitHub Page</a> / <a href=""http://ahkscript.org/boards/viewtopic.php?f=6&t=8439"">Discussion Thread</a>"})
ADHD.config_updates("http://evilc.com/files/ahk/adhd/rollmouse.au.txt")
ADHD.config_size(375,230)
ADHD.config_hotkey_add({uiname: "Quit", subroutine: "Quit"})
ADHD.config_event("option_changed", "option_changed_hook")
ADHD.config_event("functionality_toggled", "functionality_toggle_hook")
ADHD.init()
ADHD.create_gui()
Gui1 := WinExist()
Gui, Tab, 1
row := 40
Gui, Font, italic
Gui, Add, Text, x10 y%row%, Move Factor controls how fast the mouse will be moved in any given`ndirection when you perform a roll. Decimals (eg 0.5) are permissible.
Gui, Font
row += 30
Gui, Add, Text, x10 y%row%, Move Factor:
Gui, Add, Text, x120 yp, x
ADHD.gui_add("Edit", "MoveFactorX", "xp+10 yp-2 W50", "", "1")
Gui, Add, Text, xp+80 yp+2, y
ADHD.gui_add("Edit", "MoveFactorY", "xp+10 yp-2 W50", "", "1")
row += 30
Gui, Font, italic
Gui, Add, Text, x10 y%row%, Move Threshold controls how fast you have to move the mouse`nto perform a roll. Decimals are NOT permitted.
Gui, Font
row += 30
Gui, Add, Text, x10 y%row%, Move Threshold:
Gui, Add, Text, x120 yp, x
ADHD.gui_add("Edit", "MoveThreshX", "xp+10 yp-2 W50", "", "4")
Gui, Add, Text, xp+80 yp+2, y
ADHD.gui_add("Edit", "MoveThreshY", "xp+10 yp-2 W50", "", "4")
row += 30
ADHD.gui_add("CheckBox", "MinimizeOnStart", "x10 y" row + 3, "Minimize on StartUp", 0)
Gui, Add, Text, % "x+30 y" row + 3, Friction
ADHD.gui_add("Edit", "Friction", "x+5 y" row, "Friction", 0)
ADHD.finish_startup()
global rm := new RollMouse
Gui1 := WinExist()
Menu("Tray","Nostandard"), Menu("Tray","Add","Restore","GuiShow"), Menu("Tray","Add")
Menu("Tray","Default","Restore"), Menu("Tray","Click",1), Menu("Tray","Standard")
OnMessage(0x112, "WM_SYSCOMMAND")
if (MinimizeOnStart){
Gosub, OnMinimizeButton
}
option_changed_hook()
;OutputDebug, DBGVIEWCLEAR
option_changed_hook(){
global MoveFactorX, MoveFactorY, MoveThreshX, MoveThreshY, Friction
rm.MoveFactor.x := MoveFactorX
rm.MoveFactor.y := MoveFactorY
rm.MoveThreshold.x := MoveThreshX
rm.MoveThreshold.y := MoveThreshY
rm.Friction := Friction
}
functionality_toggle_hook(){
rm.ListenForMouseMovement(ADHD.private.functionality_enabled)
}
return
class RollMouse {
; User configurable items
; The speed at which you must move the mouse to be able to trigger a roll
MoveThreshold := {x: 4, y: 4}
; Good value for my mouse with FPS games: 4
; Good value for my laptop trackpad: 3
; The speed at which to move the mouse, can be decimals (eg 0.5)
; X and Y do not need to be equal
; Good value for my mouse with FPS games: x:2, y: 1 (don't need vertical roll so much)
MoveFactor := {x: 1, y: 1}
; Good value for my laptop trackpad: 0.2
; How fast (in ms) to send moves when rolling.
; High values for this will cause rolls to appear jerky instead of smooth
; if you halved this, double MoveFactor to get the same move amount, but at a faster frequency.
RollFreq := 1
; How long to wait after each move to decide whether a roll has taken place.
TimeOutRate := 50
; The amount that we are currently rolling by
LastMove := {x: 0, y: 0}
; The number of previous moves stored - used to calculate vector of a roll
; Higher numbers = greater fidelity, but more CPU
MOVE_BUFFER_SIZE := 5
; Non user-configurable items
STATE_UNDER_THRESH := 1
STATE_OVER_THRESH := 2
STATE_ROLLING := 3
StateNames := ["UNDER THRESHOLD", "OVER THRESHOLD", "ROLLING"]
State := 1
TimeOutFunc := 0
History := {} ; Movement history. The most recent item is first (Index 1), and old (high index) items get pruned off the end
; Called on startup.
__New(){
static RIDEV_INPUTSINK := 0x00000100
; Create GUI (GUI needed to receive messages)
;Gui, Show, w100 h100
; Set TimeOutRate to negative value to have timer only fire once.
this.TimeOutRate := this.TimeOutRate * -1
; Register mouse for WM_INPUT messages.
DevSize := 8 + A_PtrSize
VarSetCapacity(RAWINPUTDEVICE, DevSize)
NumPut(1, RAWINPUTDEVICE, 0, "UShort")
NumPut(2, RAWINPUTDEVICE, 2, "UShort")
Flags := RIDEV_INPUTSINK
NumPut(Flags, RAWINPUTDEVICE, 4, "Uint")
NumPut(WinExist("A"), RAWINPUTDEVICE, 8, "Uint")
r := DllCall("user32.dll\RegisterRawInputDevices", "Ptr", &RAWINPUTDEVICE, "UInt", 1, "UInt", DevSize )
fn := this.MouseMoved.Bind(this)
this.MoveFunc := fn
this.ListenForMouseMovement(1)
; Initialize
this.TimeOutFunc := this.DoRoll.Bind(this)
this.InitHistory()
}
; Turns on or off listening for mouse movement
ListenForMouseMovement(mode){
fn := this.MoveFunc
if (mode){
OnMessage(0x00FF, fn)
} else {
OnMessage(0x00FF, fn, 0)
}
}
; Called when the mouse moved.
; Messages tend to contain small (+/- 1) movements, and happen frequently (~20ms)
MouseMoved(wParam, lParam, code){
static MAX_TIME := 1000000 ; Only cache values for this long.
; RawInput statics
static DeviceSize := 2 * A_PtrSize, iSize := 0, sz := 0, offsets := {x: (20+A_PtrSize*2), y: (24+A_PtrSize*2), button: (18+A_PtrSize*2)}, uRawInput
static axes := {x: 1, y: 2}
Critical
VarSetCapacity(raw, 40, 0)
If (!DllCall("GetRawInputData",uint,lParam,uint,0x10000003,uint,&raw,"uint*",40,uint, 16) || ErrorLevel || !NumGet(raw, 8))
Return 0 ; Ignore events with a Device ID of 0 - these are mouse movements we sent using mouse_event
; Find size of rawinput data - only needs to be run the first time.
if (!iSize){
r := DllCall("user32.dll\GetRawInputData", "Ptr", lParam, "UInt", 0x10000003, "Ptr", 0, "UInt*", iSize, "UInt", 8 + (A_PtrSize * 2))
VarSetCapacity(uRawInput, iSize)
}
sz := iSize ; param gets overwritten with # of bytes output, so preserve iSize
; Get RawInput data
r := DllCall("user32.dll\GetRawInputData", "Ptr", lParam, "UInt", 0x10000003, "Ptr", &uRawInput, "UInt*", sz, "UInt", 8 + (A_PtrSize * 2))
; ignore button activity
if (NumGet(&uRawInput, offsets.button, "Int") == 0){
return
}
moved := {x: 0, y: 0}
for axis in axes {
obj := {}
obj.delta_move := NumGet(&uRawInput, offsets[axis], "Int")
obj.abs_delta_move := abs(obj.delta_move)
obj.sgn_move := (obj.abs_delta_move = obj.delta_move) ? 1 : -1
if (obj.abs_delta_move >= this.MoveThreshold[axis]){
moved[axis] := 1
}
this.UpdateHistory(axis, obj)
}
if (moved.x || moved.y){
; A move over the threshold was detected.
this.ChangeState(this.STATE_OVER_THRESH)
} else {
this.ChangeState(this.STATE_UNDER_THRESH)
}
}
UpdateHistory(axis, obj){
this.History[axis].InsertAt(1, obj)
; Enforce max number of entries
max := this.History[axis].Length()
if (max > (this.MOVE_BUFFER_SIZE - 1)){
this.History[axis].RemoveAt(max, max - this.MOVE_BUFFER_SIZE)
}
}
; A timeout occurred - Perform a roll
DoRoll(){
static axes := {x: 1, y: 2}
;s := ""
if (this.State != this.STATE_ROLLING){
; If roll has just started, calculate roll vector from movement history
this.LastMove := {x: 0, y: 0}
for axis in axes {
;s .= axis ": "
trend := 0
if (this.History[axis].Length() < this.MOVE_BUFFER_SIZE){
; ignore gestures that are too short
continue
}
Loop % this.History[axis].Length() {
if (A_Index != 1){
; Calculate the trend of the history.
trend += (this.History[axis][A_Index].delta_move - this.History[axis][A_Index-1].delta_move)
}
this.LastMove[axis] += this.History[axis][A_Index].delta_move
s .= this.History[axis][A_Index].delta_move ","
}
;s .= "(" trend ")`n"
/*
Disabled, as seems to break mouse trackpads.
Also seems to stop MoveFactor being applied to both axes?
if (sgn(trend) != sgn(this.History[axis][1].delta_move)){
; downward trend of move speed detected - this is probably a normal stop of the mouse, not a lift
continue
}
*/
this.LastMove[axis] := round(this.LastMove[axis] * this.MoveFactor[axis])
}
}
if (this.LastMove.x = 0 && this.LastMove.y = 0){
return
}
this.ChangeState(this.STATE_ROLLING)
;OutputDebug % "ROLL DETECTED: `n" s "Rolling x: " this.LastMove.x ", y: " this.LastMove.y "`n`n"
fn := this.MoveFunc
while (this.State == this.STATE_ROLLING){
; Send output
DllCall("user32.dll\mouse_event", "UInt", 0x0001, "UInt", this.LastMove.x, "UInt", this.LastMove.y, "UInt", 0, "UPtr", 0)
if (this.Friction){
this.LastMove.x := this.ApplyFriction(this.LastMove.x, this.Friction)
this.LastMove.y := this.ApplyFriction(this.LastMove.y, this.Friction)
if (this.LastMove.x == 0 && this.LastMove.y == 0){
this.State := this.STATE_UNDER_THRESH
break
}
}
; Wait for a bit (allow real mouse movement to be detected, which will turn off roll)
Sleep % this.RollFreq
}
}
ApplyFriction(value, Friction){
if (value < 0){
was_negative := true
value *= -1
}
value -= Friction
if (value < 0)
value := 0
if (was_negative)
value *= -1
return value
}
InitHistory(){
this.History := {x: [], y: []}
}
ChangeState(newstate){
fn := this.TimeOutFunc
if (this.State != newstate){
;OutputDebug, % "Changing State to : " this.StateNames[newstate]
this.State := newstate
}
; DO NOT return if this.State == newstate!
; We need to reset the timer!
if (this.State = this.STATE_UNDER_THRESH){
; Kill the timer
SetTimer % fn, Off
; Clear the history
this.InitHistory()
} else if (this.State = this.STATE_OVER_THRESH){
; Mouse is moving fast - start timer to detect sudden stop in messages (mouse was lifted in motion)
SetTimer % fn, % this.TimeOutRate
}
/* else if (this.State = this.STATE_ROLLING){
;this.LastMove := {x: 0, y: 0}
}
*/
}
}
Sgn(val){
if (val > 0){
return 1
} else if (val < 0){
return -1
} else {
return 0
}
}
Quit:
ExitApp
return
; Minimze to tray by SKAN http://www.autohotkey.com/board/topic/32487-simple-minimize-to-tray/
WM_SYSCOMMAND(wParam){
If ( wParam = 61472 ) {
SetTimer, OnMinimizeButton, -1
Return 0
}
}
Menu( MenuName, Cmd, P3="", P4="", P5="" ) {
Menu, %MenuName%, %Cmd%, %P3%, %P4%, %P5%
Return errorLevel
}
OnMinimizeButton:
MinimizeGuiToTray( R, Gui1 )
Menu("Tray","Icon")
Return
GuiShow:
DllCall("DrawAnimatedRects", UInt,Gui1, Int,3, UInt,&R+16, UInt,&R )
Menu("Tray","NoIcon")
Gui, Show
Return
MinimizeGuiToTray( ByRef R, hGui ) {
WinGetPos, X0,Y0,W0,H0, % "ahk_id " (Tray:=WinExist("ahk_class Shell_TrayWnd"))
ControlGetPos, X1,Y1,W1,H1, TrayNotifyWnd1,ahk_id %Tray%
SW:=A_ScreenWidth,SH:=A_ScreenHeight,X:=SW-W1,Y:=SH-H1,P:=((Y0>(SH/3))?("B"):(X0>(SW/3))
? ("R"):((X0<(SW/3))&&(H0<(SH/3)))?("T"):("L")),((P="L")?(X:=X1+W0):(P="T")?(Y:=Y1+H0):)
VarSetCapacity(R,32,0), DllCall( "GetWindowRect",UInt,hGui,UInt,&R)
NumPut(X,R,16), NumPut(Y,R,20), DllCall("RtlMoveMemory",UInt,&R+24,UInt,&R+16,UInt,8 )
DllCall("DrawAnimatedRects", UInt,hGui, Int,3, UInt,&R, UInt,&R+16 )
WinHide, ahk_id %hGui%
}
#Include <adhdlib> | 29.506427 | 239 | 0.666231 |
f41a98cf90d1a0ebaf76aa08e3df10dca16c20df | 905 | ahk | AutoHotkey | clear-ghosting.ahk | isotherm/paperlike-controls | 79b244d2b4debcaa8171cb70fa8f520d32b661cc | [
"MIT"
] | 1 | 2020-12-21T22:43:08.000Z | 2020-12-21T22:43:08.000Z | clear-ghosting.ahk | isotherm/paperlike-controls | 79b244d2b4debcaa8171cb70fa8f520d32b661cc | [
"MIT"
] | null | null | null | clear-ghosting.ahk | isotherm/paperlike-controls | 79b244d2b4debcaa8171cb70fa8f520d32b661cc | [
"MIT"
] | null | null | null | #SingleInstance,Force
SetBatchLines,-1
Gui,1:+AlwaysOnTop -Border -SysMenu +Owner -Caption +ToolWindow
Gui,1:Show,x0 w1 h1650 NA,Moving window
Gui, Color, WindowColor000000
return
GuiClose:
GuiContextMenu:
*Esc::
ExitApp
Numpad1::
X:=0,Stop:=0
DllCall("QueryPerformanceFrequency", "Int64*", freq)
DllCall("QueryPerformanceCounter", "Int64*", TotalTimeStartTime)
DllCall("QueryPerformanceCounter", "Int64*", StartTime)
While(x<2200&&!Stop){
DllCall("QueryPerformanceCounter", "Int64*", EndTime)
if(((EndTime-StartTime)/freq * 1000 )>1000/20){
DllCall("QueryPerformanceCounter", "Int64*", StartTime)
Gui,1:Show,% "x" x++ " NA"
;sleep,20
}
}
DllCall("QueryPerformanceCounter", "Int64*", EndTime)
Total_Time:=(EndTime-TotalTimeStartTime)/freq
msgbox, The total time was %Total_Time% Seconds.`nThe Best time would be 80 seconds`n`n`ti.e 1920/24 = 80
return
numpad2::
Stop:=1
return | 30.166667 | 106 | 0.733702 |
965686480d463b4b8aa2241823841852dcafc6f6 | 621 | ahk | AutoHotkey | GameScripts/escapistAE.ahk | momomeomo/Scripts | 2170799a32fdce9e06384b1c5fd8f84ab6ae83f1 | [
"Unlicense"
] | null | null | null | GameScripts/escapistAE.ahk | momomeomo/Scripts | 2170799a32fdce9e06384b1c5fd8f84ab6ae83f1 | [
"Unlicense"
] | null | null | null | GameScripts/escapistAE.ahk | momomeomo/Scripts | 2170799a32fdce9e06384b1c5fd8f84ab6ae83f1 | [
"Unlicense"
] | 1 | 2022-03-16T16:39:56.000Z | 2022-03-16T16:39:56.000Z |
#KeyHistory 0
#NoEnv
#SingleInstance Force
DetectHiddenWindows, off
ListLines, off
OnExit("ExitFunc")
ExitFunc(ExitReason, ExitCode)
{
if ExitReason not in Logoff,Shutdown
{
SoundBeep
}
}
MsgBox,,Cords,F1 to execute F2 to pause 'Esc' to exit`nSends 'Q' and 'E' repeatedly`nconfirmation beep on exit, 3.50
F1::
If WinExist("The Escapist")
{
While WinExist("The Escapist")
{
WinActivate, The Escapist
Random, randSleep, 5, 8 ;1 second= 1000
Send q
Sleep, randSleep
Send e
}
}else
{
MsgBox, E2 is not detected
IfMsgBox, OK
ExitApp
}
return
F2::Pause
return
Esc::ExitApp
return
;END;
| 14.113636 | 116 | 0.703704 |
7c7e596465833de2e08c17ed43a845b6a38131b7 | 1,832 | ahk | AutoHotkey | koolertron_keypad.ahk | blake-sheridan/macros | a8d0696c596c22e8a3bcdcf9a394c558ac48fe8a | [
"Apache-2.0"
] | null | null | null | koolertron_keypad.ahk | blake-sheridan/macros | a8d0696c596c22e8a3bcdcf9a394c558ac48fe8a | [
"Apache-2.0"
] | null | null | null | koolertron_keypad.ahk | blake-sheridan/macros | a8d0696c596c22e8a3bcdcf9a394c558ac48fe8a | [
"Apache-2.0"
] | null | null | null | ;; Bindings for https://www.amazon.com/dp/B076LYKPX4?ref=ppx_yo2_dt_b_product_details&th=1
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
; Only ever activate a single instance of this script
#SingleInstance Force
#Include lib\WindowReference.ahk
browser := new WindowReference("chrome.exe")
editor := new WindowReference("sublime_text.exe")
terminal := new WindowReference("WindowsTerminal.exe")
saved_commands := ["", "", "", ""]
save_command(index) {
global saved_commands
InputBox, command, Save command, Enter command %index%, , 400, 130
saved_commands[index] := command
}
run_command(index) {
global saved_commands, terminal
if (saved_commands[index]) {
terminal.send_command(saved_commands[index])
}
}
save_and_run_last_command() {
global editor, terminal
editor.send("^xs")
Sleep 100
terminal.run_last_command()
}
;; I've configured the keypad to send keypresses as hotkeys with Ctrl+Alt+Shift+
;; a character (issues with function keys)
;;
;; ____ ./;'
;; 7890 -=[]
;; YZ12 3456
;;
;; QRST UVWX
;; IJKL MNOP
;; ABCD EFGH
;; This layout has the keypad just left of the keyboard and the keypad is
;; used exclusively with the left hand.
^!+':: Send {Volume_Up}
^!+;:: Send {Volume_Down}
^!+/:: Send {Volume_Mute}
;^!+7::
;^!+8::
;^!+9::
;^!+0::
;^!+-::
;^!+=::
;^!+[::
;^!+]::
^!+A:: terminal.set_from_mouse()
;^!+B:: save_command(3)
^!+C:: save_command(1)
^!+D:: run_command(1)
^!+E:: editor.send("^xs")
;^!+F::
^!+G:: terminal.activate()
^!+H:: save_and_run_last_command()
^!+I:: editor.set_from_mouse()
;;
^!+P:: editor.activate()
^!+Q:: browser.set_from_mouse()
;;
^!+W:: browser.send("^r")
^!+X:: browser.activate()
| 21.809524 | 90 | 0.667576 |
5cee0bcfb19af2b2f1957d5e018913f791e0ee76 | 724 | ahk | AutoHotkey | ahkdll-v2-release-master/lib/GlobalVarsScript.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | 1 | 2017-07-17T06:04:48.000Z | 2017-07-17T06:04:48.000Z | ahkdll-v2-release-master/lib/GlobalVarsScript.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | null | null | null | ahkdll-v2-release-master/lib/GlobalVarsScript.ahk | wseioie/HeroesHelper | 6e7c33d2345b190d8f61aa2fb967822b6b8e652c | [
"MIT"
] | null | null | null | GlobalVarsScript(var:="",size:=102400,ByRef object:=0){
global
static globalVarsScript
If (var="")
Return globalVarsScript
else if !size {
If !InStr(globalVarsScript,var ":= Object(" . &object . ")`n"){
If !CriticalObject(object,1)
object:=CriticalObject(object)
globalVarsScript .= var ":= CriticalObject(" CriticalObject(object,1) "," CriticalObject(object,2) ")`n"
}
} else {
LoopParse,%Var%,|
If !InStr(globalVarsScript,"Alias(" A_LoopField "," GetVar(%A_LoopField%) ")`n"){
If size
VarSetCapacity(%A_LoopField%,size,0)
globalVarsScript:=globalVarsScript . "Alias(" A_LoopField "," GetVar(%A_LoopField%) "+0)`n"
}
}
Return globalVarsScript
} | 34.47619 | 110 | 0.646409 |
95f17bc3e9f09660e7dd412fe2f2621fc16ea9e9 | 1,556 | ahk | AutoHotkey | mupa.ahk | shanevans/ut-mupa | 02638e3602c98a8eb95af33a9ec7a149bf3aaaf1 | [
"Unlicense"
] | null | null | null | mupa.ahk | shanevans/ut-mupa | 02638e3602c98a8eb95af33a9ec7a149bf3aaaf1 | [
"Unlicense"
] | null | null | null | mupa.ahk | shanevans/ut-mupa | 02638e3602c98a8eb95af33a9ec7a149bf3aaaf1 | [
"Unlicense"
] | null | null | null | ; MUPA - Make Undertale Playable Again
; v.0.01 - 05/07/2017
; Shane Evans - https://github.com/shanevans/
;
; Starts Undertale, exits when Undertale exits.
; Requires Debug mode to be turned on for certain functions
; Button configuration based on Logitech Rumblepad 2.
; Buttons may need to be re-bound for other controllers.
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases
#Warn ; Enable warnings to assist with detecting common errors
#MaxThreadsPerHotkey 2 ; I think necessary for my implementation of grinding
SendMode Input ; Recommended for new scripts because whatever
;
Updown := false
Run, steam://rungameid/391540
WinWait, ahk_exe UNDERTALE.exe
WinWaitClose, ahk_exe UNDERTALE.exe
ExitApp
Return
#IfWinActive ahk_exe UNDERTALE.exe ; No other games please
Joy1::
Send {BS down}
SetTimer, WaitForButtonUp1, 30
Return
Joy10::
Send {ESC down}
SetTimer, WaitForButtonUp10, 30
Return
Joy9::Send {F4} ; Toggles fullscreen
Joy8::Send f ; Doubles gamespeed for current room/battle (needs debug mode)
Joy7::
Updown := !Updown
while Updown
{
Send {Up down}
Sleep 90
Send {Down down}
}
Send {Up up}
Send {Down up}
Return
WaitForButtonUp1:
if GetKeyState("Joy1") ; The button is still, down, so keep waiting.
return
Send {BS up}
SetTimer, WaitForButtonUp1, off
return
WaitForButtonUp10:
if GetKeyState("Joy10") ; The button is still, down, so keep waiting.
return
Send {ESC up}
SetTimer, WaitForButtonUp10, off
return
| 25.508197 | 88 | 0.728149 |
84a54319dd9bb06b6b454c63698ec87d1add0e14 | 29,240 | ahk | AutoHotkey | trademocro/lib/AdvancedHotkey.ahk | AtriCZE23/POe-full | 89be2fda5747e44764a62ba5e358d8c9309fbf0a | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 1 | 2020-09-25T21:11:20.000Z | 2020-09-25T21:11:20.000Z | trademocro/lib/AdvancedHotkey.ahk | AtriCZE23/Atri | 34ed092852b49daeafeb9c94adf3bfba42819b37 | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 5 | 2021-12-14T20:56:36.000Z | 2021-12-20T14:45:34.000Z | trademocro/lib/AdvancedHotkey.ahk | AtriCZE23/POe-full | 89be2fda5747e44764a62ba5e358d8c9309fbf0a | [
"MIT",
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | null | null | null | ;_______________________ Hotkey() _______________________
;____ Date: June 2006
;____ AHK version: 1.0.44.06
;____ Platform: WinXP
;____ Authors: Sam & Roland
;#################### Example Gui ########################
/*
#SingleInstance, force
Gui, Margin, 5, 5
Gui, Add, Text,, Hotkey(Options="",Prompt="",Title="",GuiNumber=77)
Gui, Font, s10
Gui, Add, Text, w500
,Options:`n-Keynames/-Symbols -LR -~ -* -UP -Joystick -Mouse -Mods -&& +Default1/2 +OwnerN -Owner -Modal +ReturnKeynames +Tooltips
E1 = Hotkey()
E2 = Hotkey("+Default1 -LR -UP","Please hold down the keys you want to turn into a hotkey:")
E3 = Hotkey("+Default1 -Symbols +ReturnKeynames +Tooltips","","","Hotkey configuration")
E4 = Hotkey("+Default2 -Mouse -Keynames -Modal -LR","Note that you're able to interact with the owner")
E5 = Hotkey("-~ -* -Up -LR +Owner2","This window has no owner, since a non-existen owner (Gui2) was specified")
Gui, Font, s8
Loop, 5
{
Gui, Add, Text, w500, % E%a_index% ":"
Gui, Add, ListView
, v%a_index% r1 -Hdr -LV0x20 r1 w200 cGreen BackgroundFFFACD gLV_DblClick, 1|2
LV_ModifyCol(1, 0)
LV_ModifyCol(2, 195)
}
Gui, Font, s10
Gui, Add, Text, w500, Note: Double-click on one on one of the ListViews to test the Hotkey dialogue.
Gui, Show, x100 y100 Autosize, Hotkey()
Return
GuiClose:
ExitApp
LV_DblClick:
If a_guicontrolevent <> DoubleClick
return
Gui, ListView, %a_guicontrol%
LV_Delete(1)
If a_guicontrol = 1
LV_Add("","",Hotkey())
else if a_guicontrol = 2
LV_Add("","",Hotkey("+Default1 -LR -UP","Please hold down the keys you want to turn into a hotkey:"))
else if a_guicontrol = 3
LV_Add("","",Hotkey("+Default1 -Symbols +ReturnKeynames +Tooltips","","","Hotkey configuration"))
else if a_guicontrol = 4
LV_Add("","",Hotkey("+Default2 -Mouse -Keynames -Modal -LR","Note that you're able to interact with the owner"))
else if a_guicontrol = 5
LV_Add("","",Hotkey("-~ -* -Up -LR +Owner2","This window has no owner, since a non-existen owner (Gui2) was specified"))
return
*/
/*
#############################################################################
################################ Funtions ########################################
#############################################################################
************************************************** Remarks: **************************************************
-It would have been to hard (and to messy) to compact everything into a single funtion, so we have a few globals.
All the globals (and all the subroutines) start with "Hotkey_" though, so this shouldn't be a problem
-Both the keyboard and mouse hook will be installed
-"Critical" has to be turned off for the thread that called the funtion, to allow the threads in the funtion to run.
This could cause problems obviously, although turning Critical back on after calling the funtion should work okay in most cases
-When the user clicks "Submit", the funtion will create the hotkey (If non-blank) and check ErrorLevel (and If ErrorLevel <> 0
display a Msgbox saying the hotkey is invalid and asking to notify the author). This way you shouldn't have to worry about
invalid hotkeys yourself.
-You can easily change the default color and font by editing the default values right at the top of the funtion.
Should be easy to spot.
-Also, You can easily change the default behavior by changing the Options param right at the top of the funtion
(for instance: Options = %Options% +Default1 -Mouse). You can also edit the keyList of course.
########################## The main funtion ############################
Note: The following funtions must all be present (they are included here, but I thought
I had better mention it):
Hotkey(Options="",Prompt="",BottomInfo="",Title="",GuiNumber=77)
AddPrefixSymbols(keys)
KeysToSymbols(s)
Keys()
ToggleOperator(p)
IsHotkeyValid(k)
######## Options ########
Zero or more of the following strings may be present in Options. ; Spaces are optional,
i.e. "-~-*+Default2" is valid. -/+ are NOT optional, though. I.e. "Owner3" is invalid:
-Keynames/-Symbols: Omits one of the ListViews
-LR: Omit the "left/right modifiers" checkbox (forced for Win95/98/ME)
-~, -*, -Up: Omit one or more of the corresponding checkboxes (forced for Win95/98/ME)
-Joystick/-Mouse: No joystick and/or mouse hotkeys
-Mods: No modifers
-&: No ampersand hotkeys (forced for Win95/98/ME)
+Default1, +Default2: Sets the default button (and omits the Enter key from the keyList)
+Owner*: Sets the owner. Default is A_Gui, or 1 If A_Gui is blank (or none If Gui1 doesn't exist)
-Owner: No owner
-Modal: The dialogue will be owned, but not modal
+ReturnKeynames: Return "Control+Alt+c" instead of "^!c" etc. These can later be converted by calling the KeysToSymbols(s) funtion
+Tooltips: Gives a little info about "~", "*" and "UP" (basically copied from the docs)
*/
;this funtion will Return a (hopfully) valid key combination, either
;as symbols (^!+..) or as keynames (Control+Alt+Shift+Space...)
Hotkey(Options="",Prompt="",BottomInfo="",Title="",GuiNumber=77)
{
global Hotkey_LeftRightMods,Hotkey_Tilde,Hotkey_Wildcard,Hotkey_UP,Hotkey_Hotkey1,Hotkey_Hotkey2
,Hotkey_ButtonSubmit,Hotkey_ButtonCancel,Hotkey_DefaultButton,Hotkey_keyList,Hotkey_modList_left_right
,Hotkey_modList_normal,Hotkey_JoystickButtons,Hotkey_OptionsGlobal,Hotkey_numGui
;these are all cleared again before the funtion Returns, to be on the safe side
HotKey_globals = Hotkey_LeftRightMods,Hotkey_Tilde,Hotkey_Wildcard,Hotkey_UP,Hotkey_Hotkey1,Hotkey_Hotkey2
,Hotkey_ButtonSubmit,Hotkey_ButtonCancel,Hotkey_DefaultButton,Hotkey_keyList,Hotkey_modList_left_right
,Hotkey_modList_normal,Hotkey_JoystickButtons,Hotkey_OptionsGlobal,Hotkey_numGui
batch_lines = %A_BatchLines%
SetBatchLines -1 ;this speeds things up a bit (we reset it after the Gui is shown)
;change these to suit your needs:
;default colors, etc.
defBgColor =
defTxtColor = 000000
defLVBgColor = FFFFFF
defLVTxtColor1 = Green
defLVTxtColor2 = 6495ED
defFontName = Arial
defFontSize = 8
defTitle = Hotkey
;Note: To change the default behavior permenantly, just add:
;Options = %Options%***MyFavoriteOptions***
;we can't have the special prefix symbols or the & on Win95/98/ME
;so we just edit the Options param to exclude them
If A_OSType = WIN32_WINDOWS
Options = %Options%-~-*-Up-&-lr
;this is a bit akward but we have to store the Gui # in a seperate variable
;because GuiNumber is a parameter and we can't declare it as global
If GuiNumber <>
Hotkey_numGui = %GuiNumber%
Else
Hotkey_numGui = 77
;because we use ListViews (who operate on the default Gui), we have
;to set the default in every thread that operates on the ListViews
Gui, %Hotkey_numGui%: Default
;it's global, so we have to empty it
Hotkey_JoystickButtons =
;get a list of joystick buttons
IfNotInString, Options, -Joystick
{
;Query each joystick number to find out which ones exist.
Loop 32
{
;If the joystick has a name
GetKeyState, joy_name, %A_Index%JoyName
If joy_name <>
{
;It's our joystick.
joy_number = %A_Index%
joy_exists = 1
break
}
}
;If we don't have a joystick
If joy_number <= 0
{
;record it so.
joy_exists = 0
}
;If we do have a joystick
Else
{
;Determine the number of buttons.
GetKeyState, num_buttons, %joy_number%JoyButtons
;Go through the buttons
Loop, %num_buttons%
{
newButton = Joy%a_index%
Hotkey_JoystickButtons = %Hotkey_JoystickButtons%,%newButton%
}
StringTrimLeft, Hotkey_JoystickButtons, Hotkey_JoystickButtons, 1
}
}
;the main key list. Add (or delete) keys to suit your needs
Hotkey_keyList =
( Join
#|.|,|-|<|+|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ü|ä|ö|ß|1|2|3|4|5|6|7|8|9|0
|Numpad0|Numpad1|Numpad2|Numpad3|Numpad4|Numpad5|Numpad6|Numpad7|Numpad8|Numpad9
|NumpadClear|Right|Left|Up|Down|NumpadDot|Space|Tab|Escape|Backspace|Delete|Insert|Home
|End|PgUp|PgDn|ScrollLock|CapsLock|NumLock|NumpadDiv|NumpadMult|NumpadAdd|NumpadSub
|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|F13|F14|F15|F16|AppsKey|PrintScreen|CtrlBreak|Pause|Break
|Browser_Back|Browser_Forward|Browser_Stop|Browser_Search|Browser_Favorites|Browser_Home|Volume_Mute
|Volume_Down|Volume_Up|Media_Next|Media_Prev|Media_Stop|Media_Play_Pause|Launch_Mail|Launch_Media
|Launch_App1|Launch_App2|Sleep
)
;If we have a default button, the Enter key can't be part of the key list
IfNotInString, Options, +Default
Hotkey_keyList = %Hotkey_keyList%|Enter
;add the mouse buttons to the list
MouseButtons = LButton|RButton|MButton|XButton1|XButton2
IfNotInString, Options, -Mouse
Hotkey_keyList = %Hotkey_keyList%|%MouseButtons%
;If -LR is present in Options, the two modifier key lists are the same
;Else we have two different lists. Which one is used depends on whether
;the "left/right modifiers" checkbox is checked or not
IfNotInString, Options, -lr
Hotkey_modList_left_right = LControl,RControl,LAlt,RAlt,LWin,RWin,LShift,RShift
Else
Hotkey_modList_left_right = Control,Alt,LWin,RWin,Shift
Hotkey_modList_normal = Control,Alt,LWin,RWin,Shift
;these will be turned into hotkeys to override their native funtion
;(we don't want calculator to launch when the user presses Launch_App1 etc...)
turnIntoHotkeyList =
(Join
PrintScreen|CtrlBreak|Pause|Break
|Browser_Back|Browser_Forward|Browser_Stop|Browser_Search|Browser_Favorites|Browser_Home|Volume_Mute
|Volume_Down|Volume_Up|Media_Next|Media_Prev|Media_Stop|Media_Play_Pause|Launch_Mail|Launch_Media
|Launch_App1|Launch_App2|Sleep|Control|Alt|LWin|RWin|Shift
)
;destroy the Gui, just in case
Gui, %Hotkey_numGui%: Destroy
;Owner/modal handling; by default, the Gui is owned, either by %a_gui% or
;by Gui1 If %a_gui% is blank. If the owner doesn't exist, well, it will not be owned!
IfNotInString, Options, -Owner
{
IfInString, Options, +Owner
{
StringMid, owner, Options, InStr(Options, "+Owner") + 7, 2
If owner not integer
StringTrimRight, owner, owner, 1
If owner =
StringTrimLeft, owner, Options, InStr(Options, "+Owner") + 5
}
Else
{
If a_gui <>
owner = %a_gui%
Else
owner = 1
}
Gui, %owner%: +LastfoundExist
IfWinExist
{
IfNotInString, Options, -Modal
Gui, %owner%: +Disabled
Gui, %Hotkey_numGui%: +Owner%owner%
}
Else
owner =
}
;the Gui has no Close button (this way we're flexible with the Gui #)
Gui, %Hotkey_numGui%:+Lastfound +Toolwindow -SysMenu
GuiID := WinExist() ;used for Hotkey, IfWinActive, ahk_id%GuiID%
Gui, %Hotkey_numGui%:Font, s%defFontSize% bold c%defTxtColor%, %defFontName%
Gui, %Hotkey_numGui%:Margin, 5, 5
Gui, %Hotkey_numGui%:Color, %defBgColor%
If prompt <>
Gui, %Hotkey_numGui%:Add, Text, w220, %Prompt%
If prompt <>
Gui, %Hotkey_numGui%:Add, Text, w220 cRed, (Assigning currently requires a script reload)
IfNotInString, Options, -KeyNames
Gui, %Hotkey_numGui%:Add, ListView
, vHotkey_Hotkey1 r1 -Hdr -LV0x20 r1 w220 c%defLVTxtColor1% Background%defLVBgColor%, 1|2
Else
Gui, %Hotkey_numGui%:Add, ListView
, vHotkey_Hotkey1 r1 -Hdr -LV0x20 r1 w220 c%defLVTxtColor1% Background%defLVBgColor% Hidden, 1|2
LV_ModifyCol(1, 0)
LV_ModifyCol(2, 195)
IfInString, Options, -Symbols
hidden = hidden
If (InStr(Options, "-Symbols") <> 0 OR InStr(Options, "-KeyNames") <> 0)
Gui, %Hotkey_numGui%:Add, ListView
, vHotkey_Hotkey2 r1 -Hdr -LV0x20 r1 w220 c%defLVTxtColor2% Background%defLVBgColor% %hidden% xp yp, 1|2
Else
Gui, %Hotkey_numGui%:Add, ListView
, vHotkey_Hotkey2 r1 -Hdr -LV0x20 r1 w220 c%defLVTxtColor2% Background%defLVBgColor%, 1|2
LV_ModifyCol(1, 0)
LV_ModifyCol(2, 195)
;this is a bit of a mess, because we optionally have to exclude some of these..
If Options not contains -lr,-mods
Gui, %Hotkey_numGui%:Add, Checkbox, vHotkey_LeftRightMods, left/right modifiers
IfNotInString, Options, -~
{
Gui, %Hotkey_numGui%:Add, Checkbox, vHotkey_Tilde Section gHotkey_Tilde, ~
ys = ys
}
IfNotInString, Options, -*
{
Gui, %Hotkey_numGui%:Add, Checkbox, vHotkey_Wildcard %ys% Section gHotkey_Wildcard, *
ys = ys
}
Else If ys =
ys =
IfNotInString, Options, -Up
Gui, %Hotkey_numGui%:Add, Checkbox, vHotkey_UP %ys% gHotkey_UP, UP
Gui, %Hotkey_numGui%:Font, norm
Gui, %Hotkey_numGui%:Add, Button, vHotkey_ButtonSubmit x62.5 Section w50 h20 gHotkey_Submit, Submit
Gui, %Hotkey_numGui%:Add, Button, vHotkey_ButtonCancel h20 ys w50 gHotkey_Cancel, Cancel
Gui, %Hotkey_numGui%:Add, Text, x5 y+10 w220, % BottomInfo
;the Timer sets focus to this button all the time to avoid key combinations triggering a focused checkbox
Gui, %Hotkey_numGui%:Add, Button, vHotkey_DefaultButton x0 y0 w0 h0
;set the default button If called for
IfInString, Options, +Default
{
StringMid, defButton, Options, InStr(Options, "+Default") + 8, 1
If defButton = 1
GuiControl, %Hotkey_numGui%:+Default, Hotkey_ButtonSubmit
Else If defButton = 2
GuiControl, %Hotkey_numGui%:+Default, Hotkey_ButtonCancel
}
;the default title
If title =
title = %defTitle%
;turn these keys into a hotkeys to try
;and override their native funtion
Hotkey, IfWinActive, ahk_id%GuiID%
Loop, Parse, turnIntoHotkeyList, |
Hotkey, %a_loopfield%, Return, UseErrorLevel
IfNotInString, Options, -Mouse
{
Hotkey, *WheelUp, Wheel, UseErrorLevel
Hotkey, *WheelDown, Wheel, UseErrorLevel
}
;If we have an owner, center the Gui on it
If owner <>
{
Gui, %Hotkey_numGui%:Show, Autosize Hide
Gui, %owner%: +Lastfound
WinGetPos, x, y, w, h
Gui, %Hotkey_numGui%:+Lastfound
WinGetPos,,,gw,gh
gx := x + w/2 - gw/2
gy := y + h/2 - gh/2
Gui, %Hotkey_numGui%: Show, x%gx% y%gy%, %title%
}
Else
Gui, %Hotkey_numGui%:Show, Autosize, %title%
;400 is about right, but feel free to experiment
;basically you have to keep the balance between registering new keys fast enough
;but not registering the release of keys TOO fast
SetTimer, Hotkey_Hotkey, 400
;we need Options to be global so that the other functions can use it
;so we store it in another variable
Hotkey_OptionsGlobal = %Options%
Gui, %Hotkey_numGui%:+Lastfound
Critical Off ;has to be turned off to allow the other threads to run
SetBatchLines %batch_lines% ;reset it
WinWaitClose
SetTimer, Hotkey_Hotkey, Off ;turn off the timer
Tooltip ;in case we were displaying a tooltip
Tooltip,,,,2
;free all the globals, to be on the safe side:
Loop, Parse, HotKey_globals, `,
%a_loopfield% =
;reset the default Gui
If owner <>
Gui, %owner%: Default
Else If a_gui <>
Gui, %a_gui%: Default
Else
Gui, 1: Default
;re-enable and activate the owner
If owner <>
{
Gui, %owner%: -Disabled
Gui, %owner%: Show
}
Return ReturnValue
;####################### Timer ####################
Hotkey_Hotkey:
IfWinNotActive, ahk_id%GuiID%
Return
Gui, %Hotkey_numGui%: Default
;If the mouse isn't over a control, set focus to an (invisible) button
MouseGetPos,,,win,ctrl
If (win <> GuiID OR ctrl = "")
{
GuiControl, Focus, Hotkey_DefaultButton
Tooltip,,,,2 ;we use tooltip1 to display a message Elsewhere, so use #2
}
Else IfInString, Hotkey_OptionsGlobal, +Tooltips ;If we want tooltips
{
ControlGetText, t, %ctrl%, ahk_id%win%
If t = ~
tip = Tilde: When the hotkey fires, its key's`nnative function will not be blocked`n(hidden from the system).
Else If t = *
tip = Wildcard: Fire the hotkey even If extra`nmodifiers are being held down.
Else If t = UP
tip = Causes the hotkey to fire upon release of the key`nrather than when the key is pressed down.
Else
tip =
Tooltip %tip%,,,2
}
keys := Keys() ;get the keys that are beeing held down
;If no keys are down, find out If we're looking at something
;like "Control+Alt+" or a valid hotkey, and clear the ListView
;in case #1
If keys =
{
Gui, ListView, Hotkey_Hotkey1
LV_GetText(k, 1, 2)
;If UP is checked we could have "Ctrl+Alt+ UP", so get rid of the UP
StringReplace, k, k, %a_space%UP
;If the right-most char is a "+" but we don't have "++" (e.g. "Ctrl+Alt++"), clean up
If (InStr(k, "+","",0) = StrLen(k) AND InStr(k, "++") = 0)
{
LV_Delete(1)
Gui, ListView, Hotkey_Hotkey2
LV_Delete(1)
;clear keys_prev in this case
keys_prev =
}
Return ;nothing Else
}
;this avoids flickering
If keys = %keys_prev%
Return
keys_prev = %keys%
;this handles differing between, say, "Space & LButton" and "LButton & Space"
;by remembering which key was pressed first (otherwise the keys would always
;be in the order they appear in the keyList
IfNotInString, keys, + ;If we have only a single key, remember it
firstKey = %keys%
;Else If we have more than one but no modifier(s)
Else If keys not contains %Hotkey_modList_left_right%,%Hotkey_modList_normal%,Win
{
If InStr(keys, firstKey) <> 1 ;If they're in the wrong order
{
StringLeft, k1, keys, InStr(keys, "+") - 1 ;swap them
StringTrimLeft, k2, keys, InStr(keys, "+")
keys = %k2%+%k1%
}
}
;add the special prefix keys from the checkboxes
keys := AddPrefixSymbols(keys)
;delete old keys and add new ones
Gui, %Hotkey_numGui%: ListView, Hotkey_Hotkey1
LV_Delete(1)
LV_Add("","",keys)
Gui, ListView, Hotkey_Hotkey2
LV_Delete(1)
LV_Add("","",KeysToSymbols(keys))
Return
;############# checkbox labels ###########
;these all call the same function... easier that way
Hotkey_Tilde:
Hotkey_Wildcard:
Hotkey_Up:
ToggleOperator(a_guicontrol)
Return
;########## Remove the tooltip and the pseudo label for the Hotkey #####
Hotkey_RemoveTooltip:
Tooltip
Return
Return:
Return
;############### The Label for WheelUp&WheelDown ##################
Wheel:
StringTrimLeft, w, a_thishotkey, 1 ;remove the "*" from WheelUp/Down
Gui, %Hotkey_numGui%: Default
Gui, %Hotkey_numGui%: Submit, NoHide
;in this case only check for modifiers
IfInString, Hotkey_OptionsGlobal, -&
{
mods =
;If -LR is not present in options AND the LR checkbox is checked,
;use the left/right mod list
If (InStr(Hotkey_OptionsGlobal, "-LR") = 0 AND Hotkey_LeftRightMods <> 0)
modList = %Hotkey_modList_left_right%
Else
modList = %Hotkey_modList_normal%
Loop, Parse, modList, `,
{
If GetKeyState(a_loopfield,"P") <> 1
continue
mods = %mods%%a_loopfield%+
}
If Hotkey_LeftRightMods <> 1
{
StringReplace, mods, mods, LWin, Win
StringReplace, mods, mods, RWin, Win
}
k = %mods%%w% ;the keys are the modifiers plus WheelUp/down
If k = %k_prev%
Return
k_prev = %k%
;add the prefix symbols
k := AddPrefixSymbols(k)
;add them to the LV and Return
Gui, ListView, Hotkey_Hotkey1
LV_Delete(1)
LV_Add("","",k)
Gui, ListView, Hotkey_Hotkey2
LV_Delete(1)
LV_Add("","",KeysToSymbols(k))
Return
}
;If "-&" is not present in Options, get all the keys, like in the Hotkey_Hotkey timer:
k := Keys()
;just in case somebody tries mapping "Joy3 & WheelUp" or whatever :)
If k in %Hotkey_JoystickButtons%
{
Tooltip, Note: Joystick buttons are not`nsupported as prefix keys.
SetTimer, Hotkey_RemoveTooltip, 5000
k =
}
If (InStr(k, "+","",0) <> StrLen(k)) ;If it's not something like "Control+Alt+"
{
IfInString, k, + ;If we have more than one key, remove all but the first (can't have "a & b & WheelUp")
StringLeft, k, k, InStr(k, "+","",0)
Else
k = %k%+ ;turn "Space" into "Space+" etc...
}
k = %k%%w% ;add WheelUp/Down
If k = %k_prev%
Return
k_prev = %k%
;add the prefix symbols
k := AddPrefixSymbols(k)
;add the keys to the ListViews:
Gui, ListView, Hotkey_Hotkey1
LV_Delete(1)
LV_Add("","",k)
Gui, ListView, Hotkey_Hotkey2
LV_Delete(1)
LV_Add("","",KeysToSymbols(k))
Return
;################### Submit & Cancel #####################
Hotkey_Submit:
Gui, %Hotkey_numGui%: Default
Gui, ListView, Hotkey_Hotkey1
LV_GetText(k, 1, 2)
;call IsHotkeyValid() to find out If this is a "real" hotkey
;If not, just destroy the Gui and Return
If IsHotkeyValid(k) = -1
{
Gui, %Hotkey_numGui%:Destroy
Return
}
IfNotInString, Options, +ReturnKeynames ;If we should Return symbols, get those
{
Gui, ListView, Hotkey_Hotkey2
LV_GetText(ReturnValue, 1, 2)
}
Else
ReturnValue = %k% ;we got keynames already
Gui, %Hotkey_numGui%:Destroy
; make single word characters in hotkeys upper case
; simple version, only works if there are no multi word character strings
If (ReturnValue) {
If (not RegExMatch(ReturnValue, "([\w]{2,})")) {
StringUpper, ReturnValue, ReturnValue
}
}
Return
Hotkey_Cancel:
Gui, %Hotkey_numGui%:Destroy
Return
}
;###################### Other funtions ######################
;this has to bee done in three different places, so it's a seperate funtion
;it checks which checkboxes are checked ... ugh ... and adds the symbols in the right places
;note that we can't have any of the symbols with Joystick buttons, and that " * " and "&"
;can't be present in the same hotkey
AddPrefixSymbols(keys)
{
global Hotkey_JoystickButtons,Hotkey_Tilde,Hotkey_Wildcard,Hotkey_UP,Hotkey_numGui
Gui, %Hotkey_numGui%:Submit, NoHide
;joystick buttons can't have prefix keys, therefore uncheck all the checkboxes
If keys in %Hotkey_JoystickButtons%
{
GuiControl,, Hotkey_Tilde, 0
GuiControl,, Hotkey_Wildcard, 0
GuiControl,, Hotkey_UP, 0
}
Else
{
If Hotkey_Tilde = 1
keys = ~%keys%
If Hotkey_Wildcard = 1
{
;the wildcard can't be present together with the ampersand
If (InStr(KeysToSymbols(keys), "&") = 0)
keys = *%keys%
Else
{
GuiControl,, Hotkey_Wildcard, 0
Tooltip, The * prefix is not allowed in hotkeys`nthat use the ampersand (&).
SetTimer, Hotkey_RemoveTooltip, 5000
}
}
If Hotkey_UP = 1
keys = %keys%%a_space%UP
}
Return keys
}
;________________________________________________________
;this funtion turns, say, "Control+Alt+Win+Space" into "^!#Space" etc.
;this is handy since when you use the "+ReturnKeynames" option, you can
;convert to hotkey symbols later using this funtion
KeysToSymbols(s)
{
global Hotkey_modList_left_right,Hotkey_modList_normal,Hotkey_LeftRightMods,Hotkey_numGui
Gui, %Hotkey_numGui%:Submit, NoHide
;grab the correct modList
If Hotkey_LeftRightMods = 1
modList = %Hotkey_modList_left_right%
Else
modList = %Hotkey_modList_normal%
;If the keys don't contain a modifier, it has to be something
;like "a+b", so turn it into "a & b" and Return
If s not contains %modList%,Win
{
StringReplace, s, s, +, %a_space%&%a_space%
Return s
}
;Else, replace the keynames with the appropriate symbols
StringReplace, s, s, LControl+, <^
StringReplace, s, s, RControl+, >^
StringReplace, s, s, Control+, ^
StringReplace, s, s, LAlt+, <!
StringReplace, s, s, RAlt+, >!
StringReplace, s, s, Alt+, !
StringReplace, s, s, LShift+, <+
StringReplace, s, s, RShift+, >+
StringReplace, s, s, Shift+, +
StringReplace, s, s, LWin+, <#
StringReplace, s, s, RWin+, >#
StringReplace, s, s, Win+, #
Return s
}
;__________________________________________________
;this function checks which keys are beeing held down using the correct modList
Keys()
{
global Hotkey_keyList,Hotkey_modList_left_right,Hotkey_modList_normal,Hotkey_LeftRightMods
,Hotkey_JoystickButtons,Hotkey_OptionsGlobal,Hotkey_numGui
Gui, %Hotkey_numGui%:Submit, NoHide
;grab the correct modList
If Hotkey_LeftRightMods = 1
modList = %Hotkey_modList_left_right%
Else
modList = %Hotkey_modList_normal%
;If we don't want modifiers, just make it blank
IfInString, Hotkey_OptionsGlobal, -mods
modList =
;check joystick buttons first, since we can have only one
;and no modifiers. If we find one, just Return it, nothing Else
Loop, Parse, Hotkey_JoystickButtons, `,
{
If GetKeyState(a_loopfield, "P") = 1
Return a_loopfield
}
;check for modifiers
Loop, Parse, modList, `,
{
If GetKeyState(a_loopfield,"P") <> 1
continue
mods = %mods%%a_loopfield%+
}
;GetKeyState("Win") doesn't work, which is why both modLists include
;both variants. So replace L/RWin with Win here If needed
If Hotkey_LeftRightMods <> 1
{
StringReplace, mods, mods, LWin, Win
StringReplace, mods, mods, RWin, Win
}
;check If other keys are beeing held down
Loop, Parse, Hotkey_keyList, |
{
If GetKeyState(a_loopfield,"P") <> 1
continue
;If ithe left mouse button is down, check If the user is clicking a control
;(and ignore it If that's the case)
If a_loopfield = LButton
{
MouseGetPos,,,,ctrl
If (ctrl <> "" AND InStr(ctrl, "SysListView") = 0)
continue
}
;If we don't want the ampersand (either because specified in options, or
;because we're on Win95/98/ME, just Return the first key we find (plus mods)
IfInString, OptionsGlobal, -&
{
keys = %mods%%a_loopfield%
Return keys
}
;If this is the second time we get to this point in the loop...
;we must already have a key -> the user is holding down two keys
;in this case, ignore any modifiers and just Return our two keys
If keys <>
{
keys = %keys%+%a_loopfield%
Return keys
}
;Else If keys is still blank, take this key
keys = %a_loopfield%
}
;If we get to this point, the user is holding down only one key (from the keyList)
;so we can add the modifiers, If we found some
If mods <>
keys = %mods%%keys%
Return %keys%
}
;_______________________________________________________________
;this funtion gets called everytime the user clicks one of the checkboxes
ToggleOperator(p)
{
global Hotkey_Tilde,Hotkey_Wildcard,Hotkey_UP,Hotkey_JoystickButtons,Hotkey_numGui
;we need to turn on CaseSense because we could have, say, Up UP :)
StringCaseSense On
AutoTrim Off ;because of the space between the keys and the UP symbol
Gui, %Hotkey_numGui%:Submit, NoHide
;this is kinda confusing, but I'm not changing it now...
ctrl = %p%
;"p" is a_guicontrol btw...
If p = Hotkey_Tilde
p = ~
Else If p = Hotkey_Wildcard
p = *
Else If p = Hotkey_UP
p = %a_space%UP
Loop 2
{
Gui, ListView, Hotkey_Hotkey%a_index%
LV_GetText(k%a_index%,1,2)
}
;If it's a joytick button, we can't have any special operators
If Hotkey_JoystickButtons <>
{
If k1 in %Hotkey_JoystickButtons%
{
GuiControl,, %ctrl%, 0
Tooltip, This operator is not supported`nfor joystick buttons.
SetTimer, Hotkey_RemoveTooltip, 5000
Return
}
}
;If a_guicontrol is not checked (i.e. is was unchecked),
;remove the prefix, edit the Listviews and Return
If %ctrl% <> 1
{
StringReplace, k1, k1, %p%
StringReplace, k2, k2, %p%
Loop 2
{
Gui, ListView, Hotkey_Hotkey%a_index%
LV_Delete(1)
LV_Add("","", k%a_index%)
}
Return
}
If p = ~
{
k1 = ~%k1%
k2 = ~%k2%
}
Else If p = *
{
IfNotInString, k2, & ;we can't have both " * " and "&"
{
k1 = *%k1%
k2 = *%k2%
}
Else
{
GuiControl,, Hotkey_Wildcard, 0
Tooltip, The * prefix is not allowed in hotkeys`nthat use the ampersand (&).
SetTimer, Hotkey_RemoveTooltip, 5000
}
}
Else If p contains UP
{
k1 = %k1%%p%
k2 = %k2%%p%
}
;edit the ListViews
Loop 2
{
Gui, ListView, Hotkey_Hotkey%a_index%
LV_Delete(1)
LV_Add("","", k%a_index%)
}
}
;_____________________________________________________
;this funtion checks If a) it's some kind of a sensible hotkey,
;i.e not Ctrl+Alt+, ~ UP, etc., and b) that it's a valid hotkey
;If it's not, the funtion Returns -1, Else it Returns 1
IsHotkeyValid(k)
{
If k =
Return -1
;If UP is checked we could have "Ctrl+Alt+ UP", so get rid of the UP
StringReplace, k, k, %a_space%UP
;If the right-most char is a "+" but we don't have "++" (e.g. "Ctrl+Alt++"),
;it's not a "real" hotkey - most likely the user clicked okay while
;holding down some modifiers. We can't have that...
If (InStr(k, "+","",0) = StrLen(k) AND InStr(k, "++") = 0)
Return -1
;these are all valid hotkeys, but we don't really want these either
If k in ,*,~, UP,*~,~*,* UP,~ UP,*~ UP
Return -1
;turn it into a hotkey to check ErrorLevel.
;convert to symbols before we do this
k := KeysToSymbols(k)
Hotkey, %k%, Return, UseErrorLevel
If ErrorLevel <> 0
{
;Joystick buttons cause an incorrect ErrorLevel on WinXP (see my post in Bug Reports)
;so ignore it
If (A_OSType <> "WIN32_WINDOWS" AND ErrorLevel = 51 AND InStr(k, "Joy") <> 0)
{
Hotkey, %k%, Return, Off
Return 1
}
Else ;notify user
{
ErrorMessage =
(LTrim
Sorry, this hotkey (%k%) is invalid.
To find out why, please look up Error #%ErrorLevel% under the "Hotkey" command in the AHK command list.
Also, please report this Error to the author of this script so that the bug can be fixed.
(Note: Press Ctrl+C to copy this message to the clipboard).
)
Gui, +OwnDialogs
Msgbox, 8208, Invalid Hotkey, %ErrorMessage%
Return -1
}
}
Else
Return 1
} | 30.909091 | 130 | 0.687551 |
a4d11ae267e8ca5aefd38ae4d4ec439fc61d86a4 | 311 | ahk | AutoHotkey | src/MD2.ahk | Masonjar13/libcrypt.ahk | 578549d724102c5bb39d6fcf10d0fede92e48fdb | [
"MIT"
] | 53 | 2015-02-09T02:57:42.000Z | 2022-01-26T01:09:40.000Z | src/MD2.ahk | Masonjar13/libcrypt.ahk | 578549d724102c5bb39d6fcf10d0fede92e48fdb | [
"MIT"
] | 30 | 2015-02-08T12:00:47.000Z | 2021-03-02T23:06:44.000Z | src/MD2.ahk | Masonjar13/libcrypt.ahk | 578549d724102c5bb39d6fcf10d0fede92e48fdb | [
"MIT"
] | 21 | 2015-05-14T05:43:34.000Z | 2022-03-10T01:53:39.000Z | LC_MD2(string, encoding = "UTF-8") {
return LC_CalcStringHash(string, 0x8001, encoding)
}
LC_HexMD2(hexstring) {
return LC_CalcHexHash(hexstring, 0x8001)
}
LC_FileMD2(filename) {
return LC_CalcFileHash(filename, 0x8001, 64 * 1024)
}
LC_AddrMD2(addr, length) {
return LC_CalcAddrHash(addr, length, 0x8001)
} | 25.916667 | 52 | 0.758842 |
fcb22eb38557c0a87e08f22570205a09d88f8d9b | 2,174 | ahk | AutoHotkey | ahk/primavera_fetch_text.ahk | chipnetics/vaporware | 4d5873dce68d34dd3c1f3cab90b45bf7b11d7aba | [
"MIT"
] | null | null | null | ahk/primavera_fetch_text.ahk | chipnetics/vaporware | 4d5873dce68d34dd3c1f3cab90b45bf7b11d7aba | [
"MIT"
] | null | null | null | ahk/primavera_fetch_text.ahk | chipnetics/vaporware | 4d5873dce68d34dd3c1f3cab90b45bf7b11d7aba | [
"MIT"
] | null | null | null | CoordMode, mouse, Screen
MouseGetPos, xPos, yPos
Gui, Add, Text, , Opening Primavera... Please Wait
Gui, Show, x%xPos% y%yPos% NoActivate
run, "C:\Program Files\Oracle\Primavera P6\P6 Professional\PM.exe"
sleep, 2000
Send Jeff
Send {Tab}
Send {Tab}
Send {Tab}
Send {Enter}
sleep, 20000
Send {Ctrl Down}o{Ctrl Up} ; open prompt
Send {Ctrl Down}f{Ctrl Up} ; find prompt
Send 10425-52-SCH-033_04A-1
Send {Enter}
Send !{F4} ;altf4 to to close find window
Send !o ; open found string
sleep, 4000
; Weird Primavera bug here. Need to open find window and close it to be able to select all
Send {Ctrl Down}f{Ctrl Up} ; find prompt
sleep, 1000
Send !{F4} ;altf4 to to close find window
send {Ctrl Down}a{Ctrl Up} ; Select All
send {Ctrl Down}c{Ctrl Up} ; Copy
send {Alt Down}fx{Alt Up} ; Close P6 (file->close)
sleep, 1000
Send y ; Confirm 'yes' to close
sleep, 3000
;objExcel := ComObjCreate("Excel.Application") ; create a handle to a new excel application
objExcel := ComObjActive("Excel.Application") ; create a handle to a new excel application
;objWorkBook := objExcel.Workbooks.Add() ; add a new workbook
objExcel.Visible := TRUE ; make excel visible
objExcel.Sheets("IDS").Activate ; activate sheet
objExcel.Cells.ClearContents ; clear sheet contents
objExcel.Cells(1,2).Select ; paste in top left corner
objExcel.ActiveSheet.Paste
objExcel.Cells(1,2).Select
send {Ctrl Down}a{Ctrl Up} ; Select All
send {Alt Down}hoi{Alt Up} ; Select All
objExcel.Columns("B:B").Select
objExcel.ActiveSheet.Range("$B$1:$B$2000").AutoFilter(Field:=1,Criteria1:="=PM*") ; Filter for PM
objExcel.Columns("D:G").Select
objExcel.Selection.EntireColumn.Hidden := True
objExcel.Columns("I:M").Select
objExcel.Selection.EntireColumn.Hidden := True
objExcel.Columns("H:H").Select
objExcel.Selection.Replace(What:=" A", Replacement:="")
objExcel.Selection.Replace(What:="~*", Replacement:="")
objExcel.Columns("B:B").EntireColumn.AutoFit
objExcel.Columns("C:C").EntireColumn.AutoFit
objExcel.Columns("H:H").EntireColumn.AutoFit
Gui, Destroy
ExitApp | 26.839506 | 98 | 0.695492 |
17ec3545270f6b468e8bc1343ed9bf4259b72f87 | 5,549 | ahk | AutoHotkey | carpboard.ahk | wyattscarpenter/carpboard | fa723d76205c1184ae20a585d5bfeef37943296e | [
"CC0-1.0"
] | null | null | null | carpboard.ahk | wyattscarpenter/carpboard | fa723d76205c1184ae20a585d5bfeef37943296e | [
"CC0-1.0"
] | null | null | null | carpboard.ahk | wyattscarpenter/carpboard | fa723d76205c1184ae20a585d5bfeef37943296e | [
"CC0-1.0"
] | null | null | null | ; please remember that this file must be saved with a little-endian byteorder mark, whether it's utf8 or utf16
; that's just one of ahk's wacky rules.
#SingleInstance FORCE
#InstallKeybdHook
; KeyHistory ; uncomment this line if some hotkey is giving you trouble and you need to review scancodes
SetCapslockState AlwaysOff
; bound everything to Capslock because the fn key isn't a real key that sends keystrokes :/
; and i am a very quiet man anyway
#If Getkeystate("Capslock","p")
SC028::SEND ´ ; acute (reverse of grave) ; a literal ' was giving me some trouble here, but the scan code SC028 did the trick
a::SEND ∝ ; proportionality
b::SEND ♪ ; eighth note (to demonstrate music)
c::SEND ¢ ; cents
d::SEND ∂ ; partial derivative
e::SEND ∈ ; element of
l::SEND ł ; slashed l
m::SEND — ; em dash
n::SEND – ; en dash
o::SEND ° ; degree
p::SEND ¶ ; this is a pilcrow. for some reason notepad displays it as ❡
s::SEND ∫ ; integral
t::SEND † ; dagger
v::SEND ∨ ; logical or
x::SEND × ; cross (multiply)
y::SEND þ ; why is the thorn bound to y? historical folly
z::SEND ß ; Eszett from german (lowercase) bound to z because my s key was taken
=::SEND ≈ ; approximately equal
0::SEND ∞ ; infinity
SC035::SENDINPUT ¯\_(ツ)_/¯ ; shruggie ; a literal / was giving me some trouble here, but the scan code SC035 did the trick
\::SENDINPUT ¯\\\_(ツ)\_/¯ ; reddit-escaped shruggie
`::SEND “ ; fancy left double quote
f::SEND 「 ; left quotation mark japanese
j::SEND 」 ; right quotation mark japanese
Space::SEND - ; hyphen for programming in lisp faster
.::SEND ∴ ; therefore
,::SEND ∵ ; because
-::SEND ± ; plus or minus
*::SEND ⁂ ; asterism
Alt & a::SEND ã ; a with tilde from portuguese (lower case, you can shift-insert to uppercase remember?)
Alt & f::SEND ❧ ; fleuron (U+2767 ❧ ROTATED FLORAL HEART BULLET (HTML ❧) (Dingbats))
Alt & n::SEND ñ ; enye (n with tilde from spanish) (lower case, you can shift-insert to uppercase remember?)
Alt & Space::SEND % respace(Clipboard) ; respace text with random spaces in, like in a pdf or fixed-width ascii document
Alt & SC028::SEND % "{ASC 34}" . respace(Clipboard) . "{ASC 34}" ; respace and quote text (34 is ascii code for double quote)
Insert::SENDINPUT % ToFilename(Clipboard)
Alt & Insert::SENDINPUT % ToLower(Clipboard)
Alt & D::SENDINPUT %A_DDD%, %A_YYYY%-%A_MM%-%A_DD% %A_Hour%:%A_Min%:%A_Sec% ; current date/time ; Mon, 2020-01-13 08:21:01
; these are the ones that require you to hold shift
; #If Getkeystate("Capslock","p") and Getkeystate("Shift","p") failed mysteriously,
; so we're just going to use the 2-key hotkey feature
Shift & `::SEND ¬ ; logical not
Shift & !::SEND ¡ ; inverted exclamation mark
Shift & A::SEND ∀ ; all
Shift & B::SEND ♫ ; beamed eighth notes (to demonstrate music)
Shift & C::SEND ⊂ ; subset
Shift & E::SEND ∃ ; exists
Shift & F::SEND ſ ; why is the long s bound to f? because s was already taken, and it looks like an f
Shift & L::SEND Ł ; slashed L
Shift & N::SEND ∩ ; intersection
Shift & O::SEND ∘ ; ring
Shift & S::SEND § ; on my comptuer this jams if you use left shift, so use right shift
Shift & T::SEND ‡ ; double dagger
Shift & U::SEND ∪ ; union
Shift & Y::SEND Þ ; why is the thorn bound to y? historical folly
Shift & Z::SEND ẞ ; Eszett from german (uppercase) bound to z because my s key was taken
Shift & =::SEND ≡ ; triple bar (sometimes "logically identical to")
Shift & -::SEND ¯ ; overline
Shift & <::SEND ← ; left arrow
Shift & >::SEND → ; right arroe
Shift & SC028::SEND ” ; fancy right double quote ; sc028 in place of a literal " or '
Shift & {::SEND ‘ ; fancy left single quote
Shift & }::SEND ’ ; fancy right single quote
Shift & SC035::SENDINPUT ¿ ; inverted question mark ; sc035 in place of a literal ? or /
Shift & Space::SEND _ ; underline for typing variable names faster
Shift & ^::SEND ∧ ; logical and
Shift & *::SEND ⋅ ; dot (multiply)
Shift & |:: SEND ⊢ ; turnstile (useful in logic)
Shift & $:: SEND £ ; pound sterling
Shift & Insert::SENDINPUT % ToUpper(Clipboard)
ToFilename(s){
StringLower, tmp, s
;the following heuristics have served me well
tmp := StrReplace(tmp, "+", " plus ")
tmp := StrReplace(tmp, "=", " equals ")
tmp := StrReplace(tmp, "/", " slash ")
tmp := StrReplace(tmp, "%", " percent ")
tmp := StrReplace(tmp, "&", " and ")
;tmp := StrReplace(tmp, "@", " at ") ; since most @s are usernames nowadays this turns out to be a bad substitution, better to just remove them.
tmp := StrReplace(tmp, "_", " ")
tmp := StrReplace(tmp, "-", " ") ; it's legitimate to have semantic hyphens in a file name, but I often like to copy file names that use them just as spaces.
tmp := StrReplace(tmp, ".", " ")
tmp := StrReplace(tmp, "ü", "ue") ; these are for german umlauts, but might collide with diaereses
tmp := StrReplace(tmp, "ö", "oe")
tmp := StrReplace(tmp, "ä", "ae")
tmp := StrReplace(tmp, "ñ", "ny") ; spanish
tmp := RegExReplace(tmp, "\$(\d*)\.(\d*)", Replacement := " $1 dollars $2 cents ")
tmp := RegExReplace(tmp, "\$(\d*)", Replacement := " $1 dollars ")
tmp := RegExReplace(tmp, "\s+", Replacement := " ")
tmp := RegExReplace(tmp, "[^\w\ \-]", "")
tmp := respace(tmp)
return tmp
}
ToUpper(s){
StringUpper, tmp, s
return tmp
} ; need this function that returns something so we can pass the result to SEND inline.
ToLower(s){
StringLower, tmp, s
return tmp
} ; need this function that returns something so we can pass the result to SEND inline
respace(s){
s := RegExReplace(s, "\s+", Replacement := " ")
s := trim(s)
return s
}
trim(s){
s := RegExReplace(s, "^\s*")
s := RegExReplace(s, "\s*$")
return s
} | 43.015504 | 157 | 0.680483 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.