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
009314786014e6557531b64a2af10590f0e85a3b
3,503
asm
Assembly
fiat-amd64/23.85_ratio11197_seed3328442630777717_square_poly1305.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
491
2015-11-25T23:44:39.000Z
2022-03-29T17:31:21.000Z
fiat-amd64/23.85_ratio11197_seed3328442630777717_square_poly1305.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
755
2016-02-02T14:03:05.000Z
2022-03-31T16:47:23.000Z
fiat-amd64/23.85_ratio11197_seed3328442630777717_square_poly1305.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
117
2015-10-25T16:28:15.000Z
2022-02-08T23:01:09.000Z
SECTION .text GLOBAL square_poly1305 square_poly1305: sub rsp, 0x30 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0x0 ], rbx; saving to stack mov [ rsp + 0x8 ], rbp; saving to stack mov [ rsp + 0x10 ], r12; saving to stack mov [ rsp + 0x18 ], r13; saving to stack mov [ rsp + 0x20 ], r14; saving to stack mov [ rsp + 0x28 ], r15; saving to stack imul rax, [ rsi + 0x10 ], 0x5; x1 <- arg1[2] * 0x5 imul r10, rax, 0x2; x2 <- x1 * 0x2 mov rdx, [ rsi + 0x0 ]; arg1[0] to rdx mulx r11, rbx, [ rsi + 0x0 ]; x16, x15<- arg1[0] * arg1[0] imul r10, r10, 0x2; x10000 <- x2 * 0x2 mov rdx, r10; x10000 to rdx mulx rdx, r10, [ rsi + 0x8 ]; x8, x7<- arg1[1] * x10000 test al, al adox r10, rbx adox r11, rdx mov rbp, 0xfffffffffff ; moving imm to reg mov r12, r10; x22, copying x17 here, cause x17 is needed in a reg for other than x22, namely all: , x22, x21, size: 2 and r12, rbp; x22 <- x17&0xfffffffffff shrd r10, r11, 44; x21 <- x19||x17 >> 44 mov rdx, rax; x1 to rdx mulx rdx, rax, [ rsi + 0x10 ]; x6, x5<- arg1[2] * x1 imul r13, [ rsi + 0x8 ], 0x2; x4 <- arg1[1] * 0x2 xchg rdx, r13; x4, swapping with x6, which is currently in rdx mulx rdx, r14, [ rsi + 0x0 ]; x14, x13<- arg1[0] * x4 xor r15, r15 adox rax, r14 adcx rax, r10 adox rdx, r13 adc rdx, 0x0 mov rcx, rax; x34, copying x31 here, cause x31 is needed in a reg for other than x34, namely all: , x34, x35, size: 2 shrd rcx, rdx, 43; x34 <- x33||x31 >> 43 imul r8, [ rsi + 0x10 ], 0x2; x3 <- arg1[2] * 0x2 imul r9, [ rsi + 0x8 ], 0x2; x10001 <- arg1[1] * 0x2 mov rdx, [ rsi + 0x0 ]; arg1[0] to rdx mulx r8, rbx, r8; x12, x11<- arg1[0] * x3 mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx mulx r9, r11, r9; x10, x9<- arg1[1] * x10001 xor rdx, rdx adox r11, rbx adcx r11, rcx adox r8, r9 adc r8, 0x0 mov r15, r11; x39, copying x36 here, cause x36 is needed in a reg for other than x39, namely all: , x40, x39, size: 2 shrd r15, r8, 43; x39 <- x38||x36 >> 43 imul r15, r15, 0x5; x41 <- x39 * 0x5 lea r12, [ r12 + r15 ] mov r10, r12; x43, copying x42 here, cause x42 is needed in a reg for other than x43, namely all: , x43, x44, size: 2 shr r10, 44; x43 <- x42>> 44 mov r13, 0x7ffffffffff ; moving imm to reg and rax, r13; x35 <- x31&0x7ffffffffff lea r10, [ r10 + rax ] mov r14, r10; x46, copying x45 here, cause x45 is needed in a reg for other than x46, namely all: , x47, x46, size: 2 shr r14, 43; x46 <- x45>> 43 and r11, r13; x40 <- x36&0x7ffffffffff and r12, rbp; x44 <- x42&0xfffffffffff lea r14, [ r14 + r11 ] and r10, r13; x47 <- x45&0x7ffffffffff mov [ rdi + 0x10 ], r14; out1[2] = x48 mov [ rdi + 0x8 ], r10; out1[1] = x47 mov [ rdi + 0x0 ], r12; out1[0] = x44 mov rbx, [ rsp + 0x0 ]; restoring from stack mov rbp, [ rsp + 0x8 ]; restoring from stack mov r12, [ rsp + 0x10 ]; restoring from stack mov r13, [ rsp + 0x18 ]; restoring from stack mov r14, [ rsp + 0x20 ]; restoring from stack mov r15, [ rsp + 0x28 ]; restoring from stack add rsp, 0x30 ret ; cpu AMD Ryzen 9 5950X 16-Core Processor ; clocked at 2200 MHz ; first cyclecount 25.84, best 21.517808219178082, lastGood 23.846575342465755 ; seed 3328442630777717 ; CC / CFLAGS clang / -march=native -mtune=native -O3 ; time needed: 6088 ms / 500 runs=> 12.176ms/run ; Time spent for assembling and measureing (initial batch_size=371, initial num_batches=101): 4774 ms ; Ratio (time for assembling + measure)/(total runtime for 500runs): 0.7841655716162943 ; number reverted permutation/ tried permutation: 228 / 263 =86.692% ; number reverted decision/ tried decision: 182 / 238 =76.471%
42.204819
117
0.661719
633d5a0c22ef319016da277d918e74534b8ff755
10,951
asm
Assembly
VGA_HSYNC/VGA_HSYNC.asm
SmallRoomLabs/2MCUVGA
0813c72e913bda61de7af91bbca4e7888489273f
[ "MIT" ]
1
2020-07-15T09:52:53.000Z
2020-07-15T09:52:53.000Z
VGA_HSYNC/VGA_HSYNC.asm
SmallRoomLabs/2MCUVGA
0813c72e913bda61de7af91bbca4e7888489273f
[ "MIT" ]
null
null
null
VGA_HSYNC/VGA_HSYNC.asm
SmallRoomLabs/2MCUVGA
0813c72e913bda61de7af91bbca4e7888489273f
[ "MIT" ]
null
null
null
; *************************************************************************** ; VGA_HSYNC.asm - Part of 2MCUVGA ; *************************************************************************** ; ; The MIT License (MIT) ; ; Copyright (c) 2015 SmallRoomLabs ; ; 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. ; ; *************************************************************************** ; ; ; ; ; ** HORIZONTAL TIMING ** ; ; Horizonal Dots 640 640 640 ; Vertical Scan Lines 350 400 480 ; Horiz. Sync Polarity POS NEG NEG ; A (us) 31.77 31.77 31.77 Scanline time ; B (us) 3.77 3.77 3.77 Sync pulse lenght ; C (us) 1.89 1.89 1.89 Back porch ; D (us) 25.17 25.17 25.17 Active video time ; E (us) 0.94 0.94 0.94 Front porch ; ______________________ ________ ; ________| VIDEO |________| VIDEO (next line) ; |-C-|----------D-----------|-E-| ; __ ______________________________ ___________ ; |_| |_| ; |B| ; |---------------A----------------| ; ; One Line - 800 pixels total per line ; ; ------------------------------------ ; 8 pixels front porch ; 96 pixels horizontal sync ; 40 pixels back porch ; 8 pixels left border ; 640 pixels video ; 8 pixels right border ; ; ; ; +------------+ +-----------+ ; | 1 PA2/-Res +-+ VCC 20 | ; | 2 PD0/RXD CLK/PB7 19 | ; | 3 PD1/TXD MISO/PB6 18 | ; | 4 PA1/XTAL2 MOSI/PB5 17 | ; | 5 PA0/XTAL1 OC1B/PB4 16 | ; | 6 PD2/INT0 OC1A/PB3 15 | ; | 7 PD3/INT1 OC0A/PB2 14 | ; | 8 PD4/T0 AIN1/PB1 13 | ; | 9 PD5/T1 AIN0/PB0 12 | ; | 10 GND ICP/PD6 11 | ; +--------------------------+ ; ATTINY2313 ; ; Usage of Port B: ; Bit 0: Output RAM Address bit 0 ; 1: Output RAM Address bit 1 ; 2: Output RAM Address bit 2 ; 3: Output RAM Address bit 3 ; 4: Output RAM Address bit 4 ; 5: Output RAM Address bit 5 ; 6: Output HSYNC ; 7: Output Clock to next 2313 .CSEG ; ************** Reset- and Interrupt-vectors ******** .ORG $0000 rjmp RESET ; Reset Handler rjmp Isr_INT0 ; External Interrupt0 Handler rjmp Isr_INT1 ; External Interrupt1 Handler rjmp Isr_TIM1_CAPT ; Timer1 Capture Handler rjmp Isr_TIM1_COMPA ; Timer1 CompareA Handler rjmp Isr_TIM1_OVF ; Timer1 Overflow Handler rjmp Isr_TIM0_OVF ; Timer0 Overflow Handler rjmp Isr_USART0_RXC ; USART0 RX Complete Handler rjmp Isr_USART0_DRE ; USART0,UDR Empty Handler rjmp Isr_USART0_TXC ; USART0 TX Complete Handler rjmp Isr_ANA_COMP ; Analog Comparator Handler rjmp Isr_PCINT ; Pin Change Interrupt rjmp Isr_TIMER1_COMPB ; Timer1 Compare B Handler rjmp Isr_TIMER0_COMPA ; Timer0 Compare A Handler rjmp Isr_TIMER0_COMPB ; Timer0 Compare B Handler rjmp Isr_USI_START ; USI Start Handler rjmp Isr_USI_OVERFLOW ; USI Overflow Handler rjmp Isr_EE_READY ; EEPROM Ready Handler rjmp Isr_WDT_OVERFLOW ; Watchdog Overflow Handler ; ************** Interrupt service routines ******** Isr_INT0: ; External Interrupt0 Handler Isr_INT1: ; External Interrupt1 Handler Isr_TIM1_CAPT: ; Timer1 Capture Handler Isr_TIM1_COMPA: ; Timer1 CompareA Handler Isr_TIM1_OVF: ; Timer1 Overflow Handler Isr_TIM0_OVF: ; Timer0 Overflow Handler Isr_USART0_RXC: ; USART0 RX Complete Handler Isr_USART0_DRE: ; USART0,UDR Empty Handler Isr_USART0_TXC: ; USART0 TX Complete Handler Isr_ANA_COMP: ; Analog Comparator Handler Isr_PCINT: ; Pin Change Interrupt Isr_TIMER1_COMPB: ; Timer1 Compare B Handler Isr_TIMER0_COMPA: ; Timer0 Compare A Handler Isr_TIMER0_COMPB: ; Timer0 Compare B Handler Isr_USI_START: ; USI Start Handler Isr_USI_OVERFLOW: ; USI Overflow Handler Isr_EE_READY: ; EEPROM Ready Handler Isr_WDT_OVERFLOW: ; Watchdog Overflow Handler RETI ; ************** Code ******** RESET: CLI ; Disable interrupts LDI R16,0x00 ; Port A and D are all inputs OUT DDRA,R16 OUT DDRD,R16 LDI R16,0xFF ; Enable pullups on Port A and D OUT PORTA,R16 OUT PORTD,R16 LDI R16,0xFF ; Port B are all Outputs OUT DDRB,R16 LDI R17,0x00 ; Preloaded value (on) for HSYNC bit on Port A LDI R18,0x00 ; Preloaded value (off) for HSYNC bit on Port A Loop: LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; SYNC OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b00000000 ; OUT PORTB,R16 LDI R16,0b01000000 ; Video 0 OUT PORTB,R16 LDI R16,0b01000001 ; Video 1 OUT PORTB,R16 LDI R16,0b01000010 ; Video 2 OUT PORTB,R16 LDI R16,0b01000011 ; Video 3 OUT PORTB,R16 LDI R16,0b01000100 ; Video 4 OUT PORTB,R16 LDI R16,0b01000101 ; Video 5 OUT PORTB,R16 LDI R16,0b01000110 ; Video 6 OUT PORTB,R16 LDI R16,0b01000111 ; Video 7 OUT PORTB,R16 LDI R16,0b01001000 ; Video 8 OUT PORTB,R16 LDI R16,0b01001001 ; Video 9 OUT PORTB,R16 LDI R16,0b01001010 ; Video 10 OUT PORTB,R16 LDI R16,0b01001011 ; Video 11 OUT PORTB,R16 LDI R16,0b01001100 ; Video 12 OUT PORTB,R16 LDI R16,0b01001101 ; Video 13 OUT PORTB,R16 LDI R16,0b01001110 ; Video 14 OUT PORTB,R16 LDI R16,0b01001111 ; Video 15 OUT PORTB,R16 LDI R16,0b01010000 ; Video 16 OUT PORTB,R16 LDI R16,0b01010001 ; Video 17 OUT PORTB,R16 LDI R16,0b01010010 ; Video 18 OUT PORTB,R16 LDI R16,0b01010011 ; Video 19 OUT PORTB,R16 LDI R16,0b01010100 ; Video 20 OUT PORTB,R16 LDI R16,0b01010101 ; Video 21 OUT PORTB,R16 LDI R16,0b01010110 ; Video 22 OUT PORTB,R16 LDI R16,0b01010111 ; Video 23 OUT PORTB,R16 LDI R16,0b11011000 ; Video 24+CLOCK OUT PORTB,R16 LDI R16,0b11011001 ; Video 25+CLOCK OUT PORTB,R16 LDI R16,0b11011010 ; Video 26+CLOCK OUT PORTB,R16 LDI R16,0b11011011 ; Video 27+CLOCK OUT PORTB,R16 LDI R16,0b11011100 ; Video 28+CLOCK OUT PORTB,R16 LDI R16,0b11011101 ; Video 29+CLOCK OUT PORTB,R16 LDI R16,0b11011110 ; Video 30+CLOCK OUT PORTB,R16 LDI R16,0b11011111 ; Video 31+CLOCK OUT PORTB,R16 LDI R16,0b11100000 ; Video 32+CLOCK OUT PORTB,R16 LDI R16,0b11100001 ; Video 33+CLOCK OUT PORTB,R16 LDI R16,0b11100010 ; Video 34+CLOCK OUT PORTB,R16 LDI R16,0b11100011 ; Video 35+CLOCK OUT PORTB,R16 LDI R16,0b11100100 ; Video 36+CLOCK OUT PORTB,R16 LDI R16,0b11100101 ; Video 37+CLOCK OUT PORTB,R16 LDI R16,0b11100110 ; Video 38+CLOCK OUT PORTB,R16 LDI R16,0b11100111 ; Video 39+CLOCK OUT PORTB,R16 LDI R16,0b11101000 ; Video 40+CLOCK OUT PORTB,R16 LDI R16,0b11101001 ; Video 41+CLOCK OUT PORTB,R16 LDI R16,0b11101010 ; Video 42+CLOCK OUT PORTB,R16 LDI R16,0b11101011 ; Video 43+CLOCK OUT PORTB,R16 LDI R16,0b11101100 ; Video 44+CLOCK OUT PORTB,R16 LDI R16,0b11101101 ; Video 45+CLOCK OUT PORTB,R16 LDI R16,0b11101110 ; Video 46+CLOCK OUT PORTB,R16 LDI R16,0b11101111 ; Video 47+CLOCK OUT PORTB,R16 LDI R16,0b11110000 ; Video 48+CLOCK OUT PORTB,R16 LDI R16,0b11110001 ; Video 49+CLOCK OUT PORTB,R16 LDI R16,0b11110010 ; Video 50+CLOCK OUT PORTB,R16 LDI R16,0b11110011 ; Video 51+CLOCK OUT PORTB,R16 LDI R16,0b11110100 ; Video 52+CLOCK OUT PORTB,R16 LDI R16,0b11110101 ; Video 53+CLOCK OUT PORTB,R16 LDI R16,0b11110110 ; Video 54+CLOCK OUT PORTB,R16 LDI R16,0b11110111 ; Video 55+CLOCK OUT PORTB,R16 LDI R16,0b11111000 ; Video 56+CLOCK OUT PORTB,R16 LDI R16,0b11111001 ; Video 57+CLOCK OUT PORTB,R16 LDI R16,0b11111010 ; Video 58+CLOCK OUT PORTB,R16 LDI R16,0b11111011 ; Video 59+CLOCK OUT PORTB,R16 LDI R16,0b11111100 ; Video 60+CLOCK OUT PORTB,R16 LDI R16,0b11111101 ; Video 61+CLOCK OUT PORTB,R16 LDI R16,0b11111110 ; Video 62+CLOCK OUT PORTB,R16 LDI R16,0b11111111 ; Video 63+CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 LDI R16,0b10000000 ; CLOCK OUT PORTB,R16 RJMP Loop ; The last LDI/OUT combo is removed to correct the timing ; error caused by the RJMP. The last and the next-to-last ; output values are identical so we can just keep the ; data while the RJMP is executing
23.91048
81
0.634554
823347eaa598841366c0afd2a5b2db3872a2e32e
12,522
asm
Assembly
deps/dyncall/test/samples/composite/args.asm
unbornchikken/fastcall
34695df041ee06798cd44da73f60ca075b0f0828
[ "Apache-2.0" ]
220
2016-10-25T01:42:09.000Z
2022-03-16T13:21:51.000Z
deps/dyncall/test/samples/composite/args.asm
unbornchikken/fastcall
34695df041ee06798cd44da73f60ca075b0f0828
[ "Apache-2.0" ]
178
2018-02-22T14:38:55.000Z
2022-03-24T08:56:04.000Z
deps/dyncall/test/samples/composite/args.asm
unbornchikken/fastcall
34695df041ee06798cd44da73f60ca075b0f0828
[ "Apache-2.0" ]
23
2016-12-12T14:39:07.000Z
2021-11-11T12:14:01.000Z
; Listing generated by Microsoft (R) Optimizing Compiler Version 15.00.21022.08 include listing.inc INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC call_f_s2i EXTRN f_s2i:PROC ; Function compile flags: /Ogtpy ; COMDAT call_f_s2i _TEXT SEGMENT a1$ = 8 call_f_s2i PROC ; COMDAT ; File c:\lab\dynabi\tests\composite\args.c ; Line 130 xor eax, eax mov DWORD PTR a1$[rsp], 0 mov DWORD PTR a1$[rsp+4], eax mov rcx, QWORD PTR a1$[rsp] jmp f_s2i call_f_s2i ENDP _TEXT ENDS PUBLIC $T993 PUBLIC call_f_s4i EXTRN f_s4i:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s4i DD imagerel $LN3 DD imagerel $LN3+52 DD imagerel $unwind$call_f_s4i pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s4i DD 010401H DD 06204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s4i _TEXT SEGMENT $T993 = 32 a1$ = 32 call_f_s4i PROC ; COMDAT ; Line 131 $LN3: sub rsp, 56 ; 00000038H xor eax, eax mov DWORD PTR a1$[rsp], 0 lea rcx, QWORD PTR $T993[rsp] mov DWORD PTR a1$[rsp+4], eax mov DWORD PTR a1$[rsp+8], eax mov DWORD PTR a1$[rsp+12], eax movaps xmm0, XMMWORD PTR a1$[rsp] movdqa XMMWORD PTR $T993[rsp], xmm0 call f_s4i add rsp, 56 ; 00000038H ret 0 call_f_s4i ENDP _TEXT ENDS PUBLIC $T1004 PUBLIC call_f_s8i EXTRN f_s8i:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s8i DD imagerel $LN3 DD imagerel $LN3+97 DD imagerel $unwind$call_f_s8i pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s8i DD 010401H DD 0c204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s8i _TEXT SEGMENT a1$ = 32 $T1004 = 64 call_f_s8i PROC ; COMDAT ; Line 132 $LN3: sub rsp, 104 ; 00000068H xor eax, eax lea rcx, QWORD PTR a1$[rsp] lea rdx, QWORD PTR $T1004[rsp] mov DWORD PTR a1$[rsp+4], eax mov DWORD PTR a1$[rsp+8], eax mov DWORD PTR a1$[rsp+12], eax mov DWORD PTR a1$[rsp+16], eax mov DWORD PTR a1$[rsp+20], eax mov DWORD PTR a1$[rsp+24], eax mov DWORD PTR a1$[rsp+28], eax mov DWORD PTR a1$[rsp], 0 mov rax, QWORD PTR [rcx] mov QWORD PTR [rdx], rax mov rax, QWORD PTR [rcx+8] mov QWORD PTR [rdx+8], rax mov rax, QWORD PTR [rcx+16] mov QWORD PTR [rdx+16], rax mov rax, QWORD PTR [rcx+24] lea rcx, QWORD PTR $T1004[rsp] mov QWORD PTR [rdx+24], rax call f_s8i add rsp, 104 ; 00000068H ret 0 call_f_s8i ENDP _TEXT ENDS PUBLIC call_f_s2f EXTRN f_s2f:PROC EXTRN _fltused:DWORD ; Function compile flags: /Ogtpy ; COMDAT call_f_s2f _TEXT SEGMENT a1$ = 8 call_f_s2f PROC ; COMDAT ; Line 134 xorps xmm0, xmm0 xor eax, eax movss DWORD PTR a1$[rsp], xmm0 mov DWORD PTR a1$[rsp+4], eax mov rcx, QWORD PTR a1$[rsp] jmp f_s2f call_f_s2f ENDP _TEXT ENDS PUBLIC $T1023 PUBLIC call_f_s4f EXTRN f_s4f:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s4f DD imagerel $LN3 DD imagerel $LN3+53 DD imagerel $unwind$call_f_s4f pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s4f DD 010401H DD 06204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s4f _TEXT SEGMENT $T1023 = 32 a1$ = 32 call_f_s4f PROC ; COMDAT ; Line 135 $LN3: sub rsp, 56 ; 00000038H xorps xmm0, xmm0 xor eax, eax lea rcx, QWORD PTR $T1023[rsp] movss DWORD PTR a1$[rsp], xmm0 mov DWORD PTR a1$[rsp+4], eax mov DWORD PTR a1$[rsp+8], eax mov DWORD PTR a1$[rsp+12], eax movaps xmm0, XMMWORD PTR a1$[rsp] movdqa XMMWORD PTR $T1023[rsp], xmm0 call f_s4f add rsp, 56 ; 00000038H ret 0 call_f_s4f ENDP _TEXT ENDS PUBLIC call_f_s1d EXTRN f_s1d:PROC ; Function compile flags: /Ogtpy ; COMDAT call_f_s1d _TEXT SEGMENT a1$ = 8 call_f_s1d PROC ; COMDAT ; Line 137 xorpd xmm0, xmm0 movsdx QWORD PTR a1$[rsp], xmm0 mov rcx, QWORD PTR a1$[rsp] jmp f_s1d call_f_s1d ENDP _TEXT ENDS PUBLIC $T1041 PUBLIC call_f_s2d EXTRN f_s2d:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s2d DD imagerel $LN3 DD imagerel $LN3+47 DD imagerel $unwind$call_f_s2d pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s2d DD 010401H DD 06204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s2d _TEXT SEGMENT $T1041 = 32 a1$ = 32 call_f_s2d PROC ; COMDAT ; Line 138 $LN3: sub rsp, 56 ; 00000038H xorpd xmm0, xmm0 xor eax, eax lea rcx, QWORD PTR $T1041[rsp] movsdx QWORD PTR a1$[rsp], xmm0 mov QWORD PTR a1$[rsp+8], rax movaps xmm0, XMMWORD PTR a1$[rsp] movdqa XMMWORD PTR $T1041[rsp], xmm0 call f_s2d add rsp, 56 ; 00000038H ret 0 call_f_s2d ENDP _TEXT ENDS PUBLIC $T1052 PUBLIC call_f_s4d EXTRN f_s4d:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s4d DD imagerel $LN3 DD imagerel $LN3+86 DD imagerel $unwind$call_f_s4d pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s4d DD 010401H DD 0c204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s4d _TEXT SEGMENT a1$ = 32 $T1052 = 64 call_f_s4d PROC ; COMDAT ; Line 139 $LN3: sub rsp, 104 ; 00000068H xorpd xmm0, xmm0 xor eax, eax lea rcx, QWORD PTR a1$[rsp] movsdx QWORD PTR a1$[rsp], xmm0 mov QWORD PTR a1$[rsp+8], rax mov QWORD PTR a1$[rsp+16], rax mov QWORD PTR a1$[rsp+24], rax mov rax, QWORD PTR [rcx] lea rdx, QWORD PTR $T1052[rsp] mov QWORD PTR [rdx], rax mov rax, QWORD PTR [rcx+8] mov QWORD PTR [rdx+8], rax mov rax, QWORD PTR [rcx+16] mov QWORD PTR [rdx+16], rax mov rax, QWORD PTR [rcx+24] lea rcx, QWORD PTR $T1052[rsp] mov QWORD PTR [rdx+24], rax call f_s4d add rsp, 104 ; 00000068H ret 0 call_f_s4d ENDP _TEXT ENDS PUBLIC call_f_s1q EXTRN f_s1q:PROC ; Function compile flags: /Ogtpy ; COMDAT call_f_s1q _TEXT SEGMENT a1$ = 8 call_f_s1q PROC ; COMDAT ; Line 141 xorpd xmm0, xmm0 movsdx QWORD PTR a1$[rsp], xmm0 mov rcx, QWORD PTR a1$[rsp] jmp f_s1q call_f_s1q ENDP _TEXT ENDS PUBLIC $T1068 PUBLIC $T1069 PUBLIC call_f_s2ds2d EXTRN f_s2ds2d:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_s2ds2d DD imagerel $LN3 DD imagerel $LN3+74 DD imagerel $unwind$call_f_s2ds2d pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_s2ds2d DD 010401H DD 08204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_s2ds2d _TEXT SEGMENT $T1069 = 32 a2$ = 32 $T1068 = 48 a1$ = 48 call_f_s2ds2d PROC ; COMDAT ; Line 147 $LN3: sub rsp, 72 ; 00000048H ; Line 148 xorpd xmm0, xmm0 xor eax, eax ; Line 150 lea rdx, QWORD PTR $T1069[rsp] movsdx QWORD PTR a1$[rsp], xmm0 movsdx QWORD PTR a2$[rsp], xmm0 mov QWORD PTR a1$[rsp+8], rax mov QWORD PTR a2$[rsp+8], rax lea rcx, QWORD PTR $T1068[rsp] movaps xmm1, XMMWORD PTR a1$[rsp] movaps xmm0, XMMWORD PTR a2$[rsp] movdqa XMMWORD PTR $T1068[rsp], xmm1 movdqa XMMWORD PTR $T1069[rsp], xmm0 call f_s2ds2d ; Line 151 add rsp, 72 ; 00000048H ret 0 call_f_s2ds2d ENDP _TEXT ENDS PUBLIC __real@40000000 PUBLIC call_f_sfifi EXTRN f_sfifi:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_sfifi DD imagerel $LN3 DD imagerel $LN3+65 DD imagerel $unwind$call_f_sfifi pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_sfifi DD 010701H DD 06207H xdata ENDS ; COMDAT __real@40000000 CONST SEGMENT __real@40000000 DD 040000000r ; 2 ; Function compile flags: /Ogtpy CONST ENDS ; COMDAT call_f_sfifi _TEXT SEGMENT call_f_sfifi PROC ; COMDAT ; Line 155 $LN3: mov rax, rsp sub rsp, 56 ; 00000038H xorps xmm0, xmm0 movss xmm1, DWORD PTR __real@40000000 mov DWORD PTR [rax-20], 1 mov DWORD PTR [rax-12], 3 lea rcx, QWORD PTR [rax-24] movss DWORD PTR [rax-24], xmm0 movss DWORD PTR [rax-16], xmm1 movaps xmm0, XMMWORD PTR [rax-24] movdqa XMMWORD PTR [rax-24], xmm0 call f_sfifi add rsp, 56 ; 00000038H ret 0 call_f_sfifi ENDP _TEXT ENDS PUBLIC __real@40400000 PUBLIC __real@3f800000 PUBLIC call_f_sifif EXTRN f_sifif:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_sifif DD imagerel $LN3 DD imagerel $LN3+70 DD imagerel $unwind$call_f_sifif pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_sifif DD 010701H DD 06207H xdata ENDS ; COMDAT __real@40400000 CONST SEGMENT __real@40400000 DD 040400000r ; 3 CONST ENDS ; COMDAT __real@3f800000 CONST SEGMENT __real@3f800000 DD 03f800000r ; 1 ; Function compile flags: /Ogtpy CONST ENDS ; COMDAT call_f_sifif _TEXT SEGMENT call_f_sifif PROC ; COMDAT ; Line 161 $LN3: mov rax, rsp sub rsp, 56 ; 00000038H movss xmm0, DWORD PTR __real@3f800000 movss xmm1, DWORD PTR __real@40400000 mov DWORD PTR [rax-24], 0 mov DWORD PTR [rax-16], 2 lea rcx, QWORD PTR [rax-24] movss DWORD PTR [rax-20], xmm0 movss DWORD PTR [rax-12], xmm1 movaps xmm0, XMMWORD PTR [rax-24] movdqa XMMWORD PTR [rax-24], xmm0 call f_sifif add rsp, 56 ; 00000038H ret 0 call_f_sifif ENDP _TEXT ENDS PUBLIC $T1109 PUBLIC call_f_full_sifif EXTRN f_full_sifif:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_full_sifif DD imagerel $LN3 DD imagerel $LN3+90 DD imagerel $unwind$call_f_full_sifif pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_full_sifif DD 010401H DD 0c204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_full_sifif _TEXT SEGMENT $T1109 = 80 a1$ = 80 call_f_full_sifif PROC ; COMDAT ; Line 168 $LN3: sub rsp, 104 ; 00000068H xor eax, eax mov DWORD PTR a1$[rsp], 0 xor ecx, ecx lea edx, QWORD PTR [rax+1] mov DWORD PTR a1$[rsp+4], eax mov DWORD PTR a1$[rsp+8], eax mov DWORD PTR a1$[rsp+12], eax lea rax, QWORD PTR $T1109[rsp] lea r9d, QWORD PTR [rdx+2] movaps xmm0, XMMWORD PTR a1$[rsp] movdqa XMMWORD PTR $T1109[rsp], xmm0 mov QWORD PTR [rsp+64], rax mov BYTE PTR [rsp+56], 7 mov BYTE PTR [rsp+48], 6 lea r8d, QWORD PTR [rdx+1] mov BYTE PTR [rsp+40], 5 mov BYTE PTR [rsp+32], 4 call f_full_sifif add rsp, 104 ; 00000068H ret 0 call_f_full_sifif ENDP _TEXT ENDS PUBLIC $T1120 PUBLIC call_f_remain64_sifif EXTRN f_remain64_sifif:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_remain64_sifif DD imagerel $LN3 DD imagerel $LN3+56 DD imagerel $unwind$call_f_remain64_sifif pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_remain64_sifif DD 010401H DD 06204H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_remain64_sifif _TEXT SEGMENT $T1120 = 32 a1$ = 32 call_f_remain64_sifif PROC ; COMDAT ; Line 169 $LN3: sub rsp, 56 ; 00000038H xor eax, eax mov DWORD PTR a1$[rsp], 0 lea r8, QWORD PTR $T1120[rsp] mov DWORD PTR a1$[rsp+4], eax mov DWORD PTR a1$[rsp+8], eax mov DWORD PTR a1$[rsp+12], eax movaps xmm0, XMMWORD PTR a1$[rsp] movdqa XMMWORD PTR $T1120[rsp], xmm0 mov dl, 1 xor ecx, ecx call f_remain64_sifif add rsp, 56 ; 00000038H ret 0 call_f_remain64_sifif ENDP _TEXT ENDS PUBLIC call_f_sfffc EXTRN f_sfffc:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_sfffc DD imagerel $LN3 DD imagerel $LN3+68 DD imagerel $unwind$call_f_sfffc pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_sfffc DD 010701H DD 06207H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_sfffc _TEXT SEGMENT call_f_sfffc PROC ; COMDAT ; Line 173 $LN3: mov rax, rsp sub rsp, 56 ; 00000038H xorps xmm0, xmm0 movss xmm1, DWORD PTR __real@3f800000 mov BYTE PTR [rax-12], 3 lea rcx, QWORD PTR [rax-24] movss DWORD PTR [rax-24], xmm0 movss xmm0, DWORD PTR __real@40000000 movss DWORD PTR [rax-20], xmm1 movss DWORD PTR [rax-16], xmm0 movaps xmm1, XMMWORD PTR [rax-24] movdqa XMMWORD PTR [rax-24], xmm1 call f_sfffc add rsp, 56 ; 00000038H ret 0 call_f_sfffc ENDP _TEXT ENDS PUBLIC call_f_scfff EXTRN f_scfff:PROC ; COMDAT pdata pdata SEGMENT $pdata$call_f_scfff DD imagerel $LN3 DD imagerel $LN3+73 DD imagerel $unwind$call_f_scfff pdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$call_f_scfff DD 010701H DD 06207H ; Function compile flags: /Ogtpy xdata ENDS ; COMDAT call_f_scfff _TEXT SEGMENT call_f_scfff PROC ; COMDAT ; Line 177 $LN3: mov rax, rsp sub rsp, 56 ; 00000038H movss xmm0, DWORD PTR __real@3f800000 movss xmm1, DWORD PTR __real@40000000 mov BYTE PTR [rax-24], 0 lea rcx, QWORD PTR [rax-24] movss DWORD PTR [rax-20], xmm0 movss xmm0, DWORD PTR __real@40400000 movss DWORD PTR [rax-16], xmm1 movss DWORD PTR [rax-12], xmm0 movaps xmm1, XMMWORD PTR [rax-24] movdqa XMMWORD PTR [rax-24], xmm1 call f_scfff add rsp, 56 ; 00000038H ret 0 call_f_scfff ENDP _TEXT ENDS END
22.481149
81
0.699808
2ca83dfd3b523a186b225dc2786cb3c0e675d826
148
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_rmdt19.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_rmdt19.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_rmdt19.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_rmdt19.asm Type: file Size: 64613 Last-Modified: '2016-05-13T04:27:09Z' SHA-1: 0AF47E08CE49F91D1EDDA8F98F19B1271A5D664A Description: null
21.142857
47
0.817568
6bb7ed10bc45381f2700f2483cc2e5d69eb23696
355
asm
Assembly
Lab5/lab5_4.asm
richardhyy/AssemblyLab
7e0ba3800f3db1e2f5d616ca89905963d1da0996
[ "MIT" ]
3
2021-06-26T14:52:16.000Z
2021-11-23T03:48:48.000Z
Lab5/lab5_4.asm
richardhyy/AssemblyLab
7e0ba3800f3db1e2f5d616ca89905963d1da0996
[ "MIT" ]
1
2021-06-26T14:12:21.000Z
2021-06-26T14:18:54.000Z
Lab5/lab5_4.asm
richardhyy/AssemblyLab
7e0ba3800f3db1e2f5d616ca89905963d1da0996
[ "MIT" ]
4
2021-11-30T06:06:08.000Z
2022-03-16T03:55:42.000Z
assume cs:code a segment db 1,2,3,4,5,6,7,8 a ends b segment db 1,2,3,4,5,6,7,8 b ends c segment db 0,0,0,0,0,0,0,0 c ends code segment start: mov ax,a mov ds,ax mov ax,b mov es,ax mov ax,c mov ss,ax mov cx,8 s: mov bx,cx sub bx,1 mov dl,[bx] add dl,es:[bx] mov ss:[bx],dl loop s mov ax,4c00h int 21h code ends end start
10.757576
19
0.614085
123d36893f2727b1d13de58aa174adfe2025e721
668
asm
Assembly
oeis/008/A008466.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/008/A008466.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/008/A008466.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A008466: a(n) = 2^n - Fibonacci(n+2). ; Submitted by Christian Krause ; 0,0,1,3,8,19,43,94,201,423,880,1815,3719,7582,15397,31171,62952,126891,255379,513342,1030865,2068495,4147936,8313583,16655823,33358014,66791053,133703499,267603416,535524643,1071563515,2143959070,4289264409,8580707127,17164938832,34335580551,68680388567,137375707486,274775572789,549590233747,1099243713480,2198589761115,4397345102371,8794958119038,17590349732513,35181400873759,70363936650688,140729709613279,281462390441631,562929588410238,1125866955562525,2251746497394075,4503513359799224 mov $2,1 lpb $0 sub $0,1 add $5,$2 mul $2,2 mov $3,$5 mov $5,$4 add $4,$3 lpe mov $0,$5
44.533333
494
0.800898
7c01d39be6567c053a733c241683a7fd0dc23757
894
asm
Assembly
oeis/253/A253434.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/253/A253434.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/253/A253434.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A253434: Number of (n+1) X (7+1) 0..1 arrays with every 2 X 2 subblock diagonal minus antidiagonal sum nondecreasing horizontally, vertically and ne-to-sw antidiagonally. ; Submitted by Jamie Morken(s1.) ; 613,606,624,660,732,876,1164,1740,2892,5196,9804,19020,37452,74316,148044,295500,590412,1180236,2359884,4719180,9437772,18874956,37749324,75498060,150995532,301990476,603980364,1207960140,2415919692,4831838796,9663677004,19327353420,38654706252,77309411916,154618823244,309237645900,618475291212,1236950581836,2473901163084,4947802325580,9895604650572,19791209300556,39582418600524,79164837200460,158329674400332,316659348800076,633318697599564,1266637395198540,2533274790396492,5066549580792396 mov $3,$0 mov $4,$0 cmp $4,0 add $3,$4 mov $5,$0 div $5,$3 add $5,2 mov $2,$5 seq $3,89143 ; a(n) = 9*2^n - 6. lpb $5 mov $5,4 add $5,$2 sub $3,$5 div $5,3 lpe mov $0,$3 add $0,601
40.636364
497
0.780761
5cdf66e797104308ed6f638f46b544d58a8583d0
2,342
asm
Assembly
40-speed.asm
yuwanzeon/human-resource-machine-solutions
c95641bf409ed3419f7e71eafac0fcdabecb7204
[ "MIT" ]
1
2016-12-29T06:55:26.000Z
2016-12-29T06:55:26.000Z
40-speed.asm
yuwanzeon/human-resource-machine-solutions
c95641bf409ed3419f7e71eafac0fcdabecb7204
[ "MIT" ]
null
null
null
40-speed.asm
yuwanzeon/human-resource-machine-solutions
c95641bf409ed3419f7e71eafac0fcdabecb7204
[ "MIT" ]
null
null
null
-- HUMAN RESOURCE MACHINE PROGRAM -- COPYFROM 24 COPYTO 20 BUMPUP 20 a: COPYFROM 24 COPYTO 22 BUMPUP 22 BUMPUP 22 INBOX COPYTO 0 COMMENT 0 b: COPYFROM 24 COPYTO 23 COPYFROM 0 COPYTO 21 SUB 20 JUMPZ j c: COPYFROM 21 SUB 22 JUMPN e JUMPZ d COPYTO 21 BUMPUP 23 JUMP c d: COPYFROM 22 OUTBOX BUMPUP 23 COPYTO 0 JUMP b e: COMMENT 1 BUMPUP 22 f: COPYFROM 24 COPYTO 23 COPYFROM 0 COPYTO 21 SUB 20 JUMPZ k g: COPYFROM 21 SUB 22 JUMPN i JUMPZ h COPYTO 21 BUMPUP 23 JUMP g h: COPYFROM 22 OUTBOX BUMPUP 23 COPYTO 0 JUMP f i: COPYFROM 0 OUTBOX j: k: JUMP a DEFINE COMMENT 0 eJwTZGBgeJH1SCuw+JGWd2mKjlntH5u1DV3ui1qWRMq12efKtZ0rV2i916zZ9GeGXgPHou0109dcKjI6 8DXV59LZkqNn+XqOnmUYBaNgFAxZAAAhuiCV; DEFINE COMMENT 1 eJwTYWBgeJtxTdG6+prirup76tbVldaeZUsi7+eG1DzNjmn6lPa8szExs9uzLLN7a21u36rGwonzW6um z2ljmDOnTXS1Wa31sej8W3fu5z5+9CIr8znDKBgFo2BIAQBoWigf; DEFINE LABEL 20 eJxjZWBguJV/UuJW/oqYuDyGOfdzL11joCOY5KyXCGYkfbdkTZhc7R4/fQ2I+zep0FQx18wyrLDJ8VLR o4hLRTszgouOFkYWnCt/lCNYdTjhUpVfybVanlLJBp7S1z2nSq1ngPSdKmWYA6K9S82mupVHrAWx+Xo4 SoK6Jldf6bzVMKXzfb9w1+dJJ3vrZtVMaltgNTlkle2kiLUXuyBq4+fW2SnNmV63cE7iZhC/eK1im/ma skMg9v8VWyabrH3fL7JTq4eeYTQKRgEtAQA4mVLv; DEFINE LABEL 22 eJzzZ2BgUFV1P6+q6i+rpHZW+o/xWelHtiEK1x0faYU6NTm+sQyoLDO71dBgdK95nvq9Znn1Ww2zNW41 ALUxWPieu2zhm2u03fe57nZff1mQ2B7vo6LLg4+KKoe6i/PGJmiyJuQaMSX+sWFKbHNhTRD0mRK1Jn5l kHWWdpB7sUHArQbdwIh65dBbDdMiUzt4Yz9PYkiavLIuacnWX8kb9v1KNj8MMjOs0OdSWKGgT2QBg0Nk QYoOSGx7jdGB7TURypY1ziK7qt3Ft9eEKMxvnR4g0WGU0tWb0NrS/7qnZlLhxN+THrd9m3Ku/Nks2dAb 809KhC/4Y3N28a2GAyuMDhxYcfQsyCyVze7ib467i4PYm9deU9y81rlgwzqGOWvXC67Q2bBm99JN7ucl tzuf8b3sfAakRnPjltSCY0YpDKNgFAwDAAC7jYIO; DEFINE LABEL 23 eJxzY2BguOmQqR/tkGt0x17QJ8Fufthza++y59b9yxLs1uw+7+J+3trn3OXtvucub/E7eWF9wM4jsuGS 63piCyd2xj3vbIs/V94WvyaeI14tui9GMsjY/7vlGdcUnWDnR1qhTq8Nbjq8NgBawWDhG9Nk4Vs3a16Y 3t6ZEVsOikYdPCUU7XwGJPchPUHzQ/rjtpxMlvn3c7ccPF/sfGZvlfOZ5U1q2+Xacvuk25/rgtRdXhii cGN+jFr83FyjD9PUooumbUgqmnar4fPUhNaiaSzzX8w0OpA45+jZmHnnLocsDLlxeHnIDZXN7ufltjqf 6dg7fU3T/rYF/w5kdv87sDNj0s5bKjO2hyjIbb0kp7LZW0png7u44wp3cZflJyVOL4lQZhgFo2CEAABl XoK6;
24.14433
80
0.772417
6a93873c07b89606f7c606194b049859f463483a
1,874
asm
Assembly
Transynther/x86/_processed/US/_un_/i3-7100_9_0x84_notsx.log_2_3077.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_un_/i3-7100_9_0x84_notsx.log_2_3077.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_un_/i3-7100_9_0x84_notsx.log_2_3077.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1771f, %r15 nop nop nop inc %rcx movl $0x61626364, (%r15) nop nop nop nop cmp $57391, %r9 lea addresses_normal_ht+0x5d7, %rsi lea addresses_normal_ht+0x17acf, %rdi clflush (%rsi) nop nop nop nop and %rbp, %rbp mov $71, %rcx rep movsl and %r9, %r9 lea addresses_WT_ht+0x151c9, %rsi nop nop sub $34027, %r9 vmovups (%rsi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r13 nop nop dec %rbp lea addresses_A_ht+0x134cf, %rdi nop nop nop sub %r15, %r15 mov $0x6162636465666768, %rsi movq %rsi, (%rdi) nop cmp %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %rax push %rbp push %rcx // Faulty Load lea addresses_US+0x17acf, %r8 cmp $43235, %rbp mov (%r8), %ecx lea oracles, %rcx and $0xff, %rcx shlq $12, %rcx mov (%rcx,%rcx,1), %rcx pop %rcx pop %rbp pop %rax pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'fe': 2} fe fe */
19.319588
157
0.653148
a9b38138b2ff1a41ff44bd3cf7fea223244add31
7,939
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_405.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_405.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_405.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x18068, %rdx nop nop nop sub $43529, %r12 mov $0x6162636465666768, %r11 movq %r11, (%rdx) nop nop nop inc %rax lea addresses_A_ht+0x14052, %rax nop nop and $42929, %rsi mov $0x6162636465666768, %r11 movq %r11, %xmm4 movups %xmm4, (%rax) nop nop nop nop nop sub $12004, %rsi lea addresses_WT_ht+0x120fe, %rsi lea addresses_WT_ht+0x8746, %rdi nop nop and %r8, %r8 mov $39, %rcx rep movsl nop xor $21663, %rsi lea addresses_WT_ht+0x1bf31, %rsi lea addresses_normal_ht+0x1af76, %rdi nop xor %rax, %rax mov $8, %rcx rep movsl add $16462, %r12 lea addresses_normal_ht+0x8eaf, %r8 nop nop nop nop nop add %rcx, %rcx mov (%r8), %eax and %rdx, %rdx lea addresses_UC_ht+0xea3e, %rsi lea addresses_normal_ht+0x19f8e, %rdi nop nop nop nop nop cmp %r12, %r12 mov $58, %rcx rep movsb nop nop nop cmp $49732, %rcx lea addresses_D_ht+0x4f46, %rsi lea addresses_D_ht+0x1bd1a, %rdi nop nop nop sub %r8, %r8 mov $6, %rcx rep movsl nop nop nop nop nop lfence lea addresses_UC_ht+0x8746, %rsi lea addresses_A_ht+0x110e6, %rdi clflush (%rdi) nop and %rdx, %rdx mov $53, %rcx rep movsl nop nop inc %rax lea addresses_D_ht+0x8546, %r12 nop nop nop nop nop inc %rcx movb $0x61, (%r12) nop nop nop nop nop add $24741, %rdi lea addresses_WC_ht+0x12046, %rsi lea addresses_normal_ht+0x8f80, %rdi nop nop nop nop inc %rax mov $17, %rcx rep movsq nop nop xor $6464, %r12 lea addresses_D_ht+0x5c18, %rax clflush (%rax) nop nop nop nop and $13317, %r12 mov (%rax), %rdx nop nop nop nop add %rdx, %rdx lea addresses_D_ht+0x163c6, %rdx nop nop nop nop mfence mov $0x6162636465666768, %rdi movq %rdi, %xmm3 and $0xffffffffffffffc0, %rdx movntdq %xmm3, (%rdx) nop add $51606, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rbp push %rbx push %rcx push %rdi // Load mov $0xc66, %rbp clflush (%rbp) nop cmp $5926, %rbx mov (%rbp), %r8 nop nop nop nop nop inc %r8 // Store lea addresses_normal+0x8f3e, %r8 xor %r14, %r14 mov $0x5152535455565758, %r13 movq %r13, (%r8) nop nop nop xor %rbx, %rbx // Store lea addresses_WC+0xf746, %rbp sub %r8, %r8 mov $0x5152535455565758, %r14 movq %r14, %xmm0 movups %xmm0, (%rbp) nop add $58262, %rbx // Faulty Load lea addresses_A+0x5746, %rcx nop inc %r8 movups (%rcx), %xmm2 vpextrq $1, %xmm2, %rbp lea oracles, %r13 and $0xff, %rbp shlq $12, %rbp mov (%r13,%rbp,1), %rbp pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.404082
2,999
0.658773
53eb225cd6786aa1fde6aa731e36fd68f157908f
843
asm
Assembly
programs/oeis/248/A248516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/248/A248516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/248/A248516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A248516: n^2+1 divided by its largest prime factor. ; 1,1,2,1,2,1,10,5,2,1,2,5,10,1,2,1,10,25,2,1,26,5,10,1,2,1,10,5,2,17,26,25,10,13,2,1,10,85,2,1,58,5,50,13,2,29,130,5,2,41,2,5,10,1,34,1,250,5,2,13,2,5,10,17,2,1,10,125,2,169,2,85,130,1,58,53,10,5,2,37,34,25,130,1,2,13,10,5,34,1,82,5,50,1,2,13,10,85,338,73,2,5,10,29,74,17,50,5,26,1,122,65,10,41,34,1,370,25,146,1,2,65,170,1,26,1,10,145,106,1,2,425,290,1,26,53,10,65,2,17,2,185,50,89,2,1,10,65,34,1,26,5,10,37,82,1,850,5,2,1,26,145,10,13,2,17,10,25,2,1,2,305,410,221,2,1,130,5,74,1,2,625,170,1,218,29,130,5,106,13,986,365,250,61,2,41,10,5,2,221,2,5,130,1,2,1,50,85,2,1,226,445,130,41,58,481,170,25,2,29,2,5,10,1,34,13,10,185,26,1,2,25,610,17,106,1,410,5,4394,1,226,1105,50,29,2,73,10,5,58,1 add $0,1 pow $0,2 cal $0,52126 ; a(1) = 1; for n>1, a(n)=n/(largest prime dividing n). mov $1,$0
105.375
690
0.634638
bc6e008b11d9e8570d65e6ef015fca9d81e8ca48
6,337
asm
Assembly
Source/RealModeDrivers/VideoDriver.asm
lecode-official/axiom-os
b48624869104eda7386c9fa6303a0cd3f2ce4128
[ "MIT" ]
null
null
null
Source/RealModeDrivers/VideoDriver.asm
lecode-official/axiom-os
b48624869104eda7386c9fa6303a0cd3f2ce4128
[ "MIT" ]
null
null
null
Source/RealModeDrivers/VideoDriver.asm
lecode-official/axiom-os
b48624869104eda7386c9fa6303a0cd3f2ce4128
[ "MIT" ]
null
null
null
; Resets the screen to its default state (80x25 text, 16 colors, 8 pages) and clears the screen. ResetScreen: ; Pushes all registers that are used in this function to the stack, so that we can manipulate them as we wish, before the function call returns, ; the registers are restored by popping their values from the stack, this ensures that the registers contain the exact values that the caller ; expects them to have push ax ; The BIOS video service, which resides in the interrupt 0x10, expects the number of the function that is being call in the AH register, since ; the set video mode function is used (which has the number 0x00), then value of AH is set accordingly mov ah, 0x00 ; The BIOS video service expects the video mode that is to be set in the AL register, 0x03 stands for the video mode 80x25 text, 16 colors, 8 ; pages, since the 7th bit of the AL register is not set, the screen is also cleared mov al, 0x03 ; Calls the BIOS video service interrupt to set the scren mode int 0x10 ; Restores all registers to the state that the caller expects them to be and returns to the caller pop ax ret ; Write a string to the screen. ; DS:SI => The address of the string that is to written to the screen (the string must be null-terminated). ; BL => The foreground color with which the character is to be displayed. The following color values are allowed: 0x0 = Black, 0x1 = Blue, ; 0x2 = Green, 0x3 = Cyan, 0x4 = Red, 0x5 = Magenta, 0x6 = Brown, 0x7 = Light Gray, 0x8 = Dark Gray, 0x9 = Light Blue, 0xA Ligth Green, ; 0xB = Light Cyan, 0xC = Light Red, 0xD Light Magenta, 0xE = Yellow, 0xD = White. Write: ; Pushes all registers that are used in this function to the stack, so that we can manipulate them as we wish, before the function call returns, ; the registers are restored by popping their values from the stack, this ensures that the registers contain the exact values that the caller ; expects them to have pusha ; Cycles over each character that is to be written and writes it, when the null character is reached, the loop is stopped, since the cursor is ; not moved when a character is written, the cursor is moved by hand WriteLoop: mov ah, 0x9 ; The number of the BIOS 0x10 interrupt function for writing a character and attribute mov bh, 0x0 ; The character is to be written to the first page mov cx, 0x1 ; CX contains the repeat count, since the characters should only be written once, it is set to 0x01 lodsb ; Loads the next character of the string into the AL register (which is where the interrupt 0x10 expects it) or al, al ; Performs a bitwise OR on the AL register in order to set the flags register (this is needed to check AL for 0) jz Return ; If register AL is 0, then the function is exited, since the string is null-terminated and that end was reached int 0x10 ; Calls the BIOS video service interrupt to write the current character mov ah, 0x3 ; The number of the BIOS 0x10 interrupt function for querying the current position of the cursor int 0x10 ; Queries the current position of the cursor, so that the cursor position can be increased by one mov ah, 0x2 ; The number of the BIOS 0x10 interrupt function for setting the position of the cursor inc dl ; After calling function 0x3, DL contains the current column number of the cursor, which is increased by one int 0x10 ; Sets the new cursor position, which is the next column jmp WriteLoop ; Loops over the string till the 0 terminator is reached ; This marks the end of the function, it restores all registers to the state that the caller expects them to be Return: popa ; Pops all registers from the stack to restore them to their previous state ret ; Returns to the caller ; Write a string to the screen and adds a line break to the end. ; DS:SI => The address of the string that is to written to the screen (the string must be null-terminated). ; BL => The foreground color with which the character is to be displayed. The following color values are allowed: 0x0 = Black, 0x1 = Blue, ; 0x2 = Green, 0x3 = Cyan, 0x4 = Red, 0x5 = Magenta, 0x6 = Brown, 0x7 = Light Gray, 0x8 = Dark Gray, 0x9 = Light Blue, 0xA Ligth Green, ; 0xB = Light Cyan, 0xC = Light Red, 0xD Light Magenta, 0xE = Yellow, 0xD = White. WriteLine: ; First of all the string itself is written call Write ; Pushes all registers that are used in this function to the stack, so that we can manipulate them as we wish, before the function call returns, ; the registers are restored by popping their values from the stack, this ensures that the registers contain the exact values that the caller ; expects them to have pusha ; After the string is written, the line break is added, which is done by moving the cursor to the first column of the next line mov bh, 0x0 ; Since the video driver only writes to the first page, the cursor position of the first page is retrieved mov ah, 0x3 ; The number of the BIOS 0x10 interrupt function for querying the current position of the cursor int 0x10 ; Queries the current position of the cursor mov ah, 0x2 ; The number of the BIOS 0x10 interrupt function for setting the position of the cursor mov dl, 0x0 ; After calling function 0x3, DL contains the current colum number of the cursor, which is reset to one inc dh ; After calling function 0x3, DH contains the current row number of the cursor, which is increased by one int 0x10 ; Sets the new cursor position, to the beginning of the next line ; Pops all registers from the stack and restores them to their previous state, terminates the function call, and returns to the caller popa ret
74.552941
148
0.672874
d1e034869058a2c965081d930ff38314b01c4b7f
1,761
asm
Assembly
src/test/ref/plus4-kbhit.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/plus4-kbhit.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/plus4-kbhit.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test implementation of kbhit() for Plus/4 /// @file /// Plus/4 / Commodore 16 registers and memory layout /// /// http://zimmers.net/anonftp/pub/cbm/schematics/computers/plus4/264_Hardware_Spec.pdf /// http://www.zimmers.net/anonftp/pub/cbm/schematics/computers/plus4/Plus_4_Technical_Docs.pdf /// http://personalpages.tds.net/~rcarlsen/cbm/c16/C16_Service_Manual_314001-03_(1984_Oct).pdf /// https://www.floodgap.com/retrobits/ckb/secret/264memory.txt /// @file /// The MOS 7360/8360 TED chip used for graphics and sound in Plus/4 and Commodore 16 /// /// https://www.karlstechnology.com/commodore/TED7360-datasheet.pdf /// http://mclauchlan.site.net.au/scott/C=Hacking/C-Hacking12/gfx.html // Commodore 16 / Plus/4 executable PRG file .file [name="plus4-kbhit.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$1001] .segmentdef Code [start=$100d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const OFFSET_STRUCT_MOS7360_TED_KEYBOARD_INPUT = 8 /// Keyboard Port PIO (P0-P7) /// The input latch is part of the TED. .label KEYBOARD_PORT = $fd30 /// The TED chip controlling video and sound on the Plus/4 and Commodore 16 .label TED = $ff00 .segment Code main: { __b1: // kbhit() jsr kbhit // while(!kbhit()) cmp #0 beq __b1 // } rts } // Return true if there's a key waiting, return false if not kbhit: { // KEYBOARD_PORT->PORT = 0x00 // Read all keyboard matrix rows lda #0 sta KEYBOARD_PORT // TED->KEYBOARD_INPUT = 0 // Write to the keyboard input to latch the matrix column values sta TED+OFFSET_STRUCT_MOS7360_TED_KEYBOARD_INPUT // ~TED->KEYBOARD_INPUT eor #$ff // } rts }
33.226415
95
0.704145
2c7fedc411c0a0fb3e68fa5ff32318519d1755bc
6,841
asm
Assembly
Appl/Calendar/Misc/miscCustomSpin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Calendar/Misc/miscCustomSpin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Calendar/Misc/miscCustomSpin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Calendar/Misc FILE: miscCustomSpin.asm AUTHOR: Don Reeves, February 7, 1990 ROUTINES: Name Description ---- ----------- CustomSpinGetValueText Returns text to use for a certain value CustomSpinSetValueFromText Sets a value based on the text REVISION HISTORY: Name Date Description ---- ---- ----------- Don 2/7/90 Initial revision Chris 7/22/92 Rewritten to be subclassed from GenValueClass DESCRIPTION: Implements the custom spin gadget, used to display "n" monikers using a GenSpinGadget. To allow the gadget to hold an easily expandable number of monikers, a table of pointers to monikers is utilized: CustomSpinGadget -> MonikerList --> Moniker 0 |-> Moniker 1 |-> Moniker 2 ... Notice that the system is zero-based! If an ActionDescriptor is provided (by setting the "action" field in the .UI file, then the current index value is reported in CX every time it is changed. No check for duplicity is made. $Id: miscCustomSpin.asm,v 1.1 97/04/04 14:48:44 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ idata segment CustomSpinClass ; my custom spin gadget idata ends RepeatCode segment resource COMMENT @---------------------------------------------------------------------- METHOD: CustomSpinGetValueText -- MSG_GEN_VALUE_GET_VALUE_TEXT for CustomSpinClass DESCRIPTION: Returns appropriate text for the value. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_VALUE_GET_VALUE_TEXT cx:dx - buffer to hold text bp - GenValueChoice RETURN: cx:dx - buffer, filled in ax, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 7/22/92 Initial Version ------------------------------------------------------------------------------@ CustomSpinGetValueText method dynamic CustomSpinClass, \ MSG_GEN_VALUE_GET_VALUE_TEXT tst bp ;make sure they want current jz getMonikerText ;yes, branch mov di, offset CustomSpinClass GOTO ObjCallSuperNoLock ;else give up, and return digits getMonikerText: mov bx, ds:[di].GVLI_value.WWF_int ;get integer value shl bx, 1 ; double for word array add bx, ds:[di].CS_firstMoniker ; moniker handle => BX mov si, ds:[bx] ; dereference chunk movdw esdi, cxdx ; point to destination copyLoop: LocalGetChar ax, dssi ; copy the string in LocalPutChar esdi, ax LocalIsNull ax jnz copyLoop ret CustomSpinGetValueText endm COMMENT @---------------------------------------------------------------------- METHOD: CustomSpinSetValueFromText -- MSG_GEN_VALUE_SET_VALUE_FROM_TEXT for CustomSpinClass DESCRIPTION: Sets the value from the text, using the one that matches. We'll allow for partial completion here; one may want to make that an option. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_VALUE_SET_VALUE_FROM_TEXT cx:dx - text bp - GenValueChoice RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 7/22/92 Initial Version ------------------------------------------------------------------------------@ CustomSpinSetValueFromText method dynamic CustomSpinClass, \ MSG_GEN_VALUE_SET_VALUE_FROM_TEXT tst bp ;not current value, punt je setValue mov di, offset CustomSpinClass GOTO ObjCallSuperNoLock setValue: ; ; Loop through the monikers, looking for a match, until it's time to ; give up. ; mov bx, ds:[di].CS_firstMoniker ; moniker handle => BX movdw esdi, cxdx ; text in es:di clr cx ; keep value counter mov bp, si ; keep chunk handle in bp checkLoop: mov si, ds:[bx] ; redef moniker, ds:si push di strCmp: cmp {byte} es:[di], 0 ; at end of string, match jz found cmpsb ; else get a moniker byte je strCmp ; bytes match, loop inc cx ; else bump count inc bx ; and bump moniker pointer inc bx mov di, ds:[bp] add di, ds:[di].Gen_offset cmp cx, ds:[di].GVLI_maximum.WWF_int ; past last entry? pop di ; (restore start of dest) jbe checkLoop ; no, loop mov ax, SST_NO_INPUT ; else we'll signal an error call UserStandardSound ret ; and give up found: pop di ; unload pointer mov si, bp ; value in dx.cx clr bp ; not indeterminate mov ax, MSG_GEN_VALUE_SET_INTEGER_VALUE GOTO ObjCallInstanceNoLock CustomSpinSetValueFromText endm COMMENT @---------------------------------------------------------------------- METHOD: CustomSpinGetTextFilter -- MSG_GEN_VALUE_GET_TEXT_FILTER for CustomSpinClass DESCRIPTION: Returns text filter to use. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_VALUE_GET_TEXT_FILTER RETURN: al - VisTextFilters ah, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 6/ 1/92 Initial Version ------------------------------------------------------------------------------@ CustomSpinGetTextFilter method dynamic CustomSpinClass, \ MSG_GEN_VALUE_GET_TEXT_FILTER mov al, mask VTF_NO_TABS ;allow everything but tabs ret CustomSpinGetTextFilter endm COMMENT @---------------------------------------------------------------------- METHOD: CustomSpinGetMaxTextLen -- MSG_GEN_VALUE_GET_MAX_TEXT_LEN for CustomSpinClass DESCRIPTION: Handles getting the maximum text length for the gadget. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_VALUE_GET_MAX_TEXT_LEN RETURN: nothing ax, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 7/22/92 Initial Version ------------------------------------------------------------------------------@ CustomSpinGetMaxTextLen method dynamic CustomSpinClass, \ MSG_GEN_VALUE_GET_MAX_TEXT_LEN clr cx mov cl, ds:[di].CS_maxTextLen ret CustomSpinGetMaxTextLen endm RepeatCode ends
25.718045
80
0.615553
dfedc2a988f98b071e14d404562b4d7f0a2b3c8c
303
asm
Assembly
lab_sheet_4/Task_3.asm
jbnerd/Micro-Proc_ASM_codes
42f31b8f951968cae65fbcd67c7e526de751b0e2
[ "MIT" ]
null
null
null
lab_sheet_4/Task_3.asm
jbnerd/Micro-Proc_ASM_codes
42f31b8f951968cae65fbcd67c7e526de751b0e2
[ "MIT" ]
null
null
null
lab_sheet_4/Task_3.asm
jbnerd/Micro-Proc_ASM_codes
42f31b8f951968cae65fbcd67c7e526de751b0e2
[ "MIT" ]
4
2017-06-24T11:37:10.000Z
2019-02-05T08:12:56.000Z
.model tiny .data filename db 'nameID.txt',0 data db 100 dup('$') .code .startup mov ah,3dh mov al,02h lea dx,filename int 21h mov bx,ax mov ah,3fh mov cx,51 lea dx,data int 21h lea dx,data mov ah, 09h int 21h mov ah,3eh int 21h .exit end
11.222222
27
0.567657
80a4b595b7372f0f166db49ada9947468c9c2aaa
4,696
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_17_610.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_17_610.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_17_610.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 %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x3d15, %rcx nop nop cmp $15704, %rdi mov (%rcx), %ax nop nop sub %r8, %r8 lea addresses_normal_ht+0x1115, %rsi clflush (%rsi) nop add %rcx, %rcx mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%rsi) nop nop nop nop nop inc %r8 lea addresses_A_ht+0x515, %rbx nop nop nop cmp %r8, %r8 movw $0x6162, (%rbx) nop nop nop nop inc %rbx lea addresses_WC_ht+0x3315, %rsi lea addresses_WT_ht+0x1cbf, %rdi nop nop nop nop and %rbx, %rbx mov $78, %rcx rep movsw nop nop nop nop nop cmp %rbx, %rbx lea addresses_UC_ht+0x6c15, %rsi lea addresses_D_ht+0x1d178, %rdi nop nop and %r11, %r11 mov $49, %rcx rep movsq nop nop sub $17129, %rcx lea addresses_A_ht+0x137cd, %rdi nop nop nop nop nop sub $27179, %r11 mov (%rdi), %esi nop nop nop nop nop xor %rdi, %rdi lea addresses_D_ht+0x1515, %r11 and $20058, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%r11) nop nop xor $30937, %rdi lea addresses_WT_ht+0x13f15, %rdi nop nop nop xor $29990, %rax mov (%rdi), %bx nop nop add $46652, %rsi lea addresses_UC_ht+0xb7a5, %rax nop nop nop nop inc %rsi movw $0x6162, (%rax) nop nop nop nop nop cmp %rsi, %rsi lea addresses_normal_ht+0x8115, %rsi lea addresses_A_ht+0xee95, %rdi add $39899, %r13 mov $90, %rcx rep movsw nop nop nop nop nop add %r13, %r13 lea addresses_WC_ht+0x12aed, %rcx nop and %r13, %r13 mov (%rcx), %ax nop nop cmp %r13, %r13 lea addresses_WC_ht+0xad15, %r8 nop nop sub $17963, %rsi movb $0x61, (%r8) nop sub %rax, %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbp push %rbx push %rdx push %rsi // Store lea addresses_RW+0x11515, %rsi nop nop nop inc %rbp mov $0x5152535455565758, %rbx movq %rbx, (%rsi) nop xor $28832, %r10 // Store mov $0x280ca400000005d5, %rbp sub $6349, %rdx movw $0x5152, (%rbp) nop nop nop nop add $35667, %r12 // Store lea addresses_RW+0x11515, %r12 clflush (%r12) nop nop nop nop add %rdx, %rdx movl $0x51525354, (%r12) nop nop nop dec %rbx // Faulty Load lea addresses_RW+0x11515, %rsi nop nop nop add $41304, %r10 movb (%rsi), %r12b lea oracles, %rbp and $0xff, %r12 shlq $12, %r12 mov (%rbp,%r12,1), %r12 pop %rsi pop %rdx pop %rbx pop %rbp pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'54': 17} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
19.814346
151
0.645869
12944f51a48311c773a8d8f689730115f4d34934
5,905
asm
Assembly
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF13.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
null
null
null
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF13.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
5
2018-02-15T10:21:58.000Z
2018-09-21T10:33:36.000Z
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF13.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
2
2018-05-24T16:47:00.000Z
2019-10-05T15:11:32.000Z
; DCL_DF13.asm - Direct Form 1 implementation in third order ; version 1.0, August 2015 ; C callable labels .def _DCL_runDF13 ; full controller .def _DCL_runDF13i ; immediate controller for pre-computation .def _DCL_runDF13p ; partial controller for pre-computation ; ; C type definition: ; typedef volatile struct { ; // coefficients ; float b0; // [0] b0 ; float b1; // [2] b1 ; float b2; // [4] b2 ; float b3; // [6] b3 ; float a0; // [8] a0 ; float a1; // [A] a1 ; float a2; // [C] a2 ; float a3; // [E] a3 ; ; //data ; float d0; // [10] e(k) ; float d1; // [12] e(k-1) ; float d2; // [14] e(k-2) ; float d3; // [16] e(k-3) ; float d4; // [18] u(k) ; float d5; // [1A] u(k-1) ; float d6; // [1C] u(k-2) ; float d7; // [1E] u(k-3) ; } DF13; ;*** full controller *** ; C prototype: ; float DCL_runDF13(DF13 *p, float ek) ; argument 1 = *p : 32-bit ARMA structure address [XAR4] ; argument 2 = ek : 32-bit floating-point input [R0H] ; return = uk : 32-bit floating-point [R0H] ; XAR4 = coefficient pointer ; XAR5 = data pointer ; example of section allocation in linker command file: ; dclfuncs : > RAML4, PAGE = 0 .sect "dclfuncs" _DCL_runDF13: ; context save PUSH XAR5 MOV32 *SP++, R1H MOV32 *SP++, R2H MOV32 *SP++, R3H MOV32 *SP++, R4H MOV32 *SP++, R5H ; initialize pointers MOVL ACC, @XAR4 ; ACC = &p(0) = &b0 ADDB ACC, #0x10 ; ACC = &p(8) = &d0 MOVL XAR5, ACC ; XAR5 = &d0 MOV32 *XAR5++, R0H ; save d0, XAR5 = &d1 ; v0 = b0 * d0 MOV32 R1H, *XAR4++ ; R1H = b0 MPYF32 R2H, R0H, R1H ; R2H = v0 || MOV32 R3H, *XAR5 ; R3H = d1 MOV32 *XAR5++, R0H ; save d0 ; v1 = b1 * d1 MOV32 R1H, *XAR4++ ; R1H = b1 MPYF32 R4H, R1H, R3H ; R4H = v1 || MOV32 R5H, *XAR5 ; R5H = d2 MOV32 *XAR5++, R3H ; save d1 ; v2 = b2 * d2 ADDF32 R0H, R2H, R4H ; R0H = v01 || MOV32 R1H, *XAR4++ ; R1H = b2 MPYF32 R2H, R1H, R5H ; R2H = v2 || MOV32 R4H, *XAR5 ; R4H = d3 MOV32 *XAR5++, R5H ; save d2 ; v3 = b3 * d3 ADDF32 R0H, R0H, R2H ; R0H = v012 || MOV32 R1H, *XAR4++ ; R1H = b3 MPYF32 R3H, R1H, R4H ; R3H = v3 MOV32 R2H, *+XAR5[6] ; R2H = d7 ; XAR4 = &a0, XAR5 = &d4. Indirect offset addressing from here. ; v7 = a3 * d7 ADDF32 R0H, R0H, R3H ; R0H = v0123 || MOV32 R1H, *+XAR4[6] ; R1H = a3 MPYF32 R3H, R1H, R2H ; R3H = v7 MOV32 R4H, *+XAR5[4] ; R4H = d6 MOV32 *+XAR5[6], R4H ; save d6 ; v6 = a2 * d6 SUBF32 R0H, R0H, R3H ; R0H = v01237 || MOV32 R1H, *+XAR4[4] ; R1H = a2 MPYF32 R2H, R1H, R4H ; R2H = v6 MOV32 R5H, *+XAR5[2] ; R5H = d5 MOV32 *+XAR5[4], R5H ; save d5 ; v5 = a1 * d5 SUBF32 R0H, R0H, R2H ; R0H = v012367 || MOV32 R1H, *+XAR4[2] ; R1H = a1 MPYF32 R2H, R1H, R5H ; R2H = v5 MOV32 R5H, *--SP, UNCF SUBF32 R0H, R0H, R2H ; R0H = v0123567 MOV32 R4H, *--SP, UNCF MOV32 *+XAR5[2], R0H ; save d4 MOV32 *+XAR5[0], R0H ; save u(k) ; context restore MOV32 R3H, *--SP, UNCF MOV32 R2H, *--SP, UNCF MOV32 R1H, *--SP, UNCF POP XAR5 LRETR ; return ;*** immediate controller when using pre-computation *** ; C prototype: ; float DCL_runDF13i(DF13 *p, float ek, float vk) ; argument 1 = *p : controller structure address [XAR4] ; argument 2 = ek : controller input [R0H] ; argument 3 = vk : partial product [R1H] ; return = uk : controller output [R0H] _DCL_runDF13i: MOV32 *SP++, R2H MOV32 R2H, *+XAR4[0] ; R2H = b0 MPYF32 R0H, R0H, R2H ; R0H = e(k) * b0 MOV AR0, #0x18 ; AR0 = 24 ADDF32 R0H, R0H, R1H ; R0H = u(k) MOV32 R2H, *--SP, UNCF LRETR ;*** pre-computed partial controller *** ; C prototype: ; float DCL_runDF13p(DF13 *p, float ek, float uk) ; argument 1 = *p : controller structure address [XAR4] ; argument 2 = ek : controller input [R0H] ; argument 3 = uk : controller output [R1H] ; return : v(k) _DCL_runDF13p: ; context save PUSH AR1H:AR0H PUSH XAR5 MOV32 *SP++, R1H MOV32 *SP++, R2H MOV32 *SP++, R3H MOV32 *SP++, R4H MOV32 *SP++, R5H MOV32 *SP++, R6H MOV32 *SP++, R7H ; initialise pointers MOVL ACC, @XAR4 ; ACC = &p(0) = &b0 ADDB ACC, #0x10 ; ACC = &p(8) = &d0 MOVL XAR5, ACC ; XAR5 = &d0 MOV32 *XAR5++, R0H ; save d0, XAR5 = d1 ; v1 = e(k) * b1 MOV32 R2H, *XAR4++ ; R2H = b0 MOV32 R2H, *XAR4++ ; R2H = b1 MPYF32 R3H, R2H, R0H ; R3H = v1 || MOV32 R4H, *XAR5 ; R4H = d1 MOV32 *XAR5++, R0H ; save e(k-1) ; v2 = e(k-1) * b2 MOV32 R5H, *XAR4++ ; R5H = b2 MPYF32 R2H, R5H, R4H ; R2H = v2 || MOV32 R6H, *XAR5 ; R6H = d2 MOV32 *XAR5++, R4H ; save e(k-2) ; v3 = e(k-3) * b3 MOV32 R5H, *XAR4++ ; R5H = b3 MPYF32 R7H, R5H, R6H ; R7H = v2 || MOV32 *XAR5++, R6H ; save e(k-3) ; save v123 ADDF32 R0H, R3H, R2H ; R0H = v1 + v2 MOV32 R5H, *XAR4++ ; R5H = a0 ADDF32 R0H, R0H, R7H ; R0H = v1 + v2 + v3 || MOV32 R5H, *XAR4++ ; R5H = a1 ; v4 = u(k) * a1 MPYF32 R2H, R1H, R5H ; R2H = v4 || MOV32 *XAR5++, R1H ; XAR5 = &d5 MOV32 R3H, *XAR5 ; R3H = d5 SUBF32 R0H, R0H, R2H ; R0H = v1 + v2 + v3 - v4 MOV32 *XAR5++, R1H ; save u(k-1) ; v5 = u(k-1) * a2 MOV32 R4H, *XAR4++ ; R4H = a2 MPYF32 R5H, R4H, R3H ; R5H = v5 || MOV32 R1H, *XAR5 ; R2H = d6 MOV32 *XAR5++, R3H ; save u(k-2) ; v6 = u(k-2) * a3 SUBF32 R0H, R0H, R5H ; R0H = v1 + v2 + v3 - v4 - v5 || MOV32 R6H, *XAR4 ; R6H = a3 MPYF32 R7H, R6H, R1H ; R7H = v7 MOV32 *XAR5, R1H ; save u(k-3) SUBF32 R0H, R0H, R7H ; save v(k+1) ; context restore MOV32 R7H, *--SP, UNCF MOV32 R6H, *--SP, UNCF MOV32 R5H, *--SP, UNCF MOV32 R4H, *--SP, UNCF MOV32 R3H, *--SP, UNCF MOV32 R2H, *--SP, UNCF MOV32 R1H, *--SP, UNCF POP XAR5 POP AR1H:AR0H LRETR .end ; end of file
26.013216
68
0.54293
d252f8876cbf24f979ee10dc44b4cbd5b662afee
514
asm
Assembly
oeis/089/A089889.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/089/A089889.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/089/A089889.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A089889: Number of subsets of {1,.., n} containing exactly one square. ; Submitted by Christian Krause ; 1,2,4,8,16,32,64,128,192,384,768,1536,3072,6144,12288,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,5242880,10485760,20971520,41943040,83886080,167772160,335544320,671088640,1342177280 mov $1,1 mov $3,$0 mov $4,3 lpb $3 mul $1,$3 mul $1,2 add $2,1 sub $5,2 max $5,$3 add $5,$4 div $1,$5 add $2,$1 dif $2,2 mul $2,2 sub $3,1 add $4,2 lpe mov $0,$2 div $0,2 add $0,1
20.56
203
0.669261
669d552d8319056d50f81708398a174b9df95a0e
401
asm
Assembly
programs/oeis/249/A249999.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/249/A249999.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/249/A249999.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A249999: Expansion of 1/((1-x)^2*(1-2*x)*(1-3*x)). ; 1,7,32,122,423,1389,4414,13744,42245,128771,390396,1179366,3554467,10696153,32153978,96592988,290041089,870647535,2612991160,7841070610,23527406111,70590606917,211788597942,635399348232,1906265153533,5718929678299,17157057470324,51471709281854 mov $1,$0 add $1,1 seq $1,5173 ; Number of trees of subsets of an n-set. add $0,$1 div $0,2 add $0,1
40.1
245
0.765586
883285c01357afece3de7e47a2832f7f8da0b27b
18,052
asm
Assembly
multimedia/directx/dsound/dsvxd/i386/dshel.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dsound/dsvxd/i386/dshel.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dsound/dsvxd/i386/dshel.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;**************************************************************************** ;** ** ;** ** ;** ** ;** ** ;** ** ;** ** ;** ** ;** ** ;**************************************************************************** .386 .xlist include vmm.inc include vtd.inc include debug.inc ; include mmdevldr.inc include vwin32.inc include pagefile.inc include vmcpd.inc ; include shell.inc ; include debugsys.inc .list Create_DSOUND_Service_Table equ 1 include dsdriver.inc OPTION SCOPED ;**************************************************************************** ;** ** ;** VxD declaration ** ;** ** ;**************************************************************************** DSOUND_VERSION_MAJOR equ 4 ; Version 4.02 DSOUND_VERSION_MINOR equ 2 ; Declare_Virtual_Device DSOUND, \ DSOUND_VERSION_MAJOR, DSOUND_VERSION_MINOR, \ DSOUND_Control, \ DSOUND_Device_ID, \ UNDEFINED_INIT_ORDER, \ DSOUND_API_Handler, \ DSOUND_API_Handler ;**************************************************************************** ;** ** ;** Macro, equate, and type declarations ** ;** ** ;**************************************************************************** LONG_MAX equ 7fffffffh ;Maximum 32-bit signed value RESAMPLING_TOLERANCE equ 0 ;E.g., 655=1% resampling tolerance ;**************************************************************************** ;** ** ;** Locked data ** ;** ** ;**************************************************************************** VxD_LOCKED_DATA_SEG ;**************************************************************************** ;** ** ;** Primitive vectors generated at beginning of data segment ** ;** ** ;** 1st 32 entries: MAKE_DC procedures for AILSSA_DMA_copy() ** ;** 2nd 128 entries: MAKE_MERGE procedures for AILSSA_merge() ** ;** ** ;**************************************************************************** ; ;First device code is duplicated since IOCTL calls with ;function 0 always fail in Win95 for some reason ; ;--- ; ; Read the documentation, silly. Function 0 is DIOC_OPEN. ; It is the VxD version of PROCESS_ATTACH. DSVXD_IOCTL_Table LABEL DWORD dd OFFSET32 _ioctlDsvxdGetVersion dd OFFSET32 _ioctlDsvxdInitialize dd OFFSET32 _ioctlDsvxdShutdown dd OFFSET32 _ioctlDrvGetNextDescFromGuid dd OFFSET32 _ioctlDrvGetDescFromGuid dd OFFSET32 _ioctlIDsDriver_QueryInterface dd OFFSET32 _ioctlDrvOpenFromGuid dd OFFSET32 _ioctlIDsDriver_Close dd OFFSET32 _ioctlIDsDriver_GetCaps dd OFFSET32 _ioctlIDsDriver_CreateSoundBuffer dd OFFSET32 _ioctlIDsDriver_DuplicateSoundBuffer dd OFFSET32 _ioctlBufferRelease dd OFFSET32 _ioctlBufferLock dd OFFSET32 _ioctlBufferUnlock dd OFFSET32 _ioctlBufferSetFormat dd OFFSET32 _ioctlBufferSetFrequency dd OFFSET32 _ioctlBufferSetVolumePan dd OFFSET32 _ioctlBufferSetPosition dd OFFSET32 _ioctlBufferGetPosition dd OFFSET32 _ioctlBufferPlay dd OFFSET32 _ioctlBufferStop dd OFFSET32 _ioctlEventScheduleWin32Event dd OFFSET32 _ioctlEventCloseVxDHandle dd OFFSET32 _ioctlMemReserveAlias dd OFFSET32 _ioctlMemCommitAlias dd OFFSET32 _ioctlMemRedirectAlias dd OFFSET32 _ioctlMemDecommitAlias dd OFFSET32 _ioctlMemFreeAlias dd OFFSET32 _ioctlMemPageLock dd OFFSET32 _ioctlMemPageUnlock dd OFFSET32 _ioctlDsvxd_PageFile_Get_Version dd OFFSET32 _ioctlDsvxd_VMM_Test_Debug_Installed dd OFFSET32 _ioctlDsvxd_VMCPD_Get_Version dd OFFSET32 _ioctlDsvxd_GetMixerMutexPtr dd OFFSET32 _ioctlMixer_Run dd OFFSET32 _ioctlMixer_Stop dd OFFSET32 _ioctlMixer_PlayWhenIdle dd OFFSET32 _ioctlMixer_StopWhenIdle dd OFFSET32 _ioctlMixer_MixListAdd dd OFFSET32 _ioctlMixer_MixListRemove dd OFFSET32 _ioctlMixer_FilterOn dd OFFSET32 _ioctlMixer_FilterOff dd OFFSET32 _ioctlMixer_GetBytePosition dd OFFSET32 _ioctlMixer_SignalRemix dd OFFSET32 _ioctlKeDest_New dd OFFSET32 _ioctlMixDest_Delete dd OFFSET32 _ioctlMixDest_Initialize dd OFFSET32 _ioctlMixDest_Terminate dd OFFSET32 _ioctlMixDest_SetFormat dd OFFSET32 _ioctlMixDest_SetFormatInfo dd OFFSET32 _ioctlMixDest_AllocMixer dd OFFSET32 _ioctlMixDest_FreeMixer dd OFFSET32 _ioctlMixDest_Play dd OFFSET32 _ioctlMixDest_Stop dd OFFSET32 _ioctlMixDest_GetFrequency dd OFFSET32 _ioctlMemCommitPhysAlias dd OFFSET32 _ioctlMemRedirectPhysAlias dd OFFSET32 _ioctlIUnknown_QueryInterface dd OFFSET32 _ioctlIUnknown_AddRef dd OFFSET32 _ioctlIUnknown_Release dd OFFSET32 _ioctlIDirectSoundPropertySet_GetProperty dd OFFSET32 _ioctlIDirectSoundPropertySet_SetProperty dd OFFSET32 _ioctlIDirectSoundPropertySet_QuerySupport dd OFFSET32 _ioctlGetInternalVersionNumber DSOUND_N_IOCTLS EQU ($-DSVXD_IOCTL_Table) / SIZE DWORD ; ;Pointer to input/output parms ; IOCTL_parms dd ? VxD_LOCKED_DATA_ENDS ;**************************************************************************** ;** ** ;** Locked code ** ;** ** ;**************************************************************************** VxD_LOCKED_CODE_SEG extrn _ioctlDsvxdInitialize:NEAR extrn _ioctlDsvxdShutdown:NEAR extrn _ioctlDrvGetNextDescFromGuid:NEAR extrn _ioctlDrvGetDescFromGuid:NEAR extrn _ioctlDrvOpenFromGuid:NEAR extrn _ioctlIDsDriver_QueryInterface:NEAR extrn _ioctlIDsDriver_Close:NEAR extrn _ioctlIDsDriver_GetCaps:NEAR extrn _ioctlIDsDriver_CreateSoundBuffer:NEAR extrn _ioctlIDsDriver_DuplicateSoundBuffer:NEAR extrn _ioctlBufferRelease:NEAR extrn _ioctlBufferLock:NEAR extrn _ioctlBufferUnlock:NEAR extrn _ioctlBufferSetFormat:NEAR extrn _ioctlBufferSetFrequency:NEAR extrn _ioctlBufferSetVolumePan:NEAR extrn _ioctlBufferSetPosition:NEAR extrn _ioctlBufferGetPosition:NEAR extrn _ioctlBufferPlay:NEAR extrn _ioctlBufferStop:NEAR extrn _ioctlEventScheduleWin32Event:NEAR extrn _ioctlEventCloseVxDHandle:NEAR extrn _ioctlMemReserveAlias:NEAR extrn _ioctlMemCommitAlias:NEAR extrn _ioctlMemRedirectAlias:NEAR extrn _ioctlMemDecommitAlias:NEAR extrn _ioctlMemFreeAlias:NEAR extrn _ioctlMemPageLock:NEAR extrn _ioctlMemPageUnlock:NEAR extrn _ioctlDsvxd_PageFile_Get_Version:NEAR extrn _ioctlDsvxd_VMM_Test_Debug_Installed:NEAR extrn _ioctlDsvxd_VMCPD_Get_Version:NEAR extrn _ioctlDsvxd_GetMixerMutexPtr:NEAR extrn _ioctlMixer_Run:NEAR extrn _ioctlMixer_Stop:NEAR extrn _ioctlMixer_PlayWhenIdle:NEAR extrn _ioctlMixer_StopWhenIdle:NEAR extrn _ioctlMixer_MixListAdd:NEAR extrn _ioctlMixer_MixListRemove:NEAR extrn _ioctlMixer_FilterOn:NEAR extrn _ioctlMixer_FilterOff:NEAR extrn _ioctlMixer_GetBytePosition:NEAR extrn _ioctlMixer_SignalRemix:NEAR extrn _ioctlKeDest_New:NEAR extrn _ioctlMixDest_Delete:NEAR extrn _ioctlMixDest_Initialize:NEAR extrn _ioctlMixDest_Terminate:NEAR extrn _ioctlMixDest_SetFormat:NEAR extrn _ioctlMixDest_SetFormatInfo:NEAR extrn _ioctlMixDest_AllocMixer:NEAR extrn _ioctlMixDest_FreeMixer:NEAR extrn _ioctlMixDest_Play:NEAR extrn _ioctlMixDest_Stop:NEAR extrn _ioctlMixDest_GetFrequency:NEAR extrn _ioctlMemCommitPhysAlias:NEAR extrn _ioctlMemRedirectPhysAlias:NEAR extrn _ioctlIUnknown_QueryInterface:NEAR extrn _ioctlIUnknown_AddRef:NEAR extrn _ioctlIUnknown_Release:NEAR extrn _ioctlIDirectSoundPropertySet_QuerySupport:NEAR extrn _ioctlIDirectSoundPropertySet_SetProperty:NEAR extrn _ioctlIDirectSoundPropertySet_GetProperty:NEAR extrn _ioctlGetInternalVersionNumber:NEAR ;**************************************************************************** ;** ** ;** IOCTL dispatcher for VxD ** ;** ** ;** Dispatch control messages to the correct handlers. Must be in ** ;** locked code segment. (All VxD segments are locked in 3.0/3.1) ** ;** ** ;** ENTRY: ** ;** ** ;** EXIT: ** ;** Carry clear success; Carry Set if fail. ** ;** ** ;**************************************************************************** BeginProc DSOUND_Control Control_Dispatch Sys_Dynamic_Device_Init, ctrlDynamicDeviceInitA Control_Dispatch Sys_Dynamic_Device_Exit, ctrlDynamicDeviceExitA Control_Dispatch W32_DEVICEIOCONTROL, ctrlDeviceIOControl ; Trace_Out "DSOUND_Control " clc ret EndProc DSOUND_Control ;**************************************************************************** ;** ** ;** API dispatcher for VxD ** ;** ** ;** Dispatch control messages to the correct handlers. ** ;** ** ;** ENTRY: ** ;** ** ;** EXIT: ** ;** Carry clear success; Carry Set if fail. ** ;** ** ;**************************************************************************** BeginProc DSOUND_API_Handler Trace_Out "DSOUND_API_Handler " clc ret EndProc DSOUND_API_Handler ;---------------------------------------------------------------------------; ; ; ctrlDynamicDeviceInit and Exit ; ;---------------------------------------------------------------------------; BeginProc ctrlDynamicDeviceInitA Ccall _ctrlDynamicDeviceInit sub eax, 1 ret EndProc ctrlDynamicDeviceInitA BeginProc ctrlDynamicDeviceExitA Ccall _ctrlDynamicDeviceExit sub eax, 1 ret EndProc ctrlDynamicDeviceExitA ;------------------------------------------------------------------------------ ; FUNC DSOUND_GetVersion - Locked Code ; ; ENTRY ; None ; ; EXIT ; AH = Major version number ; AL = Minor version number ; Carry flag clear ; ; USES ; EAX, Flags ; ;------------------------------------------------------------------------------ BeginProc _DSOUND_GetVersion, SERVICE mov eax, DSOUND_VERSION_MAJOR * 100h + DSOUND_VERSION_MINOR clc ret EndProc _DSOUND_GetVersion ;**************************************************************************** ;** ** ;** ctrlDeviceIOControl ** ;** ** ;** DESCRIPTION: This function is called to perform Device IO ** ;** for a 32 bit process which has opened this device with ** ;** <f CreateFile>, and is performing IO using ** ;** <f DeviceIOControl>. Preserves the C32 calling registers ** ;** ESI, EDI, and EBX. ** ;** ** ;** ENTRY: EBX DDB ** ;** ECX dwIoControlCode ** ;** ESI ptr to DIOCParams ** ;** ** ;** EXIT: As determined by function, or 1 if invalid IOCTL ** ;** ** ;** ----- ** ;** ** ;** Note: Function 0 is documented in vmm.h ** ;** as DIOC_OPEN. It is your VxD's PROCESS_ATTACH call. ** ;** ** ;**************************************************************************** BeginProc ctrlDeviceIOControl cmp ecx, DSOUND_N_IOCTLS jae cDIOC_InvalidCode push edi push esi push ebx mov IOCTL_parms,esi push esi call DSVXD_IOCTL_Table[ecx*4] add esp, 4 pop ebx pop esi pop edi ret cDIOC_InvalidCode: IFDEF DEBUG cmp ecx, DIOC_CLOSEHANDLE Debug_OutNZ "DSVXD: Invalid dwIoControlCode #ECX" ENDIF mov eax, 1 ; ERROR_INVALID_FUNCTION ret EndProc ctrlDeviceIOControl ;**************************************************************************** ;** ** ;** _ioctlDsvxdGetVersion ** ;** ** ;** DESCRIPTION: Get the version of DSVXD ** ;** ** ;** ENTRY: ** ;** ** ;** EXIT: ** ;** ** ;**************************************************************************** BeginProc _ioctlDsvxdGetVersion Trace_Out "DSVXD: ioctlDsvxdGetVersion" xor eax, eax mov ecx, DSOUND_VERSION_MAJOR * 100h + DSOUND_VERSION_MINOR ret EndProc _ioctlDsvxdGetVersion ;**************************************************************************** ;** ** ;** ** ;** ** ;**************************************************************************** ;--------------------------------------------------------------------------; ; ; _Dsvxd_VMM_Test_Debug_Installed ; ; Out: ; ; Notes: ; ;--------------------------------------------------------------------------; BeginProc _Dsvxd_VMM_Test_Debug_Installed EnterProc VMMcall Test_Debug_Installed mov eax, 0 jz @F inc eax @@: LeaveProc Return EndProc _Dsvxd_VMM_Test_Debug_Installed ;--------------------------------------------------------------------------; ; ; _Dsvxd_PageFile_Get_Version ; ; Out: ; ; Notes: ; ;--------------------------------------------------------------------------; BeginProc _Dsvxd_PageFile_Get_Version ArgVar p_version, DWORD ArgVar p_maxsize, DWORD ArgVar p_pager_type, DWORD EnterProc pushad VxDcall PageFile_Get_Version mov edi, p_version mov [edi], eax mov edi, p_maxsize mov [edi], ecx xor eax, eax mov al, bl mov edi, p_pager_type mov [edi], eax popad LeaveProc Return EndProc _Dsvxd_PageFile_Get_Version ;--------------------------------------------------------------------------; ; ; _Dsvxd_VMCPD_Get_Version ; ; Out: ; ; Notes: ; ;--------------------------------------------------------------------------; BeginProc _Dsvxd_VMCPD_Get_Version ArgVar pMajorVersion, DWORD ArgVar pMinorVersion, DWORD ArgVar pLevel, DWORD EnterProc pushad VxDcall VMCPD_Get_Version xor ebx, ebx mov edi, pMajorVersion mov bl, ah mov [edi], ebx mov bl, al mov edi, pMinorVersion mov [edi], ebx mov edi, pLevel mov [edi], ecx popad LeaveProc Return EndProc _Dsvxd_VMCPD_Get_Version ;--------------------------------------------------------------------------; ; ; _KeGrace_GlobalTimeOutProcAsm ; ; This is the entry point for the global time out set by the ; KeGrace object. This is just an ASM thunk to KeGrace_GlobalTimeOutProc ; "C" function. ; ; This function is called from the VMM as follows: ; ; mov ebx, VMHandle ; current VM handle ; mov ecx, Tardiness ; number of milliseconds since time-out ; mov edx, RefData ; reference data ; mov ebp, OFFSET32 crs ; points to Client_Reg_Struc ; call [TimeOutCallback] ; ; Out: ; ; Notes: ; ;--------------------------------------------------------------------------; extrn _KeGrace_GlobalTimeOutProc:NEAR BeginProc _KeGrace_GlobalTimeOutProcAsm ; The reference data is a pointer to and EVENTPARAMS structure whose ; first member is the event handle and second member is the "this" pointer ; to the KeGrace object xor eax, eax xchg [edx], eax ; Clear the event handle Debug_OutEAXz "DSVXD: executing KeGrace_GlobalTimeOutProcAsm after cancelled!" or eax, eax jz @F pushad push ecx ; Pass tardiness push [edx + 4] ; Pass "this" to the "C" function Ccall _KeGrace_GlobalTimeOutProc add esp, 8 popad @@: ret EndProc _KeGrace_GlobalTimeOutProcAsm ;--------------------------------------------------------------------------; ; ; _VMEvent_SetWin32Event ; ; This is a VM EventCallback scheduled by _AsyncTimeOut_SetWin32Event. ; This calls VWin32 to set a Win32 event. ; ; In: ; ebx = vm handle ; edi = thread handle ; edx = refdata = vxd handle to win32 event ; ebp = offset32 client reg struc ; ; Out: ; ; Notes: ; See _eventScheduleWin32Event ; ;--------------------------------------------------------------------------; BeginProc _VMEvent_SetWin32Event mov eax, edx VxDcall _VWIN32_SetWin32Event ret EndProc _VMEvent_SetWin32Event ;--------------------------------------------------------------------------; ; ; _AsyncTimeOut_SetWin32Event ; ; This is an async timeout callback set by _Set_SetWin32Event_TimeOut. ; This schedules _VMEvent_SetWin32Event as a sys vm event callback. ; ; In: ; ecx = tardiness ; edx = reference data = vxd handle to win32 event ; ; Out: ; ; Notes: ; See _eventScheduleWin32Event ; ;--------------------------------------------------------------------------; BeginProc _AsyncTimeOut_SetWin32Event push ebx push esi VMMcall Get_Sys_VM_Handle mov esi, _VMEvent_SetWin32Event VMMcall Schedule_VM_Event pop esi pop ebx ret EndProc _AsyncTimeOut_SetWin32Event ;--------------------------------------------------------------------------; ; ; _EventScheduleWin32Event ; ; This signals a win32 event after a specified delay. ; ; In: ; vxdhEvent - vxd handle to win32 event ; dwDelay - milliseconds delay ; ; Out(int): ; 0 if failure, non-0 otherwise ; ; Notes: ; Use 'C' calling convention. Sets an async timeout which in ; turn schedules a vm event to actually signal the win32 event. ; ;--------------------------------------------------------------------------; BeginProc _eventScheduleWin32Event ArgVar vxdhEvent,DWORD ArgVar dwDelay,DWORD EnterProc push ebx push esi mov eax, dwDelay test eax, eax jnz _ESW32E_delayed VMMcall Get_Sys_VM_Handle mov esi, _VMEvent_SetWin32Event mov edx, vxdhEvent Vmmcall Call_VM_Event mov eax, -1 jmp _ESW32E_exit _ESW32E_delayed: Debug_Out "DSVXD: Tried to set a defered win32 event???" mov edx, vxdhEvent mov esi, _AsyncTimeOut_SetWin32Event VMMcall Set_Async_Time_Out mov eax, esi _ESW32E_exit: pop esi pop ebx LeaveProc Return EndProc _eventScheduleWin32Event VXD_LOCKED_CODE_ENDS END
26.124457
80
0.573067
44e76fa7e2cb93176cb5b1cc0d9ebe358e5b82e1
8,326
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1028.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_1028.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_1028.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x4809, %rbp nop nop nop nop xor %r8, %r8 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 movups %xmm3, (%rbp) nop nop nop nop nop dec %r8 lea addresses_WT_ht+0x4689, %r13 nop nop xor %rbx, %rbx movb (%r13), %cl nop nop nop nop and %r8, %r8 lea addresses_WT_ht+0x1a609, %rsi lea addresses_normal_ht+0x18873, %rdi nop nop nop nop nop add %rbx, %rbx mov $8, %rcx rep movsl nop nop xor $33845, %rsi lea addresses_WT_ht+0xfceb, %rbp nop nop nop nop nop sub %rsi, %rsi mov $0x6162636465666768, %rbx movq %rbx, (%rbp) nop nop nop nop and %rbx, %rbx lea addresses_A_ht+0x2118, %rcx nop nop nop nop nop sub $61508, %r13 vmovups (%rcx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdi nop nop sub $39455, %r8 lea addresses_WC_ht+0x2a9, %rsi inc %r13 movb $0x61, (%rsi) nop nop nop nop nop cmp %rdi, %rdi lea addresses_WT_ht+0xb011, %rbp nop nop nop nop dec %r8 mov (%rbp), %rdi cmp %r8, %r8 lea addresses_D_ht+0x4d7b, %rsi lea addresses_WC_ht+0xa26b, %rdi nop nop nop nop and $43008, %r12 mov $10, %rcx rep movsw nop nop nop nop nop inc %rdi lea addresses_WT_ht+0x1e7cd, %r12 nop nop add %rbp, %rbp movw $0x6162, (%r12) nop nop nop nop nop inc %r8 lea addresses_WC_ht+0xb769, %rsi lea addresses_WC_ht+0x42a9, %rdi nop nop nop mfence mov $33, %rcx rep movsb nop nop dec %r12 lea addresses_WC_ht+0x13ac9, %rbp xor $38922, %rsi vmovups (%rbp), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 nop cmp %rbx, %rbx lea addresses_UC_ht+0xec89, %r12 nop nop nop and $20071, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%r12) nop nop nop nop nop add %rdi, %rdi lea addresses_WC_ht+0x8543, %rbx nop nop nop nop nop add $3652, %r8 mov $0x6162636465666768, %rsi movq %rsi, %xmm5 vmovups %ymm5, (%rbx) nop sub %r13, %r13 lea addresses_A_ht+0xe7c1, %rsi lea addresses_A_ht+0x909, %rdi nop nop nop nop inc %rbp mov $56, %rcx rep movsb nop nop nop nop inc %rcx lea addresses_normal_ht+0x1bc9d, %r8 nop nop and %r12, %r12 mov (%r8), %ecx nop nop xor %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r9 push %rax push %rbx push %rcx // Load lea addresses_A+0xf809, %rcx cmp $20770, %r11 movb (%rcx), %r9b nop nop nop sub %r14, %r14 // Store lea addresses_RW+0x1e289, %r15 nop nop nop dec %rax mov $0x5152535455565758, %rcx movq %rcx, %xmm2 movups %xmm2, (%r15) nop cmp $1482, %rcx // Faulty Load lea addresses_RW+0x1f689, %r15 nop nop nop dec %r14 mov (%r15), %ax lea oracles, %r14 and $0xff, %rax shlq $12, %rax mov (%r14,%rax,1), %rax pop %rcx pop %rbx pop %rax pop %r9 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_RW', 'size': 16, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'src': {'same': True, 'congruent': 6, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 9, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'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 */
30.498168
2,999
0.656137
cbb1b2e82e4372f5aa05c0a23927da575ff1b3f9
542
asm
Assembly
oeis/209/A209302.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/209/A209302.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/209/A209302.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A209302: Table T(n,k) = max{n+k-1, n+k-1} n, k > 0, read by sides of squares from T(1,n) to T(n,n), then from T(n,n) to T(n,1). ; Submitted by Jamie Morken(s2) ; 1,2,3,2,3,4,5,4,3,4,5,6,7,6,5,4,5,6,7,8,9,8,7,6,5,6,7,8,9,10,11,10,9,8,7,6,7,8,9,10,11,12,13,12,11,10,9,8,7,8,9,10,11,12,13,14,15,14,13,12,11,10,9,8,9,10,11,12,13,14,15,16,17,16,15,14,13,12,11,10,9,10,11,12,13,14,15,16,17,18,19,18,17,16,15,14,13,12,11,10 lpb $0 sub $0,1 add $1,1 sub $0,$1 mov $2,$1 trn $2,$0 trn $0,$1 add $0,$2 lpe add $1,$0 add $1,1 mov $0,$1
31.882353
256
0.573801
dfb00777bf8480d6870ff44c241434ee2b685cdd
332
asm
Assembly
unittests/ASM/3DNow/87.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/3DNow/87.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/3DNow/87.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "MM0": ["0x3e8000003f800000", "0x0"], "MM1": ["0x3e4ccccd3f000000", "0x0"], "MM2": ["0x3f8000003eaaaaab", "0x0"] } } %endif pfrsqrtv mm0, [rel data1] pfrsqrtv mm1, [rel data2] pfrsqrtv mm2, [rel data3] hlt align 8 data1: dd 1.0 dd 16.0 data2: dd 4.0 dd 25.0 data3: dd 9.0 dd 1.0
11.448276
42
0.608434
60cd8da4ea32b204552440643d3e8ba55ac3b08d
596
asm
Assembly
oeis/127/A127985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127985.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127985: a(n) = floor(2^n*(n/3 + 4/9)). ; 0,1,4,11,28,67,156,355,796,1763,3868,8419,18204,39139,83740,178403,378652,800995,1689372,3553507,7456540,15612131,32622364,68040931,141674268,294533347,611436316,1267611875,2624702236,5428361443,11214636828,23145101539,47721858844,98307029219,202340681500,416134609123,855175710492,1756164405475,3603954779932,7391161497827,15148826871580,31030661495011,63527338493724,129986707994851,265837478004508,543403080038627,1110262408136476,2267437312391395,4628699617019676,9445049218513123 mov $1,$0 mul $0,3 add $0,4 mov $2,2 pow $2,$1 mul $0,$2 div $0,9
54.181818
486
0.822148
ae1b8c800392de47180e1e3cfcfa1a572e282e69
81
asm
Assembly
interruptRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
1
2021-09-18T21:02:45.000Z
2021-09-18T21:02:45.000Z
interruptRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
null
null
null
interruptRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
null
null
null
clearGbuf: ;textBuf ld hl,gbuf ld de,gbuf+1 ld (hl),0 ld bc,14*80 ldir ret
9
13
0.654321
6e159ab00834db8d925a23fba79ea6421ad5fd01
450
asm
Assembly
libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_acia/rc_01_output_acia_oterm_msg_bell.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_acia/rc_01_output_acia_oterm_msg_bell.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_acia/rc_01_output_acia_oterm_msg_bell.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC rc_01_output_acia_oterm_msg_bell PUBLIC rc_01_output_acia_oterm_msg_bell_0 EXTERN rc_01_output_acia_oterm_msg_putc_send rc_01_output_acia_oterm_msg_bell: ; can use: af, bc, de, hl bit 0,(ix+7) ret z ; if bell disabled rc_01_output_acia_oterm_msg_bell_0: ld c,CHAR_BELL jp rc_01_output_acia_oterm_msg_putc_send
20.454545
49
0.784444
547ccf23228f363d48836e0a11c3c4a92057fefb
582
asm
Assembly
oeis/332/A332966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/332/A332966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/332/A332966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A332966: a(n) is the largest value in the sequence s defined by s(1) = 0 and for any k > 0, s(k+1) = (s(k)^2+1) mod n. ; Submitted by Jamie Morken(w1) ; 0,1,2,2,2,5,5,5,8,7,6,5,5,12,11,10,16,17,12,17,5,17,13,5,5,5,26,26,26,26,26,26,26,33,26,29,26,31,26,37,32,26,36,26,26,33,43,26,47,30,50,26,41,53,50,26,50,50,30,50,53,57,47,37,57,26,56,65,59,61,58,53,71,48,26,69,61,53,74,42,80,73,70,26,82,75,68,61,88,71,54,78,26,82,50,26,95,96,92,77 add $0,1 mov $3,$0 mov $4,$0 lpb $3 mov $2,$0 cmp $2,1 cmp $2,0 sub $3,$2 pow $5,2 add $5,$2 mod $5,$4 max $1,$5 lpe mov $0,$1
30.631579
284
0.597938
d133215f733e08fd0d5183fd47aa5456993a1cc0
1,890
asm
Assembly
programs/oeis/206/A206399.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/206/A206399.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/206/A206399.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A206399: a(0) = 1; for n>0, a(n) = 41*n^2 + 2. ; 1,43,166,371,658,1027,1478,2011,2626,3323,4102,4963,5906,6931,8038,9227,10498,11851,13286,14803,16402,18083,19846,21691,23618,25627,27718,29891,32146,34483,36902,39403,41986,44651,47398,50227,53138,56131,59206,62363,65602,68923,72326,75811,79378,83027,86758,90571,94466,98443,102502,106643,110866,115171,119558,124027,128578,133211,137926,142723,147602,152563,157606,162731,167938,173227,178598,184051,189586,195203,200902,206683,212546,218491,224518,230627,236818,243091,249446,255883,262402,269003,275686,282451,289298,296227,303238,310331,317506,324763,332102,339523,347026,354611,362278,370027,377858,385771,393766,401843,410002,418243,426566,434971,443458,452027,460678,469411,478226,487123,496102,505163,514306,523531,532838,542227,551698,561251,570886,580603,590402,600283,610246,620291,630418,640627,650918,661291,671746,682283,692902,703603,714386,725251,736198,747227,758338,769531,780806,792163,803602,815123,826726,838411,850178,862027,873958,885971,898066,910243,922502,934843,947266,959771,972358,985027,997778,1010611,1023526,1036523,1049602,1062763,1076006,1089331,1102738,1116227,1129798,1143451,1157186,1171003,1184902,1198883,1212946,1227091,1241318,1255627,1270018,1284491,1299046,1313683,1328402,1343203,1358086,1373051,1388098,1403227,1418438,1433731,1449106,1464563,1480102,1495723,1511426,1527211,1543078,1559027,1575058,1591171,1607366,1623643,1640002,1656443,1672966,1689571,1706258,1723027,1739878,1756811,1773826,1790923,1808102,1825363,1842706,1860131,1877638,1895227,1912898,1930651,1948486,1966403,1984402,2002483,2020646,2038891,2057218,2075627,2094118,2112691,2131346,2150083,2168902,2187803,2206786,2225851,2244998,2264227,2283538,2302931,2322406,2341963,2361602,2381323,2401126,2421011,2440978,2461027,2481158,2501371,2521666,2542043 pow $1,$0 gcd $1,2 mov $3,$0 mul $3,$0 mov $2,$3 mul $2,41 add $1,$2
171.818182
1,770
0.834392
ebc3fd29045c6fe85d1d22e34cfbef7bf537d53c
40
asm
Assembly
data/test/duplicate_labels.asm
M4tthewDE/emu8080
ecc691adf7357ead68508b4c632f10803869c815
[ "MIT" ]
null
null
null
data/test/duplicate_labels.asm
M4tthewDE/emu8080
ecc691adf7357ead68508b4c632f10803869c815
[ "MIT" ]
16
2021-11-11T10:41:24.000Z
2022-02-23T09:10:34.000Z
data/test/duplicate_labels.asm
M4tthewDE/emu8080
ecc691adf7357ead68508b4c632f10803869c815
[ "MIT" ]
null
null
null
TEST: INR A TEST: DCR A
8
13
0.4
31ea36aeb789e853cceb9c368e36c9ad2afe07cb
313
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fslt_callee.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fslt_callee.asm
dikdom/z88dk
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fslt_callee.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
SECTION code_fp_am9511 PUBLIC cam32_sdcc___fslt_callee EXTERN asm_sdcc_readr_callee EXTERN asm_am9511_compare_callee ; Entry: stack: float right, float left, ret .cam32_sdcc___fslt_callee call asm_sdcc_readr_callee ;Exit dehl = right call asm_am9511_compare_callee ret C dec hl ret
18.411765
54
0.779553
13e324e23d2997e75917d18ff2e661277826a577
17,653
asm
Assembly
calcscoring.asm
JeremyJStarcher/Yahtzee_2600
2febde4cea0e0b8616f70b77a1f8a5527ce5fbb2
[ "MIT" ]
null
null
null
calcscoring.asm
JeremyJStarcher/Yahtzee_2600
2febde4cea0e0b8616f70b77a1f8a5527ce5fbb2
[ "MIT" ]
null
null
null
calcscoring.asm
JeremyJStarcher/Yahtzee_2600
2febde4cea0e0b8616f70b77a1f8a5527ce5fbb2
[ "MIT" ]
null
null
null
PROCESSOR 6502 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; The scores are held in two non-contiguous sequences, which ;; ;; complicates access. However, it *does* allow much faster look up ;; ;; for the msb/lsb during the time-critial drawing sections, so we'll ;; ;; live with the slightly more complex code here. ;; ;; ;; ;; In addition, we have two kinds of '0' characters. The $x0 indicates ;; ;; a normal zero which should be displayed, while $xA indicates a ;; ;; a leading zero, which is displayed as a blank. ;; ;; ;; ;; Any math routines have to convert the $xA nibble to be a zero prior ;; ;; to any calculations. ;; ;; It is a LOT more complicated, but I believe the appearance results ;; ;; are well worth it. ;; ;; ;; ;; See: ConvertSpacerNibble ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .align 128 IFCONST TESTMODE ELSE TopSubtotalValues: .byte 5 .byte <score_low_L1s, <score_high_L1s .byte <score_low_L2s, <score_high_L2s .byte <score_low_L3s, <score_high_L3s .byte <score_low_L4s, <score_high_L4s .byte <score_low_L5s, <score_high_L5s .byte <score_low_L6s, <score_high_L6s LowerTotalValues: .byte 6 .byte <score_low_L3k, <score_high_L3k .byte <score_low_L4k, <score_high_L4k .byte <score_low_LSmallStraight, <score_high_LSmallStraight .byte <score_low_LLargeStraight, <score_high_LLargeStraight .byte <score_low_LFullHouse, <score_high_LFullHouse .byte <score_low_LYahtzee, <score_high_LYahtzee .byte <score_low_LChance, <score_high_LChance LUpperTotalValues: .byte 1 .byte <score_low_TopBonus, <score_high_TopBonus .byte <score_low_TopSubtotal, <score_high_TopSubtotal LGrandTotalValues .byte 1 .byte <score_low_LUpperTotal, <score_high_LUpperTotal .byte <score_low_LLowerTotal, <score_high_LLowerTotal ENDIF ;;;;;;;;;;;;;;;;;;;;;;;; CalcScoreslookupLow: .byte <Calculate_L1s .byte <Calculate_L2s .byte <Calculate_L3s .byte <Calculate_L4s .byte <Calculate_L5s .byte <Calculate_L6s .byte <Calculate_TopSubtotal .byte <Calculate_TopBonus .byte <Calculate_L3k .byte <Calculate_L4k .byte <Calculate_LSmallStraight .byte <Calculate_LLargeStraight .byte <Calculate_LFullHouse .byte <Calculate_LYahtzee .byte <Calculate_LChance .byte <Calculate_LYahtzeeBonus .byte <Calculate_LLowerTotal .byte <Calculate_LUpperTotal .byte <Calculate_LGrandTotal CalcScoreslookupHigh: .byte >Calculate_L1s .byte >Calculate_L2s .byte >Calculate_L3s .byte >Calculate_L4s .byte >Calculate_L5s .byte >Calculate_L6s .byte >Calculate_TopSubtotal .byte >Calculate_TopBonus .byte >Calculate_L3k .byte >Calculate_L4k .byte >Calculate_LSmallStraight .byte >Calculate_LLargeStraight .byte >Calculate_LFullHouse .byte >Calculate_LYahtzee .byte >Calculate_LChance .byte >Calculate_LYahtzeeBonus .byte >Calculate_LLowerTotal .byte >Calculate_LUpperTotal .byte >Calculate_LGrandTotal ScratchpadLength = 7; CalculateTopHandValues: subroutine sed ; Set decimal mode lda #$00 ; Zero the counter sta ScoreAcc ; And save it. ldy #DiceCount ; And the number of dice .loop dey ; start the loop sty ScoreDie ; Save it lda RolledDice,y ; Get the face cmp ScoreFace ; Is it the face we want? bne .skip ; Nope clc ; Clear carry adc ScoreAcc ; Build up the total sta ScoreAcc ; Save it .skip: ldy ScoreDie ; Get our value bne .loop jmp FinishedCalculations ClearScratchpad: subroutine lda #0 ; Our value sta ScoreAcc ; And save it. ldx #ScratchpadLength ; Enough room for all the faces .l: dex sta ScoreScratchpad,x bne .l rts CountFaces: subroutine sed ldy #DiceCount ; And the number of dice .loop dey ; start the loop sty ScoreDie ; Save it lda RolledDice,y ; Get the face tax ; Save to our offset dex ; range 0-5 clc ; Clear carry adc ScoreAcc ; Build up the total sta ScoreAcc ; Save it inc ScoreScratchpad,x ldy ScoreDie ; Get our value bne .loop cld ; Clear decimal mode rts HasAtLeast: subroutine ; A = The qty we are looking for ; C -> 1 SUCCESS sed sta ScoreDie ldy #ScratchpadLength .loop dey ; start the loop sty ScoreFace lda ScoreScratchpad,y ; Get the next size cmp ScoreDie bcc .skip sec ; Set the flag jmp .done .skip ldy ScoreFace ; Get our value bne .loop clc .done cld ; Clear decimal mode rts HasExactly: subroutine ; A = The qty we are looking for ; C -> 1 SUCCESS sed sta ScoreDie ldy #ScratchpadLength .loop dey ; start the loop sty ScoreFace lda ScoreScratchpad,y ; Get the next size cmp ScoreDie bne .skip sec ; Set the flag jmp .done .skip ldy ScoreFace ; Get our value bne .loop clc .done cld ; Clear decimal mode rts CreateBitmask: subroutine lda #0 sta ScoreAcc ldx #DiceCount + 1 .l: dex stx ScoreFace lda ScoreScratchpad,x beq .nobit inc ScoreAcc .nobit: lda ScoreAcc ; Load the value clc asl sta ScoreAcc ldx ScoreFace bne .l rts CheckStraightBitmask: subroutine ; at this point, we could have our dice in a nice bitmask ; with trailing zeros, we we shift through all the possibilities ; and slide them into the lower bits for comparison ldx #DiceCount + 0 ; The number of shifts to make .l: dex clc ; Perform the shift lda ScoreAcc ror sta ScoreAcc lda ScoreFace ; Get the mask and ScoreAcc ; Check it against our incoming mask cmp ScoreFace ; Do we have overlap? beq .found cpx #0 ; End of loop? bne .l jmp .notfound .found: lda #$30 sta ScoreAcc jmp .rts .notfound lda #0 sta ScoreAcc .rts rts Calculate_L1s: subroutine lda #1 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L2s: lda #2 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L3s: lda #3 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L4s: lda #4 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L5s: lda #5 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L6s: lda #6 ; The face we are counting sta ScoreFace ; Save it jmp CalculateTopHandValues Calculate_L3k: subroutine jsr ClearScratchpad jsr CountFaces lda #3 jsr HasAtLeast bcs .done lda #0 sta ScoreAcc .done jmp FinishedCalculations Calculate_L4k: subroutine jsr ClearScratchpad jsr CountFaces lda #4 jsr HasAtLeast bcs .done lda #0 sta ScoreAcc .done jmp FinishedCalculations Calculate_LSmallStraight: subroutine jsr ClearScratchpad jsr CountFaces jsr CreateBitmask .mask = %00001111 lda #.mask sta ScoreFace jsr CheckStraightBitmask jmp FinishedCalculations Calculate_LLargeStraight: subroutine jsr ClearScratchpad jsr CountFaces jsr CreateBitmask .mask = %00011111 lda #.mask sta ScoreFace jsr CheckStraightBitmask lda ScoreAcc ; Do we have straight? beq .skip ; Skip if not lda #$40 ; Load value of a large straight sta ScoreAcc ; And save it .skip jmp FinishedCalculations Calculate_LFullHouse: subroutine jsr ClearScratchpad jsr CountFaces lda #3 jsr HasExactly bcc .none lda #2 jsr HasExactly bcc .none lda #$25 sta ScoreAcc jmp .done .none lda #0 sta ScoreAcc .done jmp FinishedCalculations Calculate_LYahtzee: subroutine jsr ClearScratchpad jsr CountFaces lda #5 jsr HasExactly bcs .setScore lda #0 sta ScoreAcc jmp .done .setScore lda #$50 sta ScoreAcc .done jmp FinishedCalculations Calculate_LChance: jsr ClearScratchpad jsr CountFaces jmp FinishedCalculations Calculate_LYahtzeeBonus: Calculate_TopSubtotal: Calculate_TopBonus: Calculate_LLowerTotal: Calculate_LUpperTotal: Calculate_LGrandTotal: lda #$00 sta ScoreAcc jmp FinishedCalculations ConvertSpacerNibble: subroutine .bitmask1 = $0A .bitmask2 = $A0 tay ; Save the original value for the second nibble sty TempVar3 ; We will strip the nibbles out of this value as needed and #.bitmask2 ; Check to see of the bits for the mask are set cmp #.bitmask2 ; And *only* those bits bne .l3 ; Nope, bail .l2: lda #.bitmask2 ; Load our bit mask eor TempVar3 ; Strip just those bits off sta TempVar3 ; Resave .l3: tya ; Get our original value and #.bitmask1 ; Was the bit mask found? cmp #.bitmask1 ; And only the bit mask? bne l4 ; Nope bail lda #.bitmask1 ; Load our mask eor TempVar3 ; Strip those bits off sta TempVar3 ; Re-save the value l4: lda TempVar3 ; Retrieve the value rts Add16Bit: subroutine ; TempVar1 lsb ; TempVar2 msb lda TempWord1 + 0 jsr ConvertSpacerNibble sta TempWord1 + 0 lda TempWord1 + 1 jsr ConvertSpacerNibble sta TempWord1 + 1 clc lda AddResult + 0 adc TempWord1 + 0 sta AddResult + 0 lda TempWord1 + 1 adc AddResult + 1 sta AddResult + 1 rts FinishedCalculations: cld IFCONST TESTMODE ;; The tests call the calculate functions directly. rts ELSE ;; The game uses an indirect jump to get here. lda ScoreAcc ; Get the score and #$F0 ; Anything in the high nibble? bne .no ; Yes, keep it lda ScoreAcc ; Reget the value and #$0F ; Strip off the high nibble ora #$A0 ; Set to our blank character sta ScoreAcc ; Save again .no jmp AfterCalc ENDIF MAC SetByte lda #{2} sta score_low_{1} lda #0 sta score_high_{1} ENDM MAC SetWord lda #<{2} sta score_low_{1} lda #>{2} sta score_high_{1} ENDM MAC AddWordColumn ;; {1} == Pointer to the column list ;; {2} == The result name lda #<{1} sta AddColPtr + 0 lda #>{1} sta AddColPtr + 1 jsr AddWordColumn1 lda AddResult + 0 sta score_low_{2} lda AddResult + 1 sta score_high_{2} ENDM IFCONST TESTMODE ELSE CalcSubtotals: subroutine lda ScorePhase cmp #ScorePhaseNothing bne .calc jmp .noreset .calc sed lda ScorePhase cmp #ScorePhaseCalcUpper bne .tryLower AddWordColumn TopSubtotalValues, TopSubtotal jmp .done .tryLower cmp #ScorePhaseCalcLower bne .tryCalcUpperBonus AddWordColumn LowerTotalValues, LLowerTotal jmp .done .tryCalcUpperBonus cmp #ScorePhaseCalcUpperBonus bne .tryUpperTotal ;; Calculate the upper bonus ;; Compare words, not just bytes, because the top hand subtotal ;; can actually be 105. ;; (6 * 5) + (5 * 5) + (4 * 5) + (3 * 5) + (2 * 5) + (1 *5) ldx #$A0 ; The 'default' bonus lda #$AA ; "Blank" MSB cmp score_high_TopSubtotal ; Does it match what we have? beq .comparelsb ; Then compare LSB ldx #$35 ; MSB has a value? the word is graater than 63 jmp .saveTopBonus .comparelsb: lda score_low_TopSubtotal and #$F0 ; Just the top nibble cmp #$A0 ; Our 'blank' character? beq .saveTopBonus ; Value is < 10 lda score_low_TopSubtotal cmp #$63 ; Min score bcc .saveTopBonus ldx #$35 .saveTopBonus stx score_low_TopBonus jmp .done .tryUpperTotal cmp #ScorePhaseCalcLowerGrandTotal bne .tryCalcGrandTotal AddWordColumn LUpperTotalValues, LUpperTotal jmp .done .tryCalcGrandTotal cmp #ScorePhaseCalcGrandTotal bne .tryClearLeading AddWordColumn LGrandTotalValues, LGrandTotal jmp .done .tryClearLeading cmp #ScorePhaseClearLeading bne .done lda #ScorePhaseNothing jmp .noreset .done inc ScorePhase lda ScorePhase cmp #8 bcc .noreset lda #0 sta ScorePhase .noreset cld rts ENDIF AddByteColumn1: subroutine clc ; Start from fresh lda #$00 ; Zero out values sta AddResult + 0 sta AddResult + 1 ldy #0 ; A constant value, we'll always be bouncing off this lda (AddColPtr),y ; Get the number of items .loop ldy #0 ; A constant value, we'll always be bouncing off this pha ; Store it inc AddColPtr ; First/Next item lda (AddColPtr),y ; Double indirect - low byte sta TempWord2 ; Save it lda #0 ; Zero page j sta TempWord2 + 1 ; Save it lda (TempWord2),y ; Read the actual value sta TempWord1 + 0 lda #0 ; Fake the high byte sta TempWord1 + 1 jsr Add16Bit pla ; Get the saved count cmp #0 beq .skip tax dex txa jmp .loop .skip rts ENDIF AddWordColumn1: subroutine clc ; Start from fresh lda #0 ; Zero out values sta AddResult + 0 sta AddResult + 1 ldy #0 ; A constant value, we'll always be bouncing off this lda (AddColPtr),y ; Get the number of items .loop pha ; Store it ldy #0 ; A constant value, we'll always be bouncing off this inc AddColPtr ; Low byte lda (AddColPtr),y ; Double indirect - low byte sta TempWord2 ; Save it lda #0 ; Zero page j sta TempWord2 + 1 ; Save it lda (TempWord2),y ; Read the actual value sta TempWord1 + 0 inc AddColPtr ; High Byte lda (AddColPtr),y ; Double indirect - low byte sta TempWord2 ; Save it lda #0 ; Zero page j sta TempWord2 + 1 ; Save it lda (TempWord2),y ; Read the actual value sta TempWord1 + 1 jsr Add16Bit pla ; Get the saved count cmp #0 beq .exitloop tax dex txa jmp .loop .exitloop ; Check the Highest byte lda AddResult+1 ; Get the score and #$F0 ; Anything in the high nibble? bne .bail ; Yes, keep it lda AddResult+1 ; Reget the value and #$0F ; Strip off the high nibble ora #$A0 ; Set to our blank character sta AddResult+1 ; Save again and #$0F ; Anything in the lower nibble? bne .bail ; Yes, keep it lda #$AA ; Just wipe out the whole thing sta AddResult+1 ; and save it lda AddResult+0 ; Get the score and #$F0 ; Anything in the high nibble? bne .bail ; Yes, keep it lda AddResult+0 ; Reget the value and #$0F ; Strip off the high nibble ora #$A0 ; Set to our blank character sta AddResult+0 ; Save again .bail rts
27.242284
89
0.548859
dc566ce8f14ee635be4dcbed975d45f02af686b4
545
asm
Assembly
quotient.asm
SuiGeneris01/emu8086
de0ba90640dc673c8926b995e2a5aa9a69bd48b5
[ "MIT" ]
3
2019-05-20T11:55:05.000Z
2019-06-23T23:12:11.000Z
quotient.asm
SuiGeneris01/emu8086
de0ba90640dc673c8926b995e2a5aa9a69bd48b5
[ "MIT" ]
null
null
null
quotient.asm
SuiGeneris01/emu8086
de0ba90640dc673c8926b995e2a5aa9a69bd48b5
[ "MIT" ]
1
2021-05-04T13:16:25.000Z
2021-05-04T13:16:25.000Z
org 100h INCLUDE "emu8086.inc" MOV DX, OFFSET MAIN MOV AH, 9 INT 21H MOV DX, OFFSET MSG1 MOV AH,9 INT 21H CALL SCAN_NUM MOV AX,CX MOV DX, OFFSET MSG2 MOV AH,9 INT 21H CALL SCAN_NUM MOV BX,CX CALL PTHIS db 13,10, "ANS = ", 0 CALL DIVIDE CALL PRINT_NUM ret MAIN DB "PROGRAM CALCULATES THE QUOTIENT. $" MSG1 DB 13,10, "NUMERATOR: $" MSG2 DB 13,10, "DENOMINATOR: $" DEFINE_SCAN_NUM DEFINE_PTHIS DEFINE_PRINT_NUM DEFINE_PRINT_NUM_UNS DIVIDE PROC iDIV BX RET ENDP
13.292683
44
0.638532
d2536c264283032503d9fadf27a965fb0763a61b
314
asm
Assembly
oeis/005/A005689.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/005/A005689.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/005/A005689.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A005689: Number of Twopins positions. ; Submitted by Jamie Morken(s1) ; 1,2,4,7,11,16,22,30,42,61,91,137,205,303,443,644,936,1365,1999,2936,4316,6340,9300,13625,19949,29209,42785,62701,91917,134758,197548,289547 lpb $0 mov $2,$0 trn $0,4 add $2,1 add $3,2 bin $2,$3 add $1,$2 lpe mov $0,$1 add $0,1
20.933333
141
0.66879
2ed56062bff41dcc256630393697180bca9b2e6f
681
asm
Assembly
oeis/021/A021194.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021194.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021194.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021194: Expansion of 1/((1-x)(1-2x)(1-6x)(1-9x)). ; Submitted by Jon Maiga ; 1,18,223,2388,23809,228246,2138131,19746936,180745477,1644848634,14912475799,134865314844,1217706037705,10982863580382,98986827702427,891727782261312,8030628038119693,72306120329946690,650937890891261215,5859537865552845540,52742421875166674641,474721283387650654758,4272728469555767779363,38455977740403398110728,346112328750039545129749,3115062133268809746075786,28035866246530010888348071,252324638501434437305564076,2270932800208895972149536217,20438461524055979968816324974 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,6 sub $2,11 mul $3,9 add $3,$1 mul $1,2 add $1,$2 lpe mov $0,$3
40.058824
480
0.816446
117857d3f3712aafe01b7153640fc890a32d35e0
2,884
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_19_1149.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_19_1149.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_19_1149.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0xd538, %r15 nop nop nop nop cmp %r14, %r14 mov (%r15), %r13d nop nop nop nop nop add %r9, %r9 lea addresses_A_ht+0x14778, %rsi lea addresses_D_ht+0x5d60, %rdi nop nop nop nop nop add $2349, %r10 mov $27, %rcx rep movsw nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x2a30, %rsi lea addresses_A_ht+0x12250, %rdi nop nop nop nop add %r10, %r10 mov $49, %rcx rep movsq nop nop nop nop mfence lea addresses_A_ht+0x1ae50, %r13 nop nop nop nop nop sub $58401, %rsi movb $0x61, (%r13) nop nop nop xor %r14, %r14 lea addresses_D_ht+0xd010, %r15 nop nop nop nop dec %rsi vmovups (%r15), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rdi nop nop nop nop nop cmp $41852, %r10 lea addresses_normal_ht+0x13770, %rsi lea addresses_UC_ht+0x8850, %rdi clflush (%rsi) nop nop nop nop nop and $61447, %r14 mov $89, %rcx rep movsl and %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdx // Store mov $0x4e23e60000000ed0, %r14 clflush (%r14) nop nop nop sub %rcx, %rcx mov $0x5152535455565758, %rdx movq %rdx, %xmm1 movups %xmm1, (%r14) and %r8, %r8 // Faulty Load lea addresses_A+0x14850, %rbx nop nop nop sub $36407, %r9 mov (%rbx), %ecx lea oracles, %rbx and $0xff, %rcx shlq $12, %rcx mov (%rbx,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}} {'00': 19} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
17.913043
153
0.653606
80ba0bc9317b10fb09b5ff2a76110f681177466d
5,928
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1723.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1723.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1723.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 %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x11e17, %r12 nop nop cmp %rdi, %rdi movb (%r12), %r13b nop nop nop nop inc %r10 lea addresses_WT_ht+0x16e17, %rax nop nop and %rbp, %rbp and $0xffffffffffffffc0, %rax movaps (%rax), %xmm7 vpextrq $1, %xmm7, %rcx nop nop sub $9571, %r13 lea addresses_A_ht+0x127fb, %r13 nop nop nop nop and %r12, %r12 mov (%r13), %di nop nop inc %rdi lea addresses_D_ht+0x17e97, %rsi lea addresses_UC_ht+0x7017, %rdi nop sub %r10, %r10 mov $66, %rcx rep movsw nop nop dec %rcx lea addresses_WT_ht+0x1b617, %rsi inc %r13 vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r10 nop nop nop nop nop and $60029, %rbp lea addresses_normal_ht+0x10197, %rsi lea addresses_normal_ht+0x19f8f, %rdi sub $57230, %r10 mov $13, %rcx rep movsq nop nop xor %rbp, %rbp lea addresses_WT_ht+0xd617, %rbp clflush (%rbp) nop inc %r12 mov (%rbp), %di nop nop and %rdi, %rdi lea addresses_WC_ht+0x11617, %rsi lea addresses_normal_ht+0x217, %rdi and %rbp, %rbp mov $77, %rcx rep movsb nop sub %rax, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rax push %rbp push %rdi // Faulty Load lea addresses_WC+0xf217, %r10 nop nop nop nop nop cmp $11578, %rdi movb (%r10), %al lea oracles, %r14 and $0xff, %rax shlq $12, %rax mov (%r14,%rax,1), %rax pop %rdi pop %rbp pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'src': {'NT': False, 'same': True, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}} {'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 */
42.342857
2,999
0.660256
230bedc4ee5a8fcf8927c7b0a876371d6785be43
504
asm
Assembly
arch/x86/syscall.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
arch/x86/syscall.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
arch/x86/syscall.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
bits 32 section .text kernel: int 80h ret global syscall:function (syscall.end - syscall) syscall: push ebp mov ebp, esp mov eax, [ebp + 8] call kernel pop ebp ret .end: ;; syscall number is assumed to be in eax ;; all other parameters ase passed on the stack ;; the return value is returned in eax global i_syscall:function (i_syscall.end - i_syscall) i_syscall: pushad popad iretd .end:
17.37931
53
0.583333
1df0da62f22e6854ea013068f005ba7052e1553e
1,162
asm
Assembly
unittests/ASM/Primary/Primary_10.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/Primary/Primary_10.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/Primary/Primary_10.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "RBX": "0xD9", "RCX": "0x67E9", "RDX": "0x656667F9", "RBP": "0x6162636465666809", "RDI": "0x81", "RSP": "0x8081", "R8": "0x80808081", "R9": "0x0", "R10": "0x4142441546174719", "R11": "0x5152535455565829", "R12": "0x6162636465666768" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov r15, 0xe0000000 mov rax, 0x4142434445464748 mov [r15 + 8 * 0], rax mov rax, 0x5152535455565758 mov [r15 + 8 * 1], rax mov rax, 0x6162636465666768 mov [r15 + 8 * 2], rax mov rax, 0xD1 clc adc byte [r15 + 8 * 0 + 0], al clc adc word [r15 + 8 * 0 + 2], ax clc adc dword [r15 + 8 * 0 + 4], eax clc adc qword [r15 + 8 * 1 + 0], rax mov rbx, 0x71 mov rcx, 0x81 mov rdx, 0x91 mov rbp, 0xA1 clc adc bl, byte [r15 + 8 * 2] clc adc cx, word [r15 + 8 * 2] clc adc edx, dword [r15 + 8 * 2] clc adc rbp, qword [r15 + 8 * 2] mov rax, 0x01 clc adc al, 0x80 mov rdi, rax mov rax, 0x01 clc adc ax, 0x8080 mov rsp, rax mov rax, 0x01 clc adc eax, 0x80808080 mov r8, rax mov rax, 0x01 clc adc rax, -1 mov r9, rax mov r10, [r15 + 8 * 0] mov r11, [r15 + 8 * 1] mov r12, [r15 + 8 * 2] hlt
14.525
32
0.586059
8a1dcd8903a6fde2e72e3c86e63f5b326cf22cf4
838
asm
Assembly
src/solace_code/host.asm
NablaVM/solace
ffe2967586b6b3a61d028201f8b4c8586ca4f21f
[ "MIT" ]
null
null
null
src/solace_code/host.asm
NablaVM/solace
ffe2967586b6b3a61d028201f8b4c8586ca4f21f
[ "MIT" ]
null
null
null
src/solace_code/host.asm
NablaVM/solace
ffe2967586b6b3a61d028201f8b4c8586ca4f21f
[ "MIT" ]
null
null
null
.file "host_example" .init main <main: call get_clock call get_clock_ps call epoch call random > ; ; Get clock ; <get_clock: lsh r0 $12 $56 ; Load 0x0C into MSB register 0 lsh r1 $0 $48 ; clock or r10 r0 r1 ; Combine into trigger register > ; ; Get clocks per second ; <get_clock_ps: lsh r0 $12 $56 ; Load 0x0C into MSB register 0 lsh r1 $1 $48 ; clock PS or r10 r0 r1 ; Combine into trigger register > ; ; Get epoch ; <epoch: lsh r0 $12 $56 ; Load 0x0C into MSB register 0 lsh r1 $10 $48 ; epoch or r10 r0 r1 ; Combine into trigger register > ; ; Get a random number ; <random: lsh r0 $12 $56 ; Load 0x0C into MSB register 0 lsh r1 $20 $48 ; random or r10 r0 r1 ; Combine into trigger register >
14.20339
54
0.581146
5d457b7404ae48d42f4cf1b5c2068b793634bade
1,515
asm
Assembly
src/main.asm
natiiix/Nebula
0b4b226bb9e217af57b200fae4850ad227432fc3
[ "MIT" ]
1
2020-11-11T16:06:26.000Z
2020-11-11T16:06:26.000Z
src/main.asm
natiiix/Nebula
0b4b226bb9e217af57b200fae4850ad227432fc3
[ "MIT" ]
13
2020-05-24T00:45:01.000Z
2020-06-02T14:41:24.000Z
src/main.asm
natiiix/nebula
0b4b226bb9e217af57b200fae4850ad227432fc3
[ "MIT" ]
null
null
null
; Set stack top at 16MiB address. ; This should be enough stack space for now. STACK_TOP equ 1 << 24 ; Structures and macros %include "struct/idt.asm" %include "macro/print.asm" %include "macro/benchmark.asm" SECTION .text ; Entry point of the entire kernel. global _start _start: jmp load_gdt gdt_loaded: mov esp, STACK_TOP ; set stack pointer to predefined top address cld ; lowest-to-highest direction of bytes in string call enable_cursor ; VGA text-mode cursor is disabled when GRUB menu is disabled (timeout=0) call clear_screen ; clear the VGA text buffer to remove any remnants of the BIOS/bootloader in the background PRINTLN welcomemsg ; print welcome message call load_idt ; load IDT to enable keyboard event handler ; If in benchmark mode, run the defined benchmark code instead of the shell loop. %if BENCHMARK_MODE_ENABLED BENCHMARK_BEGIN BENCHMARK_CODE BENCHMARK_END %endif jmp shell_start ; jump to shell code (infinite loop, no need for halt) ; Data %include "multiboot.asm" %include "data/gdt.asm" %include "data/idt.asm" %include "data/print.asm" %include "data/keyboard.asm" %include "data/shell.asm" %include "data/benchmark.asm" ; Code %include "load_gdt.asm" %include "load_idt.asm" %include "print.asm" %include "keyboard.asm" %include "rtc.asm" %include "string.asm" %include "shell.asm" SECTION .rodata welcomemsg db "Welcome to Nebula!", LF, "Source code: https://github.com/natiiix/nebula", 0
24.047619
115
0.726073
eed2e4cd9dc74f94a2fa70ab20fb473c10a887bd
12,015
asm
Assembly
libsrc/oz/ozinterrupt/ozcustomisr.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/oz/ozinterrupt/ozcustomisr.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/oz/ozinterrupt/ozcustomisr.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; custom interrupt code + key scanning ; ; ; ------ ; $Id: ozcustomisr.asm,v 1.5 2012/04/16 08:44:34 stefano Exp $ ; XLIB ozcustomisr XDEF serial_hook XDEF ozkeyclick XDEF oz1hz XDEF oz64hz_word XDEF oz64hz_dword XDEF ozi64hztime XDEF oz4sec_word XDEF ozi64hzcount XDEF ozdisablepowerkey XDEF ozgreyscale XDEF ozgreycount XDEF s_64hz_hook XDEF s_64hz_return XREF cleanup ; exit in oz_crt0 XREF s_init_unblank ; exit quickly " XREF KeyboardBuffer XREF KeyBufGetPos XREF KeyBufPutPos ; settings XREF ozkeyrepeatspeed XREF ozkeyrepeatdelay XREF ozclick_setting defc PauseFirst = 32 PowerOff: ld a,(ozdisablepowerkey) or a jp nz,NotPowerOff inc a ld (ozdisablepowerkey),a ld hl,kPower ld (KeyboardBuffer),hl ld a,0bh ld (KeyBufGetPos),a xor a ld (KeyBufPutPos),a ;jp _exit jp cleanup FastClock: ld a,(ozgreyscale) or a jp z,FastClockDone push hl ld hl,(ozgreycount) dec hl ld (ozgreycount),hl ld a,l or h jp nz,pophl_FastClockDone in a,(22h) xor 4 out (22h),a ld hl,110 jr z,NotAdd ;; second page -- only 300 delay add hl,hl NotAdd: ld (ozgreycount),hl pophl_FastClockDone: pop hl FastClockDone: ld a,d and 0ffh - 64 jr nz,FromFastClock ei ret ; ------------------------------------ ozcustomisr: in a,(5) ld d,a ld a,0ffh out (6),a in a,(7) ;; mask cpl and d ld d,a bit 6,d jp nz,FastClock FromFastClock: bit 0,d ;; e ;; get keyboard bit call nz,KbdHit in a,(46h) and 16 jp nz,PowerOff ;; power switch depressed NotPowerOff: in a,(12h) and 128 ;jp z,__exit ;; battery switch flipped - get out rapidly jp z,s_init_unblank ;; battery switch flipped - get out rapidly serial_hook: jp GetOutPopAF ;$serial_hook equ $-2 GetOutPopAF: bit 4,d ;; 1hz jr nz,Inc1hz notInc1hz: bit 5,d ;; 64hz jp nz,KbdAndClock ei ret Inc1hz: push hl ld hl,(oz1hz) inc hl ld (oz1hz),hl pop hl jr notInc1hz KbdHit: ozi64hztime: ld a,PauseFirst+1 ;__ozi64hztime equ $-1 ld (ozi64hzcount),a or a ret z in a,(7) and 255-32 ;; enable 64hz interrupt or 1 ;; disable keyboard interrupt for now out (7),a ret KbdAndClock: ld a,(keybusy) or a ret nz dec a ; a=ff ld (keybusy),a ei jp key_isr key_isr_ret: xor a ld (keybusy),a ret ozdisablepowerkey: defs 1 ozi64hzcount: defs 1 ozgreyscale: defs 1 ozgreycount: defs 2 oz1hz: defs 2 oz64hz_word: oz64hz_dword: defs 1 oz4sec_word: defs 1 defs 2 keybusy: defs 1 ; Keyboard driver adapted from software labeled: ; Source code free for non-commercial use ; Assembled program (C)2000 OZdev <http://www.ozdev.com/> ; Benjamin Green <benjamin@lh.co.nz> keyTable: defs 10 mask10: defs 1 mask11: defs 1 repeatcount: defs 1 repeatkey: defs 2 mask12: defs 1 defc Mask2nd = 01h defc MaskNew = 02h defc MaskInv = 04h defc MaskShift = 08h defc kPower = 803Ah defc kUpperMenu = 8068h defc kUpperEnter = 8066h defc kUpperEsc = 8067h defc kEnter = 8038h defc kLShift = 0000h defc kRShift = 8836h defc k2nd = 8137h defc kEsc = 8058h defc kMenu = 8032h defc kNew = 8233h defc kInv = 8435h defc kUp = 8040h defc kDown = 8041h defc kRight = 8043h defc kLeft = 8042h defc kMain = 7025h defc kTel = 70e9h defc kSched = 70eah defc kMemo = 70ebh defc kMyProg = 7015h defc kLight = 803bh defc kPageUp = 8044h defc kPageDown = 8045h key_isr: push bc push de push hl ld hl,ozi64hzcount ld a,(hl) or a jr z,skipCountDown dec a ld (hl),a jr nz,skipCountDown in a,(7) or 32 ;; disable 64hz interrupt and 255-1 ;; but enable keyboard interrupt out (7),a skipCountDown: ld hl,(oz64hz_dword) ld bc,1 add hl,bc ld (oz64hz_dword),hl ld hl,(oz64hz_dword+2) ld bc,0 adc hl,bc ld (oz64hz_dword+2),hl ; global $64hz_hook,$64hz_return s_64hz_hook: jp s_64hz_return ;$64hz_hook equ $-2 s_64hz_return: rxxoff_hook: jp noxoff ;$rxxoff_hook equ $-2 noxoff: ld a,(KeyBufPutPos) inc a cp 0ch jr c,dontzero xor a dontzero: ld b,a ld a,(KeyBufGetPos) cp b jp z,KBufferFull xor a out (11h),a ld a,2 out (12h),a ld (mask12),a ld hl,keyTable+8 in a,(10h) ld b,(hl) ld (hl),a or b xor b and a jr z,noProgKey1 bitP0: bit 0,a jr z,bitP1 ld a,56 ld l,1 jp lookup bitP1: bit 1,a jr z,bitP2 ld a,57 ld l,2 jr lookup bitP2: bit 2,a jr z,bitP3 ld a,58 ld l,4 jr lookup bitP3: bit 3,a jr z,bitP4 ld a,59 ld l,8 jr lookup bitP4: bit 4,a jr z,bitP6 ld a,60 ld l,16 jr lookup bitP6: bit 6,a jr z,noProgKey1 ld a,61 ld l,64 jr lookup noProgKey1: ld a,1 out (12h),a ld (mask12),a ld hl,keyTable+9 in a,(10h) ld b,(hl) ld (hl),a or b xor b and a jr z,noProgKey2 abitP0: bit 0,a jr z,abitP3 ld a,62 ld l,1 jp lookup abitP3: bit 3,a jr z,abitP4 ld a,63 ld l,8 jr lookup abitP4: bit 4,a jr z,abitP5 ld a,64 ld l,16 jr lookup abitP5: bit 5,a jr z,abitP6 ld a,65 ld l,32 jr lookup abitP6: bit 6,a jr z,noProgKey2 ld a,66 ld l,64 lookup: ld e,a xor a ld (mask11),a ld a,l ld (mask10),a jr lookup2 noProgKey2: xor a out (12h),a ld hl,keyTable ld de,100h keyscan: ld a,d out (11h),a in a,(10h) ld b,(hl) ld (hl),a or b xor b and a jr nz,bit0 inc e inc hl sla d jr nz,keyscan bit0: bit 0,a jr z,bit1 ld a,e ld l,1 jr rlookup bit1: bit 1,a jr z,bit2 ld a,e add a,8 ld l,2 jr rlookup bit2: bit 2,a jr z,bit3 ld a,e add a,16 ld l,4 jr rlookup bit3: bit 3,a jr z,bit4 ld a,e add a,24 ld l,8 jr rlookup bit4: bit 4,a jr z,bit5 ld a,e add a,32 ld l,16 jr rlookup bit5: bit 5,a jr z,bit6 ld a,e add a,40 ld l,32 jr rlookup bit6: bit 6,a jp z,nokey ld a,e add a,48 ld l,64 rlookup: ld e,a ld a,l ld hl,mask10 ld (hl),a inc hl ; =mask11 ld (hl),d xor a ld (mask12),a lookup2: xor a ld hl,keyTable ld b,(hl) bit 6,b jr z,no2nd ld a,Mask2nd no2nd: bit 5,b jr nz,shift ld hl,keyTable+6 bit 3,(hl) jr z,noShift shift: or MaskShift noShift: ld hl,keyTable+3 bit 6,(hl) jr z,noInv or MaskInv noInv: dec hl bit 6,(hl) jr z,noNew or MaskNew noNew: lookupKey: ld b,a ld hl,keys ld d,0 add hl,de add hl,de ld a,(hl) ld c,a inc hl ld a,(hl) xor b ld b,a ld hl,repeatcount ld a,(ozkeyrepeatdelay) ld (hl),a inc hl ; =repeatkey ld (hl),c inc hl ld (hl),b putinbuf: call KbdHit ld a,(ozclick_setting) or a call nz,ozkeyclick putinbuf_noclick: ld a,(KeyBufPutPos) inc a cp 0ch jr c,dontzero2 xor a dontzero2: ld (KeyBufPutPos),a ld e,a ld d,0 ld hl,KeyboardBuffer add hl,de add hl,de ld (hl),c inc hl ld (hl),b KBufferFull: iret: ld a,0ffh out (11h),a out (12h),a pop hl pop de pop bc jp key_isr_ret clearrepeat: xor a ld hl,mask11 ld (hl),a ; hl=mask11 inc hl ld (hl),a ; hl=mask12 jr iret nokey: ld a,(mask12) ld hl,mask11 ld c,(hl) ; c=(mask11) or c jr z,iret ; nothing to repeat inc hl ; =repeatcount inc hl ; =repeatkey ld hl,repeatkey xor a ld b,(hl) or b jr z,clearrepeat ; lower shift - do not repeat inc hl ld a,080h and (hl) jr z,doRepeat ; not any other shift key ld a,b cp kRShift ~ 0ffh jr z,clearrepeat cp kNew ~ 0ffh jr z,clearrepeat cp kInv ~ 0ffh jr z,clearrepeat cp k2nd ~ 0ffh jr z,clearrepeat doRepeat: ld hl,mask10 ld a,c out (11h),a ; set mask ld a,(mask12) out (12h),a in a,(10h) and (hl) ; (mask10) inc hl ; =mask11 jr z,clearrepeat ; key to be repeated released inc hl ; =repeatcount dec (hl) ld a,(hl) or a jr nz,iret ; not time yet ld a,(ozkeyrepeatspeed) ld (hl),a inc hl ; =repeatkey ld c,(hl) inc hl ld b,(hl) jp putinbuf_noclick keys: defw kEsc,'1','2','3','4','5','6','7' defw 'q','w','e','r','t','8','9','0' defw 0,'y','u','i','o','p',8,'.' defw 'g','h','j','k','l',13,kRShift,',' defw 'a','s','d','f',kLeft,kDown,kRight,kUp defw kLShift,'z','x','c','v','b','n','m' defw k2nd,kMenu,kNew,kInv,' ','-',kEnter,0 defw kMain,kTel,kSched,kMemo,kMyProg,kLight defw kUpperMenu,kUpperEsc,kUpperEnter,kPageUp,kPageDown ozkeyclick: in a,(15h) and a ret nz ; bell char takes priority ld a,1 out (19h),a out (16h),a xor a keyclick: dec a jr nz,keyclick out (16h),a dontClick: ret
19.696721
73
0.452601
848ab3dd1786909c7de7ff731d64697110b19dc7
9,329
asm
Assembly
src/Native/Runtime/i386/ThunkPoolThunks.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
9
2018-02-28T14:24:42.000Z
2021-07-07T13:12:15.000Z
src/Native/Runtime/i386/ThunkPoolThunks.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
8
2016-12-02T10:22:20.000Z
2020-10-08T15:06:17.000Z
src/Native/Runtime/i386/ThunkPoolThunks.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
23
2017-06-05T16:21:58.000Z
2022-01-31T11:01:47.000Z
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. .586 .model flat option casemap:none .code include AsmMacros.inc ;; ----------------------------------------------------------------------------------------------------------- ;; standard macros ;; ----------------------------------------------------------------------------------------------------------- LEAF_ENTRY macro Name, Section Section segment para 'CODE' public Name Name proc endm NAMED_LEAF_ENTRY macro Name, Section, SectionAlias Section segment para alias(SectionAlias) 'CODE' public Name Name proc endm LEAF_END macro Name, Section Name endp Section ends endm NAMED_READONLY_DATA_SECTION macro Section, SectionAlias Section segment para alias(SectionAlias) read 'DATA' DD 0 Section ends endm NAMED_READWRITE_DATA_SECTION macro Section, SectionAlias Section segment para alias(SectionAlias) read write 'DATA' DD 0 Section ends endm ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; STUBS & DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; THUNK_CODESIZE equ 20h ;; 5-byte call, 1 byte pop, 6-byte lea, 6-byte jmp, 14 bytes of padding THUNK_DATASIZE equ 08h ;; 2 dwords THUNK_POOL_NUM_THUNKS_PER_PAGE equ 078h ;; 120 thunks per page PAGE_SIZE equ 01000h ;; 4K POINTER_SIZE equ 04h GET_CURRENT_IP macro ALIGN 10h ;; make sure we align to 16-byte boundary for CFG table call @F @@: pop eax endm LOAD_DATA_ADDRESS macro groupIndex, index ;; start : eax points to current instruction of the current thunk ;; set eax to begining of data page : eax <- [eax - (size of the call instruction + (THUNK_CODESIZE * current thunk's index)) + PAGE_SIZE] ;; fix offset of the data : eax <- eax + (THUNK_DATASIZE * current thunk's index) lea eax,[eax - (5 + groupIndex * THUNK_CODESIZE * 10 + THUNK_CODESIZE * index) + PAGE_SIZE + (groupIndex * THUNK_DATASIZE * 10 + THUNK_DATASIZE * index)] endm JUMP_TO_COMMON macro groupIndex, index ;; start : eax points to current thunk's data block ;; re-point eax to begining of data page : eax <- [eax - (THUNK_DATASIZE * current thunk's index)] ;; jump to the location pointed at by the last dword in the data page : jump [eax + PAGE_SIZE - POINTER_SIZE] jmp dword ptr[eax - (groupIndex * THUNK_DATASIZE * 10 + THUNK_DATASIZE * index) + PAGE_SIZE - POINTER_SIZE] endm TenThunks macro groupIndex ;; Each thunk will load the address of its corresponding data (from the page that immediately follows) ;; and call a common stub. The address of the common stub is setup by the caller (last dword ;; in the thunks data section) depending on the 'kind' of thunks needed (interop, fat function pointers, etc...) ;; Each data block used by a thunk consists of two dword values: ;; - Context: some value given to the thunk as context (passed in eax). Example for fat-fptrs: context = generic dictionary ;; - Target : target code that the thunk eventually jumps to. GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,0 JUMP_TO_COMMON groupIndex,0 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,1 JUMP_TO_COMMON groupIndex,1 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,2 JUMP_TO_COMMON groupIndex,2 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,3 JUMP_TO_COMMON groupIndex,3 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,4 JUMP_TO_COMMON groupIndex,4 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,5 JUMP_TO_COMMON groupIndex,5 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,6 JUMP_TO_COMMON groupIndex,6 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,7 JUMP_TO_COMMON groupIndex,7 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,8 JUMP_TO_COMMON groupIndex,8 GET_CURRENT_IP LOAD_DATA_ADDRESS groupIndex,9 JUMP_TO_COMMON groupIndex,9 endm THUNKS_PAGE_BLOCK macro TenThunks 0 TenThunks 1 TenThunks 2 TenThunks 3 TenThunks 4 TenThunks 5 TenThunks 6 TenThunks 7 TenThunks 8 TenThunks 9 TenThunks 10 TenThunks 11 endm ;; ;; The first thunks section should be 64K aligned because it can get ;; mapped multiple times in memory, and mapping works on allocation ;; granularity boundaries (we don't want to map more than what we need) ;; ;; The easiest way to do so is by having the thunks section at the ;; first 64K aligned virtual address in the binary. We provide a section ;; layout file to the linker to tell it how to layout the thunks sections ;; that we care about. (ndp\rh\src\runtime\DLLs\app\mrt100_app_sectionlayout.txt) ;; ;; The PE spec says images cannot have gaps between sections (other ;; than what is required by the section alignment value in the header), ;; therefore we need a couple of padding data sections (otherwise the ;; OS will not load the image). ;; NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment0, ".pad0" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment1, ".pad1" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment2, ".pad2" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment3, ".pad3" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment4, ".pad4" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment5, ".pad5" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment6, ".pad6" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment7, ".pad7" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment8, ".pad8" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment9, ".pad9" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment10, ".pad10" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment11, ".pad11" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment12, ".pad12" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment13, ".pad13" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment14, ".pad14" ;; ;; Thunk Stubs ;; NOTE: Keep number of blocks in sync with macro/constant named 'NUM_THUNK_BLOCKS' in: ;; - ndp\FxCore\src\System.Private.CoreLib\System\Runtime\InteropServices\ThunkPool.cs ;; - ndp\rh\src\tools\rhbind\zapimage.h ;; NAMED_LEAF_ENTRY ThunkPool, TKS0, ".tks0" THUNKS_PAGE_BLOCK LEAF_END ThunkPool, TKS0 NAMED_READWRITE_DATA_SECTION ThunkData0, ".tkd0" NAMED_LEAF_ENTRY ThunkPool1, TKS1, ".tks1" THUNKS_PAGE_BLOCK LEAF_END ThunkPool1, TKS1 NAMED_READWRITE_DATA_SECTION ThunkData1, ".tkd1" NAMED_LEAF_ENTRY ThunkPool2, TKS2, ".tks2" THUNKS_PAGE_BLOCK LEAF_END ThunkPool2, TKS2 NAMED_READWRITE_DATA_SECTION ThunkData2, ".tkd2" NAMED_LEAF_ENTRY ThunkPool3, TKS3, ".tks3" THUNKS_PAGE_BLOCK LEAF_END ThunkPool3, TKS3 NAMED_READWRITE_DATA_SECTION ThunkData3, ".tkd3" NAMED_LEAF_ENTRY ThunkPool4, TKS4, ".tks4" THUNKS_PAGE_BLOCK LEAF_END ThunkPool4, TKS4 NAMED_READWRITE_DATA_SECTION ThunkData4, ".tkd4" NAMED_LEAF_ENTRY ThunkPool5, TKS5, ".tks5" THUNKS_PAGE_BLOCK LEAF_END ThunkPool5, TKS5 NAMED_READWRITE_DATA_SECTION ThunkData5, ".tkd5" NAMED_LEAF_ENTRY ThunkPool6, TKS6, ".tks6" THUNKS_PAGE_BLOCK LEAF_END ThunkPool6, TKS6 NAMED_READWRITE_DATA_SECTION ThunkData6, ".tkd6" NAMED_LEAF_ENTRY ThunkPool7, TKS7, ".tks7" THUNKS_PAGE_BLOCK LEAF_END ThunkPool7, TKS7 NAMED_READWRITE_DATA_SECTION ThunkData7, ".tkd7" ;; ;; IntPtr RhpGetThunksBase() ;; FASTCALL_FUNC RhpGetThunksBase, 0 ;; Return the address of the first thunk pool to the caller (this is really the base address) lea eax, [ThunkPool] ret FASTCALL_ENDFUNC ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; General Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; int RhpGetNumThunksPerBlock() ;; FASTCALL_FUNC RhpGetNumThunksPerBlock, 0 mov eax, THUNK_POOL_NUM_THUNKS_PER_PAGE ret FASTCALL_ENDFUNC ;; ;; int RhpGetThunkSize() ;; FASTCALL_FUNC RhpGetThunkSize, 0 mov eax, THUNK_CODESIZE ret FASTCALL_ENDFUNC ;; ;; int RhpGetNumThunkBlocksPerMapping() ;; FASTCALL_FUNC RhpGetNumThunkBlocksPerMapping, 0 mov eax, 8 ret FASTCALL_ENDFUNC ;; ;; int RhpGetThunkBlockSize ;; FASTCALL_FUNC RhpGetThunkBlockSize, 0 mov eax, PAGE_SIZE * 2 ret FASTCALL_ENDFUNC ;; ;; IntPtr RhpGetThunkDataBlockAddress(IntPtr thunkStubAddress) ;; FASTCALL_FUNC RhpGetThunkDataBlockAddress, 4 mov eax, ecx mov ecx, PAGE_SIZE - 1 not ecx and eax, ecx add eax, PAGE_SIZE ret FASTCALL_ENDFUNC ;; ;; IntPtr RhpGetThunkStubsBlockAddress(IntPtr thunkDataAddress) ;; FASTCALL_FUNC RhpGetThunkStubsBlockAddress, 4 mov eax, ecx mov ecx, PAGE_SIZE - 1 not ecx and eax, ecx sub eax, PAGE_SIZE ret FASTCALL_ENDFUNC end
31.200669
165
0.67467
8fb072feb9d451204a0d19a5e307cc7b9ffb41f5
185
asm
Assembly
libsrc/math/zxmath/ldbcfa.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/math/zxmath/ldbcfa.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/math/zxmath/ldbcfa.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; Z88dk Generic Floating Point Math Library ; ; bc ix de = FA PUBLIC ldbcfa EXTERN fa .ldbcfa LD DE,(fa) LD IX,(fa+2) LD BC,(fa+4) RET
12.333333
43
0.502703
d78a64f87c089550f5f9c4afa6b02a1051e91171
6,188
asm
Assembly
libsrc/target/zx/if1/if1_rommap.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/target/zx/if1/if1_rommap.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/target/zx/if1/if1_rommap.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; ; ZX IF1 & Microdrive functions ; ; Stefano Bodrato - Oct. 2004 ; ; ; if1_rommap: ; - detect the shadow rom version ; - init the jump table ; ; MAKE_M can't be called with the 'hook code' system because ; the first issue of the interface one just doesn't have it. ; ; $Id: if1_rommap.asm,v 1.4 2016-07-01 22:08:20 dom Exp $ ; SECTION code_clib PUBLIC if1_rommap PUBLIC MAKE_M PUBLIC CLOSE_M PUBLIC FETCH_H PUBLIC MOTOR PUBLIC RD_BUFF PUBLIC ERASEM ; PUBLIC ADD_RECD PUBLIC DEL_S_1 PUBLIC mdvbuffer if1_rommap: ; start creating an 'M' channel rst 8 defb 31h ; Create Interface 1 system vars if required ld hl,paged ld (5CEDh),hl ; Location for hook 32h to jump to rst 8 ; Call 'paged' with shadow paged in defb 32h ; (in other words: page in the shadow ROM) paged: set 0,(iy+7Ch) ; FLAGS3: reset the "executing extended command" flag ; update jump table ld a,(10A5h) or a jr z,rom1 ld hl,rom2tab ; JP table for ROM 2 ld a,(1d79h) ; basing on an old paper, it should be the ; first byte of SCAN_M in issue 3 IF1 cp 205 jr z,rom2 ld hl,rom3tab rom2: ld bc,24 ; 8 jumps * 3 bytes ;ld bc,30 ; 10 jumps * 3 bytes ld de,jptab ; JP table dest addr ldir rom1: pop bc ; throw away some garbage pop bc ; ... from the stack ret ;jp MAKE_M ; Jump table (ROM1 is the default) jptab: MAKE_M: JP 0FE8h ; set temporary "M" channel CLOSE_M: JP 12A9h ; close file (pointed by IX) FETCH_H: JP 12C4h ; fetch header IF OLDIF1MOTOR MOTOR: JP 17F7h ; select drive motor ELSE MOTOR2: JP 17F7h ; select drive motor ENDIF RD_BUFF: JP 18A9h ; get buffer ERASEM: JP 1D6Eh ; delete a file from cartridge FREESECT: JP 1D38h ; add a record to file DEL_S_1: JP 1867h ; 1ms delay ;LDBYTS: JP 15ACh ; ;SVBYTS: JP 14EEh ; ; Jump table image (rom2) ; rom2tab: JP 10A5h JP 138Eh JP 13A9h JP 1532h ;MOTOR JP 15EBh ;RD_BUFF JP 1D79h ;ERASEM JP 1D43h ;FREESECT JP 15A2h ;DEL_S_1 ;JP 199Dh ;LDBYTS ;JP 18DFh ;SVBYTS ; Jump table image (rom3) ..based on the Pennel's book ; rom3tab: JP 10A5h JP 138Eh JP 13A9h JP 1532h ;MOTOR JP 15EBh ;RD_BUFF JP 1D7Bh ;ERASEM JP 1D45h ;FREESECT ; - ?? we just suppose this one JP 15A2h ;DEL_S_1 ;JP 199Dh ;LDBYTS ??? ;JP 18DFh ;SVBYTS ??? IF !OLDIF1MOTOR ; New MOTOR routine. ; This one traps the 'microdrive not present' error ; Mostly from the A. Pennel's Microdrive book MOTOR: and a ; need to stop a motor ? jp z,MOTOR2 ; use the original ROM routine push hl di ;; jr sw_motor sw_motor: ;push de ld de,$0100 ; d=1, e=0 neg ; negate the drive number add 9 ; a = 9 - drive number ld c,a ; drive selected ld b,8 ; drive counter all_motors: dec c ; decrement the drive selected jr nz,off_motor ; jump if not the one that is ; under investigation ; put a motor ON ld a,d ld ($f7),a ; send 1 (ON) ld a,$ee out ($ef),a call DEL_S_1 ; wait 1 ms ld a,$ec out ($ef),a call DEL_S_1 ; wait 1 ms jr nxt_motor ; do the next one off_motor: ; switch a drive OFF ld a,$ef out ($ef),a ld a,e out ($f7),a ; send 0: OFF call DEL_S_1 ; wait 1 ms ld a,$ed out ($ef),a call DEL_S_1 ; wait 1 ms nxt_motor: djnz all_motors ld a,d out ($f7),a ; send 1 ld a,$ee out ($ef),a ;; jr turned_on ; now drive is on, check its status turned_on: ld hl,5000 ; delay counter ton_delay: dec hl ld a,l or h jr nz,ton_delay ld hl,5000 ; 'check' loop counter reptest: ld b,6 ; six times ; here the original ROM checks for BREAK, ; but we removed it as Pennel did chk_pres: in a,($ef) ; and 4 ; bit 2 only jr nz,nopres ; jp if drive not present djnz chk_pres pop hl ; *CARTRIDGE PRESENT*, return.. ret ;.. with zero flag set nopres: dec hl ; decrement counter ld a,h or l jr nz,reptest inc a ; *CARTRIDGE NOT PRESENT*, reset zero flag... pop hl ret ; ...and return ENDIF SECTION bss_clib mdvbuffer: defw 0
27.873874
93
0.424208
9aa4b55dc60407cb98d0d81212dd05a283beea46
399
asm
Assembly
programs/oeis/083/A083424.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/083/A083424.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/083/A083424.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A083424: a(n) = (5*4^n + (-2)^n)/6. ; 1,3,14,52,216,848,3424,13632,54656,218368,873984,3494912,13981696,55922688,223698944,894779392,3579150336,14316535808,57266274304,229064835072,916259864576,3665038409728,14660155736064,58640618749952 add $0,1 mov $2,1 mov $3,1 lpb $0,1 sub $0,1 mov $1,4 mul $2,2 mul $1,$2 add $2,$3 mov $3,$1 mul $1,2 lpe mul $1,2 sub $1,28 div $1,32 add $1,1
19.95
201
0.679198
da50c1a5d3316b33e33e15d466e802f9a63c0ff9
497
asm
Assembly
programs/oeis/219/A219762.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/219/A219762.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/219/A219762.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A219762: Start with 0; repeatedly apply the map {0->012, 1->120, 2->201} to the odd-numbered terms and {0->210, 1->021, 2->102} to the even-numbered terms. ; 0,1,2,0,2,1,2,0,1,2,1,0,2,0,1,0,2,1,2,0,1,2,1,0,1,2,0,1,0,2,1,2,0,2,1,0,2,0,1,2,1,0,1,2,0,2,1,0,2,0,1,0,2,1,2,0,1,2,1,0,1,2,0,1,0,2,1,2,0,2,1,0,1,2,0,1,0,2,0,1,2,0,2,1,0,1,2,1,0,2,1,2,0,1,0,2,0,1,2,1 lpb $0 mov $2,$0 div $0,3 seq $2,132355 ; Numbers of the form 9*h^2 + 2*h, for h an integer. add $1,$2 mod $1,3 lpe mov $0,$1
41.416667
201
0.571429
0ae2ef0a66f6d2133641677df30660efd156b6a4
863
asm
Assembly
data/pokemon/base_stats/slowpoke.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/slowpoke.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/slowpoke.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_SLOWPOKE ; pokedex id db 90, 65, 65, 15, 40 ; hp atk def spd spc db WATER, PSYCHIC_TYPE ; type db 190 ; catch rate db 99 ; base exp INCBIN "gfx/pokemon/front/slowpoke.pic", 0, 1 ; sprite dimensions dw SlowpokePicFront, SlowpokePicBack db CONFUSION, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_MEDIUM_FAST ; growth rate ; tm/hm learnset tmhm TOXIC, BODY_SLAM, TAKE_DOWN, DOUBLE_EDGE, BUBBLEBEAM, \ WATER_GUN, ICE_BEAM, BLIZZARD, PAY_DAY, RAGE, \ EARTHQUAKE, FISSURE, DIG, PSYCHIC_M, TELEPORT, \ MIMIC, DOUBLE_TEAM, REFLECT, BIDE, FIRE_BLAST, \ SWIFT, SKULL_BASH, REST, THUNDER_WAVE, PSYWAVE, \ TRI_ATTACK, SUBSTITUTE, SURF, STRENGTH, FLASH ; end db 0 ; padding
33.192308
77
0.595597
91820a0af872073158f0153864a7d887fd5ecccc
901
asm
Assembly
rt-thread/libcpu/arm/cortex-r4/vector_ccs.asm
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
10
2015-09-03T13:43:14.000Z
2021-07-09T06:31:12.000Z
rt-thread/libcpu/arm/cortex-r4/vector_ccs.asm
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
1
2015-12-03T10:25:39.000Z
2015-12-03T10:25:39.000Z
rt-thread/libcpu/arm/cortex-r4/vector_ccs.asm
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
5
2015-09-01T14:28:49.000Z
2017-12-04T06:11:05.000Z
;------------------------------------------------------------------------------- ; sys_intvecs.asm ; ; (c) Texas Instruments 2009-2013, All rights reserved. ; .sect ".intvecs" .arm ;------------------------------------------------------------------------------- ; import reference for interrupt routines .ref _reset .ref turnon_VFP .ref vector_svc .ref vector_pabort .ref vector_dabort .ref vector_resv .ref IRQ_Handler ;------------------------------------------------------------------------------- ; interrupt vectors .def resetEntry resetEntry b _reset b turnon_VFP b vector_svc b vector_pabort b vector_dabort b vector_resv b IRQ_Handler ldr pc,[pc,#-0x1b0] ;-------------------------------------------------------------------------------
25.742857
81
0.368479
6f80cfb4aed1f3064018c2ba76175f9743f71baa
706
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_alloc_aligned.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_alloc_aligned.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_alloc_aligned.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; void *heap_alloc_aligned(void *heap, size_t alignment, size_t size) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _heap_alloc_aligned EXTERN asm_heap_alloc_aligned _heap_alloc_aligned: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_heap_alloc_aligned ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _heap_alloc_aligned EXTERN _heap_alloc_aligned_unlocked defc _heap_alloc_aligned = _heap_alloc_aligned_unlocked ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16.045455
69
0.563739
28a811d23cf6994d96f4cb96cf7cff0603b37853
160
asm
Assembly
data/maps/headers/Route15.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/headers/Route15.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/headers/Route15.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
map_header Route15, ROUTE_15, OVERWORLD, WEST | EAST connection west, FuchsiaCity, FUCHSIA_CITY, -4 connection east, Route14, ROUTE_14, -18 end_map_header
26.666667
53
0.78125
8eac4d6ee5872b3abddce1eea7bb4c1b78d3f928
5,596
asm
Assembly
Project 2/src/Project/part2.asm
Nurl4n/Computer-Organization
1655d2e35dd5093e6c348545db06f698f2edb86c
[ "MIT" ]
null
null
null
Project 2/src/Project/part2.asm
Nurl4n/Computer-Organization
1655d2e35dd5093e6c348545db06f698f2edb86c
[ "MIT" ]
null
null
null
Project 2/src/Project/part2.asm
Nurl4n/Computer-Organization
1655d2e35dd5093e6c348545db06f698f2edb86c
[ "MIT" ]
null
null
null
.data myArray: .space 400 messageChoose: .asciiz "\nChoose one of the options above: " sortMessage: .asciiz "\n\n1. Sort the array" secndMinSecndMaxMessage: .asciiz "\n2. Find 2nd minimum and 2nd maximum numbers" medianMessage: .asciiz "\n3. Find median of the array" quit: .asciiz "\n4. Quit" enterSize: .asciiz "Enter the length of the array: " enterInput: .asciiz "Enter the value(s): " beforeSorted: .asciiz "(Before Sorted) -> The element(s) of the array: " afterSorted: .asciiz "\n(After Sorted) -> The element(s) of the array: " secondMin: .asciiz "\nSecond min value is: " secondMax: .asciiz "\nSecond max value is: " median: .asciiz "\nMedian of the array is: " notEnoughElement: .asciiz "\nThe number of the elments in the array is less than 4, so cannot choose 2nd max and 2nd min values." space: .asciiz " " endl: .asciiz "\n" .text main: li $v0, 4 la $a0, enterSize syscall li $v0, 5 syscall # Keeps the length of the array move $a1, $v0 # Keeps the length of the array in a temporary register $t0 (to control the loops) move $t0, $a1 # Creates new array move $a0, $a1 li $v0, 9 syscall # Strores array address in $a0 move $a0, $v0 # Strores array address in $s0 move $s0, $a0 # Stores array address in $s1 move $s1, $a0 # jumps to get inputs from the user and save them in array jal initializeArray # Prints message li $v0, 4 la $a0, beforeSorted syscall # Prints the element(s) of the array jal printArray #-------------------Calls----------------------# whileForUser: # 1st choice li $v0, 4 la $a0, sortMessage syscall # 2nd choice li $v0, 4 la $a0, secndMinSecndMaxMessage syscall # 3rd choice li $v0, 4 la $a0, medianMessage syscall # 4th choice li $v0, 4 la $a0, quit syscall # Print the user to choose li $v0, 4 la $a0, messageChoose syscall # Prints options to choose for users li $v0, 5 syscall # Save the chosen option to $t2 move $t2, $v0 # $t2 is used for keeping what user chose from the menu beq $t2, 1, option1 beq $t2, 2, option2 beq $t2, 3, option3 j exitWhileForUser option1: # Sorts the array jal bubbleSort # Prints message li $v0, 4 la $a0, afterSorted syscall # Prints the element(s) of the array jal printArray # Goes back to options menu j whileForUser option2: # Strores array address in $s0 jal SecMinSecMax # Goes back to options menu j whileForUser option3: # Finding Median li $v0, 4 la $a0, median syscall jal findMedian move $s3, $v1 li $v0, 1 move $a0, $s3 syscall # Goes back to options menu j whileForUser exitWhileForUser: # End of execution li $v0, 10 syscall initializeArray: beq $t0, 0, exitInitializeArray li $v0, 4 la $a0, enterInput syscall li $v0, 5 syscall sw $v0, 0($s0) addi $s0, $s0, 4 addi $t0, $t0, -1 j initializeArray exitInitializeArray: move $t0, $a1 move $s0, $s1 jr $ra printArray: beq $t0, 0, exitPrintArray li $v0, 1 lw $a0, 0($s0) syscall li $v0, 4 la $a0, space syscall addi $s0, $s0, 4 addi $t0, $t0, -1 j printArray exitPrintArray: move $s0, $s1 move $t0, $a1 jr $ra bubbleSort: li $t1, 1 sort: # Checks if we reached to the end of array beq $t1, $t0, exitBubbleSort # Strores array address in $s0 move $s0, $s1 # Keeps index of the array li $t2, 0 # How many times to iterate sub $t4, $t0, $t1 #addi $t4, $t4, 1 loopToCompare: beq $t2, $t4, exitLoopToCompare lw $t8, 0($s0) lw $t9, 4($s0) slt $t5, $t9, $t8 beq $t5, 1, swap addi $t2, $t2, 1 addi $s0, $s0, 4 j loopToCompare swap: sw $t9, 0($s0) sw $t8, 4($s0) endSwap: addi $t2, $t2, 1 addi $s0, $s0, 4 j loopToCompare exitLoopToCompare: addi $t1, $t1, 1 j sort exitBubbleSort: # Restore the length of array to $t0 move $t0, $a1 addi $t1, $zero, 1 # Strores array address in $s0 move $s0, $s1 jr $ra SecMinSecMax: # Saving last address of $ra in stack addi $sp, $sp, -4 sw $ra, 0($sp) # Checks if there are enough number of elements slti $t5, $t0, 4 bne $t5, 1, continue li $v0, 4 la $a0, notEnoughElement syscall j exitSecMinSecMax continue: jal bubbleSort # To take secondMin element addi $s0, $s0, 4 lw $v0, 0($s0) addi $t4, $t0, -3 loop: beq $t4, 0, exit addi $s0, $s0, 4 addi $t4, $t4, -1 j loop exit: lw $v1, 0($s0) move $s3, $v0 li $v0, 4 la $a0, secondMin syscall move $a0, $s3 li $v0, 1 syscall li $v0, 4 la $a0, secondMax syscall # Puts second min value from $v1 to $a0 and prints it move $a0, $v1 li $v0, 1 syscall exitSecMinSecMax: li $v1, 0 move $s0, $s1 lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra findMedian: # Saving last address of $ra in stack addi $sp, $sp, -4 sw $ra, 0($sp) jal bubbleSort move $t5, $t0 sra $t5, $t5, 1 # Check if length is odd or even li $t7, 2 div $t0, $t7 mfhi $t6 bne $t6, 0, next addi $t5, $t5, -1 next: move $t0, $a1 goToMedian: beq $t5, 0 exitFindMedian addi $s0, $s0, 4 addi $t5, $t5, -1 j goToMedian exitFindMedian: lw $v1, 0($s0) move $s0, $s1 li $t5, 0 lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra
18.168831
130
0.585776
1ffc49305e946c27a9e5537a2c39adc023daaaf2
4,834
asm
Assembly
audio/music/gym.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
audio/music/gym.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
audio/music/gym.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Music_Gym_Ch1:: tempo 138 volume 7, 7 duty_cycle 3 vibrato 8, 2, 2 toggle_perfect_pitch note_type 12, 11, 5 octave 3 note G_, 6 note C_, 1 note G_, 1 note F_, 6 octave 2 note A#, 1 octave 3 note F_, 1 note E_, 6 octave 2 note A_, 1 octave 3 note E_, 1 note F_, 4 note G_, 4 Music_Gym_branch_bcd8:: note E_, 4 note F_, 2 note G_, 2 note F_, 2 note E_, 2 note D_, 2 note C_, 2 note_type 12, 11, 1 note D_, 3 note_type 12, 11, 5 note E_, 1 note F_, 4 note E_, 2 note D_, 2 note E_, 2 note F_, 2 note E_, 4 note F_, 2 note G_, 2 note F_, 2 note E_, 2 note D_, 2 note C_, 2 note D_, 2 note D_, 1 note E_, 1 note F_, 4 note E_, 2 note D_, 2 note E_, 2 note F_, 2 octave 4 note C_, 4 octave 3 note A#, 2 octave 4 note C_, 2 octave 3 note A#, 2 note A_, 2 note G_, 2 note F_, 2 note_type 12, 11, 1 note A#, 3 note_type 12, 11, 5 note F_, 1 note F_, 4 note E_, 2 note D_, 2 note E_, 2 note F_, 2 octave 4 note C_, 4 octave 3 note A#, 2 octave 4 note C_, 2 octave 3 note A#, 2 note A_, 2 note G_, 2 note F_, 2 note D_, 2 note D_, 1 note E_, 1 note F_, 4 note A#, 2 note F_, 1 note A#, 1 octave 4 note D_, 4 octave 3 note E_, 2 note C_, 2 note E_, 2 note G_, 2 note F_, 2 note E_, 2 note D_, 2 note E_, 2 note F_, 2 note D_, 2 note E_, 2 note C_, 2 note D_, 2 note E_, 2 note C_, 2 note D_, 2 note C_, 2 note C_, 1 note D_, 1 note E_, 4 note C_, 2 note E_, 2 note D_, 2 note C_, 2 note E_, 2 note C_, 1 note E_, 1 note F_, 4 note E_, 2 note D_, 2 note E_, 2 note F_, 2 note E_, 2 note C_, 2 note E_, 2 note G_, 2 note F_, 2 note E_, 2 note D_, 2 note E_, 2 note D_, 2 note F_, 2 note D_, 2 note E_, 2 note C_, 2 note D_, 2 note C_, 2 note D_, 2 note C_, 2 note C_, 1 note D_, 1 note E_, 4 note D_, 2 note E_, 2 note F_, 2 note F_, 2 note G_, 2 note E_, 1 note G_, 1 note A#, 2 octave 4 note C_, 2 octave 3 note A#, 2 note A_, 2 note G_, 2 note A_, 2 sound_loop 0, Music_Gym_branch_bcd8 Music_Gym_Ch2:: duty_cycle 3 vibrato 10, 2, 5 note_type 12, 12, 7 octave 4 note C_, 6 octave 3 note G_, 1 octave 4 note C_, 1 octave 3 note A#, 6 note F_, 1 note A#, 1 note_type 12, 10, 0 note A_, 12 note_type 12, 12, 7 note B_, 4 Music_Gym_branch_bd82:: octave 4 note C_, 12 octave 3 note G_, 2 octave 4 note C_, 2 note_type 12, 12, 2 note D_, 3 octave 3 note A#, 1 note_type 12, 12, 7 note A#, 12 octave 4 note C_, 12 octave 3 note G_, 2 octave 4 note C_, 2 note_type 12, 12, 4 octave 3 note A#, 2 note_type 12, 12, 7 note A#, 1 octave 4 note C_, 1 note D_, 12 note E_, 12 note D_, 2 note E_, 2 note_type 12, 12, 2 note F_, 3 note D_, 1 note_type 12, 12, 7 note D_, 4 note_type 12, 12, 2 note A#, 3 note F_, 1 note_type 12, 12, 7 note F_, 4 note E_, 12 note D_, 2 note E_, 2 note F_, 2 note D_, 1 note F_, 1 note A#, 12 octave 3 note G_, 6 octave 4 note C_, 6 octave 3 note G_, 4 note A#, 4 note A_, 4 note G_, 4 note F_, 4 note_type 12, 12, 3 note E_, 2 note_type 12, 12, 7 note E_, 1 note F_, 1 note G_, 6 note G_, 2 octave 4 note C_, 2 octave 3 note G_, 2 note A#, 4 note A_, 4 note G_, 4 note C_, 2 note D_, 2 note G_, 6 octave 4 note C_, 6 octave 3 note G_, 4 note A#, 4 note A_, 4 note G_, 4 note F_, 4 note_type 12, 12, 3 note E_, 2 note_type 12, 12, 7 note E_, 1 note F_, 1 note G_, 4 note_type 12, 12, 3 note G_, 2 note_type 12, 12, 7 note G_, 1 note A_, 1 note A#, 4 note_type 12, 12, 4 octave 4 note C_, 2 note_type 12, 12, 7 note C_, 1 note D_, 1 note E_, 12 sound_loop 0, Music_Gym_branch_bd82 Music_Gym_Ch3:: note_type 12, 1, 1 rest 16 rest 10 octave 4 note G_, 2 note F_, 2 note D_, 2 Music_Gym_branch_be02:: sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be44 sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be44 sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be44 sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be44 sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be4d sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be4d sound_call Music_Gym_branch_be3b sound_call Music_Gym_branch_be4d sound_call Music_Gym_branch_be3b note F_, 2 note A#, 2 note F_, 2 note A#, 2 note F_, 2 note A#, 2 note A_, 2 note F_, 2 sound_loop 0, Music_Gym_branch_be02 Music_Gym_branch_be3b:: note E_, 2 note G_, 2 note E_, 2 note G_, 2 note E_, 2 note G_, 2 note E_, 2 note G_, 2 sound_ret Music_Gym_branch_be44:: note D_, 2 note F_, 2 note D_, 2 note F_, 2 note D_, 2 note F_, 2 note D_, 2 note F_, 2 sound_ret Music_Gym_branch_be4d:: note F_, 2 note A#, 2 note F_, 2 note A#, 2 note F_, 2 note A#, 2 note F_, 2 note A#, 2 sound_ret
13.502793
36
0.652462
5925b49ecca8d85c759a8b280bdca45b741dd811
642
asm
Assembly
programs/oeis/245/A245222.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/245/A245222.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/245/A245222.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A245222: Continued fraction of the constant c in A245221; c = sup{f(n,1)}, where f(1,x) = x + 1 and thereafter f(n,x) = x + 1 if n is in A022838, else f(n,x) = 1/x. ; 2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,2,1 mov $4,2 mov $6,$0 lpb $4 mov $0,$6 sub $4,1 add $0,$4 mov $2,$0 pow $0,2 lpb $0 sub $0,$2 add $2,2 trn $0,$2 lpe mov $3,$4 mov $5,$2 lpb $3 mov $1,$5 sub $3,1 lpe lpe lpb $6 sub $1,$5 mov $6,0 lpe div $1,2 add $1,1 mov $0,$1
20.709677
201
0.510903
4ac7394292ff6132ce156ac28707512356cdd1ec
312
asm
Assembly
programs/oeis/133/A133409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/133/A133409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/133/A133409.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A133409: Zero followed by partial sums of A133405. ; 0,0,0,0,1,4,13,39,117,351,1054,3163,9490,28470,85410,256230,768691,2306074,6918223,20754669,62264007,186792021,560376064,1681128193,5043384580,15130153740,45390461220,136171383660 mov $1,3 pow $1,$0 trn $0,$1 add $0,7 mul $0,2 div $1,4 div $1,$0 mov $0,$1
26
181
0.746795
d986a17c2861b8c3b90f8847556b3f7fb55a4529
3,205
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca_notsx.log_2_589.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca_notsx.log_2_589.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca_notsx.log_2_589.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 %r13 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1a0fc, %rbx nop add $50841, %r13 movups (%rbx), %xmm6 vpextrq $0, %xmm6, %r14 nop nop nop nop xor %r9, %r9 lea addresses_A_ht+0x11b46, %rsi lea addresses_WT_ht+0x17328, %rdi nop nop nop nop nop add $3089, %r11 mov $96, %rcx rep movsl nop nop nop nop cmp %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WT+0x1db28, %rdi nop nop nop and %r15, %r15 movb $0x51, (%rdi) nop lfence // Load lea addresses_WT+0x1f928, %rcx nop nop nop nop nop inc %rdx mov (%rcx), %r9d nop nop nop nop and $3010, %rcx // REPMOV lea addresses_RW+0x10d28, %rsi lea addresses_WT+0x1f928, %rdi clflush (%rsi) nop add $55995, %r13 mov $116, %rcx rep movsw cmp %r15, %r15 // Load lea addresses_WT+0x1f928, %rsi nop nop and %rcx, %rcx movb (%rsi), %r13b nop nop nop nop sub $44220, %r13 // Store mov $0x6df710000000128, %r9 nop nop nop nop nop add %r13, %r13 mov $0x5152535455565758, %r15 movq %r15, %xmm4 vmovups %ymm4, (%r9) nop nop nop add %r13, %r13 // Load lea addresses_US+0x4f28, %r13 xor $3676, %r14 vmovups (%r13), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rdi nop nop nop cmp $42004, %r9 // Store lea addresses_PSE+0xc000, %r9 nop inc %r13 movl $0x51525354, (%r9) nop nop nop and %r15, %r15 // Faulty Load lea addresses_WT+0x1f928, %r14 inc %r15 mov (%r14), %cx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_RW'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'32': 2} 32 32 */
18.005618
147
0.639626
f105d9effc2c2c6cd5b857768f52353e7b4bae14
501
asm
Assembly
oeis/019/A019698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019698: Decimal expansion of 2*Pi/13. ; Submitted by Jon Maiga ; 4,8,3,3,2,1,9,4,6,7,0,6,1,2,2,0,3,6,6,8,6,5,6,0,5,2,0,5,0,4,5,3,8,9,0,5,2,6,1,1,0,2,9,8,4,5,1,9,2,4,7,0,4,9,3,8,0,7,6,0,7,0,6,5,0,8,8,9,4,8,3,1,7,3,6,3,3,9,8,4,5,9,4,2,7,7,4,5,8,8,5,1,4,1,7,1,8,5,6,6 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $1,$0 div $2,$0 sub $3,1 lpe mul $1,4 div $1,13 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
17.892857
201
0.526946
036a66e4066e217a1d8ef2174cc25fed965ee39f
1,058
asm
Assembly
libsrc/zx81/basic/zx_getstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/zx81/basic/zx_getstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/zx81/basic/zx_getstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
; ; ZX 81 specific routines ; by Stefano Bodrato, Oct 2007 ; ; Copy a variable from basic ; ; int __CALLEE__ zx_getstr_callee(char variable, char *value); ; ; ; $Id: zx_getstr_callee.asm,v 1.4 2015/08/11 07:16:35 stefano Exp $ ; PUBLIC zx_getstr_callee PUBLIC ASMDISP_ZX_GETSTR_CALLEE EXTERN zx81toasc zx_getstr_callee: pop bc pop hl pop de push bc ; enter : hl = char *value ; e = char variable .asmentry ld a,e and 31 add 69 ld (morevar+1),a ld (pointer+1),hl ld hl,($4010) ; VARS loop: ld a,(hl) cp 128 jr nz,morevar ld hl,-1 ; variable not found ret morevar: cp 0 jr nz,nextvar inc hl ld c,(hl) inc hl ld b,(hl) inc hl pointer: ld de,0 ;----------------------------- .outloop call zx81toasc ld (de),a inc hl inc de dec bc ld a,b or c jr nz,outloop ;------------------------------ ; ldir inc de xor a ld (de),a ld hl,0 ret nextvar: IF FORlambda call $1A13 ELSE call $09F2 ;get next variable start ENDIF ex de,hl jr loop DEFC ASMDISP_ZX_GETSTR_CALLEE = # asmentry - zx_getstr_callee
12.902439
67
0.634216
2635e1810ab6958e94e98f1544e44102e64a96dc
483
asm
Assembly
Src/SacaraVm/main.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/main.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/main.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
comment ! This is the implementation of the SacaraVM. 2018 (C) Antonio 's4tan' Parata ! .386 .model flat,stdcall .stack 4096 .CODE ; the flag is specified as a MASM preprocessor. IF ENABLE_ANTI_ANALYSIS include anti_macro.inc ELSE include empty_anti_macro.inc ENDIF include vm.asm main PROC push ebp mov ebp, esp cmp dword ptr [ebp+arg1], DLL_PROCESS_ATTACH jne finish check_debugger_via_trap_flag mov eax, 1 finish: mov esp, ebp pop ebp ret main ENDP END main
13.8
47
0.759834
09b128d861f5dbe2950544de468bf888572296f4
153
asm
Assembly
OSDev/Try-12/kernel/entry.asm
Ashwin-Paudel/Tries
91ea32d715eedca528d143cf5e9dfd9ba70804e3
[ "Apache-2.0" ]
null
null
null
OSDev/Try-12/kernel/entry.asm
Ashwin-Paudel/Tries
91ea32d715eedca528d143cf5e9dfd9ba70804e3
[ "Apache-2.0" ]
null
null
null
OSDev/Try-12/kernel/entry.asm
Ashwin-Paudel/Tries
91ea32d715eedca528d143cf5e9dfd9ba70804e3
[ "Apache-2.0" ]
null
null
null
; ; Entry.asm ; KripayaOS Project ; Author(s): [Ashwin: ashwonixer123@gmail.com] ; [bits 64] [extern main] [global _start] _start: call main jmp $
11.769231
47
0.673203
790eb47a16ee44d554b91e3e67b36bf3b72af190
542
asm
Assembly
oeis/168/A168565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/168/A168565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/168/A168565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A168565: Let p = prime(n); then a(n) = p + (p-1)/2. ; Submitted by Jon Maiga ; 4,7,10,16,19,25,28,34,43,46,55,61,64,70,79,88,91,100,106,109,118,124,133,145,151,154,160,163,169,190,196,205,208,223,226,235,244,250,259,268,271,286,289,295,298,316,334,340,343,349,358,361,376,385,394,403 mov $1,2 mov $2,$0 pow $2,2 lpb $2 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,2 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 sub $0,2 div $0,2 mul $0,3 add $0,4
22.583333
206
0.621771
03a1d25b36f06bd20661f9a3a9a7019cc8ed6a41
3,419
asm
Assembly
macros.asm
BAS-demogroup/tremor65
b438ba6db621af28eb5c92ef53a5fc0e9bc3a3b3
[ "BSD-3-Clause" ]
null
null
null
macros.asm
BAS-demogroup/tremor65
b438ba6db621af28eb5c92ef53a5fc0e9bc3a3b3
[ "BSD-3-Clause" ]
null
null
null
macros.asm
BAS-demogroup/tremor65
b438ba6db621af28eb5c92ef53a5fc0e9bc3a3b3
[ "BSD-3-Clause" ]
null
null
null
!macro reserve_int { !fill int_sizeof, $00 } !macro reserve_int64 { !fill int64_sizeof, $00 } !macro reserve_long { !fill long_sizeof, $00 } !macro reserve_ptr { !fill ptr_sizeof, $00 } !macro reserve_short { !fill short_sizeof, $00 } !macro BasicUpstart65 { * = $2001 !byte $16,$20 ;End of command marker (first byte after the 00 terminator) !byte $0a,$00 ;10 !byte $fe,$02,$30,$3a ;BANK 0: !byte $9e ;SYS !text "$202C" !byte $3a, $8f ;:REM !fill 21, $14 !text "BAS", $00 !byte $00,$00 ;End of basic terminators .start: } !macro enable_40mhz { lda #65 sta $00 } !macro RunDMAJob .JobPointer { lda #(.JobPointer >> 16) sta $D702 sta $D704 lda #>.JobPointer sta $D701 lda #<.JobPointer sta $D705 } !macro DMAFillJob .SourceByte, .Destination, .Length, .Chain { !byte $00 !if (.Chain) { !byte $07 } else { !byte $03 } !word .Length !word .SourceByte !byte $00 !word .Destination & $FFFF !byte ((.Destination >> 16) & $0F) !if (.Chain) { !word $0000 } } !macro DMACopyJob .Source, .Destination, .Length, .Chain, .Backwards { !byte $00 //No more options !if(.Chain) { !byte $04 //Copy and chain } else { !byte $00 //Copy and last request } !set .backByte = 0 !if(.Backwards) { !set .backByte = $40 !set .Source = .Source + .Length - 1 !set .Destination = .Destination + .Length - 1 } !word .Length //Size of Copy !word .Source & $ffff !byte (.Source >> 16) + .backByte !word .Destination & $ffff !byte ((.Destination >> 16) & $0f) + .backByte !if(.Chain) { !word $0000 } } !macro short_copy .source, .destination, .length { ldx #.length - lda .source, x sta .destination, x dex bpl - } !macro long_fill .destination, .length { lda #<.length sta fill_dma + 2 lda #>.length sta fill_dma + 3 lda .destination sta fill_dma + 7 lda .destination + 1 sta fill_dma + 8 +RunDMAJob fill_dma } !macro long_copy .source, .destination, .length { lda #<.length sta copy_dma + 2 lda #>.length sta copy_dma + 3 lda #<.source sta copy_dma + 4 lda #>.source sta copy_dma + 5 lda #<.destination sta copy_dma + 7 lda #>.destination sta copy_dma + 8 +RunDMAJob copy_dma } !macro set_zp .zp, .ptr { lda .ptr sta .zp lda .ptr + 1 sta .zp + 1 } !macro copy_word .src, .dst { lda .src sta .dst lda .src + 1 sta .dst + 1 } !macro store_word .value, .destination { lda #<.value sta .destination lda #>.value sta .destination + 1 } !macro store_word_to_zp_offset .value, .zp, .offset { ldy #.offset lda #<.value sta (.zp), y iny lda #>.value sta (.zp), y } !macro store_word_to_zp_y .value, .zp { iny lda #<.value sta (.zp), y iny lda #>.value sta (.zp), y } !macro copy_ptr .ptr, .destination { lda .ptr sta .destination lda .ptr + 1 sta .destination + 1 } !macro copy_word_to_zp_offset .source, .zp, .offset { ldy #.offset lda .source sta (.zp), y iny lda .source + 1 sta (.zp), y } !macro copy_word_to_zp_y .source, .zp { iny lda .source sta (.zp), y iny lda .source + 1 sta (.zp), y } !macro copy_long_to_zp .source, .zp, .length { ldy #.length - lda .source, y sta (.zp), y dey bpl - } !macro copy_word_from_zp_offset .zp, .destination, .offset { ldy #.offset lda (.zp), y sta .destination iny lda (.zp), y sta .destination + 1 } !macro copy_word_from_zp_y .zp, .destination { iny lda (.zp), y sta .destination iny lda (.zp), y sta .destination + 1 }
15.470588
76
0.628839
1d82273f289dde531f3c5da45f6ac73b2e32cb3a
18,846
asm
Assembly
externals/skia/third_party/externals/libjpeg-turbo/simd/jchuff-sse2.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
1
2019-10-29T14:36:32.000Z
2019-10-29T14:36:32.000Z
externals/skia/third_party/externals/libjpeg-turbo/simd/jchuff-sse2.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
1
2017-06-18T00:25:03.000Z
2017-11-29T16:01:48.000Z
externals/skia/third_party/externals/libjpeg-turbo/simd/jchuff-sse2.asm
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
5
2017-11-30T06:06:50.000Z
2022-03-31T21:48:49.000Z
; ; jchuff-sse2.asm - Huffman entropy encoding (SSE2) ; ; Copyright 2009-2011, 2014-2016 D. R. Commander. ; Copyright 2015 Matthieu Darbois ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Assembler), ; can *not* be assembled with Microsoft's MASM or any compatible ; assembler (including Borland's Turbo Assembler). ; NASM is available from http://nasm.sourceforge.net/ or ; http://sourceforge.net/project/showfiles.php?group_id=6208 ; ; This file contains an SSE2 implementation for Huffman coding of one block. ; The following code is based directly on jchuff.c; see jchuff.c for more ; details. ; ; [TAB8] %include "jsimdext.inc" ; -------------------------------------------------------------------------- SECTION SEG_CONST alignz 16 global EXTN(jconst_huff_encode_one_block) EXTN(jconst_huff_encode_one_block): %include "jpeg_nbits_table.inc" alignz 16 ; -------------------------------------------------------------------------- SECTION SEG_TEXT BITS 32 ; These macros perform the same task as the emit_bits() function in the ; original libjpeg code. In addition to reducing overhead by explicitly ; inlining the code, additional performance is achieved by taking into ; account the size of the bit buffer and waiting until it is almost full ; before emptying it. This mostly benefits 64-bit platforms, since 6 ; bytes can be stored in a 64-bit bit buffer before it has to be emptied. %macro EMIT_BYTE 0 sub put_bits, 8 ; put_bits -= 8; mov edx, put_buffer mov ecx, put_bits shr edx, cl ; c = (JOCTET)GETJOCTET(put_buffer >> put_bits); mov byte [eax], dl ; *buffer++ = c; add eax, 1 cmp dl, 0xFF ; need to stuff a zero byte? jne %%.EMIT_BYTE_END mov byte [eax], 0 ; *buffer++ = 0; add eax, 1 %%.EMIT_BYTE_END: %endmacro %macro PUT_BITS 1 add put_bits, ecx ; put_bits += size; shl put_buffer, cl ; put_buffer = (put_buffer << size); or put_buffer, %1 %endmacro %macro CHECKBUF15 0 cmp put_bits, 16 ; if (put_bits > 31) { jl %%.CHECKBUF15_END mov eax, POINTER [esp+buffer] EMIT_BYTE EMIT_BYTE mov POINTER [esp+buffer], eax %%.CHECKBUF15_END: %endmacro %macro EMIT_BITS 1 PUT_BITS %1 CHECKBUF15 %endmacro %macro kloop_prepare 37 ;(ko, jno0, ..., jno31, xmm0, xmm1, xmm2, xmm3) pxor xmm4, xmm4 ; __m128i neg = _mm_setzero_si128(); pxor xmm5, xmm5 ; __m128i neg = _mm_setzero_si128(); pxor xmm6, xmm6 ; __m128i neg = _mm_setzero_si128(); pxor xmm7, xmm7 ; __m128i neg = _mm_setzero_si128(); pinsrw %34, word [esi + %2 * SIZEOF_WORD], 0 ; xmm_shadow[0] = block[jno0]; pinsrw %35, word [esi + %10 * SIZEOF_WORD], 0 ; xmm_shadow[8] = block[jno8]; pinsrw %36, word [esi + %18 * SIZEOF_WORD], 0 ; xmm_shadow[16] = block[jno16]; pinsrw %37, word [esi + %26 * SIZEOF_WORD], 0 ; xmm_shadow[24] = block[jno24]; pinsrw %34, word [esi + %3 * SIZEOF_WORD], 1 ; xmm_shadow[1] = block[jno1]; pinsrw %35, word [esi + %11 * SIZEOF_WORD], 1 ; xmm_shadow[9] = block[jno9]; pinsrw %36, word [esi + %19 * SIZEOF_WORD], 1 ; xmm_shadow[17] = block[jno17]; pinsrw %37, word [esi + %27 * SIZEOF_WORD], 1 ; xmm_shadow[25] = block[jno25]; pinsrw %34, word [esi + %4 * SIZEOF_WORD], 2 ; xmm_shadow[2] = block[jno2]; pinsrw %35, word [esi + %12 * SIZEOF_WORD], 2 ; xmm_shadow[10] = block[jno10]; pinsrw %36, word [esi + %20 * SIZEOF_WORD], 2 ; xmm_shadow[18] = block[jno18]; pinsrw %37, word [esi + %28 * SIZEOF_WORD], 2 ; xmm_shadow[26] = block[jno26]; pinsrw %34, word [esi + %5 * SIZEOF_WORD], 3 ; xmm_shadow[3] = block[jno3]; pinsrw %35, word [esi + %13 * SIZEOF_WORD], 3 ; xmm_shadow[11] = block[jno11]; pinsrw %36, word [esi + %21 * SIZEOF_WORD], 3 ; xmm_shadow[19] = block[jno19]; pinsrw %37, word [esi + %29 * SIZEOF_WORD], 3 ; xmm_shadow[27] = block[jno27]; pinsrw %34, word [esi + %6 * SIZEOF_WORD], 4 ; xmm_shadow[4] = block[jno4]; pinsrw %35, word [esi + %14 * SIZEOF_WORD], 4 ; xmm_shadow[12] = block[jno12]; pinsrw %36, word [esi + %22 * SIZEOF_WORD], 4 ; xmm_shadow[20] = block[jno20]; pinsrw %37, word [esi + %30 * SIZEOF_WORD], 4 ; xmm_shadow[28] = block[jno28]; pinsrw %34, word [esi + %7 * SIZEOF_WORD], 5 ; xmm_shadow[5] = block[jno5]; pinsrw %35, word [esi + %15 * SIZEOF_WORD], 5 ; xmm_shadow[13] = block[jno13]; pinsrw %36, word [esi + %23 * SIZEOF_WORD], 5 ; xmm_shadow[21] = block[jno21]; pinsrw %37, word [esi + %31 * SIZEOF_WORD], 5 ; xmm_shadow[29] = block[jno29]; pinsrw %34, word [esi + %8 * SIZEOF_WORD], 6 ; xmm_shadow[6] = block[jno6]; pinsrw %35, word [esi + %16 * SIZEOF_WORD], 6 ; xmm_shadow[14] = block[jno14]; pinsrw %36, word [esi + %24 * SIZEOF_WORD], 6 ; xmm_shadow[22] = block[jno22]; pinsrw %37, word [esi + %32 * SIZEOF_WORD], 6 ; xmm_shadow[30] = block[jno30]; pinsrw %34, word [esi + %9 * SIZEOF_WORD], 7 ; xmm_shadow[7] = block[jno7]; pinsrw %35, word [esi + %17 * SIZEOF_WORD], 7 ; xmm_shadow[15] = block[jno15]; pinsrw %36, word [esi + %25 * SIZEOF_WORD], 7 ; xmm_shadow[23] = block[jno23]; %if %1 != 32 pinsrw %37, word [esi + %33 * SIZEOF_WORD], 7 ; xmm_shadow[31] = block[jno31]; %else pinsrw %37, ecx, 7 ; xmm_shadow[31] = block[jno31]; %endif pcmpgtw xmm4, %34 ; neg = _mm_cmpgt_epi16(neg, x1); pcmpgtw xmm5, %35 ; neg = _mm_cmpgt_epi16(neg, x1); pcmpgtw xmm6, %36 ; neg = _mm_cmpgt_epi16(neg, x1); pcmpgtw xmm7, %37 ; neg = _mm_cmpgt_epi16(neg, x1); paddw %34, xmm4 ; x1 = _mm_add_epi16(x1, neg); paddw %35, xmm5 ; x1 = _mm_add_epi16(x1, neg); paddw %36, xmm6 ; x1 = _mm_add_epi16(x1, neg); paddw %37, xmm7 ; x1 = _mm_add_epi16(x1, neg); pxor %34, xmm4 ; x1 = _mm_xor_si128(x1, neg); pxor %35, xmm5 ; x1 = _mm_xor_si128(x1, neg); pxor %36, xmm6 ; x1 = _mm_xor_si128(x1, neg); pxor %37, xmm7 ; x1 = _mm_xor_si128(x1, neg); pxor xmm4, %34 ; neg = _mm_xor_si128(neg, x1); pxor xmm5, %35 ; neg = _mm_xor_si128(neg, x1); pxor xmm6, %36 ; neg = _mm_xor_si128(neg, x1); pxor xmm7, %37 ; neg = _mm_xor_si128(neg, x1); movdqa XMMWORD [esp + t1 + %1 * SIZEOF_WORD], %34 ; _mm_storeu_si128((__m128i *)(t1 + ko), x1); movdqa XMMWORD [esp + t1 + (%1 + 8) * SIZEOF_WORD], %35 ; _mm_storeu_si128((__m128i *)(t1 + ko + 8), x1); movdqa XMMWORD [esp + t1 + (%1 + 16) * SIZEOF_WORD], %36 ; _mm_storeu_si128((__m128i *)(t1 + ko + 16), x1); movdqa XMMWORD [esp + t1 + (%1 + 24) * SIZEOF_WORD], %37 ; _mm_storeu_si128((__m128i *)(t1 + ko + 24), x1); movdqa XMMWORD [esp + t2 + %1 * SIZEOF_WORD], xmm4 ; _mm_storeu_si128((__m128i *)(t2 + ko), neg); movdqa XMMWORD [esp + t2 + (%1 + 8) * SIZEOF_WORD], xmm5 ; _mm_storeu_si128((__m128i *)(t2 + ko + 8), neg); movdqa XMMWORD [esp + t2 + (%1 + 16) * SIZEOF_WORD], xmm6 ; _mm_storeu_si128((__m128i *)(t2 + ko + 16), neg); movdqa XMMWORD [esp + t2 + (%1 + 24) * SIZEOF_WORD], xmm7 ; _mm_storeu_si128((__m128i *)(t2 + ko + 24), neg); %endmacro ; ; Encode a single block's worth of coefficients. ; ; GLOBAL(JOCTET*) ; jsimd_huff_encode_one_block_sse2 (working_state *state, JOCTET *buffer, ; JCOEFPTR block, int last_dc_val, ; c_derived_tbl *dctbl, c_derived_tbl *actbl) ; ; eax + 8 = working_state *state ; eax + 12 = JOCTET *buffer ; eax + 16 = JCOEFPTR block ; eax + 20 = int last_dc_val ; eax + 24 = c_derived_tbl *dctbl ; eax + 28 = c_derived_tbl *actbl %define pad 6*SIZEOF_DWORD ; Align to 16 bytes %define t1 pad %define t2 t1+(DCTSIZE2*SIZEOF_WORD) %define block t2+(DCTSIZE2*SIZEOF_WORD) %define actbl block+SIZEOF_DWORD %define buffer actbl+SIZEOF_DWORD %define temp buffer+SIZEOF_DWORD %define temp2 temp+SIZEOF_DWORD %define temp3 temp2+SIZEOF_DWORD %define temp4 temp3+SIZEOF_DWORD %define temp5 temp4+SIZEOF_DWORD %define gotptr temp5+SIZEOF_DWORD ; void *gotptr %define put_buffer ebx %define put_bits edi align 16 global EXTN(jsimd_huff_encode_one_block_sse2) EXTN(jsimd_huff_encode_one_block_sse2): push ebp mov eax,esp ; eax = original ebp sub esp, byte 4 and esp, byte (-SIZEOF_XMMWORD) ; align to 128 bits mov [esp],eax mov ebp,esp ; ebp = aligned ebp sub esp, temp5+9*SIZEOF_DWORD-pad push ebx push ecx ; push edx ; need not be preserved push esi push edi push ebp mov esi, POINTER [eax+8] ; (working_state *state) mov put_buffer, DWORD [esi+8] ; put_buffer = state->cur.put_buffer; mov put_bits, DWORD [esi+12] ; put_bits = state->cur.put_bits; push esi ; esi is now scratch get_GOT edx ; get GOT address movpic POINTER [esp+gotptr], edx ; save GOT address mov ecx, POINTER [eax+28] mov edx, POINTER [eax+16] mov esi, POINTER [eax+12] mov POINTER [esp+actbl], ecx mov POINTER [esp+block], edx mov POINTER [esp+buffer], esi ; Encode the DC coefficient difference per section F.1.2.1 mov esi, POINTER [esp+block] ; block movsx ecx, word [esi] ; temp = temp2 = block[0] - last_dc_val; sub ecx, DWORD [eax+20] mov esi, ecx ; This is a well-known technique for obtaining the absolute value ; without a branch. It is derived from an assembly language technique ; presented in "How to Optimize for the Pentium Processors", ; Copyright (c) 1996, 1997 by Agner Fog. mov edx, ecx sar edx, 31 ; temp3 = temp >> (CHAR_BIT * sizeof(int) - 1); xor ecx, edx ; temp ^= temp3; sub ecx, edx ; temp -= temp3; ; For a negative input, want temp2 = bitwise complement of abs(input) ; This code assumes we are on a two's complement machine add esi, edx ; temp2 += temp3; mov DWORD [esp+temp], esi ; backup temp2 in temp ; Find the number of bits needed for the magnitude of the coefficient movpic ebp, POINTER [esp+gotptr] ; load GOT address (ebp) movzx edx, byte [GOTOFF(ebp, jpeg_nbits_table + ecx)] ; nbits = JPEG_NBITS(temp); mov DWORD [esp+temp2], edx ; backup nbits in temp2 ; Emit the Huffman-coded symbol for the number of bits mov ebp, POINTER [eax+24] ; After this point, arguments are not accessible anymore mov eax, INT [ebp + edx * 4] ; code = dctbl->ehufco[nbits]; movzx ecx, byte [ebp + edx + 1024] ; size = dctbl->ehufsi[nbits]; EMIT_BITS eax ; EMIT_BITS(code, size) mov ecx, DWORD [esp+temp2] ; restore nbits ; Mask off any extra bits in code mov eax, 1 shl eax, cl dec eax and eax, DWORD [esp+temp] ; temp2 &= (((JLONG) 1)<<nbits) - 1; ; Emit that number of bits of the value, if positive, ; or the complement of its magnitude, if negative. EMIT_BITS eax ; EMIT_BITS(temp2, nbits) ; Prepare data xor ecx, ecx mov esi, POINTER [esp+block] kloop_prepare 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, \ 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, \ 27, 20, 13, 6, 7, 14, 21, 28, 35, \ xmm0, xmm1, xmm2, xmm3 kloop_prepare 32, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, \ 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, \ 53, 60, 61, 54, 47, 55, 62, 63, 63, \ xmm0, xmm1, xmm2, xmm3 pxor xmm7, xmm7 movdqa xmm0, XMMWORD [esp + t1 + 0 * SIZEOF_WORD] ; __m128i tmp0 = _mm_loadu_si128((__m128i *)(t1 + 0)); movdqa xmm1, XMMWORD [esp + t1 + 8 * SIZEOF_WORD] ; __m128i tmp1 = _mm_loadu_si128((__m128i *)(t1 + 8)); movdqa xmm2, XMMWORD [esp + t1 + 16 * SIZEOF_WORD] ; __m128i tmp2 = _mm_loadu_si128((__m128i *)(t1 + 16)); movdqa xmm3, XMMWORD [esp + t1 + 24 * SIZEOF_WORD] ; __m128i tmp3 = _mm_loadu_si128((__m128i *)(t1 + 24)); pcmpeqw xmm0, xmm7 ; tmp0 = _mm_cmpeq_epi16(tmp0, zero); pcmpeqw xmm1, xmm7 ; tmp1 = _mm_cmpeq_epi16(tmp1, zero); pcmpeqw xmm2, xmm7 ; tmp2 = _mm_cmpeq_epi16(tmp2, zero); pcmpeqw xmm3, xmm7 ; tmp3 = _mm_cmpeq_epi16(tmp3, zero); packsswb xmm0, xmm1 ; tmp0 = _mm_packs_epi16(tmp0, tmp1); packsswb xmm2, xmm3 ; tmp2 = _mm_packs_epi16(tmp2, tmp3); pmovmskb edx, xmm0 ; index = ((uint64_t)_mm_movemask_epi8(tmp0)) << 0; pmovmskb ecx, xmm2 ; index = ((uint64_t)_mm_movemask_epi8(tmp2)) << 16; shl ecx, 16 or edx, ecx not edx ; index = ~index; lea esi, [esp+t1] mov ebp, POINTER [esp+actbl] ; ebp = actbl .BLOOP: bsf ecx, edx ; r = __builtin_ctzl(index); jz .ELOOP lea esi, [esi+ecx*2] ; k += r; shr edx, cl ; index >>= r; mov DWORD [esp+temp3], edx .BRLOOP: cmp ecx, 16 ; while (r > 15) { jl .ERLOOP sub ecx, 16 ; r -= 16; mov DWORD [esp+temp], ecx mov eax, INT [ebp + 240 * 4] ; code_0xf0 = actbl->ehufco[0xf0]; movzx ecx, byte [ebp + 1024 + 240] ; size_0xf0 = actbl->ehufsi[0xf0]; EMIT_BITS eax ; EMIT_BITS(code_0xf0, size_0xf0) mov ecx, DWORD [esp+temp] jmp .BRLOOP .ERLOOP: movsx eax, word [esi] ; temp = t1[k]; movpic edx, POINTER [esp+gotptr] ; load GOT address (edx) movzx eax, byte [GOTOFF(edx, jpeg_nbits_table + eax)] ; nbits = JPEG_NBITS(temp); mov DWORD [esp+temp2], eax ; Emit Huffman symbol for run length / number of bits shl ecx, 4 ; temp3 = (r << 4) + nbits; add ecx, eax mov eax, INT [ebp + ecx * 4] ; code = actbl->ehufco[temp3]; movzx ecx, byte [ebp + ecx + 1024] ; size = actbl->ehufsi[temp3]; EMIT_BITS eax movsx edx, word [esi+DCTSIZE2*2] ; temp2 = t2[k]; ; Mask off any extra bits in code mov ecx, DWORD [esp+temp2] mov eax, 1 shl eax, cl dec eax and eax, edx ; temp2 &= (((JLONG) 1)<<nbits) - 1; EMIT_BITS eax ; PUT_BITS(temp2, nbits) mov edx, DWORD [esp+temp3] add esi, 2 ; ++k; shr edx, 1 ; index >>= 1; jmp .BLOOP .ELOOP: movdqa xmm0, XMMWORD [esp + t1 + 32 * SIZEOF_WORD] ; __m128i tmp0 = _mm_loadu_si128((__m128i *)(t1 + 0)); movdqa xmm1, XMMWORD [esp + t1 + 40 * SIZEOF_WORD] ; __m128i tmp1 = _mm_loadu_si128((__m128i *)(t1 + 8)); movdqa xmm2, XMMWORD [esp + t1 + 48 * SIZEOF_WORD] ; __m128i tmp2 = _mm_loadu_si128((__m128i *)(t1 + 16)); movdqa xmm3, XMMWORD [esp + t1 + 56 * SIZEOF_WORD] ; __m128i tmp3 = _mm_loadu_si128((__m128i *)(t1 + 24)); pcmpeqw xmm0, xmm7 ; tmp0 = _mm_cmpeq_epi16(tmp0, zero); pcmpeqw xmm1, xmm7 ; tmp1 = _mm_cmpeq_epi16(tmp1, zero); pcmpeqw xmm2, xmm7 ; tmp2 = _mm_cmpeq_epi16(tmp2, zero); pcmpeqw xmm3, xmm7 ; tmp3 = _mm_cmpeq_epi16(tmp3, zero); packsswb xmm0, xmm1 ; tmp0 = _mm_packs_epi16(tmp0, tmp1); packsswb xmm2, xmm3 ; tmp2 = _mm_packs_epi16(tmp2, tmp3); pmovmskb edx, xmm0 ; index = ((uint64_t)_mm_movemask_epi8(tmp0)) << 0; pmovmskb ecx, xmm2 ; index = ((uint64_t)_mm_movemask_epi8(tmp2)) << 16; shl ecx, 16 or edx, ecx not edx ; index = ~index; lea eax, [esp + t1 + (DCTSIZE2/2) * 2] sub eax, esi shr eax, 1 bsf ecx, edx ; r = __builtin_ctzl(index); jz .ELOOP2 shr edx, cl ; index >>= r; add ecx, eax lea esi, [esi+ecx*2] ; k += r; mov DWORD [esp+temp3], edx jmp .BRLOOP2 .BLOOP2: bsf ecx, edx ; r = __builtin_ctzl(index); jz .ELOOP2 lea esi, [esi+ecx*2] ; k += r; shr edx, cl ; index >>= r; mov DWORD [esp+temp3], edx .BRLOOP2: cmp ecx, 16 ; while (r > 15) { jl .ERLOOP2 sub ecx, 16 ; r -= 16; mov DWORD [esp+temp], ecx mov eax, INT [ebp + 240 * 4] ; code_0xf0 = actbl->ehufco[0xf0]; movzx ecx, byte [ebp + 1024 + 240] ; size_0xf0 = actbl->ehufsi[0xf0]; EMIT_BITS eax ; EMIT_BITS(code_0xf0, size_0xf0) mov ecx, DWORD [esp+temp] jmp .BRLOOP2 .ERLOOP2: movsx eax, word [esi] ; temp = t1[k]; bsr eax, eax ; nbits = 32 - __builtin_clz(temp); inc eax mov DWORD [esp+temp2], eax ; Emit Huffman symbol for run length / number of bits shl ecx, 4 ; temp3 = (r << 4) + nbits; add ecx, eax mov eax, INT [ebp + ecx * 4] ; code = actbl->ehufco[temp3]; movzx ecx, byte [ebp + ecx + 1024] ; size = actbl->ehufsi[temp3]; EMIT_BITS eax movsx edx, word [esi+DCTSIZE2*2] ; temp2 = t2[k]; ; Mask off any extra bits in code mov ecx, DWORD [esp+temp2] mov eax, 1 shl eax, cl dec eax and eax, edx ; temp2 &= (((JLONG) 1)<<nbits) - 1; EMIT_BITS eax ; PUT_BITS(temp2, nbits) mov edx, DWORD [esp+temp3] add esi, 2 ; ++k; shr edx, 1 ; index >>= 1; jmp .BLOOP2 .ELOOP2: ; If the last coef(s) were zero, emit an end-of-block code lea edx, [esp + t1 + (DCTSIZE2-1) * 2] ; r = DCTSIZE2-1-k; cmp edx, esi ; if (r > 0) { je .EFN mov eax, INT [ebp] ; code = actbl->ehufco[0]; movzx ecx, byte [ebp + 1024] ; size = actbl->ehufsi[0]; EMIT_BITS eax .EFN: mov eax, [esp+buffer] pop esi ; Save put_buffer & put_bits mov DWORD [esi+8], put_buffer ; state->cur.put_buffer = put_buffer; mov DWORD [esi+12], put_bits ; state->cur.put_bits = put_bits; pop ebp pop edi pop esi ; pop edx ; need not be preserved pop ecx pop ebx mov esp,ebp ; esp <- aligned ebp pop esp ; esp <- original ebp pop ebp ret ; For some reason, the OS X linker does not honor the request to align the ; segment unless we do this. align 16
44.03271
115
0.573597
385c78ef2b85a1e2624850c89c6da0169d4144f9
544
asm
Assembly
programs/oeis/182/A182627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/182/A182627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/182/A182627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A182627: Total number of digits in binary expansion of all divisors of n. ; 1,3,3,6,4,8,4,10,7,10,5,15,5,10,10,15,6,17,6,18,11,12,6,24,9,12,12,18,6,24,6,21,13,14,13,30,7,14,13,28,7,26,7,21,20,14,7,35,10,21,14,21,7,28,14,28,14,14,7,42,7,14,21,28,15,30,8,24,15,30,8,46,8,16,22,24,15,30,8,40,19,16,8,45,16,16,15,32,8,46,15,24,15,16,16,48,8,23,24,36 add $0,1 mov $2,$0 lpb $0 mov $3,$2 mov $4,$0 cmp $4,1 add $0,$4 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 lpb $3 add $1,1 div $3,2 lpe lpe add $1,1 mov $0,$1
23.652174
271
0.584559
b5471db71ad6ce43795a7035bb44339150b12189
1,911
asm
Assembly
libsrc/_DEVELOPMENT/temp/sp1/zx/sprites/draw/SP1_DRAW_LOAD2LBIM.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/temp/sp1/zx/sprites/draw/SP1_DRAW_LOAD2LBIM.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/temp/sp1/zx/sprites/draw/SP1_DRAW_LOAD2LBIM.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; DRAW LOAD SPRITE 2 BYTE DEFINITION ROTATED, LEFT BORDER WITH IMPLIED MASK ; 04.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version INCLUDE "clib_target_cfg.asm" SECTION code_clib SECTION code_temp_sp1 PUBLIC _SP1_DRAW_LOAD2LBIM EXTERN _SP1_DRAW_LOAD2NR EXTERN SP1RETSPRDRAW ; following data segment copied into struct sp1_cs ld hl,0 nop ld de,0 call _SP1_DRAW_LOAD2LBIM ; following draw code called by way of SP1UpdateNow ; ; a = hor rot table ; bc = graphic disp ; hl = graphic def ptr (mask,graph) pairs ; de = left graphic def ptr ; ; 58 + 8*60 - 6 + 10 = 542 cycles _SP1_DRAW_LOAD2LBIM: cp SP1V_ROTTBL/256 jp z, _SP1_DRAW_LOAD2NR add hl,bc ex de,hl ld h,a ld l,$ff ld a,(hl) cpl ld c,a ; h = shift table ; c = constant mask ; de = sprite def (graph only) _SP1Load1LBIMRotate: ; 0 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+0) and c or (hl) ld (SP1V_PIXELBUFFER+0),a ; 1 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+1) and c or (hl) ld (SP1V_PIXELBUFFER+1),a ; 2 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+2) and c or (hl) ld (SP1V_PIXELBUFFER+2),a ; 3 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+3) and c or (hl) ld (SP1V_PIXELBUFFER+3),a ; 4 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+4) and c or (hl) ld (SP1V_PIXELBUFFER+4),a ; 5 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+5) and c or (hl) ld (SP1V_PIXELBUFFER+5),a ; 6 inc de ld a,(de) inc de ld l,a ld a,(SP1V_PIXELBUFFER+6) and c or (hl) ld (SP1V_PIXELBUFFER+6),a ; 7 inc de ld a,(de) ld l,a ld a,(SP1V_PIXELBUFFER+7) and c or (hl) ld (SP1V_PIXELBUFFER+7),a jp SP1RETSPRDRAW
13.748201
75
0.604396
351732405e6bd4a9bb6fdf2cbab260ee17944f4e
635
asm
Assembly
ffight/lcs/weapon/40.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
ffight/lcs/weapon/40.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
ffight/lcs/weapon/40.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 0039FE movem.l D0-D3, -(A6) 003A02 movem.l D0-D3, -(A6) 009ACA dbra D5, $9ac8 009C8E move.b #$ff, ($40,A0) [1p+4C] 009C94 move.w A6, ($4c,A0) [weapon+40] 0354DC move.b #$ff, ($40,A4) [enemy+4C] 0354E2 move.w A6, ($4c,A4) [weapon+40] 03D15C move.w A6, ($4c,A4) [weapon+40] 057B72 clr.b ($40,A6) 057B76 move.l #$2040000, ($2,A6) 057DB0 clr.b ($40,A6) 057DB4 clr.b ($2f,A6) 058DDC clr.b ($40,A6) 058DE0 move.b #$2, ($3,A6) 059658 clr.b ($40,A6) 05965C move.l #$2000000, ($2,A6) copyright zengfr site:http://github.com/zengfr/romhack
30.238095
54
0.612598
0cc9c259a55a71e2f24ab6d0840566fb21e89e28
298
asm
Assembly
pwnlib/shellcraft/templates/thumb/android/signal.asm
zaratec/pwntools
8793decd1c9b8c822e3db6c27b9cbf6e8cddfeba
[ "MIT" ]
5
2018-05-15T13:00:56.000Z
2020-02-09T14:29:00.000Z
pwnlib/shellcraft/templates/thumb/android/signal.asm
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/thumb/android/signal.asm
FDlucifer/binjitsu
999ad632004bfc3e623eead20eb11de98fc1f4dd
[ "MIT" ]
6
2017-09-07T02:31:11.000Z
2021-07-05T16:59:18.000Z
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="sig, handler"/> <%docstring> Invokes the syscall signal. See 'man 2 signal' for more information. Arguments: sig(int): sig handler(sighandler_t): handler </%docstring> ${syscall('SYS_signal', sig, handler)}
19.866667
69
0.691275
aa2a627ccbb016ca59003bc05f25c4c58b598bf5
50,106
asm
Assembly
audio/cries.asm
chaos-lord/CryEd
d67380ad026ac324290a6c31e20f79c06b8f82a6
[ "MIT" ]
1
2021-03-29T14:15:38.000Z
2021-03-29T14:15:38.000Z
audio/cries.asm
chaos-lord/CryEd
d67380ad026ac324290a6c31e20f79c06b8f82a6
[ "MIT" ]
4
2021-03-28T17:20:09.000Z
2021-04-27T22:20:31.000Z
audio/cries.asm
chaos-lord/CryEd
d67380ad026ac324290a6c31e20f79c06b8f82a6
[ "MIT" ]
4
2021-03-30T21:58:20.000Z
2022-03-07T06:08:29.000Z
Cry_Marill: channel_count 3 channel 5, Cry_Marill_Ch5 channel 6, Cry_Marill_Ch6 channel 8, Cry_Marill_Ch8 Cry_Togepi: channel_count 2 channel 5, Cry_Togepi_Ch5 channel 6, Cry_Togepi_Ch6 Cry_Togetic: channel_count 2 channel 5, Cry_Togetic_Ch5 channel 6, Cry_Togetic_Ch6 Cry_Spinarak: channel_count 3 channel 5, Cry_Spinarak_Ch5 channel 6, Cry_Spinarak_Ch6 channel 8, Cry_Spinarak_Ch8 Cry_Raikou: channel_count 3 channel 5, Cry_Raikou_Ch5 channel 6, Cry_Raikou_Ch6 channel 8, Cry_Raikou_Ch8 Cry_Hoothoot: channel_count 3 channel 5, Cry_Hoothoot_Ch5 channel 6, Cry_Hoothoot_Ch6 channel 8, Cry_Hoothoot_Ch8 Cry_Sentret: channel_count 2 channel 5, Cry_Sentret_Ch5 channel 6, Cry_Sentret_Ch6 Cry_Slowking: channel_count 3 channel 5, Cry_Slowking_Ch5 channel 6, Cry_Slowking_Ch6 channel 8, Cry_Slowking_Ch8 Cry_Mareep: channel_count 2 channel 5, Cry_Mareep_Ch5 channel 6, Cry_Mareep_Ch6 Cry_Cyndaquil: channel_count 3 channel 5, Cry_Cyndaquil_Ch5 channel 6, Cry_Cyndaquil_Ch6 channel 8, Cry_Cyndaquil_Ch8 Cry_Chikorita: channel_count 3 channel 5, Cry_Chikorita_Ch5 channel 6, Cry_Chikorita_Ch6 channel 8, Cry_Chikorita_Ch8 Cry_Gligar: channel_count 2 channel 5, Cry_Gligar_Ch5 channel 8, Cry_Gligar_Ch8 Cry_Girafarig: channel_count 3 channel 5, Cry_Girafarig_Ch5 channel 6, Cry_Girafarig_Ch6 channel 8, Cry_Girafarig_Ch8 Cry_Slugma: channel_count 2 channel 5, Cry_Slugma_Ch5 channel 8, Cry_Slugma_Ch8 Cry_Ledyba: channel_count 3 channel 5, Cry_Ledyba_Ch5 channel 6, Cry_Ledyba_Ch6 channel 8, Cry_Ledyba_Ch8 Cry_Wooper: channel_count 3 channel 5, Cry_Wooper_Ch5 channel 6, Cry_Wooper_Ch6 channel 8, Cry_Wooper_Ch8 Cry_Donphan: channel_count 3 channel 5, Cry_Donphan_Ch5 channel 6, Cry_Donphan_Ch6 channel 8, Cry_Donphan_Ch8 Cry_Typhlosion: channel_count 3 channel 5, Cry_Typhlosion_Ch5 channel 6, Cry_Typhlosion_Ch6 channel 8, Cry_Typhlosion_Ch8 Cry_Natu: channel_count 3 channel 5, Cry_Natu_Ch5 channel 6, Cry_Natu_Ch6 channel 8, Cry_Natu_Ch8 Cry_Teddiursa: channel_count 3 channel 5, Cry_Teddiursa_Ch5 channel 6, Cry_Teddiursa_Ch6 channel 8, Cry_Teddiursa_Ch8 Cry_Sunflora: channel_count 3 channel 5, Cry_Sunflora_Ch5 channel 6, Cry_Sunflora_Ch6 channel 8, Cry_Sunflora_Ch8 Cry_Ampharos: channel_count 3 channel 5, Cry_Ampharos_Ch5 channel 6, Cry_Ampharos_Ch6 channel 8, Cry_Ampharos_Ch8 Cry_Totodile: channel_count 3 channel 5, Cry_Totodile_Ch5 channel 6, Cry_Totodile_Ch6 channel 8, Cry_Totodile_Ch8 Cry_Cleffa: channel_count 3 channel 5, Cry_Cleffa_Ch5 channel 6, Cry_Cleffa_Ch6 channel 8, Cry_Cleffa_Ch8 Cry_Pichu: channel_count 3 channel 5, Cry_Pichu_Ch5 channel 6, Cry_Pichu_Ch6 channel 8, Cry_Pichu_Ch8 Cry_Aipom: channel_count 3 channel 5, Cry_Aipom_Ch5 channel 6, Cry_Aipom_Ch6 channel 8, Cry_Aipom_Ch8 Cry_Dunsparce: channel_count 3 channel 5, Cry_Dunsparce_Ch5 channel 6, Cry_Dunsparce_Ch6 channel 8, Cry_Dunsparce_Ch8 Cry_Magcargo: channel_count 3 channel 5, Cry_Magcargo_Ch5 channel 6, Cry_Magcargo_Ch6 channel 8, Cry_Magcargo_Ch8 Cry_Entei: channel_count 3 channel 5, Cry_Entei_Ch5 channel 6, Cry_Entei_Ch6 channel 8, Cry_Entei_Ch8 Cry_Mantine: channel_count 3 channel 5, Cry_Mantine_Ch5 channel 6, Cry_Mantine_Ch6 channel 8, Cry_Mantine_Ch8 Cry_Entei_Ch5: pitch_sweep 15, -7 duty_cycle_pattern 1, 2, 0, 3 square_note 1, 15, 8, 1528 square_note 8, 9, -7, 1240 square_note 6, 15, 8, 1476 square_note 20, 15, 2, 1396 pitch_sweep 8, 8 sound_ret Cry_Entei_Ch6: duty_cycle_pattern 0, 3, 0, 3 square_note 1, 12, 8, 1600 square_note 6, 15, -7, 1640 square_note 7, 10, 8, 1332 square_note 20, 10, 2, 1188 sound_ret Cry_Entei_Ch8: noise_note 10, 13, 6, 106 noise_note 6, 11, -4, 108 noise_note 6, 14, 2, 92 noise_note 32, 11, 4, 108 sound_ret Cry_Magcargo_Ch5: duty_cycle_pattern 3, 0, 1, 0 square_note 4, 10, -7, 1824 square_note 2, 15, 8, 1820 square_note 2, 15, 8, 1816 square_note 2, 15, 8, 1800 square_note 2, 15, 8, 1806 square_note 12, 12, 8, 1810 square_note 4, 9, 1, 1806 sound_ret Cry_Magcargo_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 1, 11, 8, 1808 square_note 3, 13, 8, 1836 square_note 4, 13, 8, 1637 square_note 1, 11, 8, 1622 square_note 1, 13, 8, 1628 square_note 12, 15, 8, 1888 square_note 4, 12, 1, 1872 sound_ret Cry_Magcargo_Ch8: noise_note 2, 14, 8, 59 .loop: noise_note 1, 15, 1, 78 sound_loop 5, .loop noise_note 2, 13, 8, 63 noise_note 20, 12, 2, 95 sound_ret Cry_Dunsparce_Ch5: duty_cycle_pattern 0, 2, 0, 2 square_note 1, 15, 8, 1456 square_note 1, 15, 8, 1204 square_note 1, 15, 8, 1464 square_note 3, 15, 8, 1472 square_note 8, 12, 8, 1168 square_note 8, 12, 8, 1152 pitch_sweep 15, -6 square_note 16, 12, 3, 1168 pitch_sweep 8, 8 sound_ret Cry_Dunsparce_Ch6: duty_cycle_pattern 0, 2, 0, 2 square_note 8, 11, 8, 1224 square_note 32, 11, 5, 1040 sound_ret Cry_Dunsparce_Ch8: noise_note 3, 15, -7, 75 noise_note 3, 14, -7, 76 noise_note 32, 11, 5, 95 sound_ret Cry_Slowking_Ch5: duty_cycle_pattern 0, 3, 0, 3 square_note 2, 15, 1, 1360 square_note 2, 15, 1, 1328 square_note 2, 15, 1, 1296 square_note 2, 15, 2, 1616 square_note 2, 15, 2, 1600 square_note 2, 15, 2, 1584 square_note 16, 15, 2, 1360 sound_ret Cry_Slowking_Ch6: duty_cycle_pattern 3, 3, 0, 2 square_note 4, 14, 1, 1568 square_note 5, 14, 2, 1280 square_note 6, 14, 1, 1568 square_note 2, 14, 1, 1312 square_note 16, 14, 2, 1280 sound_ret Cry_Slowking_Ch8: noise_note 2, 8, -2, 93 noise_note 2, 9, -2, 76 noise_note 5, 9, -2, 93 noise_note 2, 9, -2, 77 noise_note 2, 9, -2, 75 noise_note 2, 9, -2, 77 noise_note 2, 9, -2, 95 noise_note 16, 11, 2, 111 sound_ret Cry_Pichu_Ch5: duty_cycle 0 pitch_sweep 15, 7 square_note 2, 15, 8, 1933 square_note 2, 15, 8, 1937 pitch_sweep 15, -7 square_note 2, 15, 8, 1965 pitch_sweep 8, 8 square_note 2, 15, 8, 1972 pitch_sweep 15, 7 square_note 2, 15, 8, 1976 pitch_sweep 8, 8 sound_ret Cry_Pichu_Ch6: duty_cycle_pattern 0, 1, 0, 0 square_note 2, 12, 8, 1901 square_note 2, 12, 8, 1905 square_note 2, 12, 8, 1933 square_note 2, 12, 8, 1940 square_note 2, 12, 8, 1944 sound_ret Cry_Pichu_Ch8: noise_note 2, 11, 8, 1 noise_note 2, 11, 8, 25 noise_note 2, 12, 8, 24 noise_note 2, 11, 8, 16 noise_note 8, 12, 2, 24 sound_ret Cry_Marill_Ch5: duty_cycle_pattern 0, 2, 0, 2 square_note 2, 8, 8, 1752 square_note 8, 14, 2, 1760 square_note 2, 6, 1, 1765 square_note 2, 14, 8, 1728 square_note 2, 14, 8, 1720 square_note 2, 13, 8, 1712 square_note 8, 12, 1, 1706 sound_ret Cry_Marill_Ch6: duty_cycle_pattern 1, 2, 0, 3 square_note 2, 6, 8, 1713 square_note 5, 12, 1, 1721 square_note 5, 9, -1, 1888 square_note 2, 11, 8, 1676 square_note 2, 10, 8, 1668 square_note 10, 9, 2, 1659 sound_ret Cry_Marill_Ch8: noise_note 1, 9, -1, 108 noise_note 1, 9, 2, 92 noise_note 10, 6, 2, 76 noise_note 2, 6, 8, 106 noise_note 2, 6, 8, 107 noise_note 10, 6, 2, 108 sound_ret Cry_Togepi_Ch5: pitch_offset 2 Cry_Togepi_Ch6: duty_cycle_pattern 1, 1, 0, 2 square_note 4, 15, 1, 1942 square_note 4, 15, 1, 1837 square_note 7, 0, 0, 0 square_note 16, 15, 1, 1959 sound_ret Cry_Togetic_Ch5: pitch_offset 2 Cry_Togetic_Ch6: sound_call Cry_Togepi_Ch6 sound_loop 2, Cry_Togetic_Ch6 square_note 14, 0, 0, 0 square_note 8, 15, 2, 1986 sound_ret Cry_Spinarak_Ch5: duty_cycle 1 square_note 3, 2, -4, 1988 square_note 1, 0, 0, 1 square_note 5, 5, -1, 1977 square_note 6, 11, 4, 1979 sound_ret Cry_Spinarak_Ch6: duty_cycle_pattern 0, 2, 2, 2 square_note 3, 2, -4, 1991 square_note 1, 0, 0, 0 square_note 5, 5, -1, 1982 square_note 6, 11, 4, 1981 sound_ret Cry_Spinarak_Ch8: noise_note 3, 9, 2, 16 noise_note 1, 3, -1, 0 noise_note 5, 6, -1, 16 noise_note 6, 9, 3, 0 sound_ret Cry_Raikou_Ch5: duty_cycle_pattern 3, 3, 2, 0 square_note 2, 15, 1, 1200 square_note 2, 15, 7, 1424 square_note 8, 15, 8, 1296 square_note 3, 15, 2, 1728 square_note 3, 15, 8, 1722 square_note 3, 15, 2, 1712 square_note 16, 15, 2, 1680 sound_ret Cry_Raikou_Ch6: duty_cycle_pattern 3, 3, 0, 2 square_note 2, 15, 1, 1824 square_note 2, 14, 1, 1616 square_note 4, 15, 1, 1872 square_note 4, 13, 1, 928 square_note 3, 15, 1, 1648 square_note 3, 14, 1, 1664 square_note 3, 15, 2, 1680 square_note 16, 14, 2, 1696 sound_ret Cry_Raikou_Ch8: noise_note 2, 8, -1, 46 noise_note 2, 9, -1, 31 noise_note 4, 8, -1, 78 noise_note 4, 8, -1, 123 noise_note 3, 13, 8, 75 noise_note 3, 14, 7, 76 noise_note 3, 14, -4, 77 noise_note 16, 13, 2, 79 sound_ret Cry_Hoothoot_Ch5: duty_cycle_pattern 1, 2, 1, 2 square_note 4, 7, 8, 1616 square_note 4, 15, 8, 1632 square_note 4, 15, 8, 1628 square_note 1, 15, 8, 1660 square_note 4, 15, 8, 1664 square_note 4, 15, 8, 1660 square_note 4, 15, 8, 1656 square_note 4, 15, 1, 1652 sound_ret Cry_Hoothoot_Ch6: duty_cycle_pattern 0, 2, 0, 2 .loop1: square_note 2, 10, 1, 1536 sound_loop 3, .loop1 .loop2: square_note 2, 10, 1, 1584 sound_loop 4, .loop2 square_note 4, 10, 2, 1588 square_note 4, 9, 1, 1592 sound_ret Cry_Hoothoot_Ch8: noise_note 1, 6, 8, 54 noise_note 16, 8, 8, 106 noise_note 1, 9, 8, 94 noise_note 16, 10, 7, 110 sound_ret Cry_Sentret_Ch5: pitch_offset 32 duty_cycle 0 sound_jump Cry_Sentret_Ch6.body Cry_Sentret_Ch6: duty_cycle_pattern 0, 1, 2, 3 .body: square_note 8, 3, -1, 1837 square_note 8, 15, 1, 1824 sound_ret Cry_Sentret_Ch8: ; unreferenced noise_note 8, 3, -3, 0 noise_note 8, 9, 2, 0 sound_ret Cry_Mareep_Ch5: pitch_offset 32 duty_cycle 0 sound_jump Cry_Mareep_Ch6.body Cry_Mareep_Ch6: duty_cycle_pattern 0, 0, 0, 1 .body: square_note 4, 3, -2, 1853 square_note 6, 15, 8, 1890 square_note 6, 15, 8, 1888 square_note 6, 15, 1, 1886 sound_ret Cry_Cyndaquil_Ch5: pitch_offset 32 Cry_Cyndaquil_Ch6: duty_cycle 2 square_note 8, 2, -7, 263 .loop1: square_note 0, 14, 1, 1155 square_note 0, 5, 1, 1102 sound_loop 4, .loop1 .loop2: square_note 0, 14, 1, 986 square_note 1, 5, 1, 786 sound_loop 4, .loop2 sound_ret Cry_Gligar_Ch8: Cry_Cyndaquil_Ch8: noise_note 8, 3, -7, 82 noise_note 32, 9, 3, 79 sound_ret Cry_Chikorita_Ch5: pitch_offset 32 Cry_Chikorita_Ch6: duty_cycle_pattern 0, 2, 0, 1 square_note 2, 12, 8, 1601 square_note 2, 4, 8, 1601 square_note 6, 15, 8, 1936 square_note 4, 15, 8, 1934 square_note 4, 15, 1, 1931 sound_ret Cry_Chikorita_Ch8: noise_note 4, 9, 1, 16 noise_note 8, 9, 4, 3 sound_ret Cry_Gligar_Ch5: duty_cycle_pattern 2, 2, 0, 2 sound_jump Cry_Mareep_Ch6.body Cry_Girafarig_Ch5: duty_cycle 1 pitch_offset 4 sound_jump Cry_Girafarig_Ch6.body Cry_Girafarig_Ch6: duty_cycle_pattern 1, 0, 0, 1 .body: square_note 4, 6, 8, 1880 square_note 2, 14, 8, 1888 square_note 2, 14, 8, 1895 square_note 2, 14, 8, 1900 square_note 7, 15, 1, 1895 sound_ret Cry_Girafarig_Ch8: noise_note 4, 2, -1, 0 noise_note 2, 3, -1, 1 noise_note 2, 4, -1, 2 noise_note 2, 5, -1, 1 noise_note 7, 4, 1, 0 sound_ret Cry_Slugma_Ch5: duty_cycle_pattern 2, 1, 0, 1 square_note 12, 15, 2, 1958 square_note 4, 15, 8, 1968 square_note 4, 14, 8, 944 square_note 6, 15, 8, 928 square_note 8, 14, 1, 656 sound_ret Cry_Slugma_Ch8: noise_note 12, 11, 2, 80 noise_note 8, 10, 8, 96 noise_note 6, 10, 8, 91 noise_note 8, 10, 1, 92 sound_ret Cry_Ledyba_Ch5: pitch_offset 2 duty_cycle 2 sound_jump Cry_Ledyba_Ch6.body Cry_Ledyba_Ch6: duty_cycle_pattern 0, 0, 0, 1 .body: square_note 3, 15, 8, 1937 square_note 3, 13, 8, 1933 square_note 2, 0, 0, 0 square_note 1, 7, 8, 1729 square_note 1, 15, 8, 1857 square_note 4, 14, 1, 1873 sound_ret Cry_Ledyba_Ch8: noise_note 3, 5, -1, 33 noise_note 3, 8, 1, 0 noise_note 2, 2, 0, 0 noise_note 1, 8, 0, 33 noise_note 1, 8, 0, 16 noise_note 4, 8, 7, 0 sound_ret Cry_Wooper_Ch5: Cry_Donphan_Ch5: duty_cycle 2 square_note 2, 9, -1, 1816 square_note 4, 10, -3, 1826 square_note 8, 10, -3, 1844 square_note 4, 13, 6, 1814 square_note 8, 13, 1, 1810 square_note 8, 0, 0, 0 sound_ret Cry_Wooper_Ch6: Cry_Donphan_Ch6: duty_cycle_pattern 0, 0, 1, 3 square_note 2, 11, -1, 1848 square_note 4, 12, -3, 1858 square_note 8, 12, -3, 1876 square_note 4, 15, 6, 1846 square_note 8, 15, 1, 1842 square_note 8, 0, 0, 0 sound_ret Cry_Wooper_Ch8: noise_note 2, 5, -3, 4 noise_note 4, 6, 8, 19 noise_note 8, 6, 8, 32 noise_note 4, 6, 8, 19 noise_note 16, 5, 1, 4 sound_ret Cry_Donphan_Ch8: noise_note 2, 8, -3, 89 noise_note 4, 10, 8, 106 noise_note 8, 10, 8, 112 noise_note 4, 10, 8, 105 noise_note 16, 9, 2, 108 sound_ret Cry_Teddiursa_Ch5: Cry_Typhlosion_Ch5: duty_cycle_pattern 0, 1, 0, 2 .loop1: square_note 3, 12, 1, 1937 sound_loop 3, .loop1 .loop2: square_note 3, 13, 1, 1201 sound_loop 6, .loop2 .loop3: square_note 1, 13, 1, 1169 square_note 1, 11, 1, 1105 sound_loop 6, .loop3 .loop4: square_note 1, 10, 3, 1137 square_note 1, 8, 1, 1089 sound_loop 6, .loop4 .loop5: square_note 1, 4, 1, 1057 square_note 1, 2, 1, 1025 sound_loop 4, .loop5 sound_ret Cry_Teddiursa_Ch6: Cry_Typhlosion_Ch6: duty_cycle_pattern 1, 3, 2, 0 square_note 8, 9, -1, 1856 square_note 8, 7, -1, 1862 square_note 16, 15, 6, 1933 square_note 8, 15, 8, 1937 square_note 8, 15, 8, 1933 square_note 8, 15, 8, 1927 square_note 24, 14, 2, 1923 sound_ret Cry_Typhlosion_Ch8: noise_note 16, 10, 6, 22 noise_note 24, 9, 8, 61 noise_note 32, 9, 8, 92 noise_note 32, 7, 5, 95 sound_ret Cry_Natu_Ch5: duty_cycle_pattern 3, 1, 3, 2 .body1: square_note 4, 15, 8, 1969 square_note 4, 15, 8, 1968 square_note 4, 4, 8, 1967 .body2: square_note 4, 15, 8, 1970 square_note 4, 15, 8, 1971 square_note 4, 4, 8, 1972 sound_ret Cry_Natu_Ch6: Cry_Sunflora_Ch6: .body1: duty_cycle_pattern 3, 3, 0, 2 square_note 4, 15, 8, 1970 square_note 4, 15, 8, 1969 square_note 4, 2, 8, 1968 .body2: square_note 4, 15, 8, 1972 square_note 4, 15, 8, 1974 square_note 4, 4, 8, 1976 sound_ret Cry_Natu_Ch8: Cry_Sunflora_Ch8: .body1: noise_note 4, 8, 8, 5 noise_note 4, 8, 8, 4 noise_note 4, 3, 8, 3 .body2: noise_note 4, 8, 8, 5 noise_note 4, 8, 8, 4 noise_note 4, 8, 7, 4 sound_ret Cry_Teddiursa_Ch8: noise_note 8, 10, 6, 58 noise_note 8, 10, 1, 90 sound_ret Cry_Sunflora_Ch5: duty_cycle 0 sound_jump Cry_Natu_Ch5.body1 Cry_Mantine_Ch5: duty_cycle 0 sound_call Cry_Natu_Ch5.body1 sound_call Cry_Natu_Ch5.body2 sound_ret Cry_Mantine_Ch6: sound_call Cry_Sunflora_Ch6.body1 sound_call Cry_Sunflora_Ch6.body2 sound_ret Cry_Mantine_Ch8: sound_call Cry_Sunflora_Ch8.body1 sound_call Cry_Sunflora_Ch8.body2 sound_ret Cry_Ampharos_Ch5: duty_cycle_pattern 3, 1, 3, 2 .loop: square_note 1, 12, 1, 1312 square_note 1, 10, 1, 1056 sound_loop 4, .loop duty_cycle 0 square_note 4, 7, 8, 1888 square_note 4, 7, 8, 1840 square_note 24, 12, 2, 1056 sound_ret Cry_Ampharos_Ch6: duty_cycle_pattern 0, 3, 0, 2 square_note 8, 15, 8, 1792 square_note 7, 15, 8, 1824 square_note 4, 15, 8, 1936 square_note 4, 15, 8, 1888 square_note 24, 15, 2, 1840 sound_ret Cry_Ampharos_Ch8: noise_note 4, 8, 8, 109 noise_note 4, 13, 8, 104 noise_note 7, 12, 8, 105 noise_note 4, 9, 8, 58 noise_note 4, 9, 8, 60 noise_note 24, 13, 2, 91 sound_ret Cry_Totodile_Ch5: duty_cycle_pattern 0, 3, 0, 2 square_note 8, 15, 8, 816 square_note 8, 15, 8, 832 square_note 8, 12, 8, 1970 square_note 8, 11, 8, 1971 square_note 32, 11, 2, 1972 sound_ret Cry_Totodile_Ch6: duty_cycle_pattern 0, 1, 0, 2 square_note 8, 14, 8, 800 square_note 8, 14, 8, 808 square_note 8, 9, 8, 1920 square_note 8, 8, 8, 1922 square_note 32, 7, 2, 1924 sound_ret Cry_Totodile_Ch8: noise_note 2, 11, -6, 73 noise_note 5, 11, -6, 58 noise_note 2, 11, -6, 41 noise_note 40, 13, 3, 110 sound_ret Cry_Cleffa_Ch5: duty_cycle_pattern 0, 3, 2, 1 pitch_sweep 15, -7 square_note 2, 15, 8, 1824 square_note 2, 15, 8, 1831 square_note 2, 15, 8, 1920 pitch_sweep 8, 8 square_note 2, 15, 8, 1913 square_note 4, 15, 8, 1856 square_note 4, 15, 8, 1852 pitch_sweep 15, -7 square_note 8, 15, 1, 1847 pitch_sweep 8, 8 sound_ret Cry_Cleffa_Ch6: duty_cycle_pattern 0, 2, 0, 2 square_note 6, 11, 2, 1822 square_note 5, 9, 2, 1913 square_note 4, 8, 2, 1854 square_note 8, 10, 1, 1845 sound_ret Cry_Cleffa_Ch8: noise_note 2, 6, 4, 127 noise_note 2, 8, 4, 125 noise_note 2, 10, 4, 111 noise_note 2, 6, 4, 108 noise_note 2, 9, 4, 111 noise_note 2, 6, 1, 107 sound_ret Cry_Aipom_Ch5: duty_cycle_pattern 3, 1, 0, 2 square_note 3, 15, 8, 1712 square_note 1, 15, 8, 1701 square_note 1, 15, 8, 1693 square_note 7, 15, 1, 1674 square_note 3, 15, 8, 1846 square_note 3, 15, 8, 1824 square_note 20, 15, 2, 1806 sound_ret Cry_Aipom_Ch6: duty_cycle_pattern 0, 2, 1, 3 .loop1: square_note 1, 15, 1, 1972 sound_loop 8, .loop1 .loop2: square_note 1, 12, 1, 1936 sound_loop 3, .loop2 .loop3: square_note 1, 11, 1, 1933 sound_loop 2, .loop3 square_note 16, 9, 2, 1941 sound_ret Cry_Aipom_Ch8: noise_note 0, 15, 1, 40 sound_loop 4, Cry_Aipom_Ch8 noise_note 0, 9, 1, 73 noise_note 1, 10, 8, 74 noise_note 0, 14, 1, 75 noise_note 5, 13, 2, 79 noise_note 3, 12, 2, 78 noise_note 3, 11, 2, 77 noise_note 20, 10, 3, 76 sound_ret Cry_Nidoran_M: channel_count 3 channel 5, Cry_Nidoran_M_Ch5 channel 6, Cry_Nidoran_M_Ch6 channel 8, Cry_Nidoran_M_Ch8 Cry_Nidoran_F: channel_count 3 channel 5, Cry_Nidoran_F_Ch5 channel 6, Cry_Nidoran_F_Ch6 channel 8, Cry_Nidoran_F_Ch8 Cry_Slowpoke: channel_count 3 channel 5, Cry_Slowpoke_Ch5 channel 6, Cry_Slowpoke_Ch6 channel 8, Cry_Slowpoke_Ch8 Cry_Kangaskhan: channel_count 3 channel 5, Cry_Kangaskhan_Ch5 channel 6, Cry_Kangaskhan_Ch6 channel 8, Cry_Kangaskhan_Ch8 Cry_Charmander: channel_count 3 channel 5, Cry_Charmander_Ch5 channel 6, Cry_Charmander_Ch6 channel 8, Cry_Charmander_Ch8 Cry_Grimer: channel_count 3 channel 5, Cry_Grimer_Ch5 channel 6, Cry_Grimer_Ch6 channel 8, Cry_Grimer_Ch8 Cry_Voltorb: channel_count 3 channel 5, Cry_Voltorb_Ch5 channel 6, Cry_Voltorb_Ch6 channel 8, Cry_Voltorb_Ch8 Cry_Muk: channel_count 3 channel 5, Cry_Muk_Ch5 channel 6, Cry_Muk_Ch6 channel 8, Cry_Muk_Ch8 Cry_Oddish: channel_count 3 channel 5, Cry_Oddish_Ch5 channel 6, Cry_Oddish_Ch6 channel 8, Cry_Oddish_Ch8 Cry_Raichu: channel_count 3 channel 5, Cry_Raichu_Ch5 channel 6, Cry_Raichu_Ch6 channel 8, Cry_Raichu_Ch8 Cry_Nidoqueen: channel_count 3 channel 5, Cry_Nidoqueen_Ch5 channel 6, Cry_Nidoqueen_Ch6 channel 8, Cry_Nidoqueen_Ch8 Cry_Diglett: channel_count 3 channel 5, Cry_Diglett_Ch5 channel 6, Cry_Diglett_Ch6 channel 8, Cry_Diglett_Ch8 Cry_Seel: channel_count 3 channel 5, Cry_Seel_Ch5 channel 6, Cry_Seel_Ch6 channel 8, Cry_Seel_Ch8 Cry_Drowzee: channel_count 3 channel 5, Cry_Drowzee_Ch5 channel 6, Cry_Drowzee_Ch6 channel 8, Cry_Drowzee_Ch8 Cry_Pidgey: channel_count 3 channel 5, Cry_Pidgey_Ch5 channel 6, Cry_Pidgey_Ch6 channel 8, Cry_Pidgey_Ch8 Cry_Bulbasaur: channel_count 3 channel 5, Cry_Bulbasaur_Ch5 channel 6, Cry_Bulbasaur_Ch6 channel 8, Cry_Bulbasaur_Ch8 Cry_Spearow: channel_count 3 channel 5, Cry_Spearow_Ch5 channel 6, Cry_Spearow_Ch6 channel 8, Cry_Spearow_Ch8 Cry_Rhydon: channel_count 3 channel 5, Cry_Rhydon_Ch5 channel 6, Cry_Rhydon_Ch6 channel 8, Cry_Rhydon_Ch8 Cry_Golem: channel_count 3 channel 5, Cry_Golem_Ch5 channel 6, Cry_Golem_Ch6 channel 8, Cry_Golem_Ch8 Cry_Blastoise: channel_count 3 channel 5, Cry_Blastoise_Ch5 channel 6, Cry_Blastoise_Ch6 channel 8, Cry_Blastoise_Ch8 Cry_Pidgeotto: channel_count 3 channel 5, Cry_Pidgeotto_Ch5 channel 6, Cry_Pidgeotto_Ch6 channel 8, Cry_Pidgeotto_Ch8 Cry_Weedle: channel_count 3 channel 5, Cry_Weedle_Ch5 channel 6, Cry_Weedle_Ch6 channel 8, Cry_Weedle_Ch8 Cry_Caterpie: channel_count 3 channel 5, Cry_Caterpie_Ch5 channel 6, Cry_Caterpie_Ch6 channel 8, Cry_Caterpie_Ch8 Cry_Ekans: channel_count 3 channel 5, Cry_Ekans_Ch5 channel 6, Cry_Ekans_Ch6 channel 8, Cry_Ekans_Ch8 Cry_Fearow: channel_count 3 channel 5, Cry_Fearow_Ch5 channel 6, Cry_Fearow_Ch6 channel 8, Cry_Fearow_Ch8 Cry_Clefairy: channel_count 3 channel 5, Cry_Clefairy_Ch5 channel 6, Cry_Clefairy_Ch6 channel 8, Cry_Clefairy_Ch8 Cry_Venonat: channel_count 3 channel 5, Cry_Venonat_Ch5 channel 6, Cry_Venonat_Ch6 channel 8, Cry_Venonat_Ch8 Cry_Lapras: channel_count 3 channel 5, Cry_Lapras_Ch5 channel 6, Cry_Lapras_Ch6 channel 8, Cry_Lapras_Ch8 Cry_Metapod: channel_count 3 channel 5, Cry_Metapod_Ch5 channel 6, Cry_Metapod_Ch6 channel 8, Cry_Metapod_Ch8 Cry_Squirtle: channel_count 3 channel 5, Cry_Squirtle_Ch5 channel 6, Cry_Squirtle_Ch6 channel 8, Cry_Squirtle_Ch8 Cry_Paras: channel_count 3 channel 5, Cry_Paras_Ch5 channel 6, Cry_Paras_Ch6 channel 8, Cry_Paras_Ch8 Cry_Growlithe: channel_count 3 channel 5, Cry_Growlithe_Ch5 channel 6, Cry_Growlithe_Ch6 channel 8, Cry_Growlithe_Ch8 Cry_Krabby: channel_count 3 channel 5, Cry_Krabby_Ch5 channel 6, Cry_Krabby_Ch6 channel 8, Cry_Krabby_Ch8 Cry_Psyduck: channel_count 3 channel 5, Cry_Psyduck_Ch5 channel 6, Cry_Psyduck_Ch6 channel 8, Cry_Psyduck_Ch8 Cry_Rattata: channel_count 3 channel 5, Cry_Rattata_Ch5 channel 6, Cry_Rattata_Ch6 channel 8, Cry_Rattata_Ch8 Cry_Vileplume: channel_count 3 channel 5, Cry_Vileplume_Ch5 channel 6, Cry_Vileplume_Ch6 channel 8, Cry_Vileplume_Ch8 Cry_Vulpix: channel_count 3 channel 5, Cry_Vulpix_Ch5 channel 6, Cry_Vulpix_Ch6 channel 8, Cry_Vulpix_Ch8 Cry_Weepinbell: channel_count 3 channel 5, Cry_Weepinbell_Ch5 channel 6, Cry_Weepinbell_Ch6 channel 8, Cry_Weepinbell_Ch8 Cry_Unused_Ch5: ; unreferenced duty_cycle_pattern 3, 3, 0, 0 square_note 15, 14, 0, 1920 square_note 15, 15, 0, 1924 square_note 15, 12, 3, 1504 square_note 15, 12, 4, 1536 square_note 10, 6, -4, 1920 square_note 8, 7, 1, 1924 sound_ret Cry_Unused_Ch6: ; unreferenced duty_cycle_pattern 0, 0, 1, 1 square_note 15, 10, 0, 1857 square_note 15, 11, 0, 1859 square_note 15, 9, 3, 1457 square_note 15, 9, 4, 1473 square_note 10, 4, -4, 1857 square_note 8, 3, 1, 1862 sound_ret Cry_Unused_Ch8: ; unreferenced noise_note 2, 15, 2, 76 noise_note 6, 14, 0, 58 noise_note 15, 13, 0, 58 noise_note 8, 13, 0, 44 noise_note 6, 14, 6, 76 noise_note 12, 7, -5, 76 noise_note 15, 13, 3, 76 sound_ret Cry_Raichu_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 15, 15, 7, 1952 square_note 6, 14, 6, 1955 square_note 10, 15, 4, 1952 duty_cycle_pattern 2, 2, 1, 1 square_note 10, 15, 6, 2008 square_note 4, 14, 3, 2007 square_note 15, 15, 2, 2008 sound_ret Cry_Raichu_Ch6: duty_cycle_pattern 0, 0, 1, 1 square_note 2, 0, 8, 0 square_note 15, 10, 7, 1697 square_note 6, 8, 6, 1698 square_note 10, 7, 4, 1697 duty_cycle_pattern 1, 1, 3, 3 square_note 10, 7, 6, 1750 square_note 4, 8, 3, 1753 square_note 15, 10, 2, 1751 sound_ret Cry_Raichu_Ch8: noise_note 2, 15, 2, 60 noise_note 8, 14, 4, 62 noise_note 15, 13, 7, 60 noise_note 6, 12, 5, 59 noise_note 6, 14, 4, 61 noise_note 8, 11, 6, 60 noise_note 6, 13, 4, 61 noise_note 8, 12, 1, 59 sound_ret Cry_Vileplume_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 15, 15, 7, 1984 square_note 6, 14, 4, 1985 square_note 10, 15, 6, 1984 square_note 4, 13, 3, 1986 square_note 8, 12, 1, 1984 sound_ret Cry_Vileplume_Ch6: duty_cycle_pattern 1, 1, 3, 3 square_note 15, 9, 7, 1921 square_note 6, 8, 4, 1920 square_note 10, 9, 6, 1921 square_note 15, 8, 3, 1921 sound_ret Cry_Vileplume_Ch8: noise_note 3, 15, 2, 60 noise_note 13, 14, 6, 44 noise_note 15, 13, 7, 60 noise_note 8, 12, 1, 44 sound_ret Cry_Vulpix_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 15, 15, 7, 1664 square_note 10, 14, 6, 1668 square_note 15, 13, 7, 1680 square_note 8, 13, 5, 1680 square_note 6, 12, 4, 1672 square_note 5, 13, 3, 1648 square_note 4, 13, 3, 1632 square_note 8, 12, 1, 1600 sound_ret Cry_Vulpix_Ch6: duty_cycle_pattern 0, 0, 1, 1 square_note 15, 11, 7, 1601 square_note 10, 9, 6, 1602 square_note 15, 10, 7, 1617 square_note 8, 10, 5, 1617 square_note 6, 9, 4, 1607 square_note 5, 10, 3, 1585 square_note 4, 9, 3, 1570 square_note 8, 7, 1, 1537 sound_ret Cry_Vulpix_Ch8: noise_note 15, 14, 4, 60 noise_note 10, 12, 7, 76 noise_note 10, 12, 7, 60 noise_note 12, 11, 7, 76 noise_note 15, 10, 2, 92 sound_ret Cry_Rhydon_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 6, 15, 7, 1952 square_note 8, 14, 6, 1956 square_note 4, 13, 6, 1952 square_note 15, 13, 3, 1824 square_note 8, 12, 3, 1827 square_note 2, 12, 2, 1832 square_note 8, 11, 1, 1840 sound_ret Cry_Rhydon_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 4, 0, 8, 0 square_note 6, 10, 7, 1857 square_note 8, 8, 6, 1859 square_note 4, 7, 6, 1857 square_note 13, 8, 3, 1730 square_note 7, 7, 3, 1729 square_note 3, 8, 2, 1740 square_note 8, 7, 1, 1752 sound_ret Cry_Rhydon_Ch8: noise_note 2, 15, 2, 76 noise_note 6, 14, 6, 58 noise_note 4, 13, 7, 58 noise_note 6, 13, 6, 44 noise_note 8, 14, 5, 60 noise_note 12, 13, 2, 61 noise_note 8, 13, 1, 44 sound_ret Cry_Weepinbell_Ch5: duty_cycle_pattern 2, 2, 1, 1 square_note 6, 15, 4, 1856 square_note 15, 14, 3, 1840 square_note 4, 15, 4, 1856 square_note 5, 11, 3, 1864 square_note 8, 13, 1, 1872 sound_ret Cry_Weepinbell_Ch6: duty_cycle_pattern 1, 3, 1, 3 square_note 6, 12, 3, 1810 square_note 15, 11, 3, 1796 square_note 3, 12, 3, 1810 square_note 4, 12, 3, 1825 square_note 8, 11, 1, 1842 sound_ret Cry_Weepinbell_Ch8: noise_note 8, 13, 6, 44 noise_note 12, 12, 6, 60 noise_note 10, 11, 6, 44 noise_note 8, 9, 1, 28 sound_ret Cry_Kangaskhan_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 4, 15, 7, 1544 square_note 6, 14, 6, 1536 square_note 6, 13, 7, 1520 square_note 6, 12, 4, 1504 square_note 5, 13, 3, 1472 square_note 4, 13, 3, 1440 square_note 8, 14, 1, 1408 sound_ret Cry_Kangaskhan_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 4, 12, 7, 1284 square_note 6, 10, 6, 1282 square_note 6, 9, 7, 1265 square_note 4, 11, 4, 1249 square_note 5, 10, 3, 1218 square_note 4, 11, 3, 1187 square_note 8, 12, 1, 1154 sound_ret Cry_Kangaskhan_Ch8: noise_note 12, 14, 4, 76 noise_note 10, 12, 7, 92 noise_note 12, 11, 6, 76 noise_note 15, 10, 2, 92 sound_ret Cry_Bulbasaur_Ch5: duty_cycle_pattern 3, 3, 0, 1 square_note 4, 15, 7, 1984 square_note 12, 14, 6, 1986 square_note 6, 11, 5, 1664 square_note 4, 12, 4, 1648 square_note 4, 11, 5, 1632 square_note 8, 12, 1, 1600 sound_ret Cry_Bulbasaur_Ch6: duty_cycle_pattern 3, 0, 3, 0 square_note 3, 12, 7, 1921 square_note 12, 11, 6, 1920 square_note 6, 10, 5, 1601 square_note 4, 12, 4, 1586 square_note 6, 11, 5, 1569 square_note 8, 10, 1, 1538 sound_ret Cry_Bulbasaur_Ch8: noise_note 3, 14, 4, 60 noise_note 12, 13, 6, 44 noise_note 4, 14, 4, 60 noise_note 8, 11, 7, 92 noise_note 15, 12, 2, 93 sound_ret Cry_Spearow_Ch5: duty_cycle_pattern 3, 0, 2, 1 square_note 8, 15, 7, 1664 square_note 2, 15, 7, 1632 square_note 1, 14, 7, 1600 square_note 1, 14, 7, 1568 square_note 15, 13, 1, 1536 square_note 4, 12, 7, 1856 square_note 4, 10, 7, 1840 square_note 15, 9, 1, 1824 sound_ret Cry_Spearow_Ch6: duty_cycle_pattern 1, 3, 2, 1 square_note 10, 14, 7, 1666 square_note 2, 14, 7, 1634 square_note 1, 13, 7, 1602 square_note 1, 13, 7, 1570 square_note 15, 12, 1, 1538 square_note 4, 11, 7, 1858 square_note 2, 9, 7, 1842 square_note 15, 8, 1, 1826 sound_ret Cry_Spearow_Ch8: noise_note 4, 7, 4, 33 noise_note 4, 7, 4, 16 noise_note 4, 7, 1, 32 sound_ret Cry_Nidoran_M_Ch5: duty_cycle_pattern 3, 3, 1, 1 square_note 4, 15, 3, 1816 square_note 15, 14, 5, 1944 square_note 8, 9, 1, 1880 sound_ret Cry_Nidoran_M_Ch6: duty_cycle_pattern 2, 2, 0, 0 square_note 5, 11, 3, 1800 square_note 15, 12, 5, 1928 square_note 8, 7, 1, 1864 sound_ret Cry_Nidoran_M_Ch8: noise_note 3, 10, 1, 28 noise_note 14, 9, 4, 44 noise_note 8, 8, 1, 28 sound_ret Cry_Pidgey_Ch5: duty_cycle_pattern 2, 2, 1, 1 square_note 4, 14, 1, 1792 square_note 4, 15, 2, 1920 square_note 2, 9, 2, 1856 square_note 8, 14, 1, 1536 sound_ret Cry_Pidgey_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 4, 11, 1, 1761 square_note 3, 12, 2, 1761 square_note 3, 6, 2, 1665 square_note 8, 11, 1, 1505 sound_ret Cry_Pidgey_Ch8: noise_note 2, 6, 1, 50 noise_note 2, 6, 1, 33 noise_note 8, 6, 1, 17 sound_ret Cry_Voltorb_Ch5: duty_cycle_pattern 3, 3, 2, 2 square_note 6, 8, 3, 583 square_note 15, 6, 2, 550 square_note 4, 5, 2, 581 square_note 9, 6, 3, 518 square_note 15, 8, 2, 549 square_note 15, 4, 2, 519 Cry_Voltorb_Ch6: sound_ret Cry_Voltorb_Ch8: noise_note 8, 13, 4, 140 noise_note 4, 14, 2, 156 noise_note 15, 12, 6, 140 noise_note 8, 14, 4, 172 noise_note 15, 13, 7, 156 noise_note 15, 15, 2, 172 sound_ret Cry_Muk_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 4, 15, 3, 1760 square_note 15, 14, 4, 1600 square_note 8, 12, 1, 1568 sound_ret Cry_Muk_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 3, 12, 3, 1667 square_note 14, 11, 4, 1538 square_note 8, 10, 1, 1537 sound_ret Cry_Muk_Ch8: noise_note 4, 13, 3, 92 noise_note 15, 14, 6, 76 noise_note 8, 11, 1, 92 sound_ret Cry_Grimer_Ch5: duty_cycle_pattern 0, 0, 2, 2 square_note 6, 14, 2, 1280 square_note 6, 14, 3, 1408 square_note 6, 13, 3, 1392 square_note 8, 10, 1, 1376 sound_ret Cry_Grimer_Ch6: duty_cycle_pattern 3, 3, 1, 1 square_note 6, 14, 2, 1154 square_note 6, 13, 3, 1281 square_note 6, 11, 2, 1250 square_note 8, 8, 1, 1217 Cry_Grimer_Ch8: sound_ret Cry_Diglett_Ch5: duty_cycle_pattern 3, 0, 3, 0 square_note 4, 15, 1, 1792 square_note 4, 14, 1, 1920 square_note 4, 13, 1, 1856 square_note 4, 14, 1, 1856 square_note 4, 15, 1, 1920 square_note 4, 13, 1, 1792 square_note 4, 15, 1, 1793 square_note 4, 13, 1, 1922 square_note 4, 12, 1, 1858 square_note 8, 11, 1, 1857 sound_ret Cry_Diglett_Ch6: duty_cycle_pattern 1, 0, 1, 0 square_note 12, 0, 8, 0 square_note 4, 15, 1, 1793 square_note 4, 14, 1, 1922 square_note 4, 13, 1, 1857 square_note 4, 14, 1, 1857 square_note 4, 15, 1, 1922 square_note 8, 13, 1, 1793 sound_ret Cry_Diglett_Ch8: noise_note 15, 0, 8, 0 noise_note 4, 0, 8, 0 noise_note 4, 13, 1, 76 noise_note 4, 11, 1, 44 noise_note 4, 13, 1, 60 noise_note 4, 11, 1, 60 noise_note 4, 12, 1, 44 noise_note 8, 10, 1, 76 sound_ret Cry_Seel_Ch5: duty_cycle_pattern 3, 0, 3, 0 square_note 8, 15, 5, 1536 square_note 2, 13, 2, 1592 square_note 2, 12, 2, 1584 square_note 2, 12, 2, 1576 square_note 2, 11, 2, 1568 square_note 2, 11, 2, 1552 square_note 2, 10, 2, 1560 square_note 2, 11, 2, 1552 square_note 8, 12, 1, 1568 sound_ret Cry_Seel_Ch6: duty_cycle_pattern 1, 0, 1, 0 square_note 12, 12, 3, 1472 square_note 3, 11, 1, 1529 square_note 2, 10, 1, 1521 square_note 2, 10, 1, 1513 square_note 2, 9, 1, 1505 square_note 2, 9, 1, 1497 square_note 2, 8, 1, 1489 square_note 2, 9, 1, 1497 square_note 8, 9, 1, 1505 Cry_Seel_Ch8: sound_ret Cry_Slowpoke_Ch5: duty_cycle_pattern 0, 0, 0, 0 square_note 8, 15, 5, 1152 square_note 2, 14, 1, 1504 square_note 8, 13, 1, 1500 sound_ret Cry_Slowpoke_Ch6: duty_cycle_pattern 2, 2, 1, 1 square_note 7, 9, 5, 1089 square_note 2, 8, 1, 1313 square_note 8, 6, 1, 1306 Cry_Slowpoke_Ch8: sound_ret Cry_Drowzee_Ch5: duty_cycle_pattern 2, 0, 2, 0 square_note 5, 15, 2, 1616 square_note 9, 13, 1, 1632 square_note 5, 14, 2, 1554 square_note 9, 12, 1, 1570 square_note 5, 15, 2, 1552 square_note 6, 13, 1, 1568 sound_loop 2, Cry_Drowzee_Ch5 sound_ret Cry_Drowzee_Ch6: duty_cycle_pattern 1, 0, 0, 0 square_note 4, 0, 8, 0 square_note 5, 15, 2, 1617 square_note 9, 13, 1, 1633 square_note 5, 14, 2, 1556 square_note 8, 12, 1, 1572 square_note 5, 15, 2, 1553 square_note 12, 13, 1, 1569 square_note 5, 14, 2, 1556 square_note 8, 12, 1, 1572 square_note 5, 15, 2, 1553 square_note 4, 13, 1, 1569 sound_ret Cry_Drowzee_Ch8: noise_note 6, 13, 2, 28 noise_note 9, 11, 1, 44 noise_note 8, 12, 2, 44 noise_note 9, 11, 1, 60 noise_note 6, 12, 2, 44 noise_note 9, 10, 2, 60 noise_note 7, 12, 2, 44 noise_note 5, 10, 1, 60 noise_note 9, 12, 2, 44 noise_note 4, 10, 1, 60 sound_ret Cry_Nidoran_F_Ch5: duty_cycle_pattern 2, 2, 0, 0 square_note 4, 15, 3, 1536 square_note 8, 13, 5, 1888 square_note 3, 14, 2, 1824 square_note 8, 13, 1, 1808 sound_ret Cry_Nidoran_F_Ch6: duty_cycle_pattern 1, 1, 2, 2 square_note 5, 11, 3, 1777 square_note 7, 12, 5, 1874 square_note 3, 10, 2, 1809 square_note 8, 11, 1, 1537 sound_ret Cry_Nidoran_F_Ch8: noise_note 3, 10, 2, 60 noise_note 12, 9, 4, 44 noise_note 3, 8, 2, 28 noise_note 8, 7, 1, 44 sound_ret Cry_Nidoqueen_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 8, 15, 7, 1760 square_note 6, 14, 6, 1765 square_note 3, 15, 4, 1760 square_note 3, 15, 6, 1744 square_note 3, 14, 3, 1728 square_note 4, 15, 2, 1712 square_note 15, 10, 2, 1736 sound_ret Cry_Nidoqueen_Ch6: duty_cycle_pattern 0, 0, 1, 1 square_note 3, 0, 8, 0 square_note 8, 10, 7, 1697 square_note 6, 8, 6, 1699 square_note 3, 7, 4, 1697 square_note 3, 7, 6, 1681 square_note 3, 8, 3, 1666 square_note 4, 10, 2, 1649 square_note 15, 7, 2, 1673 sound_ret Cry_Nidoqueen_Ch8: noise_note 2, 15, 2, 60 noise_note 8, 14, 4, 62 noise_note 8, 13, 7, 60 noise_note 5, 12, 5, 59 noise_note 3, 13, 4, 44 noise_note 2, 11, 6, 60 noise_note 3, 10, 4, 44 noise_note 8, 9, 1, 60 sound_ret Cry_Oddish_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 15, 15, 6, 1381 square_note 10, 14, 4, 1404 square_note 3, 12, 2, 1372 square_note 15, 11, 2, 1340 sound_ret Cry_Oddish_Ch6: duty_cycle_pattern 1, 1, 2, 2 square_note 14, 13, 6, 1283 square_note 9, 11, 4, 1307 square_note 4, 9, 2, 1274 square_note 15, 10, 2, 1243 sound_ret Cry_Oddish_Ch8: noise_note 12, 14, 6, 76 noise_note 11, 13, 7, 92 noise_note 15, 12, 2, 76 sound_ret Cry_Charmander_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 4, 15, 7, 1696 square_note 8, 14, 6, 1700 square_note 4, 13, 6, 1696 square_note 12, 13, 3, 1568 square_note 8, 12, 3, 1572 square_note 4, 12, 2, 1568 square_note 8, 11, 1, 1552 sound_ret Cry_Charmander_Ch6: duty_cycle_pattern 1, 1, 2, 2 square_note 4, 14, 7, 1537 square_note 8, 13, 6, 1539 square_note 4, 12, 6, 1537 square_note 12, 12, 3, 1409 square_note 8, 11, 3, 1411 square_note 4, 11, 2, 1410 square_note 8, 10, 1, 1393 sound_ret Cry_Charmander_Ch8: noise_note 7, 13, 6, 92 noise_note 8, 14, 6, 76 noise_note 4, 13, 4, 92 noise_note 4, 13, 4, 76 noise_note 7, 12, 3, 76 noise_note 8, 10, 1, 92 sound_ret Cry_Clefairy_Ch5: duty_cycle_pattern 0, 1, 2, 3 square_note 7, 13, 2, 1856 square_note 15, 14, 5, 1888 square_note 24, 12, 1, 1840 sound_ret Cry_Clefairy_Ch6: duty_cycle_pattern 2, 0, 0, 1 square_note 2, 12, 2, 1793 square_note 4, 12, 2, 1800 square_note 15, 13, 7, 1857 square_note 24, 10, 2, 1793 Cry_Clefairy_Ch8: sound_ret Cry_Caterpie_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 15, 13, 7, 1920 square_note 4, 14, 6, 1952 square_note 15, 13, 2, 1856 sound_ret Cry_Caterpie_Ch6: duty_cycle_pattern 1, 1, 2, 2 square_note 15, 12, 7, 1875 square_note 5, 11, 6, 1906 square_note 15, 12, 2, 1809 sound_ret Cry_Caterpie_Ch8: noise_note 13, 15, 6, 76 noise_note 4, 14, 6, 60 noise_note 15, 15, 2, 76 sound_ret Cry_Lapras_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 6, 15, 7, 1728 square_note 15, 14, 7, 1792 square_note 4, 15, 4, 1776 square_note 4, 14, 4, 1760 square_note 8, 13, 1, 1744 sound_ret Cry_Lapras_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 7, 14, 6, 1665 square_note 14, 13, 5, 1729 square_note 4, 12, 4, 1713 square_note 4, 13, 4, 1697 square_note 8, 12, 1, 1681 sound_ret Cry_Lapras_Ch8: noise_note 10, 10, 6, 60 noise_note 14, 9, 4, 44 noise_note 5, 10, 3, 60 noise_note 8, 9, 1, 44 sound_ret Cry_Golem_Ch5: duty_cycle_pattern 2, 2, 1, 1 square_note 12, 15, 2, 1088 square_note 15, 14, 3, 1184 square_note 4, 13, 2, 1168 square_note 8, 13, 1, 1152 sound_ret Cry_Golem_Ch6: duty_cycle_pattern 3, 2, 3, 2 square_note 11, 13, 2, 1080 square_note 14, 12, 6, 1176 square_note 3, 11, 2, 1160 square_note 8, 11, 1, 1144 sound_ret Cry_Golem_Ch8: noise_note 10, 14, 6, 108 noise_note 15, 13, 2, 92 noise_note 3, 12, 2, 108 noise_note 8, 13, 1, 92 sound_ret Cry_Blastoise_Ch5: duty_cycle_pattern 0, 3, 0, 3 square_note 15, 15, 6, 1472 square_note 8, 14, 3, 1468 square_note 6, 13, 2, 1488 square_note 6, 11, 2, 1504 square_note 6, 12, 2, 1520 square_note 8, 11, 1, 1536 sound_ret Cry_Blastoise_Ch6: duty_cycle_pattern 2, 1, 2, 1 square_note 14, 12, 6, 1201 square_note 7, 12, 3, 1197 square_note 5, 11, 2, 1217 square_note 8, 9, 2, 1233 square_note 6, 10, 2, 1249 square_note 8, 9, 1, 1265 sound_ret Cry_Blastoise_Ch8: noise_note 10, 14, 6, 92 noise_note 10, 13, 6, 108 noise_note 4, 12, 2, 76 noise_note 6, 13, 3, 92 noise_note 8, 11, 3, 76 noise_note 8, 10, 1, 92 sound_ret Cry_Pidgeotto_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 8, 14, 4, 1936 square_note 15, 15, 5, 1984 square_note 8, 13, 1, 2008 sound_ret Cry_Pidgeotto_Ch6: duty_cycle_pattern 2, 2, 1, 1 square_note 10, 12, 4, 1905 square_note 15, 11, 6, 1954 square_note 8, 10, 1, 1975 sound_ret Cry_Pidgeotto_Ch8: noise_note 8, 14, 4, 76 noise_note 14, 12, 4, 60 noise_note 8, 13, 1, 44 sound_ret Cry_Paras_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 6, 15, 2, 1536 square_note 6, 14, 2, 1600 square_note 6, 13, 2, 1664 square_note 6, 14, 2, 1728 square_note 6, 13, 2, 1792 square_note 6, 12, 2, 1856 square_note 6, 11, 2, 1920 square_note 8, 10, 1, 1984 sound_ret Cry_Paras_Ch6: duty_cycle_pattern 0, 1, 0, 1 square_note 3, 0, 8, 1 square_note 6, 12, 2, 1473 square_note 6, 11, 2, 1538 square_note 6, 10, 2, 1601 square_note 6, 11, 2, 1666 square_note 6, 10, 2, 1730 square_note 6, 9, 2, 1793 square_note 6, 10, 2, 1858 square_note 8, 8, 1, 1921 sound_ret Cry_Paras_Ch8: noise_note 6, 0, 8, 1 noise_note 5, 14, 2, 92 noise_note 5, 12, 2, 76 noise_note 5, 13, 2, 60 noise_note 5, 11, 2, 44 noise_note 5, 12, 2, 28 noise_note 5, 10, 2, 27 noise_note 5, 9, 2, 26 noise_note 8, 8, 1, 24 sound_ret Cry_Weedle_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 4, 15, 3, 1920 square_note 15, 14, 7, 1792 square_note 8, 13, 3, 1808 square_note 4, 12, 2, 1792 square_note 4, 13, 2, 1776 square_note 8, 12, 1, 1760 sound_ret Cry_Weedle_Ch6: duty_cycle_pattern 1, 1, 2, 2 square_note 6, 12, 3, 1793 square_note 14, 11, 7, 1665 square_note 7, 11, 3, 1682 square_note 3, 10, 2, 1665 square_note 4, 11, 2, 1650 square_note 8, 10, 1, 1633 sound_ret Cry_Weedle_Ch8: noise_note 6, 14, 3, 92 noise_note 14, 13, 6, 76 noise_note 6, 12, 6, 60 noise_note 3, 11, 3, 76 noise_note 3, 10, 2, 92 noise_note 8, 11, 1, 108 sound_ret Cry_Ekans_Ch5: duty_cycle_pattern 0, 0, 3, 3 square_note 15, 15, 7, 1280 square_note 15, 14, 7, 1288 square_note 8, 11, 4, 1152 square_note 15, 10, 2, 1120 sound_ret Cry_Ekans_Ch6: duty_cycle_pattern 1, 0, 1, 0 square_note 14, 13, 7, 1153 square_note 14, 12, 7, 1161 square_note 10, 11, 4, 1025 square_note 15, 12, 2, 993 sound_ret Cry_Ekans_Ch8: noise_note 14, 15, 7, 124 noise_note 12, 15, 6, 108 noise_note 9, 14, 4, 124 noise_note 15, 14, 2, 108 sound_ret Cry_Metapod_Ch5: duty_cycle_pattern 3, 3, 1, 1 square_note 7, 13, 6, 2017 square_note 6, 12, 6, 2018 square_note 9, 13, 6, 2017 square_note 7, 12, 6, 2016 square_note 5, 11, 6, 2018 square_note 7, 12, 6, 2017 square_note 6, 11, 6, 2016 square_note 8, 10, 1, 2015 sound_ret Cry_Metapod_Ch6: duty_cycle_pattern 1, 0, 1, 0 square_note 6, 12, 3, 1993 square_note 6, 11, 3, 1991 square_note 10, 12, 4, 1987 square_note 8, 11, 4, 1991 square_note 6, 12, 3, 1993 square_note 15, 10, 2, 1989 sound_ret Cry_Metapod_Ch8: noise_note 13, 1, -1, 124 noise_note 13, 15, 7, 140 noise_note 12, 13, 6, 124 noise_note 8, 12, 4, 108 noise_note 15, 11, 3, 92 sound_ret Cry_Venonat_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 6, 15, 7, 1856 square_note 12, 14, 6, 1860 square_note 6, 13, 5, 1872 square_note 4, 12, 3, 1888 square_note 3, 12, 3, 1920 square_note 8, 13, 1, 1952 sound_ret Cry_Venonat_Ch6: duty_cycle_pattern 0, 0, 2, 2 square_note 6, 12, 7, 1793 square_note 11, 11, 6, 1794 square_note 6, 10, 5, 1809 square_note 4, 9, 3, 1825 square_note 3, 10, 3, 1857 square_note 8, 9, 1, 1890 sound_ret Cry_Venonat_Ch8: noise_note 3, 14, 2, 60 noise_note 8, 13, 6, 76 noise_note 5, 13, 4, 60 noise_note 12, 12, 7, 76 noise_note 2, 14, 2, 60 noise_note 8, 13, 1, 44 sound_ret Cry_Squirtle_Ch5: duty_cycle_pattern 3, 3, 1, 0 square_note 15, 15, 0, 1797 square_note 10, 14, 0, 1792 square_note 6, 11, 4, 1808 square_note 4, 13, 3, 1792 square_note 6, 11, 2, 1568 square_note 8, 10, 1, 1572 sound_ret Cry_Squirtle_Ch6: duty_cycle_pattern 0, 2, 0, 2 square_note 15, 11, 0, 1731 square_note 10, 10, 0, 1729 square_note 6, 8, 4, 1746 square_note 4, 9, 3, 1729 square_note 6, 8, 2, 1505 square_note 8, 6, 1, 1512 sound_ret Cry_Squirtle_Ch8: noise_note 6, 14, 6, 76 noise_note 15, 13, 6, 60 noise_note 10, 12, 5, 74 noise_note 1, 11, 2, 91 noise_note 15, 12, 2, 76 sound_ret Cry_Fearow_Ch5: duty_cycle_pattern 1, 1, 0, 0 square_note 10, 15, 5, 1664 square_note 3, 14, 2, 1696 square_note 3, 15, 2, 1728 square_note 3, 14, 2, 1760 square_note 3, 13, 2, 1792 square_note 3, 12, 2, 1760 square_note 3, 13, 2, 1728 square_note 8, 12, 1, 1696 sound_ret Cry_Fearow_Ch6: duty_cycle_pattern 0, 0, 3, 3 square_note 9, 13, 5, 1585 square_note 3, 13, 2, 1618 square_note 3, 14, 2, 1649 square_note 3, 11, 2, 1681 square_note 3, 12, 2, 1714 square_note 3, 11, 2, 1681 square_note 3, 12, 2, 1649 square_note 8, 11, 1, 1617 sound_ret Cry_Fearow_Ch8: noise_note 6, 14, 3, 76 noise_note 4, 12, 3, 60 noise_note 5, 13, 4, 60 noise_note 4, 12, 4, 44 noise_note 6, 11, 4, 60 noise_note 8, 12, 1, 44 sound_ret Cry_Growlithe_Ch5: duty_cycle_pattern 2, 2, 1, 1 square_note 3, 15, 4, 1601 square_note 13, 13, 6, 1825 square_note 8, 15, 4, 1817 square_note 8, 12, 1, 1818 sound_ret Cry_Growlithe_Ch6: duty_cycle_pattern 3, 0, 3, 0 square_note 4, 15, 4, 1408 square_note 14, 14, 6, 1760 square_note 8, 13, 5, 1752 square_note 8, 13, 1, 1756 sound_ret Cry_Growlithe_Ch8: noise_note 5, 12, 4, 70 noise_note 13, 10, 5, 68 noise_note 8, 12, 4, 69 noise_note 8, 11, 1, 68 sound_ret Cry_Krabby_Ch5: duty_cycle_pattern 3, 3, 0, 0 square_note 13, 15, 1, 1297 square_note 13, 14, 1, 1301 square_note 13, 14, 1, 1297 square_note 8, 13, 1, 1297 sound_ret Cry_Krabby_Ch6: duty_cycle_pattern 0, 1, 1, 1 square_note 12, 14, 1, 1292 square_note 12, 13, 1, 1296 square_note 14, 12, 1, 1292 square_note 8, 12, 1, 1290 sound_ret Cry_Krabby_Ch8: noise_note 14, 15, 2, 101 noise_note 13, 14, 2, 85 noise_note 14, 13, 2, 86 noise_note 8, 13, 1, 102 sound_ret Cry_Psyduck_Ch5: duty_cycle_pattern 0, 1, 2, 3 square_note 3, 15, 3, 1380 square_note 2, 14, 2, 1348 square_note 5, 13, 1, 1314 square_note 2, 11, 2, 1156 square_note 8, 13, 1, 1186 square_note 3, 15, 3, 1316 square_note 4, 14, 4, 1252 square_note 8, 13, 1, 1282 sound_ret Cry_Psyduck_Ch6: duty_cycle_pattern 3, 0, 3, 0 square_note 3, 13, 3, 1376 square_note 2, 12, 2, 1344 square_note 5, 12, 1, 1312 square_note 2, 9, 2, 1152 square_note 8, 12, 1, 1184 square_note 3, 13, 3, 1312 square_note 3, 12, 4, 1248 square_note 8, 12, 1, 1280 Cry_Psyduck_Ch8: sound_ret Cry_Rattata_Ch5: duty_cycle_pattern 0, 1, 0, 1 square_note 2, 3, -5, 897 square_note 7, 15, 5, 1537 square_note 1, 12, 2, 1153 square_note 8, 9, 1, 897 sound_ret Cry_Rattata_Ch6: duty_cycle_pattern 3, 2, 3, 2 square_note 2, 3, -6, 1456 square_note 7, 13, 5, 1885 square_note 1, 11, 2, 1712 square_note 8, 6, 1, 1456 sound_ret Cry_Rattata_Ch8: noise_note 2, 9, 2, 73 noise_note 7, 11, 5, 41 noise_note 1, 10, 2, 57 noise_note 8, 9, 1, 73 sound_ret Cry_Gastrodon: channel_count 3 channel 5, Cry_Gastrodon_Ch5 channel 6, Cry_Gastrodon_Ch6 channel 8, Cry_Gastrodon_Ch8 Cry_Gastrodon_Ch5: Cry_Gastrodon_branch: square_note 3, 15, 7, $0601 square_note 3, 15, 7, $0701 sound_loop 8, Cry_Gastrodon_branch sound_ret Cry_Gastrodon_Ch6: square_note 2, 15, 7, $ffff square_note 3, 15, 7, $0602 square_note 3, 15, 7, $0702 sound_loop 8, Cry_Gastrodon_branch Cry_Gastrodon_Ch8: Cry_Gastrodon_Ch8_branch: noise_note 2, 15, 8, $41 noise_note 3, 9, 12, $24 noise_note 1, 0, 0, $0 noise_note 4, 5, 9, $16 noise_note 3, 0, 0, $0 sound_loop 3, Cry_Gastrodon_Ch8_branch sound_ret Cry_Chatot: channel_count 3 channel 5, Cry_Chatot_Ch5 channel 6, Cry_Chatot_Ch6 channel 8, Cry_Chatot_Ch8 Cry_Chatot_Ch5: duty_cycle_pattern 0, 1 ,2 ,3 square_note 5, 13, 3, $0740 square_note 10, 12, 6, $0720 square_note 1, 0, 0, $0000 square_note 16, 14, 5, $0760 sound_ret Cry_Chatot_Ch6: sound_duty 1, 0, 0, 2 square_note 2, 12, 3, $0701 square_note 3, 12, 3, $0708 square_note 10, 10, 6, $06f1 square_note 1, 0, 0, $0000 square_note 16, 13, 7, $0741 Cry_Chatot_Ch8: sound_ret Cry_Amaura: channel_count 2 channel 5, Cry_Amaura_Ch5 channel 6, Cry_Amaura_Ch6 Cry_Amaura_Ch5: dutycycle 1 square_note 5, 6, 8, $075c square_note 3, 14, 8, $0764 square_note 3, 14, 8, $076b square_note 3, 14, 8, $0770 square_note 4, 15, 4, $076b square_note 5, 7, 9, $075d square_note 7, 14, 8, $0782 square_note 7, 14, 8, $0780 square_note 7, 15, 1, $077e sound_ret Cry_Amaura_Ch6: sound_duty 1, 0, 0, 1 square_note 5, 6, 8, $0758 square_note 3, 14, 8, $0760 square_note 3, 14, 8, $0767 square_note 3, 14, 8, $076c square_note 4, 15, 4, $0767 square_note 5, 7, 9, $0759 square_note 7, 14, 8, $077e square_note 7, 14, 8, $077c square_note 7, 15, 1, $077a sound_ret Cry_Buneary: channel_count 2 channel 5, Cry_Buneary_Ch5 channel 6, Cry_Buneary_Ch6 Cry_Buneary_Ch5: sound_duty 0, 0, 2, 2 .loop square_note 4, 15, 2, $0740 square_note 3, 12, 4, $073c square_note 2, 10, 4, $0737 square_note 2, 8, 4, $0732 square_note 2, 5, 4, $072d sound_loop 3, .loop sound_duty 0, 0, 1, 1 square_note 12, 13, 8, $0720 square_note 16, 13, 8, $0770 square_note 1, 14, 8, $0765 square_note 1, 14, 8, $075a square_note 16, 14, 5, $0750 sound_ret Cry_Buneary_Ch6: sound_duty 2, 2, 0, 0 .loop square_note 4, 15, 2, $0744 square_note 3, 12, 4, $0740 square_note 2, 10, 4, $073b square_note 2, 8, 4, $0736 square_note 2, 5, 4, $0731 sound_loop 3, .loop sound_duty 0, 0, 0, 0 square_note 12, 14, 8, $071c square_note 16, 14, 8, $076c square_note 1, 15, 8, $0763 square_note 1, 15, 8, $0759 square_note 16, 15, 5, $0750 sound_ret Cry_Crabrawler: channel_count 2 channel 5, Cry_Crabrawler_Ch5 channel 6, Cry_Crabrawler_Ch6 Cry_Crabrawler_Ch5: sound_duty 0, 0, 0, 0 square_note 2, 15, 1, $0798 square_note 8, 15, 4, $072f square_note 8, 0, 0, $0000 square_note 17, 15, 4, $07a9 sound_ret Cry_Crabrawler_Ch6: sound_duty 0, 0, 0, 0 square_note 2, 15, 1, $0796 square_note 8, 15, 4, $072d square_note 8, 0, 0, $0000 square_note 17, 15, 4, $07a7 sound_ret Cry_Goomy: channel_count 3 channel 5, Cry_Goomy_Ch5 channel 6, Cry_Goomy_Ch6 channel 8, Cry_Goomy_Ch8 Cry_Goomy_Ch5: sound_duty 3, 3, 0, 0 square_note 9, 15, 2, 1150 square_note 1, 0, 0, 1 square_note 9, 15, 2, 1300 square_note 1, 0, 0, 1 square_note 9, 15, 2, 1350 square_note 1, 0, 0, 1 sound_duty 3, 0, 3, 0 square_note 6, 8, 3, 1570 sound_ret Cry_Goomy_Ch6: sound_duty 1, 3, 0, 2 square_note 10, 5, 7, 1300 square_note 1, 0, 7, 300 square_note 10, 5, 7, 1500 square_note 1, 0, 7, 300 square_note 10, 5, 7, 1600 square_note 1, 0, 7, 300 square_note 16, 13, 5, 1646 square_note 1, 13, 5, 1646 sound_duty 3, 2, 0, 0 square_note 3, 7, 6, 1500 square_note 1, 0, 0, 1 square_note 3, 7, 6, 1400 square_note 1, 0, 0, 1 square_note 3, 7, 4, 1300 sound_ret Cry_Goomy_Ch8: noise_note 2, 0, 1, $00 Cry_Goomy_Ch8_branch: noise_note 4, 2, 3, $66 noise_note 6, 0, 0, $00 sound_loop 3, Cry_Goomy_Ch8_branch noise_note 10, 4, 7, $21 noise_note 10, 4, 7, $46 noise_note 10, 3, 7, $21 sound_ret Cry_Heliolisk: channel_count 3 channel 5, Cry_Heliolisk_Ch5 channel 6, Cry_Heliolisk_Ch6 channel 8, Cry_Heliolisk_Ch8 Cry_Heliolisk_Ch5: dutycycle 0 square_note 8, 12, 6, $0720 square_note 3, 0, 0, $0000 square_note 8, 12, 6, $0700 square_note 3, 0, 0, $0000 square_note 4, 12, 7, $0740 square_note 2, 0, 0, $0000 square_note 8, 12, 6, $0720 square_note 4, 0, 0, $0000 square_note 16, 12, 4, $0700 square_note 16, 12, 4, $0760 square_note 4, 12, 6, $0750 sound_ret Cry_Heliolisk_Ch6: dutycycle 1 square_note 8, 11, 6, $071a square_note 3, 0, 0, $0000 square_note 8, 11, 6, $06fa square_note 3, 0, 0, $0000 square_note 4, 11, 7, $073c square_note 2, 0, 0, $0000 square_note 8, 12, 6, $071c square_note 4, 0, 0, $0000 square_note 16, 11, 4, $0700 square_note 16, 11, 4, $0760 square_note 4, 12, 6, $0750 sound_ret Cry_Heliolisk_Ch8: noise_note 8, 0, 0, $00 sound_loop 5, Cry_Heliolisk_Ch8 noise_note 16, 9, 4, $60 noise_note 16, 9, 4, $68 noise_note 4, 9, 6, $64 sound_ret Cry_Unused: channel_count 3 channel 5, Unused_Cry_Ch5 channel 6, Unused_Cry_Ch6 channel 8, Unused_Cry_Ch8 Unused_Cry_Ch5: sound_duty 0, 0, 3, 3 square_note 16, 14, 0, $0780 square_note 16, 15, 0, $0784 square_note 16, 12, 3, $05e0 square_note 16, 12, 4, $0600 square_note 11, 6, 12, $0780 square_note 9, 7, 1, $0784 sound_ret Unused_Cry_Ch6: sound_duty 1, 1, 0, 0 square_note 16, 10, 0, $0741 square_note 16, 11, 0, $0743 square_note 16, 9, 3, $05b1 square_note 16, 9, 4, $05c1 square_note 11, 4, 12, $0741 square_note 9, 3, 1, $0746 sound_ret Unused_Cry_Ch8: noise_note 3, 15, 2, $4c noise_note 7, 14, 0, $3a noise_note 16, 13, 0, $3a noise_note 9, 13, 0, $2c noise_note 7, 14, 6, $4c noise_note 13, 7, 13, $4c noise_note 16, 13, 3, $4c sound_ret
21.008805
39
0.716202
8f4ccb1963c820f4fd3cf3ac57d6390d3c489aba
616
asm
Assembly
oeis/087/A087350.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/087/A087350.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/087/A087350.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A087350: a(n) = Sum_{k=0..n} (3*n)!/(3*k)!. ; Submitted by Christian Krause ; 1,7,841,423865,559501801,1527439916731,7478345832314977,59677199741873516461,724719913665311983902385,12718834484826225317486856751,309830808050366848733979830454361,10142621332336809160155563729753961697,434509897877308904421064350182659719099481,23825915740204356465024642577915963037100941155,1641129076185276073310897380766851533995512826756401,139725729546414404881689802998489739604377962070039981141,14500177309408701281002240995971271217183927391780469082888417 mul $0,3 seq $0,330044 ; Expansion of e.g.f. exp(x) / (1 - x^3).
88
471
0.868506
3f56af849b31b5b65cc468d9e420515f94b471af
2,333
asm
Assembly
stage1/hdd/bootsect.asm
0xqoob/limine
c940a411cbfe44cf99f62d81e009568ea2ca0aa9
[ "BSD-2-Clause" ]
1
2021-05-21T15:59:46.000Z
2021-05-21T15:59:46.000Z
stage1/hdd/bootsect.asm
0xqoob/limine
c940a411cbfe44cf99f62d81e009568ea2ca0aa9
[ "BSD-2-Clause" ]
null
null
null
stage1/hdd/bootsect.asm
0xqoob/limine
c940a411cbfe44cf99f62d81e009568ea2ca0aa9
[ "BSD-2-Clause" ]
null
null
null
org 0x7c00 bits 16 start: jmp .skip_bpb ; Workaround for some BIOSes that require this stub nop ; Some BIOSes will do a funny and decide to overwrite bytes of code in ; the section where a FAT BPB would be, potentially overwriting ; bootsector code. ; Avoid that by filling the BPB area with 0s times 87 db 0 .skip_bpb: cli cld jmp 0x0000:.initialise_cs .initialise_cs: xor bx, bx mov ds, bx mov es, bx mov ss, bx mov sp, 0x7c00 sti ; Limine isn't made for floppy disks, these are dead anyways. ; So if the value the BIOS passed is <0x80, just assume it has passed ; an incorrect value. cmp dl, 0x80 jae .continue ; Error out (BX zeroed out above) push 0xb800 pop es mov dword [es:bx], 'F ! ' jmp err .continue: ; Make sure int 13h extensions are supported mov ah, 0x41 mov bx, 0x55aa int 0x13 jc err cmp bx, 0xaa55 jne err ; If int 13h extensions are supported, then we are definitely running on ; a 386+. We have no idea whether the upper 16 bits of esp are cleared, so ; make sure that is the case now. mov esp, 0x7c00 push 0x7000 pop es mov di, stage2_locs mov eax, dword [di] mov ebp, dword [di+4] xor bx, bx xor ecx, ecx mov cx, word [di-4] call read_sectors jc err mov eax, dword [di+8] mov ebp, dword [di+12] add bx, cx mov cx, word [di-2] call read_sectors jc err lgdt [gdt] cli mov eax, cr0 bts ax, 0 mov cr0, eax jmp 0x08:vector err: hlt jmp err times 0xda-($-$$) db 0 times 6 db 0 ; Includes %include 'disk.asm' %include '../gdt.asm' bits 32 vector: mov eax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax and edx, 0xff push 0 push edx push stage2.size push (stage2 - decompressor) + 0x70000 call 0x70000 times 0x1a4-($-$$) db 0 stage2_size_a: dw 0 stage2_size_b: dw 0 stage2_locs: stage2_loc_a: dq 0 stage2_loc_b: dq 0 times 0x1b8-($-$$) db 0 times 510-($-$$) db 0 dw 0xaa55 ; ********************* Stage 2 ********************* decompressor: incbin '../../build/decompressor/decompressor.bin' align 16 stage2: incbin '../../build/stage23-bios/stage2.bin.gz' .size: equ $ - stage2
17.946154
78
0.609516
144edd808985629e45959141dd5baa2af7f0174e
341
asm
Assembly
data/maps/objects/CeruleanMart.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/CeruleanMart.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/CeruleanMart.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
CeruleanMart_Object: db $0 ; border block def_warps warp 3, 7, 5, LAST_MAP warp 4, 7, 5, LAST_MAP def_signs def_objects object SPRITE_CLERK, 0, 5, STAY, RIGHT, 1 ; person object SPRITE_COOLTRAINER_M, 3, 4, WALK, UP_DOWN, 2 ; person object SPRITE_COOLTRAINER_F, 6, 2, WALK, LEFT_RIGHT, 3 ; person def_warps_to CERULEAN_MART
21.3125
64
0.727273
14305884228f35ed5fcb35ed985d422df9d371a9
8,171
asm
Assembly
openfl-webm/0,0,4/project/libvpx-generic/vp8/encoder/arm/neon/fastquantizeb_neon.asm
kudorado/HaxePlus
b312ad16420aa31731e55a1ac5f282cc46a557fc
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
openfl-webm/0,0,4/project/libvpx-generic/vp8/encoder/arm/neon/fastquantizeb_neon.asm
kudorado/HaxePlus
b312ad16420aa31731e55a1ac5f282cc46a557fc
[ "Apache-2.0" ]
null
null
null
openfl-webm/0,0,4/project/libvpx-generic/vp8/encoder/arm/neon/fastquantizeb_neon.asm
kudorado/HaxePlus
b312ad16420aa31731e55a1ac5f282cc46a557fc
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
; ; Copyright (c) 2011 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; EXPORT |vp8_fast_quantize_b_neon| EXPORT |vp8_fast_quantize_b_pair_neon| INCLUDE asm_enc_offsets.asm ARM REQUIRE8 PRESERVE8 AREA ||.text||, CODE, READONLY, ALIGN=4 ;vp8_fast_quantize_b_pair_neon(BLOCK *b1, BLOCK *b2, BLOCKD *d1, BLOCKD *d2); |vp8_fast_quantize_b_pair_neon| PROC stmfd sp!, {r4-r9} vstmdb sp!, {q4-q7} ldr r4, [r0, #vp8_block_coeff] ldr r5, [r0, #vp8_block_quant_fast] ldr r6, [r0, #vp8_block_round] vld1.16 {q0, q1}, [r4@128] ; load z ldr r7, [r2, #vp8_blockd_qcoeff] vabs.s16 q4, q0 ; calculate x = abs(z) vabs.s16 q5, q1 ;right shift 15 to get sign, all 0 if it is positive, all 1 if it is negative vshr.s16 q2, q0, #15 ; sz vshr.s16 q3, q1, #15 vld1.s16 {q6, q7}, [r6@128] ; load round_ptr [0-15] vld1.s16 {q8, q9}, [r5@128] ; load quant_ptr [0-15] ldr r4, [r1, #vp8_block_coeff] vadd.s16 q4, q6 ; x + Round vadd.s16 q5, q7 vld1.16 {q0, q1}, [r4@128] ; load z2 vqdmulh.s16 q4, q8 ; y = ((Round+abs(z)) * Quant) >> 16 vqdmulh.s16 q5, q9 vabs.s16 q10, q0 ; calculate x2 = abs(z_2) vabs.s16 q11, q1 vshr.s16 q12, q0, #15 ; sz2 vshr.s16 q13, q1, #15 ;modify data to have its original sign veor.s16 q4, q2 ; y^sz veor.s16 q5, q3 vadd.s16 q10, q6 ; x2 + Round vadd.s16 q11, q7 ldr r8, [r2, #vp8_blockd_dequant] vqdmulh.s16 q10, q8 ; y2 = ((Round+abs(z)) * Quant) >> 16 vqdmulh.s16 q11, q9 vshr.s16 q4, #1 ; right shift 1 after vqdmulh vshr.s16 q5, #1 vld1.s16 {q6, q7}, [r8@128] ;load dequant_ptr[i] vsub.s16 q4, q2 ; x1=(y^sz)-sz = (y^sz)-(-1) (2's complement) vsub.s16 q5, q3 vshr.s16 q10, #1 ; right shift 1 after vqdmulh vshr.s16 q11, #1 ldr r9, [r2, #vp8_blockd_dqcoeff] veor.s16 q10, q12 ; y2^sz2 veor.s16 q11, q13 vst1.s16 {q4, q5}, [r7] ; store: qcoeff = x1 vsub.s16 q10, q12 ; x2=(y^sz)-sz = (y^sz)-(-1) (2's complement) vsub.s16 q11, q13 ldr r6, [r3, #vp8_blockd_qcoeff] vmul.s16 q2, q6, q4 ; x * Dequant vmul.s16 q3, q7, q5 adr r0, inv_zig_zag ; load ptr of inverse zigzag table vceq.s16 q8, q8 ; set q8 to all 1 vst1.s16 {q10, q11}, [r6] ; store: qcoeff = x2 vmul.s16 q12, q6, q10 ; x2 * Dequant vmul.s16 q13, q7, q11 vld1.16 {q6, q7}, [r0@128] ; load inverse scan order vtst.16 q14, q4, q8 ; now find eob vtst.16 q15, q5, q8 ; non-zero element is set to all 1 vst1.s16 {q2, q3}, [r9] ; store dqcoeff = x * Dequant ldr r7, [r3, #vp8_blockd_dqcoeff] vand q0, q6, q14 ; get all valid numbers from scan array vand q1, q7, q15 vst1.s16 {q12, q13}, [r7] ; store dqcoeff = x * Dequant vtst.16 q2, q10, q8 ; now find eob vtst.16 q3, q11, q8 ; non-zero element is set to all 1 vmax.u16 q0, q0, q1 ; find maximum value in q0, q1 vand q10, q6, q2 ; get all valid numbers from scan array vand q11, q7, q3 vmax.u16 q10, q10, q11 ; find maximum value in q10, q11 vmax.u16 d0, d0, d1 vmax.u16 d20, d20, d21 vmovl.u16 q0, d0 vmovl.u16 q10, d20 vmax.u32 d0, d0, d1 vmax.u32 d20, d20, d21 vpmax.u32 d0, d0, d0 vpmax.u32 d20, d20, d20 ldr r4, [r2, #vp8_blockd_eob] ldr r5, [r3, #vp8_blockd_eob] vst1.8 {d0[0]}, [r4] ; store eob vst1.8 {d20[0]}, [r5] ; store eob vldmia sp!, {q4-q7} ldmfd sp!, {r4-r9} bx lr ENDP ;void vp8_fast_quantize_b_c(BLOCK *b, BLOCKD *d) |vp8_fast_quantize_b_neon| PROC stmfd sp!, {r4-r7} ldr r3, [r0, #vp8_block_coeff] ldr r4, [r0, #vp8_block_quant_fast] ldr r5, [r0, #vp8_block_round] vld1.16 {q0, q1}, [r3@128] ; load z vorr.s16 q14, q0, q1 ; check if all zero (step 1) ldr r6, [r1, #vp8_blockd_qcoeff] ldr r7, [r1, #vp8_blockd_dqcoeff] vorr.s16 d28, d28, d29 ; check if all zero (step 2) vabs.s16 q12, q0 ; calculate x = abs(z) vabs.s16 q13, q1 ;right shift 15 to get sign, all 0 if it is positive, all 1 if it is negative vshr.s16 q2, q0, #15 ; sz vmov r2, r3, d28 ; check if all zero (step 3) vshr.s16 q3, q1, #15 vld1.s16 {q14, q15}, [r5@128]; load round_ptr [0-15] vld1.s16 {q8, q9}, [r4@128] ; load quant_ptr [0-15] vadd.s16 q12, q14 ; x + Round vadd.s16 q13, q15 adr r0, inv_zig_zag ; load ptr of inverse zigzag table vqdmulh.s16 q12, q8 ; y = ((Round+abs(z)) * Quant) >> 16 vqdmulh.s16 q13, q9 vld1.16 {q10, q11}, [r0@128]; load inverse scan order vceq.s16 q8, q8 ; set q8 to all 1 ldr r4, [r1, #vp8_blockd_dequant] vshr.s16 q12, #1 ; right shift 1 after vqdmulh vshr.s16 q13, #1 ldr r5, [r1, #vp8_blockd_eob] orr r2, r2, r3 ; check if all zero (step 4) cmp r2, #0 ; check if all zero (step 5) beq zero_output ; check if all zero (step 6) ;modify data to have its original sign veor.s16 q12, q2 ; y^sz veor.s16 q13, q3 vsub.s16 q12, q2 ; x1=(y^sz)-sz = (y^sz)-(-1) (2's complement) vsub.s16 q13, q3 vld1.s16 {q2, q3}, [r4@128] ; load dequant_ptr[i] vtst.16 q14, q12, q8 ; now find eob vtst.16 q15, q13, q8 ; non-zero element is set to all 1 vst1.s16 {q12, q13}, [r6@128]; store: qcoeff = x1 vand q10, q10, q14 ; get all valid numbers from scan array vand q11, q11, q15 vmax.u16 q0, q10, q11 ; find maximum value in q0, q1 vmax.u16 d0, d0, d1 vmovl.u16 q0, d0 vmul.s16 q2, q12 ; x * Dequant vmul.s16 q3, q13 vmax.u32 d0, d0, d1 vpmax.u32 d0, d0, d0 vst1.s16 {q2, q3}, [r7@128] ; store dqcoeff = x * Dequant vst1.8 {d0[0]}, [r5] ; store eob ldmfd sp!, {r4-r7} bx lr zero_output strb r2, [r5] ; store eob vst1.s16 {q0, q1}, [r6@128] ; qcoeff = 0 vst1.s16 {q0, q1}, [r7@128] ; dqcoeff = 0 ldmfd sp!, {r4-r7} bx lr ENDP ; default inverse zigzag table is defined in vp8/common/entropy.c ALIGN 16 ; enable use of @128 bit aligned loads inv_zig_zag DCW 0x0001, 0x0002, 0x0006, 0x0007 DCW 0x0003, 0x0005, 0x0008, 0x000d DCW 0x0004, 0x0009, 0x000c, 0x000e DCW 0x000a, 0x000b, 0x000f, 0x0010 END
31.548263
85
0.487823
9fcb3b59d3fd65235f9b1af833174cfaaa2c73f6
355
asm
Assembly
programs/oeis/025/A025170.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/025/A025170.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/025/A025170.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A025170: G.f.: 1/(1 + 2*x + 9*x^2). ; 1,-2,-5,28,-11,-230,559,952,-6935,5302,51811,-151340,-163619,1689298,-1906025,-11391632,39937489,22649710,-404736821,605626252,2431378885,-10313394038,-1255621889,95331790120,-179362983239,-499260144602,2612787138355,-732232975292 add $0,1 mul $0,2 seq $0,88137 ; Generalized Gaussian Fibonacci integers. div $0,2
44.375
232
0.743662
13d4a90a7e99afd40811e3bfef4756f015984ae2
248
asm
Assembly
Perl6 Compiler/compiled/random.asm
Itay2805/Perl6-Native-Compiler
8c68f9a0e7547d43cd299d0cb3d3be53e772b310
[ "Apache-2.0" ]
1
2016-08-25T21:57:17.000Z
2016-08-25T21:57:17.000Z
Perl6 Compiler/compiled/random.asm
Itay2805/Perl6-Native-Compiler
8c68f9a0e7547d43cd299d0cb3d3be53e772b310
[ "Apache-2.0" ]
null
null
null
Perl6 Compiler/compiled/random.asm
Itay2805/Perl6-Native-Compiler
8c68f9a0e7547d43cd299d0cb3d3be53e772b310
[ "Apache-2.0" ]
null
null
null
[extern printf] [section code] [global main] main: push rbp mov rbp, rsp sub rsp, 0 mov rsp, rbp pop rbp xor rax, rax ret [section rodata] num_fmt_line: db "%d", 10, 0 str_fmt_line: db "%s", 10, 0 num_fmt: db "%d", 0 str_fmt: db "%s", 0
11.809524
16
0.637097
4840712bbe4e1d905445d5349a46e91972c9aec3
818
asm
Assembly
oeis/045/A045425.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/045/A045425.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/045/A045425.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A045425: Primes congruent to {0, 3} mod 7. ; Submitted by Jamie Morken(w1) ; 3,7,17,31,59,73,101,157,199,227,241,269,283,311,353,367,409,479,521,563,577,619,647,661,773,787,829,857,941,983,997,1039,1109,1123,1151,1193,1249,1277,1291,1319,1361,1459,1487,1543,1571,1613,1627,1669,1697,1753,1823,1879,1907,1949,2089,2131,2243,2341,2383,2411,2467,2551,2579,2593,2621,2663,2677,2719,2789,2803,2887,2957,2971,2999,3041,3083,3167,3181,3209,3251,3307,3391,3433,3461,3517,3559,3643,3671,3727,3769,3797,3853,3881,3923,4007,4021,4049,4091,4133,4217 mov $1,3 mov $2,332202 mov $5,2 mov $6,1 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,1 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 add $5,$1 gcd $1,6 mov $6,$5 lpe mov $0,$5 add $0,1
32.72
462
0.694377
2195cb6ae1a86386b41d75aaf2fdff2875af9896
545
asm
Assembly
libsrc/games/vg5k/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/vg5k/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/games/vg5k/bit_open_di.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; $Id: bit_open_di.asm,v 1.2 2015/01/19 01:32:45 pauloscustodio Exp $ ; ; VG-5000 1 bit sound functions ; ; Open sound and disable interrupts for exact timing ; ; Stefano Bodrato - 2014 ; PUBLIC bit_open_di EXTERN snd_tick EXTERN bit_irqstatus INCLUDE "games/games.inc" .bit_open_di ld a,i ; get the current status of the irq line di push af ex (sp),hl ld (bit_irqstatus),hl pop hl ld a,8 ld (snd_tick),a ret
18.793103
69
0.559633
d0960c62d617e04bb77065745680ffd4e1076709
466
asm
Assembly
oeis/112/A112605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/112/A112605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/112/A112605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A112605: Number of representations of n as a sum of a square and six times a triangular number. ; Submitted by Jamie Morken(s3) ; 1,2,0,0,2,0,1,2,0,2,2,0,0,0,0,2,2,0,1,2,0,0,4,0,0,2,0,2,0,0,0,2,0,0,2,0,3,2,0,0,2,0,2,2,0,2,0,0,0,2,0,0,2,0,2,2,0,0,0,0,1,4,0,0,4,0,0,2,0,2,2,0,2,0,0,0,2,0,0,0,0,2,2,0,0,4,0,2,0,0,1,2,0,0,2,0,2,0,0,4 mul $0,4 add $0,3 lpb $0 dif $0,3 lpe seq $0,217219 ; Theta series of planar hexagonal lattice with respect to deep hole. div $0,6
38.833333
201
0.628755
46ecbfae728d4e1347d07b848c24d198a123065b
42,942
asm
Assembly
gfx/pics.asm
Trap-Master/spacworld97-thingy
a144827abecacdfec6cdc3baa32098e9290adf70
[ "blessing" ]
null
null
null
gfx/pics.asm
Trap-Master/spacworld97-thingy
a144827abecacdfec6cdc3baa32098e9290adf70
[ "blessing" ]
null
null
null
gfx/pics.asm
Trap-Master/spacworld97-thingy
a144827abecacdfec6cdc3baa32098e9290adf70
[ "blessing" ]
null
null
null
INCLUDE "constants.asm" ; PokemonPicPointers and UnownPicPointers are assumed to start at the same ; address, but in different banks. This is enforced in pokecrystal.link. SECTION "Pic Pointers", ROMX INCLUDE "data/pokemon/pic_pointers.asm" SECTION "Unown Pic Pointers", ROMX INCLUDE "data/pokemon/unown_pic_pointers.asm" SECTION "Trainer Pic Pointers", ROMX INCLUDE "data/trainers/pic_pointers.asm" SECTION "Pics 1", ROMX HoOhFrontpic: INCBIN "gfx/pokemon/ho_oh/front.animated.2bpp.lz" MachampFrontpic: INCBIN "gfx/pokemon/machamp/front.animated.2bpp.lz" NinetalesFrontpic: INCBIN "gfx/pokemon/ninetales/front.animated.2bpp.lz" FeraligatrFrontpic: INCBIN "gfx/pokemon/feraligatr/front.animated.2bpp.lz" NidokingFrontpic: INCBIN "gfx/pokemon/nidoking/front.animated.2bpp.lz" RaikouFrontpic: INCBIN "gfx/pokemon/raikou/front.animated.2bpp.lz" LugiaFrontpic: INCBIN "gfx/pokemon/lugia/front.animated.2bpp.lz" ArticunoFrontpic: INCBIN "gfx/pokemon/articuno/front.animated.2bpp.lz" TaurosFrontpic: INCBIN "gfx/pokemon/tauros/front.animated.2bpp.lz" VenusaurFrontpic: INCBIN "gfx/pokemon/venusaur/front.animated.2bpp.lz" EnteiFrontpic: INCBIN "gfx/pokemon/entei/front.animated.2bpp.lz" SuicuneFrontpic: INCBIN "gfx/pokemon/suicune/front.animated.2bpp.lz" TyphlosionFrontpic: INCBIN "gfx/pokemon/typhlosion/front.animated.2bpp.lz" SECTION "Pics 2", ROMX BlastoiseFrontpic: INCBIN "gfx/pokemon/blastoise/front.animated.2bpp.lz" RapidashFrontpic: INCBIN "gfx/pokemon/rapidash/front.animated.2bpp.lz" MeganiumFrontpic: INCBIN "gfx/pokemon/meganium/front.animated.2bpp.lz" NidoqueenFrontpic: INCBIN "gfx/pokemon/nidoqueen/front.animated.2bpp.lz" HitmonleeFrontpic: INCBIN "gfx/pokemon/hitmonlee/front.animated.2bpp.lz" ScizorFrontpic: INCBIN "gfx/pokemon/scizor/front.animated.2bpp.lz" BeedrillFrontpic: INCBIN "gfx/pokemon/beedrill/front.animated.2bpp.lz" ArcanineFrontpic: INCBIN "gfx/pokemon/arcanine/front.animated.2bpp.lz" TyranitarFrontpic: INCBIN "gfx/pokemon/tyranitar/front.animated.2bpp.lz" MoltresFrontpic: INCBIN "gfx/pokemon/moltres/front.animated.2bpp.lz" ZapdosFrontpic: INCBIN "gfx/pokemon/zapdos/front.animated.2bpp.lz" ArbokFrontpic: INCBIN "gfx/pokemon/arbok/front.animated.2bpp.lz" MewtwoFrontpic: INCBIN "gfx/pokemon/mewtwo/front.animated.2bpp.lz" FearowFrontpic: INCBIN "gfx/pokemon/fearow/front.animated.2bpp.lz" CharizardFrontpic: INCBIN "gfx/pokemon/charizard/front.animated.2bpp.lz" QuilavaFrontpic: INCBIN "gfx/pokemon/quilava/front.animated.2bpp.lz" SECTION "Pics 3", ROMX SteelixFrontpic: INCBIN "gfx/pokemon/steelix/front.animated.2bpp.lz" AlakazamFrontpic: INCBIN "gfx/pokemon/alakazam/front.animated.2bpp.lz" GyaradosFrontpic: INCBIN "gfx/pokemon/gyarados/front.animated.2bpp.lz" KangaskhanFrontpic: INCBIN "gfx/pokemon/kangaskhan/front.animated.2bpp.lz" RhydonFrontpic: INCBIN "gfx/pokemon/rhydon/front.animated.2bpp.lz" GolduckFrontpic: INCBIN "gfx/pokemon/golduck/front.animated.2bpp.lz" RhyhornFrontpic: INCBIN "gfx/pokemon/rhyhorn/front.animated.2bpp.lz" PidgeotFrontpic: INCBIN "gfx/pokemon/pidgeot/front.animated.2bpp.lz" SlowbroFrontpic: INCBIN "gfx/pokemon/slowbro/front.animated.2bpp.lz" ButterfreeFrontpic: INCBIN "gfx/pokemon/butterfree/front.animated.2bpp.lz" WeezingFrontpic: INCBIN "gfx/pokemon/weezing/front.animated.2bpp.lz" CloysterFrontpic: INCBIN "gfx/pokemon/cloyster/front.animated.2bpp.lz" SkarmoryFrontpic: INCBIN "gfx/pokemon/skarmory/front.animated.2bpp.lz" DewgongFrontpic: INCBIN "gfx/pokemon/dewgong/front.animated.2bpp.lz" VictreebelFrontpic: INCBIN "gfx/pokemon/victreebel/front.animated.2bpp.lz" RaichuFrontpic: INCBIN "gfx/pokemon/raichu/front.animated.2bpp.lz" PrimeapeFrontpic: INCBIN "gfx/pokemon/primeape/front.animated.2bpp.lz" OmastarBackpic: INCBIN "gfx/pokemon/omastar/back.2bpp.lz" SECTION "Pics 4", ROMX DodrioFrontpic: INCBIN "gfx/pokemon/dodrio/front.animated.2bpp.lz" SlowkingFrontpic: INCBIN "gfx/pokemon/slowking/front.animated.2bpp.lz" HitmontopFrontpic: INCBIN "gfx/pokemon/hitmontop/front.animated.2bpp.lz" OnixFrontpic: INCBIN "gfx/pokemon/onix/front.animated.2bpp.lz" BlisseyFrontpic: INCBIN "gfx/pokemon/blissey/front.animated.2bpp.lz" MachokeFrontpic: INCBIN "gfx/pokemon/machoke/front.animated.2bpp.lz" DragoniteFrontpic: INCBIN "gfx/pokemon/dragonite/front.animated.2bpp.lz" PoliwrathFrontpic: INCBIN "gfx/pokemon/poliwrath/front.animated.2bpp.lz" ScytherFrontpic: INCBIN "gfx/pokemon/scyther/front.animated.2bpp.lz" AerodactylFrontpic: INCBIN "gfx/pokemon/aerodactyl/front.animated.2bpp.lz" SeakingFrontpic: INCBIN "gfx/pokemon/seaking/front.animated.2bpp.lz" MukFrontpic: INCBIN "gfx/pokemon/muk/front.animated.2bpp.lz" CroconawFrontpic: INCBIN "gfx/pokemon/croconaw/front.animated.2bpp.lz" HypnoFrontpic: INCBIN "gfx/pokemon/hypno/front.animated.2bpp.lz" NidorinoFrontpic: INCBIN "gfx/pokemon/nidorino/front.animated.2bpp.lz" SandslashFrontpic: INCBIN "gfx/pokemon/sandslash/front.animated.2bpp.lz" JolteonFrontpic: INCBIN "gfx/pokemon/jolteon/front.animated.2bpp.lz" DonphanFrontpic: INCBIN "gfx/pokemon/donphan/front.animated.2bpp.lz" PinsirFrontpic: INCBIN "gfx/pokemon/pinsir/front.animated.2bpp.lz" UnownEFrontpic: INCBIN "gfx/pokemon/unown_e/front.animated.2bpp.lz" SECTION "Pics 5", ROMX GolbatFrontpic: INCBIN "gfx/pokemon/golbat/front.animated.2bpp.lz" KinglerFrontpic: INCBIN "gfx/pokemon/kingler/front.animated.2bpp.lz" ExeggcuteFrontpic: INCBIN "gfx/pokemon/exeggcute/front.animated.2bpp.lz" MagcargoFrontpic: INCBIN "gfx/pokemon/magcargo/front.animated.2bpp.lz" PersianFrontpic: INCBIN "gfx/pokemon/persian/front.animated.2bpp.lz" StantlerFrontpic: INCBIN "gfx/pokemon/stantler/front.animated.2bpp.lz" RaticateFrontpic: INCBIN "gfx/pokemon/raticate/front.animated.2bpp.lz" VenomothFrontpic: INCBIN "gfx/pokemon/venomoth/front.animated.2bpp.lz" PolitoedFrontpic: INCBIN "gfx/pokemon/politoed/front.animated.2bpp.lz" ElectabuzzFrontpic: INCBIN "gfx/pokemon/electabuzz/front.animated.2bpp.lz" MantineFrontpic: INCBIN "gfx/pokemon/mantine/front.animated.2bpp.lz" LickitungFrontpic: INCBIN "gfx/pokemon/lickitung/front.animated.2bpp.lz" KingdraFrontpic: INCBIN "gfx/pokemon/kingdra/front.animated.2bpp.lz" CharmeleonFrontpic: INCBIN "gfx/pokemon/charmeleon/front.animated.2bpp.lz" KadabraFrontpic: INCBIN "gfx/pokemon/kadabra/front.animated.2bpp.lz" ExeggutorFrontpic: INCBIN "gfx/pokemon/exeggutor/front.animated.2bpp.lz" GastlyFrontpic: INCBIN "gfx/pokemon/gastly/front.animated.2bpp.lz" AzumarillFrontpic: INCBIN "gfx/pokemon/azumarill/front.animated.2bpp.lz" ParasectFrontpic: INCBIN "gfx/pokemon/parasect/front.animated.2bpp.lz" MrMimeFrontpic: INCBIN "gfx/pokemon/mr__mime/front.animated.2bpp.lz" HeracrossFrontpic: INCBIN "gfx/pokemon/heracross/front.animated.2bpp.lz" SECTION "Pics 6", ROMX AriadosFrontpic: INCBIN "gfx/pokemon/ariados/front.animated.2bpp.lz" NoctowlFrontpic: INCBIN "gfx/pokemon/noctowl/front.animated.2bpp.lz" WartortleFrontpic: INCBIN "gfx/pokemon/wartortle/front.animated.2bpp.lz" LaprasFrontpic: INCBIN "gfx/pokemon/lapras/front.animated.2bpp.lz" GolemFrontpic: INCBIN "gfx/pokemon/golem/front.animated.2bpp.lz" PoliwhirlFrontpic: INCBIN "gfx/pokemon/poliwhirl/front.animated.2bpp.lz" UrsaringFrontpic: INCBIN "gfx/pokemon/ursaring/front.animated.2bpp.lz" HoundoomFrontpic: INCBIN "gfx/pokemon/houndoom/front.animated.2bpp.lz" KabutopsFrontpic: INCBIN "gfx/pokemon/kabutops/front.animated.2bpp.lz" AmpharosFrontpic: INCBIN "gfx/pokemon/ampharos/front.animated.2bpp.lz" NidorinaFrontpic: INCBIN "gfx/pokemon/nidorina/front.animated.2bpp.lz" FlareonFrontpic: INCBIN "gfx/pokemon/flareon/front.animated.2bpp.lz" FarfetchDFrontpic: INCBIN "gfx/pokemon/farfetch_d/front.animated.2bpp.lz" VileplumeFrontpic: INCBIN "gfx/pokemon/vileplume/front.animated.2bpp.lz" BayleefFrontpic: INCBIN "gfx/pokemon/bayleef/front.animated.2bpp.lz" MagmarFrontpic: INCBIN "gfx/pokemon/magmar/front.animated.2bpp.lz" TentacruelFrontpic: INCBIN "gfx/pokemon/tentacruel/front.animated.2bpp.lz" ElekidFrontpic: INCBIN "gfx/pokemon/elekid/front.animated.2bpp.lz" JumpluffFrontpic: INCBIN "gfx/pokemon/jumpluff/front.animated.2bpp.lz" MarowakFrontpic: INCBIN "gfx/pokemon/marowak/front.animated.2bpp.lz" VulpixFrontpic: INCBIN "gfx/pokemon/vulpix/front.animated.2bpp.lz" GligarFrontpic: INCBIN "gfx/pokemon/gligar/front.animated.2bpp.lz" DunsparceFrontpic: INCBIN "gfx/pokemon/dunsparce/front.animated.2bpp.lz" SECTION "Pics 7", ROMX VaporeonFrontpic: INCBIN "gfx/pokemon/vaporeon/front.animated.2bpp.lz" GirafarigFrontpic: INCBIN "gfx/pokemon/girafarig/front.animated.2bpp.lz" DrowzeeFrontpic: INCBIN "gfx/pokemon/drowzee/front.animated.2bpp.lz" SneaselFrontpic: INCBIN "gfx/pokemon/sneasel/front.animated.2bpp.lz" BellossomFrontpic: INCBIN "gfx/pokemon/bellossom/front.animated.2bpp.lz" SnorlaxFrontpic: INCBIN "gfx/pokemon/snorlax/front.animated.2bpp.lz" WigglytuffFrontpic: INCBIN "gfx/pokemon/wigglytuff/front.animated.2bpp.lz" YanmaFrontpic: INCBIN "gfx/pokemon/yanma/front.animated.2bpp.lz" SmeargleFrontpic: INCBIN "gfx/pokemon/smeargle/front.animated.2bpp.lz" ClefableFrontpic: INCBIN "gfx/pokemon/clefable/front.animated.2bpp.lz" PonytaFrontpic: INCBIN "gfx/pokemon/ponyta/front.animated.2bpp.lz" MurkrowFrontpic: INCBIN "gfx/pokemon/murkrow/front.animated.2bpp.lz" GravelerFrontpic: INCBIN "gfx/pokemon/graveler/front.animated.2bpp.lz" StarmieFrontpic: INCBIN "gfx/pokemon/starmie/front.animated.2bpp.lz" PidgeottoFrontpic: INCBIN "gfx/pokemon/pidgeotto/front.animated.2bpp.lz" LedybaFrontpic: INCBIN "gfx/pokemon/ledyba/front.animated.2bpp.lz" GengarFrontpic: INCBIN "gfx/pokemon/gengar/front.animated.2bpp.lz" OmastarFrontpic: INCBIN "gfx/pokemon/omastar/front.animated.2bpp.lz" PiloswineFrontpic: INCBIN "gfx/pokemon/piloswine/front.animated.2bpp.lz" DugtrioFrontpic: INCBIN "gfx/pokemon/dugtrio/front.animated.2bpp.lz" MagnetonFrontpic: INCBIN "gfx/pokemon/magneton/front.animated.2bpp.lz" DragonairFrontpic: INCBIN "gfx/pokemon/dragonair/front.animated.2bpp.lz" ForretressFrontpic: INCBIN "gfx/pokemon/forretress/front.animated.2bpp.lz" TogeticFrontpic: INCBIN "gfx/pokemon/togetic/front.animated.2bpp.lz" KangaskhanBackpic: INCBIN "gfx/pokemon/kangaskhan/back.2bpp.lz" SECTION "Pics 8", ROMX SeelFrontpic: INCBIN "gfx/pokemon/seel/front.animated.2bpp.lz" CrobatFrontpic: INCBIN "gfx/pokemon/crobat/front.animated.2bpp.lz" ChanseyFrontpic: INCBIN "gfx/pokemon/chansey/front.animated.2bpp.lz" TangelaFrontpic: INCBIN "gfx/pokemon/tangela/front.animated.2bpp.lz" SnubbullFrontpic: INCBIN "gfx/pokemon/snubbull/front.animated.2bpp.lz" GranbullFrontpic: INCBIN "gfx/pokemon/granbull/front.animated.2bpp.lz" MiltankFrontpic: INCBIN "gfx/pokemon/miltank/front.animated.2bpp.lz" HaunterFrontpic: INCBIN "gfx/pokemon/haunter/front.animated.2bpp.lz" SunfloraFrontpic: INCBIN "gfx/pokemon/sunflora/front.animated.2bpp.lz" UmbreonFrontpic: INCBIN "gfx/pokemon/umbreon/front.animated.2bpp.lz" ChikoritaFrontpic: INCBIN "gfx/pokemon/chikorita/front.animated.2bpp.lz" GoldeenFrontpic: INCBIN "gfx/pokemon/goldeen/front.animated.2bpp.lz" EspeonFrontpic: INCBIN "gfx/pokemon/espeon/front.animated.2bpp.lz" XatuFrontpic: INCBIN "gfx/pokemon/xatu/front.animated.2bpp.lz" MewFrontpic: INCBIN "gfx/pokemon/mew/front.animated.2bpp.lz" OctilleryFrontpic: INCBIN "gfx/pokemon/octillery/front.animated.2bpp.lz" JynxFrontpic: INCBIN "gfx/pokemon/jynx/front.animated.2bpp.lz" WobbuffetFrontpic: INCBIN "gfx/pokemon/wobbuffet/front.animated.2bpp.lz" DelibirdFrontpic: INCBIN "gfx/pokemon/delibird/front.animated.2bpp.lz" LedianFrontpic: INCBIN "gfx/pokemon/ledian/front.animated.2bpp.lz" GloomFrontpic: INCBIN "gfx/pokemon/gloom/front.animated.2bpp.lz" FlaaffyFrontpic: INCBIN "gfx/pokemon/flaaffy/front.animated.2bpp.lz" IvysaurFrontpic: INCBIN "gfx/pokemon/ivysaur/front.animated.2bpp.lz" FurretFrontpic: INCBIN "gfx/pokemon/furret/front.animated.2bpp.lz" CyndaquilFrontpic: INCBIN "gfx/pokemon/cyndaquil/front.animated.2bpp.lz" HitmonchanFrontpic: INCBIN "gfx/pokemon/hitmonchan/front.animated.2bpp.lz" QuagsireFrontpic: INCBIN "gfx/pokemon/quagsire/front.animated.2bpp.lz" SECTION "Pics 9", ROMX EkansFrontpic: INCBIN "gfx/pokemon/ekans/front.animated.2bpp.lz" SudowoodoFrontpic: INCBIN "gfx/pokemon/sudowoodo/front.animated.2bpp.lz" PikachuFrontpic: INCBIN "gfx/pokemon/pikachu/front.animated.2bpp.lz" SeadraFrontpic: INCBIN "gfx/pokemon/seadra/front.animated.2bpp.lz" MagbyFrontpic: INCBIN "gfx/pokemon/magby/front.animated.2bpp.lz" WeepinbellFrontpic: INCBIN "gfx/pokemon/weepinbell/front.animated.2bpp.lz" TotodileFrontpic: INCBIN "gfx/pokemon/totodile/front.animated.2bpp.lz" CorsolaFrontpic: INCBIN "gfx/pokemon/corsola/front.animated.2bpp.lz" FirebreatherPic: INCBIN "gfx/trainers/firebreather.2bpp.lz" MachopFrontpic: INCBIN "gfx/pokemon/machop/front.animated.2bpp.lz" ChinchouFrontpic: INCBIN "gfx/pokemon/chinchou/front.animated.2bpp.lz" RattataFrontpic: INCBIN "gfx/pokemon/rattata/front.animated.2bpp.lz" ChampionPic: INCBIN "gfx/trainers/champion.2bpp.lz" SpearowFrontpic: INCBIN "gfx/pokemon/spearow/front.animated.2bpp.lz" MagikarpFrontpic: INCBIN "gfx/pokemon/magikarp/front.animated.2bpp.lz" CharmanderFrontpic: INCBIN "gfx/pokemon/charmander/front.animated.2bpp.lz" CuboneFrontpic: INCBIN "gfx/pokemon/cubone/front.animated.2bpp.lz" BlackbeltTPic: INCBIN "gfx/trainers/blackbelt_t.2bpp.lz" BikerPic: INCBIN "gfx/trainers/biker.2bpp.lz" NidoranMFrontpic: INCBIN "gfx/pokemon/nidoran_m/front.animated.2bpp.lz" PorygonFrontpic: INCBIN "gfx/pokemon/porygon/front.animated.2bpp.lz" BrunoPic: INCBIN "gfx/trainers/bruno.2bpp.lz" GrimerFrontpic: INCBIN "gfx/pokemon/grimer/front.animated.2bpp.lz" StaryuFrontpic: INCBIN "gfx/pokemon/staryu/front.animated.2bpp.lz" HikerPic: INCBIN "gfx/trainers/hiker.2bpp.lz" MeowthFrontpic: INCBIN "gfx/pokemon/meowth/front.animated.2bpp.lz" Porygon2Frontpic: INCBIN "gfx/pokemon/porygon2/front.animated.2bpp.lz" SandshrewFrontpic: INCBIN "gfx/pokemon/sandshrew/front.animated.2bpp.lz" NidoranFFrontpic: INCBIN "gfx/pokemon/nidoran_f/front.animated.2bpp.lz" PidgeyFrontpic: INCBIN "gfx/pokemon/pidgey/front.animated.2bpp.lz" ParasectBackpic: INCBIN "gfx/pokemon/parasect/back.2bpp.lz" SECTION "Pics 10", ROMX MisdreavusFrontpic: INCBIN "gfx/pokemon/misdreavus/front.animated.2bpp.lz" HoundourFrontpic: INCBIN "gfx/pokemon/houndour/front.animated.2bpp.lz" MankeyFrontpic: INCBIN "gfx/pokemon/mankey/front.animated.2bpp.lz" CelebiFrontpic: INCBIN "gfx/pokemon/celebi/front.animated.2bpp.lz" MediumPic: INCBIN "gfx/trainers/medium.2bpp.lz" PinecoFrontpic: INCBIN "gfx/pokemon/pineco/front.animated.2bpp.lz" KrabbyFrontpic: INCBIN "gfx/pokemon/krabby/front.animated.2bpp.lz" FisherPic: INCBIN "gfx/trainers/fisher.2bpp.lz" JigglypuffFrontpic: INCBIN "gfx/pokemon/jigglypuff/front.animated.2bpp.lz" ParasFrontpic: INCBIN "gfx/pokemon/paras/front.animated.2bpp.lz" NidokingBackpic: INCBIN "gfx/pokemon/nidoking/back.2bpp.lz" PokefanmPic: INCBIN "gfx/trainers/pokefan_m.2bpp.lz" BoarderPic: INCBIN "gfx/trainers/boarder.2bpp.lz" PsyduckFrontpic: INCBIN "gfx/pokemon/psyduck/front.animated.2bpp.lz" SquirtleFrontpic: INCBIN "gfx/pokemon/squirtle/front.animated.2bpp.lz" MachampBackpic: INCBIN "gfx/pokemon/machamp/back.2bpp.lz" KoffingFrontpic: INCBIN "gfx/pokemon/koffing/front.animated.2bpp.lz" VenonatFrontpic: INCBIN "gfx/pokemon/venonat/front.animated.2bpp.lz" ExeggutorBackpic: INCBIN "gfx/pokemon/exeggutor/back.2bpp.lz" LanturnFrontpic: INCBIN "gfx/pokemon/lanturn/front.animated.2bpp.lz" TyrogueFrontpic: INCBIN "gfx/pokemon/tyrogue/front.animated.2bpp.lz" SkiploomFrontpic: INCBIN "gfx/pokemon/skiploom/front.animated.2bpp.lz" MareepFrontpic: INCBIN "gfx/pokemon/mareep/front.animated.2bpp.lz" ChuckPic: INCBIN "gfx/trainers/chuck.2bpp.lz" EeveeFrontpic: INCBIN "gfx/pokemon/eevee/front.animated.2bpp.lz" ButterfreeBackpic: INCBIN "gfx/pokemon/butterfree/back.2bpp.lz" ZubatFrontpic: INCBIN "gfx/pokemon/zubat/front.animated.2bpp.lz" KimonoGirlPic: INCBIN "gfx/trainers/kimono_girl.2bpp.lz" AlakazamBackpic: INCBIN "gfx/pokemon/alakazam/back.2bpp.lz" AipomFrontpic: INCBIN "gfx/pokemon/aipom/front.animated.2bpp.lz" AbraFrontpic: INCBIN "gfx/pokemon/abra/front.animated.2bpp.lz" HitmontopBackpic: INCBIN "gfx/pokemon/hitmontop/back.2bpp.lz" CloysterBackpic: INCBIN "gfx/pokemon/cloyster/back.2bpp.lz" HoothootFrontpic: INCBIN "gfx/pokemon/hoothoot/front.animated.2bpp.lz" UnownFBackpic: INCBIN "gfx/pokemon/unown_f/back.2bpp.lz" SECTION "Pics 11", ROMX DodrioBackpic: INCBIN "gfx/pokemon/dodrio/back.2bpp.lz" ClefairyFrontpic: INCBIN "gfx/pokemon/clefairy/front.animated.2bpp.lz" SlugmaFrontpic: INCBIN "gfx/pokemon/slugma/front.animated.2bpp.lz" GrowlitheFrontpic: INCBIN "gfx/pokemon/growlithe/front.animated.2bpp.lz" SlowpokeFrontpic: INCBIN "gfx/pokemon/slowpoke/front.animated.2bpp.lz" SmoochumFrontpic: INCBIN "gfx/pokemon/smoochum/front.animated.2bpp.lz" JugglerPic: INCBIN "gfx/trainers/juggler.2bpp.lz" MarillFrontpic: INCBIN "gfx/pokemon/marill/front.animated.2bpp.lz" GuitaristPic: INCBIN "gfx/trainers/guitarist.2bpp.lz" PokefanfPic: INCBIN "gfx/trainers/pokefan_f.2bpp.lz" VenomothBackpic: INCBIN "gfx/pokemon/venomoth/back.2bpp.lz" ClairPic: INCBIN "gfx/trainers/clair.2bpp.lz" PokemaniacPic: INCBIN "gfx/trainers/pokemaniac.2bpp.lz" OmanyteFrontpic: INCBIN "gfx/pokemon/omanyte/front.animated.2bpp.lz" SkierPic: INCBIN "gfx/trainers/skier.2bpp.lz" PupitarFrontpic: INCBIN "gfx/pokemon/pupitar/front.animated.2bpp.lz" BellsproutFrontpic: INCBIN "gfx/pokemon/bellsprout/front.animated.2bpp.lz" ShellderFrontpic: INCBIN "gfx/pokemon/shellder/front.animated.2bpp.lz" TentacoolFrontpic: INCBIN "gfx/pokemon/tentacool/front.animated.2bpp.lz" CleffaFrontpic: INCBIN "gfx/pokemon/cleffa/front.animated.2bpp.lz" GyaradosBackpic: INCBIN "gfx/pokemon/gyarados/back.2bpp.lz" NinetalesBackpic: INCBIN "gfx/pokemon/ninetales/back.2bpp.lz" YanmaBackpic: INCBIN "gfx/pokemon/yanma/back.2bpp.lz" PinsirBackpic: INCBIN "gfx/pokemon/pinsir/back.2bpp.lz" LassPic: INCBIN "gfx/trainers/lass.2bpp.lz" ClefableBackpic: INCBIN "gfx/pokemon/clefable/back.2bpp.lz" DoduoFrontpic: INCBIN "gfx/pokemon/doduo/front.animated.2bpp.lz" FeraligatrBackpic: INCBIN "gfx/pokemon/feraligatr/back.2bpp.lz" DratiniFrontpic: INCBIN "gfx/pokemon/dratini/front.animated.2bpp.lz" MagnetonBackpic: INCBIN "gfx/pokemon/magneton/back.2bpp.lz" QwilfishFrontpic: INCBIN "gfx/pokemon/qwilfish/front.animated.2bpp.lz" SuicuneBackpic: INCBIN "gfx/pokemon/suicune/back.2bpp.lz" SlowkingBackpic: INCBIN "gfx/pokemon/slowking/back.2bpp.lz" ElekidBackpic: INCBIN "gfx/pokemon/elekid/back.2bpp.lz" CelebiBackpic: INCBIN "gfx/pokemon/celebi/back.2bpp.lz" KrabbyBackpic: INCBIN "gfx/pokemon/krabby/back.2bpp.lz" BugCatcherPic: INCBIN "gfx/trainers/bug_catcher.2bpp.lz" SnorlaxBackpic: INCBIN "gfx/pokemon/snorlax/back.2bpp.lz" SECTION "Pics 12", ROMX VenusaurBackpic: INCBIN "gfx/pokemon/venusaur/back.2bpp.lz" MoltresBackpic: INCBIN "gfx/pokemon/moltres/back.2bpp.lz" SunfloraBackpic: INCBIN "gfx/pokemon/sunflora/back.2bpp.lz" PhanpyFrontpic: INCBIN "gfx/pokemon/phanpy/front.animated.2bpp.lz" RhydonBackpic: INCBIN "gfx/pokemon/rhydon/back.2bpp.lz" LarvitarFrontpic: INCBIN "gfx/pokemon/larvitar/front.animated.2bpp.lz" TyranitarBackpic: INCBIN "gfx/pokemon/tyranitar/back.2bpp.lz" SandslashBackpic: INCBIN "gfx/pokemon/sandslash/back.2bpp.lz" SeadraBackpic: INCBIN "gfx/pokemon/seadra/back.2bpp.lz" TwinsPic: INCBIN "gfx/trainers/twins.2bpp.lz" FarfetchDBackpic: INCBIN "gfx/pokemon/farfetch_d/back.2bpp.lz" NidoranMBackpic: INCBIN "gfx/pokemon/nidoran_m/back.2bpp.lz" LedybaBackpic: INCBIN "gfx/pokemon/ledyba/back.2bpp.lz" CyndaquilBackpic: INCBIN "gfx/pokemon/cyndaquil/back.2bpp.lz" BayleefBackpic: INCBIN "gfx/pokemon/bayleef/back.2bpp.lz" OddishFrontpic: INCBIN "gfx/pokemon/oddish/front.animated.2bpp.lz" RapidashBackpic: INCBIN "gfx/pokemon/rapidash/back.2bpp.lz" DoduoBackpic: INCBIN "gfx/pokemon/doduo/back.2bpp.lz" HoppipFrontpic: INCBIN "gfx/pokemon/hoppip/front.animated.2bpp.lz" MankeyBackpic: INCBIN "gfx/pokemon/mankey/back.2bpp.lz" MagmarBackpic: INCBIN "gfx/pokemon/magmar/back.2bpp.lz" HypnoBackpic: INCBIN "gfx/pokemon/hypno/back.2bpp.lz" QuilavaBackpic: INCBIN "gfx/pokemon/quilava/back.2bpp.lz" CroconawBackpic: INCBIN "gfx/pokemon/croconaw/back.2bpp.lz" SandshrewBackpic: INCBIN "gfx/pokemon/sandshrew/back.2bpp.lz" SailorPic: INCBIN "gfx/trainers/sailor.2bpp.lz" BeautyPic: INCBIN "gfx/trainers/beauty.2bpp.lz" ShellderBackpic: INCBIN "gfx/pokemon/shellder/back.2bpp.lz" ZubatBackpic: INCBIN "gfx/pokemon/zubat/back.2bpp.lz" TeddiursaFrontpic: INCBIN "gfx/pokemon/teddiursa/front.animated.2bpp.lz" CuboneBackpic: INCBIN "gfx/pokemon/cubone/back.2bpp.lz" GruntmPic: INCBIN "gfx/trainers/grunt_m.2bpp.lz" GloomBackpic: INCBIN "gfx/pokemon/gloom/back.2bpp.lz" MagcargoBackpic: INCBIN "gfx/pokemon/magcargo/back.2bpp.lz" KabutopsBackpic: INCBIN "gfx/pokemon/kabutops/back.2bpp.lz" BeedrillBackpic: INCBIN "gfx/pokemon/beedrill/back.2bpp.lz" ArcanineBackpic: INCBIN "gfx/pokemon/arcanine/back.2bpp.lz" FlareonBackpic: INCBIN "gfx/pokemon/flareon/back.2bpp.lz" GoldeenBackpic: INCBIN "gfx/pokemon/goldeen/back.2bpp.lz" BulbasaurFrontpic: INCBIN "gfx/pokemon/bulbasaur/front.animated.2bpp.lz" StarmieBackpic: INCBIN "gfx/pokemon/starmie/back.2bpp.lz" SECTION "Pics 13", ROMX OmanyteBackpic: INCBIN "gfx/pokemon/omanyte/back.2bpp.lz" PidgeyBackpic: INCBIN "gfx/pokemon/pidgey/back.2bpp.lz" ScientistPic: INCBIN "gfx/trainers/scientist.2bpp.lz" QwilfishBackpic: INCBIN "gfx/pokemon/qwilfish/back.2bpp.lz" GligarBackpic: INCBIN "gfx/pokemon/gligar/back.2bpp.lz" TyphlosionBackpic: INCBIN "gfx/pokemon/typhlosion/back.2bpp.lz" CharmeleonBackpic: INCBIN "gfx/pokemon/charmeleon/back.2bpp.lz" NidoqueenBackpic: INCBIN "gfx/pokemon/nidoqueen/back.2bpp.lz" PichuFrontpic: INCBIN "gfx/pokemon/pichu/front.animated.2bpp.lz" ElectabuzzBackpic: INCBIN "gfx/pokemon/electabuzz/back.2bpp.lz" LedianBackpic: INCBIN "gfx/pokemon/ledian/back.2bpp.lz" PupitarBackpic: INCBIN "gfx/pokemon/pupitar/back.2bpp.lz" HeracrossBackpic: INCBIN "gfx/pokemon/heracross/back.2bpp.lz" UnownDFrontpic: INCBIN "gfx/pokemon/unown_d/front.animated.2bpp.lz" MiltankBackpic: INCBIN "gfx/pokemon/miltank/back.2bpp.lz" SteelixBackpic: INCBIN "gfx/pokemon/steelix/back.2bpp.lz" PersianBackpic: INCBIN "gfx/pokemon/persian/back.2bpp.lz" LtSurgePic: INCBIN "gfx/trainers/lt_surge.2bpp.lz" TeacherPic: INCBIN "gfx/trainers/teacher.2bpp.lz" EggPic: INCBIN "gfx/pokemon/egg/front.animated.2bpp.lz" EeveeBackpic: INCBIN "gfx/pokemon/eevee/back.2bpp.lz" ShuckleFrontpic: INCBIN "gfx/pokemon/shuckle/front.animated.2bpp.lz" PonytaBackpic: INCBIN "gfx/pokemon/ponyta/back.2bpp.lz" RemoraidFrontpic: INCBIN "gfx/pokemon/remoraid/front.animated.2bpp.lz" PoliwagFrontpic: INCBIN "gfx/pokemon/poliwag/front.animated.2bpp.lz" OnixBackpic: INCBIN "gfx/pokemon/onix/back.2bpp.lz" KoffingBackpic: INCBIN "gfx/pokemon/koffing/back.2bpp.lz" BirdKeeperPic: INCBIN "gfx/trainers/bird_keeper.2bpp.lz" FalknerPic: INCBIN "gfx/trainers/falkner.2bpp.lz" KarenPic: INCBIN "gfx/trainers/karen.2bpp.lz" NidorinaBackpic: INCBIN "gfx/pokemon/nidorina/back.2bpp.lz" TentacruelBackpic: INCBIN "gfx/pokemon/tentacruel/back.2bpp.lz" GrowlitheBackpic: INCBIN "gfx/pokemon/growlithe/back.2bpp.lz" KogaPic: INCBIN "gfx/trainers/koga.2bpp.lz" MachokeBackpic: INCBIN "gfx/pokemon/machoke/back.2bpp.lz" RaichuBackpic: INCBIN "gfx/pokemon/raichu/back.2bpp.lz" PoliwrathBackpic: INCBIN "gfx/pokemon/poliwrath/back.2bpp.lz" SwimmermPic: INCBIN "gfx/trainers/swimmer_m.2bpp.lz" SunkernFrontpic: INCBIN "gfx/pokemon/sunkern/front.animated.2bpp.lz" NidorinoBackpic: INCBIN "gfx/pokemon/nidorino/back.2bpp.lz" MysticalmanPic: INCBIN "gfx/trainers/mysticalman.2bpp.lz" CooltrainerfPic: INCBIN "gfx/trainers/cooltrainer_f.2bpp.lz" ElectrodeFrontpic: INCBIN "gfx/pokemon/electrode/front.animated.2bpp.lz" SECTION "Pics 14", ROMX SudowoodoBackpic: INCBIN "gfx/pokemon/sudowoodo/back.2bpp.lz" FlaaffyBackpic: INCBIN "gfx/pokemon/flaaffy/back.2bpp.lz" SentretFrontpic: INCBIN "gfx/pokemon/sentret/front.animated.2bpp.lz" TogeticBackpic: INCBIN "gfx/pokemon/togetic/back.2bpp.lz" BugsyPic: INCBIN "gfx/trainers/bugsy.2bpp.lz" MarowakBackpic: INCBIN "gfx/pokemon/marowak/back.2bpp.lz" GeodudeBackpic: INCBIN "gfx/pokemon/geodude/back.2bpp.lz" ScytherBackpic: INCBIN "gfx/pokemon/scyther/back.2bpp.lz" VileplumeBackpic: INCBIN "gfx/pokemon/vileplume/back.2bpp.lz" HitmonchanBackpic: INCBIN "gfx/pokemon/hitmonchan/back.2bpp.lz" JumpluffBackpic: INCBIN "gfx/pokemon/jumpluff/back.2bpp.lz" CooltrainermPic: INCBIN "gfx/trainers/cooltrainer_m.2bpp.lz" BlastoiseBackpic: INCBIN "gfx/pokemon/blastoise/back.2bpp.lz" MisdreavusBackpic: INCBIN "gfx/pokemon/misdreavus/back.2bpp.lz" TyrogueBackpic: INCBIN "gfx/pokemon/tyrogue/back.2bpp.lz" GeodudeFrontpic: INCBIN "gfx/pokemon/geodude/front.animated.2bpp.lz" ScizorBackpic: INCBIN "gfx/pokemon/scizor/back.2bpp.lz" GirafarigBackpic: INCBIN "gfx/pokemon/girafarig/back.2bpp.lz" StantlerBackpic: INCBIN "gfx/pokemon/stantler/back.2bpp.lz" SmeargleBackpic: INCBIN "gfx/pokemon/smeargle/back.2bpp.lz" CharizardBackpic: INCBIN "gfx/pokemon/charizard/back.2bpp.lz" KadabraBackpic: INCBIN "gfx/pokemon/kadabra/back.2bpp.lz" PrimeapeBackpic: INCBIN "gfx/pokemon/primeape/back.2bpp.lz" FurretBackpic: INCBIN "gfx/pokemon/furret/back.2bpp.lz" WartortleBackpic: INCBIN "gfx/pokemon/wartortle/back.2bpp.lz" ExeggcuteBackpic: INCBIN "gfx/pokemon/exeggcute/back.2bpp.lz" IgglybuffFrontpic: INCBIN "gfx/pokemon/igglybuff/front.animated.2bpp.lz" RaticateBackpic: INCBIN "gfx/pokemon/raticate/back.2bpp.lz" VulpixBackpic: INCBIN "gfx/pokemon/vulpix/back.2bpp.lz" EkansBackpic: INCBIN "gfx/pokemon/ekans/back.2bpp.lz" SeakingBackpic: INCBIN "gfx/pokemon/seaking/back.2bpp.lz" BurglarPic: INCBIN "gfx/trainers/burglar.2bpp.lz" PsyduckBackpic: INCBIN "gfx/pokemon/psyduck/back.2bpp.lz" PikachuBackpic: INCBIN "gfx/pokemon/pikachu/back.2bpp.lz" KabutoFrontpic: INCBIN "gfx/pokemon/kabuto/front.animated.2bpp.lz" MareepBackpic: INCBIN "gfx/pokemon/mareep/back.2bpp.lz" RemoraidBackpic: INCBIN "gfx/pokemon/remoraid/back.2bpp.lz" DittoFrontpic: INCBIN "gfx/pokemon/ditto/front.animated.2bpp.lz" KingdraBackpic: INCBIN "gfx/pokemon/kingdra/back.2bpp.lz" CamperPic: INCBIN "gfx/trainers/camper.2bpp.lz" WooperFrontpic: INCBIN "gfx/pokemon/wooper/front.animated.2bpp.lz" ClefairyBackpic: INCBIN "gfx/pokemon/clefairy/back.2bpp.lz" VenonatBackpic: INCBIN "gfx/pokemon/venonat/back.2bpp.lz" BellossomBackpic: INCBIN "gfx/pokemon/bellossom/back.2bpp.lz" Rival1Pic: INCBIN "gfx/trainers/rival1.2bpp.lz" SwinubBackpic: INCBIN "gfx/pokemon/swinub/back.2bpp.lz" SECTION "Pics 15", ROMX MewtwoBackpic: INCBIN "gfx/pokemon/mewtwo/back.2bpp.lz" PokemonProfPic: INCBIN "gfx/trainers/oak.2bpp.lz" CalPic: INCBIN "gfx/trainers/cal.2bpp.lz" SwimmerfPic: INCBIN "gfx/trainers/swimmer_f.2bpp.lz" DiglettFrontpic: INCBIN "gfx/pokemon/diglett/front.animated.2bpp.lz" OfficerPic: INCBIN "gfx/trainers/officer.2bpp.lz" MukBackpic: INCBIN "gfx/pokemon/muk/back.2bpp.lz" DelibirdBackpic: INCBIN "gfx/pokemon/delibird/back.2bpp.lz" SabrinaPic: INCBIN "gfx/trainers/sabrina.2bpp.lz" MagikarpBackpic: INCBIN "gfx/pokemon/magikarp/back.2bpp.lz" AriadosBackpic: INCBIN "gfx/pokemon/ariados/back.2bpp.lz" SneaselBackpic: INCBIN "gfx/pokemon/sneasel/back.2bpp.lz" UmbreonBackpic: INCBIN "gfx/pokemon/umbreon/back.2bpp.lz" MurkrowBackpic: INCBIN "gfx/pokemon/murkrow/back.2bpp.lz" IvysaurBackpic: INCBIN "gfx/pokemon/ivysaur/back.2bpp.lz" SlowbroBackpic: INCBIN "gfx/pokemon/slowbro/back.2bpp.lz" PsychicTPic: INCBIN "gfx/trainers/psychic_t.2bpp.lz" GolduckBackpic: INCBIN "gfx/pokemon/golduck/back.2bpp.lz" WeezingBackpic: INCBIN "gfx/pokemon/weezing/back.2bpp.lz" EnteiBackpic: INCBIN "gfx/pokemon/entei/back.2bpp.lz" GruntfPic: INCBIN "gfx/trainers/grunt_f.2bpp.lz" HorseaFrontpic: INCBIN "gfx/pokemon/horsea/front.animated.2bpp.lz" PidgeotBackpic: INCBIN "gfx/pokemon/pidgeot/back.2bpp.lz" HoOhBackpic: INCBIN "gfx/pokemon/ho_oh/back.2bpp.lz" PoliwhirlBackpic: INCBIN "gfx/pokemon/poliwhirl/back.2bpp.lz" MewBackpic: INCBIN "gfx/pokemon/mew/back.2bpp.lz" MachopBackpic: INCBIN "gfx/pokemon/machop/back.2bpp.lz" AbraBackpic: INCBIN "gfx/pokemon/abra/back.2bpp.lz" AerodactylBackpic: INCBIN "gfx/pokemon/aerodactyl/back.2bpp.lz" KakunaFrontpic: INCBIN "gfx/pokemon/kakuna/front.animated.2bpp.lz" DugtrioBackpic: INCBIN "gfx/pokemon/dugtrio/back.2bpp.lz" WeepinbellBackpic: INCBIN "gfx/pokemon/weepinbell/back.2bpp.lz" NidoranFBackpic: INCBIN "gfx/pokemon/nidoran_f/back.2bpp.lz" GravelerBackpic: INCBIN "gfx/pokemon/graveler/back.2bpp.lz" AipomBackpic: INCBIN "gfx/pokemon/aipom/back.2bpp.lz" EspeonBackpic: INCBIN "gfx/pokemon/espeon/back.2bpp.lz" WeedleFrontpic: INCBIN "gfx/pokemon/weedle/front.animated.2bpp.lz" TotodileBackpic: INCBIN "gfx/pokemon/totodile/back.2bpp.lz" SnubbullBackpic: INCBIN "gfx/pokemon/snubbull/back.2bpp.lz" KinglerBackpic: INCBIN "gfx/pokemon/kingler/back.2bpp.lz" GengarBackpic: INCBIN "gfx/pokemon/gengar/back.2bpp.lz" RattataBackpic: INCBIN "gfx/pokemon/rattata/back.2bpp.lz" YoungsterPic: INCBIN "gfx/trainers/youngster.2bpp.lz" WillPic: INCBIN "gfx/trainers/will.2bpp.lz" SchoolboyPic: INCBIN "gfx/trainers/schoolboy.2bpp.lz" MagnemiteFrontpic: INCBIN "gfx/pokemon/magnemite/front.animated.2bpp.lz" ErikaPic: INCBIN "gfx/trainers/erika.2bpp.lz" JaninePic: INCBIN "gfx/trainers/janine.2bpp.lz" MagnemiteBackpic: INCBIN "gfx/pokemon/magnemite/back.2bpp.lz" SECTION "Pics 16", ROMX HoothootBackpic: INCBIN "gfx/pokemon/hoothoot/back.2bpp.lz" NoctowlBackpic: INCBIN "gfx/pokemon/noctowl/back.2bpp.lz" MortyPic: INCBIN "gfx/trainers/morty.2bpp.lz" SlugmaBackpic: INCBIN "gfx/pokemon/slugma/back.2bpp.lz" KabutoBackpic: INCBIN "gfx/pokemon/kabuto/back.2bpp.lz" VictreebelBackpic: INCBIN "gfx/pokemon/victreebel/back.2bpp.lz" MeowthBackpic: INCBIN "gfx/pokemon/meowth/back.2bpp.lz" MeganiumBackpic: INCBIN "gfx/pokemon/meganium/back.2bpp.lz" PicnickerPic: INCBIN "gfx/trainers/picnicker.2bpp.lz" LickitungBackpic: INCBIN "gfx/pokemon/lickitung/back.2bpp.lz" TogepiFrontpic: INCBIN "gfx/pokemon/togepi/front.animated.2bpp.lz" SuperNerdPic: INCBIN "gfx/trainers/super_nerd.2bpp.lz" HaunterBackpic: INCBIN "gfx/pokemon/haunter/back.2bpp.lz" XatuBackpic: INCBIN "gfx/pokemon/xatu/back.2bpp.lz" RedPic: INCBIN "gfx/trainers/red.2bpp.lz" Porygon2Backpic: INCBIN "gfx/pokemon/porygon2/back.2bpp.lz" JasminePic: INCBIN "gfx/trainers/jasmine.2bpp.lz" PinecoBackpic: INCBIN "gfx/pokemon/pineco/back.2bpp.lz" MetapodFrontpic: INCBIN "gfx/pokemon/metapod/front.animated.2bpp.lz" SeelBackpic: INCBIN "gfx/pokemon/seel/back.2bpp.lz" QuagsireBackpic: INCBIN "gfx/pokemon/quagsire/back.2bpp.lz" WhitneyPic: INCBIN "gfx/trainers/whitney.2bpp.lz" JolteonBackpic: INCBIN "gfx/pokemon/jolteon/back.2bpp.lz" CaterpieFrontpic: INCBIN "gfx/pokemon/caterpie/front.animated.2bpp.lz" HoppipBackpic: INCBIN "gfx/pokemon/hoppip/back.2bpp.lz" BluePic: INCBIN "gfx/trainers/blue.2bpp.lz" GranbullBackpic: INCBIN "gfx/pokemon/granbull/back.2bpp.lz" GentlemanPic: INCBIN "gfx/trainers/gentleman.2bpp.lz" ExecutivemPic: INCBIN "gfx/trainers/executive_m.2bpp.lz" SpearowBackpic: INCBIN "gfx/pokemon/spearow/back.2bpp.lz" SunkernBackpic: INCBIN "gfx/pokemon/sunkern/back.2bpp.lz" LaprasBackpic: INCBIN "gfx/pokemon/lapras/back.2bpp.lz" MagbyBackpic: INCBIN "gfx/pokemon/magby/back.2bpp.lz" DragonairBackpic: INCBIN "gfx/pokemon/dragonair/back.2bpp.lz" ZapdosBackpic: INCBIN "gfx/pokemon/zapdos/back.2bpp.lz" ChikoritaBackpic: INCBIN "gfx/pokemon/chikorita/back.2bpp.lz" CorsolaBackpic: INCBIN "gfx/pokemon/corsola/back.2bpp.lz" ChinchouBackpic: INCBIN "gfx/pokemon/chinchou/back.2bpp.lz" ChanseyBackpic: INCBIN "gfx/pokemon/chansey/back.2bpp.lz" SkiploomBackpic: INCBIN "gfx/pokemon/skiploom/back.2bpp.lz" SpinarakFrontpic: INCBIN "gfx/pokemon/spinarak/front.animated.2bpp.lz" Rival2Pic: INCBIN "gfx/trainers/rival2.2bpp.lz" UnownWFrontpic: INCBIN "gfx/pokemon/unown_w/front.animated.2bpp.lz" CharmanderBackpic: INCBIN "gfx/pokemon/charmander/back.2bpp.lz" RhyhornBackpic: INCBIN "gfx/pokemon/rhyhorn/back.2bpp.lz" UnownCFrontpic: INCBIN "gfx/pokemon/unown_c/front.animated.2bpp.lz" MistyPic: INCBIN "gfx/trainers/misty.2bpp.lz" BlainePic: INCBIN "gfx/trainers/blaine.2bpp.lz" UnownZFrontpic: INCBIN "gfx/pokemon/unown_z/front.animated.2bpp.lz" SwinubFrontpic: INCBIN "gfx/pokemon/swinub/front.animated.2bpp.lz" LarvitarBackpic: INCBIN "gfx/pokemon/larvitar/back.2bpp.lz" PorygonBackpic: INCBIN "gfx/pokemon/porygon/back.2bpp.lz" UnownHBackpic: INCBIN "gfx/pokemon/unown_h/back.2bpp.lz" SECTION "Pics 17", ROMX ParasBackpic: INCBIN "gfx/pokemon/paras/back.2bpp.lz" VaporeonBackpic: INCBIN "gfx/pokemon/vaporeon/back.2bpp.lz" TentacoolBackpic: INCBIN "gfx/pokemon/tentacool/back.2bpp.lz" ExecutivefPic: INCBIN "gfx/trainers/executive_f.2bpp.lz" BulbasaurBackpic: INCBIN "gfx/pokemon/bulbasaur/back.2bpp.lz" SmoochumBackpic: INCBIN "gfx/pokemon/smoochum/back.2bpp.lz" PichuBackpic: INCBIN "gfx/pokemon/pichu/back.2bpp.lz" HoundoomBackpic: INCBIN "gfx/pokemon/houndoom/back.2bpp.lz" BellsproutBackpic: INCBIN "gfx/pokemon/bellsprout/back.2bpp.lz" GrimerBackpic: INCBIN "gfx/pokemon/grimer/back.2bpp.lz" LanturnBackpic: INCBIN "gfx/pokemon/lanturn/back.2bpp.lz" PidgeottoBackpic: INCBIN "gfx/pokemon/pidgeotto/back.2bpp.lz" StaryuBackpic: INCBIN "gfx/pokemon/staryu/back.2bpp.lz" MrMimeBackpic: INCBIN "gfx/pokemon/mr__mime/back.2bpp.lz" CaterpieBackpic: INCBIN "gfx/pokemon/caterpie/back.2bpp.lz" VoltorbFrontpic: INCBIN "gfx/pokemon/voltorb/front.animated.2bpp.lz" LugiaBackpic: INCBIN "gfx/pokemon/lugia/back.2bpp.lz" PrycePic: INCBIN "gfx/trainers/pryce.2bpp.lz" BrockPic: INCBIN "gfx/trainers/brock.2bpp.lz" UnownGFrontpic: INCBIN "gfx/pokemon/unown_g/front.animated.2bpp.lz" ArbokBackpic: INCBIN "gfx/pokemon/arbok/back.2bpp.lz" PolitoedBackpic: INCBIN "gfx/pokemon/politoed/back.2bpp.lz" DragoniteBackpic: INCBIN "gfx/pokemon/dragonite/back.2bpp.lz" HitmonleeBackpic: INCBIN "gfx/pokemon/hitmonlee/back.2bpp.lz" NatuFrontpic: INCBIN "gfx/pokemon/natu/front.animated.2bpp.lz" UrsaringBackpic: INCBIN "gfx/pokemon/ursaring/back.2bpp.lz" SagePic: INCBIN "gfx/trainers/sage.2bpp.lz" TeddiursaBackpic: INCBIN "gfx/pokemon/teddiursa/back.2bpp.lz" PhanpyBackpic: INCBIN "gfx/pokemon/phanpy/back.2bpp.lz" UnownVFrontpic: INCBIN "gfx/pokemon/unown_v/front.animated.2bpp.lz" KakunaBackpic: INCBIN "gfx/pokemon/kakuna/back.2bpp.lz" WobbuffetBackpic: INCBIN "gfx/pokemon/wobbuffet/back.2bpp.lz" TogepiBackpic: INCBIN "gfx/pokemon/togepi/back.2bpp.lz" CrobatBackpic: INCBIN "gfx/pokemon/crobat/back.2bpp.lz" BlisseyBackpic: INCBIN "gfx/pokemon/blissey/back.2bpp.lz" AmpharosBackpic: INCBIN "gfx/pokemon/ampharos/back.2bpp.lz" IgglybuffBackpic: INCBIN "gfx/pokemon/igglybuff/back.2bpp.lz" AzumarillBackpic: INCBIN "gfx/pokemon/azumarill/back.2bpp.lz" OctilleryBackpic: INCBIN "gfx/pokemon/octillery/back.2bpp.lz" UnownSFrontpic: INCBIN "gfx/pokemon/unown_s/front.animated.2bpp.lz" HorseaBackpic: INCBIN "gfx/pokemon/horsea/back.2bpp.lz" SentretBackpic: INCBIN "gfx/pokemon/sentret/back.2bpp.lz" UnownOFrontpic: INCBIN "gfx/pokemon/unown_o/front.animated.2bpp.lz" UnownTFrontpic: INCBIN "gfx/pokemon/unown_t/front.animated.2bpp.lz" WigglytuffBackpic: INCBIN "gfx/pokemon/wigglytuff/back.2bpp.lz" ArticunoBackpic: INCBIN "gfx/pokemon/articuno/back.2bpp.lz" DittoBackpic: INCBIN "gfx/pokemon/ditto/back.2bpp.lz" WeedleBackpic: INCBIN "gfx/pokemon/weedle/back.2bpp.lz" UnownHFrontpic: INCBIN "gfx/pokemon/unown_h/front.animated.2bpp.lz" CleffaBackpic: INCBIN "gfx/pokemon/cleffa/back.2bpp.lz" DrowzeeBackpic: INCBIN "gfx/pokemon/drowzee/back.2bpp.lz" GastlyBackpic: INCBIN "gfx/pokemon/gastly/back.2bpp.lz" FearowBackpic: INCBIN "gfx/pokemon/fearow/back.2bpp.lz" MarillBackpic: INCBIN "gfx/pokemon/marill/back.2bpp.lz" DratiniBackpic: INCBIN "gfx/pokemon/dratini/back.2bpp.lz" ElectrodeBackpic: INCBIN "gfx/pokemon/electrode/back.2bpp.lz" SkarmoryBackpic: INCBIN "gfx/pokemon/skarmory/back.2bpp.lz" MetapodBackpic: INCBIN "gfx/pokemon/metapod/back.2bpp.lz" JigglypuffBackpic: INCBIN "gfx/pokemon/jigglypuff/back.2bpp.lz" OddishBackpic: INCBIN "gfx/pokemon/oddish/back.2bpp.lz" UnownDBackpic: INCBIN "gfx/pokemon/unown_d/back.2bpp.lz" SECTION "Pics 18", ROMX SpinarakBackpic: INCBIN "gfx/pokemon/spinarak/back.2bpp.lz" RaikouBackpic: INCBIN "gfx/pokemon/raikou/back.2bpp.lz" UnownKFrontpic: INCBIN "gfx/pokemon/unown_k/front.animated.2bpp.lz" HoundourBackpic: INCBIN "gfx/pokemon/houndour/back.2bpp.lz" PoliwagBackpic: INCBIN "gfx/pokemon/poliwag/back.2bpp.lz" SquirtleBackpic: INCBIN "gfx/pokemon/squirtle/back.2bpp.lz" ShuckleBackpic: INCBIN "gfx/pokemon/shuckle/back.2bpp.lz" DewgongBackpic: INCBIN "gfx/pokemon/dewgong/back.2bpp.lz" UnownBFrontpic: INCBIN "gfx/pokemon/unown_b/front.animated.2bpp.lz" SlowpokeBackpic: INCBIN "gfx/pokemon/slowpoke/back.2bpp.lz" DunsparceBackpic: INCBIN "gfx/pokemon/dunsparce/back.2bpp.lz" DonphanBackpic: INCBIN "gfx/pokemon/donphan/back.2bpp.lz" WooperBackpic: INCBIN "gfx/pokemon/wooper/back.2bpp.lz" TaurosBackpic: INCBIN "gfx/pokemon/tauros/back.2bpp.lz" UnownXFrontpic: INCBIN "gfx/pokemon/unown_x/front.animated.2bpp.lz" UnownNFrontpic: INCBIN "gfx/pokemon/unown_n/front.animated.2bpp.lz" TangelaBackpic: INCBIN "gfx/pokemon/tangela/back.2bpp.lz" VoltorbBackpic: INCBIN "gfx/pokemon/voltorb/back.2bpp.lz" UnownJFrontpic: INCBIN "gfx/pokemon/unown_j/front.animated.2bpp.lz" MantineBackpic: INCBIN "gfx/pokemon/mantine/back.2bpp.lz" UnownLFrontpic: INCBIN "gfx/pokemon/unown_l/front.animated.2bpp.lz" PiloswineBackpic: INCBIN "gfx/pokemon/piloswine/back.2bpp.lz" UnownMFrontpic: INCBIN "gfx/pokemon/unown_m/front.animated.2bpp.lz" UnownFFrontpic: INCBIN "gfx/pokemon/unown_f/front.animated.2bpp.lz" NatuBackpic: INCBIN "gfx/pokemon/natu/back.2bpp.lz" UnownAFrontpic: INCBIN "gfx/pokemon/unown_a/front.animated.2bpp.lz" GolemBackpic: INCBIN "gfx/pokemon/golem/back.2bpp.lz" UnownUFrontpic: INCBIN "gfx/pokemon/unown_u/front.animated.2bpp.lz" DiglettBackpic: INCBIN "gfx/pokemon/diglett/back.2bpp.lz" UnownQFrontpic: INCBIN "gfx/pokemon/unown_q/front.animated.2bpp.lz" UnownPFrontpic: INCBIN "gfx/pokemon/unown_p/front.animated.2bpp.lz" UnownCBackpic: INCBIN "gfx/pokemon/unown_c/back.2bpp.lz" JynxBackpic: INCBIN "gfx/pokemon/jynx/back.2bpp.lz" GolbatBackpic: INCBIN "gfx/pokemon/golbat/back.2bpp.lz" UnownYFrontpic: INCBIN "gfx/pokemon/unown_y/front.animated.2bpp.lz" UnownGBackpic: INCBIN "gfx/pokemon/unown_g/back.2bpp.lz" UnownIFrontpic: INCBIN "gfx/pokemon/unown_i/front.animated.2bpp.lz" UnownVBackpic: INCBIN "gfx/pokemon/unown_v/back.2bpp.lz" ForretressBackpic: INCBIN "gfx/pokemon/forretress/back.2bpp.lz" UnownSBackpic: INCBIN "gfx/pokemon/unown_s/back.2bpp.lz" UnownRFrontpic: INCBIN "gfx/pokemon/unown_r/front.animated.2bpp.lz" UnownEBackpic: INCBIN "gfx/pokemon/unown_e/back.2bpp.lz" UnownJBackpic: INCBIN "gfx/pokemon/unown_j/back.2bpp.lz" UnownBBackpic: INCBIN "gfx/pokemon/unown_b/back.2bpp.lz" UnownOBackpic: INCBIN "gfx/pokemon/unown_o/back.2bpp.lz" UnownZBackpic: INCBIN "gfx/pokemon/unown_z/back.2bpp.lz" UnownWBackpic: INCBIN "gfx/pokemon/unown_w/back.2bpp.lz" UnownNBackpic: INCBIN "gfx/pokemon/unown_n/back.2bpp.lz" UnownABackpic: INCBIN "gfx/pokemon/unown_a/back.2bpp.lz" UnownMBackpic: INCBIN "gfx/pokemon/unown_m/back.2bpp.lz" UnownKBackpic: INCBIN "gfx/pokemon/unown_k/back.2bpp.lz" UnownTBackpic: INCBIN "gfx/pokemon/unown_t/back.2bpp.lz" UnownXBackpic: INCBIN "gfx/pokemon/unown_x/back.2bpp.lz" UnownLBackpic: INCBIN "gfx/pokemon/unown_l/back.2bpp.lz" UnownUBackpic: INCBIN "gfx/pokemon/unown_u/back.2bpp.lz" UnownQBackpic: INCBIN "gfx/pokemon/unown_q/back.2bpp.lz" UnownYBackpic: INCBIN "gfx/pokemon/unown_y/back.2bpp.lz" UnownPBackpic: INCBIN "gfx/pokemon/unown_p/back.2bpp.lz" UnownIBackpic: INCBIN "gfx/pokemon/unown_i/back.2bpp.lz" UnownRBackpic: INCBIN "gfx/pokemon/unown_r/back.2bpp.lz" FlambearFrontpic: INCBIN "gfx/pokemon/flambear/front.animated.2bpp.lz" FlambearBackpic: INCBIN "gfx/pokemon/flambear/back.2bpp.lz" SECTION "Pics 19", ROMX ; Seems to be an accidental copy of the previous bank SamuraiPic: INCBIN "gfx/trainers/samurai.2bpp.lz" AutistPic: INCBIN "gfx/trainers/chrischan.2bpp.lz"
59.394191
75
0.758162
38fe53d728bc2bde0ea8c1438efe63a4eee57a35
415
asm
Assembly
dataToTestOn/asm/5/prog03.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
1
2020-11-10T18:42:46.000Z
2020-11-10T18:42:46.000Z
dataToTestOn/asm/5/prog03.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
null
null
null
dataToTestOn/asm/5/prog03.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
null
null
null
ZNAKI EQU 30H LJMP START ORG 100H START: MOV ZNAKI, #01011011B MOV R3, #010101B START2: MOV R2, #0 WYSW: SETB P1.6 MOV R0, #CSDS MOV A, R3 MOVX @R0, A MOV R0, #CSDB ;MOV R1, #ZNAKI MOV A, ZNAKI MOVX @R0, A CLR P1.6 MOV A, #1 CALL DELAY_MS INC R2 CJNE R2, #6, WYSW SJMP START2
18.043478
28
0.457831
b0a441c40aa276403b69da8afcbda564cc3c451f
765
asm
Assembly
oeis/104/A104970.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/104/A104970.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/104/A104970.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A104970: Sum of squares of terms in even-indexed rows of triangle A104967. ; Submitted by Christian Krause ; 1,6,18,92,298,1444,4852,22840,78490,362580,1265564,5767688,20366596,91866984,327351336,1464522864,5257011066,23361650484,84371466636,372831130344,1353477992556,5952169844664,21704580414936,95051752387344,347959405866276,1518248229902856,5577074386663320,24255236972301392,89372257288445128,387556295653321552,1431960601048424784,6193270757448960224,22940458888853250362,98981263989429267188,367472014482476492012,1582074335746568813480,5885784802709438474716,25289269775173380108696 mul $0,2 mov $1,-1 mov $2,1 mov $3,$0 mov $4,1 lpb $3 mul $1,2 mul $1,$4 mul $1,2 mul $2,4 sub $3,2 sub $5,2 div $1,$5 add $2,$1 add $4,2 lpe mov $0,$2
34.772727
484
0.801307
fc0d2fe6add5a8270ecc272959608b0040cd4df3
4,137
asm
Assembly
third-party/gmp/gmp-src/mpn/x86_64/bd1/aorsmul_1.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
third-party/gmp/gmp-src/mpn/x86_64/bd1/aorsmul_1.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
third-party/gmp/gmp-src/mpn/x86_64/bd1/aorsmul_1.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl AMD64 mpn_addmul_1 and mpn_submul_1 optimised for AMD Bulldozer. dnl Copyright 2003-2005, 2007, 2008, 2011, 2012 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 AMD K8,K9 3.30 3.58 C AMD K10 3.09 C AMD bull 4.47 4.72 C AMD pile 4.66 C AMD steam C AMD excavator C AMD bobcat 6.30 C AMD jaguar 6.29 C Intel P4 17.3 17.8 C Intel core2 5.13 C Intel NHM 4.85 C Intel SBR 3.83 C Intel IBR 3.75 C Intel HWL 3.45 C Intel BWL 2.56 C Intel SKL 2.53 C Intel atom 20.3 C Intel SLM 9 C VIA nano C The loop of this code is the result of running a code generation and C optimisation tool suite written by David Harvey and Torbjorn Granlund. C TODO C * Try to make loop run closer to 4 c/l in Bulldozer and Piledriver. define(`rp', `%rdi') C rcx define(`up', `%rsi') C rdx define(`n_param', `%rdx') C r8 define(`v0', `%rcx') C r9 define(`n', `%r11') ifdef(`OPERATION_addmul_1',` define(`ADDSUB', `add') define(`func', `mpn_addmul_1') ') ifdef(`OPERATION_submul_1',` define(`ADDSUB', `sub') define(`func', `mpn_submul_1') ') ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) MULFUNC_PROLOGUE(mpn_addmul_1 mpn_submul_1) IFDOS(` define(`up', ``%rsi'') ') dnl IFDOS(` define(`rp', ``%rcx'') ') dnl IFDOS(` define(`v0', ``%r9'') ') dnl IFDOS(` define(`r9', ``rdi'') ') dnl IFDOS(` define(`n', ``%r8'') ') dnl IFDOS(` define(`r8', ``r11'') ') dnl ASM_START() TEXT ALIGN(16) PROLOGUE(func) IFDOS(``push %rsi '') IFDOS(``push %rdi '') IFDOS(``mov %rdx, %rsi '') mov (up), %rax C read first u limb early push %rbx IFSTD(` mov n_param, %rbx ') C move away n from rdx, mul uses it IFDOS(` mov n, %rbx ') mul v0 IFSTD(` mov %rbx, n ') and $3, R32(%rbx) lea -16(rp,n,8), rp jz L(b0) cmp $2, R32(%rbx) jb L(b1) jz L(b2) L(b3): mov $0, R32(%r8) mov %rax, %rbx mov $0, R32(%r9) mov 8(up), %rax mov %rdx, %r10 lea (up,n,8), up not n jmp L(L3) L(b0): mov $0, R32(%r10) mov %rax, %r8 mov %rdx, %rbx mov 8(up), %rax lea (up,n,8), up neg n jmp L(L0) L(b1): cmp $1, n jz L(n1) mov %rax, %r9 mov 8(up), %rax mov %rdx, %r8 mov $0, R32(%rbx) lea (up,n,8), up neg n inc n jmp L(L1) L(b2): mov $0, R32(%rbx) mov %rax, %r10 mov %rdx, %r9 mov 8(up), %rax mov $0, R32(%r8) lea (up,n,8), up neg n add $2, n jns L(end) ALIGN(32) L(top): mul v0 ADDSUB %r10, (rp,n,8) adc %rax, %r9 mov (up,n,8), %rax adc %rdx, %r8 L(L1): mul v0 mov $0, R32(%r10) ADDSUB %r9, 8(rp,n,8) adc %rax, %r8 adc %rdx, %rbx mov 8(up,n,8), %rax L(L0): mul v0 ADDSUB %r8, 16(rp,n,8) mov $0, R32(%r8) adc %rax, %rbx mov $0, R32(%r9) mov 16(up,n,8), %rax adc %rdx, %r10 L(L3): mul v0 ADDSUB %rbx, 24(rp,n,8) mov $0, R32(%rbx) adc %rax, %r10 adc %rdx, %r9 mov 24(up,n,8), %rax add $4, n js L(top) L(end): mul v0 ADDSUB %r10, (rp) adc %r9, %rax adc %r8, %rdx L(n1): ADDSUB %rax, 8(rp) adc $0, %rdx mov %rdx, %rax pop %rbx IFDOS(``pop %rdi '') IFDOS(``pop %rsi '') ret EPILOGUE() ASM_END()
21.659686
79
0.624365
f28bd20ffa9f89a2d110cf9f8445dbdf25ea07f3
2,390
asm
Assembly
libsrc/adt/linkedlist/adt_ListPrepend_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/adt/linkedlist/adt_ListPrepend_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/adt/linkedlist/adt_ListPrepend_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; int __CALLEE__ adt_ListPrepend_callee(struct adt_List *list, void *item) ; 02.2003, 06.2005 aralbrec PUBLIC adt_ListPrepend_callee PUBLIC ASMDISP_ADT_LISTPREPEND_CALLEE PUBLIC ASMDISP_ADT_LISTPREPEND2 EXTERN ADTemptylistadd EXTERN _u_malloc .adt_ListPrepend_callee pop hl pop bc pop de push hl .asmentry ; enter: de = struct adt_List * ; bc = item * ; exit : carry reset if fail (no memory) and hl = 0 else: ; new item prepended to start of list, current points at new item, hl != 0 ; uses : af, bc, de, hl push bc push de ld hl,6 ; sizeof(struct adt_ListNode) push hl call _u_malloc pop bc pop de pop bc ret nc ; alloc memory failed ld (hl),c inc hl ld (hl),b ; store user item into new NODE inc hl ; hl = new NODE.next ex de,hl ; hl = LIST*, de = new NODE.next ld a,(hl) inc (hl) ; increase item count inc hl jp nz, noinchi inc (hl) jp cont .noinchi or (hl) ; hl = LIST.count+1, de = new NODE.next, list count & item done jp z, ADTemptylistadd ; if there are no items in list jump to emptylistadd helper .cont inc hl ; hl = LIST.state, de = new NODE.next, list count & item done .ADTListPrepend2 ld (hl),1 ; current INLIST inc hl dec de dec de ; de = new NODE push de ; stack = new NODE ld (hl),d inc hl ld (hl),e ; current = new NODE inc hl ; hl = head inc de inc de ; de = new NODE.next ldi ldi ; new NODE.next = head, hl = tail xor a ld (de),a inc de ld (de),a ; new NODE.prev = NULL dec hl ld e,(hl) dec hl ; hl = head ld d,(hl) ; de = old head NODE pop bc ; bc = new NODE ld (hl),b inc hl ld (hl),c ; head = new NODE ex de,hl ; hl = old head NODE inc hl inc hl inc hl inc hl ; hl = old head NODE.prev ld (hl),b inc hl ld (hl),c ; old head NODE.prev = new NODE scf ret DEFC ASMDISP_ADT_LISTPREPEND_CALLEE = # asmentry - adt_ListPrepend_callee DEFC ASMDISP_ADT_LISTPREPEND2 = # ADTListPrepend2 - adt_ListPrepend_callee
24.387755
89
0.543933
e8a45f486c1c70088994daabcfb5abde4b5b1fb6
11,120
asm
Assembly
Miscellaneous/Chip16-Emulator/roms/Sources/Herdle/Herdle.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
2
2017-09-11T19:13:06.000Z
2020-01-20T09:05:40.000Z
Miscellaneous/Chip16-Emulator/roms/Sources/Herdle/Herdle.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
null
null
null
Miscellaneous/Chip16-Emulator/roms/Sources/Herdle/Herdle.asm
ghivert/Student-Projects
43d7a61eac94365b3296ea09311f855ac00d71d1
[ "MIT" ]
3
2017-02-08T18:01:56.000Z
2018-10-04T21:30:08.000Z
; Herding game for Chip16 ; Coding: Tim Kelsall ; Art: Chris Kelsall ;------------------------------------------------------------------------------- ; Outline: ; You are a sheep dog, you get round the sheep, and reach the exit, ; at the top of the screen, without colliding into sheep or fencing. ; A path counter decrements every step; if runs out, lose life. ; Collision with either removes life; when out of lives, game over. ;------------------------------------------------------------------------------- ; Memory layout: ; r0-4: scratch registers ; r5: time ; r6: nb lives ; r7: box count ; r8: box.x = prevdog.x ; r9: box.y = prevdog.y ; ra: dog.x (grid) ; rb: dog.y (grid) ; rc: dog.dir (1=U,2=D,4=L,8=R) ; rd: firstRun? boolean ; re: move counter (decrements every step) ; rf: dog.spr_address (animation) ; 0xF000 - 0xF257: collision array (16-bit) ; -> hi byte = 0xFF if sheep, 0x00 otherwise ; -> lo byte = 0xFF if box, 0x00 otherwise ; 0xF258: exit x-coord ; 0xF300: timer constant ; 0xF302: move counter reset value (decrease every screen) ;------------------------------------------------------------------------------- ; GFX imports: importbin title.bin 0 15680 spr_title importbin dog.bin 0 128 spr_dog1 importbin dog.bin 128 128 spr_dog2 importbin sheep.bin 0 128 spr_sheep1 importbin sheep.bin 128 128 spr_sheep2 importbin box.bin 0 128 spr_box importbin exit.bin 0 128 spr_exit importbin steps.bin 0 128 spr_steps importbin empty.bin 0 128 spr_empty importbin font.bin 0 7125 spr_font ;------------------------------------------------------------------------------- ; CODE: ;----------- ; Initialisation code run only once during game pre_init: ldi r6, 3 ; reset score ldi r0, 0xFF13 stm r0, ascii_score_val ; and in memory too! ldi r0, 40 stm r0, 0xF300 ; timer mult. const. = 40 ldi r0, 0x15 stm r0, 0xF302 ; move cnt reset value = 0x15 ;----------- ;Title screen title: cls spr 0x8C70 ldi r1, 48 ldi r2, 20 drw r1, r2, spr_title ldi r0, ascii_press_start ldi r1, 110 ldi r2, 170 call text_disp ldi r0, ascii_credits ldi r1, 70 ldi r2, 220 call text_disp vblnk ; Test for START until pressed title_loop: ldm r0, 0xFFF0 andi r0, 0x20 jmz title_loop ;----------- ; Initialization code init: cls bgc 0x1 ; black bg spr 0x1008 ; sprites are 16x16 (0x10 * 0x08 bytes) ldm r5, 0xF300 ; reset timer ldi r0, 20 ; if 20 or less, game is won! sub r0, r5 jmc init_cont jmp game_win init_cont: ldi r7, 0 ; no boxes initially ldi r8, 0xFFFF ; initialize box.x ldi r9, 0xFFFF ; initialize box.y ldi rd, 1 ; this is the first run ldm re, 0xF302 ; initialize mvt counter subi re, 1 ; decrease it for next screen stm re, 0xF302 ; TODO: ADD BOUNDS CHECK ldi rf, spr_dog1 ; current animation frame ; Make the array empty zero_array: ldi r0, 0xF000 ldi r1, 0x258 zero_array_cont: subi r1, 2 jmc place_exit add r0, r1, r2 ldi r3, 0x0000 stm r3, r2 jmp zero_array_cont ; Place the exit at a random x-coord place_exit: rnd r0, 19 stm r0, 0xF258 ; Place the sheep at random initial positions place_sheep: ldi r0, 24 ; counter to 24 ldi r3, 0xF000 ; coll. array base address place_sheep_loop: subi r0, 1 jmc place_dog rnd r1, 15 ; random sheep.x addi r1, 2 rnd r2, 7 ; random sheep.y addi r2, 3 muli r2, 20 ; . add r1, r2, r4 ; .. shl r4, 1 ; ... add r4, r3 ; ...(y*20 + x)*2 + 0xF000 ldi r1, 0xFF00 stm r1, r4 jmp place_sheep_loop ; Place the dog middle-bottom, facing up place_dog: ldi ra, 9 ldi rb, 13 ldi rc, 1 ;----------- ; Main game loop, as described in outline game_loop: ;jmp draw wander_sheep: ; TODO ;----------- ; Get input from player, change direction accordingly get_input: ldm r0, 0xFFF0 ; get P1 ctlr status andi r0, 0x0D jmz move mov rc, r0 ;----------- ; Move player according to direction move: subi re, 1 jmz move_cont jmp draw ; [modify this to improve speed] move_cont: ldm re, 0xF302 ; first, reset counter subi r5, 1 ; then, decrement the timer jmz game_over ; time's up! move_update_timer: ldi r1, 100 ; update path ctr in memory... div r5, r1, r2 ; r2 = X00 mul r1, r2, r3 sub r5, r3, r0 ldi r1, 10 div r0, r1, r4 ; r4 = 0X0 mul r1, r4, r3 sub r0, r3 ; r0 = 00X addi r2, 0x10 addi r4, 0x10 addi r0, 0x10 mov r1, r4 shl r1, 8 or r1, r2 ldi r2, 0xFF00 ; ensure ended by '\0' or r2, r0 ldi r0, ascii_path_val stm r1, r0 addi r0, 2 stm r2, r0 ; ... . move_cont2: snd1 20 ; play a sound ldi r0, spr_dog1 ; swap animation frame sub rf, r0, r0 jmz move_dog2 ldi rf, spr_dog1 jmp move_updatebox move_dog2: ldi rf, spr_dog2 move_updatebox: mov r8, ra ; update box.x... mov r9, rb ; ...and box.y move_test_up: ldi r1, 1 and r1, rc jmz move_test_left subi rb, 1 jmz move_test_up_check jmp check_collision move_test_up_check: ldm r0, 0xF258 jme ra, r0, end_screen jmp game_over move_test_left: ldi r1, 4 and r1, rc jmz move_test_right subi ra, 1 jmc game_over jmp check_collision move_test_right: ldi r1, 8 and r1, rc jmz check_collision addi ra, 1 mov r0, ra subi r0, 20 jmc check_collision jmp game_over ;----------- ; Check for collision at new position check_collision: ; Check for collision with box/fencing ldi r0, 0xF000 mov r1, rb muli r1, 20 add r1, ra shl r1, 1 ; mult. by 2 for 16-bit words add r1, r0 ldm r2, r1 andi r2, 0xFFFF jmz lay_box ; 0: no box nor sheep jmp game_over ;----------- ; Lay a box/fence at position lay_box: addi r7, 1 ; increment box count ldi r0, 0xF000 ; calculate this box's address mov r1, r9 muli r1, 20 add r1, r8 shl r1, 1 add r1, r0 ldm r2, r1 ori r2, 0x00FF ; add the box to the mask stm r2, r1 ;----------- ; Draw it all on screen draw: ; draw dog mov r0, ra shl r0, 4 mov r1, rb shl r1, 4 drw r0, r1, rf ; draw box mov r0, r8 shl r0, 4 mov r1, r9 shl r1, 4 drw r0, r1, spr_empty drw r0, r1, spr_steps ; draw path ldi r0, ascii_path_val ldi r1, 290 ldi r2, 227 call text_disp addi rd, 0 ; only draw sheep... jmz draw_finish ; ...if this is the first run ; draw sheep draw_sheep: ldi rd, 0 ; the first run is over. ldi r0, 0xF000 ldi r1, 0x258 draw_sheep_cont: subi r1, 2 jmc draw_hud add r0, r1, r2 ldm r3, r2 mov r2, r1 divi r2, 2 andi r3, 0xFF00 ; check for sheep jmz draw_sheep_cont mov r3, r2 divi r3, 20 mov r4, r3 muli r4, 20 sub r2, r4, r4 shl r3, 4 ; sheep.y shl r4, 4 ; sheep.x drw r4, r3, spr_sheep1 jmp draw_sheep_cont draw_hud: ldi r0, ascii_score ldi r1, 0 ldi r2, 227 call text_disp ldi r0, ascii_score_val ldi r1, 60 call text_disp ldi r0, ascii_path ldi r1, 240 call text_disp draw_top_fence: ldi r0, 320 ldi r1, 0 draw_top_fence_loop: subi r0, 16 jmc draw_exit drw r0, r1, spr_box jmp draw_top_fence_loop draw_exit: ldm r0, 0xF258 muli r0, 16 ldi r1, 0 drw r0, r1, spr_exit draw_finish: vblnk jmp game_loop ;----------- ; Inter-screen end_screen: ldm r0, 0xF300 ; take 2 from move counter subi r0, 2 stm r0, 0xF300 snd2 300 ; play a sound! bgc 0xA ; flash the screen vblnk ldi r0, 6 call pause bgc 0x1 vblnk ldi r0, 45 ; pause for 750ms... call pause jmp init ; then next screen ;----------- ; GAME OVER game_over: snd3 300 ; play a sound! ldm r0, 0xF302 ; ensure the speed doesn't increase addi r0, 1 stm r0, 0xF302 bgc 0x3 vblnk ldi r0, 2 call pause bgc 0x1 vblnk ldi r0, 100 ; pause... call pause game_over_cont: subi r6, 1 jmc game_over_def mov r0, r6 addi r0, 0x10 ori r0, 0xFF00 stm r0, ascii_score_val jmp init game_over_def: ; then it's game over >:D cls ldi r0, ascii_game_over ldi r1, 120 ldi r2, 110 call text_disp vblnk ldi r0, 240 call pause jmp pre_init ;----------- ; GAME WIN game_win: snd1 200 ldi r0, 9 call pause snd2 200 ldi r0, 9 call pause snd3 200 ldi r0, 9 call pause cls ldi r0, ascii_congrats ldi r1, 85 ldi r2, 100 call text_disp ldi r0, ascii_beat_game ldi r1, 75 ldi r2, 170 call text_disp ldi r1, 10 game_win_pause: subi r1, 1 jmc pre_init ldi r0, 240 call pause jmp game_win_pause ;----------- ; TEXT DISPLAYING ROUTINE ; r0: char ptr, r1-2: pos ; Non-standard: uses 0xFF as string terminator text_disp: spr 0x0F05 ; chars are 10x15 px ldi r4, 0x00FF text_disp_cont: ldm r3, r0 ; read value... andi r3, 0x00FF ; ...but keep only low byte jme r3, r4, text_disp_end ; hit end-of-string, exit muli r3, 75 ; convert char offs to byte offs (thx S) addi r3, spr_font ; offset to ascii data drw r1, r2, r3 addi r0, 1 ; increment char ptr addi r1, 10 ; next char 10px right jmp text_disp_cont text_disp_end: spr 0x1008 ret ;---------- ; PAUSING ROUTINE ; r0: delay in vblnks (16.66ms) pause: subi r0, 1 jmc pause_end vblnk jmp pause pause_end: ret ;------------------------------------------------------------------------------- ; ASCII data ascii_press_start: db 0x30 ; P db 0x52 ; r db 0x45 ; e db 0x53 ; s db 0x53 ; s db 0x00 ; db 0x33 ; S db 0x34 ; T db 0x21 ; A db 0x32 ; R db 0x34 ; T db 0xFF ; \0 ascii_credits: db 0x12 ; 2 db 0x10 ; 0 db 0x11 ; 1 db 0x11 ; 1 db 0x0C ; , db 0x00 ; db 0x2B ; K db 0x45 ; e db 0x4C ; l db 0x53 ; s db 0x41 ; a db 0x4C ; l db 0x4C ; l db 0x00 ; db 0x22 ; B db 0x52 ; r db 0x4F ; o db 0x53 ; s db 0x0E ; . db 0xFF ; \0 ascii_score: db 0x2C ; L db 0x49 ; i db 0x56 ; v db 0x45 ; e db 0x53 ; s db 0x1A ; : db 0xFF ; \0 ascii_score_val: db 0x10 ; 0 db 0xFF ; \0 ascii_path: db 0x30 ; P db 0x41 ; a db 0x54 ; t db 0x48 ; h db 0x1A ; : db 0xFF ; \0 ascii_path_val: db 0x10 ; 0 db 0x10 ; 0 db 0x10 ; 0 db 0xFF ; \0 ascii_game_over: db 0x27 ; G db 0x41 ; a db 0x4D ; m db 0x45 ; e db 0x00 ; db 0x2F ; O db 0x56 ; v db 0x45 ; e db 0x52 ; r db 0xFF ; \0 ascii_congrats: db 0x23 ; C db 0x2F ; O db 0x2E ; N db 0x27 ; G db 0x32 ; R db 0x21 ; A db 0x34 ; T db 0x35 ; U db 0x2C ; L db 0x21 ; A db 0x34 ; T db 0x29 ; I db 0x2F ; O db 0x2E ; N db 0x33 ; S db 0xFF ; \0 ascii_beat_game: db 0x39 ; Y db 0x4F ; o db 0x55 ; u db 0x00 ; db 0x42 ; b db 0x45 ; e db 0x41 ; a db 0x54 ; t db 0x00 ; db 0x54 ; t db 0x48 ; h db 0x45 ; e db 0x00 ; db 0x47 ; g db 0x41 ; a db 0x4D ; m db 0x45 ; e db 0xFF ; \0
21.020794
81
0.586871
1efbec5a778cb240d80c4e928b972f7d64b8e668
720
asm
Assembly
programs/oeis/158/A158481.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/158/A158481.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/158/A158481.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A158481: 49n^2 + 7. ; 56,203,448,791,1232,1771,2408,3143,3976,4907,5936,7063,8288,9611,11032,12551,14168,15883,17696,19607,21616,23723,25928,28231,30632,33131,35728,38423,41216,44107,47096,50183,53368,56651,60032,63511,67088,70763,74536,78407,82376,86443,90608,94871,99232,103691,108248,112903,117656,122507,127456,132503,137648,142891,148232,153671,159208,164843,170576,176407,182336,188363,194488,200711,207032,213451,219968,226583,233296,240107,247016,254023,261128,268331,275632,283031,290528,298123,305816,313607,321496,329483,337568,345751,354032,362411,370888,379463,388136,396907,405776,414743,423808,432971,442232,451591,461048,470603,480256,490007 mov $1,2 add $1,$0 mul $1,$0 mul $1,49 add $1,56 mov $0,$1
72
637
0.805556
6f71f93c1bee30eb3da67648d88af9a61803085c
2,568
asm
Assembly
qpu_programs/qpu_mask_tiled_1x1.asm
peytonicmaster6/VC4CV
d9d97ea58ede31ce91748f7ec2eddbe043a8863b
[ "MIT" ]
5
2020-05-16T10:36:08.000Z
2022-03-21T03:03:48.000Z
qpu_programs/qpu_mask_tiled_1x1.asm
peytonicmaster6/VC4CV
d9d97ea58ede31ce91748f7ec2eddbe043a8863b
[ "MIT" ]
2
2020-06-15T15:40:57.000Z
2022-03-07T02:25:23.000Z
qpu_programs/qpu_mask_tiled_1x1.asm
peytonicmaster6/VC4CV
d9d97ea58ede31ce91748f7ec2eddbe043a8863b
[ "MIT" ]
1
2022-01-22T05:40:02.000Z
2022-01-22T05:40:02.000Z
.include "vc4.qinc" # Uniforms .set srcAddr, ra0 .set tgtAddr, ra1 .set srcStride, rb0 .set tgtStride, rb1 .set lineWidth, ra2 .set lineCount, ra3 mov srcAddr, unif; mov tgtAddr, unif; mov srcStride, unif; mov tgtStride, unif; mov lineWidth, unif; mov lineCount, unif; # Variables .set y, ra4 # Iterator over all lines .set srcPtr, ra5 .set tgtPtr, ra6 .set vpmSetup, rb2 .set vdwSetup, rb3 .set vdwStride, rb4 # Register Constants .set num8, ra7 ldi num8, 8; .set num16, rb5 ldi num16, 16; .set num32, ra8 ldi num32, 32; .set maskCO, rb6 ldi maskCO, 0.5; # TODO: Generate vector mask to allow for any multiple of 8-wide columns (not just 16x8) # Create VPM Setup ldi r0, vpm_setup(0, 1, h32(0)); ldi r1, 4; mul24 r1, qpu_num, r1; add vpmSetup, r0, r1; # Create VPM DMA Basic setup ;shl r1, r1, 7; ldi r0, vdw_setup_0(16, 4, dma_v32(0, 0)); add vdwSetup, r0, r1; # Create VPM DMA Stride setup ldi vdwStride, vdw_setup_1(0); # Calculate base source and target address of each tile column mul24 r0, elem_num, 8; add srcPtr, srcAddr, r0; mov tgtPtr, tgtAddr; # Adjust stride sub srcStride, srcStride, num8; # Remove read bytes ;mov r0, 4; shl tgtStride, tgtStride, r0; # Multiply by 16 (block size) # Line Iterator shr r0, lineCount, 4; # Move in steps of 16 lines max y, r0, 1; # At least one iteration in for loop :y # Loop over lines # Initiate VPM write and make sure last VDW finished read vw_wait; mov vw_setup, vpmSetup; .rep b, 4 # 4 Blocks of 32Bits each # Clear mask accumulator r0, init mask iterator r1 mov r0, 0; mov r1, 1; .rep l, 4 # 4 Lines of 8Bits each .rep px, 2 # 2 loads of 4 Pixels each # Read TMU mov t0s, srcPtr; ldtmu0 fmin.setf nop, r4.8af, maskCO; shl r1, r1, 1; v8adds.ifcs r0, r0, r1; fmin.setf nop, r4.8bf, maskCO; shl r1, r1, 1; v8adds.ifcs r0, r0, r1; fmin.setf nop, r4.8cf, maskCO; shl r1, r1, 1; v8adds.ifcs r0, r0, r1; fmin.setf nop, r4.8df, maskCO; shl r1, r1, 1; v8adds.ifcs r0, r0, r1; # Increase address add srcPtr, srcPtr, 4; nop; .endr # Increase adresses to next line add srcPtr, srcPtr, srcStride; nop; .endr # Write to VPM mov vpm, r0; # fmul vpm, r0, 1.0; # using mul encoding .endr # Initiate VDW from VPM to memory mov vw_setup, vdwSetup; mov vw_setup, vdwStride; mov vw_addr, tgtPtr; # Increase adresses to next line add tgtPtr, tgtPtr, tgtStride; # Make sure to finish VDW # read vw_wait; # Line loop :y sub.setf y, y, 1; brr.anynz -, :y nop nop nop mov.setf irq, nop; nop; thrend nop nop
19.164179
88
0.675623
16c1ab0f734b9ff7cbad7653ff99e2b32e9b186f
652
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_fillTileAttrH.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_fillTileAttrH.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_fillTileAttrH.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE ; ; See "bifrost2.h" for further details ; ---------------------------------------------------------------- ; void BIFROST2_fillTileAttrH(unsigned char lin,unsigned char col,unsigned char attr) SECTION code_clib SECTION code_bifrost2 PUBLIC _BIFROST2_fillTileAttrH EXTERN asm_BIFROST2_fillTileAttrH _BIFROST2_fillTileAttrH: ld hl,2 add hl,sp ld d,(hl) ; D=lin inc hl ld e,(hl) ; E=col inc hl ld c,(hl) ; C=attrib jp asm_BIFROST2_fillTileAttrH ; execute 'fill_tile_attr'
24.148148
85
0.556748
9a72c6244a4f21a42f7d6897114c3c747e64f7f6
227
asm
Assembly
programs/asm/screens/screens.asm
Zenith80/initial_emulator
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
[ "Apache-2.0" ]
9
2017-11-12T23:16:14.000Z
2017-12-08T19:42:44.000Z
programs/asm/screens/screens.asm
Zenith80/Zenith80
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
[ "Apache-2.0" ]
null
null
null
programs/asm/screens/screens.asm
Zenith80/Zenith80
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
[ "Apache-2.0" ]
null
null
null
.include "keyboard.inc" screens: .dw intro, awaken, toyourfeet, cell, numbskull1 .shared: call poll_character cp keyq jp z, quit cp keym jp z, to_menu ret shared_options: .db "'q' - Quit\n'm' - exit to Main menu\n",0
14.1875
61
0.69163
5ee3e719072dd6deda9354663d72adca95a7e612
40,603
asm
Assembly
echo.asm
jinsongwei/kernel_xv6
c6c84ff6e3466fa3d57c8a2f35f83c38fde5ba64
[ "MIT-0" ]
null
null
null
echo.asm
jinsongwei/kernel_xv6
c6c84ff6e3466fa3d57c8a2f35f83c38fde5ba64
[ "MIT-0" ]
null
null
null
echo.asm
jinsongwei/kernel_xv6
c6c84ff6e3466fa3d57c8a2f35f83c38fde5ba64
[ "MIT-0" ]
null
null
null
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 sub $0x20,%esp int i; for(i = 1; i < argc; i++) 9: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 10: 00 11: eb 45 jmp 58 <main+0x58> printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); 13: 8b 44 24 1c mov 0x1c(%esp),%eax 17: 83 c0 01 add $0x1,%eax 1a: 3b 45 08 cmp 0x8(%ebp),%eax 1d: 7d 07 jge 26 <main+0x26> 1f: b8 17 08 00 00 mov $0x817,%eax 24: eb 05 jmp 2b <main+0x2b> 26: b8 19 08 00 00 mov $0x819,%eax 2b: 8b 54 24 1c mov 0x1c(%esp),%edx 2f: c1 e2 02 shl $0x2,%edx 32: 03 55 0c add 0xc(%ebp),%edx 35: 8b 12 mov (%edx),%edx 37: 89 44 24 0c mov %eax,0xc(%esp) 3b: 89 54 24 08 mov %edx,0x8(%esp) 3f: c7 44 24 04 1b 08 00 movl $0x81b,0x4(%esp) 46: 00 47: c7 04 24 01 00 00 00 movl $0x1,(%esp) 4e: e8 fd 03 00 00 call 450 <printf> int main(int argc, char *argv[]) { int i; for(i = 1; i < argc; i++) 53: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 58: 8b 44 24 1c mov 0x1c(%esp),%eax 5c: 3b 45 08 cmp 0x8(%ebp),%eax 5f: 7c b2 jl 13 <main+0x13> printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); exit(); 61: e8 66 02 00 00 call 2cc <exit> 66: 90 nop 67: 90 nop 00000068 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 68: 55 push %ebp 69: 89 e5 mov %esp,%ebp 6b: 57 push %edi 6c: 53 push %ebx asm volatile("cld; rep stosb" : 6d: 8b 4d 08 mov 0x8(%ebp),%ecx 70: 8b 55 10 mov 0x10(%ebp),%edx 73: 8b 45 0c mov 0xc(%ebp),%eax 76: 89 cb mov %ecx,%ebx 78: 89 df mov %ebx,%edi 7a: 89 d1 mov %edx,%ecx 7c: fc cld 7d: f3 aa rep stos %al,%es:(%edi) 7f: 89 ca mov %ecx,%edx 81: 89 fb mov %edi,%ebx 83: 89 5d 08 mov %ebx,0x8(%ebp) 86: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 89: 5b pop %ebx 8a: 5f pop %edi 8b: 5d pop %ebp 8c: c3 ret 0000008d <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 8d: 55 push %ebp 8e: 89 e5 mov %esp,%ebp 90: 83 ec 10 sub $0x10,%esp char *os; os = s; 93: 8b 45 08 mov 0x8(%ebp),%eax 96: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 99: 8b 45 0c mov 0xc(%ebp),%eax 9c: 0f b6 10 movzbl (%eax),%edx 9f: 8b 45 08 mov 0x8(%ebp),%eax a2: 88 10 mov %dl,(%eax) a4: 8b 45 08 mov 0x8(%ebp),%eax a7: 0f b6 00 movzbl (%eax),%eax aa: 84 c0 test %al,%al ac: 0f 95 c0 setne %al af: 83 45 08 01 addl $0x1,0x8(%ebp) b3: 83 45 0c 01 addl $0x1,0xc(%ebp) b7: 84 c0 test %al,%al b9: 75 de jne 99 <strcpy+0xc> ; return os; bb: 8b 45 fc mov -0x4(%ebp),%eax } be: c9 leave bf: c3 ret 000000c0 <strcmp>: int strcmp(const char *p, const char *q) { c0: 55 push %ebp c1: 89 e5 mov %esp,%ebp while(*p && *p == *q) c3: eb 08 jmp cd <strcmp+0xd> p++, q++; c5: 83 45 08 01 addl $0x1,0x8(%ebp) c9: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) cd: 8b 45 08 mov 0x8(%ebp),%eax d0: 0f b6 00 movzbl (%eax),%eax d3: 84 c0 test %al,%al d5: 74 10 je e7 <strcmp+0x27> d7: 8b 45 08 mov 0x8(%ebp),%eax da: 0f b6 10 movzbl (%eax),%edx dd: 8b 45 0c mov 0xc(%ebp),%eax e0: 0f b6 00 movzbl (%eax),%eax e3: 38 c2 cmp %al,%dl e5: 74 de je c5 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; e7: 8b 45 08 mov 0x8(%ebp),%eax ea: 0f b6 00 movzbl (%eax),%eax ed: 0f b6 d0 movzbl %al,%edx f0: 8b 45 0c mov 0xc(%ebp),%eax f3: 0f b6 00 movzbl (%eax),%eax f6: 0f b6 c0 movzbl %al,%eax f9: 89 d1 mov %edx,%ecx fb: 29 c1 sub %eax,%ecx fd: 89 c8 mov %ecx,%eax } ff: 5d pop %ebp 100: c3 ret 00000101 <strlen>: uint strlen(char *s) { 101: 55 push %ebp 102: 89 e5 mov %esp,%ebp 104: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 107: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 10e: eb 04 jmp 114 <strlen+0x13> 110: 83 45 fc 01 addl $0x1,-0x4(%ebp) 114: 8b 45 fc mov -0x4(%ebp),%eax 117: 03 45 08 add 0x8(%ebp),%eax 11a: 0f b6 00 movzbl (%eax),%eax 11d: 84 c0 test %al,%al 11f: 75 ef jne 110 <strlen+0xf> ; return n; 121: 8b 45 fc mov -0x4(%ebp),%eax } 124: c9 leave 125: c3 ret 00000126 <memset>: void* memset(void *dst, int c, uint n) { 126: 55 push %ebp 127: 89 e5 mov %esp,%ebp 129: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 12c: 8b 45 10 mov 0x10(%ebp),%eax 12f: 89 44 24 08 mov %eax,0x8(%esp) 133: 8b 45 0c mov 0xc(%ebp),%eax 136: 89 44 24 04 mov %eax,0x4(%esp) 13a: 8b 45 08 mov 0x8(%ebp),%eax 13d: 89 04 24 mov %eax,(%esp) 140: e8 23 ff ff ff call 68 <stosb> return dst; 145: 8b 45 08 mov 0x8(%ebp),%eax } 148: c9 leave 149: c3 ret 0000014a <strchr>: char* strchr(const char *s, char c) { 14a: 55 push %ebp 14b: 89 e5 mov %esp,%ebp 14d: 83 ec 04 sub $0x4,%esp 150: 8b 45 0c mov 0xc(%ebp),%eax 153: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 156: eb 14 jmp 16c <strchr+0x22> if(*s == c) 158: 8b 45 08 mov 0x8(%ebp),%eax 15b: 0f b6 00 movzbl (%eax),%eax 15e: 3a 45 fc cmp -0x4(%ebp),%al 161: 75 05 jne 168 <strchr+0x1e> return (char*)s; 163: 8b 45 08 mov 0x8(%ebp),%eax 166: eb 13 jmp 17b <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 168: 83 45 08 01 addl $0x1,0x8(%ebp) 16c: 8b 45 08 mov 0x8(%ebp),%eax 16f: 0f b6 00 movzbl (%eax),%eax 172: 84 c0 test %al,%al 174: 75 e2 jne 158 <strchr+0xe> if(*s == c) return (char*)s; return 0; 176: b8 00 00 00 00 mov $0x0,%eax } 17b: c9 leave 17c: c3 ret 0000017d <gets>: char* gets(char *buf, int max) { 17d: 55 push %ebp 17e: 89 e5 mov %esp,%ebp 180: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 183: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 18a: eb 44 jmp 1d0 <gets+0x53> cc = read(0, &c, 1); 18c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 193: 00 194: 8d 45 ef lea -0x11(%ebp),%eax 197: 89 44 24 04 mov %eax,0x4(%esp) 19b: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1a2: e8 3d 01 00 00 call 2e4 <read> 1a7: 89 45 f4 mov %eax,-0xc(%ebp) if(cc < 1) 1aa: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1ae: 7e 2d jle 1dd <gets+0x60> break; buf[i++] = c; 1b0: 8b 45 f0 mov -0x10(%ebp),%eax 1b3: 03 45 08 add 0x8(%ebp),%eax 1b6: 0f b6 55 ef movzbl -0x11(%ebp),%edx 1ba: 88 10 mov %dl,(%eax) 1bc: 83 45 f0 01 addl $0x1,-0x10(%ebp) if(c == '\n' || c == '\r') 1c0: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1c4: 3c 0a cmp $0xa,%al 1c6: 74 16 je 1de <gets+0x61> 1c8: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1cc: 3c 0d cmp $0xd,%al 1ce: 74 0e je 1de <gets+0x61> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1d0: 8b 45 f0 mov -0x10(%ebp),%eax 1d3: 83 c0 01 add $0x1,%eax 1d6: 3b 45 0c cmp 0xc(%ebp),%eax 1d9: 7c b1 jl 18c <gets+0xf> 1db: eb 01 jmp 1de <gets+0x61> cc = read(0, &c, 1); if(cc < 1) break; 1dd: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1de: 8b 45 f0 mov -0x10(%ebp),%eax 1e1: 03 45 08 add 0x8(%ebp),%eax 1e4: c6 00 00 movb $0x0,(%eax) return buf; 1e7: 8b 45 08 mov 0x8(%ebp),%eax } 1ea: c9 leave 1eb: c3 ret 000001ec <stat>: int stat(char *n, struct stat *st) { 1ec: 55 push %ebp 1ed: 89 e5 mov %esp,%ebp 1ef: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 1f2: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 1f9: 00 1fa: 8b 45 08 mov 0x8(%ebp),%eax 1fd: 89 04 24 mov %eax,(%esp) 200: e8 07 01 00 00 call 30c <open> 205: 89 45 f0 mov %eax,-0x10(%ebp) if(fd < 0) 208: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 20c: 79 07 jns 215 <stat+0x29> return -1; 20e: b8 ff ff ff ff mov $0xffffffff,%eax 213: eb 23 jmp 238 <stat+0x4c> r = fstat(fd, st); 215: 8b 45 0c mov 0xc(%ebp),%eax 218: 89 44 24 04 mov %eax,0x4(%esp) 21c: 8b 45 f0 mov -0x10(%ebp),%eax 21f: 89 04 24 mov %eax,(%esp) 222: e8 fd 00 00 00 call 324 <fstat> 227: 89 45 f4 mov %eax,-0xc(%ebp) close(fd); 22a: 8b 45 f0 mov -0x10(%ebp),%eax 22d: 89 04 24 mov %eax,(%esp) 230: e8 bf 00 00 00 call 2f4 <close> return r; 235: 8b 45 f4 mov -0xc(%ebp),%eax } 238: c9 leave 239: c3 ret 0000023a <atoi>: int atoi(const char *s) { 23a: 55 push %ebp 23b: 89 e5 mov %esp,%ebp 23d: 83 ec 10 sub $0x10,%esp int n; n = 0; 240: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 247: eb 24 jmp 26d <atoi+0x33> n = n*10 + *s++ - '0'; 249: 8b 55 fc mov -0x4(%ebp),%edx 24c: 89 d0 mov %edx,%eax 24e: c1 e0 02 shl $0x2,%eax 251: 01 d0 add %edx,%eax 253: 01 c0 add %eax,%eax 255: 89 c2 mov %eax,%edx 257: 8b 45 08 mov 0x8(%ebp),%eax 25a: 0f b6 00 movzbl (%eax),%eax 25d: 0f be c0 movsbl %al,%eax 260: 8d 04 02 lea (%edx,%eax,1),%eax 263: 83 e8 30 sub $0x30,%eax 266: 89 45 fc mov %eax,-0x4(%ebp) 269: 83 45 08 01 addl $0x1,0x8(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 26d: 8b 45 08 mov 0x8(%ebp),%eax 270: 0f b6 00 movzbl (%eax),%eax 273: 3c 2f cmp $0x2f,%al 275: 7e 0a jle 281 <atoi+0x47> 277: 8b 45 08 mov 0x8(%ebp),%eax 27a: 0f b6 00 movzbl (%eax),%eax 27d: 3c 39 cmp $0x39,%al 27f: 7e c8 jle 249 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 281: 8b 45 fc mov -0x4(%ebp),%eax } 284: c9 leave 285: c3 ret 00000286 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 286: 55 push %ebp 287: 89 e5 mov %esp,%ebp 289: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 28c: 8b 45 08 mov 0x8(%ebp),%eax 28f: 89 45 f8 mov %eax,-0x8(%ebp) src = vsrc; 292: 8b 45 0c mov 0xc(%ebp),%eax 295: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0) 298: eb 13 jmp 2ad <memmove+0x27> *dst++ = *src++; 29a: 8b 45 fc mov -0x4(%ebp),%eax 29d: 0f b6 10 movzbl (%eax),%edx 2a0: 8b 45 f8 mov -0x8(%ebp),%eax 2a3: 88 10 mov %dl,(%eax) 2a5: 83 45 f8 01 addl $0x1,-0x8(%ebp) 2a9: 83 45 fc 01 addl $0x1,-0x4(%ebp) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 2ad: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 2b1: 0f 9f c0 setg %al 2b4: 83 6d 10 01 subl $0x1,0x10(%ebp) 2b8: 84 c0 test %al,%al 2ba: 75 de jne 29a <memmove+0x14> *dst++ = *src++; return vdst; 2bc: 8b 45 08 mov 0x8(%ebp),%eax } 2bf: c9 leave 2c0: c3 ret 2c1: 90 nop 2c2: 90 nop 2c3: 90 nop 000002c4 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2c4: b8 01 00 00 00 mov $0x1,%eax 2c9: cd 40 int $0x40 2cb: c3 ret 000002cc <exit>: SYSCALL(exit) 2cc: b8 02 00 00 00 mov $0x2,%eax 2d1: cd 40 int $0x40 2d3: c3 ret 000002d4 <wait>: SYSCALL(wait) 2d4: b8 03 00 00 00 mov $0x3,%eax 2d9: cd 40 int $0x40 2db: c3 ret 000002dc <pipe>: SYSCALL(pipe) 2dc: b8 04 00 00 00 mov $0x4,%eax 2e1: cd 40 int $0x40 2e3: c3 ret 000002e4 <read>: SYSCALL(read) 2e4: b8 05 00 00 00 mov $0x5,%eax 2e9: cd 40 int $0x40 2eb: c3 ret 000002ec <write>: SYSCALL(write) 2ec: b8 10 00 00 00 mov $0x10,%eax 2f1: cd 40 int $0x40 2f3: c3 ret 000002f4 <close>: SYSCALL(close) 2f4: b8 15 00 00 00 mov $0x15,%eax 2f9: cd 40 int $0x40 2fb: c3 ret 000002fc <kill>: SYSCALL(kill) 2fc: b8 06 00 00 00 mov $0x6,%eax 301: cd 40 int $0x40 303: c3 ret 00000304 <exec>: SYSCALL(exec) 304: b8 07 00 00 00 mov $0x7,%eax 309: cd 40 int $0x40 30b: c3 ret 0000030c <open>: SYSCALL(open) 30c: b8 0f 00 00 00 mov $0xf,%eax 311: cd 40 int $0x40 313: c3 ret 00000314 <mknod>: SYSCALL(mknod) 314: b8 11 00 00 00 mov $0x11,%eax 319: cd 40 int $0x40 31b: c3 ret 0000031c <unlink>: SYSCALL(unlink) 31c: b8 12 00 00 00 mov $0x12,%eax 321: cd 40 int $0x40 323: c3 ret 00000324 <fstat>: SYSCALL(fstat) 324: b8 08 00 00 00 mov $0x8,%eax 329: cd 40 int $0x40 32b: c3 ret 0000032c <link>: SYSCALL(link) 32c: b8 13 00 00 00 mov $0x13,%eax 331: cd 40 int $0x40 333: c3 ret 00000334 <mkdir>: SYSCALL(mkdir) 334: b8 14 00 00 00 mov $0x14,%eax 339: cd 40 int $0x40 33b: c3 ret 0000033c <chdir>: SYSCALL(chdir) 33c: b8 09 00 00 00 mov $0x9,%eax 341: cd 40 int $0x40 343: c3 ret 00000344 <dup>: SYSCALL(dup) 344: b8 0a 00 00 00 mov $0xa,%eax 349: cd 40 int $0x40 34b: c3 ret 0000034c <getpid>: SYSCALL(getpid) 34c: b8 0b 00 00 00 mov $0xb,%eax 351: cd 40 int $0x40 353: c3 ret 00000354 <sbrk>: SYSCALL(sbrk) 354: b8 0c 00 00 00 mov $0xc,%eax 359: cd 40 int $0x40 35b: c3 ret 0000035c <sleep>: SYSCALL(sleep) 35c: b8 0d 00 00 00 mov $0xd,%eax 361: cd 40 int $0x40 363: c3 ret 00000364 <uptime>: SYSCALL(uptime) 364: b8 0e 00 00 00 mov $0xe,%eax 369: cd 40 int $0x40 36b: c3 ret 0000036c <count>: //add SYSCALL(count) 36c: b8 16 00 00 00 mov $0x16,%eax 371: cd 40 int $0x40 373: c3 ret 00000374 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 374: 55 push %ebp 375: 89 e5 mov %esp,%ebp 377: 83 ec 28 sub $0x28,%esp 37a: 8b 45 0c mov 0xc(%ebp),%eax 37d: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 380: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 387: 00 388: 8d 45 f4 lea -0xc(%ebp),%eax 38b: 89 44 24 04 mov %eax,0x4(%esp) 38f: 8b 45 08 mov 0x8(%ebp),%eax 392: 89 04 24 mov %eax,(%esp) 395: e8 52 ff ff ff call 2ec <write> } 39a: c9 leave 39b: c3 ret 0000039c <printint>: static void printint(int fd, int xx, int base, int sgn) { 39c: 55 push %ebp 39d: 89 e5 mov %esp,%ebp 39f: 53 push %ebx 3a0: 83 ec 44 sub $0x44,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 3a3: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 3aa: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 3ae: 74 17 je 3c7 <printint+0x2b> 3b0: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 3b4: 79 11 jns 3c7 <printint+0x2b> neg = 1; 3b6: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 3bd: 8b 45 0c mov 0xc(%ebp),%eax 3c0: f7 d8 neg %eax 3c2: 89 45 f4 mov %eax,-0xc(%ebp) char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 3c5: eb 06 jmp 3cd <printint+0x31> neg = 1; x = -xx; } else { x = xx; 3c7: 8b 45 0c mov 0xc(%ebp),%eax 3ca: 89 45 f4 mov %eax,-0xc(%ebp) } i = 0; 3cd: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) do{ buf[i++] = digits[x % base]; 3d4: 8b 4d ec mov -0x14(%ebp),%ecx 3d7: 8b 5d 10 mov 0x10(%ebp),%ebx 3da: 8b 45 f4 mov -0xc(%ebp),%eax 3dd: ba 00 00 00 00 mov $0x0,%edx 3e2: f7 f3 div %ebx 3e4: 89 d0 mov %edx,%eax 3e6: 0f b6 80 28 08 00 00 movzbl 0x828(%eax),%eax 3ed: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) 3f1: 83 45 ec 01 addl $0x1,-0x14(%ebp) }while((x /= base) != 0); 3f5: 8b 45 10 mov 0x10(%ebp),%eax 3f8: 89 45 d4 mov %eax,-0x2c(%ebp) 3fb: 8b 45 f4 mov -0xc(%ebp),%eax 3fe: ba 00 00 00 00 mov $0x0,%edx 403: f7 75 d4 divl -0x2c(%ebp) 406: 89 45 f4 mov %eax,-0xc(%ebp) 409: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 40d: 75 c5 jne 3d4 <printint+0x38> if(neg) 40f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 413: 74 2a je 43f <printint+0xa3> buf[i++] = '-'; 415: 8b 45 ec mov -0x14(%ebp),%eax 418: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) 41d: 83 45 ec 01 addl $0x1,-0x14(%ebp) while(--i >= 0) 421: eb 1d jmp 440 <printint+0xa4> putc(fd, buf[i]); 423: 8b 45 ec mov -0x14(%ebp),%eax 426: 0f b6 44 05 dc movzbl -0x24(%ebp,%eax,1),%eax 42b: 0f be c0 movsbl %al,%eax 42e: 89 44 24 04 mov %eax,0x4(%esp) 432: 8b 45 08 mov 0x8(%ebp),%eax 435: 89 04 24 mov %eax,(%esp) 438: e8 37 ff ff ff call 374 <putc> 43d: eb 01 jmp 440 <printint+0xa4> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 43f: 90 nop 440: 83 6d ec 01 subl $0x1,-0x14(%ebp) 444: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 448: 79 d9 jns 423 <printint+0x87> putc(fd, buf[i]); } 44a: 83 c4 44 add $0x44,%esp 44d: 5b pop %ebx 44e: 5d pop %ebp 44f: c3 ret 00000450 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 450: 55 push %ebp 451: 89 e5 mov %esp,%ebp 453: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 456: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) ap = (uint*)(void*)&fmt + 1; 45d: 8d 45 0c lea 0xc(%ebp),%eax 460: 83 c0 04 add $0x4,%eax 463: 89 45 f4 mov %eax,-0xc(%ebp) for(i = 0; fmt[i]; i++){ 466: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 46d: e9 7e 01 00 00 jmp 5f0 <printf+0x1a0> c = fmt[i] & 0xff; 472: 8b 55 0c mov 0xc(%ebp),%edx 475: 8b 45 ec mov -0x14(%ebp),%eax 478: 8d 04 02 lea (%edx,%eax,1),%eax 47b: 0f b6 00 movzbl (%eax),%eax 47e: 0f be c0 movsbl %al,%eax 481: 25 ff 00 00 00 and $0xff,%eax 486: 89 45 e8 mov %eax,-0x18(%ebp) if(state == 0){ 489: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 48d: 75 2c jne 4bb <printf+0x6b> if(c == '%'){ 48f: 83 7d e8 25 cmpl $0x25,-0x18(%ebp) 493: 75 0c jne 4a1 <printf+0x51> state = '%'; 495: c7 45 f0 25 00 00 00 movl $0x25,-0x10(%ebp) 49c: e9 4b 01 00 00 jmp 5ec <printf+0x19c> } else { putc(fd, c); 4a1: 8b 45 e8 mov -0x18(%ebp),%eax 4a4: 0f be c0 movsbl %al,%eax 4a7: 89 44 24 04 mov %eax,0x4(%esp) 4ab: 8b 45 08 mov 0x8(%ebp),%eax 4ae: 89 04 24 mov %eax,(%esp) 4b1: e8 be fe ff ff call 374 <putc> 4b6: e9 31 01 00 00 jmp 5ec <printf+0x19c> } } else if(state == '%'){ 4bb: 83 7d f0 25 cmpl $0x25,-0x10(%ebp) 4bf: 0f 85 27 01 00 00 jne 5ec <printf+0x19c> if(c == 'd'){ 4c5: 83 7d e8 64 cmpl $0x64,-0x18(%ebp) 4c9: 75 2d jne 4f8 <printf+0xa8> printint(fd, *ap, 10, 1); 4cb: 8b 45 f4 mov -0xc(%ebp),%eax 4ce: 8b 00 mov (%eax),%eax 4d0: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 4d7: 00 4d8: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 4df: 00 4e0: 89 44 24 04 mov %eax,0x4(%esp) 4e4: 8b 45 08 mov 0x8(%ebp),%eax 4e7: 89 04 24 mov %eax,(%esp) 4ea: e8 ad fe ff ff call 39c <printint> ap++; 4ef: 83 45 f4 04 addl $0x4,-0xc(%ebp) 4f3: e9 ed 00 00 00 jmp 5e5 <printf+0x195> } else if(c == 'x' || c == 'p'){ 4f8: 83 7d e8 78 cmpl $0x78,-0x18(%ebp) 4fc: 74 06 je 504 <printf+0xb4> 4fe: 83 7d e8 70 cmpl $0x70,-0x18(%ebp) 502: 75 2d jne 531 <printf+0xe1> printint(fd, *ap, 16, 0); 504: 8b 45 f4 mov -0xc(%ebp),%eax 507: 8b 00 mov (%eax),%eax 509: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 510: 00 511: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 518: 00 519: 89 44 24 04 mov %eax,0x4(%esp) 51d: 8b 45 08 mov 0x8(%ebp),%eax 520: 89 04 24 mov %eax,(%esp) 523: e8 74 fe ff ff call 39c <printint> ap++; 528: 83 45 f4 04 addl $0x4,-0xc(%ebp) } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 52c: e9 b4 00 00 00 jmp 5e5 <printf+0x195> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 531: 83 7d e8 73 cmpl $0x73,-0x18(%ebp) 535: 75 46 jne 57d <printf+0x12d> s = (char*)*ap; 537: 8b 45 f4 mov -0xc(%ebp),%eax 53a: 8b 00 mov (%eax),%eax 53c: 89 45 e4 mov %eax,-0x1c(%ebp) ap++; 53f: 83 45 f4 04 addl $0x4,-0xc(%ebp) if(s == 0) 543: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 547: 75 27 jne 570 <printf+0x120> s = "(null)"; 549: c7 45 e4 20 08 00 00 movl $0x820,-0x1c(%ebp) while(*s != 0){ 550: eb 1f jmp 571 <printf+0x121> putc(fd, *s); 552: 8b 45 e4 mov -0x1c(%ebp),%eax 555: 0f b6 00 movzbl (%eax),%eax 558: 0f be c0 movsbl %al,%eax 55b: 89 44 24 04 mov %eax,0x4(%esp) 55f: 8b 45 08 mov 0x8(%ebp),%eax 562: 89 04 24 mov %eax,(%esp) 565: e8 0a fe ff ff call 374 <putc> s++; 56a: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 56e: eb 01 jmp 571 <printf+0x121> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 570: 90 nop 571: 8b 45 e4 mov -0x1c(%ebp),%eax 574: 0f b6 00 movzbl (%eax),%eax 577: 84 c0 test %al,%al 579: 75 d7 jne 552 <printf+0x102> 57b: eb 68 jmp 5e5 <printf+0x195> putc(fd, *s); s++; } } else if(c == 'c'){ 57d: 83 7d e8 63 cmpl $0x63,-0x18(%ebp) 581: 75 1d jne 5a0 <printf+0x150> putc(fd, *ap); 583: 8b 45 f4 mov -0xc(%ebp),%eax 586: 8b 00 mov (%eax),%eax 588: 0f be c0 movsbl %al,%eax 58b: 89 44 24 04 mov %eax,0x4(%esp) 58f: 8b 45 08 mov 0x8(%ebp),%eax 592: 89 04 24 mov %eax,(%esp) 595: e8 da fd ff ff call 374 <putc> ap++; 59a: 83 45 f4 04 addl $0x4,-0xc(%ebp) 59e: eb 45 jmp 5e5 <printf+0x195> } else if(c == '%'){ 5a0: 83 7d e8 25 cmpl $0x25,-0x18(%ebp) 5a4: 75 17 jne 5bd <printf+0x16d> putc(fd, c); 5a6: 8b 45 e8 mov -0x18(%ebp),%eax 5a9: 0f be c0 movsbl %al,%eax 5ac: 89 44 24 04 mov %eax,0x4(%esp) 5b0: 8b 45 08 mov 0x8(%ebp),%eax 5b3: 89 04 24 mov %eax,(%esp) 5b6: e8 b9 fd ff ff call 374 <putc> 5bb: eb 28 jmp 5e5 <printf+0x195> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 5bd: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 5c4: 00 5c5: 8b 45 08 mov 0x8(%ebp),%eax 5c8: 89 04 24 mov %eax,(%esp) 5cb: e8 a4 fd ff ff call 374 <putc> putc(fd, c); 5d0: 8b 45 e8 mov -0x18(%ebp),%eax 5d3: 0f be c0 movsbl %al,%eax 5d6: 89 44 24 04 mov %eax,0x4(%esp) 5da: 8b 45 08 mov 0x8(%ebp),%eax 5dd: 89 04 24 mov %eax,(%esp) 5e0: e8 8f fd ff ff call 374 <putc> } state = 0; 5e5: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5ec: 83 45 ec 01 addl $0x1,-0x14(%ebp) 5f0: 8b 55 0c mov 0xc(%ebp),%edx 5f3: 8b 45 ec mov -0x14(%ebp),%eax 5f6: 8d 04 02 lea (%edx,%eax,1),%eax 5f9: 0f b6 00 movzbl (%eax),%eax 5fc: 84 c0 test %al,%al 5fe: 0f 85 6e fe ff ff jne 472 <printf+0x22> putc(fd, c); } state = 0; } } } 604: c9 leave 605: c3 ret 606: 90 nop 607: 90 nop 00000608 <free>: static Header base; static Header *freep; void free(void *ap) { 608: 55 push %ebp 609: 89 e5 mov %esp,%ebp 60b: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 60e: 8b 45 08 mov 0x8(%ebp),%eax 611: 83 e8 08 sub $0x8,%eax 614: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 617: a1 44 08 00 00 mov 0x844,%eax 61c: 89 45 fc mov %eax,-0x4(%ebp) 61f: eb 24 jmp 645 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 621: 8b 45 fc mov -0x4(%ebp),%eax 624: 8b 00 mov (%eax),%eax 626: 3b 45 fc cmp -0x4(%ebp),%eax 629: 77 12 ja 63d <free+0x35> 62b: 8b 45 f8 mov -0x8(%ebp),%eax 62e: 3b 45 fc cmp -0x4(%ebp),%eax 631: 77 24 ja 657 <free+0x4f> 633: 8b 45 fc mov -0x4(%ebp),%eax 636: 8b 00 mov (%eax),%eax 638: 3b 45 f8 cmp -0x8(%ebp),%eax 63b: 77 1a ja 657 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 63d: 8b 45 fc mov -0x4(%ebp),%eax 640: 8b 00 mov (%eax),%eax 642: 89 45 fc mov %eax,-0x4(%ebp) 645: 8b 45 f8 mov -0x8(%ebp),%eax 648: 3b 45 fc cmp -0x4(%ebp),%eax 64b: 76 d4 jbe 621 <free+0x19> 64d: 8b 45 fc mov -0x4(%ebp),%eax 650: 8b 00 mov (%eax),%eax 652: 3b 45 f8 cmp -0x8(%ebp),%eax 655: 76 ca jbe 621 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 657: 8b 45 f8 mov -0x8(%ebp),%eax 65a: 8b 40 04 mov 0x4(%eax),%eax 65d: c1 e0 03 shl $0x3,%eax 660: 89 c2 mov %eax,%edx 662: 03 55 f8 add -0x8(%ebp),%edx 665: 8b 45 fc mov -0x4(%ebp),%eax 668: 8b 00 mov (%eax),%eax 66a: 39 c2 cmp %eax,%edx 66c: 75 24 jne 692 <free+0x8a> bp->s.size += p->s.ptr->s.size; 66e: 8b 45 f8 mov -0x8(%ebp),%eax 671: 8b 50 04 mov 0x4(%eax),%edx 674: 8b 45 fc mov -0x4(%ebp),%eax 677: 8b 00 mov (%eax),%eax 679: 8b 40 04 mov 0x4(%eax),%eax 67c: 01 c2 add %eax,%edx 67e: 8b 45 f8 mov -0x8(%ebp),%eax 681: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 684: 8b 45 fc mov -0x4(%ebp),%eax 687: 8b 00 mov (%eax),%eax 689: 8b 10 mov (%eax),%edx 68b: 8b 45 f8 mov -0x8(%ebp),%eax 68e: 89 10 mov %edx,(%eax) 690: eb 0a jmp 69c <free+0x94> } else bp->s.ptr = p->s.ptr; 692: 8b 45 fc mov -0x4(%ebp),%eax 695: 8b 10 mov (%eax),%edx 697: 8b 45 f8 mov -0x8(%ebp),%eax 69a: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 69c: 8b 45 fc mov -0x4(%ebp),%eax 69f: 8b 40 04 mov 0x4(%eax),%eax 6a2: c1 e0 03 shl $0x3,%eax 6a5: 03 45 fc add -0x4(%ebp),%eax 6a8: 3b 45 f8 cmp -0x8(%ebp),%eax 6ab: 75 20 jne 6cd <free+0xc5> p->s.size += bp->s.size; 6ad: 8b 45 fc mov -0x4(%ebp),%eax 6b0: 8b 50 04 mov 0x4(%eax),%edx 6b3: 8b 45 f8 mov -0x8(%ebp),%eax 6b6: 8b 40 04 mov 0x4(%eax),%eax 6b9: 01 c2 add %eax,%edx 6bb: 8b 45 fc mov -0x4(%ebp),%eax 6be: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 6c1: 8b 45 f8 mov -0x8(%ebp),%eax 6c4: 8b 10 mov (%eax),%edx 6c6: 8b 45 fc mov -0x4(%ebp),%eax 6c9: 89 10 mov %edx,(%eax) 6cb: eb 08 jmp 6d5 <free+0xcd> } else p->s.ptr = bp; 6cd: 8b 45 fc mov -0x4(%ebp),%eax 6d0: 8b 55 f8 mov -0x8(%ebp),%edx 6d3: 89 10 mov %edx,(%eax) freep = p; 6d5: 8b 45 fc mov -0x4(%ebp),%eax 6d8: a3 44 08 00 00 mov %eax,0x844 } 6dd: c9 leave 6de: c3 ret 000006df <morecore>: static Header* morecore(uint nu) { 6df: 55 push %ebp 6e0: 89 e5 mov %esp,%ebp 6e2: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 6e5: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 6ec: 77 07 ja 6f5 <morecore+0x16> nu = 4096; 6ee: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 6f5: 8b 45 08 mov 0x8(%ebp),%eax 6f8: c1 e0 03 shl $0x3,%eax 6fb: 89 04 24 mov %eax,(%esp) 6fe: e8 51 fc ff ff call 354 <sbrk> 703: 89 45 f0 mov %eax,-0x10(%ebp) if(p == (char*)-1) 706: 83 7d f0 ff cmpl $0xffffffff,-0x10(%ebp) 70a: 75 07 jne 713 <morecore+0x34> return 0; 70c: b8 00 00 00 00 mov $0x0,%eax 711: eb 22 jmp 735 <morecore+0x56> hp = (Header*)p; 713: 8b 45 f0 mov -0x10(%ebp),%eax 716: 89 45 f4 mov %eax,-0xc(%ebp) hp->s.size = nu; 719: 8b 45 f4 mov -0xc(%ebp),%eax 71c: 8b 55 08 mov 0x8(%ebp),%edx 71f: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 722: 8b 45 f4 mov -0xc(%ebp),%eax 725: 83 c0 08 add $0x8,%eax 728: 89 04 24 mov %eax,(%esp) 72b: e8 d8 fe ff ff call 608 <free> return freep; 730: a1 44 08 00 00 mov 0x844,%eax } 735: c9 leave 736: c3 ret 00000737 <malloc>: void* malloc(uint nbytes) { 737: 55 push %ebp 738: 89 e5 mov %esp,%ebp 73a: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 73d: 8b 45 08 mov 0x8(%ebp),%eax 740: 83 c0 07 add $0x7,%eax 743: c1 e8 03 shr $0x3,%eax 746: 83 c0 01 add $0x1,%eax 749: 89 45 f4 mov %eax,-0xc(%ebp) if((prevp = freep) == 0){ 74c: a1 44 08 00 00 mov 0x844,%eax 751: 89 45 f0 mov %eax,-0x10(%ebp) 754: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 758: 75 23 jne 77d <malloc+0x46> base.s.ptr = freep = prevp = &base; 75a: c7 45 f0 3c 08 00 00 movl $0x83c,-0x10(%ebp) 761: 8b 45 f0 mov -0x10(%ebp),%eax 764: a3 44 08 00 00 mov %eax,0x844 769: a1 44 08 00 00 mov 0x844,%eax 76e: a3 3c 08 00 00 mov %eax,0x83c base.s.size = 0; 773: c7 05 40 08 00 00 00 movl $0x0,0x840 77a: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 77d: 8b 45 f0 mov -0x10(%ebp),%eax 780: 8b 00 mov (%eax),%eax 782: 89 45 ec mov %eax,-0x14(%ebp) if(p->s.size >= nunits){ 785: 8b 45 ec mov -0x14(%ebp),%eax 788: 8b 40 04 mov 0x4(%eax),%eax 78b: 3b 45 f4 cmp -0xc(%ebp),%eax 78e: 72 4d jb 7dd <malloc+0xa6> if(p->s.size == nunits) 790: 8b 45 ec mov -0x14(%ebp),%eax 793: 8b 40 04 mov 0x4(%eax),%eax 796: 3b 45 f4 cmp -0xc(%ebp),%eax 799: 75 0c jne 7a7 <malloc+0x70> prevp->s.ptr = p->s.ptr; 79b: 8b 45 ec mov -0x14(%ebp),%eax 79e: 8b 10 mov (%eax),%edx 7a0: 8b 45 f0 mov -0x10(%ebp),%eax 7a3: 89 10 mov %edx,(%eax) 7a5: eb 26 jmp 7cd <malloc+0x96> else { p->s.size -= nunits; 7a7: 8b 45 ec mov -0x14(%ebp),%eax 7aa: 8b 40 04 mov 0x4(%eax),%eax 7ad: 89 c2 mov %eax,%edx 7af: 2b 55 f4 sub -0xc(%ebp),%edx 7b2: 8b 45 ec mov -0x14(%ebp),%eax 7b5: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 7b8: 8b 45 ec mov -0x14(%ebp),%eax 7bb: 8b 40 04 mov 0x4(%eax),%eax 7be: c1 e0 03 shl $0x3,%eax 7c1: 01 45 ec add %eax,-0x14(%ebp) p->s.size = nunits; 7c4: 8b 45 ec mov -0x14(%ebp),%eax 7c7: 8b 55 f4 mov -0xc(%ebp),%edx 7ca: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 7cd: 8b 45 f0 mov -0x10(%ebp),%eax 7d0: a3 44 08 00 00 mov %eax,0x844 return (void*)(p + 1); 7d5: 8b 45 ec mov -0x14(%ebp),%eax 7d8: 83 c0 08 add $0x8,%eax 7db: eb 38 jmp 815 <malloc+0xde> } if(p == freep) 7dd: a1 44 08 00 00 mov 0x844,%eax 7e2: 39 45 ec cmp %eax,-0x14(%ebp) 7e5: 75 1b jne 802 <malloc+0xcb> if((p = morecore(nunits)) == 0) 7e7: 8b 45 f4 mov -0xc(%ebp),%eax 7ea: 89 04 24 mov %eax,(%esp) 7ed: e8 ed fe ff ff call 6df <morecore> 7f2: 89 45 ec mov %eax,-0x14(%ebp) 7f5: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 7f9: 75 07 jne 802 <malloc+0xcb> return 0; 7fb: b8 00 00 00 00 mov $0x0,%eax 800: eb 13 jmp 815 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 802: 8b 45 ec mov -0x14(%ebp),%eax 805: 89 45 f0 mov %eax,-0x10(%ebp) 808: 8b 45 ec mov -0x14(%ebp),%eax 80b: 8b 00 mov (%eax),%eax 80d: 89 45 ec mov %eax,-0x14(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 810: e9 70 ff ff ff jmp 785 <malloc+0x4e> } 815: c9 leave 816: c3 ret
33.80766
60
0.425584
bdedb642d3124ed3dc594de69a03afbd5d1b514e
443
asm
Assembly
oeis/077/A077849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077849: Expansion of (1-x)^(-1)/(1 - 2*x - x^2 - x^3). ; Submitted by Jon Maiga ; 1,3,8,21,54,138,352,897,2285,5820,14823,37752,96148,244872,623645,1588311,4045140,10302237,26237926,66823230,170186624,433434405,1103878665,2811378360,7160069791,18235396608,46442241368,118279949136,301237536249,767197263003 mov $1,1 mov $2,1 lpb $0 sub $0,1 mul $1,2 add $1,$4 add $1,$3 add $1,1 mov $4,$3 mov $3,$2 mov $2,$1 lpe mov $0,$1
24.611111
226
0.68623
e41a772e301db2dcabd5cce424e3821c45abea3a
441
asm
Assembly
oeis/249/A249945.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/249/A249945.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/249/A249945.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A249945: n! + 3^n. ; Submitted by Jamie Morken(s3) ; 2,4,11,33,105,363,1449,7227,46881,382563,3687849,40093947,479533041,6228615123,87183074169,1307688716907,20922832934721,355687557236163,6402374093148489,121645101571093467,2432902011663424401,51090942182169793203,1124000727808988739609 mov $1,3 pow $1,$0 seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). add $0,$1
49
237
0.782313
b66b639b5d3a71d46360d57282514c7a7684ba36
9,643
asm
Assembly
Palmtree.Math.Core.Implements/vs_build/x86_Debug/TEST_op_ToStringX.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
Palmtree.Math.Core.Implements/vs_build/x86_Debug/TEST_op_ToStringX.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
Palmtree.Math.Core.Implements/vs_build/x86_Debug/TEST_op_ToStringX.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\TEST_op_ToStringX.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES msvcjmc SEGMENT __7B7A869E_ctype@h DB 01H __457DD326_basetsd@h DB 01H __4384A2D9_corecrt_memcpy_s@h DB 01H __4E51A221_corecrt_wstring@h DB 01H __2140C079_string@h DB 01H __1887E595_winnt@h DB 01H __9FC7C64B_processthreadsapi@h DB 01H __FA470AEC_memoryapi@h DB 01H __F37DAFF1_winerror@h DB 01H __7A450CCC_winbase@h DB 01H __B4B40122_winioctl@h DB 01H __86261D59_stralign@h DB 01H __1C66ECB2_pmc_debug@h DB 01H __78990820_test_op_tostringx@c DB 01H msvcjmc ENDS PUBLIC _TEST_PMC_ToStringX PUBLIC __JustMyCode_Default EXTRN __imp__lstrcmpW@8:PROC EXTRN __imp__lstrcpyA@8:PROC EXTRN __imp__lstrcpyW@8:PROC EXTRN _TEST_Assert:PROC EXTRN _FormatTestLabel:PROC EXTRN _FormatTestMesssage:PROC EXTRN @_RTC_CheckStackVars@8:PROC EXTRN @__CheckForDebuggerJustMyCode@4:PROC EXTRN @__security_check_cookie@4:PROC EXTRN __RTC_CheckEsp:PROC EXTRN __RTC_InitBase:PROC EXTRN __RTC_Shutdown:PROC EXTRN ___security_cookie:DWORD _BSS SEGMENT ?actual_str_buffer@?1??TEST_PMC_ToStringX@@9@9 DW 01000H DUP (?) ; `TEST_PMC_ToStringX'::`2'::actual_str_buffer _BSS ENDS ; COMDAT rtc$TMZ rtc$TMZ SEGMENT __RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown rtc$TMZ ENDS ; COMDAT rtc$IMZ rtc$IMZ SEGMENT __RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase rtc$IMZ ENDS _DATA SEGMENT $SG94549 DB ',', 00H, 00H, 00H $SG94550 DB '3', 00H ORG $+2 $SG94551 DB '.', 00H, 00H, 00H $SG94552 DB '+', 00H, 00H, 00H $SG94553 DB '-', 00H, 00H, 00H $SG94555 DB 'T', 00H, 'o', 00H, 'S', 00H, 't', 00H, 'r', 00H, 'i', 00H DB 'n', 00H, 'g', 00H, 'X', 00H, ' ', 00H, '(', 00H, '%', 00H, 'd' DB 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H $SG94554 DB 'P', 00H, 'M', 00H, 'C', 00H, '_', 00H, 'F', 00H, 'r', 00H DB 'o', 00H, 'm', 00H, 'B', 00H, 'y', 00H, 't', 00H, 'e', 00H, 'A' DB 00H, 'r', 00H, 'r', 00H, 'a', 00H, 'y', 00H, 'n0', 0a9H, '_0^', 0b3H DB '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH, 090H, 08aH DB '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H ORG $+2 $SG94557 DB 'T', 00H, 'o', 00H, 'S', 00H, 't', 00H, 'r', 00H, 'i', 00H DB 'n', 00H, 'g', 00H, 'X', 00H, ' ', 00H, '(', 00H, '%', 00H, 'd' DB 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H $SG94556 DB 'P', 00H, 'M', 00H, 'C', 00H, '_', 00H, 'T', 00H, 'o', 00H DB 'S', 00H, 't', 00H, 'r', 00H, 'i', 00H, 'n', 00H, 'g', 00H, 'n' DB '0', 0a9H, '_0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H DB '_', 01aH, 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')' DB 00H, 00H, 00H $SG94558 DB 0c7H, '0', 0fcH, '0', 0bfH, '0n0', 085H, 'Q', 0b9H, '[L0', 00H DB 'N', 0f4H, 081H, 'W0j0D0', 00H, 00H ORG $+2 $SG94559 DB 'T', 00H, 'o', 00H, 'S', 00H, 't', 00H, 'r', 00H, 'i', 00H DB 'n', 00H, 'g', 00H, 'X', 00H, ' ', 00H, '(', 00H, '%', 00H, 'd' DB 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H _DATA ENDS ; Function compile flags: /Odt ; COMDAT __JustMyCode_Default _TEXT SEGMENT __JustMyCode_Default PROC ; COMDAT push ebp mov ebp, esp pop ebp ret 0 __JustMyCode_Default ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\test_op_tostringx.c _TEXT SEGMENT tv150 = -84 ; size = 4 tv137 = -80 ; size = 4 tv84 = -76 ; size = 4 _opt$ = -68 ; size = 40 _x_result$ = -24 ; size = 4 _result$ = -20 ; size = 4 _x$ = -12 ; size = 4 __$ArrayPad$ = -4 ; size = 4 _env$ = 8 ; size = 4 _ep$ = 12 ; size = 4 _no$ = 16 ; size = 4 _buf$ = 20 ; size = 4 _buf_size$ = 24 ; size = 4 _format_spec$ = 28 ; size = 1 _min_width$ = 32 ; size = 4 _desired_str$ = 36 ; size = 4 _TEST_PMC_ToStringX PROC ; 40 : { push ebp mov ebp, esp sub esp, 84 ; 00000054H push esi push edi lea edi, DWORD PTR [ebp-84] mov ecx, 21 ; 00000015H mov eax, -858993460 ; ccccccccH rep stosd mov eax, DWORD PTR ___security_cookie xor eax, ebp mov DWORD PTR __$ArrayPad$[ebp], eax mov ecx, OFFSET __78990820_test_op_tostringx@c call @__CheckForDebuggerJustMyCode@4 ; 41 : HANDLE x; ; 42 : static wchar_t actual_str_buffer[4096]; ; 43 : PMC_STATUS_CODE result; ; 44 : PMC_STATUS_CODE x_result; ; 45 : PMC_NUMBER_FORMAT_OPTION opt; ; 46 : lstrcpyW(opt.GroupSeparator, L","); mov esi, esp push OFFSET $SG94549 lea eax, DWORD PTR _opt$[ebp+4] push eax call DWORD PTR __imp__lstrcpyW@8 cmp esi, esp call __RTC_CheckEsp ; 47 : lstrcpy(opt.GroupSizes, "3"); mov esi, esp push OFFSET $SG94550 lea ecx, DWORD PTR _opt$[ebp+28] push ecx call DWORD PTR __imp__lstrcpyA@8 cmp esi, esp call __RTC_CheckEsp ; 48 : lstrcpyW(opt.DecimalSeparator, L"."); mov esi, esp push OFFSET $SG94551 lea edx, DWORD PTR _opt$[ebp+10] push edx call DWORD PTR __imp__lstrcpyW@8 cmp esi, esp call __RTC_CheckEsp ; 49 : opt.DecimalDigits = 2; mov DWORD PTR _opt$[ebp], 2 ; 50 : lstrcpyW(opt.PositiveSign, L"+"); mov esi, esp push OFFSET $SG94552 lea eax, DWORD PTR _opt$[ebp+16] push eax call DWORD PTR __imp__lstrcpyW@8 cmp esi, esp call __RTC_CheckEsp ; 51 : lstrcpyW(opt.NegativeSign, L"-"); mov esi, esp push OFFSET $SG94553 lea ecx, DWORD PTR _opt$[ebp+22] push ecx call DWORD PTR __imp__lstrcpyW@8 cmp esi, esp call __RTC_CheckEsp ; 52 : TEST_Assert(env, FormatTestLabel(L"ToStringX (%d.%d)", no, 1), (x_result = ep->PMC_FromByteArray(buf, buf_size, &x)) == PMC_STATUS_OK, FormatTestMesssage(L"PMC_FromByteArrayの復帰コードが期待通りではない(%d)", x_result)); mov esi, esp lea edx, DWORD PTR _x$[ebp] push edx mov eax, DWORD PTR _buf_size$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx mov edx, DWORD PTR _ep$[ebp] mov eax, DWORD PTR [edx+24] call eax cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _x_result$[ebp], eax cmp DWORD PTR _x_result$[ebp], 0 jne SHORT $LN4@TEST_PMC_T mov DWORD PTR tv84[ebp], 1 jmp SHORT $LN5@TEST_PMC_T $LN4@TEST_PMC_T: mov DWORD PTR tv84[ebp], 0 $LN5@TEST_PMC_T: mov ecx, DWORD PTR _x_result$[ebp] push ecx push OFFSET $SG94554 call _FormatTestMesssage add esp, 8 push eax mov edx, DWORD PTR tv84[ebp] push edx push 1 mov eax, DWORD PTR _no$[ebp] push eax push OFFSET $SG94555 call _FormatTestLabel add esp, 12 ; 0000000cH push eax mov ecx, DWORD PTR _env$[ebp] push ecx call _TEST_Assert add esp, 16 ; 00000010H ; 53 : TEST_Assert(env, FormatTestLabel(L"ToStringX (%d.%d)", no, 2), (result = ep->PMC_ToString(x, actual_str_buffer, sizeof(actual_str_buffer), format_spec, min_width, &opt)) == PMC_STATUS_OK, FormatTestMesssage(L"PMC_ToStringの復帰コードが期待通りではない(%d)", result)); mov esi, esp lea edx, DWORD PTR _opt$[ebp] push edx mov eax, DWORD PTR _min_width$[ebp] push eax movzx ecx, BYTE PTR _format_spec$[ebp] push ecx push 8192 ; 00002000H push OFFSET ?actual_str_buffer@?1??TEST_PMC_ToStringX@@9@9 mov edx, DWORD PTR _x$[ebp] push edx mov eax, DWORD PTR _ep$[ebp] mov ecx, DWORD PTR [eax+44] call ecx cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _result$[ebp], eax cmp DWORD PTR _result$[ebp], 0 jne SHORT $LN6@TEST_PMC_T mov DWORD PTR tv137[ebp], 1 jmp SHORT $LN7@TEST_PMC_T $LN6@TEST_PMC_T: mov DWORD PTR tv137[ebp], 0 $LN7@TEST_PMC_T: mov edx, DWORD PTR _result$[ebp] push edx push OFFSET $SG94556 call _FormatTestMesssage add esp, 8 push eax mov eax, DWORD PTR tv137[ebp] push eax push 2 mov ecx, DWORD PTR _no$[ebp] push ecx push OFFSET $SG94557 call _FormatTestLabel add esp, 12 ; 0000000cH push eax mov edx, DWORD PTR _env$[ebp] push edx call _TEST_Assert add esp, 16 ; 00000010H ; 54 : TEST_Assert(env, FormatTestLabel(L"ToStringX (%d.%d)", no, 3), lstrcmpW(actual_str_buffer, desired_str) == 0, L"データの内容が一致しない"); mov esi, esp mov eax, DWORD PTR _desired_str$[ebp] push eax push OFFSET ?actual_str_buffer@?1??TEST_PMC_ToStringX@@9@9 call DWORD PTR __imp__lstrcmpW@8 cmp esi, esp call __RTC_CheckEsp test eax, eax jne SHORT $LN8@TEST_PMC_T mov DWORD PTR tv150[ebp], 1 jmp SHORT $LN9@TEST_PMC_T $LN8@TEST_PMC_T: mov DWORD PTR tv150[ebp], 0 $LN9@TEST_PMC_T: push OFFSET $SG94558 mov ecx, DWORD PTR tv150[ebp] push ecx push 3 mov edx, DWORD PTR _no$[ebp] push edx push OFFSET $SG94559 call _FormatTestLabel add esp, 12 ; 0000000cH push eax mov eax, DWORD PTR _env$[ebp] push eax call _TEST_Assert add esp, 16 ; 00000010H ; 55 : if (x_result == PMC_STATUS_OK) cmp DWORD PTR _x_result$[ebp], 0 jne SHORT $LN1@TEST_PMC_T ; 56 : ep->PMC_Dispose(x); mov esi, esp mov ecx, DWORD PTR _x$[ebp] push ecx mov edx, DWORD PTR _ep$[ebp] mov eax, DWORD PTR [edx+16] call eax cmp esi, esp call __RTC_CheckEsp $LN1@TEST_PMC_T: ; 57 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN13@TEST_PMC_T call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi mov ecx, DWORD PTR __$ArrayPad$[ebp] xor ecx, ebp call @__security_check_cookie@4 add esp, 84 ; 00000054H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN13@TEST_PMC_T: DD 2 DD $LN12@TEST_PMC_T $LN12@TEST_PMC_T: DD -12 ; fffffff4H DD 4 DD $LN10@TEST_PMC_T DD -68 ; ffffffbcH DD 40 ; 00000028H DD $LN11@TEST_PMC_T $LN11@TEST_PMC_T: DB 111 ; 0000006fH DB 112 ; 00000070H DB 116 ; 00000074H DB 0 $LN10@TEST_PMC_T: DB 120 ; 00000078H DB 0 _TEST_PMC_ToStringX ENDP _TEXT ENDS END
26.132791
265
0.677797
9c5355d05c9592f228b976c36f16a00dd5da0ccd
3,841
asm
Assembly
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_3dnowext.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
2
2020-10-14T21:07:10.000Z
2021-03-06T12:40:08.000Z
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_3dnowext.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_3dnowext.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
; 1 "synth_3dnowext.S" ; 1 "<built-in>" ; 1 "<command line>" ; 1 "synth_3dnowext.S" ; 1 "mangle.h" 1 ; 13 "mangle.h" ; 1 "config.h" 1 ; 14 "mangle.h" 2 ; 1 "intsym.h" 1 ; 15 "mangle.h" 2 ; 2 "synth_3dnowext.S" 2 ; 1 "synth_sse3d.h" 1 ; 34 "synth_sse3d.h" %include "asm_nasm.inc" ; NOTE: intsym.h doesn't prefix synth_1to1_3dnowext_asm with INT123_ %ifdef UNDERSCORE %define synth_1to1_3dnowext_asm _synth_1to1_3dnowext_asm %endif _sym_mangle dct64_3dnowext EXTERN dct64_3dnowext SECTION .data ALIGN 8 one_null: dd -65536 dd -65536 ALIGN 8 null_one: dd 65535 dd 65535 SECTION .text ALIGN 16 GLOBAL synth_1to1_3dnowext_asm synth_1to1_3dnowext_asm: push ebp mov ebp,esp sub esp,4 push edi push esi push ebx ; 73 "synth_sse3d.h" mov ecx, [ebp+12] mov edi, [ebp+16] mov ebx,15 mov edx, [ebp+24] lea edi, [edi+ecx*2] dec ecx mov esi, [ebp+20] mov eax, [edx] jecxz .l1 dec eax and eax,ebx lea esi, [esi+1088] mov [edx],eax .l1: lea edx, [esi+eax*2] mov [esp+12],eax inc eax and eax,ebx lea ecx, [esi+eax*2+544] inc ebx test eax,1 jnz short .l2 xchg ecx,edx inc dword [esp+12] lea esi, [esi+544] .l2: push dword [ebp+8] push edx push ecx call dct64_3dnowext add esp,12 lea ecx, [ebx+1] sub ebx, [esp+12] push ecx mov ecx, [ebp+28] lea edx, [ecx+ebx*2] mov ecx, [esp] shr ecx,1 ALIGN 16 .l3: movq mm0,[edx] movq mm4,[edx+64] pmaddwd mm0,[esi] pmaddwd mm4,[esi+32] movq mm1,[edx+8] movq mm5,[edx+72] pmaddwd mm1,[esi+8] pmaddwd mm5,[esi+40] movq mm2,[edx+16] movq mm6,[edx+80] pmaddwd mm2,[esi+16] pmaddwd mm6,[esi+48] movq mm3,[edx+24] movq mm7,[edx+88] pmaddwd mm3,[esi+24] pmaddwd mm7,[esi+56] paddd mm0,mm1 paddd mm4,mm5 paddd mm0,mm2 paddd mm4,mm6 paddd mm0,mm3 paddd mm4,mm7 movq mm1,mm0 movq mm5,mm4 psrlq mm1,32 psrlq mm5,32 paddd mm0,mm1 paddd mm4,mm5 psrad mm0,13 psrad mm4,13 packssdw mm0,mm0 packssdw mm4,mm4 movq mm1,[edi] punpckldq mm0,mm4 pand mm1,[one_null] pand mm0,[null_one] por mm1,mm0 movq [edi],mm1 lea esi, [esi+64] lea edx, [edx+128] lea edi, [edi+8] dec ecx jnz .l3 pop ecx and ecx,1 jecxz .l4 movq mm0,[edx] pmaddwd mm0,[esi] movq mm1,[edx+8] pmaddwd mm1,[esi+8] movq mm2,[edx+16] pmaddwd mm2,[esi+16] movq mm3,[edx+24] pmaddwd mm3,[esi+24] paddd mm0,mm1 paddd mm0,mm2 paddd mm0,mm3 movq mm1,mm0 psrlq mm1,32 paddd mm0,mm1 psrad mm0,13 packssdw mm0,mm0 movd eax,mm0 mov [edi],ax lea esi, [esi+32] lea edx, [edx+64] lea edi, [edi+4] .l4: sub esi,64 mov ecx,7 ALIGN 16 .l5: movq mm0,[edx] movq mm4,[edx+64] pmaddwd mm0,[esi] pmaddwd mm4,[esi-32] movq mm1,[edx+8] movq mm5,[edx+72] pmaddwd mm1,[esi+8] pmaddwd mm5,[esi-24] movq mm2,[edx+16] movq mm6,[edx+80] pmaddwd mm2,[esi+16] pmaddwd mm6,[esi-16] movq mm3,[edx+24] movq mm7,[edx+88] pmaddwd mm3,[esi+24] pmaddwd mm7,[esi-8] paddd mm0,mm1 paddd mm4,mm5 paddd mm0,mm2 paddd mm4,mm6 paddd mm0,mm3 paddd mm4,mm7 movq mm1,mm0 movq mm5,mm4 psrlq mm1,32 psrlq mm5,32 paddd mm1,mm0 paddd mm5,mm4 psrad mm1,13 psrad mm5,13 packssdw mm1,mm1 packssdw mm5,mm5 psubd mm0,mm0 psubd mm4,mm4 psubsw mm0,mm1 psubsw mm4,mm5 movq mm1,[edi] punpckldq mm0,mm4 pand mm1,[one_null] pand mm0,[null_one] por mm1,mm0 movq [edi],mm1 sub esi,64 add edx,128 lea edi, [edi+8] dec ecx jnz .l5 movq mm0,[edx] pmaddwd mm0,[esi] movq mm1,[edx+8] pmaddwd mm1,[esi+8] movq mm2,[edx+16] pmaddwd mm2,[esi+16] movq mm3,[edx+24] pmaddwd mm3,[esi+24] paddd mm0,mm1 paddd mm0,mm2 paddd mm0,mm3 movq mm1,mm0 psrlq mm1,32 paddd mm1,mm0 psrad mm1,13 packssdw mm1,mm1 psubd mm0,mm0 psubsw mm0,mm1 movd eax,mm0 mov [edi],ax emms pop ebx pop esi pop edi mov esp,ebp pop ebp ret ; 5 "synth_3dnowext.S" 2 ; 13 "synth_3dnowext.S"
15.003906
68
0.66415
d75a7ee361eacce490e7c2505cd6bf1c9681c213
638
asm
Assembly
testdata/dos/addof.asm
rcleveng/go86
ea438424f2e0625e9644832177b8d10e211f75c4
[ "Apache-2.0" ]
1
2022-02-24T17:20:30.000Z
2022-02-24T17:20:30.000Z
testdata/dos/addof.asm
rcleveng/go86
ea438424f2e0625e9644832177b8d10e211f75c4
[ "Apache-2.0" ]
null
null
null
testdata/dos/addof.asm
rcleveng/go86
ea438424f2e0625e9644832177b8d10e211f75c4
[ "Apache-2.0" ]
null
null
null
; Testing add with overflow org 100h push cs pop ds mov si, banner call printmsg mov ax, 0F000h mov es, ax cmp word [oper], 0 jz fail add word [oper], 80h cmp word [oper], 0 jnz fail jmp pass add word [oper2], 80h add word [oper2], 80h cmp word [oper2], 0 jz fail jmp pass finished: ret pass: mov si, strgood call printmsg ret fail: mov si, strfail call printmsg jmp finished printmsg: mov ah, 0Eh cld lodsb cmp al, 0 jz done int 10h jmp printmsg done: ret banner db 'Test for ADD with overflow and CMP',13,10, 0 strgood db 'passed!',13,10,0 strfail db 'FAILED!',13,10,0 dot db '.',0 oper dw 0ff80h oper2 dw 0h
10.813559
57
0.695925
94f783df5b9f124155d94ad86af88ea7ae3efb1f
184
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/exp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/exp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/exp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC exp EXTERN _m32_expf defc exp = _m32_expf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _exp EXTERN cm32_sdcc_exp defc _exp = cm32_sdcc_exp ENDIF
12.266667
25
0.798913
6fb584109e5c1e0086c7d356f02795b183f0ea95
1,236
asm
Assembly
programs/oeis/007/A007911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/007/A007911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/007/A007911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A007911: a(n) = (n-1)!! - (n-2)!!. ; 1,1,5,7,33,57,279,561,2895,6555,35685,89055,509985,1381905,8294895,24137505,151335135,468934515,3061162125,10033419375,68000295825,234484536825,1645756410375,5943863027025,43105900812975,162446292283275,1214871076343925,4761954230608575,36659590336994625,149048910271886625,1179297174137457375,4961463912662882625,40288002704636061375,175022432901300859875,1456700757237661060125,6522450679923530727375,55576271870507820056625,256053920369732059199625,2231251669352950693824375,10561987801562160138800625,94032401099596806911439375,456716558123298714433066875,4150538718839947492706773125,20659390587105726945002889375,191488643096318168174459510625,975705758342489697417790520625,9216828659958898330321714119375,48026444593213939599593852630625,462034001190719350639625613609375,2459758071106644252033148105921875,24084203903363353505313987382078125,130887647611288811980449930701859375 mov $4,2 mov $6,$0 lpb $4 mov $0,$6 sub $4,1 add $0,$4 sub $0,1 mov $5,0 lpb $0 add $5,$0 mul $5,$0 add $5,$0 sub $0,2 lpe add $3,1 add $5,1 lpb $3 add $0,$5 sub $3,1 lpe mov $2,$4 mul $2,$0 add $1,$2 mov $5,$0 lpe min $6,1 mul $6,$5 sub $1,$6 mov $0,$1
37.454545
889
0.796926
03ee899036636cbdb924d75327bd744c8265cdd5
5,892
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1123.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_0xca.log_21829_1123.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_0xca.log_21829_1123.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 %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1036f, %r15 nop mfence mov $0x6162636465666768, %rdx movq %rdx, (%r15) inc %r8 lea addresses_UC_ht+0x19d37, %rax nop nop nop nop inc %rcx mov (%rax), %r15 nop nop nop nop nop add $7520, %rcx lea addresses_D_ht+0x956f, %rsi lea addresses_A_ht+0x3c2f, %rdi add %rax, %rax mov $14, %rcx rep movsl nop nop nop nop nop cmp $2374, %r15 lea addresses_A_ht+0x956f, %rsi nop nop nop xor %rcx, %rcx movb (%rsi), %dl nop nop nop cmp $31746, %r15 lea addresses_WT_ht+0x14e6f, %rcx add $34096, %rdx mov (%rcx), %di nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0x107ef, %rax clflush (%rax) nop nop nop nop xor $36632, %rsi mov $0x6162636465666768, %rdx movq %rdx, %xmm1 vmovups %ymm1, (%rax) nop nop nop nop sub $25271, %r15 lea addresses_WT_ht+0x31ef, %rdi nop nop nop and %rax, %rax vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r9 sub %rsi, %rsi lea addresses_normal_ht+0xea6f, %rsi lea addresses_UC_ht+0x157df, %rdi add %r9, %r9 mov $87, %rcx rep movsl xor $17263, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r8 push %rax push %rbx // Faulty Load lea addresses_WC+0x6d6f, %r8 add $26726, %rax movb (%r8), %r12b lea oracles, %r15 and $0xff, %r12 shlq $12, %r12 mov (%r15,%r12,1), %r12 pop %rbx pop %rax pop %r8 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}} {'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 */
41.787234
2,999
0.65835
596cf09921a6d58fe8d3d791016c8ca7306c75a4
3,104
asm
Assembly
Tests/IO/Math.e.asm
ShawSumma/Evie
900b1f68613c15bac48aa9d614a64c972af86b15
[ "MIT" ]
null
null
null
Tests/IO/Math.e.asm
ShawSumma/Evie
900b1f68613c15bac48aa9d614a64c972af86b15
[ "MIT" ]
null
null
null
Tests/IO/Math.e.asm
ShawSumma/Evie
900b1f68613c15bac48aa9d614a64c972af86b15
[ "MIT" ]
null
null
null
.intel_syntax noprefix .global _Z4mainv .global _Z10Start_Testv .section .text #.text _Z10Start_Testv: mov ecx, 6 #Return_Value94, 6 jmp Return_Here_126 #Return_Here_126 Return_Here_126: mov r8d, ecx #REG_Return_Value940, Return_Value94 mov r9, rdx #REG_Return_Value940_REMAINDER10291, REMAINDER_30836 mov eax, 3 #3_QUOTIENT24350, 3 mul r8d #REG_Return_Value940 mov r8d, eax #REG_Return_Value940, 3_QUOTIENT24350 mov rdx, r9 #REMAINDER_30836, REG_Return_Value940_REMAINDER10291 mov r8d, r8d #c, REG_Return_Value940 mov r9d, r8d #REG_c1, c xor edx, edx #REG_c1_REMAINDER11020, REG_c1_REMAINDER11020 mov eax, r9d #REG_c1_QUOTIENT9374, REG_c1 div ecx #Return_Value94 mov r9d, eax #REG_c1, REG_c1_QUOTIENT9374 mov ecx, r9d #d, REG_c1 add ecx, 3 #d, 3 add ecx, 6 #d, 6 sub ecx, r8d #d, c mov eax, ecx #Returning_REG2, d ret # mov ecx, 1065353216 #REG_1065357812, 1065353216 movd xmm0, ecx #MEDIA_1065377237, REG_1065357812 movss xmm0, xmm0 #Return_Value95, MEDIA_1065377237 jmp Return_Here_127 #Return_Here_127 Return_Here_127: cvttss2si ecx, xmm0 #REG_Return_Value953, Return_Value95 mov eax, ecx #Returning_REG4, REG_Return_Value953 ret # mov eax, -6 #Returning_REG5, -6 ret # ret # _Z4mainv: mov ecx, 6 #Return_Value94_96, 6 jmp Return_Here_129 #Return_Here_129 Return_Here_129: mov r8d, ecx #REG_Return_Value94_960, Return_Value94_96 mov r9, rdx #REG_Return_Value94_960_REMAINDER23199, REMAINDER_19668 mov eax, 3 #3_QUOTIENT27348, 3 mul r8d #REG_Return_Value94_960 mov r8d, eax #REG_Return_Value94_960, 3_QUOTIENT27348 mov rdx, r9 #REMAINDER_19668, REG_Return_Value94_960_REMAINDER23199 mov r8d, r8d #c_96, REG_Return_Value94_960 mov r8d, r8d #REG_c_961, c_96 xor edx, edx #REG_c_961_REMAINDER8281, REG_c_961_REMAINDER8281 mov eax, r8d #REG_c_961_QUOTIENT24484, REG_c_961 div ecx #Return_Value94_96 mov r8d, eax #REG_c_961, REG_c_961_QUOTIENT24484 mov ecx, r8d #d_96, REG_c_961 jmp Return_Here_128 #Return_Here_128 mov ecx, 1065353216 #REG_1065357950, 1065353216 movd xmm0, ecx #MEDIA_1065353269, REG_1065357950 movss xmm0, xmm0 #Return_Value95_96, MEDIA_1065353269 jmp Return_Here_130 #Return_Here_130 Return_Here_130: jmp Return_Here_128 #Return_Here_128 jmp Return_Here_128 #Return_Here_128 Return_Here_128: mov eax, 1 #Returning_REG2, 1 ret # ret # .section .data #.data std_MAX_CONCOLE_BUFFER_LENGHT: .long 4096 #4096 std_GENERIC_WRITE: .long 1073741824 #1073741824 std_GENERIC_READ: .quad 2147483648 #2147483648 std_FILE_SHARE_NONE: .long 0 #0 std_FILE_SHARE_READ: .long 1 #1 std_FILE_SHARE_WRITE: .long 2 #2 std_FILE_SHARE_DELETE: .long 4 #4 std_CREATE_NEW: .long 1 #1 std_CREATE_ALWAYS: .long 2 #2 std_OPEN_EXISTING: .long 3 #3 std_OPEN_ALWAYS: .long 4 #4 std_TRUNCATE_EXISTING: .long 4 #4 std_FILE_ATTRIBUTE_NORMAL: .long 128 #128 std_FILE_ATTRIBUTE_FOLDER: .long 16 #16 std_MAXIMUM_PATH_LENGTH: .long 260 #260 std_ERROR_INSUFFICIENT_BUFFER: .long 122 #122 std_MINIMUM_PROCESS_FILENAME_LENGTH: .long 50 #50
29.283019
69
0.770296
b7b6b14711ed491265fd6b033797827deaa0a601
9,526
asm
Assembly
maps/unused/Route30.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/Route30.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/Route30.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
object_const_def ; object_event constants const ROUTE30_YOUNGSTER1 const ROUTE30_YOUNGSTER2 const ROUTE30_YOUNGSTER3 const ROUTE30_BUG_CATCHER const ROUTE30_YOUNGSTER4 const ROUTE30_MONSTER1 const ROUTE30_MONSTER2 const ROUTE30_FRUIT_TREE1 const ROUTE30_FRUIT_TREE2 const ROUTE30_COOLTRAINER_F const ROUTE30_POKE_BALL Route30_MapScripts: db 0 ; scene scripts db 0 ; callbacks YoungsterJoey_ImportantBattleScript: waitsfx playmusic MUSIC_JOHTO_TRAINER_BATTLE opentext writetext Text_UseTackle pause 30 closetext playsound SFX_TACKLE applymovement ROUTE30_MONSTER2, Route30_JoeysRattataAttacksMovement opentext faceplayer writetext Text_ThisIsABigBattle waitbutton turnobject ROUTE30_YOUNGSTER1, UP closetext playsound SFX_TACKLE applymovement ROUTE30_MONSTER1, Route30_MikeysRattataAttacksMovement special RestartMapMusic end TrainerYoungsterJoey: trainer YOUNGSTER, JOEY1, EVENT_BEAT_YOUNGSTER_JOEY, YoungsterJoey1SeenText, YoungsterJoey1BeatenText, 0, .Script .Script: loadvar VAR_CALLERID, PHONE_YOUNGSTER_JOEY endifjustbattled opentext checkflag ENGINE_JOEY iftrue .Rematch checkcellnum PHONE_YOUNGSTER_JOEY iftrue .NumberAccepted checkevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER iftrue .AskAgain writetext YoungsterJoey1AfterText buttonsound setevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER scall .AskNumber1 sjump .RequestNumber .AskAgain: scall .AskNumber2 .RequestNumber: askforphonenumber PHONE_YOUNGSTER_JOEY ifequal PHONE_CONTACTS_FULL, .PhoneFull ifequal PHONE_CONTACT_REFUSED, .NumberDeclined gettrainername STRING_BUFFER_3, YOUNGSTER, JOEY1 scall .RegisteredNumber sjump .NumberAccepted .Rematch: scall .RematchStd winlosstext YoungsterJoey1BeatenText, 0 readmem wJoeyFightCount ifequal 4, .Fight4 ifequal 3, .Fight3 ifequal 2, .Fight2 ifequal 1, .Fight1 ifequal 0, .LoadFight0 .Fight4: checkevent EVENT_BEAT_ELITE_FOUR iftrue .LoadFight4 .Fight3: ; checkevent EVENT_CLEARED_RADIO_TOWER ; iftrue .LoadFight3 .Fight2: checkflag ENGINE_FLYPOINT_OLIVINE iftrue .LoadFight2 .Fight1: checkflag ENGINE_FLYPOINT_GOLDENROD iftrue .LoadFight1 .LoadFight0: loadtrainer YOUNGSTER, JOEY1 startbattle reloadmapafterbattle loadmem wJoeyFightCount, 1 clearflag ENGINE_JOEY end .LoadFight1: loadtrainer YOUNGSTER, JOEY2 startbattle reloadmapafterbattle loadmem wJoeyFightCount, 2 clearflag ENGINE_JOEY end .LoadFight2: loadtrainer YOUNGSTER, JOEY3 startbattle reloadmapafterbattle loadmem wJoeyFightCount, 3 clearflag ENGINE_JOEY end .LoadFight3: loadtrainer YOUNGSTER, JOEY4 startbattle reloadmapafterbattle loadmem wJoeyFightCount, 4 clearflag ENGINE_JOEY end .LoadFight4: loadtrainer YOUNGSTER, JOEY5 startbattle reloadmapafterbattle clearflag ENGINE_JOEY checkevent EVENT_JOEY_HP_UP iftrue .GiveHPUp checkevent EVENT_GOT_HP_UP_FROM_JOEY iftrue .done scall .RematchGift verbosegiveitem HP_UP iffalse .PackFull setevent EVENT_GOT_HP_UP_FROM_JOEY sjump .NumberAccepted .done end .GiveHPUp: opentext writetext YoungsterJoeyText_GiveHPUpAfterBattle waitbutton verbosegiveitem HP_UP iffalse .PackFull clearevent EVENT_JOEY_HP_UP setevent EVENT_GOT_HP_UP_FROM_JOEY sjump .NumberAccepted .AskNumber1: jumpstd asknumber1m end .AskNumber2: jumpstd asknumber2m end .RegisteredNumber: jumpstd registerednumberm end .NumberAccepted: jumpstd numberacceptedm end .NumberDeclined: jumpstd numberdeclinedm end .PhoneFull: jumpstd phonefullm end .RematchStd: jumpstd rematchm end .PackFull: setevent EVENT_JOEY_HP_UP jumpstd packfullm end .RematchGift: jumpstd rematchgiftm end TrainerYoungsterMikey: trainer YOUNGSTER, MIKEY, EVENT_BEAT_YOUNGSTER_MIKEY, YoungsterMikeySeenText, YoungsterMikeyBeatenText, 0, .Script .Script: endifjustbattled opentext writetext YoungsterMikeyAfterText waitbutton closetext end TrainerBugCatcherDon: trainer BUG_CATCHER, DON, EVENT_BEAT_BUG_CATCHER_DON, BugCatcherDonSeenText, BugCatcherDonBeatenText, 0, .Script .Script: endifjustbattled opentext writetext BugCatcherDonAfterText waitbutton closetext end Route30YoungsterScript: faceplayer opentext ; checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM ; iftrue .CompletedEggQuest writetext Route30YoungsterText_DirectionsToMrPokemonsHouse waitbutton closetext end .CompletedEggQuest: writetext Route30YoungsterText_EveryoneIsBattling waitbutton closetext end Route30CooltrainerFScript: jumptextfaceplayer Route30CooltrainerFText Route30Sign: jumptext Route30SignText MrPokemonsHouseDirectionsSign: jumptext MrPokemonsHouseDirectionsSignText MrPokemonsHouseSign: jumptext MrPokemonsHouseSignText Route30TrainerTips: jumptext Route30TrainerTipsText Route30Antidote: itemball ANTIDOTE Route30FruitTree1: fruittree FRUITTREE_ROUTE_30_1 Route30FruitTree2: fruittree FRUITTREE_ROUTE_30_2 Route30HiddenPotion: hiddenitem POTION, EVENT_ROUTE_30_HIDDEN_POTION Route30_JoeysRattataAttacksMovement: fix_facing big_step UP big_step DOWN step_end Route30_MikeysRattataAttacksMovement: fix_facing big_step DOWN big_step UP step_end Text_UseTackle: text "Go, RATTATA!" para "TACKLE!" done Text_ThisIsABigBattle: text "What? This is a" line "big battle!" cont "Leave me alone!" done YoungsterJoey1SeenText: text "I just lost, so" line "I'm trying to find" cont "more #MON." para "Wait! You look" line "weak! Come on," cont "let's battle!" done YoungsterJoey1BeatenText: text "Ack! I lost again!" line "Doggone it!" done YoungsterJoey1AfterText: text "Do I have to have" line "more #MON in" para "order to battle" line "better?" para "No! I'm sticking" line "with this one no" cont "matter what!" done YoungsterMikeySeenText: text "You're a #MON" line "trainer, right?" para "Then you have to" line "battle!" done YoungsterMikeyBeatenText: text "That's strange." line "I won before." done YoungsterMikeyAfterText: text "Becoming a good" line "trainer is really" cont "tough." para "I'm going to bat-" line "tle other people" cont "to get better." done BugCatcherDonSeenText: text "Instead of a bug" line "#MON, I found" cont "a trainer!" done BugCatcherDonBeatenText: text "Argh! You're too" line "strong!" done BugCatcherDonAfterText: text "I ran out of #" line "BALLS while I was" cont "catching #MON." para "I should've bought" line "some more…" done Route30YoungsterText_DirectionsToMrPokemonsHouse: text "MR.#MON's" line "house? It's a bit" cont "farther ahead." done Route30YoungsterText_EveryoneIsBattling: text "Everyone's having" line "fun battling!" cont "You should too!" done Route30CooltrainerFText: text "I'm not a trainer." para "But if you look" line "one in the eyes," cont "prepare to battle." done Route30SignText: text "ROUTE 30" para "VIOLET CITY -" line "CHERRYGROVE CITY" done MrPokemonsHouseDirectionsSignText: text "MR.#MON'S HOUSE" line "STRAIGHT AHEAD!" done MrPokemonsHouseSignText: text "MR.#MON'S HOUSE" done Route30TrainerTipsText: text "TRAINER TIPS" para "No stealing other" line "people's #MON!" para "# BALLS are to" line "be thrown only at" cont "wild #MON!" done YoungsterJoeyText_GiveHPUpAfterBattle: text "I lost again…" line "Gee, you're tough!" para "Oh yeah, I almost" line "forgot that I had" cont "to give you this." para "Use it to get even" line "tougher, OK?" para "I'm going to get" line "tougher too." done Route30_MapEvents: db 0, 0 ; filler db 2 ; warp events warp_event 7, 39, ROUTE_30_BERRY_HOUSE, 1 warp_event 17, 5, MR_POKEMONS_HOUSE, 1 db 0 ; coord events db 5 ; bg events bg_event 9, 43, BGEVENT_READ, Route30Sign bg_event 13, 29, BGEVENT_READ, MrPokemonsHouseDirectionsSign bg_event 15, 5, BGEVENT_READ, MrPokemonsHouseSign bg_event 3, 21, BGEVENT_READ, Route30TrainerTips bg_event 14, 9, BGEVENT_ITEM, Route30HiddenPotion db 11 ; object events object_event 5, 26, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, YoungsterJoey_ImportantBattleScript, EVENT_ROUTE_30_BATTLE object_event 2, 28, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerYoungsterJoey, EVENT_ROUTE_30_YOUNGSTER_JOEY object_event 5, 23, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterMikey, -1 object_event 1, 7, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherDon, -1 object_event 7, 30, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route30YoungsterScript, -1 object_event 5, 24, SPRITE_MONSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ROUTE_30_BATTLE object_event 5, 25, SPRITE_MONSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ROUTE_30_BATTLE object_event 5, 39, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30FruitTree1, -1 object_event 11, 5, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30FruitTree2, -1 object_event 2, 13, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30CooltrainerFScript, -1 object_event 8, 35, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route30Antidote, EVENT_ROUTE_30_ANTIDOTE
21.898851
176
0.800756
f4062efd314e6b37fbbd6c7294a567b9dd8d37a3
5,971
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_824.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_824.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_824.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 %r8 push %r9 push %rax push %rsi lea addresses_UC_ht+0x122fe, %rax nop nop nop nop cmp %r11, %r11 mov (%rax), %r8 nop inc %r8 lea addresses_A_ht+0x3afe, %rsi nop nop dec %r10 vmovups (%rsi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r9 inc %r11 pop %rsi pop %rax pop %r9 pop %r8 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi // Store lea addresses_PSE+0xa7e8, %rdx nop nop nop nop xor %rax, %rax movw $0x5152, (%rdx) nop nop nop xor %rdx, %rdx // Load lea addresses_WC+0x121e, %rdx nop nop nop cmp %r14, %r14 movb (%rdx), %al nop xor $46081, %rdx // Store lea addresses_UC+0xd0ee, %r8 nop nop nop and $42617, %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovups %ymm4, (%r8) nop nop nop nop nop cmp $9482, %rbx // Store lea addresses_UC+0x10b56, %r14 sub $56478, %r15 mov $0x5152535455565758, %r8 movq %r8, %xmm2 movups %xmm2, (%r14) nop nop nop and %rbx, %rbx // REPMOV lea addresses_RW+0x9f56, %rsi lea addresses_normal+0x11524, %rdi nop nop nop nop dec %rbx mov $85, %rcx rep movsb nop nop sub $59153, %rbx // REPMOV lea addresses_WT+0xd34e, %rsi lea addresses_UC+0x9680, %rdi nop nop nop cmp %rdx, %rdx mov $34, %rcx rep movsq nop sub $29034, %rdx // Faulty Load lea addresses_WT+0xb21e, %rbp nop nop add $64323, %rdi mov (%rbp), %r8w lea oracles, %rbp and $0xff, %r8 shlq $12, %r8 mov (%rbp,%r8,1), %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_RW', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WT', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC', 'congruent': 0, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
36.631902
2,999
0.654832
8525ec4aa892d36cf79da144366b6e166b5bf5a4
584
asm
Assembly
oeis/161/A161549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/161/A161549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/161/A161549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A161549: a(n) = 2n^2 + 14n + 1. ; 1,17,37,61,89,121,157,197,241,289,341,397,457,521,589,661,737,817,901,989,1081,1177,1277,1381,1489,1601,1717,1837,1961,2089,2221,2357,2497,2641,2789,2941,3097,3257,3421,3589,3761,3937,4117,4301,4489,4681,4877,5077,5281,5489,5701,5917,6137,6361,6589,6821,7057,7297,7541,7789,8041,8297,8557,8821,9089,9361,9637,9917,10201,10489,10781,11077,11377,11681,11989,12301,12617,12937,13261,13589,13921,14257,14597,14941,15289,15641,15997,16357,16721,17089,17461,17837,18217,18601,18989,19381,19777,20177,20581 mov $1,$0 mul $0,2 add $1,7 mul $0,$1 add $0,1
64.888889
501
0.756849
35738bda4c5185a5de77471ac224b1c1665b00ed
292
asm
Assembly
programs/oeis/212/A212427.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/212/A212427.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/212/A212427.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A212427: a(n) = 17*n + A000217(n-1). ; 0,17,35,54,74,95,117,140,164,189,215,242,270,299,329,360,392,425,459,494,530,567,605,644,684,725,767,810,854,899,945,992,1040,1089,1139,1190,1242,1295,1349,1404,1460,1517,1575,1634,1694,1755,1817,1880,1944,2009 mov $1,$0 add $0,33 mul $1,$0 div $1,2
36.5
212
0.695205