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
c1f97d62aed380dbb3a0cb0b520c93b91b8862b6
196
asm
Assembly
games/HomeLand/Names/Monsters.asm
BttrDrgn/GC-Translation
4d9feab9523bc49c5b23542e28565bc50c1152c7
[ "Unlicense" ]
1
2022-03-27T09:03:45.000Z
2022-03-27T09:03:45.000Z
games/HomeLand/Names/Monsters.asm
BttrDrgn/GC-Translation
4d9feab9523bc49c5b23542e28565bc50c1152c7
[ "Unlicense" ]
null
null
null
games/HomeLand/Names/Monsters.asm
BttrDrgn/GC-Translation
4d9feab9523bc49c5b23542e28565bc50c1152c7
[ "Unlicense" ]
null
null
null
Text($43B45A44, "Mill") Text($43CF8B04, "Mill") Text($49B5C758, "Mill") Text($49B5C758, "Mill") Text($43B45A8C, "Amyl") ; fill 4 Text($43CF8B4C, "Amyl") ; fill 4 Text($49B5C7A0, "Amyl") ; fill 4
21.777778
32
0.647959
97952bf742321f10f0939ed80e6c256ed0717c52
1,407
asm
Assembly
boot/src/print_16.asm
aryan-gupta/OS_2
50f7deb573fa50fead42bb748a8ff4743701cc67
[ "MIT" ]
null
null
null
boot/src/print_16.asm
aryan-gupta/OS_2
50f7deb573fa50fead42bb748a8ff4743701cc67
[ "MIT" ]
null
null
null
boot/src/print_16.asm
aryan-gupta/OS_2
50f7deb573fa50fead42bb748a8ff4743701cc67
[ "MIT" ]
null
null
null
; Contains functions pertaining to printing in 16-bit real mode [BITS 16] ; prints a letter ; precondition: al stores the letter (8 bits) to be printed print_ltr_16: pusha mov ah, 0x0e ; set tty int 0x10 popa ret ; Prints a string ; precondition: pointer to string is strored in si print_str_16: pusha .ps_repeat: lodsb ; loads letter at si to al test al, al ; optimized version of cmp al, 0 je .ps_ret call print_ltr_16 jmp .ps_repeat ; repeat .ps_ret: popa ret ; Prints a new line print_nl_16: pusha mov al, 0x0a ; \n call print_ltr_16 mov al, 0x0d ; \r call print_ltr_16 popa ret ; Clears the screen clr_scr_16: ; http://www.ctyme.com/intr/rb-0097.htm pusha mov ax, 0x0700 mov bh, 0x07 ; white on black mov cx, 0x0000 mov dx, 0x184f ; row = 24 (0x18), col = 79 (0x4f) int 0x10 popa ret ; Hide blinking cursor (its annoying) hide_cursor_16: ; http://www.ctyme.com/intr/rb-0086.htm pusha mov ah, 0x01 mov cx, 0x2607 ; 0010 0110 0000 0111 int 0x10 popa ret ; Move cursor at top left position reset_cursor_16: ; http://www.ctyme.com/intr/rb-0087.htm pusha mov ah, 0x02 xor bx, bx ; https://www.wolframalpha.com/input/?i=a+xor+a xor dx, dx int 0x10 popa ret ; Waits for a key ; precondition: bh contains scan code to wait for wait_for_key: ; http://www.ctyme.com/intr/rb-1754.htm pusha .wait: mov ah, 0x00 int 0x16 cmp ah, bh jne .wait popa ret
18.038462
63
0.706468
5d72962f2175934a57beb91128b9c3fb8a167fbd
353
asm
Assembly
libsrc/stdio/mtx/fputc_cons.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/stdio/mtx/fputc_cons.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/stdio/mtx/fputc_cons.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Memotech MTX stdio ; ; (HL)=char to display ; ; $Id: fputc_cons.asm,v 1.4 (git imported) Exp $ ; SECTION code_clib PUBLIC fputc_cons_native .fputc_cons_native ld hl,2 ld b,h ; zero add hl,sp ld a,(hl) IF STANDARDESCAPECHARS cp 10 ELSE cp 13 ENDIF jr nz,nocrlf ld c,13 rst 10h defb 192 ld a,10 .nocrlf ld c,a rst 10h defb 192 ret
11.03125
48
0.68272
93fad9e75509b75289181b118de278608a627df0
175
asm
Assembly
test/br3392411.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
1
2020-06-20T07:35:25.000Z
2020-06-20T07:35:25.000Z
3rdParties/src/nasm/nasm-2.15.02/test/br3392411.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
1
2020-03-26T19:58:54.000Z
2020-04-24T08:58:04.000Z
test/br3392411.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
null
null
null
bits 64 default rel %use smartalign section .text code align=32 align 32 nop jz LDone %rep 10 nop %endrep align 16 %rep 115 nop %endrep LDone:
7.608696
28
0.622857
c1d8ac5511708815aa6ea202eaefbf64e4e52511
94
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acos.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acos.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acos.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 PUBLIC _acos EXTERN cam32_sdcc_acos defc _acos = cam32_sdcc_acos
13.428571
29
0.819149
6f91ba0dc10c3d95724b0bdb4d42414490385194
530
asm
Assembly
oeis/279/A279277.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/279/A279277.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/279/A279277.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A279277: Composition of Lucas numbers A000032 with Fibonacci numbers A000045. ; Submitted by Jon Maiga ; 1,4,12,37,110,327,968,2864,8469,25040,74029,218856,647008,1912753,5654670,16716883,49420052,146100276,431915561,1276869920,3774804441,11159436284,32990587972,97529916957,288327225550,852380393407,2519888066928,7449533000584,22023018662909 lpb $0 sub $0,1 mov $2,$1 sub $2,1 add $3,2 add $1,$3 add $2,$1 sub $3,$4 mov $4,$2 mov $2,$3 add $5,$4 mov $3,$5 add $4,$1 add $5,$2 lpe mov $0,$4 add $0,1
24.090909
240
0.711321
489c7d1a30d49b0e306b925ba71b9266f861e12a
238
asm
Assembly
programs/oeis/010/A010694.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/010/A010694.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/010/A010694.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A010694: Period 2: repeat (2,4). ; 2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2 gcd $0,2 mov $1,4 div $1,$0 mov $0,$1
29.75
163
0.516807
87e66c8ef328893663d8e744379335ec0f0acc78
49,405
asm
Assembly
azcam_soguiders/dspcode/dspcode_maestroguider/gcam_ccid-21.asm
mplesser/azcam-soguiders
08c0592aa6b351c1d4f4e1a77339d0168ae7a5a0
[ "MIT" ]
null
null
null
azcam_soguiders/dspcode/dspcode_maestroguider/gcam_ccid-21.asm
mplesser/azcam-soguiders
08c0592aa6b351c1d4f4e1a77339d0168ae7a5a0
[ "MIT" ]
null
null
null
azcam_soguiders/dspcode/dspcode_maestroguider/gcam_ccid-21.asm
mplesser/azcam-soguiders
08c0592aa6b351c1d4f4e1a77339d0168ae7a5a0
[ "MIT" ]
null
null
null
;***************************************************************************** ; GCAM.ASM -- DSP-BASED CCD CONTROLLER PROGRAM ;***************************************************************************** PAGE 110,60,1,1 TABS 4 ;***************************************************************************** ; Code modified for the CCID-21 29 June 2007 - R. Tucker ; waveform code for driving SW and no TG ; Changes to parallel and serial clocking. ; parallel clocking in one direction, two serial patterns ; bright edge fix - RD, 08May13 MPL ;***************************************************************************** ; ;***************************************************************************** ; DEFINITIONS & POINTERS ;***************************************************************************** START EQU $000100 ; program start location SEQ EQU $000006 ; seq fragment length DZ EQU $001000 ; DAC zero volt offset WS EQU $073FE1 ; periph wait states WS1 EQU $073FE1 ; 1 PERIPH 1 SRAM 31 EPROM WS3 EQU $077FE1 ; 3 PERIPH 1 SRAM 31 EPROM WS5 EQU $07BFE1 ; 5 PERIPH 1 SRAM 31 EPROM ;***************************************************************************** ; COMPILE-TIME OPTIONS ;***************************************************************************** VERSION EQU $1 ; RDMODE EQU $0 ; HOLD_P EQU $020A ; P clock timing $20A=40us HOLD_FT EQU $007C ; FT clock timing $7C=10us xfer HOLD_FL EQU $007C ; FL clock timimg HOLD_S EQU $000F ; S clock timing (leave at $000F) HOLD_RG EQU $0008 ; RG timing HOLD_PL EQU $1F40 ; pre-line settling (1F40=100us) HOLD_FF EQU $0020 ; FF clock timimg HOLD_IPC EQU $1F40 ; IPC clock timing ($1F40=100us) HOLD_SIG EQU $001F ; preamp settling time HOLD_ADC EQU $00AF ; pre-sample settling INIT_NROWS EQU $20A ; $20A=(512+10) INIT_NCOLS EQU $204 ; $204=(512+4) INIT_NFT EQU $200 ; $200-(512) frame-transfer device INIT_NFLUSH EQU $200 ; $200=(512) INIT_NCH EQU $2 ; INIT_VBIN EQU $2 ; INIT_HBIN EQU $2 ; INIT_VSKIP EQU $0 ; INIT_HSKIP EQU $0 ; INIT_GAIN EQU $0 ; 0=LOW 1=HIGH INIT_USEC EQU $C8 ; INIT_OPCH EQU $1 ; 0x1=right 0x2=left 0x3=both 0x4=all INIT_SCLKS EQU $2 ; 1=right amp, 2=left amp INIT_PID EQU $0 ; FLAG $0=OFF $1=ON INIT_LINK EQU $0 ; 0=wire 1=single_fiber INIT_PDIR EQU $2 ; parallel clocking direction ; 0=toward serial register 1=away ;***************************************************************************** ; EXTERNAL PERIPHERAL DEFINITIONS (GUIDER CAMERA) ;***************************************************************************** SEQREG EQU $FFFF80 ; external CCD clock register ADC_A EQU $FFFF81 ; A/D converter #1 ADC_B EQU $FFFF82 ; A/D converter #2 TXREG EQU $FFFF85 ; Transmit Data Register RXREG EQU $FFFF86 ; Receive Data register SIG_AB EQU $FFFF88 ; bias voltages A+B CLK_AB EQU $FFFF90 ; clock voltages A+B TEC_REG EQU $FFFF8A ; TEC register ;***************************************************************************** ; INTERNAL PERIPHERAL DEFINITIONS (DSP563000) ;***************************************************************************** IPRC EQU $FFFFFF ; Interrupt priority register (core) IPRP EQU $FFFFFE ; Interrupt priority register (periph) PCTL EQU $FFFFFD ; PLL control register BCR EQU $FFFFFB ; Bus control register (wait states) AAR0 EQU $FFFFF9 ; Address attribute register 0 AAR1 EQU $FFFFF8 ; Address attribute register 1 AAR2 EQU $FFFFF7 ; Address attribute register 2 AAR3 EQU $FFFFF6 ; Address attribute register 3 IDR EQU $FFFFF5 ; ID Register PDRB EQU $FFFFC9 ; Port B (HOST) GPIO data PRRB EQU $FFFFC8 ; Port B (HOST) GPIO direction PCRB EQU $FFFFC4 ; Port B (HOST) control register PCRC EQU $FFFFBF ; Port C (ESSI_0) control register PRRC EQU $FFFFBE ; Port C (ESSI_0) direction PDRC EQU $FFFFBD ; Port C (ESSI_0) data TXD EQU $FFFFBC ; ESSI0 Transmit Data Register 0 RXD EQU $FFFFB8 ; ESSI0 Receive Data Register SSISR EQU $FFFFB7 ; ESSI0 Status Register CRB EQU $FFFFB6 ; ESSI0 Control Register B CRA EQU $FFFFB5 ; ESSI0 Control Register A PCRD EQU $FFFFAF ; Port D (ESSI_1) control register PRRD EQU $FFFFAE ; Port D (ESSI_1) direction PDRD EQU $FFFFAD ; Port D (ESSI_1) data PCRE EQU $FFFF9F ; Port E (SCI) control register PRRE EQU $FFFF9E ; Port E (SCI) data direction PDRE EQU $FFFF9D ; Port E (SCI) data TCSR0 EQU $FFFF8F ; TIMER0 Control/Status Register TLR0 EQU $FFFF8E ; TIMER0 Load Reg TCPR0 EQU $FFFF8D ; TIMER0 Compare Register TCR0 EQU $FFFF8C ; TIMER0 Count Register TCSR1 EQU $FFFF8B ; TIMER1 Control/Status Register TLR1 EQU $FFFF8A ; TIMER1 Load Reg TCPR1 EQU $FFFF89 ; TIMER1 Compare Register TCR1 EQU $FFFF88 ; TIMER1 Count Register TCSR2 EQU $FFFF87 ; TIMER2 Control/Status Register TLR2 EQU $FFFF86 ; TIMER2 Load Reg TCPR2 EQU $FFFF85 ; TIMER2 Compare Register TCR2 EQU $FFFF84 ; TIMER2 Count Register TPLR EQU $FFFF83 ; TIMER Prescaler Load Register TPCR EQU $FFFF82 ; TIMER Prescalar Count Register DSR0 EQU $FFFFEF ; DMA source address DDR0 EQU $FFFFEE ; DMA dest address DCO0 EQU $FFFFED ; DMA counter DCR0 EQU $FFFFEC ; DMA control register ;***************************************************************************** ; REGISTER DEFINITIONS (GUIDER CAMERA) ;***************************************************************************** CMD EQU $000000 ; command word/flags from host OPFLAGS EQU $000001 ; operational flags NROWS EQU $000002 ; number of rows to read NCOLS EQU $000003 ; number of columns to read NFT EQU $000004 ; number of rows for frame transfer NFLUSH EQU $000005 ; number of columns to flush NCH EQU $000006 ; number of output channels (amps) NPIX EQU $000007 ; (not used) VBIN EQU $000008 ; vertical (parallel) binning HBIN EQU $000009 ; horizontal (serial) binning VSKIP EQU $00000A ; V prescan or offset (rows) HSKIP EQU $00000B ; H prescan or offset (columns) VSUB EQU $00000C ; V subraster size HSUB EQU $00000D ; H subraster size NEXP EQU $00000E ; number of exposures (not used) NSHUFFLE EQU $00000F ; (not used) EXP_TIME EQU $000010 ; CCD integration time(r) TEMP EQU $000011 ; Temperature sensor reading(s) GAIN EQU $000012 ; Sig_proc gain USEC EQU $000013 ; Sig_proc sample time OPCH EQU $000014 ; Output channel HDIR EQU $000015 ; serial clock direction LINK EQU $000016 ; 0=wire 1=single_fiber PDIR EQU $000017 ; parallel direction SCLKS EQU $000030 ; serial clocks SCLKS_FL EQU $000031 ; serial clocks flush INT_X EQU $000032 ; reset and integrate clocks NDMA EQU $000033 ; (not used) PCLKS EQU $000034 ; parallel clocks VBIAS EQU $000018 ; bias voltages VCLK EQU $000020 ; clock voltages TEC EQU $00001A ; TEC current PIX EQU $000300 ; start address for data storage ;***************************************************************************** ; SEQUENCE FRAGMENT STARTING ADDRESSES (& OTHER POINTERS) ;***************************************************************************** MPP EQU $0040 ; MPP/hold state IPCLKS EQU $0042 ; input clamp TCLKS EQU $0044 ; Temperature monitor clocks PCLKS_FTU EQU $0048 ; parallel frame transfer, upper PCLKS_RDU EQU $0050 ; parallel read-out transfer, upper PCLKS_FLU EQU $0058 ; parallel flush transfer, upper PCLKS_FTL EQU $0060 ; parallel frame transfer, lower PCLKS_RDL EQU $0068 ; parallel read-out transfer, lower PCLKS_FLL EQU $0070 ; parallel flush transfer, lower PCLKS_FLB EQU $0078 ; parallel flush transfer, both INT_L EQU $0080 ; reset and first integration INT_H EQU $0088 ; second integration and A/D SCLKS_R EQU $0090 ; serial clocks shift right SCLKS_FLR EQU $0098 ; serial clocks flush right SCLKS_L EQU $00A0 ; serial clocks shift left SCLKS_FLL EQU $00A8 ; serial clocks flush left SCLKS_B EQU $00B0 ; serial clocks both SCLKS_FLB EQU $00B8 ; serial clocks flush both SCLKS_FF EQU $00C0 ; serial clocks fast flush ;******************************************************************************* ; INITIALIZE X MEMORY AND DEFINE PERIPHERALS ;******************************************************************************* ORG X:CMD ; CCD control information DC $0 ; CMD/FLAGS DC $0 ; OPFLAGS DC INIT_NROWS ; NROWS DC INIT_NCOLS ; NCOLS DC INIT_NFT ; NFT DC INIT_NFLUSH ; NFLUSH DC INIT_NCH ; NCH DC $1 ; NPIX (not used) DC INIT_VBIN ; VBIN DC INIT_HBIN ; HBIN DC INIT_VSKIP ; VSKIP ($0) DC INIT_HSKIP ; HSKIP ($0) DC $0 ; VSUB DC $0 ; HSUB DC $1 ; NEXP (not used) DC $0 ; (not used) ORG X:EXP_TIME DC $3E8 ; EXP_TIME DC $0 ; TEMP DC INIT_GAIN ; GAIN DC INIT_USEC ; USEC SAMPLE TIME DC INIT_OPCH ; OUTPUT CHANNEL DC INIT_SCLKS ; HORIZ DIRECTION DC INIT_LINK ; SERIAL LINK DC INIT_PDIR ; VERTICAL DIRECTION ;***************************************************************************** ; CCD57 SET DAC VOLTAGES DEFAULTS: OD=20V RD=8V OG=ABG=-6V ; PCLKS=+3V -9V SCLKS=+2V -8V RG=+3V -9V ; ; CCID37 SET DAC VOLTAGES DEFAULTS: OD=18V RD=10V OG=-2V ; PCLKS=+4V -6V SCLKS=+4V -4V RG=+8V -2V ; ; STA1220A SET DAC VOLTAGES DEFAULTS: OD=24V RD=15V OG=-1V ; PCLKS=+4V -9V SCLKS=+5V -5V RG=+8V 0V SW=+5V -5V TG=+4V -9V ; ; CCID-21 SET DAC VOLTAGES DEFAULTS: OD=18V RD=10V OG=-2V ; PCLKS=+4V -6V SCLKS=+4V -4V SW=+5 -5V RG=+8V -2V B7=-6V B5=+12 to +15V ;***************************************************************************** ORG X:VBIAS DC (DZ-0000) ; OFFSET_R (5mV/DN) (0480) DC (DZ-0000) ; OFFSET_L DC (DZ-1600) ; B7 DC (DZ-0200) ; OG voltage DC (DZ+1300) ; B5 (10 mV/DN) 1200 DC (DZ+1300) ; RD 1000 DC (DZ+1800) ; OD_R 2200 DC (DZ+1800) ; OD_L 2200 ORG X:VCLK DC (DZ-0000) ; IPC- [V0] voltage (5mV/DN) (0v) DC (DZ+1000) ; IPC+ [V1] (+5v) DC (DZ-0400) ; RG- [V2] (-2v) DC (DZ+1600) ; RG+ [V3] (+8v) DC (DZ-1000) ; S- [V4] (-5v) DC (DZ+1000) ; S+ [V5] (+5v) DC (DZ-1000) ; SW- [V6] (-5v) DC (DZ+1000) ; SW+ [V7] (+5v) DC (DZ-0000) ; TG- [V8] (-9v) DC (DZ+0000) ; TG+ [V9] (+4v) DC (DZ-1200) ; P1- [V10] (-6v) DC (DZ+0800) ; P1+ [V11] (+4v) DC (DZ-1200) ; P2- [V12] (-6v) DC (DZ+0800) ; P2+ [V13] (+4v) DC (DZ-1200) ; P3- [V14] (-6v) DC (DZ+0800) ; P3+ [V15] (+4v) ;***************************************************************************** ; INITIALIZE X MEMORY ;***************************************************************************** ; R2L _______________ ________________ R1L ; R3L ______________ || _______________ R3R ; SW _____________ |||| ______________ R2R ; TG ____________ |||||| _____________ R1R ; ST1 ___________ |||||||| ____________ RG ; ST2 __________ |||||||||| ___________ IPC ; ST3 _________ |||||||||||| __________ FINT+ ; IM1 ________ |||||||||||||| _________ FINT- ; IM2 _______ |||||||||||||||| ________ FRST ; IM3 ______ |||||||||||||||||| _______ CONVST ; |||||||||||||||||||| ORG X:MPP ; reset/hold state DC %000001001001011011000011 ORG X:IPCLKS ; input clamp DC %000001001001011011010011 DC %000001001001011011000011 ORG X:TCLKS ; read temp monitor DC %000001001001011011000010 DC %000001001001011011000011 ORG X:PCLKS_FTU ; frame transfer upper P2-P1-P3-P2 DC %000001101101011011000011 ; reverse direction DC %000000100101011011000011 DC %000010110101011011000011 DC %000010010001011011000011 DC %000011011001011011000011 DC %000001001001011011000011 ORG X:PCLKS_RDU ; parallel transfer upper P2-P1-P3-P2 DC %000001001101011011010011 ; reverse direction DC %000001000101011011010011 DC %000001010101011011010011 DC %000001010001011011000011 DC %000001011001011011010011 DC %000001001001011011010011 ORG X:PCLKS_FLU ; parallel flush upper P2-P1-P3-P2 DC %000001101101011011000011 ; reverse direction DC %000000100101011011000011 DC %000010110101011011000011 DC %000010010001011011000011 DC %000011011001011011000011 DC %000001001001011011000011 ORG X:PCLKS_FTL ; frame transfer lower P2-P3-P1-P2 DC %000011011001011011000011 ; normal direction DC %000010010001011011000011 DC %000010110101011011000011 DC %000000100101011011000011 DC %000001101101011011000011 DC %000001001001011011000011 ORG X:PCLKS_RDL ; parallel transfer lower P2-P3-P1-P2 DC %000001011001011011010011 ; normal direction DC %000001010001011011010011 DC %000001010101011011010011 DC %000001000101011011010011 DC %000001001101011011010011 DC %000001001001011011000011 ORG X:PCLKS_FLL ; parallel flush lower P2-P3-P1-P2 DC %000011011001011011000011 ; normal direction DC %000010010001011011000011 DC %000010110101011011000011 DC %000000100101011011000011 DC %000001101101011011000011 DC %000001001001011011000011 ORG X:PCLKS_FLB ; parallel flush both DC %000001111001011011000011 ; place-holder DC %000000110001011011000011 DC %000010110101011011000011 DC %000010000101011011000011 DC %000011001101011011000011 DC %000001001001011011000011 ORG X:INT_L ; reset and first integration DC %000001001001011011100011 ; RG ON FRST ON DC %000001001001011011000011 ; RG OFF DC %000001001001011011000001 ; FRST OFF DC %000001001001011011001001 ; FINT+ ON DC %000001001001011011000001 ; FINT+ OFF ORG X:INT_H ; second integration and A to D DC %000001001000011011000101 ; FINT- ON DC %000001001000011011000001 ; FINT- OFF DC %000001001000011011000000 ; /CONVST ON DC %000001001000011011000001 ; /CONVST OFF DC %000001001001011011100011 ; FRST ON RG ON ORG X:SCLKS_R ; serial shift (right) S2-S1-S3-S2 DC %000001001001001001000001 DC %000001001001101101000001 DC %000001001001100100000001 DC %000001001001110110000001 DC %000001001001010010000001 DC %000001001001011011000001 ORG X:SCLKS_FLR ; serial flush (right) S2-S1-S3-S2 DC %000001001001001001100011 DC %000001001001101101100011 DC %000001001001100100100011 DC %000001001001110110100011 DC %000001001001010010100011 DC %000001001001011011100011 ORG X:SCLKS_L ; serial shift (left) S2-S3-S1-S2 DC %000001001001010010000001 DC %000001001001110110000001 DC %000001001001100100000001 DC %000001001001101101000001 DC %000001001001001001000001 DC %000001001001011011000001 ORG X:SCLKS_FLL ; serial flush (left) S2-S3-S1-S2 DC %000001001001010010100011 DC %000001001001110110100011 DC %000001001001100100100011 DC %000001001001101101100011 DC %000001001001001001100011 DC %000001001001011011100011 ORG X:SCLKS_B ; serial shift (both) not used, not changed DC %000001001001010001000001 DC %000001001001110101000001 DC %000001001001100100000001 DC %000001001001101110000001 DC %000001001001001010000001 DC %000001001001011011000001 ORG X:SCLKS_FLB ; serial flush (both) not used, not changed DC %000001001001010001100011 DC %000001001001110101100011 DC %000001001001100100100011 DC %000001001001101110100011 DC %000001001001001010100011 DC %000001001001011011100011 ORG X:SCLKS_FF ; serial flush (fast) DC %000001001001111111100011 DC %000001001001111111100011 DC %000001001001111111100011 DC %000001001001011011000011 DC %000001001001011011000011 ; dummy code DC %000001001001011011000011 ; dummy code ;******************************************************************************* ; GENERAL COMMENTS ;******************************************************************************* ; Hardware RESET causes download from serial port (code in EPROM) ; R0 is a pointer to sequence fragments ; R1 is a pointer used by send/receive routines ; R2 is a pointer to the current data location ; See dspdvr.h for command and opflag definitions ;******************************************************************************* ; INITIALIZE INTERRUPT VECTORS ;******************************************************************************* ORG P:$0000 JMP START ;******************************************************************************* ; MAIN PROGRAM ;******************************************************************************* ORG P:START SET_MODE ORI #$3,MR ; mask all interrupts MOVEP #$FFFC21,X:AAR3 ; PERIPH $FFF000--$FFFFFF MOVEP #$D00909,X:AAR1 ; EEPROM $D00000--$D07FFF 32K MOVEP #$000811,X:AAR0 ; SRAM X $000000--$00FFFF 64K MOVEP #WS,X:BCR ; Set periph wait states MOVE #SEQ-1,M0 ; Set sequencer address modulus PORTB_SETUP MOVEP #>$1,X:PCRB ; set PB[15..0] GPIO PORTD_SETUP MOVEP #>$0,X:PCRD ; GPIO PD0=TM PD1=GAIN MOVEP #>$3,X:PRRD ; PD2=/ENRX PD3=/ENTX MOVEP #>$0,X:PDRD ; PD4=RXRDY SSI_SETUP MOVEP #>$032070,X:CRB ; async, LSB, enable TE RE MOVEP #>$140803,X:CRA ; 10 Mbps, 16 bit word MOVEP #>$3F,X:PCRC ; enable ESSI PORTE_SETUP MOVEP #$0,X:PCRE ; enable GPIO, disable SCI MOVEP #>$1,X:PRRE ; PE0=SHUTTER MOVEP #>$0,X:PDRE ; SET_TIMER MOVEP #$300A10,X:TCSR0 ; Pulse mode, no prescale MOVEP #$0,X:TLR0 ; timer reload value MOVEP X:USEC,X:TCPR0 ; timer compare value MOVEP #$308A10,X:TCSR1 ; Pulse mode, prescaled MOVEP #$0,X:TLR1 ; timer reload value MOVEP X:EXP_TIME,X:TCPR1 ; timer compare value MOVEP #>$9C3F,X:TPLR ; timer prescale ($9C3F=1ms 80MHz) DMA_SETUP MOVEP #PIX,X:DSR0 ; set DMA source MOVEP #$0,X:DCO0 ; set DMA counter FIBER JCLR #$0,X:LINK,RS485 ; set up optical MOVEP #>TXREG,X:DDR0 ; set DMA destination MOVEP #>$080255,X:DCR0 ; DMA word xfer, /IRQA, src+1 RS485 JSET #$0,X:LINK,ENDDP ; set up RS485 MOVEP #>TXD,X:DDR0 ; DMA destination MOVEP #>$085A51,X:DCR0 ; DMA word xfer, TDE0, src+1 ENDDP NOP ; INIT_SETUP JSR MPPHOLD ; JSR SET_GAIN ; JSR SET_DACS ; JSR SET_SCLKS ; WAIT_CMD JSR FLUSHROWS ; added 30 Mar 07 - RAT JCLR #$0,X:LINK,WAITB ; check for cmd ready JCLR #$4,X:PDRD,ECHO ; fiber link (single-fiber) WAITB JSET #$0,X:LINK,ENDW ; JCLR #7,X:SSISR,ECHO ; wire link ENDW NOP ; JSR READ16 ; wait for command word MOVE A1,X:CMD ; cmd in X:CMD JSR CMD_FIX ; interpret command word ECHO JCLR #$1,X:CMD,GET ; test for DSP_ECHO command JSR READ16 ; JSR WRITE16 ; BCLR #$1,X:CMD ; GET JCLR #$2,X:CMD,PUT ; test for DSP_GET command JSR MEM_SEND ; BCLR #$2,X:CMD ; PUT JCLR #$3,X:CMD,EXP_START ; test for DSP_PUT command JSR MEM_LOAD ; BCLR #$3,X:CMD ; EXP_START JCLR #$6,X:CMD,FASTFLUSH ; test for EXPOSE command JSR MPPHOLD ; MOVE #PIX,R2 ; set data pointer MOVEP X:EXP_TIME,X:TCPR1 ; timer compare value BSET #$F,X:OPFLAGS ; set exp_in_progress flag BCLR #$6,X:CMD ; JCLR #$1,X:OPFLAGS,FASTFLUSH ; check for AUTO_FLUSH BSET #$4,X:CMD ; FASTFLUSH JCLR #$4,X:CMD,BEAM_ON ; test for FLUSH command JSR FLUSHFRAME ; fast FLUSH JSR FLUSHFRAME ; fast FLUSH JSR FLUSHFRAME ; fast FLUSH JSR FLUSHLINE ; clear serial register BCLR #$4,X:CMD ; BEAM_ON JCLR #$5,X:CMD,EXPOSE ; test for open shutter BSET #$0,X:PDRE ; set SHUTTER BCLR #$5,X:CMD ; EXPOSE JCLR #$F,X:OPFLAGS,BEAM_OFF ; check exp_in_progress flag JSR MPPHOLD ; JSR M_TIMER ; BCLR #$F,X:OPFLAGS ; clear exp_in_progress flag OPT_A JCLR #$2,X:OPFLAGS,OPT_B ; check for AUTO_SHUTTER BSET #$7,X:CMD ; prep to close shutter OPT_B JCLR #$4,X:OPFLAGS,BEAM_OFF ; check for AUTO_READ BSET #$8,X:CMD ; prep for full readout BEAM_OFF JCLR #$7,X:CMD,READ_CCD ; test for shutter close BCLR #$0,X:PDRE ; clear SHUTTER BCLR #$7,X:CMD ; READ_CCD JCLR #$8,X:CMD,AUTO_WIPE ; test for READCCD command JSR FRAME ; frame transfer ; JSR IPC_CLAMP ; discharge ac coupling cap JSR FLUSHROWS ; vskip DO X:NROWS,END_READ ; read the array JSR FLUSHLINE ; JSR PARALLEL ; JSR FLUSHPIX ; hskip BSET #$0,X:OPFLAGS ; set first pixel flag JSR READPIX ; BCLR #$0,X:OPFLAGS ; clear first pixel flag JSR READLINE ; END_READ NOP ; BCLR #$8,X:CMD ; AUTO_WIPE JCLR #$9,X:CMD,HH_DACS ; test for AUTOWIPE command ; BSET #$E,X:OPFLAGS ; ; BSET #$5,X:OPFLAGS ; ; JSR FL_CLOCKS ; flush one parallel row ; JSR READLINE ; ; BCLR #$9,X:CMD ; HH_DACS JCLR #$A,X:CMD,HH_TEMP ; test for HH_SYNC command JSR SET_DACS ; BCLR #$A,X:CMD ; HH_TEMP JCLR #$B,X:CMD,HH_TEC ; test for HH_TEMP command JSR TEMP_READ ; perform housekeeping chores BCLR #$B,X:CMD ; HH_TEC JCLR #$C,X:CMD,HH_OTHER ; test for HH_TEC command JSR TEMP_SET ; set the TEC value BCLR #$C,X:CMD ; HH_OTHER JCLR #$D,X:CMD,END_CODE ; test for HH_OTHER command JSR SET_GAIN ; JSR SET_SCLKS ; JSR SET_USEC ; BCLR #$D,X:CMD ; END_CODE JCLR #$5,X:OPFLAGS,WAIT_CMD ; check for AUTO_WIPE BSET #$9,X:CMD ; JMP WAIT_CMD ; Get next command ;***************************************************************************** ; HOLD (MPP MODE) ;***************************************************************************** MPPHOLD MOVEP X:MPP,Y:<<SEQREG ; RTS ; ;***************************************************************************** ; INPUT CLAMP ;***************************************************************************** IPC_CLAMP MOVEP X:IPCLKS,Y:<<SEQREG ; MOVE #>HOLD_IPC,X0 ; REP X0 ; $1F4O=100 us NOP ; MOVEP X:(IPCLKS+1),Y:<<SEQREG ; NOP ; RTS ; ;***************************************************************************** ; FLUSHLINE (FAST FLUSH) ;***************************************************************************** FLUSHLINE MOVE #SCLKS_FF,R0 ; initialize pointer DO #SEQ,ENDFF ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_FF ; NOP ; ENDFF RTS ; ;***************************************************************************** ; FLUSHPIX (HSKIP) ;***************************************************************************** FLUSHPIX DO X:HSKIP,ENDFP ; MOVE X:SCLKS_FLR,R0 ; initialize pointer (modified -RAT) DO #SEQ,ENDHCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_S ; NOP ; ENDHCLK NOP ; ENDFP RTS ; ;***************************************************************************** ; FLUSHROWS (VSKIP) ;***************************************************************************** FLUSHROWS DO X:VSKIP,ENDVSKIP ; JCLR #$2,X:PDIR,FLUSHRU ; check for parallel direction MOVE #PCLKS_RDL,R0 ; initialize pointer (modified -RAT) JMP FLUSHRL ; lower direction FLUSHRU MOVE #PCLKS_RDU,R0 ; upper direction FLUSHRL DO #SEQ,ENDVCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_FL ; NOP ; ENDVCLK NOP ; ENDVSKIP RTS ; ;***************************************************************************** ; FLUSHFRAME ;***************************************************************************** FLUSHFRAME DO X:NFLUSH,ENDFLFR ; JCLR #$2,X:PDIR,FLUSHFU ; check for parallel direction FL_CLOCKS MOVE #PCLKS_FLL,R0 ; initialize pointer (modified -RAT) JMP FLUSHFL ; lower direction FLUSHFU MOVE #PCLKS_FLU,R0 ; upper direction FLUSHFL DO #SEQ,ENDFLCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_FL ; NOP ; ENDFLCLK NOP ; ENDFLFR RTS ; ;***************************************************************************** ; PARALLEL TRANSFER (READOUT) ;***************************************************************************** PARALLEL DO X:VBIN,ENDPT ; JCLR #$2,X:PDIR,PARROU ; check for parallel direction MOVE #PCLKS_RDL,R0 ; initialize pointer (modified -RAT) JMP P_CLOCKS ; lower direction PARROU MOVE #PCLKS_RDL,R0 ; upper direction (test - 28jun07 RAT) P_CLOCKS DO #SEQ,ENDPCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; MOVE #>HOLD_P,X0 ; REP X0 ; $317=10us per phase NOP ; ENDPCLK NOP ; ENDPT RTS ; ;***************************************************************************** ; PARALLEL TRANSFER (FRAME TRANSFER) ;***************************************************************************** FRAME JCLR #$2,X:PDIR,FLUSHFTU ; check for parallel direction (modified -RAT) MOVEP X:(PCLKS_FTL),Y:<<SEQREG ; 100 us CCD47 pause JMP FLUSHFTL ; lower direction FLUSHFTU MOVEP X:(PCLKS_FTL),Y:<<SEQREG ; upper direction (test - 28jun07 RAT) FLUSHFTL MOVE #>$1F40,X0 ; REP X0 ; $1F40=100 usec NOP ; JCLR #$2,X:PDIR,FTU_CLOCKS ; check for parallel direction (modified -RAT) DO X:NFT,ENDFTL ; MOVE #PCLKS_FTL,R0 ; initialize seq pointer DO #SEQ,ENDFTLCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_FT ; NOP ; ENDFTLCLK NOP ; ENDFTL RTS ; FTU_CLOCKS DO X:NFT,ENDFTU ; MOVE #PCLKS_FTL,R0 ; initialize seq pointer (test - 28jun07 RAT) DO #SEQ,ENDFTUCLK ; MOVEP X:(R0)+,Y:<<SEQREG ; REP #HOLD_FT ; NOP ; ENDFTUCLK NOP ; ENDFTU RTS ; ;***************************************************************************** ; READLINE SUBROUTINE ;***************************************************************************** READLINE DO X:NCOLS,ENDRL ; READPIX MOVEP X:(INT_L),Y:<<SEQREG ; FRST=ON RG=ON DUP HOLD_RG ; macro NOP ; ENDM ; end macro MOVEP X:(INT_L+1),Y:<<SEQREG ; RG=OFF MOVEP X:(INT_L+2),Y:<<SEQREG ; FRST=OFF REP #HOLD_SIG ; preamp settling time ; REP #$F ; preamp settling NOP ; INT1 MOVEP X:(INT_L+3),Y:<<SEQREG ; FINT+=ON SLEEP1 MOVE X:USEC,X0 ; sleep USEC * 12.5ns REP X0 ; NOP ; MOVEP X:(INT_L+4),Y:<<SEQREG ; FINT+=OFF SERIAL MOVE X:SCLKS,R0 ; serial transfer DO X:HBIN,ENDSCLK ; S_CLOCKS DUP SEQ ; macro MOVEP X:(R0)+,Y:<<SEQREG ; DUP HOLD_S ; macro NOP ; ENDM ; ENDM ; ENDSCLK REP #HOLD_SIG ; preamp settling time NOP ; (adjust with o'scope) GET_DATA MOVEP #WS5,X:BCR ; NOP ; NOP ; MOVEP Y:<<ADC_A,A ; read ADC MOVEP Y:<<ADC_B,B ; read ADC MOVEP #WS,X:BCR ; NOP ; INT2 MOVEP X:(INT_H),Y:<<SEQREG ; FINT-=ON SLEEP2 MOVE X:USEC,X0 ; sleep USEC * 20ns REP X0 ; NOP ; MOVEP X:(INT_H+1),Y:<<SEQREG ; FINT-=OFF MOVE A1,Y:(PIX) ; MOVE B1,Y:(PIX+1) ; REP #HOLD_ADC ; settling time NOP ; (adjust for best noise) CONVST MOVEP X:(INT_H+2),Y:<<SEQREG ; /CONVST=ON MOVEP N5,X:DSR0 ; set DMA source NOP ; NOP ; MOVEP X:(INT_H+3),Y:<<SEQREG ; /CONVST=OFF MIN 40 NS MOVEP X:(INT_H+4),Y:<<SEQREG ; FRST=ON JSET #$0,X:OPFLAGS,ENDCHK ; check for first pixel BSET #$17,X:DCR0 ; enable DMA ENDCHK NOP ; ENDRL RTS ; ;******************************************************************************* ; READ AND WRITE 16-BIT AND 24-BIT DATA ;******************************************************************************* READ16 JCLR #$0,X:LINK,RD16B ; check RS485 or fiber JCLR #$4,X:PDRD,* ; wait for data in RXREG MOVE Y:RXREG,A ; bits 15..0 AND #>$FFFF,A ; RD16B JSET #$0,X:LINK,ENDRD16 ; check RS485 or fiber JCLR #7,X:SSISR,* ; wait for RDRF to go high MOVE X:RXD,A1 ; read from ESSI NOP ; ENDRD16 RTS ; 16-bit word in A1 WRITE16 JCLR #$0,X:LINK,WR16B ; check RS485 or fiber MOVE A1,Y:TXREG ; write bits 15..0 WR16B JSET #$0,X:LINK,ENDWR16 ; JCLR #6,X:SSISR,* ; wait for TDE MOVE A1,X:TXD ; ENDWR16 RTS ; READ24 JCLR #$0,X:LINK,RD24B ; check RS485 or fiber JCLR #$4,X:PDRD,* ; wait for data in RXREG MOVE Y:RXREG,A ; bits 15..0 AND #>$FFFF,A ; ASR #$10,A,A ; shift right 16 bits JCLR #$4,X:PDRD,* ; wait for data in RXREG MOVE Y:RXREG,A1 ; bits 15..0 ASL #$10,A,A ; shift left 16 bits RD24B JSET #$0,X:LINK,ENDRD24 ; JCLR #7,X:SSISR,* ; wait for RDRF to go high MOVE X:RXD,A ; read from ESSI ASR #$10,A,A ; shift right 16 bits JCLR #7,X:SSISR,* ; wait for RDRF to go high MOVE X:RXD,A1 ; ASL #$10,A,A ; shift left 16 bits ENDRD24 RTS ; 24-bit word in A1 WRITE24 JCLR #$0,X:LINK,WR24B ; check RS485 or fiber MOVE A1,Y:TXREG ; send bits 15..0 ASR #$10,A,A ; right shift 16 bits REP #$10 ; wait for data sent NOP ; MOVE A1,Y:TXREG ; send bits 23..16 WR24B JSET #$0,X:LINK,ENDWR24 ; JCLR #6,X:SSISR,* ; wait for TDE MOVE A1,X:TXD ; send bits 15..0 ASR #$10,A,A ; right shift 16 bits NOP ; wait for flag update JCLR #6,X:SSISR,* ; wait for TDE MOVE A1,X:TXD ; send bits 23..16 ENDWR24 RTS ; ;***************************************************************************** ; LOAD NEW DATA VIA SSI PORT ;***************************************************************************** MEM_LOAD JSR READ24 ; get memspace/address MOVE A1,R1 ; load address into R1 MOVE A1,X0 ; store memspace code JSR READ24 ; get data BCLR #$17,R1 ; clear memspace bit X_LOAD JSET #$17,X0,Y_LOAD ; MOVE A1,X:(R1) ; load x memory Y_LOAD JCLR #$17,X0,END_LOAD ; MOVE A1,Y:(R1) ; load y memory END_LOAD RTS ; ;***************************************************************************** ; SEND MEMORY CONTENTS VIA SSI PORT ;***************************************************************************** MEM_SEND JSR READ24 ; get memspace/address MOVE A1,R1 ; load address into R1 MOVE A1,X0 ; save memspace code BCLR #$17,R1 ; clear memspace bit X_SEND JSET #$17,X0,Y_SEND ; MOVE X:(R1),A1 ; send x memory Y_SEND JCLR #$17,X0,WRITE24 ; MOVE Y:(R1),A1 ; send y memory SEND24 JSR WRITE24 ; NOP ; RTS ; ;***************************************************************************** ; CCID-21 SET DAC VOLTAGES DEFAULTS: OD=18V RD=10V OG=-2V ; PCLKS=+4V -6V SCLKS=+4V -4V SW=+5 -5V RG=+8V -2V B7=-6V B5=+12 to +15V ;***************************************************************************** SET_DACS JSR SET_VBIAS ; JSR SET_VCLKS ; RTS ; SET_VBIAS MOVEP #WS5,X:BCR ; add wait states MOVE #VBIAS,R3 ; bias voltages MOVE #SIG_AB,R4 ; bias DAC registers DO #$8,ENDSETB ; set bias voltages MOVE X:(R3)+,X0 ; MOVE X0,Y:(R4)+ ; ENDSETB MOVEP #WS,X:BCR ; RTS ; SET_VCLKS MOVEP #WS5,X:BCR ; add wait states MOVE #VCLK,R3 ; clock voltages MOVE #CLK_AB,R4 ; clock DAC registers DO #$10,ENDSETV ; set clock voltages MOVE X:(R3)+,X0 ; MOVE X0,Y:(R4)+ ; ENDSETV MOVEP #WS,X:BCR ; re-set wait states RTS ;***************************************************************************** ; TEMP MONITOR ADC START AND CONVERT ;***************************************************************************** TEMP_READ BSET #$0,X:PDRD ; turn on temp sensor MOVEP #$20,X:TCPR1 ; set timer compare value JSR M_TIMER ; wait for output to settle MOVEP #WS3,X:BCR ; set wait states for ADC MOVEP X:TCLKS,Y:<<SEQREG ; assert /CONVST REP #$4 ; NOP ; MOVEP X:(TCLKS+1),Y:<<SEQREG ; deassert /CONVST and wait REP #$50 ; NOP ; MOVEP Y:<<ADC_B,A1 ; read ADC2 MOVE #>$3FFF,X1 ; prepare 14-bit mask AND X1,A1 ; get 14 LSBs BCLR #$0,X:PDRD ; turn off temp sensor BCHG #$D,A1 ; 2complement to binary MOVEP #WS,X:BCR ; re-set wait states MOVE A1,X:TEMP ; RTS ; TEMP_SET MOVEP #WS5,X:BCR ; add wait states NOP ; MOVEP X:TEC,Y:<<TEC_REG ; set TEC DAC MOVEP #WS,X:BCR ; re-set wait states RTS ;***************************************************************************** ; MILLISECOND AND MICROSECOND TIMER MODULE ;***************************************************************************** U_TIMER BSET #$0,X:TCSR0 ; start timer BTST #$0,X:TCSR0 ; delay for flag update JCLR #$15,X:TCSR0,* ; wait for TCF flag BCLR #$0,X:TCSR0 ; stop timer, clear flag RTS ; flags update during RTS M_TIMER BSET #$0,X:TCSR1 ; start timer BTST #$0,X:TCSR0 ; delay for flag update JCLR #$15,X:TCSR1,* ; wait for TCF flag BCLR #$0,X:TCSR1 ; stop timer, clear flag RTS ; flags update during RTS ;***************************************************************************** ; SIGNAL-PROCESSING GAIN MODULE ;***************************************************************************** SET_GAIN JSET #$0,X:GAIN,HI_GAIN ; BCLR #$1,X:PDRD ; set gain=0 HI_GAIN JCLR #$0,X:GAIN,END_GAIN ; BSET #$1,X:PDRD ; set gain=1 END_GAIN RTS ; ;***************************************************************************** ; SIGNAL-PROCESSING DUAL-SLOPE TIME MODULE ;***************************************************************************** SET_USEC MOVEP X:USEC,X:TCPR0 ; timer compare value END_USEC RTS ; ;***************************************************************************** ; SELECT SERIAL CLOCK SEQUENCE (IE OUTPUT AMPLIFIER) ;***************************************************************************** SET_SCLKS MOVE X:OPCH,A ; 0x1=right 0x2=left RIGHT_AMP MOVE #>$1,X0 ; 0x3=both 0x4=all CMP X0,A ; JNE LEFT_AMP ; MOVE #>SCLKS_R,Y0 ; serial clock sequences MOVE #>SCLKS_FLR,Y1 ; serial flush sequences MOVE #PIX+1,N5 ; pointer to start of data MOVEP #>$0,X:DCO0 ; DMA counter LEFT_AMP MOVE #>$2,X0 ; CMP X0,A ; JNE BOTH_AMP ; MOVE #>SCLKS_L,Y0 ; MOVE #>SCLKS_FLL,Y1 ; MOVE #PIX,N5 ; MOVEP #>$0,X:DCO0 ; BOTH_AMP MOVE #>$3,X0 ; CMP X0,A ; JNE END_AMP ; MOVE #>SCLKS_B,Y0 ; MOVE #>SCLKS_FLB,Y1 ; MOVE #PIX,N5 ; MOVEP #>$1,X:DCO0 ; END_AMP MOVE Y0,X:SCLKS ; MOVE Y1,X:SCLKS_FL ; RTS ; ;***************************************************************************** ; CMD.ASM -- ROUTINE TO INTERPRET AN 8-BIT COMMAND + COMPLEMENT ;***************************************************************************** ; Each command word is sent as two bytes -- the LSB has the command ; and the MSB has the complement. CMD_FIX MOVE X:CMD,A ; extract cmd[7..0] AND #>$FF,A ; and put in X1 MOVE A1,X1 ; MOVE X:CMD,A ; extract cmd[15..8] LSR #$8,A ; complement NOT A #>$1,B ; and put in A1 AND #>$FF,A ; ASL X1,B,B ; CMP X1,A ; compare X1 and A1 JEQ CMD_OK ; CMD_NG CLR B ; cmd word no good NOP ; CMD_OK MOVE B1,X:CMD ; cmd word OK NOP ; END_CMD RTS ; END
51.143892
91
0.391195
74775d2e55443bd8d76ce7be07a922d20b559072
766
asm
Assembly
programs/oeis/181/A181301.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/181/A181301.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/181/A181301.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A181301: Number of 2-compositions of n having no column with equal entries. A 2-composition of n is a nonnegative matrix with two rows, such that each column has at least one nonzero entry and whose entries sum up to n. ; 1,2,6,20,64,206,662,2128,6840,21986,70670,227156,730152,2346942,7543822,24248256,77941648,250529378,805281526,2588432308,8320049072,26743297998,85961510758,276307781200,888141556360,2854770939522 mov $5,$0 mov $7,2 lpb $7 clr $0,5 mov $0,$5 sub $7,1 add $0,$7 sub $0,1 lpb $0 sub $1,1 cal $1,33505 ; Expansion of 1/(1 - 3*x - x^2 + x^3). add $2,$1 mov $1,$0 sub $0,1 lpe mov $1,$2 mul $1,2 add $1,1 mov $8,$7 lpb $8 mov $6,$1 sub $8,1 lpe lpe lpb $5 mov $5,0 sub $6,$1 lpe mov $1,$6
23.212121
221
0.652742
f94178656818b1845c55f51eff60f575bde9f7bf
5,466
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1162.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1162.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1162.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_WT_ht+0xef85, %r12 nop sub $41383, %r11 movb $0x61, (%r12) nop nop nop nop nop dec %r10 lea addresses_A_ht+0x1af4d, %rsi lea addresses_A_ht+0x69e9, %rdi clflush (%rdi) nop nop xor %r15, %r15 mov $74, %rcx rep movsq nop nop nop cmp %r15, %r15 lea addresses_WC_ht+0x15ab8, %rdi nop nop nop add $20557, %rcx and $0xffffffffffffffc0, %rdi movntdqa (%rdi), %xmm3 vpextrq $1, %xmm3, %rsi nop add %rdi, %rdi lea addresses_WT_ht+0x8145, %r15 nop nop nop nop nop and $45309, %r10 movb $0x61, (%r15) nop and %r14, %r14 lea addresses_WT_ht+0xec45, %rsi lea addresses_A_ht+0xf185, %rdi clflush (%rdi) xor $24762, %r10 mov $30, %rcx rep movsb nop xor %r12, %r12 lea addresses_D_ht+0x1b405, %r11 nop nop nop nop add $27249, %r12 vmovups (%r11), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r15 xor $51215, %rdi pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r15 push %rdi // Faulty Load lea addresses_A+0xa85, %r15 nop nop nop nop sub $19983, %r11 mov (%r15), %r10 lea oracles, %r14 and $0xff, %r10 shlq $12, %r10 mov (%r14,%r10,1), %r10 pop %rdi pop %r15 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
43.380952
2,999
0.659715
91b33cfd2bbf5f38d753f6b483d1bcb57b76b6b1
372
asm
Assembly
programs/oeis/336/A336705.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/336/A336705.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/336/A336705.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A336705: Coordination sequence for the half-Manhattan lattice. ; 1,3,7,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228 mul $0,2 trn $0,1 mul $0,2 mov $2,$0 mov $3,1 lpb $2 add $0,$3 mod $2,7 lpe add $0,$3 mov $1,$0
24.8
205
0.674731
1f5473195d367d33a7e9f591b021903ae8d187e1
4,924
asm
Assembly
libsrc/_DEVELOPMENT/stdlib/z80/__strtoull__.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdlib/z80/__strtoull__.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdlib/z80/__strtoull__.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
SECTION code_clib SECTION code_stdlib PUBLIC __strtoull__ EXTERN l_valid_base, l_eat_ws, l_eat_sign, l_neg_64_dehldehl EXTERN l_eat_base_prefix, l_char2num, error_llznc, l_mulu_72_64x8 EXTERN l_add_64_dehldehl_a, l_eat_digits, error_llzc __strtoull__: ; strtoll, strtoull helper ; ; enter : bc = base ; de = char **endp ; hl = char * ; ; exit : carry reset indicates no error ; ; a = 0 (number not negated) or 1 (number negated) ; dehl'dehl = result ; bc = char * (& next unconsumed char in string) ; ; carry set indicates error, A holds error code ; ; a = 0/-1 for invalid string, -2 for invalid base ; dehl'dehl = 0 ; bc = original char * ; ; a = 3 indicates negate on unsigned overflow ; bc = char * (& next unconsumed char following number) ; ; a = 2 indicates unsigned overflow ; bc = char * (& next unconsumed char following number) ; ; a = 1 indicates negative underflow ; bc = char * (& next unconsumed char following number) ; ; uses : af, bc, de, hl, af', bc', de', hl', ixl ld a,d or e jr z, no_endp ; have char **endp push de ; save char **endp call no_endp ; strtoul() done, now must write endp ; bc = char * (first uninterpretted char) ; dehl'dehl = result ; a = error code (if carry set) ; carry set = overflow or error ; stack = char **endp ex (sp),hl ld (hl),c inc hl ld (hl),b pop hl ret no_endp: call l_valid_base ld ixl,a ; ixl = base ld c,l ld b,h ; bc = original char * jr z, valid_base ; accept base == 0 jr nc, invalid_base valid_base: ; bc = original char * ; hl = char * ; ixl = base call l_eat_ws ; skip whitespace call l_eat_sign ; carry set if negative jr nc, positive ; negative sign found call positive ; return here to negate result ; bc = char * (first uninterpretted char) ; dehl'dehl = result ; a = error code (if carry set) ; carry set = overflow or error inc a ; indicate negate applied ret c ; return if error ; successful conversion, check for signed overflow exx ld a,d exx add a,a ; carry set if signed overflow call l_neg_64_dehldehl ; negate, carry flag unaffected ld a,1 ret positive: ; bc = original char * ; hl = char * ; ixl = base ld a,ixl ; a = base call l_eat_base_prefix ld ixl,a ; ixl = base, possibly modified ; there must be at least one valid digit ld a,(hl) call l_char2num jr c, invalid_input cp ixl jr nc, invalid_input ; use generic algorithm ; a = first numerical digit ; hl = char * ld c,l ld b,h inc bc ; bc = & next char to consume call error_llznc ld l,a ; dehl'dehl = initial digit loop: ; bc = char * ; dehl'dehl = result ; ixl = base ; get next digit ld a,(bc) call l_char2num ; a = digit jr c, number_complete cp ixl ; digit in [0,base-1] ? jr nc, number_complete inc bc ; consume the char ; multiply pending result by base push af ; save new digit push bc ; save char * ld a,ixl ; a = base call l_mulu_72_64x8 ; a dehl'dehl = dehl'dehl * a pop bc ; bc = char * or a ; result > 64 bits ? jr nz, unsigned_overflow pop af ; a = new digit ; add digit to result call l_add_64_dehldehl_a ; dehl'dehl += a jr nz, loop ; if no overflow push af unsigned_overflow: ; bc = char * (next unconsumed char) ; ixl = base ; stack = junk pop af u_oflow: ; consume the entire number before reporting error ld l,c ld h,b ; hl = char * ld c,ixl ; c = base call l_eat_digits ld c,l ld b,h ld a,2 scf ; bc = char * (next unconsumed char) ; a = 2 (error overflow) ; carry set for error ret invalid_base: call invalid_input ld a,-2 ret invalid_input: ; bc = original char* xor a ; bc = original char * ; dehl'dehl = 0 ; a = 0 (error invalid input string) ; carry set for error jp error_llzc number_complete: xor a ; carry reset and a=0 ret
20.776371
70
0.512794
0b56a59bb36027f6abcd6cf11eb21dfb26bb646e
521
asm
Assembly
oeis/197/A197691.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/197/A197691.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/197/A197691.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A197691: Decimal expansion of Pi/(4 + 4*Pi). ; Submitted by Jamie Morken(l1) ; 1,8,9,6,3,6,7,4,8,2,4,8,6,9,4,0,3,6,3,3,6,1,0,7,6,7,2,2,6,1,2,2,3,2,1,6,0,3,4,6,0,6,5,9,1,4,1,0,1,3,2,7,4,9,1,6,7,2,4,7,0,5,3,4,4,5,6,3,7,0,3,4,2,7,5,2,3,9,3,4,4,0,8,0,1,5,8,2,9,3,5,0,3,8,3,8,9,4,3 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $1,$0 div $2,$0 sub $3,1 lpe mul $1,2 add $2,$1 mul $2,4 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
17.965517
199
0.523992
10a2577ce4a124769ad9e38df70ede622087250c
8,861
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_21829_282.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_21829_282.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_21829_282.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1be2c, %rsi lea addresses_D_ht+0xf7e0, %rdi clflush (%rdi) cmp $5404, %rdx mov $78, %rcx rep movsw cmp $58574, %r11 lea addresses_A_ht+0x72bc, %r14 add %rsi, %rsi movb (%r14), %cl nop nop nop and %rdx, %rdx lea addresses_A_ht+0x1c82c, %rdi nop add $16151, %rbx movb (%rdi), %r11b nop nop nop cmp $22322, %rcx lea addresses_WC_ht+0x12dcc, %rcx nop nop nop nop nop inc %rsi mov (%rcx), %r14w nop nop nop nop inc %rdi lea addresses_A_ht+0x1ab2c, %rsi lea addresses_WT_ht+0xdb2c, %rdi nop nop nop inc %r14 mov $94, %rcx rep movsb nop nop nop dec %rdi lea addresses_WT_ht+0x1716e, %rdx nop nop nop add $46677, %r14 mov $0x6162636465666768, %r11 movq %r11, %xmm6 vmovups %ymm6, (%rdx) nop nop nop nop nop and %rcx, %rcx lea addresses_D_ht+0x1dac, %rsi lea addresses_normal_ht+0x1aaec, %rdi nop cmp $23140, %r8 mov $124, %rcx rep movsq add $25685, %r8 lea addresses_WC_ht+0xf240, %r14 nop inc %rdx movw $0x6162, (%r14) nop nop xor $10255, %r8 lea addresses_UC_ht+0x18a2c, %rsi lea addresses_A_ht+0x13bac, %rdi clflush (%rsi) nop nop nop nop nop inc %r8 mov $63, %rcx rep movsb nop nop nop add $38895, %rcx lea addresses_A_ht+0x133b2, %rsi nop nop nop nop nop and $53915, %rdx mov $0x6162636465666768, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%rsi) nop nop nop nop sub %rbx, %rbx lea addresses_WC_ht+0x32c, %r11 nop nop nop nop nop cmp %r14, %r14 mov $0x6162636465666768, %rsi movq %rsi, (%r11) nop nop nop nop nop add $35487, %rcx lea addresses_D_ht+0x19fcc, %rcx nop xor %rdi, %rdi movb (%rcx), %r8b nop nop nop nop nop xor $21400, %rdi lea addresses_A_ht+0x1eb2c, %rsi lea addresses_normal_ht+0x1a52c, %rdi nop nop nop dec %r14 mov $4, %rcx rep movsb nop nop nop nop nop and $34813, %rdx lea addresses_WC_ht+0x1efb0, %rbx nop nop nop nop cmp %r8, %r8 movups (%rbx), %xmm7 vpextrq $0, %xmm7, %rcx nop nop nop nop nop cmp $36465, %rdx lea addresses_UC_ht+0x14b2c, %rdi nop nop nop nop add $21375, %rbx movb (%rdi), %dl nop nop nop nop nop add %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %rbp push %rbx push %rcx push %rdx push %rsi // Store mov $0x7c8, %r14 nop nop nop nop cmp $7109, %r8 movb $0x51, (%r14) nop xor %rbx, %rbx // Store lea addresses_WT+0x1430, %r14 nop nop nop and %rcx, %rcx mov $0x5152535455565758, %rdx movq %rdx, %xmm4 movups %xmm4, (%r14) nop nop add %rdx, %rdx // Store lea addresses_RW+0x14284, %rcx xor $3873, %r8 movb $0x51, (%rcx) nop nop nop nop sub $10860, %rbx // Load lea addresses_A+0x544c, %rbp nop nop inc %r14 vmovups (%rbp), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rcx nop nop nop nop nop inc %rbp // Faulty Load lea addresses_US+0xbb2c, %rbx nop nop sub %r14, %r14 movups (%rbx), %xmm1 vpextrq $0, %xmm1, %rbp lea oracles, %rbx and $0xff, %rbp shlq $12, %rbp mov (%rbx,%rbp,1), %rbp pop %rsi pop %rdx pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_US', 'congruent': 0}} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_P', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 5}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 11}} {'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 */
29.536667
2,999
0.654441
e1bd9ae53fa65bb6d7d1f3ea8d62edf1e6d04e3b
437
asm
Assembly
programs/oeis/076/A076074.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/076/A076074.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/076/A076074.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A076074: Initial members of groups in A076077. ; 2,1,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277 mov $2,$0 cmp $2,0 mov $3,$0 add $0,$2 div $3,$0 sub $0,1 cal $0,6005 ; The odd prime numbers together with 1. add $0,3 mov $1,$0 sub $1,$3 mul $1,2 sub $1,6 div $1,2 add $1,1
24.277778
210
0.665904
7f26815159e049b68a6052e9f5832d9cc8259928
718
asm
Assembly
programs/oeis/001/A001533.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001533.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001533.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001533: (8n+1)(8n+7). ; 7,135,391,775,1287,1927,2695,3591,4615,5767,7047,8455,9991,11655,13447,15367,17415,19591,21895,24327,26887,29575,32391,35335,38407,41607,44935,48391,51975,55687,59527,63495,67591,71815,76167,80647,85255,89991,94855,99847,104967,110215,115591,121095,126727,132487,138375,144391,150535,156807,163207,169735,176391,183175,190087,197127,204295,211591,219015,226567,234247,242055,249991,258055,266247,274567,283015,291591,300295,309127,318087,327175,336391,345735,355207,364807,374535,384391,394375,404487,414727,425095,435591,446215,456967,467847,478855,489991,501255,512647,524167,535815,547591,559495,571527,583687,595975,608391,620935,633607 sub $1,$0 bin $1,2 mul $1,128 add $1,7 mov $0,$1
79.777778
642
0.809192
ea1c8ed565eaa5ca875a5ebcdc3861699697ffae
6,262
asm
Assembly
lib/target/mc1000/classic/mc1000_crt0.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
lib/target/mc1000/classic/mc1000_crt0.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
lib/target/mc1000/classic/mc1000_crt0.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
; ; Startup for the CCE MC-1000 ; ; Stefano Bodrato - Feb. 2013 ; ; $Id: mc1000_crt0.asm,v 1.22 2016-07-15 21:03:25 dom Exp $ ; ; There are a couple of #pragma optimization directives ; this file: ; ; #pragma output nostreams - No stdio disc files MODULE mc1000_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- defc crt0 = 1 INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- EXTERN _main ;main() is always external to crt0 code PUBLIC cleanup ;jp'd to by exit() PUBLIC l_dcal ;jp(hl) defc CONSOLE_COLUMNS = 32 IF NEED_ansiterminal defc CONSOLE_ROWS = 24 ELSE defc CONSOLE_ROWS = 16 ENDIF IF !DEFINED_CRT_ORG_CODE IF (startup=2) defc CRT_ORG_CODE = $100 ; Direct M/C mode, including system variables on top 100h bytes ELSE defc CRT_ORG_CODE = 981 ; BASIC startup mode (correct location TBD) ENDIF ENDIF defc TAR__clib_exit_stack_size = 32 defc TAR__register_sp = 0 ; 0 = autodetect defc __CPU_CLOCK = 3579545 INCLUDE "crt/classic/crt_rules.inc" INCLUDE "target/mc1000/def/maths_mbf.def" org CRT_ORG_CODE IF (startup=2) ; native M/C startup mode ; "TLOAD" mode ; defb $ff,$ff,$ff MC_PGM: MC_PGN: MC_MUSIC: defb $ff MC_PLAY: defb $01 MC_PLAYMX: defb $01 MC_HEAD: defb $00 MC_RANDOM: defw $ffff MC_RCRDPT: defw MC_RECORD MC_RECORD: defb $00,$00 defb $00,$00 defb $00,$00 defb $00,$00 defb $00,$00 defb $00,$00 defb $00,$00 defb $00,$00 MC_KEY0: defb $ff,$ff,$ff,$ff ; defb $ff MC_JOB: ret defb $ff,$ff MC_SCOREA: defb $00 MC_SCOREB: defb $00 MC_SHAPE0: defb $ff ; defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff MC_JOBM: ret defb $ff,$ff ; defb $ff,$ff MC_TABLE: MC_NSA: defw $ffff MC_NAA: defw $ffff MC_AVALUE: defb $00 VOICEA: defb $ff MC_INTRPA: defb $ff MC_TEMPA: defb $ff MC_INTA: defb $ff MC_NSB: defw $ffff MC_NBB: defw $ffff MC_BVALUE: defb $00 MC_VOICEB: defb $ff MC_INTRPB: defb $ff MC_TEMPB: defb $ff MC_INTB: defb $ff MC_NSC: defw $ffff MC_NCC: defw $ffff MC_CVALUE: defb $00 MC_VOICEC: defb $ff MC_INTRPC: defb $ff MC_TEMPC: defb $ff MC_INTC: defb $ff MC_ENABLE: defb $ff MC_AMPLIT: defb $ff MC_REGIST: defw $ffff MC_DEFIN: defb $ff MC_ONAMP: defw $ffff MC_LPLAY: defb $ff ; defb $ff,$ff,$ff,$ff,$ff,$ff MC_CHECK: defb $00 ; defb $ff,$ff,$ff,$ff MC_DSNAM: defw $8000 MC_DENAM: defw $8200 MC_HISCOR: defw $ffff MC_TEMP: defb $ff ; defb $ff,$ff MC_RIGHTJ: defb $ff MC_CHANA: defw $ffff ; defb $ff,$ff,$ff MC_TONEA: defb $ff MC_CHANB: defw $ffff ; defb $ff,$ff,$ff MC_TONEB: defb $ff MC_CHANC: defw $ffff ; defb $ff,$ff,$ff MC_TONEC: defb $ff MC_OBUF: defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff MC_FILNAM: defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff ; defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff defb $ff,$ff,$ff,$ff,$ff ; ; At position 200h different 'topics' (entries) ; ; can be defined; user can choose the topic CTRL-H ; jp start ;..on the other side the first topic can be directly ; the main program entry point, so no need for a jump table :P ELSE ; BASIC startup mode defw nxt_basic_line defw 0 ; BASIC Line number defb $a2 ; Token for CALL. defm "992" ; this BASIC caller stub is 11 bytes long defb 0 ; End of line nxt_basic_line: defw 0 ENDIF start: ld hl,($39) ld (irq_hndl+1),hl ld hl,mc_irq ld ($39),hl ;CALL $CEBA ;LD ($0128),A ;LD ($0357),A ;LD ($0360),A ;LD ($0358),A ;LD ($0352),A ;LD ($0361),A ;DEC A ;LD ($0106),A ;LD ($0353),A ;LD ($106),a ;ld hl,$106 ;ld (hl),255 ; disable gaming mode (shouldn't this work by putting 255??) ld (start1+1),sp IF __register_sp == 0 ld hl,$bfff ; 48K ? ld (hl),$55 ld a,$AA or (hl) inc a jr z,has48k ld hl,$3fff ; 48K. has48k: ld sp,hl UNDEFINE __register_sp defc __register_sp = -1 ENDIF ;ei ;xor a ;out ($80),a ;call $c021 ; setup text page (ptr in HL) INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" call crt0_init_bss ld (exitsp),sp IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF call _main cleanup: ; ; Deallocate memory which has been allocated here! ; push hl IF CRT_ENABLE_STDIO = 1 EXTERN closeall call closeall ENDIF pop bc start1: ld sp,0 IF (startup=2) ;jp $C000 ; BASIC entry (COLD RESET) jp $C003 ; BASIC entry (WARM RESET) ELSE ld hl,(irq_hndl+1) ld ($39),hl ret ENDIF l_dcal: jp (hl) ; IRQ stub to get a time counter mc_irq: di push hl push af ld hl,(FRAMES) inc hl ld (FRAMES),hl ld a,h or l jr nz,irq_hndl ld hl,(FRAMES+2) inc hl ld (FRAMES+2),hl irq_hndl: ld hl,0 ;jp $7f pop af ex (sp),hl ret ; If we were given an address for the BSS then use it IF DEFINED_CRT_ORG_BSS defc __crt_org_bss = CRT_ORG_BSS ENDIF INCLUDE "crt/classic/crt_runtime_selection.asm" INCLUDE "crt/classic/crt_section.asm" SECTION bss_crt PUBLIC FRAMES FRAMES: defw 0 defw 0
17.06267
95
0.563239
9a2d0c4fd7f03c7a818d333ed6cfc29eae0879bc
57
asm
Assembly
custom_roms/extensions/version.asm
daitangio/vic20book
b2e35d5525e3c7a6c70a31167b726c26ccd7f9bd
[ "MIT" ]
null
null
null
custom_roms/extensions/version.asm
daitangio/vic20book
b2e35d5525e3c7a6c70a31167b726c26ccd7f9bd
[ "MIT" ]
null
null
null
custom_roms/extensions/version.asm
daitangio/vic20book
b2e35d5525e3c7a6c70a31167b726c26ccd7f9bd
[ "MIT" ]
null
null
null
BASMSG .byte $93,"**** CBM BASIC V2 ****",$0D,$00
11.4
44
0.45614
1e39141d6b75689e4a1847571b2e0abe798a80a8
1,082
asm
Assembly
bin/JWASM/Samples/Win32_4d.asm
Abd-Beltaji/ASMEMU
4122099e188e951357407152c4666346e45871d3
[ "MIT" ]
3
2022-03-08T16:53:42.000Z
2022-03-18T21:55:57.000Z
bin/JWASM/Samples/Win32_4d.asm
Abd-Beltaji/ASMEMU
4122099e188e951357407152c4666346e45871d3
[ "MIT" ]
null
null
null
bin/JWASM/Samples/Win32_4d.asm
Abd-Beltaji/ASMEMU
4122099e188e951357407152c4666346e45871d3
[ "MIT" ]
null
null
null
;--- Win32 Dll sample. ;--- To create the binary, there are several possibilities: ;--- 1. using MS link: ;--- assemble: JWasm -coff Win32_4d.ASM ;--- link: Link /DLL Win32_4d.OBJ ;--- 2. using JWlink (to be found at the JWasm site): ;--- assemble: JWasm -coff Win32_4d.ASM ;--- link: JWlink format win pe dll file Win32_4d.OBJ op implib ;--- 3. using Polink (to be found in Pelles C): ;--- assemble: JWasm -coff Win32_4d.ASM ;--- link: PoLink /DLL Win32_4d.OBJ ;--- 4. using Alink: ;--- assemble: JWasm -zt0 Win32_4d.ASM ;--- link: ALink -oPE -dll -c Win32_4d.OBJ .386 .MODEL FLAT, stdcall option casemap:none .CODE Export1 proc export mov eax,12345678h ret Export1 endp Export2 proc export pParm:ptr DWORD mov ecx, pParm mov dword ptr [ecx], 87654321h mov eax,1 ret Export2 endp DLL_PROCESS_DETACH equ 0 DLL_PROCESS_ATTACH equ 1 LibMain proc hModule:dword, dwReason:dword, dwReserved:dword cmp dwReason, DLL_PROCESS_ATTACH jnz @F mov eax,1 @@: ret LibMain endp END LibMain
20.037037
69
0.654344
abda6a5d3d3085809ad582f42a520889cdc0cdcb
779
asm
Assembly
libsrc/stdio_new/fd/pollfd_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio_new/fd/pollfd_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio_new/fd/pollfd_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; int __CALLEE__ pollfd_callee(int fd, char event) ; 06.2008 aralbrec PUBLIC pollfd_callee PUBLIC ASMDISP_POLLFD_CALLEE EXTERN stdio_fdcommon1, l_jpix EXTERN stdio_error_eacces_mc, stdio_error_ebadf_mc INCLUDE "../stdio.def" .pollfd_callee pop hl pop bc ex (sp),hl .asmentry ; enter : l = fd ; c = event ; exit : c = hl = revent, carry reset for success ; hl = -1, carry set for fail call stdio_fdcommon1 ; ix = fdstruct * jp c, stdio_error_ebadf_mc ; problem with fd ld a,c ; poll always checks for errors or $f0 ld c,a ld a,STDIO_MSG_POLL call l_jpix jp c, stdio_error_eacces_mc ld l,c ld h,0 ret defc ASMDISP_POLLFD_CALLEE = # asmentry - pollfd_callee
19
62
0.643132
8ee87f1e86b9695cb5ad7ae5bc72bee6b7fad747
670
asm
Assembly
programs/oeis/155/A155096.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/155/A155096.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/155/A155096.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A155096: Numbers k such that k^2 == -1 (mod 29). ; 12,17,41,46,70,75,99,104,128,133,157,162,186,191,215,220,244,249,273,278,302,307,331,336,360,365,389,394,418,423,447,452,476,481,505,510,534,539,563,568,592,597,621,626,650,655,679,684,708,713,737,742,766,771,795,800,824,829,853,858,882,887,911,916,940,945,969,974,998,1003,1027,1032,1056,1061,1085,1090,1114,1119,1143,1148,1172,1177,1201,1206,1230,1235,1259,1264,1288,1293,1317,1322,1346,1351,1375,1380,1404,1409,1433,1438 mov $2,$0 add $0,1 lpb $0 sub $0,1 trn $0,1 add $1,7 add $3,2 mov $4,4 add $4,$3 add $4,4 add $1,$4 mov $3,2 lpe add $1,2 lpb $2 add $1,5 sub $2,1 lpe sub $1,7 mov $0,$1
27.916667
425
0.670149
a82bfec65e46dcd7436f1d0bc81653db8bfe4fdb
1,869
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/z80/asm_aligned_alloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/alloc/malloc/z80/asm_aligned_alloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/alloc/malloc/z80/asm_aligned_alloc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; Dec 2013 ; =============================================================== ; ; void *aligned_alloc(size_t alignment, size_t size) ; ; Allocate size bytes from the thread's default heap at an ; address that is an integer multiple of alignment. ; Returns 0 with carry set on failure. ; ; If alignment is not an exact power of 2, it will be rounded up ; to the next power of 2. ; ; Returns 0 if size == 0 without indicating error. ; ; =============================================================== INCLUDE "config_private.inc" SECTION code_clib SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC asm_aligned_alloc EXTERN __malloc_heap EXTERN asm_heap_alloc_aligned asm_aligned_alloc: ; Attempt to allocate memory at an address that is aligned to a power of 2 ; from the thread's default heap ; ; enter : hl = size ; bc = alignment (promoted to next higher power of two if necessary) ; ; exit : success ; ; hl = void *p_aligned could be zero if size == 0 ; carry reset ; ; fail on alignment == $10000 ; ; hl = 0 ; carry set, errno = EINVAL ; ; fail on memory not found ; ; hl = 0 ; carry set, errno = ENOMEM ; ; fail on lock acquisition ; ; hl = 0 ; carry set, errno = ENOLCK ; ; uses : af, bc, de, hl ld de,(__malloc_heap) jp asm_heap_alloc_aligned ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC asm_aligned_alloc EXTERN asm_aligned_alloc_unlocked defc asm_aligned_alloc = asm_aligned_alloc_unlocked ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23.3625
79
0.500268
a845c3c8faf65533e22fb99e60c4cbb50be04fdf
236
asm
Assembly
a/Assembler Bootsect.asm
wenzzai/hello-world
e94109a7f48df4c689442e1c1af7d39878d5b3dd
[ "MIT" ]
8,076
2015-01-02T04:55:03.000Z
2022-03-31T16:09:18.000Z
a/Assembler Bootsect.asm
wenzzai/hello-world
e94109a7f48df4c689442e1c1af7d39878d5b3dd
[ "MIT" ]
514
2015-01-08T21:48:21.000Z
2022-03-31T11:55:07.000Z
a/Assembler Bootsect.asm
wenzzai/hello-world
e94109a7f48df4c689442e1c1af7d39878d5b3dd
[ "MIT" ]
1,978
2015-01-01T14:24:01.000Z
2022-03-31T11:38:08.000Z
[ORG 0x7C00] mov si,HelloWorld call print_string jmp $ HelloWorld db "Hello World",0xD,0xA,0 print_string: mov ah,0xE .repeat: lodsb cmp al,0 je .done int 0x10 jmp .repeat .done: ret times 510-($-$$) db 0 dw 0xAA55
10.26087
38
0.665254
403f2f85bfbeba78d6b89c2428add2c5df7760e1
217
asm
Assembly
BigNum/Mod/Monty/bnDivpow2.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
BigNum/Mod/Monty/bnDivpow2.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
BigNum/Mod/Monty/bnDivpow2.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc .code bnDivpow2 proc bnX:DWORD,bitsY:DWORD,bnQuo:DWORD invoke bnMov,bnQuo,bnX invoke bnShr,bnQuo,bitsY ret bnDivpow2 endp end
14.466667
48
0.788018
dff6a425974cfb499784eb8b9d5fa6523759b077
449
asm
Assembly
oeis/104/A104248.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/104/A104248.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/104/A104248.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A104248: Lengths of successive runs of 1's in the Thue-Morse sequence A010060. ; Submitted by Christian Krause ; 2,1,2,1,2,1,1,2,2,1,2,1,2,2,1,1,2,1,2,1,2,1,1,2,2,1,1,2,1,2,1,2,2,1,2,1,2,1,1,2,2,1,2,1,2,2,1,1,2,1,2,1,2,2,1,2,1,2,1,1,2,2,1,1,2,1,2,1,2,1,1,2,2,1,2,1,2,2,1,1,2,1,2,1,2,1,1,2,2,1,1,2,1,2,1,2,2,1,2,1 mul $0,2 seq $0,194688 ; First differences of A036554 (numbers whose binary representation ends in an odd number of zeros). div $0,2
56.125
201
0.64588
ed5b9b7d087a34129e39777f420433b2cb38bc1f
279
asm
Assembly
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_einstein_system.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_einstein_system.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/font/font_8x8/_font_8x8_einstein_system.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION rodata_font SECTION rodata_font_8x8 PUBLIC _font_8x8_einstein_system PUBLIC _font_8x8_einstein_system_end _font_8x8_einstein_system: IF __CPU_GBZ80__ INCLUDE "target/gb/fonts/lower.asm" ENDIF BINARY "font_8x8_einstein_system.bin" _font_8x8_einstein_system_end:
18.6
40
0.863799
516369a81142a81ef8f6bd0d95f80dba8697dd37
701
asm
Assembly
oeis/214/A214126.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/214/A214126.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/214/A214126.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A214126: a(2n)=a(n-1)+a(n) and a(2n+1)=a(n+1) for n>=1, with a(0)=a(1)=1. ; Submitted by Stefano Spezia ; 1,1,2,2,3,2,4,3,5,2,5,4,6,3,7,5,8,2,7,5,7,4,9,6,10,3,9,7,10,5,12,8,13,2,10,7,9,5,12,7,12,4,11,9,13,6,15,10,16,3,13,9,12,7,16,10,17,5,15,12,17,8,20,13,21,2,15,10,12,7,17,9,16,5,14,12,17,7,19,12,19,4,16,11,15,9,20,13,22,6,19,15,21,10,25,16,26,3,19,13 mov $2,$0 div $0,2 lpb $0 sub $0,1 mov $3,$2 sub $3,$0 sub $3,1 mov $4,0 mov $10,$3 sub $10,$0 mov $7,$10 mov $8,$10 mov $9,$0 lpb $7 mov $5,$9 mod $5,2 mov $6,$8 add $6,1 mod $6,2 mul $5,$6 add $4,$5 div $8,2 mov $7,$8 div $9,2 lpe cmp $4,0 add $1,$4 lpe mov $0,$1 add $0,1
20.028571
250
0.513552
35d64fa6c0f9c71eb9e9154a1f4bc29a1e772530
1,610
asm
Assembly
gsm-dtmf-robot/contoller.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
10
2018-04-05T05:12:15.000Z
2022-03-18T19:06:53.000Z
gsm-dtmf-robot/contoller.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
null
null
null
gsm-dtmf-robot/contoller.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
7
2020-02-09T15:07:15.000Z
2021-11-04T09:17:39.000Z
$MOD51 RELAY1 BIT P0.1 RELAY2 BIT P0.2 RELAY3 BIT P0.3 RELAY4 BIT P0.4 KEY EQU P1 STD BIT P1.4 ORG 00H MOV SP,#08H MOV KEY,#0FFH MOV P0,#00H START: JNB STD ,$ CALL KEY_READ CALL ACTION CALL DEBOUNCE JMP START KEY_READ: MOV A,KEY ANL A,#0FH MOV R1,A RET ;---------------------- ACTION: MOV A,R1 CJNE A,#02,J1 SETB RELAY1 SETB RELAY3 CALL DELAY CLR RELAY1 CLR RELAY3 JMP J20 J1: CJNE A,#08,J2 SETB RELAY2 SETB RELAY4 CALL DELAY CLR RELAY2 CLR RELAY4 JMP J20 J2: CJNE A,#04,J3 SETB RELAY2 CALL DELAY1 CLR RELAY2 JMP J20 J3: CJNE A,#06,J20 SETB RELAY4 CALL DELAY1 CLR RELAY4 JMP J20 J20: RET ;------------------------ DELAY: MOV R3,#7 J21: MOV R4,#02H J30: MOV R5,#14H J40: MOV R6,#0FFH DJNZ R6,$ DJNZ R5,J40 DJNZ R4,J30 DJNZ R3,J21 RET ;................................ DELAY1: MOV R3,#2 J211: MOV R4,#02H J30A: MOV R5,#15H J40A: MOV R6,#0FFH DJNZ R6,$ DJNZ R5,J40A DJNZ R4,J30A DJNZ R3,J211 RET ;................................ DEBOUNCE: MOV R6,#80H J81: NOP MOV R5,#0FFH DJNZ R5,$ DJNZ R6,J81 RET ;------------------------ END
17.888889
34
0.4
9a80ef93530ff09540dd4f0ffc960e6cffb94b6e
365
asm
Assembly
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_18_flash.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_18_flash.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_18_flash.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver SECTION code_driver_terminal_output PUBLIC zx_01_output_fzx_tty_z88dk_18_flash zx_01_output_fzx_tty_z88dk_18_flash: ; change flash bit of foreground colour ; de = parameters * ld a,(de) and $01 rrca ld e,a ld a,(ix+52) ; a = foreground colour and $7f or e ld (ix+52),a ret
14.6
54
0.635616
333a380e8227021ee5ae1303f39c932c32fc0dbf
626
asm
Assembly
programs/oeis/152/A152114.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/152/A152114.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/152/A152114.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A152114: Numbers a(n) are obtained by the application of an algorithm which is similar to sieve of Eratosthenes for A000045: retaining A000045(3)=2, we delete all multiples of 2, which are more than 2; retaining A000045(4)=3, we delete all multiples of 3, which are more than 3, etc. ; 2,3,5,13,89,233,1597,4181,28657,514229,1346269,24157817,165580141,433494437,2971215073,53316291173,956722026041,2504730781961,44945570212853,308061521170129,806515533049393,14472334024676221,99194853094755497,1779979416004714189 seq $0,40 ; The prime numbers. seq $0,22086 ; Fibonacci sequence beginning 0, 3. sub $0,8 div $0,3 add $0,3
69.555556
285
0.795527
a55977419fc0f96574ce32a4d4c9ad8b60d91c73
7,900
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_14574_763.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_14574_763.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_14574_763.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x19681, %r13 nop nop nop nop dec %r15 movb $0x61, (%r13) nop lfence lea addresses_A_ht+0xd481, %rbx nop nop nop nop nop inc %r8 mov (%rbx), %eax nop nop and $46488, %r13 lea addresses_UC_ht+0x1244c, %rdi cmp %r14, %r14 mov (%rdi), %r13d nop and %r14, %r14 lea addresses_D_ht+0x1481, %r15 nop add $33677, %r13 mov (%r15), %edi nop nop add $47574, %r13 lea addresses_WC_ht+0x15b01, %r13 nop nop nop nop nop inc %rax movb (%r13), %bl nop xor $30174, %r13 lea addresses_WT_ht+0x13bc1, %r14 nop nop nop nop nop xor %rbx, %rbx movl $0x61626364, (%r14) nop nop inc %rdi lea addresses_A_ht+0xe9b1, %rsi lea addresses_WT_ht+0x46a1, %rdi clflush (%rdi) nop nop nop xor $36145, %r8 mov $20, %rcx rep movsb nop nop nop nop nop sub $12971, %r8 lea addresses_UC_ht+0xefa7, %r8 nop nop nop add %r15, %r15 mov (%r8), %di nop nop nop nop nop and $46426, %r8 lea addresses_D_ht+0x15c81, %r8 nop add %rsi, %rsi mov $0x6162636465666768, %r13 movq %r13, (%r8) nop nop nop and %r15, %r15 lea addresses_WT_ht+0x2e81, %rdi nop nop nop nop nop sub $52730, %r8 movw $0x6162, (%rdi) nop nop nop xor %rcx, %rcx lea addresses_WC_ht+0x2381, %rax nop and $47851, %r13 mov (%rax), %r15d nop nop nop add %r13, %r13 lea addresses_D_ht+0x9661, %rsi lea addresses_WT_ht+0x7281, %rdi nop xor $45593, %rax mov $3, %rcx rep movsb dec %rbx lea addresses_WC_ht+0x1dd81, %r13 nop nop nop cmp $26512, %rcx movups (%r13), %xmm2 vpextrq $0, %xmm2, %r15 nop xor $7913, %rsi lea addresses_UC_ht+0x193c1, %r13 nop nop nop nop nop and $3470, %rdi mov (%r13), %r8w nop nop nop nop nop inc %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %r9 push %rbx push %rdi // Store lea addresses_UC+0x12f1, %r9 xor $38066, %r10 movb $0x51, (%r9) nop nop nop nop add %r10, %r10 // Store mov $0xf21, %r8 nop nop add %r14, %r14 movw $0x5152, (%r8) cmp $43546, %r14 // Load lea addresses_D+0x6e81, %r14 dec %r10 movups (%r14), %xmm7 vpextrq $1, %xmm7, %rdi nop nop nop inc %r9 // Faulty Load lea addresses_D+0x17e81, %rbx nop nop nop nop nop sub %r9, %r9 mov (%rbx), %r8 lea oracles, %r14 and $0xff, %r8 shlq $12, %r8 mov (%r14,%r8,1), %r8 pop %rdi pop %rbx pop %r9 pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'36': 14574} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
31.726908
2,999
0.648608
3dc1a885ff41e7f8ebf8c5c0a2283627b7f1c836
5,361
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1347.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1347.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1347.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x9fbd, %r8 nop nop nop nop nop cmp $32090, %r12 movb (%r8), %dl nop nop nop nop cmp %r8, %r8 lea addresses_D_ht+0x1a1d, %r13 nop nop nop cmp %rsi, %rsi mov $0x6162636465666768, %r15 movq %r15, %xmm5 movups %xmm5, (%r13) nop nop nop add %r15, %r15 lea addresses_WC_ht+0x160d1, %rsi lea addresses_WC_ht+0x1923d, %rdi nop sub %r8, %r8 mov $81, %rcx rep movsw nop nop xor %r13, %r13 lea addresses_normal_ht+0x132fd, %r15 clflush (%r15) nop nop dec %r8 movb $0x61, (%r15) nop and $53692, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi // Store lea addresses_A+0x1c415, %r14 nop xor $28397, %rcx movw $0x5152, (%r14) nop xor %rax, %rax // Store lea addresses_D+0x10bd, %rax sub %r15, %r15 movw $0x5152, (%rax) nop nop nop nop sub $36415, %rax // Faulty Load lea addresses_normal+0x18cbd, %rcx nop nop xor %rdi, %rdi mov (%rcx), %r13 lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}} {'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 */
42.547619
2,999
0.657713
4cec76b302fa80c170391b778a5ab52178e7fb93
265
asm
Assembly
f.asm
Ericles-Porty/Assembly-Lessons
522d17dc1e929603c310b9c9d4d2e5fd5ba32a94
[ "MIT" ]
2
2022-03-19T01:53:43.000Z
2022-03-19T01:54:13.000Z
f.asm
Ericles-Porty/Assembly-Lessons
522d17dc1e929603c310b9c9d4d2e5fd5ba32a94
[ "MIT" ]
null
null
null
f.asm
Ericles-Porty/Assembly-Lessons
522d17dc1e929603c310b9c9d4d2e5fd5ba32a94
[ "MIT" ]
null
null
null
#a = 18; b = 20; #if ( a != b ) { #c = 2 + b ; #} else { #d = 3 + a ; #} .data a: .word 18 b: .word 20 .text lw $s0, a lw $s1, b beq $s0, $s1, if1 #if $s0 == $s1 chame a f1 addi $s2, $s1, 2 j exit if1: addi $s3, $s0, 3 j exit exit: li $v0, 10
11.521739
44
0.441509
cc08dc58f7459404589588eaca01ba7c9a32ff11
3,969
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_511_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_511_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_511_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rdi push %rdx push %rsi lea addresses_normal_ht+0x17ac4, %rdi nop nop nop nop and $1090, %rsi mov $0x6162636465666768, %r11 movq %r11, %xmm5 and $0xffffffffffffffc0, %rdi movaps %xmm5, (%rdi) nop nop nop nop cmp $10275, %r11 lea addresses_normal_ht+0xd944, %r14 nop nop nop nop nop cmp $29400, %rsi mov (%r14), %eax nop inc %r11 lea addresses_A_ht+0xe977, %r15 nop and $5923, %rdx mov $0x6162636465666768, %r11 movq %r11, (%r15) nop nop inc %rdx lea addresses_A_ht+0x15484, %r15 clflush (%r15) nop nop nop sub $3050, %r11 mov (%r15), %di nop nop nop mfence lea addresses_WC_ht+0xac84, %rsi xor %r14, %r14 vmovups (%rsi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rax nop nop sub $20619, %r14 pop %rsi pop %rdx pop %rdi pop %rax pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbp push %rbx push %rdx // Load lea addresses_RW+0xb9a4, %rbp nop nop nop nop nop dec %rbx vmovups (%rbp), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r15 nop inc %rdx // Faulty Load lea addresses_US+0xf484, %rbx nop nop nop nop cmp %r10, %r10 mov (%rbx), %r9 lea oracles, %r10 and $0xff, %r9 shlq $12, %r9 mov (%r10,%r9,1), %r9 pop %rdx pop %rbx pop %rbp pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': True}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 511} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
30.068182
1,532
0.657092
5966b64a6cfcba23c3cbe46a9aea8993e0752a62
254
asm
Assembly
programs/oeis/166/A166077.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/166/A166077.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/166/A166077.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A166077: a(n)=2^(n(3n-1)/2). ; 1,2,32,4096,4194304,34359738368,2251799813685248,1180591620717411303424,4951760157141521099596496896,166153499473114484112975882535043072 mov $1,2 mov $2,2 lpb $0 sub $0,1 mul $1,$2 mul $2,8 lpe div $1,2 mov $0,$1
19.538462
139
0.728346
91866b199a59a5ca2e7d2a51f1d43880563de31f
254
asm
Assembly
libsrc/adt/stack/adt_StackCreateS.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/adt/stack/adt_StackCreateS.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/adt/stack/adt_StackCreateS.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void __FASTCALL__ adt_StackCreateS(struct adt_Stack *s) ; 11.2006 aralbrec SECTION code_clib PUBLIC adt_StackCreateS PUBLIC _adt_StackCreateS EXTERN l_setmem ; initialize an adt_Stack* .adt_StackCreateS ._adt_StackCreateS xor a jp l_setmem-7
15.875
57
0.811024
7baa1886a62f37a950740529763c74fddb353182
15,081
asm
Assembly
8088/demo/credits/mod.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
1
2021-05-24T05:18:10.000Z
2021-05-24T05:18:10.000Z
8088/demo/credits/mod.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
null
null
null
8088/demo/credits/mod.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
null
null
null
%include "..\defaults_common.asm" ; Set to 1 for emulator, 0 for real hardware (won't work without a proper ; prefetch queue). Unfortunately moving the "mov cl,1" instruction to before ; the patch causes the loop to take more than 288 cycles. DOSBOX EQU 0 extern song, creditstxt, background initialScrollPosition equ 2064 segment code ; o must be at address 0 after linking o: ..start: cli mov ax,1 int 0x10 mov ah,2 mov bh,0 mov dh,24 mov dl,0 int 0x10 ; Set video mode to 40-column text mode, black border mov dx,0x3da waitForVerticalSync waitForDisplayEnable initCGA 8, 0 ; Clear screen mov ax,0xb800 mov es,ax mov ax,seg background mov ds,ax xor si,si mov di,initialScrollPosition mov cx,0x2000 cld rep movsw ; Save stack for later mov [cs:savedSS],ss mov [cs:savedSP],sp ; Insert h-instructions into song data mov cx,seg song add cx,0x1000 mov es,cx mov ax,seg creditstxt mov ds,ax xor si,si mov di,initialScrollPosition/2 mov dx,initialScrollPosition + 40*24*2 ; Initial draw position mov [cs:screenUpdate+2],dx mov bh,15 ; Colour jmp startLine insertLoop: lodsb cmp al,13 jne doCharacter lodsb startLine: push si mov ah,0 countCharactersLoop: lodsb cmp al,0x5b jne notColour sub ah,3 notColour: cmp al,0x5d jne notMove sub ah,5 notMove: cmp al,13 je doneCountingCharacters inc ah jmp countCharactersLoop doneCountingCharacters: pop si mov al,40 sub al,ah mov ah,0 and ax,0xfe add dx,40*2 push dx add dx,ax mov ax,hPointerMove call addToHProgram pop dx push dx mov ax,hCrtcUpdate add di,40 and di,0x1fff mov dx,di call addToHProgram pop dx jmp insertLoop doCharacter: cmp al,0x5b je doColour cmp al,0x5d je doMove cmp al,0xff je doNoPlot cmp al,'$' je doneCredits push dx mov dh,bh mov dl,al mov ax,hScreenOutput call addToHProgram pop dx jmp insertLoop doNoPlot: mov ax,hNOP call addToHProgram jmp insertLoop doColour: lodsb shl al,1 shl al,1 shl al,1 shl al,1 mov bh,al lodsb and al,0x0f or bh,al jmp insertLoop doMove: lodsb shl al,1 shl al,1 shl al,1 shl al,1 mov dh,al lodsb and al,0x0f or dh,al lodsb shl al,1 shl al,1 shl al,1 shl al,1 mov dl,al lodsb and al,0x0f or dl,al mov ax,hPointerMove call addToHProgram jmp insertLoop doneCredits: mov si,0 mov ax,di xor dx,dx mov bx,40 div bx mov dh,al mov dl,0 shr dx,1 crazyScrollLoop: add dx,si cmp dx,0x6600 jle dxOk sub dx,0x6600 dxOk: push dx mov ax,dx mov cl,7 shr ax,cl mov dx,40 imul dx mov dx,ax mov ax,hCrtcUpdate call addToHProgram pop dx add si,2 jmp crazyScrollLoop addToHProgram: mov word[es:0x0c],ax mov word[es:0x0e],dx mov cx,es inc cx mov es,cx cmp cx,seg creditstxt je finishedHProgram ret finishedHProgram: mov ss,[cs:savedSS] mov sp,[cs:savedSP] mov word[es:0x0c],hFinish ; Set DRAM refresh rate to 18 so it synchronizes with the routine mov al,TIMER1 | LSB | MODE2 | BINARY out 0x43,al mov al,18 out 0x41,al ; Timer 1 rate ; Enable PC speaker, set PIT to correct mode in al,0x61 or al,3 out 0x61,al mov al,TIMER2 | LSB | MODE0 | BINARY out 0x43,al mov al,0x01 out 0x42,al ; Counter 2 count = 1 - terminate count quickly ; Set up segments mov ax,seg song mov ds,ax add ax,0x1000 dec ax mov [cs:songP],ax mov ax,cs mov ss,ax mov sp,hStart ; Set up other initial registers xor bp,bp xor si,si xor di,di xor dx,dx mov cx,1 mov word[cs:mixPatch+2],0 mov word[cs:mixPatch+12],0 mov word[cs:mixPatch+22],0 mov word[cs:mixPatch+32],0 mov byte[cs:mixPatch+7],0 mov byte[cs:mixPatch+17],0 mov byte[cs:mixPatch+27],0 mov byte[cs:mixPatch+37],0 mov word[cs:cxPatch],0x01b1 %define nopCount 15 v: times nopCount nop mixPatch: add bp,9999 ; 0 mov bx,bp ; 4 mov bl,99 ; 6 mov al,[bx] ; 8 add si,9999 ; 10 mov bx,si ; 14 mov bl,99 ; 16 add al,[bx] ; 18 add di,9999 ; 20 mov bx,di ; 24 mov bl,99 ; 26 add al,[bx] ; 28 add dx,9999 ; 30 mov bx,dx ; 34 mov bl,99 ; 36 add al,[bx] out 0x42,al ; Output total to speaker loopPatch: loop v %if DOSBOX != 0 cxPatch: mov cl,99 ; Count until next patch %endif pop bx pop word[cs:bx] %if DOSBOX == 0 cxPatch: mov cl,99 ; Count until next patch %endif endPatch: jmp mixPatch ; Restore PC speaker to normal, set PIT to correct mode in al,0x61 and al,0xfc out 0x61,al mov al,TIMER2 | BOTH | MODE3 | BINARY out 0x43,al mov al,0x00 out 0x42,al out 0x42,al ; Restore stack so we can call the interrupt to exit. mov ss,[cs:savedSS] mov sp,[cs:savedSP] ; mov ax,3 ; int 0x10 ; Exit mov ax,0x4c00 int 0x21 savedSS: dw 0 savedSP: dw 0 songP: dw 0 %assign i 0 %rep nopCount %assign array%[i] 0x90 %assign i i+1 %endrep %assign array%[nopCount] 0x81 %assign gotByte 0 %assign tmpByte 0 %assign vLoc 0 %assign lastCX 1 %assign lastStartAt 0 %assign time 0 %macro restore 0 %assign time savedTime %assign lastStartAt savedLastStartAt %assign lastCX savedLastCX %assign i 0 %rep nopCount %assign array%[i] savedArray%[i] %assign i i+1 %endrep %endmacro %macro advanceTime 0 %assign time time+1 %endmacro %macro emitPatch 2.nolist dw %1, %2 %assign time time+1 %endmacro %macro setCX 1 %if %1 >= 256 %error CX too large! %endif %if lastCX != %1 emitPatch cxPatch, (%1 << 8) | 0xb1 ; mov cl,XX %endif %assign lastCX %1 %endmacro ; This is where (relative to v) we will start patching to. We'll need to use ; something other than 0 here if our patched instructions take longer to run ; than the equivalent length of NOPs. %macro startAt 1 %assign vLoc %1 %if lastStartAt != %1 emitPatch loopPatch, 0xe2 | (((v + %1)-(loopPatch + 2)) << 8) ; loop v+vLoc %endif %assign lastStartAt %1 %endmacro ; This will finish and run the v-instruction. It will take care of erasing the ; old v-instruction and padding with NOPs. ; The argument is the number of times to run the v-instruction (accomplished by ; setting CX appropriately). 0 to run until the end of the tick. %macro runV 1 %rep nopCount ; %warning vLoc nopCount gotByte %if ((vLoc == nopCount-1) && (gotByte != 0)) || (vLoc == nopCount) ; %warning exitrep %exitrep %else ; %warning about to pad 0x90 b 0x90 ; Pad with NOPs %endif %endrep %if vLoc == nopCount-1 && gotByte != 0 ; %warning about to pad 0x81 b 0x81 ; Squeeze out the final byte in the vInstruction area by overwriting the first byte of mixPatch %endif %assign gotByte 0 %assign vLoc lastStartAt %assign cycles %1 %if cycles == 0 ; %if DOSBOX != 0 ; %assign cycles 1 ; To simplify debugging ; %else %assign cycles 331-(2+time) ; Adjust by 2 because there are two setCX patches that need to follow ; %endif %endif setCX 1+cycles %assign time time+cycles setCX 1 %endmacro %macro forget 1-* %rep %0 %assign i %1+lastStartAt %assign array%[i] -1 %rotate 1 %endrep %endmacro ; This will emit bytes to the v-instruction. %macro b 1-* ; %warning adding %1 %rep %0 %if gotByte == 0 %if array%[vLoc] == %1 %assign vLoc vLoc+1 %else %assign tmpByte %1 %assign gotByte 1 %endif %else %if vLoc == nopCount || (vLoc == nopCount-1 && %1 != 0x81) %error Too many bytes in vInstruction! vLoc nopCount %1 tmpByte %endif emitPatch v+vLoc, (%1 << 8) | tmpByte %assign gotByte 0 %assign array%[vLoc] tmpByte %assign vLoc vLoc+1 %assign array%[vLoc] %1 %assign vLoc vLoc+1 %endif %rotate 1 %endrep %endmacro ; Flush any cached byte so that the next word will be whole %macro flush 0 %if gotByte != 0 b 0x90 %assign vLoc vLoc-1 %endif %endmacro ; This will emit a word to the v-instruction. %macro w 1 b ((%1) & 0xff) b ((%1) >> 8) %endmacro ; This will emit a label to the v-instruction. %macro l 1 w %1-o %endmacro ; This just allows us to write multiple instructions on one source line. %macro multi 1-*.nolist %rep %0 %1 %rotate 1 %endrep %endmacro ; pseudo-assembly instructions used in the v-instructions %define CS_ {b 0x2e} %define ES_ {b 0x26} %define SS_ {b 0x36} %define INC_mw {b 0xff, 0x06} %define MOV_ES_mw {b 0x8e, 0x06} %define MOV_AL_xb {b 0xa0} %define MOV_AX_xw {b 0xa1} %define MOV_xb_AL {b 0xa2} %define MOV_xw_AX {b 0xa3} %define MOV_SP_mw {b 0x8b, 0x26} %define MOV_BX_DX {b 0x89, 0xd3} %define MOV_DX_iw {b 0xba} %define MOV_AX_iw {b 0xb8} %define OUT_DX_AX {b 0xef} %define MOV_DX_BX {b 0x89, 0xda} %define MOV_SP_iw {b 0xbc} %define MOV_ES_AX {b 0x8e, 0xc0} %define MOV_mw_iw {b 0xc7, 0x06} ; Each line in a v-instruction in the v-program. ES is preservaed across ; v-instructions, other registers are stomped. Registers CX, BX, SI, DI, BP ; and DS must be preserved. SS:SP is the current v-instruction pointer. ; Each v-instruction (including any padding NOPs at the end) must take the same ; amount of time to run as nopCount NOPs. ; We do the waveform and frequency updates as close together as possible so ; that all 4 channels switch note at as close as possible to the same time. hStart: w0: emitPatch mixPatch+6, 0x00b3 ; w0: waveform0 = "mov bl, xx" f0: emitPatch mixPatch+2, 0 ; f0: frequency0 = xxxx w1: emitPatch mixPatch+16, 0x00b3 ; w1: waveform1 = "mov bl, xx" f1: emitPatch mixPatch+12, 0 ; f1: frequency1 = xxxx w2: emitPatch mixPatch+26, 0x00b3 ; w2: waveform2 = "mov bl, xx" f2: emitPatch mixPatch+22, 0 ; f2: frequency2 = xxxx w3: emitPatch mixPatch+36, 0x00b3 ; w3: waveform3 = "mov bl, xx" f3: emitPatch mixPatch+32, 0 ; f3: frequency3 = xxxx multi startAt 7, CS_, INC_mw, l songP, runV 1 ; inc word[cs:songP] multi startAt 4, CS_, MOV_ES_mw, l songP, runV 1 ; mov es,[cs:songP] multi startAt 4, ES_, MOV_AL_xb, w 0x0, SS_, MOV_xb_AL, l w0+3, runV 1 ; mov al,[es:0x0] mov [ss:w0+3],al multi startAt 4, ES_, MOV_AL_xb, w 0x3, SS_, MOV_xb_AL, l w1+3, runV 1 ; mov al,[es:0x3] mov [ss:w1+3],al multi startAt 4, ES_, MOV_AL_xb, w 0x6, SS_, MOV_xb_AL, l w2+3, runV 1 ; mov al,[es:0x6] mov [ss:w2+3],al multi startAt 4, ES_, MOV_AL_xb, w 0x9, SS_, MOV_xb_AL, l w3+3, runV 1 ; mov al,[es:0x9] mov [ss:w3+3],al multi startAt 6, ES_, MOV_AX_xw, w 0x1, SS_, MOV_xw_AX, l f0+2, runV 1 ; mov ax,[es:0x1] mov [ss:f0+2],ax multi startAt 6, ES_, MOV_AX_xw, w 0x4, SS_, MOV_xw_AX, l f1+2, runV 1 ; mov ax,[es:0x4] mov [ss:f1+2],ax multi startAt 6, ES_, MOV_AX_xw, w 0x7, SS_, MOV_xw_AX, l f2+2, runV 1 ; mov ax,[es:0x7] mov [ss:f2+2],ax multi startAt 6, ES_, MOV_AX_xw, w 0xa, SS_, MOV_xw_AX, l f3+2, runV 1 ; mov ax,[es:0xa] mov [ss:f3+2],ax multi startAt 4, ES_, MOV_SP_mw, w 0xc, runV 1 ; mov sp,[es:0xc] %assign savedTime time %assign savedLastStartAt lastStartAt %assign savedLastCX lastCX %assign i 0 %rep nopCount %assign savedArray%[i] array%[i] %assign i i+1 %endrep ; Each of these blocks forms an h-instruction. One h-instruction is executed ; every 20ms. The h-instruction and its operand are stored in bytes 12-15 of ; the song data record. ; We can't load the operand from the song data and update the CRTC register in ; the same v-instruction as it would take too long. Therefore we need to break ; it up like this. hCrtcUpdate: restore multi startAt 4, ES_, MOV_AL_xb, w 0xe, SS_, MOV_xb_AL, l hCrtcUpdate+0x37, runV 1 ; mov al,[es:0xe] mov [ss:sa1+7],al multi startAt 4, ES_, MOV_AL_xb, w 0xf, SS_, MOV_xb_AL, l hCrtcUpdate+0x4b, runV 1 ; mov al,[es:0xf] mov [ss:sa2+7],al multi forget 7, startAt 4, MOV_BX_DX, MOV_DX_iw, w 0x3d4, MOV_AX_iw, w 0x990d, OUT_DX_AX, MOV_DX_BX, runV 1 ; sa1: mov bx,dx mov dx,0x3d4 mov ax,0xXX0c out dx,ax mov dx,bx multi forget 7, startAt 4, MOV_BX_DX, MOV_DX_iw, w 0x3d4, MOV_AX_iw, w 0x990c, OUT_DX_AX, MOV_DX_BX, runV 1 ; sa2: mov bx,dx mov dx,0x3d4 mov ax,0xXX0d out dx,ax mov dx,bx multi forget 7, startAt 0, MOV_SP_iw, l hStart, runV 0 ; mov sp,hStart hScreenOutput: restore multi startAt 6, ES_, MOV_AX_xw, w 0x0e, SS_, MOV_xw_AX, l hScreenOutput+0x56, runV 1 ; mov ax,[es:0xe] mov [ss:screenUpdate+5],ax multi startAt 0, MOV_AX_iw, w 0xb800, MOV_ES_AX, runV 1 ; mov ax,0xb800 mov es,ax multi {forget 3, 4, 5, 6}, startAt 7, ES_, MOV_mw_iw, flush, screenUpdate: multi w 0, w 0, runV 1 ; screenUpdate: mov [es:xxxx],yyyy multi {forget 3, 4, 5, 6}, startAt 7, CS_, INC_mw, l screenUpdate+2, runV 2 ; inc word[cs:screenUpdate+3] *twice* multi startAt 0, MOV_SP_iw, l hStart, runV 0 ; mov sp,hStart hPointerMove: restore multi startAt 6, ES_, MOV_AX_xw, w 0x0e, SS_, MOV_xw_AX, l screenUpdate+2, runV 1 ; mov ax,[es:0xe] mov [ss:screenUpdate+3],ax multi startAt 0, MOV_SP_iw, l hStart, runV 0 ; mov sp,hStart hFinish: restore emitPatch endPatch, 0x00eb ; "jmp mixPatch" = "jmp $+2" emitPatch endPatch, 0x00eb ; Just in case of prefetch queue difficulties hNOP: restore multi startAt 0, MOV_SP_iw, l hStart, runV 0 ; mov sp,hStart segment STACK STACK class=STACK resb 256
26.046632
178
0.593528
2ee99d57de6599d38055026ccc43ca4557d83ae8
4,299
asm
Assembly
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_2457_1577.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_2457_1577.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_2457_1577.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x34ca, %rsi nop nop dec %r8 mov (%rsi), %r11 nop nop nop nop nop add $18560, %rcx lea addresses_normal_ht+0x99da, %rsi lea addresses_WC_ht+0x1b702, %rdi nop nop nop nop nop sub $4572, %r10 mov $35, %rcx rep movsb nop nop inc %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rax push %rcx push %rsi // Faulty Load mov $0x1da, %r11 nop nop nop nop dec %rcx mov (%r11), %ax lea oracles, %rsi and $0xff, %rax shlq $12, %rax mov (%rsi,%rax,1), %rax pop %rsi pop %rcx pop %rax pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'00': 2457} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
53.7375
2,999
0.66248
2ce500aa65a0f5c67ec2f5db726a95fff8497209
4,390
asm
Assembly
data/pokemon/palettes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/palettes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/palettes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
MonsterPalettes: table_width 1, MonsterPalettes db PAL_MEWMON ; MISSINGNO db PAL_GREENMON ; BULBASAUR db PAL_GREENMON ; IVYSAUR db PAL_GREENMON ; VENUSAUR db PAL_REDMON ; CHARMANDER db PAL_REDMON ; CHARMELEON db PAL_REDMON ; CHARIZARD db PAL_CYANMON ; SQUIRTLE db PAL_CYANMON ; WARTORTLE db PAL_CYANMON ; BLASTOISE db PAL_GREENMON ; CATERPIE db PAL_GREENMON ; METAPOD db PAL_CYANMON ; BUTTERFREE db PAL_YELLOWMON ; WEEDLE db PAL_YELLOWMON ; KAKUNA db PAL_YELLOWMON ; BEEDRILL db PAL_BROWNMON ; PIDGEY db PAL_BROWNMON ; PIDGEOTTO db PAL_BROWNMON ; PIDGEOT db PAL_GREYMON ; RATTATA db PAL_GREYMON ; RATICATE db PAL_BROWNMON ; SPEAROW db PAL_BROWNMON ; FEAROW db PAL_PURPLEMON ; EKANS db PAL_PURPLEMON ; ARBOK db PAL_YELLOWMON ; PIKACHU db PAL_YELLOWMON ; RAICHU db PAL_BROWNMON ; SANDSHREW db PAL_BROWNMON ; SANDSLASH db PAL_BLUEMON ; NIDORAN_F db PAL_BLUEMON ; NIDORINA db PAL_BLUEMON ; NIDOQUEEN db PAL_PURPLEMON ; NIDORAN_M db PAL_PURPLEMON ; NIDORINO db PAL_PURPLEMON ; NIDOKING db PAL_PINKMON ; CLEFAIRY db PAL_PINKMON ; CLEFABLE db PAL_REDMON ; VULPIX db PAL_YELLOWMON ; NINETALES db PAL_PINKMON ; JIGGLYPUFF db PAL_PINKMON ; WIGGLYTUFF db PAL_BLUEMON ; ZUBAT db PAL_BLUEMON ; GOLBAT db PAL_GREENMON ; ODDISH db PAL_REDMON ; GLOOM db PAL_REDMON ; VILEPLUME db PAL_REDMON ; PARAS db PAL_REDMON ; PARASECT db PAL_PURPLEMON ; VENONAT db PAL_PURPLEMON ; VENOMOTH db PAL_BROWNMON ; DIGLETT db PAL_BROWNMON ; DUGTRIO db PAL_YELLOWMON ; MEOWTH db PAL_YELLOWMON ; PERSIAN db PAL_YELLOWMON ; PSYDUCK db PAL_CYANMON ; GOLDUCK db PAL_BROWNMON ; MANKEY db PAL_BROWNMON ; PRIMEAPE db PAL_BROWNMON ; GROWLITHE db PAL_REDMON ; ARCANINE db PAL_BLUEMON ; POLIWAG db PAL_BLUEMON ; POLIWHIRL db PAL_BLUEMON ; POLIWRATH db PAL_YELLOWMON ; ABRA db PAL_YELLOWMON ; KADABRA db PAL_YELLOWMON ; ALAKAZAM db PAL_GREYMON ; MACHOP db PAL_GREYMON ; MACHOKE db PAL_GREYMON ; MACHAMP db PAL_GREENMON ; BELLSPROUT db PAL_GREENMON ; WEEPINBELL db PAL_GREENMON ; VICTREEBEL db PAL_CYANMON ; TENTACOOL db PAL_CYANMON ; TENTACRUEL db PAL_GREYMON ; GEODUDE db PAL_GREYMON ; GRAVELER db PAL_GREYMON ; GOLEM db PAL_REDMON ; PONYTA db PAL_REDMON ; RAPIDASH db PAL_PINKMON ; SLOWPOKE db PAL_PINKMON ; SLOWBRO db PAL_GREYMON ; MAGNEMITE db PAL_GREYMON ; MAGNETON db PAL_BROWNMON ; FARFETCHD db PAL_BROWNMON ; DODUO db PAL_BROWNMON ; DODRIO db PAL_BLUEMON ; SEEL db PAL_BLUEMON ; DEWGONG db PAL_PURPLEMON ; GRIMER db PAL_PURPLEMON ; MUK db PAL_GREYMON ; SHELLDER db PAL_GREYMON ; CLOYSTER db PAL_PURPLEMON ; GASTLY db PAL_PURPLEMON ; HAUNTER db PAL_PURPLEMON ; GENGAR db PAL_GREYMON ; ONIX db PAL_YELLOWMON ; DROWZEE db PAL_YELLOWMON ; HYPNO db PAL_REDMON ; KRABBY db PAL_REDMON ; KINGLER db PAL_YELLOWMON ; VOLTORB db PAL_YELLOWMON ; ELECTRODE db PAL_PINKMON ; EXEGGCUTE db PAL_GREENMON ; EXEGGUTOR db PAL_GREYMON ; CUBONE db PAL_GREYMON ; MAROWAK db PAL_BROWNMON ; HITMONLEE db PAL_BROWNMON ; HITMONCHAN db PAL_PINKMON ; LICKITUNG db PAL_PURPLEMON ; KOFFING db PAL_PURPLEMON ; WEEZING db PAL_GREYMON ; RHYHORN db PAL_GREYMON ; RHYDON db PAL_PINKMON ; CHANSEY db PAL_BLUEMON ; TANGELA db PAL_BROWNMON ; KANGASKHAN db PAL_CYANMON ; HORSEA db PAL_CYANMON ; SEADRA db PAL_REDMON ; GOLDEEN db PAL_REDMON ; SEAKING db PAL_REDMON ; STARYU db PAL_GREYMON ; STARMIE db PAL_PINKMON ; MR_MIME db PAL_GREENMON ; SCYTHER db PAL_MEWMON ; JYNX db PAL_YELLOWMON ; ELECTABUZZ db PAL_REDMON ; MAGMAR db PAL_BROWNMON ; PINSIR db PAL_GREYMON ; TAUROS db PAL_REDMON ; MAGIKARP db PAL_BLUEMON ; GYARADOS db PAL_CYANMON ; LAPRAS db PAL_GREYMON ; DITTO db PAL_GREYMON ; EEVEE db PAL_CYANMON ; VAPOREON db PAL_YELLOWMON ; JOLTEON db PAL_REDMON ; FLAREON db PAL_GREYMON ; PORYGON db PAL_BLUEMON ; OMANYTE db PAL_BLUEMON ; OMASTAR db PAL_BROWNMON ; KABUTO db PAL_BROWNMON ; KABUTOPS db PAL_GREYMON ; AERODACTYL db PAL_PINKMON ; SNORLAX db PAL_BLUEMON ; ARTICUNO db PAL_YELLOWMON ; ZAPDOS db PAL_REDMON ; MOLTRES db PAL_GREYMON ; DRATINI db PAL_BLUEMON ; DRAGONAIR db PAL_BROWNMON ; DRAGONITE db PAL_MEWMON ; MEWTWO db PAL_MEWMON ; MEW assert_table_length NUM_POKEMON + 1
28.141026
36
0.73713
3a099ec32f225d5cf778abb4087c5eaaf3734402
360
asm
Assembly
programs/oeis/210/A210978.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/210/A210978.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/210/A210978.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A210978: A186029 and positive terms of A001106 interleaved. ; 0,1,5,9,17,24,36,46,62,75,95,111,135,154,182,204,236,261,297,325,365,396,440,474,522,559,611,651,707,750,810,856,920,969,1037,1089,1161,1216,1292,1350,1430,1491,1575,1639,1727,1794,1886,1956,2052,2125,2225,2301 mov $1,$0 add $0,9 add $0,$1 sub $1,1 mul $1,5 add $0,$1 div $0,2 bin $0,2 div $0,7
27.692308
212
0.705556
ceb7b4849fd01c7cb85ad6da7e4bb1bfd283b815
3,239
asm
Assembly
src/asm/rs232-2400-19200.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
src/asm/rs232-2400-19200.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
src/asm/rs232-2400-19200.asm
gilbertfrancois/msx
f34418180820df067530f31bd9727ef1c65a7989
[ "Apache-2.0" ]
null
null
null
;RECEIVING AND SENDING RS232 DATA @9600 BITS/S ON A STANDARD MSX 3.57MHz VOICEAQ EQU &C800 ;BUFFER TO OCCUPY IN SYSTEM AREA: DO NOT USE PLAY... org VOICEAQ ;MSX .BIN HEADER db &fe dw START, PROGEND, START START: ;TRANSFER 'BC' BYTES FROM JOY2, 'UP', PIN1 TO (HL) ;MSX, Z80 3.58MHz ;SETS CARRY BIT ON ERROR. A HOLDS ERROR CODE: ;A=1 RS232 LINE NOT HIGH,A=2 STARTBIT TIMEOUT RECBYTES: ld d,b ;USE DE AS BYTE COUNTER, B AS BIT COUNTER AND C AS VDP STATUS REGISTER ld e,c ld bc,&0099 ;B=0 -> ~4 SECONDS TIME-OUT di ;NO INTERRUPTS, TIME CRITICAL ROUTINE ld a,&0F ;PSG REGISTER 15, SELECT JOYSTICK PORT 2 out (&a0),a in A,(&a2) set 6,a ;SELECT JOY2 out (&a1),a ld A,&0e ;SET PSG #14 out (&a0),a in A,(&a2) and &01 jr nz,.STARTBIT ;RS232 LINE SHOULD BE HIGH, OTHERWISE STOP ld a,&01 ;ERROR, RS232 LINE NOT READY scf ei ret .STARTBIT: in a,(&a2) and &01 jp z,.STARTREAD ;YES, WE HAVE A START BIT in f,(c) ;VDP INTERRUPT? jp p,.STARTBIT ;NO INTERRUPT in a,(&a2) and &01 jp z,.STARTREAD ;YES, WE HAVE A START BIT djnz .STARTBIT ld a,&02 ;ERROR START BIT TIME-OUT ~4-5S scf ei ret .STARTREAD: ld a,(DELAY_START) ;DELAY FROM START BIT -> BIT 0 call DELAY ;WAIT FOR BIT0 ld b,7 ;WE NEED 8 BITS, READ AS 7+1 .READBITS: in a,(&a2) rrca ;SHIFT DATA BIT (0) -> CARRY rr (hl) ;SHIFT CARRY -> [HL] ld a,(DELAY_BITS) ;DELAY FROM BIT N -> BIT N+1 call DELAY djnz .READBITS in a,(&a2) ;LAST BIT, OTHER DELAY (STOPBIT) rrca ;SHIFT DATA BIT (0) -> CARRY rr (hl) ;SHIFT CARRY -> [HL] .NEXTBYTE: ld a,(DELAY_STOP) ;DELAY BIT 7 TO ENSURE WE ARE AT STOPBIT call DELAY ld b,a ;LD B,0 BUT A=0 inc hl dec de ld a,d or e jp z,.FINISH ;WE ARE FINISHED in a,(&a2) ;READ ACTUAL STOPBIT VALUE and &01 jr nz,.STARTBIT ;NEXT BYTE OR STOPBIT ERROR .STOPBITERROR: ld a,3 scf ei ret .FINISH: or a ;RESET CARRY FLAG ei ret ;SEND 'BC' BYTES FROM [HL] TO PIN6, JOY2 ;MSX, Z80 3.58MHz SENDBYTES: DI ;NO INTERRUPTS LD A,&0F ;SELECT PSG REG #15 OUT (&A0),A IN A,(&A2) PUSH AF ;SAVE VALUE OF REG #15 SET 6,A ;JOY2 RES 2,A ;TRIG1 LOW LD E,A ;0V VALUE (0) IN E SET 2,A ;TRIG1 HIGH LD D,A ;5V VALUE (1) IN D .BYTELOOP: PUSH BC LD A,E ;START BIT (=0) .STARTBIT: LD C,(HL) LD B,&08 OUT (&A1),A ADD A,&00 ;DUMMY 8 CYCLES LD A,(DELAY_BITS) CALL DELAY .BITLOOP: RRC C LD A,D ;ASSUME BIT=1 JR C,.SETBIT LD A,E ;NO, BIT=0 .SETBIT: OUT (&A1),A LD A,(DELAY_BITS) CALL DELAY DJNZ .BITLOOP .STOPBIT: LD A,D OUT (&A1),A ;STOP BIT (=1) LD A,(DELAY_STOP) CALL DELAY POP BC DEC BC INC HL LD A,B OR C JP NZ,.BYTELOOP .EXIT: POP AF OUT (&A1),A ;RESTORE REG #15 OF PSG EI RET DELAY: DEC A JP NZ,DELAY RET ;SET SPEED FRO SERIAL COMMUNICATION: A=0 2400 BPS, A=1 4800 BPS, A=2 9600 BPS, A=3 19200 BPS SETSPEED: and 3 ld hl,SERIALSPEEDDATA ld e,A sla a add a,e ld e,a ld d,0 ADD hl,de ld de,DELAY_START ld bc,3 ldir ret ;DEFAULT SETTING 9600 BPS DELAY_START: db 28 DELAY_BITS: db 18 DELAY_STOP: db 16 SERIALSPEEDDATA: ;2400 BPS (0) db 133,88,85 ;4800 BPS (1) db 63,41,38 ;9600 BPS (2) db 28,18,16 ;19200 BPS (3) db 11,6,4 PROGEND: ; end
17.895028
92
0.631985
b595a3d40fe96df950c2a55d15d0902fa39dabd0
2,968
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_138_2798.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_138_2798.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_138_2798.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 %r9 push %rax push %rbx push %rcx lea addresses_WT_ht+0x8ff6, %rax nop nop nop and $29416, %r9 movups (%rax), %xmm4 vpextrq $0, %xmm4, %r14 nop nop nop nop and %r14, %r14 lea addresses_UC_ht+0x104b6, %rax nop nop nop sub $10493, %rcx movw $0x6162, (%rax) nop nop nop and %r14, %r14 lea addresses_WT_ht+0xdf36, %rbx nop nop nop nop nop cmp %r10, %r10 movw $0x6162, (%rbx) nop nop nop nop add %rbx, %rbx pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %rax push %rbx push %rcx push %rdx push %rsi // Store lea addresses_D+0x2296, %rsi nop xor $19768, %rcx movl $0x51525354, (%rsi) nop nop nop nop nop sub %r14, %r14 // Load mov $0xbb6, %rax cmp $32796, %rbx vmovups (%rax), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop nop nop xor %r14, %r14 // Store lea addresses_PSE+0x49e2, %rbx nop nop xor %rax, %rax mov $0x5152535455565758, %rsi movq %rsi, (%rbx) nop nop nop and $46807, %rax // Store lea addresses_A+0x597a, %r12 nop nop nop inc %rbx movb $0x51, (%r12) add %r14, %r14 // Faulty Load mov $0x48f81c0000000fb6, %rbx sub $48355, %rax mov (%rbx), %si lea oracles, %rdx and $0xff, %rsi shlq $12, %rsi mov (%rdx,%rsi,1), %rsi pop %rsi pop %rdx pop %rcx pop %rbx pop %rax pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'00': 138} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
20.901408
413
0.641509
78cadd162fe1cdccefb7ec4d50d316fcfe9a5897
631
asm
Assembly
data/pokemon/base_stats/bellrun.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
2
2021-07-31T07:05:06.000Z
2021-10-16T03:32:26.000Z
data/pokemon/base_stats/bellrun.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
null
null
null
data/pokemon/base_stats/bellrun.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db 0 ; species ID placeholder db 70, 90, 40, 105, 70, 65 ; hp atk def spd sat sdf db DARK, DARK ; type db 90 ; catch rate db 148 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F100 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/bellrun/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_FAST ; growth rate dn EGG_GROUND, EGG_GROUND ; egg groups ; tm/hm learnset tmhm MUD_SLAP, HEADBUTT, ROAR, HIDDEN_POWER, HYPER_BEAM, PROTECT, ENDURE, RETURN, DOUBLE_TEAM, SWIFT, ATTRACT, REST, THIEF, SHADOW_BALL, CUT, STRENGTH, TOXIC, SWAGGER ; end
28.681818
167
0.700475
1624d608b775d500935172f8e541bf5f4dd5bc61
570
asm
Assembly
pre/mips/isleap.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
2
2022-03-06T06:05:24.000Z
2022-03-10T09:08:08.000Z
pre/mips/isleap.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
pre/mips/isleap.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
.data .macro mod(%re, %a, %b) #re = a % b li %re, %b div %a, %re mfhi %re .end_macro .text li $v0, 5 syscall move $t0, $v0 #input n -> $t0 li $t2, 1 #ans = 1 -> $t2 mod($t1, $t0, 400) #if (n % 400 != 0) beq $t1, $zero, if_1_end mod($t1, $t0, 4) #if (n % 4 != 0) beq $t1, $zero, if_2_end li $t2, 0 if_2_end: mod($t1, $t0, 100) #if (n % 100 == 0) bne $t1, $zero, if_3_end li $t2, 0 if_3_end: if_1_end: move $a0, $t2 #output ans li $v0, 1 syscall li $v0, 10 #done syscall
15.833333
43
0.468421
22bf1a2dd493572e882e809168b537bcd3d1acdf
1,176
asm
Assembly
com/netfx/src/clr/vbhelper/vbhelper.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
com/netfx/src/clr/vbhelper/vbhelper.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
com/netfx/src/clr/vbhelper/vbhelper.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
; ==++== ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; ==--== .namespace System .class VBHelper ###################################################################### #This method will take in a RefAny and return a Variant... .staticmethod value class System.Variant TypedByRefToVariant(refany) .localsSig(value class System.Variant) ldloca 0x0 ldarga 0x1 call void System.Variant::TypedByRefToVariant(value class System.Variant&, int32) ldloc 0x0 ret .endmethod ###################################################################### # old style version. Remove after 7/30/99 .staticmethod void TypedByRefToVariant(value class System.Variant&, refany) ldarg 0x0 ldarga 0x1 call void System.Variant::TypedByRefToVariant(value class System.Variant&, int32) ret .endmethod ###################################################################### .staticmethod void VariantToTypedByRef(refany, value class System.Variant) ldarga 0x0 ldarga 0x1 ldobj System.Variant call void System.Variant::VariantToTypedByRef(int32,value class System.Variant) ret .endmethod .end
26.727273
85
0.588435
c6a0d9dd1faae65a10d82a2e4c9c204e9043b152
7,050
asm
Assembly
src/x86/data.asm
basilgohar/rav1e
94bf5d8da7d1561a214a690c6de024f35c5b5f6f
[ "BSD-2-Clause" ]
null
null
null
src/x86/data.asm
basilgohar/rav1e
94bf5d8da7d1561a214a690c6de024f35c5b5f6f
[ "BSD-2-Clause" ]
null
null
null
src/x86/data.asm
basilgohar/rav1e
94bf5d8da7d1561a214a690c6de024f35c5b5f6f
[ "BSD-2-Clause" ]
null
null
null
; Copyright (c) 2018, The rav1e contributors. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aomedia.org/license/software. If the Alliance for Open ; Media Patent License 1.0 was not distributed with this source code in the ; PATENTS file, you can obtain it at www.aomedia.org/license/patent. ; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copyright notice, this ; list of conditions and the following disclaimer. ; ; 2. Redistributions in binary form must reproduce the above copyright notice, ; this list of conditions and the following disclaimer in the documentation ; and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ; ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. %include "config.asm" %include "ext/x86/x86inc.asm" SECTION_RODATA 8 const mc_subpel_filters, db 0, 1, -3, 63, 4, -1, 0, 0, ; REGULAR db 0, 1, -5, 61, 9, -2, 0, 0, db 0, 1, -6, 58, 14, -4, 1, 0, db 0, 1, -7, 55, 19, -5, 1, 0, db 0, 1, -7, 51, 24, -6, 1, 0, db 0, 1, -8, 47, 29, -6, 1, 0, db 0, 1, -7, 42, 33, -6, 1, 0, db 0, 1, -7, 38, 38, -7, 1, 0, db 0, 1, -6, 33, 42, -7, 1, 0, db 0, 1, -6, 29, 47, -8, 1, 0, db 0, 1, -6, 24, 51, -7, 1, 0, db 0, 1, -5, 19, 55, -7, 1, 0, db 0, 1, -4, 14, 58, -6, 1, 0, db 0, 0, -2, 9, 61, -5, 1, 0, db 0, 0, -1, 4, 63, -3, 1, 0, db 0, 1, 14, 31, 17, 1, 0, 0, ; SMOOTH db 0, 0, 13, 31, 18, 2, 0, 0, db 0, 0, 11, 31, 20, 2, 0, 0, db 0, 0, 10, 30, 21, 3, 0, 0, db 0, 0, 9, 29, 22, 4, 0, 0, db 0, 0, 8, 28, 23, 5, 0, 0, db 0, -1, 8, 27, 24, 6, 0, 0, db 0, -1, 7, 26, 26, 7, -1, 0, db 0, 0, 6, 24, 27, 8, -1, 0, db 0, 0, 5, 23, 28, 8, 0, 0, db 0, 0, 4, 22, 29, 9, 0, 0, db 0, 0, 3, 21, 30, 10, 0, 0, db 0, 0, 2, 20, 31, 11, 0, 0, db 0, 0, 2, 18, 31, 13, 0, 0, db 0, 0, 1, 17, 31, 14, 1, 0, db -1, 1, -3, 63, 4, -1, 1, 0, ; SHARP db -1, 3, -6, 62, 8, -3, 2, -1, db -1, 4, -9, 60, 13, -5, 3, -1, db -2, 5, -11, 58, 19, -7, 3, -1, db -2, 5, -11, 54, 24, -9, 4, -1, db -2, 5, -12, 50, 30, -10, 4, -1, db -2, 5, -12, 45, 35, -11, 5, -1, db -2, 6, -12, 40, 40, -12, 6, -2, db -1, 5, -11, 35, 45, -12, 5, -2, db -1, 4, -10, 30, 50, -12, 5, -2, db -1, 4, -9, 24, 54, -11, 5, -2, db -1, 3, -7, 19, 58, -11, 5, -2, db -1, 3, -5, 13, 60, -9, 4, -1, db -1, 2, -3, 8, 62, -6, 3, -1, db 0, 1, -1, 4, 63, -3, 1, -1, db 0, 0, -2, 63, 4, -1, 0, 0, ; REGULAR 4 db 0, 0, -4, 61, 9, -2, 0, 0, db 0, 0, -5, 58, 14, -3, 0, 0, db 0, 0, -6, 55, 19, -4, 0, 0, db 0, 0, -6, 51, 24, -5, 0, 0, db 0, 0, -7, 47, 29, -5, 0, 0, db 0, 0, -6, 42, 33, -5, 0, 0, db 0, 0, -6, 38, 38, -6, 0, 0, db 0, 0, -5, 33, 42, -6, 0, 0, db 0, 0, -5, 29, 47, -7, 0, 0, db 0, 0, -5, 24, 51, -6, 0, 0, db 0, 0, -4, 19, 55, -6, 0, 0, db 0, 0, -3, 14, 58, -5, 0, 0, db 0, 0, -2, 9, 61, -4, 0, 0, db 0, 0, -1, 4, 63, -2, 0, 0, db 0, 0, 15, 31, 17, 1, 0, 0, ; SMOOTH 4 db 0, 0, 13, 31, 18, 2, 0, 0, db 0, 0, 11, 31, 20, 2, 0, 0, db 0, 0, 10, 30, 21, 3, 0, 0, db 0, 0, 9, 29, 22, 4, 0, 0, db 0, 0, 8, 28, 23, 5, 0, 0, db 0, 0, 7, 27, 24, 6, 0, 0, db 0, 0, 6, 26, 26, 6, 0, 0, db 0, 0, 6, 24, 27, 7, 0, 0, db 0, 0, 5, 23, 28, 8, 0, 0, db 0, 0, 4, 22, 29, 9, 0, 0, db 0, 0, 3, 21, 30, 10, 0, 0, db 0, 0, 2, 20, 31, 11, 0, 0, db 0, 0, 2, 18, 31, 13, 0, 0, db 0, 0, 1, 17, 31, 15, 0, 0
61.304348
81
0.356454
1945edc247715db879fec0991d8f659df1811224
1,095
asm
Assembly
programs/oeis/287/A287468.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/287/A287468.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/287/A287468.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A287468: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 276", based on the 5-celled von Neumann neighborhood. ; 1,0,11,0,111,0,1111,0,11111,0,111111,0,1111111,0,11111111,0,111111111,0,1111111111,0,11111111111,0,111111111111,0,1111111111111,0,11111111111111,0,111111111111111,0,1111111111111111,0,11111111111111111,0,111111111111111111,0,1111111111111111111,0,11111111111111111111,0,111111111111111111111,0,1111111111111111111111,0,11111111111111111111111,0,111111111111111111111111,0,1111111111111111111111111,0,11111111111111111111111111,0,111111111111111111111111111,0,1111111111111111111111111111,0,11111111111111111111111111111,0,111111111111111111111111111111,0,1111111111111111111111111111111,0,11111111111111111111111111111111,0,111111111111111111111111111111111,0,1111111111111111111111111111111111,0,11111111111111111111111111111111111,0,111111111111111111111111111111111111,0 mov $1,1 lpb $0 sub $0,2 mul $1,10 add $1,1 lpe lpb $0 sub $0,1 mov $1,$0 lpe mov $0,$1
73
775
0.847489
33f5f1f5805ca87a81cf49ac6ad7c6ebd77826d9
2,725
asm
Assembly
rom/src/main.asm
Gegel85/GBCGoogleMaps
035a110fd565844b5c3c7188d6eba0933af31b9a
[ "MIT" ]
null
null
null
rom/src/main.asm
Gegel85/GBCGoogleMaps
035a110fd565844b5c3c7188d6eba0933af31b9a
[ "MIT" ]
13
2020-02-13T15:03:13.000Z
2020-02-13T15:27:08.000Z
rom/src/main.asm
Gegel85/GBCGoogleMaps
035a110fd565844b5c3c7188d6eba0933af31b9a
[ "MIT" ]
null
null
null
include "src/constants.asm" include "src/macro.asm" include "src/registers.asm" SECTION "Main", ROM0 include "src/protocol.asm" ; Locks the CPU ; Params: ; None ; Return: ; None ; Registers: ; N/A lockup:: reset interruptEnable halt ; Tests if the current hardware is SGB ; Params: ; None ; Return: ; a -> 0 if on DMG. 1 if on SGB. ; Flag Z -> 1 if on DMG. 0 if on SGB. ; Registers: ; af -> Not preserved ; bc -> Not preserved ; de -> Not preserved ; hl -> Not preserved testSGB:: ld a, MLT_REQ ld hl, MLT_REQ_PAR_EN call sendSGBCommand ld hl, joypad ld b, [hl] ld [hl], %11100000 ld [hl], %11010000 ld [hl], %11110000 ld a, [hl] xor b push af ld a, MLT_REQ ld hl, MLT_REQ_PAR_DS call sendSGBCommand pop af ret ; Main function main:: call init ; Init ld sp, $E000 ; Init stack cp a, CGB_A_INIT ; Check if on Gameboy Color jr z, GBC call testSGB ; Check if on SGB jr z, DMG jr SGB DMG: ; We are on monochrome Gameboy reg hardwareType, $03 ; Sets the hardware type register to DMG ei jr welcomeScreen ; Run main program GBC: ; We are on Gameboy Color call setupGBCPalette ; Setup palettes reg hardwareType, $01 ; Sets the hardware type register to GBC ei jr welcomeScreen ; Run main program SGB: ; We are on Super Gameboy call loadSGBBorder ; Load the SGB boarder and display it reg hardwareType, $02 ; Sets the hardware type register to SGB ei jr welcomeScreen ; Run main program monochromePal:: dw $7FFF, $4210, $2108, $0000 ; Runs the main program welcomeScreen:: reg zoomLevel, 1 call loadTextAsset ld de, BGPI ld a, $80 ld [de], a inc de ld hl, monochromePal ld bc, $10 call copyMemorySingleAddr ld de, BGPI ld a, $88 ld [de], a inc de ld hl, googleLogoLeftPal ld bc, $10 call copyMemorySingleAddr ld de, $8010 ld hl, googleLogoLeft ld bc, googleLogoRightEnd - googleLogoLeft call copyMemory xor a ld de, VRAMBgStart ld bc, $800 call fillMemory ld hl, generalInfos call displayText reg lcdCtrl, LCD_BASE_CONTROL_BYTE .loop: call waitVBLANK call getKeysFiltered ld b, a bit 4, a ; A jr nz, .aEnd jp search .aEnd: ld b, a bit 6, a ; Select jr nz, .selectEnd jp loadMap .selectEnd: ld a, b bit 5, a jr nz, .loop jp changeNetworkConfig include "src/changeNetwork.asm" include "src/search.asm" include "src/map.asm" include "src/init.asm" include "src/fatal_error.asm" include "src/utils.asm" include "src/sgb_utils.asm" include "src/interrupts.asm" include "src/strutils.asm" include "src/palettes.asm" include "src/sgb_border.asm"
18.412162
65
0.658716
21a2fc4a6416daa8ef4f151020c8cba8779b34ff
1,043
asm
Assembly
src/arch/x86/mach-i386/atomic.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
null
null
null
src/arch/x86/mach-i386/atomic.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
null
null
null
src/arch/x86/mach-i386/atomic.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
1
2021-02-05T01:03:29.000Z
2021-02-05T01:03:29.000Z
[section .text] [bits 32] ;lock 锁定的是内存地址,所以操作对象值必须时内存才行 ; void __atomic_add(int *a, int b); global __atomic_add __atomic_add: mov eax, [esp + 4] ; a mov ebx, [esp + 8] ; b ; 通过lock前缀,让运算时原子运算 lock add [eax], ebx ; *a += b ret ; void __atomic_sub(int *a, int b); global __atomic_sub __atomic_sub: mov eax, [esp + 4] ; a mov ebx, [esp + 8] ; b ; 通过lock前缀,让运算时原子运算 lock sub [eax], ebx ; *a -= b ret ; void __atomic_inc(int *a); global __atomic_inc __atomic_inc: mov eax, [esp + 4] ; a ; 通过lock前缀,让运算时原子运算 lock inc dword [eax] ; ++*a ret ; void __atomic_dec(int *a); global __atomic_dec __atomic_dec: mov eax, [esp + 4] ; a ; 通过lock前缀,让运算时原子运算 lock dec dword [eax] ; --*a ret ; void __atomic_or(int *a, int b); global __atomic_or __atomic_or: mov eax, [esp + 4] ; a mov ebx, [esp + 8] ; b ; 通过lock前缀,让运算时原子运算 lock or [eax], ebx ; *a |= b ret ; void __atomic_and(int *a, int b); global __atomic_and __atomic_and: mov eax, [esp + 4] ; a mov ebx, [esp + 8] ; b ; 通过lock前缀,让运算时原子运算 lock and [eax], ebx ; *a &= b ret
18.625
35
0.643337
9c55e5fcd0b4d517676f046cbc47f2ccadd9c55e
2,301
asm
Assembly
test/test.asm
ifTNT/MODE13H
8f0862fabb9bfad88421099c790ab6ce3eb14e0f
[ "MIT" ]
null
null
null
test/test.asm
ifTNT/MODE13H
8f0862fabb9bfad88421099c790ab6ce3eb14e0f
[ "MIT" ]
null
null
null
test/test.asm
ifTNT/MODE13H
8f0862fabb9bfad88421099c790ab6ce3eb14e0f
[ "MIT" ]
null
null
null
bits 16 %define doubleBuffering 1 segment code jmp START ;Import library %include "mode13h.asm" START: ;Set stack mov ax, stack mov ss, ax mov sp, stack_top enterVideoMode setDirectMode clearScreen ;Draw nyancat setPos di, 0, 0 ;X,Y mov ax, banner mov ds, ax ;Segment of bitmap mov si, nyan ;Head offset of bitmap call printBitmap ;Wait for user input mov ah, 00h int 16h %macro colorTest 1 mov al, %1 call fillColor ;Wait for user input mov ah, 00h int 16h %endmacro colorTest 40 ;Red colorTest 47 ;Green colorTest 32 ;Blue ;---------------------------- %if(doubleBuffering) setDoubleBufMode clearScreen mov ax, 0 mov es, ax %endif call fillRainbow setPos di, 144, (100-16) ;X,Y call printColorBlock ;Draw bitmap setPos di, 200, (100-10) ;X,Y mov ax, images mov ds, ax ;Segment of bitmap mov si, bug ;Head offset of bitmap call printBitmap %if(doubleBuffering) call flushBuffer %endif ;Wait for user input mov ah, 00h int 16h ;---------------------------- %define speed 1 mov cx, 300/speed; mov bx, 0; MOVE_CHAR: clearScreen ;Draw bitmap setPos di, bx, (100-10) ;X,Y mov ax, images mov ds, ax ;Segment of bitmap mov si, bug ;Head offset of bitmap call printBitmap %if(doubleBuffering) call flushBuffer %endif add bx, speed loop MOVE_CHAR ;---------------------------- mov cx, 400; mov ax, bug; mov bx, bug2; ANIMATION: clearScreen push ax ;Draw bitmap setPos di, 150, (100-10) ;X,Y mov ax, images mov ds, ax ;Segment of bitmap pop ax mov si, ax ;Head offset of bitmap call printBitmap %if(doubleBuffering) call flushBuffer %endif xchg ax,bx loop ANIMATION enterTextMode ;Return to DOS mov ah, 4ch int 21h segment images align=16 bug: dw 20, 20 ;width, height incbin "media/bug_image.bin" bug2: dw 20, 20 ;width, height incbin "media/bug2_image.bin" segment banner align=16 nyan: dw 320, 200 ;width, height incbin "media/nyan.bin" segment stack stack align=16 resb 256 stack_top:
16.553957
39
0.591482
ba47408e76e5a146870fecdd486a20e101c1fd82
110
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/dcallee2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC dcallee2 EXTERN cm48_sdcciyp_dcallee2 defc dcallee2 = cm48_sdcciyp_dcallee2
12.222222
37
0.863636
b8ec8dda2123373682eda7b6b438b5cfbcbc1518
272
asm
Assembly
dosstub/dosstub.asm
orlandol/origow32
ff7843268c2f95d3e9ed475d1781e42ebe5e5f04
[ "MIT" ]
1
2019-02-25T00:37:38.000Z
2019-02-25T00:37:38.000Z
dosstub/dosstub.asm
orlandol/origow32
ff7843268c2f95d3e9ed475d1781e42ebe5e5f04
[ "MIT" ]
null
null
null
dosstub/dosstub.asm
orlandol/origow32
ff7843268c2f95d3e9ed475d1781e42ebe5e5f04
[ "MIT" ]
null
null
null
CPU 8086 BITS 16 segment code use16 ..start: mov ax, data mov ds, ax mov dx, errorString mov ah, 0x09 int 0x21 mov ax, 0x4C00 int 0x21 segment data use16 errorString: db 'This program requires Windows to run.',13,10,'$'
15.111111
67
0.602941
c55e209870e01773f146ac87ffd469359c968c50
288
asm
Assembly
programs/oeis/049/A049647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/049/A049647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/049/A049647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A049647: T(n,n+2), array T given by A049639. ; 1,1,4,4,7,7,11,11,17,17,23,23,31,31,41,41,51,51,61,61,75,75,89,89,105,105,123,123,137,137,153,153,177,177,199,199,223,223,249,249 div $0,2 cal $0,49648 ; T(n,n+1), array T as in A049687 and T(2n,2n+2), array T given by A049639. mov $1,$0
41.142857
131
0.659722
1cc09a89c32a1b342a605d2efa2bfb198738cb07
1,784
asm
Assembly
programs/oeis/123/A123720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/123/A123720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/123/A123720.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A123720: a(n) = 2^n + 2^(n-1) - n. ; 2,4,9,20,43,90,185,376,759,1526,3061,6132,12275,24562,49137,98288,196591,393198,786413,1572844,3145707,6291434,12582889,25165800,50331623,100663270,201326565,402653156,805306339,1610612706,3221225441,6442450912,12884901855,25769803742,51539607517,103079215068,206158430171,412316860378,824633720793,1649267441624,3298534883287,6597069766614,13194139533269,26388279066580,52776558133203,105553116266450,211106232532945,422212465065936,844424930131919,1688849860263886,3377699720527821,6755399441055692,13510798882111435,27021597764222922,54043195528445897,108086391056891848,216172782113783751,432345564227567558,864691128455135173,1729382256910270404,3458764513820540867,6917529027641081794,13835058055282163649,27670116110564327360,55340232221128654783,110680464442257309630,221360928884514619325,442721857769029238716,885443715538058477499,1770887431076116955066,3541774862152233910201,7083549724304467820472,14167099448608935641015,28334198897217871282102,56668397794435742564277,113336795588871485128628,226673591177742970257331,453347182355485940514738,906694364710971881029553,1813388729421943762059184,3626777458843887524118447,7253554917687775048236974,14507109835375550096474029,29014219670751100192948140,58028439341502200385896363,116056878683004400771792810,232113757366008801543585705,464227514732017603087171496,928455029464035206174343079,1856910058928070412348686246,3713820117856140824697372581,7427640235712281649394745252,14855280471424563298789490595,29710560942849126597578981282,59421121885698253195157962657,118842243771396506390315925408,237684487542793012780631850911,475368975085586025561263701918,950737950171172051122527403933,1901475900342344102245054807964 mov $1,2 pow $1,$0 mul $1,3 sub $1,$0 sub $1,1 mov $0,$1
178.4
1,688
0.914798
fc989583e4ffe61da8596a05da3e72b256fb71f0
422
asm
Assembly
kernel/threading/process.asm
ProgMiner/memOS
ea441ccb23ed0e6bafa1d9a6a50519f206693198
[ "MIT" ]
6
2021-04-30T11:11:07.000Z
2022-01-24T12:20:05.000Z
kernel/threading/process.asm
ProgMiner/memOS
ea441ccb23ed0e6bafa1d9a6a50519f206693198
[ "MIT" ]
3
2021-06-21T22:01:00.000Z
2021-07-26T17:54:06.000Z
kernel/threading/process.asm
ProgMiner/memOS
ea441ccb23ed0e6bafa1d9a6a50519f206693198
[ "MIT" ]
2
2021-07-26T16:34:40.000Z
2021-07-26T17:20:50.000Z
[GLOBAL copy_page_physical] copy_page_physical: push ebx pushf cli mov ebx, [esp+12] mov ecx, [esp+16] mov edx, cr0 and edx, 0x7fffffff mov cr0, edx mov edx, 1024 .loop: mov eax, [ebx] mov [ecx], eax add ebx, 4 add ecx, 4 dec edx jnz .loop mov edx, cr0 or edx, 0x80000000 mov cr0, edx popf pop ebx ret [GLOBAL read_eip] read_eip: pop eax jmp eax
11.405405
27
0.597156
912a4c033b9d97261873e50bd6e0c3d2e2919b66
5,493
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_176_983.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_176_983.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_176_983.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 %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x933a, %rcx clflush (%rcx) nop nop nop and $29110, %r12 mov (%rcx), %rbx nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x1a106, %rsi lea addresses_WT_ht+0x18406, %rdi clflush (%rsi) clflush (%rdi) nop nop and $65506, %rdx mov $9, %rcx rep movsw nop nop add $37107, %r12 lea addresses_UC_ht+0x14a06, %rdi nop nop nop nop dec %rbp movw $0x6162, (%rdi) nop mfence lea addresses_D_ht+0xad06, %rsi lea addresses_D_ht+0x19306, %rdi nop nop nop nop add $6090, %r10 mov $122, %rcx rep movsq nop nop xor %rdx, %rdx lea addresses_D_ht+0x17af2, %rcx nop nop xor %rbx, %rbx mov (%rcx), %r10d nop nop cmp $46364, %r12 lea addresses_normal_ht+0x3b06, %r10 nop nop and %rsi, %rsi mov (%r10), %ebx nop nop and $33925, %rsi lea addresses_WC_ht+0x11506, %r12 nop xor %rdi, %rdi vmovups (%r12), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r10 nop nop nop nop nop sub $14651, %r10 lea addresses_WT_ht+0x19f26, %rbp clflush (%rbp) nop nop nop nop nop sub %r10, %r10 mov (%rbp), %r12d nop nop xor $37843, %r10 lea addresses_D_ht+0x135ea, %rsi lea addresses_WT_ht+0x3c06, %rdi nop nop nop nop cmp $18867, %rbp mov $42, %rcx rep movsw nop nop nop nop nop sub $35387, %rsi lea addresses_normal_ht+0x1a8fa, %rbp clflush (%rbp) nop add %rbx, %rbx mov (%rbp), %dx nop nop nop nop cmp $38648, %r10 lea addresses_WT_ht+0x2cae, %rbx nop nop nop add %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, (%rbx) nop nop and $3590, %rsi lea addresses_A_ht+0xd806, %r12 nop and %rdi, %rdi movups (%r12), %xmm5 vpextrq $1, %xmm5, %rdx nop nop nop nop and $5272, %rdi lea addresses_normal_ht+0x14206, %r12 nop nop nop sub $15237, %rbx mov (%r12), %di nop nop nop nop xor %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r8 push %rax push %rbp push %rdx // Load lea addresses_D+0x2806, %r12 nop nop nop nop nop add $23625, %r8 mov (%r12), %ebp nop nop nop xor $27467, %r15 // Load lea addresses_US+0xb006, %rax nop nop nop add %rbp, %rbp mov (%rax), %r13w nop nop nop and $10810, %r12 // Store lea addresses_WC+0x180ae, %r8 nop nop nop sub $36919, %rdx movw $0x5152, (%r8) nop nop nop nop nop and %rax, %rax // Faulty Load lea addresses_US+0xb006, %rdx nop nop nop nop cmp %rbp, %rbp mov (%rdx), %r12w lea oracles, %r15 and $0xff, %r12 shlq $12, %r12 mov (%r15,%r12,1), %r12 pop %rdx pop %rbp pop %rax pop %r8 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 2, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 176} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
21.373541
527
0.647005
1975c277e0747703ae34f227134548181567c383
458
asm
Assembly
programs/oeis/047/A047251.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047251.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047251.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047251: Numbers that are congruent to {1, 3, 4, 5} mod 6. ; 1,3,4,5,7,9,10,11,13,15,16,17,19,21,22,23,25,27,28,29,31,33,34,35,37,39,40,41,43,45,46,47,49,51,52,53,55,57,58,59,61,63,64,65,67,69,70,71,73,75,76,77,79,81,82,83,85,87,88,89,91,93,94,95,97,99,100,101,103,105,106,107,109,111,112,113,115,117,118,119,121,123,124,125,127,129,130,131,133,135,136,137,139,141,142,143,145,147,148,149 mov $1,$0 mul $0,6 add $1,14 mod $1,4 add $0,$1 div $0,4 add $0,1
41.636364
329
0.663755
395767c99781de2ce92f3621682dd3265b7443bb
440
asm
Assembly
examples/fib.asm
firemark/katp91
83e538683dd3c79bde018083b30bed2b854613c5
[ "MIT" ]
3
2016-01-30T19:00:27.000Z
2018-03-05T20:46:43.000Z
examples/fib.asm
firemark/katp91
83e538683dd3c79bde018083b30bed2b854613c5
[ "MIT" ]
null
null
null
examples/fib.asm
firemark/katp91
83e538683dd3c79bde018083b30bed2b854613c5
[ "MIT" ]
null
null
null
main: MOV R0 10; n value CALL fib; result will be in R1 JMP lol fib: PUSH R0; save n PUSH R2; save temp value CMP R0 2 BRNC fib_continue; if R0 >= 2 MOV R1 R0; result RJMP fib_finish fib_continue: SUB R0 1 CALL fib; R1 = F(R0-1) MOV R2 R1 SUB R0 1 CALL fib; R1 = F(R0-2) ADD R1 R2; F(R0-1) + F(R0-2) fib_finish: POP R2; restore temp POP R0; restore n RET lol: HLT
17.6
34
0.575
41c9cbb07a9e13d70399396c34f2436c36c20a73
11,469
asm
Assembly
dimension/cell/memory/meitnerium/meitnerium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
7
2019-03-04T08:53:33.000Z
2022-01-28T19:32:12.000Z
dimension/cell/memory/meitnerium/meitnerium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
dimension/cell/memory/meitnerium/meitnerium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
;; $Header: /cvsroot/uuu/dimension/cell/memory/meitnerium/meitnerium.asm,v 1.2 2002/08/11 07:41:25 lukas2000 Exp $ ;; ;; Meitnerium memory manager cell ;; Copyright (c) 2001 Phil Frost ;; Distributed under the BSD license, see file 'license' for details. ;; ;; when to use this cell: ;; ---------------------- ;; Use this cell when you want to allocate lotts of fairly small, fixed size ;; memory chunks. This has 2 advantages; it doesn't fragment memory, it's MUCH ;; faster, and less memory is wasted for overhead. Dealloc is somewhat ;; not-hyper-fast (but it's probally just as deallocing with oxygen); this was ;; a tradeoff for less memory overhead. ;; ;; short description of how this works: ;; ------------------------------------ ;; linked list'o'rama! Memory is requested from oxygen in "chunks" which ;; contain any power of 2 blocks of a user-specified size. The first chunk ;; allocated has a 12 byte header "root_chunk", and a normal chunk procedes ;; right after that. ;; ;; The chunks are linked together in 2 ways. There is a linked list of all the ;; chunks just so we can dealloc them, and there is a linked list of the chunks ;; with free blocks so we can alloc quickly. The root chunk is oviously the ;; first chunk in the first list, but the first chunk in the chunks with free ;; blocks list is stored in root_chunk.first_free. ;; ;; Inside each chunk is a counter of the availible blocks. This is used to ;; determine when the chunk is full, and when it was full and one block was ;; dealloced (in this case it needs to be added to the free chunks list) ;; ;; In each chunk is also a linked list of the free blocks. The first free block ;; is in chunk.next_free_block. If the free blocks count is zero this value is ;; ignored. Then, inside each free block is a pointer to the next free block; ;; once again the last one need not have a null because the free block count is ;; used. ; ----------------------------------- ; defines ;============================================================================== ;%define _DEBUG_ ; ----------------------------------- ; strucs ;============================================================================== struc root_chunk .block_size: resd 1 ; size of the fixed size blocks .block_count: resd 1 ; number of blocks / chunk as power of 2 .first_free: resd 1 ; ptr to first chunk in the free chunk chain endstruc struc chunk .next: resd 1 ; ptr to next chunk in the chain; 0 for none .next_free: resd 1 ; ptr to next chunk in the free chunk chain .next_free_block: resd 1 ; ptr to next free block in this chunk .free_blocks: resd 1 ; number of free blocks in this chunk endstruc ; ----------------------------------- ; section .c_init ;============================================================================== section .c_init global _start _start: ; We do nothing here ; added by Luke retn ; ----------------------------------- ; section .text ;============================================================================== section .text ; ----------------------------------- ; mem.fixed.alloc_space ;============================================================================== globalfunc mem.fixed.alloc_space ;> ;; This function initializes space for a group of fixed size blocks. It must be ;; called once before allocating fixed size blocks. ECX, the number of blocks ;; to reserve at a time, determines how many of the smaller fixed size blocks ;; are in each larger block. So, if ECX = 32 and ECX = 4, memory will be ;; allocated in 32*2^4 byte blocks (plus any overhead). Smaller values mean less ;; wasted memory due to reserved, but not used memory; larger values mean less ;; wasted memory due to the overhead of Meitnerium and Oxygen. ;; ;; This function needs to be called only once to set up the space; it will be ;; expanded as needed by Meitnerium. ;; ;; parameters: ;; ----------- ;; EDX = size of blocks to be allocated, must be at least 4 bytes ;; ECX = number of blocks to reserve at a time as a power of two, so a value of ;; 4 would allocate room for 16 blocks at a time (must be != 0) ;; ;; returned values: ;; ---------------- ;; EDI = pointer to root block; use this in calls to other Meitnerium functions ;; errors as usual ;; registers saved as usual ;< pushad shl edx, cl lea ecx, [edx + root_chunk_size + chunk_size] dbg_print "allocating 0x",1 dbg_print_hex ecx dbg_print " bytes of RAM for root chunk",0 externfunc mem.alloc mov edx, [esp+20] mov ecx, [esp+24] jc .end xor eax, eax mov [edi+root_chunk.block_size], edx lea esi, [edi+root_chunk_size] mov [edi+root_chunk.block_count], ecx mov [edi+root_chunk.first_free], esi mov [edi+root_chunk_size+chunk.next], eax mov [edi+root_chunk_size+chunk.next_free], eax add esi, byte chunk_size mov [edi+root_chunk_size+chunk.next_free_block], esi inc eax shl eax, cl mov [edi+root_chunk_size+chunk.free_blocks], eax lea ebp, [esi+edx] .loop: mov [esi], ebp add esi, edx add ebp, edx dec eax jnz .loop .end: dbg_print "allocated root chunk at 0x",1 dbg_print_hex edi dbg_term_log mov esi, [esp+4] mov ebp, [esp+8] mov ebx, [esp+16] add esp, byte 32 retn ; ----------------------------------- ; mem.fixed.alloc ;============================================================================== globalfunc mem.fixed.alloc ;> ;; Allocates a fixed size memory block from a previously allocated ;; fixed_size_block_space ;; ;; parameters: ;; ----------- ;; EDI = pointer to fixed size block space ;; ;; returned values: ;; ---------------- ;; EDI = pointer to allocated block ;; errors as usual ;; registers saved as usual ;< push ebp push esi mov esi, edi mov ebp, [esi+root_chunk.first_free] ; EBP= ptr to first chunk w/ free blocks test ebp, ebp ; unless it's 0, then there is none jz .make_new_chunk mov edi, [ebp+chunk.next_free_block] mov eax, [edi] mov [ebp+chunk.next_free_block], eax dec dword[ebp+chunk.free_blocks] jz .filled_chunk clc pop esi pop ebp retn .filled_chunk: mov eax, [ebp+chunk.next_free] mov [esi+root_chunk.first_free], eax dbg_print "allocated block at 0x",1 dbg_print_hex edi dbg_term_log clc pop esi pop ebp retn .make_new_chunk: ; we have run out of free chunks, so make a new one dbg_print "making a new chunk",0 pushad mov edx, [esi+root_chunk.block_size] mov ecx, [esi+root_chunk.block_count] push edx shl edx, cl push ecx lea ecx, [edx + chunk_size] externfunc mem.alloc pop ecx pop edx jc .end mov [esi+root_chunk.first_free], edi mov eax, [esi+root_chunk_size+chunk.next] mov [edi+chunk.next], eax mov [esi+root_chunk_size+chunk.next], edi xor eax, eax mov [edi+chunk.next_free], eax inc eax shl eax, cl ; EAX = number of blocks dec eax ; we have already allocated one mov [edi+chunk.free_blocks], eax lea esi, [edi+chunk_size+edx] ; ESI = ptr to 2nd block lea ebp, [esi+edx] mov [edi+chunk.next_free_block], esi .loop: mov [esi], ebp add esi, edx add ebp, edx dec eax jnz .loop add edi, byte chunk_size ; move pointer past the header .end: mov [esp], edi popad pop esi pop ebp clc retn ; ----------------------------------- ; mem.fixed.dealloc_space ;============================================================================== globalfunc mem.fixed.dealloc_space ;> ;; deallocates a previously allocated fixed block space and all of the blocks ;; in it. ;; ;; parameters: ;; ----------- ;; ESI = pointer to fixed size block space ;; ;; returned values: ;; ---------------- ;; errors as usual ;; registers ARE destroyed ;< mov ebp, [esi+root_chunk_size+chunk.next] mov eax, esi dbg_print "deallocing chunk at 0x",1 dbg_print_hex eax dbg_term_log externfunc mem.dealloc jc .end test ebp, ebp jz .done .loop: mov eax, ebp mov ebp, [ebp+chunk.next] dbg_print "deallocing chunk at 0x",1 dbg_print_hex eax dbg_term_log externfunc mem.dealloc jc .end test ebp, ebp jnz .loop .done: clc .end: retn ; ----------------------------------- ; mem.fixed.dealloc ;============================================================================== globalfunc mem.fixed.dealloc ;> ;; deallocates one fixed size block ;; ;; parameters: ;; ----------- ;; EAX = pointer to fixed size block space ;; EDI = pointer to fixed size block to deallocate ;; ;; returned values: ;; ---------------- ;; errors as usual ;; registers saved as usual ;< pushad mov edx, eax mov eax, [edi+root_chunk.block_size] mov ecx, [edi+root_chunk.block_count] shl eax, cl add eax, byte chunk_size ; EAX = total chunk size lea ebp, [edi+root_chunk_size]; EBP = ptr to chunk to test jmp short .loop_enter .loop: mov ebp, [ebp+chunk.next] ; load ptr to next chunk test ebp, ebp ; if we hit a zero pointer we are hosed jz .could_not_find_chunk .loop_enter: push edx sub edx, ebp ; sub the base address of the chunk from edx cmp edx, eax ; see if edx falls within the chunk pop edx jnbe .loop ;; EDX = ptr to block to dealloc ;; EBP = ptr to chunk block is in ;; EDI = ptr to root chunk ;; ECX = number of blocks as power of 2 mov eax, [ebp+chunk.next_free_block] ; mov [edx], eax ; put old next in [edx] mov [ebp+chunk.next_free_block], edx ; and edx in the new one mov edx, [ebp+chunk.free_blocks] test edx, edx jnz .was_not_full ; if the chunk was previously full, add it to the free chunk chain mov eax, [edi+root_chunk.first_free] mov [edi+root_chunk.first_free], ebp mov [ebp+chunk.next_free], eax .was_not_full: inc edx ; just dealloced one, one less free xor eax, eax inc eax shl eax, cl cmp edx, eax jae .dealloc_whole_block mov [ebp+chunk.free_blocks], edx popad clc retn .could_not_find_chunk: mov eax, __ERROR_INVALID_PARAMETERS__ popad stc retn .dealloc_whole_block: ; XXX should make some intelegent decision on how to dealloc here, but for ; now just leave it in; future block allocs will still use this chunk. popad clc retn ; ----------------------------------- ; cell info ;============================================================================== section .c_info db 0, 1, 0, 'a' dd str_cellname dd str_author dd str_copyrights str_cellname: dd "Meitnerium - fixed size memory block manager" str_author: dd 'Phil Frost <daboy@xgs.dhs.org>' str_copyrights: dd 'Copyright 2001 by Phil Frost; distributed under the BSD license'
29.48329
114
0.573982
5e039c7034bce8cc3e680e8b204a3d4b49a779ac
480
asm
Assembly
programs/oeis/103/A103447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/103/A103447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/103/A103447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A103447: Triangle read by rows: T(n,k) = Moebius(binomial(n,k)) (0 <= k <= n). ; 1,1,1,1,-1,1,1,-1,-1,1,1,0,1,0,1,1,-1,1,1,-1,1,1,1,1,0,1,1,1,1,-1,1,1,1,1,-1,1,1,0,0,0,-1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,1,0,1,0,0,1,1,1,-1,1,-1,1,1,1,1,-1,1,-1,1,1,0,-1,0,0,0,0,0,0,0,-1,0,1,1,-1,-1,-1,-1,0,0,0,0 seq $0,14473 ; Pascal's triangle - 1. seq $0,8683 ; Möbius (or Moebius) function mu(n). mu(1) = 1; mu(n) = (-1)^k if n is the product of k different primes; otherwise mu(n) = 0.
80
219
0.545833
ba1acf12a5f8c146b4631e623a136e5ef529218f
8,924
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_573.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_573.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_573.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x39f0, %rsi lea addresses_D_ht+0x141f0, %rdi nop nop nop sub %rdx, %rdx mov $26, %rcx rep movsq nop sub %rdx, %rdx lea addresses_A_ht+0x20f0, %rsi lea addresses_WC_ht+0xf450, %rdi nop nop nop nop sub %r15, %r15 mov $37, %rcx rep movsq and $39248, %rsi lea addresses_WT_ht+0x1c770, %rbx nop nop nop nop add $27557, %r12 vmovups (%rbx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rsi nop nop nop nop nop sub $50243, %r15 lea addresses_UC_ht+0x1b190, %rcx nop nop nop dec %rsi movb $0x61, (%rcx) nop nop nop nop nop cmp $4872, %rdx lea addresses_D_ht+0xef70, %rsi lea addresses_D_ht+0x125f0, %rdi clflush (%rsi) nop add $5497, %r12 mov $14, %rcx rep movsb nop nop nop nop nop and %rdi, %rdi lea addresses_WC_ht+0x3bf0, %rbx nop nop and %r15, %r15 movl $0x61626364, (%rbx) nop nop nop nop cmp $35590, %rsi lea addresses_UC_ht+0x1651c, %rsi lea addresses_normal_ht+0x98f0, %rdi nop sub $36448, %rdx mov $105, %rcx rep movsb nop nop cmp $61936, %rcx lea addresses_WC_ht+0x1e7f0, %r15 nop nop nop nop and %rsi, %rsi mov $0x6162636465666768, %rdx movq %rdx, %xmm4 and $0xffffffffffffffc0, %r15 movntdq %xmm4, (%r15) nop nop nop nop nop add %r15, %r15 lea addresses_WT_ht+0x59a0, %rdi nop nop nop xor %rbx, %rbx movups (%rdi), %xmm3 vpextrq $0, %xmm3, %rcx nop nop nop nop nop cmp $19615, %rsi lea addresses_WT_ht+0x15d10, %rsi lea addresses_WT_ht+0x21f0, %rdi nop nop nop and %rdx, %rdx mov $127, %rcx rep movsq add $57842, %rbx lea addresses_WC_ht+0x6ff0, %rbx nop nop nop nop and %rsi, %rsi mov (%rbx), %r15d nop nop nop nop sub $19102, %rdi lea addresses_A_ht+0x25a0, %rsi nop xor $28905, %r12 movups (%rsi), %xmm7 vpextrq $0, %xmm7, %rdi add %rsi, %rsi lea addresses_D_ht+0xf94a, %rbx nop nop nop nop nop cmp %rdx, %rdx movl $0x61626364, (%rbx) nop nop nop nop nop add %r15, %r15 lea addresses_WT_ht+0xb5f0, %rdx mfence vmovups (%rdx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r15 nop xor $32243, %r15 lea addresses_A_ht+0x190f0, %rcx nop nop sub $14609, %rdx vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rsi nop nop nop nop nop sub %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r8 push %r9 push %rdx push %rsi // Store lea addresses_D+0xd370, %r10 nop inc %r13 mov $0x5152535455565758, %rdx movq %rdx, %xmm5 movups %xmm5, (%r10) nop sub %r8, %r8 // Store mov $0x830, %r10 add %r9, %r9 movl $0x51525354, (%r10) nop nop add $5714, %r10 // Store lea addresses_WT+0xe550, %r13 cmp $5756, %r8 movl $0x51525354, (%r13) nop nop nop nop nop cmp $18142, %r13 // Store lea addresses_D+0x167f0, %rsi nop and $6617, %r13 movw $0x5152, (%rsi) nop nop nop cmp %r13, %r13 // Faulty Load lea addresses_PSE+0x151f0, %r9 nop nop nop and %r12, %r12 movups (%r9), %xmm2 vpextrq $0, %xmm2, %r13 lea oracles, %r12 and $0xff, %r13 shlq $12, %r13 mov (%r12,%r13,1), %r13 pop %rsi pop %rdx pop %r9 pop %r8 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
31.094077
2,999
0.654079
dd817a557a7bfc25e052b2eb3a02b2abdfd0bf3e
214
asm
Assembly
libsrc/math/mbf32/z80/divsup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/math/mbf32/z80/divsup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/math/mbf32/z80/divsup.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION data_fp_mbfs PUBLIC DIVSUP PUBLIC DIV1 PUBLIC DIV2 PUBLIC DIV3 PUBLIC DIV4 DIVSUP: defb $d6 DIV1: defb $00, $6f, $7c, $de DIV2: defb $00, $67, $78, $de DIV3: defb $00, $47, $3e DIV4: defb $00, $c9
14.266667
29
0.658879
0d9cef9459b07894aabed0844d33b26771e24715
58,485
asm
Assembly
jsrc/openssl/sha/asm/sha256-586-masm.asm
jsoftware/j-playground
fec7be5a9dc92d45c7326556b6058e63fb4f979a
[ "MIT" ]
4
2022-01-19T04:23:49.000Z
2022-03-28T18:55:38.000Z
jsrc/openssl/sha/asm/sha256-586-masm.asm
jsoftware/j-playground
fec7be5a9dc92d45c7326556b6058e63fb4f979a
[ "MIT" ]
15
2022-02-28T13:09:29.000Z
2022-03-11T01:15:39.000Z
jsrc/openssl/sha/asm/sha256-586-masm.asm
jsoftware/j-playground
fec7be5a9dc92d45c7326556b6058e63fb4f979a
[ "MIT" ]
2
2022-01-29T13:26:27.000Z
2022-02-23T02:43:31.000Z
IF @Version LT 800 ECHO MASM version 8.00 or later is strongly recommended. ENDIF .686 .MODEL FLAT OPTION DOTNAME IF @Version LT 800 .text$ SEGMENT PAGE 'CODE' ELSE .text$ SEGMENT ALIGN(64) 'CODE' ENDIF ;EXTERN _OPENSSL_ia32cap_P:NEAR ALIGN 16 _sha256_block_data_order PROC PUBLIC $L_sha256_block_data_order_begin:: push ebp push ebx push esi push edi mov esi,DWORD PTR 20[esp] mov edi,DWORD PTR 24[esp] mov eax,DWORD PTR 28[esp] mov ebx,esp call $L000pic_point $L000pic_point: pop ebp lea ebp,DWORD PTR ($L001K256-$L000pic_point)[ebp] sub esp,16 and esp,-64 shl eax,6 add eax,edi mov DWORD PTR [esp],esi mov DWORD PTR 4[esp],edi mov DWORD PTR 8[esp],eax mov DWORD PTR 12[esp],ebx jmp $L002loop ALIGN 16 $L002loop: mov eax,DWORD PTR [edi] mov ebx,DWORD PTR 4[edi] mov ecx,DWORD PTR 8[edi] bswap eax mov edx,DWORD PTR 12[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 16[edi] mov ebx,DWORD PTR 20[edi] mov ecx,DWORD PTR 24[edi] bswap eax mov edx,DWORD PTR 28[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 32[edi] mov ebx,DWORD PTR 36[edi] mov ecx,DWORD PTR 40[edi] bswap eax mov edx,DWORD PTR 44[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 48[edi] mov ebx,DWORD PTR 52[edi] mov ecx,DWORD PTR 56[edi] bswap eax mov edx,DWORD PTR 60[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx add edi,64 lea esp,DWORD PTR [esp-36] mov DWORD PTR 104[esp],edi mov eax,DWORD PTR [esi] mov ebx,DWORD PTR 4[esi] mov ecx,DWORD PTR 8[esi] mov edi,DWORD PTR 12[esi] mov DWORD PTR 8[esp],ebx xor ebx,ecx mov DWORD PTR 12[esp],ecx mov DWORD PTR 16[esp],edi mov DWORD PTR [esp],ebx mov edx,DWORD PTR 16[esi] mov ebx,DWORD PTR 20[esi] mov ecx,DWORD PTR 24[esi] mov edi,DWORD PTR 28[esi] mov DWORD PTR 24[esp],ebx mov DWORD PTR 28[esp],ecx mov DWORD PTR 32[esp],edi ALIGN 16 $L00300_15: mov ecx,edx mov esi,DWORD PTR 24[esp] ror ecx,14 mov edi,DWORD PTR 28[esp] xor ecx,edx xor esi,edi mov ebx,DWORD PTR 96[esp] ror ecx,5 and esi,edx mov DWORD PTR 20[esp],edx xor edx,ecx add ebx,DWORD PTR 32[esp] xor esi,edi ror edx,6 mov ecx,eax add ebx,esi ror ecx,9 add ebx,edx mov edi,DWORD PTR 8[esp] xor ecx,eax mov DWORD PTR 4[esp],eax lea esp,DWORD PTR [esp-4] ror ecx,11 mov esi,DWORD PTR [ebp] xor ecx,eax mov edx,DWORD PTR 20[esp] xor eax,edi ror ecx,2 add ebx,esi mov DWORD PTR [esp],eax add edx,ebx and eax,DWORD PTR 4[esp] add ebx,ecx xor eax,edi add ebp,4 add eax,ebx cmp esi,3248222580 jne $L00300_15 mov ecx,DWORD PTR 156[esp] jmp $L00416_63 ALIGN 16 $L00416_63: mov ebx,ecx mov esi,DWORD PTR 104[esp] ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 160[esp] shr edi,10 add ebx,DWORD PTR 124[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 24[esp] ror ecx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor ecx,edx xor esi,edi mov DWORD PTR 96[esp],ebx ror ecx,5 and esi,edx mov DWORD PTR 20[esp],edx xor edx,ecx add ebx,DWORD PTR 32[esp] xor esi,edi ror edx,6 mov ecx,eax add ebx,esi ror ecx,9 add ebx,edx mov edi,DWORD PTR 8[esp] xor ecx,eax mov DWORD PTR 4[esp],eax lea esp,DWORD PTR [esp-4] ror ecx,11 mov esi,DWORD PTR [ebp] xor ecx,eax mov edx,DWORD PTR 20[esp] xor eax,edi ror ecx,2 add ebx,esi mov DWORD PTR [esp],eax add edx,ebx and eax,DWORD PTR 4[esp] add ebx,ecx xor eax,edi mov ecx,DWORD PTR 156[esp] add ebp,4 add eax,ebx cmp esi,3329325298 jne $L00416_63 mov esi,DWORD PTR 356[esp] mov ebx,DWORD PTR 8[esp] mov ecx,DWORD PTR 16[esp] add eax,DWORD PTR [esi] add ebx,DWORD PTR 4[esi] add edi,DWORD PTR 8[esi] add ecx,DWORD PTR 12[esi] mov DWORD PTR [esi],eax mov DWORD PTR 4[esi],ebx mov DWORD PTR 8[esi],edi mov DWORD PTR 12[esi],ecx mov eax,DWORD PTR 24[esp] mov ebx,DWORD PTR 28[esp] mov ecx,DWORD PTR 32[esp] mov edi,DWORD PTR 360[esp] add edx,DWORD PTR 16[esi] add eax,DWORD PTR 20[esi] add ebx,DWORD PTR 24[esi] add ecx,DWORD PTR 28[esi] mov DWORD PTR 16[esi],edx mov DWORD PTR 20[esi],eax mov DWORD PTR 24[esi],ebx mov DWORD PTR 28[esi],ecx lea esp,DWORD PTR 356[esp] sub ebp,256 cmp edi,DWORD PTR 8[esp] jb $L002loop mov esp,DWORD PTR 12[esp] pop edi pop esi pop ebx pop ebp ret ALIGN 32 $L005loop_shrd: mov eax,DWORD PTR [edi] mov ebx,DWORD PTR 4[edi] mov ecx,DWORD PTR 8[edi] bswap eax mov edx,DWORD PTR 12[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 16[edi] mov ebx,DWORD PTR 20[edi] mov ecx,DWORD PTR 24[edi] bswap eax mov edx,DWORD PTR 28[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 32[edi] mov ebx,DWORD PTR 36[edi] mov ecx,DWORD PTR 40[edi] bswap eax mov edx,DWORD PTR 44[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx mov eax,DWORD PTR 48[edi] mov ebx,DWORD PTR 52[edi] mov ecx,DWORD PTR 56[edi] bswap eax mov edx,DWORD PTR 60[edi] bswap ebx push eax bswap ecx push ebx bswap edx push ecx push edx add edi,64 lea esp,DWORD PTR [esp-36] mov DWORD PTR 104[esp],edi mov eax,DWORD PTR [esi] mov ebx,DWORD PTR 4[esi] mov ecx,DWORD PTR 8[esi] mov edi,DWORD PTR 12[esi] mov DWORD PTR 8[esp],ebx xor ebx,ecx mov DWORD PTR 12[esp],ecx mov DWORD PTR 16[esp],edi mov DWORD PTR [esp],ebx mov edx,DWORD PTR 16[esi] mov ebx,DWORD PTR 20[esi] mov ecx,DWORD PTR 24[esi] mov edi,DWORD PTR 28[esi] mov DWORD PTR 24[esp],ebx mov DWORD PTR 28[esp],ecx mov DWORD PTR 32[esp],edi ALIGN 16 $L00600_15_shrd: mov ecx,edx mov esi,DWORD PTR 24[esp] shrd ecx,ecx,14 mov edi,DWORD PTR 28[esp] xor ecx,edx xor esi,edi mov ebx,DWORD PTR 96[esp] shrd ecx,ecx,5 and esi,edx mov DWORD PTR 20[esp],edx xor edx,ecx add ebx,DWORD PTR 32[esp] xor esi,edi shrd edx,edx,6 mov ecx,eax add ebx,esi shrd ecx,ecx,9 add ebx,edx mov edi,DWORD PTR 8[esp] xor ecx,eax mov DWORD PTR 4[esp],eax lea esp,DWORD PTR [esp-4] shrd ecx,ecx,11 mov esi,DWORD PTR [ebp] xor ecx,eax mov edx,DWORD PTR 20[esp] xor eax,edi shrd ecx,ecx,2 add ebx,esi mov DWORD PTR [esp],eax add edx,ebx and eax,DWORD PTR 4[esp] add ebx,ecx xor eax,edi add ebp,4 add eax,ebx cmp esi,3248222580 jne $L00600_15_shrd mov ecx,DWORD PTR 156[esp] jmp $L00716_63_shrd ALIGN 16 $L00716_63_shrd: mov ebx,ecx mov esi,DWORD PTR 104[esp] shrd ecx,ecx,11 mov edi,esi shrd esi,esi,2 xor ecx,ebx shr ebx,3 shrd ecx,ecx,7 xor esi,edi xor ebx,ecx shrd esi,esi,17 add ebx,DWORD PTR 160[esp] shr edi,10 add ebx,DWORD PTR 124[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 24[esp] shrd ecx,ecx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor ecx,edx xor esi,edi mov DWORD PTR 96[esp],ebx shrd ecx,ecx,5 and esi,edx mov DWORD PTR 20[esp],edx xor edx,ecx add ebx,DWORD PTR 32[esp] xor esi,edi shrd edx,edx,6 mov ecx,eax add ebx,esi shrd ecx,ecx,9 add ebx,edx mov edi,DWORD PTR 8[esp] xor ecx,eax mov DWORD PTR 4[esp],eax lea esp,DWORD PTR [esp-4] shrd ecx,ecx,11 mov esi,DWORD PTR [ebp] xor ecx,eax mov edx,DWORD PTR 20[esp] xor eax,edi shrd ecx,ecx,2 add ebx,esi mov DWORD PTR [esp],eax add edx,ebx and eax,DWORD PTR 4[esp] add ebx,ecx xor eax,edi mov ecx,DWORD PTR 156[esp] add ebp,4 add eax,ebx cmp esi,3329325298 jne $L00716_63_shrd mov esi,DWORD PTR 356[esp] mov ebx,DWORD PTR 8[esp] mov ecx,DWORD PTR 16[esp] add eax,DWORD PTR [esi] add ebx,DWORD PTR 4[esi] add edi,DWORD PTR 8[esi] add ecx,DWORD PTR 12[esi] mov DWORD PTR [esi],eax mov DWORD PTR 4[esi],ebx mov DWORD PTR 8[esi],edi mov DWORD PTR 12[esi],ecx mov eax,DWORD PTR 24[esp] mov ebx,DWORD PTR 28[esp] mov ecx,DWORD PTR 32[esp] mov edi,DWORD PTR 360[esp] add edx,DWORD PTR 16[esi] add eax,DWORD PTR 20[esi] add ebx,DWORD PTR 24[esi] add ecx,DWORD PTR 28[esi] mov DWORD PTR 16[esi],edx mov DWORD PTR 20[esi],eax mov DWORD PTR 24[esi],ebx mov DWORD PTR 28[esi],ecx lea esp,DWORD PTR 356[esp] sub ebp,256 cmp edi,DWORD PTR 8[esp] jb $L005loop_shrd mov esp,DWORD PTR 12[esp] pop edi pop esi pop ebx pop ebp ret ALIGN 64 $L001K256: DD 1116352408,1899447441,3049323471,3921009573 DD 961987163,1508970993,2453635748,2870763221 DD 3624381080,310598401,607225278,1426881987 DD 1925078388,2162078206,2614888103,3248222580 DD 3835390401,4022224774,264347078,604807628 DD 770255983,1249150122,1555081692,1996064986 DD 2554220882,2821834349,2952996808,3210313671 DD 3336571891,3584528711,113926993,338241895 DD 666307205,773529912,1294757372,1396182291 DD 1695183700,1986661051,2177026350,2456956037 DD 2730485921,2820302411,3259730800,3345764771 DD 3516065817,3600352804,4094571909,275423344 DD 430227734,506948616,659060556,883997877 DD 958139571,1322822218,1537002063,1747873779 DD 1955562222,2024104815,2227730452,2361852424 DD 2428436474,2756734187,3204031479,3329325298 DD 66051,67438087,134810123,202182159 DB 83,72,65,50,53,54,32,98,108,111,99,107,32,116,114,97 DB 110,115,102,111,114,109,32,102,111,114,32,120,56,54,44,32 DB 67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97 DB 112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103 DB 62,0 ALIGN 16 $L008unrolled: lea esp,DWORD PTR [esp-96] mov eax,DWORD PTR [esi] mov ebp,DWORD PTR 4[esi] mov ecx,DWORD PTR 8[esi] mov ebx,DWORD PTR 12[esi] mov DWORD PTR 4[esp],ebp xor ebp,ecx mov DWORD PTR 8[esp],ecx mov DWORD PTR 12[esp],ebx mov edx,DWORD PTR 16[esi] mov ebx,DWORD PTR 20[esi] mov ecx,DWORD PTR 24[esi] mov esi,DWORD PTR 28[esi] mov DWORD PTR 20[esp],ebx mov DWORD PTR 24[esp],ecx mov DWORD PTR 28[esp],esi jmp $L009grand_loop ALIGN 16 $L009grand_loop: mov ebx,DWORD PTR [edi] mov ecx,DWORD PTR 4[edi] bswap ebx mov esi,DWORD PTR 8[edi] bswap ecx mov DWORD PTR 32[esp],ebx bswap esi mov DWORD PTR 36[esp],ecx mov DWORD PTR 40[esp],esi mov ebx,DWORD PTR 12[edi] mov ecx,DWORD PTR 16[edi] bswap ebx mov esi,DWORD PTR 20[edi] bswap ecx mov DWORD PTR 44[esp],ebx bswap esi mov DWORD PTR 48[esp],ecx mov DWORD PTR 52[esp],esi mov ebx,DWORD PTR 24[edi] mov ecx,DWORD PTR 28[edi] bswap ebx mov esi,DWORD PTR 32[edi] bswap ecx mov DWORD PTR 56[esp],ebx bswap esi mov DWORD PTR 60[esp],ecx mov DWORD PTR 64[esp],esi mov ebx,DWORD PTR 36[edi] mov ecx,DWORD PTR 40[edi] bswap ebx mov esi,DWORD PTR 44[edi] bswap ecx mov DWORD PTR 68[esp],ebx bswap esi mov DWORD PTR 72[esp],ecx mov DWORD PTR 76[esp],esi mov ebx,DWORD PTR 48[edi] mov ecx,DWORD PTR 52[edi] bswap ebx mov esi,DWORD PTR 56[edi] bswap ecx mov DWORD PTR 80[esp],ebx bswap esi mov DWORD PTR 84[esp],ecx mov DWORD PTR 88[esp],esi mov ebx,DWORD PTR 60[edi] add edi,64 bswap ebx mov DWORD PTR 100[esp],edi mov DWORD PTR 92[esp],ebx mov ecx,edx mov esi,DWORD PTR 20[esp] ror edx,14 mov edi,DWORD PTR 24[esp] xor edx,ecx mov ebx,DWORD PTR 32[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1116352408[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 16[esp] ror edx,14 mov edi,DWORD PTR 20[esp] xor edx,esi mov ebx,DWORD PTR 36[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1899447441[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 12[esp] ror edx,14 mov edi,DWORD PTR 16[esp] xor edx,ecx mov ebx,DWORD PTR 40[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3049323471[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 8[esp] ror edx,14 mov edi,DWORD PTR 12[esp] xor edx,esi mov ebx,DWORD PTR 44[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3921009573[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 4[esp] ror edx,14 mov edi,DWORD PTR 8[esp] xor edx,ecx mov ebx,DWORD PTR 48[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 961987163[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR [esp] ror edx,14 mov edi,DWORD PTR 4[esp] xor edx,esi mov ebx,DWORD PTR 52[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1508970993[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 28[esp] ror edx,14 mov edi,DWORD PTR [esp] xor edx,ecx mov ebx,DWORD PTR 56[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2453635748[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 24[esp] ror edx,14 mov edi,DWORD PTR 28[esp] xor edx,esi mov ebx,DWORD PTR 60[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2870763221[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 20[esp] ror edx,14 mov edi,DWORD PTR 24[esp] xor edx,ecx mov ebx,DWORD PTR 64[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3624381080[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 16[esp] ror edx,14 mov edi,DWORD PTR 20[esp] xor edx,esi mov ebx,DWORD PTR 68[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 310598401[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 12[esp] ror edx,14 mov edi,DWORD PTR 16[esp] xor edx,ecx mov ebx,DWORD PTR 72[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 607225278[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 8[esp] ror edx,14 mov edi,DWORD PTR 12[esp] xor edx,esi mov ebx,DWORD PTR 76[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1426881987[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 4[esp] ror edx,14 mov edi,DWORD PTR 8[esp] xor edx,ecx mov ebx,DWORD PTR 80[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1925078388[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR [esp] ror edx,14 mov edi,DWORD PTR 4[esp] xor edx,esi mov ebx,DWORD PTR 84[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2162078206[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov ecx,edx mov esi,DWORD PTR 28[esp] ror edx,14 mov edi,DWORD PTR [esp] xor edx,ecx mov ebx,DWORD PTR 88[esp] xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2614888103[edx*1+ebx] xor ecx,esi xor ebp,edi ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov esi,edx mov ecx,DWORD PTR 24[esp] ror edx,14 mov edi,DWORD PTR 28[esp] xor edx,esi mov ebx,DWORD PTR 92[esp] xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3248222580[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 36[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 88[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 32[esp] shr edi,10 add ebx,DWORD PTR 68[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 32[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3835390401[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 40[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 92[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 36[esp] shr edi,10 add ebx,DWORD PTR 72[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 36[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 4022224774[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 44[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 32[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 40[esp] shr edi,10 add ebx,DWORD PTR 76[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 40[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 264347078[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 48[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 36[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 44[esp] shr edi,10 add ebx,DWORD PTR 80[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 44[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 604807628[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 52[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 40[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 48[esp] shr edi,10 add ebx,DWORD PTR 84[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 48[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 770255983[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 56[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 44[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 52[esp] shr edi,10 add ebx,DWORD PTR 88[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 52[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1249150122[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 60[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 48[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 56[esp] shr edi,10 add ebx,DWORD PTR 92[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx mov DWORD PTR 56[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1555081692[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 64[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 52[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 60[esp] shr edi,10 add ebx,DWORD PTR 32[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi mov DWORD PTR 60[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1996064986[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 68[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 56[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 64[esp] shr edi,10 add ebx,DWORD PTR 36[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 64[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2554220882[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 72[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 60[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 68[esp] shr edi,10 add ebx,DWORD PTR 40[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 68[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2821834349[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 76[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 64[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 72[esp] shr edi,10 add ebx,DWORD PTR 44[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 72[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2952996808[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 80[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 68[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 76[esp] shr edi,10 add ebx,DWORD PTR 48[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 76[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3210313671[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 84[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 72[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 80[esp] shr edi,10 add ebx,DWORD PTR 52[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 80[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3336571891[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 88[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 76[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 84[esp] shr edi,10 add ebx,DWORD PTR 56[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 84[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3584528711[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 92[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 80[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 88[esp] shr edi,10 add ebx,DWORD PTR 60[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx mov DWORD PTR 88[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 113926993[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 32[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 84[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 92[esp] shr edi,10 add ebx,DWORD PTR 64[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi mov DWORD PTR 92[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 338241895[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 36[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 88[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 32[esp] shr edi,10 add ebx,DWORD PTR 68[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 32[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 666307205[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 40[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 92[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 36[esp] shr edi,10 add ebx,DWORD PTR 72[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 36[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 773529912[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 44[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 32[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 40[esp] shr edi,10 add ebx,DWORD PTR 76[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 40[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1294757372[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 48[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 36[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 44[esp] shr edi,10 add ebx,DWORD PTR 80[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 44[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1396182291[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 52[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 40[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 48[esp] shr edi,10 add ebx,DWORD PTR 84[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 48[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1695183700[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 56[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 44[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 52[esp] shr edi,10 add ebx,DWORD PTR 88[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 52[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1986661051[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 60[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 48[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 56[esp] shr edi,10 add ebx,DWORD PTR 92[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx mov DWORD PTR 56[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2177026350[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 64[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 52[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 60[esp] shr edi,10 add ebx,DWORD PTR 32[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi mov DWORD PTR 60[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2456956037[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 68[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 56[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 64[esp] shr edi,10 add ebx,DWORD PTR 36[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 64[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2730485921[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 72[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 60[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 68[esp] shr edi,10 add ebx,DWORD PTR 40[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 68[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2820302411[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 76[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 64[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 72[esp] shr edi,10 add ebx,DWORD PTR 44[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 72[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3259730800[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 80[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 68[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 76[esp] shr edi,10 add ebx,DWORD PTR 48[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 76[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3345764771[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 84[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 72[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 80[esp] shr edi,10 add ebx,DWORD PTR 52[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 80[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3516065817[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 88[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 76[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 84[esp] shr edi,10 add ebx,DWORD PTR 56[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 84[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3600352804[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 92[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 80[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 88[esp] shr edi,10 add ebx,DWORD PTR 60[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx mov DWORD PTR 88[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 4094571909[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 32[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 84[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 92[esp] shr edi,10 add ebx,DWORD PTR 64[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi mov DWORD PTR 92[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 275423344[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 36[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 88[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 32[esp] shr edi,10 add ebx,DWORD PTR 68[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 32[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 430227734[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 40[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 92[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 36[esp] shr edi,10 add ebx,DWORD PTR 72[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 36[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 506948616[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 44[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 32[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 40[esp] shr edi,10 add ebx,DWORD PTR 76[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 40[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 659060556[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 48[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 36[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 44[esp] shr edi,10 add ebx,DWORD PTR 80[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 44[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 883997877[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 52[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 40[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 48[esp] shr edi,10 add ebx,DWORD PTR 84[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 48[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 958139571[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 56[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 44[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 52[esp] shr edi,10 add ebx,DWORD PTR 88[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 52[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1322822218[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 60[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 48[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 56[esp] shr edi,10 add ebx,DWORD PTR 92[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx mov DWORD PTR 56[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1537002063[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 64[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 52[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 60[esp] shr edi,10 add ebx,DWORD PTR 32[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi mov DWORD PTR 60[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 1747873779[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 68[esp] ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 56[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 64[esp] shr edi,10 add ebx,DWORD PTR 36[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 20[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 24[esp] xor edx,ecx mov DWORD PTR 64[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 16[esp],ecx xor edx,ecx add ebx,DWORD PTR 28[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 4[esp] xor ecx,eax mov DWORD PTR [esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 1955562222[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 72[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 12[esp] add ebp,ecx mov ecx,DWORD PTR 60[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 68[esp] shr edi,10 add ebx,DWORD PTR 40[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 16[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 20[esp] xor edx,esi mov DWORD PTR 68[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 12[esp],esi xor edx,esi add ebx,DWORD PTR 24[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR [esp] xor esi,ebp mov DWORD PTR 28[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2024104815[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 76[esp] ror esi,2 add eax,edx add edx,DWORD PTR 8[esp] add eax,esi mov esi,DWORD PTR 64[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 72[esp] shr edi,10 add ebx,DWORD PTR 44[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 12[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 16[esp] xor edx,ecx mov DWORD PTR 72[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 8[esp],ecx xor edx,ecx add ebx,DWORD PTR 20[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 28[esp] xor ecx,eax mov DWORD PTR 24[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2227730452[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 80[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 4[esp] add ebp,ecx mov ecx,DWORD PTR 68[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 76[esp] shr edi,10 add ebx,DWORD PTR 48[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 8[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 12[esp] xor edx,esi mov DWORD PTR 76[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 4[esp],esi xor edx,esi add ebx,DWORD PTR 16[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 24[esp] xor esi,ebp mov DWORD PTR 20[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2361852424[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 84[esp] ror esi,2 add eax,edx add edx,DWORD PTR [esp] add eax,esi mov esi,DWORD PTR 72[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 80[esp] shr edi,10 add ebx,DWORD PTR 52[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 4[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 8[esp] xor edx,ecx mov DWORD PTR 80[esp],ebx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR [esp],ecx xor edx,ecx add ebx,DWORD PTR 12[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 20[esp] xor ecx,eax mov DWORD PTR 16[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 2428436474[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 88[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 28[esp] add ebp,ecx mov ecx,DWORD PTR 76[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 84[esp] shr edi,10 add ebx,DWORD PTR 56[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR [esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 4[esp] xor edx,esi mov DWORD PTR 84[esp],ebx xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 28[esp],esi xor edx,esi add ebx,DWORD PTR 8[esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 16[esp] xor esi,ebp mov DWORD PTR 12[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 2756734187[edx*1+ebx] xor esi,ecx xor eax,edi mov ecx,DWORD PTR 92[esp] ror esi,2 add eax,edx add edx,DWORD PTR 24[esp] add eax,esi mov esi,DWORD PTR 80[esp] mov ebx,ecx ror ecx,11 mov edi,esi ror esi,2 xor ecx,ebx shr ebx,3 ror ecx,7 xor esi,edi xor ebx,ecx ror esi,17 add ebx,DWORD PTR 88[esp] shr edi,10 add ebx,DWORD PTR 60[esp] mov ecx,edx xor edi,esi mov esi,DWORD PTR 28[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR [esp] xor edx,ecx xor esi,edi ror edx,5 and esi,ecx mov DWORD PTR 24[esp],ecx xor edx,ecx add ebx,DWORD PTR 4[esp] xor edi,esi ror edx,6 mov ecx,eax add ebx,edi ror ecx,9 mov esi,eax mov edi,DWORD PTR 12[esp] xor ecx,eax mov DWORD PTR 8[esp],eax xor eax,edi ror ecx,11 and ebp,eax lea edx,DWORD PTR 3204031479[edx*1+ebx] xor ecx,esi xor ebp,edi mov esi,DWORD PTR 32[esp] ror ecx,2 add ebp,edx add edx,DWORD PTR 20[esp] add ebp,ecx mov ecx,DWORD PTR 84[esp] mov ebx,esi ror esi,11 mov edi,ecx ror ecx,2 xor esi,ebx shr ebx,3 ror esi,7 xor ecx,edi xor ebx,esi ror ecx,17 add ebx,DWORD PTR 92[esp] shr edi,10 add ebx,DWORD PTR 64[esp] mov esi,edx xor edi,ecx mov ecx,DWORD PTR 24[esp] ror edx,14 add ebx,edi mov edi,DWORD PTR 28[esp] xor edx,esi xor ecx,edi ror edx,5 and ecx,esi mov DWORD PTR 20[esp],esi xor edx,esi add ebx,DWORD PTR [esp] xor edi,ecx ror edx,6 mov esi,ebp add ebx,edi ror esi,9 mov ecx,ebp mov edi,DWORD PTR 8[esp] xor esi,ebp mov DWORD PTR 4[esp],ebp xor ebp,edi ror esi,11 and eax,ebp lea edx,DWORD PTR 3329325298[edx*1+ebx] xor esi,ecx xor eax,edi ror esi,2 add eax,edx add edx,DWORD PTR 16[esp] add eax,esi mov esi,DWORD PTR 96[esp] xor ebp,edi mov ecx,DWORD PTR 12[esp] add eax,DWORD PTR [esi] add ebp,DWORD PTR 4[esi] add edi,DWORD PTR 8[esi] add ecx,DWORD PTR 12[esi] mov DWORD PTR [esi],eax mov DWORD PTR 4[esi],ebp mov DWORD PTR 8[esi],edi mov DWORD PTR 12[esi],ecx mov DWORD PTR 4[esp],ebp xor ebp,edi mov DWORD PTR 8[esp],edi mov DWORD PTR 12[esp],ecx mov edi,DWORD PTR 20[esp] mov ebx,DWORD PTR 24[esp] mov ecx,DWORD PTR 28[esp] add edx,DWORD PTR 16[esi] add edi,DWORD PTR 20[esi] add ebx,DWORD PTR 24[esi] add ecx,DWORD PTR 28[esi] mov DWORD PTR 16[esi],edx mov DWORD PTR 20[esi],edi mov DWORD PTR 24[esi],ebx mov DWORD PTR 28[esi],ecx mov DWORD PTR 20[esp],edi mov edi,DWORD PTR 100[esp] mov DWORD PTR 24[esp],ebx mov DWORD PTR 28[esp],ecx cmp edi,DWORD PTR 104[esp] jb $L009grand_loop mov esp,DWORD PTR 108[esp] pop edi pop esi pop ebx pop ebp ret _sha256_block_data_order ENDP .text$ ENDS .bss SEGMENT 'BSS' COMM _OPENSSL_ia32cap_P:DWORD:4 .bss ENDS END
17.323756
64
0.69729
999c51b0623c552e662b25ef0d8c809e84154ed9
653
asm
Assembly
data/maps/objects/SafariZoneEast.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/SafariZoneEast.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/SafariZoneEast.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SafariZoneEast_Object: db $0 ; border block def_warps warp 0, 4, 6, SAFARI_ZONE_NORTH warp 0, 5, 7, SAFARI_ZONE_NORTH warp 0, 22, 6, SAFARI_ZONE_CENTER warp 0, 23, 6, SAFARI_ZONE_CENTER warp 25, 9, 0, SAFARI_ZONE_EAST_REST_HOUSE def_signs sign 26, 10, 5 ; SafariZoneEastText5 sign 6, 4, 6 ; SafariZoneEastText6 sign 5, 23, 7 ; SafariZoneEastText7 def_objects object SPRITE_POKE_BALL, 21, 10, STAY, NONE, 1, FULL_RESTORE object SPRITE_POKE_BALL, 3, 7, STAY, NONE, 2, MAX_POTION object SPRITE_POKE_BALL, 20, 13, STAY, NONE, 3, CARBOS object SPRITE_POKE_BALL, 15, 12, STAY, NONE, 4, TM_EGG_BOMB def_warps_to SAFARI_ZONE_EAST
28.391304
61
0.742726
0c7b2ec5216a59476f12c143c20c5ef4a71d7cab
607
asm
Assembly
programs/oeis/132/A132780.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/132/A132780.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/132/A132780.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A132780: a(0)=1. a(n+1)=2*a(n)-A130151(n). ; 1,1,1,1,3,7,15,29,57,113,227,455,911,1821,3641,7281,14563,29127,58255,116509,233017,466033,932067,1864135,3728271,7456541,14913081,29826161,59652323,119304647,238609295,477218589,954437177,1908874353,3817748707,7635497415,15270994831,30541989661,61083979321,122167958641,244335917283,488671834567,977343669135,1954687338269,3909374676537,7818749353073,15637498706147,31274997412295,62549994824591,125099989649181,250199979298361,500399958596721,1000799917193443,2001599834386887,4003199668773775,8006399337547549 mov $1,2 pow $1,$0 div $1,9 mul $1,2 add $1,1
67.444444
514
0.833608
6115f61e0832426c705173e9ed30ce334711eb11
262
asm
Assembly
programs/oeis/070/A070598.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070598.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070598.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A070598: n^5 mod 13. ; 0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1 pow $0,5 mov $1,$0 mod $1,13
37.428571
208
0.549618
3d980bb7ffe5f93169cc58ad4c5cbfbba3659604
1,360
asm
Assembly
wof/lcs/enemy/12.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/enemy/12.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/enemy/12.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 001590 lea ($20,A0), A0 002490 move.l A6, ($12,A0) [123p+ 2C, 123p+ 2E, enemy+2C, enemy+2E] 002494 lea ($6c,A0), A4 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 0024AC move.l A6, ($12,A0) [123p+ 2C, 123p+ 2E, enemy+2C, enemy+2E] 0024B0 lea ($6c,A0), A4 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 0024DE move.l A6, ($12,A0) [123p+ 2C, 123p+ 2E, enemy+2C, enemy+2E] 0024E2 lea ($6c,A0), A4 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 002500 move.l A6, ($12,A0) [123p+ 2C, 123p+ 2E, enemy+2C, enemy+2E] 002504 lea ($6c,A0), A4 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 0079E4 lea (-$a,A2), A2 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 012254 move.l (A2)+, (A3)+ 012256 move.l (A2)+, (A3)+ [enemy+10, enemy+12] 01A75E dbra D4, $1a75c 05E01E lea (-$a,A1), A1 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 05E468 bsr $5e964 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 05E476 movea.l ($12,A0), A1 [123p+ 68, enemy+68] 05E47A bsr $5e964 [123p+ 12, 123p+ 14, enemy+12, enemy+14] 05E48E movea.l ($12,A0), A1 [123p+ 68] 05E492 bsr $5e964 [enemy+12, enemy+14] 05E55C movea.l ($12,A0), A1 [enemy+17] 05E560 bsr $5e5ce [enemy+12, enemy+14] 05E5BC bsr $5e964 [123p+ 12, 123p+ 14, enemy+12, enemy+14] copyright zengfr site:http://github.com/zengfr/romhack
50.37037
69
0.616176
ad9539a3f30d5e2f375bd2c467ff32453b462ba8
358
asm
Assembly
programs/oeis/213/A213194.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/213/A213194.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/213/A213194.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A213194: First inverse function (numbers of rows) for pairing function A211377. ; 1,1,1,2,2,3,1,1,2,2,3,3,4,4,5,1,1,2,2,3,3,4,4,5,5,6,6,7,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,1,1,2,2,3,3,4,4,5 lpb $0 sub $1,1 add $0,$1 sub $1,3 lpe div $0,2 add $0,1
32.545455
211
0.578212
f6b5be17eff141b2dc959aed61fb03903daf9518
11,399
asm
Assembly
data/trainers/attributes.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/trainers/attributes.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
null
null
null
data/trainers/attributes.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
TrainerClassAttributes: ; entries correspond to trainer classes (see constants/trainer_constants.asm) ; Falkner db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Whitney db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Bugsy db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Morty db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Pryce db HYPER_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Jasmine db HYPER_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Chuck db FULL_HEAL, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Clair db FULL_HEAL, HYPER_POTION ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Rival1 db NO_ITEM, NO_ITEM ; items db 15 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Pokemon Prof db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_AGGRESSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Aaron db MAX_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Bertha db MAX_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Flint db FULL_HEAL, MAX_POTION ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Lucian db FULL_HEAL, FULL_RESTORE ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Cal db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Champion db FULL_HEAL, FULL_RESTORE ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Worker db NO_ITEM, NO_ITEM ; items db 20 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Veteran db NO_ITEM, NO_ITEM ; items db 30 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Lt Surge db HYPER_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Scientist db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Erika db HYPER_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Youngster db NO_ITEM, NO_ITEM ; items db 4 ; base reward dw AI_BASIC | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Schoolboy db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_OFTEN ; Bird Keeper db NO_ITEM, NO_ITEM ; items db 6 ; base reward dw AI_BASIC | AI_TYPES | AI_OFFENSIVE | AI_OPPORTUNIST | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Lass db NO_ITEM, NO_ITEM ; items db 6 ; base reward dw AI_BASIC | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_OFTEN ; Janine db DIRE_HIT, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Cooltrainerm db NO_ITEM, NO_ITEM ; items db 12 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Cooltrainerf db NO_ITEM, NO_ITEM ; items db 12 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Beauty db NO_ITEM, NO_ITEM ; items db 22 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Pokemaniac db NO_ITEM, NO_ITEM ; items db 15 ; base reward dw AI_BASIC | AI_SETUP | AI_OFFENSIVE | AI_AGGRESSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Gruntm db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Gentleman db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_SETUP | AI_AGGRESSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Skier db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Teacher db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_OPPORTUNIST | AI_AGGRESSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Sabrina db HYPER_POTION, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Bug Catcher db NO_ITEM, NO_ITEM ; items db 4 ; base reward dw AI_BASIC | AI_SETUP | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Fisher db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_OFTEN ; Swimmerm db NO_ITEM, NO_ITEM ; items db 2 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_OFFENSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Swimmerf db NO_ITEM, NO_ITEM ; items db 5 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Sailor db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_OFFENSIVE | AI_OPPORTUNIST | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Super Nerd db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Rival2 db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Guitarist db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Hiker db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_OFFENSIVE | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Biker db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_TYPES | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Blaine db MAX_POTION, FULL_HEAL ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Burglar db NO_ITEM, NO_ITEM ; items db 22 ; base reward dw AI_BASIC | AI_OFFENSIVE | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Firebreather db NO_ITEM, NO_ITEM ; items db 12 ; base reward dw AI_BASIC | AI_SETUP | AI_OFFENSIVE | AI_OPPORTUNIST | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Juggler db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Blackbelt T db NO_ITEM, NO_ITEM ; items db 6 ; base reward dw AI_BASIC | AI_OFFENSIVE | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Executivem db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_SMART | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Psychic T db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Picnicker db NO_ITEM, NO_ITEM ; items db 5 ; base reward dw AI_BASIC | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Camper db NO_ITEM, NO_ITEM ; items db 5 ; base reward dw AI_BASIC | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Executivef db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_SMART | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Sage db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Medium db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Boarder db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Pokefanm db NO_ITEM, NO_ITEM ; items db 20 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Kimono Girl db NO_ITEM, NO_ITEM ; items db 18 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Twins db NO_ITEM, NO_ITEM ; items db 5 ; base reward dw NO_AI dw CONTEXT_USE | SWITCH_OFTEN ; Pokefanf db NO_ITEM, NO_ITEM ; items db 20 ; base reward dw AI_BASIC | AI_TYPES | AI_SMART | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Red db FULL_RESTORE, FULL_RESTORE ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Blue db FULL_RESTORE, FULL_RESTORE ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Officer db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_STATUS dw CONTEXT_USE | SWITCH_SOMETIMES ; Gruntf db NO_ITEM, NO_ITEM ; items db 10 ; base reward dw AI_BASIC | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Mysticalman db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Schoolgirl db NO_ITEM, NO_ITEM ; items db 8 ; base reward dw AI_BASIC | AI_SETUP | AI_TYPES | AI_OPPORTUNIST | AI_CAUTIOUS | AI_STATUS dw CONTEXT_USE | SWITCH_OFTEN
27.734793
99
0.750943
4c51a094748d8969f994a397722b75ad9a75ac96
1,818
asm
Assembly
programs/oeis/166/A166931.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/166/A166931.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/166/A166931.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A166931: Numbers n with property that n mod k is k-1 for all k = 2..9. ; 2519,5039,7559,10079,12599,15119,17639,20159,22679,25199,27719,30239,32759,35279,37799,40319,42839,45359,47879,50399,52919,55439,57959,60479,62999,65519,68039,70559,73079,75599,78119,80639,83159,85679,88199,90719,93239,95759,98279,100799,103319,105839,108359,110879,113399,115919,118439,120959,123479,125999,128519,131039,133559,136079,138599,141119,143639,146159,148679,151199,153719,156239,158759,161279,163799,166319,168839,171359,173879,176399,178919,181439,183959,186479,188999,191519,194039,196559,199079,201599,204119,206639,209159,211679,214199,216719,219239,221759,224279,226799,229319,231839,234359,236879,239399,241919,244439,246959,249479,251999,254519,257039,259559,262079,264599,267119,269639,272159,274679,277199,279719,282239,284759,287279,289799,292319,294839,297359,299879,302399,304919,307439,309959,312479,314999,317519,320039,322559,325079,327599,330119,332639,335159,337679,340199,342719,345239,347759,350279,352799,355319,357839,360359,362879,365399,367919,370439,372959,375479,377999,380519,383039,385559,388079,390599,393119,395639,398159,400679,403199,405719,408239,410759,413279,415799,418319,420839,423359,425879,428399,430919,433439,435959,438479,440999,443519,446039,448559,451079,453599,456119,458639,461159,463679,466199,468719,471239,473759,476279,478799,481319,483839,486359,488879,491399,493919,496439,498959,501479,503999,506519,509039,511559,514079,516599,519119,521639,524159,526679,529199,531719,534239,536759,539279,541799,544319,546839,549359,551879,554399,556919,559439,561959,564479,566999,569519,572039,574559,577079,579599,582119,584639,587159,589679,592199,594719,597239,599759,602279,604799,607319,609839,612359,614879,617399,619919,622439,624959,627479,629999 mov $1,$0 mul $1,2520 add $1,2519
259.714286
1,709
0.840484
63058c02fd51d178ce7671174da897c7aa03385b
3,705
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_284.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_284.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_284.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rdx // Faulty Load lea addresses_WC+0xab08, %r11 nop nop nop and $42030, %r13 movups (%r11), %xmm2 vpextrq $0, %xmm2, %rdx lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rdx pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
88.214286
2,999
0.663698
e323716a6e79470c2e3b55fd09c1c1c28fe0bfa4
34,383
asm
Assembly
pwdChallenge/pwdChallenge.asm
nico9889/CT0539-Sec
d2726d33d26a77eb5907a8855d4196d0541541c7
[ "MIT" ]
null
null
null
pwdChallenge/pwdChallenge.asm
nico9889/CT0539-Sec
d2726d33d26a77eb5907a8855d4196d0541541c7
[ "MIT" ]
null
null
null
pwdChallenge/pwdChallenge.asm
nico9889/CT0539-Sec
d2726d33d26a77eb5907a8855d4196d0541541c7
[ "MIT" ]
null
null
null
pwdChallenge: file format elf64-x86-64 Contents of section .interp: 0238 2f6c6962 36342f6c 642d6c69 6e75782d /lib64/ld-linux- 0248 7838362d 36342e73 6f2e3200 x86-64.so.2. Contents of section .note.ABI-tag: 0254 04000000 10000000 01000000 474e5500 ............GNU. 0264 00000000 03000000 02000000 00000000 ................ Contents of section .note.gnu.build-id: 0274 04000000 14000000 03000000 474e5500 ............GNU. 0284 c17b06b0 623444ed 92f6dc5b 72846eb8 .{..b4D....[r.n. 0294 a9a2e952 ...R Contents of section .gnu.hash: 0298 02000000 13000000 01000000 06000000 ................ 02a8 00000000 00011000 13000000 00000000 ................ 02b8 291d8c1c )... Contents of section .dynsym: 02c0 00000000 00000000 00000000 00000000 ................ 02d0 00000000 00000000 83000000 12000000 ................ 02e0 00000000 00000000 00000000 00000000 ................ 02f0 1d000000 12000000 00000000 00000000 ................ 0300 00000000 00000000 94000000 20000000 ............ ... 0310 00000000 00000000 00000000 00000000 ................ 0320 25000000 12000000 00000000 00000000 %............... 0330 00000000 00000000 54000000 12000000 ........T....... 0340 00000000 00000000 00000000 00000000 ................ 0350 37000000 12000000 00000000 00000000 7............... 0360 00000000 00000000 2a000000 12000000 ........*....... 0370 00000000 00000000 00000000 00000000 ................ 0380 3e000000 12000000 00000000 00000000 >............... 0390 00000000 00000000 31000000 12000000 ........1....... 03a0 00000000 00000000 00000000 00000000 ................ 03b0 71000000 12000000 00000000 00000000 q............... 03c0 00000000 00000000 45000000 12000000 ........E....... 03d0 00000000 00000000 00000000 00000000 ................ 03e0 b0000000 20000000 00000000 00000000 .... ........... 03f0 00000000 00000000 5b000000 12000000 ........[....... 0400 00000000 00000000 00000000 00000000 ................ 0410 0b000000 12000000 00000000 00000000 ................ 0420 00000000 00000000 17000000 12000000 ................ 0430 00000000 00000000 00000000 00000000 ................ 0440 12000000 12000000 00000000 00000000 ................ 0450 00000000 00000000 bf000000 20000000 ............ ... 0460 00000000 00000000 00000000 00000000 ................ 0470 62000000 22000000 00000000 00000000 b..."........... 0480 00000000 00000000 4d000000 11001800 ........M....... 0490 10202000 00000000 08000000 00000000 . ............. Contents of section .dynstr: 04a0 006c6962 632e736f 2e360066 666c7573 .libc.so.6.fflus 04b0 68006578 69740066 6f70656e 00737472 h.exit.fopen.str 04c0 6e636d70 00707574 73007072 696e7466 ncmp.puts.printf 04d0 00666765 74630073 74726c65 6e006d65 .fgetc.strlen.me 04e0 6d736574 00676574 63686172 00737464 mset.getchar.std 04f0 6f757400 66636c6f 7365006d 616c6c6f out.fclose.mallo 0500 63005f5f 6378615f 66696e61 6c697a65 c.__cxa_finalize 0510 005f5f6c 6962635f 73746172 745f6d61 .__libc_start_ma 0520 696e0066 72656500 474c4942 435f322e in.free.GLIBC_2. 0530 322e3500 5f49544d 5f646572 65676973 2.5._ITM_deregis 0540 74657254 4d436c6f 6e655461 626c6500 terTMCloneTable. 0550 5f5f676d 6f6e5f73 74617274 5f5f005f __gmon_start__._ 0560 49544d5f 72656769 73746572 544d436c ITM_registerTMCl 0570 6f6e6554 61626c65 00 oneTable. Contents of section .gnu.version: 057a 00000200 02000000 02000200 02000200 ................ 058a 02000200 02000200 00000200 02000200 ................ 059a 02000000 02000200 ........ Contents of section .gnu.version_r: 05a8 01000100 01000000 10000000 00000000 ................ 05b8 751a6909 00000200 88000000 00000000 u.i............. Contents of section .rela.dyn: 05c8 581d2000 00000000 08000000 00000000 X. ............. 05d8 e0090000 00000000 601d2000 00000000 ........`. ..... 05e8 08000000 00000000 a0090000 00000000 ................ 05f8 08202000 00000000 08000000 00000000 . ............. 0608 08202000 00000000 d81f2000 00000000 . ....... ..... 0618 06000000 03000000 00000000 00000000 ................ 0628 e01f2000 00000000 06000000 0a000000 .. ............. 0638 00000000 00000000 e81f2000 00000000 .......... ..... 0648 06000000 0c000000 00000000 00000000 ................ 0658 f01f2000 00000000 06000000 11000000 .. ............. 0668 00000000 00000000 f81f2000 00000000 .......... ..... 0678 06000000 12000000 00000000 00000000 ................ 0688 10202000 00000000 05000000 13000000 . ............. 0698 00000000 00000000 ........ Contents of section .rela.plt: 06a0 701f2000 00000000 07000000 01000000 p. ............. 06b0 00000000 00000000 781f2000 00000000 ........x. ..... 06c0 07000000 02000000 00000000 00000000 ................ 06d0 801f2000 00000000 07000000 04000000 .. ............. 06e0 00000000 00000000 881f2000 00000000 .......... ..... 06f0 07000000 05000000 00000000 00000000 ................ 0700 901f2000 00000000 07000000 06000000 .. ............. 0710 00000000 00000000 981f2000 00000000 .......... ..... 0720 07000000 07000000 00000000 00000000 ................ 0730 a01f2000 00000000 07000000 08000000 .. ............. 0740 00000000 00000000 a81f2000 00000000 .......... ..... 0750 07000000 09000000 00000000 00000000 ................ 0760 b01f2000 00000000 07000000 0b000000 .. ............. 0770 00000000 00000000 b81f2000 00000000 .......... ..... 0780 07000000 0d000000 00000000 00000000 ................ 0790 c01f2000 00000000 07000000 0e000000 .. ............. 07a0 00000000 00000000 c81f2000 00000000 .......... ..... 07b0 07000000 0f000000 00000000 00000000 ................ 07c0 d01f2000 00000000 07000000 10000000 .. ............. 07d0 00000000 00000000 ........ Contents of section .init: 07d8 4883ec08 488b0505 18200048 85c07402 H...H.... .H..t. 07e8 ffd04883 c408c3 ..H.... Contents of section .plt: 07f0 ff356a17 2000ff25 6c172000 0f1f4000 .5j. ..%l. ...@. 0800 ff256a17 20006800 000000e9 e0ffffff .%j. .h......... 0810 ff256217 20006801 000000e9 d0ffffff .%b. .h......... 0820 ff255a17 20006802 000000e9 c0ffffff .%Z. .h......... 0830 ff255217 20006803 000000e9 b0ffffff .%R. .h......... 0840 ff254a17 20006804 000000e9 a0ffffff .%J. .h......... 0850 ff254217 20006805 000000e9 90ffffff .%B. .h......... 0860 ff253a17 20006806 000000e9 80ffffff .%:. .h......... 0870 ff253217 20006807 000000e9 70ffffff .%2. .h.....p... 0880 ff252a17 20006808 000000e9 60ffffff .%*. .h.....`... 0890 ff252217 20006809 000000e9 50ffffff .%". .h.....P... 08a0 ff251a17 2000680a 000000e9 40ffffff .%.. .h.....@... 08b0 ff251217 2000680b 000000e9 30ffffff .%.. .h.....0... 08c0 ff250a17 2000680c 000000e9 20ffffff .%.. .h..... ... Contents of section .plt.got: 08d0 ff252217 20006690 .%". .f. Contents of section .text: 08e0 31ed4989 d15e4889 e24883e4 f050544c 1.I..^H..H...PTL 08f0 8d05aa03 0000488d 0d330300 00488d3d ......H..3...H.= 0900 4f020000 ff15d616 2000f40f 1f440000 O....... ....D.. 0910 488d3df9 16200055 488d05f1 16200048 H.=.. .UH.... .H 0920 39f84889 e5741948 8b05aa16 20004885 9.H..t.H.... .H. 0930 c0740d5d ffe0662e 0f1f8400 00000000 .t.]..f......... 0940 5dc30f1f 4000662e 0f1f8400 00000000 ]...@.f......... 0950 488d3db9 16200048 8d35b216 20005548 H.=.. .H.5.. .UH 0960 29fe4889 e548c1fe 034889f0 48c1e83f ).H..H...H..H..? 0970 4801c648 d1fe7418 488b0571 16200048 H..H..t.H..q. .H 0980 85c0740c 5dffe066 0f1f8400 00000000 ..t.]..f........ 0990 5dc30f1f 4000662e 0f1f8400 00000000 ]...@.f......... 09a0 803d7116 20000075 2f48833d 47162000 .=q. ..u/H.=G. . 09b0 00554889 e5740c48 8b3d4a16 2000e80d .UH..t.H.=J. ... 09c0 ffffffe8 48ffffff c6054916 2000015d ....H.....I. ..] 09d0 c30f1f80 00000000 f3c3660f 1f440000 ..........f..D.. 09e0 554889e5 5de966ff ffff5548 89e54883 UH..].f...UH..H. 09f0 ec104889 7df8488b 45f84889 c6488d3d ..H.}.H.E.H..H.= 0a00 b0020000 b8000000 00e842fe ffff488b ..........B...H. 0a10 05fb1520 004889c7 e883feff ff488b05 ... .H.......H.. 0a20 0c162000 4889c7e8 d4fdffff bf010000 .. .H........... 0a30 00e88afe ffff5548 89e54883 ec10bf10 ......UH..H..... 0a40 000000e8 48feffff 488905e1 15200048 ....H...H.... .H 0a50 8d356902 0000488d 3d640200 00e84efe .5i...H.=d....N. 0a60 ffff4889 45f84883 7df80075 0c488d3d ..H.E.H.}..u.H.= 0a70 55020000 e871ffff ffc745f4 00000000 U....q....E..... 0a80 eb19488b 15a71520 008b45f4 48984801 ..H.... ..E.H.H. 0a90 c20fb645 f3880283 45f40183 7df40e7f ...E....E...}... 0aa0 15488b45 f84889c7 e8c3fdff ff8845f3 .H.E.H........E. 0ab0 807df3ff 75cc488b 15731520 008b45f4 .}..u.H..s. ..E. 0ac0 48984801 d0c60000 488b45f8 4889c7e8 H.H.....H.E.H... 0ad0 5cfdffff 90c9c355 4889e548 83ec1048 \......UH..H...H 0ae0 8d3dfd01 0000b800 000000e8 60fdffff .=..........`... 0af0 488b0519 15200048 89c7e8a1 fdffffba H.... .H........ 0b00 10000000 be000000 00488d3d 10152000 .........H.=.. . 0b10 e84bfdff ffc745fc 00000000 eb188b45 .K....E........E 0b20 fc4863d0 488d05f5 1420000f b64dfb88 .Hc.H.... ...M.. 0b30 0c028345 fc01837d fc107f14 e83ffdff ...E...}.....?.. 0b40 ff8845fb 807dfbff 7406807d fb0a75ce ..E..}..t..}..u. 0b50 90c9c355 4889e553 4883ec18 897dec48 ...UH..SH....}.H 0b60 8975e0b8 00000000 e8c9feff ffb80000 .u.............. 0b70 0000e860 ffffff48 8b05b214 2000ba0f ...`...H.... ... 0b80 00000048 8d359614 20004889 c7e87efc ...H.5.. .H...~. 0b90 ffff85c0 7534488d 3d580100 00e87efc ....u4H.=X....~. 0ba0 ffff488b 05671420 004889c7 e8effcff ..H..g. .H...... 0bb0 ff488b05 78142000 4889c7e8 40fcffff .H..x. .H...@... 0bc0 bf000000 00e8f6fc ffff488b 055f1420 ..........H.._. 0bd0 004889c7 e867fcff ff4889c3 488d3d3d .H...g...H..H.== 0be0 142000e8 58fcffff 4839c374 23488b05 . ..X...H9.t#H.. 0bf0 3c142000 4889c7e8 44fcffff 4889c648 <. .H...D...H..H 0c00 8d3dfe00 0000b800 000000e8 40fcffff .=..........@... 0c10 488d3d0b 010000e8 cefdffff b8000000 H.=............. 0c20 004883c4 185b5dc3 0f1f8400 00000000 .H...[]......... 0c30 41574156 4989d741 5541544c 8d251611 AWAVI..AUATL.%.. 0c40 20005548 8d2d1611 20005341 89fd4989 .UH.-.. .SA..I. 0c50 f64c29e5 4883ec08 48c1fd03 e877fbff .L).H...H....w.. 0c60 ff4885ed 742031db 0f1f8400 00000000 .H..t 1......... 0c70 4c89fa4c 89f64489 ef41ff14 dc4883c3 L..L..D..A...H.. 0c80 014839dd 75ea4883 c4085b5d 415c415d .H9.u.H...[]A\A] 0c90 415e415f c390662e 0f1f8400 00000000 A^A_..f......... 0ca0 f3c3 .. Contents of section .fini: 0ca4 4883ec08 4883c408 c3 H...H.... Contents of section .rodata: 0cb0 01000200 4572726f 723a2025 730a0072 ....Error: %s..r 0cc0 00707764 2e747874 0063616e 6e6f7420 .pwd.txt.cannot 0cd0 6f70656e 20706173 73776f72 64206669 open password fi 0ce0 6c650049 6e736572 74207061 7373776f le.Insert passwo 0cf0 72643a20 00417574 68656e74 69636174 rd: .Authenticat 0d00 65642100 50617373 776f7264 2073686f ed!.Password sho 0d10 756c6420 62652025 6c642063 68617273 uld be %ld chars 0d20 0a007772 6f6e6720 70617373 776f7264 ..wrong password 0d30 2100 !. Contents of section .eh_frame_hdr: 0d34 011b033b 50000000 09000000 bcfaffff ...;P........... 0d44 9c000000 9cfbffff c4000000 acfbffff ................ 0d54 6c000000 b6fcffff dc000000 02fdffff l............... 0d64 f8000000 a3fdffff 18010000 1ffeffff ................ 0d74 38010000 fcfeffff 5c010000 6cffffff 8.......\...l... 0d84 a4010000 .... Contents of section .eh_frame: 0d88 14000000 00000000 017a5200 01781001 .........zR..x.. 0d98 1b0c0708 90010710 14000000 1c000000 ................ 0da8 38fbffff 2b000000 00000000 00000000 8...+........... 0db8 14000000 00000000 017a5200 01781001 .........zR..x.. 0dc8 1b0c0708 90010000 24000000 1c000000 ........$....... 0dd8 18faffff e0000000 000e1046 0e184a0f ...........F..J. 0de8 0b770880 003f1a3b 2a332422 00000000 .w...?.;*3$".... 0df8 14000000 44000000 d0faffff 08000000 ....D........... 0e08 00000000 00000000 18000000 5c000000 ............\... 0e18 d2fbffff 4c000000 00410e10 8602430d ....L....A....C. 0e28 06000000 1c000000 78000000 02fcffff ........x....... 0e38 a1000000 00410e10 8602430d 06029c0c .....A....C..... 0e48 07080000 1c000000 98000000 83fcffff ................ 0e58 7c000000 00410e10 8602430d 0602770c |....A....C...w. 0e68 07080000 20000000 b8000000 dffcffff .... ........... 0e78 d5000000 00410e10 8602430d 06458303 .....A....C..E.. 0e88 02cb0c07 08000000 44000000 dc000000 ........D....... 0e98 98fdffff 65000000 00420e10 8f02420e ....e....B....B. 0ea8 188e0345 0e208d04 420e288c 05480e30 ...E. ..B.(..H.0 0eb8 8606480e 3883074d 0e40720e 38410e30 ..H.8..M.@r.8A.0 0ec8 410e2842 0e20420e 18420e10 420e0800 A.(B. B..B..B... 0ed8 10000000 24010000 c0fdffff 02000000 ....$........... 0ee8 00000000 00000000 ........ Contents of section .init_array: 201d58 e0090000 00000000 ........ Contents of section .fini_array: 201d60 a0090000 00000000 ........ Contents of section .dynamic: 201d68 01000000 00000000 01000000 00000000 ................ 201d78 0c000000 00000000 d8070000 00000000 ................ 201d88 0d000000 00000000 a40c0000 00000000 ................ 201d98 19000000 00000000 581d2000 00000000 ........X. ..... 201da8 1b000000 00000000 08000000 00000000 ................ 201db8 1a000000 00000000 601d2000 00000000 ........`. ..... 201dc8 1c000000 00000000 08000000 00000000 ................ 201dd8 f5feff6f 00000000 98020000 00000000 ...o............ 201de8 05000000 00000000 a0040000 00000000 ................ 201df8 06000000 00000000 c0020000 00000000 ................ 201e08 0a000000 00000000 d9000000 00000000 ................ 201e18 0b000000 00000000 18000000 00000000 ................ 201e28 15000000 00000000 00000000 00000000 ................ 201e38 03000000 00000000 581f2000 00000000 ........X. ..... 201e48 02000000 00000000 38010000 00000000 ........8....... 201e58 14000000 00000000 07000000 00000000 ................ 201e68 17000000 00000000 a0060000 00000000 ................ 201e78 07000000 00000000 c8050000 00000000 ................ 201e88 08000000 00000000 d8000000 00000000 ................ 201e98 09000000 00000000 18000000 00000000 ................ 201ea8 1e000000 00000000 08000000 00000000 ................ 201eb8 fbffff6f 00000000 01000008 00000000 ...o............ 201ec8 feffff6f 00000000 a8050000 00000000 ...o............ 201ed8 ffffff6f 00000000 01000000 00000000 ...o............ 201ee8 f0ffff6f 00000000 7a050000 00000000 ...o....z....... 201ef8 f9ffff6f 00000000 03000000 00000000 ...o............ 201f08 00000000 00000000 00000000 00000000 ................ 201f18 00000000 00000000 00000000 00000000 ................ 201f28 00000000 00000000 00000000 00000000 ................ 201f38 00000000 00000000 00000000 00000000 ................ 201f48 00000000 00000000 00000000 00000000 ................ Contents of section .got: 201f58 681d2000 00000000 00000000 00000000 h. ............. 201f68 00000000 00000000 06080000 00000000 ................ 201f78 16080000 00000000 26080000 00000000 ........&....... 201f88 36080000 00000000 46080000 00000000 6.......F....... 201f98 56080000 00000000 66080000 00000000 V.......f....... 201fa8 76080000 00000000 86080000 00000000 v............... 201fb8 96080000 00000000 a6080000 00000000 ................ 201fc8 b6080000 00000000 c6080000 00000000 ................ 201fd8 00000000 00000000 00000000 00000000 ................ 201fe8 00000000 00000000 00000000 00000000 ................ 201ff8 00000000 00000000 ........ Contents of section .data: 202000 00000000 00000000 08202000 00000000 ......... ..... Contents of section .comment: 0000 4743433a 20285562 756e7475 20372e34 GCC: (Ubuntu 7.4 0010 2e302d31 7562756e 7475317e 31382e30 .0-1ubuntu1~18.0 0020 342e3129 20372e34 2e3000 4.1) 7.4.0. Disassembly of section .init: 00000000000007d8 <_init>: 7d8: 48 83 ec 08 sub rsp,0x8 7dc: 48 8b 05 05 18 20 00 mov rax,QWORD PTR [rip+0x201805] # 201fe8 <__gmon_start__> 7e3: 48 85 c0 test rax,rax 7e6: 74 02 je 7ea <_init+0x12> 7e8: ff d0 call rax 7ea: 48 83 c4 08 add rsp,0x8 7ee: c3 ret Disassembly of section .plt: 00000000000007f0 <.plt>: 7f0: ff 35 6a 17 20 00 push QWORD PTR [rip+0x20176a] # 201f60 <_GLOBAL_OFFSET_TABLE_+0x8> 7f6: ff 25 6c 17 20 00 jmp QWORD PTR [rip+0x20176c] # 201f68 <_GLOBAL_OFFSET_TABLE_+0x10> 7fc: 0f 1f 40 00 nop DWORD PTR [rax+0x0] 0000000000000800 <free@plt>: 800: ff 25 6a 17 20 00 jmp QWORD PTR [rip+0x20176a] # 201f70 <free@GLIBC_2.2.5> 806: 68 00 00 00 00 push 0x0 80b: e9 e0 ff ff ff jmp 7f0 <.plt> 0000000000000810 <strncmp@plt>: 810: ff 25 62 17 20 00 jmp QWORD PTR [rip+0x201762] # 201f78 <strncmp@GLIBC_2.2.5> 816: 68 01 00 00 00 push 0x1 81b: e9 d0 ff ff ff jmp 7f0 <.plt> 0000000000000820 <puts@plt>: 820: ff 25 5a 17 20 00 jmp QWORD PTR [rip+0x20175a] # 201f80 <puts@GLIBC_2.2.5> 826: 68 02 00 00 00 push 0x2 82b: e9 c0 ff ff ff jmp 7f0 <.plt> 0000000000000830 <fclose@plt>: 830: ff 25 52 17 20 00 jmp QWORD PTR [rip+0x201752] # 201f88 <fclose@GLIBC_2.2.5> 836: 68 03 00 00 00 push 0x3 83b: e9 b0 ff ff ff jmp 7f0 <.plt> 0000000000000840 <strlen@plt>: 840: ff 25 4a 17 20 00 jmp QWORD PTR [rip+0x20174a] # 201f90 <strlen@GLIBC_2.2.5> 846: 68 04 00 00 00 push 0x4 84b: e9 a0 ff ff ff jmp 7f0 <.plt> 0000000000000850 <printf@plt>: 850: ff 25 42 17 20 00 jmp QWORD PTR [rip+0x201742] # 201f98 <printf@GLIBC_2.2.5> 856: 68 05 00 00 00 push 0x5 85b: e9 90 ff ff ff jmp 7f0 <.plt> 0000000000000860 <memset@plt>: 860: ff 25 3a 17 20 00 jmp QWORD PTR [rip+0x20173a] # 201fa0 <memset@GLIBC_2.2.5> 866: 68 06 00 00 00 push 0x6 86b: e9 80 ff ff ff jmp 7f0 <.plt> 0000000000000870 <fgetc@plt>: 870: ff 25 32 17 20 00 jmp QWORD PTR [rip+0x201732] # 201fa8 <fgetc@GLIBC_2.2.5> 876: 68 07 00 00 00 push 0x7 87b: e9 70 ff ff ff jmp 7f0 <.plt> 0000000000000880 <getchar@plt>: 880: ff 25 2a 17 20 00 jmp QWORD PTR [rip+0x20172a] # 201fb0 <getchar@GLIBC_2.2.5> 886: 68 08 00 00 00 push 0x8 88b: e9 60 ff ff ff jmp 7f0 <.plt> 0000000000000890 <malloc@plt>: 890: ff 25 22 17 20 00 jmp QWORD PTR [rip+0x201722] # 201fb8 <malloc@GLIBC_2.2.5> 896: 68 09 00 00 00 push 0x9 89b: e9 50 ff ff ff jmp 7f0 <.plt> 00000000000008a0 <fflush@plt>: 8a0: ff 25 1a 17 20 00 jmp QWORD PTR [rip+0x20171a] # 201fc0 <fflush@GLIBC_2.2.5> 8a6: 68 0a 00 00 00 push 0xa 8ab: e9 40 ff ff ff jmp 7f0 <.plt> 00000000000008b0 <fopen@plt>: 8b0: ff 25 12 17 20 00 jmp QWORD PTR [rip+0x201712] # 201fc8 <fopen@GLIBC_2.2.5> 8b6: 68 0b 00 00 00 push 0xb 8bb: e9 30 ff ff ff jmp 7f0 <.plt> 00000000000008c0 <exit@plt>: 8c0: ff 25 0a 17 20 00 jmp QWORD PTR [rip+0x20170a] # 201fd0 <exit@GLIBC_2.2.5> 8c6: 68 0c 00 00 00 push 0xc 8cb: e9 20 ff ff ff jmp 7f0 <.plt> Disassembly of section .plt.got: 00000000000008d0 <__cxa_finalize@plt>: 8d0: ff 25 22 17 20 00 jmp QWORD PTR [rip+0x201722] # 201ff8 <__cxa_finalize@GLIBC_2.2.5> 8d6: 66 90 xchg ax,ax Disassembly of section .text: 00000000000008e0 <_start>: 8e0: 31 ed xor ebp,ebp 8e2: 49 89 d1 mov r9,rdx 8e5: 5e pop rsi 8e6: 48 89 e2 mov rdx,rsp 8e9: 48 83 e4 f0 and rsp,0xfffffffffffffff0 8ed: 50 push rax 8ee: 54 push rsp 8ef: 4c 8d 05 aa 03 00 00 lea r8,[rip+0x3aa] # ca0 <__libc_csu_fini> 8f6: 48 8d 0d 33 03 00 00 lea rcx,[rip+0x333] # c30 <__libc_csu_init> 8fd: 48 8d 3d 4f 02 00 00 lea rdi,[rip+0x24f] # b53 <main> 904: ff 15 d6 16 20 00 call QWORD PTR [rip+0x2016d6] # 201fe0 <__libc_start_main@GLIBC_2.2.5> 90a: f4 hlt 90b: 0f 1f 44 00 00 nop DWORD PTR [rax+rax*1+0x0] 0000000000000910 <deregister_tm_clones>: 910: 48 8d 3d f9 16 20 00 lea rdi,[rip+0x2016f9] # 202010 <stdout@@GLIBC_2.2.5> 917: 55 push rbp 918: 48 8d 05 f1 16 20 00 lea rax,[rip+0x2016f1] # 202010 <stdout@@GLIBC_2.2.5> 91f: 48 39 f8 cmp rax,rdi 922: 48 89 e5 mov rbp,rsp 925: 74 19 je 940 <deregister_tm_clones+0x30> 927: 48 8b 05 aa 16 20 00 mov rax,QWORD PTR [rip+0x2016aa] # 201fd8 <_ITM_deregisterTMCloneTable> 92e: 48 85 c0 test rax,rax 931: 74 0d je 940 <deregister_tm_clones+0x30> 933: 5d pop rbp 934: ff e0 jmp rax 936: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] 93d: 00 00 00 940: 5d pop rbp 941: c3 ret 942: 0f 1f 40 00 nop DWORD PTR [rax+0x0] 946: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] 94d: 00 00 00 0000000000000950 <register_tm_clones>: 950: 48 8d 3d b9 16 20 00 lea rdi,[rip+0x2016b9] # 202010 <stdout@@GLIBC_2.2.5> 957: 48 8d 35 b2 16 20 00 lea rsi,[rip+0x2016b2] # 202010 <stdout@@GLIBC_2.2.5> 95e: 55 push rbp 95f: 48 29 fe sub rsi,rdi 962: 48 89 e5 mov rbp,rsp 965: 48 c1 fe 03 sar rsi,0x3 969: 48 89 f0 mov rax,rsi 96c: 48 c1 e8 3f shr rax,0x3f 970: 48 01 c6 add rsi,rax 973: 48 d1 fe sar rsi,1 976: 74 18 je 990 <register_tm_clones+0x40> 978: 48 8b 05 71 16 20 00 mov rax,QWORD PTR [rip+0x201671] # 201ff0 <_ITM_registerTMCloneTable> 97f: 48 85 c0 test rax,rax 982: 74 0c je 990 <register_tm_clones+0x40> 984: 5d pop rbp 985: ff e0 jmp rax 987: 66 0f 1f 84 00 00 00 nop WORD PTR [rax+rax*1+0x0] 98e: 00 00 990: 5d pop rbp 991: c3 ret 992: 0f 1f 40 00 nop DWORD PTR [rax+0x0] 996: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] 99d: 00 00 00 00000000000009a0 <__do_global_dtors_aux>: 9a0: 80 3d 71 16 20 00 00 cmp BYTE PTR [rip+0x201671],0x0 # 202018 <completed.7697> 9a7: 75 2f jne 9d8 <__do_global_dtors_aux+0x38> 9a9: 48 83 3d 47 16 20 00 cmp QWORD PTR [rip+0x201647],0x0 # 201ff8 <__cxa_finalize@GLIBC_2.2.5> 9b0: 00 9b1: 55 push rbp 9b2: 48 89 e5 mov rbp,rsp 9b5: 74 0c je 9c3 <__do_global_dtors_aux+0x23> 9b7: 48 8b 3d 4a 16 20 00 mov rdi,QWORD PTR [rip+0x20164a] # 202008 <__dso_handle> 9be: e8 0d ff ff ff call 8d0 <__cxa_finalize@plt> 9c3: e8 48 ff ff ff call 910 <deregister_tm_clones> 9c8: c6 05 49 16 20 00 01 mov BYTE PTR [rip+0x201649],0x1 # 202018 <completed.7697> 9cf: 5d pop rbp 9d0: c3 ret 9d1: 0f 1f 80 00 00 00 00 nop DWORD PTR [rax+0x0] 9d8: f3 c3 repz ret 9da: 66 0f 1f 44 00 00 nop WORD PTR [rax+rax*1+0x0] 00000000000009e0 <frame_dummy>: 9e0: 55 push rbp 9e1: 48 89 e5 mov rbp,rsp 9e4: 5d pop rbp 9e5: e9 66 ff ff ff jmp 950 <register_tm_clones> 00000000000009ea <die>: 9ea: 55 push rbp 9eb: 48 89 e5 mov rbp,rsp 9ee: 48 83 ec 10 sub rsp,0x10 9f2: 48 89 7d f8 mov QWORD PTR [rbp-0x8],rdi 9f6: 48 8b 45 f8 mov rax,QWORD PTR [rbp-0x8] 9fa: 48 89 c6 mov rsi,rax 9fd: 48 8d 3d b0 02 00 00 lea rdi,[rip+0x2b0] # cb4 <_IO_stdin_used+0x4> a04: b8 00 00 00 00 mov eax,0x0 a09: e8 42 fe ff ff call 850 <printf@plt> a0e: 48 8b 05 fb 15 20 00 mov rax,QWORD PTR [rip+0x2015fb] # 202010 <stdout@@GLIBC_2.2.5> a15: 48 89 c7 mov rdi,rax a18: e8 83 fe ff ff call 8a0 <fflush@plt> a1d: 48 8b 05 0c 16 20 00 mov rax,QWORD PTR [rip+0x20160c] # 202030 <buffer1> a24: 48 89 c7 mov rdi,rax a27: e8 d4 fd ff ff call 800 <free@plt> a2c: bf 01 00 00 00 mov edi,0x1 a31: e8 8a fe ff ff call 8c0 <exit@plt> 0000000000000a36 <readPwd>: a36: 55 push rbp a37: 48 89 e5 mov rbp,rsp a3a: 48 83 ec 10 sub rsp,0x10 a3e: bf 10 00 00 00 mov edi,0x10 a43: e8 48 fe ff ff call 890 <malloc@plt> a48: 48 89 05 e1 15 20 00 mov QWORD PTR [rip+0x2015e1],rax # 202030 <buffer1> a4f: 48 8d 35 69 02 00 00 lea rsi,[rip+0x269] # cbf <_IO_stdin_used+0xf> a56: 48 8d 3d 64 02 00 00 lea rdi,[rip+0x264] # cc1 <_IO_stdin_used+0x11> a5d: e8 4e fe ff ff call 8b0 <fopen@plt> ; fp = fopen() a62: 48 89 45 f8 mov QWORD PTR [rbp-0x8],rax ; a66: 48 83 7d f8 00 cmp QWORD PTR [rbp-0x8],0x0 a6b: 75 0c jne a79 <readPwd+0x43> ; if File not opened a6d: 48 8d 3d 55 02 00 00 lea rdi,[rip+0x255] # cc9 <_IO_stdin_used+0x19> a74: e8 71 ff ff ff call 9ea <die> ; Die a79: c7 45 f4 00 00 00 00 mov DWORD PTR [rbp-0xc],0x0 ; Else for i = 0; a80: eb 19 jmp a9b <readPwd+0x65> a82: 48 8b 15 a7 15 20 00 mov rdx,QWORD PTR [rip+0x2015a7] # 202030 <buffer1> a89: 8b 45 f4 mov eax,DWORD PTR [rbp-0xc] a8c: 48 98 cdqe a8e: 48 01 c2 add rdx,rax ; *buffer1 = *buffer1 + i a91: 0f b6 45 f3 movzx eax,BYTE PTR [rbp-0xd] ; load c to ax a95: 88 02 mov BYTE PTR [rdx],al ; *buffer1 = c a97: 83 45 f4 01 add DWORD PTR [rbp-0xc],0x1 ; i=i+i ; for(i=0; i != 14; i++) a9b: 83 7d f4 0e cmp DWORD PTR [rbp-0xc],0xe a9f: 7f 15 jg ab6 <readPwd+0x80> aa1: 48 8b 45 f8 mov rax,QWORD PTR [rbp-0x8] aa5: 48 89 c7 mov rdi,rax aa8: e8 c3 fd ff ff call 870 <fgetc@plt> aad: 88 45 f3 mov BYTE PTR [rbp-0xd],al ; c = fgetc(fp) ; if c == 0xff (c=rbp-0xd) ab0: 80 7d f3 ff cmp BYTE PTR [rbp-0xd],0xff ab4: 75 cc jne a82 <readPwd+0x4c> ; endfor ab6: 48 8b 15 73 15 20 00 mov rdx,QWORD PTR [rip+0x201573] # 202030 <buffer1> abd: 8b 45 f4 mov eax,DWORD PTR [rbp-0xc] ; add endline ac0: 48 98 cdqe ac2: 48 01 d0 add rax,rdx ac5: c6 00 00 mov BYTE PTR [rax],0x0 ac8: 48 8b 45 f8 mov rax,QWORD PTR [rbp-0x8] acc: 48 89 c7 mov rdi,rax acf: e8 5c fd ff ff call 830 <fclose@plt> ad4: 90 nop ad5: c9 leave ad6: c3 ret 0000000000000ad7 <askPwd>: ad7: 55 push rbp ad8: 48 89 e5 mov rbp,rsp adb: 48 83 ec 10 sub rsp,0x10 adf: 48 8d 3d fd 01 00 00 lea rdi,[rip+0x1fd] ; "Insert password: " ae6: b8 00 00 00 00 mov eax,0x0 aeb: e8 60 fd ff ff call 850 <printf@plt> af0: 48 8b 05 19 15 20 00 mov rax,QWORD PTR [rip+0x201519] # 202010 <stdout@@GLIBC_2.2.5> af7: 48 89 c7 mov rdi,rax afa: e8 a1 fd ff ff call 8a0 <fflush@plt> aff: ba 10 00 00 00 mov edx,0x10 b04: be 00 00 00 00 mov esi,0x0 b09: 48 8d 3d 10 15 20 00 lea rdi,[rip+0x201510] # 202020 <buffer2> b10: e8 4b fd ff ff call 860 <memset@plt> ; memset(buffer2, esi, edx) b15: c7 45 fc 00 00 00 00 mov DWORD PTR [rbp-0x4],0x0 ; i = 0; b1c: eb 18 jmp b36 <askPwd+0x5f> ; for (i=0; i!=15 || c!=0xff; i++) b36: 83 7d fc 10 cmp DWORD PTR [rbp-0x4],0x10 b3a: 7f 14 jg b50 <askPwd+0x79> b3c: e8 3f fd ff ff call 880 <getchar@plt> b41: 88 45 fb mov BYTE PTR [rbp-0x5],al b44: 80 7d fb ff cmp BYTE PTR [rbp-0x5],0xff ; c == 0xff jump b48: 74 06 je b50 <askPwd+0x79> b4a: 80 7d fb 0a cmp BYTE PTR [rbp-0x5],0xa ; if c != 0xa (\n) b4e: 75 ce jne b1e <askPwd+0x47> b1e: 8b 45 fc mov eax,DWORD PTR [rbp-0x4] b21: 48 63 d0 movsxd rdx,eax b24: 48 8d 05 f5 14 20 00 lea rax,[rip+0x2014f5] # 202020 <buffer2> b2b: 0f b6 4d fb movzx ecx,BYTE PTR [rbp-0x5] b2f: 88 0c 02 mov BYTE PTR [rdx+rax*1],cl ; buffer2[i] = c b32: 83 45 fc 01 add DWORD PTR [rbp-0x4],0x1 ; i++ b50: 90 nop b51: c9 leave b52: c3 ret 0000000000000b53 <main>: b53: 55 push rbp b54: 48 89 e5 mov rbp,rsp b57: 53 push rbx b58: 48 83 ec 18 sub rsp,0x18 b5c: 89 7d ec mov DWORD PTR [rbp-0x14],edi b5f: 48 89 75 e0 mov QWORD PTR [rbp-0x20], b63: b8 00 00 00 00 mov eax,0x0 b68: e8 c9 fe ff ff call a36 <readPwd> b6d: b8 00 00 00 00 mov eax,0x0 b72: e8 60 ff ff ff call ad7 <askPwd> b77: 48 8b 05 b2 14 20 00 mov rax,QWORD PTR [rip+0x2014b2] # 202030 <buffer1> b7e: ba 0f 00 00 00 mov edx,0xf b83: 48 8d 35 96 14 20 00 lea rsi,[rip+0x201496] # 202020 <buffer2> b8a: 48 89 c7 mov rdi,rax b8d: e8 7e fc ff ff call 810 <strncmp@plt> b92: 85 c0 test eax,eax b94: 75 34 jne bca <main+0x77> b96: 48 8d 3d 58 01 00 00 lea rdi,[rip+0x158] ; Authenticated! b9d: e8 7e fc ff ff call 820 <puts@plt> ba2: 48 8b 05 67 14 20 00 mov rax,QWORD PTR [rip+0x201467] # 202010 <stdout@@GLIBC_2.2.5> ba9: 48 89 c7 mov rdi,rax bac: e8 ef fc ff ff call 8a0 <fflush@plt> bb1: 48 8b 05 78 14 20 00 mov rax,QWORD PTR [rip+0x201478] # 202030 <buffer1> bb8: 48 89 c7 mov rdi,rax bbb: e8 40 fc ff ff call 800 <free@plt> bc0: bf 00 00 00 00 mov edi,0x0 bc5: e8 f6 fc ff ff call 8c0 <exit@plt> bca: 48 8b 05 5f 14 20 00 mov rax,QWORD PTR [rip+0x20145f] # 202030 <buffer1> bd1: 48 89 c7 mov rdi,rax bd4: e8 67 fc ff ff call 840 <strlen@plt> bd9: 48 89 c3 mov rbx,rax bdc: 48 8d 3d 3d 14 20 00 lea rdi,[rip+0x20143d] # 202020 <buffer2> be3: e8 58 fc ff ff call 840 <strlen@plt> be8: 48 39 c3 cmp rbx,rax beb: 74 23 je c10 <main+0xbd> bed: 48 8b 05 3c 14 20 00 mov rax,QWORD PTR [rip+0x20143c] # 202030 <buffer1> bf4: 48 89 c7 mov rdi,rax bf7: e8 44 fc ff ff call 840 <strlen@plt> bfc: 48 89 c6 mov rsi,rax bff: 48 8d 3d fe 00 00 00 lea rdi,[rip+0xfe] ; Password should be %ld chars c06: b8 00 00 00 00 mov eax,0x0 c0b: e8 40 fc ff ff call 850 <printf@plt> c10: 48 8d 3d 0b 01 00 00 lea rdi,[rip+0x10b] ; Wrong Password c17: e8 ce fd ff ff call 9ea <die> c1c: b8 00 00 00 00 mov eax,0x0 c21: 48 83 c4 18 add rsp,0x18 c25: 5b pop rbx c26: 5d pop rbp c27: c3 ret c28: 0f 1f 84 00 00 00 00 nop DWORD PTR [rax+rax*1+0x0] c2f: 00 0000000000000c30 <__libc_csu_init>: c30: 41 57 push r15 c32: 41 56 push r14 c34: 49 89 d7 mov r15,rdx c37: 41 55 push r13 c39: 41 54 push r12 c3b: 4c 8d 25 16 11 20 00 lea r12,[rip+0x201116] # 201d58 <__frame_dummy_init_array_entry> c42: 55 push rbp c43: 48 8d 2d 16 11 20 00 lea rbp,[rip+0x201116] # 201d60 <__init_array_end> c4a: 53 push rbx c4b: 41 89 fd mov r13d,edi c4e: 49 89 f6 mov r14,rsi c51: 4c 29 e5 sub rbp,r12 c54: 48 83 ec 08 sub rsp,0x8 c58: 48 c1 fd 03 sar rbp,0x3 c5c: e8 77 fb ff ff call 7d8 <_init> c61: 48 85 ed test rbp,rbp c64: 74 20 je c86 <__libc_csu_init+0x56> c66: 31 db xor ebx,ebx c68: 0f 1f 84 00 00 00 00 nop DWORD PTR [rax+rax*1+0x0] c6f: 00 c70: 4c 89 fa mov rdx,r15 c73: 4c 89 f6 mov rsi,r14 c76: 44 89 ef mov edi,r13d c79: 41 ff 14 dc call QWORD PTR [r12+rbx*8] c7d: 48 83 c3 01 add rbx,0x1 c81: 48 39 dd cmp rbp,rbx c84: 75 ea jne c70 <__libc_csu_init+0x40> c86: 48 83 c4 08 add rsp,0x8 c8a: 5b pop rbx c8b: 5d pop rbp c8c: 41 5c pop r12 c8e: 41 5d pop r13 c90: 41 5e pop r14 c92: 41 5f pop r15 c94: c3 ret c95: 90 nop c96: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] c9d: 00 00 00 0000000000000ca0 <__libc_csu_fini>: ca0: f3 c3 repz ret Disassembly of section .fini: 0000000000000ca4 <_fini>: ca4: 48 83 ec 08 sub rsp,0x8 ca8: 48 83 c4 08 add rsp,0x8 cac: c3 ret
49.686416
109
0.577407
73b6be13ffb236a43cca14302eb10e279556d9a5
590
asm
Assembly
libsrc/_DEVELOPMENT/string/z80/asm_strupr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/z80/asm_strupr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/z80/asm_strupr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; Dec 2013 ; =============================================================== ; ; char *strupr(char *s) ; ; Change letters in string s to uppercase. ; ; =============================================================== SECTION code_clib SECTION code_string PUBLIC asm_strupr EXTERN asm_toupper asm_strupr: ; enter: hl = char *s ; ; exit : hl = char *s ; ; uses : af push hl loop: ld a,(hl) or a jr z, exit call asm_toupper ld (hl),a inc hl jr loop exit: pop hl ret
13.111111
65
0.388136
a98ad169c04b99cc6e595baab68ad2d5333c89c2
110,826
asm
Assembly
sh.asm
romulomrossi/StrideSchedulerForXV6
2686824ab4e3d54074e1f3424427178833d499d6
[ "MIT-0" ]
null
null
null
sh.asm
romulomrossi/StrideSchedulerForXV6
2686824ab4e3d54074e1f3424427178833d499d6
[ "MIT-0" ]
null
null
null
sh.asm
romulomrossi/StrideSchedulerForXV6
2686824ab4e3d54074e1f3424427178833d499d6
[ "MIT-0" ]
null
null
null
_sh: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return 0; } int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp static char buf[100]; int fd; // Ensure that three file descriptors are open. while((fd = open("console", O_RDWR)) >= 0){ 11: eb 0e jmp 21 <main+0x21> 13: 90 nop 14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(fd >= 3){ 18: 83 f8 02 cmp $0x2,%eax 1b: 0f 8f c9 00 00 00 jg ea <main+0xea> { static char buf[100]; int fd; // Ensure that three file descriptors are open. while((fd = open("console", O_RDWR)) >= 0){ 21: 83 ec 08 sub $0x8,%esp 24: 6a 02 push $0x2 26: 68 11 12 00 00 push $0x1211 2b: e8 02 0d 00 00 call d32 <open> 30: 83 c4 10 add $0x10,%esp 33: 85 c0 test %eax,%eax 35: 79 e1 jns 18 <main+0x18> 37: eb 25 jmp 5e <main+0x5e> 39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } } // Read and run input commands. while(getcmd(buf, sizeof(buf)) >= 0){ if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ 40: 80 3d 22 18 00 00 20 cmpb $0x20,0x1822 47: 74 60 je a9 <main+0xa9> 49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi buf[strlen(buf)-1] = 0; // chop \n if(chdir(buf+3) < 0) printf(2, "cannot cd %s\n", buf+3); continue; } if(fork1() == 0) 50: e8 1b 01 00 00 call 170 <fork1> 55: 85 c0 test %eax,%eax 57: 74 36 je 8f <main+0x8f> runcmd(parsecmd(buf)); wait(); 59: e8 9c 0c 00 00 call cfa <wait> break; } } // Read and run input commands. while(getcmd(buf, sizeof(buf)) >= 0){ 5e: 83 ec 08 sub $0x8,%esp 61: 6a 64 push $0x64 63: 68 20 18 00 00 push $0x1820 68: e8 93 00 00 00 call 100 <getcmd> 6d: 83 c4 10 add $0x10,%esp 70: 85 c0 test %eax,%eax 72: 78 30 js a4 <main+0xa4> if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ 74: 80 3d 20 18 00 00 63 cmpb $0x63,0x1820 7b: 75 d3 jne 50 <main+0x50> 7d: 80 3d 21 18 00 00 64 cmpb $0x64,0x1821 84: 74 ba je 40 <main+0x40> buf[strlen(buf)-1] = 0; // chop \n if(chdir(buf+3) < 0) printf(2, "cannot cd %s\n", buf+3); continue; } if(fork1() == 0) 86: e8 e5 00 00 00 call 170 <fork1> 8b: 85 c0 test %eax,%eax 8d: 75 ca jne 59 <main+0x59> runcmd(parsecmd(buf)); 8f: 83 ec 0c sub $0xc,%esp 92: 68 20 18 00 00 push $0x1820 97: e8 a4 09 00 00 call a40 <parsecmd> 9c: 89 04 24 mov %eax,(%esp) 9f: e8 fc 00 00 00 call 1a0 <runcmd> wait(); } exit(); a4: e8 49 0c 00 00 call cf2 <exit> // Read and run input commands. while(getcmd(buf, sizeof(buf)) >= 0){ if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ // Chdir must be called by the parent, not the child. buf[strlen(buf)-1] = 0; // chop \n a9: 83 ec 0c sub $0xc,%esp ac: 68 20 18 00 00 push $0x1820 b1: e8 7a 0a 00 00 call b30 <strlen> if(chdir(buf+3) < 0) b6: c7 04 24 23 18 00 00 movl $0x1823,(%esp) // Read and run input commands. while(getcmd(buf, sizeof(buf)) >= 0){ if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ // Chdir must be called by the parent, not the child. buf[strlen(buf)-1] = 0; // chop \n bd: c6 80 1f 18 00 00 00 movb $0x0,0x181f(%eax) if(chdir(buf+3) < 0) c4: e8 99 0c 00 00 call d62 <chdir> c9: 83 c4 10 add $0x10,%esp cc: 85 c0 test %eax,%eax ce: 79 8e jns 5e <main+0x5e> printf(2, "cannot cd %s\n", buf+3); d0: 50 push %eax d1: 68 23 18 00 00 push $0x1823 d6: 68 19 12 00 00 push $0x1219 db: 6a 02 push $0x2 dd: e8 6e 0d 00 00 call e50 <printf> e2: 83 c4 10 add $0x10,%esp e5: e9 74 ff ff ff jmp 5e <main+0x5e> int fd; // Ensure that three file descriptors are open. while((fd = open("console", O_RDWR)) >= 0){ if(fd >= 3){ close(fd); ea: 83 ec 0c sub $0xc,%esp ed: 50 push %eax ee: e8 27 0c 00 00 call d1a <close> break; f3: 83 c4 10 add $0x10,%esp f6: e9 63 ff ff ff jmp 5e <main+0x5e> fb: 66 90 xchg %ax,%ax fd: 66 90 xchg %ax,%ax ff: 90 nop 00000100 <getcmd>: exit(); } int getcmd(char *buf, int nbuf) { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 56 push %esi 104: 53 push %ebx 105: 8b 75 0c mov 0xc(%ebp),%esi 108: 8b 5d 08 mov 0x8(%ebp),%ebx printf(2, "$ "); 10b: 83 ec 08 sub $0x8,%esp 10e: 68 70 11 00 00 push $0x1170 113: 6a 02 push $0x2 115: e8 36 0d 00 00 call e50 <printf> memset(buf, 0, nbuf); 11a: 83 c4 0c add $0xc,%esp 11d: 56 push %esi 11e: 6a 00 push $0x0 120: 53 push %ebx 121: e8 3a 0a 00 00 call b60 <memset> gets(buf, nbuf); 126: 58 pop %eax 127: 5a pop %edx 128: 56 push %esi 129: 53 push %ebx 12a: e8 91 0a 00 00 call bc0 <gets> 12f: 83 c4 10 add $0x10,%esp 132: 31 c0 xor %eax,%eax 134: 80 3b 00 cmpb $0x0,(%ebx) 137: 0f 94 c0 sete %al if(buf[0] == 0) // EOF return -1; return 0; } 13a: 8d 65 f8 lea -0x8(%ebp),%esp 13d: f7 d8 neg %eax 13f: 5b pop %ebx 140: 5e pop %esi 141: 5d pop %ebp 142: c3 ret 143: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000150 <panic>: exit(); } void panic(char *s) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 83 ec 0c sub $0xc,%esp printf(2, "%s\n", s); 156: ff 75 08 pushl 0x8(%ebp) 159: 68 0d 12 00 00 push $0x120d 15e: 6a 02 push $0x2 160: e8 eb 0c 00 00 call e50 <printf> exit(); 165: e8 88 0b 00 00 call cf2 <exit> 16a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000170 <fork1>: } int fork1(void) { 170: 55 push %ebp 171: 89 e5 mov %esp,%ebp 173: 83 ec 14 sub $0x14,%esp int pid; pid = fork(DEFAULT_PROC_TICKETS); 176: 6a 14 push $0x14 178: e8 6d 0b 00 00 call cea <fork> if(pid == -1) 17d: 83 c4 10 add $0x10,%esp 180: 83 f8 ff cmp $0xffffffff,%eax 183: 74 02 je 187 <fork1+0x17> panic("fork"); return pid; } 185: c9 leave 186: c3 ret { int pid; pid = fork(DEFAULT_PROC_TICKETS); if(pid == -1) panic("fork"); 187: 83 ec 0c sub $0xc,%esp 18a: 68 73 11 00 00 push $0x1173 18f: e8 bc ff ff ff call 150 <panic> 194: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 19a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000001a0 <runcmd>: struct cmd *parsecmd(char*); // Execute cmd. Never returns. void runcmd(struct cmd *cmd) { 1a0: 55 push %ebp 1a1: 89 e5 mov %esp,%ebp 1a3: 53 push %ebx 1a4: 83 ec 14 sub $0x14,%esp 1a7: 8b 5d 08 mov 0x8(%ebp),%ebx struct execcmd *ecmd; struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if(cmd == 0) 1aa: 85 db test %ebx,%ebx 1ac: 74 64 je 212 <runcmd+0x72> exit(); switch(cmd->type){ 1ae: 83 3b 05 cmpl $0x5,(%ebx) 1b1: 0f 87 d8 00 00 00 ja 28f <runcmd+0xef> 1b7: 8b 03 mov (%ebx),%eax 1b9: ff 24 85 28 12 00 00 jmp *0x1228(,%eax,4) runcmd(lcmd->right); break; case PIPE: pcmd = (struct pipecmd*)cmd; if(pipe(p) < 0) 1c0: 8d 45 f0 lea -0x10(%ebp),%eax 1c3: 83 ec 0c sub $0xc,%esp 1c6: 50 push %eax 1c7: e8 36 0b 00 00 call d02 <pipe> 1cc: 83 c4 10 add $0x10,%esp 1cf: 85 c0 test %eax,%eax 1d1: 0f 88 c5 00 00 00 js 29c <runcmd+0xfc> panic("pipe"); if(fork1() == 0){ 1d7: e8 94 ff ff ff call 170 <fork1> 1dc: 85 c0 test %eax,%eax 1de: 0f 84 08 01 00 00 je 2ec <runcmd+0x14c> dup(p[1]); close(p[0]); close(p[1]); runcmd(pcmd->left); } if(fork1() == 0){ 1e4: e8 87 ff ff ff call 170 <fork1> 1e9: 85 c0 test %eax,%eax 1eb: 0f 84 cd 00 00 00 je 2be <runcmd+0x11e> dup(p[0]); close(p[0]); close(p[1]); runcmd(pcmd->right); } close(p[0]); 1f1: 83 ec 0c sub $0xc,%esp 1f4: ff 75 f0 pushl -0x10(%ebp) 1f7: e8 1e 0b 00 00 call d1a <close> close(p[1]); 1fc: 58 pop %eax 1fd: ff 75 f4 pushl -0xc(%ebp) 200: e8 15 0b 00 00 call d1a <close> wait(); 205: e8 f0 0a 00 00 call cfa <wait> wait(); 20a: e8 eb 0a 00 00 call cfa <wait> break; 20f: 83 c4 10 add $0x10,%esp struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if(cmd == 0) exit(); 212: e8 db 0a 00 00 call cf2 <exit> wait(); break; case BACK: bcmd = (struct backcmd*)cmd; if(fork1() == 0) 217: e8 54 ff ff ff call 170 <fork1> 21c: 85 c0 test %eax,%eax 21e: 75 f2 jne 212 <runcmd+0x72> 220: eb 62 jmp 284 <runcmd+0xe4> default: panic("runcmd"); case EXEC: ecmd = (struct execcmd*)cmd; if(ecmd->argv[0] == 0) 222: 8b 43 04 mov 0x4(%ebx),%eax 225: 85 c0 test %eax,%eax 227: 74 e9 je 212 <runcmd+0x72> exit(); exec(ecmd->argv[0], ecmd->argv); 229: 52 push %edx 22a: 52 push %edx 22b: 8d 53 04 lea 0x4(%ebx),%edx 22e: 52 push %edx 22f: 50 push %eax 230: e8 f5 0a 00 00 call d2a <exec> printf(2, "exec %s failed\n", ecmd->argv[0]); 235: 83 c4 0c add $0xc,%esp 238: ff 73 04 pushl 0x4(%ebx) 23b: 68 7f 11 00 00 push $0x117f 240: 6a 02 push $0x2 242: e8 09 0c 00 00 call e50 <printf> break; 247: 83 c4 10 add $0x10,%esp 24a: eb c6 jmp 212 <runcmd+0x72> runcmd(rcmd->cmd); break; case LIST: lcmd = (struct listcmd*)cmd; if(fork1() == 0) 24c: e8 1f ff ff ff call 170 <fork1> 251: 85 c0 test %eax,%eax 253: 74 2f je 284 <runcmd+0xe4> runcmd(lcmd->left); wait(); 255: e8 a0 0a 00 00 call cfa <wait> runcmd(lcmd->right); 25a: 83 ec 0c sub $0xc,%esp 25d: ff 73 08 pushl 0x8(%ebx) 260: e8 3b ff ff ff call 1a0 <runcmd> printf(2, "exec %s failed\n", ecmd->argv[0]); break; case REDIR: rcmd = (struct redircmd*)cmd; close(rcmd->fd); 265: 83 ec 0c sub $0xc,%esp 268: ff 73 14 pushl 0x14(%ebx) 26b: e8 aa 0a 00 00 call d1a <close> if(open(rcmd->file, rcmd->mode) < 0){ 270: 59 pop %ecx 271: 58 pop %eax 272: ff 73 10 pushl 0x10(%ebx) 275: ff 73 08 pushl 0x8(%ebx) 278: e8 b5 0a 00 00 call d32 <open> 27d: 83 c4 10 add $0x10,%esp 280: 85 c0 test %eax,%eax 282: 78 25 js 2a9 <runcmd+0x109> break; case BACK: bcmd = (struct backcmd*)cmd; if(fork1() == 0) runcmd(bcmd->cmd); 284: 83 ec 0c sub $0xc,%esp 287: ff 73 04 pushl 0x4(%ebx) 28a: e8 11 ff ff ff call 1a0 <runcmd> if(cmd == 0) exit(); switch(cmd->type){ default: panic("runcmd"); 28f: 83 ec 0c sub $0xc,%esp 292: 68 78 11 00 00 push $0x1178 297: e8 b4 fe ff ff call 150 <panic> break; case PIPE: pcmd = (struct pipecmd*)cmd; if(pipe(p) < 0) panic("pipe"); 29c: 83 ec 0c sub $0xc,%esp 29f: 68 9f 11 00 00 push $0x119f 2a4: e8 a7 fe ff ff call 150 <panic> case REDIR: rcmd = (struct redircmd*)cmd; close(rcmd->fd); if(open(rcmd->file, rcmd->mode) < 0){ printf(2, "open %s failed\n", rcmd->file); 2a9: 52 push %edx 2aa: ff 73 08 pushl 0x8(%ebx) 2ad: 68 8f 11 00 00 push $0x118f 2b2: 6a 02 push $0x2 2b4: e8 97 0b 00 00 call e50 <printf> exit(); 2b9: e8 34 0a 00 00 call cf2 <exit> close(p[0]); close(p[1]); runcmd(pcmd->left); } if(fork1() == 0){ close(0); 2be: 83 ec 0c sub $0xc,%esp 2c1: 6a 00 push $0x0 2c3: e8 52 0a 00 00 call d1a <close> dup(p[0]); 2c8: 5a pop %edx 2c9: ff 75 f0 pushl -0x10(%ebp) 2cc: e8 99 0a 00 00 call d6a <dup> close(p[0]); 2d1: 59 pop %ecx 2d2: ff 75 f0 pushl -0x10(%ebp) 2d5: e8 40 0a 00 00 call d1a <close> close(p[1]); 2da: 58 pop %eax 2db: ff 75 f4 pushl -0xc(%ebp) 2de: e8 37 0a 00 00 call d1a <close> runcmd(pcmd->right); 2e3: 58 pop %eax 2e4: ff 73 08 pushl 0x8(%ebx) 2e7: e8 b4 fe ff ff call 1a0 <runcmd> case PIPE: pcmd = (struct pipecmd*)cmd; if(pipe(p) < 0) panic("pipe"); if(fork1() == 0){ close(1); 2ec: 83 ec 0c sub $0xc,%esp 2ef: 6a 01 push $0x1 2f1: e8 24 0a 00 00 call d1a <close> dup(p[1]); 2f6: 58 pop %eax 2f7: ff 75 f4 pushl -0xc(%ebp) 2fa: e8 6b 0a 00 00 call d6a <dup> close(p[0]); 2ff: 58 pop %eax 300: ff 75 f0 pushl -0x10(%ebp) 303: e8 12 0a 00 00 call d1a <close> close(p[1]); 308: 58 pop %eax 309: ff 75 f4 pushl -0xc(%ebp) 30c: e8 09 0a 00 00 call d1a <close> runcmd(pcmd->left); 311: 58 pop %eax 312: ff 73 04 pushl 0x4(%ebx) 315: e8 86 fe ff ff call 1a0 <runcmd> 31a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000320 <execcmd>: //PAGEBREAK! // Constructors struct cmd* execcmd(void) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 53 push %ebx 324: 83 ec 10 sub $0x10,%esp struct execcmd *cmd; cmd = malloc(sizeof(*cmd)); 327: 6a 54 push $0x54 329: e8 52 0d 00 00 call 1080 <malloc> memset(cmd, 0, sizeof(*cmd)); 32e: 83 c4 0c add $0xc,%esp struct cmd* execcmd(void) { struct execcmd *cmd; cmd = malloc(sizeof(*cmd)); 331: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 333: 6a 54 push $0x54 335: 6a 00 push $0x0 337: 50 push %eax 338: e8 23 08 00 00 call b60 <memset> cmd->type = EXEC; 33d: c7 03 01 00 00 00 movl $0x1,(%ebx) return (struct cmd*)cmd; } 343: 89 d8 mov %ebx,%eax 345: 8b 5d fc mov -0x4(%ebp),%ebx 348: c9 leave 349: c3 ret 34a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000350 <redircmd>: struct cmd* redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd) { 350: 55 push %ebp 351: 89 e5 mov %esp,%ebp 353: 53 push %ebx 354: 83 ec 10 sub $0x10,%esp struct redircmd *cmd; cmd = malloc(sizeof(*cmd)); 357: 6a 18 push $0x18 359: e8 22 0d 00 00 call 1080 <malloc> memset(cmd, 0, sizeof(*cmd)); 35e: 83 c4 0c add $0xc,%esp struct cmd* redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd) { struct redircmd *cmd; cmd = malloc(sizeof(*cmd)); 361: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 363: 6a 18 push $0x18 365: 6a 00 push $0x0 367: 50 push %eax 368: e8 f3 07 00 00 call b60 <memset> cmd->type = REDIR; cmd->cmd = subcmd; 36d: 8b 45 08 mov 0x8(%ebp),%eax { struct redircmd *cmd; cmd = malloc(sizeof(*cmd)); memset(cmd, 0, sizeof(*cmd)); cmd->type = REDIR; 370: c7 03 02 00 00 00 movl $0x2,(%ebx) cmd->cmd = subcmd; 376: 89 43 04 mov %eax,0x4(%ebx) cmd->file = file; 379: 8b 45 0c mov 0xc(%ebp),%eax 37c: 89 43 08 mov %eax,0x8(%ebx) cmd->efile = efile; 37f: 8b 45 10 mov 0x10(%ebp),%eax 382: 89 43 0c mov %eax,0xc(%ebx) cmd->mode = mode; 385: 8b 45 14 mov 0x14(%ebp),%eax 388: 89 43 10 mov %eax,0x10(%ebx) cmd->fd = fd; 38b: 8b 45 18 mov 0x18(%ebp),%eax 38e: 89 43 14 mov %eax,0x14(%ebx) return (struct cmd*)cmd; } 391: 89 d8 mov %ebx,%eax 393: 8b 5d fc mov -0x4(%ebp),%ebx 396: c9 leave 397: c3 ret 398: 90 nop 399: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000003a0 <pipecmd>: struct cmd* pipecmd(struct cmd *left, struct cmd *right) { 3a0: 55 push %ebp 3a1: 89 e5 mov %esp,%ebp 3a3: 53 push %ebx 3a4: 83 ec 10 sub $0x10,%esp struct pipecmd *cmd; cmd = malloc(sizeof(*cmd)); 3a7: 6a 0c push $0xc 3a9: e8 d2 0c 00 00 call 1080 <malloc> memset(cmd, 0, sizeof(*cmd)); 3ae: 83 c4 0c add $0xc,%esp struct cmd* pipecmd(struct cmd *left, struct cmd *right) { struct pipecmd *cmd; cmd = malloc(sizeof(*cmd)); 3b1: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 3b3: 6a 0c push $0xc 3b5: 6a 00 push $0x0 3b7: 50 push %eax 3b8: e8 a3 07 00 00 call b60 <memset> cmd->type = PIPE; cmd->left = left; 3bd: 8b 45 08 mov 0x8(%ebp),%eax { struct pipecmd *cmd; cmd = malloc(sizeof(*cmd)); memset(cmd, 0, sizeof(*cmd)); cmd->type = PIPE; 3c0: c7 03 03 00 00 00 movl $0x3,(%ebx) cmd->left = left; 3c6: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 3c9: 8b 45 0c mov 0xc(%ebp),%eax 3cc: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd*)cmd; } 3cf: 89 d8 mov %ebx,%eax 3d1: 8b 5d fc mov -0x4(%ebp),%ebx 3d4: c9 leave 3d5: c3 ret 3d6: 8d 76 00 lea 0x0(%esi),%esi 3d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000003e0 <listcmd>: struct cmd* listcmd(struct cmd *left, struct cmd *right) { 3e0: 55 push %ebp 3e1: 89 e5 mov %esp,%ebp 3e3: 53 push %ebx 3e4: 83 ec 10 sub $0x10,%esp struct listcmd *cmd; cmd = malloc(sizeof(*cmd)); 3e7: 6a 0c push $0xc 3e9: e8 92 0c 00 00 call 1080 <malloc> memset(cmd, 0, sizeof(*cmd)); 3ee: 83 c4 0c add $0xc,%esp struct cmd* listcmd(struct cmd *left, struct cmd *right) { struct listcmd *cmd; cmd = malloc(sizeof(*cmd)); 3f1: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 3f3: 6a 0c push $0xc 3f5: 6a 00 push $0x0 3f7: 50 push %eax 3f8: e8 63 07 00 00 call b60 <memset> cmd->type = LIST; cmd->left = left; 3fd: 8b 45 08 mov 0x8(%ebp),%eax { struct listcmd *cmd; cmd = malloc(sizeof(*cmd)); memset(cmd, 0, sizeof(*cmd)); cmd->type = LIST; 400: c7 03 04 00 00 00 movl $0x4,(%ebx) cmd->left = left; 406: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 409: 8b 45 0c mov 0xc(%ebp),%eax 40c: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd*)cmd; } 40f: 89 d8 mov %ebx,%eax 411: 8b 5d fc mov -0x4(%ebp),%ebx 414: c9 leave 415: c3 ret 416: 8d 76 00 lea 0x0(%esi),%esi 419: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000420 <backcmd>: struct cmd* backcmd(struct cmd *subcmd) { 420: 55 push %ebp 421: 89 e5 mov %esp,%ebp 423: 53 push %ebx 424: 83 ec 10 sub $0x10,%esp struct backcmd *cmd; cmd = malloc(sizeof(*cmd)); 427: 6a 08 push $0x8 429: e8 52 0c 00 00 call 1080 <malloc> memset(cmd, 0, sizeof(*cmd)); 42e: 83 c4 0c add $0xc,%esp struct cmd* backcmd(struct cmd *subcmd) { struct backcmd *cmd; cmd = malloc(sizeof(*cmd)); 431: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 433: 6a 08 push $0x8 435: 6a 00 push $0x0 437: 50 push %eax 438: e8 23 07 00 00 call b60 <memset> cmd->type = BACK; cmd->cmd = subcmd; 43d: 8b 45 08 mov 0x8(%ebp),%eax { struct backcmd *cmd; cmd = malloc(sizeof(*cmd)); memset(cmd, 0, sizeof(*cmd)); cmd->type = BACK; 440: c7 03 05 00 00 00 movl $0x5,(%ebx) cmd->cmd = subcmd; 446: 89 43 04 mov %eax,0x4(%ebx) return (struct cmd*)cmd; } 449: 89 d8 mov %ebx,%eax 44b: 8b 5d fc mov -0x4(%ebp),%ebx 44e: c9 leave 44f: c3 ret 00000450 <gettoken>: char whitespace[] = " \t\r\n\v"; char symbols[] = "<|>&;()"; int gettoken(char **ps, char *es, char **q, char **eq) { 450: 55 push %ebp 451: 89 e5 mov %esp,%ebp 453: 57 push %edi 454: 56 push %esi 455: 53 push %ebx 456: 83 ec 0c sub $0xc,%esp char *s; int ret; s = *ps; 459: 8b 45 08 mov 0x8(%ebp),%eax char whitespace[] = " \t\r\n\v"; char symbols[] = "<|>&;()"; int gettoken(char **ps, char *es, char **q, char **eq) { 45c: 8b 5d 0c mov 0xc(%ebp),%ebx 45f: 8b 75 10 mov 0x10(%ebp),%esi char *s; int ret; s = *ps; 462: 8b 38 mov (%eax),%edi while(s < es && strchr(whitespace, *s)) 464: 39 df cmp %ebx,%edi 466: 72 13 jb 47b <gettoken+0x2b> 468: eb 29 jmp 493 <gettoken+0x43> 46a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi s++; 470: 83 c7 01 add $0x1,%edi { char *s; int ret; s = *ps; while(s < es && strchr(whitespace, *s)) 473: 39 fb cmp %edi,%ebx 475: 0f 84 ed 00 00 00 je 568 <gettoken+0x118> 47b: 0f be 07 movsbl (%edi),%eax 47e: 83 ec 08 sub $0x8,%esp 481: 50 push %eax 482: 68 18 18 00 00 push $0x1818 487: e8 f4 06 00 00 call b80 <strchr> 48c: 83 c4 10 add $0x10,%esp 48f: 85 c0 test %eax,%eax 491: 75 dd jne 470 <gettoken+0x20> s++; if(q) 493: 85 f6 test %esi,%esi 495: 74 02 je 499 <gettoken+0x49> *q = s; 497: 89 3e mov %edi,(%esi) ret = *s; 499: 0f be 37 movsbl (%edi),%esi 49c: 89 f1 mov %esi,%ecx 49e: 89 f0 mov %esi,%eax switch(*s){ 4a0: 80 f9 29 cmp $0x29,%cl 4a3: 7f 5b jg 500 <gettoken+0xb0> 4a5: 80 f9 28 cmp $0x28,%cl 4a8: 7d 61 jge 50b <gettoken+0xbb> 4aa: 84 c9 test %cl,%cl 4ac: 0f 85 de 00 00 00 jne 590 <gettoken+0x140> ret = 'a'; while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) s++; break; } if(eq) 4b2: 8b 55 14 mov 0x14(%ebp),%edx 4b5: 85 d2 test %edx,%edx 4b7: 74 05 je 4be <gettoken+0x6e> *eq = s; 4b9: 8b 45 14 mov 0x14(%ebp),%eax 4bc: 89 38 mov %edi,(%eax) while(s < es && strchr(whitespace, *s)) 4be: 39 fb cmp %edi,%ebx 4c0: 77 0d ja 4cf <gettoken+0x7f> 4c2: eb 23 jmp 4e7 <gettoken+0x97> 4c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s++; 4c8: 83 c7 01 add $0x1,%edi break; } if(eq) *eq = s; while(s < es && strchr(whitespace, *s)) 4cb: 39 fb cmp %edi,%ebx 4cd: 74 18 je 4e7 <gettoken+0x97> 4cf: 0f be 07 movsbl (%edi),%eax 4d2: 83 ec 08 sub $0x8,%esp 4d5: 50 push %eax 4d6: 68 18 18 00 00 push $0x1818 4db: e8 a0 06 00 00 call b80 <strchr> 4e0: 83 c4 10 add $0x10,%esp 4e3: 85 c0 test %eax,%eax 4e5: 75 e1 jne 4c8 <gettoken+0x78> s++; *ps = s; 4e7: 8b 45 08 mov 0x8(%ebp),%eax 4ea: 89 38 mov %edi,(%eax) return ret; } 4ec: 8d 65 f4 lea -0xc(%ebp),%esp 4ef: 89 f0 mov %esi,%eax 4f1: 5b pop %ebx 4f2: 5e pop %esi 4f3: 5f pop %edi 4f4: 5d pop %ebp 4f5: c3 ret 4f6: 8d 76 00 lea 0x0(%esi),%esi 4f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi while(s < es && strchr(whitespace, *s)) s++; if(q) *q = s; ret = *s; switch(*s){ 500: 80 f9 3e cmp $0x3e,%cl 503: 75 0b jne 510 <gettoken+0xc0> case '<': s++; break; case '>': s++; if(*s == '>'){ 505: 80 7f 01 3e cmpb $0x3e,0x1(%edi) 509: 74 75 je 580 <gettoken+0x130> case '&': case '<': s++; break; case '>': s++; 50b: 83 c7 01 add $0x1,%edi 50e: eb a2 jmp 4b2 <gettoken+0x62> while(s < es && strchr(whitespace, *s)) s++; if(q) *q = s; ret = *s; switch(*s){ 510: 7f 5e jg 570 <gettoken+0x120> 512: 83 e9 3b sub $0x3b,%ecx 515: 80 f9 01 cmp $0x1,%cl 518: 76 f1 jbe 50b <gettoken+0xbb> s++; } break; default: ret = 'a'; while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 51a: 39 fb cmp %edi,%ebx 51c: 77 24 ja 542 <gettoken+0xf2> 51e: eb 7c jmp 59c <gettoken+0x14c> 520: 0f be 07 movsbl (%edi),%eax 523: 83 ec 08 sub $0x8,%esp 526: 50 push %eax 527: 68 10 18 00 00 push $0x1810 52c: e8 4f 06 00 00 call b80 <strchr> 531: 83 c4 10 add $0x10,%esp 534: 85 c0 test %eax,%eax 536: 75 1f jne 557 <gettoken+0x107> s++; 538: 83 c7 01 add $0x1,%edi s++; } break; default: ret = 'a'; while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 53b: 39 fb cmp %edi,%ebx 53d: 74 5b je 59a <gettoken+0x14a> 53f: 0f be 07 movsbl (%edi),%eax 542: 83 ec 08 sub $0x8,%esp 545: 50 push %eax 546: 68 18 18 00 00 push $0x1818 54b: e8 30 06 00 00 call b80 <strchr> 550: 83 c4 10 add $0x10,%esp 553: 85 c0 test %eax,%eax 555: 74 c9 je 520 <gettoken+0xd0> ret = '+'; s++; } break; default: ret = 'a'; 557: be 61 00 00 00 mov $0x61,%esi 55c: e9 51 ff ff ff jmp 4b2 <gettoken+0x62> 561: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 568: 89 df mov %ebx,%edi 56a: e9 24 ff ff ff jmp 493 <gettoken+0x43> 56f: 90 nop while(s < es && strchr(whitespace, *s)) s++; if(q) *q = s; ret = *s; switch(*s){ 570: 80 f9 7c cmp $0x7c,%cl 573: 74 96 je 50b <gettoken+0xbb> 575: eb a3 jmp 51a <gettoken+0xca> 577: 89 f6 mov %esi,%esi 579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi break; case '>': s++; if(*s == '>'){ ret = '+'; s++; 580: 83 c7 02 add $0x2,%edi s++; break; case '>': s++; if(*s == '>'){ ret = '+'; 583: be 2b 00 00 00 mov $0x2b,%esi 588: e9 25 ff ff ff jmp 4b2 <gettoken+0x62> 58d: 8d 76 00 lea 0x0(%esi),%esi while(s < es && strchr(whitespace, *s)) s++; if(q) *q = s; ret = *s; switch(*s){ 590: 80 f9 26 cmp $0x26,%cl 593: 75 85 jne 51a <gettoken+0xca> 595: e9 71 ff ff ff jmp 50b <gettoken+0xbb> 59a: 89 df mov %ebx,%edi ret = 'a'; while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) s++; break; } if(eq) 59c: 8b 45 14 mov 0x14(%ebp),%eax 59f: be 61 00 00 00 mov $0x61,%esi 5a4: 85 c0 test %eax,%eax 5a6: 0f 85 0d ff ff ff jne 4b9 <gettoken+0x69> 5ac: e9 36 ff ff ff jmp 4e7 <gettoken+0x97> 5b1: eb 0d jmp 5c0 <peek> 5b3: 90 nop 5b4: 90 nop 5b5: 90 nop 5b6: 90 nop 5b7: 90 nop 5b8: 90 nop 5b9: 90 nop 5ba: 90 nop 5bb: 90 nop 5bc: 90 nop 5bd: 90 nop 5be: 90 nop 5bf: 90 nop 000005c0 <peek>: return ret; } int peek(char **ps, char *es, char *toks) { 5c0: 55 push %ebp 5c1: 89 e5 mov %esp,%ebp 5c3: 57 push %edi 5c4: 56 push %esi 5c5: 53 push %ebx 5c6: 83 ec 0c sub $0xc,%esp 5c9: 8b 7d 08 mov 0x8(%ebp),%edi 5cc: 8b 75 0c mov 0xc(%ebp),%esi char *s; s = *ps; 5cf: 8b 1f mov (%edi),%ebx while(s < es && strchr(whitespace, *s)) 5d1: 39 f3 cmp %esi,%ebx 5d3: 72 12 jb 5e7 <peek+0x27> 5d5: eb 28 jmp 5ff <peek+0x3f> 5d7: 89 f6 mov %esi,%esi 5d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi s++; 5e0: 83 c3 01 add $0x1,%ebx peek(char **ps, char *es, char *toks) { char *s; s = *ps; while(s < es && strchr(whitespace, *s)) 5e3: 39 de cmp %ebx,%esi 5e5: 74 18 je 5ff <peek+0x3f> 5e7: 0f be 03 movsbl (%ebx),%eax 5ea: 83 ec 08 sub $0x8,%esp 5ed: 50 push %eax 5ee: 68 18 18 00 00 push $0x1818 5f3: e8 88 05 00 00 call b80 <strchr> 5f8: 83 c4 10 add $0x10,%esp 5fb: 85 c0 test %eax,%eax 5fd: 75 e1 jne 5e0 <peek+0x20> s++; *ps = s; 5ff: 89 1f mov %ebx,(%edi) return *s && strchr(toks, *s); 601: 0f be 13 movsbl (%ebx),%edx 604: 31 c0 xor %eax,%eax 606: 84 d2 test %dl,%dl 608: 74 17 je 621 <peek+0x61> 60a: 83 ec 08 sub $0x8,%esp 60d: 52 push %edx 60e: ff 75 10 pushl 0x10(%ebp) 611: e8 6a 05 00 00 call b80 <strchr> 616: 83 c4 10 add $0x10,%esp 619: 85 c0 test %eax,%eax 61b: 0f 95 c0 setne %al 61e: 0f b6 c0 movzbl %al,%eax } 621: 8d 65 f4 lea -0xc(%ebp),%esp 624: 5b pop %ebx 625: 5e pop %esi 626: 5f pop %edi 627: 5d pop %ebp 628: c3 ret 629: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000630 <parseredirs>: return cmd; } struct cmd* parseredirs(struct cmd *cmd, char **ps, char *es) { 630: 55 push %ebp 631: 89 e5 mov %esp,%ebp 633: 57 push %edi 634: 56 push %esi 635: 53 push %ebx 636: 83 ec 1c sub $0x1c,%esp 639: 8b 75 0c mov 0xc(%ebp),%esi 63c: 8b 5d 10 mov 0x10(%ebp),%ebx 63f: 90 nop int tok; char *q, *eq; while(peek(ps, es, "<>")){ 640: 83 ec 04 sub $0x4,%esp 643: 68 c1 11 00 00 push $0x11c1 648: 53 push %ebx 649: 56 push %esi 64a: e8 71 ff ff ff call 5c0 <peek> 64f: 83 c4 10 add $0x10,%esp 652: 85 c0 test %eax,%eax 654: 74 6a je 6c0 <parseredirs+0x90> tok = gettoken(ps, es, 0, 0); 656: 6a 00 push $0x0 658: 6a 00 push $0x0 65a: 53 push %ebx 65b: 56 push %esi 65c: e8 ef fd ff ff call 450 <gettoken> 661: 89 c7 mov %eax,%edi if(gettoken(ps, es, &q, &eq) != 'a') 663: 8d 45 e4 lea -0x1c(%ebp),%eax 666: 50 push %eax 667: 8d 45 e0 lea -0x20(%ebp),%eax 66a: 50 push %eax 66b: 53 push %ebx 66c: 56 push %esi 66d: e8 de fd ff ff call 450 <gettoken> 672: 83 c4 20 add $0x20,%esp 675: 83 f8 61 cmp $0x61,%eax 678: 75 51 jne 6cb <parseredirs+0x9b> panic("missing file for redirection"); switch(tok){ 67a: 83 ff 3c cmp $0x3c,%edi 67d: 74 31 je 6b0 <parseredirs+0x80> 67f: 83 ff 3e cmp $0x3e,%edi 682: 74 05 je 689 <parseredirs+0x59> 684: 83 ff 2b cmp $0x2b,%edi 687: 75 b7 jne 640 <parseredirs+0x10> break; case '>': cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); break; case '+': // >> cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); 689: 83 ec 0c sub $0xc,%esp 68c: 6a 01 push $0x1 68e: 68 01 02 00 00 push $0x201 693: ff 75 e4 pushl -0x1c(%ebp) 696: ff 75 e0 pushl -0x20(%ebp) 699: ff 75 08 pushl 0x8(%ebp) 69c: e8 af fc ff ff call 350 <redircmd> break; 6a1: 83 c4 20 add $0x20,%esp break; case '>': cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); break; case '+': // >> cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); 6a4: 89 45 08 mov %eax,0x8(%ebp) break; 6a7: eb 97 jmp 640 <parseredirs+0x10> 6a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi tok = gettoken(ps, es, 0, 0); if(gettoken(ps, es, &q, &eq) != 'a') panic("missing file for redirection"); switch(tok){ case '<': cmd = redircmd(cmd, q, eq, O_RDONLY, 0); 6b0: 83 ec 0c sub $0xc,%esp 6b3: 6a 00 push $0x0 6b5: 6a 00 push $0x0 6b7: eb da jmp 693 <parseredirs+0x63> 6b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); break; } } return cmd; } 6c0: 8b 45 08 mov 0x8(%ebp),%eax 6c3: 8d 65 f4 lea -0xc(%ebp),%esp 6c6: 5b pop %ebx 6c7: 5e pop %esi 6c8: 5f pop %edi 6c9: 5d pop %ebp 6ca: c3 ret char *q, *eq; while(peek(ps, es, "<>")){ tok = gettoken(ps, es, 0, 0); if(gettoken(ps, es, &q, &eq) != 'a') panic("missing file for redirection"); 6cb: 83 ec 0c sub $0xc,%esp 6ce: 68 a4 11 00 00 push $0x11a4 6d3: e8 78 fa ff ff call 150 <panic> 6d8: 90 nop 6d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000006e0 <parseexec>: return cmd; } struct cmd* parseexec(char **ps, char *es) { 6e0: 55 push %ebp 6e1: 89 e5 mov %esp,%ebp 6e3: 57 push %edi 6e4: 56 push %esi 6e5: 53 push %ebx 6e6: 83 ec 30 sub $0x30,%esp 6e9: 8b 75 08 mov 0x8(%ebp),%esi 6ec: 8b 7d 0c mov 0xc(%ebp),%edi char *q, *eq; int tok, argc; struct execcmd *cmd; struct cmd *ret; if(peek(ps, es, "(")) 6ef: 68 c4 11 00 00 push $0x11c4 6f4: 57 push %edi 6f5: 56 push %esi 6f6: e8 c5 fe ff ff call 5c0 <peek> 6fb: 83 c4 10 add $0x10,%esp 6fe: 85 c0 test %eax,%eax 700: 0f 85 9a 00 00 00 jne 7a0 <parseexec+0xc0> return parseblock(ps, es); ret = execcmd(); 706: e8 15 fc ff ff call 320 <execcmd> cmd = (struct execcmd*)ret; argc = 0; ret = parseredirs(ret, ps, es); 70b: 83 ec 04 sub $0x4,%esp struct cmd *ret; if(peek(ps, es, "(")) return parseblock(ps, es); ret = execcmd(); 70e: 89 c3 mov %eax,%ebx 710: 89 45 cc mov %eax,-0x34(%ebp) cmd = (struct execcmd*)ret; argc = 0; ret = parseredirs(ret, ps, es); 713: 57 push %edi 714: 56 push %esi 715: 8d 5b 04 lea 0x4(%ebx),%ebx 718: 50 push %eax 719: e8 12 ff ff ff call 630 <parseredirs> 71e: 83 c4 10 add $0x10,%esp 721: 89 45 d0 mov %eax,-0x30(%ebp) return parseblock(ps, es); ret = execcmd(); cmd = (struct execcmd*)ret; argc = 0; 724: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) 72b: eb 16 jmp 743 <parseexec+0x63> 72d: 8d 76 00 lea 0x0(%esi),%esi cmd->argv[argc] = q; cmd->eargv[argc] = eq; argc++; if(argc >= MAXARGS) panic("too many args"); ret = parseredirs(ret, ps, es); 730: 83 ec 04 sub $0x4,%esp 733: 57 push %edi 734: 56 push %esi 735: ff 75 d0 pushl -0x30(%ebp) 738: e8 f3 fe ff ff call 630 <parseredirs> 73d: 83 c4 10 add $0x10,%esp 740: 89 45 d0 mov %eax,-0x30(%ebp) ret = execcmd(); cmd = (struct execcmd*)ret; argc = 0; ret = parseredirs(ret, ps, es); while(!peek(ps, es, "|)&;")){ 743: 83 ec 04 sub $0x4,%esp 746: 68 db 11 00 00 push $0x11db 74b: 57 push %edi 74c: 56 push %esi 74d: e8 6e fe ff ff call 5c0 <peek> 752: 83 c4 10 add $0x10,%esp 755: 85 c0 test %eax,%eax 757: 75 5f jne 7b8 <parseexec+0xd8> if((tok=gettoken(ps, es, &q, &eq)) == 0) 759: 8d 45 e4 lea -0x1c(%ebp),%eax 75c: 50 push %eax 75d: 8d 45 e0 lea -0x20(%ebp),%eax 760: 50 push %eax 761: 57 push %edi 762: 56 push %esi 763: e8 e8 fc ff ff call 450 <gettoken> 768: 83 c4 10 add $0x10,%esp 76b: 85 c0 test %eax,%eax 76d: 74 49 je 7b8 <parseexec+0xd8> break; if(tok != 'a') 76f: 83 f8 61 cmp $0x61,%eax 772: 75 66 jne 7da <parseexec+0xfa> panic("syntax"); cmd->argv[argc] = q; 774: 8b 45 e0 mov -0x20(%ebp),%eax cmd->eargv[argc] = eq; argc++; 777: 83 45 d4 01 addl $0x1,-0x2c(%ebp) 77b: 83 c3 04 add $0x4,%ebx while(!peek(ps, es, "|)&;")){ if((tok=gettoken(ps, es, &q, &eq)) == 0) break; if(tok != 'a') panic("syntax"); cmd->argv[argc] = q; 77e: 89 43 fc mov %eax,-0x4(%ebx) cmd->eargv[argc] = eq; 781: 8b 45 e4 mov -0x1c(%ebp),%eax 784: 89 43 24 mov %eax,0x24(%ebx) argc++; 787: 8b 45 d4 mov -0x2c(%ebp),%eax if(argc >= MAXARGS) 78a: 83 f8 0a cmp $0xa,%eax 78d: 75 a1 jne 730 <parseexec+0x50> panic("too many args"); 78f: 83 ec 0c sub $0xc,%esp 792: 68 cd 11 00 00 push $0x11cd 797: e8 b4 f9 ff ff call 150 <panic> 79c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int tok, argc; struct execcmd *cmd; struct cmd *ret; if(peek(ps, es, "(")) return parseblock(ps, es); 7a0: 83 ec 08 sub $0x8,%esp 7a3: 57 push %edi 7a4: 56 push %esi 7a5: e8 56 01 00 00 call 900 <parseblock> 7aa: 83 c4 10 add $0x10,%esp ret = parseredirs(ret, ps, es); } cmd->argv[argc] = 0; cmd->eargv[argc] = 0; return ret; } 7ad: 8d 65 f4 lea -0xc(%ebp),%esp 7b0: 5b pop %ebx 7b1: 5e pop %esi 7b2: 5f pop %edi 7b3: 5d pop %ebp 7b4: c3 ret 7b5: 8d 76 00 lea 0x0(%esi),%esi 7b8: 8b 45 cc mov -0x34(%ebp),%eax 7bb: 8b 55 d4 mov -0x2c(%ebp),%edx 7be: 8d 04 90 lea (%eax,%edx,4),%eax argc++; if(argc >= MAXARGS) panic("too many args"); ret = parseredirs(ret, ps, es); } cmd->argv[argc] = 0; 7c1: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) cmd->eargv[argc] = 0; 7c8: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) 7cf: 8b 45 d0 mov -0x30(%ebp),%eax return ret; } 7d2: 8d 65 f4 lea -0xc(%ebp),%esp 7d5: 5b pop %ebx 7d6: 5e pop %esi 7d7: 5f pop %edi 7d8: 5d pop %ebp 7d9: c3 ret ret = parseredirs(ret, ps, es); while(!peek(ps, es, "|)&;")){ if((tok=gettoken(ps, es, &q, &eq)) == 0) break; if(tok != 'a') panic("syntax"); 7da: 83 ec 0c sub $0xc,%esp 7dd: 68 c6 11 00 00 push $0x11c6 7e2: e8 69 f9 ff ff call 150 <panic> 7e7: 89 f6 mov %esi,%esi 7e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000007f0 <parsepipe>: return cmd; } struct cmd* parsepipe(char **ps, char *es) { 7f0: 55 push %ebp 7f1: 89 e5 mov %esp,%ebp 7f3: 57 push %edi 7f4: 56 push %esi 7f5: 53 push %ebx 7f6: 83 ec 14 sub $0x14,%esp 7f9: 8b 5d 08 mov 0x8(%ebp),%ebx 7fc: 8b 75 0c mov 0xc(%ebp),%esi struct cmd *cmd; cmd = parseexec(ps, es); 7ff: 56 push %esi 800: 53 push %ebx 801: e8 da fe ff ff call 6e0 <parseexec> if(peek(ps, es, "|")){ 806: 83 c4 0c add $0xc,%esp struct cmd* parsepipe(char **ps, char *es) { struct cmd *cmd; cmd = parseexec(ps, es); 809: 89 c7 mov %eax,%edi if(peek(ps, es, "|")){ 80b: 68 e0 11 00 00 push $0x11e0 810: 56 push %esi 811: 53 push %ebx 812: e8 a9 fd ff ff call 5c0 <peek> 817: 83 c4 10 add $0x10,%esp 81a: 85 c0 test %eax,%eax 81c: 75 12 jne 830 <parsepipe+0x40> gettoken(ps, es, 0, 0); cmd = pipecmd(cmd, parsepipe(ps, es)); } return cmd; } 81e: 8d 65 f4 lea -0xc(%ebp),%esp 821: 89 f8 mov %edi,%eax 823: 5b pop %ebx 824: 5e pop %esi 825: 5f pop %edi 826: 5d pop %ebp 827: c3 ret 828: 90 nop 829: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { struct cmd *cmd; cmd = parseexec(ps, es); if(peek(ps, es, "|")){ gettoken(ps, es, 0, 0); 830: 6a 00 push $0x0 832: 6a 00 push $0x0 834: 56 push %esi 835: 53 push %ebx 836: e8 15 fc ff ff call 450 <gettoken> cmd = pipecmd(cmd, parsepipe(ps, es)); 83b: 58 pop %eax 83c: 5a pop %edx 83d: 56 push %esi 83e: 53 push %ebx 83f: e8 ac ff ff ff call 7f0 <parsepipe> 844: 89 7d 08 mov %edi,0x8(%ebp) 847: 89 45 0c mov %eax,0xc(%ebp) 84a: 83 c4 10 add $0x10,%esp } return cmd; } 84d: 8d 65 f4 lea -0xc(%ebp),%esp 850: 5b pop %ebx 851: 5e pop %esi 852: 5f pop %edi 853: 5d pop %ebp struct cmd *cmd; cmd = parseexec(ps, es); if(peek(ps, es, "|")){ gettoken(ps, es, 0, 0); cmd = pipecmd(cmd, parsepipe(ps, es)); 854: e9 47 fb ff ff jmp 3a0 <pipecmd> 859: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000860 <parseline>: return cmd; } struct cmd* parseline(char **ps, char *es) { 860: 55 push %ebp 861: 89 e5 mov %esp,%ebp 863: 57 push %edi 864: 56 push %esi 865: 53 push %ebx 866: 83 ec 14 sub $0x14,%esp 869: 8b 5d 08 mov 0x8(%ebp),%ebx 86c: 8b 75 0c mov 0xc(%ebp),%esi struct cmd *cmd; cmd = parsepipe(ps, es); 86f: 56 push %esi 870: 53 push %ebx 871: e8 7a ff ff ff call 7f0 <parsepipe> while(peek(ps, es, "&")){ 876: 83 c4 10 add $0x10,%esp struct cmd* parseline(char **ps, char *es) { struct cmd *cmd; cmd = parsepipe(ps, es); 879: 89 c7 mov %eax,%edi while(peek(ps, es, "&")){ 87b: eb 1b jmp 898 <parseline+0x38> 87d: 8d 76 00 lea 0x0(%esi),%esi gettoken(ps, es, 0, 0); 880: 6a 00 push $0x0 882: 6a 00 push $0x0 884: 56 push %esi 885: 53 push %ebx 886: e8 c5 fb ff ff call 450 <gettoken> cmd = backcmd(cmd); 88b: 89 3c 24 mov %edi,(%esp) 88e: e8 8d fb ff ff call 420 <backcmd> 893: 83 c4 10 add $0x10,%esp 896: 89 c7 mov %eax,%edi parseline(char **ps, char *es) { struct cmd *cmd; cmd = parsepipe(ps, es); while(peek(ps, es, "&")){ 898: 83 ec 04 sub $0x4,%esp 89b: 68 e2 11 00 00 push $0x11e2 8a0: 56 push %esi 8a1: 53 push %ebx 8a2: e8 19 fd ff ff call 5c0 <peek> 8a7: 83 c4 10 add $0x10,%esp 8aa: 85 c0 test %eax,%eax 8ac: 75 d2 jne 880 <parseline+0x20> gettoken(ps, es, 0, 0); cmd = backcmd(cmd); } if(peek(ps, es, ";")){ 8ae: 83 ec 04 sub $0x4,%esp 8b1: 68 de 11 00 00 push $0x11de 8b6: 56 push %esi 8b7: 53 push %ebx 8b8: e8 03 fd ff ff call 5c0 <peek> 8bd: 83 c4 10 add $0x10,%esp 8c0: 85 c0 test %eax,%eax 8c2: 75 0c jne 8d0 <parseline+0x70> gettoken(ps, es, 0, 0); cmd = listcmd(cmd, parseline(ps, es)); } return cmd; } 8c4: 8d 65 f4 lea -0xc(%ebp),%esp 8c7: 89 f8 mov %edi,%eax 8c9: 5b pop %ebx 8ca: 5e pop %esi 8cb: 5f pop %edi 8cc: 5d pop %ebp 8cd: c3 ret 8ce: 66 90 xchg %ax,%ax while(peek(ps, es, "&")){ gettoken(ps, es, 0, 0); cmd = backcmd(cmd); } if(peek(ps, es, ";")){ gettoken(ps, es, 0, 0); 8d0: 6a 00 push $0x0 8d2: 6a 00 push $0x0 8d4: 56 push %esi 8d5: 53 push %ebx 8d6: e8 75 fb ff ff call 450 <gettoken> cmd = listcmd(cmd, parseline(ps, es)); 8db: 58 pop %eax 8dc: 5a pop %edx 8dd: 56 push %esi 8de: 53 push %ebx 8df: e8 7c ff ff ff call 860 <parseline> 8e4: 89 7d 08 mov %edi,0x8(%ebp) 8e7: 89 45 0c mov %eax,0xc(%ebp) 8ea: 83 c4 10 add $0x10,%esp } return cmd; } 8ed: 8d 65 f4 lea -0xc(%ebp),%esp 8f0: 5b pop %ebx 8f1: 5e pop %esi 8f2: 5f pop %edi 8f3: 5d pop %ebp gettoken(ps, es, 0, 0); cmd = backcmd(cmd); } if(peek(ps, es, ";")){ gettoken(ps, es, 0, 0); cmd = listcmd(cmd, parseline(ps, es)); 8f4: e9 e7 fa ff ff jmp 3e0 <listcmd> 8f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000900 <parseblock>: return cmd; } struct cmd* parseblock(char **ps, char *es) { 900: 55 push %ebp 901: 89 e5 mov %esp,%ebp 903: 57 push %edi 904: 56 push %esi 905: 53 push %ebx 906: 83 ec 10 sub $0x10,%esp 909: 8b 5d 08 mov 0x8(%ebp),%ebx 90c: 8b 75 0c mov 0xc(%ebp),%esi struct cmd *cmd; if(!peek(ps, es, "(")) 90f: 68 c4 11 00 00 push $0x11c4 914: 56 push %esi 915: 53 push %ebx 916: e8 a5 fc ff ff call 5c0 <peek> 91b: 83 c4 10 add $0x10,%esp 91e: 85 c0 test %eax,%eax 920: 74 4a je 96c <parseblock+0x6c> panic("parseblock"); gettoken(ps, es, 0, 0); 922: 6a 00 push $0x0 924: 6a 00 push $0x0 926: 56 push %esi 927: 53 push %ebx 928: e8 23 fb ff ff call 450 <gettoken> cmd = parseline(ps, es); 92d: 58 pop %eax 92e: 5a pop %edx 92f: 56 push %esi 930: 53 push %ebx 931: e8 2a ff ff ff call 860 <parseline> if(!peek(ps, es, ")")) 936: 83 c4 0c add $0xc,%esp struct cmd *cmd; if(!peek(ps, es, "(")) panic("parseblock"); gettoken(ps, es, 0, 0); cmd = parseline(ps, es); 939: 89 c7 mov %eax,%edi if(!peek(ps, es, ")")) 93b: 68 00 12 00 00 push $0x1200 940: 56 push %esi 941: 53 push %ebx 942: e8 79 fc ff ff call 5c0 <peek> 947: 83 c4 10 add $0x10,%esp 94a: 85 c0 test %eax,%eax 94c: 74 2b je 979 <parseblock+0x79> panic("syntax - missing )"); gettoken(ps, es, 0, 0); 94e: 6a 00 push $0x0 950: 6a 00 push $0x0 952: 56 push %esi 953: 53 push %ebx 954: e8 f7 fa ff ff call 450 <gettoken> cmd = parseredirs(cmd, ps, es); 959: 83 c4 0c add $0xc,%esp 95c: 56 push %esi 95d: 53 push %ebx 95e: 57 push %edi 95f: e8 cc fc ff ff call 630 <parseredirs> return cmd; } 964: 8d 65 f4 lea -0xc(%ebp),%esp 967: 5b pop %ebx 968: 5e pop %esi 969: 5f pop %edi 96a: 5d pop %ebp 96b: c3 ret parseblock(char **ps, char *es) { struct cmd *cmd; if(!peek(ps, es, "(")) panic("parseblock"); 96c: 83 ec 0c sub $0xc,%esp 96f: 68 e4 11 00 00 push $0x11e4 974: e8 d7 f7 ff ff call 150 <panic> gettoken(ps, es, 0, 0); cmd = parseline(ps, es); if(!peek(ps, es, ")")) panic("syntax - missing )"); 979: 83 ec 0c sub $0xc,%esp 97c: 68 ef 11 00 00 push $0x11ef 981: e8 ca f7 ff ff call 150 <panic> 986: 8d 76 00 lea 0x0(%esi),%esi 989: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000990 <nulterminate>: } // NUL-terminate all the counted strings. struct cmd* nulterminate(struct cmd *cmd) { 990: 55 push %ebp 991: 89 e5 mov %esp,%ebp 993: 53 push %ebx 994: 83 ec 04 sub $0x4,%esp 997: 8b 5d 08 mov 0x8(%ebp),%ebx struct execcmd *ecmd; struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if(cmd == 0) 99a: 85 db test %ebx,%ebx 99c: 0f 84 96 00 00 00 je a38 <nulterminate+0xa8> return 0; switch(cmd->type){ 9a2: 83 3b 05 cmpl $0x5,(%ebx) 9a5: 77 48 ja 9ef <nulterminate+0x5f> 9a7: 8b 03 mov (%ebx),%eax 9a9: ff 24 85 40 12 00 00 jmp *0x1240(,%eax,4) nulterminate(pcmd->right); break; case LIST: lcmd = (struct listcmd*)cmd; nulterminate(lcmd->left); 9b0: 83 ec 0c sub $0xc,%esp 9b3: ff 73 04 pushl 0x4(%ebx) 9b6: e8 d5 ff ff ff call 990 <nulterminate> nulterminate(lcmd->right); 9bb: 58 pop %eax 9bc: ff 73 08 pushl 0x8(%ebx) 9bf: e8 cc ff ff ff call 990 <nulterminate> break; 9c4: 83 c4 10 add $0x10,%esp 9c7: 89 d8 mov %ebx,%eax bcmd = (struct backcmd*)cmd; nulterminate(bcmd->cmd); break; } return cmd; } 9c9: 8b 5d fc mov -0x4(%ebp),%ebx 9cc: c9 leave 9cd: c3 ret 9ce: 66 90 xchg %ax,%ax return 0; switch(cmd->type){ case EXEC: ecmd = (struct execcmd*)cmd; for(i=0; ecmd->argv[i]; i++) 9d0: 8b 4b 04 mov 0x4(%ebx),%ecx 9d3: 8d 43 2c lea 0x2c(%ebx),%eax 9d6: 85 c9 test %ecx,%ecx 9d8: 74 15 je 9ef <nulterminate+0x5f> 9da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *ecmd->eargv[i] = 0; 9e0: 8b 10 mov (%eax),%edx 9e2: 83 c0 04 add $0x4,%eax 9e5: c6 02 00 movb $0x0,(%edx) return 0; switch(cmd->type){ case EXEC: ecmd = (struct execcmd*)cmd; for(i=0; ecmd->argv[i]; i++) 9e8: 8b 50 d8 mov -0x28(%eax),%edx 9eb: 85 d2 test %edx,%edx 9ed: 75 f1 jne 9e0 <nulterminate+0x50> struct redircmd *rcmd; if(cmd == 0) return 0; switch(cmd->type){ 9ef: 89 d8 mov %ebx,%eax bcmd = (struct backcmd*)cmd; nulterminate(bcmd->cmd); break; } return cmd; } 9f1: 8b 5d fc mov -0x4(%ebp),%ebx 9f4: c9 leave 9f5: c3 ret 9f6: 8d 76 00 lea 0x0(%esi),%esi 9f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi nulterminate(lcmd->right); break; case BACK: bcmd = (struct backcmd*)cmd; nulterminate(bcmd->cmd); a00: 83 ec 0c sub $0xc,%esp a03: ff 73 04 pushl 0x4(%ebx) a06: e8 85 ff ff ff call 990 <nulterminate> break; a0b: 89 d8 mov %ebx,%eax a0d: 83 c4 10 add $0x10,%esp } return cmd; } a10: 8b 5d fc mov -0x4(%ebp),%ebx a13: c9 leave a14: c3 ret a15: 8d 76 00 lea 0x0(%esi),%esi *ecmd->eargv[i] = 0; break; case REDIR: rcmd = (struct redircmd*)cmd; nulterminate(rcmd->cmd); a18: 83 ec 0c sub $0xc,%esp a1b: ff 73 04 pushl 0x4(%ebx) a1e: e8 6d ff ff ff call 990 <nulterminate> *rcmd->efile = 0; a23: 8b 43 0c mov 0xc(%ebx),%eax break; a26: 83 c4 10 add $0x10,%esp break; case REDIR: rcmd = (struct redircmd*)cmd; nulterminate(rcmd->cmd); *rcmd->efile = 0; a29: c6 00 00 movb $0x0,(%eax) break; a2c: 89 d8 mov %ebx,%eax bcmd = (struct backcmd*)cmd; nulterminate(bcmd->cmd); break; } return cmd; } a2e: 8b 5d fc mov -0x4(%ebp),%ebx a31: c9 leave a32: c3 ret a33: 90 nop a34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if(cmd == 0) return 0; a38: 31 c0 xor %eax,%eax a3a: eb 8d jmp 9c9 <nulterminate+0x39> a3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000a40 <parsecmd>: struct cmd *parseexec(char**, char*); struct cmd *nulterminate(struct cmd*); struct cmd* parsecmd(char *s) { a40: 55 push %ebp a41: 89 e5 mov %esp,%ebp a43: 56 push %esi a44: 53 push %ebx char *es; struct cmd *cmd; es = s + strlen(s); a45: 8b 5d 08 mov 0x8(%ebp),%ebx a48: 83 ec 0c sub $0xc,%esp a4b: 53 push %ebx a4c: e8 df 00 00 00 call b30 <strlen> cmd = parseline(&s, es); a51: 59 pop %ecx parsecmd(char *s) { char *es; struct cmd *cmd; es = s + strlen(s); a52: 01 c3 add %eax,%ebx cmd = parseline(&s, es); a54: 8d 45 08 lea 0x8(%ebp),%eax a57: 5e pop %esi a58: 53 push %ebx a59: 50 push %eax a5a: e8 01 fe ff ff call 860 <parseline> a5f: 89 c6 mov %eax,%esi peek(&s, es, ""); a61: 8d 45 08 lea 0x8(%ebp),%eax a64: 83 c4 0c add $0xc,%esp a67: 68 8e 11 00 00 push $0x118e a6c: 53 push %ebx a6d: 50 push %eax a6e: e8 4d fb ff ff call 5c0 <peek> if(s != es){ a73: 8b 45 08 mov 0x8(%ebp),%eax a76: 83 c4 10 add $0x10,%esp a79: 39 c3 cmp %eax,%ebx a7b: 75 12 jne a8f <parsecmd+0x4f> printf(2, "leftovers: %s\n", s); panic("syntax"); } nulterminate(cmd); a7d: 83 ec 0c sub $0xc,%esp a80: 56 push %esi a81: e8 0a ff ff ff call 990 <nulterminate> return cmd; } a86: 8d 65 f8 lea -0x8(%ebp),%esp a89: 89 f0 mov %esi,%eax a8b: 5b pop %ebx a8c: 5e pop %esi a8d: 5d pop %ebp a8e: c3 ret es = s + strlen(s); cmd = parseline(&s, es); peek(&s, es, ""); if(s != es){ printf(2, "leftovers: %s\n", s); a8f: 52 push %edx a90: 50 push %eax a91: 68 02 12 00 00 push $0x1202 a96: 6a 02 push $0x2 a98: e8 b3 03 00 00 call e50 <printf> panic("syntax"); a9d: c7 04 24 c6 11 00 00 movl $0x11c6,(%esp) aa4: e8 a7 f6 ff ff call 150 <panic> aa9: 66 90 xchg %ax,%ax aab: 66 90 xchg %ax,%ax aad: 66 90 xchg %ax,%ax aaf: 90 nop 00000ab0 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { ab0: 55 push %ebp ab1: 89 e5 mov %esp,%ebp ab3: 53 push %ebx ab4: 8b 45 08 mov 0x8(%ebp),%eax ab7: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) aba: 89 c2 mov %eax,%edx abc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ac0: 83 c1 01 add $0x1,%ecx ac3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx ac7: 83 c2 01 add $0x1,%edx aca: 84 db test %bl,%bl acc: 88 5a ff mov %bl,-0x1(%edx) acf: 75 ef jne ac0 <strcpy+0x10> ; return os; } ad1: 5b pop %ebx ad2: 5d pop %ebp ad3: c3 ret ad4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi ada: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000ae0 <strcmp>: int strcmp(const char *p, const char *q) { ae0: 55 push %ebp ae1: 89 e5 mov %esp,%ebp ae3: 56 push %esi ae4: 53 push %ebx ae5: 8b 55 08 mov 0x8(%ebp),%edx ae8: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) aeb: 0f b6 02 movzbl (%edx),%eax aee: 0f b6 19 movzbl (%ecx),%ebx af1: 84 c0 test %al,%al af3: 75 1e jne b13 <strcmp+0x33> af5: eb 29 jmp b20 <strcmp+0x40> af7: 89 f6 mov %esi,%esi af9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; b00: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) b03: 0f b6 02 movzbl (%edx),%eax p++, q++; b06: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) b09: 0f b6 59 01 movzbl 0x1(%ecx),%ebx b0d: 84 c0 test %al,%al b0f: 74 0f je b20 <strcmp+0x40> b11: 89 f1 mov %esi,%ecx b13: 38 d8 cmp %bl,%al b15: 74 e9 je b00 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; b17: 29 d8 sub %ebx,%eax } b19: 5b pop %ebx b1a: 5e pop %esi b1b: 5d pop %ebp b1c: c3 ret b1d: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) b20: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; b22: 29 d8 sub %ebx,%eax } b24: 5b pop %ebx b25: 5e pop %esi b26: 5d pop %ebp b27: c3 ret b28: 90 nop b29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000b30 <strlen>: uint strlen(char *s) { b30: 55 push %ebp b31: 89 e5 mov %esp,%ebp b33: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) b36: 80 39 00 cmpb $0x0,(%ecx) b39: 74 12 je b4d <strlen+0x1d> b3b: 31 d2 xor %edx,%edx b3d: 8d 76 00 lea 0x0(%esi),%esi b40: 83 c2 01 add $0x1,%edx b43: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) b47: 89 d0 mov %edx,%eax b49: 75 f5 jne b40 <strlen+0x10> ; return n; } b4b: 5d pop %ebp b4c: c3 ret uint strlen(char *s) { int n; for(n = 0; s[n]; n++) b4d: 31 c0 xor %eax,%eax ; return n; } b4f: 5d pop %ebp b50: c3 ret b51: eb 0d jmp b60 <memset> b53: 90 nop b54: 90 nop b55: 90 nop b56: 90 nop b57: 90 nop b58: 90 nop b59: 90 nop b5a: 90 nop b5b: 90 nop b5c: 90 nop b5d: 90 nop b5e: 90 nop b5f: 90 nop 00000b60 <memset>: void* memset(void *dst, int c, uint n) { b60: 55 push %ebp b61: 89 e5 mov %esp,%ebp b63: 57 push %edi b64: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : b67: 8b 4d 10 mov 0x10(%ebp),%ecx b6a: 8b 45 0c mov 0xc(%ebp),%eax b6d: 89 d7 mov %edx,%edi b6f: fc cld b70: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } b72: 89 d0 mov %edx,%eax b74: 5f pop %edi b75: 5d pop %ebp b76: c3 ret b77: 89 f6 mov %esi,%esi b79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000b80 <strchr>: char* strchr(const char *s, char c) { b80: 55 push %ebp b81: 89 e5 mov %esp,%ebp b83: 53 push %ebx b84: 8b 45 08 mov 0x8(%ebp),%eax b87: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) b8a: 0f b6 10 movzbl (%eax),%edx b8d: 84 d2 test %dl,%dl b8f: 74 1d je bae <strchr+0x2e> if(*s == c) b91: 38 d3 cmp %dl,%bl b93: 89 d9 mov %ebx,%ecx b95: 75 0d jne ba4 <strchr+0x24> b97: eb 17 jmp bb0 <strchr+0x30> b99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ba0: 38 ca cmp %cl,%dl ba2: 74 0c je bb0 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) ba4: 83 c0 01 add $0x1,%eax ba7: 0f b6 10 movzbl (%eax),%edx baa: 84 d2 test %dl,%dl bac: 75 f2 jne ba0 <strchr+0x20> if(*s == c) return (char*)s; return 0; bae: 31 c0 xor %eax,%eax } bb0: 5b pop %ebx bb1: 5d pop %ebp bb2: c3 ret bb3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi bb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000bc0 <gets>: char* gets(char *buf, int max) { bc0: 55 push %ebp bc1: 89 e5 mov %esp,%ebp bc3: 57 push %edi bc4: 56 push %esi bc5: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ bc6: 31 f6 xor %esi,%esi cc = read(0, &c, 1); bc8: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { bcb: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ bce: eb 29 jmp bf9 <gets+0x39> cc = read(0, &c, 1); bd0: 83 ec 04 sub $0x4,%esp bd3: 6a 01 push $0x1 bd5: 57 push %edi bd6: 6a 00 push $0x0 bd8: e8 2d 01 00 00 call d0a <read> if(cc < 1) bdd: 83 c4 10 add $0x10,%esp be0: 85 c0 test %eax,%eax be2: 7e 1d jle c01 <gets+0x41> break; buf[i++] = c; be4: 0f b6 45 e7 movzbl -0x19(%ebp),%eax be8: 8b 55 08 mov 0x8(%ebp),%edx beb: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') bed: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; bef: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') bf3: 74 1b je c10 <gets+0x50> bf5: 3c 0d cmp $0xd,%al bf7: 74 17 je c10 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ bf9: 8d 5e 01 lea 0x1(%esi),%ebx bfc: 3b 5d 0c cmp 0xc(%ebp),%ebx bff: 7c cf jl bd0 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; c01: 8b 45 08 mov 0x8(%ebp),%eax c04: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } c08: 8d 65 f4 lea -0xc(%ebp),%esp c0b: 5b pop %ebx c0c: 5e pop %esi c0d: 5f pop %edi c0e: 5d pop %ebp c0f: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; c10: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ c13: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; c15: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } c19: 8d 65 f4 lea -0xc(%ebp),%esp c1c: 5b pop %ebx c1d: 5e pop %esi c1e: 5f pop %edi c1f: 5d pop %ebp c20: c3 ret c21: eb 0d jmp c30 <stat> c23: 90 nop c24: 90 nop c25: 90 nop c26: 90 nop c27: 90 nop c28: 90 nop c29: 90 nop c2a: 90 nop c2b: 90 nop c2c: 90 nop c2d: 90 nop c2e: 90 nop c2f: 90 nop 00000c30 <stat>: int stat(char *n, struct stat *st) { c30: 55 push %ebp c31: 89 e5 mov %esp,%ebp c33: 56 push %esi c34: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); c35: 83 ec 08 sub $0x8,%esp c38: 6a 00 push $0x0 c3a: ff 75 08 pushl 0x8(%ebp) c3d: e8 f0 00 00 00 call d32 <open> if(fd < 0) c42: 83 c4 10 add $0x10,%esp c45: 85 c0 test %eax,%eax c47: 78 27 js c70 <stat+0x40> return -1; r = fstat(fd, st); c49: 83 ec 08 sub $0x8,%esp c4c: ff 75 0c pushl 0xc(%ebp) c4f: 89 c3 mov %eax,%ebx c51: 50 push %eax c52: e8 f3 00 00 00 call d4a <fstat> c57: 89 c6 mov %eax,%esi close(fd); c59: 89 1c 24 mov %ebx,(%esp) c5c: e8 b9 00 00 00 call d1a <close> return r; c61: 83 c4 10 add $0x10,%esp c64: 89 f0 mov %esi,%eax } c66: 8d 65 f8 lea -0x8(%ebp),%esp c69: 5b pop %ebx c6a: 5e pop %esi c6b: 5d pop %ebp c6c: c3 ret c6d: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; c70: b8 ff ff ff ff mov $0xffffffff,%eax c75: eb ef jmp c66 <stat+0x36> c77: 89 f6 mov %esi,%esi c79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000c80 <atoi>: return r; } int atoi(const char *s) { c80: 55 push %ebp c81: 89 e5 mov %esp,%ebp c83: 53 push %ebx c84: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') c87: 0f be 11 movsbl (%ecx),%edx c8a: 8d 42 d0 lea -0x30(%edx),%eax c8d: 3c 09 cmp $0x9,%al c8f: b8 00 00 00 00 mov $0x0,%eax c94: 77 1f ja cb5 <atoi+0x35> c96: 8d 76 00 lea 0x0(%esi),%esi c99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; ca0: 8d 04 80 lea (%eax,%eax,4),%eax ca3: 83 c1 01 add $0x1,%ecx ca6: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') caa: 0f be 11 movsbl (%ecx),%edx cad: 8d 5a d0 lea -0x30(%edx),%ebx cb0: 80 fb 09 cmp $0x9,%bl cb3: 76 eb jbe ca0 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } cb5: 5b pop %ebx cb6: 5d pop %ebp cb7: c3 ret cb8: 90 nop cb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000cc0 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { cc0: 55 push %ebp cc1: 89 e5 mov %esp,%ebp cc3: 56 push %esi cc4: 53 push %ebx cc5: 8b 5d 10 mov 0x10(%ebp),%ebx cc8: 8b 45 08 mov 0x8(%ebp),%eax ccb: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) cce: 85 db test %ebx,%ebx cd0: 7e 14 jle ce6 <memmove+0x26> cd2: 31 d2 xor %edx,%edx cd4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; cd8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx cdc: 88 0c 10 mov %cl,(%eax,%edx,1) cdf: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) ce2: 39 da cmp %ebx,%edx ce4: 75 f2 jne cd8 <memmove+0x18> *dst++ = *src++; return vdst; } ce6: 5b pop %ebx ce7: 5e pop %esi ce8: 5d pop %ebp ce9: c3 ret 00000cea <fork>: cea: b8 01 00 00 00 mov $0x1,%eax cef: cd 40 int $0x40 cf1: c3 ret 00000cf2 <exit>: cf2: b8 02 00 00 00 mov $0x2,%eax cf7: cd 40 int $0x40 cf9: c3 ret 00000cfa <wait>: cfa: b8 03 00 00 00 mov $0x3,%eax cff: cd 40 int $0x40 d01: c3 ret 00000d02 <pipe>: d02: b8 04 00 00 00 mov $0x4,%eax d07: cd 40 int $0x40 d09: c3 ret 00000d0a <read>: d0a: b8 05 00 00 00 mov $0x5,%eax d0f: cd 40 int $0x40 d11: c3 ret 00000d12 <write>: d12: b8 10 00 00 00 mov $0x10,%eax d17: cd 40 int $0x40 d19: c3 ret 00000d1a <close>: d1a: b8 15 00 00 00 mov $0x15,%eax d1f: cd 40 int $0x40 d21: c3 ret 00000d22 <kill>: d22: b8 06 00 00 00 mov $0x6,%eax d27: cd 40 int $0x40 d29: c3 ret 00000d2a <exec>: d2a: b8 07 00 00 00 mov $0x7,%eax d2f: cd 40 int $0x40 d31: c3 ret 00000d32 <open>: d32: b8 0f 00 00 00 mov $0xf,%eax d37: cd 40 int $0x40 d39: c3 ret 00000d3a <mknod>: d3a: b8 11 00 00 00 mov $0x11,%eax d3f: cd 40 int $0x40 d41: c3 ret 00000d42 <unlink>: d42: b8 12 00 00 00 mov $0x12,%eax d47: cd 40 int $0x40 d49: c3 ret 00000d4a <fstat>: d4a: b8 08 00 00 00 mov $0x8,%eax d4f: cd 40 int $0x40 d51: c3 ret 00000d52 <link>: d52: b8 13 00 00 00 mov $0x13,%eax d57: cd 40 int $0x40 d59: c3 ret 00000d5a <mkdir>: d5a: b8 14 00 00 00 mov $0x14,%eax d5f: cd 40 int $0x40 d61: c3 ret 00000d62 <chdir>: d62: b8 09 00 00 00 mov $0x9,%eax d67: cd 40 int $0x40 d69: c3 ret 00000d6a <dup>: d6a: b8 0a 00 00 00 mov $0xa,%eax d6f: cd 40 int $0x40 d71: c3 ret 00000d72 <getpid>: d72: b8 0b 00 00 00 mov $0xb,%eax d77: cd 40 int $0x40 d79: c3 ret 00000d7a <sbrk>: d7a: b8 0c 00 00 00 mov $0xc,%eax d7f: cd 40 int $0x40 d81: c3 ret 00000d82 <sleep>: d82: b8 0d 00 00 00 mov $0xd,%eax d87: cd 40 int $0x40 d89: c3 ret 00000d8a <uptime>: d8a: b8 0e 00 00 00 mov $0xe,%eax d8f: cd 40 int $0x40 d91: c3 ret 00000d92 <cps>: d92: b8 16 00 00 00 mov $0x16,%eax d97: cd 40 int $0x40 d99: c3 ret 00000d9a <cht>: d9a: b8 17 00 00 00 mov $0x17,%eax d9f: cd 40 int $0x40 da1: c3 ret da2: 66 90 xchg %ax,%ax da4: 66 90 xchg %ax,%ax da6: 66 90 xchg %ax,%ax da8: 66 90 xchg %ax,%ax daa: 66 90 xchg %ax,%ax dac: 66 90 xchg %ax,%ax dae: 66 90 xchg %ax,%ax 00000db0 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { db0: 55 push %ebp db1: 89 e5 mov %esp,%ebp db3: 57 push %edi db4: 56 push %esi db5: 53 push %ebx db6: 89 c6 mov %eax,%esi db8: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ dbb: 8b 5d 08 mov 0x8(%ebp),%ebx dbe: 85 db test %ebx,%ebx dc0: 74 7e je e40 <printint+0x90> dc2: 89 d0 mov %edx,%eax dc4: c1 e8 1f shr $0x1f,%eax dc7: 84 c0 test %al,%al dc9: 74 75 je e40 <printint+0x90> neg = 1; x = -xx; dcb: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; dcd: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; dd4: f7 d8 neg %eax dd6: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; dd9: 31 ff xor %edi,%edi ddb: 8d 5d d7 lea -0x29(%ebp),%ebx dde: 89 ce mov %ecx,%esi de0: eb 08 jmp dea <printint+0x3a> de2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; de8: 89 cf mov %ecx,%edi dea: 31 d2 xor %edx,%edx dec: 8d 4f 01 lea 0x1(%edi),%ecx def: f7 f6 div %esi df1: 0f b6 92 60 12 00 00 movzbl 0x1260(%edx),%edx }while((x /= base) != 0); df8: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; dfa: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); dfd: 75 e9 jne de8 <printint+0x38> if(neg) dff: 8b 45 c4 mov -0x3c(%ebp),%eax e02: 8b 75 c0 mov -0x40(%ebp),%esi e05: 85 c0 test %eax,%eax e07: 74 08 je e11 <printint+0x61> buf[i++] = '-'; e09: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) e0e: 8d 4f 02 lea 0x2(%edi),%ecx e11: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi e15: 8d 76 00 lea 0x0(%esi),%esi e18: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); e1b: 83 ec 04 sub $0x4,%esp e1e: 83 ef 01 sub $0x1,%edi e21: 6a 01 push $0x1 e23: 53 push %ebx e24: 56 push %esi e25: 88 45 d7 mov %al,-0x29(%ebp) e28: e8 e5 fe ff ff call d12 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) e2d: 83 c4 10 add $0x10,%esp e30: 39 df cmp %ebx,%edi e32: 75 e4 jne e18 <printint+0x68> putc(fd, buf[i]); } e34: 8d 65 f4 lea -0xc(%ebp),%esp e37: 5b pop %ebx e38: 5e pop %esi e39: 5f pop %edi e3a: 5d pop %ebp e3b: c3 ret e3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; e40: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; e42: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) e49: eb 8b jmp dd6 <printint+0x26> e4b: 90 nop e4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000e50 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { e50: 55 push %ebp e51: 89 e5 mov %esp,%ebp e53: 57 push %edi e54: 56 push %esi e55: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ e56: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { e59: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ e5c: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { e5f: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ e62: 89 45 d0 mov %eax,-0x30(%ebp) e65: 0f b6 1e movzbl (%esi),%ebx e68: 83 c6 01 add $0x1,%esi e6b: 84 db test %bl,%bl e6d: 0f 84 b0 00 00 00 je f23 <printf+0xd3> e73: 31 d2 xor %edx,%edx e75: eb 39 jmp eb0 <printf+0x60> e77: 89 f6 mov %esi,%esi e79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ e80: 83 f8 25 cmp $0x25,%eax e83: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; e86: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ e8b: 74 18 je ea5 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); e8d: 8d 45 e2 lea -0x1e(%ebp),%eax e90: 83 ec 04 sub $0x4,%esp e93: 88 5d e2 mov %bl,-0x1e(%ebp) e96: 6a 01 push $0x1 e98: 50 push %eax e99: 57 push %edi e9a: e8 73 fe ff ff call d12 <write> e9f: 8b 55 d4 mov -0x2c(%ebp),%edx ea2: 83 c4 10 add $0x10,%esp ea5: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ ea8: 0f b6 5e ff movzbl -0x1(%esi),%ebx eac: 84 db test %bl,%bl eae: 74 73 je f23 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ eb0: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; eb2: 0f be cb movsbl %bl,%ecx eb5: 0f b6 c3 movzbl %bl,%eax if(state == 0){ eb8: 74 c6 je e80 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ eba: 83 fa 25 cmp $0x25,%edx ebd: 75 e6 jne ea5 <printf+0x55> if(c == 'd'){ ebf: 83 f8 64 cmp $0x64,%eax ec2: 0f 84 f8 00 00 00 je fc0 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ ec8: 81 e1 f7 00 00 00 and $0xf7,%ecx ece: 83 f9 70 cmp $0x70,%ecx ed1: 74 5d je f30 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ ed3: 83 f8 73 cmp $0x73,%eax ed6: 0f 84 84 00 00 00 je f60 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ edc: 83 f8 63 cmp $0x63,%eax edf: 0f 84 ea 00 00 00 je fcf <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ ee5: 83 f8 25 cmp $0x25,%eax ee8: 0f 84 c2 00 00 00 je fb0 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); eee: 8d 45 e7 lea -0x19(%ebp),%eax ef1: 83 ec 04 sub $0x4,%esp ef4: c6 45 e7 25 movb $0x25,-0x19(%ebp) ef8: 6a 01 push $0x1 efa: 50 push %eax efb: 57 push %edi efc: e8 11 fe ff ff call d12 <write> f01: 83 c4 0c add $0xc,%esp f04: 8d 45 e6 lea -0x1a(%ebp),%eax f07: 88 5d e6 mov %bl,-0x1a(%ebp) f0a: 6a 01 push $0x1 f0c: 50 push %eax f0d: 57 push %edi f0e: 83 c6 01 add $0x1,%esi f11: e8 fc fd ff ff call d12 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ f16: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); f1a: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; f1d: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ f1f: 84 db test %bl,%bl f21: 75 8d jne eb0 <printf+0x60> putc(fd, c); } state = 0; } } } f23: 8d 65 f4 lea -0xc(%ebp),%esp f26: 5b pop %ebx f27: 5e pop %esi f28: 5f pop %edi f29: 5d pop %ebp f2a: c3 ret f2b: 90 nop f2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); f30: 83 ec 0c sub $0xc,%esp f33: b9 10 00 00 00 mov $0x10,%ecx f38: 6a 00 push $0x0 f3a: 8b 5d d0 mov -0x30(%ebp),%ebx f3d: 89 f8 mov %edi,%eax f3f: 8b 13 mov (%ebx),%edx f41: e8 6a fe ff ff call db0 <printint> ap++; f46: 89 d8 mov %ebx,%eax f48: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; f4b: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; f4d: 83 c0 04 add $0x4,%eax f50: 89 45 d0 mov %eax,-0x30(%ebp) f53: e9 4d ff ff ff jmp ea5 <printf+0x55> f58: 90 nop f59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; f60: 8b 45 d0 mov -0x30(%ebp),%eax f63: 8b 18 mov (%eax),%ebx ap++; f65: 83 c0 04 add $0x4,%eax f68: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; f6b: b8 58 12 00 00 mov $0x1258,%eax f70: 85 db test %ebx,%ebx f72: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ f75: 0f b6 03 movzbl (%ebx),%eax f78: 84 c0 test %al,%al f7a: 74 23 je f9f <printf+0x14f> f7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi f80: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); f83: 8d 45 e3 lea -0x1d(%ebp),%eax f86: 83 ec 04 sub $0x4,%esp f89: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; f8b: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); f8e: 50 push %eax f8f: 57 push %edi f90: e8 7d fd ff ff call d12 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ f95: 0f b6 03 movzbl (%ebx),%eax f98: 83 c4 10 add $0x10,%esp f9b: 84 c0 test %al,%al f9d: 75 e1 jne f80 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; f9f: 31 d2 xor %edx,%edx fa1: e9 ff fe ff ff jmp ea5 <printf+0x55> fa6: 8d 76 00 lea 0x0(%esi),%esi fa9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); fb0: 83 ec 04 sub $0x4,%esp fb3: 88 5d e5 mov %bl,-0x1b(%ebp) fb6: 8d 45 e5 lea -0x1b(%ebp),%eax fb9: 6a 01 push $0x1 fbb: e9 4c ff ff ff jmp f0c <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); fc0: 83 ec 0c sub $0xc,%esp fc3: b9 0a 00 00 00 mov $0xa,%ecx fc8: 6a 01 push $0x1 fca: e9 6b ff ff ff jmp f3a <printf+0xea> fcf: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); fd2: 83 ec 04 sub $0x4,%esp fd5: 8b 03 mov (%ebx),%eax fd7: 6a 01 push $0x1 fd9: 88 45 e4 mov %al,-0x1c(%ebp) fdc: 8d 45 e4 lea -0x1c(%ebp),%eax fdf: 50 push %eax fe0: 57 push %edi fe1: e8 2c fd ff ff call d12 <write> fe6: e9 5b ff ff ff jmp f46 <printf+0xf6> feb: 66 90 xchg %ax,%ax fed: 66 90 xchg %ax,%ax fef: 90 nop 00000ff0 <free>: static Header base; static Header *freep; void free(void *ap) { ff0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) ff1: a1 84 18 00 00 mov 0x1884,%eax static Header base; static Header *freep; void free(void *ap) { ff6: 89 e5 mov %esp,%ebp ff8: 57 push %edi ff9: 56 push %esi ffa: 53 push %ebx ffb: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; 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)) ffe: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 1000: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1003: 39 c8 cmp %ecx,%eax 1005: 73 19 jae 1020 <free+0x30> 1007: 89 f6 mov %esi,%esi 1009: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 1010: 39 d1 cmp %edx,%ecx 1012: 72 1c jb 1030 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1014: 39 d0 cmp %edx,%eax 1016: 73 18 jae 1030 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 1018: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 101a: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 101c: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 101e: 72 f0 jb 1010 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1020: 39 d0 cmp %edx,%eax 1022: 72 f4 jb 1018 <free+0x28> 1024: 39 d1 cmp %edx,%ecx 1026: 73 f0 jae 1018 <free+0x28> 1028: 90 nop 1029: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 1030: 8b 73 fc mov -0x4(%ebx),%esi 1033: 8d 3c f1 lea (%ecx,%esi,8),%edi 1036: 39 d7 cmp %edx,%edi 1038: 74 19 je 1053 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 103a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 103d: 8b 50 04 mov 0x4(%eax),%edx 1040: 8d 34 d0 lea (%eax,%edx,8),%esi 1043: 39 f1 cmp %esi,%ecx 1045: 74 23 je 106a <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 1047: 89 08 mov %ecx,(%eax) freep = p; 1049: a3 84 18 00 00 mov %eax,0x1884 } 104e: 5b pop %ebx 104f: 5e pop %esi 1050: 5f pop %edi 1051: 5d pop %ebp 1052: 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; 1053: 03 72 04 add 0x4(%edx),%esi 1056: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1059: 8b 10 mov (%eax),%edx 105b: 8b 12 mov (%edx),%edx 105d: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 1060: 8b 50 04 mov 0x4(%eax),%edx 1063: 8d 34 d0 lea (%eax,%edx,8),%esi 1066: 39 f1 cmp %esi,%ecx 1068: 75 dd jne 1047 <free+0x57> p->s.size += bp->s.size; 106a: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 106d: a3 84 18 00 00 mov %eax,0x1884 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 1072: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1075: 8b 53 f8 mov -0x8(%ebx),%edx 1078: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 107a: 5b pop %ebx 107b: 5e pop %esi 107c: 5f pop %edi 107d: 5d pop %ebp 107e: c3 ret 107f: 90 nop 00001080 <malloc>: return freep; } void* malloc(uint nbytes) { 1080: 55 push %ebp 1081: 89 e5 mov %esp,%ebp 1083: 57 push %edi 1084: 56 push %esi 1085: 53 push %ebx 1086: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1089: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 108c: 8b 15 84 18 00 00 mov 0x1884,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1092: 8d 78 07 lea 0x7(%eax),%edi 1095: c1 ef 03 shr $0x3,%edi 1098: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 109b: 85 d2 test %edx,%edx 109d: 0f 84 a3 00 00 00 je 1146 <malloc+0xc6> 10a3: 8b 02 mov (%edx),%eax 10a5: 8b 48 04 mov 0x4(%eax),%ecx 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){ 10a8: 39 cf cmp %ecx,%edi 10aa: 76 74 jbe 1120 <malloc+0xa0> 10ac: 81 ff 00 10 00 00 cmp $0x1000,%edi 10b2: be 00 10 00 00 mov $0x1000,%esi 10b7: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 10be: 0f 43 f7 cmovae %edi,%esi 10c1: ba 00 80 00 00 mov $0x8000,%edx 10c6: 81 ff ff 0f 00 00 cmp $0xfff,%edi 10cc: 0f 46 da cmovbe %edx,%ebx 10cf: eb 10 jmp 10e1 <malloc+0x61> 10d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 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){ 10d8: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 10da: 8b 48 04 mov 0x4(%eax),%ecx 10dd: 39 cf cmp %ecx,%edi 10df: 76 3f jbe 1120 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 10e1: 39 05 84 18 00 00 cmp %eax,0x1884 10e7: 89 c2 mov %eax,%edx 10e9: 75 ed jne 10d8 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 10eb: 83 ec 0c sub $0xc,%esp 10ee: 53 push %ebx 10ef: e8 86 fc ff ff call d7a <sbrk> if(p == (char*)-1) 10f4: 83 c4 10 add $0x10,%esp 10f7: 83 f8 ff cmp $0xffffffff,%eax 10fa: 74 1c je 1118 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 10fc: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 10ff: 83 ec 0c sub $0xc,%esp 1102: 83 c0 08 add $0x8,%eax 1105: 50 push %eax 1106: e8 e5 fe ff ff call ff0 <free> return freep; 110b: 8b 15 84 18 00 00 mov 0x1884,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 1111: 83 c4 10 add $0x10,%esp 1114: 85 d2 test %edx,%edx 1116: 75 c0 jne 10d8 <malloc+0x58> return 0; 1118: 31 c0 xor %eax,%eax 111a: eb 1c jmp 1138 <malloc+0xb8> 111c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 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){ if(p->s.size == nunits) 1120: 39 cf cmp %ecx,%edi 1122: 74 1c je 1140 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 1124: 29 f9 sub %edi,%ecx 1126: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 1129: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 112c: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 112f: 89 15 84 18 00 00 mov %edx,0x1884 return (void*)(p + 1); 1135: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 1138: 8d 65 f4 lea -0xc(%ebp),%esp 113b: 5b pop %ebx 113c: 5e pop %esi 113d: 5f pop %edi 113e: 5d pop %ebp 113f: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 1140: 8b 08 mov (%eax),%ecx 1142: 89 0a mov %ecx,(%edx) 1144: eb e9 jmp 112f <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 1146: c7 05 84 18 00 00 88 movl $0x1888,0x1884 114d: 18 00 00 1150: c7 05 88 18 00 00 88 movl $0x1888,0x1888 1157: 18 00 00 base.s.size = 0; 115a: b8 88 18 00 00 mov $0x1888,%eax 115f: c7 05 8c 18 00 00 00 movl $0x0,0x188c 1166: 00 00 00 1169: e9 3e ff ff ff jmp 10ac <malloc+0x2c>
33.281081
71
0.404914
ca5325a4b6da00566653be65204ffc4aab850e07
404
asm
Assembly
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_input_kbd_lastk/zx_01_input_lastk_stdio_msg_flsh.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_input_kbd_lastk/zx_01_input_lastk_stdio_msg_flsh.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_input_kbd_lastk/zx_01_input_lastk_stdio_msg_flsh.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fcntl PUBLIC zx_01_input_lastk_stdio_msg_flsh EXTERN zx_01_input_lastk_proc_lastk EXTERN console_01_input_stdio_msg_flsh zx_01_input_lastk_stdio_msg_flsh: call zx_01_input_lastk_proc_lastk jp z, console_01_input_stdio_msg_flsh ; if LASTK = 0 ld (hl),0 ; clear any pending char jp console_01_input_stdio_msg_flsh ; forward to library
25.25
67
0.75495
9b3c0b85ab8faaf328401f4f04b889b875df48ed
39,311
asm
Assembly
win32/asm31fpu/gc.asm
c-jullien/lelisp
1fb0968cfdacd4bd0c046e928ab9009e8d0c2837
[ "BSD-2-Clause" ]
13
2020-05-23T22:07:40.000Z
2022-01-12T01:24:36.000Z
win32/asm31fpu/gc.asm
c-jullien/lelisp
1fb0968cfdacd4bd0c046e928ab9009e8d0c2837
[ "BSD-2-Clause" ]
null
null
null
win32/asm31fpu/gc.asm
c-jullien/lelisp
1fb0968cfdacd4bd0c046e928ab9009e8d0c2837
[ "BSD-2-Clause" ]
2
2020-01-09T02:24:52.000Z
2020-04-02T03:58:42.000Z
.386p .387 include gc.dat assume cs:FLAT,ds:FLAT,es:FLAT,fs:FLAT,gs:FLAT,ss:FLAT _TEXT segment para use32 public 'CODE' include gc.equ ini_gc proc near mov eax,2 mov ebx,offset FLAT:pnmac261 mov ecx,offset FLAT:gcuser mov edx,offset FLAT:zgcuser push z_gcuser call near ptr inisymb mov eax,7 mov ebx,offset FLAT:pnmac262 mov ecx,offset FLAT:gcalarm mov edx,offset FLAT:zgcalarm push z_gcalarm call near ptr inisymb mov eax,15 mov ebx,offset FLAT:pnmac263 mov ecx,offset FLAT:gcalarb mov edx,offset FLAT:zgcalarb push z_gcalarb call near ptr inisymb mov eax,6 mov ebx,offset FLAT:pnmac264 mov ecx,offset FLAT:gcinfo mov edx,offset FLAT:zgcinfo push z_gcinfo call near ptr inisymb mov eax,4 mov ebx,offset FLAT:pnmac265 mov ecx,offset FLAT:zsizecd call near ptr inicst mov eax,4 mov ebx,offset FLAT:pnmac266 mov ecx,offset FLAT:zsizehp call near ptr inicst mov eax,7 mov ebx,offset FLAT:pnmac267 mov ecx,offset FLAT:tconscl mov edx,offset FLAT:ztconscl push z_tconscl call near ptr inisymb mov eax,7 mov ebx,offset FLAT:pnmac268 mov ecx,offset FLAT:tconsmk mov edx,offset FLAT:ztconsmk push z_tconsmk call near ptr inisymb mov eax,5 mov ebx,offset FLAT:pnmac269 mov ecx,offset FLAT:tcons mov edx,offset FLAT:ztcons push z_tcons call near ptr inisymb mov eax,6 mov ebx,offset FLAT:pnmac270 mov ecx,offset FLAT:tconsp mov edx,offset FLAT:ztconsp push z_tconsp call near ptr inisymb mov eax,8 mov ebx,offset FLAT:pnmac271 mov ecx,offset FLAT:frcons mov edx,offset FLAT:zfrcons push z_frcons call near ptr inisymb mov eax,8 mov ebx,offset FLAT:pnmac272 mov ecx,offset FLAT:frtree mov edx,offset FLAT:zfrtree push z_frtree call near ptr inisymb mov eax,7 mov ebx,offset FLAT:pnmac273 mov ecx,offset FLAT:gettype mov edx,offset FLAT:zgettype push z_gettype call near ptr inisymb mov eax,8 mov ebx,offset FLAT:pnmac274 mov ecx,offset FLAT:subtypep mov edx,offset FLAT:zsubtypep push z_subtypep call near ptr inisymb mov eax,5 mov ebx,offset FLAT:pnmac275 mov ecx,offset FLAT:typep mov edx,offset FLAT:ztypep push z_typep call near ptr inisymb mov eax,4 mov ebx,offset FLAT:pnmac276 mov ecx,offset FLAT:llsend mov edx,offset FLAT:zllsend push z_llsend call near ptr inisymb mov eax,10 mov ebx,offset FLAT:pnmac277 mov ecx,offset FLAT:supsend mov edx,offset FLAT:zsupsend push z_supsend call near ptr inisymb mov eax,5 mov ebx,offset FLAT:pnmac278 mov ecx,offset FLAT:csend mov edx,offset FLAT:zcsend push z_csend call near ptr inisymb mov eax,5 mov ebx,offset FLAT:pnmac279 mov ecx,offset FLAT:sendbi mov edx,offset FLAT:zsendbi push z_sendbi call near ptr inisymb mov eax,10 mov ebx,offset FLAT:pnmac280 mov ecx,offset FLAT:senderro mov edx,offset FLAT:zsenderro push z_senderro call near ptr inisymb mov ebp,dword ptr [zllsystem] mov dword ptr [cpkgc],ebp mov eax,12 mov ebx,offset FLAT:pnmac281 mov ecx,offset FLAT:strctacc mov edx,offset FLAT:zstrctacc push z_strctacc call near ptr inisymb mov eax,11 mov ebx,offset FLAT:pnmac282 mov ecx,offset FLAT:zbigtype call near ptr inicst mov eax,12 mov ebx,offset FLAT:pnmac283 mov ecx,offset FLAT:smpvect mov edx,offset FLAT:zsmpvect push z_smpvect call near ptr inisymb mov eax,12 mov ebx,offset FLAT:pnmac284 mov ecx,offset FLAT:smpstrg mov edx,offset FLAT:zsmpstrg push z_smpstrg call near ptr inisymb mov eax,13 mov ebx,offset FLAT:pnmac285 mov ecx,offset FLAT:zfnalzeff call near ptr inicst mov dword ptr [eax],esi mov eax,17 mov ebx,offset FLAT:pnmac286 mov ecx,offset FLAT:fnalzefn mov edx,offset FLAT:zfnalzefn push z_fnalzefn call near ptr inisymb mov dword ptr [cpkgc],esi mov dword ptr [ngccons],0 mov dword ptr [ngcsymb],0 mov dword ptr [ngcstrg],0 mov dword ptr [ngcvect],0 mov dword ptr [ngcfloat],0 mov dword ptr [ngcnumb],0 mov dword ptr [ngcuser],0 mov dword ptr [ngch],0 ret hgc label near inc word ptr [ngch] jmp near ptr gcgo gccons label near inc word ptr [ngccons] call near ptr gcgo cmp word ptr [freelm],0 jg near ptr gcret cmp word ptr [freelu],400 jge near ptr gcret jmp near ptr errfm gcsymb label near inc word ptr [ngcsymb] call near ptr gcgo cmp dword ptr [fsymb],0 jne near ptr gcret jmp near ptr errato gcstrg label near inc word ptr [ngcstrg] call near ptr gcgo cmp dword ptr [fstrg],esi jne near ptr gcret jmp near ptr errfr gcvect label near inc word ptr [ngcvect] call near ptr gcgo cmp dword ptr [fvect],esi jne near ptr gcret jmp near ptr errfv gcfloat label near inc word ptr [ngcfloat] call near ptr gcgo cmp word ptr [freefm],0 jg near ptr gcret cmp word ptr [freefu],0 jg near ptr gcret jmp near ptr errff gcnumb label near inc word ptr [ngcnumb] call near ptr gcgo cmp word ptr [freenm],0 jg near ptr gcret cmp word ptr [freenu],0 jg near ptr gcret jmp near ptr errfn gcret label near ret gcgo label near push eax push ebx push ecx push edx push dword ptr [llink] push dword ptr [evalst] push dword ptr [forme] push dword ptr [funct] push dword ptr [savea1] push dword ptr [savea2] push dword ptr [savea3] push dword ptr [savea4] push dword ptr [errname] push dword ptr [intret] push dword ptr [intllink] push dword ptr [iexpld] push dword ptr [impli] push dword ptr [ringur] push dword ptr [curread] push dword ptr [impld] push dword ptr [lexpld] mov edx,esp push dword ptr [asymb] push dword ptr [tabch] push dword ptr [cachch] push dword ptr [bufat] push dword ptr [cpkgc] push dword ptr [tabtypfn] push dword ptr [tabcodfn] push dword ptr [tabctyp] push dword ptr [tabccod] push dword ptr [bufpn] push dword ptr [bufstrg] push dword ptr [curprmpt] push dword ptr [tabchan] push dword ptr [cntrlc] push dword ptr [bufch] push dword ptr [rubstrg] push dword ptr [cstsyste] push dword ptr [fzero] push dword ptr [fltun] push dword ptr [fltmun] push dword ptr [fltimax] push dword ptr [fltimin] push edx mov dword ptr [iexpld],esi mov dword ptr [impli],esi mov dword ptr [llink],esi mov eax,dword ptr [zgcalarb] mov ebx,esi call near ptr itsoft call near ptr gcnoit mov eax,dword ptr [zgcalarm] mov ebx,esi call near ptr itsoft pop edx mov esp,edx pop dword ptr [lexpld] pop dword ptr [impld] pop dword ptr [curread] pop dword ptr [ringur] pop dword ptr [impli] pop dword ptr [iexpld] pop dword ptr [intllink] pop dword ptr [intret] pop dword ptr [errname] pop dword ptr [savea4] pop dword ptr [savea3] pop dword ptr [savea2] pop dword ptr [savea1] pop dword ptr [funct] pop dword ptr [forme] pop dword ptr [evalst] pop dword ptr [llink] pop edx pop ecx pop ebx pop eax gcend label near gcpopj label near ret gcnoit label near cmp dword ptr [itstate],0 je near ptr gcst0 mov ecx,offset FLAT:gcst00 call near ptr sysprot pop eax mov dword ptr [itstate],1 jmp ecx gcst00 label near mov dword ptr [itstate],0 gcst0 label near gcstmrk label near mov edx,esp mov ecx,dword ptr [bstack] gcst1 label near mov eax,dword ptr [edx] add edx,4 call near ptr mark cmp edx,ecx jne near ptr gcst1 mov eax,dword ptr [hashtab] mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bts dword ptr [eax],ebp pop eax mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] mov edx,dword ptr [4+ebp] dec dx gcat0 label near mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] mov edx,dword ptr [ebp+edx*4+8] jmp near ptr gcat8 gcat1 label near mov ecx,edx mov ebp,dword ptr [28+edx] cmp dword ptr [bstrg],ebp ja short lmac287 cmp esi,ebp ja near ptr gcat5 lmac287: gcat2 label near mov edx,dword ptr [28+edx] gcat5 label near mov eax,dword ptr [edx] cmp eax,dword ptr [zundef] je near ptr gcatm1 call near ptr mark gcatm1 label near mov eax,dword ptr [4+edx] cmp eax,esi je near ptr gcatm2 call near ptr mark gcatm2 label near mov eax,dword ptr [8+edx] or eax,eax je near ptr gcatm3 call near ptr mark gcatm3 label near mov eax,dword ptr [12+edx] cmp eax,esi je near ptr gcatm4 call near ptr mark gcatm4 label near mov eax,dword ptr [16+edx] cmp eax,esi je near ptr gcatm5 call near ptr mark gcatm5 label near mov eax,dword ptr [20+edx] cmp dword ptr [bstrg],eax ja short lmac288 cmp eax,esi jb near ptr gcatm9 lmac288: mov eax,dword ptr [28+edx] cmp dword ptr [bstrg],eax ja short lmac289 cmp eax,esi jb near ptr gcatm9 lmac289: mov eax,dword ptr [20+eax] gcatm9 label near call near ptr mark cmp edx,ecx jne near ptr gcat2 gcat6 label near mov edx,dword ptr [20+edx] gcat8 label near cmp edx,esi jb short lmac290 cmp edx,edi jb near ptr gcat1 lmac290: dec dx jge near ptr gcat0 gcat9 label near jmp near ptr gcfnlz mark label near cmp dword ptr [bfloat],eax ja short markr cmp dword ptr [econs],eax jbe short markr mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp jnc short mac290 pop eax ret mac290: bts dword ptr [eax],ebp pop eax cmp eax,edi jge short markl cmp dword ptr [bvect],eax ja short mac291 cmp dword ptr [bstrg],eax ja short markv mac291: cmp dword ptr [bstrg],eax ja short mac292 cmp esi,eax ja short markt mac292: markr: ret markl: cmp dword ptr [estack],esp ja near ptr errfsgc push dword ptr [4+eax] mov eax,dword ptr [eax] call near ptr mark pop eax jmp near ptr mark markv: push ecx mov ebp,dword ptr [eax] mov ecx,dword ptr [4+ebp] push eax cmp dword ptr [estack],esp ja near ptr errfsgc jmp short markv4 markv2: mov ebp,dword ptr [esp] mov ebp,dword ptr [ebp] mov eax,dword ptr [ebp+ecx*4+8] push ecx call near ptr mark pop ecx markv4: dec cx jge short markv2 pop eax pop ecx markt: mov eax,dword ptr [4+eax] jmp near ptr mark ret gcfnlz label near mov ebx,dword ptr [zfnalzeff] mov ebx,dword ptr [ebx] cmp ebx,esi je near ptr gcfnlz9 mov ebx,dword ptr [zfnalzefn] movzx ecx,word ptr [24+ebx] cmp ecx,2 jne near ptr gcfnlz9 mov ecx,dword ptr [8+ebx] mov eax,dword ptr [bvect] gcfnlz2 label near mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp pop eax jc near ptr gcfnlz8 mov ebx,dword ptr [eax] cmp ebx,esi je near ptr gcfnlz8 cmp dword ptr [bvect],ebx ja short lmac294 cmp dword ptr [bstrg],ebx ja near ptr gcfnlz8 lmac294: push eax push ecx push offset FLAT:gcfnlz6 jmp ecx gcfnlz6 label near pop ecx pop eax gcfnlz8 label near add eax,8 cmp dword ptr [bstrg],eax ja near ptr gcfnlz2 gcfnlz9 label near jmp near ptr gcompact gcompact label near mov ecx,dword ptr [bheap] mov edx,dword ptr [bheap] jmp near ptr hsweep8 hsweep2 label near mov eax,dword ptr [ecx] cmp dword ptr [bstrg],eax ja short lmac295 cmp eax,esi jb near ptr hsweep4 lmac295: cmp dword ptr [bvect],eax ja short lmac296 cmp dword ptr [bstrg],eax ja near ptr hsweep5 lmac296: or eax,eax js near ptr hsweep6 cmp eax,esi jb short lmac297 cmp eax,edi jb near ptr hsweep7 lmac297: ;; Prepare a C function call with 2 arguments. push eax push ebx push ecx push edx push esi push edi push offset ds:lab_m__1 push 13 call near ptr _ttyout add esp,8 pop edi pop esi pop edx pop ecx pop ebx pop eax ;; We are back to Lisp! ;; Prepare a C function call with 4 arguments. push eax push ebx push ecx push edx push esi push edi mov ebp,dword ptr [oswheap] push ebp mov ebp,dword ptr [eheap] push ebp mov ebp,dword ptr [cheap] push ebp mov ebp,dword ptr [bheap] push ebp call near ptr _llovni add esp,16 pop edi pop esi pop edx pop ecx pop ebx pop eax ;; We are back to Lisp! jmp near ptr hsweep9 hsweep4 label near mov dword ptr [oswheap],ecx mov ebx,dword ptr [4+ecx] lea ecx,dword ptr [ecx+ebx+10] test ecx,1 jz short l__2 inc ecx l__2: mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp pop eax jnc near ptr hsweep8 cmp dword ptr [oswheap],edx jne near ptr hsweep41 mov edx,ecx jmp near ptr hsweep8 hsweep41 label near cld push ecx push edi push esi mov esi,dword ptr [oswheap] mov edi,edx sub ecx,esi mov ebp,ecx shr ecx,2 rep movsd mov ecx,ebp and ecx,3 rep movsb pop esi pop edi pop ecx mov dword ptr [eax],edx lea edx,dword ptr [edx+ebx+10] test edx,1 jz short l__3 inc edx l__3: jmp near ptr hsweep8 hsweep5 label near mov dword ptr [oswheap],ecx mov ebx,dword ptr [4+ecx] lea ecx,dword ptr [ecx+ebx*4+8] mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp pop eax jnc near ptr hsweep8 cmp dword ptr [oswheap],edx jne near ptr hsweep51 mov edx,ecx jmp near ptr hsweep8 hsweep51 label near cld push ecx push edi push esi mov esi,dword ptr [oswheap] mov edi,edx sub ecx,esi mov ebp,ecx shr ecx,2 rep movsd mov ecx,ebp and ecx,3 rep movsb pop esi pop edi pop ecx mov dword ptr [eax],edx lea edx,dword ptr [edx+ebx*4+8] jmp near ptr hsweep8 hsweep6 label near mov dword ptr [oswheap],ecx mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp pop eax jnc near ptr hsweep8 cmp dword ptr [oswheap],edx jne near ptr hsweep61 mov edx,ecx jmp near ptr hsweep8 hsweep61 label near cld push ecx push edi push esi mov esi,dword ptr [oswheap] mov edi,edx mov ecx,dword ptr [swheap] sub ecx,esi mov ebp,ecx shr ecx,2 rep movsd mov ecx,ebp and ecx,3 rep movsb pop esi pop edi pop ecx mov dword ptr [eax],edx jmp near ptr hsweep8 hsweep7 label near mov dword ptr [oswheap],ecx mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] bt dword ptr [eax],ebp pop eax jnc near ptr hsweep8 cmp dword ptr [oswheap],edx jne near ptr hsweep71 mov edx,ecx jmp near ptr hsweep8 hsweep71 label near cld push ecx push edi push esi mov esi,dword ptr [oswheap] mov edi,edx sub ecx,esi mov ebp,ecx shr ecx,2 rep movsd mov ecx,ebp and ecx,3 rep movsb pop esi pop edi pop ecx mov dword ptr [eax],edx hsweep8 label near cmp ecx,dword ptr [cheap] jb near ptr hsweep2 mov dword ptr [cheap],edx hsweep9 label near jmp near ptr gcsweep gcsweep label near xor eax,eax xor ebx,ebx xor ecx,ecx mov edx,dword ptr [cnumb] jmp near ptr gcswn4 gcswn1 label near mov ebp,edx sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] btr dword ptr [eax],ebp pop eax jc near ptr gcswn3 mov dword ptr [edx],eax mov eax,edx inc ebx cmp ebx,1024 jl short mac298 xor ebx,ebx inc ecx mac298: gcswn3 label near gcswn4 label near mov dword ptr [fnumb],eax mov dword ptr [freenu],ebx mov dword ptr [freenm],ecx xor eax,eax xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bfloat] or edx,edx jns near ptr gcswf4 gcswf1 label near mov ebp,edx sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] btr dword ptr [eax],ebp pop eax jc near ptr gcswf3 mov dword ptr [edx],eax mov eax,edx inc ebx cmp ebx,1024 jl short mac299 xor ebx,ebx inc ecx mac299: gcswf3 label near gcswf4 label near mov dword ptr [ffloat],eax mov dword ptr [freefu],ebx mov dword ptr [freefm],ecx mov eax,esi xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bvect] gcswv1 label near mov ebp,edx sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] btr dword ptr [eax],ebp pop eax jc near ptr gcswv2 mov dword ptr [edx],eax mov eax,edx inc ebx cmp ebx,1024 jl short mac300 xor ebx,ebx inc ecx mac300: gcswv2 label near add edx,8 cmp dword ptr [bstrg],edx ja near ptr gcswv1 mov dword ptr [fvect],eax mov dword ptr [freevu],ebx mov dword ptr [freevm],ecx mov eax,esi xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bstrg] gcsws1 label near mov ebp,edx sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] btr dword ptr [eax],ebp pop eax jc near ptr gcsws2 mov dword ptr [edx],eax mov eax,edx inc ebx cmp ebx,1024 jl short mac301 xor ebx,ebx inc ecx mac301: gcsws2 label near add edx,8 cmp esi,edx ja near ptr gcsws1 mov dword ptr [fstrg],eax mov dword ptr [freesu],ebx mov dword ptr [freesm],ecx xor ebx,ebx xor ecx,ecx mov eax,dword ptr [fsymb] jmp near ptr gcswyc3 gcswyc2 label near mov eax,dword ptr [20+eax] inc ebx cmp ebx,1024 jl short mac302 xor ebx,ebx inc ecx mac302: gcswyc3 label near cmp eax,esi jb short lmac303 cmp eax,edi jb near ptr gcswyc2 lmac303: mov dword ptr [freeyu],ebx mov dword ptr [freeym],ecx mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] mov eax,dword ptr [4+ebp] jmp near ptr gcswy9 gcswy2 label near mov ebx,eax mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] mov eax,dword ptr [ebp+eax*4+8] jmp near ptr gcswy8 gcswy3 label near mov ecx,eax mov edx,eax gcswy4 label near mov ebp,eax sub ebp,bnumb shr ebp,3 push eax mov eax,dword ptr [btbgc] btr dword ptr [eax],ebp pop eax jc near ptr gcswy5 cmp dword ptr [bvar],eax ja near ptr gcswy5 cmp eax,edi jae near ptr gcswy5 mov ebp,dword ptr [zundef] cmp dword ptr [eax],ebp jne near ptr gcswy5 cmp dword ptr [4+eax],esi jne near ptr gcswy5 cmp dword ptr [16+eax],esi jne near ptr gcswy5 push ebx movzx ebx,word ptr [24+eax] or bx,bx je near ptr gcswys pop ebx gcswy5 label near mov ebp,dword ptr [28+eax] cmp dword ptr [bstrg],ebp ja short lmac304 cmp esi,ebp ja near ptr gcswy6 lmac304: gcswy50 label near mov edx,eax mov eax,dword ptr [28+eax] cmp eax,ecx jne near ptr gcswy4 gcswy6 label near mov ebx,ecx mov eax,dword ptr [20+ecx] gcswy8 label near cmp eax,esi jb short lmac305 cmp eax,edi jb near ptr gcswy3 lmac305: gcswy9 label near dec ax jge near ptr gcswy2 jmp near ptr gcswcons gcswys label near pop ebx mov ebp,dword ptr [28+eax] cmp dword ptr [bstrg],ebp ja short lmac306 cmp esi,ebp ja near ptr gcswys1 lmac306: cmp eax,ecx jne near ptr gcswys2 jmp near ptr gcswys3 gcswys1 label near mov edx,dword ptr [20+eax] cmp dword ptr [bfloat],ebx ja near ptr gcswys12 mov dword ptr [20+ebx],edx jmp near ptr gcswys14 gcswys12 label near mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] mov dword ptr [ebp+ebx*4+8],edx gcswys14 label near mov ebp,dword ptr [fsymb] mov dword ptr [20+eax],ebp mov dword ptr [fsymb],eax inc dword ptr [freeyu] cmp dword ptr [freeyu],1024 jl short mac307 mov dword ptr [freeyu],0 inc dword ptr [freeym] mac307: mov eax,edx jmp near ptr gcswy8 gcswys2 label near mov ebp,dword ptr [28+eax] mov dword ptr [28+edx],ebp cmp ecx,dword ptr [28+ecx] je near ptr gcswys20 mov ebp,dword ptr [fsymb] mov dword ptr [20+eax],ebp mov dword ptr [fsymb],eax inc dword ptr [freeyu] cmp dword ptr [freeyu],1024 jl short mac308 mov dword ptr [freeyu],0 inc dword ptr [freeym] mac308: mov eax,edx jmp near ptr gcswy50 gcswys20 label near mov ebp,dword ptr [20+eax] mov dword ptr [28+ecx],ebp mov ebp,dword ptr [fsymb] mov dword ptr [20+eax],ebp mov dword ptr [fsymb],eax inc dword ptr [freeyu] cmp dword ptr [freeyu],1024 jl short mac309 mov dword ptr [freeyu],0 inc dword ptr [freeym] mac309: jmp near ptr gcswy6 gcswys3 label near cmp dword ptr [bfloat],ebx ja near ptr gcswys30 mov ebp,dword ptr [28+ecx] mov dword ptr [20+ebx],ebp jmp near ptr gcswys31 gcswys30 label near mov ebp,dword ptr [hashtab] mov ebp,dword ptr [ebp] push dword ptr [28+ecx] pop dword ptr [ebp+ebx*4+8] gcswys31 label near mov edx,ecx gcswys32 label near mov edx,dword ptr [28+edx] cmp dword ptr [28+edx],ecx jne near ptr gcswys32 mov ebp,dword ptr [28+ecx] mov dword ptr [28+edx],ebp mov ecx,dword ptr [28+ecx] cmp ecx,dword ptr [28+ecx] jne near ptr gcswys33 mov ebp,dword ptr [20+ecx] mov dword ptr [28+ecx],ebp mov ebp,dword ptr [20+eax] mov dword ptr [20+ecx],ebp jmp near ptr gcswys34 gcswys33 label near mov ebp,dword ptr [20+eax] mov dword ptr [20+ecx],ebp gcswys34 label near mov ebp,dword ptr [fsymb] mov dword ptr [20+eax],ebp mov dword ptr [fsymb],eax inc dword ptr [freeyu] cmp dword ptr [freeyu],1024 jl short mac310 mov dword ptr [freeyu],0 inc dword ptr [freeym] mac310: mov eax,ecx jmp near ptr gcswy3 gcswcons label near mov eax,esi xor ebx,ebx xor ecx,ecx mov edx,edi ;; ;; new SWPCONS macro ;; swpcons_macro label near public swpcons_macro push edi push btbin mov ebx,dword ptr [_bsymb] mov ebp,dword ptr [btbgc] mov esi,dword ptr [_bcons] sub esi,dword ptr [bnumb] shr esi,6 add ebp,esi xor esi,esi nextw: mov delta_cons,ebx mov edi,[esp] mov ebx,[ebp] add dword ptr [esp], 4 and [edi],ebx xor edi,edi mov ebx,delta_cons nextb: bt [ebp],edi jc short marked mov [0+edx],ebx mov [4+edx],eax inc esi mov eax, edx marked: inc edi add edx,8 cmp edi,32 jne short nextb mov dword ptr [ebp],0 add ebp, 4 cmp [econs],edx ja short nextw mov ebx,esi and ebx,1023 mov ecx,esi shr ecx,10 pop ebp pop edi mov esi,[_bsymb] ;; ;; end SWPCONS macro ;; mov dword ptr [fcons],eax mov dword ptr [freelu],ebx mov dword ptr [freelm],ecx jmp near ptr gcswend gcswend label near ret ini_gc endp gcuser proc near cmp dx,1 je near ptr gcuser5 or dx,dx je near ptr gcuser4 mov eax,1 mov ebx,dword ptr [zgcuser] jmp near ptr errwna gcuser4 label near mov eax,esi push eax gcuser5 label near inc word ptr [ngcuser] call near ptr gcgo pop eax cmp eax,esi jne near ptr gcinfo0 mov eax,dword ptr [zt] ret gcuser endp gcalarb proc near mov eax,esi ret gcalarb endp gcalarm proc near mov eax,esi ret gcalarm endp fnalzefn proc near ;; Prepare a C function call with 2 arguments. push eax push ebx push ecx push edx push esi push edi push offset ds:lab_m__4 push 34 call near ptr _ttyout add esp,8 pop edi pop esi pop edx pop ecx pop ebx pop eax ;; We are back to Lisp! ;; Prepare a C function call with 0 arguments. push eax push ebx push ecx push edx push esi push edi call near ptr _ttycrlf pop edi pop esi pop edx pop ecx pop ebx pop eax ;; We are back to Lisp! ret fnalzefn endp gcinfo proc near or edx,edx je near ptr gcinfo0 cmp edx,1 je near ptr gcinfo1 mov eax,1 mov ebx,dword ptr [zgcinfo] jmp near ptr errwna gcinfo0 label near mov edx,esi gcinfou label near push dword ptr [zgcuser] push dword ptr [ngccons] push dword ptr [ngcsymb] push dword ptr [ngcstrg] push dword ptr [ngcvect] push dword ptr [ngcfloat] push dword ptr [ngcnumb] push dword ptr [ngch] push dword ptr [ngcuser] push dword ptr [zllcons] mov eax,dword ptr [freelu] mov ebx,dword ptr [freelm] call near ptr gcinfz push eax push dword ptr [zffsymbol] mov eax,dword ptr [freeyu] mov ebx,dword ptr [freeym] call near ptr gcinfz push eax push dword ptr [zstring000] mov eax,dword ptr [freesu] mov ebx,dword ptr [freesm] call near ptr gcinfz push eax push dword ptr [zvector] mov eax,dword ptr [freevu] mov ebx,dword ptr [freevm] call near ptr gcinfz push eax push dword ptr [zllfloat] mov eax,dword ptr [freefu] mov ebx,dword ptr [freefm] call near ptr gcinfz push eax push dword ptr [zllfix] mov eax,dword ptr [freenu] mov ebx,dword ptr [freenm] call near ptr gcinfz push eax push dword ptr [zsizehp] cmp edx,esi je near ptr gcinfou2 mov ebp,dword ptr [eheap] sub ebp,dword ptr [bheap] push ebp and ebp,1023 mov eax,ebp pop ebp shr ebp,10 mov ebx,ebp jmp near ptr gcinfou3 gcinfou2 label near mov ebp,dword ptr [eheap] sub ebp,dword ptr [cheap] push ebp and ebp,1023 mov eax,ebp pop ebp shr ebp,10 mov ebx,ebp gcinfou3 label near cmp dword ptr [fcons],edi jb near ptr l__5 l1__5: mov ebp,dword ptr [fcons] mov dword ptr [ebp],ebx mov ebx,eax xchg dword ptr [4+ebp],ebx xchg dword ptr [fcons],ebx mov eax,ebx push eax push dword ptr [zsizecd] cmp edx,esi je near ptr gcinfou4 mov ebp,dword ptr [ecode] sub ebp,dword ptr [bcode] push ebp and ebp,1023 mov eax,ebp pop ebp shr ebp,10 mov ebx,ebp jmp near ptr gcinfou5 gcinfou4 label near mov ebp,dword ptr [ecode] sub ebp,dword ptr [ccode] push ebp and ebp,1023 mov eax,ebp pop ebp shr ebp,10 mov ebx,ebp gcinfou5 label near cmp dword ptr [fcons],edi jb near ptr l__6 l1__6: mov ebp,dword ptr [fcons] mov dword ptr [ebp],ebx mov ebx,eax xchg dword ptr [4+ebp],ebx xchg dword ptr [fcons],ebx mov eax,ebx push eax mov edx,25 jmp near ptr list gcinfo1 label near pop eax xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bnumb] jmp near ptr gcinfon9 gcinfon1 label near inc ebx cmp ebx,1024 jl short mac311 xor ebx,ebx inc ecx mac311: gcinfon9 label near mov dword ptr [freenu],ebx mov dword ptr [freenm],ecx xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bfloat] or edx,edx jns near ptr gcinfof9 gcinfof1 label near inc ebx cmp ebx,1024 jl short mac312 xor ebx,ebx inc ecx mac312: gcinfof9 label near mov dword ptr [freefu],ebx mov dword ptr [freefm],ecx xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bvect] gcinfov1 label near inc ebx cmp ebx,1024 jl short mac313 xor ebx,ebx inc ecx mac313: add edx,8 cmp dword ptr [bstrg],edx ja near ptr gcinfov1 mov dword ptr [freevu],ebx mov dword ptr [freevm],ecx xor ebx,ebx xor ecx,ecx mov edx,dword ptr [bstrg] gcinfos1 label near inc ebx cmp ebx,1024 jl short mac314 xor ebx,ebx inc ecx mac314: add edx,8 cmp esi,edx ja near ptr gcinfos1 mov dword ptr [freesu],ebx mov dword ptr [freesm],ecx xor ebx,ebx xor ecx,ecx mov edx,esi gcinfoy1 label near inc ebx cmp ebx,1024 jl short mac315 xor ebx,ebx inc ecx mac315: add edx,32 cmp edi,edx ja near ptr gcinfoy1 mov dword ptr [freeyu],ebx mov dword ptr [freeym],ecx xor ebx,ebx xor ecx,ecx mov edx,edi gcinfol1 label near inc ebx cmp ebx,1024 jl short mac316 xor ebx,ebx inc ecx mac316: add edx,8 cmp dword ptr [econs],edx ja near ptr gcinfol1 mov dword ptr [freelu],ebx mov dword ptr [freelm],ecx xor edx,edx jmp near ptr gcinfou gcinfz label near or bx,bx je near ptr gcinfz9 cmp bx,32 jge near ptr gcinfz1 imul bx,1024 add ax,bx jmp near ptr gcinfz9 gcinfz1 label near cmp dword ptr [fcons],edi jb near ptr l__7 l1__7: mov ebp,dword ptr [fcons] mov dword ptr [ebp],ebx mov ebx,eax xchg dword ptr [4+ebp],ebx xchg dword ptr [fcons],ebx mov eax,ebx gcinfz9 label near ret gcinfo endp tcons proc near cmp dword ptr [fcons],edi jb near ptr l__8 l1__8: mov ebp,dword ptr [fcons] mov dword ptr [ebp],eax mov eax,ebx xchg dword ptr [4+ebp],eax xchg dword ptr [fcons],eax mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] bts dword ptr [eax],ebp pop eax ret tcons endp tconsmk proc near cmp eax,edi jl near ptr tcmker mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] bts dword ptr [eax],ebp pop eax ret tcmker label near mov ebx,dword ptr [ztconsmk] jmp near ptr errnla tconsmk endp tconscl proc near cmp eax,edi jl near ptr tccler mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] btr dword ptr [eax],ebp pop eax ret tccler label near mov ebx,dword ptr [ztconscl] jmp near ptr errnla tconscl endp tconsp proc near cmp eax,edi jl near ptr tconsp1 mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] bt dword ptr [eax],ebp pop eax jc near ptr tconsp2 tconsp1 label near mov eax,esi tconsp2 label near ret tconsp endp frcons proc near cmp dword ptr [itstate],0 je near ptr frcs1 mov ecx,offset FLAT:frcs0 call near ptr sysprot pop eax mov dword ptr [itstate],1 jmp ecx frcs0 label near mov dword ptr [itstate],0 frcs1 label near mov ebx,dword ptr [fcons] cmp eax,edi jl near ptr frcser mov dword ptr [eax],esi mov dword ptr [4+eax],ebx mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] btr dword ptr [eax],ebp pop eax mov dword ptr [fcons],eax mov ebx,esi mov eax,esi ret frcser label near mov ebx,dword ptr [zfrcons] jmp near ptr errnla frcons endp frtree proc near cmp dword ptr [itstate],0 je near ptr frtr1 mov ecx,offset FLAT:frtr0 call near ptr sysprot pop eax mov dword ptr [itstate],1 jmp ecx frtr0 label near mov dword ptr [itstate],0 frtr1 label near mov edx,dword ptr [fcons] call near ptr frtr3 mov dword ptr [fcons],edx mov edx,esi mov ecx,esi mov ebx,esi mov eax,esi frtret label near ret frtr2 label near mov eax,ecx frtr3 label near cmp eax,edi jl near ptr frtret frtr4 label near mov ebx,dword ptr [eax] mov ecx,dword ptr [4+eax] mov dword ptr [4+eax],edx mov dword ptr [eax],esi mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] btr dword ptr [eax],ebp pop eax mov edx,eax cmp ebx,edi jl near ptr frtr2 push ecx mov eax,ebx call near ptr frtr4 pop eax jmp near ptr frtr3 frtree endp gettype proc near cmp eax,edi jl near ptr gettype0 mov ebp,eax sub ebp,edi shr ebp,3 push eax mov eax,dword ptr [btbin] bt dword ptr [eax],ebp pop eax jnc near ptr gettype2 mov eax,dword ptr [eax] cmp eax,esi jb short lmac317 cmp eax,edi jb near ptr gettyper lmac317: cmp dword ptr [bfloat],eax ja near ptr gettypfx cmp eax,edi jl near ptr gettyper cmp dword ptr [eax],esi jb near ptr gettypfx cmp dword ptr [eax],edi jae near ptr gettypfx gettyper label near ret gettype0 label near cmp dword ptr [bvect],eax ja short lmac318 cmp dword ptr [bstrg],eax ja near ptr gettype1 lmac318: cmp dword ptr [bfloat],eax ja near ptr gettype6 or eax,eax js near ptr gettype5 cmp dword ptr [bstrg],eax ja short lmac319 cmp eax,esi jb near ptr gettype1 lmac319: cmp eax,esi je near ptr gettype3 cmp eax,esi jb short lmac320 cmp eax,edi jb near ptr gettype4 lmac320: gettype6 label near mov eax,dword ptr [zllfix] ret gettype1 label near mov eax,dword ptr [4+eax] ret gettype2 label near mov eax,dword ptr [zllcons] ret gettype3 label near mov eax,dword ptr [zllnull] ret gettype4 label near mov eax,dword ptr [zffsymbol] ret gettype5 label near mov eax,dword ptr [zllfloat] ret gettypfx label near mov eax,dword ptr [zbigtype] mov eax,dword ptr [eax] ret gettype endp typep proc near push offset FLAT:subtypep jmp near ptr gettype typep endp subtypep proc near cmp eax,esi jb near ptr subtypr1 cmp eax,edi jae near ptr subtypr1 cmp ebx,esi jb near ptr subtypr2 cmp ebx,edi jae near ptr subtypr2 jmp near ptr subtyp1 subtyp0 label near mov eax,dword ptr [12+eax] subtyp1 label near cmp eax,ebx je near ptr subtyp3 cmp eax,edi jge near ptr subtyp5 cmp eax,esi jb near ptr subtyp2 cmp eax,edi jae near ptr subtyp2 cmp eax,esi jne near ptr subtyp0 subtyp2 label near ret subtyp3 label near mov eax,dword ptr [zt] ret subtyp4 label near pop eax cmp eax,edi jl near ptr subtyp7 subtyp5 label near push dword ptr [4+eax] mov eax,dword ptr [eax] call near ptr subtyp7 cmp eax,esi je near ptr subtyp4 add esp,4 ret subtyp6 label near mov eax,dword ptr [12+eax] subtyp7 label near cmp eax,ebx je near ptr subtyp9 cmp eax,edi jge near ptr subtyp5 cmp eax,esi jb near ptr subtyp8 cmp eax,edi jae near ptr subtyp8 cmp eax,esi jne near ptr subtyp6 subtyp8 label near ret subtyp9 label near mov eax,dword ptr [zt] ret subtypr2 label near mov eax,ebx subtypr1 label near mov ebx,dword ptr [zsubtypep] jmp near ptr errsym subtypep endp llsend proc near cmp dx,1 jle near ptr sender dec dx dec dx mov eax,dword ptr [esp+edx*4] inc dx cmp dword ptr [bvect],eax ja near ptr send2 cmp dword ptr [bstrg],eax jbe near ptr send2 mov eax,dword ptr [4+eax] send1 label near mov ebx,dword ptr [esp+edx*4] mov ecx,dword ptr [zvoid] push edx call near ptr getfns pop edx cmp eax,esi je near ptr send3 mov dword ptr [esp+edx*4],offset FLAT:gcpopj jmp near ptr ffuncall send2 label near call near ptr gettype jmp near ptr send1 send3 label near mov ecx,edx jmp near ptr send5 send4 label near pop ebx cmp dword ptr [fcons],edi jb near ptr l__9 l1__9: xchg dword ptr [fcons],edi mov dword ptr [edi],ebx xchg dword ptr [4+edi],eax xchg eax,edi xchg dword ptr [fcons],edi send5 label near dec cx jge near ptr send4 push eax mov edx,2 mov eax,dword ptr [zsenderro] jmp near ptr ffuncall sender label near mov eax,2 mov ebx,dword ptr [zllsend] jmp near ptr errwna llsend endp senderro proc near cmp dword ptr [fcons],edi jb near ptr l__10 l1__10: mov ebp,dword ptr [fcons] mov dword ptr [ebp],eax mov eax,ebx xchg dword ptr [4+ebp],eax xchg dword ptr [fcons],eax mov ebx,dword ptr [zllsend] jmp near ptr errudm senderro endp csend proc near cmp dx,2 jle near ptr csender push offset FLAT:csend1 dec dx dec dx mov eax,dword ptr [esp+edx*4] jmp near ptr gettype csend1 label near mov ebx,dword ptr [esp+edx*4] mov ecx,dword ptr [zvoid] push edx call near ptr getfns pop edx cmp eax,esi je near ptr csend3 mov dword ptr [esp+edx*4],offset FLAT:gcpopj inc dx mov dword ptr [esp+edx*4],offset FLAT:gcpopj dec dx jmp near ptr ffuncall csend3 label near add dx,2 jmp near ptr funcall csender label near mov eax,3 mov ebx,dword ptr [zcsend] jmp near ptr errwna csend endp supsend proc near cmp dx,2 jle near ptr supsenr1 push edx mov ebx,dword ptr [esp+edx*4] sub dx,2 mov eax,dword ptr [esp+edx*4] call near ptr typep cmp eax,esi je near ptr supsenr3 pop edx dec dx mov eax,dword ptr [esp+edx*4] cmp eax,esi jb near ptr supsenr2 cmp eax,edi jae near ptr supsenr2 mov eax,dword ptr [12+eax] mov dword ptr [esp+edx*4],offset FLAT:gcpopj dec dx jmp near ptr send1 supsenr1 label near mov eax,3 mov ebx,dword ptr [zsupsend] jmp near ptr errwna supsenr2 label near mov ebx,dword ptr [zsupsend] jmp near ptr errsym supsenr3 label near mov ebx,dword ptr [zsupsend] pop edx dec dx mov eax,dword ptr [esp+edx*4] sub dx,2 mov ecx,dword ptr [esp+edx*4] cmp dword ptr [fcons],edi jb near ptr l__11 l1__11: mov ebp,dword ptr [fcons] mov dword ptr [ebp],ecx mov ecx,esi xchg dword ptr [4+ebp],ecx xchg dword ptr [fcons],ecx cmp dword ptr [fcons],edi jb near ptr l__12 l1__12: mov ebp,dword ptr [fcons] mov dword ptr [ebp],eax mov eax,ecx xchg dword ptr [4+ebp],eax xchg dword ptr [fcons],eax jmp near ptr erroob supsend endp sendbi proc near cmp dx,2 jle near ptr sendbier push edx dec dx mov eax,dword ptr [esp+edx*4] call near ptr gettype push eax mov eax,dword ptr [esp+edx*4] call near ptr gettype mov ebx,eax pop eax pop edx dec dx mov ecx,dword ptr [esp+edx*4] push edx call near ptr getbi pop edx cmp eax,esi je near ptr sendbi3 mov dword ptr [esp+edx*4],offset FLAT:gcpopj jmp near ptr ffuncall sendbi2 label near pop ecx cmp dword ptr [fcons],edi jb near ptr l__13 l1__13: xchg dword ptr [fcons],edi mov dword ptr [edi],ecx xchg dword ptr [4+edi],eax xchg eax,edi xchg dword ptr [fcons],edi sendbi3 label near dec dx jge near ptr sendbi2 mov ebx,dword ptr [zsendbi] jmp near ptr errudm sendbier label near mov eax,3 mov ebx,dword ptr [zsendbi] jmp near ptr errwna sendbi endp strctacc proc near cmp dx,5 jne near ptr fieldr1 mov eax,dword ptr [esp+8] cmp dword ptr [bvect],eax ja near ptr fieldr2 cmp dword ptr [bstrg],eax jbe near ptr fieldr2 mov ebx,dword ptr [esp+16] cmp ebx,esi jb near ptr fieldr3 cmp ebx,edi jae near ptr fieldr3 mov ebx,dword ptr [12+ebx] push eax push edx call near ptr typep pop edx pop ebx cmp eax,esi je near ptr fieldr4 mov ecx,dword ptr [esp+12] or cx,cx jl near ptr fieldr5 mov ebp,dword ptr [ebx] mov edx,dword ptr [4+ebp] cmp cx,dx jge near ptr fieldr4 mov edx,dword ptr [esp] fieldn label near cmp dx,1 je near ptr fieldget cmp dx,2 je near ptr fieldset mov eax,1 mov ebx,dword ptr [esp+16] jmp near ptr errwna fieldget label near mov ebp,dword ptr [ebx] mov eax,dword ptr [ebp+ecx*4+8] add esp,20 ret fieldset label near mov eax,dword ptr [esp+4] mov ebp,dword ptr [ebx] mov dword ptr [ebp+ecx*4+8],eax add esp,20 ret fieldr1 label near mov eax,5 mov ebx,dword ptr [zstrctacc] jmp near ptr errwna fieldr4 label near mov eax,ebx fieldr2 label near mov ebx,dword ptr [esp+16] jmp near ptr errstc fieldr3 label near mov eax,ebx mov ebx,dword ptr [esp+16] jmp near ptr errnaa fieldr5 label near mov eax,ecx mov ebx,dword ptr [zstrctacc] jmp near ptr erroob strctacc endp smpvect proc near mov ebx,dword ptr [bvect] smpvect2 label near mov ebp,dword ptr [ebx] cmp dword ptr [bvect],ebp ja short lmac321 cmp dword ptr [bstrg],ebp ja near ptr smpvect4 lmac321: cmp dword ptr [ebx],esi je near ptr smpvect4 push ebx push eax push offset FLAT:smpvect3 push eax push ebx mov edx,2 jmp near ptr funcall smpvect3 label near pop eax pop ebx smpvect4 label near add ebx,8 cmp dword ptr [bstrg],ebx ja near ptr smpvect2 mov eax,esi ret smpvect endp smpstrg proc near mov ebx,dword ptr [bstrg] smpstrg2 label near mov ebp,dword ptr [ebx] cmp dword ptr [bstrg],ebp ja short lmac322 cmp esi,ebp ja near ptr smpstrg4 lmac322: cmp dword ptr [ebx],esi je near ptr smpstrg4 push ebx push eax push offset FLAT:smpstrg3 push eax push ebx mov edx,2 jmp near ptr funcall smpstrg3 label near pop eax pop ebx smpstrg4 label near add ebx,8 cmp esi,ebx ja near ptr smpstrg2 mov eax,esi ret l__13: call near ptr gccons jmp near ptr l1__13 l__12: call near ptr gccons jmp near ptr l1__12 l__11: call near ptr gccons jmp near ptr l1__11 l__10: call near ptr gccons jmp near ptr l1__10 l__9: call near ptr gccons jmp near ptr l1__9 l__8: call near ptr gccons jmp near ptr l1__8 l__7: call near ptr gccons jmp near ptr l1__7 l__6: call near ptr gccons jmp near ptr l1__6 l__5: call near ptr gccons jmp near ptr l1__5 smpstrg endp _TEXT ends end
19.480178
56
0.693343
b8dba527502f6be682841778894a4a4cbe6ffe09
768
asm
Assembly
oeis/293/A293363.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/293/A293363.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/293/A293363.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A293363: Least integer k such that k/2^n > log 2. ; Submitted by Jon Maiga ; 1,2,3,6,12,23,45,89,178,355,710,1420,2840,5679,11357,22714,45427,90853,181705,363409,726818,1453635,2907270,5814540,11629080,23258160,46516320,93032640,186065280,372130559,744261118,1488522236,2977044472,5954088944,11908177888,23816355775,47632711550,95265423099,190530846197,381061692393,762123384786,1524246769572,3048493539144,6096987078287,12193974156573,24387948313146,48775896626292,97551793252584,195103586505168,390207173010335,780414346020670,1560828692041340,3121657384082680 mov $2,4 mov $3,$0 mul $3,3 lpb $3 mul $1,$3 mov $5,$3 add $5,1 mul $2,$5 add $1,$2 div $1,$5 mul $2,2 div $2,$5 sub $3,1 lpe mov $4,2 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 add $0,1
30.72
487
0.760417
0d72e6e09829c56e7b958063f02f90e84a1a171e
497
asm
Assembly
programs/oeis/059/A059396.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/059/A059396.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/059/A059396.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A059396: Number of primes less than square root of n-th prime; i.e., number of trial divisions by smaller primes to show that n-th prime is indeed prime. ; 0,0,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9 seq $0,6 ; Integer part of square root of n-th prime. sub $0,1 seq $0,36234 ; Number of primes <= n, if 1 is counted as a prime. sub $0,1
62.125
201
0.625755
b01b6f6bebadee6d0e0feab8de375b9d63d5955e
679
asm
Assembly
oeis/208/A208114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/208/A208114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/208/A208114.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A208114: Number of n X 4 0..1 arrays avoiding 0 0 0 and 0 1 0 horizontally and 0 0 1 and 0 1 1 vertically. ; 9,81,225,625,1225,2401,3969,6561,9801,14641,20449,28561,38025,50625,65025,83521,104329,130321,159201,194481,233289,279841,330625,390625,455625,531441,613089,707281,808201,923521,1046529,1185921,1334025,1500625,1677025,1874161,2082249,2313441,2556801,2825761,3108169,3418801,3744225,4100625,4473225,4879681,5303809,5764801,6245001,6765201,7306209,7890481,8497225,9150625,9828225,10556001,11309769,12117361,12952801,13845841,14768649,15752961,16769025,17850625,18966025,20151121,21372129,22667121 add $0,2 pow $0,2 add $0,1 div $0,2 bin $0,2 sub $0,1 mul $0,8 add $0,9
56.583333
496
0.801178
50b514e87587e004a357d47dc0e0c7d9c3baf2ed
555
asm
Assembly
oeis/255/A255817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255817: Parity of A000788, which is the total number of ones in 0..n in binary. ; Submitted by Jamie Morken(s2) ; 0,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,0,0 mov $2,$0 add $0,1 seq $2,10060 ; Thue-Morse sequence: let A_k denote the first 2^k terms; then A_0 = 0 and for k >= 0, A_{k+1} = A_k B_k, where B_k is obtained from A_k by interchanging 0's and 1's. add $0,$2 mul $0,2 div $0,4 mod $0,2
46.25
201
0.614414
f31c302c65434b7841bd9fc6ca70e4488c653c2e
591
asm
Assembly
programs/oeis/014/A014297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/014/A014297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/014/A014297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A014297: a(n) = n! * C(n+2, 2) * 2^(n+1). ; 2,12,96,960,11520,161280,2580480,46448640,928972800,20437401600,490497638400,12752938598400,357082280755200,10712468422656000,342798989524992000,11655165643849728000,419585963178590208000,15944266600786427904000,637770664031457116160000,26786367889321198878720000,1178600187130132750663680000,54215608607986106530529280000,2602349213183333113465405440000,130117460659166655673270272000000,6766107954276666095010054144000000,365369829530939969130542923776000000 add $0,2 mov $1,4 lpb $0 sub $0,1 add $2,2 mul $1,$2 lpe div $1,16 mov $0,$1
45.461538
462
0.837563
10041fd3de91567d5ca96603d71534b66cc231c6
825
asm
Assembly
Project 8/VM translator-final/Translator-2/asm files/SimpleFunction.asm
zychosen/nand2tetris
1627cd230339778af6a854497e79d86eb97361ed
[ "MIT" ]
1
2021-09-19T09:16:29.000Z
2021-09-19T09:16:29.000Z
Project 8/VM translator-final/Translator-2/asm files/SimpleFunction.asm
zychosen/nand2tetris
1627cd230339778af6a854497e79d86eb97361ed
[ "MIT" ]
null
null
null
Project 8/VM translator-final/Translator-2/asm files/SimpleFunction.asm
zychosen/nand2tetris
1627cd230339778af6a854497e79d86eb97361ed
[ "MIT" ]
null
null
null
// function SimpleFunction.test 2 (SimpleFunction.test) @2 D=A @R13 M=D @SKIP.0 D;JEQ (SETUP.0) @SP M=M+1 A=M-1 M=0 @R13 M=M-1 D=M @SETUP.0 D;JNE (SKIP.0) // push local 0 @0 D=A @LCL D=M+D A=D D=M @SP A=M M=D @SP M=M+1 // push local 1 @1 D=A @LCL D=M+D A=D D=M @SP A=M M=D @SP M=M+1 // add @SP A=M-1 D=M @SP M=M-1 A=M-1 MD=D+M // not @SP A=M-1 M=!M // push argument 0 @0 D=A @ARG D=M+D A=D D=M @SP A=M M=D @SP M=M+1 // add @SP A=M-1 D=M @SP M=M-1 A=M-1 MD=D+M // push argument 1 @1 D=A @ARG D=M+D A=D D=M @SP A=M M=D @SP M=M+1 // sub @SP A=M-1 D=M @SP M=M-1 A=M-1 MD=M-D // return @LCL D=M @R13 M=D @5 A=D-A D=M @R14 M=D @SP AM=M-1 D=M @ARG A=M M=D D=M+1 @ARG D=M+1 @SP M=D @1 D=A @R13 A=M-D D=M @THAT M=D @2 D=A @R13 A=M-D D=M @THIS M=D @3 D=A @R13 A=M-D D=M @ARG M=D @4 D=A @R13 A=M-D D=M @LCL M=D @R14 A=M 0;JMP
5.221519
33
0.544242
4c11ade0cc57c4d6979906f5a974733d616760fa
719
asm
Assembly
oeis/156/A156017.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/156/A156017.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/156/A156017.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A156017: Schroeder paths with two rise colors and two level colors. ; Submitted by Christian Krause ; 1,4,24,176,1440,12608,115584,1095424,10646016,105522176,1062623232,10840977408,111811534848,1163909087232,12212421230592,129027376349184,1371482141884416,14656212306231296,157369985643577344,1696975718802522112,18369603773021552640,199543289706105012224,2174460888797102997504,23764283484996041179136,260407015382189541949440,2860513401605541905563648,31493260274615023225012224,347457336684536542678482944,3840883518528865402362003456,42535225699164734033284300800,471848094949325255571551551488 mov $1,$0 mov $0,2 pow $0,$1 seq $1,238111 ; Twice the large Schroeder numbers A006318. mul $1,$0 mov $0,$1 div $0,2
59.916667
498
0.866481
d8c35a7306e8cb55fa131501aac065b4cd32bad4
434
asm
Assembly
AccuracyFN-1.1v/retspoof.asm
DIlIlII/AccuracyFN-1.1v
d5d339dddd6f0ac959308f99c2acc4d2cfcd9b65
[ "BSL-1.0" ]
null
null
null
AccuracyFN-1.1v/retspoof.asm
DIlIlII/AccuracyFN-1.1v
d5d339dddd6f0ac959308f99c2acc4d2cfcd9b65
[ "BSL-1.0" ]
null
null
null
AccuracyFN-1.1v/retspoof.asm
DIlIlII/AccuracyFN-1.1v
d5d339dddd6f0ac959308f99c2acc4d2cfcd9b65
[ "BSL-1.0" ]
null
null
null
PUBLIC RetSpoofStub .code RetSpoofStub PROC pop r11 add rsp, 8 mov rax, [rsp + 24] mov r10, [rax] mov [rsp], r10 mov r10, [rax + 8] mov [rax + 8], r11 mov [rax + 16], rsi lea rdi, fixup mov [rax], rsi mov rsi, rax jmp r10 fixup: sub rsp, 16 mov rcx, rsi mov rsi, [rcx + 16] jmp QWORD PTR [rcx + 8] RetSpoofStub ENDP END
14.466667
27
0.490783
994202039b5a9f4d551befef8dd5be038bd8fb54
544
asm
Assembly
oeis/313/A313201.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/313/A313201.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/313/A313201.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A313201: Coordination sequence Gal.5.115.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,4,9,15,19,23,27,33,38,42,46,51,57,61,65,69,75,80,84,88,93,99,103,107,111,117,122,126,130,135,141,145,149,153,159,164,168,172,177,183,187,191,195,201,206,210,214,219,225,229 mul $0,7 add $0,6 mov $3,3 mov $4,2 lpb $0 mov $2,$0 sub $2,4 add $3,6 add $4,6 trn $2,$4 add $2,$3 mov $0,$2 lpe sub $0,6 trn $0,1 add $0,1
25.904762
177
0.678309
347d5c087185d72647eb7fd822cc686d33a0b635
337
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_setSpritePaletteColor.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_setSpritePaletteColor.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_setSpritePaletteColor.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void SMS_setSpritePaletteColor(unsigned char entry,unsigned char color) SECTION code_clib SECTION code_SMSlib PUBLIC SMS_setSpritePaletteColor EXTERN asm_SMSlib_setSpritePaletteColor SMS_setSpritePaletteColor: pop af pop bc pop hl push hl push bc push af ld a,c jp asm_SMSlib_setSpritePaletteColor
15.318182
73
0.777448
b9a3451f0882deb18dcc5cf4da2f396fb492bcbd
50,241
asm
Assembly
procspawn.asm
tanay-gangey/xv6-lab
2e5f163fe20f6491e9a2888456cc7dda58c9bdd5
[ "MIT-0" ]
null
null
null
procspawn.asm
tanay-gangey/xv6-lab
2e5f163fe20f6491e9a2888456cc7dda58c9bdd5
[ "MIT-0" ]
null
null
null
procspawn.asm
tanay-gangey/xv6-lab
2e5f163fe20f6491e9a2888456cc7dda58c9bdd5
[ "MIT-0" ]
null
null
null
_procspawn: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "user.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 56 push %esi e: 53 push %ebx f: 51 push %ecx 10: 83 ec 1c sub $0x1c,%esp 13: 8b 19 mov (%ecx),%ebx 15: 8b 71 04 mov 0x4(%ecx),%esi int k, n, id; double x = 0, z=0, y=0; printf(1, "Parent:%d\n", getpid()); 18: e8 f5 03 00 00 call 412 <getpid> 1d: 83 ec 04 sub $0x4,%esp 20: 50 push %eax 21: 68 00 08 00 00 push $0x800 26: 6a 01 push $0x1 28: e8 b3 04 00 00 call 4e0 <printf> if(argc < 2 ) 2d: 83 c4 10 add $0x10,%esp 30: 83 fb 01 cmp $0x1,%ebx 33: 0f 8e f1 00 00 00 jle 12a <main+0x12a> n = 1; //default value else n = atoi ( argv[1] ); //from command line 39: 83 ec 0c sub $0xc,%esp 3c: ff 76 04 pushl 0x4(%esi) 3f: e8 dc 02 00 00 call 320 <atoi> if ( n < 0 || n > 20 ) 44: 83 c4 10 add $0x10,%esp 47: 83 f8 14 cmp $0x14,%eax printf(1, "Parent:%d\n", getpid()); if(argc < 2 ) n = 1; //default value else n = atoi ( argv[1] ); //from command line 4a: 89 c6 mov %eax,%esi if ( n < 0 || n > 20 ) 4c: 0f 86 e2 00 00 00 jbe 134 <main+0x134> n = 2; 52: be 02 00 00 00 mov $0x2,%esi 57: 31 db xor %ebx,%ebx 59: eb 1d jmp 78 <main+0x78> exit(); } else if(id > 0) { printf(1, "Parent created %d\n", id); } else if(id<0) { printf(1, "Fork Failed\n"); 5b: 50 push %eax 5c: 50 push %eax n = atoi ( argv[1] ); //from command line if ( n < 0 || n > 20 ) n = 2; x = 0; id = 0; for ( k = 0; k < n; k++ ) { 5d: 83 c3 01 add $0x1,%ebx exit(); } else if(id > 0) { printf(1, "Parent created %d\n", id); } else if(id<0) { printf(1, "Fork Failed\n"); 60: 68 46 08 00 00 push $0x846 65: 6a 01 push $0x1 67: e8 74 04 00 00 call 4e0 <printf> 6c: 83 c4 10 add $0x10,%esp n = atoi ( argv[1] ); //from command line if ( n < 0 || n > 20 ) n = 2; x = 0; id = 0; for ( k = 0; k < n; k++ ) { 6f: 39 de cmp %ebx,%esi 71: 7e 2b jle 9e <main+0x9e> 73: 90 nop 74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi id = fork (); 78: e8 0d 03 00 00 call 38a <fork> if(id == 0) { 7d: 83 f8 00 cmp $0x0,%eax 80: 74 4a je cc <main+0xcc> } printf(1, "Child completed %d\n", getpid()); exit(); } else if(id > 0) { 82: 7e d7 jle 5b <main+0x5b> printf(1, "Parent created %d\n", id); 84: 83 ec 04 sub $0x4,%esp n = atoi ( argv[1] ); //from command line if ( n < 0 || n > 20 ) n = 2; x = 0; id = 0; for ( k = 0; k < n; k++ ) { 87: 83 c3 01 add $0x1,%ebx printf(1, "Child completed %d\n", getpid()); exit(); } else if(id > 0) { printf(1, "Parent created %d\n", id); 8a: 50 push %eax 8b: 68 33 08 00 00 push $0x833 90: 6a 01 push $0x1 92: e8 49 04 00 00 call 4e0 <printf> 97: 83 c4 10 add $0x10,%esp n = atoi ( argv[1] ); //from command line if ( n < 0 || n > 20 ) n = 2; x = 0; id = 0; for ( k = 0; k < n; k++ ) { 9a: 39 de cmp %ebx,%esi 9c: 7f da jg 78 <main+0x78> } else if(id<0) { printf(1, "Fork Failed\n"); } } cps(); 9e: 31 db xor %ebx,%ebx a0: e8 8d 03 00 00 call 432 <cps> a5: 8d 76 00 lea 0x0(%esi),%esi for(k=0; k<n; k++) { printf(1, "W%d\n", k); a8: 83 ec 04 sub $0x4,%esp ab: 53 push %ebx ac: 68 53 08 00 00 push $0x853 } } cps(); for(k=0; k<n; k++) { b1: 83 c3 01 add $0x1,%ebx printf(1, "W%d\n", k); b4: 6a 01 push $0x1 b6: e8 25 04 00 00 call 4e0 <printf> wait(); bb: e8 da 02 00 00 call 39a <wait> } } cps(); for(k=0; k<n; k++) { c0: 83 c4 10 add $0x10,%esp c3: 39 de cmp %ebx,%esi c5: 7f e1 jg a8 <main+0xa8> printf(1, "W%d\n", k); wait(); } exit(); c7: e8 c6 02 00 00 call 392 <exit> id = 0; for ( k = 0; k < n; k++ ) { id = fork (); if(id == 0) { // child printf(1, "Child process %d\n", getpid()); cc: e8 41 03 00 00 call 412 <getpid> d1: 51 push %ecx d2: 50 push %eax d3: 68 0b 08 00 00 push $0x80b d8: 6a 01 push $0x1 da: e8 01 04 00 00 call 4e0 <printf> for(y=0; y<400.0; y+=0.1) { df: d9 ee fldz id = 0; for ( k = 0; k < n; k++ ) { id = fork (); if(id == 0) { // child printf(1, "Child process %d\n", getpid()); e1: 83 c4 10 add $0x10,%esp e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(y=0; y<400.0; y+=0.1) { printf(1, "."); e8: 83 ec 08 sub $0x8,%esp eb: dd 5d e0 fstpl -0x20(%ebp) ee: 68 1d 08 00 00 push $0x81d f3: 6a 01 push $0x1 f5: e8 e6 03 00 00 call 4e0 <printf> id = fork (); if(id == 0) { // child printf(1, "Child process %d\n", getpid()); for(y=0; y<400.0; y+=0.1) { fa: dd 45 e0 fldl -0x20(%ebp) fd: 83 c4 10 add $0x10,%esp 100: dc 05 58 08 00 00 faddl 0x858 106: d9 05 60 08 00 00 flds 0x860 10c: df e9 fucomip %st(1),%st 10e: 77 d8 ja e8 <main+0xe8> 110: dd d8 fstp %st(0) z+= x; // while(z>0) z--; } } printf(1, "Child completed %d\n", getpid()); 112: e8 fb 02 00 00 call 412 <getpid> 117: 52 push %edx 118: 50 push %eax 119: 68 1f 08 00 00 push $0x81f 11e: 6a 01 push $0x1 120: e8 bb 03 00 00 call 4e0 <printf> exit(); 125: e8 68 02 00 00 call 392 <exit> double x = 0, z=0, y=0; printf(1, "Parent:%d\n", getpid()); if(argc < 2 ) n = 1; //default value 12a: be 01 00 00 00 mov $0x1,%esi 12f: e9 23 ff ff ff jmp 57 <main+0x57> n = atoi ( argv[1] ); //from command line if ( n < 0 || n > 20 ) n = 2; x = 0; id = 0; for ( k = 0; k < n; k++ ) { 134: 85 c0 test %eax,%eax 136: 0f 85 1b ff ff ff jne 57 <main+0x57> } else if(id<0) { printf(1, "Fork Failed\n"); } } cps(); 13c: e8 f1 02 00 00 call 432 <cps> 141: eb 84 jmp c7 <main+0xc7> 143: 66 90 xchg %ax,%ax 145: 66 90 xchg %ax,%ax 147: 66 90 xchg %ax,%ax 149: 66 90 xchg %ax,%ax 14b: 66 90 xchg %ax,%ax 14d: 66 90 xchg %ax,%ax 14f: 90 nop 00000150 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 53 push %ebx 154: 8b 45 08 mov 0x8(%ebp),%eax 157: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 15a: 89 c2 mov %eax,%edx 15c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 160: 83 c1 01 add $0x1,%ecx 163: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 167: 83 c2 01 add $0x1,%edx 16a: 84 db test %bl,%bl 16c: 88 5a ff mov %bl,-0x1(%edx) 16f: 75 ef jne 160 <strcpy+0x10> ; return os; } 171: 5b pop %ebx 172: 5d pop %ebp 173: c3 ret 174: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 17a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000180 <strcmp>: int strcmp(const char *p, const char *q) { 180: 55 push %ebp 181: 89 e5 mov %esp,%ebp 183: 56 push %esi 184: 53 push %ebx 185: 8b 55 08 mov 0x8(%ebp),%edx 188: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 18b: 0f b6 02 movzbl (%edx),%eax 18e: 0f b6 19 movzbl (%ecx),%ebx 191: 84 c0 test %al,%al 193: 75 1e jne 1b3 <strcmp+0x33> 195: eb 29 jmp 1c0 <strcmp+0x40> 197: 89 f6 mov %esi,%esi 199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 1a0: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1a3: 0f b6 02 movzbl (%edx),%eax p++, q++; 1a6: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1a9: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 1ad: 84 c0 test %al,%al 1af: 74 0f je 1c0 <strcmp+0x40> 1b1: 89 f1 mov %esi,%ecx 1b3: 38 d8 cmp %bl,%al 1b5: 74 e9 je 1a0 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 1b7: 29 d8 sub %ebx,%eax } 1b9: 5b pop %ebx 1ba: 5e pop %esi 1bb: 5d pop %ebp 1bc: c3 ret 1bd: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1c0: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 1c2: 29 d8 sub %ebx,%eax } 1c4: 5b pop %ebx 1c5: 5e pop %esi 1c6: 5d pop %ebp 1c7: c3 ret 1c8: 90 nop 1c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000001d0 <strlen>: uint strlen(const char *s) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 1d6: 80 39 00 cmpb $0x0,(%ecx) 1d9: 74 12 je 1ed <strlen+0x1d> 1db: 31 d2 xor %edx,%edx 1dd: 8d 76 00 lea 0x0(%esi),%esi 1e0: 83 c2 01 add $0x1,%edx 1e3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1e7: 89 d0 mov %edx,%eax 1e9: 75 f5 jne 1e0 <strlen+0x10> ; return n; } 1eb: 5d pop %ebp 1ec: c3 ret uint strlen(const char *s) { int n; for(n = 0; s[n]; n++) 1ed: 31 c0 xor %eax,%eax ; return n; } 1ef: 5d pop %ebp 1f0: c3 ret 1f1: eb 0d jmp 200 <memset> 1f3: 90 nop 1f4: 90 nop 1f5: 90 nop 1f6: 90 nop 1f7: 90 nop 1f8: 90 nop 1f9: 90 nop 1fa: 90 nop 1fb: 90 nop 1fc: 90 nop 1fd: 90 nop 1fe: 90 nop 1ff: 90 nop 00000200 <memset>: void* memset(void *dst, int c, uint n) { 200: 55 push %ebp 201: 89 e5 mov %esp,%ebp 203: 57 push %edi 204: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 207: 8b 4d 10 mov 0x10(%ebp),%ecx 20a: 8b 45 0c mov 0xc(%ebp),%eax 20d: 89 d7 mov %edx,%edi 20f: fc cld 210: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 212: 89 d0 mov %edx,%eax 214: 5f pop %edi 215: 5d pop %ebp 216: c3 ret 217: 89 f6 mov %esi,%esi 219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000220 <strchr>: char* strchr(const char *s, char c) { 220: 55 push %ebp 221: 89 e5 mov %esp,%ebp 223: 53 push %ebx 224: 8b 45 08 mov 0x8(%ebp),%eax 227: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 22a: 0f b6 10 movzbl (%eax),%edx 22d: 84 d2 test %dl,%dl 22f: 74 1d je 24e <strchr+0x2e> if(*s == c) 231: 38 d3 cmp %dl,%bl 233: 89 d9 mov %ebx,%ecx 235: 75 0d jne 244 <strchr+0x24> 237: eb 17 jmp 250 <strchr+0x30> 239: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 240: 38 ca cmp %cl,%dl 242: 74 0c je 250 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 244: 83 c0 01 add $0x1,%eax 247: 0f b6 10 movzbl (%eax),%edx 24a: 84 d2 test %dl,%dl 24c: 75 f2 jne 240 <strchr+0x20> if(*s == c) return (char*)s; return 0; 24e: 31 c0 xor %eax,%eax } 250: 5b pop %ebx 251: 5d pop %ebp 252: c3 ret 253: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000260 <gets>: char* gets(char *buf, int max) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 57 push %edi 264: 56 push %esi 265: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 266: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 268: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 26b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 26e: eb 29 jmp 299 <gets+0x39> cc = read(0, &c, 1); 270: 83 ec 04 sub $0x4,%esp 273: 6a 01 push $0x1 275: 57 push %edi 276: 6a 00 push $0x0 278: e8 2d 01 00 00 call 3aa <read> if(cc < 1) 27d: 83 c4 10 add $0x10,%esp 280: 85 c0 test %eax,%eax 282: 7e 1d jle 2a1 <gets+0x41> break; buf[i++] = c; 284: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 288: 8b 55 08 mov 0x8(%ebp),%edx 28b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 28d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 28f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 293: 74 1b je 2b0 <gets+0x50> 295: 3c 0d cmp $0xd,%al 297: 74 17 je 2b0 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 299: 8d 5e 01 lea 0x1(%esi),%ebx 29c: 3b 5d 0c cmp 0xc(%ebp),%ebx 29f: 7c cf jl 270 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2a1: 8b 45 08 mov 0x8(%ebp),%eax 2a4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 2a8: 8d 65 f4 lea -0xc(%ebp),%esp 2ab: 5b pop %ebx 2ac: 5e pop %esi 2ad: 5f pop %edi 2ae: 5d pop %ebp 2af: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2b0: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 2b3: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2b5: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 2b9: 8d 65 f4 lea -0xc(%ebp),%esp 2bc: 5b pop %ebx 2bd: 5e pop %esi 2be: 5f pop %edi 2bf: 5d pop %ebp 2c0: c3 ret 2c1: eb 0d jmp 2d0 <stat> 2c3: 90 nop 2c4: 90 nop 2c5: 90 nop 2c6: 90 nop 2c7: 90 nop 2c8: 90 nop 2c9: 90 nop 2ca: 90 nop 2cb: 90 nop 2cc: 90 nop 2cd: 90 nop 2ce: 90 nop 2cf: 90 nop 000002d0 <stat>: int stat(const char *n, struct stat *st) { 2d0: 55 push %ebp 2d1: 89 e5 mov %esp,%ebp 2d3: 56 push %esi 2d4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 2d5: 83 ec 08 sub $0x8,%esp 2d8: 6a 00 push $0x0 2da: ff 75 08 pushl 0x8(%ebp) 2dd: e8 f0 00 00 00 call 3d2 <open> if(fd < 0) 2e2: 83 c4 10 add $0x10,%esp 2e5: 85 c0 test %eax,%eax 2e7: 78 27 js 310 <stat+0x40> return -1; r = fstat(fd, st); 2e9: 83 ec 08 sub $0x8,%esp 2ec: ff 75 0c pushl 0xc(%ebp) 2ef: 89 c3 mov %eax,%ebx 2f1: 50 push %eax 2f2: e8 f3 00 00 00 call 3ea <fstat> 2f7: 89 c6 mov %eax,%esi close(fd); 2f9: 89 1c 24 mov %ebx,(%esp) 2fc: e8 b9 00 00 00 call 3ba <close> return r; 301: 83 c4 10 add $0x10,%esp 304: 89 f0 mov %esi,%eax } 306: 8d 65 f8 lea -0x8(%ebp),%esp 309: 5b pop %ebx 30a: 5e pop %esi 30b: 5d pop %ebp 30c: c3 ret 30d: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 310: b8 ff ff ff ff mov $0xffffffff,%eax 315: eb ef jmp 306 <stat+0x36> 317: 89 f6 mov %esi,%esi 319: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000320 <atoi>: return r; } int atoi(const char *s) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 53 push %ebx 324: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 327: 0f be 11 movsbl (%ecx),%edx 32a: 8d 42 d0 lea -0x30(%edx),%eax 32d: 3c 09 cmp $0x9,%al 32f: b8 00 00 00 00 mov $0x0,%eax 334: 77 1f ja 355 <atoi+0x35> 336: 8d 76 00 lea 0x0(%esi),%esi 339: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 340: 8d 04 80 lea (%eax,%eax,4),%eax 343: 83 c1 01 add $0x1,%ecx 346: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 34a: 0f be 11 movsbl (%ecx),%edx 34d: 8d 5a d0 lea -0x30(%edx),%ebx 350: 80 fb 09 cmp $0x9,%bl 353: 76 eb jbe 340 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 355: 5b pop %ebx 356: 5d pop %ebp 357: c3 ret 358: 90 nop 359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000360 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 56 push %esi 364: 53 push %ebx 365: 8b 5d 10 mov 0x10(%ebp),%ebx 368: 8b 45 08 mov 0x8(%ebp),%eax 36b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 36e: 85 db test %ebx,%ebx 370: 7e 14 jle 386 <memmove+0x26> 372: 31 d2 xor %edx,%edx 374: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 378: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 37c: 88 0c 10 mov %cl,(%eax,%edx,1) 37f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 382: 39 da cmp %ebx,%edx 384: 75 f2 jne 378 <memmove+0x18> *dst++ = *src++; return vdst; } 386: 5b pop %ebx 387: 5e pop %esi 388: 5d pop %ebp 389: c3 ret 0000038a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 38a: b8 01 00 00 00 mov $0x1,%eax 38f: cd 40 int $0x40 391: c3 ret 00000392 <exit>: SYSCALL(exit) 392: b8 02 00 00 00 mov $0x2,%eax 397: cd 40 int $0x40 399: c3 ret 0000039a <wait>: SYSCALL(wait) 39a: b8 03 00 00 00 mov $0x3,%eax 39f: cd 40 int $0x40 3a1: c3 ret 000003a2 <pipe>: SYSCALL(pipe) 3a2: b8 04 00 00 00 mov $0x4,%eax 3a7: cd 40 int $0x40 3a9: c3 ret 000003aa <read>: SYSCALL(read) 3aa: b8 05 00 00 00 mov $0x5,%eax 3af: cd 40 int $0x40 3b1: c3 ret 000003b2 <write>: SYSCALL(write) 3b2: b8 10 00 00 00 mov $0x10,%eax 3b7: cd 40 int $0x40 3b9: c3 ret 000003ba <close>: SYSCALL(close) 3ba: b8 15 00 00 00 mov $0x15,%eax 3bf: cd 40 int $0x40 3c1: c3 ret 000003c2 <kill>: SYSCALL(kill) 3c2: b8 06 00 00 00 mov $0x6,%eax 3c7: cd 40 int $0x40 3c9: c3 ret 000003ca <exec>: SYSCALL(exec) 3ca: b8 07 00 00 00 mov $0x7,%eax 3cf: cd 40 int $0x40 3d1: c3 ret 000003d2 <open>: SYSCALL(open) 3d2: b8 0f 00 00 00 mov $0xf,%eax 3d7: cd 40 int $0x40 3d9: c3 ret 000003da <mknod>: SYSCALL(mknod) 3da: b8 11 00 00 00 mov $0x11,%eax 3df: cd 40 int $0x40 3e1: c3 ret 000003e2 <unlink>: SYSCALL(unlink) 3e2: b8 12 00 00 00 mov $0x12,%eax 3e7: cd 40 int $0x40 3e9: c3 ret 000003ea <fstat>: SYSCALL(fstat) 3ea: b8 08 00 00 00 mov $0x8,%eax 3ef: cd 40 int $0x40 3f1: c3 ret 000003f2 <link>: SYSCALL(link) 3f2: b8 13 00 00 00 mov $0x13,%eax 3f7: cd 40 int $0x40 3f9: c3 ret 000003fa <mkdir>: SYSCALL(mkdir) 3fa: b8 14 00 00 00 mov $0x14,%eax 3ff: cd 40 int $0x40 401: c3 ret 00000402 <chdir>: SYSCALL(chdir) 402: b8 09 00 00 00 mov $0x9,%eax 407: cd 40 int $0x40 409: c3 ret 0000040a <dup>: SYSCALL(dup) 40a: b8 0a 00 00 00 mov $0xa,%eax 40f: cd 40 int $0x40 411: c3 ret 00000412 <getpid>: SYSCALL(getpid) 412: b8 0b 00 00 00 mov $0xb,%eax 417: cd 40 int $0x40 419: c3 ret 0000041a <sbrk>: SYSCALL(sbrk) 41a: b8 0c 00 00 00 mov $0xc,%eax 41f: cd 40 int $0x40 421: c3 ret 00000422 <sleep>: SYSCALL(sleep) 422: b8 0d 00 00 00 mov $0xd,%eax 427: cd 40 int $0x40 429: c3 ret 0000042a <uptime>: SYSCALL(uptime) 42a: b8 0e 00 00 00 mov $0xe,%eax 42f: cd 40 int $0x40 431: c3 ret 00000432 <cps>: SYSCALL(cps) 432: b8 16 00 00 00 mov $0x16,%eax 437: cd 40 int $0x40 439: c3 ret 43a: 66 90 xchg %ax,%ax 43c: 66 90 xchg %ax,%ax 43e: 66 90 xchg %ax,%ax 00000440 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 440: 55 push %ebp 441: 89 e5 mov %esp,%ebp 443: 57 push %edi 444: 56 push %esi 445: 53 push %ebx 446: 89 c6 mov %eax,%esi 448: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 44b: 8b 5d 08 mov 0x8(%ebp),%ebx 44e: 85 db test %ebx,%ebx 450: 74 7e je 4d0 <printint+0x90> 452: 89 d0 mov %edx,%eax 454: c1 e8 1f shr $0x1f,%eax 457: 84 c0 test %al,%al 459: 74 75 je 4d0 <printint+0x90> neg = 1; x = -xx; 45b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 45d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 464: f7 d8 neg %eax 466: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 469: 31 ff xor %edi,%edi 46b: 8d 5d d7 lea -0x29(%ebp),%ebx 46e: 89 ce mov %ecx,%esi 470: eb 08 jmp 47a <printint+0x3a> 472: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 478: 89 cf mov %ecx,%edi 47a: 31 d2 xor %edx,%edx 47c: 8d 4f 01 lea 0x1(%edi),%ecx 47f: f7 f6 div %esi 481: 0f b6 92 6c 08 00 00 movzbl 0x86c(%edx),%edx }while((x /= base) != 0); 488: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 48a: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 48d: 75 e9 jne 478 <printint+0x38> if(neg) 48f: 8b 45 c4 mov -0x3c(%ebp),%eax 492: 8b 75 c0 mov -0x40(%ebp),%esi 495: 85 c0 test %eax,%eax 497: 74 08 je 4a1 <printint+0x61> buf[i++] = '-'; 499: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 49e: 8d 4f 02 lea 0x2(%edi),%ecx 4a1: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 4a5: 8d 76 00 lea 0x0(%esi),%esi 4a8: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4ab: 83 ec 04 sub $0x4,%esp 4ae: 83 ef 01 sub $0x1,%edi 4b1: 6a 01 push $0x1 4b3: 53 push %ebx 4b4: 56 push %esi 4b5: 88 45 d7 mov %al,-0x29(%ebp) 4b8: e8 f5 fe ff ff call 3b2 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 4bd: 83 c4 10 add $0x10,%esp 4c0: 39 df cmp %ebx,%edi 4c2: 75 e4 jne 4a8 <printint+0x68> putc(fd, buf[i]); } 4c4: 8d 65 f4 lea -0xc(%ebp),%esp 4c7: 5b pop %ebx 4c8: 5e pop %esi 4c9: 5f pop %edi 4ca: 5d pop %ebp 4cb: c3 ret 4cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 4d0: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 4d2: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 4d9: eb 8b jmp 466 <printint+0x26> 4db: 90 nop 4dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000004e0 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4e0: 55 push %ebp 4e1: 89 e5 mov %esp,%ebp 4e3: 57 push %edi 4e4: 56 push %esi 4e5: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 4e6: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4e9: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 4ec: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4ef: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 4f2: 89 45 d0 mov %eax,-0x30(%ebp) 4f5: 0f b6 1e movzbl (%esi),%ebx 4f8: 83 c6 01 add $0x1,%esi 4fb: 84 db test %bl,%bl 4fd: 0f 84 b0 00 00 00 je 5b3 <printf+0xd3> 503: 31 d2 xor %edx,%edx 505: eb 39 jmp 540 <printf+0x60> 507: 89 f6 mov %esi,%esi 509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 510: 83 f8 25 cmp $0x25,%eax 513: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 516: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 51b: 74 18 je 535 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 51d: 8d 45 e2 lea -0x1e(%ebp),%eax 520: 83 ec 04 sub $0x4,%esp 523: 88 5d e2 mov %bl,-0x1e(%ebp) 526: 6a 01 push $0x1 528: 50 push %eax 529: 57 push %edi 52a: e8 83 fe ff ff call 3b2 <write> 52f: 8b 55 d4 mov -0x2c(%ebp),%edx 532: 83 c4 10 add $0x10,%esp 535: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 538: 0f b6 5e ff movzbl -0x1(%esi),%ebx 53c: 84 db test %bl,%bl 53e: 74 73 je 5b3 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 540: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 542: 0f be cb movsbl %bl,%ecx 545: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 548: 74 c6 je 510 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 54a: 83 fa 25 cmp $0x25,%edx 54d: 75 e6 jne 535 <printf+0x55> if(c == 'd'){ 54f: 83 f8 64 cmp $0x64,%eax 552: 0f 84 f8 00 00 00 je 650 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 558: 81 e1 f7 00 00 00 and $0xf7,%ecx 55e: 83 f9 70 cmp $0x70,%ecx 561: 74 5d je 5c0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 563: 83 f8 73 cmp $0x73,%eax 566: 0f 84 84 00 00 00 je 5f0 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 56c: 83 f8 63 cmp $0x63,%eax 56f: 0f 84 ea 00 00 00 je 65f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 575: 83 f8 25 cmp $0x25,%eax 578: 0f 84 c2 00 00 00 je 640 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 57e: 8d 45 e7 lea -0x19(%ebp),%eax 581: 83 ec 04 sub $0x4,%esp 584: c6 45 e7 25 movb $0x25,-0x19(%ebp) 588: 6a 01 push $0x1 58a: 50 push %eax 58b: 57 push %edi 58c: e8 21 fe ff ff call 3b2 <write> 591: 83 c4 0c add $0xc,%esp 594: 8d 45 e6 lea -0x1a(%ebp),%eax 597: 88 5d e6 mov %bl,-0x1a(%ebp) 59a: 6a 01 push $0x1 59c: 50 push %eax 59d: 57 push %edi 59e: 83 c6 01 add $0x1,%esi 5a1: e8 0c fe ff ff call 3b2 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5a6: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5aa: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 5ad: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 5af: 84 db test %bl,%bl 5b1: 75 8d jne 540 <printf+0x60> putc(fd, c); } state = 0; } } } 5b3: 8d 65 f4 lea -0xc(%ebp),%esp 5b6: 5b pop %ebx 5b7: 5e pop %esi 5b8: 5f pop %edi 5b9: 5d pop %ebp 5ba: c3 ret 5bb: 90 nop 5bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 5c0: 83 ec 0c sub $0xc,%esp 5c3: b9 10 00 00 00 mov $0x10,%ecx 5c8: 6a 00 push $0x0 5ca: 8b 5d d0 mov -0x30(%ebp),%ebx 5cd: 89 f8 mov %edi,%eax 5cf: 8b 13 mov (%ebx),%edx 5d1: e8 6a fe ff ff call 440 <printint> ap++; 5d6: 89 d8 mov %ebx,%eax 5d8: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 5db: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; 5dd: 83 c0 04 add $0x4,%eax 5e0: 89 45 d0 mov %eax,-0x30(%ebp) 5e3: e9 4d ff ff ff jmp 535 <printf+0x55> 5e8: 90 nop 5e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 5f0: 8b 45 d0 mov -0x30(%ebp),%eax 5f3: 8b 18 mov (%eax),%ebx ap++; 5f5: 83 c0 04 add $0x4,%eax 5f8: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; 5fb: b8 64 08 00 00 mov $0x864,%eax 600: 85 db test %ebx,%ebx 602: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ 605: 0f b6 03 movzbl (%ebx),%eax 608: 84 c0 test %al,%al 60a: 74 23 je 62f <printf+0x14f> 60c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 610: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 613: 8d 45 e3 lea -0x1d(%ebp),%eax 616: 83 ec 04 sub $0x4,%esp 619: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 61b: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 61e: 50 push %eax 61f: 57 push %edi 620: e8 8d fd ff ff call 3b2 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 625: 0f b6 03 movzbl (%ebx),%eax 628: 83 c4 10 add $0x10,%esp 62b: 84 c0 test %al,%al 62d: 75 e1 jne 610 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 62f: 31 d2 xor %edx,%edx 631: e9 ff fe ff ff jmp 535 <printf+0x55> 636: 8d 76 00 lea 0x0(%esi),%esi 639: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 640: 83 ec 04 sub $0x4,%esp 643: 88 5d e5 mov %bl,-0x1b(%ebp) 646: 8d 45 e5 lea -0x1b(%ebp),%eax 649: 6a 01 push $0x1 64b: e9 4c ff ff ff jmp 59c <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 650: 83 ec 0c sub $0xc,%esp 653: b9 0a 00 00 00 mov $0xa,%ecx 658: 6a 01 push $0x1 65a: e9 6b ff ff ff jmp 5ca <printf+0xea> 65f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 662: 83 ec 04 sub $0x4,%esp 665: 8b 03 mov (%ebx),%eax 667: 6a 01 push $0x1 669: 88 45 e4 mov %al,-0x1c(%ebp) 66c: 8d 45 e4 lea -0x1c(%ebp),%eax 66f: 50 push %eax 670: 57 push %edi 671: e8 3c fd ff ff call 3b2 <write> 676: e9 5b ff ff ff jmp 5d6 <printf+0xf6> 67b: 66 90 xchg %ax,%ax 67d: 66 90 xchg %ax,%ax 67f: 90 nop 00000680 <free>: static Header base; static Header *freep; void free(void *ap) { 680: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 681: a1 0c 0b 00 00 mov 0xb0c,%eax static Header base; static Header *freep; void free(void *ap) { 686: 89 e5 mov %esp,%ebp 688: 57 push %edi 689: 56 push %esi 68a: 53 push %ebx 68b: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; 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)) 68e: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 690: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 693: 39 c8 cmp %ecx,%eax 695: 73 19 jae 6b0 <free+0x30> 697: 89 f6 mov %esi,%esi 699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 6a0: 39 d1 cmp %edx,%ecx 6a2: 72 1c jb 6c0 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6a4: 39 d0 cmp %edx,%eax 6a6: 73 18 jae 6c0 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 6a8: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6aa: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6ac: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6ae: 72 f0 jb 6a0 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6b0: 39 d0 cmp %edx,%eax 6b2: 72 f4 jb 6a8 <free+0x28> 6b4: 39 d1 cmp %edx,%ecx 6b6: 73 f0 jae 6a8 <free+0x28> 6b8: 90 nop 6b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 6c0: 8b 73 fc mov -0x4(%ebx),%esi 6c3: 8d 3c f1 lea (%ecx,%esi,8),%edi 6c6: 39 d7 cmp %edx,%edi 6c8: 74 19 je 6e3 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 6ca: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 6cd: 8b 50 04 mov 0x4(%eax),%edx 6d0: 8d 34 d0 lea (%eax,%edx,8),%esi 6d3: 39 f1 cmp %esi,%ecx 6d5: 74 23 je 6fa <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 6d7: 89 08 mov %ecx,(%eax) freep = p; 6d9: a3 0c 0b 00 00 mov %eax,0xb0c } 6de: 5b pop %ebx 6df: 5e pop %esi 6e0: 5f pop %edi 6e1: 5d pop %ebp 6e2: 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; 6e3: 03 72 04 add 0x4(%edx),%esi 6e6: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 6e9: 8b 10 mov (%eax),%edx 6eb: 8b 12 mov (%edx),%edx 6ed: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 6f0: 8b 50 04 mov 0x4(%eax),%edx 6f3: 8d 34 d0 lea (%eax,%edx,8),%esi 6f6: 39 f1 cmp %esi,%ecx 6f8: 75 dd jne 6d7 <free+0x57> p->s.size += bp->s.size; 6fa: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 6fd: a3 0c 0b 00 00 mov %eax,0xb0c bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 702: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 705: 8b 53 f8 mov -0x8(%ebx),%edx 708: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 70a: 5b pop %ebx 70b: 5e pop %esi 70c: 5f pop %edi 70d: 5d pop %ebp 70e: c3 ret 70f: 90 nop 00000710 <malloc>: return freep; } void* malloc(uint nbytes) { 710: 55 push %ebp 711: 89 e5 mov %esp,%ebp 713: 57 push %edi 714: 56 push %esi 715: 53 push %ebx 716: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 719: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 71c: 8b 15 0c 0b 00 00 mov 0xb0c,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 722: 8d 78 07 lea 0x7(%eax),%edi 725: c1 ef 03 shr $0x3,%edi 728: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 72b: 85 d2 test %edx,%edx 72d: 0f 84 a3 00 00 00 je 7d6 <malloc+0xc6> 733: 8b 02 mov (%edx),%eax 735: 8b 48 04 mov 0x4(%eax),%ecx 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){ 738: 39 cf cmp %ecx,%edi 73a: 76 74 jbe 7b0 <malloc+0xa0> 73c: 81 ff 00 10 00 00 cmp $0x1000,%edi 742: be 00 10 00 00 mov $0x1000,%esi 747: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 74e: 0f 43 f7 cmovae %edi,%esi 751: ba 00 80 00 00 mov $0x8000,%edx 756: 81 ff ff 0f 00 00 cmp $0xfff,%edi 75c: 0f 46 da cmovbe %edx,%ebx 75f: eb 10 jmp 771 <malloc+0x61> 761: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 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){ 768: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 76a: 8b 48 04 mov 0x4(%eax),%ecx 76d: 39 cf cmp %ecx,%edi 76f: 76 3f jbe 7b0 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 771: 39 05 0c 0b 00 00 cmp %eax,0xb0c 777: 89 c2 mov %eax,%edx 779: 75 ed jne 768 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 77b: 83 ec 0c sub $0xc,%esp 77e: 53 push %ebx 77f: e8 96 fc ff ff call 41a <sbrk> if(p == (char*)-1) 784: 83 c4 10 add $0x10,%esp 787: 83 f8 ff cmp $0xffffffff,%eax 78a: 74 1c je 7a8 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 78c: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 78f: 83 ec 0c sub $0xc,%esp 792: 83 c0 08 add $0x8,%eax 795: 50 push %eax 796: e8 e5 fe ff ff call 680 <free> return freep; 79b: 8b 15 0c 0b 00 00 mov 0xb0c,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 7a1: 83 c4 10 add $0x10,%esp 7a4: 85 d2 test %edx,%edx 7a6: 75 c0 jne 768 <malloc+0x58> return 0; 7a8: 31 c0 xor %eax,%eax 7aa: eb 1c jmp 7c8 <malloc+0xb8> 7ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 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){ if(p->s.size == nunits) 7b0: 39 cf cmp %ecx,%edi 7b2: 74 1c je 7d0 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 7b4: 29 f9 sub %edi,%ecx 7b6: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 7b9: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 7bc: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 7bf: 89 15 0c 0b 00 00 mov %edx,0xb0c return (void*)(p + 1); 7c5: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 7c8: 8d 65 f4 lea -0xc(%ebp),%esp 7cb: 5b pop %ebx 7cc: 5e pop %esi 7cd: 5f pop %edi 7ce: 5d pop %ebp 7cf: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 7d0: 8b 08 mov (%eax),%ecx 7d2: 89 0a mov %ecx,(%edx) 7d4: eb e9 jmp 7bf <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 7d6: c7 05 0c 0b 00 00 10 movl $0xb10,0xb0c 7dd: 0b 00 00 7e0: c7 05 10 0b 00 00 10 movl $0xb10,0xb10 7e7: 0b 00 00 base.s.size = 0; 7ea: b8 10 0b 00 00 mov $0xb10,%eax 7ef: c7 05 14 0b 00 00 00 movl $0x0,0xb14 7f6: 00 00 00 7f9: e9 3e ff ff ff jmp 73c <malloc+0x2c>
29.746004
60
0.411994
8836eafd8489ad160c6a267675d2da6ba45337f0
327
asm
Assembly
tests/altium_crap/Soft Designs/Legacy/3rd PB/Actel_ProASIC3_Evaluation_Board_1_Rev3_TSK3000/Embedded/cstart.asm
hanun2999/Altium-Schematic-Parser
a9bd5b1a865f92f2e3f749433fb29107af528498
[ "MIT" ]
1
2020-06-08T11:17:46.000Z
2020-06-08T11:17:46.000Z
tests/altium_crap/Soft Designs/Legacy/3rd PB/Actel_ProASIC3_Evaluation_Board_1_Rev3_TSK3000/Embedded/cstart.asm
hanun2999/Altium-Schematic-Parser
a9bd5b1a865f92f2e3f749433fb29107af528498
[ "MIT" ]
null
null
null
tests/altium_crap/Soft Designs/Legacy/3rd PB/Actel_ProASIC3_Evaluation_Board_1_Rev3_TSK3000/Embedded/cstart.asm
hanun2999/Altium-Schematic-Parser
a9bd5b1a865f92f2e3f749433fb29107af528498
[ "MIT" ]
null
null
null
.extern main .section .text.cstart .global _exit .weak _Exit .global _START _START: done: ;; call main with argv[0]==NULL & argc==0 li $4,0 jal main li $5,0 _exit: _Exit: j _exit nop .endsec .end
14.217391
49
0.422018
c369d4edde84124023cf8c64f98882d686c63567
387
asm
Assembly
code/YeWenting/T9.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
1
2021-08-20T03:57:29.000Z
2021-08-20T03:57:29.000Z
code/YeWenting/T9.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
null
null
null
code/YeWenting/T9.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
null
null
null
;; Created by Ywt. ;; Date: 11/13/2016 TITLE T9_YWT DATA SEGMENT ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA, SS:STACK START: MOV AX, DATA MOV DS, AX MOV AH, 01 INT 21H SUB AL, 32 MOV DL, AL MOV AH, 02 INT 21H ;; FINISH MOV AX, 4C00H INT 21H ENDS END START
13.344828
35
0.4677
770048aa5e910f1f4b5f45647ff11e6e5bb5ea04
610
asm
Assembly
data/baseStats_original/forretress.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/baseStats_original/forretress.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/baseStats_original/forretress.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
ForretressBaseStats:: dw DEX_FORRETRESS ; pokedex id db 75 ; base hp db 90 ; base attack db 140 ; base defense db 40 ; base speed db 60 ; base special db BUG ; species type 1 db STEEL ; species type 2 db 60 ; catch rate db 118 ; base exp yield INCBIN "pic/ymon/forretress.pic",0,1 ; 55, sprite dimensions dw ForretressPicFront dw ForretressPicBack ; attacks known at lvl 0 db TACKLE db 0 ; PROTECT db 0 db 0 db 0 ; growth rate ; learnset tmlearn 6,8 tmlearn 9,10 tmlearn 18,20,21 tmlearn 26,28,32 tmlearn 33,34,36,39 tmlearn 44 tmlearn 50,54 db Bank(ForretressPicFront) ; padding
20.333333
61
0.716393
1220575432f29175ac3c4fd7f4793f5ba981fd77
6,071
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1706.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1706.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1706.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xdd41, %r14 clflush (%r14) nop nop nop nop add $63442, %rdi mov $0x6162636465666768, %rbx movq %rbx, %xmm2 movups %xmm2, (%r14) and %rax, %rax lea addresses_UC_ht+0x1eab, %rsi lea addresses_UC_ht+0x14741, %rdi nop nop nop xor %r9, %r9 mov $63, %rcx rep movsw nop cmp $51213, %rdi lea addresses_WC_ht+0x8d41, %rbx nop nop nop nop and %rcx, %rcx mov $0x6162636465666768, %r9 movq %r9, (%rbx) nop nop inc %rsi lea addresses_WC_ht+0xf3c1, %rcx nop nop cmp %rdi, %rdi mov $0x6162636465666768, %r14 movq %r14, %xmm6 vmovups %ymm6, (%rcx) nop nop nop nop cmp $20761, %rax lea addresses_normal_ht+0xe1c4, %rbx nop nop nop nop sub %rdi, %rdi movups (%rbx), %xmm3 vpextrq $0, %xmm3, %r9 nop sub %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rbp push %rbx push %rdi push %rdx // Store lea addresses_A+0x1f741, %rbp nop nop nop nop sub $8255, %r11 mov $0x5152535455565758, %rdi movq %rdi, (%rbp) nop nop nop nop xor $24869, %r10 // Store lea addresses_A+0x1a2c1, %rbx nop nop nop nop nop cmp $39990, %rdi movw $0x5152, (%rbx) nop nop nop nop nop and %rdi, %rdi // Store lea addresses_PSE+0x16541, %r15 nop nop nop add $32996, %rdx mov $0x5152535455565758, %rbx movq %rbx, (%r15) nop nop nop nop sub $60902, %r11 // Faulty Load lea addresses_RW+0x9541, %rbp nop nop dec %r15 vmovups (%rbp), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r10 lea oracles, %rbx and $0xff, %r10 shlq $12, %r10 mov (%rbx,%r10,1), %r10 pop %rdx pop %rdi pop %rbx pop %rbp pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}} [Faulty Load] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
36.353293
2,999
0.659199
996234f54a9d401ecdc659dad31c4a50c3490fdc
7,214
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_10642_502.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_10642_502.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_10642_502.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 %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1db36, %rsi lea addresses_D_ht+0xef6, %rdi nop nop lfence mov $21, %rcx rep movsl nop nop nop dec %rax lea addresses_normal_ht+0x1b35a, %rbp nop nop nop add %r9, %r9 movups (%rbp), %xmm3 vpextrq $0, %xmm3, %rdi inc %rbp lea addresses_normal_ht+0x1e6f6, %rsi lea addresses_WT_ht+0x4df6, %rdi nop nop nop nop cmp %r15, %r15 mov $38, %rcx rep movsq nop add %rcx, %rcx lea addresses_WC_ht+0x47e2, %rbp nop sub %rcx, %rcx movl $0x61626364, (%rbp) xor $36851, %rbp lea addresses_WT_ht+0x10777, %rax nop nop nop nop cmp $7367, %rsi mov (%rax), %bp nop nop cmp %rsi, %rsi lea addresses_A_ht+0x17716, %rbp nop nop cmp $1307, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm4 vmovups %ymm4, (%rbp) nop nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x7ef6, %rsi lea addresses_WT_ht+0x197f6, %rdi nop nop cmp %rbx, %rbx mov $74, %rcx rep movsb nop nop nop nop nop add $51305, %rax lea addresses_WT_ht+0xeef6, %rsi lea addresses_normal_ht+0x18af6, %rdi nop nop nop and $12017, %rbp mov $47, %rcx rep movsw nop nop nop nop lfence lea addresses_WT_ht+0x1376, %rsi lea addresses_WC_ht+0xf6f6, %rdi nop nop nop nop nop add $59126, %r15 mov $114, %rcx rep movsb nop nop nop nop nop add $38399, %rbx lea addresses_UC_ht+0x3076, %rbx nop dec %r15 mov (%rbx), %si nop nop nop and %r9, %r9 lea addresses_A_ht+0x166f6, %rcx cmp %rdi, %rdi mov (%rcx), %rbp nop add $10277, %r15 lea addresses_WC_ht+0xe105, %r15 nop dec %rbx mov (%r15), %cx nop dec %rbp lea addresses_UC_ht+0x10e82, %rcx clflush (%rcx) nop and $61123, %rax mov $0x6162636465666768, %rbx movq %rbx, (%rcx) nop nop xor $35763, %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r15 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rbx push %rcx // Faulty Load lea addresses_WT+0x9ef6, %r15 nop nop nop nop nop cmp %r8, %r8 movaps (%r15), %xmm6 vpextrq $0, %xmm6, %rbx lea oracles, %r12 and $0xff, %rbx shlq $12, %rbx mov (%r12,%rbx,1), %rbx pop %rcx pop %rbx pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 16, 'AVXalign': True, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'00': 10642} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.890547
2,999
0.658858
be94b929764ee35eea33b97466931d5522dc7420
751
asm
Assembly
oeis/115/A115339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115339: a(2n-1)=F(n+1), a(2n)=L(n), where F(n) and L(n) are the Fibonacci and the Lucas sequences. ; 1,1,2,3,3,4,5,7,8,11,13,18,21,29,34,47,55,76,89,123,144,199,233,322,377,521,610,843,987,1364,1597,2207,2584,3571,4181,5778,6765,9349,10946,15127,17711,24476,28657,39603,46368,64079,75025,103682,121393,167761,196418,271443,317811,439204,514229,710647,832040,1149851,1346269,1860498,2178309,3010349,3524578,4870847,5702887,7881196,9227465,12752043,14930352,20633239,24157817,33385282,39088169,54018521,63245986,87403803,102334155,141422324,165580141,228826127,267914296,370248451,433494437,599074578 lpb $0 mov $2,$0 seq $2,103609 ; Fibonacci numbers repeated (cf. A000045). add $3,1 sub $0,$3 add $1,$2 min $3,1 lpe add $1,1 mov $0,$1
53.642857
499
0.75233
d1336475fbdfc80865b040607afa9d683719f8ba
566
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sccz80/BIFROST2_getTile.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sccz80/BIFROST2_getTile.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sccz80/BIFROST2_getTile.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE ; ; See "bifrost2.h" for further details ; ---------------------------------------------------------------- ; unsigned char BIFROST2_getTile(unsigned int px,unsigned int py) SECTION code_clib SECTION code_bifrost2 PUBLIC BIFROST2_getTile EXTERN asm_BIFROST2_getTile BIFROST2_getTile: ld hl,2 ld b,h ; B=0 add hl,sp ld c,(hl) ; BC=py inc hl inc hl ld l,(hl) ; L=px jp asm_BIFROST2_getTile
20.962963
66
0.514134
f5326cf3035494607ba3fd47d1590556de7f0d08
535
asm
Assembly
oeis/072/A072939.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/072/A072939.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/072/A072939.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A072939: Define a sequence c depending on n by: c(1)=1 and c(2)=n; c(k+2) = (c(k+1) + c(k))/2 if c(k+1) and c(k) have the same parity; otherwise c(k+2)=abs(c(k+1)-2*c(k)); sequence gives values of n such that lim k -> infinity c(k) = infinity. ; Submitted by Jon Maiga ; 3,7,9,11,15,19,23,25,27,31,33,35,39,41,43,47,51,55,57,59,63,67,71,73,75,79,83,87,89,91,95,97,99,103,105,107,111,115,119,121,123,127,129,131,135,137,139,143,147,151,153,155,159,161,163,167,169,171,175,179 add $0,1 seq $0,171947 ; P-positions for game of UpMark.
76.428571
245
0.669159
864acd0a8e00db417a59e012f2645b9ba524c5d7
258
asm
Assembly
src/intel/tools/tests/gen9/wait.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/wait.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/wait.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
wait(1) n0<1>UD { align1 WE_all 1N }; wait(1) n0.1<1>UD { align1 WE_all 1N }; wait(1) n0.2<1>UD { align1 WE_all 1N };
64.5
85
0.286822
2780bf2f502edc8eacf272cea03175dbc9b196ba
1,410
asm
Assembly
programs/oeis/032/A032087.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/032/A032087.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/032/A032087.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A032087: Number of reversible strings with n beads of 4 colors. If more than 1 bead, not palindromic. ; 4,6,24,120,480,2016,8064,32640,130560,523776,2095104,8386560,33546240,134209536,536838144,2147450880,8589803520,34359607296,137438429184,549755289600,2199021158400,8796090925056,35184363700224,140737479966720,562949919866880,2251799780130816,9007199120523264,36028796884746240,144115187538984960,576460751766552576,2305843007066210304,9223372034707292160,36893488138829168640,147573952581086478336,590295810324345913344,2361183241400462868480,9444732965601851473920,37778931862819722756096,151115727451278891024384,604462909806764831539200,2417851639227059326156800,9671406556914834374393856,38685626227659337497575424,154742504910663738269368320,618970019642654953077473280,2475880078570725365426159616,9903520314282901461704638464,39614081257132028059283619840,158456325028528112237134479360,633825300114114137798398181376,2535301200456456551193592725504,10141204801825832960173811957760,40564819207303331840695247831040,162259276829213354384378755547136,649037107316853417537515022188544,2596148429267413778236451145646080,10384593717069655112945804582584320,41538374868278620884128782557904896,166153499473114483536515130231619584,664613997892457935875442777836748800 seq $0,242026 ; Number of non-palindromic n-tuples of 4 distinct elements. add $1,$0 trn $1,8 div $1,4 mul $1,2 add $1,4 mov $0,$1
128.181818
1,173
0.907801
7ed8223372d510e81858ec3afa2d2de44b549cfd
215
asm
Assembly
libsrc/games/spectrum/bit_close.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/games/spectrum/bit_close.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/games/spectrum/bit_close.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; $Id: bit_close.asm,v 1.2 2002/04/17 21:30:24 dom Exp $ ; ; ZX Spectrum 1 bit sound functions ; ; void bit_click(); ; ; Stefano Bodrato - 28/9/2001 ; XLIB bit_close .bit_close ei ret
13.4375
56
0.586047
a365c9a86166d8ac5dfea1599222fdd95cd712c6
15,707
asm
Assembly
MAF.asm
MikelThief/MIPS-Accelerated-Framework
4df4dba48dfce27363cb4bf17c0b9be55599c5ac
[ "MIT" ]
2
2017-12-17T21:54:11.000Z
2020-03-24T11:32:24.000Z
MAF.asm
MikelThief/MIPS-Accelerated-Framework
4df4dba48dfce27363cb4bf17c0b9be55599c5ac
[ "MIT" ]
null
null
null
MAF.asm
MikelThief/MIPS-Accelerated-Framework
4df4dba48dfce27363cb4bf17c0b9be55599c5ac
[ "MIT" ]
null
null
null
############################## # # # MIPS # # Accelerated Framework # # # # Michał Bator # # ECOAR Winter sem 2017 # ############################## .data ################################# # DEFINE CONSTANTS ################################# .eqv PRINT_INT 1 .eqv PRINT_FLOAT 2 .eqv PRINT_DOUBLE 3 .eqv PRINT_STR 4 .eqv INPUT_INT 5 .eqv INPUT_FLOAT 6 .eqv INPUT_DOUBLE 7 .eqv INPUT_STR 8 .eqv END 10 .eqv PRINT_CHAR 11 .eqv FILE_OPEN 13 .eqv FILE_READ 14 .eqv FILE_WRITE 15 .eqv FILE_CLOSE 16 .eqv PRINT_HEX 34 .eqv PRINT_IEEE 35 ################################# # File IO Macros # Contains helpful macros for general files. ################################# ################################# # Open the text file in the OS so it can be accessed (reading/writing) # Type: int # Arguments: # %s = name of file we want to open # %mode = mode for opening the file (read only, read/write, etc) # %buffer = the space or input buffer we want to load the file contents to # %max_chars = the maximum number of characters to read ################################# .macro read_file(%s, %flags, %mode, %buffer, %max_chars) addi $sp, $sp, -12 sw $a0, ($sp) sw $a1, 4($sp) sw $a2, 8($sp) la $a0, %s # Load the file name li $a1, 0 # Flag 0 for reading move $a2, %mode # Copy the file open mode. Default is 0. li $v0, 13 syscall # File descriptor now $v0 # Read the file move $a0, $v0 # Get the file descriptor la $a1, %buffer move $a2, %max_chars li $v0, 14 syscall # $v0 will store the number of chars we read. lw $a0, ($sp) lw $a1, 4($sp) lw $a2, 8($sp) addi $sp, $sp, 12 .end_macro ################################# # Writes content from memory buffer to file by overwriting existing file. # Type: void # Arguments: # %s = the name of the file # %mode = open file mode (Default 0) # %text = the memory address (label) of the text we want to write # %text_len = the length of the text ################################# .macro write_file(%s, %mode, %text, %text_len) addi $sp, $sp, -12 sw $a0, ($sp) sw $a1, 4($sp) sw $a2, 8($sp) la $a0, %s # Load the file name li $a1, 1 move $a2, %mode # Copy the file open mode li $v0, 13 syscall move $a0, $v0 la $a1, %text move $a2, %text_len li $v0, 15 syscall lw $a0, ($sp) lw $a1, 4($sp) lw $a2, 8($sp) addi $sp, $sp, 12 .end_macro ################################# # Check BMP file if it matches the type # Type: int # Arguments: # %errorLabel = error branch's name to jump if error occurs ################################# .macro check_if_BMP(%errorLabel) addi $sp, $sp, -8 sw $t0, ($sp) sw $t1, 4($sp) # check if our file is a bitmap li $t0, 0x4D42 # 0X4D42 = signature for a bitmap (hexadecimal "BM") lhu $t1, header # the signature is stored in the first two bytes (header+0) # lhu loads the first 2 bytes into $t1 register bne $t0, $t1, %errorLabel lw $t0, ($sp) lw $t1, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Check BMP file if it is 24b # Type: int # Arguments: # %errorLabel = error branch's name to jump if error occurs # %header - variable containing BMP's header ################################# .macro check_24b_BMP(%errorLabel, %header) addi $sp, $sp, -8 sw $t0, ($sp) sw $t1, 4($sp) # check if the bitmap is actually 24 bits li $t0, 24 # store 24 into $t0, as it should be 24b uncompressed bitmap lb $t1, %header+28 bne $t0, $t1, %errorLabel # checking if it matches task criteria lw $t0, ($sp) lw $t1, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Numeric conversion macros # Allows for conversion from int to float or double ################################# # Data section carried over ################################# # Converts given immediate int number to float number # Type: void # Arguments: # %f_reg = target Coprocessor's 1 floating point register # %value = value to convert ################################# .macro int_to_float_cp1 (%f_reg, %value) addi $sp, $sp, -4 # sp++ li $at, %value # at = %value sw $at, ($sp) # push(at) lwc1 %f_reg, ($sp) # %f_reg = pop() addi $sp, $sp, 4 # sp-- cvt.s.w %f_reg,%f_reg # %f_reg = (float)%f_reg .end_macro ################################# # Converts given immediate int number to double number # Type: void # Arguments: # %f_reg = target Coprocessor's 1 floating point register # %value = value to convert ################################# .macro int_to_double_cp1 (%f_reg, %value) addi $sp, $sp, -4 # sp++ li $at, %value # at = %value sw $at, ($sp) # push(at) lwc1 %f_reg, ($sp) # %f_reg = pop() addi $sp, $sp, 4 # sp-- cvt.d.w %f_reg,%f_reg # %f_reg = (double)%f_reg .end_macro ################################# # Standard macro functions. # All used registers are saved and restored automatically. ################################# ################################# # Prints instant-defined string ending with new line. # Type: Void # Arguments: # %s = string to print like "samplestring" # Output: samplestring ################################# .macro println_instant_str(%s) .data NameOfFile: .asciiz %s new_line: .asciiz "\n" .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, s_to_print li $v0, PRINT_STR syscall la $a0, new_line syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Generic for loop. Does not guarantee body's register restoration. # Arguments for %from and %to can be either a register name or an immediate value. # %bodyMacroName should be name of a macro that has no parameters. # Type: Void # Arguments: # regIterator = register that is being used as counter # %from = lower loop's boundary value # %to = upper loop's boundary value # %bodyMacroName - macro to be used as loop's body #################################) .macro for(%regIterator, %from, %to, %bodyMacroName) addi $sp, $sp, -4 sw %regIterator, ($sp) add %regIterator, $zero, %from Loop: %bodyMacroName () add %regIterator, %regIterator, 1 ble %regIterator, %to, Loop lw %regIterator, ($sp) addi $sp, $sp, 4 .end_macro ################################# # Saves user's console input string in a label # Type: Void # Arguments: # %s = string to save data "samplestring" of asciiz format ################################# .macro read_str(%s, %length) addi $sp, $sp, -24 sw $a0, ($sp) sw $v0, 4($sp) sw $a1, 8($sp) sw $t0, 12($sp) sw $t1, 16($sp) sw $t2, 20($sp) # read the input file name li $v0, 8 # syscall-8 read string la $a0, %s # load address of the %s li $a1, %length # load the maximum number of characters to read syscall # cut the '\n' from the %s cutN: move $t0, $zero # load 0 to $t0 to make sure that it starts from the beginning of the string li $t2, '\n' # load the '\n' character to the $t2 register for comparing in findN findN: lb $t1, %s($t0) # read the %s beq $t1, $t2, removeN # check for '\n' addi $t0, $t0, 1 j findN # remove the '\n' and replace with '\0' removeN: li $t1, '\0' # replace '\n' with '\0' sb $t1, %s($t0) lw $a0, ($sp) lw $v0, 4($sp) lw $a1, 8($sp) lw $t0, 12($sp) lw $t1, 16($sp) lw $t2, 20($sp) addi $sp, $sp, 24 .end_macro ################################# # Prints instant-defined string ending with new line. # Type: Void # Arguments: # %s = string to print like "samplestring" # Output: samplestring ################################# .macro println_instant_str(%s) .data s_to_print: .asciiz %s new_line: .asciiz "\n" .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, s_to_print li $v0, PRINT_STR syscall la $a0, new_line syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints instant-defined string. # Type: Void # Arguments: # %s = string to print like "samplestring" # Output: samplestring ################################# .macro print_instant_str(%s) .data s_to_print: .asciiz %s .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, s_to_print li $v0, PRINT_STR syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints instant-defined string with preceding [DEBUG]. # Type: Void # Arguments: # %s = string to print like "samplestring" # Output: [DEBUG] samplestring ################################# .macro debug_log(%s) .data s_to_print: .asciiz %s new_line: .asciiz "\n" log_msg: .asciiz "[DEBUG] " .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, log_msg li $v0, PRINT_STR syscall la $a0, s_to_print syscall la $a0, new_line syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints instant-defined string with preceding [EXCEPTION]. # Then come back to main, reloading program execution. # Type: Void # Arguments: # %s = string to print like "samplestring" # Output: [EXCEPTION] samplestring ################################# .macro raise_exception(%s) .data s_to_print: .asciiz %s new_line: .asciiz "\n" log_msg: .asciiz "[EXCEPTION] " .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, log_msg li $v0, PRINT_STR syscall la $a0, s_to_print syscall la $a0, new_line syscall syscall syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 j main .end_macro ################################# # Terminates program # Type: Void ################################# .macro exit li $v0, END syscall .end_macro ################################# # Prints defined string at %label # Type: Void # Arguments: # %label = label in data section ################################# .macro print_mem_str(%label) addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) la $a0, %label li $v0, PRINT_STR syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints int at %label # Type: Void # Arguments: # %label = label in data section ################################# .macro print_mem_word(%label) addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) lw $a0, %label li $v0, PRINT_INT syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints int at %label # Type: Void # Arguments: # %label = label in data section ################################# .macro print_mem_double(%label) addi $sp, $sp, -12 sw $f0, ($sp) sw $f1, 4($sp) sw $v0, 8($sp) ldc1 $f0, %label add.d $f12, $f2, $0 syscall sw $f0, ($sp) sw $f1, 4($sp) sw $v0, 8($sp) addi $sp, $sp, 12 .end_macro ################################# # Prints chars, strings, floats, integers, octal and hex values based on code given. # Type: Void # Arguments: # %reg = register with content # %code = code for associated data-type ################################# .macro print_reg(%reg, %code) addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) move $a0, %reg li $v0, %code syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Prints chars, strings, floats, integers, octal and hex values based on code given with a new line terminator # Type: Void # Arguments: # %reg = register with content # %code = print code for associated data-type ################################# .macro println_reg(%reg, %code) .data new_line: .asciiz "\n" .text addi $sp, $sp, -8 sw $a0, ($sp) sw $v0, 4($sp) move $a0, %reg li $v0, %code syscall la $a0, new_line li $v0, PRINT_STR syscall lw $a0, ($sp) lw $v0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Push register value onto the stack i.e save in memory # Type: Void # Arguments: # %reg = register ################################# .macro save_reg_to_stack(%reg) addi $sp, $sp, -4 sw %reg, ($sp) .end_macro ################################# # Load register with value on top of stack then pop from stack # Type: Void # Arguments: # %reg = register ################################# .macro save_stack_to_reg(%reg) lw %reg, ($sp) addi $sp, $sp, 4 .end_macro ################################# # Gets length of string # Type: int # Arguments: # %str = string address from register # Returns: # $v0 = length of string # @requires MAF_extra.asm ################################# .macro str_len(%str) addi $sp, $sp, -8 sw $a0, ($sp) # Overrided by function sw $t0, 4($sp) move $a0, %str jal func_str_len lw $a0, ($sp) lw $t0, 4($sp) addi $sp, $sp, 8 .end_macro ################################# # Gets length of string from memory # Type: int # Arguments: # %str = string from memory # Returns: # $v0 = length of string # @requires MAF_extra.asm ################################# .macro str_len_mem(%str) addi $sp, $sp, -8 sw $a0, ($sp) # Overrided by function sw $t0, 4($sp) la $a0, %str jal func_str_len lw $a0, ($sp) lw $t0, 4($sp) addi $sp, $sp, 8 .end_macro
26.048093
114
0.451327
4247e9177c3811d88df8ddfa633b9a7ee196abfd
471
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_scroll_wc_up_noexx.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_scroll_wc_up_noexx.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_scroll_wc_up_noexx.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_arch PUBLIC asm_zx_scroll_wc_up_noexx EXTERN asm_zx_scroll_wc_up asm_zx_scroll_wc_up_noexx: ; alternate entry point to asm_zx_scroll_up_wc that does ; not alter the exx set ; ; enter : de = number of rows to scroll upward by ; l = attr ; ix = rect * ; ; uses : af, bc, de, hl exx push bc push de push hl exx call asm_zx_scroll_wc_up pop hl pop de pop bc exx ret
14.272727
59
0.611465