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
sequencelengths
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
sequencelengths
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
sequencelengths
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
41ebd1fba33a1260d599ff7bc66f777647f44d39
462
asm
Assembly
libsrc/target/gb/gbdk/setchar.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/gb/gbdk/setchar.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/gb/gbdk/setchar.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
MODULE setchar PUBLIC setchar PUBLIC _setchar EXTERN asm_setchar EXTERN __console_x SECTION code_driver INCLUDE "target/gb/def/gb_globals.def" setchar: _setchar: ; Banked PUSH BC LD HL,sp + 4 ; Skip return address LD A,(HL) ; A = c ld hl,__console_x ld c,(hl) inc hl ld b,(hl) CALL asm_setchar POP BC RET
16.5
48
0.506494
0897c5f08e5c89a16120238fb1f2e29b127c3f2c
166
asm
Assembly
Snippets/Operating System Kernels/test_boot/boot.asm
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
2
2021-01-24T09:00:51.000Z
2022-01-23T20:52:17.000Z
Snippets/Operating System Kernels/test_boot/boot.asm
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
6
2020-02-29T01:59:03.000Z
2022-02-15T10:25:40.000Z
Snippets/Operating System Kernels/test_boot/boot.asm
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
1
2019-03-22T14:41:21.000Z
2019-03-22T14:41:21.000Z
[BITS 16] [ORG 0x7C00] mov ax, [label] label: dw 0 mov ah, 0Eh mov al, 'W' mov bh, 0Fh mov bl, 0 int 10h hang: jmp hang times 510-($-$$) db 0 dw 0AA55h
8.736842
22
0.584337
17258319ca5245e6fe13234b3bc851e14366148e
149
asm
Assembly
test/_file_.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
3
2015-03-21T07:35:15.000Z
2018-01-12T01:24:02.000Z
3rdParties/src/nasm/nasm-2.15.02/test/_file_.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
1
2020-03-26T19:58:54.000Z
2020-04-24T08:58:04.000Z
test/_file_.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
5
2015-03-21T07:35:21.000Z
2021-01-14T10:54:46.000Z
;Testname=bin; Arguments=-fbin -o_file_.bin; Files=stdout stderr _file_.bin db __FILE__, `\r\n` db __FILE__, `\r\n` dw __LINE__ dw __LINE__
24.833333
76
0.697987
5b1cf4d8e2543230c5390ba673b95b55f4b7df40
374
asm
Assembly
programs/oeis/122/A122573.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/122/A122573.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/122/A122573.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A122573: Expansion of -x*(1+x)*(3*x^2-1) / ( 1-4*x^2+x^4 ). ; 1,1,1,1,3,3,11,11,41,41,153,153,571,571,2131,2131,7953,7953,29681,29681,110771,110771,413403,413403,1542841,1542841,5757961,5757961,21489003,21489003,80198051,80198051,299303201,299303201,1117014753 trn $0,3 mov $1,1 mov $3,1 lpb $0,1 sub $0,1 trn $0,1 add $2,$3 add $3,$2 add $3,$2 mov $1,$3 lpe
24.933333
200
0.663102
72acee0d3a7c3eabd1e98c106bca35fcdfc7b7c4
644
asm
Assembly
03-bootsector-memory/boot_sect_memory_3.asm
gyuki1029/os-tutorial
8a69dfac07abeaa2d319ba0a842c74e53193fd7f
[ "BSD-3-Clause" ]
null
null
null
03-bootsector-memory/boot_sect_memory_3.asm
gyuki1029/os-tutorial
8a69dfac07abeaa2d319ba0a842c74e53193fd7f
[ "BSD-3-Clause" ]
null
null
null
03-bootsector-memory/boot_sect_memory_3.asm
gyuki1029/os-tutorial
8a69dfac07abeaa2d319ba0a842c74e53193fd7f
[ "BSD-3-Clause" ]
null
null
null
mov ah, 0x0e ; attempt 3 ; Add the BIOS starting offset 0x7c00 to the memory address of the X ; and then dereference the contents of that pointer. ; We need the help of a different register 'bx' because 'mov al, [ax]' is illegal. ; A register can't be used as source and destination for the same command. mov al, "3" int 0x10 mov bx, the_secret add bx, 0x7c00 mov al, [bx] int 0x10 jmp $ ; infinite loop the_secret: ; ASCII code 0x58 ('X') is stored just before the zero-padding. ; On this code that is at byte 0x2d (check it out using 'xxd file.bin') db "X" ; zero padding and magic bios number times 510-($-$$) db 0 dw 0xaa55
25.76
82
0.706522
26e1de981068702fae58c3bf8eec75eb6dd912c4
782
asm
Assembly
data/pokemon/base_stats/psyduck.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/psyduck.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/psyduck.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_PSYDUCK ; pokedex id db 50, 52, 48, 55, 50 ; hp atk def spd spc db WATER, PSYCHIC_TYPE ; type db 190 ; catch rate db 80 ; base exp INCBIN "gfx/pokemon/front/psyduck.pic", 0, 1 ; sprite dimensions dw PsyduckPicFront, PsyduckPicBack db SCRATCH, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_MEDIUM_FAST ; growth rate ; tm/hm learnset tmhm MEGA_PUNCH, MEGA_KICK, TOXIC, BODY_SLAM, TAKE_DOWN, \ DOUBLE_EDGE, BUBBLEBEAM, WATER_GUN, ICE_BEAM, BLIZZARD, \ PAY_DAY, SUBMISSION, COUNTER, SEISMIC_TOSS, RAGE, \ DIG, MIMIC, DOUBLE_TEAM, BIDE, SWIFT, \ SKULL_BASH, REST, SUBSTITUTE, SURF, STRENGTH ; end db 0 ; padding
31.28
77
0.602302
fca87c0324da99460dfdced5f9ffd2970056ab84
1,822
asm
Assembly
programs/oeis/299/A299254.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/299/A299254.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/299/A299254.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A299254: Coordination sequence for 3D uniform tiling formed by stacking parallel layers of the 3^4.6 2D tiling (cf. A250120). ; 1,7,21,45,79,122,175,237,309,391,482,583,693,813,943,1082,1231,1389,1557,1735,1922,2119,2325,2541,2767,3002,3247,3501,3765,4039,4322,4615,4917,5229,5551,5882,6223,6573,6933,7303,7682,8071,8469,8877,9295,9722,10159,10605,11061,11527,12002,12487,12981,13485,13999,14522,15055,15597,16149,16711,17282,17863,18453,19053,19663,20282,20911,21549,22197,22855,23522,24199,24885,25581,26287,27002,27727,28461,29205,29959,30722,31495,32277,33069,33871,34682,35503,36333,37173,38023,38882,39751,40629,41517,42415,43322,44239,45165,46101,47047,48002,48967,49941,50925,51919,52922,53935,54957,55989,57031,58082,59143,60213,61293,62383,63482,64591,65709,66837,67975,69122,70279,71445,72621,73807,75002,76207,77421,78645,79879,81122,82375,83637,84909,86191,87482,88783,90093,91413,92743,94082,95431,96789,98157,99535,100922,102319,103725,105141,106567,108002,109447,110901,112365,113839,115322,116815,118317,119829,121351,122882,124423,125973,127533,129103,130682,132271,133869,135477,137095,138722,140359,142005,143661,145327,147002,148687,150381,152085,153799,155522,157255,158997,160749,162511,164282,166063,167853,169653,171463,173282,175111,176949,178797,180655,182522,184399,186285,188181,190087,192002,193927,195861,197805,199759,201722,203695,205677,207669,209671,211682,213703,215733,217773,219823,221882,223951,226029,228117,230215,232322,234439,236565,238701,240847,243002,245167,247341,249525,251719,253922,256135,258357,260589,262831,265082,267343,269613,271893,274183,276482,278791,281109,283437,285775,288122,290479,292845,295221,297607 mov $4,$0 mul $0,2 pow $0,2 lpb $0 pow $1,$3 mul $1,$0 gcd $0,1 add $1,7 div $1,5 lpe add $1,1 mov $5,$4 mul $5,$4 mov $2,$5 mul $2,4 add $1,$2
91.1
1,538
0.803513
6f382c0433dab06b552c57e0ddbf0bee725984a8
708
asm
Assembly
programs/oeis/061/A061286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/061/A061286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/061/A061286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A061286: Smallest integer for which the number of divisors is the n-th prime. ; 2,4,16,64,1024,4096,65536,262144,4194304,268435456,1073741824,68719476736,1099511627776,4398046511104,70368744177664,4503599627370496,288230376151711744,1152921504606846976,73786976294838206464,1180591620717411303424,4722366482869645213696,302231454903657293676544,4835703278458516698824704,309485009821345068724781056,79228162514264337593543950336,1267650600228229401496703205376,5070602400912917605986812821504,81129638414606681695789005144064,324518553658426726783156020576256,5192296858534827628530496329220096 seq $0,6005 ; The odd prime numbers together with 1. max $0,2 add $0,3 mov $1,2 pow $1,$0 div $1,16 mov $0,$1
64.363636
516
0.871469
0e590f0484e8fdef9be982b48e16b2ab3e97934a
706
asm
Assembly
Chapter01/Answers to Exercises/src/Ex__6_32_bit_addition.asm
jeras/Modern-Computer-Architecture-and-Organization-Second-Edition
53a03c8e9aefa3e82c38e14575b20b8155c13c9e
[ "MIT" ]
88
2020-02-09T12:35:47.000Z
2022-03-23T18:08:08.000Z
Chapter01/Answers to Exercises/src/Ex__6_32_bit_addition.asm
jeras/Modern-Computer-Architecture-and-Organization-Second-Edition
53a03c8e9aefa3e82c38e14575b20b8155c13c9e
[ "MIT" ]
2
2021-05-12T17:04:12.000Z
2021-05-15T21:40:40.000Z
Chapter01/Answers to Exercises/src/Ex__6_32_bit_addition.asm
jeras/Modern-Computer-Architecture-and-Organization-Second-Edition
53a03c8e9aefa3e82c38e14575b20b8155c13c9e
[ "MIT" ]
25
2019-12-01T14:40:42.000Z
2022-03-31T10:53:55.000Z
; Ex__6_32_bit_addition.asm ; Try running this code at ; https://skilldrick.github.io/easy6502/ ; Set up the values to be added ; Remove the appropriate semicolons to select the bytes to ; add: ; ($00000001 + $00000001) or ($0000FFFF + $00000001) or ; ($FFFFFFFE + $00000001) or ($FFFFFFFF + $00000001) LDA #$01 ;LDA #$FF ;LDA #$FE ;LDA #$FF STA $00 LDA #$00 ;LDA #$FF ;LDA #$FF ;LDA #$FF STA $01 LDA #$00 ;LDA #$00 ;LDA #$FF ;LDA #$FF STA $02 LDA #$00 ;LDA #$00 ;LDA #$FF ;LDA #$FF STA $03 LDA #$01 STA $04 LDA #$00 STA $05 STA $06 STA $07 ; Add the two 32-bit values using absolute indexed ; addressing mode LDX #$00 LDY #$04 CLC ADD_LOOP: LDA $00, X ADC $04, X STA $08, X INX DEY BNE ADD_LOOP
12.607143
58
0.650142
a24b777c5bb1d1ca86b5b63a311cb982f837e0c0
386
asm
Assembly
programs/oeis/109/A109964.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/109/A109964.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/109/A109964.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A109964: a(n) = floor(sqrt(sum_{i<n} a(i))), with a(0)=1. ; 1,1,1,1,2,2,2,3,3,4,4,4,5,5,6,6,7,7,8,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,32,33,33,34,34,35,35 mov $1,$0 lpb $1 lpb $2 mov $2,$1 add $1,$0 lpe sub $1,1 mul $2,2 add $2,1 lpe div $1,2 add $1,1
24.125
209
0.564767
c61b14ec3f802bdcb2f22a8e50b5ddadbddf3364
11,151
asm
Assembly
src/asm/lprt.asm
fourstix/Elfos-print
010e68b66d9f6cab3b0707d3fa9a28cba746193c
[ "MIT" ]
null
null
null
src/asm/lprt.asm
fourstix/Elfos-print
010e68b66d9f6cab3b0707d3fa9a28cba746193c
[ "MIT" ]
null
null
null
src/asm/lprt.asm
fourstix/Elfos-print
010e68b66d9f6cab3b0707d3fa9a28cba746193c
[ "MIT" ]
null
null
null
; ****************************************************************************** ; Lprt - Load the printer driver ; ; Copyright (c) 2021 by Gaston Williams ; ; ****************************************************************************** ; Based on code written by Michael H Riley ; Original copyright notice: ; ******************************************************************* ; *** This software is copyright 2004 by Michael H Riley *** ; *** You have permission to use, modify, copy, and distribute *** ; *** this software so long as this copyright notice is retained. *** ; *** This software may not be used in commercial applications *** ; *** without express written permission from the author. *** ; ******************************************************************* #include ops.inc include bios.inc include kernel.inc V_DEFAULT: equ 051bh ; ************************************************************ ; This block generates the Execution header ; It occurs 6 bytes before the program start. ; ************************************************************ ORG 02000h-6 ; Header starts at 01ffah dw 02000h ; Program load address dw endrom-2000h ; Program size dw 02000h ; Program execution address ORG 02000h ; code starts here BR start ; Jump past build info to code ; Build information binfo: db 80H+10 ; Month, 80H offset means extended info db 21 ; Day dw 2021 ; Year ; Current build number build: dw 1 ; Must end with 0 (null) db 'Copyright 2021 Gaston Williams',0 ; ============================================================================== ; Main ; ============================================================================== start: lda RA ; move past any spaces smi ' ' bz start dec ra ; move back to non-space character LDA ra ; check for nonzero byte bz loadp ; jump to load driver if no arguments smi '-' ; check for argument lbnz bad_arg ldn ra ; check for correct argument smi 'u' ; to unload diver lbz unload lbr bad_arg ; anything else is a bad argument loadp: LOAD rd, O_PRINT ; point rd to vector inc rd ; go to Address part of vector lda rd ; get high byte sdi 20h ; check if above kernel memory (> 2000h) lbnf loaded ; df = 0, means hi byte greater than 20h LOAD rc, 0015h ; block size of 21 bytes LOAD r7, 0F44H ; 16-byte alignment, named, permanent allocation CALL o_alloc ; allocate a block of memory lbdf bad_blk ; DF = 1 means allocation failed COPY rf, rd ; save copy of block address for later ; Because rf points to the memory block ; it's quick and easy to just load the opcode bytes ; directly, since this code block is so short. ldi 36h ; opcode for wait: B3 wait (wait here while EF3 true) str rf ; store branch glo rf ; rf points to branch opcode address, so get it now inc rf ; point to branch target address str rf ; save previous address so wait branches to itself inc rf ; point rf to next byte ldi 73h ; opcode for STXD str rf ; STXD saves byte below stack inc rf ; move rf to next byte in the printer driver ldi 60h ; opcode for IRX str rf ; IXR points x back to data byte inc rf ldi 65h ; opcode for OUT 5 str rf ; OUT increments stack pointer inc rf ldi 0f0h ; opcode for LDX str rf ; so we must decrement x by reading and writing inc rf ldi 73h ; opcode for STXD str rf ; the same byte with store and decrement x inc rf ldi 36h ; opcode for wait: B3 wait (wait here while EF3 true) str rf ; store branch glo rf ; rf points to branch opcode address, so get it now inc rf ; point to branch target address str rf ; save previous address so wait branches to itself inc rf ; point rf to next byte ldi 0d5h ; opcode for Return str rf ; save last program byte inc rf ; store code for prtstat ldi 36h ; opcode for prtstat: B3 prtstat (wait here while EF3 true) str rf ; store branch glo rf ; rf points to branch opcode address, so get it now inc rf ; point to branch target address str rf ; save previous address so wait branches to itself inc rf ; point rf to next byte ldi 6dh ; opcode for INP 5 str rf ; Read status byte in from Port 5 inc rf ldi 0d5h ; opcode for Return str rf ; save last program byte inc rf ; point to padding byte ldi 00h ; pad with zero before name str rf inc rf ldi 'P' ; store string "Print" as name str rf inc rf ldi 'r' ; store string "Print" as name str rf inc rf ldi 'i' ; store string "Print" as name str rf inc rf ldi 'n' ; store string "Print" as name str rf inc rf ldi 't' ; store string "Print" as name str rf inc rf ldi 0 ; name string ends with null str rf ; Drivers are now loaded LOAD rf, O_PRINT ; point rf to printer vector inc rf ; point to o_print vector address ghi rd ; get hi byte of driver address str rf ; save it in kernel o_print vector inc rf glo rd ; get lo byte of printer address str rf ; save it in kernel o_print vector adi 0Ah ; point rd to prtstat driver address plo rd ; eight bytes beyond print routine LOAD rf, O_PRTSTAT ; point rf to printer status vector inc rf ; point to o_prtstatus vector address ghi rd ; get hi byte of driver address str rf ; save it in kernel o_prtstatus vector inc rf glo rd ; get lo byte of printer address str rf ; save it in kernel o_prtstatus vector LOAD rf, success ; show msg that driver loaded CALL O_MSG RETURN ; return to elf/os unload: LOAD rd, O_PRINT ; point rd to printer vector at beginning of block inc rd ; o_print vector address is block address lda rd ; get hi byte of block address phi rf ; put into rf ldn rd ; get lo byte of block address plo rf ; put into rf CALL O_DEALLOC ; de-allocate block on heap LOAD rf, O_PRTSTAT ; point rf to printer status vector inc rf ; point to o_prtstatus vector address LOAD rd, O_PRINT ; point rd to printer vector inc rd ; point to o_print vector address ldi V_DEFAULT.1 ; load hi byte of original vector str rf ; point vectors back to original address inc rf str rd inc rd ldi V_DEFAULT.0 ; load lo byte of original vector str rf ; point vectors back to original address str rd LOAD rf, unloaded ; show message that driver is unloaded CALL O_MSG RETURN ; return to elf/os loaded: LOAD rf, already ; show already loaded message lbr show_err bad_blk: LOAD rf, mem_err ; show allocation error message lbr show_err bad_arg: LOAD rf, usage ; show usage message, then info text CALL O_MSG LOAD rf, info show_err: CALL O_MSG lbr O_WRMBOOT ; ============================================================================== ; Send a character to the printer ; ; This routine is independent of the X variable. ; ============================================================================== ; prtchar: b3 prtchar ; prevent over run, wait until not busy ; stxd ; save byte below stack ; irx ; point x back to data byte ; out 5 ; out increments stack pointer ; ldx ; so we must decrement x by reading and ; stxd ; writing same byte at the bottom of stack ; wait: b3 wait ; wait for busy flag to exit ; RETURN ; ; ============================================================================== ; Get status byte from printer ; ============================================================================== ; prtstat: b3 prtstat ; wait for busy flag to clear ; inp 5 ; get the status byte into D ; RETURN success: db 'Printer driver loaded.',13,10,0 unloaded: db 'Printer driver unloaded.',13,10,0 already: db 'A printer driver is already loaded.',13,10,0 mem_err: db 'Cannot allocate memory for the printer drivers.',13,10,0 usage: db 'Usage: lprt [-u]',13,10,0 info: db 'Loads printer drivers. Use option -u to unload.',13,10,0 endrom: equ $
48.482609
94
0.435566
5d21ba1a614b8652d6d82e7d510341f20de14391
322
asm
Assembly
PROGS/address.asm
carlos-santiago-2017/HC12-MicrocontrollerNotes
76e98b5761eae8c157fc8fd34324bc6c543ca9a3
[ "MIT" ]
null
null
null
PROGS/address.asm
carlos-santiago-2017/HC12-MicrocontrollerNotes
76e98b5761eae8c157fc8fd34324bc6c543ca9a3
[ "MIT" ]
null
null
null
PROGS/address.asm
carlos-santiago-2017/HC12-MicrocontrollerNotes
76e98b5761eae8c157fc8fd34324bc6c543ca9a3
[ "MIT" ]
null
null
null
ORG $E000 ;define start address CLRA ;clears ACCA INCB ;increment ACCB XGDY ;swap ACCD with IY DEY ;decrement IY CICLO BRA CICLO
53.666667
62
0.313665
f2f88782006dac906ff5633f165b470446259a3d
12,670
asm
Assembly
fiat-amd64/79.91_ratio12893_seed1129172745277633_square_secp256k1.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
491
2015-11-25T23:44:39.000Z
2022-03-29T17:31:21.000Z
fiat-amd64/79.91_ratio12893_seed1129172745277633_square_secp256k1.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
755
2016-02-02T14:03:05.000Z
2022-03-31T16:47:23.000Z
fiat-amd64/79.91_ratio12893_seed1129172745277633_square_secp256k1.asm
dderjoel/fiat-crypto
57a9612577d766a0ae83169ea9517bfa7f01ea4e
[ "BSD-1-Clause", "Apache-2.0", "MIT-0", "MIT" ]
117
2015-10-25T16:28:15.000Z
2022-02-08T23:01:09.000Z
SECTION .text GLOBAL square_secp256k1 square_secp256k1: sub rsp, 0xd0 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0xa0 ], rbx; saving to stack mov [ rsp + 0xa8 ], rbp; saving to stack mov [ rsp + 0xb0 ], r12; saving to stack mov [ rsp + 0xb8 ], r13; saving to stack mov [ rsp + 0xc0 ], r14; saving to stack mov [ rsp + 0xc8 ], r15; saving to stack mov rax, [ rsi + 0x18 ]; load m64 x3 to register64 mov rdx, rax; x3 to rdx mulx rax, r10, [ rsi + 0x18 ]; x154, x153<- x3 * arg1[3] mulx r11, rbx, [ rsi + 0x8 ]; x158, x157<- x3 * arg1[1] mulx rbp, r12, [ rsi + 0x10 ]; x156, x155<- x3 * arg1[2] mulx rdx, r13, [ rsi + 0x0 ]; x160, x159<- x3 * arg1[0] xor r14, r14 adox rbx, rdx mov r15, [ rsi + 0x10 ]; load m64 x2 to register64 mov rdx, r15; x2 to rdx mulx r15, rcx, [ rsi + 0x8 ]; x105, x104<- x2 * arg1[1] mulx r8, r9, [ rsi + 0x18 ]; x101, x100<- x2 * arg1[3] adox r12, r11 adox r10, rbp mulx r11, rbp, [ rsi + 0x10 ]; x103, x102<- x2 * arg1[2] mov r14, [ rsi + 0x0 ]; load m64 x4 to register64 mov [ rsp + 0x0 ], rdi; spilling out1 to mem mulx rdx, rdi, [ rsi + 0x0 ]; x107, x106<- x2 * arg1[0] mov [ rsp + 0x8 ], r10; spilling x165 to mem mov r10, 0x0 ; moving imm to reg adox rax, r10 adcx rcx, rdx mov rdx, [ rsi + 0x8 ]; load m64 x1 to register64 adcx rbp, r15 mulx r15, r10, [ rsi + 0x0 ]; x54, x53<- x1 * arg1[0] adcx r9, r11 mov [ rsp + 0x10 ], rax; spilling x167 to mem mulx r11, rax, [ rsi + 0x10 ]; x50, x49<- x1 * arg1[2] mov [ rsp + 0x18 ], r12; spilling x163 to mem mov [ rsp + 0x20 ], rbx; spilling x161 to mem mulx r12, rbx, [ rsi + 0x18 ]; x48, x47<- x1 * arg1[3] adc r8, 0x0 mov [ rsp + 0x28 ], r13; spilling x159 to mem mulx rdx, r13, [ rsi + 0x8 ]; x52, x51<- x1 * arg1[1] add r13, r15; could be done better, if r0 has been u8 as well adcx rax, rdx mov rdx, r14; x4 to rdx mulx r14, r15, [ rsi + 0x0 ]; x12, x11<- x4 * arg1[0] mov [ rsp + 0x30 ], r8; spilling x114 to mem mov r8, 0xd838091dd2253531 ; moving imm to reg xchg rdx, r8; 0xd838091dd2253531, swapping with x4, which is currently in rdx mov [ rsp + 0x38 ], r9; spilling x112 to mem mov [ rsp + 0x40 ], rbp; spilling x110 to mem mulx r9, rbp, r15; _, x20<- x11 * 0xd838091dd2253531 mov r9, rdx; preserving value of 0xd838091dd2253531 into a new reg mov rdx, [ rsi + 0x8 ]; saving arg1[1] in rdx. mov [ rsp + 0x48 ], rcx; spilling x108 to mem mov [ rsp + 0x50 ], rax; spilling x57 to mem mulx rcx, rax, r8; x10, x9<- x4 * arg1[1] adcx rbx, r11 mov rdx, 0xfffffffefffffc2f ; moving imm to reg mulx r11, r9, rbp; x29, x28<- x20 * 0xfffffffefffffc2f mov rdx, 0xffffffffffffffff ; moving imm to reg mov [ rsp + 0x58 ], rbx; spilling x59 to mem mov [ rsp + 0x60 ], rdi; spilling x106 to mem mulx rbx, rdi, rbp; x27, x26<- x20 * 0xffffffffffffffff adc r12, 0x0 test al, al adox rax, r14 adcx rdi, r11 setc r14b; spill CF x31 to reg (r14) clc; adcx r9, r15 adcx rdi, rax setc r9b; spill CF x40 to reg (r9) clc; adcx r10, rdi mov r15, 0xd838091dd2253531 ; moving imm to reg xchg rdx, r15; 0xd838091dd2253531, swapping with 0xffffffffffffffff, which is currently in rdx mulx r11, rax, r10; _, x72<- x62 * 0xd838091dd2253531 xchg rdx, rax; x72, swapping with 0xd838091dd2253531, which is currently in rdx mulx r11, rdi, r15; x79, x78<- x72 * 0xffffffffffffffff mov r15, 0xfffffffefffffc2f ; moving imm to reg mov [ rsp + 0x68 ], r12; spilling x61 to mem mulx rax, r12, r15; x81, x80<- x72 * 0xfffffffefffffc2f setc r15b; spill CF x63 to reg (r15) clc; adcx r12, r10 mov r12, rdx; preserving value of x72 into a new reg mov rdx, [ rsi + 0x10 ]; saving arg1[2] in rdx. mov [ rsp + 0x70 ], r11; spilling x79 to mem mulx r10, r11, r8; x8, x7<- x4 * arg1[2] adox r11, rcx mov rdx, 0xffffffffffffffff ; moving imm to reg mov [ rsp + 0x78 ], r10; spilling x8 to mem mulx rcx, r10, rbp; x25, x24<- x20 * 0xffffffffffffffff setc dl; spill CF x90 to reg (rdx) clc; adcx rdi, rax setc al; spill CF x83 to reg (rax) clc; mov [ rsp + 0x80 ], rcx; spilling x25 to mem mov rcx, -0x1 ; moving imm to reg movzx r14, r14b adcx r14, rcx; loading flag adcx rbx, r10 seto r14b; spill OF x16 to reg (r14) inc rcx; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) mov r10, -0x1 ; moving imm to reg movzx r9, r9b adox r9, r10; loading flag adox r11, rbx seto r9b; spill OF x42 to reg (r9) dec rcx; OF<-0x0, preserve CF (debug: state 1(0x0) (thanks Paul)) movzx r15, r15b adox r15, rcx; loading flag adox r11, r13 seto r10b; spill OF x65 to reg (r10) inc rcx; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) mov r13, -0x1 ; moving imm to reg movzx rdx, dl adox rdx, r13; loading flag adox r11, rdi seto r15b; spill OF x92 to reg (r15) mov rdx, -0x3 ; moving imm to reg inc rdx; OF<-0x0, preserve CF (debug 7; load -3, increase it, save it as -2). #last resort adox r11, [ rsp + 0x60 ] mov rdi, 0xd838091dd2253531 ; moving imm to reg mov rdx, r11; x115 to rdx mulx r11, rbx, rdi; _, x125<- x115 * 0xd838091dd2253531 mov r11, 0xfffffffefffffc2f ; moving imm to reg xchg rdx, rbx; x125, swapping with x115, which is currently in rdx mulx rcx, r13, r11; x134, x133<- x125 * 0xfffffffefffffc2f seto r11b; spill OF x116 to reg (r11) mov rdi, -0x2 ; moving imm to reg inc rdi; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1) adox r13, rbx mov r13, rdx; preserving value of x125 into a new reg mov rdx, [ rsi + 0x18 ]; saving arg1[3] in rdx. mulx r8, rbx, r8; x6, x5<- x4 * arg1[3] mov rdx, 0xffffffffffffffff ; moving imm to reg mov byte [ rsp + 0x88 ], r11b; spilling byte x116 to mem mulx rdi, r11, r12; x77, x76<- x72 * 0xffffffffffffffff mov byte [ rsp + 0x90 ], r15b; spilling byte x92 to mem mulx rbp, r15, rbp; x23, x22<- x20 * 0xffffffffffffffff mov rdx, [ rsp + 0x80 ]; x34, copying x25 here, cause x25 is needed in a reg for other than x34, namely all: , x34--x35, size: 1 adcx rdx, r15 seto r15b; spill OF x143 to reg (r15) mov byte [ rsp + 0x98 ], r10b; spilling byte x65 to mem mov r10, 0x0 ; moving imm to reg dec r10; OF<-0x0, preserve CF (debug: state 4 (thanks Paul)) movzx r14, r14b adox r14, r10; loading flag adox rbx, [ rsp + 0x78 ] mov r14, 0x0 ; moving imm to reg adcx rbp, r14 adox r8, r14 add al, 0xFF; load flag from rm/8 into CF, clears other flag. NODE, if operand1 is not a byte reg, this fails. setc al; since that has deps, resore it whereever it was adcx r11, [ rsp + 0x70 ] movzx r9, r9b adox r9, r10; loading flag adox rbx, rdx mov rax, 0xffffffffffffffff ; moving imm to reg mov rdx, rax; 0xffffffffffffffff to rdx mulx r12, rax, r12; x75, x74<- x72 * 0xffffffffffffffff adcx rax, rdi adcx r12, r14 adox rbp, r8 mulx r9, rdi, r13; x132, x131<- x125 * 0xffffffffffffffff clc; adcx rdi, rcx setc cl; spill CF x136 to reg (rcx) movzx r8, byte [ rsp + 0x98 ]; load byte memx65 to register64 clc; adcx r8, r10; loading flag adcx rbx, [ rsp + 0x50 ] mov r8, [ rsp + 0x58 ]; x68, copying x59 here, cause x59 is needed in a reg for other than x68, namely all: , x68--x69, size: 1 adcx r8, rbp setc bpl; spill CF x70 to reg (rbp) movzx rbp, bpl; spilling a flag to reg cause it has deps adox rbp, [ rsp + 0x68 ]; OF should have been spilled if it had deps, CF should have been spilled into rbp and into another reg, if it has had other deps than this one. movzx r14, byte [ rsp + 0x90 ]; load byte memx92 to register64 clc; adcx r14, r10; loading flag adcx rbx, r11 adcx rax, r8 seto r14b; spill OF x71 to reg (r14) movzx r11, byte [ rsp + 0x88 ]; load byte memx116 to register64 inc r10; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) mov r8, -0x1 ; moving imm to reg adox r11, r8; loading flag adox rbx, [ rsp + 0x48 ] mulx r11, r10, r13; x130, x129<- x125 * 0xffffffffffffffff adcx r12, rbp mov rbp, [ rsp + 0x40 ]; x119, copying x110 here, cause x110 is needed in a reg for other than x119, namely all: , x119--x120, size: 1 adox rbp, rax setc al; spill CF x98 to reg (rax) clc; movzx rcx, cl adcx rcx, r8; loading flag adcx r9, r10 mulx r13, rcx, r13; x128, x127<- x125 * 0xffffffffffffffff movzx r10, al; x99, copying x98 here, cause x98 is needed in a reg for other than x99, namely all: , x99, size: 1 movzx r14, r14b lea r10, [ r10 + r14 ] mov r14, [ rsp + 0x38 ]; x121, copying x112 here, cause x112 is needed in a reg for other than x121, namely all: , x121--x122, size: 1 adox r14, r12 mov rax, [ rsp + 0x30 ]; x123, copying x114 here, cause x114 is needed in a reg for other than x123, namely all: , x123--x124, size: 1 adox rax, r10 adcx rcx, r11 mov r11, 0x0 ; moving imm to reg adcx r13, r11 clc; movzx r15, r15b adcx r15, r8; loading flag adcx rbx, rdi seto r15b; spill OF x124 to reg (r15) mov rdi, -0x3 ; moving imm to reg inc rdi; OF<-0x0, preserve CF (debug 7; load -3, increase it, save it as -2). #last resort adox rbx, [ rsp + 0x28 ] adcx r9, rbp mov r12, 0xd838091dd2253531 ; moving imm to reg xchg rdx, r12; 0xd838091dd2253531, swapping with 0xffffffffffffffff, which is currently in rdx mulx rbp, r10, rbx; _, x178<- x168 * 0xd838091dd2253531 adcx rcx, r14 mov rbp, [ rsp + 0x20 ]; x170, copying x161 here, cause x161 is needed in a reg for other than x170, namely all: , x170--x171, size: 1 adox rbp, r9 mov r14, [ rsp + 0x18 ]; x172, copying x163 here, cause x163 is needed in a reg for other than x172, namely all: , x172--x173, size: 1 adox r14, rcx adcx r13, rax mov rax, 0xfffffffefffffc2f ; moving imm to reg xchg rdx, r10; x178, swapping with 0xd838091dd2253531, which is currently in rdx mulx r9, rcx, rax; x187, x186<- x178 * 0xfffffffefffffc2f movzx r11, r15b; x152, copying x124 here, cause x124 is needed in a reg for other than x152, namely all: , x152, size: 1 mov rdi, 0x0 ; moving imm to reg adcx r11, rdi mulx r15, rdi, r12; x185, x184<- x178 * 0xffffffffffffffff clc; adcx rdi, r9 seto r9b; spill OF x173 to reg (r9) inc r8; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0)) adox rcx, rbx adox rdi, rbp mulx rcx, rbx, r12; x183, x182<- x178 * 0xffffffffffffffff adcx rbx, r15 adox rbx, r14 setc bpl; spill CF x191 to reg (rbp) seto r14b; spill OF x200 to reg (r14) mov r15, rdi; x206, copying x197 here, cause x197 is needed in a reg for other than x206, namely all: , x216, x206--x207, size: 2 sub r15, rax dec r8; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1)) movzx r9, r9b adox r9, r8; loading flag adox r13, [ rsp + 0x8 ] mulx rdx, r9, r12; x181, x180<- x178 * 0xffffffffffffffff mov r8, [ rsp + 0x10 ]; x176, copying x167 here, cause x167 is needed in a reg for other than x176, namely all: , x176--x177, size: 1 adox r8, r11 seto r11b; spill OF x177 to reg (r11) mov r10, rbx; x208, copying x199 here, cause x199 is needed in a reg for other than x208, namely all: , x217, x208--x209, size: 2 sbb r10, r12 mov rax, 0x0 ; moving imm to reg dec rax; OF<-0x0, preserve CF (debug: state 4 (thanks Paul)) movzx rbp, bpl adox rbp, rax; loading flag adox rcx, r9 mov rbp, 0x0 ; moving imm to reg adox rdx, rbp inc rax; OF<-0x0, preserve CF (debug: state 1(-0x1) (thanks Paul)) mov rbp, -0x1 ; moving imm to reg movzx r14, r14b adox r14, rbp; loading flag adox r13, rcx adox rdx, r8 movzx r14, r11b; x205, copying x177 here, cause x177 is needed in a reg for other than x205, namely all: , x205, size: 1 adox r14, rax mov r9, r13; x210, copying x201 here, cause x201 is needed in a reg for other than x210, namely all: , x210--x211, x218, size: 2 sbb r9, r12 mov r11, rdx; x212, copying x203 here, cause x203 is needed in a reg for other than x212, namely all: , x212--x213, x219, size: 2 sbb r11, r12 sbb r14, 0x00000000 cmovc r9, r13; if CF, x218<- x201 (nzVar) cmovc r10, rbx; if CF, x217<- x199 (nzVar) cmovc r15, rdi; if CF, x216<- x197 (nzVar) mov r14, [ rsp + 0x0 ]; load m64 out1 to register64 mov [ r14 + 0x10 ], r9; out1[2] = x218 cmovc r11, rdx; if CF, x219<- x203 (nzVar) mov [ r14 + 0x18 ], r11; out1[3] = x219 mov [ r14 + 0x0 ], r15; out1[0] = x216 mov [ r14 + 0x8 ], r10; out1[1] = x217 mov rbx, [ rsp + 0xa0 ]; restoring from stack mov rbp, [ rsp + 0xa8 ]; restoring from stack mov r12, [ rsp + 0xb0 ]; restoring from stack mov r13, [ rsp + 0xb8 ]; restoring from stack mov r14, [ rsp + 0xc0 ]; restoring from stack mov r15, [ rsp + 0xc8 ]; restoring from stack add rsp, 0xd0 ret ; cpu Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz ; clocked at 4801 MHz ; first cyclecount 101.27, best 79.29896907216495, lastGood 79.90721649484536 ; seed 1129172745277633 ; CC / CFLAGS clang / -march=native -mtune=native -O3 ; time needed: 868962 ms / 60000 runs=> 14.4827ms/run ; Time spent for assembling and measureing (initial batch_size=97, initial num_batches=101): 101892 ms ; Ratio (time for assembling + measure)/(total runtime for 60000runs): 0.11725714127890517 ; number reverted permutation/ tried permutation: 23481 / 29962 =78.369% ; number reverted decision/ tried decision: 21452 / 30039 =71.414%
41.136364
168
0.691713
9136a6e3597abc7f96d091cf5105c9b00c23aa7d
742
asm
Assembly
oeis/121/A121674.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/121/A121674.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/121/A121674.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A121674: a(n) = [x^n] (1 + x*(1+x)^n )^n. ; Submitted by Christian Krause ; 1,1,5,28,233,2376,28102,379016,5707025,94439440,1699067321,32951077193,684009742319,15110032165151,353485501643471,8721374385748256,226128389777924385,6142306518887606112,174311816444805024379,5155712678147446317788,158590654828729593004406,5063484724793611512760155,167510497626241522496681378,5732749081707899139077487988,202665962883443974114681294653,7391240941018819048390711931251,277741546265473701604255922795027,10741395573551023065187111884034261,427093413676096807965990756269099006 mov $3,$0 mov $5,$0 lpb $5 mov $0,$3 mov $2,$3 sub $5,1 sub $0,$5 mov $1,$3 bin $1,$0 mul $2,$5 bin $2,$0 mul $1,$2 add $4,$1 lpe mov $0,$4 add $0,1
35.333333
495
0.78841
c1bf30be38b0c25ed583c37bdcfca595bf0bb3bb
2,535
asm
Assembly
Ejercicios/Cap_10/10-3-Contador_TC.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
Ejercicios/Cap_10/10-3-Contador_TC.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
Ejercicios/Cap_10/10-3-Contador_TC.asm
moisotico/Microprocesadores
ce434318f1245e60ac47ae0b1af2b424695bfc77
[ "MIT" ]
null
null
null
; Moises Campos Zepeda ; 06-06-2020 ; IE0623: Microprocesadores ; Ejercicio 6: Desplazamiento de LEDS con timer de comparacion ; Include File #include registers.inc ; ***************************************************************************** ; Data Structures ; **************************************************************************** org $1000 LEDS: ds 1 CONT_OC: ds 1 ; ***************************************************************************** ; Interruption Vector Relocation ; ***************************************************************************** org $3E64 dw OC5_ISR ; ***************************************************************************** ; HW Config ; ***************************************************************************** org $2000 bset DDRB,$FF bset DDRJ,$02 bclr PTJ,$02 ;movb #$0F,DDRP bset DDRP,$0F bset PTP,$0F ; Ctrl registers and timer enable bset TSCR1,$90 bset TSCR2,$04 bset TIOS,$20 bset TIE,$20 bset TCTL1,$04 ldd TCNT addd #1500 std TC5 ; ***************************************************************************** ; Main Program ; ***************************************************************************** lds #$3BFF cli movb #$01,LEDS movb #25,CONT_OC bra * ; ***************************************************************************** ; TOI_ISR Subroutine ; ***************************************************************************** OC5_ISR: dec CONT_OC bne RETURN_ISR movb #25,CONT_OC movb LEDS,PORTB ldaa LEDS cmpa #$80 bne LSL_LEDS movb #$01,LEDS RETURN_ISR: ldd TCNT addd #15000 std TC5 rti LSL_LEDS: lsl LEDS bra RETURN_ISR
32.922078
91
0.23787
210d721de2084273bb472124f2e12d799e6319ec
694
asm
Assembly
programs/oeis/249/A249827.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/249/A249827.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/249/A249827.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A249827: Row 3 of A246278: replace in 2n each prime factor p(k) with prime p(k+2). ; 5,25,35,125,55,175,65,625,245,275,85,875,95,325,385,3125,115,1225,145,1375,455,425,155,4375,605,475,1715,1625,185,1925,205,15625,595,575,715,6125,215,725,665,6875,235,2275,265,2125,2695,775,295,21875,845,3025,805,2375,305,8575,935,8125,1015,925,335,9625,355,1025,3185,78125,1045,2975,365,2875,1085,3575,395,30625,415,1075,4235,3625,1105,3325,445,34375,12005,1175,485,11375,1265,1325,1295,10625,505,13475,1235,3875,1435,1475,1595,109375,515,4225,4165,15125 seq $0,253885 ; Permutation of even numbers: a(n) = A003961(n+1) - 1. seq $0,3961 ; Completely multiplicative with a(prime(k)) = prime(k+1). mul $0,5
99.142857
457
0.744957
ce80adc738a43bbeb99f22d6c5a64dbca5c52cbd
699
asm
Assembly
oeis/277/A277421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/277/A277421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/277/A277421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A277421: a(n) = n!*LaguerreL(n, -7*n). ; Submitted by Jon Maiga ; 1,8,254,13614,1025048,99368620,11781698256,1651548277946,267197019684224,49000715036948304,10044513851042988800,2275926588768085912582,564838094735322988575744,152378369304839730672573044,44397985962782115253758973952,13894756312087316553767453999250,4648504464531370437001260786089984,1655529184555255955688413238329575576,625348418464455813499940461008883482624,249716526144057736942527468364250310512606,105109212278935984233662226477363400048640000 mov $2,1 mov $3,$0 mov $4,1 lpb $3 mul $1,$3 mul $4,$3 add $1,$4 mul $1,$3 mul $2,7 mul $2,$0 mov $4,0 add $5,1 div $1,$5 add $2,$1 sub $3,1 lpe mov $0,$2
31.772727
454
0.793991
8e3e72afccb1f4496b650acafd837d74f109a6ad
360
asm
Assembly
unittests/ASM/X87_F64/D8_F8_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/D8_F8_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/D8_F8_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "RAX": "0x3fe0000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov rax, 0x4000000000000000 ; 2.0 mov [rdx + 8 * 0], rax mov rax, 0x4010000000000000 ; 4.0 mov [rdx + 8 * 1], rax fld qword [rdx + 8 * 0] fld qword [rdx + 8 * 1] fdivr st0, st1 fst qword [rdx] mov rax, [rdx] hlt
13.846154
44
0.613889
7548e55aaf9ca4a5e4e98113c07a482b83738c75
969
asm
Assembly
programs/oeis/157/A157371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/157/A157371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/157/A157371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A157371: a(n) = (n+1)*(9-9*n+5*n^2-n^3). ; 9,8,9,0,-55,-216,-567,-1216,-2295,-3960,-6391,-9792,-14391,-20440,-28215,-38016,-50167,-65016,-82935,-104320,-129591,-159192,-193591,-233280,-278775,-330616,-389367,-455616,-529975,-613080,-705591,-808192,-921591,-1046520,-1183735,-1334016,-1498167,-1677016,-1871415,-2082240,-2310391,-2556792,-2822391,-3108160,-3415095,-3744216,-4096567,-4473216,-4875255,-5303800,-5759991,-6244992,-6759991,-7306200,-7884855,-8497216,-9144567,-9828216,-10549495,-11309760,-12110391,-12952792,-13838391,-14768640,-15745015,-16769016,-17842167,-18966016,-20142135,-21372120,-22657591,-24000192,-25401591,-26863480,-28387575,-29975616,-31629367,-33350616,-35141175,-37002880,-38937591,-40947192,-43033591,-45198720,-47444535,-49773016,-52186167,-54686016,-57274615,-59954040,-62726391,-65593792,-68558391,-71622360,-74787895,-78057216,-81432567,-84916216,-88510455,-92217600 sub $0,1 pow $0,2 sub $0,1 pow $0,2 sub $0,9 sub $1,$0 mov $0,$1
88.090909
859
0.738906
1dcceaa5db3e3ecbfc3664844e1357558356c04d
2,103
asm
Assembly
UP1/Algorithms/class4.asm
rubemfsv/Digital-Control-Systems
cce73b7d2803cb85806568674dc35fb67ac824c5
[ "MIT" ]
null
null
null
UP1/Algorithms/class4.asm
rubemfsv/Digital-Control-Systems
cce73b7d2803cb85806568674dc35fb67ac824c5
[ "MIT" ]
null
null
null
UP1/Algorithms/class4.asm
rubemfsv/Digital-Control-Systems
cce73b7d2803cb85806568674dc35fb67ac824c5
[ "MIT" ]
null
null
null
; Codigo em assembly que faz o acionamento retentivo de um led, agora na porta A, dois botões devem somar e subtrair o valor da porta B. Ou seja, um botão ao ser clicado deve somar 1 ao valor da porta B e o outro deve subtrair. INCLUDE<P16F84A.INC> #DEFINE BOTAO0 PORTA,0 ;define o pino 0 de A como o botao 0. SOMA #DEFINE BOTAO1 PORTA,1 ;define o pino 1 de A como o botao 1. SUBTRAI ORG 0X00 GOTO INICIO ;--- A CONTEM 2 BOTOES, UM QUE SOMA 1 EM B E OUTRO QUE SUBTRAI 1 EM B ---; INICIO CLRW CLRF PORTA CLRF PORTB BCF STATUS, RP0 BSF TRISA, 0 ;seta o bit 0 de A como de entrada BSF TRISB, 1 ;seta o bit 1 de A como de entrada CLRF PORTB ;todos os bit de B sao 0 (de saida) BSF STATUS, RP0 ;---CONTROLE DOS BOTOES ---; MAIN BTFSS BOTAO0 ;quando a entrada ta em 1 o botao ta solto, quando ta em 0 o botao ta pressionado GOTO BOTAO0_PRESS ;quando da 0 ele ta pressionado GOTO CHECA_BOTAO1 ;se chegou e ta solto vai chegar o proximo botao BOTAO0_PRESS BTFSS BOTAO0 GOTO BOTAO0_PRESS ;se ele permanecer em 0 o botao ainda ta pressionado GOTO SOMA ;quando tiver 1 soltou o botao e vai realizar a soma CHECA_BOTAO1 BTFSS BOTAO1 GOTO BOTAO1_PRESS ;se tiver 0 o botao ta pressionado e vai para a label de pressionar GOTO MAIN ;se tiver 1 volta o botao ta solto e volta pro comeco para checar o botao 0 novamente BOTAO1_PRESS BTFSS BOTAO1 GOTO BOTAO1_PRESS ;se tiver 0 ainda ta pressionado GOTO SUB ;se tiver em 1 foi solto e vai realizar a subtracao ;--- OPERACOES ---; SOMA INCF PORTB, 1 ;incrementa 1 no registrador GOTO MAIN SUB DECF PORTB,1 ;decrementa 1 no registrador GOTO MAIN END
35.644068
227
0.574893
b307b37a756740078896f9ceab14e12f2912a1bc
588
asm
Assembly
oeis/074/A074506.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/074/A074506.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/074/A074506.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A074506: a(n) = 1^n + 3^n + 4^n. ; 3,8,26,92,338,1268,4826,18572,72098,281828,1107626,4371452,17308658,68703188,273218426,1088090732,4338014018,17309009348,69106897226,276040168412,1102998412178,4408506864308,17623567104026,70462887356492,281757406247138,1126747195452068,4506141493198826,18022024106966972,72080470830382898,288299006529076628,1153127395738941626,4612303691823671852,18448597093898403458,73792535355404761988,295164582361052492426,1180641652262510303132,4722516577504942212818,18889916215384471852148 mov $1,4 pow $1,$0 add $1,1 mov $2,3 pow $2,$0 add $1,$2 mov $0,$1
53.454545
484
0.841837
5ccacf98029243acad75e5de7d3ce2b49a0be49b
14,817
asm
Assembly
dodecaedre.asm
MaaximeLH/dodecaedre_asm
88874134fa46c86d5c39796495461666824e5ac4
[ "MIT" ]
1
2022-01-27T22:00:21.000Z
2022-01-27T22:00:21.000Z
dodecaedre.asm
oneplike/dodecaedre_asm
88874134fa46c86d5c39796495461666824e5ac4
[ "MIT" ]
null
null
null
dodecaedre.asm
oneplike/dodecaedre_asm
88874134fa46c86d5c39796495461666824e5ac4
[ "MIT" ]
3
2020-11-15T16:13:04.000Z
2022-01-27T22:00:02.000Z
; external functions from X11 library extern XOpenDisplay extern XDisplayName extern XCloseDisplay extern XCreateSimpleWindow extern XMapWindow extern XRootWindow extern XSelectInput extern XFlush extern XCreateGC extern XSetForeground extern XDrawLine extern XNextEvent ; external functions from stdio library (ld-linux-x86-64.so.2) extern exit extern printf %define StructureNotifyMask 131072 %define KeyPressMask 1 %define ButtonPressMask 4 %define MapNotify 19 %define KeyPress 2 %define ButtonPress 4 %define Expose 12 %define ConfigureNotify 22 %define CreateNotify 16 %define QWORD 8 %define DWORD 4 %define WORD 2 %define BYTE 1 global main section .bss display_name: resq 1 screen: resd 1 depth: resd 1 connection: resd 1 width: resd 1 height: resd 1 window: resq 1 gc: resq 1 section .data question1: db "Valeur X = %f , Y = %f , Z = %f",10,0 questionCount: db "Valeur de CountPF = %d",10,0 questionf: db "Valeur = %f",10,0 questionpl1: db "PL1 = %d - PL2 = %d",10,0 questionV: db "V1 = %d - V2 = %d",10,0 questionCo: db "X1 = %f - Y1 = %f - Z1 = %f",10,0 questionCo2: db "X2 = %f - Y2 = %f - Z2 = %f",10,0 questionPrime: db "Xprime1 = %f - Yprime1 = %f",10,0 questionPrime2: db "Xprime2 = %f - Yprime2 = %f",10,0 questionTest: db "Test conversion x1 = %d - y1 = %d",10,0 questionTest2: db "Test conversion x2 = %d - y2 = %d",10,0 questionTopBot: db "topDiv = %f - botDiv = %f",10,0 questionNormal: db "A = %d - B = %d",10,0 questionNormal2: db "Normal = %d",10,0 fenetre: db 0 tabPoint: db 0 countPoint: db 0 countFace: db 0 nFace: db 0 boucleP: db 0 pointLec1: db 0 pointLec2: db 0 A: db 0 B: db 0 C: db 0 xA: dd 0 xB: dd 0 xC: dd 0 yA: dd 0 yB: dd 0 yC: dd 0 xBA: dd 0 xBC: dd 0 yBA: dd 0 yBC: dd 0 normal: dd 0 x1: dd 0 y1: dd 0 z1: dd 0 x2: dd 0 y2: dd 0 z2: dd 0 v1: db 0 v2: db 0 df: dd 400.0 zoff: dd 400.0 xoff: dd 200.0 yoff: dd 200.0 topvdiv: dd 0 botdiv: dd 0 xP1: dd 0 yP1: dd 0 xP2: dd 0 yP2: dd 0 x1C: dd 0 y1C: dd 0 x2C: dd 0 y2C: dd 0 topDiv: dd 0 botDiv: dd 0 event: times 24 dq 0 ; Un point par ligne sous la forme X,Y,Z dodec: dd 0.0,50.0,80.901699 ; point 0 dd 0.0,-50.0,80.901699 ; point 1 dd 80.901699,0.0,50.0 ; point 2 dd 80.901699,0.0,-50.0 ; point 3 dd 0.0,50.0,-80.901699 ; point 4 dd 0.0,-50.0,-80.901699 ; point 5 dd -80.901699,0.0,-50.0 ; point 6 dd -80.901699,0.0,50.0 ; point 7 dd 50.0,80.901699,0.0 ; point 8 dd -50.0,80.901699,0.0 ; point 9 dd -50.0,-80.901699,0.0 ; point 10 dd 50.0,-80.901699,0.0 ; point 11 ; Une face par ligne, chaque face est composée de 3 points tels que numérotés dans le tableau dodec ci-dessus ; Les points sont donnés dans le bon ordre pour le calcul des normales. ; Exemples : ; pour la première face (0,8,9), on fera le produit vectoriel des vecteurs 80 (vecteur des points 8 et 0) et 89 (vecteur des points 8 et 9) ; pour la deuxième face (0,2,8), on fera le produit vectoriel des vecteurs 20 (vecteur des points 2 et 0) et 28 (vecteur des points 2 et 8) ; etc... faces: db 0,8,9,0 db 0,2,8,0 db 2,3,8,2 db 3,4,8,3 db 4,9,8,4 db 6,9,4,6 db 7,9,6,7 db 7,0,9,7 db 1,10,11,1 db 1,11,2,1 db 11,3,2,11 db 11,5,3,11 db 11,10,5,11 db 10,6,5,10 db 10,7,6,10 db 10,1,7,10 db 0,7,1,0 db 0,1,2,0 db 3,5,4,3 db 5,6,4,5 section .text ;################################################## ;########### PROGRAMME PRINCIPAL ################## ;################################################## main: calculNormal: mov al,4 mul byte[nFace] mov byte[tabPoint],al ;tabPoint = 4 * nFace movzx ecx,byte[tabPoint] mov al,byte[faces+ecx] ;récupere le numéro du point par apport a Nface mov byte[A],al ;A = poisition dans le tableau en fonction de count inc byte[tabPoint] movzx ecx,byte[tabPoint] mov al,byte[faces+ecx] ;récupere le numéro du point par apport a Nface mov byte[B],al ;A = poisition dans le tableau en fonction de count inc byte[tabPoint] movzx ecx,byte[tabPoint] mov al,byte[faces+ecx] ;récupere le numéro du point par apport a Nface mov byte[C],al ;A = poisition dans le tableau en fonction de count ;Coordonée A mov al,3 mul byte[A] mov byte[v1],al ;On multiplie PointLec1 directement pour juste incrémenté apres movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de X2 en fonction de V1 dans dodec movss dword[xA],xmm0 inc byte[v1] movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de y2 en fonction de V1 dans dodec movss dword[yA],xmm0 ;Coordonée B mov al,3 mul byte[B] mov byte[v1],al ;On multiplie PointLec1 directement pour juste incrémenté apres movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de X2 en fonction de V1 dans dodec movss dword[xB],xmm0 inc byte[v1] movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de y2 en fonction de V1 dans dodec movss dword[yB],xmm0 ;Coordonée C mov al,3 mul byte[C] mov byte[v1],al ;On multiplie PointLec1 directement pour juste incrémenté apres movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de X2 en fonction de V1 dans dodec movss dword[xC],xmm0 inc byte[v1] movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de y2 en fonction de V1 dans dodec movss dword[yC],xmm0 MathsNormal: movss xmm0,dword[xA] movss xmm1,dword[xB] subss xmm0,xmm1 movss dword[xBA],xmm0 ;calcul de xBA movss xmm0,dword[xC] movss xmm1,dword[xB] subss xmm0,xmm1 movss dword[xBC],xmm0 ;calcul de xBC movss xmm0,dword[yA] movss xmm1,dword[yB] subss xmm0,xmm1 movss dword[yBA],xmm0 ;calcul de yBA movss xmm0,dword[yC] movss xmm1,dword[yB] subss xmm0,xmm1 movss dword[yBC],xmm0 ;calcul de yBC movss xmm0,dword[xBA] mulss xmm0,[yBC] ;xBA* yBC -> xmm0 movss xmm1,dword[yBA] mulss xmm1,[xBC] ; yBA * xBC -> xmm1 subss xmm0,xmm1 ; normal = xmm0 - xmm1 cvtss2si eax,xmm0 ;Conversion en entier mov dword[normal],eax ;normal en entier dword cmp dword[normal],0 jg boucleFace ;si supérieur à 0 on retourne en bas sans dessin ;sinon on continue et dessine bouclePoint: cmp byte[countPoint],3 jae boucleFace mov al,4 mul byte[nFace] add al,byte[countPoint] mov byte[tabPoint],al ;tabPoint = 4 * nFace movzx ecx,byte[tabPoint] mov al,byte[faces+ecx] ;récupere le numéro du point par apport a Nface mov byte[pointLec1],al ;PL1 = poisition dans le tableau en fonction de count inc byte[tabPoint] inc byte[countPoint] movzx ecx,byte[tabPoint] mov al,byte[faces+ecx] mov byte[pointLec2],al ;PL2 = PL1 + 1 dans le tableau ;Coordonée P1 mov al,3 mul byte[pointLec1] mov byte[v1],al ;On multiplie PointLec1 directement pour juste incrémenté apres movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de X2 en fonction de V1 dans dodec movss dword[x1],xmm0 inc byte[v1] movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de y2 en fonction de V1 dans dodec movss dword[y1],xmm0 inc byte[v1] movzx ecx,byte[v1] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de z2 en fonction de V1 dans dodec movss dword[z1],xmm0 ;Coordonée P2 mov al,3 mul byte[pointLec2] mov byte[v2],al movzx ecx,byte[v2] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de X2 en fonction de V1 dans dodec movss dword[x2],xmm0 inc byte[v2] movzx ecx,byte[v2] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de y2 en fonction de V1 dans dodec movss dword[y2],xmm0 inc byte[v2] movzx ecx,byte[v2] movss xmm0,dword[dodec+ecx*DWORD] ;cherche la position de z2 en fonction de V1 dans dodec movss dword[z2],xmm0 maths3D: ;x1' ;topdiv = (df * x1) movss xmm0,dword[df] mulss xmm0,[x1] movss dword[topDiv],xmm0 ;botdiv = z1 + zoff movss xmm1,dword[z1] addss xmm1,[zoff] movss dword[botDiv],xmm1 ;x1' = (topdov / botdiv) + xoff divss xmm0,xmm1 addss xmm0,[xoff] movss dword[xP1],xmm0 cvtss2si eax,xmm0 ;Conversion en entier mov dword[x1C],eax ;y1' ;topdiv = (df * y1) movss xmm0,dword[df] mulss xmm0,[y1] movss dword[topDiv],xmm0 ;botdiv = z1 + zoff movss xmm1,dword[z1] addss xmm1,[zoff] movss dword[botDiv],xmm1 ;y1' = (topdov / botdiv) + yoff divss xmm0,xmm1 addss xmm0,[yoff] movss dword[yP1],xmm0 cvtss2si eax,xmm0 ;Conversion en entier mov dword[y1C],eax ;x2' ;topdiv = (df * x2) movss xmm0,dword[df] mulss xmm0,[x2] movss dword[topDiv],xmm0 ;botdiv = z2 + zoff movss xmm1,dword[z2] addss xmm1,[zoff] movss dword[botDiv],xmm1 ;x2' = (topdov / botdiv) + xoff divss xmm0,xmm1 addss xmm0,[xoff] movss dword[xP2],xmm0 cvtss2si eax,xmm0 ;Conversion en entier mov dword[x2C],eax ;y2' ;topdiv = (df * y2) movss xmm0,dword[df] mulss xmm0,[y2] movss dword[topDiv],xmm0 ;botdiv = z2 + zoff movss xmm1,dword[z2] addss xmm1,[zoff] movss dword[botDiv],xmm1 ;y2' = (topdov / botdiv) + yoff divss xmm0,xmm1 addss xmm0,[yoff] movss dword[yP2],xmm0 cvtss2si eax,xmm0 ;Conversion en entier mov dword[y2C],eax affichage: ;lecture Point1 et Point2 du tableau Faces push rbp mov rdi,questionNormal movzx rsi,byte[pointLec1] movzx rdx,byte[pointLec2] mov rax,0 call printf pop rbp push rbp mov rdi,questionNormal2 xor rsi,rsi mov esi,dword[normal] mov rax,0 call printf pop rbp cmp byte[fenetre],1 je prog_principal ;#################################### ;## Code de création de la fenêtre ## ;#################################### mov byte[fenetre],1 xor rdi,rdi call XOpenDisplay ; Création de display mov qword[display_name],rax ; rax=nom du display mov rax,qword[display_name] mov eax,dword[rax+0xe0] mov dword[screen],eax mov rdi,qword[display_name] mov esi,dword[screen] call XRootWindow mov rbx,rax mov rdi,qword[display_name] mov rsi,rbx mov rdx,10 mov rcx,10 mov r8,400 ; largeur mov r9,400 ; hauteur push 0xFFFFFF ; background 0xRRGGBB push 0x00FF00 push 1 call XCreateSimpleWindow mov qword[window],rax mov rdi,qword[display_name] mov rsi,qword[window] mov rdx,131077 ;131072 call XSelectInput mov rdi,qword[display_name] mov rsi,qword[window] call XMapWindow mov rdi,qword[display_name] mov rsi,qword[window] mov rdx,0 mov rcx,0 call XCreateGC mov qword[gc],rax mov rdi,qword[display_name] mov rsi,qword[gc] mov rdx,0x000000 ; Couleur du crayon call XSetForeground ; boucle de gestion des évènements boucle: mov rdi,qword[display_name] mov rsi,event call XNextEvent cmp dword[event],ConfigureNotify je prog_principal cmp dword[event],KeyPress je closeDisplay jmp boucle ;########################################### ;## Fin du code de création de la fenêtre ## ;########################################### ;############################################ ;## Ici commence le programme principal ## ;############################################ prog_principal: mov rdi,qword[display_name] mov rsi,qword[window] mov rdx,qword[gc] mov ecx,dword[x1C] ; coordonnée source en x mov r8d,dword[y1C] ; coordonnée source en y mov r9d,dword[x2C] ; coordonnée destination en x push qword[y2C] ; coordonnée destination en y call XDrawLine jmp bouclePoint boucleFace: ;numéro de la face pour le tableau Faces ;La boucle prend fin quand nFace > 20 apres le dessin inc byte[nFace] cmp byte[nFace],19 ja flush mov byte[countPoint],0 ;on remet notre count à 0 jmp calculNormal ;############################################## ;## Ici se termine VOTRE programme principal ## ;############################################## jb boucle jmp flush flush: mov rdi,qword[display_name] call XFlush jmp boucle mov rax,34 syscall closeDisplay: mov rax,qword[display_name] mov rdi,rax call XCloseDisplay xor rdi,rdi call exit
26.364769
199
0.538368
fb8a06f2b851b1dfacea8206749f65908923a9eb
315
asm
Assembly
programs/oeis/131/A131733.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131733.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131733.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131733: Primes (A000040) - odds (A005408). ; 1,0,0,0,2,2,4,4,6,10,10,14,16,16,18,22,26,26,30,32,32,36,38,42,48,50,50,52,52,54,66,68,72,72,80,80,84,88,90,94,98,98,106,106,108,108,118,128,130,130,132,136,136,144,148,152,156,156,160,162,162,170 mov $1,$0 seq $0,40 ; The prime numbers. mul $1,2 sub $0,$1 sub $0,1
35
198
0.657143
171f7e9394808ecc969aa756f3414d3e7559059c
8,394
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_851_203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_851_203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_851_203.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xb0c9, %rsi lea addresses_normal_ht+0x19fd9, %rdi nop inc %r14 mov $51, %rcx rep movsl nop xor %r14, %r14 lea addresses_UC_ht+0x1b29, %rdx nop add $57017, %r12 movw $0x6162, (%rdx) nop nop nop xor $28341, %r12 lea addresses_A_ht+0x7369, %r14 nop nop nop cmp $43865, %r10 mov $0x6162636465666768, %rdi movq %rdi, (%r14) inc %rsi lea addresses_D_ht+0x1d4c9, %rsi nop nop nop nop nop mfence mov $0x6162636465666768, %rdx movq %rdx, (%rsi) nop nop nop nop nop add %r14, %r14 lea addresses_A_ht+0x6cc9, %rcx nop nop nop and %rdx, %rdx movl $0x61626364, (%rcx) cmp $2020, %r14 lea addresses_D_ht+0x13209, %rsi lea addresses_WC_ht+0x2209, %rdi cmp $24500, %rbx mov $86, %rcx rep movsb nop nop and %rdi, %rdi lea addresses_D_ht+0xfb1, %r10 nop nop nop inc %r14 movb $0x61, (%r10) nop nop nop nop nop cmp $20199, %rsi lea addresses_normal_ht+0x3ceb, %r12 nop nop nop nop nop add %r14, %r14 mov $0x6162636465666768, %rbx movq %rbx, (%r12) nop nop nop nop cmp $34462, %rdi lea addresses_A_ht+0x44c9, %rdi nop nop nop nop and %rsi, %rsi mov (%rdi), %rbx nop nop nop nop add %rsi, %rsi lea addresses_WC_ht+0x9e81, %rsi lea addresses_normal_ht+0x144c9, %rdi clflush (%rsi) nop nop nop nop nop add $24184, %r10 mov $53, %rcx rep movsq nop nop nop nop and %rdx, %rdx lea addresses_A_ht+0x144c9, %rsi lea addresses_A_ht+0xa189, %rdi nop nop inc %r14 mov $120, %rcx rep movsl nop nop cmp %r12, %r12 lea addresses_A_ht+0x1b8c9, %rsi lea addresses_WC_ht+0x1b8c9, %rdi and $37142, %r14 mov $99, %rcx rep movsb nop nop nop dec %rdx lea addresses_WC_ht+0x128c9, %r12 nop dec %rbx movb $0x61, (%r12) nop nop nop xor $64779, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi // Load lea addresses_US+0x59c9, %r14 clflush (%r14) nop nop cmp $51233, %rbp movaps (%r14), %xmm3 vpextrq $1, %xmm3, %rcx nop nop nop nop cmp $2601, %rbp // Store lea addresses_WC+0x1a749, %rsi nop nop nop xor $21492, %rdx movw $0x5152, (%rsi) xor $26590, %r9 // Store lea addresses_A+0x130c9, %rdi dec %rbp mov $0x5152535455565758, %r14 movq %r14, %xmm5 movups %xmm5, (%rdi) nop nop nop cmp $33704, %rdx // Store mov $0x349, %rdx nop dec %rsi movl $0x51525354, (%rdx) nop nop nop add %rdi, %rdi // Store lea addresses_US+0x1ad9e, %rdx nop nop nop nop nop add $50363, %rbp mov $0x5152535455565758, %rsi movq %rsi, %xmm0 movups %xmm0, (%rdx) nop nop add %rdi, %rdi // Store lea addresses_UC+0x18489, %rdx nop nop and %rcx, %rcx mov $0x5152535455565758, %r9 movq %r9, %xmm2 movups %xmm2, (%rdx) nop nop nop nop xor $27180, %rcx // Faulty Load mov $0xc9, %rdx nop add %rdi, %rdi vmovaps (%rdx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r14 lea oracles, %rsi and $0xff, %r14 shlq $12, %r14 mov (%rsi,%r14,1), %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': True, 'NT': True, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'00': 851} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
29.145833
2,552
0.653681
4990c7a4108edabab156e8055dbb9ab2e855e6fe
8,985
asm
Assembly
src/x86-64/sysvar.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
src/x86-64/sysvar.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
src/x86-64/sysvar.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT ; ; System Variables ; ============================================================================= ; Constants hextable: db '0123456789ABCDEF' ; Strings system_status_header: db 'BareMetal v1.0.0', 0 readymsg: db 'BareMetal is ready', 13, 0 cpumsg: db '[cpu: ', 0 memmsg: db '] [mem: ', 0 networkmsg: db '] [net: ', 0 diskmsg: db '] [hdd: ', 0 mibmsg: db ' MiB', 0 mhzmsg: db ' MHz', 0 coresmsg: db ' x ', 0 namsg: db 'N/A', 0 closebracketmsg: db ']', 0 space: db ' ', 0 newline: db 13, 0 tab: db 9, 0 memory_message: db 'Not enough system memory for CPU stacks! System halted.', 0 ; Memory addresses sys_idt: equ 0x0000000000000000 ; 4096 bytes 0x000000 -> 0x000FFF Interrupt descriptor table sys_gdt: equ 0x0000000000001000 ; 4096 bytes 0x001000 -> 0x001FFF Global descriptor table sys_pml4: equ 0x0000000000002000 ; 4096 bytes 0x002000 -> 0x002FFF PML4 table sys_pdp: equ 0x0000000000003000 ; 4096 bytes 0x003000 -> 0x003FFF PDP table sys_Pure64: equ 0x0000000000004000 ; 16384 bytes 0x004000 -> 0x007FFF Pure64 system data sys_pd: equ 0x0000000000010000 ; 262144 bytes 0x010000 -> 0x04FFFF Page directory ahci_cmdlist: equ 0x0000000000070000 ; 4096 bytes 0x070000 -> 0x071FFF ahci_receivedfis: equ 0x0000000000071000 ; 4096 bytes 0x071000 -> 0x072FFF ahci_cmdtable: equ 0x0000000000072000 ; 57344 bytes 0x072000 -> 0x07FFFF cli_temp_string: equ 0x0000000000080000 ; 1024 bytes 0x080000 -> 0x0803FF os_temp_string: equ 0x0000000000080400 ; 1024 bytes 0x080400 -> 0x0807FF os_args: equ 0x0000000000080C00 sys_ROM: equ 0x00000000000A0000 ; 393216 bytes 0x0A0000 -> 0x0FFFFF os_KernelStart: equ 0x0000000000100000 ; 65536 bytes 0x100000 -> 0x10FFFF Location of Kernel os_SystemVariables: equ 0x0000000000110000 ; 65536 bytes 0x110000 -> 0x11FFFF Location of System Variables os_MemoryMap: equ 0x0000000000120000 ; 131072 bytes 0x120000 -> 0x13FFFF Location of Memory Map - Room to map 256 GiB with 2 MiB pages os_EthernetBuffer: equ 0x0000000000140000 ; 262144 bytes 0x140000 -> 0x17FFFF Location of Ethernet RX Ring Buffer - Room for 170 packets os_screen: equ 0x0000000000180000 ; 4096 bytes 80x25x2 = 4000 os_temp: equ 0x0000000000190000 os_ethernet_rx_buffer: equ 0x00000000001C0000 os_eth_rx_buffer: equ 0x00000000001C8000 os_ethernet_tx_buffer: equ 0x00000000001D0000 os_eth_tx_buffer: equ 0x00000000001D8000 cpustatus: equ 0x00000000001FEF00 ; Location of CPU status data (256 bytes) Bit 0 = Available, Bit 1 = Free/Busy cpuqueue: equ 0x00000000001FF000 ; Location of CPU Queue. Each queue item is 16 bytes. (4KiB before the 2MiB mark, room for 256 entries) managerlocation: equ 0x0000000000200000 ; Location in memory where manager is loaded (the start of 2MiB, room for 1MiB of program) programlocation: equ 0x0000000000300000 ; Location in memory where programs are loaded (the start of 3MiB) ; DQ - Starting at offset 0, increments by 8 os_LocalAPICAddress: equ os_SystemVariables + 0 os_IOAPICAddress: equ os_SystemVariables + 8 os_ClockCounter: equ os_SystemVariables + 16 os_VideoBase: equ os_SystemVariables + 24 screen_cursor_offset: equ os_SystemVariables + 32 os_StackBase: equ os_SystemVariables + 40 os_net_transmit: equ os_SystemVariables + 48 os_net_poll: equ os_SystemVariables + 56 os_net_ackint: equ os_SystemVariables + 64 os_NetIOBaseMem: equ os_SystemVariables + 72 os_NetMAC: equ os_SystemVariables + 80 os_HPETAddress: equ os_SystemVariables + 88 ahci_base: equ os_SystemVariables + 96 os_NetworkCallback: equ os_SystemVariables + 104 bmfs_TotalBlocks: equ os_SystemVariables + 112 os_KeyboardCallback: equ os_SystemVariables + 120 os_ClockCallback: equ os_SystemVariables + 128 os_net_TXBytes: equ os_SystemVariables + 136 os_net_TXPackets: equ os_SystemVariables + 144 os_net_RXBytes: equ os_SystemVariables + 152 os_net_RXPackets: equ os_SystemVariables + 160 os_hdd_BytesRead: equ os_SystemVariables + 168 os_hdd_BytesWrite: equ os_SystemVariables + 176 ; DD - Starting at offset 256, increments by 4 cpu_speed: equ os_SystemVariables + 256 ; in MHz os_HPETRate: equ os_SystemVariables + 260 os_MemAmount: equ os_SystemVariables + 264 ; in MiB ahci_port: equ os_SystemVariables + 268 hd1_size: equ os_SystemVariables + 272 ; in MiB os_Screen_Pixels: equ os_SystemVariables + 276 os_Screen_Bytes: equ os_SystemVariables + 280 os_Screen_Row_2: equ os_SystemVariables + 284 os_Font_Color: equ os_SystemVariables + 288 ; DW - Starting at offset 512, increments by 2 os_NumCores: equ os_SystemVariables + 512 cpuqueuestart: equ os_SystemVariables + 514 cpuqueuefinish: equ os_SystemVariables + 516 os_QueueLen: equ os_SystemVariables + 518 os_QueueLock: equ os_SystemVariables + 520 ; Bit 0 clear for unlocked, set for locked. os_NetIOAddress: equ os_SystemVariables + 522 os_NetLock: equ os_SystemVariables + 524 os_VideoX: equ os_SystemVariables + 526 os_VideoY: equ os_SystemVariables + 528 os_Screen_Rows: equ os_SystemVariables + 530 os_Screen_Cols: equ os_SystemVariables + 532 os_Screen_Cursor_Row: equ os_SystemVariables + 534 os_Screen_Cursor_Col: equ os_SystemVariables + 536 ; DB - Starting at offset 768, increments by 1 cursorx: equ os_SystemVariables + 768 ; cursor row location cursory: equ os_SystemVariables + 769 ; cursor column location scancode: equ os_SystemVariables + 770 key: equ os_SystemVariables + 771 key_shift: equ os_SystemVariables + 772 screen_cursor_x: equ os_SystemVariables + 773 screen_cursor_y: equ os_SystemVariables + 774 os_PCIEnabled: equ os_SystemVariables + 775 ; 1 if PCI is detected os_NetEnabled: equ os_SystemVariables + 776 ; 1 if a supported network card was enabled os_NetIRQ: equ os_SystemVariables + 778 ; Set to Interrupt line that NIC is connected to os_NetActivity_TX: equ os_SystemVariables + 779 os_NetActivity_RX: equ os_SystemVariables + 780 os_EthernetBuffer_C1: equ os_SystemVariables + 781 ; Counter 1 for the Ethernet RX Ring Buffer os_EthernetBuffer_C2: equ os_SystemVariables + 782 ; Counter 2 for the Ethernet RX Ring Buffer os_DiskEnabled: equ os_SystemVariables + 783 os_DiskActivity: equ os_SystemVariables + 784 app_argc: equ os_SystemVariables + 785 os_VideoDepth: equ os_SystemVariables + 786 os_VideoEnabled: equ os_SystemVariables + 787 cpuqueuemax: dw 256 screen_rows: db 25 ; x screen_cols: db 80 ; y ; Function variables os_debug_dump_reg_stage: db 0x00 keylayoutlower: db 0x00, 0, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 0x0e, 0, 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', 0x1c, 0, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', 0x27, '`', 0, '\', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', 0, 0, 0, ' ', 0 keylayoutupper: db 0x00, 0, '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', 0x0e, 0, 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{', '}', 0x1c, 0, 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', 0x22, '~', 0, '|', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '<', '>', '?', 0, 0, 0, ' ', 0 ; 0e = backspace ; 1c = enter palette: ; These colors are in RGB format. Each color byte is actually 6 bits (0x00 - 0x3F) db 0x00, 0x00, 0x00 ; 0 Black db 0x33, 0x00, 0x00 ; 1 Red db 0x0F, 0x26, 0x01 ; 2 Green db 0x0D, 0x19, 0x29 ; 3 Blue db 0x31, 0x28, 0x00 ; 4 Orange db 0x1D, 0x14, 0x1E ; 5 Purple db 0x01, 0x26, 0x26 ; 6 Teal db 0x2A, 0x2A, 0x2A ; 7 Light Gray db 0x15, 0x15, 0x15 ; 8 Dark Gray db 0x3B, 0x0A, 0x0A ; 9 Bright Red db 0x22, 0x38, 0x0D ; 10 Bright Green db 0x1C, 0x27, 0x33 ; 11 Bright Blue db 0x3F, 0x3A, 0x13 ; 12 Yellow db 0x2B, 0x1F, 0x2A ; 13 Bright Purple db 0x0D, 0x38, 0x38 ; 14 Bright Teal db 0x3F, 0x3F, 0x3F ; 15 White os_debug_dump_reg_string00: db ' A:', 0 os_debug_dump_reg_string01: db ' B:', 0 os_debug_dump_reg_string02: db ' C:', 0 os_debug_dump_reg_string03: db ' D:', 0 os_debug_dump_reg_string04: db ' SI:', 0 os_debug_dump_reg_string05: db ' DI:', 0 os_debug_dump_reg_string06: db ' BP:', 0 os_debug_dump_reg_string07: db ' SP:', 0 os_debug_dump_reg_string08: db ' 8:', 0 os_debug_dump_reg_string09: db ' 9:', 0 os_debug_dump_reg_string0A: db ' 10:', 0 os_debug_dump_reg_string0B: db ' 11:', 0 os_debug_dump_reg_string0C: db ' 12:', 0 os_debug_dump_reg_string0D: db ' 13:', 0 os_debug_dump_reg_string0E: db ' 14:', 0 os_debug_dump_reg_string0F: db ' 15:', 0 os_debug_dump_reg_string10: db ' RF:', 0 os_debug_dump_flag_string0: db ' C:', 0 os_debug_dump_flag_string1: db ' Z:', 0 os_debug_dump_flag_string2: db ' S:', 0 os_debug_dump_flag_string3: db ' D:', 0 os_debug_dump_flag_string4: db ' O:', 0 align 16 this_is_the_end: db 'This is the end.' ;------------------------------------------------------------------------------ SYS64_CODE_SEL equ 8 ; defined by Pure64 ; ============================================================================= ; EOF
45.609137
284
0.715081
89450b55e62b124ba6c9c62fb5c22d1158510ddf
544
asm
Assembly
oeis/255/A255634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255634.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255634: Numbers n such that 1 + 16n^2 is prime. ; Submitted by Jon Maiga ; 1,4,5,6,9,10,14,21,29,30,31,39,40,44,45,46,51,56,59,60,64,65,66,70,71,75,85,96,99,100,105,109,110,111,116,124,134,136,139,144,146,159,161,170,174,175,176,179,185,190,191,195,196,204,215,216,230,234,240,251,259,265,270,274,281 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $1,4 sub $2,1 mov $3,$1 pow $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 div $0,4
24.727273
227
0.637868
d3c49696bc4e82983d30139628203ec4a5b9a7b8
1,175
asm
Assembly
software/pcx86/bdsrc/dev/auxdev.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
59
2020-12-22T21:02:32.000Z
2022-02-16T05:53:49.000Z
software/pcx86/bdsrc/dev/auxdev.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
null
null
null
software/pcx86/bdsrc/dev/auxdev.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
5
2020-12-24T03:07:40.000Z
2022-02-03T18:40:55.000Z
; ; BASIC-DOS Logical (AUX) Serial Device Driver ; ; @author Jeff Parsons <[email protected]> ; @copyright (c) 2020-2021 Jeff Parsons ; @license MIT <https://basicdos.com/LICENSE.txt> ; ; This file is part of PCjs, a computer emulation software project at pcjs.org ; include macros.inc include dev.inc include devapi.inc DEV group CODE,DATA CODE segment para public 'CODE' public AUX AUX DDH <offset DEV:ddaux_end+16,,DDATTR_CHAR,offset ddaux_init,-1,2020202020585541h> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Driver request ; ; Inputs: ; ES:BX -> DDP ; ; Outputs: ; ASSUME CS:CODE, DS:NOTHING, ES:NOTHING, SS:NOTHING DEFPROC ddaux_req,far ret ENDPROC ddaux_req ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Driver initialization ; ; Inputs: ; ES:BX -> DDPI ; ; Outputs: ; DDPI's DDPI_END updated ; DEFPROC ddaux_init,far mov es:[bx].DDPI_END.OFF,offset ddaux_init mov cs:[0].DDH_REQUEST,offset DEV:ddaux_req ret ENDPROC ddaux_init CODE ends DATA segment para public 'DATA' ddaux_end db 16 dup(0) DATA ends end
19.583333
86
0.594043
52bb6d9040e28e24a81a2d9614a4b6c3cf45b3a4
577
asm
Assembly
oeis/030/A030053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/030/A030053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/030/A030053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A030053: a(n) = binomial(2n+1,n-3). ; 1,9,55,286,1365,6188,27132,116280,490314,2042975,8436285,34597290,141120525,573166440,2319959400,9364199760,37711260990,151584480450,608359048206,2438362177020,9762479679106,39049918716424,156077261327400,623404249591760,2488589544741300,9929472283517787,39602161018878633,157890968768078210,629308289804197437,2507588587725537680,9989690752182277136,39789158751476438304,158455223553556008310,630939890149613923998,2511991671686052566850,10000119226331142599460,39806676145124354455990 mov $1,7 add $1,$0 add $1,$0 bin $1,$0 mov $0,$1
64.111111
488
0.861352
150394b5792dc6d440928180967c51c91c3bd0dd
780
asm
Assembly
oeis/213/A213565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/213/A213565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/213/A213565.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A213565: Principal diagonal of the convolution array A213564. ; Submitted by Jamie Morken(w1) ; 1,21,127,467,1302,3038,6258,11754,20559,33979,53625,81445,119756,171276,239156,327012,438957,579633,754243,968583,1229074,1542794,1917510,2361710,2884635,3496311,4207581,5030137,5976552,7060312,8295848,9698568,11284889,13072269,15079239,17325435,19831630,22619766,25712986,29135666,32913447,37073267,41643393,46653453,52134468,58118884,64640604,71735020,79439045,87791145,96831371,106601391,117144522,128505762,140731822,153871158,167974003,183092399,199280229,216593249,235089120,254827440 add $0,1 mov $2,$0 lpb $0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 mov $4,$3 mov $3,$2 mov $5,$4 mul $5,$2 add $2,1 add $3,$5 mul $3,$5 add $1,$3 lpe mov $0,$1 div $0,2
33.913043
492
0.758974
7a70223948ccb2e312c529070b63c6eb5327082d
355
asm
Assembly
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Old Uses.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Old Uses.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Old Uses.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 @r0=iid/uses lsr r2,r0,#0x8 cmp r2,#0x0 bne GoBack mov r2,#0xFF and r2,r0 lsl r0,r2,#0x3 add r0,r2 lsl r0,#0x2 ldr r1,ItemTable add r3,r0,r1 ldr r1,[r3,#0x8] mov r0,#0x8 @indestructible tst r0,r1 mov r0,#0x0 bne Indestructible ldrb r0,[r3,#0x14] Indestructible: lsl r0,#0x8 add r0,r2 GoBack: bx r14 .align ItemTable:
12.241379
30
0.678873
654cf8cc5d9f856d982630e0595f00f65996c318
981
asm
Assembly
programs/oeis/131/A131508.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/131/A131508.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/131/A131508.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A131508: 2*A000027 (natural numbers) sandwiched by tripled A001477 (nonnegative numbers). ; 0,0,0,2,1,1,1,4,2,2,2,6,3,3,3,8,4,4,4,10,5,5,5,12,6,6,6,14,7,7,7,16,8,8,8,18,9,9,9,20,10,10,10,22,11,11,11,24,12,12,12,26,13,13,13,28,14,14,14,30,15,15,15,32,16,16,16,34,17,17,17,36,18,18,18,38,19,19,19,40,20,20,20,42,21,21,21,44,22,22,22,46,23,23,23,48,24,24,24,50,25,25,25,52,26,26,26,54,27,27,27,56,28,28,28,58,29,29,29,60,30,30,30,62,31,31,31,64,32,32,32,66,33,33,33,68,34,34,34,70,35,35,35,72,36,36,36,74,37,37,37,76,38,38,38,78,39,39,39,80,40,40,40,82,41,41,41,84,42,42,42,86,43,43,43,88,44,44,44,90,45,45,45,92,46,46,46,94,47,47,47,96,48,48,48,98,49,49,49,100,50,50,50,102,51,51,51,104,52,52,52,106,53,53,53,108,54,54,54,110,55,55,55,112,56,56,56,114,57,57,57,116,58,58,58,118,59,59,59,120,60,60,60,122,61,61,61,124,62,62 mov $2,$0 add $0,8 div $0,4 mul $0,2 add $2,5 mov $3,$2 mov $2,0 div $3,$0 mul $3,$0 mov $4,4 lpb $4 mov $0,$3 mul $4,$2 lpe mov $1,$0 sub $1,4 div $1,2
46.714286
730
0.646279
a820be4ae02586fa3f35601c36507f4f610ad2cd
34,612
asm
Assembly
Driver/Video/Dumb/VidMem/Clr24/clr24Raster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Video/Dumb/VidMem/Clr24/clr24Raster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Video/Dumb/VidMem/Clr24/clr24Raster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Video Drivers FILE: vga24Raster.asm AUTHOR: Jim DeFrisco, Oct 8, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/ 8/92 Initial revision FR 9/15/97 24bit version DESCRIPTION: $Id: vga24Raster.asm $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VidSegment Blt COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BltSimpleLine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: blt a single scan line CALLED BY: INTERNAL PASS: bx - first x point in simple region ax - last x point in simple region d_x1 - left side of blt d_x2 - right side of blt es:si - points to scan line start of source es:di - points to scan line start of dest RETURN: nothing DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: if source is to right of destination mask left; copy left byte; mask = ff; copy middle bytes mask right; copy right byte; else do the same, but from right to left KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} BltSimpleLine proc near uses ds .enter mov ds, ss:[bm_lastSegSrc] ; get source segment ; calc some setup values mov bx, ss:[bmLeft] ; save passed values mov ax, ss:[bmRight] ; calculate # bytes to fill in and indices into source and ; dest scan lines. We have to compensate here if the left ; side of the clip region is to the right of the left side ; of the destination rectangle. mov dx, bx ; save left clipped side add di, bx ; setup dest pointer add di, bx add di, bx sub dx, ss:[d_x1] ; sub dest unclipped left side add dx, ss:[d_x1src] ; get offset to source add si, dx ; add that to source index add si, dx add si, dx sub ax, bx ; ax = count of pixels - 1 inc ax ; ax = count of pixels mov cx, ax ; cx = count of pixels add cx, ax add cx, ax ; cx = count of bytes mov ax, ss:[d_x1] ; if going right, copy left cmp ax, ss:[d_x1src] ; jle goingLeft std ; copy backwards add si, cx ; start on right side dec si add di, cx dec di goingLeft: shr cx, 1 rep movsw ; copy 'em adc cx, cx rep movsb ; copy 'em cld ; restore direction in case .leave ret BltSimpleLine endp VidEnds Blt VidSegment Bitmap COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColor8Scan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 8-bit/pixel scan line of bitmap data CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: build out a group of 8 pixels, then write each byte, using write mode 0 of EGA KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutColor24Scan proc near mov bx, ss:[bmLeft] mov ax, ss:[d_x1] sub bx, ax mov cx, bx add si, bx add si, bx add si, bx mov dl, 0FFh mov bx, 0FFFFh Color24Common label near ; dl - mask of bitmap ; bx - index to mask ; cx - offset from left push bx ; read mask byte and dl,ss:[lineMask] ; mask for testing mask and cl,007h mov dh,080h shr dh,cl ; count of pixel per scan mov cx,ss:[bmRight] sub cx,ss:[bmLeft] inc cx mov bx,ss:[bmLeft] add di, bx add di, bx add di, bx pixLoop: lodsw mov bx, ax lodsb test dh, dl je noPix mov {word}es:[di], bx mov {byte}es:[di+2], al noPix: add di, 3 shr dh, 1 jnc nextPix mov dh, 080h pop bx or bx, bx js noLineMask mov dl, [bx] and dl, ss:[lineMask] inc bx noLineMask: push bx nextPix: loop pixLoop pop bx ret PutColor24Scan endp PutColor24ScanMask proc near mov bx, ss:[bmLeft] mov ax, ss:[d_x1] sub bx, ax mov dx, bx mov cx, bx xchg si, bx add si, bx add si, dx add si, dx sub bx, ss:[bmMaskSize] ; override mask pixel shr dx, 3 add bx, dx ; mask for testing mask and cl, 007h mov dh, 080h shr dh, cl ; read mask byte mov dl, ds:[bx] inc bx jmp Color24Common PutColor24ScanMask endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColor8Scan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 8-bit/pixel scan line of bitmap data CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: build out a group of 8 pixels, then write each byte, using write mode 0 of EGA KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutColor8Scan proc near ; calculate # bytes to fill in mov bx, ss:[bmLeft] mov cx, bx mov ax, ss:[d_x1] ; add si, bx ; sub si, ax ; ds:si -> pic bytes ; read line mask sub cx, ax and cx, 7 ; calc mask offset mov dh, ss:[lineMask] ; real line mask ror dh, cl ; shift line mask mov cx, ss:[bmRight] ; compute #bytes to write sub cx, bx ; #bytes-1 inc cx add di, bx add di, bx add di, bx ; es:di -> dest byte call PutCol8ScanLow ret PutColor8Scan endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutCol8ScanLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 8-bit/pixel scan line of bitmap data without jump over an page border CALLED BY: INTERNAL PASS: dh - common byte mask cx - count of pixels to put out ds:si - source data to put out es:di - destination in video memory RETURN: ds:si - source data following es:di - frame ptr of following byte dh - mask shifted right DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version FR 08/29/97 made the low part %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutCol8ScanLow proc near mapPalette: lodsb test dh, 080h jz nopix2 push ax, bx clr ah push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx nopix2: add di, 3 rol dh ; rotate line mask loop mapPalette ret PutCol8ScanLow endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColor8ScanMask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 8-bit/pixel scan line of bitmap data CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: build out a group of 8 pixels, then write each byte, using write mode 0 of EGA KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutColor8ScanMask proc near ; calculate # bytes to fill in mov bx, ss:[bmLeft] mov ax, ss:[d_x1] ; sub bx, ax ; bx = index into pic data mov dx, bx ; save index mov cx, bx xchg bx, si ; ds:bx -> mask data add si, bx sub bx, ss:[bmMaskSize] ; ds:si -> pic data shr dx, 3 ; bx = index into mask add bx, dx ; ds:bx -> into mask data and cl, 7 mov dh, 0x80 ; test bit for mask data shr dh, cl ; dh = starting mask bit mov cx, ss:[bmRight] ; compute #bytes to write sub cx, ss:[bmLeft] ; #bytes-1 inc cx mov dl, ds:[bx] ; get first mask byte and dl, ss:[lineMask] inc bx mov ax, ss:[bmLeft] add di, ax add di, ax add di, ax call PutCol8ScanMaskLow ret PutColor8ScanMask endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutCol8ScanMaskLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 8-bit/pixel scan line of bitmap data with mask without jump over an page border CALLED BY: INTERNAL PASS: dh - common byte mask cx - count of pixels to put out ds:si - source data to put out ds:bx - mask data for scan line es:di - destination in video memory RETURN: ds:si - source data following ds:bx - ptr to next mask byte es:di - frame ptr of following byte dh - mask shifted right DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version FR 08/29/97 made the low part %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutCol8ScanMaskLow proc near mapPalette: lodsb test dl, dh ; do this pixel ? jz paletteNextPixel push ax, bx clr ah push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx paletteNextPixel: add di, 3 shr dh, 1 ; move test bit down jc paletteReloadTester ; until we need some more paletteHaveTester: loop mapPalette ret ; done with this mask byte, get next paletteReloadTester: mov dl, ds:[bx] ; load next mask byte and dl, ss:[lineMask] inc bx mov dh, 0x80 jmp paletteHaveTester PutCol8ScanMaskLow endp COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColorScan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Transfer a scan line's worth of system memory to screen CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: build out a group of 8 pixels, then write each byte, using write mode 0 of EGA KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} PutColorScan proc near uses bp .enter ; calculate # bytes to fill in mov bx, ss:[bmLeft] mov bp, bx ; get # bits into image sub bp, ss:[d_x1] ; get left coordinate mov ax, ss:[bmRight] ; get right side to get #bytes mov dx, bp ; save low bit shr bp, 1 ; bp = #bytes index add si, bp ; index into bitmap add di, bx add di, bx add di, bx mov bp, ax ; get right side in bp sub bp, bx ; bp = # dest bytes to write -1 inc bp ; bp = #dest bytes to write mov dh, ss:[lineMask] mov cl, dl and cl, 7 rol dh, cl mov cl, 4 ; shift amount call PutColScanLow .leave ret PutColorScan endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColScanLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw an 4-bit/pixel scan line of bitmap data without jump over an page border CALLED BY: INTERNAL PASS: dh - common byte mask bp - count of pixels to put out ds:si - source data to put out es:di - destination in video memory RETURN: ds:si - source data following es:di - frame ptr of following byte dh - mask shifted right DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: lineMask is currently not suppored REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version FR 08/29/97 made the low part %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutColScanLow proc near ; we're all setup. See if we're taking pixels from front or ; rear (check shift value) test dl, 1 ; see if starting odd or even jz paletteEvenLoop ; do first one specially lodsb rol dh jnc maskLoop5 push ax, bx clr ah and al, 00Fh push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax shl ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx maskLoop5: add di, 3 xor dl, 1 dec bp LONG jz done ; specially, though. paletteEvenLoop: lodsb ; get next byte mov ah, al ; split them up shr al, cl ; align stuff and ax, 0x0f0f ; isolate pixels sub bp, 2 js lastByte rol dh jnc maskLoop6 push ax, bx clr ah push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx maskLoop6: add di, 3 xor dl, 1 xchg ah,al rol dh jnc maskLoop7 push ax, bx clr ah and al, 00Fh push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx maskLoop7: add di, 3 xor dl, 1 tst bp ; if only one byte to do... jnz paletteEvenLoop jmp done ; odd number of bytes to do. Last one here... lastByte: rol dh jnc maskLoop4 push ax, bx clr ah and al, 00Fh push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx maskLoop4: add di, 3 xor dl, 1 done: ret PutColScanLow endp COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutColorScanMask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Transfer a scan line's worth of system memory to screen applying a bitmap mask CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: build out a group of 8 pixels, then write each byte, using write mode 0 of EGA KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} PutColorScanMask proc near uses bp .enter ; calculate # bytes to fill in mov ax, ss:[bmLeft] mov bp, ax ; get # bits into image sub bp, ss:[d_x1] ; get left coordinate mov dx, bp ; save low bit mov bx, bp ; save pixel index into bitmap sar bp, 1 ; compute index into pic data sar bx, 1 ; compute index into mask data sar bx, 1 sar bx, 1 add bx, si ; ds:bx -> mask byte sub bx, ss:[bmMaskSize] ; ds:si -> picture data add si, bp ; ds:si -> into picture data mov bp, ss:[bmRight] ; get right side in bp sub bp, ax ; bp = # dest bytes to write -1 inc bp mov cl, dl ; need index into mask byte mov ch, 0x80 ; form test bit for BM mask and cl, 7 shr ch, cl ; ch = mask test bit mov cl, 4 ; cl = pic data shift amount ; get first mask byte mov dh, ds:[bx] ; dh = mask byte and dh, ss:[lineMask] inc bx ; get ready for next mask byte add di, ax add di, ax add di, ax call PutColScanMaskLow .leave ret PutColorScanMask endp PutColScanMaskLow proc near ; we're all setup. See if we're taking pixels from front or ; rear (check shift value) test dl, 1 ; see if starting odd or even jz paletteEvenLoop ; do first one specially lodsb test dh, ch ; mask bit set ? jz paletteDoneFirst push ax, bx clr ah and al, 00Fh push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx paletteDoneFirst: add di, 3 xor dl, 1 shr ch, 1 ; test next bit jnc loop2 mov dh, ds:[bx] ; load next mask byte and dh, ss:[lineMask] inc bx mov ch, 0x80 ; reload test bit loop2: dec bp jz done ; specially, though. paletteEvenLoop: lodsb ; get next byte mov ah, al ; split them up shr al, cl ; align stuff and ax, 0x0f0f ; isolate pixels test dh, ch ; check pixel jz paletteDoSecond push ax, bx clr ah push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx paletteDoSecond: add di, 3 xor dl, 1 shr ch, 1 dec bp ; one less to go jz done test dh, ch jz paletteNextPixel mov al, ah ; get second pixel value in al push ax, bx clr ah push es les bx, ss:[bmPalette] ; es:bx - palette add bx, ax add bx, ax add bx, ax mov ax, es:[bx] mov bl, es:[bx+2] pop es mov es:[di], ax mov es:[di+2], bl pop ax, bx paletteNextPixel: add di, 3 xor dl, 1 shr ch, 1 jc paletteReloadTester paletteHaveTester: dec bp jnz paletteEvenLoop done: ret paletteReloadTester: mov dh, ds:[bx] ; get next mask byte and dh, ss:[lineMask] inc bx mov ch, 0x80 jmp paletteHaveTester PutColScanMaskLow endp COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FillBWScan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Transfer a scan line's worth of system memory to screen draws monochrome info as a mask, using current area color CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region ds:si - pointer to bitmap data es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: set drawing color; mask left; shift and copy left byte; shift and copy middle bytes mask right; shift and copy right byte; KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 1/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} PutBWScan proc near mov {word}ss:[currentColor].RGB_red, 0 mov {byte}ss:[currentColor].RGB_blue, 0 FALL_THRU FillBWScan PutBWScan endp FillBWScan proc near push bp mov bx, ss:[bmLeft] mov ax, ss:[bmRight] ; calculate # bytes to fill in add di, bx ; add to screen offset add di, bx add di, bx mov bp, bx ; get #bits into image at start mov cx, ss:[d_x1] ; get left coordinate sub bp, cx ; bp = (bmLeft-x1) sub ax, cx ; ax = (bmRight-x1) mov dh, al ; figure new right mask and dh, 7 mov ss:[bmShift], dh mov bx, bp ; save low three bits of x indx mov cl, 3 sar bp, cl ; compute byte index add si, bp ; add bytes-to-left-side sar ax, cl sub ax, bp ; ax = (#srcBytes-1) to write mov cx, bx and cl, 7 mov dh, 0x80 ; dh = test bit shr dh, cl ; properly aligned mov cx, ax ; cx = source byte count - 1 mov ah, ss:lineMask ; draw mask to use jcxz lastByte ; for each byte of input data byteLoop: lodsb ; next data byte call WriteMonoByte loop byteLoop ; the loop will do all but the last byte. It's probably a ; partial byte, so apply the right mask before finishing lastByte: mov al, 0x80 mov cl, ss:[bmShift] sar al, cl and ah, al lodsb call WriteMonoByte pop bp ret FillBWScan endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WriteMonoByte %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write a monochrome source byte to the screen CALLED BY: INTERNAL PutBWScan PASS: al - byte to write ah - bitmap draw mask dh - bit mask of bit to start with es:di - frame buffer pointer dl - color to use to draw RETURN: dh - 0x80 DESTROYED: bx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jim 10/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WriteMonoByte proc near and al, ah ; apply bitmap mask pixLoop: test al, dh ; check next pixel jz nextPixel mov bx, {word}es:[di] mov dl, {byte}es:[di+2] call ss:[modeRoutine] mov {word}es:[di], bx ; store pixel color mov {byte}es:[di+2], dl nextPixel: add di, 3 ; next pixel shr dh, 1 ; go until we hit a carry jnc pixLoop mov dh, 0x80 ; reload test bit ret WriteMonoByte endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutBWScanMask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write a monochrome bitmap with a store mask CALLED BY: see above PASS: RETURN: DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jim 2/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PutBWScanMask proc near uses bp .enter mov bx, ss:[bmLeft] mov ax, ss:[bmRight] ; calculate # bytes to fill in add di, bx ; add to screen offset too add di, bx add di, bx mov bp, bx ; get #bits into image at start mov cx, ss:[d_x1] ; get left coordinate sub bp, cx ; bp = (bmLeft-x1) sub ax, cx ; ax = (bmRight-x1) mov dl, al ; figure new right mask and dl, 7 mov ss:[bmShift], dl mov dx, bp ; save low three bits of x indx mov cl, 3 ; want to get byte indices sar bp, cl add si, bp ; add bytes-to-left-side sar ax, cl sub ax, bp ; ax = (#srcBytes-1) to write mov cl, dl ; need low three bits of index and cl, 7 mov dh, 0x80 ; dh = test bit shr dh, cl ; properly aligned clr dl ; dl = color to draw mov cx, ax ; cx = source byte count - 1 mov bp, si ; ds:bp -> mask data sub bp, ss:[bmMaskSize] ; ds:si -> picture data jcxz lastByte ; for each byte of input data byteLoop: lodsb ; next data byte mov ah, ds:[bp] ; get mask byte inc bp and ah, ss:lineMask call WriteMonoByte loop byteLoop ; the loop will do all but the last byte. It's probably a ; partial byte, so apply the right mask before finishing lastByte: mov ah, 0x80 mov cl, ss:[bmShift] sar ah, cl and ah, ds:[bp] and ah, ss:lineMask lodsb call WriteMonoByte .leave ret PutBWScanMask endp NullBMScan proc near ret NullBMScan endp VidEnds Bitmap VidSegment Misc COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetOneScan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy one scan line of video buffer to system memory CALLED BY: INTERNAL VidGetBits PASS: ds:si - address of start of scan line in frame buffer es:di - pointer into sys memory where scan line to be stored cx - # bytes left in buffer d_x1 - left side of source d_dx - # source pixels shiftCount - # bits to shift RETURN: es:di - pointer moved on past scan line info just stored cx - # bytes left in buffer - set to -1 if not enough room to fit next scan (no bytes are copied) DESTROYED: ax,bx,dx,si PSEUDO CODE/STRATEGY: if (there's enough room to fit scan in buffer) copy the scan out else just return KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 04/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetOneScan proc near uses si .enter ; form full address, copy bytes mov dx, ss:[d_dx] add dx, dx add dx, ss:[d_dx] cmp cx, dx ; get width to copy jc noRoom mov ax, ss:[d_x1] add si, ax add si, ax add si, ax sub cx, dx ; cx = bytes left after copy xchg cx, dx ; dx = bytes left after copy shr cx, 1 rep movsw adc cx, cx rep movsb mov cx, dx ; cx = bytes left after copy done: .leave ret ; not enough room to copy scan line noRoom: mov cx, 0xffff jmp done GetOneScan endp VidEnds Misc VidSegment Bitmap COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ByteModeRoutines %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Various stub routines to implement mix modes CALLED BY: INTERNAL various low-level drawing routines PASS: dl - color bl - screen RETURN: bl - destination (byte to write out) DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jim 10/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ByteModeRoutines proc near ForceRef ByteModeRoutines ByteCLEAR label near clr bx clr dl ByteNOP label near ret ByteCOPY label near mov bx, {word} ss:[currentColor].RGB_red mov dl, ss:[currentColor].RGB_blue ret ByteAND label near and bx, {word} ss:[currentColor].RGB_red and dl, ss:[currentColor].RGB_blue ret ByteINV label near xor bx, 0FFFFh xor dl, 0FFh ret ByteXOR label near xor bx, {word} ss:[currentColor].RGB_red xor dl, ss:[currentColor].RGB_blue ret ByteSET label near mov bx, 0FFFFh mov dl, 0FFh ret ByteOR label near or bx, {word} ss:[currentColor].RGB_red or dl, ss:[currentColor].RGB_blue ret ByteModeRoutines endp ByteModeRout label word nptr ByteCLEAR nptr ByteCOPY nptr ByteNOP nptr ByteAND nptr ByteINV nptr ByteXOR nptr ByteSET nptr ByteOR VidEnds Bitmap
24.775948
79
0.463654
4f30fecf9c0bd080dd854254b8a136d62e13b382
4,578
asm
Assembly
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48.log_21829_1786.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48.log_21829_1786.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48.log_21829_1786.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 %rax push %rbx push %rdi lea addresses_A_ht+0x1dd36, %r8 nop nop add $24843, %r9 mov $0x6162636465666768, %rax movq %rax, %xmm0 movups %xmm0, (%r8) nop nop xor $26069, %r15 lea addresses_D_ht+0x1a1b6, %rbx nop and $17736, %r14 mov (%rbx), %rdi nop add $41025, %rbx lea addresses_normal_ht+0xcef2, %r14 nop nop nop cmp %r8, %r8 movb (%r14), %bl nop nop nop nop xor $40697, %r8 pop %rdi pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rax push %rcx push %rdx // Faulty Load mov $0x63cc000000000bf2, %r14 clflush (%r14) nop nop nop nop and $8070, %rax mov (%r14), %dx lea oracles, %r10 and $0xff, %rdx shlq $12, %rdx mov (%r10,%rdx,1), %rdx pop %rdx pop %rcx pop %rax pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'70': 2, '00': 21827} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
51.438202
2,999
0.659458
531411d6c431d22a59fcb184ad21b240e457f0da
2,875
asm
Assembly
testcode.asm
furkansahinfs/Assembly-BST-with-MIPS
a4b67c66442cec75dda54e45fc4822274524d04a
[ "MIT" ]
null
null
null
testcode.asm
furkansahinfs/Assembly-BST-with-MIPS
a4b67c66442cec75dda54e45fc4822274524d04a
[ "MIT" ]
null
null
null
testcode.asm
furkansahinfs/Assembly-BST-with-MIPS
a4b67c66442cec75dda54e45fc4822274524d04a
[ "MIT" ]
null
null
null
.data # -9999 marks the end of the list firstList: .word 8, 3, 6, 10, 13, 7, 4, 5, -9999 # other examples for testing your code secondList: .word 8, 3, 6, 6, 10, 13, 7, 4, 5, -9999 thirdList: .word 8, 3, 6, 10, 13, -9999, 7, 4, 5, -9999 # assertEquals data failf: .asciiz " failed\n" passf: .asciiz " passed\n" buildTest: .asciiz " Build test" insertTest: .asciiz " Insert test" findTest: .asciiz " Find test" asertNumber: .word 0 .text main: # The test code assumes your root node's address is stored at $s0 and at tree argument at all times # Although it's not needed, you can: # - modify the test cases if you must # - add code between test cases # la $s0, tree # build a tree using the firstList jal build # Start of the test cases---------------------------------------------------- # check build procedure lw $t0, 4($s0) # address of the left child of the root lw $a0, 0($t0) # real value of the left child of the root li $a1, 3 # expected value of the left child of the root la $a2, buildTest # the name of the test # if left child != 3 then print failed jal assertEquals # check insert procedure li $a0, 11 # new value to be inserted move $a1, $s0 # address of the root jal insert # no need to reload 11 to $a0 lw $a1, 0($v0) # value from the returned address la $a2, insertTest # the name of the test # if returned address's value != 11 print failed jal assertEquals # check find procedure li $a0, 11 # search value move $a1, $s0 # adress of the root jal find # no need to reload 11 to $a0 lw $a1, 0($v1) # value from the found adress la $a2, findTest # the name of the test # if returned address's value != 11 print failed jal assertEquals # check find procedure 2 # 44 should not be on the list # v0 should return 1 li $a0, 44 # search value move $a1, $s0 # adress of the root jal find move $a0, $v0 # result of the search li $a1, 1 # expected result of the search la $a2, findTest # the name of the test # if returned value of $v0 != 0 print failed jal assertEquals move $a0, $s0 jal printTree # print tree for visual inspection # End of the test cases---------------------------------------------------- # End program li $v0, 10 syscall assertEquals: move $t2, $a0 # increment count of total assertions. la $t0, asertNumber lw $t1, 0($t0) addi $t1, $t1, 1 sw $t1, 0($t0) # print the test number add $a0, $t1, $zero li $v0, 1 syscall # print the test name move $a0, $a2 li $v0, 4 syscall # print passed or failed. beq $t2, $a1, passed la $a0, failf li $v0, 4 syscall j $ra passed: la $a0, passf li $v0, 4 syscall j $ra
25.669643
103
0.589913
ea7ee5e89668dd3e31e520f099804fb253fec9a9
1,518
asm
Assembly
programs/oeis/287/A287665.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/287/A287665.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/287/A287665.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A287665: Positions of 1's in A287663; complement of A287664. ; 1,5,6,10,14,15,19,20,24,28,29,33,37,38,42,43,47,51,52,56,57,61,65,66,70,74,75,79,80,84,88,89,93,97,98,102,103,107,111,112,116,117,121,125,126,130,134,135,139,140,144,148,149,153,154,158,162,163,167,171,172,176,177,181,185,186,190,194,195,199,200,204,208,209,213,214,218,222,223,227,231,232,236,237,241,245,246,250,254,255,259,260,264,268,269,273,274,278,282,283,287,291,292,296,297,301,305,306,310,311,315,319,320,324,328,329,333,334,338,342,343,347,351,352,356,357,361,365,366,370,371,375,379,380,384,388,389,393,394,398,402,403,407,408,412,416,417,421,425,426,430,431,435,439,440,444,448,449,453,454,458,462,463,467,468,472,476,477,481,485,486,490,491,495,499,500,504,508,509,513,514,518,522,523,527,528,532,536,537,541,545,546,550,551,555,559,560,564,565,569,573,574,578,582,583,587,588,592,596,597,601,605,606,610,611,615,619,620,624,625,629,633,634,638,642,643,647,648,652,656,657,661,665,666,670,671,675,679,680,684,685,689,693,694,698,702,703,707,708,712 mov $3,$0 mov $4,$0 add $4,1 lpb $4 mov $0,$3 sub $4,1 sub $0,$4 mov $7,$0 mov $9,2 lpb $9 sub $9,1 add $0,$9 sub $0,1 mov $2,$0 mov $6,$0 lpb $2 add $6,1 lpb $6 mov $6,$2 add $2,2 pow $6,2 lpe sub $2,1 add $6,$0 lpe mov $5,$2 mov $10,$9 lpb $10 mov $8,$5 sub $10,1 lpe lpe lpb $7 mov $7,0 sub $8,$5 lpe mov $5,$8 mul $5,3 add $5,1 add $1,$5 lpe
33.733333
963
0.625823
c8c60e0770ae3c86c46a68f8c1b2110567e90d29
98
asm
Assembly
examples/test.asm
Bunogi/c8asm
f4c7cc0eb2b94a6f68ea9c5eea4ff3e01ec82a43
[ "MIT" ]
null
null
null
examples/test.asm
Bunogi/c8asm
f4c7cc0eb2b94a6f68ea9c5eea4ff3e01ec82a43
[ "MIT" ]
null
null
null
examples/test.asm
Bunogi/c8asm
f4c7cc0eb2b94a6f68ea9c5eea4ff3e01ec82a43
[ "MIT" ]
null
null
null
ld v0, 0x20 ld v1, 0x30 ld v2, 20 ld dt, 0x50 ld v3, dt ld i, 0x5 ld v4, [i] ld [i], 0 ld v5, [i]
9.8
11
0.571429
dc945676a155a6713f1678769133a48e6e767e8e
1,546
asm
Assembly
slvUI.asm
qynvi/laserturret
ca93024826c6ea4b5efecf7d2f353f3214d1a78d
[ "MIT" ]
null
null
null
slvUI.asm
qynvi/laserturret
ca93024826c6ea4b5efecf7d2f353f3214d1a78d
[ "MIT" ]
null
null
null
slvUI.asm
qynvi/laserturret
ca93024826c6ea4b5efecf7d2f353f3214d1a78d
[ "MIT" ]
null
null
null
NAME SLVUI $INCLUDE(serial.inc) $INCLUDE(motor.inc) $INCLUDE(ace.inc) CGROUP GROUP CODE DGROUP GROUP DATA, STACK CODE SEGMENT PUBLIC 'CODE' ASSUME CS:CGROUP ASSUME DS:DGROUP EXTRN InitMotor:NEAR EXTRN InitParallel:NEAR EXTRN InitSerial:NEAR EXTRN InitSP:NEAR EXTRN SRspreset:NEAR EXTRN InitCS:NEAR EXTRN InitTimer0:NEAR EXTRN InitTimer1:NEAR EXTRN InitIllegalEvH:NEAR EXTRN InitMtrEvH:NEAR EXTRN InitStepEvH:NEAR EXTRN InitSrlEvH:NEAR EXTRN Slave:NEAR START: MAIN: MOV AX, DGROUP ;initialize the stack pointer MOV SS, AX MOV SP, OFFSET(DGROUP:TopOfStack) MOV AX, DGROUP ;initialize the data segment MOV DS, AX CALL InitCS ;set up chip selects (does not setup LCS/UCS) CALL InitParallel CALL InitIllegalEvH ;hook all event handlers CALL InitMtrEvH CALL InitStepEvH CALL InitSrlEvH CALL InitTimer0 ;start the timer and the muxing CALL InitTimer1 CALL InitMotor ;initialize the motors, stepper, and parallel port CALL InitSP CALL SRspreset MOV AX, SERIAL_BR_DFLTDVSR ;set a baud rate MOV BL, ACE_LCR_PAR_OFF ;no parity CALL InitSerial ;initialize the serial port STI loopforever: CALL Slave JMP loopforever CODE ENDS DATA SEGMENT PUBLIC 'DATA' DATA ENDS STACK SEGMENT STACK 'STACK' DB 80 DUP ('Stack ') ;240 words TopOfStack LABEL WORD STACK ENDS END START
18.853659
70
0.659767
a74e8c494ad6f7fd16fdba21cc032604b5a723b3
792
asm
Assembly
Modelsim_codes/riscv32_sim2.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
Modelsim_codes/riscv32_sim2.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
Modelsim_codes/riscv32_sim2.asm
Chen-yu-Zheng/2021SpringCOE-WHU
24f316bbdbce581a1b787b8a4bf187b3b2382f2b
[ "MIT" ]
null
null
null
# Test the RISC-V processor in simulation # 已经能正确执行:lui, addi # 待验证:add,sub,xor, or, and, srl, sra, sll # 本测试只验证单条指令的功能,不考察转发和冒险检测的功能,所以在相关指令之间添加了足够多的nop指令 # Assembly Description main: lui x5, 0x12345 #x5 <== 0x12345 lui x6, 0xfffff #x6 <== 0xfffff addi x12, x0, 4 addi x0, x0, 0 #nop addi x0, x0, 0 addi x0, x0, 0 add x7, x5, x6 #x7 <== 0x12344000 sub x8, x5, x6 #x8 <== 0x12346000 xor x9, x5, x6 #x9 <== 0xEDCBA000 or x10, x5, x6 #x10 <== 0xFFFFF000 and x11, x5, x6 #x11 <== 0x12345000 srl x13, x6, x12 #x13 <== 0x0FFFFF00 sra x14, x6, x12 #x14 <== 0xFFFFFF00 sll x15, x5, x12 #x15 <== 0x23450000
33
52
0.511364
ec50a10a6f8787a6bc0e873a40362faaa5d118e2
4,233
asm
Assembly
data/growth_rates.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/growth_rates.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/growth_rates.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
growth_rate: MACRO ; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5] dn \1, \2 if \3 & $80 ; signed db -\3 | $80 else db \3 endc db \4, \5 ENDM GrowthRates: ; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm) growth_rate 1, 1, 0, 0, 0 ; Medium Fast growth_rate 3, 4, 10, 0, 30 ; Slightly Fast growth_rate 3, 4, 20, 0, 70 ; Slightly Slow growth_rate 6, 5, -15, 100, 140 ; Medium Slow growth_rate 4, 5, 0, 0, 0 ; Fast growth_rate 5, 4, 0, 0, 0 ; Slow ErraticExperience: dt 0 ; L:1 dt 15 ; L:2 dt 52 ; L:3 dt 122 ; L:4 dt 237 ; L:5 dt 406 ; L:6 dt 637 ; L:7 dt 942 ; L:8 dt 1326 ; L:9 dt 1800 ; L:10 dt 2369 ; L:11 dt 3041 ; L:12 dt 3822 ; L:13 dt 4719 ; L:14 dt 5737 ; L:15 dt 6881 ; L:16 dt 8155 ; L:17 dt 9564 ; L:18 dt 11111 ; L:19 dt 12800 ; L:20 dt 14632 ; L:21 dt 16610 ; L:22 dt 18737 ; L:23 dt 21012 ; L:24 dt 23437 ; L:25 dt 26012 ; L:26 dt 28737 ; L:27 dt 31610 ; L:28 dt 34632 ; L:29 dt 37800 ; L:30 dt 41111 ; L:31 dt 44564 ; L:32 dt 48155 ; L:33 dt 51881 ; L:34 dt 55737 ; L:35 dt 59719 ; L:36 dt 63822 ; L:37 dt 68041 ; L:38 dt 72369 ; L:39 dt 76800 ; L:40 dt 81326 ; L:41 dt 85942 ; L:42 dt 90637 ; L:43 dt 95406 ; L:44 dt 100237 ; L:45 dt 105122 ; L:46 dt 110052 ; L:47 dt 115015 ; L:48 dt 120001 ; L:49 dt 125000 ; L:50 dt 131324 ; L:51 dt 137795 ; L:52 dt 144410 ; L:53 dt 151165 ; L:54 dt 158056 ; L:55 dt 165079 ; L:56 dt 172229 ; L:57 dt 179503 ; L:58 dt 186894 ; L:59 dt 194400 ; L:60 dt 202013 ; L:61 dt 209728 ; L:62 dt 217540 ; L:63 dt 225443 ; L:64 dt 233431 ; L:65 dt 241496 ; L:66 dt 249633 ; L:67 dt 257834 ; L:68 dt 267406 ; L:69 dt 276458 ; L:70 dt 286328 ; L:71 dt 296358 ; L:72 dt 305767 ; L:73 dt 316074 ; L:74 dt 326531 ; L:75 dt 336255 ; L:76 dt 346965 ; L:77 dt 357812 ; L:78 dt 367807 ; L:79 dt 378880 ; L:80 dt 390077 ; L:81 dt 400293 ; L:82 dt 411686 ; L:83 dt 423190 ; L:84 dt 433572 ; L:85 dt 445239 ; L:86 dt 457001 ; L:87 dt 467489 ; L:88 dt 479378 ; L:89 dt 491346 ; L:90 dt 501878 ; L:91 dt 513934 ; L:92 dt 526049 ; L:93 dt 536557 ; L:94 dt 548720 ; L:95 dt 560922 ; L:96 dt 571333 ; L:97 dt 583539 ; L:98 dt 591882 ; L:99 dt 600000 ; L:100 FluctuatingExperience: dt 0 ; L:1 dt 4 ; L:2 dt 13 ; L:3 dt 32 ; L:4 dt 65 ; L:5 dt 112 ; L:6 dt 178 ; L:7 dt 276 ; L:8 dt 393 ; L:9 dt 540 ; L:10 dt 745 ; L:11 dt 967 ; L:12 dt 1230 ; L:13 dt 1591 ; L:14 dt 1957 ; L:15 dt 2457 ; L:16 dt 3046 ; L:17 dt 3732 ; L:18 dt 4526 ; L:19 dt 5440 ; L:20 dt 6482 ; L:21 dt 7666 ; L:22 dt 9003 ; L:23 dt 10506 ; L:24 dt 12187 ; L:25 dt 14060 ; L:26 dt 16140 ; L:27 dt 18439 ; L:28 dt 20974 ; L:29 dt 23760 ; L:30 dt 26811 ; L:31 dt 30146 ; L:32 dt 33780 ; L:33 dt 37731 ; L:34 dt 42017 ; L:35 dt 46656 ; L:36 dt 50653 ; L:37 dt 55969 ; L:38 dt 60505 ; L:39 dt 66560 ; L:40 dt 71677 ; L:41 dt 78533 ; L:42 dt 84277 ; L:43 dt 91998 ; L:44 dt 98415 ; L:45 dt 107069 ; L:46 dt 114205 ; L:47 dt 123863 ; L:48 dt 131766 ; L:49 dt 142500 ; L:50 dt 151222 ; L:51 dt 163105 ; L:52 dt 172697 ; L:53 dt 185807 ; L:54 dt 196322 ; L:55 dt 210739 ; L:56 dt 222231 ; L:57 dt 238036 ; L:58 dt 250562 ; L:59 dt 267840 ; L:60 dt 281456 ; L:61 dt 300293 ; L:62 dt 315059 ; L:63 dt 335544 ; L:64 dt 351520 ; L:65 dt 373744 ; L:66 dt 390991 ; L:67 dt 415050 ; L:68 dt 433631 ; L:69 dt 459620 ; L:70 dt 479600 ; L:71 dt 507617 ; L:72 dt 529063 ; L:73 dt 559209 ; L:74 dt 582187 ; L:75 dt 614566 ; L:76 dt 639146 ; L:77 dt 673863 ; L:78 dt 700115 ; L:79 dt 737280 ; L:80 dt 765275 ; L:81 dt 804997 ; L:82 dt 834809 ; L:83 dt 877201 ; L:84 dt 908905 ; L:85 dt 954084 ; L:86 dt 987754 ; L:87 dt 1035837 ; L:88 dt 1071552 ; L:89 dt 1122660 ; L:90 dt 1160499 ; L:91 dt 1214753 ; L:92 dt 1254796 ; L:93 dt 1312322 ; L:94 dt 1354652 ; L:95 dt 1415577 ; L:96 dt 1460276 ; L:97 dt 1524731 ; L:98 dt 1571884 ; L:99 dt 1640000 ; L:100
18.897321
75
0.559887
032ec092d576d6025afbeb91a58b9718b692eec2
1,766
asm
Assembly
programs/oeis/081/A081589.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/081/A081589.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/081/A081589.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A081589: Third row of Pascal-(1,5,1) array A081580. ; 1,13,61,145,265,421,613,841,1105,1405,1741,2113,2521,2965,3445,3961,4513,5101,5725,6385,7081,7813,8581,9385,10225,11101,12013,12961,13945,14965,16021,17113,18241,19405,20605,21841,23113,24421,25765,27145,28561,30013,31501,33025,34585,36181,37813,39481,41185,42925,44701,46513,48361,50245,52165,54121,56113,58141,60205,62305,64441,66613,68821,71065,73345,75661,78013,80401,82825,85285,87781,90313,92881,95485,98125,100801,103513,106261,109045,111865,114721,117613,120541,123505,126505,129541,132613,135721,138865,142045,145261,148513,151801,155125,158485,161881,165313,168781,172285,175825,179401,183013,186661,190345,194065,197821,201613,205441,209305,213205,217141,221113,225121,229165,233245,237361,241513,245701,249925,254185,258481,262813,267181,271585,276025,280501,285013,289561,294145,298765,303421,308113,312841,317605,322405,327241,332113,337021,341965,346945,351961,357013,362101,367225,372385,377581,382813,388081,393385,398725,404101,409513,414961,420445,425965,431521,437113,442741,448405,454105,459841,465613,471421,477265,483145,489061,495013,501001,507025,513085,519181,525313,531481,537685,543925,550201,556513,562861,569245,575665,582121,588613,595141,601705,608305,614941,621613,628321,635065,641845,648661,655513,662401,669325,676285,683281,690313,697381,704485,711625,718801,726013,733261,740545,747865,755221,762613,770041,777505,785005,792541,800113,807721,815365,823045,830761,838513,846301,854125,861985,869881,877813,885781,893785,901825,909901,918013,926161,934345,942565,950821,959113,967441,975805,984205,992641,1001113,1009621,1018165,1026745,1035361,1044013,1052701,1061425,1070185,1078981,1087813,1096681,1105585,1114525 mul $0,3 bin $0,2 mov $1,$0 div $1,3 mul $1,12 add $1,1
176.6
1,654
0.833522
d4f551b32560bf2e3fdf1064b16bf27e79bc8e30
353
asm
Assembly
oeis/040/A040205.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/040/A040205.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/040/A040205.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A040205: Continued fraction for sqrt(220). ; Submitted by Jon Maiga ; 14,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1,28,1,4,1 gcd $0,262156 mul $0,42 mod $0,13 mov $1,$0 add $1,8 div $1,5 mul $1,9 add $0,$1 sub $0,20
25.214286
190
0.597734
7fb58d53e5590dfd06606c876e9c2d29b194dab7
427
asm
Assembly
oeis/255/A255385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255385: a(n) = sigma(n) + phi(n) - tau(n). ; Submitted by Jon Maiga ; 1,2,4,6,8,10,12,15,16,18,20,26,24,26,28,34,32,39,36,44,40,42,44,60,48,50,54,62,56,72,60,73,64,66,68,94,72,74,76,98,80,100,84,98,96,90,92,130,96,107,100,116,104,130,108,136,112,114,116,172,120,122 mov $2,$0 seq $0,158901 ; A051731 * (1, 1, 2, 3, 4, 5,....) seq $2,10 ; Euler totient function phi(n): count numbers <= n and prime to n. add $0,$2 sub $0,1
42.7
197
0.627635
df999503250e267f4a5c483e52b4dfa3941afdaf
4,849
asm
Assembly
source/engine-dos/keyboard.asm
baAlex/Sakurai
cb3e0cb72b4ba304a8c366460dc06bd9a2c1949e
[ "MIT" ]
null
null
null
source/engine-dos/keyboard.asm
baAlex/Sakurai
cb3e0cb72b4ba304a8c366460dc06bd9a2c1949e
[ "MIT" ]
1
2020-10-02T00:33:10.000Z
2020-10-02T00:33:10.000Z
source/engine-dos/keyboard.asm
baAlex/Sakurai
cb3e0cb72b4ba304a8c366460dc06bd9a2c1949e
[ "MIT" ]
1
2020-10-01T18:41:24.000Z
2020-10-01T18:41:24.000Z
; ; MIT License ; ; Copyright (c) 2020 Alexander Brandt ; ; 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. ; [keyboard.asm] ; - Alexander Brandt 2020 include "macros.asm" ;============================== KeyboardInit: ; http://retired.beyondlogic.org/interrupts/interupt.htm#2 ; http://www.ctyme.com/intr/rb-5956.htm push ax push bx ; Return of Get current vector (Int 21/AH=35h) push dx push ds push es ; Return of Get current vector (Int 21/AH=35h) mov dx, seg_data ; The messages and previous vector lives here mov ds, dx mov dx, str_keyboard_init call near PrintLogString ; (ds:dx) ; Get current vector (Int 21/AH=35h) ; http://www.ctyme.com/intr/rb-2740.htm mov ah, 0x35 mov al, 0x09 ; Interrupt number int 0x21 mov [keyboard_previous_vector_sector], es mov [keyboard_previous_vector_offset], bx ; Print it mov dx, str_vector_segment call near PrintLogString ; (ds:dx) mov ax, es call near PrintLogNumber ; (ax) mov dx, str_vector_offset call near PrintLogString ; (ds:dx) mov ax, bx call near PrintLogNumber ; (ax) ; Set new vector (Int 21/AH=25h) ; http://www.ctyme.com/intr/rb-2602.htm SetDsDx seg_code, _KeyboardVector mov al, 0x09 ; Interrupt number mov ah, 0x25 int 0x21 ; Bye! pop es pop ds pop dx pop bx pop ax ret ;============================== _KeyboardVector: ; https://stackoverflow.com/a/40963633 ; http://www.ctyme.com/intr/rb-0045.htm#Table6 ; TODO: the previous two references don't use the ; following method? (Why I cited them?) ; https://wiki.osdev.org/%228042%22_PS/2_Controller ; « Using interrupts is easy. When IRQ1 occurs you just read ; from IO Port 0x60 (there is no need to check bit 0 in the ; Status Register first), send the EOI to the interrupt ; controller and return from the interrupt handler. You know ; that the data came from the first PS/2 device because you ; received an IRQ1.» (OSDEV) push ax push bx push dx push ds mov dx, seg_data ; The keys state lives here mov ds, dx xor bx, bx ; Retrieve input in AL mov dx, 0x60 ; PROTIP: call at least once after the in al, dx ; custom vector is set. Or grab a cup of ; coffee to see how DOS bugs (DOSBox at least) cmp al, 0xD8 ; Codes after 0xD8 are 'multimedia' keys ja near _KeyboardVector_bye ; We ignore them cmp al, 0x58 ; Codes after 0x58 are released keys ja near _KeyboardVector_release ; Press mov bl, al mov byte [keyboard_state + bx], 0x01 ; Press ja near _KeyboardVector_bye ; Release _KeyboardVector_release: sub al, 0x80 ; Convert code to a press state mov bl, al mov byte [keyboard_state + bx], 0x00 ; Release ; Bye! _KeyboardVector_bye: ; Notify PIC to end this interruption? (TODO) ; http://stanislavs.org/helppc/8259.html mov dx, 0x20 mov al, 0x20 out dx, al pop ds pop dx pop bx pop ax iret ;============================== KeyboardStop: push ax push dx push ds mov dx, seg_data ; To retrieve previous vector mov ds, dx mov dx, str_keyboard_stop call near PrintLogString ; (ds:dx) ; Print previous vector mov dx, str_vector_segment call near PrintLogString ; (ds:dx) mov ax, [keyboard_previous_vector_sector] call near PrintLogNumber ; (ax) mov dx, str_vector_offset call near PrintLogString ; (ds:dx) mov ax, [keyboard_previous_vector_offset] call near PrintLogNumber ; (ax) ; Restore previous vector (Int 21/AH=25h) ; http://www.ctyme.com/intr/rb-2602.htm mov dx, [keyboard_previous_vector_offset] ; PROTIP: next one changes ds mov ax, [keyboard_previous_vector_sector] mov ds, ax mov al, 0x09 ; Interrupt number mov ah, 0x25 int 0x21 ; Bye! pop ds pop dx pop ax ret ;============================== KeyboardClean: push bx mov bx, (KEYBOARD_STATE_LEN-1) KeyboardClean_loop: mov byte [keyboard_state + bx], 0x00 ; Release dec bx jnz near KeyboardClean_loop pop bx ret
24.00495
80
0.716849
cfdf11a7664209387bb9c3c0c27156015b7ee91a
1,212
asm
Assembly
programs/oeis/074/A074677.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/074/A074677.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/074/A074677.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A074677: a(n) = Sum_{i = 0..floor(n/2)} (-1)^(i + floor(n/2)) F(2*i + e), where F = A000045 (Fibonacci numbers) and e = (1-(-1)^n)/2. ; 0,1,1,1,2,4,6,9,15,25,40,64,104,169,273,441,714,1156,1870,3025,4895,7921,12816,20736,33552,54289,87841,142129,229970,372100,602070,974169,1576239,2550409,4126648,6677056,10803704,17480761,28284465,45765225,74049690,119814916,193864606,313679521,507544127,821223649,1328767776,2149991424,3478759200,5628750625,9107509825,14736260449,23843770274,38580030724,62423800998,101003831721,163427632719,264431464441,427859097160,692290561600,1120149658760,1812440220361,2932589879121,4745030099481,7677619978602,12422650078084,20100270056686,32522920134769,52623190191455,85146110326225,137769300517680,222915410843904,360684711361584,583600122205489,944284833567073,1527884955772561,2472169789339634,4000054745112196,6472224534451830 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 sub $0,1 mul $0,2 add $0,3 cal $0,259626 ; List of numbers L and L + 1, where L = A000032, the Lucas numbers, sorted into increasing order and duplicates removed. div $0,5 mov $2,$3 mov $4,$0 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe
46.615385
727
0.756601
1722fb282d224b29192854c4c02de57f40044e1c
207
asm
Assembly
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_30_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_30_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_30_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver SECTION code_driver_terminal_output PUBLIC zx_01_output_fzx_tty_z88dk_30_up EXTERN zx_01_output_fzx_proc_move_up defc zx_01_output_fzx_tty_z88dk_30_up = zx_01_output_fzx_proc_move_up
20.7
69
0.917874
755141ffcae2bbe7a324ffe15f4a15a1fdebe603
6,835
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_179.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_179.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_179.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1b756, %rcx nop nop nop sub $29901, %rdx movups (%rcx), %xmm1 vpextrq $1, %xmm1, %r10 nop nop nop nop add %r10, %r10 lea addresses_WC_ht+0x1c39d, %rbp nop nop nop nop nop and %r14, %r14 movl $0x61626364, (%rbp) xor %rdx, %rdx lea addresses_normal_ht+0x1819d, %rcx nop nop xor $971, %r11 mov $0x6162636465666768, %rbp movq %rbp, %xmm2 vmovups %ymm2, (%rcx) nop nop nop nop nop cmp %r11, %r11 lea addresses_WC_ht+0x99d, %r14 clflush (%r14) nop nop nop nop and $21442, %r11 movw $0x6162, (%r14) nop nop nop sub $9179, %rdx lea addresses_D_ht+0x18c70, %rsi lea addresses_A_ht+0xfd9d, %rdi nop nop xor $56200, %r11 mov $113, %rcx rep movsl nop xor %rsi, %rsi lea addresses_normal_ht+0xf1a1, %rdi nop nop nop nop nop add $33161, %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm4 movups %xmm4, (%rdi) nop nop nop cmp %rbp, %rbp lea addresses_normal_ht+0x119d, %rsi lea addresses_D_ht+0xe5dd, %rdi nop nop nop nop nop xor %r14, %r14 mov $2, %rcx rep movsw dec %r11 lea addresses_WC_ht+0xd033, %rdx xor %rsi, %rsi movw $0x6162, (%rdx) xor %r14, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r8 push %rsi // Load lea addresses_US+0x1119d, %rsi nop inc %r12 movb (%rsi), %r8b and %r10, %r10 // Store lea addresses_normal+0xa59d, %r13 cmp $46103, %r10 mov $0x5152535455565758, %r11 movq %r11, %xmm5 movups %xmm5, (%r13) and %r8, %r8 // Store lea addresses_UC+0x3c3d, %r12 nop nop nop sub $22202, %r10 mov $0x5152535455565758, %rsi movq %rsi, %xmm2 vmovups %ymm2, (%r12) nop nop nop add $50154, %r10 // Faulty Load lea addresses_PSE+0x1199d, %r12 nop nop nop cmp $32614, %rsi vmovups (%r12), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r10 lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rsi pop %r8 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
36.550802
2,999
0.658815
56ad8124dcaa1f58ed93a61bfd373b7648aaa504
3,924
asm
Assembly
apps/breakfast/pde_fw/toast/examples/Assembly (CCE)/msp430x24x_OF_LFXT1_nmi.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
1
2020-05-15T18:08:48.000Z
2020-05-15T18:08:48.000Z
apps/breakfast/toast/msp430-code-examples/Assembly (CCE)/msp430x24x_OF_LFXT1_nmi.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
null
null
null
apps/breakfast/toast/msp430-code-examples/Assembly (CCE)/msp430x24x_OF_LFXT1_nmi.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
null
null
null
;****************************************************************************** ; MSP430x24x Demo - LFXT1 Oscillator Fault Detection ; ; Description: System runs normally in LPM3 with Timer A clocked by ; 32kHz ACLK with a 1 second interrupt. P1.0 is normally toggled every ; 1 second inside timer interrupt. If an LFXT1 oscllator fault occurs, ; NMI is requested forcing exit from LPM3. P1.0 is toggled rapidly by software ; as long as LFXT1 osciallator fault is present. Assumed only LFXT1 as NMI ; source - code does not check for other NMI sources. ; ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = default DCO = 32 x ACLK = 1048576Hz ; //* An external watch crystal between XIN & XOUT is required for ACLK *// ; ; MSP430x249 ; ----------------- ; /|\| XIN|- ; | | | 32kHz ; --|RST XOUT|- ; | | ; | P1.0|-->LED ; ; JL Bile ; Texas Instruments Inc. ; May 2008 ; Built Code Composer Essentials: v3 FET ;******************************************************************************* .cdecls C,LIST, "msp430x24x.h" ;------------------------------------------------------------------------------- .text ;Program Start ;------------------------------------------------------------------------------- RESET mov.w #0500h,SP ; Initialize stackpointer StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT SetupP1 bis.b #001h,&P1DIR ; P1.0 = output direction SetupTA mov.w #CCIE,&TACCTL0 ; TACCR0 interrupt enabled mov.w #32767,&TACCR0 mov.w #TASSEL_1+MC_1,&TACTL ; An immedate Osc Fault will occur next bis.b #OFIE,&IE1 ; Enable osc fault interrupt ; Mainloop bis.w #LPM3+GIE,SR ; Enter LPM3, enable interrupts xor.b #001h,&P1OUT ; Toggle P1.0 jmp Mainloop ; ; ;------------------------------------------------------------------------------ NMI_ISR; Only osc fault enabled, R15 used temporarily and not saved ; Assumed LFXT1 is only source for NMI interrupt ;------------------------------------------------------------------------------ CheckOsc bic.b #OFIFG,&IFG1 ; Clear OSC fault flag xor.b #001h,&P1OUT ; Toggle P1.0 mov.w #03FFFh,R15 ; R15 = Delay CheckOsc1 dec.w R15 ; Time for flag to set jnz CheckOsc1 ; bit.b #OFIFG,&IFG1 ; OSC fault flag set? jnz CheckOsc ; OSC Fault, clear flag again bis.b #OFIE,&IE1 ; re-enable osc fault interrupt reti ; return from interrupt ; ;------------------------------------------------------------------------------ TA_ISR; ;------------------------------------------------------------------------------ xor.b #001h,&P1OUT ; Toggle P1.0 reti ; ; ;----------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".reset" ; POR, ext. Reset .short RESET ; .sect ".int25" ; Basic Timer Vector .short TA_ISR ; .sect ".int30" ; NMI vector .short NMI_ISR ; .end
53.027027
81
0.363914
ccff72ef038b51c2c2fcc195347c831748f717ef
268
asm
Assembly
a/Assembler NASM FreeBSD.asm
conorpreid/hello-world
10bc2b31f406c766bbb58b4bd2f5054c3124a4c5
[ "MIT" ]
8,076
2015-01-02T04:55:03.000Z
2022-03-31T16:09:18.000Z
a/Assembler NASM FreeBSD.asm
conorpreid/hello-world
10bc2b31f406c766bbb58b4bd2f5054c3124a4c5
[ "MIT" ]
514
2015-01-08T21:48:21.000Z
2022-03-31T11:55:07.000Z
a/Assembler NASM FreeBSD.asm
conorpreid/hello-world
10bc2b31f406c766bbb58b4bd2f5054c3124a4c5
[ "MIT" ]
1,978
2015-01-01T14:24:01.000Z
2022-03-31T11:38:08.000Z
section .text global _start _syscall: int 0x80 ret _start: push dword len push dword msg push dword 1 mov eax,0x4 call _syscall add esp,12 push dword 0 mov eax,0x1 call _syscall section .data msg db "Hello World",0xa len equ $ - msg
10.307692
24
0.66791
712db3aa231ac89f01c500593222852d7f5cbdd4
6,205
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1403.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1403.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1403.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xd5d0, %r13 nop nop nop and $52125, %rax mov (%r13), %r11 nop nop nop nop cmp $14562, %r11 lea addresses_WC_ht+0x10f0, %rax nop nop nop xor %r8, %r8 mov (%rax), %r13w nop sub $15488, %rdx lea addresses_D_ht+0xe1c8, %r9 nop nop nop nop nop xor $47769, %r14 mov $0x6162636465666768, %r11 movq %r11, (%r9) sub %r11, %r11 lea addresses_normal_ht+0x15f60, %rsi lea addresses_A_ht+0xf860, %rdi nop nop nop nop and $56085, %r8 mov $116, %rcx rep movsb nop nop nop and $35420, %r11 lea addresses_D_ht+0x13f90, %r9 nop nop nop nop nop dec %rax movb (%r9), %r14b nop nop nop and $20498, %rsi lea addresses_WT_ht+0x9110, %rsi lea addresses_WC_ht+0x1235e, %rdi clflush (%rsi) clflush (%rdi) and $47621, %r9 mov $95, %rcx rep movsl inc %r14 lea addresses_WT_ht+0x17470, %rdi nop nop xor %r9, %r9 movb $0x61, (%rdi) nop nop nop nop and %r13, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x5b90, %r9 nop nop nop xor $8170, %r15 movw $0x5152, (%r9) nop nop nop nop nop inc %r9 // REPMOV mov $0xb10, %rsi mov $0xda8, %rdi nop nop nop nop nop sub %rbp, %rbp mov $18, %rcx rep movsq nop nop and %r9, %r9 // Faulty Load lea addresses_RW+0xe310, %rbp nop nop dec %r11 mov (%rbp), %r15 lea oracles, %rsi and $0xff, %r15 shlq $12, %r15 mov (%rsi,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_P', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_P', 'congruent': 3, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}} {'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': True}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 4}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
34.859551
2,999
0.655278
621e1285fbe9624475dc6ac13554b7d0661b7632
251
asm
Assembly
test/br3074517.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
3
2015-03-21T07:35:15.000Z
2018-01-12T01:24:02.000Z
3rdParties/src/nasm/nasm-2.15.02/test/br3074517.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
1
2020-03-26T19:58:54.000Z
2020-04-24T08:58:04.000Z
test/br3074517.asm
bitwiseworks/nasm-os2
ef78e4ee1ca3220ac3b60a61b084a693b8032ab6
[ "BSD-2-Clause" ]
5
2015-03-21T07:35:21.000Z
2021-01-14T10:54:46.000Z
;%define UNDEFINED %macro macro 0 %ifndef UNDEFINED %rep 1 %fatal This should display "fatal: (m:3)" %endrep %endif %fatal This should display "fatal: (m:6)" if 'UNDEFINED' defined %endmacro macro
19.307692
69
0.577689
755646a26127ba118d1db79ee4f96f20a869b700
520
asm
Assembly
libkc/memops/memcpy_fast.asm
kodo-pp/klosy-reloaded
e21388d14ca1589a79a2484873766bc5c0e49ec0
[ "MIT" ]
2
2018-04-30T11:47:57.000Z
2018-06-22T17:56:38.000Z
libkc/memops/memcpy_fast.asm
kodo-pp/klosy-reloaded
e21388d14ca1589a79a2484873766bc5c0e49ec0
[ "MIT" ]
3
2018-06-08T23:19:03.000Z
2018-06-20T00:02:48.000Z
libkc/memops/memcpy_fast.asm
kodo-pp/klosy-reloaded
e21388d14ca1589a79a2484873766bc5c0e49ec0
[ "MIT" ]
null
null
null
section .text global memcpy_fast memcpy_fast: push ebp push ebx mov edi, [esp + 12] mov esi, [esp + 16] mov edx, [esp + 20] .loop0_begin: test edx, edx jz memcpy_fast.loop0_end sub edx, 16 mov eax, [esi] mov ebx, [esi + 4] mov ecx, [esi + 8] mov ebp, [esi + 12] mov [edi], eax mov [edi + 4], ebx mov [edi + 8], ecx mov [edi + 12], ebp add esi, 16 add edi, 16 jmp memcpy_fast.loop0_begin .loop0_end: pop ebx pop ebp ret
14.054054
31
0.542308
756f1e31f37478766685042d0fe5c19fc33e7ebf
5,779
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_244_1429.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_244_1429.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_244_1429.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x83f1, %rsi lea addresses_A_ht+0x828d, %rdi nop nop nop and $54425, %rax mov $76, %rcx rep movsq nop nop xor $45001, %r15 lea addresses_UC_ht+0x16749, %rbx nop nop nop nop xor $44489, %r12 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rbx) nop nop add %rbx, %rbx lea addresses_D_ht+0xa1f1, %rsi nop nop sub %r12, %r12 movl $0x61626364, (%rsi) nop nop nop sub $35384, %rsi lea addresses_WT_ht+0x127d5, %r15 nop nop nop inc %rax mov $0x6162636465666768, %rsi movq %rsi, %xmm3 vmovups %ymm3, (%r15) nop nop nop nop and $3493, %r15 lea addresses_normal_ht+0x16ff1, %rsi lea addresses_WT_ht+0x3721, %rdi nop nop sub $22867, %r15 mov $67, %rcx rep movsw and %r12, %r12 lea addresses_UC_ht+0xe561, %r15 nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r12 movq %r12, (%r15) cmp %rax, %rax lea addresses_WT_ht+0x6441, %rsi lea addresses_WT_ht+0x13f1, %rdi nop nop nop nop sub $22561, %r14 mov $74, %rcx rep movsb nop cmp %r14, %r14 lea addresses_normal_ht+0xa8b1, %rdi nop inc %rcx movb (%rdi), %r15b nop cmp $40315, %rcx lea addresses_UC_ht+0x19cf1, %rbx nop nop nop xor %r12, %r12 mov $0x6162636465666768, %rsi movq %rsi, %xmm3 vmovups %ymm3, (%rbx) cmp %rcx, %rcx lea addresses_WC_ht+0x13911, %rsi nop nop nop nop dec %r15 mov (%rsi), %r14 nop nop nop nop nop cmp %rbx, %rbx lea addresses_WT_ht+0x1c5f1, %rbx nop nop nop nop xor %r12, %r12 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 vmovups %ymm3, (%rbx) nop add $38158, %r12 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r9 push %rax push %rdx push %rsi // Store lea addresses_WC+0x19a9f, %rdx clflush (%rdx) nop add %r10, %r10 mov $0x5152535455565758, %r15 movq %r15, %xmm4 vmovntdq %ymm4, (%rdx) nop xor %rdx, %rdx // Load mov $0xf81, %r9 nop nop inc %rax mov (%r9), %r15w add $51003, %r9 // Store lea addresses_PSE+0x17a87, %r11 inc %r9 movl $0x51525354, (%r11) nop nop and %r10, %r10 // Store lea addresses_RW+0x59f1, %r9 sub $69, %r15 mov $0x5152535455565758, %rdx movq %rdx, %xmm1 vmovaps %ymm1, (%r9) nop nop nop nop nop add $34655, %rsi // Store lea addresses_A+0x16d63, %rax nop nop nop nop cmp $50760, %r10 mov $0x5152535455565758, %r9 movq %r9, %xmm1 vmovaps %ymm1, (%rax) nop nop and %r9, %r9 // Faulty Load lea addresses_PSE+0x18ff1, %r15 inc %r11 movb (%r15), %dl lea oracles, %rax and $0xff, %rdx shlq $12, %rdx mov (%rax,%rdx,1), %rdx pop %rsi pop %rdx pop %rax pop %r9 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_P', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': True, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'33': 244} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
23.979253
731
0.650978
f43d88e360e3cfca0f3d4d1a8256639b4c8dfc4b
1,986
asm
Assembly
tests/macro_examples/sum_checksum.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
null
null
null
tests/macro_examples/sum_checksum.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
1
2019-10-14T21:03:59.000Z
2019-10-14T21:03:59.000Z
tests/macro_examples/sum_checksum.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
null
null
null
; The CHK macro causes a checksum to be computed and deposited at the current location. ; The starting point of the checksum calculation is indicated as an argument. ; ; The checksum is calculated as the simple arithmetic sum of all bytes starting ; at the provided address up to but not including the address of the CHK macro instance. ; The least significant byte is all that is used. ; ; The macro requires the virtual DEVICE memory (checksum needs access to previously ; defined machine code bytes). ; CHK macro definition MACRO .CHK address? OPT push listoff .SUM = 0 ; init values for checksumming .ADR = address? ASSERT address? < $ ; starting address must be below current DUP $ - address? ; do simple sum of all bytes .SUM = .SUM + {B .ADR} .ADR = .ADR + 1 EDUP OPT pop DB low .SUM ENDM ; similar as .CHK macro, but does use XOR to calculate checksum MACRO .CHKXOR address? OPT push listoff .CSUM = 0 ; init values for checksumming .ADR = address? ASSERT address? < $ ; starting address must be below current DUP $ - address? ; do simple sum of all bytes .CSUM = .CSUM ^ {B .ADR} .ADR = .ADR + 1 EDUP OPT pop DB .CSUM ENDM ; Examples and verification (ZX Spectrum 48 virtual device is used for the test) DEVICE ZXSPECTRUM48 : OUTPUT "sum_checksum.bin" TEST1 DB 'A' .CHK TEST1 ; expected 'A' TEST2 DS 300, 'b' DB 'B' - ((300*'b')&$FF) ; adjust checksum to become 'B' .CHK TEST2 ; expected 'B' TEST3 inc hl ; $23 inc h ; $24 .CHK TEST3 ; expected 'G' ($47) TESTXOR HEX 20 50 49 38 30 20 HEX 20 20 20 20 20 43 01 00 HEX 40 08 40 20 20 20 20 20 HEX 20 43 41 .CHKXOR TESTXOR ; expected $79
34.842105
88
0.581067
da81ccaf92c2bfdab9f68eabcf89857d0b2300f2
533
asm
Assembly
oeis/019/A019681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019681.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019681: Decimal expansion of Pi/14. ; Submitted by Jon Maiga ; 2,2,4,3,9,9,4,7,5,2,5,6,4,1,3,8,0,2,7,4,7,3,3,1,6,7,0,2,3,4,2,5,0,2,0,6,0,1,4,0,8,3,5,2,8,5,2,6,7,9,3,2,7,2,9,2,6,7,8,1,7,5,6,5,9,3,4,1,5,4,5,7,5,9,1,8,7,2,0,7,1,3,3,0,5,7,3,9,1,6,0,9,5,8,6,5,5,0,4,8 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $5,$2 add $5,$0 div $1,$5 div $2,$5 sub $3,1 lpe mul $1,10 mov $4,10 pow $4,$0 div $2,$4 mul $2,7 div $1,$2 add $1,$4 mov $0,$1 mod $0,10
17.193548
201
0.521576
e2a9e711583a80b1ad59e29505ac1eb9989e487a
184
asm
Assembly
Source Codes/Repalce a with z.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
Source Codes/Repalce a with z.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
Source Codes/Repalce a with z.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
.MODEL small .STACK .DATA str db "madam$" .CODE .STARTUP mov si,offset str loop1:cmp [si],'$' jz exit1 cmp [si],'a' jnz check mov [si],'z' check:inc si loop loop1 exit1: .EXIT end
9.684211
18
0.663043
9ca18b65a19d026c0c0163fba6bf14668555e223
6,928
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_1_1921.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_0xca_notsx.log_1_1921.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_0xca_notsx.log_1_1921.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1ed2, %r12 nop nop nop inc %r11 mov (%r12), %di cmp %r9, %r9 lea addresses_D_ht+0xb6d2, %rsi lea addresses_normal_ht+0x58b2, %rdi clflush (%rdi) xor %rdx, %rdx mov $50, %rcx rep movsl nop nop nop cmp %rcx, %rcx lea addresses_D_ht+0x196d2, %rsi nop nop nop nop nop xor $52821, %rcx mov $0x6162636465666768, %rdx movq %rdx, %xmm6 vmovups %ymm6, (%rsi) nop nop add %rdi, %rdi lea addresses_WC_ht+0x19492, %rsi lea addresses_WC_ht+0x591e, %rdi nop nop nop nop dec %r13 mov $60, %rcx rep movsl nop nop add %rcx, %rcx lea addresses_WC_ht+0xa6d2, %r12 nop nop nop nop and %rsi, %rsi mov $0x6162636465666768, %rdx movq %rdx, (%r12) cmp $42169, %r12 lea addresses_D_ht+0x111d4, %rdx nop nop nop cmp $7187, %r12 mov (%rdx), %esi nop nop inc %rdx lea addresses_WC_ht+0x12e2a, %rsi lea addresses_WT_ht+0xfed2, %rdi clflush (%rsi) clflush (%rdi) nop nop sub %r9, %r9 mov $86, %rcx rep movsb nop nop nop nop cmp %rdx, %rdx lea addresses_D_ht+0x26d2, %r11 cmp %r13, %r13 mov (%r11), %si and %rcx, %rcx lea addresses_UC_ht+0x16252, %rsi lea addresses_A_ht+0x14fd2, %rdi nop nop nop xor $8039, %r12 mov $48, %rcx rep movsl nop nop nop nop nop inc %rdx lea addresses_A_ht+0x1a078, %r13 xor $63678, %r11 mov $0x6162636465666768, %rsi movq %rsi, %xmm1 vmovups %ymm1, (%r13) nop nop nop nop and $64614, %rcx lea addresses_UC_ht+0x12b52, %r12 nop nop cmp %r11, %r11 mov (%r12), %ecx nop nop nop nop sub $17045, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi // Store lea addresses_normal+0x3ece, %r13 nop nop nop nop xor $25355, %r15 movw $0x5152, (%r13) nop nop cmp $295, %r13 // Store lea addresses_UC+0x11ed2, %rdi nop sub %r9, %r9 movw $0x5152, (%rdi) nop add $36688, %r13 // REPMOV lea addresses_A+0x1f2d2, %rsi lea addresses_A+0x18ad2, %rdi nop nop and %r9, %r9 mov $41, %rcx rep movsb nop nop add %r11, %r11 // Store lea addresses_normal+0x11fd2, %r9 nop nop nop nop nop and $31793, %r15 movb $0x51, (%r9) nop and $42994, %r9 // Store lea addresses_D+0x116d2, %r9 nop cmp %rax, %rax movb $0x51, (%r9) add %rdi, %rdi // Load mov $0x6425bc0000000232, %rax nop cmp %r13, %r13 movb (%rax), %r10b nop add %r9, %r9 // Store mov $0x2e3fe40000000ed2, %r11 nop nop nop nop nop and $1293, %r9 mov $0x5152535455565758, %r13 movq %r13, (%r11) xor %r9, %r9 // Store lea addresses_UC+0xe752, %r11 sub %rdi, %rdi mov $0x5152535455565758, %rcx movq %rcx, %xmm0 movups %xmm0, (%r11) nop nop sub $46058, %rax // Store lea addresses_WC+0x3ed2, %r15 nop nop nop nop inc %rdi mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovups %ymm4, (%r15) nop nop nop nop nop add %rax, %rax // Load mov $0x57e, %r11 sub $15930, %rsi mov (%r11), %r13 nop nop sub %rcx, %rcx // Store mov $0x582f0e0000000fd2, %rcx nop nop nop nop and $22472, %r11 movb $0x51, (%rcx) nop add %r15, %r15 // Load lea addresses_A+0x1bbc2, %rdi nop nop nop nop cmp %rsi, %rsi mov (%rdi), %r15w nop nop xor $27142, %rsi // Store mov $0xc42, %r13 and $47875, %rsi movb $0x51, (%r13) nop nop nop xor $24426, %rax // Faulty Load mov $0x2e3fe40000000ed2, %r10 nop nop nop nop nop sub $61870, %rcx mov (%r10), %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_A', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_NC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_NC', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 3, 'NT': True, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_P', 'size': 1, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 1} 00 */
20.316716
152
0.637991
cf0b97fbb3d6fd165213f1ea57b4a2a0b26fce27
12,345
asm
Assembly
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
; $Id: bs3-mode-CpuDetect.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; BS3Kit - Bs3CpuDetect ; ; ; Copyright (C) 2007-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; %include "bs3kit-template-header.mac" BS3_EXTERN_DATA16 g_uBs3CpuDetected ;; ; Rough CPU detection, mainly for detecting really old CPUs. ; ; A Bs3CpuDetectEx can be added if this is insufficient. ; ; @returns BS3CPU_xxx in xAX. ; @cproto BS3_DECL(BS3CPU) Bs3CpuDetect(void); ; ; @uses xAX. ; ; @remarks ASSUMES we're in ring-0 when not in some kind of real mode. ; ; @note We put the real mode version of this code in the RMTEXT16 segment ; to save space elsewhere. We generate a far call stub that goes ; to the right segment. ; %if TMPL_MODE == BS3_MODE_RM BS3_BEGIN_RMTEXT16 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_FAR %else TMPL_BEGIN_TEXT BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID %endif CPU 8086 push xBP mov xBP, xSP pushf ; xBP - xCB*1 push xCX ; xBP - xCB*2 push xDX ; xBP - xCB*3 push xBX ; xBP - xCB*4 sub xSP, 20h ; xBP - xCB*4 - 20h %ifndef TMPL_CMN_PAGING %ifdef TMPL_RM %if 1 ; this is simpler ; ; FLAGS bits 15:12 are always set on 8086, 8088, V20, V30, 80186, and ; 80188. FLAGS bit 15 is always zero on 286+, whereas bit 14 is NT and ; bits 13:12 are IOPL. ; test byte [xBP - xCB + 1], 80h ; Top byte of saved flags. jz .286plus %else ; ; When executing 'PUSH SP' the 8086, 8088, V20, V30, 80186, and 80188 ; should be pushing the updated SP value instead of the initial one. ; push xSP pop xAX cmp xAX, xSP je .286plus %endif ; ; Older than 286. ; ; Detect 8086/8088/V20/V30 vs. 80186/80188 by checking for pre 80186 ; shift behavior. the 80186/188 and later will mask the CL value according ; to the width of the destination register, whereas 8086/88 and V20/30 will ; perform the exact number of shifts specified. ; mov cl, 20h ; Shift count; 80186/88 and later will mask this by 0x1f (or 0xf)? mov dx, 7fh shl dx, cl cmp dx, 7fh ; If no change, this is a 80186/88. mov xAX, BS3CPU_80186 je .return ; ; Detect 8086/88 vs V20/30 by exploiting undocumented POP CS encoding ; that was redefined on V20/30 to SET1. ; xor ax, ax ; clear push cs db 0fh ; 8086/88: pop cs V20/30: set1 bl,cl db 14h, 3ch ; 8086/88: add al, 3ch ; 8086/88: al = 3ch V20/30: al = 0, cs on stack, bl modified. cmp al, 3ch jne .is_v20_or_v30 mov xAX, BS3CPU_8086 jmp .return .is_v20_or_v30: pop xCX ; unclaimed CS mov xAX, BS3CPU_V20 jmp .return %endif ; TMPL_RM CPU 286 .286plus: ; ; The 4th bit of the machine status word / CR0 indicates the precense ; of a 80387 or later co-processor (a 80287+80386 => ET=0). 486 and ; later should be hardcoding this to 1, according to the documentation ; (need to test on 486SX). The initial idea here then would be to ; assume 386+ if ET=1. ; ; The second idea was to check whether any reserved bits are set, ; because the 286 here has bits 4 thru 15 all set. Unfortunately, it ; turned out the 386SX and AMD 486DX-40 also sets bits 4 thru 15 when ; using SMSW. So, nothing conclusive to distinguish 386 from 286, but ; we've probably got a safe 486+ detection here. ; ;; @todo check if LOADALL can set any of the reserved bits on a 286 or 386. smsw ax test ax, ~(X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE) jz .486plus ; ; The 286 stores 0xff in the high byte of the SIDT and SGDT base ; address (since it only did 24-bit addressing and the top 8-bit was ; reserved for the 386). ASSUMES low IDT (which is the case for BS3Kit). ; sidt [xBP - xCB*4 - 20h] cmp byte [xBP - xCB*4 - 20h + 2 + 3], 0ffh jne .386plus %if 0 ; ; Detect 80286 by checking whether the IOPL and NT bits of EFLAGS can be ; modified or not. There are different accounts of these bits. Dr.Dobb's ; (http://www.drdobbs.com/embedded-systems/processor-detection-schemes/184409011) ; say they are undefined on 286es and will always be zero. Whereas Intel ; iAPX 286 Programmer's Reference Manual (both order #210498-001 and ; #210498-003) documents both IOPL and NT, but with comment 4 on page ; C-43 stating that they cannot be POPFed in real mode and will both ; remain 0. This is different from the 386+, where the NT flag isn't ; privileged according to page 3-37 in #230985-003. Later Intel docs ; (#235383-052US, page 4-192) documents real mode as taking both NT and ; IOPL from what POPF reads off the stack - which is the behavior ; observed a 386SX here. ; test al, X86_CR0_PE ; This flag test doesn't work in protected mode, ... jnz .386plus ; ... so ASSUME 386plus if in PE for now. pushf ; Save a copy of the original flags for restoring IF. pushf pop ax xor ax, X86_EFL_IOPL | X86_EFL_NT ; Try modify IOPL and NT. and ax, ~X86_EFL_IF ; Try clear IF. push ax ; Load modified flags. popf pushf ; Get actual flags. pop dx popf ; Restore IF, IOPL and NT. cmp ax, dx je .386plus ; If any of the flags are set, we're on 386+. ; While we could in theory be in v8086 mode at this point and be fooled ; by a flaky POPF implementation, we assume this isn't the case in our ; execution environment. %endif .is_286: mov ax, BS3CPU_80286 jmp .return %endif ; !TMPL_CMN_PAGING CPU 386 .386plus: .486plus: ; ; Check for CPUID and AC. The former flag indicates CPUID support, the ; latter was introduced with the 486. ; mov ebx, esp ; Save esp. and esp, 0fffch ; Clear high word and don't trigger ACs. pushfd mov eax, [esp] ; eax = original EFLAGS. xor dword [esp], X86_EFL_ID | X86_EFL_AC ; Flip the ID and AC flags. popfd ; Load modified flags. pushfd ; Save actual flags. xchg eax, [esp] ; Switch, so the stack has the original flags. xor eax, [esp] ; Calc changed flags. popf ; Restore EFLAGS. mov esp, ebx ; Restore possibly unaligned ESP. test eax, X86_EFL_ID jnz .have_cpuid ; If ID changed, we've got CPUID. test eax, X86_EFL_AC mov xAX, BS3CPU_80486 jnz .return ; If AC changed, we've got a 486 without CPUID (or similar). mov xAX, BS3CPU_80386 jmp .return CPU 586 .have_cpuid: ; ; Do a very simple minded check here using the (standard) family field. ; While here, we also check for PAE. ; mov eax, 1 cpuid ; Calc the extended family and model values before we mess up EAX. mov cl, ah and cl, 0fh cmp cl, 0fh jnz .not_extended_family mov ecx, eax shr ecx, 20 and cl, 7fh add cl, 0fh .not_extended_family: ; cl = family mov ch, al shr ch, 4 cmp cl, 0fh jae .extended_model cmp cl, 06h ; actually only intel, but we'll let this slip for now. jne .done_model .extended_model: shr eax, 12 and al, 0f0h or ch, al .done_model: ; ch = model ; Start assembling return flags, checking for PSE + PAE. mov eax, X86_CPUID_FEATURE_EDX_PSE | X86_CPUID_FEATURE_EDX_PAE and eax, edx mov ah, al AssertCompile(X86_CPUID_FEATURE_EDX_PAE_BIT > BS3CPU_F_PAE_BIT - 8) ; 6 vs 10-8=2 and al, X86_CPUID_FEATURE_EDX_PAE shr al, X86_CPUID_FEATURE_EDX_PAE_BIT - (BS3CPU_F_PAE_BIT - 8) AssertCompile(X86_CPUID_FEATURE_EDX_PSE_BIT == BS3CPU_F_PSE_BIT - 8) ; 3 vs 11-8=3 and ah, X86_CPUID_FEATURE_EDX_PSE or ah, al or ah, (BS3CPU_F_CPUID >> 8) ; Add the CPU type based on the family and model values. cmp cl, 6 jne .not_family_06h mov al, BS3CPU_PPro cmp ch, 1 jbe .return mov al, BS3CPU_PProOrNewer jmp .NewerThanPPro .not_family_06h: mov al, BS3CPU_PProOrNewer ja .NewerThanPPro cmp cl, 5 mov al, BS3CPU_Pentium je .return cmp cl, 4 mov al, BS3CPU_80486 je .return cmp cl, 3 mov al, BS3CPU_80386 je .return .NewerThanPPro: ; Check for extended leaves and long mode. push xAX ; save PAE+PProOrNewer mov eax, 0x80000000 cpuid sub eax, 0x80000001 ; Minimum leaf 0x80000001 cmp eax, 0x00010000 ; At most 0x10000 leaves. ja .no_ext_leaves mov eax, 0x80000001 cpuid pop xAX ; restore PAE+PProOrNewer test edx, X86_CPUID_EXT_FEATURE_EDX_LONG_MODE jz .no_long_mode or ah, ((BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE) >> 8) jmp .no_check_for_nx .no_long_mode: or ah, (BS3CPU_F_CPUID_EXT_LEAVES >> 8) .no_check_for_nx: test edx, X86_CPUID_EXT_FEATURE_EDX_NX jz .return or ax, BS3CPU_F_NX jmp .return .no_ext_leaves: pop xAX ; restore PAE+PProOrNewer CPU 8086 .return: ; ; Save the return value. ; mov [BS3_DATA16_WRT(g_uBs3CpuDetected)], ax ; ; Epilogue. ; add xSP, 20h pop xBX pop xDX pop xCX popf pop xBP BS3_HYBRID_RET BS3_PROC_END_MODE Bs3CpuDetect %if TMPL_MODE == BS3_MODE_RM BS3_BEGIN_TEXT16_NEARSTUBS BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_NEAR call far TMPL_FAR_NM(Bs3CpuDetect) ret BS3_PROC_END_MODE Bs3CpuDetect %endif
36.523669
106
0.560632
c707fc067704693ff3d0a5da5ef55596f7ebc028
6,615
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1552.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1552.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1552.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 %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1dba, %r11 nop cmp $43410, %rbp movl $0x61626364, (%r11) nop nop sub %rsi, %rsi lea addresses_WC_ht+0x581e, %r9 xor $59442, %rdx and $0xffffffffffffffc0, %r9 movaps (%r9), %xmm6 vpextrq $1, %xmm6, %r14 nop nop nop dec %r14 lea addresses_normal_ht+0x2a13, %rsi lea addresses_WT_ht+0x5716, %rdi nop nop xor %rbp, %rbp mov $89, %rcx rep movsb nop nop nop inc %r9 lea addresses_A_ht+0x4c1e, %rsi clflush (%rsi) nop nop nop sub %r11, %r11 mov (%rsi), %r9 nop nop nop xor %rbp, %rbp lea addresses_D_ht+0x7a9e, %rsi lea addresses_A_ht+0x1b81e, %rdi nop nop nop nop nop add $10344, %r9 mov $5, %rcx rep movsw nop nop nop inc %r11 lea addresses_A_ht+0xfc1e, %rcx nop cmp $33817, %rsi movb (%rcx), %r14b nop dec %r14 lea addresses_A_ht+0x301e, %rsi lea addresses_UC_ht+0xc1e, %rdi nop nop nop xor %r11, %r11 mov $90, %rcx rep movsw nop nop nop dec %rbp lea addresses_UC_ht+0x1702d, %r14 nop nop nop dec %rsi movw $0x6162, (%r14) nop nop nop nop nop dec %r11 lea addresses_A_ht+0xd11e, %r14 nop nop cmp %rdx, %rdx movb $0x61, (%r14) nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0x881e, %rbp nop nop nop nop sub %r11, %r11 movw $0x6162, (%rbp) xor $13755, %r14 lea addresses_normal_ht+0x12b84, %rsi lea addresses_A_ht+0x7f78, %rdi nop nop nop nop nop mfence mov $27, %rcx rep movsw nop nop nop and %rsi, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rbp push %rbx push %rdx // Faulty Load lea addresses_RW+0x1d01e, %r11 cmp %rbp, %rbp mov (%r11), %rdx lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rbx pop %rbp pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
36.955307
2,999
0.658352
396322163015716f2e46c00d290ec3b70f43308f
319
asm
Assembly
oeis/021/A021838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021838: Decimal expansion of 1/834. ; Submitted by Jon Maiga ; 0,0,1,1,9,9,0,4,0,7,6,7,3,8,6,0,9,1,1,2,7,0,9,8,3,2,1,3,4,2,9,2,5,6,5,9,4,7,2,4,2,2,0,6,2,3,5,0,1,1,9,9,0,4,0,7,6,7,3,8,6,0,9,1,1,2,7,0,9,8,3,2,1,3,4,2,9,2,5,6,5,9,4,7,2,4,2,2,0,6,2,3,5,0,1,1,9,9,0 seq $0,199685 ; a(n) = 5*10^n+1. div $0,417 mod $0,10
39.875
199
0.554859
5d09fa3a88aeecc38ca6ce8c19db95f8ed5642c6
369
asm
Assembly
Workarounds/FatalFrameProjectZero_CrashFix/patch_CrashFix.asm
lilystudent2016/cemu_graphic_packs
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
[ "CC0-1.0" ]
1,002
2017-01-10T13:10:55.000Z
2020-11-20T18:34:19.000Z
Workarounds/FatalFrameProjectZero_CrashFix/patch_CrashFix.asm
lilystudent2016/cemu_graphic_packs
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
[ "CC0-1.0" ]
347
2017-01-11T21:13:20.000Z
2020-11-27T11:33:05.000Z
Workarounds/FatalFrameProjectZero_CrashFix/patch_CrashFix.asm
lilystudent2016/cemu_graphic_packs
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
[ "CC0-1.0" ]
850
2017-01-10T06:06:43.000Z
2020-11-06T21:16:49.000Z
[FatalFrame_US_V0] # US eshop version moduleMatches = 0xE93B31F6 0x024A8F20 = nop [ProjectZero_EU_V0] # Various versions moduleMatches = 0xB54DBEB0, 0x5A9D6D31, 0x360FA109, 0x9D96F19B, 0x81551809, 0x77589D01, 0x2897C68C 0x024A8908 = nop [Zero_JAP_V0] # Various versions moduleMatches = 0xA86AA5B2, 0x52992DCD, 0x60DC1C85 # Vanilla, Unknown Patch 0x029aa2f8 = nop
23.0625
98
0.799458
fbabc521c57ec52d58a49fa008cd0669c41fd7b9
719
asm
Assembly
programs/oeis/108/A108187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/108/A108187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/108/A108187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A108187: Numbers n such that 11*n - 5 is prime. ; 2,6,8,12,14,18,26,32,42,44,48,62,68,72,74,78,84,86,96,102,114,126,132,144,146,152,158,162,176,182,188,194,204,216,218,222,224,228,236,242,252,254,258,284,288,294,296,306,314,324,326,336,344,348,354,356,366,378,384,386,398,408,414,422,428,438,452,456,462,464,474,476,482,492,518,522,534,552,554,558,564,566,572,578,582,594,596,606,618,632,636,638,642,644,656,666,686,692,698,702 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $1,16 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,6 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe div $1,2 sub $1,22 mul $1,2 add $1,22 div $1,11 add $1,2 mov $0,$1
27.653846
379
0.657858
14f855e0fcb525c2b81955adec45319febfe43f8
45,195
asm
Assembly
P6/P6Judger - 100 testpoints/testpoint/testpoint29.asm
flyinglandlord/BUAA-CO-2021
1aa28b09762dfb2376ed2aac4126839f0e6fcf93
[ "MIT" ]
5
2021-12-05T12:58:26.000Z
2022-03-31T02:05:13.000Z
P6/P6Judger - 100 testpoints/testpoint/testpoint29.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
null
null
null
P6/P6Judger - 100 testpoints/testpoint/testpoint29.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
2
2021-12-19T11:49:48.000Z
2021-12-22T10:25:38.000Z
ori $1, $0, 5 ori $2, $0, 1 ori $3, $0, 8 ori $4, $0, 12 sw $3, 0($0) sw $4, 4($0) sw $3, 8($0) sw $1, 12($0) sw $3, 16($0) sw $2, 20($0) sw $2, 24($0) sw $2, 28($0) sw $1, 32($0) sw $2, 36($0) sw $3, 40($0) sw $2, 44($0) sw $2, 48($0) sw $3, 52($0) sw $4, 56($0) sw $4, 60($0) sw $2, 64($0) sw $1, 68($0) sw $4, 72($0) sw $3, 76($0) sw $4, 80($0) sw $2, 84($0) sw $2, 88($0) sw $3, 92($0) sw $1, 96($0) sw $4, 100($0) sw $1, 104($0) sw $2, 108($0) sw $1, 112($0) sw $4, 116($0) sw $3, 120($0) sw $4, 124($0) bgez $2, TAG1 multu $2, $2 lui $1, 13 srl $3, $1, 14 TAG1: beq $3, $3, TAG2 lui $2, 2 mtlo $3 lui $2, 2 TAG2: mfhi $1 lui $2, 7 sll $0, $0, 0 blez $2, TAG3 TAG3: mflo $2 slti $3, $2, 10 beq $3, $3, TAG4 mfhi $2 TAG4: mult $2, $2 addi $3, $2, 6 mthi $2 mtlo $3 TAG5: multu $3, $3 ori $1, $3, 10 beq $3, $1, TAG6 lui $4, 2 TAG6: addiu $2, $4, 9 sll $0, $0, 0 beq $4, $4, TAG7 sra $1, $2, 7 TAG7: sb $1, -1024($1) slt $2, $1, $1 sb $1, 0($2) lui $4, 0 TAG8: sh $4, 0($4) sb $4, 0($4) mult $4, $4 sll $1, $4, 13 TAG9: mult $1, $1 subu $2, $1, $1 lhu $3, 0($2) lui $2, 1 TAG10: subu $2, $2, $2 mthi $2 add $2, $2, $2 mthi $2 TAG11: mflo $3 mflo $2 lui $4, 2 mtlo $4 TAG12: lui $2, 8 mfhi $2 mflo $1 lbu $1, 0($2) TAG13: srlv $2, $1, $1 mult $1, $2 lui $3, 7 bltz $3, TAG14 TAG14: mfhi $1 lui $4, 4 lui $2, 4 mthi $3 TAG15: lui $2, 11 xori $3, $2, 8 sll $0, $0, 0 sll $0, $0, 0 TAG16: mthi $4 sll $0, $0, 0 lui $3, 10 sra $4, $3, 14 TAG17: mflo $3 and $3, $4, $4 lbu $3, 0($3) lbu $2, 0($3) TAG18: lbu $4, 0($2) sh $4, 0($4) xor $4, $2, $2 lui $2, 4 TAG19: sll $0, $0, 0 bgtz $2, TAG20 lui $2, 8 sh $2, 0($2) TAG20: mthi $2 bgtz $2, TAG21 xori $1, $2, 9 xori $1, $1, 1 TAG21: sll $0, $0, 0 sra $2, $1, 2 sll $0, $0, 0 mtlo $1 TAG22: divu $2, $2 blez $2, TAG23 lui $2, 4 sll $0, $0, 0 TAG23: bltz $4, TAG24 mfhi $2 xori $1, $4, 11 sb $2, 0($1) TAG24: bltz $1, TAG25 multu $1, $1 bgez $1, TAG25 sll $4, $1, 10 TAG25: bne $4, $4, TAG26 lbu $4, -11264($4) slt $1, $4, $4 add $2, $1, $4 TAG26: lui $3, 6 sllv $1, $2, $3 lui $2, 9 mtlo $1 TAG27: divu $2, $2 beq $2, $2, TAG28 mfhi $4 bne $4, $2, TAG28 TAG28: multu $4, $4 mult $4, $4 bgez $4, TAG29 and $3, $4, $4 TAG29: bne $3, $3, TAG30 or $4, $3, $3 sw $4, 0($4) slt $4, $4, $4 TAG30: mtlo $4 bne $4, $4, TAG31 ori $4, $4, 6 or $4, $4, $4 TAG31: mthi $4 bne $4, $4, TAG32 xori $4, $4, 4 sh $4, 0($4) TAG32: bne $4, $4, TAG33 mtlo $4 blez $4, TAG33 srlv $4, $4, $4 TAG33: sb $4, 0($4) sb $4, 0($4) mtlo $4 mfhi $1 TAG34: lui $4, 13 lui $3, 6 sltiu $3, $3, 2 mflo $3 TAG35: bne $3, $3, TAG36 mfhi $4 mtlo $3 beq $3, $3, TAG36 TAG36: mthi $4 slt $4, $4, $4 mfhi $4 sh $4, 0($4) TAG37: blez $4, TAG38 lui $4, 0 andi $1, $4, 1 xori $1, $4, 10 TAG38: sh $1, 0($1) ori $1, $1, 11 mfhi $4 sh $4, 0($4) TAG39: bgez $4, TAG40 mflo $1 sh $4, 0($1) bgez $4, TAG40 TAG40: sh $1, 0($1) bgez $1, TAG41 addi $1, $1, 14 slti $4, $1, 0 TAG41: mflo $3 sh $4, 0($3) lbu $3, 0($3) lb $3, 0($4) TAG42: slti $1, $3, 10 div $3, $1 bgtz $1, TAG43 addiu $4, $1, 4 TAG43: addiu $3, $4, 6 mtlo $4 lbu $2, 0($3) mthi $2 TAG44: mtlo $2 lui $4, 7 xori $2, $2, 0 ori $3, $2, 0 TAG45: sw $3, 0($3) sh $3, 0($3) mtlo $3 mult $3, $3 TAG46: mflo $3 bne $3, $3, TAG47 sw $3, 0($3) sub $3, $3, $3 TAG47: beq $3, $3, TAG48 sh $3, 0($3) bltz $3, TAG48 sltiu $3, $3, 2 TAG48: mult $3, $3 mthi $3 sh $3, 0($3) mtlo $3 TAG49: sb $3, 0($3) beq $3, $3, TAG50 mtlo $3 lui $4, 2 TAG50: slti $2, $4, 5 mfhi $4 multu $4, $4 mthi $2 TAG51: nor $2, $4, $4 sub $1, $2, $4 bltz $1, TAG52 sh $1, 0($4) TAG52: mfhi $3 bltz $3, TAG53 lb $2, 0($3) beq $1, $3, TAG53 TAG53: and $3, $2, $2 multu $3, $2 mtlo $3 xori $3, $3, 5 TAG54: subu $1, $3, $3 sb $1, 6($3) beq $3, $1, TAG55 lw $1, 6($3) TAG55: mthi $1 lui $2, 5 sll $0, $0, 0 addiu $1, $2, 3 TAG56: mult $1, $1 beq $1, $1, TAG57 lui $4, 12 lhu $4, 0($1) TAG57: sra $4, $4, 5 and $2, $4, $4 mfhi $2 bgez $2, TAG58 TAG58: andi $3, $2, 13 mfhi $3 bltz $3, TAG59 mfhi $2 TAG59: mflo $4 mflo $4 lui $4, 0 lui $4, 13 TAG60: lui $4, 15 mtlo $4 mult $4, $4 bgez $4, TAG61 TAG61: sll $0, $0, 0 sll $0, $0, 0 bgez $4, TAG62 divu $4, $4 TAG62: lui $2, 12 sll $0, $0, 0 beq $2, $1, TAG63 andi $3, $2, 12 TAG63: beq $3, $3, TAG64 lw $1, 0($3) divu $1, $3 mfhi $2 TAG64: sra $2, $2, 3 andi $2, $2, 2 mtlo $2 subu $4, $2, $2 TAG65: and $1, $4, $4 mflo $4 lui $1, 14 lui $2, 0 TAG66: slt $4, $2, $2 mtlo $4 sb $4, 0($4) slt $1, $4, $2 TAG67: lbu $4, 0($1) sh $4, 0($4) sh $4, 0($4) mflo $1 TAG68: lh $1, 0($1) sb $1, 0($1) mtlo $1 addu $4, $1, $1 TAG69: lui $1, 13 lui $4, 1 mflo $1 multu $1, $4 TAG70: beq $1, $1, TAG71 lw $3, 0($1) mflo $1 addi $4, $1, 0 TAG71: mult $4, $4 sll $0, $0, 0 lui $4, 2 lui $2, 10 TAG72: mthi $2 bne $2, $2, TAG73 sll $0, $0, 0 mfhi $4 TAG73: sll $0, $0, 0 mult $4, $2 lui $1, 1 mfhi $1 TAG74: andi $1, $1, 1 lw $2, 0($1) lui $1, 12 multu $2, $1 TAG75: mtlo $1 sltiu $1, $1, 0 lw $4, 0($1) blez $1, TAG76 TAG76: lui $4, 0 addiu $3, $4, 0 srlv $2, $3, $4 multu $4, $2 TAG77: nor $1, $2, $2 lbu $4, 1($1) mflo $1 lh $1, 0($1) TAG78: lui $3, 6 lui $4, 4 sll $0, $0, 0 lbu $1, 0($1) TAG79: bgtz $1, TAG80 andi $3, $1, 1 lui $4, 1 addiu $1, $3, 0 TAG80: lhu $3, 0($1) lbu $3, 0($3) bltz $3, TAG81 lw $4, 0($1) TAG81: sllv $1, $4, $4 mflo $1 bne $4, $1, TAG82 sh $4, 0($1) TAG82: beq $1, $1, TAG83 sw $1, 0($1) mtlo $1 blez $1, TAG83 TAG83: mtlo $1 blez $1, TAG84 lui $4, 8 sra $2, $4, 11 TAG84: mflo $4 lbu $2, 0($2) mfhi $2 sw $2, 0($2) TAG85: sw $2, 0($2) lui $2, 7 sll $2, $2, 15 sltiu $2, $2, 13 TAG86: mflo $1 bne $2, $1, TAG87 sb $2, 0($2) sb $1, 0($2) TAG87: mflo $1 mthi $1 mthi $1 lui $1, 9 TAG88: addiu $2, $1, 8 mfhi $4 sll $0, $0, 0 beq $4, $2, TAG89 TAG89: mflo $2 lw $3, 0($2) mflo $2 beq $3, $2, TAG90 TAG90: sw $2, 0($2) mult $2, $2 mthi $2 lui $4, 9 TAG91: lui $2, 2 sll $0, $0, 0 sb $4, 0($3) bgez $4, TAG92 TAG92: lhu $1, 0($3) lui $4, 7 mtlo $3 bgez $3, TAG93 TAG93: multu $4, $4 sll $0, $0, 0 mtlo $4 mflo $3 TAG94: sll $0, $0, 0 lui $1, 6 bltz $1, TAG95 div $1, $3 TAG95: sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 mtlo $4 TAG96: mfhi $4 mthi $4 subu $3, $4, $4 mflo $4 TAG97: mflo $1 lui $1, 13 div $1, $1 bgez $1, TAG98 TAG98: addiu $2, $1, 12 bgtz $2, TAG99 slti $4, $2, 8 mflo $4 TAG99: mfhi $3 mthi $3 mthi $4 bne $3, $3, TAG100 TAG100: mult $3, $3 mfhi $2 mult $2, $2 mflo $3 TAG101: add $2, $3, $3 beq $2, $3, TAG102 multu $2, $2 sh $2, 0($3) TAG102: mthi $2 bgez $2, TAG103 srav $2, $2, $2 mtlo $2 TAG103: lb $4, 0($2) mtlo $4 andi $2, $4, 0 beq $2, $2, TAG104 TAG104: sltiu $4, $2, 7 blez $2, TAG105 slt $2, $2, $2 bltz $4, TAG105 TAG105: mult $2, $2 addi $4, $2, 0 bltz $4, TAG106 lw $3, 0($2) TAG106: bgez $3, TAG107 sllv $1, $3, $3 beq $1, $1, TAG107 mthi $3 TAG107: lbu $2, 0($1) mthi $1 mthi $1 mflo $3 TAG108: beq $3, $3, TAG109 sh $3, 0($3) lui $4, 9 mult $3, $4 TAG109: mthi $4 mtlo $4 lui $1, 12 sll $0, $0, 0 TAG110: sltu $2, $2, $2 sh $2, 0($2) mult $2, $2 sllv $2, $2, $2 TAG111: bgtz $2, TAG112 mthi $2 sb $2, 0($2) sb $2, 0($2) TAG112: multu $2, $2 add $2, $2, $2 mfhi $2 addiu $4, $2, 1 TAG113: mthi $4 bltz $4, TAG114 multu $4, $4 sltu $1, $4, $4 TAG114: mflo $2 bne $2, $2, TAG115 mflo $2 lbu $1, 0($2) TAG115: multu $1, $1 slti $1, $1, 9 beq $1, $1, TAG116 subu $3, $1, $1 TAG116: multu $3, $3 xor $3, $3, $3 multu $3, $3 bne $3, $3, TAG117 TAG117: add $1, $3, $3 lui $4, 5 mtlo $3 lui $3, 15 TAG118: beq $3, $3, TAG119 andi $3, $3, 9 blez $3, TAG119 lw $3, 0($3) TAG119: mflo $2 lb $4, 0($2) sub $3, $4, $3 lui $1, 11 TAG120: bgez $1, TAG121 xori $2, $1, 1 slt $1, $1, $1 addiu $3, $1, 15 TAG121: addiu $4, $3, 6 lui $2, 5 div $3, $2 bltz $3, TAG122 TAG122: sll $0, $0, 0 lui $3, 9 multu $3, $2 divu $3, $3 TAG123: beq $3, $3, TAG124 lui $1, 11 mflo $4 lhu $1, 0($1) TAG124: sll $0, $0, 0 sra $2, $1, 15 mtlo $1 or $1, $1, $2 TAG125: bgez $1, TAG126 sll $0, $0, 0 sw $1, 0($1) sltu $4, $1, $1 TAG126: bltz $4, TAG127 sb $4, 0($4) or $3, $4, $4 or $3, $3, $3 TAG127: div $3, $3 sb $3, 0($3) bgez $3, TAG128 lui $3, 7 TAG128: mult $3, $3 mtlo $3 lui $4, 7 srlv $2, $3, $4 TAG129: mtlo $2 lui $2, 0 multu $2, $2 mthi $2 TAG130: lb $3, 0($2) lui $4, 11 mflo $4 sllv $3, $4, $3 TAG131: mflo $2 subu $2, $3, $3 sllv $1, $2, $2 nor $2, $1, $2 TAG132: mtlo $2 mtlo $2 mflo $3 sh $3, 1($2) TAG133: sll $0, $0, 0 lui $2, 13 mflo $4 sllv $3, $3, $4 TAG134: bgez $3, TAG135 addu $4, $3, $3 addiu $2, $3, 11 mflo $3 TAG135: sltiu $2, $3, 12 lh $3, 1($3) addiu $1, $3, 13 addi $2, $2, 7 TAG136: divu $2, $2 bltz $2, TAG137 lui $1, 7 beq $1, $1, TAG137 TAG137: mtlo $1 mflo $4 sll $0, $0, 0 sll $0, $0, 0 TAG138: lui $3, 13 sll $0, $0, 0 lui $4, 4 sll $0, $0, 0 TAG139: mfhi $3 bgtz $3, TAG140 sll $0, $0, 0 sw $4, 0($3) TAG140: addiu $3, $3, 3 sb $3, 0($3) slti $2, $3, 0 srlv $2, $3, $3 TAG141: lui $3, 12 mfhi $2 mfhi $4 sll $0, $0, 0 TAG142: sll $0, $0, 0 lui $1, 6 sll $0, $0, 0 blez $1, TAG143 TAG143: sll $0, $0, 0 multu $3, $3 sll $0, $0, 0 beq $3, $3, TAG144 TAG144: sll $0, $0, 0 sltu $1, $3, $3 sh $3, 0($1) mult $3, $1 TAG145: multu $1, $1 beq $1, $1, TAG146 mult $1, $1 sh $1, 0($1) TAG146: lui $3, 6 blez $3, TAG147 mfhi $2 mtlo $1 TAG147: lh $4, 0($2) blez $2, TAG148 lui $1, 2 mtlo $4 TAG148: sll $0, $0, 0 mult $2, $2 addi $2, $2, 13 bgtz $1, TAG149 TAG149: lbu $4, 0($2) multu $4, $4 divu $4, $2 mthi $4 TAG150: sb $4, 0($4) beq $4, $4, TAG151 mthi $4 sh $4, 0($4) TAG151: bne $4, $4, TAG152 subu $4, $4, $4 blez $4, TAG152 mult $4, $4 TAG152: addi $2, $4, 2 mflo $4 mtlo $4 mult $4, $4 TAG153: mthi $4 lui $3, 14 divu $3, $3 sll $1, $4, 7 TAG154: lb $4, 0($1) bgtz $4, TAG155 multu $4, $1 lw $2, 0($1) TAG155: sll $0, $0, 0 bgez $3, TAG156 sltu $3, $3, $3 lui $4, 7 TAG156: lb $1, 0($4) sw $4, 0($4) addiu $4, $4, 10 multu $4, $4 TAG157: slt $4, $4, $4 xor $3, $4, $4 subu $1, $3, $4 slti $3, $3, 10 TAG158: sb $3, 0($3) lui $4, 14 subu $4, $3, $3 multu $3, $4 TAG159: beq $4, $4, TAG160 mult $4, $4 mfhi $3 addiu $4, $3, 14 TAG160: lbu $4, 0($4) mflo $1 mult $4, $1 mfhi $1 TAG161: bne $1, $1, TAG162 mfhi $1 mflo $1 lui $3, 2 TAG162: bne $3, $3, TAG163 lui $2, 7 lui $2, 1 sll $2, $2, 12 TAG163: bgez $2, TAG164 sltu $2, $2, $2 lb $1, 0($2) divu $2, $1 TAG164: add $4, $1, $1 bgtz $1, TAG165 sb $1, 0($1) multu $1, $1 TAG165: srav $2, $4, $4 mflo $3 add $1, $2, $3 mult $1, $4 TAG166: bgtz $1, TAG167 mult $1, $1 xor $2, $1, $1 mflo $4 TAG167: mtlo $4 mflo $3 beq $4, $4, TAG168 lui $4, 6 TAG168: sll $0, $0, 0 lhu $1, 0($2) lb $3, -256($1) bne $3, $2, TAG169 TAG169: addi $2, $3, 3 mflo $1 mthi $2 multu $2, $1 TAG170: bgez $1, TAG171 mthi $1 lui $2, 13 mtlo $1 TAG171: or $1, $2, $2 mthi $2 mflo $3 lw $1, 0($3) TAG172: div $1, $1 sb $1, -256($1) beq $1, $1, TAG173 lb $2, -256($1) TAG173: lhu $1, 0($2) slti $3, $1, 15 beq $3, $3, TAG174 slti $1, $1, 12 TAG174: slt $1, $1, $1 mtlo $1 multu $1, $1 mflo $2 TAG175: lui $3, 12 sll $3, $2, 3 beq $3, $3, TAG176 lui $1, 15 TAG176: bgez $1, TAG177 sll $0, $0, 0 slti $1, $1, 1 mflo $4 TAG177: addu $3, $4, $4 mflo $2 sra $1, $2, 14 mflo $2 TAG178: add $4, $2, $2 mflo $3 blez $3, TAG179 lui $1, 13 TAG179: div $1, $1 mfhi $1 lhu $3, 0($1) sub $4, $3, $1 TAG180: bgez $4, TAG181 mfhi $4 sh $4, 0($4) lui $1, 3 TAG181: mfhi $3 beq $1, $3, TAG182 lhu $3, 0($1) mflo $3 TAG182: bgez $3, TAG183 lh $2, -256($3) beq $2, $2, TAG183 lui $2, 8 TAG183: bltz $2, TAG184 mflo $3 mfhi $3 bne $3, $3, TAG184 TAG184: sw $3, 0($3) mthi $3 mult $3, $3 lui $3, 7 TAG185: mtlo $3 div $3, $3 srlv $2, $3, $3 bne $2, $2, TAG186 TAG186: sllv $3, $2, $2 mtlo $3 mult $3, $3 nor $1, $2, $3 TAG187: bltz $1, TAG188 mtlo $1 mthi $1 mfhi $4 TAG188: sw $4, 0($4) sb $4, 0($4) lw $1, 0($4) xor $2, $4, $4 TAG189: lh $2, 0($2) mthi $2 ori $3, $2, 6 addu $3, $2, $2 TAG190: sb $3, 0($3) multu $3, $3 lui $1, 14 sll $0, $0, 0 TAG191: sll $0, $0, 0 xori $3, $1, 2 lui $4, 12 mtlo $4 TAG192: addu $1, $4, $4 blez $1, TAG193 sllv $4, $4, $1 beq $4, $1, TAG193 TAG193: sll $0, $0, 0 bltz $4, TAG194 mult $4, $4 mtlo $4 TAG194: or $4, $4, $4 bne $4, $4, TAG195 slti $2, $4, 7 lui $2, 0 TAG195: mflo $1 mfhi $4 addiu $3, $1, 6 bne $3, $1, TAG196 TAG196: subu $1, $3, $3 sll $0, $0, 0 multu $1, $1 lui $4, 7 TAG197: srlv $3, $4, $4 beq $4, $4, TAG198 mthi $3 or $2, $3, $4 TAG198: bne $2, $2, TAG199 lbu $3, 0($2) addiu $2, $2, 8 mtlo $3 TAG199: divu $2, $2 addiu $4, $2, 7 div $2, $4 lui $4, 0 TAG200: mult $4, $4 mthi $4 lui $4, 2 sll $0, $0, 0 TAG201: sll $0, $0, 0 lui $2, 12 mthi $2 sll $0, $0, 0 TAG202: sll $0, $0, 0 mthi $4 multu $4, $4 mtlo $4 TAG203: xor $3, $4, $4 mult $3, $4 xori $2, $3, 13 sb $4, 0($3) TAG204: div $2, $2 div $2, $2 or $3, $2, $2 lui $4, 12 TAG205: mult $4, $4 lui $3, 4 mult $4, $4 sltiu $1, $4, 1 TAG206: sltu $3, $1, $1 multu $1, $1 multu $3, $3 lui $2, 12 TAG207: sll $0, $0, 0 bgez $2, TAG208 mult $1, $1 sll $1, $1, 11 TAG208: addu $4, $1, $1 bgtz $4, TAG209 xori $1, $1, 3 mflo $3 TAG209: sltu $2, $3, $3 sw $2, 0($3) sra $4, $3, 15 sub $1, $3, $3 TAG210: mfhi $2 bgtz $2, TAG211 lui $2, 8 lui $2, 9 TAG211: sll $0, $0, 0 bgtz $2, TAG212 mflo $1 bgtz $1, TAG212 TAG212: sw $1, 0($1) mtlo $1 bltz $1, TAG213 multu $1, $1 TAG213: lui $2, 15 bne $2, $2, TAG214 lui $4, 2 andi $2, $4, 0 TAG214: sh $2, 0($2) mtlo $2 blez $2, TAG215 addiu $4, $2, 14 TAG215: bne $4, $4, TAG216 mtlo $4 sh $4, 0($4) lui $1, 14 TAG216: sll $3, $1, 4 mfhi $3 bne $1, $3, TAG217 lw $3, 0($3) TAG217: lb $1, 0($3) lhu $4, 0($3) mfhi $1 mtlo $1 TAG218: lhu $1, 0($1) add $2, $1, $1 sh $2, 0($2) mtlo $1 TAG219: add $2, $2, $2 and $1, $2, $2 nor $2, $1, $2 lui $1, 7 TAG220: sll $0, $0, 0 div $1, $1 bltz $1, TAG221 addu $3, $1, $1 TAG221: mflo $1 mult $1, $1 lui $2, 5 bne $1, $3, TAG222 TAG222: mthi $2 sll $0, $0, 0 lui $2, 15 lui $4, 12 TAG223: lui $4, 9 lui $4, 8 sll $0, $0, 0 bgez $4, TAG224 TAG224: lui $2, 1 subu $2, $1, $2 mthi $2 bltz $1, TAG225 TAG225: mflo $4 blez $4, TAG226 xori $1, $4, 1 mfhi $3 TAG226: mtlo $3 beq $3, $3, TAG227 div $3, $3 sh $3, 0($3) TAG227: bne $3, $3, TAG228 mthi $3 mthi $3 bne $3, $3, TAG228 TAG228: mthi $3 sll $0, $0, 0 slti $1, $3, 9 bgtz $1, TAG229 TAG229: lbu $3, 0($1) lbu $3, 0($1) addu $2, $3, $3 mfhi $1 TAG230: lui $1, 5 mtlo $1 lui $3, 6 sll $0, $0, 0 TAG231: mtlo $3 lui $2, 15 divu $3, $3 srlv $3, $2, $2 TAG232: srlv $3, $3, $3 mflo $1 beq $3, $3, TAG233 sll $0, $0, 0 TAG233: slti $1, $1, 13 div $1, $1 beq $1, $1, TAG234 mfhi $1 TAG234: sb $1, 0($1) beq $1, $1, TAG235 lh $4, 0($1) beq $4, $1, TAG235 TAG235: lw $1, 0($4) bgtz $1, TAG236 mtlo $1 lui $1, 12 TAG236: lui $2, 1 bne $2, $2, TAG237 sll $0, $0, 0 bgtz $1, TAG237 TAG237: mflo $3 sw $1, 0($3) mthi $3 mfhi $2 TAG238: mfhi $2 sub $3, $2, $2 bne $2, $2, TAG239 multu $2, $3 TAG239: lui $2, 15 slti $3, $3, 5 lb $2, 0($3) lbu $1, 0($2) TAG240: bgtz $1, TAG241 sh $1, 0($1) lui $2, 4 andi $1, $2, 9 TAG241: sb $1, 0($1) bltz $1, TAG242 sb $1, 0($1) bgez $1, TAG242 TAG242: lui $3, 7 mflo $2 sll $1, $2, 6 bgtz $2, TAG243 TAG243: lw $1, 0($1) beq $1, $1, TAG244 sll $0, $0, 0 lb $2, 0($1) TAG244: add $3, $2, $2 lb $1, 0($2) beq $2, $2, TAG245 lui $1, 11 TAG245: slt $1, $1, $1 mult $1, $1 bgtz $1, TAG246 sll $3, $1, 7 TAG246: nor $2, $3, $3 bne $2, $2, TAG247 nor $3, $3, $2 mthi $3 TAG247: lh $1, 0($3) slti $3, $1, 8 lbu $4, 0($3) mflo $2 TAG248: mtlo $2 sra $3, $2, 0 lw $2, 0($2) mflo $2 TAG249: lui $2, 14 lui $3, 11 srlv $2, $2, $2 bltz $2, TAG250 TAG250: multu $2, $2 sll $0, $0, 0 sll $0, $0, 0 mult $2, $2 TAG251: divu $2, $2 sll $0, $0, 0 lui $2, 3 sll $0, $0, 0 TAG252: bgtz $4, TAG253 mtlo $4 mult $4, $4 beq $4, $4, TAG253 TAG253: mtlo $4 addi $3, $4, 0 bne $4, $4, TAG254 lui $2, 15 TAG254: mthi $2 lui $1, 8 blez $2, TAG255 addu $3, $2, $2 TAG255: xori $3, $3, 1 bgtz $3, TAG256 sll $0, $0, 0 beq $3, $3, TAG256 TAG256: sll $0, $0, 0 beq $4, $3, TAG257 nor $4, $4, $4 mfhi $2 TAG257: subu $1, $2, $2 bgez $2, TAG258 xori $2, $1, 15 lui $1, 11 TAG258: mult $1, $1 lw $4, 0($1) lw $4, 0($1) sra $2, $1, 3 TAG259: bne $2, $2, TAG260 mfhi $4 lbu $1, 0($2) blez $4, TAG260 TAG260: addi $4, $1, 8 bgez $1, TAG261 sll $2, $4, 4 lb $2, 0($2) TAG261: divu $2, $2 mult $2, $2 bgtz $2, TAG262 slt $4, $2, $2 TAG262: lui $3, 10 lui $1, 7 sll $0, $0, 0 bne $4, $3, TAG263 TAG263: lui $4, 0 slt $3, $4, $4 bgez $4, TAG264 mflo $1 TAG264: sllv $1, $1, $1 beq $1, $1, TAG265 lbu $1, -16384($1) lui $4, 10 TAG265: srav $2, $4, $4 blez $4, TAG266 mtlo $4 lw $3, 0($4) TAG266: lui $3, 9 sll $1, $3, 15 divu $1, $3 mult $3, $1 TAG267: lui $1, 13 sll $0, $0, 0 sll $0, $0, 0 addiu $3, $1, 11 TAG268: mult $3, $3 bgez $3, TAG269 mflo $4 blez $4, TAG269 TAG269: sll $0, $0, 0 mflo $4 sll $0, $0, 0 beq $3, $4, TAG270 TAG270: sll $0, $0, 0 andi $4, $3, 6 sh $4, 0($4) sra $2, $3, 11 TAG271: bltz $2, TAG272 sw $2, -416($2) addiu $2, $2, 10 lui $1, 12 TAG272: mfhi $2 mtlo $2 lui $3, 10 sll $0, $0, 0 TAG273: bltz $3, TAG274 slti $4, $3, 9 sb $4, 0($4) beq $3, $3, TAG274 TAG274: mult $4, $4 lui $4, 3 divu $4, $4 lui $4, 15 TAG275: sll $0, $0, 0 sll $0, $0, 0 xor $2, $3, $3 lui $2, 6 TAG276: bne $2, $2, TAG277 sll $0, $0, 0 beq $2, $2, TAG277 mflo $1 TAG277: sltiu $4, $1, 11 bltz $1, TAG278 srlv $4, $1, $1 nor $3, $4, $4 TAG278: subu $3, $3, $3 blez $3, TAG279 andi $1, $3, 14 lh $1, 0($3) TAG279: addiu $2, $1, 10 lui $1, 13 sllv $2, $2, $1 lui $4, 9 TAG280: slti $2, $4, 5 mfhi $1 bne $2, $4, TAG281 ori $1, $4, 10 TAG281: beq $1, $1, TAG282 mult $1, $1 bne $1, $1, TAG282 lh $2, 0($1) TAG282: mthi $2 lbu $4, 0($2) beq $2, $2, TAG283 lw $1, 0($4) TAG283: divu $1, $1 sb $1, -256($1) mtlo $1 mthi $1 TAG284: bgtz $1, TAG285 sll $3, $1, 4 xori $4, $1, 9 or $1, $4, $3 TAG285: mtlo $1 subu $1, $1, $1 mtlo $1 lh $3, 0($1) TAG286: sll $0, $0, 0 mthi $2 bgtz $3, TAG287 sb $2, 0($2) TAG287: mult $2, $2 lhu $1, 0($2) mflo $1 lbu $1, 0($2) TAG288: lb $3, 0($1) mult $3, $3 mthi $3 mtlo $1 TAG289: bne $3, $3, TAG290 sb $3, 0($3) mfhi $1 add $2, $3, $3 TAG290: mult $2, $2 sb $2, 0($2) multu $2, $2 lb $1, 0($2) TAG291: ori $1, $1, 13 lui $2, 15 mtlo $1 srav $4, $1, $1 TAG292: lhu $4, 0($4) bltz $4, TAG293 mflo $4 mthi $4 TAG293: mthi $4 bgtz $4, TAG294 mfhi $2 sb $2, 0($4) TAG294: or $2, $2, $2 lbu $2, 0($2) beq $2, $2, TAG295 and $2, $2, $2 TAG295: nor $1, $2, $2 and $3, $1, $2 mult $3, $2 xor $3, $2, $1 TAG296: bltz $3, TAG297 addu $2, $3, $3 beq $2, $2, TAG297 lhu $1, 0($2) TAG297: sh $1, 1($1) srl $4, $1, 1 sll $0, $0, 0 mflo $2 TAG298: bltz $2, TAG299 mtlo $2 addiu $3, $2, 14 beq $3, $3, TAG299 TAG299: lhu $2, 0($3) addu $1, $2, $2 bgtz $1, TAG300 mflo $4 TAG300: srav $3, $4, $4 mflo $2 srlv $1, $3, $2 and $2, $3, $3 TAG301: sltiu $1, $2, 7 slt $3, $1, $2 addi $3, $3, 9 mfhi $2 TAG302: sb $2, 0($2) andi $1, $2, 1 lui $1, 6 lui $4, 2 TAG303: bne $4, $4, TAG304 mfhi $4 srl $2, $4, 14 andi $1, $2, 3 TAG304: bgez $1, TAG305 mult $1, $1 ori $2, $1, 2 lui $4, 6 TAG305: bne $4, $4, TAG306 lui $1, 1 sb $1, 0($4) mtlo $1 TAG306: sll $0, $0, 0 sltu $3, $1, $1 bgez $1, TAG307 sll $0, $0, 0 TAG307: multu $3, $3 mthi $3 mflo $1 lui $2, 13 TAG308: mthi $2 bgez $2, TAG309 mflo $2 slti $3, $2, 9 TAG309: xori $4, $3, 2 lh $3, 0($3) lbu $1, 0($4) lui $4, 13 TAG310: xor $3, $4, $4 sh $4, 0($3) mfhi $3 mtlo $3 TAG311: divu $3, $3 divu $3, $3 sll $0, $0, 0 bgez $3, TAG312 TAG312: sh $1, 0($1) xor $3, $1, $1 mfhi $4 mult $4, $3 TAG313: lhu $3, 0($4) lui $2, 9 bltz $3, TAG314 lui $2, 8 TAG314: mfhi $3 bltz $2, TAG315 mult $3, $3 sb $3, 0($3) TAG315: lh $2, 0($3) mthi $2 mfhi $3 lui $2, 6 TAG316: lui $2, 12 mtlo $2 multu $2, $2 div $2, $2 TAG317: bltz $2, TAG318 sltu $4, $2, $2 addiu $4, $2, 2 mtlo $4 TAG318: slt $3, $4, $4 lui $4, 5 mflo $3 sll $0, $0, 0 TAG319: sll $0, $0, 0 sll $0, $0, 0 bgez $3, TAG320 lui $2, 14 TAG320: mthi $2 lui $4, 5 lui $3, 3 sltiu $1, $4, 4 TAG321: lui $3, 4 sll $4, $3, 7 sll $0, $0, 0 lui $2, 1 TAG322: lui $4, 12 beq $2, $2, TAG323 mflo $3 div $3, $3 TAG323: sll $0, $0, 0 sll $0, $0, 0 bgez $3, TAG324 and $4, $3, $3 TAG324: lui $2, 9 sll $0, $0, 0 divu $4, $2 mfhi $3 TAG325: sll $0, $0, 0 lui $2, 0 mflo $3 lui $1, 4 TAG326: sll $0, $0, 0 sll $0, $0, 0 bne $1, $1, TAG327 sll $0, $0, 0 TAG327: sw $2, 0($2) mfhi $1 lui $3, 10 bne $1, $3, TAG328 TAG328: div $3, $3 bne $3, $3, TAG329 sll $0, $0, 0 and $4, $3, $3 TAG329: mthi $4 addiu $1, $4, 6 mflo $1 slti $4, $1, 4 TAG330: lbu $1, 0($4) mtlo $4 mtlo $4 sb $4, 0($4) TAG331: beq $1, $1, TAG332 lbu $3, 0($1) lui $1, 9 beq $1, $1, TAG332 TAG332: mtlo $1 lw $2, 0($1) lh $3, 0($1) beq $2, $2, TAG333 TAG333: mthi $3 sltu $1, $3, $3 sltu $2, $1, $1 srav $3, $2, $2 TAG334: slti $1, $3, 10 addiu $2, $1, 14 mtlo $1 ori $2, $2, 7 TAG335: divu $2, $2 bgtz $2, TAG336 mthi $2 ori $3, $2, 10 TAG336: mfhi $1 mfhi $1 beq $3, $1, TAG337 or $4, $1, $1 TAG337: bgtz $4, TAG338 mflo $4 mfhi $1 mfhi $4 TAG338: lb $2, 0($4) beq $4, $2, TAG339 lb $2, 0($2) mtlo $2 TAG339: bgtz $2, TAG340 mtlo $2 lhu $2, 0($2) xori $1, $2, 10 TAG340: lbu $2, 0($1) srl $3, $1, 1 mfhi $4 srav $1, $3, $3 TAG341: sb $1, 0($1) srlv $3, $1, $1 sub $1, $1, $3 mtlo $1 TAG342: mthi $1 mflo $4 mthi $1 lui $1, 11 TAG343: lui $3, 3 mtlo $3 addiu $1, $3, 1 bgez $1, TAG344 TAG344: lui $4, 6 lui $1, 14 mflo $1 divu $1, $1 TAG345: beq $1, $1, TAG346 mfhi $4 lui $4, 8 srl $3, $1, 11 TAG346: sll $0, $0, 0 lui $3, 12 addu $2, $3, $3 mthi $2 TAG347: lui $4, 9 sll $0, $0, 0 blez $3, TAG348 sll $0, $0, 0 TAG348: lui $2, 12 bgtz $2, TAG349 and $2, $2, $3 addiu $1, $2, 12 TAG349: sll $0, $0, 0 bgez $1, TAG350 lui $4, 2 lw $4, 0($1) TAG350: blez $4, TAG351 lui $1, 15 lui $4, 5 div $4, $4 TAG351: mthi $4 sll $0, $0, 0 mult $4, $4 divu $4, $4 TAG352: sll $0, $0, 0 sll $0, $0, 0 mflo $3 addu $2, $4, $3 TAG353: divu $2, $2 div $2, $2 sll $0, $0, 0 sll $0, $0, 0 TAG354: sll $0, $0, 0 mfhi $4 sll $0, $0, 0 multu $4, $4 TAG355: lui $2, 3 multu $4, $2 mult $2, $4 lh $1, 0($4) TAG356: sw $1, -256($1) mthi $1 xor $1, $1, $1 add $3, $1, $1 TAG357: add $4, $3, $3 xor $2, $4, $3 lui $1, 0 addu $1, $3, $2 TAG358: sub $3, $1, $1 bne $3, $1, TAG359 sh $3, 0($3) lui $3, 1 TAG359: sll $0, $0, 0 mtlo $3 addu $3, $1, $1 beq $3, $3, TAG360 TAG360: mthi $3 mflo $4 sra $3, $4, 1 sll $0, $0, 0 TAG361: mult $3, $3 addu $2, $3, $3 addiu $3, $3, 10 sll $0, $0, 0 TAG362: bgez $1, TAG363 sltiu $3, $1, 4 bne $1, $1, TAG363 mult $1, $3 TAG363: mfhi $3 slt $4, $3, $3 blez $3, TAG364 multu $3, $3 TAG364: mtlo $4 lhu $3, 0($4) sra $1, $4, 15 lw $4, 0($4) TAG365: mthi $4 mflo $3 sw $4, 0($4) beq $3, $3, TAG366 TAG366: mthi $3 mtlo $3 multu $3, $3 mtlo $3 TAG367: lbu $4, 0($3) mtlo $4 mflo $2 bne $2, $4, TAG368 TAG368: or $1, $2, $2 mthi $1 mfhi $4 addi $2, $1, 5 TAG369: mthi $2 bne $2, $2, TAG370 divu $2, $2 bne $2, $2, TAG370 TAG370: lui $2, 12 sll $0, $0, 0 sll $0, $0, 0 addiu $3, $2, 15 TAG371: sll $0, $0, 0 addiu $4, $3, 15 mfhi $2 addiu $3, $2, 5 TAG372: multu $3, $3 slti $3, $3, 10 slti $3, $3, 14 blez $3, TAG373 TAG373: mflo $4 mult $4, $3 lb $2, 0($3) bne $2, $4, TAG374 TAG374: lui $2, 4 lui $3, 4 sra $1, $2, 10 sra $1, $2, 0 TAG375: mtlo $1 bne $1, $1, TAG376 sra $3, $1, 8 addiu $4, $1, 10 TAG376: beq $4, $4, TAG377 addiu $4, $4, 15 sb $4, 0($4) divu $4, $4 TAG377: bne $4, $4, TAG378 sll $0, $0, 0 multu $4, $4 sll $0, $0, 0 TAG378: addiu $2, $4, 10 sll $0, $0, 0 subu $2, $2, $2 blez $2, TAG379 TAG379: mfhi $2 andi $2, $2, 15 lui $1, 2 blez $2, TAG380 TAG380: mthi $1 addiu $2, $1, 2 subu $4, $1, $1 lui $2, 3 TAG381: sll $4, $2, 1 sll $0, $0, 0 mflo $1 lui $4, 2 TAG382: mthi $4 sll $0, $0, 0 mthi $4 sll $0, $0, 0 TAG383: multu $4, $4 sll $0, $0, 0 mfhi $3 sll $0, $0, 0 TAG384: bne $3, $3, TAG385 sltu $1, $3, $3 bgtz $3, TAG385 mfhi $1 TAG385: beq $1, $1, TAG386 lbu $3, 0($1) multu $3, $1 beq $3, $1, TAG386 TAG386: lui $3, 12 ori $2, $3, 1 sll $0, $0, 0 bltz $2, TAG387 TAG387: div $2, $2 mflo $4 sll $0, $0, 0 mflo $2 TAG388: bne $2, $2, TAG389 mtlo $2 mfhi $1 sw $2, 0($1) TAG389: sltiu $1, $1, 6 lbu $1, 0($1) lb $4, 0($1) lb $1, 0($1) TAG390: xor $1, $1, $1 sw $1, 0($1) sw $1, 0($1) mthi $1 TAG391: mfhi $3 multu $3, $1 lui $2, 15 lh $4, 0($3) TAG392: nor $4, $4, $4 lb $1, 1($4) mtlo $4 mtlo $4 TAG393: bgtz $1, TAG394 lw $3, 0($1) lui $3, 1 or $3, $3, $3 TAG394: lui $3, 12 addiu $2, $3, 4 divu $2, $2 lui $3, 12 TAG395: addiu $3, $3, 0 sll $0, $0, 0 sll $0, $0, 0 subu $1, $4, $3 TAG396: sll $0, $0, 0 lui $1, 13 xor $2, $2, $2 multu $2, $1 TAG397: blez $2, TAG398 srlv $2, $2, $2 sltiu $3, $2, 2 mflo $3 TAG398: lui $1, 3 bne $1, $1, TAG399 sll $0, $0, 0 div $3, $3 TAG399: mflo $1 mtlo $1 lui $2, 2 bne $2, $1, TAG400 TAG400: sll $0, $0, 0 sll $1, $2, 11 sll $0, $0, 0 mtlo $2 TAG401: div $2, $2 mthi $2 lui $3, 6 sra $2, $3, 2 TAG402: mfhi $1 mthi $1 ori $4, $2, 13 beq $4, $1, TAG403 TAG403: lui $1, 2 nor $3, $4, $4 multu $3, $3 div $1, $3 TAG404: mult $3, $3 mthi $3 bgez $3, TAG405 sll $0, $0, 0 TAG405: beq $3, $3, TAG406 or $3, $3, $3 lui $4, 14 beq $3, $4, TAG406 TAG406: sll $0, $0, 0 slti $2, $1, 2 addu $2, $4, $1 sll $0, $0, 0 TAG407: beq $2, $2, TAG408 addu $4, $2, $2 mflo $1 sw $1, 0($2) TAG408: bgez $1, TAG409 lui $4, 2 div $1, $4 mflo $3 TAG409: beq $3, $3, TAG410 mfhi $1 lui $4, 13 divu $1, $4 TAG410: mfhi $1 subu $1, $4, $1 and $1, $1, $1 mflo $4 TAG411: sll $0, $0, 0 blez $4, TAG412 srlv $2, $4, $1 lui $2, 10 TAG412: lui $1, 11 beq $2, $1, TAG413 multu $2, $1 sll $0, $0, 0 TAG413: sll $0, $0, 0 mtlo $1 sll $0, $0, 0 beq $1, $1, TAG414 TAG414: lui $2, 5 mflo $3 mtlo $4 sll $0, $0, 0 TAG415: sll $0, $0, 0 blez $3, TAG416 mult $3, $3 sll $0, $0, 0 TAG416: multu $3, $3 ori $2, $3, 7 bne $3, $3, TAG417 andi $3, $2, 5 TAG417: beq $3, $3, TAG418 slti $1, $3, 3 bltz $1, TAG418 div $1, $3 TAG418: srl $1, $1, 10 bltz $1, TAG419 srl $1, $1, 14 sw $1, 0($1) TAG419: mult $1, $1 bgtz $1, TAG420 mthi $1 lui $2, 1 TAG420: sll $0, $0, 0 addu $1, $3, $2 lui $1, 13 sll $0, $0, 0 TAG421: bgtz $3, TAG422 lui $3, 2 bgtz $3, TAG422 mfhi $2 TAG422: multu $2, $2 mult $2, $2 sll $0, $0, 0 mult $2, $2 TAG423: lui $4, 0 add $3, $4, $2 lui $1, 7 mfhi $2 TAG424: beq $2, $2, TAG425 mflo $1 bne $1, $1, TAG425 div $2, $1 TAG425: bgtz $1, TAG426 mult $1, $1 lui $2, 4 multu $2, $2 TAG426: divu $2, $2 multu $2, $2 mflo $4 mthi $2 TAG427: slt $2, $4, $4 mfhi $1 sb $1, 0($4) mfhi $2 TAG428: sll $0, $0, 0 sll $0, $0, 0 mflo $4 bgtz $2, TAG429 TAG429: mtlo $4 lui $3, 14 sll $0, $0, 0 sb $4, 0($4) TAG430: mtlo $1 sll $0, $0, 0 sltiu $4, $1, 1 lw $2, 0($4) TAG431: addi $4, $2, 14 sra $3, $4, 1 lhu $4, 0($4) mtlo $4 TAG432: bltz $4, TAG433 andi $4, $4, 3 lbu $4, 0($4) addiu $2, $4, 5 TAG433: ori $2, $2, 3 lb $4, 0($2) xori $2, $4, 2 bne $2, $4, TAG434 TAG434: mtlo $2 sh $2, 0($2) bne $2, $2, TAG435 div $2, $2 TAG435: blez $2, TAG436 lb $4, 0($2) sll $3, $4, 0 xori $3, $3, 4 TAG436: mult $3, $3 lh $4, 0($3) sltiu $2, $4, 0 mflo $4 TAG437: mflo $3 lw $3, 0($4) and $4, $3, $3 mtlo $4 TAG438: lui $3, 0 bne $4, $3, TAG439 sb $3, 0($4) ori $2, $3, 5 TAG439: slti $4, $2, 12 bgtz $4, TAG440 divu $2, $4 addi $4, $2, 2 TAG440: mflo $2 bltz $4, TAG441 sw $2, 0($2) or $3, $2, $2 TAG441: blez $3, TAG442 lb $3, 0($3) add $2, $3, $3 divu $3, $2 TAG442: mflo $3 bne $2, $3, TAG443 xor $4, $3, $3 blez $3, TAG443 TAG443: lbu $2, 0($4) mult $2, $2 sb $2, 0($2) lh $1, 0($2) TAG444: lui $2, 5 mflo $3 bgez $2, TAG445 sltu $3, $3, $2 TAG445: bgtz $3, TAG446 divu $3, $3 lh $4, 0($3) lui $4, 4 TAG446: mult $4, $4 mtlo $4 mflo $3 and $2, $4, $4 TAG447: subu $4, $2, $2 lhu $2, 0($2) lbu $2, 0($2) lb $3, 0($2) TAG448: sb $3, 0($3) sh $3, 0($3) and $3, $3, $3 mtlo $3 TAG449: nor $2, $3, $3 bgez $3, TAG450 srl $3, $3, 3 beq $3, $3, TAG450 TAG450: sb $3, 0($3) beq $3, $3, TAG451 lui $4, 15 bgez $4, TAG451 TAG451: mtlo $4 addiu $4, $4, 7 sll $0, $0, 0 beq $4, $4, TAG452 TAG452: and $4, $4, $4 mthi $4 mtlo $4 lui $2, 7 TAG453: sll $3, $2, 10 lui $4, 2 lui $2, 15 bne $3, $2, TAG454 TAG454: sltiu $4, $2, 5 lui $2, 10 sll $0, $0, 0 or $2, $4, $2 TAG455: mfhi $3 sll $2, $2, 6 sll $0, $0, 0 mflo $2 TAG456: lui $3, 3 blez $3, TAG457 sll $0, $0, 0 beq $2, $3, TAG457 TAG457: sll $0, $0, 0 sll $0, $0, 0 lui $2, 15 sll $0, $0, 0 TAG458: srl $3, $3, 7 mthi $3 mthi $3 mfhi $3 TAG459: bne $3, $3, TAG460 mtlo $3 lui $3, 10 sll $0, $0, 0 TAG460: blez $3, TAG461 lui $2, 11 beq $3, $3, TAG461 sll $0, $0, 0 TAG461: mthi $2 blez $2, TAG462 lui $4, 6 subu $1, $2, $2 TAG462: multu $1, $1 mthi $1 bgtz $1, TAG463 addi $2, $1, 13 TAG463: slti $3, $2, 11 lui $4, 8 lui $2, 4 mthi $3 TAG464: slt $1, $2, $2 sltu $1, $2, $1 lui $3, 7 bne $2, $1, TAG465 TAG465: mtlo $3 bne $3, $3, TAG466 sll $0, $0, 0 sll $0, $0, 0 TAG466: sll $0, $0, 0 bltz $3, TAG467 mthi $3 slti $4, $3, 4 TAG467: sllv $1, $4, $4 lh $1, 0($4) bgtz $4, TAG468 lhu $4, 0($1) TAG468: addi $2, $4, 6 mfhi $3 sb $3, 0($4) beq $4, $4, TAG469 TAG469: addiu $4, $3, 0 mtlo $4 bgez $3, TAG470 mfhi $4 TAG470: sll $0, $0, 0 sll $0, $0, 0 bne $2, $2, TAG471 sll $0, $0, 0 TAG471: mfhi $4 slti $2, $4, 3 addu $2, $4, $2 mfhi $2 TAG472: div $2, $2 mfhi $4 lui $2, 1 sll $0, $0, 0 TAG473: bne $2, $2, TAG474 sll $0, $0, 0 bne $2, $1, TAG474 or $4, $2, $2 TAG474: sll $0, $0, 0 div $4, $4 sll $0, $0, 0 sll $0, $0, 0 TAG475: multu $3, $3 bgtz $3, TAG476 sll $0, $0, 0 lhu $3, 0($3) TAG476: andi $4, $3, 14 mtlo $3 lui $3, 5 sw $4, 0($4) TAG477: lui $2, 12 lui $2, 0 bgtz $3, TAG478 mfhi $2 TAG478: bgez $2, TAG479 mflo $1 lui $2, 1 mflo $2 TAG479: blez $2, TAG480 sltu $4, $2, $2 sb $2, 0($2) bgez $2, TAG480 TAG480: mfhi $3 add $3, $4, $3 lbu $3, 0($4) blez $3, TAG481 TAG481: mtlo $3 sll $2, $3, 5 mflo $2 mfhi $1 TAG482: sb $1, 0($1) xori $4, $1, 12 mflo $1 mtlo $1 TAG483: bne $1, $1, TAG484 srlv $4, $1, $1 lui $4, 14 multu $4, $4 TAG484: mthi $4 mthi $4 sltiu $1, $4, 6 srlv $4, $4, $1 TAG485: bgtz $4, TAG486 mthi $4 lh $1, 0($4) mult $4, $1 TAG486: beq $1, $1, TAG487 sb $1, 0($1) div $1, $1 beq $1, $1, TAG487 TAG487: lui $3, 10 sll $0, $0, 0 slt $2, $1, $3 bltz $1, TAG488 TAG488: addiu $1, $2, 11 beq $1, $2, TAG489 sh $1, 0($1) sb $2, 0($2) TAG489: slti $4, $1, 9 bgtz $4, TAG490 multu $4, $1 sh $4, 0($1) TAG490: mfhi $2 sw $4, 0($4) mfhi $3 bne $4, $2, TAG491 TAG491: slt $1, $3, $3 multu $3, $1 lui $4, 7 sltiu $2, $3, 13 TAG492: mult $2, $2 lb $3, 0($2) mtlo $2 lui $1, 7 TAG493: divu $1, $1 beq $1, $1, TAG494 lui $2, 9 lui $1, 5 TAG494: mflo $1 sb $1, 0($1) mflo $3 sb $1, 0($1) TAG495: mult $3, $3 addiu $2, $3, 7 slti $1, $2, 0 div $2, $2 TAG496: xori $2, $1, 0 sllv $4, $2, $1 bne $1, $1, TAG497 mflo $1 TAG497: mflo $1 lb $1, 0($1) beq $1, $1, TAG498 mtlo $1 TAG498: addiu $4, $1, 9 mflo $1 slt $4, $1, $1 mfhi $3 TAG499: xori $4, $3, 8 mthi $4 divu $4, $4 mflo $3 TAG500: mflo $1 multu $3, $3 sllv $1, $1, $3 lh $2, 0($1) TAG501: mult $2, $2 mflo $4 nor $3, $2, $2 lui $4, 9 TAG502: lui $4, 13 bne $4, $4, TAG503 mult $4, $4 addu $1, $4, $4 TAG503: sll $0, $0, 0 sll $0, $0, 0 mtlo $1 beq $3, $3, TAG504 TAG504: divu $3, $3 multu $3, $3 mtlo $3 bne $3, $3, TAG505 TAG505: lui $4, 1 srav $2, $3, $3 mflo $2 mflo $4 TAG506: lui $1, 5 slt $2, $4, $1 lui $1, 7 bltz $1, TAG507 TAG507: andi $4, $1, 6 mult $1, $4 beq $1, $4, TAG508 lw $3, 0($4) TAG508: mtlo $3 mfhi $2 divu $2, $3 multu $3, $3 TAG509: lhu $3, 0($2) sub $3, $3, $2 multu $2, $2 beq $3, $3, TAG510 TAG510: mflo $1 bgez $3, TAG511 srl $4, $3, 4 bne $4, $3, TAG511 TAG511: mfhi $1 sw $4, 0($1) sb $1, 0($1) sw $4, 0($1) TAG512: mthi $1 lui $4, 4 mthi $4 sll $0, $0, 0 TAG513: andi $1, $4, 8 mthi $1 andi $2, $4, 0 lui $4, 5 TAG514: beq $4, $4, TAG515 sll $0, $0, 0 mthi $4 mult $4, $4 TAG515: lui $1, 6 mthi $1 lui $2, 11 beq $1, $1, TAG516 TAG516: mthi $2 sll $0, $0, 0 mult $4, $4 lui $4, 7 TAG517: bgtz $4, TAG518 sll $0, $0, 0 mfhi $3 bltz $3, TAG518 TAG518: mfhi $2 blez $2, TAG519 mthi $2 lui $2, 4 TAG519: multu $2, $2 mult $2, $2 mflo $1 multu $1, $2 TAG520: bne $1, $1, TAG521 lw $2, 0($1) bne $1, $2, TAG521 mflo $3 TAG521: add $4, $3, $3 sw $4, 0($3) beq $3, $4, TAG522 sb $3, 0($3) TAG522: bgez $4, TAG523 lui $2, 6 mfhi $4 sll $4, $2, 10 TAG523: lbu $3, 0($4) blez $3, TAG524 addiu $4, $3, 12 sw $3, 0($4) TAG524: mflo $1 lui $1, 2 sltiu $3, $1, 4 mtlo $1 TAG525: xori $2, $3, 14 sh $2, 0($2) mflo $3 sll $0, $0, 0 TAG526: mthi $3 sll $0, $0, 0 sll $0, $0, 0 mthi $3 TAG527: divu $1, $1 xor $4, $1, $1 mflo $4 sll $0, $0, 0 TAG528: lbu $4, 0($4) lui $4, 11 bltz $4, TAG529 sltiu $2, $4, 11 TAG529: or $2, $2, $2 sw $2, 0($2) sw $2, 0($2) or $2, $2, $2 TAG530: multu $2, $2 xori $4, $2, 4 sltiu $4, $4, 4 bne $4, $4, TAG531 TAG531: multu $4, $4 sra $4, $4, 4 and $3, $4, $4 sw $4, 0($4) TAG532: mflo $4 bne $3, $4, TAG533 mflo $1 mthi $3 TAG533: lui $1, 10 mfhi $4 mflo $2 lhu $4, 0($2) TAG534: sb $4, 0($4) mult $4, $4 bne $4, $4, TAG535 lui $2, 10 TAG535: sltiu $1, $2, 12 sb $1, 0($1) slti $2, $2, 9 mtlo $1 TAG536: lui $1, 14 and $2, $1, $1 bne $2, $2, TAG537 sll $0, $0, 0 TAG537: subu $2, $2, $2 mtlo $2 addu $4, $2, $2 mtlo $2 TAG538: bne $4, $4, TAG539 multu $4, $4 mult $4, $4 mfhi $2 TAG539: mult $2, $2 beq $2, $2, TAG540 lui $3, 1 mfhi $3 TAG540: sll $0, $0, 0 divu $3, $3 div $3, $3 bgez $3, TAG541 TAG541: mflo $1 beq $3, $3, TAG542 addu $4, $3, $1 mthi $4 TAG542: lui $3, 15 mult $4, $4 srl $2, $3, 6 mthi $3 TAG543: addu $4, $2, $2 lw $1, -30720($4) mfhi $3 lui $3, 9 TAG544: bltz $3, TAG545 srlv $1, $3, $3 mthi $3 sll $0, $0, 0 TAG545: slti $3, $4, 4 sb $4, 0($3) lw $4, 0($3) beq $4, $3, TAG546 TAG546: lui $3, 6 blez $3, TAG547 mtlo $4 and $2, $3, $3 TAG547: slti $4, $2, 1 mult $4, $2 lw $2, 0($4) mthi $4 TAG548: beq $2, $2, TAG549 lb $3, 0($2) bltz $3, TAG549 lui $4, 8 TAG549: bne $4, $4, TAG550 sh $4, 0($4) slti $3, $4, 4 lbu $1, 0($4) TAG550: lw $2, 0($1) bgtz $1, TAG551 sltiu $2, $2, 2 sltu $4, $2, $1 TAG551: sh $4, 0($4) bgez $4, TAG552 lui $4, 8 sw $4, 0($4) TAG552: sll $0, $0, 0 lui $3, 4 divu $4, $3 mflo $2 TAG553: div $2, $2 multu $2, $2 srl $3, $2, 12 beq $2, $2, TAG554 TAG554: xor $3, $3, $3 bne $3, $3, TAG555 mfhi $2 sw $3, 0($2) TAG555: srlv $3, $2, $2 mthi $2 sh $3, 0($2) mfhi $1 TAG556: bgez $1, TAG557 lb $3, 0($1) ori $4, $3, 2 bne $1, $1, TAG557 TAG557: sll $0, $0, 0 mfhi $3 mtlo $4 mthi $3 TAG558: sw $3, 0($3) sw $3, 0($3) sb $3, 0($3) ori $4, $3, 4 TAG559: multu $4, $4 lw $4, 0($4) sll $0, $0, 0 bgez $4, TAG560 TAG560: divu $4, $4 sll $0, $0, 0 sll $0, $0, 0 mthi $4 TAG561: mthi $3 mflo $3 mfhi $2 xori $3, $3, 9 TAG562: beq $3, $3, TAG563 div $3, $3 multu $3, $3 lui $2, 2 TAG563: mtlo $2 lui $1, 3 mfhi $1 sb $2, 0($1) TAG564: mult $1, $1 mfhi $2 srl $2, $2, 13 bgtz $2, TAG565 TAG565: xor $1, $2, $2 mthi $2 xor $1, $1, $2 ori $1, $2, 9 TAG566: lbu $4, 0($1) lw $3, 0($4) srlv $2, $3, $1 sw $3, 0($3) TAG567: and $2, $2, $2 sw $2, 0($2) bgez $2, TAG568 sb $2, 0($2) TAG568: lui $3, 2 bgez $3, TAG569 ori $3, $2, 10 lui $1, 13 TAG569: lbu $2, 0($1) beq $2, $2, TAG570 lui $4, 3 slti $3, $2, 4 TAG570: bgtz $3, TAG571 andi $1, $3, 12 sw $1, 0($3) mtlo $3 TAG571: slt $2, $1, $1 lbu $3, 0($1) mtlo $2 addu $3, $2, $3 TAG572: sw $3, 0($3) lui $1, 13 bltz $1, TAG573 mtlo $3 TAG573: lui $3, 1 multu $3, $3 mfhi $1 beq $1, $3, TAG574 TAG574: or $3, $1, $1 div $3, $3 mfhi $4 beq $4, $1, TAG575 TAG575: lui $1, 9 sll $4, $4, 7 div $4, $1 sll $0, $0, 0 TAG576: mthi $3 lui $1, 3 sll $0, $0, 0 lui $3, 4 TAG577: beq $3, $3, TAG578 mthi $3 mtlo $3 mfhi $3 TAG578: sll $0, $0, 0 bne $3, $3, TAG579 lui $3, 15 lui $3, 7 TAG579: addiu $4, $3, 4 mflo $3 bne $3, $3, TAG580 mflo $2 TAG580: multu $2, $2 mtlo $2 sb $2, 0($2) mfhi $3 TAG581: mflo $3 lh $3, 0($3) lui $2, 4 blez $3, TAG582 TAG582: sll $0, $0, 0 mtlo $3 multu $2, $3 lui $3, 1 TAG583: addiu $2, $3, 7 bne $3, $3, TAG584 sll $0, $0, 0 multu $4, $4 TAG584: bgez $4, TAG585 sll $0, $0, 0 subu $4, $4, $2 slt $1, $2, $4 TAG585: mthi $1 sll $0, $0, 0 bgtz $1, TAG586 addu $1, $1, $1 TAG586: lui $1, 7 subu $2, $1, $1 sltiu $2, $2, 15 ori $2, $1, 1 TAG587: sll $0, $0, 0 mult $1, $2 mult $2, $2 divu $2, $1 TAG588: sll $0, $0, 0 slt $3, $1, $1 xor $3, $3, $3 multu $3, $3 TAG589: slti $1, $3, 14 beq $3, $3, TAG590 sb $1, 0($1) lui $1, 9 TAG590: mult $1, $1 srav $2, $1, $1 or $1, $1, $1 bltz $1, TAG591 TAG591: sb $1, 0($1) mthi $1 mtlo $1 sb $1, 0($1) TAG592: mthi $1 mtlo $1 mtlo $1 bgtz $1, TAG593 TAG593: mtlo $1 divu $1, $1 mfhi $1 sh $1, 0($1) TAG594: mflo $2 beq $2, $2, TAG595 mthi $2 mfhi $2 TAG595: sltiu $3, $2, 10 sllv $1, $2, $2 mtlo $2 srlv $2, $1, $2 TAG596: mflo $4 multu $2, $4 lui $4, 15 mthi $4 TAG597: lui $2, 7 sll $0, $0, 0 beq $2, $2, TAG598 sll $0, $0, 0 TAG598: bne $2, $2, TAG599 subu $1, $2, $2 mfhi $1 ori $2, $1, 4 TAG599: divu $2, $2 addiu $2, $2, 14 beq $2, $2, TAG600 slt $4, $2, $2 TAG600: sltiu $2, $4, 15 sb $2, 0($2) lb $3, 0($4) sb $2, 0($2) TAG601: lw $1, 0($3) lui $2, 2 lui $1, 3 mtlo $1 TAG602: div $1, $1 mult $1, $1 beq $1, $1, TAG603 mult $1, $1 TAG603: divu $1, $1 mtlo $1 lui $3, 6 sll $3, $1, 0 TAG604: xori $2, $3, 15 bne $2, $2, TAG605 lui $3, 10 mtlo $3 TAG605: sll $0, $0, 0 ori $4, $3, 1 addiu $1, $4, 10 mflo $4 TAG606: addu $3, $4, $4 multu $4, $3 beq $4, $3, TAG607 sltiu $4, $3, 11 TAG607: lui $2, 14 sra $1, $2, 3 mtlo $4 bne $1, $2, TAG608 TAG608: sltiu $2, $1, 5 sll $0, $0, 0 beq $1, $2, TAG609 mult $1, $2 TAG609: bgez $1, TAG610 div $1, $1 divu $1, $1 addi $1, $1, 14 TAG610: mthi $1 subu $2, $1, $1 blez $2, TAG611 lui $4, 9 TAG611: bne $4, $4, TAG612 addu $4, $4, $4 sltiu $4, $4, 8 multu $4, $4 TAG612: srav $2, $4, $4 mthi $4 lui $4, 11 mthi $4 TAG613: sll $0, $0, 0 lh $2, 0($2) sll $0, $0, 0 mfhi $3 TAG614: blez $3, TAG615 andi $3, $3, 4 mthi $3 lbu $1, 0($3) TAG615: mthi $1 beq $1, $1, TAG616 mtlo $1 lui $1, 15 TAG616: bgez $1, TAG617 sw $1, 0($1) beq $1, $1, TAG617 mult $1, $1 TAG617: beq $1, $1, TAG618 mult $1, $1 multu $1, $1 lui $3, 4 TAG618: mult $3, $3 multu $3, $3 sll $1, $3, 2 sb $3, 0($1) TAG619: sb $1, 0($1) mflo $4 addi $4, $4, 2 mult $1, $4 TAG620: sll $1, $4, 3 srav $2, $4, $1 sltu $3, $1, $1 mtlo $2 TAG621: lui $4, 14 bgez $4, TAG622 mtlo $4 sw $3, 0($3) TAG622: lui $1, 15 beq $1, $4, TAG623 lui $3, 13 mthi $4 TAG623: sllv $1, $3, $3 mthi $1 mtlo $1 sltiu $1, $3, 8 TAG624: beq $1, $1, TAG625 srl $1, $1, 6 add $4, $1, $1 beq $1, $1, TAG625 TAG625: sll $0, $0, 0 bgtz $3, TAG626 lui $3, 13 lhu $4, 0($3) TAG626: addu $2, $4, $4 bne $2, $4, TAG627 addu $4, $4, $4 mfhi $3 TAG627: sll $0, $0, 0 sll $0, $0, 0 bne $3, $3, TAG628 sll $0, $0, 0 TAG628: multu $2, $2 lui $2, 12 mfhi $4 bltz $2, TAG629 TAG629: mthi $4 lui $4, 14 mfhi $4 div $4, $4 TAG630: sh $4, -784($4) bne $4, $4, TAG631 mtlo $4 lui $1, 7 TAG631: sll $0, $0, 0 mtlo $2 sll $0, $0, 0 sll $0, $0, 0 TAG632: sll $0, $0, 0 bgez $3, TAG633 mult $3, $3 xori $4, $3, 4 TAG633: beq $4, $4, TAG634 mtlo $4 xori $1, $4, 2 mtlo $4 TAG634: sll $0, $0, 0 lui $3, 14 sll $0, $0, 0 addiu $3, $2, 3 TAG635: multu $3, $3 mtlo $3 bltz $3, TAG636 mult $3, $3 TAG636: blez $3, TAG637 mthi $3 mfhi $1 mtlo $1 TAG637: sll $0, $0, 0 mfhi $2 sll $0, $0, 0 srlv $3, $1, $2 TAG638: sll $0, $0, 0 mtlo $3 addiu $4, $3, 12 mthi $4 TAG639: mtlo $4 addiu $1, $4, 12 beq $1, $4, TAG640 sll $0, $0, 0 TAG640: beq $3, $3, TAG641 sll $0, $0, 0 xor $1, $4, $3 lbu $3, 0($3) TAG641: mthi $3 bltz $3, TAG642 div $3, $3 sll $0, $0, 0 TAG642: divu $3, $3 addu $2, $3, $3 multu $3, $3 sll $0, $0, 0 TAG643: mult $2, $2 lui $4, 5 srav $4, $2, $4 bne $4, $4, TAG644 TAG644: div $4, $4 bgtz $4, TAG645 mthi $4 multu $4, $4 TAG645: sll $0, $0, 0 sll $0, $0, 0 blez $4, TAG646 sll $0, $0, 0 TAG646: sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 TAG647: slt $1, $4, $4 sra $1, $4, 14 mtlo $1 sb $4, 0($1) TAG648: lhu $1, 0($1) mflo $1 subu $1, $1, $1 mult $1, $1 TAG649: bltz $1, TAG650 xori $3, $1, 7 blez $1, TAG650 lui $1, 14 TAG650: sll $0, $0, 0 mfhi $3 xori $1, $2, 4 bltz $1, TAG651 TAG651: mtlo $1 subu $3, $1, $1 andi $1, $1, 0 sh $3, 0($1) TAG652: beq $1, $1, TAG653 mfhi $4 div $4, $4 lui $2, 13 TAG653: mthi $2 bltz $2, TAG654 lui $1, 6 bltz $1, TAG654 TAG654: mtlo $1 lui $1, 15 lui $2, 5 sll $0, $0, 0 TAG655: lui $4, 9 lui $1, 11 blez $4, TAG656 sll $0, $0, 0 TAG656: sll $0, $0, 0 mfhi $2 sll $0, $0, 0 beq $1, $1, TAG657 TAG657: lui $1, 12 sll $0, $0, 0 sll $0, $0, 0 bltz $2, TAG658 TAG658: mult $2, $2 mfhi $2 sb $2, 0($2) lui $3, 15 TAG659: mtlo $3 mfhi $3 beq $3, $3, TAG660 multu $3, $3 TAG660: lui $2, 2 mthi $2 lui $1, 0 mflo $1 TAG661: multu $1, $1 addiu $4, $1, 4 sb $1, 0($4) multu $4, $4 TAG662: div $4, $4 lui $3, 6 andi $3, $3, 3 mflo $1 TAG663: beq $1, $1, TAG664 sb $1, 0($1) or $2, $1, $1 bltz $2, TAG664 TAG664: sll $0, $0, 0 sll $0, $0, 0 bne $2, $1, TAG665 mtlo $1 TAG665: sb $1, 0($1) sb $1, 0($1) bltz $1, TAG666 div $1, $1 TAG666: mult $1, $1 mtlo $1 addu $3, $1, $1 mflo $2 TAG667: mtlo $2 mflo $4 sll $2, $4, 4 sb $2, 0($4) TAG668: beq $2, $2, TAG669 lui $4, 5 mtlo $2 blez $2, TAG669 TAG669: sll $0, $0, 0 bne $2, $2, TAG670 sltiu $3, $2, 7 sw $2, 0($2) TAG670: sb $3, 0($3) mflo $4 lui $3, 1 mfhi $1 TAG671: sllv $1, $1, $1 sh $1, 0($1) addi $2, $1, 15 lb $1, 0($2) TAG672: sb $1, 0($1) lui $2, 1 addu $1, $2, $1 beq $1, $1, TAG673 TAG673: mflo $1 mfhi $1 addiu $2, $1, 12 mthi $1 TAG674: bne $2, $2, TAG675 multu $2, $2 mflo $3 bgtz $3, TAG675 TAG675: mthi $3 mfhi $3 slt $4, $3, $3 lhu $3, -144($3) TAG676: lui $2, 8 mfhi $2 sw $2, -144($2) lb $4, -144($2) TAG677: mtlo $4 mthi $4 xori $3, $4, 2 bgtz $3, TAG678 TAG678: mflo $3 sw $3, 112($3) sltiu $4, $3, 10 sb $3, 112($3) TAG679: lui $4, 8 mfhi $1 sll $3, $1, 15 multu $1, $3 TAG680: bgez $3, TAG681 lui $4, 6 addiu $3, $3, 13 lui $1, 1 TAG681: lui $4, 14 bne $1, $1, TAG682 srl $1, $1, 11 multu $1, $4 TAG682: bltz $1, TAG683 mfhi $2 multu $1, $2 bltz $2, TAG683 TAG683: mflo $3 slti $2, $2, 4 lb $3, 0($2) bne $3, $2, TAG684 TAG684: mfhi $3 mult $3, $3 lui $2, 12 sll $0, $0, 0 TAG685: sltiu $3, $1, 15 beq $1, $1, TAG686 lui $1, 4 multu $1, $1 TAG686: mult $1, $1 bgez $1, TAG687 sll $0, $0, 0 sltu $1, $1, $3 TAG687: mult $1, $1 lui $1, 2 mfhi $2 lui $1, 14 TAG688: lui $3, 5 mflo $3 mfhi $1 bne $3, $1, TAG689 TAG689: lui $3, 3 beq $1, $3, TAG690 lui $4, 6 mthi $3 TAG690: mfhi $4 divu $4, $4 srl $3, $4, 12 bltz $4, TAG691 TAG691: lui $2, 6 multu $3, $3 srlv $3, $2, $2 mflo $2 TAG692: sll $0, $0, 0 lui $3, 10 bgez $1, TAG693 srlv $4, $3, $3 TAG693: mtlo $4 bgtz $4, TAG694 lui $2, 8 lw $3, 0($2) TAG694: sltu $1, $3, $3 and $4, $3, $3 bgtz $1, TAG695 mflo $3 TAG695: sll $0, $0, 0 divu $3, $3 sra $1, $3, 2 mfhi $4 TAG696: srlv $4, $4, $4 mult $4, $4 lui $3, 7 sll $0, $0, 0 TAG697: mtlo $3 mtlo $3 lui $4, 7 bne $3, $4, TAG698 TAG698: sll $0, $0, 0 subu $2, $4, $4 beq $2, $4, TAG699 sw $4, 0($2) TAG699: bgez $2, TAG700 sll $3, $2, 11 blez $2, TAG700 slt $1, $3, $3 TAG700: sll $0, $0, 0 sll $0, $0, 0 beq $1, $1, TAG701 sll $0, $0, 0 TAG701: xori $1, $1, 9 slt $2, $1, $1 multu $1, $1 lui $1, 11 TAG702: bltz $1, TAG703 addu $1, $1, $1 sllv $2, $1, $1 sll $0, $0, 0 TAG703: slti $4, $3, 3 mfhi $2 mult $2, $4 beq $2, $3, TAG704 TAG704: sltiu $1, $2, 10 mtlo $2 addiu $1, $2, 10 lw $2, 0($1) TAG705: sb $2, 0($2) lui $4, 6 bne $4, $2, TAG706 mflo $3 TAG706: lui $1, 15 mflo $1 mflo $1 lui $4, 8 TAG707: sll $0, $0, 0 mfhi $1 mfhi $4 bne $4, $4, TAG708 TAG708: mfhi $4 addu $4, $4, $4 sltiu $2, $4, 7 beq $4, $4, TAG709 TAG709: or $4, $2, $2 lbu $3, 0($4) mtlo $2 xor $2, $4, $2 TAG710: mfhi $4 mflo $1 lbu $3, 0($2) bne $1, $3, TAG711 TAG711: mflo $4 sb $3, 0($4) divu $3, $4 sh $3, 0($3) TAG712: lb $3, 0($4) sb $4, 0($4) bgtz $4, TAG713 divu $3, $4 TAG713: lui $2, 12 xori $2, $2, 9 blez $2, TAG714 lui $2, 14 TAG714: sll $0, $0, 0 mult $2, $2 mthi $2 bgtz $2, TAG715 TAG715: mthi $2 andi $1, $2, 4 mthi $2 or $4, $1, $1 TAG716: bgez $4, TAG717 sw $4, 0($4) lw $1, 0($4) mflo $1 TAG717: sh $1, 0($1) lbu $2, 0($1) add $2, $1, $1 mtlo $2 TAG718: mtlo $2 mult $2, $2 sh $2, 0($2) lui $4, 7 TAG719: div $4, $4 sll $0, $0, 0 addi $3, $1, 9 mflo $1 TAG720: lui $2, 0 lb $1, 0($2) mflo $4 blez $4, TAG721 TAG721: mflo $4 beq $4, $4, TAG722 sb $4, 0($4) mult $4, $4 TAG722: mfhi $1 xori $2, $4, 10 mfhi $4 mult $4, $4 TAG723: srl $4, $4, 4 mfhi $2 sb $2, 0($4) lui $1, 9 TAG724: lui $1, 3 addiu $1, $1, 7 subu $4, $1, $1 subu $1, $1, $1 TAG725: addiu $2, $1, 14 sb $2, 0($1) beq $2, $1, TAG726 lb $3, 0($2) TAG726: lui $1, 13 addiu $1, $3, 5 srav $3, $1, $3 bne $3, $3, TAG727 TAG727: lui $1, 1 slt $4, $1, $3 mfhi $2 mflo $1 TAG728: lbu $1, 0($1) lui $1, 1 subu $3, $1, $1 bne $1, $1, TAG729 TAG729: mflo $4 lui $4, 15 ori $4, $4, 15 srav $2, $4, $4 TAG730: addu $3, $2, $2 divu $2, $2 ori $2, $2, 11 beq $3, $2, TAG731 TAG731: lbu $3, 0($2) lui $3, 4 srav $3, $3, $3 sltiu $3, $3, 4 TAG732: mthi $3 bne $3, $3, TAG733 lw $3, 0($3) mflo $1 TAG733: subu $2, $1, $1 sll $2, $1, 12 sltu $1, $2, $1 div $1, $2 TAG734: mflo $3 lui $2, 12 addi $4, $3, 5 sb $3, 0($1) TAG735: lui $4, 10 mflo $4 bne $4, $4, TAG736 mtlo $4 TAG736: lui $3, 10 srav $2, $4, $4 mflo $4 lui $3, 9 TAG737: mfhi $2 srl $3, $3, 0 bgez $3, TAG738 sll $0, $0, 0 TAG738: bgez $1, TAG739 andi $1, $1, 10 bgez $1, TAG739 sh $1, 0($1) TAG739: sb $1, 0($1) bne $1, $1, TAG740 add $2, $1, $1 lhu $4, 0($1) TAG740: sh $4, -256($4) div $4, $4 xor $1, $4, $4 mflo $4 TAG741: lui $1, 9 sb $4, 0($4) sb $4, 0($4) blez $1, TAG742 TAG742: lui $4, 3 ori $2, $1, 2 mthi $1 mthi $1 TAG743: beq $2, $2, TAG744 addiu $3, $2, 2 sh $2, 0($3) lw $3, 0($2) TAG744: mflo $4 lui $4, 11 sll $0, $0, 0 bne $4, $3, TAG745 TAG745: divu $4, $4 addu $3, $4, $4 beq $3, $3, TAG746 addu $2, $3, $4 TAG746: bgez $2, TAG747 addiu $2, $2, 2 bne $2, $2, TAG747 mtlo $2 TAG747: mult $2, $2 sll $0, $0, 0 blez $2, TAG748 mthi $2 TAG748: sll $0, $0, 0 bltz $2, TAG749 div $2, $2 lui $3, 15 TAG749: mfhi $2 mfhi $3 mflo $2 bne $2, $2, TAG750 TAG750: nop nop test_end: beq $0, $0, test_end nop
11.921657
21
0.543888
060e5016c7fd552d6a857c41a8c7a9f6dcd50fe0
1,491
asm
Assembly
programs/oeis/069/A069241.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/069/A069241.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/069/A069241.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A069241: Number of Hamiltonian paths in the graph on n vertices {1,...,n}, with i adjacent to j iff |i-j|<=2. ; 1,1,1,3,6,10,17,28,44,68,104,157,235,350,519,767,1131,1665,2448,3596,5279,7746,11362,16662,24430,35815,52501,76956,112797,165325,242309,355135,520490,762830,1117997,1638520,2401384,3519416,5157972,7559393,11078847,16236858,23796291,34875179,51112079,74908413,109783636,160895760,235804219,345587902,506483710,742287978,1087875930,1594359691,2336647721,3424523704,5018883449,7355531225,10780054985,15798938491,23154469774,33934524818,49733463369,72887933204,106822458084,156555921516,229443854784,336266312933,492822234515,722266089366,1058532402367,1551354636951,2273620726387,3332153128825,4883507765848,7157128492308,10489281621207,15372789387130,22529917879514,33019199500798,48391988888006,70921906767599,103941106268477,152333095156564,223255001924245,327196108192805,479529203349453,702784205273783,1029980313466674,1509509516816214,2212293722090085,3242274035556848,4751783552373152,6964077274463328 mov $2,$0 add $2,1 mov $4,$0 lpb $2,1 mov $0,$4 sub $2,1 sub $0,$2 mov $5,$0 mov $7,2 lpb $7,1 mov $0,$5 sub $7,1 add $0,$7 add $0,1 cal $0,196382 ; Number of sequences of n coin flips, that win on the last flip, if the sequence of flips ends with (1,1,0) or (1,0,1). mov $3,$0 mov $8,$7 lpb $8,1 mov $6,$3 sub $8,1 lpe lpe lpb $5,1 mov $5,0 sub $6,$3 lpe mov $3,$6 sub $3,1 add $1,$3 lpe
43.852941
908
0.751844
a90f78a1007541a01975fde6aa1bd070d55f49a2
403
asm
Assembly
Maths/Utilities/PAequDustYIdxYmulQ-MLU1.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
9
2021-09-29T22:08:15.000Z
2022-03-23T05:35:43.000Z
Maths/Utilities/PAequDustYIdxYmulQ-MLU1.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-21T12:35:42.000Z
2022-01-21T17:47:24.000Z
Maths/Utilities/PAequDustYIdxYmulQ-MLU1.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-15T10:13:49.000Z
2022-01-15T10:13:49.000Z
asm_mlu1: PAequDustYIdxYmulQ: ; "ASM MLU1 : TESTGOOD" ; "Y1 = dustY[Y]hi and P.A = Y1 7bit * Q A = low, P = hi" ld hl, varDustY ; ld a, (regY) ; add hl,a ; add hl,a ; ; inc hl STICK TO Lo for now ld a, (hl) ; a = dustY[a] ld (varY1),a ; Y1 = a and SignMask8Bit ; ld d,a ; d = a ld a,(varQ) ld e,a ; e = q mul ; de = a * q ld (varP),de ; P = d ld a,e ; a = e ret
20.15
57
0.506203
43175779475bcda2965ed64d7052bf37f79d94b6
12,097
asm
Assembly
src/presets/cm_presets_defeatagahnim2.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
6
2020-02-14T17:14:52.000Z
2021-12-06T19:51:25.000Z
src/presets/cm_presets_defeatagahnim2.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
1
2020-09-26T07:40:33.000Z
2020-09-26T07:40:33.000Z
src/presets/cm_presets_defeatagahnim2.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
7
2019-12-02T21:51:51.000Z
2021-07-03T17:53:04.000Z
;=================================================================================================== ; PRESET DATA HEADER ;=================================================================================================== presetheader_defeatagahnim2: dw presetSRAM_defeatagahnim2 ; location of SRAM dw presetpersistent_defeatagahnim2 ; location of persistent data ;=================================================================================================== %menu_header("Defeat Agahnim 2", 15) ;=================================================================================================== ;--------------------------------------------------------------------------------------------------- ; AGAHNIM 2 ;--------------------------------------------------------------------------------------------------- ;=================================================================================================== ;--------------------------------------------------------------------------------------------------- %preset_UW("Link's Bed", "defeatagahnim2", "agahnim_2", "links_bed") dw $0104 ; Screen ID dw $0940, $215A ; Link Coords dw $0900, $2110 ; Camera HV db $00 ; Item db $02 ; Direction ;----------------------------- db $00 ; Entrance db $20 ; Room layout db $00 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Courtyard", "defeatagahnim2", "agahnim_2", "courtyard") dw $0055 ; Screen ID dw $0A78, $0BE1 ; Link Coords dw $0A00, $0B10 ; Camera HV db $00 ; Item db $02 ; Direction ;----------------------------- db $7D ; Entrance db $AF ; Room layout db $01 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Stair Clip", "defeatagahnim2", "agahnim_2", "stair_clip") dw $0061 ; Screen ID dw $03E7, $0CF8 ; Link Coords dw $0300, $0C8C ; Camera HV db $00 ; Item db $06 ; Direction ;----------------------------- db $04 ; Entrance db $D0 ; Room layout db $0A ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Re-arm EG", "defeatagahnim2", "agahnim_2", "re_arm_eg") dw $0062 ; Screen ID dw $0540, $0D2F ; Link Coords dw $04C8, $0CC3 ; Camera HV db $00 ; Item db $02 ; Direction ;----------------------------- db $04 ; Entrance db $F0 ; Room layout db $00 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Ball 'n Chains", "defeatagahnim2", "agahnim_2", "ball_n_chains") dw $0070 ; Screen ID dw $0050, $0E21 ; Link Coords dw $004B, $0E00 ; Camera HV db $00 ; Item db $00 ; Direction ;----------------------------- db $04 ; Entrance db $0F ; Room layout db $00 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Spark Avoidance", "defeatagahnim2", "agahnim_2", "spark_avoidance") dw $00B2 ; Screen ID dw $0478, $17DB ; Link Coords dw $0402, $16ED ; Camera HV db $00 ; Item db $02 ; Direction ;----------------------------- db $04 ; Entrance db $AE ; Room layout db $8C ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Somaria Bridge", "defeatagahnim2", "agahnim_2", "somaria_bridge") dw $00C3 ; Screen ID dw $06E8, $1978 ; Link Coords dw $0600, $190D ; Camera HV db $00 ; Item db $06 ; Direction ;----------------------------- db $04 ; Entrance db $6E ; Room layout db $02 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Trudge to Falling Bridge", "defeatagahnim2", "agahnim_2", "trudge_to_falling_bridge") dw $00C3 ; Screen ID dw $070A, $1878 ; Link Coords dw $0700, $180D ; Camera HV db $12 ; Item db $04 ; Direction ;----------------------------- db $04 ; Entrance db $5E ; Room layout db $02 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Low Snap to Hera", "defeatagahnim2", "agahnim_2", "low_snap_to_hera") dw $0095 ; Screen ID dw $0BE8, $13C0 ; Link Coords dw $0B00, $1312 ; Camera HV db $12 ; Item db $06 ; Direction ;----------------------------- db $04 ; Entrance db $7E ; Room layout db $0C ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write16_enable() %write16($7E0600, $1300) ; Camera boundaries %write16($7E0602, $1200) ; Camera boundaries %write16($7E0604, $1310) ; Camera boundaries %write16($7E0606, $1310) ; Camera boundaries %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Hera Descent", "defeatagahnim2", "agahnim_2", "hera_descent") dw $00A7 ; Screen ID dw $0EA0, $14A8 ; Link Coords dw $0E2A, $1410 ; Camera HV db $12 ; Item db $02 ; Direction ;----------------------------- db $04 ; Entrance db $8E ; Room layout db $08 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("TR Climb", "defeatagahnim2", "agahnim_2", "tr_climb") dw $0077 ; Screen ID dw $0EF8, $0FE1 ; Link Coords dw $0E82, $0F10 ; Camera HV db $12 ; Item db $02 ; Direction ;----------------------------- db $04 ; Entrance db $E1 ; Room layout db $4D ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_OW("Lionel Peak", "defeatagahnim2", "agahnim_2", "lionel_peak") dw $0043 ; Screen ID dw $09E7, $0150 ; Link Coords dw $0900, $00EC ; Camera HV db $12 ; Item db $06 ; Direction ;----------------------------- dw $097F, $015B ; Scroll X,Y dw $0660 ; Tilemap position ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_OW("TR Backdoor", "defeatagahnim2", "agahnim_2", "tr_backdoor") dw $0045 ; Screen ID dw $0D78, $0169 ; Link Coords dw $0D00, $0105 ; Camera HV db $12 ; Item db $00 ; Direction ;----------------------------- dw $0D7D, $0174 ; Scroll X,Y dw $07E0 ; Tilemap position ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Pokeys 2", "defeatagahnim2", "agahnim_2", "pokeys_2") dw $0024 ; Screen ID dw $0878, $0514 ; Link Coords dw $0800, $0500 ; Camera HV db $12 ; Item db $00 ; Direction ;----------------------------- db $19 ; Entrance db $2F ; Room layout db $01 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write_end() ;--------------------------------------------------------------------------------------------------- %preset_UW("Agahnim 2", "defeatagahnim2", "agahnim_2", "agahnim_2") dw $0004 ; Screen ID dw $0878, $02E1 ; Link Coords dw $0800, $0110 ; Camera HV db $12 ; Item db $02 ; Direction ;----------------------------- db $19 ; Entrance db $2F ; Room layout db $01 ; Door / Peg state / Layer dw $0000 ; Dead sprites ;----------------------------- %write16_enable() %write16($7E0600, $FF00) ; Camera boundaries %write16($7E0602, $FE00) ; Camera boundaries %write16($7E0604, $FF10) ; Camera boundaries %write16($7E0606, $FF10) ; Camera boundaries %write_end() ;=================================================================================================== presetpersistent_defeatagahnim2: ;=================================================================================================== presetpersistent_defeatagahnim2_agahnim_2: ;----------------------------- .links_bed %write_sq() %write8($7E044A, $00) ; EG strength %write8($7E047A, $00) ; Armed EG ..end ;----------------------------- .courtyard %write8($7E044A, $02) ; EG strength ..end ;----------------------------- .stair_clip ..end ;----------------------------- .re_arm_eg %write8($7E044A, $01) ; EG strength ..end ;----------------------------- .ball_n_chains %write8($7E047A, $01) ; Armed EG ..end ;----------------------------- .spark_avoidance ..end ;----------------------------- .somaria_bridge ..end ;----------------------------- .trudge_to_falling_bridge ..end ;----------------------------- .low_snap_to_hera %write8($7E047A, $00) ; Armed EG ..end ;----------------------------- .hera_descent ..end ;----------------------------- .tr_climb ..end ;----------------------------- .lionel_peak ..end ;----------------------------- .tr_backdoor ..end ;----------------------------- .pokeys_2 ..end ;----------------------------- .agahnim_2 %write_mirror($01, $08, $4C, $0C) ..end ;=================================================================================================== presetSRAM_defeatagahnim2: ;----------------------------- .agahnim_2 ;----------------------------- ..links_bed %write8($7EF36F, $FF) ; Keys %writeroom($104, $0002) ...end ;----------------------------- ..courtyard %write8($7EF359, $01) ; Sword %write8($7EF35A, $01) ; Shield %write8($7EF3C5, $01) ; Game state %write8($7EF3C6, $11) ; Game flags A %write8($7EF3C8, $03) ; Spawn point %writeroom($055, $000F) ...end ;----------------------------- ..stair_clip %write8($7EF36F, $00) ; Keys %writeroom($061, $000F) ...end ;----------------------------- ..re_arm_eg %writeroom($062, $000F) ...end ;----------------------------- ..ball_n_chains %write8($7EF36D, $10) ; Health %writeroom($070, $0008) %writeroom($071, $000C) %writeroom($072, $000C) ...end ;----------------------------- ..spark_avoidance %write8($7EF36D, $0C) ; Health %write16sram($7EF366, $4000) ; Big keys %writeroom($080, $040F) %writeroom($081, $000F) %writeroom($091, $000F) %writeroom($0A1, $000F) %writeroom($0A2, $000F) %writeroom($0B2, $000F) ...end ;----------------------------- ..somaria_bridge %writeroom($0C2, $000F) %writeroom($0C3, $000A) ...end ;----------------------------- ..trudge_to_falling_bridge %write8($7EF350, $01) ; Somaria %writeroom($0C3, $001F) ...end ;----------------------------- ..low_snap_to_hera %write8($7EF36D, $04) ; Health %writeroom($095, $0005) %writeroom($0A4, $0001) %writeroom($0A5, $000F) %writeroom($0B3, $0007) %writeroom($0B4, $000F) ...end ;----------------------------- ..hera_descent %write8($7EF36D, $18) ; Health %writeroom($096, $000F) %writeroom($097, $0002) %writeroom($0A7, $000C) ...end ;----------------------------- ..tr_climb %write8($7EF343, $01) ; Bombs %write8($7EF357, $01) ; Pearl %writeroom($017, $000F) %writeroom($027, $001F) %writeroom($031, $000C) %writeroom($077, $000F) ...end ;----------------------------- ..lionel_peak %write8($7EF36F, $FF) ; Keys %write8($7EF3CA, $40) ; LW/DW ...end ;----------------------------- ..tr_backdoor ...end ;----------------------------- ..pokeys_2 %write8($7EF36D, $10) ; Health %write8($7EF36F, $00) ; Keys %writeroom($023, $0001) %writeroom($024, $0003) ...end ;----------------------------- ..agahnim_2 %write8($7EF343, $00) ; Bombs %write8($7EF36D, $18) ; Health %write8($7EF36E, $08) ; Magic %writeroom($004, $4002) %writeroom($014, $000F) %writeroom($024, $000B) ...end ;=================================================================================================== presetend_defeatagahnim2: print "defeatagahnim2 size: $", hex(presetend_defeatagahnim2-presetheader_defeatagahnim2)
29.36165
100
0.430933
276746b695736bb07c111cc1ce108fe830db1a46
6,784
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_613.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_613.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_613.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 %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1a9a8, %r11 nop nop cmp $5945, %r10 movw $0x6162, (%r11) nop nop xor $59776, %r15 lea addresses_WC_ht+0x1c1ea, %rsi nop sub $50357, %rbx and $0xffffffffffffffc0, %rsi vmovaps (%rsi), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r8 nop nop cmp %r13, %r13 lea addresses_A_ht+0xca2a, %rbx nop nop nop add $57911, %r11 mov $0x6162636465666768, %r15 movq %r15, (%rbx) nop dec %r13 lea addresses_WT_ht+0xdfaa, %rsi nop lfence movl $0x61626364, (%rsi) nop nop and %r10, %r10 lea addresses_WC_ht+0x1984a, %r15 inc %r8 movl $0x61626364, (%r15) add %r8, %r8 lea addresses_WC_ht+0xe37d, %rsi lea addresses_WC_ht+0x10daa, %rdi clflush (%rsi) nop nop nop nop nop cmp $5148, %r8 mov $40, %rcx rep movsw nop nop and %rcx, %rcx lea addresses_D_ht+0x1cca, %rdi nop add %r10, %r10 and $0xffffffffffffffc0, %rdi vmovntdqa (%rdi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rcx nop nop nop nop nop dec %r15 lea addresses_A_ht+0xd27a, %r11 nop nop inc %rbx movb (%r11), %r8b nop sub %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %r9 push %rax push %rbx // Load lea addresses_RW+0x15aea, %rbx cmp %r10, %r10 vmovups (%rbx), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rax nop nop nop and $54299, %rbx // Store lea addresses_UC+0x1db8a, %rax nop nop add %r9, %r9 movl $0x51525354, (%rax) nop nop nop dec %rax // Store lea addresses_WT+0xa4ea, %r12 nop nop nop nop cmp %rbx, %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm0 movups %xmm0, (%r12) nop nop nop add %r9, %r9 // Faulty Load lea addresses_RW+0x139ea, %rax nop nop nop nop xor $24376, %rbx vmovups (%rax), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r14 lea oracles, %r12 and $0xff, %r14 shlq $12, %r14 mov (%r12,%r14,1), %r14 pop %rbx pop %rax pop %r9 pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}} {'src': {'NT': True, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
36.473118
2,999
0.655955
4012b31c6edaf3dd8fb9be1c683354cfe77e9ce3
5,868
asm
Assembly
Library/Kernel/Graphics/graphicsTransformSimple.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Kernel/Graphics/graphicsTransformSimple.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Kernel/Graphics/graphicsTransformSimple.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel Library FILE: 28 March 1990 AUTHOR: Jim DeFrisco, 3/29/90 ROUTINES: Name Description ---- ----------- WSetNullTransform Reset window transformation matrix GSetNullTransform Reset gstate transformation matrix REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 3/29/90 Initial revision DESCRIPTION: This file contains some TMatrix manipulation routines that are pretty frequently called. $Id: graphicsTransformSimple.asm,v 1.1 97/04/05 01:13:22 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GraphicsTransformUtils segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WinSetNullTransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Replace transformation with null (identity) transformation CALLED BY: GLOBAL PASS: di - handle to window or GState cx - WinInvalFlag enum WIF_INVALIDATE - to invalidate the window WIF_DONT_INVALIDATE - to avoid invalidating window RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: set matrix to: 1 0 0 0 1 0 0 0 1 KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 04/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WinSetNullTransform proc far ;this will give a nice warning message if WWFixed is not an even number ;of bytes. this assumptions is made through out this routine CheckHack < ((size WWFixed and 1) eq 0) > ;this will give a nice warning message if 2 is not an even number. ;this assumptions is made through out this routine CheckHack < ((2 and 1) eq 0) > uses es,ds,di,cx,bx,ax,dx ; save regs we trash .enter ; lock the window block call FarWinLockFromDI ; ds -> window segmov es, ds ; es -> window push di ; save window handle push cx ; save inval flag mov di, W_TMatrix ; set up pointer to matrix clr ax ; set up values to use mov cx, (size TMatrix) / 2 ; size of store rep stosw ; init to all 0s sub di, size TMatrix ; back to beginning mov ds:[di].TM_11.WWF_int, 1 ; set scale to 1.0 mov ds:[di].TM_22.WWF_int, 1 ; pop cx ; restore inval flag ; finish for window: UnlockV block, inval CurMatrix and ds:[W_grFlags], not ( \ mask WGF_XFORM_VALID \ or mask WGRF_PATH_VALID shl 8 \ or mask WGRF_WIN_PATH_VALID shl 8) cmp cx, WIF_INVALIDATE ; invalidate the window ? jne unlockWin ; no, skip it call InvalWholeWin ; invalidate the whole window unlockWin: pop bx ; get handle for window call MemUnlockV ; unlock, disown block .leave ret WinSetNullTransform endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GSetNullTransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Replace transformation with null (identity) transformation CALLED BY: GLOBAL PASS: di - handle to GState RETURN: nothing DESTROYED: es, ax, cx PSEUDO CODE/STRATEGY: set matrix to: 1 0 0 0 1 0 0 0 1 KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 03/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GSetNullTransform proc far ; set up the right segregs, pointers push di ; save regs mov bx, di ; lock GState call MemLock ; mov es, ax ; set up segreg mov ds, ax ; set up ds too mov di, GS_TMatrix ; set up pointer to matrix clr ax ; set up values to use mov cx, (size TMatrix) / 2 ; size of store rep stosw ; init to all 0s sub di, size TMatrix ; back to beginning mov ds:[di].TM_11.WWF_int, 1 ; set scale to 1.0 mov ds:[di].TM_22.WWF_int, 1 ; call FarInvalidateFont ; invalidate font handle pop di ; restore regs ret GSetNullTransform endp GraphicsTransformUtils ends GraphicsSemiCommon segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WinGetTransform %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Retrieve transformation matrix CALLED BY: GLOBAL PASS: di - handle to GState ds:si - pointer to TransMatrix buffer RETURN: The buffer at ds:si is filled with the 6 elements, in row order. That is, for the matrix: [e11 e12 0] [e21 e22 0] [e31 e32 1] The returned array will look like: [e11 e12 e21 e22 e31 e32] DESTROYED: nothing PSEUDO CODE/STRATEGY: copy the transformation into buffer KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 01/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WinGetTransform proc far uses ds, es, cx, ax, bx .enter if FULL_EXECUTE_IN_PLACE EC < push bx > EC < mov bx, ds > EC < call ECAssertValidFarPointerXIP > EC < pop bx > endif segmov es, ds, bx call FarWinLockFromDI ; push di ; save window handle mov di, si ; es:di -> buffer mov si, W_TMatrix.TM_11 ; set up pointer to matrix mov cx, (size TransMatrix)/2 ; #words to copy rep movsw ; copy the matrix mov si, di ; restore reg sub si, size TransMatrix pop bx mov di, bx ; restore handle call MemUnlockV ; unlock the gstate .leave ret WinGetTransform endp GraphicsSemiCommon ends
25.624454
79
0.570211
532e2a7f926699dcd787e81d86cf5f415607842c
476
asm
Assembly
programs/oeis/100/A100304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/100/A100304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/100/A100304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A100304: Expansion of (1-x-6x^2)/(1-x-8x^2). ; 1,0,2,2,18,34,178,450,1874,5474,20466,64258,227986,742050,2565938,8502338,29029842,97048546,329287282,1105675650,3739973906,12585379106,42505170354,143188203202,483229566034,1628735191650,5494571719922 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,100302 ; Expansion of (1-x-6x^2)/((1-x)(1-x-8x^2)). mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 mov $0,$1
22.666667
203
0.657563
b52aa0ab8f10edc87126efbcce5224396350419a
240
asm
Assembly
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Pollen Leaves.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Pollen Leaves.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Pollen Leaves.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Map_3DC5C: dc.w word_3DC64-Map_3DC5C dc.w word_3DC64-Map_3DC5C dc.w word_3DC6C-Map_3DC5C dc.w word_3DC6C-Map_3DC5C word_3DC64: dc.w 1 dc.b $FC, 0, 0, 0, $FF, $FC word_3DC6C: dc.w 1 dc.b $FC, 0, 8, 0, $FF, $FC
26.666667
37
0.620833
86a7a93539c017dc0f41ec544756502cb8a7eac3
180
asm
Assembly
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AlignChk/movdqa_test_intel64.asm
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AlignChk/movdqa_test_intel64.asm
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AlignChk/movdqa_test_intel64.asm
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
; ; Copyright (C) 2007-2012 Intel Corporation. ; SPDX-License-Identifier: MIT ; .code movdqa_test PROC movdqa xmm0, [rcx] movdqa xmm0, [rcx+1] RET movdqa_test ENDP end
12
44
0.694444
10c0563ba38774324c29504b424b99f08eef08af
15,013
asm
Assembly
Object/Optimized/kernel/Mouse.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
16
2018-04-24T20:50:57.000Z
2022-01-09T22:51:35.000Z
Object/Optimized/kernel/Mouse.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
1
2019-08-11T12:27:45.000Z
2019-12-02T12:25:41.000Z
Object/Optimized/kernel/Mouse.asm
collinsmichael/spartan
e0f85504d45fea8337cc3f87c357e6ac4034d3ba
[ "MIT" ]
4
2018-07-23T20:10:19.000Z
2021-09-29T17:23:15.000Z
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0 TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Device\Drivers\Mouse.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES PUBLIC _MOUSE_SPEED PUBLIC _MOUSE_FORMAT PUBLIC _MOUSE_ASSIST PUBLIC _MOUSE_WHEEL PUBLIC _Mouse PUBLIC _MOUSE_BUTTONS EXTRN __imp__ipow:PROC EXTRN __imp__pythagoras:PROC COMM _ms:BYTE:060H _velocity DD 01H DUP (?) _MOUSE_WHEEL DD 01H DUP (?) _BSS ENDS _MOUSE_SPEED DD 042H _imouse DD FLAT:_IMouse_Enable DD FLAT:_IMouse_Flush DD FLAT:_IMouse_GetSpeed DD FLAT:_IMouse_SetSpeed _MOUSE_FORMAT DD 02H _MOUSE_ASSIST DD 01H _Mouse DD FLAT:_imouse _MOUSE_BUTTONS DD 03H PUBLIC _IMouse_Enable PUBLIC _IMouse_Flush PUBLIC _MouseIsr PUBLIC _TranslateMouse PUBLIC _ActiveAssist PUBLIC _IMouse_SetSpeed PUBLIC _IMouse_GetSpeed PUBLIC _EnableMouse PUBLIC _InstallMouse ALIGN 4 _mbuf DB 04H DUP (?) _pipe DD 01H DUP (?) _mpos DB 01H DUP (?) _BSS ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _base$ = 8 ; size = 4 _size$ = 12 ; size = 4 _InstallMouse PROC ; 108 : pipe = (CPipeAsync*)base; mov eax, DWORD PTR _base$[esp-4] ; 109 : Pipe->CreateAsync(pipe, null, null); push 0 push 0 mov DWORD PTR _pipe, eax push eax mov eax, DWORD PTR _Pipe call DWORD PTR [eax+4] ; 110 : stosd(&ms, 0, sizeof(ms)/4); push 24 ; 00000018H push 0 push OFFSET _ms call _stosd ; 111 : return true; xor eax, eax add esp, 24 ; 00000018H inc eax ; 112 : } ret 0 _InstallMouse ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _base$ = 8 ; size = 4 _size$ = 12 ; size = 4 _EnableMouse PROC ; 144 : IMouse_Enable(); call _IMouse_Enable ; 145 : Device->Latch(IRQ_MOUSE, MouseIsr); mov eax, DWORD PTR _Device push OFFSET _MouseIsr push 44 ; 0000002cH call DWORD PTR [eax] pop ecx ; 146 : return true; xor eax, eax pop ecx inc eax ; 147 : } ret 0 _EnableMouse ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _IMouse_GetSpeed PROC ; 23 : return MOUSE_SPEED; mov eax, DWORD PTR _MOUSE_SPEED ; 24 : } ret 0 _IMouse_GetSpeed ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _speed$ = 8 ; size = 4 _IMouse_SetSpeed PROC ; 27 : if (speed <= 5) return false; mov eax, DWORD PTR _speed$[esp-4] cmp eax, 5 jg SHORT $LN1@IMouse_Set xor eax, eax ; 30 : } ret 0 $LN1@IMouse_Set: ; 28 : MOUSE_SPEED = speed; mov DWORD PTR _MOUSE_SPEED, eax ; 29 : return true; xor eax, eax inc eax ; 30 : } ret 0 _IMouse_SetSpeed ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _log2$1$ = -4 ; size = 4 _ActiveAssist PROC ; _adj$ = ecx ; _opp$ = edx ; 32 : void ActiveAssist(int adj, int opp) { push ecx push ebx push ebp push esi push edi mov ebp, edx mov ebx, ecx ; 33 : int hyp = pythagoras(adj, opp); push ebp push ebx call DWORD PTR __imp__pythagoras ; 34 : int log2 = ipow(hyp,2); mov esi, DWORD PTR __imp__ipow mov edi, eax push 2 push edi call esi ; 35 : int log10 = ipow(hyp,10); push 10 ; 0000000aH push edi mov DWORD PTR _log2$1$[esp+44], eax call esi mov ecx, eax add esp, 24 ; 00000018H ; 36 : velocity = log10 ? velocity/2 + log2*hyp/log10 : 0; xor esi, esi test ecx, ecx je SHORT $LN3@ActiveAssi mov eax, DWORD PTR _log2$1$[esp+20] imul eax, edi cdq idiv ecx mov ecx, eax mov eax, DWORD PTR _velocity cdq sub eax, edx sar eax, 1 add ecx, eax jmp SHORT $LN13@ActiveAssi $LN3@ActiveAssi: mov ecx, esi $LN13@ActiveAssi: mov DWORD PTR _velocity, ecx ; 37 : int speed = (velocity) ? MAX(MOUSE_SPEED*velocity/128, 1) : 0; test ecx, ecx je SHORT $LN7@ActiveAssi mov eax, DWORD PTR _MOUSE_SPEED imul eax, ecx cdq and edx, 127 ; 0000007fH lea ecx, DWORD PTR [edx+eax] sar ecx, 7 cmp ecx, 1 jg SHORT $LN8@ActiveAssi xor ecx, ecx inc ecx jmp SHORT $LN8@ActiveAssi $LN7@ActiveAssi: mov ecx, esi $LN8@ActiveAssi: ; 38 : ms[1].PosX = ms[2].PosX + (hyp ? speed*adj/hyp : 0); test edi, edi je SHORT $LN9@ActiveAssi mov eax, ecx imul eax, ebx cdq idiv edi mov edx, eax jmp SHORT $LN10@ActiveAssi $LN9@ActiveAssi: mov edx, esi $LN10@ActiveAssi: mov eax, DWORD PTR _ms+64 add eax, edx mov DWORD PTR _ms+32, eax ; 39 : ms[1].PosY = ms[2].PosY + (hyp ? speed*opp/hyp : 0); test edi, edi je SHORT $LN11@ActiveAssi imul ecx, ebp mov eax, ecx cdq idiv edi mov esi, eax $LN11@ActiveAssi: mov eax, DWORD PTR _ms+68 pop edi add eax, esi pop esi pop ebp mov DWORD PTR _ms+36, eax pop ebx ; 40 : } pop ecx ret 0 _ActiveAssist ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _TranslateMouse PROC ; _adj$ = ecx ; _opp$ = edx ; 42 : void TranslateMouse(int adj, int opp) { push ebx push esi push edi ; 43 : movsd(&ms[2], &ms[1], sizeof(CMouse)/4); // old = new push 8 mov ebx, OFFSET _ms+32 mov esi, edx push ebx push OFFSET _ms+64 mov edi, ecx call _movsd ; 44 : movsd(&ms[1], &ms[0], sizeof(CMouse)/4); // new = cur push 8 push OFFSET _ms push ebx call _movsd add esp, 24 ; 00000018H ; 45 : if (MOUSE_ASSIST) ActiveAssist(adj, opp); cmp DWORD PTR _MOUSE_ASSIST, 0 je SHORT $LN2@TranslateM mov edx, esi mov ecx, edi call _ActiveAssist ; 46 : else { mov edi, DWORD PTR _ms+32 jmp SHORT $LN1@TranslateM $LN2@TranslateM: ; 47 : ms[1].PosX = ms[2].PosX + adj; add edi, DWORD PTR _ms+64 ; 48 : ms[1].PosY = ms[2].PosY + opp; mov eax, DWORD PTR _ms+68 add eax, esi mov DWORD PTR _ms+32, edi mov DWORD PTR _ms+36, eax $LN1@TranslateM: ; 49 : } ; 50 : ms[1].PosX = MIN(MAX(0, ms[1].PosX), Vesa->ResX()-1); xor esi, esi test edi, edi jns SHORT $LN5@TranslateM mov edi, esi $LN5@TranslateM: mov eax, DWORD PTR _Vesa call DWORD PTR [eax] movzx eax, ax dec eax cmp edi, eax jge SHORT $LN9@TranslateM mov eax, DWORD PTR _ms+32 test eax, eax jns SHORT $LN10@TranslateM mov eax, esi jmp SHORT $LN10@TranslateM $LN9@TranslateM: mov eax, DWORD PTR _Vesa call DWORD PTR [eax] movzx eax, ax dec eax $LN10@TranslateM: ; 51 : ms[1].PosY = MIN(MAX(0, ms[1].PosY), Vesa->ResY()-1); mov edi, DWORD PTR _ms+36 mov DWORD PTR _ms+32, eax test edi, edi jns SHORT $LN11@TranslateM mov edi, esi $LN11@TranslateM: mov eax, DWORD PTR _Vesa call DWORD PTR [eax+4] movzx eax, ax dec eax cmp edi, eax jge SHORT $LN15@TranslateM mov eax, DWORD PTR _ms+36 test eax, eax js SHORT $LN16@TranslateM mov esi, eax jmp SHORT $LN16@TranslateM $LN15@TranslateM: mov eax, DWORD PTR _Vesa call DWORD PTR [eax+4] movzx esi, ax dec esi $LN16@TranslateM: pop edi mov DWORD PTR _ms+36, esi pop esi pop ebx ; 52 : } ret 0 _TranslateMouse ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _err$ = 8 ; size = 4 _esp$ = 12 ; size = 4 _MouseIsr PROC ; 56 : //char round = (MOUSE_FORMAT & 4) ? 4 : 3; ; 57 : char round = MOUSE_BUTTONS + MOUSE_WHEEL; mov al, BYTE PTR _MOUSE_BUTTONS add al, BYTE PTR _MOUSE_WHEEL push esi ; 58 : ; 59 : mbuf[mpos = mpos % round] = inb(PS2_DATA); movsx esi, al movzx eax, BYTE PTR _mpos cdq idiv esi push 96 ; 00000060H mov BYTE PTR _mpos, dl call _inb mov dl, BYTE PTR _mpos pop ecx movzx ecx, dl ; 60 : ; 61 : mpos = ++mpos % round; inc dl mov BYTE PTR _mbuf[ecx], al movzx eax, dl cdq idiv esi mov BYTE PTR _mpos, dl ; 62 : if (mpos == 0) { test dl, dl jne $LN1@MouseIsr ; 63 : int status = mbuf[0]; mov eax, DWORD PTR _mbuf push ebx movzx ebx, al ; 64 : if (status & 0x08) { test bl, 8 je $LN11@MouseIsr ; 65 : int x = (unsigned char)mbuf[1]; ; 66 : int y = (unsigned char)mbuf[2]; movzx esi, BYTE PTR _mbuf+2 push edi ; 67 : int w = (signed char)mbuf[3]; ; 68 : if (MOUSE_WHEEL == 0) w = 0; mov edi, DWORD PTR _MOUSE_WHEEL neg edi movzx edx, ah movsx eax, BYTE PTR _mbuf+3 sbb edi, edi and edi, eax ; 69 : ; 70 : if (MOUSE_FORMAT & 1) { test BYTE PTR _MOUSE_FORMAT, 1 je SHORT $LN9@MouseIsr ; 71 : if (status & 0x10) x |= 0xFFFFFE00; mov eax, -512 ; fffffe00H test bl, 16 ; 00000010H je SHORT $LN8@MouseIsr or edx, eax $LN8@MouseIsr: ; 72 : if (status & 0x20) y |= 0xFFFFFE00; test bl, 32 ; 00000020H je SHORT $LN7@MouseIsr or esi, eax $LN7@MouseIsr: ; 73 : if (status & 0x40) x |= 0x100; mov eax, 256 ; 00000100H test bl, 64 ; 00000040H je SHORT $LN6@MouseIsr or edx, eax $LN6@MouseIsr: ; 74 : if (status & 0x80) y |= 0x100; test bl, bl jns SHORT $LN2@MouseIsr ; 75 : } else { jmp SHORT $LN16@MouseIsr $LN9@MouseIsr: ; 76 : if (status & 0x10) x |= 0xFFFFFF00; mov eax, -256 ; ffffff00H test bl, 16 ; 00000010H je SHORT $LN3@MouseIsr or edx, eax $LN3@MouseIsr: ; 77 : if (status & 0x20) y |= 0xFFFFFF00; test bl, 32 ; 00000020H je SHORT $LN2@MouseIsr $LN16@MouseIsr: or esi, eax $LN2@MouseIsr: ; 78 : } ; 79 : ; 80 : ms[0].DeltaX = (w) ? 0 : +x; mov ecx, edi ; 81 : ms[0].DeltaY = (w) ? 0 : -y; ; 82 : ms[0].Wheel = w; mov DWORD PTR _ms+8, edi neg ecx ; 83 : ms[0].Left = (status & 1); mov eax, ebx sbb ecx, ecx neg esi not ecx and ecx, edx mov edx, edi neg edx mov DWORD PTR _ms+24, ecx sbb edx, edx and eax, 1 mov DWORD PTR _ms+12, eax not edx ; 84 : ms[0].Right = (status & 2)/2; mov eax, ebx and edx, esi sar eax, 1 ; 85 : ms[0].Middle = (status & 4)/4; sar ebx, 2 and eax, 1 and ebx, 1 mov DWORD PTR _ms+28, edx mov DWORD PTR _ms+20, eax mov DWORD PTR _ms+16, ebx ; 86 : ; 87 : /* ; 88 : Logger("\n [info] Mouse ["); ; 89 : for (int i = 0; i < round; i++) Logger(" %X ", mbuf[i]); ; 90 : Logger(" ]\n"); ; 91 : Logger("x=%d y=%d w=%d b=%s%s%s\n", ; 92 : ms[0].DeltaX, ; 93 : ms[0].DeltaY, ; 94 : ms[0].Wheel, ; 95 : ms[0].Left ? "L" : "-", ; 96 : ms[0].Middle ? "M" : "-", ; 97 : ms[0].Right ? "R" : "-"); ; 98 : */ ; 99 : ; 100 : TranslateMouse(ms[0].DeltaX, ms[0].DeltaY); call _TranslateMouse ; 101 : Pipe->WriteAsync(pipe, (u8*)&ms[1], sizeof(CMouse)); mov eax, DWORD PTR _Pipe push 32 ; 00000020H push OFFSET _ms+32 push DWORD PTR _pipe call DWORD PTR [eax+32] add esp, 12 ; 0000000cH pop edi jmp SHORT $LN15@MouseIsr $LN11@MouseIsr: ; 102 : } else ++mpos; mov BYTE PTR _mpos, 1 $LN15@MouseIsr: pop ebx $LN1@MouseIsr: ; 103 : } ; 104 : return esp; mov eax, DWORD PTR _esp$[esp] pop esi ; 105 : } ret 0 _MouseIsr ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _IMouse_Flush PROC ; 115 : inb(PS2_STATUS); push 100 ; 00000064H call _inb ; 116 : inb(PS2_DATA); push 96 ; 00000060H call _inb ; 117 : outb(PIC2_CMD, EOI); push 32 ; 00000020H push 160 ; 000000a0H call _outb ; 118 : outb(PIC1_CMD, EOI); push 32 ; 00000020H push 32 ; 00000020H call _outb add esp, 24 ; 00000018H ; 119 : } ret 0 _IMouse_Flush ENDP _TEXT ENDS ; Function compile flags: /Ogspy ; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\mouse.c _TEXT SEGMENT _IMouse_Enable PROC ; 122 : inb(PS2_STATUS); push 100 ; 00000064H call _inb ; 123 : inb(PS2_DATA); push 96 ; 00000060H call _inb pop ecx pop ecx ; 124 : Ps2Send(0xF2); Ps2Read(); mov cl, 242 ; 000000f2H call _Ps2Send call _Ps2Read ; 125 : char old = Ps2Read(); call _Ps2Read ; 126 : ; 127 : Ps2Send(0xF3); Ps2Read(); mov cl, 243 ; 000000f3H call _Ps2Send call _Ps2Read ; 128 : Ps2Send(0xC8); Ps2Read(); mov cl, 200 ; 000000c8H call _Ps2Send call _Ps2Read ; 129 : Ps2Send(0xF3); Ps2Read(); mov cl, 243 ; 000000f3H call _Ps2Send call _Ps2Read ; 130 : Ps2Send(0x64); Ps2Read(); mov cl, 100 ; 00000064H call _Ps2Send call _Ps2Read ; 131 : Ps2Send(0xF3); Ps2Read(); mov cl, 243 ; 000000f3H call _Ps2Send call _Ps2Read ; 132 : Ps2Send(0x50); Ps2Read(); mov cl, 80 ; 00000050H call _Ps2Send call _Ps2Read ; 133 : Ps2Send(0xF2); Ps2Read(); mov cl, 242 ; 000000f2H call _Ps2Send call _Ps2Read ; 134 : if (Ps2Read() == 3) MOUSE_WHEEL = 1; call _Ps2Read cmp al, 3 jne SHORT $LN1@IMouse_Ena mov DWORD PTR _MOUSE_WHEEL, 1 $LN1@IMouse_Ena: ; 135 : if (MOUSE_WHEEL) Logger(" Mouse Wheel Detected\n"); ; 136 : MOUSE_BUTTONS = 3; ; 137 : ; 138 : ms[2].PosX = ms[1].PosX = ms[0].PosX = Vesa->ResX()/2; mov eax, DWORD PTR _Vesa mov DWORD PTR _MOUSE_BUTTONS, 3 call DWORD PTR [eax] movzx ecx, ax shr ecx, 1 mov DWORD PTR _ms, ecx mov DWORD PTR _ms+32, ecx mov DWORD PTR _ms+64, ecx ; 139 : ms[2].PosY = ms[1].PosY = ms[0].PosY = Vesa->ResY()/2; mov ecx, DWORD PTR _Vesa call DWORD PTR [ecx+4] movzx ecx, ax ; 140 : return true; xor eax, eax shr ecx, 1 inc eax mov DWORD PTR _ms+4, ecx mov DWORD PTR _ms+36, ecx mov DWORD PTR _ms+68, ecx ; 141 : } ret 0 _IMouse_Enable ENDP _TEXT ENDS END
19.7021
88
0.594218
3afc8acf95e6ef247ea71d8065e52f0593bb86ff
336
asm
Assembly
programs/oeis/021/A021280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021280: Decimal expansion of 1/276. ; 0,0,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0 add $0,1 mov $1,10 pow $1,$0 sub $1,6 mul $1,7 div $1,23 add $1,4 div $1,84 mod $1,10 mov $0,$1
24
199
0.541667
c2d092d8865dd8213e096687f222be3a5283b599
581
asm
Assembly
programs/oeis/001/A001817.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001817.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001817.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001817: G.f.: Sum_{n>0} x^n/(1-x^(3n)) = Sum_{n>=0} x^(3n+1)/(1-x^(3n+1)). ; 1,1,1,2,1,1,2,2,1,2,1,2,2,2,1,3,1,1,2,3,2,2,1,2,2,2,1,4,1,2,2,3,1,2,2,2,2,2,2,4,1,2,2,3,1,2,1,3,3,3,1,4,1,1,2,4,2,2,1,3,2,2,2,4,2,2,2,3,1,4,1,2,2,2,2,4,2,2,2,5,1,2,1,4,2,2,1,4,1,2,4,3,2,2,2,3,2,3,1,5 mov $4,2 mov $6,$0 lpb $4 mov $0,$6 mov $3,0 sub $4,1 add $0,$4 sub $0,1 mov $5,0 lpb $0 mov $7,$0 sub $0,1 add $3,3 div $7,$3 add $5,$7 lpe mov $2,$4 mov $7,$5 lpb $2 mov $1,$7 sub $2,1 lpe lpe lpb $6 sub $1,$7 mov $6,0 lpe add $1,1 mov $0,$1
17.606061
201
0.462995
6e7fc30bd85e97bac2575f7bfabc947de4e7b4f0
2,705
asm
Assembly
VS/CSHARP/asm-dude-vsix/Resources/examples/nn.asm
YellowAfterlife/asm-dude
7aa36587e0480ce0e497f3f0f68853657fad7ecb
[ "MIT" ]
4,075
2016-02-22T08:55:36.000Z
2022-03-29T20:24:27.000Z
VS/CSHARP/asm-dude-vsix/Resources/examples/nn.asm
YellowAfterlife/asm-dude
7aa36587e0480ce0e497f3f0f68853657fad7ecb
[ "MIT" ]
126
2016-02-29T07:48:27.000Z
2022-03-27T12:47:21.000Z
VS/CSHARP/asm-dude-vsix/Resources/examples/nn.asm
YellowAfterlife/asm-dude
7aa36587e0480ce0e497f3f0f68853657fad7ecb
[ "MIT" ]
113
2016-02-22T08:55:33.000Z
2022-03-28T16:14:40.000Z
.intel_syntax noprefix .align 16 .data # __m256i maskA = _mm256_set_epi8(0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29); maskA: .long 0x0C0D0E0F .long 0x08090A0B .long 0x04050607 .long 0x00010203 .long 0x0E0F .long 0x0A0B0C0D .long 0x08090405 .long 0x00010405 .align 64 .text # Code section .global nn_gas nn_gas: ; constants mov eax, 32 vmovd XMM6, eax VBROADCASTSS ZMM6, XMM6 ; parameters mov r10, 10 ; r10 (const) = previous states ptr mov r11, 11 ; r11 (const) = new states ptr mov r12, 32 ; r12 (const) = number of neurons, has to be multiple of 16 mov r13, 13 ; r13 (const) = weights ptr ; code mov r15, r12 ; r15 (const) = number of times loop1 and loop2 has to be taken shl r15, 5 ; divide by 16 mov r9, r15 ; init loop2 counter; r9 = loop2 counter mov rbx, r13 ; init weights ptr; rbx = weight ptr index mov rcx, r11 ; init new state ptr; rcx = previouis state ptr index #region Loop2 code loop2: ; loop2 calculates the new state of all neurons: r9 = loop2 counter mov rdx, r10 ; init previous state ptr mov rax, r15 ; init loop1 counter; rax is loop1 counter vxorpd zmm0, zmm0 ; zmm0 is the new state; set new state of 16 neurons to zero #region Loop1 code loop1: ; loop calculates new state of 16 neurons vmovdqa32 zmm10, zmmword ptr [rbx + (0 * 64)] vmovdqa32 zmm11, zmmword ptr [rbx + (1 * 64)] vmovdqa32 zmm12, zmmword ptr [rbx + (2 * 64)] vmovdqa32 zmm13, zmmword ptr [rbx + (3 * 64)] vmovdqa32 zmm14, zmmword ptr [rbx + (4 * 64)] vmovdqa32 zmm15, zmmword ptr [rbx + (5 * 64)] vmovdqa32 zmm16, zmmword ptr [rbx + (6 * 64)] vmovdqa32 zmm17, zmmword ptr [rbx + (7 * 64)] vp4dpwssds zmm0, zmm10, xmmword ptr [rdx + (0 * 64)] vp4dpwssds zmm0, zmm14, xmmword ptr [rdx + (1 * 64)] add rdx, 2*64 ; update previous state ptr add rbx, 8*64 ; update weights ptr dec rax ; decrement loop1 counter jnz loop1 #endregion Loop1 code #region Do something with the new state, eq threshold it ;zmm0 contains the new state of 16 neurons but these states are i32 and have to be reduced to i16 vcvtdq2ps zmm0, zmm0 ; convert i32 to Single-Precision FP vmovd xmm1, r12d vbroadcastss zmm2, xmm1 vdivps zmm0, zmm0, zmm2 ; divide by the number of neurons vcvtps2dq zmm0, zmm0 ; convert Single-Precision FP to i32 vpxor zmm1, zmm1 vmovdqa32 ymm1, ymmword ptr [maskA] vpermb zmm0, zmm1, zmm0 vmovdqa32 ymmword ptr [rcx], ymm0 ; store the new states #endregion add rcx, 32 ; update new state ptr dec r9 ; decrement loop2 counter jnz loop2 #endregion Loop2 code ret jmp loop1 label1: label1: label2: label1: .att_syntax
25.761905
98
0.678004
6e05beec176c32153e8aa253dd1407eb032291df
695
asm
Assembly
oeis/190/A190105.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/190/A190105.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/190/A190105.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A190105: a(n) = (3*A002145(n) - 1)/4. ; Submitted by Jon Maiga ; 2,5,8,14,17,23,32,35,44,50,53,59,62,77,80,95,98,104,113,122,125,134,143,149,158,167,170,179,188,197,203,212,230,233,248,260,269,275,284,287,314,323,329,332,347,350,359,365,368,374,377,392,410,422,428,440,449,455,464,473,482,485,494,512,518,539,545,554,557,563,590,608,617,620,629,644,647,662,665,680,683,689,710,725,728,737,743,764,773,779,788,797,815,818,827,842,863,872,878,890 mov $2,36 mul $2,$0 mov $4,2 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,4 lpe mov $0,$4 div $0,4 mul $0,3 add $0,2
30.217391
381
0.657554
ad47e7c875ac9c770510c1d9b24edc507397ad43
1,166
asm
Assembly
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Miniboss Log.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Miniboss Log.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Miniboss Log.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Map_186B18: dc.w word_186B28-Map_186B18 dc.w word_186B36-Map_186B18 dc.w word_186B4A-Map_186B18 dc.w word_186B58-Map_186B18 dc.w word_186B6C-Map_186B18 dc.w word_186B7A-Map_186B18 dc.w word_186B8E-Map_186B18 dc.w word_186B9C-Map_186B18 word_186B28: dc.w 2 dc.b $EC, $B, 0, 0, $FF, $F4 dc.b $C, 8, 0, $C, $FF, $F4 word_186B36: dc.w 3 dc.b $EC, $D, 8, $F, $FF, $F4 dc.b $FC, 5, 8, $17, 0, 4 dc.b $FC, $A, 8, $1B, $FF, $EC word_186B4A: dc.w 2 dc.b $F4, $E, 0, $24, $FF, $EC dc.b $F4, 2, 0, $30, 0, $C word_186B58: dc.w 3 dc.b 4, $D, $18, $F, $FF, $F4 dc.b $F4, 5, $18, $17, 0, 4 dc.b $EC, $A, $18, $1B, $FF, $EC word_186B6C: dc.w 2 dc.b $F4, $B, $10, 0, $FF, $F4 dc.b $EC, 8, $10, $C, $FF, $F4 word_186B7A: dc.w 3 dc.b 4, $D, $10, $F, $FF, $EC dc.b $F4, 5, $10, $17, $FF, $EC dc.b $EC, $A, $10, $1B, $FF, $FC word_186B8E: dc.w 2 dc.b $F4, $E, 8, $24, $FF, $F4 dc.b $F4, 2, 8, $30, $FF, $EC word_186B9C: dc.w 3 dc.b $EC, $D, 0, $F, $FF, $EC dc.b $FC, 5, 0, $17, $FF, $EC dc.b $FC, $A, 0, $1B, $FF, $FC
31.513514
40
0.491424
b81ed3316b453a2b7810dd58e27fe545f28b6b8e
733
asm
Assembly
oeis/159/A159656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/159/A159656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/159/A159656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A159656: Numerator of Hermite(n, 18/19). ; Submitted by Christian Krause ; 1,36,574,-31320,-2370804,5103216,8742318216,292616324064,-33649488597360,-2901533477298624,114199171722894816,25060241888120278656,-4801113850900597056,-217294775817306515769600,-7777548674818481563737984,1916423841667868925104549376,153222110448327436639046144256,-16622532242807434103802093198336,-2479059344383838585044527729738240,126780292629707224551409004934998016,38571826620926957793491555574209104896,-442121667219601841956650030589843574784,-600742415246400200375358366717392817125376 add $0,1 mov $3,11 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $1,361 mul $2,36 mul $3,-1 mul $3,$0 mul $3,2 lpe mov $0,$1 div $0,3971
36.65
497
0.814461
9292b109234f4865dbfb6b2dfc9edd3f3d881bc7
3,680
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1845.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_1845.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_1845.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 %r11 push %r12 push %r8 push %rax push %rsi // Faulty Load lea addresses_WT+0x10dd6, %r12 nop nop nop nop sub %r8, %r8 movb (%r12), %r11b lea oracles, %r12 and $0xff, %r11 shlq $12, %r11 mov (%r12,%r11,1), %r11 pop %rsi pop %rax pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
87.619048
2,999
0.663587
93c33842926e11795989fb74d6d8c35248d4156e
459
asm
Assembly
programs/oeis/168/A168011.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168011.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168011.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168011: a(n) = Sum of all numbers of divisors of all numbers < (n+1)^2. ; 5,20,45,84,131,198,273,368,473,602,731,894,1061,1252,1457,1686,1917,2186,2453,2752,3065,3402,3743,4122,4509,4918,5345,5804,6249,6754,7251,7780,8333,8906,9477,10104,10729,11386,12047,12758,13445,14202,14945 add $0,2 pow $0,2 sub $0,2 seq $0,77597 ; Coefficient of x in the n-th Moebius polynomial (A074586), M(n,x), which satisfies M(n,-1)=mu(n) the Moebius function of n. add $0,1
51
207
0.721133
83df8f21662402564a141791b49928a18b0270ed
6,649
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1091.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1091.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1091.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0xbcf8, %rbx and %r11, %r11 movl $0x61626364, (%rbx) nop nop nop add %r8, %r8 lea addresses_A_ht+0xa774, %rax add $49266, %r11 mov $0x6162636465666768, %r8 movq %r8, (%rax) nop nop and $7097, %r8 lea addresses_D_ht+0xeb18, %rsi lea addresses_A_ht+0x1aca4, %rdi nop nop nop nop nop xor $39027, %rax mov $89, %rcx rep movsb nop nop nop nop inc %rdi lea addresses_UC_ht+0x194b8, %r13 nop nop nop and %rsi, %rsi mov (%r13), %rdi nop nop nop cmp %rax, %rax lea addresses_WC_ht+0x15cd8, %r8 nop nop cmp %rbx, %rbx movups (%r8), %xmm0 vpextrq $1, %xmm0, %r13 nop nop nop cmp $63198, %rcx lea addresses_A_ht+0xd0b8, %rdi clflush (%rdi) nop cmp %rax, %rax mov (%rdi), %si add $12855, %rbx lea addresses_WT_ht+0xae2e, %rdi clflush (%rdi) nop nop xor $57025, %rbx mov $0x6162636465666768, %r13 movq %r13, (%rdi) nop inc %rcx lea addresses_WC_ht+0x59b, %rsi lea addresses_D_ht+0x121d4, %rdi nop nop xor $36563, %r11 mov $93, %rcx rep movsb nop cmp %rcx, %rcx lea addresses_normal_ht+0x5ee8, %rax clflush (%rax) nop nop nop nop nop and %rdi, %rdi mov $0x6162636465666768, %rbx movq %rbx, %xmm4 and $0xffffffffffffffc0, %rax vmovntdq %ymm4, (%rax) nop nop sub $61560, %rsi lea addresses_UC_ht+0x10eb8, %rsi lea addresses_UC_ht+0x2de8, %rdi nop xor %rbx, %rbx mov $90, %rcx rep movsq dec %rsi lea addresses_WT_ht+0x16ab8, %r13 nop nop and %r11, %r11 mov (%r13), %eax add %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rbx push %rcx push %rdx // Faulty Load lea addresses_US+0x1dab8, %rcx nop nop inc %rbx mov (%rcx), %r15 lea oracles, %r10 and $0xff, %r15 shlq $12, %r15 mov (%r10,%r15,1), %r15 pop %rdx pop %rcx pop %rbx pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
39.577381
2,999
0.657242
42b2b97c2609ea2f94c71e2d20801d9cf4ed34b8
708
asm
Assembly
src/arch/i386/bootloader/multiboot_header.asm
TinyKern/TinyKernel
63c9e88798a55bc3211573b9c1015cffbd64be2b
[ "Apache-2.0" ]
6
2021-08-15T17:37:30.000Z
2022-03-11T02:25:47.000Z
src/arch/i386/bootloader/multiboot_header.asm
TinyKern/TinyKernel
63c9e88798a55bc3211573b9c1015cffbd64be2b
[ "Apache-2.0" ]
4
2021-07-14T21:42:32.000Z
2021-08-18T16:17:34.000Z
src/arch/i386/bootloader/multiboot_header.asm
TinyKern/TinyKernel
63c9e88798a55bc3211573b9c1015cffbd64be2b
[ "Apache-2.0" ]
1
2021-07-12T20:19:25.000Z
2021-07-12T20:19:25.000Z
; @file multiboot_header.asm ; @author Owen Boreham ([email protected]) ; @version 0.1.2 ; @date 2021-08-23 ; ; @copyright Copyright (c) 2021 TinyKernel ; This file is part of TinyKernel which is released ; under Apache License 2.0. See file LICENSE or go ; to https://www.apache.org/licenses/LICENSE-2.0 for ; full license details. section .text header_start: dd 0xe85250d6 ; magic number dd 0 ; protected mode code dd header_end - header_start ; header size ; Checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; required end tag dw 0 ; type dw 0 ; flags dw 8 ; size header_end:
27.230769
67
0.641243
315cc64acf359761b851626dfe6fe1fd94e20a80
1,003
asm
Assembly
unittests/ASM/TwoByte/0F_C0.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/TwoByte/0F_C0.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/TwoByte/0F_C0.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "RAX": "0x4142434445464749", "RBX": "0x5152535455565759", "RCX": "0x6162636465666769", "RDX": "0x7172737475767779", "R15": "0x49", "R14": "0x5759", "R13": "0x65666769", "R12": "0x7172737475767779" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov r10, 0xe0000000 mov rax, 0x4142434445464748 mov [r10 + 8 * 0], rax mov rax, 0x5152535455565758 mov [r10 + 8 * 1], rax mov rax, 0x6162636465666768 mov [r10 + 8 * 2], rax mov rax, 0x7172737475767778 mov [r10 + 8 * 3], rax mov rax, 0x01 xadd byte [r10 + 8 * 0], al mov rax, 0x01 xadd word [r10 + 8 * 1], ax mov rax, 0x01 xadd dword [r10 + 8 * 2], eax mov rax, 0x01 xadd qword [r10 + 8 * 3], rax mov rax, [r10 + 8 * 0] mov rbx, [r10 + 8 * 1] mov rcx, [r10 + 8 * 2] mov rdx, [r10 + 8 * 3] mov r15, 0x00 xadd byte [r10 + 8 * 0], r15b mov r14, 0x00 xadd word [r10 + 8 * 1], r14w mov r13, 0x00 xadd dword [r10 + 8 * 2], r13d mov r12, 0x00 xadd qword [r10 + 8 * 3], r12 hlt
18.574074
32
0.599202
eb5c1ef54705987ee4c55fbd76214553da9b3f6e
192
asm
Assembly
programs/oeis/121/A121378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/121/A121378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/121/A121378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A121378: EBCDIC codes for decimal digits. ; 240,241,242,243,244,245,246,247,248,249 mov $2,2 mov $3,$0 mov $1,3 mov $0,4 lpb $0,1 add $1,$2 add $2,6 mul $1,2 sub $0,1 lpe add $1,$3
12.8
43
0.609375
53946e0f72addaa1963521fd80874f9ed1bf3047
8,357
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1481.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_1481.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_1481.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0xa849, %r8 xor %rdi, %rdi mov (%r8), %r12d nop nop nop nop sub %rcx, %rcx lea addresses_A_ht+0xc2c9, %r10 nop nop add $56901, %r9 movb $0x61, (%r10) nop dec %rcx lea addresses_A_ht+0x1e471, %rsi lea addresses_A_ht+0xbb8f, %rdi nop nop nop nop nop dec %r10 mov $4, %rcx rep movsl xor $65071, %r12 lea addresses_WC_ht+0x4361, %r10 nop add %rsi, %rsi movl $0x61626364, (%r10) nop nop and $28133, %r10 lea addresses_D_ht+0x1d049, %rsi lea addresses_A_ht+0x1d549, %rdi clflush (%rsi) nop nop nop nop cmp %r9, %r9 mov $47, %rcx rep movsq nop nop nop sub %r15, %r15 lea addresses_WC_ht+0x60f9, %rcx nop nop nop nop nop xor %r9, %r9 movl $0x61626364, (%rcx) nop nop nop inc %rcx lea addresses_WT_ht+0x1ec49, %rdi nop sub %r9, %r9 mov (%rdi), %r10w nop nop nop nop lfence lea addresses_D_ht+0x1cda9, %r8 clflush (%r8) nop nop and $6193, %r12 and $0xffffffffffffffc0, %r8 vmovaps (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r9 sub %rcx, %rcx lea addresses_WC_ht+0x16a49, %rsi lea addresses_normal_ht+0x16879, %rdi nop add %r15, %r15 mov $98, %rcx rep movsb nop nop nop nop nop sub %rcx, %rcx lea addresses_normal_ht+0x11c49, %rdi nop nop xor %r15, %r15 mov $0x6162636465666768, %r12 movq %r12, %xmm3 vmovups %ymm3, (%rdi) nop and $62556, %r12 lea addresses_WC_ht+0x1a849, %rdi nop nop nop nop sub %r8, %r8 mov $0x6162636465666768, %r15 movq %r15, %xmm6 vmovups %ymm6, (%rdi) nop nop nop nop xor $43456, %r12 lea addresses_D_ht+0x19849, %r12 nop nop nop add %r9, %r9 mov (%r12), %edi and $59338, %rsi lea addresses_normal_ht+0xb049, %rsi nop nop nop nop sub $47044, %rcx mov $0x6162636465666768, %r9 movq %r9, (%rsi) nop nop nop nop dec %rdi lea addresses_normal_ht+0xcc49, %rsi lea addresses_normal_ht+0x139, %rdi clflush (%rdi) nop nop nop nop xor %r15, %r15 mov $9, %rcx rep movsq and $18796, %rdi lea addresses_A_ht+0x1049, %rsi lea addresses_normal_ht+0x1de9d, %rdi nop nop nop nop sub $63925, %r15 mov $80, %rcx rep movsq nop nop nop cmp %r12, %r12 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %r9 push %rbp push %rbx push %rdi push %rdx // Store mov $0x1687ca0000000e49, %rdi nop dec %r9 mov $0x5152535455565758, %rbx movq %rbx, (%rdi) nop nop nop nop nop and $27480, %rdi // Store mov $0x449, %rbp nop nop nop sub %r10, %r10 mov $0x5152535455565758, %rdi movq %rdi, (%rbp) nop and $34722, %r10 // Faulty Load lea addresses_WT+0xc849, %r8 nop nop sub $48483, %rdi movb (%r8), %dl lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rbp pop %r9 pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 5, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.391473
2,999
0.657054
6343abb738536adf51b588d7fd41914d90493850
1,830
asm
Assembly
programs/oeis/158/A158593.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/158/A158593.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158593.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158593: a(n) = 38*n^2 + 1. ; 1,39,153,343,609,951,1369,1863,2433,3079,3801,4599,5473,6423,7449,8551,9729,10983,12313,13719,15201,16759,18393,20103,21889,23751,25689,27703,29793,31959,34201,36519,38913,41383,43929,46551,49249,52023,54873,57799,60801,63879,67033,70263,73569,76951,80409,83943,87553,91239,95001,98839,102753,106743,110809,114951,119169,123463,127833,132279,136801,141399,146073,150823,155649,160551,165529,170583,175713,180919,186201,191559,196993,202503,208089,213751,219489,225303,231193,237159,243201,249319,255513,261783,268129,274551,281049,287623,294273,300999,307801,314679,321633,328663,335769,342951,350209,357543,364953,372439,380001,387639,395353,403143,411009,418951,426969,435063,443233,451479,459801,468199,476673,485223,493849,502551,511329,520183,529113,538119,547201,556359,565593,574903,584289,593751,603289,612903,622593,632359,642201,652119,662113,672183,682329,692551,702849,713223,723673,734199,744801,755479,766233,777063,787969,798951,810009,821143,832353,843639,855001,866439,877953,889543,901209,912951,924769,936663,948633,960679,972801,984999,997273,1009623,1022049,1034551,1047129,1059783,1072513,1085319,1098201,1111159,1124193,1137303,1150489,1163751,1177089,1190503,1203993,1217559,1231201,1244919,1258713,1272583,1286529,1300551,1314649,1328823,1343073,1357399,1371801,1386279,1400833,1415463,1430169,1444951,1459809,1474743,1489753,1504839,1520001,1535239,1550553,1565943,1581409,1596951,1612569,1628263,1644033,1659879,1675801,1691799,1707873,1724023,1740249,1756551,1772929,1789383,1805913,1822519,1839201,1855959,1872793,1889703,1906689,1923751,1940889,1958103,1975393,1992759,2010201,2027719,2045313,2062983,2080729,2098551,2116449,2134423,2152473,2170599,2188801,2207079,2225433,2243863,2262369,2280951,2299609,2318343,2337153,2356039 mov $1,$0 pow $1,2 mul $1,38 add $1,1
228.75
1,760
0.843716
02439219044aedeedb99f9df433fd2a19e63a955
414
asm
Assembly
programs/oeis/317/A317137.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/317/A317137.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/317/A317137.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A317137: a(n) is the number of nonzero triangular numbers <= n-th prime. ; 1,2,2,3,4,4,5,5,6,7,7,8,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,14,14,14,15,15,16,16,16,16,17,17,17,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,27 seq $0,6005 ; The odd prime numbers together with 1. sub $0,1 mov $1,1 lpb $0 add $1,1 sub $0,$1 lpe mov $0,$1
34.5
222
0.644928
dd8a4b1fa1bb41c6a63f1848ed146862f4a73238
502
asm
Assembly
ScrollModus/_code/GlobalCode/hardscrollaligned.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
ScrollModus/_code/GlobalCode/hardscrollaligned.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
ScrollModus/_code/GlobalCode/hardscrollaligned.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
hardScrollWholeColorRamAligned SUBROUTINE ;----------------------------------------------------------------- ;-- harscroll speedcode ;----------------------------------------------------------------- ; perhaps we can spare one if moving on x ldx #39 .reloop1 Y SET 0 hardscrollmodi1 REPEAT DISPLAYAREAROWS lda $4444,x sta $4444,x Y SET Y + 1 REPEND Y SET 0 hardscrollmodi2 REPEAT DISPLAYAREAROWS lda $4444,x sta $4444,x Y SET Y + 1 REPEND dex bmi .noreloop1 jmp .reloop1 .noreloop1 rts
19.307692
67
0.549801
c340b7768e357dbe214c5c66546aaedb36b676ff
318
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fam9511.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fam9511.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fam9511.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC cm32_sdcc_f32_fam9511 PUBLIC cm32_sdcc_fam9511_f32 EXTERN cm32_sdcc_fsread1, m32_f32_fam9511 .cm32_sdcc_f32_fam9511 call cm32_sdcc_fsread1 jp m32_f32_fam9511 EXTERN cm32_sdcc_fsread1, m32_fam9511_f32 .cm32_sdcc_fam9511_f32 call cm32_sdcc_fsread1 jp m32_fam9511_f32
16.736842
41
0.845912
02f795fb7d89febfa33322fb8155855bd3fe6347
5,653
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_439.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_439.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_439.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 %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x8714, %rsi lea addresses_WT_ht+0x14f5f, %rdi nop cmp $39070, %r13 mov $109, %rcx rep movsw nop dec %rcx lea addresses_normal_ht+0x130ae, %rsi lea addresses_WC_ht+0x599f, %rdi nop xor $19524, %rax mov $60, %rcx rep movsl cmp $31809, %rcx lea addresses_normal_ht+0xc55f, %rsi lea addresses_UC_ht+0x1c65b, %rdi nop cmp $45883, %r9 mov $50, %rcx rep movsw nop nop add %rax, %rax lea addresses_D_ht+0x7df, %rax nop cmp %r11, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%rax) nop nop dec %rsi lea addresses_UC_ht+0x1205f, %r11 nop dec %rcx movb (%r11), %r9b nop nop nop nop nop cmp $41063, %rsi lea addresses_normal_ht+0x1c013, %r9 nop nop nop nop nop xor $30538, %rdi mov (%r9), %esi nop nop nop add %r11, %r11 lea addresses_normal_ht+0x1a5f, %rsi nop nop add $36365, %r13 movl $0x61626364, (%rsi) nop nop add %r11, %r11 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %rbp push %rcx push %rdx // Faulty Load lea addresses_UC+0xbf5f, %rbp clflush (%rbp) cmp $8699, %r14 movb (%rbp), %dl lea oracles, %rcx and $0xff, %rdx shlq $12, %rdx mov (%rcx,%rdx,1), %rdx pop %rdx pop %rcx pop %rbp pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'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 */
45.224
2,999
0.661773
9834695a4e39b833dd555af8923f910926495222
323
asm
Assembly
oeis/021/A021073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021073: Decimal expansion of 1/69. ; Submitted by Jon Maiga ; 0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2,3,1,8,8,4,0,5,7,9,7,1,0,1,4,4,9,2,7,5,3,6,2 add $0,1 mov $2,10 pow $2,$0 div $2,69 mov $0,$2 mod $0,10
29.363636
199
0.55418
4283c121572250d249073f25645a5e32de18a89e
928
nasm
Assembly
Projetos/F-Assembly/src/nasm/factorial.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
null
null
null
Projetos/F-Assembly/src/nasm/factorial.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
77
2018-03-09T12:33:31.000Z
2018-05-18T10:42:22.000Z
Projetos/F-Assembly/src/nasm/factorial.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
null
null
null
leaw $R0, %A movw (%A), %D ; SE FOR 0 OU 1 ;-------------------------------------------- decw %D leaw $UM,%A jle %D nop leaw $R0, %A movw (%A), %D leaw $R6, %A movw %D, (%A) leaw $R7, %A movw %D, (%A) movw (%A), %S decw %S movw %S, (%A) leaw $R7, %A movw (%A), %S leaw $R4, %A movw %S, (%A) while1: ; MULTIPLICADOR ;---------------------------------------------- while2: leaw $R6, %A movw (%A), %D leaw $R1, %A addw (%A), %D, %S leaw $R1, %A movw %S, (%A) leaw $R4, %A movw (%A), %S decw %S movw %S, (%A) leaw $while2, %A jg %S nop ;--------------------------------------------------- leaw $R1, %A movw (%A), %S leaw $R6, %A movw %S, (%A) leaw $R7, %A movw (%A), %S decw %S movw %S, (%A) decw %S leaw $R4, %A movw %S, (%A) leaw $END, %A jle %S nop leaw $while1, %A jmp nop UM: leaw $1, %A movw %A, %S leaw $R1, %A movw %S, (%A) END:
11.180723
52
0.386853
ed8118c85cc0a0d7451451819689d38e5591d076
412
asm
Assembly
oeis/080/A080893.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/080/A080893.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/080/A080893.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A080893: E.g.f. exp(x*C(x)) = exp((1-sqrt(1-4*x))/2), where C(x) is the g.f. of the Catalan numbers A000108. ; Submitted by Jon Maiga ; 1,1,3,19,193,2721,49171,1084483,28245729,848456353,28875761731,1098127402131,46150226651233,2124008553358849,106246577894593683,5739439214861417731,332993721039856822081,20651350143685984386753 trn $0,1 seq $0,1517 ; Bessel polynomials y_n(x) (see A001498) evaluated at 2.
58.857143
195
0.774272
c3b9fbb5621a5f478efb1794fb155b56ba274229
14,112
asm
Assembly
s2/music-original/85 - MTZ.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s2/music-original/85 - MTZ.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s2/music-original/85 - MTZ.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
MTZ_Header: smpsHeaderStartSong 2, 1 smpsHeaderVoice MTZ_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $EA smpsHeaderDAC MTZ_DAC smpsHeaderFM MTZ_FM1, $F4, $0E smpsHeaderFM MTZ_FM2, $18, $0A smpsHeaderFM MTZ_FM3, $0C, $14 smpsHeaderFM MTZ_FM4, $0C, $16 smpsHeaderFM MTZ_FM5, $0C, $16 smpsHeaderPSG MTZ_PSG1, $E8, $06, $00, $00 smpsHeaderPSG MTZ_PSG2, $DC, $08, $00, $00 smpsHeaderPSG MTZ_PSG3, $00, $02, $00, fTone_03 ; PSG1 Data MTZ_PSG1: smpsJump MTZ_Jump02 ; PSG2 Data MTZ_PSG2: smpsAlterPitch $0C smpsJump MTZ_Jump02 ; FM1 Data MTZ_FM1: dc.b nRst, $30, nRst smpsLoop $00, $04, MTZ_FM1 MTZ_Loop09: dc.b nRst, $30, nRst smpsLoop $00, $04, MTZ_Loop09 smpsAlterPitch $0C smpsSetvoice $03 smpsModSet $01, $02, $01, $7F dc.b nB2, $60 smpsModSet $01, $01, $08, $06 dc.b smpsNoAttack, nC3 smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C, nRst, $30 smpsAlterVol $F0 smpsModSet $0C, $01, $04, $04 smpsSetvoice $03 MTZ_Loop0A: dc.b nRst, $30, nRst, $0C smpsModSet $01, $01, $0C, $0C dc.b nEb3, $0C smpsModOff dc.b smpsNoAttack, nE3, $0C, nD3, $0C, nC3, $18 smpsModSet $01, $01, $10, $06 dc.b nEb3, $06 smpsModOff dc.b smpsNoAttack, nE3, $06, nRst, $30, nRst, $0C, nRst, $30, nRst, $0C, nE3 dc.b nF3, nE3 smpsModSet $01, $01, $06, $18 dc.b nFs3, $0C smpsModOff dc.b smpsNoAttack, nG3, $0C smpsModSet $01, $01, $06, $18 dc.b nEb3, $0C smpsModOff dc.b smpsNoAttack, nE3, $0C smpsModSet $01, $01, $05, $18 dc.b nB2, $0C smpsModOff dc.b smpsNoAttack, nC3, $0C, nRst, $18 smpsLoop $00, $02, MTZ_Loop0A dc.b nRst, $30, nRst, nRst, nRst, nRst, nRst smpsAlterPitch $F4 smpsModSet $06, $01, $08, $04 smpsSetvoice $00 smpsAlterVol $0A dc.b nG5, $0A, nRst, $02, nG5, $06, nRst smpsAlterVol $FB smpsAlterPitch $0C smpsSetvoice $03 dc.b nG2, $06, nBb2, nC3, nEb3, $12, nC3, $05, nRst, $07, nBb2, $06 dc.b nC3, $08, nRst, $0A smpsAlterPitch $F4 smpsSetvoice $00 smpsAlterVol $05 dc.b nG5, $0A, nRst, $02, nG5, $06, nRst smpsAlterVol $FB smpsAlterPitch $0C smpsSetvoice $03 dc.b nG2, $06, nBb2, nC3, nEb3, $12, nC3, $06, nRst, nBb2, $06, nC3 dc.b $05, nRst, $0D, nRst, $30, nRst, nRst, nRst smpsAlterPitch $F4 smpsSetvoice $00 smpsAlterVol $05 dc.b nG5, $0A, nRst, $02, nG5, $06, nRst smpsAlterVol $FB smpsAlterPitch $0C smpsSetvoice $03 dc.b nG2, $06, nBb2, nC3, nEb3, $12, nC3, $06, nRst, nBb2, $06, nC3 dc.b $05, nRst, $0D smpsAlterVol $FB smpsSetvoice $03 smpsModSet $01, $04, $F4, $78 dc.b nG4, $30 smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $04 dc.b smpsNoAttack, $0C smpsAlterVol $F0 smpsModOff smpsAlterPitch $F4 smpsJump MTZ_Loop09 MTZ_Jump02: smpsModSet $06, $01, $02, $04 MTZ_Loop0B: dc.b nRst, $30, nRst smpsLoop $00, $04, MTZ_Loop0B MTZ_Loop0C: dc.b nRst, $30, nRst smpsLoop $00, $07, MTZ_Loop0C MTZ_Loop0D: dc.b nRst, $30, nRst, $0C, nE3, $18, nD3, $0C, nC3, $18, nE3, $0C dc.b nRst, $30, nRst, $0C, nRst, $30, nRst, $0C, nE3, nF3, nE3, nG3 dc.b $18, nE3, $18, nC3, $18, nRst, $18 smpsLoop $00, $02, MTZ_Loop0D MTZ_Loop0E: dc.b nRst, $30, nRst smpsLoop $00, $09, MTZ_Loop0E smpsJump MTZ_Loop0C ; FM3 Data MTZ_FM3: smpsSetvoice $01 smpsAlterPitch $F4 dc.b nRst, $30, nRst, nRst, nRst, nF3, $0C, smpsNoAttack MTZ_Loop05: smpsModSet $01, $01, $06, $08 dc.b nFs3, $04 smpsModOff dc.b smpsNoAttack, nG3, $08, smpsNoAttack smpsModSet $01, $01, $FA, $08 dc.b nFs3, $04 smpsModOff dc.b smpsNoAttack, nF3, $08 smpsLoop $00, $06, MTZ_Loop05 dc.b nRst, $24 smpsSetvoice $00 smpsAlterPitch $0C MTZ_Loop06: dc.b nRst, $18, nG4, $0B, nRst, $0D, nA4, $0C, $0B, nRst, $19, nC5 dc.b $0C, $0B, nRst, $0D, nG4, $30, smpsNoAttack, $0C, nRst, $18, nG4, $0B dc.b nRst, $0D, nA4, $0C, $0B, nRst, $19, nC5, $0C, $0B, nRst, $0D dc.b nC5, $30, smpsNoAttack, $0C smpsLoop $00, $04, MTZ_Loop06 MTZ_Loop07: dc.b nD6, $06, nC6, nBb5, nA5 smpsLoop $00, $08, MTZ_Loop07 dc.b nC5, $0C, $06, nRst, $30, nRst, $12, nBb4, $0C, nC6, nC6, $06 dc.b nRst, $30, nRst, $1E MTZ_Loop08: dc.b nD6, $06, nC6, nBb5, nA5 smpsLoop $00, $08, MTZ_Loop08 dc.b nC6, $0C, $06, nRst, $30, nRst, $1E, nD5, $06, nFs5, nCs5, nF5 dc.b nC5, nE5, nB4, nEb5, nB4, nD5, nBb4, nD5, nA4, nCs5, nAb4, nC5 smpsJump MTZ_Loop06 ; FM4 Data MTZ_FM4: smpsSetvoice $01 smpsAlterPitch $F4 dc.b nRst, $30, nRst, nRst, nRst, nBb3, $0C, smpsNoAttack MTZ_Loop03: smpsModSet $01, $01, $06, $08 dc.b nB3, $04 smpsModOff dc.b smpsNoAttack, nC4, $08, smpsNoAttack smpsModSet $01, $01, $FA, $08 dc.b nB3, $04 smpsModOff dc.b smpsNoAttack, nBb3, $08 smpsLoop $00, $06, MTZ_Loop03 dc.b nRst, $24 smpsAlterPitch $0C smpsSetvoice $00 MTZ_Loop04: dc.b nRst, $18, nE4, $0B, nRst, $0D, nFs4, $0C, $0B, nRst, $19, nA4 dc.b $0C, $0B, nRst, $0D, nE4, $30, smpsNoAttack, $0C, nRst, $18, nE4, $0B dc.b nRst, $0D, nFs4, $0C, $0B, nRst, $19, nA4, $0C, $0B, nRst, $0D dc.b nG4, $30, smpsNoAttack, $0C smpsLoop $00, $04, MTZ_Loop04 smpsPan panLeft, $00 smpsAlterPitch $F4 smpsSetvoice $02 dc.b nF3, $30, smpsNoAttack, $30, nA3, nF3 smpsAlterPitch $0C smpsSetvoice $00 dc.b nC5, $0A, nRst, $02, nC5, $06, nRst, nRst, $30, nRst, $0C, nBb3 dc.b nC5, $0A, nRst, $02, nC5, $06, nRst, nRst, $30, nRst, $18 smpsAlterPitch $F4 smpsSetvoice $02 dc.b nF3, $30, smpsNoAttack, $30, nA3, nF3 smpsAlterPitch $0C smpsPan panCenter, $00 smpsSetvoice $00 dc.b nC5, $0A, nRst, $02, nC5, $06, nRst, nRst, $30, nRst, nRst, nRst dc.b $18 smpsJump MTZ_Loop04 ; FM5 Data MTZ_FM5: smpsSetvoice $00 smpsModSet $0C, $01, $FC, $04 MTZ_Loop01: dc.b nRst, $60 smpsLoop $00, $04, MTZ_Loop01 MTZ_Loop02: dc.b nRst, $18, nC4, $0B, nRst, $0D, nD4, $0C, $0B, nRst, $19, nF4 dc.b $0C, $0B, nRst, $0D, nC4, $30, smpsNoAttack, $0C, nRst, $18, nC4, $0B dc.b nRst, $0D, nD4, $0C, $0B, nRst, $19, nF4, $0C, $0B, nRst, $0D dc.b nE4, $30, smpsNoAttack, $0C smpsLoop $00, $04, MTZ_Loop02 smpsPan panRight, $00 smpsAlterPitch $F4 smpsSetvoice $02 dc.b nBb3, $30, smpsNoAttack, $30, nD4, nBb3 smpsAlterPitch $0C smpsSetvoice $00 dc.b nC4, $0A, nRst, $02, nC4, $06, nRst, nRst, $30, nRst, $0C, nBb3 dc.b nC4, $0A, nRst, $02, nC4, $06, nRst, nRst, $30, nRst, $18 smpsAlterPitch $F4 smpsSetvoice $02 dc.b nBb3, $30, smpsNoAttack, $30, nD4, nBb3 smpsAlterPitch $0C smpsPan panCenter, $00 smpsSetvoice $00 dc.b nC4, $0A, nRst, $02, nC4, $06, nRst, nRst, $30, nRst, $18, nRst dc.b $30, nRst smpsJump MTZ_Loop02 ; FM2 Data MTZ_FM2: smpsSetvoice $04 dc.b nRst, $30, nRst, nRst, nRst, nRst, nRst smpsAlterVol $FC dc.b nRst, nRst, $0C, nA0, nBb0, nB0 smpsAlterVol $04 MTZ_Jump00: smpsNoteFill $09 dc.b nC1, $0C, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 dc.b nC1 smpsNoteFill $00 dc.b nC1, nA0, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 dc.b nC1, $06, nC2 smpsNoteFill $00 dc.b nA0, $0C, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 smpsNoteFill $00 dc.b nC1, nA0, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 smpsNoteFill $00 dc.b nC1, nEb1, nD1, nCs1 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, $0C, nC1, $06, nC1, $06 dc.b $0C, nC1, nC1, nC1 smpsNoteFill $00 dc.b nC1, nA0, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 dc.b nC1, $06, nC2 smpsNoteFill $00 dc.b nA0, $0C, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 smpsNoteFill $00 dc.b nC1, nA0, nBb0, nB0 smpsNoteFill $09 dc.b nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1, nC1 smpsNoteFill $00 dc.b nC1, nEb1, nD1, nCs1, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0 dc.b nD1, nD1, nD1, nD1, nBb0, nBb0, nBb0, nBb0, nC1, nC1, $06 smpsSetvoice $05 dc.b nRst, $06, nG2, $06, nBb2, nC3, nEb3, $12, nC3, $06, nRst, nBb2 dc.b $06, nC3, $05, nRst, $01 smpsSetvoice $04 dc.b nBb0, $06, nB0, nC1, nRst, nC1, nRst smpsSetvoice $05 dc.b nG2, $06, nBb2, nC3, nEb3, $12, nC3, $06, nRst, nBb2, $06, nC3 dc.b $05, nRst, $01 smpsSetvoice $04 dc.b nB0, $0C, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0, nBb0, nD1, nD1 dc.b nD1, nD1, nBb0, nBb0, nBb0, nBb0, nC1, nC1, $06 smpsSetvoice $05 dc.b nRst, $06, nG2, $06, nBb2, nC3, nEb3, $12, nC3, $06, nRst, nBb2 dc.b $06, nC3, $05, nRst, $01 smpsSetvoice $04 dc.b nBb0, $06, nB0, nC1, $06, nRst, $30, nRst, $2A smpsJump MTZ_Jump00 MTZ_Call00: dc.b dKick, $0C, dLowTom, dSnare, dKick, dKick, dFloorTom, dSnare, dScratch, $04, $06, $02 dc.b dKick, $0C, dLowTom, dSnare, dKick, dKick, dFloorTom, dSnare, dClap smpsReturn ; DAC Data MTZ_DAC: smpsCall MTZ_Call00 smpsLoop $00, $02, MTZ_DAC MTZ_Loop00: smpsCall MTZ_Call00 smpsLoop $00, $0B, MTZ_Loop00 dc.b dKick, $0C, dLowTom, dSnare, dKick, dKick, dFloorTom, dSnare, dScratch, $04, $06, $02 dc.b dKick, $0C, nRst, nRst, nRst, nRst, nRst, nRst, dClap smpsJump MTZ_Loop00 ; PSG3 Data MTZ_PSG3: smpsPSGform $E7 MTZ_Jump01: dc.b nRst, $30, nRst, nRst, nRst, $24, nAb5, $0C smpsJump MTZ_Jump01 MTZ_Voices: ; Voice $00 ; $3C ; $31, $52, $50, $30, $52, $53, $52, $53, $08, $00, $08, $00 ; $04, $00, $04, $00, $10, $0B, $10, $0D, $19, $80, $0B, $80 smpsVcAlgorithm $04 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $03, $05, $05, $03 smpsVcCoarseFreq $00, $00, $02, $01 smpsVcRateScale $01, $01, $01, $01 smpsVcAttackRate $13, $12, $13, $12 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $08, $00, $08 smpsVcDecayRate2 $00, $04, $00, $04 smpsVcDecayLevel $00, $01, $00, $01 smpsVcReleaseRate $0D, $00, $0B, $00 smpsVcTotalLevel $80, $0B, $80, $19 ; Voice $01 ; $3A ; $01, $07, $01, $01, $8E, $8E, $8D, $53, $0E, $0E, $0E, $03 ; $00, $00, $00, $01, $1F, $FF, $1F, $0F, $17, $28, $27, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $00 smpsVcCoarseFreq $01, $01, $07, $01 smpsVcRateScale $01, $02, $02, $02 smpsVcAttackRate $13, $0D, $0E, $0E smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $03, $0E, $0E, $0E smpsVcDecayRate2 $01, $00, $00, $00 smpsVcDecayLevel $00, $01, $0F, $01 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $80, $27, $28, $17 ; Voice $02 ; $3A ; $01, $40, $01, $31, $1F, $1F, $1F, $1F, $0B, $04, $04, $04 ; $02, $04, $03, $02, $5F, $1F, $5F, $2F, $18, $05, $11, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $03, $00, $04, $00 smpsVcCoarseFreq $01, $01, $00, $01 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $04, $04, $04, $0B smpsVcDecayRate2 $02, $03, $04, $02 smpsVcDecayLevel $02, $05, $01, $05 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $80, $11, $05, $18 ; Voice $03 ; $29 ; $16, $14, $58, $54, $1F, $1F, $DF, $1F, $00, $00, $01, $00 ; $00, $00, $03, $00, $06, $06, $06, $0A, $1B, $1C, $16, $00 smpsVcAlgorithm $01 smpsVcFeedback $05 smpsVcUnusedBits $00 smpsVcDetune $05, $05, $01, $01 smpsVcCoarseFreq $04, $08, $04, $06 smpsVcRateScale $00, $03, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $01, $00, $00 smpsVcDecayRate2 $00, $03, $00, $00 smpsVcDecayLevel $00, $00, $00, $00 smpsVcReleaseRate $0A, $06, $06, $06 smpsVcTotalLevel $00, $16, $1C, $1B ; Voice $04 ; $08 ; $09, $70, $30, $00, $1F, $1F, $5F, $5F, $12, $0E, $0A, $0A ; $00, $04, $04, $03, $2F, $2F, $2F, $2F, $25, $30, $0E, $84 smpsVcAlgorithm $00 smpsVcFeedback $01 smpsVcUnusedBits $00 smpsVcDetune $00, $03, $07, $00 smpsVcCoarseFreq $00, $00, $00, $09 smpsVcRateScale $01, $01, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0A, $0A, $0E, $12 smpsVcDecayRate2 $03, $04, $04, $00 smpsVcDecayLevel $02, $02, $02, $02 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $84, $0E, $30, $25 ; Voice $05 ; $08 ; $09, $70, $30, $00, $1F, $1F, $5F, $5F, $12, $0E, $0A, $0A ; $00, $04, $04, $03, $2F, $2F, $2F, $2F, $25, $30, $13, $84 smpsVcAlgorithm $00 smpsVcFeedback $01 smpsVcUnusedBits $00 smpsVcDetune $00, $03, $07, $00 smpsVcCoarseFreq $00, $00, $00, $09 smpsVcRateScale $01, $01, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0A, $0A, $0E, $12 smpsVcDecayRate2 $03, $04, $04, $00 smpsVcDecayLevel $02, $02, $02, $02 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $84, $13, $30, $25
30.745098
91
0.575751
cfc8b23fe7c36d4c16eb4db4096846e9727c483d
56
asm
Assembly
src/memdisk/memdisk.asm
anna328p/IncludeOS
b9858b8e6842d6c0cc227a34a015e7e8de9438ab
[ "Apache-2.0" ]
3,673
2015-12-01T22:14:02.000Z
2019-03-22T03:07:20.000Z
src/memdisk/memdisk.asm
anna328p/IncludeOS
b9858b8e6842d6c0cc227a34a015e7e8de9438ab
[ "Apache-2.0" ]
960
2015-12-01T20:40:36.000Z
2019-03-22T13:21:21.000Z
src/memdisk/memdisk.asm
AndreasAakesson/IncludeOS
891b960a0a7473c08cd0d93a2bba7569c6d88b48
[ "Apache-2.0" ]
357
2015-12-02T09:32:50.000Z
2019-03-22T09:32:34.000Z
USE32 ALIGN 4096 section .diskdata incbin "testdisk"
11.2
20
0.767857
0bcfab6fefe27c6e04b8d912b199c04e1223548c
935
asm
Assembly
programs/oeis/113/A113968.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/113/A113968.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/113/A113968.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A113968: Series expansion of Farey rational polynomial based on A112627. ; 0,0,1,1,15,17,239,273,3823,4369,61167,69905,978671,1118481,15658735,17895697,250539759,286331153,4008636143,4581298449,64138178287,73300775185,1026210852591,1172812402961,16419373641455,18764998447377 mov $2,$0 mov $5,$0 lpb $2 mov $0,$5 sub $2,1 sub $0,$2 mov $3,2 mov $13,$0 lpb $3 mov $0,$13 sub $3,1 add $0,$3 sub $0,1 mov $9,$0 mov $11,2 lpb $11 sub $11,1 add $0,$11 sub $0,1 mov $4,$0 gcd $4,2 mov $6,4 pow $6,$0 div $6,5 mul $4,$6 mov $7,$4 mov $12,$11 lpb $12 mov $10,$7 sub $12,1 lpe lpe lpb $9 mov $9,0 sub $10,$7 lpe mov $7,$10 mov $8,$3 lpb $8 sub $8,1 mov $14,$7 lpe lpe lpb $13 mov $13,0 sub $14,$7 lpe mov $7,$14 div $7,6 add $1,$7 lpe
17
202
0.521925
7ceed43a08500cf1f7d72391945dda57a98ff8ee
303
asm
Assembly
programs/oeis/133/A133186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/133/A133186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/133/A133186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A133186: Period 4: repeat [1, 2, 1, -4]. ; 1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4,1,2,1,-4 add $0,1 mov $2,$0 lpb $0 sub $0,1 sub $2,$0 mod $0,4 add $1,$2 lpe mov $0,$1
23.307692
172
0.468647
78dbe86102405d21ca08e7538efabdf629601343
779
asm
Assembly
programs/oeis/032/A032943.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/032/A032943.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/032/A032943.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A032943: Numbers whose base-8 representation Sum_{i=0..m} d(i)*8^(m-i) has d(i)=0 for all odd i. ; 1,2,3,4,5,6,7,8,16,24,32,40,48,56,64,65,66,67,68,69,70,71,128,129,130,131,132,133,134,135,192,193,194,195,196,197,198,199,256,257,258,259,260,261,262,263,320,321,322,323,324,325,326 mov $11,$0 mov $13,$0 add $13,1 lpb $13,1 mov $0,$11 sub $13,1 sub $0,$13 mov $7,$0 mov $9,2 lpb $9,1 clr $0,7 mov $0,$7 sub $9,1 add $0,$9 sub $0,4 mov $3,$0 sub $3,2 trn $3,2 mov $1,$3 add $3,1 add $4,$3 lpb $4,1 mod $4,8 sub $1,$4 lpe mov $10,$9 lpb $10,1 mov $8,$1 sub $10,1 lpe lpe lpb $7,1 mov $7,0 sub $8,$1 lpe mov $1,$8 mul $1,7 add $1,1 add $12,$1 lpe mov $1,$12
17.311111
183
0.516046
74050efcffc7debc79d092a188268bbb58399467
984
asm
Assembly
books/nand2tetris/ch07/PointerTest.asm
luksamuk/study
7a4062cb894be52d786852b4729ac6a4e784b5a3
[ "MIT" ]
3
2019-03-13T02:16:44.000Z
2020-03-05T21:14:18.000Z
books/nand2tetris/ch07/PointerTest.asm
luksamuk/study
7a4062cb894be52d786852b4729ac6a4e784b5a3
[ "MIT" ]
1
2019-03-15T00:52:59.000Z
2019-03-15T00:53:54.000Z
books/nand2tetris/ch07/PointerTest.asm
luksamuk/study
7a4062cb894be52d786852b4729ac6a4e784b5a3
[ "MIT" ]
1
2020-03-05T21:14:29.000Z
2020-03-05T21:14:29.000Z
@256 D=A @SP M=D @300 D=A @LCL M=D @400 D=A @ARG M=D @3000 D=A @THIS M=D @3010 D=A @THAT M=D @3030 D=A @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @3 D=A @R14 M=D @R13 D=M @R14 A=M M=D @3040 D=A @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @3 D=A @1 A=D+A D=A @R14 M=D @R13 D=M @R14 A=M M=D @32 D=A @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @THIS D=M @2 A=D+A D=A @R14 M=D @R13 D=M @R14 A=M M=D @46 D=A @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @THAT D=M @6 A=D+A D=A @R14 M=D @R13 D=M @R14 A=M M=D @3 D=M @SP A=M M=D @SP M=M+1 @3 D=A @1 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @SP M=M-1 A=M D=M @R13 A=M D=D+A @SP A=M M=D @SP M=M+1 @THIS D=M @2 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @SP M=M-1 A=M D=M @R13 A=M D=D-A @SP A=M M=D @SP M=M+1 @THAT D=M @6 A=D+A D=M @SP A=M M=D @SP M=M+1 @SP M=M-1 A=M D=M @R13 M=D @SP M=M-1 A=M D=M @R13 A=M D=D+A @SP A=M M=D @SP M=M+1 (-INTERNAL.HACKVM.HALT) @-INTERNAL.HACKVM.HALT 0;JMP 0
4.619718
23
0.53252
37688c1a71d3a8c0cdb957623143f0587070b55c
2,860
asm
Assembly
45/runtime/rt/grputil.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/rt/grputil.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/rt/grputil.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
TITLE GRPUTIL - iAPX 88/86 GRAPHICS UTILITY ROUTINES ;*** ; GRPUTIL - iAPX 88/86 GRAPHICS UTILITY ROUTINES ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; Graphics utility routines. ; ;****************************************************************************** INCLUDE switch.inc INCLUDE rmacros.inc ; Runtime Macro Defintions USESEG _BSS USESEG GR_TEXT INCLUDE seg.inc ;segment definitions sBegin _BSS ; ;**************************************************************************** ; External low-level function vectors ;**************************************************************************** ; externW b$SetAttr externW B$VXMIN ;defined in GWDATA.ASM externW B$VXMAX ;defined in GWDATA.ASM externW B$VYMIN ;defined in GWDATA.ASM externW B$VYMAX ;defined in GWDATA.ASM sEnd _BSS assumes CS,GR_TEXT sBegin GR_TEXT ;low-level routines: externNP B$GETFBC externNP B$ERR_FC PAGE SUBTTL GRAPHICS SUPPORT ROUTINES ;*** ; ;B$CLRATR PROCESS COLOR ATTRIBUTE FOR GRAPHICS STATEMENTS ; ;Purpose: ; This routine processes a color attribute for several graphics ; statements. If the color attribute is defaulted, the default color ; is put into AL by a call to the OEM dependent routine B$GETFBC. Next ; OEM routine SetAttr is called to set the current graphics attribute ; to the specified color. If the color was invalid, SetAttr returns ; carry set and this routine issues a function call error. ; ;Entry: ; AL=color attribute or AX=-1 if default color ; ;Exit: ; AL=valid color attribute ; ;Modifies: ; AX,BX ; ;**** cProc B$CLRATR,<PUBLIC,NEAR> cBegin ;PROCESS COLOR ATTRIBUTE CMP AX,-1 ;IS DEFAULT COLOR NEEDED? JNE SET_COLOR ;NO: USE SPECIFIED VALUE STC ;SET CARRY CALL B$GETFBC ;GET FG/BG COLORS SET_COLOR: CALL [b$SetAttr] ;SET ATTRIBUTE JC FC_ERROR ;ABORT IF INVALID COLOR cEnd FC_ERROR: JMP B$ERR_FC ;ILLEGAL FUNCTION CALL SUBTTL COMPILER INTERFACE ROUTINES PAGE ;*** ; ;B$INVIEW Determine whether (x,y) coordinates within viewport boundaries ; ;Purpose: ; Test the (x,y) coordinates in (CX,DX) against the current viewport ; boundaries. The carry flag is cleared if either ; coordinate was outside the viewport boundary. ; ;Entry: ; CX=x coordinate DX=y coordinate ; ;Exit: ; carry set if no coords changed, clear if either coord changed ; ;Modifies: none ; ;**** cProc B$INVIEW,<PUBLIC,NEAR> cBegin ;See if x is in VIEW CMP CX,B$VXMIN ;Is it off the left of the viewport JL OUTVIEW ;Yes, out of VIEW CMP CX,B$VXMAX ;Is it off the right of the viewport JG OUTVIEW ;Yes, out of VIEW CMP DX,B$VYMIN ;Is it off the top of the viewport JL OUTVIEW ;Yes, out of VIEW CMP DX,B$VYMAX ;Is it off the bottom of the viewport JG OUTVIEW ;Yes, out of VIEW STC ;no, is in VIEW RET OUTVIEW: CLC RET cEnd nogen sEnd GR_TEXT END
22.88
79
0.665734
ee58016f98e5f040f4380e3bc6d0a041344022c8
8,645
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_564.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_564.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_564.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x556b, %r11 xor $55747, %r14 movb (%r11), %r15b nop inc %r12 lea addresses_WC_ht+0x137ab, %rdx nop nop nop nop cmp $62469, %rsi mov (%rdx), %di and $18861, %rsi lea addresses_normal_ht+0x56eb, %r14 nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %r11 movq %r11, %xmm2 vmovups %ymm2, (%r14) nop nop and $24904, %r11 lea addresses_WC_ht+0x16ab, %r15 nop and $31720, %rdx mov $0x6162636465666768, %r12 movq %r12, %xmm3 movups %xmm3, (%r15) nop inc %rdx lea addresses_WC_ht+0x193ab, %rsi lea addresses_WT_ht+0x12bab, %rdi nop nop nop nop nop sub $59345, %r11 mov $39, %rcx rep movsb nop nop nop add $8763, %r11 lea addresses_D_ht+0xdbab, %r14 nop and %rcx, %rcx mov $0x6162636465666768, %rdi movq %rdi, (%r14) nop nop nop nop nop add %r15, %r15 lea addresses_WC_ht+0x1bbab, %r11 and $49830, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm4 vmovups %ymm4, (%r11) xor $15120, %r14 lea addresses_WC_ht+0xc3ab, %rsi nop nop nop and $52977, %r12 movw $0x6162, (%rsi) nop nop nop nop cmp %r11, %r11 lea addresses_D_ht+0x5f73, %r11 clflush (%r11) nop nop sub %r15, %r15 movb (%r11), %cl nop nop nop and $21514, %r12 lea addresses_D_ht+0xbaf1, %r11 nop xor $11347, %r15 vmovups (%r11), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %r12 nop nop nop cmp %rdx, %rdx lea addresses_D_ht+0x8748, %rsi nop nop cmp %rdx, %rdx movb $0x61, (%rsi) nop nop nop nop add %rdx, %rdx lea addresses_A_ht+0x4aad, %rdx nop nop add $56142, %r12 mov $0x6162636465666768, %r11 movq %r11, %xmm3 movups %xmm3, (%rdx) nop nop nop nop nop and $54366, %rdx lea addresses_WT_ht+0x1b7eb, %rsi lea addresses_WC_ht+0x18a9f, %rdi nop cmp %r11, %r11 mov $74, %rcx rep movsw nop inc %rcx lea addresses_normal_ht+0x7c6b, %rsi lea addresses_A_ht+0x1902f, %rdi nop nop add %r12, %r12 mov $120, %rcx rep movsq nop nop nop xor $16985, %rdx lea addresses_WT_ht+0xbfab, %rsi lea addresses_UC_ht+0x1afaf, %rdi nop nop nop nop and %r15, %r15 mov $31, %rcx rep movsq nop nop sub $44030, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rax push %rbp push %rbx push %rdx push %rsi // Store lea addresses_WC+0x1596b, %rax nop nop nop nop dec %rdx mov $0x5152535455565758, %r11 movq %r11, %xmm1 movups %xmm1, (%rax) nop nop nop nop nop xor %rdx, %rdx // Store lea addresses_A+0xfbab, %rbx nop inc %rdx movl $0x51525354, (%rbx) sub $57289, %rdx // Store lea addresses_UC+0x246b, %rdx nop nop nop dec %r12 mov $0x5152535455565758, %rbp movq %rbp, %xmm4 movups %xmm4, (%rdx) nop nop xor %rbp, %rbp // Faulty Load lea addresses_A+0xfbab, %rdx nop nop cmp %rsi, %rsi movntdqa (%rdx), %xmm0 vpextrq $1, %xmm0, %rax lea oracles, %r12 and $0xff, %rax shlq $12, %rax mov (%r12,%rax,1), %rax pop %rsi pop %rdx pop %rbx pop %rbp pop %rax pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_A', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'NT': True, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'44': 3295, '00': 18530, '49': 4} 00 00 00 00 00 00 00 00 00 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 44 44 44 00 00 00 00 00 00 44 00 00 00 00 00 00 00 44 00 00 44 44 00 00 00 44 00 00 00 00 00 00 00 00 00 00 44 00 00 44 00 00 00 00 00 00 00 44 44 49 00 00 00 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 44 44 00 44 00 00 44 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 44 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 44 44 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 44 00 00 00 00 00 00 44 00 44 00 00 00 00 44 00 00 00 00 00 00 00 44 00 00 44 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 44 00 00 44 00 00 00 00 00 00 44 00 00 00 00 44 00 44 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 44 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 44 00 00 00 00 00 44 00 44 00 44 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 00 44 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 00 44 00 00 00 00 00 00 00 44 00 00 44 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 44 00 00 00 44 00 44 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 44 44 00 44 00 00 00 00 00 00 44 44 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 44 00 00 44 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 44 44 00 00 00 44 44 00 00 00 00 00 00 00 00 00 44 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 44 00 44 00 44 44 00 00 00 00 00 00 00 00 00 44 00 00 00 44 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 44 00 00 00 00 00 00 00 00 00 44 00 */
32.622642
2,999
0.655639