source
stringclasses 1
value | id
stringlengths 40
40
| language
stringclasses 2
values | date
stringclasses 1
value | author
stringclasses 1
value | url
stringclasses 1
value | title
stringclasses 1
value | extra
stringlengths 528
1.53k
| quality_signals
stringlengths 139
178
| text
stringlengths 6
1.05M
|
---|---|---|---|---|---|---|---|---|---|
TheStack | eb20a131861cc9b06c71bdbca06d9ab93eb83a39 | Assemblycode:Assembly | {"size": 299, "ext": "asm", "max_stars_repo_path": "programs/oeis/016/A016187.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/016/A016187.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/016/A016187.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 24.9166666667, "max_line_length": 177, "alphanum_fraction": 0.7558528428} | ; A016187: Expansion of 1/((1-8x)(1-11x)).
; 1,19,273,3515,42761,503139,5796673,65860555,741243321,8287894259,92240578673,1023236299995,11324318776681,125117262357379,1380687932442273,15222751628953835,167731742895202841
add $0,1
mov $1,11
pow $1,$0
mov $2,8
pow $2,$0
sub $1,$2
div $1,3
mov $0,$1
|
||||
TheStack | 6d3c5daa50a69433fa4f853c824fbde5dbca3aa2 | Assemblycode:Assembly | {"size": 7720, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_449.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_449.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_449.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 34.3111111111, "max_line_length": 2999, "alphanum_fraction": 0.6563471503} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xa0dd, %r11
nop
nop
nop
nop
dec %rsi
mov (%r11), %ebx
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_D_ht+0xdcbd, %rsi
lea addresses_WC_ht+0x121c7, %rdi
nop
nop
nop
dec %r14
mov $41, %rcx
rep movsl
nop
nop
nop
nop
nop
and $18748, %rbx
lea addresses_A_ht+0x95d1, %rsi
nop
and %r13, %r13
movw $0x6162, (%rsi)
nop
and %r14, %r14
lea addresses_D_ht+0x7055, %rbx
nop
nop
nop
nop
xor %r13, %r13
movb $0x61, (%rbx)
and %rcx, %rcx
lea addresses_A_ht+0x93f9, %r11
clflush (%r11)
nop
nop
nop
nop
nop
sub %r14, %r14
vmovups (%r11), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
nop
inc %rbx
lea addresses_D_ht+0x154dd, %r14
nop
nop
nop
nop
add %rcx, %rcx
mov (%r14), %r13w
nop
nop
sub %r13, %r13
lea addresses_D_ht+0x16134, %rbx
nop
nop
nop
nop
nop
add $41494, %rdi
movups (%rbx), %xmm2
vpextrq $0, %xmm2, %r13
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_WC_ht+0xc321, %r14
nop
nop
nop
xor $29316, %rcx
mov $0x6162636465666768, %r13
movq %r13, (%r14)
nop
nop
nop
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0x114dd, %rsi
lea addresses_WT_ht+0xd6dd, %rdi
dec %r12
mov $119, %rcx
rep movsb
nop
and %r14, %r14
lea addresses_normal_ht+0x1501d, %rsi
lea addresses_UC_ht+0xd0dd, %rdi
nop
nop
cmp $16303, %r11
mov $115, %rcx
rep movsb
cmp $28792, %r14
lea addresses_normal_ht+0x1bc7d, %rsi
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %r14
movq %r14, %xmm2
movups %xmm2, (%rsi)
cmp $7340, %rcx
lea addresses_A_ht+0x158dd, %rsi
cmp $36589, %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm4
movups %xmm4, (%rsi)
nop
and $17122, %r11
lea addresses_normal_ht+0x165dd, %rsi
inc %r12
movb (%rsi), %bl
nop
nop
nop
add $36934, %rcx
lea addresses_D_ht+0x56b9, %rsi
lea addresses_A_ht+0xfddd, %rdi
nop
nop
nop
nop
cmp %rbx, %rbx
mov $75, %rcx
rep movsw
nop
nop
nop
nop
sub %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %rax
push %rbx
push %rdi
push %rdx
// Store
lea addresses_UC+0xe6dd, %rdi
cmp $50744, %r15
movb $0x51, (%rdi)
nop
nop
nop
add $47072, %rdx
// Faulty Load
mov $0x1d9ef200000008dd, %rax
nop
cmp $43380, %rdx
movb (%rax), %r15b
lea oracles, %rdx
and $0xff, %r15
shlq $12, %r15
mov (%rdx,%r15,1), %r15
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 3}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 7}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | a1e123b3033951f13c2c716c22ff35e6008ce43d | Assemblycode:Assembly | {"size": 921, "ext": "asm", "max_stars_repo_path": "src/gravity.asm", "max_stars_repo_name": "Gegel85/BTTGB", "max_stars_repo_stars_event_min_datetime": "2020-03-28T22:38:50.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-28T22:38:50.000Z", "max_issues_repo_path": "src/gravity.asm", "max_issues_repo_name": "Gegel85/BTTGB", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/gravity.asm", "max_forks_repo_name": "Gegel85/BTTGB", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.9718309859, "max_line_length": 55, "alphanum_fraction": 0.6275787188} | ; Initialize the gravity timer.
; Params:
; None
; Return:
; None
; Registers:
; af -> Not preserved
; bc -> Not preserved
; de -> Not preserved
; hl -> Not preserved
initGravity::
ld hl, GRAVITY_TIMER
ld [hl], GRAVITY_CONSTANT
ld hl, GRAVITY_LIMITER
ld [hl], 0
ret
; Update the gravity.
; Params:
; None
; Return:
; None
; Registers:
; af -> Not preserved
; bc -> Not preserved
; de -> Not preserved
; hl -> Not preserved
updateGravity::
ld a, 0
ld hl, GRAVITY_TIMER
cp a, [hl]
jr nz, .isFalling
ld [hl], GRAVITY_CONSTANT
ld a, [hl]
ld hl, GRAVITY_LIMITER
sub [hl]
ld [hl], a
ld hl, PLAYER_STRUCT + BASIC_OBJECT_STRUCT_Y_SPEED_OFF
ld a, 7 ; Max speed
cp [hl]
jr z, .overflow
inc [hl]
ld a, 0
cp [hl]
jr nz, .skipZero
inc [hl]
.skipZero
ld hl, GRAVITY_LIMITER
inc [hl]
ret
.isFalling:
dec [hl]
ret
.capGravity:
ld [hl], 1
ret
.overflow:
ret
|
||||
TheStack | 8229c62967dc41d9b1da411d8a88d3829f996758 | Assemblycode:Assembly | {"size": 1249, "ext": "asm", "max_stars_repo_path": "programs/oeis/086/A086162.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/086/A086162.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/086/A086162.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 78.0625, "max_line_length": 1005, "alphanum_fraction": 0.7261809448} | ; A086162: Number of monomial ideals in two variables x, y that are Artinian, integrally closed, of colength n and contain x^3.
; 1,1,2,3,3,5,5,5,7,8,8,11,11,11,14,15,15,19,19,19,23,24,24,29,29,29,34,35,35,41,41,41,47,48,48,55,55,55,62,63,63,71,71,71,79,80,80,89,89,89,98,99,99,109,109,109,119,120,120,131,131,131,142,143,143,155,155,155,167,168,168,181,181,181,194,195,195,209,209,209,223,224,224,239,239,239,254,255,255,271,271,271,287,288,288,305,305,305,322,323,323,341,341,341,359,360,360,379,379,379,398,399,399,419,419,419,439,440,440,461,461,461,482,483,483,505,505,505,527,528,528,551,551,551,574,575,575,599,599,599,623,624,624,649,649,649,674,675,675,701,701,701,727,728,728,755,755,755,782,783,783,811,811,811,839,840,840,869,869,869,898,899,899,929,929,929,959,960,960,991,991,991,1022,1023,1023,1055,1055,1055,1087,1088,1088,1121,1121,1121,1154,1155,1155,1189,1189,1189,1223,1224,1224,1259,1259,1259,1294,1295,1295,1331,1331,1331,1367,1368,1368,1405,1405,1405,1442,1443,1443,1481,1481,1481,1519,1520,1520,1559,1559,1559,1598,1599,1599,1639,1639,1639,1679,1680,1680,1721,1721,1721,1762,1763,1763,1805,1805,1805,1847,1848
add $0,2
mov $2,$0
mov $3,2
lpb $2
add $3,$2
lpb $3
add $1,1
trn $3,6
lpe
trn $2,3
add $3,3
lpe
|
||||
TheStack | f266f2b84e75481b6b5c2b85b1c04ab2c08f2218 | Assemblycode:Assembly | {"size": 695, "ext": "asm", "max_stars_repo_path": "oeis/302/A302612.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/302/A302612.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/302/A302612.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 77.2222222222, "max_line_length": 492, "alphanum_fraction": 0.8014388489} | ; A302612: a(n) = (n+1)*(n^4-4*n^3+11*n^2-8*n+12)/12.
; Submitted by Christian Krause
; 1,2,6,20,65,186,462,1016,2025,3730,6446,10572,16601,25130,36870,52656,73457,100386,134710,177860,231441,297242,377246,473640,588825,725426,886302,1074556,1293545,1546890,1838486,2172512,2553441,2986050,3475430,4026996,4646497,5340026,6114030,6975320,7931081,8988882,10156686,11442860,12856185,14405866,16101542,17953296,19971665,22167650,24552726,27138852,29938481,32964570,36230590,39750536,43538937,47610866,51981950,56668380,61686921,67054922,72790326,78911680,85438145,92389506,99786182
mov $2,$0
seq $0,116701 ; Number of permutations of length n that avoid the patterns 132, 4321.
add $2,1
mul $0,$2
|
||||
TheStack | 0c921fc0fa991b0802dd95e624322b822d73b83f | Assemblycode:Assembly | {"size": 642, "ext": "asm", "max_stars_repo_path": "programs/oeis/084/A084635.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/084/A084635.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/084/A084635.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.8947368421, "max_line_length": 197, "alphanum_fraction": 0.5576323988} | ; A084635: Binomial transform of 1,0,1,0,1,1,1,...
; 1,1,2,4,8,17,38,86,192,419,894,1872,3864,7893,16006,32298,64960,130375,261310,523300,1047416,2095801,4192742,8386814,16775168,33552107,67106238,134214776,268432152,536867229,1073737734,2147479122
mov $2,$0
mov $5,$0
add $5,1
lpb $5
mov $0,$2
sub $5,1
sub $0,$5
mov $7,$0
mov $9,2
lpb $9
sub $9,1
add $0,$9
sub $0,1
mov $4,2
pow $4,$0
add $4,1
mov $6,$0
bin $6,3
sub $4,$6
mov $3,$4
mov $10,$9
lpb $10
mov $8,$3
sub $10,1
lpe
lpe
lpb $7
mov $7,0
sub $8,$3
lpe
mov $3,$8
sub $3,1
add $1,$3
lpe
|
||||
TheStack | 91366547184d528a164a90b626d8266cb1dc08cf | Assemblycode:Assembly | {"size": 262, "ext": "asm", "max_stars_repo_path": "programs/oeis/167/A167528.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/167/A167528.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/167/A167528.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 43.6666666667, "max_line_length": 211, "alphanum_fraction": 0.606870229} | ; A167528: a(n) = n^5 mod 50.
; 0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7,18,49,0,1,32,43,24,25,26,7
pow $0,5
mod $0,50
|
||||
TheStack | 9503343781f59d7214a1b0c145fb49dcc2d6d5f9 | Assemblycode:Assembly | {"size": 3866, "ext": "asm", "max_stars_repo_path": "find_free_space.asm", "max_stars_repo_name": "chriswyatt/znake", "max_stars_repo_stars_event_min_datetime": "2016-11-11T22:01:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-03T02:23:21.000Z", "max_issues_repo_path": "find_free_space.asm", "max_issues_repo_name": "chriswyatt/znake", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "find_free_space.asm", "max_forks_repo_name": "chriswyatt/znake", "max_forks_repo_forks_event_min_datetime": "2020-11-28T10:47:33.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-28T10:47:33.000Z"} | {"max_stars_count": 8, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 16.5213675214, "max_line_length": 79, "alphanum_fraction": 0.552250388} | ; /////////////////////////////////////////////////////////////////////////////
; Znake (ZX Spectrum 48K)
; -----------------------------------------------------------------------------
; find_free_space.asm
; -----------------------------------------------------------------------------
; Copyright (C) 2016, Chris Wyatt
; All rights reserved
; Distributed under the Apache 2 license (see LICENSE)
; /////////////////////////////////////////////////////////////////////////////
check_quadrants:
ld c,0x11
ld a,e
rlca
rlca
rlca
rlca
or e
sub c
ld b,a
check_quadrant:
push de
; Set register d to the location of the top-left corner
ld a,d
add a,e
ld d,a
; Set register e to the location of the bottom-right corner
ld a,d
add a,b
ld e,a
ld c,0xf0
ld h,(TBL_SNAKE_HISTORY_CLEAN >> 8) & $FF
ld a,(snake_history_clean_length)
dec a
ld l,a
; Load first turn or head location to register b
ld b,(hl)
next_snake_section:
dec l
; Load second turn or tail location to register a
ld a,(hl)
; Check which end of the snake section has a higher X or Y value
cp b
jr c,check_no_overlap_pos
macro check_no_overlap, lo_reg, hi_reg
; Tail/turn 2 (B2) already in register a
; Minus top-left of square (A1)
sub d
; If carry, A1x > B2x or A1y > B2y
; (A1y > B2y only detected in certain edge cases, which is why we check
; if the Y nibble carries in the next check)
jr c,no_overlap
; Check half carry
and c ; 0xf0
add a,d
xor hi_reg
and c ; 0xf0
jr nz,no_overlap
; Bottom-right of square (A2)
ld a,e
; Minus tail/turn 1 (B1)
sub lo_reg
; If carry, B1x > A2x or B1y > A2y
; (B1y > A2y only detected in certain edge cases, which is why we check
; if the Y nibble carries in the next check)
jr c,no_overlap
; Check half carry
and c ; 0xf0
add a,lo_reg
xor e
and c ; 0xf0
jr nz,no_overlap
endm
; Check no overlap (neg)
check_no_overlap b, (hl) ; lo, hi
jp overlap
check_no_overlap_pos:
; Tail/turn 2 (B2)
ld a,b
check_no_overlap (hl), b ; lo, hi
overlap:
ld c,0x11
; Cannot divide square (i.e. 1 pixel)
ld a,e
sub d
jr z,next_quadrant
; Load the offset to the bottom-right of the top-left quadrant to register
; b
add a,c ; 0x11
rrca
ld e,a
sub c ; 0x11
ld b,a
; Load the offset to the bottom-left quadrant to register e
ld a,e
and 0x0f
ld e,a
; Check quadrants within this quadrant
call check_quadrant
next_quadrant:
; Pop location of top-left quadrant and offset to bottom-left quadrant
; from the stack
pop de
ld a,e
or a
; If top-left, return
ret z
jp pe,bottom_right
cp 0x09
jr c,bottom_left
; Top-right
ld a,e
rrca
rrca
rrca
rrca
or e
sub c ; 0x11
ld b,a
ld e,0x00
jp (iy) ; check_quadrant
no_overlap:
ld b,(hl)
; Continue to next snake section if l != 0
xor a
xor l
jp nz,next_snake_section
; Otherwise, add this quadrant to the free squares tables
ld hl,(free_squares_length_pointer)
ld a,(hl)
ld l,a
ld a,(free_squares_low)
add a,l
ld l,a
; High byte is the same for BL, BR, TR and TL tables
ld h,(TBL_FREE_SQUARES_BL_TL_TABLE >> 8) & $FF
ld (hl),d
inc h
; h = TBL_FREE_SQUARES_??_BR_TABLE
ld (hl),e
ld hl,(free_squares_length_pointer)
inc (hl)
ld c,0x11
jp (ix) ; next_quadrant
bottom_left:
rlca
rlca
rlca
rlca
or e
ld e,a
sub c ; 0x11
ld b,a
jp (iy) ; check_quadrant
bottom_right:
sub c ; 0x11
ld b,a
ld a,e
and 0xf0
ld e,a
jp (iy) ; check_quadrant |
||||
TheStack | 5db0bc4dfe55731280a2dc75997b7719c1f5affc | Assemblycode:Assembly | {"size": 5256, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1725.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1725.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1725.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 43.0819672131, "max_line_length": 2999, "alphanum_fraction": 0.6634322679} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xd8e0, %rsi
lea addresses_WC_ht+0x98dc, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and $11932, %rbp
mov $121, %rcx
rep movsb
nop
nop
dec %rbp
lea addresses_normal_ht+0x12b20, %rsi
lea addresses_WT_ht+0x152e0, %rdi
nop
cmp $46597, %r15
mov $39, %rcx
rep movsw
nop
nop
nop
nop
sub %r15, %r15
lea addresses_normal_ht+0x5436, %r13
add $10752, %rdx
movl $0x61626364, (%r13)
nop
nop
nop
dec %rsi
lea addresses_UC_ht+0x142e0, %r13
nop
nop
nop
nop
nop
xor $43354, %r15
vmovups (%r13), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbp
nop
nop
nop
nop
nop
cmp $3286, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_RW+0x8dd2, %r13
dec %rax
mov $0x5152535455565758, %rbx
movq %rbx, %xmm2
vmovups %ymm2, (%r13)
nop
nop
nop
cmp %r12, %r12
// Faulty Load
lea addresses_RW+0x1eae0, %r13
nop
nop
dec %r10
mov (%r13), %ebp
lea oracles, %r10
and $0xff, %rbp
shlq $12, %rbp
mov (%r10,%rbp,1), %rbp
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
||||
TheStack | 5ca80092576ec364578fe4510bc906a119599f4c | Assemblycode:Assembly | {"size": 8101, "ext": "asm", "max_stars_repo_path": "PCMdata/MegaPCM.asm", "max_stars_repo_name": "vladjester2020/Sonic1TMR", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "PCMdata/MegaPCM.asm", "max_issues_repo_name": "vladjester2020/Sonic1TMR", "max_issues_repo_issues_event_min_datetime": "2019-06-13T14:26:59.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-10T13:15:14.000Z", "max_forks_repo_path": "PCMdata/MegaPCM.asm", "max_forks_repo_name": "vladjester2020/Sonic1TMR", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 38.9471153846, "max_line_length": 83, "alphanum_fraction": 0.5396864585} |
; ===============================================================
; Mega PCM Driver Include File
; (c) 2012, Vladikcomper
; ===============================================================
; ---------------------------------------------------------------
; Variables used in DAC table
; ---------------------------------------------------------------
; flags
panLR = $C0
panL = $80
panR = $40
pcm = 0
dpcm = 4
loop = 2
pri = 1
; ---------------------------------------------------------------
; Macros
; ---------------------------------------------------------------
z80word macro Value
dc.w ((\Value)&$FF)<<8|((\Value)&$FF00)>>8
endm
DAC_Entry macro Pitch,Offset,Flags
dc.b \Flags ; 00h - Flags
dc.b \Pitch ; 01h - Pitch
dc.b (\Offset>>15)&$FF ; 02h - Start Bank
dc.b (\Offset\_End>>15)&$FF ; 03h - End Bank
z80word (\Offset)|$8000 ; 04h - Start Offset (in Start bank)
z80word (\Offset\_End-1)|$8000 ; 06h - End Offset (in End bank)
endm
IncludeDAC macro Name,Extension
\Name:
if strcmp('\extension','wav')
incbin 'PCMdata/dac/\Name\.\Extension\',$3A
else
incbin 'PCMdata/dac/\Name\.\Extension\'
endc
\Name\_End:
endm
; ---------------------------------------------------------------
; Driver's code
; ---------------------------------------------------------------
MegaPCM:
incbin 'PCMdata/MegaPCM.z80'
; ---------------------------------------------------------------
; DAC Samples Table
; ---------------------------------------------------------------
DAC_Entry $04+2, D86, dpcm ; 81 - Kick
DAC_Entry $01+5, SnareS3, dpcm, SnareS32, dpcm, SnareS33, dpcm ; 82 - Snare
DAC_Entry $1B, D8285, dpcm ; $83 - Timpani
DAC_Entry $0A, a84, dpcm ; 84 - Crash Cymbal
DAC_Entry $06+2, D88, dpcm ; 85 - Crash Cymbal
DAC_Entry $01+5, SnareS3, dpcm, SnareS32, dpcm, SnareS33, dpcm ; 86 - Snare
DAC_Entry $0A+2, a87, dpcm ; $87 - DAC_83
DAC_Entry $06+2, D88, dpcm ; 88 - Crash Cymbal
DAC_Entry $14+3, DAC_82, dpcm ; 89 - Mid-Tom
DAC_Entry $1A+4, DAC_82, dpcm ; 8A - Low-Tom
DAC_Entry $20+5, DAC_82, dpcm ; 8B - Floor Tom
DAC_Entry $08+2, D8C, dpcm ; 8C - High Metal Hit
DAC_Entry $0B+2, D8D8E, dpcm ; 8D - Higher Metal Hit
DAC_Entry $11+2, D8D8E, dpcm ; 8E - Low Metal Hit
DAC_Entry $08+2, D8F, dpcm ; 8F - Clap
DAC_Entry $03+2, D9093, dpcm ; 90 - Electric High-Tom
DAC_Entry $07+2, D9093, dpcm ; 91 - Electric Mid-Tom
DAC_Entry $0A+2, D9093, dpcm ; 92 - Electric Low-Tom
DAC_Entry $0E+2, D9093, dpcm ; 93 - Electric Floor Tom
DAC_Entry $06+2, D9497, dpcm ; 94 - Tight Snare
DAC_Entry $0A+2, D9497, dpcm ; 95 - Mid-pitch snare
DAC_Entry $0D+2, D9497, dpcm ; 96 - Loose Snare
DAC_Entry $12+2, D9497, dpcm ; 97 - Looser Snare
DAC_Entry $0B+2, D989A, dpcm ; 98 - Hi-Timpani
DAC_Entry $13+2, D989A, dpcm ; 99 - Low-Timpani
DAC_Entry $16+2, D989A, dpcm ; 9A - Mid-Timpani
DAC_Entry $0C+2, D9B, dpcm ; 9B - Quick Loose Snare
DAC_Entry $0A+2, D9C, dpcm ; 9C - Click
DAC_Entry $18+2, D9D, dpcm ; 9D - Power Kick
DAC_Entry $18+2, D9E, dpcm ; 9E - Quick Glass Crash
DAC_Entry $0C+2, D9F, dpcm ; 9F - Glass Crash with Snare
DAC_Entry $0C+2, DA0, dpcm ; A0 - Glass Crash
DAC_Entry $0A+2, DA1, dpcm ; A1 - Glass Crash with Kick
DAC_Entry $0A+2, DA2, dpcm ; A2 - Quiet Glass Crash
DAC_Entry $18+2, DA3, dpcm ; A3 - Odd Snare with Kick
DAC_Entry $18+2, DA4, dpcm ; A4 - Kick with extra bass
DAC_Entry $0C+2, DA5, dpcm ; A5 - "Come on!"
DAC_Entry $09+2, DA6, dpcm ; A6 - Dance Snare
DAC_Entry $18+2, DA7, dpcm ; A7 - Loose Kick
DAC_Entry $18+2, DA8, dpcm ; A8 - Moderately Loose Kick
DAC_Entry $0C+2, DA9, dpcm ; A9 - "Woo!"
DAC_Entry $0A+2, DAA, dpcm ; AA - "Go!"
DAC_Entry $0D+2, DAB, dpcm ; AB - Snare with voice going "Go!"
DAC_Entry $06+2, DAC, dpcm ; AC - Power Tom
DAC_Entry $10+2, DADAE, dpcm ; AD - Hi-Wood Block
DAC_Entry $18+2, DADAE, dpcm ; AE - Low-Wood Block
DAC_Entry $09+2, DAFB0, dpcm ; AF - Hi-Hit Drum
DAC_Entry $12+2, DAFB0, dpcm ; B0 - Low-Hit Drum
DAC_Entry $18+2, DB1, dpcm ; B1 - Metal Crash Hit
DAC_Entry $16+2, DB2B3, dpcm ; B2 - Echoed Clap Hit
DAC_Entry $20+2, DB2B3, dpcm ; B3 - Lower Echoed Clap Hit
DAC_Entry $0C+2, DB4C1C4, dpcm ; B4 - Hip-Hop style hit with a kick
DAC_Entry $0C+2, DB5, dpcm ; B5 - Hip-Hop style hit with a Power Kick
DAC_Entry $0C+2, DB6, dpcm ; B6 - Som Bass with a voice going "Hey!"
DAC_Entry $18+2, DB7, dpcm ; B7 - Dance Style Kick
DAC_Entry $0C+2, DB8B9, dpcm ; B8 - Hip-Hop hit with a kick
DAC_Entry $0C+2, DB8B9, dpcm ; B9 - Hip-Hop hit with a kick
DAC_Entry $18+2, DBA, dpcm ; BA - Reverse Fading Wind Sound
DAC_Entry $18+2, DBB, dpcm ; BB - Scratch
DAC_Entry $18+2, DBC, dpcm ; BC - Loose Snare with noise
DAC_Entry $0C+2, DBD, dpcm ; BD - Power Kick
DAC_Entry $0C+2, DBE, dpcm ; BE - Crashing noise with voice going "Woo!"
DAC_Entry $1C+2, DBF, dpcm ; BF - Quick hit
DAC_Entry $0B+2, DC0, dpcm ; C0 - Kick with a voice going "Hey!"
DAC_Entry $0F+2, DB4C1C4, dpcm ; C1 - Power Kick with hit
DAC_Entry $11+2, DB4C1C4, dpcm ; C2 - Low Power Kick with hit
DAC_Entry $12+2, DB4C1C4, dpcm ; C3 - Lower Power Kick with hit
DAC_Entry $0B+2, DB4C1C4, dpcm ; C4 - Lowest Power Kick with hit
DAC_Entry $17, dac1d, pcm ; C5 - Sonic 2 Kick
DAC_Entry $03, dac2d, pcm ; C6 - Sonic 2 Snare
DAC_Entry $01, SCD_PCM_09_8bit1, pcm+pri ; $c7 - 'Bumper'
DAC_Entry $01, SCD_PCM_04_b8it, pcm+pri ; $c8 - 'Yes'
DAC_Entry $01, PSLOGO, pcm+pri ; $c9 - 'PSLOGO'
MegaPCM_End:
; ---------------------------------------------------------------
; DAC Samples Files
; ---------------------------------------------------------------
IncludeDAC Kick, bin
IncludeDAC Snare, bin
IncludeDAC Timpani, bin
IncludeDAC D81, bin
IncludeDAC D8285, bin
IncludeDAC D86, bin
IncludeDAC D87, bin
IncludeDAC D88, bin
IncludeDAC D89, bin
IncludeDAC D8A8B, bin
IncludeDAC D8C, bin
IncludeDAC D8D8E, bin
IncludeDAC D8F, bin
IncludeDAC D9093, bin
IncludeDAC D9497, bin
IncludeDAC D989A, bin
IncludeDAC D9B, bin
IncludeDAC D9C, bin
IncludeDAC D9D, bin
IncludeDAC D9E, bin
IncludeDAC D9F, bin
IncludeDAC DA0, bin
IncludeDAC DA1, bin
IncludeDAC DA2, bin
IncludeDAC DA3, bin
IncludeDAC DA4, bin
IncludeDAC DA5, bin
IncludeDAC DA6, bin
IncludeDAC DA7, bin
IncludeDAC DA8, bin
IncludeDAC DA9, bin
IncludeDAC DAA, bin
IncludeDAC DAB, bin
IncludeDAC DAC, bin
IncludeDAC DADAE, bin
IncludeDAC DAFB0, bin
IncludeDAC DB1, bin
IncludeDAC DB2B3, bin
IncludeDAC DB4C1C4, bin
IncludeDAC DB5, bin
IncludeDAC DB6, bin
IncludeDAC DB7, bin
IncludeDAC DB8B9, bin
IncludeDAC DBA, bin
IncludeDAC DBB, bin
IncludeDAC DBC, bin
IncludeDAC DBD, bin
IncludeDAC DBE, bin
IncludeDAC DBF, bin
IncludeDAC DC0, bin
IncludeDAC a81, bin
IncludeDAC a82, bin
IncludeDAC a83, bin
IncludeDAC a84, bin
IncludeDAC a85, bin
IncludeDAC a86, bin
IncludeDAC a87, bin
IncludeDAC dac1d, bin
IncludeDAC dac2d, bin
IncludeDAC dac3d, bin
IncludeDAC dac4d, bin
IncludeDAC dac5d, bin
IncludeDAC SCD_PCM_09_8bit1, wav
IncludeDAC SCD_PCM_04_b8it, wav
IncludeDAC PSLOGO, wav
IncludeDAC DAC_82,BIN
IncludeDAC SnareS3,dpcm
IncludeDAC SnareS32,dpcm
IncludeDAC SnareS33,dpcm
even
|
||||
TheStack | ef2edf017ff70faa9d1e7d899f51d3b49606e317 | Assemblycode:Assembly | {"size": 3440, "ext": "asm", "max_stars_repo_path": "third_party/codecs/xvidcore/src/bitstream/x86_asm/cbp_mmx.asm", "max_stars_repo_name": "Narflex/sagetv", "max_stars_repo_stars_event_min_datetime": "2015-08-10T18:34:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-26T00:38:45.000Z", "max_issues_repo_path": "third_party/codecs/xvidcore/src/bitstream/x86_asm/cbp_mmx.asm", "max_issues_repo_name": "Narflex/sagetv", "max_issues_repo_issues_event_min_datetime": "2015-08-10T18:21:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T20:03:41.000Z", "max_forks_repo_path": "third_party/codecs/xvidcore/src/bitstream/x86_asm/cbp_mmx.asm", "max_forks_repo_name": "Narflex/sagetv", "max_forks_repo_forks_event_min_datetime": "2015-08-10T22:24:29.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T19:16:21.000Z"} | {"max_stars_count": 292, "max_issues_count": 366, "max_forks_count": 227, "avg_line_length": 26.4615384615, "max_line_length": 78, "alphanum_fraction": 0.5061046512} | ;/****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - MMX CBP computation -
; *
; * Copyright (C) 2005 Carlo Bramini <[email protected]>
; * 2001-2003 Peter Ross <[email protected]>
; * 2002-2003 Pascal Massimino <[email protected]>
; *
; * This program is free software ; you can redistribute it and/or modify
; * it under the terms of the GNU General Public License as published by
; * the Free Software Foundation ; either version 2 of the License, or
; * (at your option) any later version.
; *
; * This program is distributed in the hope that it will be useful,
; * but WITHOUT ANY WARRANTY ; without even the implied warranty of
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; * GNU General Public License for more details.
; *
; * You should have received a copy of the GNU General Public License
; * along with this program ; if not, write to the Free Software
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
; *
; * $Id: cbp_mmx.asm,v 1.19 2009-09-16 17:07:58 Isibaar Exp $
; *
; ***************************************************************************/
;=============================================================================
; Macros
;=============================================================================
%include "nasm.inc"
;=============================================================================
; Local data
;=============================================================================
DATA
ALIGN SECTION_ALIGN
mult_mask:
db 0x10,0x20,0x04,0x08,0x01,0x02,0x00,0x00
ignore_dc:
dw 0, -1, -1, -1
;=============================================================================
; Code
;=============================================================================
TEXT
cglobal calc_cbp_mmx
;-----------------------------------------------------------------------------
; uint32_t calc_cbp_mmx(const int16_t coeff[6][64]);
;-----------------------------------------------------------------------------
%macro MAKE_LOAD 2
por mm0, [%2-128*1+%1*8]
por mm1, [%2+128*0+%1*8]
por mm2, [%2+128*1+%1*8]
por mm3, [%2+128*2+%1*8]
por mm4, [%2+128*3+%1*8]
por mm5, [%2+128*4+%1*8]
%endmacro
ALIGN SECTION_ALIGN
calc_cbp_mmx:
mov _EAX, prm1 ; coeff
movq mm7, [ignore_dc]
pxor mm6, mm6 ; used only for comparing
movq mm0, [_EAX+128*0]
movq mm1, [_EAX+128*1]
movq mm2, [_EAX+128*2]
movq mm3, [_EAX+128*3]
movq mm4, [_EAX+128*4]
movq mm5, [_EAX+128*5]
add _EAX, 8+128
pand mm0, mm7
pand mm1, mm7
pand mm2, mm7
pand mm3, mm7
pand mm4, mm7
pand mm5, mm7
MAKE_LOAD 0, _EAX
MAKE_LOAD 1, _EAX
MAKE_LOAD 2, _EAX
MAKE_LOAD 3, _EAX
MAKE_LOAD 4, _EAX
MAKE_LOAD 5, _EAX
MAKE_LOAD 6, _EAX
MAKE_LOAD 7, _EAX
MAKE_LOAD 8, _EAX
MAKE_LOAD 9, _EAX
MAKE_LOAD 10, _EAX
MAKE_LOAD 11, _EAX
MAKE_LOAD 12, _EAX
MAKE_LOAD 13, _EAX
MAKE_LOAD 14, _EAX
movq mm7, [mult_mask]
packssdw mm0, mm1
packssdw mm2, mm3
packssdw mm4, mm5
packssdw mm0, mm2
packssdw mm4, mm6
pcmpeqw mm0, mm6
pcmpeqw mm4, mm6
pcmpeqw mm0, mm6
pcmpeqw mm4, mm6
psrlw mm0, 15
psrlw mm4, 15
packuswb mm0, mm4
pmaddwd mm0, mm7
movq mm1, mm0
psrlq mm1, 32
paddusb mm0, mm1
movd eax, mm0
shr _EAX, 8
and _EAX, 0x3F
ret
ENDFUNC
NON_EXEC_STACK
|
||||
TheStack | 6504ac9052648ba9336b5b5dba249cda01bd9d79 | Assemblycode:Assembly | {"size": 975, "ext": "asm", "max_stars_repo_path": "tasks/call/call.asm", "max_stars_repo_name": "yds12/x86-roadmap", "max_stars_repo_stars_event_min_datetime": "2020-07-21T10:32:12.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T05:22:20.000Z", "max_issues_repo_path": "tasks/call/call.asm", "max_issues_repo_name": "yds12/x64-roadmap", "max_issues_repo_issues_event_min_datetime": "2020-05-17T17:49:55.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-17T17:49:55.000Z", "max_forks_repo_path": "tasks/call/call.asm", "max_forks_repo_name": "yds12/x86-roadmap", "max_forks_repo_forks_event_min_datetime": "2020-07-21T10:32:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T05:22:23.000Z"} | {"max_stars_count": 15, "max_issues_count": 1, "max_forks_count": 4, "avg_line_length": 34.8214285714, "max_line_length": 75, "alphanum_fraction": 0.521025641} | ; This program shows how to use the call instruction.
section .text
global asm_func
asm_func:
mov rax, 300
mov rdx, 212
call add_registers ; The call instruction internally pushes RIP
; (the instruction pointer) onto the stack,
; and then jumps to the specified label.
ret ; Returns to caller.c. What we have been doing
; all along, behind the scenes, is similar to
; what we have done here in this program.
add_registers: ; If we inspect [rsp] here, it should contain
; the address of the caller (i.e., the ret
; instruction right after call add_registers.
add ax, dx ; do something
ret ; The ret instruction pops the caller address
; from the stack and jump to it.
|
||||
TheStack | c073150bc3d1356f22a30dfbc1267613cff47101 | Assemblycode:Assembly | {"size": 429, "ext": "asm", "max_stars_repo_path": "oeis/271/A271176.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/271/A271176.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/271/A271176.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.5789473684, "max_line_length": 189, "alphanum_fraction": 0.6643356643} | ; A271176: Expansion of -(4*x^3-7*x^2+4*x-1)/(2*x^4-5*x^3+8*x^2-5*x+1).
; Submitted by Jon Maiga
; 1,1,4,13,36,94,239,597,1471,3586,8669,20818,49726,118259,280239,662117,1560516,3670321,8617584,20203698,47308391,110659649,258614439,603929562,1409413761,3287385206,7664034874,17860302403
mov $1,1
mov $2,1
mov $3,1
lpb $0
sub $0,1
sub $1,$4
add $2,$4
add $1,$2
mul $3,2
add $4,$1
sub $4,1
add $4,$3
lpe
mov $0,$2
|
||||
TheStack | 98752081bf2e415c71cde9282d1fca8bd6a7b243 | Assemblycode:Assembly | {"size": 561, "ext": "asm", "max_stars_repo_path": "programs/oeis/265/A265278.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/265/A265278.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/265/A265278.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 40.0714285714, "max_line_length": 399, "alphanum_fraction": 0.7754010695} | ; A265278: Expansion of (x^4+x^3-x^2+x)/(x^3+x^2-3*x+1).
; 0,1,2,6,16,40,98,238,576,1392,3362,8118,19600,47320,114242,275806,665856,1607520,3880898,9369318,22619536,54608392,131836322,318281038,768398400,1855077840,4478554082,10812186006,26102926096,63018038200,152139002498,367296043198,886731088896,2140758220992,5168247530882,12477253282758,30122754096400,72722761475560,175568277047522,423859315570606,1023286908188736,2470433131948080,5964153172084898
mov $3,1
lpb $0,1
sub $0,1
add $1,$3
mov $2,1
add $2,$1
trn $1,4
add $1,$3
mov $3,$2
lpe
|
||||
TheStack | 42617a966670b5b5e6a27ca84f7f1ef2ae31f7a9 | Assemblycode:Assembly | {"size": 560, "ext": "asm", "max_stars_repo_path": "oeis/182/A182665.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/182/A182665.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/182/A182665.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.4, "max_line_length": 261, "alphanum_fraction": 0.5517857143} | ; A182665: Greatest x < n such that n divides x*(x-1).
; Submitted by Jon Maiga
; 0,1,1,1,1,4,1,1,1,6,1,9,1,8,10,1,1,10,1,16,15,12,1,16,1,14,1,21,1,25,1,1,22,18,21,28,1,20,27,25,1,36,1,33,36,24,1,33,1,26,34,40,1,28,45,49,39,30,1,45,1,32,36,1,40,55,1,52,46,56,1,64,1,38,51,57,56,66,1,65,1,42,1,64,51,44,58,56,1,81,78,69,63,48,76,64,1,50,55,76
add $0,1
mov $3,$0
mov $4,$0
lpb $3
add $0,$3
lpb $5
mov $2,$0
add $2,$0
mod $2,$4
cmp $2,0
mov $3,$0
sub $5,$2
lpe
mov $2,$0
cmp $2,1
cmp $2,0
sub $3,$2
add $5,2
lpe
mov $0,$3
|
||||
TheStack | 537d2d0a74a716014eda58bd15a55c629095006f | Assemblycode:Assembly | {"size": 6378, "ext": "asm", "max_stars_repo_path": "Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/profc.asm", "max_stars_repo_name": "lborgav/Historical-Source-Codes", "max_stars_repo_stars_event_min_datetime": "2017-01-12T17:48:48.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-28T04:37:34.000Z", "max_issues_repo_path": "Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/profc.asm", "max_issues_repo_name": "lborgav/Historical-Source-Codes", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/profc.asm", "max_forks_repo_name": "lborgav/Historical-Source-Codes", "max_forks_repo_forks_event_min_datetime": "2017-03-28T08:04:30.000Z", "max_forks_repo_forks_event_max_datetime": "2020-03-25T14:25:29.000Z"} | {"max_stars_count": 7, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 23.4485294118, "max_line_length": 74, "alphanum_fraction": 0.5064283474} | ?PLM = 1
?NODATA = 1
.xlist
include w2.inc
include cmacros.inc
.list
createSeg _FIXED,prof,byte,public,CODE
createSeg _DATA,data,word,public,DATA,DGROUP
defGrp DGROUP,DATA
PROF_INT equ 0FBh
PROF_INT_ADDR equ 4 * PROF_INT
do_prof_int macro function
local not_installd
cmp installed,0
jz not_installd
mov ah,function
int PROF_INT
not_installd:
mov ax,installed
endm
sBegin prof
assumes cs,prof
assume ds:nothing
assume es:nothing
ifdef DEBUG
;-----------------------------------------------------------------------;
; hello_profiler ;
; ;
; Checks if profiler is installed. Int 3 and prof_int will point to ;
; the same segment if it is installed. ;
; ;
; Arguments: ;
; none ;
; Returns: ;
; TRUE if installed ;
; ;
; Mon Aug 25, 1986 05:57:03p -by- Wesley O. Rupel [wesleyr] ;
;-----------------------------------------------------------------------;
assume ds:nothing
assume es:nothing
installed dw 0
; %%Function:hello_profiler %%Owner:BRADV
cProc hello_profiler,<FAR, PUBLIC>,<ds>
cBegin
xor ax,ax
mov ds,ax
mov ax,ds:[2 + 4 * 3]
cmp ax,ds:[2 + PROF_INT_ADDR]
mov ax,0 ; xor would alter flags
jnz not_installed
inc ax
not_installed:
mov cs:installed,ax
cEnd
;-----------------------------------------------------------------------;
; start_recording ;
; stop_recording ;
; clear_buffers ;
; write_buffers ;
; swap_int_9 ;
; ;
; Does nothing if hello_profiler has not been called and returned TRUE. ;
; ;
; Arguments: ;
; None ;
; Returns: ;
; TRUE if profiler installed and hello_profiler has been done. ;
; Alters: ;
; AX ;
; ;
; Mon Aug 18, 1986 02:13:09p -by- Wesley O. Rupel [wor] ;
;-----------------------------------------------------------------------;
; %%Function:start_recording %%Owner:BRADV
cProc start_recording,<FAR, PUBLIC>,<>
cBegin
do_prof_int 0
cEnd
;-----------------------------------------------------------------------;
; %%Function:stop_recording %%Owner:BRADV
cProc stop_recording,<FAR, PUBLIC>,<>
cBegin
do_prof_int 1
cEnd
;-----------------------------------------------------------------------;
; %%Function:clear_buffers %%Owner:BRADV
cProc clear_buffers,<FAR, PUBLIC>,<>
cBegin
do_prof_int 2
cEnd
;-----------------------------------------------------------------------;
; %%Function:write_buffers %%Owner:BRADV
cProc write_buffers,<FAR, PUBLIC>,<>
cBegin
do_prof_int 3
cEnd
;-----------------------------------------------------------------------;
; %%Function:set_timer_rate %%Owner:BRADV
cProc set_timer_rate,<FAR, PUBLIC>,<>
ParmB timer_rate
cBegin
mov al,timer_rate
do_prof_int 6
cEnd
;-----------------------------------------------------------------------;
; get_buffer_location ;
; ;
; Arguments: ;
; None ;
; Returns: ;
; DX:AX = FAR PTR to CS:IP buffer. ;
; Alters: ;
; AX ;
; ;
; Mon Aug 18, 1986 02:13:09p -by- Wesley O. Rupel [wor] ;
;-----------------------------------------------------------------------;
; %%Function:get_buffer_location %%Owner:BRADV
cProc get_buffer_location,<FAR, PUBLIC>,<>
cBegin
cmp installed,0
jz not_nstalled
mov ah,4
int PROF_INT
not_nstalled:
cEnd
public calibrate_prof
;-----------------------------------------------------------------------;
; calibrate_prof ;
; ;
; This is a good routine to profile to verify that the profiler is ;
; working correctly. The number of hits should be proportional to the ;
; label number. Thus prof_label_6 should get 6 times as many hits as ;
; prof_label_1. ;
; Allowing other interrupts to occur while this is being profiled would ;
; throw off the exact timing, thus they will be masked out. ;
; ;
; Arguments: ;
; none ;
; Returns: ;
; nothing ;
; Alters: ;
; nothing ;
; Calls: ;
; disable_other_ints ;
; enable_other_ints ;
; History: ;
; ;
; Tue Oct 14, 1986 06:52:32p -by- Wesley O. Rupel [wesleyr] ;
; Wrote it! ;
;-----------------------------------------------------------------------;
n_loops macro number
; %%Function:prof_label_&number %%Owner:BRADV
public prof_label_&number
prof_label_&number&:
rept number
loop $
endm
endm
rest macro
jmp $ + 2
endm
assume ds:nothing
assume es:nothing
; %%Function:calibrate_prof %%Owner:BRADV
cProc calibrate_prof,<FAR, PUBLIC>,<cx>
cBegin
call disable_other_ints
count = 0
xor cx,cx
rept 9 ; 9 is about right for prof -t4 (on 8Mhz AT)
count = count + 1
n_loops %count
endm
public end_loop_of_loops
end_loop_of_loops:
call enable_other_ints
cEnd
; %%Function:disable_other_ints %%Owner:BRADV
public disable_other_ints
;-----------------------------------------------------------------------;
; disable_other_ints ;
; ;
; Wed Oct 15, 1986 09:55:23a -by- Wesley O. Rupel [wesleyr] ;
; Wrote it! ;
;-----------------------------------------------------------------------;
assume ds:nothing
assume es:nothing
master_state db ?
slave_state db ?
disable_other_ints proc near
cli
push ax
in al,021h
rest
mov cs:master_state,al
in al,0A1h
rest
mov cs:slave_state,al
mov al,0FBh ; allow only IRQ 2 on master 8259
out 21h,al
rest
mov al,0FEh ; allow only IRQ 0 on slave 8259
out 0A1h,al
pop ax
sti
ret
disable_other_ints endp
; %%Function:enable_other_ints %%Owner:BRADV
public enable_other_ints
;-----------------------------------------------------------------------;
; enable_other_ints ;
; ;
; Wed Oct 15, 1986 10:05:45a -by- Wesley O. Rupel [wesleyr] ;
; Wrote it! ;
;-----------------------------------------------------------------------;
assume ds:nothing
assume es:nothing
enable_other_ints proc near
push ax
cli
mov al,cs:master_state
out 21h,al
rest
mov al,cs:slave_state
out 0A1h,al
pop ax
sti
ret
enable_other_ints endp
endif ; DEBUG for whole module
sEnd code
end
|
||||
TheStack | 08f4704262f827cb8bb465cb4a5659059643201a | Assemblycode:Assembly | {"size": 103, "ext": "asm", "max_stars_repo_path": "tests/function_simple/err_duplicate1.asm", "max_stars_repo_name": "dommilosz/customasm", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/function_simple/err_duplicate1.asm", "max_issues_repo_name": "dommilosz/customasm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/function_simple/err_duplicate1.asm", "max_forks_repo_name": "dommilosz/customasm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 51.5, "max_line_length": 74, "alphanum_fraction": 0.6504854369} | #fn add1(value) => value + 1
#fn add1(value) => value + 1 ; error: duplicate / note:_:1: first declared |
||||
TheStack | 11538c51885f1ca593fe919ca5732432054d9643 | Assemblycode:Assembly | {"size": 280, "ext": "asm", "max_stars_repo_path": "programs/oeis/094/A094284.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/094/A094284.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/094/A094284.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.0, "max_line_length": 205, "alphanum_fraction": 0.5214285714} | ; A094284: A094283(n+1)/A094283(n).
; 5,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
add $0,1
mov $1,3
div $1,$0
add $1,2
|
||||
TheStack | c5f092adc5ea399bc5b7d203a20ba1ded2b96b01 | Assemblycode:Assembly | {"size": 405, "ext": "asm", "max_stars_repo_path": "rust/objdumpexmaple/asm_compare/basicPrint.asm", "max_stars_repo_name": "lukasjoc/scritps", "max_stars_repo_stars_event_min_datetime": "2020-11-09T19:32:43.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-09T19:32:43.000Z", "max_issues_repo_path": "rust/objdumpexmaple/asm_compare/basicPrint.asm", "max_issues_repo_name": "lukasjoc/scritps", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "rust/objdumpexmaple/asm_compare/basicPrint.asm", "max_forks_repo_name": "lukasjoc/scritps", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.0, "max_line_length": 38, "alphanum_fraction": 0.5037037037} | push rbp
mov rbp, rsp
sub rsp, 48
lea rax, [rip, +, l___unnamed_2]
mov qword, ptr, [rbp, -, 48], rax
mov qword, ptr, [rbp, -, 40], 1
mov qword, ptr, [rbp, -, 32], 0
lea rax, [rip, +, l___unnamed_3]
mov qword, ptr, [rbp, -, 16], rax
mov qword, ptr, [rbp, -, 8], 0
lea rdi, [rbp, -, 48]
call std::io::stdio::_print
add rsp, 48
pop rbp
ret |
||||
TheStack | d5e549c0dc8979a8eb3818dc09503745d2c6ddf5 | Assemblycode:Assembly | {"size": 6562, "ext": "asm", "max_stars_repo_path": "src/z3/randomizer/events.asm", "max_stars_repo_name": "SmolBig/alttp_sm_combo_randomizer_rom", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/z3/randomizer/events.asm", "max_issues_repo_name": "SmolBig/alttp_sm_combo_randomizer_rom", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/z3/randomizer/events.asm", "max_forks_repo_name": "SmolBig/alttp_sm_combo_randomizer_rom", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.5585585586, "max_line_length": 117, "alphanum_fraction": 0.5272782688} | ;--------------------------------------------------------------------------------
; OnLoadOW
;--------------------------------------------------------------------------------
OnLoadMap:
JSL.l SetLWDWMap
LDA $7EF2DB ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
OnDrawHud:
JSL.l Draw4DigitRupees
;JSL.l DrawChallengeTimer
;JSL.l DrawGoalIndicator
;JSL.l DrawDungeonCompassCounts
;JSL.l SwapSpriteIfNecissary
RTL
;--------------------------------------------------------------------------------
;OnDungeonEntrance:
; STA $7EC172 ; thing we wrote over
;RTL
;--------------------------------------------------------------------------------
OnPlayerDead:
PHA
JSL.l SetDeathWorldChecked
JSL.l SetSilverBowMode
JSL.l RefreshRainAmmo
PLA
RTL
;--------------------------------------------------------------------------------
OnDungeonExit:
STA $040C : STZ $04AC ; thing we wrote over
PHA : PHP
JSL.l HUD_RebuildLong
JSL.l FloodGateResetInner
JSL.l SetSilverBowMode
PLP : PLA
RTL
;--------------------------------------------------------------------------------
OnUncleItemGet:
JSL Link_ReceiveItem
LDA.l EscapeAssist
BIT.b #$04 : BEQ + : STA !INFINITE_MAGIC : +
BIT.b #$02 : BEQ + : STA !INFINITE_BOMBS : +
BIT.b #$01 : BEQ + : STA !INFINITE_ARROWS : +
LDA.l UncleRefill : BIT.b #$04 : BEQ + : LDA.b #$80 : STA $7EF373 : + ; refill magic
LDA.l UncleRefill : BIT.b #$02 : BEQ + : LDA.b #50 : STA $7EF375 : + ; refill bombs
LDA.l UncleRefill : BIT.b #$01 : BEQ + ; refill arrows
LDA.b #70 : STA $7EF376
LDA.l ArrowMode : BEQ +
LDA !INVENTORY_SWAP_2 : ORA #$80 : STA !INVENTORY_SWAP_2 ; enable bow toggle
REP #$20 ; set 16-bit accumulator
LDA $7EF360 : !ADD.l FreeUncleItemAmount : STA $7EF360 ; rupee arrows, so also give the player some money to start
SEP #$20 ; set 8-bit accumulator
+
RTL
;--------------------------------------------------------------------------------
OnAga2Defeated:
JSL.l Dungeon_SaveRoomData_justKeys ; thing we wrote over, make sure this is first
;JSL.l IncrementAgahnim2Sword
RTL
;--------------------------------------------------------------------------------
!RNG_ITEM_LOCK_IN = "$7F5090"
OnFileLoad:
LDA !FRESH_FILE_MARKER : BNE +
JSL.l OnNewFile
LDA.b #$FF : STA !FRESH_FILE_MARKER
+
JSL.l DoWorldFix
JSL.l MasterSwordFollowerClear
JSL.l InitOpenMode
LDA #$FF : STA !RNG_ITEM_LOCK_IN ; reset rng item lock-in
LDA #$00 : STA $7F5001 ; mark fake flipper softlock as impossible
LDA.l GenericKeys : BEQ +
LDA $7EF38B : STA $7EF36F ; copy generic keys to key counter
+
JSL.l SetSilverBowMode
JSL.l RefreshRainAmmo
JSL.l SetEscapeAssist
JSL.l mw_load_sram
STZ !MULTIWORLD_PICKUP
RTL
;--------------------------------------------------------------------------------
!RNG_ITEM_LOCK_IN = "$7F5090"
OnNewFile:
PHX : PHP
REP #$20 ; set 16-bit accumulator
LDA.l LinkStartingRupees : STA $7EF362 : STA $7EF360
LDA.l StartingTime : STA $7EF454
LDA.l StartingTime+2 : STA $7EF454+2
LDX.w #$00 : - ; copy over starting equipment
LDA StartingEquipment, X : STA $7EF340, X
INX : INX
CPX.w #$004F : !BLT -
SEP #$20 ; set 8-bit accumulator
;LDA #$FF : STA !RNG_ITEM_LOCK_IN ; reset rng item lock-in
LDA.l PreopenCurtains : BEQ +
LDA.b #$80 : STA $7EF061 ; open aga tower curtain
LDA.b #$80 : STA $7EF093 ; open skull woods curtain
+
LDA StartingSword : STA $7EF359 ; set starting sword type
PLP : PLX
RTL
;--------------------------------------------------------------------------------
OnInitFileSelect:
; LDA.b #$10 : STA $BC ; init sprite pointer - does nothing unless spriteswap.asm is included
; JSL.l SpriteSwap_SetSprite
JSL.l EnableForceBlank
RTL
;--------------------------------------------------------------------------------
OnLinkDamaged:
JSL.l FlipperKill
;JSL.l OHKOTimer
RTL
;--------------------------------------------------------------------------------
OnEnterWater:
JSL.l RegisterWaterEntryScreen
JSL.l MysteryWaterFunction
LDX.b #$04
RTL
;--------------------------------------------------------------------------------
OnLinkDamagedFromPit:
;JSL.l OHKOTimer
LDA.b #$14 : STA $11 ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
OnLinkDamagedFromPitOutdoors:
;JSL.l OHKOTimer ; make sure this is last
RTL
;--------------------------------------------------------------------------------
!RNG_ITEM_LOCK_IN = "$7F5090"
OnOWTransition:
JSL.l FloodGateReset
JSL.l FlipperFlag
;JSL.l StatTransitionCounter
PHP
SEP #$20 ; set 8-bit accumulator
LDA.b #$FF : STA !RNG_ITEM_LOCK_IN ; clear lock-in
PLP
STZ !MULTIWORLD_PICKUP
RTL
;--------------------------------------------------------------------------------
PreItemGet:
LDA.b #$01 : STA !ITEM_BUSY ; mark item as busy
RTL
;--------------------------------------------------------------------------------
PostItemGet:
;JSL.l MaybeWriteSRAMTrace
RTL
;--------------------------------------------------------------------------------
PostItemAnimation:
LDA.b #$00 : STA !ITEM_BUSY ; mark item as finished
LDA $7F50A0 : BEQ +
STZ $1CF0 : STZ $1CF1 ; reset decompression buffer
JSL.l Main_ShowTextMessage
LDA.b #$00 : STA $7F50A0
+
LDA.l config_multiworld
BEQ +
LDA !MULTIWORLD_DIALOG
BNE .multiworldPickup
+
STZ $02E9 : LDA $0C5E, X ; thing we wrote over to get here
BRA .end
.multiworldPickup
lda !MULTIWORLD_DIALOG
cmp #$01
beq .multiworldGive
cmp #$02
beq .multiworldGet
stz !MULTIWORLD_DIALOG_ITEM
stz !MULTIWORLD_DIALOG_PLAYER
bra .noDialog
.multiworldGet
lda #$01
bra +
.multiworldGive
lda #$00
+
sta $1cf0 ; Store multiworld dialog pointers
lda #$80
sta $1cf1
jsl Main_ShowTextMessage
.noDialog
stz !MULTIWORLD_SWAP
stz !MULTIWORLD_PICKUP
stz !MULTIWORLD_GIVE_ITEM
stz !MULTIWORLD_GIVE_PLAYER
lda !MULTIWORLD_DIALOG
cmp #$02
bne .giveItem
STZ $02E9 : LDA $0C5E, X ; thing we wrote over to get here
bra .end
.giveItem
PLA : PLA : PLA ; Pop return address off the stack
STZ $02E9 : LDA $0C5E, X
JML $08C505 ; If we're multiworld getting, skip
; all crazy events to get us things
.end
RTL
;--------------------------------------------------------------------------------
OnBeginSaveAndQuit:
LDA.b #$01
STA.l !SRAM_SAVING ; Set saving flag to temporarily prevent soft reset
LDA.b #$17 : STA $10 ; thing we wrote over. Go to save and quit module
RTL
;--------------------------------------------------------------------------------
|
||||
TheStack | 62fb48d9fd1b1a59e32c742d6cb8bc0d5b713ef9 | Assemblycode:Assembly | {"size": 5456, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_488_753.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_488_753.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_488_753.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 27.28, "max_line_length": 1463, "alphanum_fraction": 0.6519428152} | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xc97e, %rsi
lea addresses_UC_ht+0x1e666, %rdi
nop
nop
nop
xor %rbp, %rbp
mov $7, %rcx
rep movsl
nop
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0x1e066, %rsi
lea addresses_A_ht+0x9bfe, %rdi
nop
nop
nop
nop
and $17701, %r14
mov $78, %rcx
rep movsw
nop
sub %r14, %r14
lea addresses_D_ht+0x10c66, %r15
nop
nop
nop
sub $14429, %r8
mov (%r15), %rbp
dec %r8
lea addresses_A_ht+0x466, %r15
nop
inc %r8
mov (%r15), %esi
nop
nop
nop
nop
nop
sub $38695, %rdi
lea addresses_WT_ht+0x1e240, %r15
nop
nop
xor %rsi, %rsi
vmovups (%r15), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rcx
nop
nop
and $12252, %r8
lea addresses_A_ht+0x12566, %rsi
lea addresses_UC_ht+0x6425, %rdi
nop
nop
sub $36780, %r14
mov $121, %rcx
rep movsw
nop
nop
nop
nop
cmp $17381, %r8
lea addresses_UC_ht+0x43f6, %r15
nop
nop
nop
nop
nop
dec %rcx
mov (%r15), %r14d
nop
nop
sub $55055, %r14
lea addresses_D_ht+0x12a66, %rsi
and $5202, %r8
mov $0x6162636465666768, %r15
movq %r15, %xmm1
vmovups %ymm1, (%rsi)
nop
nop
and $4300, %r14
lea addresses_D_ht+0x466, %rsi
lea addresses_normal_ht+0x14966, %rdi
nop
nop
nop
nop
xor %r9, %r9
mov $107, %rcx
rep movsq
nop
nop
nop
nop
cmp $13750, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %rbp
push %rbx
push %rdi
push %rdx
// Store
lea addresses_A+0x15a66, %r15
nop
nop
nop
add %rbp, %rbp
movb $0x51, (%r15)
nop
nop
nop
nop
inc %rdx
// Load
lea addresses_WC+0x1b6e6, %rdi
clflush (%rdi)
sub %rbx, %rbx
vmovaps (%rdi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdx
nop
nop
and %rbx, %rbx
// Store
lea addresses_WC+0x1d4c2, %r15
nop
nop
nop
sub %rdx, %rdx
movw $0x5152, (%r15)
cmp $29093, %rbx
// Faulty Load
lea addresses_WT+0x3466, %rdx
nop
nop
nop
cmp %rbx, %rbx
mov (%rdx), %bp
lea oracles, %r11
and $0xff, %rbp
shlq $12, %rbp
mov (%r11,%rbp,1), %rbp
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_WC', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': True, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'39': 488}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
||||
TheStack | c235410a54bd0aa01611e9574e26732e519ac6b8 | Assemblycode:Assembly | {"size": 19155, "ext": "asm", "max_stars_repo_path": "audio/music/johtotrainerbattle.asm", "max_stars_repo_name": "Dev727/ancientplatinum", "max_stars_repo_stars_event_min_datetime": "2019-11-08T07:19:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T10:17:54.000Z", "max_issues_repo_path": "audio/music/johtotrainerbattle.asm", "max_issues_repo_name": "Dev727/ancientplatinum", "max_issues_repo_issues_event_min_datetime": "2020-01-11T17:00:40.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-14T01:27:38.000Z", "max_forks_repo_path": "audio/music/johtotrainerbattle.asm", "max_forks_repo_name": "Dev727/ancientplatinum", "max_forks_repo_forks_event_min_datetime": "2020-05-28T17:31:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T20:49:35.000Z"} | {"max_stars_count": 28, "max_issues_count": 13, "max_forks_count": 22, "avg_line_length": 14.3806306306, "max_line_length": 53, "alphanum_fraction": 0.6738710519} | Music_JohtoTrainerBattle:
musicheader 3, 1, Music_JohtoTrainerBattle_Ch1
musicheader 1, 2, Music_JohtoTrainerBattle_Ch2
musicheader 1, 3, Music_JohtoTrainerBattle_Ch3
Music_JohtoTrainerBattle_Ch1:
tempo 102
volume $77
dutycycle $3
tone $0002
vibrato $12, $15
notetype $c, $92
note __, 8
octave 3
note A_, 1
note G#, 1
note G_, 1
note G#, 1
intensity $b2
note C_, 1
octave 2
note B_, 1
note A#, 1
note B_, 1
octave 3
note C#, 1
note C_, 1
octave 2
note B_, 1
octave 3
note C_, 1
note D_, 1
note C#, 1
note C_, 1
note C#, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note E_, 1
note D#, 1
note D_, 1
note D#, 1
note E_, 6
note E_, 6
note E_, 4
note E_, 2
note D_, 2
note E_, 2
note F_, 6
intensity $b7
note D_, 4
intensity $b2
note E_, 6
note D_, 6
note E_, 4
note E_, 2
note D_, 2
note E_, 2
note F_, 6
intensity $b7
note F_, 4
intensity $b2
octave 4
note E_, 6
note E_, 6
note E_, 4
note E_, 2
note D_, 2
note E_, 2
note F_, 2
octave 3
note A_, 2
note A#, 2
intensity $b7
note B_, 4
intensity $b2
octave 4
note E_, 6
note E_, 6
note E_, 4
note E_, 2
note D_, 2
note E_, 2
note F_, 6
intensity $b7
note G_, 4
Music_JohtoTrainerBattle_branch_f6102:
intensity $b4
callchannel Music_JohtoTrainerBattle_branch_f629f
intensity $b7
note A#, 4
intensity $b3
note G_, 1
note F_, 1
note E_, 1
note G_, 1
intensity $b7
octave 4
note C_, 4
intensity $b3
octave 3
note A_, 1
note G_, 1
note F_, 1
note A_, 1
intensity $b7
octave 4
note D_, 4
intensity $b3
note C_, 1
octave 3
note A#, 1
note A_, 1
octave 4
note C_, 1
intensity $b5
note F_, 2
note E_, 2
note D_, 2
note C_, 2
callchannel Music_JohtoTrainerBattle_branch_f629f
intensity $b7
note F_, 4
note E_, 2
note F_, 2
octave 4
note C_, 4
octave 3
note A#, 2
octave 4
note C_, 2
intensity $a0
octave 3
note F_, 8
intensity $a7
note F_, 8
intensity $b7
note A_, 6
note E_, 6
note A#, 4
octave 4
note C#, 6
note F_, 4
note E_, 2
note D_, 2
note F_, 2
note E_, 2
note F_, 2
note E_, 2
note D_, 2
note C#, 2
octave 3
note A#, 2
note A_, 2
note A#, 2
intensity $a0
note A_, 8
intensity $a7
note A_, 8
intensity $b7
note E_, 8
note D_, 8
note E_, 8
note F_, 8
note E_, 8
note D_, 8
note G_, 8
note F_, 8
note D_, 8
note C_, 8
note D_, 8
note D#, 8
note D_, 8
note C_, 8
note D_, 8
note D#, 8
note D_, 8
note D#, 8
note E_, 8
note F_, 8
intensity $b4
note G_, 2
octave 4
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 2
note F_, 2
note D#, 2
note F_, 2
note G_, 2
octave 4
note C#, 2
note C_, 2
note C#, 2
note D#, 2
note C#, 2
note C_, 2
octave 3
note A#, 2
intensity $b5
note D#, 2
note D_, 2
intensity $b2
note D#, 4
intensity $b7
note C_, 8
note D#, 4
note C#, 4
note C_, 4
note D#, 4
intensity $b5
note E_, 2
note D#, 2
intensity $b2
note E_, 4
intensity $b7
note C#, 8
note F_, 4
note D#, 4
note C#, 4
note F_, 4
intensity $b5
note F#, 2
note F_, 2
intensity $b2
note F#, 4
intensity $b7
note D_, 8
note F#, 4
note E_, 4
note D_, 4
note F#, 4
note G_, 8
note D#, 8
note A#, 8
note G_, 8
intensity $a0
note D#, 4
intensity $a7
note D#, 12
note __, 16
Music_JohtoTrainerBattle_branch_f61bd:
intensity $b7
note F_, 8
intensity $b4
note G_, 4
note D#, 4
note F_, 4
note G_, 2
note D#, 2
note F_, 4
octave 2
note A#, 4
intensity $b7
octave 3
note F_, 8
intensity $b4
note G_, 4
note D#, 4
note F_, 4
note G_, 2
note D#, 2
note F_, 4
note F_, 4
loopchannel 2, Music_JohtoTrainerBattle_branch_f61bd
intensity $b7
note F_, 8
intensity $b4
note G_, 4
note D#, 4
note F_, 4
note G#, 2
note G_, 2
intensity $b7
note F_, 8
note F_, 8
intensity $b5
note G_, 4
note D#, 4
note F_, 4
note G_, 2
note D#, 2
intensity $b7
note F_, 8
note F_, 8
intensity $b5
note G_, 4
note D#, 4
note F_, 4
note G_, 2
note D#, 2
intensity $3f
note G#, 8
intensity $b7
note G#, 8
intensity $a0
octave 4
note C_, 8
intensity $a7
note C_, 8
intensity $b2
octave 3
note D#, 6
note D#, 6
note D#, 4
note D#, 6
note D#, 6
intensity $b7
note F_, 4
intensity $b2
note D#, 6
note D#, 6
note D#, 4
note D#, 6
note D#, 6
intensity $4c
note F_, 4
intensity $b7
note G#, 6
note G_, 6
note F_, 4
note D#, 4
note F_, 4
note G_, 4
note D#, 4
note F_, 4
octave 4
note C#, 2
note C_, 2
octave 3
note F_, 4
octave 4
note C#, 2
note C_, 2
octave 3
note F_, 2
note G_, 2
note G#, 2
octave 4
note C_, 2
note C#, 2
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 6
note D#, 6
note G_, 4
octave 4
note C#, 4
note C_, 4
octave 3
note A#, 4
note G#, 4
note F_, 4
note C#, 2
note D#, 2
note F_, 4
note C#, 2
note D#, 2
note A#, 4
note G#, 4
note G_, 4
note F_, 4
intensity $90
octave 2
note A#, 8
octave 3
note D#, 8
octave 2
note A#, 8
octave 3
note G_, 8
intensity $a0
note D#, 8
note A#, 8
note G_, 8
octave 4
note D#, 8
intensity $a0
octave 3
note A#, 8
intensity $a7
note A#, 8
intensity $b7
note G_, 6
note A#, 6
note G#, 2
note G_, 2
intensity $a0
note D#, 8
intensity $a7
note D#, 8
intensity $b4
note A#, 6
note G_, 4
note G_, 2
note A#, 12
note __, 16
note __, 8
intensity $a0
octave 4
note D_, 4
intensity $a7
note D_, 12
intensity $a0
note F_, 8
intensity $a7
note F_, 8
intensity $b3
callchannel Music_JohtoTrainerBattle_branch_f629f
note F_, 4
note E_, 2
note F_, 2
octave 4
note C_, 4
octave 3
note A#, 2
octave 4
note C_, 2
intensity $a0
octave 3
note F_, 10
intensity $a7
note F_, 6
loopchannel 0, Music_JohtoTrainerBattle_branch_f6102
Music_JohtoTrainerBattle_branch_f629f:
octave 3
note E_, 2
note D_, 2
note E_, 2
note A_, 2
note B_, 2
note A_, 2
note G_, 2
note A_, 2
octave 4
note C_, 2
octave 3
note A_, 2
note B_, 2
note G_, 2
note A_, 2
note E_, 2
note F_, 2
note D_, 2
endchannel
Music_JohtoTrainerBattle_Ch2:
dutycycle $3
vibrato $8, $36
tone $0001
notetype $c, $c2
octave 4
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note G#, 1
note D_, 1
note D#, 1
note E_, 1
note G#, 1
note D#, 1
note D_, 1
note D#, 1
note G#, 1
note D_, 1
note C#, 1
note D_, 1
note G#, 1
note C#, 1
note C_, 1
note C#, 1
note G#, 1
octave 3
note A#, 1
note B_, 1
octave 4
note C_, 1
note G#, 1
octave 3
note B_, 1
note A#, 1
note B_, 1
octave 4
note G#, 1
octave 3
note A#, 1
note A_, 1
note A#, 1
intensity $c2
octave 4
note A_, 6
callchannel Music_JohtoTrainerBattle_branch_f649a
intensity $c2
note A_, 6
callchannel Music_JohtoTrainerBattle_branch_f649a
intensity $c2
octave 5
note C_, 6
note C_, 6
note C_, 4
note C_, 6
note C_, 6
intensity $c7
note C#, 4
intensity $c2
note C_, 2
intensity $a4
octave 3
note E_, 2
note A_, 2
intensity $c2
octave 5
note C_, 2
intensity $a4
octave 3
note E_, 2
note A_, 2
intensity $c2
octave 5
note C_, 2
intensity $a4
octave 3
note E_, 2
intensity $c2
octave 5
note C_, 2
intensity $a4
octave 3
note E_, 2
note B_, 2
intensity $c2
octave 5
note C_, 2
intensity $a4
octave 4
note C_, 2
note E_, 2
intensity $c7
note B_, 4
Music_JohtoTrainerBattle_branch_f632a:
callchannel Music_JohtoTrainerBattle_branch_f64a3
intensity $3e
note A#, 8
intensity $c7
note A#, 8
callchannel Music_JohtoTrainerBattle_branch_f64a3
intensity $c4
note D_, 4
octave 3
note A#, 2
octave 4
note D_, 2
note F_, 2
note E_, 2
note D_, 2
note F_, 2
note E_, 2
note D_, 2
note E_, 2
note F_, 2
note A#, 2
note A_, 2
note A#, 2
octave 5
note D_, 2
intensity $b0
note C#, 8
intensity $b7
note C#, 4
intensity $c7
octave 4
note A#, 4
intensity $b0
note A_, 16
intensity $b7
note A_, 16
Music_JohtoTrainerBattle_branch_f635a:
intensity $c3
octave 3
note A_, 2
note G_, 2
note A_, 2
intensity $c7
note A#, 4
intensity $c3
note A_, 2
note G_, 2
note A#, 2
loopchannel 3, Music_JohtoTrainerBattle_branch_f635a
note A_, 2
octave 4
note D_, 2
note C_, 2
octave 3
note A#, 2
note A_, 2
note G_, 2
note A_, 2
note A#, 2
Music_JohtoTrainerBattle_branch_f6376:
note G_, 2
note F_, 2
note G_, 2
intensity $c7
note G#, 4
intensity $c3
note G_, 2
note F_, 2
note G#, 2
loopchannel 3, Music_JohtoTrainerBattle_branch_f6376
note F_, 2
octave 4
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 2
note F_, 2
note G_, 2
note G#, 2
intensity $c7
note G_, 6
octave 4
note D_, 6
note C_, 2
note D_, 2
note F_, 4
note E_, 4
note D_, 4
note C_, 4
intensity $b0
note D#, 10
intensity $b7
note D#, 6
intensity $90
note G_, 8
intensity $97
note G_, 8
intensity $c7
octave 3
note F_, 8
note D#, 4
note F_, 4
note G_, 4
note F_, 4
note D#, 4
note G_, 4
note G#, 8
note F_, 4
note G_, 4
note G#, 4
note G_, 4
note F_, 4
note G#, 4
note A_, 8
note F#, 4
note G#, 4
note A_, 4
note G#, 4
note F#, 4
note A_, 4
intensity $b0
note A#, 8
note A#, 8
intensity $b0
octave 4
note D#, 8
intensity $b7
note D#, 8
intensity $62
callchannel Music_JohtoTrainerBattle_branch_f64b6
intensity $82
callchannel Music_JohtoTrainerBattle_branch_f64b6
intensity $92
callchannel Music_JohtoTrainerBattle_branch_f64b6
intensity $a2
callchannel Music_JohtoTrainerBattle_branch_f64b6
Music_JohtoTrainerBattle_branch_f63dd:
octave 4
note D#, 2
octave 3
note A#, 2
octave 4
note G_, 2
octave 3
note A#, 2
octave 4
note D#, 2
octave 3
note A#, 2
octave 4
note G_, 2
octave 3
note A#, 2
loopchannel 8, Music_JohtoTrainerBattle_branch_f63dd
callchannel Music_JohtoTrainerBattle_branch_f64be
octave 3
note A#, 2
intensity $c7
octave 4
note C_, 8
callchannel Music_JohtoTrainerBattle_branch_f64be
note G_, 2
intensity $c7
note F_, 8
callchannel Music_JohtoTrainerBattle_branch_f64be
octave 3
note A#, 2
intensity $b0
octave 4
note C_, 8
intensity $b7
note C_, 8
intensity $1f
note D#, 12
intensity $c7
note D#, 4
intensity $c2
octave 3
note G_, 4
note D#, 2
note G_, 6
note G_, 4
note G_, 2
note F_, 2
note D#, 2
note G_, 6
intensity $c7
note G#, 4
intensity $c2
note G_, 4
note D#, 2
note G_, 6
note G_, 4
note G_, 6
note G_, 6
intensity $4c
note G#, 4
callchannel Music_JohtoTrainerBattle_branch_f64d2
intensity $b0
note F_, 8
intensity $b7
note F_, 8
intensity $b0
note G#, 8
intensity $b7
note G#, 8
callchannel Music_JohtoTrainerBattle_branch_f64d2
intensity $b0
note C#, 8
intensity $b7
note C#, 8
intensity $c7
note C#, 4
note C_, 4
octave 3
note A#, 4
note G#, 4
note G_, 6
note D#, 2
note A#, 8
note A#, 6
note G_, 2
octave 4
note D#, 8
note D#, 6
octave 3
note A#, 2
octave 4
note G_, 8
note G_, 6
note D#, 2
note A#, 8
note G_, 6
note A#, 6
note G#, 2
note G_, 2
intensity $b0
note D#, 8
intensity $b7
note D#, 8
intensity $c7
note D#, 6
note A#, 6
note G#, 2
note G_, 2
intensity $b0
note D#, 8
intensity $b7
note D#, 8
intensity $c7
octave 3
note A_, 6
octave 4
note E_, 6
note D_, 2
note E_, 2
note G_, 4
note F#, 4
note E_, 4
note D_, 4
intensity $b0
note F_, 8
intensity $b7
note F_, 8
intensity $b0
note A#, 8
intensity $b7
note A#, 8
callchannel Music_JohtoTrainerBattle_branch_f64a3
intensity $c7
note D_, 4
octave 3
note A#, 2
octave 4
note D_, 2
note F_, 2
note E_, 2
note D_, 2
note F_, 2
loopchannel 0, Music_JohtoTrainerBattle_branch_f632a
Music_JohtoTrainerBattle_branch_f649a:
octave 3
note A_, 6
note A_, 4
note A_, 6
note A_, 6
intensity $c7
note A#, 4
endchannel
Music_JohtoTrainerBattle_branch_f64a3:
intensity $c7
octave 3
note A_, 6
octave 4
note E_, 6
note D_, 2
note E_, 2
note G_, 4
note F#, 4
note E_, 4
note D_, 4
intensity $b0
note F_, 8
intensity $b7
note F_, 8
endchannel
Music_JohtoTrainerBattle_branch_f64b6:
octave 3
note A#, 2
note D#, 2
octave 4
note D#, 2
octave 3
note D#, 2
endchannel
Music_JohtoTrainerBattle_branch_f64be:
intensity $c7
octave 4
note F_, 4
intensity $c4
octave 3
note A#, 2
octave 4
note F_, 2
note G#, 2
note G_, 2
note F_, 2
note D#, 2
note D_, 1
note D#, 1
note D_, 1
note D#, 1
note F_, 2
endchannel
Music_JohtoTrainerBattle_branch_f64d2:
intensity $c7
octave 4
note D#, 6
note A#, 6
note G#, 2
note G_, 2
note G#, 4
note G_, 4
note F_, 4
note D#, 4
endchannel
Music_JohtoTrainerBattle_Ch3:
notetype $c, $19
octave 4
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note C#, 1
note C_, 1
octave 3
note B_, 1
octave 4
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note E_, 2
note A#, 2
note A_, 2
note G#, 2
Music_JohtoTrainerBattle_branch_f6501:
note A_, 2
note E_, 2
note F#, 2
note G_, 2
note E_, 2
note F#, 2
note G_, 2
note E_, 2
loopchannel 3, Music_JohtoTrainerBattle_branch_f6501
note A_, 2
note E_, 2
note F#, 2
note G_, 2
note E_, 2
note F#, 2
note G_, 2
note G#, 2
callchannel Music_JohtoTrainerBattle_branch_f6676
octave 4
note C_, 2
octave 3
note G_, 2
note A_, 2
note A#, 2
octave 4
note C_, 2
note C#, 2
note C_, 2
octave 3
note A#, 2
callchannel Music_JohtoTrainerBattle_branch_f6676
octave 4
note C_, 2
octave 3
note G_, 2
note A_, 2
note A#, 2
note G_, 2
note A_, 2
note A#, 2
note G_, 2
Music_JohtoTrainerBattle_branch_f6531:
callchannel Music_JohtoTrainerBattle_branch_f6681
note E_, 2
callchannel Music_JohtoTrainerBattle_branch_f6692
callchannel Music_JohtoTrainerBattle_branch_f6692
callchannel Music_JohtoTrainerBattle_branch_f6681
note A_, 2
callchannel Music_JohtoTrainerBattle_branch_f6692
callchannel Music_JohtoTrainerBattle_branch_f6692
callchannel Music_JohtoTrainerBattle_branch_f669d
note E_, 2
note A_, 2
note E_, 2
note A_, 2
note E_, 2
note D_, 2
note E_, 2
note F_, 2
callchannel Music_JohtoTrainerBattle_branch_f669d
note E_, 2
octave 4
note F_, 2
note E_, 2
note D_, 2
octave 3
note A_, 2
note G#, 2
note A_, 2
note A#, 2
callchannel Music_JohtoTrainerBattle_branch_f66a5
note D_, 2
note A_, 2
note D_, 2
note A_, 2
note D_, 2
note A_, 2
note G_, 2
note A_, 2
callchannel Music_JohtoTrainerBattle_branch_f66a5
note D_, 2
octave 4
note D_, 2
note C_, 2
octave 3
note A#, 2
note A_, 2
note G_, 2
note A_, 2
note A#, 2
callchannel Music_JohtoTrainerBattle_branch_f66ac
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note F_, 2
note G_, 2
callchannel Music_JohtoTrainerBattle_branch_f66ac
note C_, 2
octave 4
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 2
note F_, 2
note D#, 2
note D_, 2
note G_, 8
note F_, 8
note E_, 8
note D#, 8
Music_JohtoTrainerBattle_branch_f6591:
octave 3
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note A_, 2
octave 4
note C_, 2
loopchannel 2, Music_JohtoTrainerBattle_branch_f6591
callchannel Music_JohtoTrainerBattle_branch_f66ac
note C_, 2
octave 4
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 2
note F_, 2
note D#, 2
note G_, 2
Music_JohtoTrainerBattle_branch_f65ac:
note C#, 2
note G#, 2
loopchannel 7, Music_JohtoTrainerBattle_branch_f65ac
note B_, 2
note A_, 2
Music_JohtoTrainerBattle_branch_f65b4:
note D_, 2
note A_, 2
loopchannel 5, Music_JohtoTrainerBattle_branch_f65b4
note B_, 2
note A_, 2
note G#, 2
note F#, 2
note G#, 2
note A_, 2
Music_JohtoTrainerBattle_branch_f65c0:
note A#, 4
note D#, 4
loopchannel 4, Music_JohtoTrainerBattle_branch_f65c0
Music_JohtoTrainerBattle_branch_f65c6:
octave 4
note G_, 4
octave 3
note A#, 4
loopchannel 4, Music_JohtoTrainerBattle_branch_f65c6
Music_JohtoTrainerBattle_branch_f65ce:
callchannel Music_JohtoTrainerBattle_branch_f66b4
note D#, 2
note F_, 8
callchannel Music_JohtoTrainerBattle_branch_f66b4
octave 4
note C_, 2
octave 3
note A#, 8
loopchannel 2, Music_JohtoTrainerBattle_branch_f65ce
octave 4
note C#, 8
note C_, 8
octave 3
note A#, 8
note G#, 8
note F_, 8
note G_, 8
note G#, 8
note A#, 8
note F_, 8
note G_, 8
note G#, 4
note D#, 2
note G#, 2
octave 4
note C_, 8
note C_, 8
note D#, 8
octave 3
note A#, 2
note G#, 2
note G_, 2
note F_, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
octave 4
note C#, 2
octave 3
note A#, 2
note D#, 2
note A#, 2
octave 4
note C#, 2
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 2
note G#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
octave 4
note C#, 2
octave 3
note A#, 2
note D#, 2
note A#, 2
octave 4
note C_, 2
note C#, 2
note D#, 2
note C#, 2
note C_, 2
octave 3
note A#, 2
Music_JohtoTrainerBattle_branch_f661e:
note D#, 2
note A#, 2
loopchannel 8, Music_JohtoTrainerBattle_branch_f661e
Music_JohtoTrainerBattle_branch_f6624:
note C#, 2
note G#, 2
loopchannel 6, Music_JohtoTrainerBattle_branch_f6624
note C#, 2
octave 4
note C_, 2
octave 3
note A#, 2
note G#, 2
Music_JohtoTrainerBattle_branch_f6630:
note D#, 2
note A#, 2
loopchannel 8, Music_JohtoTrainerBattle_branch_f6630
Music_JohtoTrainerBattle_branch_f6636:
note C#, 2
note G#, 2
loopchannel 4, Music_JohtoTrainerBattle_branch_f6636
note C#, 2
octave 4
note C#, 2
note C_, 2
octave 3
note A#, 2
note G_, 2
note G#, 2
note A#, 2
octave 4
note C_, 2
octave 3
note D#, 8
note C#, 8
note C_, 8
octave 2
note A#, 8
octave 3
note A#, 8
note G#, 8
note G_, 8
note F_, 8
octave 4
note D#, 8
note D#, 8
octave 3
note A#, 8
note A#, 8
note G_, 8
note G_, 8
note D#, 8
note D#, 4
note A#, 4
note A_, 16
octave 4
note C_, 16
octave 3
note A#, 16
octave 4
note D_, 16
octave 3
note A_, 16
octave 4
note C_, 16
octave 3
note A#, 16
octave 4
note D_, 8
note __, 2
octave 3
note A_, 2
note A#, 2
octave 4
note D_, 2
loopchannel 0, Music_JohtoTrainerBattle_branch_f6531
Music_JohtoTrainerBattle_branch_f6676:
octave 4
note C_, 2
octave 3
note G_, 2
note A_, 2
note A#, 2
note G_, 2
note A_, 2
note A#, 2
note G_, 2
endchannel
Music_JohtoTrainerBattle_branch_f6681:
octave 3
note E_, 2
note A_, 2
note E_, 2
note A_, 2
note E_, 2
note F#, 2
note G_, 2
note A_, 2
note E_, 2
note A_, 2
note E_, 2
note A_, 2
note E_, 2
note F#, 2
note G_, 2
endchannel
Music_JohtoTrainerBattle_branch_f6692:
octave 3
note F_, 2
note A#, 2
note F_, 2
note A#, 2
note F_, 2
note A_, 2
note A#, 2
octave 4
note D_, 2
endchannel
Music_JohtoTrainerBattle_branch_f669d:
octave 3
note E_, 2
note A_, 2
loopchannel 4, Music_JohtoTrainerBattle_branch_f669d
endchannel
Music_JohtoTrainerBattle_branch_f66a5:
note D_, 2
note A_, 2
loopchannel 4, Music_JohtoTrainerBattle_branch_f66a5
endchannel
Music_JohtoTrainerBattle_branch_f66ac:
octave 3
note C_, 2
note G_, 2
loopchannel 4, Music_JohtoTrainerBattle_branch_f66ac
endchannel
Music_JohtoTrainerBattle_branch_f66b4:
note A#, 4
note D#, 2
note A#, 2
octave 4
note C#, 2
note C_, 2
octave 3
note A#, 2
note G#, 2
note G_, 1
note G#, 1
note G_, 1
note G#, 1
note A#, 2
endchannel
|
||||
TheStack | b8eee6ead2f0230827e2b6fd740a65ddba6d327c | Assemblycode:Assembly | {"size": 401, "ext": "asm", "max_stars_repo_path": "oeis/135/A135855.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/135/A135855.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/135/A135855.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.2777777778, "max_line_length": 167, "alphanum_fraction": 0.6159600998} | ; A135855: A007318 * a tridiagonal matrix with (1, 4, 1, 0, 0, 0,...) in every column.
; Submitted by Jon Maiga
; 1,5,1,10,6,1,16,16,7,1,23,32,23,8,1,31,55,55,31,9,1,40,86,110,86,40,10,1,50,126,196,196,126,50,11,1,61,176,322,392,322,176,61,12,1,73,237,498,714,714,498,237,73,13,1
lpb $0
add $2,1
sub $0,$2
lpe
add $0,1
mov $1,$2
bin $1,$0
add $0,1
mul $1,2
add $2,2
bin $2,$0
add $1,$2
mov $0,$1
|
||||
TheStack | 447f44de40851d8a98af9703e5489b71b4abfec8 | Assemblycode:Assembly | {"size": 492, "ext": "asm", "max_stars_repo_path": "src/test/ref/var-forward-problem.asm", "max_stars_repo_name": "jbrandwood/kickc", "max_stars_repo_stars_event_min_datetime": "2022-03-01T02:21:14.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-01T04:33:35.000Z", "max_issues_repo_path": "src/test/ref/var-forward-problem.asm", "max_issues_repo_name": "jbrandwood/kickc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/test/ref/var-forward-problem.asm", "max_forks_repo_name": "jbrandwood/kickc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.6, "max_line_length": 71, "alphanum_fraction": 0.6849593496} | // Illustrates the problem with variable forward references not working
// Commodore 64 PRG executable file
.file [name="var-forward-problem.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.const b = 'a'
.label screen = $400
.segment Code
main: {
// *screen = b
lda #b
sta screen
// }
rts
}
|
||||
TheStack | ec994298a21b446201e95ee0a0b3cfe30074bbfa | Assemblycode:Assembly | {"size": 2757, "ext": "asm", "max_stars_repo_path": "tools/files/applib/src/64bit/depackf.asm", "max_stars_repo_name": "nehalem501/gendev", "max_stars_repo_stars_event_min_datetime": "2015-01-01T23:46:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T09:24:52.000Z", "max_issues_repo_path": "aPLib/src/64bit/depackf.asm", "max_issues_repo_name": "NeuronAddict/the-backdoor-factory", "max_issues_repo_issues_event_min_datetime": "2015-01-25T20:55:18.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-03T19:26:40.000Z", "max_forks_repo_path": "aPLib/src/64bit/depackf.asm", "max_forks_repo_name": "NeuronAddict/the-backdoor-factory", "max_forks_repo_forks_event_min_datetime": "2015-01-01T23:46:01.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-27T20:29:21.000Z"} | {"max_stars_count": 2662, "max_issues_count": 69, "max_forks_count": 774, "avg_line_length": 15.4022346369, "max_line_length": 64, "alphanum_fraction": 0.4526659412} | ;;
;; aPLib compression library - the smaller the better :)
;;
;; fasm 64-bit fast assembler depacker
;;
;; Copyright (c) 1998-2014 Joergen Ibsen
;; All Rights Reserved
;;
;; http://www.ibsensoftware.com/
;;
format MS64 COFF
public aP_depack_asm_fast
; =============================================================
macro getbitM
{
local .stillbitsleft
add dl, dl
jnz .stillbitsleft
mov dl, [rsi]
inc rsi
adc dl, dl
.stillbitsleft:
}
macro domatchM reg
{
local .more
mov r10, rdi
sub r10, reg
.more:
mov al, [r10]
add r10, 1
mov [rdi], al
add rdi, 1
sub rcx, 1
jnz .more
}
macro getgammaM reg
{
local .getmorebits
mov reg, 1
.getmorebits:
getbitM
adc reg, reg
getbitM
jc .getmorebits
}
; =============================================================
section '.text' code readable executable
aP_depack_asm_fast:
; aP_depack_asm_fast(const void *source, void *destination)
mov [rsp + 8], rsi
mov [rsp + 16], rdx
push rdi
mov rsi, rcx
mov rdi, rdx
cld
mov dl, 80h
literal:
mov al, [rsi]
add rsi, 1
mov [rdi], al
add rdi, 1
mov r9, 2
nexttag:
getbitM
jnc literal
getbitM
jnc codepair
xor rax, rax
getbitM
jnc shortmatch
getbitM
adc rax, rax
getbitM
adc rax, rax
getbitM
adc rax, rax
getbitM
adc rax, rax
jz thewrite
mov r9, rdi
sub r9, rax
mov al, [r9]
thewrite:
mov [rdi], al
add rdi, 1
mov r9, 2
jmp short nexttag
codepair:
getgammaM rax
sub rax, r9
mov r9, 1
jnz normalcodepair
getgammaM rcx
domatchM r8
jmp nexttag
normalcodepair:
add rax, -1
shl rax, 8
mov al, [rsi]
add rsi, 1
mov r8, rax
getgammaM rcx
cmp rax, 32000
sbb rcx, -1
cmp rax, 1280
sbb rcx, -1
cmp rax, 128
adc rcx, 0
cmp rax, 128
adc rcx, 0
domatchM rax
jmp nexttag
shortmatch:
mov al, [rsi]
add rsi, 1
xor rcx, rcx
db 0c0h, 0e8h, 001h
jz donedepacking
adc rcx, 2
mov r8, rax
domatchM rax
mov r9, 1
jmp nexttag
donedepacking:
mov rax, rdi
sub rax, [rsp + 24]
mov rsi, [rsp + 16]
pop rdi
ret
; =============================================================
|
||||
TheStack | 69aaf817970287d6797615beea8eacf8a76c16e3 | Assemblycode:Assembly | {"size": 516, "ext": "asm", "max_stars_repo_path": "oeis/285/A285123.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/285/A285123.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/285/A285123.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 73.7142857143, "max_line_length": 249, "alphanum_fraction": 0.6085271318} | ; A285123: Min(|d(k+1-i) - d(i)|, for i = 1..k, where d(1),..,d(k) are the divisors of prime(n) - 1.
; Submitted by Jamie Morken(s2)
; 0,1,0,1,3,1,0,3,9,3,1,0,3,1,21,9,27,4,5,3,1,7,39,3,4,0,11,51,3,6,5,3,9,17,33,5,1,9,81,39,87,3,9,4,0,7,1,31,111,7,21,3,1,15,0,129,63,3,11,6,41,69,1,21,11,75,7,5,171,17,6,177,55,19,3,189,93,4,0,7,3,1,33,6,67,9,12,5,3,1,231,237,9,21,77,249,123,6,11,7
seq $0,40976 ; a(n) = prime(n) - 2.
seq $0,56737 ; Minimum nonnegative integer m such that n = k*(k+m) for some positive integer k.
|
||||
TheStack | a5c6aabe1992369bbb33a6bfa6831511dea02aec | Assemblycode:Assembly | {"size": 118, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Nether/_ff_dkud2_Nether.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Nether/_ff_dkud2_Nether.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/font/fzx/fonts/dkud2/Nether/_ff_dkud2_Nether.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.1111111111, "max_line_length": 47, "alphanum_fraction": 0.8305084746} |
SECTION rodata_font_fzx
PUBLIC _ff_dkud2_Nether
_ff_dkud2_Nether:
BINARY "font/fzx/fonts/dkud2/Nether/nether.fzx"
|
||||
TheStack | 19dd0e12eef82c602cf06bb568ea7a74ecc994ad | Assemblycode:Assembly | {"size": 352, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_output_list/cpm_00_output_list_ochar_msg_putc.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_output_list/cpm_00_output_list_ochar_msg_putc.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/target/cpm/driver/character/cpm_00_output_list/cpm_00_output_list_ochar_msg_putc.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 16.0, "max_line_length": 40, "alphanum_fraction": 0.6960227273} |
SECTION code_driver
SECTION code_driver_character_output
PUBLIC cpm_00_output_list_ochar_msg_putc
EXTERN __CPM_WLST, asm_cpm_bdos_alt
cpm_00_output_list_ochar_msg_putc:
; enter : c = char
; exit : carry set if error
; can use : af, bc, de, hl, af'
ld e,c
ld c,__CPM_WLST
call asm_cpm_bdos_alt
or a
ret
|
||||
TheStack | f8ffcc91b1b94d297b15ba71c781b63ae5b08475 | Assemblycode:Assembly | {"size": 2373, "ext": "asm", "max_stars_repo_path": "src/crosshair_cursor.asm", "max_stars_repo_name": "rondnelson99/bomb-golf", "max_stars_repo_stars_event_min_datetime": "2021-12-04T14:24:34.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-04T14:24:34.000Z", "max_issues_repo_path": "src/crosshair_cursor.asm", "max_issues_repo_name": "rondnelson99/bomb-golf", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/crosshair_cursor.asm", "max_forks_repo_name": "rondnelson99/bomb-golf", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2647058824, "max_line_length": 118, "alphanum_fraction": 0.616519174} | INCLUDE "defines.asm"
SECTION "Crosshair", ROM0
CROSSHAIR_SPEED equ 2
ProcessCrosshair::
ld hl, wCrosshairX ;this isn't strictly nescessary, but it optimizes things and hl isn't needed for anything else
ldh a, [hHeldKeys]
bit PADB_B, a
jr nz, DoneMovement ;if B is being pressed, the background will scroll instead, so skip this
ld b, a
CheckUp:
bit PADB_UP, b ;check the button
jr z, .skip
inc l ;point hl to wCrosshairY
ld a, [hl]
sub CROSSHAIR_SPEED ;move the coord if its pressed
jr nc, .noClamp
xor a ;clamp to its min/max
.noClamp
ld [hl-], a ;point it back to wCrosshairX
.skip
;and repeat for the other directions
CheckDown:
bit PADB_DOWN, b
jr z, .skip
inc l
ld a, [hl]
add CROSSHAIR_SPEED
cp SCRN_Y + 1
jr c, .noClamp
ld a, SCRN_Y
.noClamp
ld [hl-], a
.skip
CheckLeft:
bit PADB_LEFT, b
jr z, .skip
ld a, [hl]
sub CROSSHAIR_SPEED
jr nc, .noClamp
xor a
.noClamp
ld [hl], a
.skip
CheckRight:
bit PADB_RIGHT, b
jr z, .skip
ld a, [hl]
add CROSSHAIR_SPEED
cp SCRN_X + 1
jr c, .noClamp
ld a, SCRN_X
.noClamp
ld [hl], a
.skip
DoneMovement:
SetOAMCrosshair:
ld a, [hl+] ;X pos
add 8 - 4 ;oam coord offset - half of size
ld [OBJ_CROSSHAIR + OAMA_X], a
ld a, [hl-] ;Y pos
add 16 - 4
ld [OBJ_CROSSHAIR + OAMA_Y], a
CheckDrawing:
ldh a, [hPressedKeys] ;get the pressed keys instead of the held keys
bit PADB_START, a
ret z ;jr z, .done ;draw the crater if start is being pressed
ldh a, [hSCX] ;add the scroll registers to the crosshair coordinates
;to get the crosshair's position on the golf course
add [hl] ;X pos
inc l
ld b, a
ldh a, [hSCY]
add [hl]
ld c, a
jp RenderCrater ;tail call
.done
ret
SECTION "Init Crosshair", ROM0
InitCrosshair::
ld a, SCRN_X / 2
ld [wCrosshairX], a
ld a, SCRN_Y / 2
ld [wCrosshairY], a
ld a, SPRITE_CROSSHAIR
ld [OBJ_CROSSHAIR + OAMA_TILEID], a
xor a ;no special flags
ld [OBJ_CROSSHAIR + OAMA_FLAGS], a
ret
SECTION "Crosshair variables", WRAM0, ALIGN[1]
;the alignment forces them onto the same page so I can inc/dec l rather than hl
wCrosshairX: db
wCrosshairY: db |
||||
TheStack | 74bbdf2816cf0c3e8e500828af740f6ac782b1cc | Assemblycode:Assembly | {"size": 668, "ext": "asm", "max_stars_repo_path": "src/veterancy_from_allies.asm", "max_stars_repo_name": "mvdhout1992/ts-patches", "max_stars_repo_stars_event_min_datetime": "2016-07-30T14:17:28.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-19T15:45:19.000Z", "max_issues_repo_path": "src/veterancy_from_allies.asm", "max_issues_repo_name": "A-Productions/ts-patches", "max_issues_repo_issues_event_min_datetime": "2018-08-17T00:25:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T08:31:15.000Z", "max_forks_repo_path": "src/veterancy_from_allies.asm", "max_forks_repo_name": "A-Productions/ts-patches", "max_forks_repo_forks_event_min_datetime": "2017-05-16T11:28:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-20T20:41:03.000Z"} | {"max_stars_count": 33, "max_issues_count": 73, "max_forks_count": 18, "avg_line_length": 23.0344827586, "max_line_length": 78, "alphanum_fraction": 0.748502994} | ; Units and Structures Can No Longer Gain Experience From Killing Friendlies
; The game did not do any alliance checks when awarding experience for a kill.
; This hack adds a check and only awards experience for killing enemies
; Author: AlexB
; Date: 2016-11-29
%include "macros/patch.inc"
@LJMP 0x006337E8, _TechnoClass_RegisterDestruction_Veterancy
section .text
_TechnoClass_RegisterDestruction_Veterancy:
mov cl, [eax+43Eh]; TechnoTypeClass::Trainable
test cl, cl
jz .Skip
push esi
mov ecx, [edi+0ECh]; TechnoClass::Owner
call 0x004BDA60; HouseClass::AlliedWithObject
test al, al
jz 0x006337F2
.Skip:
jmp 0x0063381A
|
||||
TheStack | cc283bac512143b8558f5445cae222609ef62ef9 | Assemblycode:Assembly | {"size": 31, "ext": "asm", "max_stars_repo_path": "tests/data_unsized/12.asm", "max_stars_repo_name": "NullMember/customasm", "max_stars_repo_stars_event_min_datetime": "2016-10-14T22:39:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T07:52:44.000Z", "max_issues_repo_path": "tests/data_unsized/12.asm", "max_issues_repo_name": "NullMember/customasm", "max_issues_repo_issues_event_min_datetime": "2018-03-22T16:12:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-26T09:19:23.000Z", "max_forks_repo_path": "tests/data_unsized/12.asm", "max_forks_repo_name": "NullMember/customasm", "max_forks_repo_forks_event_min_datetime": "2017-06-29T15:12:13.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-10T04:50:51.000Z"} | {"max_stars_count": 414, "max_issues_count": 100, "max_forks_count": 47, "avg_line_length": 31.0, "max_line_length": 31, "alphanum_fraction": 0.6774193548} | #d 0x12, 10 ; error: infer size |
||||
TheStack | 1ccada52ecb5da55513fa6a20d16012eb6598838 | Assemblycode:Assembly | {"size": 2545, "ext": "asm", "max_stars_repo_path": "lib/glyphs.asm", "max_stars_repo_name": "jsmolka/gba-suite", "max_stars_repo_stars_event_min_datetime": "2020-01-18T21:48:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-08T11:17:56.000Z", "max_issues_repo_path": "lib/glyphs.asm", "max_issues_repo_name": "jsmolka/gba-suite", "max_issues_repo_issues_event_min_datetime": "2020-01-19T07:37:23.000Z", "max_issues_repo_issues_event_max_datetime": "2020-11-10T17:09:24.000Z", "max_forks_repo_path": "lib/glyphs.asm", "max_forks_repo_name": "jsmolka/gba-tests", "max_forks_repo_forks_event_min_datetime": "2021-05-28T09:35:20.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T18:09:32.000Z"} | {"max_stars_count": 31, "max_issues_count": 8, "max_forks_count": 6, "avg_line_length": 90.8928571429, "max_line_length": 103, "alphanum_fraction": 0.7858546169} | align 4
glyphs:
; Extracted from tonclib
dw 0x00000000,0x00000000,0x18181818,0x00180018,0x00003636,0x00000000,0x367F3636,0x0036367F
dw 0x3C067C18,0x00183E60,0x1B356600,0x0033566C,0x6E16361C,0x00DE733B,0x000C1818,0x00000000
dw 0x0C0C1830,0x0030180C,0x3030180C,0x000C1830,0xFF3C6600,0x0000663C,0x7E181800,0x00001818
dw 0x00000000,0x0C181800,0x7E000000,0x00000000,0x00000000,0x00181800,0x183060C0,0x0003060C
dw 0x7E76663C,0x003C666E,0x181E1C18,0x00181818,0x3060663C,0x007E0C18,0x3860663C,0x003C6660
dw 0x33363C38,0x0030307F,0x603E067E,0x003C6660,0x3E060C38,0x003C6666,0x3060607E,0x00181818
dw 0x3C66663C,0x003C6666,0x7C66663C,0x001C3060,0x00181800,0x00181800,0x00181800,0x0C181800
dw 0x06186000,0x00006018,0x007E0000,0x0000007E,0x60180600,0x00000618,0x3060663C,0x00180018
dw 0x5A5A663C,0x003C067A,0x7E66663C,0x00666666,0x3E66663E,0x003E6666,0x06060C78,0x00780C06
dw 0x6666361E,0x001E3666,0x1E06067E,0x007E0606,0x1E06067E,0x00060606,0x7606663C,0x007C6666
dw 0x7E666666,0x00666666,0x1818183C,0x003C1818,0x60606060,0x003C6660,0x0F1B3363,0x0063331B
dw 0x06060606,0x007E0606,0x6B7F7763,0x00636363,0x7B6F6763,0x00636373,0x6666663C,0x003C6666
dw 0x3E66663E,0x00060606,0x3333331E,0x007E3B33,0x3E66663E,0x00666636,0x3C0E663C,0x003C6670
dw 0x1818187E,0x00181818,0x66666666,0x003C6666,0x66666666,0x00183C3C,0x6B636363,0x0063777F
dw 0x183C66C3,0x00C3663C,0x183C66C3,0x00181818,0x0C18307F,0x007F0306,0x0C0C0C3C,0x003C0C0C
dw 0x180C0603,0x00C06030,0x3030303C,0x003C3030,0x00663C18,0x00000000,0x00000000,0x003F0000
dw 0x00301818,0x00000000,0x603C0000,0x007C667C,0x663E0606,0x003E6666,0x063C0000,0x003C0606
dw 0x667C6060,0x007C6666,0x663C0000,0x003C067E,0x0C3E0C38,0x000C0C0C,0x667C0000,0x3C607C66
dw 0x663E0606,0x00666666,0x18180018,0x00301818,0x30300030,0x1E303030,0x36660606,0x0066361E
dw 0x18181818,0x00301818,0x7F370000,0x0063636B,0x663E0000,0x00666666,0x663C0000,0x003C6666
dw 0x663E0000,0x06063E66,0x667C0000,0x60607C66,0x663E0000,0x00060606,0x063C0000,0x003E603C
dw 0x0C3E0C0C,0x00380C0C,0x66660000,0x007C6666,0x66660000,0x00183C66,0x63630000,0x00367F6B
dw 0x36630000,0x0063361C,0x66660000,0x0C183C66,0x307E0000,0x007E0C18,0x0C181830,0x00301818
dw 0x18181818,0x00181818,0x3018180C,0x000C1818,0x003B6E00,0x00000000,0x00000000,0x00000000
|
||||
TheStack | 29da11226f6adb6f0afb391ea62460dbb4353af7 | Assemblycode:Assembly | {"size": 6670, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_101.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_101.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_101.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 36.25, "max_line_length": 2999, "alphanum_fraction": 0.6575712144} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x4bd9, %r12
clflush (%r12)
nop
nop
sub %rdx, %rdx
movb (%r12), %r13b
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_UC_ht+0x12dd9, %rsi
lea addresses_UC_ht+0x14959, %rdi
nop
nop
nop
add %r10, %r10
mov $40, %rcx
rep movsb
nop
nop
nop
nop
cmp $41836, %r12
lea addresses_UC_ht+0x3e39, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
dec %r10
movl $0x61626364, (%rbx)
nop
add %rbx, %rbx
lea addresses_normal_ht+0xe639, %rdi
nop
nop
nop
nop
inc %r12
movups (%rdi), %xmm3
vpextrq $1, %xmm3, %rbx
mfence
lea addresses_A_ht+0xa39, %rsi
lea addresses_WC_ht+0x1e839, %rdi
nop
nop
nop
sub $16799, %rdx
mov $8, %rcx
rep movsb
nop
nop
nop
add %rdi, %rdi
lea addresses_WT_ht+0x19699, %rsi
lea addresses_WT_ht+0x17a39, %rdi
nop
nop
nop
nop
nop
and %r10, %r10
mov $125, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $49798, %rbx
lea addresses_WC_ht+0xd329, %r12
nop
nop
xor $3747, %r10
movl $0x61626364, (%r12)
nop
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0x1b95f, %rsi
nop
nop
sub $61088, %rcx
mov (%rsi), %edi
sub $37399, %rbx
lea addresses_normal_ht+0x10639, %rsi
clflush (%rsi)
nop
nop
nop
sub %rcx, %rcx
mov (%rsi), %r13d
nop
nop
nop
cmp $58854, %r10
lea addresses_WC_ht+0x1ba39, %rsi
nop
add %r12, %r12
mov (%rsi), %r10
inc %rsi
lea addresses_UC_ht+0x9639, %rdi
clflush (%rdi)
nop
nop
nop
xor $36007, %rbx
mov (%rdi), %r13
add $51167, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %r8
push %rcx
push %rsi
// Faulty Load
lea addresses_WT+0x19639, %r10
nop
nop
nop
nop
nop
sub %r15, %r15
movups (%r10), %xmm6
vpextrq $0, %xmm6, %rcx
lea oracles, %r8
and $0xff, %rcx
shlq $12, %rcx
mov (%r8,%rcx,1), %rcx
pop %rsi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 4, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 2, 'same': True, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, '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
*/
|
||||
TheStack | 254b462b33a3c177cde82aa9ba1b2eae97d15c85 | Assemblycode:Assembly | {"size": 324, "ext": "asm", "max_stars_repo_path": "programs/oeis/121/A121471.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/121/A121471.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/121/A121471.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.4, "max_line_length": 216, "alphanum_fraction": 0.6728395062} | ; A121471: a(n) = 9*n^2/4 -4*n +19/8 -3*(-1)^n/8.
; 1,3,11,22,39,59,85,114,149,187,231,278,331,387,449,514,585,659,739,822,911,1003,1101,1202,1309,1419,1535,1654,1779,1907,2041,2178,2321,2467,2619,2774,2935,3099,3269,3442,3621,3803,3991,4182,4379,4579,4785,4994,5209
mov $1,9
mul $1,$0
add $1,2
mul $1,$0
div $1,4
add $1,1
|
||||
TheStack | 89b3cd5d5ee3faec3412305400667462d148447f | Assemblycode:Assembly | {"size": 546, "ext": "asm", "max_stars_repo_path": "asm/idle.asm", "max_stars_repo_name": "mlndz28/selector-623", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "asm/idle.asm", "max_issues_repo_name": "mlndz28/selector-623", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "asm/idle.asm", "max_forks_repo_name": "mlndz28/selector-623", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.8181818182, "max_line_length": 67, "alphanum_fraction": 0.5146520147} | loc
;******************************************************************
;* MODO_LIBRE - standby mode. Load the respective message on the
;* screen for this mode and turn off the 7 segment display.
;*
;* Calling convention:
;* jsr MODO_LIBRE
;*
;* Calls: Cargar_LCD
;* Changes: X, Y, BIN1, BIN2, POSITION
;******************************************************************
MODO_LIBRE:
brset POSITION,$01,return`
movb #$01,POSITION
movb #$01,LEDS
ldx #MSGRM
ldy #MSGML
jsr Cargar_LCD
movb #$BB,BIN1
movb #$BB,BIN2
return`:
rts |
||||
TheStack | 39572e39eec28b8e2953a25cedd074eedd661c36 | Assemblycode:Assembly | {"size": 386, "ext": "asm", "max_stars_repo_path": "programs/oeis/244/A244048.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/244/A244048.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/244/A244048.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7333333333, "max_line_length": 185, "alphanum_fraction": 0.6165803109} | ; A244048: Antisigma(n) minus the sum of remainders of n mod k, for k = 1,2,3,...,n.
; 0,0,1,2,5,6,12,13,20,24,32,33,49,50,60,69,84,85,106,107,129,140,154,155,191,197,213,226,254,255,297,298,329,344,364,377,432,433,455,472,522,523,577,578,618,651,677,678,754,762,805,826
mov $2,$0
lpb $2,1
lpb $4,1
add $1,$3
trn $4,$3
lpe
sub $1,$3
add $3,1
mov $4,$2
sub $2,1
lpe
|
||||
TheStack | 8350722047990b8299630419f5235ca662960227 | Assemblycode:Assembly | {"size": 565, "ext": "asm", "max_stars_repo_path": "oeis/000/A000918.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/000/A000918.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/000/A000918.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 70.625, "max_line_length": 498, "alphanum_fraction": 0.8407079646} | ; A000918: a(n) = 2^n - 2.
; -1,0,2,6,14,30,62,126,254,510,1022,2046,4094,8190,16382,32766,65534,131070,262142,524286,1048574,2097150,4194302,8388606,16777214,33554430,67108862,134217726,268435454,536870910,1073741822,2147483646,4294967294,8589934590,17179869182,34359738366,68719476734,137438953470,274877906942,549755813886,1099511627774,2199023255550,4398046511102,8796093022206,17592186044414,35184372088830,70368744177662,140737488355326,281474976710654,562949953421310,1125899906842622,2251799813685246,4503599627370494
mov $1,2
pow $1,$0
sub $1,2
mov $0,$1
|
||||
TheStack | fda7481cbbe86d45496596c8d3921392efc206a9 | Assemblycode:Assembly | {"size": 608, "ext": "asm", "max_stars_repo_path": "programs/oeis/275/A275973.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/275/A275973.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/275/A275973.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 60.8, "max_line_length": 501, "alphanum_fraction": 0.5230263158} | ; A275973: A binary sequence due to Harold Jeffreys.
; 1,0,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
mov $1,2
lpb $0
mov $1,$0
div $0,4
lpe
div $1,2
|
||||
TheStack | 44a47713c697878813949bede42fc50094ac21fb | Assemblycode:Assembly | {"size": 157, "ext": "asm", "max_stars_repo_path": "pipFiles/simple.asm", "max_stars_repo_name": "hwheeler01/comp150", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "pipFiles/simple.asm", "max_issues_repo_name": "hwheeler01/comp150", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "pipFiles/simple.asm", "max_forks_repo_name": "hwheeler01/comp150", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.1666666667, "max_line_length": 34, "alphanum_fraction": 0.1210191083} | LOD #4
STO n
LOD #3
ADD n
HLT
|
||||
TheStack | 3ce75c85a6b2b48f05288d1feec1b3a2beafcd0c | Assemblycode:Assembly | {"size": 1715, "ext": "asm", "max_stars_repo_path": "Muzyka/sounds.asm", "max_stars_repo_name": "arhneu/gruniozerca", "max_stars_repo_stars_event_min_datetime": "2017-02-08T17:59:27.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-21T17:09:57.000Z", "max_issues_repo_path": "Muzyka/sounds.asm", "max_issues_repo_name": "arhneu/gruniozerca", "max_issues_repo_issues_event_min_datetime": "2018-03-30T07:30:16.000Z", "max_issues_repo_issues_event_max_datetime": "2018-03-30T11:50:48.000Z", "max_forks_repo_path": "Muzyka/sounds.asm", "max_forks_repo_name": "arhneu/gruniozerca", "max_forks_repo_forks_event_min_datetime": "2017-02-10T05:04:34.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-11T11:23:03.000Z"} | {"max_stars_count": 23, "max_issues_count": 1, "max_forks_count": 6, "avg_line_length": 47.6388888889, "max_line_length": 69, "alphanum_fraction": 0.5206997085} | ;this file for FamiTone2 libary generated by nsf2data tool
sounds:
.dw @sfx_ntsc_0,@sfx_ntsc_0
.dw @sfx_ntsc_1,@sfx_ntsc_1
.dw @sfx_ntsc_2,@sfx_ntsc_2
.dw @sfx_ntsc_3,@sfx_ntsc_3
@sfx_ntsc_0:
.db $89,$3d,$8a,$07,$01,$89,$3c,$8a,$03,$01,$8a,$00,$01,$89,$3a,$8a
.db $0b,$01,$89,$38,$8a,$07,$01,$89,$37,$8a,$03,$01,$89,$3d,$8a,$09
.db $01,$89,$3c,$8a,$05,$01,$8a,$02,$01,$89,$3a,$8a,$0d,$01,$89,$38
.db $8a,$09,$01,$89,$37,$8a,$05,$01,$89,$36,$8a,$02,$01,$89,$35,$8a
.db $0d,$01,$89,$34,$8a,$09,$01,$89,$33,$8a,$05,$01,$8a,$02,$01,$89
.db $32,$8a,$0d,$01,$89,$30,$00
@sfx_ntsc_1:
.db $80,$79,$81,$ab,$82,$01,$02,$80,$78,$02,$80,$77,$02,$80,$79,$81
.db $52,$02,$80,$78,$02,$80,$77,$02,$80,$79,$81,$ab,$02,$80,$78,$02
.db $80,$77,$02,$80,$79,$81,$52,$02,$80,$78,$02,$80,$77,$02,$80,$76
.db $02,$80,$75,$02,$80,$74,$02,$80,$73,$02,$80,$72,$02,$80,$71,$02
.db $80,$30,$00
@sfx_ntsc_2:
.db $80,$79,$81,$ab,$82,$01,$02,$80,$78,$02,$80,$77,$02,$80,$79,$81
.db $7c,$02,$80,$78,$02,$80,$77,$02,$80,$79,$81,$52,$02,$80,$78,$02
.db $80,$77,$02,$80,$79,$81,$3f,$02,$80,$78,$02,$80,$77,$02,$80,$76
.db $02,$80,$75,$02,$80,$74,$02,$80,$73,$02,$80,$72,$02,$80,$71,$02
.db $80,$30,$00
@sfx_ntsc_3:
.db $80,$79,$81,$c9,$82,$00,$02,$80,$78,$02,$80,$77,$02,$80,$76,$02
.db $80,$75,$02,$80,$74,$02,$80,$79,$02,$80,$78,$02,$80,$77,$02,$80
.db $79,$81,$bd,$02,$80,$78,$02,$80,$77,$02,$80,$79,$81,$c9,$02,$80
.db $78,$02,$80,$77,$02,$80,$76,$02,$80,$75,$02,$80,$74,$02,$80,$79
.db $02,$80,$78,$02,$80,$77,$02,$80,$79,$81,$bd,$02,$80,$78,$02,$80
.db $77,$02,$80,$79,$81,$c9,$02,$80,$78,$02,$80,$77,$02,$80,$76,$02
.db $80,$75,$02,$80,$74,$02,$80,$73,$02,$80,$72,$02,$80,$71,$00
|
||||
TheStack | 687da2c79cfa2b48950fab3ffb0bd630039e3470 | Assemblycode:Assembly | {"size": 2262, "ext": "asm", "max_stars_repo_path": "sdk-6.5.16/tools/led/example/merlin5670.asm", "max_stars_repo_name": "copslock/broadcom_cpri", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "sdk-6.5.16/tools/led/example/merlin5670.asm", "max_issues_repo_name": "copslock/broadcom_cpri", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "sdk-6.5.16/tools/led/example/merlin5670.asm", "max_forks_repo_name": "copslock/broadcom_cpri", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.1333333333, "max_line_length": 133, "alphanum_fraction": 0.6746242263} | ;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default 5670 program for the Merlin (BCM95690R24S).
;
; To start it, use the following commands from BCM,
; where unit 0 is the 5670 and units 1 and 2 are the 5690s:
;
; 0:led load merlin5670.hex
; 1:led load merlin5690.hex
; 1:led auto on
; 2:led load merlin5690.hex
; 2:led auto on
; *:led start
;
; The 3 programs should be started all at once so that blinking
; is in sync across the 5690s.
;
; The Merlin has 14 columns of 4 LEDs each as shown below:
;
; 5690 Unit 1 5690 Unit 2 5670 Unit 0
; ----------------------- ----------------------- --------------
; L01 L03 L05 L07 L09 L11 L01 L03 L05 L07 L09 L11 E1 E2
; A01 A03 A05 A07 A09 A11 A01 A03 A05 A07 A09 A11 R1 R2
; L02 L04 L06 L08 L10 L12 L02 L04 L06 L08 L10 L12 T1 T2
; A02 A04 A06 A08 A10 A12 A02 A04 A06 A08 A10 A12 L1 L2
;
; The 5670 LEDs are on the back of the unit.
;
; This program runs only on the 5670 and controls only the rightmost
; two columns of LEDs. The merlin5690 program runs on each 5690.
;
; There is one bit per LED with the following colors:
; ZERO Green
; ONE Black
;
; The bits are shifted out in the following order:
; E1, L1, T1, R1, E2, L2, T2, R2
;
; Current implementation:
; E1 reflects port 1 higig link enable
; R1 reflects port 1 higig receive activity
; T1 reflects port 1 higig transmit activity
; L1 reflects port 1 higig link up
;
port 3 ; 5670 port 3 (right)
call put
port 6 ; 5670 port 6 (left)
call put
send 8
put:
pushst LINKEN
tinv
pack
pushst RX
tinv
pack
pushst TX
tinv
pack
pushst LINKUP
tinv
pack
ret
;
; Symbolic names for the bits of the port status fields
;
RX equ 0x0 ; received packet
TX equ 0x1 ; transmitted packet
COLL equ 0x2 ; collision indicator
SPEED_C equ 0x3 ; 100 Mbps
SPEED_M equ 0x4 ; 1000 Mbps
DUPLEX equ 0x5 ; half/full duplex
FLOW equ 0x6 ; flow control capable
LINKUP equ 0x7 ; link down/up status
LINKEN equ 0x8 ; link disabled/enabled status
ZERO equ 0xE ; always 0
ONE equ 0xF ; always 1
|
||||
TheStack | da4e07ba038d48788f016f3437ebec331d5312cb | Assemblycode:Assembly | {"size": 194, "ext": "asm", "max_stars_repo_path": "ESEMPI/11 PROGRAMMA TRASFERIMENTO.asm", "max_stars_repo_name": "Porchetta/py-pdp8-tk", "max_stars_repo_stars_event_min_datetime": "2019-06-07T10:38:41.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T13:05:12.000Z", "max_issues_repo_path": "ESEMPI/11 PROGRAMMA TRASFERIMENTO.asm", "max_issues_repo_name": "Porchetta/py-pdp8-tk", "max_issues_repo_issues_event_min_datetime": "2015-07-14T12:22:33.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-11T08:35:24.000Z", "max_forks_repo_path": "ESEMPI/11 PROGRAMMA TRASFERIMENTO.asm", "max_forks_repo_name": "Porchetta/py-pdp8-tk", "max_forks_repo_forks_event_min_datetime": "2015-05-06T14:35:08.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-23T14:27:21.000Z"} | {"max_stars_count": 8, "max_issues_count": 2, "max_forks_count": 9, "avg_line_length": 9.7, "max_line_length": 58, "alphanum_fraction": 0.6443298969} | ORG 100 /Trasferisce i dati da X+i a Y+i con i = (0,1,2,3)
BUN L
SBR, ISZ L
ISZ N
L, LDA X
N, STA Y
ISZ CNT
BUN SBR
HLT
CNT, DEC -4
X, DEC 10
DEC 20
DEC 30
DEC 40
Y, DEC 0
DEC 0
DEC 0
DEC 0
END
|
||||
TheStack | c1200b3f8e62ee5c4a43d3307bb82538faed8874 | Assemblycode:Assembly | {"size": 56002, "ext": "asm", "max_stars_repo_path": "src/presets/14ice_data.asm", "max_stars_repo_name": "NobodyNada/sm_practice_hack", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/presets/14ice_data.asm", "max_issues_repo_name": "NobodyNada/sm_practice_hack", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/presets/14ice_data.asm", "max_forks_repo_name": "NobodyNada/sm_practice_hack", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.9678869621, "max_line_length": 99, "alphanum_fraction": 0.6297989358} |
preset_14ice_crateria_ceres_elevator:
dw #$0000
dw $078D, $AB58 ; DDB
dw $079B, $DF45 ; MDB
dw $07F3, $002D ; Music Bank
dw $07F5, $0006 ; Music Track
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $093F, $0000 ; Ceres escape flag
dw $09A2, $0000 ; Equipped Items
dw $09A4, $0000 ; Collected Items
dw $09A6, $0000 ; Beams
dw $09A8, $0000 ; Beams
dw $09C0, $0000 ; Manual/Auto reserve tank
dw $09C2, $0063 ; Health
dw $09C4, $0063 ; Max health
dw $09C6, $0000 ; Missiles
dw $09C8, $0000 ; Max missiles
dw $09CA, $0000 ; Supers
dw $09CC, $0000 ; Max supers
dw $09CE, $0000 ; Pbs
dw $09D0, $0000 ; Max pbs
dw $09D2, $0000 ; Currently selected item
dw $09D4, $0000 ; Max reserves
dw $09D6, $0000 ; Reserves
dw $0A1C, $0000 ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0A68, $0000 ; Flash suit
dw $0A76, $0000 ; Hyper beam
dw $0AF6, $0080 ; Samus X
dw $0AF8, $0000 ; Samus subpixel X
dw $0AFA, $0048 ; Samus Y
dw $0AFC, $0000 ; Samus subpixel Y
dw $0B3F, $0000 ; Blue suit
dw $D820, $0000 ; Events
dw $D822, $0000 ; Events
dw $D828, $0000 ; Bosses
dw $D82A, $0000 ; Bosses
dw $D82C, $0000 ; Bosses
dw $D82E, $0000 ; Bosses
dw $D870, $0000 ; Items
dw $D872, $0000 ; Items
dw $D874, $0000 ; Items
dw $D876, $0000 ; Items
dw $D878, $0000 ; Items
dw $D87A, $0000 ; Items
dw $D87C, $0000 ; Items
dw $D87E, $0000 ; Items
dw $D880, $0000 ; Items
dw $D882, $0000 ; Items
dw $D8B0, $0000 ; Doors
dw $D8B2, $0000 ; Doors
dw $D8B4, $0000 ; Doors
dw $D8B6, $0000 ; Doors
dw $D8B8, $0000 ; Doors
dw $D8BA, $0000 ; Doors
dw $D8BC, $0000 ; Doors
dw $D8BE, $0000 ; Doors
dw $D8C0, $0000 ; Doors
dw $D8C2, $0000 ; Doors
dw $D8C4, $0000 ; Doors
dw $D908, $0000 ; Map Stations
dw $D90A, $0000 ; Map Stations
dw $D90C, $0000 ; Map Stations
dw #$FFFF
preset_14ice_crateria_ceres_escape:
dw #preset_14ice_crateria_ceres_elevator ; Crateria: Ceres Elevator
dw $078D, $ABAC ; DDB
dw $079B, $E0B5 ; MDB
dw $07F3, $0024 ; Music Bank
dw $07F5, $0007 ; Music Track
dw $090F, $8000 ; Screen subpixel X position
dw $0913, $9400 ; Screen subpixel Y position
dw $093F, $0002 ; Ceres escape flag
dw $09C2, $0018 ; Health
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0033 ; Samus X
dw $0AF8, $B000 ; Samus subpixel X
dw $0AFA, $008B ; Samus Y
dw $0AFC, $FFFF ; Samus subpixel Y
dw $D82E, $0001 ; Bosses
dw #$FFFF
preset_14ice_crateria_ceres_last_3_rooms:
dw #preset_14ice_crateria_ceres_escape ; Crateria: Ceres Escape
dw $078D, $ABA0 ; DDB
dw $079B, $E021 ; MDB
dw $090F, $7400 ; Screen subpixel X position
dw $0913, $F000 ; Screen subpixel Y position
dw $0AF6, $004E ; Samus X
dw $0AFA, $00A2 ; Samus Y
dw #$FFFF
preset_14ice_crateria_ship:
dw #preset_14ice_crateria_ceres_last_3_rooms ; Crateria: Ceres Last 3 Rooms
dw $078D, $88FE ; DDB
dw $079B, $91F8 ; MDB
dw $07F3, $0006 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $8000 ; Screen subpixel X position
dw $0911, $0400 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0400 ; Screen Y position in pixels
dw $0917, $0200 ; Layer 2 X position
dw $093F, $0000 ; Ceres escape flag
dw $09C2, $0063 ; Health
dw $0A1C, $0000 ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0481 ; Samus X
dw $0AF8, $0000 ; Samus subpixel X
dw $0AFA, $0471 ; Samus Y
dw $0AFC, $8000 ; Samus subpixel Y
dw #$FFFF
preset_14ice_crateria_parlor:
dw #preset_14ice_crateria_ship ; Crateria: Ship
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $1400 ; Screen subpixel Y position
dw $0915, $0400 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0079 ; Samus X
dw $0AFA, $049B ; Samus Y
dw $0AFC, $FFFF ; Samus subpixel Y
dw #$FFFF
preset_14ice_crateria_climb_down:
dw #preset_14ice_crateria_parlor ; Crateria: Parlor
dw $078D, $8916 ; DDB
dw $079B, $92FD ; MDB
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $7BFF ; Screen subpixel Y position
dw $0915, $03F2 ; Screen Y position in pixels
dw $0917, $00C0 ; Layer 2 X position
dw $0919, $02F5 ; Layer 2 Y position
dw $0A1C, $0018 ; Samus position/state
dw $0A1E, $0204 ; More position/state
dw $0AF6, $0199 ; Samus X
dw $0AF8, $8000 ; Samus subpixel X
dw $0AFA, $048A ; Samus Y
dw $0AFC, $0000 ; Samus subpixel Y
dw #$FFFF
preset_14ice_crateria_pit_room:
dw #preset_14ice_crateria_climb_down ; Crateria: Climb Down
dw $078D, $898E ; DDB
dw $079B, $96BA ; MDB
dw $090F, $6FFF ; Screen subpixel X position
dw $0913, $3800 ; Screen subpixel Y position
dw $0915, $0800 ; Screen Y position in pixels
dw $0919, $0600 ; Layer 2 Y position
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $01DB ; Samus X
dw $0AF8, $FFFF ; Samus subpixel X
dw $0AFA, $088B ; Samus Y
dw $0AFC, $FFFF ; Samus subpixel Y
dw #$FFFF
preset_14ice_crateria_morph:
dw #preset_14ice_crateria_pit_room ; Crateria: Pit Room
dw $078D, $8B9E ; DDB
dw $079B, $9E9F ; MDB
dw $07F5, $0007 ; Music Track
dw $090F, $6000 ; Screen subpixel X position
dw $0911, $0500 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0200 ; Screen Y position in pixels
dw $0917, $03C0 ; Layer 2 X position
dw $0919, $0180 ; Layer 2 Y position
dw $0A1C, $0000 ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0580 ; Samus X
dw $0AFA, $02A8 ; Samus Y
dw #$FFFF
preset_14ice_crateria_construction_zone_down:
dw #preset_14ice_crateria_morph ; Crateria: Morph
dw $090F, $2000 ; Screen subpixel X position
dw $0911, $0700 ; Screen X position in pixels
dw $0913, $E400 ; Screen subpixel Y position
dw $0917, $0540 ; Layer 2 X position
dw $09A2, $0004 ; Equipped Items
dw $09A4, $0004 ; Collected Items
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $07AC ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D872, $0400 ; Items
dw #$FFFF
preset_14ice_crateria_construction_zone_up:
dw #preset_14ice_crateria_construction_zone_down ; Crateria: Construction Zone Down
dw $078D, $8EDA ; DDB
dw $079B, $A107 ; MDB
dw $090F, $D000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $6800 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0001 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C6, $0005 ; Missiles
dw $09C8, $0005 ; Max missiles
dw $0AF6, $0055 ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D874, $0004 ; Items
dw #$FFFF
preset_14ice_crateria_pit_room_revisit:
dw #preset_14ice_crateria_construction_zone_up ; Crateria: Construction Zone Up
dw $078D, $8EB6 ; DDB
dw $079B, $97B5 ; MDB
dw $07F5, $0003 ; Music Track
dw $090F, $0000 ; Screen subpixel X position
dw $0913, $0000 ; Screen subpixel Y position
dw $0917, $0000 ; Layer 2 X position
dw $0A1C, $0000 ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0080 ; Samus X
dw $0AFA, $0088 ; Samus Y
dw #$FFFF
preset_14ice_crateria_climb_up:
dw #preset_14ice_crateria_pit_room_revisit ; Crateria: Pit Room Revisit
dw $078D, $8B92 ; DDB
dw $079B, $975C ; MDB
dw $07F3, $0009 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $4000 ; Screen subpixel X position
dw $0913, $CC00 ; Screen subpixel Y position
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0083 ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D820, $0001 ; Events
dw $D8B2, $0400 ; Doors
dw #$FFFF
preset_14ice_crateria_parlor_revisit:
dw #preset_14ice_crateria_climb_up ; Crateria: Climb Up
dw $078D, $8B7A ; DDB
dw $079B, $96BA ; MDB
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $C000 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $0AF6, $01A0 ; Samus X
dw $0AFA, $005B ; Samus Y
dw #$FFFF
preset_14ice_crateria_flyway:
dw #preset_14ice_crateria_parlor_revisit ; Crateria: Parlor Revisit
dw $078D, $8B3E ; DDB
dw $079B, $92FD ; MDB
dw $090F, $C000 ; Screen subpixel X position
dw $0911, $0300 ; Screen X position in pixels
dw $0913, $2BFF ; Screen subpixel Y position
dw $0915, $01E6 ; Screen Y position in pixels
dw $0917, $0240 ; Layer 2 X position
dw $0919, $016C ; Layer 2 Y position
dw $09D2, $0001 ; Currently selected item
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $0369 ; Samus X
dw $0AFA, $026B ; Samus Y
dw #$FFFF
preset_14ice_crateria_bomb_torizo:
dw #preset_14ice_crateria_flyway ; Crateria: Flyway
dw $078D, $8982 ; DDB
dw $079B, $9879 ; MDB
dw $090F, $4000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $D000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0180 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C6, $0000 ; Missiles
dw $09D2, $0000 ; Currently selected item
dw $0AF6, $02BE ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D8B2, $2400 ; Doors
dw #$FFFF
preset_14ice_crateria_alcatraz:
dw #preset_14ice_crateria_bomb_torizo ; Crateria: Bomb Torizo
dw $078D, $8BAA ; DDB
dw $090F, $2001 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $09A2, $1004 ; Equipped Items
dw $09A4, $1004 ; Collected Items
dw $09C6, $0005 ; Missiles
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0040 ; Samus X
dw $D828, $0004 ; Bosses
dw $D870, $0080 ; Items
dw $D8B2, $2C00 ; Doors
dw #$FFFF
preset_14ice_crateria_terminator:
dw #preset_14ice_crateria_alcatraz ; Crateria: Alcatraz
dw $078D, $8BB6 ; DDB
dw $079B, $92FD ; MDB
dw $090F, $6000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $5800 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $0A1C, $0041 ; Samus position/state
dw $0A1E, $0404 ; More position/state
dw $0AF6, $0115 ; Samus X
dw $0AFA, $0099 ; Samus Y
dw #$FFFF
preset_14ice_crateria_green_pirate_shaft:
dw #preset_14ice_crateria_terminator ; Crateria: Terminator
dw $078D, $895E ; DDB
dw $079B, $990D ; MDB
dw $090F, $9F00 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $01FC ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $017D ; Layer 2 Y position
dw $09C2, $00C7 ; Health
dw $09C4, $00C7 ; Max health
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0063 ; Samus X
dw $0AFA, $029B ; Samus Y
dw $D870, $0180 ; Items
dw #$FFFF
preset_14ice_brinstar_green_brinstar_elevator:
dw #preset_14ice_crateria_green_pirate_shaft ; Crateria: Green Pirate Shaft
dw $078D, $8C22 ; DDB
dw $079B, $9938 ; MDB
dw $07F5, $0003 ; Music Track
dw $090F, $4000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $A800 ; Screen subpixel Y position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $00C7 ; Health
dw $09C4, $00C7 ; Max health
dw $09C6, $0002 ; Missiles
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0082 ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D870, $0180 ; Items
dw #$FFFF
preset_14ice_brinstar_big_pink:
dw #preset_14ice_brinstar_green_brinstar_elevator ; Brinstar: Green Brinstar Elevator
dw $078D, $8CE2 ; DDB
dw $079B, $9CB3 ; MDB
dw $07F3, $000F ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $6000 ; Screen subpixel X position
dw $0911, $0600 ; Screen X position in pixels
dw $0913, $C000 ; Screen subpixel Y position
dw $0917, $0480 ; Layer 2 X position
dw $09C6, $0000 ; Missiles
dw $09CA, $0004 ; Supers
dw $09CC, $0005 ; Max supers
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $06AD ; Samus X
dw $D872, $0401 ; Items
dw $D8B4, $0006 ; Doors
dw #$FFFF
preset_14ice_brinstar_red_tower:
dw #preset_14ice_brinstar_big_pink ; Brinstar: Big Pink
dw $078D, $8E92 ; DDB
dw $079B, $9FBA ; MDB
dw $090F, $3000 ; Screen subpixel X position
dw $0911, $0500 ; Screen X position in pixels
dw $0913, $E800 ; Screen subpixel Y position
dw $0917, $03C0 ; Layer 2 X position
dw $09A6, $1000 ; Beams
dw $09A8, $1000 ; Beams
dw $0AF6, $05C1 ; Samus X
dw $D872, $0481 ; Items
dw $D8B4, $0206 ; Doors
dw $D8B6, $0008 ; Doors
dw #$FFFF
preset_14ice_brinstar_hellway:
dw #preset_14ice_brinstar_red_tower ; Brinstar: Red Tower
dw $078D, $8F0A ; DDB
dw $079B, $A253 ; MDB
dw $07F3, $0012 ; Music Bank
dw $090F, $5FFF ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $A400 ; Screen subpixel Y position
dw $0915, $000B ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0008 ; Layer 2 Y position
dw $0AF6, $0098 ; Samus X
dw #$FFFF
preset_14ice_brinstar_caterpillar_room:
dw #preset_14ice_brinstar_hellway ; Brinstar: Hellway
dw $078D, $901E ; DDB
dw $079B, $A2F7 ; MDB
dw $090F, $D000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $4400 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0180 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $00B7 ; Health
dw $09C6, $0002 ; Missiles
dw $0AF6, $0298 ; Samus X
dw #$FFFF
preset_14ice_brinstar_leaving_power_bombs:
dw #preset_14ice_brinstar_caterpillar_room ; Brinstar: Caterpillar Room
dw $078D, $9096 ; DDB
dw $079B, $A3AE ; MDB
dw $07F5, $0003 ; Music Track
dw $090F, $0001 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $0C00 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $09C2, $00AD ; Health
dw $09CA, $0003 ; Supers
dw $09CE, $0005 ; Pbs
dw $09D2, $0003 ; Currently selected item
dw $09D0, $0005 ; Max pbs
dw $0AF6, $0157 ; Samus X
dw $0AFA, $00AB ; Samus Y
dw $D874, $0104 ; Items
dw $D8B6, $2008 ; Doors
dw #$FFFF
preset_14ice_brinstar_kihunter_room:
dw #preset_14ice_brinstar_leaving_power_bombs ; Brinstar: Leaving Power Bombs
dw $078D, $90BA ; DDB
dw $079B, $962A ; MDB
dw $090F, $C000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $5000 ; Screen subpixel Y position
dw $0917, $0000 ; Layer 2 X position
dw $09C2, $009E ; Health
dw $09CA, $0005 ; Supers
dw $09CE, $0003 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $008A ; Samus X
dw $0AFA, $005B ; Samus Y
dw $D8B2, $2C01 ; Doors
dw $D8B6, $3008 ; Doors
dw #$FFFF
preset_14ice_brinstar_moat:
dw #preset_14ice_brinstar_kihunter_room ; Brinstar: Kihunter Room
dw $078D, $8AF6 ; DDB
dw $079B, $948C ; MDB
dw $07F5, $0005 ; Music Track
dw $090F, $5C00 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $4800 ; Screen subpixel Y position
dw $0917, $0180 ; Layer 2 X position
dw $09CE, $0001 ; Pbs
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $02DB ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D8B0, $6000 ; Doors
dw #$FFFF
preset_14ice_brinstar_ocean:
dw #preset_14ice_brinstar_moat ; Brinstar: Moat
dw $078D, $8A36 ; DDB
dw $079B, $95FF ; MDB
dw $090F, $2000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $09C6, $0007 ; Missiles
dw $09C8, $000A ; Max missiles
dw $09D2, $0000 ; Currently selected item
dw $0AF6, $01A1 ; Samus X
dw $D870, $0190 ; Items
dw #$FFFF
preset_14ice_wrecked_ship_wrecked_ship_shaft:
dw #preset_14ice_brinstar_ocean ; Brinstar: Ocean
dw $078D, $89D6 ; DDB
dw $079B, $CA08 ; MDB
dw $07F3, $0030 ; Music Bank
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $02D8 ; Screen X position in pixels
dw $0917, $0222 ; Layer 2 X position
dw $09CA, $0004 ; Supers
dw $0AF6, $0338 ; Samus X
dw $D8B0, $7000 ; Doors
dw #$FFFF
preset_14ice_wrecked_ship_phantoon:
dw #preset_14ice_wrecked_ship_wrecked_ship_shaft ; Wrecked Ship: Wrecked Ship Shaft
dw $078D, $A21C ; DDB
dw $079B, $CC6F ; MDB
dw $090F, $F000 ; Screen subpixel X position
dw $0911, $0400 ; Screen X position in pixels
dw $0913, $7400 ; Screen subpixel Y position
dw $0917, $0300 ; Layer 2 X position
dw $09CA, $0002 ; Supers
dw $0AF6, $04CF ; Samus X
dw $D8C0, $0030 ; Doors
dw #$FFFF
preset_14ice_wrecked_ship_wrecked_ship_supers:
dw #preset_14ice_wrecked_ship_phantoon ; Wrecked Ship: Phantoon
dw $078D, $A2C4 ; DDB
dw $07F5, $0006 ; Music Track
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $0229 ; Screen X position in pixels
dw $0913, $AC00 ; Screen subpixel Y position
dw $0917, $019E ; Layer 2 X position
dw $09C2, $00C7 ; Health
dw $09C6, $000A ; Missiles
dw $09CA, $0005 ; Supers
dw $09CE, $0002 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $02C9 ; Samus X
dw $0AFA, $006B ; Samus Y
dw $D82A, $0100 ; Bosses
dw $D8C0, $0070 ; Doors
dw #$FFFF
preset_14ice_wrecked_ship_shaft_revisit:
dw #preset_14ice_wrecked_ship_wrecked_ship_supers ; Wrecked Ship: Wrecked Ship Supers
dw $078D, $A210 ; DDB
dw $079B, $CDA8 ; MDB
dw $090F, $7000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $4800 ; Screen subpixel Y position
dw $0917, $0000 ; Layer 2 X position
dw $09CA, $000A ; Supers
dw $09CC, $000A ; Max supers
dw $09CE, $0002 ; Pbs
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $00C4 ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D880, $0020 ; Items
dw $D8C0, $0074 ; Doors
dw #$FFFF
preset_14ice_wrecked_ship_attic:
dw #preset_14ice_wrecked_ship_shaft_revisit ; Wrecked Ship: Shaft Revisit
dw $078D, $A2E8 ; DDB
dw $079B, $CAF6 ; MDB
dw $090F, $E000 ; Screen subpixel X position
dw $0911, $0400 ; Screen X position in pixels
dw $0913, $B000 ; Screen subpixel Y position
dw $0917, $0300 ; Layer 2 X position
dw $0AF6, $044D ; Samus X
dw $0AFA, $006B ; Samus Y
dw #$FFFF
preset_14ice_wrecked_ship_bowling_alley_path:
dw #preset_14ice_wrecked_ship_attic ; Wrecked Ship: Attic
dw $078D, $A1E0 ; DDB
dw $079B, $93FE ; MDB
dw $07F3, $000C ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $B000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $1800 ; Screen subpixel Y position
dw $0915, $0202 ; Screen Y position in pixels
dw $09C6, $0003 ; Missiles
dw $0917, $0100 ; Layer 2 X position
dw $09CA, $0009 ; Supers
dw $09CE, $0001 ; Pbs
dw $0AF6, $02C6 ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D8C0, $0174 ; Doors
dw #$FFFF
preset_14ice_wrecked_ship_bowling_alley:
dw #preset_14ice_wrecked_ship_bowling_alley_path ; Wrecked Ship: Bowling Alley Path
dw $078D, $8A1E ; DDB
dw $079B, $968F ; MDB
dw $090F, $3800 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $BC00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $09C2, $00BD ; Health
dw $0AF6, $002E ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_wrecked_ship_leaving_gravity:
dw #preset_14ice_wrecked_ship_bowling_alley ; Wrecked Ship: Bowling Alley
dw $078D, $A1A4 ; DDB
dw $079B, $CE40 ; MDB
dw $07F3, $0030 ; Music Bank
dw $07F5, $0003 ; Music Track
dw $090F, $3000 ; Screen subpixel X position
dw $0913, $5800 ; Screen subpixel Y position
dw $0917, $0001 ; Layer 2 X position
dw $09A2, $1024 ; Equipped Items
dw $09A4, $1024 ; Collected Items
dw $09C2, $0045 ; Health
dw $0A1C, $009B ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0078 ; Samus X
dw $0AFA, $0088 ; Samus Y
dw $D880, $00A0 ; Items
dw #$FFFF
preset_14ice_brinstar_revisit_red_tower_elevator:
dw #preset_14ice_wrecked_ship_leaving_gravity ; Wrecked Ship: Leaving Gravity
dw $078D, $8B02 ; DDB
dw $079B, $A322 ; MDB
dw $07F3, $0012 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0238 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0238 ; Layer 2 Y position
dw $09C2, $0043 ; Health
dw $09C6, $0000 ; Missiles
dw $09CE, $0002 ; Pbs
dw $0AF6, $0080 ; Samus X
dw $0AFA, $02A8 ; Samus Y
dw #$FFFF
preset_14ice_brinstar_revisit_breaking_tube:
dw #preset_14ice_brinstar_revisit_red_tower_elevator ; Brinstar Revisit: Red Tower Elevator
dw $078D, $911A ; DDB
dw $079B, $CF54 ; MDB
dw $090F, $C000 ; Screen subpixel X position
dw $0913, $5C00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0052 ; Health
dw $09C6, $0008 ; Missiles
dw $09CA, $000A ; Supers
dw $09D2, $0003 ; Currently selected item
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $002C ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_brinstar_revisit_entering_kraids_lair:
dw #preset_14ice_brinstar_revisit_breaking_tube ; Brinstar Revisit: Breaking Tube
dw $078D, $A348 ; DDB
dw $079B, $CF80 ; MDB
dw $090F, $5000 ; Screen subpixel X position
dw $0913, $1801 ; Screen subpixel Y position
dw $0915, $0100 ; Screen Y position in pixels
dw $0919, $0100 ; Layer 2 Y position
dw $09CE, $0001 ; Pbs
dw $09D2, $0000 ; Currently selected item
dw $0AF6, $002E ; Samus X
dw $0AFA, $018B ; Samus Y
dw $D820, $0801 ; Events
dw #$FFFF
preset_14ice_brinstar_revisit_baby_kraid_entering:
dw #preset_14ice_brinstar_revisit_entering_kraids_lair ; Brinstar Revisit: Entering Kraids Lair
dw $078D, $9156 ; DDB
dw $079B, $A4DA ; MDB
dw $090F, $3000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $DC00 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $09CA, $0007 ; Supers
dw $0AF6, $0171 ; Samus X
dw #$FFFF
preset_14ice_brinstar_revisit_kraid:
dw #preset_14ice_brinstar_revisit_baby_kraid_entering ; Brinstar Revisit: Baby Kraid (Entering)
dw $078D, $919E ; DDB
dw $079B, $A56B ; MDB
dw $07F3, $0027 ; Music Bank
dw $07F5, $0006 ; Music Track
dw $090F, $5000 ; Screen subpixel X position
dw $0913, $3800 ; Screen subpixel Y position
dw $0917, $0100 ; Layer 2 X position
dw $09C2, $004D ; Health
dw $09C6, $0005 ; Missiles
dw $09CA, $0009 ; Supers
dw $0AF6, $01C8 ; Samus X
dw $D8B8, $0024 ; Doors
dw #$FFFF
preset_14ice_brinstar_revisit_baby_kraid_exiting:
dw #preset_14ice_brinstar_revisit_kraid ; Brinstar Revisit: Kraid
dw $078D, $91CE ; DDB
dw $07F5, $0003 ; Music Track
dw $090F, $8000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $A800 ; Screen subpixel Y position
dw $0917, $0000 ; Layer 2 X position
dw $09A2, $1025 ; Equipped Items
dw $09A4, $1025 ; Collected Items
dw $09C2, $008A ; Health
dw $09C6, $000A ; Missiles
dw $09CA, $0007 ; Supers
dw $09CE, $0004 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $005F ; Samus X
dw $D828, $0104 ; Bosses
dw $D876, $0001 ; Items
dw $D8B8, $00E4 ; Doors
dw #$FFFF
preset_14ice_brinstar_revisit_kraid_etank:
dw #preset_14ice_brinstar_revisit_baby_kraid_exiting ; Brinstar Revisit: Baby Kraid (Exiting)
dw $078D, $916E ; DDB
dw $079B, $A471 ; MDB
dw $07F3, $0012 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $4000 ; Screen subpixel X position
dw $0913, $CC00 ; Screen subpixel Y position
dw $09C2, $0085 ; Health
dw $09CA, $000A ; Supers
dw $09CE, $0002 ; Pbs
dw $0AF6, $0056 ; Samus X
dw $D8B8, $00ED ; Doors
dw #$FFFF
preset_14ice_upper_norfair_ice_beam:
dw #preset_14ice_brinstar_revisit_kraid_etank ; Brinstar Revisit: Big Pink
dw $078D, $9246 ; DDB
dw $079B, $A7DE ; MDB
dw $07F3, $0015 ; Music Bank
dw $090F, $8000 ; Screen subpixel X position
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0238 ; Screen Y position in pixels
dw $0919, $01AA ; Layer 2 Y position
dw $09C2, $012B ; Health
dw $09C4, $012B ; Max health
dw $09CA, $0009 ; Supers
dw $09CE, $0005 ; Pbs
dw $0A1C, $009B ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0080 ; Samus X
dw $0AFA, $02A8 ; Samus Y
dw $D874, $0904 ; Items
dw $D8B8, $00EF ; Doors
dw #$FFFF
preset_14ice_upper_norfair_ice_escape:
dw #preset_14ice_upper_norfair_ice_beam ; Upper Norfair: Ice Beam
dw $078D, $935A ; DDB
dw $079B, $A8B9 ; MDB
dw $090F, $6001 ; Screen subpixel X position
dw $0913, $9000 ; Screen subpixel Y position
dw $0915, $0200 ; Screen Y position in pixels
dw $0919, $0180 ; Layer 2 Y position
dw $09A6, $1002 ; Beams
dw $09A8, $1002 ; Beams
dw $09C2, $0126 ; Health
dw $09CA, $0008 ; Supers
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $00C5 ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D876, $0005 ; Items
dw $D8B8, $08EF ; Doors
dw #$FFFF
preset_14ice_upper_norfair_precathedral:
dw #preset_14ice_upper_norfair_ice_escape ; Upper Norfair: Ice Escape
dw $078D, $932A ; DDB
dw $079B, $A7DE ; MDB
dw $090F, $CFFF ; Screen subpixel X position
dw $0913, $C400 ; Screen subpixel Y position
dw $0915, $0317 ; Screen Y position in pixels
dw $0919, $0251 ; Layer 2 Y position
dw $0AF6, $00A1 ; Samus X
dw $0AFA, $038B ; Samus Y
dw #$FFFF
preset_14ice_upper_norfair_bubble_mountain:
dw #preset_14ice_upper_norfair_precathedral ; Upper Norfair: Pre-Cathedral
dw $078D, $92B2 ; DDB
dw $079B, $A788 ; MDB
dw $090F, $E000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $2000 ; Screen subpixel Y position
dw $0915, $0100 ; Screen Y position in pixels
dw $0917, $0200 ; Layer 2 X position
dw $0919, $0100 ; Layer 2 Y position
dw $09C6, $0009 ; Missiles
dw $09CA, $0006 ; Supers
dw $0AF6, $02B1 ; Samus X
dw $0AFA, $018B ; Samus Y
dw $D8B8, $0EEF ; Doors
dw #$FFFF
preset_14ice_upper_norfair_magdollite_room:
dw #preset_14ice_upper_norfair_bubble_mountain ; Upper Norfair: Bubble Mountain
dw $078D, $9576 ; DDB
dw $079B, $AEDF ; MDB
dw $090F, $9000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $01F4 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0177 ; Layer 2 Y position
dw $09C2, $012B ; Health
dw $09CE, $0004 ; Pbs
dw $0AF6, $005B ; Samus X
dw $0AFA, $028B ; Samus Y
dw #$FFFF
preset_14ice_upper_norfair_kronic_boost:
dw #preset_14ice_upper_norfair_magdollite_room ; Upper Norfair: Magdollite Room
dw $078D, $96BA ; DDB
dw $079B, $AEB4 ; MDB
dw $090F, $F000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $2000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0180 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C6, $0008 ; Missiles
dw $09CA, $0007 ; Supers
dw $0AF6, $02B3 ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_ln_main_hall:
dw #preset_14ice_upper_norfair_kronic_boost ; Upper Norfair: Kronic Boost
dw $078D, $96F6 ; DDB
dw $079B, $B236 ; MDB
dw $07F3, $0018 ; Music Bank
dw $090F, $A000 ; Screen subpixel X position
dw $0911, $0400 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0200 ; Screen Y position in pixels
dw $0917, $0300 ; Layer 2 X position
dw $0919, $0301 ; Layer 2 Y position
dw $09C2, $00F7 ; Health
dw $09C6, $0007 ; Missiles
dw $09D2, $0003 ; Currently selected item
dw $0A1C, $009B ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0480 ; Samus X
dw $0AFA, $0288 ; Samus Y
dw $D8BA, $0100 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_pillars:
dw #preset_14ice_lower_norfair_ln_main_hall ; Lower Norfair: LN Main Hall
dw $078D, $985E ; DDB
dw $079B, $B3A5 ; MDB
dw $090F, $4000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $4000 ; Screen subpixel Y position
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0180 ; Layer 2 Y position
dw $09CE, $0005 ; Pbs
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $008B ; Samus X
dw $0AFA, $029B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_worst_room:
dw #preset_14ice_lower_norfair_pillars ; Lower Norfair: Pillars
dw $078D, $9912 ; DDB
dw $079B, $B457 ; MDB
dw $090F, $2000 ; Screen subpixel X position
dw $0911, $0300 ; Screen X position in pixels
dw $0913, $F000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0240 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $00E3 ; Health
dw $09CE, $0003 ; Pbs
dw $0AF6, $03BF ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_amphitheatre:
dw #preset_14ice_lower_norfair_worst_room ; Lower Norfair: Worst Room
dw $078D, $994E ; DDB
dw $079B, $B4AD ; MDB
dw $090F, $7000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $011C ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $00D5 ; Layer 2 Y position
dw $09C6, $0006 ; Missiles
dw $09CA, $0006 ; Supers
dw $09CE, $0002 ; Pbs
dw $09D2, $0000 ; Currently selected item
dw $0AF6, $00B0 ; Samus X
dw $0AFA, $018B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_kihunter_stairs:
dw #preset_14ice_lower_norfair_amphitheatre ; Lower Norfair: Amphitheatre
dw $078D, $997E ; DDB
dw $079B, $B4E5 ; MDB
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $02EC ; Screen X position in pixels
dw $0915, $0033 ; Screen Y position in pixels
dw $0917, $0231 ; Layer 2 X position
dw $0919, $0026 ; Layer 2 Y position
dw $0AF6, $034C ; Samus X
dw $0AFA, $00A3 ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_wasteland:
dw #preset_14ice_lower_norfair_kihunter_stairs ; Lower Norfair: Kihunter Stairs
dw $078D, $99A2 ; DDB
dw $079B, $B585 ; MDB
dw $090F, $9E00 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $5800 ; Screen subpixel Y position
dw $0915, $0418 ; Screen Y position in pixels
dw $0917, $0180 ; Layer 2 X position
dw $0919, $0312 ; Layer 2 Y position
dw $09CE, $0001 ; Pbs
dw $0A1C, $0027 ; Samus position/state
dw $0A1E, $0508 ; More position/state
dw $0AF6, $0244 ; Samus X
dw $0AFA, $0480 ; Samus Y
dw $D8BA, $4100 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_metal_pirates:
dw #preset_14ice_lower_norfair_wasteland ; Lower Norfair: Wasteland
dw $078D, $99EA ; DDB
dw $079B, $B5D5 ; MDB
dw $090F, $3001 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $021B ; Screen Y position in pixels
dw $0917, $00C0 ; Layer 2 X position
dw $0919, $0194 ; Layer 2 Y position
dw $09C2, $00CD ; Health
dw $09CA, $0005 ; Supers
dw $09CE, $0000 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0158 ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D8BA, $C100 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_ridley:
dw #preset_14ice_lower_norfair_metal_pirates ; Lower Norfair: Metal Pirates
dw $078D, $995A ; DDB
dw $079B, $B37A ; MDB
dw $090F, $2000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $8C00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $012B ; Health
dw $09C6, $000A ; Missiles
dw $09CA, $000A ; Supers
dw $09CE, $0003 ; Pbs
dw $0AF6, $0039 ; Samus X
dw $0AFA, $009B ; Samus Y
dw $D8BA, $D100 ; Doors
dw $D8BC, $0001 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_leaving_ridley:
dw #preset_14ice_lower_norfair_ridley ; Lower Norfair: Ridley
dw $078D, $9A62 ; DDB
dw $079B, $B32E ; MDB
dw $07F3, $0024 ; Music Bank
dw $07F5, $0003 ; Music Track
dw $090F, $1000 ; Screen subpixel X position
dw $0913, $A800 ; Screen subpixel Y position
dw $0915, $011F ; Screen Y position in pixels
dw $0917, $0001 ; Layer 2 X position
dw $0919, $00D7 ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $09C4, $018F ; Max health
dw $09C6, $0008 ; Missiles
dw $09CA, $0002 ; Supers
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $005B ; Samus X
dw $0AFA, $019B ; Samus Y
dw $D82A, $0101 ; Bosses
dw $D878, $4000 ; Items
dw $D8BA, $D900 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_wasteland_revisit:
dw #preset_14ice_lower_norfair_leaving_ridley ; Lower Norfair: Leaving Ridley
dw $078D, $9966 ; DDB
dw $079B, $B62B ; MDB
dw $07F3, $0018 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $0200 ; Screen X position in pixels
dw $0913, $A400 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0180 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0152 ; Health
dw $09CA, $0004 ; Supers
dw $09CE, $0005 ; Pbs
dw $0AF6, $02CB ; Samus X
dw $0AFA, $00AB ; Samus Y
dw $D8BA, $DD00 ; Doors
dw #$FFFF
preset_14ice_lower_norfair_kihunter_stairs_revisit:
dw #preset_14ice_lower_norfair_wasteland_revisit ; Lower Norfair: Wasteland Revisit
dw $078D, $9A3E ; DDB
dw $079B, $B5D5 ; MDB
dw $090F, $1000 ; Screen subpixel X position
dw $0911, $0500 ; Screen X position in pixels
dw $0913, $4800 ; Screen subpixel Y position
dw $0917, $03C0 ; Layer 2 X position
dw $09C2, $0123 ; Health
dw $09CE, $0004 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0587 ; Samus X
dw $0AFA, $005B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_fireflea_room:
dw #preset_14ice_lower_norfair_kihunter_stairs_revisit ; Lower Norfair: Kihunter Stairs Revisit
dw $078D, $9A26 ; DDB
dw $079B, $B585 ; MDB
dw $090F, $0500 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $C400 ; Screen subpixel Y position
dw $0915, $0011 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $000C ; Layer 2 Y position
dw $09CE, $0003 ; Pbs
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $00B9 ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_lower_norfair_three_musketeers:
dw #preset_14ice_lower_norfair_fireflea_room ; Lower Norfair: Fireflea Room
dw $078D, $9A92 ; DDB
dw $079B, $B510 ; MDB
dw $090F, $8000 ; Screen subpixel X position
dw $0913, $2800 ; Screen subpixel Y position
dw $0915, $0010 ; Screen Y position in pixels
dw $09C6, $0006 ; Missiles
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0066 ; Samus X
dw #$FFFF
preset_14ice_lower_norfair_bubble_mountain_revisit:
dw #preset_14ice_lower_norfair_three_musketeers ; Lower Norfair: Three Musketeers
dw $078D, $9A4A ; DDB
dw $079B, $AD5E ; MDB
dw $07F3, $0015 ; Music Bank
dw $090F, $B000 ; Screen subpixel X position
dw $0913, $DC00 ; Screen subpixel Y position
dw $0915, $001C ; Screen Y position in pixels
dw $0919, $0015 ; Layer 2 Y position
dw $09C2, $00B7 ; Health
dw $09C6, $0008 ; Missiles
dw $09CE, $0002 ; Pbs
dw $0AF6, $0085 ; Samus X
dw #$FFFF
preset_14ice_maridia_entering_maridia:
dw #preset_14ice_lower_norfair_bubble_mountain_revisit ; Lower Norfair: Bubble Mountain Revisit
dw $078D, $92EE ; DDB
dw $079B, $A6A1 ; MDB
dw $07F3, $0012 ; Music Bank
dw $07F5, $0003 ; Music Track
dw $090F, $A000 ; Screen subpixel X position
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $09C6, $000A ; Missiles
dw $09CA, $000A ; Supers
dw $09CE, $0005 ; Pbs
dw $0A1C, $009B ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0080 ; Samus X
dw $0AFA, $0086 ; Samus Y
dw $D8BA, $DD10 ; Doors
dw #$FFFF
preset_14ice_maridia_mt_everest:
dw #preset_14ice_maridia_entering_maridia ; Maridia: Entering Maridia
dw $078D, $A3B4 ; DDB
dw $079B, $D017 ; MDB
dw $07F3, $001B ; Music Bank
dw $07F5, $0006 ; Music Track
dw $090F, $6000 ; Screen subpixel X position
dw $0911, $0065 ; Screen X position in pixels
dw $0915, $0006 ; Screen Y position in pixels
dw $0917, $004B ; Layer 2 X position
dw $0919, $0004 ; Layer 2 Y position
dw $0A1C, $0028 ; Samus position/state
dw $0A1E, $0504 ; More position/state
dw $0AF6, $00C8 ; Samus X
dw $0AFA, $0070 ; Samus Y
dw #$FFFF
preset_14ice_maridia_ice_clip:
dw #preset_14ice_maridia_mt_everest ; Maridia: Mt Everest
dw $078D, $A4C8 ; DDB
dw $079B, $D5A7 ; MDB
dw $07F5, $0005 ; Music Track
dw $090F, $E000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $3C00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09CA, $0009 ; Supers
dw $09CE, $0004 ; Pbs
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $008E ; Samus X
dw $0AFA, $006B ; Samus Y
dw $D8C0, $8174 ; Doors
dw #$FFFF
preset_14ice_maridia_botwoon:
dw #preset_14ice_maridia_ice_clip ; Maridia: Ice Clip
dw $078D, $A72C ; DDB
dw $079B, $D617 ; MDB
dw $090F, $B000 ; Screen subpixel X position
dw $0911, $0300 ; Screen X position in pixels
dw $0913, $3000 ; Screen subpixel Y position
dw $0915, $001F ; Screen Y position in pixels
dw $0917, $0240 ; Layer 2 X position
dw $0919, $001F ; Layer 2 Y position
dw $09C2, $018D ; Health
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $03B3 ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_maridia_botwoon_etank_room:
dw #preset_14ice_maridia_botwoon ; Maridia: Botwoon
dw $078D, $A774 ; DDB
dw $079B, $D95E ; MDB
dw $07F3, $002A ; Music Bank
dw $07F5, $0003 ; Music Track
dw $090F, $3000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $CC00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0100 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $09CA, $0004 ; Supers
dw $0AF6, $01C7 ; Samus X
dw $D82C, $0002 ; Bosses
dw #$FFFF
preset_14ice_maridia_colosseum:
dw #preset_14ice_maridia_botwoon_etank_room ; Maridia: Botwoon E-tank Room
dw $078D, $A870 ; DDB
dw $079B, $D913 ; MDB
dw $07F3, $001B ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $4880 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $001C ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $001C ; Layer 2 Y position
dw $09CA, $000A ; Supers
dw $0AF6, $00C6 ; Samus X
dw #$FFFF
preset_14ice_maridia_draygon:
dw #preset_14ice_maridia_colosseum ; Maridia: Colosseum
dw $078D, $A7F8 ; DDB
dw $079B, $D78F ; MDB
dw $090F, $C000 ; Screen subpixel X position
dw $0913, $6800 ; Screen subpixel Y position
dw $0915, $0200 ; Screen Y position in pixels
dw $0919, $0180 ; Layer 2 Y position
dw $09C2, $0180 ; Health
dw $09CA, $0008 ; Supers
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $003C ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D8C2, $0C00 ; Doors
dw #$FFFF
preset_14ice_maridia_colosseum_revisit:
dw #preset_14ice_maridia_draygon ; Maridia: Draygon
dw $078D, $A96C ; DDB
dw $090F, $E001 ; Screen subpixel X position
dw $0913, $3800 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0154 ; Health
dw $09CA, $0002 ; Supers
dw $09CE, $0005 ; Pbs
dw $0AF6, $003D ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D82C, $0003 ; Bosses
dw $D8C2, $4C00 ; Doors
dw #$FFFF
preset_14ice_maridia_reverse_botwoon:
dw #preset_14ice_maridia_colosseum_revisit ; Maridia: Colosseum Revisit
dw $078D, $A7E0 ; DDB
dw $079B, $D913 ; MDB
dw $090F, $C000 ; Screen subpixel X position
dw $0913, $1800 ; Screen subpixel Y position
dw $0915, $0200 ; Screen Y position in pixels
dw $0919, $0200 ; Layer 2 Y position
dw $09C2, $0145 ; Health
dw $09C6, $0009 ; Missiles
dw $09CA, $0003 ; Supers
dw $0AF6, $009A ; Samus X
dw $0AFA, $028B ; Samus Y
dw #$FFFF
preset_14ice_maridia_aqueduct_revisit:
dw #preset_14ice_maridia_reverse_botwoon ; Maridia: Reverse Botwoon
dw $078D, $A8B8 ; DDB
dw $079B, $D6FD ; MDB
dw $0913, $4800 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $0AF6, $0041 ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_maridia_everest_revisit:
dw #preset_14ice_maridia_aqueduct_revisit ; Maridia: Aqueduct Revisit
dw $078D, $A708 ; DDB
dw $079B, $D1A3 ; MDB
dw $07F5, $0006 ; Music Track
dw $090F, $4000 ; Screen subpixel X position
dw $0913, $7000 ; Screen subpixel Y position
dw $0915, $01F5 ; Screen Y position in pixels
dw $0919, $0177 ; Layer 2 Y position
dw $09CE, $0004 ; Pbs
dw $0AF6, $006F ; Samus X
dw $0AFA, $028B ; Samus Y
dw #$FFFF
preset_14ice_maridia_red_tower_green_gate:
dw #preset_14ice_maridia_everest_revisit ; Maridia: Everest Revisit
dw $078D, $A42C ; DDB
dw $079B, $D104 ; MDB
dw $090F, $6001 ; Screen subpixel X position
dw $0913, $5800 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0159 ; Health
dw $09CA, $0005 ; Supers
dw $09CE, $0003 ; Pbs
dw $0AF6, $006B ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_tourian_kihunter_room_revisit:
dw #preset_14ice_maridia_red_tower_green_gate ; Maridia: Red Tower Green Gate
dw $078D, $90BA ; DDB
dw $079B, $962A ; MDB
dw $07F3, $0012 ; Music Bank
dw $07F5, $0003 ; Music Track
dw $090F, $6000 ; Screen subpixel X position
dw $0913, $2000 ; Screen subpixel Y position
dw $09CA, $0004 ; Supers
dw $0AF6, $0085 ; Samus X
dw $0AFA, $005B ; Samus Y
dw #$FFFF
preset_14ice_tourian_terminator_revisit:
dw #preset_14ice_tourian_kihunter_room_revisit ; Tourian: Kihunter Room Revisit
dw $078D, $8916 ; DDB
dw $079B, $92FD ; MDB
dw $07F3, $0009 ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $B800 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $0C00 ; Screen subpixel Y position
dw $0917, $00C0 ; Layer 2 X position
dw $09CE, $0002 ; Pbs
dw $0A1C, $0041 ; Samus position/state
dw $0A1E, $0404 ; More position/state
dw $0AF6, $0115 ; Samus X
dw $0AFA, $0099 ; Samus Y
dw #$FFFF
preset_14ice_tourian_pirate_shaft_revisit:
dw #preset_14ice_tourian_terminator_revisit ; Tourian: Terminator Revisit
dw $078D, $895E ; DDB
dw $079B, $990D ; MDB
dw $090F, $3E00 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $01F6 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0178 ; Layer 2 Y position
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $0055 ; Samus X
dw $0AFA, $0296 ; Samus Y
dw #$FFFF
preset_14ice_tourian_metroids_1:
dw #preset_14ice_tourian_pirate_shaft_revisit ; Tourian: Pirate Shaft Revisit
dw $078D, $9222 ; DDB
dw $079B, $DAAE ; MDB
dw $07F3, $001E ; Music Bank
dw $090F, $8001 ; Screen subpixel X position
dw $0913, $A400 ; Screen subpixel Y position
dw $0915, $0300 ; Screen Y position in pixels
dw $0919, $0240 ; Layer 2 Y position
dw $09C2, $0186 ; Health
dw $09C6, $0006 ; Missiles
dw $09CA, $0003 ; Supers
dw $0AF6, $003D ; Samus X
dw $0AFA, $038B ; Samus Y
dw $D820, $0FC1 ; Events
dw $D8B2, $6C01 ; Doors
dw $D90C, $0100 ; Map Stations
dw #$FFFF
preset_14ice_tourian_metroids_2:
dw #preset_14ice_tourian_metroids_1 ; Tourian: Metroids 1
dw $078D, $A984 ; DDB
dw $079B, $DAE1 ; MDB
dw $090F, $4000 ; Screen subpixel X position
dw $0913, $6400 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0169 ; Health
dw $09C6, $000A ; Missiles
dw $09CA, $0007 ; Supers
dw $0AF6, $0040 ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D822, $0001 ; Events
dw $D8C4, $0001 ; Doors
dw #$FFFF
preset_14ice_tourian_metroids_3:
dw #preset_14ice_tourian_metroids_2 ; Tourian: Metroids 2
dw $078D, $A9B4 ; DDB
dw $079B, $DB31 ; MDB
dw $090F, $3000 ; Screen subpixel X position
dw $0913, $E800 ; Screen subpixel Y position
dw $0915, $0113 ; Screen Y position in pixels
dw $0919, $00CE ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $09CA, $0008 ; Supers
dw $09CE, $0003 ; Pbs
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0AF6, $00C9 ; Samus X
dw $0AFA, $018B ; Samus Y
dw $D822, $0003 ; Events
dw $D8C4, $0003 ; Doors
dw #$FFFF
preset_14ice_tourian_metroids_4:
dw #preset_14ice_tourian_metroids_3 ; Tourian: Metroids 3
dw $078D, $A9CC ; DDB
dw $079B, $DB7D ; MDB
dw $090F, $4000 ; Screen subpixel X position
dw $0911, $0500 ; Screen X position in pixels
dw $0913, $CC00 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $03C0 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0182 ; Health
dw $09CA, $000A ; Supers
dw $09CE, $0004 ; Pbs
dw $0AF6, $05AF ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D822, $0007 ; Events
dw $D8C4, $0007 ; Doors
dw #$FFFF
preset_14ice_tourian_baby:
dw #preset_14ice_tourian_metroids_4 ; Tourian: Metroids 4
dw $078D, $A9E4 ; DDB
dw $079B, $DBCD ; MDB
dw $090F, $8000 ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $4C00 ; Screen subpixel Y position
dw $0915, $011F ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $00D7 ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $0AF6, $0075 ; Samus X
dw $0AFA, $01CB ; Samus Y
dw $D822, $000F ; Events
dw #$FFFF
preset_14ice_tourian_after_baby:
dw #preset_14ice_tourian_baby ; Tourian: Baby
dw $078D, $AA44 ; DDB
dw $079B, $DCFF ; MDB
dw $07F3, $001E ; Music Bank
dw $07F5, $0005 ; Music Track
dw $090F, $3FFF ; Screen subpixel X position
dw $0911, $0000 ; Screen X position in pixels
dw $0913, $0800 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $0000 ; Layer 2 X position
dw $0919, $0006 ; Layer 2 Y position
dw $09C2, $0001 ; Health
dw $0A1C, $0002 ; Samus position/state
dw $0A1E, $0004 ; More position/state
dw $0AF6, $00AC ; Samus X
dw $0AFA, $008B ; Samus Y
dw $D822, $002F ; Events
dw $D8C4, $002F ; Doors
dw #$FFFF
preset_14ice_tourian_zeb_skip:
dw #preset_14ice_tourian_after_baby ; Tourian: After Baby
dw $078D, $AAA4 ; DDB
dw $079B, $DDF3 ; MDB
dw $090F, $7000 ; Screen subpixel X position
dw $0913, $0000 ; Screen subpixel Y position
dw $0915, $021A ; Screen Y position in pixels
dw $0919, $0193 ; Layer 2 Y position
dw $09C2, $018F ; Health
dw $09CA, $0009 ; Supers
dw $0AF6, $0048 ; Samus X
dw $0AFA, $028B ; Samus Y
dw $D8C4, $03AF ; Doors
dw #$FFFF
preset_14ice_tourian_mother_brain_2:
dw #preset_14ice_tourian_zeb_skip ; Tourian: Zeb Skip
dw $078D, $AAC8 ; DDB
dw $079B, $DD58 ; MDB
dw $07F3, $0021 ; Music Bank
dw $07F5, $0000 ; Music Track
dw $090F, $79FF ; Screen subpixel X position
dw $0915, $0000 ; Screen Y position in pixels
dw $0919, $0000 ; Layer 2 Y position
dw $09C2, $0180 ; Health
dw $09C6, $0001 ; Missiles
dw $09CA, $0000 ; Supers
dw $0AF6, $00CF ; Samus X
dw $0AFA, $009B ; Samus Y
dw $D820, $0FC5 ; Events
dw #$FFFF
preset_14ice_tourian_mother_brain_3:
dw #preset_14ice_tourian_mother_brain_2 ; Tourian: Mother Brain 2
dw $09A6, $1009 ; Beams
dw $09C2, $018F ; Health
dw $09C6, $0000 ; Missiles
dw $09CE, $0000 ; Pbs
dw $0A76, $8000 ; Hyper beam
dw $D82C, $0203 ; Bosses
dw #$FFFF
preset_14ice_tourian_zebes_escape:
dw #preset_14ice_tourian_mother_brain_3 ; Tourian: Mother Brain 3
dw $09A6, $1009 ; Beams
dw $0A1C, $009B ; Samus position/state
dw $0A1E, $0000 ; More position/state
dw $0AF6, $0025 ; Samus X
dw $0AFA, $009E ; Samus Y
dw $D820, $4FC5 ; Events
dw #$FFFF
preset_14ice_tourian_escape_room_3:
dw #preset_14ice_tourian_zebes_escape ; Tourian: Zebes Escape
dw $078D, $AAEC ; DDB
dw $079B, $DE7A ; MDB
dw $07F3, $0024 ; Music Bank
dw $07F5, $0007 ; Music Track
dw $090F, $6000 ; Screen subpixel X position
dw $0913, $8000 ; Screen subpixel Y position
dw $0915, $0100 ; Screen Y position in pixels
dw $0919, $00C0 ; Layer 2 Y position
dw $0A1C, $0001 ; Samus position/state
dw $0A1E, $0008 ; More position/state
dw $0A76, $8000 ; Hyper beam
dw $0AF6, $00DF ; Samus X
dw $0AFA, $018B ; Samus Y
dw #$FFFF
preset_14ice_tourian_escape_room_4:
dw #preset_14ice_tourian_escape_room_3 ; Tourian: Escape Room 3
dw $078D, $AB04 ; DDB
dw $079B, $DEA7 ; MDB
dw $090F, $3000 ; Screen subpixel X position
dw $0911, $0500 ; Screen X position in pixels
dw $0913, $4C00 ; Screen subpixel Y position
dw $0915, $001C ; Screen Y position in pixels
dw $0917, $03C0 ; Layer 2 X position
dw $0919, $0015 ; Layer 2 Y position
dw $0AF6, $05D6 ; Samus X
dw $0AFA, $008B ; Samus Y
dw #$FFFF
preset_14ice_tourian_escape_climb:
dw #preset_14ice_tourian_escape_room_4 ; Tourian: Escape Room 4
dw $078D, $AB1C ; DDB
dw $079B, $DEDE ; MDB
dw $090F, $0000 ; Screen subpixel X position
dw $0911, $00F1 ; Screen X position in pixels
dw $0913, $A400 ; Screen subpixel Y position
dw $0915, $00FB ; Screen Y position in pixels
dw $0917, $00B4 ; Layer 2 X position
dw $0919, $00BC ; Layer 2 Y position
dw $09C2, $0171 ; Health
dw $0AF6, $0151 ; Samus X
dw $0AFA, $018B ; Samus Y
dw #$FFFF
preset_14ice_tourian_escape_parlor:
dw #preset_14ice_tourian_escape_climb ; Tourian: Escape Climb
dw $078D, $AB34 ; DDB
dw $079B, $96BA ; MDB
dw $090F, $8000 ; Screen subpixel X position
dw $0911, $0100 ; Screen X position in pixels
dw $0913, $3000 ; Screen subpixel Y position
dw $0915, $0000 ; Screen Y position in pixels
dw $0917, $00C0 ; Layer 2 X position
dw $0919, $0000 ; Layer 2 Y position
dw $0AF6, $0163 ; Samus X
dw $0AFA, $005B ; Samus Y
dw #$FFFF
|
||||
TheStack | bb1753b6f6773dbddf9a9dc92bd555b36979b85f | Assemblycode:Assembly | {"size": 563, "ext": "asm", "max_stars_repo_path": "src/tests/priming.asm", "max_stars_repo_name": "hw-sw-contracts/revizor", "max_stars_repo_stars_event_min_datetime": "2021-05-24T12:45:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T16:53:10.000Z", "max_issues_repo_path": "src/tests/priming.asm", "max_issues_repo_name": "hw-sw-contracts/revizor", "max_issues_repo_issues_event_min_datetime": "2021-11-23T15:37:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-24T12:01:44.000Z", "max_forks_repo_path": "src/tests/priming.asm", "max_forks_repo_name": "hw-sw-contracts/revizor", "max_forks_repo_forks_event_min_datetime": "2021-06-17T09:00:27.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T03:42:01.000Z"} | {"max_stars_count": 29, "max_issues_count": 3, "max_forks_count": 3, "avg_line_length": 12.7954545455, "max_line_length": 30, "alphanum_fraction": 0.7282415631} | .intel_syntax noprefix
MFENCE
NOP
NOP
NOP
NOP
NOP
NOP
ADD R14, 40
JMP .bb0
.bb0:
AND RCX, 0b111111000000
ADD RCX, R14
CMOVZ ECX, dword ptr [RCX]
LAHF
{store} ADC RAX, RAX
AND RDX, 0b111111000000
ADD RDX, R14
SETNZ byte ptr [RDX]
MOVSX EDX, BX
AND RCX, 0b111111000000
ADD RCX, R14
SUB CX, 19187
JNP .bb1
JMP .bb2
.bb1:
MOVZX EDX, CX
DEC AL
{store} ADC RBX, RBX
CMOVBE EAX, EAX
{load} OR DL, DL
SETB BL
{disp32} JS .bb2
JMP .bb3
.bb2:
AND RDX, 0b111111000000
ADD RDX, R14
ADD qword ptr [RDX], 621805592
.bb3:
AND RBX, 0b111111000000
ADD RBX, R14
SUB R14, 40
MFENCE
|
||||
TheStack | 7604670cd90cf2df3ad67af771ebb9206d1af52f | Assemblycode:Assembly | {"size": 38300, "ext": "asm", "max_stars_repo_path": "snake.asm", "max_stars_repo_name": "cepa/snake", "max_stars_repo_stars_event_min_datetime": "2018-05-10T03:52:46.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-10T23:07:40.000Z", "max_issues_repo_path": "snake.asm", "max_issues_repo_name": "cepa/snake", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "snake.asm", "max_forks_repo_name": "cepa/snake", "max_forks_repo_forks_event_min_datetime": "2019-12-23T07:10:35.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-28T06:21:36.000Z"} | {"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 24.5670301475, "max_line_length": 219, "alphanum_fraction": 0.4403916449} |
;====================================================;
;= SNAKE =;
;= =;
;= By Lukasz (Cepa) Cepowski 2004 =;
;= [email protected] =;
;= Visit cepa.io =;
;= =;
;====================================================;
; 2004-07-13
; NASM
; nasm -o snake.com -fbin snake.asm
%define VGA_MEM 0A000H ; video memory bank
%define SCR_MEM 09000H ; last 64kB segment
%define FONT_SEG 0F000H ; ROM-Font segment
%define FONT_OFF 0FA6EH ; ROM-Font offset
%define TRANSPARENT_COLOR 0
%define KEY_ESC 1
%define KEY_UP 72
%define KEY_DOWN 80
%define KEY_LEFT 75
%define KEY_RIGHT 77
%define KEY_A 30
%define KEY_P 25
CPU 186
BITS 16
ORG 100H
JMP main
; keyboard routines
keyboard_int:
STI
PUSH AX
IN AL,60H ; get key from keyboard port
MOV [CS:lastkey],AL
POP AX
PUSH AX
PUSH CX
MOV AX,0
MOV AL,[CS:lastkey]
CMP AL,128 ; check keyboard data (pressed or not)
JNAE check_keys_1
SUB AL,128
MOV CL,0
JMP check_keys_2
check_keys_1:
MOV CL,1
check_keys_2:
MOV BX,key
ADD BX,AX
MOV [CS:BX],CL
POP CX
POP AX
PUSH AX
MOV AL,20H ; send end of irq
OUT 20H,AL
POP AX
CLI
IRET
install_keyboard:
MOV AX,3509H ; get old keyboard int proc
INT 21H
MOV [CS:old_keyboard_int],BX
MOV [CS:old_keyboard_int + 2],ES
MOV AX,2509H ; set new keyboard int proc
MOV DX,keyboard_int
PUSH DS
PUSH CS
POP DS
INT 21H
POP DS
RET
remove_keyboard:
MOV AX,2509H ; restore old keyboard proc
LDS DX,[CS:old_keyboard_int]
INT 21H
RET
wait_for_any_key:
MOV BYTE [lastkey],0
MOV DL,[lastkey]
wait_for_any_key_1:
CMP DL,[lastkey]
JE wait_for_any_key
RET
;-------
; timer routines
timer_int:
STI
MOV BYTE [CS:can_update],1 ; update game
INC BYTE [CS:timer_counter]
CMP BYTE [CS:timer_counter],18
JE timer_int_reset_delay
JMP timer_int_end
timer_int_reset_delay:
MOV BYTE [CS:timer_delay],0
MOV BYTE [CS:timer_counter],0
timer_int_end:
CLI
IRET
install_timer:
MOV AX,351CH ; get old timer int proc
INT 21H
MOV [CS:old_timer_int],BX
MOV [CS:old_timer_int + 2],ES
MOV AX,251CH ; set new timer int proc
MOV DX,timer_int
PUSH DS
PUSH CS
POP DS
INT 21H
POP DS
RET
remove_timer:
MOV AX,251CH ; restore old timer proc
LDS DX,[CS:old_timer_int]
INT 21H
RET
;-------
; gfx routines
init13h:
MOV AX,0013H ; set 320x200 8bit video mode
INT 10H
RET
close13h:
MOV AX,0003H ; restore text mode
INT 10H
RET
vsync: ; wait for end of screen updating
PUSH AX
PUSH DX
MOV DX,03DAH
vsync_1:
IN AL,DX
TEST AL,0
JNE vsync_1
POP DX
POP AX
RET
set_palette:
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV AX,0
MOV BX,palette ; load palette adress to BX
MOV CX,256 ; 256 colors (8bit)
set_palette_1:
PUSH AX
MOV DX,03C8H ; set first VGA DAC port
OUT DX,AL ; send color num (AL) to VGA DAC
INC DX ; set next port
MOV AL,[BX] ; send RGB and increment BX pointer
OUT DX,AL
INC BX
MOV AL,[BX]
OUT DX,AL
INC BX
MOV AL,[BX]
OUT DX,AL
INC BX
POP AX
INC AL ; increment color num
LOOP set_palette_1
POP DX
POP BX
POP CX
POP AX
RET
draw_screen: ; move data from 9000h to A000h segment
CALL vsync
PUSH DS
PUSH ES
PUSH AX
PUSH CX
PUSH DI
MOV AX,SCR_MEM
MOV DS,AX
MOV AX,VGA_MEM
MOV ES,AX
MOV CX,64000
draw_screen_1:
MOV DI,CX
DEC DI
MOV AL,[DS:DI]
MOV [ES:DI],AL
LOOP draw_screen_1
POP DI
POP CX
POP AX
POP ES
POP DS
RET
clear_screen: ; clear screen buffer, CL - color
PUSH ES
PUSH AX
PUSH DI
MOV AX,SCR_MEM
MOV ES,AX
MOV AL,CL
MOV CX,64000
clear_screen_1:
MOV DI,CX
DEC DI
MOV [ES:DI],AL
LOOP clear_screen_1
POP DI
POP AX
POP ES
RET
putpixel: ; AX - x, BX - y, CL - color
PUSH AX
PUSH BX
PUSH CX
PUSH DI
PUSH ES
PUSH AX
MOV AX,BX
MOV BX,320
MUL BX
POP BX
ADD AX,BX
MOV DI,AX
MOV AX,SCR_MEM
MOV ES,AX
MOV [ES:DI],CL
POP ES
POP DI
POP CX
POP BX
POP AX
RET
getpixel: ; AX - x, BX - y, return: CL - color
PUSH AX
PUSH BX
PUSH DI
PUSH ES
PUSH AX
MOV AX,BX
MOV BX,320
MUL BX
POP BX
ADD AX,BX
MOV DI,AX
MOV AX,SCR_MEM
MOV ES,AX
MOV CL,[ES:DI]
POP ES
POP DI
POP BX
POP AX
RET
draw_sprite: ; SX - x, SY - y, SW - width, SH - height, BX - data
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH ES
PUSH DI
MOV AX,SCR_MEM
MOV ES,AX
MOV AX,[SY]
MOV CX,[SH]
draw_sprite_y_axis:
PUSH CX
PUSH AX
MOV DX,320
MUL DX
ADD AX,[SX]
MOV DI,AX
MOV CX,[SW]
draw_sprite_x_axis:
MOV AL,[BX]
MOV [ES:DI],AL
INC DI
INC BX
LOOP draw_sprite_x_axis
POP AX
INC AX
POP CX
LOOP draw_sprite_y_axis
POP DI
POP ES
POP DX
POP CX
POP BX
POP AX
RET
draw_transparent_sprite: ; SX - x, SY - y, SW - width, SH - height, BX - data
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH ES
PUSH DI
MOV AX,SCR_MEM
MOV ES,AX
MOV AX,[SY]
MOV CX,[SH]
draw_transparent_sprite_y_axis:
PUSH CX
PUSH AX
MOV DX,320
MUL DX
ADD AX,[SX]
MOV DI,AX
MOV CX,[SW]
draw_transparent_sprite_x_axis:
MOV AL,[BX]
CMP AL,TRANSPARENT_COLOR
JE draw_transparent_sprite_x_next
MOV [ES:DI],AL
draw_transparent_sprite_x_next
INC DI
INC BX
LOOP draw_transparent_sprite_x_axis
POP AX
INC AX
POP CX
LOOP draw_transparent_sprite_y_axis
POP DI
POP ES
POP DX
POP CX
POP BX
POP AX
RET
hline: ; PX1 - x1, PY1 - y, PX2 - x2, PCL - color
PUSH ES
PUSH DI
PUSH AX
PUSH BX
PUSH CX
MOV AX,SCR_MEM
MOV ES,AX
MOV AX,[PY1]
MOV BX,320
MUL BX
ADD AX,[PX1]
MOV DI,AX
MOV AL,[PCL]
MOV CX,[PX2]
SUB CX,[PX1]
hline_1:
MOV BYTE [ES:DI],AL
INC DI
LOOP hline_1
POP CX
POP BX
POP AX
POP DI
POP ES
RET
vline: ; PX1 - x, PY1 - y1, PY2 - y2, PCL - color
PUSH ES
PUSH DI
PUSH AX
PUSH BX
PUSH CX
MOV AX,SCR_MEM
MOV ES,AX
MOV AX,[PY1]
MOV BX,320
MUL BX
ADD AX,[PX1]
MOV DI,AX
MOV AL,[PCL]
MOV CX,[PY2]
SUB CX,[PY1]
vline_1:
MOV [ES:DI],AL
ADD DI,320
LOOP vline_1
POP CX
POP BX
POP AX
POP DI
POP ES
RET
rect: ; PX1 - x1, PY1 - y1, PX2 - x2, PY2 - y2, PCL - color
PUSH AX
PUSH BX
PUSH CX
CALL hline
CALL vline
MOV AX,[PY1]
MOV BX,[PY2]
MOV [PY1],BX
CALL hline
MOV [PY1],AX
MOV AX,[PX1]
MOV BX,[PX2]
MOV [PX1],BX
CALL vline
MOV [PX1],AX
MOV AX,[PX2]
MOV BX,[PY2]
MOV CL,[PCL]
CALL putpixel
POP CX
POP BX
POP AX
RET
rectfill:
PUSH AX
PUSH CX
MOV AX,[PY1]
MOV CX,[PY2]
SUB CX,[PY1]
rectfill_1:
CALL hline
INC WORD [PY1]
LOOP rectfill_1
MOV [PY1],AX
CALL rect
POP CX
POP AX
RET
draw_char_mask: ; AX - x, BX - y, CL - color, CH - char mask
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV DX,CX
MOV CX,8
draw_char_mask_1:
PUSH CX
SHL DH,1
JNC draw_char_mask_2
PUSH DX
MOV CL,DL
CALL putpixel
POP DX
draw_char_mask_2:
POP CX
INC AX
LOOP draw_char_mask_1
POP DX
POP CX
POP BX
POP AX
RET
draw_char: ; AX - x, BX - y, CL - color, CH - char
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH ES
PUSH DI
PUSH AX
MOV AX,FONT_SEG
MOV ES,AX
MOV AX,FONT_OFF
MOV DI,AX
MOV AX,0
MOV AL,CH
SHL AX,3
ADD DI,AX
POP AX
MOV DX,CX
MOV CX,8
draw_char_1:
PUSH CX
MOV CX,DX
MOV CH,[ES:DI]
CALL draw_char_mask
INC DI
INC BX
POP CX
LOOP draw_char_1
POP DI
POP ES
POP DX
POP CX
POP BX
POP AX
RET
draw_integer: ; AX - x, BX - y, CL - color, DX - integer
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH DI
MOV DI,10000
MOV [draw_integer_cl],CL
MOV CX,5
draw_integer_1:
PUSH CX
PUSH AX
PUSH BX
PUSH DX
MOV AX,DX
XOR DX,DX
MOV BX,DI
DIV BX
MOV CH,AL
MUL BX
POP DX
SUB DX,AX
POP BX
POP AX
ADD CH,'0'
MOV CL,[draw_integer_cl]
CALL draw_char
ADD AX,8
PUSH AX
PUSH BX
PUSH DX
MOV AX,DI
MOV BX,10
XOR DX,DX
DIV BX
MOV DI,AX
POP DX
POP BX
POP AX
POP CX
LOOP draw_integer_1
POP DI
POP DX
POP CX
POP BX
POP AX
RET
draw_integer_cl DB 0 ; color (temp)
draw_text: ; AX - x, BX - y, CL - color, DX - data
PUSH AX
PUSH BX
PUSH CX
PUSH DX
XCHG BX,DX
draw_text_1:
MOV CH,[BX]
INC BX
XCHG BX,DX
CALL draw_char
ADD AX,8
XCHG BX,DX
CMP BYTE [BX],0
JNE draw_text_1
POP DX
POP CX
POP BX
POP AX
RET
;-------
; program code
random_init:
PUSH AX
PUSH CX
PUSH DX
MOV AH,2CH
INT 21H
MOV [random_seed],DX
POP DX
POP CX
POP AX
RET
random_gen: ; return: CL - random byte
MOV CX,[random_seed]
IMUL CX,13A7H
INC CX
MOV [random_seed],CX
MOV CL,CH
MOV CH,0
RET
random: ; AL - max random number
CALL random_gen
CMP CL,AL
JAE random
RET
random_seed DW 0 ; seed
delay: ; AX - hund. seconds (1/100 s)
MOV BYTE [timer_delay],1
delay_1:
CMP BYTE [timer_delay],0
JNE delay_1
RET
sound_on:
PUSH AX
MOV AL,0B6H
OUT 43H,AL
MOV AX,11930
OUT 42H,AL
MOV AL,AH
OUT 42H,AL
IN AL,61H
OR AL,3
OUT 61H,AL
POP AX
RET
sound_off:
PUSH AX
IN AL,61H
AND AL,252
OUT 61H,AL
POP AX
RET
move_snake:
PUSH AX
PUSH BX
PUSH CX
PUSH DX
CMP BYTE [snake_vector],0
JE move_snake_end
MOV CX,[snake_len]
DEC CX
move_snake_1:
PUSH CX
DEC CX
MOV BX,snake
MOV AX,CX
MOV CX,4
MUL CX
ADD BX,AX
MOV AX,[BX]
MOV CX,[BX + 2]
MOV [BX + 4],AX
MOV [BX + 6],CX
POP CX
LOOP move_snake_1
CMP BYTE [snake_vector],1
JE move_snake_up
CMP BYTE [snake_vector],2
JE move_snake_down
CMP BYTE [snake_vector],3
JE move_snake_left
CMP BYTE [snake_vector],4
JE move_snake_right
move_snake_up:
SUB WORD [snake + 2],5
JMP move_snake_vector_end
move_snake_down:
ADD WORD [snake + 2],5
JMP move_snake_vector_end
move_snake_left:
SUB WORD [snake],5
JMP move_snake_vector_end
move_snake_right:
ADD WORD [snake],5
JMP move_snake_vector_end
move_snake_vector_end:
move_snake_end:
POP DX
POP CX
POP BX
POP AX
RET
set_snakes_vector:
PUSH AX
CMP AL,1
JE set_snakes_vector_up
CMP AL,2
JE set_snakes_vector_down
CMP AL,3
JE set_snakes_vector_left
CMP AL,4
JE set_snakes_vector_right
JMP set_snakes_vector_end
set_snakes_vector_up:
CMP BYTE [snake_vector],2 ; if not down
JE set_snakes_vector_up_1
MOV BYTE [snake_vector],1 ; set up
set_snakes_vector_up_1:
JMP set_snakes_vector_end
set_snakes_vector_down:
CMP BYTE [snake_vector],1 ; if not up
JE set_snakes_vector_down_1
MOV BYTE [snake_vector],2 ; set down
set_snakes_vector_down_1:
JMP set_snakes_vector_end
set_snakes_vector_left:
CMP BYTE [snake_vector],4 ; if not right
JE set_snakes_vector_left_1
CMP BYTE [snake_vector],0 ; if not 'no move'
JE set_snakes_vector_left_1
MOV BYTE [snake_vector],3 ; set left
set_snakes_vector_left_1:
JMP set_snakes_vector_end
set_snakes_vector_right:
CMP BYTE [snake_vector],3 ; if not left
JE set_snakes_vector_right_1
MOV BYTE [snake_vector],4 ; set right
set_snakes_vector_right_1:
JMP set_snakes_vector_end
set_snakes_vector_end:
POP AX
RET
reset_snake:
MOV WORD [snake + 14],60
MOV WORD [snake + 12],25
MOV WORD [snake + 10],60
MOV WORD [snake + 8],30
MOV WORD [snake + 6],60
MOV WORD [snake + 4],35
MOV WORD [snake + 2],60
MOV WORD [snake],40
MOV WORD [snake_len],4
MOV BYTE [snake_vector],0
RET
reset_food:
PUSH AX
PUSH BX
PUSH CX
; random food x
MOV AL,58 ; max area width / 5
CALL random
MOV AH,0
MOV AL,CL
MOV BX,5
MUL BX
ADD AX,5
MOV [snakes_food_x],AX
; random food y
MOV AL,35 ; max area height / 5
CALL random
MOV AH,0
MOV AL,CL
MOV BX,5
MUL BX
ADD AX,20
MOV [snakes_food_y],AX
POP CX
POP BX
POP AX
RET
increase_snake: ; snake++ :), new head = food position
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV CX,[snake_len]
increase_snake_1:
PUSH CX
DEC CX
MOV BX,snake
MOV AX,CX
MOV CX,4
MUL CX
ADD BX,AX
MOV AX,[BX]
MOV CX,[BX + 2]
MOV [BX + 4],AX
MOV [BX + 6],CX
POP CX
LOOP increase_snake_1
MOV AX,[snakes_food_x]
MOV [snake],AX
MOV AX,[snakes_food_y]
MOV [snake + 2],AX
INC WORD [snake_len]
MOV AX,[snake_len]
CMP AX,[snake_max_len] ; if snake_len == snake_max_len then print winner msg and quit
JE increase_snake_max_len
JMP increase_snake_end
increase_snake_max_len:
CALL winner
increase_snake_end:
POP DX
POP CX
POP BX
POP AX
RET
detect_collisions: ; detect collisions beetwen objects
PUSH AX
PUSH BX
PUSH CX
PUSH DX
; detect head and food collision
MOV AX,[snakes_food_x]
CMP AX,[snake] ; compare food x with head x
JNE detect_collisions_1
MOV AX,[snakes_food_y]
CMP AX,[snake + 2] ; compare food y with head y
JNE detect_collisions_1
; add points and increase snake
ADD WORD [score],10 ; add 10 points :)
CALL increase_snake
CALL reset_food
detect_collisions_1:
; detect collision with border and decrase lives
CMP WORD [snake],0 ; coll. with left border
JE detect_collisions_dead
CMP WORD [snake],320 - 5 ; coll. with right border
JE detect_collisions_dead
CMP WORD [snake + 2],15 ; coll. with top border
JE detect_collisions_dead
CMP WORD [snake + 2],200 - 5 ; coll. with bottom border
JE detect_collisions_dead
; detect head collision with body
MOV BX,snake
ADD BX,8 ; jump to next x&y
MOV AX,[snake]
MOV DX,[snake + 2]
MOV CX,[snake_len]
DEC CX
detect_collisions_head_with_body:
CMP AX,[BX]
JNE detect_collisions_head_with_body_next
CMP DX,[BX + 2]
JE detect_collisions_dead
detect_collisions_head_with_body_next:
ADD BX,4
LOOP detect_collisions_head_with_body
; if everything is ok the jump to the end
JMP detect_collisions_end
detect_collisions_dead:
CALL reset_snake
CALL reset_food
DEC BYTE [live_counter]
MOV AX,1000
CALL draw_screen
CALL sound_on
CALL delay
CALL sound_off
detect_collisions_end:
POP DX
POP CX
POP BX
POP AX
RET
main:
CALL init13h
CALL install_keyboard
CALL install_timer
CALL set_palette
CALL random_init
; setup snake
CALL reset_snake
CALL reset_food
game_loop:
; synchronize game
CMP BYTE [can_update],1
JNE game_loop
MOV BYTE [can_update],0
; clear screen buffer
MOV CL,0
CALL clear_screen
; draw frame
MOV BX,sprite_frame_box
MOV WORD [SW],5
MOV WORD [SH],5
; draw top frame
MOV WORD [SX],0
MOV WORD [SY],0
MOV CX,320 / 5
draw_frame_top:
CALL draw_sprite
ADD WORD [SX],5
LOOP draw_frame_top
; draw bottom frame
MOV WORD [SX],0
MOV WORD [SY],200 - 5
MOV CX,320 / 5
draw_frame_bottom:
CALL draw_sprite
ADD WORD [SX],5
LOOP draw_frame_bottom
; draw left frame
MOV WORD [SX],0
MOV WORD [SY],0
MOV CX,200 / 5
draw_frame_left:
CALL draw_sprite
ADD WORD [SY],5
LOOP draw_frame_left
; draw_frame_right
MOV WORD [SX],320 - 5
MOV WORD [SY],0
MOV CX,200 / 5
draw_frame_right:
CALL draw_sprite
ADD WORD [SY],5
LOOP draw_frame_right
; draw top bar
MOV WORD [PX1],5
MOV WORD [PY1],5
MOV WORD [PX2],320 - 5 - 1
MOV WORD [PY2],5 + 13 + 1
MOV BYTE [PCL],43
CALL rectfill
MOV BYTE [PCL],53
CALL rect
; draw logo
MOV BX,sprite_logo
MOV WORD [SX],320 / 2 - 54 / 2
MOV WORD [SY],7
MOV WORD [SW],54
MOV WORD [SH],11
CALL draw_transparent_sprite
; draw live counter
MOV BX,sprite_snake_live_0
MOV WORD [SW],13
MOV WORD [SH],11
MOV WORD [SY],7
MOV WORD [SX],320 - 5 - 18
CALL draw_transparent_sprite
MOV WORD [SX],320 - 5 - 18 - 18
CALL draw_transparent_sprite
MOV WORD [SX],320 - 5 - 18 - 18 - 18
CALL draw_transparent_sprite
MOV BX,sprite_snake_live_1
CMP BYTE [live_counter],0 ; if game over
JE counter_game_over
JMP counter_draw_live
counter_game_over:
CALL game_over
counter_draw_live:
MOV WORD [SX],320 - 5 - 18
CALL draw_transparent_sprite
CMP BYTE [live_counter],2
JB draw_live_counter_end
MOV WORD [SX],320 - 5 - 18 - 18
CALL draw_transparent_sprite
CMP BYTE [live_counter],3
JB draw_live_counter_end
MOV WORD [SX],320 - 5 - 18 - 18 - 18
CALL draw_transparent_sprite
draw_live_counter_end:
; draw score
MOV AX,10
MOV BX,9
MOV CL,32 ; white
MOV DX,[score]
CALL draw_integer
; draw snakes food
MOV AX,[snakes_food_x]
MOV [SX],AX
MOV AX,[snakes_food_y]
MOV [SY],AX
MOV WORD [SW],5
MOV WORD [SH],5
MOV BX,sprite_snakes_food
CALL draw_transparent_sprite
; draw snake
MOV BX,sprite_snake
MOV WORD [SW],5
MOV WORD [SH],5
MOV CX,[snake_len]
draw_snake:
PUSH CX
DEC CX
PUSH BX
MOV BX,snake
MOV AX,CX
MOV CX,4
MUL CX
ADD BX,AX
MOV AX,[BX]
MOV [SX],AX
MOV AX,[BX + 2]
MOV [SY],AX
POP BX
CALL draw_sprite
POP CX
LOOP draw_snake
; check keys
CMP BYTE [key + KEY_UP],1
JE key_up
CMP BYTE [key + KEY_DOWN],1
JE key_down
CMP BYTE [key + KEY_LEFT],1
JE key_left
CMP BYTE [key + KEY_RIGHT],1
JE key_right
CMP BYTE [key + KEY_A],1
JE key_a
CMP BYTE [key + KEY_P],1
JE key_p
CMP BYTE [key + KEY_ESC],1 ; if ESC then quit
JE key_esc
JMP game_loop_end
key_esc:
CALL exit
key_up:
MOV AL,1
CALL set_snakes_vector
JMP game_loop_end
key_down:
MOV AL,2
CALL set_snakes_vector
JMP game_loop_end
key_left:
MOV AL,3
CALL set_snakes_vector
JMP game_loop_end
key_right:
MOV AL,4
CALL set_snakes_vector
JMP game_loop_end
key_p:
CALL game_pause
JMP game_loop_end
key_a:
; print info
MOV CL,91
MOV AX,320 / 2 - 5 * 8 / 2
MOV BX,80
MOV DX,text_about1
CALL draw_text
MOV CL,32
MOV AX,320 / 2 - 11 * 8 / 2
MOV BX,90
MOV DX,text_about2
CALL draw_text
MOV CL,32
MOV AX,320 / 2 - 12 * 8 / 2
MOV BX,100
MOV DX,text_about3
CALL draw_text
MOV CL,63
MOV AX,320 / 2 - 14 * 8 / 2
MOV BX,110
MOV DX,text_about4
CALL draw_text
JMP game_loop_end
game_loop_end:
; move snake
CALL move_snake
; detect collisions
CALL detect_collisions
; redraw screen buffer
CALL draw_screen
JMP game_loop
game_pause:
MOV CL,91
MOV AX,320 / 2 - 5 * 8 / 2
MOV BX,95
MOV DX,text_pause
CALL draw_text
CALL draw_screen
CALL wait_for_any_key
RET
game_over:
MOV CL,128
MOV AX,320 / 2 - 9 * 8 / 2
MOV BX,95
MOV DX,text_game_over
CALL draw_text
CALL draw_screen
CALL wait_for_any_key
JMP exit
winner:
MOV CL,160
MOV AX,320 / 2 - 27 * 8 / 2
MOV BX,90
MOV DX,text_winner1
CALL draw_text
MOV AX,320 / 2 - 26 * 8 / 2
MOV BX,100
MOV DX,text_winner2
CALL draw_text
CALL draw_screen
CALL wait_for_any_key
JMP exit
exit:
CALL remove_timer
CALL remove_keyboard
CALL close13h
PUSH CS
POP DS ; DS = CS (09h need it)
MOV AH,09H
MOV DX,text_end
INT 21H
MOV AX,4C00H
INT 21H
;-------
; data
old_keyboard_int DD 0
old_timer_int DD 0
screen_buffer DD 0
lastkey DB 0
key TIMES 128 DB 0
timer_counter DB 0 ; 18 clock ticks
timer_delay DB 1 ; 0 when 18 ticks
can_update DB 0 ; if 1 then update game
live_counter DB 3 ; 3..game over
score DW 0 ; game points
snakes_food_x DW 160
snakes_food_y DW 100
snake TIMES 120*2 DW 0
snake_len DW 4
snake_max_len DW 120
snake_vector DB 0 ; 0 = no move, 1 = move up, 2 = move down, 3 = move left, 4 = move right
SX DW 0 ; sprite x
SY DW 0 ; sprite y
SW DW 0 ; sprite width
SH DW 0 ; sprite height
PX1 DW 0 ; other x1
PY1 DW 0 ; other y1
PX2 DW 0 ; other x2
PY2 DW 0 ; other y2
PCL DB 0 ; other color
text_about1
DB 'SNAKE',0
text_about2
DB 'Version 1.0',0
text_about3
DB 'By CEPA 2004',0
text_about4
DB ' Visit cepa.io',0
text_pause
DB 'PAUSE',0
text_game_over
DB 'GAME OVER',0
text_winner1
DB '!!! Your Snake is dead !!!',0
text_winner2
DB '!!! It was too big :) !!!',0
text_end
DB 'SNAKE Clone v1.0',10,13
DB 'Copyright (C) By Lukasz (Cepa) Cepowski 2004',10,13,10,13
DB 'This game is freeware with full NASM source code !',10,13
DB 'Visit https://cepa.io',10,13,10,13,'OldSchool RULEZ :)','$'
sprite_logo ; 54x11 - main logo
DB 0, 0,158,158,158,158,158,158, 0, 0, 0,158, 0, 0, 0, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0,158,158,158,158, 0, 0, 0, 0, 0,158,158, 0, 0, 0, 0,158,158, 0, 0, 0,158,158,158,158,158,158,158,158
DB 158,158,158,158,158,158,158,158, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0,158,158,158,158, 0, 0, 0, 0, 0,158,158, 0, 0, 0,158,158,158, 0, 0, 0,158,158,158,158,158,158,158,158
DB 158,158, 0, 0, 0, 0, 0, 0, 0, 0, 0,158,158,158, 0, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0,158,158, 0,158,158, 0, 0, 0, 0,158,158, 0, 0,158,158,158, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0
DB 158,158, 0, 0, 0, 0, 0, 0, 0, 0, 0,158,158,158,158,158, 0, 0, 0,158,158, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0
DB 158,158,158,158,158,158, 0, 0, 0, 0, 0,158,158,158,158,158,158, 0, 0,158,158, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0,158,158, 0,158,158,158, 0, 0, 0, 0, 0,158,158,158,158,158,158, 0, 0
DB 0, 0,158,158,158,158,158,158, 0, 0, 0,158,158, 0,158,158,158,158,158,158,158, 0, 0, 0, 0,158,158, 0, 0, 0,158,158, 0, 0, 0,158,158,158,158,158,158,158, 0, 0, 0, 0,158,158,158,158,158,158, 0, 0
DB 0, 0, 0, 0, 0, 0,158,158,158, 0, 0,158,158, 0, 0, 0,158,158,158,158,158, 0, 0, 0,158,158,158,158,158,158,158,158, 0, 0, 0,158,158,158,158, 0,158,158,158, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0
DB 0, 0, 0, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0,158,158,158,158, 0, 0, 0,158,158,158,158,158,158,158,158, 0, 0, 0,158,158,158, 0, 0, 0,158,158, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0
DB 0,158, 0, 0, 0, 0,158,158,158, 0, 0,158,158, 0, 0, 0, 0, 0,158,158,158, 0, 0,158,158,158, 0, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0,158,158,158, 0, 0,158,158, 0, 0, 0, 0, 0, 0
DB 158,158,158,158,158,158,158,158, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0, 0,158,158, 0, 0,158,158,158,158,158,158,158,158
DB 0,158,158,158,158,158,158, 0, 0, 0, 0,158,158, 0, 0, 0, 0, 0, 0, 0,158, 0, 0,158,158, 0, 0, 0, 0, 0, 0,158,158, 0, 0,158,158, 0, 0, 0, 0, 0, 0,158, 0, 0,158,158,158,158,158,158,158,158
sprite_frame_box ; 5x5 - main frame box
DB 48, 48, 48, 48, 48
DB 48, 53, 53, 53, 41
DB 48, 53, 43, 53, 41
DB 48, 53, 53, 53, 41
DB 41, 41, 41, 41, 41
sprite_snakes_food ; 5x5 - snakes food :)
DB 0,155,155,155, 0
DB 155,157,157,157,151
DB 155,157,161,154,151
DB 155,157,154,154,151
DB 0,151,151,151, 0
sprite_snake ; 5x5 - snakes body
DB 97, 76, 83, 76, 97
DB 76, 88, 88, 88, 76
DB 83, 88, 88, 88, 83
DB 76, 88, 88, 88, 76
DB 97, 76, 83, 76, 97
sprite_snake_live_1 ; 13x11 - live set
DB 0, 0, 85, 85, 85, 90, 0, 0, 0, 0, 0, 0, 0
DB 0, 85, 64, 85, 64, 85, 90, 0, 0, 0, 0, 0, 0
DB 0, 0, 85, 85, 0, 0, 85, 90, 0, 0, 0, 0, 0
DB 0, 0,161, 0, 0, 0, 85, 90, 0, 0, 0, 0, 0
DB 0,157, 0,157, 0, 0, 85, 90, 0, 0, 0, 0,129
DB 0, 0, 0, 0, 0, 85, 90, 0, 0, 0, 0, 0,146
DB 0, 0, 0, 0, 85, 90, 0, 0, 0, 0, 0, 0,146
DB 0, 0, 0, 85, 90, 0, 0, 0, 0, 0, 90, 90, 0
DB 0, 0, 85, 90, 90, 0, 0, 0, 0, 90, 85, 85, 0
DB 0, 0, 85, 90, 90, 90, 90, 90, 90, 85, 85, 0, 0
DB 0, 0, 0, 85, 85, 85, 85, 85, 85, 85, 0, 0, 0
sprite_snake_live_0 ; 13x11 - live reset
DB 0, 0, 16, 16, 16, 23, 0, 0, 0, 0, 0, 0, 0
DB 0, 16, 30, 16, 30, 16, 23, 0, 0, 0, 0, 0, 0
DB 0, 0, 16, 16, 0, 0, 16, 23, 0, 0, 0, 0, 0
DB 0, 0, 21, 0, 0, 0, 16, 23, 0, 0, 0, 0, 0
DB 0, 21, 0, 21, 0, 0, 16, 23, 0, 0, 0, 0, 30
DB 0, 0, 0, 0, 0, 16, 23, 0, 0, 0, 0, 0, 11
DB 0, 0, 0, 0, 16, 23, 0, 0, 0, 0, 0, 0, 11
DB 0, 0, 0, 16, 23, 0, 0, 0, 0, 0, 23, 23, 0
DB 0, 0, 16, 23, 23, 0, 0, 0, 0, 23, 16, 16, 0
DB 0, 0, 16, 23, 23, 23, 23, 23, 23, 16, 16, 0, 0
DB 0, 0, 0, 16, 16, 16, 16, 16, 16, 16, 0, 0, 0
palette ; game palette
DB 0, 0, 0
DB 0, 0, 0
DB 2, 2, 2
DB 4, 4, 4
DB 6, 6, 6
DB 8, 8, 8
DB 10, 10, 10
DB 12, 12, 12
DB 14, 14, 14
DB 16, 16, 16
DB 18, 18, 18
DB 20, 20, 20
DB 22, 22, 22
DB 24, 24, 24
DB 26, 26, 26
DB 28, 28, 28
DB 30, 30, 30
DB 32, 32, 32
DB 34, 34, 34
DB 36, 36, 36
DB 38, 38, 38
DB 40, 40, 40
DB 42, 42, 42
DB 44, 44, 44
DB 46, 46, 46
DB 48, 48, 48
DB 50, 50, 50
DB 52, 52, 52
DB 54, 54, 54
DB 56, 56, 56
DB 58, 58, 58
DB 60, 60, 60
DB 62, 62, 62
DB 0, 0, 0
DB 0, 0, 2
DB 0, 0, 4
DB 0, 0, 6
DB 0, 0, 8
DB 0, 0, 10
DB 0, 0, 12
DB 0, 0, 14
DB 0, 0, 16
DB 0, 0, 18
DB 0, 0, 20
DB 0, 0, 22
DB 0, 0, 24
DB 0, 0, 26
DB 0, 0, 28
DB 0, 0, 30
DB 0, 0, 32
DB 0, 0, 34
DB 0, 0, 36
DB 0, 0, 38
DB 0, 0, 40
DB 0, 0, 42
DB 0, 0, 44
DB 0, 0, 46
DB 0, 0, 48
DB 0, 0, 50
DB 0, 0, 52
DB 0, 0, 54
DB 0, 0, 56
DB 0, 0, 58
DB 0, 0, 60
DB 0, 0, 62
DB 0, 0, 0
DB 0, 0, 0
DB 0, 2, 0
DB 0, 4, 0
DB 0, 6, 0
DB 0, 8, 0
DB 0, 10, 0
DB 0, 12, 0
DB 0, 14, 0
DB 0, 16, 0
DB 0, 18, 0
DB 0, 20, 0
DB 0, 22, 0
DB 0, 24, 0
DB 0, 26, 0
DB 0, 28, 0
DB 0, 30, 0
DB 0, 32, 0
DB 0, 34, 0
DB 0, 36, 0
DB 0, 38, 0
DB 0, 40, 0
DB 0, 42, 0
DB 0, 44, 0
DB 0, 46, 0
DB 0, 48, 0
DB 0, 50, 0
DB 0, 52, 0
DB 0, 54, 0
DB 0, 56, 0
DB 0, 58, 0
DB 0, 60, 0
DB 0, 62, 0
DB 0, 0, 0
DB 2, 0, 0
DB 4, 0, 0
DB 6, 0, 0
DB 8, 0, 0
DB 10, 0, 0
DB 12, 0, 0
DB 14, 0, 0
DB 16, 0, 0
DB 18, 0, 0
DB 20, 0, 0
DB 22, 0, 0
DB 24, 0, 0
DB 26, 0, 0
DB 28, 0, 0
DB 30, 0, 0
DB 32, 0, 0
DB 34, 0, 0
DB 36, 0, 0
DB 38, 0, 0
DB 40, 0, 0
DB 42, 0, 0
DB 44, 0, 0
DB 46, 0, 0
DB 48, 0, 0
DB 50, 0, 0
DB 52, 0, 0
DB 54, 0, 0
DB 56, 0, 0
DB 58, 0, 0
DB 60, 0, 0
DB 62, 0, 0
DB 0, 0, 0
DB 2, 2, 0
DB 4, 4, 0
DB 6, 6, 0
DB 8, 8, 0
DB 10, 10, 0
DB 12, 12, 0
DB 14, 14, 0
DB 16, 16, 0
DB 18, 18, 0
DB 20, 20, 0
DB 22, 22, 0
DB 24, 24, 0
DB 26, 26, 0
DB 28, 28, 0
DB 30, 30, 0
DB 32, 32, 0
DB 34, 34, 0
DB 36, 36, 0
DB 38, 38, 0
DB 40, 40, 0
DB 42, 42, 0
DB 44, 44, 0
DB 46, 46, 0
DB 48, 48, 0
DB 50, 50, 0
DB 52, 52, 0
DB 54, 54, 0
DB 56, 56, 0
DB 58, 58, 0
DB 60, 60, 0
DB 62, 62, 0
DB 0, 0, 0
DB 2, 0, 2
DB 4, 0, 4
DB 6, 0, 6
DB 8, 0, 8
DB 10, 0, 10
DB 12, 0, 12
DB 14, 0, 14
DB 16, 0, 16
DB 18, 0, 18
DB 20, 0, 20
DB 22, 0, 22
DB 24, 0, 24
DB 26, 0, 26
DB 28, 0, 28
DB 30, 0, 30
DB 32, 0, 32
DB 34, 0, 34
DB 36, 0, 36
DB 38, 0, 38
DB 40, 0, 40
DB 42, 0, 42
DB 44, 0, 44
DB 46, 0, 46
DB 48, 0, 48
DB 50, 0, 50
DB 52, 0, 52
DB 54, 0, 54
DB 56, 0, 56
DB 58, 0, 58
DB 60, 0, 60
DB 62, 0, 62
DB 0, 0, 0
DB 0, 2, 2
DB 0, 4, 4
DB 0, 6, 6
DB 0, 8, 8
DB 0, 10, 10
DB 0, 12, 12
DB 0, 14, 14
DB 0, 16, 16
DB 0, 18, 18
DB 0, 20, 20
DB 0, 22, 22
DB 0, 24, 24
DB 0, 26, 26
DB 0, 28, 28
DB 0, 30, 30
DB 0, 32, 32
DB 0, 34, 34
DB 0, 36, 36
DB 0, 38, 38
DB 0, 40, 40
DB 0, 42, 42
DB 0, 44, 44
DB 0, 46, 46
DB 0, 48, 48
DB 0, 50, 50
DB 0, 52, 52
DB 0, 54, 54
DB 0, 56, 56
DB 0, 58, 58
DB 0, 60, 60
DB 0, 62, 62
DB 0, 0, 32
DB 2, 1, 33
DB 4, 2, 34
DB 6, 3, 35
DB 8, 4, 36
DB 10, 5, 37
DB 12, 6, 38
DB 14, 7, 39
DB 16, 8, 40
DB 18, 9, 41
DB 20, 10, 42
DB 22, 11, 43
DB 24, 12, 44
DB 26, 13, 45
DB 28, 14, 46
DB 30, 15, 47
DB 32, 16, 48
DB 34, 17, 49
DB 36, 18, 50
DB 38, 19, 51
DB 40, 20, 52
DB 42, 21, 53
DB 44, 22, 54
DB 46, 23, 55
DB 48, 24, 56
DB 50, 25, 57
DB 52, 26, 58
DB 54, 27, 59
DB 56, 28, 60
DB 58, 29, 61
;-------
; EOF
|
||||
TheStack | 5641099ec56c0ce05a1085adb894d568af24e441 | Assemblycode:Assembly | {"size": 821, "ext": "asm", "max_stars_repo_path": "oeis/142/A142949.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/142/A142949.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/142/A142949.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 35.6956521739, "max_line_length": 498, "alphanum_fraction": 0.7259439708} | ; A142949: Primes congruent to 53 mod 64.
; Submitted by Jon Maiga
; 53,181,373,757,821,1013,1973,2293,2357,2549,2677,2741,3061,3253,3637,3701,4021,4597,4789,5237,5557,5749,5813,6133,6197,6389,6581,6709,7349,7477,7541,7669,8053,8117,8501,8629,8693,8821,9013,9397,9461,9781,9973,10037,10357,10613,11317,11701,12149,12277,12853,12917,13109,13877,14197,14389,15349,15413,15541,15733,15797,16693,17077,17333,17909,18229,18869,19381,20021,20149,20341,20533,20789,20981,21493,21557,22133,22453,22709,22901,23029,23669,24181,24373,24821,25013,25589,25717,26293,26357,27061
mov $2,$0
add $2,2
pow $2,2
lpb $2
mul $1,$4
mov $3,$1
add $3,52
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,64
sub $2,1
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,11
|
||||
TheStack | a92954e231f2f6c97ac2bc98d345b315f3a833db | Assemblycode:Assembly | {"size": 716, "ext": "asm", "max_stars_repo_path": "oeis/171/A171824.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/171/A171824.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/171/A171824.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 42.1176470588, "max_line_length": 496, "alphanum_fraction": 0.7360335196} | ; A171824: Triangle T(n,k)= binomial(n + k,n) + binomial(2*n-k,n) read by rows.
; Submitted by Jon Maiga
; 2,3,3,7,6,7,21,14,14,21,71,40,30,40,71,253,132,77,77,132,253,925,469,238,168,238,469,925,3433,1724,828,450,450,828,1724,3433,12871,6444,3048,1452,990,1452,3048,6444,12871,48621,24320,11495,5225,2717,2717,5225,11495,24320,48621,184757,92389,43824,19734,9009,6006,9009,19734,43824,92389,184757,705433,352728,168038,75946,33189,16744,16744,33189,75946,168038,352728,705433,2704157,1352091,646737,294385,127790,56576,37128,56576,127790,294385,646737,1352091,2704157,10400601,5200314,2496249,1144626
lpb $0
add $1,1
sub $0,$1
lpe
mov $2,$1
mul $2,2
sub $2,$0
bin $2,$1
add $1,$0
bin $1,$0
add $2,$1
mov $0,$2
|
||||
TheStack | 8bddd5de219f1d1c3777e1cb337ee924a41ad61c | Assemblycode:Assembly | {"size": 5558, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/US/_ht_/i7-8650U_0xd2_notsx.log_1_311.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/US/_ht_/i7-8650U_0xd2_notsx.log_1_311.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/US/_ht_/i7-8650U_0xd2_notsx.log_1_311.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 20.9735849057, "max_line_length": 155, "alphanum_fraction": 0.6509535804} | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x15135, %rsi
lea addresses_A_ht+0x13e4d, %rdi
nop
add $17296, %r9
mov $62, %rcx
rep movsw
nop
nop
xor %r12, %r12
lea addresses_WT_ht+0x9735, %r12
nop
nop
xor %r8, %r8
mov $0x6162636465666768, %r9
movq %r9, %xmm2
and $0xffffffffffffffc0, %r12
movaps %xmm2, (%r12)
nop
nop
nop
nop
cmp $40369, %rdi
lea addresses_WT_ht+0x13bf5, %r9
clflush (%r9)
nop
nop
nop
nop
add $60395, %rsi
movl $0x61626364, (%r9)
nop
nop
nop
and %r8, %r8
lea addresses_WT_ht+0x1ebeb, %rsi
lea addresses_WC_ht+0x1e523, %rdi
nop
nop
nop
sub $57272, %r13
mov $60, %rcx
rep movsw
nop
nop
inc %rdi
lea addresses_WC_ht+0x18735, %rdi
clflush (%rdi)
nop
nop
nop
inc %rsi
vmovups (%rdi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %r12
nop
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_UC_ht+0x16935, %rdi
nop
nop
nop
and $58727, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm4
movups %xmm4, (%rdi)
cmp $41418, %r12
lea addresses_normal_ht+0x5135, %rsi
lea addresses_normal_ht+0x15e93, %rdi
nop
nop
nop
nop
nop
and $25557, %rax
mov $120, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_WC_ht+0x12eb5, %rsi
lea addresses_WC_ht+0xfb35, %rdi
nop
nop
sub $36523, %r12
mov $54, %rcx
rep movsl
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_A_ht+0x1c24b, %rax
nop
nop
nop
nop
add %r12, %r12
mov (%rax), %r13w
nop
nop
dec %rcx
lea addresses_A_ht+0x2af5, %r8
nop
nop
xor %r9, %r9
vmovups (%r8), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %r12
nop
xor $32557, %r13
lea addresses_normal_ht+0x12535, %rcx
nop
nop
and $52329, %rdi
mov $0x6162636465666768, %r13
movq %r13, %xmm0
movups %xmm0, (%rcx)
nop
nop
nop
inc %r8
lea addresses_A_ht+0x1a735, %rax
sub $63198, %rcx
vmovups (%rax), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rdi
xor %rax, %rax
lea addresses_UC_ht+0x15735, %r12
nop
nop
xor %r9, %r9
vmovups (%r12), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rax
nop
nop
nop
add $34201, %rcx
lea addresses_WT_ht+0x7e9a, %rsi
nop
nop
nop
nop
nop
sub %r13, %r13
movb $0x61, (%rsi)
sub $45970, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0xed35, %r12
nop
nop
nop
inc %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm2
vmovups %ymm2, (%r12)
nop
nop
nop
add %r13, %r13
// REPMOV
lea addresses_PSE+0x15931, %rsi
lea addresses_PSE+0xb75, %rdi
nop
xor %r12, %r12
mov $4, %rcx
rep movsq
nop
nop
dec %r12
// Store
lea addresses_WC+0x9bf2, %r8
nop
nop
nop
add %rdi, %rdi
movb $0x51, (%r8)
xor %r12, %r12
// Faulty Load
lea addresses_US+0x1135, %rbx
cmp %rcx, %rcx
movups (%rbx), %xmm3
vpextrq $1, %xmm3, %r8
lea oracles, %rdi
and $0xff, %r8
shlq $12, %r8
mov (%rdi,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_PSE', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_PSE', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'48': 1}
48
*/
|
||||
TheStack | 2d125befa0595412493202ec12059d5c481c0a65 | Assemblycode:Assembly | {"size": 4894, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_795.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_795.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_795.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 47.9803921569, "max_line_length": 2999, "alphanum_fraction": 0.6575398447} | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WC+0x19bfe, %r14
nop
nop
and $25962, %rbp
mov $0x5152535455565758, %r8
movq %r8, %xmm1
vmovups %ymm1, (%r14)
nop
nop
sub %r14, %r14
// REPMOV
lea addresses_UC+0x7861, %rsi
lea addresses_A+0xac76, %rdi
nop
nop
nop
nop
nop
xor $22571, %r15
mov $95, %rcx
rep movsb
nop
add $49598, %r15
// Load
lea addresses_RW+0x247e, %r15
nop
nop
sub %rbp, %rbp
movups (%r15), %xmm7
vpextrq $0, %xmm7, %rsi
nop
cmp %rbp, %rbp
// REPMOV
lea addresses_UC+0xd389, %rsi
lea addresses_A+0x169fe, %rdi
nop
nop
and %r10, %r10
mov $15, %rcx
rep movsl
nop
nop
xor %rsi, %rsi
// Faulty Load
lea addresses_WC+0x19bfe, %r15
nop
nop
nop
nop
xor %r14, %r14
vmovups (%r15), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %r8
lea oracles, %rbp
and $0xff, %r8
shlq $12, %r8
mov (%rbp,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 32, 'AVXalign': False}}
{'src': {'type': 'addresses_UC', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_RW', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 9, 'same': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 80c1e38438e524fdd70b575da178a00dcb7552e6 | Assemblycode:Assembly | {"size": 1399, "ext": "asm", "max_stars_repo_path": "src/x86_16/setjmp.asm", "max_stars_repo_name": "dargueta/metalc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/x86_16/setjmp.asm", "max_issues_repo_name": "dargueta/metalc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/x86_16/setjmp.asm", "max_forks_repo_name": "dargueta/metalc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1206896552, "max_line_length": 79, "alphanum_fraction": 0.5604002859} | bits 16
%include "metalc/setjmp.inc"
global mclib_setjmp
global mclib_longjmp
mclib_setjmp:
mov cx, bp
mov bp, sp
; Save return address in AX because we won't be able to access it after we
; make bp point at the jmp_buf struct.
mov ax, [bp]
mov bp, [bp + 2]
mov [bp + tJmpBuf.j_return], ax
mov [bp + tJmpBuf.j_bx], bx
mov [bp + tJmpBuf.j_sp], sp
mov [bp + tJmpBuf.j_si], si
mov [bp + tJmpBuf.j_di], di
mov [bp + tJmpBuf.j_bp], cx ; Remember, we saved BP into CX earlier
; Set BP back to its original value
mov bp, cx
; Always return 0. Assuming an integer is 32 bits we return it in DX:AX so
; we need to clear both.
xor ax, ax
xor dx, dx
ret 2
mclib_longjmp:
mov bp, sp
; Set the return value first before we overwrite BP. It's a 32-bit integer
; so we need to set DX:AX.
mov ax, [bp + 4]
mov dx, [bp + 6]
; Point bp to the jmp_buf struct
mov bp, [bp + 2]
; Overwrite the return address
mov cx, [bp + tJmpBuf.j_return]
mov si, sp
mov [si], cx
; Reset all the registers we saved
mov bx, [bp + tJmpBuf.j_bx]
mov sp, [bp + tJmpBuf.j_sp]
mov si, [bp + tJmpBuf.j_si]
mov di, [bp + tJmpBuf.j_di]
mov bp, [bp + tJmpBuf.j_bp]
ret 6
|
||||
TheStack | 7804790b918919880aa14e09aba194048f27b883 | Assemblycode:Assembly | {"size": 2515, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32/zx_01_output_char_32_stdio_msg_ictl.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32/zx_01_output_char_32_stdio_msg_ictl.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32/zx_01_output_char_32_stdio_msg_ictl.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.9097744361, "max_line_length": 70, "alphanum_fraction": 0.5745526839} |
SECTION code_fcntl
PUBLIC zx_01_output_char_32_stdio_msg_ictl
PUBLIC zx_01_output_char_32_stdio_msg_ictl_0
EXTERN asm_vioctl_driver, error_einval_zc, l_offset_ix_de
EXTERN console_01_output_char_stdio_msg_ictl_0
zx_01_output_char_32_stdio_msg_ictl:
; ioctl messages understood:
;
; defc IOCTL_OTERM_FONT = $0802
; defc IOCTL_OTERM_FCOLOR = $1002
; defc IOCTL_OTERM_FMASK = $1102
; defc IOCTL_OTERM_BCOLOR = $1202
;
; in addition to flags managed by stdio
; and messages understood by base class
;
; enter : de = request
; bc = first parameter
; hl = void *arg (0 if stdio flags)
;
; exit : hl = return value
; carry set if ioctl rejected
;
; uses : af, bc, de, hl
; flag bits managed by stdio?
ld a,h
or l
jp z, asm_vioctl_driver ; accept all changes to stdio flags
; check that message is specifically for an output terminal
ld a,e
and $07
cp $02 ; output terminal messages are type $02
jp nz, error_einval_zc
; interpret ioctl message
zx_01_output_char_32_stdio_msg_ictl_0:
ld a,d
cp $08
jr z, _ioctl_font
sub $10
jp c, console_01_output_char_stdio_msg_ictl_0
jr z, _ioctl_fcolor
dec a
jr z, _ioctl_fmask
dec a
jp nz, error_einval_zc
_ioctl_bcolor:
; bc = first parameter (background colour)
; hl = void *arg
ld l,(ix+25)
ld h,0 ; hl = old background colour
ld a,b
or a
ret nz ; if bcolour > 255
ld (ix+25),c
ret
_ioctl_font:
; bc = first parameter (font address)
; hl = void *arg
ld hl,21
call l_offset_ix_de
ld e,(hl)
inc hl
ld d,(hl) ; de = old font address
ld a,b
and c
inc a
jr z, _ioctl_font_ret ; if font == -1
ld (hl),b
dec hl
ld (hl),c
_ioctl_font_ret:
ex de,hl ; hl = old font address
ret
_ioctl_fcolor:
; bc = first parameter (foreground colour)
; hl = void *arg
ld l,(ix+23)
ld h,0 ; hl = old foreground colour
ld a,b
or a
ret nz ; if fcolour > 255
ld (ix+23),c
ret
_ioctl_fmask:
; bc = first parameter (foreground mask)
; hl = void *arg
ld l,(ix+24)
ld h,0 ; hl = old foreground mask
ld a,b
or a
ret nz ; if fmask > 255
ld (ix+24),c
ret
|
||||
TheStack | 9266872fbd26ab602de464335cbfd18894c81471 | Assemblycode:Assembly | {"size": 917, "ext": "asm", "max_stars_repo_path": "assembly/lab5/src/5-2/cal.asm", "max_stars_repo_name": "sabertazimi/hust-lab", "max_stars_repo_stars_event_min_datetime": "2017-07-30T07:46:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-21T15:51:04.000Z", "max_issues_repo_path": "assembly/lab5/src/5-2/cal.asm", "max_issues_repo_name": "sabertazimi/hust-lab", "max_issues_repo_issues_event_min_datetime": "2018-03-22T10:09:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-12T16:08:35.000Z", "max_forks_repo_path": "assembly/lab5/src/5-2/cal.asm", "max_forks_repo_name": "sabertazimi/hust-lab", "max_forks_repo_forks_event_min_datetime": "2018-09-03T13:14:08.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-25T17:00:46.000Z"} | {"max_stars_count": 29, "max_issues_count": 2, "max_forks_count": 9, "avg_line_length": 20.8409090909, "max_line_length": 78, "alphanum_fraction": 0.5114503817} | .386
.model flat, c
.code
public cal
cal proc table: dword, num: dword
push eax
push ebx
push ecx
push edx
push esi
push edi
mov edi, table
xor ebx, ebx
xor ecx, ecx
cal_loop:
cmp ecx, num
jge cal_finish
mov eax, ss:[edi + ebx + 12] ; chinese
mov edx, ss:[edi + ebx + 16] ; math
lea eax, [edx + eax * 2] ; (eax) = chinese * 2 + math
mov edx, ss:[edi + ebx + 20] ; english
lea esi, [edx + eax *2] ; (esi) = (chinese * 2 + math) * 2 + english
mov eax, 92492493h ; (esi) / 7
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 1fh
add edx, eax
and edx, 0ffh
mov ss:[edi + ebx + 24], edx ; avg = sum / 3.5
add ebx, 28
inc ecx
jmp cal_loop
cal_finish:
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
ret
cal endp
end |
||||
TheStack | fbb8750b4238ba7b8f80c58f97ce5ee8e0b2f4c4 | Assemblycode:Assembly | {"size": 221, "ext": "asm", "max_stars_repo_path": "assets/assembly/ours/equ.asm", "max_stars_repo_name": "edassis/SB-Tradutor", "max_stars_repo_stars_event_min_datetime": "2021-02-09T22:24:34.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-09T22:24:34.000Z", "max_issues_repo_path": "assets/assembly/ours/equ.asm", "max_issues_repo_name": "edassis/SB-Tradutor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/assembly/ours/equ.asm", "max_forks_repo_name": "edassis/SB-Tradutor", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0909090909, "max_line_length": 54, "alphanum_fraction": 0.7239819005} | L1: EQU 1
L2: EQU 0
SECTION TEXT
IF L1
LOAD SPACE ;faz esta operacao se L1 for verdadeiro
IF L2
INPUT SPACE ;faz esta operacao se L2 for verdadeiro
SECTION DATA
N: SPACE ;eu tenho q excluir esse comentario |
||||
TheStack | f7398181457ca325cece906c999007bedac72316 | Assemblycode:Assembly | {"size": 1711, "ext": "asm", "max_stars_repo_path": "programs/oeis/033/A033572.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/033/A033572.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/033/A033572.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 190.1111111111, "max_line_length": 1626, "alphanum_fraction": 0.8275862069} | ; A033572: a(n) = (2*n+1)*(7*n+1).
; 1,24,75,154,261,396,559,750,969,1216,1491,1794,2125,2484,2871,3286,3729,4200,4699,5226,5781,6364,6975,7614,8281,8976,9699,10450,11229,12036,12871,13734,14625,15544,16491,17466,18469,19500,20559,21646,22761,23904,25075,26274,27501,28756,30039,31350,32689,34056,35451,36874,38325,39804,41311,42846,44409,46000,47619,49266,50941,52644,54375,56134,57921,59736,61579,63450,65349,67276,69231,71214,73225,75264,77331,79426,81549,83700,85879,88086,90321,92584,94875,97194,99541,101916,104319,106750,109209,111696,114211,116754,119325,121924,124551,127206,129889,132600,135339,138106,140901,143724,146575,149454,152361,155296,158259,161250,164269,167316,170391,173494,176625,179784,182971,186186,189429,192700,195999,199326,202681,206064,209475,212914,216381,219876,223399,226950,230529,234136,237771,241434,245125,248844,252591,256366,260169,264000,267859,271746,275661,279604,283575,287574,291601,295656,299739,303850,307989,312156,316351,320574,324825,329104,333411,337746,342109,346500,350919,355366,359841,364344,368875,373434,378021,382636,387279,391950,396649,401376,406131,410914,415725,420564,425431,430326,435249,440200,445179,450186,455221,460284,465375,470494,475641,480816,486019,491250,496509,501796,507111,512454,517825,523224,528651,534106,539589,545100,550639,556206,561801,567424,573075,578754,584461,590196,595959,601750,607569,613416,619291,625194,631125,637084,643071,649086,655129,661200,667299,673426,679581,685764,691975,698214,704481,710776,717099,723450,729829,736236,742671,749134,755625,762144,768691,775266,781869,788500,795159,801846,808561,815304,822075,828874,835701,842556,849439,856350,863289,870256
mov $1,14
mul $1,$0
add $1,9
mul $1,$0
add $1,1
|
||||
TheStack | 3bf15c2f6459784cdee9b42ea71204fa2df04322 | Assemblycode:Assembly | {"size": 8262, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_680.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_680.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_680.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 33.048, "max_line_length": 2999, "alphanum_fraction": 0.6527475188} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xc8fc, %r8
nop
cmp %r11, %r11
mov $0x6162636465666768, %r15
movq %r15, %xmm2
movups %xmm2, (%r8)
nop
cmp %rax, %rax
lea addresses_D_ht+0x1db1c, %rsi
lea addresses_D_ht+0xa0ad, %rdi
nop
nop
nop
nop
add $16264, %rax
mov $102, %rcx
rep movsw
nop
nop
nop
nop
and $8944, %r8
lea addresses_A_ht+0x47d4, %rsi
lea addresses_D_ht+0x1349c, %rdi
clflush (%rdi)
nop
dec %r8
mov $67, %rcx
rep movsw
nop
nop
nop
cmp %rcx, %rcx
lea addresses_WT_ht+0xaa5c, %rsi
nop
nop
xor %rcx, %rcx
mov (%rsi), %edi
nop
nop
nop
xor $26284, %rcx
lea addresses_WC_ht+0x1e9ac, %r8
clflush (%r8)
xor %r11, %r11
movb (%r8), %r15b
nop
nop
nop
and %rcx, %rcx
lea addresses_WC_ht+0x1d0e0, %rsi
lea addresses_D_ht+0x1625c, %rdi
nop
nop
nop
nop
nop
xor $22608, %r15
mov $89, %rcx
rep movsl
nop
add $41119, %rdi
lea addresses_normal_ht+0xc67c, %rsi
lea addresses_normal_ht+0x12b9c, %rdi
xor $43783, %r12
mov $53, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_WT_ht+0xc25c, %rsi
lea addresses_A_ht+0x1a300, %rdi
nop
nop
nop
and $22558, %r8
mov $9, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp $45673, %rax
lea addresses_UC_ht+0x16a5c, %r12
xor %rsi, %rsi
mov (%r12), %edi
nop
nop
nop
inc %rsi
lea addresses_D_ht+0xa62c, %rdi
dec %r8
movb (%rdi), %r12b
xor %rdi, %rdi
lea addresses_WC_ht+0x1c25c, %rsi
nop
nop
add $17690, %r11
vmovups (%rsi), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rdi
nop
nop
nop
add $55461, %rsi
lea addresses_A_ht+0xda5c, %rdi
clflush (%rdi)
nop
nop
and %rax, %rax
mov (%rdi), %r8w
nop
nop
nop
cmp %rax, %rax
lea addresses_D_ht+0x13f24, %rcx
nop
nop
xor $26735, %rax
vmovups (%rcx), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %r12
nop
nop
nop
add %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdx
push %rsi
// Load
lea addresses_US+0x18c5c, %rcx
sub %r10, %r10
mov (%rcx), %r12
nop
nop
nop
nop
nop
cmp %rdx, %rdx
// Store
lea addresses_UC+0x17e5c, %rcx
nop
nop
add $15325, %rsi
movw $0x5152, (%rcx)
nop
nop
nop
xor $13477, %rdx
// Store
lea addresses_WC+0x4a5c, %rcx
nop
nop
nop
and %r14, %r14
movl $0x51525354, (%rcx)
nop
nop
cmp $45379, %r10
// Load
lea addresses_WC+0x1ccdc, %rsi
xor $33571, %rcx
mov (%rsi), %edx
nop
cmp $31115, %r14
// Faulty Load
lea addresses_D+0x1ca5c, %r9
nop
nop
nop
nop
sub %r12, %r12
movups (%r9), %xmm5
vpextrq $1, %xmm5, %rcx
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %r9
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 4, 'same': True, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
||||
TheStack | 309f5005806f009893bb91035b5e61c03f4872c6 | Assemblycode:Assembly | {"size": 2089, "ext": "asm", "max_stars_repo_path": "pkgs/tools/yasm/src/modules/arch/x86/tests/sse5-cc.asm", "max_stars_repo_name": "manggoguy/parsec-modified", "max_stars_repo_stars_event_min_datetime": "2015-03-06T00:30:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T13:26:53.000Z", "max_issues_repo_path": "pkgs/tools/yasm/src/modules/arch/x86/tests/sse5-cc.asm", "max_issues_repo_name": "manggoguy/parsec-modified", "max_issues_repo_issues_event_min_datetime": "2020-12-15T08:30:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-13T03:54:24.000Z", "max_forks_repo_path": "pkgs/tools/yasm/src/modules/arch/x86/tests/sse5-cc.asm", "max_forks_repo_name": "manggoguy/parsec-modified", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z"} | {"max_stars_count": 64, "max_issues_count": 12, "max_forks_count": 40, "avg_line_length": 41.78, "max_line_length": 49, "alphanum_fraction": 0.7012924844} | [bits 16]
comeqpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 00
comltpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 01
comungepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 01
comlepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 02
comungtpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 02
comunordpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 03
comnepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 04
comneqpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 04
comnltpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 05
comugepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 05
comnlepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 06
comugtpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 06
comordpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 07
comueqpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 08
comultpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 09
comngepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 09
comulepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0A
comngtpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0A
comfalsepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0B
comunepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0C
comuneqpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0C
comunltpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0D
comgepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0D
comunlepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0E
comgtpd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0E
comtruepd xmm1, xmm2, xmm3 ; 0F 25 2D 323 10 0F
pcomltb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 00
pcomleb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 01
pcomgtb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 02
pcomgeb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 03
pcomeqb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 04
pcomneqb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 05
pcomneb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 05
pcomfalseb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 06
pcomtrueb xmm1, xmm2, xmm3 ; 0F 25 4C 323 10 07
pcomltub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 00
pcomleub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 01
pcomgtub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 02
pcomgeub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 03
pcomequb xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 04
pcomnequb xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 05
pcomneub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 05
pcomfalseub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 06
pcomtrueub xmm1, xmm2, xmm3 ; 0F 25 6C 323 10 07
|
||||
TheStack | b0ab434b7fdc61f2018509d116c5b97eda0944a7 | Assemblycode:Assembly | {"size": 1606, "ext": "asm", "max_stars_repo_path": "software/profi/net-tools/src/pqdos/browser/gopher/render/row.asm", "max_stars_repo_name": "andykarpov/karabas-pro", "max_stars_repo_stars_event_min_datetime": "2020-07-25T15:00:32.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-22T19:30:04.000Z", "max_issues_repo_path": "software/profi/net-tools/src/pqdos/browser/gopher/render/row.asm", "max_issues_repo_name": "zxrepo/andykarpov.karabas-pro", "max_issues_repo_issues_event_min_datetime": "2020-07-29T14:29:18.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-22T11:34:28.000Z", "max_forks_repo_path": "software/profi/net-tools/src/pqdos/browser/gopher/render/row.asm", "max_forks_repo_name": "zxrepo/andykarpov.karabas-pro", "max_forks_repo_forks_event_min_datetime": "2020-09-07T14:21:31.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-24T17:18:56.000Z"} | {"max_stars_count": 26, "max_issues_count": 42, "max_forks_count": 7, "avg_line_length": 22.9428571429, "max_line_length": 69, "alphanum_fraction": 0.5734744707} | ; A - row number
; HL - pointer to row
renderRow:
add CURSOR_OFFSET
ld d, a, e, 0 : call TextMode.gotoXY
ld a, (hl)
push hl
call getIcon
call TextMode.putC
pop hl
inc hl
jp print70Goph
; A - gopher id char
getIcon:
cp 'i' : jr z, .info
cp '9' : jr z, .down
cp '1' : jr z, .page
cp '0' : jr z, .text
cp '7' : jr z, .input
ld a, ' '
ret
.info
ld a, 32 : ret
.down
ld de, hl
ld bc, #ff, a, 9 : cpir
ld a, b : or c : jr z, .downExit
push de
.nameLoop
ld a, (hl) : and a : jr z, .check
cp 9 : jr z, .check
cp 13 : jr z, .check
push hl
call CompareBuff.push
pop hl
inc hl
jr .nameLoop
.check
; ld hl, scrExt1 : call CompareBuff.search : and a : jr nz, .image
; ld hl, scrExt2 : call CompareBuff.search : and a : jr nz, .image
ld a, 3 : ld (VTPL.SETUP), a ; 0 bit - looping, 1 bit - pt2 file
ld hl, pt2Ext1 : call CompareBuff.search : and a : jr nz, .music
ld hl, pt2Ext2 : call CompareBuff.search : and a : jr nz, .music
ld a, 1 : ld (VTPL.SETUP), a
ld hl, pt3Ext1 : call CompareBuff.search : and a : jr nz, .music
ld hl, pt3Ext2 : call CompareBuff.search : and a : jr nz, .music
.checkExit
pop hl
.downExit
ld a, MIME_DOWNLOAD : ret
.page
ld a, MIME_LINK : ret
.text
ld a, MIME_TEXT : ret
.input
ld a, MIME_INPUT : ret
;.image
; pop hl : ld a, MIME_IMAGE : ret
.music
pop hl : ld a, MIME_MUSIC : ret
;scrExt1 db ".scr", 0
;scrExt2 db ".SCR", 0
pt3Ext1 db ".pt3", 0
pt3Ext2 db ".PT3", 0
pt2Ext1 db ".pt2", 0
pt2Ext2 db ".PT2", 0
|
||||
TheStack | baa33589e223265e0394958d10f8acf1c7a26e94 | Assemblycode:Assembly | {"size": 16616, "ext": "asm", "max_stars_repo_path": "resources/experiments/dynamic_simple/secondary/build/output.asm", "max_stars_repo_name": "tomwei7/LA104", "max_stars_repo_stars_event_min_datetime": "2018-11-23T23:54:15.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-21T03:47:05.000Z", "max_issues_repo_path": "resources/experiments/dynamic_simple/secondary/build/output.asm", "max_issues_repo_name": "203Null/LA104", "max_issues_repo_issues_event_min_datetime": "2019-02-01T05:01:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-26T16:00:24.000Z", "max_forks_repo_path": "resources/experiments/dynamic_simple/secondary/build/output.asm", "max_forks_repo_name": "203Null/LA104", "max_forks_repo_forks_event_min_datetime": "2019-02-06T17:05:04.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-04T12:30:53.000Z"} | {"max_stars_count": 336, "max_issues_count": 56, "max_forks_count": 52, "avg_line_length": 39.5619047619, "max_line_length": 78, "alphanum_fraction": 0.6079080404} |
output.elf: file format elf32-littlearm
Disassembly of section .text:
08008000 <g_pfnVectors>:
8008000: 00 27 00 20 71 83 00 08 2f 83 00 08 2f 83 00 08 .'. q.../.../...
8008010: 2f 83 00 08 2f 83 00 08 2f 83 00 08 00 00 00 00 /.../.../.......
...
800802c: 2d 83 00 08 2d 83 00 08 00 00 00 00 2d 83 00 08 -...-.......-...
800803c: 2d 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 -.../.../.../...
800804c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800805c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800806c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800807c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800808c: 2d 83 00 08 2d 83 00 08 2d 83 00 08 2d 83 00 08 -...-...-...-...
800809c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080ac: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080bc: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080cc: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080dc: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080ec: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
80080fc: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800810c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800811c: 2f 83 00 08 2f 83 00 08 2f 83 00 08 2f 83 00 08 /.../.../.../...
800812c: 2f 83 00 08 /...
08008130 <Set_Posi>:
8008130: b510 push {r4, lr}
8008132: 460c mov r4, r1
8008134: 4601 mov r1, r0
8008136: 200b movs r0, #11
8008138: f7f7 ffe2 bl 8000100 <__Bios>
800813c: 4621 mov r1, r4
800813e: e8bd 4010 ldmia.w sp!, {r4, lr}
8008142: 200c movs r0, #12
8008144: f7f7 bfdc b.w 8000100 <__Bios>
08008148 <Set_Pixel>:
8008148: 4601 mov r1, r0
800814a: 200d movs r0, #13
800814c: f7f7 bfd8 b.w 8000100 <__Bios>
08008150 <Test>:
8008150: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
8008154: 2500 movs r5, #0
8008156: f8df 8040 ldr.w r8, [pc, #64] ; 8008198 <Test+0x48>
800815a: 2600 movs r6, #0
800815c: f1a5 03a0 sub.w r3, r5, #160 ; 0xa0
8008160: fb03 f703 mul.w r7, r3, r3
8008164: fa1f f985 uxth.w r9, r5
8008168: f1a6 0078 sub.w r0, r6, #120 ; 0x78
800816c: fb00 7400 mla r4, r0, r0, r7
8008170: b2b1 uxth r1, r6
8008172: 4648 mov r0, r9
8008174: f7ff ffdc bl 8008130 <Set_Posi>
8008178: ea08 2004 and.w r0, r8, r4, lsl #8
800817c: f400 4078 and.w r0, r0, #63488 ; 0xf800
8008180: 3601 adds r6, #1
8008182: f7ff ffe1 bl 8008148 <Set_Pixel>
8008186: 2ef0 cmp r6, #240 ; 0xf0
8008188: d1ee bne.n 8008168 <Test+0x18>
800818a: 3501 adds r5, #1
800818c: f5b5 7fa0 cmp.w r5, #320 ; 0x140
8008190: d1e3 bne.n 800815a <Test+0xa>
8008192: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
8008196: bf00 nop
8008198: 07fff800 .word 0x07fff800
0800819c <WriteMem>:
800819c: b510 push {r4, lr}
800819e: 4401 add r1, r0
80081a0: 1a12 subs r2, r2, r0
80081a2: 4288 cmp r0, r1
80081a4: eb00 0302 add.w r3, r0, r2
80081a8: d100 bne.n 80081ac <WriteMem+0x10>
80081aa: bd10 pop {r4, pc}
80081ac: f810 4b01 ldrb.w r4, [r0], #1
80081b0: 701c strb r4, [r3, #0]
80081b2: e7f6 b.n 80081a2 <WriteMem+0x6>
080081b4 <WriteDword>:
80081b4: 6001 str r1, [r0, #0]
80081b6: 4770 bx lr
080081b8 <ExecEntry>:
80081b8: 4700 bx r0
080081ba <experiment>:
80081ba: b570 push {r4, r5, r6, lr}
80081bc: b0a2 sub sp, #136 ; 0x88
80081be: aa01 add r2, sp, #4
80081c0: 4615 mov r5, r2
80081c2: 4b1e ldr r3, [pc, #120] ; (800823c <experiment+0x82>)
80081c4: f103 0610 add.w r6, r3, #16
80081c8: 4614 mov r4, r2
80081ca: 6818 ldr r0, [r3, #0]
80081cc: 6859 ldr r1, [r3, #4]
80081ce: 3308 adds r3, #8
80081d0: c403 stmia r4!, {r0, r1}
80081d2: 42b3 cmp r3, r6
80081d4: 4622 mov r2, r4
80081d6: d1f7 bne.n 80081c8 <experiment+0xe>
80081d8: 6818 ldr r0, [r3, #0]
80081da: 889b ldrh r3, [r3, #4]
80081dc: 6020 str r0, [r4, #0]
80081de: 80a3 strh r3, [r4, #4]
80081e0: 4628 mov r0, r5
80081e2: 4a17 ldr r2, [pc, #92] ; (8008240 <experiment+0x86>)
80081e4: 2116 movs r1, #22
80081e6: f7ff ffd9 bl 800819c <WriteMem>
80081ea: 2250 movs r2, #80 ; 0x50
80081ec: 4915 ldr r1, [pc, #84] ; (8008244 <experiment+0x8a>)
80081ee: a80e add r0, sp, #56 ; 0x38
80081f0: f000 f8c8 bl 8008384 <memcpy>
80081f4: 4a14 ldr r2, [pc, #80] ; (8008248 <experiment+0x8e>)
80081f6: 2150 movs r1, #80 ; 0x50
80081f8: a80e add r0, sp, #56 ; 0x38
80081fa: f7ff ffcf bl 800819c <WriteMem>
80081fe: aa07 add r2, sp, #28
8008200: 4615 mov r5, r2
8008202: 4b12 ldr r3, [pc, #72] ; (800824c <experiment+0x92>)
8008204: f103 0618 add.w r6, r3, #24
8008208: 4614 mov r4, r2
800820a: 6818 ldr r0, [r3, #0]
800820c: 6859 ldr r1, [r3, #4]
800820e: 3308 adds r3, #8
8008210: c403 stmia r4!, {r0, r1}
8008212: 42b3 cmp r3, r6
8008214: 4622 mov r2, r4
8008216: d1f7 bne.n 8008208 <experiment+0x4e>
8008218: 6818 ldr r0, [r3, #0]
800821a: 211c movs r1, #28
800821c: 6020 str r0, [r4, #0]
800821e: 4a0c ldr r2, [pc, #48] ; (8008250 <experiment+0x96>)
8008220: 4628 mov r0, r5
8008222: f7ff ffbb bl 800819c <WriteMem>
8008226: 4b0b ldr r3, [pc, #44] ; (8008254 <experiment+0x9a>)
8008228: 4a0b ldr r2, [pc, #44] ; (8008258 <experiment+0x9e>)
800822a: 480c ldr r0, [pc, #48] ; (800825c <experiment+0xa2>)
800822c: e9c2 3300 strd r3, r3, [r2]
8008230: e9c2 3302 strd r3, r3, [r2, #8]
8008234: f7ff ffc0 bl 80081b8 <ExecEntry>
8008238: b022 add sp, #136 ; 0x88
800823a: bd70 pop {r4, r5, r6, pc}
800823c: 08008470 .word 0x08008470
8008240: 20005000 .word 0x20005000
8008244: 08008486 .word 0x08008486
8008248: 200050c0 .word 0x200050c0
800824c: 080084d6 .word 0x080084d6
8008250: 200051b8 .word 0x200051b8
8008254: 08008151 .word 0x08008151
8008258: 200051c4 .word 0x200051c4
800825c: 20005001 .word 0x20005001
08008260 <PRNG>:
8008260: 4b07 ldr r3, [pc, #28] ; (8008280 <PRNG+0x20>)
8008262: b510 push {r4, lr}
8008264: 6819 ldr r1, [r3, #0]
8008266: 4a07 ldr r2, [pc, #28] ; (8008284 <PRNG+0x24>)
8008268: 1c4c adds r4, r1, #1
800826a: 601c str r4, [r3, #0]
800826c: 4b06 ldr r3, [pc, #24] ; (8008288 <PRNG+0x28>)
800826e: 6810 ldr r0, [r2, #0]
8008270: 440b add r3, r1
8008272: 4906 ldr r1, [pc, #24] ; (800828c <PRNG+0x2c>)
8008274: fb01 3000 mla r0, r1, r0, r3
8008278: 6010 str r0, [r2, #0]
800827a: f3c0 000e ubfx r0, r0, #0, #15
800827e: bd10 pop {r4, pc}
8008280: 20000004 .word 0x20000004
8008284: 20000000 .word 0x20000000
8008288: 002490f3 .word 0x002490f3
800828c: 007df121 .word 0x007df121
08008290 <Clear>:
8008290: b570 push {r4, r5, r6, lr}
8008292: 2400 movs r4, #0
8008294: 2500 movs r5, #0
8008296: b2a6 uxth r6, r4
8008298: b2a9 uxth r1, r5
800829a: 4630 mov r0, r6
800829c: f7ff ff48 bl 8008130 <Set_Posi>
80082a0: 3501 adds r5, #1
80082a2: f245 5055 movw r0, #21845 ; 0x5555
80082a6: f7ff ff4f bl 8008148 <Set_Pixel>
80082aa: 2df0 cmp r5, #240 ; 0xf0
80082ac: d1f4 bne.n 8008298 <Clear+0x8>
80082ae: 3401 adds r4, #1
80082b0: f5b4 7fa0 cmp.w r4, #320 ; 0x140
80082b4: d1ee bne.n 8008294 <Clear+0x4>
80082b6: bd70 pop {r4, r5, r6, pc}
080082b8 <main>:
80082b8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
80082bc: b086 sub sp, #24
80082be: 466c mov r4, sp
80082c0: f04f 0814 mov.w r8, #20
80082c4: 270a movs r7, #10
80082c6: 2603 movs r6, #3
80082c8: 2502 movs r5, #2
80082ca: f7ff ffe1 bl 8008290 <Clear>
80082ce: f7ff ff74 bl 80081ba <experiment>
80082d2: 4b15 ldr r3, [pc, #84] ; (8008328 <main+0x70>)
80082d4: e893 0007 ldmia.w r3, {r0, r1, r2}
80082d8: 330c adds r3, #12
80082da: e884 0007 stmia.w r4, {r0, r1, r2}
80082de: e893 0007 ldmia.w r3, {r0, r1, r2}
80082e2: ab06 add r3, sp, #24
80082e4: e903 0007 stmdb r3, {r0, r1, r2}
80082e8: f7ff ffba bl 8008260 <PRNG>
80082ec: fb90 f3f6 sdiv r3, r0, r6
80082f0: eb03 0343 add.w r3, r3, r3, lsl #1
80082f4: aa06 add r2, sp, #24
80082f6: 1ac3 subs r3, r0, r3
80082f8: eb02 0383 add.w r3, r2, r3, lsl #2
80082fc: f853 2c18 ldr.w r2, [r3, #-24]
8008300: f853 3c0c ldr.w r3, [r3, #-12]
8008304: 4417 add r7, r2
8008306: 4498 add r8, r3
8008308: fb97 f7f5 sdiv r7, r7, r5
800830c: fb98 f8f5 sdiv r8, r8, r5
8008310: 4604 mov r4, r0
8008312: fa1f f188 uxth.w r1, r8
8008316: b2b8 uxth r0, r7
8008318: f7ff ff0a bl 8008130 <Set_Posi>
800831c: 0060 lsls r0, r4, #1
800831e: b280 uxth r0, r0
8008320: f7ff ff12 bl 8008148 <Set_Pixel>
8008324: e7e0 b.n 80082e8 <main+0x30>
8008326: bf00 nop
8008328: 080084f4 .word 0x080084f4
0800832c <Dummy_Handler>:
800832c: 4770 bx lr
0800832e <Default_Handler>:
800832e: e7fe b.n 800832e <Default_Handler>
08008330 <__Init_Data>:
8008330: 4a0a ldr r2, [pc, #40] ; (800835c <__Init_Data+0x2c>)
8008332: 4b0b ldr r3, [pc, #44] ; (8008360 <__Init_Data+0x30>)
8008334: 429a cmp r2, r3
8008336: d003 beq.n 8008340 <__Init_Data+0x10>
8008338: 490a ldr r1, [pc, #40] ; (8008364 <__Init_Data+0x34>)
800833a: 3a04 subs r2, #4
800833c: 428b cmp r3, r1
800833e: d305 bcc.n 800834c <__Init_Data+0x1c>
8008340: 2100 movs r1, #0
8008342: 4b09 ldr r3, [pc, #36] ; (8008368 <__Init_Data+0x38>)
8008344: 4a09 ldr r2, [pc, #36] ; (800836c <__Init_Data+0x3c>)
8008346: 4293 cmp r3, r2
8008348: d305 bcc.n 8008356 <__Init_Data+0x26>
800834a: 4770 bx lr
800834c: f852 0f04 ldr.w r0, [r2, #4]!
8008350: f843 0b04 str.w r0, [r3], #4
8008354: e7f2 b.n 800833c <__Init_Data+0xc>
8008356: f843 1b04 str.w r1, [r3], #4
800835a: e7f4 b.n 8008346 <__Init_Data+0x16>
800835c: 0800850c .word 0x0800850c
8008360: 20000000 .word 0x20000000
8008364: 20000004 .word 0x20000004
8008368: 20000004 .word 0x20000004
800836c: 20000008 .word 0x20000008
08008370 <Reset_Handler>:
8008370: 4668 mov r0, sp
8008372: f020 0107 bic.w r1, r0, #7
8008376: 468d mov sp, r1
8008378: b508 push {r3, lr}
800837a: f7ff ffd9 bl 8008330 <__Init_Data>
800837e: f7ff ff9b bl 80082b8 <main>
8008382: e7fe b.n 8008382 <Reset_Handler+0x12>
08008384 <memcpy>:
8008384: 4684 mov ip, r0
8008386: ea41 0300 orr.w r3, r1, r0
800838a: f013 0303 ands.w r3, r3, #3
800838e: d149 bne.n 8008424 <memcpy+0xa0>
8008390: 3a40 subs r2, #64 ; 0x40
8008392: d323 bcc.n 80083dc <memcpy+0x58>
8008394: 680b ldr r3, [r1, #0]
8008396: 6003 str r3, [r0, #0]
8008398: 684b ldr r3, [r1, #4]
800839a: 6043 str r3, [r0, #4]
800839c: 688b ldr r3, [r1, #8]
800839e: 6083 str r3, [r0, #8]
80083a0: 68cb ldr r3, [r1, #12]
80083a2: 60c3 str r3, [r0, #12]
80083a4: 690b ldr r3, [r1, #16]
80083a6: 6103 str r3, [r0, #16]
80083a8: 694b ldr r3, [r1, #20]
80083aa: 6143 str r3, [r0, #20]
80083ac: 698b ldr r3, [r1, #24]
80083ae: 6183 str r3, [r0, #24]
80083b0: 69cb ldr r3, [r1, #28]
80083b2: 61c3 str r3, [r0, #28]
80083b4: 6a0b ldr r3, [r1, #32]
80083b6: 6203 str r3, [r0, #32]
80083b8: 6a4b ldr r3, [r1, #36] ; 0x24
80083ba: 6243 str r3, [r0, #36] ; 0x24
80083bc: 6a8b ldr r3, [r1, #40] ; 0x28
80083be: 6283 str r3, [r0, #40] ; 0x28
80083c0: 6acb ldr r3, [r1, #44] ; 0x2c
80083c2: 62c3 str r3, [r0, #44] ; 0x2c
80083c4: 6b0b ldr r3, [r1, #48] ; 0x30
80083c6: 6303 str r3, [r0, #48] ; 0x30
80083c8: 6b4b ldr r3, [r1, #52] ; 0x34
80083ca: 6343 str r3, [r0, #52] ; 0x34
80083cc: 6b8b ldr r3, [r1, #56] ; 0x38
80083ce: 6383 str r3, [r0, #56] ; 0x38
80083d0: 6bcb ldr r3, [r1, #60] ; 0x3c
80083d2: 63c3 str r3, [r0, #60] ; 0x3c
80083d4: 3040 adds r0, #64 ; 0x40
80083d6: 3140 adds r1, #64 ; 0x40
80083d8: 3a40 subs r2, #64 ; 0x40
80083da: d2db bcs.n 8008394 <memcpy+0x10>
80083dc: 3230 adds r2, #48 ; 0x30
80083de: d30b bcc.n 80083f8 <memcpy+0x74>
80083e0: 680b ldr r3, [r1, #0]
80083e2: 6003 str r3, [r0, #0]
80083e4: 684b ldr r3, [r1, #4]
80083e6: 6043 str r3, [r0, #4]
80083e8: 688b ldr r3, [r1, #8]
80083ea: 6083 str r3, [r0, #8]
80083ec: 68cb ldr r3, [r1, #12]
80083ee: 60c3 str r3, [r0, #12]
80083f0: 3010 adds r0, #16
80083f2: 3110 adds r1, #16
80083f4: 3a10 subs r2, #16
80083f6: d2f3 bcs.n 80083e0 <memcpy+0x5c>
80083f8: 320c adds r2, #12
80083fa: d305 bcc.n 8008408 <memcpy+0x84>
80083fc: f851 3b04 ldr.w r3, [r1], #4
8008400: f840 3b04 str.w r3, [r0], #4
8008404: 3a04 subs r2, #4
8008406: d2f9 bcs.n 80083fc <memcpy+0x78>
8008408: 3204 adds r2, #4
800840a: d008 beq.n 800841e <memcpy+0x9a>
800840c: 07d2 lsls r2, r2, #31
800840e: bf1c itt ne
8008410: f811 3b01 ldrbne.w r3, [r1], #1
8008414: f800 3b01 strbne.w r3, [r0], #1
8008418: d301 bcc.n 800841e <memcpy+0x9a>
800841a: 880b ldrh r3, [r1, #0]
800841c: 8003 strh r3, [r0, #0]
800841e: 4660 mov r0, ip
8008420: 4770 bx lr
8008422: bf00 nop
8008424: 2a08 cmp r2, #8
8008426: d313 bcc.n 8008450 <memcpy+0xcc>
8008428: 078b lsls r3, r1, #30
800842a: d0b1 beq.n 8008390 <memcpy+0xc>
800842c: f010 0303 ands.w r3, r0, #3
8008430: d0ae beq.n 8008390 <memcpy+0xc>
8008432: f1c3 0304 rsb r3, r3, #4
8008436: 1ad2 subs r2, r2, r3
8008438: 07db lsls r3, r3, #31
800843a: bf1c itt ne
800843c: f811 3b01 ldrbne.w r3, [r1], #1
8008440: f800 3b01 strbne.w r3, [r0], #1
8008444: d3a4 bcc.n 8008390 <memcpy+0xc>
8008446: f831 3b02 ldrh.w r3, [r1], #2
800844a: f820 3b02 strh.w r3, [r0], #2
800844e: e79f b.n 8008390 <memcpy+0xc>
8008450: 3a04 subs r2, #4
8008452: d3d9 bcc.n 8008408 <memcpy+0x84>
8008454: 3a01 subs r2, #1
8008456: f811 3b01 ldrb.w r3, [r1], #1
800845a: f800 3b01 strb.w r3, [r0], #1
800845e: d2f9 bcs.n 8008454 <memcpy+0xd0>
8008460: 780b ldrb r3, [r1, #0]
8008462: 7003 strb r3, [r0, #0]
8008464: 784b ldrb r3, [r1, #1]
8008466: 7043 strb r3, [r0, #1]
8008468: 788b ldrb r3, [r1, #2]
800846a: 7083 strb r3, [r0, #2]
800846c: 4660 mov r0, ip
800846e: 4770 bx lr
8008470: f000b508 .word 0xf000b508
8008474: f000f86d .word 0xf000f86d
8008478: f000f863 .word 0xf000f863
800847c: f000f879 .word 0xf000f879
8008480: 2001f86f .word 0x2001f86f
8008484: b500bd08 .word 0xb500bd08
8008488: e008f8df .word 0xe008f8df
800848c: f85e44fe .word 0xf85e44fe
8008490: 00ecff08 .word 0x00ecff08
8008494: f2400000 .word 0xf2400000
8008498: f2c00ce8 .word 0xf2c00ce8
800849c: 44fc0c00 .word 0x44fc0c00
80084a0: f000f8dc .word 0xf000f8dc
80084a4: f240bf00 .word 0xf240bf00
80084a8: f2c00cdc .word 0xf2c00cdc
80084ac: 44fc0c00 .word 0x44fc0c00
80084b0: f000f8dc .word 0xf000f8dc
80084b4: f240bf00 .word 0xf240bf00
80084b8: f2c00cd0 .word 0xf2c00cd0
80084bc: 44fc0c00 .word 0x44fc0c00
80084c0: f000f8dc .word 0xf000f8dc
80084c4: f240bf00 .word 0xf240bf00
80084c8: f2c00cc4 .word 0xf2c00cc4
80084cc: 44fc0c00 .word 0x44fc0c00
80084d0: f000f8dc .word 0xf000f8dc
80084d4: 5018bf00 .word 0x5018bf00
80084d8: 00002000 .word 0x00002000
80084dc: 00000000 .word 0x00000000
80084e0: 50c00000 .word 0x50c00000
80084e4: 50c02000 .word 0x50c02000
80084e8: 50c02000 .word 0x50c02000
80084ec: 50c02000 .word 0x50c02000
80084f0: 00002000 .word 0x00002000
80084f4: 0000000a .word 0x0000000a
80084f8: 00000136 .word 0x00000136
80084fc: 0000008c .word 0x0000008c
8008500: 00000014 .word 0x00000014
8008504: 00000028 .word 0x00000028
8008508: 000000dc .word 0x000000dc
|
||||
TheStack | 0030be5c657f864aecc526ff5242fc01d277f022 | Assemblycode:Assembly | {"size": 1773, "ext": "asm", "max_stars_repo_path": "Testcases/part1/print/print_int10.asm", "max_stars_repo_name": "swapnil96/Cache_simulator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Testcases/part1/print/print_int10.asm", "max_issues_repo_name": "swapnil96/Cache_simulator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Testcases/part1/print/print_int10.asm", "max_forks_repo_name": "swapnil96/Cache_simulator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.1625, "max_line_length": 176, "alphanum_fraction": 0.6164692611} | # http://web.stanford.edu/class/archive/ee/ee108b/ee108b.1072/pas/sample.html
# The program loops 10 times total. With each iteration it calls a subroutine named print_num. This subroutine prints "The number is n", where n is the argument passed in $a0.
.data
COUNT: .word 10
TEXT: .asciiz "The number is "
EOL: .asciiz "\n"
.text
.globl main
main:
addi $sp, $sp, -32 # Adjust stack
sw $ra, 24($sp)
sw $fp, 16($sp) # save old frame pointer
addi $fp, $sp, 28 # load new frame pointer
# la $t0, COUNT
lui $1, 0x00001001
ori $t0,$1,0x00000000
# lw $t1, 0($t0)
lui $t1, 0
ori $t1,$t1, 10 # t1(Input register) is initialized to 10.
lui $t0, 0 # init index to 0, Loop counter
loop:
sw $t0, 12($sp) # save caller saved registers
sw $t1, 8($sp) #
move $a0, $t0 # setup parameter for fn call
jal print_num # call subroutine
lw $t1, 8($sp) # restore caller saved values
lw $t0, 12($sp) #
addi $t0, $t0, 1 # increment index;
blt $t0, $t1, loop #
lw $fp, 16($sp) # restore frame pointer
lw $ra, 24($sp) # restore return address
addi $sp, $sp, 32 # restore stack pointer
jr $ra
print_num:
addi $sp, $sp, -32
sw $fp, 16($sp)
sw $s0, 12($sp)
addi $fp, $sp, 28
move $s0, $a0 # store argument in temp variable
lui $v0, 0
ori $v0,$v0, 4
# la $a0, TEXT # point to "This number is "
lui $1, 0x00001001
ori $a0,$1,0x00000004
# syscall # call print_string
lui $v0, 0
ori $v0,$v0, 1
move $a0, $s0 # restore argument $a0
# syscall # call print_int
lui $v0, 0
ori $v0,$v0, 4
# la $a0, EOL # point to "\n"
lui $1, 0x00001001
ori $a0,$1,0x00000013
# syscall # call print_string
lw $s0, 12($sp)
lw $fp, 16($sp)
addi $sp, $sp, 32
jr $ra # jump to return address
|
||||
TheStack | e0f778eac326fb7fa25f8e1a177d5bcc1884acef | Assemblycode:Assembly | {"size": 1565, "ext": "asm", "max_stars_repo_path": "20180815/DailyTest/bubbleSort.asm", "max_stars_repo_name": "jJayyyyyyy/USTC-2018-Summer-Course", "max_stars_repo_stars_event_min_datetime": "2018-08-04T15:13:13.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-05T22:43:29.000Z", "max_issues_repo_path": "20180815/DailyTest/bubbleSort.asm", "max_issues_repo_name": "jJayyyyyyy/USTC-2018-Summer-Course", "max_issues_repo_issues_event_min_datetime": "2018-08-06T03:55:50.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-06T04:43:29.000Z", "max_forks_repo_path": "20180815/DailyTest/bubbleSort.asm", "max_forks_repo_name": "jJayyyyyyy/USTC-2018-Summer-Course", "max_forks_repo_forks_event_min_datetime": "2018-08-05T01:00:43.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-05T22:43:32.000Z"} | {"max_stars_count": 15, "max_issues_count": 1, "max_forks_count": 5, "avg_line_length": 14.9047619048, "max_line_length": 69, "alphanum_fraction": 0.5539936102} | dataseg segment
arr db '7', '3', '2', '8', '9', '1', '4', '5', '6', '0', 13, 10, '$'
dataseg ends
stackseg segment stack ; 要在最后加上 stack, 否则无法建立堆
s dw 1 dup(0)
stackseg ends
codeseg segment
assume cs:codeseg, ds:dataseg, ss:stackseg
start:
mov ax, dataseg
mov ds, ax
mov ax, stackseg
mov ss, ax
mov sp, 10h ; 栈顶指针, 栈向上生长(高地址->低地址)
; 通过 getUsername 可以对用户输入的 0~9 进行排序
getUsername:
mov cx, 10 ; 由用户输入10个数字
mov bx, offset arr ; 此处等效于 mov bx, 0
L0:
mov ah, 1 ; 带回显的键盘输入
int 21h ; 系统调用
mov ds:[bx], al ; 等效于 mov [bx], al
inc bx
loop L0
mov dl, 10 ; 先回车换行 '\n'
mov ah, 2
int 21h
;lea dx, arr ;
;mov ah, 09h
;int 21h
bubbleSort:
mov cx, 9 ; 10个数, 9次,
; i 从0开始, 每次 a[i] vs a[i+1]
L1: ; 外层循环 cx 次
push cx
; sub cx, 1 ; 思考: 如果去掉这行的注释会怎么样,如何证明
cmp cx, 0
jz output
mov bx, offset arr
mov ax, 0
L2: ; 外层循环 cx - 1 次
mov al, [bx]
mov ah, [bx+1]
cmp al, ah
jbe next ; continue, 从小到大
;jae next ; contunue, 从大到小
;mov dl, al
;mov al, ah
;mov ah, dl
xchg al, ah
mov [bx], al
mov [bx+1], ah
next:
nop
add bx, 1;
loop L2
pop cx
loop L1 ; 做完一次循环,cx--, 若cx==0则退出, 参考<汇编语言> P100
output:
lea dx, arr
mov ah, 09h
int 21h
mov ah, 4ch
int 21h
codeseg ends
end start
; 对10个数进行冒泡排序, 修改 L57~L58 可改变排序方式(大->小, 小->大)
;
; C语言表达
; for( int i = 0; i < n; i++ ){
; for( int j = 0; j < n-i; j++ ){
; if( a[j] > a[j+1] ){
; swap(...);
; }
; }
; }
; TODO:
; 由用户输入 n, 并输入 n 个待排序数字
; string -> int, 如用户输入"12", 则要将其转化为 dw/dd 12
; 设置 stack 大小
|
||||
TheStack | 6afece9c24dfd94ca68e1edb70de171f39c7adc2 | Assemblycode:Assembly | {"size": 12438, "ext": "asm", "max_stars_repo_path": "mibench/office/ghostscript/src/iutilasm.asm", "max_stars_repo_name": "hyu-iot/gem5", "max_stars_repo_stars_event_min_datetime": "2017-01-20T15:25:54.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-17T00:28:31.000Z", "max_issues_repo_path": "mibench/office/ghostscript/src/iutilasm.asm", "max_issues_repo_name": "hyu-iot/gem5", "max_issues_repo_issues_event_min_datetime": "2019-08-27T14:43:46.000Z", "max_issues_repo_issues_event_max_datetime": "2020-12-16T11:56:19.000Z", "max_forks_repo_path": "mibench/office/ghostscript/src/iutilasm.asm", "max_forks_repo_name": "hyu-iot/gem5", "max_forks_repo_forks_event_min_datetime": "2019-08-30T14:29:16.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-21T18:22:13.000Z"} | {"max_stars_count": 28, "max_issues_count": 80, "max_forks_count": 98, "avg_line_length": 17.8450502152, "max_line_length": 78, "alphanum_fraction": 0.6718121885} | ; Copyright (C) 1989, 1992, 1993 Aladdin Enterprises. All rights reserved.
;
; This file is part of Aladdin Ghostscript.
;
; Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
; or distributor accepts any responsibility for the consequences of using it,
; or for whether it serves any particular purpose or works at all, unless he
; or she says so in writing. Refer to the Aladdin Ghostscript Free Public
; License (the "License") for full details.
;
; Every copy of Aladdin Ghostscript must include a copy of the License,
; normally in a plain ASCII text file named PUBLIC. The License grants you
; the right to copy, modify and redistribute Aladdin Ghostscript, but only
; under certain conditions described in the License. Among other things, the
; License requires that the copyright notice and this notice be preserved on
; all copies.
; iutilasm.asm
; Assembly code for Ghostscript interpreter on MS-DOS systems
ifdef FOR80386
.286c
endif
utilasm_TEXT SEGMENT WORD PUBLIC 'CODE'
ASSUME CS:utilasm_TEXT
ifdef FOR80386
; Macro for 32-bit operand prefix.
OP32 macro
db 66h
endm
endif ; FOR80386
; Clear a register
clear macro reg
xor reg,reg
endm
ifdef FOR80386
; Replace the multiply and divide routines in the Turbo C library
; if we are running on an 80386.
; Macro to swap the halves of a 32-bit register.
; Unfortunately, masm won't allow a shift instruction with a count of 16,
; so we have to code it in hex.
swap macro regno
OP32
db 0c1h,0c0h+regno,16 ; rol regno,16
endm
regax equ 0
regcx equ 1
regdx equ 2
regbx equ 3
; Multiply (dx,ax) by (cx,bx) to (dx,ax).
PUBLIC LXMUL@
PUBLIC F_LXMUL@
F_LXMUL@ proc far
LXMUL@ proc far
swap regdx
mov dx,ax
swap regcx
mov cx,bx
OP32
db 0fh,0afh,0d1h ; imul dx,cx
OP32
mov ax,dx
swap regdx
ret
LXMUL@ endp
F_LXMUL@ endp
; Divide two stack operands, leave the result in (dx,ax).
ifdef DEBUG
setup32 macro
mov bx,sp
push bp
mov bp,sp
OP32
mov ax,ss:[bx+4] ; dividend
endm
ret32 macro n
mov sp,bp
pop bp
ret n
endm
else ; !DEBUG
setup32 macro
mov bx,sp
OP32
mov ax,ss:[bx+4] ; dividend
endm
ret32 macro n
ret n
endm
endif ; (!)DEBUG
PUBLIC LDIV@, LUDIV@, LMOD@, LUMOD@
PUBLIC F_LDIV@, F_LUDIV@, F_LMOD@, F_LUMOD@
F_LDIV@ proc far
LDIV@ proc far
setup32
OP32
cwd
OP32
idiv word ptr ss:[bx+8] ; divisor
OP32
mov dx,ax
swap regdx
ret32 8
LDIV@ endp
F_LDIV@ endp
F_LUDIV@ proc far
LUDIV@ proc far
setup32
OP32
xor dx,dx
OP32
div word ptr ss:[bx+8] ; divisor
OP32
mov dx,ax
swap regdx
ret32 8
LUDIV@ endp
F_LUDIV@ endp
F_LMOD@ proc far
LMOD@ proc far
setup32
OP32
cwd
OP32
idiv word ptr ss:[bx+8] ; divisor
OP32
mov ax,dx
swap regdx
ret32 8
LMOD@ endp
F_LMOD@ endp
F_LUMOD@ proc far
LUMOD@ proc far
setup32
OP32
xor dx,dx
OP32
div word ptr ss:[bx+8] ; divisor
OP32
mov ax,dx
swap regdx
ret32 8
LUMOD@ endp
F_LUMOD@ endp
else ; !FOR80386
; Replace the divide routines in the Turbo C library,
; which do the division one bit at a time (!).
PUBLIC LDIV@, LMOD@, LUDIV@, LUMOD@
PUBLIC F_LDIV@, F_LMOD@, F_LUDIV@, F_LUMOD@
; Negate a long on the stack.
negbp macro offset
neg word ptr [bp+offset+2] ; high part
neg word ptr [bp+offset] ; low part
sbb word ptr [bp+offset+2],0
endm
; Negate a long in (dx,ax).
negr macro
neg dx
neg ax
sbb dx,0
endm
; Divide two unsigned longs on the stack.
; Leave either the quotient or the remainder in (dx,ax).
; Operand offsets assume that bp (and only bp) has been pushed.
nlo equ 6
nhi equ 8
dlo equ 10
dhi equ 12
; We use an offset in bx to distinguish div from mod,
; and to indicate whether the result should be negated.
odiv equ 0
omod equ 2
odivneg equ 4
omodneg equ 6
F_LMOD@ proc far
LMOD@ proc far
push bp
mov bp,sp
mov bx,omod
; Take abs of denominator
cmp byte ptr [bp+dhi+1],bh ; bh = 0
jge modpd
negbp dlo
modpd: ; Negate mod if numerator < 0
cmp byte ptr [bp+nhi+1],bh ; bh = 0
jge udiv
mov bx,omodneg
negnum: negbp nlo
jmp udiv
LMOD@ endp
F_LMOD@ endp
F_LUMOD@ proc far
LUMOD@ proc far
mov bx,omod
jmp udpush
LUMOD@ endp
F_LUMOD@ endp
F_LDIV@ proc far
LDIV@ proc far
push bp
mov bp,sp
mov bx,odiv
; Negate quo if num^den < 0
mov ax,[bp+nhi]
xor ax,[bp+dhi]
jge divabs
mov bx,odivneg
divabs: ; Take abs of denominator
cmp byte ptr [bp+dhi+1],bh ; bh = 0
jge divpd
negbp dlo
divpd: ; Take abs of numerator
cmp byte ptr [bp+nhi+1],bh ; bh = 0
jge udiv
jmp negnum
LDIV@ endp
F_LDIV@ endp
F_LUDIV@ proc far
LUDIV@ proc far
mov bx,odiv
udpush: push bp
mov bp,sp
udiv: push bx ; odiv, omod, odivneg, omodneg
mov ax,[bp+nlo]
mov dx,[bp+nhi]
mov bx,[bp+dlo]
mov cx,[bp+dhi]
; Now we are dividing dx:ax by cx:bx.
; Check to see whether this is really a 32/16 division.
or cx,cx
jnz div2
; 32/16, check for 16- vs. 32-bit quotient
cmp dx,bx
jae div1
; 32/16 with 16-bit quotient, just do it.
div bx ; ax = quo, dx = rem
pop bx
pop bp
jmp cs:xx1[bx]
even
xx1 dw offset divx1
dw offset modx1
dw offset divx1neg
dw offset modx1neg
modx1: mov ax,dx
divx1: xor dx,dx
ret 8
modx1neg: mov ax,dx
divx1neg: xor dx,dx
rneg: negr
ret 8
; 32/16 with 32-bit quotient, do in 2 parts.
div1: mov cx,ax ; save lo num
mov ax,dx
xor dx,dx
div bx ; ax = hi quo
xchg cx,ax ; save hi quo, get lo num
div bx ; ax = lo quo, dx = rem
pop bx
pop bp
jmp cs:xx1a[bx]
even
xx1a dw offset divx1a
dw offset modx1
dw offset divx1aneg
dw offset modx1neg
divx1a: mov dx,cx ; hi quo
ret 8
divx1aneg: mov dx,cx
jmp rneg
; This is really a 32/32 bit division.
; (Note that the quotient cannot exceed 16 bits.)
; The following algorithm is taken from pp. 235-240 of Knuth, vol. 2
; (first edition).
; Start by normalizing the numerator and denominator.
div2: or ch,ch
jz div21 ; ch == 0, but cl != 0
; Do 8 steps all at once.
mov bl,bh
mov bh,cl
mov cl,ch
xor ch,ch
mov al,ah
mov ah,dl
mov dl,dh
xor dh,dh
rol bx,1 ; faster than jmp
div2a: rcr bx,1 ; finish previous shift
div21: shr dx,1
rcr ax,1
shr cx,1
jnz div2a
rcr bx,1
; Now we can do a 32/16 divide.
div2x: div bx ; ax = quo, dx = rem
; Multiply by the denominator, and correct the result.
mov cx,ax ; save quotient
mul word ptr [bp+dhi]
mov bx,ax ; save lo part of hi product
mov ax,cx
mul word ptr [bp+dlo]
add dx,bx
; Now cx = trial quotient, (dx,ax) = cx * denominator.
not dx
neg ax
cmc
adc dx,0 ; double-precision neg
jc divz ; zero quotient
; requires special handling
add ax,[bp+nlo]
adc dx,[bp+nhi]
jc divx
; Quotient is too large, adjust it.
div3: dec cx
add ax,[bp+dlo]
adc dx,[bp+dhi]
jnc div3
; All done. (dx,ax) = remainder, cx = lo quotient.
divx: pop bx
pop bp
jmp cs:xx3[bx]
even
xx3 dw offset divx3
dw offset modx3
dw offset divx3neg
dw offset modx3neg
divx3: mov ax,cx
xor dx,dx
modx3: ret 8
divx3neg: mov ax,cx
xor dx,dx
modx3neg: jmp rneg
; Handle zero quotient specially.
divz: pop bx
jmp cs:xxz[bx]
even
xxz dw offset divxz
dw offset modxz
dw offset divxz
dw offset modxzneg
divxz: pop bp
ret 8
modxzneg: negbp nlo
modxz: mov ax,[bp+nlo]
mov dx,[bp+nhi]
pop bp
ret 8
LUDIV@ endp
F_LUDIV@ endp
endif ; FOR80386
ifdef NOFPU
; See gsmisc.c for the C version of this code.
; /*
; * Floating multiply with fixed result, for avoiding floating point in
; * common coordinate transformations. Assumes IEEE representation,
; * 16-bit short, 32-bit long. Optimized for the case where the first
; * operand has no more than 16 mantissa bits, e.g., where it is a user space
; * coordinate (which are often integers).
; *
; * The assembly language version of this code is actually faster than
; * the FPU, if the code is compiled with FPU_TYPE=0 (which requires taking
; * a trap on every FPU operation). If there is no FPU, the assembly
; * language version of this code is over 10 times as fast as the
; * emulated FPU.
; */
; fixed
; fmul2fixed_(long /*float*/ a, long /*float*/ b)
; {
PUBLIC _fmul2fixed_
_fmul2fixed_ proc far
push bp
mov bp,sp
a equ 6
alo equ a
ahi equ a+2
b equ 10
blo equ b
bhi equ b+2
push si ; will hold ma
push di ; will hold mb
; int e = 260 + _fixed_shift - ((
; (((uint)(a >> 16)) & 0x7f80) + (((uint)(b >> 16)) & 0x7f80)
; ) >> 7);
mov dx,[bp+ahi]
; dfmul2fixed enters here
fmf: mov cx,260+12
mov ax,[bp+bhi]
and ax,7f80h
and dx,7f80h
add ax,dx
xchg ah,al ; ror ax,7 without using cl
rol ax,1
sub cx,ax
push cx ; e
; ulong ma = (ushort)(a >> 8) | 0x8000;
; ulong mb = (ushort)(b >> 8) | 0x8000;
mov si,[bp+alo+1] ; unaligned
clear ax
mov di,[bp+blo+1] ; unaligned
or si,8000h
or di,8000h
; ulong p1 = ma * (b & 0xff);
mov al,[bp+blo]
mul si
; (Do this later:)
; ulong p = ma * mb;
; if ( (byte)a ) /* >16 mantissa bits */
cmp byte ptr [bp+alo],0
je mshort
; { ulong p2 = (a & 0xff) * mb;
; p += ((((uint)(byte)a * (uint)(byte)b) >> 8) + p1 + p2) >> 8;
mov cx,dx
mov bx,ax
clear ax
mov al,[bp+alo]
clear dx
mov dl,[bp+blo]
mul dx
mov dl,ah ; dx is zero
add bx,cx
adc cx,0
clear ax
mov al,[bp+alo]
mul di
add ax,bx
adc dx,cx
; }
mshort:
; else
; p += p1 >> 8;
mov bl,ah ; set (cx,bx) = (dx,ax) >> 8
mov bh,dl
clear cx
mov cl,dh
mov ax,si
mul di
add ax,bx
adc dx,cx
; if ( (uint)e < 32 ) /* e = -1 is possible */
pop cx ; e
cmp cx,16
jb shr1
; else if ( e >= 32 ) /* also detects a=0 or b=0 */
cmp cx,0
jl eneg
sub cx,16
cmp cx,16
jge shr0
mov ax,dx
clear dx
shr ax,cl
jmp ex
; return fixed_0;
shr0: clear ax
clear dx
jmp ex
; else
; p <<= -e;
even
eneg: neg cx
shl dx,cl
mov bx,ax
shl ax,cl
rol bx,cl
xor bx,ax
add dx,bx
jmp ex
; p >>= e;
even
shr1: shr ax,cl
mov bx,dx
shr dx,cl
ror bx,cl
xor bx,dx
add ax,bx
ex:
; return ((a ^ b) < 0 ? -p : p);
mov cx,[bp+ahi]
xor cx,[bp+bhi]
jge pos
neg dx
neg ax
sbb dx,0
pos:
; }
retu: pop di
pop si
mov sp,bp
pop bp
ret
_fmul2fixed_ ENDP
; The same routine with the first argument a double rather than a float.
; The argument is split into two pieces to reduce data movement.
PUBLIC _dfmul2fixed_
_dfmul2fixed_ proc far
push bp
mov bp,sp
xalo equ 6
;b equ 10
xahi equ 14
push si ; overlap this below
push di ; ditto
; Shuffle the arguments and then use fmul2fixed.
; Squeeze 3 exponent bits out of the top 35 bits of a.
mov dx,[bp+xahi+2]
mov bx,0c000h
mov ax,[bp+xahi]
and bx,dx
mov cx,[bp+xalo+2]
and dx,7ffh ; get rid of discarded bits
add cx,cx ; faster than shl!
jz cz ; detect common case
adc ax,ax ; faster than rcl!
adc dx,dx
add cx,cx
adc ax,ax
adc dx,dx
add cx,cx
adc ax,ax
mov [bp+alo],ax
adc dx,dx
or dx,bx
mov [bp+ahi],dx
jmp fmf
even
cz: adc ax,ax
adc dx,dx
add ax,ax
adc dx,dx
add ax,ax
mov [bp+alo],ax
adc dx,dx
or dx,bx
mov [bp+ahi],dx
jmp fmf
_dfmul2fixed_ ENDP
endif ; NOFPU
; Transpose an 8x8 bit matrix. See gsmisc.c for the algorithm in C.
PUBLIC _memflip8x8
_memflip8x8 proc far
push ds
push si
push di
; After pushing, the offsets of the parameters are:
; byte *inp=10, int line_size=14, byte *outp=16, int dist=20.
mov si,sp
mov di,ss:[si+14] ; line_size
lds si,ss:[si+10] ; inp
; We assign variables to registers as follows:
; ax = AE, bx = BF, cx (or di) = CG, dx = DH.
; Load the input data. Initially we assign
; ax = AB, bx = EF, cx (or di) = CD, dx = GH.
mov ah,[si]
iload macro reg
add si,di
mov reg,[si]
endm
iload al
iload ch
iload cl
iload bh
iload bl
iload dh
iload dl
; Transposition macro, see C code for explanation.
trans macro reg1,reg2,shift,mask
mov si,reg1
shr si,shift
xor si,reg2
and si,mask
xor reg2,si
shl si,shift
xor reg1,si
endm
; Do 4x4 transpositions
mov di,cx ; we need cl for the shift count
mov cl,4
trans bx,ax,cl,0f0fh
trans dx,di,cl,0f0fh
; Swap B/E, D/G
xchg al,bh
mov cx,di
xchg cl,dh
; Do 2x2 transpositions
mov di,cx ; need cl again
mov cl,2
trans di,ax,cl,3333h
trans dx,bx,cl,3333h
mov cx,di ; done shifting >1
; Do 1x1 transpositions
trans bx,ax,1,5555h
trans dx,cx,1,5555h
; Store result
mov si,sp
mov di,ss:[si+20] ; dist
lds si,ss:[si+16] ; outp
mov [si],ah
istore macro reg
add si,di
mov [si],reg
endm
istore bh
istore ch
istore dh
istore al
istore bl
istore cl
istore dl
; All done
pop di
pop si
pop ds
ret
_memflip8x8 ENDP
utilasm_TEXT ENDS
END
|
||||
TheStack | 9b078b128507647bf6a3fb28f055f282764b3296 | Assemblycode:Assembly | {"size": 6777, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1790.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1790.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1790.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 35.296875, "max_line_length": 2999, "alphanum_fraction": 0.6594363288} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1c906, %r10
nop
nop
nop
nop
inc %r12
movb (%r10), %al
nop
nop
nop
nop
xor $24619, %r15
lea addresses_WC_ht+0x1b006, %r8
clflush (%r8)
nop
nop
nop
nop
inc %r15
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
vmovups %ymm7, (%r8)
dec %r8
lea addresses_D_ht+0x1b806, %r10
nop
and %r12, %r12
vmovups (%r10), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %rdi
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_A_ht+0x1d806, %rax
nop
nop
nop
nop
nop
xor %r13, %r13
movb (%rax), %r12b
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_D_ht+0x11464, %r8
nop
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, (%r8)
xor $8875, %rdi
lea addresses_WC_ht+0xae80, %rax
clflush (%rax)
nop
nop
nop
nop
dec %r13
mov $0x6162636465666768, %r15
movq %r15, %xmm2
movups %xmm2, (%rax)
nop
nop
nop
xor %r12, %r12
lea addresses_D_ht+0x7c06, %rsi
lea addresses_A_ht+0x13cd6, %rdi
clflush (%rsi)
nop
nop
nop
add $9983, %r13
mov $119, %rcx
rep movsl
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x4c06, %r8
nop
nop
lfence
movw $0x6162, (%r8)
nop
nop
nop
cmp $57658, %rdi
lea addresses_normal_ht+0x9d86, %rsi
lea addresses_WT_ht+0xdc66, %rdi
nop
nop
nop
nop
nop
xor %r12, %r12
mov $100, %rcx
rep movsq
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x1a882, %rax
nop
nop
nop
cmp %r15, %r15
movw $0x6162, (%rax)
cmp %rcx, %rcx
lea addresses_WC_ht+0xd1a6, %rcx
nop
nop
inc %r12
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
nop
nop
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %rax
push %rcx
push %rdi
// Faulty Load
lea addresses_RW+0x8006, %rdi
nop
sub $24038, %rcx
movups (%rdi), %xmm3
vpextrq $0, %xmm3, %r11
lea oracles, %rcx
and $0xff, %r11
shlq $12, %r11
mov (%rcx,%r11,1), %r11
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 2, 'NT': True, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
||||
TheStack | 3460bf71f0231f53b269b722a263a0b469486526 | Assemblycode:Assembly | {"size": 1579, "ext": "asm", "max_stars_repo_path": "Third_Year/Compilers/testing/double_basic_tests/add_2.asm", "max_stars_repo_name": "danielcorreia96/LEIC_Projects", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Third_Year/Compilers/testing/double_basic_tests/add_2.asm", "max_issues_repo_name": "danielcorreia96/LEIC_Projects", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Third_Year/Compilers/testing/double_basic_tests/add_2.asm", "max_forks_repo_name": "danielcorreia96/LEIC_Projects", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.3813559322, "max_line_length": 21, "alphanum_fraction": 0.7067764408} | segment .text
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 4
segment .rodata
align 4
_L1:
dq 1.50000
segment .text
push dword $_L1
pop eax
push dword [eax+4]
push dword [eax]
call printd
add esp, 8
call println
segment .rodata
align 4
_L2:
dq 25.0000
segment .text
push dword $_L2
pop eax
push dword [eax+4]
push dword [eax]
call printd
add esp, 8
call println
segment .rodata
align 4
_L3:
dq 1.50000
segment .text
push dword $_L3
pop eax
push dword [eax+4]
push dword [eax]
segment .rodata
align 4
_L4:
dq 25.0000
segment .text
push dword $_L4
pop eax
push dword [eax+4]
push dword [eax]
fld qword [esp]
add esp, byte 8
fld qword [esp]
faddp st1
fstp qword [esp]
call printd
add esp, 8
call println
push dword 2
fild dword [esp]
sub esp, byte 4
fstp qword [esp]
segment .rodata
align 4
_L5:
dq 2.50000
segment .text
push dword $_L5
pop eax
push dword [eax+4]
push dword [eax]
fld qword [esp]
add esp, byte 8
fld qword [esp]
faddp st1
fstp qword [esp]
call printd
add esp, 8
call println
segment .rodata
align 4
_L6:
dq 3.33000
segment .text
push dword $_L6
pop eax
push dword [eax+4]
push dword [eax]
push dword 1
fild dword [esp]
sub esp, byte 4
fstp qword [esp]
fld qword [esp]
add esp, byte 8
fld qword [esp]
faddp st1
fstp qword [esp]
call printd
add esp, 8
call println
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
extern argc
extern argv
extern envp
extern readi
extern readd
extern printi
extern prints
extern printd
extern println
|
||||
TheStack | 0fbcd4496b14d3440f163121794fea2f1d503453 | Assemblycode:Assembly | {"size": 303, "ext": "asm", "max_stars_repo_path": "AVR/multiply_by_2n.asm", "max_stars_repo_name": "StxGuy/EmbeddedSystems", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "AVR/multiply_by_2n.asm", "max_issues_repo_name": "StxGuy/EmbeddedSystems", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "AVR/multiply_by_2n.asm", "max_forks_repo_name": "StxGuy/EmbeddedSystems", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.8333333333, "max_line_length": 44, "alphanum_fraction": 0.5115511551} | .device ATmega328
.org 0x00 ; Program starts at 0x00
rjmp INICIO
; Multiply or divide by 2^n
INICIO: nop
ldi R16,0x08
ldi R17,0x02
LOOP: lsr R16 ; or lsl to multiply
dec R17
breq FIM
rjmp LOOP
FIM: jmp FIM
|
||||
TheStack | 857c05178d5afe1026b24cb0012098793c04c40b | Assemblycode:Assembly | {"size": 493, "ext": "asm", "max_stars_repo_path": "oeis/308/A308863.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/308/A308863.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/308/A308863.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.4090909091, "max_line_length": 229, "alphanum_fraction": 0.7139959432} | ; A308863: Expansion of e.g.f. (1 + LambertW(-x))/(1 + 2*LambertW(-x)).
; Submitted by Jon Maiga
; 1,1,6,57,736,11985,235296,5403937,142073856,4206560769,138483596800,5017244970441,198363105460224,8498001799768273,392127481640165376,19388814120804416625,1022681739669784231936,57317273018414456262273,3401527253966521309200384
mov $1,1
mov $2,1
mov $3,$0
lpb $3
mul $1,$0
mul $2,$3
add $1,$2
mul $2,2
sub $3,1
max $3,1
lpe
mul $1,$0
add $2,$1
mov $0,$2
sub $0,1
div $0,2
add $0,1
|
||||
TheStack | 559be912da929723c0b7eb255e2951dc2e1f667b | Assemblycode:Assembly | {"size": 1352, "ext": "asm", "max_stars_repo_path": "Microprocessor/mouse2.asm", "max_stars_repo_name": "Nmane1612/Nihar-Mane", "max_stars_repo_stars_event_min_datetime": "2019-12-27T06:07:37.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-01T08:51:32.000Z", "max_issues_repo_path": "Microprocessor/mouse2.asm", "max_issues_repo_name": "Nihar16/Personal-Repository", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Microprocessor/mouse2.asm", "max_forks_repo_name": "Nihar16/Personal-Repository", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.191011236, "max_line_length": 65, "alphanum_fraction": 0.6331360947} | ; mouse drawing.
; press left mouse button to draw.
; for a real test click external->run from the emulator's menu.
name "mouse2"
org 100h
jmp start
oldX dw -1
oldY dw 0
start:
mov ah, 00
mov al, 13h ; set screen to 256 colors, 320x200 pixels.
int 10h
; reset mouse and get its status:
mov ax, 0
int 33h
cmp ax, 0
; display mouse cursor:
;mov ax, 1
;int 33h
check_mouse_button:
mov ax, 3
int 33h
shr cx, 1 ; x/2 - in this mode the value of CX is doubled.
cmp bx, 1
jne xor_cursor:
mov al, 1010b ; pixel color
jmp draw_pixel
xor_cursor:
cmp oldX, -1
je not_required
push cx
push dx
mov cx, oldX
mov dx, oldY
mov ah, 0dh ; get pixel.
int 10h
xor al, 1111b ; pixel color
mov ah, 0ch ; set pixel
int 10h
pop dx
pop cx
not_required:
mov ah, 0dh ; get pixel.
int 10h
xor al, 1111b ; pixel color
mov oldX, cx
mov oldY, dx
draw_pixel:
mov ah, 0ch ; set pixel
int 10h
check_esc_key:
mov dl, 255
mov ah, 6
int 21h
cmp al, 27 ; esc?
jne check_mouse_button
stop:
;mov ax, 2 ; hide mouse cursor.
;int 33h
mov ax, 3 ; back to text mode: 80x25
int 10h
; show box-shaped blinking text cursor:
mov ah, 1
mov ch, 0
mov cl, 8
int 10h
mov dx, offset msg
mov ah, 9
int 21h
mov ah, 0
int 16h
ret
msg db " press any key.... $"
|
||||
TheStack | 50aaf2bda79e6c2fd8832cee1b505adb55b210b3 | Assemblycode:Assembly | {"size": 2828, "ext": "asm", "max_stars_repo_path": "src/io.asm", "max_stars_repo_name": "vzwGrey/meiji-os", "max_stars_repo_stars_event_min_datetime": "2021-06-30T02:24:41.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-28T12:08:39.000Z", "max_issues_repo_path": "src/io.asm", "max_issues_repo_name": "vzwGrey/meiji-os", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/io.asm", "max_forks_repo_name": "vzwGrey/meiji-os", "max_forks_repo_forks_event_min_datetime": "2021-07-31T16:25:21.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-31T16:25:21.000Z"} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.0265486726, "max_line_length": 86, "alphanum_fraction": 0.7146393211} | ; ---
;
; This file contains various subroutines for interacting with the screen
; as well as reading input from it.
;
; The print subroutines are in a separate file (print.asm) so they can be loaded
; by the first stage of the bootloader without having to load everything else with it.
;
; ---
%define KEY_BACKSPACE 0x0E
%define KEY_ENTER 0x1C
; Stores the colors to be used when clearing the screen.
SCREEN_COLOR: db 0x07
; Sets the color to be used for any following clear
; operations. New color is to be given via BL.
set_color:
mov byte [SCREEN_COLOR], bl
ret
; Removes all content from the screen and sets every cells color to
; the color set through `set_color` (or light grey on black by default).
; Also moves the cursor to the top-left cell.
clear_screen:
; 0x06 is the scroll function (current screen gets scrolled out of view)
mov ah, 0x06
; 0x00 tells it to completely scroll everything out of view
mov al, 0x00
; Set background color to black and text color to light grey
mov bh, [SCREEN_COLOR]
; Store the coordinates of the top-left cell and the bottom-right
; cells in CX and DX respectively.
mov cx, 0x0000
mov dx, 0x184F
int 0x10
; Now just move the cursor back to the top-left cell.
mov dx, 0x0000
call move_cursor
ret
; Moves the cursor to the specified coordinates
; in DX (DH=Row, DL=Column)
move_cursor:
; Move cursor function
mov ah, 0x02
; Page 0
mov bh, 0x00
int 0x10
ret
; Reads an entire line (terminated by the ENTER key) of input
; into the memory pointed to by DI. Does not attempt to read more
; than one byte less as specified by DL to terminate the input string
; with a NUL character.
readln:
; When pressing backspace you should not be able to
; delete infinite amounts of characters. So keep track of
; how many characters where to write into the buffer in the first place.
mov dh, dl
.loop:
; Read key press
mov ah, 0x00
int 0x16
cmp ah, KEY_BACKSPACE
je .backspace
cmp ah, KEY_ENTER
je .end
cmp dl, 1
je .loop
; Write the character from AL into the memory pointed
; to by DI (stosb). But also print said character to the screen
; so the user knows what they're typing.
stosb
call printc
sub dl, 1
jmp .loop
.backspace:
; If the characters left to read is still the same
; as the max amount of characters allowed then backspace
; should not do anything.
cmp dh, dl
je .loop
; Otherwise go back one character, replace it with a space (empty)
; and then go back a character again (print a space will have moved us forwards).
; Afterwards also decrease the pointer in DI.
; Then we're ready to read new input again.
mov al, `\b`
call printc
mov al, ' '
call printc
mov al, `\b`
call printc
add dl, 1
sub di, 1
jmp .loop
.end:
mov al, 0
stosb
ret
|
||||
TheStack | 4f0ebecc05fb391ba233a7e1968b0f61c4d802cf | Assemblycode:Assembly | {"size": 7851, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_660.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_660.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_660.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 32.4421487603, "max_line_length": 2999, "alphanum_fraction": 0.652400968} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x13da6, %rsi
nop
nop
nop
inc %rax
mov $0x6162636465666768, %r11
movq %r11, (%rsi)
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0x1b40b, %rsi
lea addresses_A_ht+0x17baa, %rdi
nop
sub %rbp, %rbp
mov $73, %rcx
rep movsl
cmp %rbp, %rbp
lea addresses_D_ht+0x120ae, %rbp
nop
nop
nop
nop
xor $41347, %r11
mov $0x6162636465666768, %rdi
movq %rdi, (%rbp)
nop
nop
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0xaf66, %rdi
nop
nop
nop
xor $42422, %rsi
mov (%rdi), %rbp
nop
nop
nop
sub %rcx, %rcx
lea addresses_A_ht+0x1cf26, %rbp
nop
nop
nop
nop
sub $40188, %r8
movb (%rbp), %r11b
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_WT_ht+0x1e596, %r8
nop
nop
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, (%r8)
nop
nop
sub $14131, %rsi
lea addresses_WT_ht+0x109a6, %r8
add $31199, %rbp
mov (%r8), %eax
nop
cmp $10259, %rsi
lea addresses_WT_ht+0x1afa6, %rsi
dec %rbp
movb (%rsi), %al
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x1648e, %rcx
nop
nop
nop
cmp $61208, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%rcx)
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x6a36, %r11
nop
nop
dec %rsi
movb (%r11), %al
nop
and %rdi, %rdi
lea addresses_WT_ht+0x1e090, %r11
nop
cmp %rax, %rax
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%r11)
nop
nop
nop
nop
dec %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rbp
push %rcx
push %rdx
// Load
lea addresses_RW+0xffa6, %r14
nop
nop
nop
cmp $11431, %r12
vmovups (%r14), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r8
dec %rcx
// Store
lea addresses_WT+0x138a6, %rbp
sub $669, %r11
mov $0x5152535455565758, %r14
movq %r14, %xmm4
vmovups %ymm4, (%rbp)
nop
nop
nop
nop
cmp $43986, %r14
// Store
lea addresses_WC+0x8e06, %r8
mfence
mov $0x5152535455565758, %r14
movq %r14, %xmm4
movups %xmm4, (%r8)
and $22213, %rcx
// Load
lea addresses_D+0x18fa6, %r14
nop
nop
cmp %r8, %r8
movb (%r14), %r12b
nop
nop
nop
nop
nop
cmp $47301, %r11
// Store
lea addresses_normal+0x1d3a6, %r12
clflush (%r12)
nop
nop
nop
add %r11, %r11
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
and %r14, %r14
// Faulty Load
lea addresses_RW+0xffa6, %r8
xor %r14, %r14
mov (%r8), %cx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
||||
TheStack | ae5cd6ad634cb42623f1ff2b46eb12ad9477e930 | Assemblycode:Assembly | {"size": 6204, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xa0.log_21829_435.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xa0.log_21829_435.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xa0.log_21829_435.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 38.775, "max_line_length": 2999, "alphanum_fraction": 0.6578014184} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x16f1b, %r14
nop
sub %r9, %r9
movl $0x61626364, (%r14)
nop
xor %r13, %r13
lea addresses_WT_ht+0x15943, %rsi
lea addresses_WT_ht+0x19143, %rdi
nop
nop
nop
nop
and $40724, %r15
mov $6, %rcx
rep movsw
nop
sub $60053, %r15
lea addresses_WC_ht+0x188d3, %rsi
lea addresses_UC_ht+0x19a3f, %rdi
nop
nop
nop
nop
add $50078, %r14
mov $36, %rcx
rep movsw
nop
nop
nop
nop
nop
dec %r13
lea addresses_normal_ht+0x7a43, %r9
nop
nop
nop
nop
nop
cmp $28173, %r15
movups (%r9), %xmm1
vpextrq $0, %xmm1, %rsi
add $31793, %rdi
lea addresses_normal_ht+0x13943, %r13
nop
nop
sub %rcx, %rcx
movups (%r13), %xmm4
vpextrq $1, %xmm4, %rsi
nop
nop
lfence
lea addresses_A_ht+0xb143, %rsi
lea addresses_normal_ht+0x16993, %rdi
nop
nop
nop
xor %r15, %r15
mov $109, %rcx
rep movsl
and %r14, %r14
lea addresses_UC_ht+0xb343, %r9
nop
and $57517, %rdi
movb $0x61, (%r9)
nop
nop
dec %r9
lea addresses_UC_ht+0x1ad03, %r13
nop
nop
and %rdi, %rdi
mov (%r13), %rsi
nop
nop
nop
inc %r13
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rcx
push %rdx
// Store
mov $0x1816d70000000c63, %rcx
nop
nop
nop
nop
nop
sub %r13, %r13
movw $0x5152, (%rcx)
nop
nop
nop
nop
xor %r8, %r8
// Faulty Load
lea addresses_WT+0x8143, %rdx
nop
cmp $29109, %rax
movups (%rdx), %xmm4
vpextrq $1, %xmm4, %r8
lea oracles, %r15
and $0xff, %r8
shlq $12, %r8
mov (%r15,%r8,1), %r8
pop %rdx
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}}
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}}
{'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'44': 14805, '45': 79, '00': 6945}
00 44 45 44 44 44 44 44 44 00 00 45 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 00 44 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 00 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 44 00 44 00 44 44 44 00 44 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 44 44 00 44 44 44 44 44 44 44 44 44 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 00 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 00 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 44 44 44 44 44 44 44 44 00 00 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 00 44 44 44 00 00 44 44 44 44 00 44 00 44 44 44 00 00 44 44 44 44 44 44 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 44 44 44 44 00 00 00 44 44 44 00 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 44 44 44 00 00 44 44 44 00 00 44 44 44 00 00 44 44 44 44 00 44 44 44 00 00 44 44 44
*/
|
||||
TheStack | b45e4f596792e33bc3920a2c4d5762a4dba044b6 | Assemblycode:Assembly | {"size": 2299, "ext": "asm", "max_stars_repo_path": "software/pcx86/test/cpu/id.asm", "max_stars_repo_name": "jriwanek-forks/pcjs", "max_stars_repo_stars_event_min_datetime": "2015-01-12T21:43:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T15:04:16.000Z", "max_issues_repo_path": "software/pcx86/test/cpu/id.asm", "max_issues_repo_name": "jriwanek-forks/pcjs", "max_issues_repo_issues_event_min_datetime": "2015-01-06T11:52:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T18:14:28.000Z", "max_forks_repo_path": "software/pcx86/test/cpu/id.asm", "max_forks_repo_name": "jriwanek-forks/pcjs", "max_forks_repo_forks_event_min_datetime": "2015-02-01T20:23:27.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T21:58:48.000Z"} | {"max_stars_count": 711, "max_issues_count": 98, "max_forks_count": 152, "avg_line_length": 14.4591194969, "max_line_length": 43, "alphanum_fraction": 0.5315354502} | bits 16
cpu 8086
CPU_86 equ 0
CPU_NEC equ 1
CPU_186 equ 2
CPU_286 equ 3
CPU_386 equ 4
section code start=0 vstart=0x100
start:
mov dx, .tcpu
call print
call getcpu
cbw
push ax
xchg si, ax
shl si, 1
mov dx, [si+.tt]
call print
pop ax
cmp al, CPU_286
jnb .getmsw
int 0x20
cpu 286
.getmsw:
push ax
mov dx, .tmsw
call print
smsw ax
call hex2
mov dx, .tibase
call print
sub sp, 6
mov bp, sp
sidt [bp]
pop cx
pop dx
pop ax
call hex2
xchg ax, dx
call hex2
mov dx, .tilimit
call print
xchg ax, cx
call hex2
pop ax
cmp al, CPU_386
jnb .getcr
int 0x20
cpu 386
.getcr:
push ax
mov dx, .tcr0
call print
mov eax, cr0
push eax
call hex3
mov dx, .tccr0
call print
xor eax, eax
mov cr0, eax
jmp $+2 ; just in case...
mov eax, cr0
pop ecx
mov cr0, ecx
jmp $+2
call hex3
pop ax
int 0x20
cpu 8086
section data follows=code vfollows=code
.tcpu: db "CPU: $"
.tt: dw .t86,.tnec,.t186,.t286,.t386
.t86: db "8088/8086$"
.tnec: db "V20/V30$"
.t186: db "188/186$"
.t286: db "286$"
.t386: db "386+$"
.tmsw: db 13,10,"MSW: 0x$"
.tibase: db 13,10,"IDTR: base 0x$"
.tilimit: db " limit 0x$"
.tcr0: db 13,10,"CR0: 0x$"
.tccr0: db 13,10,"Cleared CR0: 0x$"
section code
print:
mov ah, 0x09
int 0x21
ret
getcpu:
sub sp, 6
push sp
pop bp
cmp sp, bp
je ._286
mov ax, -1
mov cl, 0x21
shr ax, cl
or al, al
mov al, CPU_186
jnz .done
mov ax, 0x101
aad 0x10
cmp al, 0x11
mov al, CPU_NEC
jne .done
mov al, CPU_86
.done:
add sp, 6
ret
._286:
cpu 286
sidt [bp]
pop ax
pop ax
pop ax
or ah, ah
mov al, CPU_286
jnz .done2
mov al, CPU_386
.done2:
ret
cpu 8086
hex2:
cpu 286
pusha
mov bx, ax
mov cx, 4
.hexloop:
rol bx, 4
mov ax, bx
and al, 0x0f
cmp al, 0x0a
sbb al, 0x69
das
xchg ax, dx
mov ah, 0x02
int 0x21
loop .hexloop
popa
ret
cpu 8086
hex3:
cpu 386
rol eax, 16
call hex2
rol eax, 16
jmp hex2
cpu 8086 |
||||
TheStack | bef4b9fb346b75fd46600534a42d156f38a765ae | Assemblycode:Assembly | {"size": 233, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_resize_callee.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_resize_callee.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_resize_callee.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.5625, "max_line_length": 51, "alphanum_fraction": 0.7553648069} |
; int w_array_resize_callee(w_array_t *a, size_t n)
SECTION code_adt_w_array
PUBLIC _w_array_resize_callee
_w_array_resize_callee:
pop af
pop hl
pop de
push af
INCLUDE "adt/w_array/z80/asm_w_array_resize.asm"
|
||||
TheStack | 408c08deb352be81433c088dde4611b41afd343f | Assemblycode:Assembly | {"size": 2692, "ext": "asm", "max_stars_repo_path": "vm/asm_constructions_test/SimpleAddConstructionTest.asm", "max_stars_repo_name": "MarkoVMicic/nand2tetris-solutions", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "vm/asm_constructions_test/SimpleAddConstructionTest.asm", "max_issues_repo_name": "MarkoVMicic/nand2tetris-solutions", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "vm/asm_constructions_test/SimpleAddConstructionTest.asm", "max_forks_repo_name": "MarkoVMicic/nand2tetris-solutions", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.5128205128, "max_line_length": 78, "alphanum_fraction": 0.4520802377} | // Initialize stack pointer to start at 256 (i.e. RAM[0] contains 256)
@256
D=A
@SP
M=D
// Current Stack:
// address | memory
// SP -> 256 | ???
// 257 | ???
// 258 | ???
// 259 | ???
// 260 | ???
// VM Code:
// push constant 7
@7 // A:7 M:? D:? Constant fetch, A contains 7
D=A // A:7 M:? D:7 Puts 7 from A into D
@SP // A:0 M:256 D:7 A contains address of stack pointer (i.e. 0)
A=M // A:256 M:256 D:7 A contains address of stack pointer
M=D // A:256 M:7 D:7 Place that stack pointer points to now contains 7
@SP // A:0 M:256 D:7 M contains address of stack pointer
M=M+1 // A:0 M:257 D:7 Stack pointer is now incremented to 257
// Current Stack:
// address | memory
// 256 | 7
// SP -> 257 | ???
// 258 | ???
// 259 | ???
// 260 | ???
// 261 | ???
// VM Code:
// push constant 8
@8 // A:8 M:? D:7 Constant fetch, A contains 8
D=A // A:8 M:? D:8 Puts 8 from A into D
@SP // A:0 M:257 D:8 A contains address of stack pointer (i.e. 0)
A=M // A:257 M:257 D:8 A contains address of stack pointer
M=D // A:257 M:8 D:8 Place that stack pointer points to now contains 8
@SP // A:0 M:257 D:8 M contains address of stack pointer
M=M+1 // A:0 M:258 D:8 Stack pointer is now incremented to 258
// Current Stack:
// address | memory
// 256 | 7
// 257 | 8
// SP -> 258 | ???
// 259 | ???
// 260 | ???
// 261 | ???
// VM Code
// add
@SP // A:0 M:258 D:8 M contains address of stack pointer (258)
M=M-1 // A:0 M:257 D:8 Decrement address of stack pointer. (257)
A=M // A:257 M:8 D:8 M now contains 8 (stored in second push)
D=M // A:257 M:8 D:8 D now stores 8.
@SP // A:0 M:257 D:8 M contains address of stack pointer (257)
M=M-1 // A:0 M:256 D:8 Decrement address of stack pointer. (256)
A=M // A:256 M:7 D:8 M now contains 7 (stored in first push)
M=M+D // A:256 M:15 D:8 M now contains 15
@SP // A:0 M:256 D:7 M contains address of stack pointer
M=M+1 // A:0 M:257 D:7 Stack pointer is now incremented to 257
// Current Stack:
// address | memory
// 256 | 15
// SP -> 257 | 8 (???)
// 258 | ???
// 259 | ???
// 260 | ???
// 261 | ???
|
||||
TheStack | fd2dda34ce99f706f127715b5efb2cd0ed06cf79 | Assemblycode:Assembly | {"size": 1055, "ext": "asm", "max_stars_repo_path": "programs/oeis/162/A162699.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/162/A162699.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/162/A162699.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 105.5, "max_line_length": 954, "alphanum_fraction": 0.7251184834} | ; A162699: Odd numbers not divisible by 7.
; 1,3,5,9,11,13,15,17,19,23,25,27,29,31,33,37,39,41,43,45,47,51,53,55,57,59,61,65,67,69,71,73,75,79,81,83,85,87,89,93,95,97,99,101,103,107,109,111,113,115,117,121,123,125,127,129,131,135,137,139,141,143,145,149,151,153,155,157,159,163,165,167,169,171,173,177,179,181,183,185,187,191,193,195,197,199,201,205,207,209,211,213,215,219,221,223,225,227,229,233,235,237,239,241,243,247,249,251,253,255,257,261,263,265,267,269,271,275,277,279,281,283,285,289,291,293,295,297,299,303,305,307,309,311,313,317,319,321,323,325,327,331,333,335,337,339,341,345,347,349,351,353,355,359,361,363,365,367,369,373,375,377,379,381,383,387,389,391,393,395,397,401,403,405,407,409,411,415,417,419,421,423,425,429,431,433,435,437,439,443,445,447,449,451,453,457,459,461,463,465,467,471,473,475,477,479,481,485,487,489,491,493,495,499,501,503,505,507,509,513,515,517,519,521,523,527,529,531,533,535,537,541,543,545,547,549,551,555,557,559,561,563,565,569,571,573,575,577,579,583
mov $1,3
add $1,$0
div $1,6
add $1,$0
mul $1,2
add $1,1
|
||||
TheStack | 5c21e79d06ed578cbe8c5492813120c91e79cc2e | Assemblycode:Assembly | {"size": 3686, "ext": "asm", "max_stars_repo_path": "base/ntos/ke/amd64/apcint.asm", "max_stars_repo_name": "yang235/wrk-v1.2", "max_stars_repo_stars_event_min_datetime": "2018-10-30T15:59:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T06:02:48.000Z", "max_issues_repo_path": "base/ntos/ke/amd64/apcint.asm", "max_issues_repo_name": "WindowsExploitation/wrk-v1.2", "max_issues_repo_issues_event_min_datetime": "2019-01-17T04:52:33.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-11T06:37:43.000Z", "max_forks_repo_path": "base/ntos/ke/amd64/apcint.asm", "max_forks_repo_name": "WindowsExploitation/wrk-v1.2", "max_forks_repo_forks_event_min_datetime": "2018-08-03T11:15:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T01:03:03.000Z"} | {"max_stars_count": 209, "max_issues_count": 2, "max_forks_count": 66, "avg_line_length": 26.7101449275, "max_line_length": 134, "alphanum_fraction": 0.6215409658} | title "Asynchronous Procedure Call Interrupt"
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
; Module Name:
;
; apcint.asm
;
; Abstract:
;
; This module implements the code necessary to process the Asynchronous
; Procedure Call interrupt request.
;
;--
include ksamd64.inc
extern KiDeliverApc:proc
extern KiIdleSummary:qword
extern KiRestoreDebugRegisterState:proc
extern KiSaveDebugRegisterState:proc
subttl "Asynchronous Procedure Call Interrupt"
;++
;
; VOID
; KiApcInterrupt (
; VOID
; )
;
; Routine Description:
;
; This routine is entered as the result of a software interrupt generated
; at APC_LEVEL. Its function is to save the machine state and call the APC
; delivery routine.
;
; N.B. This is a directly connected interrupt that does not use an interrupt
; object.
;
; N.B. APC interrupts are never requested for user mode APCs.
;
; Arguments:
;
; None.
;
; Return Value:
;
; None.
;
;--
NESTED_ENTRY KiApcInterrupt, _TEXT$00
.pushframe ; mark machine frame
;
; Check for interrupt from the idle halt state.
;
; N.B. If an APC interrupt occurs when idle halt is set, then the interrupt
; occurred during the power managment halted state. The interrupt can
; be immediately dismissed since the idle loop will provide the correct
; processing.
;
test byte ptr MfSegCs[rsp], MODE_MASK ; test if previous mode user
jnz short KiAP10 ; if nz, previous mode is user
cmp byte ptr gs:[PcIdleHalt], 0 ; check for idle halt interrupt
je short KiAP10 ; if e, not interrupt from halt
EndSystemInterrupt ; Perform EOI
iretq ; return
;
; Normal APC interrupt.
;
KiAP10: alloc_stack 8 ; allocate dummy vector
push_reg rbp ; save nonvolatile register
GENERATE_INTERRUPT_FRAME <>, <DirectNoSlistCheck> ; generate interrupt frame
mov ecx, APC_LEVEL ; set new IRQL level
ENTER_INTERRUPT <>, <NoCount> ; raise IRQL, do EOI, enable interrupts
mov ecx, KernelMode ; set APC processor mode
xor edx, edx ; set exception frame address
lea r8, (-128)[rbp] ; set trap frame address
call KiDeliverApc ; initiate APC execution
EXIT_INTERRUPT <NoEOI>, <NoCount>, <Direct> ; lower IRQL and restore state
NESTED_END KiApcInterrupt, _TEXT$00
subttl "Initiate User APC Execution"
;++
;
; Routine Description:
;
; This routine generates an exception frame and attempts to deliver a user
; APC.
;
; Arguments:
;
; rbp - Supplies the address of the trap frame.
;
; rsp - Supplies the address of the trap frame.
;
; Return value:
;
; None.
;
;--
NESTED_ENTRY KiInitiateUserApc, _TEXT$00
GENERATE_EXCEPTION_FRAME ; generate exception frame
mov ecx, UserMode ; set APC processor mode
mov rdx, rsp ; set exception frame address
lea r8, (-128)[rbp] ; set trap frame address
call KiDeliverApc ; deliver APC
RESTORE_EXCEPTION_STATE ; restore exception state/deallocate
ret ; return
NESTED_END KiInitiateUserApc, _TEXT$00
end
|
||||
TheStack | 2c82eb33e7c20b11f9ffd95dff8b8e9b8130a638 | Assemblycode:Assembly | {"size": 297, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_islessequal_callee.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_islessequal_callee.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_islessequal_callee.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 15.6315789474, "max_line_length": 50, "alphanum_fraction": 0.7912457912} |
; int islessequal(float x, float y) __z88dk_callee
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccix_islessequal_callee
EXTERN am48_islessequal, cm48_sdccixp_dcallee2
cm48_sdccix_islessequal_callee:
call cm48_sdccixp_dcallee2
; AC'= y
; AC = x
jp am48_islessequal
|
||||
TheStack | 7d0fe3bfa7d1d1232e9b63112f1953ce6b04b7ac | Assemblycode:Assembly | {"size": 447, "ext": "asm", "max_stars_repo_path": "programs/oeis/047/A047322.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/047/A047322.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/047/A047322.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 49.6666666667, "max_line_length": 337, "alphanum_fraction": 0.6733780761} | ; A047322: Numbers that are congruent to {0, 1, 5, 6} mod 7.
; 0,1,5,6,7,8,12,13,14,15,19,20,21,22,26,27,28,29,33,34,35,36,40,41,42,43,47,48,49,50,54,55,56,57,61,62,63,64,68,69,70,71,75,76,77,78,82,83,84,85,89,90,91,92,96,97,98,99,103,104,105,106,110,111,112,113,117,118,119,120,124,125,126,127,131,132,133,134,138,139,140,141,145,146,147,148,152,153,154,155,159,160,161,162,166,167,168,169,173,174
mov $1,$0
add $0,2
div $0,4
mul $0,3
add $0,$1
|
||||
TheStack | 0f513c850b0ad659779881181acef9bc57468a8c | Assemblycode:Assembly | {"size": 999, "ext": "asm", "max_stars_repo_path": "src/test/ref/subexpr-optimize-2.asm", "max_stars_repo_name": "jbrandwood/kickc", "max_stars_repo_stars_event_min_datetime": "2022-03-01T02:21:14.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-01T04:33:35.000Z", "max_issues_repo_path": "src/test/ref/subexpr-optimize-2.asm", "max_issues_repo_name": "jbrandwood/kickc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/test/ref/subexpr-optimize-2.asm", "max_forks_repo_name": "jbrandwood/kickc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.5263157895, "max_line_length": 69, "alphanum_fraction": 0.5255255255} | // Tests optimization of identical sub-expressions
// Commodore 64 PRG executable file
.file [name="subexpr-optimize-2.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.label screen = 2
.label i = 4
lda #<$400
sta.z screen
lda #>$400
sta.z screen+1
lda #0
sta.z i
__b1:
// i+1
lda.z i
clc
adc #1
// (i+1)*2
asl
// *screen++ = (i+1)*2
ldy #0
sta (screen),y
// *screen++ = (i+1)*2;
inc.z screen
bne !+
inc.z screen+1
!:
// i+1
lda.z i
clc
adc #1
// (i+1)*2
asl
// *screen++ = (i+1)*2
ldy #0
sta (screen),y
// *screen++ = (i+1)*2;
inc.z screen
bne !+
inc.z screen+1
!:
// for( byte i: 0..2)
inc.z i
lda #3
cmp.z i
bne __b1
// }
rts
}
|
||||
TheStack | cb4484fd536496da1ebc79f455304a7b6426905a | Assemblycode:Assembly | {"size": 247, "ext": "asm", "max_stars_repo_path": "pwnlib/shellcraft/templates/amd64/popad.asm", "max_stars_repo_name": "IMULMUL/python3-pwntools", "max_stars_repo_stars_event_min_datetime": "2016-01-25T08:38:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T14:31:50.000Z", "max_issues_repo_path": "pwnlib/shellcraft/templates/amd64/popad.asm", "max_issues_repo_name": "IMULMUL/python3-pwntools", "max_issues_repo_issues_event_min_datetime": "2016-08-23T10:15:27.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-16T02:49:34.000Z", "max_forks_repo_path": "pwnlib/shellcraft/templates/amd64/popad.asm", "max_forks_repo_name": "IMULMUL/python3-pwntools", "max_forks_repo_forks_event_min_datetime": "2016-07-13T10:03:52.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-10T11:57:34.000Z"} | {"max_stars_count": 325, "max_issues_count": 8, "max_forks_count": 71, "avg_line_length": 17.6428571429, "max_line_length": 62, "alphanum_fraction": 0.6518218623} | <% from pwnlib.shellcraft import amd64 %>
<%docstring>
Pop all of the registers onto the stack which i386 popad does,
in the same order.
</%docstring>
pop rdi
pop rsi
pop rbp
pop rsp
pop rbp
pop rdx
pop rcx
pop rax
|
||||
TheStack | 7d6bb266b352b309001435323f9b97a5122c738d | Assemblycode:Assembly | {"size": 481, "ext": "asm", "max_stars_repo_path": "programs/oeis/051/A051503.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/051/A051503.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/051/A051503.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1785714286, "max_line_length": 188, "alphanum_fraction": 0.4906444906} | ; A051503: a(n) = min { n, floor(100/n) }.
; 1,2,3,4,5,6,7,8,9,10,9,8,7,7,6,6,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
mov $1,$0
add $1,1
mov $3,31
mov $5,15
lpb $0
div $0,$3
add $0,3
add $2,1
add $0,$2
mov $4,4
add $5,$3
mul $5,2
add $5,$0
add $4,$5
div $4,$1
mov $5,$1
trn $5,$4
sub $1,$5
lpe
add $1,1
mul $1,5
sub $1,10
div $1,5
add $1,1
|
||||
TheStack | f8fdfc3402b65c601a8e285db51653bcb6cc96b0 | Assemblycode:Assembly | {"size": 2385, "ext": "asm", "max_stars_repo_path": "dino/lcs/base/6600.asm", "max_stars_repo_name": "zengfr/arcade_game_romhacking_sourcecode_top_secret_data", "max_stars_repo_stars_event_min_datetime": "2020-10-14T15:29:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-12T18:58:54.000Z", "max_issues_repo_path": "dino/lcs/base/6600.asm", "max_issues_repo_name": "zengfr/arcade_game_romhacking_sourcecode_top_secret_data", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dino/lcs/base/6600.asm", "max_forks_repo_name": "zengfr/arcade_game_romhacking_sourcecode_top_secret_data", "max_forks_repo_forks_event_min_datetime": "2020-12-17T08:59:10.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-17T08:59:10.000Z"} | {"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 85.1785714286, "max_line_length": 351, "alphanum_fraction": 0.6704402516} | copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
00486A movea.w ($6600,A5), A4
00486E movea.w (A4)+, A0 [base+6600]
004870 move.w A4, ($6600,A5) [base+6638, base+663A, base+663C, base+663E, base+6640, base+6642, base+6644, base+6646, base+6648, base+664A, base+664C, base+664E, base+6650]
004874 subq.w #1, ($65f6,A5) [base+6600]
004938 movea.w ($6600,A5), A4
00493C move.w A6, -(A4) [base+6600]
00493E move.w A4, ($6600,A5) [base+663C, base+663E, base+6640, base+6642, base+6644, base+6646, base+6648, base+664A, base+664C, base+664E, base+6650]
004942 addq.w #1, ($65f6,A5) [base+6600]
004C98 move.w A1, ($6600,A5)
004C9C move.w #$18, ($65f6,A5) [base+6600]
0AAACA move.l (A0), D2
0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAACE move.w D0, ($2,A0)
0AAAD2 cmp.l (A0), D0
0AAAD4 bne $aaafc
0AAAD8 move.l D2, (A0)+
0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAE6 move.l (A0), D2
0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAF4 move.l D2, (A0)+
0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
copyright zengfr site:http://github.com/zengfr/romhack
|
||||
TheStack | dd42557eca55b04550b5c80edc327e2f2119b510 | Assemblycode:Assembly | {"size": 566, "ext": "asm", "max_stars_repo_path": "bootloader/bit16/print_string.asm", "max_stars_repo_name": "mstniy/cerius", "max_stars_repo_stars_event_min_datetime": "2018-01-28T19:04:56.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-12T20:59:40.000Z", "max_issues_repo_path": "bootloader/bit16/print_string.asm", "max_issues_repo_name": "mstniy/cerius", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "bootloader/bit16/print_string.asm", "max_forks_repo_name": "mstniy/cerius", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.6470588235, "max_line_length": 59, "alphanum_fraction": 0.6130742049} | [bits 16]
; Prints the zero-terminated string at bx to the screen.
print_string:
pusha
mov ah, 0x0e
pstring_loop:
cmp byte [bx], 0
je pstring_loop_end
mov al, [bx]
int 0x10
add bx, 1
jmp pstring_loop
pstring_loop_end:
popa
ret
; Prints the ascii-encoding character at bl to the screen.
print_char:
pusha
mov ah, 0x0e
mov al, bl
int 0x10
popa
ret
; Prints a new line.
print_line:
push bx
mov bl, 13 ; '\r'
call print_char
mov bl, 10 ; '\n'
call print_char
pop bx
ret |
||||
TheStack | 7ed86f01eaf7fb9f7199cd50d04111bad9565e12 | Assemblycode:Assembly | {"size": 674, "ext": "asm", "max_stars_repo_path": "programs/oeis/229/A229183.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/229/A229183.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/229/A229183.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 74.8888888889, "max_line_length": 592, "alphanum_fraction": 0.7863501484} | ; A229183: a(n) = n*(n^2 + 3)/2.
; 0,2,7,18,38,70,117,182,268,378,515,682,882,1118,1393,1710,2072,2482,2943,3458,4030,4662,5357,6118,6948,7850,8827,9882,11018,12238,13545,14942,16432,18018,19703,21490,23382,25382,27493,29718,32060,34522,37107,39818,42658,45630,48737,51982,55368,58898,62575,66402,70382,74518,78813,83270,87892,92682,97643,102778,108090,113582,119257,125118,131168,137410,143847,150482,157318,164358,171605,179062,186732,194618,202723,211050,219602,228382,237393,246638,256120,265842,275807,286018,296478,307190,318157,329382,340868,352618,364635,376922,389482,402318,415433,428830,442512,456482,470743,485298
mov $1,$0
pow $0,2
add $0,3
mul $0,$1
div $0,2
|
||||
TheStack | 0404ffad132eec200a816483cf1767160f580a74 | Assemblycode:Assembly | {"size": 3497, "ext": "asm", "max_stars_repo_path": "hldr32.asm", "max_stars_repo_name": "xXToffeeXx/UROP-Project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "hldr32.asm", "max_issues_repo_name": "xXToffeeXx/UROP-Project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "hldr32.asm", "max_forks_repo_name": "xXToffeeXx/UROP-Project", "max_forks_repo_forks_event_min_datetime": "2020-11-14T20:19:22.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-14T20:19:22.000Z"} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 32.0825688073, "max_line_length": 82, "alphanum_fraction": 0.3874749786} | bits 32
%include "hldr32.inc"
;-----------------------------------------------------------------------------
;recover kernel32 image base
;-----------------------------------------------------------------------------
hldr_begin:
push tebProcessEnvironmentBlock
pop eax
fs mov eax, dword [eax]
mov eax, dword [eax + pebLdr]
mov esi, dword [eax + ldrInLoadOrderModuleList]
lodsd
xchg eax, esi
lodsd
mov ebp, dword [eax + mlDllBase]
call parse_exports
;-----------------------------------------------------------------------------
;API CRC table, null terminated
;-----------------------------------------------------------------------------
dd 0E9258E7Ah ;FlushInstructionCache
dd 009CE0D4Ah ;VirtualAlloc
db 0
;-----------------------------------------------------------------------------
;parse export table
;-----------------------------------------------------------------------------
parse_exports:
pop esi
mov ebx, ebp
mov eax, dword [ebp + lfanew]
add ebx, dword [ebp + eax + IMAGE_DIRECTORY_ENTRY_EXPORT]
cdq
walk_names:
mov eax, ebp
mov edi, ebp
inc edx
add eax, dword [ebx + _IMAGE_EXPORT_DIRECTORY.edAddressOfNames]
add edi, dword [eax + edx * 4]
or eax, -1
crc_outer:
xor al, byte [edi]
push 8
pop ecx
crc_inner:
shr eax, 1
jnc crc_skip
xor eax, 0edb88320h
crc_skip:
loop crc_inner
inc edi
cmp byte [edi], cl
jne crc_outer
not eax
cmp dword [esi], eax
jne walk_names
;-----------------------------------------------------------------------------
;exports must be sorted alphabetically, otherwise GetProcAddress() would fail
;this allows to push addresses onto the stack, and the order is known
;-----------------------------------------------------------------------------
mov edi, ebp
mov eax, ebp
add edi, dword [ebx + _IMAGE_EXPORT_DIRECTORY.edAddressOfNameOrdinals]
movzx edi, word [edi + edx * 2]
add eax, dword [ebx + _IMAGE_EXPORT_DIRECTORY.edAddressOfFunctions]
mov eax, dword [eax + edi * 4]
add eax, ebp
push eax
lodsd
sub cl, byte [esi]
jnz walk_names
;-----------------------------------------------------------------------------
;allocate executable memory for shellcodeified executable
;-----------------------------------------------------------------------------
mov esi, 0xdeadf00d
mov ebp, dword [esi + lfanew]
add ebp, esi
mov ch, (MEM_COMMIT | MEM_RESERVE) >> 8
push PAGE_EXECUTE_READWRITE
push ecx
push 0xdeadfeed
push 0
call dword [esp + 10h + krncrcstk.kVirtualAlloc]
push eax
mov ebx, esp
;-----------------------------------------------------------------------------
;copy shellcode into executable memory and jump to it
;-----------------------------------------------------------------------------
mov ecx, 0xdeadfeed
mov edi, eax
push esi
rep movsb
pop esi
jmp eax
|
||||
TheStack | 8131683dcaa8a34f9c007a24279433ef19e5fc6b | Assemblycode:Assembly | {"size": 807, "ext": "asm", "max_stars_repo_path": "programs/oeis/158/A158645.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/158/A158645.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/158/A158645.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 115.2857142857, "max_line_length": 744, "alphanum_fraction": 0.8376703841} | ; A158645: a(n) = 729*n^2 + 27.
; 27,756,2943,6588,11691,18252,26271,35748,46683,59076,72927,88236,105003,123228,142911,164052,186651,210708,236223,263196,291627,321516,352863,385668,419931,455652,492831,531468,571563,613116,656127,700596,746523,793908,842751,893052,944811,998028,1052703,1108836,1166427,1225476,1285983,1347948,1411371,1476252,1542591,1610388,1679643,1750356,1822527,1896156,1971243,2047788,2125791,2205252,2286171,2368548,2452383,2537676,2624427,2712636,2802303,2893428,2986011,3080052,3175551,3272508,3370923,3470796,3572127,3674916,3779163,3884868,3992031,4100652,4210731,4322268,4435263,4549716,4665627,4782996,4901823,5022108,5143851,5267052,5391711,5517828,5645403,5774436,5904927,6036876,6170283,6305148,6441471,6579252,6718491,6859188,7001343,7144956
mul $0,27
pow $0,2
add $0,27
|
||||
TheStack | 2df59dc9df1e36fc29ee28504017f3c76b19e772 | Assemblycode:Assembly | {"size": 1646, "ext": "asm", "max_stars_repo_path": "programs/oeis/224/A224915.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/224/A224915.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/224/A224915.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 65.84, "max_line_length": 1325, "alphanum_fraction": 0.7533414338} | ; A224915: a(n) = Sum_{k=0..n} n XOR k where XOR is the bitwise logical exclusive-or operator.
; 0,1,5,6,22,23,27,28,92,93,97,98,114,115,119,120,376,377,381,382,398,399,403,404,468,469,473,474,490,491,495,496,1520,1521,1525,1526,1542,1543,1547,1548,1612,1613,1617,1618,1634,1635,1639,1640,1896,1897,1901,1902,1918,1919,1923,1924,1988,1989,1993,1994,2010,2011,2015,2016,6112,6113,6117,6118,6134,6135,6139,6140,6204,6205,6209,6210,6226,6227,6231,6232,6488,6489,6493,6494,6510,6511,6515,6516,6580,6581,6585,6586,6602,6603,6607,6608,7632,7633,7637,7638,7654,7655,7659,7660,7724,7725,7729,7730,7746,7747,7751,7752,8008,8009,8013,8014,8030,8031,8035,8036,8100,8101,8105,8106,8122,8123,8127,8128,24512,24513,24517,24518,24534,24535,24539,24540,24604,24605,24609,24610,24626,24627,24631,24632,24888,24889,24893,24894,24910,24911,24915,24916,24980,24981,24985,24986,25002,25003,25007,25008,26032,26033,26037,26038,26054,26055,26059,26060,26124,26125,26129,26130,26146,26147,26151,26152,26408,26409,26413,26414,26430,26431,26435,26436,26500,26501,26505,26506,26522,26523,26527,26528,30624,30625,30629,30630,30646,30647,30651,30652,30716,30717,30721,30722,30738,30739,30743,30744,31000,31001,31005,31006,31022,31023,31027,31028,31092,31093,31097,31098,31114,31115,31119,31120,32144,32145,32149,32150,32166,32167,32171,32172,32236,32237,32241,32242,32258,32259,32263,32264,32520,32521,32525,32526,32542,32543,32547,32548,32612,32613
mov $9,$0
add $9,1
lpb $9
clr $0,7
sub $9,1
sub $0,$9
add $5,$0
add $5,$0
lpb $5
mov $2,10
lpb $5
mul $2,2
dif $5,2
lpe
lpe
pow $2,2
mov $1,$2
div $1,400
add $8,$1
lpe
mov $1,$8
|
||||
TheStack | 9ef523fec5e52328a2c2a48b2a41f7e1f80a4321 | Assemblycode:Assembly | {"size": 226, "ext": "asm", "max_stars_repo_path": "programs/oeis/078/A078582.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/078/A078582.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/078/A078582.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.125, "max_line_length": 69, "alphanum_fraction": 0.5707964602} | ; A078582: Duplicate of A051336.
; 1,3,7,13,22,33,48,65,86,110,138,168,204,242,284,330,381,434,493,554
mov $1,1
mov $2,$0
lpb $2,1
add $3,1
mov $4,$2
lpb $4,1
add $1,$4
trn $4,$3
lpe
add $1,1
sub $2,1
lpe
|
||||
TheStack | 1137187864f33f6b53269000e9febc4e272db2d9 | Assemblycode:Assembly | {"size": 4788, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_559_1501.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_559_1501.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_559_1501.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 32.3513513514, "max_line_length": 1676, "alphanum_fraction": 0.6524644946} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x92c6, %rsi
lea addresses_UC_ht+0xb25b, %rdi
nop
nop
nop
add %r15, %r15
mov $15, %rcx
rep movsl
dec %rcx
lea addresses_D_ht+0x1665b, %rax
nop
nop
inc %rbx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%rax)
nop
add $30239, %r15
lea addresses_UC_ht+0x3b13, %rax
nop
xor %r13, %r13
mov $0x6162636465666768, %rdi
movq %rdi, (%rax)
nop
nop
nop
nop
dec %rbx
lea addresses_A_ht+0x5db, %rax
nop
nop
add %rdi, %rdi
and $0xffffffffffffffc0, %rax
vmovntdqa (%rax), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbx
add %r13, %r13
lea addresses_normal_ht+0x1ce5b, %rcx
nop
nop
nop
nop
nop
xor $20714, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
movups %xmm1, (%rcx)
nop
nop
nop
and %rax, %rax
lea addresses_UC_ht+0x84b3, %rsi
lea addresses_UC_ht+0x1b48b, %rdi
nop
nop
sub $21345, %rax
mov $4, %rcx
rep movsq
nop
nop
nop
cmp $31028, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r9
push %rbx
push %rdx
// Load
mov $0x6de05a0000000093, %rbx
nop
nop
add $3421, %r9
mov (%rbx), %r12w
nop
nop
and $41886, %r13
// Store
lea addresses_A+0x1715b, %r12
nop
nop
nop
nop
inc %r9
mov $0x5152535455565758, %r13
movq %r13, %xmm0
movntdq %xmm0, (%r12)
nop
add %r9, %r9
// Faulty Load
lea addresses_PSE+0x1a65b, %rbx
nop
dec %rdx
vmovaps (%rbx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r9
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rdx
pop %rbx
pop %r9
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 8, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_NC', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'ed': 1, 'f8': 2, 'd4': 1, 'e4': 1, 'ca': 1, '44': 1, '02': 14, '45': 535, '00': 2, 'ee': 1}
45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 ca 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 ee 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 ed 45 45 45 02 45 02 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 02 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 44 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 d4 45 45 45 45 45 45 45 45 45 f8 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 e4 45 00 45 45 45 45 45 45 45 45 f8 45 45 45 45 45 45 45 02 45 45 45 45 45 45 45 45
*/
|
||||
TheStack | 121d0e37ed04f1d5f37c73b5234e674179177863 | Assemblycode:Assembly | {"size": 8127, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1966.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1966.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1966.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 34.1470588235, "max_line_length": 2999, "alphanum_fraction": 0.6580534022} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xaeae, %rsi
lea addresses_WT_ht+0x70ba, %rdi
clflush (%rdi)
cmp $55829, %rbx
mov $20, %rcx
rep movsq
nop
add %r10, %r10
lea addresses_WC_ht+0x105e2, %r9
nop
nop
nop
nop
nop
cmp %r11, %r11
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
vmovups %ymm6, (%r9)
nop
nop
add $22727, %rbx
lea addresses_A_ht+0x2d7a, %r10
nop
nop
dec %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%r10)
xor %rsi, %rsi
lea addresses_normal_ht+0x14b7a, %rcx
nop
xor %rdi, %rdi
mov (%rcx), %r10d
nop
nop
nop
nop
and $2839, %rdi
lea addresses_A_ht+0x1e1fa, %rsi
lea addresses_A_ht+0xbf7a, %rdi
nop
nop
nop
nop
sub %r11, %r11
mov $76, %rcx
rep movsw
sub $44947, %r9
lea addresses_WT_ht+0x1c182, %rsi
lea addresses_D_ht+0x1bd7a, %rdi
nop
nop
nop
xor $4091, %r13
mov $21, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $14411, %rbx
lea addresses_UC_ht+0xe65a, %rsi
clflush (%rsi)
cmp %rdi, %rdi
movl $0x61626364, (%rsi)
nop
cmp $12416, %rcx
lea addresses_UC_ht+0x337a, %rcx
nop
nop
and $60556, %r13
mov $0x6162636465666768, %rbx
movq %rbx, (%rcx)
nop
nop
nop
cmp %r9, %r9
lea addresses_normal_ht+0xb37a, %rsi
lea addresses_D_ht+0xdb7a, %rdi
nop
nop
add %rbx, %rbx
mov $69, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x237a, %rsi
lea addresses_D_ht+0x323a, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub $43543, %r9
mov $20, %rcx
rep movsl
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0xaf6, %r10
nop
nop
nop
cmp $22367, %r9
movb (%r10), %cl
nop
nop
nop
nop
nop
inc %r13
lea addresses_WC_ht+0xef7a, %rsi
lea addresses_WC_ht+0xf37a, %rdi
nop
sub $13510, %r9
mov $52, %rcx
rep movsq
nop
nop
nop
and %rbx, %rbx
lea addresses_WT_ht+0xebef, %r9
nop
nop
nop
nop
and $10660, %rsi
mov (%r9), %edi
nop
nop
nop
cmp %r11, %r11
lea addresses_normal_ht+0x7f3a, %rdi
nop
nop
add $12266, %r11
mov $0x6162636465666768, %r9
movq %r9, %xmm7
movups %xmm7, (%rdi)
and $45186, %r13
lea addresses_UC_ht+0xd57a, %r10
nop
nop
nop
add $8242, %rsi
mov $0x6162636465666768, %r11
movq %r11, (%r10)
nop
nop
add $18850, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rsi
// Store
lea addresses_WC+0x937a, %r13
sub $9634, %r11
movw $0x5152, (%r13)
cmp %r11, %r11
// Faulty Load
lea addresses_WC+0x37a, %r11
sub %r8, %r8
mov (%r11), %bp
lea oracles, %rax
and $0xff, %rbp
shlq $12, %rbp
mov (%rax,%rbp,1), %rbp
pop %rsi
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}}
{'src': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}}
{'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
*/
|
||||
TheStack | 06e575b4682ec7fbee2ed7532140ade16658b5aa | Assemblycode:Assembly | {"size": 1086, "ext": "asm", "max_stars_repo_path": "programs/oeis/004/A004202.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/004/A004202.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/004/A004202.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 98.7272727273, "max_line_length": 953, "alphanum_fraction": 0.7136279926} | ; A004202: Skip 1, take 1, skip 2, take 2, skip 3, take 3, etc.
; 2,5,6,10,11,12,17,18,19,20,26,27,28,29,30,37,38,39,40,41,42,50,51,52,53,54,55,56,65,66,67,68,69,70,71,72,82,83,84,85,86,87,88,89,90,101,102,103,104,105,106,107,108,109,110,122,123,124,125,126,127,128,129,130,131,132,145,146,147,148,149,150,151,152,153,154,155,156,170,171,172,173,174,175,176,177,178,179,180,181,182,197,198,199,200,201,202,203,204,205,206,207,208,209,210,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503
add $0,1
mov $1,$0
lpb $0,1
add $2,1
trn $0,$2
add $1,$2
lpe
|
||||
TheStack | cb02955f0207909d31ae3900a29ab818361c3903 | Assemblycode:Assembly | {"size": 1013, "ext": "asm", "max_stars_repo_path": "programs/oeis/087/A087233.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/087/A087233.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/087/A087233.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.0892857143, "max_line_length": 211, "alphanum_fraction": 0.4580454097} | ; A087233: a(n)=floor[sigma[A002110(n)]/A002110(n)]; integer quotient of divisor-sum of primorial numbers and primorials.
; 1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
mov $3,$0
add $3,1
mov $6,$0
lpb $3,1
mov $0,$6
sub $3,1
sub $0,$3
mov $11,$0
mov $13,2
lpb $13,1
mov $0,$11
sub $13,1
add $0,$13
sub $0,1
mov $4,3
mov $7,$0
mul $7,3
mul $0,$7
mov $2,2
add $4,$7
add $4,$0
sub $10,$10
lpb $0,1
add $0,$4
log $0,5
sub $0,1
mul $0,2
mov $9,$10
add $9,1
mul $9,2
trn $0,$9
add $0,$9
mov $4,$9
add $4,$0
mov $2,$4
mov $10,7
lpe
mov $5,$2
mov $8,$13
lpb $8,1
sub $8,1
mov $12,$5
lpe
lpe
lpb $11,1
mov $11,0
sub $12,$5
lpe
mov $5,$12
div $5,2
add $1,$5
lpe
|
||||
TheStack | 440d8b74128864feb848afa41d55ae1ecc3a88dc | Assemblycode:Assembly | {"size": 577, "ext": "asm", "max_stars_repo_path": "oeis/005/A005057.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/005/A005057.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/005/A005057.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 57.7, "max_line_length": 495, "alphanum_fraction": 0.8648180243} | ; A005057: 5^n - 2^n.
; 0,3,21,117,609,3093,15561,77997,390369,1952613,9764601,48826077,244136529,1220694933,6103499241,30517545357,152587825089,762939322053,3814697003481,19073485803837,95367430592049,476837156105973,2384185786821321,11920928946689517,59604644758613409,298023223843398693,1490116119317656761,7450580596789610397,37252902984350705169,186264514922558832213,931322574614404773801,4656612873075245094477,23283064365382667923329,116415321826926224518533,582076609134656892396441,2910383045673336001589757
mov $1,5
pow $1,$0
mov $2,2
pow $2,$0
sub $1,$2
mov $0,$1
|
||||
TheStack | 54549250f43f054f4a25831acea5fb21f5a76691 | Assemblycode:Assembly | {"size": 655, "ext": "asm", "max_stars_repo_path": "programs/oeis/155/A155753.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/155/A155753.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/155/A155753.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 81.875, "max_line_length": 582, "alphanum_fraction": 0.786259542} | ; A155753: a(n) = (n^3 - n + 9)/3.
; 3,5,11,23,43,73,115,171,243,333,443,575,731,913,1123,1363,1635,1941,2283,2663,3083,3545,4051,4603,5203,5853,6555,7311,8123,8993,9923,10915,11971,13093,14283,15543,16875,18281,19763,21323,22963,24685,26491,28383,30363,32433,34595,36851,39203,41653,44203,46855,49611,52473,55443,58523,61715,65021,68443,71983,75643,79425,83331,87363,91523,95813,100235,104791,109483,114313,119283,124395,129651,135053,140603,146303,152155,158161,164323,170643,177123,183765,190571,197543,204683,211993,219475,227131,234963,242973,251163,259535,268091,276833,285763,294883,304195,313701,323403,333303
add $0,2
bin $0,3
mul $0,2
add $0,3
|
||||
TheStack | 778615f39083858888961fc2d26e04d1de8b7726 | Assemblycode:Assembly | {"size": 262, "ext": "asm", "max_stars_repo_path": "tests/bank_simple/6.asm", "max_stars_repo_name": "NullMember/customasm", "max_stars_repo_stars_event_min_datetime": "2016-10-14T22:39:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T07:52:44.000Z", "max_issues_repo_path": "tests/bank_simple/6.asm", "max_issues_repo_name": "NullMember/customasm", "max_issues_repo_issues_event_min_datetime": "2018-03-22T16:12:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-26T09:19:23.000Z", "max_forks_repo_path": "tests/bank_simple/6.asm", "max_forks_repo_name": "NullMember/customasm", "max_forks_repo_forks_event_min_datetime": "2017-06-29T15:12:13.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-10T04:50:51.000Z"} | {"max_stars_count": 414, "max_issues_count": 100, "max_forks_count": 47, "avg_line_length": 13.1, "max_line_length": 25, "alphanum_fraction": 0.6374045802} | #ruledef test
{
loop => 0x5555 @ $`16
}
#bankdef test
{
#addr 0x8000
#outp 8 * 0x0000
}
loop ; = 0x55558000
loop ; = 0x55558004
loop ; = 0x55558008
loop ; = 0x5555800c
loop ; = 0x55558010
loop ; = 0x55558014
loop ; = 0x55558018
loop ; = 0x5555801c |
||||
TheStack | 830349a9fcc46d64bebb3100e13c5b7e6b6719e9 | Assemblycode:Assembly | {"size": 694, "ext": "asm", "max_stars_repo_path": "sprites/sprbars.asm", "max_stars_repo_name": "FolkertVanVerseveld/c64", "max_stars_repo_stars_event_min_datetime": "2018-12-26T22:55:37.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-26T22:55:37.000Z", "max_issues_repo_path": "sprites/sprbars.asm", "max_issues_repo_name": "FolkertVanVerseveld/c64", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "sprites/sprbars.asm", "max_forks_repo_name": "FolkertVanVerseveld/c64", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.0579710145, "max_line_length": 51, "alphanum_fraction": 0.621037464} | // Assembler: KickAssembler 4.4
// taken from programmer's reference guide page 142
BasicUpstart2(start)
* = $0810 "sprbars"
start:
jsr scrclr
// set sprite ptr
lda #13
sta $07f8
// make sprite
lda #129
ldx #64
!l:
dex
sta $0340,x
bne !l-
// show sprite
lda #1
sta $d015
sta $d027
// move sprite
lda #100
sta $d001
lda #100
sta $d000
lda #0
sta $d010
jsr irq_init
!l:
inc $d020
jmp !l-
scrclr:
ldx #0
lda #' '
!l:
sta $0400,x
sta $0500,x
sta $0600,x
sta $06e8,x
inx
bne !l-
rts
scroll:
inc $d000
bne !l+
lda $d010
eor #$01
sta $d010
!l:
rts
#import "../irq/krnl1.asm"
irq:
asl $d019
inc $d020
jsr scroll
dec $d020
pla
tay
pla
tax
pla
rti
|
||||
TheStack | 8863a0eb5dac599e304144ea1b106e44d98ca437 | Assemblycode:Assembly | {"size": 1980, "ext": "asm", "max_stars_repo_path": "I2C_Slave_Code_Dev/I2C_Logger/asm/src/main.asm", "max_stars_repo_name": "CmdrZin/chips_avr_examples", "max_stars_repo_stars_event_min_datetime": "2017-04-17T15:11:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-13T23:52:09.000Z", "max_issues_repo_path": "I2C_Slave_Code_Dev/I2C_Logger/asm/src/main.asm", "max_issues_repo_name": "CmdrZin/chips_avr_examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "I2C_Slave_Code_Dev/I2C_Logger/asm/src/main.asm", "max_forks_repo_name": "CmdrZin/chips_avr_examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.8378378378, "max_line_length": 87, "alphanum_fraction": 0.7095959596} | /*
* I2C Slave Library Project
*
* org: 10/03/2014
* auth: Nels "Chip" Pearson
*
* Target: R2 Link Board (ATmega164P) or LCD CDM-16100 Display (ATmega328P)
*
*
* Slave Adrs: 0x57
*
*/
.nolist
;;;.include "m164pdef.inc"
.include "m328pdef.inc"
.list
.ORG $0000
rjmp RESET
.ORG OC0Aaddr ; 0x1c TimerCounter0 Compare Match A
rjmp st_tmr0_intr
.ORG TWIaddr ; 0x30 Two-wire Serial Interface
rjmp i2c_intr
;
.ORG INT_VECTORS_SIZE ; Skip over the rest of them.
.CSEG
RESET:
; setup SP
ldi R16, LOW(RAMEND)
out spl, R16
ldi R16, HIGH(RAMEND)
out sph, R16
; JTAG disable
ldi R16, $80
out MCUCR, R16
out MCUCR, R16
;
call st_init_tmr0
call init_led_io
call i2c_init_slave ; init I2C interface as a Slave
call lcd_init
call lcd_text_init
call logger_init
;
sei ; enable intr
;
clr R17
call lcd_set_ddram_adrs
ldi ZL, low(lcd_bt_text00<<1)
ldi ZH, high(lcd_bt_text00<<1)
call out_flash_banner
;
ldi R17, 0x40
call lcd_set_ddram_adrs
ldi ZL, low(lcd_bt_hellow<<1)
ldi ZH, high(lcd_bt_hellow<<1)
call out_flash_banner
;
; For debug ++
ldi ZL, low(lcd_clr_text<<1)
ldi ZH, high(lcd_clr_text<<1)
ldi R17, 6 ; line Left(0:4) 0-4, Right(0:4) 5-9
call lcd_set_flash_text
; --
; reset to begining
call lcd_return_home
;
;
call turn_off_green
call turn_off_red
call turn_off_yellow
;
main:
;
; TWEA = 0 will inhibit the Slave from responding to its address.
/*
; simple I2C test
lds r16, i2c_status
cpi r16, I2C_STATUS_IDLE
brne m_skip00
;
ldi R16, 4
sts i2c_buffer_out_cnt, R16 ; reset count so data will be sent again when requested.
;
*/
call lcd_text_service
;
m_skip00:
call logger_check_for_message
;
rjmp main
// I2C Slave code
.include "i2c_slave.asm"
// Logger code
.include "logger.asm"
// LCD Display
.include "lcd_cdm_16100_4bit.asm"
// LCD Text Formatting
.include "lcd_text_service.asm"
// System Timers
.include "sys_timers.asm"
// Board Test
.include "lcd_cdm_board_test.asm"
|
||||
TheStack | 7d532313627895fe4f1ca46b4f683d6a3e7b127c | Assemblycode:Assembly | {"size": 330, "ext": "asm", "max_stars_repo_path": "libsrc/math/mbf64/c/sccz80/fpclassify.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/math/mbf64/c/sccz80/fpclassify.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/math/mbf64/c/sccz80/fpclassify.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 16.5, "max_line_length": 50, "alphanum_fraction": 0.4636363636} | SECTION code_fp_mbf64
PUBLIC fpclassify
INCLUDE "mbf64.def"
EXTERN ___mbf64_FA
; Return 0 = normal
; 1 = zero
; 2 = nan
; 3 = infinite
fpclassify:
ld a,(___mbf64_FA+7) ;exponent
ld hl,1
and a
ret z
dec hl
ret
|
||||
TheStack | 92a0a58dfb6adc1be48f1cd10ab3c2d16db0bd05 | Assemblycode:Assembly | {"size": 8047, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_un_/i7-7700_9_0xca.log_21829_1164.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_un_/i7-7700_9_0xca.log_21829_1164.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_un_/i7-7700_9_0xca.log_21829_1164.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 34.3888888889, "max_line_length": 2999, "alphanum_fraction": 0.6568907667} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1da5d, %r11
nop
nop
nop
nop
sub %r12, %r12
movb $0x61, (%r11)
nop
nop
cmp %rbp, %rbp
lea addresses_UC_ht+0x11401, %rdx
nop
nop
nop
nop
and %rbp, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, (%rdx)
nop
add $20751, %rcx
lea addresses_normal_ht+0xb89d, %rsi
lea addresses_WT_ht+0xe8dd, %rdi
nop
add %rbp, %rbp
mov $89, %rcx
rep movsb
nop
nop
cmp %r12, %r12
lea addresses_WC_ht+0x1ae2d, %r11
nop
nop
nop
nop
xor $34739, %rdx
mov (%r11), %r13d
nop
nop
nop
sub $54258, %rcx
lea addresses_UC_ht+0x71bd, %rcx
clflush (%rcx)
nop
nop
nop
and %r11, %r11
movb $0x61, (%rcx)
and $54844, %rdi
lea addresses_normal_ht+0x1c75d, %rdx
nop
nop
nop
nop
xor $49276, %rsi
mov $0x6162636465666768, %r13
movq %r13, (%rdx)
nop
nop
nop
nop
and %r13, %r13
lea addresses_UC_ht+0x16b5d, %rsi
lea addresses_WC_ht+0xe25d, %rdi
nop
inc %rbp
mov $109, %rcx
rep movsb
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x1325d, %rsi
nop
nop
nop
sub %r12, %r12
movl $0x61626364, (%rsi)
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_normal_ht+0x17cfd, %rsi
lea addresses_D_ht+0xa5d, %rdi
clflush (%rdi)
and %rdx, %rdx
mov $35, %rcx
rep movsb
nop
nop
nop
xor $25772, %r12
lea addresses_WT_ht+0xc41d, %rsi
nop
nop
nop
cmp %rbp, %rbp
mov (%rsi), %r12
cmp $62573, %rbp
lea addresses_A_ht+0x1d5d, %rsi
lea addresses_WC_ht+0x1da85, %rdi
inc %r12
mov $98, %rcx
rep movsw
nop
nop
nop
nop
dec %r11
lea addresses_D_ht+0x12bad, %r11
sub $18135, %r12
mov (%r11), %di
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_D_ht+0x68dd, %r13
nop
add %rsi, %rsi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm2
vmovups %ymm2, (%r13)
nop
nop
xor $32498, %r13
lea addresses_normal_ht+0x895d, %rsi
lea addresses_normal_ht+0x1103b, %rdi
nop
cmp %r13, %r13
mov $85, %rcx
rep movsq
add %rbp, %rbp
lea addresses_UC_ht+0x1a85d, %rdi
xor $63284, %rbp
movb $0x61, (%rdi)
nop
nop
nop
nop
nop
add %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdx
// Store
lea addresses_A+0x1aa5d, %r15
nop
nop
nop
nop
and %rcx, %rcx
mov $0x5152535455565758, %r14
movq %r14, (%r15)
nop
nop
nop
nop
add $38408, %r9
// Faulty Load
lea addresses_PSE+0x13a5d, %rcx
nop
nop
nop
nop
sub %r8, %r8
movntdqa (%rcx), %xmm2
vpextrq $0, %xmm2, %rdx
lea oracles, %r14
and $0xff, %rdx
shlq $12, %rdx
mov (%r14,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': True, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': True, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}}
{'00': 147, '5f': 1929, '58': 19753}
58 58 58 58 58 5f 58 5f 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 5f 5f 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 5f 5f 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 5f 58 58 58 58 58 58 58 5f 58 5f 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 5f 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 5f 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 5f 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 5f 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 5f 58 58 5f 5f 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 5f 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 5f 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 5f 58 58 58 5f 5f 58 58 58 58 58 58 58 58 58 5f 58 5f 5f 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 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 5f 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 5f 58 58 58 5f 58 58 58 5f 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 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 5f 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 00 58 5f 58 58 58 58 00 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58
*/
|
||||
TheStack | badc4bb4e2b1f3f61856521a18b76dfc02c2f521 | Assemblycode:Assembly | {"size": 716, "ext": "asm", "max_stars_repo_path": "oeis/264/A264772.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/264/A264772.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/264/A264772.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 44.75, "max_line_length": 499, "alphanum_fraction": 0.7150837989} | ; A264772: Triangle T(n,k) = binomial(3*n - 2*k, 2*n - k), 0 <= k <= n.
; Submitted by Jamie Morken(s4)
; 1,3,1,15,4,1,84,21,5,1,495,120,28,6,1,3003,715,165,36,7,1,18564,4368,1001,220,45,8,1,116280,27132,6188,1365,286,55,9,1,735471,170544,38760,8568,1820,364,66,10,1,4686825,1081575,245157,54264,11628,2380,455,78,11,1,30045015,6906900,1562275,346104,74613,15504,3060,560,91,12,1,193536720,44352165,10015005,2220075,480700,100947,20349,3876,680,105,13,1,1251677700,286097760,64512240,14307150,3108105,657800,134596,26334,4845,816,120,14,1,8122425444,1852482996,417225900,92561040,20160075,4292145,888030
lpb $0
sub $0,1
add $1,1
mov $2,$1
trn $2,$0
trn $0,$1
add $1,$2
lpe
add $1,$2
bin $1,$2
mov $0,$1
|
||||
TheStack | a791316bf397be1167ede7f77849ea78913b4ac2 | Assemblycode:Assembly | {"size": 1181, "ext": "asm", "max_stars_repo_path": "_build/dispatcher/jmp_ippsSHA1MessageDigest_996ebbaa.asm", "max_stars_repo_name": "zyktrcn/ippcp", "max_stars_repo_stars_event_min_datetime": "2021-10-04T10:21:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T10:21:54.000Z", "max_issues_repo_path": "_build/dispatcher/jmp_ippsSHA1MessageDigest_996ebbaa.asm", "max_issues_repo_name": "zyktrcn/ippcp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_build/dispatcher/jmp_ippsSHA1MessageDigest_996ebbaa.asm", "max_forks_repo_name": "zyktrcn/ippcp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.2820512821, "max_line_length": 111, "alphanum_fraction": 0.8137171888} | extern m7_ippsSHA1MessageDigest:function
extern n8_ippsSHA1MessageDigest:function
extern y8_ippsSHA1MessageDigest:function
extern e9_ippsSHA1MessageDigest:function
extern l9_ippsSHA1MessageDigest:function
extern n0_ippsSHA1MessageDigest:function
extern k0_ippsSHA1MessageDigest:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsSHA1MessageDigest
.Larraddr_ippsSHA1MessageDigest:
dq m7_ippsSHA1MessageDigest
dq n8_ippsSHA1MessageDigest
dq y8_ippsSHA1MessageDigest
dq e9_ippsSHA1MessageDigest
dq l9_ippsSHA1MessageDigest
dq n0_ippsSHA1MessageDigest
dq k0_ippsSHA1MessageDigest
segment .text
global ippsSHA1MessageDigest:function (ippsSHA1MessageDigest.LEndippsSHA1MessageDigest - ippsSHA1MessageDigest)
.Lin_ippsSHA1MessageDigest:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsSHA1MessageDigest:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsSHA1MessageDigest]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsSHA1MessageDigest:
|
||||
TheStack | 1b78f5c1733a46709336a4d16802d6b77ff8cedc | Assemblycode:Assembly | {"size": 7719, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1005.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1005.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1005.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 33.2715517241, "max_line_length": 2999, "alphanum_fraction": 0.6546184739} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x5486, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov (%rdi), %r14w
nop
nop
nop
cmp %rbp, %rbp
lea addresses_WC_ht+0x15103, %rbp
clflush (%rbp)
nop
xor $9651, %r15
mov (%rbp), %esi
cmp $63243, %rsi
lea addresses_WC_ht+0x4f97, %rdi
nop
nop
nop
nop
nop
sub $52900, %r13
movl $0x61626364, (%rdi)
xor %rsi, %rsi
lea addresses_WC_ht+0x10a96, %rsi
lea addresses_WC_ht+0x10f6, %rdi
nop
nop
nop
sub %r13, %r13
mov $110, %rcx
rep movsw
nop
nop
nop
nop
sub $32540, %rcx
lea addresses_D_ht+0x17f7a, %rcx
nop
nop
nop
sub %r15, %r15
movb $0x61, (%rcx)
nop
nop
xor %rdx, %rdx
lea addresses_WC_ht+0x16f16, %rdx
nop
nop
nop
nop
nop
sub %r15, %r15
movw $0x6162, (%rdx)
nop
nop
nop
nop
nop
xor $19911, %rdx
lea addresses_A_ht+0xb9d2, %rdi
nop
nop
nop
inc %rbp
vmovups (%rdi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rdx
nop
inc %rbp
lea addresses_A_ht+0x12816, %rsi
lea addresses_normal_ht+0x13516, %rdi
clflush (%rdi)
nop
nop
cmp %r14, %r14
mov $44, %rcx
rep movsw
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_A_ht+0x8616, %rdi
nop
nop
inc %r13
mov (%rdi), %dx
sub %r13, %r13
lea addresses_WC_ht+0x5e16, %r13
nop
nop
inc %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
vmovups %ymm1, (%r13)
nop
nop
nop
nop
add $51766, %r13
lea addresses_WT_ht+0x180aa, %rdx
nop
nop
nop
cmp $5141, %rbp
vmovups (%rdx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
nop
nop
nop
nop
and $6570, %rcx
lea addresses_WC_ht+0xddb6, %rbp
nop
nop
nop
nop
sub $29816, %rdi
movups (%rbp), %xmm4
vpextrq $1, %xmm4, %r15
nop
nop
nop
nop
and $58287, %rdi
lea addresses_D_ht+0x11e16, %rsi
dec %r14
vmovups (%rsi), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdx
nop
nop
inc %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rsi
// Store
lea addresses_PSE+0x15216, %r15
nop
cmp %rsi, %rsi
movw $0x5152, (%r15)
nop
nop
nop
dec %r12
// Store
lea addresses_RW+0x18616, %rcx
xor %r13, %r13
mov $0x5152535455565758, %r10
movq %r10, (%rcx)
nop
nop
nop
xor $54791, %r13
// Faulty Load
lea addresses_RW+0x18616, %r10
nop
add $64168, %r15
mov (%r10), %r12
lea oracles, %rcx
and $0xff, %r12
shlq $12, %r12
mov (%rcx,%r12,1), %r12
pop %rsi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_PSE'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_RW'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 7, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|