hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
e443f48deecaeaa0a731bb9fcc126c0f8adeb261
12,108
asm
Assembly
code/engine.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
11
2021-08-10T20:31:11.000Z
2021-12-28T11:57:03.000Z
code/engine.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
null
null
null
code/engine.asm
sinusoid-studios/rhythm-land
6471f1d7b7d885bbb898888645ac291d45125134
[ "MIT" ]
1
2021-10-02T17:49:10.000Z
2021-10-02T17:49:10.000Z
INCLUDE "constants/hardware.inc" INCLUDE "constants/hits.inc" INCLUDE "constants/engine.inc" SECTION "Engine Variables", HRAM ; Bank number of current game's hit table ; Also used for telling whether or not there are any more hits left in ; the game. No more hits = 0 hHitTableBank:: DS 1 ; Pointer to current position in current game's hit table hHitTablePointer: .low DS 1 .high DS 1 ; Keys that are used as hit keys in the current game hGameHitKeys:: DS 1 ; Keys that the player must press for the next hit hNextHitKeys:: DS 1 ; Keys that the player must press for the last hit hLastHitKeys:: DS 1 ; Number of frames until the next hit hNextHit:: .low:: DS 1 .high:: DS 1 ; Number of frames since the last hit hLastHit:: .low:: DS 1 .high:: DS 1 ; The type of rating the last hit the player made got ; See constants/engine.inc for possible values hLastHitRating:: DS 1 hHitRatingCounts: ; Number of Bad hits the player made (not on-time) hHitBadCount:: DS 1 ; Number of OK hits the player made (somewhat on-time) hHitOKCount:: DS 1 ; Number of Perfect hits the player made (right on time) hHitPerfectCount:: DS 1 ; Index of the next hit, used for disallowing making a hit multiple ; times hNextHitNumber:: DS 1 ; Index of the last hit the player made, used for determining what to do ; in games where not all of the same type of hit do the same thing hLastPlayerHitNumber:: DS 1 ; Index of the last hit the player made that wasn't a Miss or Bad, used ; for disallowing making a hit multiple times hLastRatedHitNumber:: DS 1 SECTION "Engine Initialization", ROM0 ; Prepare the engine for a game ; @param c Bank number of hit table ; @param hl Pointer to hit table EngineInit:: ; Save current bank to restore when finished ldh a, [hCurrentBank] push af ; Set hit table bank ld a, c ldh [hHitTableBank], a ld [rROMB0], a ; Save this game's hit keys ld a, [hli] ldh [hGameHitKeys], a ; Save hit table pointer ld a, l ldh [hHitTablePointer.low], a ld a, h ldh [hHitTablePointer.high], a xor a, a ; Reset hLastHitKeys call SetNextHit.skip ; Reset hit rating counts ld hl, hLastHitRating ASSERT HIT_BAD == 0 xor a, a ld [hli], a ASSERT hHitBadCount == hLastHitRating + 1 ld [hli], a ASSERT hHitOKCount == hHitBadCount + 1 ld [hli], a ASSERT hHitPerfectCount == hHitOKCount + 1 ld [hli], a ; Reset hit numbers ASSERT hNextHitNumber == hHitPerfectCount + 1 ld [hli], a dec a ; Player hasn't made any hits yet ASSERT hLastPlayerHitNumber == hNextHitNumber + 1 ld [hli], a ASSERT hLastRatedHitNumber == hLastPlayerHitNumber + 1 ld [hli], a jp BankedReturn SECTION "Engine Update", ROM0 ; Update music and SFX, advance a frame in the hit table, rate any hits ; the player makes, and call cue handlers EngineUpdate:: ; Check for game pause ldh a, [hNewKeys] bit PADB_START, a call nz, Pause call SoundUpdate ldh a, [hNewKeys] and a, a jr nz, .hit ; Check if this game uses release hits ldh a, [hGameHitKeys] bit HITB_RELEASE, a jp z, .noHit ldh a, [hReleasedKeys] and a, a jp z, .noHit .hit ; Check if these keys are hit keys in this game ld b, a ldh a, [hGameHitKeys] and a, b ; These keys do nothing in this game; ignore jp z, .noHit ; Player pressed keys: Give rating based on how on-time it was ld hl, hLastHit.high ld e, LOW(hLastHitKeys) ld d, h ; If the high byte of counter is non-zero, just count it as 2 Bads ld b, %11 ; 2 bits set -> increment by 2 ld a, [hld] and a, a ldh a, [hNextHit.high] jr z, .lastNotReallyBad ; Really far from the last hit, how's the next hit? and a, a ld l, LOW(hHitBadCount) jr nz, .countLoop ; Next hit is closer than the last (player is early) ASSERT hNextHitKeys == hLastHitKeys - 1 dec e ; de = hNextHitKeys ldh a, [hNextHit.low] ld c, a ; c = on-timeness ldh a, [hNextHitNumber] ; a = hit number jr .gotCloserHit .useLast ; de = hLastHitKeys ldh a, [hLastHit.low] ld c, a ; c = on-timeness ldh a, [hNextHitNumber] dec a ; a = hit number jr .gotCloserHit .lastNotReallyBad ; The last hit is not really far, how's the next hit? ; a = [hNextHit.high] and a, a jr nz, .useLast ; Both hits are not really far -> compare low bytes ld a, [hl] ; hl = hLastHit.low ; Check which hit (next or last) is closer ld l, LOW(hNextHit.low) cp a, [hl] ld c, a ; Save on-timeness ldh a, [hNextHitNumber] dec a ; This hit is the previous hit (doesn't affect carry) ; The last hit is closer (player is late) jr c, .gotCloserHit ; The next hit is closer (player is early) ld c, [hl] ; Get on-timeness of next hit ASSERT hNextHitKeys == hLastHitKeys - 1 dec e ; Use next hit keys instead of last hit keys inc a ; This hit is the next hit .gotCloserHit ; Save hit number ld l, a ldh [hScratch1], a ; Check if the player pressed the hit keys ld a, [de] ; de = hLastHitKeys or hNextHitKeys bit HITB_RELEASE, a res HITB_RELEASE, a ld d, a ; Save hit keys ; Release hit bit was set -> use hReleasedKeys jr nz, .release ; Release hit bit not set -> use hNewKeys ldh a, [hNewKeys] DB $C2 ; jp nz, a16 to consume the next 2 bytes .release ldh a, [hReleasedKeys] ld e, a ; Save pressed keys ; Get pressed hit keys and a, d ; d = hit keys ; a = pressed hit keys ; If there are no pressed hit keys, all the keys the player pressed ; were wrong -> skip normal rating stuff jr z, .wrong ld b, a ; Save pressed hit keys for rating count ; Check if this hit was already rated (disallow making it again) ; This comes after the block above so the values in D and E are ; correct for the block at .wrong ldh a, [hLastRatedHitNumber] cp a, l ; l = hit number ; Hit was made again, count it as Bad (negatively affect overall ; rating) ld l, LOW(hHitBadCount) jr z, .gotRatingBad ; The player has done everything right... but were they on-time? ld a, c ; Restore on-timeness ; Check for Bad cp a, HIT_OK_WINDOW / 2 ; If on-timeness is outside the OK window, give Bad ; hl = hHitBadCount ldh a, [hScratch1] ; Restore hit number jr nc, .gotRatingBad ; Check for OK ld a, c ; Restore on-timeness cp a, HIT_PERFECT_WINDOW / 2 ; If on-timeness is outside the Perfect window but inside the OK ; window, give OK ldh a, [hScratch1] ; Restore hit number ASSERT hHitOKCount == hHitBadCount + 1 inc l ; Doesn't affect carry jr nc, .gotRating ; On-timeness is inside the Perfect window -> give Perfect ASSERT hHitPerfectCount == hHitOKCount + 1 inc l .gotRating ; Bad hits don't go here; give the player a chance to do better ldh [hLastRatedHitNumber], a .gotRatingBad ldh [hLastPlayerHitNumber], a .countLoop ; Increment count of this rating of hit for each pressed hit key ld a, [hl] inc a ; Clamp the counter to max value (2^8-1) to prevent overflow jr z, .next ld [hl], a .next srl b ; b = pressed hit keys jr z, .rated jr nc, .next jr .countLoop .rated ; Set the type of rating this hit got ASSERT LOW(hHitBadCount) - LOW(hHitRatingCounts) == HIT_BAD ASSERT LOW(hHitOKCount) - LOW(hHitRatingCounts) == HIT_OK ASSERT LOW(hHitPerfectCount) - LOW(hHitRatingCounts) == HIT_PERFECT ld a, l sub a, LOW(hHitRatingCounts) ldh [hLastHitRating], a .wrong ; Give the player a Bad for every wrong key they pressed ld a, d ; d = hit keys cpl ld b, a ; b = non-hit keys ldh a, [hGameHitKeys] and a, b ; b = non-hit keys ; a = non-game hit keys and a, e ; e = pressed keys ; a = pressed non-game hit keys and a, ~HITF_RELEASE ; Can't use `res` because it doesn't change Z ; No wrong keys jr z, .noHit ld b, a ; b = wrong keys ; Set last player hit number ldh a, [hScratch1] ; This hit's number ldh [hLastPlayerHitNumber], a ld l, LOW(hHitBadCount) .wrongCountLoop inc [hl] .wrongNext srl b ; b = wrong keys jr z, .noHit jr nc, .wrongNext jr .wrongCountLoop .noHit ; Update hit timing ; Save current bank to restore when finished ldh a, [hCurrentBank] push af ; Last hit moves farther away ld hl, hLastHit inc [hl] jr nz, .noCarry inc l inc [hl] .noCarry ldh a, [hHitTableBank] and a, a ; Bank number 0 = no more hits (finished) jr z, .updateCues ; Next hit comes closer ld l, LOW(hNextHit) ld a, [hl] ; Save current value of low byte dec [hl] and a, a ; If previous value was 0, there is a borrow ; Not zero, no borrow jr nz, .updateCues ; Borrow from low byte inc l ld a, [hl] ; Save current value of high byte dec [hl] and a, a ; Both bytes were 0 -> time to move on to the next hit call z, SetNextHit .updateCues ; Check for any cues ld a, [wMusicSyncData] ASSERT SYNC_NONE == -1 inc a jr z, BankedReturn dec a ; Undo inc ld b, a ; Save for multiplying by 3 add a, a ; Bit 7 set = cue jr nc, BankedReturn ; Get a pointer to the cue's subroutine ; a = cue ID * 2 res 7, b add a, b ; a * 3 (+Bank) add a, LOW(CueRoutineTable) ld l, a ASSERT HIGH(CueRoutineTable.end - 1) == HIGH(CueRoutineTable) ld h, HIGH(CueRoutineTable) ; Call the subroutine ld a, [hli] ldh [hCurrentBank], a ld [rROMB0], a ld a, [hli] ld h, [hl] ld l, a rst JP_HL ; Fall-through BankedReturn: ; Restore caller's bank pop af ldh [hCurrentBank], a ld [rROMB0], a ret SECTION "Engine Next Hit Preparation", ROM0 SetNextHit: ; Move to next hit ld hl, hNextHitNumber inc [hl] ; Get the current position in the hit table ldh a, [hHitTableBank] ld [rROMB0], a ld hl, hHitTablePointer ld a, [hli] ld h, [hl] ld l, a ldh a, [hNextHitKeys] .skip ldh [hLastHitKeys], a ; Get next hit delay ld a, [hli] ASSERT HITS_END == 0 and a, a jr z, .hitsEnd ; Set hit timing ldh [hNextHit.low], a ld a, [hli] ldh [hNextHit.high], a ; Set hit keys ld a, [hli] ldh [hNextHitKeys], a ; Save new pointer ld a, l ldh [hHitTablePointer.low], a ld a, h ldh [hHitTablePointer.high], a xor a, a .finished ldh [hLastHit.high], a inc a ldh [hLastHit.low], a ; frames since last hit = 1 ret .hitsEnd ; No more hits ; Set hit table bank to 0 to signal no hit updates ; a = 0 ldh [hHitTableBank], a jr .finished
26.966592
77
0.574248
fefb3c1322cda051d8b33465799c23d21d429c20
1,762
asm
Assembly
examples/kernel/drivers/soc/watchdog/watchdog.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
1
2020-07-29T12:30:42.000Z
2020-07-29T12:30:42.000Z
examples/kernel/drivers/soc/watchdog/watchdog.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
null
null
null
examples/kernel/drivers/soc/watchdog/watchdog.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
null
null
null
.cseg .org 0x00 rcall main_thread ; include components interrupts ;.include "../../../../../src/kernel/drivers/{driver_name}_int.asm" ; include components definitions .include "../../../../../src/kernel/kernel_def.asm" ;.include "../../../../../src/kernel/drivers/{driver_name}_def.asm" .include "../../../../../src/kernel/drivers/device_def.asm" .include "../../../../../src/kernel/drivers/io/device_io_def.asm" .include "../../../../../src/kernel/drivers/io/out_bit_def.asm" .include "../../../../../src/kernel/drivers/io/hid/led_def.asm" .include "../../../../../src/kernel/drivers/soc/watchdog_def.asm" ;.include components data segments ;.include "../../../../../src/kernel/drivers/{driver_name}_dseg.asm" ; custom data & descriptors .dseg led1: .BYTE SZ_ST_LED ; main thread .cseg ; skip interrupts vector .org 0x14 ; include components code segments .include "../../../../../src/extensions/delay_cseg.asm" .include "../../../../../src/kernel/kernel_cseg.asm" ;.include "../../../../../src/kernel/drivers/{driver_name}_cseg.asm" .include "../../../../../src/kernel/drivers/device_cseg.asm" .include "../../../../../src/kernel/drivers/io/device_io_cseg.asm" .include "../../../../../src/kernel/drivers/io/out_bit_cseg.asm" .include "../../../../../src/kernel/drivers/io/hid/led_cseg.asm" .include "../../../../../src/kernel/drivers/soc/watchdog_cseg.asm" main_thread: ; stack initialization m_init_stack ; init watchdog m_watchdog_init_default ; init led m_led_init led1, DDRC, PORTC, (1 << BIT5) ; init global interrupts m_init_interrupts ; delay > watchdog timeout .equ DELAY_TIME = 200000 ; ~1 sec ; delay < watchdog timeout ;.equ DELAY = 20 main_thread_loop: wdr m_led_toggle led1 m_delay DELAY_TIME rjmp main_thread_loop
30.37931
68
0.664018
162fa2bca0540dea5fe561ac8bede61c13b3bc99
85
asm
Assembly
WEEK-6/2.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-6/2.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
WEEK-6/2.asm
ShruKin/Microprocessor-and-Microcontroller-Lab
279c1432f0dee01fae37dc8fcb1dcb798e5725d8
[ "MIT" ]
null
null
null
LDA 9050 SUI 30 CPI 0A JC LAST SUI 07 LAST: STA 9051 HLT
9.444444
17
0.494118
a55f9a134d8af2cdaefb84d44a0f94f9af576ead
7,149
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_3910_18.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_3910_18.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_3910_18.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 %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0xbb13, %r9 nop nop sub %rax, %rax mov (%r9), %rsi nop nop nop nop lfence lea addresses_normal_ht+0x6e5b, %r9 xor $17873, %rax movb (%r9), %r8b nop nop nop xor $9258, %rsi lea addresses_WT_ht+0x6e7b, %r10 nop cmp $26086, %r12 movw $0x6162, (%r10) nop nop nop nop sub %r9, %r9 lea addresses_WT_ht+0xc0bb, %r15 nop nop xor %rsi, %rsi mov (%r15), %r8 nop nop nop nop sub %r9, %r9 lea addresses_D_ht+0x1117b, %rsi lea addresses_A_ht+0x7b1b, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop dec %r15 mov $28, %rcx rep movsw nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0xee7b, %r10 nop nop add $10114, %r12 movb $0x61, (%r10) nop nop nop nop nop sub %r10, %r10 lea addresses_WT_ht+0xba7b, %rsi nop and $62958, %r15 mov $0x6162636465666768, %r9 movq %r9, %xmm3 and $0xffffffffffffffc0, %rsi movaps %xmm3, (%rsi) nop and %rsi, %rsi lea addresses_WC_ht+0xa7b, %rdi cmp $17614, %rcx mov (%rdi), %eax add $21371, %rax lea addresses_normal_ht+0xd49b, %r12 clflush (%r12) nop nop nop nop nop add %rax, %rax movb $0x61, (%r12) nop nop nop nop nop cmp $26660, %rcx lea addresses_UC_ht+0x1a27b, %r9 nop and $25360, %rdi mov $0x6162636465666768, %r10 movq %r10, %xmm7 movups %xmm7, (%r9) nop nop nop nop cmp %r9, %r9 lea addresses_A_ht+0x12efb, %rsi lea addresses_D_ht+0x6eb, %rdi clflush (%rsi) nop sub $27014, %r8 mov $42, %rcx rep movsb nop nop nop nop nop add $5526, %rcx lea addresses_A_ht+0x367b, %rsi lea addresses_WC_ht+0xa2a1, %rdi nop sub %r10, %r10 mov $33, %rcx rep movsb nop nop nop nop inc %r8 lea addresses_A_ht+0xae7b, %r9 xor $3628, %rsi mov (%r9), %r10d nop nop nop nop nop and %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rcx push %rdx // Faulty Load lea addresses_PSE+0x167b, %rdx nop nop nop dec %r8 movb (%rdx), %r12b lea oracles, %rdx and $0xff, %r12 shlq $12, %r12 mov (%rdx,%r12,1), %r12 pop %rdx pop %rcx pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 5, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'33': 3910} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
34.703883
2,999
0.655476
3a824682c6460bd873ae0483b585950b967d5b7b
769
asm
Assembly
nasm/helloos1.asm
etoki/testos
aa822c2f10244d4de7165cbbdb45a272779bc563
[ "MIT" ]
null
null
null
nasm/helloos1.asm
etoki/testos
aa822c2f10244d4de7165cbbdb45a272779bc563
[ "MIT" ]
null
null
null
nasm/helloos1.asm
etoki/testos
aa822c2f10244d4de7165cbbdb45a272779bc563
[ "MIT" ]
null
null
null
DB 0xeb, 0x4e, 0x90 DB "HELLOIPL" DW 512 DB 1 DW 1 DB 2 DW 224 DW 2880 DB 0xf0 DW 9 DW 18 DW 2 DD 0 DD 2880 DB 0,0,0x29 DD 0xffffffff DB "HELLO-OS " DB "FAT12 " TIMES 18 DB 0 ;....... DB 0xb8, 0x00, 0x00, 0x8e, 0xd0, 0xbc, 0x00, 0x7c DB 0x8e, 0xd8, 0x8e, 0xc0, 0xbe, 0x74, 0x7c, 0x8a DB 0x04, 0x83, 0xc6, 0x01, 0x3c, 0x00, 0x74, 0x09 DB 0xb4, 0x0e, 0xbb, 0x0f, 0x00, 0xcd, 0x10, 0xeb DB 0xee, 0xf4, 0xeb, 0xfd ; ....... DB 0x0a, 0x0a DB "hello, NASM" DB 0x0a DB 0 TIMES 0x1fe-($-$$) DB 0 DB 0x55, 0xaa ; ................. DB 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 TIMES 4600 DB 0 DB 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 TIMES 1469432 DB 0
17.477273
52
0.548765
59a2e2246af64abc4ca5135c99cd888cdde05784
620
asm
Assembly
oeis/332/A332454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/332/A332454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/332/A332454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A332454: Starting from sigma(n)+1, number of halving steps to reach 1 in '3x+1' problem, or -1 if this never happens. ; Submitted by Christian Krause ; 1,2,4,3,11,7,13,4,12,14,7,13,12,16,16,5,14,7,6,20,18,15,16,14,5,20,69,22,67,73,18,6,17,71,17,13,23,14,22,59,20,75,12,8,24,73,17,69,14,67,73,18,71,61,73,61,16,59,14,33,68,75,26,7,8,74,11,31,75,74,73,19,11,23,69,12,75,33,16,30,15,31,8,35,72,20,61,14,59,81,10,33,77,74,61,70,18,22,25,73 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). seq $0,6666 ; Number of halving steps to reach 1 in '3x+1' problem, or -1 if this never happens.
88.571429
285
0.679032
206132b80e10d571d70972aca782ddeec9579edd
1,199
asm
Assembly
02. 8085/03. Swap, Sign, Array Addition.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
02. 8085/03. Swap, Sign, Array Addition.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
02. 8085/03. Swap, Sign, Array Addition.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
; Q 3> ; a> Exchange the content of two memory locations SU 4300h [4300h] = 01h ; A = 1 [4301h] = 02h ; B = 2 . A ORG 4200h lxi h, 4300h mov b, M inx h mov c, M mov M, b dcx h mov M, c hlt . G 4200h INT ; (try '.' here) SU 4300h [4300h] -> 02h ; A = 2 [4301h] -> 01h ; B = 1 . ; b> Add a set of 8bit numbers stored in an array SU 4300h [4300h] = 03h ; A.length = 3 [4301h] = 01h ; A[0] = 0 [4302h] = 02h ; A[1] = 1 [4303h] = 03h ; A[2] = 2 . A ORG 4200h lxi h, 4300h mov b, M mvi a, 0 inx h sum_loop: add M inx h dcr b jnz sum_loop mov M, a hlt . G 4200h INT ; (try '.' here) SU 4304h [4304h] -> 03h ; Sum = 3 . ; c> Given an integer, determine if the number is +ve or -ve SU 4300h [4300h] = 0FDh ; A = -3 . A ORG 4200h lxi h, 4300h mov a, M ori 0 jz is_zero jp is_pos mvi a, 0FFh jmp finish is_zero: mvi a, 00h jmp finish is_pos: mvi a, 01h finish: inx h mov M, a hlt . G 4200h INT ; (try '.' here) SU 4301h [4301h] -> 0FFh ; sgn(A) = -1 .
12.489583
60
0.47623
913da615ad3bf36e4fc608419fd3edb4bf5040ee
1,831
asm
Assembly
libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/small/l_small_ultoa.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/small/l_small_ultoa.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/small/l_small_ultoa.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
SECTION code_clib SECTION code_l PUBLIC l_small_ultoa l_small_ultoa: ; write unsigned long decimal to ascii buffer ; ; enter : dehl = unsigned long ; bc = char *buffer ; carry set to write leading zeroes ; ; exit : de = char *buffer (one byte past last char written) ; carry reset ; ; uses : af, bc, de, hl, bc', hl' exx ld hl,$ffff ld bc,0+256 push bc push bc ld bc,-10+256 push bc push hl ld bc,-1000+256 push bc push hl ld bc,-10000+256 push bc push hl ld bc,$7a60 ; -100,000 (LSW + 256) push bc ld bc,$fffe push bc ld bc,$bec0 ; -1,000,000 (LSW + 256) push bc ld bc,$fff0 push bc ld bc,$6a80 ; -10,000,000 (LSW + 256) push bc ld bc,$ff67 push bc ld bc,$2000 ; -100,000,000 (LSW + 256) push bc ld bc,$fa0a push bc ld bc,$3600 ; -1,000,000,000 push bc ld bc,$c465 exx push de exx pop hl exx ld e,c ld d,b pop bc ; hl'hl = unsigned long ; bc'bc = first divisor ; de = char * ; carry set to write leading zeroes jr c, leading_zeroes no_leading_zeroes: call divide cp '0' jr nz, write exx pop bc exx pop bc djnz no_leading_zeroes jr write1s leading_zeroes: call divide write: ld (de),a inc de exx pop bc exx pop bc djnz leading_zeroes write1s: ld a,l add a,'0' ld (de),a inc de ret divide: ; hl'hl = dividend ; bc'bc = divisor ld a,'0'-1 divloop: inc a add hl,bc exx adc hl,bc exx jr c, divloop sbc hl,bc exx sbc hl,bc exx ret
12.455782
66
0.505188
daa09ebed0fe10be4da1f860cbcc6c1495e1a273
7,638
asm
Assembly
src/test/ref/min-fmul-16.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/min-fmul-16.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/min-fmul-16.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
/// @file /// A lightweight library for printing on the C64. /// /// Printing with this library is done by calling print_ function for each element // Commodore 64 PRG executable file .file [name="min-fmul-16.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label RASTER = $d012 .label BORDER_COLOR = $d020 .label SCREEN = $400 .label print_char_cursor = 2 .segment Code main: { .label a = $4d2 .label b = $929 .label r = $a // mulf_init() jsr mulf_init // asm sei lda #<$400 sta.z print_char_cursor lda #>$400 sta.z print_char_cursor+1 __b2: // while(*RASTER!=$ff) lda #$ff cmp RASTER bne __b2 // (*BORDER_COLOR)++; inc BORDER_COLOR // dword r = mulf16u(a, b) jsr mulf16u // (*BORDER_COLOR)--; dec BORDER_COLOR // print_ulong(r) jsr print_ulong lda #<SCREEN sta.z print_char_cursor lda #>SCREEN sta.z print_char_cursor+1 jmp __b2 } // Initialize the mulf_sqr multiplication tables with f(x)=int(x*x/4) mulf_init: { // x/2 .label c = $f // Counter used for determining x%2==0 .label sqr1_hi = 2 // Fill mulf_sqr1 = f(x) = int(x*x/4): If f(x) = x*x/4 then f(x+1) = f(x) + x/2 + 1/4 .label sqr = 6 .label sqr1_lo = 4 // Decrease or increase x_255 - initially we decrease .label sqr2_hi = $10 .label sqr2_lo = 8 //Start with g(0)=f(255) .label dir = $e ldx #0 lda #<mulf_sqr1_hi+1 sta.z sqr1_hi lda #>mulf_sqr1_hi+1 sta.z sqr1_hi+1 txa sta.z sqr sta.z sqr+1 sta.z c lda #<mulf_sqr1_lo+1 sta.z sqr1_lo lda #>mulf_sqr1_lo+1 sta.z sqr1_lo+1 __b1: // for(byte* sqr1_lo = mulf_sqr1_lo+1; sqr1_lo!=mulf_sqr1_lo+512; sqr1_lo++) lda.z sqr1_lo+1 cmp #>mulf_sqr1_lo+$200 bne __b2 lda.z sqr1_lo cmp #<mulf_sqr1_lo+$200 bne __b2 lda #$ff sta.z dir lda #<mulf_sqr2_hi sta.z sqr2_hi lda #>mulf_sqr2_hi sta.z sqr2_hi+1 ldx #-1 lda #<mulf_sqr2_lo sta.z sqr2_lo lda #>mulf_sqr2_lo sta.z sqr2_lo+1 __b5: // for(byte* sqr2_lo = mulf_sqr2_lo; sqr2_lo!=mulf_sqr2_lo+511; sqr2_lo++) lda.z sqr2_lo+1 cmp #>mulf_sqr2_lo+$1ff bne __b6 lda.z sqr2_lo cmp #<mulf_sqr2_lo+$1ff bne __b6 // *(mulf_sqr2_lo+511) = *(mulf_sqr1_lo+256) // Set the very last value g(511) = f(256) lda mulf_sqr1_lo+$100 sta mulf_sqr2_lo+$1ff // *(mulf_sqr2_hi+511) = *(mulf_sqr1_hi+256) lda mulf_sqr1_hi+$100 sta mulf_sqr2_hi+$1ff // } rts __b6: // *sqr2_lo = mulf_sqr1_lo[x_255] lda mulf_sqr1_lo,x ldy #0 sta (sqr2_lo),y // *sqr2_hi++ = mulf_sqr1_hi[x_255] lda mulf_sqr1_hi,x sta (sqr2_hi),y // *sqr2_hi++ = mulf_sqr1_hi[x_255]; inc.z sqr2_hi bne !+ inc.z sqr2_hi+1 !: // x_255 = x_255 + dir txa clc adc.z dir tax // if(x_255==0) cpx #0 bne __b8 lda #1 sta.z dir __b8: // for(byte* sqr2_lo = mulf_sqr2_lo; sqr2_lo!=mulf_sqr2_lo+511; sqr2_lo++) inc.z sqr2_lo bne !+ inc.z sqr2_lo+1 !: jmp __b5 __b2: // if((++c&1)==0) inc.z c // ++c&1 lda #1 and.z c // if((++c&1)==0) cmp #0 bne __b3 // x_2++; inx // sqr++; inc.z sqr bne !+ inc.z sqr+1 !: __b3: // BYTE0(sqr) lda.z sqr // *sqr1_lo = BYTE0(sqr) ldy #0 sta (sqr1_lo),y // BYTE1(sqr) lda.z sqr+1 // *sqr1_hi++ = BYTE1(sqr) sta (sqr1_hi),y // *sqr1_hi++ = BYTE1(sqr); inc.z sqr1_hi bne !+ inc.z sqr1_hi+1 !: // sqr = sqr + x_2 txa clc adc.z sqr sta.z sqr bcc !+ inc.z sqr+1 !: // for(byte* sqr1_lo = mulf_sqr1_lo+1; sqr1_lo!=mulf_sqr1_lo+512; sqr1_lo++) inc.z sqr1_lo bne !+ inc.z sqr1_lo+1 !: jmp __b1 } // Fast multiply two unsigned words to a double word result // Done in assembler to utilize fast addition A+X // __zp($a) unsigned long mulf16u(unsigned int a, unsigned int b) mulf16u: { .label memA = $f8 .label memB = $fa .label memR = $fc .label return = $a // *memA = a lda #<main.a sta.z memA lda #>main.a sta.z memA+1 // *memB = b lda #<main.b sta.z memB lda #>main.b sta.z memB+1 // asm lda memA sta sm1a+1 sta sm3a+1 sta sm5a+1 sta sm7a+1 eor #$ff sta sm2a+1 sta sm4a+1 sta sm6a+1 sta sm8a+1 lda memA+1 sta sm1b+1 sta sm3b+1 sta sm5b+1 sta sm7b+1 eor #$ff sta sm2b+1 sta sm4b+1 sta sm6b+1 sta sm8b+1 ldx memB sec sm1a: lda mulf_sqr1_lo,x sm2a: sbc mulf_sqr2_lo,x sta memR+0 sm3a: lda mulf_sqr1_hi,x sm4a: sbc mulf_sqr2_hi,x sta _AA+1 sec sm1b: lda mulf_sqr1_lo,x sm2b: sbc mulf_sqr2_lo,x sta _cc+1 sm3b: lda mulf_sqr1_hi,x sm4b: sbc mulf_sqr2_hi,x sta _CC+1 ldx memB+1 sec sm5a: lda mulf_sqr1_lo,x sm6a: sbc mulf_sqr2_lo,x sta _bb+1 sm7a: lda mulf_sqr1_hi,x sm8a: sbc mulf_sqr2_hi,x sta _BB+1 sec sm5b: lda mulf_sqr1_lo,x sm6b: sbc mulf_sqr2_lo,x sta _dd+1 sm7b: lda mulf_sqr1_hi,x sm8b: sbc mulf_sqr2_hi,x sta memR+3 clc _AA: lda #0 _bb: adc #0 sta memR+1 _BB: lda #0 _CC: adc #0 sta memR+2 bcc !+ inc memR+3 clc !: _cc: lda #0 adc memR+1 sta memR+1 _dd: lda #0 adc memR+2 sta memR+2 bcc !+ inc memR+3 !: // return *memR; lda.z memR sta.z return lda.z memR+1 sta.z return+1 lda.z memR+2 sta.z return+2 lda.z memR+3 sta.z return+3 // } rts } // Print a unsigned long as HEX // void print_ulong(__zp($a) unsigned long dw) print_ulong: { .label dw = $a // print_uint(WORD1(dw)) lda.z dw+2 sta.z print_uint.w lda.z dw+3 sta.z print_uint.w+1 jsr print_uint // print_uint(WORD0(dw)) lda.z dw sta.z print_uint.w lda.z dw+1 sta.z print_uint.w+1 jsr print_uint // } rts } // Print a unsigned int as HEX // void print_uint(__zp(4) unsigned int w) print_uint: { .label w = 4 // print_uchar(BYTE1(w)) ldx.z w+1 jsr print_uchar // print_uchar(BYTE0(w)) ldx.z w jsr print_uchar // } rts } // Print a char as HEX // void print_uchar(__register(X) char b) print_uchar: { // b>>4 txa lsr lsr lsr lsr // print_char(print_hextab[b>>4]) tay lda print_hextab,y // Table of hexadecimal digits jsr print_char // b&$f lda #$f axs #0 // print_char(print_hextab[b&$f]) lda print_hextab,x jsr print_char // } rts } // Print a single char // void print_char(__register(A) char ch) print_char: { // *(print_char_cursor++) = ch ldy #0 sta (print_char_cursor),y // *(print_char_cursor++) = ch; inc.z print_char_cursor bne !+ inc.z print_char_cursor+1 !: // } rts } .segment Data print_hextab: .text "0123456789abcdef" // mulf_sqr tables will contain f(x)=int(x*x/4) and g(x) = f(x-255). // <f(x) = <(( x * x )/4) .align $100 mulf_sqr1_lo: .fill $200, 0 // >f(x) = >(( x * x )/4) .align $100 mulf_sqr1_hi: .fill $200, 0 // <g(x) = <((( x - 255) * ( x - 255 ))/4) .align $100 mulf_sqr2_lo: .fill $200, 0 // >g(x) = >((( x - 255) * ( x - 255 ))/4) .align $100 mulf_sqr2_hi: .fill $200, 0
19.336709
89
0.568473
a44b9b96a8842e388688ce7ad167a1dd482cc7d7
50
asm
Assembly
tests/data_deferred/2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/data_deferred/2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/data_deferred/2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#d16 x ; = 0x0055 #d16 x - 0x5 ; = 0x0050 x = 0x55
16.666667
23
0.56
c2d26d60a61565219facecd9a52663a9700d7007
180
asm
Assembly
tests/div.asm
mantal/AVM
0eb0eb177c01bd670d3b2a1a55f5633427560f23
[ "Apache-2.0" ]
null
null
null
tests/div.asm
mantal/AVM
0eb0eb177c01bd670d3b2a1a55f5633427560f23
[ "Apache-2.0" ]
null
null
null
tests/div.asm
mantal/AVM
0eb0eb177c01bd670d3b2a1a55f5633427560f23
[ "Apache-2.0" ]
null
null
null
push int32(7) push int32(42) div assert int32(6) pop push int8(2) push int32(100000) div assert int32(50000) pop push int16(2) push float(3.14) div assert double(1.57) pop exit
9
19
0.733333
56a9f9a47c8a43d2c14ffe98c4307fa24fb32130
224
asm
Assembly
libsrc/gfx/portable/undraw.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/gfx/portable/undraw.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/gfx/portable/undraw.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_graphics PUBLIC undraw PUBLIC _undraw EXTERN unplot EXTERN commondraw ;void undraw(int x, int y, int x2, int y2) __smallc ;Note ints are actually uint8_t undraw: _undraw: ld hl,unplot jp commondraw
13.176471
52
0.758929
0cb94d8d8dc2882fcc007a8d301f3fb8b261cd37
489
asm
Assembly
programs/oeis/131/A131849.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/131/A131849.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/131/A131849.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A131849: Cardinality of largest subset of {1,...,n} such that the difference between any two elements of the subset is never one less than a prime. ; 0,1,1,1,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5 mov $2,$0 mov $5,$0 lpb $5 mov $0,$2 sub $5,1 sub $0,$5 mov $6,1 sub $6,$0 sub $0,1 mul $6,2 mov $4,$6 add $4,8 sub $0,$4 mod $0,8 add $7,$4 lpb $0 mov $0,1 mov $7,24 lpe mod $7,3 pow $7,2 mov $3,$7 div $3,4 add $1,$3 lpe
16.862069
149
0.548057
b701202fa7702388f6a552814a81b7531dbcea64
2,284
asm
Assembly
Tools/Number/BCDconversions.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
5
2015-02-25T01:28:09.000Z
2021-05-22T09:03:04.000Z
Tools/Number/BCDconversions.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
38
2015-02-10T18:37:11.000Z
2017-10-03T03:08:50.000Z
Tools/Number/BCDconversions.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
2
2016-05-06T22:48:46.000Z
2017-01-12T19:28:49.000Z
Number.hexToBCD : ; eg 10b10 (0xF) -> 0x10 : inp in ebx, out in ebx push eax push ecx push edx cmp ebx, 101 jg Number.hexToBCD.noTable mov eax, Number_BCDTTABLE add eax, ebx mov bl, [eax] and ebx, 0xFF pop edx pop ecx pop eax ret Number.hexToBCD.noTable : ; perform actual calculations in here! popa ret Number.BCDtoHex : ; eg 0x10 -> 10b10 (0xF) : inp in ebx, out in ebx push eax push ecx push edx cmp ebx, 0xa0 jg Number.BCDtoHex.noTable mov eax, Number_BCDFTABLE add eax, ebx mov bl, [eax] and ebx, 0xFF pop edx pop ecx pop eax ret Number.BCDtoHex.noTable : ; perform actual calculations in here! popa ret Number_BCDTTABLE : db 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 db 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19 db 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29 db 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39 db 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49 db 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59 db 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69 db 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79 db 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89 db 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99 Number_BCDFTABLE : db 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x42, 0x44, 0x45, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF db 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
36.83871
98
0.685201
b6860e4a8e3a78c257d536916c8fb49acc5a1c83
634
asm
Assembly
programs/oeis/027/A027874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/027/A027874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/027/A027874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A027874: Minimal degree path length of a tree with n leaves. ; 0,4,9,16,23,30,38,46,54,64,74,84,94,104,114,124,134,144,155,166,177,188,199,210,221,232,243,256,269,282,295,308,321,334,347,360,373,386,399,412,425,438,451,464,477,490,503,516,529,542,555,568,581,594,608,622,636,650,664,678,692,706,720,734,748,762,776,790,804,818,832,846,860,874,888,902,916,930,944,958,972,988,1004,1020,1036,1052,1068,1084,1100,1116,1132,1148,1164,1180,1196,1212,1228,1244,1260,1276 mov $2,$0 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $5,0 lpb $0 mov $3,$0 div $0,3 add $5,3 lpe add $3,$5 add $1,$3 lpe mov $0,$1
31.7
403
0.66877
19fd32162c227bfe3e2ec956d6d95bb08655f58a
166
asm
Assembly
kernel_data.asm
miles-canfield/Lassen-Peak
c0d9d6232c9fcaeb5ba4d9872e8e7966cc08652e
[ "MIT" ]
null
null
null
kernel_data.asm
miles-canfield/Lassen-Peak
c0d9d6232c9fcaeb5ba4d9872e8e7966cc08652e
[ "MIT" ]
null
null
null
kernel_data.asm
miles-canfield/Lassen-Peak
c0d9d6232c9fcaeb5ba4d9872e8e7966cc08652e
[ "MIT" ]
null
null
null
gdt_data: dq 0x0000000000000000 ;Null entry dq 0x0020980000000000 ;code dq 0x0000900000000000 ;data dq 0x0020f80000000000 ;user code times 0x1000-($-gdt_data) db 0
18.444444
33
0.813253
3b7e3f436607f55f30981c348eca0f628a3324ef
2,431
asm
Assembly
kernel/asm/smp.asm
echidnaOS/echidnaOS-mirror
0975d50b855d0fb4a5c929c3e2e4783798538aed
[ "BSD-2-Clause" ]
39
2017-05-09T10:58:48.000Z
2020-10-22T02:52:39.000Z
kernel/asm/smp.asm
echidnaOS/echidnaOS-mirror
0975d50b855d0fb4a5c929c3e2e4783798538aed
[ "BSD-2-Clause" ]
3
2017-10-22T21:12:57.000Z
2018-02-19T18:01:50.000Z
kernel/asm/smp.asm
echidnaOS/echidnaOS-mirror
0975d50b855d0fb4a5c929c3e2e4783798538aed
[ "BSD-2-Clause" ]
14
2017-08-05T23:06:20.000Z
2021-04-05T09:04:27.000Z
global prepare_smp_trampoline global init_cpu0_local global check_ap_flag global get_cpu_number global get_cpu_kernel_stack global get_current_task global set_current_task global get_idle_cpu global set_idle_cpu global get_ts_enable global set_ts_enable global dump_fx_state extern kalloc extern load_tss section .data %define smp_trampoline_size smp_trampoline_end - smp_trampoline smp_trampoline: incbin "blobs/smp_trampoline.bin" smp_trampoline_end: align 16 TSS: dd 0 .esp dd 0 times 24 dd 0 .end: section .text bits 64 %define TRAMPOLINE_ADDR 0x1000 %define PAGE_SIZE 4096 prepare_smp_trampoline: ; entry point in rdi, page table in rsi ; stack pointer in rdx, cpu number in rcx ; tss buffer in r8 push rdi push rsi push rcx push rdx ; prepare TSS mov dword [TSS.esp], edx mov rdi, r8 mov rsi, TSS mov rcx, TSS.end - TSS rep movsb mov rdi, r8 call load_tss pop rdx pop rcx pop rsi pop rdi push rdi push rsi push rcx push rdx ; prepare variables mov byte [0x510], 0 mov qword [0x520], rdi mov qword [0x540], rsi mov qword [0x550], rdx mov qword [0x560], rcx a32 o32 sgdt [0x580] a32 o32 sidt [0x590] ; Copy trampoline blob to 0x1000 mov rsi, smp_trampoline mov rdi, TRAMPOLINE_ADDR mov rcx, smp_trampoline_size rep movsb pop rdx pop rcx pop rsi pop rdi mov rax, TRAMPOLINE_ADDR / PAGE_SIZE ret check_ap_flag: xor rax, rax mov al, byte [0x510] ret init_cpu0_local: ; Load FS with the CPU local struct base address push rax push rcx push rdx mov ax, 0x23 mov fs, ax mov gs, ax mov rcx, 0xc0000100 mov rax, rdi xor rdx, rdx wrmsr pop rdx pop rcx pop rax ret get_cpu_number: mov rax, qword [fs:0000] ret get_cpu_kernel_stack: mov rax, qword [fs:0008] ret get_current_task: mov rax, qword [fs:0016] ret set_current_task: mov qword [fs:0016], rdi ret get_idle_cpu: mov rax, qword [fs:0024] ret set_idle_cpu: mov qword [fs:0024], rdi ret get_ts_enable: mov rax, qword [fs:0032] ret set_ts_enable: mov qword [fs:0032], rdi ret dump_fx_state: mov rcx, 512 / 8 mov rsi, 48 .loop: mov rax, qword [fs:rsi] add rsi, 8 stosq loop .loop ret
16.425676
64
0.653229
9cd43b5c389d134453494d4335adc7b27068a3ad
566
asm
Assembly
oeis/309/A309091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/309/A309091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/309/A309091.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A309091: Decimal expansion of 4/(Pi-2). ; Submitted by Jon Maiga ; 3,5,0,3,8,7,6,7,8,7,7,6,8,2,1,7,3,2,2,4,0,7,8,1,9,4,0,3,0,2,2,9,0,7,7,5,8,5,0,0,7,9,6,0,1,3,6,1,1,4,8,3,1,2,7,2,8,0,9,4,1,9,0,0,2,7,9,9,6,5,7,7,4,0,8,7,4,2,1,9,9,0,2,6,9,0,3,3,5,0,3,7,6,7,0,8,9,1,4,3 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 cmp $4,0 mov $5,$0 add $5,$4 div $1,$5 div $2,$5 sub $3,1 lpe add $1,1 sub $2,$1 mul $1,2 mov $6,10 pow $6,$0 div $2,$6 div $1,$2 add $1,$6 sub $7,$1 mov $0,$7 mod $0,10
16.647059
201
0.515901
afe7eb25b9109a134d84a12a81ea4ab14c92d2fc
292
asm
Assembly
assembler/tests/t_enum/t_enum.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_enum/t_enum.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_enum/t_enum.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
cpu z80 enum e1_v1=1,e1_v2 nextenum e1_v3,e1_v4 enum e2_v0,e2_v1,e2_v2 db e1_v1,e1_v2,e1_v3,e1_v4 db e2_v0,e2_v1,e2_v2 enumconf 2,code enum vec_reset,vec_int0,vec_int1,vec_int2 nextenum vec_pcint0,vec_pcint1 dw vec_reset,vec_int0,vec_int1,vec_int2,vec_pcint0,vec_pcint1
18.25
63
0.787671
0373caedd1b0656534df44dee87b91cc1804648e
715
asm
Assembly
libsrc/math/mbf64/c/sccz80/___mbf64_setup_arith.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/math/mbf64/c/sccz80/___mbf64_setup_arith.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/math/mbf64/c/sccz80/___mbf64_setup_arith.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_mbf64 INCLUDE "mbf64.def" EXTERN ___mbf64_FA ; Put the two arguments into the required places ; ; This is for arithmetic routines, where we need to use ; double precision values (so pad them out) ; ; Entry: dehl = right hand operand ; Stack: defw return address ; defw callee return address ; defb 8,left hand ; -> FPARG ; FA = right hand ; -> FPREG ___mbf64_setup_arith: ld hl,___mbf64_FA ld de,___mbf64_FPARG ld bc,8 ldir ld hl,4 add hl,sp ld de,___mbf64_FPREG ld bc,8 ld a,5 ld (___mbf64_VALTYP),a ldir pop bc ;ret pop de ;callee ld hl,8 ;remove left hand from the stack add hl,sp ld sp,hl push de push ix ;Save callers push bc ret
17.875
56
0.683916
5908f7473d7c085af2268905efb97da01a9433da
4,869
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_12_1056.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_12_1056.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_12_1056.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 %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x4a36, %rax nop nop nop nop nop dec %r12 movw $0x6162, (%rax) xor $10272, %rax lea addresses_D_ht+0x13136, %r10 nop nop and $26993, %r9 mov $0x6162636465666768, %rbp movq %rbp, %xmm3 vmovups %ymm3, (%r10) nop nop nop nop nop and $834, %rbp lea addresses_WC_ht+0x694e, %rax nop nop nop add %rsi, %rsi mov (%rax), %r12w nop nop nop cmp $9580, %rsi lea addresses_WT_ht+0x17a6, %r12 clflush (%r12) add %rcx, %rcx movb (%r12), %al nop nop nop nop cmp %rsi, %rsi lea addresses_WT_ht+0xa8b6, %rsi lea addresses_UC_ht+0x11b36, %rdi nop nop nop nop nop add %rax, %rax mov $51, %rcx rep movsl nop nop nop inc %rbp lea addresses_UC_ht+0x10fb6, %r9 nop nop nop xor %rbp, %rbp movl $0x61626364, (%r9) nop nop nop add %rdi, %rdi lea addresses_UC_ht+0x8e7, %rsi lea addresses_A_ht+0x13e36, %rdi clflush (%rsi) nop xor $7937, %rbp mov $40, %rcx rep movsw nop nop nop nop and $60753, %rax lea addresses_D_ht+0x2336, %rsi lea addresses_D_ht+0x19936, %rdi nop nop nop inc %rbp mov $91, %rcx rep movsl sub %rbp, %rbp lea addresses_WC_ht+0xbe36, %rdi clflush (%rdi) nop nop add $3746, %r9 mov $0x6162636465666768, %rbp movq %rbp, %xmm3 and $0xffffffffffffffc0, %rdi movaps %xmm3, (%rdi) nop nop nop nop cmp $57886, %rdi lea addresses_normal_ht+0x5736, %rsi lea addresses_WC_ht+0xeb36, %rdi clflush (%rdi) nop add $19406, %r10 mov $127, %rcx rep movsl nop nop cmp $29761, %rax lea addresses_WC_ht+0x1ef36, %rax nop nop nop nop nop cmp $50332, %rsi movw $0x6162, (%rax) nop nop nop nop add %r10, %r10 lea addresses_WT_ht+0x1ad36, %rbp nop nop nop sub $7469, %r12 movl $0x61626364, (%rbp) and %r10, %r10 lea addresses_WC_ht+0x1a436, %rsi nop nop cmp %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, (%rsi) nop nop nop and %rbp, %rbp lea addresses_WT_ht+0x1d2b6, %rcx clflush (%rcx) nop nop nop nop nop and %rsi, %rsi movw $0x6162, (%rcx) nop nop nop nop nop mfence pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rbp push %rbx push %rdi push %rdx push %rsi // Store lea addresses_WT+0x1e57e, %rbp cmp $18317, %rbx mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%rbp) nop nop sub $57869, %rbx // Faulty Load lea addresses_US+0xd136, %rsi nop nop nop dec %rdx mov (%rsi), %bx lea oracles, %rsi and $0xff, %rbx shlq $12, %rbx mov (%rsi,%rbx,1), %rbx pop %rsi pop %rdx pop %rdi pop %rbx pop %rbp pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'same': True, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'00': 12} 00 00 00 00 00 00 00 00 00 00 00 00 */
20.20332
152
0.65229
676795e7896a5aa338658ede6b49bf8737977f7a
246
asm
Assembly
8088/xtserver/testcases/clicks.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/xtserver/testcases/clicks.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/xtserver/testcases/clicks.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
org 0 cpu 8086 sti mov ax,0x40 mov ds,ax in al,0x61 and al,0xfc out 0x61,al loopTop: push ax mov ax,[0x6c] delayLoop: mov bx,[0x6c] sub bx,ax cmp bx,18 jbe delayLoop pop ax xor al,2 out 0x61,al jmp loopTop
8.482759
15
0.617886
94ef9d74c9981a498bfe471a1ccb1eeb786a5a00
3,166
asm
Assembly
target_code/chargen.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
14
2017-05-02T11:00:32.000Z
2021-06-24T18:31:12.000Z
target_code/chargen.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
null
null
null
target_code/chargen.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
6
2016-01-24T19:29:15.000Z
2021-06-24T18:31:12.000Z
; ; Copyright 2008-2012 Jeff Bush ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. ; LINE_LENGTH equ 72 PATTERN_LENGTH equ 89 _start add r29, r0, 1000 call _chargen # add r3, =pattern # add r4, r0, 5 # call _write_chars halt # # void write_char(char value) # _write_char loadw r7, =seraddr # Get address of serial port storeb r3, (r7) # Print value jump (link) seraddr .long 0xa0000000 # # void write_chars(const char *data, int length) # _write_chars loadw r8, =seraddr add r7, r4, 7 # (count + 7) / 8 lsr r7, r7, 3 add r10, =switch_lookup and r11, r4, 7 # mask bits lsl r11, r11, 2 # multiply by 4 to find table address add r10, r10, r11 loadw pc, (r10) case0 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case7 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case6 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case5 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case4 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case3 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case2 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) case1 loadb r9, (r3) add r3, r3, 1 storeb r9, (r8) sub r7, r7, 1 bnez r7, case0 jump (link) switch_lookup .long case0, case1, case2, case3, case4, case5, case6, case7 # # void chargen(void) # # r16 pattern offset # _chargen xor r16, r16, r16 add r16, r0, (PATTERN_LENGTH - LINE_LENGTH + 1) # Does this pattern wrap? loop0 add r7, r16, LINE_LENGTH # r7 = current_offset + LINE_LENGTH sgt r1, r7, PATTERN_LENGTH # if (r7 > PATTERN_LENGTH) bnez r1, split not_split add r3, =pattern add r3, r3, r16 # data = pattern offset add r4, r0, LINE_LENGTH # length = LINE_LENGTH call _write_chars # write chars jump split_check_done split add r4, r0, PATTERN_LENGTH # Determine length before wrap sub r4, r4, r16 add r17, r0, LINE_LENGTH # Determine length of remainder sub r17, r17, r4 # Stash it in r17 add r3, =pattern add r3, r3, r16 # data = pattern offset call _write_chars add r3, =pattern # data = start of data add r4, r0, r17 # length = saved remainder call _write_chars split_check_done add r3, r0, 10 call _write_char add r16, r16, 1 sub r1, r16, PATTERN_LENGTH # Have we exceeded pattern length bnez r1, loop0 # no, so loop xor r16, r16, r16 # yes, reset it to zero jump loop0 # ...and loop pattern .string "!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz"
28.017699
110
0.637081
cca98036aa1b85fffda9ff08a496fa3980e1095d
4,714
asm
Assembly
C/BiosLib/read8042.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
232
2016-04-27T21:56:11.000Z
2022-03-29T09:02:15.000Z
C/BiosLib/read8042.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
31
2016-05-09T09:05:36.000Z
2022-03-29T19:17:45.000Z
C/BiosLib/read8042.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
94
2016-06-01T18:10:39.000Z
2022-03-26T10:44:57.000Z
PAGE ,132 TITLE System utilities, not relying on MS-DOS. ;*****************************************************************************; ; ; ; File name READ8042.ASM ; ; ; ; Description Low-level routines to read data from the keyboard cntrlr. ; ; ; ; Notes See the corresponding routines in WRIT8042.ASM ; ; ; ; History ; ; 1990/11/02 JFL Initial implementation of autil.asm ; ; 1991/03/29 JFL Added routines read_8042, write_8042, interrupts_off, ; ; interrupts_back. ; ; Removed routine wait_8042, and replaced it with local ; ; routine wait_8042_ibe. Changed calls to it in routine ; ; reset. ; ; 1991/04/24 JFL Turn off interrupt while reading or writing the 8042 ; ; to prevent side effects with keyboard ISRs. ; ; 1991/11/21 JFL Slight performance improvement in wait_8042_xxx routines. ; ; 1993/10/07 JFL Separated from alibc.c ; ; 1994/05/10 JFL Added include file IO8042.INC. ; ; Moved routine wait_refresh to file wrefresh.asm. ; ; Improve write_8042 performance. ; ; 1994/05/11 JFL Split IO8042.ASM into READ8042.ASM and WRIT8042.ASM. ; ; ; ; (c) Copyright 1990-2017 Hewlett Packard Enterprise Development LP ; ; Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 ; ;*****************************************************************************; .286 ;-----------------------------------------------------------------------------; ; ; ; Globally defined constants ; ; ; ;-----------------------------------------------------------------------------; include adefine.inc ; All assembly language definitions include io8042.inc ; 8042-specific definitions ;-----------------------------------------------------------------------------; ; ; ; Public routines ; ; ; ;-----------------------------------------------------------------------------; .code EXTERNCFASTPROC wait_refresh ;=============================================================================; ; ; ENTRY POINT NAME: read_8042 ; ; DESCRIPTION: Read a byte from the 8042 output buffer. ; ; INPUT PARAMETERS ; None ; ; OUTPUT PARAMETERS ; AX = -1 = ERROR. Timeout waiting for data. ; = 0 to 255 = Data read ; Carry flag Set = ERROR. Timeout waiting for data. ; Clear = Data read ; ; REGISTERS DESTROYED: AX ; ; REGISTERS PRESERVED: Others ; ; DEPENDENCIES ; ; ALGORITHM USED ; ; NOTES ; Will wait up to 100 ms for data. ; ; MODIFICATION HISTORY NOTES ; JFL 03/28/91 Initial implementation. ; JFL 04/24/91 Turn off interrupts to prevent an ISR to read the output ; buffer before we get a chance. ; ;=============================================================================; CFASTPROC read_8042 pushf cli call wait_8042_obf jz read_error ; Error. Then return -1 in al, IO_8042_DATA popf ; Restore interrupts xor ah, ah ; mov ah,0 and clear carry. ret read_error: popf ; Restore interrupts stc sbb ax, ax ; mov ax,-1 and set carry. ret ENDCFASTPROC read_8042 ;=============================================================================; ; ; ENTRY POINT NAME: wait_8042_obf ; ; DESCRIPTION: Wait for 8042 output buffer to be full. ; ; INPUT PARAMETERS ; None ; ; OUTPUT PARAMETERS ; Z-flag: (1) = ERROR ; (0) = Output buffer full - data available ; ; REGISTERS DESTROYED: None ; ; REGISTERS PRESERVED: All ; ; DEPENDENCIES ; ; ALGORITHM USED ; ; NOTES ; ; Wait for 8042 output buffer to be full. Will set z-flag if ; it isn't full after a while. This routine is processor speed ; independent. ; ; MODIFICATION HISTORY NOTES ; JFL 03/28/91 Initial implementation. ; JFL 11/21/91 Bypass call to wait_refresh on entry. Improves performance. ; ;=============================================================================; CFASTPROC wait_8042_obf push cx push ax mov cx, 6666 ; Wait up to 100ms jmp short wait_obf_test wait_obf_loop: call wait_refresh ; Be CPU speed independant wait_obf_test: in al, IO_8042_STATUS ; Wait for the keyboard output test al, I8042_OBF ; buffer to be full loopz wait_obf_loop ; If the buffer is still empty pop ax pop cx ret ENDCFASTPROC wait_8042_obf END
29.098765
79
0.502758
db780323a05cdd6d0321d0bfe523bb4160f11a3e
1,472
asm
Assembly
firmware/coreboot/3rdparty/blobs/cpu/amd/geode_lx/gplvsa_ii/vsm_lib/misc.asm
fabiojna02/OpenCellular
45b6a202d6b2e2485c89955b9a6da920c4d56ddb
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2019-11-04T07:11:25.000Z
2019-11-04T07:11:25.000Z
firmware/coreboot/3rdparty/blobs/cpu/amd/geode_lx/gplvsa_ii/vsm_lib/misc.asm
fabiojna02/OpenCellular
45b6a202d6b2e2485c89955b9a6da920c4d56ddb
[ "CC-BY-4.0", "BSD-3-Clause" ]
13
2018-10-12T21:29:09.000Z
2018-10-25T20:06:51.000Z
firmware/coreboot/3rdparty/blobs/cpu/amd/geode_lx/gplvsa_ii/vsm_lib/misc.asm
fabiojna02/OpenCellular
45b6a202d6b2e2485c89955b9a6da920c4d56ddb
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
; ; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD"). ; ; This library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either version 2.1 of the ; License, or (at your option) any later version. ; ; This code is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ; Lesser General Public License for more details. ; ; You should have received a copy of the GNU Lesser General ; Public License along with this library; if not, write to the ; Free Software Foundation, Inc., 59 Temple Place, Suite 330, ; Boston, MA 02111-1307 USA ; ;******************************************************************************* ;* This file contains miscellaneous VSM library functions. ;******************************************************************************* include sysmgr.inc .model tiny,c .586p .CODE externdef sys_system_call:proc sys_unload_vsm proc mov ax, SYS_CODE_UNLOAD call sys_system_call ret ; Does not return. VSM is removed. sys_unload_vsm endp sys_duplicate_vsm proc pascal \ MemoryModel:word mov bx, [MemoryModel] mov ax, SYS_CODE_DUPLICATE call sys_system_call ret sys_duplicate_vsm endp END
23.365079
81
0.637228
015126e12a8daa003fcf1724793b59b7c1acedc2
3,190
asm
Assembly
include/test/arith.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
null
null
null
include/test/arith.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
1
2021-03-31T18:40:59.000Z
2022-01-04T03:16:16.000Z
include/test/arith.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
null
null
null
; ; arith.asm ; ; MC6809E emulator test code for arithmetic commands. ; Test for command correctness and flag settings. ; All tests will use direct or immediate addressing for simplicity, ; other addressing modes will be tested separately. ; jmp start ; setcf: equ $01 clrcf: equ $fe ; varstart equ * ; var0: fcb $ff var1: fcb $55 var2: fcb $aa var3: fcb $01 var4: fcb $80 var5: fcb $00 ; varend: equ * varlen: equ varend-varstart ; temp: fcb 0 ; start: andcc #0 ; clear CC bits ; ; ADD ; ldb #100 stb temp lda #30 adda temp ; a = 130 ($82, NzVc) ; ; SUB ; ldb #30 stb temp lda #50 suba temp ; a = 20 ($14, nzvc) suba temp ; a = -10 ($f6, NzVC) ; ; SBC ; nop ; ; NEG ; lda var1 nega ldb var2 negb stb temp neg temp ldb temp ; ; INC ; lda #0 ldb #8 stb temp loop_inc: inca dec temp lbne loop_inc ; ; MUL ; lda #8 ldb #34 mul ; d = $0110 lda #255 ldb #128 mul ; d = $7f80 ; ; ABX ; ldx #varstart ldb #1 abx ; X = X + 1, no flag change ldx #varstart ldb var4 abx ; X = X + 128 (unsigned addition), no flag change ; ; ADC ; lda var0 orcc #setcf adca var5 ; a = $00, Z=1, C=1, V=1? ; ldb var1 andcc #clrcf adcb #10 ; b = 5f ; lda var2 orcc #setcf adca var4 ; a = 2b, C=1, V=1 ; ; ADD ; lda var0 adda var3 ; a = $00, Z=1, C=1, V=1? ; ldb var2 addb var4 ; b = 2a, C=1, V=1 ; ldd var4 ; big-endian so d = $8000 addd #$800 ; d = $8800 ; ; CLR ; lda var0 clra ; ldb var1 clrb ; ldb var1 ; b = $55 clr var1 lda var1 ; a = 0 stb var1 lda var1 ; a = $55 ; ; CMP ; lda var1 ; a = $55 cmpa var3 ; compare to $01 cmpa var2 ; compare to $aa ; ; DAA ; lda #$25 adda #$48 daa ; a = 73 ; lda #$39 adda #$48 daa ; a = 87 ; lda #$72 adda #$73 daa ; a = (1)45 ; nop ; ; End of test
21.554054
85
0.323197
19073cc48c6568b7d48d5894fbc22f1ae55d4862
4,197
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1121.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1121.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1121.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 %r13 push %r14 push %r8 push %rax push %rbp push %rbx push %rcx // Load lea addresses_US+0x173bd, %rcx nop nop add %rbp, %rbp mov (%rcx), %rbx nop nop nop nop nop xor $13617, %rcx // Load lea addresses_PSE+0x37bd, %rax nop nop nop nop and $60477, %r8 movb (%rax), %bl nop nop nop nop add %r8, %r8 // Faulty Load mov $0x6192710000000bbd, %rax nop nop nop nop nop cmp %rbp, %rbp mov (%rax), %r14 lea oracles, %r8 and $0xff, %r14 shlq $12, %r14 mov (%r8,%r14,1), %r14 pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_PSE', 'same': False, 'AVXalign': True, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'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 */
55.223684
2,999
0.658327
0e584588c723f8de47b2bb9eb78c005fcffc9947
35
asm
Assembly
engine/enemies.asm
mkiesinski/the-way-nes
59df7a4b09f76eedcac50bd0121899f01387e9dc
[ "MIT" ]
2
2018-02-10T19:47:03.000Z
2018-09-05T18:07:25.000Z
engine/enemies.asm
mkiesinski/no-mans-byte-nes
59df7a4b09f76eedcac50bd0121899f01387e9dc
[ "MIT" ]
null
null
null
engine/enemies.asm
mkiesinski/no-mans-byte-nes
59df7a4b09f76eedcac50bd0121899f01387e9dc
[ "MIT" ]
null
null
null
processEnemies: JSR drawEnemies
17.5
19
0.8
3eaafe857ed02c6774fbc46ccfa8d84917f312e1
338
asm
Assembly
programs/oeis/049/A049711.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/049/A049711.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/049/A049711.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A049711: a(n) = n - prevprime(n). ; 1,1,2,1,2,1,2,3,4,1,2,1,2,3,4,1,2,1,2,3,4,1,2,3,4,5,6,1,2,1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,1,2,3,4,5,6,1,2,3,4,5,6,1,2,1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,1,2,3,4,1,2,3,4,5,6,1,2,3,4,5,6 add $0,1 cal $0,175851 ; a(n) = 1 for noncomposite n, a(n) = n - previousprime(n) + 1 for composite n. mov $1,$0
48.285714
187
0.54142
f170f018adb3550a3f93562366d1a5fdcf9b9baa
699
asm
Assembly
cards/bn4/ModCards/134-F002 MAX HP +750 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
10
2017-12-05T14:25:38.000Z
2022-02-21T04:28:00.000Z
cards/bn4/ModCards/134-F002 MAX HP +750 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
cards/bn4/ModCards/134-F002 MAX HP +750 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 92 card_no equ "092" card_sub equ "Mod Card 092" card_sub_x equ 64 card_desc_len equ 2 card_desc_1 equ "Address 0A" card_desc_2 equ "MAX HP +750" card_desc_3 equ "" card_name_jp_full equ "マックスHP+750" card_name_jp_game equ "マックスHP+750" card_name_en_full equ "MAX HP +750" card_name_en_game equ "MAX HP +750" card_address equ "0A" card_address_id equ 0 card_bug equ 0 card_wrote_en equ "MAX HP +750" card_wrote_jp equ "マックスHP+750"
25.888889
35
0.765379
e9a780be8409ffb47019b6c246201246c4e7fceb
440
asm
Assembly
oeis/332/A332491.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/332/A332491.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/332/A332491.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A332491: a(n) = 2*a(n-1) + a(n-3), where a(0) = 3, a(1) = 1, a(2) = 2. ; Submitted by Christian Krause ; 3,1,2,7,15,32,71,157,346,763,1683,3712,8187,18057,39826,87839,193735,427296,942431,2078597,4584490,10111411,22301419,49187328,108486067,239273553,527734434,1163954935,2567183423,5662101280,12488157495,27543498413 mov $2,1 mov $3,3 mov $4,1 lpb $0 sub $0,1 add $2,$1 add $1,$4 mov $4,$2 add $2,$3 mov $3,$1 lpe mov $0,$3
25.882353
214
0.668182
71cad84e90c1d4094029b57206d18706c7222a8f
8,986
asm
Assembly
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1551.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1551.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1551.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x105f7, %rsi lea addresses_normal_ht+0x13664, %rdi clflush (%rdi) cmp $37379, %rbx mov $102, %rcx rep movsl and %rbp, %rbp lea addresses_normal_ht+0xeed4, %r13 nop nop nop and $26505, %r8 vmovups (%r13), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rbx nop nop nop and %rcx, %rcx lea addresses_WT_ht+0x3214, %r13 nop nop nop nop nop and $49219, %rdi and $0xffffffffffffffc0, %r13 vmovaps (%r13), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rcx nop nop xor %rsi, %rsi lea addresses_UC_ht+0x12dd4, %rsi nop nop and %r13, %r13 mov (%rsi), %cx nop nop sub %rsi, %rsi lea addresses_UC_ht+0x15354, %r8 nop nop sub %rdi, %rdi movb $0x61, (%r8) nop nop nop nop sub $39442, %r13 lea addresses_UC_ht+0x13804, %rsi lea addresses_A_ht+0x1ee54, %rdi sub %r13, %r13 mov $30, %rcx rep movsw nop nop nop nop nop add %rbp, %rbp lea addresses_normal_ht+0x6c04, %rsi nop nop add $1321, %rcx movw $0x6162, (%rsi) add %r13, %r13 lea addresses_A_ht+0x30d4, %rdi clflush (%rdi) nop nop nop cmp $53031, %rbx movl $0x61626364, (%rdi) nop nop nop nop sub %rsi, %rsi lea addresses_D_ht+0xd4, %rsi clflush (%rsi) dec %rbx mov (%rsi), %r13d nop nop nop nop nop inc %r8 lea addresses_WC_ht+0xf75c, %rbp nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %rbx movq %rbx, %xmm6 movups %xmm6, (%rbp) nop nop nop nop cmp %r13, %r13 lea addresses_WT_ht+0x41a2, %rsi lea addresses_WT_ht+0x91d4, %rdi clflush (%rsi) nop nop sub %rbx, %rbx mov $66, %rcx rep movsw nop nop dec %rbp lea addresses_D_ht+0x14414, %rdi and %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm3 movups %xmm3, (%rdi) and $12043, %rcx lea addresses_WC_ht+0xb854, %rbx nop dec %rbp mov (%rbx), %di nop cmp %rcx, %rcx lea addresses_WC_ht+0x1d10, %rdi nop nop nop nop nop cmp %r13, %r13 mov (%rdi), %rcx nop nop nop nop nop sub %rbp, %rbp lea addresses_A_ht+0x10d4, %rsi add $28188, %r8 movups (%rsi), %xmm3 vpextrq $0, %xmm3, %r13 nop nop nop nop cmp %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rax push %rbx push %rcx push %rdx // Store lea addresses_A+0x1df8, %rcx nop nop nop nop nop cmp $4761, %r10 movl $0x51525354, (%rcx) and %rbx, %rbx // Store lea addresses_D+0x1b2c4, %r8 clflush (%r8) add %r15, %r15 movl $0x51525354, (%r8) nop nop nop nop cmp $55356, %rdx // Store mov $0xd94, %r10 nop dec %r8 movl $0x51525354, (%r10) nop sub %rbx, %rbx // Store lea addresses_A+0xbed4, %r10 nop nop nop add %rax, %rax movw $0x5152, (%r10) nop sub %rdx, %rdx // Store lea addresses_UC+0x194f4, %r15 nop nop cmp %r10, %r10 movb $0x51, (%r15) nop nop nop nop nop add %rax, %rax // Faulty Load lea addresses_US+0x78d4, %rdx nop nop nop sub $3967, %rcx vmovups (%rdx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rax lea oracles, %rcx and $0xff, %rax shlq $12, %rax mov (%rcx,%rax,1), %rax pop %rdx pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 5}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}} {'49': 10879, '00': 21, '44': 10929} 00 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 49 44 */
31.640845
2,999
0.650011
6529a1f38e998d900ffde2cca28a0660e2553963
713
asm
Assembly
Windows/Visual Studio/SignDivMul/SignDivMul/DivMul.asm
leonhad/masm
f5739a8c8c6c461f9e928576ff36f7991541959b
[ "MIT" ]
9
2020-05-29T14:03:07.000Z
2021-06-17T07:56:26.000Z
Windows/Visual Studio/SignDivMul/SignDivMul/DivMul.asm
leonhad/masm
f5739a8c8c6c461f9e928576ff36f7991541959b
[ "MIT" ]
null
null
null
Windows/Visual Studio/SignDivMul/SignDivMul/DivMul.asm
leonhad/masm
f5739a8c8c6c461f9e928576ff36f7991541959b
[ "MIT" ]
4
2021-04-17T17:41:54.000Z
2022-03-13T16:06:39.000Z
.386 .model flat, c .code ; Return: 0 Error (Division by zero) ; : 1 Success ; Computation *prod = a * b ; *quo = a / b ; *rem = a % b IntegerMulDiv proc push ebp mov ebp, esp push ebx xor eax, eax ; eax = 0 mov ecx, [ebp+8] ; ecx = a mov edx, [ebp+12] ; edx = b or edx, edx ; updates the zero flags jz InvalidDivisor imul edx, ecx ; edx = a * b (signed) mov ebx, [ebp+16] ; ebx = prod mov [ebx], edx ; *prod = a * b mov eax, ecx ; eax = a cdq ; edx:eax contains dividend idiv dword ptr [ebp + 12] mov ebx, [ebp + 20] mov [ebx], eax mov ebx, [ebp + 24] mov [ebx], edx mov eax, 1 InvalidDivisor: pop ebx pop ebp ret IntegerMulDiv endp end
15.5
39
0.57223
fe8b9969aeae10a4f6ce42ac56e5ff5ccd25f814
510
asm
Assembly
data/wildPokemon/seafoamislandb3.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/wildPokemon/seafoamislandb3.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/wildPokemon/seafoamislandb3.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
IslandMonsB3: db $0A IF DEF(_BLUE) db 31,SLOWPOKE db 31,SEEL db 33,SLOWPOKE db 33,SEEL db 29,KRABBY db 31,SHELLDER db 31,KRABBY db 29,SHELLDER db 37,JYNX db 39,DEWGONG ELSE db 31,PSYDUCK db 31,SEEL db 33,PSYDUCK db 33,SEEL db 29,KRABBY db 31,STARYU db 31,KRABBY db 29,STARYU db 37,KINGLER db 39,DEWGONG ENDC db $05 db 15,TENTACOOL db 10,TENTACOOL db 15,TENTACOOL db 10,TENTACOOL db 15,TENTACOOL db 20,TENTACOOL db 25,TENTACOOL db 30,TENTACRUEL db 35,TENTACRUEL db 40,TENTACRUEL
13.783784
17
0.733333
c4dbe1552a07d20ea4170c71e4bcd1d0032bfeec
229
asm
Assembly
programs/oeis/253/A253570.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/253/A253570.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/253/A253570.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A253570: Maximum number of circles of radius 1 that can be packed into a regular n-gon with side length 2 (conjectured). ; 0,1,1,1,3,4,5,7,8,9 mov $1,1 mov $2,6 lpb $2 sub $0,1 sub $2,$1 mul $1,$0 lpe add $0,1 mod $0,10
17.615385
122
0.646288
1c8652d87885e0e82db63a8130c46fb103e7ca81
19,284
asm
Assembly
build/win32/BHAPI_VCC/Debug/SupportDefs.asm
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
3
2018-05-21T15:32:32.000Z
2019-03-21T13:34:55.000Z
build/win32/BHAPI_VCC/Debug/SupportDefs.asm
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
null
null
null
build/win32/BHAPI_VCC/Debug/SupportDefs.asm
stasinek/BHAPI
5d9aa61665ae2cc5c6e34415957d49a769325b2b
[ "BSD-3-Clause", "MIT" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 13.10.3077 ; Generated by VC++ for Common Language Runtime .file "\Documents and Settings\stasiek.TC12\My Documents\prc++\x86_libraries\Bhapi\src\kits\support\SupportDefs.cpp" .global ?B_EMPTY_STRING@@3PBDB ; B_EMPTY_STRING .rdata .space 12 $SG5354: .ascii "\000" .data ?B_EMPTY_STRING@@3PBDB: ; B_EMPTY_STRING DD $SG5354 .global .global .bss .local ,4 .local ,4 ; Function compile flags: /Odt ; File c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory .text .comdat any, ??0?$allocator@X@std@@$$FQAE@ABV01@@Z .global ??0?$allocator@X@std@@$$FQAE@ABV01@@Z ; std::allocator<void>::allocator<void> ??0?$allocator@X@std@@$$FQAE@ABV01@@Z: ; std::allocator<void>::allocator<void> ; .proc.def D:I(II) ; Function Header: ; max stack depth = 1 ; function size = 2 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .formal.i4 0,"_this$" SIG: Optional C Binding Modifier(token:0x9B4AAA).Optional C Binding Modifier(token:0x9B4AAC).ptr.valueType (token:0x9B4AAF) ; .proc.beg ; 197 : { // construct by copying (do nothing) ; 198 : } ldarg.0 ; _this$ $L5506: ret .end ??0?$allocator@X@std@@$$FQAE@ABV01@@Z ; std::allocator<void>::allocator<void> ; .proc.end.i4 text ENDS PUBLIC ??0?$allocator@X@std@@QAE@ABV01@@Z ; std::allocator<void>::allocator<void> PUBLIC __mep@??0?$allocator@X@std@@$$FQAE@ABV01@@Z ; COMDAT __mep@??0?$allocator@X@std@@$$FQAE@ABV01@@Z data SEGMENT __mep@??0?$allocator@X@std@@$$FQAE@ABV01@@Z TOKEN 06000038 ; Function compile flags: /Odt data ENDS ; COMDAT ??0?$allocator@X@std@@QAE@ABV01@@Z text SEGMENT ??0?$allocator@X@std@@QAE@ABV01@@Z PROC NEAR ; std::allocator<void>::allocator<void>, COMDAT jmp DWORD PTR __mep@??0?$allocator@X@std@@$$FQAE@ABV01@@Z ??0?$allocator@X@std@@QAE@ABV01@@Z ENDP ; std::allocator<void>::allocator<void> .global .global .bss .local ,4 .local ,4 ; Function compile flags: /Odt ; File c:\documents and settings\stasiek.tc12\my documents\prc++\x86_libraries\bhapi\src\kits\support\supportdefs.cpp .text .global ?atomic_add@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_add ?atomic_add@bhapi@@$$FYAHPAHH@Z: ; bhapi::atomic_add ; .proc.def D:I(II) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 42 : EXPORT_BHAPI int32 bhapi::atomic_add (int32 *value, int32 addValue) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5521 $L5521: ret .end ?atomic_add@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_add ; .proc.end.i4 text ENDS PUBLIC ?atomic_add@bhapi@@YAHPAHH@Z ; bhapi::atomic_add PUBLIC __mep@?atomic_add@bhapi@@$$FYAHPAHH@Z ; COMDAT __mep@?atomic_add@bhapi@@$$FYAHPAHH@Z data SEGMENT __mep@?atomic_add@bhapi@@$$FYAHPAHH@Z TOKEN 06000039 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_add@bhapi@@YAHPAHH@Z text SEGMENT ?atomic_add@bhapi@@YAHPAHH@Z PROC NEAR ; bhapi::atomic_add, COMDAT jmp DWORD PTR __mep@?atomic_add@bhapi@@$$FYAHPAHH@Z ?atomic_add@bhapi@@YAHPAHH@Z ENDP ; bhapi::atomic_add .global .global .bss .local ,4 .local ,4 ; Function compile flags: /Odt .text .global ?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_add64 ?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z: ; bhapi::atomic_add64 ; .proc.def D:J(IJ) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 43 : EXPORT_BHAPI int64 bhapi::atomic_add64 (int64 *value, int64 addValue) { return 0; } ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5535 $L5535: ret .end ?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_add64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_add64@bhapi@@YA_JPA_J_J@Z ; bhapi::atomic_add64 PUBLIC __mep@?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z ; COMDAT __mep@?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z data SEGMENT __mep@?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z TOKEN 0600003A ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_add64@bhapi@@YA_JPA_J_J@Z text SEGMENT ?atomic_add64@bhapi@@YA_JPA_J_J@Z PROC NEAR ; bhapi::atomic_add64, COMDAT jmp DWORD PTR __mep@?atomic_add64@bhapi@@$$FYA_JPA_J_J@Z ?atomic_add64@bhapi@@YA_JPA_J_J@Z ENDP ; bhapi::atomic_add64 ; Function compile flags: /Odt .text .global ?atomic_and@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_and ?atomic_and@bhapi@@$$FYAHPAHH@Z: ; bhapi::atomic_and ; .proc.def D:I(II) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 44 : EXPORT_BHAPI int32 bhapi::atomic_and (int32 *value, int32 andValue) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5549 $L5549: ret .end ?atomic_and@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_and ; .proc.end.i4 text ENDS PUBLIC ?atomic_and@bhapi@@YAHPAHH@Z ; bhapi::atomic_and PUBLIC __mep@?atomic_and@bhapi@@$$FYAHPAHH@Z ; COMDAT __mep@?atomic_and@bhapi@@$$FYAHPAHH@Z data SEGMENT __mep@?atomic_and@bhapi@@$$FYAHPAHH@Z TOKEN 0600003B ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_and@bhapi@@YAHPAHH@Z text SEGMENT ?atomic_and@bhapi@@YAHPAHH@Z PROC NEAR ; bhapi::atomic_and, COMDAT jmp DWORD PTR __mep@?atomic_and@bhapi@@$$FYAHPAHH@Z ?atomic_and@bhapi@@YAHPAHH@Z ENDP ; bhapi::atomic_and ; Function compile flags: /Odt .text .global ?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_and64 ?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z: ; bhapi::atomic_and64 ; .proc.def D:J(IJ) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 45 : EXPORT_BHAPI int64 bhapi::atomic_and64 (int64 *value, int64 andValue) { return 0; } ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5561 $L5561: ret .end ?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_and64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_and64@bhapi@@YA_JPA_J_J@Z ; bhapi::atomic_and64 PUBLIC __mep@?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z ; COMDAT __mep@?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z data SEGMENT __mep@?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z TOKEN 0600003C ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_and64@bhapi@@YA_JPA_J_J@Z text SEGMENT ?atomic_and64@bhapi@@YA_JPA_J_J@Z PROC NEAR ; bhapi::atomic_and64, COMDAT jmp DWORD PTR __mep@?atomic_and64@bhapi@@$$FYA_JPA_J_J@Z ?atomic_and64@bhapi@@YA_JPA_J_J@Z ENDP ; bhapi::atomic_and64 ; Function compile flags: /Odt .text .global ?atomic_get@bhapi@@$$FYAHPAH@Z ; bhapi::atomic_get ?atomic_get@bhapi@@$$FYAHPAH@Z: ; bhapi::atomic_get ; .proc.def D:I(I) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 46 : EXPORT_BHAPI int32 bhapi::atomic_get (int32 *value) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5573 $L5573: ret .end ?atomic_get@bhapi@@$$FYAHPAH@Z ; bhapi::atomic_get ; .proc.end.i4 text ENDS PUBLIC ?atomic_get@bhapi@@YAHPAH@Z ; bhapi::atomic_get PUBLIC __mep@?atomic_get@bhapi@@$$FYAHPAH@Z ; COMDAT __mep@?atomic_get@bhapi@@$$FYAHPAH@Z data SEGMENT __mep@?atomic_get@bhapi@@$$FYAHPAH@Z TOKEN 0600003D ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_get@bhapi@@YAHPAH@Z text SEGMENT ?atomic_get@bhapi@@YAHPAH@Z PROC NEAR ; bhapi::atomic_get, COMDAT jmp DWORD PTR __mep@?atomic_get@bhapi@@$$FYAHPAH@Z ?atomic_get@bhapi@@YAHPAH@Z ENDP ; bhapi::atomic_get ; Function compile flags: /Odt .text .global ?atomic_get64@bhapi@@$$FYA_JPA_J@Z ; bhapi::atomic_get64 ?atomic_get64@bhapi@@$$FYA_JPA_J@Z: ; bhapi::atomic_get64 ; .proc.def D:J(I) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 47 : EXPORT_BHAPI int64 bhapi::atomic_get64 (int64 *value) { return 0;} ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5585 $L5585: ret .end ?atomic_get64@bhapi@@$$FYA_JPA_J@Z ; bhapi::atomic_get64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_get64@bhapi@@YA_JPA_J@Z ; bhapi::atomic_get64 PUBLIC __mep@?atomic_get64@bhapi@@$$FYA_JPA_J@Z ; COMDAT __mep@?atomic_get64@bhapi@@$$FYA_JPA_J@Z data SEGMENT __mep@?atomic_get64@bhapi@@$$FYA_JPA_J@Z TOKEN 0600003E ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_get64@bhapi@@YA_JPA_J@Z text SEGMENT ?atomic_get64@bhapi@@YA_JPA_J@Z PROC NEAR ; bhapi::atomic_get64, COMDAT jmp DWORD PTR __mep@?atomic_get64@bhapi@@$$FYA_JPA_J@Z ?atomic_get64@bhapi@@YA_JPA_J@Z ENDP ; bhapi::atomic_get64 ; Function compile flags: /Odt .text .global ?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_get_and_set ?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z: ; bhapi::atomic_get_and_set ; .proc.def D:I(II) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 48 : EXPORT_BHAPI int32 bhapi::atomic_get_and_set (int32 *value, int32 newValue) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5597 $L5597: ret .end ?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_get_and_set ; .proc.end.i4 text ENDS PUBLIC ?atomic_get_and_set@bhapi@@YAHPAHH@Z ; bhapi::atomic_get_and_set PUBLIC __mep@?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z ; COMDAT __mep@?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z data SEGMENT __mep@?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z TOKEN 0600003F ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_get_and_set@bhapi@@YAHPAHH@Z text SEGMENT ?atomic_get_and_set@bhapi@@YAHPAHH@Z PROC NEAR ; bhapi::atomic_get_and_set, COMDAT jmp DWORD PTR __mep@?atomic_get_and_set@bhapi@@$$FYAHPAHH@Z ?atomic_get_and_set@bhapi@@YAHPAHH@Z ENDP ; bhapi::atomic_get_and_set ; Function compile flags: /Odt .text .global ?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_get_and_set64 ?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z: ; bhapi::atomic_get_and_set64 ; .proc.def D:J(IJ) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 49 : EXPORT_BHAPI int64 bhapi::atomic_get_and_set64 (int64 *value, int64 newValue) { return 0; } ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5609 $L5609: ret .end ?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_get_and_set64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_get_and_set64@bhapi@@YA_JPA_J_J@Z ; bhapi::atomic_get_and_set64 PUBLIC __mep@?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z ; COMDAT __mep@?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z data SEGMENT __mep@?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z TOKEN 06000040 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_get_and_set64@bhapi@@YA_JPA_J_J@Z text SEGMENT ?atomic_get_and_set64@bhapi@@YA_JPA_J_J@Z PROC NEAR ; bhapi::atomic_get_and_set64, COMDAT jmp DWORD PTR __mep@?atomic_get_and_set64@bhapi@@$$FYA_JPA_J_J@Z ?atomic_get_and_set64@bhapi@@YA_JPA_J_J@Z ENDP ; bhapi::atomic_get_and_set64 ; Function compile flags: /Odt .text .global ?atomic_or@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_or ?atomic_or@bhapi@@$$FYAHPAHH@Z: ; bhapi::atomic_or ; .proc.def D:I(II) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 50 : EXPORT_BHAPI int32 bhapi::atomic_or (int32 *value, int32 orValue) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5621 $L5621: ret .end ?atomic_or@bhapi@@$$FYAHPAHH@Z ; bhapi::atomic_or ; .proc.end.i4 text ENDS PUBLIC ?atomic_or@bhapi@@YAHPAHH@Z ; bhapi::atomic_or PUBLIC __mep@?atomic_or@bhapi@@$$FYAHPAHH@Z ; COMDAT __mep@?atomic_or@bhapi@@$$FYAHPAHH@Z data SEGMENT __mep@?atomic_or@bhapi@@$$FYAHPAHH@Z TOKEN 06000041 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_or@bhapi@@YAHPAHH@Z text SEGMENT ?atomic_or@bhapi@@YAHPAHH@Z PROC NEAR ; bhapi::atomic_or, COMDAT jmp DWORD PTR __mep@?atomic_or@bhapi@@$$FYAHPAHH@Z ?atomic_or@bhapi@@YAHPAHH@Z ENDP ; bhapi::atomic_or ; Function compile flags: /Odt .text .global ?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_or64 ?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z: ; bhapi::atomic_or64 ; .proc.def D:J(IJ) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 51 : EXPORT_BHAPI int64 bhapi::atomic_or64 (int64 *value, int64 orValue) { return 0; } ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5633 $L5633: ret .end ?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z ; bhapi::atomic_or64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_or64@bhapi@@YA_JPA_J_J@Z ; bhapi::atomic_or64 PUBLIC __mep@?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z ; COMDAT __mep@?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z data SEGMENT __mep@?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z TOKEN 06000042 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_or64@bhapi@@YA_JPA_J_J@Z text SEGMENT ?atomic_or64@bhapi@@YA_JPA_J_J@Z PROC NEAR ; bhapi::atomic_or64, COMDAT jmp DWORD PTR __mep@?atomic_or64@bhapi@@$$FYA_JPA_J_J@Z ?atomic_or64@bhapi@@YA_JPA_J_J@Z ENDP ; bhapi::atomic_or64 ; Function compile flags: /Odt .text .global ?atomic_set@bhapi@@$$FYAXPAHH@Z ; bhapi::atomic_set ?atomic_set@bhapi@@$$FYAXPAHH@Z: ; bhapi::atomic_set ; .proc.def D:V(II) ; Function Header: ; max stack depth = 0 ; function size = 1 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 52 : EXPORT_BHAPI void bhapi::atomic_set (int32 *value, int32 newValue) {} $L5645: ret .end ?atomic_set@bhapi@@$$FYAXPAHH@Z ; bhapi::atomic_set ; .proc.end.void text ENDS PUBLIC ?atomic_set@bhapi@@YAXPAHH@Z ; bhapi::atomic_set PUBLIC __mep@?atomic_set@bhapi@@$$FYAXPAHH@Z ; COMDAT __mep@?atomic_set@bhapi@@$$FYAXPAHH@Z data SEGMENT __mep@?atomic_set@bhapi@@$$FYAXPAHH@Z TOKEN 06000043 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_set@bhapi@@YAXPAHH@Z text SEGMENT ?atomic_set@bhapi@@YAXPAHH@Z PROC NEAR ; bhapi::atomic_set, COMDAT jmp DWORD PTR __mep@?atomic_set@bhapi@@$$FYAXPAHH@Z ?atomic_set@bhapi@@YAXPAHH@Z ENDP ; bhapi::atomic_set ; Function compile flags: /Odt .text .global ?atomic_set64@bhapi@@$$FYAXPA_J_J@Z ; bhapi::atomic_set64 ?atomic_set64@bhapi@@$$FYAXPA_J_J@Z: ; bhapi::atomic_set64 ; .proc.def D:V(IJ) ; Function Header: ; max stack depth = 0 ; function size = 1 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 53 : EXPORT_BHAPI void bhapi::atomic_set64 (int64 *value, int64 newValue) {} $L5657: ret .end ?atomic_set64@bhapi@@$$FYAXPA_J_J@Z ; bhapi::atomic_set64 ; .proc.end.void text ENDS PUBLIC ?atomic_set64@bhapi@@YAXPA_J_J@Z ; bhapi::atomic_set64 PUBLIC __mep@?atomic_set64@bhapi@@$$FYAXPA_J_J@Z ; COMDAT __mep@?atomic_set64@bhapi@@$$FYAXPA_J_J@Z data SEGMENT __mep@?atomic_set64@bhapi@@$$FYAXPA_J_J@Z TOKEN 06000044 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_set64@bhapi@@YAXPA_J_J@Z text SEGMENT ?atomic_set64@bhapi@@YAXPA_J_J@Z PROC NEAR ; bhapi::atomic_set64, COMDAT jmp DWORD PTR __mep@?atomic_set64@bhapi@@$$FYAXPA_J_J@Z ?atomic_set64@bhapi@@YAXPA_J_J@Z ENDP ; bhapi::atomic_set64 ; Function compile flags: /Odt .text .global ?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z ; bhapi::atomic_test_and_set ?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z: ; bhapi::atomic_test_and_set ; .proc.def D:I(III) ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 54 : EXPORT_BHAPI int32 bhapi::atomic_test_and_set (int32 *value, int32 newValue, int32 testAgains) { return 0; } ldc.i.0 0 ; i32 0x0 br.s $L5669 $L5669: ret .end ?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z ; bhapi::atomic_test_and_set ; .proc.end.i4 text ENDS PUBLIC ?atomic_test_and_set@bhapi@@YAHPAHHH@Z ; bhapi::atomic_test_and_set PUBLIC __mep@?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z ; COMDAT __mep@?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z data SEGMENT __mep@?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z TOKEN 06000045 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_test_and_set@bhapi@@YAHPAHHH@Z text SEGMENT ?atomic_test_and_set@bhapi@@YAHPAHHH@Z PROC NEAR ; bhapi::atomic_test_and_set, COMDAT jmp DWORD PTR __mep@?atomic_test_and_set@bhapi@@$$FYAHPAHHH@Z ?atomic_test_and_set@bhapi@@YAHPAHHH@Z ENDP ; bhapi::atomic_test_and_set ; Function compile flags: /Odt .text .global ?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z ; bhapi::atomic_test_and_set64 ?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z: ; bhapi::atomic_test_and_set64 ; .proc.def D:J(IJJ) ; Function Header: ; max stack depth = 1 ; function size = 5 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 55 : EXPORT_BHAPI int64 bhapi::atomic_test_and_set64 (int64 *value, int64 newValue, int64 testAgainst) { return 0; } ldc.i.0 0 ; i64 0x0 conv.i8 br.s $L5681 $L5681: ret .end ?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z ; bhapi::atomic_test_and_set64 ; .proc.end.i8 text ENDS PUBLIC ?atomic_test_and_set64@bhapi@@YA_JPA_J_J1@Z ; bhapi::atomic_test_and_set64 PUBLIC __mep@?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z ; COMDAT __mep@?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z data SEGMENT __mep@?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z TOKEN 06000046 ; Function compile flags: /Odt data ENDS ; COMDAT ?atomic_test_and_set64@bhapi@@YA_JPA_J_J1@Z text SEGMENT ?atomic_test_and_set64@bhapi@@YA_JPA_J_J1@Z PROC NEAR ; bhapi::atomic_test_and_set64, COMDAT jmp DWORD PTR __mep@?atomic_test_and_set64@bhapi@@$$FYA_JPA_J_J1@Z ?atomic_test_and_set64@bhapi@@YA_JPA_J_J1@Z ENDP ; bhapi::atomic_test_and_set64 ; Function compile flags: /Odt .text .global ?get_stack_frame@bhapi@@$$FYAPAXXZ ; bhapi::get_stack_frame ?get_stack_frame@bhapi@@$$FYAPAXXZ: ; bhapi::get_stack_frame ; .proc.def D:I() ; Function Header: ; max stack depth = 1 ; function size = 4 bytes ; local varsig tk = 0x0 ; Exception Information: ; 0 handlers, each consisting of filtered handlers ; .proc.beg ; 56 : EXPORT_BHAPI void * bhapi::get_stack_frame (void) { return NULL; } ldc.i.0 0 ; i32 0x0 br.s $L5693 $L5693: ret .end ?get_stack_frame@bhapi@@$$FYAPAXXZ ; bhapi::get_stack_frame ; .proc.end.i4 text ENDS PUBLIC ?get_stack_frame@bhapi@@YAPAXXZ ; bhapi::get_stack_frame PUBLIC __mep@?get_stack_frame@bhapi@@$$FYAPAXXZ ; COMDAT __mep@?get_stack_frame@bhapi@@$$FYAPAXXZ data SEGMENT __mep@?get_stack_frame@bhapi@@$$FYAPAXXZ TOKEN 06000047 ; Function compile flags: /Odt data ENDS ; COMDAT ?get_stack_frame@bhapi@@YAPAXXZ text SEGMENT ?get_stack_frame@bhapi@@YAPAXXZ PROC NEAR ; bhapi::get_stack_frame, COMDAT jmp DWORD PTR __mep@?get_stack_frame@bhapi@@$$FYAPAXXZ ?get_stack_frame@bhapi@@YAPAXXZ ENDP ; bhapi::get_stack_frame text ENDS END
30.609524
147
0.737917
9a5727eceff3c37bbd139a5e3488d1534a3f0bca
849
asm
Assembly
Program1(SubThree)/SubThree.asm
TomasOchoa/CSCI-231-Program1
1850d51a0078e8423e07bbf1a0e8b6b5b962854f
[ "MIT" ]
null
null
null
Program1(SubThree)/SubThree.asm
TomasOchoa/CSCI-231-Program1
1850d51a0078e8423e07bbf1a0e8b6b5b962854f
[ "MIT" ]
null
null
null
Program1(SubThree)/SubThree.asm
TomasOchoa/CSCI-231-Program1
1850d51a0078e8423e07bbf1a0e8b6b5b962854f
[ "MIT" ]
null
null
null
;// Subtracting three integers (SubThree.asm) INCLUDE Irvine32.inc ;// Data segment .data Rval SWORD ? Int1 SWORD 26 Int2 SWORD 30 Int3 SWORD 40 ;// Code Segment .code main PROC ;// AX register is lower half or EAX register ;// Therfore clear out the upper half with zeros MOV EAX, 0 ;// EAX = 0000 - 0000 - 0000 - 0000 ;// | AX | ;// | AH | AL | ;// Expression: Rval = (Int1 - Int2 - Int3) MOV AX, Int1 ;// AX = 26 SUB AX, Int2 ;// AX = (26-30) = -4 SUB AX, Int3 ;// AX = (-4 - 40) = -44 MOV Rval, AX ;// Rval = -44 ;// This means EAX should look like |00|00|FF|D4| ;// |AH|AL| ;// | AX | ;// | EAX | CALL DumpRegs ;// Display registers exit main ENDP END main
22.342105
56
0.485277
c9c11a422c7781c4b16cd896c07e82e462679244
687
asm
Assembly
oeis/036/A036097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036097.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036097: Centered cube numbers: (n+1)^19+n^19. ; Submitted by Christian Krause ; 1,524289,1162785755,276040168411,19348364235069,628433226338621,12008254925383639,155514083261229015,1494966905748847961,11350851717672992089,71159090448414546291,380639089819037473139,1781400289746069037525,7438224249324360507861,28144682159479920256559,97726241926445329278511,314630299411065648266289,947307781040489001204785,2686655001015651265481611,7221299655660313589123979,18491376640331026125580781,45313473853349391771396589,106680448140609076207724295,242115000837615863633192711 add $0,1 lpb $0 mov $3,$2 mov $2,$1 cmp $3,0 mul $3,$0 sub $0,1 pow $3,19 add $1,$3 lpe mov $0,$1
42.9375
492
0.842795
72be47e06c13d73c21ee9b96d9db98f587e9c820
431
asm
Assembly
oeis/289/A289849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/289/A289849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/289/A289849.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A289849: Cardinality of the maximal set of ordered factor pairs such that a Quasi-Factor Pair Latin Square of order n exists. ; Submitted by Christian Krause ; 1,2,2,3,2,4,2,4,3,4,2,5,2,4,4,5,2,6,2,5,4,4,2,6,3,4,4,5,2 add $0,1 mov $2,2 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mod $4,$2 add $2,1 cmp $4,0 cmp $4,0 sub $3,$4 lpe add $5,1 lpb $0 dif $0,$2 add $6,$5 lpe lpe mov $0,$6 add $0,1
17.24
127
0.575406
8509a40d0eac247a282d1c4c8e1213204ffb5893
61
asm
Assembly
src/main/fragment/mos6502-common/pvom1=_deref_qvoc1_minus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pvom1=_deref_qvoc1_minus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pvom1=_deref_qvoc1_minus_vbuc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c1} sec sbc #{c2} sta {m1} lda {c1}+1 sbc #0 sta {m1}+1
7.625
10
0.557377
460b19ace667842d9014a559593de3805466e8aa
520
asm
Assembly
oeis/316/A316711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/316/A316711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/316/A316711.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A316711: Decimal expansion of s:= t/(t - 1), with the tribonacci constant t = A058265. ; Submitted by Christian Krause ; 2,1,9,1,4,8,7,8,8,3,9,5,3,1,1,8,7,4,7,0,6,1,3,5,4,2,6,8,2,2,7,5,1,7,2,9,3,4,7,4,6,9,1,0,2,1,8,7,4,2,8,8,0,9,1,0,0,9,7,8,1,3,3,8,6,1,7,6,8,5,9,4,8,0,0,4,9,7,0,1,4,6,1,1,1,7,9,6,6,6,7,0,0,2,1,8,3,0,6 mov $1,1 mov $2,1 mov $3,$0 mul $3,4 lpb $3 mul $1,2 add $1,$2 add $2,$1 pow $2,2 div $2,$1 mul $1,2 sub $3,1 lpe add $1,$2 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
20.8
199
0.55
d774cf219b26120e1004416631eb9e2ffd5929df
1,138
asm
Assembly
tests/parsing/dot_repeat.asm
fengjixuchui/sjasmplus
df0fabd2411bf89e23637fce46d273f52dafbe16
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/parsing/dot_repeat.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/parsing/dot_repeat.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
; dot repeater is partially tested in docs_examples, here are more complex cases and errors .16 ld (hl),c ; 16x 0x71 x: .( ( 2*2 ) + 12 ) ret z ; 16x 0xC8 .(x) ld (hl),d ; 16x 0x72 ;; syntax errors .2.3 nop ; there must be space after repeat-counter . 16 nop ; but no space after dot . (16) nop .-1 nop .(zz) nop ; undefined label .16+2 nop ; expressions must be in parentheses .1 +2 nop ; expressions must be in parentheses (this one is ugly :/ ) ;; value errors .0 nop ; counter must be positive value .(x-32) nop ; error should show calculated repeat-counter value ;; whole expression must be enclosed in parentheses (did work as "x7" up to v1.17.0) .(-1) +8 nop ; error -1 count .(4-2) and 1 ; counter example why the above is NOT harmless (revealed in v1.17.0) ; this produces 2x "and 1" (in v1.17.0 it does instead add `and 1` to expression) .(5-3 and 2 ; parentheses are not closed .(6-4)) and 3 ; one too many closing parentheses
40.642857
95
0.572056
ff8e794037140bddd6b1d4ff49c6da6378ba7137
2,812
asm
Assembly
SP1-Lab9/src/Lab9/longop.asm
JackShen1/assembly-labs
f06cab6571c712a4483a63f264cfea30db44c4a9
[ "MIT" ]
4
2021-02-22T13:14:00.000Z
2021-03-09T14:51:50.000Z
SP1-Lab9/src/Lab9/longop.asm
JackShen1/assembly-labs
f06cab6571c712a4483a63f264cfea30db44c4a9
[ "MIT" ]
null
null
null
SP1-Lab9/src/Lab9/longop.asm
JackShen1/assembly-labs
f06cab6571c712a4483a63f264cfea30db44c4a9
[ "MIT" ]
null
null
null
.586 .model flat, c .data x dd 0h x1 dd 0h x2 dd 0h b dd 0 fractionalPart db ? two dd 2 buf dd 80 dup(0) decCode db ? buffer dd 128 dup(?) .code Mul_N_x_32_LONGOP proc push ebp mov ebp, esp mov esi, [ebp + 16] mov edi, [ebp + 12] mov ebx, [ebp + 8] mov x, ebx mov ecx, 8 xor ebx, ebx @cycle1: mov eax, dword ptr[edi + 8 * ebx] mul x mov dword ptr[esi + 8 * ebx], eax mov dword ptr[esi + 8 * ebx + 4], edx inc ebx dec ecx jnz @cycle1 mov ecx, 8 xor ebx, ebx @cycle2: mov eax, dword ptr[edi + 8 * ebx + 4] mul x clc adc eax, dword ptr[esi + 8 * ebx + 4] mov dword ptr[esi + 8 * ebx + 4], eax clc adc edx, dword ptr[esi + 8 * ebx + 8] mov dword ptr[esi + 8 * ebx + 8], edx inc ebx dec ecx jnz @cycle2 pop ebp ret 12 Mul_N_x_32_LONGOP endp DIV_LONGOP proc push ebp mov ebp, esp mov esi, [ebp + 20] ; number mov edi, [ebp + 16] ;integer mov ebx, [ebp + 12] ;fractional mov eax, [ebp + 8] ; bytes mov x, eax push ebx xor edx, edx mov ecx, x dec x mov ebx,x @cycle : push ecx mov ecx, 10 mov eax, dword ptr[esi + 4 * ebx] div ecx mov fractionalPart, dl mov dword ptr[edi + 4 * ebx], eax dec ebx pop ecx dec ecx jnz @cycle pop ebx mov al, fractionalPart mov byte ptr[ebx], al pop ebp ret 16 DIV_LONGOP endp StrToDec_LONGOP proc push ebp mov ebp, esp mov esi, [ebp + 20] ;str code mov edi, [ebp + 16] ;dec code mov eax, [ebp + 12] mov x1, eax ; number of dd mov eax, [ebp + 8] mov x2, eax ; bytes on screan push esi push edi push esi push offset buffer push x1 call COPY_LONGOP pop edi pop esi mov b, 0 xor ecx, ecx xor ebx, ebx @cycle: push ecx push edi push esi push offset buf push offset decCode push x1 call DIV_LONGOP pop edi mov ebx, b mov al, byte ptr[decCode] add al, 48 mov byte ptr[edi + ebx], al xor ecx, ecx @cycleInner: mov eax, dword ptr[buf + 4 * ecx] mov dword ptr[esi + 4 * ecx], eax mov dword ptr[buf + 4 * ecx], 0 inc ecx cmp ecx, x1 jl @cycleInner pop ecx inc ecx inc b cmp ecx, x2 jl @cycle mov ebx, x2 mov eax, x2 xor edx, edx div two mov x2, eax dec ebx xor ecx, ecx @cycle1: mov al, byte ptr[edi + ecx] mov ah, byte ptr[edi + ebx] mov byte ptr[edi + ecx], ah mov byte ptr[edi + ebx], al dec ebx inc ecx cmp ecx, x2 jl @cycle1 push offset buffer push esi push x2 call COPY_LONGOP pop ebp ret 16 StrToDec_LONGOP endp COPY_LONGOP proc push ebp mov ebp, esp mov esi, [ebp + 16] mov edi, [ebp + 12] mov edx, [ebp + 8] mov ecx, 0 @cycle: mov eax, dword ptr[esi + 4 * ecx] mov dword ptr[edi + 4 * ecx], eax inc ecx cmp ecx, edx jne @cycle pop ebp ret 12 COPY_LONGOP endp end
12.553571
48
0.603485
75233757e39dffa25e1ca13c294e3fb83eb5ecbb
776
asm
Assembly
oeis/037/A037992.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037992.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037992.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037992: Smallest number with 2^n divisors. ; Submitted by Jamie Morken(m3) ; 1,2,6,24,120,840,7560,83160,1081080,17297280,294053760,5587021440,128501493120,3212537328000,93163582512000,2888071057872000,106858629141264000,4381203794791824000,188391763176048432000,8854412869274276304000,433866230594439538896000,22994910221505295561488000,1356699703068812438127792000,82758681887197558725795312000,5544831686442236434628285904000,393683049737398786858608299184000,28738862630830111440678405840432000,2270370147835578803813594061394128000,183899981974681883108901118972924368000 mov $1,1 mov $2,1 lpb $0 mov $3,$2 lpb $3 add $2,1 mov $4,$1 gcd $4,$2 div $4,$2 sub $4,1 cmp $4,0 sub $3,$4 lpe sub $0,1 add $2,1 mul $1,$2 lpe mov $0,$1
33.73913
501
0.791237
919bf30fcd8dd978e7e6ebd06cf742e302231325
446
asm
Assembly
oeis/037/A037573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037573.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037573: Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,2. ; Submitted by Jamie Morken(s1) ; 2,17,138,1106,8849,70794,566354,4530833,36246666,289973330,2319786641,18558293130,148466345042,1187730760337,9501846082698,76014768661586,608118149292689,4864945194341514 mov $3,1 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,7 add $2,$1 add $3,$2 sub $2,3 mod $2,2 lpe mov $0,$3 add $0,1
24.777778
172
0.721973
d6fcc593a16487af9de37acefe4fb649385b810d
616
asm
Assembly
oeis/007/A007685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/007/A007685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/007/A007685.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A007685: a(n) = Product_{k=1..n} binomial(2*k,k). ; Submitted by Jon Maiga ; 1,2,12,240,16800,4233600,3911846400,13425456844800,172785629592576000,8400837310791045120000,1552105098192510332190720000,1094904603628138948657963991040000,2960792853328653706847125274154762240000,30794022150329995743434211126374020153344000000,1235351468995928307241052874072296016883639910400000000,191624656199005289117030164014966858844868351474270208000000000,115181823081714016794527246627880245351548418202811411590021120000000000 mov $1,2 lpb $0 mov $2,2 mul $2,$0 bin $2,$0 sub $0,1 mul $1,$2 lpe mov $0,$1 div $0,2
41.066667
440
0.842532
763fc34fb46ae34cf80ffbc52b5dac2d7af74c5a
8,349
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_1148.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_1148.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_1148.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 %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1cf31, %r14 nop nop nop sub $37020, %r9 mov $0x6162636465666768, %r11 movq %r11, %xmm0 vmovups %ymm0, (%r14) nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0x9685, %rax nop nop nop and $16768, %rdi mov (%rax), %r11d nop nop sub %rcx, %rcx lea addresses_normal_ht+0x1c885, %r14 nop nop nop nop nop xor %rax, %rax movb $0x61, (%r14) nop nop dec %rdi lea addresses_WC_ht+0x5885, %rdi nop nop nop nop inc %rbx movb (%rdi), %cl cmp $30907, %rax lea addresses_UC_ht+0x1a515, %r9 nop nop nop cmp $54658, %r14 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 movups %xmm6, (%r9) nop nop nop nop sub $39910, %rbx lea addresses_A_ht+0x1e485, %rsi lea addresses_UC_ht+0x3599, %rdi nop nop nop nop xor $62155, %r9 mov $109, %rcx rep movsq nop nop cmp $73, %r9 lea addresses_D_ht+0x1b685, %rdi nop nop nop xor %r9, %r9 movb $0x61, (%rdi) nop nop nop xor $22864, %r14 lea addresses_A_ht+0xaa05, %rdi xor $35739, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm6 vmovups %ymm6, (%rdi) nop cmp $59074, %r9 lea addresses_WT_ht+0xf085, %rcx clflush (%rcx) nop add %r9, %r9 movups (%rcx), %xmm5 vpextrq $0, %xmm5, %rax nop nop nop add $64188, %rcx lea addresses_WC_ht+0x56c5, %rsi lea addresses_A_ht+0x1c5c5, %rdi cmp %rax, %rax mov $38, %rcx rep movsl nop nop nop nop and %rdi, %rdi lea addresses_A_ht+0x1a341, %rax nop nop nop nop and $32245, %r9 mov (%rax), %edi nop cmp %rbx, %rbx lea addresses_D_ht+0x32c5, %rbx clflush (%rbx) nop nop nop nop nop xor $60879, %r14 mov $0x6162636465666768, %r9 movq %r9, (%rbx) nop nop nop nop nop add %rbx, %rbx lea addresses_WT_ht+0x4d85, %rbx nop nop nop nop nop inc %r11 movb $0x61, (%rbx) nop nop nop sub $32080, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r9 push %rax push %rbx push %rdx // Store lea addresses_RW+0x58a5, %rbx nop mfence mov $0x5152535455565758, %r14 movq %r14, %xmm1 movups %xmm1, (%rbx) nop nop nop sub $4996, %r14 // Store lea addresses_D+0x14cb7, %r11 sub %r9, %r9 mov $0x5152535455565758, %r15 movq %r15, %xmm5 movups %xmm5, (%r11) nop nop nop and $34782, %r15 // Store lea addresses_UC+0xf005, %r14 nop nop xor %r15, %r15 mov $0x5152535455565758, %r11 movq %r11, (%r14) nop nop nop and $24718, %r14 // Store lea addresses_WC+0xf695, %r9 nop nop nop nop nop and %rbx, %rbx mov $0x5152535455565758, %rax movq %rax, %xmm6 movups %xmm6, (%r9) nop nop nop sub $32607, %r15 // Faulty Load lea addresses_UC+0x18885, %rax add %r15, %r15 movntdqa (%rax), %xmm1 vpextrq $1, %xmm1, %rbx lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rdx pop %rbx pop %rax pop %r9 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'00': 2118, '45': 19431, '49': 235, '48': 45} 45 45 00 00 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 00 00 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 00 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 00 00 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 00 00 45 00 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 00 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 00 45 00 00 49 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 49 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 49 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 00 45 45 45 45 45 45 45 45 45 45 45 45 */
31.269663
2,999
0.653252
104cc3b2c2c89b2472b8723ec1c0e39813dfbd5b
1,517
asm
Assembly
libsrc/graphics/pc88/clsgraph.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/graphics/pc88/clsgraph.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/graphics/pc88/clsgraph.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; NEC PC8001 graphics library ; by Stefano Bodrato, 2018 SECTION code_clib PUBLIC cleargraphics PUBLIC _cleargraphics EXTERN pc88bios ; ; $Id: clsgraph.asm $ ; ; ****************************************************************** ; ; Clear graphics area, i.e. reset all bits and sets graphics mode ; ; Design & programming by Gunther Strube, Copyright (C) InterLogic 1995 ; ported by Stefano Bodrato ; ; Registers changed after return: ; a.bcdehl/ixiy same ; .f....../.... different ; .cleargraphics ._cleargraphics ; in a,($71) ; current ROM bank ; push af xor a ld ($E6B8),a ; Hide function key bar cpl ld ($E6B9),a ; Color/Monochrome switch (monochrome supports underline attribute, etc..) ;out ($71),a ; main ROM bank ld a,$98 ld ($E6B4),a ; Default Text attribute (0=default, $98=graphics) ld b,80 ; columns ld c,25 ; rows ld a,($E6A7) ; CursorMode res 0,a ; hide cursor ld ($E6A7),a or $80 ; complete CRTC command for cursor mode ld ($E6A8),a ; CursorCommand ;call $6f6b ; CRTSET ld ix,$6f6b ; CRTSET call pc88bios ; pop af ; out ($71),a ; restore previous ROM bank ; now let's fill the text area with NUL in a,(0x32) push af res 4,a out (0x32),a ld hl,0xF3C8 ; LD HL,(E6C4h) could be also good if you are in N88 BASIC ld a,25 loop: ld d,h ld e,l inc de ld (hl),0 ld bc,80 ldir ld de,40 ; skip attribute area add hl,de dec a jr nz,loop pop af out (0x32),a ret
18.5
93
0.603164
503c10be700bbb5cceead3e13fbe07409de9fbe5
396
asm
Assembly
oeis/121/A121324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/121/A121324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/121/A121324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A121324: Number of digits in quotient {R_(n*R_n)}/(R_n)^2, where R_n=A002275(n),n*R_n=A053422(n). ; 1,19,328,4437,55546,666655,7777764,88888873,999999982,11111111091,122222222200,1333333333309,14444444444418,155555555555527,1666666666666636,17777777777777745,188888888888888854,1999999999999999963 add $0,1 mov $3,$0 lpb $0 sub $0,1 add $2,$3 trn $2,2 mul $3,10 lpe mov $0,$2 add $0,1
28.285714
199
0.75
a39e81ab4f5ae01bb8c63357188357cd21e1d3b7
779
asm
Assembly
oeis/207/A207063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/207/A207063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/207/A207063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A207063: a(n) is the smallest number larger than a(n-1) with mutual Hamming distance 2 and a(1)=0. ; Submitted by Jamie Morken(s4) ; 0,3,5,6,10,12,15,23,27,29,30,46,54,58,60,63,95,111,119,123,125,126,190,222,238,246,250,252,255,383,447,479,495,503,507,509,510,766,894,958,990,1006,1014,1018,1020,1023,1535,1791,1919,1983,2015,2031,2039,2043,2045,2046,3070,3582,3838,3966,4030,4062,4078,4086,4090,4092,4095,6143,7167,7679,7935,8063,8127,8159,8175,8183,8187,8189,8190,12286,14334,15358,15870,16126,16254,16318,16350,16366,16374,16378,16380,16383,24575,28671,30719,31743,32255,32511,32639,32703 seq $0,89633 ; Numbers having no more than one 0 in their binary representation. seq $0,1969 ; Evil numbers: nonnegative integers with an even number of 1's in their binary expansion.
111.285714
460
0.768935
ae6a39c444441089a1e323ebc9bd470dd42e9721
1,027
asm
Assembly
2nd Assignment/ASSEMBLY_1C.asm
BeenCoding/Microprocessors-NTUA
354b27a01918a2ddb64e852714599b147c1602c2
[ "MIT" ]
null
null
null
2nd Assignment/ASSEMBLY_1C.asm
BeenCoding/Microprocessors-NTUA
354b27a01918a2ddb64e852714599b147c1602c2
[ "MIT" ]
null
null
null
2nd Assignment/ASSEMBLY_1C.asm
BeenCoding/Microprocessors-NTUA
354b27a01918a2ddb64e852714599b147c1602c2
[ "MIT" ]
null
null
null
ARXH: IN 10H MVI A,FFH ; FFH=255 decimal LXI B,0900H ; BC pair has memory location 0900H LXI D,0000H ; INIT DE PAIR MVI L,00H ; L IS A COUNTER LOOPA: STAX B ; store accumulator to register pair HL DCR A ; A--; INX B ; Move one memory space down CPI 00H JNZ LOOPA ;FINISHED INIT MATRIX STARTING IN 0900H LXI D,0900H ; DE pair has memory location 0900H DATA: LDAX D ;load contents of DE mem loc to A CPI 20H ; Comparing A with 20H JC NEXT ; If Carry = 1 then A < 20H CPI 70H ; Comparin A with 70H JC IT_IS ; If Carry = 1 then A < 70H. MIGHTBE: JZ IT_IS ; If not might be equal to 70H. JMP NEXT ; If Z = 1 then A = 70H. Else jump to next IT_IS: INR C ; If all checks passed, then counter ++. NEXT: INX D ; Move one memory space down INR L ; L++ MOV A,L CPI 00H ; compare L to 0 (256) JNZ DATA MOV A,C ; Load content of C to A. CMA ; Getting A ready for printing. STA 3000H ; Printing content of A which is C. END
30.205882
58
0.626095
0740f731f177b2e0e84e2f310d4ed2cef1a4d9a7
1,865
asm
Assembly
programs/oeis/199/A199944.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/199/A199944.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/199/A199944.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A199944: Number of -n..n arrays x(0..2) of 3 elements with zeroth through 2nd differences all nonzero. ; 2,36,142,376,778,1404,2294,3504,5074,7060,9502,12456,15962,20076,24838,30304,36514,43524,51374,60120,69802,80476,92182,104976,118898,134004,150334,167944,186874,207180,228902,252096,276802,303076,330958,360504,391754,424764,459574,496240,534802,575316,617822,662376,709018,757804,808774,861984,917474,975300,1035502,1098136,1163242,1230876,1301078,1373904,1449394,1527604,1608574,1692360,1779002,1868556,1961062,2056576,2155138,2256804,2361614,2469624,2580874,2695420,2813302,2934576,3059282,3187476,3319198,3454504,3593434,3736044,3882374,4032480,4186402,4344196,4505902,4671576,4841258,5015004,5192854,5374864,5561074,5751540,5946302,6145416,6348922,6556876,6769318,6986304,7207874,7434084,7664974,7900600,8141002,8386236,8636342,8891376,9151378,9416404,9686494,9961704,10242074,10527660,10818502,11114656,11416162,11723076,12035438,12353304,12676714,13005724,13340374,13680720,14026802,14378676,14736382,15099976,15469498,15845004,16226534,16614144,17007874,17407780,17813902,18226296,18645002,19070076,19501558,19939504,20383954,20834964,21292574,21756840,22227802,22705516,23190022,23681376,24179618,24684804,25196974,25716184,26242474,26775900,27316502,27864336,28419442,28981876,29551678,30128904,30713594,31305804,31905574,32512960,33128002,33750756,34381262,35019576,35665738,36319804,36981814,37651824,38329874,39016020,39710302,40412776,41123482,41842476,42569798,43305504,44049634,44802244,45563374,46333080,47111402,47898396,48694102,49498576,50311858,51134004,51965054,52805064,53654074,54512140,55379302,56255616,57141122,58035876,58939918,59853304,60776074,61708284,62649974,63601200 mov $1,4 mov $4,$0 gcd $0,2 div $1,$0 mov $2,$4 mul $2,10 add $1,$2 mov $3,$4 mul $3,$4 mov $2,$3 mul $2,14 add $1,$2 mul $3,$4 mov $2,$3 mul $2,8 add $1,$2
93.25
1,601
0.836461
5735be92879c77f97345d8cd4e530ce7c66e0d2f
691
asm
Assembly
oeis/001/A001081.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001081.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001081.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001081: a(n) = 16*a(n-1) - a(n-2). ; Submitted by Christian Krause ; 1,8,127,2024,32257,514088,8193151,130576328,2081028097,33165873224,528572943487,8424001222568,134255446617601,2139663144659048,34100354867927167,543466014742175624,8661355881006882817,138038228081367949448,2199950293420880308351,35061166466652716984168,558778713173022591438337,8905398244301708746029224,141927593195654317345029247,2261936092886167368774438728,36049049892983023583045990401,574522862194842209959961407688,9156316745224492335776336532607,145926545061397035162461423114024 mov $3,1 lpb $0 sub $0,1 mul $1,15 add $3,$1 add $2,$3 mov $1,$2 sub $3,$2 add $3,2 lpe mov $0,$1 mul $0,7 add $0,1
38.388889
489
0.819103
d9c08f74debaee0011b1880fda3aaf3e45885579
8,237
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1121.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_0xca_notsx.log_21829_1121.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_0xca_notsx.log_21829_1121.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x18f99, %rsi lea addresses_WC_ht+0x1ef99, %rdi nop add %r14, %r14 mov $68, %rcx rep movsq sub $62048, %r10 lea addresses_WC_ht+0x123b9, %r12 nop nop nop nop nop xor $54976, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm0 movups %xmm0, (%r12) nop nop nop nop nop xor $50273, %rdi lea addresses_A_ht+0x16219, %rsi lea addresses_UC_ht+0xe399, %rdi nop nop nop nop nop inc %r10 mov $12, %rcx rep movsw nop nop nop nop inc %rcx lea addresses_D_ht+0x1c021, %rsi lea addresses_A_ht+0x19d99, %rdi nop nop nop nop nop dec %r9 mov $50, %rcx rep movsl nop nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0xc099, %rsi lea addresses_WC_ht+0x15a71, %rdi cmp $10710, %r12 mov $9, %rcx rep movsq nop and %r10, %r10 lea addresses_WC_ht+0x15799, %rsi nop nop inc %rdx mov (%rsi), %rcx cmp %r10, %r10 lea addresses_A_ht+0x2799, %r14 nop nop nop nop nop cmp $9115, %r10 movl $0x61626364, (%r14) nop nop cmp %rdx, %rdx lea addresses_A_ht+0xf119, %rsi lea addresses_D_ht+0x1cd09, %rdi clflush (%rsi) sub %r10, %r10 mov $59, %rcx rep movsw nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x16488, %r10 nop xor %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, (%r10) nop nop dec %r9 lea addresses_normal_ht+0x1da59, %r9 clflush (%r9) nop nop nop sub $46098, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm5 vmovups %ymm5, (%r9) cmp %r14, %r14 lea addresses_UC_ht+0xab6b, %r10 dec %rsi movb $0x61, (%r10) nop nop and $26880, %r12 lea addresses_normal_ht+0x1ce19, %r10 and $24680, %rsi movb $0x61, (%r10) inc %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi // Store lea addresses_UC+0x19219, %r12 nop nop nop cmp %r15, %r15 mov $0x5152535455565758, %rax movq %rax, %xmm5 movups %xmm5, (%r12) nop nop nop nop nop add %rdi, %rdi // Store mov $0x299, %r15 nop nop and $39689, %rbp movb $0x51, (%r15) // Exception!!! nop nop nop nop mov (0), %rcx nop add $3386, %r15 // Store lea addresses_PSE+0x3f19, %rdi nop dec %rcx movl $0x51525354, (%rdi) nop dec %rcx // Store lea addresses_US+0xc391, %r8 nop add %r12, %r12 movb $0x51, (%r8) nop nop nop nop and %rax, %rax // Store lea addresses_WT+0x7159, %r12 nop cmp $18485, %r8 movl $0x51525354, (%r12) nop nop nop nop nop xor %rbp, %rbp // Faulty Load lea addresses_D+0x15f99, %r12 nop nop dec %rbp movb (%r12), %r15b lea oracles, %rcx and $0xff, %r15 shlq $12, %r15 mov (%rcx,%r15,1), %r15 pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
32.301961
2,999
0.654122
3f938accb48f6a97c8b845b6b9231ff9bec7df1d
249
asm
Assembly
programs/oeis/070/A070657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070657.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070657: n^6 mod 34. ; 0,1,30,15,16,19,8,9,4,21,26,25,2,33,32,13,18,17,18,13,32,33,2,25,26,21,4,9,8,19,16,15,30,1,0,1,30,15,16,19,8,9,4,21,26,25,2,33,32,13,18,17,18,13,32,33,2,25,26,21,4,9,8,19,16,15,30,1,0,1,30,15,16,19,8,9,4 pow $0,6 mod $0,34
41.5
205
0.610442
c028b26d554cd360cc6ebb168968b2caccfef226
259
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_loadSpritePalette.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_loadSpritePalette.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_loadSpritePalette.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void SMS_loadSpritePalette(void *palette) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_loadSpritePalette EXTERN asm_SMSlib_loadSpritePalette _SMS_loadSpritePalette: pop af pop hl push hl push af jp asm_SMSlib_loadSpritePalette
13.631579
43
0.795367
43d1ba426ff3646362a1250898d754aaf9241e0d
1,767
asm
Assembly
sin.asm
jvisser/md-mode1-mcd-asic-test
bfd68e4178551e8d3e86b17cae6cf17144050930
[ "CC0-1.0" ]
2
2022-01-30T15:12:21.000Z
2022-02-14T06:26:28.000Z
sin.asm
jvisser/md-mode1-mcd-asic-test
bfd68e4178551e8d3e86b17cae6cf17144050930
[ "CC0-1.0" ]
null
null
null
sin.asm
jvisser/md-mode1-mcd-asic-test
bfd68e4178551e8d3e86b17cae6cf17144050930
[ "CC0-1.0" ]
null
null
null
; In 5:11 fixed point format (asic trace table delta format) Sin: dc.w 0, 50, 100, 150, 200, 250, 300, 350, 399, 448, 497, 546, 594, 642, 689, 737 dc.w 783, 829, 875, 920, 965, 1009, 1052, 1095, 1137, 1179, 1219, 1259, 1299, 1337, 1375, 1412 dc.w 1448, 1483, 1517, 1550, 1583, 1614, 1644, 1674, 1702, 1730, 1756, 1781, 1806, 1829, 1851, 1872 dc.w 1892, 1910, 1928, 1944, 1959, 1973, 1986, 1998, 2008, 2017, 2025, 2032, 2038, 2042, 2045, 2047 dc.w 2048, 2047, 2045, 2042, 2038, 2032, 2025, 2017, 2008, 1998, 1986, 1973, 1959, 1944, 1928, 1910 dc.w 1892, 1872, 1851, 1829, 1806, 1781, 1756, 1730, 1702, 1674, 1644, 1614, 1583, 1550, 1517, 1483 dc.w 1448, 1412, 1375, 1337, 1299, 1259, 1219, 1179, 1137, 1095, 1052, 1009, 965, 920, 875, 829 dc.w 783, 737, 689, 642, 594, 546, 497, 448, 399, 350, 300, 250, 200, 150, 100, 50 dc.w 0, -50, -100, -150, -200, -250, -300, -350, -399, -448, -497, -546, -594, -642, -689, -737 dc.w -783, -829, -875, -920, -965, -1009, -1052, -1095, -1137, -1179, -1219, -1259, -1299, -1337, -1375, -1412 dc.w -1448, -1483, -1517, -1550, -1583, -1614, -1644, -1674, -1702, -1730, -1756, -1781, -1806, -1829, -1851, -1872 dc.w -1892, -1910, -1928, -1944, -1959, -1973, -1986, -1998, -2008, -2017, -2025, -2032, -2038, -2042, -2045, -2047 dc.w -2048, -2047, -2045, -2042, -2038, -2032, -2025, -2017, -2008, -1998, -1986, -1973, -1959, -1944, -1928, -1910 dc.w -1892, -1872, -1851, -1829, -1806, -1781, -1756, -1730, -1702, -1674, -1644, -1614, -1583, -1550, -1517, -1483 dc.w -1448, -1412, -1375, -1337, -1299, -1259, -1219, -1179, -1137, -1095, -1052, -1009, -965, -920, -875, -829 dc.w -783, -737, -689, -642, -594, -546, -497, -448, -399, -350, -300, -250, -200, -150, -100, -50
93
119
0.583475
d0283d521210560d38c00853cbb78a1e38ee4179
98
asm
Assembly
tests/std_cases/hello_world.asm
ZippyMagician/arsm
80e5d401649d43ed0640bece94593453695fc43f
[ "Apache-2.0" ]
5
2021-02-14T06:20:33.000Z
2021-08-08T19:03:11.000Z
tests/std_cases/hello_world.asm
ZippyMagician/arsm
80e5d401649d43ed0640bece94593453695fc43f
[ "Apache-2.0" ]
null
null
null
tests/std_cases/hello_world.asm
ZippyMagician/arsm
80e5d401649d43ed0640bece94593453695fc43f
[ "Apache-2.0" ]
null
null
null
str "Hello, World!" 10 .loop chr #[eh] inc eh ceq db 0 10 eh cjm :skip jmp :loop ..skip
10.888889
22
0.581633
7f1c6a0869192b0821023aea5d251553ef9df342
6,427
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_830.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_21829_830.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_21829_830.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x5318, %rbx nop nop sub $30348, %r9 mov (%rbx), %rdi nop nop nop sub %rbx, %rbx lea addresses_WT_ht+0x1eebc, %r9 and $46966, %r8 mov $0x6162636465666768, %rdi movq %rdi, (%r9) and %r12, %r12 lea addresses_WT_ht+0xe0cc, %rdi nop nop nop cmp %rdx, %rdx mov (%rdi), %r9 nop nop cmp %r9, %r9 lea addresses_WC_ht+0x182cc, %r8 nop cmp %r13, %r13 movups (%r8), %xmm3 vpextrq $1, %xmm3, %rdi nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0xd84c, %rdx xor $37234, %rdi mov (%rdx), %r13d nop nop nop add $17888, %r9 lea addresses_D_ht+0x11ccc, %r12 cmp %rdx, %rdx mov $0x6162636465666768, %rbx movq %rbx, %xmm2 vmovups %ymm2, (%r12) nop inc %rdi lea addresses_D_ht+0xb7cc, %r9 nop xor $17745, %rdx mov $0x6162636465666768, %r13 movq %r13, %xmm2 vmovups %ymm2, (%r9) nop nop nop nop and $45362, %r13 lea addresses_WC_ht+0x14cc, %rsi lea addresses_D_ht+0xa24c, %rdi clflush (%rsi) nop cmp $42957, %r12 mov $115, %rcx rep movsl nop nop nop nop nop and %rsi, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x63cc, %rsi nop nop nop add $26261, %rbx movl $0x51525354, (%rsi) nop nop nop cmp $54297, %rdi // Store lea addresses_A+0xcb4c, %rcx nop xor %rdi, %rdi mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop nop nop add %r14, %r14 // Faulty Load lea addresses_US+0xccc, %r10 nop nop nop nop nop xor %r12, %r12 movntdqa (%r10), %xmm3 vpextrq $0, %xmm3, %r14 lea oracles, %rcx and $0xff, %r14 shlq $12, %r14 mov (%rcx,%r14,1), %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': True}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_US', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': True, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.805882
2,999
0.65536
3d347f4a2cdffb1f7da8a32aa9c1013b6148d2c7
238
asm
Assembly
rustemu86/tests/asms/push_pop.asm
tomoyuki-nakabayashi/Rustemu86
70b5eee8f3bfd56cc7098edfba374b085f0faa56
[ "Apache-2.0" ]
3
2019-02-05T13:56:25.000Z
2019-02-07T05:27:30.000Z
rustemu86/tests/asms/push_pop.asm
tomoyuki-nakabayashi/Rustemu86
70b5eee8f3bfd56cc7098edfba374b085f0faa56
[ "Apache-2.0" ]
51
2018-07-22T00:48:48.000Z
2019-02-16T02:06:05.000Z
rustemu86/tests/asms/push_pop.asm
tomoyuki-nakabayashi/Rustemu86
70b5eee8f3bfd56cc7098edfba374b085f0faa56
[ "Apache-2.0" ]
null
null
null
bits 64 ; Expect uart recieve "CBA" mov rdx, 0x10000000 mov rsp, 0x0100 mov rax, 0x41 ; A push rax inc rax ; B push rax inc rax ; C push rax pop rbx mov [rdx], rbx ; C pop rbx mov [rdx], rbx ; B pop rbx mov [rdx], rbx ; A hlt
13.222222
27
0.634454
07ae476d434449c0214b6f1751c31e7af94f29fc
342
asm
Assembly
programs/oeis/193/A193432.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/193/A193432.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/193/A193432.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A193432: Number of divisors of n^2 + 1. ; 1,2,2,4,2,4,2,6,4,4,2,4,4,8,2,4,2,8,6,4,2,8,4,8,2,4,2,8,4,4,4,8,6,8,4,4,2,8,6,4,2,6,4,12,4,4,4,16,4,4,4,4,4,8,2,8,2,16,4,4,4,4,4,8,4,4,2,8,8,4,6,4,8,16,2,8,4,8,4,4,4,8,6,16,2,4,4,8,4,8,2,8,4,12,2,4,4,8,8,12 pow $0,2 seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
57
208
0.564327
d85c8ec05cf111194944ef0e913067f8728d2023
510
asm
Assembly
programs/oeis/056/A056119.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/056/A056119.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/056/A056119.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A056119: a(n) = n*(n+13)/2. ; 0,7,15,24,34,45,57,70,84,99,115,132,150,169,189,210,232,255,279,304,330,357,385,414,444,475,507,540,574,609,645,682,720,759,799,840,882,925,969,1014,1060,1107,1155,1204,1254,1305,1357,1410,1464,1519,1575,1632,1690,1749,1809,1870,1932,1995,2059,2124,2190,2257,2325,2394,2464,2535,2607,2680,2754,2829,2905,2982,3060,3139,3219,3300,3382,3465,3549,3634,3720,3807,3895,3984,4074,4165,4257,4350,4444,4539,4635,4732,4830,4929,5029,5130,5232,5335,5439,5544 add $0,7 bin $0,2 sub $0,21
72.857143
450
0.743137
fc9ceaf3ee43d25904d95fa1599d5de4f862887e
286
asm
Assembly
programs/oeis/329/A329835.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/329/A329835.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329835.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A329835: Beatty sequence for (9+sqrt(101))/10. ; 1,3,5,7,9,11,13,15,17,19,20,22,24,26,28,30,32,34,36,38,40,41,43,45,47,49,51,53,55,57,59,60,62,64,66,68,70,72,74,76,78,80,81,83,85,87,89,91,93,95,97,99,100,102,104,106,108,110,112,114,116,118,120 mov $1,$0 add $1,1 mul $1,40 div $1,21
35.75
196
0.657343
4099dfda52e7d2ca7c236bbee630e6f6cd05bbf0
1,183
asm
Assembly
engine/events/engine_flags.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
engine/events/engine_flags.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
engine/events/engine_flags.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
EngineFlagAction:: ; Do action b on engine flag de ; ; b = 0: reset flag ; = 1: set flag ; > 1: check flag, result in c ; ; Setting/resetting does not return a result. ; 16-bit flag ids are considered invalid, but it's nice ; to know that the infrastructure is there. ld a, d cp HIGH(NUM_ENGINE_FLAGS) jr z, .ceiling jr c, .read ; cp 0 can't set carry! jr .invalid ; There are only NUM_ENGINE_FLAGS engine flags, so ; anything beyond that is invalid too. .ceiling ld a, e cp LOW(NUM_ENGINE_FLAGS) jr c, .read ; Invalid flags are treated as flag 00. .invalid xor a ld e, a ld d, a ; Get this flag's location. .read ld hl, EngineFlags ; location add hl, de add hl, de ; bit add hl, de ; location ld e, [hl] inc hl ld d, [hl] inc hl ; bit ld c, [hl] ; What are we doing with this flag? ld a, b cp 1 jr c, .reset ; b = 0 jr z, .set ; b = 1 ; Return the given flag in c. .check ld a, [de] and c ld c, a ret ; Set the given flag. .set ld a, [de] or c ld [de], a ret ; Reset the given flag. .reset ld a, c cpl ; AND all bits except the one in question ld c, a ld a, [de] and c ld [de], a ret INCLUDE "data/engine_flags.asm"
14.083333
55
0.639899
3ab46b1b20b365bc6572a743c1b8397f84400ebf
111
asm
Assembly
libsrc/z80_crt0s/8080/sccz80/l_long_div_u.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/z80_crt0s/8080/sccz80/l_long_div_u.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/z80_crt0s/8080/sccz80/l_long_div_u.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION code_crt0_sccz80 PUBLIC l_long_div_u EXTERN l_long_divide l_long_div_u: ld a,1 jp l_long_divide
10.090909
24
0.81982
7221a42fe67aa4b0c4249a5c5ea076c4c50096a6
3,644
asm
Assembly
modules/core/Formatter - Sym.asm
vladikcomper/md-modules
24f652a036dc63f295173369dddfffb3be89bdd7
[ "MIT" ]
9
2018-01-22T06:44:43.000Z
2022-03-26T18:57:40.000Z
modules/core/Formatter - Sym.asm
vladikcomper/md-modules
24f652a036dc63f295173369dddfffb3be89bdd7
[ "MIT" ]
null
null
null
modules/core/Formatter - Sym.asm
vladikcomper/md-modules
24f652a036dc63f295173369dddfffb3be89bdd7
[ "MIT" ]
null
null
null
; =============================================================== ; --------------------------------------------------------------- ; Error handling and debugging modules ; 2016-2017, Vladikcomper ; --------------------------------------------------------------- ; String formatters : Symbols ; --------------------------------------------------------------- ; INPUT: ; d1 Value ; ; d7 .w Number of bytes left in buffer, minus one ; a0 String buffer ; a4 Buffer flush function ; ; OUTPUT: ; (a0)++ ASCII characters for the converted value ; ; WARNING! ; 1) Formatters can only use registers a3 / d0-d4 ; 2) Formatters should decrement d7 after each symbol write. ; 3) When d7 decrements below 0, a buffer flush function ; loaded in a4 should be called. The standard function ; usually renders buffer's contents on the screen (see ; "Console_FlushBuffer"), then resets the buffer. ; This function will reload d7, a0 and Carry flag. ; 4) If Carry flag is set after calling buffer flush function, ; formatter should halt all further processing and return, ; retaining the returned Carry bit. ; --------------------------------------------------------------- FormatSym_Handlers: ext.l d1 ; $00 ; handler for word bra.s FormatSym ; $02 ; --------------------------------------------------------------- jmp FormatSym(pc) ; $04 ; handler for longword ; --------------------------------------------------------------- ext.w d1 ; $08 ; handler for byte ext.l d1 FormatSym: btst #3, d3 ; is "display just label part so far" bit set? bne.s @0 ; if yes, branch pea FormatString_CodeHandlers+$40(pc); otherwise, display displacement after this routine is finished @0: movem.l d1/d3/a1-a2, -(sp) jsr GetSymbolByOffset(pc) ; IN: d1 = offset bne.s FormatSym_UnknownSymbol ; OUT: d0/Z = error status, d1 = displacement, a1 = symbol pointer move.l d1, (sp) ; replace offset stored in stack as D1 with displacement jsr DecodeSymbol(pc) ; IN: a1 = symbol pointer movem.l (sp)+, d1/d3/a1-a2 ; NOTICE: This doesn't affect CCR, so this routine still returns Carry FormatSym_Return: rts ; --------------------------------------------------------------- FormatSym_UnknownSymbol: movem.l (sp)+, d1/d3/a1-a2 btst #2, d3 ; is "draw <unknown> on error" bit set? beq.s FormatSym_ReturnNC ; if not, branch lea FormatSym_Str_Unknown(pc), a3 jmp FormatString_CodeHandlers+$52(pc) ; jump to code D0 (string) handler, but skip instruction that sets A3 ; --------------------------------------------------------------- FormatSym_ReturnNC: moveq #-1, d0 ; reset Carry, keep D0 an error code rts ; --------------------------------------------------------------- FormatSym_Str_Unknown: dc.b '<unknown>',0 ; --------------------------------------------------------------- ; INPUT: ; d1 .l Displacement ; --------------------------------------------------------------- FormatSym_Displacement: move.b #'+', (a0)+ dbf d7, @buffer_ok jsr (a4) bcs.s FormatSym_Return @buffer_ok: swap d1 ; swap displacement longword tst.w d1 ; test higher 16-bits of displacement beq FormatHex_Word_Swapped ; if bits are empty, display displacement as word bra FormatHex_LongWord_Swapped ; otherwise, display longword ; --------------------------------------------------------------- ; INPUT: ; d1 .l Offset ; d3 .b Control byte ; --------------------------------------------------------------- FormatSym_Offset: btst #3, d3 ; is "don't draw offset" flag set? bne.s FormatSym_Return ; WARNING: Should return NC jmp FormatHex_LongWord(pc)
36.079208
109
0.525247
29cbda9b4a2dec218355d5b41707cd48b0c3c66f
6,656
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_137.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_137.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_137.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x16873, %r14 nop nop nop nop cmp $18247, %rdx movups (%r14), %xmm1 vpextrq $1, %xmm1, %rbx nop xor %r12, %r12 lea addresses_A_ht+0x134cd, %r12 nop nop add $6204, %rsi movw $0x6162, (%r12) nop nop nop inc %r14 lea addresses_WT_ht+0x6449, %r10 nop nop nop nop nop cmp $29209, %r9 mov (%r10), %rbx nop nop nop nop nop cmp $11773, %r9 lea addresses_WC_ht+0x2713, %rdx nop nop xor $31226, %r9 movups (%rdx), %xmm7 vpextrq $1, %xmm7, %rbx nop nop nop nop sub $61198, %r10 lea addresses_UC_ht+0x5f73, %r10 nop nop nop sub %rsi, %rsi mov (%r10), %edx nop nop nop nop nop cmp $5888, %r14 lea addresses_A_ht+0xce47, %r9 nop nop nop cmp $36434, %r12 movb (%r9), %dl nop dec %r9 lea addresses_normal_ht+0x147d3, %r10 nop sub %r14, %r14 mov $0x6162636465666768, %rsi movq %rsi, (%r10) nop nop dec %r12 lea addresses_UC_ht+0x3e73, %rsi lea addresses_WC_ht+0xaa73, %rdi nop nop nop nop dec %r14 mov $112, %rcx rep movsw nop nop dec %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r8 push %rax push %rbp push %rdx // Store lea addresses_WC+0x18c4b, %r12 clflush (%r12) nop nop nop nop nop inc %rdx mov $0x5152535455565758, %rax movq %rax, %xmm6 movups %xmm6, (%r12) nop sub $45645, %r10 // Store lea addresses_D+0x19b89, %rax nop nop nop nop sub %r8, %r8 movb $0x51, (%rax) nop nop nop nop and $64814, %r15 // Store mov $0xef3, %r10 nop nop inc %rbp mov $0x5152535455565758, %r12 movq %r12, %xmm3 vmovups %ymm3, (%r10) nop nop nop sub $33089, %r12 // Faulty Load mov $0x53e0030000000473, %r15 nop nop nop nop nop cmp $33260, %r10 movb (%r15), %r8b lea oracles, %rax and $0xff, %r8 shlq $12, %r8 mov (%rax,%r8,1), %r8 pop %rdx pop %rbp pop %rax pop %r8 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'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.950495
2,999
0.654297
230079a4182b76968d49c7bcb126ebf690e5fe09
320
asm
Assembly
oeis/021/A021937.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021937.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021937.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021937: Decimal expansion of 1/933. ; Submitted by Jamie Morken(s2.) ; 0,0,1,0,7,1,8,1,1,3,6,1,2,0,0,4,2,8,7,2,4,5,4,4,4,8,0,1,7,1,4,8,9,8,1,7,7,9,2,0,6,8,5,9,5,9,2,7,1,1,6,8,2,7,4,3,8,3,7,0,8,4,6,7,3,0,9,7,5,3,4,8,3,3,8,6,9,2,3,9,0,1,3,9,3,3,5,4,7,6,9,5,6,0,5,5,7,3,4 seq $0,173833 ; 10^n - 3. div $0,933 mod $0,10
40
199
0.559375
72e57d4bffd50eb5d27c5b288d13f31abb90ec8f
87
asm
Assembly
public/wintab/wintabx/mgrclose.asm
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/public/wintab/wintabx/mgrclose.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/public/wintab/wintabx/mgrclose.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTMgrClose, 1, Wintab, -, 101
21.75
44
0.770115
7a23198b1a555a3f9c22366d9b8dc50560b7db4b
317
asm
Assembly
programs/oeis/066/A066209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/066/A066209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/066/A066209.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A066209: A053041(n)-10^(n-1). ; 0,0,2,0,0,2,6,0,8,0,10,8,12,4,5,0,16,8,18,0,5,12,22,8,0,16,8,8,28,20,30,0,32,24,10,8,36,28,17,0,40,2,42,12,35,36,46,32,41,0,2,40,52,8,10,32,14,48,58,20,60,52,26,0,10,56,66,20,38,50,70,8,72,64,50,64,10,74,78 mov $1,$0 mov $2,1 add $2,$0 lpb $1 mul $0,10 mod $0,$2 sub $1,1 lpe
26.416667
208
0.583596
227b5456dbf1375ec9bbf7c2a1f85e24f45a4ad1
364
asm
Assembly
programs/oeis/220/A220989.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/220/A220989.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/220/A220989.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A220989: 12^(2n+1) - 6 * 12^n + 1: the left Aurifeuillian factor of 12^(6n+3) + 1. ; 7,1657,247969,35821441,5159655937,743006877697,106993187463169,15407021359595521,2218611104160546817,319479999339664244737,46005119908998197280769,6624737266944778960896001,953962166440636632998608897 mov $1,12 pow $1,$0 mul $1,2 bin $1,2 sub $1,1 mul $1,6 add $1,7 mov $0,$1
30.333333
202
0.769231
814df6ce8954478da2b9041763812a06f30b4671
435
asm
Assembly
oeis/124/A124191.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/124/A124191.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/124/A124191.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A124191: a(n) = ((2 + 3*sqrt(2))^n - (2 - 3*sqrt(2))^n)/(2*sqrt(2)). ; Submitted by Jon Maiga ; 0,3,12,90,528,3372,20880,130728,815232,5091120,31777728,198386592,1238434560,7731150528,48262685952,301286851200,1880825008128,11741315949312,73296813911040,457565678934528,2856418110492672,17831591947054080,111316221335113728 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,4 mul $3,14 lpe mov $0,$1 mul $0,3
27.1875
228
0.705747
ab1ce0a61ef90e6fc71049c1f7321399a8d74024
4,494
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_261_692.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_261_692.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_261_692.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 %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x66d1, %r10 nop nop nop inc %rbp movl $0x61626364, (%r10) nop and %r8, %r8 lea addresses_UC_ht+0x1efd1, %rsi lea addresses_WC_ht+0x15091, %rdi clflush (%rsi) nop nop nop and %rax, %rax mov $12, %rcx rep movsq nop nop nop nop nop dec %r8 lea addresses_WT_ht+0x12269, %r8 nop dec %rax movb $0x61, (%r8) add $43191, %r10 lea addresses_UC_ht+0x57d1, %rsi lea addresses_normal_ht+0x21d1, %rdi nop nop nop nop nop and %rbx, %rbx mov $60, %rcx rep movsl nop nop and %rbx, %rbx lea addresses_WC_ht+0x1bfd1, %rsi lea addresses_WT_ht+0x1d3d1, %rdi clflush (%rdi) nop nop nop sub $61984, %r8 mov $115, %rcx rep movsb add $16518, %r10 lea addresses_A_ht+0x11b21, %r8 nop nop and %rdi, %rdi movl $0x61626364, (%r8) nop nop nop nop nop add $64315, %rbx lea addresses_A_ht+0x6fd1, %rbp nop nop nop nop nop dec %rbx mov $0x6162636465666768, %r10 movq %r10, %xmm7 movups %xmm7, (%rbp) nop nop nop add $13816, %rsi lea addresses_D_ht+0x90d1, %rdi nop nop nop sub $28562, %rsi movb (%rdi), %cl xor $44300, %r10 lea addresses_UC_ht+0x2fd1, %rax nop and $41492, %r10 vmovups (%rax), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rbx nop nop nop nop nop add %rax, %rax lea addresses_normal_ht+0x1efd1, %rsi lea addresses_UC_ht+0x32ed, %rdi dec %r8 mov $87, %rcx rep movsl nop add %rax, %rax lea addresses_UC_ht+0xa671, %r10 nop nop nop nop dec %rbp movb (%r10), %al nop nop nop nop cmp %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r9 push %rdi push %rdx // Faulty Load lea addresses_US+0x157d1, %r11 xor %rdx, %rdx movb (%r11), %r9b lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rdx pop %rdi pop %r9 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': True}} {'00': 261} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
24.828729
782
0.654651
b6fcd39c0e4ec71f94ddf1889e2921fdc28da92c
7,422
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_14997_922.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_14997_922.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_14997_922.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 %rsi lea addresses_A_ht+0x1a214, %rsi lea addresses_UC_ht+0xb1a4, %rdi clflush (%rsi) nop nop nop nop inc %r11 mov $60, %rcx rep movsq nop nop nop nop sub $39471, %r12 lea addresses_A_ht+0x1b624, %rsi lea addresses_WC_ht+0x18a94, %rdi nop nop sub %r9, %r9 mov $80, %rcx rep movsb nop nop nop nop xor %r12, %r12 lea addresses_normal_ht+0x16334, %rsi sub %rcx, %rcx movw $0x6162, (%rsi) nop nop nop add $197, %r12 lea addresses_D_ht+0x11294, %r9 nop nop nop and $59060, %r13 movb $0x61, (%r9) nop nop nop nop xor $42212, %r9 lea addresses_WT_ht+0x1bad4, %rcx clflush (%rcx) nop nop sub %r9, %r9 mov (%rcx), %r13w nop and %r9, %r9 lea addresses_D_ht+0xccc, %rcx nop nop nop nop and %rsi, %rsi mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%rcx) nop nop nop nop xor %r9, %r9 lea addresses_D_ht+0x49e4, %rsi nop nop nop nop nop cmp %r9, %r9 movb (%rsi), %r13b nop cmp %rsi, %rsi lea addresses_WC_ht+0x8254, %r13 nop dec %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm7 and $0xffffffffffffffc0, %r13 vmovaps %ymm7, (%r13) nop nop nop and $47996, %r13 lea addresses_WT_ht+0x8e94, %rsi lea addresses_D_ht+0x14294, %rdi nop xor %r11, %r11 mov $93, %rcx rep movsq nop and $8913, %rsi lea addresses_WT_ht+0x1bc54, %rsi lea addresses_WC_ht+0x894, %rdi nop nop nop xor %r13, %r13 mov $90, %rcx rep movsb nop sub %rsi, %rsi lea addresses_WC_ht+0x16b64, %r12 nop nop nop and $44734, %rsi mov $0x6162636465666768, %r11 movq %r11, (%r12) nop nop inc %r9 lea addresses_A_ht+0x1b5d2, %r12 nop nop nop sub $2831, %rdi mov (%r12), %rsi nop nop and %rcx, %rcx lea addresses_normal_ht+0x15e94, %r9 dec %r12 movw $0x6162, (%r9) nop cmp $7230, %r13 pop %rsi pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %r9 push %rax push %rbx push %rdx // Store lea addresses_PSE+0x18db2, %rax nop dec %r15 movw $0x5152, (%rax) nop nop and %rbx, %rbx // Faulty Load lea addresses_A+0xe294, %rbx nop nop nop nop nop dec %r9 mov (%rbx), %dx lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'00': 14997} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.682243
2,999
0.656023
2dfd0bedf5ad258051bca171d53f12b67401c87e
582
asm
Assembly
oeis/152/A152161.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/152/A152161.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/152/A152161.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A152161: a(n) = 100*n^2 + 100*n + 21. ; 21,221,621,1221,2021,3021,4221,5621,7221,9021,11021,13221,15621,18221,21021,24021,27221,30621,34221,38021,42021,46221,50621,55221,60021,65021,70221,75621,81221,87021,93021,99221,105621,112221,119021,126021,133221,140621,148221,156021,164021,172221,180621,189221,198021,207021,216221,225621,235221,245021,255021,265221,275621,286221,297021,308021,319221,330621,342221,354021,366021,378221,390621,403221,416021,429021,442221,455621,469221,483021,497021,511221,525621,540221,555021,570021,585221,600621 add $0,1 bin $0,2 mul $0,200 add $0,21
72.75
501
0.798969
cf7aaa78b89e54c826736949b9d547b343553e85
429
asm
Assembly
programs/oeis/118/A118148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/118/A118148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/118/A118148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A118148: Start with 1 and repeatedly reverse the digits and add 51 to get the next term. ; 1,52,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964 mov $2,$0 mov $0,1 lpb $2 seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences). add $0,51 sub $2,1 lpe
39
209
0.703963
b62d0312d29ff13c326d5294ef3fdadcd55433de
4,776
asm
Assembly
EXP0/EXP0.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
2
2015-06-18T18:52:23.000Z
2015-06-18T19:24:35.000Z
EXP0/EXP0.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
null
null
null
EXP0/EXP0.asm
ronchifabricio/progparamicroprocessadores
692c6a334975b958a68e3348d2badd938871e506
[ "Unlicense", "MIT" ]
null
null
null
_main: ;EXP0.c,5 :: void main() { ;EXP0.c,7 :: int count = 0; CLRF main_count_L0+0 CLRF main_count_L0+1 ;EXP0.c,9 :: TRISB = 0b00000000; CLRF TRISB+0 ;EXP0.c,10 :: TRISD = 0b00000000; CLRF TRISD+0 ;EXP0.c,11 :: PORTB = 0b00000000; CLRF PORTB+0 ;EXP0.c,12 :: PORTD = 0b00000000; CLRF PORTD+0 ;EXP0.c,14 :: while(t % (time + 1) != 0) { L_main0: MOVF _time+0, 0 ADDLW 1 MOVWF R4+0 MOVLW 0 BTFSC STATUS+0, 0 ADDLW 1 ADDWF _time+1, 0 MOVWF R4+1 MOVF _t+0, 0 MOVWF R0+0 MOVF _t+1, 0 MOVWF R0+1 CALL _Div_16x16_S+0 MOVF R8+0, 0 MOVWF R0+0 MOVF R8+1, 0 MOVWF R0+1 MOVLW 0 XORWF R0+1, 0 BTFSS STATUS+0, 2 GOTO L__main9 MOVLW 0 XORWF R0+0, 0 L__main9: BTFSC STATUS+0, 2 GOTO L_main1 ;EXP0.c,16 :: int fact = 0; CLRF main_fact_L1+0 CLRF main_fact_L1+1 ;EXP0.c,17 :: while(fact < 20) { L_main2: MOVLW 128 XORWF main_fact_L1+1, 0 MOVWF R0+0 MOVLW 128 SUBWF R0+0, 0 BTFSS STATUS+0, 2 GOTO L__main10 MOVLW 20 SUBWF main_fact_L1+0, 0 L__main10: BTFSC STATUS+0, 0 GOTO L_main3 ;EXP0.c,18 :: PORTB = 0b00000001 * pot(2, count); MOVLW 2 MOVWF FARG_pot_val+0 MOVLW 0 MOVWF FARG_pot_val+1 MOVF main_count_L0+0, 0 MOVWF FARG_pot_power+0 MOVF main_count_L0+1, 0 MOVWF FARG_pot_power+1 CALL _pot+0 MOVF R0+0, 0 MOVWF PORTB+0 ;EXP0.c,19 :: PORTD = 0b00000001 * pot(2, 7 - count); MOVLW 2 MOVWF FARG_pot_val+0 MOVLW 0 MOVWF FARG_pot_val+1 MOVF main_count_L0+0, 0 SUBLW 7 MOVWF FARG_pot_power+0 MOVF main_count_L0+1, 0 BTFSS STATUS+0, 0 ADDLW 1 CLRF FARG_pot_power+1 SUBWF FARG_pot_power+1, 1 CALL _pot+0 MOVF R0+0, 0 MOVWF PORTD+0 ;EXP0.c,20 :: VDelay_ms(50); MOVLW 50 MOVWF FARG_VDelay_ms_Time_ms+0 MOVLW 0 MOVWF FARG_VDelay_ms_Time_ms+1 CALL _VDelay_ms+0 ;EXP0.c,21 :: fact++; INCF main_fact_L1+0, 1 BTFSC STATUS+0, 2 INCF main_fact_L1+1, 1 ;EXP0.c,22 :: count++; INCF main_count_L0+0, 1 BTFSC STATUS+0, 2 INCF main_count_L0+1, 1 ;EXP0.c,23 :: if(count == 8) count = 0; MOVLW 0 XORWF main_count_L0+1, 0 BTFSS STATUS+0, 2 GOTO L__main11 MOVLW 8 XORWF main_count_L0+0, 0 L__main11: BTFSS STATUS+0, 2 GOTO L_main4 CLRF main_count_L0+0 CLRF main_count_L0+1 L_main4: ;EXP0.c,24 :: } GOTO L_main2 L_main3: ;EXP0.c,26 :: t++; INCF _t+0, 1 BTFSC STATUS+0, 2 INCF _t+1, 1 ;EXP0.c,27 :: } GOTO L_main0 L_main1: ;EXP0.c,29 :: PORTB = 0b00000000; CLRF PORTB+0 ;EXP0.c,30 :: PORTD = 0b00000000; CLRF PORTD+0 ;EXP0.c,32 :: } L_end_main: GOTO $+0 ; end of _main _pot: ;EXP0.c,34 :: int pot(int val, int power) { ;EXP0.c,35 :: int ret = val, i = 1; MOVF FARG_pot_val+0, 0 MOVWF pot_ret_L0+0 MOVF FARG_pot_val+1, 0 MOVWF pot_ret_L0+1 MOVLW 1 MOVWF pot_i_L0+0 MOVLW 0 MOVWF pot_i_L0+1 ;EXP0.c,36 :: if(power == 0) return 1; MOVLW 0 XORWF FARG_pot_power+1, 0 BTFSS STATUS+0, 2 GOTO L__pot13 MOVLW 0 XORWF FARG_pot_power+0, 0 L__pot13: BTFSS STATUS+0, 2 GOTO L_pot5 MOVLW 1 MOVWF R0+0 MOVLW 0 MOVWF R0+1 GOTO L_end_pot L_pot5: ;EXP0.c,37 :: while(i < power) { L_pot6: MOVLW 128 XORWF pot_i_L0+1, 0 MOVWF R0+0 MOVLW 128 XORWF FARG_pot_power+1, 0 SUBWF R0+0, 0 BTFSS STATUS+0, 2 GOTO L__pot14 MOVF FARG_pot_power+0, 0 SUBWF pot_i_L0+0, 0 L__pot14: BTFSC STATUS+0, 0 GOTO L_pot7 ;EXP0.c,38 :: ret *= val; MOVF pot_ret_L0+0, 0 MOVWF R0+0 MOVF pot_ret_L0+1, 0 MOVWF R0+1 MOVF FARG_pot_val+0, 0 MOVWF R4+0 MOVF FARG_pot_val+1, 0 MOVWF R4+1 CALL _Mul_16x16_U+0 MOVF R0+0, 0 MOVWF pot_ret_L0+0 MOVF R0+1, 0 MOVWF pot_ret_L0+1 ;EXP0.c,39 :: i++; INCF pot_i_L0+0, 1 BTFSC STATUS+0, 2 INCF pot_i_L0+1, 1 ;EXP0.c,40 :: } GOTO L_pot6 L_pot7: ;EXP0.c,41 :: return ret; MOVF pot_ret_L0+0, 0 MOVWF R0+0 MOVF pot_ret_L0+1, 0 MOVWF R0+1 ;EXP0.c,42 :: } L_end_pot: RETURN ; end of _pot
22.961538
56
0.530988
7ffe08e42c61d674dfaffb02385d987a21d0d57c
3,589
asm
Assembly
assembler/tests/t_870c/t_870c.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_870c/t_870c.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_870c/t_870c.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
#define B8Regs a,w,c,b,e,d,l,h #define B16Regs wa,bc,de,hl,ix,iy,sp #define SrcMem (12h),(1234h),(de),(hl),(ix),(iy),(ix-3),(4+iy),(sp+4),(hl-2),(hl+c),(+sp),(pc+a) #define DestMem (12h),(1234h),(de),(hl),(ix),(iy),(ix-3),(4+iy),(sp+4),(hl-2),(hl+c),(sp-) cpu tlcs-870/c page 0 irp reg1, B8Regs irp reg2, B8Regs ld reg1,reg2 endm endm irp reg1, B16Regs irp reg2, B16Regs ld reg1,reg2 endm endm ld a,(12h) ld a,(hl) irp reg, B8Regs irp mem, SrcMem ld reg,mem endm endm irp reg, B8Regs ld reg,12h endm irp reg, B16Regs irp mem, SrcMem ld reg,mem endm endm irp reg, B16Regs ld reg,1234h endm ld (hl),a ld (12h),a irp reg, B8Regs irp mem, DestMem ld mem,reg endm endm irp reg, B16Regs irp mem, DestMem ld mem,reg endm endm irp mem, DestMem ld mem,0aah endm irp reg, B16Regs ldw reg,55aah endm ldw (12h),55aah ldw (hl),55aah irp op,push,pop op psw irp reg,B16Regs op reg endm endm ld psw, 0ddh ld rbs,0 ld rbs,1 ld sp,sp+2 ld sp,sp+0 ld sp,sp-5 irp reg1,B8Regs irp reg2,B8Regs xch reg1,reg2 endm irp mem,SrcMem xch reg1,mem xch mem,reg1 endm endm irp reg1,B16Regs irp reg2,B16Regs xch reg1,reg2 endm irp mem,SrcMem xch reg1,mem xch mem,reg1 endm endm irp instr,cmp,add,addc,sub,subb,and,or,xor irp reg1,B8Regs instr reg1,0aah irp reg2,B8Regs instr reg1,reg2 endm irp mem,SrcMem instr reg1,mem endm endm irp reg1,B16Regs instr reg1,0aa55h irp reg2,B16Regs instr reg1,reg2 endm irp mem,SrcMem instr reg1,mem endm endm irp mem,SrcMem instr mem,66h endm endm irp instr,inc,dec irp op,B8Regs,B16Regs instr op endm irp op,SrcMem instr op endm endm irp instr,daa,das,shlc,shrc,rolc,rorc,swap irp reg,B8Regs instr reg endm endm mul w,a mul a,w mul b,c mul c,b mul d,e mul e,d mul h,l mul l,h div wa,c div de,c div hl,c irp reg, B16Regs neg cs,reg endm irp instr,shlca,shrca irp reg,B16Regs instr reg endm endm irp instr,rold,rord irp mem,SrcMem instr a,mem endm endm irp instr,set,clr,test,cpl irp reg,B8Regs instr reg.2 endm irp mem,SrcMem instr mem.5 endm irp mem,SrcMem instr mem.a endm endm irp reg,B8Regs ld cf,reg.3 endm irp mem,SrcMem ld cf,mem.4 endm irp mem,SrcMem ld cf,mem.a endm irp reg,B8Regs ld reg.3,cf endm irp mem,SrcMem ld mem.4,cf endm irp mem,SrcMem ld mem.a,cf endm irp reg,B8Regs xor cf,reg.1 endm irp mem,SrcMem xor cf,mem.6 endm clr cf cpl cf set cf ei di jr targ irp cond,t,f,eq,z,ne,nz,cs,lt,cc,ge,le,gt jr cond,targ endm irp cond,m,p,slt,sge,sle,sgt,vs,vc jr cond,targ endm targ: jrs t,targ2 targ2: jrs f,targ2 jp 1234h irp reg,B16Regs jp reg endm irp mem,SrcMem jp mem endm j $+10 ; coded as JR j $-10 ; coded as JR j $+100 ; coded as JR j $-100 ; coded as JR j $+1000 ; coded as JP j $-1000 ; coded as JP j t,$+10 ; coded as JRS j t,$-10 ; coded as JRS j t,$+100 ; coded as JR j t,$-100 ; coded as JR j t,$+1000 ; coded as skipped JP j t,$-1000 ; coded as skipped JP j f,$+10 ; coded as JRS j f,$-10 ; coded as JRS j f,$+100 ; coded as JR j f,$-100 ; coded as JR j f,$+1000 ; coded as skipped JP j f,$-1000 ; coded as skipped JP j slt,$+10 ; coded as JR j slt,$-10 ; coded as JR j slt,$+100 ; coded as JR j slt,$-100 ; coded as JR j slt,$+1000 ; coded as skipped JP j slt,$-1000 ; coded as skipped JP callv 9
13.342007
96
0.621064
5fa51bb732458eece5b437fa7696f90112b109b8
3,321
asm
Assembly
scripts/SeafoamIslandsB4F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/SeafoamIslandsB4F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/SeafoamIslandsB4F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SeafoamIslandsB4F_Script: call EnableAutoTextBoxDrawing ld a, [wSeafoamIslandsB4FCurScript] ld hl, SeafoamIslandsB4F_ScriptPointers jp CallFunctionInTable SeafoamIslands5Script_467a5: xor a ld [wSeafoamIslandsB4FCurScript], a ld [wJoyIgnore], a ret SeafoamIslandsB4F_ScriptPointers: dw SeafoamIslands5Script0 dw SeafoamIslands5Script1 dw SeafoamIslands5Script2 dw SeafoamIslands5Script3 dw SeafoamIslands5Script4 SeafoamIslands5Script4: ld a, [wIsInBattle] cp $ff jr z, SeafoamIslands5Script_467a5 call EndTrainerBattle ld a, $0 ld [wSeafoamIslandsB4FCurScript], a ret SeafoamIslands5Script0: CheckBothEventsSet EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE ret z ld hl, .Coords call ArePlayerCoordsInArray ret nc ld a, [wCoordIndex] cp $3 jr nc, .asm_467e6 ld a, NPC_MOVEMENT_UP ld [wSimulatedJoypadStatesEnd + 1], a ld a, 2 jr .asm_467e8 .asm_467e6 ld a, 1 .asm_467e8 ld [wSimulatedJoypadStatesIndex], a ld a, D_UP ld [wSimulatedJoypadStatesEnd], a call StartSimulatingJoypadStates ld hl, wFlags_D733 res 2, [hl] ld a, $1 ld [wSeafoamIslandsB4FCurScript], a ret .Coords dbmapcoord 20, 17 dbmapcoord 21, 17 dbmapcoord 20, 16 dbmapcoord 21, 16 db -1 ; end SeafoamIslands5Script1: ld a, [wSimulatedJoypadStatesIndex] and a ret nz xor a ld [wJoyIgnore], a ld a, $0 ld [wSeafoamIslandsB4FCurScript], a ret SeafoamIslands5Script2: CheckBothEventsSet EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE ld a, $0 jr z, .asm_46849 ld hl, .Coords call ArePlayerCoordsInArray ld a, $0 jr nc, .asm_46849 ld a, [wCoordIndex] cp $1 jr nz, .asm_46837 ld de, RLEMovementData_46859 jr .asm_4683a .asm_46837 ld de, RLEMovementData_46852 .asm_4683a ld hl, wSimulatedJoypadStatesEnd call DecodeRLEList dec a ld [wSimulatedJoypadStatesIndex], a call StartSimulatingJoypadStates ld a, $3 .asm_46849 ld [wSeafoamIslandsB4FCurScript], a ret .Coords dbmapcoord 4, 14 dbmapcoord 5, 14 db -1 ; end RLEMovementData_46852: db D_UP, 3 db D_RIGHT, 2 db D_UP, 1 db -1 ; end RLEMovementData_46859: db D_UP, 3 db D_RIGHT, 3 db D_UP, 1 db -1 ; end SeafoamIslands5Script3: ld a, [wSimulatedJoypadStatesIndex] ld b, a cp $1 call z, SeaFoamIslands5Script_46872 ld a, b and a ret nz ld a, $0 ld [wSeafoamIslandsB4FCurScript], a ret SeaFoamIslands5Script_46872: xor a ld [wWalkBikeSurfState], a ld [wWalkBikeSurfStateCopy], a jp ForceBikeOrSurf SeafoamIslandsB4F_TextPointers: dw BoulderText dw BoulderText dw ArticunoText dw SeafoamIslands5Text4 dw SeafoamIslands5Text5 ; Articuno is object 3, but its event flag is bit 2. ; This is not a problem because its sight range is 0, and ; trainer headers were not stored by ExecuteCurMapScriptInTable. def_trainers 2 ArticunoTrainerHeader: trainer EVENT_BEAT_ARTICUNO, 0, ArticunoBattleText, ArticunoBattleText, ArticunoBattleText db -1 ; end ArticunoText: text_asm ld hl, ArticunoTrainerHeader call TalkToTrainer ld a, $4 ld [wSeafoamIslandsB4FCurScript], a jp TextScriptEnd ArticunoBattleText: text_far _ArticunoBattleText text_asm ld a, ARTICUNO call PlayCry call WaitForSoundToFinish jp TextScriptEnd SeafoamIslands5Text4: text_far _SeafoamIslands5Text4 text_end SeafoamIslands5Text5: text_far _SeafoamIslands5Text5 text_end
19.421053
91
0.789822
ee2b8618b605b31a13232813e01ece2e24dbb57e
419
asm
Assembly
intermediate/01_file_eksternal/utama.asm
bellshade/Assembly
94e1ab38f9f217b414cf1d19f9c52c052b7ec2e0
[ "MIT" ]
6
2021-11-12T14:13:57.000Z
2022-02-18T08:24:42.000Z
intermediate/01_file_eksternal/utama.asm
AdityaFitrianaNS/Assembly
c412279c8042300e77ec862c13e19f0c1cdf71af
[ "MIT" ]
2
2021-11-22T00:50:03.000Z
2021-11-24T01:14:24.000Z
intermediate/01_file_eksternal/utama.asm
AdityaFitrianaNS/Assembly
c412279c8042300e77ec862c13e19f0c1cdf71af
[ "MIT" ]
4
2021-11-22T00:18:36.000Z
2022-03-22T06:35:31.000Z
; memaanggil file 'fungsi.asm' %include 'fungsi.asm' SECTION .data pesan1 db 'bellshade', 0Ah pesan2 db 'assembly', 0Ah SECTION .text global _start _start: mov eax, pesan1 ; memanggil fungsi sprint ; yang terdpat pada file 'fungsi.asm' call sprint mov eax, pesan2 ; memanggil fungsi sprint ; yang terdpat pada file 'fungsi.asm' call sprint ; memanggil fungsi keluar dari program call quit
15.518519
40
0.71599
eab159b5d6cfc6e910de00f9cc03d6ee266c62b8
660
asm
Assembly
oeis/135/A135758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/135/A135758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/135/A135758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A135758: Catalan numbers at triangular positions: a(n) = A000108(n(n+1)/2). ; Submitted by Jon Maiga ; 1,1,5,132,16796,9694845,24466267020,263747951750360,11959798385860453492,2257117854077248073253720,1759414616608818870992479875972,5632681584560312734993915705849145100,73745243611532458459690151854647329239335600,3935312233584004685417853572763349509774031680023800,853702637172735926234421145556838686126761775155774328259240,751269297881058917464501210451062751843240026086509499359064493663600,2677285562879644352897777603522480091364515660984549685943453807118230006063172 add $0,1 bin $0,2 mov $1,$0 mul $1,2 bin $1,$0 add $0,1 div $1,$0 mov $0,$1
50.769231
479
0.871212
932d4f6c10294531fc55dbd9ae9da2069a7abcda
650
asm
Assembly
programs/oeis/014/A014125.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/014/A014125.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/014/A014125.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A014125: Bisection of A001400. ; 1,3,6,11,18,27,39,54,72,94,120,150,185,225,270,321,378,441,511,588,672,764,864,972,1089,1215,1350,1495,1650,1815,1991,2178,2376,2586,2808,3042,3289,3549,3822,4109,4410,4725,5055,5400,5760,6136,6528,6936,7361,7803,8262,8739,9234,9747,10279,10830,11400,11990,12600,13230,13881,14553,15246,15961,16698,17457,18239,19044,19872,20724,21600,22500,23425,24375,25350,26351,27378,28431,29511,30618,31752,32914,34104,35322,36569,37845,39150,40485,41850,43245,44671,46128,47616,49136,50688,52272,53889,55539,57222,58939 add $0,2 mov $2,$0 lpb $2 lpb $3 add $1,$3 trn $3,3 lpe sub $2,1 add $3,$2 lpe mov $0,$1
43.333333
510
0.743077
8464cbe655e28149fd3dd0f2e1a96a402a4fab74
343
asm
Assembly
oeis/081/A081923.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/081/A081923.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/081/A081923.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A081923: Expansion of exp(2x)/(1-x)^2. ; Submitted by Jamie Morken(s3) ; 1,4,18,92,536,3552,26608,223456,2085504,21450752,241320704,2949474816,38933066752,552141672448,8374148696064,135274709700608,2318995023429632,42051109758173184,804227474125029376 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $1,$2 mul $1,2 mul $2,$0 lpe mov $0,$1
24.5
180
0.734694
21d23f51775bf81695e1b3f81be322a8e936464e
7,222
asm
Assembly
tests/vice-tests/VIC20/paddlescope/paddlescope.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
330
2017-12-11T21:20:28.000Z
2022-03-26T08:56:51.000Z
tests/vice-tests/VIC20/paddlescope/paddlescope.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
14
2019-01-07T23:50:35.000Z
2022-01-09T13:43:16.000Z
tests/vice-tests/VIC20/paddlescope/paddlescope.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
31
2018-07-02T06:13:31.000Z
2022-02-18T16:50:56.000Z
; ** Realtime sample & display of POTX or POTY on VIC-20, ; written 2018-01-05 by Michael Kircher ; ; - sample rate 512 us (^= paddle period), done in NMI, ; - display height 256 pixels, *full* resolution, ; - display width 208 pixels, equiv. ~= 100 ms, ; i.e. ~5 x 20 ms in PAL, ~6 x 16,67 ms in NTSC. ; ; Note: NTSC machines only show a cropped display. zp_X = $03 zp_X2 = $04 zp_scrn = $FB zp_char = $FD * = $2000 Main: JSR $E518 LDX #6 Main_00: CLC LDA $EDE4 - 1,X ADC offsets - 1,X STA $9000 - 1,X DEX BNE Main_00 STX zp_X2 STX $17F8 STX $17F9 STX $17FA STX $17FB STX $17FC STX $17FD STX $17FE STX $17FF LDA #$06 Main_01: STA $9400,X STA $9500,X STA $9600,X STA $9700,X INX BNE Main_01 SEI LDA #$FF STA $9122 LDA #$00 STA $9123 LDA #$F7 STA $9120 LDA #$7F STA $911E STA $911D STA $912E STA $912D LDA #$40 STA $911B LDX #<NMI LDY #>NMI STX $0318 STY $0319 LDX #<(512-2) LDY #>(512-2) STX $9114 STY $9115 LDA #$C2 STA $911E Main_02: LDX #0 STX zp_X Main_03: LDX #8 Main_04: CPX zp_X2 BNE Main_04 Main_05: LDA buffer1-1,X STA buffer2-1,X DEX BNE Main_05 STX zp_X2 JSR ClrScrn JSR ClrChar JSR Plot LDX zp_X INX CPX #26 BEQ Main_02 STX zp_X BNE Main_03 NMI: PHA TXA PHA BIT $911D BPL NMI_00 BVC NMI_01 LDX zp_X2 CPX #8 BEQ NMI_00 LDA $9009 EOR #$FF STA buffer1,X INX STX zp_X2 NMI_00: PLA TAX PLA BIT $9114 BIT $9111 RTI NMI_01: BIT $9111 LDA $9121 AND #$01 BNE NMI_00 LDA #$7F STA $911E STA $911D LDA #$FE STA $9114 LDA #$FF STA $9115 JMP $FED2 ClrScrn: LDA #$FF LDX zp_X STA $1800+ 0*26,X STA $1800+ 1*26,X STA $1800+ 2*26,X STA $1800+ 3*26,X STA $1800+ 4*26,X STA $1800+ 5*26,X STA $1800+ 6*26,X STA $1800+ 7*26,X STA $1800+ 8*26,X STA $1800+ 9*26,X STA $1800+10*26,X STA $1800+11*26,X STA $1800+12*26,X STA $1800+13*26,X STA $1800+14*26,X STA $1800+15*26,X STA $1800+16*26,X STA $1800+17*26,X STA $1800+18*26,X STA $1800+19*26,X STA $1800+20*26,X STA $1800+21*26,X STA $1800+22*26,X STA $1800+23*26,X STA $1800+24*26,X STA $1800+25*26,X STA $1800+26*26,X STA $1800+27*26,X STA $1800+28*26,X STA $1800+29*26,X STA $1800+30*26,X STA $1800+31*26,X RTS ClrChar: LDA #$02 STA zp_char+1 LDX zp_X LDA char_base,X ASL ROL zp_char+1 ASL ROL zp_char+1 ASL ROL zp_char+1 STA zp_char LDA #0 TAY LDX #8 ClrChar_00: STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY STA (zp_char),Y INY DEX BNE ClrChar_00 RTS Plot: LDX #0 Plot_00: LDA buffer2,X LSR LSR LSR TAY LDA line_low,Y STA zp_scrn LDA line_high,Y STA zp_scrn+1 LDA #$02 STA zp_char+1 LDY zp_X LDA (zp_scrn),Y CMP #$FF BNE Plot_01 TXA ORA char_base,Y STA (zp_scrn),Y Plot_01: ASL ROL zp_char+1 ASL ROL zp_char+1 ASL ROL zp_char+1 STA zp_char LDA buffer2,X AND #$07 TAY LDA (zp_char),Y ORA $8268,X STA (zp_char),Y INX CPX #8 BNE Plot_00 RTS line_low: !byte <($1800+ 0*26) !byte <($1800+ 1*26) !byte <($1800+ 2*26) !byte <($1800+ 3*26) !byte <($1800+ 4*26) !byte <($1800+ 5*26) !byte <($1800+ 6*26) !byte <($1800+ 7*26) !byte <($1800+ 8*26) !byte <($1800+ 9*26) !byte <($1800+10*26) !byte <($1800+11*26) !byte <($1800+12*26) !byte <($1800+13*26) !byte <($1800+14*26) !byte <($1800+15*26) !byte <($1800+16*26) !byte <($1800+17*26) !byte <($1800+18*26) !byte <($1800+19*26) !byte <($1800+20*26) !byte <($1800+21*26) !byte <($1800+22*26) !byte <($1800+23*26) !byte <($1800+24*26) !byte <($1800+25*26) !byte <($1800+26*26) !byte <($1800+27*26) !byte <($1800+28*26) !byte <($1800+29*26) !byte <($1800+30*26) !byte <($1800+31*26) line_high: !byte >($1800+ 0*26) !byte >($1800+ 1*26) !byte >($1800+ 2*26) !byte >($1800+ 3*26) !byte >($1800+ 4*26) !byte >($1800+ 5*26) !byte >($1800+ 6*26) !byte >($1800+ 7*26) !byte >($1800+ 8*26) !byte >($1800+ 9*26) !byte >($1800+10*26) !byte >($1800+11*26) !byte >($1800+12*26) !byte >($1800+13*26) !byte >($1800+14*26) !byte >($1800+15*26) !byte >($1800+16*26) !byte >($1800+17*26) !byte >($1800+18*26) !byte >($1800+19*26) !byte >($1800+20*26) !byte >($1800+21*26) !byte >($1800+22*26) !byte >($1800+23*26) !byte >($1800+24*26) !byte >($1800+25*26) !byte >($1800+26*26) !byte >($1800+27*26) !byte >($1800+28*26) !byte >($1800+29*26) !byte >($1800+30*26) !byte >($1800+31*26) char_base: !byte 0*8 !byte 1*8 !byte 2*8 !byte 3*8 !byte 4*8 !byte 5*8 !byte 6*8 !byte 7*8 !byte 8*8 !byte 9*8 !byte 10*8 !byte 11*8 !byte 12*8 !byte 13*8 !byte 14*8 !byte 15*8 !byte 16*8 !byte 17*8 !byte 18*8 !byte 19*8 !byte 20*8 !byte 21*8 !byte 22*8 !byte 23*8 !byte 24*8 !byte 25*8 buffer1: !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 buffer2: !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 !byte 0 offsets: !byte $FC !byte $EE !byte $04 !byte $12 !byte $00 !byte $2C
19.678474
58
0.416921
32bcfc5e6df820cf45fb440e9df0383fe903ff6e
1,572
asm
Assembly
src/msx/sample_res/03.asm
aburi6800/msx-PSGSoundDriver
25ac1c6acf25afd73e7aa66df2bb88b62423eb2f
[ "MIT" ]
3
2021-11-21T12:46:14.000Z
2022-01-09T01:52:52.000Z
src/msx/sample_res/03.asm
aburi6800/msx-PSGSoundDriver
25ac1c6acf25afd73e7aa66df2bb88b62423eb2f
[ "MIT" ]
4
2021-11-23T09:18:07.000Z
2021-12-03T15:40:16.000Z
src/msx/sample_res/03.asm
aburi6800/msx-PSGSoundDriver
25ac1c6acf25afd73e7aa66df2bb88b62423eb2f
[ "MIT" ]
null
null
null
_03: DB 0 DW _03_TRK1 DW _03_TRK2 DW _03_TRK3 _03_TRK1: DB 200, 0, 36, 217, %10, 212, 58, 9, 60, 9, 58, 9, 60, 9, 58, 9 DB 206, 58, 9, 212, 60, 9, 206, 60, 9, 212, 58, 9, 206, 58, 9, 212 DB 63, 9, 206, 63, 9, 200, 0, 36, 212, 53, 9, 55, 9, 53, 9, 55 DB 9, 53, 9, 206, 53, 9, 212, 55, 9, 206, 55, 9, 212, 53, 9, 206 DB 53, 9, 212, 60, 9, 206, 60, 9, 200, 0, 36, 212, 51, 9, 53, 9 DB 51, 9, 53, 9, 51, 9, 206, 51, 9, 212, 53, 9, 206, 53, 9, 212 DB 51, 9, 206, 51, 9, 212, 58, 9, 206, 58, 9, 200, 0, 18, 0, 18 DB 212, 53, 9, 55, 9, 53, 9, 55, 9, 53, 9, 206, 53, 9, 212, 55 DB 9, 206, 55, 9, 212, 65, 9, 206, 65, 9, 212, 63, 9, 206, 63, 9 DB 254 _03_TRK2: DB 217, %10, 209, 19, 9, 212, 19, 117, 209, 17, 9, 212, 17, 9, 209, 15 DB 9, 212, 15, 135, 209, 12, 9, 212, 12, 117, 209, 14, 9, 212, 14, 9 DB 209, 15, 9, 212, 15, 99, 17, 36 DB 254 _03_TRK3: DB 217, %01, 212, 216, 27, 12, 9, 207, 12, 9, 200, 216, 40, 0, 54, 212 DB 216, 6, 67, 9, 209, 67, 9, 207, 67, 18, 205, 67, 18, 212, 216, 27 DB 12, 9, 207, 12, 9, 212, 12, 9, 207, 12, 9, 200, 216, 40, 0, 54 DB 212, 216, 6, 67, 9, 209, 67, 9, 207, 67, 18, 205, 67, 18, 212, 216 DB 27, 12, 9, 207, 12, 9, 212, 12, 9, 207, 12, 9, 200, 216, 40, 0 DB 54, 212, 216, 6, 67, 9, 209, 67, 9, 207, 67, 18, 205, 67, 18, 212 DB 216, 27, 12, 9, 207, 12, 9, 212, 12, 9, 207, 12, 9, 200, 216, 40 DB 0, 54, 212, 216, 6, 67, 9, 209, 67, 9, 207, 67, 18, 205, 67, 18 DB 212, 216, 27, 12, 9, 207, 12, 9 DB 254
47.636364
75
0.487913
51fa19568b0bb11fee59870fb1aef3fb3e2cfedd
2,061
asm
Assembly
libtool/src/gmp-6.1.2/mpn/x86/copyd.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
libtool/src/gmp-6.1.2/mpn/x86/copyd.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
libtool/src/gmp-6.1.2/mpn/x86/copyd.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl x86 mpn_copyd -- copy limb vector, decrementing. dnl Copyright 1999-2002 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb startup (approx) C P5 1.0 40 C P6 2.4 70 C K6 1.0 55 C K7 1.3 75 C P4 2.6 175 C C (Startup time includes some function call overheads.) C void mpn_copyd (mp_ptr dst, mp_srcptr src, mp_size_t size); C C Copy src,size to dst,size, working from high to low addresses. C C The code here is very generic and can be expected to be reasonable on all C the x86 family. defframe(PARAM_SIZE,12) defframe(PARAM_SRC, 8) defframe(PARAM_DST, 4) deflit(`FRAME',0) TEXT ALIGN(32) PROLOGUE(mpn_copyd) C eax saved esi C ebx C ecx counter C edx saved edi C esi src C edi dst C ebp movl PARAM_SIZE, %ecx movl %esi, %eax movl PARAM_SRC, %esi movl %edi, %edx movl PARAM_DST, %edi leal -4(%esi,%ecx,4), %esi leal -4(%edi,%ecx,4), %edi std rep movsl cld movl %eax, %esi movl %edx, %edi ret EPILOGUE()
22.402174
79
0.714702
49cddf10fddf155b0b294e85cb58190070b37d6a
1,943
asm
Assembly
programs/oeis/304/A304616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/304/A304616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/304/A304616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A304616: a(n) = 81*n^2 - 69*n + 24. ; 24,36,210,546,1044,1704,2526,3510,4656,5964,7434,9066,10860,12816,14934,17214,19656,22260,25026,27954,31044,34296,37710,41286,45024,48924,52986,57210,61596,66144,70854,75726,80760,85956,91314,96834,102516,108360,114366,120534,126864,133356,140010,146826,153804,160944,168246,175710,183336,191124,199074,207186,215460,223896,232494,241254,250176,259260,268506,277914,287484,297216,307110,317166,327384,337764,348306,359010,369876,380904,392094,403446,414960,426636,438474,450474,462636,474960,487446,500094,512904,525876,539010,552306,565764,579384,593166,607110,621216,635484,649914,664506,679260,694176,709254,724494,739896,755460,771186,787074,803124,819336,835710,852246,868944,885804,902826,920010,937356,954864,972534,990366,1008360,1026516,1044834,1063314,1081956,1100760,1119726,1138854,1158144,1177596,1197210,1216986,1236924,1257024,1277286,1297710,1318296,1339044,1359954,1381026,1402260,1423656,1445214,1466934,1488816,1510860,1533066,1555434,1577964,1600656,1623510,1646526,1669704,1693044,1716546,1740210,1764036,1788024,1812174,1836486,1860960,1885596,1910394,1935354,1960476,1985760,2011206,2036814,2062584,2088516,2114610,2140866,2167284,2193864,2220606,2247510,2274576,2301804,2329194,2356746,2384460,2412336,2440374,2468574,2496936,2525460,2554146,2582994,2612004,2641176,2670510,2700006,2729664,2759484,2789466,2819610,2849916,2880384,2911014,2941806,2972760,3003876,3035154,3066594,3098196,3129960,3161886,3193974,3226224,3258636,3291210,3323946,3356844,3389904,3423126,3456510,3490056,3523764,3557634,3591666,3625860,3660216,3694734,3729414,3764256,3799260,3834426,3869754,3905244,3940896,3976710,4012686,4048824,4085124,4121586,4158210,4194996,4231944,4269054,4306326,4343760,4381356,4419114,4457034,4495116,4533360,4571766,4610334,4649064,4687956,4727010,4766226,4805604,4845144,4884846,4924710,4964736,5004924 mov $1,27 mul $1,$0 sub $1,23 mul $1,$0 div $1,2 mul $1,6 add $1,24
176.636364
1,835
0.844056
9c0538d638c284e9e1d3cdedfceab6140cf697b0
8,318
asm
Assembly
Release/TheDarkTower/examples/instruction set.package/instruction set.asm
gbryant/the-dark-tower
455ceb0c00084c1546dae47297f0bf57ef90ea4f
[ "Apache-2.0" ]
3
2017-10-03T03:18:08.000Z
2020-03-30T00:49:17.000Z
Release/TheDarkTower/examples/instruction set.package/instruction set.asm
gbryant/the-dark-tower
455ceb0c00084c1546dae47297f0bf57ef90ea4f
[ "Apache-2.0" ]
null
null
null
Release/TheDarkTower/examples/instruction set.package/instruction set.asm
gbryant/the-dark-tower
455ceb0c00084c1546dae47297f0bf57ef90ea4f
[ "Apache-2.0" ]
null
null
null
@main b *end add r3,r4,r5 add. r3,r4,r5 addo r3,r4,r5 addo. r3,r4,r5 addc r3,r4,r5 addc. r3,r4,r5 addco r3,r4,r5 addco. r3,r4,r5 adde r3,r4,r5 adde. r3,r4,r5 addeo r3,r4,r5 addeo. r3,r4,r5 addi r3,r4,$1234 addic r3,r4,$1234 addic. r3,r4,$1234 addis r3,r4,$1234 addme r3,r4 addme. r3,r4 addmeo r3,r4 addmeo. r3,r4 addze r3,r4 addze. r3,r4 addzeo r3,r4 addzeo. r3,r4 and r3,r4,r5 and. r3,r4,r5 andc r3,r4,r5 andc. r3,r4,r5 andi. r3,r4,$FFFF andis. r3,r4,$FFFF bcctr 20,0 bcctrl 20,0 bclr 20,0 bclrl 20,0 cmp crf3,0,r3,r4 cmpi crf3,0,r3,$123 cmpl crf3,0,r3,r4 cmpli crf3,0,r3,$123 cntlzw r3,r4 cntlzw. r3,r4 crand crb1,crb2,crb3 crandc crb1,crb2,crb3 creqv crb1,crb2,crb3 crnand crb1,crb2,crb3 crnor crb1,crb2,crb3 cror crb1,crb2,crb3 crorc crb1,crb2,crb3 crxor crb1,crb2,crb3 dcba r3,r4 dcbf r3,r4 dcbi r3,r4 dcbst r3,r4 dcbt r3,r4 dcbtst r3,r4 dcbz r3,r4 divw r3,r4,r5 divw. r3,r4,r5 divwo r3,r4,r5 divwo. r3,r4,r5 divwu r3,r4,r5 divwu. r3,r4,r5 divwuo r3,r4,r5 divwuo. r3,r4,r5 eciwx r3,r4,r5 ecowx r3,r4,r5 eieio eqv r3,r4,r5 eqv. r3,r4,r5 extsb r3,r4 extsb. r3,r4 extsh r3,r4 extsh. r3,r4 fabs fr3,fr4 fabs. fr3,fr4 fadd fr3,fr4,fr5 fadd. fr3,fr4,fr5 fadds fr3,fr4,fr5 fadds. fr3,fr4,fr5 fcmpo crf1,fr3,fr4 fcmpu crf1,fr3,fr4 fctiw fr3,fr4 fctiw. fr3,fr4 fctiwz fr3,fr4 fctiwz. fr3,fr4 fdiv fr3,fr4,fr5 fdiv. fr3,fr4,fr5 fdivs fr3,fr4,fr5 fdivs. fr3,fr4,fr5 fmadd fr3,fr4,fr5,fr6 fmadd. fr3,fr4,fr5,fr6 fmadds fr3,fr4,fr5,fr6 fmadds. fr3,fr4,fr5,fr6 fmr fr3,fr4 fmr. fr3,fr4 fmsub fr3,fr4,fr5,fr6 fmsub. fr3,fr4,fr5,fr6 fmsubs fr3,fr4,fr5,fr6 fmsubs. fr3,fr4,fr5,fr6 fmul fr3,fr4,fr5 fmul. fr3,fr4,fr5 fmuls fr3,fr4,fr5 fmuls. fr3,fr4,fr5 fnabs fr3,fr4 fnabs. fr3,fr4 fneg fr3,fr4 fneg. fr3,fr4 fnmadd fr3,fr4,fr5,fr6 fnmadd. fr3,fr4,fr5,fr6 fnmadds fr3,fr4,fr5,fr6 fnmadds. fr3,fr4,fr5,fr6 fnmsub fr3,fr4,fr5,fr6 fnmsub. fr3,fr4,fr5,fr6 fnmsubs fr3,fr4,fr5,fr6 fnmsubs. fr3,fr4,fr5,fr6 fres fr3,fr4 fres. fr3,fr4 frsp fr3,fr4 frsp. fr3,fr4 frsqrte fr3,fr4 frsqrte. fr3,fr4 fsel fr3,fr4,fr5,fr6 fsel. fr3,fr4,fr5,fr6 fsqrt fr3,fr4 fsqrt. fr3,fr4 fsqrts fr3,fr4 fsqrts. fr3,fr4 fsub fr3,fr4,fr5 fsub. fr3,fr4,fr5 fsubs fr3,fr4,fr5 fsubs. fr3,fr4,fr5 icbi r3,r4 isync lbz r3,4(r5) lbzu r3,4(r5) lbzux r3,r4,r5 lbzx r3,r4,r5 lfd fr3,4(r5) lfdu fr3,4(r5) lfdux fr3,r4,r5 lfdx fr3,r4,r5 lfs fr3,4(r5) lfsu fr3,4(r5) lfsux fr3,r4,r5 lfsx fr3,r4,r5 lha r3,4(r5) lhau r3,4(r5) lhaux r3,r4,r5 lhax r3,r4,r5 lhbrx r3,r4,r5 lhz r3,4(r5) lhzu r3,4(r5) lhzux r3,r4,r5 lhzx r3,r4,r5 lmw r3,4(r5) lswi r3,r4,5 lswx r3,r4,r5 lwarx r3,r4,r5 lwbrx r3,r4,r5 lwz r3,4(r5) lwzu r3,4(r5) lwzux r3,r4,r5 lwzx r3,r4,r5 mcrf crf3,crf4 mcrfs crf3,crf4 mcrxr crf3 mfcr r3 mffs fr3 mffs. fr3 mfmsr r3 mfspr r3,8 mfsr r3,4 mfsrin r3,r4 mftb r3,268 mtcrf $FF,r3 mtfsb0 crb1 mtfsb0. crb1 mtfsb1 crb1 mtfsb1. crb1 mtfsf 3,fr4 mtfsf. 3,fr4 mtfsfi crf3,4 mtfsfi. crf3,4 mtmsr r3 mtspr 8,r3 mtsr 2,r3 mtsrin r3,r4 mulhw r3,r4,r5 mulhw. r3,r4,r5 mulhwu r3,r4,r5 mulhwu. r3,r4,r5 mulli r3,r4,5 mullw r3,r4,r5 mullw. r3,r4,r5 mullwo r3,r4,r5 mullwo. r3,r4,r5 nand r3,r4,r5 nand. r3,r4,r5 neg r3,r4 neg. r3,r4 nego r3,r4 nego. r3,r4 nor r3,r4,r5 nor. r3,r4,r5 or r3,r4,r5 or. r3,r4,r5 orc r3,r4,r5 orc. r3,r4,r5 ori r3,r4,5 oris r3,r4,5 rfi rlwimi r3,r4,5,6,7 rlwimi. r3,r4,5,6,7 rlwinm r3,r4,5,6,7 rlwinm. r3,r4,5,6,7 rlwnm r3,r4,r5,6,7 rlwnm. r3,r4,r5,6,7 sc slw r3,r4,r5 slw. r3,r4,r5 sraw r3,r4,r5 sraw. r3,r4,r5 srawi r3,r4,5 srawi. r3,r4,5 srw r3,r4,r5 srw. r3,r4,r5 stb r3,4(r5) stbu r3,4(r5) stbux r3,r4,r5 stbx r3,r4,r5 stfd fr3,4(r5) stfdu fr3,4(r5) stfdux fr3,r4,r5 stfdx fr3,r4,r5 stfiwx fr3,r4,r5 stfs fr3,4(r5) stfsu fr3,4(r5) stfsux fr3,r4,r5 stfsx fr3,r4,r5 sth r3,4(r5) sthbrx r3,r4,r5 sthu r3,4(r5) sthux r3,r4,r5 sthx r3,r4,r5 stmw r3,4(r5) stswi r3,r4,5 stswx r3,r4,r5 stw r3,4(r5) stwbrx r3,r4,r5 stwcx. r3,r4,r5 stwu r3,4(r5) stwux r3,r4,r5 stwx r3,r4,r5 subf r3,r4,r5 subf. r3,r4,r5 subfo r3,r4,r5 subfo. r3,r4,r5 subfc r3,r4,r5 subfc. r3,r4,r5 subfco r3,r4,r5 subfco. r3,r4,r5 subfe r3,r4,r5 subfe. r3,r4,r5 subfeo r3,r4,r5 subfeo. r3,r4,r5 subfic r3,r4,5 subfme r3,r4 subfme. r3,r4 subfmeo r3,r4 subfmeo. r3,r4 subfze r3,r4 subfze. r3,r4 subfzeo r3,r4 subfzeo. r3,r4 sync tlbia tlbie r3 tlbsync tw 31,r0,r0 twi 3,r4,5 xor r3,r4,r5 xor. r3,r4,r5 xori r3,r4,5 xoris r3,r4,5 b 1 ba 1 bl 1 bla 1 bc 1,2,3 bca 1,2,3 bcl 1,2,3 bcla 1,2,3 nop dc $12345678 mflr r3 mtlr r3 blr blrl mfctr r3 mtctr r3 bctr bctrl la r3,4(r5) li r3,4 mr r3,r4 :bdnz bdnz *bdnz bdnza 0 bdnzl *bdnz bdnzla 0 blt *end blta 1 bltl *end bltla 1 ble *end blea 1 blel *end blela 1 beq *end beqa 1 beql *end beqla 1 bge *end bgea 1 bgel *end bgela 1 bgt *end bgta 1 bgtl *end bgtla 1 bne *end bnea 1 bnel *end bnela 1 #------------altivec instructions------------ vmhaddshs v1,v2,v3,v4 vmhraddshs v1,v2,v3,v4 vmladduhm v1,v2,v3,v4 vmsumubm v1,v2,v3,v4 vmsummbm v1,v2,v3,v4 vmsumuhm v1,v2,v3,v4 vmsumuhs v1,v2,v3,v4 vmsumshm v1,v2,v3,v4 vmsumshs v1,v2,v3,v4 vsel v1,v2,v3,v4 vperm v1,v2,v3,v4 vsldoi v1,v2,v3,1 vmaddfp v1,v2,v3,v4 vnmsubfp v1,v2,v3,v4 vaddubm v1,v2,v3 vadduhm v1,v2,v3 vadduwm v1,v2,v3 vaddubs v1,v2,v3 vadduhs v1,v2,v3 vadduws v1,v2,v3 vaddsbs v1,v2,v3 vaddshs v1,v2,v3 vaddsws v1,v2,v3 vsububm v1,v2,v3 vsubuhm v1,v2,v3 vsubuwm v1,v2,v3 vsubcuw v1,v2,v3 vsububs v1,v2,v3 vsubuhs v1,v2,v3 vsubuws v1,v2,v3 vsubsbs v1,v2,v3 vsubshs v1,v2,v3 vsubsws v1,v2,v3 vmaxub v1,v2,v3 vmaxuh v1,v2,v3 vmaxuw v1,v2,v3 vmaxsb v1,v2,v3 vmaxsh v1,v2,v3 vmaxsw v1,v2,v3 vminub v1,v2,v3 vminuh v1,v2,v3 vminuw v1,v2,v3 vminsb v1,v2,v3 vminsh v1,v2,v3 vminsw v1,v2,v3 vavgub v1,v2,v3 vavguh v1,v2,v3 vavguw v1,v2,v3 vavgsb v1,v2,v3 vavgsh v1,v2,v3 vavgsw v1,v2,v3 vrlb v1,v2,v3 vrlh v1,v2,v3 vrlw v1,v2,v3 vslb v1,v2,v3 vslh v1,v2,v3 vslw v1,v2,v3 vsl v1,v2,v3 vsrb v1,v2,v3 vsrh v1,v2,v3 vsrw v1,v2,v3 vsr v1,v2,v3 vsrab v1,v2,v3 vsrah v1,v2,v3 vsraw v1,v2,v3 vand v1,v2,v3 vandc v1,v2,v3 vor v1,v2,v3 vnor v1,v2,v3 mfvscr v1 mtvscr v1 vmuloub v1,v2,v3 vmulouh v1,v2,v3 vmulosb v1,v2,v3 vmulosh v1,v2,v3 vmuleub v1,v2,v3 vmuleuh v1,v2,v3 vmulesb v1,v2,v3 vmulesh v1,v2,v3 vsum4ubs v1,v2,v3 vsum4sbs v1,v2,v3 vsum4shs v1,v2,v3 vsum2sws v1,v2,v3 vsumsws v1,v2,v3 vaddfp v1,v2,v3 vsubfp v1,v2,v3 vrefp v1,v2 vrsqrtefp v1,v2 vexptefp v1,v2 vlogefp v1,v2 vrfin v1,v2 vrfiz v1,v2 vrfip v1,v2 vrfim v1,v2 vcfux v1,v2,1 vcfsx v1,v2,1 vctuxs v1,v2,1 vctsxs v1,v2,1 vmaxfp v1,v2,v3 vminfp v1,v2,v3 vmrghb v1,v2,v3 vmrghh v1,v2,v3 vmrghw v1,v2,v3 vmrglb v1,v2,v3 vmrglh v1,v2,v3 vmrglw v1,v2,v3 vspltb v1,v2,1 vsplth v1,v2,1 vspltw v1,v2,1 vspltisb v1,1 vspltish v1,1 vspltisw v1,1 vslo v1,v2,v3 vsro v1,v2,v3 vpkuhum v1,v2,v3 vpkuwum v1,v2,v3 vpkuhus v1,v2,v3 vpkuwus v1,v2,v3 vpkshus v1,v2,v3 vpkswus v1,v2,v3 vpkshss v1,v2,v3 vpkswss v1,v2,v3 vupkhsb v1,v2 vupkhsh v1,v2 vupklsb v1,v2 vupklsh v1,v2 vpkpx v1,v2,v3 vupkhpx v1,v2 vupklpx v1,v2 vxor v1,v2,v3 dst r3,r4,1 dstt r3,r4,1 dstst r3,r4,1 dststt r3,r4,1 dss 1 dssall 1 lvebx v1,r3,r4 lvehx v1,r3,r4 lvewx v1,r3,r4 lvsl v1,r3,r4 lvsr v1,r3,r4 lvx v1,r3,r4 lvxl v1,r3,r4 stvebx v1,r3,r4 stvehx v1,r3,r4 stvewx v1,r3,r4 stvx v1,r3,r4 stvxl v1,r3,r4 vcmpbfp v1,v2,v3 vcmpbfp. v1,v2,v3 vcmpeqfp v1,v2,v3 vcmpeqfp. v1,v2,v3 vcmpequb v1,v2,v3 vcmpequb. v1,v2,v3 vcmpequh v1,v2,v3 vcmpequh. v1,v2,v3 vcmpequw v1,v2,v3 vcmpequw. v1,v2,v3 vcmpgefp v1,v2,v3 vcmpgefp. v1,v2,v3 vcmpgtfp v1,v2,v3 vcmpgtfp. v1,v2,v3 vcmpgtsb v1,v2,v3 vcmpgtsb. v1,v2,v3 vcmpgtsh v1,v2,v3 vcmpgtsh. v1,v2,v3 vcmpgtsw v1,v2,v3 vcmpgtsw. v1,v2,v3 vcmpgtub v1,v2,v3 vcmpgtub. v1,v2,v3 vcmpgtuh v1,v2,v3 vcmpgtuh. v1,v2,v3 vcmpgtuw v1,v2,v3 vcmpgtuw. v1,v2,v3 #------------altivec instructions------------ #@data "nonsenseData" @Define nothing { nop } _nothing :end blr @Import CarbonLib { Debugger }
8,318
8,318
0.672277
39c7b4a62f4b8c7a9540387e4f9270403263028f
520
asm
Assembly
programs/oeis/046/A046173.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/046/A046173.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/046/A046173.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A046173: Indices of square numbers that are also pentagonal. ; 1,99,9701,950599,93149001,9127651499,894416697901,87643708742799,8588189040096401,841554882220704499,82463790268588944501,8080609891439495856599,791817305570802005002201,77590015336047156994359099,7603029685627050583442189501,745019319176114910020340211999,73004290249573634131409898586401,7153675425139040029968149721255299,700987187373376349302747262784432901 mul $0,2 add $0,1 seq $0,1078 ; a(n) = 10*a(n-1) - a(n-2) with a(0) = 0, a(1) = 2. div $0,2
65
363
0.838462
367831eefaeb019426c96661bc694ca8a83e9d0d
564
asm
Assembly
oeis/024/A024123.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024123.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024123.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024123: a(n) = 10^n - n^9. ; 1,9,-412,-18683,-252144,-1853125,-9077696,-30353607,-34217728,612579511,9000000000,97642052309,994840219648,9989395500627,99979338953216,999961556640625,9999931280523264,99999881412123503,999999801640709632,9999999677312302221,99999999488000000000,999999999205719953419,9999999998792730782208,99999999998198847338537,999999999997358192459776,9999999999996185302734375,99999999999994570496321024,999999999999992374402515013,9999999999999989421544046592,99999999999999985492854024131 mov $1,10 pow $1,$0 pow $0,9 sub $1,$0 mov $0,$1
62.666667
483
0.859929
230161cef39a5c35e8574fc0d0aef42d2ebcffbe
10,966
asm
Assembly
src/player.asm
kdiduk/tanchik
0b037c41d00b4e7ce5a5469a61aba31de95898cf
[ "MIT" ]
null
null
null
src/player.asm
kdiduk/tanchik
0b037c41d00b4e7ce5a5469a61aba31de95898cf
[ "MIT" ]
5
2020-01-06T17:51:56.000Z
2020-01-11T21:47:53.000Z
src/player.asm
kdiduk/tanchik
0b037c41d00b4e7ce5a5469a61aba31de95898cf
[ "MIT" ]
null
null
null
SECTION rodata_user PUBLIC _player_sprite_f1 PUBLIC _player_sprite_f2 PUBLIC _player_sprite_f3 PUBLIC _player_sprite_f4 PUBLIC _player_sprite1 PUBLIC _player_sprite2 PUBLIC _player_sprite3 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 ._player_sprite_f1 ._player_sprite1 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @00111101 defb @00000000, @01000111 defb @00000000, @00111110 defb @00000000, @01000111 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000100 defb @00000000, @00111101 defb @00000000, @01000101 defb @00000000, @00111101 defb @00000000, @01000101 defb @00000000, @00111100 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111101 defb @00000000, @01000110 defb @00000000, @00111101 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 ._player_sprite2 defb @00000000, @00111100 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @11111111 defb @00000000, @01011010 defb @00000000, @10111101 defb @00000000, @01011010 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @00111100 defb @00000000, @01000010 defb @00000000, @10011001 defb @00000000, @00100100 defb @00000000, @01000010 defb @00000000, @01001010 defb @00000000, @00100100 defb @00000000, @10011001 defb @00000000, @01000010 defb @00000000, @00111100 defb @00000000, @00000000 defb @00000000, @01011010 defb @00000000, @10100101 defb @00000000, @11111111 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 ._player_sprite3 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @10111100 defb @00000000, @11100010 defb @00000000, @01111100 defb @00000000, @11100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @00100010 defb @00000000, @10111100 defb @00000000, @10100010 defb @00000000, @10111100 defb @00000000, @10100010 defb @00000000, @00111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @10111100 defb @00000000, @01100010 defb @00000000, @10111100 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 ._player_sprite_f2 ._player_sprite11 defb @00000000, @00111101 defb @00000000, @01000110 defb @00000000, @00111101 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111100 defb @00000000, @01000101 defb @00000000, @00111101 defb @00000000, @01000101 defb @00000000, @00111101 defb @00000000, @01000100 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000110 defb @00000000, @00111110 defb @00000000, @01000111 defb @00000000, @00111110 defb @00000000, @01000111 defb @00000000, @00111101 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 ._player_sprite21 defb @00000000, @11111111 defb @00000000, @10100101 defb @00000000, @01011010 defb @00000000, @00000000 defb @00000000, @00111100 defb @00000000, @01000010 defb @00000000, @10011001 defb @00000000, @00100100 defb @00000000, @01001010 defb @00000000, @01000010 defb @00000000, @00100100 defb @00000000, @10011001 defb @00000000, @01000010 defb @00000000, @00111100 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @01011010 defb @00000000, @10111101 defb @00000000, @01011010 defb @00000000, @11111111 defb @00000000, @00011000 defb @00000000, @00011000 defb @00000000, @00111100 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 ._player_sprite31 defb @00000000, @10111100 defb @00000000, @01100010 defb @00000000, @10111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @00111100 defb @00000000, @10100010 defb @00000000, @10111100 defb @00000000, @10100010 defb @00000000, @10111100 defb @00000000, @00100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @01100010 defb @00000000, @01111100 defb @00000000, @11100010 defb @00000000, @01111100 defb @00000000, @11100010 defb @00000000, @10111100 defb @00000000, @00000000 defb @00000000, @00000000 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 ._player_sprite_f3 defb @00000000, @00000000 defb @00000000, @01010101 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @11111111 defb @00000000, @01011100 defb @00000000, @10100001 defb @00000000, @11000010 defb @00000000, @10100100 defb @00000000, @11001001 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @11001001 defb @00000000, @10100100 defb @00000000, @11000010 defb @00000000, @10100001 defb @00000000, @01011100 defb @00000000, @11111111 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @01010101 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 defb @00000000, @01010101 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @11111111 defb @00000000, @00001111 defb @00000000, @11100000 defb @00000000, @00010000 defb @00000000, @11001000 defb @00000000, @00100100 defb @00000000, @10010111 defb @00000000, @00010111 defb @00000000, @00100100 defb @00000000, @11001000 defb @00000000, @00010000 defb @00000000, @11100000 defb @00000000, @00001111 defb @00000000, @11111111 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @10101010 defb @00000000, @01010101 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 defb @00000000, @01010000 defb @00000000, @10101000 defb @00000000, @10101000 defb @00000000, @10101000 defb @00000000, @11111000 defb @00000000, @11110000 defb @00000000, @01011000 defb @00000000, @00101000 defb @00000000, @01011000 defb @00000000, @00101001 defb @00000000, @11111111 defb @00000000, @11111111 defb @00000000, @00101001 defb @00000000, @01011000 defb @00000000, @00101000 defb @00000000, @01011000 defb @00000000, @11110000 defb @00000000, @11111000 defb @00000000, @10101000 defb @00000000, @10101000 defb @00000000, @10101000 defb @00000000, @01010000 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 ._player_sprite_f4 defb @00000000, @00000000 defb @00000000, @00001010 defb @00000000, @00010101 defb @00000000, @00010101 defb @00000000, @00010101 defb @00000000, @00011111 defb @00000000, @00001111 defb @00000000, @00011010 defb @00000000, @00010100 defb @00000000, @00011010 defb @00000000, @10010100 defb @00000000, @11111111 defb @00000000, @11111111 defb @00000000, @10010100 defb @00000000, @00011010 defb @00000000, @00010100 defb @00000000, @00011010 defb @00000000, @00001111 defb @00000000, @00011111 defb @00000000, @00010101 defb @00000000, @00010101 defb @00000000, @00010101 defb @00000000, @00001010 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 defb @00000000, @10101010 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @11111111 defb @00000000, @11110000 defb @00000000, @00000111 defb @00000000, @00001000 defb @00000000, @00010011 defb @00000000, @00100100 defb @00000000, @11101001 defb @00000000, @11101000 defb @00000000, @00100100 defb @00000000, @00010011 defb @00000000, @00001000 defb @00000000, @00000111 defb @00000000, @11110000 defb @00000000, @11111111 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @10101010 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @00000000, @00000000 defb @00000000, @10101010 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @11111111 defb @00000000, @00111010 defb @00000000, @10000101 defb @00000000, @01000011 defb @00000000, @00100101 defb @00000000, @10010011 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @10010011 defb @00000000, @00100101 defb @00000000, @01000011 defb @00000000, @10000101 defb @00000000, @00111010 defb @00000000, @11111111 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @01010101 defb @00000000, @10101010 defb @00000000, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000 defb @11111111, @00000000
24.423163
26
0.743571
10bf5a8a9746e21751908ff90268879e45c6b086
6,028
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_2011.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_2011.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_2011.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 %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x10ecc, %rsi nop nop nop nop nop and %r14, %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm3 movups %xmm3, (%rsi) nop sub %rbx, %rbx lea addresses_normal_ht+0x10c4c, %rcx nop nop nop nop dec %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm4 vmovups %ymm4, (%rcx) nop nop nop nop add $18625, %r10 lea addresses_WT_ht+0x6c4c, %r12 nop nop nop cmp %r8, %r8 mov (%r12), %ecx nop nop cmp $9233, %r10 lea addresses_WT_ht+0x3b4c, %rsi nop nop add %r8, %r8 movups (%rsi), %xmm1 vpextrq $0, %xmm1, %rbx nop nop nop nop nop sub $61872, %rbx lea addresses_normal_ht+0xa44c, %rcx inc %rsi mov $0x6162636465666768, %rbx movq %rbx, %xmm5 vmovups %ymm5, (%rcx) dec %r12 lea addresses_WC_ht+0xb32c, %rsi lea addresses_WT_ht+0x6c27, %rdi nop nop dec %r10 mov $80, %rcx rep movsq nop nop nop nop xor $63324, %rbx lea addresses_A_ht+0xfcb6, %rsi lea addresses_A_ht+0x14c4c, %rdi nop nop nop nop cmp $63937, %r10 mov $66, %rcx rep movsb nop nop nop nop nop sub %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rax push %rbp push %rdx push %rsi // Store mov $0x7e6, %rdx nop nop and %rsi, %rsi mov $0x5152535455565758, %r14 movq %r14, %xmm6 movups %xmm6, (%rdx) nop nop nop nop sub $36039, %r13 // Faulty Load lea addresses_D+0x1ac4c, %rbp nop inc %r8 mov (%rbp), %r14w lea oracles, %r8 and $0xff, %r14 shlq $12, %r14 mov (%r8,%r14,1), %r14 pop %rsi pop %rdx pop %rbp pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
37.440994
2,999
0.660086
539c0301249d3f58afe95078a997138970a82875
693
asm
Assembly
oeis/161/A161944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/161/A161944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/161/A161944.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A161944: a(n) = ((4+sqrt(2))*(3+sqrt(2))^n + (4-sqrt(2))*(3-sqrt(2))^n)/4. ; Submitted by Jon Maiga ; 2,7,28,119,518,2275,10024,44219,195146,861343,3802036,16782815,74082638,327016123,1443518272,6371996771,28127352722,124160138935,548069364556,2419295214791,10679285736854,47140647917587,208088887347544,918548788662155,4054670520540122,17898181602605647,79006395971853028,348751104612878639,1539461855874300638,6795513402955653355,29996847426613815664,132412490738993320499,584497012447663213346,2580094639513026036583,11389088749944513726076,50273870023075900100375,221919598888843804519718 mov $1,1 mov $2,2 lpb $0 sub $0,1 sub $2,$1 add $1,$2 add $1,$2 mul $2,7 lpe mov $0,$2
46.2
492
0.802309
0766ce3ac03019af9f40e39fcc2653bf11e768f9
717
asm
Assembly
oeis/097/A097767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097767.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097767: Pell equation solutions (11*b(n))^2 - 122*a(n)^2 = -1 with b(n):=A097766(n), n >= 0. ; Submitted by Jamie Morken(s4) ; 1,485,235709,114554089,55673051545,27056988496781,13149640736384021,6390698340894137425,3105866244033814404529,1509444603902092906463669,733586971630173118726938605,356521758767660233608385698361,173268841174111243360556722464841,84208300288859296612996958732214365,40925060671544444042673161387133716549,19889495278070310945442543437188254028449,9666253780081499575041033437312104324109665,4697779447624330723158996807990245513263268741,2283111145291644649955697407649822007341624498461 mul $0,2 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $3,22 add $3,$1 mov $1,$2 lpe mov $0,$3
47.8
489
0.832636
f51188f8c5658b052dabb274dfa36acb3a4b1979
923
asm
Assembly
List 03/parrot.asm
LeonardoSanBenitez/Assembly-exercises
0f8e7f316d7e0171e28aae1b1dc0b056b123cd92
[ "MIT" ]
null
null
null
List 03/parrot.asm
LeonardoSanBenitez/Assembly-exercises
0f8e7f316d7e0171e28aae1b1dc0b056b123cd92
[ "MIT" ]
null
null
null
List 03/parrot.asm
LeonardoSanBenitez/Assembly-exercises
0f8e7f316d7e0171e28aae1b1dc0b056b123cd92
[ "MIT" ]
null
null
null
# exit if user input begins with "#" .data init: .asciiz "Parrot (Pulp Fiction inspired, motherfucker!)\n\n" julesq: .asciiz "\nSay something, motherfucker!\n" julesr: .ascii "Asshole said: " string: .space 10 .text # Init addi $v0, $zero, 4 # print string service la $a0, init # service parameter syscall loop: #Parrot addi $v0, $zero, 4 # print string service la $a0, julesq # service parameter syscall # User addi $v0, $zero, 8 # read string service la $a0, string # service parameter addi $a1, $zero, 10 # service parameter syscall #exit test la $t0, string # user input string address lb $t1, 0 ($t0) # load first char addi $t2, $zero, 35 # 35 = #, in ascii bne $t1, $t2, reply # if input!='#', keep running. Else, exit addi $v0, $zero, 10 # exit service syscall reply: # Parrot reply addi $v0, $zero, 4 # print string service la $a0, julesr # service parameter syscall j loop
23.666667
65
0.667389
7cb226b779939ef385d2b27301acc81b8f2be3ea
7,762
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1199.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1199.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1199.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xb93e, %r14 nop nop nop nop inc %rcx mov (%r14), %r15d nop add %rcx, %rcx lea addresses_WT_ht+0x1b8ee, %rsi lea addresses_WT_ht+0x18ce, %rdi nop nop sub $14581, %rax mov $3, %rcx rep movsl nop add $14018, %rax lea addresses_UC_ht+0x979e, %r14 nop nop nop nop nop dec %rbx mov (%r14), %di nop nop nop nop nop sub $17886, %rax lea addresses_UC_ht+0x24fe, %rsi nop nop nop nop and %rdi, %rdi mov (%rsi), %r15 nop nop nop cmp $26696, %rcx lea addresses_A_ht+0x13335, %rsi nop nop xor %rcx, %rcx mov $0x6162636465666768, %r14 movq %r14, (%rsi) nop nop xor %rsi, %rsi lea addresses_A_ht+0x1e477, %rbx xor $62468, %rcx mov $0x6162636465666768, %r14 movq %r14, (%rbx) nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x1999e, %rsi nop nop nop cmp $53944, %rcx and $0xffffffffffffffc0, %rsi movntdqa (%rsi), %xmm3 vpextrq $0, %xmm3, %rax nop nop sub %rsi, %rsi lea addresses_D_ht+0xe246, %rsi lea addresses_WT_ht+0x1cf5e, %rdi clflush (%rdi) cmp %r11, %r11 mov $81, %rcx rep movsq nop nop nop nop add $2349, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rax push %rbp push %rbx push %rdi push %rsi // Load lea addresses_D+0xe11e, %rbx nop nop nop inc %r12 mov (%rbx), %r11 nop nop nop nop nop sub %r12, %r12 // Load lea addresses_US+0x972a, %rsi nop nop nop nop xor $55424, %rax movb (%rsi), %r11b nop nop nop cmp %r11, %r11 // Store lea addresses_D+0x1126b, %rbp nop nop nop nop xor $35032, %rbx mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rbp) nop and $44804, %r11 // Store lea addresses_US+0xaf9e, %r11 nop nop nop inc %rbx mov $0x5152535455565758, %rdi movq %rdi, %xmm4 vmovups %ymm4, (%r11) // Exception!!! nop mov (0), %rbx cmp %r11, %r11 // Load lea addresses_D+0x6a7e, %rbx xor $30375, %rax vmovups (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %r12 nop nop add $59645, %rsi // Store lea addresses_WC+0x15c9e, %rbp nop nop nop inc %r11 movw $0x5152, (%rbp) sub $1713, %rdi // Store lea addresses_WC+0x1829e, %r11 nop nop cmp %rdi, %rdi mov $0x5152535455565758, %rsi movq %rsi, %xmm7 movups %xmm7, (%r11) xor %r12, %r12 // Faulty Load lea addresses_D+0x1249e, %rdi cmp $36360, %rsi movb (%rdi), %r11b lea oracles, %rbx and $0xff, %r11 shlq $12, %r11 mov (%rbx,%r11,1), %r11 pop %rsi pop %rdi pop %rbx pop %rbp pop %rax pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 2}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 9}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 4}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 8}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
32.476987
2,999
0.652152
1222f37fb3ce67328c740d97b38c44b7771f923d
7,681
asm
Assembly
source/rom1/rom1_code.asm
evanbowman/Red
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
5
2021-08-30T16:18:55.000Z
2021-10-30T20:23:32.000Z
source/rom1/rom1_code.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
source/rom1/rom1_code.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ;;; ASM Source code for Red GBC, by Evan Bowman, 2021 ;;; ;;; ;;; The following licence covers the source code included in this file. The ;;; game's characters and artwork belong to Evan Bowman, and should not be used ;;; without permission. ;;; ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; 1. Redistributions of source code must retain the above copyright notice, ;;; this list of conditions and the following disclaimer. ;;; ;;; 2. Redistributions in binary form must reproduce the above copyright notice, ;;; this list of conditions and the following disclaimer in the documentation ;;; and/or other materials provided with the distribution. ;;; ;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ;;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE ;;; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ;;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ;;; SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ;;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ;;; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ;;; POSSIBILITY OF SUCH DAMAGE. ;;; ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ############################################################################ SECTION "ROM1_CODE", ROMX, BANK[1] ;;; ;;; Rom bank 1 contains various functions for loading entities and dealing with ;;; map data, as well as misc utility code. ;;; INCLUDE "r1_miscUtilities.asm" INCLUDE "r1_readKeys.asm" INCLUDE "r1_mapFunctions.asm" INCLUDE "r1_inventory.asm" INCLUDE "r1_entityConstructors.asm" INCLUDE "r1_exp.asm" INCLUDE "r1_worldgen.asm" INCLUDE "r1_blizzard.asm" ;;; ---------------------------------------------------------------------------- r1_GameboyColorNotDetectedText:: DB " CGB Required", 0 r1_DMGPutText: ;;; hl - text ;;; b - x ;;; c - y ld de, $9cc2 .loop: ld a, [hl] cp 0 jr Z, .done ld [de], a inc hl inc de jr .loop .done: ret ;;; NOTE: This function MUST be in rom0 or rom1. r1_GameboyColorNotDetected: ld hl, _SCRN1 ld a, $32 ld bc, $9FFF - $9C00 ; size of scrn1 fcall Memset ld hl, _OAMRAM ld a, 0 ld bc, $FE9F - $FE00 fcall Memset ld hl, r1_GameboyColorNotDetectedText ld b, $88 ld de, _SCRN1 fcall r1_DMGPutText fcall LcdOn ld a, 7 ld [rWX], a halt ;;; ---------------------------------------------------------------------------- r1_GameboyAdvanceDetected: ld a, 1 ldh [hvar_agb_detected], a ret ;;; ---------------------------------------------------------------------------- r1_SaveMagic: DB $52, $45, $44, $5f ;;; ---------------------------------------------------------------------------- r1_InvalidateSave: ld a, $0a ; \ Enable SRAM read/write ld [rRAMG], a ; / xor a ld [rRAMB], a ld hl, sram_var_magic ld a, $5f ld bc, 4 fcall Memset xor a ; \ Disable SRAM read/write ld [rRAMG], a ; / ret ;;; ---------------------------------------------------------------------------- r1_SaveExists: ;;; trashes all registers ;;; Z if save exists, NZ otherwise ld a, $0a ; \ Enable SRAM read/write ld [rRAMG], a ; / ld hl, r1_SaveMagic ld de, sram_var_magic ld c, 4 fcall Memeq ld a, 0 ; \ preserve z flag!! ld [rRAMG], a ; / Disable SRAM read/write ret ;;; ---------------------------------------------------------------------------- r1_SaveGame: ld a, $0a ; \ Enable SRAM read/write ld [rRAMG], a ; / xor a ld [rRAMB], a ld hl, r1_SaveMagic ld bc, 4 ld de, sram_var_magic fcall Memcpy RAM_BANK 1 ld hl, wram1_var_world_map_info ld bc, wram1_var_world_map_info_end - wram1_var_world_map_info ld de, sram_var_world_map_info fcall Memcpy ld hl, PERSISTENT_STATE_DATA ld bc, PERSISTENT_STATE_DATA_END - PERSISTENT_STATE_DATA ld de, sram_var_persistent_data fcall Memcpy RAM_BANK 2 ld hl, wram2_var_collectibles ld bc, wram2_var_collectibles_end - wram2_var_collectibles ld de, sram_var_collectibles fcall Memcpy xor a ; \ Disable SRAM read/writes ld [rRAMG], a ; / ret ;;; ---------------------------------------------------------------------------- r1_LoadGame: ld a, $0a ; \ Enable SRAM read/write ld [rRAMG], a ; / ld a, 0 ld [rRAMB], a RAM_BANK 1 ld de, wram1_var_world_map_info ld bc, wram1_var_world_map_info_end - wram1_var_world_map_info ld hl, sram_var_world_map_info fcall Memcpy ld de, PERSISTENT_STATE_DATA ld bc, PERSISTENT_STATE_DATA_END - PERSISTENT_STATE_DATA ld hl, sram_var_persistent_data fcall Memcpy RAM_BANK 2 ld de, wram2_var_collectibles ld bc, wram2_var_collectibles_end - wram2_var_collectibles ld hl, sram_var_collectibles fcall Memcpy xor a ; \ Disable SRAM read/write ld [rRAMG], a ; / ret ;;; ---------------------------------------------------------------------------- r1_SetCgbColorProfile: ld a, 7 ld [var_fade_bank], a ld bc, r7_BackgroundPaletteFadeToBlack ld a, b ld [var_fade_to_black_bkg_lut], a ld a, c ld [var_fade_to_black_bkg_lut + 1], a ld bc, r7_SpritePaletteFadeToBlack ld a, b ld [var_fade_to_black_spr_lut], a ld a, c ld [var_fade_to_black_spr_lut + 1], a ld bc, r7_BackgroundPaletteFadeToTan ld a, b ld [var_fade_to_tan_bkg_lut], a ld a, c ld [var_fade_to_tan_bkg_lut + 1], a ld bc, r7_SpritePaletteFadeToTan ld a, b ld [var_fade_to_tan_spr_lut], a ld a, c ld [var_fade_to_tan_spr_lut + 1], a ret ;;; ---------------------------------------------------------------------------- ;;; SECTION ROM1_CODE ;;; ############################################################################
28.135531
80
0.475199
fac8e3b322208f1fd84ca9a9a619d11b5551e95e
1,384
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_1_1940.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_1_1940.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_1_1940.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 %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1bd26, %rsi lea addresses_A_ht+0x3e, %rdi nop nop nop nop add $5005, %rbx mov $20, %rcx rep movsb nop nop nop nop add %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r9 push %rcx push %rsi // Store mov $0x6ab6da0000000ede, %rcx nop nop nop nop nop inc %r12 movb $0x51, (%rcx) xor $46424, %r14 // Faulty Load lea addresses_WC+0x15b9e, %rcx clflush (%rcx) nop nop and %r13, %r13 vmovups (%rcx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r14 lea oracles, %r12 and $0xff, %r14 shlq $12, %r14 mov (%r12,%r14,1), %r14 pop %rsi pop %rcx pop %r9 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'00': 1} 00 */
16.878049
146
0.651012
115d59ed385285b7bdf6b1d8faec56f9a202a7d4
849
asm
Assembly
oeis/094/A094779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/094/A094779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/094/A094779.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A094779: Let 2^k = smallest power of 2 >= binomial(n,[n/2]); a(n) = 2^k - binomial(n,[n/2]). ; Submitted by Christian Krause ; 0,0,0,1,2,6,12,29,58,2,4,50,100,332,664,1757,3514,8458,16916,38694,77388,171572,343144,745074,1490148,3188308,6376616,13496132,26992264,56658968,113317936,236330717,472661434,980680538,1961361076,4052366942,8104733884,16687106468,33374212936,68515689062,137031378124,5748969724,11497939448,47462145916,94924291832,281331147304,562662294608,1468384202866,2936768405732,7163440958788,14326881917576,33515710236604,67031420473208,152430194018568,304860388037136,679254326990276,1358508653980552 seq $0,218008 ; Sum of successive absolute differences of the binomial coefficients = 2*A014495(n) seq $0,80079 ; Least number causing the longest carry sequence when adding numbers <= n to n in binary representation. div $0,2
106.125
493
0.813899
ee1bf4e831a559a2bab5edc5c0df5f9fe64eb300
14,246
asm
Assembly
contrib/libs/openssl/asm/windows/crypto/rc4/rc4-x86_64.asm
ZhekehZ/catboost
3f774da539b8e57cca25686b89c473cbd1f61a6c
[ "Apache-2.0" ]
4
2020-06-24T06:07:52.000Z
2021-04-16T22:58:09.000Z
contrib/libs/openssl/asm/windows/crypto/rc4/rc4-x86_64.asm
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
6
2020-02-18T22:12:29.000Z
2020-02-18T22:31:26.000Z
contrib/libs/openssl/asm/windows/crypto/rc4/rc4-x86_64.asm
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1
2021-04-27T23:40:09.000Z
2021-04-27T23:40:09.000Z
default rel %define XMMWORD %define YMMWORD %define ZMMWORD section .text code align=64 EXTERN OPENSSL_ia32cap_P global RC4 ALIGN 16 RC4: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_RC4: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 or rsi,rsi jne NEAR $L$entry mov rdi,QWORD[8+rsp] ;WIN64 epilogue mov rsi,QWORD[16+rsp] DB 0F3h,0C3h ;repret $L$entry: push rbx push r12 push r13 $L$prologue: mov r11,rsi mov r12,rdx mov r13,rcx xor r10,r10 xor rcx,rcx lea rdi,[8+rdi] mov r10b,BYTE[((-8))+rdi] mov cl,BYTE[((-4))+rdi] cmp DWORD[256+rdi],-1 je NEAR $L$RC4_CHAR mov r8d,DWORD[OPENSSL_ia32cap_P] xor rbx,rbx inc r10b sub rbx,r10 sub r13,r12 mov eax,DWORD[r10*4+rdi] test r11,-16 jz NEAR $L$loop1 bt r8d,30 jc NEAR $L$intel and rbx,7 lea rsi,[1+r10] jz NEAR $L$oop8 sub r11,rbx $L$oop8_warmup: add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov DWORD[r10*4+rdi],edx add al,dl inc r10b mov edx,DWORD[rax*4+rdi] mov eax,DWORD[r10*4+rdi] xor dl,BYTE[r12] mov BYTE[r13*1+r12],dl lea r12,[1+r12] dec rbx jnz NEAR $L$oop8_warmup lea rsi,[1+r10] jmp NEAR $L$oop8 ALIGN 16 $L$oop8: add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov ebx,DWORD[rsi*4+rdi] ror r8,8 mov DWORD[r10*4+rdi],edx add dl,al mov r8b,BYTE[rdx*4+rdi] add cl,bl mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx mov eax,DWORD[4+rsi*4+rdi] ror r8,8 mov DWORD[4+r10*4+rdi],edx add dl,bl mov r8b,BYTE[rdx*4+rdi] add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov ebx,DWORD[8+rsi*4+rdi] ror r8,8 mov DWORD[8+r10*4+rdi],edx add dl,al mov r8b,BYTE[rdx*4+rdi] add cl,bl mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx mov eax,DWORD[12+rsi*4+rdi] ror r8,8 mov DWORD[12+r10*4+rdi],edx add dl,bl mov r8b,BYTE[rdx*4+rdi] add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov ebx,DWORD[16+rsi*4+rdi] ror r8,8 mov DWORD[16+r10*4+rdi],edx add dl,al mov r8b,BYTE[rdx*4+rdi] add cl,bl mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx mov eax,DWORD[20+rsi*4+rdi] ror r8,8 mov DWORD[20+r10*4+rdi],edx add dl,bl mov r8b,BYTE[rdx*4+rdi] add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov ebx,DWORD[24+rsi*4+rdi] ror r8,8 mov DWORD[24+r10*4+rdi],edx add dl,al mov r8b,BYTE[rdx*4+rdi] add sil,8 add cl,bl mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx mov eax,DWORD[((-4))+rsi*4+rdi] ror r8,8 mov DWORD[28+r10*4+rdi],edx add dl,bl mov r8b,BYTE[rdx*4+rdi] add r10b,8 ror r8,8 sub r11,8 xor r8,QWORD[r12] mov QWORD[r13*1+r12],r8 lea r12,[8+r12] test r11,-8 jnz NEAR $L$oop8 cmp r11,0 jne NEAR $L$loop1 jmp NEAR $L$exit ALIGN 16 $L$intel: test r11,-32 jz NEAR $L$loop1 and rbx,15 jz NEAR $L$oop16_is_hot sub r11,rbx $L$oop16_warmup: add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov DWORD[r10*4+rdi],edx add al,dl inc r10b mov edx,DWORD[rax*4+rdi] mov eax,DWORD[r10*4+rdi] xor dl,BYTE[r12] mov BYTE[r13*1+r12],dl lea r12,[1+r12] dec rbx jnz NEAR $L$oop16_warmup mov rbx,rcx xor rcx,rcx mov cl,bl $L$oop16_is_hot: lea rsi,[r10*4+rdi] add cl,al mov edx,DWORD[rcx*4+rdi] pxor xmm0,xmm0 mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[4+rsi] movzx eax,al mov DWORD[rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],0 jmp NEAR $L$oop16_enter ALIGN 16 $L$oop16: add cl,al mov edx,DWORD[rcx*4+rdi] pxor xmm2,xmm0 psllq xmm1,8 pxor xmm0,xmm0 mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[4+rsi] movzx eax,al mov DWORD[rsi],edx pxor xmm2,xmm1 add cl,bl pinsrw xmm0,WORD[rax*4+rdi],0 movdqu XMMWORD[r13*1+r12],xmm2 lea r12,[16+r12] $L$oop16_enter: mov edx,DWORD[rcx*4+rdi] pxor xmm1,xmm1 mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[8+rsi] movzx ebx,bl mov DWORD[4+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],0 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[12+rsi] movzx eax,al mov DWORD[8+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],1 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[16+rsi] movzx ebx,bl mov DWORD[12+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],1 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[20+rsi] movzx eax,al mov DWORD[16+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],2 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[24+rsi] movzx ebx,bl mov DWORD[20+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],2 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[28+rsi] movzx eax,al mov DWORD[24+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],3 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[32+rsi] movzx ebx,bl mov DWORD[28+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],3 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[36+rsi] movzx eax,al mov DWORD[32+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],4 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[40+rsi] movzx ebx,bl mov DWORD[36+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],4 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[44+rsi] movzx eax,al mov DWORD[40+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],5 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[48+rsi] movzx ebx,bl mov DWORD[44+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],5 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[52+rsi] movzx eax,al mov DWORD[48+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],6 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl mov eax,DWORD[56+rsi] movzx ebx,bl mov DWORD[52+rsi],edx add cl,al pinsrw xmm1,WORD[rbx*4+rdi],6 mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax add al,dl mov ebx,DWORD[60+rsi] movzx eax,al mov DWORD[56+rsi],edx add cl,bl pinsrw xmm0,WORD[rax*4+rdi],7 add r10b,16 movdqu xmm2,XMMWORD[r12] mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],ebx add bl,dl movzx ebx,bl mov DWORD[60+rsi],edx lea rsi,[r10*4+rdi] pinsrw xmm1,WORD[rbx*4+rdi],7 mov eax,DWORD[rsi] mov rbx,rcx xor rcx,rcx sub r11,16 mov cl,bl test r11,-16 jnz NEAR $L$oop16 psllq xmm1,8 pxor xmm2,xmm0 pxor xmm2,xmm1 movdqu XMMWORD[r13*1+r12],xmm2 lea r12,[16+r12] cmp r11,0 jne NEAR $L$loop1 jmp NEAR $L$exit ALIGN 16 $L$loop1: add cl,al mov edx,DWORD[rcx*4+rdi] mov DWORD[rcx*4+rdi],eax mov DWORD[r10*4+rdi],edx add al,dl inc r10b mov edx,DWORD[rax*4+rdi] mov eax,DWORD[r10*4+rdi] xor dl,BYTE[r12] mov BYTE[r13*1+r12],dl lea r12,[1+r12] dec r11 jnz NEAR $L$loop1 jmp NEAR $L$exit ALIGN 16 $L$RC4_CHAR: add r10b,1 movzx eax,BYTE[r10*1+rdi] test r11,-8 jz NEAR $L$cloop1 jmp NEAR $L$cloop8 ALIGN 16 $L$cloop8: mov r8d,DWORD[r12] mov r9d,DWORD[4+r12] add cl,al lea rsi,[1+r10] movzx edx,BYTE[rcx*1+rdi] movzx esi,sil movzx ebx,BYTE[rsi*1+rdi] mov BYTE[rcx*1+rdi],al cmp rcx,rsi mov BYTE[r10*1+rdi],dl jne NEAR $L$cmov0 mov rbx,rax $L$cmov0: add dl,al xor r8b,BYTE[rdx*1+rdi] ror r8d,8 add cl,bl lea r10,[1+rsi] movzx edx,BYTE[rcx*1+rdi] movzx r10d,r10b movzx eax,BYTE[r10*1+rdi] mov BYTE[rcx*1+rdi],bl cmp rcx,r10 mov BYTE[rsi*1+rdi],dl jne NEAR $L$cmov1 mov rax,rbx $L$cmov1: add dl,bl xor r8b,BYTE[rdx*1+rdi] ror r8d,8 add cl,al lea rsi,[1+r10] movzx edx,BYTE[rcx*1+rdi] movzx esi,sil movzx ebx,BYTE[rsi*1+rdi] mov BYTE[rcx*1+rdi],al cmp rcx,rsi mov BYTE[r10*1+rdi],dl jne NEAR $L$cmov2 mov rbx,rax $L$cmov2: add dl,al xor r8b,BYTE[rdx*1+rdi] ror r8d,8 add cl,bl lea r10,[1+rsi] movzx edx,BYTE[rcx*1+rdi] movzx r10d,r10b movzx eax,BYTE[r10*1+rdi] mov BYTE[rcx*1+rdi],bl cmp rcx,r10 mov BYTE[rsi*1+rdi],dl jne NEAR $L$cmov3 mov rax,rbx $L$cmov3: add dl,bl xor r8b,BYTE[rdx*1+rdi] ror r8d,8 add cl,al lea rsi,[1+r10] movzx edx,BYTE[rcx*1+rdi] movzx esi,sil movzx ebx,BYTE[rsi*1+rdi] mov BYTE[rcx*1+rdi],al cmp rcx,rsi mov BYTE[r10*1+rdi],dl jne NEAR $L$cmov4 mov rbx,rax $L$cmov4: add dl,al xor r9b,BYTE[rdx*1+rdi] ror r9d,8 add cl,bl lea r10,[1+rsi] movzx edx,BYTE[rcx*1+rdi] movzx r10d,r10b movzx eax,BYTE[r10*1+rdi] mov BYTE[rcx*1+rdi],bl cmp rcx,r10 mov BYTE[rsi*1+rdi],dl jne NEAR $L$cmov5 mov rax,rbx $L$cmov5: add dl,bl xor r9b,BYTE[rdx*1+rdi] ror r9d,8 add cl,al lea rsi,[1+r10] movzx edx,BYTE[rcx*1+rdi] movzx esi,sil movzx ebx,BYTE[rsi*1+rdi] mov BYTE[rcx*1+rdi],al cmp rcx,rsi mov BYTE[r10*1+rdi],dl jne NEAR $L$cmov6 mov rbx,rax $L$cmov6: add dl,al xor r9b,BYTE[rdx*1+rdi] ror r9d,8 add cl,bl lea r10,[1+rsi] movzx edx,BYTE[rcx*1+rdi] movzx r10d,r10b movzx eax,BYTE[r10*1+rdi] mov BYTE[rcx*1+rdi],bl cmp rcx,r10 mov BYTE[rsi*1+rdi],dl jne NEAR $L$cmov7 mov rax,rbx $L$cmov7: add dl,bl xor r9b,BYTE[rdx*1+rdi] ror r9d,8 lea r11,[((-8))+r11] mov DWORD[r13],r8d lea r12,[8+r12] mov DWORD[4+r13],r9d lea r13,[8+r13] test r11,-8 jnz NEAR $L$cloop8 cmp r11,0 jne NEAR $L$cloop1 jmp NEAR $L$exit ALIGN 16 $L$cloop1: add cl,al movzx ecx,cl movzx edx,BYTE[rcx*1+rdi] mov BYTE[rcx*1+rdi],al mov BYTE[r10*1+rdi],dl add dl,al add r10b,1 movzx edx,dl movzx r10d,r10b movzx edx,BYTE[rdx*1+rdi] movzx eax,BYTE[r10*1+rdi] xor dl,BYTE[r12] lea r12,[1+r12] mov BYTE[r13],dl lea r13,[1+r13] sub r11,1 jnz NEAR $L$cloop1 jmp NEAR $L$exit ALIGN 16 $L$exit: sub r10b,1 mov DWORD[((-8))+rdi],r10d mov DWORD[((-4))+rdi],ecx mov r13,QWORD[rsp] mov r12,QWORD[8+rsp] mov rbx,QWORD[16+rsp] add rsp,24 $L$epilogue: mov rdi,QWORD[8+rsp] ;WIN64 epilogue mov rsi,QWORD[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_RC4: global RC4_set_key ALIGN 16 RC4_set_key: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_RC4_set_key: mov rdi,rcx mov rsi,rdx mov rdx,r8 lea rdi,[8+rdi] lea rdx,[rsi*1+rdx] neg rsi mov rcx,rsi xor eax,eax xor r9,r9 xor r10,r10 xor r11,r11 mov r8d,DWORD[OPENSSL_ia32cap_P] bt r8d,20 jc NEAR $L$c1stloop jmp NEAR $L$w1stloop ALIGN 16 $L$w1stloop: mov DWORD[rax*4+rdi],eax add al,1 jnc NEAR $L$w1stloop xor r9,r9 xor r8,r8 ALIGN 16 $L$w2ndloop: mov r10d,DWORD[r9*4+rdi] add r8b,BYTE[rsi*1+rdx] add r8b,r10b add rsi,1 mov r11d,DWORD[r8*4+rdi] cmovz rsi,rcx mov DWORD[r8*4+rdi],r10d mov DWORD[r9*4+rdi],r11d add r9b,1 jnc NEAR $L$w2ndloop jmp NEAR $L$exit_key ALIGN 16 $L$c1stloop: mov BYTE[rax*1+rdi],al add al,1 jnc NEAR $L$c1stloop xor r9,r9 xor r8,r8 ALIGN 16 $L$c2ndloop: mov r10b,BYTE[r9*1+rdi] add r8b,BYTE[rsi*1+rdx] add r8b,r10b add rsi,1 mov r11b,BYTE[r8*1+rdi] jnz NEAR $L$cnowrap mov rsi,rcx $L$cnowrap: mov BYTE[r8*1+rdi],r10b mov BYTE[r9*1+rdi],r11b add r9b,1 jnc NEAR $L$c2ndloop mov DWORD[256+rdi],-1 ALIGN 16 $L$exit_key: xor eax,eax mov DWORD[((-8))+rdi],eax mov DWORD[((-4))+rdi],eax mov rdi,QWORD[8+rsp] ;WIN64 epilogue mov rsi,QWORD[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_RC4_set_key: global RC4_options ALIGN 16 RC4_options: lea rax,[$L$opts] mov edx,DWORD[OPENSSL_ia32cap_P] bt edx,20 jc NEAR $L$8xchar bt edx,30 jnc NEAR $L$done add rax,25 DB 0F3h,0C3h ;repret $L$8xchar: add rax,12 $L$done: DB 0F3h,0C3h ;repret ALIGN 64 $L$opts: DB 114,99,52,40,56,120,44,105,110,116,41,0 DB 114,99,52,40,56,120,44,99,104,97,114,41,0 DB 114,99,52,40,49,54,120,44,105,110,116,41,0 DB 82,67,52,32,102,111,114,32,120,56,54,95,54,52,44,32 DB 67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97 DB 112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103 DB 62,0 ALIGN 64 EXTERN __imp_RtlVirtualUnwind ALIGN 16 stream_se_handler: push rsi push rdi push rbx push rbp push r12 push r13 push r14 push r15 pushfq sub rsp,64 mov rax,QWORD[120+r8] mov rbx,QWORD[248+r8] lea r10,[$L$prologue] cmp rbx,r10 jb NEAR $L$in_prologue mov rax,QWORD[152+r8] lea r10,[$L$epilogue] cmp rbx,r10 jae NEAR $L$in_prologue lea rax,[24+rax] mov rbx,QWORD[((-8))+rax] mov r12,QWORD[((-16))+rax] mov r13,QWORD[((-24))+rax] mov QWORD[144+r8],rbx mov QWORD[216+r8],r12 mov QWORD[224+r8],r13 $L$in_prologue: mov rdi,QWORD[8+rax] mov rsi,QWORD[16+rax] mov QWORD[152+r8],rax mov QWORD[168+r8],rsi mov QWORD[176+r8],rdi jmp NEAR $L$common_seh_exit ALIGN 16 key_se_handler: push rsi push rdi push rbx push rbp push r12 push r13 push r14 push r15 pushfq sub rsp,64 mov rax,QWORD[152+r8] mov rdi,QWORD[8+rax] mov rsi,QWORD[16+rax] mov QWORD[168+r8],rsi mov QWORD[176+r8],rdi $L$common_seh_exit: mov rdi,QWORD[40+r9] mov rsi,r8 mov ecx,154 DD 0xa548f3fc mov rsi,r9 xor rcx,rcx mov rdx,QWORD[8+rsi] mov r8,QWORD[rsi] mov r9,QWORD[16+rsi] mov r10,QWORD[40+rsi] lea r11,[56+rsi] lea r12,[24+rsi] mov QWORD[32+rsp],r10 mov QWORD[40+rsp],r11 mov QWORD[48+rsp],r12 mov QWORD[56+rsp],rcx call QWORD[__imp_RtlVirtualUnwind] mov eax,1 add rsp,64 popfq pop r15 pop r14 pop r13 pop r12 pop rbp pop rbx pop rdi pop rsi DB 0F3h,0C3h ;repret section .pdata rdata align=4 ALIGN 4 DD $L$SEH_begin_RC4 wrt ..imagebase DD $L$SEH_end_RC4 wrt ..imagebase DD $L$SEH_info_RC4 wrt ..imagebase DD $L$SEH_begin_RC4_set_key wrt ..imagebase DD $L$SEH_end_RC4_set_key wrt ..imagebase DD $L$SEH_info_RC4_set_key wrt ..imagebase section .xdata rdata align=8 ALIGN 8 $L$SEH_info_RC4: DB 9,0,0,0 DD stream_se_handler wrt ..imagebase $L$SEH_info_RC4_set_key: DB 9,0,0,0 DD key_se_handler wrt ..imagebase
18.311054
65
0.649937