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
95a0c5b57d78b67c24405204b68a75f0845a93dc
13
asm
Assembly
src/main/fragment/csg65ce02-common/vbuaa=pbuz1_derefidx_vbuzz.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/csg65ce02-common/vbuaa=pbuz1_derefidx_vbuzz.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/csg65ce02-common/vbuaa=pbuz1_derefidx_vbuzz.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda ({z1}),z
6.5
12
0.461538
09b0b7056b81faf08569b1a0dcd3091eb12b8777
402
asm
Assembly
oeis/132/A132644.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132644.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132644.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132644: X-values of solutions to the equation X*(X + 1) - 13*Y^2 = 0. ; Submitted by Jon Maiga ; 0,324,421200,546717924,709639444800,921111452633124,1195601955878350800,1551890417618646705924,2014352566467047545939200,2614628079383810095982376324,3393785232687619037537578530000 mul $0,2 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,18 add $3,$2 lpe mov $0,$3 div $0,2
23.647059
183
0.731343
c6c298fc2275b68435e1b53c9f2f4eb7ea132fa5
42
asm
Assembly
m.asm
Mause/simvm
0ca79afd556005d33aab446d700d431a17fb59df
[ "MIT" ]
1
2017-04-04T22:21:17.000Z
2017-04-04T22:21:17.000Z
m.asm
Mause/simvm
0ca79afd556005d33aab446d700d431a17fb59df
[ "MIT" ]
null
null
null
m.asm
Mause/simvm
0ca79afd556005d33aab446d700d431a17fb59df
[ "MIT" ]
null
null
null
PSH 5 PSH 2 ADD PSH 10 PSH 12 ADD ADD HLT
4.666667
6
0.714286
9ab9ee8f0579b0d801b90539019b6868ddf065eb
268
asm
Assembly
Lab1/LAB1_1.asm
chintamanand/Embedded-Systems-Project
8e5651ad699dce8b4c962edb492c910200e00f36
[ "MIT" ]
null
null
null
Lab1/LAB1_1.asm
chintamanand/Embedded-Systems-Project
8e5651ad699dce8b4c962edb492c910200e00f36
[ "MIT" ]
null
null
null
Lab1/LAB1_1.asm
chintamanand/Embedded-Systems-Project
8e5651ad699dce8b4c962edb492c910200e00f36
[ "MIT" ]
null
null
null
AREA RESET,DATA,READONLY EXPORT __Vectors __Vectors DCD 0X40000000 DCD Reset_Handler ALIGN AREA mycode,CODE,READONLY ENTRY EXPORT Reset_Handler Reset_Handler LDR R0,#0X87654321 MOV R1,#0123 MOV R2,#33 MOV R1,R0 STOP B STOP END
14.888889
30
0.701493
4dc24ed8d0da50be68935293fd8e94b988ac39e1
582
asm
Assembly
fluidcore/samples/sq50-v5.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
59
2015-02-28T14:15:56.000Z
2022-03-26T12:06:01.000Z
fluidcore/samples/sq50-v5.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
1
2016-08-22T05:32:43.000Z
2016-08-22T09:33:28.000Z
fluidcore/samples/sq50-v5.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
9
2015-02-28T14:16:31.000Z
2022-01-18T17:52:48.000Z
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 db 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
29.1
35
0.494845
bf86c0755b30b5ac73070a0fef7bf5e7b29eff05
2,085
asm
Assembly
08-25/A4_1.asm
ArnabBir/Systems_Programming_Lab
b492ceff978a6197c546118ae9cb9895b4399590
[ "MIT" ]
null
null
null
08-25/A4_1.asm
ArnabBir/Systems_Programming_Lab
b492ceff978a6197c546118ae9cb9895b4399590
[ "MIT" ]
null
null
null
08-25/A4_1.asm
ArnabBir/Systems_Programming_Lab
b492ceff978a6197c546118ae9cb9895b4399590
[ "MIT" ]
null
null
null
TITLE A4_1:ASSIGNMENT_4_QUES_BOTH PARTS .MODEL SMALL .STACK 100H .DATA ENDL DB 0DH,0AH,'$' ENTR DB 'Enter the array :$' NUM DB 'Enter the number to be searched for :$' FOUND DB 'The number was found at position : $' NOT_FOUND DB 'Number not found$' ARR DW 100 DUP(?) SORTED DB 'Sorted Array :$' .CODE ;MAIN PROCEDURE MAIN PROC MOV AX,@DATA MOV DS,AX MOV ES,AX MOV AH,9 LEA DX,ENTR INT 21H LEA DX,ENDL INT 21H CALL INPUT MOV AH,9 LEA DX,SORTED INT 21H LEA DX,ENDL INT 21H CALL PRINT MOV AH,9 LEA DX,NUM INT 21H LEA DX,ENDL INT 21H CALL SEARCH MOV AH,4CH INT 21H MAIN ENDP ;PROCEDURE TO TAKE ARRAY INPUT FROM THE USER WHILE SORTING IT INPUT PROC PUSH AX PUSH BX PUSH DX XOR CX,CX CLD LEA DI,ARR LOOP1: CALL PRINT CALL INDEC CMP AL,1BH JE END_1 LEA SI,ARR XOR BX,BX LOOP2: CMP BX,CX JE END_LOOP1 MOV DX,[SI] CMP DX,AX JE LOOP1 JL END_LOOP2 JG INSERT INSERT: PUSH DI MOV SI,DI SUB SI,2 STD SHIFT: CMP BX,CX JGE STORE MOVSW INC BX JMP SHIFT STORE: INC CX CLD STOSW POP DI ADD DI,2 JMP LOOP1 END_LOOP2: INC BX ADD SI,2 JMP LOOP2 END_LOOP1: INC CX CLD STOSW JMP LOOP1 END_1: POP DX POP BX POP AX RET INPUT ENDP ;PROCEDURE TO DISPLAY THE ARRAY PRINT PROC PUSH AX PUSH CX PUSH DX PUSH DI JCXZ END23 LEA DI,ARR LP1: MOV AX,[DI] ADD DI,2 CALL OUTDEC MOV AH,9 LEA DX,ENDL INT 21H LOOP LP1 END23: POP DI POP DX POP CX POP AX RET PRINT ENDP ;PROCEDURE TO SEARCH THE NUMBER IN THE ARRAY SEARCH PROC PUSH AX PUSH BX PUSH CX PUSH DX CALL INDEC JCXZ END2 LEA DI,ARR XOR BX,BX LOOP3: INC BX MOV DX,[DI] CMP AX,DX JE END_SUCCESS ADD DI,2 LOOP LOOP3 END2: MOV AH,9 LEA DX,NOT_FOUND INT 21H LEA DX,ENDL INT 21H JMP END3 END_SUCCESS: MOV AH,9 LEA DX,FOUND INT 21H LEA DX,ENDL INT 21H MOV AX,BX CALL OUTDEC END3: POP DX POP CX POP BX POP AX RET SEARCH ENDP INCLUDE d:\INDEC.ASM INCLUDE d:\OUTDEC.ASM END MAIN
12.791411
61
0.642206
17e4bafe3d4339705e8a11b68e2ad59a98faf04c
19,023
asm
Assembly
DemoKeypad.asm
igormiktor/ASM_Playground
696df50a3c1708e11540945fae05fc4b8939dd07
[ "MIT" ]
null
null
null
DemoKeypad.asm
igormiktor/ASM_Playground
696df50a3c1708e11540945fae05fc4b8939dd07
[ "MIT" ]
null
null
null
DemoKeypad.asm
igormiktor/ASM_Playground
696df50a3c1708e11540945fae05fc4b8939dd07
[ "MIT" ]
null
null
null
; *********************************************************************************** ; ; Operate an 4x4 KeyPad ; Detect key hit and flash LEDs accordingly. ; ; The MIT License (MIT) ; ; Copyright (c) 2020 Igor Mikolic-Torreira ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; ; *********************************************************************************** .device "ATmega328p" ; ********************************** ; P O R T S A N D P I N S ; ********************************** ; Green LED pin .equ pGreenLedDirD = DDRC .equ pGreenLedDirDBit = DDC3 .equ pGreenLedPort = PORTC .equ pGreenLedPortBit = PORTC3 .equ pGreenLedPin = PINC .equ pGreenLedPinBit = PINC3 ; Red LED pin .equ pRedLedDirD = DDRC .equ pRedLedDirDBit = DDC2 .equ pRedLedPort = PORTC .equ pRedLedPortBit = PORTC2 .equ pRedLedPin = PINC .equ pRedLedPinBit = PINC2 ; Interrupt pin .equ pInt0DirD = DDRD .equ pInt0DirDBit = DDD2 .equ pInt0Port = PORTD .equ pInt0PortBit = PORTD2 .equ pInt0Pin = PIND .equ pInt0PinBit = PIND2 ; Keypad uses D4-D7 (columns) and B0-3 (rows) an D2 for INT0 ; Keypad row pins are Port B pins 0-3 .equ pRowDirD = DDRB .equ pRowPort = PORTB .equ pRowPin = PINB .equ kRowBitsOnes = 0x0F .equ kRowBitsZeros = 0xF0 ; Keypad row pin bits .equ kRow1 = 3 .equ kRow2 = 2 .equ kRow3 = 1 .equ kRow4 = 0 ; Keypad column pins are Port D pins 4-7 .equ pColDirD = DDRD .equ pColPort = PORTD .equ pColPin = PIND .equ kColBitsOnes = 0xF0 .equ kColBitsZeros = 0x0F ; Keypad columns pin bits .equ kCol1 = 7 .equ kCol2 = 6 .equ kCol3 = 5 .equ kCol4 = 4 ; ********************************** ; C O N S T A N T S ; ********************************** ; *************************************** ; R E G I S T E R P O L I C Y ; *************************************** .def rScratch1 = r2 ; Scratch (low) register .def rScratch2 = r3 ; Scratch (low) register .def rBinWordL = r4 ; Argument for ASCII conversion .def rBinWordH = r5 ; Argument for ASCII conversion .def rLoop1 = r14 ; Loop counter .def rSREG = r15 ; Save/Restore status port .def rTmp1 = r16 ; Multipurpose register .def rTmp2 = r17 ; Multipurpose register .def rDWMSOuter = r16 ; Subroutine delayMilliSeconds .def rKey = r18 ; Index of key hit, used to look value in Key Table .def rArgByte0 = r24 ; For now using C register conventions for function calls .def rArgByte1 = r25 ; Second byte arg, or high byte of word arg .def rDelayUsL = r24 ; Subroutine delayMicroSeconds .def rDelayUsH = r25 ; Subroutine delayMicroSeconds .def rMillisL = r24 ; Subroutine delayMilliSeconds .def rMillisH = r25 ; Subroutine delayMilliSeconds .def r10ths = r24 ; Subroutine delayTenthsOfSeconds .def rDTSOuter = r25 ; Subroutine delayTenthsOfSeconds .def rDWMSInnerL = r26 ; Subroutine delayMilliSeconds .def rDWMSInnerH = r27 ; Subroutine delayMilliSeconds .def rDTSInnerL = r26 ; Subroutine delayTenthsOfSeconds .def rDTSInnerH = r27 ; Subroutine delayTenthsOfSeconds ; ********************************** ; M A C R O ; ********************************** ; Arguments: @0 = tmp reg to use (upper half) .macro initializeStack .ifdef SPH ldi @0, High( RAMEND ) out SPH, @0 ; Upper byte of stack pointer (always load high-byte first) .endif ldi @0, Low( RAMEND ) out SPL, @0 ; Lower byte of stack pointer .endm ; ********************************** ; M A C R O ; ********************************** ; Arguments: @0 = register base name, @1 = 16-bit constant .macro ldiw ldi @0H, High( @1 ) ldi @0L, Low( @1 ) .endm ; ********************************** ; M A C R O ; ********************************** ; Arguments: @0 = number of microseconds to delay (16-bit word) .macro delayMicroSecondsM ldi rArgByte1, High( @0 ) ldi rArgByte0, Low( @0 ) call delayMicroSeconds .endm ; ********************************** ; M A C R O ; ********************************** ; Arguments: @0 = number of milliseconds to delay (word value) .macro delayMilliSecondsM ldi rArgByte1, High( @0 ) ldi rArgByte0, Low( @0 ) call delayMilliSeconds .endm ; ********************************** ; M A C R O ; ********************************** ; Arguments: @0 = number of tenths of seconds to delay (byte value) .macro delayTenthsOfSecondsM ldi rArgByte0, Low( @0 ) call delayTenthsOfSeconds .endm ; ********************************** ; D A T A S E G M E N T ; ( S R A M ) ; ********************************** .dseg .org SRAM_START sStaticDataBegin: sKeyPadTable: .byte 16 sStaticDataEnd: ; ********************************** ; C O D E S E G M E N T ; ********************************** .cseg .org 0x00 ; ************************************ ; I N T E R R U P T V E C T O R S ; ************************************ .org 0x00 rjmp main ; Reset vector .org 0x02 reti ; INT0 .org 0x04 reti ; INT1 .org 0x06 reti ; PCI0 .org 0x08 reti ; PCI1 .org 0x0A reti ; PCI2 .org 0x0C reti ; WDT .org 0x0E reti ; OC2A .org 0x10 reti ; OC2B .org 0x12 reti ; OVF2 .org 0x14 reti ; ICP1 .org 0x16 reti ; OC1A .org 0x18 reti ; OC1B .org 0x1A reti ; OVF1 .org 0x1C reti ; OC0A .org 0x1E reti ; OC0B .org 0x20 reti ; OVF0 .org 0x22 reti ; SPI .org 0x24 reti ; URXC .org 0x26 reti ; UDRE .org 0x28 reti ; UTXC .org 0x2A reti ; ADCC .org 0x2C reti ; ERDY .org 0x2E reti ; ACI .org 0x30 reti ; TWI .org 0x32 reti ; SPMR .org 0x34 ; *************************************** ; D A T A I N C O D E S E G ; *************************************** ; Rem: data in codeseg stored and addressed by words (not bytes) dStaticDataBegin: ; Look up table for key conversion .db 1, 2, 3, 15, 4, 5, 6, 14, 7, 8, 9, 13, 10, 0, 11, 12 dStaticDataEnd: .equ kdStaticDataLen = 2 * ( dStaticDataEnd - dStaticDataBegin ) ; *************************************** ; I N T E R R U P T H A N D L E R S ; *************************************** ; *************************************** ; M A I N ( R E S E T ) ; *************************************** main: initializeStack rTmp1 rcall initStaticData ; Move static data from PROGMEM to SRAM ; Initialize LEDs sbi pGreenLedDirD, pGreenLedDirDBit cbi pGreenLedPort, pGreenLedPortBit sbi pRedLedDirD, pRedLedDirDBit cbi pRedLedPort, pRedLedPortBit ; Flash the LEDs sbi pGreenLedPort, pGreenLedPortBit sbi pRedLedPort, pRedLedPortBit delayTenthsOfSecondsM 20 cbi pGreenLedPort, pGreenLedPortBit cbi pRedLedPort, pRedLedPortBit ; Configure the keypad to accept inputs rcall doConfigureKeypad mainLoop: ; Look for rows to go low in rTmp1, pRowPin andi rTmp1, kRowBitsOnes cpi rTmp1, kRowBitsOnes breq mainLoop rcall doKeyHit rjmp mainLoop ; ********************************** ; S U B R O U T I N E ; ********************************** doKeyHit: rcall doScanKeyPad rcall doFlashLeds ret ; ********************************** ; S U B R O U T I N E ; ********************************** doFlashLeds: ldiw Z, sKeyPadTable ; Read number corresponding to key from SRAM add ZL, rKey clr rTmp2 ; Doesn't affect carry flag adc ZH, rTmp2 ld rTmp2, Z ; rTmp2 holds the value of the key tst rTmp2 ; Is it zero? breq flashZero ; ...then flash the red LED flashGreenLed: ; Flash green LED 'rTmp2' times sbi pGreenLedPort, pGreenLedPortBit delayMilliSecondsM 250 cbi pGreenLedPort, pGreenLedPortBit delayMilliSecondsM 300 dec rTmp2 brne flashGreenLed rjmp flashExit flashZero: sbi pRedLedPort, pRedLedPortBit ; "0" is a single long flash of red LED delayMilliSecondsM 2000 cbi pRedLedPort, pRedLedPortBit flashExit: ret ; ********************************** ; S U B R O U T I N E ; ********************************** doScanKeyPad: sbis pRowPin, kRow1 ; Find row of keypress ldi rKey, 0 ; Set Row pointer sbis pRowPin, kRow2 ldi rKey, 4 sbis pRowPin, kRow3 ldi rKey, 8 sbis pRowPin, kRow4 ldi rKey, 12 ; To read the column value need to flip the configuration of rows & columns ; Reconfigure rows in rTmp1, pRowDirD ; Change Rows to outputs ori rTmp1, kRowBitsOnes out pRowDirD, rTmp1 in rTmp1, pColDirD ; Change Columns to inputs andi rTmp1, kColBitsZeros out pColDirD, rTmp1 ; Reconfigure columns in rTmp1, pRowPort ; Set Rows low andi rTmp1, kRowBitsZeros out pRowPort, rTmp1 in rTmp1, pColPort ; Set pull-up resistors on Cols ori rTmp1, kColBitsOnes out pColPort, rTmp1 delayMicroSecondsM 200 ; Allow time for port to settle sbis pColPin, kCol1 ; Find column of keypress ldi rTmp1, 0 sbis pColPin, kCol2 ldi rTmp1, 1 sbis pColPin, kCol3 ldi rTmp1, 2 sbis pColPin, kCol4 ldi rTmp1, 3 add rKey, rTmp1 ; Combine ROW and COL for pointer ; Re-initialize columns and rows rcall doConfigureKeypad ret ; ********************************** ; S U B R O U T I N E ; ********************************** initStaticData: ; Copy the static strings into SRAM ; Z = pointer to program memory ; X = pointer to SRAM ; rTmp1 = counter ; rScratch1 = transfer register ; Set up pointers to read from PROGMEM to SRAM ldi rTmp1, kdStaticDataLen ldiw Z, dStaticDataBegin << 1 ldiw X, sStaticDataBegin initStaticData_Loop: ; Actual transfer loop from PROGMEM to SRAM lpm rScratch1, Z+ st X+, rScratch1 dec rTmp1 brne initStaticData_Loop ret ; ********************************** ; S U B R O U T I N E ; ********************************** doConfigureKeypad: ; Configure the keybad to accept inputs ; rTmp1 = used as a scratch register ; Configure keypad column pins in rTmp1, pColDirD ; Set PD4-PD7, columns, as output (others unchanged) ori rTmp1, kColBitsOnes out pColDirD, rTmp1 in rTmp1, pColPort ; Set PD4-PD7 as low andi rTmp1, kColBitsZeros out pColPort, rTmp1 ; Configure keypad row pins in rTmp1, pRowDirD ; Set PB0-PB3, rows, as input andi rTmp1, kRowBitsZeros out pRowDirD, rTmp1 in rTmp1, pRowPort ; Enable pull ups on PB0-PB3 ori rTmp1, kRowBitsOnes out pRowPort, rTmp1 delayMicroSecondsM 200 ; Allow time for port to settle ret ; ********************************** ; S U B R O U T I N E ; ********************************** delayMicroSeconds: ; Register r25:24 is passed as parameter (the number of microseconds to delay) ; r24 = LSB microseconds to delay ; r25 = MSB microseconds to delay ; 1 microsecond = 16 cycles. ; Call/return overhead takes 7-8 cycles (depending on rcall or call). ; So burn up 8 more cycles (not counting the ret) to make a whole microsecond, including ; a check to see if we are done (i.e., the request was a 1us delay). ; Then do a loop that burns 16 cycles each time nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle sbiw rDelayUsH:rDelayUsL, 1 ; 2 cycles breq delayMicroseconds_Ret ; 1 cycle if false/continue, 2 cycles (8 total) if true/branch nop ; 1 cycle (8 total) delayMicroseconds_Loop: nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle nop ; 1 cycle sbiw rDelayUsH:rDelayUsL, 1 ; 2 cycles brne delayMicroseconds_Loop ; 2 cycles (16 total) on true/loop, 1 cycle on false/exit_loop nop ; 1 cycle (so total 16 on exit from last loop) delayMicroseconds_Ret: ret ;; ********************************** ; S U B R O U T I N E ; ********************************** delayMilliSeconds: ; Register r25:r24 (milliSecCounter) is passed as parameter ; r24 = number of milliseconds to count (comes in as argument) ; = number of times to execute the outer+inner loops combined ; r25 = outer loop counter byte ; r26 = low byte of inner loop counter word ; r27 = high byte of inner loop counter word ; Executing the following combination of inner and outer loop cycles takes almost precisely 1 millisecond at 16 MHz .equ kDWMSOuterCount = 2 .equ kDWMSInnerCount = 1997 ; Top of loop for number of milliseconds DWMS_Loop1: ; Initialize outer loop (uses a byte counter and counts down) ldi rDWMSOuter, kDWMSOuterCount ; Top of outer loop DWMS_Loop2: ; Initialze inner loop (uses a word counter and counts down) ldiw rDWMSInner, kDWMSInnerCount ; Top of inner loop DWMS_Loop3: ; Decrement and test inner loop sbiw rDWMSInnerL:rDWMSInnerL, 1 brne DWMS_Loop3 ; Done with inner loop ; Decrement and test outer loop dec rDWMSOuter brne DWMS_Loop2 ; Done with outer loop ; Decrement and test millisecond loop sbiw rMillisH:rMillisL, 1 brne DWMS_Loop1 ; Done with the requested number of milliseconds ret ; ********************************** ; S U B R O U T I N E ; ********************************** delayTenthsOfSeconds: ; Register r24 (tenthOfSecCounter) is passed as parameter ; r24 = number of tenths-of-seconds to count (comes in as argument) ; = number of times to execute the outer+inner loops combined ; r25 = outer loop counter byte ; r26 = low byte of inner loop counter word ; r27 = high byte of inner loop counter word ; Executing the following combination of inner and outer loop cycles takes almost precisely 0.1 seconds at 16 Mhz .equ kDTSOuterCount = 7 .equ kDTSInnerCount = 57142 ; Top of loop for number of tenths-of-seconds DTS_Loop1: ; Initialize outer loop (uses a byte counter and counts down) ldi rDTSOuter, kDTSOuterCount ; Top of outer loop DTS_Loop2: ; Initialze inner loop (uses a word counter and counts down) ldiw rDTSInner, kDTSInnerCount ; Top of inner loop DTS_Loop3: ; Decrement and test inner loop sbiw rDTSInnerH:rDTSInnerL, 1 brne DTS_Loop3 ; Done with inner loop ; Decrement and test outer loop dec rDTSOuter brne DTS_Loop2 ; Done with outer loop ; Decrement and test tenth-of-second loop dec r10ths brne DTS_Loop1 ; Done with the requested number of tenths-of-seconds ret
28.649096
119
0.489355
5eee20e8a5d34b715b7fecac47f0c77edfca3248
6,486
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_314.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_314.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_314.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 %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x763e, %rsi lea addresses_WC_ht+0x132de, %rdi nop nop nop nop sub $31585, %rbx mov $3, %rcx rep movsq cmp $55128, %r11 lea addresses_UC_ht+0x151e, %rsi lea addresses_A_ht+0xf7c6, %rdi clflush (%rdi) nop nop nop sub $11250, %rax mov $21, %rcx rep movsw sub %rsi, %rsi lea addresses_WT_ht+0x1bd9e, %rdi clflush (%rdi) nop nop nop cmp $16604, %r14 mov $0x6162636465666768, %rax movq %rax, %xmm7 vmovups %ymm7, (%rdi) nop nop sub %rcx, %rcx lea addresses_A_ht+0x1349e, %r11 nop nop add $59489, %r14 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%r11) nop nop nop nop xor $45942, %rcx lea addresses_D_ht+0x61c, %rsi nop nop and %rbx, %rbx movl $0x61626364, (%rsi) nop nop nop dec %rcx lea addresses_WT_ht+0x1269e, %rax nop nop nop nop nop xor %rsi, %rsi movb $0x61, (%rax) nop nop nop nop nop add $28890, %r11 lea addresses_A_ht+0x1e11e, %rdi nop sub $24303, %rcx movw $0x6162, (%rdi) nop nop nop add $31563, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %r8 push %rax push %rcx // Store mov $0x95e, %r10 clflush (%r10) nop add %rax, %rax mov $0x5152535455565758, %r8 movq %r8, %xmm6 movups %xmm6, (%r10) nop nop nop cmp $50758, %r13 // Store lea addresses_D+0x1c99e, %r10 nop sub %rcx, %rcx movb $0x51, (%r10) sub %r12, %r12 // Load lea addresses_D+0x1eede, %r8 nop and %r13, %r13 vmovups (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rax and $418, %r8 // Faulty Load lea addresses_RW+0x1711e, %r10 and %r15, %r15 movntdqa (%r10), %xmm7 vpextrq $0, %xmm7, %r8 lea oracles, %r13 and $0xff, %r8 shlq $12, %r8 mov (%r13,%r8,1), %r8 pop %rcx pop %rax pop %r8 pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': True, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'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 */
37.929825
2,999
0.654795
853689c4710beea08518ec17b761d901eb211c6b
456
asm
Assembly
oeis/271/A271638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/271/A271638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/271/A271638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A271638: The total sum of the cubes of all parts of all compositions of n. ; Submitted by Jamie Morken(s1) ; 1,10,48,170,512,1398,3580,8770,20808,48206,109652,245850,544864,1196134,2605164,5636210,12124280,25952382,55312516,117440650,248512656,524288150,1103102108,2315255970,4848615592,10133438638,21139292340,44023414970,91536490688 add $0,1 mov $2,$0 lpb $0 sub $0,1 mul $2,2 add $2,$4 add $3,12 add $4,$3 mul $3,2 lpe mov $0,$2 div $0,2
26.823529
227
0.739035
b90a0c5cce5799cefa6164f57abb4e86747e4492
7,254
asm
Assembly
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_382.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_382.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_382.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0xe12a, %rsi lea addresses_D_ht+0x83ad, %rdi nop nop nop nop nop and $18099, %r9 mov $50, %rcx rep movsq nop nop nop nop inc %r9 lea addresses_WC_ht+0xd42a, %rdi nop nop add %r13, %r13 mov (%rdi), %ebp nop xor %rbp, %rbp lea addresses_WC_ht+0x8102, %rsi lea addresses_D_ht+0x1262a, %rdi nop sub $55141, %r11 mov $63, %rcx rep movsw nop nop nop xor $10907, %rbp lea addresses_UC_ht+0x982a, %rcx nop nop nop nop add %r13, %r13 movb $0x61, (%rcx) nop xor %r13, %r13 lea addresses_WC_ht+0x12870, %rbp cmp %r11, %r11 mov $0x6162636465666768, %r9 movq %r9, %xmm3 and $0xffffffffffffffc0, %rbp movaps %xmm3, (%rbp) nop nop inc %r9 lea addresses_WT_ht+0xc62a, %r9 nop nop nop nop nop add %rbp, %rbp mov $0x6162636465666768, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%r9) nop nop nop nop nop and $53723, %r13 lea addresses_UC_ht+0x782a, %rsi lea addresses_D_ht+0xf8aa, %rdi nop nop nop inc %r15 mov $107, %rcx rep movsb sub %rsi, %rsi lea addresses_D_ht+0x1e22a, %r15 nop nop nop nop inc %rdi mov (%r15), %bp nop nop nop nop nop add %r13, %r13 lea addresses_UC_ht+0x2b6a, %rsi nop inc %rbp movb (%rsi), %cl nop nop nop nop xor $43922, %r15 lea addresses_D_ht+0x132aa, %rbp nop xor %rcx, %rcx mov (%rbp), %r9d cmp %rsi, %rsi lea addresses_UC_ht+0x18a2a, %rcx nop nop nop add $4068, %rbp mov $0x6162636465666768, %r13 movq %r13, %xmm0 vmovups %ymm0, (%rcx) nop nop nop and $63270, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_US+0x166a2, %rsi lea addresses_US+0x4bea, %rdi xor %r10, %r10 mov $80, %rcx rep movsb nop xor $36577, %rcx // Load lea addresses_RW+0x1d40a, %r11 nop nop nop nop nop sub %r10, %r10 mov (%r11), %ecx nop nop and $53406, %rdi // Faulty Load mov $0x46b66d000000002a, %r11 nop nop nop and $59096, %rbx movups (%r11), %xmm7 vpextrq $1, %xmm7, %r15 lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_US', 'congruent': 6, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_RW', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}} {'00': 21819, '48': 10} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.379147
2,999
0.655776
a4293fb779a223fc91256b4371985461a89520fb
857
asm
Assembly
arch/x86/mboot.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
arch/x86/mboot.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
arch/x86/mboot.asm
pi-pi3/funky-kernel
e6938c0e75e5aabf49cc94f6720250f21bf94900
[ "Zlib" ]
null
null
null
bits 32 %define MB2_MAGIC 0e85250d6h %define MB2_CKSUM(arch) (100000000h - (MB2_MAGIC + (arch) + header_length)) struc mb2_header .magic resd 1 ;; magic number .arch resd 1 ;; architecture (0 = i386, protected) .length resd 1 ;; size of the header .cksum resd 1 ;; cksum endstruc struc mb2_tag .type resw 1 ;; type .flags resw 1 ;; flags .size resd 1 ;; size endstruc section .boot header_start: align 4, db 0 istruc mb2_header at mb2_header.magic, dd MB2_MAGIC at mb2_header.arch, dd 0h at mb2_header.length, dd header_length at mb2_header.cksum, dd MB2_CKSUM(0h) iend align 8, db 0 istruc mb2_tag at mb2_tag.type, dw 0 at mb2_tag.flags, dw 0 at mb2_tag.size, dd 8 iend header_end: header_length equ (header_end - header_start)
23.162162
75
0.645274
e829164db1f8a73d1c4fcab0e4dd22dd53de24b7
7,331
asm
Assembly
lib/asm/philox_avx2_32.asm
zhouyan/MCKL
1d03eb5a879e47e268efc73b1d433611e64307b3
[ "BSD-2-Clause" ]
12
2016-08-02T17:01:13.000Z
2021-03-04T12:11:33.000Z
lib/asm/philox_avx2_32.asm
zhouyan/MCKL
1d03eb5a879e47e268efc73b1d433611e64307b3
[ "BSD-2-Clause" ]
5
2017-05-09T12:05:06.000Z
2021-03-16T10:39:23.000Z
lib/asm/philox_avx2_32.asm
zhouyan/MCKL
1d03eb5a879e47e268efc73b1d433611e64307b3
[ "BSD-2-Clause" ]
2
2016-08-25T13:10:29.000Z
2019-05-01T01:54:29.000Z
;;============================================================================ ;; MCKL/lib/asm/philox_avx2_32.asm ;;---------------------------------------------------------------------------- ;; MCKL: Monte Carlo Kernel Library ;;---------------------------------------------------------------------------- ;; Copyright (c) 2013-2018, Yan Zhou ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the following disclaimer. ;; ;; Redistributions in binary form must reproduce the above copyright notice, ;; this list of conditions and the following disclaimer in the documentation ;; and/or other materials provided with the distribution. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS ;; AND ANY EXPRESS OR IMPLIED WARRANTIES, inc4LUDING, BUT NOT LIMITED TO, THE ;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE ;; LIABLE FOR ANY DIRECT, INDIRECT, inc4IDENTAL, SPECIAL, EXEMPLARY, OR ;; CONSEQUENTIAL DAMAGES (inc4LUDING, 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 (inc4LUDING NEGLIGENCE OR OTHERWISE) ;; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ;; POSSIBILITY OF SUCH DAMAGE. ;;============================================================================ global mckl_philox2x32_avx2_kernel global mckl_philox4x32_avx2_kernel default rel %macro rbox 2 vmovdqa ymm15, [rsp + %1 * 0x20] ; round key vpmuludq ymm10, ymm0, ymm9 vpmuludq ymm11, ymm1, ymm9 vpmuludq ymm12, ymm2, ymm9 vpmuludq ymm13, ymm3, ymm9 vpand ymm0, ymm0, ymm14 vpand ymm1, ymm1, ymm14 vpand ymm2, ymm2, ymm14 vpand ymm3, ymm3, ymm14 vpxor ymm0, ymm0, ymm15 vpxor ymm1, ymm1, ymm15 vpxor ymm2, ymm2, ymm15 vpxor ymm3, ymm3, ymm15 vpxor ymm0, ymm0, ymm10 vpxor ymm1, ymm1, ymm11 vpxor ymm2, ymm2, ymm12 vpxor ymm3, ymm3, ymm13 vpmuludq ymm10, ymm4, ymm9 vpmuludq ymm11, ymm5, ymm9 vpmuludq ymm12, ymm6, ymm9 vpmuludq ymm13, ymm7, ymm9 vpand ymm4, ymm4, ymm14 vpand ymm5, ymm5, ymm14 vpand ymm6, ymm6, ymm14 vpand ymm7, ymm7, ymm14 vpxor ymm4, ymm4, ymm15 vpxor ymm5, ymm5, ymm15 vpxor ymm6, ymm6, ymm15 vpxor ymm7, ymm7, ymm15 vpxor ymm4, ymm4, ymm10 vpxor ymm5, ymm5, ymm11 vpxor ymm6, ymm6, ymm12 vpxor ymm7, ymm7, ymm13 vpshufd ymm0, ymm0, %2 vpshufd ymm1, ymm1, %2 vpshufd ymm2, ymm2, %2 vpshufd ymm3, ymm3, %2 vpshufd ymm4, ymm4, %2 vpshufd ymm5, ymm5, %2 vpshufd ymm6, ymm6, %2 vpshufd ymm7, ymm7, %2 %endmacro %macro generate 4 ; block size, permute constants %if %1 == 0x08 ; Philox2x32 vpaddq ymm0, ymm8, [increment2x32 + 0x000] vpaddq ymm1, ymm8, [increment2x32 + 0x020] vpaddq ymm2, ymm8, [increment2x32 + 0x040] vpaddq ymm3, ymm8, [increment2x32 + 0x060] vpaddq ymm4, ymm8, [increment2x32 + 0x080] vpaddq ymm5, ymm8, [increment2x32 + 0x0A0] vpaddq ymm6, ymm8, [increment2x32 + 0x0C0] vpaddq ymm7, ymm8, [increment2x32 + 0x0E0] vpaddq ymm8, ymm8, [increment2x32 + 0x100] %elif %1 == 0x10 ; Philox4x32 vpaddq ymm0, ymm8, [increment4x32 + 0x000] vpaddq ymm1, ymm8, [increment4x32 + 0x020] vpaddq ymm2, ymm8, [increment4x32 + 0x040] vpaddq ymm3, ymm8, [increment4x32 + 0x060] vpaddq ymm4, ymm8, [increment4x32 + 0x080] vpaddq ymm5, ymm8, [increment4x32 + 0x0A0] vpaddq ymm6, ymm8, [increment4x32 + 0x0C0] vpaddq ymm7, ymm8, [increment4x32 + 0x0E0] vpaddq ymm8, ymm8, [increment4x32 + 0x100] %else %error %endif %if %2 != 0xE3 vpshufd ymm0, ymm0, %2 vpshufd ymm1, ymm1, %2 vpshufd ymm2, ymm2, %2 vpshufd ymm3, ymm3, %2 vpshufd ymm4, ymm4, %2 vpshufd ymm5, ymm5, %2 vpshufd ymm6, ymm6, %2 vpshufd ymm7, ymm7, %2 %endif rbox 0, %3 rbox 1, %3 rbox 2, %3 rbox 3, %3 rbox 4, %3 rbox 5, %3 rbox 6, %3 rbox 7, %3 rbox 8, %3 rbox 9, %4 %endmacro ; rdi:ctr.data() ; rsi:n ; rdx:r ; rcx:mul:weyl:key %macro kernel 4 ; block size, permute constants push rbp mov rbp, rsp shr rsp, 5 shl rsp, 5 sub rsp, 0x140 ; 10 round keys cld ; early return test rsi, rsi jz .return ; parameter processing, leave rdi, rsi, rcx free for moving memory mov rax, rsi ; n mov r8, rdi ; ctr mov r9, rcx ; mul:wey:key ; load counter %if %1 == 0x08 ; Philox2x32 vpbroadcastq ymm8, [r8] %elif %1 == 0x10 ; Philox4x32 vbroadcasti128 ymm8, [r8] %else %error %endif add [r8], rax ; load multiplier %if %1 == 0x08 ; Philox2x32 vpbroadcastq ymm9, [r9] %elif %1 == 0x10 ; Philox4x32 vbroadcasti128 ymm9, [r9] %else %error %endif ; load mask vmovdqa ymm14, [mask] ; compute round keys and store to stack %if %1 == 0x08 ; Philox2x32 vpbroadcastq ymm0, [r9 + 0x08] ; weyl vpbroadcastq ymm1, [r9 + 0x10] ; key %elif %1 == 0x10 ; Philox4x32 vbroadcasti128 ymm0, [r9 + 0x10] ; weyl vbroadcasti128 ymm1, [r9 + 0x20] ; key %else %error %endif vmovdqa [rsp], ymm1 %assign r 1 %rep 9 vpaddq ymm1, ymm1, ymm0 vmovdqa [rsp + r * 0x20], ymm1 %assign r r + 1 %endrep cmp rax, 0x100 / %1 jl .last align 16 .loop: generate %1, %2, %3, %4 vmovdqu [rdx + 0x00], ymm0 vmovdqu [rdx + 0x20], ymm1 vmovdqu [rdx + 0x40], ymm2 vmovdqu [rdx + 0x60], ymm3 vmovdqu [rdx + 0x80], ymm4 vmovdqu [rdx + 0xA0], ymm5 vmovdqu [rdx + 0xC0], ymm6 vmovdqu [rdx + 0xE0], ymm7 add rdx, 0x100 sub rax, 0x100 / %1 cmp rax, 0x100 / %1 jge .loop .last: test rax, rax jz .return generate %1, %2, %3, %4 vmovdqa [rsp + 0x00], ymm0 vmovdqa [rsp + 0x20], ymm1 vmovdqa [rsp + 0x40], ymm2 vmovdqa [rsp + 0x60], ymm3 vmovdqa [rsp + 0x80], ymm4 vmovdqa [rsp + 0xA0], ymm5 vmovdqa [rsp + 0xC0], ymm6 vmovdqa [rsp + 0xE0], ymm7 %if %1 == 0x08 ; Philox2x32 mov rcx, rax %elif %1 == 0x10 ; Philox4x32 lea rcx, [rax + rax] %else %error %endif mov rsi, rsp mov rdi, rdx rep movsq .return: vzeroupper mov rsp, rbp pop rbp ret %endmacro section .rodata align 32 increment2x32: dq 0x01, 0x02, 0x03, 0x04 dq 0x05, 0x06, 0x07, 0x08 dq 0x09, 0x0A, 0x0B, 0x0C dq 0x0D, 0x0E, 0x0F, 0x10 dq 0x11, 0x12, 0x13, 0x14 dq 0x15, 0x16, 0x17, 0x18 dq 0x19, 0x1A, 0x1B, 0x1C dq 0x1D, 0x1E, 0x1F, 0x20 dq 0x20, 0x20, 0x20, 0x20 increment4x32: dq 0x01, 0x00, 0x02, 0x00 dq 0x03, 0x00, 0x04, 0x00 dq 0x05, 0x00, 0x06, 0x00 dq 0x07, 0x00, 0x08, 0x00 dq 0x09, 0x00, 0x0A, 0x00 dq 0x0B, 0x00, 0x0C, 0x00 dq 0x0D, 0x00, 0x0E, 0x00 dq 0x0F, 0x00, 0x10, 0x00 dq 0x10, 0x00, 0x10, 0x00 mask: times 4 dq 0xFFFF_FFFF_0000_0000 section .text mckl_philox2x32_avx2_kernel: kernel 0x08, 0xE3, 0xB1, 0xB1 mckl_philox4x32_avx2_kernel: kernel 0x10, 0xC6, 0x93, 0xB1 ; vim:ft=nasm
26.755474
78
0.632656
0a509433005910539f3eb7dac6945cbd9b837202
440
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_getHCount.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_getHCount.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_getHCount.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ************************************************** ; SMSlib - C programming library for the SMS/GG ; ( part of devkitSMS - github.com/sverx/devkitSMS ) ; ************************************************** INCLUDE "SMSlib_private.inc" SECTION code_clib SECTION code_SMSlib PUBLIC asm_SMSlib_getHCount asm_SMSlib_getHCount: ; unsigned char SMS_getHCount (void) ; ; uses : af, l in a,(VDPHCounterPort) ld l,a ret
20
52
0.543182
5ee087536cb465f9da4181e5c0e1747e70236b73
372
asm
Assembly
examples/diffusion.asm
ihh/bbcmicrobot-codec
6c4587c1ed9d89942a2adae4cf8cda148ebb47d1
[ "BSD-3-Clause" ]
10
2020-03-06T04:32:59.000Z
2021-03-02T05:04:16.000Z
examples/diffusion.asm
ihh/bbcmicrobot-codec
6c4587c1ed9d89942a2adae4cf8cda148ebb47d1
[ "BSD-3-Clause" ]
null
null
null
examples/diffusion.asm
ihh/bbcmicrobot-codec
6c4587c1ed9d89942a2adae4cf8cda148ebb47d1
[ "BSD-3-Clause" ]
null
null
null
m: jsr $af87 ldx $d ldy $e jsr c sty $70 sta $71 ldx $d ldy $e lda $f bpl notx dex lsr bcc done inx inx bcs done notx: dey lsr bcc done iny iny done: jsr c sty $72 sta $73 ldx #0 lda ($70,x) pha lda ($72,x) sta ($70,x) pla sta ($72,x) bne m c: txa and #15 asl tax tya and #31 adc $c3b6,x tay lda $c3b5,x adc #$7c rts
7.75
12
0.548387
c1ca2ac3fc1a8896858bcbfe78644ac623c90b94
8,274
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0x48_notsx.log_21829_596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0x48_notsx.log_21829_596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0x48_notsx.log_21829_596.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 %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xdf9f, %rdi nop nop nop nop sub $29707, %rdx movups (%rdi), %xmm5 vpextrq $1, %xmm5, %r14 nop xor $60684, %r8 lea addresses_UC_ht+0x579f, %rsi lea addresses_D_ht+0x17e67, %rdi nop nop add %r9, %r9 mov $106, %rcx rep movsw nop cmp %r14, %r14 lea addresses_WT_ht+0x18d2d, %rdi nop nop add %r8, %r8 movb (%rdi), %dl nop nop nop nop nop sub $62087, %r8 lea addresses_WC_ht+0x1318f, %r8 nop nop nop nop cmp $51790, %rcx movb (%r8), %r14b nop sub $44026, %rcx lea addresses_UC_ht+0x1c077, %r14 nop sub $13279, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%r14) nop nop cmp $24662, %r14 lea addresses_normal_ht+0x1879f, %rsi lea addresses_A_ht+0x10f5f, %rdi nop nop nop nop nop sub $7953, %rdx mov $24, %rcx rep movsw and %r14, %r14 lea addresses_normal_ht+0x2483, %rsi xor $38585, %r9 movups (%rsi), %xmm6 vpextrq $1, %xmm6, %r14 nop nop nop nop sub $49498, %rcx lea addresses_A_ht+0x1839f, %r8 nop nop nop nop nop sub %rdx, %rdx mov (%r8), %edi sub %r9, %r9 lea addresses_WT_ht+0x2d9f, %r9 nop sub %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%r9) and %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_D+0xdd9f, %rsi lea addresses_PSE+0x71df, %rdi nop nop nop nop nop dec %rbx mov $107, %rcx rep movsq // Exception!!! nop nop nop nop mov (0), %rbp nop nop nop inc %rcx // Store mov $0x1cd325000000059f, %rcx nop nop nop nop xor $62574, %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm0 movups %xmm0, (%rcx) nop nop add %rdi, %rdi // Store mov $0x594407000000099f, %rdi and %r14, %r14 movb $0x51, (%rdi) nop nop nop nop nop add $20487, %r13 // Store lea addresses_normal+0x1c25f, %rdi nop cmp %rbx, %rbx movb $0x51, (%rdi) inc %rsi // Store lea addresses_RW+0x219f, %rbx nop nop nop nop nop and $14854, %rcx movl $0x51525354, (%rbx) cmp %rcx, %rcx // Store lea addresses_RW+0x623, %r14 nop nop nop inc %rbp mov $0x5152535455565758, %rcx movq %rcx, (%r14) // Exception!!! nop nop mov (0), %r13 nop cmp $48652, %rsi // Store lea addresses_A+0x10b9f, %rbx nop nop cmp $52765, %r14 movl $0x51525354, (%rbx) nop nop nop nop and $18957, %rcx // Store lea addresses_D+0x167d7, %rsi nop nop inc %rbp movl $0x51525354, (%rsi) xor %rbx, %rbx // Faulty Load lea addresses_UC+0x659f, %rsi clflush (%rsi) nop add $56774, %rdi movntdqa (%rsi), %xmm2 vpextrq $0, %xmm2, %rbp lea oracles, %rdi and $0xff, %rbp shlq $12, %rbp mov (%rdi,%rbp,1), %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_PSE'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_RW', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 2}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 11}, 'OP': 'STOR'} {'58': 18525, '00': 3304} 00 58 00 58 58 00 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 00 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 00 00 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 00 00 58 58 58 58 00 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 00 58 00 58 58 00 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 00 58 58 58 58 58 00 58 58 58 00 58 58 58 58 00 00 58 00 58 58 58 58 58 58 00 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 00 00 58 58 58 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 58 00 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 00 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 00 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 00 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 00 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 00 58 00 58 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 */
31.580153
2,999
0.650713
c8c90fef4e17248e59b5d932c5bef9579a07a701
791
asm
Assembly
src/BB8_Intro.asm
JoshKing56/BB8-Breadboard-Computer
6a14d5aeed856f1f2b0ef8843421bc69ec9ccb1a
[ "MIT" ]
null
null
null
src/BB8_Intro.asm
JoshKing56/BB8-Breadboard-Computer
6a14d5aeed856f1f2b0ef8843421bc69ec9ccb1a
[ "MIT" ]
1
2018-04-08T21:48:49.000Z
2018-04-08T21:48:49.000Z
src/BB8_Intro.asm
JoshKing56/8-Bit-Computer
6a14d5aeed856f1f2b0ef8843421bc69ec9ccb1a
[ "MIT" ]
null
null
null
CLR LD A 110 ;;BODY TILE LD &15 A NOT A A LD D 12 LD C 3 LD &D A ;;START LOOP CENTRE BODY ADD D D 1 SUB C C 1 JNZ C 6 ;;END LOOP CENTRE BODY LD A 8 LD &16 A LD A 20 LD &17 A LD A 34 LD &18 A LD A 65 LD &19 A LD A 1 ;;&20 DIRECTION LD &20 A NOP ;;HAD EXTRA LD BUT WAS NOT NEEDED NOP LD A 16 ;;&22 FRAME 16/17/18/19 LD &22 A LD A 12 ;;&23 COL LD &23 A NOP LD A &22 LD A &A ;; LABEL 4 / 5 LD C &23 AND B A 14 ;;XXXXX111X MASK LABEL 1 LD D &C AND D D 241 ;;11111XXX1 MASK OR D B D LD &C D NOP EQ B C 14 JNZ B 45 ;; lABEL 2 NOP NOP ROR A A ;; 5A1000 NOP ROR A A ;; 5A1000 NOP ROR A A ;; 5A1000 ADD C C 1 PCL 30 ;; lABEL 1 NOP LD A &22 ;; LABEL 2 EQ B A 19 JNZ B 52 ;; LABEL 3 ADD A A 1 LD &22 A PCL 28 ;; lABEL 4 NOP SUB A A 3 ;; LABEL 3 LD &22 A PCL 28 ;; LABEL 5
14.381818
39
0.600506
3f322a7074249a17520e37a98d139559bb9c3c27
1,058
asm
Assembly
4-periodo/arquitetura-e-organizacao-de-computadores-2/soma-impares.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
null
null
null
4-periodo/arquitetura-e-organizacao-de-computadores-2/soma-impares.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
1
2021-04-08T13:15:01.000Z
2021-04-08T13:15:01.000Z
4-periodo/arquitetura-e-organizacao-de-computadores-2/soma-impares.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
1
2021-04-08T11:39:46.000Z
2021-04-08T11:39:46.000Z
# 1) # Escreva um programa que some os 1000 primeiros números naturais impares. # Imprima o resultado final usando chamadas do sistema. .macro printStr(%str) la $a0, %str addi $v0, $zero, 4 syscall .end_macro .macro printInt(%int) add $a0, $zero, %int addi $v0, $zero, 1 syscall .end_macro .data i: 1 limit: 1000 title: .asciiz "Soma dos primeiros 1000 numeros inteiros impares\n" result: .asciiz "O resultado e: " .text printStr(title) # Macro que imprime strings la $t0, i # Carrega em $t0 o endereço de i lw $s0, 0($t0) # $s0 recebe o valor de i (0) addi $s3, $zero, 1 # Proximo inteiro la $t0, limit # Carrega em $t0 o endereço de limit lw $s1, 0($t0) # $s1 recebe o valor de i (1000) add $s7, $zero, $zero # Zerando o somador FOR1: slt $t0, $s0, $s1 # i < 1000? beq $t0, $zero, END1 # Caso nao seja, sai do for # Loop _____ add $s7, $s7, $s3 # __________ addi $s3, $s3, 2 addi $s0, $s0, 1 j FOR1 END1: printStr(result) printInt($s7) # Fim do programa (return 0) addi $v0, $zero, 10 syscall
18.561404
75
0.643667
3fd7ae320980b1db6297322ce7eff2cb0189dea9
3,703
asm
Assembly
kernel/compiler/utilities.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
kernel/compiler/utilities.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
kernel/compiler/utilities.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
; ****************************************************************************** ; ****************************************************************************** ; ; Name : utilities.asm ; Purpose : Support Utilities ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 2nd October 2019 ; ; ****************************************************************************** ; ****************************************************************************** ; ****************************************************************************** ; ; Search all dictionaries. As DictionarySearch but checks first the ; user dictionary then the system one. ; ; ****************************************************************************** UtilSearchAll: lda #DictionaryBase & $FF ; search the user dictionary ldx #DictionaryBase >> 8 sta zTemp0 stx zTemp0+1 jsr DictionarySearch bcs _BSAExit ; lda #KernelDictionary & $FF ; search the system dictionary ldx #KernelDictionary >> 8 sta zTemp0 stx zTemp0+1 jsr DictionarySearch _BSAExit: rts ; ****************************************************************************** ; ; Try to convert the search buffer to an integer, return the value ; in YA with CS if okay, CC if not. ; ; ****************************************************************************** UtilConvertInteger: stz zTemp0 ; zero the result stz zTemp0+1 ldx #255 ; start position-1 _BCILoop: inx ; next character jsr UtilTimes10 ; zTemp0 x 10 ; lda SearchBuffer,x ; look at character and #$7F ; drop end character bit cmp #'0' ; is it an integer character bcc _BCIFail ; if not, then exit. cmp #'9'+1 bcs _BCIFail and #15 ; now constant 0-9 clc ; add to current adc zTemp0 sta zTemp0 bcc _BCINoCarry inc zTemp0+1 _BCINoCarry: lda SearchBuffer,x ; check if was last character bmi _BCISucceed ; if so, then it's okay. lda SearchBuffer+1,x ; is the next char -+End cmp #"-"+$80 bne _BCILoop ; no, go round again. ; _BCINegateExit: ; it's a negative number. sec lda #0 ; do the arithmetic adjustment sbc zTemp0 sta zTemp0 lda #0 sbc zTemp0+1 sta zTemp0+1 ; _BCISucceed: ; done, return in YA and CS sec lda zTemp0 ldy zTemp0+1 rts _BCIFail: clc rts ; ****************************************************************************** ; ; Multiply zTemp by 10 ; ; ****************************************************************************** UtilTimes10: lda zTemp0+1 ; save in YA tay lda zTemp0 asl zTemp0 ; x 4 rol zTemp0+1 asl zTemp0 rol zTemp0+1 adc zTemp0 ; add YA value gives x 5 sta zTemp0 tya adc zTemp0+1 sta zTemp0+1 asl zTemp0 ; x 10 rol zTemp0+1 rts ; ****************************************************************************** ; ; Compile call to function in dictAddr,dictBank ; ; ****************************************************************************** UtilCompileCall: pha phy lda #$20 ; JSR jsr UtilCompileByte lda dictAddr ldy dictAddr+1 jsr UtilCompileWord ply pla rts ; ****************************************************************************** ; ; Compile a byte A/word YA to code space ; ; ****************************************************************************** UtilCompileWord: pha phy jsr UtilCompileByte tya jsr UtilCompileByte ply pla rts UtilCompileByte: sta (freeCode) inc freeCode bne _UCBNoCarry inc freeCode+1 _UCBNoCarry: rts
24.523179
80
0.435593
29e0fa042b02b6e59b82a07527547829df84db4f
5,350
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_318.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_318.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_318.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 %rcx push %rdi push %rsi lea addresses_UC_ht+0x15938, %rsi lea addresses_WT_ht+0x13a64, %rdi nop nop sub $30317, %r14 mov $77, %rcx rep movsq add $56601, %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r15 push %rbp push %rbx // Store lea addresses_RW+0x88, %r14 nop nop cmp $48825, %r15 mov $0x5152535455565758, %r13 movq %r13, %xmm5 movntdq %xmm5, (%r14) nop nop cmp %r14, %r14 // Store lea addresses_normal+0x1bcc6, %rbx nop sub %r10, %r10 mov $0x5152535455565758, %r14 movq %r14, %xmm2 vmovaps %ymm2, (%rbx) nop add %r13, %r13 // Store lea addresses_A+0xe5de, %r13 nop sub %r11, %r11 mov $0x5152535455565758, %r10 movq %r10, (%r13) nop nop nop nop sub %r14, %r14 // Load lea addresses_D+0x9d84, %r14 nop cmp $64259, %rbx mov (%r14), %bp cmp %r11, %r11 // Store lea addresses_D+0x9814, %rbp nop sub %r11, %r11 movl $0x51525354, (%rbp) nop nop nop add %r10, %r10 // Faulty Load mov $0x529a560000000984, %r15 clflush (%r15) cmp $35535, %r10 movb (%r15), %r13b lea oracles, %rbx and $0xff, %r13 shlq $12, %r13 mov (%rbx,%r13,1), %r13 pop %rbx pop %rbp pop %r15 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
45.338983
2,999
0.655701
9c0b22196faf1076d29cc632603689ea4b355051
640
asm
Assembly
programs/oeis/132/A132741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/132/A132741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/132/A132741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A132741: Largest divisor of n having the form 2^i*5^j. ; 1,2,1,4,5,2,1,8,1,10,1,4,1,2,5,16,1,2,1,20,1,2,1,8,25,2,1,4,1,10,1,32,1,2,5,4,1,2,1,40,1,2,1,4,5,2,1,16,1,50,1,4,1,2,5,8,1,2,1,20,1,2,1,64,5,2,1,4,1,10,1,8,1,2,25,4,1,2,1,80,1,2,1,4,5,2,1,8,1,10,1,4,1,2,5,32,1,2,1,100,1,2,1,8,5,2,1,4,1,10,1,16,1,2,5,4,1,2,1,40,1,2,1,4,125,2,1,128,1,10,1,4,1,2,5,8,1,2,1,20,1,2,1,16,5,2,1,4,1,50,1,8,1,2,5,4,1,2,1,160,1,2,1,4,5,2,1,8,1,10,1,4,1,2,25,16,1,2,1,20,1,2,1,8,5,2,1,4,1,10,1,64,1,2,5,4,1,2,1,200,1,2,1,4,5,2,1,16,1,10,1,4,1,2,5,8,1,2,1,20,1,2,1,32,25,2,1,4,1,10,1,8,1,2,5,4,1,2,1,80,1,2,1,4,5,2,1,8,1,250 add $0,1 mov $1,64000 gcd $1,$0
91.428571
549
0.559375
5d99e2a2c4b6fe77042b1a718d49765aa6877cb8
442
asm
Assembly
oeis/050/A050448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/050/A050448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/050/A050448.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A050448: a(n) = Sum_{d|n, d==1 (mod 4)} d^4. ; Submitted by Jamie Morken(s4) ; 1,1,1,1,626,1,1,1,6562,626,1,1,28562,1,626,1,83522,6562,1,626,194482,1,1,1,391251,28562,6562,1,707282,626,1,1,1185922,83522,626,6562,1874162,1,28562,626,2825762,194482,1,1,4107812,1,1,1 add $0,1 mov $1,1 mov $2,$0 mul $0,4 lpb $0 mov $4,$0 sub $0,4 mov $3,$2 sub $4,3 dif $3,$4 cmp $3,$2 cmp $3,0 pow $4,4 mul $3,$4 add $1,$3 lpe mov $0,$1
20.090909
187
0.604072
f74b3740b58c519391c6519d6f5b8a7abe098f86
800
asm
Assembly
oeis/142/A142195.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142195.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142195.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142195: Primes congruent to 31 mod 40. ; Submitted by Jon Maiga ; 31,71,151,191,271,311,431,631,751,911,991,1031,1151,1231,1471,1511,1831,1871,1951,2111,2311,2351,2551,2591,2671,2711,2791,3191,3271,3391,3511,3631,3671,3911,4111,4231,4271,4391,4591,4751,4831,4871,4951,5231,5351,5431,5471,5591,5711,5791,6151,6271,6311,6551,6791,6871,6911,6991,7151,7351,7591,7951,8111,8191,8231,8311,8431,8831,8951,9151,9311,9391,9431,9511,9551,9631,9791,9871,10111,10151,10271,10391,10631,10711,10831,11071,11311,11351,11471,11551,11831,12071,12391,12511,12671,12791,12911,13151 mov $2,$0 pow $2,2 lpb $2 add $1,30 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,10 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 add $0,31
38.095238
498
0.72375
333d86bc77a7d22c336d417c43f205bdb1260464
106
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/pow.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/pow.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/pow.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC pow EXTERN cm48_sccz80_pow defc pow = cm48_sccz80_pow
10.6
26
0.839623
a5a7e13e77ee80b03f168a8933e1953b4d15adfa
7,433
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_4242_525.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_4242_525.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_4242_525.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xebdd, %r13 nop nop nop nop add %r10, %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm3 vmovups %ymm3, (%r13) add $14522, %rcx lea addresses_A_ht+0xd41b, %r15 clflush (%r15) nop nop sub %rcx, %rcx movw $0x6162, (%r15) nop nop xor $39465, %rbx lea addresses_WT_ht+0xc83d, %rcx nop nop nop cmp %r8, %r8 movups (%rcx), %xmm1 vpextrq $1, %xmm1, %r15 nop nop nop nop nop and $57570, %r13 lea addresses_WT_ht+0x53dd, %rsi lea addresses_D_ht+0xad2c, %rdi nop nop nop nop nop cmp $33047, %r15 mov $116, %rcx rep movsl nop nop nop and $34414, %r10 lea addresses_WC_ht+0x19add, %rsi lea addresses_normal_ht+0x197dd, %rdi nop nop and %r10, %r10 mov $31, %rcx rep movsl nop add %rsi, %rsi lea addresses_A_ht+0x7c92, %r13 xor %rbx, %rbx movb $0x61, (%r13) inc %rdi lea addresses_A_ht+0x7f68, %rdi and %r10, %r10 movb $0x61, (%rdi) nop nop nop nop nop xor %rsi, %rsi lea addresses_UC_ht+0xe3dd, %r13 nop nop nop cmp $236, %r15 movups (%r13), %xmm7 vpextrq $0, %xmm7, %rax nop nop and $20814, %r8 lea addresses_D_ht+0x13d7d, %rsi lea addresses_D_ht+0x14fdd, %rdi sub %r13, %r13 mov $77, %rcx rep movsw dec %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rbp push %rdi push %rdx // Store lea addresses_WC+0x1ce8d, %r11 clflush (%r11) nop nop nop nop nop dec %r8 mov $0x5152535455565758, %rbp movq %rbp, %xmm5 movups %xmm5, (%r11) nop nop add %r11, %r11 // Store lea addresses_D+0x14fcd, %r10 nop add %r12, %r12 movb $0x51, (%r10) nop nop nop dec %rdi // Store lea addresses_PSE+0x6fb5, %rdi inc %r12 movw $0x5152, (%rdi) nop nop nop nop nop sub $9896, %r11 // Load lea addresses_normal+0x3397, %rbp xor %rdi, %rdi movb (%rbp), %r12b cmp %rdi, %rdi // Store lea addresses_PSE+0x1ffdd, %r10 nop nop nop nop inc %rdi mov $0x5152535455565758, %rdx movq %rdx, (%r10) nop nop nop cmp %r8, %r8 // Faulty Load lea addresses_PSE+0x1ffdd, %r12 clflush (%r12) nop and %rbp, %rbp movb (%r12), %r10b lea oracles, %r12 and $0xff, %r10 shlq $12, %r10 mov (%r12,%r10,1), %r10 pop %rdx pop %rdi pop %rbp pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': True, 'NT': True, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'58': 4242} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
34.253456
2,999
0.653034
3e952d1b26ea431df599a812c588ec2e2ded22da
6,808
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_1142.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_1142.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_1142.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 %r15 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1d57a, %rsi lea addresses_D_ht+0xb155, %rdi nop nop nop nop sub %r8, %r8 mov $108, %rcx rep movsb nop nop nop nop and %r14, %r14 lea addresses_A_ht+0x173b4, %rcx nop nop nop nop nop xor %r8, %r8 vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rsi cmp %rcx, %rcx lea addresses_WC_ht+0x1227e, %rdx nop nop cmp %rsi, %rsi movb $0x61, (%rdx) nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x16f34, %rdi nop nop dec %r14 mov (%rdi), %rdx nop nop nop nop nop and $64046, %rsi lea addresses_normal_ht+0x15c34, %rsi lea addresses_WT_ht+0x1c734, %rdi nop nop nop nop inc %r15 mov $75, %rcx rep movsq and %rdi, %rdi lea addresses_A_ht+0xeddc, %rsi lea addresses_A_ht+0x33f4, %rdi nop nop nop nop dec %r9 mov $45, %rcx rep movsq nop nop nop nop sub $31399, %rcx lea addresses_A_ht+0x1e5c4, %rsi lea addresses_WC_ht+0x14534, %rdi clflush (%rdi) cmp $32980, %r8 mov $96, %rcx rep movsl nop nop nop nop inc %r9 lea addresses_UC_ht+0x16a34, %r14 nop nop nop nop nop dec %r9 movw $0x6162, (%r14) nop nop inc %rdx lea addresses_D_ht+0x514, %r9 nop nop nop nop nop and $14919, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm3 movups %xmm3, (%r9) nop nop nop sub $32564, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r8 push %r9 push %rbx push %rdi // Store lea addresses_D+0x1e434, %r14 nop nop nop nop nop dec %r9 mov $0x5152535455565758, %r11 movq %r11, %xmm3 movups %xmm3, (%r14) nop nop xor %r9, %r9 // Store lea addresses_normal+0x177dc, %r8 clflush (%r8) nop nop nop nop inc %r10 movb $0x51, (%r8) nop nop nop inc %r9 // Faulty Load lea addresses_WT+0x3434, %r10 nop xor %r11, %r11 mov (%r10), %r14d lea oracles, %r11 and $0xff, %r14 shlq $12, %r14 mov (%r11,%r14,1), %r14 pop %rdi pop %rbx pop %r9 pop %r8 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
33.209756
2,999
0.658343
65ad2408ac6a05526093a65b6f635b76afde0161
2,081
asm
Assembly
kernel/betterPaging.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
5
2015-02-25T01:28:09.000Z
2021-05-22T09:03:04.000Z
kernel/betterPaging.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
38
2015-02-10T18:37:11.000Z
2017-10-03T03:08:50.000Z
kernel/betterPaging.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
2
2016-05-06T22:48:46.000Z
2017-01-12T19:28:49.000Z
betterPaging.init : pusha call betterPaging.createPageDirectory call betterPaging.doIdentityMapAllMemory call betterPaging.enablePaging popa ret betterPaging.enablePaging : pusha mov eax, [Paging.directory] mov cr3, eax mov eax, cr0 or eax, 0x80000000 mov cr0, eax popa ret betterPaging.createPageDirectory : pusha mov al, 0xFE mov ebx, 0x1000 ; should be using Guppy2.mallocAligned call Guppy2.mallocPageAligned ; alloc space for the page directory mov [Paging.directory], ebx test ebx, 0xFFF jnz .haltNotPageAligned mov edx, 1024 .loop : mov dword [ebx], 0x00000002 add ebx, 4 dec edx cmp edx, 0 jg .loop popa ret .haltNotPageAligned : mov eax, SysHaltScreen.KILL mov ebx, .MESSAGE mov ecx, 5 call SysHaltScreen.show .MESSAGE : db "Paging directory not page-aligned.", 0x0 betterPaging.createPageTable : pusha mov al, 0xFE mov ebx, 0x1 call Guppy.malloc ; alloc space for the page directory mov [Paging.newestPage], ebx test ebx, 0xFFF jnz .haltNotPageAligned popa ret .haltNotPageAligned : mov eax, SysHaltScreen.KILL mov ebx, .MESSAGE mov ecx, 5 call SysHaltScreen.show .MESSAGE : db "Paging table not page-aligned.", 0x0 betterPaging.addTableToDirectory : pusha mov eax, [Paging.pageNumber] shl eax, 2 add eax, [Paging.directory] mov ebx, [Paging.newestPage] or ebx, 3 mov [eax], ebx popa ret betterPaging.doIdentityMapAllMemory : pusha xor ebx, ebx mov dword [Paging.pageNumber], 0x0 mov dword [.endThresh], 0x0 .outerLoop : call betterPaging.createPageTable mov eax, [Paging.newestPage] xor ecx, ecx .loop : mov edx, ecx imul edx, 0x1000 or edx, 3 add edx, ebx mov dword [eax], edx add eax, 4 inc ecx cmp ecx, 1024 jl .loop call betterPaging.addTableToDirectory inc dword [Paging.pageNumber] add ebx, 0x1000*1024 cmp ebx, [.endThresh] jne .outerLoop popa ret .endThresh : dd 0x0 Paging.newestPage : dd 0x0 Paging.pageNumber : dd 0x0
17.198347
68
0.691014
fe701eba44d4a386f6bd6a5048eb6ff01cfb27b0
4,006
asm
Assembly
06_KCAL.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
06_KCAL.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
06_KCAL.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
; ************ DESCRIZIONE SOTTOPROGRAMMA ************ Il seguente sottoprogramma denominato KCAL riceve nel registro R0 l’indirizzo della prima cella di una zona di memoria contenente una stringa di caratteri codificati in codice ASCII. La stringa è terminata dal valore 0 (corrispondente al carattere NUL) e rappresenta le tipologie di percorso di corsa campestre che un atleta deve superare, con le seguenti convenzioni: - la lettera “P” indica un tratto di percorso Piano, per superare il quale l’atleta consuma 1 kcaloria; - la lettera “F” indica un Fossato, per superare il quale l’atleta consuma 2 kcalorie; - la lettera “S” indica un tratto di percorso in Salita, per superare il quale l’atleta consuma 4 kcalorie; Il sottoprogramma restituisce nel registro R0 il numero totale di kcalorie necessarie all’atleta per completare la corsa campestre. Nonostante l'utilizzo di altri registri della CPU, il sottoprogramma restituisce il controllo al programma chiamante senza che tali registri risultino alterati. ************ ESEMPIO FUNZIONAMENTO SOTTOPROGRAMMA ************ INPUT R0 punta alla zona di memoria contenente la stringa “PPFPSPFSSP” OUTPUT R0 contiene il valore 21 (5P x 1 + 2F x 2 + 3S x 4) ; ********* PROGRAMMA TEST *********** .orig x3000 LEA R0, stringa ; indirizzo stringa (array) -> in R0 ; ******** SOTTOPROGRAMMA *********** ; KCAL ; nome sottoprogramma ST R1, store1 ; contenuto R1 in cella indirizzo store1 ST R2, store2 ; contenuto R2 in cella indirizzo store2 ST R3, store3 ; contenuto R3 in cella indirizzo store3 ST R4, store4 ; contenuto R4 in cella indirizzo store4 ST R5, store5 ; contenuto R5 in cella indirizzo store5 ST R6, store6 ; contenuto R6 in cella indirizzo store6 LD R2, car_P ; in R2 <- contenuto cella indirizzo car_P LD R3, car_F ; in R3 <- contenuto cella indirizzo car_F LD R4, car_S ; in R4 <- contenuto cella indirizzo car_S AND R6,R6,#0 ; inizializzo a zero R6 (contatore Kcal) ciclo LDR R1,R0,#0 ; in R1 <- valore puntato da R0 BRZ fine ; se trovo zero -> stringa terminata -> fine ADD R0,R0,#1 ; incremento di una cella indirizzo in R0 ADD R5,R1,R2 ; verifico se "P" -> se trovo -> piano BRZ piano ; se risultato è zero ho trovato "P" ADD R5,R1,R3 ; verifico se "F"-> se trovo -> fossato BRZ fossato ; se risultato è zero ho trovato "F" ADD R5,R1,R4 ; verifico se "S" -> se trovo -> salita BRZ salita ; se risultato è zero ho trovato "S" BRNP ciclo ; non ho trovato nè "P", ne "F", nè "S" ; (non previsto espliticamente da specifica) piano ADD R6,R6,#1 ; incremento contatore di 1 Kcal brnzp ciclo ; ritorno a scandire la stringa fossato ADD R6,R6,#2 ; incremento contatore di 2 Kcal brnzp ciclo ; ritorno a scandire la stringa salita ADD R6,R6,#4 ; incremento contatore di 4 Kcal brnzp ciclo ; ritorno a scandire la stringa fine ADD R0,R6,#0 ; contenuto R6 -> in R0 (come da specifica) LD R1, store1 ; contenuto cella indirizzo store 1 -> in R1 LD R2, store2 ; contenuto cella indirizzo store 2 -> in R2 LD R3, store3 ; contenuto cella indirizzo store 3 -> in R3 LD R4, store4 ; contenuto cella indirizzo store 4 -> in R4 LD R5, store5 ; contenuto cella indirizzo store 5 -> in R5 LD R6, store6 ; contenuto cella indirizzo store 6 -> in R6 ; RET ; ritorno da sottoprogramma ; *********** VARIABILI ************ stringa .stringz "PPFPSPFSSP" car_P .fill #-80 ; codice ASCII (negativo) carattere "P" car_F .fill #-70 ; codice ASCII (negativo) carattere "F" car_S .fill #-83 ; codice ASCII (negativo) carattere "S" store1 .blkw 1 ; riservo una cella memoria per contenuto R1 store2 .blkw 1 ; riservo una cella memoria per contenuto R2 store3 .blkw 1 ; riservo una cella memoria per contenuto R3 store4 .blkw 1 ; riservo una cella memoria per contenuto R4 store5 .blkw 1 ; riservo una cella memoria per contenuto R5 store6 .blkw 1 ; riservo una cella memoria per contenuto R6 .end ; fine programma
41.729167
111
0.708937
8ff3bcae2faa227abf52c8e03fb4ff178795abc9
6,530
asm
Assembly
splash.asm
peter-mount/teletextc64
e06b3dbeae10b21ae31d656601dcfe5cdb0e071e
[ "Apache-2.0" ]
1
2021-04-06T12:21:35.000Z
2021-04-06T12:21:35.000Z
splash.asm
peter-mount/teletextc64
e06b3dbeae10b21ae31d656601dcfe5cdb0e071e
[ "Apache-2.0" ]
null
null
null
splash.asm
peter-mount/teletextc64
e06b3dbeae10b21ae31d656601dcfe5cdb0e071e
[ "Apache-2.0" ]
null
null
null
; ********************************************************************** ; Splash loading page ; 1K for holding screen chars for refresh ; ; Copyright 2021 Peter Mount ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. ; ********************************************************************** CPU 0 ; 6502 start = &0400 ; Base of Teletext screen ORG start-2 ; Start 2 bytes earlier so we can inject the load address for the prg file format GUARD start+(25*40) ; Guard against going over teletext screen size EQUW start ; Load address 0400 in prg file format EQUS 134, "departureboards.mobi ",135,"C64",129,"v0.01" EQUB &96, &ff, &ff, &ff, &ff, &ff, &ff, &ff EQUB &ff, &ff, &ff, &ff, &ff, &ff, &bf, &af, &af, &a3, &a3, &a3, &a3, &a3, &a3, &a3 EQUB &a3, &a3, &a3, &af, &af, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff EQUB &96, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &bf, &af, &a7, &a3, &97, &e0, &f0, &bc EQUB &ec, &fb, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &fc, &f4, &f0, &96, &a3 EQUB &af, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &96, &ff, &af, &af, &a7, &a3, &a1, &97 EQUB &f0, &f0, &fc, &fc, &ff, &e7, &f9, &fe, &ff, &af, &af, &af, &a7, &a3, &a3, &a3 EQUB &a3, &a3, &a3, &a3, &a3, &a3, &ab, &ac, &e4, &96, &ef, &ff, &ff, &ff, &ff, &ff EQUB &97, &f0, &f0, &f8, &fc, &fc, &ff, &ff, &af, &af, &af, &a7, &a1, &a3, &a1, &93 EQUB &e0, &f8, &fc, &fc, &fc, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &fc, &fc EQUB &fc, &f4, &96, &eb, &ff, &ff, &ff, &ff, &97, &af, &a7, &a3, &a3, &94, &f0, &f0 EQUB &f0, &f8, &fc, &fc, &9e, &ff, &ff, &93, &ff, &bf, &a3, &a3, &a3, &a3, &96, &f0 EQUB &f0, &f0, &20, &f0, &f0, &93, &a3, &a3, &9f, &a3, &a9, &96, &ff, &ff, &ff, &ff EQUB &95, &e8, &9d, &94, &ff, &9e, &9c, &ff, &ff, &ff, &ff, &ff, &b7, &a3, &ff, &93 EQUB &9f, &96, &fe, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &b0, &ef, &ff, &ff, &ff, &ff EQUB &ff, &ff, &f4, &96, &ef, &ff, &ff, &ff, &95, &ea, &9e, &94, &bf, &af, &ef, &ff EQUB &bf, &af, &af, &ff, &b5, &20, &ff, &93, &9f, &96, &ff, &ff, &ff, &ff, &ff, &ff EQUB &ff, &ff, &b5, &ea, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &b0, &ea, &ff, &ff, &ff EQUB &95, &ea, &ea, &ea, &94, &20, &ea, &ff, &20, &20, &9e, &ff, &b5, &20, &ff, &93 EQUB &9f, &96, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &a5, &20, &ef, &ff, &ff, &ff EQUB &ff, &ff, &ff, &b4, &ea, &ff, &ff, &ff, &95, &ea, &ea, &ea, &94, &a1, &eb, &ff EQUB &a2, &9e, &a3, &ff, &a1, &20, &ff, &93, &9f, &96, &ff, &ff, &ff, &ff, &ff, &ff EQUB &ff, &e5, &b4, &20, &f4, &ef, &ff, &ff, &ff, &ff, &ff, &b5, &ea, &ff, &ff, &ff EQUB &95, &ea, &ea, &ea, &94, &20, &ea, &ff, &20, &20, &20, &ff, &20, &9e, &ff, &93 EQUB &9f, &96, &ff, &ff, &ff, &ff, &ff, &bf, &e1, &fe, &b5, &20, &ff, &fd, &ab, &ff EQUB &ff, &ff, &ff, &b5, &a8, &ff, &ff, &ff, &95, &ea, &fa, &fa, &94, &20, &fa, &ff EQUB &20, &20, &20, &ff, &20, &9e, &ff, &93, &9f, &96, &ef, &ff, &ff, &ff, &bf, &e1 EQUB &ae, &af, &af, &20, &af, &af, &ad, &a2, &af, &af, &af, &a5, &20, &ff, &ff, &ff EQUB &95, &ea, &9d, &94, &ff, &9e, &9c, &ff, &fc, &fc, &fe, &ff, &b0, &e0, &ff, &93 EQUB &fc, &b4, &20, &20, &20, &94, &20, &20, &20, &f0, &f0, &f0, &f0, &f0, &f0, &f0 EQUB &f0, &f0, &9f, &f0, &96, &ff, &ff, &ff, &95, &ea, &9d, &94, &ff, &ff, &9d, &96 EQUB &e0, &ac, &e4, &20, &20, &94, &9d, &93, &ff, &b5, &20, &20, &20, &20, &20, &9e EQUB &97, &aa, &a8, &95, &a9, &20, &97, &a6, &9f, &a2, &a6, &96, &9c, &ff, &ff, &ff EQUB &95, &a2, &9d, &94, &e9, &f8, &f2, &a3, &e6, &9d, &96, &a9, &b8, &a9, &9e, &93 EQUB &ff, &9c, &bc, &ac, &ac, &ac, &ac, &fc, &fc, &fc, &fc, &fc, &fc, &fc, &fc, &bc EQUB &ac, &9f, &ac, &fc, &92, &f0, &f0, &f0, &94, &a3, &ab, &af, &ff, &ff, &9d, &95 EQUB &a2, &a3, &9e, &ab, &94, &ff, &9c, &93, &ff, &ff, &ea, &eb, &a3, &b7, &eb, &ff EQUB &ff, &ff, &ff, &ff, &ff, &ff, &9f, &ff, &a3, &b7, &eb, &ea, &92, &ff, &ff, &ff EQUB &97, &9a, &a2, &a1, &99, &94, &a3, &af, &ef, &ff, &ff, &ff, &ea, &ff, &9e, &93 EQUB &ff, &ff, &9f, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &ff EQUB &ff, &ff, &ff, &b5, &92, &ff, &ff, &ff, &97, &9a, &a9, &a4, &20, &e9, &aa, &b0 EQUB &99, &94, &a3, &ab, &ed, &f3, &9d, &93, &eb, &ff, &9e, &9c, &ff, &9f, &ff, &bf EQUB &a3, &a3, &a3, &a3, &a3, &a3, &a3, &af, &af, &af, &af, &92, &aa, &ff, &ff, &ff EQUB &97, &9a, &e0, &20, &20, &20, &e5, &20, &b5, &20, &e0, &b8, &94, &99, &e6, &e4 EQUB &93, &ad, &ac, &ac, &ac, &ac, &ac, &a4, &97, &20, &b6, &a3, &a3, &93, &e8, &e7 EQUB &e7, &e7, &a7, &92, &e8, &ff, &ff, &ff, &20, &20, &97, &9a, &a8, &20, &9a, &ac EQUB &f0, &20, &b9, &b5, &99, &94, &a8, &b9, &93, &a9, &b9, &b9, &b9, &b9, &b9, &97 EQUB &a1, &ac, &20, &20, &a4, &93, &ea, &b9, &b9, &b1, &92, &fe, &ff, &ff, &ff, &ff EQUB &92, &20, &20, &20, &97, &9a, &a2, &20, &9a, &b3, &20, &9a, &b6, &99, &94, &e6 EQUB &a4, &93, &a2, &a2, &a6, &a6, &a6, &97, &a1, &ac, &93, &e8, &fc, &20, &aa, &af EQUB &ae, &a4, &92, &ff, &ff, &ff, &ff, &ff, &92, &fd, &f4, &20, &20, &20, &20, &20 EQUB &20, &97, &9a, &a4, &a2, &9a, &a2, &ac, &ac, &a4, &20, &20, &20, &20, &20, &20 EQUB &20, &20, &20, &20, &20, &94, &9a, &e8, &99, &92, &af, &ff, &ff, &ff, &ff, &ff EQUB &92, &ff, &ff, &ff, &f4, &b0, &20, &20, &20, &20, &20, &9a, &97, &a1, &20, &b8 EQUB &94, &a8, &e4, &f0, &20, &20, &20, &20, &20, &20, &20, &20, &20, &94, &f0, &a6 EQUB &20, &20, &20, &99, &92, &a3, &a3, &af, &92, &ff, &ff, &ff, &ff, &ff, &fd, &f0 EQUB &20, &20, &20, &20, &20, &20, &9a, &97, &a8, &20, &b0, &94, &a3, &a3, &a3, &a3 EQUB &a3, &a3, &a3, &a3, &a3, &97, &f0, &b0, &20, &20, &20, &20, &20, &20, &20, &20 EQUB &92, &ff, &ff, &ff, &ff, &ff, &ff, &ff, &fd, &f4, &b0, &20, &20, &20, &20, &9a EQUB &20, &97, &a2, &a9, &e4, &b0, &20, &20, &20, &20, &20, &20, &20, &20, &20, &a2 EQUB &a9, &ac, &f0, &20, &20, &20, &20, &20 .end SAVE "splash.prg", start-2, end
71.758242
109
0.447014
ef29ffa33f0d42b28394eefab9e5641dc56a6cc3
177
asm
Assembly
samples/mult.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
samples/mult.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
samples/mult.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
// Multiply two numbers MVI A, 00H // Two numbers MVI B, FFH MVI C, FFH LOOP: ADD B JNC NC INR D NC: DCR C // Count down JNZ LOOP // Loop if not zero HLT
10.411765
32
0.587571
a50bbdbd7ee2d6c826533b52ca45c5e70e7cba1a
9,213
asm
Assembly
Monitor/assembler.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
3
2020-05-10T02:45:52.000Z
2020-08-27T19:30:21.000Z
Monitor/assembler.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
Monitor/assembler.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
; ----------------------------------------------------------------------------- ; 6502 assembler losely based on a reverse engineering of Daryl Rictor's ; SBC OS. It will depend upon the stack, list, and I/O functions defined ; in the other modules. ; Martin Heermance <mheermance@gmail.com> ; ----------------------------------------------------------------------------- ; establish module level scope to hide module locals. .scope ; ; Aliases ; ; ; Data segments ; ; ; Macros ; ; ; Functions ; ; Mini assembler code Assem_Init: tsx ; inx ; inx ; inx ; inx ; stz $0100,x ; jsr version ; show version and ? prompt jmp Assembler ; Asm_Help: lda #<AsmHelptxt ; lower byte - Menu of Commands sta addrptr ; lda #>AsmHelptxt ; upper byte sta addrptr+1 ; bra AsmHelp3 ; ASmHelp4: cmp #$7e ; "~" beq AsmHelp1 ; jsr Output ; bra AsmHelp2 ; AsmHelp1: jsr Print_CR ; AsmHelp2: jsr Inc_addrptr ; AsmHelp3: lda (addrptr) ; bne AsmHelp4 ; jsr Opcode_List ; Assembler: LDX #$FF ; TXS ; init stack stz HexDigCnt ; jsr Input_assem ; ldy #$00 ; beginning of input line lda buffer ; cmp #$0d ; Enter = done bne Asm01 ; JMP Monitor ; exit assembler Asm01: cmp #$3f ; "?" Print Help beq Asm_Help ; cmp #$20 ; space beq Asm_opfetch ; cmp #$3b ; ";" ignore line beq Assembler ; cmp #$4C ; "L" list beq Asm_List ; cmp #$24 ; "$" ignore this bne Asm02 ; iny ; Asm02: STZ Hexdigits ; holds parsed hex STZ Hexdigits+1 ; JSR ParseHexDig ; get Hex Chars LDX Hexdigcnt ; Beq Asm_Err ; cmp #$4C ; "L" do list ??? Beq Asm_List1 ; cmp #$20 ; Space Beq Asm_opfetch ; Asm_Err: tya ; get line pointer tax ; lda #$0a ; LF move down one line jsr output ; jsr PrintXSP ; move to where error occured lda #$5E ; "^" ??? jsr Output ; mark it jsr bell ; bra Assembler ; Asm_list: stz HexDigcnt ; Asm_List1: jsr List_Cmd_1 ; Asm_hop: bra Assembler ; Asm_opfetch: lda HexDigCnt ; beq Asm_op01 ; no address change LDX Hexdigits ; LDA Hexdigits+1 ; STX AddrPtr ; STA AddrPtr+1 ; dey ; Asm_stripSP: iny ; Asm_op01: lda buffer,y ; cmp #$20 ; strip spaces beq Asm_stripSP ; cmp #$0d ; done beq Asm_hop ; cmp #$3b ; ";" comment char done beq Asm_hop ; ldx #$00 ; stx OpcTxtPtr ; sty LineCnt ; Asm_opclp: ldy LineCnt ; lda OpcTxtPtr ; ASL ; adc OpcTxtPtr ; tax ; lda buffer,y ; iny ; cmp OpcTxtData,x ; bne Asm_getnext ; lda buffer,y ; inx ; iny ; cmp OpcTxtData,x ; bne Asm_getnext ; lda buffer,y ; inx ; iny ; cmp OpcTxtData,x ; beq Asm_goodop ; Asm_getnext: ldx OpcTxtPtr ; inx ; stx OpcTxtPtr ; cpx #$4A ; last one? then err bne Asm_opclp Asm_err2: jmp Asm_err Asm_goodop: lda #$00 sta ModeJmp ; dec ModeJmp ; init to FF for () check sta HexDigits ; and Byte holder sta HexDigits+1 ; sta HexDigCnt ; ldx OpcTxtPtr ; cpx #$42 ; bmi Asm_goodSP ; not a 4 chr opcode cpx #$46 bpl Asm_goodSP ; not a 4 chr opcode lda buffer,y ; get next chr iny ; advance pointer cmp #$38 ; bpl Asm_err2 ; not chr "0"-"7" cmp #$30 bmi Asm_err2 ; not chr "0"-"7" ASL ASL ASL ASL sta startaddr+1 ; temp holder for 4th chr opcode LDA #$80 ; flag for Asm_goodSP: ldx buffer,y ; get next operand char iny ; point to next operand chr cpx #$20 ; sp bne Asm_GoodSP2 cmp #$80 bmi Asm_goodSP Asm_goodSP1: ldx OpcTxtPtr ; check if its a BBRx or BBSx opcode cpx #$44 ; bpl Asm_GoodSP ; ldx HexDigCnt ; beq Asm_goodSP ; cmp #$D0 ; already have zp & rel? bpl Asm_GoodSP ; we don't care then cmp #$C0 ; already got a zp address? bpl Asm_Err2 ; then error ldx HexDigits+1 bne Asm_err2 ; not zero page ldx HexDigits stx startaddr ; temp zp value for BBRx & BBSx cmds ora #$40 ; mark zp address fetched and #$F7 ; mask out zp address found bra Asm_goodSP ; get next chr Asm_goodSp2: cpx #$0d ; CR bne Asm_eol Asm_jmp1: jmp Asm_modeSrch Asm_eol: cpx #$3b ; ";" beq Asm_jmp1 pha lda OpcTxtPtr cmp #$46 ; normal opcode if <=45h bmi Asm_opnd1 bne Asm_xtra1 cpx #$24 ; $ .db pseudo-opcode beq Asm_db1 dey Asm_db1: jsr ParseHexDig plx ldx HexDigCnt beq Asm_err2 ; no digits retrieved ldy #$00 lda #$01 PHA lda HexDigits sta (AddrPtr),y jmp Asm_save Asm_xtra1: cmp #$47 ; .dw pseudo-opcode bne Asm_xtra2 cpx #$24 ; $ beq Asm_dw1 dey Asm_dw1: jsr ParseHexDig plx ldx HexDigCnt beq Asm_err1 ; no digits retrieved ldy #$00 lda #$02 PHA lda HexDigits sta (AddrPtr),y lda HexDigits+1 iny sta (AddrPtr),y jmp Asm_save Asm_xtra2: cmp #$48 ; .ds pseudo-opcode bne Asm_err1 jmp Asm_txt Asm_opnd1: pla cpx #$23 ; # 20 bne Asm_parse01 ora #$20 jmp Asm_goodSP Asm_parse01: cpx #$28 ; ( 04 bne Asm_parse02 ora #$04 ldx modeJmp bpl Asm_err1 ; more than one ( inc ModeJmp jmp Asm_goodSP Asm_parse02: cpx #$29 ; ) bne Asm_parse03 ldx ModeJmp bne Asm_err1 ; ) without ( inc ModeJmp jmp Asm_goodSP Asm_parse03: cpx #$2C ; , bne Asm_parse04 ldx buffer,y cpx #$58 ; X 02 bne Asm_parse31 ora #$02 iny jmp Asm_goodSP Asm_parse31: cpx #$59 ; Y 01 beq Asm_parse32 cmp #$80 ; is BBRx or BBSx cmd active? bmi Asm_err1 ; , without X or Y or 4byte opcode jmp Asm_goodSP1 ; save zp address Asm_parse32: ora #$01 iny jmp Asm_goodSP Asm_parse04: cpx #$24 ; $ beq Asm_parse42 ; dey ; not #$(),X,Y so try Hexdig, if not err Asm_parse42: pha jsr ParseHexDig dey ; adjust input line pointer pla ldx HexDigCnt beq Asm_err1 ; no digits retrieved ldx HexDigits+1 bne Asm_parse41 ora #$08 ; <256 08 jmp Asm_goodSP Asm_parse41: ora #$10 ; 2 bytes 10 jmp Asm_goodSP Asm_err1: jmp Asm_Err Asm_ModeSrch: ldx #$0F ; # of modes Asm_ModeS1: cmp Asm_ModeLst,x beq Asm_ModeFnd dex bpl Asm_ModeS1 bra Asm_Err1 ; invalid Mode Asm_ModeFnd: stx Memchr ; save mode cmp #$80 ; is it 4 chr opcode? bmi Asm_opcSrch ;no txa ora startaddr+1 ; adjust the psuedo mode sta Memchr ; set proper mode Asm_opcSrch: ldx #$00 Asm_opcSrch1: lda OpcTxtidx,x cmp OpcTxtPtr bne Asm_srchNxt lda OPCaddmode,x cmp Memchr beq Asm_OpcFnd Asm_srchNxt: inx bne Asm_opcSrch1 lda Memchr ; cmp #$02 ; ZP bne Asm_srchAlt LDA #$01 ; ABS sta Memchr bra Asm_opcSrch Asm_srchAlt: cmp #$01 ; ABS bne Asm_srchA0 LDA #$0A ; REL sta Memchr bra Asm_opcSrch Asm_srchA0: cmp #$0d ; ind zp bne Asm_srchA1 LDA #$0b ; ind Abs sta Memchr bra Asm_opcSrch Asm_SrchA1: cmp #$07 ; zp,y bne Asm_Err1 ; no more modes to try, bad mode err LDA #$09 ; ABS,y sta Memchr bra Asm_opcSrch Asm_OpcFnd: lda Memchr and #$0F ; mask out psuedo modes sta Memchr ; CMP #$0E ; BBR mode? bne Asm_opcFnd0 ; jsr Asm_BRelCalc sta HexDigits+1 lda Startaddr ; sta Hexdigits ; bra Asm_OpcFnd1 ; Asm_OpcFnd0: cmp #$0A ; is Rel Mode? bne Asm_OpcFnd1 jsr Asm_RelCalc ; adjust rel address Asm_OpcFnd1: ldy #$00 txa sta (AddrPtr),y iny ldx Memchr ; lda ModeByteCnt,x PHA ; Save # of bytes cmp #$01 beq Asm_EchoL lda HexDigits sta (AddrPtr),y iny lda ModeByteCnt,x cmp #$02 beq Asm_EchoL lda HexDigits+1 sta (AddrPtr),y Asm_EchoL: lda AddrPtr sta StartAddr lda AddrPtr+1 sta StartAddr+1 jsr List_One Asm_Save: clc PLA adc AddrPtr sta AddrPtr bcc Asm_done inc AddrPtr+1 Asm_done: jmp Assembler Asm_BRelCalc: jsr Asm_relsub sbc #$03 bra Asm_RelC1 Asm_RelSub: sec lda Hexdigits sbc AddrPtr sta Memptr lda Hexdigits+1 sbc AddrPtr+1 sta Memptr+1 sec lda Memptr rts Asm_RelCalc: jsr Asm_relsub sbc #$02 Asm_Relc1: sta Memptr bcs Asm_relC2 dec Memptr+1 Asm_relC2: lda Memptr+1 beq Asm_relC4 ; positive cmp #$FF ; negative bne Asm_txtErr lda Memptr bpl Asm_txtErr Asm_relC3: sta HexDigits rts Asm_relC4: lda Memptr bpl Asm_relC3 Asm_txtErr: jmp Asm_Err Asm_txt:plx ; process the .ds pseudo-opcode dey tya tax ldy #$fe Asm_txt1: iny Asm_txt2: lda buffer,x ; get next operand char inx ; point to next operand chr cmp #$0d ; CR beq Asm_txt9 cmp #$27 ; " bne Asm_txt3 cpy #$ff ; opening " found? bne Asm_txt9 ; no, closing, so done bra Asm_txt1 ; yes, get first text chr Asm_txt3: cpy #$ff ; already found opening "? beq Asm_txt4 ; sta (AddrPtr),y ; yes, save chr bra Asm_txt1 Asm_txt4: cmp #$20 ; no, if not a space, then err beq Asm_txt2 txa tay bra Asm_txtErr Asm_txt9: tya pha jmp Asm_save ; Opcode_List: ldy #$49 ; Number of Opcodes (64) ldx #$00 ; pointer to characters Opcode_List1: txa ; and #$0F ; Print CR after each 16 opcodes bne Opcode_List2 ; not divisible by 16 jsr Print_CR ; Opcode_List2: lda OPCtxtData,x ; get opcode chr data jsr Output ; print 1st char inx ; lda OPCtxtData,x ; jsr Output ; print 2nd char inx ; lda OPCtxtData,x ; jsr Output ; print 3rd char inx ; cpy #$08 ; bpl Opcode_List3 ; not 4 byte code cpy #$04 ; bmi Opcode_list3 ; lda #$78 ; add 'x' jsr output ; for RMBx, SMBx,BBRx, & BBSx Opcode_List3: lda #$20 ; print space jsr Output ; dey ; bne Opcode_List1 ; jsr Print_CR ; one last CR-LF rts ; .scend
20.656951
79
0.654618
38cf1e058978e961bb9f0a6b5ab2d545d5810f65
347
asm
Assembly
oeis/021/A021271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021271: Decimal expansion of 1/267. ; Submitted by Jon Maiga ; 0,0,3,7,4,5,3,1,8,3,5,2,0,5,9,9,2,5,0,9,3,6,3,2,9,5,8,8,0,1,4,9,8,1,2,7,3,4,0,8,2,3,9,7,0,0,3,7,4,5,3,1,8,3,5,2,0,5,9,9,2,5,0,9,3,6,3,2,9,5,8,8,0,1,4,9,8,1,2,7,3,4,0,8,2,3,9,7,0,0,3,7,4,5,3,1,8,3,5 seq $0,42 ; Unary representation of natural numbers. mul $0,3 div $0,89 mod $0,10
38.555556
199
0.590778
b279473beff14ded4a3579561bec63809638cf6e
175
asm
Assembly
constants.asm
manuelmartinezbosch/testing-gb
c5be7c37a5a0f21d1bc5a9c898b6ad8755d00790
[ "MIT" ]
null
null
null
constants.asm
manuelmartinezbosch/testing-gb
c5be7c37a5a0f21d1bc5a9c898b6ad8755d00790
[ "MIT" ]
null
null
null
constants.asm
manuelmartinezbosch/testing-gb
c5be7c37a5a0f21d1bc5a9c898b6ad8755d00790
[ "MIT" ]
null
null
null
INCLUDE "macros.asm" INCLUDE "constants/hardware.inc" INCLUDE "constants/hardware_constants.asm" INCLUDE "constants/misc_constants.asm" INCLUDE "constants/gfx_constants.asm"
25
42
0.828571
a4e3e9820a7beaa06ff176ec030e5e186e1fed1e
6,019
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_234.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_234.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_234.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 %rbp push %rdx push %rsi lea addresses_WC_ht+0x14e33, %r13 clflush (%r13) nop nop nop and %rsi, %rsi vmovups (%r13), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %rbp nop nop nop nop nop and %r15, %r15 lea addresses_A_ht+0x3c1d, %rdx add $2104, %r14 mov $0x6162636465666768, %r13 movq %r13, %xmm5 and $0xffffffffffffffc0, %rdx movaps %xmm5, (%rdx) nop nop sub $56215, %r13 pop %rsi pop %rdx pop %rbp pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %rbp push %rbx push %rcx push %rdi push %rdx // Store mov $0x233, %rdx clflush (%rdx) cmp %rdi, %rdi mov $0x5152535455565758, %r12 movq %r12, %xmm4 vmovups %ymm4, (%rdx) nop nop nop sub $49985, %r14 // Load mov $0xa33, %rbp nop nop nop nop nop inc %r14 mov (%rbp), %rcx dec %rdx // Load lea addresses_normal+0x6033, %r14 inc %rbp mov (%r14), %ecx nop inc %rdx // Store mov $0x1a90530000000f53, %rdi clflush (%rdi) nop nop xor %rbx, %rbx mov $0x5152535455565758, %rcx movq %rcx, %xmm3 movups %xmm3, (%rdi) // Exception!!! nop nop nop nop mov (0), %rbp nop nop xor $60006, %r14 // Store lea addresses_D+0x1993f, %r12 nop add %rcx, %rcx mov $0x5152535455565758, %rdi movq %rdi, %xmm3 movups %xmm3, (%r12) // Exception!!! mov (0), %rcx nop nop nop sub $3822, %rdx // Load lea addresses_normal+0x18533, %rcx nop nop nop nop inc %rdi mov (%rcx), %r12d nop nop nop cmp $60670, %rdi // Faulty Load lea addresses_UC+0x13233, %r14 clflush (%r14) nop inc %rdi movb (%r14), %bl lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_P', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_P', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_NC', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 16}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
36.259036
2,999
0.653265
0ad6f24eddbcb7de487b313b8cc1c791d99bffc5
583
asm
Assembly
oeis/072/A072844.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/072/A072844.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/072/A072844.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A072844: Number of words of length 2n+1 generated by the two letters s and t that reduce to the identity 1 by using the relations sssssss=1, tt=1 and stst=1. The generators s and t along with the three relations generate the 14-element dihedral group D7. ; Submitted by Jon Maiga ; 0,0,0,1,9,55,286,1365,6188,27132,116281,490337,2043275,8439210,34621041,141290436,574274008,2326683921,9402807817,37923176863,152705590518,614111175965,2467123420524,9903167265124,39725253489545 mul $0,2 seq $0,94052 ; Number of walks of length n between two adjacent nodes in the cycle graph C_7.
83.285714
256
0.801029
4a44c99e92db97fc90a3f795284bb09a0ce1c3c3
3,681
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_172.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_172.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_172.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 %r14 push %rax push %rbp // Faulty Load lea addresses_D+0xc35b, %rax cmp %rbp, %rbp mov (%rax), %r14w lea oracles, %r13 and $0xff, %r14 shlq $12, %r14 mov (%r13,%r14,1), %r14 pop %rbp pop %rax pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
92.025
2,999
0.663135
d6c09c358fab98f62d9fcda017199f21b86e696f
12,960
asm
Assembly
src/lib/g5_typo.asm
Prashant446/GFCC
6feb2e95d2a8e2f2499b2cb4a66921e4b769c822
[ "MIT" ]
1
2021-06-11T03:51:00.000Z
2021-06-11T03:51:00.000Z
src/lib/g5_typo.asm
Debarsho/GFCC
0b51d14d8010bc06952984f3554a56d60d3886cb
[ "MIT" ]
null
null
null
src/lib/g5_typo.asm
Debarsho/GFCC
0b51d14d8010bc06952984f3554a56d60d3886cb
[ "MIT" ]
1
2021-06-11T03:50:07.000Z
2021-06-11T03:50:07.000Z
.text .globl g5_printf g5_printf: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $s0, 0($sp) # $s0 = formatter li $s3, 0 # storing offset from $sp for current argument # NOT using C-like return value li $v1, 0 # retval = number of formatters printed so far g5_printf_loop: # process each character in the fmt: # RISKY TO PUT CHARS INTO $a0 lb $s1, 0($s0) # get the next character, and then addu $s0, $s0, 1 # bump up $s0 to the next character. beq $s1, '%', g5_printf_fmt # formatting directive beq $s1, $0, g5_printf_ret # if zero, then go to return g5_printf_putc: move $a0, $s1 # print character li $v0, 11 syscall b g5_printf_loop # loop on. # %c, %s, %b, %o, %d, %ld, %lld, %x, %lx, %u, %lu, %llu, %%, %f, %lf, %Lf, %p g5_printf_fmt: lb $s1, 0($s0) # see what the fmt character is, addu $s0, $s0, 1 # and bump up the pointer. beq $s1, 'd', g5_printf_int # print as a decimal integer. beq $s1, 's', g5_printf_str # print as a string. beq $s1, 'c', g5_printf_char # print as an ASCII char. beq $s1, 'f', g5_printf_float # print as a float beq $s1, 'p', g5_printf_ptr # print as a pointer li $a0, '%' # if not matched, print as it is li $v0, 11 # print character syscall move $a0, $s1 li $v0, 11 # print character syscall b g5_printf_loop # continue g5_printf_char: subu $s3, $s3, 4 # 4 = roundup[ sizeof (char) ] add $s4, $sp, $s3 # $s4 = argument address lb $a0, 0($s4) li $v0, 11 # print character syscall addu $v1, $v1, 1 b g5_printf_loop # conitnue g5_printf_int: subu $s3, $s3, 4 # 4 = roundup[ sizeof (int) ] add $s4, $sp, $s3 # $s4 = argument address lw $a0, 0($s4) li $v0, 1 # print int syscall addu $v1, $v1, 1 b g5_printf_loop # conitnue g5_printf_float: subu $s3, $s3, 4 # 4 = roundup[ sizeof (float) ] add $s4, $sp, $s3 # $s4 = argument address l.s $f12, 0($s4) li $v0, 2 # print float syscall addu $v1, $v1, 1 b g5_printf_loop # conitnue g5_printf_str: # deal with a %s: subu $s3, $s3, 4 # 4 = roundup[ sizeof (char *) ] add $s4, $sp, $s3 # $s4 = argument address lw $a0, 0($s4) li $v0, 4 # print string syscall addu $v1, $v1, 1 b g5_printf_loop # conitnue g5_printf_ptr: subu $s3, $s3, 4 # 4 = roundup[ sizeof (*) ] add $s4, $sp, $s3 # $s4 = argument address lw $a1, 0($s4) # load required pointer value li $v0, 11 # will only print characters throughout li $a0, '0' # print initial "0x" syscall li $a0, 'x' syscall li $s7, 28 # counter g5_printf_ptr_loop: srlv $a0, $a1, $s7 andi $a0, $a0, 0xf # four LSBs bge $a0, 10, g5_printf_ptr_87 addi $a0, $a0, 48 # 0 -> '0' = 48 b g5_printf_ptr_hex g5_printf_ptr_87: addi $a0, $a0, 87 # 10 -> 'a' = 97 g5_printf_ptr_hex: syscall addi $s7, $s7, -4 bge $s7, 0, g5_printf_ptr_loop b g5_printf_loop g5_printf_ret: move $v0, $v1 # will see how to manage return value later lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_putc g5_putc: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $a0, 0($sp) # $s0 = character to print li $v0, 11 # print character syscall g5_putc_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_getc # TODO: bad working of this function -- will troubleshoot later g5_getc: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 40 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register li $v0, 12 syscall # $v0 = char g5_getc_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_scanf g5_scanf: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $s0, 0($sp) # $s0 = formatter li $s3, 0 # storing offset from $sp for current argument li $v1, 0 # retval = number of formatters scanned so far g5_scanf_loop: # process each character in the fmt: # RISKY TO PUT CHARS INTO $a0 lb $s1, 0($s0) # get the next character, and then addu $s0, $s0, 1 # bump up $s0 to the next character. beq $s1, '%', g5_scanf_fmt # formatting directive beq $s1, $0, g5_scanf_ret # if zero, then go to return b g5_scanf_loop # nothing to do, simply go to next char g5_scanf_fmt: lb $s1, 0($s0) # see what the fmt character is, addu $s0, $s0, 1 # and bump up the pointer. beq $s1, 'd', g5_scanf_int # scan as a decimal integer. beq $s1, 's', g5_scanf_str # scan as a string. beq $s1, 'c', g5_scanf_char # scan as an ASCII char. beq $s1, 'f', g5_scanf_float # scan as a float beq $s1, 'p', g5_scanf_ptr # scan as a pointer (but like a string - will need explanation) b g5_scanf_loop # continue if not matched g5_scanf_char: subu $s3, $s3, 4 # 4 = sizeof (address) add $s4, $sp, $s3 # $s4 = argument address lw $s4, 0($s4) # $s4 = destination of contents li $v0, 12 # read character syscall # $v0 = char sw $v0, 0($s4) # store into desired location addu $v1, $v1, 1 b g5_scanf_loop # conitnue g5_scanf_int: subu $s3, $s3, 4 # 4 = sizeof (address) add $s4, $sp, $s3 # $s4 = argument address lw $s4, 0($s4) # $s4 = destination of contents li $v0, 5 # read int syscall # $v0 = int sw $v0, 0($s4) # store into desired location addu $v1, $v1, 1 b g5_scanf_loop # conitnue g5_scanf_float: subu $s3, $s3, 4 # 4 = sizeof (address) add $s4, $sp, $s3 # $s4 = argument address lw $s4, 0($s4) # $s4 = destination of contents li $v0, 6 # read float syscall # $f0 = float s.s $f0, 0($s4) # store into desired location addu $v1, $v1, 1 b g5_scanf_loop # conitnue g5_scanf_str: # deal with a %s: subu $s3, $s3, 4 # 4 = sizeof (address) add $s4, $sp, $s3 # $s4 = argument address lw $s4, 0($s4) # $s4 = destination of contents g5_scanf_str_loop: # CHECK SCAN OF WHITESPACE # RISKY LOOPING - MAY OVERWRITE UNINTENDED MEMORY AREAS li $v0, 12 # get char syscall # \0, \t, \b, \v, \n, [SPACE] (add more ...) beq $v0, 0x00, g5_scanf_str_terminate # \0 (EOF/NULL) beq $v0, 0x08, g5_scanf_str_terminate # \b beq $v0, 0x09, g5_scanf_str_terminate # \t beq $v0, 0x0b, g5_scanf_str_terminate # \v beq $v0, 0x0a, g5_scanf_str_terminate # \n beq $v0, 0x20, g5_scanf_str_terminate # [SPACE] sb $v0, 0($s4) # *($s4) = char addi $s4, $s4, 1 b g5_scanf_str_loop g5_scanf_str_terminate: li $v0, 0 # simply append '\0' at the end sb $v0, 0($s4) addu $v1, $v1, 1 b g5_scanf_loop # conitnue g5_scanf_ptr: # deal with a %p: subu $s3, $s3, 4 # 4 = sizeof (address) add $s4, $sp, $s3 # $s4 = argument address lw $s4, 0($s4) # $s4 = destination of contents li $s6, 0x0 # clear contents - progressively compute pointer g5_scanf_ptr_loop: # RISKY LOOPING - MAY OVERWRITE UNINTENDED MEMORY AREAS li $v0, 12 # get char syscall ble $v0, 47, g5_scanf_ptr_cond_1 bge $v0, 58, g5_scanf_ptr_cond_1 sub $v0, $v0, 48 # $v0 now ranges 0 to 9 b g5_scanf_ptr_append g5_scanf_ptr_cond_1: ble $v0, 64, g5_scanf_ptr_cond_2 bge $v0, 71, g5_scanf_ptr_cond_2 sub $v0, $v0, 55 # $v0 now ranges 10 to 15 b g5_scanf_ptr_append g5_scanf_ptr_cond_2: ble $v0, 96, g5_scanf_ptr_terminate bge $v0, 103, g5_scanf_ptr_terminate sub $v0, $v0, 87 # $v0 now ranges 10 to 15 b g5_scanf_ptr_append g5_scanf_ptr_append: sll $s6, $s6, 4 # shift left by 4 bits (aka multiply by 16) add $s6, $s6, $v0 # add appropriate 4 bits to the cleared space b g5_scanf_ptr_loop g5_scanf_ptr_terminate: sw $s6, 0($s4) # finally store word at desired location b g5_scanf_loop # conitnue g5_scanf_ret: move $v0, $v1 # will see how to manage return value later lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller
37.348703
100
0.569907
c8a6d8b97ceb07820a70d411396675340e3f1451
3,710
asm
Assembly
random_walker.asm
richardwooding/x16-random-walker
425ded723becbafc9cb67021df064f6763c13e56
[ "MIT" ]
null
null
null
random_walker.asm
richardwooding/x16-random-walker
425ded723becbafc9cb67021df064f6763c13e56
[ "MIT" ]
null
null
null
random_walker.asm
richardwooding/x16-random-walker
425ded723becbafc9cb67021df064f6763c13e56
[ "MIT" ]
null
null
null
!symbollist "random_walker.sym" ;================================================= ;================================================= ; ; Headers ; ;------------------------------------------------- !src "vera.inc" !src "system.inc" ;================================================= ; Macros ; ;------------------------------------------------- DEFAULT_SCREEN_ADDR = 0 DEFAULT_SCREEN_SIZE = (128*64)*2 +SYS_HEADER_0801 ;================================================= ;================================================= ; ; main code ; ;------------------------------------------------- start: +SYS_RAND_SEED $34, $56, $fe cli jmp * ;================================================= ;================================================= ; ; IRQ Handlers ; ;------------------------------------------------- ;================================================= ; inc_new_frame ; This is essentially my "do_frame". Several others have been doing this as well. ; Since the IRQ is triggered at the beginning of the VGA/NTSA front porch, we don't ; get the benefit of the entire VBLANK, but it's still useful as a "do this code ; once per frame" function. ;------------------------------------------------- ; INPUTS: Sys_rand_mem ; ;------------------------------------------------- ; MODIFIES: A, X, Sys_rand_mem ; inc_new_frame: inc New_frame +VERA_END_IRQ +SYS_END_IRQ ;================================================= ;================================================= ; ; Libs ; ;------------------------------------------------- !src "system.asm" Palette_decrement_table: ; $X0, $X1, $X2, $X3, $X4, $X5, $X6, $X7, $X8, $X9, $XA, $XB, $XC, $XD, $XE, $XF !byte $00, $00, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0A, $0B, $0C, $0D, $0E ; $0X !byte $00, $00, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0A, $0B, $0C, $0D, $0E ; $1X !byte $10, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $1A, $1B, $1C, $1D, $1E ; $2X !byte $20, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $2A, $2B, $2C, $2D, $2E ; $3X !byte $30, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $3A, $3B, $3C, $3D, $3E ; $4X !byte $40, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $4A, $4B, $4C, $4D, $4E ; $5X !byte $50, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $5A, $5B, $5C, $5D, $5E ; $6X !byte $60, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $6A, $6B, $6C, $6D, $6E ; $7X !byte $70, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $7A, $7B, $7C, $7D, $7E ; $8X !byte $80, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $8A, $8B, $8C, $8D, $8E ; $9X !byte $90, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $9A, $9B, $9C, $9D, $9E ; $AX !byte $A0, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $AB, $AC, $AD, $AE ; $BX !byte $B0, $B0, $B1, $B2, $B3, $B4, $B5, $B6, $B7, $B8, $B9, $BA, $BB, $BC, $BD, $BE ; $CX !byte $C0, $C0, $C1, $C2, $C3, $C4, $C5, $C6, $C7, $C8, $C9, $CA, $CB, $CC, $CD, $CE ; $DX !byte $D0, $D0, $D1, $D2, $D3, $D4, $D5, $D6, $D7, $D8, $D9, $DA, $DB, $DC, $DD, $DE ; $EX !byte $E0, $E0, $E1, $E2, $E3, $E4, $E5, $E6, $E7, $E8, $E9, $EA, $EB, $EC, $ED, $EE ; $FX ;================================================= ;================================================= ; ; Data ; ;------------------------------------------------- ;================================================= ;================================================= ; ; Variables ; ;------------------------------------------------- !src "random_walker_vars.asm" !src "system_vars.asm" +SYS_FOOTER
34.351852
97
0.329111
351484a6317ec663f3e050f2e1c3300f6f9655e3
136
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/nexttoward.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/nexttoward.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/nexttoward.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC _nexttoward EXTERN cm48_sdcciy_nexttoward defc _nexttoward = cm48_sdcciy_nexttoward
13.6
41
0.875
1673212c64f248a117d16662beaaf917aa638a68
416
asm
Assembly
oeis/320/A320465.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/320/A320465.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/320/A320465.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A320465: a(n) = 2^n - (2^(n-1) mod n), where "mod" is the nonnegative remainder operator. ; Submitted by Jon Maiga ; 2,4,7,16,31,62,127,256,508,1022,2047,4088,8191,16382,32764,65536,131071,262130,524287,1048568,2097148,4194302,8388607,16777208,33554416,67108862,134217715,268435448,536870911,1073741822,2147483647,4294967296,8589934588 mov $1,$0 add $1,1 mov $2,2 pow $2,$1 mov $0,$2 div $2,2 mod $2,$1 sub $0,$2
32
220
0.730769
1a37a81e48628bb4e4fd54a23ce3d20ff8973f1d
460
asm
Assembly
print/p010.asm
czfshine/assembly-exercise
95c8be8331810dfd12f50e48109a4b2a8a978853
[ "MIT" ]
1
2018-05-16T13:01:26.000Z
2018-05-16T13:01:26.000Z
print/p010.asm
czfshine/assembly-exercise
95c8be8331810dfd12f50e48109a4b2a8a978853
[ "MIT" ]
null
null
null
print/p010.asm
czfshine/assembly-exercise
95c8be8331810dfd12f50e48109a4b2a8a978853
[ "MIT" ]
null
null
null
; 8086 assembly file ; by:czfshine ; date: 2018/04/12 10:54:02 ;从键盘输入一个有符号的十进制数, ;然后在下一行用16进制形式输出此数 ; The Main Data segment include scan.inc DATA SEGMENT DATA ENDS ;entry code segment CODE SEGMENT ASSUME CS:CODE ,DS:DATA START: ;entry point MOV AX,DATA MOV DS,AX mov di,10 call inputnumbybase cmp di,1 jne put neg bx put: mov si,16 call rebase MOV AH,4CH ;return INT 21H CODE ENDS END START
15.333333
34
0.654348
868d088dbd4b592759ebef417dc911df12772921
565
asm
Assembly
oeis/168/A168607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/168/A168607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/168/A168607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A168607: a(n) = 3^n + 2. ; 3,5,11,29,83,245,731,2189,6563,19685,59051,177149,531443,1594325,4782971,14348909,43046723,129140165,387420491,1162261469,3486784403,10460353205,31381059611,94143178829,282429536483,847288609445,2541865828331,7625597484989,22876792454963,68630377364885,205891132094651,617673396283949,1853020188851843,5559060566555525,16677181699666571,50031545098999709,150094635296999123,450283905890997365,1350851717672992091,4052555153018976269,12157665459056928803,36472996377170786405,109418989131512359211 mov $1,3 pow $1,$0 add $1,2 mov $0,$1
70.625
498
0.860177
bc3f05fb46914f3a02cd3962cebf651daf109551
8,668
asm
Assembly
src/isa/avx/masm/remainder_piby2_new.asm
jepler/aocl-libm-ose
4033e022da428125747e118ccd6fdd9cee21c470
[ "BSD-3-Clause" ]
66
2020-11-04T17:06:10.000Z
2022-03-10T08:03:12.000Z
src/isa/avx/masm/remainder_piby2_new.asm
HollowMan6/aocl-libm-ose
4033e022da428125747e118ccd6fdd9cee21c470
[ "BSD-3-Clause" ]
8
2021-04-18T18:37:53.000Z
2022-03-11T12:49:31.000Z
src/isa/avx/masm/remainder_piby2_new.asm
HollowMan6/aocl-libm-ose
4033e022da428125747e118ccd6fdd9cee21c470
[ "BSD-3-Clause" ]
8
2020-11-09T03:45:01.000Z
2021-11-08T02:25:31.000Z
; ; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. 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. ; 3. Neither the name of the copyright holder nor the names of its contributors ; may be used to endorse or promote products derived from this software without ; specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ; IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, ; INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, ; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, ; OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ; POSSIBILITY OF SUCH DAMAGE. ; ; gas ; xmm0 = x; ; rdi = *r ; rsi = *rr ; rdx = *region ;masm ; xmm0 = x; ; rdx = *r ; r8 = *rr ; r9 = *region include fm.inc fname TEXTEQU <__amd_remainder_piby2> text SEGMENT EXECUTE stack_size EQU 088h save_rdi equ 20h save_rsi equ 30h PUBLIC fname fname PROC FRAME StackAllocate stack_size SaveReg rdi,save_rdi SaveReg rsi,save_rsi .ENDPROLOG mov rdi, rdx mov rsi, r8 mov rdx, r9 ;get the unbiased exponent and the mantissa part of x push rdi lea r9,L__2_by_pi_bits ;xexp = (x >> 52) - 1023 movd r11,xmm0 mov rcx,r11 shr r11,52 sub r11,1023 ;r11 = xexp = exponent of input x ;calculate the last byte from which to start multiplication ;last = 134 - (xexp >> 3) mov r10,r11 shr r10,3 sub r10,134 ;r10 = -last neg r10 ;r10 = last ;load 64 bits of 2_by_pi mov rax,[r9 + r10] mov rdi,rdx ; save address of region since mul modifies rdx ;mantissa of x = ((x << 12) >> 12) | implied bit shl rcx,12 shr rcx,12 ;rcx = mantissa part of input x bts rcx,52 ;add the implied bit as well ;load next 128 bits of 2_by_pi add r10,8 ;increment to next 8 bytes of 2_by_pi movdqu xmm0,[r9 + r10] ;do three 64-bit multiplications with mant of x mul rcx mov r8,rax ;r8 = last 64 bits of multiplication = res1[2] mov r10,rdx ;r10 = carry movd rax,xmm0 mul rcx ;resexp = xexp & 7 and r11,7 ;r11 = resexp = xexp & 7 = last 3 bits psrldq xmm0,8 add rax,r10 ; add the previous carry adc rdx,0 mov r9,rax ;r9 = next 64 bits of multiplication = res1[1] mov r10,rdx ;r10 = carry movd rax,xmm0 mul rcx add r10,rax ;r10 = most significant 64 bits = res1[0] ;find the region ;last three bits ltb = most sig bits >> (54 - resexp)); // decimal point in last 18 bits == 8 lsb's in first 64 bits and 8 msb's in next 64 bits ;point_five = ltb & 01h; ;region = ((ltb >> 1) + point_five) & 3; mov rcx,54 mov rax,r10 sub rcx,r11 xor rdx,rdx ;rdx = sign of x(i.e first part of x * 2bypi) shr rax,cl jnc L__no_point_five ;;if there is carry.. then negate the result of multiplication not r10 not r9 not r8 mov rdx,08000000000000000h ALIGN 16 L__no_point_five: adc rax,0 and rax,3 mov DWORD PTR[rdi],eax ;store region to memory ;calculate the number of integer bits and zero them out mov rcx,r11 add rcx,10 ;rcx = no. of integer bits shl r10,cl shr r10,cl ;r10 contains only mant bits sub rcx,64 ;form the exponent mov r11,rcx ;find the highest set bit bsr rcx,r10 jnz L__form_mantissa mov r10,r9 mov r9,r8 mov r8,0 bsr rcx,r10 ;rcx = hsb sub r11,64 ALIGN 16 L__form_mantissa: add r11,rcx ;for exp of x sub rcx,52 ;rcx = no. of bits to shift in r10 cmp rcx,0 jl L__hsb_below_52 je L__form_numbers ;hsb above 52 mov r8,r10 ;previous contents of r8 not required shr r10,cl ;r10 = mantissa of x with hsb at 52 shr r9,cl ;make space for bits from r10 sub rcx,64 neg rcx ;rvx = no of bits to shift r10 to move those bits to r9 shl r8,cl or r9,r8 ;r9 = mantissa bits of xx jmp L__form_numbers ALIGN 16 L__hsb_below_52: neg rcx mov rax,r9 shl r10,cl shl r9,cl sub rcx,64 neg rcx shr rax,cl or r10,rax shr r8,cl or r9,r8 ALIGN 16 L__form_numbers: add r11,1023 btr r10,52 ;remove the implied bit mov rcx,r11 or r10,rdx ;put the sign shl rcx,52 or r10,rcx ;x is in r10 movd xmm0,r10 ;xmm0 = x movdqa xmm1,xmm0 ;xmm1 = x psrlq xmm1,27 psllq xmm1,27 ;xmm1 = hx movdqa xmm2,xmm0 ;xmm2 = x subsd xmm2,xmm1 ;xmm2 = tx movlhps xmm0,xmm0 ;xmm0 = x,x movlhps xmm2,xmm1 ;xmm2 = hx,tx movdqa xmm1,XMMWORD PTR L__piby2_part3_piby2_lead movdqa xmm3,XMMWORD PTR L__piby2_part1 ;xmm3 = piby2_part1,piby2_part1 movdqa xmm4,XMMWORD PTR L__piby2_part2 ;xmm4 = piby2_part2,piby2_part2 ;form xx xor rcx,rcx bsr rcx,r9 sub rcx,64 ;to shift the implied bit as well neg rcx shl r9,cl shr r9,12 add rcx,52 sub r11,rcx shl r11,52 or r9,rdx or r9,r11 movd xmm5,r9 ;xmm5 = xx mulpd xmm0,xmm1 ;xmm0 = piby2_part3 * x,piby2_lead * x = c mulpd xmm5,xmm1 ;xmm5 = piby2_lead * xx mulpd xmm3,xmm2 ;xmm3 = piby2_part1 * hx,piby2_part1 * tx mulpd xmm4,xmm2 ;xmm4 = piby2_part2 * hx,piby2_part2 * tx pop rdi ;cc = (piby2_part1 * hx - c) + (piby2_part1 * tx) + (piby2_part2 * hx) + (piby2_part2 * tx) + (piby2_lead * xx + piby2_part3 * x) movhlps xmm1,xmm3 ;xmm1 = piby2_part1 * hx movhlps xmm2,xmm4 ;xmm2 = piby2_part2 * hx subsd xmm1,xmm0 ;xmm1 = (piby2_part1 * hx - c) addsd xmm1,xmm3 ;xmm1 = (piby2_part1 * hx - c) + (piby2_part1 * tx) movhlps xmm3,xmm0 ;xmm3 = piby2_part3 * x addsd xmm1,xmm2 ;xmm1 = (piby2_part1 * hx - c) + (piby2_part1 * tx) + (piby2_part2 * hx) addsd xmm3,xmm5 ;xmm3 = (piby2_lead * xx + piby2_part3 * x) addsd xmm1,xmm4 ;xmm1 = (piby2_part1 * hx - c) + (piby2_part1 * tx) + (piby2_part2 * hx) + (piby2_part2 * tx) addsd xmm1,xmm3 ;xmm1 = cc ;r = c + cc ;rr = (c - r) + cc movdqa xmm2,xmm0 addsd xmm2,xmm1 ;xmm2 = r subsd xmm0,xmm2 addsd xmm0,xmm1 ;xmm0 = rr movsd QWORD PTR[rdi],xmm2 movsd QWORD PTR[rsi],xmm0 RestoreReg rsi,save_rsi RestoreReg rdi,save_rdi StackDeallocate stack_size ret fname endp TEXT ENDS data SEGMENT READ CONST SEGMENT ALIGN 16 L__piby2_part3_piby2_lead DQ 03ff921fb54442d18h, 03c91a62633145c06h L__piby2_part1 DQ 03ff921fb50000000h, 03ff921fb50000000h L__piby2_part2 DQ 03e5110b460000000h, 03e5110b460000000h ALIGN 16 L__2_by_pi_bits DB 224 DB 241 DB 27 DB 193 DB 12 DB 88 DB 33 DB 116 DB 53 DB 126 DB 196 DB 126 DB 237 DB 175 DB 169 DB 75 DB 74 DB 41 DB 222 DB 231 DB 28 DB 244 DB 236 DB 197 DB 151 DB 175 DB 31 DB 235 DB 158 DB 212 DB 181 DB 168 DB 127 DB 121 DB 154 DB 253 DB 24 DB 61 DB 221 DB 38 DB 44 DB 159 DB 60 DB 251 DB 217 DB 180 DB 125 DB 180 DB 41 DB 104 DB 45 DB 70 DB 188 DB 188 DB 63 DB 96 DB 22 DB 120 DB 255 DB 95 DB 226 DB 127 DB 236 DB 160 DB 228 DB 247 DB 46 DB 126 DB 17 DB 114 DB 210 DB 231 DB 76 DB 13 DB 230 DB 88 DB 71 DB 230 DB 4 DB 249 DB 125 DB 209 DB 154 DB 192 DB 113 DB 166 DB 19 DB 18 DB 237 DB 186 DB 212 DB 215 DB 8 DB 162 DB 251 DB 156 DB 166 DB 196 DB 114 DB 172 DB 119 DB 248 DB 115 DB 72 DB 70 DB 39 DB 168 DB 187 DB 36 DB 25 DB 128 DB 75 DB 55 DB 9 DB 233 DB 184 DB 145 DB 220 DB 134 DB 21 DB 239 DB 122 DB 175 DB 142 DB 69 DB 249 DB 7 DB 65 DB 14 DB 241 DB 100 DB 86 DB 138 DB 109 DB 3 DB 119 DB 211 DB 212 DB 71 DB 95 DB 157 DB 240 DB 167 DB 84 DB 16 DB 57 DB 185 DB 13 DB 230 DB 139 DB 2 DB 0 DB 0 DB 0 DB 0 DB 0 DB 0 DB 0 CONST ENDS data ENDS END
20.638095
145
0.65713
459e43dd287d1eb033d3fd6d8788ec05261c4fbc
344
asm
Assembly
projects/06/max/MaxL.asm
parrott-kevin/the-elements-of-computing-systems
f2ff84492b59e8789ad91a83180adb06e154e060
[ "MIT" ]
15
2015-05-03T10:35:44.000Z
2021-07-21T08:59:03.000Z
projects/06/max/MaxL.asm
parrott-kevin/the-elements-of-computing-systems
f2ff84492b59e8789ad91a83180adb06e154e060
[ "MIT" ]
null
null
null
projects/06/max/MaxL.asm
parrott-kevin/the-elements-of-computing-systems
f2ff84492b59e8789ad91a83180adb06e154e060
[ "MIT" ]
9
2017-02-18T02:29:20.000Z
2021-11-29T22:49:58.000Z
// This file is part of the materials accompanying the book // "The Elements of Computing Systems" by Nisan and Schocken, // MIT Press. Book site: www.idc.ac.il/tecs // File name: projects/06/max/MaxL.asm // Symbol-less version of the Max.asm program. @0 D=M @1 D=D-M @10 D;JGT @1 D=M @12 0;JMP @0 D=M @2 M=D @14 0;JMP
14.956522
63
0.642442
82a98c2579a14b0b4e290628beded1f6186d3182
3,354
asm
Assembly
include/constant.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
include/constant.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
4
2019-02-27T05:41:26.000Z
2020-07-16T00:24:24.000Z
include/constant.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
;;; eflags carry flag %define eflags_cf 0x0001 ;;; eflags parity flag %define eflags_pf 0x0004 ;;; eflags adjust flag %define eflags_af 0x0010 ;;; eflags zero flag %define eflags_zf 0x0040 ;;; eflags sign flag %define eflags_sf 0x0080 ;;; eflags trap flag %define eflags_tf 0x0100 ;;; eflags interrupt enable flag %define eflags_if 0x0200 ;;; eflags direction flag %define eflags_df 0x0400 ;;; eflags overflow flag %define eflags_of 0x0800 ;;; eflags iopl %define eflags_iopl 0x3000 ;;; eflags nested task flag %define eflags_nt 0x4000 ;;; sign flag & overflow flag %define eflags_sof 0x0880 ;;; carry flag & zero flag %define eflags_czf 0x0041 %ifidn __OUTPUT_FORMAT__, macho64 %include "macho_syscall.asm" %elifidn __OUTPUT_FORMAT__, elf64 %define SYS_write 0x1 %define SYS_mmap 9 %define SYS_clone 56 %define SYS_exit 60 %endif ;; unistd.h %define STDIN 0 %define STDOUT 1 %define STDERR 2 ;; sched.h %define CLONE_VM 0x00000100 %define CLONE_FS 0x00000200 %define CLONE_FILES 0x00000400 %define CLONE_SIGHAND 0x00000800 %define CLONE_VFORK 0x00004000 %define CLONE_PARENT 0x00008000 %define CLONE_THREAD 0x00010000 %define CLONE_NEWNS 0x00020000 %define CLONE_SYSVSEM 0x00040000 %define CLONE_SETTLS 0x00080000 %define CLONE_PARENT_SETTID 0x00100000 %define CLONE_CHILD_CLEARTID 0x00200000 %define CLONE_DETACHED 0x00400000 %define CLONE_UNTRACED 0x00800000 %define CLONE_CHILD_SETTID 0x01000000 %define CLONE_NEWCGROUP 0x02000000 %define CLONE_NEWUTS 0x04000000 %define CLONE_NEWIPC 0x08000000 %define CLONE_NEWUSER 0x10000000 %define CLONE_NEWPID 0x20000000 %define CLONE_NEWNET 0x40000000 %define CLONE_IO 0x80000000 ;; sys/mman.h %define MAP_GROWSDOWN 0x0100 %define MAP_ANONYMOUS 0x0020 %define MAP_PRIVATE 0x0002 %define PROT_READ 0x1 %define PROT_WRITE 0x2 %define PROT_EXEC 0x4 %define THREAD_FLAGS \ CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_PARENT|CLONE_THREAD|CLONE_IO %define STACK_SIZE 4096 %define MAX_LINES 1000000 ; number of output lines before exiting ;;; x86 trap and interrupt constants. ;;; Processor-defined: %define T_DIVIDE 0 // divide error %define T_DEBUG 1 // debug exception %define T_NMI 2 // non-maskable interrupt %define T_BRKPT 3 // breakpoint %define T_OFLOW 4 // overflow %define T_BOUND 5 // bounds check %define T_ILLOP 6 // illegal opcode %define T_DEVICE 7 // device not available %define T_DBLFLT 8 // double fault ;;; %define T_COPROC 9 // reserved (not used since 486) %define T_TSS 10 // invalid task switch segment %define T_SEGNP 11 // segment not present %define T_STACK 12 // stack exception %define T_GPFLT 13 // general protection fault %define T_PGFLT 14 // page fault ;;; %define T_RES 15 // reserved %define T_FPERR 16 // floating point error %define T_ALIGN 17 // aligment check %define T_MCHK 18 // machine check %define T_SIMDERR 19 // SIMD floating point error %define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ %define IRQ_TIMER 0 %define IRQ_KBD 1 %define IRQ_COM1 4 %define IRQ_IDE 14 %define IRQ_ERROR 19 %define IRQ_SPURIOUS 31
27.491803
79
0.714669
06974a10c58d34cda92738ecd54d794b9bcf73be
442
nasm
Assembly
modules/libc/stdio/vsprintf.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
modules/libc/stdio/vsprintf.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
modules/libc/stdio/vsprintf.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------- ; vsprintf.nasm - routines for printing formatted data. ;------------------------------------------------------------------------------- module libc.stdio.vsprintf exportproc _printf section .text ; int printf(const char *fmt, ...); proc _printf arg fmt prologue epilogue ret endp ;---------------------------------------------------------------
24.555556
80
0.352941
f9c81f9fa227302b8ffe266e20db5762a3ef2c53
5,289
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_917.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_917.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_917.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 %r12 push %r13 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi // Load lea addresses_UC+0xa427, %rbx nop xor $34785, %rax movb (%rbx), %r12b sub %rbp, %rbp // Store lea addresses_WC+0x1c238, %rbx nop nop nop inc %r9 mov $0x5152535455565758, %rax movq %rax, %xmm5 vmovups %ymm5, (%rbx) nop nop xor $48155, %r9 // REPMOV lea addresses_UC+0x38b7, %rsi lea addresses_UC+0x100f7, %rdi nop nop cmp %rax, %rax mov $52, %rcx rep movsb nop nop nop nop cmp %rsi, %rsi // Store lea addresses_A+0x8a3f, %rcx nop nop sub $31164, %rdi movl $0x51525354, (%rcx) nop nop and $13320, %rdi // Store lea addresses_UC+0x15401, %r9 nop nop nop lfence movb $0x51, (%r9) nop nop dec %rbp // Store lea addresses_UC+0x85ff, %rbx dec %rax mov $0x5152535455565758, %rbp movq %rbp, %xmm7 vmovups %ymm7, (%rbx) nop nop nop nop nop xor %r9, %r9 // Faulty Load lea addresses_A+0xa8f7, %r9 nop nop nop nop cmp $8960, %rax mov (%r9), %rdi lea oracles, %r10 and $0xff, %rdi shlq $12, %rdi mov (%r10,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_UC'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 1, '35': 21828} 00 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
41.97619
2,999
0.654377
a5e270a941224f92b3f7ba782f7d440ca3e1d181
780
asm
Assembly
Kernel/interruptions/syscallHandler.asm
gbaliarda/TP_ARQUI
1c4f29807eb3e0eb5ea792c5dc3ea9e277046381
[ "BSD-3-Clause" ]
null
null
null
Kernel/interruptions/syscallHandler.asm
gbaliarda/TP_ARQUI
1c4f29807eb3e0eb5ea792c5dc3ea9e277046381
[ "BSD-3-Clause" ]
null
null
null
Kernel/interruptions/syscallHandler.asm
gbaliarda/TP_ARQUI
1c4f29807eb3e0eb5ea792c5dc3ea9e277046381
[ "BSD-3-Clause" ]
null
null
null
GLOBAL syscallHandler EXTERN loadSysNum EXTERN syscallDispatcher SECTION .text ; en rax viene el numero de syscall a ejecutar syscallHandler: pushState push rdi mov rdi, rax call loadSysNum pop rdi call syscallDispatcher popState iretq ; ret especifico para volver de interrupciones %macro pushState 0 ; push rax ; no pusheamos rax porque se usa luego para retornar en la syscall push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popState 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rbp pop rdx pop rcx pop rbx ; pop rax %endmacro
14.716981
83
0.675641
6930c1e4134a02321193c25b13949f2978f77c0c
466
asm
Assembly
programs/oeis/055/A055949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/055/A055949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/055/A055949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A055949: n - reversal of base 4 digits of n (written in base 10). ; 0,0,0,0,3,0,-3,-6,6,3,0,-3,9,6,3,0,15,0,-15,-30,15,0,-15,-30,15,0,-15,-30,15,0,-15,-30,30,15,0,-15,30,15,0,-15,30,15,0,-15,30,15,0,-15,45,30,15,0,45,30,15,0,45,30,15,0,45,30,15,0,63,0,-63,-126,51,-12,-75,-138,39,-24,-87,-150,27,-36,-99,-162,75,12,-51,-114,63,0,-63,-126,51,-12,-75,-138,39,-24,-87,-150,87,24,-39,-102 mov $1,$0 seq $1,30103 ; Base 4 reversal of n (written in base 10). sub $0,$1
66.571429
318
0.592275
ab778b2b82c2835adfc2647e9ecc27dae4353d56
649
asm
Assembly
programs/oeis/138/A138902.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/138/A138902.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/138/A138902.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A138902: a(n) = d!, where d is the number of digits in n. ; 1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6 mov $2,$0 cmp $2,0 add $0,$2 log $0,10 mul $0,4 pow $0,2 div $0,12 add $0,1 mov $1,$0
49.923077
501
0.516179
e469ed43d8dee5a8c95a89f2eb79eed8ca7ffcea
693
asm
Assembly
oeis/145/A145695.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/145/A145695.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/145/A145695.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A145695: Numbers X such that there exists Y in N with X^2=111*Y^2+37. ; Submitted by Jon Maiga ; 74,43586,25715666,15172199354,8951571903194,5281412250685106,3116024276332309346,1838449041623811829034,1084681818533772646820714,639960434485884237812392226,377575571664853166536664592626,222768947321828882372394297257114,131433301344307375746546098717104634,77545425024194029861579825848794476946,45751669330973133310956350704690024293506,26993407359849124459434385335941265538691594,15926064590641652457932976391854641977803746954,9396351115071215101055996636808902825638672011266 mov $2,1 mov $3,1 lpb $0 sub $0,1 mov $1,$3 mul $1,588 add $2,$1 add $3,$2 lpe mov $0,$2 mul $0,74
43.3125
485
0.852814
f8a4199d4c562002520c2a6adb380ce8e864e78c
1,171
asm
Assembly
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/zx_00_output_rom_rst/zx_00_output_rom_rst_ochar_msg_putc_bin.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/zx_00_output_rom_rst/zx_00_output_rom_rst_ochar_msg_putc_bin.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/zx_00_output_rom_rst/zx_00_output_rom_rst_ochar_msg_putc_bin.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_character_output PUBLIC zx_00_output_rom_rst_ochar_msg_putc_bin zx_00_output_rom_rst_ochar_msg_putc_bin: ; derived driver is in text mode ; ; enter : c = char ; ; can use : af, bc, de, hl, af' bit 4,(ix+6) jr z, putchar ; if not processing crlf ld a,c cp CHAR_CR ret z ; ignore cr cp CHAR_LF jr nz, putchar ; send code 13 ld c,13 putchar: ; c = char push ix push iy exx push bc push de push hl ld bc,__IO_NEXTREG_REG ld a,__REG_MMU6 out (c),a inc b in l,(c) dec b inc a out (c),a inc b in h,(c) push hl ; save hl = mmu7,6 exx push bc push de push hl ld a,c IF __SDCC_IY ld ix,__SYS_IY ELSE ld iy,__SYS_IY ENDIF rst 0x10 pop hl pop de pop bc exx pop hl ; hl = mmu7,6 ld a,l mmu6 a ld a,h mmu7 a pop hl pop de pop bc exx pop iy pop ix or a ret
10.842593
55
0.508113
ee68a6155bfbabacbeca26945816a281c8091475
520
asm
Assembly
programs/oeis/270/A270545.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/270/A270545.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/270/A270545.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A270545: Number of equilateral triangle units forming perimeter of equilateral triangle. ; 1,4,9,15,21,27,33,39,45,51,57,63,69,75,81,87,93,99,105,111,117,123,129,135,141,147,153,159,165,171,177,183,189,195,201,207,213,219,225,231,237,243,249,255,261,267,273,279,285,291,297,303,309,315,321,327,333,339,345,351,357,363,369,375,381,387,393,399,405,411,417,423,429,435,441,447,453,459,465,471,477,483,489,495,501,507,513,519,525,531,537,543,549,555,561,567,573,579,585,591 mul $0,3 mov $1,$0 trn $0,4 add $0,$1 add $0,1
57.777778
380
0.730769
88d9538b0cca9d4d2fb960fba39fe96261ef9e87
12,283
asm
Assembly
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fd_mul16.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fd_mul16.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fd_mul16.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
;****************************************************************************** ;* FD_MUL16.ASM - 16 BIT STATE - * ;* * ;* Copyright (c) 1996 Texas Instruments Incorporated * ;* http://www.ti.com/ * ;* * ;* Redistribution and use in source and binary forms, with or without * ;* modification, are permitted provided that the following conditions * ;* are met: * ;* * ;* Redistributions of source code must retain the above copyright * ;* notice, this list of conditions and the following disclaimer. * ;* * ;* Redistributions in binary form must reproduce the above copyright * ;* notice, this list of conditions and the following disclaimer in * ;* the documentation and/or other materials provided with the * ;* distribution. * ;* * ;* Neither the name of Texas Instruments Incorporated nor the names * ;* of its contributors may be used to endorse or promote products * ;* derived from this software without specific prior written * ;* permission. * ;* * ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * ;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * ;* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * ;* 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. * ;* * ;****************************************************************************** ;**************************************************************************** ;* FD$MUL - MULTIPLY TWO IEEE 754 FORMAT DOUBLE PRECISION FLOATING ;* POINT NUMBERS. ;**************************************************************************** ;* ;* o INPUT OP1 IS IN r0:r1 ;* o INPUT OP2 IS IN r2:r3 ;* o RESULT IS RETURNED IN r0:r1 ;* o INPUT OP2 IN r2:r3 IS NOT DESTROYED ;* ;* o SIGNALLING NOT-A-NUMBER (SNaN) AND QUIET NOT-A-NUMBER (QNaN) ;* ARE TREATED AS INFINITY ;* o OVERFLOW RETURNS +/- INFINITY ;* (0x7ff00000:00000000) or (0xfff00000:00000000) ;* o UNDERFLOW RETURNS ZERO (0x00000000:00000000) ;* o DENORMALIZED NUMBERS ARE TREATED AS UNDERFLOWS ;* o ROUNDING MODE: ROUND TO NEAREST ;* ;* o IF THE OPERATION INVOLVES INFINITY AS AN INPUT, UNLESS THE OTHER INPUT ;* IS ZERO, THE RESULT IS INFINITY WITH THE SIGN DETERMINED IN THE USUAL ;* FASHION. ;* ;**************************************************************************** ;* ;* +------------------------------------------------------------------+ ;* | DOUBLE PRECISION FLOATING POINT FORMAT | ;* | 64-bit representation | ;* | 31 30 20 19 0 | ;* | +-+----------+---------------------+ | ;* | |S| E | M1 | | ;* | +-+----------+---------------------+ | ;* | | ;* | 31 0 | ;* | +----------------------------------+ | ;* | | M2 | | ;* | +----------------------------------+ | ;* | | ;* | <S> SIGN FIELD : 0 - POSITIVE VALUE | ;* | 1 - NEGATIVE VALUE | ;* | | ;* | <E> EXPONENT FIELD: 0000000000 - ZERO IFF M == 0 | ;* | 0000000001..1111111110 - EXPONENT VALUE(1023 BIAS) | ;* | 1111111111 - INFINITY | ;* | | ;* | <M1:M2> MANTISSA FIELDS: FRACTIONAL MAGNITUDE WITH IMPLIED 1 | ;* +------------------------------------------------------------------+ ;* ;**************************************************************************** .global __TI_umull .thumb .if __TI_EABI_ASSEMBLER ; ASSIGN EXTERNAL NAMES BASED ON .asg __aeabi_dmul, __TI_FD$MUL ; RTS BEING BUILT .else .clink .asg FD$MUL, __TI_FD$MUL .endif .global __TI_FD$MUL .if .TMS470_BIG_DOUBLE rp1_hi .set r0 ; High word of regpair 1 rp1_lo .set r1 ; Low word of regpair 1 rp2_hi .set r2 ; High word of regpair 2 rp2_lo .set r3 ; Low word of regpair 2 res1 .set r0 ; OVERLOADED WITH INPUT #1 op1e .set r1 ; OVERLOADED WITH INPUT #1 op1m1 .set r2 ; OVERLOADED WITH INPUT #2 op1m2 .set r3 ; OVERLOADED WITH INPUT #2 .else rp1_hi .set r1 ; High word of regpair 1 rp1_lo .set r0 ; Low word of regpair 1 rp2_hi .set r3 ; High word of regpair 2 rp2_lo .set r2 ; Low word of regpair 2 res1 .set r1 ; OVERLOADED WITH INPUT #1 op1e .set r0 ; OVERLOADED WITH INPUT #1 op1m1 .set r3 ; OVERLOADED WITH INPUT #2 op1m2 .set r2 ; OVERLOADED WITH INPUT #2 .endif tmp .set r4 op2m1 .set r5 op2m2 .set r6 op2e .set r7 res2 .set r7 ; OVERLOADED WITH op2e .if __TI_ARM9ABI_ASSEMBLER | __TI_EABI_ASSEMBLER .thumbfunc __TI_FD$MUL .endif .if __TI_ARM_V6M0__ __TI_FD$MUL: .asmfunc stack_usage(40) ; V6M0 needs a little more stack .else ; space to work in thumb mode. __TI_FD$MUL: .asmfunc stack_usage(32) .endif .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ PUSH {r2-r7, lr} ; .else PUSH {r2-r7} ; PUSH THE LR SEPARATELY SO IT CAN BE PUSH {lr} ; POPPED FIRST. .endif MOVS tmp, rp1_hi ; SET THE SIGN OF THE RESULT EORS tmp, rp2_hi ; LSRS tmp, tmp, #31 ; LSLS tmp, tmp, #31 ; PUSH {tmp} ; LSLS op2m1, rp2_hi, #11 ; BUILD INPUT #2 MANTISSA LSRS tmp, rp2_lo, #21 ; ORRS op2m1, tmp ; LSLS op2m2, rp2_lo, #11 ; LSLS op2e, rp2_hi, #1 ; BUILD INPUT #2 EXPONENT LSRS op2e, op2e, #21 ; BEQ unfl ; MOVS tmp, #0x1 ; LSLS tmp, tmp, #31 ; SET IMPLIED ONE IN MANTISSA ORRS op2m1, tmp ; MOVS tmp, #0x7 ; LSLS tmp, tmp, #8 ; ADDS tmp, #0xFF ; CMP op2e, tmp ; IF op2e == 0x7FF, THEN OVERFLOW BEQ ovfl ; LSLS op1m1, rp1_hi, #11 ; BUILD INPUT #1 MANTISSA LSRS tmp, rp1_lo, #21 ; ORRS op1m1, tmp ; LSLS op1m2, rp1_lo, #11 ; LSLS op1e, rp1_hi, #1 ; BUILD INPUT #1 EXPONENT LSRS op1e, op1e, #21 ; BEQ unfl ; MOVS tmp, #0x1 ; SET IMPLIED ONE IN MANTISSA LSLS tmp, tmp, #31 ; ORRS op1m1, tmp ; MOVS tmp, #0x7 ; LSLS tmp, tmp, #8 ; ADDS tmp, #0xFF ; CMP op1e, tmp ; IF op1e == 0x7FF, THEN OVERFLOW BEQ ovfl ; ADDS op1e, op1e, op2e ; ADD EXPONENTS .if __TI_ARM_V6M0__ PUSH {op1e} ; Store this off since we need the register MOVS r0, op1m1 ; Setup arguments for the first UMULL MOVS r1, op2m1 BL __TI_umull ; r0:r1 = r0 * r1 MOVS res2, r1 ; Move the results around PUSH {r0} ; Store this off since we need the register MOVS r0, op1m1 ; Again... MOVS r1, op2m2 BL __TI_umull MOVS op1m1, r0 MOVS tmp, r1 MOVS r0, op1m2 ; Again... MOVS r1, op2m2 BL __TI_umull MOVS op2m2, r0 ; We only need the high word MOVS r0, op1m2 ; Again... MOVS r1, op2m1 BL __TI_umull MOVS op2m1, r0 ADDS op2m2, r1 ; The low word gets added into op2m2 MOVS op1m2, #0 .if .TMS470_BIG_DOUBLE POP {res1, op1e} ; Grab that stuff we stored off .else POP {res1} ; Grab that stuff we stored off POP {op1e} ; Grab that stuff we stored off .endif .else NOP ; BX pc ; CHANGE TO 32 BIT STATE FOR MULTIPLY NOP ; .arm ; MULTIPLY THE MANTISAE: op1m * op2m => res1:res2 UMULL res2, res1, op1m1, op2m1; op1m1*op2m1 =>res1:res2: 0 : 0 UMULL tmp, op1m1, op2m2, op1m1; op1m1*op2m2 => 0 :op1m1:tmp : 0 UMULL lr, op2m2, op1m2, op2m2 ; op1m2*op2m2 => 0 : 0 :op2m2: lr UMULL lr, op2m1, op1m2, op2m1 ; op1m2*op2m1 => 0 :op2m1: lr : 0 ADDS op2m2, op2m2, lr ; 0 : 0 :op2m2: 0 MOV op1m2, #0x0 ADD lr, pc, #0x1 ; CHANGE BACK TO 16 BIT STATE BX lr ; .thumb .endif ADCS op2m1, op1m2 ; 0 :op2m1: 0 : 0 ADCS res1, op1m2 ; res1: 0 : 0 : 0 ADDS tmp, op2m2 ; 0 : 0 : tmp : 0 ADCS op2m1, op1m2 ; 0 :op2m1: 0 : 0 ADCS res1, op1m2 ; res1: 0 : 0 : 0 MOVS tmp, #0x80 ; SETUP 1/2 CONSTANT FOR ROUNDING LSLS tmp, tmp, #2 ; ADDS op1m1, op2m1 ; 0 :op1m1: 0 : 0 ADCS res1, op1m2 ; res1: 0 : 0 : 0 ADDS res2, op1m1 ; 0 :res2: 0 : 0 ADCS res1, op1m2 ; res1: 0 : 0 : 0 BPL $1 ; IF THE MANTISSA WILL NOT NEED LSLS tmp, tmp, #0x1 ; ALIGNMENT, ADJUST 1/2 CONSTANT. $1: ADDS res2, res2, tmp ; ADD 1/2 FOR ROUNDING ADCS res1, op1m2 ; BMI $2 ; ALIGN THE RESULT LSLS res2, res2, #1 ; ADCS res1, res1 ; B $3 ; $2: ADDS op1e, op1e, #0x1 ; $3: MOVS tmp, #0x3 ; LSLS tmp, tmp, #8 ; ADDS tmp, #0xFF ; SUBS op1e, op1e, tmp ; ADJUST FOR BIAS BLE unfl ; AND CHECK FOR UNDERFLOW ADDS tmp, tmp, tmp ; CMP op1e, tmp ; AND CHECK FOR EXPONENT OVERFLOW BHI ovfl ; LSLS op1m1, op1e, #20 ; ALIGN EXPONENT INTO op1m1 LSRS rp1_lo, res2, #11 ; REPACK LOW PART OF RESULT LSLS tmp, res1, #21 ; ORRS rp1_lo, tmp ; LSLS rp1_hi, res1, #1 ; REPACK HIGH PART OF RESULT LSRS rp1_hi, rp1_hi, #12 ; ORRS rp1_hi, op1m1 ; REPACK THE EXPONENT INTO rp1_hi POP {tmp} ; ORRS rp1_hi, tmp ; REPACK THE SIGN INTO rp1_hi .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ POP {r2-r7, pc} ; .else POP {r2} MOV lr, r2 POP {r2-r7} BX lr .endif ovfl: MOVS rp1_lo, #0 ; IF OVERFLOW, RETURN +/- INFINITY MOVS rp1_hi, #0xFF LSLS rp1_hi, rp1_hi, #3 ADDS rp1_hi, rp1_hi, #7 LSLS rp1_hi, rp1_hi, #20 POP {tmp} ; ORRS rp1_hi, tmp ; .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ POP {r2-r7, pc} ; .else POP {r2} MOV lr, r2 POP {r2-r7} BX lr .endif unfl: MOVS rp1_hi, #0 ; UNDERFLOW, SO RETURN ZERO MOVS rp1_lo, #0 ; ADD sp, #4 ; .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ POP {r2-r7, pc} ; .else POP {r2} MOV lr, r2 POP {r2-r7} BX lr .endif .endasmfunc .end
36.233038
79
0.477082
99209db9c1a647c955380063e95a3708784b965f
68
asm
Assembly
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc1_derefidx_vbuyy_plus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc1_derefidx_vbuyy_plus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc1_derefidx_vbuyy_plus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
clc lda {c1},y adc #{c2} sta {c1},x lda {c1}+1,y adc #0 sta {c1}+1,x
9.714286
12
0.558824
c70ce71d2e52a056954b4c6611f2a89b0f261321
129
asm
Assembly
AsmSamples/lods/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
1
2021-12-23T19:05:25.000Z
2021-12-23T19:05:25.000Z
AsmSamples/lods/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
null
null
null
AsmSamples/lods/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
null
null
null
;lods example mov si, 1ah mov [si], 1234h lodsb ; fills al mov si, 1ah mov [si-2], 1234h lodsw ; fills ax
16.125
19
0.55814
1703932da5125da4a792bd562f8a35b9fc2f03ec
335
asm
Assembly
programs/oeis/046/A046998.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/046/A046998.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/046/A046998.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A046998: a(n) = 1 - (7/6)*n + (2/3)*n^3 + (1/2)*n^4. ; 1,1,12,56,167,391,786,1422,2381,3757,5656,8196,11507,15731,21022,27546,35481,45017,56356,69712,85311,103391,124202,148006,175077,205701,240176,278812,321931,369867,422966,481586,546097,616881 mov $1,$0 seq $1,103220 ; a(n) = n*(n+1)*(3*n^2+n-1)/6. sub $1,$0 mov $0,$1 add $0,1
37.222222
193
0.656716
1e8b2c80781cbc8b7578814616bcd1a549c6c579
552
asm
Assembly
oeis/013/A013766.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/013/A013766.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/013/A013766.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A013766: 20^(3n+1). ; Submitted by Christian Krause ; 20,160000,1280000000,10240000000000,81920000000000000,655360000000000000000,5242880000000000000000000,41943040000000000000000000000,335544320000000000000000000000000,2684354560000000000000000000000000000,21474836480000000000000000000000000000000,171798691840000000000000000000000000000000000,1374389534720000000000000000000000000000000000000,10995116277760000000000000000000000000000000000000000,87960930222080000000000000000000000000000000000000000000 mov $2,8000 pow $2,$0 mov $0,$2 mul $0,20
61.333333
454
0.905797
fe43622b81e4ce6861cab1db0a9e4e7370d0d333
5,233
asm
Assembly
string.asm
Trinitek/Turtle
45057e7dd9ced932769b82d0d20c5dcfc2b5d441
[ "MIT" ]
5
2015-08-19T15:56:23.000Z
2018-05-11T18:25:40.000Z
string.asm
Trinitek/Turtle
45057e7dd9ced932769b82d0d20c5dcfc2b5d441
[ "MIT" ]
null
null
null
string.asm
Trinitek/Turtle
45057e7dd9ced932769b82d0d20c5dcfc2b5d441
[ "MIT" ]
null
null
null
; String library ; NAMESPACE: "string" string: ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### MACRO: "putChar" ; Places a character at the current cursor position and advances the cursor ; ; param: ; al = character to display at current position ; destroyed: ; ah macro string.putChar { mov ah, 0x0E int 0x10 } ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### PROC: "teletype" ; Prints the string using the TTY interrupt feature, scrolling and advancing the cursor as needed. ; ; param: ; si = pointer to string, null terminated macro string.teletype { .teletype: push ax push si mov ah, 0x0E ; 0x10 - teletype output .teletype.nextChar: mov al, [si] cmp al, 0 ; if char==0 then return jz .teletype.return int 0x10 ; write to screen inc si ; next character jmp .teletype.nextChar .teletype.return: pop si pop ax ret } ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### PROC: "match" ; Determines if the two strings are identical. ; ; param: ; si = pointer to primary string to be compared against, null terminated ; di = pointer to secondary string to be compared, null terminated ; return: ; (flag) carry = set if match, clear if not. macro string.match { .match: push ax push si push di .match.nextChar: mov ah, [si] mov al, [di] cmp ah, al ; if char1 != char2 then goto notEqual jne .match.notEqual cmp al, 0 ; elseif char2==0 then goto equal (end of strings) je .match.equal inc si ; else next character inc di ; ... jmp .match.nextChar .match.notEqual: clc jmp .match.return .match.equal: stc jmp .match.return .match.return: pop di pop si pop ax ret } ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### PROC: "getLength" ; Determines the length of the string in number of characters, excluding the null termination character ; ; param: ; si = pointer to string, null terminated ; return: ; al = number of characters macro string.getLength { .getLength: push si mov al, 0 .getLength.nextChar: mov ah, [si] cmp ah, 0 ; if char==0 then goto return je .getLength.return inc al ; else charCount++ inc si ; next character jmp .getLength.nextChar .getLength.return: pop si ret } ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### PROC: "reverse" ; Reverses the string, so that the last character is first and vice versa. ; ; param: ; si = pointer to string, null terminated ; di = pointer to new string destination ; return ; di = pointer to new string, null terminated macro string.reverse { .reverse: push ax push cx push si push di xor cx, cx ; clear cx for use as for-loop counter .reverse.gotoEnd: ; count number of characters in source string, excluding null terminator mov al, [si] cmp al, 0 je .reverse.nextChar.setup inc si inc cl jmp .reverse.gotoEnd .reverse.nextChar.setup: dec si ; character before null terminator .reverse.nextChar: ; for (i=getLength(si); i>0; i--) mov al, [si] ; [di] <== [si] mov [di], al dec si ; next character inc di loop .reverse.nextChar .reverse.appendTerminator: mov [di], byte 0 ; add null terminator to the end .reverse.return: pop di pop si pop cx pop ax ret } ; ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ; ### PROC: "numberToString" ; Translates a number into a null terminated string value ; ; param: ; ax = number ; di = pointer to new string destination ; return: ; di = pointer to new string, null terminated macro string.numberToString { .numberToString: push ax push bx push dx push si push di mov bx, 10 ; constant used to divide by mov si, .numberToString.rawString ; sandbox area for reversing string before returning it xor dx, dx ; clear dx for doubleword division cmp ax, 0 ; if (number==0) then goto numberIsZero jz .numberToString.numberIsZero jmp .numberToString.extractLeastSignificant ; else goto extractLeastSignificant .numberToString.numberIsZero: mov [di], byte '0' ; set string to '0' inc di mov [di], byte 0 ; append null terminator ... and return jmp .numberToString.return .numberToString.extractLeastSignificant: div bx ; ax=ax/10, dx=remainder -- remainder will be the least significant number off the rest of it add dl, 48 ; convert single digit remainder into ASCII code mov [si], dl ; write character to string inc si mov dl, 0 ; sanitize dl before dividing again cmp ax, 0 ; a quotient of 0 means that there are no more numbers to extract jz .numberToString.flipString jmp .numberToString.extractLeastSignificant .numberToString.flipString: mov [si], byte 0 ; append null terminator mov si, .numberToString.rawString ; si = pointer to sandbox area, di = destination passed by program call .reverse ; reverse it! .numberToString.return: pop di pop si pop dx pop bx pop ax ret .numberToString.rawString: db 6 dup (0) }
22.951754
107
0.612459
f44582799a3421df1e072a00896ae7469f1f2ef1
1,310
asm
Assembly
binutils-2.21.1/gcc-4.5.1/libgcc/config/moxie/crti.asm
cberner12/xv6
53c4dfef0d48287ca0d0f9d27eab7a6ed7fee845
[ "MIT-0" ]
2
2015-03-02T17:01:32.000Z
2021-12-29T14:34:46.000Z
binutils-2.21.1/gcc-4.5.1/libgcc/config/moxie/crti.asm
cberner12/xv6
53c4dfef0d48287ca0d0f9d27eab7a6ed7fee845
[ "MIT-0" ]
null
null
null
binutils-2.21.1/gcc-4.5.1/libgcc/config/moxie/crti.asm
cberner12/xv6
53c4dfef0d48287ca0d0f9d27eab7a6ed7fee845
[ "MIT-0" ]
1
2021-12-29T14:35:47.000Z
2021-12-29T14:35:47.000Z
# crti.asm for moxie # # Copyright (C) 2009 Free Software Foundation # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any # later version. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # Under Section 7 of GPL version 3, you are granted additional # permissions described in the GCC Runtime Library Exception, version # 3.1, as published by the Free Software Foundation. # # You should have received a copy of the GNU General Public License and # a copy of the GCC Runtime Library Exception along with this program; # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see # <http://www.gnu.org/licenses/>. # This file just make a stack frame for the contents of the .fini and # .init sections. Users may put any desired instructions in those # sections. .file "crti.asm" .section ".init" .global _init .type _init, @function .p2align 1 _init: .section ".fini" .global _fini .type _fini,@function .p2align 1 _fini:
31.95122
71
0.748855
65dd406ff7ebf437ce2c052d8847411c07fae6e8
4,944
asm
Assembly
Userland/SampleCodeModule/libasm.asm
JoacoGDR/TPEArki
75fa075b9e80fd8bcec8644451ab4af1d328a06e
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
JoacoGDR/TPEArki
75fa075b9e80fd8bcec8644451ab4af1d328a06e
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
JoacoGDR/TPEArki
75fa075b9e80fd8bcec8644451ab4af1d328a06e
[ "BSD-3-Clause" ]
null
null
null
;libasm.asm GLOBAL start_VM_Driver GLOBAL syscall_read GLOBAL syscall_write GLOBAL syscall_clearView GLOBAL inforeg GLOBAL get_temp GLOBAL get_brand GLOBAL execute_opcode section .text execute_opcode: UD2 ;recibe 0 o 1 como único parametro start_VM_Driver: push rbp mov rbp, rsp push rax mov rax, rdi int 0x82 pop rax mov rsp, rbp pop rbp ret change_screen: push rbp mov rbp, rsp int 0x80 mov rsp, rbp pop rbp ret get_brand: push rbp mov rbp, rsp push rdi push rsi push rax mov rax, 0 xor rax, rax XOR EAX,EAX mov eax, 80000002h CPUID MOV dword [name], eax MOV dword [name+4], ebx MOV dword [name+8], ecx MOV dword [name+12], edx mov eax, 80000003h CPUID MOV dword [name+16], eax MOV dword [name+20], ebx MOV dword [name+24], ecx MOV dword [name+28], edx mov eax, 80000004h CPUID MOV dword [name+32], eax MOV dword [name+36], ebx MOV dword [name+40], ecx MOV dword [name+44], edx mov rdi, name mov rsi, 48 call syscall_write pop rax pop rsi pop rdi mov rsp, rbp pop rbp ret inforeg: push rbp mov rbp, rsp push rax push rbx push rcx push rdx mov rax, 2 mov rbx, 1 mov rcx, 0 ; no lo uso.. mov rdx, 0 ; no lo uso.. int 80h pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret syscall_write: push rbp mov rbp, rsp push rax push rbx push rcx push rdx mov rax, 0 mov rbx, 0 mov rcx, 0 mov rdx, 0 mov rax, 4 mov rbx, 1 mov rcx, rdi ; le paso el string mov rdx, 0 ; no se usa.. int 80h pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret syscall_clearView: push rbp mov rbp, rsp push rax push rbx push rcx push rdx mov rcx, 0 mov rdx, 0 mov rax, 6 mov rbx, 1 int 80h pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret get_temp: push rbp mov rbp, rsp push rdi push rbx push rax push rdx push rcx mov rdx, [1A2h] ;en este registro saco los bits 23 a 16 and rdx, 0xFF0000 sar rdx, 16 mov rcx, [19Ch] ;en este registro saco los bits 22 a 16 and rcx, 0x7F0000 sar rcx, 16 sub rdx, rcx mov rax, rdx mov rbx, numstr call num_to_str mov rdi, rax ;primero imprimo rax call syscall_write mov rdi, ntr call syscall_write pop rcx pop rdx pop rax pop rbx pop rdi mov rsp, rbp pop rbp ret syscall_read: push rbp mov rbp, rsp push rax push rbx push rcx push rdx mov rax, 0 mov rbx, 0 mov rcx, 0 mov rdx, 0 mov rax, 3 ;ID mov rbx, rdi ; le paso el file_descriptor mov rcx, rsi ; le paso la direccion de donde tiene que guardar lo leido mov rdx, rdx ; le paso la cantidad de caracteres que tiene que leer int 80h pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret num_to_str: ;en rax tengo mi numero push rbp mov rbp, rsp ;genero stackframe push rcx push rdx push rbx mov rcx, 10 mov rdx, 0 add rbx, 99999 ;me voy hasta al final de mi string reservado mov byte [rbx], 0 ;y pongo un 0 .sigo: dec rbx ; me muevo uno para la izquierda div rcx ;divide rax por rcx y guarda el resto en edx add dl, 0x30 ;le sumo al resto el ascii '0' mov [rbx], dl cmp rax, 0 ;si el cociente entero me da 0 entonces terminé je .termino mov rdx, 0 ;piso edx con 0 devuelta jmp .sigo .termino: mov rax, rbx pop rbx pop rdx pop rcx mov rsp, rbp pop rbp ret section .bss numstr resb 100000 name resb 100 section .data temp db "La temperatura de la PC :",0 ntr db "", 10,0 srax db "rax: ", 0 srbx db "rbx: ", 0 srcx db "rcx: ", 0 srdx db "rdx: ", 0 srsi db "rsi: ", 0 srdi db "rdi: ", 0 srbp db "rbp: ", 0 srsp db "rsp: ", 0 sr8 db "r8: ", 0 sr9 db "r9: ", 0 sr10 db "r10: ", 0 sr11 db "r11: ", 0 sr12 db "r12: ", 0 sr13 db "r13: ", 0 sr14 db "r14: ", 0 sr15 db "r15: ", 0 ; ; ; 1A2 -> bits 23:16 TEMPERATURE TARGET ; 1A2 -> bits 29:24 TEMPERATURE OFFESET ; si se suman los dos anteriores se consigue la temperatura ; de alerta. ; 19C -> 22-16 DIGITAL READOUT (Delta) ; (delta) = -PC_TEMP + TEMP_ALERTA ; TEMP_ALERTA - (delta) = PC_TEMP ; ;
15.795527
77
0.539037
9caa8afd205db13eb47debee47ac71f962e9cc0a
702
asm
Assembly
oeis/027/A027933.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/027/A027933.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/027/A027933.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A027933: a(n) = T(n, 2*n-10), T given by A027926. ; Submitted by Jamie Morken(w2) ; 1,2,5,13,34,89,232,596,1490,3588,8273,18228,38403,77533,150438,281403,509015,892926,1523117,2532359,4112704,6536993,10186540,15586342,23449376,34731776,50700937,73018870,103843433,145950389,202879594,279108997,380260541,513342490,687033173,912011633,1201341198,1570912553,2039953488,2631613128,3373629118,4299086940,5447281281,6864690152,8606073279,10735707149,13328769998,16472890975,20269878707,24837645526,30312344701,36850739147,44632821260,53864704753,64781810644,77652370874,92781274412 mov $2,$0 mov $0,12 lpb $0 sub $0,2 mov $3,$2 mul $3,2 add $3,$0 div $3,2 bin $3,$0 add $1,$3 lpe mov $0,$1
41.294118
494
0.780627
2c0a0c3c4399f27b5b9627ba272b5061a628881f
1,457
asm
Assembly
assembly/src/prime_check.asm
AbnerLimaa/arquitetura-de-computadores
e90fb95968ae9510241c7c2b407181c0a2f9c0a0
[ "MIT" ]
null
null
null
assembly/src/prime_check.asm
AbnerLimaa/arquitetura-de-computadores
e90fb95968ae9510241c7c2b407181c0a2f9c0a0
[ "MIT" ]
null
null
null
assembly/src/prime_check.asm
AbnerLimaa/arquitetura-de-computadores
e90fb95968ae9510241c7c2b407181c0a2f9c0a0
[ "MIT" ]
null
null
null
org 0x7C00 bits 16 mov ax, 0 mov ds, ax cli main: mov ax, 0x7E00 call get_number mov ax, 0x7E00 call prime_test hlt get_number: push ax push bx push dx push di mov di, ax mov dx, 10 mov bx, 1 read_char: mov ah, 0x0 int 0x16 cmp al, 13 je end_get_number mov ah, 0x0E int 0x10 mov ah, 0 sub ax, 48 imul ax, bx imul bx, dx add [di], al jmp read_char end_get_number: pop di pop dx pop bx pop ax ret prime_test: push ax push cx push si mov si, ax mov cx, 2 div_number: mov ax, [si] cmp cx, ax je end_prime div cl cmp ah, 0 je end_not_prime inc cx jmp div_number end_prime: mov ax, prime call print jmp end_prime_test end_not_prime: mov ax, not_prime call print jmp end_prime_test end_prime_test: pop si pop cx pop ax ret print: push ax push si mov si, ax mov ah, 0x0E read_byte: lodsb or al, al jz end_print int 0x10 jmp read_byte end_print: pop si pop ax ret prime: db " is prime", 0 not_prime: db " isnt prime", 0 times 510 - ($ - $$) db 0 dw 0XAA55
14.145631
30
0.480439
1c913c16daab40c09fa7401f860040222e3b0404
499
asm
Assembly
programs/oeis/286/A286905.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/286/A286905.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/286/A286905.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A286905: Positions of 1 in A286903; complement of A286904. ; 1,2,5,6,9,10,11,14,15,18,19,20,23,24,27,28,31,32,33,36,37,40,41,42,45,46,49,50,53,54,55,58,59,62,63,64,67,68,71,72,73,76,77,80,81,84,85,86,89,90,93,94,95,98,99,102,103,106,107,108,111,112,115,116,117,120,121,124,125,126,129,130,133,134,137,138,139,142,143,146,147,148,151,152,155,156,159,160,161,164,165,168,169,170,173,174,177,178,181,182 mov $1,$0 seq $0,286909 ; Positions of 1 in A286907; complement of A286908. sub $0,$1 sub $0,1
62.375
341
0.705411
f2f848908dbc76cc85c085a290fe4782ead8f760
845
asm
Assembly
oeis/142/A142367.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142367.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142367.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142367: Primes congruent to 16 mod 47. ; Submitted by Simon Strandgaard ; 157,251,439,1097,1567,2131,2789,3259,3541,3823,3917,4481,4951,5233,6079,6173,6361,6737,7019,7207,7489,7583,8053,8147,8429,9181,9463,9839,11437,11719,11813,12377,12659,12941,13411,13693,14633,14821,15667,15761,16231,16607,16889,17077,17359,17923,19051,19333,19427,19709,19991,20743,21401,21589,21683,21871,22153,22247,22717,22811,23563,24691,25349,25537,25819,25913,26759,26947,27793,28921,29297,30707,31177,31271,31741,32117,32587,32869,33151,33809,33997,34843,35407,36629,37663,38039,38321,38603 mov $1,31 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,47 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,83 mul $0,2 add $0,73
33.8
498
0.731361
97d83d11857b3b13345d36ab12189251b9f5fbcf
7,011
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_7854_1702.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_7854_1702.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_7854_1702.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 %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x111ff, %rsi lea addresses_UC_ht+0xf317, %rdi nop nop nop nop and %r9, %r9 mov $104, %rcx rep movsl nop nop nop xor %r15, %r15 lea addresses_D_ht+0xd980, %rbp nop nop nop xor %rax, %rax movb $0x61, (%rbp) nop nop nop nop xor %rcx, %rcx lea addresses_WC_ht+0x18854, %r9 clflush (%r9) nop nop nop nop sub %rsi, %rsi mov (%r9), %rcx nop nop nop inc %rdi lea addresses_UC_ht+0xfb37, %rsi lea addresses_UC_ht+0x42e3, %rdi nop add $22455, %r11 mov $34, %rcx rep movsq nop nop nop and $56001, %rsi lea addresses_UC_ht+0x17dbf, %rax nop nop nop nop sub $44959, %rcx mov (%rax), %r9w add $5663, %rdi lea addresses_A_ht+0x5ccb, %rcx nop and $9820, %rbp mov (%rcx), %r11w nop and $63880, %r9 lea addresses_normal_ht+0x18eff, %rsi nop nop cmp %rdi, %rdi and $0xffffffffffffffc0, %rsi vmovaps (%rsi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rax nop nop nop nop cmp $25199, %r11 lea addresses_WC_ht+0x1722f, %rsi lea addresses_A_ht+0x14647, %rdi nop cmp $50546, %rbp mov $84, %rcx rep movsq nop nop nop nop inc %r11 lea addresses_WT_ht+0x51ff, %rsi lea addresses_A_ht+0x1871f, %rdi nop mfence mov $92, %rcx rep movsw nop nop inc %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r8 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_A+0x4ebc, %r11 nop nop nop add $55928, %r8 movl $0x51525354, (%r11) and %r8, %r8 // Load lea addresses_UC+0xab17, %rbp nop add $52856, %r10 mov (%rbp), %r12d nop add %r10, %r10 // REPMOV lea addresses_PSE+0x10e3f, %rsi lea addresses_normal+0x65c9, %rdi dec %r12 mov $27, %rcx rep movsl cmp %r14, %r14 // Faulty Load lea addresses_D+0x141ff, %rcx clflush (%rcx) nop nop nop nop cmp %rbp, %rbp mov (%rcx), %di lea oracles, %r12 and $0xff, %rdi shlq $12, %rdi mov (%r12,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_PSE', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'36': 7854} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
35.588832
2,999
0.656254
7400e3768b29e16860a63831ba295a5c388c8b73
146
a51
Assembly
a51test/(F0)MOVX_@DPTR_A.a51
Aimini/51cpu
cdeb75510d1dcd867fbebe10e963c4dbecd5ff13
[ "MIT" ]
null
null
null
a51test/(F0)MOVX_@DPTR_A.a51
Aimini/51cpu
cdeb75510d1dcd867fbebe10e963c4dbecd5ff13
[ "MIT" ]
null
null
null
a51test/(F0)MOVX_@DPTR_A.a51
Aimini/51cpu
cdeb75510d1dcd867fbebe10e963c4dbecd5ff13
[ "MIT" ]
null
null
null
MOV DPTR,#0x00 INC A MOVX @DPTR,A MOV DPTR,#0x0F0F INC A MOVX @DPTR,A MOV DPTR,#0xFF00 INC A MOVX @DPTR,A MOV DPTR,#0xAAAA INC A MOVX @DPTR,A
8.588235
16
0.69863
a736329343c08450d74dc66028b7e874e3b04dd0
150
asm
Assembly
libsrc/_DEVELOPMENT/adt/wv_stack/c/sdcc_iy/wv_stack_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wv_stack/c/sdcc_iy/wv_stack_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/wv_stack/c/sdcc_iy/wv_stack_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; size_t wv_stack_size(wv_stack_t *s) SECTION code_adt_wv_stack PUBLIC _wv_stack_size EXTERN _w_vector_size defc _wv_stack_size = _w_vector_size
13.636364
37
0.84
64eacc67dcccbcc8a203b69ddc4ced81eab4007f
1,687
asm
Assembly
programs/oeis/158/A158463.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/158/A158463.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158463.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158463: a(n) = 12*n^2 - 1. ; -1,11,47,107,191,299,431,587,767,971,1199,1451,1727,2027,2351,2699,3071,3467,3887,4331,4799,5291,5807,6347,6911,7499,8111,8747,9407,10091,10799,11531,12287,13067,13871,14699,15551,16427,17327,18251,19199,20171,21167,22187,23231,24299,25391,26507,27647,28811,29999,31211,32447,33707,34991,36299,37631,38987,40367,41771,43199,44651,46127,47627,49151,50699,52271,53867,55487,57131,58799,60491,62207,63947,65711,67499,69311,71147,73007,74891,76799,78731,80687,82667,84671,86699,88751,90827,92927,95051,97199,99371,101567,103787,106031,108299,110591,112907,115247,117611,119999,122411,124847,127307,129791,132299,134831,137387,139967,142571,145199,147851,150527,153227,155951,158699,161471,164267,167087,169931,172799,175691,178607,181547,184511,187499,190511,193547,196607,199691,202799,205931,209087,212267,215471,218699,221951,225227,228527,231851,235199,238571,241967,245387,248831,252299,255791,259307,262847,266411,269999,273611,277247,280907,284591,288299,292031,295787,299567,303371,307199,311051,314927,318827,322751,326699,330671,334667,338687,342731,346799,350891,355007,359147,363311,367499,371711,375947,380207,384491,388799,393131,397487,401867,406271,410699,415151,419627,424127,428651,433199,437771,442367,446987,451631,456299,460991,465707,470447,475211,479999,484811,489647,494507,499391,504299,509231,514187,519167,524171,529199,534251,539327,544427,549551,554699,559871,565067,570287,575531,580799,586091,591407,596747,602111,607499,612911,618347,623807,629291,634799,640331,645887,651467,657071,662699,668351,674027,679727,685451,691199,696971,702767,708587,714431,720299,726191,732107,738047,744011 pow $0,2 mul $0,12 sub $0,1 mov $1,$0
210.875
1,617
0.829876
9f9bbb55b998efe982722cd47cd82836f887042b
393
asm
Assembly
oeis/058/A058932.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/058/A058932.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/058/A058932.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A058932: Number of unlabeled claw-free cubic graphs with 2n nodes and connectivity 1. ; Submitted by Jon Maiga ; 0,0,0,0,0,0,1,1,3,5,11,20 mov $5,$0 lpb $0 sub $0,2 mov $2,$0 mov $0,1 max $2,0 seq $2,293046 ; Number of even permutations on {1,2,...,n} with exactly 2 weak excedances. mov $4,$2 min $4,1 add $5,$4 mov $3,$5 cmp $3,0 add $5,$3 div $2,$5 lpe mov $0,$2
18.714286
92
0.610687
c91f1e20d6172304c80250ce89a376595b6df5bf
281
asm
Assembly
sw/552tests/complex_demo2/perf-test-dep-zero.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/complex_demo2/perf-test-dep-zero.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/complex_demo2/perf-test-dep-zero.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
lbi r0, 0 nop nop nop nop addi r0, r0, 1 nop nop nop nop nop addi r0, r0, 1 nop nop nop nop nop addi r0, r0, 1 halt
14.05
22
0.281139
6f3ee02aa8f6e7b0c62e8a4f8472a85ab67db02a
641
asm
Assembly
oeis/089/A089303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/089/A089303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/089/A089303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A089303: a(n) = floor( (10^n - 1) / (9*n) ). ; Submitted by Jon Maiga ; 1,5,37,277,2222,18518,158730,1388888,12345679,111111111,1010101010,9259259259,85470085470,793650793650,7407407407407,69444444444444,653594771241830,6172839506172839,58479532163742690,555555555555555555,5291005291005291005,50505050505050505050,483091787439613526570,4629629629629629629629,44444444444444444444444,427350427350427350427350,4115226337448559670781893,39682539682539682539682539,383141762452107279693486590,3703703703703703703703703703,35842293906810035842293906810 add $0,1 mov $2,$0 seq $0,2275 ; Repunits: (10^n - 1)/9. Often denoted by R_n. div $0,$2
71.222222
478
0.839314
da0315185a0d2612026711028e401832dc667e8d
427
asm
Assembly
programs/oeis/143/A143259.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/143/A143259.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/143/A143259.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A143259: a(n) = 1 if n is a nonzero square, -1 if n is twice a nonzero square, 0 otherwise. ; 1,-1,0,1,0,0,0,-1,1,0,0,0,0,0,0,1,0,-1,0,0,0,0,0,0,1,0,0,0,0,0,0,-1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,1 seq $0,300518 ; The greatest prime factor of the squarefree part of n, or 1 if n is square. pow $1,0 mov $2,-1 mov $$3,$$0
53.375
208
0.578454
daa67cc46a13897b3d97921f6d94d6db1ca70199
14,684
asm
Assembly
CS/计算机系统概论/Lab03/data.asm
RabbitWhite1/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
7
2020-09-10T05:18:26.000Z
2021-01-03T02:07:40.000Z
CS/计算机系统概论/Lab03/data.asm
Pengxiang-Hua/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
null
null
null
CS/计算机系统概论/Lab03/data.asm
Pengxiang-Hua/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
2
2021-01-03T07:10:37.000Z
2021-01-06T11:20:56.000Z
.ORIG x3200 .FILL #13461 .FILL #27928 .FILL #23897 .FILL #4332 .FILL #13343 .FILL #28652 .FILL #28356 .FILL #13361 .FILL #21501 .FILL #17042 .FILL #29268 .FILL #61 .FILL #4068 .FILL #16891 .FILL #8451 .FILL #6833 .FILL #17733 .FILL #10977 .FILL #1396 .FILL #24886 .FILL #8820 .FILL #23643 .FILL #1075 .FILL #24756 .FILL #4361 .FILL #10415 .FILL #14653 .FILL #19653 .FILL #8071 .FILL #10343 .FILL #20163 .FILL #2921 .FILL #11835 .FILL #17319 .FILL #12587 .FILL #10491 .FILL #25447 .FILL #26045 .FILL #17496 .FILL #18531 .FILL #10912 .FILL #3834 .FILL #32299 .FILL #25486 .FILL #17269 .FILL #14528 .FILL #2633 .FILL #28699 .FILL #9041 .FILL #16349 .FILL #23327 .FILL #15447 .FILL #11939 .FILL #18711 .FILL #19492 .FILL #6252 .FILL #3387 .FILL #21512 .FILL #14686 .FILL #8149 .FILL #7671 .FILL #28717 .FILL #12328 .FILL #14101 .FILL #19872 .FILL #18489 .FILL #7474 .FILL #4521 .FILL #21775 .FILL #30639 .FILL #7113 .FILL #21563 .FILL #8852 .FILL #24239 .FILL #19033 .FILL #10008 .FILL #29336 .FILL #26640 .FILL #18480 .FILL #19684 .FILL #23424 .FILL #30128 .FILL #16516 .FILL #4493 .FILL #20693 .FILL #26376 .FILL #9912 .FILL #9597 .FILL #24994 .FILL #28164 .FILL #2011 .FILL #14612 .FILL #13854 .FILL #9745 .FILL #5490 .FILL #27733 .FILL #4235 .FILL #8567 .FILL #19831 .FILL #26335 .FILL #21854 .FILL #24809 .FILL #25505 .FILL #11295 .FILL #24224 .FILL #26970 .FILL #20454 .FILL #32709 .FILL #7828 .FILL #27667 .FILL #9791 .FILL #28276 .FILL #21914 .FILL #13571 .FILL #7083 .FILL #20158 .FILL #24403 .FILL #21334 .FILL #23670 .FILL #20047 .FILL #23302 .FILL #12361 .FILL #6075 .FILL #24424 .FILL #13123 .FILL #2108 .FILL #25640 .FILL #6800 .FILL #18630 .FILL #31240 .FILL #25089 .FILL #26758 .FILL #17565 .FILL #8340 .FILL #15975 .FILL #2169 .FILL #21902 .FILL #27299 .FILL #31707 .FILL #18043 .FILL #23731 .FILL #9456 .FILL #9214 .FILL #30260 .FILL #19815 .FILL #27261 .FILL #18074 .FILL #1491 .FILL #17510 .FILL #28456 .FILL #27110 .FILL #15690 .FILL #6703 .FILL #22655 .FILL #20486 .FILL #32187 .FILL #29869 .FILL #6357 .FILL #13778 .FILL #5421 .FILL #7191 .FILL #150 .FILL #28376 .FILL #31364 .FILL #5909 .FILL #31191 .FILL #676 .FILL #1456 .FILL #21028 .FILL #8753 .FILL #12095 .FILL #30756 .FILL #22075 .FILL #14032 .FILL #29941 .FILL #27018 .FILL #21167 .FILL #1735 .FILL #3931 .FILL #27829 .FILL #32340 .FILL #24486 .FILL #32657 .FILL #215 .FILL #5093 .FILL #10319 .FILL #3013 .FILL #8948 .FILL #28069 .FILL #7685 .FILL #22520 .FILL #5014 .FILL #1095 .FILL #26566 .FILL #31749 .FILL #9411 .FILL #21771 .FILL #29659 .FILL #15071 .FILL #9260 .FILL #29483 .FILL #21421 .FILL #16154 .FILL #13735 .FILL #18549 .FILL #2522 .FILL #173 .FILL #12767 .FILL #18745 .FILL #32392 .FILL #14326 .FILL #23882 .FILL #8037 .FILL #3578 .FILL #510 .FILL #2908 .FILL #4335 .FILL #25953 .FILL #6655 .FILL #507 .FILL #9587 .FILL #8692 .FILL #19491 .FILL #12594 .FILL #20254 .FILL #26178 .FILL #1423 .FILL #4905 .FILL #6858 .FILL #22983 .FILL #9632 .FILL #18517 .FILL #11114 .FILL #18110 .FILL #29812 .FILL #17388 .FILL #1193 .FILL #18999 .FILL #25261 .FILL #7324 .FILL #26830 .FILL #19049 .FILL #30321 .FILL #21884 .FILL #19939 .FILL #10057 .FILL #2485 .FILL #13123 .FILL #11798 .FILL #22876 .FILL #15804 .FILL #29112 .FILL #14175 .FILL #29385 .FILL #18394 .FILL #28009 .FILL #7779 .FILL #14002 .FILL #31614 .FILL #5536 .FILL #6297 .FILL #15044 .FILL #13680 .FILL #14995 .FILL #16811 .FILL #18189 .FILL #3158 .FILL #3035 .FILL #28703 .FILL #26638 .FILL #27261 .FILL #23335 .FILL #15670 .FILL #26386 .FILL #29910 .FILL #30514 .FILL #17428 .FILL #7358 .FILL #25407 .FILL #13042 .FILL #23586 .FILL #20968 .FILL #11780 .FILL #27923 .FILL #21169 .FILL #8877 .FILL #13478 .FILL #11171 .FILL #26592 .FILL #6077 .FILL #16859 .FILL #8207 .FILL #4799 .FILL #27130 .FILL #4309 .FILL #10062 .FILL #20660 .FILL #9282 .FILL #14279 .FILL #6748 .FILL #1054 .FILL #6024 .FILL #7078 .FILL #746 .FILL #9785 .FILL #21802 .FILL #20781 .FILL #2132 .FILL #20546 .FILL #9086 .FILL #3875 .FILL #10451 .FILL #24539 .FILL #8366 .FILL #5600 .FILL #4852 .FILL #15024 .FILL #1991 .FILL #12302 .FILL #13128 .FILL #30043 .FILL #19468 .FILL #12461 .FILL #19037 .FILL #24965 .FILL #32400 .FILL #4697 .FILL #7918 .FILL #18254 .FILL #12804 .FILL #7120 .FILL #8279 .FILL #19951 .FILL #20685 .FILL #11695 .FILL #3403 .FILL #22430 .FILL #6490 .FILL #7548 .FILL #29385 .FILL #21683 .FILL #13492 .FILL #16873 .FILL #5964 .FILL #21000 .FILL #6998 .FILL #5207 .FILL #9795 .FILL #18085 .FILL #15424 .FILL #2970 .FILL #12224 .FILL #25757 .FILL #6727 .FILL #5116 .FILL #20596 .FILL #28979 .FILL #21423 .FILL #18564 .FILL #5595 .FILL #26689 .FILL #18427 .FILL #20856 .FILL #29364 .FILL #28379 .FILL #20484 .FILL #3104 .FILL #22452 .FILL #22831 .FILL #15433 .FILL #24525 .FILL #17531 .FILL #18351 .FILL #3462 .FILL #25626 .FILL #25799 .FILL #8051 .FILL #7048 .FILL #15474 .FILL #3560 .FILL #25048 .FILL #7743 .FILL #19666 .FILL #12404 .FILL #10094 .FILL #19733 .FILL #11216 .FILL #4667 .FILL #16913 .FILL #2174 .FILL #30173 .FILL #25725 .FILL #19029 .FILL #16848 .FILL #26055 .FILL #2651 .FILL #7208 .FILL #5462 .FILL #22146 .FILL #9100 .FILL #1714 .FILL #19103 .FILL #4647 .FILL #12113 .FILL #13184 .FILL #12060 .FILL #4669 .FILL #23467 .FILL #2274 .FILL #32491 .FILL #5432 .FILL #21707 .FILL #2961 .FILL #20461 .FILL #11583 .FILL #10442 .FILL #917 .FILL #13086 .FILL #11314 .FILL #5018 .FILL #26726 .FILL #38 .FILL #4332 .FILL #18237 .FILL #22610 .FILL #32555 .FILL #22981 .FILL #1076 .FILL #7966 .FILL #25834 .FILL #24667 .FILL #5691 .FILL #4080 .FILL #21766 .FILL #8851 .FILL #2355 .FILL #13933 .FILL #24223 .FILL #7386 .FILL #10848 .FILL #8990 .FILL #10023 .FILL #6577 .FILL #10708 .FILL #22296 .FILL #14193 .FILL #6760 .FILL #28715 .FILL #4828 .FILL #7947 .FILL #15657 .FILL #31865 .FILL #3196 .FILL #25038 .FILL #17465 .FILL #24193 .FILL #20735 .FILL #25523 .FILL #8827 .FILL #8488 .FILL #21767 .FILL #18153 .FILL #12598 .FILL #14633 .FILL #30897 .FILL #28708 .FILL #29463 .FILL #19465 .FILL #701 .FILL #9527 .FILL #2170 .FILL #25422 .FILL #22255 .FILL #31205 .FILL #14565 .FILL #24556 .FILL #27572 .FILL #32500 .FILL #13781 .FILL #16896 .FILL #17161 .FILL #26500 .FILL #31422 .FILL #6336 .FILL #27289 .FILL #6303 .FILL #28237 .FILL #11954 .FILL #18213 .FILL #22289 .FILL #10480 .FILL #17949 .FILL #12073 .FILL #1914 .FILL #1176 .FILL #31166 .FILL #6333 .FILL #13473 .FILL #22974 .FILL #5563 .FILL #24249 .FILL #20491 .FILL #3492 .FILL #31965 .FILL #24860 .FILL #24781 .FILL #21981 .FILL #28153 .FILL #1199 .FILL #5278 .FILL #21775 .FILL #15791 .FILL #21989 .FILL #26416 .FILL #29944 .FILL #22615 .FILL #21254 .FILL #21441 .FILL #8623 .FILL #8249 .FILL #8588 .FILL #17645 .FILL #18988 .FILL #31740 .FILL #13006 .FILL #14022 .FILL #18955 .FILL #10594 .FILL #7131 .FILL #16166 .FILL #8333 .FILL #10290 .FILL #9385 .FILL #28740 .FILL #6368 .FILL #20853 .FILL #21103 .FILL #18822 .FILL #18336 .FILL #28388 .FILL #29007 .FILL #10902 .FILL #413 .FILL #26274 .FILL #24888 .FILL #31928 .FILL #12255 .FILL #20263 .FILL #10763 .FILL #1627 .FILL #9447 .FILL #32636 .FILL #6908 .FILL #7405 .FILL #22328 .FILL #28590 .FILL #31036 .FILL #10484 .FILL #9494 .FILL #32125 .FILL #469 .FILL #12379 .FILL #1422 .FILL #26964 .FILL #17109 .FILL #23305 .FILL #19126 .FILL #8062 .FILL #4014 .FILL #9657 .FILL #22838 .FILL #8598 .FILL #5341 .FILL #14085 .FILL #30983 .FILL #9279 .FILL #20170 .FILL #2755 .FILL #9083 .FILL #13590 .FILL #26607 .FILL #26517 .FILL #29310 .FILL #31973 .FILL #16957 .FILL #21180 .FILL #5403 .FILL #29210 .FILL #12219 .FILL #30253 .FILL #27970 .FILL #3959 .FILL #7793 .FILL #11495 .FILL #15048 .FILL #25354 .FILL #15236 .FILL #10627 .FILL #30639 .FILL #2400 .FILL #20898 .FILL #27405 .FILL #18856 .FILL #26870 .FILL #26272 .FILL #29714 .FILL #11478 .FILL #16880 .FILL #23650 .FILL #30714 .FILL #15317 .FILL #26125 .FILL #6396 .FILL #29336 .FILL #14587 .FILL #11483 .FILL #31254 .FILL #24064 .FILL #15581 .FILL #30759 .FILL #6037 .FILL #31385 .FILL #11797 .FILL #23736 .FILL #6520 .FILL #23923 .FILL #26179 .FILL #17213 .FILL #9471 .FILL #14554 .FILL #10322 .FILL #5507 .FILL #9491 .FILL #4907 .FILL #19453 .FILL #19435 .FILL #29154 .FILL #24550 .FILL #17041 .FILL #28444 .FILL #7114 .FILL #12037 .FILL #22772 .FILL #25077 .FILL #23928 .FILL #26252 .FILL #23270 .FILL #1989 .FILL #31057 .FILL #14946 .FILL #31623 .FILL #6847 .FILL #1552 .FILL #22111 .FILL #10009 .FILL #18088 .FILL #28337 .FILL #28326 .FILL #8712 .FILL #23507 .FILL #10639 .FILL #10805 .FILL #6439 .FILL #11855 .FILL #27337 .FILL #7098 .FILL #1853 .FILL #30047 .FILL #21993 .FILL #15528 .FILL #5056 .FILL #16170 .FILL #29384 .FILL #7819 .FILL #20192 .FILL #19636 .FILL #27052 .FILL #18073 .FILL #28360 .FILL #27149 .FILL #19124 .FILL #26505 .FILL #29216 .FILL #5833 .FILL #25718 .FILL #28072 .FILL #19414 .FILL #4783 .FILL #28134 .FILL #4393 .FILL #31774 .FILL #8886 .FILL #1914 .FILL #25276 .FILL #15031 .FILL #8749 .FILL #22411 .FILL #1635 .FILL #5744 .FILL #13369 .FILL #17919 .FILL #4225 .FILL #11756 .FILL #10628 .FILL #6949 .FILL #14644 .FILL #26018 .FILL #28212 .FILL #1504 .FILL #23013 .FILL #16167 .FILL #5146 .FILL #19720 .FILL #26910 .FILL #13744 .FILL #19756 .FILL #12301 .FILL #26779 .FILL #17363 .FILL #27190 .FILL #15069 .FILL #31139 .FILL #30349 .FILL #12748 .FILL #4360 .FILL #2969 .FILL #12681 .FILL #9091 .FILL #29730 .FILL #22734 .FILL #2207 .FILL #31585 .FILL #2410 .FILL #9625 .FILL #21148 .FILL #2449 .FILL #8872 .FILL #30122 .FILL #22849 .FILL #12891 .FILL #3676 .FILL #11163 .FILL #19086 .FILL #10836 .FILL #13076 .FILL #18120 .FILL #20288 .FILL #17106 .FILL #31262 .FILL #13153 .FILL #27288 .FILL #23203 .FILL #19807 .FILL #24765 .FILL #1886 .FILL #18175 .FILL #11395 .FILL #4593 .FILL #22054 .FILL #18618 .FILL #7511 .FILL #7330 .FILL #24786 .FILL #25022 .FILL #31602 .FILL #2583 .FILL #30552 .FILL #7865 .FILL #27419 .FILL #20114 .FILL #22981 .FILL #10515 .FILL #29543 .FILL #2785 .FILL #17282 .FILL #13603 .FILL #930 .FILL #3120 .FILL #15318 .FILL #8354 .FILL #26608 .FILL #32289 .FILL #20397 .FILL #21856 .FILL #28980 .FILL #799 .FILL #6296 .FILL #17461 .FILL #21553 .FILL #9967 .FILL #13588 .FILL #3131 .FILL #1008 .FILL #24455 .FILL #5647 .FILL #8762 .FILL #2913 .FILL #4132 .FILL #17832 .FILL #3172 .FILL #10820 .FILL #17047 .FILL #2871 .FILL #1603 .FILL #14666 .FILL #2783 .FILL #4237 .FILL #8431 .FILL #6520 .FILL #18685 .FILL #27773 .FILL #13188 .FILL #13005 .FILL #15620 .FILL #13979 .FILL #12243 .FILL #17956 .FILL #8560 .FILL #2115 .FILL #12120 .FILL #5724 .FILL #16312 .FILL #3805 .FILL #19565 .FILL #11445 .FILL #13095 .FILL #4960 .FILL #7100 .FILL #15485 .FILL #19943 .FILL #6933 .FILL #23034 .FILL #27117 .FILL #21599 .FILL #1438 .FILL #8659 .FILL #30798 .FILL #703 .FILL #19510 .FILL #15904 .FILL #9055 .FILL #4312 .FILL #17978 .FILL #27744 .FILL #10235 .FILL #10290 .FILL #5865 .FILL #9062 .FILL #16375 .FILL #88 .FILL #10344 .FILL #12879 .FILL #5450 .FILL #5495 .FILL #22536 .FILL #19383 .FILL #28784 .FILL #11559 .FILL #14284 .FILL #20781 .FILL #9744 .FILL #7561 .FILL #2342 .FILL #29411 .FILL #2012 .FILL #2706 .FILL #21762 .FILL #30634 .FILL #23736 .FILL #3494 .FILL #17669 .FILL #16670 .FILL #9247 .FILL #31593 .FILL #8727 .FILL #24606 .FILL #10435 .FILL #15314 .FILL #7199 .FILL #19840 .FILL #9844 .FILL #26753 .FILL #16141 .FILL #6914 .FILL #1859 .FILL #9554 .FILL #14622 .FILL #12419 .FILL #31719 .FILL #26418 .FILL #22107 .FILL #26995 .FILL #29536 .FILL #7473 .FILL #21860 .FILL #9864 .FILL #13786 .FILL #28633 .FILL #31083 .FILL #10162 .FILL #9939 .FILL #2750 .FILL #32131 .FILL #16978 .FILL #29312 .FILL #9303 .FILL #19739 .FILL #18343 .FILL #10861 .FILL #14348 .FILL #9669 .FILL #12168 .FILL #5477 .FILL #9872 .FILL #1597 .FILL #23385 .FILL #13969 .FILL #12401 .FILL #3750 .FILL #1336 .FILL #20451 .FILL #32494 .FILL #13846 .FILL #12151 .FILL #25526 .FILL #12040 .FILL #31061 .FILL #10319 .FILL #31150 .FILL #4828 .FILL #26338 .FILL #30162 .FILL #10982 .FILL #7471 .FILL #11319 .FILL #15906 .FILL #14666 .FILL #11083 .FILL #2126 .FILL #32737 .FILL #13889 .FILL #8458 .FILL #18276 .FILL #12008 .FILL #31888 .FILL #2864 .FILL #11261 .FILL #2364 .FILL #379 .FILL #15357 .FILL #26920 .FILL #14397 .FILL #16684 .FILL #5635 .FILL #4612 .FILL #4641 .FILL #19033 .FILL #31030 .FILL #8835 .FILL #4001 .FILL #11554 .FILL #1602 .FILL #1390 .FILL #18930 .FILL #20792 .FILL #11297 .FILL #15274 .FILL #5367 .FILL #30532 .FILL #13292 .FILL #2233 .FILL #2485 .FILL #27015 .FILL #16113 .FILL #18563 .FILL #5383 .FILL #8125 .FILL #27399 .FILL #21079 .FILL #24211 .FILL #23112 .FILL #4382 .FILL #3373 .FILL #7164 .FILL #30858 .FILL #21018 .FILL #6446 .FILL #9306 .FILL #3731 .FILL #26082 .FILL #12918 .FILL #22503 .FILL #32252 .FILL #24755 .FILL #12568 .FILL #12282 .FILL #5650 .FILL #25275 .FILL #19042 .FILL #2874 .FILL #-1 .END
14.625498
14
0.59037
713520505878dcae27f171d5e5c90cf01b1eb67e
11,202
asm
Assembly
src/spread/cmd_file.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/cmd_file.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/cmd_file.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
* Spreadsheet 03/03-92 * - file command routines section prog include win1_keys_wman include win1_keys_wstatus include win1_keys_wwork include win1_keys_err include win1_keys_k include win1_keys_qdos_ioa include win1_keys_qdos_io include win1_mac_oli include win1_spread_keys xdef fil_forg xdef fil_xsav xdef fil_xsas xdef fil_xexp xdef fil_xloa xdef fil_ximp,fil_mpag xdef fil_prtb,fil_prtp,fil_prtf xdef forg_grd,fil_setf xdef blk_stor,blk_rstr xref.l mv_sznc,mv_sznr,mv_popp,mv_popf,mv_popw xref.l wst_main,mv_poef,mv_popl,mv_poif,mv_stcr blk_stor move.l da_cbx0(a6),da_anbuf(a6) move.l da_cbx1(a6),da_anbuf+4(a6) rts blk_rstr movem.l d1/d0,-(sp) move.l da_anbuf(a6),d1 xjsr cel_topl move.l da_anbuf+4(a6),d1 xjsr cel_botr movem.l (sp)+,d1/d0 rts * * print at page fil_prtp bsr.s blk_stor bsr.s fil_page bsr fil_prtb bsr.s blk_rstr tst.l d0 rts fil_mpag bsr.s fil_page tst.l d0 rts fil_page subr a0-a4/d1-d4 move.l da_cbx0(a6),d1 ; current cell move.w mv_popw(a6),d4 ; paper width xjsr cel_wdth sub.w d3,d4 ble.s page_sc page_clp add.l #$00010000,d1 ; next column xjsr in_grid bne.s page_cx xjsr cel_wdth sub.w d3,d4 bge page_clp page_cx sub.l #$00010000,d1 page_sc move.w mv_popl(a6),d4 subq.w #1,d4 ble.s page_sr page_rlp addq.w #1,d1 xjsr in_grid bne.s page_rx subq.w #1,d4 bgt page_rlp page_sr move.l da_wwork(a6),a4 xjsr cel_clr move.l d1,da_cbx1(a6) xjsr cel_newb subend page_rx subq.w #1,d1 bra.s page_sr * * print formulae report fil_prtf subr a0-a5/d1-d4 bsr opn_prt bne.s prtf_exit move.l da_cbx0(a6),da_anbuf(a6) lea prtf_act,a5 xjsr mul_blok prtf_clos xjsr gu_fclos ; close printer prtf_exit subend prtf_act subr a0-a3/d1-d4 move.l d1,d2 swap d2 cmp.w da_anbuf(a6),d2 beq.s prtf_line xjsr ut_prlf prtf_line move.l d1,da_anbuf(a6) lea da_buff(a6),a1 xjsr acc_getf bmi.s prtf_skip cmpi.b #'"',2(a1) beq.s prtf_skip bsr.s prtf_ref bmi.s prtf_skip xjsr ut_prstr prtf_skip xjsr ut_prtab moveq #0,d0 subend prtf_ref subr a0-a3/d1-d3 move.l a1,a0 lea da_echs(a6),a1 lea da_echl(a6),a2 xjsr cel_fref ; find references tst.l (a2) subend * * print a block fil_prtb subr a0-a4/d1-d4 bsr.s opn_prt ; open printer bne.s prtb_exit lea mv_popf(a6),a1 ; link filter job tst.w (a1) beq.s prtb_prt ; no filter, print normal xjsr flt_print ;;; xjsr flt_expt bne.s prtb_clos exg a0,a1 prtb_prt xjsr fil_prnt ; print block prtb_clos xjsr gu_fclos ; close printer prtb_exit subend opn_prt subr d1-d3 prt_try moveq #ioa.open,d0 moveq #myself,d1 moveq #ioa.kovr,d3 lea mv_popp(a6),a0 trap #do.ioa tst.l d0 beq.s prt_exit bsr fil_err tst.l d0 beq.s prt_exit bra.s prt_try prt_exit subend fil_xloa moveq #0,d0 bra.s fil_loax fil_ximp moveq #-1,d0 * * load a new file r_forg reg a3 fil_loax subr a0-a4/d1-d4/d7 xjsr close_flash move.l d0,d7 bsr conf_forg ; confirm forget beq.s xloa_exit ; ... do not load! xloa_edt bsr gfn_load ; get filename for loading bgt.s xloa_no moveq #ioa.kshr,d3 ; open key=shared xloa_try lea da_fname(a6),a0 xjsr gu_fopen ; open new file beq.s xloa_ok bsr fil_err ; errors... beq.s xloa_no ; esc'aped, give up moveq #ioa.kshr,d3 subq.w #1,d0 beq.s xloa_try ; retry bra.s xloa_edt ; edit name xloa_ok bsr.s set_ifj ; setup import filter bne.s xloa_clo xjsr fil_load ; load file contents tst.l d0 bne.s xloa_clo bsr.s fil_extn ; add extension for imported file xloa_clo tst.l d0 beq.s xloa_clo_noer moveq #-1,d1 ;;; move.b colm(a6),d2 ; colour moveq #0,d2 move.l d0,-(sp) xjsr mu_rperr move.l (sp)+,d0 xloa_clo_noer xjsr gu_fclos ; close logic file bsr.s clo_phys ; close physical file tst.l d0 ; any error? beq.s xloa_exit bsr forg_grd ; if so, restart grid xloa_exit xjsr open_flash tst.l d0 subend ; ; loading was unsuccessful xloa_no ;;;;;; move.w #0,da_fname(a6) moveq #0,d0 bra.s xloa_exit ; ; close physical file clo_phys subr a0/d0 tst.l d7 beq.s cphys_exit move.l d7,a0 xjsr gu_fclos cphys_exit subend ; ; add extension to filename fil_extn subr d0/a0/a1 lea da_fname(a6),a0 lea da_fextn(a6),a1 xjsr ut_fextn subend ; ; setup the import filter job set_ifj subr a1 tst.b d7 beq.s setifj_exit lea mv_poif(a6),a1 ; setup import filter tst.w (a1) beq.s setifj_exit moveq #0,d7 xjsr flt_impt bne.s setifj_exit move.l a0,d7 ; physical channel id move.l a1,a0 ; channel to read from moveq #0,d0 setifj_exit subend gfn_load subr a0-a4/d0-d4 moveq #-1,d1 ; window origin ;;; move.b cols(a6),d2 ; window colourways ;;; swap d2 ;;; move.b colm(a6),d2 ;;; andi.l #$000F000F,d2 moveq #0,d2 moveq #0,d5 ; max. number of lines xlea met_f2_load,a0 ; menu header lea da_fname(a6),a2 ; pointer to current filename move.l a2,a4 lea da_fextn(a6),a3 ; default _tab extension move.l a3,d4 lea da_datad(a6),a3 ; data default directory tst.b d7 ; was it load or import beq.s gfnl_do moveq #0,d4 ; no extension for import xlea met_f2_import,a0 ; another menu name gfnl_do xjsr mu_fsel subend fil_oldf subr a0/a1 lea da_fname(a6),a1 lea da_oldf(a6),a0 xjsr ut_cpyst subend fil_sold subr a0/a1 lea da_fname(a6),a0 lea da_oldf(a6),a1 xjsr ut_cpyst subend * * save current file r_xsav reg a0-a4/d1-d4/d7 fil_xsav moveq #0,d0 ; save with current filename bra.s fil_savx fil_xsas moveq #1,d0 ; save with new filename bra.s fil_savx fil_xexp moveq #-1,d0 ; export file fil_savx movem.l r_xsav,-(sp) move.l d0,d7 bgt.s xsav_edt ; if new, do not set old filename bsr fil_oldf xsav_edt lea da_fname(a6),a2 ; pointer to current filename moveq #ioa.knew,d3 ; open key=new tst.b d7 bne.s xsav_sel tst.w (a2) bne.s xsav_try ; ok, filename exists xsav_sel bsr xsav_rdfn ; read/edit filename at a2 bmi xsav_no ; error bgt.s xsav_exit ; ESC moveq #ioa.knew,d3 ; open key=new xsav_try lea da_fname(a6),a0 xjsr gu_fopen ; open new file beq.s xsav_ok xsav_err tst.w da_backu(a6) ; backup of old file requested? beq.s xsav_er2 bsr xsav_bak moveq #ioa.kovr,d3 ; overwrite any old contents bra.s xsav_try xsav_er2 tst.w mv_stcr(a6) ; confirmation req.? beq.s yn_yes bsr fil_err ; errors... beq.s xsav_fnm ; esc'aped, give up moveq #ioa.knew,d3 subq.w #1,d0 beq.s xsav_try ; retry bra.s skip_yes yn_yes moveq #1,d0 ; assume overwrite skip_yes moveq #ioa.kovr,d3 subq.w #1,d0 beq.s xsav_try ; overwrite bra.s xsav_edt xsav_ok tst.b d7 bpl.s xsav_do lea mv_poef(a6),a1 ; link filter job tst.w (a1) beq.s xsav_xexp ; no filter, export normal xjsr flt_expt bne.s xsav_clos exg a0,a1 xsav_xexp xjsr fil_expo bra.s xsav_clos xsav_do move.l da_wwork(a6),a4 ; A4 is required! xjsr fil_save ; save file contents move.w #1,da_saved(a6) xsav_clos xjsr gu_fclos xsav_exit xsav_fnm tst.l d7 bpl.s xsav_nx bsr fil_sold ; restore old filename xsav_nx movem.l (sp)+,r_xsav bsr.s fil_setf moveq #0,d3 moveq #0,d4 rts xsav_no bsr fil_sold ; come here is file was not saved moveq #err.nc,d0 ; (restores old filename) bra.s xsav_exit ; Read filename xsav_rdfn subr d1-d3/a0-a3 moveq #-1,d1 ; origin clr.l d2 ; prepare for colourways ;;; move.b cols(a6),d2 ; subwindow colourways ;;; swap d2 ;;; move.b colm(a6),d2 ; main colourway lea txt_tab,a0 move.l a0,d4 xlea met_f2_save,a0 ; menu name move.l a2,a4 ; input buffer tst.l d7 ; export file? bpl.s rdfn_noxp lea txt_exp,a0 ; "_exp" move.l a0,d4 cmp.w #4,(a2) ; did we got problems ble.s problems subq.w #4,(a2) ; sub "_xxx" problems xlea met_f2_export,a0 ; use another menu name ;;;; suba.l a2,a2 ; do not suggest a name on export ;;;; moveq #0,d4 rdfn_noxp moveq #0,d5 lea da_datad(a6),a3 ; current directory xjsr mu_fsel bne.s rdfn_exit ; ESC or error tst.l d7 ; export-> no extension req. bmi.s rdfn_exp_exit move.l a3,a0 bsr fil_extn ; check for extension rdfn_exit tst.l d0 subend rdfn_exp_exit move.l a4,a0 lea txt_exp,a1 ; "_exp" xjsr ut_fextn bra.s rdfn_exit fil_setf subr a0-a3/d0-d3 move.l da_wmvec(a6),a2 move.l da_wwork(a6),a4 xjsr set_fnam moveq #-5,d3 ; redraw info window 2 jsr wm.idraw(a2) tst.l d0 bne do_kill subend txt_exp dc.w 4,'_exp' txt_bakap dc.w 4,'_bak' txt_tab dc.w 4,'_tab' xsav_bak subr a1/a2/d3/a0/d1 lea da_buff(a6),a0 ; copy filename info buffer move.l a2,a1 xjsr ut_cpyst lea txt_bakap(pc),a1 ; create backup filename xjsr st_appst move.l a2,-(sp) moveq #myself,d1 ; delete old backup file moveq #ioa.delf,d0 trap #do.ioa move.l (sp)+,a2 move.l a2,a0 moveq #ioa.kexc,d3 ; open old file xjsr gu_fopen bmi.s bak_exit moveq #iof.rnam,d0 ; rename as backup file lea da_buff(a6),a1 moveq #forever,d3 trap #do.io moveq #ioa.clos,d0 ; close backup file trap #do.ioa bak_exit subend ;+++ ; report a file error ; ; Entry Exit ; d0 error code -1 no file error ; 0 ESC ; 1 retry ; 2 overwrite ; 3 edit ;--- fil_err subr d1-d3 moveq #-1,d1 ;;; move.b colm(a6),d2 moveq #0,d2 moveq #1,d3 xjsr mu_filer tst.l d0 bmi do_kill subq.l #1,d0 beq.s err_esc move.l d3,d0 err_exit subend err_esc moveq #0,d0 bra.s err_exit * * confirmation to forget file conf_forg subr a3 move.w da_saved(a6),d0 bne.s conf_exit xlea ask_f2_forget,a3 xjsr ask_yn conf_exit subend * * forget sheet and setup a new one * r_forg reg a3 ; already definied fil_forg xjsr close_flash move.l a3,-(sp) move.l ww_wstat(a4),a1 bsr.s conf_forg ; confirmation to forget beq.s forg_exit forg_siz xjsr siz_puld cmpi.b #k.cancel,d4 ; intercepted? beq.s forg_exit * check for window manager error! move.l (a2),d0 sub.l #'1.45',d0 bgt.s fil_new move.w mv_sznc(a6),d0 mulu mv_sznr(a6),d0 cmp.l #$7fff,d0 bmi.s fil_new movem.l r_forg,-(sp) xlea ask_covr,a3 xjsr ask_yn movem.l (sp)+,r_forg beq forg_siz * fil_new move.w mv_sznc(a6),da_ncols(a6) ; set new grid size move.w mv_sznr(a6),da_nrows(a6) move.w #1,da_saved(a6) clr.w da_fname(a6) bsr.s forg_grd forg_exit move.l (sp)+,a3 xjsr open_flash rts do_kill xjmp kill ;+++ ; release all memory, set grid of new size and redraw window ; (gridsize is set in da_ncols/da_nrows) ; ;--- forg_grd subr a0-a3/d1-d3 xjsr dma_quit ; release complete dma bne.s grd_exit move.l da_miobl(a6),a0 ; release menu object space xjsr ut_rechp bne.s grd_exit move.l da_chan(a6),a0 xjsr setmol ; create new objects xjsr dma_frst ; set first dma block xjsr fnm_init ; format number initialisation xjsr glb_unit ; set global units format xjsr stt_init clr.w da_dupdt(a6) ; allow for display update move.w #1,da_saved(a6) ; file is saved move.l #0,da_cbx0(a6) ; first cell is selected move.l #0,da_usedx(a6) ; ..and the last currently used move.l #-1,da_cbx1(a6) xlea men_main,a3 lea wst_main(a6),a1 move.l da_wmvec(a6),a2 move.l da_winsz(a6),d1 move.l wsp_xorg(a1),d6 move.l wsp_xpos(a1),d5 add.l d5,d6 xjsr set_nset bne.s grd_exit move.l da_cbx0(a6),d1 bsr cel_topl moveq #0,d0 grd_exit tst.l d0 subend end
15.558333
60
0.703446
90e35839a1583417c3c8880e4f29d12e787ab94c
7,593
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1929.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1929.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1929.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 %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x13ece, %rax add $14802, %r15 movw $0x6162, (%rax) nop nop nop xor $38429, %rax lea addresses_WC_ht+0x8c9e, %rcx nop nop nop nop sub %r8, %r8 movb (%rcx), %r10b nop cmp $15072, %r15 lea addresses_WC_ht+0x929e, %rsi lea addresses_normal_ht+0x6e9e, %rdi nop nop nop nop add %rbp, %rbp mov $80, %rcx rep movsb nop cmp $51410, %rax lea addresses_normal_ht+0x14c9e, %rax inc %rsi movw $0x6162, (%rax) nop nop nop nop add $28832, %rbp lea addresses_normal_ht+0x1ec9e, %rsi nop nop nop nop nop sub $22597, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rsi) nop nop nop nop inc %rdi lea addresses_A_ht+0x819c, %rsi lea addresses_WC_ht+0x4b26, %rdi and $46134, %rbp mov $23, %rcx rep movsq nop nop nop sub %r8, %r8 lea addresses_A_ht+0x131f9, %rax and $124, %rdi and $0xffffffffffffffc0, %rax movaps (%rax), %xmm4 vpextrq $1, %xmm4, %rbp nop nop nop sub $23493, %rdi lea addresses_UC_ht+0x1109e, %rsi lea addresses_UC_ht+0x18538, %rdi clflush (%rsi) nop nop nop sub %r8, %r8 mov $49, %rcx rep movsl nop nop nop nop nop and $34497, %rax lea addresses_UC_ht+0x7c9e, %r8 nop nop nop nop dec %rsi movups (%r8), %xmm0 vpextrq $0, %xmm0, %r15 nop nop nop sub $30586, %rdi lea addresses_D_ht+0x859e, %rsi lea addresses_A_ht+0x4d2e, %rdi inc %r8 mov $47, %rcx rep movsb nop nop sub %r15, %r15 lea addresses_WC_ht+0x869e, %rax nop dec %rdi movb $0x61, (%rax) nop nop nop nop nop and %r10, %r10 lea addresses_WC_ht+0x389e, %rsi lea addresses_WC_ht+0x4c9e, %rdi nop xor %r15, %r15 mov $81, %rcx rep movsw nop nop nop add %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rax push %rbx push %rcx push %rdx // Store lea addresses_US+0x3f61, %rax nop cmp $2769, %r8 mov $0x5152535455565758, %r13 movq %r13, %xmm3 vmovntdq %ymm3, (%rax) nop nop nop nop xor $62632, %rax // Store lea addresses_WT+0x1ac9e, %rcx clflush (%rcx) nop nop cmp %r14, %r14 movw $0x5152, (%rcx) nop nop xor $49234, %r8 // Faulty Load lea addresses_A+0x1149e, %r14 xor %r8, %r8 movups (%r14), %xmm6 vpextrq $0, %xmm6, %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.513636
2,999
0.657579
d7fe441a2895789c311d23eeac956967db45c7e7
364
asm
Assembly
programs/oeis/029/A029918.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/029/A029918.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/029/A029918.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A029918: Convert n from meters to feet. ; 0,3,7,10,13,16,20,23,26,30,33,36,39,43,46,49,52,56,59,62,66,69,72,75,79,82,85,89,92,95,98,102,105,108,112,115,118,121,125,128,131,135,138,141,144,148,151,154,157,161,164,167,171,174,177,180,184,187,190,194 mul $0,7 mov $1,$0 add $0,4 mov $2,$1 add $2,$1 div $2,32 sub $0,$2 div $0,2 sub $0,1 mul $0,6 sub $0,6 div $0,6
22.75
207
0.653846
03a60d3c5c701cc88a016ebfe73f9e5f0e2ca34a
16,600
asm
Assembly
Driver/IFS/GEOS/Common/gfsInitExit.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/IFS/GEOS/Common/gfsInitExit.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/IFS/GEOS/Common/gfsInitExit.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: MODULE: FILE: gfsInitExit.asm AUTHOR: Adam de Boor, Apr 13, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 4/13/93 Initial revision DESCRIPTION: From the filename, you'd probably think this was initialization and exit routines for the driver, and you'd be right... $Id: gfsInitExit.asm,v 1.1 97/04/18 11:46:27 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Init segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize the driver. CALLED BY: DR_INIT PASS: nothing RETURN: carry set on error DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: Call the device-specific routine to initialize the device. If that's happy, register with the kernel and create the sole drive we manage. At some point, we'll want to add ourselves to SP_TOP REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GFSInit proc far if _PCMCIA ret else .enter ; ; See if the primary FSD has been loaded yet and ensure its aux ; protocol number is compatible. ; mov ax, GDDT_FILE_SYSTEM call GeodeGetDefaultDriver tst ax jz fail ; not loaded, so we can do ; nothing mov_tr bx, ax call GeodeInfoDriver mov ax, ds:[si].FSDIS_altStrat.offset mov bx, ds:[si].FSDIS_altStrat.segment mov cx, ds:[si].FSDIS_altProto.PN_major mov dx, ds:[si].FSDIS_altProto.PN_minor segmov ds, dgroup, di mov ds:[gfsPrimaryStrat].offset, ax mov ds:[gfsPrimaryStrat].segment, bx cmp cx, DOS_PRIMARY_FS_PROTO_MAJOR jne fail cmp dx, DOS_PRIMARY_FS_PROTO_MINOR jb fail ; ; Initialize the device. ; call GFSDevInit jc done call GFSInitVerifyFS jc closeFail ; ; That was successful, so register with the system. ; call GFSInitRegister ; ; For some devices, we will now want to re-open all of the running ; geodes so that they are read from the megafile. ; FILE < call GFSReOpenAllGeodes > ; ; For some devices, we may want to remove the bootstrap directory ; from SP_TOP once we are loaded, to prevent dir scans which can ; be handled by the MegaFile from scanning the bootstrap directory. ; (This is enabled by a key in the .INI file.) ; FILE < call GFSForgetBootstrapDir > clc done: .leave ret closeFail: ; ; Couldn't get root directory, so close the device again before ; returning failure. ; call GFSDevExit fail: stc jmp done endif GFSInit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSInitVerifyFS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure the filesystem we just opened is something we can handle and record its parameters CALLED BY: (INTERNAL) GFSInit PASS: nothing RETURN: carry set on error DESTROYED: ax, cx, dx, es, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/16/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if not _PCMCIA GFSInitVerifyFS proc near .enter ; ; Fetch the root directory and filesystem header block ; clr al call GFSDevLock clrdw dxax mov cx, size GFSDirEntry + size GFSFileHeader segmov es, dgroup, di CheckHack <offset gfsRootDir eq offset gfsFileHeader + size gfsFileHeader> mov di, offset gfsFileHeader call GFSDevRead call GFSDevUnlock jc fail ; ; Make sure we understand the filesystem. ; cmp {word}es:[gfsFileHeader].GFSFH_signature[0], 'G' or ('F' shl 8) jne fail cmp {word}es:[gfsFileHeader].GFSFH_signature[2], 'S' or (':' shl 8) jne fail cmp es:[gfsFileHeader].GFSFH_versionMajor, GFS_PROTO_MAJOR jne fail cmp es:[gfsFileHeader].GFSFH_versionMinor, GFS_PROTO_MINOR ja fail ; ; Figure the location of its extended attributes and save that. ; movdw dxax, <size GFSFileHeader> mov cx, 1 call GFSDevFirstEA movdw es:[gfsRootEA], dxax clc done: .leave ret fail: stc jmp done GFSInitVerifyFS endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSInitRegister %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Register ourselves and our filesystem with the system. CALLED BY: (INTERNAL) GFSInit PASS: nothing RETURN: gfsFSD and gfsDrive set DESTROYED: ax, bx, cx, dx, di, ds SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/16/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if not _PCMCIA GFSInitRegister proc near .enter ; ; Register ourselves. ; mov cx, segment GFSStrategy mov dx, offset GFSStrategy mov ax, FSD_FLAGS mov bx, handle 0 clr di ; no private data stored with disk call FSDRegister segmov ds, dgroup, ax mov ds:[gfsFSD], dx ; ; Create the lone drive we manage. ; mov al, -1 mov ah, MEDIA_FIXED_DISK mov cx, mask DES_LOCAL_ONLY or mask DES_READ_ONLY or \ mask DS_PRESENT or \ (DRIVE_FIXED shl offset DS_TYPE) mov si, offset gfsDriveName call FSDInitDrive ; ; Remember the thing for later. ; segmov ds, dgroup, ax mov ds:[gfsDrive], dx .leave ret GFSInitRegister endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSReOpenAllGeodes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Attempt to re-open all of the running geodes so that they are read from the megafile. CALLED BY: GFSInit PASS: nothing RETURN: nothing DESTROYED: all (like its caller) SIDE EFFECTS: files opened and closed, coreblocks updated. PSEUDO CODE/STRATEGY: Scan the list of geodes. For each: lock its coreblock get its permanent name use the permanent name to lookup the path and filename for the .GEO file for that geode call kernel to open that file compare the serial numbers for the two files if same, then stuff the new file handle into the coreblock, getting the old handle close the old .GEO file else close the new .GEO file unlock the coreblock REVISION HISTORY: Name Date Description ---- ---- ----------- eds 4/18/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _FILE GFSReOpenAllGeodes proc near ;in case we decide to open any files, save our current dir call FilePushDir ;scan the list of geodes clr bx mov di, SEGMENT_CS mov si, offset GFSReOpenAllGeodes_callback call GeodeForEach call FilePopDir ret GFSReOpenAllGeodes endp ;called from GeodeForEach. BX = geode handle .assert (size GH_geodeSerial eq 2) GFSReOpenAllGeodes_callback proc far newSerialNumber local word ;holds GH_geodeSerial value .enter ;Lock the coreblock, and loop through our list of well-known geode ;permanent names, to see if we can handle this geode. push bx call MemLock ;lock the coreblock mov ds, ax ;ds = coreblock for geode tst ds:[GH_geoHandle] ;If the geode is XIPed, don't bother jz finishUp ; reopening the fucking thing segmov es, cs, ax ;es:di = lookup table mov di, (offset geodeInfoList) - (size GeodeInfoListEntry) searchLoop: ;for each entry in the table: add di, size GeodeInfoListEntry ;es:di = GeodeInfoListEntry tst es:[di].GILE_sysRelPathAndName jz finishUp ;skip if reached end of table... mov si, offset GH_geodeName ;ds:si = permanent name for this geode push di mov cx, GEODE_NAME_SIZE ;cx = number of chars to compare repe cmpsb ;compare (case sensitive, but fast) pop di jne searchLoop ;loop if not found foundName:: ;Found the permanent name in our table, so we will want to re-open ;this file. First, see which disk the file is currently opened on. segxchg ds, es ;ds:di = GeodeInfoListEntry ;es = coreblock mov bx, es:[GH_geoHandle] ;bx = existing .GEO file handle call FileGetDiskHandle mov cx, bx ;cx = disk handle for that file ;Try to re-open the .GEO file. mov dx, ds:[di].GILE_sysRelPathAndName ;ds:dx = filename mov ax, SP_SYSTEM ;go to the SYSTEM directory call FileSetStandardPath mov al, FileAccessFlags <FE_DENY_WRITE, FA_READ_ONLY> call FileOpen jc finishUp ;ignore if any file error... ;See if both files are on the same disk. If so, no need to re-open. mov bx, ax ;bx = new file handle call FileGetDiskHandle ;set bx = disk handle for new file cmp bx, cx ;same as existing file? mov bx, ax ;in any case, set bx = new file handle je closeFile ;skip if so (the existing file was ;already opened from the megafile, ;or from the local tree)... ;Make sure that the serial numbers are IDENTICAL. Otherwise, ;next time we try to read a resource in from the file, we may read ;garbage. .assert (offset GFH_coreBlock.GH_geodeSerial) lt 256 clr cx mov dx, offset GFH_coreBlock.GH_geodeSerial mov al, FILE_POS_START call FilePos ;seek to the location of the serial # segmov ds, ss, ax lea dx, newSerialNumber ;ds:dx = stack frame to hold new ser # mov cx, size GH_geodeSerial clr ax ;we can handle errors call FileRead ;read CX bytes to DS:DX jc closeFile ;skip if there was an error mov si, dx mov ax, ds:[si] ;grab new file's serial # cmp ax, es:[GH_geodeSerial] ;compare the two serial numbers EC < WARNING_NE CANNOT_ADOPT_BOOTSTRAP_EXEC_FILE_BECAUSE_SERIAL_NUMBER_DIFFERS > jne closeFile ;skip if they are not the same... adoptNewFile:: ;we can adopt this new file. Stuff it's handle into ;the coreblock, then fallthru to close the old file xchg bx, es:[GH_geoHandle] ;bx = old file closeFile: ;close the old file, or the new file, depending on how we are called mov al, FILE_NO_ERRORS call FileClose finishUp: pop bx ;^hbx = coreblock handle call MemUnlock ;unlock the coreblock clc ;continue with next geode .leave ret GFSReOpenAllGeodes_callback endp ;each of the entries in our lookup table looks like this: GeodeInfoListEntry struc GILE_permName char GEODE_NAME_SIZE dup (?) ;8 character geode permanent name GILE_sysRelPathAndName nptr.char ;offset to path and filename string GeodeInfoListEntry ends .assert (GEODE_NAME_SIZE eq 8) geodeInfoList GeodeInfoListEntry \ <"geos ", geosSysRelPath>, <"ms4 ", ms4SysRelPath>, <"ms3 ", ms3SysRelPath>, <"megafile", megafileSysRelPath>, <"os2 ", os2SysRelPath>, <"dri ", driSysRelPath>, <"msnet ", msnetSysRelPath>, <"cdrom ", cdromSysRelPath>, <0, 0> ;end of list NEC < geosSysRelPath char "geos.geo", 0 > EC < geosSysRelPath char "geosec.geo", 0 > NEC < ms4SysRelPath char "fs\\\\ms4.geo", 0 > EC < ms4SysRelPath char "fs\\\\ms4ec.geo", 0 > NEC < ms3SysRelPath char "fs\\\\ms3.geo", 0 > EC < ms3SysRelPath char "fs\\\\ms3ec.geo", 0 > NEC < megafileSysRelPath char "fs\\\\megafile.geo", 0 > EC < megafileSysRelPath char "fs\\\\megafile.geo", 0 > ;NOTE: IS 8.3 FILENAME, NOT 9.3 NEC < os2SysRelPath char "fs\\\\os2.geo", 0 > EC < os2SysRelPath char "fs\\\\os2ec.geo", 0 > NEC < driSysRelPath char "fs\\\\dri.geo", 0 > EC < driSysRelPath char "fs\\\\driec.geo", 0 > NEC < msnetSysRelPath char "fs\\\\msnet.geo", 0 > EC < msnetSysRelPath char "fs\\\\msnetec.geo", 0 > NEC < cdromSysRelPath char "fs\\\\cdrom.geo", 0 > EC < cdromSysRelPath char "fs\\\\cdromec.geo", 0 > endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSForgetBootstrapDir %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if we want to forget about the bootstrap directory, by dropping it from the SP_TOP list. CALLED BY: GFSInit PASS: nothing RETURN: nothing DESTROYED: all (like its caller) SIDE EFFECTS: SP_TOP changed in (loaderVars.KLV_stdDirPaths) PSEUDO CODE/STRATEGY: if there is a "bootstrapPath = PATH" key in the [gfs] category, then call FileDeleteStandardPathDirectory to delete it from the list of standard paths. In the future, we may also want to update other standard paths. REVISION HISTORY: Name Date Description ---- ---- ----------- eds 4/19/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _FILE gfsKeyStr2 char 'gfs', 0 bootstrapPathKeyStr char 'bootstrapPath', 0 GFSForgetBootstrapDir proc near bootstrapPath local PathName .enter ; ; Fetch the name for the drive; use the default if nothing specified ; segmov es, ss, di ;es:di = destination buffer lea di, bootstrapPath segmov ds, cs, si mov si, offset gfsKeyStr2 ;ds:si = category string mov cx, cs ;cx:dx = key to find mov dx, offset bootstrapPathKeyStr push bp mov bp, (IFCC_INTACT shl offset IFRF_CHAR_CONVERT) or \ (size PathName) call InitFileReadString pop bp jc done ;skip if not found... ; ; Ask the kernel to nuke this path from the SP_TOP list. Will be ignored ; if is the FIRST SP_TOP path. ; segmov ds, es, ax ;ds:dx = path to delete mov dx, di mov ax, SP_TOP ;nuke it from the SP_TOP list call FileDeleteStandardPathDirectory ;ignore errors done: .leave ret GFSForgetBootstrapDir endp endif Init ends Resident segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSExit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Finish with the device. CALLED BY: DR_EXIT PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: no further access to any file on the filesystem is allowed. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GFSExit proc far .enter call GFSDevExit .leave ret GFSExit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSSuspend %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Suspend access to the filesystem CALLED BY: DR_SUSPEND PASS: cx:dx = buffer in which to place reason for refusal, if suspension refused RETURN: carry set if suspension refused cx:dx = buffer filled with null-terminated reason, standard PC/GEOS character set. carry clear if suspension approved DESTROYED: ax, di allowed SIDE EFFECTS: PSEUDO CODE/STRATEGY: Perhaps we should close the device here? It's not likely to be in the extended SFT, but you never know... REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GFSSuspend proc far .enter clc .leave ret GFSSuspend endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GFSUnsuspend %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Unsuspend access to the filesystem CALLED BY: DR_UNSUSPEND PASS: nothing RETURN: nothing DESTROYED: ax, di allowed SIDE EFFECTS: PSEUDO CODE/STRATEGY: Undo what we did in GFSSuspend. Currently, nothing. REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GFSUnsuspend proc far .enter clc .leave ret GFSUnsuspend endp Resident ends
24.924925
81
0.598916
9106869119557118c1e9c39ec3eb718692835564
326
asm
Assembly
data/mapHeaders/SafariZoneSecretHouse.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapHeaders/SafariZoneSecretHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapHeaders/SafariZoneSecretHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SafariZoneSecretHouse_h: db LAB ; tileset db SAFARI_ZONE_SECRET_HOUSE_HEIGHT, SAFARI_ZONE_SECRET_HOUSE_WIDTH ; dimensions (y, x) dw SafariZoneSecretHouse_Blocks ; blocks dw SafariZoneSecretHouse_TextPointers ; texts dw SafariZoneSecretHouse_Script ; scripts db 0 ; connections dw SafariZoneSecretHouse_Object ; objects
36.222222
87
0.843558
2968a7491c1b57ff441c4e4f63f4f9aa8b9412b9
358
asm
Assembly
programs/oeis/190/A190676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/190/A190676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/190/A190676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A190676: [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(3),3,0) and [ ]=floor. ; 2,1,0,2,1,1,0,2,1,0,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,0,2,1,0,2,2,1,0,2,1,1,0,2,1,0,0,2,1,0 mul $0,3 add $0,2 seq $0,83054 ; a(n) = floor(sqrt(3)*n) - 3*floor(n/sqrt(3)).
51.142857
201
0.511173
0c7a047bea8a3d34547527edf703e4aeba7945d1
361
asm
Assembly
programs/oeis/072/A072731.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/072/A072731.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/072/A072731.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A072731: Difference of numbers of composite and prime numbers <= n. ; 0,-1,-2,-1,-2,-1,-2,-1,0,1,0,1,0,1,2,3,2,3,2,3,4,5,4,5,6,7,8,9,8,9,8,9,10,11,12,13,12,13,14,15,14,15,14,15,16,17,16,17,18,19,20,21,20,21,22,23,24,25,24,25,24,25,26,27,28,29,28,29,30,31,30,31,30,31,32,33,34 mov $2,$0 cal $0,65855 ; Number of composites <= n. mov $1,$0 sub $1,$2 add $1,$0
40.111111
207
0.617729
ae1a9493b6d71a754084b0baaafb6266a6062778
2,324
asm
Assembly
dino/lcs/etc/5E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/etc/5E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/etc/5E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004D3E move.l D0, (A4)+ 004D40 dbra D1, $4d38 010D2E cmp.b ($5e,A3), D0 [123p+ 5E] 010D32 beq $10dca 010D52 move.b ($5e,A2), ($5e,A3) 010D58 move.b ($2,A2), ($2,A3) [etc+5E] 0124AE move.b ($5e,A2), ($5e,A3) 0124B4 move.b #$2, ($0,A3) [etc+5E] 07E74C move.l A4, ($5c,A0) [etc+5A] 07E750 moveq #$0, D0 [etc+5E] 07E792 move.l A4, ($5c,A0) [etc+5A] 07E796 move.w #$8, ($26,A0) [etc+5E] 08C082 move.b ($67be,A5), ($5e,A6) 08C088 addq.b #1, ($67be,A5) [etc+5E] 08C0E2 move.b ($67be,A5), ($5e,A6) 08C0E8 addq.b #1, ($67be,A5) [etc+5E] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
68.352941
350
0.645009
635b538840f66031da88f237f9a345cd35eea8d0
9,260
asm
Assembly
software/rom/bios_string.asm
JCLemme/eprisc
05a792c1845982bf5571e2eed5e3f3cef845d2e2
[ "MIT" ]
null
null
null
software/rom/bios_string.asm
JCLemme/eprisc
05a792c1845982bf5571e2eed5e3f3cef845d2e2
[ "MIT" ]
null
null
null
software/rom/bios_string.asm
JCLemme/eprisc
05a792c1845982bf5571e2eed5e3f3cef845d2e2
[ "MIT" ]
null
null
null
; epRISC development platform - BIOS string and text routines ; ; written by John C. Lemme, jclemme (at) proportionallabs (dot) com ; this file is part of the epRISC project, released under the epRISC license - see "license.txt" for details. ; ; These routines deal with printing strings, numbers, and other text to the user. Relies on UART-style character printing. !zone str_hnum !def REG_INPT %Zw !def REG_WORK %Zx !def REG_CONT %Zy :str_hnum push.r s:REG_INPT push.r s:REG_WORK push.r s:REG_CONT subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_INPT ; Get the number we're supposed to print move.v d:REG_CONT v:#h08 addr.v d:%SP a:%SP v:#h05 ; Set up the stack :.ploop andb.v d:REG_WORK a:REG_INPT v:#hF0 s:#h0C arsl.v d:REG_INPT a:REG_INPT v:#h04 losr.v d:REG_WORK a:REG_WORK v:#h1C ; Grab a nybble addr.v d:REG_WORK a:REG_WORK v:#h30 ; Make it an ASCII number cmpr.v a:REG_WORK v:#h3A brch.a c:%LOW a:.prest ; Hex needs a little more addr.v d:REG_WORK a:REG_WORK v:#h07 :.prest push.r s:REG_WORK call.s a:ser_send ;call.s a:vga_putc pops.r d:REG_WORK ; Print it subr.v d:REG_CONT a:REG_CONT v:#h01 cmpr.v a:REG_CONT v:#h00 brch.a c:%NEQ a:.ploop ; Repeat pops.r d:REG_CONT pops.r d:REG_WORK pops.r d:REG_INPT rtrn.s ; And return !zone str_lnum !def REG_INPT %Zw !def REG_CONT %Zx !def REG_WORK %Zy :str_lnum push.r s:REG_INPT push.r s:REG_CONT push.r s:REG_WORK subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_CONT ; Get the number we're supposed to print pops.r d:REG_INPT addr.v d:%SP a:%SP v:#h06 ; Set up the stack push.r s:REG_CONT push.r s:REG_INPT move.v d:REG_INPT v:#h08 subr.r d:REG_CONT a:REG_INPT b:REG_CONT arsl.v d:REG_CONT a:REG_CONT v:#h02 pops.r d:REG_INPT arsl.r d:REG_INPT a:REG_INPT b:REG_CONT pops.r d:REG_CONT ; Preshift for length selection :.ploop andb.v d:REG_WORK a:REG_INPT v:#hF0 s:#h0C arsl.v d:REG_INPT a:REG_INPT v:#h04 losr.v d:REG_WORK a:REG_WORK v:#h1C ; Grab a nybble addr.v d:REG_WORK a:REG_WORK v:#h30 ; Make it an ASCII number cmpr.v a:REG_WORK v:#h3A brch.a c:%LOW a:.prest ; Hex needs a little more addr.v d:REG_WORK a:REG_WORK v:#h07 :.prest push.r s:REG_WORK call.s a:ser_send ;call.s a:vga_putc pops.r d:REG_WORK ; Print it subr.v d:REG_CONT a:REG_CONT v:#h01 cmpr.v a:REG_CONT v:#h00 brch.a c:%NEQ a:.ploop ; Repeat pops.r d:REG_WORK pops.r d:REG_CONT pops.r d:REG_INPT rtrn.s ; And return !zone str_getc !def REG_SADR %Zw !def REG_WORD %Zx !def REG_ICHR %Zy !def REG_RTRN %Zz :str_getc push.r s:REG_SADR push.r s:REG_WORD push.r s:REG_ICHR subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_WORD ; Get the index pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h06 ; Set up the stack move.r d:REG_ICHR s:REG_WORD ; Copy index to ichr arsr.v d:REG_WORD a:REG_WORD v:#h02 ; Divide index in word by 4 addr.r d:REG_SADR a:REG_SADR b:REG_WORD load.o d:REG_RTRN r:REG_SADR ; Load correct word into rtrn move.v d:REG_WORD v:#h03 ; Move 3 into word andb.v d:REG_ICHR a:REG_ICHR v:#h03 ; Mask off upper 30 of ichr subr.r d:REG_ICHR a:REG_WORD b:REG_ICHR ; Subtract ichr from word into ichr arsl.v d:REG_ICHR a:REG_ICHR v:#h03 ; Multiply ichr by 8 masr.r d:REG_RTRN a:REG_RTRN b:REG_ICHR v:#hFF ; Mask and shift right rtrn by ichr pops.r d:REG_ICHR pops.r d:REG_WORD pops.r d:REG_SADR rtrn.s ; And return !zone str_puts !def REG_SADR %Zw !def REG_CONT %Zx !def REG_RTRN %Zz :str_puts push.r s:REG_SADR push.r s:REG_CONT subr.v d:%SP a:%SP v:#h03 ; Set up the stack move.v d:REG_CONT v:#h00 pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h04 ; Set up the stack push.r s:REG_SADR ; Get the address on the stack :.strloop push.r s:REG_CONT call.s a:str_getc pops.r d:REG_CONT ; Get a character cmpr.v a:%Zz v:#h00 ; Is it zero? brch.a c:%EQL a:.strend ; If so, exit push.r s:%Zz call.s a:ser_send ;call.s a:vga_putc pops.r d:%Zz ; Print it addr.v d:REG_CONT a:REG_CONT v:#h01 ; Increment counter brch.a a:.strloop ; Jump to top of loop :.strend pops.r d:REG_SADR pops.r d:REG_CONT pops.r d:REG_SADR rtrn.s ; And return !zone str_putsl !def REG_SADR %Zw !def REG_ENDA %Zx !def REG_CONT %Zy !def REG_RTRN %Zz :str_putsl push.r s:REG_SADR push.r s:REG_ENDA push.r s:REG_CONT subr.v d:%SP a:%SP v:#h04 ; Set up the stack move.v d:REG_CONT v:#h00 pops.r d:REG_ENDA ; Get the string length pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h06 ; Set up the stack push.r s:REG_SADR ; Get the address on the stack :.strloop push.r s:REG_CONT call.s a:str_getc pops.r d:REG_CONT ; Get a character cmpr.v a:%Zz v:#h00 ; Is it zero? brch.a c:%EQL a:.strend ; If so, exit push.r s:%Zz call.s a:ser_send ;call.s a:vga_putc pops.r d:%Zz ; Print it addr.v d:REG_CONT a:REG_CONT v:#h01 ; Increment counter subr.v d:REG_ENDA a:REG_ENDA v:#h01 ; Increment counter cmpr.v a:REG_ENDA v:#h00 ; Are we done? brch.a c:%NEQ a:.strloop ; If so, jump to top of loop :.strend pops.r d:REG_SADR pops.r d:REG_CONT pops.r d:REG_ENDA pops.r d:REG_SADR rtrn.s ; And return
47.487179
122
0.391577
d8d8d1e1c7da6a8b5c68f7f53f44061e23733788
2,580
asm
Assembly
kernel/compiler/com_execute.asm
paulscottrobson/color-forth-old-next
3fbec603078f187e29852821f824c35cca68bb42
[ "MIT" ]
1
2020-06-10T09:57:08.000Z
2020-06-10T09:57:08.000Z
kernel/compiler/com_execute.asm
paulscottrobson/color-forth-old-next
3fbec603078f187e29852821f824c35cca68bb42
[ "MIT" ]
1
2020-06-25T07:46:16.000Z
2020-07-02T09:17:12.000Z
kernel/compiler/com_execute.asm
paulscottrobson/color-forth-old-next
3fbec603078f187e29852821f824c35cca68bb42
[ "MIT" ]
null
null
null
; *************************************************************************************** ; *************************************************************************************** ; ; Name : com_execute.asm ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 8th December 2018 ; Purpose : Executes a yellow word. ; ; *************************************************************************************** ; *************************************************************************************** ; *************************************************************************************** ; ; Execute the Yellow tagged word at BC ; ; *************************************************************************************** COMXExecuteYellowWord: ld a,$00 ; search in dictionary call DICTFindWord jr nc,__COMXExecute call CONSTConvert ; try to convert it as a constant jp c,COMError ; ; HL is a constant to push on the stack, which is kept in IX+0,IX+1 ; __COMXConstant: ex de,hl ; constant in DE ld l,(ix+4) ; stack pointer value in HL ld h,(ix+5) dec hl ; now do "Push DE" ld (hl),d dec hl ld (hl),e ld (ix+4),l ; and put the stack pointer back ld (ix+5),h ret ; ; Execute the word at E:HL ; __COMXExecute: call COMXExecuteEHL ret ; *************************************************************************************** ; ; Execute the word at E:HL using the decached stack store at (IX+4/5) ; ; *************************************************************************************** COMXExecuteEHL: push bc ; save BC ld a,e ; switch to the page this is on. call PAGESwitch ex de,hl ; put the routine address in DE. ld hl,$0000 add hl,sp ld (ix+8),l ; put the current pointer in IX+8/9 ld (ix+9),h ld l,(ix+4) ; get the stack pointer into HL ld h,(ix+5) ld sp,hl pop hl ; cache the stack except TOS in HL ex de,hl ; now TOS in DE, address in HL call __COMXCallHL ; call the Call (HL) routine push de ; decache the stack. ld ix,(__COMPStackPointer) ; reget the stack value. If this recurses back this should be right. ld hl,$0000 ; get the SP value add hl,sp ld (ix+4),l ; update in IX structure ld (ix+5),h ld l,(ix+8) ; retrieve SP value ld h,(ix+9) ld sp,hl ; put in SP pop bc ; restore BC ret ; and return. __COMXCallHL: jp (hl)
29.655172
102
0.412791
1bec66040a705eff2fd65617747e54fef16d89d4
2,926
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64w/k8/sumdiff_n.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64w/k8/sumdiff_n.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64w/k8/sumdiff_n.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
; PROLOGUE(mpn_sumdiff_n) ; Version 1.0.4 ; ; Copyright 2008 Jason Moxham ; ; Windows Conversion Copyright 2008 Brian Gladman ; ; This file is part of the MPIR Library. ; ; The MPIR Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Free Software Foundation; either version 2.1 of the License, or (at ; your option) any later version. ; The MPIR Library is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public ; License for more details. ; You should have received a copy of the GNU Lesser General Public License ; along with the MPIR Library; see the file COPYING.LIB. If not, write ; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ; Boston, MA 02110-1301, USA. ; ; rcx[r10] = r8[r10] + r9[r10] ; rdx[r10] = r8[r10] - r9[r10] ; ; return 2 * add_carry + sub_borrow ; ; mp_limb_t mpn_sumdiff_n(mp_ptr, mp_ptr, mp_ptr, mp_ptr, mp_size_t) ; rax rdi rsi rdx rcx r8 ; rax rcx rdx r8 r9 [rsp+40] %include "yasm_mac.inc" %define reg_save_list rsi, rdi, r12, r13, r14, r15, rbx, rbp CPU Athlon64 BITS 64 FRAME_PROC mpn_sumdiff_n, 0, reg_save_list mov r10, qword [rsp+stack_use+40] lea rdx, [rdx+r10*8] lea r8, [r8+r10*8] lea rcx, [rcx+r10*8] lea r9, [r9+r10*8] neg r10 xor r12, r12 xor r11, r11 test r10, 3 jz .2 .1: mov rax, [r8+r10*8] mov r13, rax add r12, 1 adc rax, [r9+r10*8] sbb r12, r12 add r11, 1 sbb r13, [r9+r10*8] sbb r11, r11 mov [rcx+r10*8], rax mov [rdx+r10*8], r13 inc r10 test r10, 3 jnz .1 .2: cmp r10, 0 jz .4 xalign 16 .3: mov rax, [r8+r10*8] mov rsi, [r8+r10*8+8] mov rdi, [r8+r10*8+16] mov rbp, [r8+r10*8+24] mov r13, rax mov r14, rsi mov r15, rdi mov rbx, rbp add r12, 1 adc rax, [r9+r10*8] adc rsi, [r9+r10*8+8] adc rdi, [r9+r10*8+16] adc rbp, [r9+r10*8+24] sbb r12, r12 add r11, 1 sbb r13, [r9+r10*8] sbb r14, [r9+r10*8+8] sbb r15, [r9+r10*8+16] sbb rbx, [r9+r10*8+24] sbb r11, r11 mov [rcx+r10*8], rax mov [rcx+r10*8+8], rsi mov [rcx+r10*8+16], rdi mov [rcx+r10*8+24], rbp mov [rdx+r10*8], r13 mov [rdx+r10*8+8], r14 mov [rdx+r10*8+16], r15 mov [rdx+r10*8+24], rbx add r10, 4 jnz .3 .4: lea rax, [r11+r12*2] neg rax END_PROC reg_save_list end
28.134615
77
0.556049
44ac116925ba159719fc7a062e1aa2cca404d264
1,511
asm
Assembly
libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_input_reader.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_input_reader.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_input_reader.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; cpm_00_input_reader ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; The reader is read via bdos function 3. ; Does not return until a character is read. ; ; ;;;;;;;;;;;;;;;;;;;; ; DRIVER CLASS DIAGRAM ; ;;;;;;;;;;;;;;;;;;;; ; ; CHARACTER_00_INPUT (root, abstract) ; CPM_00_INPUT_READER (concrete) ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; MESSAGES CONSUMED FROM STDIO ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * STDIO_MSG_GETC ; * STDIO_MSG_EATC ; * STDIO_MSG_READ ; * STDIO_MSG_SEEK ; * STDIO_MSG_FLSH ; * STDIO_MSG_ICTL ; * STDIO_MSG_CLOS ; ; Others result in enotsup_zc. ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; MESSAGES CONSUMED FROM CHARACTER_00_INPUT ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * ICHAR_MSG_GETC ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; IOCTLs UNDERSTOOD BY THIS DRIVER ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * IOCTL_RESET ; ; * IOCTL_ICHAR_CRLF ; enable / disable crlf processing ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;; ; BYTES RESERVED IN FDSTRUCT ; ;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; offset (wrt FDSTRUCT.JP) description ; ; 8..13 mutex SECTION code_driver SECTION code_driver_character_input PUBLIC cpm_00_input_reader EXTERN ICHAR_MSG_GETC EXTERN cpm_00_input_reader_ichar_msg_getc, character_00_input cpm_00_input_reader: cp ICHAR_MSG_GETC jp z, cpm_00_input_reader_ichar_msg_getc jp character_00_input ; forward to library
22.552239
63
0.505625
9513d535471a1f004d9f95608693ae6d14a9a881
359
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sccz80/p_forward_list_alt_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void p_forward_list_alt_init(void *p) SECTION code_clib SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_init EXTERN asm_p_forward_list_alt_init defc p_forward_list_alt_init = asm_p_forward_list_alt_init ; SDCC bridge for Classic IF __CLASSIC PUBLIC _p_forward_list_alt_init defc _p_forward_list_alt_init = p_forward_list_alt_init ENDIF
18.894737
58
0.877437
d1880df9caa766c5405f0c4fcae4ae8ac81ebd50
3,649
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1776.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_1776.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_1776.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 %r8 push %rbp // Faulty Load lea addresses_A+0x4903, %rbp clflush (%rbp) nop nop mfence mov (%rbp), %r8w lea oracles, %r10 and $0xff, %r8 shlq $12, %r8 mov (%r10,%r8,1), %r8 pop %rbp pop %r8 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
93.564103
2,999
0.662921
86da5688221c1543589983d243cc7a0d8625ea91
1,583
asm
Assembly
kernel.asm
CarlosHenrique13/Estudos-D.S.0.S
ddab00e4b1fdff0aa965be0e503deea4bb2444b4
[ "MIT" ]
null
null
null
kernel.asm
CarlosHenrique13/Estudos-D.S.0.S
ddab00e4b1fdff0aa965be0e503deea4bb2444b4
[ "MIT" ]
null
null
null
kernel.asm
CarlosHenrique13/Estudos-D.S.0.S
ddab00e4b1fdff0aa965be0e503deea4bb2444b4
[ "MIT" ]
null
null
null
%INCLUDE "Hardware/memory.lib" [BITS SYSTEM] [ORG KERNEL] jmp OSMain ; _____________________________________________ ; Directives and Inclusions ___________________ %INCLUDE "Hardware/monitor.lib" %INCLUDE "Hardware/disk.lib" %INCLUDE "Hardware/win16.lib" %INCLUDE "Hardware/win3dmov.lib" %INCLUDE "Hardware/keyboard.lib" %INCLUDE "Hardware/fontswriter.lib" ; _____________________________________________ ; _____________________________________________ ; Starting the System _________________________ OSMain: call ConfigSegment call ConfigStack call VGA.SetVideoMode call DrawBackground call EffectInit call DriversInstall ;alt ;jmp GraficInterface jmp SystemKernel ; _____________________________________________ ; _____________________________________________ ; Kernel Functions ____________________________ SystemKernel: ;alt call KEYBOARD_HANDLER cmp al, 0x3B je END jmp SystemKernel DriversInstall: __Keyboard_Drive_Load call KEYBOARD_INSTALL __Fonts_Writer_Load ret GraficInterface: __LoadInterface mov word[PositionX], 100 mov word[PositionY], 10 mov word[W_Width], 120 mov word[W_Height], 120 mov cx, _WALL Start: WallPaper cx, SCREEN_WIDTH, SCREEN_HEIGHT, 40, 20 Window3D MOVABLE, word[PositionX], word[PositionY], word[W_Width], word[W_Height] cmp al, 2 je Start jmp END ConfigSegment: cld mov ax, es mov ds, ax ret ConfigStack: cli mov ax, 7D00h mov ss, ax mov sp, 3000h sti ret END: mov ax, 0040h mov ds, ax mov ax, 1234h mov [0072h], ax jmp 0FFFFh:0000h ; _____________________________________________
17.395604
82
0.794694
10e1c58686ccccef44fa7d8f82fd7a09cdb8ceaf
474
asm
Assembly
examples/division.asm
Calysto/calysto_littlecomputer
12f3913eca6e03c9d979c6ae54f4e3d4df4bce82
[ "BSD-2-Clause" ]
4
2015-08-20T16:07:08.000Z
2018-03-01T13:16:16.000Z
examples/division.asm
Calysto/calysto_lc3
12f3913eca6e03c9d979c6ae54f4e3d4df4bce82
[ "BSD-2-Clause" ]
null
null
null
examples/division.asm
Calysto/calysto_lc3
12f3913eca6e03c9d979c6ae54f4e3d4df4bce82
[ "BSD-2-Clause" ]
null
null
null
.ORIG x3000 AND R6,R6,#0 ; remainder AND R7,R7,#0 ; quotient LD R1, DIVIDEND LD R2, DIVISOR NOT R3,R2 ADD R3, R3,#1 LOOP1 ADD R7,R7,#1 ; subtraction until dividend value ; becomes either zero or negative ADD R1,R1,R3 BRN NEG BRZ ZERO BRP LOOP1 NEG ADD R7,R7,#-1 ADD R6,R1,R2 ZERO ST R6, REMAINDER ST R7, QUOTIENT HALT DIVIDEND .FILL #25 DIVISOR .FILL #4 QUOTIENT .FILL #0 REMAINDER .FILL #0 .END
18.230769
53
0.607595
3d53341817e7cb17c48aa6d140e3544219518f49
372
asm
Assembly
programs/oeis/160/A160128.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/160/A160128.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/160/A160128.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A160128: a(n) = number of grid points that are covered after (2^n)th stage of A139250. ; 3,7,19,63,235,919,3651,14575,58267,233031,932083,3728287,14913099,59652343,238609315,954437199,3817748731,15270994855,61083979347,244335917311,977343669163,3909374676567,15637498706179 mov $1,$0 mov $2,4 pow $2,$0 add $0,$2 mul $0,2 add $0,$1 mov $1,$0 div $1,9 mul $1,4 add $1,3
26.571429
186
0.741935
a1a29c5a43f61860af4f80eeaa21db09a5fb3d78
1,247
asm
Assembly
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
1
2015-09-23T03:27:19.000Z
2015-09-23T03:27:19.000Z
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
null
null
null
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
null
null
null
// projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.vm @1 D=A @ARG AD=D+M D=M @SP A=M M=D @SP AM=M+1 @1 D=A @R3 AD=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @0 D=A @SP A=M M=D @SP AM=M+1 @0 D=A @THAT AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @1 D=A @SP A=M M=D @SP AM=M+1 @1 D=A @THAT AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @0 D=A @ARG AD=D+M D=M @SP A=M M=D @SP AM=M+1 @2 D=A @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=M-D @SP AM=M+1 @0 D=A @ARG AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D (MAIN_LOOP_START) @0 D=A @ARG AD=D+M D=M @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @COMPUTE_ELEMENT D;JNE @END_PROGRAM 0;JMP (COMPUTE_ELEMENT) @0 D=A @THAT AD=D+M D=M @SP A=M M=D @SP AM=M+1 @1 D=A @THAT AD=D+M D=M @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=D+M @SP AM=M+1 @2 D=A @THAT AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @1 D=A @R3 AD=D+A D=M @SP A=M M=D @SP AM=M+1 @1 D=A @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=D+M @SP AM=M+1 @1 D=A @R3 AD=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @0 D=A @ARG AD=D+M D=M @SP A=M M=D @SP AM=M+1 @1 D=A @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=M-D @SP AM=M+1 @0 D=A @ARG AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @MAIN_LOOP_START 0;JMP (END_PROGRAM) (END) @END 0;JMP
5.239496
61
0.57097
b8f7e0923bffae70cb138da01661b02689c69ae1
420
asm
Assembly
oeis/220/A220779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/220/A220779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/220/A220779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A220779: Exponent of highest power of 2 dividing the sum 1^n + 2^n + ... + n^n. ; Submitted by Jamie Morken(s4) ; 0,0,2,1,0,0,4,2,0,0,2,1,0,0,6,3,0,0,2,1,0,0,4,2,0,0,2,1,0,0,8,4,0,0,2,1,0,0,4,2,0,0,2,1,0,0,6,3,0,0,2,1,0,0,4,2,0,0,2,1,0,0,10,5,0,0,2,1,0,0,4,2,0,0,2,1,0,0,6,3,0,0,2,1,0,0,4,2,0,0,2,1,0,0,8,4,0,0,2,1 mov $2,$0 add $0,1 div $0,2 gcd $2,2 add $0,$2 lpb $0 add $0,1 dif $0,2 add $1,$2 lpe mov $0,$1
26.25
202
0.545238
126dbf76fe2c330b84f01e230ba07daf2167de71
10,542
asm
Assembly
CODE/ELECTRONIC_SCALE/ADC_Handler.asm
ZSAIm/-_STM8S-
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
[ "Apache-2.0" ]
1
2019-04-01T11:29:58.000Z
2019-04-01T11:29:58.000Z
CODE/ELECTRONIC_SCALE/ADC_Handler.asm
ZSAIm/ELECTRONIC_SCALE-STM8S_ASM
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
[ "Apache-2.0" ]
null
null
null
CODE/ELECTRONIC_SCALE/ADC_Handler.asm
ZSAIm/ELECTRONIC_SCALE-STM8S_ASM
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
[ "Apache-2.0" ]
null
null
null
stm8/ #include "ADC_Handler.inc" INTEL segment 'rom' ;*********************************************************** ;name : ADC_Sub_Sum ;fun : ;params : ; IN : X = ADC_STORE + ADC_PTR(NEXT|MAX|MIN) ; OUT : NULL ;*********************************************************** .ADC_Sub_Sum.W push CC push A ; ADC_SUM(7-0) 1st byte ld A, ADC_SUM0 sub A, (2,X) push CC ld ADC_SUM0, A ; ADC_SUM(15-8) 2nd byte ld A, ADC_SUM1 pop CC sbc A, (1,X) push CC ld ADC_SUM1, A ; ADC_SUM(23-16) 3rd byte ld A, ADC_SUM2 pop CC sbc A, (X) push CC ld ADC_SUM2, A ; ADC_SUM(31-24) take borrow ld A, ADC_SUM3 pop CC sbc A, #0 ld ADC_SUM3, A pop A pop CC ret ;*********************************************************** ;name : ADC_Add_Sum ;fun : ;params : ; IN : X = ADC_STORE + ADC_PTR(NEXT|MAX|MIN) ; OUT : NULL ;*********************************************************** .ADC_Add_Sum.W push CC push A ; ADC_SUM(7-0) 1st byte ld A, ADC_SUM0 add A, (2,X) push CC ld ADC_SUM0, A ; ADC_SUM(15-8) 2nd byte ld A, ADC_SUM1 pop CC adc A, (1,X) push CC ld ADC_SUM1, A ; ADC_SUM(23-16) 3rd byte ld A, ADC_SUM2 pop CC adc A, (X) push CC ld ADC_SUM2, A ; ADC_SUM(31-24) take carry ld A, ADC_SUM3 pop CC adc A, #0 ld ADC_SUM3, A pop A pop CC ret ;*********************************************************** ;name : ADC_Moving_Avg ;fun : calculate the moving average, after remove ; the polar value ;caution: the method of the function just compares ; the high 2 bytes, so not exactly removing ; the two polar values, but enough to smooth ADC. ;params : ; IN : ADC_STORE, ADC_SUM ; OUT : ADC_SUM, ADC_AVG ;*********************************************************** .ADC_Moving_Avg.W push CC push A pushw X pushw Y clr ADC_SUM3 clr ADC_SUM2 clr ADC_SUM1 clr ADC_SUM0 ld A, #ADC_MOVING_NUM ldw X, #ADC_STORE accumulation_start: call ADC_Add_Sum addw X, #ADC_MOVING_BYTE dec A jrne accumulation_start remove_polar_value: call ADC_Find_Max ; X => max data call ADC_Sub_Sum call ADC_Find_Min ; X => min data call ADC_Sub_Sum ;---------------- averaging ----------------- ; X : high 16bits ; Y : low 16bits ldw X, {ADC_SUM+0} ldw Y, {ADC_SUM+2} ; divide by 16 rcf rrcw X rrcw Y rcf rrcw X rrcw Y rcf rrcw X rrcw Y rcf rrcw X rrcw Y ldw {ADC_AVG+0}, X ldw {ADC_AVG+2}, Y popw Y popw X pop A pop CC ret ;*********************************************************** ;name : ADC_Find_Max ;fun : roll back to find the max value ;params : ; IN : ; OUT : X => max data ;*********************************************************** .ADC_Find_Max.W push CC pushw Y ldw X, #ADC_STORE ldw Y, X find_max_loop: addw Y, #ADC_MOVING_BYTE cpw Y, #{ADC_STORE+ADC_MOVING_BYTE*ADC_MOVING_NUM} jreq find_max_end pushw Y ldw Y, (Y) cpw Y, (X) jrnc find_max_exchange popw Y jra find_max_loop find_max_exchange: popw Y ldw X, Y jra find_max_loop find_max_end: popw Y pop CC ret ;*********************************************************** ;name : ADC_Find_Min ;fun : roll back to find the min value ;params : ; IN : ; OUT : X => min data (increment ptr) ;*********************************************************** .ADC_Find_Min.W push CC pushw Y ldw X, #ADC_STORE ldw Y, X find_min_loop: addw Y, #ADC_MOVING_BYTE cpw Y, #{ADC_STORE+ADC_MOVING_BYTE*ADC_MOVING_NUM} jreq find_min_end pushw Y ldw Y, (Y) cpw Y, (X) jrnc find_min_exchange popw Y ldw X, Y jra find_min_loop find_min_exchange: popw Y jra find_min_loop find_min_end: popw Y pop CC ret ;*********************************************************** ;name : ADC_Convert_Mass ;fun : calculate the final mass of the thing ;params : ; IN : ADC_AVG ; OUT : NET_ADC ;*********************************************************** .ADC_Convert_Mass.W push CC pushw X pushw Y push A ; cal increment ld A, ADC_AVG0 sub A, ZERO_ADC0 push CC ld NET_ADC0, A ld A, ADC_AVG1 pop CC sbc A, ZERO_ADC1 push CC ld NET_ADC1, A ld A, ADC_AVG2 pop CC sbc A, ZERO_ADC2 ld NET_ADC2, A mov NET_ADC3, #00H ;call DispADC ; adc data to mass mov NET_BUF3, NET_ADC3 mov NET_BUF2, NET_ADC2 mov NET_BUF1, NET_ADC1 mov NET_BUF0, NET_ADC0 ;; make ADC_AVG be signed btjf NET_ADC2,#7,adc_pos ld A, NET_ADC2 xor A, #0FFH ldw X, NET_ADC1 negw X ccf adc A, #0 push CC ldw NET_ADC1, X ld NET_ADC2, A ld A, NET_ADC3 xor A, #0FFH pop CC adc A, #0 ld NET_ADC3, A adc_pos: ; in order to avoiding float operation, ; for accuracy ,so let NET_ADC * 2^8 , ; eventually the slope and the remainder ; will times 2^8. ; ------------------------- mov NET_ADC3, NET_ADC2 mov NET_ADC2, NET_ADC1 mov NET_ADC1, NET_ADC0 mov NET_ADC0, #00 ldw X, ADC_SLOPE call MassDivider call SaveMaxMass call ThresholdCheck call MassHex2DecChar ;PrintStr #0,#0,#STR_MASS ;call PriceCursorFlash pop A popw Y popw X pop CC ret ;*********************************************************** ;name : MassHex2DecChar() ;fun : hexadecimal to decimal char ; X = 24bit / 16bit ; Y = 24bit % 16bit ;params : ; IN : X : quotient (mass) ; Y : remainder (mass) ; OUT : MASS_STR: MASS_CHAR7~0 ;*********************************************************** .MassHex2DecChar.W push CC push A pushw Y pushw X ; save weight quotient ldw WEIGHT_QUOTIENT, X mov CHAR_MASS9, #06H mov CHAR_MASS_1, #07H btjt NET_BUF2,#7,mass_neg ld A, #' ' jra mass_pos mass_neg: ld A, #'-' mass_pos: ld CHAR_MASS8, A ; ---------- ; HIGH STACK ;+4 YL - REMAINDER ;+3 YH - REMAINDER ;+2 XL - QUOTIENT ;+1 XH - QUOTIENT ; LOW STACK ; ---------- ; 10k ldw Y, #10000 divw X, Y ld A, XL add A, #30H ld CHAR_MASS7, A ; 1k ldw X, Y ldw Y, #1000 divw X, Y ld A, XL add A, #30H ld CHAR_MASS6, A ; 100 ldw X, Y ldw Y, #100 divw X, Y ld A, XL add A, #30H ld CHAR_MASS5, A ; 10 ldw X, Y ldw Y, #10 divw X, Y ld A, XL add A, #30H ld CHAR_MASS4, A ; 1 ld A, YL add A, #30H ld CHAR_MASS3, A ; 0.1 ; (remainder / slope) * 10 ; = remainder / (slope / 10) ; = remainder / (quotient + r) , (r < 1) ; ~= remainder / quotient ldw X, ADC_SLOPE ld A, #10 div X, A ; ---------- ; HIGH STACK ;+4 YL - REMAINDER ;+3 YH - REMAINDER ;+2 XL - QUOTIENT ;+1 XH - QUOTIENT ; LOW STACK ; ---------- ldw Y, X ldw X, (3,SP) ; (3,SP) => Y: remainder divw X, Y ld A, XL add A, #30H ld CHAR_MASS1, A mov CHAR_MASS2, #'.' mov CHAR_MASS0, #'g' ; save weight fraction clrw Y sub A, #30H ld YL, A ldw WEIGHT_REMAINDER, Y popw X popw Y pop A pop CC ret ;*********************************************************** ;name : SaveMaxMass() ;fun : ;params : ; IN : X : quotient (mass) ; Y : remainder (mass) ; OUT : ADC_MAX_QUOTIENT ; ADC_MAX_REMAINDER ; CHAR_MAX_MASS7~0 ;*********************************************************** .SaveMaxMass.W push CC push A pushw X pushw Y ; if mass is negative , no need to compare btjt NET_BUF2,#7,savemax_handle_str_start ; ---------- ; HIGH STACK ;+4 XL - QUOTIENT ;+3 XH - QUOTIENT ;+2 YL - REMAINDER ;+1 YH - REMAINDER ; LOW STACK ; ---------- ; compare quotient first ldw X, ADC_MAX_QUOTIENT cpw X, (3,SP) jrnc savemax_less_or_equal_q ; > max(quotient) jra savemax_newmax_exit savemax_less_or_equal_q: ; <= max(quotient) ; if != max, exit jrne savemax_exit ldw X, ADC_MAX_REMAINDER cpw X, (1,SP) ;jrnc savemax_less_or_equal_r jrnc savemax_exit ; > max(remainder) jra savemax_newmax_exit ;savemax_less_or_equal_r: ; <= max(remainder) ;jra savemax_exit savemax_newmax_exit: ldw X, (3,SP) ldw ADC_MAX_QUOTIENT, X ldw X, (1,SP) ldw ADC_MAX_REMAINDER, X savemax_handle_str_start: ; ---------- ; HIGH STACK ;+4 XL - QUOTIENT ;+3 XH - QUOTIENT ;+2 YL - REMAINDER ;+1 YH - REMAINDER ; LOW STACK ; ---------- ; handle max mass str ; 10k ldw X, ADC_MAX_QUOTIENT ldw Y, #10000 divw X, Y ld A, XL add A, #30H ld CHAR_MAX_MASS7, A ; 1k ldw X, Y ldw Y, #1000 divw X, Y ld A, XL add A, #30H ld CHAR_MAX_MASS6, A ; 100 ldw X, Y ldw Y, #100 divw X, Y ld A, XL add A, #30H ld CHAR_MAX_MASS5, A ; 10 ldw X, Y ldw Y, #10 divw X, Y ld A, XL add A, #30H ld CHAR_MAX_MASS4, A ; 1 ld A, YL add A, #30H ld CHAR_MAX_MASS3, A ; 0.1 ; (remainder / slope) * 10 ; = remainder / (slope / 10) ; = remainder / (quotient + r) , (r < 1) ; ~= remainder / quotient ldw X, ADC_SLOPE ld A, #10 div X, A ldw Y, X ldw X, ADC_MAX_REMAINDER ; (3,SP) => Y: remainder divw X, Y ld A, XL add A, #30H ld CHAR_MAX_MASS1, A mov CHAR_MAX_MASS2, #'.' mov CHAR_MAX_MASS0, #'g' ;mov CHAR_MAX_MASS11, #'m' ;mov CHAR_MAX_MASS10, #'a' mov CHAR_MAX_MASS9, #'M' mov CHAR_MAX_MASS8, #0A2H mov CHAR_MAX_MASS_1, #0A3H savemax_exit: popw Y popw X pop A pop CC ret end
17.39604
60
0.480649
68208d116e0e07c9240945f8cbd875778cf3cdb8
6,671
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_138.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_138.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_138.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 %r15 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x78bc, %rdx nop nop xor %r15, %r15 vmovups (%rdx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbx nop nop nop nop and %rsi, %rsi lea addresses_UC_ht+0xfb34, %r11 clflush (%r11) nop nop nop add %r15, %r15 mov (%r11), %rax nop nop cmp %rdx, %rdx lea addresses_A_ht+0x1dc38, %rsi lea addresses_A_ht+0xeb4c, %rdi nop nop nop xor $64209, %rax mov $49, %rcx rep movsl nop nop nop sub %rcx, %rcx lea addresses_A_ht+0x1147c, %rdi clflush (%rdi) nop xor %r11, %r11 mov (%rdi), %ax nop nop nop dec %rcx lea addresses_WC_ht+0x156bc, %rsi lea addresses_D_ht+0x100bc, %rdi nop nop nop xor $46133, %rdx mov $108, %rcx rep movsw sub $57582, %r11 lea addresses_UC_ht+0x6767, %rsi lea addresses_A_ht+0x14aec, %rdi xor %r15, %r15 mov $85, %rcx rep movsb cmp %rax, %rax lea addresses_normal_ht+0x190f4, %rdi clflush (%rdi) nop nop inc %rax movb $0x61, (%rdi) nop sub %rdi, %rdi lea addresses_WC_ht+0xf4bc, %rdi nop nop lfence mov $0x6162636465666768, %rax movq %rax, (%rdi) nop nop nop xor %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r9 push %rax push %rdi push %rsi // Load lea addresses_normal+0x154bc, %r10 cmp %r9, %r9 mov (%r10), %si nop nop nop nop cmp $41377, %r15 // Store lea addresses_UC+0x628c, %rax nop nop nop nop cmp %rdi, %rdi mov $0x5152535455565758, %rsi movq %rsi, (%rax) nop nop nop nop inc %rsi // Store lea addresses_WC+0xbcbc, %rsi nop add %r15, %r15 movw $0x5152, (%rsi) and $19434, %rdi // Faulty Load lea addresses_D+0x1f8bc, %r10 clflush (%r10) sub %rdi, %rdi mov (%r10), %r15 lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rsi pop %rdi pop %rax pop %r9 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC'}} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 3, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': True, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
37.477528
2,999
0.655074
91c082b5e7f5b030f765dc359c9d17c96dcc226e
139
asm
Assembly
ffight/lcs/1p/60.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
ffight/lcs/1p/12.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
ffight/lcs/1p/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 00A2C6 dbra D0, $a2c0 copyright zengfr site:http://github.com/zengfr/romhack
23.166667
54
0.76259
571c78ce6965e2714b6f4c21d4f6c4bcf9882ca7
2,172
asm
Assembly
aula02_2020_09_17_flashes_led/flashes_led.X/flashes_led.asm
WesGtoX/Microcontrollers-Microprocessors-I
8dd8f26272685dbb7c022629d70d22a963e05ee8
[ "MIT" ]
null
null
null
aula02_2020_09_17_flashes_led/flashes_led.X/flashes_led.asm
WesGtoX/Microcontrollers-Microprocessors-I
8dd8f26272685dbb7c022629d70d22a963e05ee8
[ "MIT" ]
null
null
null
aula02_2020_09_17_flashes_led/flashes_led.X/flashes_led.asm
WesGtoX/Microcontrollers-Microprocessors-I
8dd8f26272685dbb7c022629d70d22a963e05ee8
[ "MIT" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; PBL - LED liga/desliga via push button ; MIC-I ; Author: Wesley de Oliveira Mendes - 828507 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #include <p18F4550.inc> ; nomes deixados originais para facilitar ; a localiza??o no datasheet CONFIG FOSC = INTOSC_EC ; internal oscillator config PLLDIV = 4 ; divide por 5 para dar 4MHz no PLL config FCMEN = OFF ; no fail safe clock monitor config IESO = OFF ; oscillator switchover disabled config PWRT = ON ; oscillator power up timer enabled config BOR = OFF ; hardware brown out reset config WDT = OFF ; watchdog timer disabled config MCLRE = ON ; MCLR pin enabled config LPT1OSC = ON ; timer1 low power operation config PBADEN = OFF ; portB para digital - n?o analogico config LVP = OFF ; low voltage programming disabled config CCP2MX = OFF ; portc1 = CCP2 config XINST = OFF ; bloquear PIC18 extended instructions config STVREN = ON ; stack overflow pode causar reset da cpu Delay1 equ 127 botao equ 0 ;PUSH BUTTON INPUT RA0 LED equ 4 ;LED OUTPUT RA4 org 0x000 ; entrada do vetor de reset goto Start org 0x0020 ; posicao de inicio de programa Start: MOVLW 10h MOVWF STKPTR CLRF PORTA ; Initialize PORTA limpando os data latches MOVLW 0Fh ; Configura A/D MOVWF ADCON1 ; para uso como portas digitais MOVLW 07h ; Configura os comparadores MOVWF CMCON ; para uso como entrada digital MOVLW 0CFh ; programa a dire??o dos dados MOVWF TRISA ; Usando RA<3:0> como entrada e RA<5:4> como saida entrada: BTFSS PORTA,botao ;espera pressionar o botao goto entrada ; se n?o apertou, volta se apertou segue... call pisca goto entrada ; ; sub rotina de picar o led e verifica botao ; pisca: DECFSZ Delay1,1 ;Decrementa o Delay1 de 1, vai para proxima instru??o se Delay1 = 0 goto pisca BTG PORTA,LED ; inverte o estado logico do led BTFSS PORTA,botao ;espera pressionar o botao goto pisca return ; end
33.415385
88
0.631676
a19fc5655320cb5dea5dedf013753cb6c2d9b940
13,482
asm
Assembly
src/legacy/loadpe.asm
amindlost/wdosx
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
[ "Unlicense" ]
7
2022-01-20T08:27:54.000Z
2022-03-17T10:15:31.000Z
src/legacy/loadpe.asm
amindlost/wdosx
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
[ "Unlicense" ]
null
null
null
src/legacy/loadpe.asm
amindlost/wdosx
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
[ "Unlicense" ]
null
null
null
; ############################################################################ ; ## WDOSX DOS Extender Copyright (c) 1996, 1999, Michael Tippach ## ; ## ## ; ## Released under the terms of the WDOSX license agreement. ## ; ############################################################################ ; ; $Header: E:/RCS/WDOSX/0.95/SRC/legacy/LOADPE.ASM 1.1 1999/02/07 18:13:00 MikeT Exp $ ; ; ---------------------------------------------------------------------------- ; ; $Log: LOADPE.ASM $ ; Revision 1.1 1999/02/07 18:13:00 MikeT ; Initial check in. ; ; ; ---------------------------------------------------------------------------- ; ; Old floating segment PE code which I'm too lazy to maintain any longer or to ; even comment on. It should stay as is and eventually die. ; ; This includes the Win32 API Emulation ;WIN32API = 1 .386p IFDEF WIN32API include w32struc.inc include except.inc ENDIF code segment use32 assume cs:code,ds:code segbegin label near IFDEF WIN32API ; thread information block MUST BE AT OFFSET 0 !!! TIB label near TIBErecord dd -1 StackBase dd ? org 02ch TlsArray dd ? ENDIF femsg db 'Error reading executable',0dh,0ah,'$' fomsg db 'Wrong executable format',0dh,0ah,'$' memsg db 'Not enough extended memory',0dh,0ah,'$' IFDEF WIN32API dmmsg db 'DPMI host returned an error',0dh,0ah,'$' impmsg db 'Import by ordinal not supported',0dh,0ah,'$' todomsg db 'This dynalink is not supported yet',0dh,0ah,'$' ENDIF file_error: mov edx,offset femsg jmp short errormsg format_error: mov edx,offset fomsg jmp short errormsg mem_error: mov edx,offset memsg IFDEF WIN32API jmp short errormsg import_error: mov edx,offset impmsg jmp short errormsg dpmi_error: mov edx,offset dmmsg jmp short errormsg todo_error: push esi call output0string mov edx,offset todomsg ENDIF errormsg: mov ah,9 int 21h mov ax,4cffh int 21h IFDEF WIN32API include imports.inc include win32api.inc include console.asi ENDIF align dword FlatDataSel dd 0 ZeroDataSelector dd 0 OldExcHandlers label dword start_it_up: ;-------------- enable virtual interrupts ------------- mov ax,0901h int 31h IFDEF WIN32API ;-------------- Allocate the 0 - 4g descriptor -------- sub eax,eax mov ecx,1 int 31h jc dpmi_error mov ebx,eax mov eax,8 stc sbb ecx,ecx sbb edx,edx int 31h jc dpmi_error lar cx,bx mov cl,ch and cl,60h or cl,92h mov ch,0cfh mov eax,9 int 31h jc dpmi_error sub ecx,ecx sub edx,edx mov ax,7 int 31h jc dpmi_error mov ZeroDataSelector,ebx ENDIF ;-------------- expand segment a bit ----------------- mov ax,-1 mov edx,20000h ;128k, should be enough int 21h jc mem_error mov esp,edx ;-------------- save PSP selector --------------------- mov pspsel,es ;-------------- get environment selector -------------- mov es,es:[2ch] ;-------------- scan for filename --------------------- sub ebp,ebp cld mov ecx,0fff4h sub edi,edi sub eax,eax mov ebp,4 next_env: add ebp,4 repne scasb scasb jne short next_env ;ebp bytes needed for *environm[] lea edx,[edi+2] push edx push ebp ;-------------- copy environment ---------------------- ;find end of filename mov edi,edx repne scasb ; lea ecx,[edi+1] ;bugfix mov ecx,edi ; mov edi,offset freemem sub esi,esi mov ebp,ds push es mov es,ebp pop ds IFDEF DEBUG mov eax,esi call ccc mov eax,edi call ccc mov eax,ecx call ccc mov ax,es call ccc mov ax,ds call ccc pushfd pop eax call ccc ENDIF cld rep movs byte ptr es:[edi],ds:[esi] ;-------------- open exe ------------------------------ mov ax,3d00h int 21h mov ds,ebp pop ebp pop edx jc file_error add edx,offset freemem mov argv[0],edx mov handle,eax IFDEF DEBUG pushad mov edx,offset succ1 mov ah,9 int 21h popad ENDIF ;-------------- copy command line args ---------------- push edi mov ds,pspsel movzx ecx,byte ptr ds:[80h] mov esi,81h push ecx rep movs byte ptr es:[edi],ds:[esi] push ss pop ds mov [edi],cl pop ecx ;-------------- determine start of loader space ------- lea edi,[edi+4] and edi,0fffffffch mov EnvArray,edi add ebp,edi mov ImageBase,ebp pop edi ;-------------- Get yet another copy of the CmdTail --- IFDEF WIN32API push edi mov esi,edi ; get a pointer to filename ( argv[0] already set ) sub eax,eax mov edx,argv[0] mov edi,offset CmdTail CmdTail2Fname: mov ah,[edx] inc edx mov [edi],ah inc edi inc al test ah,ah jnz short CmdTail2Fname cmp byte ptr [esi],20h jc CmdTail2Done mov byte ptr [edi-1],20h jnz CmdTail2Copy dec edi CmdTail2Copy: mov ecx,80h rep movsb CmdTail2Done: mov ApiFnameLen,eax pop edi ENDIF ;-------------- Fixup command tail -------------------- sub edx,edx mov argc,1 ;? mov esi,offset Argv+4 jecxz FixCmdDone FixCmdTail: cmp byte ptr [edi],20h jna short IsSeparator test edx,edx jnz short NoArgument or edx,1 inc argc mov [esi],edi add esi,4 jmp short NoArgument IsSeparator: mov byte ptr [edi],0 sub edx,edx NoArgument: inc edi loop short FixCmdTail FixCmdDone: mov dword ptr [esi],0 ;-------------- build *evironment[] ------------------- mov edi,offset freemem mov esi,EnvArray sub eax,eax stc sbb ecx,ecx mov [esi],edi nextenvptr: add esi,4 repne scasb mov [esi],edi scasb jne nextenvptr mov [esi],eax ;-------------- read wdosx header --------------------- mov ebx,handle mov ecx,6 mov ah,3fh mov edx,ebp int 21h jc file_error ;-------------- get offset to next header ------------- sub edx,edx mov ecx,[ebp+2] shld edx,ecx,16+9 neg ecx and ecx,511 and edx,0ffffffe0h sub edx,ecx sub ecx,ecx push edx mov ax,4200h int 21h ;-------------- read peloader header ------------------ mov ecx,6 mov ah,3fh mov edx,ebp int 21h jc file_error ;-------------- get offset to user exe header --------- sub edx,edx mov ecx,[ebp+2] shld edx,ecx,16+9 neg ecx and ecx,511 and edx,0fffffe00h sub edx,ecx sub ecx,ecx pop eax add edx,eax ;we'll have to do something if wdosx+peloader gets > 64k mov image2filepos,edx mov ax,4200h int 21h ;-------------- read header -------------------------- mov ecx,64 mov ah,3fh mov edx,ebp int 21h jc file_error cmp eax,64 jnz file_error ;-------------- check for MZ signature --------------- mov eax,[ebp] cmp ax,5A4Dh jnz format_error ;-------------- get offset to PE header -------------- mov edx,dword ptr [ebp+60] IFDEF WIN32API mov SizeOfMzExe,edx ENDIF sub edx,64 ;-------------- read headers struct ------------------ sub ecx,ecx shld ecx,edx,16 mov ax,4201h int 21h ;sig = 4 ;image_file_header = 20 mov ecx,24 mov ah,3fh mov edx,ebp int 21h jc file_error cmp eax,ecx jnz file_error cmp dword ptr [ebp],'EP' jnz format_error ;-------------- get optional header -------------------------- add edx,24 movzx ecx,word ptr [ebp+20] mov ah,3fh int 21h jc file_error cmp eax,ecx jnz file_error ;-------------- load section table --------------------------- mov ecx,[edx+92] ;get directory size add edx,eax ;set pointer where to store ;ecx*=40... shl ecx,3 ;ecx*=8 lea ecx,[ecx*4+ecx] ;ecx*=5 mov ah,3fh int 21h jc file_error cmp eax,ecx jnz file_error ;-------------- now basic structures in memory --------------- ;-------------- check, how much mem we finally need ---------- ;assumtion is that there is at least one empty entry in image section header mov edi,edx ;first section = end of table + first rva add ecx,edi ;ecx->free mem ;edi->start of ISH mov rva2offset,ecx ;get imagesize mov edx,dword ptr [50h+ebp] ;add start of first section - rva add edx,ecx ;add stack size add edx,dword ptr[76+24+ebp] ;align on 4k boundary (Page granular) add edx,0fffh and edx,0fffff000h IFDEF WIN32API mov start_of_heap,edx ; add size of heap to commit and align on 64k add edx,[ebp+84+24] add edx,0ffffh and edx,0ffff0000h mov end_of_heap,edx mov segment_size,edx mov initial_top,edx ENDIF mov ax,-1 int 21h IFDEF WIN32API mov edx,start_of_heap ENDIF jc mem_error mov esp,edx sub eax,eax ; quick'n dirty: zero out all that mem push ds pop es IFDEF WIN32API ; zero out local heap push edi mov edx,ecx mov edi,start_of_heap mov ecx,end_of_heap sub ecx,edi shr ecx,2 rep stosd pop edi mov ecx,edx ENDIF push edi mov edi,ecx ;start mov edx,ecx neg ecx add ecx,esp ;ecx=esp-ecx shr ecx,2 ;eax=0! rep stosd pop edi ;now safe to load sections (a broken image will crash this!) load_section: ; check first letter of section name cmp byte ptr [edi],0 jz short load_done ; get virtual size mov eax,[edi+8] or eax,[edi+16] jz short load_next ;nothing to load mov edx,[edi+20] ;get filepos add edx,image2filepos ;adjust shld ecx,edx,16 mov ax,4200h int 21h mov edx,[edi+12] ;get rva mov ecx,[edi+16] ;get size add edx,rva2offset ;adjust rva mov ah,3fh int 21h jc file_error cmp eax,ecx jnz file_error load_next: add edi,40 jmp short load_section load_done: ;-------------- now all that stuff in memory ------------ mov ah,3eh int 21h ;-------------- close handle ---------------------------- ;get fixups from array of interesting rvas mov edi,dword ptr ds:[0a0h+ebp] ;rva mov ecx,dword ptr ds:[0a4h+ebp] ;size mov eax,rva2offset add edi,eax sub eax,dword ptr [34h+ebp] ;imagebase ;eax=delta ;get page rva do_a_page: mov edx,[edi] test edx,edx jz short reloc_done add edx,rva2offset ;get blocksize mov esi,8 ;start ;read item do_a_fixup: movzx ebp,word ptr [edi+esi] ;get type ror ebp,12 mov ebx,ebp shr ebx,20 cmp bp,2 jnz short no_low add [edx+ebx],ax jmp short lookup_next no_low: cmp bp,1 jnz short no_high push eax shl eax,16 add [edx+ebx],ax pop eax jmp short lookup_next no_high: cmp bp,3 jnz short no_hilow add [edx+ebx],eax jmp short lookup_next no_hilow: ;next one sux cmp bp,4 jnz short lookup_next ;ignore others add esi,2 mov ebp,[edx+ebx-2] ;get high word mov bp,[edi+esi] ;get low word lea ebp,[ebp+eax+8000h] ;do as M$ says shr ebp,16 ;only high word matters mov [edx+ebx],bp ;what is this for??? lookup_next: add esi,2 cmp esi,[edi+4] jnz short do_a_fixup add edi,esi jmp short do_a_page reloc_done: IFDEF WIN32API call process_imports ; get approx. initial free memory size sub esp,30h mov edi,esp mov eax,500h int 31h pop ApiInitialFree add esp,2ch mov eax,start_of_heap add ApiInitialFree,eax mov edx,offset NewDTA mov ah,1ah int 21h call InitSeh mov eax,cs lar eax,eax test ah,60h jnz short @@FpuCheck mov eax,cr0 and al,NOT 6 ; reset EM + MP mov cr0,eax @@FpuCheck: fninit push 5a5ah fstsw [esp] mov eax,[esp] test al,al jnz short @@NoFpu fstcw [esp] pop eax and eax,103fh cmp eax,3fh jnz short @@NoFpu1 ; This is a horrible kludge since Windows does not allow us to use exception 10 ; It allowes setting the exception handler, though, but it doesn't trigger it. mov eax,400h int 31h cmp cl,4 jc short TheHardWay mov eax,cs lar eax,eax test ah,60h jnz short TheHardWay mov eax,cr0 or eax,80000022h mov cr0,eax TheHardWay: mov bl,dl add bl,5 mov ecx,cs mov edx,offset FPUHandlerPIC mov eax,205h int 31h in al,0a1h and al,NOT 20h out 0a1h,al in al,21h and al,NOT 4 out 21h,al jmp short @@FpuDone @@NoFpu: pop eax @@NoFpu1: ; remove the comments to raise an exception if there's no FPU present ; mov eax,cs ; lar eax,eax ; test ah,60h ; jnz short @@FpuDone ; mov eax,cr0 ; or al,4 ; and al,NOT 2 ; mov cr0,eax @@FpuDone: ENDIF ;launch the proggy mov eax,ImageBase IFDEF WIN32API mov ebx,[eax+0c0h] add ebx,rva2offset add ebx,0ch mov TlsArray,ebx ENDIF mov eax,dword ptr [16+24+eax] add eax,rva2offset mov esi,argc mov edi,offset argv mov ebp,EnvArray push ds pop fs push ds pop gs IFDEF WIN32API ; I'm not sure if this is correct... mov StackBase,esp lea ebp,[esp-30h] push ebp push ebp push ebp sub esp,30h-12 ELSE ;get dpmi style es - selector (PSP) mov es,pspsel ENDIF jmp eax ;entry conditions: ; VI enabled ; es=fs=gs=ds=ss alias cs ; esi->Argc ; edi->*Argv[Argc] ; ebp->*Environment[] IFDEF DEBUG succ1 db 'environment copy done',0dh,0ah,'$' ENDIF align 4 IFDEF WIN32API va_space MemBlock blockcount dup (<0,0>) free_handles dd blockcount ConsoleMode dd ENABLE_LINE_INPUT + ENABLE_ECHO_INPUT ffhandles dd 0 ENDIF ;globals rva2offset dd ? image2filepos dd ? pspsel dw ? dw ? ;align handle dd ? ImageBase dd ? Argc dd ? EnvArray dd ? Argv dd 40h dup (?) IFDEF WIN32API ApiFnameLen dd ? LastError dd ? SizeOfMzExe dd ? initial_top dd ? start_of_heap dd ? end_of_heap dd ? segment_size dd ? ApiInitialFree dd ? NewDTA db 80h * 32 dup (?) DummyTime systime <?,?,?,?,?,?,?,?> CmdTail db 260 dup (?) Cntx ContextRecord <> Erec ExceptionRecord <> dd 15 dup (?) align 4 TlsSpace dd 64 dup (?) ENDIF freemem label near code ends end start_it_up
16.894737
86
0.618454
2786213f1f96ace1120aa357e021c496df977897
342
asm
Assembly
Practice/Assignments assembly class/36.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/36.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/36.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h L1: NOP L2: MOV CL, 0AH MOV CH, '0' MOV AX, 0000H MOV DS, AX MOV BX, 0000H L3: MOV AL, CH SUB AL, 30H MOV DS:[BX], AL INC BL INC CH DEC CL JNZ L3 L4: HLT ret
13.68
68
0.605263
e32233e98a3641281e5269df57b966dbddc78f02
5,413
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1608.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1608.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1608.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x46, %rdi nop nop nop sub $20894, %rdx vmovups (%rdi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r13 nop and %r14, %r14 lea addresses_WC_ht+0x7df6, %r10 nop nop nop nop add %r11, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm1 movups %xmm1, (%r10) nop cmp %r11, %r11 lea addresses_UC_ht+0x1d756, %r14 xor %rdi, %rdi movb (%r14), %r10b nop nop nop nop nop inc %r11 lea addresses_WC_ht+0xecf6, %rsi lea addresses_normal_ht+0xead6, %rdi clflush (%rsi) nop nop nop add %r13, %r13 mov $83, %rcx rep movsb nop nop nop nop nop add %r10, %r10 lea addresses_normal_ht+0x1b9a6, %rcx add %r13, %r13 movl $0x61626364, (%rcx) nop nop nop inc %r13 lea addresses_WT_ht+0x1ed26, %r13 nop nop nop xor %rsi, %rsi movb (%r13), %r10b nop nop nop nop inc %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rcx push %rdi push %rdx // Faulty Load lea addresses_UC+0x1d5c6, %r14 clflush (%r14) nop nop nop nop nop and $38246, %rdx movb (%r14), %r15b lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': True, 'congruent': 5, 'NT': True, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
41.96124
2,999
0.660447
42e091a5357078015118d757157616228c62a3a7
2,655
asm
Assembly
Userland/SampleCodeModule/libasm.asm
jpdantur/SO2
b06b65e030ae837b5c19ea09fb654a1fff043eff
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
jpdantur/SO2
b06b65e030ae837b5c19ea09fb654a1fff043eff
[ "BSD-3-Clause" ]
null
null
null
Userland/SampleCodeModule/libasm.asm
jpdantur/SO2
b06b65e030ae837b5c19ea09fb654a1fff043eff
[ "BSD-3-Clause" ]
null
null
null
global sys_write global sys_read global sys_time global sys_time_write global sys_screen_saver_set global sys_malloc global sys_free global sys_newproc global sys_fore global sys_kill global sys_list global sys_getpid global sys_getppid global sys_sem_up global sys_sem_down global sys_get_mem global sys_sleep sys_sleep: push rbp mov rbp,rsp push rax push rdx mov rax, 18 ; sys_call_sleep mov rdx, rdi mov rcx, rsi int 80h pop rdx pop rax mov rsp,rbp pop rbp ret sys_get_mem: push rbp mov rbp,rsp push rbx mov rax,17 ;get_mem mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_sem_down: push rbp mov rbp,rsp push rbx mov rax,16 ;sem_down int 80h pop rbx mov rsp,rbp pop rbp ret sys_sem_up: push rbp mov rbp,rsp push rbx mov rax,15 ;sem_up int 80h pop rbx mov rsp,rbp pop rbp ret sys_getppid: push rbp mov rbp,rsp push rbx mov rax,14 ;sys_getppid mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_getpid: push rbp mov rbp,rsp push rbx mov rax,13 ;sys_getpid mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_write: push rbp mov rbp,rsp push rbx mov rbx,1 ; STDOUT mov rax,4 ; sys_call write mov rcx,rdi ; char mov rdx,rsi ; len int 80h pop rbx mov rsp,rbp pop rbp ret sys_read: push rbp mov rbp,rsp push rbx mov rcx, rdi mov rdx,rsi ; len mov rax,3 ; sys_call read int 80h pop rbx mov rsp,rbp pop rbp ret sys_time: push rbp mov rbp,rsp push rbx mov rbx,rsi mov rcx, rdi mov rax,2 ; sys_call get_time int 80h pop rbx mov rsp,rbp pop rbp ret sys_time_write: push rax push rbx push rdx mov rax, 5 ; sys_call write_time mov rbx, rdi mov rdx, rsi int 80h pop rdx pop rbx pop rax ret sys_screen_saver_set: push rax push rdx mov rax, 6 ; sys_call screen_saver_set mov rdx, rdi int 80h pop rdx pop rax ret sys_malloc: push rbp mov rbp,rsp push rbx mov rax,7 ;malloc sys_call mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_free: push rbp mov rbp,rsp push rbx mov rax,8 ;free sys_call mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_newproc: push rbp mov rbp,rsp push rbx mov rax,9 ;new process mov rbx,rdx mov rcx,rdi mov rdx,rsi int 80h pop rbx mov rsp,rbp pop rbp ret sys_fore: push rbp mov rbp,rsp push rbx mov rax,10 ;fore mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_kill: push rbp mov rbp, rsp push rbx mov rax,11 ;kill mov rcx,rdi int 80h pop rbx mov rsp,rbp pop rbp ret sys_list: push rbp mov rbp,rsp push rbx mov rax,12 ;list int 80h pop rbx mov rsp,rbp pop rbp ret
10.494071
39
0.704331