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
92bda84283b4f36c32b5e96b7e69e7e8e1071a81
325
asm
Assembly
oeis/021/A021575.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021575.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021575.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021575: Decimal expansion of 1/571. ; Submitted by Jon Maiga ; 0,0,1,7,5,1,3,1,3,4,8,5,1,1,3,8,3,5,3,7,6,5,3,2,3,9,9,2,9,9,4,7,4,6,0,5,9,5,4,4,6,5,8,4,9,3,8,7,0,4,0,2,8,0,2,1,0,1,5,7,6,1,8,2,1,3,6,6,0,2,4,5,1,8,3,8,8,7,9,1,5,9,3,6,9,5,2,7,1,4,5,3,5,9,0,1,9,2,6 add $0,1 mov $2,10 pow $2,$0 div $2,571 mov $0,$2 mod $0,10
29.545455
199
0.556923
d112d5f93169733bfe56afd6c12ed02dad5c1b0c
41,116
asm
Assembly
opcodes1.asm
tonypdmtr/emu6809
2444447aa00882bc84fd3b0415c81edff4d85883
[ "MIT" ]
1
2020-12-11T00:36:51.000Z
2020-12-11T00:36:51.000Z
opcodes1.asm
tonypdmtr/emu6809
2444447aa00882bc84fd3b0415c81edff4d85883
[ "MIT" ]
1
2020-05-29T14:15:55.000Z
2020-06-01T11:29:42.000Z
opcodes1.asm
tonypdmtr/emu6809
2444447aa00882bc84fd3b0415c81edff4d85883
[ "MIT" ]
null
null
null
;******************************************************************************* ; Include: OPCODES1 ; Version: 1.20 ; Written: July 15, 1990 ; Updated: Friday, August 12, 1994 7:52 pm ; Author : Tony G. Papadimitriou ; Purpose: This is an include file with half the opcode routines used by ; the MC6809E.ASM program, an enhanced version of the MC6809E ; emulator program originally written in Turbo Pascal. Because ; it is completely written in Assembly language there should be ; a dramatic speed improvement over the Pascal version. ; Note: SYNC instruction is currently not implemented ; 220129 : Removed redundant JMP instruction by reversing previous conditional jump ;******************************************************************************* proc mcERROR ; special routine to handle invalid ops mov ax,130 ; invalid opcode error call Errors ret endp mcERROR ;******************************************************************************* proc mcNEG mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: neg [A] jmp short @@flags @@AccB: neg [B] jmp short @@flags @@Next: call GetEffAddr neg [byte es:si] @@flags: pushf ; first clear affected flags and [CC],11110000b popf jno @@1 ; is it the overflow case? SOverflow @@1: jnz @@2 ; is it the zero case? SZero @@2: jnc @@3 ; is it the carry case? SCarry @@3: jns @@exit ; is it the negative case? SNegative @@exit: ret endp mcNEG ;******************************************************************************* proc mcCOM mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: not [A] jmp short @@flags @@AccB: not [B] jmp short @@flags @@Next: call GetEffAddr not [byte es:si] @@flags: pushf ; first clear affected flags and [CC],11110000b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@exit ; is it the negative case? SNegative @@exit: ret endp mcCOM ;******************************************************************************* proc mcLSR mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: shr [A],1 jmp short @@flags @@AccB: shr [B],1 jmp short @@flags @@Next: call GetEffAddr shr [byte es:si],1 @@flags: pushf ; first clear affected flags and [CC],11110010b popf jnz @@1 ; is it the zero case? SZero @@1: jnc @@exit ; is it the Carry case? SCarry @@exit: ret endp mcLSR ;******************************************************************************* proc mcROR mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: ror [A],1 jmp short @@flags @@AccB: ror [B],1 jmp short @@flags @@Next: call GetEffAddr ror [byte es:si],1 @@flags: pushf ; first clear affected flags and [CC],11110010b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jnc @@exit ; is it the Carry case? SCarry @@exit: ret endp mcROR ;******************************************************************************* proc mcASR mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: sar [A],1 jmp short @@flags @@AccB: sar [B],1 jmp short @@flags @@Next: call GetEffAddr sar [byte es:si],1 @@flags: pushf ; first clear affected flags and [CC],11110010b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jnc @@exit ; is it the Carry case? SCarry @@exit: ret endp mcASR ;******************************************************************************* proc mcASL mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: sal [A],1 jmp short @@flags @@AccB: sal [B],1 jmp short @@flags @@Next: call GetEffAddr sal [byte es:si],1 @@flags: pushf ; first clear affected flags and [CC],11110000b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jno @@3 ; is it the overflow case? SOverflow @@3: jnc @@exit ; is it the Carry case? SCarry @@exit: ret endp mcASL ;******************************************************************************* proc mcROL mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: rol [A],1 jmp short @@flags @@AccB: rol [B],1 jmp short @@flags @@Next: call GetEffAddr rol [byte es:si],1 @@flags: pushf ; first clear affected flags and [CC],11110000b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jno @@3 ; is it the overflow case? SOverflow @@3: jnc @@exit ; is it the Carry case? SCarry @@exit: ret endp mcROL ;******************************************************************************* proc mcDEC mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: dec [A] jmp short @@flags @@AccB: dec [B] jmp short @@flags @@Next: call GetEffAddr dec [byte es:si] @@flags: pushf ; first clear affected flags and [CC],11110001b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jno @@exit ; is it the overflow case? SOverflow @@exit: ret endp mcDEC ;******************************************************************************* proc mcINC mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: inc [A] jmp short @@flags @@AccB: inc [B] jmp short @@flags @@Next: call GetEffAddr inc [byte es:si] @@flags: pushf ; first clear affected flags and [CC],11110001b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@2 ; is it the negative case? SNegative @@2: jno @@exit ; is it the overflow case? SOverflow @@exit: ret endp mcINC ;******************************************************************************* proc mcTST mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: test [A],0FFh jmp short @@flags @@AccB: test [B],0FFh jmp short @@flags @@Next: call GetEffAddr test [byte es:si],0FFh @@flags: pushf ; first clear affected flags and [CC],11110001b popf jnz @@1 ; is it the zero case? SZero @@1: jns @@exit ; is it the negative case? SNegative @@exit: ret endp mcTST ;******************************************************************************* proc mcJMP call GetEffAddr mov [PC],si ret endp mcJMP ;******************************************************************************* proc mcCLR mov al,[OpCode] shr al,4 ; MSN -> LSN cmp al,4 ; check it for accumulators je @@AccA cmp al,5 je @@AccB jmp short @@Next @@AccA: mov [A],0 jmp short @@flags @@AccB: mov [B],0 jmp short @@flags @@Next: call GetEffAddr mov [byte es:si],0 @@flags: pushf ; first clear affected flags and [CC],11110000b popf @@exit: ret endp mcCLR ;******************************************************************************* proc mcNOP ret endp mcNOP ;******************************************************************************* proc mcSYNC ; not implemented at this time ret endp mcSYNC ;******************************************************************************* proc mcDAA mov al,[A] daa mov [A],al pushf and [CC],11110010b popf jns @@1 SNegative @@1: jnz @@2 SZero @@2: jnc @@exit SCarry @@exit: ret endp mcDAA ;******************************************************************************* proc mcORCC mov si,[PC] GetByte inc [PC] or [CC],al ret endp mcORCC ;******************************************************************************* proc mcANDCC mov si,[PC] GetByte inc [PC] and [CC],al ret endp mcANDCC ;******************************************************************************* proc mcSEX mov al,[B] cbw mov [D],ax CNegative CZero jns @@1 SNegative @@1: jnz @@exit SZero @@exit: ret endp mcSEX ;******************************************************************************* ; General purpose procedure (see EXG and TFR instructions) proc GetRegister ; get the value of the register in AL/AX cmp al,0 ; is it D? je @@D cmp al,1 ; is it X? je @@X cmp al,2 ; is it Y? je @@Y cmp al,3 ; is it U? je @@U cmp al,4 ; is it S? je @@S cmp al,5 ; is it PC? je @@PC cmp al,8 ; is it A? je @@A cmp al,9 ; is it B? je @@B cmp al,0Ah ; is it CC? je @@CC cmp al,0Bh ; is it DP? je @@DP jmp short @@exit ; otherwise, undefined register, exit ; 16-bit registers @@D: mov ax,[D] jmp short @@exit @@X: mov ax,[X] jmp short @@exit @@Y: mov ax,[Y] jmp short @@exit @@U: mov ax,[U] jmp short @@exit @@S: mov ax,[S] jmp short @@exit @@PC: mov ax,[PC] jmp short @@exit ; 8-bit registers @@A: mov al,[A] jmp short @@exit @@B: mov al,[B] jmp short @@exit @@CC: mov al,[CC] jmp short @@exit @@DP: mov al,[DPR] @@exit: ret endp GetRegister ;******************************************************************************* ; Purpose: General purpose procedure (see EXG and TFR instructions) proc PutRegister ; save the value of BL/BX in the register cmp al,0 ; is it D? je @@D cmp al,1 ; is it X? je @@X cmp al,2 ; is it Y? je @@Y cmp al,3 ; is it U? je @@U cmp al,4 ; is it S? je @@S cmp al,5 ; is it PC? je @@PC cmp al,8 ; is it A? je @@A cmp al,9 ; is it B? je @@B cmp al,0Ah ; is it CC? je @@CC cmp al,0Bh ; is it DP? je @@DP jmp short @@exit ; otherwise, undefined register, exit ; 16-bit registers @@D: mov [D],bx jmp short @@exit @@X: mov [X],bx jmp short @@exit @@Y: mov [Y],bx jmp short @@exit @@U: mov [U],bx jmp short @@exit @@S: mov [S],bx jmp short @@exit @@PC: mov [PC],bx jmp short @@exit ; 8-bit registers @@A: mov [A],bl jmp short @@exit @@B: mov [B],bl jmp short @@exit @@CC: mov [CC],bl jmp short @@exit @@DP: mov [DPR],bl @@exit: ret endp PutRegister ;******************************************************************************* proc mcEXG mov si,[PC] GetByte and al,10001000b ; are they both the same size? cmp al,10001000b je @@8bit cmp al,00000000b jne @@exit ; cannot transfer different sizes GetByte ; 16bit case shr al,4 ; figure out the first register call GetRegister ; in AX mov bx,ax ; and save it in BX GetByte and al,0Fh ; figure out the second register call GetRegister ; in AX xchg ax,bx ; swap the two registers mov dx,ax ; save AX in DX GetByte shr al,4 ; figure out the first register call PutRegister ; BX GetByte ; figure out the second register and al,0Fh mov bx,dx ; get saved AX call PutRegister ; BX jmp short @@exit @@8bit: GetByte shr al,4 ; figure out the first register call GetRegister ; in AL mov bl,al ; and save it in BL GetByte and al,0Fh ; figure out the second register call GetRegister ; in AL xchg al,bl ; swap the two registers mov dl,al ; save AL in DL GetByte shr al,4 ; figure out the first register call PutRegister ; BL GetByte ; figure out the second register and al,0Fh mov bl,dl ; get saved AL call PutRegister ; BL @@exit: inc [PC] ret endp mcEXG ;******************************************************************************* proc mcTFR mov si,[PC] GetByte and al,10001000b ; are they both the same size? cmp al,10001000b je @@8bit cmp al,00000000b jne @@exit ; cannot transfer different sizes GetByte ; 16bit case shr al,4 ; figure out the first register call GetRegister ; in AX mov bx,ax ; move it to BX GetByte ; figure out the second register and al,0Fh call PutRegister ; BX jmp short @@exit @@8bit: GetByte shr al,4 ; figure out the first register call GetRegister ; in AL mov bl,al ; move it to BL GetByte ; figure out the second register and al,0Fh call PutRegister ; BL @@exit: inc [PC] ret endp mcTFR ;******************************************************************************* proc mcBRA call GetEffAddr cmp [OpCode],16h ; is it a long or short branch? je @@16bit GetByte inc [PC] cbw jmp short @@exit @@16bit: GetWord inc [PC] inc [PC] @@exit: add [PC],ax ret endp mcBRA ;******************************************************************************* proc mcBRN mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit inc [PC] jmp short @@exit @@16bit: inc [PC] inc [PC] @@exit: ret endp mcBRN ;******************************************************************************* proc mcBHI call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] and bl,CarryMask+ZeroMask jnz @@exit add [PC],ax @@exit: ret endp mcBHI ;******************************************************************************* proc mcBLS call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] and bl,CarryMask+ZeroMask jz @@exit add [PC],ax @@exit: ret endp mcBLS ;******************************************************************************* proc mcBHS call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],CarryMask jnz @@exit add [PC],ax @@exit: ret endp mcBHS ;******************************************************************************* proc mcBLO call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],CarryMask jz @@exit add [PC],ax @@exit: ret endp mcBLO ;******************************************************************************* proc mcBNE call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],ZeroMask jnz @@exit add [PC],ax @@exit: ret endp mcBNE ;******************************************************************************* proc mcBEQ call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],ZeroMask jz @@exit add [PC],ax @@exit: ret endp mcBEQ ;******************************************************************************* proc mcBVC call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],OverflowMask jnz @@exit add [PC],ax @@exit: ret endp mcBVC ;******************************************************************************* proc mcBVS call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],OverflowMask jz @@exit add [PC],ax @@exit: ret endp mcBVS ;******************************************************************************* proc mcBPL call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],NegativeMask jnz @@exit add [PC],ax @@exit: ret endp mcBPL ;******************************************************************************* proc mcBMI call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: test [CC],NegativeMask jz @@exit add [PC],ax @@exit: ret endp mcBMI ;******************************************************************************* proc mcBGE call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] and bl,NegativeMask+OverflowMask jz @@ok cmp bl,NegativeMask+OverflowMask je @@ok jmp short @@exit @@ok: add [PC],ax @@exit: ret endp mcBGE ;******************************************************************************* proc mcBLT call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] and bl,NegativeMask+OverflowMask jz @@exit cmp bl,NegativeMask+OverflowMask je @@exit add [PC],ax @@exit: ret endp mcBLT ;******************************************************************************* proc mcBGT call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] test bl,ZeroMask jnz @@exit and bl,NegativeMask+OverflowMask jz @@ok cmp bl,NegativeMask+OverflowMask je @@ok jmp short @@exit @@ok: add [PC],ax @@exit: ret endp mcBGT ;******************************************************************************* proc mcBLE call GetEffAddr mov al,[Paged] ; is it a long or short branch? cmp al,10h ; PAGE2? je @@16bit GetByte inc [PC] cbw jmp short @@done @@16bit: GetWord inc [PC] inc [PC] @@done: mov bl,[CC] test bl,ZeroMask jnz @@ok and bl,NegativeMask+OverflowMask jz @@exit cmp bl,NegativeMask+OverflowMask je @@exit @@ok: add [PC],ax @@exit: ret endp mcBLE ;******************************************************************************* proc mcLEAX call GetEffAddr mov [X],si and [CC],11111011b cmp si,0 jnz @@exit or [CC],00000100b @@exit: ret endp mcLEAX ;******************************************************************************* proc mcLEAY call GetEffAddr mov [Y],si and [CC],11111011b cmp si,0 jnz @@exit or [CC],00000100b @@exit: ret endp mcLEAY ;******************************************************************************* proc mcLEAS call GetEffAddr mov [S],si ret endp mcLEAS ;******************************************************************************* proc mcLEAU call GetEffAddr mov [U],si ret endp mcLEAU ;******************************************************************************* proc mcPSHS mov si,[PC] GetByte inc [PC] test al,10000000b ; PC? jz @@1 dec [S] dec [S] mov bx,[PC] xchg bh,bl mov si,[S] mov [es:si],bx @@1: test al,01000000b ; U? jz @@2 dec [S] dec [S] mov bx,[U] xchg bh,bl mov si,[S] mov [es:si],bx @@2: test al,00100000b ; Y? jz @@3 dec [S] dec [S] mov bx,[Y] xchg bh,bl mov si,[S] mov [es:si],bx @@3: test al,00010000b ; X? jz @@4 dec [S] dec [S] mov bx,[X] xchg bh,bl mov si,[S] mov [es:si],bx @@4: test al,00001000b ; DP? jz @@5 dec [S] mov bl,[DPR] mov si,[S] mov [es:si],bl @@5: test al,00000100b ; B? jz @@6 dec [S] mov bl,[B] mov si,[S] mov [es:si],bl @@6: test al,00000010b ; A? jz @@7 dec [S] mov bl,[A] mov si,[S] mov [es:si],bl @@7: test al,00000001b ; CC? jz @@exit dec [S] mov bl,[CC] mov si,[S] mov [es:si],bl @@exit: ret endp mcPSHS ;******************************************************************************* proc mcPULS mov si,[PC] GetByte inc [PC] test al,00000001b ; CC? jz @@1 mov si,[S] mov bl,[es:si] inc [S] mov [CC],bl @@1: test al,00000010b ; A? jz @@2 mov si,[S] mov bl,[es:si] inc [S] mov [A],bl @@2: test al,00000100b ; B? jz @@3 mov si,[S] mov bl,[es:si] inc [S] mov [B],bl @@3: test al,00001000b ; DP? jz @@4 mov si,[S] mov bl,[es:si] inc [S] mov [DPR],bl @@4: test al,00010000b ; X? jz @@5 mov si,[S] mov bx,[es:si] inc [S] inc [S] xchg bh,bl mov [X],bx @@5: test al,00100000b ; Y? jz @@6 mov si,[S] mov bx,[es:si] inc [S] inc [S] xchg bh,bl mov [Y],bx @@6: test al,01000000b ; U? jz @@7 mov si,[S] mov bx,[es:si] inc [S] inc [S] xchg bh,bl mov [U],bx @@7: test al,10000000b ; PC? jz @@exit mov si,[S] mov bx,[es:si] inc [S] inc [S] xchg bh,bl mov [PC],bx @@exit: ret endp mcPULS ;******************************************************************************* proc mcPSHU mov si,[PC] GetByte inc [PC] test al,10000000b ; PC? jz @@1 dec [U] dec [U] mov bx,[PC] xchg bh,bl mov si,[U] mov [es:si],bx @@1: test al,01000000b ; S? jz @@2 dec [U] dec [U] mov bx,[S] xchg bh,bl mov si,[U] mov [es:si],bx @@2: test al,00100000b ; Y? jz @@3 dec [U] dec [U] mov bx,[Y] xchg bh,bl mov si,[U] mov [es:si],bx @@3: test al,00010000b ; X? jz @@4 dec [U] dec [U] mov bx,[X] xchg bh,bl mov si,[U] mov [es:si],bx @@4: test al,00001000b ; DP? jz @@5 dec [U] mov bl,[DPR] mov si,[U] mov [es:si],bl @@5: test al,00000100b ; B? jz @@6 dec [U] mov bl,[B] mov si,[U] mov [es:si],bl @@6: test al,00000010b ; A? jz @@7 dec [U] mov bl,[A] mov si,[U] mov [es:si],bl @@7: test al,00000001b ; CC? jz @@exit dec [U] mov bl,[CC] mov si,[U] mov [es:si],bl @@exit: ret endp mcPSHU ;******************************************************************************* proc mcPULU mov si,[PC] GetByte inc [PC] test al,00000001b ; CC? jz @@1 mov si,[U] mov bl,[es:si] inc [U] mov [CC],bl @@1: test al,00000010b ; A? jz @@2 mov si,[U] mov bl,[es:si] inc [U] mov [A],bl @@2: test al,00000100b ; B? jz @@3 mov si,[U] mov bl,[es:si] inc [U] mov [B],bl @@3: test al,00001000b ; DP? jz @@4 mov si,[U] mov bl,[es:si] inc [U] mov [DPR],bl @@4: test al,00010000b ; X? jz @@5 mov si,[U] mov bx,[es:si] inc [U] inc [U] xchg bh,bl mov [X],bx @@5: test al,00100000b ; Y? jz @@6 mov si,[U] mov bx,[es:si] inc [U] inc [U] xchg bh,bl mov [Y],bx @@6: test al,01000000b ; S? jz @@7 mov si,[U] mov bx,[es:si] inc [U] inc [U] xchg bh,bl mov [S],bx @@7: test al,10000000b ; PC? jz @@exit mov si,[U] mov bx,[es:si] inc [U] inc [U] xchg bh,bl mov [PC],bx @@exit: ret endp mcPULU ;******************************************************************************* proc mcRTS mov si,[S] inc [S] inc [S] GetWord mov [PC],ax ret endp mcRTS ;******************************************************************************* proc mcABX xor ax,ax mov al,[B] add [X],ax ret endp mcABX ;******************************************************************************* proc mcRTI test [CC],EntireFlagMask jz @@short ; entire state flag clear mov si,[S] ; get stack pointer GetWord mov [D],ax inc [S] inc [S] mov si,[S] ; get stack pointer GetByte mov [DPR],al inc [S] mov si,[S] ; get stack pointer GetWord mov [X],ax inc [S] inc [S] mov si,[S] ; get stack pointer GetWord mov [Y],ax inc [S] inc [S] mov si,[S] ; get stack pointer GetWord mov [U],ax inc [S] inc [S] @@short: mov si,[S] ; get stack pointer GetWord mov [PC],ax inc [S] inc [S] ret endp mcRTI ;******************************************************************************* proc mcCWAI mov si,[PC] GetByte inc [PC] and al,[CC] mov [CC],al SEntireFlag dec [S] dec [S] mov si,[S] mov ax,[PC] PutWord dec [S] dec [S] mov si,[S] mov ax,[U] PutWord dec [S] dec [S] mov si,[S] mov ax,[Y] PutWord dec [S] dec [S] mov si,[S] mov ax,[X] PutWord dec [S] mov si,[S] mov al,[DPR] PutByte dec [S] dec [S] mov si,[S] mov ax,[D] PutWord dec [S] mov si,[S] mov al,[CC] PutByte ret endp mcCWAI ;******************************************************************************* proc mcMUL mov al,[A] ; get first operand mul [B] ; multiply with second operand mov [D],ax ; save result in accumulator D pushf ; reset affected flags and [CC],11111010b popf jnz @@1 or [CC],00000100b @@1: test [B],10000000b ; is bit 7 of B set? jz @@exit ; no, exit or [CC],00000001b @@exit: ret endp mcMUL ;******************************************************************************* proc mcSWI SEntireFlag dec [S] dec [S] mov si,[S] mov ax,[PC] PutWord dec [S] dec [S] mov si,[S] mov ax,[U] PutWord dec [S] dec [S] mov si,[S] mov ax,[Y] PutWord dec [S] dec [S] mov si,[S] mov ax,[X] PutWord dec [S] mov si,[S] mov al,[DPR] PutByte dec [S] dec [S] mov si,[S] mov ax,[D] PutWord dec [S] mov si,[S] mov al,[CC] PutByte SIRQ SFIRQ mov si,0FFFAh ; point to 6809 interrupt vector GetWord ; get vector mov [PC],ax ; and put it in PC ret endp mcSWI
30.143695
83
0.314525
83419b97f73cdfd124519da275bf5b01b060ca4c
1,468
asm
Assembly
programs/oeis/006/A006697.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/006/A006697.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/006/A006697.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A006697: Number of subwords of length n in infinite word generated by a -> aab, b -> b. ; 1,2,4,6,9,13,17,22,28,35,43,51,60,70,81,93,106,120,135,151,167,184,202,221,241,262,284,307,331,356,382,409,437,466,496,527,559,591,624,658,693,729,766,804,843,883,924,966,1009,1053,1098,1144,1191,1239,1288,1338,1389,1441,1494,1548,1603,1659,1716,1774,1833,1893,1954,2016,2079,2143,2207,2272,2338,2405,2473,2542,2612,2683,2755,2828,2902,2977,3053,3130,3208,3287,3367,3448,3530,3613,3697,3782,3868,3955,4043,4132,4222,4313,4405,4498,4592,4687,4783,4880,4978,5077,5177,5278,5380,5483,5587,5692,5798,5905,6013,6122,6232,6343,6455,6568,6682,6797,6913,7030,7148,7267,7387,7508,7630,7753,7877,8002,8128,8255,8383,8511,8640,8770,8901,9033,9166,9300,9435,9571,9708,9846,9985,10125,10266,10408,10551,10695,10840,10986,11133,11281,11430,11580,11731,11883,12036,12190,12345,12501,12658,12816,12975,13135,13296,13458,13621,13785,13950,14116,14283,14451,14620,14790,14961,15133,15306,15480,15655,15831,16008,16186,16365,16545,16726,16908,17091,17275,17460,17646,17833,18021,18210,18400,18591,18783,18976,19170,19365,19561,19758,19956,20155,20355,20556,20758,20961,21165,21370,21576,21783,21991,22200,22410,22621,22833,23046,23260,23475,23691,23908,24126,24345,24565,24786,25008,25231,25455,25680,25906,26133,26361,26590,26820,27051,27283,27516,27750,27985,28221,28458,28696,28935,29175,29416,29658 add $0,1 lpb $0,1 sub $0,1 trn $1,$0 add $2,1 sub $2,$1 mov $1,$2 mul $2,2 lpe
112.923077
1,285
0.776567
32a1166e8cd8ff744a4ba6cca522c4fb611b2228
851
asm
Assembly
oeis/322/A322450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/322/A322450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/322/A322450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A322450: Number of permutations of [2n] in which the size of the last cycle is n and the cycles are ordered by increasing smallest elements. ; Submitted by Jamie Morken(s3.) ; 1,1,4,60,2016,120960,11404800,1556755200,290594304000,71137485619200,22117290983424000,8515157028618240000,3977233344443842560000,2215887149047283712000000,1451849260055780288102400000,1105220249217462744317952000000,967392782844461507967713280000000,964813068756876277279799377920000000,1087699785935383676807015930265600000000,1376375309122634504631597958158090240000000,1942655436304518415108598260943133081600000000,3041138783014891555288187459403704696832000000000 mov $1,1 mov $2,1 mov $3,$0 lpb $3 mul $1,$0 mul $2,$3 add $1,$2 mul $1,$0 mov $4,$0 cmp $4,0 mov $5,$0 add $5,$4 div $1,$5 sub $3,1 mul $1,$3 mov $2,$1 max $3,1 lpe mov $0,$2
35.458333
471
0.79436
73509de136b095fc69ea8e31dc7bf56e8f23658b
14,119
asm
Assembly
Library/Spline/Spline/splinePtr.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Spline/Spline/splinePtr.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Spline/Spline/splinePtr.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: splinePtr.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/ 5/92 Initial version. DESCRIPTION: Routines to deal with MSG_META_PTR $Id: splinePtr.asm,v 1.1 97/04/07 11:09:31 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplinePtrCode segment COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% METHOD: SplinePtr DESCRIPTION: When a mouse-movement event comes in, see what mode we're in, and do something about it. PASS: *ds:si - VisSpline object ds:bx - "" "" ds:di - VisSPline instance data cx - mouse x position dx - mouse y position bp - mouse flags RETURN: ax - MRF_PROCESSED DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 4/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplinePtr method dynamic VisSplineClass, MSG_META_PTR uses cx, dx, bp .enter mov ax, bp ; mouse flags call SplineCreateGState call SplineMouseMethodCommon call SplineDeltaMousePosition CallTable bx, SplinePtrCalls, SplineMode call SplineEndmCommon call SplineDestroyGState mov ax, mask MRF_PROCESSED .leave ret SplinePtr endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplinePtrCreateCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check to see what sort of MOVE op is currently happening. CALLED BY: PASS: es:bp - VisSplineInstance data RETURN: DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 10/ 7/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplinePtrCreateCommon proc near class VisSplineClass .enter GetActionType bl cmp bl, AT_MOVE_CONTROL jne noMove call SplineMakeTempCopyOfVisBounds call SplineMoveControl jmp done noMove: cmp bl, AT_CREATE_MODE_MOUSE_UP jne done call SplinePtrMouseUp done: .leave ret SplinePtrCreateCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplinePtrBeginnerSplineCreate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle a pointer event in beginner create mode CALLED BY: SplinePtr PASS: es:bp - vis spline instance *ds:si - points RETURN: nothing DESTROYED: ax,bx,cx,dx,di PSEUDO CODE/STRATEGY: Update the controls of the PREVIOUS anchor KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 10/ 8/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplinePtrBeginnerSplineCreate proc near class VisSplineClass .enter ; ; If we're following the mouse around, then update the ; previous anchor's controls ; GetActionType al cmp al, AT_CREATE_MODE_MOUSE_UP jne done ; ; Go to the last anchor, unless there is none. ; call SplineGotoLastAnchor jc done call SplineSetInvertMode ; Erase the old curves movHL bx, <mask SDF_IM_CURVE>, <SOT_ERASE> mov dx, mask SWPF_PREV_ANCHOR call SplineOperateOnCurrentPointFar SplineDerefScratchChunk di movP cxdx, ds:[di].SD_lastMouse call SplineDrawFromLastAnchor ; ; Update the controls ; movP cxdx, ds:[di].SD_mouse call SplineUpdateAutoSmoothControlsCXDX ; Redraw the curves call SplineDrawFromLastAnchor movHL bx, <mask SDF_IM_CURVE>, <SOT_DRAW> mov dx, mask SWPF_PREV_ANCHOR call SplineOperateOnCurrentPointFar done: .leave ret SplinePtrBeginnerSplineCreate endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplinePtrMouseUp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Deal with pointer events when the mouse is up. Erase the spline curve from the last anchor to the previous mouse position and draw one to the new position CALLED BY: PASS: es:bp - VisSplineInstance data RETURN: DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 10/ 4/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplinePtrMouseUp proc near uses cx,dx,di class VisSplineClass .enter call SplineSetInvertMode SplineDerefScratchChunk di movP cxdx, ds:[di].SD_lastMouse call SplineDrawFromLastAnchor movP cxdx, ds:[di].SD_mouse call SplineDrawFromLastAnchor .leave ret SplinePtrMouseUp endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplineDeltaMousePosition %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See how much the mouse has changed since the last store. Update the mouse position and "deltas" fields in the scratch chunk. CALLED BY: SplinePtr, SplineSetVisBounds PASS: cx, dx, - mouse es:bp - VisSplineInstance data RETURN: cx, dx, - deltax, deltay. Everything relevant is stored in the scratch chunk DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 4/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplineDeltaMousePosition proc near uses ax, si class VisSplineClass .enter EC < call ECSplineInstanceAndLMemBlock > SplineDerefScratchChunk si ; Get the stored mouse, store it in "last mouse", and update the new ; mouse posn and deltas mov ax, ds:[si].SD_mouse.P_x mov ds:[si].SD_lastMouse.P_x, ax mov ds:[si].SD_mouse.P_x, cx sub cx, ax mov ds:[si].SD_deltas.P_x, cx mov ax, ds:[si].SD_mouse.P_y mov ds:[si].SD_lastMouse.P_y, ax mov ds:[si].SD_mouse.P_y, dx sub dx, ax mov ds:[si].SD_deltas.P_y, dx .leave ret SplineDeltaMousePosition endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplineMoveCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Try and perform a move based on the current action type. If action type is irrelevant, do nothing. CALLED BY: PASS: es:bp - VisSplineInstance data cx, dx - mouse deltas ax - mouse flags (used by SplinePtrMoveRectangle) RETURN: nothing DESTROYED: bx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 10/ 4/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplineMoveCommon proc near class VisSplineClass .enter GetActionType bx sub bl, AT_MOVE_ANCHOR js done ; Do nothing on AT_NONE! ; copy the vis bounds to the scratch chunk to see if the move affects ; them. call SplineMakeTempCopyOfVisBounds call SplineSetInvertMode CallTable bx, SplineMoveCalls done: .leave ret SplineMoveCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplineMoveAnchor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Erase the current selected points, move them, see if change affected Vis bounds, then redraw. CALLED BY: SplineMoveCommon PASS: *ds:si - points array es:bp - VisSplineInstance data cx, dx - deltas RETURN: nothing DESTROYED: ax,bx,cx,dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 6/21/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplineMoveAnchor proc near class VisSplineClass .enter ; ; Erase curves and control lines (there are no control lines ; in beginner mode, but who cares?) ; movHL ax, <mask SDF_IM_CURVE or mask SDF_CONTROL_LINES>, \ <SOT_ERASE> mov bx, SWP_ANCHOR_CONTROLS_AND_CURVES call SplineOperateOnSelectedPoints push cx ; delta X mov cl, SOT_ERASE call checkBeginnerMode pop cx ; ; Add deltas to the anchor (controls are changed based on anchor's ; smoothness) ; mov al, SOT_ADD_DELTAS mov bx, mask SWPF_ANCHOR_POINT call SplineOperateOnSelectedPoints ; ; Update controls now that all the anchors have been moved: ; mov al, SOT_UPDATE_CONTROLS_FROM_ANCHOR call setUpdateControlFlags call SplineOperateOnSelectedPoints mov ax, SOT_ADD_TO_BOUNDING_BOX ; clear AH call setBoundingBoxFlags mov cl, es:[bp].VSI_handleSize.BBF_int clr ch call SplineOperateOnSelectedPoints ; ; Check to change the spline's size ; call SplineDetermineIfTempVisBoundsChanged ; ; Redraw IM curves. ; movHL ax, <mask SDF_IM_CURVE>, <SOT_DRAW> mov bx, SWP_ANCHOR_CONTROLS_AND_CURVES call SplineOperateOnSelectedPoints ; ; Redraw outer curves in beginner mode ; mov cl, SOT_DRAW call checkBeginnerMode ; ; redraw control lines (in advanced modes) ; GetMode al cmp al, SM_ADVANCED_CREATE je drawControl cmp al, SM_ADVANCED_EDIT jne done drawControl: movHL ax, <mask SDF_CONTROL_LINES>, <SOT_DRAW> mov bx, mask SWPF_NEXT_CONTROL or \ mask SWPF_PREV_CONTROL call SplineOperateOnSelectedPoints done: .leave ret setUpdateControlFlags: mov di, offset updateControlTable setFlagsCommon: GetEtypeFromRecord bx, SS_MODE, es:[bp].VSI_state shl bx mov bx, cs:[bx][di] retn setBoundingBoxFlags: mov di, offset boundingBoxTable jmp setFlagsCommon checkBeginnerMode: GetEtypeFromRecord al, SS_MODE, es:[bp].VSI_state cmp al, SM_BEGINNER_EDIT jne endCheck ; ; See if we should erase the OUTER curves as well (involves ; more complicated case-checking) ; mov al, SOT_CHECK_BEGINNER_ANCHOR_MOVE mov bx, mask SWPF_ANCHOR_POINT call SplineOperateOnSelectedPoints endCheck: retn SplineMoveAnchor endp updateControlTable SplineWhichPointFlags \ -1, ; SM_BEGINNER_POLYLINE_CREATE -1, ; SM_BEGINNER_SPLINE_CREATE -1, ; SM_ADVANCED_CREATE mask SWPF_PREV_ANCHOR or \ mask SWPF_ANCHOR_POINT or \ mask SWPF_NEXT_ANCHOR, ; SM_BEGINNER_EDIT mask SWPF_ANCHOR_POINT, ; SM_ADVANCED_EDIT 0 boundingBoxTable SplineWhichPointFlags \ -1, ; SM_BEGINNER_POLYLINE_CREATE -1, ; SM_BEGINNER_SPLINE_CREATE -1, ; SM_ADVANCED_CREATE SWP_ANCHOR_ALL_CONTROLS_BEGINNER, ; SM_BEGINNER_EDIT SWP_ANCHOR_AND_CONTROLS, ; SM_ADVANCED_EDIT 0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplineMoveSegment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move a spline segment during advanced edit mode CALLED BY: SplinePtr PASS: es:bp - VisSplineInstance data RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Segments are moved by adjusting control points by the amount of mouse movement. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 6/27/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplineMoveSegment proc near uses ax,bx class VisSplineClass .enter ; Erase movHL ax, <mask SDF_IM_CURVE or mask SDF_CONTROL_LINES>,\ <SOT_ERASE> mov bx, SWP_SEGMENT call SplineOperateOnSelectedPoints ; Update mov al, SOT_ADD_DELTAS mov bx, mask SWPF_NEXT_CONTROL or mask SWPF_NEXT_FAR_CONTROL call SplineOperateOnSelectedPoints mov ax, SOT_ADD_TO_BOUNDING_BOX ; clear AH mov cl, es:[bp].VSI_handleSize.BBF_int clr ch call SplineOperateOnSelectedPoints call SplineDetermineIfTempVisBoundsChanged ; Redraw movHL ax, <mask SDF_IM_CURVE or mask SDF_CONTROL_LINES>,\ <SOT_DRAW> mov bx, SWP_SEGMENT call SplineOperateOnSelectedPoints .leave ret SplineMoveSegment endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SplineMoveControl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Move control points during advanced create/advanced edit CALLED BY: SplinePtr, SplineMoveCommon PASS: es:bp - VisSplineInstance data (cx,dx) - mouse deltas RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 6/27/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SplineMoveControl proc near uses ax,bx class VisSplineClass .enter mov ax, es:[bp].VSI_actionPoint EC < call ECSplineControlPoint > push dx ; save mouse position push cx ; erase movHL bx, <SDT_MOVE_CONTROL>, <SOT_ERASE> call SplineSetFlagsForControlMove call SplineOperateOnCurrentPoint ; update pop cx ; restore deltas and XchgTopStack dx ; save SplineWhichPointFlags call SplineUserChangeControlPoint ; set the control call SplineChangeOtherControlPoint ; set the other ctrl point mov bx, SOT_ADD_TO_BOUNDING_BOX ; clear BH mov dx, mask SWPF_NEXT_CONTROL or \ mask SWPF_PREV_CONTROL mov cl, es:[bp].VSI_handleSize.BBF_int clr ch call SplineOperateOnCurrentPoint call SplineDetermineIfTempVisBoundsChanged ; redraw movHL bx, <SDT_MOVE_CONTROL>, <SOT_DRAW> pop dx call SplineOperateOnCurrentPoint .leave ret SplineMoveControl endp SplinePtrCode ends
21.755008
76
0.61357
cf1b9dd1511927baa3e8d7692bd90b07ee8e4765
643
asm
Assembly
oeis/115/A115147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115147.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115147: Eighth convolution of A115140. ; Submitted by Christian Krause ; 1,-8,20,-16,2,0,0,0,-1,-8,-44,-208,-910,-3808,-15504,-62016,-245157,-961400,-3749460,-14567280,-56448210,-218349120,-843621600,-3257112960,-12570420330,-48507033744,-187187399448,-722477682080,-2789279908316,-10772391370048,-41620603020640,-160878516023680,-622147386185325,-2407144796004312,-9318155533853796,-36089364289846448,-139846286623154986,-542181316264981120,-2103092789933110976,-8161878718251577088,-31691044710711201662,-123110222468217351024,-478474604130676679400 mov $2,2 mul $2,$0 sub $2,9 mov $1,$2 bin $1,$0 sub $0,1 bin $2,$0 sub $1,$2 mov $0,$1
45.928571
480
0.782271
f057e3e5471cb1e9dfe858899dd0dcf1179dd8e3
2,824
asm
Assembly
book-01/Assembly/asm/avx/packed/avx_p_convert_float_to_byte_0_255_range.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
2
2021-02-27T04:50:26.000Z
2022-03-15T23:27:12.000Z
book-01/Assembly/asm/avx/packed/avx_p_convert_float_to_byte_0_255_range.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
null
null
null
book-01/Assembly/asm/avx/packed/avx_p_convert_float_to_byte_0_255_range.asm
gfurtadoalmeida/study-assembly-x64
4acdefb015d44706c60bd7ea5d94f726c4dbcbb4
[ "MIT" ]
null
null
null
include macros.inc include comparison_predicates.inc .const align 16 FloatToUint8Min real4 0.0, 0.0, 0.0, 0.0 FloatToUint8Max real4 1.0, 1.0, 1.0, 1.0 FloatToUint8Scale real4 255.0, 255.0, 255.0, 255.0 Uint8Min dword 0 Uint8Max dword 255 .code ; bool AVX_Packed_Convert_Float_To_Byte_0_255_Range(const float* input, uint32_t arrayLength, uint8_t * output); AVX_Packed_Convert_Float_To_Byte_0_255_Range proc frame _CreateFrame F2U_, 0, 96 _SaveXmmRegs xmm6, xmm7, xmm12, xmm13, xmm14, xmm15 _EndProlog xor eax, eax test rdx, rdx ; Exit if arrayLenght == 0 jz InvalidArg test rcx, 0fh ; Exit if not aligned jnz InvalidArg test r8, 0fh ; Exit if not aligned jnz InvalidArg ; Initializations mov r9, rdx shr r9d, 2 ; arrayLength >> 2 = arrayLength % 4 = Number of blocks with 4 items vpxor xmm1, xmm1, xmm1 ; Just zeros vmovaps xmm13, xmmword ptr [FloatToUint8Scale] vmovaps xmm14, xmmword ptr [FloatToUint8Min] vmovaps xmm15, xmmword ptr [FloatToUint8Max] test r9, r9 ; Do one by one number of blocks is zero jz OneByOne @@: vmovaps xmm0, xmmword ptr [rcx] ; xmm0 have 4 floats ; Values < 0.0F = 0.0F vcmpps xmm1, xmm0, xmm14, CMP_LT_OS vandnps xmm2, xmm1, xmm0 ; Values > 1.0F = 1.0F vcmpps xmm3, xmm2, xmm15, CMP_GT_OS vandps xmm4, xmm3, xmm15 vandnps xmm5, xmm3, xmm2 vorps xmm6, xmm5, xmm4 ; Values = values * 255.0F vmulps xmm7, xmm6, xmm13 ; Convert 4 floats to 4 int32_t vcvtps2dq xmm0, xmm7 ; Convert 4 int32_t to 8 uint16_t ; 127 0 ; xmm1 = xmm0[3] xmm0[2] xmm0[1] xmm0[0] xmm0[3] xmm0[2] xmm0[1] xmm0[0] ; It's safe to do because the values will never go beyond 255 vpackusdw xmm1, xmm0, xmm0 ; Convert 8 uint16_t to 16 uint8_t ; 127 0 ; xmm1 = xmm0[3] xmm0[2] xmm0[1] xmm0[0] ... xmm0[3] xmm0[2] xmm0[1] xmm0[0] ; It's safe to do because the values will never go beyond 255 vpackuswb xmm2, xmm1, xmm1 vpextrd eax, xmm2, 0 ; Get the 4 uint_8 converted number (32 bits) mov dword ptr [r8], eax add rcx, 16 ; Advance to the next 16 bytes (4 items * sizeof(float)) add r8, type dword sub rdx, 4 sub r9d, 1 jnz @B OneByOne: test rdx, rdx jz Done ; Get next number. ; Multiply it by uint8_t max value. ; Convert it to int32_t. vmovss xmm1, real4 ptr [rcx] vmulss xmm2, xmm1, real4 ptr [FloatToUint8Scale] vcvtss2si eax, xmm2 ; Value < 0 = 0 cmp eax, 0 cmovb eax, dword ptr [Uint8Min] ; Value > 255 = 255 cmp eax, 255 cmova eax, dword ptr [Uint8Max] mov byte ptr [r8], al add rcx, type real4 ; Advance to the next number add r8, type byte dec rdx jnz OneByOne Done: mov rax, 1 InvalidArg: _RestoreXmmRegs xmm6, xmm7, xmm8, xmm9, xmm10, xmm11, xmm12, xmm13, xmm14, xmm15 _DeleteFrame ret AVX_Packed_Convert_Float_To_Byte_0_255_Range endp end
23.147541
112
0.695467
2cb35b5d2337aaf1f9d0a9c818c81b4a79ef1c6c
12,433
asm
Assembly
calc/calc.asm
leonardoruilova/xos
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
[ "MIT" ]
1
2021-03-21T19:49:05.000Z
2021-03-21T19:49:05.000Z
calc/calc.asm
leonardoruilova/xos
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
[ "MIT" ]
null
null
null
calc/calc.asm
leonardoruilova/xos
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
[ "MIT" ]
null
null
null
;; Calculator application for xOS ;; Copyright (C) 2017 by Omar Mohammad. use32 org 0x8000000 ; programs are loaded to 128 MB, drivers to 2048 MB application_header: .id db "XOS1" ; tell the kernel we are a valid application .type dd 0 ; 32-bit application .entry dd main ; entry point .reserved0 dq 0 .reserved1 dq 0 include "libxwidget/src/libxwidget.asm" ; widget library ;) ; these tell the application what the user wants to do PLUS = 1 MINUS = 2 MULTIPLY = 3 DIVIDE = 4 ; main: ; Program entry point main: ; we have to call this in the beginning call xwidget_init ; make a window mov ax, 300 mov bx, 64 mov si, 180 mov di, 180 mov dx, 0 mov ecx, window_text call xwidget_create_window mov [window_handle], eax ; create the interface mov eax, [window_handle] mov cx, 4 mov dx, 32 mov esi, text7 call xwidget_create_button mov [button7_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4 mov dx, 32 mov esi, text8 call xwidget_create_button mov [button8_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4 mov dx, 32 mov esi, text9 call xwidget_create_button mov [button9_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4+32+8+4 mov dx, 32 mov esi, text_plus call xwidget_create_button mov [plus_handle], eax mov eax, [window_handle] mov cx, 4 mov dx, 32+32+4 mov esi, text4 call xwidget_create_button mov [button4_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4 mov dx, 32+32+4 mov esi, text5 call xwidget_create_button mov [button5_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4 mov dx, 32+32+4 mov esi, text6 call xwidget_create_button mov [button6_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4+32+8+4 mov dx, 32+32+4 mov esi, text_minus call xwidget_create_button mov [minus_handle], eax mov eax, [window_handle] mov cx, 4 mov dx, 32+32+4+32+4 mov esi, text1 call xwidget_create_button mov [button1_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4 mov dx, 32+32+4+32+4 mov esi, text2 call xwidget_create_button mov [button2_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4 mov dx, 32+32+4+32+4 mov esi, text3 call xwidget_create_button mov [button3_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4+32+8+4 mov dx, 32+32+4+32+4 mov esi, text_mul call xwidget_create_button mov [mul_handle], eax mov eax, [window_handle] mov cx, 4 mov dx, 32+32+4+32+4+32+4 mov esi, textc call xwidget_create_button mov [c_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4 mov dx, 32+32+4+32+4+32+4 mov esi, text0 call xwidget_create_button mov [button0_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4 mov dx, 32+32+4+32+4+32+4 mov esi, text_equal call xwidget_create_button mov [equal_handle], eax mov eax, [window_handle] mov cx, 4+32+8+4+32+8+4+32+8+4 mov dx, 32+32+4+32+4+32+4 mov esi, text_div call xwidget_create_button mov [div_handle], eax .start: mov [num1], 0 mov [num1_size], 0 mov [num2], 0 mov [num2_size], 0 mov [operation], 0 mov [number_text_pointer], number_text mov [active_number], 0 mov edi, number_text mov al, 0 mov ecx, 128 rep stosb mov byte[number_text], "0" mov eax, [window_handle] mov cx, 8 mov dx, 8 mov esi, number_text mov ebx, 0x000000 call xwidget_create_label mov [label_handle], eax .wait: ; wait here for event call xwidget_wait_event cmp eax, XWIDGET_CLOSE je .close cmp eax, XWIDGET_BUTTON ; buttonclick event je .button_click jmp .wait .close: call xwidget_destroy mov ebp, 0x15 int 0x60 .button_click: ; ebx has the button which was pressed cmp ebx, [button1_handle] je .1 cmp ebx, [button2_handle] je .2 cmp ebx, [button3_handle] je .3 cmp ebx, [button4_handle] je .4 cmp ebx, [button5_handle] je .5 cmp ebx, [button6_handle] je .6 cmp ebx, [button7_handle] je .7 cmp ebx, [button8_handle] je .8 cmp ebx, [button9_handle] je .9 cmp ebx, [button0_handle] je .0 cmp ebx, [plus_handle] je .plus cmp ebx, [minus_handle] je .minus cmp ebx, [mul_handle] je .mul cmp ebx, [div_handle] je .div cmp ebx, [c_handle] je .clear cmp ebx, [equal_handle] je .equal jmp .wait .clear: mov eax, [window_handle] mov ebx, [label_handle] call xwidget_destroy_component jmp .start .1: mov al, 1 call input_number jc .wait mov edi, [number_text_pointer] mov al, "1" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .2: mov al, 2 call input_number jc .wait mov edi, [number_text_pointer] mov al, "2" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .3: mov al, 3 call input_number jc .wait mov edi, [number_text_pointer] mov al, "3" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .4: mov al, 4 call input_number jc .wait mov edi, [number_text_pointer] mov al, "4" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .5: mov al, 5 call input_number jc .wait mov edi, [number_text_pointer] mov al, "5" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .6: mov al, 6 call input_number jc .wait mov edi, [number_text_pointer] mov al, "6" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .7: mov al, 7 call input_number jc .wait mov edi, [number_text_pointer] mov al, "7" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .8: mov al, 8 call input_number jc .wait mov edi, [number_text_pointer] mov al, "8" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .9: mov al, 9 call input_number jc .wait mov edi, [number_text_pointer] mov al, "9" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .0: mov al, 0 call input_number jc .wait mov edi, [number_text_pointer] mov al, "0" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .plus: cmp [active_number], 1 je .wait inc [active_number] mov [operation], PLUS mov edi, [number_text_pointer] mov al, "+" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .minus: cmp [active_number], 1 je .wait inc [active_number] mov [operation], MINUS mov edi, [number_text_pointer] mov al, "-" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .mul: cmp [active_number], 1 je .wait inc [active_number] mov [operation], MULTIPLY mov edi, [number_text_pointer] mov al, "*" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .div: cmp [active_number], 1 je .wait inc [active_number] mov [operation], DIVIDE mov edi, [number_text_pointer] mov al, "/" stosb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp .wait .equal: cmp [active_number], 0 je .wait cmp [operation], 0 ; this condition should never be true je .wait mov [active_number], 0 cmp [operation], PLUS je do_add cmp [operation], MINUS je do_minus cmp [operation], MULTIPLY je do_multiply cmp [operation], DIVIDE je do_divide jmp .wait do_add: mov eax, [num1] mov ebx, [num2] add eax, ebx mov [num1], eax call count_digits mov [num1_size], eax mov [num2], 0 mov [num2_size], 0 mov [operation], 0 mov edi, number_text mov ecx, 128 xor al,al rep stosb mov eax, [num1] call int_to_string call strlen mov edi, number_text mov ecx, eax rep movsb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp main.wait do_minus: mov eax, [num1] mov ebx, [num2] sub eax, ebx mov [num1], eax call count_digits mov [num1_size], eax mov [num2], 0 mov [num2_size], 0 mov [operation], 0 mov edi, number_text mov ecx, 128 xor al,al rep stosb mov eax, [num1] call int_to_string call strlen mov edi, number_text mov ecx, eax rep movsb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp main.wait do_multiply: mov eax, [num1] mov ebx, [num2] mul ebx mov [num1], eax call count_digits mov [num1_size], eax mov [num2], 0 mov [num2_size], 0 mov [operation], 0 mov edi, number_text mov ecx, 128 xor al,al rep stosb mov eax, [num1] call int_to_string call strlen mov edi, number_text mov ecx, eax rep movsb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp main.wait do_divide: cmp [num2], 0 ; check for divide by zero je .divide_error mov eax, [num1] mov ebx, [num2] xor edx, edx div ebx mov [num1], eax call count_digits mov [num1_size], eax mov [num2], 0 mov [num2_size], 0 mov [operation], 0 mov edi, number_text mov ecx, 128 xor al,al rep stosb mov eax, [num1] call int_to_string call strlen mov edi, number_text mov ecx, eax rep movsb mov [number_text_pointer], edi mov eax, [window_handle] call xwidget_redraw jmp main.wait .divide_error: mov esi, divide_error_text mov ecx, divide_error_text_size mov edi, number_text rep movsb mov eax, [window_handle] call xwidget_redraw .hang: call xwidget_wait_event cmp eax, XWIDGET_CLOSE je main.close jmp .hang ; count_digits: ; Counts the digits of a number ; In\ EAX = Number ; Out\ EAX = Digits count align 4 count_digits: cmp eax, 0 je .zero xor ecx, ecx .loop: xor edx, edx mov ebx, 10 div ebx cmp eax, 0 jne .increment cmp dl, 0 jne .increment jmp .done .increment: inc ecx jmp .loop .done: mov eax, ecx ret .zero: xor eax, eax ret ; int_to_string: ; Converts an unsigned integer to a string ; In\ EAX = Integer ; Out\ ESI = ASCIIZ string int_to_string: push eax mov [.counter], 10 mov edi, .string mov ecx, 10 mov eax, 0 rep stosb mov esi, .string add esi, 9 pop eax .loop: cmp eax, 0 je .done2 mov ebx, 10 mov edx, 0 div ebx add dl, 48 mov byte[esi], dl dec esi sub byte[.counter], 1 cmp byte[.counter], 0 je .done jmp .loop .done: mov esi, .string ret .done2: cmp byte[.counter], 10 je .zero mov esi, .string .find_string_loop: lodsb cmp al, 0 jne .found_string jmp .find_string_loop .found_string: dec esi ret .zero: mov edi, .string mov al, '0' stosb mov al, 0 stosb mov esi, .string ret .string: times 11 db 0 .counter db 0 ; strlen: ; Calculates string length ; In\ ESI = String ; Out\ EAX = String size strlen: push esi xor ecx, ecx .loop: lodsb cmp al, 0 je .done inc ecx jmp .loop .done: mov eax, ecx pop esi ret ; input_number: ; Inputs a number into the current active number ; In\ AL = Number (0-9) ; Out\ Nothing align 4 input_number: cmp [active_number], 0 je .1 .2: cmp [num2_size], 9 jge .bad push eax mov eax, [num2] mov ebx, 10 mul ebx pop edx and edx, 0xFF add eax, edx mov [num2], eax inc [num2_size] clc ret .1: cmp [num1_size], 9 jge .bad push eax mov eax, [num1] mov ebx, 10 mul ebx pop edx and edx, 0xFF add eax, edx mov [num1], eax inc [num1_size] clc ret .bad: stc ret ; xwidget_yield_handler: ; This is called by xwidget every time it is idle xwidget_yield_handler: ret ; Data... window_text db "Calculator",0 text0 db "0",0 text1 db "1",0 text2 db "2",0 text3 db "3",0 text4 db "4",0 text5 db "5",0 text6 db "6",0 text7 db "7",0 text8 db "8",0 text9 db "9",0 textc db "C",0 text_equal db "=",0 text_plus db "+",0 text_minus db "-",0 text_mul db "*",0 text_div db "/",0 divide_error_text db "Divide by zero.",0 divide_error_text_size = $ - divide_error_text active_number db 0 number_text: times 128 db 0 number_text_pointer dd number_text num1 dd 0 num1_size dd 0 num2 dd 0 num2_size dd 0 operation db 0 window_handle dd 0 label_handle dd 0 button0_handle dd 0 button1_handle dd 0 button2_handle dd 0 button3_handle dd 0 button4_handle dd 0 button5_handle dd 0 button6_handle dd 0 button7_handle dd 0 button8_handle dd 0 button9_handle dd 0 plus_handle dd 0 minus_handle dd 0 mul_handle dd 0 div_handle dd 0 c_handle dd 0 equal_handle dd 0
14.274397
66
0.693718
27aa6c27d74c67fbcbd8f0cbbec0f8d1c4a790f7
261
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/ts2068/misc/c/sdcc_iy/tshc_cls_wc_pix_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void tshc_cls_wc_pix(struct r_Rect8 *r, uchar pix) SECTION code_clib SECTION code_arch PUBLIC _tshc_cls_wc_pix_callee EXTERN asm_tshc_cls_wc_pix _tshc_cls_wc_pix_callee: pop hl pop ix dec sp ex (sp),hl ld l,h jp asm_tshc_cls_wc_pix
13.736842
52
0.750958
02765dd34bf124d93441d3e18d59255bc25022e5
5,812
asm
Assembly
unused/develop/obj/scene_0_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
33
2020-12-27T11:53:23.000Z
2022-02-19T23:05:12.000Z
unused/develop/obj/scene_0_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
2
2020-12-10T16:53:53.000Z
2022-01-31T21:42:01.000Z
unused/develop/obj/scene_0_actors.asm
pau-tomas/gbvm
c2c7a93a42f6e3168b013c93c4a3bd1c9e8b989b
[ "MIT" ]
6
2021-04-18T08:09:16.000Z
2022-01-31T21:52:24.000Z
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.4 #12246 (Mac OS X x86_64) ;-------------------------------------------------------- .module scene_0_actors .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _scene_0_actors .globl ___bank_scene_0_actors ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _INITIALIZED ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE_255 .area _CODE_255 ___bank_scene_0_actors = 0x00ff _scene_0_actors: .db #0x00 ; 0 .dw #0x0200 .dw #0x0300 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_2 .dw _spritesheet_2 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .dw #0x0200 .dw #0x0200 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_3 .dw _spritesheet_3 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .dw #0x0480 .dw #0x0380 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_4 .dw _spritesheet_4 .byte ___bank_script_s0a2_interact .dw _script_s0a2_interact .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .dw #0x0700 .dw #0x0300 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_2 .dw _spritesheet_2 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .dw #0x0700 .dw #0x0200 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x07 ; 7 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_3 .dw _spritesheet_3 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .dw #0x0680 .dw #0x0580 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0f ; 15 .db #0xf8 ; -8 .db #0x07 ; 7 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x1f ; 31 .db #0x01 ; 1 .db #0x00 ; 0 .db #0x00 ; 0 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .db 0x00 .byte ___bank_spritesheet_5 .dw _spritesheet_5 .byte ___bank_script_s0a5_interact .dw _script_s0a5_interact .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .byte #0x00 .dw #0x0000 .dw #0x0000 .db #0x00 ; 0 .db #0x01 ; 1 .dw #0x0000 .dw #0x0000 .area _INITIALIZER .area _CABS (ABS)
16.371831
57
0.490709
dc5495c1c443392858b6e54d10759b85757512f0
265
asm
Assembly
programs/oeis/329/A329682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/329/A329682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A329682: Number of excursions of length n with Motzkin-steps forbidding all consecutive steps of length 2 except UH, UD, HU and DD. ; 1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0 trn $0,3 mod $0,3 gcd $0,2 mov $1,$0 sub $1,1
29.444444
133
0.645283
bef1b49527d9d8dba5a5a50790b060250e248fed
7,443
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1275.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1275.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1275.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 %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x58a5, %r8 nop nop nop nop nop inc %rbx movw $0x6162, (%r8) sub $61988, %r10 lea addresses_UC_ht+0x1af85, %r12 nop nop nop nop cmp %rdi, %rdi movw $0x6162, (%r12) nop nop mfence lea addresses_A_ht+0x59e5, %r12 nop nop sub %rcx, %rcx mov $0x6162636465666768, %r8 movq %r8, (%r12) nop nop nop nop add %r8, %r8 lea addresses_normal_ht+0x10b2b, %rdi nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r8 movq %r8, %xmm3 vmovups %ymm3, (%rdi) nop nop xor $17484, %r8 lea addresses_A_ht+0xc7e5, %r9 nop nop nop nop inc %r10 mov (%r9), %cx nop nop nop nop nop sub $6532, %rbx lea addresses_WT_ht+0xcd75, %rsi lea addresses_A_ht+0x108e5, %rdi clflush (%rsi) nop add %r10, %r10 mov $115, %rcx rep movsw nop nop nop dec %rdi lea addresses_normal_ht+0x11165, %r12 nop nop nop sub %rcx, %rcx mov (%r12), %r10d nop nop nop sub $19842, %r9 lea addresses_WT_ht+0x153e5, %r12 nop cmp $14614, %rsi mov (%r12), %ecx nop nop nop nop nop add %r9, %r9 lea addresses_WT_ht+0x30e5, %rsi lea addresses_normal_ht+0x85e5, %rdi and $26465, %r8 mov $65, %rcx rep movsq nop nop xor $4043, %rsi lea addresses_D_ht+0xc1e5, %rbx nop nop nop nop inc %rdi mov $0x6162636465666768, %rcx movq %rcx, (%rbx) nop nop nop cmp $36901, %r12 lea addresses_D_ht+0x10fe5, %rbx nop nop nop nop sub $16072, %rdi vmovups (%rbx), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rcx nop nop nop nop nop sub $38808, %r10 lea addresses_WT_ht+0x86e5, %rsi cmp $47869, %rbx mov $0x6162636465666768, %r12 movq %r12, %xmm7 movups %xmm7, (%rsi) nop nop add %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r9 push %rax push %rdi // Store lea addresses_US+0x15525, %rax nop dec %rdi mov $0x5152535455565758, %r14 movq %r14, (%rax) nop nop add %r14, %r14 // Store lea addresses_UC+0x8e65, %rax nop nop add $889, %r11 movw $0x5152, (%rax) sub $58474, %r11 // Faulty Load lea addresses_RW+0x147e5, %r9 inc %r11 movups (%r9), %xmm2 vpextrq $0, %xmm2, %r13 lea oracles, %r10 and $0xff, %r13 shlq $12, %r13 mov (%r10,%r13,1), %r13 pop %rdi pop %rax pop %r9 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
33.678733
2,999
0.65565
e7e5924a9c5330921da40a0d55141ed2285ff184
991
asm
Assembly
data/mapObjects/silphco2.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/mapObjects/silphco2.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/mapObjects/silphco2.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
SilphCo2Object: db $2e ; border block db $7 ; warps db $0, $18, $2, SILPH_CO_1F db $0, $1a, $0, SILPH_CO_3F db $0, $14, $0, SILPH_CO_ELEVATOR db $3, $3, $6, SILPH_CO_3F db $3, $d, $4, SILPH_CO_8F db $f, $1b, $5, SILPH_CO_8F db $f, $9, $4, SILPH_CO_6F db $0 ; signs db $5 ; objects object SPRITE_LASS, $a, $1, STAY, UP, $1 ; person object SPRITE_OAK_AIDE, $5, $c, STAY, DOWN, $2, OPP_SCIENTIST, $2 object SPRITE_OAK_AIDE, $18, $d, STAY, LEFT, $3, OPP_SCIENTIST, $3 object SPRITE_ROCKET, $10, $b, STAY, UP, $4, OPP_ROCKET, $17 object SPRITE_ROCKET, $18, $7, STAY, UP, $5, OPP_ROCKET, $18 ; warp-to EVENT_DISP SILPH_CO_2F_WIDTH, $0, $18 ; SILPH_CO_1F EVENT_DISP SILPH_CO_2F_WIDTH, $0, $1a ; SILPH_CO_3F EVENT_DISP SILPH_CO_2F_WIDTH, $0, $14 ; SILPH_CO_ELEVATOR EVENT_DISP SILPH_CO_2F_WIDTH, $3, $3 ; SILPH_CO_3F EVENT_DISP SILPH_CO_2F_WIDTH, $3, $d ; SILPH_CO_8F EVENT_DISP SILPH_CO_2F_WIDTH, $f, $1b ; SILPH_CO_8F EVENT_DISP SILPH_CO_2F_WIDTH, $f, $9 ; SILPH_CO_6F
33.033333
67
0.686176
b85cf38e670a735c18ff75d0026c88cf0745a20f
1,608
asm
Assembly
programs/oeis/081/A081250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081250.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081250: Numbers k such that A081249(m)/m^2 has a local minimum for m = k. ; 1,3,11,33,101,303,911,2733,8201,24603,73811,221433,664301,1992903,5978711,17936133,53808401,161425203,484275611,1452826833,4358480501,13075441503,39226324511,117678973533,353036920601,1059110761803,3177332285411,9531996856233,28595990568701,85787971706103,257363915118311,772091745354933,2316275236064801,6948825708194403,20846477124583211,62539431373749633,187618294121248901,562854882363746703,1688564647091240111,5065693941273720333,15197081823821161001,45591245471463483003,136773736414390449011,410321209243171347033,1230963627729514041101,3692890883188542123303,11078672649565626369911,33236017948696879109733,99708053846090637329201,299124161538271911987603,897372484614815735962811,2692117453844447207888433,8076352361533341623665301,24229057084600024870995903,72687171253800074612987711,218061513761400223838963133,654184541284200671516889401,1962553623852602014550668203,5887660871557806043652004611,17662982614673418130956013833,52988947844020254392868041501,158966843532060763178604124503,476900530596182289535812373511,1430701591788546868607437120533,4292104775365640605822311361601,12876314326096921817466934084803,38628942978290765452400802254411,115886828934872296357202406763233,347660486804616889071607220289701,1042981460413850667214821660869103,3128944381241552001644464982607311,9386833143724656004933394947821933,28160499431173968014800184843465801,84481498293521904044400554530397403,253444494880565712133201663591192211,760333484641697136399604990773576633 mov $1,3 pow $1,$0 mul $1,5 div $1,4 mov $0,$1
178.666667
1,482
0.922886
4cebc37f0ea7b7e38d5cda72cfa12f371663f30e
4,029
asm
Assembly
Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xa0_notsx.log_162_420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xa0_notsx.log_162_420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xa0_notsx.log_162_420.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 %r8 push %rax push %rbx push %rdi lea addresses_A_ht+0x14289, %rdi nop nop nop nop nop cmp %rbx, %rbx mov (%rdi), %r8w nop nop nop nop inc %rax pop %rdi pop %rbx pop %rax pop %r8 ret .global s_faulty_load s_faulty_load: push %r13 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_D+0x14289, %rsi lea addresses_PSE+0x1ddc9, %rdi nop xor $12310, %r13 mov $50, %rcx rep movsq nop nop add $52060, %rdi // Store mov $0x6e0, %rbp nop nop nop cmp %rdi, %rdi movw $0x5152, (%rbp) nop nop nop nop dec %rcx // Load lea addresses_RW+0x12ecf, %rbp nop nop add %rsi, %rsi mov (%rbp), %r13 nop nop nop nop nop xor %rsi, %rsi // Store lea addresses_WC+0xbab9, %r13 nop nop nop nop dec %rcx movl $0x51525354, (%r13) nop nop nop cmp %rdi, %rdi // Load lea addresses_PSE+0x7dc9, %rbp nop nop and %rcx, %rcx mov (%rbp), %rdi add $55217, %r13 // Store mov $0x149, %rsi clflush (%rsi) and $41812, %r13 mov $0x5152535455565758, %rcx movq %rcx, (%rsi) nop nop add %rsi, %rsi // Store lea addresses_normal+0x1fed, %rcx xor %rbp, %rbp mov $0x5152535455565758, %rdx movq %rdx, %xmm3 vmovups %ymm3, (%rcx) nop cmp %rdi, %rdi // Store lea addresses_WT+0x1b567, %r13 nop nop nop xor $54975, %rcx mov $0x5152535455565758, %rdx movq %rdx, %xmm5 and $0xffffffffffffffc0, %r13 vmovaps %ymm5, (%r13) nop nop cmp $1756, %rax // Store mov $0x10363c0000000dc9, %rdx nop nop nop xor $44049, %rsi mov $0x5152535455565758, %rax movq %rax, (%rdx) nop sub $37170, %r13 // Load lea addresses_normal+0x7a69, %rsi nop nop inc %rdi mov (%rsi), %ebp sub %rsi, %rsi // Faulty Load mov $0x10363c0000000dc9, %rdx nop sub $54564, %rsi mov (%rdx), %r13w lea oracles, %rdx and $0xff, %r13 shlq $12, %r13 mov (%rdx,%r13,1), %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_PSE', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'58': 145, '00': 17} 58 58 58 58 58 58 58 58 58 00 58 58 00 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 58 58 */
21.778378
485
0.63862
2a3d5bcf72e5590e905662aef22622a0400e5f94
10,992
nasm
Assembly
CryptoPkg/Library/OpensslLib/X64/crypto/x86_64cpuid.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
3,012
2015-01-01T19:58:18.000Z
2022-03-31T22:07:14.000Z
CryptoPkg/Library/OpensslLib/X64/crypto/x86_64cpuid.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,199
2015-01-12T08:00:01.000Z
2022-03-29T18:14:42.000Z
CryptoPkg/Library/OpensslLib/X64/crypto/x86_64cpuid.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,850
2015-01-01T11:28:12.000Z
2022-03-31T18:10:59.000Z
; WARNING: do not edit! ; Generated from openssl/crypto/x86_64cpuid.pl ; ; Copyright 2005-2020 The OpenSSL Project Authors. All Rights Reserved. ; ; Licensed under the OpenSSL license (the "License"). You may not use ; this file except in compliance with the License. You can obtain a copy ; in the file LICENSE in the source distribution or at ; https://www.openssl.org/source/license.html default rel %define XMMWORD %define YMMWORD %define ZMMWORD EXTERN OPENSSL_cpuid_setup section .CRT$XCU rdata align=8 DQ OPENSSL_cpuid_setup common OPENSSL_ia32cap_P 16 section .text code align=64 global OPENSSL_atomic_add ALIGN 16 OPENSSL_atomic_add: mov eax,DWORD[rcx] $L$spin: lea r8,[rax*1+rdx] DB 0xf0 cmpxchg DWORD[rcx],r8d jne NEAR $L$spin mov eax,r8d DB 0x48,0x98 DB 0F3h,0C3h ;repret global OPENSSL_rdtsc ALIGN 16 OPENSSL_rdtsc: rdtsc shl rdx,32 or rax,rdx DB 0F3h,0C3h ;repret global OPENSSL_ia32_cpuid ALIGN 16 OPENSSL_ia32_cpuid: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_OPENSSL_ia32_cpuid: mov rdi,rcx mov r8,rbx xor eax,eax mov QWORD[8+rdi],rax cpuid mov r11d,eax xor eax,eax cmp ebx,0x756e6547 setne al mov r9d,eax cmp edx,0x49656e69 setne al or r9d,eax cmp ecx,0x6c65746e setne al or r9d,eax jz NEAR $L$intel cmp ebx,0x68747541 setne al mov r10d,eax cmp edx,0x69746E65 setne al or r10d,eax cmp ecx,0x444D4163 setne al or r10d,eax jnz NEAR $L$intel mov eax,0x80000000 cpuid cmp eax,0x80000001 jb NEAR $L$intel mov r10d,eax mov eax,0x80000001 cpuid or r9d,ecx and r9d,0x00000801 cmp r10d,0x80000008 jb NEAR $L$intel mov eax,0x80000008 cpuid movzx r10,cl inc r10 mov eax,1 cpuid bt edx,28 jnc NEAR $L$generic shr ebx,16 cmp bl,r10b ja NEAR $L$generic and edx,0xefffffff jmp NEAR $L$generic $L$intel: cmp r11d,4 mov r10d,-1 jb NEAR $L$nocacheinfo mov eax,4 mov ecx,0 cpuid mov r10d,eax shr r10d,14 and r10d,0xfff $L$nocacheinfo: mov eax,1 cpuid movd xmm0,eax and edx,0xbfefffff cmp r9d,0 jne NEAR $L$notintel or edx,0x40000000 and ah,15 cmp ah,15 jne NEAR $L$notP4 or edx,0x00100000 $L$notP4: cmp ah,6 jne NEAR $L$notintel and eax,0x0fff0ff0 cmp eax,0x00050670 je NEAR $L$knights cmp eax,0x00080650 jne NEAR $L$notintel $L$knights: and ecx,0xfbffffff $L$notintel: bt edx,28 jnc NEAR $L$generic and edx,0xefffffff cmp r10d,0 je NEAR $L$generic or edx,0x10000000 shr ebx,16 cmp bl,1 ja NEAR $L$generic and edx,0xefffffff $L$generic: and r9d,0x00000800 and ecx,0xfffff7ff or r9d,ecx mov r10d,edx cmp r11d,7 jb NEAR $L$no_extended_info mov eax,7 xor ecx,ecx cpuid bt r9d,26 jc NEAR $L$notknights and ebx,0xfff7ffff $L$notknights: movd eax,xmm0 and eax,0x0fff0ff0 cmp eax,0x00050650 jne NEAR $L$notskylakex and ebx,0xfffeffff $L$notskylakex: mov DWORD[8+rdi],ebx mov DWORD[12+rdi],ecx $L$no_extended_info: bt r9d,27 jnc NEAR $L$clear_avx xor ecx,ecx DB 0x0f,0x01,0xd0 and eax,0xe6 cmp eax,0xe6 je NEAR $L$done and DWORD[8+rdi],0x3fdeffff and eax,6 cmp eax,6 je NEAR $L$done $L$clear_avx: mov eax,0xefffe7ff and r9d,eax mov eax,0x3fdeffdf and DWORD[8+rdi],eax $L$done: shl r9,32 mov eax,r10d mov rbx,r8 or rax,r9 mov rdi,QWORD[8+rsp] ;WIN64 epilogue mov rsi,QWORD[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_OPENSSL_ia32_cpuid: global OPENSSL_cleanse ALIGN 16 OPENSSL_cleanse: xor rax,rax cmp rdx,15 jae NEAR $L$ot cmp rdx,0 je NEAR $L$ret $L$ittle: mov BYTE[rcx],al sub rdx,1 lea rcx,[1+rcx] jnz NEAR $L$ittle $L$ret: DB 0F3h,0C3h ;repret ALIGN 16 $L$ot: test rcx,7 jz NEAR $L$aligned mov BYTE[rcx],al lea rdx,[((-1))+rdx] lea rcx,[1+rcx] jmp NEAR $L$ot $L$aligned: mov QWORD[rcx],rax lea rdx,[((-8))+rdx] test rdx,-8 lea rcx,[8+rcx] jnz NEAR $L$aligned cmp rdx,0 jne NEAR $L$ittle DB 0F3h,0C3h ;repret global CRYPTO_memcmp ALIGN 16 CRYPTO_memcmp: xor rax,rax xor r10,r10 cmp r8,0 je NEAR $L$no_data cmp r8,16 jne NEAR $L$oop_cmp mov r10,QWORD[rcx] mov r11,QWORD[8+rcx] mov r8,1 xor r10,QWORD[rdx] xor r11,QWORD[8+rdx] or r10,r11 cmovnz rax,r8 DB 0F3h,0C3h ;repret ALIGN 16 $L$oop_cmp: mov r10b,BYTE[rcx] lea rcx,[1+rcx] xor r10b,BYTE[rdx] lea rdx,[1+rdx] or al,r10b dec r8 jnz NEAR $L$oop_cmp neg rax shr rax,63 $L$no_data: DB 0F3h,0C3h ;repret global OPENSSL_wipe_cpu ALIGN 16 OPENSSL_wipe_cpu: pxor xmm0,xmm0 pxor xmm1,xmm1 pxor xmm2,xmm2 pxor xmm3,xmm3 pxor xmm4,xmm4 pxor xmm5,xmm5 xor rcx,rcx xor rdx,rdx xor r8,r8 xor r9,r9 xor r10,r10 xor r11,r11 lea rax,[8+rsp] DB 0F3h,0C3h ;repret global OPENSSL_instrument_bus ALIGN 16 OPENSSL_instrument_bus: mov r10,rcx mov rcx,rdx mov r11,rdx rdtsc mov r8d,eax mov r9d,0 clflush [r10] DB 0xf0 add DWORD[r10],r9d jmp NEAR $L$oop ALIGN 16 $L$oop: rdtsc mov edx,eax sub eax,r8d mov r8d,edx mov r9d,eax clflush [r10] DB 0xf0 add DWORD[r10],eax lea r10,[4+r10] sub rcx,1 jnz NEAR $L$oop mov rax,r11 DB 0F3h,0C3h ;repret global OPENSSL_instrument_bus2 ALIGN 16 OPENSSL_instrument_bus2: mov r10,rcx mov rcx,rdx mov r11,r8 mov QWORD[8+rsp],rcx rdtsc mov r8d,eax mov r9d,0 clflush [r10] DB 0xf0 add DWORD[r10],r9d rdtsc mov edx,eax sub eax,r8d mov r8d,edx mov r9d,eax $L$oop2: clflush [r10] DB 0xf0 add DWORD[r10],eax sub r11,1 jz NEAR $L$done2 rdtsc mov edx,eax sub eax,r8d mov r8d,edx cmp eax,r9d mov r9d,eax mov edx,0 setne dl sub rcx,rdx lea r10,[rdx*4+r10] jnz NEAR $L$oop2 $L$done2: mov rax,QWORD[8+rsp] sub rax,rcx DB 0F3h,0C3h ;repret global OPENSSL_ia32_rdrand_bytes ALIGN 16 OPENSSL_ia32_rdrand_bytes: xor rax,rax cmp rdx,0 je NEAR $L$done_rdrand_bytes mov r11,8 $L$oop_rdrand_bytes: DB 73,15,199,242 jc NEAR $L$break_rdrand_bytes dec r11 jnz NEAR $L$oop_rdrand_bytes jmp NEAR $L$done_rdrand_bytes ALIGN 16 $L$break_rdrand_bytes: cmp rdx,8 jb NEAR $L$tail_rdrand_bytes mov QWORD[rcx],r10 lea rcx,[8+rcx] add rax,8 sub rdx,8 jz NEAR $L$done_rdrand_bytes mov r11,8 jmp NEAR $L$oop_rdrand_bytes ALIGN 16 $L$tail_rdrand_bytes: mov BYTE[rcx],r10b lea rcx,[1+rcx] inc rax shr r10,8 dec rdx jnz NEAR $L$tail_rdrand_bytes $L$done_rdrand_bytes: xor r10,r10 DB 0F3h,0C3h ;repret global OPENSSL_ia32_rdseed_bytes ALIGN 16 OPENSSL_ia32_rdseed_bytes: xor rax,rax cmp rdx,0 je NEAR $L$done_rdseed_bytes mov r11,8 $L$oop_rdseed_bytes: DB 73,15,199,250 jc NEAR $L$break_rdseed_bytes dec r11 jnz NEAR $L$oop_rdseed_bytes jmp NEAR $L$done_rdseed_bytes ALIGN 16 $L$break_rdseed_bytes: cmp rdx,8 jb NEAR $L$tail_rdseed_bytes mov QWORD[rcx],r10 lea rcx,[8+rcx] add rax,8 sub rdx,8 jz NEAR $L$done_rdseed_bytes mov r11,8 jmp NEAR $L$oop_rdseed_bytes ALIGN 16 $L$tail_rdseed_bytes: mov BYTE[rcx],r10b lea rcx,[1+rcx] inc rax shr r10,8 dec rdx jnz NEAR $L$tail_rdseed_bytes $L$done_rdseed_bytes: xor r10,r10 DB 0F3h,0C3h ;repret
22.341463
74
0.454421
3a9dad76e3631974290d85db6a222c9682d83955
77
asm
Assembly
codes/low-level/ch05/macro_local_labels.asm
zhoujiagen/learning-system-programming
2a18e9f8558433708837ba4bd0fae5d7c11bf110
[ "MIT" ]
null
null
null
codes/low-level/ch05/macro_local_labels.asm
zhoujiagen/learning-system-programming
2a18e9f8558433708837ba4bd0fae5d7c11bf110
[ "MIT" ]
null
null
null
codes/low-level/ch05/macro_local_labels.asm
zhoujiagen/learning-system-programming
2a18e9f8558433708837ba4bd0fae5d7c11bf110
[ "MIT" ]
null
null
null
%macro mymacro 0 %%labelname: %%labelname: %endmacro mymacro mymacro mymacro
9.625
16
0.779221
ffa2211d3f2cc36d5e9e72fbd0797605bd973785
5,258
asm
Assembly
savefile/maps/1A73_GameCorner.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
35
2018-04-01T06:55:28.000Z
2021-05-09T19:09:42.000Z
savefile/maps/1A73_GameCorner.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
4
2018-04-01T15:32:55.000Z
2019-02-23T20:46:49.000Z
savefile/maps/1A73_GameCorner.asm
stranck/fools2018-1
1c506b17343fcdfa708aafaf8e596153e2c63254
[ "MIT" ]
12
2018-04-01T15:48:09.000Z
2021-01-27T10:22:33.000Z
SECTION "Map_1A73", ROM0[$B800] Map_1A73_Header: hdr_tileset 18 hdr_dimensions 7, 5 hdr_pointers_a Map_1A73_Blocks, Map_1A73_TextPointers hdr_pointers_b Map_1A73_Script, Map_1A73_Objects hdr_pointers_c Map_1A73_InitScript, Map_1A73_RAMScript hdr_palette $06 hdr_music MUSIC_GAME_CORNER, AUDIO_3 hdr_connection NORTH, $0000, 0, 0 hdr_connection SOUTH, $0000, 0, 0 hdr_connection WEST, $0000, 0, 0 hdr_connection EAST, $0000, 0, 0 Map_1A73_Objects: hdr_border $0f hdr_warp_count 2 hdr_warp 2, 9, 3, 4, $1A3C hdr_warp 1, 9, 3, 4, $1A3C hdr_sign_count 7 hdr_signpost 7, 7, $05 hdr_signpost 7, 5, $05 hdr_signpost 7, 4, $05 hdr_signpost 6, 7, $05 hdr_signpost 6, 6, $05 hdr_signpost 6, 4, $05 hdr_signpost 11, 0, $06 hdr_object_count 4 hdr_object SPRITE_LASS, 12, 7, STAY, UP, $04 hdr_object SPRITE_FISHER2, 8, 6, STAY, LEFT, $03 hdr_object SPRITE_LAPRAS_GIVER, 5, 5, STAY, RIGHT, $02 hdr_object SPRITE_MR_FUJI, 1, 2, STAY, DOWN, $01 Map_1A73_RAMScript: rs_end Map_1A73_Blocks: db $0a,$0a,$0a,$1b,$1b,$34,$2a db $2f,$33,$20,$3a,$20,$20,$20 db $20,$20,$21,$39,$1f,$20,$2d db $20,$20,$21,$38,$1f,$20,$31 db $28,$29,$20,$20,$20,$20,$20 Map_1A73_TextPointers: dw Map_1A73_TX1 dw Map_1A73_TX2 dw Map_1A73_TX3 dw Map_1A73_TX4 dw Map_1A73_TX5 dw Map_1A73_TX6 Map_1A73_InitScript: ld hl, $d5a3 ld [hl], $05 inc hl ld [hl], $00 ret Map_1A73_Script: ret Map_1A73_TX1: TX_ASM ld hl, Map_1A73_LotteryIntro call PrintTextEnhanced ld de, YesNoBoxset ld bc, $0203 call PrintChoiceMenu and a jr z, .lottery ld hl, Map_1A73_LotteryNope call PrintTextEnhanced jp TextScriptEnd .lottery ld hl, Map_1A73_LotteryBegin call PrintTextEnhanced ld hl, SerialCheckLotteryStruct call CompleteEventSerial ld hl, Map_1A73_LotteryInfo call PrintTextEnhanced ld a, [StandardSerialBuffer+5] and a jr z, .noMatch ld hl, Map_1A73_LotteryWin call PrintTextEnhanced jp TextScriptEnd .noMatch ld hl, Map_1A73_LotteryLose call PrintTextEnhanced jp TextScriptEnd Map_1A73_LotteryIntro: text "Welcome to the Glitchland" next "Game Corner!" para "Here, you can play the" next "Glitchland Lottery." para "Every day, on 0, 3, 6, 9," next "12, 15, 18, 21 o'clock UTC," cont "we choose 5 random letters." para "The more of them happen" next "to appear in your username," cont "the bigger the reward!" para "Would you like to try?" done Map_1A73_LotteryNope: text "Understandable." next "Have a great day." done Map_1A73_LotteryBegin: text "OK, so let's see how many" next "you got." wait Map_1A73_LotteryInfo: text "So let's see. The lucky" next "letters right now are:" cont "" tx_buf StandardSerialBuffer+6 text "." wait Map_1A73_LotteryLose: text "We're sorry." next "You didn't get a match..." done Map_1A73_LotteryWin: text "Congradnafio! Your username," next "" tx_buf Map_1A73_CurrentUserBuffer text "," cont "got a " tx_buf StandardSerialBuffer+26 text " match!" tx_snd SFX_GET_KEY_ITEM para "We have already honored" next "your success with a unique" cont "achievement!" para "Thanks for participating." next "See you soon!" done Map_1A73_TX2: TX_ASM jp EnhancedTextOnly text "I lost again?" next "How is it possible!" para "I'm never lucky!" next "Kappa PJSalt!" done Map_1A73_TX3: TX_ASM jp EnhancedTextOnly text "We're so grateful that the" next "underage gambling" cont "restrictions didn't make" cont "their way through to" cont "Glitchland!" para "Otherwise, we'd be stuck" next "playing Voltorb Flip!" done Map_1A73_TX4: TX_ASM jp EnhancedTextOnly text "What? The path here was" next "blocked?" para "I sat here for two days" next "straight and I didn't even" cont "notice it!" para "When you have fun, you" next "lose track of time!" done Map_1A73_TX5: TX_ASM ld hl, PromptUserToPlaySlots ld b, b_PromptUserToPlaySlots call Bankswitch call OpenTextboxInOverworld ld a, [$d5a3] cp $10 jr c, .noThousand ld hl, Map_1A73_SlotThousand call PrintTextEnhanced ld bc, $8C25 ld de, $1640 call CompleteEvent jp TextScriptEnd .noThousand ld hl, Map_1A73_SlotFun call PrintTextEnhanced jp TextScriptEnd Map_1A73_SlotFun: text "Yeah!" next "That was a lot of fun!" done Map_1A73_SlotThousand: text "Wow! You won 1000 coins!" next "That's hugely impressive!" wait Map_1A73_TX6: TX_ASM jp EnhancedTextOnly text "Hey! There's switch behind" next "that poster..." para "No, just kidding." next "Nothing wrong here." done Map_1A73_CurrentUserBuffer: SUBST_CURRENT_USER
23.9
67
0.636554
159bcdc5e487b443049c85d6bc95c07a3723040f
12,211
asm
Assembly
source/system.asm
Krazune/BFASM
51ff003a54fa50ea7f178742f397da7474808cff
[ "MIT" ]
null
null
null
source/system.asm
Krazune/BFASM
51ff003a54fa50ea7f178742f397da7474808cff
[ "MIT" ]
null
null
null
source/system.asm
Krazune/BFASM
51ff003a54fa50ea7f178742f397da7474808cff
[ "MIT" ]
null
null
null
; Description: ; Some Linux system calls, and related defines. ; ; License: ; MIT License ; ; Copyright (c) 2019 Miguel Sousa ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; %ifndef SYSTEM_ASM %define SYSTEM_ASM ; System calls' values SYS_EXIT equ 1 ; Terminate the calling process with exit status. SYS_READ equ 3 ; Read from a file descriptor. SYS_WRITE equ 4 ; Write to a file descriptor. SYS_OPEN equ 5 ; Open and possibly create a file. SYS_CLOSE equ 6 ; Close a file descriptor. SYS_LSEEK equ 19 ; Reposition read/write file offset. SYS_MMAP equ 90 ; Map files or devices into memory. SYS_MUNMAP equ 91 ; Unmap memory pages. ; Program exit status codes SYS_EXIT_SUCCESS equ 0 ; Successful execution of a program. SYS_EXIT_FAILURE equ 1 ; Unsuccessful execution of a program. ; Standard file descriptors SYS_STDIN equ 0 ; Standard input stream. SYS_STDOUT equ 1 ; Standard output stream. SYS_STDERR equ 2 ; Standard error stream. ; File flags SYS_RDONLY equ 0 ; File may be read. ; File origin SYS_SEEK_SET equ 0 ; Offset starts at the beginning of the file. ; Map permissions SYS_PROT_RDWR equ 3 ; Mapping may be read, and written. ; Map flags SYS_MAP_PRIVANON equ 34 ; Changes are not visible to other processes, and there is no backing file. segment .data sys_errno dd 0 ; Error number returned from the system calls. segment .text ; ; Description: ; Terminate the calling process with exit status. ; ; Parameters: ; Program exit status. ; ; Return: ; None. ; ; Notes: ; This procedure does not return to the caller. ; sysExit: mov eax, SYS_EXIT ; Load the system call value. mov ebx, [esp + 4] ; Load the program's exit status. int 0x80 ; Invoke the system call. ; ; Description: ; Read from a file descriptor. ; ; Parameters: ; File descriptor. ; Destination address. ; Amount of bytes to be read. ; ; Return: ; On success, the number of bytes read is returned. ; On error, -1 is returned. ; ; Notes: ; On success, the file position is advanced by the amount of bytes read. ; On error, sets sys_errno with the error number. ; sysRead: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_READ ; Load the system call value. mov ebx, [ebp + 8] ; Load the file descriptor to read from. mov ecx, [ebp + 12] ; Load the destination address. mov edx, [ebp + 16] ; Load the amount of bytes to be read. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysRead.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysRead.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Write to a file descriptor. ; ; Parameters: ; File descriptor. ; Source address. ; Amount of bytes to be written. ; ; Return: ; On success, the number of bytes written is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysWrite: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_WRITE ; Load the system call value. mov ebx, [ebp + 8] ; Load the file descriptor to write to. mov ecx, [ebp + 12] ; Load the source address. mov edx, [ebp + 16] ; Load the amount of bytes to be written. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysWrite.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysWrite.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Open and possibly create a file. ; ; Parameters: ; File name. ; Flags. ; Mode. ; ; Return: ; On success, the file descriptor is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysOpen: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_OPEN ; Load the system call value. mov ebx, [ebp + 8] ; Load the file name. mov ecx, [ebp + 12] ; Load the flags. mov edx, [ebp + 16] ; Load the mode. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysOpen.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysOpen.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Close a file descriptor. ; ; Parameters: ; File descriptor. ; ; Return: ; On success, 0 is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysClose: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_CLOSE ; Load the system call value. mov ebx, [ebp + 8] ; Load the file descriptor to be closed. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysClose.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysClose.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Reposition read/write file offset. ; ; Parameters: ; File descriptor. ; Byte offset. ; Origin. ; ; Return: ; On success, the resulting offset location as measured in bytes from the beginning of the file is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysLSeek: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_LSEEK ; Load the system call value. mov ebx, [ebp + 8] ; Load the file descriptor to seek. mov ecx, [ebp + 12] ; Load the byte offset. mov edx, [ebp + 16] ; Load the origin. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysLSeek.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysLSeek.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Map files or devices into memory. ; ; Parameters: ; Memory map argument structure address. ; ; Return: ; On success, a pointer to the memory map is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysMMap: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_MMAP ; Load the system call value. mov ebx, [ebp + 8] ; Load the argument structure address. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysMMap.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysMMap.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. ; ; Description: ; Unmap memory pages. ; ; Parameters: ; Page's address. ; Map size. ; ; Return: ; On success, 0 is returned. ; On error, -1 is returned. ; ; Notes: ; On error, sets sys_errno with the error number. ; sysMUnmap: push ebp ; Store the caller's base pointer. mov ebp, esp ; Set the current procedure's base pointer. push ebx ; Store the non-volatile register ebx. mov eax, SYS_MUNMAP ; Load the system call value. mov ebx, [ebp + 8] ; Load the page's address. mov ecx, [ebp + 12] ; Load the map size. int 0x80 ; Invoke the system call. cmp eax, 0 ; Compare the system call's return value with 0. jge sysMMap.exit ; Exit the procedure if the return value is not negative (successful return value). cmp eax, -4095 ; Compare the system call's return value with the lowest error value. jl sysMMap.exit ; Exit the procedure if the return value is lower than -4095 (successful return value). mov [sys_errno], eax ; Set sys_errno to the system call's error number. mov eax, -1 ; Set the procedure's return value to -1. .exit: pop ebx ; Restore the non-volatile register ebx. mov esp, ebp ; Clear stack. pop ebp ; Restore caller's base pointer. ret ; Return to caller. %endif
29.212919
109
0.696831
f21fcf20d5345f9e8d6760181ffd3d09b7824f0a
190
asm
Assembly
hello_world.asm
bcreagh/assembly-practice
99c3697c01ea9e3ed9aa518e8b1cfc021e833690
[ "MIT" ]
null
null
null
hello_world.asm
bcreagh/assembly-practice
99c3697c01ea9e3ed9aa518e8b1cfc021e833690
[ "MIT" ]
null
null
null
hello_world.asm
bcreagh/assembly-practice
99c3697c01ea9e3ed9aa518e8b1cfc021e833690
[ "MIT" ]
null
null
null
section .data text db "Hello, World! Good day :)", 10 section .text global _start _start: mov rax, 1 mov rdi, 1 mov rsi, text mov rdx, 26 syscall mov rax, 60 mov rdi, 0 syscall
11.176471
40
0.663158
a6a3ea72bd533892afeb535584ccf5de44640982
5,927
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_26.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_26.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_26.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 %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x168d3, %r8 nop nop nop nop nop cmp %rbx, %rbx mov $0x6162636465666768, %r10 movq %r10, (%r8) nop nop nop cmp %r8, %r8 lea addresses_WT_ht+0x13e13, %rsi lea addresses_WC_ht+0x6cd3, %rdi nop nop nop sub $64925, %rbx mov $16, %rcx rep movsb nop nop nop nop nop add %r8, %r8 lea addresses_WC_ht+0x54d3, %rsi nop nop cmp $52590, %r12 mov (%rsi), %r10w nop nop nop nop inc %r8 lea addresses_WT_ht+0x14cd3, %rcx nop nop nop nop nop sub $45550, %rdi movw $0x6162, (%rcx) nop nop nop nop sub $24270, %rbx lea addresses_normal_ht+0x64d3, %r12 cmp %rbx, %rbx movw $0x6162, (%r12) nop nop nop nop nop inc %rsi lea addresses_WT_ht+0xd9d3, %rsi nop inc %r10 movb (%rsi), %cl nop nop nop nop and $35830, %r12 lea addresses_WT_ht+0x13cd3, %rsi lea addresses_WT_ht+0x1a8d3, %rdi clflush (%rsi) nop dec %r12 mov $110, %rcx rep movsw nop nop sub $599, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_WC+0xf2d3, %rdi clflush (%rdi) nop nop nop nop nop inc %rsi movl $0x51525354, (%rdi) // Exception!!! mov (0), %rcx sub %r9, %r9 // Faulty Load lea addresses_WT+0xfcd3, %r13 clflush (%r13) nop nop nop nop and $36252, %rbp mov (%r13), %r9w lea oracles, %r15 and $0xff, %r9 shlq $12, %r9 mov (%r15,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': 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 */
36.58642
2,999
0.658006
572ce00814af3a195ddf9c9dfae876c6d675a5e2
570
asm
Assembly
oeis/067/A067724.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/067/A067724.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/067/A067724.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A067724: a(n) = 5*n^2 + 10*n. ; 15,40,75,120,175,240,315,400,495,600,715,840,975,1120,1275,1440,1615,1800,1995,2200,2415,2640,2875,3120,3375,3640,3915,4200,4495,4800,5115,5440,5775,6120,6475,6840,7215,7600,7995,8400,8815,9240,9675,10120,10575,11040,11515,12000,12495,13000,13515,14040,14575,15120,15675,16240,16815,17400,17995,18600,19215,19840,20475,21120,21775,22440,23115,23800,24495,25200,25915,26640,27375,28120,28875,29640,30415,31200,31995,32800,33615,34440,35275,36120,36975,37840,38715,39600,40495,41400,42315,43240,44175 add $0,2 pow $0,2 mul $0,5 sub $0,5
71.25
500
0.773684
f7d7e5219e2cc03121cf6dc9d65d5e3772f04650
397
asm
Assembly
oeis/037/A037510.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037510.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037510.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037510: Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0. ; Submitted by Christian Krause ; 1,11,99,892,8030,72270,650431,5853881,52684929,474164362,4267479260,38407313340,345665820061,3110992380551,27998931424959,251990382824632,2267913445421690 mov $2,1 lpb $0 sub $0,1 add $1,$2 mul $1,9 add $2,10 mod $2,3 lpe add $1,$2 mov $0,$1
26.466667
156
0.743073
4b44f2f4b18112954406e6d056d4a4ce941f663d
1,878
asm
Assembly
beacon/src/syscalls64.asm
paralax/shad0w
226fb0635d310300e559a9e75d255a916e43b628
[ "MIT" ]
3
2022-02-08T15:40:28.000Z
2022-03-03T18:36:28.000Z
beacon/src/syscalls64.asm
hkfmz/shad0w
fbb8aef4318a6d19374dcfbec592d9d3806974dc
[ "MIT" ]
null
null
null
beacon/src/syscalls64.asm
hkfmz/shad0w
fbb8aef4318a6d19374dcfbec592d9d3806974dc
[ "MIT" ]
2
2020-10-14T07:35:53.000Z
2021-09-15T16:23:53.000Z
section .text ; Windows 10 definitions global NtQueueApcThread10 global NtWriteVirtualMemory10 global NtAllocateVirtualMemory10 global NtProtectVirtualMemory10 ; Windows 8.1 definitions global NtQueueApcThread81 global NtWriteVirtualMemory81 global NtAllocateVirtualMemory81 global NtProtectVirtualMemory81 ; Windows 8.1 definitions global NtQueueApcThread8 global NtWriteVirtualMemory8 global NtAllocateVirtualMemory8 global NtProtectVirtualMemory8 ; Windows 8.1 definitions global NtQueueApcThread7 global NtWriteVirtualMemory7 ; Windows 10 ; ---------------------------------------- NtAllocateVirtualMemory10: mov r10, rcx mov eax, 18h syscall ret NtProtectVirtualMemory10: mov r10, rcx mov eax, 50h syscall ret NtQueueApcThread10: mov r10, rcx mov eax, 45h syscall ret NtWriteVirtualMemory10: mov r10, rcx mov eax, 3Ah syscall ret ; ---------------------------------------- ; Windows 8.1 ; ---------------------------------------- NtAllocateVirtualMemory81: mov r10, rcx mov eax, 17h syscall ret NtProtectVirtualMemory81: mov r10, rcx mov eax, 4fh syscall ret NtQueueApcThread81: mov r10, rcx mov eax, 44h syscall ret NtWriteVirtualMemory81: mov r10, rcx mov eax, 39h syscall ret ; ---------------------------------------- ; Windows 8.0 ; ---------------------------------------- NtAllocateVirtualMemory8: mov r10, rcx mov eax, 16h syscall ret NtProtectVirtualMemory8: mov r10, rcx mov eax, 4eh syscall ret NtQueueApcThread8: mov r10, rcx mov eax, 43h syscall ret NtWriteVirtualMemory8: mov r10, rcx mov eax, 38h syscall ret ; ---------------------------------------- ; Windows 7 SP1 and below ; ---------------------------------------- NtQueueApcThread7: mov r10, rcx mov eax, 42h syscall ret NtWriteVirtualMemory7: mov r10, rcx mov eax, 37h syscall ret ; ----------------------------------------
15.781513
42
0.646965
ef8c3698e486bb7e691c01e54fdadf1350041c26
557
asm
Assembly
oeis/016/A016954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/016/A016954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/016/A016954.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A016954: a(n) = (6n+3)^10. ; 59049,3486784401,576650390625,16679880978201,205891132094649,1531578985264449,8140406085191601,34050628916015625,119042423827613001,362033331456891249,984930291881790849,2446194060654759801,5631351470947265625,12157665459056928801,24842341419143568849,48398230717929318249,90438207500880449001,162889462677744140625,283942098606901565601,480682838924478847449,792594609605189126649,1276136419117121619201,2010655586861806640625,3105926159393528563401,4711653532607691047049,7029336084596720096049 mul $0,6 add $0,3 pow $0,10
79.571429
498
0.899461
1f0ec219d7fec101c2fb1e8c59ec44348f185ee2
548
asm
Assembly
Assembly Code/Number/2(a).asm
Jaggesher/LabWork
9bf7ec80bf0b3b92d2b6e08c7acff2fced1553c5
[ "MIT" ]
1
2018-04-19T03:31:04.000Z
2018-04-19T03:31:04.000Z
Assembly Code/Number/2(a).asm
Jaggesher/LabWork
9bf7ec80bf0b3b92d2b6e08c7acff2fced1553c5
[ "MIT" ]
1
2019-08-22T13:19:41.000Z
2019-08-22T13:19:41.000Z
Assembly Code/Number/2(a).asm
Jaggesher/LabWork
9bf7ec80bf0b3b92d2b6e08c7acff2fced1553c5
[ "MIT" ]
2
2017-08-20T18:26:56.000Z
2018-04-18T16:44:06.000Z
;Lab: 2(a) ;Name: Jaggesher Mondal ;Roll: 14025423 .MODEL SMALL .STACK 100H .DATA MSG1 DB 0AH,"Please Input a Digit From 0 To 9=$" MSG2 DB 0AH,0DH,0AH,"The Input Digit Is ODD!$" MSG3 DB 0AH,0DH,0AH,"The Input Digit Is EVEN!$" X DB ? .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV AH,9;String Out LEA DX,MSG1 INT 21H MOV AH,1 INT 21H SUB AL,'0' LEA DX,MSG3 TEST AL,1 JZ OUTPUT LEA DX,MSG2 OUTPUT: MOV AH,9 INT 21H MOV AH,4CH INT 21H MAIN ENDP END MAIN
13.7
48
0.582117
f297f1db2505f1cbd153e0ee44f1309c4aea5bd3
309
asm
Assembly
Lab 2 - Addition and Subtraction/q4.asm
SathyasriS27/ARM7-Thumb-Programming
60418e8e7e5a3a775d5eecdea2ff9512074d0cf2
[ "Apache-2.0" ]
null
null
null
Lab 2 - Addition and Subtraction/q4.asm
SathyasriS27/ARM7-Thumb-Programming
60418e8e7e5a3a775d5eecdea2ff9512074d0cf2
[ "Apache-2.0" ]
null
null
null
Lab 2 - Addition and Subtraction/q4.asm
SathyasriS27/ARM7-Thumb-Programming
60418e8e7e5a3a775d5eecdea2ff9512074d0cf2
[ "Apache-2.0" ]
null
null
null
AREA SBCS, CODE, READONLY ENTRY MOV R0,#0X000000C0 ; 192 (First number MSB) MOV R1,#0X00000090 ; 144 (Second number MSB) MOV R2,#0X0000000A ; 10 (First number LSB) MOV R3,#0X00000010 ; 16 (Second number LSB) SUBS R5,R0,R1 ; 48 SBC R4,R2,R3 ; -6 (2's complement) UP B UP END
30.9
49
0.631068
9dbc7f3e6ad55553e1aad26b65e415058acd7416
5,241
asm
Assembly
lib/x1_crt0.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
lib/x1_crt0.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
lib/x1_crt0.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
; CRT0 for the Sharp X1 ; ; Karl Von Dyson (for X1s.org) ; ; $Id: x1_crt0.asm,v 1.7 2015/01/21 07:05:01 stefano Exp $ ; MODULE x1_crt0 ; ; Initially include the zcc_opt.def file to find out lots of lovely ; information about what we should do.. ; INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- EXTERN _main EXTERN _x1_printf PUBLIC cleanup PUBLIC l_dcal PUBLIC _std_seed PUBLIC _vfprintf PUBLIC exitsp PUBLIC exitcount PUBLIC heaplast PUBLIC heapblocks PUBLIC __sgoioblk ; X1 stdio support variables PUBLIC _x1_cursor_coords PUBLIC _x1_keyboard_io ; X1 stdio support entry functions PUBLIC _wait_sub_cpu ;-------- ; Non-zero origins must be >=32768 (startup=2 must be used for this) ;-------- IF !myzorg IF (startup=2) defc myzorg = 32768 ELSE defc myzorg = 0 ENDIF ENDIF org myzorg ;-------- ; Execution starts here ;-------- start: di IF (!DEFINED_startup | (startup=1)) if (myzorg > 0) defs ZORG_NOT_ZERO endif ld sp,$FFFF im 1 ei ENDIF IF (startup=2) if (myzorg < 32768) defs ZORG_TOO_LOW endif ld sp,$FDFF ; re-activate IPL ld bc,$1D00 xor a out (c),a ld hl,$FE00 push hl EXTERN im2_Init call im2_Init pop hl EXTERN im2_EmptyISR ld hl,im2_EmptyISR ld b,128 isr_table_fill: ld ($FE00),hl inc hl inc hl djnz isr_table_fill ld hl,_kbd_isr ld ($FE52),hl im 2 ei ENDIF call _wait_sub_cpu ld bc, $1900 ld a, $E4 ; Interrupt vector set out (c), a call _wait_sub_cpu ld bc, $1900 ld a, $52 ; out (c), a ;IF !DEFINED_x1_no_clrscr ; EXTERN _x1_cls ; call _x1_cls ;ENDIF IF !DEFINED_nostreams IF DEFINED_ANSIstdio ; Set up the std* stuff so we can be called again ld hl,__sgoioblk+2 ld (hl),19 ;stdin ld hl,__sgoioblk+6 ld (hl),21 ;stdout ld hl,__sgoioblk+10 ld (hl),21 ;stderr ENDIF ENDIF ; INIT math identify platform IF NEED_floatpack EXTERN init_floatpack call init_floatpack ENDIF ; Optional definition for auto MALLOC init ; it assumes we have free space between the end of ; the compiled program and the stack pointer IF DEFINED_USING_amalloc ld hl,0 add hl,sp INCLUDE "amalloc.def" ENDIF call _main cleanup: IF !DEFINED_nostreams IF DEFINED_ANSIstdio EXTERN closeall call closeall ENDIF ENDIF push hl ; return code rst 0 cleanup_exit: ret IF (!DEFINED_startup | (startup=1)) defs 56-cleanup_exit-1 if (ASMPC<>$0038) defs CODE_ALIGNMENT_ERROR endif ENDIF ; ------------------------------------------- ; Don't move the following block ! ; It must be aligned when startup=1 !! _kbd_isr: push af push bc ;push de push hl ld bc, $1A01 .iiki1 in a, (c) and $20 jr nz, iiki1 ld bc, $1900 in a, (c) ld hl, _x1_keyboard_io+1 ld (hl), a dec hl ld bc, $1A01 .iiki2 in a, (c) and $20 jr nz, iiki2 ld bc, $1900 in a, (c) ld (hl), a pop hl ;pop de pop bc pop af ei reti ; ------------------------------------------- l_dcal: jp (hl) ; Now, define some values for stdin, stdout, stderr __sgoioblk: IF DEFINED_ANSIstdio INCLUDE "stdio_fp.asm" ELSE defw -11,-12,-10 ENDIF ; Now, which of the vfprintf routines do we need? _vfprintf: IF DEFINED_floatstdio EXTERN vfprintf_fp jp vfprintf_fp ELSE IF DEFINED_complexstdio EXTERN vfprintf_comp jp vfprintf_comp ELSE IF DEFINED_ministdio EXTERN vfprintf_mini jp vfprintf_mini ENDIF ENDIF ENDIF ;Seed for integer rand() routines IF !DEFINED_HAVESEED PUBLIC _std_seed ; Integer rand() seed _std_seed: defw 0 ; Seed for integer rand() routines ENDIF exitsp: defw $FDFF exitcount: defb 0 ; Heap stuff heaplast: defw 0 heapblocks:defw 0 ; X1 stdio support variables _x1_cursor_coords: defw 0 _x1_keyboard_io: defw 0 _wait_sub_cpu: ld bc, $1A01 .ii_w1 in a, (c) bit 6, a jp nz, ii_w1 ret IF DEFINED_USING_amalloc EXTERN ASMTAIL PUBLIC _heap ; The heap pointer will be wiped at startup, ; but first its value (based on ASMTAIL) ; will be kept for sbrk() to setup the malloc area _heap: defw ASMTAIL ; Location of the last program byte defw 0 ENDIF IF NEED_floatpack INCLUDE "float.asm" ;seed for random number generator - not used yet.. fp_seed: defb $80,$80,0,0,0,0 ;Floating point registers... extra: defs 6 fa: defs 6 fasign: defb 0 ENDIF
17.41196
76
0.558481
212d50b293f1b16278f9c0b88748f21b57dc6593
2,026
asm
Assembly
MeePwn/2018/Quals/babysandbox/exploit.asm
Per5ianCat/ctf-writeups
1fd27f5d9619bddf670f25343948a8fe2f005f63
[ "MIT" ]
476
2019-10-23T10:53:18.000Z
2021-03-30T10:54:19.000Z
MeePwn/2018/Quals/babysandbox/exploit.asm
lqhuyapcs/PersianCatsCTF
de26220cb0af73eb79d9d829c5a4b72f61aac5d2
[ "MIT" ]
9
2020-03-29T07:33:39.000Z
2021-03-20T09:50:56.000Z
MeePwn/2018/Quals/babysandbox/exploit.asm
lqhuyapcs/PersianCatsCTF
de26220cb0af73eb79d9d829c5a4b72f61aac5d2
[ "MIT" ]
61
2019-11-11T08:39:16.000Z
2021-03-27T16:49:16.000Z
bits 32 section .text global _start _start: _socket: ; socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); push 6 ; IPPROTO_TCP push 1 ; SOCK_STREAM push 2 ; AF_INET mov eax, 0x66 ; sys_socketcall mov ebx, 1 ; sys_socket mov ecx, esp ; pointer to args int 0x80 ; syscall mov edi, eax ; sockfd _connect: push 0x0100007f ; ip = 127.0.0.1 push word 0x3930 ; port = 12345 push word 2 ; AF_INET mov ecx, esp ; store the address of struct push 16 ; addrlen push ecx ; pointer to structure push edi ; sockfd mov eax, 0x66 ; sys_socketcall mov ebx, 3 ; sys_connect mov ecx, esp ; pointer to args int 0x80 jmp filename _openat: ; int openat(int dirfd, const char *pathname, int flags, mode_t mode); mov ebx, -100 ; int dirfd = AT_FDCWD (-100) pop ecx ; pathname = filename mov edx, 0x0 ; flags = O_RDONLY mov esi, 0x0 ; mode = 0 mov eax, 0x127 ; syscall id for openat int 0x80 _iovec: ; rsp points to the beginning of "struct iovec" mov ecx, esp ; buffer's address push 100 ; iov_len push ecx ; iov_base _readv: ; ssize_t readv(int fd, const struct iovec *iov, int iovcnt); mov ebx, eax ; int fd mov ecx, esp ; iovec *iov mov edx, 1 ; int iovcnt = 1 mov eax, 0x91 ; syscall id for readv int 0x80 _writev: ; ssize_t writev(int fd, const struct iovec *iov, int iovcnt); mov ebx, edi ; int fd = sockfd mov ecx, esp ; iovec *iov mov edx, 1 ; int iovcnt = 1 mov eax, 0x92 ; syscall id for writev int 0x80 _exit: mov eax, 0x01 ; syscall id for exit int 0x80 filename: call _openat db "flag.txt", 0x00
29.362319
94
0.526654
8f644d871045f8af56b5a30b91181354fce9ad39
3,320
asm
Assembly
release/src/router/gmp/source/mpn/powerpc64/mode64/mul_1.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
184
2020-04-15T14:28:37.000Z
2020-09-22T15:57:55.000Z
release/src/router/gmp/source/mpn/powerpc64/mode64/mul_1.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
release/src/router/gmp/source/mpn/powerpc64/mode64/mul_1.asm
zhoutao0712/rtn11pb1
09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05
[ "Apache-2.0" ]
5
2020-04-21T19:50:23.000Z
2020-09-22T10:58:02.000Z
dnl PowerPC-64 mpn_mul_1 -- Multiply a limb vector with a limb and store dnl the result in a second limb vector. dnl Copyright 1999, 2000, 2001, 2003, 2004, 2005, 2006 Free Software dnl Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP 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 3 of the License, or (at dnl your option) any later version. dnl The GNU MP 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 GNU MP Library. If not, see http://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C POWER3/PPC630: 6-18 C POWER4/PPC970: 7.25 C POWER5: 7.75 C TODO C * Try to reduce the number of needed live registers (at least r5 and r10 C could be combined) C * Optimize feed-in code, for speed and size. C * Clean up r12/r7 usage in feed-in code. C INPUT PARAMETERS define(`rp', `r3') define(`up', `r4') define(`n', `r5') define(`vl', `r6') ASM_START() PROLOGUE(mpn_mul_1c) std r27, -40(r1) std r26, -48(r1) mr r12, r7 b L(ent) EPILOGUE() PROLOGUE(mpn_mul_1) std r27, -40(r1) std r26, -48(r1) li r12, 0 C cy_limb = 0 L(ent): ld r26, 0(up) rldicl. r0, n, 0,62 C r0 = n & 3, set cr0 cmpdi cr6, r0, 2 addic n, n, 3 C compute count... srdi n, n, 2 C ...for ctr mtctr n C copy count into ctr beq cr0, L(b00) blt cr6, L(b01) beq cr6, L(b10) L(b11): mr r7, r12 mulld r0, r26, r6 mulhdu r12, r26, r6 addi up, up, 8 addc r0, r0, r7 std r0, 0(rp) addi rp, rp, 8 b L(fic) L(b00): ld r27, 8(up) addi up, up, 16 mulld r0, r26, r6 mulhdu r5, r26, r6 mulld r7, r27, r6 mulhdu r8, r27, r6 addc r0, r0, r12 adde r7, r7, r5 addze r12, r8 std r0, 0(rp) std r7, 8(rp) addi rp, rp, 16 b L(fic) nop C alignment L(b01): bdnz L(gt1) mulld r0, r26, r6 mulhdu r8, r26, r6 addc r0, r0, r12 std r0, 0(rp) b L(ret) L(gt1): ld r27, 8(up) nop mulld r0, r26, r6 mulhdu r5, r26, r6 ld r26, 16(up) mulld r7, r27, r6 mulhdu r8, r27, r6 mulld r9, r26, r6 mulhdu r10, r26, r6 addc r0, r0, r12 adde r7, r7, r5 adde r9, r9, r8 addze r12, r10 std r0, 0(rp) std r7, 8(rp) std r9, 16(rp) addi up, up, 24 addi rp, rp, 24 b L(fic) nop L(fic): ld r26, 0(up) L(b10): ld r27, 8(up) addi up, up, 16 bdz L(end) L(top): mulld r0, r26, r6 mulhdu r5, r26, r6 ld r26, 0(up) nop mulld r7, r27, r6 mulhdu r8, r27, r6 ld r27, 8(up) nop adde r0, r0, r12 adde r7, r7, r5 mulld r9, r26, r6 mulhdu r10, r26, r6 ld r26, 16(up) nop mulld r11, r27, r6 mulhdu r12, r27, r6 ld r27, 24(up) std r0, 0(rp) adde r9, r9, r8 std r7, 8(rp) adde r11, r11, r10 std r9, 16(rp) addi up, up, 32 std r11, 24(rp) addi rp, rp, 32 bdnz L(top) L(end): mulld r0, r26, r6 mulhdu r5, r26, r6 mulld r7, r27, r6 mulhdu r8, r27, r6 adde r0, r0, r12 adde r7, r7, r5 std r0, 0(rp) std r7, 8(rp) L(ret): addze r3, r8 ld r27, -40(r1) ld r26, -48(r1) blr EPILOGUE()
19.761905
79
0.65241
a5f9506eb3c39c6ef90f961202a8be3e58c57d07
643
asm
Assembly
oeis/020/A020771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020771.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020771: Decimal expansion of 1/sqrt(14). ; Submitted by Christian Krause ; 2,6,7,2,6,1,2,4,1,9,1,2,4,2,4,3,8,4,6,8,4,5,5,3,4,8,0,8,7,9,7,5,3,5,2,1,5,5,4,0,0,1,4,1,4,8,4,1,3,3,7,6,3,9,0,2,1,6,9,6,1,0,4,8,0,8,5,7,3,9,3,9,7,3,6,2,0,9,9,3,0,5,6,9,7,7,2,1,3,5,3,7,1,0,2,7,1,1,2,2 add $0,1 mov $1,2 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 mul $4,2 mov $7,10 pow $7,$4 mul $7,2 mov $9,10 lpb $3 mov $4,$2 pow $4,2 mul $4,56 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,2 div $1,$8 div $2,$8 sub $3,2 lpe mov $3,$9 pow $3,$0 div $2,$3 mov $0,$2 mod $0,10
16.075
201
0.51944
b77813d3b0bbe6cc481e061aad498127a93eb8e7
719
asm
Assembly
programs/oeis/321/A321102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/321/A321102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/321/A321102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A321102: Sequence generated by: a(3*n) = 1, a(3*n+2) = 1 - a(3*n+1), a(9*n+1) = 1, a(9*n+7) = 0, a(9*n+4) = 1 - a(3*n+1), for n >= 0. ; 2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,1,0,2,0,1,2,1,0,2,0,1,2,0,1,2,1,0 cal $0,321101 ; Sequence generated by: a(3*n) = 0, a(3*n+2) = 3 - a(3*n+1), a(9*n+1) = 1, a(9*n+7) = 2, a(9*n+4) = 3 - a(3*n+1), for n >= 0. sub $0,4 mov $1,4 sub $1,$0 sub $1,6
79.888889
403
0.486787
f4b7c6883f234815b8aed69600b3303a1f0ceab4
762
asm
Assembly
oeis/025/A025750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/025/A025750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/025/A025750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A025750: 5th-order Patalan numbers (generalization of Catalan numbers). ; Submitted by Jon Maiga ; 1,1,10,150,2625,49875,997500,20662500,439078125,9513359375,209293906250,4661546093750,104884787109375,2380077861328125,54401779687500000,1251240932812500000,28934946571289062500,672311993862304687500,15687279856787109375000,367412607172119140625000,8634196268544799804687500,203520340615698852539062500,4810480778189245605468750000,113987479309266906738281250000,2707202633595089035034179687500,64431422679563119033813476562500,1536441617743428223114013671875000,36703883090537451996612548828125000 mul $0,2 mov $1,1 mov $2,1 mov $3,$0 mov $4,-1 lpb $3 mul $1,$2 mul $1,$4 sub $3,2 mov $4,$2 sub $5,1 div $1,$5 sub $2,5 sub $4,$2 lpe mov $0,$1
36.285714
500
0.821522
1740d6e575eb543528e155431f919b117b7a6afc
1,810
asm
Assembly
programs/oeis/035/A035038.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/035/A035038.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/035/A035038.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A035038: a(n) = 2^n - C(n,0) - C(n,1) - ... - C(n,5). ; 0,0,0,0,0,0,1,8,37,130,386,1024,2510,5812,12911,27824,58651,121670,249528,507624,1026876,2069256,4158861,8344056,16721761,33486026,67025182,134116144,268313018,536724316,1073567387,2147277280,4294724471,8589650318,17179537972,34359354200,68719033032,137438443056,274877322009,549755145960,1099510867677,2199022393362,4398045536122,8796091922912,17592184808422,35184370702852,70368742627463,140737486625680,281474974785299,562949951282902,1125899904472688,2251799811064136,4503599624477332,9007199251553624,18014398505976933,36028797015116376,72057594033711513,144115188071242842,288230376146672790,576460752297927696,1152921504600861778,2305843009207185068,4611686018420319283,9223372036847109568,18446744073701247983,36893488147410120478,73786976294828500844,147573952589665938616,295147905179341534880,590295810358693493888,1180591620717398226289,2361183241434808555592,4722366482869630131093,9444732965739274253730,18889465931478563527794,37778931862957143164352,75557863725914303588094,151115727451828625651028,302231454903657271059871,604462909807314563230832,1208925819614629148999179,2417851639229258322038374,4835703278458516669698344,9671406556917033366682024,19342813113834066762398444,38685626227668133555668904,77371252455336267144139325,154742504910672534323104952,309485009821345068683159761,618970019642690137405495274,1237940039285380274852498190,2475880078570760549748945648,4951760157141521099544395754,9903520314283042199137968636,19807040628566084398327908555,39614081257132168796710708128,79228162514264337593479356775,158456325028528675187019837614,316912650057057350374104121252,633825300114114700748276153368 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,2664 ; a(n) = 2^n - C(n,0)- ... - C(n,4). add $1,$2 lpe mov $0,$1
150.833333
1,634
0.885635
216ddc0ba1e4b8cac3aba724ab6de96a1b41b0cf
2,206
asm
Assembly
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/sqr_diag_addlsh1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
278
2015-11-03T03:01:20.000Z
2022-01-20T18:21:05.000Z
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/sqr_diag_addlsh1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
374
2015-11-03T12:37:22.000Z
2021-12-17T14:18:08.000Z
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/sqr_diag_addlsh1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
96
2015-11-22T07:47:26.000Z
2022-01-20T19:52:19.000Z
dnl SPARC v9 mpn_sqr_dial_addlsh1 for T3/T4/T5. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2013 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP 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 General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C UltraSPARC T3: ? C UltraSPARC T4: >= 4.5 define(`rp', `%i0') define(`tp', `%i1') define(`up', `%i2') define(`n', `%i3') ASM_START() REGISTER(%g2,#scratch) REGISTER(%g3,#scratch) PROLOGUE(mpn_sqr_diag_addlsh1) save %sp, -176, %sp ldx [up+0], %g1 mulx %g1, %g1, %o0 umulxhi(%g1, %g1, %g2) stx %o0, [rp+0] ldx [up+8], %g1 ldx [tp+0], %g4 ldx [tp+8], %g5 mulx %g1, %g1, %o0 orcc %g0, %g0, %o5 b L(dm) add n, -2, n ALIGN(16) L(top): ldx [up+8], %g1 addcc %g4, %o2, %o2 addxccc(%g5, %o0, %g3) ldx [tp+16], %g4 ldx [tp+24], %g5 mulx %g1, %g1, %o0 stx %o2, [rp+8] stx %g3, [rp+16] add rp, 16, rp add tp, 16, tp L(dm): add %g2, %o5, %o2 umulxhi(%g1, %g1, %g2) addxccc(%g4, %g4, %g4) addxccc(%g5, %g5, %g5) add up, 8, up addxc( %g0, %g0, %o5) brnz n, L(top) add n, -1, n addcc %o2, %g4, %g4 addxccc(%o0, %g5, %g5) stx %g4, [rp+8] stx %g5, [rp+16] addxc( %o5, %g2, %g2) stx %g2, [rp+24] ret restore EPILOGUE()
23.468085
79
0.662285
4d02a38541a19a8d046565629d1a197927137b14
1,278
asm
Assembly
LCD_DRIVER_TEST.asm
magkopian/pic-asm-lcd-driver
86002697398bdd75e00b8087007a027fd68b6f5a
[ "MIT" ]
3
2018-11-01T20:32:53.000Z
2021-08-12T07:55:57.000Z
LCD_DRIVER_TEST.asm
magkopian/pic-asm-lcd-driver
86002697398bdd75e00b8087007a027fd68b6f5a
[ "MIT" ]
null
null
null
LCD_DRIVER_TEST.asm
magkopian/pic-asm-lcd-driver
86002697398bdd75e00b8087007a027fd68b6f5a
[ "MIT" ]
4
2019-05-14T08:40:44.000Z
2021-08-12T08:41:39.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Copyright (c) 2013 Manolis Agkopian ; ;See the file LICENCE for copying permission. ; ; ; ;THIS IS JUST SOME TEST CODE THA USES THE LCD DRIVER TO PRINT ; ;THE NUMBERS FROM 0 TO 9 TO THE LCD WITH A DELAY ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PROCESSOR 16F876A INCLUDE <P16F876A.INC> __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_OFF & _CP_OFF & _LVP_OFF & _BODEN_OFF CNT EQU 0x20 ;CHARACTER COUNTER ORG 0x000 GOTO INIT ;INCLUDE THE LCD DRIVER AND GOTO INIT ROUTINE INCLUDE <LCD_DRIVER.INC> INIT: CALL LCD_INIT ;FIRST OF ALL WE HAVE TO INITIALIZE LCD CLRF CNT ;CLEAR CHAR COUNTER MAIN: MOVLW 0x30 ; CHAR '0' = 0x30 MOVWF CNT AGAIN: MOVF CNT, W ;WE PASS THE ASCII CODE TO LCD_CHAR TROUGH W REG CALL LCD_CHAR ;LCD_CHAR WRITES AN ASCII CODE CHAR TO THE LCD, THE LCD uC WILL THEN AUTOINCREMENT THE CURSOR CALL DEL250 ;DO 250MS DELAY, JUST FOR THE EFFECT INCF CNT ;LOAD NEXT DIGIT MOVLW 0x3A ;LAST DIGIT '9' = 0x39, NEXT VALUE 0x3A XORWF CNT, W ;WHEN CNT = 0x3A, IT MEANS WE REACHED THE LAST DIGIT BTFSS STATUS, Z GOTO AGAIN CALL LCD_CLR ;CLEAR LCD CALL LCD_L1 ;MOVE CURSOR TO 1ST ROW CALL DEL250 ;DO 250MS DELAY GOTO MAIN END
30.428571
108
0.643192
46f7c8ea1c01f79c35cdf5bdeb012fd1d1de83e3
136
asm
Assembly
samples/helloworld.asm
esovm/BrainfuckAsmCompiler
e290878b5fd138d3994679e7092dfc904048a62c
[ "MIT" ]
1
2021-02-12T15:54:55.000Z
2021-02-12T15:54:55.000Z
samples/helloworld.asm
esovm/BrainfuckAsmCompiler
e290878b5fd138d3994679e7092dfc904048a62c
[ "MIT" ]
null
null
null
samples/helloworld.asm
esovm/BrainfuckAsmCompiler
e290878b5fd138d3994679e7092dfc904048a62c
[ "MIT" ]
null
null
null
global 0 "Hello world.\n\0" mov $0, 0 print_loop: mov $1, [$0] jz $1, break_print out $1 add $0, 1 jmp print_loop break_print:
9.714286
27
0.632353
08eed759014688f8d2bd49674f0d18587236640c
21,535
asm
Assembly
45/runtime/rt/lltext.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/rt/lltext.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/rt/lltext.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
TITLE LLTEXT - text screen mode support ;*** ;LLTEXT - text screen mode support ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; Support for text screen modes (BIOS 0,1,2,3,7). ; Note that this module module contains support ; code for all adapters capable of handling these ; screen modes and also attempts to compensate for ; the subtle differences in their treatment. ; ; This module sets hooks in the mode-independent ; modules to routines here for mode-dependent ; graphics support. See the mode-independent ; modules for more precise descriptions of the ; purposes and interfaces of these routines. ; ; The following table summarizes the information for ; the modes and configurations covered: ; ; C | A B ; O | B T I ; L | I T P T ; O A M | O R A C S ; S R D O | S I C G H / P ; C B A N | B O E A P P L ; R U C R P I | M U L X Y S R A I A ; E R O O T T | O T O R R I B G X N ; E S L W E O | D E R E E Z O E E E ; N T S S R R | E S S S S E X S L S ; -- - -- -- - -- | -- --- ---- --- --- --- ---- --- - - ; 0 0 40 25 C x | 0 16 N/A 320 200 2 8x8 8 ; 0 x 40 25 m x | " " " 320 400 " 8x16 " ; 0 0 40 25 E C | " " 16 320 200 " 8x8 " ; 0 x 40 25 E E | " " 64 320 350 " 8x14 " ; 0 x 40 25 V x | " " " 360 400 " 9x16 " ; 0 x 40 43 E E | " " " 320 350 4 8x8 " (4 pgs w/64K) ; 0 x 40 43 V x | " " " 320 350 " 8x8 " ; 0 x 40 50 V x | " " " 320 400 8 8x8 4 ; 0 1 40 25 C x | 1 " N/A 320 200 2 8x8 8 ; 0 1 40 25 E C | " " 16 320 200 " 8x8 " ; 0 0 80 25 C x | 2 " N/A 640 200 4 8x8 4 ; 0 x 80 25 m x | " " " 640 400 " 8x16 8 ; 0 0 80 25 E C | " " 16 640 200 " 8x8 " (4 pgs w/64K) ; 0 x 80 25 E E | " " 64 640 350 " 8x14 " (4 pgs w/64K) ; 0 x 80 25 V x | " " " 720 400 " 9x16 " ; 0 x 80 43 E E | " " " 640 350 8 8x8 4 (2 pgs w/64K) ; 0 x 80 43 V x | " " " 640 350 " 8x8 " ; 0 x 80 50 V x | " " " 640 400 " 8x8 " ; 0 1 80 25 C x | 3 " N/A 640 200 4 8x8 " ; 0 1 80 25 E C | " " 16 640 200 " 8x8 8 (4 pgs w/64K) ; 0 x 80 25 M M | 7 " 3 720 350 " 9x14 1 ; 0 x 80 25 E M | " " " 720 350 " 9x14 8 (4 pgs w/64K) ; 0 x 80 25 V x | " " " 720 400 " 9x16 " ; 0 x 80 43 E M | " " " 720 350 8 8x8 4 (2 pgs w/64K) ; 0 x 80 43 V x | " " " 720 350 " 8x8 " ; 0 x 80 50 V x | " " " 720 400 " 8x8 " ; ;****************************************************************************** INCLUDE switch.inc ;feature switches INCLUDE rmacros.inc USESEG _BSS USESEG _DATA USESEG GR_TEXT USESEG CN_TEXT INCLUDE seg.inc INCLUDE ibmunv.inc INCLUDE llgrp.inc ; Constant definitions INCLUDE grmac.inc ;ModeData macros INCLUDE oscalls.inc ;Dos 5 structures sBegin _DATA externW b$UsrCsrTyp externB b$InsCsrStop sEnd _DATA sBegin _BSS ; ; *************************************************************************** ; External variables ; *************************************************************************** ; externB b$BiosMode externW b$ModeBurst externW b$CurPages externB b$ScreenMode externB b$ScrWidth externD b$InitPalette externB b$MaxAttr externB b$MaxColor globalW b$PageTable,,8 ;Offset to start of each video page externB b$OrgBiosMode externB b$Monitor externB b$Adapter externW b$VideoMem externB b$PageSize externB b$MaxPage externB b$ScrHeight externB b$ForeColor externW b$FBColors externB b$CharColor externW b$CurrPSize externB b$NullColor externW b$DSP externW b$CURSOR externW b$CSRTYP ; ; *************************************************************************** ; Local variables ; *************************************************************************** ; externB b$BorderColor ;border color (overscan) sEnd _BSS sBegin CN_TEXT externNP B$USRCSR sEnd CN_TEXT assumes CS,GR_TEXT sBegin GR_TEXT externNP B$InitModeData externNP B$GetParm externNP B$EgaPalReset externNP B$EgaPalResetB externNP B$EgaPalPut externNP B$EgaPalPutB externNP B$EgaPalTrans externNP B$EgaPalSet externNP b$ColorPalette externNP b$EnhPalette ; ; PAGE SIZES for each screen dimension possibility: ; ; These are calculated here as the BIOS initializes them (for the 25-line ; cases), or as it calculates them (for the 43/50-line cases). The added ; "slop" separates the pages and apparently eases scrolling troubles ; while increasing our troubles. ; ; NOTE: 4 pages of 80x50 is 8100H bytes, 100H over the 8000H max for the ; memory map, but 100H is the 256 byte slop between pages, so its OK. ; BUT, 8 pages of 40x50 is 8500H which is more than the slop will ; allow so we cut the supported pages in half to 4 in the code. ; (40x50 could actually support 7 pages, but 4 is a nicer number??) ; P40x25 EQU ((40*25*2+255) AND (NOT 255)) SHR 4 ;0800H bytes P80x25 EQU ((80*25*2+255) AND (NOT 255)) SHR 4 ;1000H bytes P40x43 EQU (40*43*2+256) SHR 4 ;0E70H bytes P80x43 EQU (80*43*2+256) SHR 4 ;1BE0H bytes P40x50 EQU (40*50*2+256) SHR 4 ;10A0H bytes [4] P80x50 EQU (80*50*2+256) SHR 4 ;2040H bytes [4] ;=========================================================================== mModeData Mode0Data ; ; SCREEN 0, BIOS modes 0 & 1 ; ; Mode-dependent data follows to initialize the the "b$ModeData" table ; in LLCGRP. ; ;=========================================================================== mScreenMode 0 mBiosMode 0 ;BIOS mode and burst may be adjusted later mBurst 0 mScrWidth 40 mScrHeight 25 mHorzRes 320 mVertRes 200 mVideoBase 0B800H mMaxAttr 15 mMaxColor 63 mPageSize 2 ;page size in K mCurrPSize P40x25 ;page size in paragraphs (1 plane) mMaxPage 7 mNullColor 7 mForeColor 7 mBackColor 0 mEgaWrMd 0 mInitPalette b$ColorPalette ;moved to LLXGASUP for sharing mInitVgaPal b$VgaPalette ;use regular VGA palette mAlphaDim AlphaDim0 mSetMode SetMode mSetPages SetPages mPalReset B$EgaPalReset mPalPut B$EgaPalPut mPalTrans B$EgaPalTrans mPalSet B$EgaPalSet mSetColor SetColor mEnd ,TextDataLen ;=========================================================================== ;=========================================================================== mModeData Mode2Data ; ; SCREEN 0, BIOS modes 2 & 3 ; ; Mode-dependent data follows to initialize the the "b$ModeData" table ; in LLCGRP. ; ;=========================================================================== mScreenMode 0 mBiosMode 2 ;BIOS mode and burst may be adjusted later mBurst 0 mScrWidth 80 mScrHeight 25 mHorzRes 640 mVertRes 200 mVideoBase 0B800H mMaxAttr 15 mMaxColor 63 mPageSize 4 ;page size in K mCurrPSize P80x25 ;page size in paragraphs (1 plane) mMaxPage 3 mNullColor 7 mForeColor 7 mBackColor 0 mEgaWrMd 0 mInitPalette b$ColorPalette ;moved to LLXGASUP for sharing mInitVgaPal b$VgaPalette ;use regular VGA palette mAlphaDim AlphaDim2 mSetMode SetMode mSetPages SetPages mPalReset B$EgaPalReset mPalPut B$EgaPalPut mPalTrans B$EgaPalTrans mPalSet B$EgaPalSet mSetColor SetColor mEnd ,TextDataLen ;=========================================================================== ;=========================================================================== mModeData Mode7Data ; ; SCREEN 0, BIOS mode 7 ; ; Mode-dependent data follows to initialize the the "b$ModeData" table ; in LLCGRP. ; ;=========================================================================== mScreenMode 0 mBiosMode 7 mBurst 0 mScrWidth 80 mScrHeight 25 mHorzRes 720 mVertRes 350 mVideoBase 0B000H mMaxAttr 15 mMaxColor 2 mPageSize 4 ;page size in K mCurrPSize P80x25 ;page size in paragraphs (1 plane) mMaxPage 0 mNullColor 7 mForeColor 7 mBackColor 0 mEgaWrMd 0 mInitPalette MonoPalette mInitVgaPal 0 ;not applicable mAlphaDim AlphaDim7 mSetMode SetMode mSetPages SetPages mPalReset B$EgaPalResetB mPalPut B$EgaPalPutB mPalTrans PalTrans7 mPalSet B$EgaPalSet mSetColor SetColor mEnd ,TextDataLen ;=========================================================================== ; ; MonoPalette - used to initialize the EGA palette for SCREEN 0, ; BIOS mode 7, for a Mono Display. ; labelB MonoPalette ;EGA palette for Mono Display, mode 7 DB 0 ;black DB 7 DUP (001000B) ;video DB 0 ;black DB 7 DUP (011000B) ;intensified ;*** ; B$Screen0 ; ;Purpose: ; Establish all relevent mode dependent data values and function ; vectors for BASIC screen mode 0. ; NOTE: No actual change in screen mode occurs until SetMode is called! ;Entry: ; AL = screen mode (0) ; AH = burst (0 or 1) ; CL = alpha columns ;Exit: ; PSW.C = set indicates error ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc B$Screen0,<PUBLIC,NEAR> cBegin mov bx,GR_TEXTOFFSET Mode7Data mov al,7 ;assume mono mode test b$Monitor,Monochrome ;is this a monochrome monitor? jnz Scr7 ;go if so cmp b$Monitor,AnalogMono ; VGA working only in MONO modes? je Scr7 ; go if so and al,b$OrgBiosMode;get entry bios mode and mask down to 3 bits cmp al,7 ;if AL=7 then entry mode was 7 or F (both mono) je Scr7 ;branch if entry mode was mono. use mode 7 xor al,al ;mode base = 0 mov bx,GR_TEXTOFFSET Mode0Data cmp cl,40 ;40 columns? je Got40 ;go if so w/mode base = 0 mov bx,GR_TEXTOFFSET Mode2Data mov al,2 ;mode base = 2 Got40: add al,ah ;new BIOS mode = 0/2 if no burst ; 1/3 if burst Scr7: mov cx,TextDataLen push ax call B$InitModeData ;initialize table data pop ax mov b$ModeBurst,ax ;save new mode and burst test b$Adapter,CGA + MDPA + HGC ;CGA or MDPA or HGC adapters? jnz SkipPage ;go if so mov ah,7 ;8 (max=7) pages for EGA/VGA/MCGA w/25 lines test b$Adapter,EGA ; EGA adapter? jz MaxPg ; brif not, 8 pages is right cmp b$VideoMem,64 ; only 64K EGA? ja MaxPg ; go if more, 8 pages is right cmp al,1 ;BIOS mode 0 or 1? (40 columns) jbe MaxPg ;go if so, 8 pages is right shr ah,1 ;limit to 4 pages (max=3) if 64K EGA & 80x25 MaxPg: mov b$MaxPage,ah ;save corrected max page value test b$Monitor,StdColor ;std color monitor? jz SkipPage ;go if not mov b$MaxColor,15 ;it can only handle 16 colors SkipPage: cmp al,7 ;BIOS mode 7? jz ScrExit ;if mono, don't setup enhanced palette test b$Monitor,AnalogColor + AnalogMono + EnhColor ;enhanced or analog monitor? jz ScrExit ;go if not ;set up enhanced palette for >= enhanced color monitor mov WORD PTR b$InitPalette,GR_TEXTOFFSET b$EnhPalette ScrExit: mov al,b$ForeColor ;set character color for text mode mov b$CharColor,al mov b$DSP,770H ;text mode function key attributes clc ;indicate no error cEnd ;*** ; AlphaDim0 ; ;Purpose: ; Validate the proposed text dimensions for 40 column Screen mode 0 ; and set up several screen-dependent variables if dimensions are OK. ;Entry: ; BH = number of lines ; BL = number of columns ;Exit: ; If dimensions ok ; PSW.C reset ; AL = -1 ; b$MaxPage, b$BiosMode, b$VideoMem, b$CurrPSize, ; and b$ScrHeight set appropriately. ; Else (error) ; PSW.C set ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc AlphaDim0,<NEAR> cBegin mov cl,80 ;80 is "other" columns ADim0_2: ;common entry point from AlphaDim2 xor al,al ;flag request for screen 0 cmp bl,cl ;"other" columns? je ADim0Exit ;exit if so w/request to reenter screen 0 ADim0_7: ;common entry point from AlphaDim7 cmp bl,b$ScrWidth ;same as current? stc jne ADim0Exit ;go if not w/error, only 80 or 40 columns cmp bh,25 ;25 lines? je ADim0Ok ;go if so, w/request to reenter screen 0 ; to get back to 25 lines dec al ;flag request satisfied (or error) test b$Adapter,EGA + VGA ;EGA or VGA? stc ;set error, just in case jz ADim0Exit ;go if not w/error, only 25 lines test b$Monitor,StdColor ;disallow StdColor monitor for 43 lines stc ;set error, just in case jnz ADim0Exit ;go if StdColor w/error cmp bh,43 ;43 lines? je LinesOk ;43 lines is ok test b$Adapter,VGA ;VGA? stc ;set error, just in case jz ADim0Exit ;exit with error if not VGA cmp bh,50 ;50 lines? stc ;set error, just in case jne ADim0Exit ;exit with error if not 50 lines mov cx,P40x50 ;larger page size cmp bl,40 ;40 columns? je ADim0_50 ;go if so mov cx,P80x50 ;larger page size jmp short ADim0_50 LinesOK: mov cx,P40x43 ;larger page size cmp bl,40 ;40 columns? je ADim0_43 ;go if so mov cx,P80x43 ;larger page size ADim0_50: mov b$MaxPage,3 ;only 4 pages in 80x43 or 80x50 or 40x50 ADim0_43: ;64K EGA has half the pages for all text dimensions except ;40x25, which is handled by B$Screen0 and never reaches here cmp b$VideoMem,64 ;only 64K? ja PgOk ;go if more, MaxPage is right shr b$MaxPage,1 ;halve number of pages if 64K mode 7 PgOk: ADim0Ok: mov b$ScrHeight,bh ;set alpha rows clc ;no error ADim0Exit: cEnd ;*** ; AlphaDim2 ; ;Purpose: ; Validate the proposed text dimensions for 80 column Screen mode 0 ; and set up several screen-dependent variables if dimensions are OK. ;Entry: ; BH = number of lines ; BL = number of columns ;Exit: ; exits through AlphaDim0 ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc AlphaDim2,<NEAR> cBegin mov cl,40 ;40 is "other" columns jmp ADim0_2 ;rest is just like mode 0 case cEnd <nogen> ;*** ; AlphaDim7 ; ;Purpose: ; Validate the proposed text dimensions for monochrome Screen mode 0 ; and set up several screen-dependent variables if dimensions are OK. ;Entry: ; BH = number of lines ; BL = number of columns ;Exit: ; exits through AlphaDim0 ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc AlphaDim7,<NEAR> cBegin xor al,al ;setup for request to reenter screen 0 jmp ADim0_7 ;rest is just like mode 0 case cEnd <nogen> ;*** ; B$FixTextPage ; ;Purpose: ; Fix up b$CurrPSize (for 43/50 lines) and initialize b$PageTable. ; ;Entry: ; b$CurrPSize initialized to 25-line default. ; b$ScrHeight must be initialized (call Alphadim). ; ;Exit: ; b$CurrPSize updated. ; b$PageTable initialized. ; ;Uses: ; per conv. ; ;Preserves: ; DI. ; ;****************************************************************************** cProc B$FixTextPage,<PUBLIC,NEAR>,<DI> cBegin xor ax,ax ; get a zero cmp b$ScreenMode,al ; make sure we're in text mode jnz PSizeExit ; else just return push es cmp b$ScrHeight,25 ; 25-line mode? je PSizeOkay ; brif so--b$CurrPSize already set correctly mov es,ax mov ax,es:[CRT_LEN] ; get actual page size from BIOS, in bytes mov cl,4 shr ax,cl ; convert to paragraphs mov b$CurrPSize,ax ; and update current page size PSizeOkay: mov di,offset DGroup:b$PageTable mov bx,[b$CurrPSize] ; size of page in paragraphs mov cl,4 shl bx,cl ; convert to size in bytes xor ax,ax ; first page always at offset zero mov cx,8 ; assume 8 pages push ds pop es ; es=ds SetPageTable: stosw ; set offset for this page add ax,bx ; compute offset of next page loop SetPageTable pop es PSizeExit: cEnd ;*** ; SetMode ; ;Purpose: ; Set screen mode according to the characteristics established ; by previous call to B$Screenx and b$AlphaDim. Set 8x8 character ; font if new mode is to be 43 or 50 lines. ;Entry: ; b$BiosMode is mode to set ; b$ScrHeight is number of lines ;Exit: ; None ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc SetMode,<NEAR> cBegin test b$Adapter,VGA + MCGA ;MCGA or VGA? jz SkipScanSet ;no, don't set scan lines mov ax,1202H ;assume we want 400 scan lines cmp b$ScrHeight,43 ;43 lines mode? jne SetScans ;no, go set to 400 scan lines mov ax,1201H ;set 350 scan lines for 43 line mode SetScans: mov bl,30H ;subfunction for set scan lines SCNIO ;set the scan lines SkipScanSet: mov al,b$BiosMode ;set BIOS mode SCNIO vSetMode cmp b$ScrHeight,43 ;43 lines? je Set8x8 ;branch if so cmp b$ScrHeight,50 ;50 lines? Set8x8: jne SetMode25 ;go if not mov ax,1112H ;character generator request xor bl,bl ; to load 8x8 font SCNIO ; which gets 43 lines [2]or 50 lines MOV AX,0707H ; cursor type for 8x8 font JMP SHORT sm_1 SetMode25: MOV AX,0707H ; assume 7,7 cursor (all bios modes but 7) CMP b$BiosMode,AL ; bios mode 7? (AL = 7) JNE StoreCsr ; no, use normal cursor MOV AX,0C0CH ; bios mode 7 cursor is 12,12 sm_1: StoreCsr: MOV b$UsrCsrTyp,AX ; store cursor type MOV b$UsrCsrTyp,AX ; store cursor type MOV b$InsCsrStop,AL ; and make insert cursor match MOV DX,b$CURSOR ; Get current cursor position MOV BYTE PTR b$CSRTYP,-1 ; invalidate present cursor type so it ; will get changed CALL B$USRCSR ; display user cursor NoStore: cEnd ;*** ; SetPages ; ;Purpose: ; Set the current active and visual pages for text modes. ;Entry: ; AL = active page ; AH = visual page ;Exit: ; None ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc SetPages,<NEAR> cBegin mov b$CurPages,ax ;save page numbers mov al,ah SCNIO vSelActivePage ;set visual page cEnd ;*** ; PalTrans7 ; ;Purpose: ; Translate a user supplied color for monochrome Screen mode 0 ; to the corresponding hardware value after verifying that the ; attribute value and the color value are in the legal ranges. ; Color mapping: 0 --> 0 ; 1 --> 01000B ; 2 --> 11000B ;Entry: ; DX:AX = user supplied color value ; BL = user supplied attribute value ;Exit: ; PSW.C set if illegal value, reset if Ok ; DX:AX = translated color value ; BL = unchanged ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc PalTrans7,<NEAR> cBegin cmp bl,b$MaxAttr ;is legal attribute ? ja PalTrErr ;error return or dh,dl ;hi word of color 0? or dh,ah ;hi byte of lo word of color 0? jnz PalTrExit ;error if not cmp al,b$MaxColor ;is legal color ? ja PalTrErr ;error return cmp al,1 ;translate color jb PalTrExit ; 0 -> 0 mov al,01000B ; 1 -> 01000B je PalTrExit mov al,11000B ; 2 -> 11000B PalTrExit: clc ;no error ret PalTrErr: STC ;indicate error cEnd ;*** ; SetColor ; ;Purpose: ; Process the color statement for text modes (BASIC Screen mode 0). ; Syntax for text mode color statement is as follows: ; ; COLOR [foreground],[background],[border] ; ; where "foreground" is the attribute to be used for the foreground ; (0-15 are normal, 16-31 are 0-15 plus blinking) ; and "background" is the attribute to be used for the background ; and "border" is the color to be used for the overscan border ; ; Any omitted parameter(s) indicate no change for that parameter. ;Entry: ; parameter list ; WORD 1 = flag 0 if param not present ; WORD 2 = parameter if WORD 1 <> 0, else second param flag ; etc. ;Exit: ; PSW.C set if error, reset if Ok. ; b$FBColors is set to foreground/background attributes ; b$CharColor is set to character attribute (fg & bg in one byte) ; b$NullColor is set to null attribute (same as character attribute) ;Uses: ; per conv. ;Exceptions: ;****************************************************************************** cProc SetColor,<NEAR> cBegin MOV DX,b$FBColors ;dl=ForeColor dh=BackColor MOV BH,b$BorderColor JCXZ SetColErr ;error if no params jmp short SetCol1 SetColErr: stc jmp SetColExit SetCol1: cCall B$GetParm ;[AL] = parm if not psw.z JZ TXTCL1 ;brif no parm given CMP AL,31 ;is foreground color in range [0-31]? JA SetColErr ;error if not XCHG AL,DL ;save new foreground color TXTCL1: cCall B$GetParm ;get bkgrnd color if specified JZ TXTCL2 ;brif no parm given CMP AL,15 ;range check background color [0-15] JA SetColErr ;brif out of range XCHG AL,DH ;save new background color TXTCL2: cCall B$GetParm ;get border color if specified JZ TXTCL3 ;brif no parm given JCXZ NoError JMP SHORT SetColErr NoError: CMP AL,15 ;range check border color [0-15] JA SetColErr ;brif out of range XCHG AL,BH ;save new border color TXTCL3: cmp b$BiosMode,7 ;mode 7? jne SetColOk ;skip if not test b$Adapter,EGA ;EGA? jz SetColOk ;skip if not ;this fixes a bug in the EGA card mode 7 ??? ;if Fg=0/8/16/24 and Bg=7/15 let it go else force Bg to 0 mov al,dh ;BackColor not al ;low 3 bits = 0 iff BackColor = 7|15 or al,dl ;low 3 bits = 0 iff ForeColor = 0|8|16|24 and al,7 ;low 3 bits = 0 iff both jz SetColOk xor dh,dh ;in all other cases make Bg = 0 SetColOk: MOV AX,DX ;get fg/bk colors in AX MOV b$FBColors,AX ;new fore and back XCHG DH,DL ;swap forground/background colors AND DH,0FH ;strip off blink SHL DL,1 ;shift background intensity bit into d4 AND DL,10H ;leave intensity OR DL,BH ;[DL] = border color + background intensity AND AH,7 ;strip background intensity from char attribute MOV CL,4 SHL AH,CL ;move background color bits to d6-d4 for char ;attribute TEST AL,10H ;is blink enabled? JZ NOBLNK ;br. if not OR AH,80H ;add blink NOBLNK: OR AH,DH ;add foreground color MOV CH,AH ;place char attribute in CH MOV b$NullColor,AH ;char attribute MOV b$CharColor,AH ;null attribute TEST b$Monitor,AnalogColor + AnalogMono + EnhColor ;enhanced or analog monitor? jnz NO_BORDER ;Brif so MOV b$BorderColor,BH;new border color MOV BL,DL ;need border color in BL XOR BH,BH ;zero BH SCNIO vSetPalette ;set border color NO_BORDER: clc ;indicate no error SetColExit: cEnd sEnd GR_TEXT END
28.224115
79
0.638681
479e7e3336fba95765f951af48e1a60c335c8e20
489
asm
Assembly
programs/oeis/024/A024906.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/024/A024906.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/024/A024906.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A024906: Numbers k such that 9*k + 1 is prime. ; 2,4,8,12,14,18,20,22,30,34,42,44,48,54,58,60,64,68,70,82,84,90,92,98,102,104,110,112,118,124,128,130,142,144,158,162,170,172,174,180,184,188,194,198,200,208,222,224,228,232,238,240,242,250,252,254,260,264,274,278,280,282,284,288,294,298,302,310,324,328,330,340,342,352,354,362,368,370,384,390,392,394,398,404,408,410,412,414,428,432,434,438,450,462,464,470,482,484,494,498 seq $0,111094 ; Numbers k such that 18*k + 1 is prime. mul $0,2
81.5
374
0.711656
227a662f84350f38011039f8f89a3f8d3fbdd0e3
569
asm
Assembly
oeis/330/A330613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/330/A330613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/330/A330613.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A330613: Triangle read by rows: T(n, k) = 1 + k - 2*n - 2*k*n + 2*n^2, with 0 <= k < n. ; Submitted by Jon Maiga ; 1,5,2,13,8,3,25,18,11,4,41,32,23,14,5,61,50,39,28,17,6,85,72,59,46,33,20,7,113,98,83,68,53,38,23,8,145,128,111,94,77,60,43,26,9,181,162,143,124,105,86,67,48,29,10,221,200,179,158,137,116,95,74,53,32,11,265,242,219,196,173,150,127,104,81,58,35,12,313,288,263,238,213,188,163,138,113,88,63,38,13,365,338,311,284,257,230,203,176,149 mul $0,2 mov $2,1 lpb $0 sub $0,$2 sub $0,1 add $2,2 lpe add $1,$2 sub $1,$0 mul $2,$1 mov $0,$2 div $0,2 add $0,1
31.611111
331
0.625659
f9479d40e1a2c17f6ba5532412fe937ba318dbb3
628
asm
Assembly
_maps/LZ Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_maps/LZ Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_maps/LZ Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Sprite mappings - platforms on a conveyor belt (LZ) ; --------------------------------------------------------------------------- Map_LConv_internal: dc.w @wheel1-Map_LConv_internal dc.w @wheel2-Map_LConv_internal dc.w @wheel3-Map_LConv_internal dc.w @wheel4-Map_LConv_internal dc.w @platform-Map_LConv_internal @wheel1: dc.b 1 dc.b $F0, $F, 0, 0, $F0 @wheel2: dc.b 1 dc.b $F0, $F, 0, $10, $F0 @wheel3: dc.b 1 dc.b $F0, $F, 0, $20, $F0 @wheel4: dc.b 1 dc.b $F0, $F, 0, $30, $F0 @platform: dc.b 1 dc.b $F8, $D, 0, $40, $F0 even
31.4
77
0.485669
a42b4e5165675051939964851385ac196c1b710d
712
asm
Assembly
programs/oeis/236/A236284.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/236/A236284.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/236/A236284.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A236284: a(n) = tau(n)^n, where tau(n) = A000005(n) = the number of divisors of n. ; 1,4,8,81,32,4096,128,65536,19683,1048576,2048,2176782336,8192,268435456,1073741824,152587890625,131072,101559956668416,524288,3656158440062976,4398046511104,17592186044416,8388608,4722366482869645213696,847288609443,4503599627370496,18014398509481984,6140942214464815497216,536870912,1237940039285380274899124224,2147483648,7958661109946400884391936,73786976294838206464,295147905179352825856,1180591620717411303424,22528399544939174411840147874772641,137438953472,75557863725914323419136,302231454903657293676544 mov $2,$0 seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. add $2,1 pow $0,$2
89
515
0.837079
e505b07d2a89ac30c8d020eeaad1b52752fc84ac
694
asm
Assembly
oeis/033/A033303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/033/A033303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/033/A033303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A033303: Expansion of (1 + x)/(1 - 2*x - x^2 + x^3). ; Submitted by Jamie Morken(w4) ; 1,3,7,16,36,81,182,409,919,2065,4640,10426,23427,52640,118281,265775,597191,1341876,3015168,6775021,15223334,34206521,76861355,172705897,388066628,871977798,1959316327,4402543824,9892426177,22228079851,49946042055,112227737784,252173437772,566628571273,1273202842534,2860860818569,6428295908399,14444249792833,32455934675496,72927823235426,163867331353515,368206551266960,827352610652009,1859044441217463,4177234941819975,9386161714205404,21090513929013320,47389954630412069,106484261475632054 mov $1,2 mov $2,1 lpb $0 sub $0,1 add $1,$4 mov $3,$2 add $4,$1 add $2,$4 mov $4,$3 lpe mov $0,$2
43.375
495
0.789625
cc86fd19f6b77d87818b961908af6130cade87f9
388
asm
Assembly
boot.asm
lesmiskin/os
c2e9409fc858bab32c0234dbafb326cdd0d18eac
[ "CC0-1.0" ]
null
null
null
boot.asm
lesmiskin/os
c2e9409fc858bab32c0234dbafb326cdd0d18eac
[ "CC0-1.0" ]
null
null
null
boot.asm
lesmiskin/os
c2e9409fc858bab32c0234dbafb326cdd0d18eac
[ "CC0-1.0" ]
null
null
null
; Source: pg 12 mov ah, 0x0e ; scrolling teletype BIOS routine. mov al, 'H' int 0x10 mov al, 'e' int 0x10 mov al, 'l' int 0x10 mov al, 'l' int 0x10 mov al, 'o' int 0x10 jmp $ ; make loop(?) ; Padding and magic number for boot recognition times 510-($-$$) db 0 ; pad to 510 bytes dw 0xaa55 ; our magic number! ;db 0xaa,0x55 ; our magic number! ;db 0x55 ; our magic number!
15.52
48
0.649485
521780b8dcbdd5860fb5ad3c8131cd44b76dde7d
998
asm
Assembly
map-data.asm
zorchenhimer/nes-platforming
2e4f9a57618d119dee2909c5330fdb33e35e647c
[ "MIT" ]
12
2020-05-31T08:14:32.000Z
2021-11-18T18:23:50.000Z
map-data.asm
zorchenhimer/nes-platforming
2e4f9a57618d119dee2909c5330fdb33e35e647c
[ "MIT" ]
null
null
null
map-data.asm
zorchenhimer/nes-platforming
2e4f9a57618d119dee2909c5330fdb33e35e647c
[ "MIT" ]
1
2021-09-12T23:16:11.000Z
2021-09-12T23:16:11.000Z
; asmsyntax=ca65 ; Lookup tables that have values pointing to the ; start of each row of blocks in the data. Block_RowsLow: .repeat 15, row .byte .lobyte(Blocks_FromTiled + (16 * row)) .endrepeat Block_RowsHi: .repeat 15, row .byte .hibyte(Blocks_FromTiled + (16 * row)) .endrepeat ; Block metatiles. ; 0 = Air ; anythyng else = platform Blocks_FromTiled: .byte 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,0,0,0,2,2,0,2,2,0,2,2,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,0,0,0,2,2,0,2,2,0,0,0,2 .byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,2 .byte 2,0,0,0,0,0,2,2,0,0,0,0,0,0,0,2 .byte 2,2,2,0,0,0,0,0,2,2,0,0,0,0,0,2 .byte 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 .byte 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 .byte 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
28.514286
48
0.56513
ac6928a9486a84d982711c45e40bb3d833e271d6
113
asm
Assembly
src/arch/x86/boot/boot.asm
dunnousername/os3
e5a4b98aca302c43046d4ce0c86aa3b519a027a6
[ "MIT" ]
null
null
null
src/arch/x86/boot/boot.asm
dunnousername/os3
e5a4b98aca302c43046d4ce0c86aa3b519a027a6
[ "MIT" ]
null
null
null
src/arch/x86/boot/boot.asm
dunnousername/os3
e5a4b98aca302c43046d4ce0c86aa3b519a027a6
[ "MIT" ]
null
null
null
[BITS 64] segment .text extern _cstart global _start _start: mov al, '.' out 0xE9, al call _cstart
10.272727
16
0.646018
0c0e621c0b996d2b5d5ddd8a6b9c96da2fdd8fe0
962
asm
Assembly
s2/sfx-original/D7 - Platform Knock.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s2/sfx-original/D7 - Platform Knock.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s2/sfx-original/D7 - Platform Knock.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound57_PlatformKnock_Header: smpsHeaderStartSong 2, 1 smpsHeaderVoice Sound57_PlatformKnock_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound57_PlatformKnock_FM5, $00, $00 ; FM5 Data Sound57_PlatformKnock_FM5: smpsSetvoice $00 dc.b nCs6, $15 smpsStop Sound57_PlatformKnock_Voices: ; Voice $00 ; $04 ; $09, $00, $70, $30, $1C, $DF, $1F, $1F, $15, $0B, $12, $0F ; $0C, $00, $0D, $0D, $07, $FA, $2F, $FA, $00, $00, $29, $00 smpsVcAlgorithm $04 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $03, $07, $00, $00 smpsVcCoarseFreq $00, $00, $00, $09 smpsVcRateScale $00, $00, $03, $00 smpsVcAttackRate $1F, $1F, $1F, $1C smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0F, $12, $0B, $15 smpsVcDecayRate2 $0D, $0D, $00, $0C smpsVcDecayLevel $0F, $02, $0F, $00 smpsVcReleaseRate $0A, $0F, $0A, $07 smpsVcTotalLevel $00, $29, $00, $00
28.294118
63
0.639293
335d33fe1f1c1408079305c4f56f877769c73c2d
86
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_exp2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_exp2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_exp2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC asm_exp2 EXTERN am48_exp2 defc asm_exp2 = am48_exp2
9.555556
25
0.825581
21b4b25716d68bd67b24dcecaf2742a8cf90f5cf
1,841
asm
Assembly
programs/oeis/071/A071099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071099: a(n) = (n-1)*(n+3) - 2^n + 4. ; 0,2,5,8,9,4,-15,-64,-175,-412,-903,-1904,-3927,-7996,-16159,-32512,-65247,-130748,-261783,-523888,-1048135,-2096668,-4193775,-8388032,-16776591,-33553756,-67108135,-134216944,-268434615,-536870012,-1073740863,-2147482624,-4294966207,-8589933436,-17179867959,-34359737072,-68719475367,-137438952028,-274877905423,-549755812288,-1099511626095,-2199023253788,-4398046509255,-8796093020272,-17592186042391,-35184372086716,-70368744175455,-140737488353024,-281474976708255,-562949953418812,-1125899906840023,-2251799813682544,-4503599627367687,-9007199254738076,-18014398509478959,-36028797018960832,-72057594037924687,-144115188075852508,-288230376151708263,-576460752303419888,-1152921504606843255,-2305843009213690108,-4611686018427383935,-9223372036854771712,-18446744073709547391,-36893488147419098876,-73786976294838201975,-147573952589676408304,-295147905179352821095,-590295810358705646812,-1180591620717411298383,-2361183241434822601664,-4722366482869645208367,-9444732965739290421916,-18889465931478580849159,-37778931862957161703792,-75557863725914323413207,-151115727451828646832188,-302231454903657293670303,-604462909807314587346688,-1208925819614629174699615,-2417851639229258349405628,-4835703278458516698817815,-9671406556917033397642352,-19342813113834066795291591,-38685626227668133590590236,-77371252455336267181187695,-154742504910672534362382784,-309485009821345068724773135,-618970019642690137449554012,-1237940039285380274899115943,-2475880078570760549798239984,-4951760157141521099596488247,-9903520314283042199192984956,-19807040628566084398385978559,-39614081257132168796771965952,-79228162514264337593543940927,-158456325028528675187087891068,-316912650057057350374175791543,-633825300114114700748351592688 mov $1,$0 add $1,1 pow $1,2 mov $2,2 pow $2,$0 sub $1,$2 mov $0,$1
167.363636
1,731
0.862032
206932bcc1a2feb0f40aeb65d0c82eeb16c9a1f4
318
asm
Assembly
oeis/213/A213167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/213/A213167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/213/A213167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A213167: a(n) = n! - (n-2)!. ; 1,5,22,114,696,4920,39600,357840,3588480,39553920,475372800,6187104000,86699289600,1301447347200,20835611596800,354379753728000,6381450915840000,121289412980736000,2426499634470912000 lpb $0 add $1,$0 add $0,1 mul $1,$0 gcd $2,$0 sub $0,2 add $1,$2 lpe mov $0,$1 add $0,1
22.714286
185
0.704403
62e16b66de88dfbb6f5abcad54e5e8c5d63a4fee
1,067
asm
Assembly
programs/oeis/280/A280098.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/280/A280098.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/280/A280098.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A280098: The sum of the divisors of 24*n - 1, divided by 24. ; 1,2,3,5,6,7,7,8,11,10,11,14,13,17,15,16,19,18,28,20,21,24,25,31,25,30,27,31,35,30,31,35,38,41,35,36,37,38,54,46,41,45,43,53,49,46,57,48,62,55,51,55,56,76,55,60,57,63,71,60,80,62,63,77,65,66,67,78,83,74,77,79,78,93,86,76,77,78,95,85,85,94,91,112,85,86,87,88,124,96,95,92,98,126,99,114,105,98,130,100,101,102,118,125,115,106,114,108,131,140,111,112,113,137,120,133,134,125,143,120,121,122,133,186,125,126,139,133,155,130,150,132,133,161,140,147,145,176,180,140,150,142,148,173,171,152,147,153,217,155,151,174,153,185,155,165,157,168,220,175,161,183,163,197,171,190,167,175,203,170,187,172,198,217,210,182,184,178,215,206,187,199,183,221,194,186,214,203,227,196,191,204,211,285,195,196,205,198,248,200,252,209,203,270,205,206,207,256,270,210,217,212,225,280,272,222,224,218,263,220,221,254,223,286,225,270,245,228,316,230,242,245,233,281,235,270,266,238,304,259,241,242,300,293,245,246,247,271,310,286 add $0,1 mul $0,4 sub $0,1 cal $0,98098 ; a(n) = sigma(6*n+5)/6. mov $1,$0 sub $1,4 div $1,4 add $1,1
88.916667
900
0.700094
a68589ae8e08adab9e6a4686713097d2f4b4c0f5
609
asm
Assembly
oeis/191/A191637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/191/A191637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/191/A191637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A191637: a(n) = floor((1 + 4^n)/(1 + 2*n)). ; 1,3,9,28,93,315,1092,3855,13797,49932,182361,671088,2485513,9256395,34636833,130150524,490853405,1857283155,7048151460,26817356775,102280151421,390937467653,1497207322929,5744387279809,22076468761620,84973577874915,327534518354217,1264168316454876,4885260612740877,18900352534538475,73201365371863300,283796062672454640,1101298153654301589,4277505872164533708,16628050996019877513,64689951820132126215,251859545753047744730,981270957479406797651,3825714619033636628817,14925010118699125613656 mul $0,2 mov $1,$0 add $1,2 sub $0,$1 pow $0,$1 add $1,1 div $0,$1
55.363636
494
0.834154
51a3dc6a227448b1f69d2a1d387514cf750d9551
4,756
asm
Assembly
CCS/wisp-base/RFID/Timer0A1_ISR.asm
whitecloudy/wisp5
17eafbd1715284d5e0477cd455c187dfc53ea817
[ "BSD-2-Clause" ]
53
2015-01-13T01:06:03.000Z
2022-02-20T01:55:24.000Z
CCS/wisp-base/RFID/Timer0A1_ISR.asm
whitecloudy/wisp5
17eafbd1715284d5e0477cd455c187dfc53ea817
[ "BSD-2-Clause" ]
13
2015-02-10T11:39:26.000Z
2022-01-27T08:53:47.000Z
CCS/wisp-base/RFID/Timer0A1_ISR.asm
whitecloudy/wisp5
17eafbd1715284d5e0477cd455c187dfc53ea817
[ "BSD-2-Clause" ]
83
2015-01-13T01:05:48.000Z
2022-03-17T09:15:09.000Z
;/***********************************************************************************************************************************/ ;/**@file Timer0A1_ISR.asm ;* @brief Receive chain decoding routines. ;* @details ;* ;* @author Justin Reina, UW Sensor Systems Lab ;* @created ;* @last rev ;* ;* @notes ;* ;* @todo Document the purpose(s) of this ISR better ;*/ ;/***********************************************************************************************************************************/ .cdecls C, LIST, "../globals.h", "../config/wispGuts.h", "rfid.h" .define "4", SR_SP_OFF .retain .retainrefs ;************************************************************************************************************************************* ; Timer0A1 ISR: ; Modes: #CPU_OFF: still in latch mode. shut down TA0_SM and restart RX State Machine * ; #CPU_ON: in parse mode. abort & send false message to EPC_SM so it doesn't hang. this state should never happen though.. * ; * ; Interrupt Sources: T0A1CCR0 * ;************************************************************************************************************************************* Timer0A1_ISR: ;[6] entry cycles into an interrupt (well, 5-6) PUSHM.A #1, R15 ;[] save R15 ;---------------------------------------Check What State the Receive Chain is in------------------------------------------------- MOV SR_SP_OFF(SP), R15 ;[]Grab previous SR (last item that was shoved 4 bytes beforehand "PUSHM.A") BIT #CPUOFF, R15 ;[]Check to see if the CPU was off. JZ CPU_is_on ;[] ;---------------------------------------------------(CPU IS OFF)----------------------------------------------------------------- CPU_is_off: ;[]i.e. we're still in latch mode. restart the RX State Machine. Two entries here: either from RX State Machine or TA1_SM. ; or... lowPowerSleep() is using it CMP.B #TRUE, &isDoingLowPwrSleep;[] is the lowPowerSleep() call using it!? JEQ Wakeup_Proc MOV.B &isDoingLowPwrSleep, R15 ;/** @todo This line seems unnecessary... */ ;we're gonna be careful on the TA1_SM for now because that should never happen. so just for now we'll add on clr R6 & rst R4. MOV &(cmd), R4 ;[] shouldn't need, just for safety (make sure TA1 starts up ok) CLR R5 ;[1] reset R5 for rentry into RX State Machine BIC.B #(PIN_RX), &PRXIES ;[4] wait again for #1 to fire on rising edge(inverted) //@us_change, enable BIS.B #(PIN_RX), &PRXIE ;[]Enable the interrupt CLR.B PRXIFG ;[]clr any pending flasgs (safety) ; TODO The following shouldn't overwrite other bits in PRXSEL!? BIC.B #PIN_RX, &PRXSEL0 ;[]disable TimerA1 BIC.B #PIN_RX, &PRXSEL1 ;[]disable TimerA1 BIC.B #(CM_2+CCIE), &TA0CCTL0 ;[] disable capture and interrupts by capture-compare unit BIC #(CCIFG), TA0CCTL0 ;[] clear the interrupt flag BIS #(SCG1+OSCOFF+CPUOFF+GIE), SR_SP_OFF(SP);[] put tag back into LPM4 POPM.A #1, R15 RETI ;[5] return from interrupt Wakeup_Proc: BIC #(CCIFG), TA0CCTL0 ;[] clear the interrupt flag ;@us change:clear TA0CTL and TA0CCTL1, because lowpowermode is controlled by TA0CCTL1 CLR TA0CTL CLR TA0CCTL0 ;[]clear TA0CCTL0, no need to clear out of ISR CLR TA0CCTL1 ;[]clear TA0CCTL1, no need to clear out of ISR MOV #(FALSE), &isDoingLowPwrSleep ;[] clear that flag! BIC #(SCG1+OSCOFF+CPUOFF+GIE), SR_SP_OFF(SP);[] take tag out of LPM4 POPM.A #1, R15 RETI ;[5] return from interrupt ;----------------------------------------------------(CPU IS ON)----------------------------------------------------------------- CPU_is_on: ;i.e. we're now in parse mode ;uh-oh. chances are that the EPC_SM is already to while(bits<NUM_X); by now we've already failed the command, so set bits high ;wakeup. The command will be parsed in error and potentially handled in error, oh well. This command was already failed. This case ;should never ever happen though. ADD #0xF000, R5 ;[] set bits to a large value so machine can break out BIC #(CCIFG), TA0CCTL0 ;[] clear the interrupt flag BIC #(SCG1+OSCOFF+CPUOFF+GIE), SR_SP_OFF(SP);[] put tag back into LPM4 POPM.A #1, R15 RETI ;[5] return from interrupt ;************************************************************************************************************************************* ; DEFINE THE INTERRUPT VECTOR ASSIGNMENT * ;************************************************************************************************************************************* ;.sect ".int44" ; Timer0_A1 Vector ;.short Timer0A1_ISR ; This sect/short pair sets int52 = Timer0A1_ISR addr. .end
51.695652
135
0.506518
288b6e450bda76220ac365fc75fb923aad7d4a54
2,008
asm
Assembly
descriptor.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
descriptor.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
descriptor.asm
satadriver/LiunuxOS
693174ac2b3e503d72782fc7a14f18c8a4f2756c
[ "Apache-2.0" ]
null
null
null
RECODE EQU 9AH ROCODE EQU 98H RWDATA EQU 92H RODATA EQU 90H TASKGATE286 EQU 81h LDTGATE EQU 82h TASKGATE286B EQU 83h CALLGATE286 EQU 84h TASKGATE EQU 85h INTRGATE286 EQU 86h TRAPGATE286 EQU 87h TSSSEG EQU 89h TSSSEGB EQU 8bh CALLGATE EQU 8ch INTRGATE EQU 8eh TRAPGATE EQU 8fh GDL_4G_32B equ 0cfh GDL_1M_32B equ 04fh GDL_64K_32B equ 040h GDL_64K_16B equ 0 DPL0 EQU 0 DPL1 EQU 20H DPL2 EQU 40H DPL3 EQU 60H RPL0 EQU 0 RPL1 EQU 1 RPL2 EQU 2 RPL3 EQU 3 DESCRIPTOR struc _segLimit dw 0 _baseLow dw 0 _baseMid db 0 _attr db 0 _GDL db 0 _baseHigh db 0 DESCRIPTOR ends GATEDESCRIPTOR struc _offsetLow dw 0 _selector dw 0 _paramCnt db 0 _attr db 0 _offsetHigh dw 0 GATEDESCRIPTOR ends JUMP16 macro seg,off DB 0eah dw off dw seg endm CALL16 macro seg,off DB 09ah dw off dw seg endm JUMP32 macro seg,off DB 0eah dd off dw seg endm CALL32 macro seg,off DB 09ah dd off dw seg endm SETDESCBASE MACRO desc, seg mov eax, seg shl eax, 4 mov desc._baseLow, ax shr eax,16 mov desc._baseMid, al mov desc._baseHigh, ah ENDM SETDESCADDR MACRO desc, seg,off mov eax, seg shl eax, 4 add eax,off mov desc._baseLow, ax shr eax,16 mov desc._baseMid, al mov desc._baseHigh, ah ENDM SETGATEADDR MACRO gate,seg,off,selector mov eax, seg shl eax, 4 add eax,off mov gate + GATEDESCRIPTOR._offsetLow,ax shr eax,16 mov gate + GATEDESCRIPTOR._offsetHigh,ax mov gate + GATEDESCRIPTOR._selector,selector ENDM comment * JUMP32 MACRO selector,offsetv DB 0eaH DW offsetv ;32位偏移 DW 0 DW selector ENDM CALL32 MACRO selector,offsetv db 09ah dw offsetv dw 0 dw selector endm JUMP16 MACRO selector,offsetv db 0eah dw offsetv dw selector endm call16 MACRO selector,offsetv db 9ah dw offsetv dw selector endm *
15.565891
46
0.662351
bf9fd1dd59264c13e149c3e1415f8ae054196a63
469
asm
Assembly
oeis/047/A047750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047750.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047750: If n mod 2 = 0 then m := n/2 and a(n) = (3*m)!*(5*m+1)/((m+1)!*(2*m+1)!); otherwise m := (n-1)/2, a(n) = 6*(3*m+2)!/(m!*(2*m+3)!). ; Submitted by Jon Maiga ; 1,2,3,6,11,24,48,110,231,546,1183,2856,6324,15504,34884,86526,197087,493350,1134705,2861430,6633315,16829280,39268320,100134216,234930276,601661144,1418201268,3645533040,8627761528,22249511328 mov $1,$0 add $1,1 div $1,2 mov $2,$0 add $0,$1 bin $0,$2 add $1,$2 add $2,2 bin $1,$2 mul $1,4 sub $0,$1
29.3125
194
0.633262
6c237980609f3c208508d5edb2db1c49dcfefd22
2,497
asm
Assembly
levelselect.asm
wiebow/tetris.c64
d15f86f62060d09323a7c30c20a422d58f6ed3a4
[ "Unlicense", "MIT" ]
79
2015-03-03T03:41:44.000Z
2022-01-17T13:09:59.000Z
levelselect.asm
wiebow/tetris.c64
d15f86f62060d09323a7c30c20a422d58f6ed3a4
[ "Unlicense", "MIT" ]
null
null
null
levelselect.asm
wiebow/tetris.c64
d15f86f62060d09323a7c30c20a422d58f6ed3a4
[ "Unlicense", "MIT" ]
10
2015-04-13T06:52:25.000Z
2021-11-13T19:10:56.000Z
.const FLASH_DELAY = 18 // ---------------------------------- StartLevelSelectMode: lda #$00 sta currentLevel sta previousLevel sta levelDisplayFlag lda #1 sta levelFlashDelay // and delay counter ldy #SCREEN_LEVELSELECT jsr PRINT_SCREEN // print the hi scores! ldx #14 ldy #14 jsr PRINT_HISCORE_TABLE rts // -------------------------------------------------- UpdateLevelSelectMode: // jsr GetInput // check for input ldx inputResult cpx #NOINPUT beq doLevelFlash // there is input cpx #TURNCLOCK // hit fire? bne !skip+ jmp EndLevelSelectMode !skip: cpx #DOWN // hit return? bne !skip+ jmp EndLevelSelectMode !skip: cpx #LEFT bne !skip+ lda currentLevel beq doLevelFlash // we cant go lower, goto flashing sta previousLevel // store level dec currentLevel // and change level jmp inputDone !skip: cpx #RIGHT bne doLevelFlash // no further relevant input, goto flashing lda currentLevel cmp #9 beq doLevelFlash // we cannot go higher, goto flashing sta previousLevel inc currentLevel inputDone: // level select has changed // make sure previous level is showing ldx previousLevel lda levelY,x pha lda levelX,x tay pla tax clc jsr PLOT lda previousLevel adc #$30 // add #$30 to it to get a screencode jsr PRINT // make sure to show change asap lda #$01 sta levelDisplayFlag sta levelFlashDelay doLevelFlash: dec levelFlashDelay beq !skip+ // do flashing rts // nothing to do anymore !skip: // we are going to flash the level indicator lda #FLASH_DELAY sta levelFlashDelay // reset the delay counter // set cursor to correct location ldx currentLevel lda levelY,x pha lda levelX,x tay pla tax clc jsr PLOT // flip the display flag lda levelDisplayFlag eor #%00000001 sta levelDisplayFlag beq space // flag clear? then print space lda currentLevel // get the level value adc #$30 // add #$30 to it to get a screencode jmp PRINT // print and exit space: lda #$20 jmp PRINT // and exit // ---------------------------------- EndLevelSelectMode: lda #MODE_PLAY sta gameMode jsr StartPlayMode rts // ---------------------------------- // x/y positions of level numbers on screen // 0 1 2 3 4 5 6 7 8 9 levelX: .byte 16,18,20,22,24,16,18,20,22,24 levelY: .byte 07,07,07,07,07,09,09,09,09,09 levelFlashDelay: .byte 0 // counter levelDisplayFlag: .byte 0 // render number or space previousLevel: .byte 0
17.835714
65
0.653985
95edfefee83b1e72ab88ffdb28c2a4600bff230b
421
asm
Assembly
wof/lcs/123p/AA.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/123p/AA.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/123p/AA.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 0016B2 rts [123p+ AA] 0016E8 cmpa.w ($1a6,A5), A1 [123p+ AA] 00812C btst #$6, ($73,A1) [123p+ AA] 00C3A6 move.w ($20,A6), D1 017DAC btst #$1, (-$3e,A5) [123p+ AA] 017DB8 btst #$2, (-$3e,A5) [123p+ AA] 017DC4 cmp.w D1, D0 [123p+ AA] 01A74C dbra D7, $1a74a 01A75E dbra D4, $1a75c copyright zengfr site:http://github.com/zengfr/romhack
30.071429
54
0.624703
9dbfe1d54f07367b21360788a02456aa6085d7d5
332
asm
Assembly
programs/oeis/089/A089893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/089/A089893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/089/A089893.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A089893: a(n) = (A001317(2n)-1)/4. ; 0,1,4,21,64,321,1092,5461,16384,81921,278532,1392661,4210752,21053761,71582788,357913941,1073741824,5368709121,18253611012,91268055061,275951648832,1379758244161,4691178030148,23455890150741 mov $1,1 lpb $0 sub $0,1 seq $1,48725 ; a(n) = Xmult(n,5) or rule90(n,1). lpe div $1,4 mov $0,$1
30.181818
192
0.728916
5b30454caad8dfadd01f2e6944a174d83b69d79f
2,404
asm
Assembly
traffic light/traffic light.asm
sigma1326/Traffic-Lights
fa8439b33a32ddf64c94f031827ac89609eb783c
[ "Apache-2.0" ]
7
2018-08-12T10:35:50.000Z
2022-02-25T13:43:51.000Z
traffic light/traffic light.asm
Moinuddin9777/Traffic-Lights
fa8439b33a32ddf64c94f031827ac89609eb783c
[ "Apache-2.0" ]
1
2019-11-30T05:38:22.000Z
2019-11-30T05:38:22.000Z
traffic light/traffic light.asm
Moinuddin9777/Traffic-Lights
fa8439b33a32ddf64c94f031827ac89609eb783c
[ "Apache-2.0" ]
6
2019-03-18T14:40:53.000Z
2022-02-25T13:43:53.000Z
ORG 00h ;defining time slots red equ 99 green equ 90 yellow equ 9 ;r3 : light change counter ;r4 : traffic light1 counter ;r5 : traffic light2 counter ;r6 : traffic light3 counter MAIN_LOOP: ;;;;;;;;;;;;;;;;;;;;; state 1 mov r4,#green mov r5,#red mov r6,#red ;G:1 - Y: - R:2,3 clr p1.0 ;setting decoder for traffic light 1 setb p1.1 ;setting decoder for traffic light 1 clr p1.2 ;setting decoder for traffic light 2 clr p1.3 ;setting decoder for traffic light 2 clr p1.4 ;setting decoder for traffic light 3 clr p1.5 ;setting decoder for traffic light 3 mov r3,#green lcall delay mov r4,#yellow ;G: - Y:1 - R:2,3 setb p1.0 clr p1.1 clr p1.2 clr p1.3 clr p1.4 clr p1.5 mov r3,#yellow lcall delay ;;;;;;;;;;;;;;;;;;;;; state 2 mov r4,#red mov r5,#green mov r6,#red ;G:2 - Y: - R:1,3 clr p1.2 setb p1.3 clr p1.0 clr p1.1 clr p1.4 clr p1.5 mov r3,#green lcall delay mov r5,#yellow ;G: - Y:2 - R:1,3 setb p1.2 clr p1.3 clr p1.0 clr p1.1 clr p1.4 clr p1.5 mov r3,#yellow lcall delay ;;;;;;;;;;;;;;;;;;;;; state 3 mov r4,#red mov r5,#red mov r6,#green ;G:3 - Y: - R:2,1 clr p1.4 setb p1.5 clr p1.0 clr p1.1 clr p1.2 clr p1.3 mov r3,#green lcall delay mov r6,#yellow ;G: - Y:3 - R:2,1 setb p1.4 clr p1.5 clr p1.0 clr p1.1 clr p1.2 clr p1.3 mov r3,#yellow lcall delay ljmp MAIN_LOOP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; display the number in 7segment seg_display: ;divide the number in 2 parts for each 7segment clr a mov a,r4 mov b,#10 div ab rl a rl a rl a rl a add a,b mov p3,a ;display the final result on 7segment for traffic light 1 ;;;;;;;;; clr a mov a,r5 mov b,#10 div ab rl a rl a rl a rl a add a,b mov p2,a ;display the final result on 7segment for traffic light 2 ;;;;;;;;;; clr a mov a,r6 mov b,#10 div ab rl a rl a rl a rl a add a,b mov p0,a ;display the final result on 7segment for traffic light 3 ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; making delay for time counting ;Delay delay: loop3: lcall seg_display dec r3 dec r4 dec r5 dec r6 mov r2,#8 loop2: mov r1,#250 loop1: mov r0,#250 loop0: djnz r0,loop0 djnz r1,loop1 djnz r2,loop2 cjne r3,#-1,loop3 ret END
15.92053
68
0.567804
ab11c25c0efee26516d08e08ac21d9d4ded8ba62
1,228
asm
Assembly
04/fill/Fill.asm
Giako/nand2tetris
193ad504cca558456c312c47d70713b8e2806be2
[ "Unlicense" ]
1
2021-12-31T14:47:21.000Z
2021-12-31T14:47:21.000Z
04/fill/Fill.asm
Giako/nand2tetris
193ad504cca558456c312c47d70713b8e2806be2
[ "Unlicense" ]
null
null
null
04/fill/Fill.asm
Giako/nand2tetris
193ad504cca558456c312c47d70713b8e2806be2
[ "Unlicense" ]
null
null
null
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes "black" in every pixel; // the screen should remain fully black as long as the key is pressed. // When no key is pressed, the program clears the screen, i.e. writes // "white" in every pixel; // the screen should remain fully clear as long as no key is pressed. // Check if keyboard is pressed (LOOP) @KBD D=M @BLACK D;JGT @WHITE 0;JMP // Paint it black (BLACK) @R0 M=-1 @DRAW 0;JMP // Paint it white (WHITE) @R0 M=0 @DRAW 0;JMP // Draw and loop (DRAW) // Calculate position @8191 D=A @R1 M=D (NEXT) @R1 D=M @pos M=D @SCREEN D=A @pos M=M+D // Draw @R0 D=M @pos A=M M=D // Decrement counter R1 @R1 D=M-1 M=D // Reiterate if counter >= 0 @NEXT D;JGE @LOOP 0;JMP
16.373333
72
0.548046
5ab067f51bc6f5c6aa214de4e972759c3cf68c96
8,121
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_1224.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_1224.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_1224.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 %r8 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x10ed2, %r15 clflush (%r15) nop nop nop nop dec %r14 movl $0x61626364, (%r15) nop nop nop nop mfence lea addresses_A_ht+0x15b12, %rax nop nop nop nop nop cmp %r8, %r8 mov (%rax), %bx nop nop nop nop cmp $63963, %rbx lea addresses_normal_ht+0xe212, %rdx and $58556, %r11 mov (%rdx), %ax nop nop add %rax, %rax lea addresses_UC_ht+0x2612, %rsi lea addresses_normal_ht+0x1e012, %rdi nop nop nop nop and %r15, %r15 mov $51, %rcx rep movsb nop nop nop nop xor $10760, %rax lea addresses_WC_ht+0x16ae2, %r15 nop nop cmp %rdx, %rdx movl $0x61626364, (%r15) nop nop nop and %rdi, %rdi lea addresses_D_ht+0xbc12, %rsi nop nop nop cmp %r11, %r11 movb $0x61, (%rsi) nop dec %r8 lea addresses_D_ht+0x78de, %rsi lea addresses_WC_ht+0xf212, %rdi nop nop nop dec %r14 mov $75, %rcx rep movsl nop nop nop nop and $4063, %rsi lea addresses_A_ht+0xa492, %rdx nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %r8 movq %r8, %xmm4 movups %xmm4, (%rdx) nop nop nop nop dec %r14 lea addresses_WT_ht+0x1e8e2, %rsi lea addresses_UC_ht+0x92d, %rdi nop nop add %r11, %r11 mov $49, %rcx rep movsb nop nop nop sub $50591, %rdi lea addresses_normal_ht+0x790a, %r8 nop nop nop nop add %rax, %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm7 vmovups %ymm7, (%r8) nop nop nop nop inc %rsi lea addresses_UC_ht+0x8b4b, %rdi nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm0 movups %xmm0, (%rdi) nop nop dec %rdi lea addresses_A_ht+0xa812, %rdi xor $61053, %rbx and $0xffffffffffffffc0, %rdi movaps (%rdi), %xmm5 vpextrq $1, %xmm5, %rdx nop nop nop nop sub %rbx, %rbx lea addresses_D_ht+0x912, %r15 nop nop nop nop nop sub %r14, %r14 vmovups (%r15), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0x5c12, %rdx nop nop cmp $61601, %rdi and $0xffffffffffffffc0, %rdx vmovntdqa (%rdx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r14 nop nop nop and %r11, %r11 lea addresses_WC_ht+0x14012, %r14 nop nop xor %rcx, %rcx movb (%r14), %r8b sub %r14, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbp push %rdx push %rsi // Load mov $0x459b1b0000000a12, %r8 nop nop nop nop xor %r12, %r12 mov (%r8), %esi add $1690, %rsi // Faulty Load mov $0x459b1b0000000a12, %r12 nop nop xor %rsi, %rsi mov (%r12), %bp lea oracles, %rsi and $0xff, %rbp shlq $12, %rbp mov (%rsi,%rbp,1), %rbp pop %rsi pop %rdx pop %rbp pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 9, 'AVXalign': True, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
31.355212
2,999
0.657308
b16073202231a8dc6a45cbcd8109c689e408cf1c
3,613
asm
Assembly
tools/dos/listing.asm
scientech-com-ua/case
04fcd96f47d8dc4dcb25c301bc461a5ae0b1df01
[ "BSD-2-Clause" ]
17
2015-03-02T14:27:44.000Z
2021-04-19T18:52:18.000Z
tools/dos/listing.asm
scientech-com-ua/case
04fcd96f47d8dc4dcb25c301bc461a5ae0b1df01
[ "BSD-2-Clause" ]
1
2020-06-13T19:39:50.000Z
2020-06-13T20:25:59.000Z
tools/dos/listing.asm
scientech-com-ua/case
04fcd96f47d8dc4dcb25c301bc461a5ae0b1df01
[ "BSD-2-Clause" ]
2
2016-06-13T21:48:10.000Z
2021-05-15T07:48:24.000Z
format MZ heap 0 stack 8000h entry loader:init include 'loader.inc' segment main use32 start: call get_params jnc make_listing mov esi,_usage call display_string mov ax,4C02h int 21h make_listing: call listing mov ax,4C00h int 21h error: mov esi,_error_prefix call display_string pop esi call display_string mov esi,_error_suffix call display_string mov ax,4C00h int 21h get_params: push ds mov ds,[psp_selector] mov esi,81h mov edi,params find_param: lodsb cmp al,20h je find_param cmp al,'-' je option_param cmp al,0Dh je all_params or al,al jz all_params cmp [es:input_file],0 jne get_output_file mov [es:input_file],edi jmp process_param get_output_file: cmp [es:output_file],0 jne bad_params mov [es:output_file],edi process_param: cmp al,22h je string_param copy_param: stosb lodsb cmp al,20h je param_end cmp al,0Dh je param_end or al,al jz param_end jmp copy_param string_param: lodsb cmp al,22h je string_param_end cmp al,0Dh je param_end or al,al jz param_end stosb jmp string_param option_param: lodsb cmp al,'a' je addresses_option cmp al,'A' je addresses_option cmp al,'b' je bytes_per_line_option cmp al,'B' je bytes_per_line_option invalid_option: pop ds stc ret get_option_value: xor eax,eax mov edx,eax get_option_digit: lodsb cmp al,20h je option_value_ok cmp al,0Dh je option_value_ok or al,al jz option_value_ok sub al,30h jc bad_params_value cmp al,9 ja bad_params_value imul edx,10 jo bad_params_value add edx,eax jc bad_params_value jmp get_option_digit option_value_ok: dec esi clc ret bad_params_value: stc ret bytes_per_line_option: lodsb cmp al,20h je bytes_per_line_option cmp al,0Dh je invalid_option or al,al jz invalid_option dec esi call get_option_value jc bad_params or edx,edx jz invalid_option cmp edx,1000 ja invalid_option mov [es:code_bytes_per_line],edx jmp find_param addresses_option: lodsb cmp al,20h je set_addresses_option cmp al,0Dh je set_addresses_option or al,al jnz bad_params set_addresses_option: dec esi mov [es:show_addresses],1 jmp find_param param_end: dec esi string_param_end: xor al,al stosb jmp find_param all_params: xor al,al stosb pop ds cmp [input_file],0 je bad_params cmp [output_file],0 je bad_params clc ret bad_params: stc ret include 'system.inc' include '..\listing.inc' _usage db 'listing generator for flat assembler',0Dh,0Ah db 'usage: listing <input> <output>',0Dh,0Ah db 'optional settings:',0Dh,0Ah db ' -a show target addresses for assembled code',0Dh,0Ah db ' -b <number> set the amount of bytes listed per line',0Dh,0Ah db 0 _error_prefix db 'error: ',0 _error_suffix db '.',0Dh,0Ah,0 input_file dd 0 output_file dd 0 code_bytes_per_line dd 16 show_addresses db 0 line_break db 0Dh,0Ah input dd ? assembled_code dd ? assembled_code_length dd ? code_end dd ? code_offset dd ? code_length dd ? output_handle dd ? output_buffer dd ? current_source_file dd ? current_source_line dd ? source dd ? source_length dd ? maximum_address_length dd ? address_start dd ? last_listed_address dd ? psp_selector dw ? environment_selector dw ? memory_handles_count dd ? memory_handles rd 400h params rb 1000h characters rb 100h segment buffer_segment buffer = (buffer_segment-main) shl 4 db 1000h dup ? segment stack_segment stack_bottom = (stack_segment-main) shl 4 db 4000h dup ? stack_top = stack_bottom + $
15.708696
69
0.732632
48ab9204af2c77a395e85be966311a76e52458f0
777
asm
Assembly
programs/oeis/305/A305185.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/305/A305185.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/305/A305185.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A305185: a(n) minimizes the maximum norm of elements in a complete residue system of Eisenstein integers modulo n. ; 0,1,3,4,7,12,13,19,27,28,37,48,49,61,75,76,91,108,109,127,147,148,169,192,193,217,243,244,271,300,301,331,363,364,397,432,433,469,507,508,547,588,589,631,675,676,721,768,769,817,867,868,919,972,973,1027,1083,1084,1141,1200,1201,1261,1323,1324,1387,1452,1453,1519,1587,1588,1657,1728,1729,1801,1875,1876,1951,2028,2029,2107,2187,2188,2269,2352,2353,2437,2523,2524,2611,2700,2701,2791,2883,2884,2977,3072,3073,3169,3267,3268 mov $3,$0 mov $4,$0 lpb $3 mov $0,$4 sub $3,1 sub $0,$3 mov $2,$0 mod $2,3 lpb $0 mov $5,$0 mov $0,1 mul $5,$2 mov $2,$5 sub $2,1 add $0,$2 trn $0,2 add $0,1 lpe add $1,$0 lpe mov $0,$1
31.08
424
0.662806
8acd5607e6cfc96afa1cc844fa67531941cac7e3
13,412
asm
Assembly
DE2Botv3Fall16/InterruptsExample.asm
DE5Amigos/CleanDE2Project
cde9ab3b458d45e8b3ac8fec3631e0c2597c50c5
[ "MIT" ]
null
null
null
DE2Botv3Fall16/InterruptsExample.asm
DE5Amigos/CleanDE2Project
cde9ab3b458d45e8b3ac8fec3631e0c2597c50c5
[ "MIT" ]
null
null
null
DE2Botv3Fall16/InterruptsExample.asm
DE5Amigos/CleanDE2Project
cde9ab3b458d45e8b3ac8fec3631e0c2597c50c5
[ "MIT" ]
null
null
null
; InterruptsExample.asm ; Created by Kevin Johnson ; (no copyright applied; edit freely, no attribution necessary) ; This program does basic initialization of the DE2Bot ; and provides an example of SCOMP's interrupt system. ; Section labels are for clarity only. ;*************************************************************** ;* Jump Table ;*************************************************************** ; When an interrupt occurs, execution is redirected to one of ; these addresses (depending on the interrupt source), which ; need to either contain RETI (return from interrupt) if not ; used, or a JUMP instruction to the desired interrupt service ; routine (ISR). The first location is the reset vector, and ; should be a JUMP instruction to the beginning of your normal ; code. ORG &H000 ; Jump table is located in mem 0-4 JUMP Init ; Reset vector JUMP Sonar_ISR ; Sonar interrupt JUMP CTimer_ISR ; Timer interrupt RETI ; UART interrupt (unused here) JUMP Stall_ISR ; Motor stall interrupt ;*************************************************************** ;* Initialization ;*************************************************************** Init: ; Always a good idea to make sure the robot ; stops in the event of a reset. LOAD Zero OUT LVELCMD ; Stop motors OUT RVELCMD OUT SONAREN ; Disable sonar (optional) CALL SetupI2C ; Configure the I2C to read the battery voltage CALL BattCheck ; Get battery voltage (and end if too low). OUT LCD ; Display batt voltage on LCD WaitForSafety: ; Wait for safety switch to be toggled IN XIO ; XIO contains SAFETY signal AND Mask4 ; SAFETY signal is bit 4 JPOS WaitForUser ; If ready, jump to wait for PB3 IN TIMER ; We'll use the timer value to AND Mask1 ; blink LED17 as a reminder to toggle SW17 SHIFT 8 ; Shift over to LED17 OUT XLEDS ; LED17 blinks at 2.5Hz (10Hz/4) JUMP WaitForSafety WaitForUser: ; Wait for user to press PB3 IN TIMER ; We'll blink the LEDs above PB3 AND Mask1 SHIFT 5 ; Both LEDG6 and LEDG7 STORE Temp ; (overkill, but looks nice) SHIFT 1 OR Temp OUT XLEDS IN XIO ; XIO contains KEYs AND Mask2 ; KEY3 mask (KEY0 is reset and can't be read) JPOS WaitForUser ; not ready (KEYs are active-low, hence JPOS) LOAD Zero OUT XLEDS ; clear LEDs once ready to continue ;*************************************************************** ;* Main code ;*************************************************************** Main: ; "Real" program starts here. OUT RESETPOS ; reset odometry in case wheels moved after programming ; This code (as a whole) will use Sonar0 and Sonar5 to turn ; the robot away from whichever sonar detects an object within 1ft. ; As long as a sonar remains triggered, the robot will keep turning ; away from it, effectively making it end up facing away from the ; last thing it 'saw'. Config: LOAD Zero STORE DesTheta ; reset the variables STORE TCount STORE SonCount LOADI &B100001 OUT SONAREN ; turn on sonars 0 and 5 LOADI 254 OUT SONALARM ; set alarm distance to 254mm LOADI 5 OUT CTIMER ; configure timer for 0.01*5=0.05s interrupts SEI &B1011 ; enable the desired interrupts InfLoop: ; everything will be handled by interrupts, so the main ; code just displays some values that are updated by ; the ISRs. LOAD TCount ; The timer ISR increments this at 20Hz OUT SSEG1 LOAD SonCount ; The sonar ISR increments this each warning OUT SSEG2 JUMP InfLoop ;*************************************************************** ;* Interrupt Service Routines ;*************************************************************** CTimer_ISR: ; Timer interrupt ; The timer interrupt will be used to turn the robot, ; correcting for turn rate, etc., at 20Hz. LOAD TCount ADDI 1 STORE TCount IN THETA ; get current angle STORE NowTheta ; save for later use SUB DesTheta ; subtract desired angle CALL Mod360 ; remove negative numbers ADDI -180 ; test which semicircle error is in JPOS NeedLeft ; >180 means need left turn JUMP NeedRight ; otherwise, need right turn NeedLeft: LOAD DesTheta SUB NowTheta ; get the turn error CALL Mod360 ; fix errors around 0 SUB DeadZone JNEG NoTurn ; stop moving if close ADD DeadZone ADDI -100 ; check if >100 JNEG TurnLeft LOAD Zero ; remove excess TurnLeft: ADDI 100 ; replace the 100 from before SHIFT 2 ; multiply by 4 OUT RVELCMD ; set right wheel forward XOR NegOne ADDI 1 ; negate number OUT LVELCMD ; set left wheel backwards RETI ; exit ISR NeedRight: LOAD NowTheta SUB DesTheta ; get the turn error CALL Mod360 ; fix errors around 0 SUB DeadZone JNEG NoTurn ; stop moving if close ADD DeadZone ADDI -100 ; check if >100 JNEG TurnRight LOAD Zero ; remove excess TurnRight: ADDI 100 ; replace the 100 from before SHIFT 2 ; multiply by 4 OUT LVELCMD ; set left wheel forward XOR NegOne ADDI 1 ; negate number OUT RVELCMD ; set left wheel backwards RETI ; exit ISR NoTurn: LOAD Zero OUT LVELCMD OUT RVELCMD RETI NowTheta: DW 0 DeadZone: DW 3 TCount: DW 0 Sonar_ISR: ; Sonar interrupt ; The sonar interrupt will update the "desired heading" ; variable according to which sonar caused the interrupt. LOAD SonCount ADDI 1 STORE SonCount IN SONALARM ; get the alarm register AND Mask05 ; keep only bits 0 and 5 STORE Temp JZERO NoChange ; nothing set, no turn XOR Mask05 ; check for BOTH bits set JZERO NoChange ; in which case, don't turn LOAD Temp AND Mask0 ; check for left sonar JPOS SetLeft JUMP SetRight ; only remaining possibility is right Mask05: DW &B100001 NoChange: RETI ; don't need to turn; just exit ISR SetLeft: IN THETA ; get current angle SUB TDist ; set turn distance CALL Mod360 ; calculate mod 360 STORE DesTheta ; set the desired angle RETI ; exit ISR SetRight: IN THETA ; get current angle ADD TDist ; set turn distance CALL Mod360 ; calculate mod 360 STORE DesTheta ; set the desired angle RETI ; exit ISR SonCount: DW 0 Stall_ISR: ; Motor stall interrupt RETI TDist: DW 100 DesTheta: DW 0 ;*************************************************************** ;* Subroutines ;*************************************************************** ; Subroutine to wait (block) for 1 second Wait1: OUT TIMER Wloop: IN TIMER OUT XLEDS ; User-feedback that a pause is occurring. ADDI -10 ; 1 second in 10Hz. JNEG Wloop RETURN ; Subroutine to wait the number of counts currently in AC WaitAC: STORE WaitTime OUT Timer WACLoop: IN Timer OUT XLEDS ; User-feedback that a pause is occurring. SUB WaitTime JNEG WACLoop RETURN WaitTime: DW 0 ; "local" variable. ; Converts an angle to [0,359] Mod360: JNEG M360N ; loop exit condition ADDI -360 ; start removing 360 at a time JUMP Mod360 ; keep going until negative M360N: ADDI 360 ; get back to positive JNEG M360N ; (keep adding 360 until non-negative) RETURN ; This subroutine will get the battery voltage, ; and stop program execution if it is too low. ; SetupI2C must be executed prior to this. BattCheck: CALL GetBattLvl JZERO BattCheck ; A/D hasn't had time to initialize SUB MinBatt JNEG DeadBatt ADD MinBatt ; get original value back RETURN ; If the battery is too low, we want to make ; sure that the user realizes it... DeadBatt: LOAD Four OUT BEEP ; start beep sound CALL GetBattLvl ; get the battery level OUT SSEG1 ; display it everywhere OUT SSEG2 OUT LCD LOAD Zero ADDI -1 ; 0xFFFF OUT LEDS ; all LEDs on OUT XLEDS CALL Wait1 ; 1 second Load Zero OUT BEEP ; stop beeping LOAD Zero OUT LEDS ; LEDs off OUT XLEDS CALL Wait1 ; 1 second JUMP DeadBatt ; repeat forever ; Subroutine to read the A/D (battery voltage) ; Assumes that SetupI2C has been run GetBattLvl: LOAD I2CRCmd ; 0x0190 (write 0B, read 1B, addr 0x90) OUT I2C_CMD ; to I2C_CMD OUT I2C_RDY ; start the communication CALL BlockI2C ; wait for it to finish IN I2C_DATA ; get the returned data RETURN ; Subroutine to configure the I2C for reading batt voltage ; Only needs to be done once after each reset. SetupI2C: CALL BlockI2C ; wait for idle LOAD I2CWCmd ; 0x1190 (write 1B, read 1B, addr 0x90) OUT I2C_CMD ; to I2C_CMD register LOAD Zero ; 0x0000 (A/D port 0, no increment) OUT I2C_DATA ; to I2C_DATA register OUT I2C_RDY ; start the communication CALL BlockI2C ; wait for it to finish RETURN ; Subroutine to block until I2C device is idle BlockI2C: LOAD Zero STORE Temp ; Used to check for timeout BI2CL: LOAD Temp ADDI 1 ; this will result in ~0.1s timeout STORE Temp JZERO I2CError ; Timeout occurred; error IN I2C_RDY ; Read busy signal JPOS BI2CL ; If not 0, try again RETURN ; Else return I2CError: LOAD Zero ADDI &H12C ; "I2C" OUT SSEG1 OUT SSEG2 ; display error message JUMP I2CError ;*************************************************************** ;* Variables ;*************************************************************** Temp: DW 0 ; "Temp" is not a great name, but can be useful ;*************************************************************** ;* Constants ;* (though there is nothing stopping you from writing to these) ;*************************************************************** NegOne: DW -1 Zero: DW 0 One: DW 1 Two: DW 2 Three: DW 3 Four: DW 4 Five: DW 5 Six: DW 6 Seven: DW 7 Eight: DW 8 Nine: DW 9 Ten: DW 10 ; Some bit masks. ; Masks of multiple bits can be constructed by ORing these ; 1-bit masks together. Mask0: DW &B00000001 Mask1: DW &B00000010 Mask2: DW &B00000100 Mask3: DW &B00001000 Mask4: DW &B00010000 Mask5: DW &B00100000 Mask6: DW &B01000000 Mask7: DW &B10000000 LowByte: DW &HFF ; binary 00000000 1111111 LowNibl: DW &HF ; 0000 0000 0000 1111 ; some useful movement values OneMeter: DW 961 ; ~1m in 1.05mm units HalfMeter: DW 481 ; ~0.5m in 1.05mm units TwoFeet: DW 586 ; ~2ft in 1.05mm units Deg90: DW 90 ; 90 degrees in odometry units Deg180: DW 180 ; 180 Deg270: DW 270 ; 270 Deg360: DW 360 ; can never actually happen; for math only FSlow: DW 100 ; 100 is about the lowest velocity value that will move RSlow: DW -100 FMid: DW 350 ; 350 is a medium speed RMid: DW -350 FFast: DW 500 ; 500 is almost max speed (511 is max) RFast: DW -500 MinBatt: DW 130 ; 13.0V - minimum safe battery voltage I2CWCmd: DW &H1190 ; write one i2c byte, read one byte, addr 0x90 I2CRCmd: DW &H0190 ; write nothing, read one byte, addr 0x90 ;*************************************************************** ;* IO address space map ;*************************************************************** SWITCHES: EQU &H00 ; slide switches LEDS: EQU &H01 ; red LEDs TIMER: EQU &H02 ; timer, usually running at 10 Hz XIO: EQU &H03 ; pushbuttons and some misc. inputs SSEG1: EQU &H04 ; seven-segment display (4-digits only) SSEG2: EQU &H05 ; seven-segment display (4-digits only) LCD: EQU &H06 ; primitive 4-digit LCD display XLEDS: EQU &H07 ; Green LEDs (and Red LED16+17) BEEP: EQU &H0A ; Control the beep CTIMER: EQU &H0C ; Configurable timer for interrupts LPOS: EQU &H80 ; left wheel encoder position (read only) LVEL: EQU &H82 ; current left wheel velocity (read only) LVELCMD: EQU &H83 ; left wheel velocity command (write only) RPOS: EQU &H88 ; same values for right wheel... RVEL: EQU &H8A ; ... RVELCMD: EQU &H8B ; ... I2C_CMD: EQU &H90 ; I2C module's CMD register, I2C_DATA: EQU &H91 ; ... DATA register, I2C_RDY: EQU &H92 ; ... and BUSY register UART_DAT: EQU &H98 ; UART data UART_RDY: EQU &H98 ; UART status SONAR: EQU &HA0 ; base address for more than 16 registers.... DIST0: EQU &HA8 ; the eight sonar distance readings DIST1: EQU &HA9 ; ... DIST2: EQU &HAA ; ... DIST3: EQU &HAB ; ... DIST4: EQU &HAC ; ... DIST5: EQU &HAD ; ... DIST6: EQU &HAE ; ... DIST7: EQU &HAF ; ... SONALARM: EQU &HB0 ; Write alarm distance; read alarm register SONARINT: EQU &HB1 ; Write mask for sonar interrupts SONAREN: EQU &HB2 ; register to control which sonars are enabled XPOS: EQU &HC0 ; Current X-position (read only) YPOS: EQU &HC1 ; Y-position THETA: EQU &HC2 ; Current rotational position of robot (0-359) RESETPOS: EQU &HC3 ; write anything here to reset odometry to 0
32.792176
78
0.599836
010e733a0b75c8809ccaa1338f11081830f32301
334
asm
Assembly
libsrc/_DEVELOPMENT/time/c/sccz80/tm_from_dostm.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/time/c/sccz80/tm_from_dostm.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/time/c/sccz80/tm_from_dostm.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void tm_from_dostm(struct tm *,struct dos_tm *) SECTION code_time PUBLIC tm_from_dostm EXTERN asm_tm_from_dostm tm_from_dostm: pop af pop hl pop de push de push hl push af jp asm_tm_from_dostm ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tm_from_dostm defc _tm_from_dostm = tm_from_dostm ENDIF
12.37037
49
0.739521
3a2e5bc96e9b4fa56b15e6bc1af64e7857544497
3,268
asm
Assembly
examples/multiply.asm
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
null
null
null
examples/multiply.asm
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
null
null
null
examples/multiply.asm
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
1
2022-02-06T15:46:17.000Z
2022-02-06T15:46:17.000Z
; Multiply 2 8-bit numbers together, resulting in a 16-bit product ; Memory mapped register definitions in PAGE 0 .define SPPS 0x02 ; Stack pointer page select .reset Init .origin 0x10 Init: CLR PAGE ST PAGE, SPPS LD SP, #0x0F Start: ; Multiply, putting the two numbers on to the stack LD A, #5 PSH A LD A, #10 PSH A BSR MultiplySP_Sub PUL A ; Get high byte of product PUL B ; Get low byte of product ; Multiply passing in the two numbers using a pointer (the X register) LD A, #2 ST A, multiply LD A, #0xFF ST A, multiply+1 LD X, &multiply ; load X with the pointer in memory for what want to multiply BSR MultiplyPtr_Sub STOP MultiplySP_Sub: ; [SP+3:SP+4] = [SP+3] * [SP+4] ; Use A:B as the shift left register and C as the shift right register; store partial product in SP+3:SP+4 CLR A ; High byte of shift register (A:B) is 0 LD B, SP, 3 ; Low byte of shift register is multiplier, which is at location SP+3 LD C, SP, 4 ; C is the multiplicand, at location SP+4 ST A, SP, 3 ; Clear high byte in RAM ST A, SP, 4 ; Clear low byte in RAM CLR E NextBitSP: CMP C, E ; C == 0? BEQ DoneSP ; If no more bits to multiply by then we're done RORC C ; Do we need to do an add? BCC RotateABSP ; If not then skip LD D, SP, 4 ; Else we need to do the add, low byte first ADD D, B, D ST D, SP, 4 LD D, SP, 3 ; load the intermediate product (high byte) ADC D, A, D ; Add the high byte intermidiate product with the shifted high byte of multiplicand, plus any carry bit from previous add ST D, SP, 3 ; Store high byte RotateABSP: ROLC B ; Always rotate A:B ROLC A ; Shift the MSB of B in to A BRA NextBitSP DoneSP: RTS .byte multiply 2 ; Declare variable for multiplication MultiplyPtr_Sub: ; [X:X+1] = [X] * [X+1] ; Use A:B as the shift left register and C as the shift right register; store partial sum in X:X+1 CLR A ; High byte of shift register (A:B) is 0 LD B, X, 0 ; Low byte of shift register is first number LD C, X, 1 ; C is the other number to multiply by ST A, X, 0 ; Clear high byte in RAM ST A, X, 1 ; Clear low byte in RAM CLR E NextBit: CMP C, E ; C == 0? BEQ Done ; If no more bits to multiply by then we're done RORC C ; Do we need to do an add? BCC RotateAB ; If not then skip LD D, X, 1 ; Else we need to do the add, low byte first ADD D, B, D ST D, X, 1 LD D, X, 0 ; load the intermediate sum (high byte) ADC D, A, D ; Add the high byte intermidiate sum with the shifted high byte of multiplicand, plus any carry bit from previous add ST D, X, 0 ; Store high byte RotateAB: ROLC B ; Always rotate A:B ROLC A ; Shift the MSB of B in to A BRA NextBit Done: RTS
33.690722
145
0.557528
4b5ebaa02065eaa66751eb9a12d753fc391e8ce4
8,215
asm
Assembly
main.asm
jaburns/dosdemo
549a8081d65ddce47c7d09fc71e2a7bc3369b126
[ "MIT" ]
1
2018-11-19T16:44:13.000Z
2018-11-19T16:44:13.000Z
main.asm
jaburns/dosdemo
549a8081d65ddce47c7d09fc71e2a7bc3369b126
[ "MIT" ]
null
null
null
main.asm
jaburns/dosdemo
549a8081d65ddce47c7d09fc71e2a7bc3369b126
[ "MIT" ]
null
null
null
bits 16 org 0x100 ;; ===== Initialize video and sound Init: mov ax, 0x13 ; set up video mode 13h int 0x10 mov ax, 0xA000 mov es, ax ; point ES to vram mov al, 182 out 43h, al ; set up the 8253 timer chip in al, 61h or al, 00000011b out 61h, al ; init PC speaker ;; ===== Wait for retrace, top of main loop -- Clobbers: AL, DX WaitForRetrace: mov dx, 0x03DA .waitRetrace: in al, dx test al, 0x08 ; bit 3 will be on if we're in retrace jnz .waitRetrace .endRefresh: in al, dx test al, 0x08 jz .endRefresh ;; ===== Update music -- Clobbers: AX, BX, CX, DH, SI UpdateMusic: ; assert(bh == 0) .varMusicCounter: mov dh, 1 ; labels preceded by 'var' indicate instructions that double as mutable state. .varMusicPtr: mov cx, 0 dec dh jnz .skipLoad .loadMusic: mov si, cx shr si, 1 mov bl, byte [musicData + si] jc .readLow shr bl, 4 .readLow: and bl, 0x0F jnz .notEnd mov cx, 16 mov bl, 2 ; this is the value of the first nibble in the music data loop .notEnd: inc cx shr bl, 1 mov dh, QUARTER_NOTE jnc .quarterNote add dh, QUARTER_NOTE .quarterNote: shl bl, 1 mov ax, [freqTable + bx] mov word [UpdateMusic.varCurFreq + 1], ax call PlayAX .skipLoad: cmp word [PreLoopInit.varFrameCounter + 1], INTRO_LENGTH jb .end cmp dh, QUARTER_NOTE - HIGH_OCTAVE_DURATION je .freqShift cmp dh, HALF_NOTE - HIGH_OCTAVE_DURATION je .freqShift jmp .end .freqShift: .varCurFreq: mov ax, 0 shl ax, 1 call PlayAX .end: mov word [UpdateMusic.varMusicPtr + 1], cx mov byte [UpdateMusic.varMusicCounter + 1], dh ;; ===== Set up the frame to start drawing pixel rows PreLoopInit: ; dx: unused inc word [PreLoopInit.varFrameCounter + 1] .varFrameCounter: mov ax, 0 mov cx, ax ; cx: counting up multiple of angle on each screen row (after intro) shl cx, 7 ; starting at a multiple of the time counter ax cmp ax, INTRO_LENGTH jae .afterIntro xor ax, ax ; dont twist column during intro jmp .endIntroBranch .afterIntro: test ax, 1 jz .afterBG inc byte [DrawEmpty + 1] ; update the bg color directly at the mov instruction .afterBG: xor ah, ah add al, 96 ; offset sine lookup to align properly after intro call GetSineSmooth sub ax, 128 sar ax, 1 push ax mov ax, word [PreLoopInit.varFrameCounter + 1] sub ax, INTRO_LENGTH shr ax, 1 call GetSineSmooth shr al, 1 add al, 160 - 64 mov byte [RowsLoop.varLeftOffset + 2], al pop ax .endIntroBranch: mov bh, 200 ; bh: counting down rows of screen xor di, di ; di: video memory offset, incremented in DrawStrip ;; ===== Loop over the screen pixel rows RowsLoop: ; ax <- amount to add to cx each row ; cx <- large multiple of theta ; bh <- row count ; bl <- theta add cx, ax push cx shr cx, 6 mov bl, cl pop cx .drawStrip: push ax push bx push cx push di push bx mov al, bl ; get length of first face of column in to bh call GetSine shr al, 2 mov bh, al mov al, bl ; get length of second face of column in to bl add al, 128 call GetSine shr al, 2 mov bl, al mov dl, bh ; get length of left empty region in to dh add dl, bl shr dl, 1 .varLeftOffset: sub dl, 160 neg dl xor ch, ch ; draw first empty region mov cl, dl call DrawEmpty pop dx ; draw two faces, order depending on input angle cmp dl, 128 ja .drawOrderElse call DrawChunkA call DrawChunkB jmp .drawOrderEnd .drawOrderElse: call DrawChunkB call DrawChunkA .drawOrderEnd: pop dx mov cx, 320 sub cx, di add cx, dx call DrawEmpty pop cx pop bx pop ax .drawStripEnd: dec bh jnz RowsLoop cmp word [PreLoopInit.varFrameCounter + 1], DEMO_LENGTH jb WaitForRetrace ;; ===== Restore video + sound settings and exit in al, 61h and al, 11111100b out 61h, al ; disable PC speaker mov ax, 0x03 ; return to text mode 0x03 int 0x10 mov ax, 0x4C00 ; exit with code 0 int 0x21 ;; =========================================================================== ;; Subroutines ;; =========================================================================== PlayAX: out 42h, al mov al, ah out 42h, al ret DrawEmpty: mov al, 0x00 and al, 0x1F or al, 0x80 rep stosb ret DrawChunkA: mov cl, bh mov dl, 0x10 jmp DrawColChunk DrawChunkB: mov cl, bl mov dl, 0x40 ; CL <- width of chunk ; DH <- y position of chunk ; DL <- palette offset DrawColChunk: or cl, cl jnz .notZero ret .notZero: push ax push cx push dx shr dh, 2 mov ch, cl inc ch .drawLoop: xor ah, ah mov al, cl shl ax, 4 div ch xor al, dh and al, 0x0F add al, dl stosb dec cl jnz .drawLoop pop dx pop cx pop ax ret ; AL <- theta : 0->255 map to 0->pi ; AL -> sin(theta) : 0->255 map to 0->1 GetSine: push bx push ax xor ah, ah shr al, 1 mov si, ax call .lookupTable jc .doInterpolate jmp .ret .doInterpolate: push cx xor bh, bh xor ch, ch inc si and si, 0x7f mov cl, bl call .lookupTable add bx, cx shr bx, 1 pop cx .ret: pop ax mov al, bl pop bx ret .lookupTable: push si cmp si, 64 jb .below64 sub si, 127 neg si .below64: mov bl, byte [sineTable + si] pop si ret ; AL <- theta : 0->255 map to 0->2*pi ; AL -> sin(theta) : 0->255 map to -1->1 GetSineSmooth: shl al, 1 pushf call GetSine popf jc .afterPi shr al, 1 or al, 0x80 ret .afterPi: inc al neg al shr al, 1 ret ;; =========================================================================== ;; Assembler constants, constant data, and dynamic state ;; =========================================================================== QUARTER_NOTE equ 9 HALF_NOTE equ 2 * QUARTER_NOTE HIGH_OCTAVE_DURATION equ 4 INTRO_LENGTH equ 16 * HALF_NOTE DEMO_LENGTH equ INTRO_LENGTH + 16 * 4 * 2 * QUARTER_NOTE - QUARTER_NOTE ; Music nibble bits: BCCC ; B -> When set, duration should be twice as long ; C -> Index of frequency in freqTable musicData: db 0x35,0xB3,0xB9,0x75 db 0x35,0xB3,0xDB,0x75 db 0x24,0x68,0xB2,0x6A,0x97,0x56 db 0x24,0x68,0xB2,0x6A,0x79,0x7A db 0x24,0x68,0xB2,0x6A,0x97,0x56 db 0x24,0x68,0xB2,0x6C,0xB8,0x74,0x60 sineTable: db 0x00,0x06,0x0D,0x13,0x19,0x1F,0x25,0x2C,0x32,0x38,0x3E,0x44,0x4A,0x50,0x56,0x5C db 0x62,0x67,0x6D,0x73,0x78,0x7E,0x83,0x88,0x8E,0x93,0x98,0x9D,0xA2,0xA7,0xAB,0xB0 db 0xB4,0xB9,0xBD,0xC1,0xC5,0xC9,0xCD,0xD0,0xD4,0xD7,0xDB,0xDE,0xE1,0xE4,0xE7,0xE9 db 0xEC,0xEE,0xF0,0xF2,0xF4,0xF6,0xF7,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFE freqTable: db 0xFF,0xFF dw 9662,8126,7239,6833,6449,5423 ; freqTable label is placed 1 word before the first used ; frequency, since zero is used as sentinel
25.752351
115
0.520633
080226215cd194e9abf2a6980728a8ec7e48f0a9
316
asm
Assembly
recursion.asm
Klaus073/Assembly-language
2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be
[ "BSD-2-Clause" ]
null
null
null
recursion.asm
Klaus073/Assembly-language
2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be
[ "BSD-2-Clause" ]
null
null
null
recursion.asm
Klaus073/Assembly-language
2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be
[ "BSD-2-Clause" ]
null
null
null
[org 0x0100] jmp start sum: dw 0 sum1: dw 0 add2: pop ax pop bx pop cx add ax,bx add ax,cx add word[sum1],ax ret add1: pop bx pop ax add word[sum],bx add word[sum],ax push word[sum] push bx push ax call add2 ret 4 start: mov ax,5 mov bx,4 push ax push bx call add1 mov ax, 0x4c00 int 0x21
5.745455
17
0.655063
16e907711a7cc317ae47c9c60c9e17f566181dd3
7,201
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1497.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_1497.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_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x14a37, %rsi lea addresses_D_ht+0x18a37, %rdi nop nop sub %r9, %r9 mov $39, %rcx rep movsb nop nop nop nop nop xor $27248, %rdi lea addresses_D_ht+0x16237, %r12 nop nop nop nop nop sub %rdi, %rdi movb $0x61, (%r12) nop nop and $64262, %rcx lea addresses_UC_ht+0x122b7, %r8 nop xor $42351, %rcx mov (%r8), %rdi nop nop nop nop add %r12, %r12 lea addresses_normal_ht+0x8237, %rsi lea addresses_WC_ht+0x13037, %rdi nop nop nop cmp %r15, %r15 mov $32, %rcx rep movsw nop nop dec %rsi lea addresses_WC_ht+0x1a107, %rsi lea addresses_normal_ht+0xcd77, %rdi nop xor $62571, %r12 mov $97, %rcx rep movsb nop nop nop add %r15, %r15 lea addresses_normal_ht+0x17737, %r15 nop nop nop nop nop xor %rcx, %rcx mov (%r15), %esi and $46883, %rcx lea addresses_normal_ht+0x11237, %rsi nop nop nop nop nop xor %r15, %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%rsi) nop nop nop nop and $65238, %r15 lea addresses_WT_ht+0x10617, %rsi lea addresses_WC_ht+0x2b8e, %rdi nop nop nop nop nop add $49945, %rdx mov $80, %rcx rep movsq nop nop sub %r12, %r12 lea addresses_UC_ht+0x19237, %rsi lea addresses_normal_ht+0x1d197, %rdi clflush (%rdi) nop nop nop add $50044, %r12 mov $89, %rcx rep movsw nop nop nop sub $40259, %r8 lea addresses_D_ht+0x9637, %rsi lea addresses_D_ht+0xec17, %rdi nop nop nop nop sub $5219, %rdx mov $5, %rcx rep movsq nop nop nop nop xor $49295, %rcx lea addresses_WC_ht+0x1d237, %rsi lea addresses_normal_ht+0x2137, %rdi nop nop sub %r12, %r12 mov $4, %rcx rep movsq nop nop nop nop nop xor $50125, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rax push %rcx push %rsi // Store lea addresses_WT+0x457, %rsi nop and %r8, %r8 movw $0x5152, (%rsi) nop nop nop cmp $17242, %rsi // Faulty Load lea addresses_D+0x1da37, %rcx cmp $2159, %rax movups (%rcx), %xmm5 vpextrq $1, %xmm5, %r8 lea oracles, %rsi and $0xff, %r8 shlq $12, %r8 mov (%rsi,%r8,1), %r8 pop %rsi pop %rcx pop %rax pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
34.290476
2,999
0.661714
a57f97a243d5d55e61cc6c31de85ac29e72275c8
812
asm
Assembly
programs/oeis/257/A257845.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/257/A257845.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/257/A257845.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A257845: a(n) = floor(n/5) * (n mod 5). ; 0,0,0,0,0,0,1,2,3,4,0,2,4,6,8,0,3,6,9,12,0,4,8,12,16,0,5,10,15,20,0,6,12,18,24,0,7,14,21,28,0,8,16,24,32,0,9,18,27,36,0,10,20,30,40,0,11,22,33,44,0,12,24,36,48,0,13,26,39,52,0,14,28,42,56,0,15,30,45,60,0,16,32,48,64,0,17,34,51,68,0,18,36,54,72,0,19,38,57,76,0,20,40,60,80,0,21,42,63,84,0,22,44,66,88,0,23,46,69,92,0,24,48,72,96,0,25,50,75,100,0,26,52,78,104,0,27,54,81,108,0,28,56,84,112,0,29,58,87,116,0,30,60,90,120,0,31,62,93,124,0,32,64,96,128,0,33,66,99,132,0,34,68,102,136,0,35,70,105,140,0,36,72,108,144,0,37,74,111,148,0,38,76,114,152,0,39,78,117,156,0,40,80,120,160,0,41,82,123,164,0,42,84,126,168,0,43,86,129,172,0,44,88,132,176,0,45,90,135,180,0,46,92,138,184,0,47,94,141,188,0,48,96,144,192,0,49,98,147,196 mov $1,$0 mod $1,5 sub $0,$1 mul $1,$0 div $1,5
90.222222
720
0.634236
ff80c15d48f52cbc3716ad2590d0d15a48ebc893
548
asm
Assembly
programs/oeis/181/A181532.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/181/A181532.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/181/A181532.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A181532: a(0) = 0, a(1) = 1, a(2) = 1; a(n) = a(n-1) + a(n-2) + a(n-4) ; 0,1,1,2,3,6,10,18,31,55,96,169,296,520,912,1601,2809,4930,8651,15182,26642,46754,82047,143983,252672,443409,778128,1365520,2396320,4205249,7379697,12950466,22726483,39882198,69988378,122821042,215535903 mov $3,$0 mov $5,2 lpb $5 mov $0,$3 sub $5,1 add $0,$5 trn $0,1 seq $0,274110 ; Number of equivalence classes of ballot paths of length n for the string uu. sub $0,1 mov $2,$5 mul $2,$0 add $1,$2 mov $4,$0 lpe min $3,1 mul $3,$4 sub $1,$3 mov $0,$1
24.909091
204
0.633212
ef7e8826fe3f5e576338903a3d9c9f414ca014ad
702
asm
Assembly
unittests/ASM/PrimaryGroup/1_81_05.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/PrimaryGroup/1_81_05.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/PrimaryGroup/1_81_05.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "RAX": "0x41424344E3E44748", "RBX": "0x51525354F3F3F3F4", "RCX": "0x6162636404040404", "RDX": "0x6162636465666868" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x6162636465666768 mov [rdx + 8 * 2], rax mov rax, 0x6162636465666768 mov [rdx + 8 * 3], rax sub word [rdx + 8 * 0 + 2], 0x6162 sub dword [rdx + 8 * 1 + 0], 0x61626364 sub qword [rdx + 8 * 2 + 0], 0x61626364 sub qword [rdx + 8 * 3 + 0], -256 mov rax, [rdx + 8 * 0] mov rbx, [rdx + 8 * 1] mov rcx, [rdx + 8 * 2] mov rdx, [rdx + 8 * 3] hlt
18.972973
39
0.60114
142a5af45208b83ea7bd76bd7ff2e085d5a735b2
858
asm
Assembly
test/asm/local-truncated.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
265
2020-09-15T11:56:31.000Z
2022-03-30T23:14:29.000Z
test/asm/local-truncated.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
365
2020-09-18T15:43:06.000Z
2022-03-28T16:22:26.000Z
test/asm/local-truncated.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
45
2020-09-16T10:44:57.000Z
2022-03-29T07:26:15.000Z
SECTION "Test", ROM0 MACRO a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 println "truncated :(" ENDM a012: a012.local a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012: a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012.local
71.5
264
0.965035
03136f12079611ba529c1a09dddf6670104c4cc4
1,409
asm
Assembly
programs/oeis/267/A267896.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/267/A267896.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/267/A267896.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A267896: a(n) = (Prime(n+1)^2 - Prime(n)^2) / 8. ; 2,3,9,6,15,9,21,39,15,51,39,21,45,75,84,30,96,69,36,114,81,129,186,99,51,105,54,111,420,129,201,69,360,75,231,240,165,255,264,90,465,96,195,99,615,651,225,114,231,354,120,615,381,390,399,135,411,279,141,720,1050,309,156,315,1134,501,855,174,351,534,726,555,564,381,579,786,399,810,1035,210,1065,216,654,441,669,906,459,231,465,1419,966,489,990,501,759,1545,261,2394,816,1380,840,849,285,861,1455,885,894,300,906,915,615,309,1875,1590,321,645,975,984,330,2001,675,1020,1374,1740,1410,1785,1446,1095,1104,741,1494,1131,759,1530,771,2730,1980,2409,405,2040,411,825,414,2085,2961,855,429,861,3045,879,441,885,4485,909,1830,2310,1866,939,1416,1425,3360,969,1461,1470,1974,1491,3009,1011,1524,510,2565,516,1554,2610,525,2640,531,1599,4851,1089,546,1095,1650,1659,2226,1680,1689,6270,576,2895,2334,2940,1776,1785,2394,3621,1215,1830,1839,615,1851,3729,3135,5706,639,1281,1929,645,1941,1299,651,1305,3939,660,1986,11424,2046,2055,2754,6255,3510,4956,1425,714,1431,2154,2886,1449,726,2184,4395,3690,741,1485,744,1491,2244,4515,4551,3054,4611,2319,1551,2334,3126,1569,3150,1581,5565,1599 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 cal $0,74367 ; (p^2-5)/4 for odd primes p. mov $2,$3 mov $4,$0 div $4,2 mul $4,4 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe div $1,4 mul $1,2 sub $1,4 div $1,2 add $1,2
48.586207
1,079
0.702626
29b2bef2c4b79e39239fd143d8171e14125554ea
340
asm
Assembly
oeis/194/A194599.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/194/A194599.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/194/A194599.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A194599: Units' digits of the nonzero hexagonal numbers. ; Submitted by Christian Krause ; 1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0,1,6,5,8,5,6,1,0,3,0 add $0,2 pow $0,2 sub $0,1 mul $0,7 mod $0,10
34
201
0.582353
5c43ba18f54fa7988feb5f1c2416cc80fdf16942
6,976
asm
Assembly
codec/encoder/core/asm/mc_chroma.asm
TechSmith/openh264
5d616714c4cdd30287e2c6a8aa485c2fc6c68b84
[ "BSD-2-Clause" ]
1
2016-12-06T07:56:36.000Z
2016-12-06T07:56:36.000Z
codec/encoder/core/asm/mc_chroma.asm
3990995/openh264
f2aa3c75ae8a3d41ef85be739752d3f189c7eea3
[ "BSD-2-Clause" ]
null
null
null
codec/encoder/core/asm/mc_chroma.asm
3990995/openh264
f2aa3c75ae8a3d41ef85be739752d3f189c7eea3
[ "BSD-2-Clause" ]
null
null
null
;*! ;* \copy ;* Copyright (c) 2004-2013, Cisco Systems ;* All rights reserved. ;* ;* Redistribution and use in source and binary forms, with or without ;* modification, are permitted provided that the following conditions ;* are met: ;* ;* * Redistributions of source code must retain the above copyright ;* notice, this list of conditions and the following disclaimer. ;* ;* * Redistributions in binary form must reproduce the above copyright ;* notice, this list of conditions and the following disclaimer in ;* the documentation and/or other materials provided with the ;* distribution. ;* ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS ;* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ;* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, ;* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ;* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ;* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ;* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ;* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ;* POSSIBILITY OF SUCH DAMAGE. ;* ;* ;* mc_chroma.asm ;* ;* Abstract ;* mmx motion compensation for chroma ;* ;* History ;* 10/13/2004 Created ;* ;* ;*************************************************************************/ %include "asm_inc.asm" BITS 32 ;*********************************************************************** ; Local Data (Read Only) ;*********************************************************************** SECTION .rodata align=16 ;*********************************************************************** ; Various memory constants (trigonometric values or rounding values) ;*********************************************************************** ALIGN 16 h264_d0x20_sse2: dw 32,32,32,32,32,32,32,32 ALIGN 16 h264_d0x20_mmx: dw 32,32,32,32 ;============================================================================= ; Code ;============================================================================= SECTION .text ALIGN 16 ;******************************************************************************* ; void McChromaWidthEq4_mmx( uint8_t *src, ; int32_t iSrcStride, ; uint8_t *pDst, ; int32_t iDstStride, ; uint8_t *pABCD, ; int32_t iHeigh ); ;******************************************************************************* WELS_EXTERN McChromaWidthEq4_mmx McChromaWidthEq4_mmx: push esi push edi push ebx mov eax, [esp +12 + 20] movd mm3, [eax] WELS_Zero mm7 punpcklbw mm3, mm3 movq mm4, mm3 punpcklwd mm3, mm3 punpckhwd mm4, mm4 movq mm5, mm3 punpcklbw mm3, mm7 punpckhbw mm5, mm7 movq mm6, mm4 punpcklbw mm4, mm7 punpckhbw mm6, mm7 mov esi, [esp +12+ 4] mov eax, [esp + 12 + 8] mov edi, [esp + 12 + 12] mov edx, [esp + 12 + 16] mov ecx, [esp + 12 + 24] lea ebx, [esi + eax] movd mm0, [esi] movd mm1, [esi+1] punpcklbw mm0, mm7 punpcklbw mm1, mm7 .xloop: pmullw mm0, mm3 pmullw mm1, mm5 paddw mm0, mm1 movd mm1, [ebx] punpcklbw mm1, mm7 movq mm2, mm1 pmullw mm1, mm4 paddw mm0, mm1 movd mm1, [ebx+1] punpcklbw mm1, mm7 movq mm7, mm1 pmullw mm1,mm6 paddw mm0, mm1 movq mm1,mm7 paddw mm0, [h264_d0x20_mmx] psrlw mm0, 6 WELS_Zero mm7 packuswb mm0, mm7 movd [edi], mm0 movq mm0, mm2 lea edi, [edi +edx ] lea ebx, [ebx + eax] dec ecx jnz near .xloop WELSEMMS pop ebx pop edi pop esi ret ALIGN 16 ;******************************************************************************* ; void McChromaWidthEq8_sse2( uint8_t *pSrc, ; int32_t iSrcStride, ; uint8_t *pDst, ; int32_t iDstStride, ; uint8_t *pABCD, ; int32_t iheigh ); ;******************************************************************************* WELS_EXTERN McChromaWidthEq8_sse2 McChromaWidthEq8_sse2: push esi push edi push ebx mov eax, [esp +12 + 20] movd xmm3, [eax] WELS_Zero xmm7 punpcklbw xmm3, xmm3 punpcklwd xmm3, xmm3 movdqa xmm4, xmm3 punpckldq xmm3, xmm3 punpckhdq xmm4, xmm4 movdqa xmm5, xmm3 movdqa xmm6, xmm4 punpcklbw xmm3, xmm7 punpckhbw xmm5, xmm7 punpcklbw xmm4, xmm7 punpckhbw xmm6, xmm7 mov esi, [esp +12+ 4] mov eax, [esp + 12 + 8] mov edi, [esp + 12 + 12] mov edx, [esp + 12 + 16] mov ecx, [esp + 12 + 24] lea ebx, [esi + eax] movq xmm0, [esi] movq xmm1, [esi+1] punpcklbw xmm0, xmm7 punpcklbw xmm1, xmm7 .xloop: pmullw xmm0, xmm3 pmullw xmm1, xmm5 paddw xmm0, xmm1 movq xmm1, [ebx] punpcklbw xmm1, xmm7 movdqa xmm2, xmm1 pmullw xmm1, xmm4 paddw xmm0, xmm1 movq xmm1, [ebx+1] punpcklbw xmm1, xmm7 movdqa xmm7, xmm1 pmullw xmm1, xmm6 paddw xmm0, xmm1 movdqa xmm1,xmm7 paddw xmm0, [h264_d0x20_sse2] psrlw xmm0, 6 WELS_Zero xmm7 packuswb xmm0, xmm7 movq [edi], xmm0 movdqa xmm0, xmm2 lea edi, [edi +edx ] lea ebx, [ebx + eax] dec ecx jnz near .xloop pop ebx pop edi pop esi ret ALIGN 16 ;*********************************************************************** ; void McChromaWidthEq8_ssse3( uint8_t *pSrc, ; int32_t iSrcStride, ; uint8_t *pDst, ; int32_t iDstStride, ; uint8_t *pABCD, ; int32_t iHeigh); ;*********************************************************************** WELS_EXTERN McChromaWidthEq8_ssse3 McChromaWidthEq8_ssse3: push ebx push esi push edi mov eax, [esp + 12 + 20] pxor xmm7, xmm7 movd xmm5, [eax] punpcklwd xmm5, xmm5 punpckldq xmm5, xmm5 movdqa xmm6, xmm5 punpcklqdq xmm5, xmm5 punpckhqdq xmm6, xmm6 mov eax, [esp + 12 + 4] mov edx, [esp + 12 + 8] mov esi, [esp + 12 + 12] mov edi, [esp + 12 + 16] mov ecx, [esp + 12 + 24] sub esi, edi sub esi, edi movdqa xmm7, [h264_d0x20_sse2] movdqu xmm0, [eax] movdqa xmm1, xmm0 psrldq xmm1, 1 punpcklbw xmm0, xmm1 .hloop_chroma: lea esi, [esi+2*edi] movdqu xmm2, [eax+edx] movdqa xmm3, xmm2 psrldq xmm3, 1 punpcklbw xmm2, xmm3 movdqa xmm4, xmm2 pmaddubsw xmm0, xmm5 pmaddubsw xmm2, xmm6 paddw xmm0, xmm2 paddw xmm0, xmm7 psrlw xmm0, 6 packuswb xmm0, xmm0 movq [esi],xmm0 lea eax, [eax+2*edx] movdqu xmm2, [eax] movdqa xmm3, xmm2 psrldq xmm3, 1 punpcklbw xmm2, xmm3 movdqa xmm0, xmm2 pmaddubsw xmm4, xmm5 pmaddubsw xmm2, xmm6 paddw xmm4, xmm2 paddw xmm4, xmm7 psrlw xmm4, 6 packuswb xmm4, xmm4 movq [esi+edi],xmm4 sub ecx, 2 jnz .hloop_chroma pop edi pop esi pop ebx ret
21.937107
80
0.559633
3a294275779f56d03d9038d114c6eb42e380a63b
617
asm
Assembly
src/test/ref/modglobalmin.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/modglobalmin.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/modglobalmin.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Commodore 64 PRG executable file .file [name="modglobalmin.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label SCREEN = $400 .segment Code main: { // inccnt() ldx #0 jsr inccnt // SCREEN[0]=cnt++ stx SCREEN // SCREEN[0]=cnt++; inx // inccnt() jsr inccnt // SCREEN[1]=++cnt; inx // SCREEN[1]=++cnt stx SCREEN+1 // } rts } inccnt: { // ++cnt; inx // } rts }
18.147059
63
0.581848
a07344e8f212d9cf3eddf5705169affd6e75fd2a
6,260
asm
Assembly
Transynther/x86/_processed/US/_st_zr_4k_/i7-7700_9_0x48.log_17634_2784.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_st_zr_4k_/i7-7700_9_0x48.log_17634_2784.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_st_zr_4k_/i7-7700_9_0x48.log_17634_2784.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 %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1e7ae, %r12 nop nop nop nop nop add %r15, %r15 mov (%r12), %r13w nop nop nop nop xor $23345, %r10 lea addresses_WT_ht+0x3fbe, %rsi lea addresses_A_ht+0xc66, %rdi nop nop nop nop sub %r12, %r12 mov $96, %rcx rep movsl nop nop nop nop nop inc %r10 lea addresses_WC_ht+0x10fce, %r13 nop nop sub $1607, %rsi movups (%r13), %xmm3 vpextrq $1, %xmm3, %rdi nop nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x14002, %rsi lea addresses_WT_ht+0x27be, %rdi clflush (%rsi) nop nop nop inc %rdx mov $82, %rcx rep movsw inc %rdi lea addresses_normal_ht+0x1c159, %rdx nop inc %r10 mov (%rdx), %r13 nop nop nop nop nop add $65208, %r10 lea addresses_UC_ht+0x1923a, %r15 nop nop nop cmp %rdx, %rdx movb $0x61, (%r15) xor $10746, %r13 lea addresses_UC_ht+0x187be, %rsi lea addresses_UC_ht+0x1abbe, %rdi nop nop nop nop nop sub $61025, %r12 mov $66, %rcx rep movsb nop and $37885, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r8 push %rax push %rbx // Store lea addresses_PSE+0x3fbe, %r12 clflush (%r12) nop nop cmp %rax, %rax movw $0x5152, (%r12) nop nop nop cmp %r12, %r12 // Load lea addresses_normal+0x3fd4, %r11 nop nop nop add $22928, %rax vmovups (%r11), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r10 nop cmp %r12, %r12 // Faulty Load lea addresses_US+0x12fbe, %r12 nop nop cmp %r13, %r13 movb (%r12), %al lea oracles, %r8 and $0xff, %rax shlq $12, %rax mov (%r8,%rax,1), %rax pop %rbx pop %rax pop %r8 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, '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_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'52': 17591, '00': 43} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
36.823529
2,999
0.658147
6459ec3ab695d82fd682734a9836ef28fe556d89
109,665
asm
Assembly
non_regression/other_x86_linux_13.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
non_regression/other_x86_linux_13.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
non_regression/other_x86_linux_13.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
.file "deflate.c" .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat .hidden __x86.get_pc_thunk.bx .globl __x86.get_pc_thunk.bx .type __x86.get_pc_thunk.bx, @function __x86.get_pc_thunk.bx: movl (%esp), %ebx ret # ---------------------- .section .rodata .align 32 .globl deflate_copyright .type deflate_copyright, @object deflate_copyright: .string " deflate 1.2.8 Copyright 1995-2013 Jean-loup Gailly and Mark Adler " .size deflate_copyright, 68 # ---------------------- .section .data.rel.ro.local,"wa",@progbits .local configuration_table .type configuration_table, @object configuration_table: .zero 8 .long deflate_stored .long 262148 .long 262152 .long deflate_fast .long 327684 .long 524304 .long deflate_fast .long 393220 .long 2097184 .long deflate_fast .long 262148 .long 1048592 .long deflate_slow .long 1048584 .long 2097184 .long deflate_slow .long 1048584 .long 8388736 .long deflate_slow .long 2097160 .long 16777344 .long deflate_slow .long 8388640 .long 67109122 .long deflate_slow .long 16908320 .long 268435714 .long deflate_slow .size configuration_table, 120 # ---------------------- .text .local longest_match .type longest_match, @function longest_match: pushl %ebp pushl %edi movl %eax, %edi pushl %esi subl $44, %esp movl 108(%eax), %ecx movl 56(%eax), %esi movl %edx, (%esp) movl 124(%eax), %ebp movl %eax, 24(%esp) movl 120(%eax), %eax movl %ecx, %edx addl %esi, %ecx movl %ecx, 28(%esp) movl 144(%edi), %ecx movl 44(%edi), %edi movl %eax, 16(%esp) movl $0, 4(%esp) movl %ecx, 32(%esp) leal -262(%edi), %ecx cmpl %ecx, %edx jbe .L00000056 .L00000046: movl %edx, %ecx addl $262, %ecx movl %ecx, 4(%esp) subl %edi, 4(%esp) .L00000056: movl 24(%esp), %edi movl 64(%edi), %ecx movl %ecx, 8(%esp) movl 52(%edi), %ecx movl 28(%esp), %edi movl %ecx, 12(%esp) leal 258(%esi,%edx), %ecx movzbl -1(%edi,%eax), %edx movl %ecx, 40(%esp) movl 16(%esp), %ecx movb %dl, 22(%esp) movzbl (%edi,%eax), %edx movl %ebp, %edi shrl $2, %edi movb %dl, 21(%esp) movl 24(%esp), %edx cmpl 140(%edx), %eax movl 116(%edx), %eax cmovae %edi, %ebp movl 32(%esp), %edi movl %eax, 36(%esp) cmpl %eax, %edi cmova %eax, %edi movl %edi, 32(%esp) jmp .L000000DD .L000000B4: .p2align 3 .L000000B8: movl (%esp), %edx movl 8(%esp), %eax andl 12(%esp), %edx movzwl (%eax,%edx,2), %eax cmpl %eax, 4(%esp) movl %eax, (%esp) jae .L000001F0 .L000000D4: subl $1, %ebp je .L000001F0 .L000000DD: movl (%esp), %eax movl %ecx, %edi addl %esi, %eax movzbl (%eax,%ecx), %edx cmpb 21(%esp), %dl movb %dl, 16(%esp) jne .L000000B8 .L000000F2: movzbl -1(%eax,%ecx), %edx cmpb 22(%esp), %dl movb %dl, 23(%esp) jne .L000000B8 .L00000101: movl 28(%esp), %edx movzbl (%edx), %edx cmpb %dl, (%eax) jne .L000000B8 .L0000010C: movl 28(%esp), %edx movzbl 1(%edx), %edx cmpb %dl, 1(%eax) jne .L000000B8 .L00000119: movl 28(%esp), %edi addl $2, %edi movl %edi, %edx leal 2(%eax), %edi movl %edx, %eax jmp .L00000191 .L00000129: .p2align 4 .L00000130: movzbl 2(%edi), %edx cmpb %dl, 2(%eax) jne .L00000241 .L0000013D: movzbl 3(%edi), %edx cmpb %dl, 3(%eax) jne .L00000239 .L0000014A: movzbl 4(%edi), %edx cmpb %dl, 4(%eax) jne .L00000231 .L00000157: movzbl 5(%edi), %edx cmpb %dl, 5(%eax) jne .L00000229 .L00000164: movzbl 6(%edi), %edx cmpb %dl, 6(%eax) jne .L00000221 .L00000171: movzbl 7(%edi), %edx cmpb %dl, 7(%eax) jne .L00000219 .L0000017E: addl $8, %edi addl $8, %eax movzbl (%edi), %edx cmpb %dl, (%eax) jne .L0000019D .L0000018B: cmpl %eax, 40(%esp) jbe .L0000019D .L00000191: movzbl 1(%edi), %edx cmpb %dl, 1(%eax) je .L00000130 .L0000019A: addl $1, %eax .L0000019D: movl 40(%esp), %edx subl %edx, %eax leal 258(%eax), %edi movl %edx, %eax subl $258, %eax cmpl %edi, %ecx movl %eax, 28(%esp) jge .L00000200 .L000001B8: movl 24(%esp), %eax movl (%esp), %ecx cmpl %edi, 32(%esp) movl %ecx, 112(%eax) jle .L000001F0 .L000001C8: movl 28(%esp), %eax movl %edi, %ecx movzbl -1(%eax,%edi), %eax movb %al, 22(%esp) movl 40(%esp), %eax movzbl -258(%eax,%edi), %eax movb %al, 21(%esp) jmp .L000000B8 .L000001EC: .p2align 3 .L000001F0: movl 36(%esp), %eax cmpl %eax, %edi cmovbe %edi, %eax addl $44, %esp popl %esi popl %edi popl %ebp ret .L00000200: movzbl 16(%esp), %eax movl %ecx, %edi movb %al, 21(%esp) movzbl 23(%esp), %eax movb %al, 22(%esp) jmp .L000000B8 .L00000219: addl $7, %eax jmp .L0000019D .L00000221: addl $6, %eax jmp .L0000019D .L00000229: addl $5, %eax jmp .L0000019D .L00000231: addl $4, %eax jmp .L0000019D .L00000239: addl $3, %eax jmp .L0000019D .L00000241: addl $2, %eax jmp .L0000019D .size longest_match, .-longest_match # ---------------------- .L00000249: .p2align 4 # ---------------------- .local fill_window .type fill_window, @function fill_window: pushl %ebp movl %eax, %ebp pushl %edi pushl %esi pushl %ebx subl $60, %esp movl 44(%eax), %eax call __x86.get_pc_thunk.bx .L00000261: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 116(%ebp), %ecx leal (%eax,%eax), %esi movl %eax, %edx movl %eax, 40(%esp) subl $262, %eax movl %esi, 44(%esp) movl %eax, 36(%esp) .L00000280: movl 60(%ebp), %edi movl 108(%ebp), %eax addl 36(%esp), %edx subl %ecx, %edi subl %eax, %edi cmpl %edx, %eax jae .L00000408 .L00000296: movl (%ebp), %esi movl 4(%esi), %ecx testl %ecx, %ecx movl %ecx, 12(%esp) je .L000004B8 .L000002A8: movl 56(%ebp), %edx cmpl 12(%esp), %edi movl %edx, 16(%esp) movl 116(%ebp), %edx jae .L000003B8 .L000002BC: testl %edi, %edi jne .L00000584 .L000002C4: xorl %eax, %eax .L000002C6: movl 5812(%ebp), %esi addl %edx, %eax movl %eax, 20(%esp) movl %eax, 116(%ebp) addl %esi, %eax cmpl $2, %eax jbe .L0000038D .L000002E0: movl 108(%ebp), %edx movl 56(%ebp), %eax movl 88(%ebp), %edi movl %esi, 16(%esp) subl %esi, %edx movl %eax, %ecx movl %edi, 24(%esp) movl 84(%ebp), %edi movl %eax, 32(%esp) movzbl (%eax,%edx), %eax movl %edx, 12(%esp) movl %edi, 28(%esp) movl %eax, 72(%ebp) movzbl 1(%ecx,%edx), %edi movzbl 24(%esp), %ecx sall %cl, %eax xorl %eax, %edi andl 28(%esp), %edi movl %edi, 72(%ebp) jmp .L00000385 .L00000322: .p2align 3 .L00000328: movl 12(%esp), %esi movl 32(%esp), %edx movzbl 24(%esp), %ecx movl 68(%ebp), %eax movzbl 2(%edx,%esi), %edx sall %cl, %edi movl 64(%ebp), %ecx xorl %edi, %edx movl 52(%ebp), %edi andl 28(%esp), %edx leal (%eax,%edx,2), %eax andl %esi, %edi movzwl (%eax), %esi movl %edx, 72(%ebp) movw %si, (%ecx,%edi,2) movzwl 12(%esp), %ecx movl 16(%esp), %esi addl $1, 12(%esp) movw %cx, (%eax) movl 20(%esp), %eax subl $1, %esi movl %esi, 5812(%ebp) addl %esi, %eax cmpl $2, %eax jbe .L0000038D .L0000037F: movl %edx, %edi movl %esi, 16(%esp) .L00000385: movl 16(%esp), %edx testl %edx, %edx jne .L00000328 .L0000038D: cmpl $261, 20(%esp) ja .L000004B8 .L0000039B: movl (%ebp), %eax movl 4(%eax), %eax testl %eax, %eax je .L000004B8 .L000003A9: movl 44(%ebp), %edx movl 20(%esp), %ecx jmp .L00000280 .L000003B5: .p2align 3 .L000003B8: xorl %ecx, %ecx .L000003BA: movl 16(%esp), %edi addl %edx, %eax movl 12(%esp), %edx movl %ecx, 4(%esi) addl %eax, %edi movl (%esi), %eax movl %edx, 8(%esp) movl %edi, (%esp) movl %eax, 4(%esp) call memcpy@PLT .L000003DB: movl 28(%esi), %eax movl 24(%eax), %eax cmpl $1, %eax je .L00000508 .L000003EA: cmpl $2, %eax je .L00000527 .L000003F3: movl 12(%esp), %eax addl %eax, (%esi) addl %eax, 8(%esi) movl 116(%ebp), %edx jmp .L000002C6 .L00000404: .p2align 3 .L00000408: movl 40(%esp), %esi movl 56(%ebp), %eax movl %esi, 8(%esp) leal (%eax,%esi), %edx movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00000422: movl 108(%ebp), %eax movl 76(%ebp), %edx subl %esi, 112(%ebp) subl %esi, 92(%ebp) movl %eax, 12(%esp) subl %esi, 12(%esp) movl 12(%esp), %eax movl %edi, 16(%esp) movl %eax, 108(%ebp) movl 68(%ebp), %eax leal (%eax,%edx,2), %eax .p2align 3 .L00000448: subl $2, %eax movzwl (%eax), %ecx movl %ecx, %edi subl %esi, %edi cmpl %ecx, %esi movl $0, %ecx cmova %ecx, %edi subl $1, %edx movw %di, (%eax) jne .L00000448 .L00000464: movl 40(%esp), %esi movl 44(%esp), %eax addl 64(%ebp), %eax movl %esi, %edx .p2align 3 .L00000478: subl $2, %eax movzwl (%eax), %ecx movl %ecx, %edi subl %esi, %edi cmpl %ecx, %esi movl $0, %ecx cmova %ecx, %edi subl $1, %edx movw %di, (%eax) jne .L00000478 .L00000494: movl (%ebp), %esi movl 16(%esp), %edi addl 40(%esp), %edi movl 12(%esp), %eax movl 4(%esi), %ecx testl %ecx, %ecx movl %ecx, 12(%esp) jne .L000002A8 .L000004B2: .p2align 3 .L000004B8: movl 5824(%ebp), %eax movl 60(%ebp), %edx cmpl %edx, %eax jae .L00000500 .L000004C5: movl 116(%ebp), %esi addl 108(%ebp), %esi cmpl %esi, %eax jae .L00000546 .L000004CF: movl 56(%ebp), %eax subl %esi, %edx movl $258, %edi cmpl $258, %edx cmovbe %edx, %edi movl %edi, 8(%esp) addl %esi, %eax addl %edi, %esi movl $0, 4(%esp) movl %eax, (%esp) call memset@PLT .L000004FA: movl %esi, 5824(%ebp) .L00000500: addl $60, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00000508: movl 12(%esp), %eax movl %edi, 4(%esp) movl %eax, 8(%esp) movl 48(%esi), %eax movl %eax, (%esp) call adler32@PLT .L0000051F: movl %eax, 48(%esi) jmp .L000003F3 .L00000527: movl 12(%esp), %eax movl %edi, 4(%esp) movl %eax, 8(%esp) movl 48(%esi), %eax movl %eax, (%esp) call crc32@PLT .L0000053E: movl %eax, 48(%esi) jmp .L000003F3 .L00000546: leal 258(%esi), %ecx cmpl %ecx, %eax jae .L00000500 .L00000550: subl %eax, %esi subl %eax, %edx addl $258, %esi cmpl %edx, %esi cmova %edx, %esi addl 56(%ebp), %eax movl %esi, 8(%esp) movl $0, 4(%esp) movl %eax, (%esp) call memset@PLT .L00000576: addl %esi, 5824(%ebp) addl $60, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00000584: movl 12(%esp), %ecx movl %edi, 12(%esp) subl %edi, %ecx jmp .L000003BA .size fill_window, .-fill_window # ---------------------- .L00000593: .p2align 4 # ---------------------- .local deflate_fast .type deflate_fast, @function deflate_fast: pushl %ebp pushl %edi pushl %esi pushl %ebx call __x86.get_pc_thunk.bx .L000005A9: addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $76, %esp movl 96(%esp), %ebp .L000005B6: movl 116(%ebp), %edi .p2align 4 .L000005C0: cmpl $261, %edi jbe .L000008A0 .L000005CC: movl 108(%ebp), %esi movl 56(%ebp), %eax movl 88(%ebp), %ecx movl 72(%ebp), %edx movl 52(%ebp), %edi movzbl 2(%eax,%esi), %eax sall %cl, %edx movl 64(%ebp), %ecx andl %esi, %edi xorl %edx, %eax movl 68(%ebp), %edx andl 84(%ebp), %eax movl %eax, 72(%ebp) leal (%edx,%eax,2), %eax movzwl (%eax), %edx testl %edx, %edx movw %dx, (%ecx,%edi,2) movw %si, (%eax) je .L00000617 .L00000603: movl 44(%ebp), %eax movl %esi, %ecx subl %edx, %ecx subl $262, %eax cmpl %eax, %ecx jbe .L000008F8 .L00000617: movl 96(%ebp), %eax .L0000061A: cmpl $2, %eax jbe .L00000800 .L00000623: movl 5792(%ebp), %edx subl $3, %eax movl 5796(%ebp), %ecx subw 112(%ebp), %si leal 1(%edx), %edi movw %si, (%ecx,%edx,2) movl 5784(%ebp), %ecx subl $1, %esi movl %edi, 5792(%ebp) movb %al, (%ecx,%edx) movzbl %al, %eax movzbl _length_code@GOTOFF(%ebx,%eax), %eax addw $1, 1176(%ebp,%eax,4) cmpw $255, %si ja .L000008E0 .L0000066E: movzwl %si, %esi movzbl _dist_code@GOTOFF(%ebx,%esi), %eax .L00000679: addw $1, 2440(%ebp,%eax,4) movl 5788(%ebp), %eax movl 116(%ebp), %ecx subl $1, %eax cmpl %eax, 5792(%ebp) movl %ecx, 24(%esp) sete %al movzbl %al, %eax movl %eax, 28(%esp) movl 96(%ebp), %eax subl %eax, 24(%esp) movl 24(%esp), %edi cmpl 128(%ebp), %eax movl %eax, 56(%esp) movl %edi, 116(%ebp) ja .L00000868 .L000006C0: cmpl $2, %edi jbe .L00000868 .L000006C9: movl 64(%ebp), %ecx leal -1(%eax), %esi movl 108(%ebp), %eax movl %esi, 96(%ebp) movl 72(%ebp), %edi movl %esi, 20(%esp) movl %ecx, 32(%esp) movl 52(%ebp), %ecx movl %eax, 60(%esp) leal 1(%eax), %edx movl %ebp, %eax movl %ebp, 96(%esp) movl %ecx, 36(%esp) movl 68(%ebp), %ecx movl %ecx, 40(%esp) movl 56(%ebp), %ecx movl %ecx, 44(%esp) movl 88(%ebp), %ecx movl %ecx, 48(%esp) movl 84(%ebp), %ecx movl %ecx, 52(%esp) jmp .L00000722 .L00000712: .p2align 3 .L00000718: movl %eax, %edi movl 96(%esp), %eax movl %esi, 20(%esp) .L00000722: movl %edx, 108(%eax) movl 44(%esp), %eax movzbl 48(%esp), %ecx movl 32(%esp), %esi movzbl 2(%eax,%edx), %eax sall %cl, %edi movl 96(%esp), %ecx xorl %edi, %eax movl 36(%esp), %edi andl 52(%esp), %eax movl %eax, 72(%ecx) movl 40(%esp), %ecx andl %edx, %edi leal (%ecx,%eax,2), %ecx movzwl (%ecx), %ebp movw %bp, (%esi,%edi,2) movl 20(%esp), %esi movl 96(%esp), %edi movw %dx, (%ecx) addl $1, %edx subl $1, %esi testl %esi, %esi movl %esi, 96(%edi) jne .L00000718 .L00000772: movl 60(%esp), %edx movl %edi, %ebp addl 56(%esp), %edx movl %edx, 108(%edi) movl 24(%esp), %edi .p2align 3 .L00000788: movl 28(%esp), %eax testl %eax, %eax je .L000005C0 .L00000794: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L000007A4 .L0000079F: addl 56(%ebp), %eax movl %eax, %ecx .L000007A4: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L000007BC: movl (%ebp), %esi movl 108(%ebp), %eax movl 28(%esi), %edi movl %eax, 92(%ebp) movl %edi, (%esp) call _tr_flush_bits .L000007D0: movl 20(%edi), %eax movl 16(%esi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L0000090A .L000007E3: movl (%ebp), %eax movl 16(%eax), %esi testl %esi, %esi jne .L000005B6 .L000007F1: addl $76, %esp xorl %eax, %eax popl %ebx popl %esi popl %edi popl %ebp ret .L000007FB: .p2align 3 .L00000800: movl 56(%ebp), %eax movl 5796(%ebp), %ecx movzbl (%eax,%esi), %edx xorl %esi, %esi movl 5792(%ebp), %eax movw %si, (%ecx,%eax,2) movl 5784(%ebp), %ecx leal 1(%eax), %esi movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) addw $1, 148(%ebp,%edx,4) movl 5788(%ebp), %eax subl $1, %eax cmpl %eax, 5792(%ebp) sete %al movzbl %al, %eax movl %eax, 28(%esp) movl 116(%ebp), %eax leal -1(%eax), %edi movl 108(%ebp), %eax movl %edi, 116(%ebp) leal 1(%eax), %edx movl %edx, 108(%ebp) jmp .L00000788 .L00000864: .p2align 3 .L00000868: movl 56(%ebp), %eax movl 56(%esp), %edx addl 108(%ebp), %edx movl $0, 96(%ebp) movl 88(%ebp), %ecx movl 24(%esp), %edi movl %edx, 108(%ebp) movzbl (%eax,%edx), %esi movl %esi, 72(%ebp) movzbl 1(%eax,%edx), %eax sall %cl, %esi xorl %esi, %eax andl 84(%ebp), %eax movl %eax, 72(%ebp) jmp .L00000788 .L0000089E: .p2align 3 .L000008A0: movl %ebp, %eax call fill_window .L000008A7: movl 116(%ebp), %eax cmpl $261, %eax ja .L000005CC .L000008B5: movl 100(%esp), %edi testl %edi, %edi je .L000007F1 .L000008C1: testl %eax, %eax je .L00000948 .L000008C9: cmpl $2, %eax ja .L000005CC .L000008D2: movl 96(%ebp), %eax movl 108(%ebp), %esi jmp .L0000061A .L000008DD: .p2align 3 .L000008E0: shrw $7, %si movzwl %si, %esi movzbl _dist_code@GOTOFF+256(%ebx,%esi), %eax jmp .L00000679 .L000008F4: .p2align 3 .L000008F8: movl %ebp, %eax call longest_match .L000008FF: movl 108(%ebp), %esi movl %eax, 96(%ebp) jmp .L0000061A .L0000090A: movl 12(%esi), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00000924: movl 20(%esp), %edx addl %edx, 12(%esi) addl %edx, 16(%edi) addl %edx, 20(%esi) subl %edx, 16(%esi) subl %edx, 20(%edi) jne .L000007E3 .L0000093D: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L000007E3 .L00000948: movl 108(%ebp), %edx movl $2, %eax cmpl $2, %edx cmovbe %edx, %eax cmpl $4, 100(%esp) movl %eax, 5812(%ebp) je .L000009D3 .L00000963: movl 5792(%ebp), %ecx movl $1, %eax testl %ecx, %ecx je .L000009CB .L00000972: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L00000982 .L0000097D: addl 56(%ebp), %eax movl %eax, %ecx .L00000982: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L0000099A: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L000009AE: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00000A32 .L000009BD: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax setne %al movzbl %al, %eax .L000009CB: addl $76, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L000009D3: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L000009E3 .L000009DE: addl 56(%ebp), %eax movl %eax, %ecx .L000009E3: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $1, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L000009FB: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L00000A0F: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00000A70 .L00000A1E: movl (%ebp), %eax cmpl $1, 16(%eax) sbbl %eax, %eax addl $76, %esp popl %ebx addl $3, %eax popl %esi popl %edi popl %ebp ret .L00000A32: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00000A4C: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%esi) jne .L000009BD .L00000A65: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L000009BD .L00000A70: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00000A8A: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%esi) jne .L00000A1E .L00000AA3: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00000A1E .size deflate_fast, .-deflate_fast # ---------------------- .L00000AAE: .p2align 3 # ---------------------- .local deflate_slow .type deflate_slow, @function deflate_slow: pushl %ebp pushl %edi pushl %esi pushl %ebx call __x86.get_pc_thunk.bx .L00000AB9: addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $60, %esp movl 80(%esp), %ebp .L00000AC6: movl 116(%ebp), %edx .p2align 4 .L00000AD0: cmpl $261, %edx jbe .L00000D70 .L00000ADC: movl 108(%ebp), %esi movl 56(%ebp), %eax movl 88(%ebp), %ecx movl 72(%ebp), %edx movl 52(%ebp), %edi movzbl 2(%eax,%esi), %eax sall %cl, %edx movl 64(%ebp), %ecx andl %esi, %edi xorl %edx, %eax movl 68(%ebp), %edx andl 84(%ebp), %eax movl %eax, 72(%ebp) leal (%edx,%eax,2), %eax movzwl (%eax), %edx movw %dx, (%ecx,%edi,2) movl %edx, %ecx movl 96(%ebp), %edx movw %si, (%eax) movl 112(%ebp), %eax testl %ecx, %ecx movl $2, 96(%ebp) movl %edx, 120(%ebp) movl %eax, 100(%ebp) je .L00000B44 .L00000B28: cmpl 128(%ebp), %edx jae .L00000B44 .L00000B30: movl 44(%ebp), %eax movl %esi, %edi subl %ecx, %edi subl $262, %eax cmpl %eax, %edi jbe .L00000E90 .L00000B44: movl $2, %eax .L00000B49: cmpl $2, %edx jbe .L00000CF8 .L00000B52: cmpl %eax, %edx jb .L00000CF8 .L00000B5A: movl 116(%ebp), %eax movl %esi, %ecx subl $3, %edx subw 100(%ebp), %cx leal -3(%esi,%eax), %eax movl 5796(%ebp), %esi movl %eax, 24(%esp) movl 5792(%ebp), %eax leal -1(%ecx), %edi subl $2, %ecx movw %di, (%esi,%eax,2) movl 5784(%ebp), %esi leal 1(%eax), %edi movl %edi, 5792(%ebp) movb %dl, (%esi,%eax) movzbl %dl, %edx movzbl _length_code@GOTOFF(%ebx,%edx), %eax addw $1, 1176(%ebp,%eax,4) cmpw $255, %cx ja .L00000DE8 .L00000BB5: movzwl %cx, %ecx movzbl _dist_code@GOTOFF(%ebx,%ecx), %eax .L00000BC0: addw $1, 2440(%ebp,%eax,4) movl 5792(%ebp), %eax movl 116(%ebp), %ecx movl %eax, 32(%esp) movl 5788(%ebp), %eax leal 1(%ecx), %edi movl %edi, 28(%esp) subl $1, %eax movl %eax, 36(%esp) movl 120(%ebp), %eax subl %eax, 28(%esp) movl 28(%esp), %edi leal -2(%eax), %esi movl %eax, 40(%esp) movl 108(%ebp), %eax movl %edi, 116(%ebp) movl %esi, 120(%ebp) movl %eax, 44(%esp) addl $1, %eax .p2align 3 .L00000C10: cmpl 24(%esp), %eax movl %esi, 20(%esp) movl %eax, 108(%ebp) ja .L00000C4D .L00000C1D: movl 56(%ebp), %edx movl 88(%ebp), %ecx movl 72(%ebp), %edi movzbl 2(%edx,%eax), %edx sall %cl, %edi movl 68(%ebp), %ecx xorl %edi, %edx movl 52(%ebp), %edi andl 84(%ebp), %edx movl %edx, 72(%ebp) leal (%ecx,%edx,2), %edx movl 64(%ebp), %ecx movzwl (%edx), %esi andl %eax, %edi movw %si, (%ecx,%edi,2) movw %ax, (%edx) .L00000C4D: movl 20(%esp), %esi addl $1, %eax subl $1, %esi testl %esi, %esi movl %esi, 120(%ebp) jne .L00000C10 .L00000C5E: movl 40(%esp), %eax movl 44(%esp), %ecx movl 36(%esp), %edi cmpl %edi, 32(%esp) movl $0, 104(%ebp) movl 28(%esp), %edx leal -1(%eax,%ecx), %eax movl $2, 96(%ebp) movl %eax, 108(%ebp) jne .L00000AD0 .L00000C8D: movl 92(%ebp), %edx xorl %ecx, %ecx subl %edx, %eax testl %edx, %edx js .L00000C9D .L00000C98: movl 56(%ebp), %ecx addl %edx, %ecx .L00000C9D: movl %eax, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L00000CB5: movl (%ebp), %esi movl 108(%ebp), %eax movl 28(%esi), %edi movl %eax, 92(%ebp) movl %edi, (%esp) call _tr_flush_bits .L00000CC9: movl 20(%edi), %eax movl 16(%esi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00000EBA .L00000CDC: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax jne .L00000AC6 .L00000CEA: xorl %eax, %eax .L00000CEC: addl $60, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00000CF4: .p2align 3 .L00000CF8: movl 104(%ebp), %edi testl %edi, %edi je .L00000DC8 .L00000D03: movl 56(%ebp), %eax movl 5796(%ebp), %ecx movzbl -1(%eax,%esi), %edx xorl %esi, %esi movl 5792(%ebp), %eax movw %si, (%ecx,%eax,2) movl 5784(%ebp), %ecx leal 1(%eax), %esi movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) addw $1, 148(%ebp,%edx,4) movl 5788(%ebp), %eax subl $1, %eax cmpl %eax, 5792(%ebp) je .L00000E00 .L00000D4D: movl 116(%ebp), %eax addl $1, 108(%ebp) leal -1(%eax), %edx movl (%ebp), %eax movl %edx, 116(%ebp) movl 16(%eax), %eax testl %eax, %eax je .L00000CEA .L00000D64: cmpl $261, %edx ja .L00000ADC .L00000D70: movl %ebp, %eax call fill_window .L00000D77: movl 116(%ebp), %eax cmpl $261, %eax ja .L00000ADC .L00000D85: movl 84(%esp), %edx testl %edx, %edx je .L00000CEA .L00000D91: testl %eax, %eax je .L00000F2B .L00000D99: cmpl $2, %eax ja .L00000ADC .L00000DA2: movl 96(%ebp), %edx movl 112(%ebp), %eax movl $2, 96(%ebp) movl 108(%ebp), %esi movl %edx, 120(%ebp) movl %eax, 100(%ebp) movl $2, %eax jmp .L00000B49 .L00000DC2: .p2align 3 .L00000DC8: movl 116(%ebp), %eax addl $1, %esi movl $1, 104(%ebp) movl %esi, 108(%ebp) leal -1(%eax), %edx movl %edx, 116(%ebp) jmp .L00000AD0 .L00000DE3: .p2align 3 .L00000DE8: shrw $7, %cx movzwl %cx, %ecx movzbl _dist_code@GOTOFF+256(%ebx,%ecx), %eax jmp .L00000BC0 .L00000DFC: .p2align 3 .L00000E00: movl 92(%ebp), %edx xorl %ecx, %ecx movl 108(%ebp), %eax subl %edx, %eax testl %edx, %edx js .L00000E13 .L00000E0E: movl 56(%ebp), %ecx addl %edx, %ecx .L00000E13: movl %eax, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L00000E2B: movl (%ebp), %esi movl 108(%ebp), %eax movl 28(%esi), %edi movl %eax, 92(%ebp) movl %edi, (%esp) call _tr_flush_bits .L00000E3F: movl 20(%edi), %eax movl 16(%esi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx je .L00000D4D .L00000E52: movl 12(%esi), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00000E6C: movl 20(%esp), %edx addl %edx, 12(%esi) addl %edx, 16(%edi) addl %edx, 20(%esi) subl %edx, 16(%esi) subl %edx, 20(%edi) jne .L00000D4D .L00000E85: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L00000D4D .L00000E90: movl %ecx, %edx movl %ebp, %eax call longest_match .L00000E99: cmpl $5, %eax movl %eax, 96(%ebp) ja .L00000EAF .L00000EA1: cmpl $1, 136(%ebp) je .L00000EF8 .L00000EAA: cmpl $3, %eax je .L00000F0F .L00000EAF: movl 120(%ebp), %edx movl 108(%ebp), %esi jmp .L00000B49 .L00000EBA: movl 12(%esi), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00000ED4: movl 20(%esp), %edx addl %edx, 12(%esi) addl %edx, 16(%edi) addl %edx, 20(%esi) subl %edx, 16(%esi) subl %edx, 20(%edi) jne .L00000CDC .L00000EED: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L00000CDC .L00000EF8: movl 108(%ebp), %esi .L00000EFB: movl $2, 96(%ebp) movl 120(%ebp), %edx movl $2, %eax jmp .L00000B49 .L00000F0F: movl 108(%ebp), %esi movl %esi, %eax subl 112(%ebp), %eax cmpl $4096, %eax ja .L00000EFB .L00000F1E: movl 120(%ebp), %edx movl $3, %eax jmp .L00000B49 .L00000F2B: movl 104(%ebp), %edi testl %edi, %edi jne .L00000FCD .L00000F36: movl 108(%ebp), %edx movl $2, %eax cmpl $2, %edx cmovbe %edx, %eax cmpl $4, 84(%esp) movl %eax, 5812(%ebp) je .L00001011 .L00000F55: movl 5792(%ebp), %ecx movl $1, %eax testl %ecx, %ecx je .L00000CEC .L00000F68: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L00000F78 .L00000F73: addl 56(%ebp), %eax movl %eax, %ecx .L00000F78: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L00000F90: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L00000FA4: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00001070 .L00000FB7: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax setne %al addl $60, %esp popl %ebx movzbl %al, %eax popl %esi popl %edi popl %ebp ret .L00000FCD: movl 108(%ebp), %eax xorl %esi, %esi movl 56(%ebp), %edx movl 5796(%ebp), %ecx movzbl -1(%edx,%eax), %edx movl 5792(%ebp), %eax movw %si, (%ecx,%eax,2) movl 5784(%ebp), %ecx leal 1(%eax), %esi movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) addw $1, 148(%ebp,%edx,4) movl $0, 104(%ebp) jmp .L00000F36 .L00001011: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L00001021 .L0000101C: addl 56(%ebp), %eax movl %eax, %ecx .L00001021: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $1, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L00001039: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L0000104D: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L000010AE .L0000105C: movl (%ebp), %eax cmpl $1, 16(%eax) sbbl %eax, %eax addl $60, %esp popl %ebx addl $3, %eax popl %esi popl %edi popl %ebp ret .L00001070: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L0000108A: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%esi) jne .L00000FB7 .L000010A3: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00000FB7 .L000010AE: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L000010C8: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%esi) jne .L0000105C .L000010E1: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L0000105C .size deflate_slow, .-deflate_slow # ---------------------- .L000010EC: .p2align 3 # ---------------------- .local deflate_stored .type deflate_stored, @function deflate_stored: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $44, %esp movl 64(%esp), %esi call __x86.get_pc_thunk.bx .L00001100: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 12(%esi), %eax subl $5, %eax movl %eax, %edi cmpl $65535, %eax movl $65535, %eax cmovb %edi, %eax movl %eax, 24(%esp) jmp .L0000114E .L00001121: .p2align 3 .L00001128: movl (%esi), %eax movl 16(%eax), %ecx testl %ecx, %ecx je .L00001212 .L00001135: movl 108(%esi), %edx movl 92(%esi), %eax .L0000113B: movl 44(%esi), %edi subl %eax, %edx leal -262(%edi), %ecx cmpl %ecx, %edx jae .L000012C0 .L0000114E: movl 116(%esi), %edx cmpl $1, %edx jbe .L00001220 .L0000115A: addl 108(%esi), %edx movl 92(%esi), %eax movl 24(%esp), %edi testl %edx, %edx movl %edx, 108(%esi) movl $0, 116(%esi) leal (%edi,%eax), %ecx je .L00001179 .L00001175: cmpl %ecx, %edx jb .L0000113B .L00001179: subl %ecx, %edx movl %edx, 116(%esi) xorl %edx, %edx movl %ecx, 108(%esi) subl %eax, %ecx testl %eax, %eax js .L0000118E .L00001189: addl 56(%esi), %eax movl %eax, %edx .L0000118E: movl %edx, 4(%esp) movl %ecx, 8(%esp) movl $0, 12(%esp) movl %esi, (%esp) call _tr_flush_block .L000011A6: movl (%esi), %edi movl 108(%esi), %eax movl 28(%edi), %ebp movl %eax, 92(%esi) movl %ebp, (%esp) call _tr_flush_bits .L000011B9: movl 20(%ebp), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx je .L00001128 .L000011CC: movl 12(%edi), %eax movl 16(%ebp), %ecx movl %edx, 8(%esp) movl %edx, 28(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L000011E6: movl 28(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%ebp) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%ebp) jne .L00001128 .L000011FF: movl 8(%ebp), %eax movl %eax, 16(%ebp) movl (%esi), %eax movl 16(%eax), %ecx testl %ecx, %ecx jne .L00001135 .L00001212: xorl %eax, %eax .L00001214: addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L0000121C: .p2align 3 .L00001220: movl %esi, %eax call fill_window .L00001227: movl 116(%esi), %edx testl %edx, %edx jne .L0000115A .L00001232: movl 68(%esp), %edi testl %edi, %edi je .L00001212 .L0000123A: cmpl $4, 68(%esp) movl $0, 5812(%esi) je .L0000134F .L0000124F: movl 108(%esi), %ecx movl $1, %eax movl 92(%esi), %edx cmpl %edx, %ecx jle .L00001214 .L0000125E: subl %edx, %ecx xorb %al, %al testl %edx, %edx js .L0000126B .L00001266: movl 56(%esi), %eax addl %edx, %eax .L0000126B: movl %ecx, 8(%esp) movl %eax, 4(%esp) movl $0, 12(%esp) movl %esi, (%esp) call _tr_flush_block .L00001283: movl (%esi), %ebp movl 108(%esi), %eax movl 28(%ebp), %edi movl %eax, 92(%esi) movl %edi, (%esp) call _tr_flush_bits .L00001296: movl 20(%edi), %eax movl 16(%ebp), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L000013AC .L000012A9: movl (%esi), %eax movl 16(%eax), %eax testl %eax, %eax setne %al movzbl %al, %eax jmp .L00001214 .L000012BB: .p2align 3 .L000012C0: xorl %ecx, %ecx testl %eax, %eax js .L000012CB .L000012C6: addl 56(%esi), %eax movl %eax, %ecx .L000012CB: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %esi, (%esp) call _tr_flush_block .L000012E3: movl (%esi), %edi movl 108(%esi), %eax movl 28(%edi), %ebp movl %eax, 92(%esi) movl %ebp, (%esp) call _tr_flush_bits .L000012F6: movl 20(%ebp), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00001318 .L00001305: movl (%esi), %eax movl 16(%eax), %edx testl %edx, %edx jne .L0000114E .L00001312: jmp .L00001212 .L00001317: .p2align 3 .L00001318: movl 12(%edi), %eax movl 16(%ebp), %ecx movl %edx, 8(%esp) movl %edx, 28(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00001332: movl 28(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%ebp) addl %edx, 20(%edi) subl %edx, 16(%edi) subl %edx, 20(%ebp) jne .L00001305 .L00001347: movl 8(%ebp), %eax movl %eax, 16(%ebp) jmp .L00001305 .L0000134F: movl 92(%esi), %edx xorl %ecx, %ecx movl 108(%esi), %eax subl %edx, %eax testl %edx, %edx js .L00001362 .L0000135D: movl 56(%esi), %ecx addl %edx, %ecx .L00001362: movl %eax, 8(%esp) movl %ecx, 4(%esp) movl $1, 12(%esp) movl %esi, (%esp) call _tr_flush_block .L0000137A: movl (%esi), %ebp movl 108(%esi), %eax movl 28(%ebp), %edi movl %eax, 92(%esi) movl %edi, (%esp) call _tr_flush_bits .L0000138D: movl 20(%edi), %eax movl 16(%ebp), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L000013EA .L0000139C: movl (%esi), %eax cmpl $1, 16(%eax) sbbl %eax, %eax addl $3, %eax jmp .L00001214 .L000013AC: movl 12(%ebp), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 24(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L000013C6: movl 24(%esp), %edx addl %edx, 12(%ebp) addl %edx, 16(%edi) addl %edx, 20(%ebp) subl %edx, 16(%ebp) subl %edx, 20(%edi) jne .L000012A9 .L000013DF: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L000012A9 .L000013EA: movl 12(%ebp), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 24(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00001404: movl 24(%esp), %edx addl %edx, 12(%ebp) addl %edx, 16(%edi) addl %edx, 20(%ebp) subl %edx, 16(%ebp) subl %edx, 20(%edi) jne .L0000139C .L00001419: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L0000139C .size deflate_stored, .-deflate_stored # ---------------------- .L00001424: .p2align 4 # ---------------------- .globl deflateSetDictionary .type deflateSetDictionary, @function deflateSetDictionary: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $76, %esp movl 96(%esp), %ecx call __x86.get_pc_thunk.bx .L00001440: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 100(%esp), %esi movl 104(%esp), %ebp testl %ecx, %ecx je .L0000166D .L00001456: movl 96(%esp), %eax movl 28(%eax), %edi testl %edi, %edi je .L0000166D .L00001465: testl %esi, %esi je .L0000166D .L0000146D: movl 24(%edi), %eax cmpl $2, %eax movl %eax, 52(%esp) je .L0000166D .L0000147D: cmpl $1, %eax je .L000015E3 .L00001486: movl 116(%edi), %eax testl %eax, %eax jne .L0000166D .L00001491: movl 44(%edi), %eax movl $0, 24(%edi) cmpl %eax, %ebp jae .L000015CE .L000014A3: movl 96(%esp), %eax movl 4(%eax), %eax movl %eax, 56(%esp) movl 96(%esp), %eax movl (%eax), %eax movl %eax, 60(%esp) movl 96(%esp), %eax movl %ebp, 4(%eax) movl %esi, (%eax) movl %edi, %eax call fill_window .L000014C8: movl 116(%edi), %eax cmpl $2, %eax jbe .L0000157F .L000014D4: movl %eax, %edx .p2align 3 .L000014D8: movl 88(%edi), %ecx movl 108(%edi), %esi movl 68(%edi), %ebp movl 72(%edi), %eax movl %ecx, 28(%esp) movl 56(%edi), %ecx movl %edi, 20(%esp) movl %ebp, 48(%esp) movl %ecx, 32(%esp) movl 84(%edi), %ecx movl %ecx, 36(%esp) movl 64(%edi), %ecx movl %ecx, 40(%esp) movl 52(%edi), %ecx movl %ecx, 44(%esp) leal -2(%esi,%edx), %ecx movl %ecx, 24(%esp) jmp .L0000151A .L00001516: .p2align 3 .L00001518: movl %edx, %eax .L0000151A: movl 32(%esp), %edx movzbl 28(%esp), %ecx movl 40(%esp), %ebp movzbl 2(%edx,%esi), %edx sall %cl, %eax movl 44(%esp), %ecx xorl %eax, %edx movl 20(%esp), %eax andl 36(%esp), %edx andl %esi, %ecx movl %edx, 72(%eax) movl 48(%esp), %eax leal (%eax,%edx,2), %eax movzwl (%eax), %edi movw %di, (%ebp,%ecx,2) movw %si, (%eax) addl $1, %esi cmpl 24(%esp), %esi jne .L00001518 .L0000155C: movl 20(%esp), %edi movl %esi, 108(%edi) movl %edi, %eax movl $2, 116(%edi) call fill_window .L00001571: movl 116(%edi), %edx cmpl $2, %edx ja .L000014D8 .L0000157D: movl %edx, %eax .L0000157F: movl 108(%edi), %edx movl %eax, 5812(%edi) movl 60(%esp), %esi movl $0, 116(%edi) movl $2, 120(%edi) addl %eax, %edx movl 96(%esp), %eax movl %edx, 108(%edi) movl %edx, 92(%edi) movl $2, 96(%edi) movl $0, 104(%edi) movl %esi, (%eax) movl 56(%esp), %esi movl %esi, 4(%eax) movl 52(%esp), %eax movl %eax, 24(%edi) xorl %eax, %eax .L000015C6: addl $76, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L000015CE: movl 52(%esp), %edx testl %edx, %edx je .L00001625 .L000015D6: movl %ebp, %edx movl %eax, %ebp subl %eax, %edx addl %edx, %esi jmp .L000014A3 .L000015E3: cmpl $42, 4(%edi) jne .L0000166D .L000015ED: movl 116(%edi), %edx testl %edx, %edx jne .L0000166D .L000015F4: movl 96(%esp), %eax movl %ebp, 8(%esp) movl %esi, 4(%esp) movl 48(%eax), %eax movl %eax, (%esp) call adler32@PLT .L0000160B: movl 96(%esp), %ecx movl %eax, 48(%ecx) movl 44(%edi), %eax movl $0, 24(%edi) cmpl %eax, %ebp jae .L000015D6 .L00001620: jmp .L000014A3 .L00001625: movl 76(%edi), %eax movl 68(%edi), %edx addl $2147483647, %eax leal (%eax,%eax), %ecx movw $0, (%edx,%eax,2) movl %ecx, 8(%esp) movl $0, 4(%esp) movl %edx, (%esp) call memset@PLT .L0000164D: movl 44(%edi), %eax movl $0, 108(%edi) movl $0, 92(%edi) movl $0, 5812(%edi) jmp .L000015D6 .L0000166D: movl $-2, %eax jmp .L000015C6 .size deflateSetDictionary, .-deflateSetDictionary # ---------------------- .L00001677: .p2align 4 # ---------------------- .globl deflateResetKeep .type deflateResetKeep, @function deflateResetKeep: pushl %edi pushl %esi pushl %ebx subl $16, %esp movl 32(%esp), %esi call __x86.get_pc_thunk.bx .L0000168F: addl $_GLOBAL_OFFSET_TABLE_, %ebx testl %esi, %esi je .L00001760 .L0000169D: movl 28(%esi), %edi testl %edi, %edi je .L00001760 .L000016A8: movl 32(%esi), %edx testl %edx, %edx je .L00001760 .L000016B3: movl 36(%esi), %eax testl %eax, %eax je .L00001760 .L000016BE: movl 8(%edi), %eax movl $0, 20(%esi) movl $0, 8(%esi) movl $0, 24(%esi) movl $2, 44(%esi) movl %eax, 16(%edi) movl 24(%edi), %eax movl $0, 20(%edi) testl %eax, %eax js .L00001730 .L000016EE: jne .L00001735 .L000016F0: movl $113, 4(%edi) .L000016F7: movl $0, 8(%esp) movl $0, 4(%esp) movl $0, (%esp) call adler32@PLT .L00001713: movl %eax, 48(%esi) movl $0, 40(%edi) movl %edi, (%esp) call _tr_init .L00001725: xorl %eax, %eax .L00001727: addl $16, %esp popl %ebx popl %esi popl %edi ret .L0000172E: .p2align 3 .L00001730: negl %eax movl %eax, 24(%edi) .L00001735: cmpl $2, %eax movl $42, 4(%edi) jne .L000016F7 .L00001741: movl $0, 8(%esp) movl $0, 4(%esp) movl $0, (%esp) call crc32@PLT .L0000175D: jmp .L00001713 .L0000175F: .p2align 3 .L00001760: movl $-2, %eax jmp .L00001727 .size deflateResetKeep, .-deflateResetKeep # ---------------------- .L00001767: .p2align 4 # ---------------------- .globl deflateReset .type deflateReset, @function deflateReset: pushl %edi pushl %esi pushl %ebx subl $16, %esp call __x86.get_pc_thunk.bx .L0000177B: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 32(%esp), %esi movl %esi, (%esp) call deflateResetKeep@PLT .L0000178D: testl %eax, %eax movl %eax, %edi jne .L0000183A .L00001797: movl 28(%esi), %esi movl 44(%esi), %eax movl 76(%esi), %ecx addl %eax, %eax movl %eax, 60(%esi) movl 68(%esi), %eax leal 2147483647(%ecx), %edx leal (%edx,%edx), %ecx movw $0, (%eax,%edx,2) movl %ecx, 8(%esp) movl $0, 4(%esp) movl %eax, (%esp) call memset@PLT .L000017CB: movl 132(%esi), %eax movl $0, 108(%esi) movl $0, 92(%esi) movl $0, 116(%esi) leal (%eax,%eax,2), %eax leal configuration_table@GOTOFF(%ebx,%eax,4), %eax movzwl 2(%eax), %edx movl $0, 5812(%esi) movl $2, 120(%esi) movl $2, 96(%esi) movl %edx, 128(%esi) movzwl (%eax), %edx movl $0, 104(%esi) movl $0, 72(%esi) movl %edx, 140(%esi) movzwl 4(%eax), %edx movzwl 6(%eax), %eax movl %edx, 144(%esi) movl %eax, 124(%esi) .L0000183A: addl $16, %esp movl %edi, %eax popl %ebx popl %esi popl %edi ret .size deflateReset, .-deflateReset # ---------------------- .L00001843: .p2align 4 # ---------------------- .globl deflateSetHeader .type deflateSetHeader, @function deflateSetHeader: movl 4(%esp), %eax testl %eax, %eax je .L00001870 .L00001858: movl 28(%eax), %eax testl %eax, %eax je .L00001870 .L0000185F: cmpl $2, 24(%eax) jne .L00001870 .L00001865: movl 8(%esp), %edx movl %edx, 28(%eax) xorl %eax, %eax ret .L0000186F: .p2align 3 .L00001870: movl $-2, %eax ret .size deflateSetHeader, .-deflateSetHeader # ---------------------- .L00001876: .p2align 4 # ---------------------- .globl deflatePending .type deflatePending, @function deflatePending: pushl %esi movl 8(%esp), %eax movl 12(%esp), %ecx movl 16(%esp), %edx testl %eax, %eax je .L000018C0 .L00001891: movl 28(%eax), %eax testl %eax, %eax je .L000018C0 .L00001898: testl %ecx, %ecx je .L000018A1 .L0000189C: movl 20(%eax), %esi movl %esi, (%ecx) .L000018A1: testl %edx, %edx je .L000018B8 .L000018A5: movl 5820(%eax), %eax movl %eax, (%edx) xorl %eax, %eax popl %esi ret .L000018B1: .p2align 3 .L000018B8: xorl %eax, %eax popl %esi ret .L000018BC: .p2align 3 .L000018C0: movl $-2, %eax popl %esi ret .size deflatePending, .-deflatePending # ---------------------- .L000018C7: .p2align 4 # ---------------------- .globl deflatePrime .type deflatePrime, @function deflatePrime: pushl %ebp pushl %edi pushl %esi subl $16, %esp movl 32(%esp), %eax movl 36(%esp), %ebp testl %eax, %eax je .L00001950 .L000018E2: movl 28(%eax), %edi testl %edi, %edi je .L00001950 .L000018E9: movl 16(%edi), %eax addl $2, %eax cmpl %eax, 5796(%edi) jb .L00001949 .L000018F7: .p2align 3 .L000018F8: movl 5820(%edi), %edx movl $16, %esi movl $1, %eax subl %edx, %esi cmpl %esi, %ebp cmovle %ebp, %esi movl %esi, %ecx sall %cl, %eax movl %edx, %ecx subl $1, %eax andl 40(%esp), %eax sall %cl, %eax orw %ax, 5816(%edi) leal (%edx,%esi), %eax movl %eax, 5820(%edi) movl %edi, (%esp) call _tr_flush_bits .L00001936: movl %esi, %ecx sarl %cl, 40(%esp) subl %esi, %ebp jne .L000018F8 .L00001940: xorl %eax, %eax .L00001942: addl $16, %esp popl %esi popl %edi popl %ebp ret .L00001949: movl $-5, %eax jmp .L00001942 .L00001950: movl $-2, %eax jmp .L00001942 .size deflatePrime, .-deflatePrime # ---------------------- .L00001957: .p2align 4 # ---------------------- .globl deflateTune .type deflateTune, @function deflateTune: movl 4(%esp), %eax testl %eax, %eax je .L00001998 .L00001968: movl 28(%eax), %eax testl %eax, %eax je .L00001998 .L0000196F: movl 8(%esp), %edx movl %edx, 140(%eax) movl 12(%esp), %edx movl %edx, 128(%eax) movl 16(%esp), %edx movl %edx, 144(%eax) movl 20(%esp), %edx movl %edx, 124(%eax) xorl %eax, %eax ret .L00001997: .p2align 3 .L00001998: movl $-2, %eax ret .size deflateTune, .-deflateTune # ---------------------- .L0000199E: .p2align 3 # ---------------------- .globl deflateBound .type deflateBound, @function deflateBound: pushl %ebp pushl %edi pushl %esi subl $8, %esp movl 28(%esp), %ecx movl 24(%esp), %esi leal 7(%ecx), %edi movl %edi, %edx leal 63(%ecx), %eax shrl $3, %edx shrl $6, %eax addl %edx, %eax addl %ecx, %eax testl %esi, %esi je .L00001AA8 .L000019C8: movl 28(%esi), %esi testl %esi, %esi je .L00001AA8 .L000019D3: movl 24(%esi), %edx cmpl $1, %edx je .L00001A90 .L000019DF: cmpl $2, %edx je .L00001A00 .L000019E4: cmpl $1, %edx sbbl %edx, %edx notl %edx andl $6, %edx .L000019EE: cmpl $15, 48(%esi) je .L00001A6C .L000019F4: addl $8, %esp popl %esi leal 5(%edx,%eax), %eax popl %edi popl %ebp ret .L000019FF: .p2align 3 .L00001A00: movl 28(%esi), %edx testl %edx, %edx movl %edx, (%esp) je .L00001AB8 .L00001A0E: movl 16(%edx), %ebp testl %ebp, %ebp je .L00001AC8 .L00001A19: movl 20(%edx), %edx movl %edx, 4(%esp) addl $20, %edx .L00001A23: movl (%esp), %ebp movl 28(%ebp), %ebp testl %ebp, %ebp je .L00001A3A .L00001A2D: subl %edx, %ebp .p2align 3 .L00001A30: addl $1, %edx cmpb $0, -1(%ebp,%edx) jne .L00001A30 .L00001A3A: movl (%esp), %ebp movl 36(%ebp), %ebp testl %ebp, %ebp je .L00001A52 .L00001A44: subl %edx, %ebp .p2align 3 .L00001A48: addl $1, %edx cmpb $0, -1(%ebp,%edx) jne .L00001A48 .L00001A52: leal 2(%edx), %ebp movl %ebp, 4(%esp) movl (%esp), %ebp movl 44(%ebp), %ebp testl %ebp, %ebp cmovne 4(%esp), %edx cmpl $15, 48(%esi) jne .L000019F4 .L00001A6C: cmpl $15, 80(%esi) jne .L000019F4 .L00001A72: movl %ecx, %eax movl %ecx, %esi shrl $12, %eax addl $8, %esp addl %edi, %eax shrl $14, %esi addl %esi, %eax shrl $25, %ecx addl %ecx, %eax popl %esi addl %edx, %eax popl %edi popl %ebp ret .L00001A8E: .p2align 3 .L00001A90: cmpl $1, 108(%esi) sbbl %edx, %edx andl $-4, %edx addl $10, %edx jmp .L000019EE .L00001AA1: .p2align 3 .L00001AA8: addl $8, %esp addl $11, %eax popl %esi popl %edi popl %ebp ret .L00001AB2: .p2align 3 .L00001AB8: movl $18, %edx jmp .L000019EE .L00001AC2: .p2align 3 .L00001AC8: movl $18, %edx jmp .L00001A23 .size deflateBound, .-deflateBound # ---------------------- .L00001AD2: .p2align 4 # ---------------------- .globl deflate .type deflate, @function deflate: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $44, %esp movl 64(%esp), %ecx call __x86.get_pc_thunk.bx .L00001AF0: addl $_GLOBAL_OFFSET_TABLE_, %ebx testl %ecx, %ecx je .L00002971 .L00001AFE: movl 64(%esp), %eax movl 28(%eax), %ebp testl %ebp, %ebp je .L00002971 .L00001B0D: cmpl $5, 68(%esp) ja .L00002971 .L00001B18: movl 12(%eax), %edx testl %edx, %edx je .L00001CD3 .L00001B23: movl (%eax), %edi testl %edi, %edi je .L000026F8 .L00001B2D: movl 4(%ebp), %eax cmpl $666, %eax je .L00001CC8 .L00001B3B: movl 64(%esp), %esi movl 16(%esi), %ecx testl %ecx, %ecx je .L00002A54 .L00001B4A: movl %esi, (%ebp) movl 68(%esp), %edi cmpl $42, %eax movl 40(%ebp), %esi movl %edi, 40(%ebp) movl %esi, 24(%esp) je .L00001DA0 .L00001B64: cmpl $69, %eax je .L00001EA8 .L00001B6D: cmpl $73, %eax movl 20(%ebp), %edx je .L00001F80 .L00001B79: cmpl $91, %eax je .L000026C5 .L00001B82: cmpl $103, %eax je .L00002875 .L00001B8B: testl %edx, %edx movl 64(%esp), %eax jne .L00001CF0 .L00001B97: movl 4(%eax), %edx testl %edx, %edx jne .L000025F0 .L00001BA2: movl 68(%esp), %eax movl 24(%esp), %esi cmpl $5, %eax leal (%eax,%eax), %edx sete %al movzbl %al, %eax xorl %ecx, %ecx leal (%eax,%eax,8), %eax subl %eax, %edx movl %esi, %eax addl %eax, %eax cmpl $5, %esi setge %cl leal (%ecx,%ecx,8), %ecx subl %ecx, %eax cmpl %eax, %edx jg .L00001BDB .L00001BD0: cmpl $4, 68(%esp) jne .L00002606 .L00001BDB: movl 4(%ebp), %eax .p2align 3 .L00001BE0: movl 116(%ebp), %ecx testl %ecx, %ecx jne .L00001D37 .L00001BEB: movl 68(%esp), %edx testl %edx, %edx je .L00001D95 .L00001BF7: cmpl $666, %eax jne .L00001D37 .L00001C02: .p2align 3 .L00001C08: cmpl $4, 68(%esp) jne .L00001D95 .L00001C13: movl 24(%ebp), %eax testl %eax, %eax jle .L00002D9F .L00001C1E: cmpl $2, %eax je .L00002B01 .L00001C27: movl 64(%esp), %eax movl 8(%ebp), %edi movl 48(%eax), %edx movl 20(%ebp), %eax movl %edx, %ecx leal 1(%eax), %esi shrl $24, %edx movl %esi, 20(%ebp) shrl $16, %ecx movb %dl, (%edi,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %esi movl %esi, 20(%ebp) movb %cl, (%edx,%eax) movl 64(%esp), %eax movl 8(%ebp), %edi movzwl 48(%eax), %edx movl 20(%ebp), %eax movl %edx, %ecx leal 1(%eax), %esi shrl $8, %ecx movl %esi, 20(%ebp) movb %cl, (%edi,%eax) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %esi movl %esi, 20(%ebp) movb %dl, (%ecx,%eax) movl 64(%esp), %eax .L00001C83: movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L00001C8E: movl 64(%esp), %edi movl 20(%esi), %eax movl 16(%edi), %edi cmpl %eax, %edi cmova %eax, %edi testl %edi, %edi jne .L000029EB .L00001CA5: movl 24(%ebp), %eax testl %eax, %eax jle .L00001CB1 .L00001CAC: negl %eax movl %eax, 24(%ebp) .L00001CB1: movl 20(%ebp), %edx xorl %eax, %eax testl %edx, %edx sete %al addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00001CC3: .p2align 3 .L00001CC8: cmpl $4, 68(%esp) je .L00001B3B .L00001CD3: movl z_errmsg@GOT(%ebx), %eax movl 64(%esp), %esi movl 16(%eax), %eax movl %eax, 24(%esi) movl $-2, %eax jmp .L00001D97 .L00001CED: .p2align 3 .L00001CF0: movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L00001CFB: movl 64(%esp), %eax movl 20(%esi), %edi movl 16(%eax), %eax cmpl %edi, %eax cmovbe %eax, %edi testl %edi, %edi jne .L00002307 .L00001D12: testl %eax, %eax je .L000022F8 .L00001D1A: movl 64(%esp), %eax movl 4(%eax), %edx movl 4(%ebp), %eax cmpl $666, %eax je .L000025FE .L00001D2F: testl %edx, %edx je .L00001BE0 .L00001D37: movl 136(%ebp), %eax cmpl $2, %eax je .L00002125 .L00001D46: cmpl $3, %eax je .L00001FE5 .L00001D4F: movl 132(%ebp), %eax movl 68(%esp), %esi movl %ebp, (%esp) leal (%eax,%eax,2), %eax movl %esi, 4(%esp) call *configuration_table@GOTOFF+8(%ebx,%eax,4) .L00001D6A: movl %eax, %edx andl $-3, %edx leal -2(%eax), %ecx .L00001D72: cmpl $1, %ecx jbe .L00002688 .L00001D7B: testl %edx, %edx jne .L00002240 .L00001D83: movl 64(%esp), %eax movl 16(%eax), %eax testl %eax, %eax jne .L00001D95 .L00001D8E: movl $-1, 40(%ebp) .L00001D95: xorl %eax, %eax .L00001D97: addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00001D9F: .p2align 3 .L00001DA0: cmpl $2, 24(%ebp) je .L00002BA6 .L00001DAA: movl 48(%ebp), %eax sall $12, %eax leal -30720(%eax), %ecx xorl %eax, %eax cmpl $1, 136(%ebp) jle .L000023EB .L00001DC5: movl 108(%ebp), %esi orl %eax, %ecx movl $138547333, %edx movl %ecx, %eax orl $32, %eax movl $113, 4(%ebp) testl %esi, %esi movl 8(%ebp), %esi cmovne %eax, %ecx movl %ecx, %eax mull %edx movl 20(%ebp), %eax subl %edx, %ecx shrl $1, %ecx addl %edx, %ecx shrl $4, %ecx movl %ecx, %edx sall $5, %edx subl %ecx, %edx addl $31, %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movl %edx, %ecx shrl $8, %ecx movb %cl, (%esi,%eax) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %esi movl %esi, 20(%ebp) movb %dl, (%ecx,%eax) movl 108(%ebp), %edi testl %edi, %edi je .L00001E79 .L00001E21: movl 64(%esp), %eax movl 8(%ebp), %edi movl 48(%eax), %edx movl 20(%ebp), %eax movl %edx, %ecx leal 1(%eax), %esi shrl $24, %edx movl %esi, 20(%ebp) shrl $16, %ecx movb %dl, (%edi,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %esi movl %esi, 20(%ebp) movb %cl, (%edx,%eax) movl 64(%esp), %eax movl 8(%ebp), %esi movzwl 48(%eax), %edx movl 20(%ebp), %eax leal 1(%eax), %ecx movl %ecx, 20(%ebp) movl %edx, %ecx shrl $8, %ecx movb %cl, (%esi,%eax) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %esi movl %esi, 20(%ebp) movb %dl, (%ecx,%eax) .L00001E79: movl $0, 8(%esp) movl $0, 4(%esp) movl $0, (%esp) call adler32@PLT .L00001E95: movl 64(%esp), %edi movl %eax, 48(%edi) movl 4(%ebp), %eax cmpl $69, %eax jne .L00001B6D .L00001EA8: movl 28(%ebp), %eax .L00001EAB: movl 16(%eax), %edx testl %edx, %edx je .L00002A45 .L00001EB6: movl 32(%ebp), %esi movzwl 20(%eax), %ecx movl 20(%ebp), %edx cmpl %esi, %ecx movl %edx, 20(%esp) jbe .L00001F53 .L00001ECC: movl %edx, %ecx jmp .L00001EFA .L00001ED0: leal 1(%ecx), %eax movl %eax, 20(%ebp) movl 16(%edi), %eax movzbl (%eax,%esi), %eax movl 8(%ebp), %esi movb %al, (%esi,%ecx) movl 32(%ebp), %eax leal 1(%eax), %esi movl 28(%ebp), %eax movl %esi, 32(%ebp) movzwl 20(%eax), %ecx cmpl %esi, %ecx jbe .L00001F50 .L00001EF7: movl 20(%ebp), %ecx .L00001EFA: cmpl %ecx, 12(%ebp) movl %eax, %edi jne .L00001ED0 .L00001F01: movl 44(%eax), %edi testl %edi, %edi je .L00001F10 .L00001F08: cmpl %edx, %ecx ja .L00002708 .L00001F10: movl 64(%esp), %eax movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L00001F1F: movl 64(%esp), %edi movl 20(%esi), %eax movl 16(%edi), %edi cmpl %eax, %edi cmova %eax, %edi testl %edi, %edi jne .L000025B0 .L00001F36: movl 20(%ebp), %edx cmpl 12(%ebp), %edx movl %edx, 20(%esp) je .L00002A3D .L00001F46: movl 28(%ebp), %edi movl %edx, %ecx movl 32(%ebp), %esi jmp .L00001ED0 .L00001F50: movl 20(%ebp), %edx .L00001F53: movl 44(%eax), %esi testl %esi, %esi je .L00001F64 .L00001F5A: cmpl %edx, 20(%esp) jb .L0000297B .L00001F64: movl 20(%eax), %edi cmpl %edi, 32(%ebp) je .L0000234D .L00001F70: movl 4(%ebp), %eax cmpl $73, %eax jne .L00001B79 .L00001F7C: .p2align 3 .L00001F80: movl 28(%ebp), %eax jmp .L0000235B .L00001F88: movl 92(%ebp), %edx xorl %esi, %esi subl %edx, %eax testl %edx, %edx js .L00001F98 .L00001F93: movl 56(%ebp), %esi addl %edx, %esi .L00001F98: movl %eax, 8(%esp) movl %esi, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L00001FB0: movl (%ebp), %esi movl 108(%ebp), %eax movl 28(%esi), %edi movl %eax, 92(%ebp) movl %edi, (%esp) call _tr_flush_bits .L00001FC4: movl 20(%edi), %eax movl 16(%esi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00002730 .L00001FD7: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax je .L00001D83 .L00001FE5: movl 116(%ebp), %edi jmp .L00002070 .L00001FED: .p2align 3 .L00001FF0: movl $0, 96(%ebp) .L00001FF7: movl 108(%ebp), %esi movl 56(%ebp), %eax testl %esi, %esi jne .L00002418 .L00002005: movl $0, 20(%esp) .L0000200D: movl 20(%esp), %esi movl 5796(%ebp), %ecx movzbl (%eax,%esi), %edx xorl %esi, %esi movl 5792(%ebp), %eax movw %si, (%ecx,%eax,2) movl 5784(%ebp), %ecx leal 1(%eax), %esi movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) addw $1, 148(%ebp,%edx,4) xorl %edx, %edx movl 5788(%ebp), %eax subl $1, %eax cmpl %eax, 5792(%ebp) movl 116(%ebp), %eax sete %dl leal -1(%eax), %edi movl 108(%ebp), %eax movl %edi, 116(%ebp) addl $1, %eax movl %eax, 108(%ebp) .L00002068: testl %edx, %edx jne .L00001F88 .L00002070: cmpl $258, %edi ja .L00001FF0 .L0000207C: movl %ebp, %eax call fill_window .L00002083: movl 116(%ebp), %edi cmpl $258, %edi ja .L00001FF0 .L00002092: movl 68(%esp), %eax testl %eax, %eax je .L00001D83 .L0000209E: testl %edi, %edi je .L000021B3 .L000020A6: cmpl $2, %edi movl $0, 96(%ebp) ja .L00001FF7 .L000020B6: movl 108(%ebp), %eax movl %eax, 20(%esp) movl 56(%ebp), %eax jmp .L0000200D .L000020C5: .p2align 3 .L000020C8: movl 92(%ebp), %eax xorl %ecx, %ecx subl %eax, %edx testl %eax, %eax js .L000020D8 .L000020D3: addl 56(%ebp), %eax movl %eax, %ecx .L000020D8: movl %edx, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L000020F0: movl (%ebp), %esi movl 108(%ebp), %eax movl 28(%esi), %edi movl %eax, 92(%ebp) movl %edi, (%esp) call _tr_flush_bits .L00002104: movl 20(%edi), %eax movl 16(%esi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00002933 .L00002117: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax je .L00001D83 .L00002125: movl 116(%ebp), %eax jmp .L00002195 .L0000212A: .p2align 3 .L00002130: movl 108(%ebp), %eax xorl %esi, %esi movl 56(%ebp), %edx movl $0, 96(%ebp) movl 5796(%ebp), %ecx movzbl (%edx,%eax), %edx movl 5792(%ebp), %eax movw %si, (%ecx,%eax,2) movl 5784(%ebp), %ecx leal 1(%eax), %esi movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) addw $1, 148(%ebp,%edx,4) movl 5788(%ebp), %eax movl 108(%ebp), %esi leal -1(%eax), %ecx movl 116(%ebp), %eax leal 1(%esi), %edx movl %edx, 108(%ebp) subl $1, %eax cmpl %ecx, 5792(%ebp) movl %eax, 116(%ebp) je .L000020C8 .L00002195: testl %eax, %eax jne .L00002130 .L00002199: movl %ebp, %eax call fill_window .L000021A0: movl 116(%ebp), %eax testl %eax, %eax jne .L00002130 .L000021A7: movl 68(%esp), %edi testl %edi, %edi je .L00001D83 .L000021B3: cmpl $4, 68(%esp) movl $0, 5812(%ebp) je .L00002620 .L000021C8: movl 5792(%ebp), %eax testl %eax, %eax je .L00002249 .L000021D2: movl 92(%ebp), %edx xorl %ecx, %ecx movl 108(%ebp), %eax subl %edx, %eax testl %edx, %edx js .L000021E5 .L000021E0: movl 56(%ebp), %ecx addl %edx, %ecx .L000021E5: movl %eax, 8(%esp) movl %ecx, 4(%esp) movl $0, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L000021FD: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L00002211: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L000029AD .L00002224: movl (%ebp), %eax movl 16(%eax), %eax testl %eax, %eax setne %al movzbl %al, %eax leal -2(%eax), %ecx movl %eax, %edx jmp .L00001D72 .L0000223C: .p2align 3 .L00002240: cmpl $1, %eax jne .L00001C08 .L00002249: cmpl $1, 68(%esp) je .L00002E45 .L00002254: cmpl $5, 68(%esp) je .L000022CA .L0000225B: movl $0, 12(%esp) movl $0, 8(%esp) movl $0, 4(%esp) movl %ebp, (%esp) call _tr_stored_block .L0000227B: cmpl $3, 68(%esp) jne .L000022CA .L00002282: movl 76(%ebp), %esi movl 68(%ebp), %eax leal 2147483647(%esi), %edx xorl %esi, %esi leal (%edx,%edx), %ecx movw %si, (%eax,%edx,2) movl %ecx, 8(%esp) movl $0, 4(%esp) movl %eax, (%esp) call memset@PLT .L000022AB: movl 116(%ebp), %edi testl %edi, %edi jne .L000022CA .L000022B2: movl $0, 108(%ebp) movl $0, 92(%ebp) movl $0, 5812(%ebp) .L000022CA: movl 64(%esp), %eax movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L000022D9: movl 64(%esp), %eax movl 20(%esi), %edi movl 16(%eax), %eax cmpl %edi, %eax cmovbe %eax, %edi testl %edi, %edi jne .L00002AC0 .L000022F0: testl %eax, %eax jne .L00001C08 .L000022F8: movl $-1, 40(%ebp) addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00002307: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00002321: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L0000233C .L00002336: movl 8(%esi), %eax movl %eax, 16(%esi) .L0000233C: movl 64(%esp), %eax movl 16(%eax), %eax testl %eax, %eax jne .L00001D1A .L0000234B: jmp .L000022F8 .L0000234D: movl $0, 32(%ebp) movl $73, 4(%ebp) .L0000235B: movl 28(%eax), %ecx testl %ecx, %ecx je .L00002A76 .L00002366: movl %edx, 20(%esp) movl %edx, %ecx jmp .L0000239A .L0000236E: .p2align 3 .L00002370: movl 28(%eax), %esi movl 32(%ebp), %eax leal 1(%eax), %edi movl %edi, 32(%ebp) movzbl (%esi,%eax), %eax leal 1(%ecx), %edi movl 8(%ebp), %esi movl %edi, 20(%ebp) testb %al, %al movb %al, (%esi,%ecx) je .L00002698 .L00002394: movl 20(%ebp), %ecx movl 28(%ebp), %eax .L0000239A: cmpl %ecx, 12(%ebp) jne .L00002370 .L0000239F: movl 44(%eax), %eax testl %eax, %eax je .L000023AE .L000023A6: cmpl %ecx, %edx jb .L000026D0 .L000023AE: movl 64(%esp), %eax movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L000023BD: movl 64(%esp), %edi movl 20(%esi), %eax movl 16(%edi), %edi cmpl %eax, %edi cmova %eax, %edi testl %edi, %edi jne .L00002570 .L000023D4: movl 20(%ebp), %edx cmpl 12(%ebp), %edx movl %edx, 20(%esp) je .L00002A33 .L000023E4: movl 28(%ebp), %eax movl %edx, %ecx jmp .L00002370 .L000023EB: movl 132(%ebp), %edx cmpl $1, %edx jle .L00001DC5 .L000023FA: cmpl $5, %edx movb $64, %al jle .L00001DC5 .L00002405: cmpl $6, %edx movb $128, %al movl $192, %edx cmovne %edx, %eax jmp .L00001DC5 .L00002417: .p2align 3 .L00002418: leal -1(%eax,%esi), %ecx movzbl (%ecx), %edx movl %esi, 20(%esp) movl %edx, 24(%esp) movzbl (%ecx), %edx cmpb %dl, 1(%ecx) jne .L0000200D .L00002433: movzbl 2(%ecx), %edx cmpl %edx, 24(%esp) jne .L0000200D .L00002441: movzbl 3(%ecx), %edx cmpl %edx, 24(%esp) jne .L0000200D .L0000244F: leal 258(%eax,%esi), %edx addl $3, %ecx movl %edx, 20(%esp) movl 24(%esp), %edx movl %ebp, 28(%esp) jmp .L000024C8 .L00002467: .p2align 3 .L00002468: movzbl 2(%ecx), %ebp cmpl %ebp, %edx jne .L00002E8A .L00002474: movzbl 3(%ecx), %ebp cmpl %ebp, %edx jne .L00002EBA .L00002480: movzbl 4(%ecx), %ebp cmpl %ebp, %edx jne .L00002EAE .L0000248C: movzbl 5(%ecx), %ebp cmpl %ebp, %edx jne .L00002EA2 .L00002498: movzbl 6(%ecx), %ebp cmpl %ebp, %edx jne .L00002E96 .L000024A4: movzbl 7(%ecx), %ebp cmpl %ebp, %edx jne .L00002E7E .L000024B0: addl $8, %ecx movzbl (%ecx), %ebp cmpl %ebp, %edx jne .L00002E3C .L000024BE: cmpl 20(%esp), %ecx jae .L00002E3C .L000024C8: movzbl 1(%ecx), %ebp cmpl %ebp, %edx je .L00002468 .L000024D0: movl 28(%esp), %ebp addl $1, %ecx .L000024D7: subl 20(%esp), %ecx leal 258(%ecx), %edx cmpl %edi, %edx movl %edx, 96(%ebp) jbe .L00002DA9 .L000024EC: movl %edi, 96(%ebp) movl %edi, %edx .L000024F1: movl 5792(%ebp), %eax movl $1, %edi subl $3, %edx movl 5796(%ebp), %ecx leal 1(%eax), %esi movw %di, (%ecx,%eax,2) movl 5784(%ebp), %ecx movl %esi, 5792(%ebp) movb %dl, (%ecx,%eax) movzbl %dl, %edx movzbl _length_code@GOTOFF(%ebx,%edx), %eax xorl %edx, %edx addw $1, 1176(%ebp,%eax,4) movzbl _dist_code@GOTOFF(%ebx), %eax addw $1, 2440(%ebp,%eax,4) movl 5788(%ebp), %eax movl 116(%ebp), %edi subl $1, %eax cmpl %eax, 5792(%ebp) movl 96(%ebp), %eax movl $0, 96(%ebp) sete %dl subl %eax, %edi addl 108(%ebp), %eax movl %edi, 116(%ebp) movl %eax, 108(%ebp) jmp .L00002068 .L00002570: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L0000258A: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L000023D4 .L000025A3: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L000023D4 .L000025AE: .p2align 3 .L000025B0: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L000025CA: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L00001F36 .L000025E3: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00001F36 .L000025EE: .p2align 3 .L000025F0: movl 4(%ebp), %eax cmpl $666, %eax jne .L00001D37 .L000025FE: testl %edx, %edx je .L00001BE0 .L00002606: movl z_errmsg@GOT(%ebx), %eax movl 64(%esp), %esi movl 28(%eax), %eax movl %eax, 24(%esi) movl $-5, %eax jmp .L00001D97 .L00002620: movl 92(%ebp), %edx xorl %ecx, %ecx movl 108(%ebp), %eax subl %edx, %eax testl %edx, %edx js .L00002633 .L0000262E: movl 56(%ebp), %ecx addl %edx, %ecx .L00002633: movl %eax, 8(%esp) movl %ecx, 4(%esp) movl $1, 12(%esp) movl %ebp, (%esp) call _tr_flush_block .L0000264B: movl (%ebp), %edi movl 108(%ebp), %eax movl 28(%edi), %esi movl %eax, 92(%ebp) movl %esi, (%esp) call _tr_flush_bits .L0000265F: movl 20(%esi), %eax movl 16(%edi), %edx cmpl %eax, %edx cmova %eax, %edx testl %edx, %edx jne .L00002DC0 .L00002672: movl (%ebp), %eax movl 16(%eax), %ecx cmpl $1, %ecx sbbl %edx, %edx addl $1, %edx cmpl $1, %ecx sbbl %eax, %eax addl $3, %eax .L00002688: movl $666, 4(%ebp) jmp .L00001D7B .L00002694: .p2align 3 .L00002698: movl 20(%ebp), %edx xorl %esi, %esi .L0000269D: movl 28(%ebp), %eax movl 44(%eax), %edi testl %edi, %edi je .L000026B1 .L000026A7: cmpl %edx, 20(%esp) jb .L00002D70 .L000026B1: testl %esi, %esi je .L0000276E .L000026B9: movl 4(%ebp), %eax cmpl $91, %eax jne .L00001B82 .L000026C5: movl 28(%ebp), %eax jmp .L0000277F .L000026CD: .p2align 3 .L000026D0: subl %edx, %ecx movl 64(%esp), %eax movl %ecx, 8(%esp) addl 8(%ebp), %edx movl %edx, 4(%esp) movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L000026EC: movl 64(%esp), %edi movl %eax, 48(%edi) jmp .L000023AE .L000026F8: movl 4(%eax), %esi testl %esi, %esi je .L00001B2D .L00002703: jmp .L00001CD3 .L00002708: subl %edx, %ecx movl 64(%esp), %eax movl %ecx, 8(%esp) addl 8(%ebp), %edx movl %edx, 4(%esp) movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L00002724: movl 64(%esp), %edi movl %eax, 48(%edi) jmp .L00001F10 .L00002730: movl 12(%esi), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L0000274A: movl 20(%esp), %edx addl %edx, 12(%esi) addl %edx, 16(%edi) addl %edx, 20(%esi) subl %edx, 16(%esi) subl %edx, 20(%edi) jne .L00001FD7 .L00002763: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L00001FD7 .L0000276E: movl 28(%ebp), %eax movl $0, 32(%ebp) movl $91, 4(%ebp) .L0000277F: movl 36(%eax), %ecx testl %ecx, %ecx je .L00002A6A .L0000278A: movl %edx, 20(%esp) movl %edx, %ecx jmp .L000027C2 .L00002792: .p2align 3 .L00002798: movl 36(%eax), %esi movl 32(%ebp), %eax leal 1(%eax), %edi movl %edi, 32(%ebp) movzbl (%esi,%eax), %eax leal 1(%ecx), %edi movl 8(%ebp), %esi movl %edi, 20(%ebp) testb %al, %al movb %al, (%esi,%ecx) je .L00002848 .L000027BC: movl 20(%ebp), %ecx movl 28(%ebp), %eax .L000027C2: cmpl %ecx, 12(%ebp) jne .L00002798 .L000027C7: movl 44(%eax), %eax testl %eax, %eax je .L000027D6 .L000027CE: cmpl %ecx, %edx jb .L000028F0 .L000027D6: movl 64(%esp), %eax movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L000027E5: movl 64(%esp), %edi movl 20(%esi), %eax movl 16(%edi), %edi cmpl %eax, %edi cmova %eax, %edi testl %edi, %edi jne .L00002810 .L000027F8: movl 20(%ebp), %edx cmpl 12(%ebp), %edx movl %edx, 20(%esp) je .L00002A29 .L00002808: movl 28(%ebp), %eax movl %edx, %ecx jmp .L00002798 .L0000280F: .p2align 3 .L00002810: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L0000282A: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L000027F8 .L0000283F: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L000027F8 .L00002847: .p2align 3 .L00002848: movl 20(%ebp), %edx xorl %esi, %esi .L0000284D: movl 28(%ebp), %eax movl 44(%eax), %edi testl %edi, %edi je .L00002861 .L00002857: cmpl %edx, 20(%esp) jb .L00002D41 .L00002861: testl %esi, %esi je .L00002924 .L00002869: movl 4(%ebp), %eax cmpl $103, %eax jne .L00001B8B .L00002875: movl 28(%ebp), %eax .L00002878: movl 44(%eax), %esi testl %esi, %esi je .L00002918 .L00002883: leal 2(%edx), %eax cmpl 12(%ebp), %eax ja .L00002A82 .L0000288F: movl 64(%esp), %esi leal 1(%edx), %ecx movl %ecx, 20(%ebp) movl 8(%ebp), %eax movl 48(%esi), %ecx movb %cl, (%eax,%edx) movl 20(%ebp), %edx movl 8(%ebp), %ecx leal 1(%edx), %eax movl %eax, 20(%ebp) movl 48(%esi), %eax shrl $8, %eax movb %al, (%ecx,%edx) movl $0, 8(%esp) movl $0, 4(%esp) movl $0, (%esp) call crc32@PLT .L000028D3: movl 64(%esp), %esi movl 20(%ebp), %edx movl %eax, 48(%esi) movl $113, 4(%ebp) jmp .L00001B8B .L000028E9: .p2align 4 .L000028F0: subl %edx, %ecx movl 64(%esp), %eax movl %ecx, 8(%esp) addl 8(%ebp), %edx movl %edx, 4(%esp) movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L0000290C: movl 64(%esp), %esi movl %eax, 48(%esi) jmp .L000027D6 .L00002918: movl $113, 4(%ebp) jmp .L00001B8B .L00002924: movl $103, 4(%ebp) movl 28(%ebp), %eax jmp .L00002878 .L00002933: movl 12(%esi), %eax movl 16(%edi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L0000294D: movl 20(%esp), %edx addl %edx, 12(%esi) addl %edx, 16(%edi) addl %edx, 20(%esi) subl %edx, 16(%esi) subl %edx, 20(%edi) jne .L00002117 .L00002966: movl 8(%edi), %eax movl %eax, 16(%edi) jmp .L00002117 .L00002971: movl $-2, %eax jmp .L00001D97 .L0000297B: movl 20(%esp), %eax subl %eax, %edx movl %edx, 8(%esp) addl 8(%ebp), %eax movl %eax, 4(%esp) movl 64(%esp), %eax movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L0000299B: movl 64(%esp), %edi movl 20(%ebp), %edx movl %eax, 48(%edi) movl 28(%ebp), %eax jmp .L00001F64 .L000029AD: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L000029C7: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) subl %edx, 16(%edi) addl %edx, 20(%edi) subl %edx, 20(%esi) jne .L00002224 .L000029E0: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00002224 .L000029EB: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00002A05: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L00001CA5 .L00002A1E: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00001CA5 .L00002A29: movl $1, %esi jmp .L0000284D .L00002A33: movl $1, %esi jmp .L0000269D .L00002A3D: movl 28(%ebp), %eax jmp .L00001F53 .L00002A45: movl $73, 4(%ebp) movl 20(%ebp), %edx jmp .L0000235B .L00002A54: movl z_errmsg@GOT(%ebx), %eax movl 28(%eax), %eax movl %eax, 24(%esi) movl $-5, %eax jmp .L00001D97 .L00002A6A: movl $103, 4(%ebp) jmp .L00002878 .L00002A76: movl $91, 4(%ebp) jmp .L0000277F .L00002A82: movl 64(%esp), %eax movl 28(%eax), %esi movl %esi, (%esp) call _tr_flush_bits .L00002A91: movl 64(%esp), %edi movl 20(%esi), %eax movl 16(%edi), %edi cmpl %eax, %edi cmova %eax, %edi testl %edi, %edi jne .L00002DFE .L00002AA8: movl 20(%ebp), %edx leal 2(%edx), %eax cmpl 12(%ebp), %eax ja .L00001B8B .L00002AB7: jmp .L0000288F .L00002ABC: .p2align 3 .L00002AC0: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00002ADA: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L00002AF5 .L00002AEF: movl 8(%esi), %eax movl %eax, 16(%esi) .L00002AF5: movl 64(%esp), %eax movl 16(%eax), %eax jmp .L000022F0 .L00002B01: movl 20(%ebp), %eax movl 64(%esp), %esi movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 48(%esi), %edx movb %dl, (%ecx,%eax) movl 20(%ebp), %edx movl 8(%ebp), %ecx leal 1(%edx), %eax movl %eax, 20(%ebp) movl 48(%esi), %eax shrl $8, %eax movb %al, (%ecx,%edx) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movzwl 50(%esi), %ecx movb %cl, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movzbl 51(%esi), %ecx movb %cl, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 8(%esi), %edx movb %dl, (%ecx,%eax) movl 20(%ebp), %edx movl 8(%ebp), %ecx leal 1(%edx), %eax movl %eax, 20(%ebp) movl 8(%esi), %eax shrl $8, %eax movb %al, (%ecx,%edx) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movzwl 10(%esi), %ecx movb %cl, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movzbl 11(%esi), %ecx movb %cl, (%edx,%eax) movl %esi, %eax jmp .L00001C83 .L00002BA6: movl $0, 8(%esp) movl $0, 4(%esp) movl $0, (%esp) call crc32@PLT .L00002BC2: movl 64(%esp), %esi movl 8(%ebp), %edx movl %eax, 48(%esi) movl 20(%ebp), %eax leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $31, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $139, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $8, (%edx,%eax) movl 28(%ebp), %eax testl %eax, %eax je .L00002EC6 .L00002C04: movl 20(%ebp), %esi movl 8(%ebp), %edi leal 1(%esi), %edx movl %edx, 20(%ebp) movl (%eax), %edx testl %edx, %edx setne %cl cmpl $1, 44(%eax) sbbl %edx, %edx notl %edx andl $2, %edx addl %edx, %ecx cmpl $1, 16(%eax) sbbl %edx, %edx notl %edx andl $4, %edx addl %edx, %ecx cmpl $1, 28(%eax) sbbl %edx, %edx notl %edx andl $8, %edx addl %ecx, %edx cmpl $1, 36(%eax) sbbl %eax, %eax notl %eax andl $16, %eax addl %edx, %eax movb %al, (%edi,%esi) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 28(%ebp), %edx movl 4(%edx), %edx movb %dl, (%ecx,%eax) movl 20(%ebp), %edx movl 8(%ebp), %ecx leal 1(%edx), %eax movl %eax, 20(%ebp) movl 28(%ebp), %eax movl 4(%eax), %eax shrl $8, %eax movb %al, (%ecx,%edx) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 28(%ebp), %edx movzwl 6(%edx), %edx movb %dl, (%ecx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 28(%ebp), %edx movzbl 7(%edx), %edx movb %dl, (%ecx,%eax) movl 20(%ebp), %ecx leal 1(%ecx), %eax movl %eax, 20(%ebp) movl 132(%ebp), %edx movl $2, %eax addl 8(%ebp), %ecx cmpl $9, %edx je .L00002CD5 .L00002CC3: cmpl $1, 136(%ebp) movl $4, %eax jle .L00002F6A .L00002CD5: movb %al, (%ecx) movl 20(%ebp), %eax movl 8(%ebp), %ecx leal 1(%eax), %edx movl %edx, 20(%ebp) movl 28(%ebp), %edx movl 12(%edx), %edx movb %dl, (%ecx,%eax) movl 28(%ebp), %eax movl 16(%eax), %ecx testl %ecx, %ecx je .L00002D23 .L00002CF6: movl 20(%ebp), %edx movl 20(%eax), %eax movl 8(%ebp), %esi leal 1(%edx), %ecx movl %ecx, 20(%ebp) movb %al, (%esi,%edx) movl 20(%ebp), %edx movl 8(%ebp), %ecx leal 1(%edx), %eax movl %eax, 20(%ebp) movl 28(%ebp), %eax movl 20(%eax), %eax shrl $8, %eax movb %al, (%ecx,%edx) movl 28(%ebp), %eax .L00002D23: movl 44(%eax), %edx testl %edx, %edx jne .L00002E52 .L00002D2E: movl $0, 32(%ebp) movl $69, 4(%ebp) jmp .L00001EAB .L00002D41: movl 20(%esp), %eax subl %eax, %edx movl %edx, 8(%esp) addl 8(%ebp), %eax movl %eax, 4(%esp) movl 64(%esp), %eax movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L00002D61: movl 64(%esp), %edi movl 20(%ebp), %edx movl %eax, 48(%edi) jmp .L00002861 .L00002D70: movl 20(%esp), %eax subl %eax, %edx movl %edx, 8(%esp) addl 8(%ebp), %eax movl %eax, 4(%esp) movl 64(%esp), %eax movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L00002D90: movl 64(%esp), %edi movl 20(%ebp), %edx movl %eax, 48(%edi) jmp .L000026B1 .L00002D9F: movl $1, %eax jmp .L00001D97 .L00002DA9: cmpl $2, %edx ja .L000024F1 .L00002DB2: movl %esi, 20(%esp) jmp .L0000200D .L00002DBB: .p2align 3 .L00002DC0: movl 12(%edi), %eax movl 16(%esi), %ecx movl %edx, 8(%esp) movl %edx, 20(%esp) movl %eax, (%esp) movl %ecx, 4(%esp) call memcpy@PLT .L00002DDA: movl 20(%esp), %edx addl %edx, 12(%edi) addl %edx, 16(%esi) subl %edx, 16(%edi) addl %edx, 20(%edi) subl %edx, 20(%esi) jne .L00002672 .L00002DF3: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00002672 .L00002DFE: movl 64(%esp), %eax movl 16(%esi), %edx movl 12(%eax), %eax movl %edi, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00002E18: movl 64(%esp), %eax addl %edi, 12(%eax) addl %edi, 16(%esi) addl %edi, 20(%eax) subl %edi, 16(%eax) subl %edi, 20(%esi) jne .L00002AA8 .L00002E31: movl 8(%esi), %eax movl %eax, 16(%esi) jmp .L00002AA8 .L00002E3C: movl 28(%esp), %ebp jmp .L000024D7 .L00002E45: movl %ebp, (%esp) call _tr_align .L00002E4D: jmp .L000022CA .L00002E52: movl 20(%ebp), %eax movl %eax, 8(%esp) movl 8(%ebp), %eax movl %eax, 4(%esp) movl 64(%esp), %eax movl 48(%eax), %eax movl %eax, (%esp) call crc32@PLT .L00002E6F: movl 64(%esp), %esi movl %eax, 48(%esi) movl 28(%ebp), %eax jmp .L00002D2E .L00002E7E: movl 28(%esp), %ebp addl $7, %ecx jmp .L000024D7 .L00002E8A: movl 28(%esp), %ebp addl $2, %ecx jmp .L000024D7 .L00002E96: movl 28(%esp), %ebp addl $6, %ecx jmp .L000024D7 .L00002EA2: movl 28(%esp), %ebp addl $5, %ecx jmp .L000024D7 .L00002EAE: movl 28(%esp), %ebp addl $4, %ecx jmp .L000024D7 .L00002EBA: movl 28(%esp), %ebp addl $3, %ecx jmp .L000024D7 .L00002EC6: movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $0, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $0, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $0, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $0, (%edx,%eax) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $0, (%edx,%eax) movl 20(%ebp), %ecx movl 132(%ebp), %edx leal 1(%ecx), %eax addl 8(%ebp), %ecx cmpl $9, %edx movl %eax, 20(%ebp) movl $2, %eax je .L00002F49 .L00002F32: cmpl $1, 136(%ebp) movl $4, %eax jg .L00002F49 .L00002F40: cmpl $1, %edx setle %al sall $2, %eax .L00002F49: movb %al, (%ecx) movl 20(%ebp), %eax movl 8(%ebp), %edx leal 1(%eax), %ecx movl %ecx, 20(%ebp) movb $3, (%edx,%eax) movl 20(%ebp), %edx movl $113, 4(%ebp) jmp .L00001B8B .L00002F6A: cmpl $1, %edx setle %al sall $2, %eax jmp .L00002CD5 .size deflate, .-deflate # ---------------------- .L00002F78: .p2align 4 # ---------------------- .globl deflateParams .type deflateParams, @function deflateParams: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $28, %esp movl 48(%esp), %edx call __x86.get_pc_thunk.bx .L00002F90: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 52(%esp), %edi testl %edx, %edx je .L000030A8 .L00002FA2: movl 28(%edx), %esi testl %esi, %esi je .L000030A8 .L00002FAD: cmpl $-1, %edi je .L00003048 .L00002FB6: cmpl $9, %edi ja .L000030A8 .L00002FBF: cmpl $4, 56(%esp) ja .L000030A8 .L00002FCA: movl 132(%esi), %eax leal configuration_table@GOTOFF(%ebx), %ebp movl %eax, 12(%esp) leal (%eax,%eax,2), %eax movl 8(%ebp,%eax,4), %eax movl %eax, %ecx movl 56(%esp), %eax cmpl %eax, 136(%esi) je .L00003058 .L00002FEF: movl 8(%edx), %ecx xorl %eax, %eax testl %ecx, %ecx jne .L00003068 .L00002FF8: cmpl 12(%esp), %edi je .L0000302F .L00002FFE: leal (%edi,%edi,2), %edx leal (%ebp,%edx,4), %edx movzwl 2(%edx), %ecx movl %edi, 132(%esi) movl %ecx, 128(%esi) movzwl (%edx), %ecx movl %ecx, 140(%esi) movzwl 4(%edx), %ecx movzwl 6(%edx), %edx movl %ecx, 144(%esi) movl %edx, 124(%esi) .L0000302F: movl 56(%esp), %edi movl %edi, 136(%esi) .L00003039: addl $28, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00003041: .p2align 3 .L00003048: movl $6, %edi jmp .L00002FBF .L00003052: .p2align 3 .L00003058: leal (%edi,%edi,2), %eax cmpl %ecx, 8(%ebp,%eax,4) jne .L00002FEF .L00003061: xorl %eax, %eax jmp .L00002FF8 .L00003065: .p2align 3 .L00003068: movl $5, 4(%esp) movl %edx, (%esp) call deflate@PLT .L00003078: cmpl $-5, %eax je .L00003090 .L0000307D: movl 132(%esi), %ecx movl %ecx, 12(%esp) jmp .L00002FF8 .L0000308C: .p2align 3 .L00003090: movl 20(%esi), %edx testl %edx, %edx jne .L0000307D .L00003097: movl 132(%esi), %eax movl %eax, 12(%esp) xorl %eax, %eax jmp .L00002FF8 .L000030A8: movl $-2, %eax jmp .L00003039 .size deflateParams, .-deflateParams # ---------------------- .L000030AF: .p2align 3 # ---------------------- .globl deflateEnd .type deflateEnd, @function deflateEnd: pushl %edi pushl %esi subl $20, %esp movl 32(%esp), %esi testl %esi, %esi je .L0000319B .L000030C1: movl 28(%esi), %eax testl %eax, %eax je .L0000319B .L000030CC: movl 4(%eax), %edi cmpl $42, %edi jne .L00003160 .L000030D8: movl 8(%eax), %edx testl %edx, %edx je .L000030EF .L000030DF: movl %edx, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *36(%esi) .L000030EC: movl 28(%esi), %eax .L000030EF: movl 68(%eax), %edx testl %edx, %edx je .L00003106 .L000030F6: movl %edx, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *36(%esi) .L00003103: movl 28(%esi), %eax .L00003106: movl 64(%eax), %edx testl %edx, %edx je .L0000311D .L0000310D: movl %edx, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *36(%esi) .L0000311A: movl 28(%esi), %eax .L0000311D: movl 56(%eax), %edx testl %edx, %edx je .L00003134 .L00003124: movl %edx, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *36(%esi) .L00003131: movl 28(%esi), %eax .L00003134: movl %eax, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *36(%esi) .L00003141: xorl %eax, %eax cmpl $113, %edi setne %al movl $0, 28(%esi) leal -3(%eax,%eax,2), %eax .L00003154: addl $20, %esp popl %esi popl %edi ret .L0000315A: .p2align 3 .L00003160: cmpl $69, %edi je .L000030D8 .L00003169: cmpl $73, %edi je .L000030D8 .L00003172: cmpl $91, %edi je .L000030D8 .L0000317B: cmpl $103, %edi .p2align 3 je .L000030D8 .L00003186: cmpl $113, %edi je .L000030D8 .L0000318F: cmpl $666, %edi je .L000030D8 .L0000319B: movl $-2, %eax jmp .L00003154 .size deflateEnd, .-deflateEnd # ---------------------- .L000031A2: .p2align 4 # ---------------------- .globl deflateInit2_ .type deflateInit2_, @function deflateInit2_: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $44, %esp movl 88(%esp), %eax call __x86.get_pc_thunk.bx .L000031C0: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 64(%esp), %edi movl 76(%esp), %ecx testl %eax, %eax je .L00003438 .L000031D6: cmpb $49, (%eax) jne .L00003438 .L000031DF: cmpl $56, 92(%esp) jne .L00003438 .L000031EA: testl %edi, %edi je .L00003448 .L000031F2: movl 32(%edi), %eax movl $0, 24(%edi) testl %eax, %eax je .L00003458 .L00003204: movl 36(%edi), %esi testl %esi, %esi je .L00003478 .L0000320F: cmpl $-1, 68(%esp) movl $6, %edx cmovne 68(%esp), %edx testl %ecx, %ecx movl %edx, 68(%esp) js .L00003410 .L0000322A: cmpl $15, %ecx movl $1, %ebp jg .L00003400 .L00003238: movl 80(%esp), %edx leal -1(%edx), %esi cmpl $8, %esi ja .L00003448 .L00003248: cmpl $8, 72(%esp) jne .L00003448 .L00003253: leal -8(%ecx), %esi cmpl $7, %esi ja .L00003448 .L0000325F: cmpl $9, 68(%esp) ja .L00003448 .L0000326A: cmpl $4, 84(%esp) ja .L00003448 .L00003275: cmpl $8, %ecx je .L00003420 .L0000327E: movl %ecx, 24(%esp) .L00003282: movl $5828, 8(%esp) movl $1, 4(%esp) movl 40(%edi), %esi movl %ecx, 28(%esp) movl %esi, (%esp) call *%eax .L0000329E: testl %eax, %eax movl %eax, %esi je .L000034B0 .L000032A8: movl 28(%esp), %ecx movl $-1431655765, %edx movl %eax, 28(%edi) movl %ebp, 24(%eax) movl $1, %ebp movl %edi, (%eax) movl $0, 28(%eax) movl 24(%esp), %eax sall %cl, %ebp movl %ebp, 44(%esi) movl %eax, 48(%esi) leal -1(%ebp), %eax movl %eax, 52(%esi) movl 80(%esp), %eax leal 7(%eax), %ecx movl $1, %eax sall %cl, %eax movl %ecx, 80(%esi) movl %eax, %ecx movl %eax, 76(%esi) movl 80(%esp), %eax subl $1, %ecx movl %ecx, 84(%esi) addl $9, %eax mull %edx shrl $1, %edx movl %edx, 88(%esi) movl $2, 8(%esp) movl %ebp, 4(%esp) movl 40(%edi), %eax movl %eax, (%esp) call *32(%edi) .L00003316: movl %eax, 56(%esi) movl $2, 8(%esp) movl 44(%esi), %eax movl %eax, 4(%esp) movl 40(%edi), %eax movl %eax, (%esp) call *32(%edi) .L00003331: movl %eax, 64(%esi) movl $2, 8(%esp) movl 76(%esi), %eax movl %eax, 4(%esp) movl 40(%edi), %eax movl %eax, (%esp) call *32(%edi) .L0000334C: movl $0, 5824(%esi) movl %eax, 68(%esi) movl 80(%esp), %eax leal 6(%eax), %ecx movl $1, %eax sall %cl, %eax movl %eax, 5788(%esi) movl $4, 8(%esp) movl %eax, 4(%esp) movl 40(%edi), %eax movl %eax, (%esp) call *32(%edi) .L00003382: movl 5788(%esi), %edx leal 0(,%edx,4), %ecx movl %ecx, 12(%esi) movl 56(%esi), %ecx movl %eax, 8(%esi) testl %ecx, %ecx je .L00003488 .L000033A0: movl 64(%esi), %ebp testl %ebp, %ebp je .L00003488 .L000033AB: movl 68(%esi), %ecx testl %ecx, %ecx je .L00003488 .L000033B6: testl %eax, %eax je .L00003488 .L000033BE: movl %edx, %ecx andl $-2, %ecx leal (%edx,%edx,2), %edx addl %eax, %ecx addl %edx, %eax movl %eax, 5784(%esi) movl 68(%esp), %eax movl %ecx, 5796(%esi) movb $8, 36(%esi) movl %eax, 132(%esi) movl 84(%esp), %eax movl %eax, 136(%esi) movl %edi, (%esp) call deflateReset@PLT .L000033F6: addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L000033FE: .p2align 3 .L00003400: subl $16, %ecx movw $2, %bp jmp .L00003238 .L0000340C: .p2align 3 .L00003410: negl %ecx xorl %ebp, %ebp jmp .L00003238 .L00003419: .p2align 4 .L00003420: movl $9, 24(%esp) movl $9, %ecx jmp .L00003282 .L00003432: .p2align 3 .L00003438: addl $44, %esp movl $-6, %eax popl %ebx popl %esi popl %edi popl %ebp ret .L00003445: .p2align 3 .L00003448: addl $44, %esp movl $-2, %eax popl %ebx popl %esi popl %edi popl %ebp ret .L00003455: .p2align 3 .L00003458: movl 36(%edi), %esi leal zcalloc@GOTOFF(%ebx), %eax movl %eax, 32(%edi) movl $0, 40(%edi) testl %esi, %esi jne .L0000320F .L00003473: .p2align 3 .L00003478: leal zcfree@GOTOFF(%ebx), %edx movl %edx, 36(%edi) jmp .L0000320F .L00003486: .p2align 3 .L00003488: movl z_errmsg@GOT(%ebx), %eax movl $666, 4(%esi) movl 24(%eax), %eax movl %eax, 24(%edi) movl %edi, (%esp) call deflateEnd@PLT .L000034A3: movl $-4, %eax jmp .L000033F6 .L000034AD: .p2align 3 .L000034B0: movl $-4, %eax jmp .L000033F6 .size deflateInit2_, .-deflateInit2_ # ---------------------- .L000034BA: .p2align 3 # ---------------------- .globl deflateInit_ .type deflateInit_, @function deflateInit_: pushl %ebx subl $40, %esp movl 60(%esp), %eax call __x86.get_pc_thunk.bx .L000034CD: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl $0, 20(%esp) movl $8, 16(%esp) movl %eax, 28(%esp) movl 56(%esp), %eax movl $15, 12(%esp) movl $8, 8(%esp) movl %eax, 24(%esp) movl 52(%esp), %eax movl %eax, 4(%esp) movl 48(%esp), %eax movl %eax, (%esp) call deflateInit2_@PLT .L00003513: addl $40, %esp popl %ebx ret .size deflateInit_, .-deflateInit_ # ---------------------- .L00003518: .p2align 4 # ---------------------- .globl deflateCopy .type deflateCopy, @function deflateCopy: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $44, %esp movl 68(%esp), %eax call __x86.get_pc_thunk.bx .L00003530: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 64(%esp), %edx testl %eax, %eax je .L000037E8 .L00003542: testl %edx, %edx je .L000037E8 .L0000354A: movl 28(%eax), %esi testl %esi, %esi movl %esi, 24(%esp) je .L000037E8 .L00003559: movl (%eax), %ecx movl %edx, 28(%esp) movl %ecx, (%edx) movl 4(%eax), %ecx movl %ecx, 4(%edx) movl 8(%eax), %ecx movl %ecx, 8(%edx) movl 12(%eax), %ecx movl %ecx, 12(%edx) movl 16(%eax), %ecx movl %ecx, 16(%edx) movl 20(%eax), %ecx movl %ecx, 20(%edx) movl 24(%eax), %ecx movl %ecx, 24(%edx) movl 28(%eax), %ecx movl %ecx, 28(%edx) movl 32(%eax), %ecx movl %ecx, 32(%edx) movl 36(%eax), %ecx movl %ecx, 36(%edx) movl 40(%eax), %ecx movl %ecx, 40(%edx) movl 44(%eax), %ecx movl %ecx, 44(%edx) movl 48(%eax), %ecx movl %ecx, 48(%edx) movl 52(%eax), %eax movl %eax, 52(%edx) movl $5828, 8(%esp) movl $1, 4(%esp) movl 40(%edx), %eax movl %eax, (%esp) call *32(%edx) .L000035C8: testl %eax, %eax movl %eax, %ebp je .L00003808 .L000035D2: movl 28(%esp), %edx testl $1, %ebp movl %eax, %edi movl %eax, 28(%edx) movl $5828, %eax jne .L000037C8 .L000035EC: testl $2, %edi jne .L000037B0 .L000035F8: movl %eax, %ecx shrl $2, %ecx testb $2, %al rep movsl jne .L00003798 .L00003607: testb $1, %al jne .L00003788 .L0000360F: movl %edx, (%ebp) movl $2, 8(%esp) movl 44(%ebp), %eax movl %edx, 28(%esp) movl %eax, 4(%esp) movl 40(%edx), %eax movl %eax, (%esp) call *32(%edx) .L0000362E: movl 28(%esp), %edx movl %eax, 56(%ebp) movl $2, 8(%esp) movl 44(%ebp), %eax movl %eax, 4(%esp) movl 40(%edx), %eax movl %eax, (%esp) call *32(%edx) .L0000364D: movl 28(%esp), %edx movl %eax, 64(%ebp) movl $2, 8(%esp) movl 76(%ebp), %eax movl %eax, 4(%esp) movl 40(%edx), %eax movl %eax, (%esp) call *32(%edx) .L0000366C: movl 28(%esp), %edx movl %eax, 68(%ebp) movl $4, 8(%esp) movl 5788(%ebp), %eax movl %eax, 4(%esp) movl 40(%edx), %eax movl %eax, (%esp) call *32(%edx) .L0000368E: movl 28(%esp), %edx movl %eax, %esi movl %eax, 8(%ebp) movl 56(%ebp), %eax testl %eax, %eax je .L000037F0 .L000036A2: movl 64(%ebp), %edi testl %edi, %edi je .L000037F0 .L000036AD: movl 68(%ebp), %ecx testl %ecx, %ecx je .L000037F0 .L000036B8: testl %esi, %esi je .L000037F0 .L000036C0: movl 44(%ebp), %edi leal (%edi,%edi), %ecx movl 24(%esp), %edi movl 56(%edi), %edx movl %ecx, 8(%esp) movl %eax, (%esp) movl %edx, 4(%esp) call memcpy@PLT .L000036DD: movl 44(%ebp), %ecx movl 64(%edi), %edx movl 64(%ebp), %eax addl %ecx, %ecx movl %ecx, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L000036F8: movl 76(%ebp), %ecx movl 68(%edi), %edx movl 68(%ebp), %eax addl %ecx, %ecx movl %ecx, 8(%esp) movl %edx, 4(%esp) movl %eax, (%esp) call memcpy@PLT .L00003713: movl 8(%edi), %edx movl 12(%ebp), %ecx movl 8(%ebp), %eax movl %edx, 4(%esp) movl %ecx, 8(%esp) movl %eax, (%esp) call memcpy@PLT .L0000372C: movl 16(%edi), %eax movl 8(%ebp), %edx addl %edx, %eax subl 8(%edi), %eax movl %eax, 16(%ebp) movl 5788(%ebp), %eax movl %eax, %ecx leal (%eax,%eax,2), %eax andl $-2, %ecx addl %eax, %edx addl %ecx, %esi leal 148(%ebp), %eax movl %eax, 2840(%ebp) leal 2440(%ebp), %eax movl %eax, 2852(%ebp) leal 2684(%ebp), %eax movl %eax, 2864(%ebp) xorl %eax, %eax movl %esi, 5796(%ebp) movl %edx, 5784(%ebp) .L0000377E: addl $44, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L00003786: .p2align 3 .L00003788: movzbl (%esi,%ecx), %eax movb %al, (%edi,%ecx) jmp .L0000360F .L00003794: .p2align 3 .L00003798: movzwl (%esi), %ecx testb $1, %al movw %cx, (%edi) movl $2, %ecx je .L0000360F .L000037AB: jmp .L00003788 .L000037AD: .p2align 3 .L000037B0: movzwl (%esi), %ecx addl $2, %edi addl $2, %esi subl $2, %eax movw %cx, -2(%edi) jmp .L000035F8 .L000037C5: .p2align 3 .L000037C8: movl 24(%esp), %esi leal 1(%ebp), %edi movzbl (%esi), %eax leal 1(%esi), %esi movb %al, (%ebp) movl $5827, %eax jmp .L000035EC .L000037E2: .p2align 3 .L000037E8: movl $-2, %eax jmp .L0000377E .L000037EF: .p2align 3 .L000037F0: movl %edx, (%esp) call deflateEnd@PLT .L000037F8: movl $-4, %eax jmp .L0000377E .L00003802: .p2align 3 .L00003808: movl $-4, %eax jmp .L0000377E .size deflateCopy, .-deflateCopy # ---------------------- .hidden _length_code .hidden _dist_code .hidden _tr_flush_block .hidden _tr_flush_bits .hidden _tr_init .hidden _tr_stored_block .hidden _tr_align .hidden zcalloc .hidden zcfree .ident "GCC: (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4" .section .note.GNU-stack,"",@progbits
21.733056
88
0.505002
414cce9f5cac3cff4d74018013057ec2674aea27
505
asm
Assembly
programs/oeis/078/A078881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/078/A078881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/078/A078881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A078881: Size of the largest subset S of {1,2,3,...,n} with the property that if i and j are distinct elements of S then i XOR j is not in S, where XOR is the bitwise exclusive-OR operator. ; 1,2,2,3,4,4,4,5,6,7,8,8,8,8,8,9,10,11,12,13,14,15,16,16,16,16,16,16,16,16,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,33,34,35,36,37,38,39,40,41,42,43,44 lpb $0 mov $2,$0 sub $0,1 trn $0,$1 sub $2,$0 trn $0,$2 add $1,$2 lpe add $1,1 mov $0,$1
36.071429
210
0.635644
c4c09e0a26c27038071fa52420f3701ba223ddca
7,911
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x103f, %rcx inc %r8 mov $0x6162636465666768, %rbp movq %rbp, %xmm6 movups %xmm6, (%rcx) nop nop dec %r10 lea addresses_UC_ht+0x1233f, %rax nop nop nop nop add %r13, %r13 vmovups (%rax), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbp nop cmp $20242, %r13 lea addresses_WC_ht+0x63f, %r10 and $23657, %rdx mov $0x6162636465666768, %rcx movq %rcx, %xmm4 movups %xmm4, (%r10) nop nop nop nop nop sub %rcx, %rcx lea addresses_A_ht+0xf93f, %rsi lea addresses_WC_ht+0x15539, %rdi nop nop nop cmp $1452, %r13 mov $85, %rcx rep movsq nop nop nop nop add $23986, %r10 lea addresses_UC_ht+0x18bdf, %r13 nop nop nop nop nop cmp %rdx, %rdx movw $0x6162, (%r13) nop nop nop nop nop cmp $15637, %r13 lea addresses_WC_ht+0x1caab, %rdx sub %rbp, %rbp vmovups (%rdx), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r13 nop nop nop nop nop cmp $32171, %r13 lea addresses_A_ht+0x193f, %rsi nop nop nop sub $571, %rbp mov $0x6162636465666768, %r10 movq %r10, (%rsi) nop nop add $33326, %r8 lea addresses_D_ht+0x1ac1f, %rsi lea addresses_D_ht+0x88f, %rdi clflush (%rsi) nop nop nop xor %r8, %r8 mov $68, %rcx rep movsq and $64502, %rdx lea addresses_WT_ht+0x15aab, %rsi lea addresses_WT_ht+0x93f, %rdi nop nop nop nop and %rbp, %rbp mov $86, %rcx rep movsl nop nop nop sub %rdx, %rdx lea addresses_WT_ht+0x1714b, %r8 nop nop nop nop sub $30977, %rax movl $0x61626364, (%r8) sub $52465, %rdx lea addresses_WC_ht+0x1733f, %rbp nop xor $9436, %rcx movb $0x61, (%rbp) nop nop nop nop nop dec %rdx lea addresses_normal_ht+0xc93f, %rax nop nop nop nop cmp %r13, %r13 movw $0x6162, (%rax) nop nop nop cmp %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_UC+0x1a13f, %rsi lea addresses_WT+0x1e52f, %rdi nop nop nop nop and $58341, %rbx mov $47, %rcx rep movsl nop nop nop nop inc %r11 // Load lea addresses_UC+0x62ff, %rbx nop nop nop nop add %rdx, %rdx mov (%rbx), %r9 nop nop nop nop sub $5816, %r11 // REPMOV lea addresses_A+0x105bf, %rsi lea addresses_WC+0xc93f, %rdi clflush (%rdi) cmp %r15, %r15 mov $108, %rcx rep movsw nop nop nop inc %rcx // Faulty Load lea addresses_UC+0x1a13f, %rbx dec %rdx mov (%rbx), %ecx lea oracles, %r9 and $0xff, %rcx shlq $12, %rcx mov (%r9,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC', 'congruent': 0}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_UC'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC', 'congruent': 6}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': True, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 1}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': True, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 3, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 9}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
31.771084
2,999
0.656301
db4ba14d05acf0bf1ad0f722716bc7e17c368830
321
asm
Assembly
src/u2/p8.asm
luishendrix92/lenguajezinterfaz
05d7c0621f3eb99f0134ae100cb451543ff80afc
[ "MIT" ]
null
null
null
src/u2/p8.asm
luishendrix92/lenguajezinterfaz
05d7c0621f3eb99f0134ae100cb451543ff80afc
[ "MIT" ]
null
null
null
src/u2/p8.asm
luishendrix92/lenguajezinterfaz
05d7c0621f3eb99f0134ae100cb451543ff80afc
[ "MIT" ]
null
null
null
; 8 - Imprimir 5 veces una frase cualquiera ; López Garay Luis Felipe ; 15211312 ; 02 de Octubre del 2018 .Model small .Stack 64 .Data frase db "Casi repruebo la unidad uno :)", 10, 13, "$" .Code mov ax,@Data mov ds,ax mov cx,5 ciclofrase: lea dx,frase mov ah,09h int 21h loop ciclofrase .Exit end
11.464286
55
0.669782
189a06665d947577501caf97cc16d56b72fbfcff
283
asm
Assembly
libsrc/games/c128/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/c128/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/c128/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; $Id: bit_open_di.asm,v 1.2 2015/01/19 01:32:44 pauloscustodio Exp $ ; ; TRS-80 1 bit sound functions ; ; Open sound and disable interrupts for exact timing ; ; Stefano Bodrato - 8/4/2008 ; PUBLIC bit_open_di EXTERN bit_open .bit_open_di jp bit_open ret
17.6875
69
0.674912
49b5ab6faa79bf6d92d1e16e9c5580630ff652dd
424
asm
Assembly
data/maps/objects/CeladonMartRoof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/CeladonMartRoof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/CeladonMartRoof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
CeladonMartRoof_Object: db $42 ; border block def_warps warp 15, 2, 0, CELADON_MART_5F def_signs sign 10, 1, 3 ; CeladonMartRoofText3 sign 11, 1, 4 ; CeladonMartRoofText4 sign 12, 2, 5 ; CeladonMartRoofText5 sign 13, 2, 6 ; CeladonMartRoofText6 def_objects object SPRITE_SUPER_NERD, 10, 4, STAY, LEFT, 1 ; person object SPRITE_LITTLE_GIRL, 5, 5, WALK, ANY_DIR, 2 ; person def_warps_to CELADON_MART_ROOF
23.555556
59
0.742925
30aff6c51a98d2f3cc8f58feb75248372a8980d4
360
asm
Assembly
data/maps/objects/FuchsiaBillsGrandpasHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/FuchsiaBillsGrandpasHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/FuchsiaBillsGrandpasHouse.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
FuchsiaBillsGrandpasHouse_Object: db $a ; border block def_warps warp 2, 7, 1, LAST_MAP warp 3, 7, 1, LAST_MAP def_signs def_objects object SPRITE_MIDDLE_AGED_WOMAN, 2, 3, STAY, RIGHT, 1 ; person object SPRITE_GAMBLER, 7, 2, STAY, UP, 2 ; person object SPRITE_YOUNGSTER, 5, 5, STAY, NONE, 3 ; person def_warps_to FUCHSIA_BILLS_GRANDPAS_HOUSE
22.5
63
0.741667
71751d1ed65fc253b0f32d0db82e6a834e70bd97
370
asm
Assembly
WEEK-6/10.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-6/10.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-6/10.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
LXI H,9000 MVI C,03 // 3 numbers MVI B,00 // negetive nos MVI E,00 // zeros MVI D,00 // positive nos LOOP: MOV A,M CPI 00 JZ ZERO ANI 80 JNZ NEG INR D JMP LAST ZERO: INR E JMP LAST NEG: INR B LAST: INX H DCR C JNZ LOOP LXI H,9010 MOV M,B INX H MOV M,E INX H MOV M,D HLT
12.333333
28
0.497297
398e443c2ddf3bd6556d4f3fa063aceabd8b70ae
20
asm
Assembly
src/main/fragment/mos6502-common/vbuxx_lt_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vbuxx_lt_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vbuxx_lt_vbuc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
cpx #{c1} bcc {la1}
6.666667
9
0.55
fcf3138076170d5463f04e3a9c9ff664da8e89e5
1,356
asm
Assembly
programs/oeis/074/A074677.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/074/A074677.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/074/A074677.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A074677: a(n) = Sum_{i = 0..floor(n/2)} (-1)^(i + floor(n/2)) F(2*i + e), where F = A000045 (Fibonacci numbers) and e = (1-(-1)^n)/2. ; 0,1,1,1,2,4,6,9,15,25,40,64,104,169,273,441,714,1156,1870,3025,4895,7921,12816,20736,33552,54289,87841,142129,229970,372100,602070,974169,1576239,2550409,4126648,6677056,10803704,17480761,28284465,45765225,74049690,119814916,193864606,313679521,507544127,821223649,1328767776,2149991424,3478759200,5628750625,9107509825,14736260449,23843770274,38580030724,62423800998,101003831721,163427632719,264431464441,427859097160,692290561600,1120149658760,1812440220361,2932589879121,4745030099481,7677619978602,12422650078084,20100270056686,32522920134769,52623190191455,85146110326225,137769300517680,222915410843904,360684711361584,583600122205489,944284833567073,1527884955772561,2472169789339634,4000054745112196,6472224534451830,10472279279564025,16944503814015855,27416783093579881,44361286907595736,71778070001175616,116139356908771352,187917426909946969,304056783818718321,491974210728665289,796030994547383610,1288005205276048900,2084036199823432510,3372041405099481409,5456077604922913919,8828119010022395329,14284196614945309248,23112315624967704576,37396512239913013824,60508827864880718401,97905340104793732225,158414167969674450625 add $0,1 seq $0,211 ; a(n) = a(n-1) + a(n-2) - 2, a(0) = 4, a(1) = 3. div $0,5
193.714286
1,139
0.842183
498fdfc68c326e07fd4ff3f52fb32537bc6cc276
418
asm
Assembly
test/asm/nested-macrodef.asm
ISSOtm/rgbds-deb
f031957fd6ec0930269f53c6468f63039c9ef72a
[ "MIT" ]
null
null
null
test/asm/nested-macrodef.asm
ISSOtm/rgbds-deb
f031957fd6ec0930269f53c6468f63039c9ef72a
[ "MIT" ]
null
null
null
test/asm/nested-macrodef.asm
ISSOtm/rgbds-deb
f031957fd6ec0930269f53c6468f63039c9ef72a
[ "MIT" ]
null
null
null
outer_ok: MACRO definition equs "inner_ok: MACRO\nPRINTT \"Hello!\\n\"\nENDM" definition PURGE definition ENDM outer_ok inner_ok outer_arg: MACRO definition equs "inner_arg: MACRO\nPRINTT \"outer: \1\\ninner: \\1\\n\"\nENDM" definition PURGE definition ENDM outer_arg outside inner_arg inside outer: MACRO WARN "Nested macros shouldn't work, whose argument would be \\1?" inner: MACRO ENDM outer inner
14.928571
78
0.751196
52ec5f30d51d6ee4235ba2c2d7a83fe621fb51fc
502
asm
Assembly
Student/examples/Correct/CPRL0/Correct_125.asm
SoftMoore/CPRL-Kt
c2dfdbd5b30ed6175f419398071e2f98e582d23a
[ "Unlicense" ]
6
2021-02-02T10:08:02.000Z
2022-03-24T08:10:44.000Z
Student/examples/Correct/CPRL0/Correct_125.asm
SoftMoore/CPRL-Kt
c2dfdbd5b30ed6175f419398071e2f98e582d23a
[ "Unlicense" ]
1
2021-02-27T21:55:26.000Z
2021-02-28T12:39:29.000Z
Student/examples/Correct/CPRL0/Correct_125.asm
SoftMoore/CPRL-Kt
c2dfdbd5b30ed6175f419398071e2f98e582d23a
[ "Unlicense" ]
6
2020-02-24T13:51:32.000Z
2021-06-05T19:02:05.000Z
PROGRAM 8 LDGADDR 0 LDCINT 1 STOREW L0: LDGADDR 0 LDGADDR 0 LOADW LDCINT 1 ADD STOREW LDGADDR 4 LDGADDR 0 LOADW STOREW L2: LDGADDR 4 LDGADDR 4 LOADW LDCINT 2 ADD STOREW LDGADDR 4 LOADW LDCINT 10 CMP BG L3 BR L2 L3: LDGADDR 0 LOADW LDCINT 6 CMP BZ L1 BR L0 L1: LDCSTR "x = " PUTSTR LDGADDR 0 LOADW PUTINT PUTEOL LDCSTR "y = " PUTSTR LDGADDR 4 LOADW PUTINT PUTEOL HALT
10.04
16
0.559761
e824f68e3311249f3d2d8f4f230faab1b4466a3a
608
asm
Assembly
oeis/038/A038867.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/038/A038867.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/038/A038867.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A038867: (n+5)^3 - n^3. ; Submitted by Christian Krause ; 125,215,335,485,665,875,1115,1385,1685,2015,2375,2765,3185,3635,4115,4625,5165,5735,6335,6965,7625,8315,9035,9785,10565,11375,12215,13085,13985,14915,15875,16865,17885,18935,20015,21125,22265,23435,24635,25865,27125,28415,29735,31085,32465,33875,35315,36785,38285,39815,41375,42965,44585,46235,47915,49625,51365,53135,54935,56765,58625,60515,62435,64385,66365,68375,70415,72485,74585,76715,78875,81065,83285,85535,87815,90125,92465,94835,97235,99665,102125,104615,107135,109685,112265,114875,117515 add $0,3 bin $0,2 sub $0,3 mul $0,30 add $0,125
60.8
500
0.786184
738ce67eea827a9444828d3fa727123c1a438b13
6,474
asm
Assembly
src/diskio.asm
poletaevvlad/http-asm
353d90b4e61f37041e4a8dda2547d0aeef7dc9bb
[ "MIT" ]
7
2018-10-12T19:41:55.000Z
2022-01-29T08:37:04.000Z
src/diskio.asm
poletaevvlad/http-asm
353d90b4e61f37041e4a8dda2547d0aeef7dc9bb
[ "MIT" ]
null
null
null
src/diskio.asm
poletaevvlad/http-asm
353d90b4e61f37041e4a8dda2547d0aeef7dc9bb
[ "MIT" ]
2
2021-02-06T08:36:22.000Z
2022-01-26T05:14:12.000Z
%include "bufferutils.asm" %define open_sc 2 %define fstat_sc 5 %define getdents_sc 78 %define write_sc 1 %define close_sc 3 %define S_IFDIR 0040000o %define S_IFREG 0100000o %define S_IFMT 0170000o %define EACCESS 13 %define ENOENT 2 section .bss path resq 1 pathLength resq 1 section .data respFile db "HTTP/1.0 200 OK", 13, 10, "Connection: Closed", 13, 10, 13, 10 respFileLength equ $ - respFile dirTemplatePrefix incbin "res/dir-template-prefix" db 0 dirTemplatePostfix incbin "res/dir-template-postfix" dirTemplatePostfixLength equ $ - dirTemplatePostfix dirTemplateEntry db ' <a href="/%%">%</a><br>', 13, 10, 0 error400 db "400 Bad Request", 0 error403 db "403 Forbidden", 0 error404 db "404 Not Found", 0 error405 db "405 Method Not Allowed", 0 errorTemplate incbin "res/error-template" db 0 rootDirectory db "[root]", 0 section .text ; input: rdi - pointer to error description ; rsi - file descriptor _send_error: push rbp mov rbp, rsp push rdi push rdi push rdi mov rdi, errorTemplate mov rdx, rsi lea rsi, [rbp - 24] call _write_template add rsp, 24 pop rbp ret ; input: rdi - file descripor ; output: rax - mode_t of a file ; mutates: rsi _get_file_type: push rbp mov rbp, rsp mov rax, fstat_sc lea rsi, [rbp - 144] syscall mov eax, [rbp - 120] cdqe pop rbp ret ; input: rdi - destination file descriptor ; rsi - source file descriptor ; output: none ; mutates: rdx, rsi _send_file_contents: push rbp push rbx mov rbp, rsp sub rsp, 1024 mov rbx, rsi mov eax, write_sc mov rsi, respFile mov rdx, respFileLength syscall lea rsi, [rbp - 1024] .loop: xchg rdi, rbx xor rax, rax ; read_sc mov rdx, 1024 syscall test rax, rax jz .end xchg rbx, rdi mov rdx, rax mov rax, write_sc syscall jmp .loop .end: mov rsp, rbp pop rbx pop rbp ret ; input: rdi - buffer start pointer ; rsi - buffer end pointer ; rdx - file descriptor that the buffer will be flushed into ; rcx - data to be pushed into the buffer ; r8 - parent path ; output: rax - new buffer end point ; mutates: r8, rsi _push_dir_entry: push rcx push rcx push r8 mov rcx, dirTemplateEntry mov r8, rsp call _buffer_push_template_values add rsp, 16 pop rcx ret ; input: rdi - pointer to file path ; output: rax - poitner to the file name ; r13 - end of directory name _get_file_name: push rcx mov cl, [rdi] test cl, cl jz .root .loop_to_end: mov cl, [rdi] test cl, cl jz .end_found inc rdi jmp .loop_to_end .end_found: dec rdi mov [rdi], WORD 0 mov r13, rdi dec rdi .loop_name: dec rdi mov cl, [rdi] cmp cl, '/' jne .loop_name inc rdi mov rax, rdi jmp .end .root: mov rax, rootDirectory lea r13, [rdi - 1] .end: pop rcx ret ; input: rdi - destination file descriptor ; rsi - source file descriptor ; rdx - file path ; output: none _send_directory_contents: push rbp mov rbp, rsp sub rsp, 4096 + BUFFER_SIZE mov rbx, rdi mov rdi, rdx mov rax, [pathLength] add rdx, rax mov r14, rdx mov rdi, rdx call _get_file_name push rax push rax mov rax, getdents_sc mov rdi, rsi lea rsi, [rbp - 4096] mov rdx, 4096 syscall lea r10, [rbp - 4096] add r10, rax lea rdi, [rbp - 4096 - BUFFER_SIZE] mov rsi, rdi mov rdx, rbx mov rcx, dirTemplatePrefix mov r8, rsp call _buffer_push_template_values mov r9, rax mov [r13], WORD '/' add rsp, 16 lea rsi, [rbp - 4096] .loop: mov cl, [rsi + 18] cmp cl, '.' je .skip_print xor rcx, rcx mov cx, [rsi + 16] sub cx, 20 push rsi lea rdi, [rbp - 4096 - BUFFER_SIZE] mov rdx, rbx lea rcx, [rsi + 18] mov rsi, r9 mov r8, r14 call _push_dir_entry mov r9, rax pop rsi .skip_print: xor rax, rax mov ax, [rsi + 16] add rsi, rax cmp rsi, r10 jb .loop lea rdi, [rbp - 4096 - BUFFER_SIZE] mov rsi, r9 mov rdx, rbx mov rcx, dirTemplatePostfix mov r8, dirTemplatePostfixLength call _buffer_push mov rsi, rax call _buffer_flush mov rsp, rbp pop rbp ret ; input: rdi - address of zero-terminated file name ; rsi - socket descriptor ; output: none _serve_file: mov rbx, rsi mov rax, open_sc xor rsi, rsi syscall cmp eax, 0 jl .error mov r9, rdi push rax mov rdi, rax call _get_file_type and rax, S_IFMT test eax, S_IFDIR jnz .directory test eax, S_IFREG jnz .regular_file ; Unsupported file type jmp .error_no_access .regular_file: mov rsi, rdi mov rdi, rbx call _send_file_contents jmp .end .directory: mov rsi, rdi mov rdi, rbx mov rdx, r9 xor rbx, rbx .dir_end_loop: mov cl, [rdx + rbx] test cl, cl jz .dir_end_found inc rbx jmp .dir_end_loop .dir_end_found: mov cl, [rdx + rbx - 1] cmp cl, '/' je .skip_add_slash mov BYTE [rdx + rbx], '/' mov BYTE [rdx + rbx + 1], 0 .skip_add_slash: call _send_directory_contents jmp .end .error: push 0 neg eax cmp eax, EACCESS je .error_no_access cmp eax, ENOENT je .error_no_file ; `open` system call has failed for unexpected reason ; defaulting to "403 Forbidden" .error_no_access: mov rdi, error403 mov rsi, rbx call _send_error jmp .end .error_no_file: mov rdi, error404 mov rsi, rbx call _send_error .end: pop rdi test rdi, rdi jz .skip_close mov rax, close_sc syscall .skip_close: ret
19.325373
95
0.557615
a8a3017875f225f342e09009c5e200d9a4a622fc
821
asm
Assembly
oeis/001/A001003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001003.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001003: Schroeder's second problem (generalized parentheses); also called super-Catalan numbers or little Schroeder numbers. ; Submitted by Jamie Morken(w2) ; 1,1,3,11,45,197,903,4279,20793,103049,518859,2646723,13648869,71039373,372693519,1968801519,10463578353,55909013009,300159426963,1618362158587,8759309660445,47574827600981,259215937709463,1416461675464871,7760733824437545,42624971294485657,234643073935918683,1294379445480318899,7154203054548921813,39614015909996567325,219721391307807180831,1220631504623087926239,6791142807106951594977,37836272668898230450209,211079263903460624841507,1179022517498408548259307,6593381114984955663097869 mov $3,$0 add $0,1 mov $1,2 mov $4,2 lpb $3 add $0,1 sub $3,1 mul $1,$3 mul $1,$0 add $5,$4 div $1,$5 add $2,$1 add $4,2 lpe mov $0,$2 div $0,2 add $0,1
37.318182
490
0.807552
4bd5b73ce80c86d54c4ac177362035afcca7d7f9
4,493
asm
Assembly
filtros/monocromatizar_inf_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
filtros/monocromatizar_inf_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
filtros/monocromatizar_inf_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
; void monocromatizar_inf_asm ( ; unsigned char *src, ; unsigned char *dst, ; int h, ; int w, ; int src_row_size, ; int dst_row_size ; ); global monocromatizar_inf_asm section .data mask: DQ 0x00000000FFFFFFFF maskMaximos: DB 0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00 maskMaximosDeAPares: DB 0xFF,0xFF,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 maskMaximosUltimos: DB 0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 section .text monocromatizar_inf_asm: ; rdi --> *src/ puntero a src ; rsi --> *dst/ dst ; rdx --> h/ cantidad de filas ; rcx --> w/ columnas ; r8 --> src_row size ; r9 --> dst_row_size PUSH rbp ; Alinea MOV rbp, rsp PUSH r13 ; salva r13 Desalinea PUSH r14 ; salva r14 Alinea MOV rax, [mask] ; pone en rax lo que se usa como máscara AND rdx, rax ; máscara a rdx para dejar la parte baja únicamente AND rcx, rax ; máscara a rcx para dejar la parte baja únicamente AND r8, rax ; máscara a r8 para dejar la parte baja únicamente AND r9, rax ; máscara a r9 para dejar la parte baja únicamente XOR r11,r11; XOR rax,rax; MOVDQU xmm10, [maskMaximos] ; guardo la mascara para dejar pasar maximos MOVDQU xmm11, [maskMaximosDeAPares]; MOVDQU xmm12, [maskMaximosUltimos] cicloPorFilaMI: CMP rdx, 0; para ver si termine de ciclar todas las filas JE salirMI MOV r11, rcx; muevo al cantidad de columnas a r11 MOV r14, rdi; hago el iterador de columnas de srca MOV r13, rsi; hago el iterador de columnas de dst cicloPorColumnaMI: CMP r11, 0; comparo para ver si ya miré todas las columnas JE cambiarDeFilaMI CMP r11, 16; comparo para ver si estoy cerca del w JL redimensionarMI MOV eax,1; contador de llenados cicloLlenadosMI: MOVDQU xmm1, [r14]; xmm1 = [r1|g1|b1|r2|g2|b2|r3|g3|b3|r4|g4|b4|r5|g5|b5|r6|] MOVDQU xmm2,xmm1; PSRLDQ xmm2, 1; xmm2 = [g1|b1|r2|g2|b2|r3|g3|b3|r4|g4|b4|r5|g5|b5|r6|0] MOVDQU xmm3,xmm1; PSRLDQ xmm3, 2; xmm3 = [b1|r2|g2|b2|r3|g3|b3|r4|g4|b4|r5|g5|b5|r6|0|0] PMAXUB xmm1,xmm2; xmm1 = [max(r1,g1),..,max(r2,g2).,.,max(r3,g3)..] PMAXUB xmm1,xmm3; xmm3 = [max(r1,g1,b1),..,max (r2,g2,b2)..] PAND xmm1,xmm10; (dejo pasar solo los maximos) xmm1 = [m1,0,0,m2,0,0,m3,0,0,m4,0,0,0,0,0,0] MOVDQU xmm2,xmm1; PSRLDQ xmm2, 2; xmm2 = [0,m2,0,0,m3,0,0,m4,0,0,0,0,0,0,0,0] PADDB xmm1,xmm2; xmm1 = [m1,m2,0,m2,m3,0,m3,m4,0,0,0,0,0,0,0,0] PAND xmm1,xmm11; xmm1 = [m1,m2,0,0,0,0,m3,m4,0,0,0,0,0,0,0,0] MOVDQU xmm2,xmm1; PSRLDQ xmm2, 4; xmm2 = [0,0,m3,m4,0,0,0,0,0,0,0,0,0,0,0,0] PADDB xmm1,xmm2; xmm1 = [m1,m2,m3,m4,0,0,m3,m4,0,0,0,0,0,0,0,0,] PAND xmm1, xmm12; xmm1 =[m1,m2,m3,m4,0,...,0,0] CMP eax,1 JE primerLlenadoMI CMP eax,2 JE segundoLlenadoMI CMP eax,3; JE tercerLlenadoMI JMP cuartoLlenadoMI primerLlenadoMI: MOVDQU xmm0, xmm1; LEA r14, [r14+12] ; aumento iterador de src INC eax ; aumento cant de llenados JMP cicloLlenadosMI segundoLlenadoMI: PSLLDQ xmm1, 4; PADDB xmm0, xmm1; LEA r14, [r14+12] ; aumento iterador de src INC eax ; aumento cant de llenados JMP cicloLlenadosMI tercerLlenadoMI: PSLLDQ xmm1, 8; PADDB xmm0, xmm1; LEA r14, [r14+12] ; aumento iterador de src INC eax; ; aumento cant de llenados JMP cicloLlenadosMI cuartoLlenadoMI: PSLLDQ xmm1, 12; PADDB xmm0, xmm1; LEA r14, [r14+12]; aumento iterador de src MOVDQU [r13], xmm0; Escribo en memoria LEA r13, [r13+16]; aumento en 16 al iterador SUB r11, 16; disminuyo 16 columnas al iterador JMP cicloPorColumnaMI redimensionarMI: MOV rax, 16; Que es la cantidad de pixels que escribo en momoria SUB rax, r11; Resto la cant de columnas que me faltan procesar SUB r13, rax; Retrocedo en el dst la diferencia entre la cantidad de columnas que procese y 16 SUB r14 ,rax; Retrocedo en el src diferencia*3 (porque 1 px = 3b) SUB r14 ,rax; SUB r14 ,rax; MOV r11,16; Para que termine justo JMP cicloPorColumnaMI cambiarDeFilaMI: LEA rdi, [rdi + r8]; sumo el row_size LEA rsi, [rsi + r9]; sumo el row_size DEC rdx; JMP cicloPorFilaMI salirMI: POP r14 POP r13 POP rbp RET
28.617834
103
0.642778
93255d7fa64832e409a77b18a514b15a448833d5
459
asm
Assembly
oeis/044/A044406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044406: Numbers n such that string 7,4 occurs in the base 10 representation of n but not of n-1. ; Submitted by Christian Krause ; 74,174,274,374,474,574,674,740,774,874,974,1074,1174,1274,1374,1474,1574,1674,1740,1774,1874,1974,2074,2174,2274,2374,2474,2574,2674,2740,2774,2874,2974,3074,3174,3274,3374,3474,3574 add $0,1 seq $0,44417 ; Numbers n such that string 8,5 occurs in the base 10 representation of n but not of n-1. div $0,2 sub $0,55 mul $0,2
45.9
184
0.747277
eb257063fc6e10b6cb730cc83732a2da29dc8e52
812
asm
Assembly
lib/chibiakumas/SrcALL/V1_Functions.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
lib/chibiakumas/SrcALL/V1_Functions.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
lib/chibiakumas/SrcALL/V1_Functions.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
ifdef BuildCPC read "..\SrcCPC\CPC_V1_Functions.asm" endif ifdef BuildMSX read "..\SrcMSX\MSX_V1_Functions.asm" endif ifdef BuildTI8 read "..\SrcTI\TI_V1_Functions.asm" endif ifdef BuildZX8 ;ZX81 read "..\SrcZX8\ZX8_V1_Functions.asm" endif ifdef BuildZXS read "..\SrcZX\ZX_V1_Functions.asm" endif ifdef BuildENT read "..\SrcENT\ENT_V1_Functions.asm" endif ifdef BuildSAM read "..\SrcSAM\SAM_V1_Functions.asm" endif ifdef BuildSMS read "..\SrcSMS\SMS_V1_Functions.asm" endif ifdef BuildSGG read "..\SrcSMS\SMS_V1_Functions.asm" endif ifdef BuildGMB include "..\SrcGB\GB_V1_Functions.asm" endif ifdef BuildGBC include "..\SrcGB\GB_V1_Functions.asm" endif ifdef BuildCLX include "..\SrcCLX\CLX_V1_Functions.asm" endif
21.368421
44
0.700739
6f9644236215867fc2cc5f269c371cd214c5259b
6,030
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_210_765.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_210_765.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_210_765.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 %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x11ecf, %rsi lea addresses_normal_ht+0x134cf, %rdi clflush (%rsi) nop nop nop nop cmp %r13, %r13 mov $70, %rcx rep movsb nop cmp %rdi, %rdi lea addresses_UC_ht+0x12854, %rbx clflush (%rbx) nop nop nop nop nop inc %rdi movl $0x61626364, (%rbx) nop nop nop nop nop cmp $62885, %rsi lea addresses_UC_ht+0x11bd7, %rbx nop nop nop nop nop and $8932, %rax mov (%rbx), %rcx nop nop nop nop nop add $29959, %rdi lea addresses_UC_ht+0x1cb83, %rcx clflush (%rcx) xor $50741, %rsi movups (%rcx), %xmm4 vpextrq $1, %xmm4, %r11 nop nop nop lfence lea addresses_WC_ht+0x198a7, %r11 clflush (%r11) nop nop nop nop nop dec %r13 movw $0x6162, (%r11) nop nop nop add $52856, %rax lea addresses_normal_ht+0x27bb, %rsi lea addresses_WT_ht+0xab0f, %rdi nop lfence mov $99, %rcx rep movsq nop sub $45730, %r10 lea addresses_WT_ht+0x705f, %rsi lea addresses_D_ht+0x94cf, %rdi nop nop and %rbx, %rbx mov $102, %rcx rep movsb nop dec %rsi lea addresses_A_ht+0xbccf, %rbx sub %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 and $0xffffffffffffffc0, %rbx movntdq %xmm4, (%rbx) nop nop nop nop nop sub %r10, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r8 push %rax push %rdx // Load lea addresses_RW+0x191cf, %r13 nop nop nop nop nop dec %r8 mov (%r13), %edx xor $30341, %r10 // Store lea addresses_WT+0x1d8cf, %rax nop inc %r14 movb $0x51, (%rax) inc %r8 // Load lea addresses_UC+0x18020, %r14 nop nop and %r8, %r8 vmovups (%r14), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rax nop nop nop nop and $37301, %r11 // Store lea addresses_US+0x154cf, %r14 clflush (%r14) nop nop nop sub $56228, %r13 movl $0x51525354, (%r14) nop nop nop nop nop inc %r10 // Store lea addresses_normal+0x11f99, %r14 nop nop nop nop nop and $44200, %rax movl $0x51525354, (%r14) nop and %rax, %rax // Load lea addresses_normal+0x26f, %r14 nop nop xor %r11, %r11 vmovups (%r14), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rax nop xor %r11, %r11 // Store lea addresses_UC+0x38cf, %rdx xor %r11, %r11 movw $0x5152, (%rdx) nop nop nop nop add %rdx, %rdx // Store lea addresses_PSE+0x1d3cf, %r10 nop nop nop inc %rax mov $0x5152535455565758, %r14 movq %r14, %xmm2 movups %xmm2, (%r10) nop nop nop add %rdx, %rdx // Load mov $0x4d7, %r10 nop nop nop nop sub $30753, %r11 movb (%r10), %dl nop nop nop nop nop xor %r14, %r14 // Faulty Load lea addresses_WT+0x168cf, %r11 nop nop nop nop nop sub %r10, %r10 vmovups (%r11), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r13 lea oracles, %rdx and $0xff, %r13 shlq $12, %r13 mov (%rdx,%r13,1), %r13 pop %rdx pop %rax pop %r8 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}} {'39': 210} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
21.30742
629
0.648922
45eb5a39ebaa82c4724929e363ff144c2455bfda
1,188
asm
Assembly
src/intel/tools/tests/gen6/mach.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen6/mach.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen6/mach.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
mach(8) g12<1>UD g10<8,8,1>UD 0xaaaaaaabUD { align1 1Q AccWrEnable }; mach(8) g16<1>D g10<8,8,1>D 1431655766D { align1 1Q AccWrEnable }; mach(16) g17<1>UD g14<8,8,1>UD 0xaaaaaaabUD { align1 1H AccWrEnable }; mach(16) g25<1>D g14<8,8,1>D 1431655766D { align1 1H AccWrEnable }; mach(8) g9<1>D g1<0>D g1.4<0>D { align16 1Q AccWrEnable }; mach(8) null<1>D g1<4>.xD 741092396D { align16 1Q AccWrEnable }; mach(8) g12<1>UD g4<8,8,1>UD g8<8,8,1>UD { align1 1Q AccWrEnable }; mach(16) g20<1>UD g4<8,8,1>UD g12<8,8,1>UD { align1 1H AccWrEnable }; mach(8) g13<1>D g5<8,8,1>D g9<8,8,1>D { align1 1Q AccWrEnable }; mach(16) g21<1>D g5<8,8,1>D g13<8,8,1>D { align1 1H AccWrEnable }; mach(8) null<1>D g9<4>D g11<4>D { align16 1Q AccWrEnable }; mach(8) g24<1>.xUD g22<4>.xUD 0x80000001UD { align16 1Q AccWrEnable }; mach(8) g12<1>UD g9<4>UD g11<4>UD { align16 1Q AccWrEnable };
84.857143
91
0.494108
e8ac1dce9f8740947537dbc7cf498206f07cbe36
987
asm
Assembly
core86/dbg/Fib.asm
JulesIMF/HCC_86
a4d8eab6006364f11a0b804eee3d1d3897de877a
[ "MIT" ]
null
null
null
core86/dbg/Fib.asm
JulesIMF/HCC_86
a4d8eab6006364f11a0b804eee3d1d3897de877a
[ "MIT" ]
null
null
null
core86/dbg/Fib.asm
JulesIMF/HCC_86
a4d8eab6006364f11a0b804eee3d1d3897de877a
[ "MIT" ]
null
null
null
.intel_syntax noprefix .global main call main Fib: push rbp mov rbp, rsp mov rbx, [rbp+16] mov rcx, 0 cmp rbx, rcx sete bl movzx rbx, bl test rbx, rbx je .else_p1875457888 mov rbx, 0 mov rax, rbx pop rbp ret jmp .endif_p1875457888 .else_p1875457888: .endif_p1875457888: mov rbx, [rbp+16] mov rcx, 1 cmp rbx, rcx sete bl movzx rbx, bl test rbx, rbx je .else_p1875459104 mov rbx, 1 mov rax, rbx pop rbp ret jmp .endif_p1875459104 .else_p1875459104: .endif_p1875459104: mov rbx, [rbp+16] mov rcx, 2 sub rbx, rcx push rbx call Fib add rsp, 8 mov rbx, rax push rbx mov rcx, [rbp+16] mov rsi, 1 sub rcx, rsi push rcx call Fib add rsp, 8 pop rbx mov rcx, rax add rbx, rcx mov rax, rbx pop rbp ret pop rbp ret main: mov rbp, rsp sub rsp, 8 mov rbx, 3 mov [rbp-8], rbx mov rbx, [rbp-8] push rbx call printInt add rsp, 8 mov rbx, rax call newLine mov rbx, rax mov rax, 60 syscall
12.653846
23
0.643364
30b2dbb279cbf4fc8102eba3e7fe3869f710c7b3
39
asm
Assembly
src/core/asm/arm/thumb/inst_0x60.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
src/core/asm/arm/thumb/inst_0x60.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
4
2019-02-27T05:41:26.000Z
2020-07-16T00:24:24.000Z
src/core/asm/arm/thumb/inst_0x60.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
;;; 0x6x ;;; 0110| __0x6x_ldr: ret
5.571429
11
0.538462