hexsha stringlengths 40 40 | size int64 6 1.05M | ext stringclasses 3 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 232 | max_stars_repo_name stringlengths 7 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 7 | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 232 | max_issues_repo_name stringlengths 7 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 7 | max_issues_count int64 1 37.5k ⌀ | 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 4 232 | max_forks_repo_name stringlengths 7 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 7 | max_forks_count int64 1 12.6k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 6 1.05M | avg_line_length float64 1.16 19.7k | max_line_length int64 2 938k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93eaad345e820ca21ad0cceb05382911e7ae4852 | 1,069 | asm | Assembly | wof/lcs/enemy/68.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | wof/lcs/enemy/68.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | wof/lcs/enemy/68.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
008278 move.w A1, ($68,A0) [123p+ 6A]
00827C move.w A1, ($86,A0) [enemy+68]
008D88 move.w A1, ($86,A0) [enemy+68]
008FEC move.w A1, ($68,A0) [123p+ 6A]
008FF0 move.w #$0, D7 [enemy+68]
009154 move.b ($30,A0), ($79,A1) [enemy+68]
012280 move.l (A2)+, (A3)+ [enemy+64, enemy+66]
012282 move.l (A2)+, (A3)+ [enemy+68, enemy+6A]
01A75E dbra D4, $1a75c
01B510 move.l #$2040200, ($28,A0) [enemy+68]
032CDE clr.w ($68,A0) [enemy+C2]
032CE2 move.w #$1d0, ($7a,A0) [enemy+68]
032D58 bne $32d62 [enemy+68]
0330FE move.b ($2a,A0), D0 [enemy+68]
0368DA move.b #$6, ($a3,A0)
036A68 clr.w ($68,A0) [enemy+1F]
036A6C move.w #$120, ($7a,A0)
036AC4 bne $36b44 [enemy+68]
036C10 clr.w ($68,A0) [enemy+7A]
036C14 addq.b #2, ($c2,A0)
036C68 tst.w ($68,A0) [enemy+33]
036C6C bne $36cc8
036C9C bne $36cc8
036D16 bne $36cc8
05E476 movea.l ($12,A0), A1 [123p+ 68, enemy+68]
copyright zengfr site:http://github.com/zengfr/romhack
| 34.483871 | 54 | 0.606174 |
cfd2746909a7ec900f8e5c174cb471557b60de8b | 108 | asm | Assembly | pkgs/tools/yasm/src/modules/arch/x86/tests/negequ.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | pkgs/tools/yasm/src/modules/arch/x86/tests/negequ.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | pkgs/tools/yasm/src/modules/arch/x86/tests/negequ.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | [bits 32]
off equ -4
pos equ 4
mov [ebp+off], eax
mov [ebp+pos], eax
mov [ebp-off], eax
mov [ebp-pos], eax
| 12 | 18 | 0.62963 |
81d932e7a0d56d0d3a5b9b56e1430836874d003d | 12,545 | asm | Assembly | P6/data_P6_2/ALUTest123.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/ALUTest123.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest123.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | lh $4,0($0)
lhu $5,2($0)
nor $6,$5,$3
xor $4,$2,$3
and $1,$1,$3
and $6,$3,$3
addiu $3,$5,31335
subu $6,$1,$3
xori $1,$6,11871
sh $3,4($0)
sll $5,$5,20
lbu $4,9($0)
sllv $4,$3,$3
andi $5,$5,64214
slti $3,$6,-9609
addu $3,$5,$3
slt $5,$4,$3
or $4,$4,$3
srav $3,$3,$3
slti $6,$1,-23338
slti $1,$4,-23246
sra $3,$3,1
sll $4,$3,6
lb $3,13($0)
srl $4,$1,10
sltiu $3,$1,-27675
slti $6,$6,31144
xori $1,$4,62551
slti $4,$5,27919
subu $1,$1,$3
srl $1,$1,23
slti $1,$6,-23479
sb $5,2($0)
lh $2,10($0)
srav $1,$5,$3
subu $5,$4,$3
addiu $3,$3,-29588
subu $3,$5,$3
srl $1,$3,27
slt $1,$4,$3
sltu $4,$3,$3
sll $5,$4,29
ori $1,$5,36402
addiu $4,$3,-23370
addiu $1,$3,30333
addiu $6,$6,-22663
subu $5,$4,$3
subu $4,$3,$3
sb $3,12($0)
lw $5,0($0)
addu $3,$3,$3
lw $6,4($0)
lhu $4,8($0)
lb $3,2($0)
addu $6,$1,$3
sh $5,0($0)
nor $3,$6,$3
addiu $5,$1,-451
addiu $6,$6,-12443
addiu $4,$3,-29117
subu $4,$3,$3
addiu $3,$5,14244
srlv $6,$6,$3
sb $1,6($0)
sltu $3,$6,$3
srlv $1,$1,$3
nor $0,$0,$3
srav $3,$1,$3
addiu $3,$1,-17643
addiu $5,$3,-15067
and $5,$4,$3
nor $6,$6,$3
srav $1,$6,$3
ori $0,$0,58478
sltiu $3,$3,16865
subu $4,$4,$3
lhu $5,4($0)
lh $5,12($0)
subu $3,$5,$3
addu $4,$3,$3
addiu $1,$4,14435
subu $1,$6,$3
subu $1,$1,$3
subu $0,$1,$3
or $6,$6,$3
subu $4,$1,$3
sltiu $3,$4,-14846
slti $4,$6,10610
lhu $0,0($0)
nor $3,$4,$3
andi $3,$5,34720
sll $5,$1,20
sltiu $4,$4,-14408
slt $3,$5,$3
lb $3,9($0)
xor $5,$6,$3
lb $4,14($0)
srlv $3,$0,$3
ori $4,$4,13833
or $3,$4,$3
addiu $1,$4,8755
sltiu $0,$4,-6641
subu $5,$5,$3
slt $3,$3,$3
lh $4,16($0)
xor $5,$5,$3
srlv $3,$3,$3
xori $4,$4,21199
lhu $4,4($0)
srl $4,$1,26
xori $4,$1,40672
lb $1,1($0)
subu $1,$4,$3
addu $3,$1,$3
addiu $3,$3,-25146
subu $4,$1,$3
addiu $3,$4,-30927
lh $6,0($0)
addu $4,$1,$3
sh $6,12($0)
xori $0,$6,9746
lhu $4,12($0)
subu $6,$3,$3
subu $5,$2,$3
xori $0,$6,38569
addu $0,$3,$3
lh $4,10($0)
addiu $5,$3,8525
srl $1,$1,19
srav $3,$1,$3
srl $1,$5,17
lw $4,4($0)
subu $4,$4,$3
and $1,$3,$3
or $4,$3,$3
slt $3,$3,$3
xor $4,$1,$3
subu $3,$3,$3
sw $1,12($0)
sll $1,$5,18
xor $6,$3,$3
xori $4,$3,60127
sltiu $4,$3,-18521
lhu $5,16($0)
xori $1,$4,9183
slt $3,$1,$3
slti $4,$5,9795
lhu $3,4($0)
sltu $1,$6,$3
nor $3,$3,$3
sll $5,$1,5
xor $5,$4,$3
srlv $3,$4,$3
addu $3,$3,$3
xor $1,$4,$3
subu $3,$4,$3
xori $4,$3,29224
or $6,$1,$3
lh $4,0($0)
subu $1,$3,$3
xori $5,$5,18820
lhu $1,14($0)
subu $5,$5,$3
and $3,$5,$3
srl $3,$3,6
lhu $1,6($0)
srlv $4,$4,$3
lbu $6,3($0)
srlv $3,$3,$3
ori $3,$5,14533
or $1,$3,$3
sw $1,0($0)
slti $5,$5,30787
sra $4,$3,9
sw $5,4($0)
or $3,$4,$3
or $3,$3,$3
slti $6,$6,21707
ori $3,$3,18085
ori $3,$4,7957
addu $3,$1,$3
addu $3,$3,$3
addu $5,$5,$3
addu $0,$4,$3
subu $4,$5,$3
lb $1,13($0)
addiu $4,$4,26561
addiu $3,$4,21431
lh $3,12($0)
andi $4,$1,20454
sll $5,$5,26
subu $3,$3,$3
srav $3,$1,$3
addu $5,$5,$3
xori $4,$5,23793
slti $3,$3,28067
addu $1,$0,$3
lbu $6,10($0)
srlv $3,$3,$3
srav $5,$6,$3
sllv $3,$6,$3
lh $3,16($0)
subu $0,$3,$3
sb $4,1($0)
nor $5,$1,$3
sltiu $4,$3,2603
subu $1,$1,$3
or $5,$4,$3
sra $3,$4,21
andi $3,$3,20341
addu $1,$5,$3
ori $5,$5,65126
sb $4,16($0)
lbu $5,8($0)
addiu $1,$3,25316
slti $4,$3,-11587
lw $3,4($0)
ori $4,$5,40539
subu $2,$2,$3
sllv $3,$3,$3
srlv $3,$3,$3
sllv $5,$5,$3
xori $5,$5,20326
xor $4,$0,$3
lw $3,0($0)
xor $0,$1,$3
sb $4,6($0)
srlv $4,$3,$3
lb $5,14($0)
addu $4,$4,$3
lb $5,2($0)
and $4,$3,$3
slt $5,$1,$3
subu $4,$5,$3
sltiu $5,$5,-19826
subu $0,$0,$3
addiu $1,$4,23429
lh $4,0($0)
lbu $5,12($0)
or $1,$1,$3
andi $4,$0,23502
sw $1,8($0)
addu $6,$2,$3
sw $5,16($0)
srl $3,$5,25
sh $4,16($0)
srlv $3,$3,$3
addu $1,$4,$3
addu $3,$3,$3
addu $5,$6,$3
sh $1,12($0)
sll $3,$4,22
srav $3,$3,$3
addu $3,$5,$3
addiu $5,$3,10331
srl $3,$1,7
sb $3,6($0)
addu $4,$5,$3
andi $3,$1,19419
andi $0,$1,18282
addiu $3,$5,5790
subu $4,$0,$3
sllv $3,$1,$3
sra $3,$0,8
sw $6,4($0)
or $6,$6,$3
lh $5,0($0)
addiu $4,$0,27372
sltiu $4,$4,-28950
srl $4,$4,27
slt $0,$3,$3
lbu $6,7($0)
lh $0,10($0)
xor $3,$3,$3
sll $5,$5,28
or $6,$5,$3
subu $4,$1,$3
slt $0,$3,$3
sll $3,$3,18
lbu $5,7($0)
lb $3,8($0)
addu $0,$4,$3
sllv $1,$3,$3
ori $4,$3,47129
sltiu $0,$0,-17996
sll $5,$0,1
lhu $5,0($0)
xori $6,$5,52540
sw $4,16($0)
lw $5,16($0)
and $6,$0,$3
lb $1,15($0)
sltiu $5,$2,-20141
slt $3,$3,$3
sll $3,$4,28
sw $3,0($0)
slt $0,$5,$3
srl $1,$5,3
and $4,$3,$3
subu $4,$6,$3
addu $4,$0,$3
addu $6,$3,$3
lw $4,0($0)
sra $3,$3,2
lb $3,1($0)
srlv $0,$4,$3
addiu $4,$4,28232
sllv $4,$4,$3
addu $5,$1,$3
sb $3,12($0)
lb $4,8($0)
srav $6,$0,$3
slti $4,$1,25698
xor $3,$5,$3
sltiu $3,$3,31093
srlv $3,$0,$3
nor $1,$6,$3
subu $3,$2,$3
sltiu $6,$3,-28382
sllv $6,$5,$3
andi $0,$0,12565
and $4,$3,$3
lh $5,4($0)
slti $6,$5,11078
subu $1,$3,$3
sll $5,$3,8
sltu $3,$3,$3
subu $1,$6,$3
lhu $5,6($0)
addiu $1,$5,17661
slti $4,$4,14360
addu $3,$5,$3
or $5,$4,$3
nor $4,$4,$3
nor $1,$1,$3
sb $5,3($0)
srl $1,$1,1
lb $1,15($0)
subu $1,$5,$3
subu $1,$4,$3
sb $3,3($0)
lb $3,5($0)
addu $5,$4,$3
srav $5,$2,$3
sra $6,$3,24
sll $5,$6,27
sra $4,$2,6
xor $1,$5,$3
lh $4,14($0)
subu $3,$3,$3
nor $4,$3,$3
addiu $3,$3,19896
srl $1,$3,27
sll $5,$3,12
or $0,$0,$3
subu $1,$3,$3
srav $4,$5,$3
addu $0,$3,$3
subu $1,$1,$3
sb $1,0($0)
andi $3,$3,1752
sh $3,16($0)
xor $4,$4,$3
sllv $0,$3,$3
sltiu $5,$5,-9847
lhu $3,12($0)
subu $6,$4,$3
lbu $4,3($0)
slt $3,$4,$3
srav $4,$3,$3
sw $1,0($0)
srl $3,$3,23
srl $5,$5,6
sltu $3,$4,$3
sllv $4,$4,$3
addu $1,$6,$3
sltiu $4,$4,-13243
lh $3,12($0)
sra $0,$4,6
subu $1,$5,$3
sllv $3,$4,$3
srav $6,$1,$3
xor $5,$3,$3
lb $1,3($0)
sra $4,$4,22
or $1,$0,$3
addu $1,$1,$3
xori $0,$4,2946
andi $6,$1,22161
lh $1,10($0)
subu $3,$1,$3
sltu $3,$3,$3
lb $3,15($0)
addu $1,$4,$3
subu $5,$4,$3
addu $1,$3,$3
lbu $0,4($0)
subu $4,$3,$3
slti $5,$4,-14478
addu $5,$5,$3
or $3,$3,$3
xor $4,$3,$3
srl $4,$4,8
sb $6,3($0)
addiu $3,$0,12622
and $0,$3,$3
srlv $4,$2,$3
or $4,$1,$3
srl $0,$1,30
sltiu $0,$0,18820
addiu $6,$5,11486
xor $4,$4,$3
xor $3,$5,$3
slti $4,$3,-24429
andi $5,$5,32334
and $3,$5,$3
and $3,$3,$3
lbu $4,8($0)
addu $3,$5,$3
lhu $0,12($0)
sra $3,$3,4
addiu $5,$5,-16562
srl $3,$3,30
sh $5,2($0)
addu $1,$0,$3
sllv $1,$4,$3
ori $1,$1,30654
addiu $3,$1,-4116
srlv $3,$3,$3
slti $3,$4,17078
lb $6,13($0)
xor $4,$5,$3
and $3,$3,$3
sll $3,$3,7
lb $1,2($0)
sllv $0,$1,$3
lb $3,1($0)
slt $5,$3,$3
xori $3,$3,3699
sb $6,1($0)
sh $4,16($0)
ori $3,$3,41132
srl $1,$4,22
srl $5,$5,26
slti $5,$4,-16231
sb $1,9($0)
slti $1,$0,17928
srl $3,$3,18
andi $6,$3,43543
sltu $1,$1,$3
and $4,$3,$3
sra $4,$4,23
or $6,$3,$3
addu $5,$5,$3
slt $4,$3,$3
addu $3,$4,$3
lb $4,12($0)
and $5,$5,$3
srav $3,$3,$3
addu $6,$4,$3
xori $2,$2,48026
sh $1,8($0)
srl $0,$4,1
addu $4,$3,$3
and $4,$1,$3
sra $3,$6,25
or $3,$4,$3
ori $4,$4,30274
subu $6,$3,$3
andi $4,$4,32195
lw $1,8($0)
slti $4,$4,-7193
addiu $5,$5,-29305
srav $4,$4,$3
sb $5,11($0)
srlv $3,$3,$3
slti $4,$5,-20675
sllv $5,$6,$3
srl $0,$0,16
lhu $4,6($0)
sra $3,$1,9
lh $1,4($0)
sllv $4,$4,$3
sll $1,$2,21
nor $3,$4,$3
addiu $1,$5,-17281
andi $1,$3,2464
subu $4,$6,$3
addiu $1,$3,-20452
sh $0,2($0)
addiu $5,$3,4755
xor $0,$4,$3
lb $3,9($0)
or $1,$1,$3
srav $3,$1,$3
addiu $5,$4,-24924
ori $1,$5,34327
srav $5,$3,$3
srl $0,$1,8
andi $4,$4,33539
subu $6,$6,$3
and $3,$0,$3
nor $6,$6,$3
sll $5,$3,16
and $3,$4,$3
andi $3,$0,1637
lhu $6,0($0)
slti $4,$5,-23097
or $6,$0,$3
ori $3,$5,37806
lw $6,0($0)
lhu $4,12($0)
sll $4,$0,19
lh $6,14($0)
addu $6,$4,$3
sw $4,16($0)
addu $4,$3,$3
or $1,$2,$3
slti $4,$4,-4304
lb $3,3($0)
slti $6,$6,6143
and $0,$2,$3
xori $4,$4,748
sh $1,6($0)
addu $3,$3,$3
sllv $1,$5,$3
sltu $3,$3,$3
lw $3,12($0)
srlv $0,$0,$3
srav $3,$3,$3
sw $3,8($0)
addu $3,$3,$3
sra $5,$5,27
addu $5,$5,$3
sb $5,14($0)
ori $1,$4,36997
or $3,$3,$3
lb $4,4($0)
or $2,$2,$3
srl $4,$4,24
sllv $6,$6,$3
slt $0,$0,$3
sll $3,$1,2
addu $5,$0,$3
addu $3,$1,$3
sll $4,$4,8
lhu $3,16($0)
sltiu $3,$3,-16445
lb $1,8($0)
sb $2,0($0)
xor $1,$5,$3
xor $4,$4,$3
lhu $5,12($0)
sra $1,$1,14
addu $5,$5,$3
subu $4,$6,$3
sh $6,2($0)
sb $4,10($0)
lh $3,16($0)
addu $4,$4,$3
lb $5,2($0)
srav $1,$3,$3
xor $1,$1,$3
lbu $1,6($0)
lhu $3,12($0)
lb $4,15($0)
sh $5,6($0)
addu $3,$3,$3
and $3,$3,$3
sw $0,0($0)
addiu $5,$4,621
addiu $3,$1,-16296
sllv $1,$0,$3
lbu $4,9($0)
srav $3,$3,$3
nor $3,$6,$3
addu $0,$3,$3
xori $3,$3,49260
nor $3,$3,$3
lbu $6,4($0)
sltiu $3,$1,-13504
lhu $5,2($0)
addiu $4,$2,6222
sllv $3,$6,$3
xori $0,$6,30204
lw $0,4($0)
srl $4,$4,3
srlv $6,$1,$3
lhu $0,10($0)
lh $3,14($0)
sltu $3,$3,$3
slt $1,$6,$3
srlv $3,$1,$3
sh $3,8($0)
or $3,$4,$3
slt $6,$3,$3
lb $3,13($0)
srlv $4,$4,$3
srlv $3,$6,$3
addiu $0,$3,-11312
sllv $6,$6,$3
xori $3,$3,17447
srl $5,$4,6
sltiu $4,$4,3381
and $5,$5,$3
lhu $5,16($0)
lb $3,3($0)
lhu $1,8($0)
addiu $3,$3,16088
lb $4,11($0)
addu $6,$6,$3
sltiu $5,$0,9393
subu $3,$3,$3
sllv $1,$1,$3
addiu $3,$2,7040
slt $3,$4,$3
sh $5,12($0)
nor $3,$3,$3
sllv $3,$3,$3
xor $5,$3,$3
xor $3,$3,$3
sw $1,8($0)
sltiu $4,$1,-2708
slt $0,$5,$3
lhu $3,10($0)
or $6,$1,$3
xor $4,$2,$3
andi $3,$3,60577
srlv $5,$5,$3
or $5,$3,$3
lh $1,14($0)
sw $5,12($0)
addiu $1,$4,-22671
sllv $5,$4,$3
slti $4,$4,31874
lhu $3,10($0)
subu $3,$4,$3
lw $4,16($0)
sltu $3,$6,$3
subu $4,$3,$3
ori $1,$4,62878
srl $3,$2,5
subu $5,$5,$3
sb $5,14($0)
addiu $5,$2,-17379
xor $1,$1,$3
srl $3,$3,28
srlv $4,$3,$3
srl $3,$5,30
subu $1,$5,$3
srav $4,$5,$3
sll $3,$5,22
sra $4,$4,4
ori $4,$5,38725
slti $6,$6,-13932
lbu $2,0($0)
sb $4,11($0)
sll $4,$4,23
sllv $4,$4,$3
lb $4,12($0)
lb $0,8($0)
xor $3,$3,$3
sll $3,$1,20
ori $1,$1,40091
sltiu $4,$4,18581
lb $3,16($0)
sltu $3,$5,$3
slti $3,$5,23407
sh $1,0($0)
andi $3,$3,3990
subu $3,$1,$3
sllv $5,$5,$3
xor $3,$3,$3
sra $5,$5,15
andi $3,$3,6040
ori $5,$1,47289
addiu $3,$3,-26779
sra $4,$1,10
sltu $6,$6,$3
andi $0,$1,54259
sh $5,14($0)
lb $5,16($0)
sw $4,0($0)
xor $0,$1,$3
nor $5,$3,$3
ori $4,$3,52327
addu $3,$1,$3
srl $1,$3,20
sb $5,9($0)
sltu $3,$1,$3
sb $1,1($0)
addiu $5,$3,270
xor $3,$1,$3
lw $3,0($0)
sh $0,14($0)
sb $3,16($0)
lb $3,1($0)
slt $6,$0,$3
subu $0,$0,$3
addu $3,$3,$3
slt $4,$5,$3
lbu $0,1($0)
lbu $3,3($0)
xori $3,$5,64319
lb $4,11($0)
slti $1,$4,-31422
lh $5,10($0)
srav $5,$5,$3
sra $0,$3,8
slti $2,$2,-12778
xori $4,$3,55703
sra $3,$3,0
sw $3,8($0)
sltu $1,$1,$3
or $3,$4,$3
addu $4,$3,$3
addu $3,$3,$3
addu $3,$5,$3
sltu $3,$1,$3
xori $0,$5,51200
and $4,$4,$3
sltu $3,$0,$3
lh $4,16($0)
sltu $4,$6,$3
andi $6,$6,29940
addiu $2,$2,-4621
xor $3,$3,$3
srav $1,$1,$3
lb $1,1($0)
sll $3,$0,17
subu $3,$5,$3
lb $0,3($0)
srlv $1,$1,$3
ori $6,$0,40551
subu $4,$4,$3
and $3,$0,$3
andi $5,$4,32215
andi $1,$5,58208
sra $3,$3,31
lh $5,6($0)
subu $6,$5,$3
lhu $4,12($0)
lhu $1,10($0)
xori $4,$4,60973
slti $4,$6,-15718
or $1,$1,$3
nor $3,$1,$3
lhu $4,10($0)
srlv $1,$4,$3
subu $4,$5,$3
subu $4,$5,$3
lh $3,14($0)
sh $4,16($0)
addiu $3,$4,26122
sltiu $4,$2,-23190
subu $1,$0,$3
srl $5,$4,22
lh $5,2($0)
addiu $5,$3,-2069
lw $5,4($0)
lbu $6,6($0)
subu $3,$2,$3
sra $4,$0,4
sb $4,5($0)
lw $3,16($0)
sllv $1,$4,$3
sll $3,$5,14
srl $5,$6,22
lw $4,8($0)
lb $1,3($0)
sb $3,4($0)
or $4,$4,$3
and $4,$5,$3
andi $4,$3,41423
lhu $3,4($0)
subu $3,$3,$3
sh $5,8($0)
xor $1,$3,$3
nor $3,$5,$3
nor $6,$6,$3
subu $3,$3,$3
lbu $3,9($0)
srav $3,$4,$3
xor $3,$3,$3
slt $0,$0,$3
srlv $4,$3,$3
sw $3,4($0)
lh $3,6($0)
ori $0,$5,46184
lhu $3,10($0)
sll $3,$1,27
slt $5,$1,$3
xori $3,$4,41823
slt $5,$4,$3
andi $1,$5,30280
andi $3,$3,23733
and $4,$4,$3
subu $6,$6,$3
sra $3,$6,0
subu $1,$3,$3
sb $3,4($0)
subu $3,$5,$3
sra $4,$5,27
and $1,$3,$3
lb $0,1($0)
addiu $0,$6,-10407
sh $3,12($0)
lw $0,16($0)
xor $6,$3,$3
srlv $5,$3,$3
and $1,$5,$3
srav $3,$3,$3
sltiu $6,$3,5586
srlv $5,$5,$3
srlv $1,$3,$3
sll $1,$3,0
addu $0,$0,$3
lh $4,0($0)
sra $1,$4,11
ori $5,$1,22616
lh $1,12($0)
xor $5,$5,$3
subu $3,$5,$3
xori $3,$4,4246
srlv $3,$4,$3
subu $6,$5,$3
slti $4,$3,-23098
lh $4,0($0)
slti $3,$1,-21572
lb $1,16($0)
srav $3,$3,$3
sh $4,16($0)
addu $4,$6,$3
srl $5,$1,25
lb $6,8($0)
lbu $4,8($0)
xori $3,$3,19794
andi $0,$6,31420
slti $4,$5,25915
addiu $4,$4,10519
xori $3,$3,48919
xori $3,$3,61887
srav $1,$4,$3
sll $2,$2,5
subu $3,$3,$3
or $0,$1,$3
sltiu $0,$2,-15333
sllv $3,$3,$3
sra $4,$5,22
addiu $6,$4,-28944
subu $3,$5,$3
lb $1,11($0)
srlv $4,$4,$3
sltu $0,$4,$3
addiu $3,$5,-26599
sh $3,6($0)
slti $4,$3,-26790
andi $3,$2,21533
ori $6,$6,2980
andi $3,$4,6134
srlv $0,$6,$3
slt $4,$5,$3
addiu $3,$3,-32650
addiu $3,$6,17438
and $4,$4,$3
addiu $0,$4,2459
sltiu $6,$3,-30594
addiu $5,$3,382
slti $4,$1,-22243
sh $4,2($0)
andi $6,$6,6601
sh $4,6($0)
addiu $4,$5,-18147
sltiu $4,$3,-19962
addiu $4,$4,14591
slt $3,$5,$3
xor $5,$5,$3
xor $4,$1,$3
srlv $4,$5,$3
srav $3,$3,$3
sw $4,0($0)
srav $5,$5,$3
sltu $6,$6,$3
sb $4,6($0)
srav $4,$3,$3
sw $4,0($0)
srlv $3,$3,$3
xor $1,$3,$3
| 14.111361 | 18 | 0.522519 |
53607bc4d7ba25fba59720dcdf5eda5ed36ae891 | 7,453 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2241.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2241.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2241.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 %r13
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x6420, %r14
nop
nop
nop
nop
nop
dec %r9
movw $0x6162, (%r14)
nop
cmp $41278, %r10
lea addresses_D_ht+0x6d4e, %r13
nop
nop
nop
nop
nop
inc %r10
movb $0x61, (%r13)
nop
nop
nop
nop
nop
cmp $27183, %r10
lea addresses_WT_ht+0x2efc, %r9
nop
nop
xor $7515, %rbp
movups (%r9), %xmm7
vpextrq $0, %xmm7, %rcx
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x1b7fc, %r13
nop
nop
nop
nop
inc %r15
movl $0x61626364, (%r13)
xor %r9, %r9
lea addresses_D_ht+0xf6d4, %r15
nop
nop
nop
xor $50886, %r13
movw $0x6162, (%r15)
nop
nop
nop
nop
xor $32554, %r9
lea addresses_normal_ht+0xfd8, %rsi
lea addresses_D_ht+0xd1c, %rdi
clflush (%rsi)
nop
nop
nop
xor %r13, %r13
mov $15, %rcx
rep movsq
nop
and %r13, %r13
lea addresses_A_ht+0x1adc1, %rsi
lea addresses_normal_ht+0x19b7c, %rdi
nop
sub %r9, %r9
mov $3, %rcx
rep movsl
cmp %rsi, %rsi
lea addresses_WC_ht+0x1847c, %r13
nop
nop
nop
cmp %r15, %r15
vmovups (%r13), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rcx
nop
nop
cmp %rbp, %rbp
lea addresses_A_ht+0x143e8, %rdi
nop
cmp %rsi, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, (%rdi)
nop
nop
nop
nop
nop
dec %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rbx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_PSE+0x1a1e0, %r12
sub $35299, %rdx
mov (%r12), %esi
nop
nop
nop
nop
nop
add %r10, %r10
// Store
mov $0x3c, %rdi
nop
add %rbx, %rbx
movb $0x51, (%rdi)
nop
nop
nop
nop
nop
xor %r12, %r12
// Load
lea addresses_WC+0x15b8d, %rdi
nop
nop
nop
nop
xor %r12, %r12
mov (%rdi), %r13d
nop
xor $62331, %rdx
// Store
lea addresses_WT+0x1754c, %rsi
nop
nop
nop
nop
and $65409, %rdi
movw $0x5152, (%rsi)
nop
nop
nop
nop
nop
xor %rdi, %rdi
// Store
lea addresses_WC+0x37fc, %rsi
nop
nop
nop
nop
add $36931, %rdi
mov $0x5152535455565758, %r10
movq %r10, %xmm4
vmovups %ymm4, (%rsi)
nop
nop
dec %r10
// Faulty Load
lea addresses_WC+0x37fc, %rdi
nop
nop
nop
add $50048, %rdx
vmovups (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rsi
lea oracles, %r12
and $0xff, %rsi
shlq $12, %rsi
mov (%r12,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 31.987124 | 2,999 | 0.652221 |
0f7410753739d6a280f6e60456084b6207dbcb8e | 1,998 | asm | Assembly | programs/oeis/072/A072493.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/072/A072493.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/072/A072493.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A072493: a(1) = 1 and a(n) = ceiling((Sum_{k=1..n-1} a(k))/3) for n >= 2.
; 1,1,1,1,2,2,3,4,5,7,9,12,16,22,29,39,52,69,92,123,164,218,291,388,517,690,920,1226,1635,2180,2907,3876,5168,6890,9187,12249,16332,21776,29035,38713,51618,68824,91765,122353,163138,217517,290023,386697,515596,687461,916615,1222153,1629538,2172717,2896956,3862608,5150144,6866859,9155812,12207749,16276999,21702665,28936887,38582516,51443354,68591139,91454852,121939803,162586404,216781872,289042496,385389994,513853326,685137768,913517024,1218022698,1624030264,2165373686,2887164914,3849553219,5132737625,6843650167,9124866889,12166489186,16221985581,21629314108,28839085477,38452113970,51269485293,68359313724,91145751632,121527668843,162036891790,216049189054,288065585405,384087447207,512116596276,682822128368,910429504490,1213906005987,1618541341316,2158055121755,2877406829006,3836542438675,5115389918233,6820519890978,9094026521304,12125368695072,16167158260096,21556211013461,28741614684615,38322152912820,51096203883760,68128271845013,90837695793351,121116927724468,161489236965957,215318982621276,287091976828368,382789302437824,510385736583765,680514315445020,907352420593360,1209803227457814,1613070969943752,2150761293258336,2867681724344448,3823575632459264,5098100843279018,6797467791038691,9063290388051588
mov $4,$0
mov $5,$0
add $5,1
lpb $5
mov $0,$4
sub $5,1
sub $0,$5
mov $11,$0
mov $13,2
lpb $13
sub $13,1
add $0,$13
sub $0,1
mov $7,$0
mov $9,2
lpb $9
mov $0,$7
sub $9,1
add $0,$9
mov $2,$0
mov $3,1
lpb $2
sub $2,1
add $3,1
mul $3,2
div $3,3
mul $3,2
lpe
mov $6,$3
mov $10,$9
lpb $10
mov $8,$6
sub $10,1
lpe
lpe
lpb $7
mov $7,0
sub $8,$6
lpe
mov $6,$8
mov $14,$13
lpb $14
mov $12,$6
sub $14,1
lpe
lpe
lpb $11
mov $11,0
sub $12,$6
lpe
mov $6,$12
div $6,2
add $1,$6
lpe
| 34.448276 | 1,223 | 0.696697 |
129a088ff047ea43851c2ea5eadd862c6af11e38 | 1,564 | asm | Assembly | programs/oeis/184/A184969.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/184/A184969.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/184/A184969.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A184969: a(n) = [Pi]+[2*Pi]+...+[n*Pi], where []=floor.
; 3,9,18,30,45,63,84,109,137,168,202,239,279,322,369,419,472,528,587,649,714,783,855,930,1008,1089,1173,1260,1351,1445,1542,1642,1745,1851,1960,2073,2189,2308,2430,2555,2683,2814,2949,3087,3228,3372,3519,3669,3822,3979,4139,4302,4468,4637,4809,4984,5163,5345,5530,5718,5909,6103,6300,6501,6705,6912,7122,7335,7551,7770,7993,8219,8448,8680,8915,9153,9394,9639,9887,10138,10392,10649,10909,11172,11439,11709,11982,12258,12537,12819,13104,13393,13685,13980,14278,14579,14883,15190,15501,15815,16132,16452,16775,17101,17430,17763,18099,18438,18780,19125,19473,19824,20178,20536,20897,21261,21628,21998,22371,22747,23127,23510,23896,24285,24677,25072,25470,25872,26277,26685,27096,27510,27927,28347,28771,29198,29628,30061,30497,30936,31378,31824,32273,32725,33180,33638,34099,34563,35031,35502,35976,36453,36933,37416,37902,38392,38885,39381,39880,40382,40887,41395,41907,42422,42940,43461,43985,44512,45042,45576,46113,46653,47196,47742,48291,48843,49399,49958,50520,51085,51653,52224,52798,53376,53957,54541,55128,55718,56311,56907,57507,58110,58716,59325,59937,60552,61170,61792,62417,63045,63676,64310,64947,65587,66231,66878,67528,68181,68837,69496,70158,70824,71493,72165,72840,73518,74199,74883,75571,76262,76956,77653,78353,79056,79762,80471,81184,81900,82619,83341,84066,84794,85525,86260,86998,87739,88483,89230,89980,90733,91490,92250,93013,93779,94548,95320,96095,96874,97656,98441
mov $3,$0
add $3,1
lpb $3,1
add $4,1
mov $2,$4
sub $3,1
cal $2,22844 ; a(n) = floor(n*Pi).
add $1,$2
lpe
| 120.307692 | 1,389 | 0.78133 |
27360dc0501b015d2d94a9b0c9ca2b42854ea0d2 | 212 | asm | Assembly | data/pokemon/dex_entries/exeggcute.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | data/pokemon/dex_entries/exeggcute.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | data/pokemon/dex_entries/exeggcute.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | db "EGG@" ; species name
dw 104, 60 ; height, weight
db "If even one is"
next "separated from the"
next "group, the energy"
page "bond between the"
next "six will make them"
next "rejoin instantly.@"
| 19.272727 | 28 | 0.669811 |
f324a1355fae77e15cb11a20fad92b45d3f8bc98 | 942 | asm | Assembly | dd/rd/version.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | dd/rd/version.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | dd/rd/version.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; RAM DISK Version
section version
xdef rd_vmess
xdef rd_vmend
xdef rd_vers
; V2.02 Sub-directories added.
;
; V2.03 FS.MKDIR corrected.
;
; V2.04 Should have been the same as V2.05, but some 2.04 (non released
; versions) were the same as V2.03.
;
; V2.05 Underscore ignored at end of directory name.
; Length of ROOT directory corrected.
; New file has update date set even if not written to.
;
; V2.06 Delete from static RAM disk corrected.
;
; V2.07 Bug handling more than 127 files fixed.
;
; V2.08 Revised for FD changes to IOU.
;
; V2.09 Corrects occupancy error in V2.08.
;
; V2.10 IOF.XINF now returns block of 64 bytes NOT $64 (96) bytes
;
; V2.11 Make_dir error with multiple files open fixed.
;
rd_vers equ '2.11'
rd_vmess
dc.w 'RAM disk V'
dc.l rd_vers
dc.b ' ',$a
rd_vmend
ds.w 0
end
| 23.55 | 73 | 0.613588 |
78e7129a584f3e2e58e79e35db33f6db02539ba5 | 1,753 | asm | Assembly | boot/boot.asm | crgimenes/bug-free-spoon | 0eb925756c1b46bba52ad18b47689e71623f35ec | [
"BSD-3-Clause"
] | 1 | 2021-07-18T18:11:02.000Z | 2021-07-18T18:11:02.000Z | boot/boot.asm | crgimenes/bug-free-spoon | 0eb925756c1b46bba52ad18b47689e71623f35ec | [
"BSD-3-Clause"
] | null | null | null | boot/boot.asm | crgimenes/bug-free-spoon | 0eb925756c1b46bba52ad18b47689e71623f35ec | [
"BSD-3-Clause"
] | null | null | null | %define segment 0x0
%define init_stack 0x7C00
%define bpb_size 0x21 ; BIOS Parameter Block size
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
org 0x7C00
bits 16
bpb: ; Bios parameter Block
jmp short start
nop
times bpb_size db 0
start:
jmp segment:main
main:
cli ; clear interrupts
mov bx, segment ; adjust segments
mov es, bx
mov ds, bx
mov ss, bx ; zero stack segment
mov sp, init_stack ; set stack pointer
sti ; enable interrupts
; -------------------------------
mov si, stage1msg
call print16
; -------------------------------
.load_protected:
cli
lgdt[gdt_descriptor]
mov eax, cr0
or eax, 0x1
mov cr0, eax
jmp CODE_SEG:load32
print16:
xor bx, bx
mov ah, 0x0E
.loop:
lodsb
cmp al, 0
je .end
int 0x10
jmp .loop
.end:
ret
gdt_start:
gdt_null:
dd 0x0
dd 0x0
gdt_code: ; cs registor should point to gdt_code
dw 0xFFFF ; segment limit first 0-15 bits
dw 0x0 ; base 0-15 bits
db 0x0 ; base 16-23 bits
db 10011010b ; access byte
db 11001111b ; bit flags
db 0x0 ; base 24-31 bits
gdt_data: ; register ds, es, fs, gs, ss
dw 0xFFFF ; segment limit first 0-15 bits
dw 0x0 ; base 0-15 bits
db 0x0 ; base 16-23 bits
db 10010010b ; access byte
db 11001111b ; bit flags
db 0x0 ; base 24-31 bits
gdt_end:
gdt_descriptor:
dw gdt_end - gdt_start - 1 ; size of GDT table
dd gdt_start
stage1msg: db "stage 1", 13, 10, 0
[bits 32]
load32:
mov ax, DATA_SEG
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov ebp, 0x00200000
mov esp, ebp
; enable A20 gate
in al, 0x92
or al, 0x2
out 0x92, al
; halt
jmp $
times 510-($-$$) db 0
dw 0xAA55
| 16.383178 | 51 | 0.622932 |
2cc3ee40d8a1662e74780231c316c3b6cf0d5005 | 544 | asm | Assembly | programs/oeis/133/A133654.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/133/A133654.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/133/A133654.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A133654: a(n) = 2*A000129(n) - 1.
; 1,3,9,23,57,139,337,815,1969,4755,11481,27719,66921,161563,390049,941663,2273377,5488419,13250217,31988855,77227929,186444715,450117361,1086679439,2623476241,6333631923,15290740089,36915112103,89120964297,215157040699,519435045697,1254027132095,3027489309889,7309005751875,17645500813641,42600007379159,102845515571961,248291038523083,599427592618129,1447146223759343,3493720040136817,8434586304032979
add $0,2
lpb $0,1
sub $0,1
trn $1,$2
mov $2,$1
add $1,$3
add $2,1
add $3,1
add $3,$1
lpe
| 38.857143 | 403 | 0.784926 |
cf1bafbad7da6bf27781413f541b948ef70b5e2c | 615 | asm | Assembly | oeis/171/A171758.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/171/A171758.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/171/A171758.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A171758: Binary expansion of numbers in A171757.
; 10,100,1000,1010,10000,10010,10100,10110,100000,100010,100100,100110,101000,101010,101100,101110,1000000,1000010,1000100,1000110,1001000,1001010,1001100,1001110,1010000,1010010,1010100,1010110,1011000,1011010,1011100,1011110,10000000,10000010,10000100,10000110,10001000,10001010,10001100,10001110,10010000,10010010,10010100,10010110,10011000,10011010,10011100,10011110,10100000,10100010,10100100,10100110,10101000,10101010,10101100,10101110,10110000,10110010,10110100,10110110,10111000,10111010
mul $0,2
trn $0,1
seq $0,123001 ; Binary numbers that start 10...
| 87.857143 | 496 | 0.84065 |
2a6a9a8ec13a2bc891f94082ea1768eabb2891b9 | 1,601 | asm | Assembly | src/utils/interpreter.asm | Quatroctus/Startaste | 0a51f573d8db67e021f61a863fc84f43328312eb | [
"MIT"
] | 1 | 2019-02-18T23:37:48.000Z | 2019-02-18T23:37:48.000Z | src/utils/interpreter.asm | Quatroctus/Startaste | 0a51f573d8db67e021f61a863fc84f43328312eb | [
"MIT"
] | 4 | 2018-05-02T01:58:07.000Z | 2021-04-15T05:37:10.000Z | src/utils/interpreter.asm | Quatroctus/Startaste | 0a51f573d8db67e021f61a863fc84f43328312eb | [
"MIT"
] | 1 | 2021-04-14T23:57:45.000Z | 2021-04-14T23:57:45.000Z | ; Interpreter routines for Protected Mode
; ============================================ ;
; Run Interpreter Routine
; Arguments: bl: Row
; Outputs: bl: New Row, dl: Column (0)
; ============================================ ;
interpreter_run:
push ecx
.get:
mov dl, 0
call string_get_row
mov cl, 0x20
call string_strip
call string_lowercase
.parse:
.run_command:
mov di, interrupter_COMMANDS_run_command
call string_compare
cmp ax, 1
jne .help_command
; this is almost like a custom-.done label
pop ecx
mov eax, 0x00000002
mov ah, bl
push eax
; then move the cursor to the next row
inc bl
mov dl, 0
call graphics_move_cursor
jmp 08h:kernel_end
.help_command:
mov di, interrupter_COMMANDS_help_command
call string_compare
cmp ax, 1
jne .quit_command
mov si, interrupter_MSGS_help
mov eax, 1
jmp .display
.quit_command:
mov di, interrupter_COMMANDS_quit_command
call string_compare
cmp ax, 1
jne .no_display
mov eax, 0
jmp kernel_quit
.display:
inc bl
call graphics_print_string
.no_display:
inc bl
mov si, COMMAND_MSG
call graphics_print_string
mov dl, 1
.done:
pop ecx
ret
interrupter_COMMANDS_help_command db 'help', 0
interrupter_COMMANDS_quit_command db 'quit', 0
interrupter_COMMANDS_run_command db 'run', 0
interrupter_COMMANDS_debug_command db 'debug', 0
interrupter_MSGS_help db 'HELP: shows this help message. QUIT: hangs kernel.', 0
interrupter_MSGS_debug db 'DEBUG', 0
| 23.202899 | 80 | 0.645222 |
d4ba5d38fbcf9abb7ccd605312ccb345e777d664 | 568 | asm | Assembly | oeis/326/A326305.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/326/A326305.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/326/A326305.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A326305: Dirichlet g.f.: zeta(s-1) * (1 - 2^(-s)) / zeta(s).
; Submitted by Jamie Morken(s4)
; 1,0,2,1,4,0,6,2,6,0,10,2,12,0,8,4,16,0,18,4,12,0,22,4,20,0,18,6,28,0,30,8,20,0,24,6,36,0,24,8,40,0,42,10,24,0,46,8,42,0,32,12,52,0,40,12,36,0,58,8,60,0,36,16,48,0,66,16,44,0,70,12,72,0,40,18,60,0,78,16,54,0,82,12,64,0,56,20,88,0,72,22,60,0,72,16,96,0,60,20
mov $1,$0
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
seq $1,319998 ; a(n) = Sum_{d|n, d is even} mu(n/d)*d, where mu(n) is Moebius function A008683.
sub $1,$0
sub $0,$1
div $0,2
| 51.636364 | 258 | 0.614437 |
5f4b2d0bc5fc35696ea8ca25212bd82a2115ac6c | 2,408 | asm | Assembly | Driver/Printer/HP/Test/testDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/HP/Test/testDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/HP/Test/testDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Test Printer Driver
FILE: testDriverInfo.asm
AUTHOR: Don Reeves, Jul 10, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
don 7/10/94 Initial revision
DESCRIPTION:
Driver info for the test printer driver
$Id: testDriverInfo.asm,v 1.1 97/04/18 11:52:32 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Driver Info Resource
This part of the file contains the information that pertains to
all device supported by the driver. It includes device names and
a table of the resource handles for the specific device info. A
pointer to this info is provided by the DriverInfo function.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DriverInfo segment lmem LMEM_TYPE_GENERAL
;----------------------------------------------------------------------------
; Device Enumerations
;----------------------------------------------------------------------------
DefPrinter PD_HP_DESKJET, "Test Printer (DeskJet)", testInfo
;----------------------------------------------------------------------------
; Driver Info Header
;----------------------------------------------------------------------------
DriverExtendedInfoTable <
{}, ; lmem hdr
PrintDevice/2, ; # devices
offset deviceStrings, ; devices
offset deviceInfoTab ; info blocks
>
PrintDriverInfo < 30, ;device timout
PR_RESEND, ;
isoSubstitutions, ;ISO sub tab.
asciiTransTable,
PDT_PRINTER,
TRUE
>
;----------------------------------------------------------------------------
; Device String Table and Strings
;----------------------------------------------------------------------------
isoSubstitutions chunk.word 0ffffh ;no ISO subs.
; ASCII Translation List for Foreign Language Versions
asciiTransTable chunk.char ";;",0
;create the tables...
PrinterTables
DriverInfo ends
| 31.272727 | 79 | 0.416113 |
31bf7e82aa05ac016a4034c4f32c0bfe00892eed | 1,563 | asm | Assembly | src/test/ref/struct-19.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/test/ref/struct-19.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/test/ref/struct-19.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | // Minimal struct with C-Standard behavior - struct containing struct with assignment of sub-struct
// Commodore 64 PRG executable file
.file [name="struct-19.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.const SIZEOF_STRUCT_VECTOR = 4
.const SIZEOF_STRUCT_POINT = 2
.const OFFSET_STRUCT_VECTOR_Q = 2
.const OFFSET_STRUCT_POINT_Y = 1
.label SCREEN = $400
.segment Code
main: {
.label v = 2
.label p1 = 6
.label p2 = 8
// __ma struct Vector v
ldy #SIZEOF_STRUCT_VECTOR
lda #0
!:
dey
sta v,y
bne !-
// __ma struct Point p1 = { 2, 3 }
ldy #SIZEOF_STRUCT_POINT
!:
lda __0-1,y
sta p1-1,y
dey
bne !-
// __ma struct Point p2 = { 4, 5 }
ldy #SIZEOF_STRUCT_POINT
!:
lda __1-1,y
sta p2-1,y
dey
bne !-
// v.p = p1
ldy #SIZEOF_STRUCT_POINT
!:
lda p1-1,y
sta v-1,y
dey
bne !-
// v.q = p2
ldy #SIZEOF_STRUCT_POINT
!:
lda p2-1,y
sta v+OFFSET_STRUCT_VECTOR_Q-1,y
dey
bne !-
// SCREEN[0] = v.p.x
lda.z v
sta SCREEN
// SCREEN[1] = v.p.y
lda.z v+OFFSET_STRUCT_POINT_Y
sta SCREEN+1
// SCREEN[2] = v.q.x
lda.z v+OFFSET_STRUCT_VECTOR_Q
sta SCREEN+2
// SCREEN[3] = v.q.y
lda.z v+OFFSET_STRUCT_VECTOR_Q+OFFSET_STRUCT_POINT_Y
sta SCREEN+3
// }
rts
}
.segment Data
__0: .byte 2, 3
__1: .byte 4, 5
| 21.410959 | 99 | 0.611644 |
86888ec3519e0ad3d72a46ab83da8ea3bdf28089 | 6,216 | asm | Assembly | compiler/ti-cgt-arm_18.12.4.LTS/lib/src/setjmp32.asm | JosiahCraw/TI-Arm-Docker | 23c0f4caf1638512bf53241531c69289c4e82488 | [
"MIT"
] | null | null | null | compiler/ti-cgt-arm_18.12.4.LTS/lib/src/setjmp32.asm | JosiahCraw/TI-Arm-Docker | 23c0f4caf1638512bf53241531c69289c4e82488 | [
"MIT"
] | null | null | null | compiler/ti-cgt-arm_18.12.4.LTS/lib/src/setjmp32.asm | JosiahCraw/TI-Arm-Docker | 23c0f4caf1638512bf53241531c69289c4e82488 | [
"MIT"
] | null | null | null | ;******************************************************************************
;* SETJMP - 32 BIT STATE - *
;* *
;* Copyright (c) 1996 Texas Instruments Incorporated *
;* http://www.ti.com/ *
;* *
;* 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. *
;* *
;******************************************************************************
;****************************************************************************
;* setjmp
;*
;* C syntax : int setjmp(jmp_buf env)
;*
;* Function : Save callers current environment for a subsequent
;* call to longjmp. Return 0.
;*
;* The context save area is organized as follows:
;*
;* env --> .long V1
;* .long V2
;* .long V3
;* .long V4
;* .long V5
;* .long V6
;* .long V7
;* .long V8
;* .long SP
;* .long LR
;*
;****************************************************************************
;*
;* NOTE : ANSI specifies that "setjmp.h" declare "setjmp" as a macro.
;*
;* In the TIABI implementation, the setjmp macro calls a function
;* "_setjmp". However, since the user may not include "setjmp.h",
;* we provide two entry-points to this function.
;*
;* In the EABI implementation, the setjmp macro calls a function
;* "setjmp". No alternate entry point is provided.
;*
;* (Note: Due to the incorrect definition of the "setjmp" macro
;* introduced in 4.4.x [CQ24877], object files generated by the TI
;* compiler for modules which call setjmp in EABI mode refer to a
;* symbol named "_setjmp". For this reason, we must leave in the
;* alternate entry point for EABI mode. The alternate entry point
;* should be removed in 5.x)
;*
;****************************************************************************
.arm
.if __TI_EABI_ASSEMBLER
.asg setjmp, __TI_SETJMP
.asg _setjmp, __TI__SETJMP
.else
.clink
.asg _setjmp, __TI_SETJMP
.asg __setjmp, __TI__SETJMP
.endif
.if __TI_ARM9ABI_ASSEMBLER | __TI_EABI_ASSEMBLER
.armfunc __TI_SETJMP, __TI__SETJMP
.else
.global $setjmp
.global $_setjmp
.thumb
$setjmp:
$_setjmp:
BX PC
NOP
.arm
.endif
.global __TI_SETJMP, __TI__SETJMP
__TI_SETJMP: .asmfunc stack_usage(0)
__TI__SETJMP:
STMIA A1!, {V1 - V8, SP, LR}
.if __TI_NEON_SUPPORT__
VSTMIA {D8 - D15}, A1!
.elseif __TI_VFP_SUPPORT__
FSTMIAD A1!, {D8 - D15}
.endif
MOV A1,#0
BX LR
.endasmfunc
;****************************************************************************
;* longjmp
;*
;* C syntax : void longjmp(jmp_buf env, int val)
;*
;* Function : Restore the context contained in the jump buffer.
;* This causes an apparent "2nd return" from the
;* setjmp invocation which built the "env" buffer.
;* This return appears to return "returnvalue".
;* NOTE: This function may not return 0.
;****************************************************************************
.if __TI_EABI_ASSEMBLER
.asg longjmp, __TI_LONGJMP
.else
.clink
.asg _longjmp, __TI_LONGJMP
.endif
.if __TI_ARM9ABI_ASSEMBLER | __TI_EABI_ASSEMBLER
.armfunc __TI_LONGJMP
.else
.global $longjmp
.thumb
$longjmp:
BX PC
NOP
.arm
.endif
.global __TI_LONGJMP
__TI_LONGJMP: .asmfunc stack_usage(0)
LDMIA A1!, {V1 - V8, SP, LR}
.if __TI_NEON_SUPPORT__
VLDMIA {D8 - D15}, A1!
.elseif __TI_VFP_SUPPORT__
FLDMIAD A1!, {D8 - D15}
.endif
CMP A2, #0
MOVEQ A1, #1
MOVNE A1, A2
BX LR
.endasmfunc
.end
| 37.672727 | 79 | 0.486647 |
8c109b73908f2d62d2f1c2168fba6d2211a2b00c | 493 | asm | Assembly | Examples/ch04/SumArray.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | Examples/ch04/SumArray.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | Examples/ch04/SumArray.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | TITLE Summing an Array (SumArray.asm)
; This program sums an array of words.
; Last update: 2/1/02
INCLUDE Irvine32.inc
.data
intarray WORD 100h,200h,300h,400h
.code
main PROC
mov edi,OFFSET intarray ; address of intarray
mov ecx,LENGTHOF intarray ; loop counter
mov ax,0 ; zero the accumulator
L1:
add ax,[edi] ; add an integer
add edi,TYPE intarray ; point to next integer
loop L1 ; repeat until ECX = 0
exit
main ENDP
END main | 20.541667 | 52 | 0.663286 |
cf8da389400e455250b853cffc7c9995b8c8e071 | 1,284 | asm | Assembly | programs/oeis/164/A164540.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/164/A164540.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/164/A164540.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A164540: a(n) = 4*a(n-1) + 4*a(n-2) for n > 1; a(0) = 1, a(1) = 14.
; 1,14,60,296,1424,6880,33216,160384,774400,3739136,18054144,87173120,420909056,2032328704,9812951040,47381118976,228776280064,1104629596160,5333623504896,25753012404224,124346543636480,600398224162816,2898979071197184,13997509181440000,67585953010548736,326333848767954944,1575679207114014720,7608052223527878656,36734925722567573504,177371911784381808640,856427350027797528576,4135197047248717348864,19966497589106059509760,96406778545419107434496,465493104538100667777024,2247599532334079100846080,10852370547488719074492416,52399880319291192701353984,253009003467119647103385600,1221635535145643359218958336,5898578154451052025289375744,28480854758386781538033336320,137517731651351334253290848256,663994345638952463165296738304,3206048309161215189674350346240,15480170619200670611358588338176,74744875713447543204131754737664,360900185330592855261961372303360,1742580244176161593864372508164096,8413921718027017796505335521869824,40626007848812717561478832120135680,196159718267358941431936670568022016,947142904464686635973662010752630784
mov $1,1
lpb $0
sub $0,1
add $1,1
mov $2,2
trn $3,1
add $2,$3
add $3,$2
add $2,2
mul $2,2
add $3,$1
add $3,$1
mov $1,$3
add $1,$2
lpe
mov $0,$1
| 64.2 | 1,044 | 0.853583 |
cfe38911ebd6ed98bc180f37b075e31f8088438c | 70,488 | asm | Assembly | SNesoid/sneslib_comp/i386/fxemu2c.asm | Pretz/SNesoid | a9381085e07c5aabbe8e371854d579fede0893ae | [
"Xnet",
"X11"
] | 17 | 2015-01-19T05:33:25.000Z | 2021-10-05T23:24:33.000Z | snes9x/src/main/cpp/sneslib/i386/fxemu2c.asm | CharlesNascimento/K-SNES | 10f97fdf28e647b484a68aecd1387ec549290c62 | [
"MIT"
] | 5 | 2015-01-19T09:24:55.000Z | 2019-08-09T18:55:58.000Z | SNesoid/sneslib_comp/i386/fxemu2c.asm | Pretz/SNesoid | a9381085e07c5aabbe8e371854d579fede0893ae | [
"Xnet",
"X11"
] | 22 | 2015-01-17T00:24:52.000Z | 2021-08-13T02:51:30.000Z | ;Copyright (C) 1997-2001 ZSNES Team ( zsknight@zsnes.com / _demo_@zsnes.com )
;
;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either
;version 2 of the License, or (at your option) any later
;version.
;
;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;
;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%include "i386/macros.mac"
EXTSYM FXEndLoop,FlushCache,FxOp02,FxTable,FxTableb,FxTablec,FxTabled
EXTSYM NumberOfOpcodes,SfxB,SfxCBR,SfxCFGR,SfxCOLR,SfxCPB,SfxCROM
EXTSYM SfxCacheActive,SfxCarry,SfxLastRamAdr,SfxMemTable,SfxOverflow
EXTSYM SfxPBR,SfxPIPE,SfxPOR,SfxR0,SfxR1,SfxR11,SfxR12,SfxR13,SfxR14
EXTSYM SfxR15,SfxR2,SfxR4,SfxR6,SfxR7,SfxR8,SfxRAMBR,SfxRAMMem,SfxROMBR
EXTSYM SfxRomBuffer,SfxSCBR,SfxSCMR,SfxSFR,SfxSignZero,SfxnRamBanks,flagnz
EXTSYM sfx128lineloc,sfx160lineloc,sfx192lineloc,sfxobjlineloc,sfxramdata
EXTSYM withr15sk,sfxclineloc,SCBRrel,ChangeOps
EXTSYM fxbit01pcal,fxbit23pcal,fxbit45pcal,fxbit67pcal
EXTSYM fxbit01,fxbit23,fxbit45,fxbit67
EXTSYM fxxand
EXTSYM PLOTJmpa,PLOTJmpb
NEWSYM FxEmu2CAsmStart
%include "i386/fxemu2.mac"
%include "i386/fxemu2b.mac"
%include "i386/fxemu2c.mac"
SECTION .text ;ALIGN=32
ALIGN32
NEWSYM FxOpd00 ; STOP stop GSU execution (and maybe generate an IRQ) ; Verified.
FETCHPIPE
mov [SfxPIPE],cl
and dword [SfxSFR],0FFFFh-32 ; Clear Go flag (set to 1 when the GSU is running)
test dword [SfxCFGR],080h ; Check if the interrupt generation is on
jnz .NoIRQ
or dword [SfxSFR],08000h ; Set IRQ Flag
.NoIRQ
CLRFLAGS
inc ebp
mov eax,[NumberOfOpcodes]
add eax,0F0000000h
add [ChangeOps],eax
mov dword [NumberOfOpcodes],1
jmp FXEndLoop
FXReturn
NEWSYM FxOpd01 ; NOP no operation ; Verified.
FETCHPIPE
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
NEWSYM FxOpd02 ; CACHE reintialize GSU cache
mov eax,ebp
FETCHPIPE
sub eax,[SfxCPB]
and eax,0FFF0h
cmp dword [SfxCBR],eax
je .SkipUpdate
cmp byte [SfxCacheActive],1
je .SkipUpdate
mov dword [SfxCBR],eax
mov dword [SfxCacheActive],1
call FlushCache
.SkipUpdate
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
NEWSYM FxOpd03 ; LSR logic shift right ; Verified.
mov eax,[esi] ; Read Source
FETCHPIPE
mov [SfxCarry],al
and byte[SfxCarry],1
shr ax,1 ; logic shift right
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov dword [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd04 ; ROL rotate left (RCL?) ; V
shr byte[SfxCarry],1
mov eax,[esi] ; Read Source
FETCHPIPE
rcl ax,1
rcl byte[SfxCarry],1
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd05 ; BRA branch always ; Verified.
movsx eax,byte[ebp]
mov cl,[ebp+1]
inc ebp
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd06 ; BGE branch on greater or equals ; Verified.
movsx eax,byte[ebp]
mov ebx,[SfxSignZero]
shr ebx,15
inc ebp
xor bl,[SfxOverflow]
mov cl,[ebp]
test bl,01h
jnz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd07 ; BLT branch on lesss than ; Verified.
movsx eax,byte[ebp]
mov ebx,[SfxSignZero]
shr ebx,15
inc ebp
xor bl,[SfxOverflow]
mov cl,[ebp]
test bl,01h
jz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd08 ; BNE branch on not equal ; Verified.
movsx eax,byte[ebp]
inc ebp
test dword[SfxSignZero],0FFFFh
mov cl,[ebp]
jz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd09 ; BEQ branch on equal (z=1) ; Verified.
movsx eax,byte[ebp]
inc ebp
test dword[SfxSignZero],0FFFFh
mov cl,[ebp]
jnz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0A ; BPL branch on plus ; Verified.
movsx eax,byte[ebp]
inc ebp
test dword[SfxSignZero],088000h
mov cl,[ebp]
jnz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0B ; BMI branch on minus ; Verified.
movsx eax,byte[ebp]
inc ebp
test dword[SfxSignZero],088000h
mov cl,[ebp]
jz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0C ; BCC branch on carry clear ; Verified.
movsx eax,byte[ebp]
inc ebp
test byte[SfxCarry],01h
mov cl,[ebp]
jnz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0D ; BCS branch on carry set ; Verified.
movsx eax,byte[ebp]
inc ebp
test byte[SfxCarry],01h
mov cl,[ebp]
jz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0E ; BVC branch on overflow clear ; Verified.
movsx eax,byte[ebp]
inc ebp
test byte[SfxOverflow],01h
mov cl,[ebp]
jnz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd0F ; BVS branch on overflow set ; Verified.
movsx eax,byte[ebp]
inc ebp
test byte[SfxOverflow],01h
mov cl,[ebp]
jz .nojump
add ebp,eax
call [FxTable+ecx*4]
FXReturn2
.nojump
inc ebp
call [FxTable+ecx*4]
FXReturn2
NEWSYM FxOpd10 ; TO RN set register n as destination register
TORNd 0
NEWSYM FxOpd11 ; TO RN set register n as destination register
TORNd 1
NEWSYM FxOpd12 ; TO RN set register n as destination register
TORNd 2
NEWSYM FxOpd13 ; TO RN set register n as destination register
TORNd 3
NEWSYM FxOpd14 ; TO RN set register n as destination register
TORNd 4
NEWSYM FxOpd15 ; TO RN set register n as destination register
TORNd 5
NEWSYM FxOpd16 ; TO RN set register n as destination register
TORNd 6
NEWSYM FxOpd17 ; TO RN set register n as destination register
TORNd 7
NEWSYM FxOpd18 ; TO RN set register n as destination register
TORNd 8
NEWSYM FxOpd19 ; TO RN set register n as destination register
TORNd 9
NEWSYM FxOpd1A ; TO RN set register n as destination register
TORNd 10
NEWSYM FxOpd1B ; TO RN set register n as destination register
TORNd 11
NEWSYM FxOpd1C ; TO RN set register n as destination register
TORNd 12
NEWSYM FxOpd1D ; TO RN set register n as destination register
TORNd 13
NEWSYM FxOpd1E ; TO RN set register n as destination register
FETCHPIPE
mov edi,SfxR0+14*4
inc ebp
call [FxTable+ecx*4]
mov edi,SfxR0
UpdateR14
FXReturn
NEWSYM FxOpd1F ; TO RN set register n as destination register
FETCHPIPE
mov edi,SfxR0+15*4
inc ebp
call [FxTable+ecx*4]
mov ebp,[SfxCPB]
add ebp,[SfxR15]
mov edi,SfxR0
FXReturn
NEWSYM FxOpd20 ; WITH set register n as source and destination register
WITHc 0
NEWSYM FxOpd21 ; WITH set register n as source and destination register
WITHc 1
NEWSYM FxOpd22 ; WITH set register n as source and destination register
WITHc 2
NEWSYM FxOpd23 ; WITH set register n as source and destination register
WITHc 3
NEWSYM FxOpd24 ; WITH set register n as source and destination register
WITHc 4
NEWSYM FxOpd25 ; WITH set register n as source and destination register
WITHc 5
NEWSYM FxOpd26 ; WITH set register n as source and destination register
WITHc 6
NEWSYM FxOpd27 ; WITH set register n as source and destination register
WITHc 7
NEWSYM FxOpd28 ; WITH set register n as source and destination register
WITHc 8
NEWSYM FxOpd29 ; WITH set register n as source and destination register
WITHc 9
NEWSYM FxOpd2A ; WITH set register n as source and destination register
WITHc 10
NEWSYM FxOpd2B ; WITH set register n as source and destination register
WITHc 11
NEWSYM FxOpd2C ; WITH set register n as source and destination register
WITHc 12
NEWSYM FxOpd2D ; WITH set register n as source and destination register
WITHc 13
NEWSYM FxOpd2E ; WITH set register n as source and destination register
FETCHPIPE
mov esi,SfxR0+14*4
mov edi,SfxR0+14*4
mov dword [SfxB],1
inc ebp
call [FxTablec+ecx*4]
mov dword [SfxB],0 ; Clear B Flag
mov esi,SfxR0
mov edi,SfxR0
UpdateR14
FXReturn
NEWSYM FxOpd2F ; WITH set register n as source and destination register
FETCHPIPE
mov esi,SfxR0+15*4
mov edi,SfxR0+15*4
mov dword [SfxB],1
inc ebp
mov eax,ebp
sub eax,[SfxCPB]
mov dword[withr15sk],0
mov [SfxR15],eax
call [FxTableb+ecx*4]
cmp dword[withr15sk],1
je .skip
mov ebp,[SfxCPB]
add ebp,[SfxR15]
.skip
mov dword [SfxB],0 ; Clear B Flag
mov esi,SfxR0
mov edi,SfxR0
FXReturn
NEWSYM FxOpd30 ; STW RN store word
STWRNc 0
NEWSYM FxOpd31 ; STW RN store word
STWRNc 1
NEWSYM FxOpd32 ; STW RN store word
STWRNc 2
NEWSYM FxOpd33 ; STW RN store word
STWRNc 3
NEWSYM FxOpd34 ; STW RN store word
STWRNc 4
NEWSYM FxOpd35 ; STW RN store word
STWRNc 5
NEWSYM FxOpd36 ; STW RN store word
STWRNc 6
NEWSYM FxOpd37 ; STW RN store word
STWRNc 7
NEWSYM FxOpd38 ; STW RN store word
STWRNc 8
NEWSYM FxOpd39 ; STW RN store word
STWRNc 9
NEWSYM FxOpd3A ; STW RN store word
STWRNc 10
NEWSYM FxOpd3B ; STW RN store word
STWRNc 11
NEWSYM FxOpd30A1 ; STB RN store byte
STBRNc 0
NEWSYM FxOpd31A1 ; STB RN store byte
STBRNc 1
NEWSYM FxOpd32A1 ; STB RN store byte
STBRNc 2
NEWSYM FxOpd33A1 ; STB RN store byte
STBRNc 3
NEWSYM FxOpd34A1 ; STB RN store byte
STBRNc 4
NEWSYM FxOpd35A1 ; STB RN store byte
STBRNc 5
NEWSYM FxOpd36A1 ; STB RN store byte
STBRNc 6
NEWSYM FxOpd37A1 ; STB RN store byte
STBRNc 7
NEWSYM FxOpd38A1 ; STB RN store byte
STBRNc 8
NEWSYM FxOpd39A1 ; STB RN store byte
STBRNc 9
NEWSYM FxOpd3AA1 ; STB RN store byte
STBRNc 10
NEWSYM FxOpd3BA1 ; STB RN store byte
STBRNc 11
NEWSYM FxOpd3C ; LOOP decrement loop counter, and branch on not zero ; V
dec word [SfxR12] ; decrement loop counter
FETCHPIPE
mov eax,[SfxR12]
mov [SfxSignZero],eax
or eax,eax
jz .NoBranch
mov eax,dword [SfxR13]
mov ebp,[SfxCPB]
add ebp,eax
CLRFLAGS
FXReturn
.NoBranch
inc ebp
CLRFLAGS
FXReturn
NEWSYM FxOpd3D ; ALT1 set alt1 mode ; Verified.
FETCHPIPE
mov dword [SfxB],0
or ch,01h
inc ebp
call [FxTable+ecx*4]
xor ch,ch
FXReturn
NEWSYM FxOpd3E ; ALT2 set alt1 mode ; Verified.
FETCHPIPE
mov dword [SfxB],0
or ch,02h
inc ebp
call [FxTable+ecx*4]
xor ch,ch
FXReturn
NEWSYM FxOpd3F ; ALT3 set alt3 mode ; Verified.
FETCHPIPE
mov dword [SfxB],0
or ch,03h
inc ebp
call [FxTable+ecx*4]
xor ch,ch
FXReturn
NEWSYM FxOpd40 ; LDW RN load word from RAM
LDWRNc 0
NEWSYM FxOpd41 ; LDW RN load word from RAM
LDWRNc 1
NEWSYM FxOpd42 ; LDW RN load word from RAM
LDWRNc 2
NEWSYM FxOpd43 ; LDW RN load word from RAM
LDWRNc 3
NEWSYM FxOpd44 ; LDW RN load word from RAM
LDWRNc 4
NEWSYM FxOpd45 ; LDW RN load word from RAM
LDWRNc 5
NEWSYM FxOpd46 ; LDW RN load word from RAM
LDWRNc 6
NEWSYM FxOpd47 ; LDW RN load word from RAM
LDWRNc 7
NEWSYM FxOpd48 ; LDW RN load word from RAM
LDWRNc 8
NEWSYM FxOpd49 ; LDW RN load word from RAM
LDWRNc 9
NEWSYM FxOpd4A ; LDW RN load word from RAM
LDWRNc 10
NEWSYM FxOpd4B ; LDW RN load word from RAM
LDWRNc 11
NEWSYM FxOpd40A1 ; LDB RN load byte from RAM
LDBRNc 0
NEWSYM FxOpd41A1 ; LDB RN load byte from RAM
LDBRNc 1
NEWSYM FxOpd42A1 ; LDB RN load byte from RAM
LDBRNc 2
NEWSYM FxOpd43A1 ; LDB RN load byte from RAM
LDBRNc 3
NEWSYM FxOpd44A1 ; LDB RN load byte from RAM
LDBRNc 4
NEWSYM FxOpd45A1 ; LDB RN load byte from RAM
LDBRNc 5
NEWSYM FxOpd46A1 ; LDB RN load byte from RAM
LDBRNc 6
NEWSYM FxOpd47A1 ; LDB RN load byte from RAM
LDBRNc 7
NEWSYM FxOpd48A1 ; LDB RN load byte from RAM
LDBRNc 8
NEWSYM FxOpd49A1 ; LDB RN load byte from RAM
LDBRNc 9
NEWSYM FxOpd4AA1 ; LDB RN load byte from RAM
LDBRNc 10
NEWSYM FxOpd4BA1 ; LDB RN load byte from RAM
LDBRNc 11
NEWSYM FxOpd4C1284b ; PLOT 4bit
plotlines4bb plotb
NEWSYM FxOpd4C1284bz ; PLOT 4bit, zero check
plotlines4bb plotbz
NEWSYM FxOpd4C1284bd ; PLOT 4bit, dither
plotlines4bb plotbd
NEWSYM FxOpd4C1284bzd ; PLOT 4bit, zero check + dither
plotlines4bb plotbzd
NEWSYM FxOpd4C1282b ; PLOT 2bit
plotlines2bb plotb
NEWSYM FxOpd4C1282bz ; PLOT 2bit, zero check
plotlines2bb plotbz
NEWSYM FxOpd4C1282bd ; PLOT 2bit, dither
plotlines2bb plotbd
NEWSYM FxOpd4C1282bzd ; PLOT 2bit, zero check + dither
plotlines2bb plotbzd
NEWSYM FxOpd4C1288b ; PLOT 8bit
plotlines8bb plotb
NEWSYM FxOpd4C1288bz ; PLOT 8bit, zero check
plotlines8bb plotbz
NEWSYM FxOpd4C1288bd ; PLOT 8bit, dither
plotlines8bb plotb
NEWSYM FxOpd4C1288bzd ; PLOT 8bit, zero check + dither
plotlines8bb plotbz
NEWSYM FxOpd4C1288bl ; PLOT 8bit
plotlines8bbl plotb
NEWSYM FxOpd4C1288bzl ; PLOT 8bit, zero check
plotlines8bbl plotbz
NEWSYM FxOpd4C1288bdl ; PLOT 8bit, dither
plotlines8bbl plotb
NEWSYM FxOpd4C1288bzdl ; PLOT 8bit, zero check + dither
plotlines8bbl plotbz
NEWSYM FxOpd4C ; PLOT plot pixel with R1,R2 as x,y and the color register as the color
jmp FxOpd4C1284b
FETCHPIPE
inc ebp
CLRFLAGS
mov ebx,[SfxR2]
mov bh,[SfxR1]
mov eax,[sfxclineloc]
mov ebx,[eax+ebx*4]
cmp ebx,0FFFFFFFFh
je near .nodraw
xor eax,eax
; bits 5/2 : 00 = 128 pixels, 01 = 160 pixels, 10 = 192 pixels, 11 = obj
; bits 1/0 : 00 = 4 color, 01 = 16-color, 10 = not used, 11 = 256 color
; 192 pixels = 24 tiles, 160 pixels = 20 tiles, 128 pixels = 16 tiles
; 16+8(4/3) 16+4(4/2) 16(4/0)
push ecx
mov al,[SfxSCMR]
and al,00000011b ; 4 + 32
cmp al,0
je near .colors4
cmp al,3
je near .colors256
shl ebx,5 ; x32 (16 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
mov bh,bl
xor bh,0FFh
pop ecx
test byte[SfxPOR],01h
jnz .nozerocheck_16
test byte[SfxCOLR],0Fh
jz .nodraw
.nozerocheck_16
mov dl,[SfxCOLR]
test byte[SfxPOR],02h
jz .nodither4b
mov dh,[SfxR1]
xor dh,[SfxR2]
test dh,01h
jz .nodither4b
shr dh,4
.nodither4b
and byte[eax],bh
and byte[eax+1],bh
and byte[eax+16],bh
and byte[eax+17],bh
test dl,01h
jz .nodraw_16
or byte[eax], bl
.nodraw_16
test dl,02h
jz .nodraw2_16
or byte[eax+1], bl
.nodraw2_16
test dl,04h
jz .nodraw3_16
or byte[eax+16],bl
.nodraw3_16
test dl,08h
jz .nodraw4_16
or byte[eax+17],bl
.nodraw4_16
.nodraw
inc word [SfxR1]
FXReturn
.colors4
shl ebx,4 ; x16 (4 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
mov bh,bl
xor bh,0FFh
pop ecx
test byte[SfxPOR],01h
jnz .nozerocheck_4
test byte[SfxCOLR],03h
jz .noplot_4
.nozerocheck_4
mov dl,[SfxCOLR]
test byte[SfxPOR],02h
jz .nodither2b
mov dh,[SfxR1]
xor dh,[SfxR2]
test dh,01h
jz .nodither2b
shr dh,4
.nodither2b
and byte[eax],bh
and byte[eax+1],bh
test dl,01h
jz .nodraw_4
or byte[eax], bl
.nodraw_4
test dl,02h
jz .nodraw2_4
or byte[eax+1], bl
.nodraw2_4
.noplot_4
inc word [SfxR1]
FXReturn
.colors256
shl ebx,6 ; x64 (256 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
mov bh,bl
xor bh,0FFh
pop ecx
test byte[SfxPOR],01h
jnz .nozerocheck_256
mov dl,0FFh
test byte[SfxPOR],08h
jz .nozerocheckb_256
mov dl,0Fh
.nozerocheckb_256
test byte[SfxCOLR],dl
jz .noplot_256
.nozerocheck_256
mov dl,[SfxCOLR]
and byte[eax],bh
and byte[eax+1],bh
and byte[eax+16],bh
and byte[eax+17],bh
and byte[eax+32],bh
and byte[eax+33],bh
and byte[eax+48],bh
and byte[eax+49],bh
test dl,01h
jz .nodraw_256
or byte[eax], bl
.nodraw_256
test dl,02h
jz .nodraw2_256
or byte[eax+1], bl
.nodraw2_256
test dl,04h
jz .nodraw3_256
or byte[eax+16],bl
.nodraw3_256
test dl,08h
jz .nodraw4_256
or byte[eax+17],bl
.nodraw4_256
test dl,10h
jz .nodraw5_256
or byte[eax+32], bl
.nodraw5_256
test dl,20h
jz .nodraw6_256
or byte[eax+33], bl
.nodraw6_256
test dl,40h
jz .nodraw7_256
or byte[eax+48],bl
.nodraw7_256
test dl,80h
jz .nodraw8_256
or byte[eax+49],bl
.nodraw8_256
.noplot_256
inc word [SfxR1]
FXReturn
SECTION .bss
.prevx resw 1
.prevy resw 1
SECTION .text
NEWSYM FxOpd4CA1 ; RPIX read color of the pixel with R1,R2 as x,y
FETCHPIPE
mov ebx,[SfxR2]
mov bh,[SfxR1]
test byte[SfxPOR],10h
jnz .objmode
mov al,[SfxSCMR]
and al,00100100b ; 4 + 32
cmp al,4
je .lines160
cmp al,32
je .lines192
cmp al,36
je .objmode
mov eax,[sfx128lineloc]
jmp .donelines
.lines160
mov eax,[sfx160lineloc]
jmp .donelines
.lines192
mov eax,[sfx192lineloc]
jmp .donelines
.objmode
mov eax,[sfxobjlineloc]
.donelines
mov ebx,[eax+ebx*4]
cmp ebx,0FFFFFFFFh
je near .nodraw
xor eax,eax
; bits 5/2 : 00 = 128 pixels, 01 = 160 pixels, 10 = 192 pixels, 11 = obj
; bits 1/0 : 00 = 4 color, 01 = 16-color, 10 = not used, 11 = 256 color
; 192 pixels = 24 tiles, 160 pixels = 20 tiles, 128 pixels = 16 tiles
; 16+8(4/3) 16+4(4/2) 16(4/0)
push ecx
mov al,[SfxSCMR]
and al,00000011b ; 4 + 32
cmp al,0
je near .colors4
cmp al,3
je near .colors256
shl ebx,5 ; x32 (16 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
pop ecx
xor bh,bh
test byte[eax],bl
jz .nodraw_16
or bh,01h
.nodraw_16
test byte[eax+1],bl
jz .nodraw2_16
or bh,02h
.nodraw2_16
test byte[eax+16],bl
jz .nodraw3_16
or bh,04h
.nodraw3_16
test byte[eax+17],bl
jz .nodraw4_16
or bh,08h
.nodraw4_16
.nodraw
mov bl,bh
and ebx,0FFh
inc ebp
; UpdateR14
CLRFLAGS
mov [edi],ebx ; Write Destination
mov [flagnz],ebx
FXReturn
.colors4
shl ebx,4 ; x16 (4 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
mov bh,bl
xor bh,0FFh
pop ecx
xor bh,bh
test byte[eax],bl
jz .nodraw_4
or bh,01h
.nodraw_4
test byte[eax+1],bl
jz .nodraw2_4
or bh,02h
.nodraw2_4
mov bl,bh
and ebx,0FFh
inc ebp
; UpdateR14
CLRFLAGS
mov [edi],ebx ; Write Destination
mov [flagnz],ebx
FXReturn
.colors256
shl ebx,6 ; x64 (256 colors)
mov al,[SfxSCBR]
shl eax,10 ; Get SFX address
add eax,ebx
add eax,[sfxramdata]
mov ebx,[SfxR2]
and ebx,07h
shl ebx,1
add eax,ebx
mov cl,[SfxR1]
and cl,07h
xor cl,07h
mov bl,1
shl bl,cl
mov bh,bl
xor bh,0FFh
pop ecx
xor bh,bh
test byte[eax],bl
jz .nodraw_256
or bh,01h
.nodraw_256
test byte[eax+1],bl
jz .nodraw2_256
or bh,02h
.nodraw2_256
test byte[eax+16],bl
jz .nodraw3_256
or bh,04h
.nodraw3_256
test byte[eax+17],bl
jz .nodraw4_256
or bh,08h
.nodraw4_256
test byte[eax+32],bl
jz .nodraw5_256
or bh,10h
.nodraw5_256
test byte[eax+33],bl
jz .nodraw6_256
or bh,20h
.nodraw6_256
test byte[eax+48],bl
jz .nodraw7_256
or bh,40h
.nodraw7_256
test byte[eax+49],bl
jz .nodraw8_256
or bh,80h
.nodraw8_256
mov bl,bh
and ebx,0FFh
inc ebp
; UpdateR14
CLRFLAGS
mov [edi],ebx ; Write Destination
mov [flagnz],ebx
FXReturn
NEWSYM FxOpd4D ; SWAP swap upper and lower byte of a register ; V
mov eax,[esi] ; Read Source
FETCHPIPE
ror ax,8
inc ebp ; Increase program counter
mov [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd4E ; COLOR copy source register to color register ; V
FETCHPIPE
mov eax,[esi] ; Read Source
; if bit 3 of SfxPOR is set, then don't modify the upper 4 bits
test byte[SfxPOR],04h
jz .nohighnibble
mov bl,al
shr bl,4
and al,0F0h
or al,bl
.nohighnibble
test byte[SfxPOR],08h
jnz .preserveupper
cmp [SfxCOLR],al
je .nocolchange
mov [SfxCOLR],al
and eax,0FFh
mov ebx,[fxbit01+eax*4]
mov [fxbit01pcal],ebx
mov ebx,[fxbit23+eax*4]
mov [fxbit23pcal],ebx
mov ebx,[fxbit45+eax*4]
mov [fxbit45pcal],ebx
mov ebx,[fxbit67+eax*4]
mov [fxbit67pcal],ebx
.nocolchange
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
.preserveupper
mov bl,[SfxCOLR]
and al,0Fh
and bl,0F0h
or al,bl
cmp [SfxCOLR],al
je .nocolchange
mov [SfxCOLR],al
and eax,0FFh
mov ebx,[fxbit01+eax*4]
mov [fxbit01pcal],ebx
mov ebx,[fxbit23+eax*4]
mov [fxbit23pcal],ebx
mov ebx,[fxbit45+eax*4]
mov [fxbit45pcal],ebx
mov ebx,[fxbit67+eax*4]
mov [fxbit67pcal],ebx
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
NEWSYM FxOpd4EA1 ; CMODE set plot option register ; V
FETCHPIPE
mov eax,[esi] ; Read Source
inc ebp ; Increase program counter
mov dword [SfxPOR],eax
test byte[SfxPOR],10h
jnz .objmode
mov al,[SfxSCMR]
and al,00100100b ; 4 + 32
cmp al,4
je .lines160
cmp al,32
je .lines192
cmp al,36
je .objmode
mov eax,[sfx128lineloc]
jmp .donelines
.lines160
mov eax,[sfx160lineloc]
jmp .donelines
.lines192
mov eax,[sfx192lineloc]
jmp .donelines
.objmode
mov eax,[sfxobjlineloc]
.donelines
mov [sfxclineloc],eax
push ebx
mov al,[SfxSCMR]
and eax,00000011b
mov bl,[SfxPOR]
and bl,0Fh
shl bl,2
or al,bl
mov ebx,[PLOTJmpb+eax*4]
mov eax,[PLOTJmpa+eax*4]
mov dword [FxTable+4Ch*4],eax
mov dword [FxTableb+4Ch*4],eax
mov dword [FxTablec+4Ch*4],eax
mov dword [FxTabled+4Ch*4],ebx
pop ebx
CLRFLAGS
FXReturn
NEWSYM FxOpd4F ; NOT perform exclusive exor with 1 on all bits ; V
mov eax,[esi] ; Read Source
FETCHPIPE
xor eax,0FFFFh
inc ebp ; Increase program counter
mov [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd50 ; ADD RN add, register + register
ADDRNc 0
NEWSYM FxOpd51 ; ADD RN add, register + register
ADDRNc 1
NEWSYM FxOpd52 ; ADD RN add, register + register
ADDRNc 2
NEWSYM FxOpd53 ; ADD RN add, register + register
ADDRNc 3
NEWSYM FxOpd54 ; ADD RN add, register + register
ADDRNc 4
NEWSYM FxOpd55 ; ADD RN add, register + register
ADDRNc 5
NEWSYM FxOpd56 ; ADD RN add, register + register
ADDRNc 6
NEWSYM FxOpd57 ; ADD RN add, register + register
ADDRNc 7
NEWSYM FxOpd58 ; ADD RN add, register + register
ADDRNc 8
NEWSYM FxOpd59 ; ADD RN add, register + register
ADDRNc 9
NEWSYM FxOpd5A ; ADD RN add, register + register
ADDRNc 10
NEWSYM FxOpd5B ; ADD RN add, register + register
ADDRNc 11
NEWSYM FxOpd5C ; ADD RN add, register + register
ADDRNc 12
NEWSYM FxOpd5D ; ADD RN add, register + register
ADDRNc 13
NEWSYM FxOpd5E ; ADD RN add, register + register
ADDRNc 14
NEWSYM FxOpd5F ; ADD RN add, register + register
FETCHPIPE
mov eax, [esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
add ax,bx
seto byte[SfxOverflow]
setc byte[SfxCarry]
mov [SfxSignZero],eax
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd50A1 ; ADC RN add with carry, register + register
ADCRNc 0
NEWSYM FxOpd51A1 ; ADC RN add with carry, register + register
ADCRNc 1
NEWSYM FxOpd52A1 ; ADC RN add with carry, register + register
ADCRNc 2
NEWSYM FxOpd53A1 ; ADC RN add with carry, register + register
ADCRNc 3
NEWSYM FxOpd54A1 ; ADC RN add with carry, register + register
ADCRNc 4
NEWSYM FxOpd55A1 ; ADC RN add with carry, register + register
ADCRNc 5
NEWSYM FxOpd56A1 ; ADC RN add with carry, register + register
ADCRNc 6
NEWSYM FxOpd57A1 ; ADC RN add with carry, register + register
ADCRNc 7
NEWSYM FxOpd58A1 ; ADC RN add with carry, register + register
ADCRNc 8
NEWSYM FxOpd59A1 ; ADC RN add with carry, register + register
ADCRNc 9
NEWSYM FxOpd5AA1 ; ADC RN add with carry, register + register
ADCRNc 10
NEWSYM FxOpd5BA1 ; ADC RN add with carry, register + register
ADCRNc 11
NEWSYM FxOpd5CA1 ; ADC RN add with carry, register + register
ADCRNc 12
NEWSYM FxOpd5DA1 ; ADC RN add with carry, register + register
ADCRNc 13
NEWSYM FxOpd5EA1 ; ADC RN add with carry, register + register
ADCRNc 14
NEWSYM FxOpd5FA1 ; ADC RN add with carry, register + register
FETCHPIPE
mov eax, [esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
shr byte[SfxCarry],1
adc ax,bx
seto byte[SfxOverflow]
setc byte[SfxCarry]
mov [SfxSignZero],eax
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
; Weird Opdode (FxOpd50A2, add 0, wow!)
NEWSYM FxOpd50A2 ; ADI RN add, register + immediate
ADIRNc 0
NEWSYM FxOpd51A2 ; ADI RN add, register + immediate
ADIRNc 1
NEWSYM FxOpd52A2 ; ADI RN add, register + immediate
ADIRNc 2
NEWSYM FxOpd53A2 ; ADI RN add, register + immediate
ADIRNc 3
NEWSYM FxOpd54A2 ; ADI RN add, register + immediate
ADIRNc 4
NEWSYM FxOpd55A2 ; ADI RN add, register + immediate
ADIRNc 5
NEWSYM FxOpd56A2 ; ADI RN add, register + immediate
ADIRNc 6
NEWSYM FxOpd57A2 ; ADI RN add, register + immediate
ADIRNc 7
NEWSYM FxOpd58A2 ; ADI RN add, register + immediate
ADIRNc 8
NEWSYM FxOpd59A2 ; ADI RN add, register + immediate
ADIRNc 9
NEWSYM FxOpd5AA2 ; ADI RN add, register + immediate
ADIRNc 10
NEWSYM FxOpd5BA2 ; ADI RN add, register + immediate
ADIRNc 11
NEWSYM FxOpd5CA2 ; ADI RN add, register + immediate
ADIRNc 12
NEWSYM FxOpd5DA2 ; ADI RN add, register + immediate
ADIRNc 13
NEWSYM FxOpd5EA2 ; ADI RN add, register + immediate
ADIRNc 14
NEWSYM FxOpd5FA2 ; ADI RN add, register + immediate
ADIRNc 15
; Another very useful Opdode
NEWSYM FxOpd50A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 0
NEWSYM FxOpd51A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 1
NEWSYM FxOpd52A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 2
NEWSYM FxOpd53A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 3
NEWSYM FxOpd54A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 4
NEWSYM FxOpd55A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 5
NEWSYM FxOpd56A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 6
NEWSYM FxOpd57A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 7
NEWSYM FxOpd58A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 8
NEWSYM FxOpd59A3 ; ADCIRN add with carry, register + immediate
ADCIRNc 9
NEWSYM FxOpd5AA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 10
NEWSYM FxOpd5BA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 11
NEWSYM FxOpd5CA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 12
NEWSYM FxOpd5DA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 13
NEWSYM FxOpd5EA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 14
NEWSYM FxOpd5FA3 ; ADCIRN add with carry, register + immediate
ADCIRNc 15
NEWSYM FxOpd60 ; SUBRN subtract, register - register
SUBRNc 0
NEWSYM FxOpd61 ; SUBRN subtract, register - register
SUBRNc 1
NEWSYM FxOpd62 ; SUBRN subtract, register - register
SUBRNc 2
NEWSYM FxOpd63 ; SUBRN subtract, register - register
SUBRNc 3
NEWSYM FxOpd64 ; SUBRN subtract, register - register
SUBRNc 4
NEWSYM FxOpd65 ; SUBRN subtract, register - register
SUBRNc 5
NEWSYM FxOpd66 ; SUBRN subtract, register - register
SUBRNc 6
NEWSYM FxOpd67 ; SUBRN subtract, register - register
SUBRNc 7
NEWSYM FxOpd68 ; SUBRN subtract, register - register
SUBRNc 8
NEWSYM FxOpd69 ; SUBRN subtract, register - register
SUBRNc 9
NEWSYM FxOpd6A ; SUBRN subtract, register - register
SUBRNc 10
NEWSYM FxOpd6B ; SUBRN subtract, register - register
SUBRNc 11
NEWSYM FxOpd6C ; SUBRN subtract, register - register
SUBRNc 12
NEWSYM FxOpd6D ; SUBRN subtract, register - register
SUBRNc 13
NEWSYM FxOpd6E ; SUBRN subtract, register - register
SUBRNc 14
NEWSYM FxOpd6F ; SUBRN subtract, register - register
FETCHPIPE
mov eax,[esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
sub ax,bx
seto byte[SfxOverflow]
setc byte[SfxCarry]
xor byte[SfxCarry],1
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd60A1 ; SBCRN subtract with carry, register - register
SBCRNc 0
NEWSYM FxOpd61A1 ; SBCRN subtract with carry, register - register
SBCRNc 1
NEWSYM FxOpd62A1 ; SBCRN subtract with carry, register - register
SBCRNc 2
NEWSYM FxOpd63A1 ; SBCRN subtract with carry, register - register
SBCRNc 3
NEWSYM FxOpd64A1 ; SBCRN subtract with carry, register - register
SBCRNc 4
NEWSYM FxOpd65A1 ; SBCRN subtract with carry, register - register
SBCRNc 5
NEWSYM FxOpd66A1 ; SBCRN subtract with carry, register - register
SBCRNc 6
NEWSYM FxOpd67A1 ; SBCRN subtract with carry, register - register
SBCRNc 7
NEWSYM FxOpd68A1 ; SBCRN subtract with carry, register - register
SBCRNc 8
NEWSYM FxOpd69A1 ; SBCRN subtract with carry, register - register
SBCRNc 9
NEWSYM FxOpd6AA1 ; SBCRN subtract with carry, register - register
SBCRNc 10
NEWSYM FxOpd6BA1 ; SBCRN subtract with carry, register - register
SBCRNc 11
NEWSYM FxOpd6CA1 ; SBCRN subtract with carry, register - register
SBCRNc 12
NEWSYM FxOpd6DA1 ; SBCRN subtract with carry, register - register
SBCRNc 13
NEWSYM FxOpd6EA1 ; SBCRN subtract with carry, register - register
SBCRNc 14
NEWSYM FxOpd6FA1 ; SBCRN subtract with carry, register - register
mov eax,[esi] ; Read Source
mov ebx,ebp
FETCHPIPE
sub ebx,[SfxCPB]
cmp byte[SfxCarry],1
sbb ax,bx
seto byte[SfxOverflow]
setc byte[SfxCarry]
xor byte[SfxCarry],1
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd60A2 ; SUBIRN subtract, register - immediate
SUBIRNc 0
NEWSYM FxOpd61A2 ; SUBIRN subtract, register - immediate
SUBIRNc 1
NEWSYM FxOpd62A2 ; SUBIRN subtract, register - immediate
SUBIRNc 2
NEWSYM FxOpd63A2 ; SUBIRN subtract, register - immediate
SUBIRNc 3
NEWSYM FxOpd64A2 ; SUBIRN subtract, register - immediate
SUBIRNc 4
NEWSYM FxOpd65A2 ; SUBIRN subtract, register - immediate
SUBIRNc 5
NEWSYM FxOpd66A2 ; SUBIRN subtract, register - immediate
SUBIRNc 6
NEWSYM FxOpd67A2 ; SUBIRN subtract, register - immediate
SUBIRNc 7
NEWSYM FxOpd68A2 ; SUBIRN subtract, register - immediate
SUBIRNc 8
NEWSYM FxOpd69A2 ; SUBIRN subtract, register - immediate
SUBIRNc 9
NEWSYM FxOpd6AA2 ; SUBIRN subtract, register - immediate
SUBIRNc 10
NEWSYM FxOpd6BA2 ; SUBIRN subtract, register - immediate
SUBIRNc 11
NEWSYM FxOpd6CA2 ; SUBIRN subtract, register - immediate
SUBIRNc 12
NEWSYM FxOpd6DA2 ; SUBIRN subtract, register - immediate
SUBIRNc 13
NEWSYM FxOpd6EA2 ; SUBIRN subtract, register - immediate
SUBIRNc 14
NEWSYM FxOpd6FA2 ; SUBIRN subtract, register - immediate
SUBIRNc 15
NEWSYM FxOpd60A3 ; CMPRN compare, register, register
CMPRNc 0
NEWSYM FxOpd61A3 ; CMPRN compare, register, register
CMPRNc 1
NEWSYM FxOpd62A3 ; CMPRN compare, register, register
CMPRNc 2
NEWSYM FxOpd63A3 ; CMPRN compare, register, register
CMPRNc 3
NEWSYM FxOpd64A3 ; CMPRN compare, register, register
CMPRNc 4
NEWSYM FxOpd65A3 ; CMPRN compare, register, register
CMPRNc 5
NEWSYM FxOpd66A3 ; CMPRN compare, register, register
CMPRNc 6
NEWSYM FxOpd67A3 ; CMPRN compare, register, register
CMPRNc 7
NEWSYM FxOpd68A3 ; CMPRN compare, register, register
CMPRNc 8
NEWSYM FxOpd69A3 ; CMPRN compare, register, register
CMPRNc 9
NEWSYM FxOpd6AA3 ; CMPRN compare, register, register
CMPRNc 10
NEWSYM FxOpd6BA3 ; CMPRN compare, register, register
CMPRNc 11
NEWSYM FxOpd6CA3 ; CMPRN compare, register, register
CMPRNc 12
NEWSYM FxOpd6DA3 ; CMPRN compare, register, register
CMPRNc 13
NEWSYM FxOpd6EA3 ; CMPRN compare, register, register
CMPRNc 14
NEWSYM FxOpd6FA3 ; CMPRN compare, register, register
FETCHPIPE
mov eax,[esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
sub ax,bx
seto byte[SfxOverflow]
setc byte[SfxCarry]
xor byte[SfxCarry],1
mov [SfxSignZero],eax
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
NEWSYM FxOpd70 ; MERGE R7 as upper byte, R8 as lower byte (used for texture-mapping) */
; V
xor eax,eax
FETCHPIPE
mov ah,byte [SfxR7+1]
mov al,byte [SfxR8+1]
inc ebp
mov [edi],eax ; Write Destination
mov dword[SfxSignZero],0001h
test eax,0F0F0h
jz .nozero
mov dword[SfxSignZero],0000h
.nozero
test eax,08080h
jz .nosign
or dword [SfxSignZero],80000h
.nosign
mov dword [SfxOverflow],1
test ax,0c0c0h
jnz .Overflow
mov dword [SfxOverflow],0
.Overflow
mov dword [SfxCarry],1
test ax,0e0e0h
jnz .Carry
mov dword [SfxCarry],0
.Carry
CLRFLAGS
FXReturn
NEWSYM FxOpd71 ; AND RN register & register
ANDRNc 1
NEWSYM FxOpd72 ; AND RN register & register
ANDRNc 2
NEWSYM FxOpd73 ; AND RN register & register
ANDRNc 3
NEWSYM FxOpd74 ; AND RN register & register
ANDRNc 4
NEWSYM FxOpd75 ; AND RN register & register
ANDRNc 5
NEWSYM FxOpd76 ; AND RN register & register
ANDRNc 6
NEWSYM FxOpd77 ; AND RN register & register
ANDRNc 7
NEWSYM FxOpd78 ; AND RN register & register
ANDRNc 8
NEWSYM FxOpd79 ; AND RN register & register
ANDRNc 9
NEWSYM FxOpd7A ; AND RN register & register
ANDRNc 10
NEWSYM FxOpd7B ; AND RN register & register
ANDRNc 11
NEWSYM FxOpd7C ; AND RN register & register
ANDRNc 12
NEWSYM FxOpd7D ; AND RN register & register
ANDRNc 13
NEWSYM FxOpd7E ; AND RN register & register
ANDRNc 14
NEWSYM FxOpd7F ; AND RN register & register
FETCHPIPE
mov eax,[esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
and eax,ebx
inc ebp
mov dword [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd71A1 ; BIC RN register & ~register
BICRNc 1
NEWSYM FxOpd72A1 ; BIC RN register & ~register
BICRNc 2
NEWSYM FxOpd73A1 ; BIC RN register & ~register
BICRNc 3
NEWSYM FxOpd74A1 ; BIC RN register & ~register
BICRNc 4
NEWSYM FxOpd75A1 ; BIC RN register & ~register
BICRNc 5
NEWSYM FxOpd76A1 ; BIC RN register & ~register
BICRNc 6
NEWSYM FxOpd77A1 ; BIC RN register & ~register
BICRNc 7
NEWSYM FxOpd78A1 ; BIC RN register & ~register
BICRNc 8
NEWSYM FxOpd79A1 ; BIC RN register & ~register
BICRNc 9
NEWSYM FxOpd7AA1 ; BIC RN register & ~register
BICRNc 10
NEWSYM FxOpd7BA1 ; BIC RN register & ~register
BICRNc 11
NEWSYM FxOpd7CA1 ; BIC RN register & ~register
BICRNc 12
NEWSYM FxOpd7DA1 ; BIC RN register & ~register
BICRNc 13
NEWSYM FxOpd7EA1 ; BIC RN register & ~register
BICRNc 14
NEWSYM FxOpd7FA1 ; BIC RN register & ~register
FETCHPIPE
mov ebx,ebp
sub ebx,[SfxCPB]
mov eax,[esi] ; Read Source
xor ebx,0FFFFh
and eax,ebx
inc ebp
mov dword [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd71A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 1
NEWSYM FxOpd72A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 2
NEWSYM FxOpd73A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 3
NEWSYM FxOpd74A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 4
NEWSYM FxOpd75A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 5
NEWSYM FxOpd76A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 6
NEWSYM FxOpd77A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 7
NEWSYM FxOpd78A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 8
NEWSYM FxOpd79A2 ; ANDIRNc and #n - register & immediate
ANDIRNc 9
NEWSYM FxOpd7AA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 10
NEWSYM FxOpd7BA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 11
NEWSYM FxOpd7CA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 12
NEWSYM FxOpd7DA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 13
NEWSYM FxOpd7EA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 14
NEWSYM FxOpd7FA2 ; ANDIRNc and #n - register & immediate
ANDIRNc 15
NEWSYM FxOpd71A3 ; BICIRNc register & ~immediate
BICIRNc 1 ^ 0FFFFh
NEWSYM FxOpd72A3 ; BICIRNc register & ~immediate
BICIRNc 2 ^ 0FFFFh
NEWSYM FxOpd73A3 ; BICIRNc register & ~immediate
BICIRNc 3 ^ 0FFFFh
NEWSYM FxOpd74A3 ; BICIRNc register & ~immediate
BICIRNc 4 ^ 0FFFFh
NEWSYM FxOpd75A3 ; BICIRNc register & ~immediate
BICIRNc 5 ^ 0FFFFh
NEWSYM FxOpd76A3 ; BICIRNc register & ~immediate
BICIRNc 6 ^ 0FFFFh
NEWSYM FxOpd77A3 ; BICIRNc register & ~immediate
BICIRNc 7 ^ 0FFFFh
NEWSYM FxOpd78A3 ; BICIRNc register & ~immediate
BICIRNc 8 ^ 0FFFFh
NEWSYM FxOpd79A3 ; BICIRNc register & ~immediate
BICIRNc 9 ^ 0FFFFh
NEWSYM FxOpd7AA3 ; BICIRNc register & ~immediate
BICIRNc 10 ^ 0FFFFh
NEWSYM FxOpd7BA3 ; BICIRNc register & ~immediate
BICIRNc 11 ^ 0FFFFh
NEWSYM FxOpd7CA3 ; BICIRNc register & ~immediate
BICIRNc 12 ^ 0FFFFh
NEWSYM FxOpd7DA3 ; BICIRNc register & ~immediate
BICIRNc 13 ^ 0FFFFh
NEWSYM FxOpd7EA3 ; BICIRNc register & ~immediate
BICIRNc 14 ^ 0FFFFh
NEWSYM FxOpd7FA3 ; BICIRNc register & ~immediate
BICIRNc 15 ^ 0FFFFh
NEWSYM FxOpd80 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 0
NEWSYM FxOpd81 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 1
NEWSYM FxOpd82 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 2
NEWSYM FxOpd83 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 3
NEWSYM FxOpd84 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 4
NEWSYM FxOpd85 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 5
NEWSYM FxOpd86 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 6
NEWSYM FxOpd87 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 7
NEWSYM FxOpd88 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 8
NEWSYM FxOpd89 ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 9
NEWSYM FxOpd8A ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 10
NEWSYM FxOpd8B ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 11
NEWSYM FxOpd8C ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 12
NEWSYM FxOpd8D ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 13
NEWSYM FxOpd8E ; MULTRNc 8 bit to 16 bit signed multiply, register * register
MULTRNc 14
NEWSYM FxOpd8F ; MULTRNc 8 bit to 16 bit signed multiply, register * register
FETCHPIPE
mov ebx,ebp
mov al,byte [esi] ; Read Source
sub ebx,[SfxCPB]
imul bl
inc ebp
and eax,0FFFFh
mov [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd80A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 0
NEWSYM FxOpd81A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 1
NEWSYM FxOpd82A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 2
NEWSYM FxOpd83A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 3
NEWSYM FxOpd84A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 4
NEWSYM FxOpd85A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 5
NEWSYM FxOpd86A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 6
NEWSYM FxOpd87A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 7
NEWSYM FxOpd88A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 8
NEWSYM FxOpd89A1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 9
NEWSYM FxOpd8AA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 10
NEWSYM FxOpd8BA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 11
NEWSYM FxOpd8CA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 12
NEWSYM FxOpd8DA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 13
NEWSYM FxOpd8EA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
UMULTRNc 14
NEWSYM FxOpd8FA1 ; UMULRN 8 bit to 16 bit unsigned multiply, register * register
FETCHPIPE
mov ebx,ebp
mov al,byte [esi] ; Read Source
sub ebx,[SfxCPB]
mul bl
inc ebp
and eax,0FFFFh
mov [SfxSignZero],eax
mov [edi],eax ; Write Destination
CLRFLAGS
FXReturn
NEWSYM FxOpd80A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 0
NEWSYM FxOpd81A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 1
NEWSYM FxOpd82A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 2
NEWSYM FxOpd83A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 3
NEWSYM FxOpd84A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 4
NEWSYM FxOpd85A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 5
NEWSYM FxOpd86A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 6
NEWSYM FxOpd87A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 7
NEWSYM FxOpd88A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 8
NEWSYM FxOpd89A2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 9
NEWSYM FxOpd8AA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 10
NEWSYM FxOpd8BA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 11
NEWSYM FxOpd8CA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 12
NEWSYM FxOpd8DA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 13
NEWSYM FxOpd8EA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 14
NEWSYM FxOpd8FA2 ; MULIRN 8 bit to 16 bit signed multiply, register * immediate
MULTIRNc 15
NEWSYM FxOpd80A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 0
NEWSYM FxOpd81A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 1
NEWSYM FxOpd82A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 2
NEWSYM FxOpd83A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 3
NEWSYM FxOpd84A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 4
NEWSYM FxOpd85A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 5
NEWSYM FxOpd86A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 6
NEWSYM FxOpd87A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 7
NEWSYM FxOpd88A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 8
NEWSYM FxOpd89A3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 9
NEWSYM FxOpd8AA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 10
NEWSYM FxOpd8BA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 11
NEWSYM FxOpd8CA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 12
NEWSYM FxOpd8DA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 13
NEWSYM FxOpd8EA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 14
NEWSYM FxOpd8FA3 ;UMULIRN 8 bit to 16 bit unsigned multiply, register * immediate
UMULTIRNc 15
NEWSYM FxOpd90 ; SBK store word to last accessed RAM address ; V
mov ebx,[SfxLastRamAdr] ; Load last ram address
mov eax,[esi] ; Read Source
FETCHPIPE
mov [ebx],al ; Store Word
sub ebx,[SfxRAMMem]
xor ebx,1
add ebx,[SfxRAMMem]
inc ebp ; Increase program counter
mov [ebx],ah ; Store Word
CLRFLAGS
FXReturn
NEWSYM FxOpd91 ; LINKc#n R11 = R15 + immediate
LINKc 1
NEWSYM FxOpd92 ; LINKc#n R11 = R15 + immediate
LINKc 2
NEWSYM FxOpd93 ; LINKc#n R11 = R15 + immediate
LINKc 3
NEWSYM FxOpd94 ; LINKc#n R11 = R15 + immediate
LINKc 4
NEWSYM FxOpd95 ; SEX sign extend 8 bit to 16 bit ; V
movsx eax, byte [esi] ; Read Source
FETCHPIPE
and eax,0FFFFh
inc ebp
mov [edi],eax ; Write Destination
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd96 ; ASR aritmethic shift right by one ; V
mov eax,[esi] ; Read Source
FETCHPIPE
mov [SfxCarry],al
and byte[SfxCarry],1
sar ax,1 ; logic shift right
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov dword [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd96A1 ; DIV2 aritmethic shift right by one ; V
mov eax,[esi] ; Read Source
FETCHPIPE
cmp ax,-1
je .minusone
mov [SfxCarry],al
and byte[SfxCarry],1
sar ax,1 ; logic shift right
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov dword [SfxSignZero],eax
CLRFLAGS
FXReturn
.minusone
mov byte[SfxCarry],1
xor eax,eax
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov dword [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd97 ; ROR rotate right by one ; V
FETCHPIPE
mov eax,[esi] ; Read Source
shr byte[SfxCarry],1
rcr ax,1
setc byte[SfxCarry]
inc ebp ; Increase program counter
mov [edi],eax ; Write Destination
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd98 ; JMPRNc jump to address of register
JMPRNc 8
NEWSYM FxOpd99 ; JMPRNc jump to address of register
JMPRNc 9
NEWSYM FxOpd9A ; JMPRNc jump to address of register
JMPRNc 10
NEWSYM FxOpd9B ; JMPRNc jump to address of register
JMPRNc 11
NEWSYM FxOpd9C ; JMPRNc jump to address of register
JMPRNc 12
NEWSYM FxOpd9D ; JMPRNc jump to address of register
JMPRNc 13
NEWSYM FxOpd98A1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 8
NEWSYM FxOpd99A1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 9
NEWSYM FxOpd9AA1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 10
NEWSYM FxOpd9BA1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 11
NEWSYM FxOpd9CA1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 12
NEWSYM FxOpd9DA1 ; LJMPRNc set program bank to source register and jump to address of register
LJMPRNc 13
NEWSYM FxOpd9E ; LOB set upper byte to zero (keep low byte) ; V
mov eax,[esi] ; Read Source
FETCHPIPE
and eax,0FFh
inc ebp
mov [edi],eax ; Write Destination
shl eax,8
mov dword [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpd9F ; FMULT 16 bit to 32 bit signed multiplication, upper 16 bits only
; V
mov eax,[esi] ; Read Source
mov ebx,[SfxR6]
FETCHPIPE
imul bx
inc ebp
and edx,0FFFFh
mov [SfxSignZero],edx
mov [edi],edx ; Write Destination
shr ax,15
mov [SfxCarry],al
CLRFLAGS
FXReturn
NEWSYM FxOpd9FA1 ; LMULT 16 bit to 32 bit signed multiplication ; V
mov eax,[esi] ; Read Source
mov ebx,[SfxR6]
FETCHPIPE
imul bx
and edx,0FFFFh
inc ebp
mov [edi],edx ; Write Destination
mov [SfxR4],ax
mov [SfxSignZero],edx
shr ax,15
mov [SfxCarry],al
CLRFLAGS
FXReturn
NEWSYM FxOpdA0 ; IBTRNc,#PP immediate byte transfer
IBTRNc 0
NEWSYM FxOpdA1 ; IBTRNc,#PP immediate byte transfer
IBTRNc 1
NEWSYM FxOpdA2 ; IBTRNc,#PP immediate byte transfer
IBTRNc 2
NEWSYM FxOpdA3 ; IBTRNc,#PP immediate byte transfer
IBTRNc 3
NEWSYM FxOpdA4 ; IBTRNc,#PP immediate byte transfer
IBTRNc 4
NEWSYM FxOpdA5 ; IBTRNc,#PP immediate byte transfer
IBTRNc 5
NEWSYM FxOpdA6 ; IBTRNc,#PP immediate byte transfer
IBTRNc 6
NEWSYM FxOpdA7 ; IBTRNc,#PP immediate byte transfer
IBTRNc 7
NEWSYM FxOpdA8 ; IBTRNc,#PP immediate byte transfer
IBTRNc 8
NEWSYM FxOpdA9 ; IBTRNc,#PP immediate byte transfer
IBTRNc 9
NEWSYM FxOpdAA ; IBTRNc,#PP immediate byte transfer
IBTRNc 10
NEWSYM FxOpdAB ; IBTRNc,#PP immediate byte transfer
IBTRNc 11
NEWSYM FxOpdAC ; IBTRNc,#PP immediate byte transfer
IBTRNc 12
NEWSYM FxOpdAD ; IBTRNc,#PP immediate byte transfer
IBTRNc 13
NEWSYM FxOpdAE ; IBTRNc,#PP immediate byte transfer
movsx eax,byte[ebp]
mov cl,[ebp+1]
add ebp,2
mov [SfxR0+14*4],ax
UpdateR14
CLRFLAGS
FXReturn
NEWSYM FxOpdAF ; IBTRNc,#PP immediate byte transfer
movsx eax,byte[ebp]
mov cl,[ebp+1]
and eax,0FFFFh
mov ebp,[SfxCPB]
add ebp,eax
CLRFLAGS
FXReturn
NEWSYM FxOpdA0A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 0
NEWSYM FxOpdA1A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 1
NEWSYM FxOpdA2A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 2
NEWSYM FxOpdA3A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 3
NEWSYM FxOpdA4A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 4
NEWSYM FxOpdA5A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 5
NEWSYM FxOpdA6A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 6
NEWSYM FxOpdA7A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 7
NEWSYM FxOpdA8A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 8
NEWSYM FxOpdA9A1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 9
NEWSYM FxOpdAAA1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 10
NEWSYM FxOpdABA1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 11
NEWSYM FxOpdACA1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 12
NEWSYM FxOpdADA1 ; LMS rn,(yy) load word from RAM (short address)
LMSRNc 13
NEWSYM FxOpdAEA1 ; LMS rn,(yy) load word from RAM (short address)
xor eax,eax
mov al,[ebp]
add eax,eax
inc ebp
add eax,[SfxRAMMem]
mov cl,[ebp]
mov dword [SfxLastRamAdr],eax
mov ebx,[eax] ; Read word from ram
inc ebp
mov [SfxR0+14*4],bx ; Write data
UpdateR14
CLRFLAGS
FXReturn
NEWSYM FxOpdAFA1 ; LMS rn,(yy) load word from RAM (short address)
xor eax,eax
mov al,[ebp]
add eax,eax
inc ebp
add eax,[SfxRAMMem]
mov cl,[ebp]
mov dword [SfxLastRamAdr],eax
mov ebx,[eax] ; Read word from ram
and ebx,0FFFFh
mov ebp,[SfxCPB]
add ebp,ebx
CLRFLAGS
FXReturn
NEWSYM FxOpdA0A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 0
NEWSYM FxOpdA1A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 1
NEWSYM FxOpdA2A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 2
NEWSYM FxOpdA3A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 3
NEWSYM FxOpdA4A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 4
NEWSYM FxOpdA5A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 5
NEWSYM FxOpdA6A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 6
NEWSYM FxOpdA7A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 7
NEWSYM FxOpdA8A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 8
NEWSYM FxOpdA9A2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 9
NEWSYM FxOpdAAA2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 10
NEWSYM FxOpdABA2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 11
NEWSYM FxOpdACA2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 12
NEWSYM FxOpdADA2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 13
NEWSYM FxOpdAEA2 ; SMS (yy),rn store word in RAM (short address)
SMSRNc 14
NEWSYM FxOpdAFA2 ; SMS (yy),rn store word in RAM (short address)
xor eax,eax
mov ebx,ebp
sub ebx,[SfxCPB]
mov al,[ebp]
inc ebp
add eax,eax
FETCHPIPE
add eax,[SfxRAMMem]
mov dword [SfxLastRamAdr],eax
inc ebp
mov [eax],bx ; Write word to ram
CLRFLAGS
FXReturn
NEWSYM FxOpdB0 ; FROM rn set source register
FROMRNd 0
NEWSYM FxOpdB1 ; FROM rn set source register
FROMRNd 1
NEWSYM FxOpdB2 ; FROM rn set source register
FROMRNd 2
NEWSYM FxOpdB3 ; FROM rn set source register
FROMRNd 3
NEWSYM FxOpdB4 ; FROM rn set source register
FROMRNd 4
NEWSYM FxOpdB5 ; FROM rn set source register
FROMRNd 5
NEWSYM FxOpdB6 ; FROM rn set source register
FROMRNd 6
NEWSYM FxOpdB7 ; FROM rn set source register
FROMRNd 7
NEWSYM FxOpdB8 ; FROM rn set source register
FROMRNd 8
NEWSYM FxOpdB9 ; FROM rn set source register
FROMRNd 9
NEWSYM FxOpdBA ; FROM rn set source register
FROMRNd 10
NEWSYM FxOpdBB ; FROM rn set source register
FROMRNd 11
NEWSYM FxOpdBC ; FROM rn set source register
FROMRNd 12
NEWSYM FxOpdBD ; FROM rn set source register
FROMRNd 13
NEWSYM FxOpdBE ; FROM rn set source register
FROMRNd 14
NEWSYM FxOpdBF ; FROM rn set source register
FETCHPIPE
mov esi,SfxR0+15*4
inc ebp ; Increase program counter
mov eax,ebp
sub eax,[SfxCPB]
mov [SfxR15],eax
call [FxTableb+ecx*4]
mov esi,SfxR0
FXReturn
NEWSYM FxOpdC0 ; HIB move high-byte to low-byte ; V
mov eax,[esi] ; Read Source
FETCHPIPE
and eax,0FF00h
mov dword [SfxSignZero],eax
shr eax,8
inc ebp
mov [edi],eax
CLRFLAGS
FXReturn
NEWSYM FxOpdC1 ; OR rn or rn
ORRNc 1
NEWSYM FxOpdC2 ; OR rn or rn
ORRNc 2
NEWSYM FxOpdC3 ; OR rn or rn
ORRNc 3
NEWSYM FxOpdC4 ; OR rn or rn
ORRNc 4
NEWSYM FxOpdC5 ; OR rn or rn
ORRNc 5
NEWSYM FxOpdC6 ; OR rn or rn
ORRNc 6
NEWSYM FxOpdC7 ; OR rn or rn
ORRNc 7
NEWSYM FxOpdC8 ; OR rn or rn
ORRNc 8
NEWSYM FxOpdC9 ; OR rn or rn
ORRNc 9
NEWSYM FxOpdCA ; OR rn or rn
ORRNc 10
NEWSYM FxOpdCB ; OR rn or rn
ORRNc 11
NEWSYM FxOpdCC ; OR rn or rn
ORRNc 12
NEWSYM FxOpdCD ; OR rn or rn
ORRNc 13
NEWSYM FxOpdCE ; OR rn or rn
ORRNc 14
NEWSYM FxOpdCF ; OR rn or rn
mov eax,[esi] ; Read Source
mov ebx,ebp
FETCHPIPE
sub ebx,[SfxCPB]
or eax,ebx
inc ebp
mov [edi],eax ; Write DREG
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpdC1A1 ; XOR rn xor rn
XORRNc 1
NEWSYM FxOpdC2A1 ; XOR rn xor rn
XORRNc 2
NEWSYM FxOpdC3A1 ; XOR rn xor rn
XORRNc 3
NEWSYM FxOpdC4A1 ; XOR rn xor rn
XORRNc 4
NEWSYM FxOpdC5A1 ; XOR rn xor rn
XORRNc 5
NEWSYM FxOpdC6A1 ; XOR rn xor rn
XORRNc 6
NEWSYM FxOpdC7A1 ; XOR rn xor rn
XORRNc 7
NEWSYM FxOpdC8A1 ; XOR rn xor rn
XORRNc 8
NEWSYM FxOpdC9A1 ; XOR rn xor rn
XORRNc 9
NEWSYM FxOpdCAA1 ; XOR rn xor rn
XORRNc 10
NEWSYM FxOpdCBA1 ; XOR rn xor rn
XORRNc 11
NEWSYM FxOpdCCA1 ; XOR rn xor rn
XORRNc 12
NEWSYM FxOpdCDA1 ; XOR rn xor rn
XORRNc 13
NEWSYM FxOpdCEA1 ; XOR rn xor rn
XORRNc 14
NEWSYM FxOpdCFA1 ; XOR rn xor rn
FETCHPIPE
mov eax,[esi] ; Read Source
mov ebx,ebp
sub ebx,[SfxCPB]
xor eax,ebx
inc ebp
mov [edi],eax ; Write DREG
mov [SfxSignZero],eax
CLRFLAGS
FXReturn
NEWSYM FxOpdC1A2 ; OR #n OR #n
ORIc 1
NEWSYM FxOpdC2A2 ; OR #n OR #n
ORIc 2
NEWSYM FxOpdC3A2 ; OR #n OR #n
ORIc 3
NEWSYM FxOpdC4A2 ; OR #n OR #n
ORIc 4
NEWSYM FxOpdC5A2 ; OR #n OR #n
ORIc 5
NEWSYM FxOpdC6A2 ; OR #n OR #n
ORIc 6
NEWSYM FxOpdC7A2 ; OR #n OR #n
ORIc 7
NEWSYM FxOpdC8A2 ; OR #n OR #n
ORIc 8
NEWSYM FxOpdC9A2 ; OR #n OR #n
ORIc 9
NEWSYM FxOpdCAA2 ; OR #n OR #n
ORIc 10
NEWSYM FxOpdCBA2 ; OR #n OR #n
ORIc 11
NEWSYM FxOpdCCA2 ; OR #n OR #n
ORIc 12
NEWSYM FxOpdCDA2 ; OR #n OR #n
ORIc 13
NEWSYM FxOpdCEA2 ; OR #n OR #n
ORIc 14
NEWSYM FxOpdCFA2 ; OR #n OR #n
ORIc 15
NEWSYM FxOpdC1A3 ; XOR #n xor #n
XORIc 1
NEWSYM FxOpdC2A3 ; XOR #n xor #n
XORIc 2
NEWSYM FxOpdC3A3 ; XOR #n xor #n
XORIc 3
NEWSYM FxOpdC4A3 ; XOR #n xor #n
XORIc 4
NEWSYM FxOpdC5A3 ; XOR #n xor #n
XORIc 5
NEWSYM FxOpdC6A3 ; XOR #n xor #n
XORIc 6
NEWSYM FxOpdC7A3 ; XOR #n xor #n
XORIc 7
NEWSYM FxOpdC8A3 ; XOR #n xor #n
XORIc 8
NEWSYM FxOpdC9A3 ; XOR #n xor #n
XORIc 9
NEWSYM FxOpdCAA3 ; XOR #n xor #n
XORIc 10
NEWSYM FxOpdCBA3 ; XOR #n xor #n
XORIc 11
NEWSYM FxOpdCCA3 ; XOR #n xor #n
XORIc 12
NEWSYM FxOpdCDA3 ; XOR #n xor #n
XORIc 13
NEWSYM FxOpdCEA3 ; XOR #n xor #n
XORIc 14
NEWSYM FxOpdCFA3 ; XOR #n xor #n
XORIc 15
NEWSYM FxOpdD0 ; INC rn increase by one
INCRNc 0
NEWSYM FxOpdD1 ; INC rn increase by one
INCRNc 1
NEWSYM FxOpdD2 ; INC rn increase by one
INCRNc 2
NEWSYM FxOpdD3 ; INC rn increase by one
INCRNc 3
NEWSYM FxOpdD4 ; INC rn increase by one
INCRNc 4
NEWSYM FxOpdD5 ; INC rn increase by one
INCRNc 5
NEWSYM FxOpdD6 ; INC rn increase by one
INCRNc 6
NEWSYM FxOpdD7 ; INC rn increase by one
INCRNc 7
NEWSYM FxOpdD8 ; INC rn increase by one
INCRNc 8
NEWSYM FxOpdD9 ; INC rn increase by one
INCRNc 9
NEWSYM FxOpdDA ; INC rn increase by one
INCRNc 10
NEWSYM FxOpdDB ; INC rn increase by one
INCRNc 11
NEWSYM FxOpdDC ; INC rn increase by one
INCRNc 12
NEWSYM FxOpdDD ; INC rn increase by one
INCRNc 13
NEWSYM FxOpdDE ; INC rn increase by one
FETCHPIPE
mov eax,[SfxR0+14*4] ; Read Source
inc ax
mov [SfxR0+14*4],eax
mov [SfxSignZero],eax
CLRFLAGS
inc ebp
UpdateR14
FXReturn
NEWSYM FxOpdDF ; GETC transfer ROM buffer to color register
mov eax,[SfxRomBuffer]
FETCHPIPE
mov eax,[eax]
test byte[SfxPOR],04h
jz .nohighnibble
mov bl,al
shr bl,4
and al,0F0h
or al,bl
.nohighnibble
test byte[SfxPOR],08h
jnz .preserveupper
cmp [SfxCOLR],al
je .nocolchange
mov [SfxCOLR],al
and eax,0FFh
mov ebx,[fxbit01+eax*4]
mov [fxbit01pcal],ebx
mov ebx,[fxbit23+eax*4]
mov [fxbit23pcal],ebx
mov ebx,[fxbit45+eax*4]
mov [fxbit45pcal],ebx
mov ebx,[fxbit67+eax*4]
mov [fxbit67pcal],ebx
.nocolchange
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
.preserveupper
mov bl,[SfxCOLR]
and al,0Fh
and bl,0F0h
or al,bl
cmp [SfxCOLR],al
je .nocolchange
mov [SfxCOLR],al
and eax,0FFh
mov ebx,[fxbit01+eax*4]
mov [fxbit01pcal],ebx
mov ebx,[fxbit23+eax*4]
mov [fxbit23pcal],ebx
mov ebx,[fxbit45+eax*4]
mov [fxbit45pcal],ebx
mov ebx,[fxbit67+eax*4]
mov [fxbit67pcal],ebx
CLRFLAGS
inc ebp ; Increase program counter
FXReturn
NEWSYM FxOpdDFA2 ; RAMB set current RAM bank ; Verified
mov eax,[esi] ; Read Source
mov ebx,[SfxnRamBanks]
FETCHPIPE
dec ebx
and eax,ebx
mov dword [SfxRAMBR],eax
shl eax,16
add eax,[sfxramdata]
mov dword [SfxRAMMem],eax
CLRFLAGS
inc ebp
FXReturn
NEWSYM FxOpdDFA3 ; ROMB set current ROM bank ; Verified
mov eax,[esi] ; Read Source
and eax,07Fh
FETCHPIPE
mov dword [SfxROMBR],eax
mov eax,[SfxMemTable+eax*4]
mov [SfxCROM],eax
CLRFLAGS
inc ebp
FXReturn
NEWSYM FxOpdE0 ; DEC rn decrement by one
DECRNc 0
NEWSYM FxOpdE1 ; DEC rn decrement by one
DECRNc 1
NEWSYM FxOpdE2 ; DEC rn decrement by one
DECRNc 2
NEWSYM FxOpdE3 ; DEC rn decrement by one
DECRNc 3
NEWSYM FxOpdE4 ; DEC rn decrement by one
DECRNc 4
NEWSYM FxOpdE5 ; DEC rn decrement by one
DECRNc 5
NEWSYM FxOpdE6 ; DEC rn decrement by one
DECRNc 6
NEWSYM FxOpdE7 ; DEC rn decrement by one
DECRNc 7
NEWSYM FxOpdE8 ; DEC rn decrement by one
DECRNc 8
NEWSYM FxOpdE9 ; DEC rn decrement by one
DECRNc 9
NEWSYM FxOpdEA ; DEC rn decrement by one
DECRNc 10
NEWSYM FxOpdEB ; DEC rn decrement by one
DECRNc 11
NEWSYM FxOpdEC ; DEC rn decrement by one
DECRNc 12
NEWSYM FxOpdED ; DEC rn decrement by one
DECRNc 13
NEWSYM FxOpdEE ; DEC rn decrement by one
dec word[SfxR0+14*4]
FETCHPIPE
mov eax,[SfxR0+14*4] ; Read Source
mov [SfxSignZero],eax
UpdateR14
CLRFLAGS
inc ebp
FXReturn
NEWSYM FxOpdEF ; getb get byte from ROM at address R14 ; V
FETCHPIPE
mov eax,[SfxRomBuffer]
inc ebp
mov eax,[eax]
and eax,0FFh
; cmp edi,SfxR15
; je .nor15
mov [edi],eax ; Write DREG
CLRFLAGS
FXReturn
.nor15
or eax,8000h
mov [edi],eax ; Write DREG
CLRFLAGS
FXReturn
add eax,ebp
sub eax,[SfxCPB]
mov [SfxR15],eax
CLRFLAGS
FXReturn
NEWSYM FxOpdEFA1 ; getbh get high-byte from ROM at address R14 ; V
mov eax,[esi] ; Read Source
mov ebx,[SfxRomBuffer]
and eax,0FFh
FETCHPIPE
mov ah,[ebx]
inc ebp
mov [edi],eax ; Write DREG
CLRFLAGS
FXReturn
NEWSYM FxOpdEFA2 ; getbl get low-byte from ROM at address R14 ; V
mov eax,[esi] ; Read Source
mov ebx,[SfxRomBuffer]
and eax,0FF00h
FETCHPIPE
mov al,[ebx]
inc ebp
mov [edi],eax ; Write DREG
CLRFLAGS
FXReturn
NEWSYM FxOpdEFA3 ; getbs get sign extended byte from ROM at address R14 ; V
mov ebx,[SfxRomBuffer]
FETCHPIPE
movsx eax,byte[ebx]
inc ebp
mov [edi],ax ; Write DREG
CLRFLAGS
FXReturn
NEWSYM FxOpdF0 ; IWT RN,#xx immediate word transfer to register
IWTRNc 0
NEWSYM FxOpdF1 ; IWT RN,#xx immediate word transfer to register
IWTRNc 1
NEWSYM FxOpdF2 ; IWT RN,#xx immediate word transfer to register
IWTRNc 2
NEWSYM FxOpdF3 ; IWT RN,#xx immediate word transfer to register
IWTRNc 3
NEWSYM FxOpdF4 ; IWT RN,#xx immediate word transfer to register
IWTRNc 4
NEWSYM FxOpdF5 ; IWT RN,#xx immediate word transfer to register
IWTRNc 5
NEWSYM FxOpdF6 ; IWT RN,#xx immediate word transfer to register
IWTRNc 6
NEWSYM FxOpdF7 ; IWT RN,#xx immediate word transfer to register
IWTRNc 7
NEWSYM FxOpdF8 ; IWT RN,#xx immediate word transfer to register
IWTRNc 8
NEWSYM FxOpdF9 ; IWT RN,#xx immediate word transfer to register
IWTRNc 9
NEWSYM FxOpdFA ; IWT RN,#xx immediate word transfer to register
IWTRNc 10
NEWSYM FxOpdFB ; IWT RN,#xx immediate word transfer to register
IWTRNc 11
NEWSYM FxOpdFC ; IWT RN,#xx immediate word transfer to register
IWTRNc 12
NEWSYM FxOpdFD ; IWT RN,#xx immediate word transfer to register
IWTRNc 13
NEWSYM FxOpdFE ; IWT RN,#xx immediate word transfer to register
mov eax,[ebp]
mov cl,[ebp+2]
and eax,0FFFFh
add ebp,3
mov [SfxR0+14*4],eax
UpdateR14
CLRFLAGS
FXReturn
NEWSYM FxOpdFF ; IWT RN,#xx immediate word transfer to register
mov eax,[ebp]
mov cl,[ebp+2]
and eax,0FFFFh
mov ebp,[SfxCPB]
add ebp,eax
CLRFLAGS
FXReturn
NEWSYM FxOpdF0A1 ; LM RN,(XX) load word from RAM
LMRNc 0
NEWSYM FxOpdF1A1 ; LM RN,(XX) load word from RAM
LMRNc 1
NEWSYM FxOpdF2A1 ; LM RN,(XX) load word from RAM
LMRNc 2
NEWSYM FxOpdF3A1 ; LM RN,(XX) load word from RAM
LMRNc 3
NEWSYM FxOpdF4A1 ; LM RN,(XX) load word from RAM
LMRNc 4
NEWSYM FxOpdF5A1 ; LM RN,(XX) load word from RAM
LMRNc 5
NEWSYM FxOpdF6A1 ; LM RN,(XX) load word from RAM
LMRNc 6
NEWSYM FxOpdF7A1 ; LM RN,(XX) load word from RAM
LMRNc 7
NEWSYM FxOpdF8A1 ; LM RN,(XX) load word from RAM
LMRNc 8
NEWSYM FxOpdF9A1 ; LM RN,(XX) load word from RAM
LMRNc 9
NEWSYM FxOpdFAA1 ; LM RN,(XX) load word from RAM
LMRNc 10
NEWSYM FxOpdFBA1 ; LM RN,(XX) load word from RAM
LMRNc 11
NEWSYM FxOpdFCA1 ; LM RN,(XX) load word from RAM
LMRNc 12
NEWSYM FxOpdFDA1 ; LM RN,(XX) load word from RAM
LMRNc 13
NEWSYM FxOpdFEA1 ; LM RN,(XX) load word from RAM
xor eax,eax
mov cl,[ebp+2]
mov ax,[ebp]
mov ebx,[SfxRAMMem]
mov [SfxLastRamAdr],eax
add [SfxLastRamAdr],ebx
mov dl,[eax+ebx]
xor eax,1
add ebp,3
mov dh,[eax+ebx]
mov word [SfxR0+14*4],dx ; Store Word
UpdateR14
CLRFLAGS
FXReturn
NEWSYM FxOpdFFA1 ; LM RN,(XX) load word from RAM
FETCHPIPE
mov eax,ecx
inc ebp
FETCHPIPE
inc ebp
mov ah,cl
FETCHPIPE
mov ebx,[SfxRAMMem]
mov [SfxLastRamAdr],eax
add [SfxLastRamAdr],ebx
mov dl,[eax+ebx]
xor eax,1
mov dh,[eax+ebx]
and edx,0FFFFh
mov ebp,[SfxCPB]
add ebp,edx
CLRFLAGS
FXReturn
NEWSYM FxOpdF0A2 ; SM (XX),RN store word in RAM
SMRNc 0
NEWSYM FxOpdF1A2 ; SM (XX),RN store word in RAM
SMRNc 1
NEWSYM FxOpdF2A2 ; SM (XX),RN store word in RAM
SMRNc 2
NEWSYM FxOpdF3A2 ; SM (XX),RN store word in RAM
SMRNc 3
NEWSYM FxOpdF4A2 ; SM (XX),RN store word in RAM
SMRNc 4
NEWSYM FxOpdF5A2 ; SM (XX),RN store word in RAM
SMRNc 5
NEWSYM FxOpdF6A2 ; SM (XX),RN store word in RAM
SMRNc 6
NEWSYM FxOpdF7A2 ; SM (XX),RN store word in RAM
SMRNc 7
NEWSYM FxOpdF8A2 ; SM (XX),RN store word in RAM
SMRNc 8
NEWSYM FxOpdF9A2 ; SM (XX),RN store word in RAM
SMRNc 9
NEWSYM FxOpdFAA2 ; SM (XX),RN store word in RAM
SMRNc 10
NEWSYM FxOpdFBA2 ; SM (XX),RN store word in RAM
SMRNc 11
NEWSYM FxOpdFCA2 ; SM (XX),RN store word in RAM
SMRNc 12
NEWSYM FxOpdFDA2 ; SM (XX),RN store word in RAM
SMRNc 13
NEWSYM FxOpdFEA2 ; SM (XX),RN store word in RAM
SMRNc 14
NEWSYM FxOpdFFA2 ; SM (XX),RN store word in RAM
FETCHPIPE
mov ebx,ebp
sub ebx,[SfxCPB]
mov eax,ecx
inc ebp
FETCHPIPE
inc ebp
mov ah,cl
FETCHPIPE
mov dx,bx
mov ebx,[SfxRAMMem]
mov [SfxLastRamAdr],eax
add [SfxLastRamAdr],ebx
mov [eax+ebx],dl
xor eax,1
inc ebp
mov [eax+ebx],dh
CLRFLAGS
FXReturn
NEWSYM FxEmu2CAsmEnd
| 27.555903 | 97 | 0.66417 |
e75709270f422c724e42613a7fdea23cf8e232cc | 1,320 | asm | Assembly | decreasoner.macosx/software/relsat-dist/gmp-3.1/tune/hppa.asm | problem-frames/openpf | 55100bd9cca61a182fc00cd3818bd59a6343ae6e | [
"BSD-3-Clause"
] | 1 | 2019-05-03T20:03:11.000Z | 2019-05-03T20:03:11.000Z | decreasoner.x86/software/relsat-dist/gmp-3.1/tune/hppa.asm | problem-frames/openpf | 55100bd9cca61a182fc00cd3818bd59a6343ae6e | [
"BSD-3-Clause"
] | null | null | null | decreasoner.x86/software/relsat-dist/gmp-3.1/tune/hppa.asm | problem-frames/openpf | 55100bd9cca61a182fc00cd3818bd59a6343ae6e | [
"BSD-3-Clause"
] | null | null | null | dnl HPPA 32-bit time stamp counter access routine.
dnl Copyright (C) 2000 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License as
dnl published by the Free Software Foundation; either version 2.1 of the
dnl License, or (at your option) any later version.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with the GNU MP Library; see the file COPYING.LIB. If
dnl not, write to the Free Software Foundation, Inc., 59 Temple Place -
dnl Suite 330, Boston, MA 02111-1307, USA.
dnl Don't include this, it's not ready for hppa
dnl include(`../config.m4')
dnl void speed_cyclecounter (unsigned p[2]);
dnl
dnl Get the HPPA interval timer.
.code
.export speed_cyclecounter
speed_cyclecounter
.proc
.callinfo frame=0,no_calls
.entry
mfctl %cr16,%r28
stw %r28,0(0,%r26)
bv 0(%r2)
.exit
stw %r0,4(0,%r26)
.procend
| 32.195122 | 74 | 0.756061 |
e7b733f21ca6167af1a82c405bdde8d54ad9238e | 614 | asm | Assembly | programs/oeis/329/A329728.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/329/A329728.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/329/A329728.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A329728: Partial sums of A092261.
; 1,4,8,9,15,27,35,36,37,55,67,71,85,109,133,134,152,155,175,181,213,249,273,277,278,320,321,329,359,431,463,464,512,566,614,615,653,713,769,775,817,913,957,969,975,1047,1095,1099,1100,1103,1175,1189,1243,1246,1318,1326,1406,1496,1556,1580,1642,1738,1746,1747,1831,1975,2043,2061,2157,2301,2373,2374,2448,2562,2566,2586,2682,2850,2930,2936,2937,3063,3147,3179,3287,3419,3539,3551,3641,3659,3771,3795,3923,4067,4187,4191,4289,4292,4304,4305
lpb $0
mov $2,$0
sub $0,1
seq $2,92261 ; Sum of unitary, squarefree divisors of n, including 1.
add $1,$2
lpe
add $1,1
mov $0,$1
| 51.166667 | 439 | 0.73127 |
cd92298b942e7ab7d060cfed5a9ca2b9ab70b0e8 | 371 | asm | Assembly | programs/oeis/257/A257285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/257/A257285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/257/A257285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A257285: a(n) = 4*5^n - 3*4^n.
; 1,8,52,308,1732,9428,50212,263348,1365892,7026068,35916772,182729588,926230852,4681485908,23608756132,118849087028,597466660612,3000218204948,15052630632292,75469311591668,378171191679172,1894154493279188,9483966605929252
mov $1,3
mov $2,$0
mov $3,3
lpb $2,1
add $1,$3
mul $1,4
sub $2,1
mul $3,5
lpe
sub $1,3
div $1,3
add $1,1
| 23.1875 | 223 | 0.733154 |
3451824f92b22b5172c5c1521a097209617df214 | 829 | asm | Assembly | oeis/142/A142562.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142562.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142562.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142562: Primes congruent to 32 mod 53.
; Submitted by Jon Maiga
; 191,509,827,1039,1993,2099,2311,2417,3371,3583,4007,4219,4643,5279,6551,6763,6869,7187,7717,7823,8353,9413,11003,11321,12487,12911,13229,13441,13759,14713,15031,15137,15349,15667,15773,16091,17257,17681,18211,19483,19801,20543,21179,21391,22027,22133,22769,23087,24359,24571,24677,24889,26161,26267,26479,26903,27539,27751,28069,28387,28493,29023,29129,30931,31249,31567,31991,32203,32309,32839,33581,34217,34429,34747,35171,36761,36973,37397,38351,38669,39199,39623,40153,40471,40577,41213,41849
mov $1,4
mov $2,$0
add $2,6
pow $2,2
lpb $2
add $1,27
sub $2,1
mov $3,$1
add $1,3
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,23
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,25
| 34.541667 | 498 | 0.729795 |
7fee2726faf1e584a54b97f62328bac1aec3af4e | 792 | asm | Assembly | programs/oeis/132/A132232.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/132/A132232.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/132/A132232.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A132232: Primes congruent to 11 (mod 30).
; 11,41,71,101,131,191,251,281,311,401,431,461,491,521,641,701,761,821,881,911,941,971,1031,1061,1091,1151,1181,1301,1361,1451,1481,1511,1571,1601,1721,1811,1871,1901,1931,2081,2111,2141,2351,2381,2411,2441,2531,2591,2621,2711,2741,2801,2861,3011,3041,3191,3221,3251,3371,3461,3491,3581,3671,3701,3761,3821,3851,3881,3911,4001,4091,4211,4241,4271,4391,4421,4451,4481,4691,4721,4751,4871,4931,5021,5051,5081,5171,5231,5261,5351,5381,5441,5471,5501,5531,5591,5651,5711,5741,5801
mov $2,$0
add $2,1
pow $2,2
lpb $2
add $1,10
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,20
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,25
mov $0,$1
| 33 | 476 | 0.703283 |
071e0abd63d1aa190bed3594f1ddcb9a82727950 | 315 | asm | Assembly | programs/oeis/228/A228949.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/228/A228949.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/228/A228949.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A228949: Coins left when packing boomerangs into n X n coins.
; 4,3,7,13,6,13,22,9,19,31,12,25,40,15,31,49,18,37,58,21,43,67,24,49,76,27,55,85,30,61,94,33,67,103,36,73,112,39,79,121,42,85,130,45,91,139,48,97,148,51,103,157,54,109,166,57
mov $1,$0
add $0,1
mov $2,$1
add $2,5
mod $2,3
add $2,1
mul $0,$2
add $0,1
| 26.25 | 174 | 0.653968 |
402cfebf7ec250e310c8435d84285557d25007c7 | 655 | asm | Assembly | programs/oeis/016/A016850.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/016/A016850.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/016/A016850.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A016850: a(n) = (5*n)^2.
; 0,25,100,225,400,625,900,1225,1600,2025,2500,3025,3600,4225,4900,5625,6400,7225,8100,9025,10000,11025,12100,13225,14400,15625,16900,18225,19600,21025,22500,24025,25600,27225,28900,30625,32400,34225,36100,38025,40000,42025,44100,46225,48400,50625,52900,55225,57600,60025,62500,65025,67600,70225,72900,75625,78400,81225,84100,87025,90000,93025,96100,99225,102400,105625,108900,112225,115600,119025,122500,126025,129600,133225,136900,140625,144400,148225,152100,156025,160000,164025,168100,172225,176400,180625,184900,189225,193600,198025,202500,207025,211600,216225,220900,225625,230400,235225,240100,245025
pow $0,2
mul $0,25
| 109.166667 | 607 | 0.807634 |
e7e147433257ae05603a5b3fea66a3d1978aa7c4 | 370 | asm | Assembly | test/asm_com/align4.asm | nigelperks/BasicAssembler | 13dcc861254fa6c19f1d450682b4495bbebcf934 | [
"MIT"
] | null | null | null | test/asm_com/align4.asm | nigelperks/BasicAssembler | 13dcc861254fa6c19f1d450682b4495bbebcf934 | [
"MIT"
] | null | null | null | test/asm_com/align4.asm | nigelperks/BasicAssembler | 13dcc861254fa6c19f1d450682b4495bbebcf934 | [
"MIT"
] | null | null | null | ; Align segments in group
IDEAL
SEGMENT MAIN
ASSUME CS:ALL,DS:ALL
ORG 100h
start:
mov si, OFFSET _a
mov di, OFFSET _b
mov bx, OFFSET _c
mov ax, [WORD PTR _b]
int 20h
ENDS MAIN
SEGMENT SEG1 PAGE
_a DD 12345678h
ENDS SEG1
SEGMENT SEG2
_b DD 0DEADFACEh
ENDS SEG2
SEGMENT SEG3 PAGE
_c DD 0DEADBEEFh
ENDS SEG3
GROUP ALL MAIN,SEG1,SEG2,SEG3
END start
| 11.935484 | 30 | 0.727027 |
40b5fad02e5b753fe6b9bf779497b65025d5d260 | 440 | asm | Assembly | oeis/265/A265609.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/265/A265609.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/265/A265609.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A265609: Array read by ascending antidiagonals: A(n,k) the rising factorial, also known as Pochhammer symbol, for n >= 0 and k >= 0.
; Submitted by Christian Krause
; 1,1,0,1,1,0,1,2,2,0,1,3,6,6,0,1,4,12,24,24,0,1,5,20,60,120,120,0,1,6,30,120,360,720,720,0,1,7,42,210,840,2520,5040,5040,0,1,8,56,336,1680,6720,20160,40320,40320,0
lpb $0
add $2,1
sub $0,$2
lpe
add $1,1
sub $2,1
lpb $0
sub $0,1
mul $1,$2
sub $2,1
lpe
mov $0,$1
| 25.882353 | 164 | 0.65 |
dc0b595b98eac4294720d7dbd690bda690a424b3 | 483 | asm | Assembly | test/asm/quine.asm | michealccc/rgbds | b51e1c7c2c4ce2769f01e016967d0115893a7a88 | [
"MIT"
] | 522 | 2017-02-25T21:10:13.000Z | 2020-09-13T14:26:18.000Z | test/asm/quine.asm | michealccc/rgbds | b51e1c7c2c4ce2769f01e016967d0115893a7a88 | [
"MIT"
] | 405 | 2017-02-25T21:32:37.000Z | 2020-09-13T16:43:29.000Z | test/asm/quine.asm | michealccc/rgbds | b51e1c7c2c4ce2769f01e016967d0115893a7a88 | [
"MIT"
] | 84 | 2017-02-25T21:10:26.000Z | 2020-09-13T14:28:25.000Z | MACRO N
FOR R,1,_NARG+1
PRINT STRSUB("\n\"\\ PR1NT,ABCDEFGHIMnOSU2_+-()<>",\<R>+1,1)
ENDR
REPT R-2
PRINT"\1,"
SHIFT
ENDR
PRINT"\1\n"
ENDM
N 19,10,12,5,21,3,7,0,15,21,5,3,5,9,6,9,25,7,10,5,16,26,6,0,4,5,18,7,8,3,22,8,5,22,23,11,28,1,2,20,2,1,2,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,9,2,30,5,31,26,6,9,6,29,0,14,7,13,5,0,5,14,4,8,3,5,27,24,0,4,5,18,7,8,1,2,6,9,1,0,22,17,18,15,8,0,14,7,13,5,0,4,5,18,7,8,1,2,6,2,20,1,0,14,7,13,19,0,3,7,3
| 40.25 | 344 | 0.602484 |
4ca44bc6bc996a2ca153068e0e541b851329fdf9 | 38,521 | asm | Assembly | Appl/Calendar/Holiday/holidayFile.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Calendar/Holiday/holidayFile.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Calendar/Holiday/holidayFile.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1993 -- All Rights Reserved
PROJECT: PC GEOS J
MODULE: JCalendar/Holiday
FILE: holidayFile.asm
AUTHOR: TORU TERAUCHI, JUL 28, 1993
ROUTINES:
NAME DESCRIPTION
---- -----------
Basic Utility :
AsciiToInt Change data from Ascii to Positive number
IntToAscii Change data from Positive number to Ascii char
GotoHolidayDataDir Change to the holiday directory
DataFileOpen Open a data file
DataFileClose Close a data file
ReadWordData Read one word data from text file
WriteWordData Write one word data to text file
WriteSpaceData Write one word ' 'to text file
WriteTabData Write one word TAB to text file
WriteReturnData Write RETRUN code to text file
ErasePreviousData Erase previous data
DataTestError Error function for debug
Specific Utility :
ReadKeyCodeData Read key code data data
WriteKeyCodeData Write key code data data
ReadYearData Read year data
ReadDateData Read date data
WriteDateData Write date data
ReadMonthData Read month data
WriteMonthData Write month data
ReadWeekData Read week data
WriteWeekData Write week data
SkipNatinalHoliday Skip natinal holiday data area
REVISION HISTORY:
NAME DATE DESCRIPTION
---- ---- -----------
Tera 6/16/93 Initial revision
Tera 7/25/93 add many routines
DESCRIPTION:
Read / write holiday data from file.
$Id: holidayFile.asm,v 1.1 97/04/04 14:49:33 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HolidayCode segment resource
;
;================= Basic Utility ==============================================
;
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AsciiToInt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change data from Ascii to Positive number
CALLED BY: ReadYearData
ReadDateData
PASS: ds = dgroup
cl = char length
di = offset char data
RETURN: ax = int
error = carry set
not number or over flow
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
max 16bit number
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AsciiToInt proc near
uses bx, dx, di, cx, bx
.enter
clr bh
clr ch
clr ax
; Check char length
;
cmp cl, 0h
jna charError ; length <= 0
cmp cl, 5h
ja charError ; length > 5
mainLoop:
; Change char to int (1)
;
mov dx, 000ah ; dx = 10
mul dx ; dx:ax = ax * dx
cmp dh, 0h
jne charError ; over flow
mov bl, ds:[di] ; copy one char
; Check char
;
cmp bl, DFF_ZERO
jb charError ; char < DFF_ZERO
cmp bl, DFF_9
ja charError ; char > DFF_9
; Change char to int (2)
;
sub bl, DFF_ZERO
add ax, bx
jb charError ; over flow
inc di ; next char
loop mainLoop ; loop cl times
clc ; reset carry
jmp done
charError:
stc ; set carry
done:
.leave
ret
AsciiToInt endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IntToAscii
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change data from Positive number to Ascii char
CALLED BY: WriteDateData
GetYearMonthDate
PASS: ds = dgroup
ax = int
di = offset char data
RETURN: cx = char length
ds:[di] = ascii char
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
max 16bit number
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IntToAscii proc near
uses ax, bx, dx, di
.enter
clr dx
clr cx
mov bx, 000ah ; bx = 10
mainLoop:
div bx ; ax..dx = dx:ax / bx
push dx ; save dx
inc cx
tst ax ; check end
je exit
clr dx
jmp mainLoop
exit:
; Int to Ascii
;
mov ax, cx ; save length cx->ax
changeLoop:
pop dx
add dx, DFF_ZERO
mov ds:[di], dx ; save one char
inc di ; set next char
loop changeLoop
mov cx, ax ; restore length ax->cx
.leave
ret
IntToAscii endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GotoHolidayDataDir
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change to the directory that contains the holiday data files.
CALLED BY: SetHLoadData ( SetHolidayInteractionClass )
SetHSaveData ( SetHolidayInteractionClass )
PASS:
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/26/93 Initial version
Tera 9/24/93 DBCS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LocalDefNLString programDirName <"HOLIDAY",0> ; MS-DOS directry name
GotoHolidayDataDir proc near
uses ax, bx, dx, ds
.enter
mov ax, SP_USER_DATA
call FileSetStandardPath
segmov ds, cs
clr bx
mov dx, offset programDirName
call FileSetCurrentPath
jnc done
call FileCreateDir
EC < ERROR_C -1 ; can't create directry >
call FileSetCurrentPath
done:
.leave
ret
GotoHolidayDataDir endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DataFileOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Open a data file
CALLED BY: SetHLoadData ( SetHolidayInteractionClass )
SetHSaveData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN: carry set if it can not open file.
ax = ZERO if it creates a new file.
NON ZERO other
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
If there is not the file, it makes a new file.
If it can open file, it sets the file handle to ds:[fileHandle].
If it can not open file, it clears ds:[fileHandle].
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LocalDefNLString fileName <"holiday.dat",0> ; MS-DOS file name
DataFileOpen proc near
uses dx, cx, bx, es, ds
.enter
segmov es, ds ; save ds->es
clr ds:[fileHandle] ; clear file handle buffer
; Open File
;
mov al, FILE_ACCESS_RW or FILE_DENY_RW
segmov ds, cs
mov dx, offset fileName ; set file name
call FileOpen
jb createNewfile ; can't open file
jmp openFile
; Create a New File
;
createNewfile:
mov ah, FILE_CREATE_ONLY or mask FCF_NATIVE
mov al, FILE_ACCESS_RW or FILE_DENY_RW
mov cx, FILE_ATTR_NORMAL
call FileCreate ; dx:fileName
jb createError ; can't create file
segmov ds, es ; ds <- dgroup
mov ds:[fileHandle], ax ; save PC/GEOS file handle
mov bx, 1
call WriteKeyCodeData
mov bx, 2
call WriteKeyCodeData
mov bx, 3
call WriteKeyCodeData
mov bx, 4
call WriteKeyCodeData
clr ax ; clear ax
clc ; reset carry
jmp done
createError:
stc ; set carry
jmp done
openFile:
segmov ds, es ; ds <- dgroup
mov ds:[fileHandle], ax ; save PC/GEOS file handle
clc ; reset carry
done:
.leave
ret
DataFileOpen endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DataFileClose
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Close a data file
CALLED BY: SetHLoadData ( SetHolidayInteractionClass )
SetHSaveData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DataFileClose proc near
uses ax, bx
.enter
; Check handle
;
tst ds:[fileHandle] ; check handle
jz done ; not opened
; Close File
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
call FileClose
EC < ERROR_C -1 ; can't close file >
clr ds:[fileHandle] ; clear file handle buffer
done:
.leave
ret
DataFileClose endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadWordData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read one word data from text file
CALLED BY: ReadKeyCodeData
ReadYearData
ReadDateData
ReadMonthData
ReadWeekData
SkipNatinalHoliday
PASS: ds = dgroup
RETURN: carry set = end of file or error
error - over charData max length
- can't read data
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
To check correct word
DFF_SZ < dummyData < DFF_ZERO
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadWordData proc near
uses bx, ax, cx, dx, di, si
.enter
; Clear charData, charDataNum
;
clr ds:[charDataNum]
mov cx, size charData
clr al
lea di, ds:[charData]
rep stosb ; repeat cx times
; Read 1 char
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
mov cx, 1h ; number of bytes to rad
lea dx, ds:[dummyData] ; set buffer from which to read
loop0:
call FileRead
jc fileReadError ; read error
cmp ds:[dummyData], DFF_COMMENT ; check comment
je readEndOfLine
cmp ds:[dummyData], DFF_ZERO ; check char
jb loop0 ; dummyData < DFF_ZERO
cmp ds:[dummyData], DFF_SZ
ja loop0 ; dummyData > DFF_SZ
; Get a word
;
mov dl, ds:[dummyData] ; copy first char
mov ds:[charData], dl
lea dx, ds:[charData] ; set buffer from which to read
lp01:
inc dx ; set next buffer
inc ds:[charDataNum]
cmp ds:[charDataNum], size charData ; check word size
jae charNumberError
call FileRead
jc fileReadError ; can't read data
mov si, dx
cmp byte ptr ds:[si], DFF_ZERO ; check char
jb lp011 ; dummyData < DFF_ZERO
cmp byte ptr ds:[si], DFF_SZ
ja lp011 ; dummyData > DFF_SZ
jmp lp01
; End of a word
;
lp011:
; Prevent FileRead Error based on the half of EOF code.
;
call FileRead
mov dx, 1h
clr cx
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
negdw cxdx
call FilePos ; rewind 1 byte
mov byte ptr ds:[si], 0h ; clear last char
clc ; reset carry
jmp done
; Read end of line
;
readEndOfLine:
loop1:
call FileRead
jc fileReadError ; can't read data
cmp ds:[dummyData], DFF_RETURN1 ; check return flag
jne lp11
call FileRead
jc fileReadError ; can't read data
cmp ds:[dummyData], DFF_RETURN2 ; check return flag
je loop0
lp11:
jmp loop1
; Check end of file
;
fileReadError:
cmp ax, ERROR_SHORT_READ_WRITE ; check end of file
EC< ERROR_NZ -1 ; not end of file >
stc ; set carry
jmp done
; Error
;
charNumberError:
EC< ERROR_C -1 ; over max char length >
stc ; set carr
jmp done
done:
.leave
ret
ReadWordData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteWordData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write one word data to text file
CALLED BY: WriteKeyCodeData
WriteDateData
WriteMonthData
WriteWeekData
GetYearMonthDate
PASS: ds = dgroup
cx = number of bytes to write
ds:dx = buffer from which to write
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteWordData proc near
uses ax, bx
.enter
; Write word data
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
call FileWrite
EC< ERROR_C -1 ; can't write data >
.leave
ret
WriteWordData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteSpaceData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write one word ' 'to text file
CALLED BY: WriteDateData
WriteWeekData
GetYearMonthDate
PASS: ds = dgroup
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/28/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteSpaceData proc near
uses ax, bx, cx, dx
.enter
; Write word data
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
mov cx, 1h ; number of bytes to write
mov ds:[dummyData], DFF_SPACE ; set data
lea dx, ds:[dummyData] ; set buffer
call FileWrite
EC< ERROR_C -1 ; can't write data >
.leave
ret
WriteSpaceData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteTabData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write one word TAB to text file
CALLED BY: WriteWeekData
GetYearMonthDate
PASS: ds = dgroup
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/28/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteTabData proc near
uses ax, bx, cx, dx
.enter
; Write word data
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
mov cx, 1h ; number of bytes to write
mov ds:[dummyData], DFF_TAB ; set data
lea dx, ds:[dummyData] ; set buffer
call FileWrite
EC< ERROR_C -1 ; can't write data >
.leave
ret
WriteTabData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteReturnData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write RETRUN code to text file
CALLED BY: WriteKeyCodeData
WriteWeekData
GetYearMonthDate
PASS: ds = dgroup
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93 EC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteReturnData proc near
uses ax, bx, cx, dx
.enter
; Write word data
;
mov al, FILE_NO_ERRORS ; set flags
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
mov cx, 2h ; number of bytes to write
mov ds:[dummyData], DFF_RETURN1 ; set Return Code data
mov ds:[dummyData]+1, DFF_RETURN2
lea dx, ds:[dummyData] ; set buffer
call FileWrite
EC< ERROR_C -1 ; can't write data >
.leave
ret
WriteReturnData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ErasePreviousData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Erase previous data
CALLED BY: SetHWriteData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/28/93 Bug fix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ErasePreviousData proc near
uses ax, bx, cx, dx
.enter
; Get the current file position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clrdw cxdx ; set offset to zero
call FilePos ; dx:ax <- current position
push dx, ax ; save current position (dx:ax)
; Set the file position to the end of the file
;
mov al, FILE_POS_END ; FilePosMoe
; bx : file handle
clrdw cxdx ; set offset to zero
call FilePos ; dx:ax <- new file position
mov cx, dx
mov bx, ax ; move end position to cx:bx
; Check file position
;
pop dx, ax ; restore current position
cmpdw cxbx, dxax
je done ; end == current position
; Count the byte to reset
;
subdw cxbx, dxax ; end - current position
jc done ; end < current position
mov dx, bx
push cx, dx ; save count (cx:dx)
; Reset the file position to the current position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
negdw cxdx
call FilePos
pop cx, dx ; restore count (cx:dx)
; Write Space
;
subdw cxdx, 2h ; 2h : end of file code size??
mov al, FILE_NO_ERRORS ; set flags
mov ds:[dummyData], DFF_SPACE ; set dummy data
writeLoop:
cmpdw cxdx, 0h ; chech count <= 0
jng done
decdw cxdx ; dec count
push cx, dx ; save count
mov cx, 1h ; number of bytes to write
lea dx, ds:[dummyData] ; set buffer
call FileWrite
pop cx, dx ; restore count
jc done ; can't write data
jmp writeLoop
done:
.leave
ret
ErasePreviousData endp
;
;================= Specific Utility ===========================================
;
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadKeyCodeData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read key code data data
CALLED BY: SetHReadData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN: bx = 0 : file end or read error
1 : National Holiday
2 : Repeat Holiday
3 : Personal Holiday
4 : Personal Weekday
5 : not key code
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/24/93 Error check
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadKeyCodeData proc near
uses ax, di, cx, si, es
.enter
mov ax, offset charData ; *ds:ax - charData
segmov es, ds ; cmpsb use es
clr bx
;mainLoop:
; Read one word data
;
call ReadWordData
jc done ; end of file or error
; Check the word
;
mov di, ax ; set charData
mov cx, size HF_nation
mov si, offset HF_nation
lp1: cmpsb ; cmp 'nation'
jne endlp1
loop lp1
mov bx, 1h ; set data
jmp done
endlp1:
mov di, ax ; set charData
mov cx, size HF_repeat
mov si, offset HF_repeat
lp2: cmpsb ; cmp 'repeat'
jne endlp2
loop lp2
mov bx, 2h ; set data
jmp done
endlp2:
mov di, ax ; set charData
mov cx, size HF_holiday
mov si, offset HF_holiday
lp3: cmpsb ; cmp 'holiday'
jne endlp3
loop lp3
mov bx, 3h ; set data
jmp done
endlp3:
mov di, ax ; set charData
mov cx, size HF_weekday
mov si, offset HF_weekday
lp4: cmpsb ; cmp 'weekday'
jne endlp4
loop lp4
mov bx, 4h ; set data
jmp done
endlp4:
; Not key code data
;
mov bx, 5h ; set data
; jmp mainLoop
done:
.leave
ret
ReadKeyCodeData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteKeyCodeData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write key code data data
CALLED BY: DataFileOpen
SetHWriteData ( SetHolidayInteractionClass )
PASS: ds = dgroup
bx = 0 : -
1 : National Holiday
2 : Repeat Holiday
3 : Personal Holiday
4 : Personal Weekday
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteKeyCodeData proc near
uses cx, dx
.enter
cmp bx, 1
jne next2
mov cx, size HF_nation
lea dx, ds:[HF_nation]
jmp write
next2:
cmp bx, 2
jne next3
mov cx, size HF_repeat
lea dx, ds:[HF_repeat]
jmp write
next3:
cmp bx, 3
jne next4
mov cx, size HF_holiday
lea dx, ds:[HF_holiday]
jmp write
next4:
cmp bx, 4
jne next5
mov cx, size HF_weekday
lea dx, ds:[HF_weekday]
jmp write
next5:
jmp done ; other
write:
call WriteWordData
call WriteReturnData
done:
.leave
ret
WriteKeyCodeData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadYearData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read year data
CALLED BY: SetYearMonthDate
PASS: ds = dgroup
RETURN: ax = number of a year
0 : not year
carry set = end of file or read error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadYearData proc near
uses di, bx, cx, dx
.enter
; Read one word data
;
call ReadWordData
jc readError ; end of file or error
; Check the word length
;
mov cx, ds:[charDataNum] ; set char length
cmp cx, 4h ; year char length == 4
jne notYear
; Change year char to int
;
; cx : char length
lea di, ds:[charData] ; set char data address
call AsciiToInt ; ax : int data
jb notYear ; not number
cmp ax, 1900 ; year >= 1900
jb notYear
; jmp findYear
; Find year data
;
;findYear:
clc ; reset carry
jmp done
; File read error
;
readError:
clr ax ; clear ax
stc ; set carry
jmp done
; Not year number
;
notYear:
; Reset a file's read position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clr cx
mov dx, ds:[charDataNum] ; cx:dx offset
incdw cxdx
negdw cxdx
call FilePos ; set a file's read position
clr ax ; clear ax
clc ; reset carry
; jmp done
done:
.leave
ret
ReadYearData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadDateData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read date data
CALLED BY: SetMonthDate
PASS: ds = dgroup
RETURN: cx = date low
dx = date high
carry set = end of file or read error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadDateData proc near
uses di, ax, bx
.enter
lea di, ds:[charData] ; set char data address
clrdw dxcx
mainLoop:
push cx ; save cx
; Read one word data
;
call ReadWordData
jb readError ; end of file or error
; Check the word length
;
mov cx, ds:[charDataNum] ; set char length
cmp cx, 2h ; date char <= 2 length
ja notDate
; Change date char to int
;
; cx : char length
; di : char data address
call AsciiToInt ; ax : int data
jb notDate ; not number
cmp ax, 31 ; date <= 31
ja notDate
; Make date mask
;
mov cx, ax ; set counter
movdw bxax, 1h ; set 1 bit
bitShift:
shldw bxax
loop bitShift
pop cx ; restore cx
; bxax : mask data
or dx, bx ; dxcx : total data
or cx, ax
jmp mainLoop ; next date
; File read error
;
readError:
pop cx ; restore cx
stc ; set carry
jmp done
; Not date number
;
notDate:
push dx ; save dx
; Reset a file's read position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clr cx
mov dx, ds:[charDataNum] ; cx:dx offset
incdw cxdx
negdw cxdx
call FilePos ; set a file's read position
pop cx, dx ; restore cx, dx
clc ; reset carry
; jmp done
done:
.leave
ret
ReadDateData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteDateData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write date data
CALLED BY: GetYearMonthDate
PASS: ds = dgroup
cx = date low
dx = date high
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteDateData proc near
uses di, ax, bx, cx, dx
.enter
lea di, ds:[charData] ; set char data address
mov bx, cx ; mov date low -> bx
clr ax ; clear date
shrdw dxbx
mov cx, 31 ; set counter
bitShift:
inc ax
shrdw dxbx
jnb next
; Write date
;
push cx, dx ; save cx, dx
; ds:di - char data
; ax - int
call IntToAscii ; cx - char length
mov dx, di ; ds:dx - char data
call WriteWordData
call WriteSpaceData
pop cx, dx ; restore cx, dx
next: loop bitShift
.leave
ret
WriteDateData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadMonthData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read month data
CALLED BY: SetMonthDate
PASS: ds = dgroup
RETURN: bx = number for a munth
0 : not month data
carry set = end of file or read error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadMonthData proc near
uses di, cx, si, ax, cx, dx, es
.enter
mov ax, offset charData
segmov es, ds ; cmpsb use es
; Read one word data
;
call ReadWordData
jb readError ; end of file or error
; Check the word length
;
mov cx, ds:[charDataNum] ; set char length
cmp cx, 3h ; month char length == 3
jne notMonth
; Check the word
;
mov di, ax ; set charData
mov cx, size HF_january
mov si, offset HF_january
lp1: cmpsb ; cmp 'january'
jne endlp1
loop lp1
mov bx, 1h ; set data
jmp findMonth
endlp1:
mov di, ax ; set charData
mov cx, size HF_february
mov si, offset HF_february
lp2: cmpsb ; cmp 'february'
jne endlp2
loop lp2
mov bx, 2h ; set data
jmp findMonth
endlp2:
mov di, ax ; set charData
mov cx, size HF_march
mov si, offset HF_march
lp3: cmpsb ; cmp 'march'
jne endlp3
loop lp3
mov bx, 3h ; set data
jmp findMonth
endlp3:
mov di, ax ; set charData
mov cx, size HF_april
mov si, offset HF_april
lp4: cmpsb ; cmp 'HF_april'
jne endlp4
loop lp4
mov bx, 4h ; set data
jmp findMonth
endlp4:
mov di, ax ; set charData
mov cx, size HF_may
mov si, offset HF_may
lp5: cmpsb ; cmp 'may'
jne endlp5
loop lp5
mov bx, 5h ; set data
jmp findMonth
endlp5:
mov di, ax ; set charData
mov cx, size HF_june
mov si, offset HF_june
lp6: cmpsb ; cmp 'june'
jne endlp6
loop lp6
mov bx, 6h ; set data
jmp findMonth
endlp6:
mov di, ax ; set charData
mov cx, size HF_july
mov si, offset HF_july
lp7: cmpsb ; cmp 'july'
jne endlp7
loop lp7
mov bx, 7h ; set data
jmp findMonth
endlp7:
mov di, ax ; set charData
mov cx, size HF_august
mov si, offset HF_august
lp8: cmpsb ; cmp 'august'
jne endlp8
loop lp8
mov bx, 8h ; set data
jmp findMonth
endlp8:
mov di, ax ; set charData
mov cx, size HF_september
mov si, offset HF_september
lp9: cmpsb ; cmp 'september'
jne endlp9
loop lp9
mov bx, 9h ; set data
jmp findMonth
endlp9:
mov di, ax ; set charData
mov cx, size HF_october
mov si, offset HF_october
lp10: cmpsb ; cmp 'october'
jne endlp10
loop lp10
mov bx, 10 ; set data
jmp findMonth
endlp10:
mov di, ax ; set charData
mov cx, size HF_november
mov si, offset HF_november
lp11: cmpsb ; cmp 'november'
jne endlp11
loop lp11
mov bx, 11 ; set data
jmp findMonth
endlp11:
mov di, ax ; set charData
mov cx, size HF_december
mov si, offset HF_december
lp12: cmpsb ; cmp 'december'
jne endlp12
loop lp12
mov bx, 12 ; set data
jmp findMonth
endlp12:
; jmp notMonth
; Not january - december
;
notMonth:
; Reset a file's read position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clr cx
mov dx, ds:[charDataNum] ; cx:dx offset
incdw cxdx
negdw cxdx
call FilePos ; set a file's read position
clr bx ; clear data
clc ; reset carry
jmp done
; Read file error
;
readError:
clr bx ; clear data
stc ; set carry
jmp done
; Find month
;
findMonth:
clc ; reset carry
;jmp done
done:
.leave
ret
ReadMonthData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteMonthData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write month data
CALLED BY: GetYearMonthDate
PASS: ds = dgroup
bl = number of a month ( 1-12 )
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteMonthData proc near
uses cx, dx
.enter
cmp bl, 1
jne next2
mov cx, size HF_january
lea dx, ds:[HF_january]
jmp write
next2:
cmp bl, 2
jne next3
mov cx, size HF_february
lea dx, ds:[HF_february]
jmp write
next3:
cmp bl, 3
jne next4
mov cx, size HF_march
lea dx, ds:[HF_march]
jmp write
next4:
cmp bl, 4
jne next5
mov cx, size HF_april
lea dx, ds:[HF_april]
jmp write
next5:
cmp bl, 5
jne next6
mov cx, size HF_may
lea dx, ds:[HF_may]
jmp write
next6:
cmp bl, 6
jne next7
mov cx, size HF_june
lea dx, ds:[HF_june]
jmp write
next7:
cmp bl, 7
jne next8
mov cx, size HF_july
lea dx, ds:[HF_july]
jmp write
next8:
cmp bl, 8
jne next9
mov cx, size HF_august
lea dx, ds:[HF_august]
jmp write
next9:
cmp bl, 9
jne next10
mov cx, size HF_september
lea dx, ds:[HF_september]
jmp write
next10:
cmp bl, 10
jne next11
mov cx, size HF_october
lea dx, ds:[HF_october]
jmp write
next11:
cmp bl, 11
jne next12
mov cx, size HF_november
lea dx, ds:[HF_november]
jmp write
next12:
cmp bl, 12
jne next13
mov cx, size HF_december
lea dx, ds:[HF_december]
jmp write
next13:
jmp done ; Not january - december
write:
call WriteWordData
done:
.leave
ret
WriteMonthData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadWeekData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read week data
CALLED BY: SetHReadData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN: bx = week bit mask
carry set = end of file or read error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadWeekData proc near
uses ax, cx, dx, si, di, es
.enter
mov ax, offset charData
segmov es, ds ; cmpsb use es
clr bx
mainLoop:
; Read one word data
;
call ReadWordData
jb readError ; end of file or error
; Check the word
;
mov di, ax ; set charData
mov cx, size HF_sunday
mov si, offset HF_sunday
lp1: cmpsb ; cmp 'sunday'
jne endlp1
loop lp1
or bx, RHF_SUNDAY ; set sunday
jmp mainLoop
endlp1:
mov di, ax ; set charData
mov cx, size HF_monday
mov si, offset HF_monday
lp2: cmpsb ; cmp 'monday'
jne endlp2
loop lp2
or bx, RHF_MONDAY ; set monday
jmp mainLoop
endlp2:
mov di, ax ; set charData
mov cx, size HF_tuesday
mov si, offset HF_tuesday
lp3: cmpsb ; cmp 'tuesday'
jne endlp3
loop lp3
or bx, RHF_TUESDAY ; set tuesday
jmp mainLoop
endlp3:
mov di, ax ; set charData
mov cx, size HF_wednesday
mov si, offset HF_wednesday
lp4: cmpsb ; cmp 'wednesday'
jne endlp4
loop lp4
or bx, RHF_WEDNESDAY ; set wednesday
jmp mainLoop
endlp4:
mov di, ax ; set charData
mov cx, size HF_thursday
mov si, offset HF_thursday
lp5: cmpsb ; cmp 'thursday'
jne endlp5
loop lp5
or bx, RHF_THURSDAY ; set thursday
jmp mainLoop
endlp5:
mov di, ax ; set charData
mov cx, size HF_friday
mov si, offset HF_friday
lp6: cmpsb ; cmp 'friday'
jne endlp6
loop lp6
or bx, RHF_FRIDAY ; set friday
jmp mainLoop
endlp6:
mov di, ax ; set charData
mov cx, size HF_saturday
mov si, offset HF_saturday
lp7: cmpsb ; cmp 'saturday'
jne endlp7
loop lp7
or bx, RHF_SATURDAY ; set saturday
jmp mainLoop
endlp7:
; Not sunday - saturday
;
push bx ; save bx
; Reset a file's read position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clr cx
mov dx, ds:[charDataNum] ; cx:dx offset
incdw cxdx
negdw cxdx
call FilePos ; set a file's read position
pop bx ; restor bx
clc ; reset carry
jmp done
; Read file data
;
readError:
stc ; set carry
jmp done
done:
.leave
ret
ReadWeekData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteWeekData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Write week data
CALLED BY: SetHWriteData ( SetHolidayInteractionClass )
PASS: ds = dgroup
bx = holiday data
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/28/93
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WriteWeekData proc near
uses cx, dx
.enter
call WriteTabData
test bx, RHF_SUNDAY
jz next1
mov cx, size HF_sunday ; number of bytes to write
lea dx, ds:[HF_sunday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next1:
test bx, RHF_MONDAY
jz next2
mov cx, size HF_monday ; number of bytes to write
lea dx, ds:[HF_monday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next2:
test bx, RHF_TUESDAY
jz next3
mov cx, size HF_tuesday ; number of bytes to write
lea dx, ds:[HF_tuesday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next3:
test bx, RHF_WEDNESDAY
jz next4
mov cx, size HF_wednesday ; number of bytes to write
lea dx, ds:[HF_wednesday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next4:
test bx, RHF_THURSDAY
jz next5
mov cx, size HF_thursday ; number of bytes to write
lea dx, ds:[HF_thursday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next5:
test bx, RHF_FRIDAY
jz next6
mov cx, size HF_friday ; number of bytes to write
lea dx, ds:[HF_friday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next6:
test bx, RHF_SATURDAY
jz next7
mov cx, size HF_saturday ; number of bytes to write
lea dx, ds:[HF_saturday] ; set buffer from which to write
call WriteWordData
call WriteSpaceData
next7:
call WriteReturnData
.leave
ret
WriteWeekData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SkipNatinalHoliday
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Skip natinal holiday data area of file
CALLED BY: SetHWriteData ( SetHolidayInteractionClass )
PASS: ds = dgroup
RETURN: carry set = if error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 7/28/93 Initial version
Tera 9/28/93 Error check
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SkipNatinalHoliday proc near
uses es, di, si, ax, bx, cx, dx
.enter
clr bx ; clear flag
segmov es, ds ; cmpsb use es
mov ax, offset charData
; Read one word data till end of National Holiday section.
; National holiday section must be the top of the data file.
;
; Read the first one word data
;
call ReadWordData
jc fileError ; end of file or error
; Check the word with 'nation' key code
;
mov di, ax ; set charData
mov cx, size HF_nation
mov si, offset HF_nation
lp1: cmpsb ; cmp 'nation'
jne fileError ; key code error
loop lp1
; Now read data till the other key code.
;
mainLoop:
; Read one word data
;
call ReadWordData
jc fileError ; end of file or error
mov di, ax ; set charData
mov cx, size HF_repeat
mov si, offset HF_repeat
lp2: cmpsb ; cmp 'repeat'
jne endlp2
loop lp2
jmp anotherFlag
endlp2:
mov di, ax ; set charData
mov cx, size HF_holiday
mov si, offset HF_holiday
lp3: cmpsb ; cmp 'holiday'
jne endlp3
loop lp3
jmp anotherFlag
endlp3:
mov di, ax ; set charData
mov cx, size HF_weekday
lp4: mov si, offset HF_weekday
cmpsb ; cmp 'weekday'
jne endlp4
loop lp4
jmp anotherFlag
endlp4:
jmp mainLoop
anotherFlag:
; Another key code
;
; Reset a file's write position
;
mov al, FILE_POS_RELATIVE ; FilePosMoe
mov bx, ds:[fileHandle] ; load PC/GEOS file handle
clrdw cxdx
mov dx, ds:[charDataNum] ; cx:dx offset
inc dx
not cx
neg dx
call FilePos ; set a file's write position
clc ; reset carry
jmp done
; File format error
;
fileError:
stc ; set carry
done:
.leave
ret
SkipNatinalHoliday endp
HolidayCode ends
| 20.710215 | 80 | 0.567301 |
7de86035b409f005a1fa80e7f678620c45d1dff8 | 2,952 | asm | Assembly | CSC 35/lab7.asm | jvniorrr/CSUS-Computer-Science | 9e45c53ddc7d3473e128718d1e31ef67310a49e2 | [
"MIT"
] | null | null | null | CSC 35/lab7.asm | jvniorrr/CSUS-Computer-Science | 9e45c53ddc7d3473e128718d1e31ef67310a49e2 | [
"MIT"
] | null | null | null | CSC 35/lab7.asm | jvniorrr/CSUS-Computer-Science | 9e45c53ddc7d3473e128718d1e31ef67310a49e2 | [
"MIT"
] | null | null | null | # lab7.asm
# First Last
# Section #
#
# 1. Assemble : as -o fileN.0 fileN.asm
# 2. Link : ld -o a.out fileN.o csc35.0
# 3. Execute : ./a.out
.intel_syntax noprefix
.data
# ---------------------------------------------
# Prompts & Description
# ---------------------------------------------
Description:
.ascii "Welcome to The Gold Bug Saloon!\n\n\0"
OrderQuestion:
.ascii "\nWhat is your order?\n\0"
BillQuestion:
.ascii "\nHow many people are splitting the bill?\n\0"
PartyEnjoy:
.ascii "\nYour party enjoyed:\n\0"
Witches:
.ascii "\nOkay, witches and wizards, give \0"
Witches2:
.ascii " cents each.\n\0"
# ---------------------------------------------
# Strings
# ---------------------------------------------
Option1:
.ascii "1. Fresh elk steaks (323 cents)\n\0"
Option2:
.ascii "2. Not-so-fresh steaks (152 cents)\n\0"
Option3:
.ascii "3. Chicken sandwiches (215 cents)\n\0"
Option4:
.ascii "4. Milk and mush bowls (97 cents)\n\0"
Option5:
.ascii "5. Big-o-barrel-of-beer (737 cents)\n\0"
# ---------------------------------------------
# Table of Items
# ---------------------------------------------
Items:
.quad Option1
.quad Option2
.quad Option3
.quad Option4
.quad Option5
ItemCosts:
.quad 323
.quad 152
.quad 215
.quad 97
.quad 737
.text
.global _start
_start:
# display description of program
lea rcx, Description
call PrintStringZ
# print the menu or options
# loop through the items
mov rdi, 0
ItemsLoop:
cmp rdi, 5
jge Continue
mov rcx, [Items + rdi * 8]
call PrintStringZ
add rdi, 1
jmp ItemsLoop
Continue:
# ask user what their order is
lea rcx, OrderQuestion
call PrintStringZ
# get input from user
call ScanInt
# print what the users choice is
mov rdi, rcx
# print your party enjoyed
lea rcx, PartyEnjoy
call PrintStringZ
# 0 indexing
sub rdi, 1
# refereing string that stores user input
mov rcx, [Items + rdi * 8]
call PrintStringZ
# ask how many are splitting the bill
lea rcx, BillQuestion
call PrintStringZ
# get input for people splitting bill
call ScanInt
mov rbx, rcx
# print Okay witches and wizards get xxxxx
lea rcx, Witches
call PrintStringZ
# logic for splitting bill #
# get the order choices cost
mov rax, [ItemCosts + rdi * 8] # itemCost = rax
CQO # extend the rax reg
IDIV rbx
# copy value and print?
mov rcx, rax
call PrintInt
# print second part of witches string
lea rcx, Witches2
call PrintStringZ
call Exit
| 22.534351 | 58 | 0.514228 |
32fe8d3ae0a30fa43fc1c74c297fa672f5e12614 | 1,163 | asm | Assembly | data/mapObjects/ViridianCity.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapObjects/ViridianCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapObjects/ViridianCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | ViridianCity_Object:
db $f ; border block
db 5 ; warps
warp 23, 25, 0, VIRIDIAN_POKECENTER
warp 29, 19, 0, VIRIDIAN_MART
warp 21, 15, 0, VIRIDIAN_SCHOOL_HOUSE
warp 21, 9, 0, VIRIDIAN_NICKNAME_HOUSE
warp 32, 7, 0, VIRIDIAN_GYM
db 6 ; signs
sign 17, 17, 8 ; ViridianCityText8
sign 19, 1, 9 ; ViridianCityText9
sign 21, 29, 10 ; ViridianCityText10
sign 30, 19, 11 ; MartSignText
sign 24, 25, 12 ; PokeCenterSignText
sign 27, 7, 13 ; ViridianCityText13
db 7 ; objects
object SPRITE_BUG_CATCHER, 13, 20, WALK, 0, 1 ; person
object SPRITE_GAMBLER, 30, 8, STAY, NONE, 2 ; person
object SPRITE_BUG_CATCHER, 30, 25, WALK, 0, 3 ; person
object SPRITE_GIRL, 17, 9, STAY, RIGHT, 4 ; person
object SPRITE_LYING_OLD_MAN, 18, 9, STAY, NONE, 5 ; person
object SPRITE_FISHER2, 6, 23, STAY, DOWN, 6 ; person
object SPRITE_GAMBLER, 17, 5, WALK, 2, 7 ; person
; warp-to
warp_to 23, 25, VIRIDIAN_CITY_WIDTH ; VIRIDIAN_POKECENTER
warp_to 29, 19, VIRIDIAN_CITY_WIDTH ; VIRIDIAN_MART
warp_to 21, 15, VIRIDIAN_CITY_WIDTH ; VIRIDIAN_SCHOOL_HOUSE
warp_to 21, 9, VIRIDIAN_CITY_WIDTH ; VIRIDIAN_NICKNAME_HOUSE
warp_to 32, 7, VIRIDIAN_CITY_WIDTH ; VIRIDIAN_GYM
| 34.205882 | 61 | 0.738607 |
028e706be0c937e6c62cf026c53ccfe1dcc430ef | 596 | asm | Assembly | programs/oeis/007/A007378.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/007/A007378.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/007/A007378.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A007378: a(n), n>=2, is smallest positive integer which is consistent with sequence being monotonically increasing and satisfying a(a(n)) = 2n.
; 3,4,6,7,8,10,12,13,14,15,16,18,20,22,24,25,26,27,28,29,30,31,32,34,36,38,40,42,44,46,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,130,132,134,136,138
add $0,1
mov $1,$0
seq $1,60973 ; a(2*n+1) = a(n+1)+a(n), a(2*n) = 2*a(n), with a(1)=0 and a(2)=1.
add $0,$1
add $0,1
| 66.222222 | 330 | 0.666107 |
3668c087779da7d4b15bb2b176c0cfec52619d81 | 1,413 | asm | Assembly | bvs/BvsReadCharStr.asm | osfree-project/FamilyAPI | 2119a95cb2bbe6716ecacff4171866f6ea51b8d7 | [
"BSD-3-Clause"
] | null | null | null | bvs/BvsReadCharStr.asm | osfree-project/FamilyAPI | 2119a95cb2bbe6716ecacff4171866f6ea51b8d7 | [
"BSD-3-Clause"
] | null | null | null | bvs/BvsReadCharStr.asm | osfree-project/FamilyAPI | 2119a95cb2bbe6716ecacff4171866f6ea51b8d7 | [
"BSD-3-Clause"
] | null | null | null | ;/*!
; @file
;
; @brief BvsReadCharStr DOS wrapper
;
; (c) osFree Project 2021, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (yuri.prokushev@gmail.com)
;
;
;*/
.8086
; Helpers
INCLUDE helpers.inc
INCLUDE bios.inc
INCLUDE bseerr.inc
_TEXT SEGMENT BYTE PUBLIC 'CODE' USE16
@BVSPROLOG BVSREADCHARSTR
VIOHANDLE DW ? ;Video handle
COLUMN DW ? ;Starting column
ROW DW ? ;Starting row
SLENGTH DD ?
CHARSTR DD ?
@BVSSTART BVSREADCHARSTR
EXTERN VIOGOTOXYH: PROC
MOV BX,[DS:BP].ARGS.VIOHANDLE ; GET HANDLE
MOV CX,[DS:BP].ARGS.ROW ; GET ROW
MOV DX,[DS:BP].ARGS.COLUMN ; GET COLUMN
CALL VIOGOTOXYH
JNZ EXIT
MOV AX,0B800H ; OFFSET FOR COLOR CARD
MOV SI,DI ; GET THE ADDRESS AS SOURCE INDEX???
MOV DS,AX ; DS:SI IS NOW SET UP
LES DI,[DS:BP].ARGS.SLENGTH ; GET LENGTH POINTER
MOV CX,ES:[DI] ; GET LENGTH
LES DI,[DS:BP].ARGS.CHARSTR ; GET THE POINTER IN ES:DI
F13_100:
MOVSB ; MOVE A BYTE
INC DI ; GET PAST ATTRIBUTE
LOOP F13_100 ; DO THE NEXT ONE
XOR AX,AX ; SUCCESSFUL RETURN
EXIT:
@BVSEPILOG BVSREADCHARSTR
_TEXT ENDS
END
| 23.55 | 69 | 0.613588 |
d2ffefbcddc1a3e9a3a863cef7b9f5bce13720f7 | 395 | asm | Assembly | programs/oeis/341/A341250.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/341/A341250.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/341/A341250.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A341250: a(n) = 5*a(n-1) - 4*a(n-3) for n >= 4, where a(1) = 1, a(2) = 3, a(3) = 13.
; 1,3,13,61,293,1413,6821,32933,159013,767781,3707173,17899813,86427941,417311013,2014955813,9729067301,46976092453,226820639013,1095186925861,5288030259493,25532868741413,123283596003621,595265858980133,2874197819935013
add $0,2
seq $0,189743 ; a(1)=4, a(2)=4, a(n)=4*a(n-1) + 4*a(n-2)
div $0,56
add $0,1
| 49.375 | 220 | 0.693671 |
d28fcbf15a14b069f9a398544e57fab62b737ec3 | 146,633 | asm | Assembly | CS/计算机系统概论/Lab03/更相减损术结合查找表/data.asm | RabbitWhite1/USTC-CS-Resources | 8dae043524f236e894c3e81f51f7701f0de23968 | [
"MIT"
] | 7 | 2020-09-10T05:18:26.000Z | 2021-01-03T02:07:40.000Z | CS/计算机系统概论/Lab03/更相减损术结合查找表/data.asm | Pengxiang-Hua/USTC-CS-Resources | 8dae043524f236e894c3e81f51f7701f0de23968 | [
"MIT"
] | null | null | null | CS/计算机系统概论/Lab03/更相减损术结合查找表/data.asm | Pengxiang-Hua/USTC-CS-Resources | 8dae043524f236e894c3e81f51f7701f0de23968 | [
"MIT"
] | 2 | 2021-01-03T07:10:37.000Z | 2021-01-06T11:20:56.000Z | .ORIG xD000
.FILL #5199
.FILL #23268
.FILL #10364
.FILL #32669
.FILL #3763
.FILL #26482
.FILL #16609
.FILL #26754
.FILL #30977
.FILL #1996
.FILL #22340
.FILL #32576
.FILL #26197
.FILL #28015
.FILL #22213
.FILL #17348
.FILL #21231
.FILL #28519
.FILL #5834
.FILL #23086
.FILL #5000
.FILL #3161
.FILL #25844
.FILL #15594
.FILL #20198
.FILL #19911
.FILL #27474
.FILL #23068
.FILL #13743
.FILL #28816
.FILL #18132
.FILL #8258
.FILL #27771
.FILL #30390
.FILL #25090
.FILL #15893
.FILL #23596
.FILL #1636
.FILL #26605
.FILL #6575
.FILL #23682
.FILL #14896
.FILL #25446
.FILL #17139
.FILL #27882
.FILL #18077
.FILL #24175
.FILL #25898
.FILL #28567
.FILL #6372
.FILL #5615
.FILL #31722
.FILL #6868
.FILL #21236
.FILL #5546
.FILL #20284
.FILL #5273
.FILL #18615
.FILL #20591
.FILL #31485
.FILL #27740
.FILL #25239
.FILL #2195
.FILL #1413
.FILL #26409
.FILL #2369
.FILL #7327
.FILL #18823
.FILL #20981
.FILL #32424
.FILL #3142
.FILL #14136
.FILL #20016
.FILL #18509
.FILL #18842
.FILL #12468
.FILL #19609
.FILL #3775
.FILL #10879
.FILL #1437
.FILL #10838
.FILL #5725
.FILL #3679
.FILL #20997
.FILL #9284
.FILL #13667
.FILL #3103
.FILL #17550
.FILL #5260
.FILL #27429
.FILL #15442
.FILL #4047
.FILL #11895
.FILL #31893
.FILL #29613
.FILL #2810
.FILL #11395
.FILL #14859
.FILL #443
.FILL #17852
.FILL #9398
.FILL #21062
.FILL #18386
.FILL #4965
.FILL #30514
.FILL #22190
.FILL #15430
.FILL #20809
.FILL #2826
.FILL #21723
.FILL #11740
.FILL #27750
.FILL #19796
.FILL #10587
.FILL #23426
.FILL #27207
.FILL #9855
.FILL #28592
.FILL #13373
.FILL #31016
.FILL #23015
.FILL #13209
.FILL #21346
.FILL #19290
.FILL #935
.FILL #18323
.FILL #3337
.FILL #16873
.FILL #10414
.FILL #25758
.FILL #7871
.FILL #10877
.FILL #3350
.FILL #30532
.FILL #22651
.FILL #5246
.FILL #17585
.FILL #15832
.FILL #20948
.FILL #379
.FILL #12772
.FILL #7164
.FILL #32624
.FILL #29901
.FILL #26296
.FILL #18277
.FILL #15552
.FILL #9847
.FILL #7214
.FILL #12771
.FILL #7658
.FILL #23889
.FILL #13267
.FILL #21659
.FILL #7687
.FILL #13414
.FILL #30613
.FILL #16535
.FILL #32143
.FILL #20378
.FILL #3029
.FILL #6274
.FILL #25873
.FILL #17296
.FILL #18365
.FILL #22444
.FILL #8232
.FILL #13514
.FILL #26580
.FILL #2645
.FILL #1194
.FILL #29202
.FILL #20175
.FILL #23335
.FILL #23074
.FILL #3609
.FILL #18603
.FILL #6660
.FILL #21889
.FILL #15455
.FILL #1016
.FILL #8194
.FILL #32016
.FILL #30034
.FILL #13688
.FILL #13492
.FILL #2217
.FILL #9658
.FILL #6632
.FILL #22700
.FILL #4647
.FILL #27988
.FILL #18974
.FILL #6461
.FILL #10779
.FILL #12477
.FILL #5460
.FILL #20870
.FILL #9409
.FILL #658
.FILL #21956
.FILL #31915
.FILL #13106
.FILL #10198
.FILL #29557
.FILL #32102
.FILL #7386
.FILL #15252
.FILL #2388
.FILL #32447
.FILL #11565
.FILL #13765
.FILL #24710
.FILL #21015
.FILL #10646
.FILL #22899
.FILL #13821
.FILL #28267
.FILL #25520
.FILL #19999
.FILL #32329
.FILL #29911
.FILL #15289
.FILL #26721
.FILL #7089
.FILL #24153
.FILL #10052
.FILL #26062
.FILL #14979
.FILL #14040
.FILL #4141
.FILL #8222
.FILL #18344
.FILL #2405
.FILL #8146
.FILL #31631
.FILL #13691
.FILL #25024
.FILL #19072
.FILL #5252
.FILL #732
.FILL #1822
.FILL #12076
.FILL #28786
.FILL #14463
.FILL #21545
.FILL #8036
.FILL #13820
.FILL #20618
.FILL #20553
.FILL #25477
.FILL #12381
.FILL #15456
.FILL #28194
.FILL #3885
.FILL #8711
.FILL #31927
.FILL #4958
.FILL #31219
.FILL #10889
.FILL #32753
.FILL #19884
.FILL #12374
.FILL #17334
.FILL #15017
.FILL #22792
.FILL #28916
.FILL #6660
.FILL #11916
.FILL #23358
.FILL #2557
.FILL #17458
.FILL #21354
.FILL #30889
.FILL #10982
.FILL #7726
.FILL #5772
.FILL #9793
.FILL #32354
.FILL #19253
.FILL #25673
.FILL #23765
.FILL #8334
.FILL #9020
.FILL #28628
.FILL #4500
.FILL #17771
.FILL #3983
.FILL #11608
.FILL #6098
.FILL #9106
.FILL #6840
.FILL #12871
.FILL #20489
.FILL #30499
.FILL #14242
.FILL #28655
.FILL #18462
.FILL #12543
.FILL #1022
.FILL #31822
.FILL #12518
.FILL #9783
.FILL #2534
.FILL #23847
.FILL #19689
.FILL #21444
.FILL #17600
.FILL #2389
.FILL #15462
.FILL #2680
.FILL #28006
.FILL #5216
.FILL #19095
.FILL #5940
.FILL #20868
.FILL #14414
.FILL #8245
.FILL #15196
.FILL #14913
.FILL #12731
.FILL #32575
.FILL #2440
.FILL #9761
.FILL #8748
.FILL #27640
.FILL #31356
.FILL #23081
.FILL #27809
.FILL #26415
.FILL #20059
.FILL #3653
.FILL #16489
.FILL #7618
.FILL #3607
.FILL #14568
.FILL #17978
.FILL #12645
.FILL #16684
.FILL #15858
.FILL #9089
.FILL #32416
.FILL #11150
.FILL #1238
.FILL #18423
.FILL #1047
.FILL #10207
.FILL #14844
.FILL #14709
.FILL #20238
.FILL #29158
.FILL #16228
.FILL #21001
.FILL #4396
.FILL #30013
.FILL #4237
.FILL #9289
.FILL #17279
.FILL #29769
.FILL #7573
.FILL #31207
.FILL #31425
.FILL #7023
.FILL #24993
.FILL #8326
.FILL #20698
.FILL #21637
.FILL #14463
.FILL #30924
.FILL #1957
.FILL #28295
.FILL #14218
.FILL #31673
.FILL #18679
.FILL #28044
.FILL #3534
.FILL #10807
.FILL #10206
.FILL #5880
.FILL #12141
.FILL #6898
.FILL #18214
.FILL #3570
.FILL #20546
.FILL #6761
.FILL #18722
.FILL #5145
.FILL #29123
.FILL #4422
.FILL #27817
.FILL #17010
.FILL #2092
.FILL #9450
.FILL #31582
.FILL #20133
.FILL #31450
.FILL #17997
.FILL #27956
.FILL #12394
.FILL #1012
.FILL #8965
.FILL #25906
.FILL #15166
.FILL #13137
.FILL #11428
.FILL #27508
.FILL #90
.FILL #6294
.FILL #10823
.FILL #2163
.FILL #3301
.FILL #22687
.FILL #2156
.FILL #9606
.FILL #22633
.FILL #12833
.FILL #23300
.FILL #22184
.FILL #30596
.FILL #13709
.FILL #17866
.FILL #29051
.FILL #26336
.FILL #13367
.FILL #16082
.FILL #5517
.FILL #612
.FILL #10935
.FILL #24421
.FILL #2522
.FILL #31916
.FILL #10895
.FILL #14092
.FILL #5011
.FILL #27319
.FILL #1807
.FILL #21739
.FILL #10782
.FILL #14304
.FILL #18806
.FILL #31568
.FILL #11358
.FILL #5648
.FILL #12378
.FILL #12684
.FILL #31540
.FILL #15921
.FILL #15946
.FILL #10242
.FILL #7494
.FILL #5350
.FILL #7089
.FILL #8829
.FILL #20479
.FILL #1913
.FILL #20477
.FILL #23751
.FILL #10711
.FILL #13589
.FILL #5633
.FILL #7543
.FILL #12756
.FILL #14389
.FILL #20376
.FILL #27402
.FILL #4176
.FILL #9308
.FILL #23692
.FILL #5941
.FILL #15614
.FILL #3079
.FILL #22710
.FILL #5242
.FILL #20008
.FILL #8927
.FILL #1382
.FILL #18938
.FILL #19770
.FILL #20532
.FILL #25093
.FILL #22922
.FILL #13444
.FILL #17831
.FILL #14328
.FILL #3080
.FILL #31292
.FILL #28198
.FILL #7624
.FILL #22512
.FILL #19650
.FILL #18718
.FILL #13696
.FILL #13866
.FILL #25640
.FILL #1515
.FILL #10839
.FILL #14630
.FILL #3314
.FILL #29588
.FILL #12687
.FILL #6699
.FILL #20506
.FILL #6325
.FILL #4765
.FILL #12524
.FILL #23640
.FILL #1980
.FILL #31370
.FILL #2397
.FILL #5280
.FILL #17240
.FILL #7833
.FILL #3012
.FILL #26603
.FILL #18223
.FILL #29226
.FILL #27411
.FILL #22074
.FILL #2256
.FILL #29662
.FILL #19829
.FILL #18136
.FILL #1256
.FILL #22012
.FILL #25383
.FILL #5088
.FILL #11448
.FILL #1556
.FILL #24457
.FILL #28416
.FILL #18374
.FILL #22498
.FILL #2165
.FILL #892
.FILL #7635
.FILL #22388
.FILL #20431
.FILL #31094
.FILL #32014
.FILL #1679
.FILL #11101
.FILL #15980
.FILL #28807
.FILL #2384
.FILL #7897
.FILL #14082
.FILL #15078
.FILL #1551
.FILL #11333
.FILL #15874
.FILL #26973
.FILL #15496
.FILL #7807
.FILL #5281
.FILL #4827
.FILL #6205
.FILL #25109
.FILL #10244
.FILL #6019
.FILL #16918
.FILL #24666
.FILL #20482
.FILL #29788
.FILL #30027
.FILL #4282
.FILL #27436
.FILL #32586
.FILL #7043
.FILL #13386
.FILL #31754
.FILL #7997
.FILL #29758
.FILL #28579
.FILL #11176
.FILL #21672
.FILL #19312
.FILL #14065
.FILL #21841
.FILL #9781
.FILL #878
.FILL #16455
.FILL #32667
.FILL #17847
.FILL #30222
.FILL #28726
.FILL #26276
.FILL #351
.FILL #28938
.FILL #29853
.FILL #31642
.FILL #21812
.FILL #20902
.FILL #450
.FILL #32129
.FILL #12477
.FILL #915
.FILL #26018
.FILL #3888
.FILL #17664
.FILL #26386
.FILL #25990
.FILL #28317
.FILL #28337
.FILL #25181
.FILL #6615
.FILL #12635
.FILL #4259
.FILL #8770
.FILL #15411
.FILL #10849
.FILL #29314
.FILL #19985
.FILL #7104
.FILL #23821
.FILL #30660
.FILL #12984
.FILL #11201
.FILL #8553
.FILL #17117
.FILL #10541
.FILL #24679
.FILL #23980
.FILL #6322
.FILL #15372
.FILL #19945
.FILL #30980
.FILL #6225
.FILL #20610
.FILL #15831
.FILL #27538
.FILL #6879
.FILL #22121
.FILL #11947
.FILL #4022
.FILL #20433
.FILL #17332
.FILL #29089
.FILL #6286
.FILL #26976
.FILL #24334
.FILL #23240
.FILL #20921
.FILL #27958
.FILL #7614
.FILL #14169
.FILL #3169
.FILL #32110
.FILL #6350
.FILL #32328
.FILL #23928
.FILL #11707
.FILL #23916
.FILL #28442
.FILL #4417
.FILL #14567
.FILL #7312
.FILL #4854
.FILL #30739
.FILL #10880
.FILL #32223
.FILL #21502
.FILL #28762
.FILL #20686
.FILL #6608
.FILL #7904
.FILL #20958
.FILL #2823
.FILL #24333
.FILL #17063
.FILL #7752
.FILL #18374
.FILL #26396
.FILL #728
.FILL #6882
.FILL #18362
.FILL #32318
.FILL #4026
.FILL #14238
.FILL #30875
.FILL #25239
.FILL #22773
.FILL #26458
.FILL #31843
.FILL #32400
.FILL #28254
.FILL #19810
.FILL #12474
.FILL #8826
.FILL #25362
.FILL #25654
.FILL #19122
.FILL #372
.FILL #26306
.FILL #398
.FILL #23220
.FILL #30094
.FILL #2381
.FILL #23452
.FILL #19643
.FILL #20270
.FILL #23700
.FILL #29585
.FILL #14527
.FILL #13235
.FILL #26762
.FILL #2402
.FILL #6005
.FILL #20313
.FILL #9610
.FILL #31948
.FILL #12085
.FILL #24156
.FILL #28910
.FILL #16278
.FILL #19771
.FILL #20833
.FILL #12253
.FILL #15638
.FILL #7955
.FILL #4369
.FILL #5220
.FILL #23286
.FILL #16463
.FILL #9479
.FILL #14536
.FILL #30520
.FILL #20603
.FILL #16876
.FILL #1307
.FILL #1912
.FILL #9555
.FILL #736
.FILL #4878
.FILL #15729
.FILL #27955
.FILL #21020
.FILL #1030
.FILL #21699
.FILL #21966
.FILL #17622
.FILL #32114
.FILL #28148
.FILL #2851
.FILL #28261
.FILL #16219
.FILL #6836
.FILL #8877
.FILL #28326
.FILL #2364
.FILL #32613
.FILL #18138
.FILL #16286
.FILL #16661
.FILL #11738
.FILL #14015
.FILL #1633
.FILL #4283
.FILL #7519
.FILL #28170
.FILL #27442
.FILL #28018
.FILL #25594
.FILL #2360
.FILL #15595
.FILL #15805
.FILL #5361
.FILL #14856
.FILL #25504
.FILL #4469
.FILL #26764
.FILL #24623
.FILL #26239
.FILL #8217
.FILL #4380
.FILL #6733
.FILL #2298
.FILL #357
.FILL #24892
.FILL #25376
.FILL #17193
.FILL #21542
.FILL #10071
.FILL #3831
.FILL #6505
.FILL #18252
.FILL #25195
.FILL #15722
.FILL #5962
.FILL #14657
.FILL #13324
.FILL #4937
.FILL #29096
.FILL #24953
.FILL #13227
.FILL #20690
.FILL #5143
.FILL #14411
.FILL #1816
.FILL #6183
.FILL #7557
.FILL #4351
.FILL #25670
.FILL #30719
.FILL #4122
.FILL #6696
.FILL #24655
.FILL #3739
.FILL #14435
.FILL #14388
.FILL #12215
.FILL #22780
.FILL #4016
.FILL #28225
.FILL #15349
.FILL #595
.FILL #7610
.FILL #18738
.FILL #12847
.FILL #18361
.FILL #7561
.FILL #258
.FILL #28486
.FILL #17440
.FILL #27029
.FILL #17497
.FILL #27922
.FILL #14473
.FILL #29484
.FILL #25181
.FILL #5359
.FILL #9336
.FILL #18707
.FILL #18123
.FILL #7032
.FILL #17061
.FILL #29040
.FILL #31814
.FILL #18834
.FILL #15861
.FILL #6887
.FILL #10479
.FILL #22189
.FILL #12968
.FILL #26884
.FILL #14645
.FILL #14406
.FILL #20436
.FILL #24537
.FILL #11503
.FILL #2736
.FILL #11538
.FILL #13032
.FILL #15016
.FILL #30485
.FILL #10359
.FILL #31555
.FILL #15673
.FILL #15032
.FILL #24774
.FILL #6385
.FILL #8094
.FILL #13180
.FILL #8163
.FILL #17300
.FILL #15106
.FILL #5546
.FILL #18827
.FILL #3657
.FILL #23324
.FILL #12015
.FILL #8771
.FILL #25296
.FILL #23742
.FILL #23204
.FILL #654
.FILL #14317
.FILL #6827
.FILL #2898
.FILL #19043
.FILL #1805
.FILL #7338
.FILL #3446
.FILL #10462
.FILL #17709
.FILL #15576
.FILL #26497
.FILL #3126
.FILL #25336
.FILL #14146
.FILL #31523
.FILL #19951
.FILL #6191
.FILL #22451
.FILL #19401
.FILL #28497
.FILL #32334
.FILL #14795
.FILL #3685
.FILL #31256
.FILL #15981
.FILL #20305
.FILL #26221
.FILL #22893
.FILL #22116
.FILL #8394
.FILL #29734
.FILL #16149
.FILL #14642
.FILL #31819
.FILL #6178
.FILL #26857
.FILL #20128
.FILL #1675
.FILL #4103
.FILL #23174
.FILL #5665
.FILL #25148
.FILL #20627
.FILL #24389
.FILL #28925
.FILL #24988
.FILL #16605
.FILL #26734
.FILL #22446
.FILL #30279
.FILL #15070
.FILL #7080
.FILL #32394
.FILL #21327
.FILL #29999
.FILL #9652
.FILL #11683
.FILL #30094
.FILL #14868
.FILL #9563
.FILL #20460
.FILL #1595
.FILL #4026
.FILL #17061
.FILL #32157
.FILL #19388
.FILL #13757
.FILL #17996
.FILL #1496
.FILL #7355
.FILL #7149
.FILL #17776
.FILL #15244
.FILL #2428
.FILL #13906
.FILL #13708
.FILL #2458
.FILL #12142
.FILL #21102
.FILL #31913
.FILL #4662
.FILL #27392
.FILL #20929
.FILL #20946
.FILL #23952
.FILL #23477
.FILL #28051
.FILL #455
.FILL #23476
.FILL #28283
.FILL #26605
.FILL #27638
.FILL #15791
.FILL #25145
.FILL #19945
.FILL #19366
.FILL #27124
.FILL #31399
.FILL #12075
.FILL #8566
.FILL #4094
.FILL #21858
.FILL #28336
.FILL #20742
.FILL #7990
.FILL #5440
.FILL #4295
.FILL #18164
.FILL #9494
.FILL #22496
.FILL #10844
.FILL #15114
.FILL #22159
.FILL #10630
.FILL #21884
.FILL #25269
.FILL #18600
.FILL #27430
.FILL #20246
.FILL #10169
.FILL #7273
.FILL #24255
.FILL #8703
.FILL #14116
.FILL #8695
.FILL #19947
.FILL #825
.FILL #31872
.FILL #14080
.FILL #32435
.FILL #17269
.FILL #23885
.FILL #25689
.FILL #27303
.FILL #31190
.FILL #18607
.FILL #32486
.FILL #27695
.FILL #19448
.FILL #28515
.FILL #20411
.FILL #22044
.FILL #30513
.FILL #14327
.FILL #1920
.FILL #10626
.FILL #32535
.FILL #17211
.FILL #282
.FILL #24010
.FILL #9538
.FILL #5363
.FILL #6024
.FILL #28419
.FILL #3667
.FILL #13518
.FILL #4874
.FILL #9849
.FILL #14388
.FILL #23452
.FILL #29065
.FILL #20873
.FILL #9634
.FILL #187
.FILL #3635
.FILL #23219
.FILL #25321
.FILL #23506
.FILL #27750
.FILL #30961
.FILL #18415
.FILL #11970
.FILL #10703
.FILL #26951
.FILL #7028
.FILL #27610
.FILL #23507
.FILL #26268
.FILL #31640
.FILL #3147
.FILL #23597
.FILL #21448
.FILL #12190
.FILL #10971
.FILL #18649
.FILL #19438
.FILL #18159
.FILL #14045
.FILL #15153
.FILL #3340
.FILL #10594
.FILL #21344
.FILL #31319
.FILL #28880
.FILL #31930
.FILL #13991
.FILL #11474
.FILL #26542
.FILL #881
.FILL #7641
.FILL #19836
.FILL #10799
.FILL #22708
.FILL #10490
.FILL #26523
.FILL #5260
.FILL #11694
.FILL #13082
.FILL #24142
.FILL #24699
.FILL #27657
.FILL #31436
.FILL #17195
.FILL #12617
.FILL #25010
.FILL #11994
.FILL #38
.FILL #9769
.FILL #23005
.FILL #13111
.FILL #22708
.FILL #26316
.FILL #18250
.FILL #12853
.FILL #1585
.FILL #24113
.FILL #25542
.FILL #19960
.FILL #29567
.FILL #6079
.FILL #26868
.FILL #1579
.FILL #23537
.FILL #29329
.FILL #17997
.FILL #9713
.FILL #20839
.FILL #7953
.FILL #30822
.FILL #19999
.FILL #28090
.FILL #6856
.FILL #25969
.FILL #28584
.FILL #13146
.FILL #7796
.FILL #25351
.FILL #19033
.FILL #24885
.FILL #12891
.FILL #18725
.FILL #17350
.FILL #15835
.FILL #23776
.FILL #13940
.FILL #10884
.FILL #7648
.FILL #8020
.FILL #27085
.FILL #14744
.FILL #10626
.FILL #13582
.FILL #21756
.FILL #28720
.FILL #9612
.FILL #18622
.FILL #19652
.FILL #4497
.FILL #17275
.FILL #5118
.FILL #31268
.FILL #24913
.FILL #15582
.FILL #7466
.FILL #28889
.FILL #28614
.FILL #15875
.FILL #1906
.FILL #3876
.FILL #2750
.FILL #25551
.FILL #10541
.FILL #2765
.FILL #9840
.FILL #20718
.FILL #23664
.FILL #20328
.FILL #21171
.FILL #7725
.FILL #15840
.FILL #4567
.FILL #4206
.FILL #10787
.FILL #19908
.FILL #15632
.FILL #6992
.FILL #3095
.FILL #10079
.FILL #7201
.FILL #31681
.FILL #11806
.FILL #17020
.FILL #25969
.FILL #29976
.FILL #21124
.FILL #29514
.FILL #2888
.FILL #9230
.FILL #2157
.FILL #7274
.FILL #30097
.FILL #24946
.FILL #21436
.FILL #18247
.FILL #2271
.FILL #15647
.FILL #3124
.FILL #5798
.FILL #7855
.FILL #9516
.FILL #14301
.FILL #18302
.FILL #21229
.FILL #3426
.FILL #25770
.FILL #13321
.FILL #19129
.FILL #10995
.FILL #17752
.FILL #3355
.FILL #22634
.FILL #6248
.FILL #5529
.FILL #15795
.FILL #8403
.FILL #30172
.FILL #2418
.FILL #11471
.FILL #9670
.FILL #22888
.FILL #19426
.FILL #20869
.FILL #22999
.FILL #9182
.FILL #20676
.FILL #19792
.FILL #8546
.FILL #3514
.FILL #32246
.FILL #168
.FILL #25808
.FILL #85
.FILL #28603
.FILL #19925
.FILL #6165
.FILL #3932
.FILL #23646
.FILL #32260
.FILL #23421
.FILL #9857
.FILL #23321
.FILL #31899
.FILL #6569
.FILL #16240
.FILL #4660
.FILL #23754
.FILL #18132
.FILL #13317
.FILL #4209
.FILL #23906
.FILL #9564
.FILL #188
.FILL #21928
.FILL #24299
.FILL #13181
.FILL #2921
.FILL #20143
.FILL #32753
.FILL #9823
.FILL #16937
.FILL #18556
.FILL #21406
.FILL #5715
.FILL #9880
.FILL #7822
.FILL #26254
.FILL #16473
.FILL #6468
.FILL #10377
.FILL #1502
.FILL #231
.FILL #31074
.FILL #11040
.FILL #31878
.FILL #27621
.FILL #27840
.FILL #20535
.FILL #15081
.FILL #9724
.FILL #25595
.FILL #27209
.FILL #7339
.FILL #25360
.FILL #12018
.FILL #1800
.FILL #16579
.FILL #11787
.FILL #13690
.FILL #5444
.FILL #10193
.FILL #24029
.FILL #10324
.FILL #8718
.FILL #3249
.FILL #23489
.FILL #15964
.FILL #28957
.FILL #11088
.FILL #7873
.FILL #20994
.FILL #29809
.FILL #27070
.FILL #124
.FILL #29438
.FILL #26421
.FILL #6021
.FILL #20263
.FILL #16448
.FILL #4074
.FILL #14138
.FILL #16594
.FILL #7718
.FILL #28098
.FILL #1617
.FILL #11244
.FILL #7410
.FILL #21834
.FILL #14133
.FILL #10506
.FILL #9083
.FILL #16460
.FILL #4505
.FILL #484
.FILL #12835
.FILL #21748
.FILL #27912
.FILL #4512
.FILL #21000
.FILL #26673
.FILL #14788
.FILL #31316
.FILL #1151
.FILL #32606
.FILL #3021
.FILL #21446
.FILL #18110
.FILL #5410
.FILL #23616
.FILL #14198
.FILL #32216
.FILL #9621
.FILL #29922
.FILL #19934
.FILL #24303
.FILL #17828
.FILL #14845
.FILL #16632
.FILL #10148
.FILL #18870
.FILL #18027
.FILL #14337
.FILL #15059
.FILL #16272
.FILL #3568
.FILL #16509
.FILL #30078
.FILL #16245
.FILL #31181
.FILL #18555
.FILL #20486
.FILL #22674
.FILL #13201
.FILL #3610
.FILL #8097
.FILL #7322
.FILL #4659
.FILL #10316
.FILL #3080
.FILL #3758
.FILL #23902
.FILL #3290
.FILL #3440
.FILL #31103
.FILL #23308
.FILL #14248
.FILL #1724
.FILL #28854
.FILL #23382
.FILL #22331
.FILL #20465
.FILL #404
.FILL #13962
.FILL #8824
.FILL #17642
.FILL #22229
.FILL #29055
.FILL #15278
.FILL #11341
.FILL #21467
.FILL #31781
.FILL #17623
.FILL #2749
.FILL #27400
.FILL #15968
.FILL #2331
.FILL #13905
.FILL #13164
.FILL #26391
.FILL #24470
.FILL #15941
.FILL #416
.FILL #12680
.FILL #11099
.FILL #31472
.FILL #2033
.FILL #5342
.FILL #7353
.FILL #23030
.FILL #16833
.FILL #4613
.FILL #6077
.FILL #15039
.FILL #11819
.FILL #5053
.FILL #25591
.FILL #28456
.FILL #7654
.FILL #5357
.FILL #2433
.FILL #13432
.FILL #6252
.FILL #314
.FILL #32574
.FILL #14485
.FILL #7259
.FILL #985
.FILL #3680
.FILL #32632
.FILL #16155
.FILL #14497
.FILL #3885
.FILL #15582
.FILL #28609
.FILL #29541
.FILL #25346
.FILL #30272
.FILL #24883
.FILL #4480
.FILL #20376
.FILL #262
.FILL #24461
.FILL #2481
.FILL #8070
.FILL #12536
.FILL #5316
.FILL #11818
.FILL #11271
.FILL #19189
.FILL #138
.FILL #21731
.FILL #13310
.FILL #4071
.FILL #10097
.FILL #23092
.FILL #9271
.FILL #29686
.FILL #15698
.FILL #12707
.FILL #13552
.FILL #22012
.FILL #20208
.FILL #30971
.FILL #152
.FILL #19257
.FILL #11993
.FILL #16798
.FILL #30678
.FILL #21321
.FILL #10637
.FILL #1051
.FILL #22221
.FILL #2130
.FILL #17634
.FILL #29187
.FILL #32671
.FILL #8066
.FILL #3751
.FILL #6649
.FILL #24111
.FILL #19897
.FILL #16008
.FILL #4617
.FILL #14636
.FILL #25730
.FILL #12081
.FILL #7227
.FILL #5195
.FILL #15176
.FILL #29367
.FILL #31079
.FILL #2003
.FILL #14535
.FILL #1587
.FILL #24138
.FILL #12639
.FILL #4288
.FILL #26800
.FILL #16090
.FILL #8671
.FILL #2545
.FILL #6471
.FILL #25559
.FILL #27873
.FILL #24644
.FILL #16520
.FILL #32419
.FILL #15631
.FILL #5959
.FILL #2332
.FILL #12115
.FILL #4600
.FILL #20700
.FILL #27561
.FILL #12550
.FILL #2835
.FILL #31794
.FILL #29174
.FILL #8309
.FILL #25600
.FILL #28915
.FILL #13648
.FILL #4300
.FILL #1554
.FILL #19135
.FILL #7212
.FILL #25273
.FILL #21259
.FILL #6362
.FILL #6925
.FILL #4546
.FILL #3366
.FILL #13857
.FILL #31912
.FILL #27611
.FILL #91
.FILL #23875
.FILL #30022
.FILL #26424
.FILL #20702
.FILL #19757
.FILL #1387
.FILL #2656
.FILL #4841
.FILL #4550
.FILL #28597
.FILL #6787
.FILL #4027
.FILL #17629
.FILL #17926
.FILL #1037
.FILL #23521
.FILL #23391
.FILL #20966
.FILL #12667
.FILL #8884
.FILL #21198
.FILL #23586
.FILL #17517
.FILL #19235
.FILL #21230
.FILL #6073
.FILL #25853
.FILL #22962
.FILL #6082
.FILL #13305
.FILL #6992
.FILL #13251
.FILL #14262
.FILL #23014
.FILL #26474
.FILL #10260
.FILL #6686
.FILL #6363
.FILL #2887
.FILL #24714
.FILL #12767
.FILL #1652
.FILL #15143
.FILL #8493
.FILL #20588
.FILL #5546
.FILL #10281
.FILL #30835
.FILL #9461
.FILL #26944
.FILL #6427
.FILL #17601
.FILL #15323
.FILL #9567
.FILL #1425
.FILL #13103
.FILL #4710
.FILL #1149
.FILL #26420
.FILL #7052
.FILL #4794
.FILL #13187
.FILL #13661
.FILL #23970
.FILL #3079
.FILL #14638
.FILL #16099
.FILL #9146
.FILL #31489
.FILL #27829
.FILL #22065
.FILL #11875
.FILL #13968
.FILL #16301
.FILL #923
.FILL #3440
.FILL #21704
.FILL #24362
.FILL #12786
.FILL #27200
.FILL #23579
.FILL #28712
.FILL #2389
.FILL #18242
.FILL #5325
.FILL #27433
.FILL #27723
.FILL #22711
.FILL #3753
.FILL #23327
.FILL #19215
.FILL #23226
.FILL #12019
.FILL #907
.FILL #16683
.FILL #2174
.FILL #23197
.FILL #12775
.FILL #12616
.FILL #6360
.FILL #4285
.FILL #15938
.FILL #21317
.FILL #25597
.FILL #2367
.FILL #32554
.FILL #26758
.FILL #5772
.FILL #11223
.FILL #13518
.FILL #2703
.FILL #5583
.FILL #29498
.FILL #12132
.FILL #18385
.FILL #31038
.FILL #4238
.FILL #13513
.FILL #707
.FILL #15684
.FILL #25375
.FILL #26983
.FILL #18229
.FILL #4934
.FILL #6227
.FILL #16476
.FILL #2530
.FILL #29410
.FILL #2016
.FILL #14041
.FILL #1604
.FILL #20596
.FILL #8252
.FILL #24263
.FILL #11948
.FILL #7391
.FILL #30550
.FILL #31921
.FILL #25233
.FILL #29322
.FILL #21379
.FILL #15582
.FILL #24360
.FILL #5032
.FILL #16571
.FILL #17341
.FILL #7734
.FILL #7613
.FILL #1541
.FILL #7559
.FILL #5923
.FILL #5725
.FILL #3888
.FILL #20767
.FILL #5711
.FILL #13623
.FILL #7876
.FILL #6717
.FILL #7849
.FILL #3923
.FILL #23608
.FILL #3787
.FILL #2429
.FILL #1944
.FILL #4709
.FILL #13199
.FILL #22669
.FILL #10385
.FILL #12859
.FILL #17419
.FILL #28260
.FILL #19313
.FILL #28083
.FILL #12705
.FILL #8423
.FILL #12372
.FILL #32516
.FILL #7675
.FILL #23085
.FILL #27591
.FILL #28698
.FILL #21674
.FILL #15248
.FILL #19851
.FILL #30276
.FILL #2061
.FILL #30468
.FILL #9366
.FILL #13869
.FILL #21877
.FILL #21160
.FILL #1115
.FILL #1037
.FILL #21638
.FILL #2715
.FILL #28491
.FILL #29728
.FILL #13793
.FILL #1297
.FILL #2716
.FILL #20312
.FILL #13568
.FILL #3238
.FILL #16201
.FILL #16463
.FILL #24928
.FILL #1266
.FILL #27738
.FILL #19583
.FILL #742
.FILL #19805
.FILL #3685
.FILL #28085
.FILL #7548
.FILL #17972
.FILL #85
.FILL #24515
.FILL #22523
.FILL #11261
.FILL #14698
.FILL #30325
.FILL #19021
.FILL #15624
.FILL #11393
.FILL #4039
.FILL #30419
.FILL #23879
.FILL #11414
.FILL #30293
.FILL #29444
.FILL #11359
.FILL #31367
.FILL #18451
.FILL #855
.FILL #16895
.FILL #24602
.FILL #13630
.FILL #11875
.FILL #1137
.FILL #31810
.FILL #11155
.FILL #2885
.FILL #19823
.FILL #9374
.FILL #16830
.FILL #20291
.FILL #20791
.FILL #67
.FILL #30485
.FILL #24239
.FILL #31714
.FILL #16315
.FILL #7046
.FILL #25869
.FILL #14577
.FILL #5709
.FILL #29646
.FILL #14456
.FILL #22825
.FILL #22655
.FILL #28140
.FILL #3137
.FILL #2721
.FILL #25562
.FILL #31190
.FILL #14042
.FILL #5913
.FILL #13293
.FILL #23146
.FILL #3826
.FILL #23693
.FILL #18581
.FILL #679
.FILL #9186
.FILL #13322
.FILL #16763
.FILL #21277
.FILL #21832
.FILL #15041
.FILL #21213
.FILL #19362
.FILL #3569
.FILL #12634
.FILL #30610
.FILL #1351
.FILL #9725
.FILL #25994
.FILL #1096
.FILL #2187
.FILL #12349
.FILL #23016
.FILL #17
.FILL #21454
.FILL #14048
.FILL #8188
.FILL #26142
.FILL #9736
.FILL #11087
.FILL #6297
.FILL #13513
.FILL #25018
.FILL #3413
.FILL #3693
.FILL #28121
.FILL #7205
.FILL #3459
.FILL #24279
.FILL #27650
.FILL #11451
.FILL #11987
.FILL #9464
.FILL #12716
.FILL #20691
.FILL #11147
.FILL #6925
.FILL #5366
.FILL #14240
.FILL #8548
.FILL #9724
.FILL #27897
.FILL #2660
.FILL #18668
.FILL #16172
.FILL #9297
.FILL #17633
.FILL #15401
.FILL #12442
.FILL #21722
.FILL #29200
.FILL #4223
.FILL #22314
.FILL #20663
.FILL #8470
.FILL #18387
.FILL #24379
.FILL #15513
.FILL #9844
.FILL #23793
.FILL #12157
.FILL #7997
.FILL #32126
.FILL #28459
.FILL #30215
.FILL #2615
.FILL #24078
.FILL #20803
.FILL #2980
.FILL #16367
.FILL #23161
.FILL #32652
.FILL #8558
.FILL #31465
.FILL #6594
.FILL #16715
.FILL #27807
.FILL #14921
.FILL #526
.FILL #31075
.FILL #17571
.FILL #14230
.FILL #26456
.FILL #27186
.FILL #26482
.FILL #27070
.FILL #4710
.FILL #28854
.FILL #22556
.FILL #14682
.FILL #13308
.FILL #31476
.FILL #2981
.FILL #18996
.FILL #6223
.FILL #15770
.FILL #22548
.FILL #32262
.FILL #11964
.FILL #27875
.FILL #22983
.FILL #5253
.FILL #14778
.FILL #31931
.FILL #17161
.FILL #3230
.FILL #15118
.FILL #11300
.FILL #18919
.FILL #11008
.FILL #28734
.FILL #24536
.FILL #10303
.FILL #18906
.FILL #29511
.FILL #4143
.FILL #25113
.FILL #21990
.FILL #21394
.FILL #20036
.FILL #17978
.FILL #7334
.FILL #15141
.FILL #9299
.FILL #23799
.FILL #20462
.FILL #29719
.FILL #21862
.FILL #14664
.FILL #25250
.FILL #25158
.FILL #16433
.FILL #24605
.FILL #8897
.FILL #17740
.FILL #26938
.FILL #14837
.FILL #13474
.FILL #22190
.FILL #28733
.FILL #17068
.FILL #21374
.FILL #6231
.FILL #29902
.FILL #27540
.FILL #31535
.FILL #26437
.FILL #11840
.FILL #25544
.FILL #24375
.FILL #9859
.FILL #15046
.FILL #15037
.FILL #21252
.FILL #5719
.FILL #27096
.FILL #4378
.FILL #1907
.FILL #11196
.FILL #1496
.FILL #19402
.FILL #16786
.FILL #31762
.FILL #24822
.FILL #32079
.FILL #28330
.FILL #4373
.FILL #10577
.FILL #31065
.FILL #14717
.FILL #14604
.FILL #18526
.FILL #18071
.FILL #1228
.FILL #10050
.FILL #20878
.FILL #25293
.FILL #28444
.FILL #30906
.FILL #17451
.FILL #3367
.FILL #17338
.FILL #28959
.FILL #9347
.FILL #2765
.FILL #31997
.FILL #1018
.FILL #12361
.FILL #6583
.FILL #15307
.FILL #32296
.FILL #12856
.FILL #1475
.FILL #22622
.FILL #25482
.FILL #14585
.FILL #5124
.FILL #28744
.FILL #21758
.FILL #13639
.FILL #14429
.FILL #5557
.FILL #4750
.FILL #17233
.FILL #18767
.FILL #1009
.FILL #28136
.FILL #9056
.FILL #9744
.FILL #32042
.FILL #16654
.FILL #9657
.FILL #733
.FILL #13686
.FILL #15695
.FILL #3525
.FILL #20368
.FILL #28440
.FILL #9846
.FILL #12399
.FILL #27765
.FILL #11263
.FILL #20033
.FILL #20942
.FILL #8538
.FILL #6287
.FILL #25621
.FILL #1540
.FILL #2789
.FILL #5028
.FILL #27887
.FILL #6502
.FILL #29227
.FILL #30676
.FILL #30622
.FILL #17373
.FILL #17021
.FILL #2549
.FILL #24880
.FILL #11147
.FILL #4485
.FILL #12511
.FILL #15786
.FILL #31410
.FILL #28051
.FILL #23155
.FILL #14588
.FILL #3282
.FILL #26161
.FILL #12765
.FILL #1075
.FILL #30482
.FILL #765
.FILL #2837
.FILL #8945
.FILL #28641
.FILL #7352
.FILL #10156
.FILL #11546
.FILL #23005
.FILL #19610
.FILL #14533
.FILL #22737
.FILL #30196
.FILL #26088
.FILL #16994
.FILL #24739
.FILL #201
.FILL #11721
.FILL #17377
.FILL #6657
.FILL #16217
.FILL #17750
.FILL #18886
.FILL #20468
.FILL #16094
.FILL #31216
.FILL #19642
.FILL #13836
.FILL #19444
.FILL #28630
.FILL #468
.FILL #1946
.FILL #25850
.FILL #23286
.FILL #24
.FILL #10014
.FILL #11195
.FILL #14852
.FILL #24381
.FILL #20995
.FILL #6733
.FILL #18378
.FILL #13236
.FILL #15498
.FILL #32570
.FILL #5823
.FILL #3045
.FILL #10757
.FILL #1246
.FILL #2778
.FILL #21180
.FILL #21829
.FILL #18448
.FILL #9640
.FILL #15204
.FILL #15701
.FILL #16901
.FILL #22685
.FILL #6738
.FILL #10857
.FILL #2416
.FILL #20904
.FILL #20358
.FILL #32529
.FILL #12014
.FILL #30217
.FILL #9741
.FILL #10674
.FILL #14498
.FILL #32615
.FILL #19659
.FILL #18999
.FILL #284
.FILL #28445
.FILL #19575
.FILL #24580
.FILL #32128
.FILL #19414
.FILL #7911
.FILL #5163
.FILL #12004
.FILL #23897
.FILL #19342
.FILL #29667
.FILL #17145
.FILL #23206
.FILL #11587
.FILL #12086
.FILL #10222
.FILL #15937
.FILL #17731
.FILL #12281
.FILL #6033
.FILL #13518
.FILL #16250
.FILL #7425
.FILL #23992
.FILL #23006
.FILL #3070
.FILL #7572
.FILL #24031
.FILL #14089
.FILL #12765
.FILL #28958
.FILL #7186
.FILL #14653
.FILL #16152
.FILL #12069
.FILL #19726
.FILL #4181
.FILL #31215
.FILL #17279
.FILL #12707
.FILL #11501
.FILL #14175
.FILL #31427
.FILL #16732
.FILL #20597
.FILL #31466
.FILL #13053
.FILL #26722
.FILL #25477
.FILL #17302
.FILL #1190
.FILL #23710
.FILL #1648
.FILL #10808
.FILL #30675
.FILL #19998
.FILL #4124
.FILL #13554
.FILL #6572
.FILL #30394
.FILL #28433
.FILL #1019
.FILL #1568
.FILL #19703
.FILL #8399
.FILL #15262
.FILL #14807
.FILL #24107
.FILL #13157
.FILL #20358
.FILL #16488
.FILL #5090
.FILL #1343
.FILL #4920
.FILL #4813
.FILL #26753
.FILL #14144
.FILL #13281
.FILL #14868
.FILL #20265
.FILL #1297
.FILL #32594
.FILL #2646
.FILL #21214
.FILL #30648
.FILL #7241
.FILL #2541
.FILL #12521
.FILL #9836
.FILL #6130
.FILL #22754
.FILL #29306
.FILL #31143
.FILL #27821
.FILL #11429
.FILL #18834
.FILL #9342
.FILL #26130
.FILL #13313
.FILL #13600
.FILL #18478
.FILL #1586
.FILL #30542
.FILL #12395
.FILL #30199
.FILL #20512
.FILL #2281
.FILL #29103
.FILL #813
.FILL #7089
.FILL #6625
.FILL #31755
.FILL #25484
.FILL #22143
.FILL #18163
.FILL #2202
.FILL #32204
.FILL #22068
.FILL #12729
.FILL #2785
.FILL #11893
.FILL #8197
.FILL #14878
.FILL #21609
.FILL #27893
.FILL #18812
.FILL #27669
.FILL #7084
.FILL #18159
.FILL #22139
.FILL #30091
.FILL #27190
.FILL #9687
.FILL #14462
.FILL #14489
.FILL #13828
.FILL #4796
.FILL #21280
.FILL #19967
.FILL #10800
.FILL #27748
.FILL #10721
.FILL #3022
.FILL #25296
.FILL #17310
.FILL #6950
.FILL #25700
.FILL #8219
.FILL #20948
.FILL #19585
.FILL #12701
.FILL #13517
.FILL #15840
.FILL #11315
.FILL #16456
.FILL #13261
.FILL #8992
.FILL #11247
.FILL #12248
.FILL #8461
.FILL #3789
.FILL #6369
.FILL #31324
.FILL #10674
.FILL #26504
.FILL #13551
.FILL #14514
.FILL #10102
.FILL #29494
.FILL #30015
.FILL #30455
.FILL #29514
.FILL #28430
.FILL #2553
.FILL #11585
.FILL #19263
.FILL #28144
.FILL #4942
.FILL #12433
.FILL #20390
.FILL #28921
.FILL #10169
.FILL #12291
.FILL #23414
.FILL #28244
.FILL #3972
.FILL #4680
.FILL #15343
.FILL #14931
.FILL #22927
.FILL #18262
.FILL #2941
.FILL #1726
.FILL #11597
.FILL #25182
.FILL #13279
.FILL #27755
.FILL #32271
.FILL #4095
.FILL #23432
.FILL #13070
.FILL #901
.FILL #15545
.FILL #16966
.FILL #19283
.FILL #7041
.FILL #32676
.FILL #20769
.FILL #12074
.FILL #30975
.FILL #7522
.FILL #24966
.FILL #7266
.FILL #17507
.FILL #14162
.FILL #32677
.FILL #23930
.FILL #4353
.FILL #31494
.FILL #11287
.FILL #5300
.FILL #19426
.FILL #26104
.FILL #24772
.FILL #15722
.FILL #1989
.FILL #29048
.FILL #23812
.FILL #22437
.FILL #19045
.FILL #15081
.FILL #32004
.FILL #29164
.FILL #16122
.FILL #31789
.FILL #8300
.FILL #1370
.FILL #29186
.FILL #26718
.FILL #25662
.FILL #22516
.FILL #31297
.FILL #16575
.FILL #13313
.FILL #22841
.FILL #13063
.FILL #13810
.FILL #30240
.FILL #11514
.FILL #27569
.FILL #26987
.FILL #22413
.FILL #22635
.FILL #12402
.FILL #8996
.FILL #31401
.FILL #17787
.FILL #4180
.FILL #3986
.FILL #3432
.FILL #4193
.FILL #1145
.FILL #6617
.FILL #2736
.FILL #21367
.FILL #23719
.FILL #13884
.FILL #11011
.FILL #25932
.FILL #21764
.FILL #12503
.FILL #18526
.FILL #15604
.FILL #14621
.FILL #21648
.FILL #14689
.FILL #28835
.FILL #14381
.FILL #32331
.FILL #26543
.FILL #635
.FILL #20125
.FILL #28765
.FILL #9624
.FILL #28577
.FILL #26823
.FILL #31299
.FILL #1782
.FILL #13718
.FILL #8959
.FILL #18581
.FILL #16724
.FILL #16837
.FILL #19156
.FILL #28981
.FILL #22358
.FILL #32600
.FILL #1427
.FILL #4044
.FILL #4949
.FILL #30544
.FILL #16397
.FILL #1655
.FILL #5449
.FILL #14037
.FILL #19354
.FILL #14013
.FILL #30700
.FILL #28618
.FILL #19550
.FILL #18117
.FILL #20764
.FILL #1957
.FILL #23755
.FILL #18117
.FILL #4481
.FILL #2174
.FILL #2663
.FILL #19134
.FILL #1905
.FILL #10341
.FILL #4048
.FILL #19559
.FILL #2320
.FILL #23289
.FILL #28669
.FILL #26982
.FILL #2492
.FILL #8503
.FILL #22214
.FILL #20934
.FILL #7848
.FILL #2959
.FILL #25255
.FILL #31398
.FILL #14022
.FILL #8765
.FILL #15297
.FILL #26926
.FILL #2539
.FILL #10198
.FILL #7201
.FILL #10696
.FILL #814
.FILL #27169
.FILL #11589
.FILL #18316
.FILL #10897
.FILL #5417
.FILL #24284
.FILL #22523
.FILL #20963
.FILL #15504
.FILL #6862
.FILL #28401
.FILL #2276
.FILL #3878
.FILL #31356
.FILL #3797
.FILL #7339
.FILL #26810
.FILL #24905
.FILL #26899
.FILL #9797
.FILL #13873
.FILL #8281
.FILL #716
.FILL #27807
.FILL #24533
.FILL #1945
.FILL #4556
.FILL #7589
.FILL #11759
.FILL #2047
.FILL #9660
.FILL #8876
.FILL #23447
.FILL #19219
.FILL #29080
.FILL #5133
.FILL #19403
.FILL #25518
.FILL #18788
.FILL #4115
.FILL #5311
.FILL #31745
.FILL #10267
.FILL #31000
.FILL #21876
.FILL #9434
.FILL #20969
.FILL #24298
.FILL #2444
.FILL #10787
.FILL #26265
.FILL #6004
.FILL #20317
.FILL #4267
.FILL #30801
.FILL #19098
.FILL #21572
.FILL #8490
.FILL #31357
.FILL #30052
.FILL #23355
.FILL #9343
.FILL #7433
.FILL #10335
.FILL #4526
.FILL #13627
.FILL #26579
.FILL #1344
.FILL #9867
.FILL #19043
.FILL #10848
.FILL #16331
.FILL #22425
.FILL #24434
.FILL #5070
.FILL #9715
.FILL #26890
.FILL #23966
.FILL #1801
.FILL #29507
.FILL #15187
.FILL #10844
.FILL #32578
.FILL #29564
.FILL #29499
.FILL #32550
.FILL #6301
.FILL #14464
.FILL #26674
.FILL #28284
.FILL #4394
.FILL #26478
.FILL #19685
.FILL #14889
.FILL #22039
.FILL #24847
.FILL #17935
.FILL #24263
.FILL #28964
.FILL #18801
.FILL #25490
.FILL #30853
.FILL #27222
.FILL #13009
.FILL #12230
.FILL #25896
.FILL #29168
.FILL #28606
.FILL #18705
.FILL #18256
.FILL #26271
.FILL #20604
.FILL #14776
.FILL #20221
.FILL #3061
.FILL #20391
.FILL #500
.FILL #27473
.FILL #1304
.FILL #29208
.FILL #2121
.FILL #18840
.FILL #26556
.FILL #24077
.FILL #25619
.FILL #17797
.FILL #31566
.FILL #28035
.FILL #13922
.FILL #11966
.FILL #30834
.FILL #16359
.FILL #1287
.FILL #1948
.FILL #23728
.FILL #3822
.FILL #19439
.FILL #8491
.FILL #9834
.FILL #19138
.FILL #14512
.FILL #14457
.FILL #3346
.FILL #16734
.FILL #17506
.FILL #30989
.FILL #2458
.FILL #21819
.FILL #8112
.FILL #2229
.FILL #17195
.FILL #1836
.FILL #9518
.FILL #133
.FILL #13337
.FILL #22406
.FILL #17902
.FILL #30492
.FILL #6935
.FILL #17029
.FILL #9294
.FILL #41
.FILL #3239
.FILL #23531
.FILL #20755
.FILL #17710
.FILL #14549
.FILL #19946
.FILL #24252
.FILL #7044
.FILL #14629
.FILL #16196
.FILL #16144
.FILL #15264
.FILL #31434
.FILL #25777
.FILL #7930
.FILL #32148
.FILL #6424
.FILL #16769
.FILL #13462
.FILL #16088
.FILL #15420
.FILL #23426
.FILL #13196
.FILL #21835
.FILL #20523
.FILL #26148
.FILL #23453
.FILL #13173
.FILL #10200
.FILL #10459
.FILL #21883
.FILL #8719
.FILL #24746
.FILL #9413
.FILL #20958
.FILL #12997
.FILL #6701
.FILL #15757
.FILL #7892
.FILL #20538
.FILL #22024
.FILL #27023
.FILL #10072
.FILL #3917
.FILL #5167
.FILL #11581
.FILL #4391
.FILL #9627
.FILL #32601
.FILL #26049
.FILL #27855
.FILL #10564
.FILL #15797
.FILL #9956
.FILL #11273
.FILL #32243
.FILL #14808
.FILL #12334
.FILL #21064
.FILL #4888
.FILL #30714
.FILL #15694
.FILL #5010
.FILL #22392
.FILL #19299
.FILL #13757
.FILL #21903
.FILL #1512
.FILL #32
.FILL #32671
.FILL #18144
.FILL #12117
.FILL #19706
.FILL #31210
.FILL #177
.FILL #9736
.FILL #8617
.FILL #25033
.FILL #26258
.FILL #11816
.FILL #9540
.FILL #10051
.FILL #14466
.FILL #6017
.FILL #30972
.FILL #29976
.FILL #2893
.FILL #9347
.FILL #4874
.FILL #28651
.FILL #6937
.FILL #25230
.FILL #17894
.FILL #28838
.FILL #11323
.FILL #22381
.FILL #18362
.FILL #15899
.FILL #28239
.FILL #10272
.FILL #19990
.FILL #2535
.FILL #5511
.FILL #7390
.FILL #4581
.FILL #13468
.FILL #7747
.FILL #9818
.FILL #20384
.FILL #7455
.FILL #28386
.FILL #18502
.FILL #6081
.FILL #32590
.FILL #19416
.FILL #3349
.FILL #891
.FILL #9702
.FILL #20993
.FILL #26374
.FILL #8616
.FILL #29604
.FILL #27446
.FILL #8798
.FILL #12291
.FILL #1963
.FILL #28957
.FILL #19700
.FILL #29847
.FILL #294
.FILL #29253
.FILL #14067
.FILL #19319
.FILL #9774
.FILL #19826
.FILL #28892
.FILL #15536
.FILL #29166
.FILL #5941
.FILL #27338
.FILL #11900
.FILL #19973
.FILL #32192
.FILL #6394
.FILL #1976
.FILL #31531
.FILL #7929
.FILL #16778
.FILL #22168
.FILL #27928
.FILL #1229
.FILL #22401
.FILL #20378
.FILL #7586
.FILL #15303
.FILL #1808
.FILL #14520
.FILL #6949
.FILL #14305
.FILL #22296
.FILL #5346
.FILL #22055
.FILL #31642
.FILL #1003
.FILL #9131
.FILL #29244
.FILL #13640
.FILL #30551
.FILL #2371
.FILL #7720
.FILL #18096
.FILL #481
.FILL #12965
.FILL #14148
.FILL #27348
.FILL #14670
.FILL #18961
.FILL #15395
.FILL #28172
.FILL #8296
.FILL #20413
.FILL #21108
.FILL #11352
.FILL #31742
.FILL #10952
.FILL #25642
.FILL #18933
.FILL #31021
.FILL #18031
.FILL #6107
.FILL #23086
.FILL #2270
.FILL #3971
.FILL #10342
.FILL #26741
.FILL #5264
.FILL #26138
.FILL #24537
.FILL #6066
.FILL #28760
.FILL #22406
.FILL #14738
.FILL #19419
.FILL #11813
.FILL #13443
.FILL #28580
.FILL #4549
.FILL #13897
.FILL #22452
.FILL #30588
.FILL #14650
.FILL #18741
.FILL #12369
.FILL #12740
.FILL #21835
.FILL #20100
.FILL #25882
.FILL #20871
.FILL #5863
.FILL #5436
.FILL #9103
.FILL #16022
.FILL #13741
.FILL #26960
.FILL #28514
.FILL #30507
.FILL #23295
.FILL #8809
.FILL #1581
.FILL #13517
.FILL #17240
.FILL #4069
.FILL #11105
.FILL #22643
.FILL #2527
.FILL #26144
.FILL #28798
.FILL #25068
.FILL #21052
.FILL #4339
.FILL #19850
.FILL #30334
.FILL #17578
.FILL #3963
.FILL #7612
.FILL #15054
.FILL #4173
.FILL #15644
.FILL #21624
.FILL #1023
.FILL #26567
.FILL #11205
.FILL #32384
.FILL #9246
.FILL #11270
.FILL #29557
.FILL #25448
.FILL #21950
.FILL #14687
.FILL #6910
.FILL #23370
.FILL #2783
.FILL #2785
.FILL #32265
.FILL #11452
.FILL #8981
.FILL #10211
.FILL #21594
.FILL #1791
.FILL #19686
.FILL #4064
.FILL #15957
.FILL #27769
.FILL #5747
.FILL #6277
.FILL #31425
.FILL #8549
.FILL #29019
.FILL #29191
.FILL #10701
.FILL #29386
.FILL #11740
.FILL #17850
.FILL #16720
.FILL #27049
.FILL #12603
.FILL #8928
.FILL #5717
.FILL #15995
.FILL #27494
.FILL #11710
.FILL #8151
.FILL #8411
.FILL #20441
.FILL #17654
.FILL #22217
.FILL #10111
.FILL #21950
.FILL #4368
.FILL #22362
.FILL #31852
.FILL #17240
.FILL #12890
.FILL #10102
.FILL #6506
.FILL #18593
.FILL #242
.FILL #18064
.FILL #10422
.FILL #11570
.FILL #4897
.FILL #27295
.FILL #24056
.FILL #5476
.FILL #32234
.FILL #3686
.FILL #23412
.FILL #8885
.FILL #995
.FILL #13561
.FILL #30596
.FILL #29549
.FILL #9796
.FILL #1661
.FILL #30278
.FILL #17793
.FILL #19518
.FILL #10799
.FILL #2962
.FILL #16567
.FILL #29838
.FILL #424
.FILL #14639
.FILL #11275
.FILL #9553
.FILL #10591
.FILL #23878
.FILL #4689
.FILL #3610
.FILL #25199
.FILL #1302
.FILL #6685
.FILL #4162
.FILL #18842
.FILL #22506
.FILL #5344
.FILL #8575
.FILL #32654
.FILL #11848
.FILL #2387
.FILL #15544
.FILL #9832
.FILL #10604
.FILL #15641
.FILL #21784
.FILL #22647
.FILL #24309
.FILL #416
.FILL #32610
.FILL #31810
.FILL #27869
.FILL #18504
.FILL #17796
.FILL #6604
.FILL #2478
.FILL #16839
.FILL #22638
.FILL #5398
.FILL #25843
.FILL #3276
.FILL #5156
.FILL #29158
.FILL #27629
.FILL #14306
.FILL #2578
.FILL #1223
.FILL #18056
.FILL #6807
.FILL #1441
.FILL #13649
.FILL #8333
.FILL #18910
.FILL #16135
.FILL #13738
.FILL #4889
.FILL #11187
.FILL #12387
.FILL #21325
.FILL #16974
.FILL #28157
.FILL #16649
.FILL #17674
.FILL #840
.FILL #25784
.FILL #15130
.FILL #6734
.FILL #7763
.FILL #4947
.FILL #16217
.FILL #12197
.FILL #347
.FILL #25943
.FILL #11065
.FILL #19581
.FILL #30372
.FILL #23114
.FILL #9531
.FILL #20013
.FILL #13243
.FILL #10451
.FILL #17270
.FILL #1078
.FILL #21676
.FILL #7455
.FILL #119
.FILL #8648
.FILL #6005
.FILL #13954
.FILL #29260
.FILL #26760
.FILL #27579
.FILL #18530
.FILL #30684
.FILL #28816
.FILL #10940
.FILL #8785
.FILL #20602
.FILL #12727
.FILL #2949
.FILL #889
.FILL #20921
.FILL #12819
.FILL #10084
.FILL #23869
.FILL #12161
.FILL #32189
.FILL #8865
.FILL #10525
.FILL #2658
.FILL #19412
.FILL #19817
.FILL #21978
.FILL #14377
.FILL #29893
.FILL #20747
.FILL #4059
.FILL #31409
.FILL #7625
.FILL #15719
.FILL #26832
.FILL #6396
.FILL #15791
.FILL #2722
.FILL #8853
.FILL #3714
.FILL #24283
.FILL #25375
.FILL #8537
.FILL #17609
.FILL #17039
.FILL #18859
.FILL #18687
.FILL #2870
.FILL #18793
.FILL #28664
.FILL #18884
.FILL #16675
.FILL #17709
.FILL #20813
.FILL #8227
.FILL #26162
.FILL #6085
.FILL #25979
.FILL #19446
.FILL #1248
.FILL #17286
.FILL #19
.FILL #733
.FILL #11101
.FILL #20661
.FILL #12246
.FILL #25059
.FILL #26267
.FILL #11338
.FILL #12909
.FILL #25183
.FILL #29604
.FILL #25587
.FILL #20571
.FILL #5657
.FILL #6962
.FILL #25436
.FILL #13615
.FILL #28334
.FILL #27513
.FILL #5806
.FILL #6142
.FILL #5174
.FILL #17480
.FILL #5718
.FILL #18448
.FILL #3875
.FILL #26960
.FILL #16391
.FILL #29146
.FILL #18796
.FILL #3779
.FILL #24834
.FILL #12332
.FILL #10988
.FILL #5154
.FILL #21909
.FILL #15788
.FILL #21765
.FILL #24912
.FILL #16865
.FILL #23171
.FILL #16776
.FILL #6634
.FILL #18401
.FILL #14934
.FILL #18649
.FILL #6875
.FILL #24232
.FILL #3704
.FILL #21326
.FILL #30250
.FILL #12010
.FILL #94
.FILL #14809
.FILL #24855
.FILL #6334
.FILL #12371
.FILL #6631
.FILL #18535
.FILL #18082
.FILL #3180
.FILL #8327
.FILL #32508
.FILL #29120
.FILL #5055
.FILL #4303
.FILL #15016
.FILL #15216
.FILL #22992
.FILL #2427
.FILL #21315
.FILL #16381
.FILL #24140
.FILL #19928
.FILL #30715
.FILL #18092
.FILL #3322
.FILL #5601
.FILL #20204
.FILL #13050
.FILL #31214
.FILL #10663
.FILL #13041
.FILL #6950
.FILL #11776
.FILL #19446
.FILL #953
.FILL #10223
.FILL #6012
.FILL #14389
.FILL #15389
.FILL #8607
.FILL #29467
.FILL #14222
.FILL #17072
.FILL #20040
.FILL #16690
.FILL #4431
.FILL #10392
.FILL #1358
.FILL #6954
.FILL #23184
.FILL #19101
.FILL #7205
.FILL #32048
.FILL #26903
.FILL #2176
.FILL #4188
.FILL #22573
.FILL #28024
.FILL #1678
.FILL #4827
.FILL #32761
.FILL #30848
.FILL #11636
.FILL #22633
.FILL #18892
.FILL #28628
.FILL #23637
.FILL #21361
.FILL #28405
.FILL #13782
.FILL #282
.FILL #15109
.FILL #1998
.FILL #2248
.FILL #2826
.FILL #803
.FILL #13039
.FILL #23860
.FILL #27546
.FILL #10807
.FILL #15522
.FILL #14219
.FILL #6534
.FILL #32738
.FILL #23191
.FILL #18700
.FILL #18976
.FILL #18682
.FILL #20441
.FILL #21479
.FILL #21736
.FILL #25810
.FILL #3329
.FILL #6819
.FILL #30046
.FILL #22459
.FILL #8362
.FILL #24253
.FILL #24340
.FILL #24266
.FILL #3108
.FILL #12946
.FILL #22535
.FILL #28892
.FILL #20589
.FILL #8830
.FILL #19759
.FILL #20696
.FILL #18268
.FILL #31046
.FILL #5461
.FILL #5428
.FILL #7456
.FILL #9139
.FILL #22053
.FILL #18619
.FILL #32233
.FILL #30592
.FILL #16260
.FILL #2189
.FILL #19429
.FILL #24951
.FILL #4388
.FILL #17255
.FILL #29038
.FILL #16086
.FILL #7765
.FILL #32292
.FILL #9090
.FILL #26103
.FILL #17438
.FILL #16772
.FILL #10355
.FILL #8752
.FILL #1420
.FILL #5421
.FILL #30431
.FILL #9977
.FILL #16970
.FILL #11247
.FILL #16611
.FILL #15948
.FILL #15218
.FILL #9548
.FILL #16268
.FILL #13906
.FILL #23203
.FILL #2104
.FILL #21134
.FILL #21051
.FILL #28500
.FILL #23325
.FILL #18489
.FILL #17005
.FILL #22119
.FILL #32034
.FILL #25000
.FILL #26594
.FILL #16385
.FILL #9389
.FILL #26428
.FILL #26315
.FILL #1946
.FILL #10022
.FILL #24905
.FILL #19578
.FILL #21072
.FILL #28159
.FILL #18702
.FILL #19582
.FILL #26497
.FILL #15601
.FILL #17899
.FILL #22800
.FILL #30616
.FILL #11656
.FILL #19150
.FILL #6830
.FILL #17703
.FILL #993
.FILL #10223
.FILL #2821
.FILL #25655
.FILL #16563
.FILL #25789
.FILL #14100
.FILL #988
.FILL #5260
.FILL #30231
.FILL #27791
.FILL #30220
.FILL #6237
.FILL #9408
.FILL #22145
.FILL #27056
.FILL #28473
.FILL #14349
.FILL #19766
.FILL #2812
.FILL #13658
.FILL #14561
.FILL #23896
.FILL #32252
.FILL #24677
.FILL #24795
.FILL #19032
.FILL #26480
.FILL #29934
.FILL #2510
.FILL #4111
.FILL #30682
.FILL #13631
.FILL #12658
.FILL #10150
.FILL #11477
.FILL #11605
.FILL #25945
.FILL #5043
.FILL #15528
.FILL #16428
.FILL #11044
.FILL #30628
.FILL #24603
.FILL #6717
.FILL #14582
.FILL #15969
.FILL #28298
.FILL #11588
.FILL #4649
.FILL #5165
.FILL #55
.FILL #6470
.FILL #23616
.FILL #14285
.FILL #2788
.FILL #9939
.FILL #29
.FILL #26349
.FILL #11426
.FILL #13961
.FILL #27509
.FILL #27071
.FILL #6372
.FILL #18905
.FILL #1664
.FILL #485
.FILL #23511
.FILL #2318
.FILL #12789
.FILL #16529
.FILL #26614
.FILL #27274
.FILL #24885
.FILL #2027
.FILL #8665
.FILL #24403
.FILL #9414
.FILL #15283
.FILL #24141
.FILL #10447
.FILL #14596
.FILL #25895
.FILL #1706
.FILL #15308
.FILL #27923
.FILL #20007
.FILL #22369
.FILL #21699
.FILL #30232
.FILL #22423
.FILL #27861
.FILL #8542
.FILL #681
.FILL #3845
.FILL #4716
.FILL #9015
.FILL #8834
.FILL #18315
.FILL #2021
.FILL #12259
.FILL #22137
.FILL #14839
.FILL #12524
.FILL #12847
.FILL #23732
.FILL #28714
.FILL #25323
.FILL #4265
.FILL #3353
.FILL #32702
.FILL #17700
.FILL #23907
.FILL #23046
.FILL #22508
.FILL #30461
.FILL #13043
.FILL #18754
.FILL #9900
.FILL #28826
.FILL #25278
.FILL #31028
.FILL #6429
.FILL #20913
.FILL #22647
.FILL #1619
.FILL #31528
.FILL #4762
.FILL #22242
.FILL #25822
.FILL #31328
.FILL #19366
.FILL #29150
.FILL #717
.FILL #4141
.FILL #1714
.FILL #27042
.FILL #17927
.FILL #22314
.FILL #20220
.FILL #19271
.FILL #15061
.FILL #20427
.FILL #29493
.FILL #31367
.FILL #1687
.FILL #22595
.FILL #11735
.FILL #2244
.FILL #29366
.FILL #23461
.FILL #10168
.FILL #32075
.FILL #9177
.FILL #31817
.FILL #2272
.FILL #29403
.FILL #20828
.FILL #15729
.FILL #2967
.FILL #11873
.FILL #4350
.FILL #28716
.FILL #17859
.FILL #4870
.FILL #2777
.FILL #26491
.FILL #7281
.FILL #5995
.FILL #10648
.FILL #14259
.FILL #5554
.FILL #8243
.FILL #6884
.FILL #1314
.FILL #31912
.FILL #25539
.FILL #13343
.FILL #9717
.FILL #3040
.FILL #15173
.FILL #3925
.FILL #7001
.FILL #4578
.FILL #1267
.FILL #29807
.FILL #9697
.FILL #17415
.FILL #31634
.FILL #25258
.FILL #31016
.FILL #13195
.FILL #10044
.FILL #20040
.FILL #21175
.FILL #6371
.FILL #19299
.FILL #26246
.FILL #30761
.FILL #26961
.FILL #30227
.FILL #30669
.FILL #24717
.FILL #27317
.FILL #5239
.FILL #15916
.FILL #3339
.FILL #14758
.FILL #12447
.FILL #15366
.FILL #21707
.FILL #30145
.FILL #15488
.FILL #26888
.FILL #10258
.FILL #2113
.FILL #3645
.FILL #19806
.FILL #3758
.FILL #14545
.FILL #29093
.FILL #23847
.FILL #26005
.FILL #1182
.FILL #29436
.FILL #10278
.FILL #8137
.FILL #27567
.FILL #18174
.FILL #12730
.FILL #3710
.FILL #10361
.FILL #29729
.FILL #1296
.FILL #29823
.FILL #1454
.FILL #8475
.FILL #22935
.FILL #26830
.FILL #18007
.FILL #11428
.FILL #23476
.FILL #19594
.FILL #21538
.FILL #29309
.FILL #28088
.FILL #22550
.FILL #10237
.FILL #25009
.FILL #29967
.FILL #888
.FILL #8419
.FILL #18459
.FILL #1977
.FILL #19967
.FILL #15606
.FILL #30504
.FILL #3583
.FILL #10537
.FILL #26831
.FILL #9694
.FILL #11358
.FILL #2755
.FILL #22802
.FILL #13341
.FILL #2504
.FILL #27218
.FILL #8773
.FILL #13093
.FILL #17932
.FILL #11698
.FILL #738
.FILL #22361
.FILL #13458
.FILL #18685
.FILL #5034
.FILL #14147
.FILL #12107
.FILL #5551
.FILL #21053
.FILL #31703
.FILL #5608
.FILL #9479
.FILL #14824
.FILL #26108
.FILL #19786
.FILL #4528
.FILL #24254
.FILL #19784
.FILL #21306
.FILL #5280
.FILL #16106
.FILL #31755
.FILL #14939
.FILL #24897
.FILL #15939
.FILL #3216
.FILL #8796
.FILL #3278
.FILL #33
.FILL #11167
.FILL #114
.FILL #1280
.FILL #4975
.FILL #25670
.FILL #19462
.FILL #23019
.FILL #9474
.FILL #22746
.FILL #25515
.FILL #24354
.FILL #11305
.FILL #3384
.FILL #15954
.FILL #26658
.FILL #17798
.FILL #9808
.FILL #15553
.FILL #9198
.FILL #12316
.FILL #17125
.FILL #12097
.FILL #23542
.FILL #8360
.FILL #20878
.FILL #25495
.FILL #6717
.FILL #24373
.FILL #2049
.FILL #20278
.FILL #31419
.FILL #25323
.FILL #24464
.FILL #10675
.FILL #11265
.FILL #24616
.FILL #15092
.FILL #2937
.FILL #25371
.FILL #31954
.FILL #6474
.FILL #25790
.FILL #18106
.FILL #7915
.FILL #31323
.FILL #24758
.FILL #5523
.FILL #2405
.FILL #22560
.FILL #2310
.FILL #3074
.FILL #15160
.FILL #22918
.FILL #15739
.FILL #19699
.FILL #17587
.FILL #8814
.FILL #21500
.FILL #20994
.FILL #1807
.FILL #25848
.FILL #29885
.FILL #9953
.FILL #4682
.FILL #6145
.FILL #1718
.FILL #29690
.FILL #5427
.FILL #30442
.FILL #16468
.FILL #7254
.FILL #5057
.FILL #11931
.FILL #12398
.FILL #29374
.FILL #22440
.FILL #23496
.FILL #21370
.FILL #18976
.FILL #20270
.FILL #15987
.FILL #2305
.FILL #25908
.FILL #20027
.FILL #18099
.FILL #32080
.FILL #2398
.FILL #26032
.FILL #24243
.FILL #23409
.FILL #14551
.FILL #17658
.FILL #5629
.FILL #23385
.FILL #22536
.FILL #23015
.FILL #4601
.FILL #99
.FILL #16950
.FILL #8888
.FILL #26544
.FILL #7165
.FILL #4452
.FILL #26231
.FILL #17110
.FILL #26785
.FILL #7541
.FILL #18315
.FILL #32264
.FILL #20744
.FILL #30354
.FILL #25737
.FILL #4178
.FILL #14234
.FILL #24267
.FILL #31565
.FILL #29684
.FILL #21032
.FILL #1793
.FILL #16970
.FILL #27238
.FILL #28125
.FILL #4867
.FILL #27678
.FILL #16793
.FILL #12146
.FILL #10487
.FILL #2409
.FILL #32384
.FILL #9122
.FILL #4092
.FILL #15584
.FILL #4303
.FILL #13278
.FILL #8717
.FILL #30109
.FILL #29699
.FILL #21313
.FILL #5416
.FILL #9145
.FILL #24994
.FILL #30662
.FILL #24496
.FILL #6941
.FILL #30916
.FILL #13241
.FILL #15377
.FILL #6293
.FILL #32466
.FILL #875
.FILL #4002
.FILL #7463
.FILL #7566
.FILL #9002
.FILL #14543
.FILL #5026
.FILL #16979
.FILL #368
.FILL #2167
.FILL #29817
.FILL #670
.FILL #8539
.FILL #27283
.FILL #23506
.FILL #10702
.FILL #349
.FILL #537
.FILL #17883
.FILL #21544
.FILL #23093
.FILL #15392
.FILL #25949
.FILL #15134
.FILL #18974
.FILL #7748
.FILL #18579
.FILL #5841
.FILL #16454
.FILL #21580
.FILL #16444
.FILL #14548
.FILL #15489
.FILL #16650
.FILL #15599
.FILL #17459
.FILL #14143
.FILL #5763
.FILL #5807
.FILL #9908
.FILL #17852
.FILL #14672
.FILL #29375
.FILL #14172
.FILL #20086
.FILL #29508
.FILL #15287
.FILL #7733
.FILL #25060
.FILL #14671
.FILL #24536
.FILL #26959
.FILL #2917
.FILL #2210
.FILL #18845
.FILL #29445
.FILL #11895
.FILL #7956
.FILL #18066
.FILL #32129
.FILL #17449
.FILL #4805
.FILL #20585
.FILL #10115
.FILL #3283
.FILL #3329
.FILL #27723
.FILL #7773
.FILL #2564
.FILL #11367
.FILL #5228
.FILL #12611
.FILL #21692
.FILL #21066
.FILL #24546
.FILL #10689
.FILL #9179
.FILL #24407
.FILL #23735
.FILL #3469
.FILL #5850
.FILL #9080
.FILL #20541
.FILL #11647
.FILL #6329
.FILL #1273
.FILL #20897
.FILL #9694
.FILL #28472
.FILL #8938
.FILL #29379
.FILL #13277
.FILL #19018
.FILL #30404
.FILL #27461
.FILL #1125
.FILL #26567
.FILL #14671
.FILL #31203
.FILL #24597
.FILL #8033
.FILL #3778
.FILL #28674
.FILL #22664
.FILL #27353
.FILL #15916
.FILL #7051
.FILL #23254
.FILL #15987
.FILL #30740
.FILL #761
.FILL #19293
.FILL #17831
.FILL #28764
.FILL #10161
.FILL #3777
.FILL #22553
.FILL #20332
.FILL #17042
.FILL #9265
.FILL #15051
.FILL #16012
.FILL #11982
.FILL #13548
.FILL #401
.FILL #5008
.FILL #30456
.FILL #15620
.FILL #9414
.FILL #24507
.FILL #14430
.FILL #12642
.FILL #7998
.FILL #26078
.FILL #20632
.FILL #18187
.FILL #10363
.FILL #15296
.FILL #2401
.FILL #16290
.FILL #24356
.FILL #6850
.FILL #13990
.FILL #24365
.FILL #30642
.FILL #9155
.FILL #31453
.FILL #28444
.FILL #17261
.FILL #6722
.FILL #9624
.FILL #29319
.FILL #9111
.FILL #23234
.FILL #24666
.FILL #28599
.FILL #15591
.FILL #4211
.FILL #7593
.FILL #29416
.FILL #32569
.FILL #28174
.FILL #32356
.FILL #11853
.FILL #21891
.FILL #28161
.FILL #8535
.FILL #23381
.FILL #4619
.FILL #24012
.FILL #4365
.FILL #16685
.FILL #27351
.FILL #14507
.FILL #17381
.FILL #1158
.FILL #6757
.FILL #5493
.FILL #25192
.FILL #9368
.FILL #30877
.FILL #11204
.FILL #18394
.FILL #18790
.FILL #8196
.FILL #13398
.FILL #28943
.FILL #18244
.FILL #29490
.FILL #10419
.FILL #19841
.FILL #31639
.FILL #5766
.FILL #9744
.FILL #9887
.FILL #26333
.FILL #12824
.FILL #30580
.FILL #4455
.FILL #10221
.FILL #4079
.FILL #2841
.FILL #7734
.FILL #15487
.FILL #27253
.FILL #22293
.FILL #15071
.FILL #10990
.FILL #32551
.FILL #28985
.FILL #31483
.FILL #31037
.FILL #14737
.FILL #24122
.FILL #14977
.FILL #5465
.FILL #2682
.FILL #23566
.FILL #20119
.FILL #4765
.FILL #16220
.FILL #11161
.FILL #14503
.FILL #24731
.FILL #28183
.FILL #7561
.FILL #4020
.FILL #24346
.FILL #18661
.FILL #26239
.FILL #5103
.FILL #29531
.FILL #28305
.FILL #32367
.FILL #8325
.FILL #673
.FILL #2788
.FILL #3913
.FILL #28604
.FILL #30191
.FILL #23393
.FILL #14041
.FILL #25918
.FILL #11028
.FILL #27698
.FILL #8172
.FILL #21172
.FILL #30437
.FILL #8545
.FILL #14004
.FILL #27287
.FILL #7370
.FILL #24651
.FILL #31853
.FILL #21827
.FILL #24444
.FILL #27986
.FILL #15937
.FILL #7246
.FILL #3852
.FILL #20947
.FILL #13161
.FILL #24599
.FILL #14376
.FILL #24152
.FILL #18070
.FILL #2978
.FILL #22682
.FILL #7438
.FILL #3727
.FILL #31395
.FILL #15633
.FILL #18553
.FILL #14875
.FILL #17880
.FILL #27684
.FILL #6758
.FILL #29473
.FILL #10652
.FILL #17044
.FILL #1825
.FILL #32014
.FILL #15034
.FILL #9425
.FILL #14569
.FILL #4727
.FILL #23935
.FILL #27072
.FILL #24481
.FILL #17920
.FILL #13075
.FILL #25276
.FILL #10440
.FILL #27260
.FILL #28937
.FILL #9435
.FILL #29611
.FILL #18005
.FILL #22324
.FILL #30578
.FILL #5593
.FILL #5678
.FILL #14268
.FILL #3035
.FILL #17368
.FILL #8904
.FILL #17778
.FILL #25205
.FILL #29206
.FILL #28194
.FILL #7265
.FILL #237
.FILL #16930
.FILL #15333
.FILL #14501
.FILL #23996
.FILL #20508
.FILL #30974
.FILL #20353
.FILL #9457
.FILL #29803
.FILL #18061
.FILL #16043
.FILL #14897
.FILL #19885
.FILL #11262
.FILL #1514
.FILL #7164
.FILL #9972
.FILL #13429
.FILL #32483
.FILL #3121
.FILL #3631
.FILL #31600
.FILL #18224
.FILL #8661
.FILL #12006
.FILL #27816
.FILL #4275
.FILL #10256
.FILL #17707
.FILL #15160
.FILL #19498
.FILL #28280
.FILL #15565
.FILL #21504
.FILL #25091
.FILL #28307
.FILL #20686
.FILL #20300
.FILL #28017
.FILL #27286
.FILL #16151
.FILL #9649
.FILL #11711
.FILL #26995
.FILL #25707
.FILL #11320
.FILL #8677
.FILL #13331
.FILL #21658
.FILL #7103
.FILL #601
.FILL #14304
.FILL #17143
.FILL #10139
.FILL #3367
.FILL #29319
.FILL #20235
.FILL #26498
.FILL #22596
.FILL #19196
.FILL #2443
.FILL #6313
.FILL #7711
.FILL #31678
.FILL #17800
.FILL #31273
.FILL #14458
.FILL #29276
.FILL #2534
.FILL #18599
.FILL #15736
.FILL #18488
.FILL #14095
.FILL #7476
.FILL #29431
.FILL #14475
.FILL #13544
.FILL #13170
.FILL #3103
.FILL #14249
.FILL #15621
.FILL #23288
.FILL #25915
.FILL #3975
.FILL #5401
.FILL #6136
.FILL #12744
.FILL #9594
.FILL #19888
.FILL #14111
.FILL #20684
.FILL #19777
.FILL #22816
.FILL #22717
.FILL #15210
.FILL #19782
.FILL #3772
.FILL #14118
.FILL #16818
.FILL #30753
.FILL #28236
.FILL #11352
.FILL #2494
.FILL #32606
.FILL #14266
.FILL #15070
.FILL #1274
.FILL #25472
.FILL #11022
.FILL #7668
.FILL #20419
.FILL #9541
.FILL #1180
.FILL #9451
.FILL #12084
.FILL #7212
.FILL #2428
.FILL #24015
.FILL #8508
.FILL #5685
.FILL #14395
.FILL #21320
.FILL #13044
.FILL #9448
.FILL #29136
.FILL #25022
.FILL #4400
.FILL #15256
.FILL #11986
.FILL #26560
.FILL #1877
.FILL #745
.FILL #5352
.FILL #21927
.FILL #24682
.FILL #1424
.FILL #128
.FILL #24694
.FILL #24177
.FILL #6746
.FILL #22212
.FILL #23557
.FILL #15351
.FILL #12144
.FILL #13257
.FILL #95
.FILL #27626
.FILL #23257
.FILL #18698
.FILL #7784
.FILL #2987
.FILL #21568
.FILL #22
.FILL #1987
.FILL #15204
.FILL #15352
.FILL #13701
.FILL #11762
.FILL #20636
.FILL #21309
.FILL #8240
.FILL #15551
.FILL #5896
.FILL #2493
.FILL #14498
.FILL #13275
.FILL #5028
.FILL #1111
.FILL #13513
.FILL #17350
.FILL #32259
.FILL #290
.FILL #27633
.FILL #29166
.FILL #25571
.FILL #15537
.FILL #14068
.FILL #18459
.FILL #11013
.FILL #15509
.FILL #8362
.FILL #4874
.FILL #25916
.FILL #8996
.FILL #31399
.FILL #29784
.FILL #10947
.FILL #28793
.FILL #10790
.FILL #19363
.FILL #28371
.FILL #21692
.FILL #16704
.FILL #15083
.FILL #629
.FILL #30628
.FILL #14434
.FILL #19006
.FILL #14742
.FILL #22841
.FILL #23549
.FILL #28308
.FILL #26201
.FILL #12255
.FILL #17023
.FILL #30712
.FILL #7857
.FILL #26512
.FILL #24195
.FILL #10984
.FILL #46
.FILL #9833
.FILL #324
.FILL #2303
.FILL #26135
.FILL #31336
.FILL #24920
.FILL #3281
.FILL #17850
.FILL #5236
.FILL #31131
.FILL #23831
.FILL #9472
.FILL #13469
.FILL #21609
.FILL #15116
.FILL #24388
.FILL #11174
.FILL #5904
.FILL #12310
.FILL #11365
.FILL #5568
.FILL #24964
.FILL #16041
.FILL #7706
.FILL #12953
.FILL #22101
.FILL #6760
.FILL #1926
.FILL #32405
.FILL #24287
.FILL #11150
.FILL #781
.FILL #29019
.FILL #32705
.FILL #24973
.FILL #2661
.FILL #1428
.FILL #20880
.FILL #6389
.FILL #21744
.FILL #28143
.FILL #29132
.FILL #6294
.FILL #28745
.FILL #7017
.FILL #18
.FILL #27113
.FILL #18205
.FILL #30923
.FILL #31636
.FILL #4268
.FILL #2620
.FILL #32628
.FILL #5319
.FILL #26061
.FILL #12271
.FILL #2392
.FILL #18267
.FILL #6537
.FILL #32141
.FILL #1097
.FILL #20592
.FILL #8405
.FILL #20297
.FILL #27254
.FILL #21767
.FILL #4605
.FILL #4686
.FILL #9265
.FILL #19638
.FILL #13451
.FILL #9486
.FILL #14069
.FILL #1185
.FILL #18538
.FILL #4566
.FILL #26023
.FILL #20133
.FILL #18507
.FILL #22438
.FILL #9756
.FILL #12502
.FILL #11080
.FILL #13633
.FILL #4060
.FILL #10540
.FILL #27079
.FILL #10880
.FILL #10277
.FILL #22905
.FILL #18850
.FILL #9195
.FILL #12083
.FILL #12190
.FILL #13701
.FILL #1162
.FILL #21183
.FILL #24063
.FILL #9111
.FILL #505
.FILL #27078
.FILL #14388
.FILL #20316
.FILL #1723
.FILL #7563
.FILL #18434
.FILL #19162
.FILL #3792
.FILL #9183
.FILL #11913
.FILL #11002
.FILL #12938
.FILL #28320
.FILL #9662
.FILL #21298
.FILL #21404
.FILL #29824
.FILL #13852
.FILL #9313
.FILL #8308
.FILL #30471
.FILL #29847
.FILL #4858
.FILL #25035
.FILL #27100
.FILL #23762
.FILL #26725
.FILL #18042
.FILL #24384
.FILL #7057
.FILL #13218
.FILL #8591
.FILL #7643
.FILL #23921
.FILL #11568
.FILL #20128
.FILL #17339
.FILL #30167
.FILL #4653
.FILL #12383
.FILL #6810
.FILL #29222
.FILL #15038
.FILL #32111
.FILL #351
.FILL #27957
.FILL #28593
.FILL #20342
.FILL #3816
.FILL #14080
.FILL #17249
.FILL #10356
.FILL #20999
.FILL #9373
.FILL #29146
.FILL #25171
.FILL #21194
.FILL #7282
.FILL #3134
.FILL #15551
.FILL #14592
.FILL #12966
.FILL #29544
.FILL #32055
.FILL #15352
.FILL #27093
.FILL #26062
.FILL #21860
.FILL #16268
.FILL #27656
.FILL #9388
.FILL #938
.FILL #16990
.FILL #20452
.FILL #29791
.FILL #25086
.FILL #354
.FILL #15905
.FILL #31758
.FILL #22263
.FILL #29853
.FILL #2878
.FILL #18576
.FILL #23847
.FILL #2348
.FILL #6515
.FILL #30346
.FILL #5291
.FILL #15495
.FILL #5864
.FILL #18392
.FILL #4865
.FILL #32007
.FILL #27684
.FILL #10287
.FILL #25882
.FILL #29606
.FILL #28360
.FILL #25856
.FILL #30640
.FILL #6919
.FILL #11389
.FILL #7327
.FILL #23002
.FILL #18358
.FILL #25131
.FILL #10404
.FILL #3550
.FILL #1456
.FILL #29548
.FILL #1938
.FILL #23622
.FILL #28454
.FILL #30272
.FILL #2486
.FILL #23862
.FILL #24702
.FILL #9986
.FILL #17746
.FILL #11260
.FILL #11675
.FILL #22682
.FILL #5627
.FILL #30953
.FILL #15454
.FILL #13557
.FILL #11072
.FILL #27999
.FILL #10348
.FILL #25010
.FILL #27276
.FILL #5676
.FILL #21554
.FILL #23838
.FILL #10318
.FILL #18454
.FILL #2855
.FILL #10083
.FILL #31830
.FILL #12983
.FILL #6481
.FILL #3068
.FILL #13698
.FILL #5516
.FILL #31755
.FILL #8044
.FILL #12443
.FILL #19272
.FILL #4101
.FILL #17712
.FILL #5754
.FILL #8046
.FILL #24716
.FILL #20978
.FILL #17775
.FILL #8734
.FILL #31756
.FILL #7679
.FILL #27107
.FILL #28207
.FILL #29139
.FILL #7163
.FILL #2619
.FILL #5503
.FILL #23831
.FILL #18388
.FILL #2560
.FILL #10119
.FILL #8507
.FILL #500
.FILL #26685
.FILL #1587
.FILL #15182
.FILL #10939
.FILL #15657
.FILL #31984
.FILL #19669
.FILL #4652
.FILL #15110
.FILL #19974
.FILL #17354
.FILL #4070
.FILL #13897
.FILL #10792
.FILL #17380
.FILL #22358
.FILL #30971
.FILL #17993
.FILL #13593
.FILL #23596
.FILL #25951
.FILL #946
.FILL #7010
.FILL #23307
.FILL #11221
.FILL #24146
.FILL #7102
.FILL #23173
.FILL #6142
.FILL #5461
.FILL #21113
.FILL #14406
.FILL #14625
.FILL #16888
.FILL #24238
.FILL #5775
.FILL #27086
.FILL #20635
.FILL #18187
.FILL #15847
.FILL #31425
.FILL #4119
.FILL #7124
.FILL #18189
.FILL #1288
.FILL #19283
.FILL #31274
.FILL #8496
.FILL #10089
.FILL #8466
.FILL #21646
.FILL #18530
.FILL #13054
.FILL #3599
.FILL #9377
.FILL #16459
.FILL #2850
.FILL #23884
.FILL #27181
.FILL #10010
.FILL #15505
.FILL #29351
.FILL #7017
.FILL #29889
.FILL #4042
.FILL #9134
.FILL #27257
.FILL #14946
.FILL #6840
.FILL #4788
.FILL #1077
.FILL #30212
.FILL #5522
.FILL #16421
.FILL #11307
.FILL #20107
.FILL #30464
.FILL #17942
.FILL #23015
.FILL #19431
.FILL #7039
.FILL #29216
.FILL #15218
.FILL #24459
.FILL #31750
.FILL #12655
.FILL #16664
.FILL #20769
.FILL #14314
.FILL #790
.FILL #5742
.FILL #25468
.FILL #30207
.FILL #25765
.FILL #11412
.FILL #17870
.FILL #24832
.FILL #27902
.FILL #14776
.FILL #9499
.FILL #17200
.FILL #2404
.FILL #20955
.FILL #29165
.FILL #1346
.FILL #4309
.FILL #31960
.FILL #11850
.FILL #5238
.FILL #8602
.FILL #28066
.FILL #22499
.FILL #29702
.FILL #32028
.FILL #16077
.FILL #17038
.FILL #32192
.FILL #22009
.FILL #22608
.FILL #30454
.FILL #5620
.FILL #17495
.FILL #25225
.FILL #27025
.FILL #22160
.FILL #21625
.FILL #27265
.FILL #7635
.FILL #30090
.FILL #25488
.FILL #7026
.FILL #2466
.FILL #27262
.FILL #16083
.FILL #12678
.FILL #19721
.FILL #6041
.FILL #14545
.FILL #2530
.FILL #4656
.FILL #31157
.FILL #10502
.FILL #29667
.FILL #10636
.FILL #9157
.FILL #2477
.FILL #10151
.FILL #13907
.FILL #2420
.FILL #10198
.FILL #1488
.FILL #32563
.FILL #23817
.FILL #6584
.FILL #1156
.FILL #14147
.FILL #1166
.FILL #28488
.FILL #28088
.FILL #21306
.FILL #27185
.FILL #20747
.FILL #21167
.FILL #16095
.FILL #11242
.FILL #296
.FILL #22717
.FILL #1728
.FILL #28254
.FILL #29377
.FILL #17233
.FILL #18983
.FILL #22276
.FILL #27523
.FILL #24371
.FILL #2378
.FILL #29062
.FILL #25468
.FILL #13065
.FILL #9154
.FILL #1130
.FILL #5933
.FILL #6432
.FILL #6974
.FILL #6385
.FILL #32737
.FILL #9833
.FILL #28281
.FILL #14911
.FILL #9789
.FILL #706
.FILL #8297
.FILL #12221
.FILL #791
.FILL #5751
.FILL #16314
.FILL #14012
.FILL #25228
.FILL #12553
.FILL #634
.FILL #32603
.FILL #32076
.FILL #3374
.FILL #18966
.FILL #28842
.FILL #15417
.FILL #22040
.FILL #9093
.FILL #30735
.FILL #23089
.FILL #4602
.FILL #6083
.FILL #26601
.FILL #22567
.FILL #5577
.FILL #24705
.FILL #10612
.FILL #30585
.FILL #26176
.FILL #21787
.FILL #17901
.FILL #11901
.FILL #10790
.FILL #9162
.FILL #2806
.FILL #19293
.FILL #4563
.FILL #11035
.FILL #20027
.FILL #14630
.FILL #22513
.FILL #1951
.FILL #5206
.FILL #6939
.FILL #16256
.FILL #10724
.FILL #7920
.FILL #12879
.FILL #13084
.FILL #2213
.FILL #9769
.FILL #16755
.FILL #27011
.FILL #17214
.FILL #16698
.FILL #25324
.FILL #13138
.FILL #18530
.FILL #16985
.FILL #1321
.FILL #22031
.FILL #21776
.FILL #2526
.FILL #307
.FILL #6252
.FILL #24515
.FILL #5283
.FILL #32645
.FILL #25546
.FILL #17386
.FILL #18864
.FILL #7967
.FILL #7933
.FILL #16791
.FILL #19224
.FILL #4822
.FILL #9807
.FILL #9595
.FILL #19998
.FILL #10478
.FILL #1223
.FILL #11538
.FILL #16028
.FILL #28906
.FILL #21163
.FILL #31515
.FILL #12710
.FILL #29603
.FILL #23875
.FILL #12363
.FILL #27498
.FILL #12696
.FILL #31712
.FILL #31810
.FILL #31834
.FILL #23429
.FILL #13853
.FILL #15038
.FILL #14734
.FILL #31031
.FILL #8037
.FILL #28943
.FILL #5219
.FILL #29342
.FILL #2997
.FILL #16331
.FILL #5481
.FILL #12068
.FILL #419
.FILL #7362
.FILL #32380
.FILL #16189
.FILL #3488
.FILL #26932
.FILL #22576
.FILL #17471
.FILL #23162
.FILL #14402
.FILL #28275
.FILL #2677
.FILL #13093
.FILL #22947
.FILL #109
.FILL #2414
.FILL #20922
.FILL #31896
.FILL #10155
.FILL #16027
.FILL #8128
.FILL #32546
.FILL #14973
.FILL #5658
.FILL #19371
.FILL #15730
.FILL #11676
.FILL #21964
.FILL #22434
.FILL #30113
.FILL #14608
.FILL #16045
.FILL #1413
.FILL #5025
.FILL #17489
.FILL #22629
.FILL #17455
.FILL #31092
.FILL #23981
.FILL #6938
.FILL #504
.FILL #6043
.FILL #16617
.FILL #27529
.FILL #2174
.FILL #27090
.FILL #12587
.FILL #7509
.FILL #17830
.FILL #11258
.FILL #10776
.FILL #28574
.FILL #9693
.FILL #23383
.FILL #11321
.FILL #14294
.FILL #25508
.FILL #22523
.FILL #10403
.FILL #11984
.FILL #28747
.FILL #14978
.FILL #20439
.FILL #5146
.FILL #23036
.FILL #12800
.FILL #18407
.FILL #7053
.FILL #21244
.FILL #32312
.FILL #3546
.FILL #22818
.FILL #15918
.FILL #23055
.FILL #1618
.FILL #7944
.FILL #25817
.FILL #27200
.FILL #364
.FILL #499
.FILL #14762
.FILL #1104
.FILL #13800
.FILL #30646
.FILL #19709
.FILL #25029
.FILL #30602
.FILL #17428
.FILL #22104
.FILL #5011
.FILL #11455
.FILL #10195
.FILL #30520
.FILL #18903
.FILL #18308
.FILL #1555
.FILL #6929
.FILL #17351
.FILL #17796
.FILL #29662
.FILL #6288
.FILL #31721
.FILL #31616
.FILL #26112
.FILL #30755
.FILL #25732
.FILL #12276
.FILL #28953
.FILL #955
.FILL #18517
.FILL #18680
.FILL #20464
.FILL #977
.FILL #9090
.FILL #4452
.FILL #9226
.FILL #19879
.FILL #2260
.FILL #22839
.FILL #9340
.FILL #1744
.FILL #26400
.FILL #30010
.FILL #12029
.FILL #16882
.FILL #17158
.FILL #25056
.FILL #28479
.FILL #22731
.FILL #14558
.FILL #3441
.FILL #4224
.FILL #10098
.FILL #23280
.FILL #3431
.FILL #11612
.FILL #3295
.FILL #16355
.FILL #17177
.FILL #29157
.FILL #21678
.FILL #21881
.FILL #13206
.FILL #9205
.FILL #28192
.FILL #19321
.FILL #5844
.FILL #1475
.FILL #5219
.FILL #10988
.FILL #25098
.FILL #18101
.FILL #19475
.FILL #28043
.FILL #20826
.FILL #30325
.FILL #23040
.FILL #10617
.FILL #13491
.FILL #11847
.FILL #5938
.FILL #9518
.FILL #1014
.FILL #25754
.FILL #17962
.FILL #26547
.FILL #32343
.FILL #7900
.FILL #19819
.FILL #6421
.FILL #22791
.FILL #30099
.FILL #31545
.FILL #18196
.FILL #16656
.FILL #7850
.FILL #13985
.FILL #25115
.FILL #13440
.FILL #29192
.FILL #16825
.FILL #1653
.FILL #30409
.FILL #7272
.FILL #28969
.FILL #26045
.FILL #9320
.FILL #29796
.FILL #31978
.FILL #25750
.FILL #10693
.FILL #9682
.FILL #20046
.FILL #16541
.FILL #8538
.FILL #10068
.FILL #28481
.FILL #21148
.FILL #23832
.FILL #11819
.FILL #32462
.FILL #16641
.FILL #7942
.FILL #5196
.FILL #20197
.FILL #13966
.FILL #17708
.FILL #25782
.FILL #3931
.FILL #29009
.FILL #27823
.FILL #514
.FILL #10802
.FILL #15831
.FILL #20541
.FILL #6972
.FILL #13595
.FILL #12957
.FILL #26027
.FILL #25329
.FILL #7225
.FILL #16327
.FILL #32477
.FILL #15497
.FILL #27176
.FILL #26388
.FILL #29159
.FILL #21463
.FILL #20798
.FILL #12306
.FILL #3185
.FILL #21231
.FILL #23056
.FILL #11406
.FILL #22112
.FILL #10808
.FILL #23352
.FILL #8527
.FILL #26547
.FILL #7874
.FILL #7766
.FILL #9988
.FILL #21930
.FILL #4825
.FILL #22101
.FILL #22394
.FILL #31534
.FILL #15578
.FILL #19184
.FILL #23314
.FILL #8301
.FILL #16453
.FILL #23924
.FILL #27251
.FILL #17861
.FILL #23828
.FILL #19143
.FILL #6268
.FILL #5603
.FILL #10571
.FILL #20137
.FILL #30844
.FILL #17196
.FILL #2257
.FILL #3130
.FILL #29862
.FILL #21595
.FILL #22398
.FILL #24508
.FILL #26815
.FILL #9324
.FILL #31093
.FILL #32155
.FILL #21786
.FILL #6586
.FILL #17844
.FILL #682
.FILL #15814
.FILL #22628
.FILL #32489
.FILL #22960
.FILL #2566
.FILL #29684
.FILL #20103
.FILL #6691
.FILL #30721
.FILL #25667
.FILL #30234
.FILL #17459
.FILL #30907
.FILL #16791
.FILL #10968
.FILL #32267
.FILL #2116
.FILL #3087
.FILL #20344
.FILL #13907
.FILL #22064
.FILL #577
.FILL #71
.FILL #20473
.FILL #21062
.FILL #19233
.FILL #9592
.FILL #15153
.FILL #29053
.FILL #30501
.FILL #32699
.FILL #8122
.FILL #16164
.FILL #7334
.FILL #25362
.FILL #31843
.FILL #3680
.FILL #5002
.FILL #5088
.FILL #24527
.FILL #24539
.FILL #5152
.FILL #31299
.FILL #7797
.FILL #20411
.FILL #15691
.FILL #8100
.FILL #10730
.FILL #8145
.FILL #17891
.FILL #10893
.FILL #28003
.FILL #12819
.FILL #23896
.FILL #19642
.FILL #21366
.FILL #1869
.FILL #32664
.FILL #22386
.FILL #22816
.FILL #5651
.FILL #16435
.FILL #27160
.FILL #21004
.FILL #3578
.FILL #20669
.FILL #28413
.FILL #16914
.FILL #23304
.FILL #18037
.FILL #23160
.FILL #28671
.FILL #32104
.FILL #25379
.FILL #24633
.FILL #5524
.FILL #2402
.FILL #25927
.FILL #4826
.FILL #20689
.FILL #25483
.FILL #9071
.FILL #8631
.FILL #14963
.FILL #3385
.FILL #30441
.FILL #10496
.FILL #17851
.FILL #5434
.FILL #14746
.FILL #18444
.FILL #19825
.FILL #198
.FILL #23342
.FILL #29168
.FILL #29225
.FILL #16561
.FILL #20850
.FILL #11345
.FILL #11717
.FILL #1765
.FILL #26621
.FILL #12406
.FILL #16443
.FILL #4112
.FILL #13078
.FILL #8865
.FILL #22936
.FILL #13722
.FILL #10706
.FILL #21408
.FILL #9541
.FILL #23514
.FILL #11133
.FILL #16543
.FILL #6793
.FILL #4233
.FILL #29755
.FILL #17728
.FILL #13904
.FILL #28023
.FILL #17647
.FILL #13294
.FILL #555
.FILL #4988
.FILL #16988
.FILL #18542
.FILL #3223
.FILL #20914
.FILL #20363
.FILL #10422
.FILL #13954
.FILL #19681
.FILL #26476
.FILL #26627
.FILL #31243
.FILL #15163
.FILL #14783
.FILL #16422
.FILL #3722
.FILL #2122
.FILL #3893
.FILL #29982
.FILL #3536
.FILL #29990
.FILL #14547
.FILL #5868
.FILL #32432
.FILL #2283
.FILL #3736
.FILL #5539
.FILL #26814
.FILL #25962
.FILL #16735
.FILL #23487
.FILL #21846
.FILL #21535
.FILL #1031
.FILL #25271
.FILL #25056
.FILL #8036
.FILL #20432
.FILL #30166
.FILL #18259
.FILL #3043
.FILL #18440
.FILL #5958
.FILL #31480
.FILL #1617
.FILL #232
.FILL #15214
.FILL #19569
.FILL #22874
.FILL #11705
.FILL #20094
.FILL #9465
.FILL #32727
.FILL #31290
.FILL #14407
.FILL #19437
.FILL #26439
.FILL #4934
.FILL #21073
.FILL #21644
.FILL #13949
.FILL #8882
.FILL #1063
.FILL #6395
.FILL #27798
.FILL #17013
.FILL #31222
.FILL #26251
.FILL #27694
.FILL #11019
.FILL #10582
.FILL #16191
.FILL #18132
.FILL #8475
.FILL #6248
.FILL #21641
.FILL #23738
.FILL #26199
.FILL #6945
.FILL #8021
.FILL #9393
.FILL #12707
.FILL #31461
.FILL #14664
.FILL #12373
.FILL #29306
.FILL #15448
.FILL #23370
.FILL #16517
.FILL #25486
.FILL #30577
.FILL #9538
.FILL #32279
.FILL #12463
.FILL #30160
.FILL #4896
.FILL #10953
.FILL #13294
.FILL #2897
.FILL #17185
.FILL #24186
.FILL #3586
.FILL #23777
.FILL #29006
.FILL #9370
.FILL #7659
.FILL #2448
.FILL #19527
.FILL #3551
.FILL #7125
.FILL #27112
.FILL #1854
.FILL #2617
.FILL #23358
.FILL #22909
.FILL #19782
.FILL #7945
.FILL #30811
.FILL #16070
.FILL #31182
.FILL #19854
.FILL #29880
.FILL #17707
.FILL #14952
.FILL #15775
.FILL #1824
.FILL #32095
.FILL #32208
.FILL #160
.FILL #8892
.FILL #22512
.FILL #21545
.FILL #175
.FILL #31102
.FILL #11805
.FILL #9353
.FILL #28702
.FILL #32193
.FILL #19687
.FILL #23480
.FILL #19750
.FILL #10025
.FILL #13931
.FILL #30773
.FILL #19929
.FILL #32465
.FILL #3438
.FILL #6010
.FILL #18521
.FILL #13989
.FILL #24378
.FILL #26753
.FILL #27464
.FILL #20492
.FILL #16297
.FILL #10119
.FILL #23167
.FILL #5579
.FILL #27519
.FILL #1808
.FILL #1027
.FILL #27942
.FILL #25852
.FILL #10795
.FILL #16692
.FILL #16967
.FILL #16050
.FILL #5111
.FILL #6216
.FILL #5092
.FILL #2197
.FILL #12390
.FILL #12792
.FILL #25117
.FILL #4945
.FILL #23105
.FILL #22393
.FILL #1187
.FILL #32224
.FILL #621
.FILL #3246
.FILL #11295
.FILL #16731
.FILL #23660
.FILL #6812
.FILL #4818
.FILL #12048
.FILL #13350
.FILL #7710
.FILL #8312
.FILL #5334
.FILL #20714
.FILL #28378
.FILL #1395
.FILL #31645
.FILL #2480
.FILL #29299
.FILL #4389
.FILL #13385
.FILL #28321
.FILL #12289
.FILL #18334
.FILL #9921
.FILL #11225
.FILL #14270
.FILL #31351
.FILL #5954
.FILL #2411
.FILL #13057
.FILL #26877
.FILL #22010
.FILL #11429
.FILL #12401
.FILL #11155
.FILL #3282
.FILL #32406
.FILL #114
.FILL #28241
.FILL #8075
.FILL #23502
.FILL #13796
.FILL #16113
.FILL #21004
.FILL #29029
.FILL #7949
.FILL #29164
.FILL #10490
.FILL #27455
.FILL #19155
.FILL #25312
.FILL #14474
.FILL #22413
.FILL #28207
.FILL #5173
.FILL #21907
.FILL #25495
.FILL #15838
.FILL #29184
.FILL #23784
.FILL #21946
.FILL #4186
.FILL #15399
.FILL #1252
.FILL #26796
.FILL #23560
.FILL #23495
.FILL #27974
.FILL #27656
.FILL #26035
.FILL #10194
.FILL #24895
.FILL #19974
.FILL #13113
.FILL #23805
.FILL #32714
.FILL #29321
.FILL #5764
.FILL #19673
.FILL #15932
.FILL #31584
.FILL #25788
.FILL #2111
.FILL #31004
.FILL #26053
.FILL #11707
.FILL #2290
.FILL #1844
.FILL #8490
.FILL #1986
.FILL #7808
.FILL #744
.FILL #822
.FILL #17258
.FILL #8809
.FILL #15815
.FILL #15626
.FILL #7133
.FILL #14211
.FILL #4704
.FILL #13768
.FILL #14149
.FILL #6301
.FILL #2135
.FILL #28246
.FILL #2949
.FILL #14947
.FILL #32440
.FILL #21087
.FILL #31528
.FILL #17538
.FILL #20618
.FILL #6811
.FILL #16022
.FILL #9740
.FILL #10152
.FILL #9297
.FILL #28046
.FILL #18717
.FILL #29132
.FILL #25114
.FILL #15568
.FILL #10687
.FILL #11245
.FILL #18919
.FILL #17434
.FILL #21515
.FILL #30667
.FILL #25669
.FILL #24662
.FILL #3473
.FILL #12232
.FILL #24800
.FILL #1554
.FILL #11770
.FILL #27897
.FILL #21574
.FILL #6192
.FILL #27372
.FILL #13181
.FILL #750
.FILL #5855
.FILL #6958
.FILL #14605
.FILL #23929
.FILL #15050
.FILL #13581
.FILL #31189
.FILL #4663
.FILL #20623
.FILL #3070
.FILL #3970
.FILL #22509
.FILL #26738
.FILL #4484
.FILL #32413
.FILL #21974
.FILL #11859
.FILL #7508
.FILL #28183
.FILL #19687
.FILL #32221
.FILL #184
.FILL #32037
.FILL #26199
.FILL #1793
.FILL #26929
.FILL #11086
.FILL #19295
.FILL #5794
.FILL #22112
.FILL #1729
.FILL #27199
.FILL #22418
.FILL #10022
.FILL #5357
.FILL #3201
.FILL #8126
.FILL #523
.FILL #10572
.FILL #8833
.FILL #7589
.FILL #7388
.FILL #7807
.FILL #26669
.FILL #31247
.FILL #10136
.FILL #9632
.FILL #18186
.FILL #16891
.FILL #24206
.FILL #8148
.FILL #6520
.FILL #11481
.FILL #1983
.FILL #13855
.FILL #13110
.FILL #4857
.FILL #24457
.FILL #9085
.FILL #21288
.FILL #10308
.FILL #14471
.FILL #25902
.FILL #25176
.FILL #20266
.FILL #21171
.FILL #17745
.FILL #9276
.FILL #6107
.FILL #11725
.FILL #29620
.FILL #15415
.FILL #16314
.FILL #23297
.FILL #8427
.FILL #11361
.FILL #17678
.FILL #4548
.FILL #20383
.FILL #12683
.FILL #25339
.FILL #3071
.FILL #20521
.FILL #8318
.FILL #2482
.FILL #28015
.FILL #6751
.FILL #10372
.FILL #9956
.FILL #14923
.FILL #31150
.FILL #7978
.FILL #21116
.FILL #8488
.FILL #16234
.FILL #14659
.FILL #13197
.FILL #7195
.FILL #28513
.FILL #21808
.FILL #12681
.FILL #11549
.FILL #6838
.FILL #14943
.FILL #17845
.FILL #14771
.FILL #23789
.FILL #29202
.FILL #217
.FILL #18894
.FILL #12098
.FILL #7522
.FILL #6460
.FILL #11759
.FILL #1599
.FILL #27779
.FILL #5327
.FILL #20624
.FILL #28045
.FILL #6985
.FILL #25513
.FILL #14016
.FILL #5643
.FILL #5867
.FILL #32435
.FILL #29709
.FILL #2589
.FILL #12552
.FILL #24229
.FILL #5542
.FILL #31815
.FILL #999
.FILL #24369
.FILL #18625
.FILL #25594
.FILL #27651
.FILL #25213
.FILL #16443
.FILL #23725
.FILL #15047
.FILL #18647
.FILL #7550
.FILL #31536
.FILL #1686
.FILL #4261
.FILL #24744
.FILL #3389
.FILL #15374
.FILL #12954
.FILL #9194
.FILL #30545
.FILL #21646
.FILL #3632
.FILL #9773
.FILL #9401
.FILL #22005
.FILL #31314
.FILL #26876
.FILL #15856
.FILL #32685
.FILL #20056
.FILL #26014
.FILL #6440
.FILL #18665
.FILL #30521
.FILL #7554
.FILL #6439
.FILL #5162
.FILL #27900
.FILL #2529
.FILL #28244
.FILL #15368
.FILL #7280
.FILL #11934
.FILL #28178
.FILL #23855
.FILL #6429
.FILL #21617
.FILL #29772
.FILL #424
.FILL #11130
.FILL #11844
.FILL #849
.FILL #4442
.FILL #3937
.FILL #28125
.FILL #5603
.FILL #11216
.FILL #30399
.FILL #3006
.FILL #22410
.FILL #20284
.FILL #9360
.FILL #17993
.FILL #14127
.FILL #28860
.FILL #13323
.FILL #7208
.FILL #2021
.FILL #27101
.FILL #24601
.FILL #17900
.FILL #9226
.FILL #24414
.FILL #24332
.FILL #29428
.FILL #18063
.FILL #1334
.FILL #9870
.FILL #19857
.FILL #3732
.FILL #25559
.FILL #11223
.FILL #2663
.FILL #24888
.FILL #693
.FILL #29732
.FILL #1815
.FILL #7599
.FILL #7170
.FILL #2404
.FILL #15387
.FILL #22421
.FILL #15804
.FILL #10036
.FILL #1521
.FILL #2945
.FILL #31722
.FILL #13325
.FILL #2427
.FILL #478
.FILL #6179
.FILL #23228
.FILL #14246
.FILL #21494
.FILL #16975
.FILL #22547
.FILL #13386
.FILL #18256
.FILL #22194
.FILL #20703
.FILL #9297
.FILL #29500
.FILL #15654
.FILL #17434
.FILL #10012
.FILL #25772
.FILL #19879
.FILL #28001
.FILL #32546
.FILL #13381
.FILL #24085
.FILL #11176
.FILL #11738
.FILL #17078
.FILL #23862
.FILL #16428
.FILL #1756
.FILL #3913
.FILL #7931
.FILL #31145
.FILL #32323
.FILL #23735
.FILL #15876
.FILL #8141
.FILL #13909
.FILL #6209
.FILL #13925
.FILL #13037
.FILL #4198
.FILL #14076
.FILL #7595
.FILL #21496
.FILL #17657
.FILL #32109
.FILL #7194
.FILL #26793
.FILL #18217
.FILL #25941
.FILL #2873
.FILL #20480
.FILL #30535
.FILL #5582
.FILL #23953
.FILL #15090
.FILL #26821
.FILL #8599
.FILL #13233
.FILL #32096
.FILL #16210
.FILL #32685
.FILL #17013
.FILL #27462
.FILL #26439
.FILL #29211
.FILL #28296
.FILL #5685
.FILL #11586
.FILL #20242
.FILL #16680
.FILL #32515
.FILL #30992
.FILL #24636
.FILL #6697
.FILL #4033
.FILL #12241
.FILL #19534
.FILL #17213
.FILL #29165
.FILL #342
.FILL #16093
.FILL #18546
.FILL #5353
.FILL #9422
.FILL #17010
.FILL #14844
.FILL #30892
.FILL #18594
.FILL #224
.FILL #15157
.FILL #4280
.FILL #14749
.FILL #24021
.FILL #738
.FILL #21323
.FILL #1360
.FILL #8112
.FILL #12472
.FILL #18650
.FILL #7093
.FILL #6802
.FILL #7199
.FILL #12219
.FILL #13330
.FILL #4536
.FILL #53
.FILL #2082
.FILL #31008
.FILL #17160
.FILL #10518
.FILL #7246
.FILL #16493
.FILL #20713
.FILL #1627
.FILL #22788
.FILL #20735
.FILL #32344
.FILL #18144
.FILL #2621
.FILL #32058
.FILL #28985
.FILL #25035
.FILL #20508
.FILL #5124
.FILL #28394
.FILL #12489
.FILL #24610
.FILL #27942
.FILL #18206
.FILL #32667
.FILL #26277
.FILL #5365
.FILL #24809
.FILL #13522
.FILL #7294
.FILL #23347
.FILL #7703
.FILL #30678
.FILL #25859
.FILL #18736
.FILL #2242
.FILL #30765
.FILL #2101
.FILL #17204
.FILL #32548
.FILL #14842
.FILL #23866
.FILL #22817
.FILL #20905
.FILL #3012
.FILL #30989
.FILL #2645
.FILL #1864
.FILL #2425
.FILL #13684
.FILL #206
.FILL #15380
.FILL #20659
.FILL #9266
.FILL #1937
.FILL #19982
.FILL #19001
.FILL #17022
.FILL #16460
.FILL #19518
.FILL #11465
.FILL #181
.FILL #23610
.FILL #23554
.FILL #7445
.FILL #29260
.FILL #23623
.FILL #2213
.FILL #3851
.FILL #14856
.FILL #7285
.FILL #12595
.FILL #19545
.FILL #1649
.FILL #11902
.FILL #2188
.FILL #17457
.FILL #12932
.FILL #18363
.FILL #23480
.FILL #2121
.FILL #24232
.FILL #17988
.FILL #4730
.FILL #6951
.FILL #5603
.FILL #4441
.FILL #7720
.FILL #29595
.FILL #21326
.FILL #22784
.FILL #19129
.FILL #22925
.FILL #31686
.FILL #30960
.FILL #9760
.FILL #32760
.FILL #8165
.FILL #686
.FILL #29145
.FILL #55
.FILL #6704
.FILL #13046
.FILL #21185
.FILL #6784
.FILL #23954
.FILL #22108
.FILL #13098
.FILL #24494
.FILL #2058
.FILL #24883
.FILL #2863
.FILL #10307
.FILL #3488
.FILL #16046
.FILL #837
.FILL #31917
.FILL #3997
.FILL #6981
.FILL #9491
.FILL #21192
.FILL #13307
.FILL #11866
.FILL #3716
.FILL #17573
.FILL #4379
.FILL #18205
.FILL #23322
.FILL #9354
.FILL #438
.FILL #8365
.FILL #14213
.FILL #4665
.FILL #29974
.FILL #16768
.FILL #21364
.FILL #30069
.FILL #3974
.FILL #27140
.FILL #9643
.FILL #451
.FILL #12039
.FILL #22150
.FILL #13909
.FILL #10094
.FILL #10308
.FILL #22612
.FILL #25500
.FILL #5581
.FILL #20424
.FILL #2590
.FILL #21624
.FILL #13000
.FILL #9071
.FILL #9122
.FILL #3524
.FILL #11161
.FILL #10266
.FILL #12425
.FILL #23959
.FILL #720
.FILL #20391
.FILL #11915
.FILL #4305
.FILL #16282
.FILL #31521
.FILL #22234
.FILL #9972
.FILL #8770
.FILL #27955
.FILL #5822
.FILL #30774
.FILL #504
.FILL #16611
.FILL #31612
.FILL #468
.FILL #14290
.FILL #14461
.FILL #5501
.FILL #19624
.FILL #15120
.FILL #30924
.FILL #5804
.FILL #8702
.FILL #21156
.FILL #1168
.FILL #12320
.FILL #676
.FILL #32754
.FILL #3117
.FILL #29435
.FILL #5184
.FILL #1748
.FILL #26017
.FILL #14482
.FILL #30950
.FILL #14049
.FILL #16568
.FILL #21966
.FILL #17642
.FILL #23023
.FILL #27523
.FILL #7634
.FILL #1779
.FILL #27606
.FILL #15110
.FILL #30685
.FILL #5713
.FILL #32631
.FILL #27697
.FILL #3186
.FILL #7057
.FILL #29949
.FILL #4370
.FILL #19895
.FILL #1870
.FILL #25955
.FILL #24136
.FILL #24348
.FILL #27466
.FILL #26423
.FILL #27835
.FILL #8252
.FILL #27069
.FILL #4253
.FILL #17290
.FILL #24328
.FILL #12012
.FILL #23190
.FILL #15941
.FILL #29986
.FILL #10494
.FILL #18818
.FILL #9053
.FILL #21639
.FILL #29195
.FILL #32484
.FILL #32472
.FILL #18289
.FILL #8311
.FILL #6246
.FILL #5449
.FILL #26492
.FILL #29054
.FILL #29
.FILL #768
.FILL #4103
.FILL #527
.FILL #4621
.FILL #23422
.FILL #20445
.FILL #2526
.FILL #15088
.FILL #23852
.FILL #7701
.FILL #19637
.FILL #29747
.FILL #3404
.FILL #22070
.FILL #13834
.FILL #16706
.FILL #20527
.FILL #16287
.FILL #21207
.FILL #4613
.FILL #20904
.FILL #9254
.FILL #7590
.FILL #11946
.FILL #20930
.FILL #14848
.FILL #20715
.FILL #4262
.FILL #10670
.FILL #25825
.FILL #13207
.FILL #19702
.FILL #7423
.FILL #4707
.FILL #5098
.FILL #29611
.FILL #19226
.FILL #13740
.FILL #25737
.FILL #2213
.FILL #21735
.FILL #9803
.FILL #12240
.FILL #31135
.FILL #2765
.FILL #26212
.FILL #21865
.FILL #13676
.FILL #14046
.FILL #5133
.FILL #17950
.FILL #18559
.FILL #22350
.FILL #2551
.FILL #12779
.FILL #8881
.FILL #23850
.FILL #29521
.FILL #23640
.FILL #27199
.FILL #17222
.FILL #22249
.FILL #2822
.FILL #18
.FILL #4472
.FILL #23957
.FILL #17031
.FILL #6468
.FILL #8195
.FILL #22481
.FILL #17778
.FILL #4575
.FILL #12118
.FILL #18089
.FILL #2487
.FILL #23784
.FILL #10231
.FILL #27610
.FILL #6193
.FILL #13724
.FILL #5818
.FILL #9524
.FILL #2682
.FILL #30201
.FILL #14646
.FILL #5954
.FILL #6915
.FILL #13952
.FILL #11897
.FILL #27437
.FILL #31588
.FILL #6970
.FILL #8187
.FILL #9182
.FILL #25840
.FILL #29177
.FILL #30417
.FILL #20067
.FILL #6029
.FILL #1504
.FILL #28963
.FILL #4500
.FILL #15043
.FILL #19493
.FILL #11232
.FILL #24822
.FILL #21778
.FILL #19990
.FILL #29872
.FILL #22239
.FILL #19849
.FILL #29786
.FILL #30763
.FILL #31195
.FILL #11156
.FILL #6010
.FILL #8264
.FILL #29007
.FILL #2326
.FILL #31136
.FILL #14104
.FILL #27996
.FILL #27319
.FILL #3486
.FILL #8628
.FILL #17926
.FILL #29312
.FILL #12081
.FILL #18292
.FILL #5526
.FILL #8357
.FILL #12423
.FILL #31073
.FILL #21052
.FILL #5793
.FILL #24832
.FILL #28141
.FILL #11001
.FILL #4232
.FILL #28978
.FILL #9442
.FILL #11196
.FILL #2201
.FILL #22575
.FILL #18329
.FILL #27852
.FILL #14611
.FILL #7690
.FILL #22892
.FILL #20837
.FILL #28747
.FILL #12183
.FILL #19565
.FILL #6566
.FILL #27386
.FILL #8051
.FILL #20057
.FILL #19371
.FILL #10459
.FILL #30788
.FILL #25031
.FILL #14326
.FILL #28534
.FILL #1090
.FILL #6053
.FILL #7443
.FILL #28470
.FILL #11767
.FILL #31973
.FILL #11899
.FILL #16066
.FILL #24130
.FILL #4212
.FILL #698
.FILL #8330
.FILL #31650
.FILL #21868
.FILL #11469
.FILL #18080
.FILL #28337
.FILL #21898
.FILL #1230
.FILL #2250
.FILL #20463
.FILL #10210
.FILL #25555
.FILL #16597
.FILL #8897
.FILL #20433
.FILL #22291
.FILL #16684
.FILL #16826
.FILL #2100
.FILL #3658
.FILL #6569
.FILL #24600
.FILL #20183
.FILL #2399
.FILL #7850
.FILL #17554
.FILL #17457
.FILL #18756
.FILL #26216
.FILL #8529
.FILL #13134
.FILL #2079
.FILL #12420
.FILL #11580
.FILL #22028
.FILL #15527
.FILL #27619
.FILL #25208
.FILL #10634
.FILL #27856
.FILL #20156
.FILL #1583
.FILL #26334
.FILL #5034
.FILL #13551
.FILL #23953
.FILL #29702
.FILL #7814
.FILL #14489
.FILL #13337
.FILL #24865
.FILL #17756
.FILL #14565
.FILL #5906
.FILL #17888
.FILL #17001
.FILL #17189
.FILL #27225
.FILL #4919
.FILL #11548
.FILL #4641
.FILL #14948
.FILL #11608
.FILL #31795
.FILL #6062
.FILL #28547
.FILL #25057
.FILL #29474
.FILL #17539
.FILL #18022
.FILL #3668
.FILL #32436
.FILL #585
.FILL #12768
.FILL #2761
.FILL #17652
.FILL #5105
.FILL #2538
.FILL #11487
.FILL #27726
.FILL #20554
.FILL #11243
.FILL #30456
.FILL #24050
.FILL #27347
.FILL #28727
.FILL #18342
.FILL #1913
.FILL #16078
.FILL #6357
.FILL #7520
.FILL #24523
.FILL #20629
.FILL #7557
.FILL #17018
.FILL #13120
.FILL #31025
.FILL #30977
.FILL #30036
.FILL #31493
.FILL #28713
.FILL #23428
.FILL #24785
.FILL #17346
.FILL #10136
.FILL #26249
.FILL #30986
.FILL #26489
.FILL #11906
.FILL #21973
.FILL #4164
.FILL #7858
.FILL #3432
.FILL #14775
.FILL #14368
.FILL #11477
.FILL #20762
.FILL #9871
.FILL #17170
.FILL #11223
.FILL #14285
.FILL #32141
.FILL #31252
.FILL #15128
.FILL #13421
.FILL #12987
.FILL #23196
.FILL #5516
.FILL #15413
.FILL #13374
.FILL #28875
.FILL #21274
.FILL #4732
.FILL #22233
.FILL #8679
.FILL #22849
.FILL #1746
.FILL #27570
.FILL #31499
.FILL #16129
.FILL #22859
.FILL #25433
.FILL #22557
.FILL #10233
.FILL #14619
.FILL #8710
.FILL #30465
.FILL #23245
.FILL #4451
.FILL #26914
.FILL #19212
.FILL #5834
.FILL #6219
.FILL #31241
.FILL #9404
.FILL #27853
.FILL #21585
.FILL #22031
.FILL #422
.FILL #8032
.FILL #3041
.FILL #16321
.FILL #6319
.FILL #20007
.FILL #21285
.FILL #24941
.FILL #30335
.FILL #28795
.FILL #11294
.FILL #15588
.FILL #15923
.FILL #25428
.FILL #27892
.FILL #18558
.FILL #25170
.FILL #3692
.FILL #24714
.FILL #23903
.FILL #27139
.FILL #25761
.FILL #21846
.FILL #23289
.FILL #5757
.FILL #17307
.FILL #3696
.FILL #9170
.FILL #31934
.FILL #30384
.FILL #19176
.FILL #22407
.FILL #26496
.FILL #24836
.FILL #22365
.FILL #28178
.FILL #5481
.FILL #4853
.FILL #24011
.FILL #6216
.FILL #10114
.FILL #20150
.FILL #26533
.FILL #2469
.FILL #21482
.FILL #16441
.FILL #17956
.FILL #3916
.FILL #12492
.FILL #27731
.FILL #21726
.FILL #6218
.FILL #11150
.FILL #6939
.FILL #19098
.FILL #4891
.FILL #75
.FILL #16787
.FILL #3171
.FILL #17519
.FILL #17796
.FILL #11914
.FILL #14043
.FILL #31534
.FILL #24594
.FILL #32448
.FILL #20946
.FILL #17849
.FILL #29535
.FILL #7244
.FILL #25111
.FILL #3187
.FILL #8662
.FILL #19771
.FILL #19854
.FILL #13696
.FILL #12696
.FILL #5498
.FILL #17795
.FILL #13772
.FILL #26993
.FILL #28662
.FILL #11070
.FILL #13135
.FILL #14858
.FILL #8961
.FILL #8920
.FILL #7312
.FILL #1888
.FILL #13304
.FILL #18509
.FILL #22888
.FILL #9844
.FILL #15906
.FILL #15057
.FILL #30985
.FILL #25413
.FILL #12508
.FILL #29288
.FILL #318
.FILL #8955
.FILL #14579
.FILL #5041
.FILL #17141
.FILL #30309
.FILL #22866
.FILL #13826
.FILL #22522
.FILL #12453
.FILL #30429
.FILL #20410
.FILL #11781
.FILL #22058
.FILL #23452
.FILL #15571
.FILL #17143
.FILL #30687
.FILL #29980
.FILL #5047
.FILL #30305
.FILL #20130
.FILL #21010
.FILL #15445
.FILL #5190
.FILL #11000
.FILL #9026
.FILL #32115
.FILL #32034
.FILL #3327
.FILL #17311
.FILL #29766
.FILL #3882
.FILL #30884
.FILL #2996
.FILL #10816
.FILL #13526
.FILL #23061
.FILL #29762
.FILL #15657
.FILL #15517
.FILL #3706
.FILL #19499
.FILL #19825
.FILL #24063
.FILL #25824
.FILL #1422
.FILL #9925
.FILL #4041
.FILL #11125
.FILL #24116
.FILL #22240
.FILL #5013
.FILL #7419
.FILL #26411
.FILL #9892
.FILL #23184
.FILL #17015
.FILL #12208
.FILL #10601
.FILL #10112
.FILL #7465
.FILL #5971
.FILL #22165
.FILL #4613
.FILL #11457
.FILL #2901
.FILL #24940
.FILL #20254
.FILL #9680
.FILL #13141
.FILL #17194
.FILL #25328
.FILL #27773
.FILL #20779
.FILL #11087
.FILL #8131
.FILL #10105
.FILL #22549
.FILL #19003
.FILL #5710
.FILL #32565
.FILL #32529
.FILL #10746
.FILL #23348
.FILL #23890
.FILL #21129
.FILL #2401
.FILL #17870
.FILL #16473
.FILL #2357
.FILL #27994
.FILL #3115
.FILL #30636
.FILL #8254
.FILL #23676
.FILL #24661
.FILL #23484
.FILL #671
.FILL #30943
.FILL #29398
.FILL #22141
.FILL #16337
.FILL #27694
.FILL #32379
.FILL #20503
.FILL #5543
.FILL #23037
.FILL #16728
.FILL #21471
.FILL #20855
.FILL #19549
.FILL #1804
.FILL #389
.FILL #19578
.FILL #20142
.FILL #10311
.FILL #7822
.FILL #1909
.FILL #10933
.FILL #9097
.FILL #23557
.FILL #10649
.FILL #31727
.FILL #13100
.FILL #9326
.FILL #26280
.FILL #3364
.FILL #1188
.FILL #1532
.FILL #4186
.FILL #13374
.FILL #29958
.FILL #3332
.FILL #22271
.FILL #8284
.FILL #30407
.FILL #8880
.FILL #32101
.FILL #20003
.FILL #1222
.FILL #17400
.FILL #1020
.FILL #5716
.FILL #18061
.FILL #9422
.FILL #3896
.FILL #2724
.FILL #18900
.FILL #5017
.FILL #3383
.FILL #5320
.FILL #30023
.FILL #12517
.FILL #24228
.FILL #3023
.FILL #6282
.FILL #20313
.FILL #1755
.FILL #13236
.FILL #15737
.FILL #4073
.FILL #10062
.FILL #23348
.FILL #7860
.FILL #3661
.FILL #18983
.FILL #3037
.FILL #26459
.FILL #12721
.FILL #16431
.FILL #104
.FILL #8214
.FILL #30126
.FILL #5614
.FILL #21832
.FILL #27993
.FILL #16249
.FILL #25620
.FILL #10115
.FILL #742
.FILL #4954
.FILL #32535
.FILL #5569
.FILL #28819
.FILL #15968
.FILL #18974
.FILL #22434
.FILL #11341
.FILL #18516
.FILL #12574
.FILL #24405
.FILL #32093
.FILL #16875
.FILL #3650
.FILL #14695
.FILL #11498
.FILL #17215
.FILL #32401
.FILL #7896
.FILL #8127
.FILL #11904
.FILL #27083
.FILL #28020
.FILL #15695
.FILL #2791
.FILL #16787
.FILL #31328
.FILL #18422
.FILL #3052
.FILL #15315
.FILL #29428
.FILL #2690
.FILL #6329
.FILL #3165
.FILL #16328
.FILL #32498
.FILL #26590
.FILL #25038
.FILL #7698
.FILL #21118
.FILL #838
.FILL #10680
.FILL #25391
.FILL #27351
.FILL #18538
.FILL #24576
.FILL #7807
.FILL #20655
.FILL #14532
.FILL #28036
.FILL #3446
.FILL #9084
.FILL #11911
.FILL #23041
.FILL #5616
.FILL #31353
.FILL #18829
.FILL #21813
.FILL #15045
.FILL #22254
.FILL #10385
.FILL #23360
.FILL #16030
.FILL #2994
.FILL #17054
.FILL #30800
.FILL #26887
.FILL #15854
.FILL #29895
.FILL #28541
.FILL #8645
.FILL #25379
.FILL #6169
.FILL #18674
.FILL #22121
.FILL #24687
.FILL #13262
.FILL #2894
.FILL #24101
.FILL #12044
.FILL #8131
.FILL #9290
.FILL #20447
.FILL #10777
.FILL #11053
.FILL #17563
.FILL #32388
.FILL #27037
.FILL #7047
.FILL #13082
.FILL #3999
.FILL #20169
.FILL #6095
.FILL #23330
.FILL #24618
.FILL #9597
.FILL #21489
.FILL #6713
.FILL #11171
.FILL #32526
.FILL #4228
.FILL #4339
.FILL #10595
.FILL #10823
.FILL #17076
.FILL #31508
.FILL #5164
.FILL #27821
.FILL #30847
.FILL #21237
.FILL #20481
.FILL #24839
.FILL #19749
.FILL #17449
.FILL #8762
.FILL #7966
.FILL #473
.FILL #12639
.FILL #12247
.FILL #4290
.FILL #3773
.FILL #20874
.FILL #13845
.FILL #6157
.FILL #16397
.FILL #10304
.FILL #12607
.FILL #27372
.FILL #13210
.FILL #23904
.FILL #26055
.FILL #18394
.FILL #19067
.FILL #14328
.FILL #32661
.FILL #26607
.FILL #25343
.FILL #16486
.FILL #15263
.FILL #21018
.FILL #28390
.FILL #19901
.FILL #20410
.FILL #29611
.FILL #14800
.FILL #618
.FILL #1199
.FILL #8724
.FILL #29685
.FILL #31767
.FILL #13970
.FILL #27120
.FILL #21783
.FILL #15055
.FILL #12111
.FILL #20292
.FILL #27573
.FILL #867
.FILL #3974
.FILL #25349
.FILL #27778
.FILL #16653
.FILL #14745
.FILL #20955
.FILL #5653
.FILL #10836
.FILL #29443
.FILL #20517
.FILL #31970
.FILL #11567
.FILL #12267
.FILL #1853
.FILL #21353
.FILL #26221
.FILL #15608
.FILL #26621
.FILL #685
.FILL #10324
.FILL #15208
.FILL #1666
.FILL #9960
.FILL #21641
.FILL #9052
.FILL #25391
.FILL #17533
.FILL #3376
.FILL #16502
.FILL #17653
.FILL #18734
.FILL #339
.FILL #23718
.FILL #2258
.FILL #11663
.FILL #22664
.FILL #3393
.FILL #2712
.FILL #19130
.FILL #462
.FILL #22100
.FILL #2800
.FILL #14405
.FILL #27065
.FILL #6199
.FILL #13982
.FILL #18033
.FILL #23503
.FILL #31589
.FILL #13063
.FILL #26788
.FILL #4913
.FILL #20106
.FILL #21488
.FILL #9242
.FILL #15998
.FILL #2782
.FILL #24200
.FILL #22231
.FILL #31476
.FILL #29362
.FILL #32169
.FILL #27360
.FILL #2776
.FILL #32328
.FILL #19291
.FILL #18858
.FILL #19224
.FILL #2792
.FILL #5018
.FILL #9171
.FILL #11312
.FILL #48
.FILL #13401
.FILL #24848
.FILL #12874
.FILL #24492
.FILL #16070
.FILL #19559
.FILL #16553
.FILL #29351
.FILL #15824
.FILL #20638
.FILL #13383
.FILL #2624
.FILL #17894
.FILL #22771
.FILL #4541
.FILL #1472
.FILL #12802
.FILL #10765
.FILL #19044
.FILL #4906
.FILL #12775
.FILL #18227
.FILL #23738
.FILL #24084
.FILL #3495
.FILL #14268
.FILL #21511
.FILL #8374
.FILL #16999
.FILL #16582
.FILL #27456
.FILL #19265
.FILL #23654
.FILL #26411
.FILL #22315
.FILL #13682
.FILL #12860
.FILL #19889
.FILL #31684
.FILL #3686
.FILL #25952
.FILL #17281
.FILL #4320
.FILL #32432
.FILL #19437
.FILL #5851
.FILL #31248
.FILL #12457
.FILL #10150
.FILL #7
.FILL #21960
.FILL #13063
.FILL #20023
.FILL #14479
.FILL #1984
.FILL #27057
.FILL #9918
.FILL #4779
.FILL #17051
.FILL #210
.FILL #8329
.FILL #9469
.FILL #21703
.FILL #5676
.FILL #1825
.FILL #24190
.FILL #15524
.FILL #3248
.FILL #22408
.FILL #5817
.FILL #18408
.FILL #15947
.FILL #31424
.FILL #28215
.FILL #16962
.FILL #2
.FILL #2444
.FILL #4922
.FILL #30525
.FILL #11329
.FILL #32123
.FILL #16046
.FILL #2920
.FILL #10096
.FILL #29473
.FILL #32092
.FILL #28852
.FILL #4808
.FILL #25000
.FILL #6497
.FILL #31261
.FILL #8549
.FILL #27528
.FILL #14302
.FILL #21132
.FILL #17308
.FILL #11410
.FILL #32498
.FILL #23292
.FILL #7310
.FILL #10547
.FILL #22501
.FILL #13276
.FILL #30205
.FILL #17143
.FILL #8614
.FILL #30133
.FILL #9823
.FILL #22092
.FILL #26488
.FILL #23821
.FILL #7473
.FILL #25993
.FILL #28648
.FILL #28043
.FILL #2446
.FILL #29998
.FILL #14338
.FILL #20572
.FILL #20224
.FILL #32109
.FILL #11972
.FILL #29140
.FILL #15510
.FILL #5354
.FILL #17619
.FILL #8793
.FILL #14903
.FILL #14528
.FILL #9325
.FILL #15997
.FILL #24629
.FILL #21956
.FILL #9631
.FILL #8810
.FILL #11557
.FILL #30477
.FILL #21176
.FILL #27779
.FILL #19951
.FILL #15796
.FILL #4349
.FILL #21320
.FILL #11297
.FILL #1496
.FILL #16798
.FILL #4730
.FILL #13961
.FILL #23781
.FILL #28393
.FILL #13184
.FILL #6146
.FILL #11542
.FILL #22974
.FILL #13578
.FILL #20622
.FILL #16953
.FILL #31555
.FILL #22004
.FILL #25765
.FILL #2995
.FILL #20184
.FILL #1901
.FILL #5837
.FILL #16323
.FILL #30798
.FILL #19032
.FILL #24427
.FILL #17419
.FILL #6739
.FILL #31730
.FILL #5849
.FILL #32588
.FILL #28977
.FILL #21942
.FILL #1464
.FILL #30833
.FILL #1465
.FILL #9342
.FILL #20360
.FILL #26319
.FILL #3193
.FILL #31466
.FILL #27510
.FILL #6059
.FILL #17718
.FILL #25349
.FILL #8052
.FILL #19708
.FILL #28310
.FILL #21286
.FILL #12687
.FILL #31091
.FILL #8732
.FILL #27157
.FILL #17277
.FILL #32185
.FILL #11353
.FILL #13935
.FILL #3190
.FILL #19192
.FILL #13665
.FILL #3404
.FILL #25926
.FILL #3740
.FILL #19837
.FILL #13342
.FILL #23199
.FILL #19291
.FILL #12831
.FILL #25053
.FILL #14771
.FILL #882
.FILL #24347
.FILL #23393
.FILL #19202
.FILL #22578
.FILL #16403
.FILL #12047
.FILL #12145
.FILL #17084
.FILL #5683
.FILL #21431
.FILL #5021
.FILL #18953
.FILL #26143
.FILL #11965
.FILL #11630
.FILL #23085
.FILL #554
.FILL #17783
.FILL #14319
.FILL #8412
.FILL #1225
.FILL #7639
.FILL #24925
.FILL #4909
.FILL #20295
.FILL #4682
.FILL #24446
.FILL #158
.FILL #24762
.FILL #7391
.FILL #7731
.FILL #22360
.FILL #6453
.FILL #23980
.FILL #15441
.FILL #32181
.FILL #15679
.FILL #24686
.FILL #19117
.FILL #25856
.FILL #19844
.FILL #25967
.FILL #374
.FILL #14716
.FILL #1739
.FILL #12717
.FILL #24520
.FILL #21415
.FILL #7720
.FILL #10808
.FILL #27005
.FILL #20159
.FILL #3443
.FILL #16092
.FILL #30535
.FILL #26758
.FILL #1016
.FILL #26624
.FILL #19708
.FILL #3651
.FILL #20336
.FILL #15310
.FILL #27184
.FILL #15113
.FILL #20785
.FILL #24212
.FILL #18697
.FILL #2875
.FILL #21409
.FILL #21098
.FILL #32591
.FILL #10576
.FILL #21488
.FILL #27158
.FILL #30147
.FILL #30676
.FILL #5127
.FILL #25388
.FILL #10674
.FILL #7343
.FILL #2235
.FILL #27514
.FILL #11465
.FILL #20906
.FILL #30791
.FILL #5538
.FILL #22315
.FILL #7727
.FILL #23801
.FILL #265
.FILL #24513
.FILL #24144
.FILL #24619
.FILL #14576
.FILL #20177
.FILL #15116
.FILL #373
.FILL #3809
.FILL #32467
.FILL #30669
.FILL #15905
.FILL #29773
.FILL #8064
.FILL #14644
.FILL #19679
.FILL #6003
.FILL #28459
.FILL #10521
.FILL #16826
.FILL #18307
.FILL #7764
.FILL #7118
.FILL #11851
.FILL #25604
.FILL #4475
.FILL #6820
.FILL #4653
.FILL #23411
.FILL #30002
.FILL #30641
.FILL #12209
.FILL #32045
.FILL #22646
.FILL #20176
.FILL #6354
.FILL #8847
.FILL #16703
.FILL #6120
.FILL #2155
.FILL #29531
.FILL #28502
.FILL #11890
.FILL #23463
.FILL #18781
.FILL #16743
.FILL #29237
.FILL #16313
.FILL #30543
.FILL #28759
.FILL #25940
.FILL #26574
.FILL #30459
.FILL #5335
.FILL #27531
.FILL #24384
.FILL #17055
.FILL #11066
.FILL #3766
.FILL #19469
.FILL #23957
.FILL #2435
.FILL #27795
.FILL #13703
.FILL #20531
.FILL #31683
.FILL #12744
.FILL #9037
.FILL #6897
.FILL #31394
.FILL #17960
.FILL #10361
.FILL #25801
.FILL #12347
.FILL #3634
.FILL #12059
.FILL #26852
.FILL #16173
.FILL #26074
.FILL #6119
.FILL #26482
.FILL #32750
.FILL #14477
.FILL #554
.FILL #7642
.FILL #10339
.FILL #23151
.FILL #20483
.FILL #2579
.FILL #4526
.FILL #1767
.FILL #15055
.FILL #32081
.FILL #4168
.FILL #10333
.FILL #3045
.FILL #16869
.FILL #4687
.FILL #19778
.FILL #19844
.FILL #22622
.FILL #30753
.FILL #28241
.FILL #2057
.FILL #4085
.FILL #23337
.FILL #27157
.FILL #24421
.FILL #32296
.FILL #14073
.FILL #22956
.FILL #9423
.FILL #6564
.FILL #10393
.FILL #8906
.FILL #12470
.FILL #31848
.FILL #14367
.FILL #27393
.FILL #6394
.FILL #4392
.FILL #24704
.FILL #20543
.FILL #5979
.FILL #12271
.FILL #18854
.FILL #2712
.FILL #13362
.FILL #28169
.FILL #26819
.FILL #23365
.FILL #2399
.FILL #9504
.FILL #31460
.FILL #27885
.FILL #12674
.FILL #30117
.FILL #3529
.FILL #2340
.FILL #14190
.FILL #18546
.FILL #2804
.FILL #18226
.FILL #6618
.FILL #5037
.FILL #30976
.FILL #6165
.FILL #14170
.FILL #26351
.FILL #26420
.FILL #21449
.FILL #13966
.FILL #677
.FILL #14168
.FILL #11206
.FILL #16025
.FILL #32439
.FILL #14791
.FILL #9931
.FILL #5077
.FILL #17512
.FILL #20422
.FILL #2522
.FILL #27846
.FILL #24446
.FILL #2068
.FILL #21123
.FILL #4940
.FILL #27298
.FILL #27075
.FILL #9830
.FILL #9756
.FILL #6921
.FILL #24901
.FILL #23540
.FILL #3696
.FILL #12116
.FILL #970
.FILL #117
.FILL #32254
.FILL #17845
.FILL #7370
.FILL #32591
.FILL #2343
.FILL #23892
.FILL #14813
.FILL #20101
.FILL #12658
.FILL #1777
.FILL #10451
.FILL #17534
.FILL #29752
.FILL #2250
.FILL #7169
.FILL #31496
.FILL #12705
.FILL #31167
.FILL #26841
.FILL #25500
.FILL #32719
.FILL #6068
.FILL #5310
.FILL #28900
.FILL #15960
.FILL #23863
.FILL #9238
.FILL #31098
.FILL #32250
.FILL #6754
.FILL #24480
.FILL #14323
.FILL #4234
.FILL #5379
.FILL #1031
.FILL #3100
.FILL #21806
.FILL #29691
.FILL #4024
.FILL #24963
.FILL #5324
.FILL #31204
.FILL #8945
.FILL #24377
.FILL #706
.FILL #21239
.FILL #9755
.FILL #17623
.FILL #13784
.FILL #31276
.FILL #10842
.FILL #6335
.FILL #11634
.FILL #31138
.FILL #14434
.FILL #2980
.FILL #14091
.FILL #2626
.FILL #396
.FILL #13645
.FILL #18398
.FILL #22176
.FILL #10025
.FILL #3733
.FILL #7910
.FILL #25889
.FILL #3094
.FILL #19639
.FILL #17161
.FILL #28003
.FILL #25745
.FILL #456
.FILL #12689
.FILL #7385
.FILL #30794
.FILL #9861
.FILL #20699
.FILL #3766
.FILL #19133
.FILL #29007
.FILL #31571
.FILL #31501
.FILL #7616
.FILL #7796
.FILL #13984
.FILL #24886
.FILL #600
.FILL #3504
.FILL #27419
.FILL #12659
.FILL #27601
.FILL #22772
.FILL #12166
.FILL #14803
.FILL #30990
.FILL #18533
.FILL #31995
.FILL #23127
.FILL #26653
.FILL #18344
.FILL #24354
.FILL #17492
.FILL #26638
.FILL #16477
.FILL #29863
.FILL #18712
.FILL #15622
.FILL #32233
.FILL #21483
.FILL #31696
.FILL #27279
.FILL #32377
.FILL #10234
.FILL #10922
.FILL #22578
.FILL #21828
.FILL #6590
.FILL #29494
.FILL #9288
.FILL #528
.FILL #22898
.FILL #30226
.FILL #6413
.FILL #25079
.FILL #23640
.FILL #28102
.FILL #30710
.FILL #7531
.FILL #8879
.FILL #11501
.FILL #3909
.FILL #14200
.FILL #6624
.FILL #18326
.FILL #19930
.FILL #8777
.FILL #28408
.FILL #27625
.FILL #18764
.FILL #31982
.FILL #25946
.FILL #11790
.FILL #27192
.FILL #24156
.FILL #1462
.FILL #19274
.FILL #13017
.FILL #20917
.FILL #14645
.FILL #10347
.FILL #21465
.FILL #26570
.FILL #9462
.FILL #3943
.FILL #871
.FILL #479
.FILL #22974
.FILL #28736
.FILL #19082
.FILL #14766
.FILL #11243
.FILL #10538
.FILL #15541
.FILL #2734
.FILL #18346
.FILL #6640
.FILL #19867
.FILL #8340
.FILL #21866
.FILL #1684
.FILL #14660
.FILL #28442
.FILL #17041
.FILL #3382
.FILL #12897
.FILL #30464
.FILL #621
.FILL #13110
.FILL #19165
.FILL #23633
.FILL #23405
.FILL #19869
.FILL #19124
.FILL #12776
.FILL #5265
.FILL #18617
.FILL #26888
.FILL #7730
.FILL #5919
.FILL #4872
.FILL #7026
.FILL #15670
.FILL #22680
.FILL #12120
.FILL #28566
.FILL #25554
.FILL #8426
.FILL #12843
.FILL #8954
.FILL #10311
.FILL #231
.FILL #11872
.FILL #27928
.FILL #21496
.FILL #3318
.FILL #21776
.FILL #12209
.FILL #8814
.FILL #12296
.FILL #19639
.FILL #357
.FILL #29088
.FILL #10958
.FILL #916
.FILL #18049
.FILL #18289
.FILL #4906
.FILL #338
.FILL #19480
.FILL #20603
.FILL #26595
.FILL #31719
.FILL #6485
.FILL #15371
.FILL #3228
.FILL #13245
.FILL #27407
.FILL #6508
.FILL #16903
.FILL #23311
.FILL #3486
.FILL #6761
.FILL #28246
.FILL #3223
.FILL #2285
.FILL #24333
.FILL #18930
.FILL #5478
.FILL #21201
.FILL #11949
.FILL #17520
.FILL #5651
.FILL #31641
.FILL #16937
.FILL #13761
.FILL #16151
.FILL #2279
.FILL #878
.FILL #12200
.FILL #11384
.FILL #29374
.FILL #26175
.FILL #881
.FILL #9381
.FILL #30427
.FILL #15926
.FILL #20449
.FILL #16033
.FILL #13897
.FILL #13829
.FILL #11113
.FILL #13156
.FILL #20784
.FILL #19458
.FILL #16030
.FILL #24191
.FILL #29934
.FILL #30691
.FILL #25326
.FILL #12798
.FILL #4200
.FILL #24005
.FILL #6539
.FILL #8594
.FILL #8866
.FILL #12916
.FILL #28332
.FILL #18672
.FILL #22414
.FILL #13542
.FILL #7413
.FILL #20852
.FILL #26402
.FILL #24840
.FILL #1331
.FILL #23306
.FILL #27309
.FILL #16318
.FILL #20045
.FILL #27726
.FILL #7275
.FILL #30756
.FILL #16760
.FILL #11762
.FILL #13655
.FILL #1563
.FILL #13993
.FILL #30048
.FILL #23872
.FILL #14849
.FILL #9552
.FILL #25249
.FILL #24863
.FILL #26047
.FILL #11587
.FILL #5502
.FILL #9128
.FILL #23305
.FILL #11256
.FILL #15845
.FILL #31775
.FILL #7905
.FILL #12792
.FILL #2958
.FILL #30573
.FILL #30301
.FILL #27792
.FILL #16605
.FILL #12147
.FILL #12459
.FILL #22474
.FILL #27915
.FILL #11422
.FILL #21074
.FILL #19612
.FILL #4481
.FILL #1468
.FILL #1466
.FILL #16222
.FILL #13956
.FILL #12814
.FILL #29935
.FILL #17025
.FILL #13079
.FILL #16798
.FILL #28834
.FILL #8575
.FILL #11293
.FILL #28626
.FILL #2161
.FILL #10254
.FILL #3775
.FILL #17474
.FILL #30824
.FILL #27033
.FILL #2573
.FILL #13767
.FILL #4039
.FILL #7408
.FILL #19432
.FILL #980
.FILL #29957
.FILL #24639
.FILL #1311
.FILL #14858
.FILL #27414
.FILL #31037
.FILL #30936
.FILL #4614
.FILL #31722
.FILL #26021
.FILL #6962
.FILL #10110
.FILL #11318
.FILL #20458
.FILL #808
.FILL #12940
.FILL #7286
.FILL #15399
.FILL #13241
.FILL #15433
.FILL #15155
.FILL #340
.FILL #69
.FILL #414
.FILL #27777
.FILL #25280
.FILL #4155
.FILL #30807
.FILL #19149
.FILL #23995
.FILL #17905
.FILL #10873
.FILL #25813
.FILL #32659
.FILL #3283
.FILL #23510
.FILL #7416
.FILL #22467
.FILL #21184
.FILL #11742
.FILL #3504
.FILL #23142
.FILL #12465
.FILL #13752
.FILL #5981
.FILL #18162
.FILL #1692
.FILL #14482
.FILL #31556
.FILL #26402
.FILL #3736
.FILL #565
.FILL #10199
.FILL #14900
.FILL #11073
.FILL #2524
.FILL #6711
.FILL #24661
.FILL #30046
.FILL #22854
.FILL #30967
.FILL #23130
.FILL #19649
.FILL #27146
.FILL #19491
.FILL #29104
.FILL #28783
.FILL #27947
.FILL #30336
.FILL #23702
.FILL #25089
.FILL #12524
.FILL #21526
.FILL #29321
.FILL #6218
.FILL #6373
.FILL #8684
.FILL #1280
.FILL #17722
.FILL #23639
.FILL #4883
.FILL #12378
.FILL #13058
.FILL #32445
.FILL #14053
.FILL #14613
.FILL #31865
.FILL #13987
.FILL #5263
.FILL #18752
.FILL #9407
.FILL #14011
.FILL #8141
.FILL #8755
.FILL #21024
.FILL #3374
.FILL #27381
.FILL #5757
.FILL #12347
.FILL #3376
.FILL #14903
.FILL #24606
.FILL #15715
.FILL #30423
.FILL #23587
.FILL #9975
.FILL #1861
.FILL #20781
.FILL #27499
.FILL #19326
.FILL #6859
.FILL #10884
.FILL #24043
.FILL #18870
.FILL #11073
.FILL #13065
.FILL #1254
.FILL #18527
.FILL #13495
.FILL #26012
.FILL #25235
.FILL #10345
.FILL #7590
.FILL #13023
.FILL #30936
.FILL #10415
.FILL #7126
.FILL #25229
.FILL #30037
.FILL #29154
.FILL #24702
.FILL #7950
.FILL #24228
.FILL #7875
.FILL #20398
.FILL #24392
.FILL #9951
.FILL #5270
.FILL #18154
.FILL #8887
.FILL #18275
.FILL #16339
.FILL #14103
.FILL #13248
.FILL #18900
.FILL #2334
.FILL #5532
.FILL #25666
.FILL #25186
.FILL #5753
.FILL #26817
.FILL #30831
.FILL #32586
.FILL #11449
.FILL #29530
.FILL #13274
.FILL #29087
.FILL #17718
.FILL #17322
.FILL #15568
.FILL #4938
.FILL #11207
.FILL #10626
.FILL #18924
.FILL #3664
.FILL #14574
.FILL #22441
.FILL #19942
.FILL #10579
.FILL #31823
.FILL #13440
.FILL #5548
.FILL #15708
.FILL #27495
.FILL #7654
.FILL #3252
.FILL #14551
.FILL #26746
.FILL #9306
.FILL #7056
.FILL #21471
.FILL #13773
.FILL #351
.FILL #21699
.FILL #22972
.FILL #10518
.FILL #19749
.FILL #25555
.FILL #11178
.FILL #13105
.FILL #14181
.FILL #29343
.FILL #24796
.FILL #4116
.FILL #18317
.FILL #30963
.FILL #10177
.FILL #13061
.FILL #26653
.FILL #10842
.FILL #19590
.FILL #17163
.FILL #16721
.FILL #30259
.FILL #2268
.FILL #15266
.FILL #9984
.FILL #19975
.FILL #251
.FILL #1458
.FILL #7620
.FILL #9754
.FILL #4583
.FILL #7362
.FILL #15195
.FILL #25664
.FILL #21746
.FILL #5225
.FILL #26189
.FILL #12530
.FILL #31874
.FILL #4614
.FILL #14543
.FILL #24225
.FILL #28180
.FILL #3761
.FILL #2792
.FILL #23370
.FILL #15745
.FILL #30066
.FILL #26578
.FILL #24651
.FILL #28032
.FILL #29104
.FILL #29347
.FILL #21621
.FILL #6509
.FILL #492
.FILL #32301
.FILL #5218
.FILL #27721
.FILL #8879
.FILL #23586
.FILL #5385
.FILL #2305
.FILL #9664
.FILL #10108
.FILL #5263
.FILL #18419
.FILL #2459
.FILL #3611
.FILL #19809
.FILL #28078
.FILL #25887
.FILL #23984
.FILL #24447
.FILL #16121
.FILL #15239
.FILL #22491
.FILL #25627
.FILL #5656
.FILL #19611
.FILL #4496
.FILL #24418
.FILL #23882
.FILL #13607
.FILL #25023
.FILL #1178
.FILL #4758
.FILL #29613
.FILL #9012
.FILL #109
.FILL #14535
.FILL #9559
.FILL #19900
.FILL #15748
.FILL #22966
.FILL #3887
.FILL #10889
.FILL #22360
.FILL #32199
.FILL #18322
.FILL #10199
.FILL #12101
.FILL #15542
.FILL #5090
.FILL #4048
.FILL #22497
.FILL #19348
.FILL #20092
.FILL #9901
.FILL #19083
.FILL #11276
.FILL #26858
.FILL #29727
.FILL #6983
.FILL #24811
.FILL #24153
.FILL #15341
.FILL #7881
.FILL #19424
.FILL #10829
.FILL #27102
.FILL #14031
.FILL #6271
.FILL #6035
.FILL #29913
.FILL #14516
.FILL #22668
.FILL #31608
.FILL #32075
.FILL #8770
.FILL #13687
.FILL #12600
.FILL #10953
.FILL #4297
.FILL #23331
.FILL #27065
.FILL #3319
.FILL #11885
.FILL #32747
.FILL #9081
.FILL #936
.FILL #2500
.FILL #11751
.FILL #24261
.FILL #29254
.FILL #2977
.FILL #12651
.FILL #25133
.FILL #17013
.FILL #32554
.FILL #20689
.FILL #9012
.FILL #31219
.FILL #24625
.FILL #12665
.FILL #10060
.FILL #26562
.FILL #25537
.FILL #3597
.FILL #28929
.FILL #11402
.FILL #28406
.FILL #8714
.FILL #19828
.FILL #8761
.FILL #28690
.FILL #28284
.FILL #5643
.FILL #26348
.FILL #19918
.FILL #15369
.FILL #14951
.FILL #3858
.FILL #24814
.FILL #32304
.FILL #9878
.FILL #17102
.FILL #11288
.FILL #31699
.FILL #22922
.FILL #19102
.FILL #17894
.FILL #24819
.FILL #16330
.FILL #20283
.FILL #10554
.FILL #7612
.FILL #9832
.FILL #20672
.FILL #24530
.FILL #14017
.FILL #23091
.FILL #6413
.FILL #15132
.FILL #27272
.FILL #18221
.FILL #11630
.FILL #3915
.FILL #20553
.FILL #11328
.FILL #888
.FILL #9386
.FILL #21491
.FILL #14124
.FILL #32052
.FILL #21296
.FILL #13168
.FILL #7364
.FILL #28800
.FILL #31829
.FILL #24874
.FILL #346
.FILL #15793
.FILL #22309
.FILL #28622
.FILL #17784
.FILL #14717
.FILL #17043
.FILL #27472
.FILL #2769
.FILL #28185
.FILL #4623
.FILL #17199
.FILL #1398
.FILL #30622
.FILL #2139
.FILL #10746
.FILL #27981
.FILL #32689
.FILL #29850
.FILL #3603
.FILL #9152
.FILL #7267
.FILL #9642
.FILL #4019
.FILL #25010
.FILL #5718
.FILL #10163
.FILL #6190
.FILL #439
.FILL #23074
.FILL #30328
.FILL #14980
.FILL #6390
.FILL #23310
.FILL #9448
.FILL #23972
.FILL #23683
.FILL #24803
.FILL #7229
.FILL #28269
.FILL #4629
.FILL #9121
.FILL #22495
.FILL #9523
.FILL #20739
.FILL #23643
.FILL #28519
.FILL #12987
.FILL #24650
.FILL #27175
.FILL #26976
.FILL #22514
.FILL #16245
.FILL #18293
.FILL #11087
.FILL #9695
.FILL #14016
.FILL #27039
.FILL #10994
.FILL #31191
.FILL #12924
.FILL #16065
.FILL #17606
.FILL #2544
.FILL #28085
.FILL #15818
.FILL #23499
.FILL #5560
.FILL #12307
.FILL #15571
.FILL #9867
.FILL #3878
.FILL #8958
.FILL #432
.FILL #19801
.FILL #20432
.FILL #517
.FILL #16581
.FILL #15831
.FILL #11871
.FILL #10881
.FILL #32283
.FILL #22459
.FILL #2112
.FILL #20085
.FILL #1204
.FILL #22226
.FILL #5021
.FILL #20153
.FILL #26651
.FILL #7749
.FILL #3468
.FILL #88
.FILL #17470
.FILL #18715
.FILL #6278
.FILL #24886
.FILL #12160
.FILL #9215
.FILL #24346
.FILL #32758
.FILL #4875
.FILL #29763
.FILL #20194
.FILL #6938
.FILL #23907
.FILL #12326
.FILL #32695
.FILL #15212
.FILL #17217
.FILL #3154
.FILL #6945
.FILL #19869
.FILL #670
.FILL #681
.FILL #22545
.FILL #32557
.FILL #23566
.FILL #13889
.FILL #24275
.FILL #25226
.FILL #13903
.FILL #22701
.FILL #10558
.FILL #7804
.FILL #8226
.FILL #29823
.FILL #13102
.FILL #11456
.FILL #9305
.FILL #16650
.FILL #3892
.FILL #27636
.FILL #9266
.FILL #25453
.FILL #13195
.FILL #2227
.FILL #11235
.FILL #16589
.FILL #4942
.FILL #512
.FILL #30070
.FILL #17889
.FILL #22505
.FILL #19688
.FILL #3543
.FILL #18356
.FILL #20174
.FILL #23395
.FILL #20524
.FILL #24998
.FILL #24425
.FILL #2684
.FILL #11108
.FILL #29876
.FILL #7509
.FILL #15281
.FILL #26131
.FILL #11258
.FILL #19152
.FILL #7581
.FILL #21629
.FILL #10870
.FILL #24428
.FILL #26580
.FILL #13552
.FILL #17935
.FILL #26376
.FILL #3599
.FILL #9816
.FILL #29654
.FILL #19711
.FILL #11913
.FILL #27917
.FILL #18827
.FILL #26527
.FILL #16296
.FILL #31215
.FILL #14435
.FILL #22493
.FILL #16608
.FILL #26549
.FILL #25864
.FILL #4422
.FILL #29397
.FILL #25218
.FILL #16610
.FILL #7737
.FILL #23231
.FILL #11705
.FILL #18581
.FILL #29780
.FILL #5395
.FILL #15379
.FILL #3019
.FILL #27948
.FILL #15200
.FILL #3567
.FILL #25139
.FILL #14145
.FILL #24950
.FILL #18921
.FILL #29130
.FILL #21297
.FILL #28110
.FILL #17325
.FILL #27225
.FILL #28971
.FILL #20774
.FILL #25870
.FILL #6718
.FILL #17063
.FILL #24940
.FILL #11602
.FILL #16496
.FILL #5204
.FILL #23517
.FILL #15056
.FILL #16318
.FILL #17490
.FILL #21102
.FILL #4798
.FILL #5975
.FILL #26786
.FILL #2155
.FILL #6980
.FILL #17551
.FILL #14811
.FILL #606
.FILL #31700
.FILL #29152
.FILL #5662
.FILL #19762
.FILL #22462
.FILL #5935
.FILL #12363
.FILL #16536
.FILL #5887
.FILL #28497
.FILL #16245
.FILL #16554
.FILL #12634
.FILL #26318
.FILL #17044
.FILL #17102
.FILL #12203
.FILL #26597
.FILL #11386
.FILL #6622
.FILL #22391
.FILL #10192
.FILL #3081
.FILL #19846
.FILL #13511
.FILL #22857
.FILL #1186
.FILL #237
.FILL #30263
.FILL #26700
.FILL #10976
.FILL #11415
.FILL #20298
.FILL #8991
.FILL #6535
.FILL #12170
.FILL #21760
.FILL #29840
.FILL #21175
.FILL #31663
.FILL #2219
.FILL #4990
.FILL #16742
.FILL #24956
.FILL #1278
.FILL #19354
.FILL #28429
.FILL #16080
.FILL #359
.FILL #17263
.FILL #16800
.FILL #5406
.FILL #8095
.FILL #25504
.FILL #21956
.FILL #19150
.FILL #14207
.FILL #17265
.FILL #18749
.FILL #7136
.FILL #5397
.FILL #16009
.FILL #2469
.FILL #32211
.FILL #23799
.FILL #6135
.FILL #31588
.FILL #31429
.FILL #2775
.FILL #20082
.FILL #3292
.FILL #18395
.FILL #15960
.FILL #1509
.FILL #2532
.FILL #6883
.FILL #18976
.FILL #10795
.FILL #17272
.FILL #824
.FILL #14638
.FILL #12054
.FILL #24494
.FILL #18918
.FILL #15982
.FILL #4535
.FILL #26092
.FILL #7439
.FILL #17035
.FILL #32473
.FILL #23385
.FILL #2702
.FILL #1029
.FILL #17103
.FILL #913
.FILL #3545
.FILL #32131
.FILL #26224
.FILL #6557
.FILL #13612
.FILL #1642
.FILL #7519
.FILL #5410
.FILL #8676
.FILL #25006
.FILL #27024
.FILL #20440
.FILL #26665
.FILL #12009
.FILL #6151
.FILL #7998
.FILL #4559
.FILL #29098
.FILL #31459
.FILL #13965
.FILL #18558
.FILL #8975
.FILL #1180
.FILL #25834
.FILL #27409
.FILL #406
.FILL #10377
.FILL #991
.FILL #4669
.FILL #4912
.FILL #9381
.FILL #10764
.FILL #18547
.FILL #3479
.FILL #6290
.FILL #30234
.FILL #30983
.FILL #6370
.FILL #3550
.FILL #1521
.FILL #23185
.FILL #8279
.FILL #21894
.FILL #28203
.FILL #22676
.FILL #9600
.FILL #24248
.FILL #17864
.FILL #16477
.FILL #18817
.FILL #27357
.FILL #6691
.FILL #13614
.FILL #168
.FILL #17111
.FILL #24356
.FILL #12188
.FILL #9286
.FILL #20871
.FILL #12216
.FILL #3126
.FILL #22205
.FILL #18323
.FILL #29310
.FILL #28007
.FILL #28123
.FILL #11366
.FILL #14020
.FILL #29854
.FILL #22374
.FILL #120
.FILL #23985
.FILL #5803
.FILL #11256
.FILL #21711
.FILL #25539
.FILL #3949
.FILL #25613
.FILL #31686
.FILL #24189
.FILL #14506
.FILL #25435
.FILL #14093
.FILL #601
.FILL #18494
.FILL #20066
.FILL #1777
.FILL #17668
.FILL #14712
.FILL #24131
.FILL #32477
.FILL #28618
.FILL #26049
.FILL #9941
.FILL #17185
.FILL #13903
.FILL #4222
.FILL #758
.FILL #5107
.FILL #9601
.FILL #27192
.FILL #6943
.FILL #2483
.FILL #32458
.FILL #20218
.FILL #14908
.FILL #26228
.FILL #21386
.FILL #17403
.FILL #25786
.FILL #8375
.FILL #29892
.FILL #30845
.FILL #26081
.FILL #2937
.FILL #2840
.FILL #19957
.FILL #18276
.FILL #16241
.FILL #27377
.FILL #11116
.FILL #26422
.FILL #10643
.FILL #30975
.FILL #8229
.FILL #8096
.FILL #25304
.FILL #13032
.FILL #6528
.FILL #13713
.FILL #13633
.FILL #12346
.FILL #12318
.FILL #309
.FILL #29210
.FILL #12197
.FILL #20550
.FILL #1224
.FILL #32124
.FILL #1127
.FILL #16776
.FILL #26029
.FILL #13077
.FILL #30727
.FILL #20896
.FILL #31674
.FILL #2091
.FILL #29766
.FILL #9885
.FILL #27351
.FILL #3807
.FILL #2387
.FILL #31810
.FILL #31431
.FILL #16047
.FILL #9278
.FILL #20652
.FILL #8517
.FILL #9791
.FILL #2479
.FILL #17461
.FILL #29267
.FILL #27225
.FILL #26840
.FILL #12441
.FILL #27343
.FILL #13874
.FILL #6824
.FILL #15191
.FILL #18759
.FILL #239
.FILL #24897
.FILL #26458
.FILL #26894
.FILL #19559
.FILL #15277
.FILL #27097
.FILL #21391
.FILL #16683
.FILL #8652
.FILL #18044
.FILL #31714
.FILL #19396
.FILL #15505
.FILL #30400
.FILL #22685
.FILL #7995
.FILL #28270
.FILL #8348
.FILL #20461
.FILL #16607
.FILL #16397
.FILL #8293
.FILL #10725
.FILL #322
.FILL #1345
.FILL #27119
.FILL #32021
.FILL #1669
.FILL #20028
.FILL #1269
.FILL #18783
.FILL #19413
.FILL #30978
.FILL #10426
.FILL #13574
.FILL #14902
.FILL #30494
.FILL #15089
.FILL #8200
.FILL #15999
.FILL #7059
.FILL #13786
.FILL #430
.FILL #166
.FILL #1301
.FILL #14767
.FILL #17505
.FILL #8254
.FILL #30841
.FILL #19774
.FILL #5055
.FILL #6718
.FILL #16235
.FILL #4567
.FILL #20718
.FILL #15364
.FILL #24415
.FILL #28264
.FILL #8496
.FILL #18330
.FILL #15562
.FILL #30183
.FILL #19128
.FILL #11575
.FILL #32401
.FILL #3312
.FILL #21437
.FILL #32265
.FILL #17857
.FILL #4784
.FILL #6092
.FILL #31793
.FILL #3458
.FILL #4353
.FILL #18274
.FILL #27664
.FILL #18246
.FILL #14294
.FILL #1466
.FILL #2753
.FILL #1862
.FILL #10202
.FILL #6372
.FILL #19942
.FILL #21807
.FILL #20564
.FILL #24599
.FILL #20648
.FILL #29976
.FILL #25678
.FILL #1096
.FILL #4601
.FILL #15544
.FILL #10998
.FILL #5883
.FILL #26652
.FILL #18646
.FILL #12100
.FILL #4954
.FILL #19816
.FILL #9984
.FILL #4829
.FILL #30084
.FILL #27209
.FILL #18304
.FILL #2104
.FILL #23591
.FILL #135
.FILL #19340
.FILL #14335
.FILL #26705
.FILL #7115
.FILL #957
.FILL #5560
.FILL #20355
.FILL #11103
.FILL #12995
.FILL #26532
.FILL #21512
.FILL #26933
.FILL #26710
.FILL #1511
.FILL #6020
.FILL #12843
.FILL #2159
.FILL #5354
.FILL #31696
.FILL #13197
.FILL #21177
.FILL #16126
.FILL #1541
.FILL #4571
.FILL #32322
.FILL #12610
.FILL #30679
.FILL #27853
.FILL #15735
.FILL #24518
.FILL #4901
.FILL #25749
.FILL #15951
.FILL #21744
.FILL #15309
.FILL #1124
.FILL #31430
.FILL #4127
.FILL #27589
.FILL #13871
.FILL #28045
.FILL #14223
.FILL #11624
.FILL #9139
.FILL #32512
.FILL #8573
.FILL #4109
.FILL #10423
.FILL #15960
.FILL #30859
.FILL #19166
.FILL #14993
.FILL #15138
.FILL #32613
.FILL #488
.FILL #26859
.FILL #4848
.FILL #14245
.FILL #24942
.FILL #23495
.FILL #1870
.FILL #28660
.FILL #899
.FILL #29377
.FILL #12279
.FILL #32114
.FILL #21464
.FILL #27028
.FILL #7497
.FILL #9305
.FILL #26066
.FILL #9696
.FILL #32503
.FILL #29661
.FILL #28895
.FILL #4651
.FILL #8958
.FILL #6486
.FILL #26379
.FILL #10789
.FILL #24794
.FILL #28320
.FILL #22990
.FILL #7216
.FILL #17657
.FILL #18370
.FILL #8488
.FILL #9247
.FILL #4208
.FILL #17359
.FILL #30960
.FILL #830
.FILL #24813
.FILL #9482
.FILL #2154
.FILL #14739
.FILL #5356
.FILL #29773
.FILL #2071
.FILL #25700
.FILL #16430
.FILL #29612
.FILL #31185
.FILL #26106
.FILL #17511
.FILL #9301
.FILL #10007
.FILL #15012
.FILL #25144
.FILL #25530
.FILL #22949
.FILL #7934
.FILL #22108
.FILL #25587
.FILL #583
.FILL #27506
.FILL #22310
.FILL #861
.FILL #16880
.FILL #18688
.FILL #1579
.FILL #18312
.FILL #2310
.FILL #9019
.FILL #10812
.FILL #32592
.FILL #16641
.FILL #31636
.FILL #17815
.FILL #20553
.FILL #13364
.FILL #475
.FILL #23645
.FILL #13153
.FILL #10218
.FILL #5635
.FILL #32583
.FILL #9408
.FILL #23733
.FILL #5926
.FILL #28309
.FILL #2803
.FILL #26883
.FILL #9160
.FILL #26952
.FILL #6474
.FILL #8690
.FILL #12128
.FILL #31889
.FILL #12670
.FILL #1638
.FILL #4373
.FILL #26505
.FILL #2199
.FILL #24664
.FILL #28613
.FILL #26402
.FILL #4877
.FILL #4209
.FILL #12107
.FILL #32350
.FILL #31790
.FILL #14295
.FILL #17154
.FILL #3775
.FILL #11455
.FILL #13383
.FILL #2437
.FILL #21758
.FILL #9446
.FILL #8804
.FILL #5561
.FILL #7680
.FILL #11592
.FILL #23118
.FILL #2318
.FILL #18437
.FILL #9070
.FILL #6775
.FILL #25345
.FILL #25635
.FILL #25965
.FILL #21682
.FILL #27110
.FILL #3059
.FILL #8390
.FILL #20877
.FILL #4324
.FILL #16266
.FILL #2187
.FILL #7649
.FILL #32577
.FILL #24490
.FILL #14019
.FILL #30375
.FILL #7391
.FILL #6202
.FILL #15632
.FILL #9997
.FILL #18439
.FILL #20212
.FILL #10383
.FILL #3274
.FILL #6246
.FILL #27230
.FILL #32000
.FILL #13998
.FILL #21333
.FILL #1275
.FILL #27431
.FILL #20861
.FILL #30046
.FILL #24770
.FILL #18033
.FILL #22269
.FILL #29947
.FILL #11983
.FILL #32219
.FILL #13134
.FILL #8864
.FILL #32601
.FILL #7184
.FILL #21626
.FILL #18940
.FILL #28132
.FILL #4817
.FILL #22605
.FILL #30845
.FILL #23991
.FILL #21914
.FILL #19559
.FILL #3346
.FILL #23185
.FILL #1923
.FILL #13455
.FILL #30004
.FILL #29080
.FILL #16484
.FILL #19274
.FILL #15143
.FILL #5778
.FILL #11580
.FILL #12460
.FILL #18813
.FILL #26967
.FILL #4052
.FILL #31599
.FILL #2013
.FILL #28550
.FILL #24991
.FILL #24642
.FILL #13570
.FILL #5752
.FILL #7653
.FILL #25443
.FILL #8710
.FILL #4466
.FILL #30496
.FILL #18544
.FILL #13025
.FILL #26655
.FILL #31655
.FILL #13435
.FILL #18477
.FILL #18749
.FILL #28041
.FILL #13916
.FILL #30252
.FILL #30102
.FILL #20924
.FILL #10571
.FILL #11531
.FILL #22322
.FILL #31351
.FILL #9646
.FILL #13928
.FILL #6347
.FILL #4316
.FILL #29743
.FILL #11283
.FILL #20865
.FILL #25050
.FILL #14098
.FILL #19473
.FILL #6351
.FILL #29266
.FILL #15813
.FILL #19943
.FILL #5822
.FILL #7800
.FILL #14009
.FILL #7445
.FILL #25688
.FILL #18557
.FILL #13169
.FILL #7392
.FILL #20576
.FILL #23147
.FILL #13017
.FILL #22868
.FILL #23616
.FILL #8016
.FILL #9688
.FILL #18826
.FILL #1347
.FILL #14238
.FILL #8744
.FILL #1831
.FILL #11780
.FILL #11474
.FILL #14182
.FILL #7973
.FILL #15399
.FILL #26708
.FILL #6757
.FILL #24534
.FILL #15942
.FILL #4510
.FILL #6856
.FILL #18469
.FILL #11822
.FILL #6049
.FILL #5840
.FILL #31776
.FILL #9036
.FILL #26980
.FILL #24946
.FILL #25267
.FILL #2402
.FILL #8687
.FILL #20141
.FILL #20662
.FILL #12158
.FILL #11111
.FILL #23066
.FILL #25899
.FILL #17197
.FILL #7546
.FILL #7109
.FILL #31424
.FILL #3052
.FILL #23294
.FILL #32571
.FILL #21148
.FILL #31455
.FILL #13012
.FILL #28900
.FILL #23639
.FILL #25286
.FILL #2067
.FILL #30099
.FILL #16202
.FILL #27692
.FILL #17762
.FILL #24668
.FILL #2314
.FILL #6625
.FILL #8102
.FILL #6822
.FILL #9519
.FILL #29099
.FILL #27614
.FILL #12928
.FILL #602
.FILL #7481
.FILL #3146
.FILL #9017
.FILL #2166
.FILL #5976
.FILL #14547
.FILL #3114
.FILL #17469
.FILL #14698
.FILL #9895
.FILL #18903
.FILL #27646
.FILL #15635
.FILL #21284
.FILL #9527
.FILL #8606
.FILL #1589
.FILL #30199
.FILL #3407
.FILL #5598
.FILL #18719
.FILL #24197
.FILL #3846
.FILL #28891
.FILL #24833
.FILL #16522
.FILL #32564
.FILL #9179
.FILL #27299
.FILL #13311
.FILL #2812
.FILL #2118
.FILL #30551
.FILL #27714
.FILL #8796
.FILL #28659
.FILL #27693
.FILL #27249
.FILL #28930
.FILL #2725
.FILL #24933
.FILL #12054
.FILL #22881
.FILL #17622
.FILL #5674
.FILL #12042
.FILL #9733
.FILL #947
.FILL #19581
.FILL #3987
.FILL #25891
.FILL #25191
.FILL #8559
.FILL #28112
.FILL #8821
.FILL #21660
.FILL #13715
.FILL #13655
.FILL #29508
.FILL #21055
.FILL #14771
.FILL #18972
.FILL #2247
.FILL #28804
.FILL #13250
.FILL #2453
.FILL #15531
.FILL #3115
.FILL #4114
.FILL #26395
.FILL #19443
.FILL #26881
.FILL #21191
.FILL #10132
.FILL #13314
.FILL #27305
.FILL #32140
.FILL #79
.FILL #26102
.FILL #19100
.FILL #32132
.FILL #7471
.FILL #17464
.FILL #28527
.FILL #13699
.FILL #21004
.FILL #7761
.FILL #18773
.FILL #30847
.FILL #31574
.FILL #7936
.FILL #22500
.FILL #2113
.FILL #20987
.FILL #24713
.FILL #15644
.FILL #27744
.FILL #13963
.FILL #6991
.FILL #421
.FILL #13680
.FILL #14235
.FILL #8869
.FILL #28248
.FILL #119
.FILL #22375
.FILL #9186
.FILL #7937
.FILL #20128
.FILL #21691
.FILL #23475
.FILL #12899
.FILL #1332
.FILL #31507
.FILL #13750
.FILL #15229
.FILL #10693
.FILL #15873
.FILL #2628
.FILL #22540
.FILL #11949
.FILL #9167
.FILL #28302
.FILL #4177
.FILL #25527
.FILL #17253
.FILL #19179
.FILL #25620
.FILL #24347
.FILL #22894
.FILL #11120
.FILL #10473
.FILL #29360
.FILL #14519
.FILL #32450
.FILL #7602
.FILL #349
.FILL #6615
.FILL #14120
.FILL #22373
.FILL #18640
.FILL #3605
.FILL #484
.FILL #27408
.FILL #29555
.FILL #6534
.FILL #2244
.FILL #31002
.FILL #1692
.FILL #14454
.FILL #29172
.FILL #32203
.FILL #261
.FILL #21513
.FILL #4630
.FILL #2830
.FILL #15739
.FILL #27170
.FILL #1172
.FILL #20342
.FILL #28122
.FILL #27780
.FILL #7733
.FILL #3712
.FILL #16952
.FILL #6968
.FILL #28143
.FILL #28184
.FILL #4193
.FILL #24110
.FILL #16381
.FILL #15710
.FILL #3972
.FILL #25127
.FILL #22321
.FILL #6313
.FILL #31787
.FILL #31953
.FILL #20618
.FILL #3788
.FILL #14448
.FILL #7220
.FILL #25865
.FILL #11161
.FILL #15470
.FILL #17742
.FILL #32193
.FILL #2980
.FILL #27383
.FILL #26106
.FILL #20014
.FILL #23882
.FILL #7813
.FILL #32279
.FILL #26823
.FILL #29425
.FILL #626
.FILL #25573
.FILL #470
.FILL #19088
.FILL #3179
.FILL #10162
.FILL #21640
.FILL #11891
.FILL #10786
.FILL #23223
.FILL #24128
.FILL #21304
.FILL #30531
.FILL #15677
.FILL #25649
.FILL #5918
.FILL #4010
.FILL #6148
.FILL #30508
.FILL #18047
.FILL #20947
.FILL #17636
.FILL #27062
.FILL #2458
.FILL #9617
.FILL #10933
.FILL #27742
.FILL #24470
.FILL #6915
.FILL #12397
.FILL #17486
.FILL #19140
.FILL #30148
.FILL #27528
.FILL #20511
.FILL #4645
.FILL #30819
.FILL #3501
.FILL #20210
.FILL #15404
.FILL #1043
.FILL #21902
.FILL #7612
.FILL #9924
.FILL #24739
.FILL #1808
.FILL #24289
.FILL #24725
.FILL #16560
.FILL #11948
.FILL #16389
.FILL #10115
.FILL #22041
.FILL #13332
.FILL #21022
.FILL #12408
.FILL #2739
.FILL #26
.FILL #10190
.FILL #7268
.FILL #12606
.FILL #14798
.FILL #11761
.FILL #16002
.FILL #17048
.FILL #24295
.FILL #29298
.FILL #6108
.FILL #31537
.FILL #15205
.FILL #19810
.FILL #11281
.FILL #27839
.FILL #1140
.FILL #8267
.FILL #4950
.FILL #22579
.FILL #6802
.FILL #8129
.FILL #28091
.FILL #25579
.FILL #14068
.FILL #23355
.FILL #7088
.FILL #553
.FILL #2086
.FILL #30497
.FILL #24519
.FILL #7108
.FILL #499
.FILL #19750
.FILL #19899
.FILL #21277
.FILL #25732
.FILL #26328
.FILL #10930
.FILL #29525
.FILL #16076
.FILL #1653
.FILL #8895
.FILL #24509
.FILL #28707
.FILL #12801
.FILL #30635
.FILL #6030
.FILL #27952
.FILL #29845
.FILL #3317
.FILL #8667
.FILL #19469
.FILL #18938
.FILL #29975
.FILL #30147
.FILL #23462
.FILL #26743
.FILL #25611
.FILL #13035
.FILL #19042
.FILL #23782
.FILL #11022
.FILL #15916
.FILL #8198
.FILL #11533
.FILL #8612
.FILL #5768
.FILL #3798
.FILL #29740
.FILL #8156
.FILL #30307
.FILL #24573
.FILL #11731
.FILL #28117
.FILL #5359
.FILL #32558
.FILL #8950
.FILL #19585
.FILL #7145
.FILL #27020
.FILL #11587
.FILL #31657
.FILL #9603
.FILL #967
.FILL #17587
.FILL #24881
.FILL #22177
.FILL #7048
.FILL #2912
.FILL #13726
.FILL #26951
.FILL #6160
.FILL #19350
.FILL #22997
.FILL #15186
.FILL #7708
.FILL #7212
.FILL #14885
.FILL #13671
.FILL #11019
.FILL #7957
.FILL #25224
.FILL #7722
.FILL #27458
.FILL #3634
.FILL #10278
.FILL #11696
.FILL #20432
.FILL #2666
.FILL #3099
.FILL #30006
.FILL #10062
.FILL #24829
.FILL #15226
.FILL #28435
.FILL #15881
.FILL #15125
.FILL #20626
.FILL #19179
.FILL #18788
.FILL #27551
.FILL #14704
.FILL #18982
.FILL #8823
.FILL #20312
.FILL #26533
.FILL #16544
.FILL #5116
.FILL #29483
.FILL #11593
.FILL #3490
.FILL #16236
.FILL #29882
.FILL #27455
.FILL #8466
.FILL #23909
.FILL #20795
.FILL #29883
.FILL #24806
.FILL #23887
.FILL #5765
.FILL #19458
.FILL #734
.FILL #10303
.FILL #10858
.FILL #7281
.FILL #11891
.FILL #2843
.FILL #7240
.FILL #5569
.FILL #31499
.FILL #3072
.FILL #13531
.FILL #3209
.FILL #7790
.FILL #12000
.FILL #14421
.FILL #1028
.FILL #24445
.FILL #28016
.FILL #3761
.FILL #1301
.FILL #8482
.FILL #26177
.FILL #17988
.FILL #26248
.FILL #6531
.FILL #1836
.FILL #9365
.FILL #27291
.FILL #2427
.FILL #14068
.FILL #14702
.FILL #21949
.FILL #2122
.FILL #16935
.FILL #10291
.FILL #25237
.FILL #14219
.FILL #3909
.FILL #7027
.FILL #14150
.FILL #29543
.FILL #24100
.FILL #5821
.FILL #16370
.FILL #21257
.FILL #5779
.FILL #6837
.FILL #4733
.FILL #3409
.FILL #27198
.FILL #20326
.FILL #16275
.FILL #5581
.FILL #19922
.FILL #10458
.FILL #13548
.FILL #1509
.FILL #3425
.FILL #14824
.FILL #5326
.FILL #9813
.FILL #7
.FILL #10574
.FILL #9940
.FILL #11489
.FILL #7886
.FILL #32000
.FILL #17903
.FILL #579
.FILL #719
.FILL #12223
.FILL #28586
.FILL #9321
.FILL #3738
.FILL #17644
.FILL #22706
.FILL #30941
.FILL #18136
.FILL #20127
.FILL #10901
.FILL #9093
.FILL #7727
.FILL #6644
.FILL #20170
.FILL #13708
.FILL #14438
.FILL #30117
.FILL #27378
.FILL #18592
.FILL #26826
.FILL #18142
.FILL #29277
.FILL #23134
.FILL #28624
.FILL #24652
.FILL #28880
.FILL #31754
.FILL #15355
.FILL #20344
.FILL #29317
.FILL #10884
.FILL #12800
.FILL #5203
.FILL #11636
.FILL #25207
.FILL #16425
.FILL #30481
.FILL #20433
.FILL #17620
.FILL #16631
.FILL #28731
.FILL #6102
.FILL #24447
.FILL #28939
.FILL #22272
.FILL #6338
.FILL #28232
.FILL #31814
.FILL #18893
.FILL #20770
.FILL #10268
.FILL #26160
.FILL #1309
.FILL #30287
.FILL #27772
.FILL #20886
.FILL #7313
.FILL #6456
.FILL #25903
.FILL #27512
.FILL #19011
.FILL #2145
.FILL #28724
.FILL #32034
.FILL #18520
.FILL #4908
.FILL #26107
.FILL #27032
.FILL #26836
.FILL #4696
.FILL #4053
.FILL #6711
.FILL #24498
.FILL #22983
.FILL #25256
.FILL #7834
.FILL #29493
.FILL #30596
.FILL #20967
.FILL #955
.FILL #1657
.FILL #25604
.FILL #20161
.FILL #9818
.FILL #12877
.FILL #1964
.FILL #18329
.FILL #1187
.FILL #24645
.FILL #14740
.FILL #15287
.FILL #21259
.FILL #7178
.FILL #7051
.FILL #14141
.FILL #22651
.FILL #3829
.FILL #30555
.FILL #19292
.FILL #21936
.FILL #23004
.FILL #334
.FILL #22215
.FILL #31714
.FILL #16684
.FILL #9200
.FILL #12904
.FILL #13987
.FILL #24376
.FILL #14615
.FILL #5715
.FILL #19723
.FILL #20689
.FILL #21537
.FILL #19192
.FILL #7698
.FILL #4119
.FILL #381
.FILL #31388
.FILL #31805
.FILL #29070
.FILL #8045
.FILL #14090
.FILL #27773
.FILL #30581
.FILL #13321
.FILL #1925
.FILL #19540
.FILL #28499
.FILL #25736
.FILL #4866
.FILL #9017
.FILL #3538
.FILL #29115
.FILL #14996
.FILL #9022
.FILL #31952
.FILL #24026
.FILL #14376
.FILL #7408
.FILL #4020
.FILL #8067
.FILL #5490
.FILL #27262
.FILL #4606
.FILL #1536
.FILL #3879
.FILL #5662
.FILL #25635
.FILL #13001
.FILL #14445
.FILL #16301
.FILL #23191
.FILL #19529
.FILL #29328
.FILL #1429
.FILL #4907
.FILL #19941
.FILL #3318
.FILL #29940
.FILL #13465
.FILL #6459
.FILL #8533
.FILL #17659
.FILL #19549
.FILL #11431
.FILL #35
.FILL #24980
.FILL #16071
.FILL #8972
.FILL #16718
.FILL #2375
.FILL #32079
.FILL #24785
.FILL #19758
.FILL #606
.FILL #30504
.FILL #4649
.FILL #29112
.FILL #11079
.FILL #30744
.FILL #24216
.FILL #22516
.FILL #27195
.FILL #27014
.FILL #30131
.FILL #28081
.FILL #16413
.FILL #10709
.FILL #22823
.FILL #6007
.FILL #677
.FILL #28144
.FILL #2044
.FILL #16061
.FILL #445
.FILL #24870
.FILL #28443
.FILL #4188
.FILL #7211
.FILL #30521
.FILL #17166
.FILL #32580
.FILL #1905
.FILL #9393
.FILL #9992
.FILL #24429
.FILL #20209
.FILL #29046
.FILL #17701
.FILL #11537
.FILL #20053
.FILL #6558
.FILL #15346
.FILL #21529
.FILL #11054
.FILL #12420
.FILL #1328
.FILL #3029
.FILL #4571
.FILL #31258
.FILL #14805
.FILL #6895
.FILL #14765
.FILL #28288
.FILL #22356
.FILL #6050
.FILL #29769
.FILL #7125
.FILL #27166
.FILL #30759
.FILL #19533
.FILL #23117
.FILL #16745
.FILL #1904
.FILL #30518
.FILL #1667
.FILL #4144
.FILL #4633
.FILL #7809
.FILL #13841
.FILL #8059
.FILL #24476
.FILL #17424
.FILL #6751
.FILL #30176
.FILL #19396
.FILL #17872
.FILL #1464
.FILL #6218
.FILL #5220
.FILL #17561
.FILL #18083
.FILL #18425
.FILL #12104
.FILL #29269
.FILL #19824
.FILL #25034
.FILL #15468
.FILL #2917
.FILL #20497
.FILL #17081
.FILL #26732
.FILL #32576
.FILL #24619
.FILL #21924
.FILL #21308
.FILL #3165
.FILL #10093
.FILL #11858
.FILL #20249
.FILL #21332
.FILL #15905
.FILL #21939
.FILL #3007
.FILL #9536
.FILL #20480
.FILL #11113
.FILL #477
.FILL #4455
.FILL #843
.FILL #136
.FILL #12998
.FILL #30237
.FILL #22039
.FILL #20378
.FILL #4201
.FILL #6373
.FILL #26089
.FILL #13799
.FILL #8579
.FILL #2522
.FILL #21890
.FILL #4595
.FILL #13843
.FILL #22093
.FILL #17660
.FILL #27463
.FILL #16399
.FILL #20144
.FILL #4118
.FILL #1908
.FILL #9301
.FILL #25522
.FILL #18125
.FILL #20566
.FILL #6116
.FILL #24236
.FILL #5164
.FILL #28566
.FILL #23884
.FILL #31036
.FILL #1892
.FILL #-1
.END
| 14.657437 | 14 | 0.590713 |
e0b852dce788447428368e771f33a323eb696bd9 | 40 | asm | Assembly | samples/anyboot/bda_ram.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | 10 | 2017-01-14T16:22:58.000Z | 2021-02-16T21:41:48.000Z | samples/anyboot/bda_ram.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | null | null | null | samples/anyboot/bda_ram.asm | retro16/blastsdk | 572bd8489e6a2c1cc638120aa62241c99badc2e5 | [
"MIT"
] | null | null | null | include bls.inc
include bda_ram.inc
| 13.333333 | 21 | 0.75 |
a92bdb91b5cc742bfb8acd5f44a6afcdc88b50f6 | 1,998 | asm | Assembly | programs/oeis/272/A272000.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/272/A272000.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/272/A272000.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A272000: Coinage sequence: a(n) = A018227(n)-7.
; 3,11,29,47,79,111,161,211,283,355,453,551,679,807,969,1131,1331,1531,1773,2015,2303,2591,2929,3267,3659,4051,4501,4951,5463,5975,6553,7131,7779,8427,9149,9871,10671,11471,12353,13235,14203,15171,16229,17287,18439,19591,20841,22091,23443,24795,26253,27711,29279,30847,32529,34211,36011,37811,39733,41655,43703,45751,47929,50107,52419,54731,57181,59631,62223,64815,67553,70291,73179,76067,79109,82151,85351,88551,91913,95275,98803,102331,106029,109727,113599,117471,121521,125571,129803,134035,138453,142871,147479,152087,156889,161691,166691,171691,176893,182095,187503,192911,198529,204147,209979,215811,221861,227911,234183,240455,246953,253451,260179,266907,273869,280831,288031,295231,302673,310115,317803,325491,333429,341367,349559,357751,366201,374651,383363,392075,401053,410031,419279,428527,438049,447571,457371,467171,477253,487335,497703,508071,518729,529387,540339,551291,562541,573791,585343,596895,608753,620611,632779,644947,657429,669911,682711,695511,708633,721755,735203,748651,762429,776207,790319,804431,818881,833331,848123,862915,878053,893191,908679,924167,940009,955851,972051,988251,1004813,1021375,1038303,1055231,1072529,1089827,1107499,1125171,1143221,1161271,1179703,1198135,1216953,1235771,1254979,1274187,1293789,1313391,1333391,1353391,1373793,1394195,1415003,1435811,1457029,1478247,1499879,1521511,1543561,1565611,1588083,1610555,1633453,1656351,1679679,1703007,1726769,1750531,1774731,1798931,1823573,1848215,1873303,1898391,1923929,1949467,1975459,2001451,2027901,2054351,2081263,2108175,2135553,2162931,2190779,2218627,2246949,2275271,2304071,2332871,2362153,2391435,2421203,2450971,2481229,2511487,2542239,2572991,2604241,2635491,2667243,2698995
mov $3,$0
add $3,1
mov $6,$0
lpb $3
mov $0,$6
sub $3,1
sub $0,$3
mov $4,3
lpb $0
mov $2,$0
sub $2,1
add $4,$2
div $4,2
add $4,1
trn $5,1
mul $0,$5
mov $5,$4
mul $4,2
mul $4,$5
mov $5,1
lpe
add $1,$4
lpe
| 74 | 1,685 | 0.788789 |
04a5540b34298c27be106b08f127c57078a99b44 | 587 | asm | Assembly | masm64/examples/Console/console.asm | andrewcanafe/masm64-custom-sdk | beb904d1c46171bedcabe1ed5e949f3762c7d2d6 | [
"MIT"
] | 3 | 2020-07-12T11:22:11.000Z | 2021-12-17T06:57:31.000Z | masm64/examples/Console/console.asm | andrewcanafe/masm64-custom-sdk | beb904d1c46171bedcabe1ed5e949f3762c7d2d6 | [
"MIT"
] | 1 | 2021-07-15T22:42:10.000Z | 2021-07-15T22:42:10.000Z | masm64/examples/Console/console.asm | andrewcanafe/masm64-custom-sdk | beb904d1c46171bedcabe1ed5e949f3762c7d2d6 | [
"MIT"
] | null | null | null | includelib \masm64\lib\kernel32.lib
extern GetStdHandle :proc
extern WriteFile :proc
extern lstrlen :proc
extern ExitProcess :proc
.data
hFile dd 0
msglen dd 0
BytesWritten dq 0
msg db "Hello, world!", 13, 10, 0
.code
main proc
sub rsp, 28h
lea rcx, msg
call lstrlen
mov msglen, eax
mov ecx, -11 ;std output
call GetStdHandle
mov hFile, eax
lea r9, BytesWritten
mov r8d, msglen
lea rdx, msg
mov ecx, hFile
call WriteFile
xor ecx, ecx ;zero exit code
call ExitProcess
main endp
end | 15.864865 | 36 | 0.632027 |
add6a6cb500d2f23c6e3998b749bb4b05a248aaf | 14,974 | asm | Assembly | Appendix E - Microcontroller Code/RouteCache.asm | liwenyip/adhoc | d5402c347b229847a8242c89eb0ee97ee4d67d26 | [
"MIT"
] | null | null | null | Appendix E - Microcontroller Code/RouteCache.asm | liwenyip/adhoc | d5402c347b229847a8242c89eb0ee97ee4d67d26 | [
"MIT"
] | null | null | null | Appendix E - Microcontroller Code/RouteCache.asm | liwenyip/adhoc | d5402c347b229847a8242c89eb0ee97ee4d67d26 | [
"MIT"
] | null | null | null | ;*************************************************************************
; ROUTE CACHE MODULE
;
; Version 0.10
; 17/07/2005
;
; Li-Wen Yip
; Ad Hoc Radio Networking Research Project
; School Of Engineering
; James Cook University
;
;*************************************************************************
;
; Description:
;
; Use locations in FRAM which are 4 bytes long.
;
; Dependencies:
; a) SPI.ASM - SPI routines and initlialisation.
;
; Resources Used:
;
; Things you must do to use this module:
;
; What you need to understand to work with this code:
;
; Notes:
;
;*************************************************************************
; MASTER HEADER FILE
#include "MasterHeader.inc"
;*************************************************************************
; CONFIGURATION CONSTANTS
;*************************************************************************
; CONSTANTS
; FRAM Op-codes
OP_WRSR equ 0x01 ; Write Status Register
OP_WRITE equ 0x02 ; Write Memory Data
OP_READ equ 0x03 ; Read Memory Data
OP_WRDI equ 0x04 ; Write Disable
OP_RDSR equ 0x05 ; Read Status Register
OP_WREN equ 0x06 ; Set Write Enable Latch
;******************************************************************************
; IMPORTED VARIABLES
UDATA_ACS
;******************************************************************************
; GLOBAL VARIABLES
; Fields in each route record
source_addr res 1
dest_addr res 1
next_hop res 1
tx_power res 1
global source_addr, dest_addr, next_hop, tx_power
;******************************************************************************
; LOCAL VARIABLES
cursor_l res 1
cursor_h res 1
end_l res 1
end_h res 1
table_ptr res 1 ; Routing table pointer
;******************************************************************************
; IMPORTED SUBROUTINES
; From SPI.asm
extern SPIRW
;******************************************************************************
; EXPORTED SUBROUTINES
global TEST_ROUTECACHE, FRAM_INIT
;******************************************************************************
; START OF CODE
CODE
;***************************************************************
; SUBROUTINE: FRAM_INIT
;
; Description: - Initialise the FRAM.
; Precond'ns:
; Postcond'ns:
; Regs Used:
;***************************************************************
FRAM_INIT:
; Set up FRAM pins.
CONFIG_FRAM_PINS
return
;***************************************************************
; MACRO: FRAM_READ
;
; Description: Tell the FRAM we want to read from the specified address.
; Arguments:
; Precond'ns:
; Postcond'ns:
; Regs Used:
;***************************************************************
FRAM_READ macro addr_h, addr_l
; Start an FRAM operation (Set /CS low)
bcf FRAM_NCS
; Send the READ op-code to the FRAM.
movlw OP_READ ; Tell FRAM we want to read.
call SPIRW ; ...
; Send the memory address to the FRAM.
movf addr_h, W ; From this high memory location.
call SPIRW ; ...
movf addr_l, W ; And this low memory location.
call SPIRW ; ...
endm
;***************************************************************
; MACRO: FRAM_WRITE
;
; Description: Tell the FRAM we want to write at the specified address.
; Arguments:
; Precond'ns:
; Postcond'ns:
; Regs Used:
;***************************************************************
FRAM_WRITE macro addr_h, addr_l
; Send the WRITE ENABLE op-code to the FRAM.
bcf FRAM_NCS ; Start an FRAM operation (Set /CS low)
movlw OP_WREN ; Enable write operations
call SPIRW ; ...
bsf FRAM_NCS ; Terminate the FRAM operation (Set /CS high)
; Wait a little while before starting the next command.
nop
nop
bcf FRAM_NCS ; Start an FRAM operation (Set /CS low)
; Send the WRITE op-code to the FRAM.
movlw OP_WRITE ; Tell FRAM we want to write.
call SPIRW ; ...
; Send the memory address to the FRAM.
movf addr_h, W ; To this high memory location.
call SPIRW ; ...
movf addr_l, W ; And this low memory location.
call SPIRW ; ...
endm
;***************************************************************
; SUBROUTINE: GET_END
;
; Description: - Get the end pointer.
; Precond'ns:
; Postcond'ns:
; Regs Used:
;***************************************************************
GET_END:
; Put the address 0x0000 on the software stack.
movlw 0x00
movwf PREINC2
movwf PREINC2
; Tell the FRAM we want to start reading from 0x0000
FRAM_READ POSTDEC2, POSTDEC2
; Read 2 bytes from the FRAM.
call SPIRW ; Read the low byte of the end address.
movwf end_l ; ...
call SPIRW ; Read the high byte of the end address.
movwf end_h ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
return
;***************************************************************
; SUBROUTINE: SET_END
;
; Description: - Mark the current cursor position as the new end of the table
; Precond'ns:
; Postcond'ns:
; Regs Used:
;***************************************************************
SET_END:
; Put the address 0x0000 on the software stack.
movlw 0x00
movwf PREINC2
movwf PREINC2
; Tell the FRAM we want to start writing at 0x0000
FRAM_WRITE POSTDEC2, POSTDEC2
; Write 2 bytes of data to the FRAM.
movf end_l, W ; Write the low byte of the end address.
call SPIRW ; ...
movf end_h, W ; Write the high byte of the end address.
call SPIRW ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
return
;***************************************************************
; SUBROUTINE: ROUTE_ADD
;
; Description: - Adds a route to the routing table.
; Precond'ns: -
; Postcond'ns: -
; Regs Used:
;***************************************************************
ROUTE_ADD:
; Get end address of the data stored in the FRAM, which is where
; we want to store the new record.
call GET_END
; Because RAM always comes in sizes so that the full address space is used,
; we can check if we have gone past the end of the address space by testing
; a single bit. In this case, we have a 2048 byte RAM, so the highest address
; is 0x07FF, or 0000 0111 1111 1111. When we go one past this address, it will
; be 0x0800, or 0000 1000 0000 0000. Therefore, by testing bit 3 of the high
; byte of the address, we can check if we have reached the end of the memory space.
btfsc end_h, 3 ; Are we at 0x800?
return ; YES - memory is full, exit without adding route.
; Tell the FRAM we want to start writing at the end of the table.
FRAM_WRITE end_h, end_l
; Write the record to the FRAM.
movf source_addr, W ; Load the source address and write it.
call SPIRW ; ...
movf dest_addr, W ; Load the dest address and write it.
call SPIRW ; ...
movf next_hop, W ; Load the next hop and write it.
call SPIRW ; ...
movf tx_power, W ; Load the transmit power and write it.
call SPIRW ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
; Mark the new end address of the data stored in FRAM.
movlw 0x04 ; Add 4 to the end address.
addwf end_l ; ...
movlw 0x00 ; ...
addwfc end_h ; ...
call SET_END ; Set the end address in the FRAM chip.
return
;***************************************************************
; SUBROUTINE: ROUTE_ERASE
;
; Description: - Delete the route currently pointed to by the cursor.
; Precond'ns: -
; Postcond'ns: -
; Regs Used:
;***************************************************************
ROUTE_ERASE:
; We will delete the record, and move the last record into the empty space.
; Get the address of the last record in the table, which is at (END - 4)
call GET_END ; Get the end address stored in the FRAM.
movlw 0x04 ; Subtract 4 from the end address.
subwf end_l ; ...
movlw 0x00 ; ...
subwfb end_h ; ...
; Mark this as the new end of the table.
call SET_END
; Tell the FRAM we want to start reading the last record in the table.
FRAM_READ end_h, end_l
; Read the record at the end of the table.
call SPIRW ; Read the source address and save it.
movwf source_addr ; ...
call SPIRW ; Read the destination address and save it.
movwf dest_addr ; ...
call SPIRW ; Read the next hop and save it.
movwf next_hop ; ...
call SPIRW ; Read the transmit power and save it.
movwf tx_power ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
; Tell the FRAM we want to start writing at the current cursor position.
FRAM_WRITE cursor_h, cursor_l
; Write over the record at the current cursor position.
movf source_addr, W ; Load the source address and write it.
call SPIRW ; ...
movf dest_addr, W ; Load the dest address and write it.
call SPIRW ; ...
movf next_hop, W ; Load the next hop and write it.
call SPIRW ; ...
movf tx_power, W ; Load the transmit power and write it.
call SPIRW ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
return
;***************************************************************
; SUBROUTINE: ROUTE_SEARCH
;
; Description: - Search for a route in the routing table.
; Precond'ns: -
; Postcond'ns: -
; Regs Used:
;***************************************************************
ROUTE_SEARCH:
; Make sure we have the correct end pointer for the table.
call GET_END
; We will do the entire search with the one FRAM command, so we
; will use cursor_l and cursor_h as a local memory tracker.
clrf cursor_h ; Reset the cursor to the first record in the table.
movlw 0x04 ; ...
movwf cursor_l ; ...
; Tell the FRAM we want to start reading the first record in the table.
FRAM_READ cursor_h, cursor_l
_ROUTE_SEARCH_LOOP:
; Check if we have reached the end of the table.
movf cursor_h, W ; Compare the high bytes of the cursor and
cpfseq end_h ; the end pointer. Are they equal?
bra _ROUTE_SEARCH_CHK ; NO - read the current record.
movf cursor_l, W ; Compare the low bytes of the cursor and
cpfseq end_l ; the end pointer. Are they equal?
bra _ROUTE_SEARCH_CHK ; NO - read the current record.
; We didn't find the requested route in the table.
bsf FRAM_NCS ; Terminate the FRAM operation (Set /CS high)
return
_ROUTE_SEARCH_CHK:
; Check source address of the record.
call SPIRW ; Read the source address.
cpfseq source_addr ; Is it the source address we're looking for?
bra _SKIP_3 ; NO - skip the next 3 bytes and try again.
; Check destination address of the record
call SPIRW ; Read the destination address.
cpfseq dest_addr ; Is it the destination address we're looking for?
bra _SKIP_2 ; NO - skip the next 2 bytes and try again.
; We have found a route - read the hop count and tx power
call SPIRW ; Read the next hop and save it.
movwf next_hop ; ...
call SPIRW ; Read the transmit power and save it.
movwf tx_power ; ...
; Terminate the FRAM operation (Set /CS high)
bsf FRAM_NCS
return
_SKIP_3:
; Skip the next 3 memory locations and check the next record.
call SPIRW
_SKIP_2:
; Skip the next 2 memory locations and check the next record.
call SPIRW
call SPIRW
; Advance the LOCAL memory tracker to the next record.
movlw 0x04
addwf cursor_l
movlw 0x00
addwfc cursor_h
bra _ROUTE_SEARCH_LOOP
;***************************************************************
; SUBROUTINE: ROUTE_ERASE_ALL
;
; Description: - Delete all routes.
; Precond'ns: -
; Postcond'ns: -
; Regs Used:
;***************************************************************
ROUTE_ERASE_ALL:
; Set the beginning of the table as the end.
clrf end_h ; Say that the first record is the end of the table.
movlw 0x04 ; ...
movwf end_l ;
; Write the end address of the table data.
call SET_END
return
global TEST_ROUTECACHE
TEST_ROUTECACHE:
call FRAM_INIT
call ROUTE_ERASE_ALL
movlw 0x11
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x22
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x33
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x44
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x55
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x66
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x77
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x88
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
movlw 0x99
movwf source_addr
movwf dest_addr
movwf next_hop
movwf tx_power
call ROUTE_ADD
call ROUTE_SEARCH
bra TEST_ROUTECACHE
return
end
| 29.476378 | 87 | 0.505877 |
9c119173a528fe2960e76eeda67dfb2c6313f10c | 6,055 | asm | Assembly | data/pokemon/evos_attacks_alt_forms.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/evos_attacks_alt_forms.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/evos_attacks_alt_forms.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | SECTION "Evolutions and Attacks 6", ROMX
EvosAttacksPointers6::
dw PichuSpikyEvosAttacks
dw DeoxysAttackEvosAttacks
dw DeoxysDefenseEvosAttacks
dw DeoxysSpeedEvosAttacks
dw BurmySandEvosAttacks
dw BurmyTrashEvosAttacks
dw WormadamSandEvosAttacks
dw WormadamTrashEvosAttacks
dw ShellosEastEvosAttacks
dw GastrodonEastEvosAttacks
dw RotomFanEvosAttacks
dw RotomHeatEvosAttacks
dw RotomMowEvosAttacks
dw RotomFridgeEvosAttacks
dw RotomWashEvosAttacks
dw GiratinaOriginEvosAttacks
dw ShayminSkyEvosAttacks
dw CastformRnEvosAttacks
dw CastformSnEvosAttacks
dw CastformSwEvosAttacks
dw CherrimSEvosAttacks
PichuSpikyEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, CHARM
dbw 5, TAIL_WHIP
dbw 10, THUNDER_WAVE
dbw 15, SWEET_KISS
dbw 20, NASTY_PLOT
dbw 30, THUNDERBOLT
dbw 50, FUTURE_SIGHT
dbw 65, LAST_RESORT
dbw 70, DOOM_DESIRE
db 0 ; no more level-up moves
DeoxysAttackEvosAttacks:
db 0 ; no more evolutions
dbw 1, WRAP
dbw 1, LEER
dbw 9, NIGHT_SHADE
dbw 17, TELEPORT
dbw 25, TAUNT
dbw 33, PURSUIT
dbw 41, PSYCHIC_M
dbw 49, SUPERPOWER
dbw 57, PSYCHO_SHIFT
dbw 65, ZEN_HEADBUTT
dbw 73, COSMIC_POWER
dbw 81, ZAP_CANNON
dbw 89, PSYCHO_BOOST
dbw 97, HYPER_BEAM
db 0 ; no more level-up moves
DeoxysDefenseEvosAttacks:
db 0 ; no more evolutions
dbw 1, WRAP
dbw 1, LEER
dbw 9, NIGHT_SHADE
dbw 17, TELEPORT
dbw 25, KNOCK_OFF
dbw 33, SPIKES
dbw 41, PSYCHIC_M
dbw 49, SNATCH
dbw 57, PSYCHO_SHIFT
dbw 65, ZEN_HEADBUTT
dbw 73, IRON_DEFENSE
dbw 73, AMNESIA
dbw 81, RECOVER
dbw 89, PSYCHO_BOOST
dbw 97, COUNTER
dbw 97, MIRROR_COAT
db 0 ; no more level-up moves
DeoxysSpeedEvosAttacks:
db 0 ; no more evolutions
dbw 1, WRAP
dbw 1, LEER
dbw 9, NIGHT_SHADE
dbw 17, DOUBLE_TEAM
dbw 25, KNOCK_OFF
dbw 33, PURSUIT
dbw 41, PSYCHIC_M
dbw 49, SWIFT
dbw 57, PSYCHO_SHIFT
dbw 65, ZEN_HEADBUTT
dbw 73, AGILITY
dbw 81, RECOVER
dbw 89, PSYCHO_BOOST
dbw 97, EXTREMESPEED
db 0 ; no more level-up moves
BurmySandEvosAttacks:
dbbw EVOLVE_LEVEL_AND_FEMALE, 20, WORMADAM_S
dbbw EVOLVE_LEVEL_AND_MALE, 20, MOTHIM
db 0 ; no more evolutions
dbw 1, PROTECT
dbw 10, TACKLE
dbw 15, BUG_BITE
dbw 20, HIDDEN_POWER
db 0 ; no more level-up moves
BurmyTrashEvosAttacks:
dbbw EVOLVE_LEVEL_AND_FEMALE, 20, WORMADAM_T
dbbw EVOLVE_LEVEL_AND_MALE, 20, MOTHIM
db 0 ; no more evolutions
dbw 1, PROTECT
dbw 10, TACKLE
dbw 15, BUG_BITE
dbw 20, HIDDEN_POWER
db 0 ; no more level-up moves
WormadamSandEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 10, PROTECT
dbw 15, BUG_BITE
dbw 20, HIDDEN_POWER
dbw 23, CONFUSION
dbw 26, ROCK_BLAST
dbw 29, HARDEN
dbw 32, PSYBEAM
dbw 35, CAPTIVATE
dbw 38, FLAIL
dbw 41, ATTRACT
dbw 44, PSYCHIC_M
dbw 47, FISSURE
db 0 ; no more level-up moves
WormadamTrashEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 10, PROTECT
dbw 15, BUG_BITE
dbw 20, HIDDEN_POWER
dbw 23, CONFUSION
dbw 26, MIRROR_SHOT
dbw 29, METAL_SOUND
dbw 32, PSYBEAM
dbw 35, CAPTIVATE
dbw 38, FLAIL
dbw 41, ATTRACT
dbw 44, PSYCHIC_M
dbw 47, IRON_HEAD
db 0 ; no more level-up moves
ShellosEastEvosAttacks:
dbbw EVOLVE_LEVEL, 30, GASTRODON_E
db 0 ; no more evolutions
dbw 1, MUD_SLAP
dbw 2, MUD_SPORT
dbw 4, HARDEN
dbw 7, WATER_PULSE
dbw 11, MUD_BOMB
dbw 16, HIDDEN_POWER
dbw 22, RAIN_DANCE
dbw 29, BODY_SLAM
dbw 37, MUDDY_WATER
dbw 46, RECOVER
db 0 ; no more level-up moves
GastrodonEastEvosAttacks:
db 0 ; no more evolutions
dbw 1, HARDEN
dbw 1, MUD_SLAP
dbw 1, MUD_SPORT
dbw 1, WATER_PULSE
dbw 2, MUD_SPORT
dbw 4, HARDEN
dbw 7, WATER_PULSE
dbw 11, MUD_BOMB
dbw 16, HIDDEN_POWER
dbw 22, RAIN_DANCE
dbw 29, BODY_SLAM
dbw 41, MUDDY_WATER
dbw 54, RECOVER
db 0 ; no more level-up moves
RotomFanEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, THUNDER_WAVE
dbw 1, CONFUSE_RAY
dbw 1, TRICK
dbw 1, ASTONISH
dbw 8, UPROAR
dbw 15, DOUBLE_TEAM
dbw 22, SHOCK_WAVE
dbw 29, OMINOUS_WIND
dbw 36, SUBSTITUTE
dbw 43, CHARGE
dbw 50, DISCHARGE
db 0 ; no more level-up moves
RotomHeatEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, THUNDER_WAVE
dbw 1, CONFUSE_RAY
dbw 1, TRICK
dbw 1, ASTONISH
dbw 8, UPROAR
dbw 15, DOUBLE_TEAM
dbw 22, SHOCK_WAVE
dbw 29, OMINOUS_WIND
dbw 36, SUBSTITUTE
dbw 43, CHARGE
dbw 50, DISCHARGE
db 0 ; no more level-up moves
RotomMowEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, THUNDER_WAVE
dbw 1, CONFUSE_RAY
dbw 1, TRICK
dbw 1, ASTONISH
dbw 8, UPROAR
dbw 15, DOUBLE_TEAM
dbw 22, SHOCK_WAVE
dbw 29, OMINOUS_WIND
dbw 36, SUBSTITUTE
dbw 43, CHARGE
dbw 50, DISCHARGE
db 0 ; no more level-up moves
RotomFridgeEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, THUNDER_WAVE
dbw 1, CONFUSE_RAY
dbw 1, TRICK
dbw 1, ASTONISH
dbw 8, UPROAR
dbw 15, DOUBLE_TEAM
dbw 22, SHOCK_WAVE
dbw 29, OMINOUS_WIND
dbw 36, SUBSTITUTE
dbw 43, CHARGE
dbw 50, DISCHARGE
db 0 ; no more level-up moves
RotomWashEvosAttacks:
db 0 ; no more evolutions
dbw 1, THUNDERSHOCK
dbw 1, THUNDER_WAVE
dbw 1, CONFUSE_RAY
dbw 1, TRICK
dbw 1, ASTONISH
dbw 8, UPROAR
dbw 15, DOUBLE_TEAM
dbw 22, SHOCK_WAVE
dbw 29, OMINOUS_WIND
dbw 36, SUBSTITUTE
dbw 43, CHARGE
dbw 50, DISCHARGE
db 0 ; no more level-up moves
GiratinaOriginEvosAttacks:
db 0 ; no more evolutions
dbw 1, SCARY_FACE
dbw 1, DRAGONBREATH
dbw 10, OMINOUS_WIND
dbw 20, ANCIENTPOWER
dbw 30, DRAGON_CLAW
dbw 40, SHADOW_FORCE
dbw 50, HEAL_BLOCK
dbw 60, EARTH_POWER
dbw 70, SLASH
dbw 80, SHADOW_CLAW
dbw 90, AURA_SPHERE
db 0 ; no more level-up moves
ShayminSkyEvosAttacks:
db 0 ; no more evolutions
dbw 1, GROWTH
dbw 10, MAGICAL_LEAF
dbw 19, LEECH_SEED
dbw 28, QUICK_ATTACK
dbw 37, SWEET_SCENT
dbw 46, NATURAL_GIFT
dbw 55, WORRY_SEED
dbw 64, AIR_SLASH
dbw 73, ENERGY_BALL
dbw 82, SWEET_KISS
dbw 91, LEAF_STORM
dbw 100, SEED_FLARE
db 0 ; no more level-up moves
CastformRnEvosAttacks:
CastformSnEvosAttacks:
CastformSwEvosAttacks:
CherrimSEvosAttacks:
db 0 ; no more evolutions
dbw 1, POUND
db 0 ; no more level-up moves
| 20.183333 | 45 | 0.757225 |
78d9887b1e20440ae10f0b0051ad2e5bc25b86e6 | 102 | asm | Assembly | src/third_party/nasm/test/moresecs.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/third_party/nasm/test/moresecs.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | src/third_party/nasm/test/moresecs.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | ; Less than 65,279 data sections, but more total sections
%assign NSECS 37600
%include "manysecs.asm"
| 25.5 | 57 | 0.77451 |
5472a56e3fc5a5036e463f04a9b2d584797a45e0 | 4,687 | asm | Assembly | engine/gamefreak.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | engine/gamefreak.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | engine/gamefreak.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | LoadShootingStarGraphics:
ld a, $f9
ld [rOBP0], a
ld a, $a4
ld [rOBP1], a
call UpdateGBCPal_OBP0
call UpdateGBCPal_OBP1
ld de, AnimationTileset2 + $30 ; star tile (top left quadrant)
ld hl, vChars1 + $200
lb bc, BANK(AnimationTileset2), $01
call CopyVideoData
ld de, AnimationTileset2 + $130 ; star tile (bottom left quadrant)
ld hl, vChars1 + $210
lb bc, BANK(AnimationTileset2), $01
call CopyVideoData
ld de, FallingStar
ld hl, vChars1 + $220
lb bc, BANK(FallingStar), (FallingStarEnd - FallingStar) / $10
call CopyVideoData
ld hl, GameFreakLogoOAMData
ld de, wOAMBuffer + $60
ld bc, GameFreakLogoOAMDataEnd - GameFreakLogoOAMData
call CopyData
ld hl, GameFreakShootingStarOAMData
ld de, wOAMBuffer
ld bc, GameFreakShootingStarOAMDataEnd - GameFreakShootingStarOAMData
jp CopyData
AnimateShootingStar:
call LoadShootingStarGraphics
ld a, SFX_SHOOTING_STAR
call PlaySound
; Move the big star down and left across the screen.
ld hl, wOAMBuffer
lb bc, $a0, $4
.bigStarLoop
push hl
push bc
.bigStarInnerLoop
ld a, [hl] ; Y
add 4
ld [hli], a
ld a, [hl] ; X
add -4
ld [hli], a
inc hl
inc hl
dec c
jr nz, .bigStarInnerLoop
ld c, 1
call CheckForUserInterruption
pop bc
pop hl
ret c
ld a, [hl]
cp 80
jr nz, .next
jr .bigStarLoop
.next
cp b
jr nz, .bigStarLoop
; Clear big star OAM.
ld hl, wOAMBuffer
ld c, 4
ld de, 4
.clearOAMLoop
ld [hl], 160
add hl, de
dec c
jr nz, .clearOAMLoop
; Make Gamefreak logo flash.
ld b, 3
.flashLogoLoop
ld hl, rOBP0
rrc [hl]
rrc [hl]
call UpdateGBCPal_OBP0
ld c, 10
call CheckForUserInterruption
ret c
dec b
jr nz, .flashLogoLoop
; Copy 24 instances of the small stars OAM data.
; Note that their coordinates put them off-screen.
ld de, wOAMBuffer
ld a, 24
.initSmallStarsOAMLoop
push af
ld hl, SmallStarsOAM
ld bc, SmallStarsOAMEnd - SmallStarsOAM
call CopyData
pop af
dec a
jr nz, .initSmallStarsOAMLoop
; Animate the small stars falling from the Gamefreak logo.
xor a
ld [wMoveDownSmallStarsOAMCount], a
ld hl, SmallStarsWaveCoordsPointerTable
ld c, 6
.smallStarsLoop
ld a, [hli]
ld e, a
ld a, [hli]
ld d, a
push bc
push hl
ld hl, wOAMBuffer + $50
ld c, 4
.smallStarsInnerLoop ; introduce new wave of 4 small stars OAM entries
ld a, [de]
cp $ff
jr z, .next2
ld [hli], a ; Y
inc de
ld a, [de]
ld [hli], a ; X
inc de
inc hl
push bc
ld a, [de]
ld b,a
ld a, [hl]
and $f0
or b
ld [hl], a
inc de
pop bc
inc hl
dec c
jr nz, .smallStarsInnerLoop
ld a, [wMoveDownSmallStarsOAMCount]
cp 24
jr z, .next2
add 6 ; should be 4, but the extra 2 aren't visible on screen
ld [wMoveDownSmallStarsOAMCount], a
.next2
call MoveDownSmallStars
push af
; shift the existing OAM entries down to make room for the next wave
ld hl, wOAMBuffer + $10
ld de, wOAMBuffer
ld bc, $50
call CopyData
pop af
pop hl
pop bc
ret c
dec c
jr nz, .smallStarsLoop
and a
ret
SmallStarsOAM:
db $00,$00,$A2,$90
SmallStarsOAMEnd:
SmallStarsWaveCoordsPointerTable:
dw SmallStarsWave1Coords
dw SmallStarsWave2Coords
dw SmallStarsWave3Coords
dw SmallStarsWave4Coords
dw SmallStarsEmptyWave
dw SmallStarsEmptyWave
; The stars that fall from the Gamefreak logo come in 4 waves of 4 OAM entries.
; These arrays contain the Y and X coordinates of each OAM entry.
SmallStarsWave1Coords:
db $68,$30
db $05,$68
db $40,$05
db $68,$58
db $04,$68
db $78,$07
SmallStarsWave2Coords:
db $68,$38
db $05,$68
db $48,$06
db $68,$60
db $04,$68
db $70,$07
SmallStarsWave3Coords:
db $68,$34
db $05,$68
db $4c,$06
db $68,$54
db $06,$68
db $64,$07
SmallStarsWave4Coords:
db $68,$3c
db $05,$68
db $5c,$04
db $68,$6c
db $07,$68
db $74,$07
SmallStarsEmptyWave:
db $FF
MoveDownSmallStars:
ld b, 8
.loop
ld hl, wOAMBuffer + $5c
ld a, [wMoveDownSmallStarsOAMCount]
ld de, -4
ld c, a
.innerLoop
inc [hl] ; Y
add hl, de
dec c
jr nz, .innerLoop
; Toggle the palette so that the lower star in the small stars tile blinks in
; and out.
ld a, [rOBP1]
xor %10100000
ld [rOBP1], a
call UpdateGBCPal_OBP1
ld c, 3
call CheckForUserInterruption
ret c
dec b
jr nz, .loop
ret
GameFreakLogoOAMData:
db $48,$50,$8D,$00
db $48,$58,$8E,$00
db $50,$50,$8F,$00
db $50,$58,$90,$00
db $58,$50,$91,$00
db $58,$58,$92,$00
db $60,$30,$80,$00
db $60,$38,$81,$00
db $60,$40,$82,$00
db $60,$48,$83,$00
db $60,$50,$93,$00
db $60,$58,$84,$00
db $60,$60,$85,$00
db $60,$68,$83,$00
db $60,$70,$81,$00
db $60,$78,$86,$00
GameFreakLogoOAMDataEnd:
GameFreakShootingStarOAMData:
db $00,$A0,$A0,$14
db $00,$A8,$A0,$34
db $08,$A0,$A1,$14
db $08,$A8,$A1,$34
GameFreakShootingStarOAMDataEnd:
FallingStar:
INCBIN "gfx/falling_star.2bpp"
FallingStarEnd:
| 17.753788 | 79 | 0.698741 |
4461c89651bd7250bfd72b80bdec07b5d757ca7c | 934 | asm | Assembly | src/shaders/post_processing/gen5_6/Common/PL16x8_PL8x4.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | src/shaders/post_processing/gen5_6/Common/PL16x8_PL8x4.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | src/shaders/post_processing/gen5_6/Common/PL16x8_PL8x4.asm | tizenorg/platform.upstream.libva-intel-driver | 9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90 | [
"MIT"
] | null | null | null | /*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// Module name: PL16x8_PL8x4.asm
//----------------------------------------------------------------
#include "common.inc"
#ifndef DEST_U //DEST_U, DEST_V not defined
#if (nSRC_REGION==nREGION_1)
#define DEST_Y uwTOP_Y
#define DEST_U uwTOP_U
#define DEST_V uwTOP_V
#elif (nSRC_REGION==nREGION_2)
#define DEST_Y uwBOT_Y
#define DEST_U uwBOT_U
#define DEST_V uwBOT_V
#endif
#endif
//Convert 444 from sampler to 422
$for (0, 0; <8; 2, 1) {
mov (8) DEST_U(0,%2*8)<1> DEST_U(%1)<16;8,2>
mov (8) DEST_V(0,%2*8)<1> DEST_V(%1)<16;8,2>
}
// Re-define new number of lines
#undef nUV_NUM_OF_ROWS
#define nUV_NUM_OF_ROWS 4
| 23.948718 | 77 | 0.638116 |
85811da8d1d8b87e5ba2ce9fe5a8ad8137deeb02 | 1,689 | asm | Assembly | libav-12.3/libavfilter/x86/vf_interlace.asm | aldarons-tech/aci | 0fc09bea7274737a2aa7a3422d65e2630af64b58 | [
"MIT"
] | null | null | null | libav-12.3/libavfilter/x86/vf_interlace.asm | aldarons-tech/aci | 0fc09bea7274737a2aa7a3422d65e2630af64b58 | [
"MIT"
] | 3 | 2020-07-02T01:33:51.000Z | 2020-08-11T14:40:29.000Z | libav-12.3/libavfilter/x86/vf_interlace.asm | aldarons-tech/aci | 0fc09bea7274737a2aa7a3422d65e2630af64b58 | [
"MIT"
] | null | null | null | ;*****************************************************************************
;* x86-optimized functions for interlace filter
;*
;* Copyright (C) 2014 Kieran Kunhya <kierank@obe.tv>
;* Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at>
;*
;* This file is part of Libav.
;*
;* Libav is free software; you can redistribute it and/or modify
;* it under the terms of the GNU General Public License as published by
;* the Free Software Foundation; either version 2 of the License, or
;* (at your option) any later version.
;*
;* Libav is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;* GNU General Public License for more details.
;*
;* You should have received a copy of the GNU General Public License along
;* with Libav; if not, write to the Free Software Foundation, Inc.,
;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
;******************************************************************************
%include "libavutil/x86/x86util.asm"
SECTION_RODATA
SECTION .text
%macro LOWPASS_LINE 0
cglobal lowpass_line, 5, 5, 7
add r0, r1
add r2, r1
add r3, r1
add r4, r1
neg r1
pcmpeqb m6, m6
.loop
mova m0, [r3+r1]
mova m1, [r3+r1+mmsize]
pavgb m0, [r4+r1]
pavgb m1, [r4+r1+mmsize]
pxor m0, m6
pxor m1, m6
pxor m2, m6, [r2+r1]
pxor m3, m6, [r2+r1+mmsize]
pavgb m0, m2
pavgb m1, m3
pxor m0, m6
pxor m1, m6
mova [r0+r1], m0
mova [r0+r1+mmsize], m1
add r1, 2*mmsize
jl .loop
REP_RET
%endmacro
INIT_XMM sse2
LOWPASS_LINE
INIT_XMM avx
LOWPASS_LINE
| 25.590909 | 79 | 0.622262 |
02562d57dd89162a8e4782c8a958b329d45dc6c8 | 98 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/round.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/round.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/round.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC _round
EXTERN cam32_sdcc_round
defc _round = cam32_sdcc_round
| 14 | 31 | 0.826531 |
f637004abbf9432b32d18425a619eba1d860127a | 3,003 | asm | Assembly | Driver/Socket/PPP/pppManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Socket/PPP/pppManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Socket/PPP/pppManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Socket
MODULE: PPP Driver
FILE: pppManager.asm
AUTHOR: Jennifer Wu, Apr 19, 1995
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/19/95 Initial revision
DESCRIPTION:
Include directives for PPP driver.
$Id: pppManager.asm,v 1.9 97/01/20 19:53:40 cthomas Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
;---------------------------------------------------------------------------
; System Includes
;---------------------------------------------------------------------------
include geos.def
include heap.def
include geode.def
include resource.def
include system.def
include object.def
include timer.def
include timedate.def
include driver.def
include thread.def
include sem.def
include sysstats.def
include file.def
include localize.def
include initfile.def
include medium.def
include gcnlist.def
include geoworks.def
include Objects/metaC.def
include ec.def
include assert.def
include Internal/im.def
include Objects/processC.def
include Internal/heapInt.def
include Internal/login.def
ifidn PRODUCT, <RESPONDER>
include Internal/Resp/eci_oem.def
endif ; RESPONDER
ifidn PRODUCT, <PENELOPE>
include library.def
include Internal/Penelope/pad.def
endif ; PENELOPE
;---------------------------------------------------------------------------
; System Libraries
;---------------------------------------------------------------------------
UseLib ui.def
UseLib Objects/vTextC.def
UseLib sac.def
UseLib Internal/netutils.def
UseLib Internal/socketInt.def
UseLib accpnt.def
ifidn PRODUCT, <RESPONDER>
UseLib foam.def
UseLib Internal/Resp/vp.def
include Internal/Resp/vpmisc.def
UseLib security.def
UseLib contlog.def
endif ; RESPONDER
;---------------------------------------------------------------------------
; Driver Declaration
;---------------------------------------------------------------------------
DefDriver Internal/socketDr.def
UseDriver Internal/serialDr.def
UseDriver Internal/modemDr.def
;---------------------------------------------------------------------------
; Internal .def files
;---------------------------------------------------------------------------
include ppp.def
include pppAddrCtrl.def
include pppGlobal.def
;---------------------------------------------------------------------------
; Compiled UI definitions
;---------------------------------------------------------------------------
include pppStrings.rdef
include pppAddrCtrl.rdef
;---------------------------------------------------------------------------
; Code files
;---------------------------------------------------------------------------
include pppMain.asm
include pppUtils.asm
include pppAddrCtrl.asm
| 25.235294 | 79 | 0.472527 |
365c38e67e9fdfde81d010f909fcb21d364f2da2 | 487 | asm | Assembly | oeis/318/A318224.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/318/A318224.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/318/A318224.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A318224: a(n) = n! * [x^n] exp(x/(1 + n*x)).
; Submitted by Christian Krause
; 1,1,-3,37,-1007,47901,-3514499,367671697,-51952729023,9529552851193,-2201241933756899,625136460673954461,-214066473170125310063,86976878219664125966677,-41368038169392401671082787,22767783580493235411255966601,-14356419990032448099044028030719
mov $2,1
mov $3,$0
mul $0,-1
mov $4,1
lpb $3
mul $2,$3
div $2,$4
sub $3,1
max $3,1
add $4,1
add $5,$0
add $6,$2
mul $6,$5
lpe
mov $0,$6
add $0,1
| 23.190476 | 245 | 0.700205 |
ee6f9fda86a0fcc5b38de6fcca01d02cd756e37b | 20,875 | asm | Assembly | DuetPkg/BootSector/efi64.asm | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 93 | 2016-10-27T12:03:57.000Z | 2022-03-29T15:22:10.000Z | DuetPkg/BootSector/efi64.asm | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 16 | 2016-11-02T02:08:40.000Z | 2021-06-03T21:18:06.000Z | DuetPkg/BootSector/efi64.asm | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 41 | 2016-11-02T00:05:02.000Z | 2022-03-29T14:33:09.000Z | ;------------------------------------------------------------------------------
;*
;* Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
;* This program and the accompanying materials
;* are licensed and made available under the terms and conditions of the BSD License
;* which accompanies this distribution. The full text of the license may be found at
;* http://opensource.org/licenses/bsd-license.php
;*
;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;*
;* efi64.asm
;*
;* Abstract:
;*
;------------------------------------------------------------------------------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Now in 64-bit long mode.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.486
.model flat
.stack
.code
org 21000h
DEFAULT_HANDLER_SIZE EQU INT1 - INT0
JmpCommonIdtEntry macro
; jmp commonIdtEntry - this must be hand coded to keep the assembler from
; using a 8 bit reletive jump when the entries are
; within 255 bytes of the common entry. This must
; be done to maintain the consistency of the size
; of entry points...
db 0e9h ; jmp 16 bit reletive
dd commonIdtEntry - $ - 4 ; offset to jump to
endm
Start:
mov esp,0001fffe8h ; make final stack aligned
; set OSFXSR and OSXMMEXCPT because some code will use XMM register
db 0fh
db 20h
db 0e0h
; mov rax, cr4
bts eax, 9
bts eax, 0ah
db 0fh
db 22h
db 0e0h
; mov cr4, rax
call ClearScreen
; Populate IDT with meaningful offsets for exception handlers...
mov eax, offset Idtr
sidt fword ptr [eax] ; get fword address of IDT
mov eax, offset Halt
mov ebx, eax ; use bx to copy 15..0 to descriptors
shr eax, 16 ; use ax to copy 31..16 to descriptors
; 63..32 of descriptors is 0
mov ecx, 78h ; 78h IDT entries to initialize with unique entry points (exceptions)
mov esi, [offset Idtr + 2]
mov edi, [esi]
@@: ; loop through all IDT entries exception handlers and initialize to default handler
mov word ptr [edi], bx ; write bits 15..0 of offset
mov word ptr [edi+2], 38h ; SYS_CODE64_SEL from GDT
mov word ptr [edi+4], 0e00h OR 8000h ; type = 386 interrupt gate, present
mov word ptr [edi+6], ax ; write bits 31..16 of offset
mov dword ptr [edi+8], 0 ; write bits 63..32 of offset
add edi, 16 ; move up to next descriptor
add bx, DEFAULT_HANDLER_SIZE ; move to next entry point
loop @b ; loop back through again until all descriptors are initialized
;; at this point edi contains the offset of the descriptor for INT 20
;; and bx contains the low 16 bits of the offset of the default handler
;; so initialize all the rest of the descriptors with these two values...
; mov ecx, 101 ; there are 100 descriptors left (INT 20 (14h) - INT 119 (77h)
;@@: ; loop through all IDT entries exception handlers and initialize to default handler
; mov word ptr [edi], bx ; write bits 15..0 of offset
; mov word ptr [edi+2], 38h ; SYS_CODE64_SEL from GDT
; mov word ptr [edi+4], 0e00h OR 8000h ; type = 386 interrupt gate, present
; mov word ptr [edi+6], ax ; write bits 31..16 of offset
; mov dword ptr [edi+8], 0 ; write bits 63..32 of offset
; add edi, 16 ; move up to next descriptor
; loop @b ; loop back through again until all descriptors are initialized
;; DUMP location of IDT and several of the descriptors
; mov ecx, 8
; mov eax, [offset Idtr + 2]
; mov eax, [eax]
; mov edi, 0b8000h
; call PrintQword
; mov esi, eax
; mov edi, 0b80a0h
; jmp OuterLoop
;;
;; just for fun, let's do a software interrupt to see if we correctly land in the exception handler...
; mov eax, 011111111h
; mov ebx, 022222222h
; mov ecx, 033333333h
; mov edx, 044444444h
; mov ebp, 055555555h
; mov esi, 066666666h
; mov edi, 077777777h
; push 011111111h
; push 022222222h
; push 033333333h
; int 119
mov esi,022000h ; esi = 22000
mov eax,[esi+014h] ; eax = [22014]
add esi,eax ; esi = 22000 + [22014] = Base of EFILDR.C
mov ebp,[esi+03ch] ; ebp = [22000 + [22014] + 3c] = NT Image Header for EFILDR.C
add ebp,esi
mov edi,[ebp+030h] ; edi = [[22000 + [22014] + 3c] + 2c] = ImageBase (63..32 is zero, ignore)
mov eax,[ebp+028h] ; eax = [[22000 + [22014] + 3c] + 24] = EntryPoint
add eax,edi ; eax = ImageBase + EntryPoint
mov ebx, offset EfiLdrOffset
mov dword ptr [ebx],eax ; Modify far jump instruction for correct entry point
mov bx,word ptr[ebp+6] ; bx = Number of sections
xor eax,eax
mov ax,word ptr[ebp+014h] ; ax = Optional Header Size
add ebp,eax
add ebp,018h ; ebp = Start of 1st Section
SectionLoop:
push esi ; Save Base of EFILDR.C
push edi ; Save ImageBase
add esi,[ebp+014h] ; esi = Base of EFILDR.C + PointerToRawData
add edi,[ebp+00ch] ; edi = ImageBase + VirtualAddress
mov ecx,[ebp+010h] ; ecs = SizeOfRawData
cld
shr ecx,2
rep movsd
pop edi ; Restore ImageBase
pop esi ; Restore Base of EFILDR.C
add bp,028h ; ebp = ebp + 028h = Pointer to next section record
db 66h
db 0ffh
db 0cbh
; dec bx
cmp bx,0
jne SectionLoop
mov edx, offset Idtr
movzx eax, word ptr [edx] ; get size of IDT
db 0ffh
db 0c0h
; inc eax
add eax, dword ptr [edx + 2] ; add to base of IDT to get location of memory map...
xor ecx, ecx
mov ecx, eax ; put argument to RCX
db 48h
db 0c7h
db 0c0h
EfiLdrOffset:
dd 000401000h ; Offset of EFILDR
; mov rax, 401000h
db 50h
; push rax
; ret
db 0c3h
; db "**** DEFAULT IDT ENTRY ***",0
align 02h
Halt:
INT0:
push 0h ; push error code place holder on the stack
push 0h
JmpCommonIdtEntry
; db 0e9h ; jmp 16 bit reletive
; dd commonIdtEntry - $ - 4 ; offset to jump to
INT1:
push 0h ; push error code place holder on the stack
push 1h
JmpCommonIdtEntry
INT2:
push 0h ; push error code place holder on the stack
push 2h
JmpCommonIdtEntry
INT3:
push 0h ; push error code place holder on the stack
push 3h
JmpCommonIdtEntry
INT4:
push 0h ; push error code place holder on the stack
push 4h
JmpCommonIdtEntry
INT5:
push 0h ; push error code place holder on the stack
push 5h
JmpCommonIdtEntry
INT6:
push 0h ; push error code place holder on the stack
push 6h
JmpCommonIdtEntry
INT7:
push 0h ; push error code place holder on the stack
push 7h
JmpCommonIdtEntry
INT8:
; Double fault causes an error code to be pushed so no phony push necessary
nop
nop
push 8h
JmpCommonIdtEntry
INT9:
push 0h ; push error code place holder on the stack
push 9h
JmpCommonIdtEntry
INT10:
; Invalid TSS causes an error code to be pushed so no phony push necessary
nop
nop
push 10
JmpCommonIdtEntry
INT11:
; Segment Not Present causes an error code to be pushed so no phony push necessary
nop
nop
push 11
JmpCommonIdtEntry
INT12:
; Stack fault causes an error code to be pushed so no phony push necessary
nop
nop
push 12
JmpCommonIdtEntry
INT13:
; GP fault causes an error code to be pushed so no phony push necessary
nop
nop
push 13
JmpCommonIdtEntry
INT14:
; Page fault causes an error code to be pushed so no phony push necessary
nop
nop
push 14
JmpCommonIdtEntry
INT15:
push 0h ; push error code place holder on the stack
push 15
JmpCommonIdtEntry
INT16:
push 0h ; push error code place holder on the stack
push 16
JmpCommonIdtEntry
INT17:
; Alignment check causes an error code to be pushed so no phony push necessary
nop
nop
push 17
JmpCommonIdtEntry
INT18:
push 0h ; push error code place holder on the stack
push 18
JmpCommonIdtEntry
INT19:
push 0h ; push error code place holder on the stack
push 19
JmpCommonIdtEntry
INTUnknown:
REPEAT (78h - 20)
push 0h ; push error code place holder on the stack
; push xxh ; push vector number
db 06ah
db ( $ - INTUnknown - 3 ) / 9 + 20 ; vector number
JmpCommonIdtEntry
ENDM
commonIdtEntry:
push eax
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
db 41h
db 50h
; push r8
db 41h
db 51h
; push r9
db 41h
db 52h
; push r10
db 41h
db 53h
; push r11
db 41h
db 54h
; push r12
db 41h
db 55h
; push r13
db 41h
db 56h
; push r14
db 41h
db 57h
; push r15
db 48h
mov ebp, esp
; mov rbp, rsp
;;
;; At this point the stack looks like this:
;;
;; Calling SS
;; Calling RSP
;; rflags
;; Calling CS
;; Calling RIP
;; Error code or 0
;; Int num or 0ffh for unknown int num
;; rax
;; rcx
;; rdx
;; rbx
;; rsp
;; rbp
;; rsi
;; rdi
;; r8
;; r9
;; r10
;; r11
;; r12
;; r13
;; r14
;; r15 <------- RSP, RBP
;;
call ClearScreen
mov esi, offset String1
call PrintString
db 48h
mov eax, [ebp + 16*8] ;; move Int number into RAX
db 48h
cmp eax, 18
ja PrintDefaultString
PrintExceptionString:
shl eax, 3 ;; multiply by 8 to get offset from StringTable to actual string address
add eax, offset StringTable
mov esi, [eax]
jmp PrintTheString
PrintDefaultString:
mov esi, offset IntUnknownString
; patch Int number
mov edx, eax
call A2C
mov [esi + 1], al
mov eax, edx
shr eax, 4
call A2C
mov [esi], al
PrintTheString:
call PrintString
mov esi, offset String2
call PrintString
db 48h
mov eax, [ebp+19*8] ; CS
call PrintQword
mov al, ':'
mov byte ptr [edi], al
add edi, 2
db 48h
mov eax, [ebp+18*8] ; RIP
call PrintQword
mov esi, offset String3
call PrintString
mov edi, 0b8140h
mov esi, offset StringRax ; rax
call PrintString
db 48h
mov eax, [ebp+15*8]
call PrintQword
mov esi, offset StringRcx ; rcx
call PrintString
db 48h
mov eax, [ebp+14*8]
call PrintQword
mov esi, offset StringRdx ; rdx
call PrintString
db 48h
mov eax, [ebp+13*8]
call PrintQword
mov edi, 0b81e0h
mov esi, offset StringRbx ; rbx
call PrintString
db 48h
mov eax, [ebp+12*8]
call PrintQword
mov esi, offset StringRsp ; rsp
call PrintString
db 48h
mov eax, [ebp+21*8]
call PrintQword
mov esi, offset StringRbp ; rbp
call PrintString
db 48h
mov eax, [ebp+10*8]
call PrintQword
mov edi, 0b8280h
mov esi, offset StringRsi ; rsi
call PrintString
db 48h
mov eax, [ebp+9*8]
call PrintQword
mov esi, offset StringRdi ; rdi
call PrintString
db 48h
mov eax, [ebp+8*8]
call PrintQword
mov esi, offset StringEcode ; error code
call PrintString
db 48h
mov eax, [ebp+17*8]
call PrintQword
mov edi, 0b8320h
mov esi, offset StringR8 ; r8
call PrintString
db 48h
mov eax, [ebp+7*8]
call PrintQword
mov esi, offset StringR9 ; r9
call PrintString
db 48h
mov eax, [ebp+6*8]
call PrintQword
mov esi, offset StringR10 ; r10
call PrintString
db 48h
mov eax, [ebp+5*8]
call PrintQword
mov edi, 0b83c0h
mov esi, offset StringR11 ; r11
call PrintString
db 48h
mov eax, [ebp+4*8]
call PrintQword
mov esi, offset StringR12 ; r12
call PrintString
db 48h
mov eax, [ebp+3*8]
call PrintQword
mov esi, offset StringR13 ; r13
call PrintString
db 48h
mov eax, [ebp+2*8]
call PrintQword
mov edi, 0b8460h
mov esi, offset StringR14 ; r14
call PrintString
db 48h
mov eax, [ebp+1*8]
call PrintQword
mov esi, offset StringR15 ; r15
call PrintString
db 48h
mov eax, [ebp+0*8]
call PrintQword
mov esi, offset StringSs ; ss
call PrintString
db 48h
mov eax, [ebp+22*8]
call PrintQword
mov edi, 0b8500h
mov esi, offset StringRflags ; rflags
call PrintString
db 48h
mov eax, [ebp+20*8]
call PrintQword
mov edi, 0b8640h
mov esi, ebp
add esi, 23*8
mov ecx, 4
OuterLoop:
push ecx
mov ecx, 4
db 48h
mov edx, edi
InnerLoop:
db 48h
mov eax, [esi]
call PrintQword
add esi, 8
mov al, ' '
mov [edi], al
add edi, 2
loop InnerLoop
pop ecx
add edx, 0a0h
mov edi, edx
loop OuterLoop
mov edi, 0b8960h
db 48h
mov eax, [ebp+18*8] ; RIP
sub eax, 8 * 8
db 48h
mov esi, eax ; esi = rip - 8 QWORD linear (total 16 QWORD)
mov ecx, 4
OuterLoop1:
push ecx
mov ecx, 4
mov edx, edi
InnerLoop1:
db 48h
mov eax, [esi]
call PrintQword
add esi, 8
mov al, ' '
mov [edi], al
add edi, 2
loop InnerLoop1
pop ecx
add edx, 0a0h
mov edi, edx
loop OuterLoop1
;wbinvd
@@:
jmp @b
;
; return
;
mov esp, ebp
; mov rsp, rbp
db 41h
db 5fh
; pop r15
db 41h
db 5eh
; pop r14
db 41h
db 5dh
; pop r13
db 41h
db 5ch
; pop r12
db 41h
db 5bh
; pop r11
db 41h
db 5ah
; pop r10
db 41h
db 59h
; pop r9
db 41h
db 58h
; pop r8
pop edi
pop esi
pop ebp
pop eax ; esp
pop ebx
pop edx
pop ecx
pop eax
db 48h
db 83h
db 0c4h
db 10h
; add esp, 16 ; error code and INT number
db 48h
db 0cfh
; iretq
PrintString:
push eax
@@:
mov al, byte ptr [esi]
cmp al, 0
je @f
mov byte ptr [edi], al
db 0ffh
db 0c6h
; inc esi
add edi, 2
jmp @b
@@:
pop eax
ret
;; RAX contains qword to print
;; RDI contains memory location (screen location) to print it to
PrintQword:
push ecx
push ebx
push eax
db 48h
db 0c7h
db 0c1h
dd 16
; mov rcx, 16
looptop:
db 48h
rol eax, 4
mov bl, al
and bl, 0fh
add bl, '0'
cmp bl, '9'
jle @f
add bl, 7
@@:
mov byte ptr [edi], bl
add edi, 2
loop looptop
;wbinvd
pop eax
pop ebx
pop ecx
ret
ClearScreen:
push eax
push ecx
mov al, ' '
mov ah, 0ch
mov edi, 0b8000h
mov ecx, 80 * 24
@@:
mov word ptr [edi], ax
add edi, 2
loop @b
mov edi, 0b8000h
pop ecx
pop eax
ret
A2C:
and al, 0fh
add al, '0'
cmp al, '9'
jle @f
add al, 7
@@:
ret
String1 db "*** INT ",0
Int0String db "00h Divide by 0 -",0
Int1String db "01h Debug exception -",0
Int2String db "02h NMI -",0
Int3String db "03h Breakpoint -",0
Int4String db "04h Overflow -",0
Int5String db "05h Bound -",0
Int6String db "06h Invalid opcode -",0
Int7String db "07h Device not available -",0
Int8String db "08h Double fault -",0
Int9String db "09h Coprocessor seg overrun (reserved) -",0
Int10String db "0Ah Invalid TSS -",0
Int11String db "0Bh Segment not present -",0
Int12String db "0Ch Stack fault -",0
Int13String db "0Dh General protection fault -",0
Int14String db "0Eh Page fault -",0
Int15String db "0Fh (Intel reserved) -",0
Int16String db "10h Floating point error -",0
Int17String db "11h Alignment check -",0
Int18String db "12h Machine check -",0
Int19String db "13h SIMD Floating-Point Exception -",0
IntUnknownString db "??h Unknown interrupt -",0
StringTable dq offset Int0String, offset Int1String, offset Int2String, offset Int3String,
offset Int4String, offset Int5String, offset Int6String, offset Int7String,
offset Int8String, offset Int9String, offset Int10String, offset Int11String,
offset Int12String, offset Int13String, offset Int14String, offset Int15String,
offset Int16String, offset Int17String, offset Int18String, offset Int19String
String2 db " HALT!! *** (",0
String3 db ")",0
StringRax db "RAX=",0
StringRcx db " RCX=",0
StringRdx db " RDX=",0
StringRbx db "RBX=",0
StringRsp db " RSP=",0
StringRbp db " RBP=",0
StringRsi db "RSI=",0
StringRdi db " RDI=",0
StringEcode db " ECODE=",0
StringR8 db "R8 =",0
StringR9 db " R9 =",0
StringR10 db " R10=",0
StringR11 db "R11=",0
StringR12 db " R12=",0
StringR13 db " R13=",0
StringR14 db "R14=",0
StringR15 db " R15=",0
StringSs db " SS =",0
StringRflags db "RFLAGS=",0
Idtr df 0
df 0
org 21ffeh
BlockSignature:
dw 0aa55h
end
| 26.491117 | 133 | 0.492934 |
272a70b7df755bd8dc0ab08acb936021cea5069a | 1,912 | asm | Assembly | programs/oeis/166/A166118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/166/A166118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/166/A166118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A166118: Fixed points of the mapping f(x) = (x + 2^x) mod (17 + x).
; 15,47,111,239,495,1007,2031,4079,8175,16367,32751,65519,131055,262127,524271,1048559,2097135,4194287,8388591,16777199,33554415,67108847,134217711,268435439,536870895,1073741807,2147483631,4294967279,8589934575,17179869167,34359738351,68719476719,137438953455,274877906927,549755813871,1099511627759,2199023255535,4398046511087,8796093022191,17592186044399,35184372088815,70368744177647,140737488355311,281474976710639,562949953421295,1125899906842607,2251799813685231,4503599627370479,9007199254740975,18014398509481967,36028797018963951,72057594037927919,144115188075855855,288230376151711727,576460752303423471,1152921504606846959,2305843009213693935,4611686018427387887,9223372036854775791,18446744073709551599,36893488147419103215,73786976294838206447,147573952589676412911,295147905179352825839,590295810358705651695,1180591620717411303407,2361183241434822606831,4722366482869645213679,9444732965739290427375,18889465931478580854767,37778931862957161709551,75557863725914323419119,151115727451828646838255,302231454903657293676527,604462909807314587353071,1208925819614629174706159,2417851639229258349412335,4835703278458516698824687,9671406556917033397649391,19342813113834066795298799,38685626227668133590597615,77371252455336267181195247,154742504910672534362390511,309485009821345068724781039,618970019642690137449562095,1237940039285380274899124207,2475880078570760549798248431,4951760157141521099596496879,9903520314283042199192993775,19807040628566084398385987567,39614081257132168796771975151,79228162514264337593543950319,158456325028528675187087900655,316912650057057350374175801327,633825300114114700748351602671,1267650600228229401496703205359,2535301200456458802993406410735,5070602400912917605986812821487,10141204801825835211973625642991,20282409603651670423947251285999
add $0,5
mov $1,2
pow $1,$0
sub $1,17
mov $0,$1
| 212.444444 | 1,792 | 0.919456 |
7754c00409331db44656eaf09480e6ed7770d2c9 | 383 | asm | Assembly | programs/oeis/023/A023531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/023/A023531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/023/A023531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A023531: a(n) = 1 if n is of the form m(m+3)/2, otherwise 0.
; 1,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0
mov $1,2
mov $2,$0
add $2,1
lpb $2,1
sub $2,$1
add $1,1
lpe
mul $1,0
lpb $2,1
add $1,1
mul $2,4
sub $2,4
lpe
| 22.529412 | 199 | 0.516971 |
603b9829c2e5d720862757a56401c03728d395ca | 453 | asm | Assembly | programs/oeis/037/A037531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/037/A037531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/037/A037531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A037531: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
; 1,7,44,265,1591,9548,57289,343735,2062412,12374473,74246839,445481036,2672886217,16037317303,96223903820,577343422921,3464060537527,20784363225164,124706179350985,748237076105911,4489422456635468
cal $0,33142 ; Base-6 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,0.
mul $0,22
div $0,18
mov $1,$0
| 56.625 | 197 | 0.794702 |
cdf204c141280390f485a70bf1a25f1669c98b8f | 388 | asm | Assembly | libsrc/games/zx81snd/bit_close_ei.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/games/zx81snd/bit_close_ei.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/games/zx81snd/bit_close_ei.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ; $Id: bit_close_ei.asm,v 1.1 2011/11/15 16:40:47 stefano Exp $
;
; ZX81 1 bit sound functions
;
; Close sound and restore interrupts
;
; Stefano Bodrato - 11/11/2011
;
XLIB bit_close_ei
.bit_close_ei
ld ix,16384
ld a,(16443) ; test CDFLAG
and 128 ; is in FAST mode ?
ret z
out ($fe),a ; turn on interrupt
ret
| 20.421053 | 63 | 0.564433 |
70fc214521fd900023bcfffbb3b570d437c7c4fb | 6,585 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1079.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1079.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1079.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 %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1e714, %rsi
lea addresses_normal_ht+0x734c, %rdi
nop
nop
nop
nop
and $3282, %r12
mov $80, %rcx
rep movsl
nop
inc %r8
lea addresses_WC_ht+0x53b6, %r11
nop
xor %r8, %r8
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0x14504, %r12
clflush (%r12)
nop
nop
nop
inc %rcx
movb $0x61, (%r12)
nop
nop
nop
nop
sub %r12, %r12
lea addresses_normal_ht+0x18f44, %r8
nop
nop
nop
nop
xor $29043, %rbp
mov (%r8), %cx
xor $62231, %rdi
lea addresses_WC_ht+0x17d04, %rbp
nop
nop
xor %r8, %r8
mov (%rbp), %r12
nop
nop
nop
sub $9260, %rdi
lea addresses_WC_ht+0x185d0, %rdi
clflush (%rdi)
nop
nop
nop
inc %r11
movw $0x6162, (%rdi)
nop
nop
nop
nop
xor $31912, %rbp
lea addresses_WT_ht+0x1ac05, %rsi
nop
add $56170, %rdi
mov $0x6162636465666768, %r12
movq %r12, %xmm2
and $0xffffffffffffffc0, %rsi
movntdq %xmm2, (%rsi)
nop
nop
nop
nop
and $33954, %r12
lea addresses_UC_ht+0x17f2c, %rsi
nop
nop
nop
nop
nop
cmp %rcx, %rcx
movl $0x61626364, (%rsi)
nop
nop
nop
nop
inc %rcx
lea addresses_UC_ht+0xd7c4, %rdi
nop
sub %rbp, %rbp
movw $0x6162, (%rdi)
nop
nop
cmp $17750, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_RW+0x1fe19, %rax
inc %rdx
mov (%rax), %r13d
nop
nop
nop
nop
cmp %rax, %rax
// REPMOV
lea addresses_UC+0xe704, %rsi
lea addresses_UC+0xe704, %rdi
nop
nop
nop
nop
nop
and $28768, %rdx
mov $106, %rcx
rep movsq
dec %r10
// Faulty Load
lea addresses_UC+0xe704, %r13
nop
xor %rsi, %rsi
mov (%r13), %r10w
lea oracles, %rcx
and $0xff, %r10
shlq $12, %r10
mov (%rcx,%r10,1), %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC', 'congruent': 0, 'same': True}}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': True, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 35.594595 | 2,999 | 0.655885 |
b07b3c98a76d5d73b8341faf60a0ca3e7db6d47b | 14,701 | asm | Assembly | Library/Text/TextRegion/trLargeRegion.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Text/TextRegion/trLargeRegion.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Text/TextRegion/trLargeRegion.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: trLargeRegion.asm
AUTHOR: John Wedgwood, Feb 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 2/12/92 Initial revision
DESCRIPTION:
Region create/nuke notification stuff.
$Id: trLargeRegion.asm,v 1.1 97/04/07 11:21:41 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextRegion segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LargeRegionMakeNextRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Force the creation of another region.
CALLED BY: TR_MakeNextRegion via CallRegionHandler
PASS: *ds:si = Instance
cx = Region number to append after
dx = Non-zero to skip to next region
RETURN: cx = Next region
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 2/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LargeRegionMakeNextRegion proc near
uses ax, bx, dx, bp, di
.enter
tryAgain:
call PointAtRegionElement ;ds:di = data, z set if last
;ax = element size
jz makeNext
;
; See if we want to go to the first region of the next section.
;
tst dx
jz checkForNext ; Branch if we don't
;
; We want the first region in the next section
;
mov bx, ds:[di].VLTRAE_section ; bx <- current section
nextSectionLoop:
inc cx ; cx <- next region number
; make ds:di point at next region
call scanNextDIAX ; ds:di = next region
cmp bx, ds:[di].VLTRAE_section ; Check for same section
je nextSectionLoop ; Loop until we find it
jmp quit
checkForNext:
;
; The current region is not the last one, but it may be the last one
; in this section... First we check to see if it is the last one
; in the section.
;
mov bx, ds:[di].VLTRAE_section ; bx <- section of this region
call scanNextDIAX ; ds:di = next region
cmp bx, ds:[di].VLTRAE_section ; Compare to current section
jne makeNext ; Branch if not in same section
;
; We want to make sure that the next region isn't marked as empty.
;
and ds:[di].VLTRAE_flags, not mask VLTRF_EMPTY
inc cx ; cx <- next region number
quit:
if _REGION_LIMIT
clc
exit:
endif
.leave
ret
;---
scanNextDIAX:
xchg si, di
xchg dx, ax
call ScanToNextRegion
xchg si, di
xchg dx, ax
retn
;---
makeNext:
if _REGION_LIMIT
;
; cx = the current last region (numbered from 0)
; We want to know if we can append a region after this one and
; not exceed the limit on the number of regions.
;
call GetRegionLimit ; ax <- max # regions
tst ax ; is there a limit?
jz continue ; no, continue.
dec ax ; ax <- last region #
cmp cx, ax ; cx < ax ?
jb continue ; yes, we can append
stc ; no, we're at limit
jmp exit
continue:
endif
; Add a flag telling ourselves that we've appended regions and
; must send the IS_LAST message
push cx
clr cx
mov ax, TEMP_VIS_TEXT_FORCE_SEND_IS_LAST_REGION
call ObjVarAddData
pop cx
push di
mov di, 1000
call ThreadBorrowStackSpace
push di
ProfilePoint 80
push cx, dx
mov ax, MSG_VIS_LARGE_TEXT_APPEND_REGION
call ObjCallInstanceNoLock
pop cx, dx
ProfilePoint 81
pop di
call ThreadReturnStackSpace
pop di
if _REGION_LIMIT
jc exit
endif
jmp tryAgain
LargeRegionMakeNextRegion endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetRegionLimit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the maximum number of regions
CALLED BY: LargeRegionMakeNextRegion
PASS: nothing
RETURN: ax - max # regions, or 0 for no limit
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/22/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _REGION_LIMIT
GetRegionLimit proc near
uses cx, es
.enter
segmov es, dgroup, ax
mov ax, es:regionLimit
cmp ax, -1
je initialize
done:
.leave
ret
initialize:
call TR_GetTextLimits ; ax <- region limit
jmp done
GetRegionLimit endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TR_GetTextLimits
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the maximum number of chars and regions allowed
for the text object.
CALLED BY:
PASS: nothing
RETURN: cx - character limit
ax - region limit
DESTROYED: ax, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
0xffff can't be used for a char limit or region limit, because
that value is used to signify that the limit variables haven't
been initializd. If 0xffff is read from the ini file, it will
be changed to 0xfffe.
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/21/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _REGION_LIMIT or _CHAR_LIMIT
textcatString char "text",0
if _CHAR_LIMIT
charlimitKey char "charLimit",0
endif
if _REGION_LIMIT
regionlimitKey char "regionLimit",0
endif
TR_GetTextLimits proc far
uses ds,si,dx
.enter
segmov es, dgroup, ax
segmov ds, cs, cx
mov si, offset textcatString ;DS:SI <- category string
if _CHAR_LIMIT
mov es:charLimit, 0
mov dx, offset charlimitKey ;CX:DX <- key string
call InitFileReadInteger
jc noCharLimit
cmp ax, 0xffff
jne $10
dec ax
$10:
mov es:charLimit, ax
noCharLimit:
endif
if _REGION_LIMIT
mov es:regionLimit, 0
mov dx, offset regionlimitKey ;CX:DX <- key string
call InitFileReadInteger
jc noRegionLimit
cmp ax, 0xffff
jne $20
dec ax
$20:
mov es:regionLimit, ax
noRegionLimit:
endif
mov cx, es:charLimit
.leave
ret
TR_GetTextLimits endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LargeRegionRegionIsLast
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Notify someone that the current region is the last one
containing any data.
CALLED BY: TR_RegionIsLast via CallRegionHandler
PASS: *ds:si = Instance
cx = Region number which is empty
RETURN: bx.dx.ax= Sum of calc'd heights for nuked regions
cx = Number of non-empty regions deleted
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 2/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LargeRegionRegionIsLast proc far
uses bp, di, si
heightSum local DWFixed
lineSum local dword
charSum local dword
section local word
lastRegNum local word
nukedRegCount local word
elementSize local word
ProfilePoint 28
.enter
;
; Initialize some stuff
;
clr bx ; bx <- current region
clrdw heightSum.DWF_int, bx
clr heightSum.DWF_frac
clrdw lineSum, bx
clrdw charSum, bx
clr nukedRegCount, bx
; Check for the flag that tells us to always send the message
push bx
mov ax, TEMP_VIS_TEXT_FORCE_SEND_IS_LAST_REGION
call ObjVarFindData
pop bx
jnc noFlag
call ObjVarDeleteData
jmp forceUpdate
noFlag:
call TR_RegionIsLastInSection
LONG jc quit ; Branch if already is last region
forceUpdate:
;
; Quick check to see if this is already the last region.
;
call PointAtRegionElement ; ds:di <- data, ax <- size
mov elementSize, ax
mov lastRegNum, cx ; Save ptr to this region
push cx ; Save "last" region
mov ax, cx ; ax <- "last" region
mov dx, ds:[di].VLTRAE_section ; dx <- section of "last" region
;
; Now run through all the regions marking them as containing data
; if they fall before or at this one and marking them as empty if they
; fall after this one.
;
push si, ax ; Save instance ptr, last region
mov ax, ds:[di].VLTRAE_section ; Save section of "last" region
mov section, ax
;
; lshields 04/19/00
; Find the first region with the same section
; (or one before it). It is usually faster to go backwards
; through the list then to start at the beginning and walk
; down.
;
tst cx
jz backupDone
mov dx, ax
backupLoop:
;
; Compare region's section with this previous one
; if the same, keep going back.
; (unless we hit 0)
;
dec cx
call PointAtRegionElement
mov elementSize, ax
cmp ds:[di].VLTRAE_section, dx
jnz backupDone
inc cx
loop backupLoop
backupDone:
; cx = current region
mov_tr bx, cx
call VisLargeTextGetRegionCount ;cx = count
sub cx, bx
; cx = number remaining regions.
; bx = current region
mov dx, elementSize
mov ax, section
EC < ERROR_C VIS_TEXT_LARGE_OBJECT_MUST_HAVE_REGION_ARRAY >
pop si, ax ; Restore instance ptr, last region
regionLoop:
;
; *ds:si= Instance
; ds:di = Current region
; dx = Size of region data
; cx = Number left to process
; bx = Current region
; ax = Region number before which we mark regions as having data
; and after which we mark as empty.
;
; Since this can only happen if recalculation occurs we can be
; assured that the text object is dirty so we don't need to dirty it
; ourselves.
;
; Check for out of our section.
;
push ax
mov ax, section
cmp ds:[di].VLTRAE_section, ax
pop ax
ja quitNotifyChange ; Branch if out of our region
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
; Added this line 4/15/93 -jw
; This code is just plain wrong without this line. What it is doing is
; foreach region
; if region is before current last region
; mark region as not empty
;
; This is correct, assuming the whole document is the same section. If we have
; multiple sections, this is wrong wrong wrong... We carefully checked one
; case in the old code and quit before we started affecting bits in later
; sections, but didn't handle the same situation for previous sections.
;
; We only want to perform this operation in our own section.
;
jb next ; Branch if before our region
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cmp bx, ax ; Check which part of list we're in
ja markEmpty ; Branch if beyond last entry
;
; The region falls before or at the first empty one
;
and ds:[di].VLTRAE_flags, not mask VLTRF_EMPTY
cmp bx, ax ; Check for on the last entry
jne next
mov lastRegNum, bx
jmp next
markEmpty:
;
; The region falls at or after the first empty one.
; If the region is making a transition from not-empty ==> empty then
; we need to clear the region out.
;
test ds:[di].VLTRAE_flags, mask VLTRF_EMPTY
jnz quitNotifyChange ; Quit if already empty
;
; The region used to have data and is now empty. Clear it out.
;
inc nukedRegCount ; One more nuked non-empty region
mov ds:[di].VLTRAE_flags, mask VLTRF_EMPTY
push ax, dx
movwbf dxah, ds:[di].VLTRAE_calcHeight
clr al ; dx.ax <- calc'd height
add heightSum.DWF_frac, ax ; Update total change
adc heightSum.DWF_int.low, dx
adc heightSum.DWF_int.high, 0
movdw dxax, ds:[di].VLTRAE_lineCount
adddw lineSum, dxax
movdw dxax, ds:[di].VLTRAE_charCount
adddw charSum, dxax
clrwbf ds:[di].VLTRAE_calcHeight
clrdw ds:[di].VLTRAE_lineCount
clrdw ds:[di].VLTRAE_charCount
call ClearRegion
pop ax, dx
next:
inc bx ; Move to next region
dec cx
jz quitNotifyChange
xchg si, di
call ScanToNextRegion
xchg si, di
jmp regionLoop ; Loop to process it
quitNotifyChange:
;
; Ripple the line/character counts backwards from the newly empty
; regions to the new last region.
;
push ax
mov cx, lastRegNum
call PointAtRegionElement
pop ax
call ResetCachedLineIfLower
pop cx ; Restore "last" region
adddw ds:[di].VLTRAE_lineCount, lineSum, ax
adddw ds:[di].VLTRAE_charCount, charSum, ax
;
; Notify whoever might be managing the regions that this one
; is the last one in the section. We need to do this after the
; marking so that we don't nuke a region before we add it's calc'd
; height to the total.
;
push di
mov di, 1000
call ThreadBorrowStackSpace
push di
push bp ; Save frame ptr
mov ax, MSG_VIS_LARGE_TEXT_REGION_IS_LAST
call ObjCallInstanceNoLock
pop bp ; Restore frame ptr
pop di
call ThreadReturnStackSpace
pop di
call RecalcTotalSize
call SendLargeHeightNotify
quit:
movdwf bxdxax, heightSum ; bx.dx.ax <- sum of calc'd heights
mov cx, nukedRegCount ; cx <- # of non-empty nuked regions
.leave
ret
LargeRegionRegionIsLast endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ClearRegion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Clear an entire region.
CALLED BY: LargeRegionRegionIsLast
PASS: *ds:si = Instance ptr
ds:di = Region
bx = Current region
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 4/ 4/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ClearRegion proc near
class VisTextClass
uses ax, bx, cx, dx, di
ProfilePoint 31
.enter
;
; Save and restore the gstate if the region we want to draw in is
; different than the current gstate-region.
;
call TextRegion_DerefVis_DI ; ds:di <- instance
mov ax, ds:[di].VTI_gstateRegion
mov di, ds:[di].VTI_gstate ; di <- gstate
cmp bx, ax
pushf ; Save "same region" flag
je afterSave
call GrSaveState
afterSave:
;
; Transform the gstate.
;
clr dl ; No DrawFlags
mov cx, bx ; cx <- region
call LargeRegionTransformGState
push di ; Save gstate handle
call LargeRegionClearToBottom
pop di ; Restore gstate handle
;
; Restore the gstate
;
popf ; Restore "same region" flag
je afterRestore
call GrRestoreState
afterRestore:
.leave
ProfilePoint 30
ret
ClearRegion endp
TextRegion ends
| 23.372019 | 79 | 0.626012 |
8360b7d0e926eee2b45f6d732ae8c6a63f9c137f | 628 | asm | Assembly | timedisp.asm | shashankdasverma/MPlab | 47b611630c4518c44af4c3e90ab92b7ad6517721 | [
"MIT"
] | null | null | null | timedisp.asm | shashankdasverma/MPlab | 47b611630c4518c44af4c3e90ab92b7ad6517721 | [
"MIT"
] | null | null | null | timedisp.asm | shashankdasverma/MPlab | 47b611630c4518c44af4c3e90ab92b7ad6517721 | [
"MIT"
] | 1 | 2020-11-25T05:53:14.000Z | 2020-11-25T05:53:14.000Z | .MODEL SMALL
.CODE
MOV AH,2CH
INT 21H
MOV AL,CH
AAM
MOV BX,AX
CALL DISP
MOV DL,':'
MOV AH,02H
INT 21H
MOV AL,CL
AAM
MOV BX,AX
CALL DISP
MOV DL,':'
MOV AH,02H
INT 21H
MOV AL,DH
AAM
MOV BX,AX
CALL DISP
MOV AH,4CH
INT 21H
DISP PROC NEAR
MOV DL,BH
ADD DL,30H
MOV AH,02
INT 21H
MOV DL,BL
ADD DL,30H
mov ah,02h
INT 21H
RET
DISP ENDP
END
| 14.952381 | 35 | 0.378981 |
814b5b605999778b6d40d865a9c8c30266e003f2 | 330 | asm | Assembly | programs/oeis/259/A259486.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/259/A259486.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/259/A259486.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A259486: a(n) = 3*n^2 - 3*n + 1 + 6*floor((n-1)*(n-2)/6).
; 1,7,19,43,73,109,157,211,271,343,421,505,601,703,811,931,1057,1189,1333,1483,1639,1807,1981,2161,2353,2551,2755,2971,3193,3421,3661,3907,4159,4423,4693,4969,5257,5551,5851,6163,6481,6805,7141,7483,7831,8191,8557
sub $1,$0
mul $1,2
bin $1,2
div $1,3
mul $1,6
add $1,1
| 33 | 213 | 0.669697 |
3c49b44d5a68317cbf1cf657c41c4abd37b220ee | 4,083 | asm | Assembly | Driver/Printer/PrintCom/Color/colorIWMapRGBToCMYK.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/PrintCom/Color/colorIWMapRGBToCMYK.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/PrintCom/Color/colorIWMapRGBToCMYK.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: color Print Drivers
FILE: colorIWMapRGBToCMYK.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 6/93 Initial revision
DESCRIPTION:
$Id: colorIWMapRGBToCMYK.asm,v 1.1 97/04/18 11:51:40 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrMapRGBtoCMYKIndex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Take an RGB value and a CMYK palette, return color table index
for ImageWriter II type dot-matrix printers.
CALLED BY: PrintSetColor
PASS:
al - R component to match
bl - G component to match
bh - B component to match
RETURN: cx - ASCII index
DESTROYED: si
PSEUDO CODE/STRATEGY:
Do the 3d distance calculation for each entry in the palette
and record the closest one. For efficiency sake, we use a
simplified distance formula:
dist = (delta-R + delta-G + delta-B +
max (delta-R,delta-G,delta-B)) / 2
Also, since we don't need the exact distance (only for
comparisons), we don't do the final divide-by-2. whoopie.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 6/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrMapRGBtoCMYKIndex proc near
uses si,di,dx,ds
red local word
green local word
blue local word
.enter
clr cx ; ch = curr index, cl=max index
;special case for all three values being equal (shades of
;gray). we just print these as black.
cmp al,bl
jne startCheck
cmp al,bh
je done ; return 0 index (black)
startCheck:
segmov ds,cs,di ;get segment of the Palette.
mov si, offset RibbonPalette ;offset of same.
mov dh, ((offset endRibbonPalette-offset RibbonPalette) / 3)
clr ah ; make into a word
mov red, ax
mov al, bl ; get green
mov green, ax
mov al, bh ; get blue
mov blue, ax
mov di, 0xffff ; initialize di = max distance
clr ah
; loop through all the values
checkLoop:
lodsb ; get r component
sub ax, red ; calc delta-R
jns redPos ; absolute value, of course
neg ax
redPos:
mov bx, ax ; start accumulation
mov dl, al ; save in case max
lodsb ; next component
sub ax, green ; calc delta-G
jns greenPos ; absolute value, of course
neg ax
greenPos:
add bx, ax ; add it to accumulation
cmp al, dl ; check for largest component
jb skip2nd ; no, skip this one
mov dl, al ; yes, store for later
skip2nd:
lodsb ; get b component
sub ax, blue ; calc delta-B
jns bluePos ; absolute value, of course
neg ax
bluePos:
add bx, ax ; bump distance calc
cmp al, dl ; check for largest again
jb skip3rd ; nope, continue
mov dl, al ; yep, save it
skip3rd:
mov al, dl
add bx, ax ; add max
; done with this entry, check if closer than one we saved
cmp bx, di ; check current vs max
jae nextOne ; no, check next entry
mov di, bx ; yes, save value
mov cl, ch ; and save index too
nextOne:
inc ch ; on to next index
jz done
cmp ch, dh ; check vs #entries
jbe checkLoop ; one to next entry
; all done, get index for closest one and lookup RGB
done:
; return index here
clr ch ; make index a word
add cx,"0" ;convert to ASCII
.leave
ret
PrMapRGBtoCMYKIndex endp
;CURRENTLY TWEAKED WITH A STAR XB-2420 4-color RIBBON
RibbonPalette label byte
byte 0,0,0 ;black
byte 212,212,47 ;yellow
byte 170,47,212 ;magenta
byte 47,47,212 ;cyan
byte 170,0,0 ;red
byte 0,200,0 ;green
byte 47,0,170 ;purple
endRibbonPalette label byte
| 26.006369 | 79 | 0.588783 |
d889826509bc06e54ed9e62d6f1ef052fc48bd6e | 10,898 | asm | Assembly | ws2812_firmware.asm | mikeakohn/ws2812_driver | 08722286ad7994b38c3176f9ea3ab23553713cf0 | [
"BSD-2-Clause"
] | 1 | 2020-11-10T15:19:09.000Z | 2020-11-10T15:19:09.000Z | ws2812_firmware.asm | mikeakohn/ws2812_driver | 08722286ad7994b38c3176f9ea3ab23553713cf0 | [
"BSD-2-Clause"
] | null | null | null | ws2812_firmware.asm | mikeakohn/ws2812_driver | 08722286ad7994b38c3176f9ea3ab23553713cf0 | [
"BSD-2-Clause"
] | null | null | null | ;; LED Panel - Copyright 2014 by Michael Kohn
;; Email: mike@mikekohn.net
;; Web: http://www.mikekohn.net/
;;
;; Control a string of LED's controlled by a WS2812 controller.
.include "tn85def.inc"
.avr8
; CKSEL = 0001
; CLKPS = 0000
; CKDIV8 = 0
;
; FUSE EXTD = 0xff
; FUSE HIGH = 0xdf
; FUSE LOW = 0xc1
; 9600 Baud: 20,000,000 * (1 / 9600) = 2083 cycles or when timer is 255
; ticks * 8, 8 interrupts
RX_PIN equ 0
TX_PIN equ 1
DATA_OUT equ 2
; r0 = 0
; r1 = 1
; r15 = 255
; r14 = temp
; r16 = paramter to function
; r17 = temp
; r18 =
; r19 =
; r20 = count in interrupt
; r21 =
; r22 =
; r23 =
; r24 =
; r25 =
; r26 =
; r27 =
; r30 =
; r31 =
;
.org 0x000
rjmp start
.org 0x00a
rjmp service_interrupt
start:
;; Disable interrupts
cli
;; Set up stack ptr
;ldi r17, RAMEND>>8
;out SPH, r17
ldi r17, RAMEND&255
out SPL, r17
;; r0 = 0, r1 = 1, r15 = 255
eor r0, r0
eor r1, r1
inc r1
ldi r17, 0xff
mov r15, r17
;; Set up PORTB
;; P0 = RX
;; P1 = TX
ldi r17, (1<<TX_PIN)|(1<<DATA_OUT)
out DDRB, r17 ; PB0 is input, PB1, PB2 are output
ldi r17, (1<<TX_PIN) ; |(1<<DATA_OUT) (idle low?)
out PORTB, r17 ; RX is 0, TX is 1
;; Set up TIMER0
ldi r17, 255 ; with /1 prescale this is 2083 interrupts/s
out OCR0A, r17
ldi r17, (1<<OCIE0A)
out TIMSK, r17 ; enable interrupt compare A
ldi r17, (1<<WGM01)
out TCCR0A, r17 ; normal counting (0xffff is top, count up)
ldi r17, (1<<CS00) ; CTC OCR0A Clear Timer on Compare
out TCCR0B, r17 ; prescale = 1 from clock source
; Interrupt enable
sei
;ldi r16, 'A'
;rcall send_byte
;rcall send_temp
;; Clear LED RAM (40 * 3 bytes)
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 120
memset:
st Y+, r0
dec r23
brne memset
;ldi r23, 0xff
;sts SRAM_START, r23
;ldi r23, 128
;sts SRAM_START+4, r23
;rcall send_ready
main:
sbic PINB, RX_PIN
rjmp main
rcall read_byte
cpi r16, 0xff
breq parse_command
;; pixel#, r, g, b
mov r19, r16
rcall read_rgb
mov r6, r19
add r19, r6
add r19, r6
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
add r28, r19
adc r29, r0
st Y+, r11
st Y+, r10
st Y+, r12
;rcall send_led_data
ldi r16, '*'
rcall send_byte
rjmp main
parse_command:
;ldi r16, '?'
;rcall send_byte
rcall read_byte
cpi r16, 0xff
brne not_ff
rcall send_led_data
rjmp parse_command_exit
not_ff:
cpi r16, 0xfe
brne not_fe
rcall set_all
rjmp parse_command_exit
not_fe:
cpi r16, 0xfd
brne not_fd
rcall shift_left_linear
rjmp parse_command_exit
not_fd:
cpi r16, 0xfc
brne not_fc
rcall shift_right_linear
rjmp parse_command_exit
not_fc:
cpi r16, 0xfb
brne not_fb
rcall shift_left_8x5
rjmp parse_command_exit
not_fb:
cpi r16, 0xfa
brne not_fa
rcall shift_right_8x5
rjmp parse_command_exit
not_fa:
cpi r16, 0xf9
brne not_f9
rcall shift_up_8x5
rjmp parse_command_exit
not_f9:
cpi r16, 0xf8
brne not_f8
rcall shift_down_8x5
rjmp parse_command_exit
not_f8:
cpi r16, 0xf7
brne not_f7
rcall set_all_not_off
rjmp parse_command_exit
not_f7:
cpi r16, 0xf6
brne not_f6
rcall fade_out
rjmp parse_command_exit
not_f6:
cpi r16, 0xf5
brne not_f5
rcall fade_in
rjmp parse_command_exit
not_f5:
parse_command_exit:
ldi r16, '*'
rcall send_byte
rjmp main
;; Set all pixels to RGB (r7, r8, r9)
set_all:
rcall read_rgb
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 40
set_all_loop:
st Y+, r11
st Y+, r10
st Y+, r12
dec r23
brne set_all_loop
ret
shift_left_linear:
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r30, (SRAM_START)&0xff
ldi r31, (SRAM_START)>>8
adiw r30, 3
ldi r23, 120-3
shift_left_linear_loop:
ld r11, Z+
st Y+, r11
dec r23
brne shift_left_linear_loop
st Y+, r0
st Y+, r0
st Y+, r0
ret
shift_right_linear:
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r30, (SRAM_START)&0xff
ldi r31, (SRAM_START)>>8
adiw r30, 60
adiw r30, 60-3
adiw r28, 60
adiw r28, 60
ldi r23, 120-3
shift_right_linear_loop:
ld r11, -Z
st -Y, r11
dec r23
brne shift_right_linear_loop
st -Y, r0
st -Y, r0
st -Y, r0
ret
shift_left_8x5:
rcall shift_left_linear
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
adiw r28, 7*3
ldi r23, 5
shift_left_8x5_loop:
st Y+, r0
st Y+, r0
st Y+, r0
adiw r28, 7*3
dec r23
brne shift_left_8x5_loop
ret
shift_right_8x5:
rcall shift_right_linear
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 5
shift_right_8x5_loop:
st Y+, r0
st Y+, r0
st Y+, r0
adiw r28, 7*3
dec r23
brne shift_right_8x5_loop
ret
shift_up_8x5:
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r30, (SRAM_START)&0xff
ldi r31, (SRAM_START)>>8
adiw r30, 3*8
ldi r23, 120-(3*8)
shift_up_8x5_loop:
ld r11, Z+
st Y+, r11
dec r23
brne shift_up_8x5_loop
ldi r23, 3*8
shift_up_8x5_clear_bottom:
st Y+, r0
dec r23
brne shift_up_8x5_clear_bottom
ret
shift_down_8x5:
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r30, (SRAM_START)&0xff
ldi r31, (SRAM_START)>>8
adiw r30, 60
adiw r30, 60-(3*8)
adiw r28, 60
adiw r28, 60
ldi r23, 120-(3*8)
shift_down_8x5_loop:
ld r11, -Z
st -Y, r11
dec r23
brne shift_down_8x5_loop
ldi r23, 3*8
shift_down_8x5_clear_top:
st -Y, r0
dec r23
brne shift_down_8x5_clear_top
ret
;; Set all pixels that aren't currently (0,0,0) to RGB (r7, r8, r9)
set_all_not_off:
rcall read_rgb
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 40
set_all_loop_not_off:
ld r13, Y+
ld r14, Y+
ld r15, Y+
tst r13
brne set_all_not_off_do
tst r14
brne set_all_not_off_do
tst r15
breq set_all_not_off_skip
set_all_not_off_do:
sbiw r28, 3
st Y+, r11
st Y+, r10
st Y+, r12
set_all_not_off_skip:
dec r23
brne set_all_loop_not_off
ret
fade_out:
rcall read_rgb
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 40
fade_out_loop:
ld r26, Y ; fade out green
cp r11, r26 ; if diff_g < current_g { okay } else { saturate }
brlo fade_out_g_okay
mov r26, r11
fade_out_g_okay:
sub r26, r11
st Y+, r26
ld r26, Y ; fade out red
cp r10, r26 ; if diff_r < current_r { okay } else { saturate }
brlo fade_out_r_okay
mov r26, r10
fade_out_r_okay:
sub r26, r10
st Y+, r26
ld r26, Y ; fade out blue
cp r12, r26 ; if diff_b < current_b { okay } else { saturate }
brlo fade_out_b_okay
mov r26, r12
fade_out_b_okay:
sub r26, r12
st Y+, r26
dec r23
brne fade_out_loop
ret
fade_in:
rcall read_rgb
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 40
fade_in_loop:
ld r26, Y ; fade in green
add r26, r11
brcc fade_in_g_okay
ldi r26, 0xff
fade_in_g_okay:
st Y+, r26
ld r26, Y ; fade in red
add r26, r10
brcc fade_in_r_okay
ldi r26, 0xff
fade_in_r_okay:
st Y+, r26
ld r26, Y ; fade in blue
add r26, r12
brcc fade_in_b_okay
ldi r26, 0xff
fade_in_b_okay:
st Y+, r26
dec r23
brne fade_in_loop
ret
read_rgb:
rcall read_byte
mov r10, r16
rcall read_byte
mov r11, r16
rcall read_byte
mov r12, r16
ret
send_led_data:
;; Y points to LED data, r23 counts 120 bytes
ldi r28, (SRAM_START)&0xff
ldi r29, (SRAM_START)>>8
ldi r23, 120 ; byte_count = 120
cli ; No interrupts while sending LED data
;; Send LED data
next_byte:
ld r16, Y+
ldi r17, 8
next_bit:
;; 0: T0H=0.35us T0L=0.8us @20MHz 7 cycles / 16 cycles
;; 1: T1H=0.70us T1L=0.6us @20MHz 14 cycles / 12 cycles
sbi PORTB, DATA_OUT
sbrc r16, 7
rjmp t1h
t0h:
;nop ; sbrc=2 (skip +1), nop=1, rjmp=2, cbi PORTB=2 (7 cycles)
rjmp end_bit_on
t1h:
nop ; sbrc=1, rjmp=2, nop*9=9, cbi PORTB=2 (14 cycles)
nop
nop
nop
nop
nop
nop
nop
nop
end_bit_on:
cbi PORTB, DATA_OUT
sbrc r16, 7 ; 2 cycles if skipped, 1 cycle otherwise
rjmp t1l ; 2 cycles
t0l:
nop ; sbrc=2, nop*8=6, rjmp=2, lsl=1,dec=1,brne=2,sbi PORT=2
nop
nop
nop
nop
nop
rjmp end_bit_off
t1l:
nop ; sbrc=1,rjmp=2, nop*2=3, lsl=1,dec=1,brne=2,sbi PORT=2
nop
nop
end_bit_off:
lsl r16 ; 1 cycle
dec r17 ; bit_count--; 1 cycle
brne next_bit ; 2 cycle if branch taken (otherwise 1)
dec r23 ; byte_count--; 1 cycle
brne next_byte ; 2 cycle if branch taken (otherwise 1)
sbi PORTB, DATA_OUT
sei ; Turn interrupts back on
cbi PORTB, DATA_OUT
;; End by sending a reset pulse
out TCNT0, r0
clr r20
cbi PORTB, DATA_OUT
wait_reset_pulse_end:
cpi r20, 4
brne wait_reset_pulse_end
;sbi PORTB, DATA_OUT
ret
;; send_ready
send_ready:
ldi r30, (ready * 2) & 0xff
ldi r31, (ready * 2) >> 8
rcall send_string
ret
;; send_string(Z)
send_string:
lpm r16, Z+
cpi r16, 0
breq send_string_exit
rcall send_byte
rjmp send_string
send_string_exit:
ret
;; send_byte(r16) Software UART
send_byte:
; with /1 prescale this is 255 ticks for an interrupt * 8, approx 1/9600
;ldi r17, 255
;out OCR0A, r17
;; Start bit is 0
out TCNT0, r0
clr r20
cbi PORTB, TX_PIN
wait_start_bit:
cpi r20, 8
brne wait_start_bit
;; Shift out 8 bit LSb first + start bit
ldi r17, 9
shift_next_bit:
out TCNT0, r0
sbrc r16, 0
sbi PORTB, TX_PIN
sbrs r16, 0
cbi PORTB, TX_PIN
sec
ror r16
clr r20
wait_data_bit:
cpi r20, 8
brne wait_data_bit
dec r17
brne shift_next_bit
ret
;; read_byte(r16) Software UART
read_byte:
;; Wait for data
sbic PINB, RX_PIN
rjmp read_byte
; with /1 prescale this is 255 ticks for an interrupt * 8, approx 1/9600
; Wait 1.5 bits (full start bit + 1/2 of the first data bit so we
; sample in the center of all 8 bits
;ldi r17, 255
;out OCR0A, r17
;; Start bit is 0
out TCNT0, r0
clr r20
wait_start_bit_in:
cpi r20, 12
brne wait_start_bit_in
;; Shift out 8 bit LSb first + start bit
ldi r16, 0 ; store result in r16
ldi r17, 8 ; ignore the stop bit, read 8 bits
shift_next_bit_in:
out TCNT0, r0 ; reset timer
clr r20
sbic PINB, RX_PIN ; if we read 1 from input pin, carry=1 else carry=0
sec
sbis PINB, RX_PIN
clc
ror r16 ; roll right with carry
wait_data_bit_in:
cpi r20, 8
brne wait_data_bit_in
dec r17
brne shift_next_bit_in
sbi DDRB, TX_PIN
ret
service_interrupt:
in r7, SREG
inc r20
exit_interrupt:
out SREG, r7
reti
.align 16
ready:
.db "ready\r\n", 0
.align 16
signature:
.db "LED Panel - Copyright 2014 - Michael Kohn - Version 0.01",0
| 17.953871 | 78 | 0.64287 |
131be0fa186c70fdfd3337d0f1c05017a22f51c7 | 577 | asm | Assembly | programs/oeis/187/A187275.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/187/A187275.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/187/A187275.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A187275: a(n) = (n/4)*5^(n/2)*((1+sqrt(5))^2+(-1)^n*(1-sqrt(5))^2).
; 0,5,30,75,300,625,2250,4375,15000,28125,93750,171875,562500,1015625,3281250,5859375,18750000,33203125,105468750,185546875,585937500,1025390625,3222656250,5615234375,17578125000,30517578125,95214843750,164794921875,512695312500,885009765625,2746582031250,4730224609375,14648437500000,25177001953125,77819824218750,133514404296875,411987304687500,705718994140625,2174377441406250,3719329833984375
mov $1,$0
lpb $0
sub $0,2
mul $1,5
lpe
add $0,1
mul $1,2
mul $0,$1
mul $0,2
add $1,$0
div $1,10
mul $1,5
| 36.0625 | 396 | 0.767764 |
ed0f05133d6d912e63207bc83e386889a2592894 | 410 | asm | Assembly | libsrc/fcntl/spectrum/plus3/rename.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/fcntl/spectrum/plus3/rename.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/fcntl/spectrum/plus3/rename.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z |
;
; z88dk - Spectrum +3 stdio Library
;
; djm 10/4/2000
;
; int rename(char *source, char *dest)
;
; $Id: rename.asm,v 1.6 2017-01-02 21:02:22 aralbrec Exp $
SECTION code_clib
PUBLIC rename
PUBLIC _rename
EXTERN dodos
INCLUDE "p3dos.def"
.rename
._rename
pop bc
pop de ;new filename
pop hl ;old
push hl
push de
push bc
ld iy,DOS_RENAME
call dodos
ld hl,0
ret c ;OK
dec hl
ret
| 12.058824 | 58 | 0.660976 |
a968875c3d8a8a38c84339438269d308208ec195 | 7,571 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1136.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_0xca_notsx.log_21829_1136.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_0xca_notsx.log_21829_1136.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 %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x54da, %rsi
lea addresses_WT_ht+0x1a9aa, %rdi
nop
nop
nop
nop
xor $20699, %rdx
mov $0, %rcx
rep movsl
xor %r10, %r10
lea addresses_D_ht+0x1ca9a, %rsi
clflush (%rsi)
nop
nop
inc %rdi
movb (%rsi), %r13b
sub $35317, %r13
lea addresses_normal_ht+0x2e0a, %rsi
lea addresses_WC_ht+0xb2f4, %rdi
nop
cmp $36243, %r14
mov $81, %rcx
rep movsl
nop
and $52529, %rdx
lea addresses_WC_ht+0x1b55a, %rsi
lea addresses_normal_ht+0x9e9a, %rdi
nop
nop
sub %r14, %r14
mov $30, %rcx
rep movsq
nop
nop
add %rdi, %rdi
lea addresses_UC_ht+0x1d67d, %rsi
and $50133, %r14
movb $0x61, (%rsi)
nop
nop
nop
cmp $13391, %rsi
lea addresses_normal_ht+0xf4aa, %rsi
lea addresses_WC_ht+0xd0ce, %rdi
inc %r11
mov $105, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_A_ht+0x169a, %rsi
lea addresses_A_ht+0x629a, %rdi
nop
nop
nop
inc %rdx
mov $81, %rcx
rep movsq
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x1ca9a, %rdi
nop
nop
nop
nop
nop
add %rdx, %rdx
movb $0x61, (%rdi)
nop
inc %r14
lea addresses_normal_ht+0x44fa, %rsi
lea addresses_D_ht+0x11a9a, %rdi
sub %r14, %r14
mov $120, %rcx
rep movsw
nop
nop
nop
nop
nop
sub $51212, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r14
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_D+0xa29a, %rsi
nop
nop
nop
xor %rbx, %rbx
movw $0x5152, (%rsi)
cmp $10069, %rbx
// Store
lea addresses_A+0xd19a, %r11
nop
nop
add %r15, %r15
movl $0x51525354, (%r11)
nop
nop
nop
nop
nop
add %rbx, %rbx
// REPMOV
lea addresses_A+0x18a9a, %rsi
lea addresses_PSE+0x329a, %rdi
nop
nop
nop
nop
nop
add %rbp, %rbp
mov $53, %rcx
rep movsw
nop
nop
and %rbp, %rbp
// Store
lea addresses_WT+0x1f0c, %r15
nop
nop
sub $34716, %rbp
movl $0x51525354, (%r15)
nop
nop
xor %rsi, %rsi
// Store
lea addresses_UC+0x981a, %rcx
clflush (%rcx)
nop
dec %rbx
mov $0x5152535455565758, %r11
movq %r11, %xmm1
vmovups %ymm1, (%rcx)
nop
inc %rdi
// Faulty Load
lea addresses_WT+0x1e29a, %rdi
nop
nop
nop
and %rcx, %rcx
mov (%rdi), %r11w
lea oracles, %r15
and $0xff, %r11
shlq $12, %r11
mov (%r15,%r11,1), %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_A'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': True, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': True, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 34.103604 | 2,999 | 0.657377 |
0d2eb999ccb29994b472c49db9dfa670ab285e9f | 349 | asm | Assembly | bootdict/x86/source-id.asm | ikysil/ikforth | 165e049fc007003cd05f59332dc856d553d8aac8 | [
"Unlicense"
] | 8 | 2017-08-03T08:49:06.000Z | 2021-12-17T12:02:19.000Z | bootdict/x86/source-id.asm | clstrfsck/ikforth | 165e049fc007003cd05f59332dc856d553d8aac8 | [
"Unlicense"
] | 58 | 2016-04-21T20:03:54.000Z | 2022-01-16T00:40:50.000Z | bootdict/x86/source-id.asm | clstrfsck/ikforth | 165e049fc007003cd05f59332dc856d553d8aac8 | [
"Unlicense"
] | 1 | 2018-07-25T21:07:00.000Z | 2018-07-25T21:07:00.000Z | ; 6.2.2218 SOURCE-ID
; Identifies the input source as follows:
;
; SOURCE-ID Input source
; -1 String (via EVALUATE)
; 0 User input device
; >0 File handle
$CODE 'SOURCE-ID',$SOURCE_ID,VEF_USUAL
PUSHDS <DWORD [EDI + VAR_SOURCE_ID]>
$NEXT
| 31.727273 | 60 | 0.492837 |
ad339e7dc592fb297a172ac453f9a2f5ae757dd3 | 386 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_ldexp_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_ldexp_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_ldexp_callee.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math16
PUBLIC cm16_sdcc_ldexp_callee
EXTERN asm_f16_ldexp
; half_t ldexp(half_t x, int16_t pw2);
.cm16_sdcc_ldexp_callee
; Entry:
; Stack: int right, half_t left, ret
pop de ; my return
pop hl ; half_t
pop bc ; int
push de ; my return
jp asm_f16_ldexp
| 19.3 | 43 | 0.544041 |
98e67bdfb13ee10d4641dc5ddbe033d5deebe845 | 451 | asm | Assembly | programs/oeis/082/A082447.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/082/A082447.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/082/A082447.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A082447: a(n) = the number k such that s(k)=0 where s(0)=n and s(i)=s(i-1)-(s(i-1) modulo i).
; 1,2,2,3,3,4,4,4,4,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
mov $1,2
lpb $0
sub $0,1
div $0,$1
mul $0,$1
add $1,1
lpe
sub $1,1
mov $0,$1
| 34.692308 | 268 | 0.587583 |
777fa669886ef80de4e8792910d0c8a5ea9126ff | 17,389 | asm | Assembly | contrib/libs/openssl/asm/windows/crypto/ec/x25519-x86_64.asm | ibr11/catboost | 842a25b4fb856a61564b163b16a3f49ba35fdc14 | [
"Apache-2.0"
] | 4 | 2020-06-24T06:07:52.000Z | 2021-04-16T22:58:09.000Z | contrib/libs/openssl/asm/windows/crypto/ec/x25519-x86_64.asm | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 6 | 2020-02-18T22:12:29.000Z | 2020-02-18T22:31:26.000Z | contrib/libs/openssl/asm/windows/crypto/ec/x25519-x86_64.asm | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1 | 2021-04-27T23:40:09.000Z | 2021-04-27T23:40:09.000Z | default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
global x25519_fe51_mul
ALIGN 32
x25519_fe51_mul:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe51_mul:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rsp,[((-40))+rsp]
$L$fe51_mul_body:
mov rax,QWORD[rsi]
mov r11,QWORD[rdx]
mov r12,QWORD[8+rdx]
mov r13,QWORD[16+rdx]
mov rbp,QWORD[24+rdx]
mov r14,QWORD[32+rdx]
mov QWORD[32+rsp],rdi
mov rdi,rax
mul r11
mov QWORD[rsp],r11
mov rbx,rax
mov rax,rdi
mov rcx,rdx
mul r12
mov QWORD[8+rsp],r12
mov r8,rax
mov rax,rdi
lea r15,[r14*8+r14]
mov r9,rdx
mul r13
mov QWORD[16+rsp],r13
mov r10,rax
mov rax,rdi
lea rdi,[r15*2+r14]
mov r11,rdx
mul rbp
mov r12,rax
mov rax,QWORD[rsi]
mov r13,rdx
mul r14
mov r14,rax
mov rax,QWORD[8+rsi]
mov r15,rdx
mul rdi
add rbx,rax
mov rax,QWORD[16+rsi]
adc rcx,rdx
mul rdi
add r8,rax
mov rax,QWORD[24+rsi]
adc r9,rdx
mul rdi
add r10,rax
mov rax,QWORD[32+rsi]
adc r11,rdx
mul rdi
imul rdi,rbp,19
add r12,rax
mov rax,QWORD[8+rsi]
adc r13,rdx
mul rbp
mov rbp,QWORD[16+rsp]
add r14,rax
mov rax,QWORD[16+rsi]
adc r15,rdx
mul rdi
add rbx,rax
mov rax,QWORD[24+rsi]
adc rcx,rdx
mul rdi
add r8,rax
mov rax,QWORD[32+rsi]
adc r9,rdx
mul rdi
imul rdi,rbp,19
add r10,rax
mov rax,QWORD[8+rsi]
adc r11,rdx
mul rbp
add r12,rax
mov rax,QWORD[16+rsi]
adc r13,rdx
mul rbp
mov rbp,QWORD[8+rsp]
add r14,rax
mov rax,QWORD[24+rsi]
adc r15,rdx
mul rdi
add rbx,rax
mov rax,QWORD[32+rsi]
adc rcx,rdx
mul rdi
add r8,rax
mov rax,QWORD[8+rsi]
adc r9,rdx
mul rbp
imul rdi,rbp,19
add r10,rax
mov rax,QWORD[16+rsi]
adc r11,rdx
mul rbp
add r12,rax
mov rax,QWORD[24+rsi]
adc r13,rdx
mul rbp
mov rbp,QWORD[rsp]
add r14,rax
mov rax,QWORD[32+rsi]
adc r15,rdx
mul rdi
add rbx,rax
mov rax,QWORD[8+rsi]
adc rcx,rdx
mul rbp
add r8,rax
mov rax,QWORD[16+rsi]
adc r9,rdx
mul rbp
add r10,rax
mov rax,QWORD[24+rsi]
adc r11,rdx
mul rbp
add r12,rax
mov rax,QWORD[32+rsi]
adc r13,rdx
mul rbp
add r14,rax
adc r15,rdx
mov rdi,QWORD[32+rsp]
jmp NEAR $L$reduce51
$L$fe51_mul_epilogue:
$L$SEH_end_x25519_fe51_mul:
global x25519_fe51_sqr
ALIGN 32
x25519_fe51_sqr:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe51_sqr:
mov rdi,rcx
mov rsi,rdx
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rsp,[((-40))+rsp]
$L$fe51_sqr_body:
mov rax,QWORD[rsi]
mov r15,QWORD[16+rsi]
mov rbp,QWORD[32+rsi]
mov QWORD[32+rsp],rdi
lea r14,[rax*1+rax]
mul rax
mov rbx,rax
mov rax,QWORD[8+rsi]
mov rcx,rdx
mul r14
mov r8,rax
mov rax,r15
mov QWORD[rsp],r15
mov r9,rdx
mul r14
mov r10,rax
mov rax,QWORD[24+rsi]
mov r11,rdx
imul rdi,rbp,19
mul r14
mov r12,rax
mov rax,rbp
mov r13,rdx
mul r14
mov r14,rax
mov rax,rbp
mov r15,rdx
mul rdi
add r12,rax
mov rax,QWORD[8+rsi]
adc r13,rdx
mov rsi,QWORD[24+rsi]
lea rbp,[rax*1+rax]
mul rax
add r10,rax
mov rax,QWORD[rsp]
adc r11,rdx
mul rbp
add r12,rax
mov rax,rbp
adc r13,rdx
mul rsi
add r14,rax
mov rax,rbp
adc r15,rdx
imul rbp,rsi,19
mul rdi
add rbx,rax
lea rax,[rsi*1+rsi]
adc rcx,rdx
mul rdi
add r10,rax
mov rax,rsi
adc r11,rdx
mul rbp
add r8,rax
mov rax,QWORD[rsp]
adc r9,rdx
lea rsi,[rax*1+rax]
mul rax
add r14,rax
mov rax,rbp
adc r15,rdx
mul rsi
add rbx,rax
mov rax,rsi
adc rcx,rdx
mul rdi
add r8,rax
adc r9,rdx
mov rdi,QWORD[32+rsp]
jmp NEAR $L$reduce51
ALIGN 32
$L$reduce51:
mov rbp,0x7ffffffffffff
mov rdx,r10
shr r10,51
shl r11,13
and rdx,rbp
or r11,r10
add r12,r11
adc r13,0
mov rax,rbx
shr rbx,51
shl rcx,13
and rax,rbp
or rcx,rbx
add r8,rcx
adc r9,0
mov rbx,r12
shr r12,51
shl r13,13
and rbx,rbp
or r13,r12
add r14,r13
adc r15,0
mov rcx,r8
shr r8,51
shl r9,13
and rcx,rbp
or r9,r8
add rdx,r9
mov r10,r14
shr r14,51
shl r15,13
and r10,rbp
or r15,r14
lea r14,[r15*8+r15]
lea r15,[r14*2+r15]
add rax,r15
mov r8,rdx
and rdx,rbp
shr r8,51
add rbx,r8
mov r9,rax
and rax,rbp
shr r9,51
add rcx,r9
mov QWORD[rdi],rax
mov QWORD[8+rdi],rcx
mov QWORD[16+rdi],rdx
mov QWORD[24+rdi],rbx
mov QWORD[32+rdi],r10
mov r15,QWORD[40+rsp]
mov r14,QWORD[48+rsp]
mov r13,QWORD[56+rsp]
mov r12,QWORD[64+rsp]
mov rbx,QWORD[72+rsp]
mov rbp,QWORD[80+rsp]
lea rsp,[88+rsp]
$L$fe51_sqr_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe51_sqr:
global x25519_fe51_mul121666
ALIGN 32
x25519_fe51_mul121666:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe51_mul121666:
mov rdi,rcx
mov rsi,rdx
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rsp,[((-40))+rsp]
$L$fe51_mul121666_body:
mov eax,121666
mul QWORD[rsi]
mov rbx,rax
mov eax,121666
mov rcx,rdx
mul QWORD[8+rsi]
mov r8,rax
mov eax,121666
mov r9,rdx
mul QWORD[16+rsi]
mov r10,rax
mov eax,121666
mov r11,rdx
mul QWORD[24+rsi]
mov r12,rax
mov eax,121666
mov r13,rdx
mul QWORD[32+rsi]
mov r14,rax
mov r15,rdx
jmp NEAR $L$reduce51
$L$fe51_mul121666_epilogue:
$L$SEH_end_x25519_fe51_mul121666:
EXTERN OPENSSL_ia32cap_P
global x25519_fe64_eligible
ALIGN 32
x25519_fe64_eligible:
mov ecx,DWORD[((OPENSSL_ia32cap_P+8))]
xor eax,eax
and ecx,0x80100
cmp ecx,0x80100
cmove eax,ecx
DB 0F3h,0C3h ;repret
global x25519_fe64_mul
ALIGN 32
x25519_fe64_mul:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_mul:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
push rbp
push rbx
push r12
push r13
push r14
push r15
push rdi
lea rsp,[((-16))+rsp]
$L$fe64_mul_body:
mov rax,rdx
mov rbp,QWORD[rdx]
mov rdx,QWORD[rsi]
mov rcx,QWORD[8+rax]
mov r14,QWORD[16+rax]
mov r15,QWORD[24+rax]
mulx rax,r8,rbp
xor edi,edi
mulx rbx,r9,rcx
adcx r9,rax
mulx rax,r10,r14
adcx r10,rbx
mulx r12,r11,r15
mov rdx,QWORD[8+rsi]
adcx r11,rax
mov QWORD[rsp],r14
adcx r12,rdi
mulx rbx,rax,rbp
adox r9,rax
adcx r10,rbx
mulx rbx,rax,rcx
adox r10,rax
adcx r11,rbx
mulx rbx,rax,r14
adox r11,rax
adcx r12,rbx
mulx r13,rax,r15
mov rdx,QWORD[16+rsi]
adox r12,rax
adcx r13,rdi
adox r13,rdi
mulx rbx,rax,rbp
adcx r10,rax
adox r11,rbx
mulx rbx,rax,rcx
adcx r11,rax
adox r12,rbx
mulx rbx,rax,r14
adcx r12,rax
adox r13,rbx
mulx r14,rax,r15
mov rdx,QWORD[24+rsi]
adcx r13,rax
adox r14,rdi
adcx r14,rdi
mulx rbx,rax,rbp
adox r11,rax
adcx r12,rbx
mulx rbx,rax,rcx
adox r12,rax
adcx r13,rbx
mulx rbx,rax,QWORD[rsp]
adox r13,rax
adcx r14,rbx
mulx r15,rax,r15
mov edx,38
adox r14,rax
adcx r15,rdi
adox r15,rdi
jmp NEAR $L$reduce64
$L$fe64_mul_epilogue:
$L$SEH_end_x25519_fe64_mul:
global x25519_fe64_sqr
ALIGN 32
x25519_fe64_sqr:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_sqr:
mov rdi,rcx
mov rsi,rdx
push rbp
push rbx
push r12
push r13
push r14
push r15
push rdi
lea rsp,[((-16))+rsp]
$L$fe64_sqr_body:
mov rdx,QWORD[rsi]
mov rcx,QWORD[8+rsi]
mov rbp,QWORD[16+rsi]
mov rsi,QWORD[24+rsi]
mulx r15,r8,rdx
mulx rax,r9,rcx
xor edi,edi
mulx rbx,r10,rbp
adcx r10,rax
mulx r12,r11,rsi
mov rdx,rcx
adcx r11,rbx
adcx r12,rdi
mulx rbx,rax,rbp
adox r11,rax
adcx r12,rbx
mulx r13,rax,rsi
mov rdx,rbp
adox r12,rax
adcx r13,rdi
mulx r14,rax,rsi
mov rdx,rcx
adox r13,rax
adcx r14,rdi
adox r14,rdi
adcx r9,r9
adox r9,r15
adcx r10,r10
mulx rbx,rax,rdx
mov rdx,rbp
adcx r11,r11
adox r10,rax
adcx r12,r12
adox r11,rbx
mulx rbx,rax,rdx
mov rdx,rsi
adcx r13,r13
adox r12,rax
adcx r14,r14
adox r13,rbx
mulx r15,rax,rdx
mov edx,38
adox r14,rax
adcx r15,rdi
adox r15,rdi
jmp NEAR $L$reduce64
ALIGN 32
$L$reduce64:
mulx rbx,rax,r12
adcx r8,rax
adox r9,rbx
mulx rbx,rax,r13
adcx r9,rax
adox r10,rbx
mulx rbx,rax,r14
adcx r10,rax
adox r11,rbx
mulx r12,rax,r15
adcx r11,rax
adox r12,rdi
adcx r12,rdi
mov rdi,QWORD[16+rsp]
imul r12,rdx
add r8,r12
adc r9,0
adc r10,0
adc r11,0
sbb rax,rax
and rax,38
add r8,rax
mov QWORD[8+rdi],r9
mov QWORD[16+rdi],r10
mov QWORD[24+rdi],r11
mov QWORD[rdi],r8
mov r15,QWORD[24+rsp]
mov r14,QWORD[32+rsp]
mov r13,QWORD[40+rsp]
mov r12,QWORD[48+rsp]
mov rbx,QWORD[56+rsp]
mov rbp,QWORD[64+rsp]
lea rsp,[72+rsp]
$L$fe64_sqr_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe64_sqr:
global x25519_fe64_mul121666
ALIGN 32
x25519_fe64_mul121666:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_mul121666:
mov rdi,rcx
mov rsi,rdx
$L$fe64_mul121666_body:
mov edx,121666
mulx rcx,r8,QWORD[rsi]
mulx rax,r9,QWORD[8+rsi]
add r9,rcx
mulx rcx,r10,QWORD[16+rsi]
adc r10,rax
mulx rax,r11,QWORD[24+rsi]
adc r11,rcx
adc rax,0
imul rax,rax,38
add r8,rax
adc r9,0
adc r10,0
adc r11,0
sbb rax,rax
and rax,38
add r8,rax
mov QWORD[8+rdi],r9
mov QWORD[16+rdi],r10
mov QWORD[24+rdi],r11
mov QWORD[rdi],r8
$L$fe64_mul121666_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe64_mul121666:
global x25519_fe64_add
ALIGN 32
x25519_fe64_add:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_add:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
$L$fe64_add_body:
mov r8,QWORD[rsi]
mov r9,QWORD[8+rsi]
mov r10,QWORD[16+rsi]
mov r11,QWORD[24+rsi]
add r8,QWORD[rdx]
adc r9,QWORD[8+rdx]
adc r10,QWORD[16+rdx]
adc r11,QWORD[24+rdx]
sbb rax,rax
and rax,38
add r8,rax
adc r9,0
adc r10,0
mov QWORD[8+rdi],r9
adc r11,0
mov QWORD[16+rdi],r10
sbb rax,rax
mov QWORD[24+rdi],r11
and rax,38
add r8,rax
mov QWORD[rdi],r8
$L$fe64_add_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe64_add:
global x25519_fe64_sub
ALIGN 32
x25519_fe64_sub:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_sub:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
$L$fe64_sub_body:
mov r8,QWORD[rsi]
mov r9,QWORD[8+rsi]
mov r10,QWORD[16+rsi]
mov r11,QWORD[24+rsi]
sub r8,QWORD[rdx]
sbb r9,QWORD[8+rdx]
sbb r10,QWORD[16+rdx]
sbb r11,QWORD[24+rdx]
sbb rax,rax
and rax,38
sub r8,rax
sbb r9,0
sbb r10,0
mov QWORD[8+rdi],r9
sbb r11,0
mov QWORD[16+rdi],r10
sbb rax,rax
mov QWORD[24+rdi],r11
and rax,38
sub r8,rax
mov QWORD[rdi],r8
$L$fe64_sub_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe64_sub:
global x25519_fe64_tobytes
ALIGN 32
x25519_fe64_tobytes:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_x25519_fe64_tobytes:
mov rdi,rcx
mov rsi,rdx
$L$fe64_to_body:
mov r8,QWORD[rsi]
mov r9,QWORD[8+rsi]
mov r10,QWORD[16+rsi]
mov r11,QWORD[24+rsi]
lea rax,[r11*1+r11]
sar r11,63
shr rax,1
and r11,19
add r11,19
add r8,r11
adc r9,0
adc r10,0
adc rax,0
lea r11,[rax*1+rax]
sar rax,63
shr r11,1
not rax
and rax,19
sub r8,rax
sbb r9,0
sbb r10,0
sbb r11,0
mov QWORD[rdi],r8
mov QWORD[8+rdi],r9
mov QWORD[16+rdi],r10
mov QWORD[24+rdi],r11
$L$fe64_to_epilogue:
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
mov rsi,QWORD[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_x25519_fe64_tobytes:
DB 88,50,53,53,49,57,32,112,114,105,109,105,116,105,118,101
DB 115,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82
DB 89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112
DB 114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
EXTERN __imp_RtlVirtualUnwind
ALIGN 16
short_handler:
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
pushfq
sub rsp,64
mov rax,QWORD[120+r8]
mov rbx,QWORD[248+r8]
mov rsi,QWORD[8+r9]
mov r11,QWORD[56+r9]
mov r10d,DWORD[r11]
lea r10,[r10*1+rsi]
cmp rbx,r10
jb NEAR $L$common_seh_tail
mov rax,QWORD[152+r8]
jmp NEAR $L$common_seh_tail
ALIGN 16
full_handler:
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
pushfq
sub rsp,64
mov rax,QWORD[120+r8]
mov rbx,QWORD[248+r8]
mov rsi,QWORD[8+r9]
mov r11,QWORD[56+r9]
mov r10d,DWORD[r11]
lea r10,[r10*1+rsi]
cmp rbx,r10
jb NEAR $L$common_seh_tail
mov rax,QWORD[152+r8]
mov r10d,DWORD[4+r11]
lea r10,[r10*1+rsi]
cmp rbx,r10
jae NEAR $L$common_seh_tail
mov r10d,DWORD[8+r11]
lea rax,[r10*1+rax]
mov rbp,QWORD[((-8))+rax]
mov rbx,QWORD[((-16))+rax]
mov r12,QWORD[((-24))+rax]
mov r13,QWORD[((-32))+rax]
mov r14,QWORD[((-40))+rax]
mov r15,QWORD[((-48))+rax]
mov QWORD[144+r8],rbx
mov QWORD[160+r8],rbp
mov QWORD[216+r8],r12
mov QWORD[224+r8],r13
mov QWORD[232+r8],r14
mov QWORD[240+r8],r15
$L$common_seh_tail:
mov rdi,QWORD[8+rax]
mov rsi,QWORD[16+rax]
mov QWORD[152+r8],rax
mov QWORD[168+r8],rsi
mov QWORD[176+r8],rdi
mov rdi,QWORD[40+r9]
mov rsi,r8
mov ecx,154
DD 0xa548f3fc
mov rsi,r9
xor rcx,rcx
mov rdx,QWORD[8+rsi]
mov r8,QWORD[rsi]
mov r9,QWORD[16+rsi]
mov r10,QWORD[40+rsi]
lea r11,[56+rsi]
lea r12,[24+rsi]
mov QWORD[32+rsp],r10
mov QWORD[40+rsp],r11
mov QWORD[48+rsp],r12
mov QWORD[56+rsp],rcx
call QWORD[__imp_RtlVirtualUnwind]
mov eax,1
add rsp,64
popfq
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
pop rdi
pop rsi
DB 0F3h,0C3h ;repret
section .pdata rdata align=4
ALIGN 4
DD $L$SEH_begin_x25519_fe51_mul wrt ..imagebase
DD $L$SEH_end_x25519_fe51_mul wrt ..imagebase
DD $L$SEH_info_x25519_fe51_mul wrt ..imagebase
DD $L$SEH_begin_x25519_fe51_sqr wrt ..imagebase
DD $L$SEH_end_x25519_fe51_sqr wrt ..imagebase
DD $L$SEH_info_x25519_fe51_sqr wrt ..imagebase
DD $L$SEH_begin_x25519_fe51_mul121666 wrt ..imagebase
DD $L$SEH_end_x25519_fe51_mul121666 wrt ..imagebase
DD $L$SEH_info_x25519_fe51_mul121666 wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_mul wrt ..imagebase
DD $L$SEH_end_x25519_fe64_mul wrt ..imagebase
DD $L$SEH_info_x25519_fe64_mul wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_sqr wrt ..imagebase
DD $L$SEH_end_x25519_fe64_sqr wrt ..imagebase
DD $L$SEH_info_x25519_fe64_sqr wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_mul121666 wrt ..imagebase
DD $L$SEH_end_x25519_fe64_mul121666 wrt ..imagebase
DD $L$SEH_info_x25519_fe64_mul121666 wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_add wrt ..imagebase
DD $L$SEH_end_x25519_fe64_add wrt ..imagebase
DD $L$SEH_info_x25519_fe64_add wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_sub wrt ..imagebase
DD $L$SEH_end_x25519_fe64_sub wrt ..imagebase
DD $L$SEH_info_x25519_fe64_sub wrt ..imagebase
DD $L$SEH_begin_x25519_fe64_tobytes wrt ..imagebase
DD $L$SEH_end_x25519_fe64_tobytes wrt ..imagebase
DD $L$SEH_info_x25519_fe64_tobytes wrt ..imagebase
section .xdata rdata align=8
ALIGN 8
$L$SEH_info_x25519_fe51_mul:
DB 9,0,0,0
DD full_handler wrt ..imagebase
DD $L$fe51_mul_body wrt ..imagebase,$L$fe51_mul_epilogue wrt ..imagebase
DD 88,0
$L$SEH_info_x25519_fe51_sqr:
DB 9,0,0,0
DD full_handler wrt ..imagebase
DD $L$fe51_sqr_body wrt ..imagebase,$L$fe51_sqr_epilogue wrt ..imagebase
DD 88,0
$L$SEH_info_x25519_fe51_mul121666:
DB 9,0,0,0
DD full_handler wrt ..imagebase
DD $L$fe51_mul121666_body wrt ..imagebase,$L$fe51_mul121666_epilogue wrt ..imagebase
DD 88,0
$L$SEH_info_x25519_fe64_mul:
DB 9,0,0,0
DD full_handler wrt ..imagebase
DD $L$fe64_mul_body wrt ..imagebase,$L$fe64_mul_epilogue wrt ..imagebase
DD 72,0
$L$SEH_info_x25519_fe64_sqr:
DB 9,0,0,0
DD full_handler wrt ..imagebase
DD $L$fe64_sqr_body wrt ..imagebase,$L$fe64_sqr_epilogue wrt ..imagebase
DD 72,0
$L$SEH_info_x25519_fe64_mul121666:
DB 9,0,0,0
DD short_handler wrt ..imagebase
DD $L$fe64_mul121666_body wrt ..imagebase,$L$fe64_mul121666_epilogue wrt ..imagebase
$L$SEH_info_x25519_fe64_add:
DB 9,0,0,0
DD short_handler wrt ..imagebase
DD $L$fe64_add_body wrt ..imagebase,$L$fe64_add_epilogue wrt ..imagebase
$L$SEH_info_x25519_fe64_sub:
DB 9,0,0,0
DD short_handler wrt ..imagebase
DD $L$fe64_sub_body wrt ..imagebase,$L$fe64_sub_epilogue wrt ..imagebase
$L$SEH_info_x25519_fe64_tobytes:
DB 9,0,0,0
DD short_handler wrt ..imagebase
DD $L$fe64_to_body wrt ..imagebase,$L$fe64_to_epilogue wrt ..imagebase
| 16.482464 | 86 | 0.674737 |
c7e92c3eb6ae13aa70a8dbf1e53352f44bb3987b | 363 | asm | Assembly | programs/oeis/161/A161823.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/161/A161823.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/161/A161823.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A161823: Among any n lines on the plane, there exists a pair at an angle not more than a(n)degrees.
; 90,60,45,36,30,26,23,20,18,17,15,14,13,12,12,11,10,10,9,9,9,8,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2
mul $0,2
add $0,4
mov $1,356
div $1,$0
add $1,1
| 40.333333 | 211 | 0.597796 |
e52032820efaf97ff58804ffb0fe33dc91bd6980 | 806 | asm | Assembly | programs/oeis/173/A173810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/173/A173810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/173/A173810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A173810: (8*10^n-71)/9 for n>0.
; 1,81,881,8881,88881,888881,8888881,88888881,888888881,8888888881,88888888881,888888888881,8888888888881,88888888888881,888888888888881,8888888888888881,88888888888888881,888888888888888881,8888888888888888881,88888888888888888881,888888888888888888881,8888888888888888888881,88888888888888888888881,888888888888888888888881,8888888888888888888888881,88888888888888888888888881,888888888888888888888888881,8888888888888888888888888881,88888888888888888888888888881,888888888888888888888888888881,8888888888888888888888888888881,88888888888888888888888888888881,888888888888888888888888888888881,8888888888888888888888888888888881,88888888888888888888888888888888881,888888888888888888888888888888888881
mov $1,10
pow $1,$0
mul $1,10
div $1,9
mul $1,8
sub $1,7
mov $0,$1
| 73.272727 | 703 | 0.895782 |
97009d4f974dce1e0f2da7f356e9136719f385b1 | 721 | asm | Assembly | oeis/275/A275864.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/275/A275864.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/275/A275864.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A275864: Floor(r*a(n-1)) + floor(r*a(n-2)), where r = 5/3, a(0) = 1, a(1) = 1.
; Submitted by Jon Maiga
; 1,1,2,4,9,21,50,118,279,661,1566,3711,8795,20843,49396,117064,277432,657492,1558206,3692830,8751726,20740926,49154420,116492243,276077771,654283356,1550601878,3674808723,8709017668,20639710651,48914547197,115923763079,274730517126,651090467008,1543034973556,3656875734272,8666517846379,20538989301084,48675845245771,115358057578091,273389838039769,647913159363099,1535504995671446,3639030258390908,8624225423437256,20438759469713606,48438308155251436,114795112708275069,272055701439210841
mov $1,1
lpb $0
sub $0,1
mul $1,4
add $1,$2
mov $2,$3
add $3,$1
mov $1,$2
div $3,3
add $1,$3
lpe
mov $0,$1
| 42.411765 | 490 | 0.769764 |
fb5218e42bf0457d32dd72418022b0edad319af8 | 2,208 | asm | Assembly | programs/oeis/169/A169964.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/169/A169964.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/169/A169964.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A169964: Numbers whose decimal expansion contains only 0's and 5's.
; 0,5,50,55,500,505,550,555,5000,5005,5050,5055,5500,5505,5550,5555,50000,50005,50050,50055,50500,50505,50550,50555,55000,55005,55050,55055,55500,55505,55550,55555,500000,500005,500050,500055,500500,500505,500550,500555,505000,505005,505050,505055,505500,505505,505550,505555,550000,550005,550050,550055,550500,550505,550550,550555,555000,555005,555050,555055,555500,555505,555550,555555,5000000,5000005,5000050,5000055,5000500,5000505,5000550,5000555,5005000,5005005,5005050,5005055,5005500,5005505,5005550,5005555,5050000,5050005,5050050,5050055,5050500,5050505,5050550,5050555,5055000,5055005,5055050,5055055,5055500,5055505,5055550,5055555,5500000,5500005,5500050,5500055,5500500,5500505,5500550,5500555,5505000,5505005,5505050,5505055,5505500,5505505,5505550,5505555,5550000,5550005,5550050,5550055,5550500,5550505,5550550,5550555,5555000,5555005,5555050,5555055,5555500,5555505,5555550,5555555,50000000,50000005,50000050,50000055,50000500,50000505,50000550,50000555,50005000,50005005,50005050,50005055,50005500,50005505,50005550,50005555,50050000,50050005,50050050,50050055,50050500,50050505,50050550,50050555,50055000,50055005,50055050,50055055,50055500,50055505,50055550,50055555,50500000,50500005,50500050,50500055,50500500,50500505,50500550,50500555,50505000,50505005,50505050,50505055,50505500,50505505,50505550,50505555,50550000,50550005,50550050,50550055,50550500,50550505,50550550,50550555,50555000,50555005,50555050,50555055,50555500,50555505,50555550,50555555,55000000,55000005,55000050,55000055,55000500,55000505,55000550,55000555,55005000,55005005,55005050,55005055,55005500,55005505,55005550,55005555,55050000,55050005,55050050,55050055,55050500,55050505,55050550,55050555,55055000,55055005,55055050,55055055,55055500,55055505,55055550,55055555,55500000,55500005,55500050,55500055,55500500,55500505,55500550,55500555,55505000,55505005,55505050,55505055,55505500,55505505,55505550,55505555,55550000,55550005,55550050,55550055,55550500,55550505,55550550,55550555,55555000,55555005
mov $1,$0
cal $0,228071 ; Write n in binary and interpret as a decimal number; a(n) is this quantity minus n.
add $0,$1
mov $1,$0
mul $1,5
| 245.333333 | 1,997 | 0.85779 |
919aed3aeafe631b5610a52a79dcf8effca10926 | 812 | asm | Assembly | oeis/192/A192880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/192/A192880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/192/A192880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A192880: Constant term in the reduction by (x^2 -> x + 1) of the polynomial p(n,x) given in Comments.
; Submitted by Christian Krause
; 1,0,3,7,34,123,495,1912,7501,29253,114342,446545,1744489,6814224,26618619,103979239,406172770,1586623227,6197795703,24210320296,94572284197,369425778645,1443080391558,5637075481729,22019992977457,86016249331488,336003520077075,1312523695947751,5127084538120546,20027825738698011,78234287116058271,305604999783295960,1193778576318275293,4663232899613040837,18215891545904542374,71156365541953625233,277956659128146853465,1085776427242165127472,4241346307919360937291,16567884559248217848583
mov $1,-1
mov $3,1
lpb $0
sub $0,1
add $1,$3
sub $3,$2
add $4,$1
add $1,$2
add $4,$2
mov $5,$4
mov $4,$2
mov $2,$3
add $4,$1
add $5,$4
mov $3,$5
lpe
mov $0,$3
| 36.909091 | 491 | 0.775862 |
d51941a4b6d3d4fac5a60fa0f921a782524ed96f | 952 | asm | Assembly | programs/oeis/121/A121200.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/121/A121200.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/121/A121200.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A121200: 2n+7^n+5^n.
; 2,14,78,474,3034,19942,133286,901682,6155442,42306750,292240894,2026154890,14085427850,98109713558,684326588502,4778079088098,33385518460258,233393453440366,1632228295176110,11417968671701306,79887633729252666,559022701241487174,3912205234374003718,27380668269035994514,191640836025341805074,1341366642887841853982,9388970453767139071326,65719812944131203967722,460023789447724580117482,3220092020328102822540790,22540271613266873566378934,157780038647718884007620930,1104450957308286033268189890,7731110135029271458951547598,54117538114561246343031926542,378821602648710455053078954138,2651745397774881838630830022298,18562188680593716136712196874406,129935175245003729288467311714150,909545499119264686676680849967346,6366814855856045715023814289614706,44567685801098284546601941726521214,311973709658217814533389800581741758
mov $1,$0
seq $1,81188 ; 6th binomial transform of (1,0,1,0,1,.....), A059841.
add $0,$1
mul $0,2
| 119 | 829 | 0.89916 |
e491edcd36f1b9d3ce42d0cf9060e67fe7f58b4b | 6,154 | asm | Assembly | Fraction/Fraction.asm | Yaboi-Gengarboi/Assembly-Language | a85853c0bcd5cf0155fc711408f349eff7bb3c3b | [
"Unlicense"
] | null | null | null | Fraction/Fraction.asm | Yaboi-Gengarboi/Assembly-Language | a85853c0bcd5cf0155fc711408f349eff7bb3c3b | [
"Unlicense"
] | null | null | null | Fraction/Fraction.asm | Yaboi-Gengarboi/Assembly-Language | a85853c0bcd5cf0155fc711408f349eff7bb3c3b | [
"Unlicense"
] | null | null | null | ; Fraction
; Fraction.asm
; Justyn Durnford
; Created on 2020-10-05
; Last updated on 2021-02-27
; Assembly file for the Fraction class.
section .text
bits 64
extern malloc
extern free
; PARAMATERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
global set_numer
set_numer:
mov QWORD[rcx + 0], rdx; fr[0] = rdx
ret; RETURN
; PARAMATERS:
; - rcx = int64_t* fr
; - rdx = int64_t denom
global set_denom
set_denom:
mov QWORD[rcx + 8], rdx; fr[1] = rdx
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
; - r8 = int64_t denom
global set_fr
set_fr:
mov QWORD[rcx + 0], rdx; fr[0] = numer
mov QWORD[rcx + 8], r8; fr[1] = denom
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = uint64_t n
global pow_fr
pow_fr:
cmp rdx, 0; n == 0 ?
je N_IS_0; IF TRUE, JUMP TO LINE 75
cmp rdx, 1; n == 1 ?
je END; IF TRUE, JUMP TO LINE 80
mov r8, QWORD[rcx + 0]; r8 = fr[0]
mov r9, r8; r9 = r8 = fr[0]
mov r10, QWORD[rcx + 8]; r10 = fr[1]
mov r11, r10; r11 = r10 = fr[2]
LOOP:
imul r8d, r9d; r8d *= r9d
imul r10d, r11d; r10d *= r11d
sub rdx, 1; --n
cmp rdx, 1; n > 1 ?
jg LOOP; IF TRUE, JUMP TO LINE 62
mov QWORD[rcx + 0], r8; fr[0] = r8
mov QWORD[rcx + 8], r10; fr[1] = r10
jmp END; JUMP TO LINE 80
N_IS_0:
mov QWORD[rcx + 0], 1; fr[0] = 1
mov QWORD[rcx + 8], 1; fr[1] = 1
END:
ret; RETURN
; PARAMATERS:
; - rcx = int64_t numer
; - rdx = int64_t denom
global evaluate_fr
evaluate_fr:
cvtsi2sd xmm0, rcx; xmm0 = (double)rcx = (double)numer
cvtsi2sd xmm1, rdx; xmm1 = (double)rdx = (double)denom
divsd xmm0, xmm1; xmm0 = rcx / rdx
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
; - r8 = int64_t denom
global add_fr
add_fr:
cmp QWORD[rcx + 8], r8; fr[1] != denom ?
jne DENOM_NOT_EQUAL_01; IF TRUE, JUMP TO LINE 108
add QWORD[rcx + 0], rdx; fr[0] += numer
ret; RETURN
DENOM_NOT_EQUAL_01:
mov r10, QWORD[rcx + 0]; r10 = fr[0]
mov r11, QWORD[rcx + 8]; r11 = fr[1]
push r10; Save r10 Stack: { fr[0] }
push r11; Save r11 Stack: { fr[0], fr[1] }
imul r10, r8; r10 *= denom Stack: { fr[0], fr[1] }
imul r11, r8; r11 *= denom Stack: { fr[0], fr[1] }
mov QWORD[rcx + 0], r10; fr[0] = r10 Stack: { fr[0], fr[1] }
mov QWORD[rcx + 8], r11; fr[1] = r11d Stack: { fr[0], fr[1] }
pop r11; Retrieve r11 Stack: { fr[0] }
pop r10; Retrieve r10 Stack: {}
imul rdx, r11; numer *= fr[1]
imul r8, r11; denom *= fr[1]
add QWORD[rcx + 0], rdx; fr[0] += rdx
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
; - r8 = int64_t denom
global sub_fr
sub_fr:
cmp QWORD[rcx + 8], r8; fr[1] != denom ?
jne DENOM_NOT_EQUAL_02; IF TRUE, JUMP TO LINE 145
sub QWORD[rcx + 0], rdx; fr[0] -= numer
ret; RETURN
DENOM_NOT_EQUAL_02:
mov r10, QWORD[rcx + 0]; r10 = fr[0]
mov r11, QWORD[rcx + 8]; r11 = fr[1]
push r10; Save r10 Stack: { fr[0] }
push r11; Save r11 Stack: { fr[0], fr[1] }
imul r10, r8; r10 *= denom Stack: { fr[0], fr[1] }
imul r11, r8; r11 *= denom Stack: { fr[0], fr[1] }
mov QWORD[rcx + 0], r10; fr[0] = r10 Stack: { fr[0], fr[1] }
mov QWORD[rcx + 8], r11; fr[1] = r11 Stack: { fr[0], fr[1] }
pop r11; Retrieve r11 Stack: { fr[0] }
pop r10; Retrieve r10 Stack: {}
imul rdx, r11; numer *= fr[1]
imul r8, r11; denom *= fr[1]
sub QWORD[rcx + 0], rdx; fr[0] -= rdx
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
; - r8 = int64_t denom
global mul_fr
mul_fr:
mov r10, QWORD[rcx + 0]; r10 = fr[0]
mov r11, QWORD[rcx + 8]; r11 = fr[1]
imul r10, rdx; r10 *= numer
imul r11, r8; r11 *= denom
mov QWORD[rcx + 0], r10; f1[0] = r10
mov QWORD[rcx + 8], r11; f1[1] = r911
ret; RETURN
; PARAMETERS:
; - rcx = int64_t* fr
; - rdx = int64_t numer
; - r8 = int64_t denom
global div_fr
div_fr:
mov r10, QWORD[rcx + 0]; r10 = fr[0]
mov r11, QWORD[rcx + 8]; r11 = fr[1]
imul r10, r8; r10 *= denom
imul r11, rdx; r11 *= numer
mov QWORD[rcx + 0], r10; f1[0] = r10
mov QWORD[rcx + 8], r11; f1[1] = r11
ret; RETURN | 30.315271 | 102 | 0.390965 |
5de5468b9b46a82edd9ca20579dcd707b0bf0376 | 43,474 | asm | Assembly | t.asm | tzulang/xv6_4 | 41ad7ba1ae112e6d99a022e2c6989b69d0789cc0 | [
"MIT-0"
] | null | null | null | t.asm | tzulang/xv6_4 | 41ad7ba1ae112e6d99a022e2c6989b69d0789cc0 | [
"MIT-0"
] | null | null | null | t.asm | tzulang/xv6_4 | 41ad7ba1ae112e6d99a022e2c6989b69d0789cc0 | [
"MIT-0"
] | null | null | null |
_t: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "user.h"
#include "fcntl.h"
int main(int argc, char **argv){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: 83 e4 f0 and $0xfffffff0,%esp
7: 83 ec 40 sub $0x40,%esp
if (argc >=2){
a: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
e: 0f 8e 4e 01 00 00 jle 162 <main+0x162>
int fd1= open("README", O_RDONLY );
14: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
1b: 00
1c: c7 04 24 30 09 00 00 movl $0x930,(%esp)
23: e8 fb 03 00 00 call 423 <open>
28: 89 44 24 3c mov %eax,0x3c(%esp)
int fd2= open("t", O_WRONLY );
2c: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
33: 00
34: c7 04 24 37 09 00 00 movl $0x937,(%esp)
3b: e8 e3 03 00 00 call 423 <open>
40: 89 44 24 38 mov %eax,0x38(%esp)
int fd3= open("test", O_CREATE );
44: c7 44 24 04 00 02 00 movl $0x200,0x4(%esp)
4b: 00
4c: c7 04 24 39 09 00 00 movl $0x939,(%esp)
53: e8 cb 03 00 00 call 423 <open>
58: 89 44 24 34 mov %eax,0x34(%esp)
int pip[2];
if (pipe(pip)<0 ){
5c: 8d 44 24 28 lea 0x28(%esp),%eax
60: 89 04 24 mov %eax,(%esp)
63: e8 8b 03 00 00 call 3f3 <pipe>
68: 85 c0 test %eax,%eax
6a: 79 19 jns 85 <main+0x85>
printf(1,"pipe exit \n");
6c: c7 44 24 04 3e 09 00 movl $0x93e,0x4(%esp)
73: 00
74: c7 04 24 01 00 00 00 movl $0x1,(%esp)
7b: e8 e3 04 00 00 call 563 <printf>
exit();
80: e8 5e 03 00 00 call 3e3 <exit>
}
int pid= fork();
85: e8 51 03 00 00 call 3db <fork>
8a: 89 44 24 30 mov %eax,0x30(%esp)
if (pid<0 ){
8e: 83 7c 24 30 00 cmpl $0x0,0x30(%esp)
93: 79 19 jns ae <main+0xae>
printf(1, "fork exit \n");
95: c7 44 24 04 4a 09 00 movl $0x94a,0x4(%esp)
9c: 00
9d: c7 04 24 01 00 00 00 movl $0x1,(%esp)
a4: e8 ba 04 00 00 call 563 <printf>
exit();
a9: e8 35 03 00 00 call 3e3 <exit>
}
if (pid==0){
ae: 83 7c 24 30 00 cmpl $0x0,0x30(%esp)
b3: 75 4b jne 100 <main+0x100>
close(pip[1]);
b5: 8b 44 24 2c mov 0x2c(%esp),%eax
b9: 89 04 24 mov %eax,(%esp)
bc: e8 4a 03 00 00 call 40b <close>
printf(1,"\n child %d starts Endless loop with open fds %d %d %d %d \n\n",getpid() ,fd1, fd2,fd3, pip[0]);
c1: 8b 5c 24 28 mov 0x28(%esp),%ebx
c5: e8 99 03 00 00 call 463 <getpid>
ca: 89 5c 24 18 mov %ebx,0x18(%esp)
ce: 8b 54 24 34 mov 0x34(%esp),%edx
d2: 89 54 24 14 mov %edx,0x14(%esp)
d6: 8b 54 24 38 mov 0x38(%esp),%edx
da: 89 54 24 10 mov %edx,0x10(%esp)
de: 8b 54 24 3c mov 0x3c(%esp),%edx
e2: 89 54 24 0c mov %edx,0xc(%esp)
e6: 89 44 24 08 mov %eax,0x8(%esp)
ea: c7 44 24 04 58 09 00 movl $0x958,0x4(%esp)
f1: 00
f2: c7 04 24 01 00 00 00 movl $0x1,(%esp)
f9: e8 65 04 00 00 call 563 <printf>
for(;;);
fe: eb fe jmp fe <main+0xfe>
} else {
close(pip[0]);
100: 8b 44 24 28 mov 0x28(%esp),%eax
104: 89 04 24 mov %eax,(%esp)
107: e8 ff 02 00 00 call 40b <close>
printf(1,"\n father %d waits for child with open fds %d %d %d %d \n\n", getpid(), fd1, fd2,fd3, pip[1]);
10c: 8b 5c 24 2c mov 0x2c(%esp),%ebx
110: e8 4e 03 00 00 call 463 <getpid>
115: 89 5c 24 18 mov %ebx,0x18(%esp)
119: 8b 54 24 34 mov 0x34(%esp),%edx
11d: 89 54 24 14 mov %edx,0x14(%esp)
121: 8b 54 24 38 mov 0x38(%esp),%edx
125: 89 54 24 10 mov %edx,0x10(%esp)
129: 8b 54 24 3c mov 0x3c(%esp),%edx
12d: 89 54 24 0c mov %edx,0xc(%esp)
131: 89 44 24 08 mov %eax,0x8(%esp)
135: c7 44 24 04 98 09 00 movl $0x998,0x4(%esp)
13c: 00
13d: c7 04 24 01 00 00 00 movl $0x1,(%esp)
144: e8 1a 04 00 00 call 563 <printf>
wait();
149: e8 9d 02 00 00 call 3eb <wait>
printf(1,"father end waiting \n");
14e: c7 44 24 04 d3 09 00 movl $0x9d3,0x4(%esp)
155: 00
156: c7 04 24 01 00 00 00 movl $0x1,(%esp)
15d: e8 01 04 00 00 call 563 <printf>
}
}
printf(1, " exit here \n");
162: c7 44 24 04 e8 09 00 movl $0x9e8,0x4(%esp)
169: 00
16a: c7 04 24 01 00 00 00 movl $0x1,(%esp)
171: e8 ed 03 00 00 call 563 <printf>
exit();
176: e8 68 02 00 00 call 3e3 <exit>
0000017b <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
17b: 55 push %ebp
17c: 89 e5 mov %esp,%ebp
17e: 57 push %edi
17f: 53 push %ebx
asm volatile("cld; rep stosb" :
180: 8b 4d 08 mov 0x8(%ebp),%ecx
183: 8b 55 10 mov 0x10(%ebp),%edx
186: 8b 45 0c mov 0xc(%ebp),%eax
189: 89 cb mov %ecx,%ebx
18b: 89 df mov %ebx,%edi
18d: 89 d1 mov %edx,%ecx
18f: fc cld
190: f3 aa rep stos %al,%es:(%edi)
192: 89 ca mov %ecx,%edx
194: 89 fb mov %edi,%ebx
196: 89 5d 08 mov %ebx,0x8(%ebp)
199: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
19c: 5b pop %ebx
19d: 5f pop %edi
19e: 5d pop %ebp
19f: c3 ret
000001a0 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
1a0: 55 push %ebp
1a1: 89 e5 mov %esp,%ebp
1a3: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
1a6: 8b 45 08 mov 0x8(%ebp),%eax
1a9: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
1ac: 90 nop
1ad: 8b 45 08 mov 0x8(%ebp),%eax
1b0: 8d 50 01 lea 0x1(%eax),%edx
1b3: 89 55 08 mov %edx,0x8(%ebp)
1b6: 8b 55 0c mov 0xc(%ebp),%edx
1b9: 8d 4a 01 lea 0x1(%edx),%ecx
1bc: 89 4d 0c mov %ecx,0xc(%ebp)
1bf: 0f b6 12 movzbl (%edx),%edx
1c2: 88 10 mov %dl,(%eax)
1c4: 0f b6 00 movzbl (%eax),%eax
1c7: 84 c0 test %al,%al
1c9: 75 e2 jne 1ad <strcpy+0xd>
;
return os;
1cb: 8b 45 fc mov -0x4(%ebp),%eax
}
1ce: c9 leave
1cf: c3 ret
000001d0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
1d0: 55 push %ebp
1d1: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
1d3: eb 08 jmp 1dd <strcmp+0xd>
p++, q++;
1d5: 83 45 08 01 addl $0x1,0x8(%ebp)
1d9: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
1dd: 8b 45 08 mov 0x8(%ebp),%eax
1e0: 0f b6 00 movzbl (%eax),%eax
1e3: 84 c0 test %al,%al
1e5: 74 10 je 1f7 <strcmp+0x27>
1e7: 8b 45 08 mov 0x8(%ebp),%eax
1ea: 0f b6 10 movzbl (%eax),%edx
1ed: 8b 45 0c mov 0xc(%ebp),%eax
1f0: 0f b6 00 movzbl (%eax),%eax
1f3: 38 c2 cmp %al,%dl
1f5: 74 de je 1d5 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
1f7: 8b 45 08 mov 0x8(%ebp),%eax
1fa: 0f b6 00 movzbl (%eax),%eax
1fd: 0f b6 d0 movzbl %al,%edx
200: 8b 45 0c mov 0xc(%ebp),%eax
203: 0f b6 00 movzbl (%eax),%eax
206: 0f b6 c0 movzbl %al,%eax
209: 29 c2 sub %eax,%edx
20b: 89 d0 mov %edx,%eax
}
20d: 5d pop %ebp
20e: c3 ret
0000020f <strlen>:
uint
strlen(char *s)
{
20f: 55 push %ebp
210: 89 e5 mov %esp,%ebp
212: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
215: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
21c: eb 04 jmp 222 <strlen+0x13>
21e: 83 45 fc 01 addl $0x1,-0x4(%ebp)
222: 8b 55 fc mov -0x4(%ebp),%edx
225: 8b 45 08 mov 0x8(%ebp),%eax
228: 01 d0 add %edx,%eax
22a: 0f b6 00 movzbl (%eax),%eax
22d: 84 c0 test %al,%al
22f: 75 ed jne 21e <strlen+0xf>
;
return n;
231: 8b 45 fc mov -0x4(%ebp),%eax
}
234: c9 leave
235: c3 ret
00000236 <memset>:
void*
memset(void *dst, int c, uint n)
{
236: 55 push %ebp
237: 89 e5 mov %esp,%ebp
239: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
23c: 8b 45 10 mov 0x10(%ebp),%eax
23f: 89 44 24 08 mov %eax,0x8(%esp)
243: 8b 45 0c mov 0xc(%ebp),%eax
246: 89 44 24 04 mov %eax,0x4(%esp)
24a: 8b 45 08 mov 0x8(%ebp),%eax
24d: 89 04 24 mov %eax,(%esp)
250: e8 26 ff ff ff call 17b <stosb>
return dst;
255: 8b 45 08 mov 0x8(%ebp),%eax
}
258: c9 leave
259: c3 ret
0000025a <strchr>:
char*
strchr(const char *s, char c)
{
25a: 55 push %ebp
25b: 89 e5 mov %esp,%ebp
25d: 83 ec 04 sub $0x4,%esp
260: 8b 45 0c mov 0xc(%ebp),%eax
263: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
266: eb 14 jmp 27c <strchr+0x22>
if(*s == c)
268: 8b 45 08 mov 0x8(%ebp),%eax
26b: 0f b6 00 movzbl (%eax),%eax
26e: 3a 45 fc cmp -0x4(%ebp),%al
271: 75 05 jne 278 <strchr+0x1e>
return (char*)s;
273: 8b 45 08 mov 0x8(%ebp),%eax
276: eb 13 jmp 28b <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
278: 83 45 08 01 addl $0x1,0x8(%ebp)
27c: 8b 45 08 mov 0x8(%ebp),%eax
27f: 0f b6 00 movzbl (%eax),%eax
282: 84 c0 test %al,%al
284: 75 e2 jne 268 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
286: b8 00 00 00 00 mov $0x0,%eax
}
28b: c9 leave
28c: c3 ret
0000028d <gets>:
char*
gets(char *buf, int max)
{
28d: 55 push %ebp
28e: 89 e5 mov %esp,%ebp
290: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
293: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
29a: eb 4c jmp 2e8 <gets+0x5b>
cc = read(0, &c, 1);
29c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
2a3: 00
2a4: 8d 45 ef lea -0x11(%ebp),%eax
2a7: 89 44 24 04 mov %eax,0x4(%esp)
2ab: c7 04 24 00 00 00 00 movl $0x0,(%esp)
2b2: e8 44 01 00 00 call 3fb <read>
2b7: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
2ba: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
2be: 7f 02 jg 2c2 <gets+0x35>
break;
2c0: eb 31 jmp 2f3 <gets+0x66>
buf[i++] = c;
2c2: 8b 45 f4 mov -0xc(%ebp),%eax
2c5: 8d 50 01 lea 0x1(%eax),%edx
2c8: 89 55 f4 mov %edx,-0xc(%ebp)
2cb: 89 c2 mov %eax,%edx
2cd: 8b 45 08 mov 0x8(%ebp),%eax
2d0: 01 c2 add %eax,%edx
2d2: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2d6: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
2d8: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2dc: 3c 0a cmp $0xa,%al
2de: 74 13 je 2f3 <gets+0x66>
2e0: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2e4: 3c 0d cmp $0xd,%al
2e6: 74 0b je 2f3 <gets+0x66>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2e8: 8b 45 f4 mov -0xc(%ebp),%eax
2eb: 83 c0 01 add $0x1,%eax
2ee: 3b 45 0c cmp 0xc(%ebp),%eax
2f1: 7c a9 jl 29c <gets+0xf>
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
2f3: 8b 55 f4 mov -0xc(%ebp),%edx
2f6: 8b 45 08 mov 0x8(%ebp),%eax
2f9: 01 d0 add %edx,%eax
2fb: c6 00 00 movb $0x0,(%eax)
return buf;
2fe: 8b 45 08 mov 0x8(%ebp),%eax
}
301: c9 leave
302: c3 ret
00000303 <stat>:
int
stat(char *n, struct stat *st)
{
303: 55 push %ebp
304: 89 e5 mov %esp,%ebp
306: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
309: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
310: 00
311: 8b 45 08 mov 0x8(%ebp),%eax
314: 89 04 24 mov %eax,(%esp)
317: e8 07 01 00 00 call 423 <open>
31c: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
31f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
323: 79 07 jns 32c <stat+0x29>
return -1;
325: b8 ff ff ff ff mov $0xffffffff,%eax
32a: eb 23 jmp 34f <stat+0x4c>
r = fstat(fd, st);
32c: 8b 45 0c mov 0xc(%ebp),%eax
32f: 89 44 24 04 mov %eax,0x4(%esp)
333: 8b 45 f4 mov -0xc(%ebp),%eax
336: 89 04 24 mov %eax,(%esp)
339: e8 fd 00 00 00 call 43b <fstat>
33e: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
341: 8b 45 f4 mov -0xc(%ebp),%eax
344: 89 04 24 mov %eax,(%esp)
347: e8 bf 00 00 00 call 40b <close>
return r;
34c: 8b 45 f0 mov -0x10(%ebp),%eax
}
34f: c9 leave
350: c3 ret
00000351 <atoi>:
int
atoi(const char *s)
{
351: 55 push %ebp
352: 89 e5 mov %esp,%ebp
354: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
357: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
35e: eb 25 jmp 385 <atoi+0x34>
n = n*10 + *s++ - '0';
360: 8b 55 fc mov -0x4(%ebp),%edx
363: 89 d0 mov %edx,%eax
365: c1 e0 02 shl $0x2,%eax
368: 01 d0 add %edx,%eax
36a: 01 c0 add %eax,%eax
36c: 89 c1 mov %eax,%ecx
36e: 8b 45 08 mov 0x8(%ebp),%eax
371: 8d 50 01 lea 0x1(%eax),%edx
374: 89 55 08 mov %edx,0x8(%ebp)
377: 0f b6 00 movzbl (%eax),%eax
37a: 0f be c0 movsbl %al,%eax
37d: 01 c8 add %ecx,%eax
37f: 83 e8 30 sub $0x30,%eax
382: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
385: 8b 45 08 mov 0x8(%ebp),%eax
388: 0f b6 00 movzbl (%eax),%eax
38b: 3c 2f cmp $0x2f,%al
38d: 7e 0a jle 399 <atoi+0x48>
38f: 8b 45 08 mov 0x8(%ebp),%eax
392: 0f b6 00 movzbl (%eax),%eax
395: 3c 39 cmp $0x39,%al
397: 7e c7 jle 360 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
399: 8b 45 fc mov -0x4(%ebp),%eax
}
39c: c9 leave
39d: c3 ret
0000039e <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
39e: 55 push %ebp
39f: 89 e5 mov %esp,%ebp
3a1: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
3a4: 8b 45 08 mov 0x8(%ebp),%eax
3a7: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
3aa: 8b 45 0c mov 0xc(%ebp),%eax
3ad: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
3b0: eb 17 jmp 3c9 <memmove+0x2b>
*dst++ = *src++;
3b2: 8b 45 fc mov -0x4(%ebp),%eax
3b5: 8d 50 01 lea 0x1(%eax),%edx
3b8: 89 55 fc mov %edx,-0x4(%ebp)
3bb: 8b 55 f8 mov -0x8(%ebp),%edx
3be: 8d 4a 01 lea 0x1(%edx),%ecx
3c1: 89 4d f8 mov %ecx,-0x8(%ebp)
3c4: 0f b6 12 movzbl (%edx),%edx
3c7: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
3c9: 8b 45 10 mov 0x10(%ebp),%eax
3cc: 8d 50 ff lea -0x1(%eax),%edx
3cf: 89 55 10 mov %edx,0x10(%ebp)
3d2: 85 c0 test %eax,%eax
3d4: 7f dc jg 3b2 <memmove+0x14>
*dst++ = *src++;
return vdst;
3d6: 8b 45 08 mov 0x8(%ebp),%eax
}
3d9: c9 leave
3da: c3 ret
000003db <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3db: b8 01 00 00 00 mov $0x1,%eax
3e0: cd 40 int $0x40
3e2: c3 ret
000003e3 <exit>:
SYSCALL(exit)
3e3: b8 02 00 00 00 mov $0x2,%eax
3e8: cd 40 int $0x40
3ea: c3 ret
000003eb <wait>:
SYSCALL(wait)
3eb: b8 03 00 00 00 mov $0x3,%eax
3f0: cd 40 int $0x40
3f2: c3 ret
000003f3 <pipe>:
SYSCALL(pipe)
3f3: b8 04 00 00 00 mov $0x4,%eax
3f8: cd 40 int $0x40
3fa: c3 ret
000003fb <read>:
SYSCALL(read)
3fb: b8 05 00 00 00 mov $0x5,%eax
400: cd 40 int $0x40
402: c3 ret
00000403 <write>:
SYSCALL(write)
403: b8 10 00 00 00 mov $0x10,%eax
408: cd 40 int $0x40
40a: c3 ret
0000040b <close>:
SYSCALL(close)
40b: b8 15 00 00 00 mov $0x15,%eax
410: cd 40 int $0x40
412: c3 ret
00000413 <kill>:
SYSCALL(kill)
413: b8 06 00 00 00 mov $0x6,%eax
418: cd 40 int $0x40
41a: c3 ret
0000041b <exec>:
SYSCALL(exec)
41b: b8 07 00 00 00 mov $0x7,%eax
420: cd 40 int $0x40
422: c3 ret
00000423 <open>:
SYSCALL(open)
423: b8 0f 00 00 00 mov $0xf,%eax
428: cd 40 int $0x40
42a: c3 ret
0000042b <mknod>:
SYSCALL(mknod)
42b: b8 11 00 00 00 mov $0x11,%eax
430: cd 40 int $0x40
432: c3 ret
00000433 <unlink>:
SYSCALL(unlink)
433: b8 12 00 00 00 mov $0x12,%eax
438: cd 40 int $0x40
43a: c3 ret
0000043b <fstat>:
SYSCALL(fstat)
43b: b8 08 00 00 00 mov $0x8,%eax
440: cd 40 int $0x40
442: c3 ret
00000443 <link>:
SYSCALL(link)
443: b8 13 00 00 00 mov $0x13,%eax
448: cd 40 int $0x40
44a: c3 ret
0000044b <mkdir>:
SYSCALL(mkdir)
44b: b8 14 00 00 00 mov $0x14,%eax
450: cd 40 int $0x40
452: c3 ret
00000453 <chdir>:
SYSCALL(chdir)
453: b8 09 00 00 00 mov $0x9,%eax
458: cd 40 int $0x40
45a: c3 ret
0000045b <dup>:
SYSCALL(dup)
45b: b8 0a 00 00 00 mov $0xa,%eax
460: cd 40 int $0x40
462: c3 ret
00000463 <getpid>:
SYSCALL(getpid)
463: b8 0b 00 00 00 mov $0xb,%eax
468: cd 40 int $0x40
46a: c3 ret
0000046b <sbrk>:
SYSCALL(sbrk)
46b: b8 0c 00 00 00 mov $0xc,%eax
470: cd 40 int $0x40
472: c3 ret
00000473 <sleep>:
SYSCALL(sleep)
473: b8 0d 00 00 00 mov $0xd,%eax
478: cd 40 int $0x40
47a: c3 ret
0000047b <uptime>:
SYSCALL(uptime)
47b: b8 0e 00 00 00 mov $0xe,%eax
480: cd 40 int $0x40
482: c3 ret
00000483 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
483: 55 push %ebp
484: 89 e5 mov %esp,%ebp
486: 83 ec 18 sub $0x18,%esp
489: 8b 45 0c mov 0xc(%ebp),%eax
48c: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
48f: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
496: 00
497: 8d 45 f4 lea -0xc(%ebp),%eax
49a: 89 44 24 04 mov %eax,0x4(%esp)
49e: 8b 45 08 mov 0x8(%ebp),%eax
4a1: 89 04 24 mov %eax,(%esp)
4a4: e8 5a ff ff ff call 403 <write>
}
4a9: c9 leave
4aa: c3 ret
000004ab <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
4ab: 55 push %ebp
4ac: 89 e5 mov %esp,%ebp
4ae: 56 push %esi
4af: 53 push %ebx
4b0: 83 ec 30 sub $0x30,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
4b3: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
4ba: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
4be: 74 17 je 4d7 <printint+0x2c>
4c0: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
4c4: 79 11 jns 4d7 <printint+0x2c>
neg = 1;
4c6: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
4cd: 8b 45 0c mov 0xc(%ebp),%eax
4d0: f7 d8 neg %eax
4d2: 89 45 ec mov %eax,-0x14(%ebp)
4d5: eb 06 jmp 4dd <printint+0x32>
} else {
x = xx;
4d7: 8b 45 0c mov 0xc(%ebp),%eax
4da: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
4dd: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
4e4: 8b 4d f4 mov -0xc(%ebp),%ecx
4e7: 8d 41 01 lea 0x1(%ecx),%eax
4ea: 89 45 f4 mov %eax,-0xc(%ebp)
4ed: 8b 5d 10 mov 0x10(%ebp),%ebx
4f0: 8b 45 ec mov -0x14(%ebp),%eax
4f3: ba 00 00 00 00 mov $0x0,%edx
4f8: f7 f3 div %ebx
4fa: 89 d0 mov %edx,%eax
4fc: 0f b6 80 40 0c 00 00 movzbl 0xc40(%eax),%eax
503: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
507: 8b 75 10 mov 0x10(%ebp),%esi
50a: 8b 45 ec mov -0x14(%ebp),%eax
50d: ba 00 00 00 00 mov $0x0,%edx
512: f7 f6 div %esi
514: 89 45 ec mov %eax,-0x14(%ebp)
517: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
51b: 75 c7 jne 4e4 <printint+0x39>
if(neg)
51d: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
521: 74 10 je 533 <printint+0x88>
buf[i++] = '-';
523: 8b 45 f4 mov -0xc(%ebp),%eax
526: 8d 50 01 lea 0x1(%eax),%edx
529: 89 55 f4 mov %edx,-0xc(%ebp)
52c: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
531: eb 1f jmp 552 <printint+0xa7>
533: eb 1d jmp 552 <printint+0xa7>
putc(fd, buf[i]);
535: 8d 55 dc lea -0x24(%ebp),%edx
538: 8b 45 f4 mov -0xc(%ebp),%eax
53b: 01 d0 add %edx,%eax
53d: 0f b6 00 movzbl (%eax),%eax
540: 0f be c0 movsbl %al,%eax
543: 89 44 24 04 mov %eax,0x4(%esp)
547: 8b 45 08 mov 0x8(%ebp),%eax
54a: 89 04 24 mov %eax,(%esp)
54d: e8 31 ff ff ff call 483 <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
552: 83 6d f4 01 subl $0x1,-0xc(%ebp)
556: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
55a: 79 d9 jns 535 <printint+0x8a>
putc(fd, buf[i]);
}
55c: 83 c4 30 add $0x30,%esp
55f: 5b pop %ebx
560: 5e pop %esi
561: 5d pop %ebp
562: c3 ret
00000563 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
563: 55 push %ebp
564: 89 e5 mov %esp,%ebp
566: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
569: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
570: 8d 45 0c lea 0xc(%ebp),%eax
573: 83 c0 04 add $0x4,%eax
576: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
579: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
580: e9 7c 01 00 00 jmp 701 <printf+0x19e>
c = fmt[i] & 0xff;
585: 8b 55 0c mov 0xc(%ebp),%edx
588: 8b 45 f0 mov -0x10(%ebp),%eax
58b: 01 d0 add %edx,%eax
58d: 0f b6 00 movzbl (%eax),%eax
590: 0f be c0 movsbl %al,%eax
593: 25 ff 00 00 00 and $0xff,%eax
598: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
59b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
59f: 75 2c jne 5cd <printf+0x6a>
if(c == '%'){
5a1: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5a5: 75 0c jne 5b3 <printf+0x50>
state = '%';
5a7: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
5ae: e9 4a 01 00 00 jmp 6fd <printf+0x19a>
} else {
putc(fd, c);
5b3: 8b 45 e4 mov -0x1c(%ebp),%eax
5b6: 0f be c0 movsbl %al,%eax
5b9: 89 44 24 04 mov %eax,0x4(%esp)
5bd: 8b 45 08 mov 0x8(%ebp),%eax
5c0: 89 04 24 mov %eax,(%esp)
5c3: e8 bb fe ff ff call 483 <putc>
5c8: e9 30 01 00 00 jmp 6fd <printf+0x19a>
}
} else if(state == '%'){
5cd: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
5d1: 0f 85 26 01 00 00 jne 6fd <printf+0x19a>
if(c == 'd'){
5d7: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
5db: 75 2d jne 60a <printf+0xa7>
printint(fd, *ap, 10, 1);
5dd: 8b 45 e8 mov -0x18(%ebp),%eax
5e0: 8b 00 mov (%eax),%eax
5e2: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
5e9: 00
5ea: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
5f1: 00
5f2: 89 44 24 04 mov %eax,0x4(%esp)
5f6: 8b 45 08 mov 0x8(%ebp),%eax
5f9: 89 04 24 mov %eax,(%esp)
5fc: e8 aa fe ff ff call 4ab <printint>
ap++;
601: 83 45 e8 04 addl $0x4,-0x18(%ebp)
605: e9 ec 00 00 00 jmp 6f6 <printf+0x193>
} else if(c == 'x' || c == 'p'){
60a: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
60e: 74 06 je 616 <printf+0xb3>
610: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
614: 75 2d jne 643 <printf+0xe0>
printint(fd, *ap, 16, 0);
616: 8b 45 e8 mov -0x18(%ebp),%eax
619: 8b 00 mov (%eax),%eax
61b: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
622: 00
623: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
62a: 00
62b: 89 44 24 04 mov %eax,0x4(%esp)
62f: 8b 45 08 mov 0x8(%ebp),%eax
632: 89 04 24 mov %eax,(%esp)
635: e8 71 fe ff ff call 4ab <printint>
ap++;
63a: 83 45 e8 04 addl $0x4,-0x18(%ebp)
63e: e9 b3 00 00 00 jmp 6f6 <printf+0x193>
} else if(c == 's'){
643: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
647: 75 45 jne 68e <printf+0x12b>
s = (char*)*ap;
649: 8b 45 e8 mov -0x18(%ebp),%eax
64c: 8b 00 mov (%eax),%eax
64e: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
651: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
655: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
659: 75 09 jne 664 <printf+0x101>
s = "(null)";
65b: c7 45 f4 f5 09 00 00 movl $0x9f5,-0xc(%ebp)
while(*s != 0){
662: eb 1e jmp 682 <printf+0x11f>
664: eb 1c jmp 682 <printf+0x11f>
putc(fd, *s);
666: 8b 45 f4 mov -0xc(%ebp),%eax
669: 0f b6 00 movzbl (%eax),%eax
66c: 0f be c0 movsbl %al,%eax
66f: 89 44 24 04 mov %eax,0x4(%esp)
673: 8b 45 08 mov 0x8(%ebp),%eax
676: 89 04 24 mov %eax,(%esp)
679: e8 05 fe ff ff call 483 <putc>
s++;
67e: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
682: 8b 45 f4 mov -0xc(%ebp),%eax
685: 0f b6 00 movzbl (%eax),%eax
688: 84 c0 test %al,%al
68a: 75 da jne 666 <printf+0x103>
68c: eb 68 jmp 6f6 <printf+0x193>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
68e: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
692: 75 1d jne 6b1 <printf+0x14e>
putc(fd, *ap);
694: 8b 45 e8 mov -0x18(%ebp),%eax
697: 8b 00 mov (%eax),%eax
699: 0f be c0 movsbl %al,%eax
69c: 89 44 24 04 mov %eax,0x4(%esp)
6a0: 8b 45 08 mov 0x8(%ebp),%eax
6a3: 89 04 24 mov %eax,(%esp)
6a6: e8 d8 fd ff ff call 483 <putc>
ap++;
6ab: 83 45 e8 04 addl $0x4,-0x18(%ebp)
6af: eb 45 jmp 6f6 <printf+0x193>
} else if(c == '%'){
6b1: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
6b5: 75 17 jne 6ce <printf+0x16b>
putc(fd, c);
6b7: 8b 45 e4 mov -0x1c(%ebp),%eax
6ba: 0f be c0 movsbl %al,%eax
6bd: 89 44 24 04 mov %eax,0x4(%esp)
6c1: 8b 45 08 mov 0x8(%ebp),%eax
6c4: 89 04 24 mov %eax,(%esp)
6c7: e8 b7 fd ff ff call 483 <putc>
6cc: eb 28 jmp 6f6 <printf+0x193>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
6ce: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
6d5: 00
6d6: 8b 45 08 mov 0x8(%ebp),%eax
6d9: 89 04 24 mov %eax,(%esp)
6dc: e8 a2 fd ff ff call 483 <putc>
putc(fd, c);
6e1: 8b 45 e4 mov -0x1c(%ebp),%eax
6e4: 0f be c0 movsbl %al,%eax
6e7: 89 44 24 04 mov %eax,0x4(%esp)
6eb: 8b 45 08 mov 0x8(%ebp),%eax
6ee: 89 04 24 mov %eax,(%esp)
6f1: e8 8d fd ff ff call 483 <putc>
}
state = 0;
6f6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
6fd: 83 45 f0 01 addl $0x1,-0x10(%ebp)
701: 8b 55 0c mov 0xc(%ebp),%edx
704: 8b 45 f0 mov -0x10(%ebp),%eax
707: 01 d0 add %edx,%eax
709: 0f b6 00 movzbl (%eax),%eax
70c: 84 c0 test %al,%al
70e: 0f 85 71 fe ff ff jne 585 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
714: c9 leave
715: c3 ret
00000716 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
716: 55 push %ebp
717: 89 e5 mov %esp,%ebp
719: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
71c: 8b 45 08 mov 0x8(%ebp),%eax
71f: 83 e8 08 sub $0x8,%eax
722: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
725: a1 5c 0c 00 00 mov 0xc5c,%eax
72a: 89 45 fc mov %eax,-0x4(%ebp)
72d: eb 24 jmp 753 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
72f: 8b 45 fc mov -0x4(%ebp),%eax
732: 8b 00 mov (%eax),%eax
734: 3b 45 fc cmp -0x4(%ebp),%eax
737: 77 12 ja 74b <free+0x35>
739: 8b 45 f8 mov -0x8(%ebp),%eax
73c: 3b 45 fc cmp -0x4(%ebp),%eax
73f: 77 24 ja 765 <free+0x4f>
741: 8b 45 fc mov -0x4(%ebp),%eax
744: 8b 00 mov (%eax),%eax
746: 3b 45 f8 cmp -0x8(%ebp),%eax
749: 77 1a ja 765 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
74b: 8b 45 fc mov -0x4(%ebp),%eax
74e: 8b 00 mov (%eax),%eax
750: 89 45 fc mov %eax,-0x4(%ebp)
753: 8b 45 f8 mov -0x8(%ebp),%eax
756: 3b 45 fc cmp -0x4(%ebp),%eax
759: 76 d4 jbe 72f <free+0x19>
75b: 8b 45 fc mov -0x4(%ebp),%eax
75e: 8b 00 mov (%eax),%eax
760: 3b 45 f8 cmp -0x8(%ebp),%eax
763: 76 ca jbe 72f <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
765: 8b 45 f8 mov -0x8(%ebp),%eax
768: 8b 40 04 mov 0x4(%eax),%eax
76b: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
772: 8b 45 f8 mov -0x8(%ebp),%eax
775: 01 c2 add %eax,%edx
777: 8b 45 fc mov -0x4(%ebp),%eax
77a: 8b 00 mov (%eax),%eax
77c: 39 c2 cmp %eax,%edx
77e: 75 24 jne 7a4 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
780: 8b 45 f8 mov -0x8(%ebp),%eax
783: 8b 50 04 mov 0x4(%eax),%edx
786: 8b 45 fc mov -0x4(%ebp),%eax
789: 8b 00 mov (%eax),%eax
78b: 8b 40 04 mov 0x4(%eax),%eax
78e: 01 c2 add %eax,%edx
790: 8b 45 f8 mov -0x8(%ebp),%eax
793: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
796: 8b 45 fc mov -0x4(%ebp),%eax
799: 8b 00 mov (%eax),%eax
79b: 8b 10 mov (%eax),%edx
79d: 8b 45 f8 mov -0x8(%ebp),%eax
7a0: 89 10 mov %edx,(%eax)
7a2: eb 0a jmp 7ae <free+0x98>
} else
bp->s.ptr = p->s.ptr;
7a4: 8b 45 fc mov -0x4(%ebp),%eax
7a7: 8b 10 mov (%eax),%edx
7a9: 8b 45 f8 mov -0x8(%ebp),%eax
7ac: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
7ae: 8b 45 fc mov -0x4(%ebp),%eax
7b1: 8b 40 04 mov 0x4(%eax),%eax
7b4: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
7bb: 8b 45 fc mov -0x4(%ebp),%eax
7be: 01 d0 add %edx,%eax
7c0: 3b 45 f8 cmp -0x8(%ebp),%eax
7c3: 75 20 jne 7e5 <free+0xcf>
p->s.size += bp->s.size;
7c5: 8b 45 fc mov -0x4(%ebp),%eax
7c8: 8b 50 04 mov 0x4(%eax),%edx
7cb: 8b 45 f8 mov -0x8(%ebp),%eax
7ce: 8b 40 04 mov 0x4(%eax),%eax
7d1: 01 c2 add %eax,%edx
7d3: 8b 45 fc mov -0x4(%ebp),%eax
7d6: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
7d9: 8b 45 f8 mov -0x8(%ebp),%eax
7dc: 8b 10 mov (%eax),%edx
7de: 8b 45 fc mov -0x4(%ebp),%eax
7e1: 89 10 mov %edx,(%eax)
7e3: eb 08 jmp 7ed <free+0xd7>
} else
p->s.ptr = bp;
7e5: 8b 45 fc mov -0x4(%ebp),%eax
7e8: 8b 55 f8 mov -0x8(%ebp),%edx
7eb: 89 10 mov %edx,(%eax)
freep = p;
7ed: 8b 45 fc mov -0x4(%ebp),%eax
7f0: a3 5c 0c 00 00 mov %eax,0xc5c
}
7f5: c9 leave
7f6: c3 ret
000007f7 <morecore>:
static Header*
morecore(uint nu)
{
7f7: 55 push %ebp
7f8: 89 e5 mov %esp,%ebp
7fa: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
7fd: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
804: 77 07 ja 80d <morecore+0x16>
nu = 4096;
806: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
80d: 8b 45 08 mov 0x8(%ebp),%eax
810: c1 e0 03 shl $0x3,%eax
813: 89 04 24 mov %eax,(%esp)
816: e8 50 fc ff ff call 46b <sbrk>
81b: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
81e: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
822: 75 07 jne 82b <morecore+0x34>
return 0;
824: b8 00 00 00 00 mov $0x0,%eax
829: eb 22 jmp 84d <morecore+0x56>
hp = (Header*)p;
82b: 8b 45 f4 mov -0xc(%ebp),%eax
82e: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
831: 8b 45 f0 mov -0x10(%ebp),%eax
834: 8b 55 08 mov 0x8(%ebp),%edx
837: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
83a: 8b 45 f0 mov -0x10(%ebp),%eax
83d: 83 c0 08 add $0x8,%eax
840: 89 04 24 mov %eax,(%esp)
843: e8 ce fe ff ff call 716 <free>
return freep;
848: a1 5c 0c 00 00 mov 0xc5c,%eax
}
84d: c9 leave
84e: c3 ret
0000084f <malloc>:
void*
malloc(uint nbytes)
{
84f: 55 push %ebp
850: 89 e5 mov %esp,%ebp
852: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
855: 8b 45 08 mov 0x8(%ebp),%eax
858: 83 c0 07 add $0x7,%eax
85b: c1 e8 03 shr $0x3,%eax
85e: 83 c0 01 add $0x1,%eax
861: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
864: a1 5c 0c 00 00 mov 0xc5c,%eax
869: 89 45 f0 mov %eax,-0x10(%ebp)
86c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
870: 75 23 jne 895 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
872: c7 45 f0 54 0c 00 00 movl $0xc54,-0x10(%ebp)
879: 8b 45 f0 mov -0x10(%ebp),%eax
87c: a3 5c 0c 00 00 mov %eax,0xc5c
881: a1 5c 0c 00 00 mov 0xc5c,%eax
886: a3 54 0c 00 00 mov %eax,0xc54
base.s.size = 0;
88b: c7 05 58 0c 00 00 00 movl $0x0,0xc58
892: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
895: 8b 45 f0 mov -0x10(%ebp),%eax
898: 8b 00 mov (%eax),%eax
89a: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
89d: 8b 45 f4 mov -0xc(%ebp),%eax
8a0: 8b 40 04 mov 0x4(%eax),%eax
8a3: 3b 45 ec cmp -0x14(%ebp),%eax
8a6: 72 4d jb 8f5 <malloc+0xa6>
if(p->s.size == nunits)
8a8: 8b 45 f4 mov -0xc(%ebp),%eax
8ab: 8b 40 04 mov 0x4(%eax),%eax
8ae: 3b 45 ec cmp -0x14(%ebp),%eax
8b1: 75 0c jne 8bf <malloc+0x70>
prevp->s.ptr = p->s.ptr;
8b3: 8b 45 f4 mov -0xc(%ebp),%eax
8b6: 8b 10 mov (%eax),%edx
8b8: 8b 45 f0 mov -0x10(%ebp),%eax
8bb: 89 10 mov %edx,(%eax)
8bd: eb 26 jmp 8e5 <malloc+0x96>
else {
p->s.size -= nunits;
8bf: 8b 45 f4 mov -0xc(%ebp),%eax
8c2: 8b 40 04 mov 0x4(%eax),%eax
8c5: 2b 45 ec sub -0x14(%ebp),%eax
8c8: 89 c2 mov %eax,%edx
8ca: 8b 45 f4 mov -0xc(%ebp),%eax
8cd: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
8d0: 8b 45 f4 mov -0xc(%ebp),%eax
8d3: 8b 40 04 mov 0x4(%eax),%eax
8d6: c1 e0 03 shl $0x3,%eax
8d9: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
8dc: 8b 45 f4 mov -0xc(%ebp),%eax
8df: 8b 55 ec mov -0x14(%ebp),%edx
8e2: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
8e5: 8b 45 f0 mov -0x10(%ebp),%eax
8e8: a3 5c 0c 00 00 mov %eax,0xc5c
return (void*)(p + 1);
8ed: 8b 45 f4 mov -0xc(%ebp),%eax
8f0: 83 c0 08 add $0x8,%eax
8f3: eb 38 jmp 92d <malloc+0xde>
}
if(p == freep)
8f5: a1 5c 0c 00 00 mov 0xc5c,%eax
8fa: 39 45 f4 cmp %eax,-0xc(%ebp)
8fd: 75 1b jne 91a <malloc+0xcb>
if((p = morecore(nunits)) == 0)
8ff: 8b 45 ec mov -0x14(%ebp),%eax
902: 89 04 24 mov %eax,(%esp)
905: e8 ed fe ff ff call 7f7 <morecore>
90a: 89 45 f4 mov %eax,-0xc(%ebp)
90d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
911: 75 07 jne 91a <malloc+0xcb>
return 0;
913: b8 00 00 00 00 mov $0x0,%eax
918: eb 13 jmp 92d <malloc+0xde>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
91a: 8b 45 f4 mov -0xc(%ebp),%eax
91d: 89 45 f0 mov %eax,-0x10(%ebp)
920: 8b 45 f4 mov -0xc(%ebp),%eax
923: 8b 00 mov (%eax),%eax
925: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
928: e9 70 ff ff ff jmp 89d <malloc+0x4e>
}
92d: c9 leave
92e: c3 ret
| 34.421219 | 110 | 0.434283 |
b732f8bd0aaae3b4cb841c5a4167da3002d3c658 | 3,452 | asm | Assembly | programs/oeis/228/A228290.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/228/A228290.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/228/A228290.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A228290: a(n) = n^6 + n^5 + n^4 + n^3 + n^2 + n.
; 0,6,126,1092,5460,19530,55986,137256,299592,597870,1111110,1948716,3257436,5229042,8108730,12204240,17895696,25646166,36012942,49659540,67368420,90054426,118778946,154764792,199411800,254313150,321272406,402321276,499738092,616067010,754137930,917087136,1108378656,1331826342,1591616670,1892332260,2238976116,2636996586,3092313042,3611342280,4201025640,4868856846,5622910566,6471871692,7425065340,8492487570,9684836826,11013546096,12490815792,14129647350,15943877550,17948213556,20158268676,22590598842,25262739810,28193245080,31401724536,34908883806,38736564342,42907784220,47446779660,52379047266,57731386986,63531945792,69810262080,76597310790,83925549246,91828963716,100343116692,109505194890,119354057970,129930287976,141276239496,153436090542,166455894150,180383630700,195269260956,211164779826,228124270842,246203961360,265462278480,285959905686,307759840206,330927451092,355530538020,381639390810,409326849666,438668366136,469742064792,502628805630,537412247190,574178910396,613018243116,654022685442,697287735690,742912017120,790997345376,841648796646,894974776542,951087089700,1010101010100,1072135352106,1137312542226,1205758691592,1277603669160,1352981175630,1432028818086,1514888185356,1601704924092,1692628815570,1787813853210,1887418320816,1991604871536,2100540607542,2214397160430,2333350772340,2457582377796,2587277686266,2722627265442,2863826625240,3011076302520,3164581946526,3324554405046,3491209811292,3664769671500,3845460953250,4033516174506,4229173493376,4432676798592,4644275800710,4864226124030,5092789399236,5330233356756,5576831920842,5832865304370,6098620104360,6374389398216,6660472840686,6957176761542,7264814263980,7583705323740,7914176888946,8256562980666,8611204794192,8978450801040,9358656851670,9752186278926,10159410002196,10580706632292,11016462577050,11467072147650,11932937665656,12414469570776,12912086529342,13426215543510,13957292061180,14505760086636,15072072291906,15656690128842,16260083941920,16882733081760,17525126019366,18187760461086,18871143464292,19575791553780,20302230838890,21050997131346,21822636063816,22617703209192,23436764200590,24280394852070,25149181280076,26043720025596,26964618177042,27912493493850,28887974530800,29891700763056,30924322711926,31986502071342,33078911835060,34202236424580,35357171817786,36544425678306,37764717485592,39018778665720,40307352722910,41631195371766,42991074670236,44387771153292,45822077967330,47294801005290,48806759042496,50358783873216,51951720447942,53586427011390,55263775241220,56984650387476,58749951412746,60560591133042,62417496359400,64321608040200,66273881404206,68275286104326,70326806362092,72429441112860,74584204151730,76792124280186,79054245453456,81371626928592,83745343413270,86176485215310,88666158392916,91215484905636,93825602766042,96497666192130,99232845760440,102032328559896,104897318346366,107829035697942,110828718170940,113897620456620,117037014538626,120248189851146,123532453437792,126891130111200,130325562613350,133837111776606,137427156685476,141097094839092,144848342314410,148682333930130,152600523411336,156604383554856,160695406395342,164875103372070,169145005496460,173506663520316,177961648104786,182511549990042,187157980165680,191902570041840,196746971621046,201692857670766,206741921896692,211895879116740,217156465435770,222525438421026,228004577278296,233595683028792,239300578686750
mov $2,6
lpb $2,1
add $1,2
mul $1,$0
sub $2,1
lpe
div $1,4
mul $1,2
| 287.666667 | 3,325 | 0.9073 |
473267cd2513c32ef5667d41f0744cab16103e71 | 661 | asm | Assembly | oeis/314/A314134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/314/A314134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/314/A314134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A314134: Coordination sequence Gal.6.624.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Christian Krause
; 1,5,11,16,21,27,33,39,45,50,55,61,66,71,77,82,87,93,99,105,111,116,121,127,132,137,143,148,153,159,165,171,177,182,187,193,198,203,209,214,219,225,231,237,243,248,253,259,264,269
mov $1,$0
seq $1,314884 ; Coordination sequence Gal.6.150.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
mov $2,$0
mul $0,6
sub $0,1
mod $0,$1
add $0,1
mov $3,$2
mul $3,4
add $0,$3
| 44.066667 | 182 | 0.730711 |
3b19abd2d00d6ba828992da1d64bcd51f64cecbd | 505 | asm | Assembly | programs/oeis/027/A027938.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/027/A027938.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/027/A027938.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A027938: a(n) = T(2n, n+2), T given by A027935.
; 1,16,92,365,1204,3588,10093,27476,73440,194345,511576,1342936,3520457,9222440,24151764,63238773,165571628,433484476,1134891605,2971201740,7778726776,20364993681,53316271472,139583840240,365435271249,956721998208,2504730750988,6557470285501,17167680139620,44945570171060,117669030415101,308061521119876,806515532994512,2111485077918265,5527939700819784
mul $0,2
add $0,1
cal $0,14166 ; Apply partial sum operator 4 times to Fibonacci numbers.
mov $1,$0
| 63.125 | 353 | 0.825743 |
62cde628e98e50879b3b2818e38b380a9eaba36a | 593 | asm | Assembly | programs/oeis/099/A099892.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/099/A099892.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/099/A099892.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A099892: XOR BINOMIAL transform of A003188 (Gray code numbers); also the main diagonal of the XOR difference triangle A099891.
; 0,1,3,0,6,0,0,0,12,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96
mov $2,2
mov $9,$0
lpb $2,1
mov $0,$9
sub $2,1
add $0,$2
sub $0,1
mov $3,$0
mov $6,3
lpb $0,1
div $3,2
mov $0,$3
mov $4,1
mov $5,1
mul $5,$6
add $4,$5
mul $6,2
lpe
trn $4,3
mov $7,$2
mov $8,$4
lpb $7,1
mov $1,$8
sub $7,1
lpe
lpe
lpb $9,1
sub $1,$8
mov $9,0
lpe
| 17.441176 | 135 | 0.529511 |
afbecad76a4291b0e72e987ec2fa964ce906fa0b | 112 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erfc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erfc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/erfc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _erfc
EXTERN cm48_sdcciy_erfc
defc _erfc = cm48_sdcciy_erfc
| 11.2 | 29 | 0.848214 |
b5c6e06667e0fd4032703e0f1276c8bcfe780e33 | 6,527 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_803.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_803.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_803.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 %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x77d8, %rsi
lea addresses_D_ht+0xeb5c, %rdi
dec %rbx
mov $57, %rcx
rep movsl
nop
nop
dec %r14
lea addresses_UC_ht+0x6868, %rsi
lea addresses_A_ht+0x14dd8, %rdi
cmp %r15, %r15
mov $13, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %rdi
lea addresses_UC_ht+0x5f48, %rsi
lea addresses_D_ht+0x189d8, %rdi
nop
nop
nop
nop
add $18539, %rbp
mov $96, %rcx
rep movsw
nop
nop
nop
nop
nop
add $15060, %rbx
lea addresses_D_ht+0x1d7d8, %r14
nop
nop
and $56416, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm1
vmovups %ymm1, (%r14)
and %r14, %r14
lea addresses_WC_ht+0x1e9d8, %rbp
clflush (%rbp)
nop
nop
add $59254, %r14
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%rbp)
nop
nop
nop
cmp $16658, %rsi
lea addresses_D_ht+0x9058, %rsi
lea addresses_normal_ht+0x10bd8, %rdi
nop
and $29988, %rbp
mov $55, %rcx
rep movsl
add %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r14
push %r8
push %rbp
push %rdi
// Store
lea addresses_US+0x1454, %rdi
nop
nop
and %r14, %r14
movw $0x5152, (%rdi)
nop
nop
nop
nop
nop
and $40066, %r13
// Store
mov $0x1d8, %r12
nop
nop
nop
nop
xor %r8, %r8
mov $0x5152535455565758, %r13
movq %r13, %xmm1
movups %xmm1, (%r12)
nop
nop
nop
nop
nop
sub %r10, %r10
// Store
lea addresses_PSE+0x161d8, %r14
nop
nop
nop
sub $61435, %r8
movb $0x51, (%r14)
nop
nop
dec %r13
// Store
lea addresses_A+0x148b0, %rbp
nop
cmp $62377, %r10
movw $0x5152, (%rbp)
inc %r10
// Faulty Load
lea addresses_UC+0x149d8, %r10
nop
nop
nop
nop
nop
and $22488, %r14
movb (%r10), %r12b
lea oracles, %r13
and $0xff, %r12
shlq $12, %r12
mov (%r13,%r12,1), %r12
pop %rdi
pop %rbp
pop %r8
pop %r14
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 36.261111 | 2,999 | 0.658189 |
769bbb90d5a43cbd2c6a8646adbb633a5b0c7866 | 88 | asm | Assembly | tests/test build script and options/nonCodeOptions/errorNoInputFile.asm | fengjixuchui/sjasmplus | df0fabd2411bf89e23637fce46d273f52dafbe16 | [
"BSD-3-Clause"
] | 220 | 2016-10-22T19:44:39.000Z | 2022-03-29T20:57:04.000Z | tests/test build script and options/nonCodeOptions/errorNoInputFile.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 153 | 2018-05-07T10:31:23.000Z | 2022-03-30T04:35:59.000Z | tests/test build script and options/nonCodeOptions/errorNoInputFile.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 51 | 2016-05-12T21:27:36.000Z | 2022-03-27T15:16:16.000Z | ; this file exist just to trigger the test in the test runner script, but it's not used
| 44 | 87 | 0.761364 |
e2c5364206d403bf57e6396518e2665326ccaa95 | 251 | asm | Assembly | x2-nos.asm | Unshifted1337/Nand2Tris-Hack | 80d1a2ab6af2524e69f2392b051bdc65a43a2ead | [
"Apache-2.0"
] | null | null | null | x2-nos.asm | Unshifted1337/Nand2Tris-Hack | 80d1a2ab6af2524e69f2392b051bdc65a43a2ead | [
"Apache-2.0"
] | null | null | null | x2-nos.asm | Unshifted1337/Nand2Tris-Hack | 80d1a2ab6af2524e69f2392b051bdc65a43a2ead | [
"Apache-2.0"
] | null | null | null | //Multiplication of 2 nos using the process of addition
//Author: Unshifted1337
@2
M=0
@12
D=A
@1
M=D
@10
D=A
@0
M=D
@4
M=D
@LOOP
D;JGT
@END
0;JMP
(LOOP)
@R2
D=M
@R1
D=D+M
@R2
M=D
@4
D=M-1
M=D
@LOOP
D;JGT
(END)
@END
0;JMP
| 5.229167 | 55 | 0.557769 |
fe800e763e7e526362b222dd63abd28f175fd2e2 | 1,142 | asm | Assembly | Wizardry/Necessary/ModularStatScreen/asm/DontBlinkLeft.asm | sme23/WhatHeck | 746a2be83358aaa4e855182176b47c4808f2587a | [
"CC0-1.0"
] | 1 | 2021-09-27T02:59:12.000Z | 2021-09-27T02:59:12.000Z | Wizardry/Necessary/ModularStatScreen/asm/DontBlinkLeft.asm | sme23/WhatHeck | 746a2be83358aaa4e855182176b47c4808f2587a | [
"CC0-1.0"
] | null | null | null | Wizardry/Necessary/ModularStatScreen/asm/DontBlinkLeft.asm | sme23/WhatHeck | 746a2be83358aaa4e855182176b47c4808f2587a | [
"CC0-1.0"
] | null | null | null | @ Doesn't clear Char & Class name so we avoid left screen blinking.
@ Bit of a patchwork solution.
.thumb
.equ Text_Init, 0x8003D5D
.equ TextParams, 0x2028E70
push {r14}
ldr r0, =0x08A006FC @InitTextBatch1
bl InitTextBatchA
pop {r0}
bx r0
GOTO_R5:
bx r5
@ Mimics InitTextBatch, 0x08003DAC
InitTextBatchA:
push {r4-r5,r14}
mov r4, r0
mov r5, #0x0
b L1
Loop:
ldr r0, [r4]
ldrb r1, [r4, #0x4]
bl Text_InitA
add r4, #0x8
L1:
ldr r0, [r4]
cmp r0, #0x0
beq Return
add r5, #0x1
cmp r5, #0x2
ble Loop
ldr r5, =Text_Init
b L2
Loop2:
ldr r0, [r4]
ldrb r1, [r4, #0x4]
bl GOTO_R5
add r4, #0x8
L2:
ldr r0, [r4]
cmp r0, #0x0
bne Loop2
Return:
pop {r4-r5}
pop {r0}
bx r0
@ Mimics Text_Init, 0x08003D5C, but doesn't call the TextVRAMClearer.
Text_InitA:
push {r4}
ldr r2, =TextParams
ldr r4, [r2]
ldrh r3, [r4, #0x12]
mov r2, #0x0
strh r3, [r0]
strb r1, [r0, #0x4]
strb r2, [r0, #0x6]
strb r2, [r0, #0x5]
strb r2, [r0, #0x7]
ldrh r2, [r4, #0x12]
add r2, r2, r1
strh r2, [r4, #0x12]
pop {r4}
bx r14
| 14.098765 | 69 | 0.58669 |
e20f1297aa674db5cc98adb87636b92379d5d067 | 277 | asm | Assembly | libsrc/math/genmath/amin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/math/genmath/amin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/math/genmath/amin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ; Small C+ Math Library
PUBLIC amin
EXTERN ldbchl
EXTERN compare
EXTERN ldfabc
;
; amin(a,b)
.amin LD HL,8
ADD HL,SP
CALL ldbchl
CALL compare
JP P,ldfabc
RET
| 14.578947 | 29 | 0.429603 |
ec9ff3c33bd973b3e5854177bcdecbe919f8d028 | 479 | asm | Assembly | programs/oeis/097/A097512.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/097/A097512.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/097/A097512.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A097512: a(n) = 6*Lucas(2n) - Fibonacci(2n+2).
; 11,15,34,87,227,594,1555,4071,10658,27903,73051,191250,500699,1310847,3431842,8984679,23522195,61581906,161223523,422088663,1105042466,2893038735,7574073739,19829182482,51913473707,135911238639,355820242210,931549487991,2438828221763,6384935177298,16715977310131,43762996753095,114573012949154,299956042094367,785295113333947,2055929297907474,5382492780388475
mov $1,11
mov $2,4
lpb $0,1
sub $0,1
add $1,$2
add $2,$1
lpe
| 43.545455 | 361 | 0.805846 |
41decd6281bf8875d27ef03d246a9bbe11eae1fc | 856 | asm | Assembly | programs/oeis/052/A052762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/052/A052762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/052/A052762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A052762: Products of 4 consecutive integers: a(n) = n*(n-1)*(n-2)*(n-3).
; 0,0,0,0,24,120,360,840,1680,3024,5040,7920,11880,17160,24024,32760,43680,57120,73440,93024,116280,143640,175560,212520,255024,303600,358800,421200,491400,570024,657720,755160,863040,982080,1113024,1256640,1413720,1585080,1771560,1974024,2193360,2430480,2686320,2961840,3258024,3575880,3916440,4280760,4669920,5085024,5527200,5997600,6497400,7027800,7590024,8185320,8814960,9480240,10182480,10923024,11703240,12524520,13388280,14295960,15249024,16248960,17297280,18395520,19545240,20748024,22005480,23319240,24690960,26122320,27615024,29170800,30791400,32478600,34234200,36060024,37957920,39929760,41977440,44102880,46308024,48594840,50965320,53421480,55965360,58599024,61324560,64144080,67059720,70073640,73188024,76405080,79727040,83156160,86694720,90345024
bin $0,4
mul $0,24
| 142.666667 | 760 | 0.836449 |
5152f2379e527e18696017fab11b208939d48263 | 118,830 | asm | Assembly | Library/GrObj/GrObj/grobjTransformUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/GrObj/GrObj/grobjTransformUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/GrObj/GrObj/grobjTransformUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: graphicTransformUtils.asm
AUTHOR: Steve Scholl, Nov 15, 1989
ROUTINES:
Name
----
INT GrObjMoveSpriteRelative
INT GrObjMoveNormalRelative
INT GrObjOTMoveRelative
INT GrObjResizeSpriteRelative
INT GrObjResizeNormalRelative
INT GrObjResizeSpriteRelativeToSprite
INT GrObjOTAdditiveResizeRelative
INT GrObjOTMultiplicativeResizeRelative
INT GrObjInteractiveResizeSpriteRelative
INT GrObjInteractiveResizeNormalRelative
INT GrObjInteractiveResizeSpriteRelativeToSprite
INT GrObjOTInteractiveAdditiveResizeRelative
INT GrObjOTInteractiveMultiplicativeResizeRelative
INT GrObjRotateSpriteRelative
INT GrObjRotateNormalRelative
INT GrObjOTRotateRelative
INT GrObjSkewSpriteRelative
INT GrObjSkewNormalRelative
INT GrObjOTSkewRelative
INT GrObjScaleSpriteRelativeOBJECT
INT GrObjScaleSpriteRelativeToSpriteOBJECT
INT GrObjScaleNormalRelativeOBJECT
INT GrObjOTScaleRelativeOBJECT
INT GrObjApplySpriteTransform
INT GrObjApplyNormalTransform
INT GrObjOTApplyObjectTransform
INT GrObjOTApplyGrObjTransMatrix
INT GrObjApplyGrObjTransMatrix
INT GrObjApplyTranslationToNormalCenter
INT GrObjApplyTranslationToSpriteCenter
INT GrObjOTApplyTranslationToCenter
INT GrObjOTGetOBJECTDimensions
INT GrObjGetNormalOBJECTDimensions
INT GrObjGetSpriteOBJECTDimensions
INT GrObjOTGetAbsOBJECTDimensions
INT GrObjGetAbsNormalOBJECTDimensions
INT GrObjGetAbsSpriteOBJECTDimensions
INT GrObjConvertNormalPARENTToWWFOBJECT
INT GrObjConvertNormalPARENTToWWFCENTERRELATIVE
INT GrObjApplyNormalTransformSansCenterTranslation
INT GrObjOTConvertPARENTToOBJECT
INT GrObjConvertNormalPARENTToOBJECT
INT GrObjConvertNormalWWFVectorPARENTToOBJECT
INT GrObjOTConvertWWFVectorPARENTToOBJECT
INT GrObjOTConvertVectorPARENTToOBJECT
INT GrObjSetNormalOBJECTDimensions
INT GrObjSetSpriteOBJECTDimensions
INT GrObjOTSetOBJECTDimensions
INT GrObjSetNormalCenter
INT GrObjSetSpriteCenter
INT GrObjOTSetCenter
INT GrObjConvertNormalOBJECTToPARENT
INT GrObjConvertSpriteOBJECTToPARENT
INT GrObjConvertToPARENT
INT GrObjMoveNormalBackToAnchor
INT GrObjOTMoveBackToAnchor
INT GrObjTransformSpriteRelative
INT GrObjTransformNormalRelative
INT GrObjOTTransformRelative
INT GrObjOTGStateTransformCenterRelative
GrObjCheckGrObjTransMatrixForIdentity
GrObjSetOBJECTDimensionsAndIdentityMatrix
GrObjOTSetGrObjTransMatrixFromGState
GrObjSetGrObjTransMatrixFromGState
GrObjOTApplyScaleRelative
GrObjOTApplyScaleRelative
GrObjOTApplyRotateRelative
GrObjOTApplySkewRelative
GrObjScaleSpriteRelative
GrObjScaleNormalRelative
GrObjOTScaleRelative
REVISION HISTORY:
Name Date Description
---- ---- -----------
Steve 11/15/89 Initial revision
DESCRIPTION:
Utililty routines for graphic class
$Id: grobjTransformUtils.asm,v 1.1 97/04/04 18:07:28 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjRequiredExtInteractiveCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMoveSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys move deltas to data in normalTransform and stores
the results in the spriteTransform
CALLED BY: INTERNAL
GrObjPtrMove
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to move object in document coords
RETURN:
in spriteTransform
center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMoveSpriteRelative proc far
class GrObjClass
uses di,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Get offset of spriteTransform in di
;
GrObjDeref di,ds,si
mov si,di
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z MISSING_SPRITE_TRANSFORM_CHUNK >
mov di,ds:[di]
; Point ds:si at normalTransform and do move
;
mov si,ds:[si].GOI_normalTransform
mov si,ds:[si]
call GrObjOTMoveRelative
.leave
ret
GrObjMoveSpriteRelative endp
GrObjMoveSpriteRelativeToSprite proc far
class GrObjClass
uses di,si
.enter
EC < call ECGrObjCheckLMemObject >
; Point ds:di to spriteTransform
;
GrObjDeref di,ds,si
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si, di
call GrObjOTMoveRelative
.leave
ret
GrObjMoveSpriteRelativeToSprite endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMoveNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys move deltas to data in normalTransform and stores
the results back in the normalTransform.
CALLED BY: INTERNAL
GrObjEndMove
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to move object in PARENT coords
RETURN:
in normalTransform
center moved
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMoveNormalRelative proc far
class GrObjClass
uses ax,di
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
push si ;instance chunk
AccessNormalTransformChunk si,ds,si
mov di,si
call GrObjOTMoveRelative
pop si ;instance chunk
.leave
ret
GrObjMoveNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMoveNormalAbsolute
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Moves the normal transform to be centered on the passed point
CALLED BY: INTERNAL
GrObjEndMove
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed
RETURN:
in normalTransform
center moved
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMoveNormalAbsolute proc far
class GrObjClass
uses ax,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
AccessNormalTransformChunk si,ds,si
movdwf ds:[si].OT_center.PDF_x, ss:[bp].PDF_x, ax
movdwf ds:[si].OT_center.PDF_y, ss:[bp].PDF_y, ax
.leave
ret
GrObjMoveNormalAbsolute endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTMoveRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys deltas to object position stored in source
ObjectTransform and stores the result in the
dest ObjectTransform. Source and dest may be the
same structure
CALLED BY: INTERNAL
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - PointDWFixed, deltas to move object in document coords
RETURN:
ds:di.OT_center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTMoveRelative proc near
uses ax,bx,cx
.enter
movdwf cxbxax, ds:[si].OT_center.PDF_x
adddwf cxbxax, ss:[bp].PDF_x
movdwf ds:[di].OT_center.PDF_x, cxbxax
movdwf cxbxax, ds:[si].OT_center.PDF_y
adddwf cxbxax, ss:[bp].PDF_y
movdwf ds:[di].OT_center.PDF_y, cxbxax
.leave
ret
GrObjOTMoveRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjInteractiveResizeSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in normalTransform and
stores the results in the spriteTranform.
CALLED BY: INTERNAL
GrObjPtrResizeCommon
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to resize object
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
in spriteTransform
OT_center - may have changed
OT_width - may have changed
OT_height - may have changed
OT_transformFlags - may have changed
OFT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjInteractiveResizeSpriteRelative proc far
class GrObjClass
uses ax,di,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Point ds:di to spriteTransform
;
mov si,di
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
; Point ds:si at normalTransform and do resize
;
mov si,ds:[si].GOI_normalTransform
EC < tst si >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov si,ds:[si]
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTInteractiveAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTInteractiveMultiplicativeResizeRelative
jmp done
GrObjInteractiveResizeSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjInteractiveResizeNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in normalTransform and
stores the results in the normalTranform
CALLED BY: INTERNAL
GrObjSetSize
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to resize object
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
in normalTransform
OT_center - may have changed
OT_width - may have changed
OT_height - may have changed
OT_transformFlags - may have changed
OFT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjInteractiveResizeNormalRelative proc far
class GrObjClass
uses ax,di,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Point ds:di and ds:si to normalTransform
;
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTInteractiveAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTInteractiveMultiplicativeResizeRelative
jmp done
GrObjInteractiveResizeNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjInteractiveResizeSpriteRelativeToSprite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in spriteTransform and
stores the results in the spriteTranform
CALLED BY: INTERNAL (UTILITY)
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to resize object
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
in spriteTransform
OT_center - may have changed
OT_width - may have changed
OT_height - may have changed
OT_transformFlags - may have changed
OFT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjInteractiveResizeSpriteRelativeToSprite proc far
class GrObjClass
uses di,si
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Point ds:di and ds:si to spriteTransform
;
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTInteractiveAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTInteractiveMultiplicativeResizeRelative
jmp done
GrObjInteractiveResizeSpriteRelativeToSprite endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjResizeSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in normalTransform and stores
the results in the spriteTransform
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - PointWDFixed - deltas to resize object in OBJECT coords
cl - GrObjHandleSpecification of anchor
RETURN:
in spriteTransform
OT_width - may have changed
OT_height - may have changed
OT_center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjResizeSpriteRelative proc far
class GrObjClass
uses ax,di,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Get offset of spriteTransform in di
;
mov si,di
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z MISSING_SPRITE_TRANSFORM_CHUNK >
mov di,ds:[di]
; Point ds:si at normalTransform and do resize
;
mov si,ds:[si].GOI_normalTransform
mov si,ds:[si]
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTMultiplicativeResizeRelative
jmp done
GrObjResizeSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjResizeSpriteRelativeToSprite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in spriteTransform and stores
the results in the spriteTransform
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to resize object in OBJECT coords
cl - GrObjHandleSpecification of anchor
RETURN:
in spriteTransform
OT_width - may have changed
OT_height - may have changed
OT_center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjResizeSpriteRelativeToSprite proc far
class GrObjClass
uses di,si,ax
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Point ds:di and ds:si to spriteTransform
;
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si, di
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTMultiplicativeResizeRelative
jmp done
GrObjResizeSpriteRelativeToSprite endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjResizeNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys resize deltas to data in normalTransform and stores
the results back in the normalTransform.
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - PointDWFixed - deltas to resize object in OBJECT coords
cl - GrObjHandleSpecification of anchor
RETURN:
in normalTransform
OT_width - may have changed
OT_height - may have changed
OT_center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjResizeNormalRelative proc far
class GrObjClass
uses ax,si,di
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov ax,ds:[di].GOI_attrFlags
; Point ds:si and ds:di at normalTransform and resize object
;
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si, di
test ax, mask GOAF_MULTIPLICATIVE_RESIZE
jnz mult
call GrObjOTAdditiveResizeRelative
done:
.leave
ret
mult:
call GrObjOTMultiplicativeResizeRelative
jmp done
GrObjResizeNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTInteractiveAdditiveResizeRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Adds resize deltas to object position stored in source
ObjectTransform and stores the result in the
dest ObjectTransform. Source and dest may be the
same structure
CALLED BY: INTERNAL
GrObjInteractiveResizeNormalRelative
GrObjInteractiveResizeSpriteRelative
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - PointDWFixed, deltas to resize in DOCUMENT/PARENT coords
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
ds:di.OT_center - may have changed
ds:di.OT_width - may have changed
ds:di.OT_height - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTInteractiveAdditiveResizeRelative proc near
uses bx
.enter
; Create new stack frame for holding OBJECT deltas
;
sub sp, size PointDWFixed
mov bx,sp
call GrObjOTCalcInteractiveSizeChange
; Do additive resize
;
xchg bx,bp ;DOCUMENT change,OBJECT change
call GrObjOTAdditiveResizeRelative
mov bp,bx ;DOCUMENT change
add sp,size PointDWFixed
.leave
ret
GrObjOTInteractiveAdditiveResizeRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTAdditiveResizeRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add the size changes in OBJECT coords to the object
CALLED BY: INTERNAL
GrObjOTInteractiveAdditiveResizeRelative
GrObjResizeNormalRelative
GrObjResizeSpriteRelative
GrObjResizeSpriteRelativeToSprite
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - PointDWFixed
PDF_x - width change in OBJECT
PDF_y - height change in OBJECT
cl - GrObjHandleSpecification of anchor
RETURN:
ds:di.OT_center - may have changed
ds:di.OT_transform - may have changed
DESTROYED:
ss:bp - PointDWFixed - destroyed
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/12/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTAdditiveResizeRelative proc near
uses ax,bx,cx,dx,es
anchorHandle local word \
push cx
anchorPoints local SrcDestPointDWFixeds
.enter
mov bx,ss:[bp] ;passed stack frame
; The passed values are changes in absolute size
;
tst ds:[si].OT_width.WWF_int
jns 10$
negdwf ss:[bx].PDF_x
10$:
tst ds:[si].OT_height.WWF_int
jns 20$
negdwf ss:[bx].PDF_y
20$:
; Make sure centers of source and dest ObjectTransform
; are the same
;
cmp si, di
je inPlace
push si,di ;source, dest
segmov es,ds,cx
add si,offset OT_center
add di,offset OT_center
MoveConstantNumBytes <size PointDWFixed>, cx
pop si,di ;source, dest
inPlace:
; Calculate the initial position of the anchor point
;
push bp ;stack frame
mov cx,anchorHandle ;cl gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_source]
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Add changes to width and height
;
movwwf dxcx,ds:[si].OT_width
add cx,ss:[bx].PDF_x.DWF_frac
adc dx,ss:[bx].PDF_x.DWF_int.low
movwwf ds:[di].OT_width,dxcx
movwwf dxcx,ds:[si].OT_height
add cx,ss:[bx].PDF_y.DWF_frac
adc dx,ss:[bx].PDF_y.DWF_int.low
movwwf ds:[di].OT_height,dxcx
; Calc the final position of the anchored point
;
push bp ;stack frame
mov cx,anchorHandle ;ch gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_dest]
xchg di,si ;source, dest ObjectTransform
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Move the object so that the anchored point
; stays in the same place
;
push bp
lea bp,ss:[anchorPoints]
call GrObjOTMoveBackToAnchor
xchg si,di ;source, dest ObjectTransform
pop bp
.leave
ret
GrObjOTAdditiveResizeRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTInteractiveMultiplicativeResizeRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calcs scale factor from resize deltas and applys it
to object stored in source ObjectTransform and
stores the result in the
dest ObjectTransform. Source and dest may be the
same structure
CALLED BY: INTERNAL
GrObjInteractiveResizeNormalRelative
GrObjInteractiveResizeSpriteRelative
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - PointDWFixed, deltas to resize in DOCUMENT/PARENT coords
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
ds:di.OT_center - may have changed
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTInteractiveMultiplicativeResizeRelative proc near
uses bx
.enter
; Create new stack frame for holding OBJECT deltas
;
sub sp, size PointDWFixed
mov bx,sp
call GrObjOTCalcInteractiveSizeChange
; Do scale
;
call GrObjOTMultiplicativeResizeRelative
add sp,size PointDWFixed
.leave
ret
GrObjOTInteractiveMultiplicativeResizeRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTMultiplicativeResizeRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calc scale factor
current OBJECT dimensions + deltas to OBJECT dimensions
-------------------------------------------------------
current OBJECT dimensions
and apply it to object.
CALLED BY: INTERNAL
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bx - PointDWFixed
PDF_x - width change in OBJECT
PDF_y - height change in OBJECT
cl - GrObjHandleSpecification of anchor
RETURN:
ds:di.OT_center - may have changed
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/12/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTMultiplicativeResizeRelative proc far
uses ax,bx,cx,dx
scale local GrObjScaleData
.enter
push cx ;anchor
; Calc X scale factor (width change + width / width )
;
push bx,bp ;delta buffer, stack frame
movwwf axbp,ds:[si].OT_width
cwd ;sign extend current width
adddwf dxaxbp,ss:[bx].PDF_x
mov cx,ax ;new width int
movwwf bxax,ds:[si].OT_width
call GrSDivDWFbyWWF
mov ax,bp ;x scale factor frac
pop bx,bp ;delta buffer ,stack frame
movwwf scale.GOSD_xScale, cxax
; Calc Y scale factor (height change + height/ height)
;
push bp ;stack frame
movwwf axbp,ds:[si].OT_height
cwd ;sign extend current height
adddwf dxaxbp,ss:[bx].PDF_y
mov cx,ax ;new height int
movwwf bxax,ds:[si].OT_height
call GrSDivDWFbyWWF
mov ax,bp ;y scale factor frac
pop bp ;stack frame
movwwf scale.GOSD_yScale,cxax
; Apply the scale factor to the source GrObjTransMatrix
; and store it in the dest GrObjTransMatrix
;
pop cx ;anchor
push bp ;frame
lea bp,ss:[scale]
call GrObjOTScaleRelativeOBJECT
pop bp ;frame
.leave
ret
GrObjOTMultiplicativeResizeRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTCalcInteractiveSizeChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calculate the change in width and height in OBJECT
coordinates, based on deltas, grabbed handle and
anchored handle
NOTE: The resize deltas passed to this routine
are in DOCUMENT coordinates. However the routine
it is intended for use on objects being interactively
resized, which means that the object is not in
a group. If an object is not in a group then
its PARENT and DOCUMENT coordinate systems are the
same. So below you will see a call to
GrObjOTConvertPARENTToOBJECT instead of a
routine to convert DOCUMENTToOBJECT.
CALLED BY: INTERNAL
GrObjOTAdditiveResizeRelative
PASS:
ds:si - ObjectTransform defining OBJECT coordinates
ss:bp - PointDWFixed - deltas in DOCUMENT/PARENT
ss:bx - PointDWFixed - empty
cl - GrObjHandleSpecification of anchor
ch - GrObjHandleSpecification of grabbed handle
RETURN:
ss:bx - PointDWFixed - width and height deltas in OBJECT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
Size Change
Convert mouse deltas to OBJECT to
get the direction and magnitude of the change in the
object's coordinate system.
Zero irrelevant deltas (if grabbed a middle handle)
Calculate the Outward Delta (OD). A positive value means
one edge is being pulled away from the other, a negative
value means one is edge is moving toward the other (until
the object flips over). The Outward Delta is calced by
negating the corresponding OBJECT delta if the left
or top handle is grabbed. (eg. if the OBJECT delta x is
positive but the left handle was grabbed, then the left
edge is moving toward the right edge, a negative OD)
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 7/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTCalcInteractiveSizeChange proc near
uses ax,di,es
.enter
xchg bp,bx ;empty PDF, orig deltas PDF
; Copy deltas into a separate stack frame so we
; don't trash the originals
;
push ds,si ;ObjectTransforms
mov si,bx ;original deltas
segmov ds,ss,ax
mov es,ax
mov di,bp
MoveConstantNumBytes <size PointDWFixed>,ax
pop ds,si ;ObjectTransforms
; If resizing about center then double deltas to keep
; corner of object on mouse
;
tst cl
jz fromCenter
cmp cl,mask GrObjHandleSpecification
jne toObject
fromCenter:
shldwf ss:[bp].PDF_x
shldwf ss:[bp].PDF_y
toObject:
; See NOTE: in header
;
call GrObjOTConvertVectorPARENTToOBJECT
; Zero irrelevant deltas if middle handles grabbed
;
test ch, (mask GOHS_HANDLE_RIGHT or mask GOHS_HANDLE_LEFT )
jnz 10$
clrdwf ss:[bp].PDF_x
10$:
test ch, (mask GOHS_HANDLE_BOTTOM or mask GOHS_HANDLE_TOP )
jnz 20$
clrdwf ss:[bp].PDF_y
20$:
; Compensate for flip in sign of dimensions instead of
; in tranform
;
tst ds:[si].OT_width.WWF_int
jns 22$
negdwf ss:[bp].PDF_x
22$:
tst ds:[si].OT_height.WWF_int
jns 25$
negdwf ss:[bp].PDF_y
25$:
; Calculate the Outward Deltas based on handle grabbed
;
test ch, mask GOHS_HANDLE_LEFT
jz 30$
negdwf ss:[bp].PDF_x
30$:
test ch, mask GOHS_HANDLE_TOP
jz 40$
negdwf ss:[bp].PDF_y
40$:
xchg bx,bp ;OBJECT PDF, orig deltas PDF
.leave
ret
GrObjOTCalcInteractiveSizeChange endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjRotateSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys rotate deltas to data in normal transform and
stores the results in the spriteTransform
[current matrix][rotate]
This rotation is applied relative to the DOCUMENT axes.
It will rotate the entire image without skewing it.
This rotate is used during interactive rotate.
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - WWFixed delta of rotation change in degrees
cl - GrObjHandleSpecification of anchor
RETURN:
GOI_spriteTransform.OT_degrees - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjRotateSpriteRelative proc far
uses ax,di,si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov si,di
mov si,ds:[si].GOI_normalTransform
EC < tst si >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov si,ds:[si]
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
call GrObjOTRotateRelative
.leave
ret
GrObjRotateSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjRotateNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys rotate deltas to data in normal transform and
stores the results in the normalTransform
[current matrix][rotate]
This rotation is applied relative to the DOCUMENT axes.
It will rotate the entire image without skewing it.
This rotate is used during interactive rotate.
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - WWFixed delta of rotation change in degrees
cl - GrObjHandleSpecification of anchor
RETURN:
GOI_normalTransform.OT_degrees - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjRotateNormalRelative proc far
uses ax,di,dx
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
push si ;instance chunk
GrObjDeref di,ds,si
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
call GrObjOTRotateRelative
pop si ;instance chunk
.leave
ret
GrObjRotateNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTRotateRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply rotation delta to object information stored in
source ObjectTransform and stores result in the dest
ObjectTransform. Source and dest may be the same structure.
[current matrix][rotate]
This rotation is applied relative to the DOCUMENT axes.
It will rotate the entire image without skewing it.
This rotate is used during interactive rotate
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - WWFixed delta degrees
cl - GrObjHandleSpecification of anchor
RETURN:
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
For rotation to work correctly it must be applied
before the objects current transformation.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTRotateRelative proc near
uses bx,cx,dx,bp,es
mov bx,bp ;rotate degrees frame
anchorHandle local word \
push cx
anchorPoints local SrcDestPointDWFixeds
.enter
; Make sure centers of source and dest ObjectTransforms
; are the same
;
cmp si, di
je inPlace
push si,di ;source, dest
segmov es,ds,cx
add si,offset OT_center
add di,offset OT_center
MoveConstantNumBytes <size PointDWFixed>, cx
pop si,di ;source, dest
inPlace:
; Calculate the initial position of the anchor point
;
push bp ;stack frame
mov cx,anchorHandle ;cl gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_source]
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Rotate the object
;
movwwf dxcx,ss:[bx]
call GrObjOTApplyRotateRelative
; Calc the final position of the anchored point
;
push bp ;stack frame
mov cx,anchorHandle ;ch gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_dest]
xchg di,si ;source, dest ObjectTransform
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Move the object so that the anchored point
; stays in the same place
;
push bp
lea bp,[anchorPoints]
call GrObjOTMoveBackToAnchor
xchg si,di ;source, dest ObjectTransform
pop bp
.leave
ret
GrObjOTRotateRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjScaleSpriteRelativeOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys scale factors to data in normal transform and
stores the results in the spriteTransform
[scale][current matrix]
This scales the object in its coordinate system. So
it will not cause the object to skew or otherwise
be deformed. This scale is used during interactive
resizing of the object
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjScaleData
cl - GrObjHandleSpecification of anchor
RETURN:
GOI_spriteTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjScaleSpriteRelativeOBJECT proc far
uses ax,di,si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov si,di
mov si,ds:[si].GOI_normalTransform
EC < tst si >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov si,ds:[si]
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
call GrObjOTScaleRelativeOBJECT
.leave
ret
GrObjScaleSpriteRelativeOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjScaleNormalRelativeOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys scale factors to data in normal transform and
stores the results in the normalTransform
[scale][current matrix]
This scales the object in its coordinate system. So
it will not cause the object to skew or otherwise
be deformed. This scale is used during interactive
resizing of the object
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjScaleData
cl - GrObjHandleSpecification of anchor
RETURN:
GOI_normalTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjScaleNormalRelativeOBJECT proc far
uses ax,di,dx
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
push si ;instance chunk
GrObjDeref di,ds,si
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
call GrObjOTScaleRelativeOBJECT
pop si ;instance chunk
.leave
ret
GrObjScaleNormalRelativeOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjScaleSpriteRelativeToSpriteOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys scale factors to data in sprite transform and
stores the results in the spriteTransform
[scale][current matrix]
This scales the object in its coordinate system. So
it will not cause the object to skew or otherwise
be deformed. This scale is used during interactive
resizing of the object
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjScaleData
cl - GrObjHandleSpecification of anchor
RETURN:
GOI_spriteTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjScaleSpriteRelativeToSpriteOBJECT proc far
uses ax,di,si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at spriteTransform and move object
;
GrObjDeref di,ds,si
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
call GrObjOTScaleRelativeOBJECT
.leave
ret
GrObjScaleSpriteRelativeToSpriteOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTScaleRelativeOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply scale to object information stored in
source ObjectTransform and stores result in the dest
ObjectTransform. Source and dest may be the same structure.
[scale][current matrix]
This scales the object in its coordinate system. So
it will not cause the object to skew or otherwise
be deformed. This scale is used during interactive
resizing of the object
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - GrObjScaleData
cl - GrObjHandleSpecification of anchor
RETURN:
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTScaleRelativeOBJECT proc near
uses bx,cx,dx,bp,es
mov bx,bp ;scale frame
anchorHandle local word \
push cx
anchorPoints local SrcDestPointDWFixeds
.enter
; Make sure centers of source and dest ObjectTransform
; are the same
;
cmp si, di
je inPlace
push si,di ;source, dest
segmov es,ds,cx
add si,offset OT_center
add di,offset OT_center
MoveConstantNumBytes <size PointDWFixed>, cx
pop si,di ;source, dest
inPlace:
; Calculate the initial position of the anchor point
;
push bp ;stack frame
mov cx,anchorHandle ;cl gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_source]
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Scale the object
;
movwwf dxcx,ss:[bx].GOSD_xScale
mov ax,ss:[bx].GOSD_yScale.WWF_frac
mov bx,ss:[bx].GOSD_yScale.WWF_int
call GrObjOTApplyScaleRelativeOBJECT
; Calc the final position of the anchored point
;
push bp ;stack frame
mov cx,anchorHandle ;ch gets GHS of anchor handle
lea bp,[anchorPoints.SDPDWF_dest]
xchg di,si ;source, dest ObjectTransform
call GrObjOTGetPARENTHandleCoords
pop bp ;stack frame
; Move the object so that the anchored point
; stays in the same place
;
push bp
lea bp,ss:[anchorPoints]
call GrObjOTMoveBackToAnchor
xchg si,di ;source, dest ObjectTransform
pop bp
.leave
ret
GrObjOTScaleRelativeOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjScaleSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys scale factors to data in normal transform and
stores the results in the spriteTransform.
[current matrix][scale]
The scale is applied along the DOCUMENT axes. This will
tend to cause objects to skews as well as scale. See
GrObjScaleSpriteRelative for the scaling normally used.
during interactive resize
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjScaleData
RETURN:
GOI_spriteTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjScaleSpriteRelative proc far
uses ax,di,si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov si,di
mov si,ds:[si].GOI_normalTransform
EC < tst si >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov si,ds:[si]
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
call GrObjOTScaleRelative
.leave
ret
GrObjScaleSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjScaleNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys scale factors to data in normal transform and
stores the results in the normalTransform.
[current matrix][scale]
The scale is applied along the DOCUMENT axes. This will
tend to cause objects to skews as well as scale. See
GrObjScaleNormalRelative for the scaling normally used
during interactive resize
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjScaleData
RETURN:
GOI_normalTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjScaleNormalRelative proc far
uses ax,di,dx
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
push si ;instance chunk
GrObjDeref di,ds,si
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
call GrObjOTScaleRelative
pop si ;instance chunk
.leave
ret
GrObjScaleNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTScaleRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply scale to object information stored in
source ObjectTransform and stores result in the dest
ObjectTransform. Source and dest may be the same structure.
[current matrix][scale]
The scale is applied along the DOCUMENT axes. This will
tend to cause objects to skews as well as scale. See
GrObjOTScaleRelativeOBJECT for the scaling normally used
during interactive resize
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - GrObjScaleData
RETURN:
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTScaleRelative proc near
uses ax,bx,cx,dx
.enter
movwwf dxcx,ss:[bp].GOSD_xScale
movwwf bxax,ss:[bp].GOSD_yScale
call GrObjOTApplyScaleRelative
.leave
ret
GrObjOTScaleRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjMoveNormalBackToAnchor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Move the center of the normalTransform so that the
destination PARENT anchor is where the source PARENT
is.
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - SrcDestPointDWFixeds
SDPDWF_source
SDPDWF_dest
RETURN:
GOI_normalTransform.OT_center - may have changed
ss:bp - SrcDestPointDWFixeds
source - deltas moved
dest - unchanged
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjMoveNormalBackToAnchor proc far
uses si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si at normalTransform and move object
;
AccessNormalTransformChunk si,ds,si
call GrObjOTMoveBackToAnchor
.leave
ret
GrObjMoveNormalBackToAnchor endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTMoveBackToAnchor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Move the center of the ObjectTransform so that the
destination PARENT anchor is where the source PARENT
anchor is.
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ss:bp - SrcDestPointDWFixeds
SDPDWF_source
SDPDWF_dest
RETURN:
ds:si - ObjectTransform - center may have been moved
ss:bp - SrcDestPointDWFixeds
source - deltas moved
dest - unchanged
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
Calc movement of anchor (source anchor- dest anchor)
Move center of object
KNOWN BUGS/SIDE EFFECTS/IDEAS:
The idea here is that the source anchor was calculated
from the original ObjectTransform.
The ObjectTransform was then modified by a resize, rotate,
skew, etc. The dest anchor was then calculated. If we
move back the distance the dest anchor moved then that
point of the object will stay in place.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/24/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTMoveBackToAnchor proc near
uses di
.enter
; Subtract the dest from the source
;
SubDWF ss:[bp].SDPDWF_source.PDF_x, ss:[bp].SDPDWF_dest.PDF_x
SubDWF ss:[bp].SDPDWF_source.PDF_y, ss:[bp].SDPDWF_dest.PDF_y
; Clean out low byte frac cruft
;
RoundDWFtoDWBF ss:[bp].SDPDWF_source.PDF_x.DWF_int.high, \
ss:[bp].SDPDWF_source.PDF_x.DWF_int.low, \
ss:[bp].SDPDWF_source.PDF_x.DWF_frac
RoundDWFtoDWBF ss:[bp].SDPDWF_source.PDF_y.DWF_int.high, \
ss:[bp].SDPDWF_source.PDF_y.DWF_int.low, \
ss:[bp].SDPDWF_source.PDF_y.DWF_frac
; Move the center of ObjectTransform
;
mov di,si ;dest OT = src OT
call GrObjOTMoveRelative
.leave
ret
GrObjOTMoveBackToAnchor endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplySpriteTransform
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply sprite transform information to passed gstate
CALLED BY: INTERNAL
GrObjCalcDWFixedMappedCorners
PASS:
*(ds:si) - instance data
di - gstate
RETURN:
di - gstate with transforms applied
carry set if GrObj's GrObjTransMatrix = I
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
set documentOffset from 32 integer bits draw pt
apply fractional translation of draw pt
rotate object
apply scale factor
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplySpriteTransform proc far
uses si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
AccessSpriteTransformChunk si,ds,si
call GrObjOTApplyObjectTransform
.leave
ret
GrObjApplySpriteTransform endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetGStateFromGrObjTransMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the transform in a gstate from
the data in a GrObjTransMatrix
CALLED BY: INTERNAL UTILITY
PASS: ds:si - GrObjTransMatrix
di - gstate
RETURN:
di - gstate with transform set
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetGStateFromGrObjTransMatrix proc near
uses ds,si,bp,ax,cx
.enter
EC< call ECCheckGStateHandle >
; Create TransMatrix stack frame
;
;
; Fill in the GrObj portion on the TMatrix
;
segmov es, ss
sub sp, size TransMatrix
mov bp, sp ;es:bp <- dest TMatrix
push di ;save gstate
mov di, bp ;es:di <- dest TMatrix
mov cx, (size TransMatrix - size PointDWFixed) / 2
rep movsw
;
; Clear out the PointDWFixed at the end of it
;
mov_tr ax, cx ;ax <- 0
mov cx, size PointDWFixed / 2
rep stosw
; Apply TransMatrix to gstate
;
segmov ds,ss ;TransMatrix segment
mov si,bp ;TransMatrix offset
pop di ;di <- gstate
call GrSetTransform
add sp, size TransMatrix
.leave
ret
GrObjSetGStateFromGrObjTransMatrix endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTSetGrObjTransMatrixFromGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the OT_transform in the passed ObjectTransform
from the GState
CALLED BY: INTERNAL UTILITY
PASS: ds:si - ObjectTransform
di - gstate
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTSetGrObjTransMatrixFromGState proc far
uses si
.enter
add si,offset OT_transform
call GrObjSetGrObjTransMatrixFromGState
.leave
ret
GrObjOTSetGrObjTransMatrixFromGState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetGrObjTransMatrixFromGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the transform in a gstate from
the data in a GrObjTransMatrix
CALLED BY: INTERNAL UTILITY
PASS: ds:si - GrObjTransMatrix
di - gstate
RETURN:
di - gstate with transform set
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetGrObjTransMatrixFromGState proc far
uses dx,di,si,ds,es
.enter
EC < call ECCheckGStateHandle >
segmov es,ds,dx ;GTM segment
mov dx,si ;GTM offset
; Get the transformation from the gstate
sub sp,size TransMatrix
segmov ds,ss,si
mov si,sp
call GrGetTransform
; Copy upper 2x2 from TransMatrix to GrObjTransMatrix
;
mov di,dx ;GTM offset
MoveConstantNumBytes <size GrObjTransMatrix>,dx
add sp, size TransMatrix
.leave
ret
GrObjSetGrObjTransMatrixFromGState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyScaleRelativeOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply scale factor to the the GrObjTransMatrix
in the source ObjectTransform and store
the results in the dest ObjectTransform
[scale][GrObjTransMatrix]
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
dx:cx - WWFixed x scale factor
bx:ax - WWFixed y scale factor
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyScaleRelativeOBJECT proc far
uses di,si
.enter
push di ;dest offset
; Create gstate with GrObjTransMatrix in it
;
clr di
call GrCreateState
add si,offset OT_transform
call GrObjSetGStateFromGrObjTransMatrix
; Apply scale to gstate
;
call GrApplyScale
; Copy transfromation from gstate into dest GrObjTransMatrix
;
pop si ;dest offset
call GrObjOTSetGrObjTransMatrixFromGState
call GrObjOTRemoveCruftFromGrObjTransMatrix
call GrDestroyState
.leave
ret
GrObjOTApplyScaleRelativeOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTRemoveCruftFromGrObjTransMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If values are very close to integers then make then
integers.
This helps with cumulative wwfixed errors. If the user
rotates an object by small degree increments, each
rotation introduces a .5/65536 error into the calculation.
This begins to add up and causes objects that should
be rotated to 90 degrees to be drawn with a one pixel
hitch in their sides.
CALLED BY: INTERNAL UTILITY
PASS: ds:si - ObjectTransform
RETURN:
ds:si - cruftless ObjectTransform
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
All fracs are zero
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 5/ 5/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MIN_REQUIRED_FRAC = 16 ;empirically determined
GrObjOTRemoveCruftFromGrObjTransMatrix proc near
uses cx,ax
.enter
clr cx
cmp ds:[si].OT_transform.GTM_e11.WWF_frac,cx
jne e11NonZero
e12Check:
cmp ds:[si].OT_transform.GTM_e12.WWF_frac,cx
jne e12NonZero
e21Check:
cmp ds:[si].OT_transform.GTM_e21.WWF_frac,cx
jne e21NonZero
e22Check:
cmp ds:[si].OT_transform.GTM_e22.WWF_frac,cx
jne e22NonZero
done:
.leave
ret
e11NonZero:
mov ax,ds:[si].OT_transform.GTM_e11.WWF_frac
cmp ax,MIN_REQUIRED_FRAC
jb e11ClrFrac
cmp ax,-MIN_REQUIRED_FRAC
jbe e12Check
inc ds:[si].OT_transform.GTM_e11.WWF_int
e11ClrFrac:
mov ds:[si].OT_transform.GTM_e11.WWF_frac,cx
jmp e12Check
e12NonZero:
mov ax,ds:[si].OT_transform.GTM_e12.WWF_frac
cmp ax,MIN_REQUIRED_FRAC
jb e12ClrFrac
cmp ax,-MIN_REQUIRED_FRAC
jbe e21Check
inc ds:[si].OT_transform.GTM_e12.WWF_int
e12ClrFrac:
mov ds:[si].OT_transform.GTM_e12.WWF_frac,cx
jmp e21Check
e21NonZero:
mov ax,ds:[si].OT_transform.GTM_e21.WWF_frac
cmp ax,MIN_REQUIRED_FRAC
jb e21ClrFrac
cmp ax,-MIN_REQUIRED_FRAC
jbe e22Check
inc ds:[si].OT_transform.GTM_e21.WWF_int
e21ClrFrac:
mov ds:[si].OT_transform.GTM_e21.WWF_frac,cx
jmp e22Check
e22NonZero:
mov ax,ds:[si].OT_transform.GTM_e22.WWF_frac
cmp ax,MIN_REQUIRED_FRAC
jb e22ClrFrac
cmp ax,-MIN_REQUIRED_FRAC
jbe done
inc ds:[si].OT_transform.GTM_e22.WWF_int
e22ClrFrac:
mov ds:[si].OT_transform.GTM_e22.WWF_frac,cx
jmp done
GrObjOTRemoveCruftFromGrObjTransMatrix endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyScaleRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply GrObjTransMatrix to the scale factor
in the source ObjectTransform and store
the results in the dest ObjectTransform
[GrObjTransMatrix][scale]
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
dx:cx - WWFixed x scale factor
bx:ax - WWFixed y scale factor
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyScaleRelative proc far
uses di,si
.enter
push di ;dest offset
; Create gstate with scale in it
;
clr di
call GrCreateState
call GrApplyScale
; Apply GrObjTransMatrix to gstate
;
call GrObjOTApplyGrObjTransMatrix
; Copy transfromation from gstate into dest GrObjTransMatrix
;
pop si ;dest offset
call GrObjOTSetGrObjTransMatrixFromGState
call GrObjOTRemoveCruftFromGrObjTransMatrix
call GrDestroyState
.leave
ret
GrObjOTApplyScaleRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyRotateRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply rotate to the the GrObjTransMatrix
in the source ObjectTransform and store
the results in the dest ObjectTransform.
The rotation must be applied before
the existing transformation to keep the
user from going insane.
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
dx:cx - WWFixed rotate degrees delta
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyRotateRelative proc far
uses di,si
.enter
push di ;dest offset
; Create gstate and apply rotation to it
;
clr di
call GrCreateState
call GrApplyRotation
; Apply the source GrObjTransMatrix to the gstate
;
call GrObjOTApplyGrObjTransMatrix
; Copy transfromation from gstate into dest GrObjTransMatrix
;
pop si ;dest offset
call GrObjOTSetGrObjTransMatrixFromGState
call GrObjOTRemoveCruftFromGrObjTransMatrix
call GrDestroyState
.leave
ret
GrObjOTApplyRotateRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplySkewRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply skew to the the GrObjTransMatrix
in the source ObjectTransform and store
the results in the dest ObjectTransform
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
dx:cx - WWFixed x skew degrees
bx:ax - WWFixed y skew degrees
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplySkewRelative proc far
uses ax,bx,cx,dx,di,si
.enter
push di ;dest offset
clr di ;no window
call GrCreateState
; Create TransMatrix with skew values in it
;
push ds,si
sub sp,size TransMatrix
segmov ds,ss,si
mov si,sp
call GrObjGlobalInitTransMatrix
xchg ax,cx ;x degrees frac, y degrees frac
call GrQuickTangent
movwwf ds:[si].TM_e21,dxax
movwwf dxax,bxcx ;y degrees
call GrQuickTangent
negwwf dxax ;our coord system in upside down
movwwf ds:[si].TM_e12,dxax
; Apply skew to gstate
;
call GrApplyTransform
add sp,size TransMatrix
pop ds,si
call GrObjOTApplyGrObjTransMatrix
; Copy transfromation from gstate into dest GrObjTransMatrix
;
pop si ;dest offset
call GrObjOTSetGrObjTransMatrixFromGState
call GrObjOTRemoveCruftFromGrObjTransMatrix
call GrDestroyState
.leave
ret
GrObjOTApplySkewRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyNormalTransformSansCenterTranslation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply transform information to passed gstate
CALLED BY: INTERNAL
GrObjApplyNormalTransform
GrObjApplySpriteTransform
PASS:
*ds:si - ObjectTransform or ObjectFullTransform
di - gstate
RETURN:
di - gstate with transforms applied
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyNormalTransformSansCenterTranslation proc far
uses si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
EC < call ECCheckGStateHandle >
AccessNormalTransformChunk si,ds,si
call GrObjOTApplyGrObjTransMatrix
.leave
ret
GrObjApplyNormalTransformSansCenterTranslation endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyTranslationToNormalCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the document offset given a ObjectTransform
CALLED BY: INTERNAL
GrObjOTApplyObjectTransform
PASS:
*ds:si - object
di - gstate
RETURN:
di - documentOffset set
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyTranslationToNormalCenter proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTApplyTranslationToCenter
.leave
ret
GrObjApplyTranslationToNormalCenter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyTranslationToSpriteCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the document offset given a ObjectTransform
CALLED BY: INTERNAL
GrObjOTApplyObjectTransform
PASS:
*ds:si - object
di - gstate
RETURN:
di - gstate translated to objects center
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyTranslationToSpriteCenter proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessSpriteTransformChunk si,ds,si
call GrObjOTApplyTranslationToCenter
.leave
ret
GrObjApplyTranslationToSpriteCenter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetSpriteOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the dimensions of the object in the OBJECT coordinate
system defined by the spriteTransform
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetSpriteOBJECTDimensions proc far
class GrObjClass
uses si
.enter
AccessSpriteTransformChunk si,ds,si
call GrObjOTGetOBJECTDimensions
.leave
ret
GrObjGetSpriteOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetNormalOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the objects width and height in the unflipped OBJECT
coordinate system.
Use the OBJECT coord system defined by the normal transform
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
dx:cx - width
bx:ax - height
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetNormalOBJECTDimensions proc far
class GrObjClass
uses si
.enter
call ObjMarkDirty
AccessNormalTransformChunk si,ds,si
call GrObjOTSetOBJECTDimensions
.leave
ret
GrObjSetNormalOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetSpriteOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the objects width and height in the unflipped OBJECT
coordinate system.
Use the OBJECT coord system defined by the sprite transform
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
dx:cx - width
bx:ax - height
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetSpriteOBJECTDimensions proc far
class GrObjClass
uses si
.enter
call ObjMarkDirty
AccessSpriteTransformChunk si,ds,si
call GrObjOTSetOBJECTDimensions
.leave
ret
GrObjSetSpriteOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTSetOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the objects width and height in the unflipped OBJECT
coordinate system.
CALLED BY: INTERNAL (UTILITY)
PASS:
ds:si - ObjectTransform
dx:cx - width
bx:ax - height
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTSetOBJECTDimensions proc near
class GrObjClass
.enter
mov ds:[si].OT_width.WWF_int,dx
mov ds:[si].OT_width.WWF_frac,cx
mov ds:[si].OT_height.WWF_int,bx
mov ds:[si].OT_height.WWF_frac,ax
.leave
ret
GrObjOTSetOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetNormalCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the objects center
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
ss:bp - PointDWFixed
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetNormalCenter proc far
class GrObjClass
uses si
.enter
AccessNormalTransformChunk si,ds,si
call GrObjOTSetCenter
.leave
ret
GrObjSetNormalCenter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetSpriteCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the object's center.
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
ss:bp - PointDWFixed
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetSpriteCenter proc far
class GrObjClass
uses si
.enter
AccessSpriteTransformChunk si,ds,si
call GrObjOTSetCenter
.leave
ret
GrObjSetSpriteCenter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTSetCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the objects center.
CALLED BY: INTERNAL (UTILITY)
PASS:
ds:si - ObjectTransform
ss:bp - PointDWFixed
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTSetCenter proc near
class GrObjClass
uses cx,di,si,ds,es
.enter
segmov es,ds
segmov ds,ss
mov di,si
addnf di,<offset OT_center>
mov si,bp
MoveConstantNumBytes <size PointDWFixed>,cx
.leave
ret
GrObjOTSetCenter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertNormalPARENTToWWFCENTERRELATIVE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert point in PARENT coordinate system to one
relative to the objects center.
CALLED BY: INTERNAL (UTILITY)
PASS: *ds:si - object
ss:bp - PointDWFixed
RETURN:
stc - point successfully convert and fits in WWF
dx:cx - WWFixed x
bx:ax - WWFixed y
clc - point won't fit in WWFixed
ax,bx,cx,dx - destroyed
DESTROYED:
see RETURN
PSEUDO CODE/STRATEGY:
A DWFixed value cannot be converted to a WWFixed value
unless the sign extension of the low int is equal
to the high int.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
because it is used during handle hit detection
Common cases:
The resulting CENTER RELATIVE point will fit in WWF
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 1/17/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertNormalPARENTToWWFCENTERRELATIVE proc far
class GrObjClass
uses di
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk di,ds,si
MovDWF cx,ax,bx,ss:[bp].PDF_x
SubDWF cx,ax,bx,ds:[di].OT_center.PDF_x
cwd ;sign extend low int
cmp dx,cx ;sign extend low, high
jne fail
push ax,bx ;x CR int,frac
MovDWF cx,ax,bx,ss:[bp].PDF_y
SubDWF cx,ax,bx,ds:[di].OT_center.PDF_y
cwd ;sign extend low int
cmp dx,cx ;sign extend low, high
jne fail
xchg ax,bx ;y CR frac, y CR int
pop dx,cx ;x CR int, frac
stc
done:
.leave
ret
fail:
clc
jmp done
GrObjConvertNormalPARENTToWWFCENTERRELATIVE endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTConvertVectorPARENTToOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a vector in PARENT coords to point in OBJECT coords
CALLED BY: INTERNAL
GrObjOTCalcInteractiveSizeChange
PASS:
ds:si - ObjectTransform
ss:bp - PointDWFixed in PARENT coords
RETURN:
ss:bp - PointDWFixed in OBJECT coords
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/ 3/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTConvertVectorPARENTToOBJECT proc far
uses dx,di,es
.enter
clr di ;no window
call GrCreateState
segmov es,ss,dx
mov dx,bp
call GrObjOTApplyGrObjTransMatrix
call GrUntransformDWFixed
call GrDestroyState
.leave
ret
GrObjOTConvertVectorPARENTToOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertNormalWWFVectorPARENTToOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a vector from PARENT coords to OBJECT using
the normalTransform
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
dx:cx - WWFixed x in PARENT
bx:ax - WWFixed y in PARENT
RETURN:
dx:cx - WWFixed x in OBJECT
bx:ax - WWFixed y in OBJECT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/ 6/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertNormalWWFVectorPARENTToOBJECT proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTConvertWWFVectorPARENTToOBJECT
.leave
ret
GrObjConvertNormalWWFVectorPARENTToOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTConvertWWFVectorPARENTToOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a vector in PARENT coords to point in OBJECT coords
CALLED BY: INTERNAL
GrObjConvertNormalWWFVectorPARENTToOBJECT
PASS:
ds:si - ObjectTransform
dx:cx - WWFixed x in PARENT
bx:ax - WWFixed y in PARENT
RETURN:
dx:cx - WWFixed x in OBJECT
bx:ax - WWFixed y in OBJECT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/ 3/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTConvertWWFVectorPARENTToOBJECT proc near
uses di
.enter
clr di ;no window
call GrCreateState
call GrObjOTApplyGrObjTransMatrix
call GrUntransformWWFixed
call GrDestroyState
.leave
ret
GrObjOTConvertWWFVectorPARENTToOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjRulePoint
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send the passed point to the ruler
CALLED BY: INTERNAL
PASS:
*ds:si - object
ss:bp - PointDWFixed in DOCUMENT
cx = VisRulerConstrainStrategy
RETURN:
ss:bp - snapped PointDWFixed in DOCUMENT
carry set if point was snapped
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
jon 8 jan 92 initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjRulePoint proc far
class GrObjClass
uses ax, di
.enter
; Tell the ruler to snap to our point
;
mov ax, MSG_VIS_RULER_RULE_LARGE_PTR
mov di, mask MF_FIXUP_DS
call GrObjMessageToRuler
;
; Test to see if the ruler might have done anything
;
test cx, VRCS_MOUSE_TWEAKING_FLAGS
jz done
stc
done:
.leave
ret
GrObjRulePoint endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertNormalOBJECTToPARENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a PointDWFixed in OBJECT through the normal
transform into PARENT
CALLED BY: INTERNAL
PASS:
*ds:si - object
ss:bp - PointDWFixed in OBJECT
RETURN:
ss:bp - PointDWFixed in PARENT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertNormalOBJECTToPARENT proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
; Point ds:si at normalTransform and convert
;
AccessNormalTransformChunk si,ds,si
call GrObjOTConvertOBJECTToPARENT
.leave
ret
GrObjConvertNormalOBJECTToPARENT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertSpriteOBJECTToPARENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a PointDWFixed in OBJECT through the normal
transform into PARENT
CALLED BY: INTERNAL
PASS:
*ds:si - object
ss:bp - PointDWFixed in OBJECT
RETURN:
ss:bp - PointDWFixed in PARENT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertSpriteOBJECTToPARENT proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
; Point ds:si at spriteTransform and convert
;
AccessSpriteTransformChunk si,ds,si
call GrObjOTConvertOBJECTToPARENT
.leave
ret
GrObjConvertSpriteOBJECTToPARENT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTConvertOBJECTToPARENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a PointDWFixed in OBJECT to PARENT coords
CALLED BY: INTERNAL
GrObjConvertNormalOBJECTToPARENT
GrObjConvertSpriteOBJECTToPARENT
PASS:
ds:si - ObjectTransform
ss:bp - PointDWFixed in OBJECT
RETURN:
ss:bp - PointDWFixed in PARENT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTConvertOBJECTToPARENT proc far
uses dx,di,es
.enter
clr di
call GrCreateState
call GrObjOTApplyObjectTransform
segmov es,ss,dx
mov dx,bp
call GrTransformDWFixed
call GrDestroyState
.leave
ret
GrObjOTConvertOBJECTToPARENT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetOBJECTDimensionsAndIdentityMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the passed width and height in the objects
normal instance data and reset the GrObjTransMatrix to
the Identity matrix
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - grobject
dx:cx - WWFixed width in OBJECT
bx:ax - WWFixed height in OBJECT
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 4/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetOBJECTDimensionsAndIdentityMatrix proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
; It causes nasty trouble with the resize code if the
; width or height is exactly zero, so set it to one
;
tst dx
jnz setWidth
tst cx
jnz setWidth
mov dx,1
setWidth:
mov ds:[si].OT_width.WWF_int,dx
mov ds:[si].OT_width.WWF_frac,cx
tst bx
jnz setHeight
tst ax
jnz setHeight
mov bx,1
setHeight:
mov ds:[si].OT_height.WWF_int,bx
mov ds:[si].OT_height.WWF_frac,ax
add si,offset OT_transform
call GrObjGlobalInitGrObjTransMatrix
.leave
ret
GrObjSetOBJECTDimensionsAndIdentityMatrix endp
GrObjRequiredExtInteractiveCode ends
GrObjDrawCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetNormalOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the dimensions of the object in the OBJECT coordinate
system defined by the normalTransform
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetNormalOBJECTDimensions proc far
class GrObjClass
uses si
.enter
AccessNormalTransformChunk si,ds,si
call GrObjOTGetOBJECTDimensions
.leave
ret
GrObjGetNormalOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTGetOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the objects dimensions in the OBJECT coordinate system
CALLED BY: INTERNAL
GrObjGetSpriteOBJECTDimensions
GrObjGetNormalOBJECTDimensions
PASS:
ds:si - ObjectTransform
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTGetOBJECTDimensions proc far
class GrObjClass
.enter
mov dx,ds:[si].OT_width.WWF_int
mov cx,ds:[si].OT_width.WWF_frac
mov bx,ds:[si].OT_height.WWF_int
mov ax,ds:[si].OT_height.WWF_frac
.leave
ret
GrObjOTGetOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyNormalTransform
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply normal transform information to passed gstate
CALLED BY: INTERNAL
GrObjCalcDWFixedMappedCorners
PASS:
*(ds:si) - instance data
di - gstate
RETURN:
di - gstate with transforms applied
carry set if passed GrObjTransMatrix = I
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
set documentOffset from 32 integer bits draw pt
apply fractional translation of draw pt
rotate object
apply scale factor
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyNormalTransform proc far
uses si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTApplyObjectTransform
.leave
ret
GrObjApplyNormalTransform endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyObjectTransform
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply transform information to passed gstate
CALLED BY: INTERNAL
GrObjApplyNormalTransform
GrObjApplySpriteTransform
PASS:
ds:si - ObjectTransform or ObjectFullTransform
di - gstate
RETURN:
di - gstate with transforms applied
carry set if passed GrObjTransMatrix = I
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyObjectTransform proc far
class GrObjClass
.enter
EC < call ECCheckGStateHandle >
call GrObjOTApplyTranslationToCenter
call GrObjOTApplyGrObjTransMatrix
.leave
ret
GrObjOTApplyObjectTransform endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyGrObjTransMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply the GrObjTransMatrix stored in the ObjectTransform
to the passed gstate
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - ObjectTransform
di - gstate
RETURN:
di - gstate with transform applied
carry set if passed GrObjTransMatrix = I
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyGrObjTransMatrix proc far
uses si
.enter
add si,offset OT_transform
call GrObjApplyGrObjTransMatrix
.leave
ret
GrObjOTApplyGrObjTransMatrix endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyGrObjTransMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply a GrObjTransMatrix to a gstate
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - GrObjTransMatrix
di - gstate
RETURN:
di - gstate with transform applied
carry set if passed GrObjTransMatrix = I
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyGrObjTransMatrix proc near
uses ax
.enter
; If the GrObjTransMatrix is the identity matrix then
; do nothing
;
call GrObjCheckGrObjTransMatrixForIdentity
jnc notIdentity
done:
.leave
ret
notIdentity:
; If the gstate passed is actually a gstring we cannot
; do some special optimizations
;
call GrGetGStringHandle
tst ax ;gstring handle
jnz itsAGString
call GrObjApplyGrObjTransMatrixToGState
clc ;not identity
jmp done
itsAGString:
call GrObjApplyGrObjTransMatrixToGString
clc ;not identity
jmp done
GrObjApplyGrObjTransMatrix endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyGrObjTransMatrixToGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply a GrObjTransMatrix to a gstate that is
not a gstring. This routine uses an optimization
that requires a GrSetTransform which is bad
for gstrings.
This routine does not optimize for the case of
the passed GrObjTransMatrix being the identity
matrix. Currently this is handled in
GrObjApplyGrObjTransMatrix.
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - GrObjTransMatrix
di - gstate that is not a gstring
RETURN:
di - gstate with transform applied
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
if the gstates upper 2x2 matrix is the identity matrix then
copy GrObjTransMatrix to the upper 2x2 of gstate
else
mult GrObjTransMatrix 2x2 by the gstate 2x2
since GrObjTransMatrix has no translation we
can skip that portion of the matrix multiplication.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
jon 4/ 1/92 Initial version
srs 9/17/92 Broke out of GrObjApplyGrObjTransMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyGrObjTransMatrixToGState proc near
uses ax, cx, dx, si, es, ds
.enter
;
; es:ax <- GrObjTransMatrix
;
segmov es, ds, ax
mov_tr ax, si
;
; ds:si <- gstate's TransMatrix
;
sub sp, 2 * size TransMatrix
segmov ds, ss, si
mov si, sp
call GrGetTransform
xchg di, ax ;es:di <- GrObjTransMatrix
;ax <- gstate
;
; If the gstate's 2x2 matrix = I, then we just
; want to copy our GrObjTransMatrix to the gstate
;
call GrObjCheckGrObjTransMatrixForIdentity
jnc doMul
;
; ds:si <- GTM, es:di <- TM, then copy
;
segxchg es, ds
xchg si, di
mov cx, size GrObjTransMatrix / 2
push di ;save dest TransMatrix
rep movsw
segmov ds, es, si
pop si ;ds:si <- dest TransMatrix
mov_tr di, ax ;di <- gstate
jmp setTransform
doMul:
;
; dxcx <- (GTM_e11) * (TM_e11)
;
call GrMulWWFixedPtr
mov ds:[si][(size TransMatrix)].TM_e11.WWF_int, dx
mov ds:[si][(size TransMatrix)].TM_e11.WWF_frac, cx
;
; es:di <- GTM_e21
;
add di, offset GTM_e21
;
; dxcx <- (GTM_e21) * (TM_e11)
;
call GrMulWWFixedPtr
mov ds:[si][(size TransMatrix)].TM_e21.WWF_int, dx
mov ds:[si][(size TransMatrix)].TM_e21.WWF_frac, cx
;
; ds:si <- TM_e12
;
add si, offset TM_e12
;
; dxcx <- (GTM_e21) * (TM_e12)
;
call GrMulWWFixedPtr
mov ds:[(size TransMatrix - offset TM_e12)][si].TM_e22.WWF_int,dx
mov ds:[(size TransMatrix - offset TM_e12)][si].TM_e22.WWF_frac,cx
;
; es:di <- GTM_e11
;
sub di, offset GTM_e21
;
; dxcx <- (GTM_e11) * (TM_e12)
;
call GrMulWWFixedPtr
mov ds:[(size TransMatrix - offset TM_e12)][si].TM_e12.WWF_int, dx
mov ds:[(size TransMatrix - offset TM_e12)][si].TM_e12.WWF_frac, cx
;
; ds:si <- TM_e21
;
add si, offset TM_e21 - offset TM_e12
;
; es:di <- GTM_e12
;
add di, offset GTM_e12
;
; dxcx <- (GTM_e12) * (TM_e21)
;
call GrMulWWFixedPtr
add ds:[(size TransMatrix - offset TM_e21)][si].TM_e11.WWF_frac, cx
adc ds:[(size TransMatrix - offset TM_e21)][si].TM_e11.WWF_int, dx
;
; es:di <- GTM_e22
;
add di, offset GTM_e22 - offset GTM_e12
;
; dxcx <- (GTM_e22) * (TM_e21)
;
call GrMulWWFixedPtr
add ds:[(size TransMatrix - offset TM_e21)][si].TM_e21.WWF_frac, cx
adc ds:[(size TransMatrix - offset TM_e21)][si].TM_e21.WWF_int, dx
;
; ds:si <- TM_e22
;
add si, offset TM_e22 - offset TM_e21
;
; dxcx <- (GTM_e22) * (TM_e22)
;
call GrMulWWFixedPtr
add ds:[(size TransMatrix - offset TM_e22)][si].TM_e22.WWF_frac, cx
adc ds:[(size TransMatrix - offset TM_e22)][si].TM_e22.WWF_int, dx
;
; es:di <- GTM_e12
;
sub di, offset GTM_e22 - offset GTM_e12
;
; dxcx <- (GTM_e12) * (TM_e22)
;
call GrMulWWFixedPtr
add ds:[(size TransMatrix - offset TM_e22)][si].TM_e12.WWF_frac, cx
adc ds:[(size TransMatrix - offset TM_e22)][si].TM_e12.WWF_int, dx
;
; Set the new transform
;
add si, size TransMatrix - offset TM_e22
mov_tr di, ax ;di <- gstate
;
; Copy the e31 and e32 elements from the returned transform
; to the new one
;
mov ax, ds:[si - (size TransMatrix)].TM_e31.DWF_int.high
mov ds:[si].TM_e31.DWF_int.high, ax
mov ax, ds:[si - (size TransMatrix)].TM_e31.DWF_int.low
mov ds:[si].TM_e31.DWF_int.low, ax
mov ax, ds:[si - (size TransMatrix)].TM_e31.DWF_frac
mov ds:[si].TM_e31.DWF_frac, ax
mov ax, ds:[si - (size TransMatrix)].TM_e32.DWF_int.high
mov ds:[si].TM_e32.DWF_int.high, ax
mov ax, ds:[si - (size TransMatrix)].TM_e32.DWF_int.low
mov ds:[si].TM_e32.DWF_int.low, ax
mov ax, ds:[si - (size TransMatrix)].TM_e32.DWF_frac
mov ds:[si].TM_e32.DWF_frac, ax
setTransform:
call GrSetTransform
add sp, 2 * size TransMatrix
.leave
ret
GrObjApplyGrObjTransMatrixToGState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjApplyGrObjTransMatrixToGString
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply a GrObjTransMatrix to a gstring. When performing
graphics operations on a gstring, certain commands
like GrSetTransform cannot be used. So we can't
do any of our nifty optimizations
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - GrObjTransMatrix
di - gstate that is a gstring
RETURN:
di - gstate with transform applied
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjApplyGrObjTransMatrixToGString proc near
uses ds,si,bp,ax,cx,es
.enter
EC< call ECCheckGStateHandle >
; Create TransMatrix stack frame and
; fill in the GrObj portion on the TMatrix
;
segmov es, ss
sub sp, size TransMatrix
mov bp, sp ;es:bp <- dest TMatrix
push di ;save gstate
mov di, bp ;es:di <- dest TMatrix
mov cx, (size TransMatrix - size PointDWFixed) / 2
rep movsw
; Clear out the PointDWFixed at the end of it
;
mov_tr ax, cx ;ax <- 0
mov cx, size PointDWFixed / 2
rep stosw
; Apply TransMatrix to gstate
;
segmov ds,ss ;TransMatrix segment
mov si,bp ;TransMatrix offset
pop di ;di <- gstate
call GrApplyTransform
add sp,size TransMatrix
.leave
ret
GrObjApplyGrObjTransMatrixToGString endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCheckGrObjTransMatrixForIdentity
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine if a GrObjTransMatrix is the identity matrix
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - GrObjTransMatrix
RETURN:
stc - identity
clc - not
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
This routine is *extremely* sensitive to the
structure of a GrObjTransMatrix.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 4/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCheckGrObjTransMatrixForIdentity proc far
uses ax
.enter
clr ax
cmp ds:[si].GTM_e11.WWF_frac, ax
jne fail
cmp ds:[si].GTM_e12.WWF_int, ax
jne fail
cmp ds:[si].GTM_e12.WWF_frac, ax
jne fail
cmp ds:[si].GTM_e21.WWF_int, ax
jne fail
cmp ds:[si].GTM_e21.WWF_frac, ax
jne fail
cmp ds:[si].GTM_e22.WWF_frac, ax
jne fail
inc ax
cmp ds:[si].GTM_e11.WWF_int,ax
jne fail
cmp ds:[si].GTM_e22.WWF_int,ax
jne fail
stc
jmp done
fail:
clc
done:
.leave
ret
GrObjCheckGrObjTransMatrixForIdentity endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTApplyTranslationToCenter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the document offset given a ObjectTransform
CALLED BY: INTERNAL
GrObjOTApplyObjectTransform
GrObjApplyTranslationToNormalCenter
PASS:
ds:si - ObjectTransform
di - gstate
RETURN:
di - gstate with translation to center
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTApplyTranslationToCenter proc far
uses ax,bx,cx,dx
.enter
; If translation can be accurately represented in WWFixed
; then just use GrApplyTranslation
;
mov ax,ds:[si].OT_center.PDF_y.DWF_int.low
cwd
cmp dx,ds:[si].OT_center.PDF_y.DWF_int.high
jne dwordTranslation
mov bx,ax ;y int low
mov ax,ds:[si].OT_center.PDF_x.DWF_int.low
cwd
cmp dx,ds:[si].OT_center.PDF_x.DWF_int.high
jne dwordTranslation
mov dx,ax ;x int low
normalFrac:
mov cx,ds:[si].OT_center.PDF_x.DWF_frac
mov ax,ds:[si].OT_center.PDF_y.DWF_frac
call GrApplyTranslation
.leave
ret
dwordTranslation:
mov dx,ds:[si].OT_center.PDF_x.DWF_int.high
mov bx,ds:[si].OT_center.PDF_y.DWF_int.high
mov cx,ds:[si].OT_center.PDF_x.DWF_int.low
mov ax,ds:[si].OT_center.PDF_y.DWF_int.low
call GrApplyTranslationDWord
clr dx,bx
jmp normalFrac
GrObjOTApplyTranslationToCenter endp
GrObjDrawCode ends
GrObjRequiredInteractiveCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertNormalPARENTToWWFOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert PointDWF in PARENT coords into PointWWF in OBJECT
CALLED BY: INTERNAL (UTILITY)
PASS: *ds:si - object
ss:bx - PARENT PointDWFixed
ss:bp - PointWWFixed struct
RETURN:
ss:bx - PARENT PointDWFixed unchanged
stc - point successfully converted to WWF
ss:bp - OBJECT PointWWFixed
clc - point won't fit in WWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 1/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertNormalPARENTToWWFOBJECT proc far
point local PointDWFixed
uses ax,dx,di
.enter
mov di,ss:[bp] ;orig bp, PointWWFixed frame
; Copy PARENT point to local frame and convert copy in
; local frame to OBJECT
;
MovDWF point.PDF_x, ss:[bx].PDF_x,ax
MovDWF point.PDF_y, ss:[bx].PDF_y,ax
mov ax,bp ;local stack frame
lea bp,ss:[point]
call GrObjConvertNormalPARENTToOBJECT
mov_tr bp,ax ;local stack frame
; If the sign extended low int does not equal the high int
; then the value cannot fit in WWFixed. If value fits then
; copy it to PointWWFixed frame
;
mov ax,point.PDF_x.DWF_int.low
cwd
cmp dx, point.PDF_x.DWF_int.high
jne fail
mov ss:[di].PF_x.WWF_int,ax
mov ax,point.PDF_x.DWF_frac
mov ss:[di].PF_x.WWF_frac,ax
mov ax,point.PDF_y.DWF_int.low
cwd
cmp dx, point.PDF_y.DWF_int.high
jne fail
mov ss:[di].PF_y.WWF_int,ax
mov ax,point.PDF_y.DWF_frac
mov ss:[di].PF_y.WWF_frac,ax
stc
done:
.leave
ret
fail:
clc
jmp done
GrObjConvertNormalPARENTToWWFOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertNormalPARENTToOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert point from PARENT coords to OBJECT using
the normalTransform
CALLED BY: INTERNAL
PASS:
*ds:si - object
ss:bp - PointDWFixed in PARENT
RETURN:
ss:bp - PointDWFixed in OBJECT
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/ 6/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertNormalPARENTToOBJECT proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTConvertPARENTToOBJECT
.leave
ret
GrObjConvertNormalPARENTToOBJECT endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTConvertPARENTToOBJECT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert point in PARENT coords to point in OBJECT coords
CALLED BY: INTERNAL
GrObjConvertNormalPARENTToOBJECT
PASS:
ds:si - ObjectTransform
ss:bp - PointDWFixed in PARENT coords
RETURN:
ss:bp - PointDWFixed in OBJECT coords
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/ 3/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTConvertPARENTToOBJECT proc near
uses dx,di,es
.enter
clr di ;no window
call GrCreateState
segmov es,ss,dx
mov dx,bp
call GrObjOTApplyObjectTransform
call GrUntransformDWFixed
call GrDestroyState
.leave
ret
GrObjOTConvertPARENTToOBJECT endp
GrObjRequiredInteractiveCode ends
GrObjGroupCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjTransformSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys transform to data in normalTransform and stores
the results in the spriteTransform
CALLED BY: INTERNAL
GrObjPtrTransform
PASS:
*(ds:si) - instance data
ss:bp - TransMatrix
RETURN:
in spriteTransform
transform may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjTransformSpriteRelative proc far
class GrObjClass
uses di,si
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Get offset of spriteTransform in di
;
GrObjDeref di,ds,si
mov si,di
mov di,ds:[di].GOI_spriteTransform
mov di,ds:[di]
EC < tst di >
EC < ERROR_Z MISSING_SPRITE_TRANSFORM_CHUNK >
; Point ds:si at normalTransform and do transform
;
mov si,ds:[si].GOI_normalTransform
mov si,ds:[si]
call GrObjOTTransformRelative
.leave
ret
GrObjTransformSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjTransformNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys transform to data in normalTransform and stores
the results back in the normalTransform.
CALLED BY: INTERNAL
GrObjEndTransform
PASS:
*(ds:si) - instance data
ss:bp - TransMatrix
RETURN:
in normalTransform
transform may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjTransformNormalRelative proc far
class GrObjClass
uses ax,di
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and transform object
;
push si ;instance chunk
AccessNormalTransformChunk si,ds,si
mov di,si
call GrObjOTTransformRelative
pop si ;instance chunk
.leave
ret
GrObjTransformNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTTransformRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Pre-Apply transform to object transform stored in source
ObjectTransform and stores the result in the
dest ObjectTransform. Source and dest may be the
same structure
CALLED BY: INTERNAL
GrObjTransformNormalRelative
GrObjTransformSpriteRelative
PASS:
ds:si - source ObjectTransform or ObjectFullTransform
ds:di - dest ObjectTransform or ObjectFullTransform
ss:bp - TransMatrix
RETURN:
ds:di.OT_center - may have changed
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common Cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/14/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTTransformRelative proc near
uses bx,di,si
.enter
mov bx,di ;dest offset
; Create null gstate and apply passed transform to it
;
push ds,si ;source fptr
clr di ;no window
call GrCreateState
segmov ds,ss ;GTM segment
mov si,bp ;GTM offset
call GrApplyTransform
pop ds,si ;source fptr
; Transform the source center through the transform
; and store it in dest.
;
call GrObjOTGStateTransformCenterRelative
; Apply source transform to gstate
; and copy the transformation into dest transform
;
call GrObjOTApplyGrObjTransMatrix
mov si,bx ;dest offset
call GrObjOTSetGrObjTransMatrixFromGState
; Destroy temporary gstate
;
call GrDestroyState
.leave
ret
GrObjOTTransformRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTGStateTransformCenterRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Transform the center of the source ObjecTransform through
the gstate and store in dest ObjectTransform
CALLED BY: INTERNAL
GrObjOTTransformRelative
PASS:
ds:si - source ObjectTransform
ds:bx - dest ObjectTransform
di - gstate
RETURN:
ds:bx.OT_center - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTGStateTransformCenterRelative proc near
uses bx,dx,si,es
.enter
; Copy source center to dest center
;
push bx ;dest offset
add si,offset OT_center
xchg bx,di ;gstate, dest offset
add di,offset OT_center
segmov es,ds,dx
MoveConstantNumBytes <size PointDWFixed>,dx
mov di,bx ;gstate
pop dx ;dest offset
; Transform the center in place in the dest
;
add dx,offset OT_center
call GrTransformDWFixed
.leave
ret
GrObjOTGStateTransformCenterRelative endp
GrObjGroupCode ends
GrObjExtNonInteractiveCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSkewSpriteRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys skew deltas to data in normal transform and
stores the results in the spriteTransform
[current matrix][skew]
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjSkewData
RETURN:
GOI_spriteTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSkewSpriteRelative proc far
uses ax,di,si
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
GrObjDeref di,ds,si
mov si,di
mov si,ds:[si].GOI_normalTransform
EC < tst si >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov si,ds:[si]
mov di,ds:[di].GOI_spriteTransform
EC < tst di >
EC < ERROR_Z SPRITE_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
call GrObjOTSkewRelative
.leave
ret
GrObjSkewSpriteRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSkewNormalRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Applys skew deltas to data in normal transform and
stores the results in the normalTransform
[current matrix][skew]
CALLED BY: INTERNAL UTILITY
PASS:
*(ds:si) - instance data
ss:bp - GrObjSkewData
RETURN:
GOI_normalTransform.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSkewNormalRelative proc far
uses ax,di,dx
class GrObjClass
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
; Point ds:si and ds:di at normalTransform and move object
;
push si ;instance chunk
GrObjDeref di,ds,si
mov di,ds:[di].GOI_normalTransform
EC < tst di >
EC < ERROR_Z NORMAL_TRANSFORM_DOESNT_EXIST >
mov di,ds:[di]
mov si,di
call GrObjOTSkewRelative
pop si ;instance chunk
.leave
ret
GrObjSkewNormalRelative endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTSkewRelative
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apply skew to object information stored in
source ObjectTransform and stores result in the dest
ObjectTransform. Source and dest may be the same structure.
[current matrix][skew]
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - source ObjectTransform
ds:di - dest ObjectTransform
ss:bp - GrObjSkewData
RETURN:
ds:di.OT_transform - may have changed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/23/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTSkewRelative proc near
uses ax,bx,cx,dx,es
.enter
; Make sure centers of source and dest ObjectTransforms
; are the same
;
cmp si, di
je inPlace
push si,di ;source, dest
segmov es,ds,cx
add si,offset OT_center
add di,offset OT_center
MoveConstantNumBytes <size PointDWFixed>, cx
pop si,di ;source, dest
inPlace:
; Skew the object
;
movwwf dxcx,ss:[bp].GOSD_xDegrees
mov ax,ss:[bp].GOSD_yDegrees.WWF_frac
mov bx,ss:[bp].GOSD_yDegrees.WWF_int
call GrObjOTApplySkewRelative
.leave
ret
GrObjOTSkewRelative endp
GrObjExtNonInteractiveCode ends
GrObjInitCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetAbsNormalOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the absolute value of the dimensions of the
object in the OBJECT coordinate system
defined by the normalTransform
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetAbsNormalOBJECTDimensions proc far
class GrObjClass
uses si
.enter
AccessNormalTransformChunk si,ds,si
call GrObjOTGetAbsOBJECTDimensions
.leave
ret
GrObjGetAbsNormalOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetAbsSpriteOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the absolute value of the object in the OBJECT coordinate
system defined by the spriteTransform
CALLED BY: INTERNAL (UTILITY)
PASS:
*ds:si - object
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/29/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetAbsSpriteOBJECTDimensions proc far
class GrObjClass
uses si
.enter
AccessSpriteTransformChunk si,ds,si
call GrObjOTGetAbsOBJECTDimensions
.leave
ret
GrObjGetAbsSpriteOBJECTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTGetAbsOBJECTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the absolute value of the objects dimensions
in the OBJECT coordinate system
CALLED BY: INTERNAL
GrObjGetAbsSpriteOBJECTDimensions
GrObjGetAbsNormalOBJECTDimensions
PASS:
ds:si - ObjectTransform
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTGetAbsOBJECTDimensions proc far
class GrObjClass
.enter
mov dx,ds:[si].OT_width.WWF_int
mov cx,ds:[si].OT_width.WWF_frac
tst dx
js negWidth
doHeight:
mov bx,ds:[si].OT_height.WWF_int
mov ax,ds:[si].OT_height.WWF_frac
tst bx
js negHeight
done:
.leave
ret
negWidth:
negwwf dxcx
jmp doHeight
negHeight:
negwwf bxax
jmp done
GrObjOTGetAbsOBJECTDimensions endp
GrObjInitCode ends
| 21.574074 | 79 | 0.596213 |
90ce6c003a58829f75713e5e658064026234dccb | 342 | asm | Assembly | programs/oeis/033/A033182.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/033/A033182.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/033/A033182.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A033182: Number of pairs (p,q) such that 5*p + 6*q = n.
; 1,0,0,0,0,1,1,0,0,0,1,1,1,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,2,1,1,1,2,2,2,1,1,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,3,3,2,2,2,3,3,3,2,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,4,3,3,3
add $0,20639
mov $1,$0
add $0,1
div $0,5
div $1,6
sub $2,$1
add $0,$2
sub $0,688
| 28.5 | 201 | 0.52924 |
ce165cdeade6bb84394b2ad55be42e0b75b5bd47 | 10,711 | asm | Assembly | P6/data_P6_2/MDTest121.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/MDTest121.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/MDTest121.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | ori $ra,$ra,0xf
addiu $4,$4,-7809
sll $5,$3,6
addiu $1,$1,16057
mthi $4
mflo $4
mfhi $5
srav $4,$6,$4
sb $4,14($0)
srav $6,$6,$1
mfhi $1
addiu $2,$2,-546
mthi $1
ori $4,$4,42735
divu $1,$ra
lui $2,23817
mflo $4
mflo $3
mult $6,$2
mult $4,$4
multu $4,$1
divu $4,$ra
lui $1,20208
divu $4,$ra
lui $5,59440
divu $4,$ra
div $4,$ra
mflo $5
mfhi $4
lui $1,712
sll $2,$2,20
mfhi $0
mthi $5
mthi $3
addu $1,$2,$2
multu $6,$2
mthi $6
lui $5,17633
mthi $1
divu $4,$ra
mthi $2
mthi $1
lui $6,34274
div $5,$ra
multu $2,$0
ori $1,$1,55931
lui $4,2848
divu $4,$ra
divu $3,$ra
mfhi $2
addiu $6,$6,-22929
lui $4,4378
mfhi $2
mtlo $5
ori $3,$6,988
div $6,$ra
mfhi $4
mtlo $4
addiu $4,$4,14450
mthi $4
srav $1,$1,$1
sll $4,$4,18
mflo $4
srav $4,$4,$3
ori $0,$6,65435
lui $2,52934
lui $1,39383
mtlo $3
srav $1,$1,$1
lb $1,1($0)
mfhi $5
addu $4,$1,$6
mthi $5
mfhi $4
ori $5,$5,44857
mtlo $5
divu $6,$ra
mthi $0
lui $3,29920
ori $0,$4,60754
sll $4,$4,30
ori $4,$3,16701
addiu $0,$0,-4413
multu $2,$2
lui $5,26220
mthi $4
mult $4,$4
sb $5,2($0)
sb $0,16($0)
mflo $5
mflo $1
mtlo $1
lui $1,57309
mtlo $4
divu $5,$ra
mtlo $6
srav $4,$6,$4
mthi $4
addiu $5,$2,20369
srav $4,$4,$4
mult $4,$1
sll $2,$5,19
sb $4,0($0)
mult $1,$6
srav $4,$4,$4
divu $1,$ra
mflo $6
mfhi $4
multu $1,$2
divu $5,$ra
addiu $4,$2,-20660
mtlo $2
mflo $1
sll $4,$0,6
div $2,$ra
mult $2,$2
div $1,$ra
multu $1,$1
mthi $4
multu $5,$6
divu $1,$ra
addiu $4,$6,15220
sb $1,16($0)
mult $3,$4
multu $0,$6
lb $5,5($0)
addu $3,$2,$3
addu $6,$4,$0
lui $0,15177
lb $5,10($0)
divu $4,$ra
addiu $1,$4,-16445
mflo $5
srav $1,$5,$6
mflo $1
lui $4,8658
multu $2,$2
lb $0,4($0)
lui $6,36259
lb $6,11($0)
addu $0,$0,$3
divu $5,$ra
sb $0,3($0)
addiu $2,$2,-21223
mthi $5
divu $1,$ra
mfhi $4
sb $0,0($0)
addiu $6,$2,-17881
addiu $4,$2,25570
div $5,$ra
div $6,$ra
mfhi $2
addu $4,$2,$3
sb $5,16($0)
lb $4,7($0)
multu $5,$5
lui $5,54070
lui $5,18978
sb $1,6($0)
lb $0,0($0)
sb $1,15($0)
sb $4,15($0)
multu $5,$2
mflo $4
addu $4,$0,$0
lui $6,45907
addiu $1,$1,-19130
divu $5,$ra
lui $6,38687
addiu $2,$2,-9140
lui $5,1560
multu $5,$5
lui $6,15779
mtlo $0
sll $5,$2,8
div $0,$ra
sll $1,$2,20
lb $0,13($0)
lui $1,44631
addiu $1,$2,11895
sll $4,$2,7
div $4,$ra
divu $5,$ra
divu $1,$ra
lui $1,64053
sll $0,$0,24
multu $0,$1
div $2,$ra
sb $0,10($0)
addiu $1,$2,3205
lui $0,20086
lb $4,11($0)
mfhi $2
mtlo $4
srav $4,$4,$2
ori $1,$1,46237
divu $4,$ra
mult $4,$4
ori $1,$2,8165
ori $6,$6,2107
mult $1,$6
srav $2,$6,$2
lui $4,3539
sll $6,$4,16
lui $3,38179
addiu $5,$4,-30747
sll $5,$2,24
lb $1,2($0)
mflo $4
lui $3,4655
lui $6,19437
addu $6,$1,$4
mfhi $5
mfhi $4
srav $4,$2,$1
addiu $2,$2,5039
mult $0,$1
addu $2,$2,$2
sll $1,$6,6
lb $1,0($0)
srav $4,$5,$3
mthi $1
lb $5,1($0)
addiu $4,$4,-21906
mthi $4
mfhi $3
addu $3,$1,$3
divu $4,$ra
div $1,$ra
mtlo $6
mtlo $1
divu $4,$ra
mflo $1
mfhi $5
mfhi $1
sll $4,$2,14
lui $1,38038
mthi $4
div $2,$ra
mfhi $4
lui $4,20312
mthi $2
ori $4,$6,61543
divu $1,$ra
multu $3,$3
div $5,$ra
addiu $6,$0,14616
ori $4,$5,39034
sb $2,4($0)
lb $5,1($0)
lb $4,15($0)
lui $5,115
multu $2,$2
mflo $4
sb $1,0($0)
mtlo $5
lui $1,64770
mflo $4
mthi $2
addu $4,$5,$4
div $1,$ra
mflo $5
sll $0,$4,2
addiu $4,$2,16693
lui $1,2542
lui $4,46259
addiu $3,$3,9727
multu $5,$5
addu $5,$4,$4
lui $4,11153
mtlo $4
div $4,$ra
mult $4,$3
mtlo $2
multu $5,$5
sb $5,16($0)
div $4,$ra
lb $1,3($0)
mfhi $4
lui $1,31799
mtlo $4
ori $0,$3,63237
mfhi $5
lui $5,58464
mfhi $1
mfhi $5
mflo $1
multu $6,$1
divu $2,$ra
sb $1,14($0)
addiu $2,$1,20406
lui $2,15119
mfhi $0
sb $4,12($0)
lui $2,1976
lb $1,1($0)
srav $4,$4,$3
sb $6,7($0)
lui $5,52839
div $1,$ra
addu $3,$1,$3
addiu $1,$4,26726
sll $2,$1,3
multu $4,$4
srav $2,$2,$3
mult $1,$4
lb $6,7($0)
mtlo $5
srav $4,$4,$4
divu $1,$ra
lb $4,13($0)
srav $1,$2,$5
srav $0,$2,$4
sb $4,5($0)
addu $4,$4,$4
mthi $3
lb $5,16($0)
ori $4,$3,14793
addiu $4,$2,-27387
srav $0,$4,$2
lui $2,17858
mult $4,$1
mthi $0
mult $5,$2
addiu $5,$5,9653
divu $1,$ra
sll $5,$4,12
multu $4,$4
mthi $5
ori $4,$2,23564
mult $3,$3
sb $1,5($0)
mult $4,$4
mult $4,$5
sb $1,9($0)
multu $2,$4
multu $4,$2
mfhi $3
divu $5,$ra
div $0,$ra
multu $1,$5
sll $0,$2,16
mthi $4
sb $5,14($0)
lb $4,3($0)
mthi $4
divu $5,$ra
lb $4,1($0)
mult $3,$0
mtlo $4
divu $1,$ra
srav $3,$3,$3
srav $0,$0,$0
addiu $2,$2,-10163
sll $1,$4,22
mthi $1
sll $1,$2,25
multu $4,$4
mfhi $0
mult $1,$3
ori $3,$5,25832
sll $4,$3,27
mtlo $2
srav $6,$6,$3
mflo $0
lb $5,2($0)
mfhi $4
mthi $1
addu $4,$4,$4
divu $4,$ra
divu $3,$ra
ori $4,$1,14954
addu $4,$0,$1
lb $3,6($0)
sb $5,5($0)
sll $3,$4,12
mfhi $2
srav $1,$2,$2
mult $4,$1
divu $3,$ra
multu $6,$5
mult $1,$4
divu $4,$ra
divu $4,$ra
ori $3,$3,43234
lb $4,12($0)
sll $1,$4,14
mult $1,$1
mtlo $5
divu $4,$ra
mfhi $3
lui $4,24866
lui $1,6740
sll $6,$6,23
sb $5,5($0)
ori $5,$2,27601
sb $1,5($0)
lui $1,51980
addiu $0,$4,28699
addiu $4,$4,-3200
addiu $4,$0,-28144
sll $6,$5,27
divu $4,$ra
mfhi $4
mtlo $6
sb $4,8($0)
multu $1,$2
mthi $0
div $0,$ra
divu $1,$ra
sll $2,$2,2
addiu $6,$4,30018
div $0,$ra
mthi $5
ori $1,$4,10515
div $2,$ra
addiu $1,$6,13592
sll $5,$5,11
mfhi $1
lui $2,22979
mult $1,$4
mfhi $5
mult $3,$3
ori $3,$4,36555
divu $4,$ra
divu $5,$ra
sll $1,$2,2
ori $2,$2,44569
mfhi $4
lb $0,5($0)
srav $2,$2,$2
lui $4,54052
addiu $0,$0,-14313
divu $5,$ra
mfhi $1
multu $6,$0
lui $6,24711
mult $1,$2
divu $3,$ra
sll $4,$2,7
lb $1,15($0)
mfhi $0
addiu $3,$3,-8358
lui $1,21516
mthi $5
mthi $5
mtlo $1
divu $5,$ra
divu $3,$ra
mfhi $1
mthi $5
addu $6,$4,$6
div $6,$ra
multu $4,$5
mflo $4
ori $3,$2,54339
mult $5,$1
addiu $3,$3,27970
mfhi $1
lb $5,12($0)
divu $4,$ra
mult $5,$2
lui $4,40356
addu $5,$4,$1
div $1,$ra
ori $0,$4,65335
sll $1,$6,19
lb $4,10($0)
lui $4,45447
addu $1,$5,$4
mtlo $2
multu $0,$5
sll $4,$5,13
mult $4,$4
addiu $3,$2,16002
div $5,$ra
divu $1,$ra
mthi $1
mflo $4
sll $6,$2,16
sb $4,1($0)
mtlo $5
divu $6,$ra
mtlo $1
addu $1,$1,$3
lb $4,3($0)
mflo $1
mflo $4
lb $0,2($0)
srav $4,$4,$4
mtlo $6
srav $4,$2,$4
lui $5,27990
divu $5,$ra
lui $2,23401
mthi $1
ori $2,$2,33310
sb $1,13($0)
div $1,$ra
ori $1,$2,52551
sll $5,$4,4
sll $4,$5,9
addiu $5,$2,2336
sb $4,12($0)
mtlo $4
mflo $6
multu $6,$5
mtlo $4
ori $5,$5,3049
srav $2,$2,$5
ori $5,$4,25652
lui $1,55587
ori $6,$2,62523
mtlo $1
ori $5,$2,47930
mult $4,$4
addiu $1,$1,-31341
addiu $2,$2,30310
mtlo $5
mfhi $0
mtlo $2
lui $4,32640
sll $1,$2,23
addu $5,$1,$1
div $4,$ra
addiu $5,$2,29047
addiu $2,$2,6868
lb $4,10($0)
multu $4,$2
multu $5,$2
addu $4,$1,$4
lb $2,9($0)
ori $4,$4,55909
addiu $3,$3,-10419
ori $5,$6,33811
mfhi $4
lb $5,5($0)
sb $5,14($0)
divu $3,$ra
mfhi $4
srav $5,$3,$3
addu $4,$3,$3
sb $2,9($0)
div $5,$ra
srav $3,$4,$3
sll $4,$4,0
mfhi $0
mtlo $5
divu $3,$ra
ori $5,$2,35243
ori $4,$2,6910
sll $6,$4,11
lui $1,8261
sll $4,$5,7
multu $3,$2
div $4,$ra
mult $1,$4
addiu $0,$5,19722
sb $6,14($0)
lui $1,34280
addiu $6,$4,-17403
sll $6,$2,2
sll $4,$4,18
divu $1,$ra
ori $1,$3,24039
lb $3,4($0)
sb $3,0($0)
mthi $2
div $0,$ra
ori $1,$5,2058
lui $1,30045
srav $5,$5,$5
lb $1,15($0)
div $4,$ra
multu $0,$0
mult $5,$1
sb $4,13($0)
multu $1,$1
srav $5,$3,$3
mfhi $2
mflo $5
addiu $5,$5,-5538
addiu $4,$5,-32434
mult $4,$6
mtlo $5
sb $2,2($0)
mtlo $1
mtlo $1
lb $4,11($0)
sb $4,0($0)
divu $3,$ra
div $4,$ra
mthi $4
lui $2,23600
addiu $3,$6,-16574
mfhi $5
addu $3,$3,$3
sb $5,13($0)
lb $4,9($0)
sll $4,$4,7
sb $1,16($0)
multu $1,$1
sll $4,$6,17
mtlo $5
divu $1,$ra
srav $5,$5,$5
addu $2,$4,$2
lb $4,2($0)
divu $5,$ra
multu $4,$3
divu $1,$ra
mult $4,$4
mthi $5
divu $2,$ra
div $1,$ra
sll $0,$4,15
sb $1,0($0)
mflo $1
mfhi $6
sll $3,$3,27
addiu $1,$1,25717
mtlo $0
mfhi $4
lui $6,30903
lui $2,38399
mflo $3
sll $2,$2,15
divu $0,$ra
mfhi $6
mfhi $5
mtlo $4
div $3,$ra
mflo $1
sll $4,$2,27
div $3,$ra
multu $4,$2
mult $5,$2
div $1,$ra
mflo $2
multu $2,$4
multu $1,$4
addu $2,$2,$3
ori $5,$2,55690
addiu $2,$2,6889
addu $5,$5,$5
mtlo $4
sb $1,15($0)
mtlo $1
addu $4,$5,$4
mthi $5
multu $0,$2
mthi $6
lui $1,30406
mult $4,$4
mult $2,$2
mthi $4
sb $4,3($0)
mtlo $4
mult $1,$2
srav $6,$6,$6
divu $5,$ra
mthi $5
mult $5,$5
ori $0,$2,10127
mtlo $5
addiu $0,$1,-31784
mult $1,$1
sb $4,8($0)
sll $5,$6,10
ori $6,$2,64092
mult $6,$1
addu $1,$4,$3
addu $2,$2,$2
srav $6,$2,$3
mtlo $0
srav $6,$6,$6
multu $6,$5
mthi $1
srav $4,$4,$5
addiu $4,$5,16918
sll $4,$4,30
srav $4,$4,$3
mult $5,$0
addiu $3,$3,-14792
sb $1,5($0)
sb $4,6($0)
sll $6,$4,6
mult $3,$4
addiu $4,$4,-12412
divu $1,$ra
div $4,$ra
addiu $2,$2,-16773
addu $5,$0,$0
mult $6,$5
addiu $4,$2,29986
ori $4,$4,1170
divu $2,$ra
mflo $6
mflo $0
sb $0,0($0)
mtlo $1
mflo $6
div $4,$ra
mthi $4
srav $0,$5,$4
srav $4,$2,$5
ori $0,$1,34621
multu $1,$2
divu $0,$ra
srav $0,$2,$0
ori $4,$4,33340
divu $5,$ra
lui $1,39185
div $4,$ra
mthi $6
divu $6,$ra
ori $2,$2,58879
lui $1,34298
sll $3,$3,5
multu $4,$0
mflo $4
multu $1,$4
addiu $5,$5,5900
addiu $1,$1,-2617
multu $1,$1
mtlo $2
mtlo $5
mfhi $4
lb $2,2($0)
ori $4,$2,47056
mflo $5
lb $1,15($0)
lb $1,12($0)
srav $6,$6,$1
lb $2,7($0)
mtlo $2
srav $5,$5,$5
addu $5,$4,$4
mthi $1
mult $5,$2
addu $4,$2,$6
addu $4,$4,$3
sb $4,15($0)
sll $1,$0,21
multu $4,$4
mtlo $1
addu $4,$1,$1
mtlo $4
lb $5,7($0)
mthi $0
divu $1,$ra
srav $3,$2,$3
addiu $4,$4,7298
divu $3,$ra
mtlo $1
multu $2,$6
addu $4,$4,$4
mfhi $0
mflo $1
addiu $5,$5,23092
sll $4,$4,6
mtlo $5
addu $1,$1,$2
sll $5,$6,30
ori $0,$4,50442
multu $4,$5
mtlo $4
mtlo $6
srav $4,$4,$3
addu $6,$4,$4
addiu $1,$5,-12361
divu $6,$ra
mfhi $5
addiu $1,$6,-17617
mult $2,$2
mtlo $5
ori $0,$6,34040
mult $3,$3
mtlo $5
mflo $5
lui $6,36436
mfhi $0
lb $2,0($0)
sll $6,$4,24
lui $2,14254
srav $4,$2,$5
sll $4,$2,4
lui $5,56807
sb $5,10($0)
lb $2,13($0)
mthi $1
mtlo $4
div $4,$ra
lui $5,64086
mthi $1
addiu $0,$3,-24436
addiu $0,$1,-12857
lui $3,9834
lb $1,14($0)
multu $6,$5
sb $3,0($0)
addu $4,$4,$4
srav $6,$6,$6
mfhi $4
mthi $0
addiu $4,$4,-19031
mtlo $1
mflo $4
div $1,$ra
sb $5,16($0)
srav $4,$3,$3
ori $1,$1,57381
lui $4,18638
sb $2,16($0)
srav $5,$1,$6
ori $0,$5,26134
multu $0,$6
mult $0,$1
sll $4,$2,0
srav $4,$4,$5
sb $2,10($0)
mult $4,$5
mult $1,$1
multu $3,$1
divu $1,$ra
multu $1,$1
multu $0,$0
srav $5,$5,$5
mtlo $4
addiu $5,$1,12633
multu $0,$1
mfhi $1
ori $2,$2,7786
srav $2,$0,$2
addiu $1,$1,5
mthi $3
multu $1,$4
mult $4,$4
divu $4,$ra
sb $4,14($0)
divu $1,$ra
mtlo $1
srav $1,$2,$3
srav $5,$4,$3
multu $6,$6
div $4,$ra
lb $1,3($0)
sll $4,$0,13
lb $6,8($0)
mflo $4
addu $0,$5,$2
addu $6,$0,$3
mult $2,$2
addu $5,$2,$4
div $0,$ra
srav $4,$4,$2
divu $4,$ra
divu $1,$ra
lb $1,9($0)
multu $2,$2
addu $1,$4,$4
mthi $6
addiu $4,$4,7183
divu $6,$ra
mtlo $5
ori $3,$3,25044
mthi $5
sb $4,1($0)
multu $2,$2
sll $1,$1,1
mfhi $1
srav $4,$4,$4
ori $1,$3,46530
divu $2,$ra
mthi $1
mthi $5
srav $1,$4,$1
mflo $1
lb $1,13($0)
divu $4,$ra
addiu $4,$2,-11602
srav $5,$5,$6
sb $0,15($0)
sb $5,0($0)
lb $6,4($0)
addiu $1,$1,29547
sll $5,$4,17
mflo $0
| 12.034831 | 18 | 0.571749 |
f80527a766fab1f094b40a4953e5cc7e5c73346b | 1,889 | asm | Assembly | programs/oeis/227/A227978.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/227/A227978.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/227/A227978.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A227978: a(0)=1, a(1)=2; for n>1, a(n) = n*(2^n+4)/4.
; 1,2,4,9,20,45,102,231,520,1161,2570,5643,12300,26637,57358,122895,262160,557073,1179666,2490387,5242900,11010069,23068694,48234519,100663320,209715225,436207642,905969691,1879048220,3892314141,8053063710,16642998303,34359738400,70866960417,146028888098,300647710755,618475290660,1271310319653,2611340116006,5360119185447,10995116277800,22539988369449,46179488366634,94557999988779,193514046488620,395824185999405,809240558043182,1653665488175151,3377699720527920,6896136929411121,14073748835532850,28710447624486963,58546795155816500,119345390125318197,243194379878006838,495395959010754615,1008806316530991160,2053641430080946233,4179340454199820346,8502796096475496507,17293822569102704700,35164105890508832829,71481133285624512574,145268109580462719039,295147905179352825920,599519182395560427585,1217485108864830406722,2471863705877079916611,5017514388048998039620,10182602728687672492101,20660353362554697809990,41911002535468101271623,85002596691653613846600,172366376624742050299977,349455119732353745813578,708354972430446782054475,1435599410792372144963660,2908977753447701451636813,5893513370621317226692686,11938142468694463100223567,24178516392292583494123600,48961495694392481575600209,99131917208399592325906514,200681686056028443001225299,406199075390515402701275220,822069557337947838800199765,1663481927789729744395698262,3365649481807127622381994071,6808670216069591511945183320,13772082937049855558252757081,27853650883921056185230295130,56326271787484802507910152283,113890483614254985290719428700,230256847307080731131237105757,465465454771302983362070708318,940834429856889008923334410335,1901475900342344102245054808160,3842565881941820373286881591393,7764359926397905084167307133026,15687176177824338843521702166627
mov $1,$0
trn $0,1
add $0,1
mov $2,$1
sub $1,2
lpb $1
mul $0,2
sub $1,1
lpe
add $0,$2
| 134.928571 | 1,741 | 0.9063 |
a06a7efe0c1f8ddc88a6edd10074bf895eb12869 | 257 | asm | Assembly | programs/oeis/085/A085534.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/085/A085534.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/085/A085534.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A085534: a(n) = (2n)^(2n).
; 1,4,256,46656,16777216,10000000000,8916100448256,11112006825558016,18446744073709551616,39346408075296537575424,104857600000000000000000000,341427877364219557396646723584,1333735776850284124449081472843776
mul $0,2
pow $0,$0
| 42.833333 | 207 | 0.840467 |
30893938f53e2b4d8aad6af26c972283422626bd | 1,116 | asm | Assembly | programs/oeis/047/A047531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/047/A047531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/047/A047531.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A047531: Numbers that are congruent to {2, 3, 7} mod 8.
; 2,3,7,10,11,15,18,19,23,26,27,31,34,35,39,42,43,47,50,51,55,58,59,63,66,67,71,74,75,79,82,83,87,90,91,95,98,99,103,106,107,111,114,115,119,122,123,127,130,131,135,138,139,143,146,147,151,154,155,159,162,163,167,170,171,175,178,179,183,186,187,191,194,195,199,202,203,207,210,211,215,218,219,223,226,227,231,234,235,239,242,243,247,250,251,255,258,259,263,266,267,271,274,275,279,282,283,287,290,291,295,298,299,303,306,307,311,314,315,319,322,323,327,330,331,335,338,339,343,346,347,351,354,355,359,362,363,367,370,371,375,378,379,383,386,387,391,394,395,399,402,403,407,410,411,415,418,419,423,426,427,431,434,435,439,442,443,447,450,451,455,458,459,463,466,467,471,474,475,479,482,483,487,490,491,495,498,499,503,506,507,511,514,515,519,522,523,527,530,531,535,538,539,543,546,547,551,554,555,559,562,563,567,570,571,575,578,579,583,586,587,591,594,595,599,602,603,607,610,611,615,618,619,623,626,627,631,634,635,639,642,643,647,650,651,655,658,659,663,666
mul $0,2
add $0,1
mov $1,$0
lpb $0,1
trn $0,2
mov $2,$0
trn $0,1
add $1,1
lpe
sub $1,$2
| 79.714286 | 960 | 0.713262 |
1a83b303e2345f2b179d3ddee85b99b2792c69c5 | 339 | asm | Assembly | oeis/021/A021967.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/021/A021967.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/021/A021967.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A021967: Decimal expansion of 1/963.
; Submitted by Jon Maiga
; 0,0,1,0,3,8,4,2,1,5,9,9,1,6,9,2,6,2,7,2,0,6,6,4,5,8,9,8,2,3,4,6,8,3,2,8,1,4,1,2,2,5,3,3,7,4,8,7,0,1,9,7,3,0,0,1,0,3,8,4,2,1,5,9,9,1,6,9,2,6,2,7,2,0,6,6,4,5,8,9,8,2,3,4,6,8,3,2,8,1,4,1,2,2,5,3,3,7,4
seq $0,42 ; Unary representation of natural numbers.
div $0,107
mod $0,10
| 42.375 | 199 | 0.59292 |
8f19f32e56594d4f4c991ee934945e14031135eb | 891 | asm | Assembly | programs/oeis/081/A081661.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/081/A081661.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/081/A081661.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A081661: Partial sums of A081660.
; 1,3,8,16,31,57,106,198,377,727,1420,2796,5539,11013,21950,43810,87517,174915,349696,699240,1398311,2796433,5592658,11185086,22369921,44739567,89478836,178957348,357914347,715828317,1431656230,2863312026,5726623589,11453246683,22906492840,45812985120,91625969647,183251938665,366503876666,733007752630,1466015504521,2932031008263,5864062015708,11728124030556,23456248060211,46912496119477,93824992237966,187649984474898,375299968948717,750599937896307,1501199875791440,3002399751581656,6004799503162039
mov $12,$0
mov $14,$0
add $14,1
lpb $14
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11
clr $0,9
mov $0,$9
sub $11,1
sub $0,$11
add $8,2
pow $8,$0
mov $0,8
add $0,$8
mov $2,$0
div $2,6
mul $2,2
sub $2,1
add $10,$2
lpe
add $13,$10
lpe
mov $1,$13
| 27 | 503 | 0.709315 |
8eeacabb77a1a1db0551573af6abd626454813ed | 239 | asm | Assembly | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_unlocked_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_unlocked_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_unlocked_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void heap_free_unlocked_callee(void *heap, void *p)
SECTION code_alloc_malloc
PUBLIC _heap_free_unlocked_callee
_heap_free_unlocked_callee:
pop hl
pop de
ex (sp),hl
INCLUDE "alloc/malloc/z80/asm_heap_free_unlocked.asm"
| 15.933333 | 56 | 0.778243 |
4955a581d01d3d8944757ba9e81086fdf8599326 | 405 | asm | Assembly | oeis/119/A119467.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/119/A119467.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/119/A119467.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A119467: A masked Pascal triangle.
; Submitted by Christian Krause
; 1,0,1,1,0,1,0,3,0,1,1,0,6,0,1,0,5,0,10,0,1,1,0,15,0,15,0,1,0,7,0,35,0,21,0,1,1,0,28,0,70,0,28,0,1,0,9,0,84,0,126,0,36,0,1,1,0,45,0,210,0,210,0,45,0,1,0,11,0,165,0,462,0,330,0,55,0,1,1,0,66,0,495,0,924,0,495,0,66,0,1,0,13,0,286,0,1287,0,1716,0
lpb $0
mov $2,-2
bin $2,$0
add $3,1
sub $0,$3
min $2,$0
lpe
bin $3,$2
mov $0,$3
| 28.928571 | 244 | 0.590123 |
e4345ad7067780c2963c1094ec0db1d769ef058d | 5,167 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18071_818.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18071_818.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18071_818.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 %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rdx
lea addresses_WT_ht+0xbff, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $39165, %r13
movw $0x6162, (%rdi)
nop
nop
nop
nop
dec %rcx
lea addresses_D_ht+0x1538f, %rdx
nop
nop
nop
nop
add $10784, %r12
movb $0x61, (%rdx)
nop
inc %rdi
lea addresses_WC_ht+0x138f, %r13
nop
nop
nop
nop
cmp $40015, %r9
movups (%r13), %xmm7
vpextrq $0, %xmm7, %rdx
nop
nop
nop
nop
nop
sub $25539, %r15
lea addresses_WC_ht+0x9b8b, %rcx
nop
nop
sub %r12, %r12
and $0xffffffffffffffc0, %rcx
movntdqa (%rcx), %xmm3
vpextrq $1, %xmm3, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_D_ht+0x13d8f, %rdx
nop
inc %rcx
mov $0x6162636465666768, %rdi
movq %rdi, (%rdx)
nop
nop
nop
sub $65366, %rcx
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r9
push %rbx
push %rsi
// Faulty Load
lea addresses_UC+0x1538f, %r13
nop
nop
nop
inc %r10
vmovups (%r13), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
lea oracles, %r10
and $0xff, %rsi
shlq $12, %rsi
mov (%r10,%rsi,1), %rsi
pop %rsi
pop %rbx
pop %r9
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'00': 18071}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 42.352459 | 2,999 | 0.660538 |
ef24bfd547897f5dbe819b697ea4f38de2cb0b66 | 2,408 | asm | Assembly | x86/src/64/ops.asm | sneakin/north | bff0fdaa6d4641c54c4dc9942948e2edd34f2251 | [
"Linux-OpenIB"
] | 2 | 2019-02-25T19:20:26.000Z | 2019-05-11T00:32:01.000Z | x86/src/64/ops.asm | sneakin/north | bff0fdaa6d4641c54c4dc9942948e2edd34f2251 | [
"Linux-OpenIB"
] | null | null | null | x86/src/64/ops.asm | sneakin/north | bff0fdaa6d4641c54c4dc9942948e2edd34f2251 | [
"Linux-OpenIB"
] | null | null | null | defop fexit
add rsp, ptrsize
pop eval_ip
ret
defop break
ret
defop literal
mov rax, [eval_ip]
add eval_ip, ptrsize
pop rbx
push rax
push rbx
ret
defop int32
mov eax, dword [eval_ip]
add eval_ip, 4
pop rbx
push rax
push rbx
ret
defop int64
mov rax, [eval_ip]
add eval_ip, 8
pop rbx
push rax
push rbx
ret
defop offset32
mov eax, dword [eval_ip]
add rax, eval_ip
add eval_ip, 4
pop rbx
push rax
push rbx
ret
defop offset64
mov rax, [eval_ip]
add rax, eval_ip
add eval_ip, 8
pop rbx
push rax
push rbx
ret
defop pointer
mov rax, [eval_ip]
add eval_ip, 8
pop rbx
push rax
push rbx
ret
defalias string,pointer
defalias uint32,int32
defop peek
mov rax, [rsp+ptrsize]
mov rax, [rax]
mov [rsp+ptrsize], rax
ret
defop poke
pop rax
pop rbx ; addr
pop rcx ; value
mov [rbx], rcx
push rax
ret
defop dup
pop rbx
mov rax, [rsp]
push rax
push rbx
ret
defop over
pop rbx
mov rax, [rsp+ptrsize]
push rax
push rbx
ret
defop overn
pop rbx
pop rax
imul rax, ptrsize
add rax, rsp
mov rax, [rax]
push rax
push rbx
ret
defop drop
pop rbx
pop rax
push rbx
ret
defop dropn
pop rax
pop rbx
imul rbx, ptrsize
add rsp, rbx
push rax
ret
defop swap
mov rax, [rsp+ptrsize]
mov rbx, [rsp+ptrsize*2]
mov [rsp+ptrsize*2], rax
mov [rsp+ptrsize], rbx
ret
defop rot ; ( a b c -- c b a )
mov rax, [rsp+ptrsize]
mov rbx, [rsp+ptrsize*3]
mov [rsp+ptrsize], rbx
mov [rsp+ptrsize*3], rax
ret
defop roll ; ( a b c -- c a b )
mov rax, [rsp+ptrsize]
mov rbx, [rsp+ptrsize*2]
mov rcx, [rsp+ptrsize*3]
mov [rsp+ptrsize], rbx
mov [rsp+ptrsize*2], rcx
mov [rsp+ptrsize*3], rax
ret
defop eq
pop rcx
pop rbx
pop rax
cmp rax, rbx
je .equal
push 0
push rcx
ret
.equal:
push 1
push rcx
ret
defop here
pop rbx
push rsp
push rbx
ret
defop stack_allot
pop rbx
pop rax
sub rsp, rax
push rsp
push rbx
ret
defop dict_offset_a
imul rax, dict_entry_size
add rax, ptrsize
add rax, [d_dictionary+dict_entry_data]
ret
defop dict_entry_index
pop rbx
pop rax
sub rax, ptrsize
sub rax, [d_dictionary+dict_entry_data]
mov rcx, dict_entry_size
mov rdx, 0
div rcx
push rax
push rbx
ret
defop doconstant
pop rbx
mov rax, [rax+dict_entry_data]
push rax
push rbx
ret
defop dovar
pop rbx
mov rax, [rax+dict_entry_data]
push rax
push rbx
ret
| 12.285714 | 41 | 0.670681 |
798e1fff9c215afc213bc6c759dc111103b07381 | 148 | asm | Assembly | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/c-select-j.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/c-select-j.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/c-select-j.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: c-select-j.asm
Type: file
Size: 44212
Last-Modified: '1992-07-14T23:56:59Z'
SHA-1: 50632E9C358C653FD7C5113BC4CF23DF9E1C6D7F
Description: null
| 21.142857 | 47 | 0.804054 |
01a869e1694bb7d6b3598b71b9a7ae59e3b3330b | 454 | asm | Assembly | kolokwium_2016/zad2/maxval.asm | adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow | 0b1d41c6903632dd9ab2b7d624288eb2f5f80240 | [
"MIT"
] | 1 | 2019-02-28T15:40:21.000Z | 2019-02-28T15:40:21.000Z | kolokwium_2016/zad2/maxval.asm | adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow | 0b1d41c6903632dd9ab2b7d624288eb2f5f80240 | [
"MIT"
] | null | null | null | kolokwium_2016/zad2/maxval.asm | adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow | 0b1d41c6903632dd9ab2b7d624288eb2f5f80240 | [
"MIT"
] | 1 | 2019-03-03T17:52:08.000Z | 2019-03-03T17:52:08.000Z | extern printf
section .data
format dd "Pozycja to: %d",10,0
temp dd 0
section .text
global maxval
maxval:
mov r12, rdi ;adres tab
mov r13, rsi ;liczba el
xor r14, r14 ;najwieksza
xor r15, r15 ;najwieksza indeks
_petla:
cmp [r12+4*r13], r14
jb _dalej
mov r14, [r12+4*r13]
mov r15, r13
_dalej:
dec r13
cmp r13, 0
ja _petla
_koniec:
mov [temp], r15
xor rax, rax
mov rdi, format
mov rsi, [temp]
call printf
mov rax, r14
ret
| 11.641026 | 32 | 0.669604 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.