hexsha
stringlengths 40
40
| size
int64 6
1.05M
| ext
stringclasses 3
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 4
232
| max_stars_repo_name
stringlengths 7
106
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
7
| max_stars_count
int64 1
33.5k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 4
232
| max_issues_repo_name
stringlengths 7
106
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
7
| max_issues_count
int64 1
37.5k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 4
232
| max_forks_repo_name
stringlengths 7
106
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
7
| max_forks_count
int64 1
12.6k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 6
1.05M
| avg_line_length
float64 1.16
19.7k
| max_line_length
int64 2
938k
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39b52590087a6b7976e21f12e114e66efdf62403
| 345
|
asm
|
Assembly
|
programs/oeis/005/A005377.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/005/A005377.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/005/A005377.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A005377: Number of low discrepancy sequences in base 4.
; 0,0,0,0,1,2,3,4,5,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139
mov $2,$0
lpb $2
sub $2,$3
trn $2,1
add $1,$2
sub $2,1
add $3,3
mul $3,2
lpe
trn $1,2
| 24.642857
| 187
| 0.628986
|
fe47bf1dd08038a070499125e4da570980807768
| 7,851
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_1001.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_1001.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_1001.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16a6b, %rsi
lea addresses_D_ht+0xbe87, %rdi
nop
nop
nop
nop
and $60884, %rbx
mov $60, %rcx
rep movsw
nop
nop
nop
dec %rsi
lea addresses_WC_ht+0x2ead, %r15
nop
nop
and $62068, %r9
mov (%r15), %edi
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0x1e38b, %r9
nop
xor %r12, %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
movups %xmm1, (%r9)
nop
nop
nop
nop
inc %rcx
lea addresses_normal_ht+0xf6b3, %r15
clflush (%r15)
inc %rcx
mov (%r15), %r9w
nop
nop
cmp $765, %rsi
lea addresses_A_ht+0xa78b, %rbx
nop
nop
nop
nop
nop
sub %rsi, %rsi
movb (%rbx), %r12b
nop
lfence
lea addresses_D_ht+0x178b, %rsi
lea addresses_D_ht+0x15e2b, %rdi
nop
xor $34415, %r8
mov $70, %rcx
rep movsl
nop
nop
nop
nop
nop
and %r15, %r15
lea addresses_normal_ht+0x846b, %r8
nop
cmp %rsi, %rsi
mov (%r8), %ecx
nop
nop
nop
nop
xor %r8, %r8
lea addresses_normal_ht+0x14e0b, %r8
nop
nop
cmp %r12, %r12
mov (%r8), %rdi
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_WC_ht+0x1e38b, %rsi
lea addresses_normal_ht+0xe78b, %rdi
nop
nop
nop
and $48158, %r9
mov $40, %rcx
rep movsq
add $56651, %rdi
lea addresses_normal_ht+0x8dbc, %r12
nop
nop
and $7610, %r15
mov (%r12), %bx
dec %r12
lea addresses_WC_ht+0x14b8b, %rsi
lea addresses_UC_ht+0x1778b, %rdi
nop
sub %r12, %r12
mov $19, %rcx
rep movsw
nop
nop
nop
nop
and $3018, %r12
lea addresses_D_ht+0xcabb, %rcx
nop
cmp %r9, %r9
movb $0x61, (%rcx)
nop
and $1382, %r12
lea addresses_WC_ht+0xb38b, %r12
nop
nop
add $19906, %r15
mov (%r12), %r8d
nop
nop
lfence
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rbp
push %rbx
push %rcx
push %rsi
// Store
mov $0x721, %r13
nop
nop
nop
nop
cmp %rsi, %rsi
mov $0x5152535455565758, %rbx
movq %rbx, %xmm6
movups %xmm6, (%r13)
nop
nop
nop
nop
nop
inc %r13
// Load
lea addresses_WC+0x9cb, %r10
cmp %rbp, %rbp
vmovups (%r10), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rcx
nop
nop
xor %rcx, %rcx
// Load
lea addresses_WT+0x488b, %rbp
nop
cmp $46405, %r10
mov (%rbp), %esi
and $42947, %rsi
// Faulty Load
lea addresses_US+0x14f8b, %rbx
cmp %r13, %r13
mov (%rbx), %r10
lea oracles, %rcx
and $0xff, %r10
shlq $12, %r10
mov (%rcx,%r10,1), %r10
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.134783
| 2,999
| 0.653293
|
ac655f6c283dbc91fb88542835295617f76cd570
| 782
|
asm
|
Assembly
|
source/tokeniser/tokeniser.asm
|
paulscottrobson/6502-basic
|
d4c360041bfa49427a506465e58bb0ef94beaa44
|
[
"MIT"
] | 3
|
2021-09-30T19:34:11.000Z
|
2021-10-31T06:55:50.000Z
|
source/tokeniser/tokeniser.asm
|
paulscottrobson/6502-Basic
|
d4c360041bfa49427a506465e58bb0ef94beaa44
|
[
"MIT"
] | null | null | null |
source/tokeniser/tokeniser.asm
|
paulscottrobson/6502-Basic
|
d4c360041bfa49427a506465e58bb0ef94beaa44
|
[
"MIT"
] | 1
|
2021-12-07T21:58:44.000Z
|
2021-12-07T21:58:44.000Z
|
;
; Automatically generated
;
.include "detokenise/detokenise.asm"
.include "detokenise/dtprint.asm"
.include "detokenise/identifier.asm"
.include "detokenise/token.asm"
.include "tokenise/search.asm"
.include "tokenise/test.asm"
.include "tokenise/tokenise.asm"
.include "tokenise/tokident.asm"
.include "tokenise/tokinteger.asm"
.include "tokenise/tokpunct.asm"
.include "tokenise/tokstring.asm"
.include "tokentext.asm"
.section code
tokeniserHandler:
dispatch tokeniserVectors
tokeniserVectors:
.word _DummyControlHandler ; index 0
.word Detokenise ; index 2
.word ListLine ; index 4
.word TokTest ; index 6
.word Tokenise ; index 8
.word TokeniseASCIIZ ; index 10
_DummyControlHandler:
rts
.send code
| 24.4375
| 38
| 0.713555
|
d99e5a3e4293cc84ba9fe72c715a6cf3a2bc7693
| 327
|
asm
|
Assembly
|
programs/oeis/047/A047572.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/047/A047572.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/047/A047572.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A047572: Numbers that are congruent to {1, 2, 4, 5, 6, 7} mod 8.
; 1,2,4,5,6,7,9,10,12,13,14,15,17,18,20,21,22,23,25,26,28,29,30,31,33,34,36,37,38,39,41,42,44,45,46,47,49,50,52,53,54,55,57,58,60,61,62,63,65,66,68,69,70,71,73,74,76,77,78,79,81,82,84,85,86,87
mov $1,4
add $1,$0
div $1,2
mul $1,4
div $1,6
add $1,$0
mov $0,$1
| 29.727273
| 192
| 0.617737
|
bba24b62af1e127d74e0241cfbf26339aba2ff68
| 4,744
|
asm
|
Assembly
|
unordnung_auch_assembler/asm/attiny13/slowmo/4x7seg/tinyProg.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
unordnung_auch_assembler/asm/attiny13/slowmo/4x7seg/tinyProg.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
unordnung_auch_assembler/asm/attiny13/slowmo/4x7seg/tinyProg.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
.include "myTiny13.h"
Main:
;initial values ----------------------------
; .----Leds On
;Spkr---.|.---Clk
;Poti--.|||.--Data
ldi A,0b00001111
out DDRB,A
ldi A,0
out PORTB,A
; StartValue
ldi YH,0x00
ldi YL,0x00 ; Y has 4 digits: HH LL
MainLoop:
rcall ToneOnZeroY
rcall GetADC ; store it in r3
mov A,r3
; make 7seg off
cbi PORTB,2
; Based on ADC Value select one of 5 choices:
; 5 - fast Countdown
; 4 - slow Countdown
; 3 - Stop
; 2 - slow CountUp
; 1 - fast CountUp
step5:
cpi A,200 ; A >= 200 ? do something, else jump to next compare
brlo step4
ldi XH,0x0C ; 0CCD => 1/10 sec on 128 kHz (X= 3277)
ldi XL,0xCD
rcall SubOneFromY
rjmp stepEnd
step4:
cpi A,150 ; A >= 150 ? do something, else jump
brlo step3
ldi XH,0x80 ; 8000 => 1 sec on 128 kHz (X=32768)
ldi XL,0x00
rcall SubOneFromY
rjmp stepEnd
step3:
cpi A,100
brlo step2
; do nothing
rjmp stepEnd
step2:
cpi A,50
brlo step1
ldi XH,0x80 ; 8000 => 1 sec on 128 kHz (X=32768)
ldi XL,0x00
rcall AddOneToY
rjmp stepEnd
step1: ; default (A<50)
ldi XH,0x0C ; 0CCD => 1/10 sec on 128 kHz (X= 3277)
ldi XL,0xCD
rcall AddOneToY
stepEnd:
ldi N,9 ;fill 8 flipflops with C (N=8..1) if N=0 then jump
mov C,YL
NextLowBit:
dec N
breq HighBit
rcall AnalyseC
rjmp NextLowBit
HighBit:
ldi N,9 ;fill 8 flipflops with C (N=8..1) if N=0 then jump
mov C,YH
NextHighBit:
dec N
breq Power7seg
rcall AnalyseC
rjmp NextHighBit
Power7seg:
; make 7seg on
sbi PORTB,2
rcall WaiterX
rjmp MainLoop
; -----------------------------------
;subroutine
Clock:
sbi PORTB,1
nop
cbi PORTB,1
ret
;subroutine
WaiterX:
sbiw X,1
brne WaiterX
ret
;subroutine
AnalyseC:
mov A,C
andi A,0b00000001
breq WasZero
sbi PORTB,0
rjmp ClkTick
WasZero:
cbi PORTB,0
ClkTick:
rcall Clock
ror C ; move bit to right
ret
;subroutine (add a 6 on High and Low Bit, neccessary to get DEC instead of Hex)
AddOneToY:
ldi A,1
add YL,A ; YL = YL +1
in A,SREG ; save status
push A
CheckLL:
ldi A,0x0F
and A,YL ; now A has only the lower 4 bit (L)
cpi A,0x0A ; is A=10 ?
breq Add6LL
rjmp CheckLH
Add6LL:
ldi A,0x06
add YL,A
CheckLH:
ldi A,0xF0
and A,YL ; now A has only the higher 4 bit (H)
cpi A,0xA0 ; is A=10 ?
breq Add6LH
rjmp CheckHL
Add6LH:
ldi A,0x60
add YL,A
pop A
in A,SREG ; save status
push A
CheckHL:
pop A
out SREG,A ; restore status
ldi A,0
adc YH,A ; YH = YH +0 +Carry
; alles nochmal mit YH ---------------------
ldi A,0x0F
and A,YH ; now A has only the lower 4 bit (L)
cpi A,0x0A ; is A=10 ?
breq Add6HL
rjmp CheckHH
Add6HL:
ldi A,0x06
add YH,A
CheckHH:
ldi A,0xF0
and A,YH ; now A has only the higher 4 bit (H)
cpi A,0xA0 ; is A=10 ?
breq Add6HH
rjmp EndCheck
Add6HH:
ldi A,0x60
add YH,A
EndCheck:
ret
;subroutine (add a 6 on High and Low Bit, neccessary to get DEC instead of Hex)
SubOneFromY:
ldi A,1
sub YL,A ; YL = YL -1
in A,SREG ; save status
push A
sCheckLL:
ldi A,0x0F
and A,YL ; now A has only the lower 4 bit (L)
cpi A,0x0F ; is A=15 ?
breq Sub6LL
rjmp sCheckLH
Sub6LL:
ldi A,0x06
sub YL,A
sCheckLH:
ldi A,0xF0
and A,YL ; now A has only the higher 4 bit (H)
cpi A,0xF0 ; is A=15 ?
breq Sub6LH
rjmp sCheckHL
Sub6LH:
ldi A,0x60
sub YL,A
sCheckHL:
pop A
out SREG,A ; restore status
ldi A,0
sbc YH,A ; YH = YH -0 -Carry
; alles nochmal mit YH ---------------------
ldi A,0x0F
and A,YH ; now A has only the lower 4 bit (L)
cpi A,0x0F ; is A=15 ?
breq Sub6HL
rjmp sCheckHH
Sub6HL:
ldi A,0x06
sub YH,A
sCheckHH:
ldi A,0xF0
and A,YH ; now A has only the higher 4 bit (H)
cpi A,0xF0 ; is A=15 ?
breq Sub6HH
rjmp sEndCheck
Sub6HH:
ldi A,0x60
sub YH,A
sEndCheck:
ret
;subroutine - store ADC as 8bit in r3
GetADC:
push A ; save Register
push r4
ldi A,0b00000010 ; 10 = ADC2 -> PB4
out ADMUX,A
; ADC On,ADSC,ADIF (single conversion)
ldi A,0b11010000
out ADCSRA,A
getADCloop:
sbis ADCSRA,4 ; ADIF-Bit Ready? then skip loop
rjmp getADCloop
in r3,ADCL
in r4,ADCH
; devide by 4: make 10bit to 8bit
clc
ror r4 ; bit0 -> Carry
ror r3 ; Carry -> bit7
clc
ror r4 ; bit0 -> Carry
ror r3 ; Carry -> bit7
pop r4 ; restore Register
pop A
ret
; subroutine: If Counter Y == 0 then set R5 on a Value for Beep Loop.
ToneOnZeroY:
push A
; if Y = 0 then r5 = 250, else Jump
cpi YL,0
brne toz5ready
cpi YH,0
brne toz5ready
; ok, it is realy Zero!
ldi ZH,8
ldi ZL,0
tozBeepLoop:
; toggle Sound-Bit
ldi A,0b00001000
in B,PINB
eor B,A
out PORTB,B
mov A,ZL ; make different Tones -> Sirene
tozBeepWaiter:
dec A
brne tozBeepWaiter
sbiw Z,1
brne tozBeepLoop
toz5ready:
pop A
ret
| 16.763251
| 79
| 0.638702
|
754f74f8351150ff3b138d3ca35827a3ed968820
| 609
|
asm
|
Assembly
|
lab_task-3.asm
|
IftekharMohammad/Computer-Organization-and-Architecture-Lab-Task
|
b4bde92c476ec51267604efb3c92e1344fe76dd2
|
[
"MIT"
] | null | null | null |
lab_task-3.asm
|
IftekharMohammad/Computer-Organization-and-Architecture-Lab-Task
|
b4bde92c476ec51267604efb3c92e1344fe76dd2
|
[
"MIT"
] | null | null | null |
lab_task-3.asm
|
IftekharMohammad/Computer-Organization-and-Architecture-Lab-Task
|
b4bde92c476ec51267604efb3c92e1344fe76dd2
|
[
"MIT"
] | null | null | null |
.MODEL SMALL
.STACK 100H
.DATA
QUES DB "ENTER A HEX DIGIT: $"
PROMPT DB "IN DECIMAL IT IS: $"
INITIAL DB ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH,9
LEA DX,QUES
INT 21H
MOV AH,1
INT 21H ;INPUT IN INITIAL
MOV INITIAL,AL
MOV AH,2
MOV DL,0AH
INT 21H
MOV DL,0DH
INT 21H
MOV AH,9
LEA DX,PROMPT
INT 21H
MOV AH,2
MOV DL,31H
INT 21H
MOV DL,INITIAL
SUB DL,17
INT 21H
MOV AH,4CH ;RETURN TO OS
INT 21H
MAIN ENDP
END MAIN
| 14.853659
| 40
| 0.494253
|
abfed688c93f5ce95b535e32c9dc26ee2e9fba55
| 1,348
|
asm
|
Assembly
|
mips/26-1.asm
|
ping58972/Computer-Organization-Architecture
|
0f9377a9e54e3f0494143963aecf1ba7c83eec45
|
[
"ISC"
] | null | null | null |
mips/26-1.asm
|
ping58972/Computer-Organization-Architecture
|
0f9377a9e54e3f0494143963aecf1ba7c83eec45
|
[
"ISC"
] | null | null | null |
mips/26-1.asm
|
ping58972/Computer-Organization-Architecture
|
0f9377a9e54e3f0494143963aecf1ba7c83eec45
|
[
"ISC"
] | null | null | null |
# Ch26-1.asm
#Arithmetic Expression: 5u^2 - 12uv + 6v^2
.data
prompt_u: .asciiz "Enter values for u: "
prompt_v: .asciiz "Enter values for v: "
result: .asciiz "The result is: "
.text
.globl main
main:
la $a0, prompt_u # print string
li $v0, 4 # service 4
syscall
li $v0, 5 # read int into $v0
syscall
move $s0,$v0 # save it in $s0
la $a0, prompt_v # print string
li $v0, 4 # service 4
syscall
li $v0, 5 # read int into $v0
syscall
move $s1,$v0 # save it in $s1
#multiply3(5,u,u)
li $a0, 5
move $a1, $s0
move $a2, $s0
jal multiply3 #go to the function
move $s2, $v0
#multiply3(12,u,v);
li $a0, -12
move $a1, $s0
move $a2, $s1
jal multiply3 #go to the function
move $s3, $v0
#multiply3(6,v,v);
li $a0, 6
move $a1, $s1
move $a2, $s1
jal multiply3 #go to the function
move $s4, $v0
#5u2 - 12uv + 6v2
add $s5, $s2, $s3
add $s5, $s5, $s4
#print result
li $v0, 4
la $a0, result
syscall
li $v0, 1
move $a0, $s5
syscall
#finish program
li $v0, 10
syscall
#multiply3(int p1, int p2, int p3)
multiply3:
#p1*p2*p3
mul $t0, $a0, $a1
mul $t0, $t0, $a2
move $v0, $t0
jr $ra # return p1*p2*p3
| 18.722222
| 42
| 0.523739
|
cfff234030f7f683d40d5f0135dabd15812fabed
| 536
|
asm
|
Assembly
|
libsrc/graphics/gray/grpage.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/graphics/gray/grpage.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/graphics/gray/grpage.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;
; TI Gray Library Functions
;
; Written by Stefano Bodrato - Mar 2001
;
; $Id: grpage.asm,v 1.3 2015-01-19 01:32:49 pauloscustodio Exp $
;
;
; A trick to be used with the dafault graph functions
;
; IN: A=Page Number (0/1)
; all registers are saved
PUBLIC graypage
EXTERN base_graphics
EXTERN graybit1
EXTERN graybit2
.graypage
push hl
and a
jr nz,flippage
ld hl,(graybit1)
ld (base_graphics),hl
pop hl
ret
.flippage
ld hl,(graybit2)
ld (base_graphics),hl
pop hl
ret
| 16.242424
| 64
| 0.647388
|
c9e063842378e91ed4773be7f52c84e81faa4521
| 19,023
|
asm
|
Assembly
|
engine/graphics.asm
|
jasaldivara/retro-dos-graphics
|
a56ba84455a084583a10158ea9ca39f16c8156b5
|
[
"MIT"
] | 13
|
2020-02-01T23:09:58.000Z
|
2022-01-13T23:15:42.000Z
|
engine/graphics.asm
|
jasaldivara/retro-dos-graphics
|
a56ba84455a084583a10158ea9ca39f16c8156b5
|
[
"MIT"
] | null | null | null |
engine/graphics.asm
|
jasaldivara/retro-dos-graphics
|
a56ba84455a084583a10158ea9ca39f16c8156b5
|
[
"MIT"
] | null | null | null |
drawmap:
; DX = Map data
xor ax, ax ; AX = 0
mov si, dx ; Load Map data on Source index
.looprows:
xor bx, bx ; BX = 0
.loopcols:
mov cx, ax
lodsb
xchg ax, cx
call drawtilesimple
inc bx
cmp bx, MAPSCREENWIDTH
jl .loopcols
inc ax
add si, MAPWIDTH - MAPSCREENWIDTH
cmp ax, MAPHEIGHT
jl .looprows
ret
dibujasprite16:
; Parametros:
; BP: sprite
mov bx, [ds:bp + SPRITE.x]
; -1.- Revisar si pixeles están alineados con bytes
test bx, 0000001b
jnz dibujasprite16noalineado
shr bx, 1
; 0.- Cargar direccion de mapa de bits
mov ah, [ds:bp + SPRITE.bw]
mov al, [ds:bp + SPRITE.ssframe]
mul ah
mov ah, [ds:bp + SPRITE.h]
mul ah
add ax, [ds:bp + SPRITE.gr0]
mov si, ax
; 1.- Seleccionar banco de memoria
mov cx, MEMCGAEVEN
mov es, cx
; mov cx, ax ; Copiar / respaldar coordenada Y
mov ax, [ds:bp + SPRITE.y]
mov cx, ax
shr ax, 1 ; Descartar el bit de selección de banco
; 2.- Multiplicar
mov dl, BYTESPERSCAN
mul dl ; multiplicar por ancho de pantalla en bytes
add ax, bx ; Desplazamiento del byte que vamos a manipular
mov di, ax
mov ax, [ds:bp + SPRITE.bw]
; 3.- En caso de que coordenada Y sea impar, comenzar a dibujar sprite desde
; la segunda fila de pixeles del mapa de bits en coordenada par de pantalla.
; mov cx, [ds:bp + SPRITE.y]
test cx, 00000001b
jz .espar
add si, ax
add di, BYTESPERSCAN
.espar: pushf
mov cx, [ds:bp + SPRITE.h] ; 4 .- Primero dibujamos mitad de renglones (en renglones par de patalla)
shr cx, 1
.looprenglon:
mov dx, cx ; respaldar conteo de renglones
mov cx, ax ; Bytes a copiar por renglon
rep movsb
mov cx, dx ; restaurar conteo de renglones
add di, BYTESPERSCAN; Agregar suficientes bytes para que sea siguiente renglon
sub di, ax
add si, ax ; Saltar renglones de ssprite.mapa de bits
loop .looprenglon
; 5 .- Después dibujamos otra mitad de renglones de sprite, ahora en renglones impar de pantalla
mov cx, MEMCGAODD ; Dibujar en renglones impar de pantalla CGA 4 Col
mov es, cx
mov bx, ax
mov al, [ds:bp + SPRITE.h]
mov dl, al
shr al,1
mov ah, BYTESPERSCAN
mul ah
sub di, ax ; Retroceder hasta posicion inicial en pantalla ? (pero ahora en renglon impar)
dec dl
mov al, bl
mul dl
sub si, ax ; retrocedemos hasta posicion inicial de sprite + un renglon
popf ; ¿Necesario?
jz .espar2
sub si, bx
sub si, bx
sub di, BYTESPERSCAN
.espar2:
mov cx, [ds:bp + SPRITE.h]
shr cx, 1
.looprenglon2:
mov dx, cx ; respaldar conteo de renglones
mov cx, bx ; Bytes a copiar por renglon
rep movsb
mov cx, dx ; restaurar conteo de renglones
add di, BYTESPERSCAN ; Agregar suficientes bytes para que sea siguiente renglon
sub di, bx
add si, bx ; Saltar renglones de ssprite.mapa de bits
loop .looprenglon2
ret
dibujasprite16noalineado:
; 0.- Cargar direccion de mapa de bits
mov ah, [ds:bp + SPRITE.bw]
mov dh, ah
mov al, [ds:bp + SPRITE.ssframe]
mul ah
mov ah, [ds:bp + SPRITE.h]
mov dl, ah
mul ah
add ax, [ds:bp + SPRITE.gr1]
mov si, ax
; 1.- Seleccionar banco de memoria
mov cx, MEMCGAEVEN
mov es, cx
mov ax, [ds:bp + SPRITE.y]
mov cl, al ; Copiar / respaldar coordenada Y
shr ax, 1 ; Descartar el bit de selección de banco
; 2.- Multiplicar
mov ch, dl
mov dl, BYTESPERSCAN
mul dl ; multiplicar por ancho de pantalla en bytes
shr bx, 1 ; Descartar ultimo bit
add ax, bx ; Desplazamiento del byte que vamos a manipular
mov di, ax
xor bx, bx
mov bl, dh
; 3.- En caso de que coordenada Y sea impar, comenzar a dibujar sprite desde
; la segunda fila de pixeles del mapa de bits en coordenada par de pantalla.
test cl, 00000001b
jz .espar
add si, bx ; bx = SPRITE.bw
add di, BYTESPERSCAN
.espar:
pushf
mov cl, ch ; 4 .- Primero dibujamos mitad de renglones (en renglones par de patalla)
xor ch, ch
shr cx, 1
mov al, [colorbackground]
mov dh, al
.looprenglon:
mov dl, cl ; guardar contador de renglones
; primer pixel del renglón
; Conservar el pixel de la izquierda, que pertenece al fondo?
mov ah, dh
and ah, 11110000b
lodsb
and al, 00001111b
or al, ah
stosb
mov cx, bx ; numero de bytes a copiar
dec cx
; ultimo pixel del renglón
; Conservar el pixel de la derecha, que pertenece al fondo?
rep movsb
mov ah, dh
and ah, 00001111b
lodsb
and al, 11110000b
or al, ah
stosb
add di, BYTESPERSCAN ; Agregar suficientes bytes para que sea siguiente renglon
sub di, bx
dec di
add si, bx ; Saltar renglones de sprite.mapa de bits
dec si
xor cx, cx
mov cl, dl ; contador de renglones
loop .looprenglon
;popf ; Salir por mientras
;ret
; 5 .- Después dibujamos otra mitad de renglones de sprite, ahora en renglones impar de pantalla
mov cx, MEMCGAODD ; Dibujar en renglones impar de pantalla CGA 4 Col
mov es, cx
mov ax, [ds:bp + SPRITE.h]
mov cx, ax
mov dl, al
shr al,1
mov ah, BYTESPERSCAN
mul ah
sub di, ax ; Retroceder hasta posicion inicial en pantalla ? (pero ahora en renglon impar)
dec dl
mov al, bl
mul dl
sub si, ax ; retrocedemos hasta posicion inicial de sprite + un renglon
popf ; ¿Necesario?
jz .espar2
sub si, bx
sub si, bx
sub di, BYTESPERSCAN
.espar2:
; mov cx, [ds:bp + SPRITE.h]
shr cx, 1
.looprenglon2:
mov dl, cl ; guardar contador de renglones
; primer pixel del renglón
; Conservar el pixel de la izquierda, que pertenece al fondo?
mov ah, dh
and ah, 11110000b
lodsb
and al, 00001111b
or al, ah
stosb
mov cx, bx ; numero de bytes a copiar
dec cx
rep movsb
; Último pixel del renglón
; Conservar el pixel de la derecha, que pertenece al fondo?
mov ah, dh
and ah, 00001111b
lodsb
and al, 11110000b
or al, ah
stosb
add di, BYTESPERSCAN ; Agregar suficientes bytes para que sea siguiente renglon
sub di, bx
dec di
add si, bx ; Saltar renglones de ssprite.mapa de bits
dec si
xor cx, cx
mov cl, dl ; contador de renglones
loop .looprenglon2
; Fin. Retornar
ret
borraspritemov:
; Optimized routine for erasing only the pixels that needs to be erased
; DS:BP => Sprite
; 1.- Check if moved vertically
.checkvertical:
mov ax, [ds:bp + SPRITE.y]
mov bx, [ds:bp + SPRITE.ny]
cmp ax, bx
je .checkhorizontal ; Si son iguales es que no hay mov vertical
jg .bkvertical ; Si y es mayor que ny, vamos hacia abajo
; Si y es nemor que ny, vamos hacia arriba
; ax => c.y = s.y
sub bx, ax ; bx => c.h = s.ny - s.y
jmp .clearvertical
.bkvertical:
xchg ax, bx ; ax => s.ny, bx => s.y
sub bx, ax ; bx => s.ny - s.y (numero negativo)
; neg bx ; bx => c.h = s.y - s.ny (numero positivo)
add ax, [ds:bp + SPRITE.h] ; ax => c.y = s.ny + s.h
.clearvertical:
; ax => c.y
; bx => c.h
; mov ax, 3
; mov bx, 4
mov cx, MEMCGAEVEN
mov es, cx
mov cx, ax ; respaldar coordenada y
shr ax, 1 ; Descartar bit de seleccion de banco
; multiplicar
mov dx, BYTESPERSCAN
mul dl ; multiplicar por ancho de pantalla en bytes
mov dx, [ds:bp + SPRITE.x]
shr dx, 1 ; Descartar ultimo bit (posicion de pixel dentro del byte)
add ax, dx ; Direccion en memoria donde comenzamos a borrar
mov di, ax
; En caso de que coordenada Y sea impar, comenzar a borrar desde
; la segunda fila de pixeles del mapa de bits en coordenada par de pantalla.
mov dx, bx
shr dx, 1
mov ax, bx
and ax, 00000001b
test cx, 00000001b
pushf
jz .espar
add di, BYTESPERSCAN
jmp .sig1
.espar:
add dx, ax
.sig1:
.initlooprow:
mov cx, dx
mov al, [colorbackground]
mov ah, bl ; respaldar altura de area a borrar
mov bx, [ds:bp + SPRITE.x]
and bx, 00000001b
add bx, [ds:bp + SPRITE.bw]
test cx, cx
jz .finlooprow
.looprenglon:
mov dx, cx
mov cx, bx
rep stosb
mov cx, dx
add di, BYTESPERSCAN
sub di, bx
loop .looprenglon
.finlooprow:
xor bh, bh
mov bl, ah
mov cx, es
cmp cx, MEMCGAODD
je .checkhorizontal
mov cx, MEMCGAODD
mov es, cx
mov ax, bx
shr ax, 1
mov ah, BYTESPERSCAN
mul ah
sub di, ax ; TODO: Ver como optimizar esto, junto con el siguiente 'jz .espar2'
; sub di, BYTESPERSCAN * ( ALTOSPRITE / 2 )
mov dx, bx
shr dx, 1
mov ax, bx
and ax, 00000001b
popf
jz .espar2
add dx, ax
sub di, BYTESPERSCAN
jmp .sig2
.espar2:
test ax, 00000001b
jz .sig2
sub di, BYTESPERSCAN
.sig2:
test dx, dx
jnz .initlooprow
.checkhorizontal:
mov dx, [ds:bp + SPRITE.x]
mov bx, [ds:bp + SPRITE.nx]
cmp dx, bx
je .salir
ja .mizq
.mder: ; dx => c.x = s.x
sub bx, dx ; bx => c.w = s.nx - s.x
jmp .sig3
.mizq:
xchg dx, bx ; bx => s.x, dx = s.nx
sub bx, dx ; bx => c.w = s.x - s.nx
add dx, [ds:bp + SPRITE.pxw] ; dh => c.x = s.nx + s.w
.sig3:
; dx => c.x
; bx => c.w
; Calcular movimiento vertical para borrado de seccion horizontal
mov bh, [ds:bp + SPRITE.h]
mov al, [ds:bp + SPRITE.y]
mov ah, [ds:bp + SPRITE.ny]
cmp al, ah
jl .mdown
xchg al, ah ; al => s.ny, ah => s.y
.mdown:
mov cl, ah
sub ah, al
sub bh, ah ; bh => c.h, al => c.y
je .salir ; ?? Salir en caso de que sea menor o igual a cero ?
mov al, cl
.clearhorizontal:
; dx => c.x
; bl => c.w
; bh => c.h
; al => c.y
mov cx, MEMCGAEVEN
mov es, cx
mov si, ax ; si => c.y
shr al, 1 ; descartar bit de seleccion de banco
mov ah, BYTESPERSCAN ; multiplicar por ancho de pantalla en bytes
mul ah ; ax => desplazamiento en bytes del renglon
; xor cx, cx
mov cx, dx ; cx => c.x
shr cx, 1 ; descartar utlimo bit (posicion de pixel intra-byte)
add ax, cx ; ax => Direccion de memoria donde empezamos a borrar
mov di, ax ; Destination index = posicion inicial a borrar
; ax queda libre para usar en otras cosas
xor ch, ch
mov cl, bh ; cx => c.h
shr cx, 1 ; dividir numero de renglones entre dos (para escaneo par)
test si, 00000001b ; ver si coordenada y es par
jz .espar3
add di, BYTESPERSCAN ; Comenzar en un renglón más abajo en caso de coordenada impar
jmp .sig4
.espar3:
; incrementar numero de renglones en escaneo par en caso de que renglones
; totales sea impar y coordenada y par
test bh, 00000001b
jz .sig4
inc cx
.sig4:
.initlooprowh:
; push bx ; ¿Aun es necesario respaldar estas variables?
push dx
push bx
mov al, [colorbackground]
; mov al, 00
mov ah, bl ; ah => c.w
shr ah, 1 ; dividir entre dos pixeles por byte
mov dh, bl
or dh, dl
and dh, 00000001b ; agregar un byte si numero de pixeles es impar
add ah, dh ; ah => numero de bytes a escribir horizontalmente
test cx, cx
jz .finlooprowh
.looprowh:
mov bx, cx ; respaldar conteo de renglones
xor ch, ch
mov cl, ah
rep stosb
mov cx, bx ; restaurar conteo de renglones
xor bx, bx
mov bl, ah
sub bx, BYTESPERSCAN
sub di, bx
mov bx, cx
loop .looprowh
.finlooprowh:
pop bx
pop dx
mov cx, es
cmp cx, MEMCGAODD
je .salir
mov cx, MEMCGAODD
mov es,cx
; xor ax, ax
mov ax, si ; al => c.y
shr al, 1
mov ah, BYTESPERSCAN
mul ah ; ax => desplazamiento en bytes del renglon
; xor cx, cx
mov cx, dx ; cx => c.x
shr cx, 1 ; descartar utlimo bit (posicion de pixel intra-byte)
add ax, cx
mov di, ax
xor cx, cx
mov cl, bh ; cx => c.h
shr cx, 1 ; dividir numero de renglones entre dos (para escaneo impar)
test si, 00000001b ; ver si coordenada c.y es impar
jz .espar4
test bh, 00000001b ; y además altura c.h es impar
jz .espar4
inc cx ; si ambos sin impares: incrementar numero de renglones
; a dibujar en lineas de escaneo impar de pantalla
.espar4:
jmp .initlooprowh
test cx, cx
;jz .salir ; salir en caso de que conteo de renglones sea cero
jnz .initlooprowh
.salir:
ret
borrasprite16:
; Parametros:
; BP => sprite
; 1.- Seleccionar banco de memoria
mov cx, MEMCGAEVEN
mov es, cx
mov ax, [ds:bp + SPRITE.y]
mov cx, ax ; Copiar / respaldar coordenada Y
shr ax, 1 ; Descartar el bit de selección de banco
; Multiplicar
mov dl, BYTESPERSCAN
mul dl ; multiplicar por ancho de pantalla en bytes
mov dx, [ds:bp + SPRITE.bw] ; guardar ancho de sprite en pixeles
mov bx, [ds:bp + SPRITE.x]
shr bx, 1
jnc .sig1 ; Incrementar numero de bytes a borrar si la alineacion x es non
inc dx
.sig1:
add ax, bx ; Desplazamiento del byte que vamos a manipular
mov di, ax
; En caso de que coordenada Y sea impar, comenzar a borrar sprite desde
; la segunda fila de pixeles del mapa de bits en coordenada par de pantalla.
test cx, 00000001b
jz .espar
add di, BYTESPERSCAN
.espar pushf
; Primero borramos mitad de renglones (en renglones par de patalla)
mov cx, [ds:bp + SPRITE.h]
shr cx, 1
; xor ax, ax ; Registro AX en ceros
; mov ax, 1010101010101010b <= debug
mov ax, [colorbackground]
.looprenglon:
mov bx, cx
mov cx, dx
rep stosb
mov cx, bx
add di, BYTESPERSCAN ; Agregar suficientes bytes para que sea siguiente renglon
sub di, dx
loop .looprenglon
; Después dibujamos otra mitad de renglones de sprite, ahora en renglones impar de pantalla
mov cx, MEMCGAODD ; Dibujar en renglones impar de pantalla CGA 4 Col
mov es, cx
mov bx, ax
mov al, [ds:bp + SPRITE.h]
shr al,1
mov ah, BYTESPERSCAN
mul ah
sub di, ax ; Retroceder hasta posicion inicial en pantalla ? (pero ahora en renglon impar)
mov ax, bx
popf ; ¿Necesario?
jz .espar2
sub di, BYTESPERSCAN
.espar2:
mov cx, [ds:bp + SPRITE.h]
shr cx, 1
.looprenglon2:
mov bx, cx
mov cx, dx
rep stosb
mov cx, bx
add di, BYTESPERSCAN ; Agregar suficientes bytes para que sea siguiente renglon
sub di, dx
loop .looprenglon2
ret
drawtilesimple:
; AX = Y Coordinate of tile
; BX = X Coordinate of tile
; CX = Tile Code
push si
push ax ; Respaldar AX y BX
push bx
; 1 .- Seleccionar banco de memoria
mov dx, MEMCGAEVEN
mov es, dx
mov dx, cs
mov ds, dx
; 2 .- Multiplicar para calcular desplazamiento
mov dl, BYTESPERSCAN
mul dl ; Multiply by screen width in bytes
mov dx, cx
mov cx, ( ilog2e( ALTOTILE ) - 1 )
shl ax, cl
; 3 .- Multiplicar X por ancho de TILE
mov cx, ilog2e(ANCHOTILE / PXB)
shl bx, cl
; 4 .- Sumar
add ax, bx
mov di, ax ; Destination Index
lea si, [tilesgraphics]
; mov si, bx
mov al, dl
mov ah, 64
mul ah
add si, ax
; mov si, bx
.draw:
mov cx, ( ALTOTILE / 2 ) ; Primero dibujamos mitad de renglones (en renglones par de patalla)
.looprenglon:
mov dx, cx ; respaldar cx
mov cx, ( ANCHOTILE / PXB )
rep movsb
mov cx, dx ; Reestablecer cx
add di, BYTESPERSCAN - ( ANCHOTILE / PXB )
add si, ( ANCHOTILE / PXB )
loop .looprenglon
mov cx, es
cmp cx, MEMCGAODD
je .salir
mov cx, MEMCGAODD
mov es, cx
sub di, BYTESPERSCAN * ( ALTOTILE / 2 )
sub si, ( ANCHOTILE / PXB ) * ( ALTOTILE - 1 )
jmp .draw
.salir:
pop bx ; Restaurar bx y ax
pop ax
pop si
ret
conviertecomposite2tandy:
; bx => graficos a convertir
; cx => cantidad de bytes a convertir
push si
push di
mov ax, cs ; Esto sólo funciona en ejecutables ".com" Cambiar en caso de ".exe"
mov ds, ax
mov es, ax
mov si, bx
mov di, bx
mov bx, comp2tdy_table
.loopbyte:
lodsb
mov dx, cx
mov ah, al
and al, 00001111b
xlatb
xchg ah, al
mov cl, 4
shr al, cl
xlatb
mov cl, 4
shl al, cl
or al, ah
stosb
mov cx, dx
loop .loopbyte
pop di
pop si
ret
inicializaspritegrafico:
; Parametros:
; BP => spritegrafico
mov bx, ds
mov es, bx
mov si, [ds:bp + SPRITESHEET.gr0]
mov ah, [ds:bp + SPRITESHEET.w]
%rep ilog2e( PXB )
shr ah, 1
%endrep
mov al, [ds:bp + SPRITESHEET.framescount]
mul ah
mov ah, [ds:bp + SPRITESHEET.h] ; Precaución: Estamos asumiendo que
mul ah ; resultado de multiplicacion cabe en un solo byte (AL)
inc ax
mov dx, ax
mov cx, ax
call malloc ; Asignar memoria
mov di, bx ; Memoria asignada en Destination Index
mov [ds:bp + SPRITESHEET.gr1], bx ; Memoria asignada en estructura Sprite
.px0: ; guardar el primer pixel con desplazamiento de bits
mov cx, 4 ; guardar bits a desplazar en el contador
xor ax, ax ; borrar ax
lodsb ; cargar byte en al
shr ax, cl ; desplazar esa cantidad de bits
stosb ; Escribir byte
mov cx, dx
dec cx
dec cx
.loopbyte:
mov bx, cx
dec si
lodsw
xchg ah, al
mov cx, 4
shr ax, cl ; desplazar esa cantidad de bits
stosb ; Escribir byte (?)
mov cx, bx
loop .loopbyte
xor ax, ax
mov ah, [ds:si - 1]
mov cx, 4
shr ax, cl
stosb
ret
conectaspritegraficos:
; Parametros:
; BP => sprite
mov bx, [ds:bp + SPRITE.spritesheet]
mov ax, [bx + SPRITESHEET.gr0]
mov [ds:bp + SPRITE.gr0], ax
mov ax, [bx + SPRITESHEET.gr1]
mov [ds:bp + SPRITE.gr1], ax
mov ax, [bx + SPRITESHEET.h]
mov [ds:bp + SPRITE.h], ax
mov ax, [bx + SPRITESHEET.w]
mov [ds:bp + SPRITE.pxw], ax
%rep ilog2e( PXB )
shr ax, 1
%endrep
mov [ds:bp + SPRITE.bw], ax
ret
doscroll:
; CX: Direccion de scroll
; 1 => izquierda
; 0 => derecha
mov si, map1
mov ax, [hscroll]
test cx, cx
jnz .mleft
.mright:
mov bx, ( BYTESPERSCAN / BYTESPERHSCROLL )
add bx, ax
inc ax
jmp .sig0
.mleft:
dec ax
mov bx, ax
.sig0:
mov [hscroll], ax
mov ax, bx
%rep ilog2e( BYTESPERHSCROLL )
shl ax, 1
%endrep
mov di, ax ; Desplazamiento en memoria de video
mov ax, bx
%rep ilog2e( HSCROLLSPERTILE )
shr ax, 1
%endrep
add si, ax
mov ax, bx
and ax, 1 ; TODO: cambiar para que funcione para distintos valoes de HSCROLLSPERTILE
mov ah, BYTESPERHSCROLL
mul ah
add ax, tilesgraphics
mov dx, ax
; VSync
mov cx, MAPHEIGHT
.tilerowloop:
lodsb
mov ah, 64 ; TODO: Sustituir con caulculo de tamaño de tile en bytes en preprocesador
mul ah
push si
push cx
; lea si, [tilesgraphics]
mov si, dx
add si, ax
; drawtile sub
mov cx, MEMCGAEVEN
mov es, cx
; mov cx, cs
; mov ds, cx
.draw:
mov cx, ( ALTOTILE / 2 ) ; Primero dibujamos mitad de renglones (renglones par de pantalla)
.scanlineloop:
; mov dx, cx ; respaldar CX
; mov cx,
%rep ( BYTESPERHSCROLL / 2 ) ; NOTA: Por ahora solo acepta multiplos de 2, por velocidad
movsw
%endrep
add di, BYTESPERSCAN - BYTESPERHSCROLL
add si, ( ANCHOTILE / PXB ) + ( ( ANCHOTILE / PXB ) - BYTESPERHSCROLL )
loop .scanlineloop
mov cx, es
cmp cx, MEMCGAODD
je .sigtile
mov cx, MEMCGAODD
mov es, cx
sub di, BYTESPERSCAN * ( ALTOTILE / 2 )
sub si, ( ( ANCHOTILE / PXB ) * ( ALTOTILE - 1 ) )
jmp .draw
.sigtile:
pop cx
pop si
add si, MAPWIDTH - 1
loop .tilerowloop
; Hacer el scroll por harware
mov dx, 03d4h
mov al, 0dh
out dx, al
mov al, [hscroll]
mov dx, 03d5h
out dx, al
ret
section .data
; program data
hscroll: dw 0
; Trabla de equivalencia entre paletas de colores Composite => Tandy
comp2tdy_table:
db 0, 2, 1, 3, 4, 7, 5, 11, 6, 10, 8, 10, 12, 14, 13, 15
| 20.323718
| 103
| 0.652368
|
a5e30da88707b94e3b7ae0bcb590f7b23cb12371
| 869
|
asm
|
Assembly
|
programs/oeis/276/A276862.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/276/A276862.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/276/A276862.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A276862: First differences of the Beatty sequence A003151 for 1 + sqrt(2).
; 2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2
mov $3,$0
mov $5,2
lpb $5
mov $0,$3
sub $5,1
add $0,$5
add $0,1
pow $0,2
mul $0,2
mov $2,1
lpb $0
add $2,2
trn $0,$2
lpe
sub $2,3
mov $4,$5
mov $6,$2
lpb $4
mov $1,$6
sub $4,1
lpe
lpe
lpb $3
sub $1,$6
mov $3,0
lpe
sub $1,2
div $1,2
add $1,2
| 26.333333
| 501
| 0.50748
|
972c70ed19acb7336e5ec80c6dd3b5ba29bc1431
| 1,969
|
asm
|
Assembly
|
projects/07/MemoryAccess/BasicTest/BasicTest.asm
|
SpyrosDellas/from-nand-to-tetris
|
8c7bc664e6ea4eba43a6c1fd381ed12984063420
|
[
"MIT"
] | null | null | null |
projects/07/MemoryAccess/BasicTest/BasicTest.asm
|
SpyrosDellas/from-nand-to-tetris
|
8c7bc664e6ea4eba43a6c1fd381ed12984063420
|
[
"MIT"
] | null | null | null |
projects/07/MemoryAccess/BasicTest/BasicTest.asm
|
SpyrosDellas/from-nand-to-tetris
|
8c7bc664e6ea4eba43a6c1fd381ed12984063420
|
[
"MIT"
] | null | null | null |
@START
0;JMP
(EQ)
@R13
M=D
@SP
AM=M-1
D=M
A=A-1
D=D-M
M=0
@END_EQ
D;JNE
@SP
A=M-1
M=-1
(END_EQ)
@R13
A=M
0;JMP
(GT)
@R13
M=D
@SP
AM=M-1
D=M
A=A-1
D=M-D
M=0
@END_GT
D;JLE
@SP
A=M-1
M=-1
(END_GT)
@R13
A=M
0;JMP
(LT)
@R13
M=D
@SP
AM=M-1
D=M
A=A-1
D=M-D
M=0
@END_LT
D;JGE
@SP
A=M-1
M=-1
(END_LT)
@R13
A=M
0;JMP
(START)
// push constant 10
@10
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 21
@21
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 22
@22
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop argument 2
@ARG
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// pop argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 36
@36
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop this 6
@THIS
D=M
@6
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 42
@42
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 45
@45
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 5
@THAT
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// pop that 2
@THAT
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 510
@510
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop temp 6
@SP
AM=M-1
D=M
@R11
M=D
// push local 0
@LCL
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push that 5
@THAT
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
// push argument 1
@ARG
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
AM=M-1
D=M
A=A-1
M=M-D
// push this 6
@THIS
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 6
@THIS
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
// sub
@SP
AM=M-1
D=M
A=A-1
M=M-D
// push temp 6
@R11
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
| 6.153125
| 21
| 0.463179
|
182c5c7700dba0eca9f673ea44fde5777552b9cb
| 827
|
asm
|
Assembly
|
programs/oeis/324/A324128.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/324/A324128.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/324/A324128.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A324128: a(n) = 2*n*Fibonacci(n) + (-1)^n + 1.
; 2,2,6,12,26,50,98,182,338,612,1102,1958,3458,6058,10558,18300,31586,54298,93026,158878,270602,459732,779286,1318222,2225666,3751250,6312438,10606572,17797418,29825282,49922402,83468678,139411778,232622148,387796318,645922550,1074985346,1787678458,2970700846,4933186908,8186732402,13577571562,22504800866,37280521582,61723968506,102141285300,168940695078,279294216862,461522589698,762316720802,1258626902502,2077231129548,3426933130298,5651526864338,9316897697378,15354224868950,25295360576306,41659623762468,68589260665966,112893199072838,185761050710402,305577155399242,502539702697246,826241260300092,1358106861788546,2231798423083450,3666681484658018,6022706408522302
mov $2,$0
gcd $2,2
cal $0,45925 ; a(n) = n*Fibonacci(n).
mov $1,$0
add $1,$2
sub $1,2
mul $1,2
add $1,2
| 68.916667
| 672
| 0.827086
|
8e6e36342a02c99b8912c6fb3893c17dd9dbc787
| 2,096
|
asm
|
Assembly
|
programs/oeis/162/A162263.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/162/A162263.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/162/A162263.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A162263: a(n) = (2*n^3 + 5*n^2 + 11*n)/2.
; 9,29,66,126,215,339,504,716,981,1305,1694,2154,2691,3311,4020,4824,5729,6741,7866,9110,10479,11979,13616,15396,17325,19409,21654,24066,26651,29415,32364,35504,38841,42381,46130,50094,54279,58691,63336,68220,73349,78729,84366,90266,96435,102879,109604,116616,123921,131525,139434,147654,156191,165051,174240,183764,193629,203841,214406,225330,236619,248279,260316,272736,285545,298749,312354,326366,340791,355635,370904,386604,402741,419321,436350,453834,471779,490191,509076,528440,548289,568629,589466,610806,632655,655019,677904,701316,725261,749745,774774,800354,826491,853191,880460,908304,936729,965741,995346,1025550,1056359,1087779,1119816,1152476,1185765,1219689,1254254,1289466,1325331,1361855,1399044,1436904,1475441,1514661,1554570,1595174,1636479,1678491,1721216,1764660,1808829,1853729,1899366,1945746,1992875,2040759,2089404,2138816,2189001,2239965,2291714,2344254,2397591,2451731,2506680,2562444,2619029,2676441,2734686,2793770,2853699,2914479,2976116,3038616,3101985,3166229,3231354,3297366,3364271,3432075,3500784,3570404,3640941,3712401,3784790,3858114,3932379,4007591,4083756,4160880,4238969,4318029,4398066,4479086,4561095,4644099,4728104,4813116,4899141,4986185,5074254,5163354,5253491,5344671,5436900,5530184,5624529,5719941,5816426,5913990,6012639,6112379,6213216,6315156,6418205,6522369,6627654,6734066,6841611,6950295,7060124,7171104,7283241,7396541,7511010,7626654,7743479,7861491,7980696,8101100,8222709,8345529,8469566,8594826,8721315,8849039,8978004,9108216,9239681,9372405,9506394,9641654,9778191,9916011,10055120,10195524,10337229,10480241,10624566,10770210,10917179,11065479,11215116,11366096,11518425,11672109,11827154,11983566,12141351,12300515,12461064,12623004,12786341,12951081,13117230,13284794,13453779,13624191,13796036,13969320,14144049,14320229,14497866,14676966,14857535,15039579,15223104,15408116,15594621,15782625
mov $4,$0
mov $0,3
mov $2,2
mov $3,1
sub $3,$4
sub $3,1
sub $2,$3
lpb $0,1
div $0,$2
mov $1,$2
mul $1,2
mov $3,2
lpe
add $1,1
mul $1,2
bin $2,2
add $3,$2
mul $1,$3
div $1,2
sub $1,6
| 87.333333
| 1,860
| 0.823473
|
f88a9169b81ca2ac90859c8b97b91334477c4f11
| 6,866
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_586.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_586.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_586.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1912, %rsi
lea addresses_WC_ht+0x1880a, %rdi
clflush (%rsi)
cmp %rdx, %rdx
mov $28, %rcx
rep movsw
nop
nop
nop
dec %rax
lea addresses_WT_ht+0x146d7, %rsi
lea addresses_D_ht+0x5f36, %rdi
clflush (%rdi)
nop
nop
xor $889, %r12
mov $41, %rcx
rep movsl
cmp $12680, %rcx
lea addresses_D_ht+0xf872, %r12
nop
add $18906, %rdx
movl $0x61626364, (%r12)
nop
nop
nop
dec %rdx
lea addresses_UC_ht+0xa052, %rcx
clflush (%rcx)
add $53155, %r14
mov (%rcx), %edx
nop
xor $14822, %rdx
lea addresses_UC_ht+0x13512, %rsi
lea addresses_A_ht+0x1c412, %rdi
clflush (%rdi)
inc %r12
mov $82, %rcx
rep movsb
inc %r14
lea addresses_WC_ht+0x10baa, %rdx
nop
nop
nop
sub %rcx, %rcx
mov (%rdx), %si
inc %rdx
lea addresses_normal_ht+0xce72, %rsi
lea addresses_UC_ht+0x103ca, %rdi
nop
nop
nop
nop
nop
xor %r15, %r15
mov $124, %rcx
rep movsl
nop
nop
nop
xor %rsi, %rsi
lea addresses_UC_ht+0xc892, %rsi
lea addresses_A_ht+0x1d712, %rdi
nop
nop
nop
nop
cmp %r14, %r14
mov $95, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r12
lea addresses_WT_ht+0x17084, %r12
nop
nop
nop
nop
nop
and %r15, %r15
vmovups (%r12), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rsi
nop
nop
nop
nop
nop
and $54959, %rcx
lea addresses_normal_ht+0xaf5e, %rdx
nop
nop
nop
nop
add $15210, %r15
movw $0x6162, (%rdx)
nop
nop
add %r14, %r14
lea addresses_normal_ht+0x18d92, %rsi
lea addresses_A_ht+0x18c12, %rdi
nop
nop
nop
nop
dec %r12
mov $72, %rcx
rep movsw
nop
add %r15, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rbp
push %rbx
push %rcx
push %rdx
// Faulty Load
lea addresses_UC+0x3412, %rbx
cmp $20915, %r14
vmovups (%rbx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdx
lea oracles, %rbx
and $0xff, %rdx
shlq $12, %rdx
mov (%rbx,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 37.725275
| 2,999
| 0.661084
|
e21dd5b912fe40ed82f1fc2d9ebfa7e677c31d89
| 5,492
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1411.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1411.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1411.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x100e7, %r8
clflush (%r8)
nop
xor $2108, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm7
vmovups %ymm7, (%r8)
cmp %rdx, %rdx
lea addresses_UC_ht+0x1c9a7, %rsi
nop
nop
nop
nop
nop
xor %rdi, %rdi
movb (%rsi), %al
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_WC_ht+0x6b67, %rax
nop
nop
nop
dec %r8
movups (%rax), %xmm6
vpextrq $0, %xmm6, %rdx
nop
nop
nop
nop
sub $26910, %rdi
lea addresses_WC_ht+0x18667, %rbp
nop
nop
nop
nop
nop
sub %r8, %r8
and $0xffffffffffffffc0, %rbp
vmovaps (%rbp), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r14
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_UC_ht+0x1d127, %rsi
lea addresses_UC_ht+0xb9a7, %rdi
nop
nop
nop
nop
cmp $3339, %rdx
mov $68, %rcx
rep movsb
nop
and %rdx, %rdx
lea addresses_D_ht+0x9327, %rcx
nop
nop
nop
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rdx
movq %rdx, %xmm5
movups %xmm5, (%rcx)
nop
nop
xor $55490, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r8
push %r9
push %rbx
// Faulty Load
lea addresses_UC+0x5b27, %r13
nop
nop
add %r14, %r14
mov (%r13), %r8w
lea oracles, %r14
and $0xff, %r8
shlq $12, %r8
mov (%r14,%r8,1), %r8
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': 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
*/
| 40.681481
| 2,999
| 0.659687
|
093eea96edd3c28e8630e1b798aa5fdb2e642c14
| 465
|
asm
|
Assembly
|
oeis/138/A138101.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/138/A138101.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/138/A138101.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A138101: The atomic numbers read along the even-indexed rows of the Janet table of the elements.
; Submitted by Christian Krause
; 3,4,13,14,15,16,17,18,19,20,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120
mov $1,$0
mul $0,2
seq $1,168142 ; Count downwards from 2, then from 8, then from 18, then from ... 2*k^2, k>=1.
add $0,$1
add $0,1
| 46.5
| 200
| 0.696774
|
fe58fc5dce9467c0904e9832ab489d5826e3794b
| 474
|
asm
|
Assembly
|
newbot.x86-32.asm
|
brightprogrammer/r2wars-bots
|
2c4cac045a20d7a92f31780592179ddd64b09aa0
|
[
"CC0-1.0"
] | null | null | null |
newbot.x86-32.asm
|
brightprogrammer/r2wars-bots
|
2c4cac045a20d7a92f31780592179ddd64b09aa0
|
[
"CC0-1.0"
] | null | null | null |
newbot.x86-32.asm
|
brightprogrammer/r2wars-bots
|
2c4cac045a20d7a92f31780592179ddd64b09aa0
|
[
"CC0-1.0"
] | null | null | null |
start:
mov esp, 0x400
; max bound
mov eax, esp
; another code
mov ecx, 0xc3c3c3c3 ; ret - i386
mov edx, 0xd65f03c0 ; ret - aarch64
mov ebx, 0xe12fff1e ; bx lr - arm32
; main program
mov ebp, 0xe4ff6060
mov esi, 0x6060e046
mov edi, 0x0f60fc83
; main program
; 83fc20 - cmp esp, 0x20
; 0f46e1 - cmovbe esp, eax
; 60 - pushad
; 60 - pushad
; 60 - pushad
; 60 - pushad
; ffe4 - jmp esp
pushad
jmp esp
| 17.555556
| 41
| 0.582278
|
1c46465b23e98088e2d2a9926a0fddba639f7a63
| 733
|
asm
|
Assembly
|
oeis/231/A231722.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/231/A231722.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/231/A231722.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A231722: Partial sums of A001088 starting from its second term; a(1)=0, a(n) = A001088(2)+...+A001088(n).
; 0,1,3,7,23,55,247,1015,5623,24055,208375,945655,9793015,62877175,487550455,3884936695,58243116535,384392195575,6255075618295,53220543000055,616806151581175,6252662237392375,130241496125238775,1122152167228009975,20960365589283433975,259018926653948521975,4544073025817920105975,55964722215785579113975,1495742899534880031337975,13013968318087635649129975,358560730874670304182889975,5887308931779993000723049975,116462272949886446931526249975,1885661697239589709824377449975
lpb $0
mov $2,$0
sub $0,1
seq $2,1088 ; Product of totient function: a(n) = Product_{k=1..n} phi(k) (cf. A000010).
add $1,$2
lpe
mov $0,$1
| 66.636364
| 476
| 0.81719
|
b75fc991bd282fa259ac38b98a5632b243064c6d
| 2,594
|
asm
|
Assembly
|
Working Disassembly/General/Sprites/Tails/Map - SStage Tails tails.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | 5
|
2021-07-09T08:17:56.000Z
|
2022-02-27T19:57:47.000Z
|
Working Disassembly/General/Sprites/Tails/Map - SStage Tails tails.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Working Disassembly/General/Sprites/Tails/Map - SStage Tails tails.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Map_SStageTailstails_:dc.w word_91124-Map_SStageTailstails_
dc.w word_91126-Map_SStageTailstails_
dc.w word_9112E-Map_SStageTailstails_
dc.w word_91136-Map_SStageTailstails_
dc.w word_9113E-Map_SStageTailstails_
dc.w word_91146-Map_SStageTailstails_
dc.w word_9114E-Map_SStageTailstails_
dc.w word_91156-Map_SStageTailstails_
dc.w word_9115E-Map_SStageTailstails_
dc.w word_91166-Map_SStageTailstails_
dc.w word_9116E-Map_SStageTailstails_
dc.w word_91176-Map_SStageTailstails_
dc.w word_9117E-Map_SStageTailstails_
dc.w word_91186-Map_SStageTailstails_
dc.w word_9118E-Map_SStageTailstails_
PLC_SStageTailstails:dc.w word_91124-PLC_SStageTailstails
dc.w word_91196-PLC_SStageTailstails
dc.w word_9119A-PLC_SStageTailstails
dc.w word_9119E-PLC_SStageTailstails
dc.w word_911A2-PLC_SStageTailstails
dc.w word_911A6-PLC_SStageTailstails
dc.w word_911AA-PLC_SStageTailstails
dc.w word_911AE-PLC_SStageTailstails
dc.w word_911B2-PLC_SStageTailstails
dc.w word_911B6-PLC_SStageTailstails
dc.w word_911BA-PLC_SStageTailstails
dc.w word_911BE-PLC_SStageTailstails
dc.w word_911C2-PLC_SStageTailstails
dc.w word_911C6-PLC_SStageTailstails
dc.w word_911CA-PLC_SStageTailstails
word_91124: dc.w 0
word_91126: dc.w 1
dc.b $EA, 6, 0, 0,$FF,$F8
word_9112E: dc.w 1
dc.b $F2, $A, 0, 0,$FF,$F8
word_91136: dc.w 1
dc.b $FA, 9, 0, 0,$FF,$F8
word_9113E: dc.w 1
dc.b $F2, 6, 0, 0,$FF,$F8
word_91146: dc.w 1
dc.b $EA, 7, 0, 0,$FF,$F8
word_9114E: dc.w 1
dc.b $EA, $A, 0, 0,$FF,$F0
word_91156: dc.w 1
dc.b $EA, 6, 0, 0,$FF,$F8
word_9115E: dc.w 1
dc.b $EA, 6, 8, 0,$FF,$F8
word_91166: dc.w 1
dc.b $F2, $A, 8, 0,$FF,$F0
word_9116E: dc.w 1
dc.b $FA, 9, 0, 0,$FF,$F0
word_91176: dc.w 1
dc.b $F2, 6, 8, 0,$FF,$F8
word_9117E: dc.w 1
dc.b $EA, 7, 8, 0,$FF,$F8
word_91186: dc.w 1
dc.b $EA, $A, 8, 0,$FF,$F8
word_9118E: dc.w 1
dc.b $EA, 6, 8, 0,$FF,$F8
word_91196: dc.w 1
dc.w $5000
word_9119A: dc.w 1
dc.w $8006
word_9119E: dc.w 1
dc.w $500F
word_911A2: dc.w 1
dc.w $5015
word_911A6: dc.w 1
dc.w $701B
word_911AA: dc.w 1
dc.w $8023
word_911AE: dc.w 1
dc.w $502C
word_911B2: dc.w 1
dc.w $5000
word_911B6: dc.w 1
dc.w $8006
word_911BA: dc.w 1
dc.w $5032
word_911BE: dc.w 1
dc.w $5015
word_911C2: dc.w 1
dc.w $701B
word_911C6: dc.w 1
dc.w $8023
word_911CA: dc.w 1
dc.w $502C
| 29.477273
| 59
| 0.662298
|
48b42612612cc95fe2f30d550e40eaafe7f6689a
| 442
|
asm
|
Assembly
|
programs/oeis/079/A079004.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/079/A079004.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/079/A079004.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A079004: Least x>=3 such that F(x)==1 (mod 3^n) where F(x) denotes the x-th Fibonacci number (A000045).
; 7,10,10,34,106,322,970,2914,8746,26242,78730,236194,708586,2125762,6377290,19131874,57395626,172186882,516560650,1549681954,4649045866,13947137602,41841412810,125524238434,376572715306,1129718145922
lpb $0,1
sub $0,1
mov $3,3
trn $3,$0
trn $0,$3
add $1,4
mov $2,$1
sub $1,4
mul $2,2
add $1,$2
lpe
trn $1,5
add $1,7
| 26
| 200
| 0.696833
|
4dbca7d9e1ba988e392ae2c838e9b047023e41a4
| 6,392
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_ht_/i3-7100_9_0x84_notsx.log_21829_473.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_ht_/i3-7100_9_0x84_notsx.log_21829_473.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_ht_/i3-7100_9_0x84_notsx.log_21829_473.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1d729, %r9
nop
nop
nop
nop
add %r12, %r12
mov (%r9), %r10w
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_D_ht+0x7791, %rsi
lea addresses_normal_ht+0x1d13b, %rdi
nop
nop
nop
add $55783, %r11
mov $11, %rcx
rep movsq
and %r10, %r10
lea addresses_WT_ht+0x10a0d, %rsi
lea addresses_A_ht+0x18069, %rdi
nop
nop
sub %r10, %r10
mov $99, %rcx
rep movsq
dec %r12
lea addresses_UC_ht+0x1b469, %rsi
nop
nop
nop
nop
nop
inc %r10
vmovups (%rsi), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdi
nop
nop
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0xddd, %rsi
nop
nop
nop
nop
nop
add $17403, %rcx
movw $0x6162, (%rsi)
and $58900, %r12
lea addresses_normal_ht+0x34b9, %rsi
lea addresses_A_ht+0x16a9, %rdi
clflush (%rsi)
nop
cmp $46862, %r11
mov $127, %rcx
rep movsl
nop
nop
nop
nop
and $42401, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r9
push %rdi
push %rdx
push %rsi
// Load
lea addresses_RW+0x10da9, %r13
nop
nop
nop
xor %r15, %r15
movups (%r13), %xmm1
vpextrq $0, %xmm1, %rsi
sub $59259, %r13
// Store
lea addresses_A+0x10faf, %r9
nop
nop
nop
nop
nop
sub %rdx, %rdx
movl $0x51525354, (%r9)
cmp %rdi, %rdi
// Store
lea addresses_WT+0x1289, %r12
clflush (%r12)
nop
nop
sub $7705, %rsi
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
and $0xffffffffffffffc0, %r12
movntdq %xmm5, (%r12)
nop
sub %r9, %r9
// Faulty Load
mov $0xb05c700000006a9, %r9
nop
nop
nop
and $16585, %rdx
vmovups (%r9), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %r13
lea oracles, %rdi
and $0xff, %r13
shlq $12, %r13
mov (%rdi,%r13,1), %r13
pop %rsi
pop %rdx
pop %rdi
pop %r9
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'49': 387, '47': 889, '44': 20553}
44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 47 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 47 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 49 44 44 44 44 44 47 44 44 44 44 44 44 44 47 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 47 44 47 44 44 47 44 44 44 44 47 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 47 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 49 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 49 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 47 44 44 44 47 44 44 44 44 47 44 44 44 47 44 44 47 47 44 44 44 44 44 44 44 44 44 44 44 44 47 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 49 44 44 44 44 44 44 44 44 47 44 44 47 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 47 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 47 44 44 44 44 47 44 47 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 47 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 47 47 44 44 44 47 44 44 44 44 44 44 47 47 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 47 44 44 44 44 44 44 47 44 44 44 44 44 44 44 44 44 44 44 49 44 44 44 44 44
*/
| 37.162791
| 2,999
| 0.658166
|
d320af1da805ac35f0b2dffb3dc21b0b0e356655
| 337
|
asm
|
Assembly
|
programs/oeis/021/A021536.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/021/A021536.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/021/A021536.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A021536: Decimal expansion of 1/532.
; 0,0,1,8,7,9,6,9,9,2,4,8,1,2,0,3,0,0,7,5,1,8,7,9,6,9,9,2,4,8,1,2,0,3,0,0,7,5,1,8,7,9,6,9,9,2,4,8,1,2,0,3,0,0,7,5,1,8,7,9,6,9,9,2,4,8,1,2,0,3,0,0,7,5,1,8,7,9,6,9,9,2,4,8,1,2,0,3,0,0,7,5,1,8,7,9,6,9,9
add $0,1
mov $1,10
pow $1,$0
sub $1,6
mul $1,6
div $1,14
add $1,4
div $1,228
mod $1,10
mov $0,$1
| 24.071429
| 199
| 0.543027
|
679bd8997bf9049f508cc67f86d0bd20c600c75d
| 88
|
asm
|
Assembly
|
PRG/objects/2-3Exit.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/2-3Exit.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/2-3Exit.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
.byte $00 ; Unknown purpose
.byte OBJ_ENDLEVELCARD, $18, $15
.byte $FF ; Terminator
| 17.6
| 33
| 0.681818
|
036db6648ade658f4a5a477c610bca7fa0ab3f1c
| 1,268
|
asm
|
Assembly
|
libsrc/graphics/bee/w_clg_320.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/graphics/bee/w_clg_320.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/graphics/bee/w_clg_320.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
;
; MicroBEE pseudo graphics routines
;
; cls () -- clear screen
;
; Stefano Bodrato - 2016
;
;
; $Id: w_clg_320.asm,v 1.3 2017/01/02 21:51:24 aralbrec Exp $
;
SECTION code_clib
PUBLIC clg
PUBLIC _clg
EXTERN cleargraphics
EXTERN swapgfxbk
.vdutab ; 40x24
defb $35,40,$2D,$24,$1b,$05,$19,$1a,$48,$0a,$2a,$0a,$20,0,0,0
.clg
._clg
call swapgfxbk
defb $3E, 1, $DB, 9 ;{HALVES VIDEO CLOCK SPEED}
; Set 80x25 mode
LD HL,vdutab
LD C,0
LD B,16
.vdloop
LD A,C
OUT ($0C),A
LD A,(HL)
OUT ($0D),A
INC HL
INC C
DJNZ vdloop
ld a,128
out ($1c),a ; Enable Premium Graphics
; Init character and attribute map
ld hl,$f000
ld de,40
xor a ; bank #0
;ld a,64 ; "Inverse" attribute bit, start on bank #0
ex af,af
ld b,8 ; 16K mode: 8 banks (5 columns per bank)
.bank
;xor a ; chr 0
ld a,128 ; PCG character #0
push bc
ld c,5
.five_col
push hl
ld b,25
.one_col
ld (hl),a
inc a
push af
ld a,128+16
out ($1c),a ; attribute page
ex af,af
ld (hl),a
ex af,af
ld a,128
out ($1c),a ; back to txt page
pop af
add hl,de
djnz one_col
pop hl
inc hl ; next column
dec c
jr nz,five_col
pop bc
ex af,af
inc a ; point to next bank
ex af,af
djnz bank
jp cleargraphics
| 13.072165
| 67
| 0.608833
|
30e3f271be39c3a428e0e880af9e2cc5fcaeae44
| 50,441
|
asm
|
Assembly
|
src/intf/video/scalers/2xsaimmx.asm
|
tt-arcade/fba-pi
|
10407847a98f0d315b05e44f0ecf01824f4558aa
|
[
"Apache-2.0"
] | null | null | null |
src/intf/video/scalers/2xsaimmx.asm
|
tt-arcade/fba-pi
|
10407847a98f0d315b05e44f0ecf01824f4558aa
|
[
"Apache-2.0"
] | null | null | null |
src/intf/video/scalers/2xsaimmx.asm
|
tt-arcade/fba-pi
|
10407847a98f0d315b05e44f0ecf01824f4558aa
|
[
"Apache-2.0"
] | null | null | null |
;/*---------------------------------------------------------------------*
; * The following (piece of) code, (part of) the 2xSaI engine, *
; * copyright (c) 2001 by Derek Liauw Kie Fa. *
; * Non-Commercial use of the engine is allowed and is encouraged, *
; * provided that appropriate credit be given and that this copyright *
; * notice will not be removed under any circumstance. *
; * You may freely modify this code, but I request *
; * that any improvements to the engine be submitted to me, so *
; * that I can implement these improvements in newer versions of *
; * the engine. *
; * If you need more information, have any comments or suggestions, *
; * you can e-mail me. My e-mail: DerekL666@yahoo.com *
; *---------------------------------------------------------------------*/
;----------------------
; 2xSaI, Super2xSaI, SuperEagle .. FINAL. no versioning anymore..
;----------------------
BITS 32
%ifdef __DJGPP__
; GLOBAL __2xSaILine
; GLOBAL __2xSaISuperEagleLine
; GLOBAL _Init_2xSaIMMX
%else
global _2xSaILine
global __2xSaILine
global _2xSaISuperEagleLine
global __2xSaISuperEagleLine
global _2xSaISuper2xSaILine
global __2xSaISuper2xSaILine
global Init_2xSaIMMX
global _Init_2xSaIMMX
%endif
SECTION .text ALIGN = 32
%ifdef __DJGPP__
;EXTERN_C void __2xSaILine (uint8 *srcPtr, uint32 srcPitch, uint32 width,
; uint8 *dstPtr, uint32 dstPitch, uint16 dstSegment);
%else
;EXTERN_C void _2xSaILine (uint8 *srcPtr, uint32 srcPitch, uint32 width,
; uint8 *dstPtr, uint32 dstPitch);
%endif
srcPtr equ 8
deltaPtr equ 12
srcPitch equ 16
width equ 20
dstOffset equ 24
dstPitch equ 28
dstSegment equ 32
colorB0 equ -2
colorB1 equ 0
colorB2 equ 2
colorB3 equ 4
color7 equ -2
color8 equ 0
color9 equ 2
color4 equ -2
color5 equ 0
color6 equ 2
colorS2 equ 4
color1 equ -2
color2 equ 0
color3 equ 2
colorS1 equ 4
colorA0 equ -2
colorA1 equ 0
colorA2 equ 2
colorA3 equ 4
_2xSaISuper2xSaILine:
__2xSaISuper2xSaILine:
; Store some stuff
push ebp
mov ebp, esp
pushad
; Prepare the destination
%ifdef __DJGPP__
; Set the selector
mov eax, [ebp+dstSegment]
mov fs, ax
%endif
mov edx, [ebp+dstOffset] ; edx points to the screen
; Prepare the source
; eax points to colorA
mov eax, [ebp+srcPtr] ;eax points to colorA
mov ebx, [ebp+srcPitch] ;ebx contains the source pitch
mov ecx, [ebp+width] ;ecx contains the number of pixels to process
; eax now points to colorB1
sub eax, ebx ;eax points to B1 which is the base
; Main Loop
.Loop: push ecx
;-----Check Delta------------------
mov ecx, [ebp+deltaPtr]
;load source img
movq mm0, [eax+colorB0]
movq mm1, [eax+colorB3]
movq mm2, [eax+ebx+color4]
movq mm3, [eax+ebx+colorS2]
movq mm4, [eax+ebx+ebx+color1]
movq mm5, [eax+ebx+ebx+colorS1]
push eax
add eax, ebx
movq mm6, [eax+ebx+ebx+colorA0]
movq mm7, [eax+ebx+ebx+colorA3]
pop eax
;compare to delta
pcmpeqw mm0, [ecx+2+colorB0]
pcmpeqw mm1, [ecx+2+colorB3]
pcmpeqw mm2, [ecx+ebx+2+color4]
pcmpeqw mm3, [ecx+ebx+2+colorS2]
pcmpeqw mm4, [ecx+ebx+ebx+2+color1]
pcmpeqw mm5, [ecx+ebx+ebx+2+colorS1]
add ecx, ebx
pcmpeqw mm6, [ecx+ebx+ebx+2+colorA0]
pcmpeqw mm7, [ecx+ebx+ebx+2+colorA3]
sub ecx, ebx
;compose results
pand mm0, mm1
pand mm2, mm3
pand mm4, mm5
pand mm6, mm7
pand mm0, mm2
pand mm4, mm6
pxor mm7, mm7
pand mm0, mm4
movq mm6, [eax+colorB0]
pcmpeqw mm7, mm0 ;did any compare give us a zero ?
movq [ecx+2+colorB0], mm6
packsswb mm7, mm7
movd ecx, mm7
test ecx, ecx
jz near .SKIP_PROCESS ;no, so we can skip
;End Delta
;---------------------------------
movq mm0, [eax+ebx+color5]
movq mm1, [eax+ebx+color6]
movq mm2, mm0
movq mm3, mm1
movq mm4, mm0
movq mm5, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
movq [I56Pixel], mm0
movq mm7, mm0
;-------------------
movq mm0, mm7
movq mm1, mm4 ;5,5,5,6
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
movq [I5556Pixel], mm0
;--------------------
movq mm0, mm7
movq mm1, mm5 ;6,6,6,5
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [I5666Pixel], mm0
;-------------------------
;-------------------------
movq mm0, [eax+ebx+ebx+color2]
movq mm1, [eax+ebx+ebx+color3]
movq mm2, mm0
movq mm3, mm1
movq mm4, mm0
movq mm5, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [I23Pixel], mm0
movq mm7, mm0
;---------------------
movq mm0, mm7
movq mm1, mm4 ;2,2,2,3
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [I2223Pixel], mm0
;----------------------
movq mm0, mm7
movq mm1, mm5 ;3,3,3,2
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [I2333Pixel], mm0
;--------------------
;////////////////////////////////
; Decide which "branch" to take
;--------------------------------
movq mm0, [eax+ebx+color5]
movq mm1, [eax+ebx+color6]
movq mm6, mm0
movq mm7, mm1
pcmpeqw mm0, [eax+ebx+ebx+color3]
pcmpeqw mm1, [eax+ebx+ebx+color2]
pcmpeqw mm6, mm7
movq mm2, mm0
movq mm3, mm0
pand mm0, mm1 ;colorA == colorD && colorB == colorC
pxor mm7, mm7
pcmpeqw mm2, mm7
pand mm6, mm0
pand mm2, mm1 ;colorA != colorD && colorB == colorC
pcmpeqw mm1, mm7
pand mm1, mm3 ;colorA == colorD && colorB != colorC
pxor mm0, mm6
por mm1, mm6
movq mm7, mm0
movq [Mask26], mm2
packsswb mm7, mm7
movq [Mask35], mm1
movd ecx, mm7
test ecx, ecx
jz near .SKIP_GUESS
;---------------------------------------------
movq mm6, mm0
movq mm4, [eax+ebx+colorA]
movq mm5, [eax+ebx+colorB]
pxor mm7, mm7
pand mm6, [ONE]
movq mm0, [eax+colorE]
movq mm1, [eax+ebx+colorG]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+colorF]
movq mm1, [eax+ebx+colorK]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
push eax
add eax, ebx
movq mm0, [eax+ebx+colorH]
movq mm1, [eax+ebx+ebx+colorN]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+ebx+colorL]
movq mm1, [eax+ebx+ebx+colorO]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
pop eax
movq mm1, mm7
pxor mm0, mm0
pcmpgtw mm7, mm0
pcmpgtw mm0, mm1
por mm7, [Mask35]
por mm0, [Mask26]
movq [Mask35], mm7
movq [Mask26], mm0
.SKIP_GUESS:
;Start the ASSEMBLY !!! eh... compose all the results together to form the final image...
movq mm0, [eax+ebx+color5]
movq mm1, [eax+ebx+ebx+color2]
movq mm2, mm0
movq mm3, mm1
movq mm4, mm0
movq mm5, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
;---------------------------
%ifdef dfhsdfhsdahdsfhdsfh
if (color5 == color3 && color2 != color6 && color4 == color5 && color5 != colorA2)
product2a = INTERPOLATE (color2, color5);
else
if (color5 == color1 && color6 == color5 && color4 != color2 && color5 != colorA0)
product2a = INTERPOLATE(color2, color5);
else
product2a = color2;
if (color2 == color6 && color5 != color3 && color1 == color2 && color2 != colorB2)
product1a = INTERPOLATE (color2, color5);
else
if (color4 == color2 && color3 == color2 && color1 != color5 && color2 != colorB0)
product1a = INTERPOLATE(color2, color5);
else
product1a = color5;
%endif
movq mm7, [Mask26]
movq mm6, [eax+colorB2]
movq mm5, [eax+ebx+ebx+color2]
movq mm4, [eax+ebx+ebx+color1]
pcmpeqw mm4, mm5
pcmpeqw mm6, mm5
pxor mm5, mm5
pand mm7, mm4
pcmpeqw mm6, mm5
pand mm7, mm6
movq mm6, [eax+ebx+ebx+color3]
movq mm5, [eax+ebx+ebx+color2]
movq mm4, [eax+ebx+ebx+color1]
movq mm2, [eax+ebx+color5]
movq mm1, [eax+ebx+color4]
movq mm3, [eax+colorB0]
pcmpeqw mm2, mm4
pcmpeqw mm6, mm5
pcmpeqw mm1, mm5
pcmpeqw mm3, mm5
pxor mm5, mm5
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm6, mm1
pand mm2, mm3
pand mm6, mm2
por mm7, mm6
movq mm6, mm7
pcmpeqw mm6, mm5
pand mm7, mm0
movq mm1, [eax+ebx+color5]
pand mm6, mm1
por mm7, mm6
movq [final1a], mm7 ;finished 1a
;--------------------------------
movq mm7, [Mask35]
push eax
add eax, ebx
movq mm6, [eax+ebx+ebx+colorA2]
pop eax
movq mm5, [eax+ebx+color5]
movq mm4, [eax+ebx+color4]
pcmpeqw mm4, mm5
pcmpeqw mm6, mm5
pxor mm5, mm5
pand mm7, mm4
pcmpeqw mm6, mm5
pand mm7, mm6
movq mm6, [eax+ebx+color6]
movq mm5, [eax+ebx+color5]
movq mm4, [eax+ebx+color4]
movq mm2, [eax+ebx+ebx+color2]
movq mm1, [eax+ebx+ebx+color1]
push eax
add eax, ebx
movq mm3, [eax+ebx+ebx+colorA0]
pop eax
pcmpeqw mm2, mm4
pcmpeqw mm6, mm5
pcmpeqw mm1, mm5
pcmpeqw mm3, mm5
pxor mm5, mm5
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm6, mm1
pand mm2, mm3
pand mm6, mm2
por mm7, mm6
movq mm6, mm7
pcmpeqw mm6, mm5
pand mm7, mm0
movq mm1, [eax+ebx+ebx+color2]
pand mm6, mm1
por mm7, mm6
movq [final2a], mm7 ;finished 2a
;--------------------------------------------
%ifdef dfhsdfhsdahdsfhdsfh
if (color6 == color3 && color3 == colorA1 && color2 != colorA2 && color3 != colorA0)
product2b = Q_INTERPOLATE (color3, color3, color3, color2);
else
if (color5 == color2 && color2 == colorA2 && colorA1 != color3 && color2 != colorA3)
product2b = Q_INTERPOLATE (color2, color2, color2, color3);
else
product2b = INTERPOLATE (color2, color3);
if (color6 == color3 && color6 == colorB1 && color5 != colorB2 && color6 != colorB0)
product1b = Q_INTERPOLATE (color6, color6, color6, color5);
else
if (color5 == color2 && color5 == colorB2 && colorB1 != color6 && color5 != colorB3)
product1b = Q_INTERPOLATE (color6, color5, color5, color5);
else
product1b = INTERPOLATE (color5, color6);
%endif
push eax
add eax, ebx
pxor mm7, mm7
movq mm0, [eax+ebx+ebx+colorA0]
movq mm1, [eax+ebx+ebx+colorA1]
movq mm2, [eax+ebx+ebx+colorA2]
movq mm3, [eax+ebx+ebx+colorA3]
pop eax
movq mm4, [eax+ebx+ebx+color2]
movq mm5, [eax+ebx+ebx+color3]
movq mm6, [eax+ebx+color6]
pcmpeqw mm6, mm5
pcmpeqw mm1, mm5
pcmpeqw mm4, mm2
pcmpeqw mm0, mm5
pcmpeqw mm4, mm7
pcmpeqw mm0, mm7
pand mm0, mm4
pand mm6, mm1
pand mm0, mm6
movq mm4, [eax+ebx+color2]
movq mm5, [eax+ebx+ebx+color5]
movq mm6, [eax+ebx+ebx+color3]
pcmpeqw mm5, mm4
pcmpeqw mm2, mm4
pcmpeqw mm1, mm6
pcmpeqw mm3, mm4
pcmpeqw mm1, mm7
pcmpeqw mm3, mm7
pand mm2, mm5
pand mm1, mm3
pand mm1, mm2
movq mm2, mm0
movq mm7, [I2333Pixel]
movq mm6, [I2223Pixel]
movq mm5, [I23Pixel]
movq mm4, [Mask35]
movq mm3, [Mask26]
por mm2, mm4
pand mm4, [eax+ebx+ebx+color3]
por mm2, mm3
pand mm3, [eax+ebx+ebx+color2]
por mm2, mm1
pand mm0, mm7
pand mm1, mm6
pxor mm7, mm7
pcmpeqw mm2, mm7
por mm0, mm1
por mm3, mm4
pand mm2, mm5
por mm0, mm3
por mm0, mm2
movq [final2b], mm0
;-----------------------------------
pxor mm7, mm7
movq mm0, [eax+colorB0]
movq mm1, [eax+colorB1]
movq mm2, [eax+colorB2]
movq mm3, [eax+colorB3]
movq mm4, [eax+ebx+color5]
movq mm5, [eax+ebx+color6]
movq mm6, [eax+ebx+ebx+color3]
pcmpeqw mm6, mm5
pcmpeqw mm1, mm5
pcmpeqw mm4, mm2
pcmpeqw mm0, mm5
pcmpeqw mm4, mm7
pcmpeqw mm0, mm7
pand mm0, mm4
pand mm6, mm1
pand mm0, mm6
movq mm4, [eax+ebx+color5]
movq mm5, [eax+ebx+ebx+color2]
movq mm6, [eax+ebx+color6]
pcmpeqw mm5, mm4
pcmpeqw mm2, mm4
pcmpeqw mm1, mm6
pcmpeqw mm3, mm4
pcmpeqw mm1, mm7
pcmpeqw mm3, mm7
pand mm2, mm5
pand mm1, mm3
pand mm1, mm2
movq mm2, mm0
movq mm7, [I5666Pixel]
movq mm6, [I5556Pixel]
movq mm5, [I56Pixel]
movq mm4, [Mask35]
movq mm3, [Mask26]
por mm2, mm4
pand mm4, [eax+ebx+color5]
por mm2, mm3
pand mm3, [eax+ebx+color6]
por mm2, mm1
pand mm0, mm7
pand mm1, mm6
pxor mm7, mm7
pcmpeqw mm2, mm7
por mm0, mm1
por mm3, mm4
pand mm2, mm5
por mm0, mm3
por mm0, mm2
movq [final1b], mm0
;---------
movq mm0, [final1a]
movq mm4, [final2a]
movq mm2, [final1b]
movq mm6, [final2b]
movq mm1, mm0
movq mm5, mm4
punpcklwd mm0, mm2
punpckhwd mm1, mm2
punpcklwd mm4, mm6
punpckhwd mm5, mm6
%ifdef FAR_POINTER
movq [fs:edx], mm0
movq [fs:edx+8], mm1
push edx
add edx, [ebp+dstPitch]
movq [fs:edx], mm4
movq [fs:edx+8], mm5
pop edx
%else
movq [es:edx], mm0
movq [es:edx+8], mm1
push edx
add edx, [ebp+dstPitch]
movq [es:edx], mm4
movq [es:edx+8], mm5
pop edx
%endif
.SKIP_PROCESS:
mov ecx, [ebp+deltaPtr]
add ecx, 8
mov [ebp+deltaPtr], ecx
add edx, 16
add eax, 8
pop ecx
sub ecx, 4
cmp ecx, 0
jg near .Loop
; Restore some stuff
popad
mov esp, ebp
pop ebp
emms
ret
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
_2xSaISuperEagleLine:
__2xSaISuperEagleLine:
; Store some stuff
push ebp
mov ebp, esp
pushad
; Prepare the destination
%ifdef __DJGPP__
; Set the selector
mov eax, [ebp+dstSegment]
mov fs, ax
%endif
mov edx, [ebp+dstOffset] ; edx points to the screen
; Prepare the source
; eax points to colorA
mov eax, [ebp+srcPtr]
mov ebx, [ebp+srcPitch]
mov ecx, [ebp+width]
; eax now points to colorB1
sub eax, ebx
; Main Loop
.Loop: push ecx
;-----Check Delta------------------
mov ecx, [ebp+deltaPtr]
movq mm0, [eax+colorB0]
movq mm1, [eax+colorB3]
movq mm2, [eax+ebx+color4]
movq mm3, [eax+ebx+colorS2]
movq mm4, [eax+ebx+ebx+color1]
movq mm5, [eax+ebx+ebx+colorS1]
push eax
add eax, ebx
movq mm6, [eax+ebx+ebx+colorA0]
movq mm7, [eax+ebx+ebx+colorA3]
pop eax
pcmpeqw mm0, [ecx+2+colorB0]
pcmpeqw mm1, [ecx+2+colorB3]
pcmpeqw mm2, [ecx+ebx+2+color4]
pcmpeqw mm3, [ecx+ebx+2+colorS2]
pcmpeqw mm4, [ecx+ebx+ebx+2+color1]
pcmpeqw mm5, [ecx+ebx+ebx+2+colorS1]
add ecx, ebx
pcmpeqw mm6, [ecx+ebx+ebx+2+colorA0]
pcmpeqw mm7, [ecx+ebx+ebx+2+colorA3]
sub ecx, ebx
pand mm0, mm1
pand mm2, mm3
pand mm4, mm5
pand mm6, mm7
pand mm0, mm2
pand mm4, mm6
pxor mm7, mm7
pand mm0, mm4
movq mm6, [eax+colorB0]
pcmpeqw mm7, mm0
movq [ecx+2+colorB0], mm6
packsswb mm7, mm7
movd ecx, mm7
test ecx, ecx
jz near .SKIP_PROCESS
;End Delta
;---------------------------------
movq mm0, [eax+ebx+color5]
movq mm1, [eax+ebx+color6]
movq mm2, mm0
movq mm3, mm1
movq mm4, mm0
movq mm5, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
movq [I56Pixel], mm0
movq mm7, mm0
;-------------------
movq mm0, mm7
movq mm1, mm4 ;5,5,5,6
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
movq [product1a], mm0
;--------------------
movq mm0, mm7
movq mm1, mm5 ;6,6,6,5
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [product1b], mm0
;-------------------------
;-------------------------
movq mm0, [eax+ebx+ebx+color2]
movq mm1, [eax+ebx+ebx+color3]
movq mm2, mm0
movq mm3, mm1
movq mm4, mm0
movq mm5, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [I23Pixel], mm0
movq mm7, mm0
;---------------------
movq mm0, mm7
movq mm1, mm4 ;2,2,2,3
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [product2a], mm0
;----------------------
movq mm0, mm7
movq mm1, mm5 ;3,3,3,2
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3
movq [product2b], mm0
;////////////////////////////////
; Decide which "branch" to take
;--------------------------------
movq mm4, [eax+ebx+color5]
movq mm5, [eax+ebx+color6]
movq mm6, [eax+ebx+ebx+color3]
movq mm7, [eax+ebx+ebx+color2]
pxor mm3, mm3
movq mm0, mm4
movq mm1, mm5
pcmpeqw mm0, mm6
pcmpeqw mm1, mm7
pcmpeqw mm1, mm3
pand mm0, mm1
movq [Mask35], mm0
movq mm0, [eax+ebx+ebx+colorS1]
movq mm1, [eax+ebx+color4]
push eax
add eax, ebx
movq mm2, [eax+ebx+ebx+colorA2]
pop eax
movq mm3, [eax+colorB1]
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm4
pcmpeqw mm3, mm4
pand mm0, mm1
pand mm2, mm3
por mm0, mm2
pand mm0, [Mask35]
movq [Mask35b], mm0
;-----------
pxor mm3, mm3
movq mm0, mm4
movq mm1, mm5
pcmpeqw mm0, mm6
pcmpeqw mm1, mm7
pcmpeqw mm0, mm3
pand mm0, mm1
movq [Mask26], mm0
movq mm0, [eax+ebx+ebx+color1]
movq mm1, [eax+ebx+colorS2]
push eax
add eax, ebx
movq mm2, [eax+ebx+ebx+colorA1]
pop eax
movq mm3, [eax+colorB2]
pcmpeqw mm0, mm5
pcmpeqw mm1, mm5
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm1
pand mm2, mm3
por mm0, mm2
pand mm0, [Mask26]
movq [Mask26b], mm0
;--------------------
movq mm0, mm4
movq mm1, mm5
movq mm2, mm0
pcmpeqw mm2, mm1
pcmpeqw mm0, mm6
pcmpeqw mm1, mm7
pand mm0, mm1
pand mm2, mm0
pxor mm0, mm2
movq mm7, mm0
;------------------
packsswb mm7, mm7
movd ecx, mm7
test ecx, ecx
jz near .SKIP_GUESS
;---------------------------------------------
; Map of the pixels: I|E F|J
; G|A B|K
; H|C D|L
; M|N O|P
movq mm6, mm0
movq mm4, [eax+ebx+color5]
movq mm5, [eax+ebx+color6]
pxor mm7, mm7
pand mm6, [ONE]
movq mm0, [eax+colorB1]
movq mm1, [eax+ebx+color4]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+colorB2]
movq mm1, [eax+ebx+colorS2]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
push eax
add eax, ebx
movq mm0, [eax+ebx+color1]
movq mm1, [eax+ebx+ebx+colorA1]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+ebx+colorS1]
movq mm1, [eax+ebx+ebx+colorA2]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
pop eax
movq mm1, mm7
pxor mm0, mm0
pcmpgtw mm7, mm0
pcmpgtw mm0, mm1
por mm7, [Mask35]
por mm1, [Mask26]
movq [Mask35], mm7
movq [Mask26], mm1
.SKIP_GUESS:
;Start the ASSEMBLY !!!
movq mm4, [Mask35]
movq mm5, [Mask26]
movq mm6, [Mask35b]
movq mm7, [Mask26b]
movq mm0, [eax+ebx+color5]
movq mm1, [eax+ebx+color6]
movq mm2, [eax+ebx+ebx+color2]
movq mm3, [eax+ebx+ebx+color3]
pcmpeqw mm0, mm2
pcmpeqw mm1, mm3
movq mm2, mm4
movq mm3, mm5
por mm0, mm1
por mm2, mm3
pand mm2, mm0
pxor mm0, mm2
movq mm3, mm0
movq mm2, mm0
pxor mm0, mm0
por mm2, mm4
pxor mm4, mm6
por mm2, mm5
pxor mm5, mm7
pcmpeqw mm2, mm0
;----------------
movq mm0, [eax+ebx+color5]
movq mm1, mm3
por mm1, mm4
por mm1, mm6
pand mm0, mm1
movq mm1, mm5
pand mm1, [I56Pixel]
por mm0, mm1
movq mm1, mm7
pand mm1, [product1b]
por mm0, mm1
movq mm1, mm2
pand mm1, [product1a]
por mm0, mm1
movq [final1a], mm0
movq mm0, [eax+ebx+color6]
movq mm1, mm3
por mm1, mm5
por mm1, mm7
pand mm0, mm1
movq mm1, mm4
pand mm1, [I56Pixel]
por mm0, mm1
movq mm1, mm6
pand mm1, [product1a]
por mm0, mm1
movq mm1, mm2
pand mm1, [product1b]
por mm0, mm1
movq [final1b], mm0
movq mm0, [eax+ebx+ebx+color2]
movq mm1, mm3
por mm1, mm5
por mm1, mm7
pand mm0, mm1
movq mm1, mm4
pand mm1, [I23Pixel]
por mm0, mm1
movq mm1, mm6
pand mm1, [product2b]
por mm0, mm1
movq mm1, mm2
pand mm1, [product2a]
por mm0, mm1
movq [final2a], mm0
movq mm0, [eax+ebx+ebx+color3]
movq mm1, mm3
por mm1, mm4
por mm1, mm6
pand mm0, mm1
movq mm1, mm5
pand mm1, [I23Pixel]
por mm0, mm1
movq mm1, mm7
pand mm1, [product2a]
por mm0, mm1
movq mm1, mm2
pand mm1, [product2b]
por mm0, mm1
movq [final2b], mm0
movq mm0, [final1a]
movq mm2, [final1b]
movq mm1, mm0
movq mm4, [final2a]
movq mm6, [final2b]
movq mm5, mm4
punpcklwd mm0, mm2
punpckhwd mm1, mm2
punpcklwd mm4, mm6
punpckhwd mm5, mm6
%ifdef __DJGPP__
movq [fs:edx], mm0
movq [fs:edx+8], mm1
push edx
add edx, [ebp+dstPitch]
movq [fs:edx], mm4
movq [fs:edx+8], mm5
pop edx
%else
movq [es:edx], mm0
movq [es:edx+8], mm1
push edx
add edx, [ebp+dstPitch]
movq [es:edx], mm4
movq [es:edx+8], mm5
pop edx
%endif
.SKIP_PROCESS:
mov ecx, [ebp+deltaPtr]
add ecx, 8
mov [ebp+deltaPtr], ecx
add edx, 16
add eax, 8
pop ecx
sub ecx, 4
cmp ecx, 0
jg near .Loop
; Restore some stuff
popad
mov esp, ebp
pop ebp
emms
ret
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;This is 2xSaI
colorI equ -2
colorE equ 0
colorF equ 2
colorJ equ 4
colorG equ -2
colorA equ 0
colorB equ 2
colorK equ 4
colorH equ -2
colorC equ 0
colorD equ 2
colorL equ 4
colorM equ -2
colorN equ 0
colorO equ 2
colorP equ 4
_2xSaILine:
__2xSaILine:
; Store some stuff
push ebp
mov ebp, esp
pushad
; Prepare the destination
%ifdef __DJGPP__
; Set the selector
mov eax, [ebp+dstSegment]
mov fs, ax
%endif
mov edx, [ebp+dstOffset] ; edx points to the screen
; Prepare the source
; eax points to colorA
mov eax, [ebp+srcPtr]
mov ebx, [ebp+srcPitch]
mov ecx, [ebp+width]
; eax now points to colorE
sub eax, ebx
; Main Loop
.Loop: push ecx
;-----Check Delta------------------
mov ecx, [ebp+deltaPtr]
movq mm0, [eax+colorI]
movq mm1, [eax+colorJ]
movq mm2, [eax+ebx+colorG]
movq mm3, [eax+ebx+colorK]
movq mm4, [eax+ebx+ebx+colorH]
movq mm5, [eax+ebx+ebx+colorL]
push eax
add eax, ebx
movq mm6, [eax+ebx+ebx+colorM]
movq mm7, [eax+ebx+ebx+colorP]
pop eax
pcmpeqw mm0, [ecx+2+colorI]
pcmpeqw mm1, [ecx+2+colorK]
pcmpeqw mm2, [ecx+ebx+2+colorG]
pcmpeqw mm3, [ecx+ebx+2+colorK]
pcmpeqw mm4, [ecx+ebx+ebx+2+colorH]
pcmpeqw mm5, [ecx+ebx+ebx+2+colorL]
add ecx, ebx
pcmpeqw mm6, [ecx+ebx+ebx+2+colorM]
pcmpeqw mm7, [ecx+ebx+ebx+2+colorP]
sub ecx, ebx
pand mm0, mm1
pand mm2, mm3
pand mm4, mm5
pand mm6, mm7
pand mm0, mm2
pand mm4, mm6
pxor mm7, mm7
pand mm0, mm4
movq mm6, [eax+colorI]
pcmpeqw mm7, mm0
movq [ecx+2+colorI], mm6
packsswb mm7, mm7
movd ecx, mm7
test ecx, ecx
jz near .SKIP_PROCESS
;End Delta
;---------------------------------
;1
;if ((colorA == colorD) && (colorB != colorC) && (colorA == colorE) && (colorB == colorL)
movq mm0, [eax+ebx+colorA] ;mm0 and mm1 contain colorA
movq mm2, [eax+ebx+colorB] ;mm2 and mm3 contain colorB
movq mm1, mm0
movq mm3, mm2
pcmpeqw mm0, [eax+ebx+ebx+colorD]
pcmpeqw mm1, [eax+colorE]
pcmpeqw mm2, [eax+ebx+ebx+colorL]
pcmpeqw mm3, [eax+ebx+ebx+colorC]
pand mm0, mm1
pxor mm1, mm1
pand mm0, mm2
pcmpeqw mm3, mm1
pand mm0, mm3 ;result in mm0
;if ((colorA == colorC) && (colorB != colorE) && (colorA == colorF) && (colorB == colorJ)
movq mm4, [eax+ebx+colorA] ;mm4 and mm5 contain colorA
movq mm6, [eax+ebx+colorB] ;mm6 and mm7 contain colorB
movq mm5, mm4
movq mm7, mm6
pcmpeqw mm4, [eax+ebx+ebx+colorC]
pcmpeqw mm5, [eax+colorF]
pcmpeqw mm6, [eax+colorJ]
pcmpeqw mm7, [eax+colorE]
pand mm4, mm5
pxor mm5, mm5
pand mm4, mm6
pcmpeqw mm7, mm5
pand mm4, mm7 ;result in mm4
por mm0, mm4 ;combine the masks
movq [Mask1], mm0
;--------------------------------------------
;2
;if ((colorB == colorC) && (colorA != colorD) && (colorB == colorF) && (colorA == colorH)
movq mm0, [eax+ebx+colorB] ;mm0 and mm1 contain colorB
movq mm2, [eax+ebx+colorA] ;mm2 and mm3 contain colorA
movq mm1, mm0
movq mm3, mm2
pcmpeqw mm0, [eax+ebx+ebx+colorC]
pcmpeqw mm1, [eax+colorF]
pcmpeqw mm2, [eax+ebx+ebx+colorH]
pcmpeqw mm3, [eax+ebx+ebx+colorD]
pand mm0, mm1
pxor mm1, mm1
pand mm0, mm2
pcmpeqw mm3, mm1
pand mm0, mm3 ;result in mm0
;if ((colorB == colorE) && (colorB == colorD) && (colorA != colorF) && (colorA == colorI)
movq mm4, [eax+ebx+colorB] ;mm4 and mm5 contain colorB
movq mm6, [eax+ebx+colorA] ;mm6 and mm7 contain colorA
movq mm5, mm4
movq mm7, mm6
pcmpeqw mm4, [eax+ebx+ebx+colorD]
pcmpeqw mm5, [eax+colorE]
pcmpeqw mm6, [eax+colorI]
pcmpeqw mm7, [eax+colorF]
pand mm4, mm5
pxor mm5, mm5
pand mm4, mm6
pcmpeqw mm7, mm5
pand mm4, mm7 ;result in mm4
por mm0, mm4 ;combine the masks
movq [Mask2], mm0
;interpolate colorA and colorB
movq mm0, [eax+ebx+colorA]
movq mm1, [eax+ebx+colorB]
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
;assemble the pixels
movq mm1, [eax+ebx+colorA]
movq mm2, [eax+ebx+colorB]
movq mm3, [Mask1]
movq mm5, mm1
movq mm4, [Mask2]
movq mm6, mm1
pand mm1, mm3
por mm3, mm4
pxor mm7, mm7
pand mm2, mm4
pcmpeqw mm3, mm7
por mm1, mm2
pand mm0, mm3
por mm0, mm1
punpcklwd mm5, mm0
punpckhwd mm6, mm0
%ifdef __DJGPP__
movq [fs:edx], mm5
movq [fs:edx+8], mm6
%else
movq [es:edx], mm5
movq [es:edx+8], mm6
%endif
;------------------------------------------------
; Create the Nextline
;------------------------------------------------
;3 ;if ((colorA == colorD) && (colorB != colorC) && (colorA == colorG) && (colorC == colorO)
movq mm0, [eax+ebx+colorA] ;mm0 and mm1 contain colorA
movq mm2, [eax+ebx+ebx+colorC] ;mm2 and mm3 contain colorC
movq mm1, mm0
movq mm3, mm2
push eax
add eax, ebx
pcmpeqw mm0, [eax+ebx+colorD]
pcmpeqw mm1, [eax+colorG]
pcmpeqw mm2, [eax+ebx+ebx+colorO]
pcmpeqw mm3, [eax+colorB]
pop eax
pand mm0, mm1
pxor mm1, mm1
pand mm0, mm2
pcmpeqw mm3, mm1
pand mm0, mm3 ;result in mm0
;if ((colorA == colorB) && (colorG != colorC) && (colorA == colorH) && (colorC == colorM)
movq mm4, [eax+ebx+colorA] ;mm4 and mm5 contain colorA
movq mm6, [eax+ebx+ebx+colorC] ;mm6 and mm7 contain colorC
movq mm5, mm4
movq mm7, mm6
push eax
add eax, ebx
pcmpeqw mm4, [eax+ebx+colorH]
pcmpeqw mm5, [eax+colorB]
pcmpeqw mm6, [eax+ebx+ebx+colorM]
pcmpeqw mm7, [eax+colorG]
pop eax
pand mm4, mm5
pxor mm5, mm5
pand mm4, mm6
pcmpeqw mm7, mm5
pand mm4, mm7 ;result in mm4
por mm0, mm4 ;combine the masks
movq [Mask1], mm0
;--------------------------------------------
;4
;if ((colorB == colorC) && (colorA != colorD) && (colorC == colorH) && (colorA == colorF)
movq mm0, [eax+ebx+ebx+colorC] ;mm0 and mm1 contain colorC
movq mm2, [eax+ebx+colorA] ;mm2 and mm3 contain colorA
movq mm1, mm0
movq mm3, mm2
pcmpeqw mm0, [eax+ebx+colorB]
pcmpeqw mm1, [eax+ebx+ebx+colorH]
pcmpeqw mm2, [eax+colorF]
pcmpeqw mm3, [eax+ebx+ebx+colorD]
pand mm0, mm1
pxor mm1, mm1
pand mm0, mm2
pcmpeqw mm3, mm1
pand mm0, mm3 ;result in mm0
;if ((colorC == colorG) && (colorC == colorD) && (colorA != colorH) && (colorA == colorI)
movq mm4, [eax+ebx+ebx+colorC] ;mm4 and mm5 contain colorC
movq mm6, [eax+ebx+colorA] ;mm6 and mm7 contain colorA
movq mm5, mm4
movq mm7, mm6
pcmpeqw mm4, [eax+ebx+ebx+colorD]
pcmpeqw mm5, [eax+ebx+colorG]
pcmpeqw mm6, [eax+colorI]
pcmpeqw mm7, [eax+ebx+ebx+colorH]
pand mm4, mm5
pxor mm5, mm5
pand mm4, mm6
pcmpeqw mm7, mm5
pand mm4, mm7 ;result in mm4
por mm0, mm4 ;combine the masks
movq [Mask2], mm0
;----------------------------------------------
;interpolate colorA and colorC
movq mm0, [eax+ebx+colorA]
movq mm1, [eax+ebx+ebx+colorC]
movq mm2, mm0
movq mm3, mm1
pand mm0, [colorMask]
pand mm1, [colorMask]
psrlw mm0, 1
psrlw mm1, 1
pand mm3, [lowPixelMask]
paddw mm0, mm1
pand mm3, mm2
paddw mm0, mm3 ;mm0 contains the interpolated values
;-------------
;assemble the pixels
movq mm1, [eax+ebx+colorA]
movq mm2, [eax+ebx+ebx+colorC]
movq mm3, [Mask1]
movq mm4, [Mask2]
pand mm1, mm3
pand mm2, mm4
por mm3, mm4
pxor mm7, mm7
por mm1, mm2
pcmpeqw mm3, mm7
pand mm0, mm3
por mm0, mm1
movq [ACPixel], mm0
;////////////////////////////////
; Decide which "branch" to take
;--------------------------------
movq mm0, [eax+ebx+colorA]
movq mm1, [eax+ebx+colorB]
movq mm6, mm0
movq mm7, mm1
pcmpeqw mm0, [eax+ebx+ebx+colorD]
pcmpeqw mm1, [eax+ebx+ebx+colorC]
pcmpeqw mm6, mm7
movq mm2, mm0
movq mm3, mm0
pand mm0, mm1 ;colorA == colorD && colorB == colorC
pxor mm7, mm7
pcmpeqw mm2, mm7
pand mm6, mm0
pand mm2, mm1 ;colorA != colorD && colorB == colorC
pcmpeqw mm1, mm7
pand mm1, mm3 ;colorA == colorD && colorB != colorC
pxor mm0, mm6
por mm1, mm6
movq mm7, mm0
movq [Mask2], mm2
packsswb mm7, mm7
movq [Mask1], mm1
movd ecx, mm7
test ecx, ecx
jz near .SKIP_GUESS
;---------------------------------------------
; Map of the pixels: I|E F|J
; G|A B|K
; H|C D|L
; M|N O|P
movq mm6, mm0
movq mm4, [eax+ebx+colorA]
movq mm5, [eax+ebx+colorB]
pxor mm7, mm7
pand mm6, [ONE]
movq mm0, [eax+colorE]
movq mm1, [eax+ebx+colorG]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+colorF]
movq mm1, [eax+ebx+colorK]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
push eax
add eax, ebx
movq mm0, [eax+ebx+colorH]
movq mm1, [eax+ebx+ebx+colorN]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
movq mm0, [eax+ebx+colorL]
movq mm1, [eax+ebx+ebx+colorO]
movq mm2, mm0
movq mm3, mm1
pcmpeqw mm0, mm4
pcmpeqw mm1, mm4
pcmpeqw mm2, mm5
pcmpeqw mm3, mm5
pand mm0, mm6
pand mm1, mm6
pand mm2, mm6
pand mm3, mm6
paddw mm0, mm1
paddw mm2, mm3
pxor mm3, mm3
pcmpgtw mm0, mm6
pcmpgtw mm2, mm6
pcmpeqw mm0, mm3
pcmpeqw mm2, mm3
pand mm0, mm6
pand mm2, mm6
paddw mm7, mm0
psubw mm7, mm2
pop eax
movq mm1, mm7
pxor mm0, mm0
pcmpgtw mm7, mm0
pcmpgtw mm0, mm1
por mm7, [Mask1]
por mm1, [Mask2]
movq [Mask1], mm7
movq [Mask2], mm1
.SKIP_GUESS:
;----------------------------
;interpolate A, B, C and D
movq mm0, [eax+ebx+colorA]
movq mm1, [eax+ebx+colorB]
movq mm4, mm0
movq mm2, [eax+ebx+ebx+colorC]
movq mm5, mm1
movq mm3, [qcolorMask]
movq mm6, mm2
movq mm7, [qlowpixelMask]
pand mm0, mm3
pand mm1, mm3
pand mm2, mm3
pand mm3, [eax+ebx+ebx+colorD]
psrlw mm0, 2
pand mm4, mm7
psrlw mm1, 2
pand mm5, mm7
psrlw mm2, 2
pand mm6, mm7
psrlw mm3, 2
pand mm7, [eax+ebx+ebx+colorD]
paddw mm0, mm1
paddw mm2, mm3
paddw mm4, mm5
paddw mm6, mm7
paddw mm4, mm6
paddw mm0, mm2
psrlw mm4, 2
pand mm4, [qlowpixelMask]
paddw mm0, mm4 ;mm0 contains the interpolated value of A, B, C and D
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;assemble the pixels
movq mm1, [Mask1]
movq mm2, [Mask2]
movq mm4, [eax+ebx+colorA]
movq mm5, [eax+ebx+colorB]
pand mm4, mm1
pand mm5, mm2
pxor mm7, mm7
por mm1, mm2
por mm4, mm5
pcmpeqw mm1, mm7
pand mm0, mm1
por mm4, mm0 ;mm4 contains the diagonal pixels
movq mm0, [ACPixel]
movq mm1, mm0
punpcklwd mm0, mm4
punpckhwd mm1, mm4
push edx
add edx, [ebp+dstPitch]
%ifdef __DJGPP__
movq [fs:edx], mm0
movq [fs:edx+8], mm1
%else
movq [es:edx], mm0
movq [es:edx+8], mm1
%endif
pop edx
.SKIP_PROCESS:
mov ecx, [ebp+deltaPtr]
add ecx, 8
mov [ebp+deltaPtr], ecx
add edx, 16
add eax, 8
pop ecx
sub ecx, 4
cmp ecx, 0
jg near .Loop
; Restore some stuff
popad
mov esp, ebp
pop ebp
emms
ret
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
Init_2xSaIMMX:
_Init_2xSaIMMX:
; Store some stuff
push ebp
mov ebp, esp
push edx
;Damn thing doesn't work
; mov eax,1
; cpuid
; test edx, 0x00800000 ;test bit 23
; jz end2 ;bit not set => no MMX detected
mov eax, [ebp+8] ;PixelFormat
cmp eax, 555
jz Bits555
cmp eax, 565
jz Bits565
end2:
mov eax, 1
jmp end
Bits555:
mov edx, 0x7BDE7BDE
mov eax, colorMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0x04210421
mov eax, lowPixelMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0x739C739C
mov eax, qcolorMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0x0C630C63
mov eax, qlowpixelMask
mov [eax], edx
mov [eax+4], edx
mov eax, 0
jmp end
Bits565:
mov edx, 0xF7DEF7DE
mov eax, colorMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0x08210821
mov eax, lowPixelMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0xE79CE79C
mov eax, qcolorMask
mov [eax], edx
mov [eax+4], edx
mov edx, 0x18631863
mov eax, qlowpixelMask
mov [eax], edx
mov [eax+4], edx
mov eax, 0
jmp end
end:
pop edx
mov esp, ebp
pop ebp
ret
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
SECTION .data ALIGN = 32
;Some constants
colorMask dd 0xF7DEF7DE, 0xF7DEF7DE
lowPixelMask dd 0x08210821, 0x08210821
qcolorMask dd 0xE79CE79C, 0xE79CE79C
qlowpixelMask dd 0x18631863, 0x18631863
FALSE dd 0x00000000, 0x00000000
TRUE dd 0xffffffff, 0xffffffff
ONE dd 0x00010001, 0x00010001
SECTION .bss ALIGN = 32
ACPixel resb 8
Mask1 resb 8
Mask2 resb 8
I56Pixel resb 8
I23Pixel resb 8
I5556Pixel resb 8
I2223Pixel resb 8
I5666Pixel resb 8
I2333Pixel resb 8
Mask26 resb 8
Mask35 resb 8
Mask26b resb 8
Mask35b resb 8
product1a resb 8
product1b resb 8
product2a resb 8
product2b resb 8
final1a resb 8
final1b resb 8
final2a resb 8
final2b resb 8
| 24.391199
| 103
| 0.467517
|
87583cf891137baa46546c090fcaa6ba14360329
| 4,214
|
asm
|
Assembly
|
lib/m5_crt0.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
lib/m5_crt0.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
lib/m5_crt0.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
; CRT0 for the SORD M5
;
; Stefano Bodrato Maj. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: m5_crt0.asm,v 1.11 2010/07/13 06:16:53 stefano Exp $
;
MODULE m5_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
INCLUDE "zcc_opt.def"
; No matter what set up we have, main is always, always external to
; this file
XREF _main
;
; Some variables which are needed for both app and basic startup
;
XDEF cleanup
XDEF l_dcal
; Integer rnd seed
XDEF _std_seed
; vprintf is internal to this file so we only ever include one of the set
; of routines
XDEF _vfprintf
;Exit variables
XDEF exitsp
XDEF exitcount
XDEF heaplast ;Near malloc heap variables
XDEF heapblocks
;For stdin, stdout, stder
XDEF __sgoioblk
; Graphics stuff
XDEF pixelbyte ; Temp store for non-buffered mode
XDEF base_graphics ; Graphical variables
XDEF coords ; Current xy position
; MSX platform specific stuff
;
XDEF msxbios
XDEF RG0SAV ;keeping track of VDP register values
XDEF RG1SAV
XDEF RG2SAV
XDEF RG3SAV
XDEF RG4SAV
XDEF RG5SAV
XDEF RG6SAV
XDEF RG7SAV
; Now, getting to the real stuff now!
IF !myzorg
defc myzorg = $7300
ENDIF
org myzorg
start:
ld hl,0
add hl,sp
ld (start1+1),hl
ld hl,-64
add hl,sp
ld sp,hl
ld (exitsp),sp
exx
push hl
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
; Set up the std* stuff so we can be called again
ld hl,__sgoioblk+2
ld (hl),19 ;stdin
ld hl,__sgoioblk+6
ld (hl),21 ;stdout
ld hl,__sgoioblk+10
ld (hl),21 ;stderr
ENDIF
ENDIF
call _main
cleanup:
;
; Deallocate memory which has been allocated here!
;
push hl
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
LIB closeall
call closeall
ENDIF
ENDIF
pop bc
exx
pop hl
exx
start1:
ld sp,0
ret
l_dcal:
jp (hl)
; Now, define some values for stdin, stdout, stderr
__sgoioblk:
IF DEFINED_ANSIstdio
INCLUDE "stdio_fp.asm"
ELSE
defw -11,-12,-10
ENDIF
; Now, which of the vfprintf routines do we need?
_vfprintf:
IF DEFINED_floatstdio
LIB vfprintf_fp
jp vfprintf_fp
ELSE
IF DEFINED_complexstdio
LIB vfprintf_comp
jp vfprintf_comp
ELSE
IF DEFINED_ministdio
LIB vfprintf_mini
jp vfprintf_mini
ENDIF
ENDIF
ENDIF
;Seed for integer rand() routines
_std_seed: defw 0
;Atexit routine
exitsp:
defw 0
exitcount:
defb 0
; Heap stuff
heaplast: defw 0
heapblocks: defw 0
; Graphics stuff
base_graphics: defw 0 ; Location of current screen buffer
coords: defw 0 ; Current graphics xy coordinates
pixelbyte: defb 0
RG0SAV: defb 0 ;keeping track of VDP register values
RG1SAV: defb 0
RG2SAV: defb 0
RG3SAV: defb 0
RG4SAV: defb 0
RG5SAV: defb 0
RG6SAV: defb 0
RG7SAV: defb 0
; ---------------
; MSX specific stuff
; ---------------
; Safe BIOS call
msxbios:
push ix
ret
defm "Small C+ SORD M5"
defb 0
;All the float stuff is kept in a different file...for ease of altering!
;It will eventually be integrated into the library
;
;Here we have a minor (minor!) problem, we've no idea if we need the
;float package if this is separated from main (we had this problem before
;but it wasn't critical..so, now we will have to read in a file from
;the directory (this will be produced by zcc) which tells us if we need
;the floatpackage, and if so what it is..kludgey, but it might just work!
;
;Brainwave time! The zcc_opt file could actually be written by the
;compiler as it goes through the modules, appending as necessary - this
;way we only include the package if we *really* need it!
IF NEED_floatpack
INCLUDE "float.asm"
;seed for random number generator - not used yet..
fp_seed: defb $80,$80,0,0,0,0
;Floating point registers...
extra: defs 6
fa: defs 6
fasign: defb 0
ENDIF
| 18.163793
| 73
| 0.646891
|
e4dc1035065f1ffd982d24236fd7f4da86d30241
| 1,103
|
asm
|
Assembly
|
original/Character_ASCII_Const.asm
|
rodoherty1/6502-Examples
|
86db5035a324ef161327f28452ba625d43668924
|
[
"MIT"
] | null | null | null |
original/Character_ASCII_Const.asm
|
rodoherty1/6502-Examples
|
86db5035a324ef161327f28452ba625d43668924
|
[
"MIT"
] | null | null | null |
original/Character_ASCII_Const.asm
|
rodoherty1/6502-Examples
|
86db5035a324ef161327f28452ba625d43668924
|
[
"MIT"
] | null | null | null |
; ---------------------------------------------------------------------
; - Character ASCII Set Constants
; - Date 26th November 2016
; - Created By John C. Dale
; ---------------------------------------------------------------------
CHR_White = 5
CHR_DisableCommodoreKey = 8
CHR_EnableCommodoreKey = 9
CHR_Return = 13
CHR_SwitchToLowerCase = 14
CHR_CursorUp = 17
CHR_ReverseOn = 18
CHR_Home = 19
CHR_Overwrite = 20
CHR_Red = 28
CHR_CursorRight = 29
CHR_Green = 30
CHR_Blue = 31
CHR_Space = 32
CHR_ShiftReturn = 141
CHR_SwitchToUpperCase = 142
CHR_Black = 144
CHR_CursorDown = 145
CHR_ReverseOff = 146
CHR_ClearScreen = 147
CHR_Insert = 148
CHR_Purple = 156
CHR_CursorLeft = 157
CHR_Yellow = 158
CHR_Cyan = 159
CHR_ShiftSpace = 160
| 32.441176
| 71
| 0.415231
|
4150b87132748d97b63f720e4e0c42592e9b07c0
| 599
|
asm
|
Assembly
|
oeis/304/A304513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/304/A304513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/304/A304513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A304513: a(n) = 57*2^(n-1) - 38 (n >= 1).
; 19,76,190,418,874,1786,3610,7258,14554,29146,58330,116698,233434,466906,933850,1867738,3735514,7471066,14942170,29884378,59768794,119537626,239075290,478150618,956301274,1912602586,3825205210,7650410458,15300820954,30601641946,61203283930,122406567898,244813135834,489626271706,979252543450,1958505086938,3917010173914,7834020347866,15668040695770,31336081391578,62672162783194,125344325566426,250688651132890,501377302265818,1002754604531674,2005509209063386,4011018418126810,8022036836253658
mov $1,2
pow $1,$0
sub $1,1
mul $1,57
add $1,19
mov $0,$1
| 59.9
| 495
| 0.828047
|
fc05acf7630864bdafc43824abfb77cf48080708
| 553
|
asm
|
Assembly
|
programs/oeis/122/A122799.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/122/A122799.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/122/A122799.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A122799: A P_7-stuttered arithmetic progression with a(n+1)=a(n) if n is not a heptagonal number, a(n+1)=a(n)+2 otherwise.
; 1,1,3,5,7,9,11,11,13,15,17,19,21,23,25,27,29,31,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187
mov $1,$0
add $1,$0
add $1,1
lpb $0
sub $1,2
add $2,5
sub $0,$2
trn $0,1
lpe
| 42.538462
| 341
| 0.672694
|
89fd5713a09a209399e0b81ed87cf130661c22ec
| 497
|
asm
|
Assembly
|
oeis/279/A279507.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/279/A279507.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/279/A279507.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A279507: a(n) = floor(phi(n)/tau(n)).
; Submitted by Jamie Morken(s3.)
; 1,0,1,0,2,0,3,1,2,1,5,0,6,1,2,1,8,1,9,1,3,2,11,1,6,3,4,2,14,1,15,2,5,4,6,1,18,4,6,2,20,1,21,3,4,5,23,1,14,3,8,4,26,2,10,3,9,7,29,1,30,7,6,4,12,2,33,5,11,3,35,2,36,9,6,6,15,3,39,3,10,10,41,2,16,10,14,5,44,2,18,7,15,11,18,2,48,7,10,4
mov $1,$0
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
seq $1,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
div $1,$0
mov $0,$1
| 49.7
| 233
| 0.603622
|
685bf0f70f6c3a5f00b5b2861b31f2ff3310f53e
| 8,679
|
asm
|
Assembly
|
third_party/codecs/xvidcore/src/motion/x86_asm/sad_xmm.asm
|
Narflex/sagetv
|
76cb5755e54fd3b01d2bb708a8a72af0aa1533f1
|
[
"Apache-2.0"
] | 292
|
2015-08-10T18:34:55.000Z
|
2022-01-26T00:38:45.000Z
|
third_party/codecs/xvidcore/src/motion/x86_asm/sad_xmm.asm
|
Narflex/sagetv
|
76cb5755e54fd3b01d2bb708a8a72af0aa1533f1
|
[
"Apache-2.0"
] | 366
|
2015-08-10T18:21:02.000Z
|
2022-01-22T20:03:41.000Z
|
third_party/codecs/xvidcore/src/motion/x86_asm/sad_xmm.asm
|
Narflex/sagetv
|
76cb5755e54fd3b01d2bb708a8a72af0aa1533f1
|
[
"Apache-2.0"
] | 227
|
2015-08-10T22:24:29.000Z
|
2022-02-25T19:16:21.000Z
|
;/****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - K7 optimized SAD operators -
; *
; * Copyright(C) 2001 Peter Ross <pross@xvid.org>
; * 2001-2008 Michael Militzer <michael@xvid.org>
; * 2002 Pascal Massimino <skal@planet-d.net>
; *
; * 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: sad_xmm.asm,v 1.15 2009-09-16 17:07:58 Isibaar Exp $
; *
; ***************************************************************************/
%include "nasm.inc"
;=============================================================================
; Read only data
;=============================================================================
DATA
ALIGN SECTION_ALIGN
mmx_one: times 4 dw 1
;=============================================================================
; Helper macros
;=============================================================================
%macro SAD_16x16_SSE 0
movq mm0, [_EAX]
psadbw mm0, [TMP1]
movq mm1, [_EAX+8]
add _EAX, TMP0
psadbw mm1, [TMP1+8]
paddusw mm5, mm0
add TMP1, TMP0
paddusw mm6, mm1
%endmacro
%macro SAD_8x8_SSE 0
movq mm0, [_EAX]
movq mm1, [_EAX+TMP0]
psadbw mm0, [TMP1]
psadbw mm1, [TMP1+TMP0]
add _EAX, _EBX
add TMP1, _EBX
paddusw mm5, mm0
paddusw mm6, mm1
%endmacro
%macro SADBI_16x16_SSE 0
movq mm0, [_EAX]
movq mm1, [_EAX+8]
movq mm2, [TMP1]
movq mm3, [TMP1+8]
pavgb mm2, [_EBX]
add TMP1, TMP0
pavgb mm3, [_EBX+8]
add _EBX, TMP0
psadbw mm0, mm2
add _EAX, TMP0
psadbw mm1, mm3
paddusw mm5, mm0
paddusw mm6, mm1
%endmacro
%macro SADBI_8x8_XMM 0
movq mm0, [_EAX]
movq mm1, [_EAX+TMP0]
movq mm2, [TMP1]
movq mm3, [TMP1+TMP0]
pavgb mm2, [_EBX]
lea TMP1, [TMP1+2*TMP0]
pavgb mm3, [_EBX+TMP0]
lea _EBX, [_EBX+2*TMP0]
psadbw mm0, mm2
lea _EAX, [_EAX+2*TMP0]
psadbw mm1, mm3
paddusw mm5, mm0
paddusw mm6, mm1
%endmacro
%macro MEAN_16x16_SSE 0
movq mm0, [_EAX]
movq mm1, [_EAX+8]
psadbw mm0, mm7
psadbw mm1, mm7
add _EAX, TMP0
paddw mm5, mm0
paddw mm6, mm1
%endmacro
%macro ABS_16x16_SSE 0
movq mm0, [_EAX]
movq mm1, [_EAX+8]
psadbw mm0, mm4
psadbw mm1, mm4
lea _EAX, [_EAX+TMP0]
paddw mm5, mm0
paddw mm6, mm1
%endmacro
;=============================================================================
; Code
;=============================================================================
TEXT
cglobal sad16_xmm
cglobal sad8_xmm
cglobal sad16bi_xmm
cglobal sad8bi_xmm
cglobal dev16_xmm
cglobal sad16v_xmm
;-----------------------------------------------------------------------------
;
; uint32_t sad16_xmm(const uint8_t * const cur,
; const uint8_t * const ref,
; const uint32_t stride,
; const uint32_t best_sad);
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
sad16_xmm:
mov _EAX, prm1 ; Src1
mov TMP1, prm2 ; Src2
mov TMP0, prm3 ; Stride
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
paddusw mm6,mm5
movd eax, mm6
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t sad8_xmm(const uint8_t * const cur,
; const uint8_t * const ref,
; const uint32_t stride);
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
sad8_xmm:
mov _EAX, prm1 ; Src1
mov TMP1, prm2 ; Src2
mov TMP0, prm3 ; Stride
push _EBX
lea _EBX, [TMP0+TMP0]
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
SAD_8x8_SSE
SAD_8x8_SSE
SAD_8x8_SSE
movq mm0, [_EAX]
movq mm1, [_EAX+TMP0]
psadbw mm0, [TMP1]
psadbw mm1, [TMP1+TMP0]
pop _EBX
paddusw mm5,mm0
paddusw mm6,mm1
paddusw mm6,mm5
movd eax, mm6
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t sad16bi_xmm(const uint8_t * const cur,
; const uint8_t * const ref1,
; const uint8_t * const ref2,
; const uint32_t stride);
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
sad16bi_xmm:
mov _EAX, prm1 ; Src
mov TMP1, prm2 ; Ref1
mov TMP0, prm4 ; Stride
push _EBX
%ifdef ARCH_IS_X86_64
mov _EBX, prm3
%else
mov _EBX, [_ESP+4+12] ; Ref2
%endif
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
SADBI_16x16_SSE
paddusw mm6,mm5
movd eax, mm6
pop _EBX
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t sad8bi_xmm(const uint8_t * const cur,
; const uint8_t * const ref1,
; const uint8_t * const ref2,
; const uint32_t stride);
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
sad8bi_xmm:
mov _EAX, prm1 ; Src
mov TMP1, prm2 ; Ref1
mov TMP0, prm4 ; Stride
push _EBX
%ifdef ARCH_IS_X86_64
mov _EBX, prm3
%else
mov _EBX, [_ESP+4+12] ; Ref2
%endif
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
.Loop:
SADBI_8x8_XMM
SADBI_8x8_XMM
SADBI_8x8_XMM
SADBI_8x8_XMM
paddusw mm6,mm5
movd eax, mm6
pop _EBX
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t dev16_xmm(const uint8_t * const cur,
; const uint32_t stride);
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
dev16_xmm:
mov _EAX, prm1 ; Src
mov TMP0, prm2 ; Stride
pxor mm7, mm7 ; zero
pxor mm5, mm5 ; mean accums
pxor mm6, mm6
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
MEAN_16x16_SSE
paddusw mm6, mm5
movq mm4, mm6
psllq mm4, 32
paddd mm4, mm6
psrld mm4, 8 ; /= (16*16)
packssdw mm4, mm4
packuswb mm4, mm4
; mm4 contains the mean
mov _EAX, prm1 ; Src
pxor mm5, mm5 ; sums
pxor mm6, mm6
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
ABS_16x16_SSE
paddusw mm6, mm5
movq mm7, mm6
psllq mm7, 32
paddd mm6, mm7
movd eax, mm6
ret
ENDFUNC
;-----------------------------------------------------------------------------
;int sad16v_xmm(const uint8_t * const cur,
; const uint8_t * const ref,
; const uint32_t stride,
; int* sad8);
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
sad16v_xmm:
mov _EAX, prm1 ; Src1
mov TMP1, prm2 ; Src2
mov TMP0, prm3 ; Stride
push _EBX
%ifdef ARCH_IS_X86_64
mov _EBX, prm4
%else
mov _EBX, [_ESP+4+16] ; sad ptr
%endif
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
pxor mm7, mm7 ; total
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
paddusw mm7, mm5
paddusw mm7, mm6
movd [_EBX], mm5
movd [_EBX+4], mm6
pxor mm5, mm5 ; accum1
pxor mm6, mm6 ; accum2
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
SAD_16x16_SSE
paddusw mm7, mm5
paddusw mm7, mm6
movd [_EBX+8], mm5
movd [_EBX+12], mm6
movd eax, mm7
pop _EBX
ret
ENDFUNC
NON_EXEC_STACK
| 19.725
| 78
| 0.568383
|
9122f41be7c0127d0beb648a13b1a07aa7aee15f
| 4,438
|
asm
|
Assembly
|
src/bootloader/boot.asm
|
basic60/ARCUS
|
a8dae9e690a996eda8f29f7754f7fb41cb0030a2
|
[
"MIT"
] | null | null | null |
src/bootloader/boot.asm
|
basic60/ARCUS
|
a8dae9e690a996eda8f29f7754f7fb41cb0030a2
|
[
"MIT"
] | null | null | null |
src/bootloader/boot.asm
|
basic60/ARCUS
|
a8dae9e690a996eda8f29f7754f7fb41cb0030a2
|
[
"MIT"
] | 1
|
2020-09-21T11:04:44.000Z
|
2020-09-21T11:04:44.000Z
|
[BITS 16]
org 7c00h
mov ax, cs
mov ds, ax
mov es, ax
mov esp, 7c00h
jmp load_stage2
disk_rw_struct:
db 16 ; size of disk_rw_struct, 10h
db 0 ; reversed, must be 0
dw 0 ; number of sectors
dd 0 ; target address
dq 0 ; start LBA number
read_disk_by_int13h:
mov eax, dword [esp + 8]
mov dword [disk_rw_struct + 4], eax
mov ax, [esp + 6]
mov word [disk_rw_struct + 2], ax
mov eax,dword [esp + 2]
mov dword [disk_rw_struct + 8], eax
mov ax, 4200h
mov dx, 0080h
mov si, disk_rw_struct
int 13h
ret
load_stage2:
push dword 0x7e00 ; target address
push word 50 ; number of blocks
push dword 1 ; start LBA number
call read_disk_by_int13h
add esp, 10
jmp enter_long_mode
times 510-($-$$) db 0
dw 0xaa55
%define E820_BUFFER 0xc000
%define PAGE_TABLE 0x40000
%define CODE_SEG 0x0008
%define DATA_SEG 0x0010
gdt64:
.Null:
dq 0 ; Null Descriptor - should be present.
.Code:
dq 0x00209A0000000000 ; 64-bit code descriptor (exec/read).
.pointer:
dw $ - gdt64 - 1 ; 16-bit Size (Limit) of GDT.
dd gdt64
enter_long_mode:
call memory_detect ; 利用e820中断探测内存
call fill_page_table ; 初始化临时页表
call enable_paging ; 开启分页
lgdt [gdt64.pointer]
jmp CODE_SEG:long_mode_entry
mmap_entry_count equ E820_BUFFER
memory_detect:
mov edi, 0xc004
xor ebx, ebx
xor bp, bp
mov edx, 0x0534D4150
mov eax, 0xe820
mov [es:edi + 20], dword 1
mov ecx, 24
int 0x15
jc .failed
mov edx, 0x0534D4150
cmp eax, edx
jne short .failed
test ebx, ebx
je .failed
jmp .jmpin
.e820_loop:
mov eax, 0xe820 ; eax, ecx get trashed on every int 0x15 call
mov [es:edi + 20], dword 1 ; force a valid ACPI 3.X entry
mov ecx, 24 ; ask for 24 bytes again
int 0x15
jc short .detect_finish ; carry set means "end of list already reached"
mov edx, 0x0534D4150 ; repair potentially trashed register
.jmpin:
jcxz .skip_entry ; skip any 0 length entries
cmp cl, 20 ; got a 24 byte ACPI 3.X response?
jbe .add_idx
test byte [es:edi + 20], 1 ; if so: is the "ignore this data" bit clear?
je .skip_entry
.add_idx:
mov ecx, dword [es:edi + 8] ; get lower uint32_t of memory region length
or ecx, dword [es:edi + 12] ; "or" it with upper uint32_t to test for zero
jz .skip_entry ; if length uint64_t is 0, skip entry
inc bp ; got a good entry: ++count, move to next storage spot
add edi, 24
.skip_entry:
test ebx, ebx ; if ebx resets to 0, list is complete
jne .e820_loop
.detect_finish:
mov [mmap_entry_count], bp
clc
ret
.failed:
hlt
fill_page_table:
mov edi, PAGE_TABLE ; page talbe start at 0x40000, occupy 20KB memroy and map the first 26MB
push edi
mov ecx, 0x10000
xor eax, eax
cld
rep stosd ; zero out 64KB memory
pop edi
lea eax, [es:edi + 0x1000]
or eax, 3
mov [es:edi], eax
lea eax, [es:edi + 0x2000]
or eax, 3
mov [es:edi + 0x1000], eax
mov ebx, 0x3000
mov edx, 0x2000
mov ecx, 52
.loop_p4:
lea eax, [es:edi + ebx]
or eax, 3
mov [es:edi + edx], eax
add ebx, 0x1000
add edx, 8
dec ecx
cmp ecx, 0
jne .loop_p4
push edi
lea edi, [es:edi + 0x3000]
mov eax, 3
.loop_page_table:
mov [es:edi], eax
add eax, 0x1000
add edi, 8
cmp eax, 0x1a00000
jb .loop_page_table
pop edi
mov ax, 0x2401
int 0x15 ; Enalbe A20 address line.
cli
ret
enable_paging:
; enable pae and pge
mov eax, 10100000b
mov cr4, eax
mov eax, PAGE_TABLE
mov cr3, eax
; set the long mode bit in the EFER MSR (model specific register)
mov ecx, 0xC0000080
rdmsr
or eax, 0x00000100
wrmsr
; enable paging and protection
mov eax, cr0
or eax, 0x80000001
mov cr0, eax
ret
[BITS 64]
long_mode_entry:
call cli_clear
jmp 0x8000
cli_clear:
mov edi,0xB8000
mov ecx,500
mov eax,0x0030 ; Set the value to set the screen to: Blue background, white foreground, blank spaces.
rep stosq
mov edi, 0xb8000
ret
| 23.860215
| 111
| 0.597341
|
472493908cc36783de05d32db03145f8fca06b93
| 322
|
asm
|
Assembly
|
libsrc/math/genmath/c/sccz80/pi.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/math/genmath/c/sccz80/pi.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/math/genmath/c/sccz80/pi.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; Small C+ Maths Routines
;
; transcendental floating point routines
;
SECTION code_fp
PUBLIC pi
EXTERN ldfabc
;double pi()
;Just the greek PI constant
.pi
LD BC,$8249 ; 3,1415...
LD IX,$0FDA
LD DE,$A222
JP ldfabc
| 14
| 46
| 0.487578
|
f98dbf1e9a4b5f4a8b7746305a7174fa40ce69b3
| 734
|
asm
|
Assembly
|
cpuid.data.asm
|
BernardTatin/asm_required
|
68a918f5bcb88606c015eb2e815c9fe7bbdd50f6
|
[
"MIT"
] | null | null | null |
cpuid.data.asm
|
BernardTatin/asm_required
|
68a918f5bcb88606c015eb2e815c9fe7bbdd50f6
|
[
"MIT"
] | null | null | null |
cpuid.data.asm
|
BernardTatin/asm_required
|
68a918f5bcb88606c015eb2e815c9fe7bbdd50f6
|
[
"MIT"
] | null | null | null |
; ----------------------------------------------------------------------
; cpuid.data.asm
;
; A CPUID
; To assemble and run:
;
; nasm -felf64 cpuid.asm \
; && ld -o cpuid cpuid.o && ./cpuid
; ----------------------------------------------------------------------
%define DATA
%include "cpuid.inc.asm"
; ----------------------------------------------------------------------
section .data
title db 'A simple CPUID', 10
Ltitle dq $-title
model db 'Model: '
efmodel db '00.' ; bits 20-27 / 8
eemodel db '0.' ; bits 16-19 / 4
ptmodel db '0.' ; bits 12-13 / 2
fmodel db '0.' ; bits 8-11 / 4
mmodel db '0.' ; bits 4- 7 / 4
smodel db '0' ; bits 0- 3 / 4
db 10
Lmodel dq $-model
hexdump db '0123456789abcdef'
| 22.9375
| 72
| 0.415531
|
2fa67883f35771668102d94e9cf88e80d9e4abf9
| 3,188
|
asm
|
Assembly
|
Library/Trans/Graphics/Bitmap/Clp/Export/exportMain.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Trans/Graphics/Bitmap/Clp/Export/exportMain.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Trans/Graphics/Bitmap/Clp/Export/exportMain.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: exportMain.asm
AUTHOR: Maryann Simmons, May 12, 1992
ROUTINES:
Name Description
---- -----------
GLB TransExport perform export of a GString into Clp file
format
INT GraphicsGetExportOptions Returns the bit Count to be used by the
DIB Library
REVISION HISTORY:
Name Date Description
---- ---- -----------
MS 5/12/92 Initial revision
DESCRIPTION:
$Id: exportMain.asm,v 1.1 97/04/07 11:26:34 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifdef __HIGHC__
MAINEXPORTC segment word public 'CODE'
global ExportClp:far
MAINEXPORTC ends
else
global EXPORTCLP:far
endif
ExportCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransExport
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: perform export of a GString into Clp file format
CALLED BY: GLOBAL
PASS: ds:si ExportFrame
RETURN: ax - TransError error code, clear if no error
bx - handle to block containing Error String
if ax = TE_CUSTOM
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransExport proc far
uses cx
.enter
ifdef __HIGHC__
mov bx,vseg _ExportClp ;segment of Clp Export routine to call
mov ax,offset _ExportClp ;offset of Clp Export routine to call
else
mov bx,vseg EXPORTCLP ;segment of Clp Export routine to call
mov ax,offset EXPORTCLP ;offset of Clp Export routine to call
endif
clr cx
call GraphicsExportCommon ;call the Common code to do the export
.leave
ret
TransExport endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GraphicsGetExportOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the bit Count to be used by the DIB Library
CALLED BY: GraphicsExportCommon
PASS: ds:si - ExportFrame
RETURN: si -BitCount
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
MS 6/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GraphicsGetExportOptions proc near
uses ax,bx,ds
.enter
mov bx,ds:[si].EF_exportOptions ;handle to options block
tst bx
jz setDefault
call MemLock ;takes bx=handle,ret ax = address
jc setDefault ;unable to lock Options Block
segmov ds,ax ;address of options block
clr ah
mov al,ds:[CEO_bitCount] ;get bitcount
mov si,ax ;si:export Option( bit count)
call MemUnlock ;have extracted necessary data
done:
.leave
ret
setDefault:
mov si,1 ; set bit count to default mono
jmp done
GraphicsGetExportOptions endp
ExportCode ends
| 23.101449
| 79
| 0.560226
|
527e38049d233b0f30b5e6b85bbf58814253f0ca
| 6,219
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_652.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_652.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_652.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x10cdc, %rbx
nop
nop
nop
xor $15966, %r14
movups (%rbx), %xmm0
vpextrq $1, %xmm0, %rdx
nop
nop
nop
nop
nop
add $35439, %r12
lea addresses_WC_ht+0x1bf60, %rsi
lea addresses_D_ht+0x9ce0, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %rax, %rax
mov $26, %rcx
rep movsq
nop
cmp $8586, %r14
lea addresses_D_ht+0x6e60, %r12
sub $30210, %r14
mov (%r12), %ax
nop
nop
nop
nop
nop
xor $21200, %rax
lea addresses_WC_ht+0x1ed40, %rax
clflush (%rax)
nop
nop
nop
add $39398, %rdi
movups (%rax), %xmm1
vpextrq $1, %xmm1, %r12
nop
nop
nop
nop
nop
add %r14, %r14
lea addresses_UC_ht+0x14260, %r12
clflush (%r12)
nop
nop
nop
add $1142, %rbx
mov $0x6162636465666768, %r14
movq %r14, (%r12)
nop
dec %rax
lea addresses_WC_ht+0x1791f, %rdx
cmp $17801, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
and $0xffffffffffffffc0, %rdx
vmovntdq %ymm0, (%rdx)
nop
nop
nop
and %rdi, %rdi
lea addresses_D_ht+0x118c0, %r12
nop
nop
nop
sub $37148, %rax
vmovups (%r12), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
nop
nop
cmp $4640, %rdi
lea addresses_UC_ht+0x320, %rax
nop
nop
nop
nop
nop
sub $33245, %r14
movups (%rax), %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
nop
nop
and $48114, %rcx
lea addresses_UC_ht+0x1e0e0, %rcx
sub $56121, %rax
movw $0x6162, (%rcx)
sub %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %rbp
// Faulty Load
mov $0x567d600000000e60, %r12
inc %r13
mov (%r12), %r15
lea oracles, %rbp
and $0xff, %r15
shlq $12, %r15
mov (%rbp,%r15,1), %r15
pop %rbp
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_NC', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': True, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 1}}
{'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 5}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 4}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 39.360759
| 2,999
| 0.658144
|
af1647490e8a55ae0a11e9f772264b44566314db
| 1,596
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/target/yaz180/device/am9511a/am9511a_reset.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/target/yaz180/device/am9511a/am9511a_reset.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/target/yaz180/device/am9511a/am9511a_reset.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;------------------------------------------------------------------------------
; Initialises the APU buffers
;
INCLUDE "config_private.inc"
SECTION code_driver
PUBLIC asm_am9511a_reset
EXTERN APUCMDBuf, APUPTRBuf
EXTERN APUCMDInPtr, APUCMDOutPtr, APUPTRInPtr, APUPTROutPtr
EXTERN APUCMDBufUsed, APUPTRBufUsed, APUStatus, APUError
asm_am9511a_reset:
push af
push bc
push de
push hl
ld hl,APUCMDBuf ; Initialise COMMAND Buffer
ld (APUCMDInPtr),hl
ld (APUCMDOutPtr),hl
ld hl,APUPTRBuf ; Initialise OPERAND POINTER Buffer
ld (APUPTRInPtr),hl
ld (APUPTROutPtr),hl
xor a ; clear A register to 0
ld (APUCMDBufUsed),a ; 0 both Buffer counts
ld (APUPTRBufUsed),a
ld (APUCMDBuf),a ; clear COMMAND Buffer
ld hl,APUCMDBuf
ld d,h
ld e,l
inc de
ld bc,__APU_CMD_SIZE-1
ldir
ld (APUPTRBuf),a ; clear OPERAND POINTER Buffer
ld hl,APUPTRBuf
ld d,h
ld e,l
inc de
ld bc,__APU_PTR_SIZE-1
ldir
ld (APUStatus),a ; set APU status to idle (NOP)
ld (APUError),a ; clear APU errors
am9511a_reset_loop:
ld bc,__IO_APU_STATUS ; the address of the APU status port in bc
in a,(c) ; read the APU
and __IO_APU_STATUS_BUSY ; busy?
jr NZ,am9511a_reset_loop
pop hl
pop de
pop bc
pop af
ret
| 25.333333
| 81
| 0.528822
|
87a652e1403f7e1077360fb40545630057185531
| 10,159
|
nasm
|
Assembly
|
asmlib/struct.nasm
|
fengjixuchui/napoca
|
ed26609ab9a3ea12d12882b311dcb332dc759d32
|
[
"Apache-2.0"
] | 170
|
2020-07-30T15:04:59.000Z
|
2022-03-24T10:59:29.000Z
|
asmlib/struct.nasm
|
a-cristi/napoca
|
ed6691125bf703366581e47a1fe789167009c24a
|
[
"Apache-2.0"
] | 3
|
2020-08-10T09:16:56.000Z
|
2022-02-18T21:40:43.000Z
|
asmlib/struct.nasm
|
a-cristi/napoca
|
ed6691125bf703366581e47a1fe789167009c24a
|
[
"Apache-2.0"
] | 44
|
2020-07-30T15:06:55.000Z
|
2022-02-25T08:55:55.000Z
|
;
; Copyright (c) 2020 Bitdefender
; SPDX-License-Identifier: Apache-2.0
;
%ifndef _STRUCT_YASM_
%define _STRUCT_YASM_
%ifdef DOC_FILE
struct.nasm - macro definitions for C-like syntax constructs such as struct, enum, sizeof, etc
%endif
%idefine sizeof(X) X %+ _size
; define one or more dynamically generated symbol name(s) with associated value(s)
%macro xdefine 2-*
%rep %0/2 ; for each pair
%xdefine %1 %2 ; actual definition
%rotate 2 ; advance to next pair
%endrep
%endmacro
; define a dynamically generated symbol as the result of a concatenation of two symbols to avoid early evaluation
%macro xconcat 3
%xdefine %1 %2 %+ %3
%endmacro
%define _struct _struc
%define struct _struc
%define _endstruct _endstruc
%define endstruct _endstruc
%ifdef DOC_METHOD
Structure definition start
%endif
%macro _struc 1
%push struct ; local context for temporary definitions that are discarded at _endstruc
%assign %$pos 0 ; local variable to count the occupied bytes
%xdefine %$name %1 ; remember the first param (the name of the defined structure type)
%assign %$padding_cnt 0 ; a suffix for managing padding fields
; define standard member types available while inside structure definition
%idefine byte(x) members x, 1
%idefine word(x) members x, 2
%idefine dword(x) members x, 4
%idefine qword(x) members x, 8
%idefine void(x) members x, 0
%idefine word_align raw_align 2
%idefine dword_align raw_align 4
%idefine qword_align raw_align 8
%idefine raw_align(x) raw_align x
%idefine align(x) raw_align x
%idefine byte(x,n) members x, 1*n
%idefine word(x,n) members x, 2*n
%idefine dword(x,n) members x, 4*n
%idefine qword(x,n) members x, 8*n
%endmacro
%ifdef DOC_METHOD
Structure definition end
%endif
%macro _endstruc 0
xdefine %$name %+ _size, %$pos ; ..._size is defined as total occupied bytes (for compatibility with standart 'struct' macro)
xdefine %$name %+ _members, {%$members} ; ..._members will remember how each member is defined (useful for structure instantiation)
xdefine %$name(X), {substruct X, %$name}, {%$name(X,Y)}, {members X, Y}
; STRUCT_NAME(name) will instantiate the substruct macro
; STRUCT_NAME(name,count) will generate space for an array of n elements
%pop ; free all temporary definitions that were used to keep track of members
%undef byte
%undef word
%undef dword
%undef qword
%undef word_align
%undef dword_align
%undef qword_align
%undef raw_align
%undef align
%undef void
%endmacro
%imacro raw_align 1 ; align current structure's pos to a given alignment value by adding a padding field
%assign %$value %1
%if %1 == 0
%assign %$value 1
%endif
%if (%$pos % %$value) != 0
%assign %$value %$value - (%$pos % %1)
members align %+ %$padding_cnt, %$value
%assign %$padding_cnt %$padding_cnt + 1
%endif
;%error %$members
%endmacro
%ifdef DOC_METHOD
Definine structure members: list of pairs (name, sizeof)
%endif
%macro members 2+
%rep %0/2 ; for each pair
xdefine %$name %+ . %+ %1, %$pos ; define name.member as pos
%assign %$pos %$pos + %2 ; advance pos
%ifndef %$members
%define %$members %1, %2 ; consider the first pair (member, sizeof) as all members for now
%else
%xdefine %$tmp %$members ; use an intermediary variable to capture the current list of pairs
%define %$members %$tmp, %1, %2 ; append the new pair to the existing list
%endif
%rotate 2 ; get to the next pair
%endrep
%endmacro
; RAW(name, bytes) will generate a member 'name' of size = 'bytes'
%idefine RAW(x,y) members x, y ; use the members macro to define a member named 'x' of 'y' bytes
; helper macro for 'substruct': generate sub-names and add to the current members list of pairs (name, size) each sub-member with its size
%macro generatemembers 3-*
%xdefine %$substructure %1
%rotate 1
%rep (%0 - 1)/2
members %$substructure %+ . %+ %1, %2
%rotate 2
%endrep
%endmacro
%ifdef DOC_METHOD
sub-structure inside a structure: generates a .whole_structure definition for where it starts and then member names for each sub-member
substruct substruct_name, struct_type
%endif
%macro substruct 2
members %1, 0 ; generate a dummy member of size 0 for substruct_name
generatemembers %1, %2 %+ _members ; generate sub-fields (named like substruct_name.field1, substruct_name.field2, ...)
%endmacro
%ifdef DOC_METHOD
structure instantiation helper: label-like definitions for members
%endif
%macro GENLABELS 3-*
%xdefine %$base %1 ; remember the base (similar to a global label for which sub-labels would be defined
%assign %$index 0 ; how many bytes were emitted
%rotate 1 ; skip the base part
%rep (%0 - 1)/2 ; for each field's pair of (name, size)
xdefine %$structstart %+ . %+ %1, (%$structstart + %$index)
; define a global symbol base.subname equal to the address of this field (not just an offset inside structure)
%assign %$index %$index + %2 ; get to the next pair
%rotate 2
%endrep
%endmacro
%ifdef DOC_METHOD
structure instantiasion
_istruc variable_name, structure_type_name
%endif
%macro _istruc 2
%push istruct ; create a context for some local variables
%define %$structname %2 ; remember the structure type
%xdefine %$structstart %1 ; remember the address (the '$' symbol) where the structure is being emitted
%1: ; generate the actual label which will capture the current value of '$'
GENLABELS %1, %{$structname}_members ; define each name.fieldname symbols as label + offset
%endmacro
; add optional padding until a given member position and then emit bytes for it
%imacro _at 2
xdefine %$temp, %$structname %+ . %+ %1 ; make
times %$temp - ($-%$structstart) db 0
%2
%undef %$temp
%endmacro
%ifdef DOC_METHOD
end of a structure instantiasion, this will set to 0 any remaining uninitialized field and free preproc definitions
%endif
%macro _iend 0
times %{$structname}_size-($-%$structstart) db 0
%pop ; destroy all temporary definitions
%endmacro
%ifdef DOC_METHOD
generate symbols based on a counter optionally given as parameter or considered 0 in the beginning
%endif
%imacro startenum 0-2
%push ENUM
%if %0 >= 1
%assign %$counter %1
%else
%assign %$counter 0
%endif
%if %0 >= 2
%xdefine %$basename %2
%endif
%endmacro
%imacro stopenum 0
%ifnctx ENUM
%error endenum without matchin enum
%else
%pop
%endif
%endmacro
%imacro enum 1
%ifnctx ENUM
%error endenum without matchin enum
%else
%xdefine %1 %$counter
%assign %$counter %$counter + 1
%endif
%endmacro
%imacro enumpos 1
%assign %$counter %1
%endmacro
%imacro enumbit 1-*
%ifnctx ENUM
%error endenum without matchin enum
%else
%rep %0
%ifdef %$basename
xdefine %$basename %+ . %+ %1, (1 << %$counter)
%else
%xdefine %1 (1 << %$counter)
%endif
%assign %$counter %$counter + 1
%rotate 1
%endrep
%endif
%endmacro
%define as ,
%macro _with 3-*
%define %$name %{1}.
%define %$type %2
%define %$delta %3
%rotate 3
%rep (%0-2)/2
%define asijgfyojdlaskjasd (%$delta + %$type %+ . %+ %1)
xconcat %$name %+ %1, asijgfyoj, dlaskjasd
%rotate 2
%endrep
%endmacro
%macro with 2-3 ; with rax, STR, delta
%push with
%if %0 == 2
_with %1, %2, %1, %2 %+ _members
%else
_with %1, %2, %3, %2 %+ _members
%endif
%endmacro
%macro unconcat 2
%undef %1%2
%endmacro
%macro _endwith 0-*
%rep %0/2
unconcat %$name, %1
%rotate 2
%endrep
%endmacro
%macro endwith 0-1
%ifnctx with
%error endwith without matching with!
%else
_endwith %$type %+ _members
%pop
%endif
%endmacro
%endif ; _STRUCT_YASM_
%ifdef DOC_FILE
Syntax example/use case of the defined macros
_struc A
word (x)
dword (y)
_endstruc
_struc B
word (x)
dword (y)
A (a)
_endstruc
_struc C
word (x)
dword (y)
B (b)
_endstruc
_istruc structura, C
_at x, dw 1
_at b.x, dw 2
_iend
mov eax, [ebx + C.b.a.x]
with eax as C
mov [eax.b.x], ax ; => mov [eax + field_offset], ax
endwith eax
with name as C, rbx + rdi
mov [name.b.x], ax ; => mov [rbx+rdi + field_offset], ax
endwith name
mov ecx, [structura.b.x]
mov ecx, [structura.b.a.y]
%endif
| 30.507508
| 170
| 0.557929
|
220db9086cf9dcebab575aac905090e67a7274d7
| 1,060
|
asm
|
Assembly
|
programs/oeis/155/A155085.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/155/A155085.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/155/A155085.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A155085: a(n) = n + sum of divisors of n.
; 2,5,7,11,11,18,15,23,22,28,23,40,27,38,39,47,35,57,39,62,53,58,47,84,56,68,67,84,59,102,63,95,81,88,83,127,75,98,95,130,83,138,87,128,123,118,95,172,106,143,123,150,107,174,127,176,137,148,119,228,123,158,167,191
mov $14,$0
mov $16,2
lpb $16
clr $0,14
mov $0,$14
sub $16,1
add $0,$16
sub $0,1
mov $11,$0
mov $13,$0
lpb $13
mov $0,$11
sub $13,1
sub $0,$13
mov $7,$0
mov $9,2
lpb $9
clr $0,7
mov $0,$7
sub $9,1
add $0,$9
sub $0,1
mov $2,$0
mov $3,$0
lpb $2
add $6,2
lpb $6
add $0,$2
trn $6,$2
lpe
sub $2,1
mov $6,$3
lpe
mov $1,$0
mov $10,$9
lpb $10
mov $8,$1
sub $10,1
lpe
lpe
lpb $7
mov $7,0
sub $8,$1
lpe
mov $1,$8
add $1,1
add $12,$1
lpe
mov $1,$12
mov $17,$16
lpb $17
mov $15,$1
sub $17,1
lpe
lpe
lpb $14
mov $14,0
sub $15,$1
lpe
mov $1,$15
trn $1,1
add $1,2
| 16.060606
| 214
| 0.457547
|
1aac0cffe72beaed71cc68bcdce3d76882c7346e
| 4,644
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1047.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1047.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1047.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rdi
push %rdx
lea addresses_A_ht+0x184cf, %r15
clflush (%r15)
nop
nop
nop
dec %rdx
mov (%r15), %di
nop
nop
add %r11, %r11
lea addresses_WC_ht+0x1a11, %r8
nop
nop
nop
nop
nop
add $40035, %rdx
mov $0x6162636465666768, %r13
movq %r13, %xmm4
movups %xmm4, (%r8)
nop
nop
nop
inc %rdx
pop %rdx
pop %rdi
pop %r8
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_WT+0x1850e, %rsi
lea addresses_WT+0x188cf, %rdi
nop
nop
nop
xor $42821, %rbp
mov $55, %rcx
rep movsq
nop
nop
nop
cmp %rsi, %rsi
// Faulty Load
lea addresses_A+0x10cf, %rdi
nop
nop
nop
nop
dec %rsi
movups (%rdi), %xmm6
vpextrq $0, %xmm6, %rdx
lea oracles, %rdi
and $0xff, %rdx
shlq $12, %rdx
mov (%rdi,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 10}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 1}, 'OP': 'STOR'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 47.387755
| 2,999
| 0.661499
|
acf171dbef474828281d9f7b129cd525b77bc88e
| 619
|
asm
|
Assembly
|
oeis/010/A010513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/010/A010513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/010/A010513.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A010513: Decimal expansion of square root of 60.
; 7,7,4,5,9,6,6,6,9,2,4,1,4,8,3,3,7,7,0,3,5,8,5,3,0,7,9,9,5,6,4,7,9,9,2,2,1,6,6,5,8,4,3,4,1,0,5,8,3,1,8,1,6,5,3,1,7,5,1,4,7,5,3,2,2,2,6,9,6,6,1,8,3,8,7,3,9,5,8,0,6,7,0,3,8,5,7,4,7,5,3,7,1,7,3,4,7,0,3,5
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov $4,$0
add $4,3
mul $4,2
mov $7,10
pow $7,$4
mov $9,10
lpb $3
mov $4,$2
pow $4,2
mul $4,60
mov $5,$1
pow $5,2
add $4,$5
mov $6,$1
mov $1,$4
mul $6,$2
mul $6,2
mov $2,$6
mov $8,$4
div $8,$7
max $8,2
div $1,$8
div $2,$8
sub $3,1
lpe
mov $3,$9
pow $3,$0
div $2,$3
div $1,$2
mod $1,$9
mov $0,$1
| 15.871795
| 201
| 0.50727
|
72516e5945398f1793864cd3a833b72bcaf5eb6e
| 2,795
|
asm
|
Assembly
|
PIC16/assy/rotate.asm
|
Classrooms/Microcontrollers
|
554a2129d45a14306b69af0d72d5b3816b1e21ec
|
[
"MIT"
] | 1
|
2020-11-04T17:00:32.000Z
|
2020-11-04T17:00:32.000Z
|
PIC16/assy/rotate.asm
|
Classrooms/Microcontrollers
|
554a2129d45a14306b69af0d72d5b3816b1e21ec
|
[
"MIT"
] | null | null | null |
PIC16/assy/rotate.asm
|
Classrooms/Microcontrollers
|
554a2129d45a14306b69af0d72d5b3816b1e21ec
|
[
"MIT"
] | null | null | null |
; *******************************************************************
; Lesson 3 - "Rotate"
;
; This lesson will introduce shifting instructions as well as bit-oriented skip operations to
; move the LED display.
;
; LEDs rotate from right to left at a rate of 1.5s
;
;
; PIC: 16F1829
; Assembler: MPASM v5.43
; IDE: MPLABX v1.10
;
; Board: PICkit 3 Low Pin Count Demo Board
; Date: 6.1.2012
;
; *******************************************************************
; * See Low Pin Count Demo Board User's Guide for Lesson Information*
; *******************************************************************
#include <p16F1829.inc>
__CONFIG _CONFIG1, (_FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF);
__CONFIG _CONFIG2, (_WRT_OFF & _PLLEN_OFF & _STVREN_OFF & _LVP_OFF);
errorlevel -302 ;supress the 'not in bank0' warning
cblock 0x70 ;shared memory location that is accessible from all banks
Delay1 ;define two file registers for the delay loop in shared memory
Delay2
endc
; -------------------LATC-----------------
; Bit#: -7---6---5---4---3---2---1---0---
; LED: ---------------|DS4|DS3|DS2|DS1|-
; -----------------------------------------
ORG 0 ;start of code
Start:
banksel OSCCON ;bank1
movlw b'00111000' ;set cpu clock speed of 500KHz
movwf OSCCON ;move contents of the working register into OSCCON
clrf TRISC ;make all of PORTC an output
banksel LATC ;select the bank where LATC is (bank2)
movlw b'00001000' ;start the rotation by setting DS4 ON
movwf LATC ;write contents of the working register to the latch
MainLoop:
OndelayLoop:
decfsz Delay1,f ;Waste time.
goto OndelayLoop ;The Inner loop takes 3 instructions per loop * 256 loopss = 768 instructions
decfsz Delay2,f ;The outer loop takes an additional 3 instructions per lap * 256 loops
goto OndelayLoop ;(768+3) * 256 = 197376 instructions / 125K instructions per second = 1.579 sec.
Rotate:
lsrf LATC,F ;shift the LEDs and turn on the next LED to the right
btfsc STATUS,C ;did the bit rotate into the carry (i.e. was DS1 just lit?)
bsf LATC, 3 ;yes, it did and now start the sequence over again by turning on DS4
goto MainLoop ;repeat this program forever
end ;end code section
| 48.189655
| 151
| 0.51449
|
85533f6937bb01253d9d9f9c41df00bb9d0b298e
| 342
|
asm
|
Assembly
|
programs/oeis/334/A334415.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/334/A334415.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/334/A334415.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A334415: Nearest integer to n*(2-phi), where phi is the golden ratio (A001622).
; 0,0,1,1,2,2,2,3,3,3,4,4,5,5,5,6,6,6,7,7,8,8,8,9,9,10,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,19,20,20,21,21,21,22,22,23,23,23,24,24,24,25,25,26,26,26,27,27
mov $2,$0
add $0,4
mul $2,4
div $2,17
sub $0,$2
div $0,2
sub $0,2
| 31.090909
| 192
| 0.625731
|
d7d82df934031a73d09501253229da81c6cc6323
| 403
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_fillTileAttrL.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_fillTileAttrL.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_fillTileAttrL.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------
SECTION code_clib
SECTION code_bifrost_l
PUBLIC asm_BIFROSTL_fillTileAttrL
defc asm_BIFROSTL_fillTileAttrL = 58661
; c = attrib
; e = col
; d = row
| 23.705882
| 66
| 0.493797
|
b7570dd88a301cc5ebc00df8b6e52b26bdf762bb
| 1,276
|
asm
|
Assembly
|
programs/oeis/265/A265409.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/265/A265409.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/265/A265409.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A265409: a(n) = index to the nearest inner neighbor in Ulam-style square-spirals using zero-based indexing.
; 0,0,0,0,0,0,0,1,1,1,2,2,2,3,4,4,4,5,6,6,6,7,8,9,9,9,10,11,12,12,12,13,14,15,16,16,16,17,18,19,20,20,20,21,22,23,24,25,25,25,26,27,28,29,30,30,30,31,32,33,34,35,36,36,36,37,38,39,40,41,42,42,42,43,44,45,46,47,48,49,49,49,50,51,52,53,54,55,56,56,56,57,58,59,60,61,62,63,64,64,64,65,66,67,68,69,70,71,72,72,72,73,74,75,76,77,78,79,80,81,81,81,82,83,84,85,86,87,88,89,90,90,90,91,92,93,94,95,96,97,98,99,100,100,100,101,102,103,104,105,106,107,108,109,110,110,110,111,112,113,114,115,116,117,118,119,120,121,121,121,122,123,124,125,126,127,128,129,130,131,132,132,132,133,134,135,136,137,138,139,140,141,142,143,144,144,144,145,146,147,148,149,150,151,152,153,154,155,156,156,156,157,158,159,160,161,162,163,164,165,166,167,168,169,169,169,170,171,172,173,174,175,176,177,178,179,180,181,182,182,182,183,184,185,186,187,188,189,190,191
mov $5,$0
mov $7,$0
lpb $7
clr $0,5
mov $0,$5
sub $7,1
sub $0,$7
add $3,$0
mul $3,2
lpb $0
mov $1,$0
cal $1,232091 ; Smallest square or promic (oblong) number greater than or equal to n.
mov $0,2
sub $1,$3
sub $0,$1
sub $0,1
mov $4,4
lpe
mov $1,$4
div $1,4
add $6,$1
lpe
mov $1,$6
| 47.259259
| 833
| 0.655172
|
e8f6bfe0655fad5a7acf38df43ad2fde6c7be3ab
| 151
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/srd13-SFCマリオコレクション/export/mario-z/linkp/mario_n1/mn_hp_smmain.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/srd13-SFCマリオコレクション/export/mario-z/linkp/mario_n1/mn_hp_smmain.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/srd13-SFCマリオコレクション/export/mario-z/linkp/mario_n1/mn_hp_smmain.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: mn_hp_smmain.asm
Type: file
Size: 108684
Last-Modified: '1993-08-24T11:34:58Z'
SHA-1: 7C8AF50A4D6ADAC7E28A8E55BDE688D4750C425D
Description: null
| 21.571429
| 47
| 0.821192
|
fc31b5967a57cf7f20a5cbbe2173b2d560b1dd0a
| 538
|
asm
|
Assembly
|
programs/oeis/158/A158128.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/158/A158128.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/158/A158128.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A158128: 100n + 1.
; 101,201,301,401,501,601,701,801,901,1001,1101,1201,1301,1401,1501,1601,1701,1801,1901,2001,2101,2201,2301,2401,2501,2601,2701,2801,2901,3001,3101,3201,3301,3401,3501,3601,3701,3801,3901,4001,4101,4201,4301,4401,4501,4601,4701,4801,4901,5001,5101,5201,5301,5401,5501,5601,5701,5801,5901,6001,6101,6201,6301,6401,6501,6601,6701,6801,6901,7001,7101,7201,7301,7401,7501,7601,7701,7801,7901,8001,8101,8201,8301,8401,8501,8601,8701,8801,8901,9001,9101,9201,9301,9401,9501,9601,9701,9801,9901,10001
mul $0,100
add $0,101
| 89.666667
| 493
| 0.776952
|
2f2bbe7e8044084e291c8c701fb030bb9d80082f
| 40,262
|
asm
|
Assembly
|
setuid.asm
|
joeofportland/project4-3
|
7b8b67d3f3c6eae1a344a888417a744b9f3f2baf
|
[
"MIT-0"
] | null | null | null |
setuid.asm
|
joeofportland/project4-3
|
7b8b67d3f3c6eae1a344a888417a744b9f3f2baf
|
[
"MIT-0"
] | null | null | null |
setuid.asm
|
joeofportland/project4-3
|
7b8b67d3f3c6eae1a344a888417a744b9f3f2baf
|
[
"MIT-0"
] | null | null | null |
_setuid: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
exit();
6: e8 68 02 00 00 call 273 <exit>
0000000b <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
b: 55 push %ebp
c: 89 e5 mov %esp,%ebp
e: 57 push %edi
f: 53 push %ebx
asm volatile("cld; rep stosb" :
10: 8b 4d 08 mov 0x8(%ebp),%ecx
13: 8b 55 10 mov 0x10(%ebp),%edx
16: 8b 45 0c mov 0xc(%ebp),%eax
19: 89 cb mov %ecx,%ebx
1b: 89 df mov %ebx,%edi
1d: 89 d1 mov %edx,%ecx
1f: fc cld
20: f3 aa rep stos %al,%es:(%edi)
22: 89 ca mov %ecx,%edx
24: 89 fb mov %edi,%ebx
26: 89 5d 08 mov %ebx,0x8(%ebp)
29: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
2c: 5b pop %ebx
2d: 5f pop %edi
2e: 5d pop %ebp
2f: c3 ret
00000030 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
30: 55 push %ebp
31: 89 e5 mov %esp,%ebp
33: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
36: 8b 45 08 mov 0x8(%ebp),%eax
39: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
3c: 90 nop
3d: 8b 45 08 mov 0x8(%ebp),%eax
40: 8d 50 01 lea 0x1(%eax),%edx
43: 89 55 08 mov %edx,0x8(%ebp)
46: 8b 55 0c mov 0xc(%ebp),%edx
49: 8d 4a 01 lea 0x1(%edx),%ecx
4c: 89 4d 0c mov %ecx,0xc(%ebp)
4f: 0f b6 12 movzbl (%edx),%edx
52: 88 10 mov %dl,(%eax)
54: 0f b6 00 movzbl (%eax),%eax
57: 84 c0 test %al,%al
59: 75 e2 jne 3d <strcpy+0xd>
;
return os;
5b: 8b 45 fc mov -0x4(%ebp),%eax
}
5e: c9 leave
5f: c3 ret
00000060 <strcmp>:
int
strcmp(const char *p, const char *q)
{
60: 55 push %ebp
61: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
63: eb 08 jmp 6d <strcmp+0xd>
p++, q++;
65: 83 45 08 01 addl $0x1,0x8(%ebp)
69: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
6d: 8b 45 08 mov 0x8(%ebp),%eax
70: 0f b6 00 movzbl (%eax),%eax
73: 84 c0 test %al,%al
75: 74 10 je 87 <strcmp+0x27>
77: 8b 45 08 mov 0x8(%ebp),%eax
7a: 0f b6 10 movzbl (%eax),%edx
7d: 8b 45 0c mov 0xc(%ebp),%eax
80: 0f b6 00 movzbl (%eax),%eax
83: 38 c2 cmp %al,%dl
85: 74 de je 65 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
87: 8b 45 08 mov 0x8(%ebp),%eax
8a: 0f b6 00 movzbl (%eax),%eax
8d: 0f b6 d0 movzbl %al,%edx
90: 8b 45 0c mov 0xc(%ebp),%eax
93: 0f b6 00 movzbl (%eax),%eax
96: 0f b6 c0 movzbl %al,%eax
99: 29 c2 sub %eax,%edx
9b: 89 d0 mov %edx,%eax
}
9d: 5d pop %ebp
9e: c3 ret
0000009f <strlen>:
uint
strlen(char *s)
{
9f: 55 push %ebp
a0: 89 e5 mov %esp,%ebp
a2: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
a5: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
ac: eb 04 jmp b2 <strlen+0x13>
ae: 83 45 fc 01 addl $0x1,-0x4(%ebp)
b2: 8b 55 fc mov -0x4(%ebp),%edx
b5: 8b 45 08 mov 0x8(%ebp),%eax
b8: 01 d0 add %edx,%eax
ba: 0f b6 00 movzbl (%eax),%eax
bd: 84 c0 test %al,%al
bf: 75 ed jne ae <strlen+0xf>
;
return n;
c1: 8b 45 fc mov -0x4(%ebp),%eax
}
c4: c9 leave
c5: c3 ret
000000c6 <memset>:
void*
memset(void *dst, int c, uint n)
{
c6: 55 push %ebp
c7: 89 e5 mov %esp,%ebp
c9: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
cc: 8b 45 10 mov 0x10(%ebp),%eax
cf: 89 44 24 08 mov %eax,0x8(%esp)
d3: 8b 45 0c mov 0xc(%ebp),%eax
d6: 89 44 24 04 mov %eax,0x4(%esp)
da: 8b 45 08 mov 0x8(%ebp),%eax
dd: 89 04 24 mov %eax,(%esp)
e0: e8 26 ff ff ff call b <stosb>
return dst;
e5: 8b 45 08 mov 0x8(%ebp),%eax
}
e8: c9 leave
e9: c3 ret
000000ea <strchr>:
char*
strchr(const char *s, char c)
{
ea: 55 push %ebp
eb: 89 e5 mov %esp,%ebp
ed: 83 ec 04 sub $0x4,%esp
f0: 8b 45 0c mov 0xc(%ebp),%eax
f3: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
f6: eb 14 jmp 10c <strchr+0x22>
if(*s == c)
f8: 8b 45 08 mov 0x8(%ebp),%eax
fb: 0f b6 00 movzbl (%eax),%eax
fe: 3a 45 fc cmp -0x4(%ebp),%al
101: 75 05 jne 108 <strchr+0x1e>
return (char*)s;
103: 8b 45 08 mov 0x8(%ebp),%eax
106: eb 13 jmp 11b <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
108: 83 45 08 01 addl $0x1,0x8(%ebp)
10c: 8b 45 08 mov 0x8(%ebp),%eax
10f: 0f b6 00 movzbl (%eax),%eax
112: 84 c0 test %al,%al
114: 75 e2 jne f8 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
116: b8 00 00 00 00 mov $0x0,%eax
}
11b: c9 leave
11c: c3 ret
0000011d <gets>:
char*
gets(char *buf, int max)
{
11d: 55 push %ebp
11e: 89 e5 mov %esp,%ebp
120: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
123: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
12a: eb 4c jmp 178 <gets+0x5b>
cc = read(0, &c, 1);
12c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
133: 00
134: 8d 45 ef lea -0x11(%ebp),%eax
137: 89 44 24 04 mov %eax,0x4(%esp)
13b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
142: e8 44 01 00 00 call 28b <read>
147: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
14a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
14e: 7f 02 jg 152 <gets+0x35>
break;
150: eb 31 jmp 183 <gets+0x66>
buf[i++] = c;
152: 8b 45 f4 mov -0xc(%ebp),%eax
155: 8d 50 01 lea 0x1(%eax),%edx
158: 89 55 f4 mov %edx,-0xc(%ebp)
15b: 89 c2 mov %eax,%edx
15d: 8b 45 08 mov 0x8(%ebp),%eax
160: 01 c2 add %eax,%edx
162: 0f b6 45 ef movzbl -0x11(%ebp),%eax
166: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
168: 0f b6 45 ef movzbl -0x11(%ebp),%eax
16c: 3c 0a cmp $0xa,%al
16e: 74 13 je 183 <gets+0x66>
170: 0f b6 45 ef movzbl -0x11(%ebp),%eax
174: 3c 0d cmp $0xd,%al
176: 74 0b je 183 <gets+0x66>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
178: 8b 45 f4 mov -0xc(%ebp),%eax
17b: 83 c0 01 add $0x1,%eax
17e: 3b 45 0c cmp 0xc(%ebp),%eax
181: 7c a9 jl 12c <gets+0xf>
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
183: 8b 55 f4 mov -0xc(%ebp),%edx
186: 8b 45 08 mov 0x8(%ebp),%eax
189: 01 d0 add %edx,%eax
18b: c6 00 00 movb $0x0,(%eax)
return buf;
18e: 8b 45 08 mov 0x8(%ebp),%eax
}
191: c9 leave
192: c3 ret
00000193 <stat>:
int
stat(char *n, struct stat *st)
{
193: 55 push %ebp
194: 89 e5 mov %esp,%ebp
196: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
199: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
1a0: 00
1a1: 8b 45 08 mov 0x8(%ebp),%eax
1a4: 89 04 24 mov %eax,(%esp)
1a7: e8 07 01 00 00 call 2b3 <open>
1ac: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
1af: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
1b3: 79 07 jns 1bc <stat+0x29>
return -1;
1b5: b8 ff ff ff ff mov $0xffffffff,%eax
1ba: eb 23 jmp 1df <stat+0x4c>
r = fstat(fd, st);
1bc: 8b 45 0c mov 0xc(%ebp),%eax
1bf: 89 44 24 04 mov %eax,0x4(%esp)
1c3: 8b 45 f4 mov -0xc(%ebp),%eax
1c6: 89 04 24 mov %eax,(%esp)
1c9: e8 fd 00 00 00 call 2cb <fstat>
1ce: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
1d1: 8b 45 f4 mov -0xc(%ebp),%eax
1d4: 89 04 24 mov %eax,(%esp)
1d7: e8 bf 00 00 00 call 29b <close>
return r;
1dc: 8b 45 f0 mov -0x10(%ebp),%eax
}
1df: c9 leave
1e0: c3 ret
000001e1 <atoi>:
int
atoi(const char *s)
{
1e1: 55 push %ebp
1e2: 89 e5 mov %esp,%ebp
1e4: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
1e7: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
1ee: eb 25 jmp 215 <atoi+0x34>
n = n*10 + *s++ - '0';
1f0: 8b 55 fc mov -0x4(%ebp),%edx
1f3: 89 d0 mov %edx,%eax
1f5: c1 e0 02 shl $0x2,%eax
1f8: 01 d0 add %edx,%eax
1fa: 01 c0 add %eax,%eax
1fc: 89 c1 mov %eax,%ecx
1fe: 8b 45 08 mov 0x8(%ebp),%eax
201: 8d 50 01 lea 0x1(%eax),%edx
204: 89 55 08 mov %edx,0x8(%ebp)
207: 0f b6 00 movzbl (%eax),%eax
20a: 0f be c0 movsbl %al,%eax
20d: 01 c8 add %ecx,%eax
20f: 83 e8 30 sub $0x30,%eax
212: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
215: 8b 45 08 mov 0x8(%ebp),%eax
218: 0f b6 00 movzbl (%eax),%eax
21b: 3c 2f cmp $0x2f,%al
21d: 7e 0a jle 229 <atoi+0x48>
21f: 8b 45 08 mov 0x8(%ebp),%eax
222: 0f b6 00 movzbl (%eax),%eax
225: 3c 39 cmp $0x39,%al
227: 7e c7 jle 1f0 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
229: 8b 45 fc mov -0x4(%ebp),%eax
}
22c: c9 leave
22d: c3 ret
0000022e <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
22e: 55 push %ebp
22f: 89 e5 mov %esp,%ebp
231: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
234: 8b 45 08 mov 0x8(%ebp),%eax
237: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
23a: 8b 45 0c mov 0xc(%ebp),%eax
23d: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
240: eb 17 jmp 259 <memmove+0x2b>
*dst++ = *src++;
242: 8b 45 fc mov -0x4(%ebp),%eax
245: 8d 50 01 lea 0x1(%eax),%edx
248: 89 55 fc mov %edx,-0x4(%ebp)
24b: 8b 55 f8 mov -0x8(%ebp),%edx
24e: 8d 4a 01 lea 0x1(%edx),%ecx
251: 89 4d f8 mov %ecx,-0x8(%ebp)
254: 0f b6 12 movzbl (%edx),%edx
257: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
259: 8b 45 10 mov 0x10(%ebp),%eax
25c: 8d 50 ff lea -0x1(%eax),%edx
25f: 89 55 10 mov %edx,0x10(%ebp)
262: 85 c0 test %eax,%eax
264: 7f dc jg 242 <memmove+0x14>
*dst++ = *src++;
return vdst;
266: 8b 45 08 mov 0x8(%ebp),%eax
}
269: c9 leave
26a: c3 ret
0000026b <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
26b: b8 01 00 00 00 mov $0x1,%eax
270: cd 40 int $0x40
272: c3 ret
00000273 <exit>:
SYSCALL(exit)
273: b8 02 00 00 00 mov $0x2,%eax
278: cd 40 int $0x40
27a: c3 ret
0000027b <wait>:
SYSCALL(wait)
27b: b8 03 00 00 00 mov $0x3,%eax
280: cd 40 int $0x40
282: c3 ret
00000283 <pipe>:
SYSCALL(pipe)
283: b8 04 00 00 00 mov $0x4,%eax
288: cd 40 int $0x40
28a: c3 ret
0000028b <read>:
SYSCALL(read)
28b: b8 05 00 00 00 mov $0x5,%eax
290: cd 40 int $0x40
292: c3 ret
00000293 <write>:
SYSCALL(write)
293: b8 10 00 00 00 mov $0x10,%eax
298: cd 40 int $0x40
29a: c3 ret
0000029b <close>:
SYSCALL(close)
29b: b8 15 00 00 00 mov $0x15,%eax
2a0: cd 40 int $0x40
2a2: c3 ret
000002a3 <kill>:
SYSCALL(kill)
2a3: b8 06 00 00 00 mov $0x6,%eax
2a8: cd 40 int $0x40
2aa: c3 ret
000002ab <exec>:
SYSCALL(exec)
2ab: b8 07 00 00 00 mov $0x7,%eax
2b0: cd 40 int $0x40
2b2: c3 ret
000002b3 <open>:
SYSCALL(open)
2b3: b8 0f 00 00 00 mov $0xf,%eax
2b8: cd 40 int $0x40
2ba: c3 ret
000002bb <mknod>:
SYSCALL(mknod)
2bb: b8 11 00 00 00 mov $0x11,%eax
2c0: cd 40 int $0x40
2c2: c3 ret
000002c3 <unlink>:
SYSCALL(unlink)
2c3: b8 12 00 00 00 mov $0x12,%eax
2c8: cd 40 int $0x40
2ca: c3 ret
000002cb <fstat>:
SYSCALL(fstat)
2cb: b8 08 00 00 00 mov $0x8,%eax
2d0: cd 40 int $0x40
2d2: c3 ret
000002d3 <link>:
SYSCALL(link)
2d3: b8 13 00 00 00 mov $0x13,%eax
2d8: cd 40 int $0x40
2da: c3 ret
000002db <mkdir>:
SYSCALL(mkdir)
2db: b8 14 00 00 00 mov $0x14,%eax
2e0: cd 40 int $0x40
2e2: c3 ret
000002e3 <chdir>:
SYSCALL(chdir)
2e3: b8 09 00 00 00 mov $0x9,%eax
2e8: cd 40 int $0x40
2ea: c3 ret
000002eb <dup>:
SYSCALL(dup)
2eb: b8 0a 00 00 00 mov $0xa,%eax
2f0: cd 40 int $0x40
2f2: c3 ret
000002f3 <getpid>:
SYSCALL(getpid)
2f3: b8 0b 00 00 00 mov $0xb,%eax
2f8: cd 40 int $0x40
2fa: c3 ret
000002fb <sbrk>:
SYSCALL(sbrk)
2fb: b8 0c 00 00 00 mov $0xc,%eax
300: cd 40 int $0x40
302: c3 ret
00000303 <sleep>:
SYSCALL(sleep)
303: b8 0d 00 00 00 mov $0xd,%eax
308: cd 40 int $0x40
30a: c3 ret
0000030b <uptime>:
SYSCALL(uptime)
30b: b8 0e 00 00 00 mov $0xe,%eax
310: cd 40 int $0x40
312: c3 ret
00000313 <date>:
SYSCALL(date)
313: b8 16 00 00 00 mov $0x16,%eax
318: cd 40 int $0x40
31a: c3 ret
0000031b <timem>:
SYSCALL(timem)
31b: b8 17 00 00 00 mov $0x17,%eax
320: cd 40 int $0x40
322: c3 ret
00000323 <getuid>:
SYSCALL(getuid)
323: b8 18 00 00 00 mov $0x18,%eax
328: cd 40 int $0x40
32a: c3 ret
0000032b <getgid>:
SYSCALL(getgid)
32b: b8 19 00 00 00 mov $0x19,%eax
330: cd 40 int $0x40
332: c3 ret
00000333 <getppid>:
SYSCALL(getppid)
333: b8 1a 00 00 00 mov $0x1a,%eax
338: cd 40 int $0x40
33a: c3 ret
0000033b <setuid>:
SYSCALL(setuid)
33b: b8 1b 00 00 00 mov $0x1b,%eax
340: cd 40 int $0x40
342: c3 ret
00000343 <setgid>:
SYSCALL(setgid)
343: b8 1c 00 00 00 mov $0x1c,%eax
348: cd 40 int $0x40
34a: c3 ret
0000034b <getprocs>:
SYSCALL(getprocs)
34b: b8 1d 00 00 00 mov $0x1d,%eax
350: cd 40 int $0x40
352: c3 ret
00000353 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
353: 55 push %ebp
354: 89 e5 mov %esp,%ebp
356: 83 ec 18 sub $0x18,%esp
359: 8b 45 0c mov 0xc(%ebp),%eax
35c: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
35f: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
366: 00
367: 8d 45 f4 lea -0xc(%ebp),%eax
36a: 89 44 24 04 mov %eax,0x4(%esp)
36e: 8b 45 08 mov 0x8(%ebp),%eax
371: 89 04 24 mov %eax,(%esp)
374: e8 1a ff ff ff call 293 <write>
}
379: c9 leave
37a: c3 ret
0000037b <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
37b: 55 push %ebp
37c: 89 e5 mov %esp,%ebp
37e: 56 push %esi
37f: 53 push %ebx
380: 83 ec 30 sub $0x30,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
383: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
38a: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
38e: 74 17 je 3a7 <printint+0x2c>
390: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
394: 79 11 jns 3a7 <printint+0x2c>
neg = 1;
396: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
39d: 8b 45 0c mov 0xc(%ebp),%eax
3a0: f7 d8 neg %eax
3a2: 89 45 ec mov %eax,-0x14(%ebp)
3a5: eb 06 jmp 3ad <printint+0x32>
} else {
x = xx;
3a7: 8b 45 0c mov 0xc(%ebp),%eax
3aa: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
3ad: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
3b4: 8b 4d f4 mov -0xc(%ebp),%ecx
3b7: 8d 41 01 lea 0x1(%ecx),%eax
3ba: 89 45 f4 mov %eax,-0xc(%ebp)
3bd: 8b 5d 10 mov 0x10(%ebp),%ebx
3c0: 8b 45 ec mov -0x14(%ebp),%eax
3c3: ba 00 00 00 00 mov $0x0,%edx
3c8: f7 f3 div %ebx
3ca: 89 d0 mov %edx,%eax
3cc: 0f b6 80 4c 0a 00 00 movzbl 0xa4c(%eax),%eax
3d3: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
3d7: 8b 75 10 mov 0x10(%ebp),%esi
3da: 8b 45 ec mov -0x14(%ebp),%eax
3dd: ba 00 00 00 00 mov $0x0,%edx
3e2: f7 f6 div %esi
3e4: 89 45 ec mov %eax,-0x14(%ebp)
3e7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
3eb: 75 c7 jne 3b4 <printint+0x39>
if(neg)
3ed: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
3f1: 74 10 je 403 <printint+0x88>
buf[i++] = '-';
3f3: 8b 45 f4 mov -0xc(%ebp),%eax
3f6: 8d 50 01 lea 0x1(%eax),%edx
3f9: 89 55 f4 mov %edx,-0xc(%ebp)
3fc: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
401: eb 1f jmp 422 <printint+0xa7>
403: eb 1d jmp 422 <printint+0xa7>
putc(fd, buf[i]);
405: 8d 55 dc lea -0x24(%ebp),%edx
408: 8b 45 f4 mov -0xc(%ebp),%eax
40b: 01 d0 add %edx,%eax
40d: 0f b6 00 movzbl (%eax),%eax
410: 0f be c0 movsbl %al,%eax
413: 89 44 24 04 mov %eax,0x4(%esp)
417: 8b 45 08 mov 0x8(%ebp),%eax
41a: 89 04 24 mov %eax,(%esp)
41d: e8 31 ff ff ff call 353 <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
422: 83 6d f4 01 subl $0x1,-0xc(%ebp)
426: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
42a: 79 d9 jns 405 <printint+0x8a>
putc(fd, buf[i]);
}
42c: 83 c4 30 add $0x30,%esp
42f: 5b pop %ebx
430: 5e pop %esi
431: 5d pop %ebp
432: c3 ret
00000433 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
433: 55 push %ebp
434: 89 e5 mov %esp,%ebp
436: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
439: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
440: 8d 45 0c lea 0xc(%ebp),%eax
443: 83 c0 04 add $0x4,%eax
446: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
449: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
450: e9 7c 01 00 00 jmp 5d1 <printf+0x19e>
c = fmt[i] & 0xff;
455: 8b 55 0c mov 0xc(%ebp),%edx
458: 8b 45 f0 mov -0x10(%ebp),%eax
45b: 01 d0 add %edx,%eax
45d: 0f b6 00 movzbl (%eax),%eax
460: 0f be c0 movsbl %al,%eax
463: 25 ff 00 00 00 and $0xff,%eax
468: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
46b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
46f: 75 2c jne 49d <printf+0x6a>
if(c == '%'){
471: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
475: 75 0c jne 483 <printf+0x50>
state = '%';
477: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
47e: e9 4a 01 00 00 jmp 5cd <printf+0x19a>
} else {
putc(fd, c);
483: 8b 45 e4 mov -0x1c(%ebp),%eax
486: 0f be c0 movsbl %al,%eax
489: 89 44 24 04 mov %eax,0x4(%esp)
48d: 8b 45 08 mov 0x8(%ebp),%eax
490: 89 04 24 mov %eax,(%esp)
493: e8 bb fe ff ff call 353 <putc>
498: e9 30 01 00 00 jmp 5cd <printf+0x19a>
}
} else if(state == '%'){
49d: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
4a1: 0f 85 26 01 00 00 jne 5cd <printf+0x19a>
if(c == 'd'){
4a7: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
4ab: 75 2d jne 4da <printf+0xa7>
printint(fd, *ap, 10, 1);
4ad: 8b 45 e8 mov -0x18(%ebp),%eax
4b0: 8b 00 mov (%eax),%eax
4b2: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
4b9: 00
4ba: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
4c1: 00
4c2: 89 44 24 04 mov %eax,0x4(%esp)
4c6: 8b 45 08 mov 0x8(%ebp),%eax
4c9: 89 04 24 mov %eax,(%esp)
4cc: e8 aa fe ff ff call 37b <printint>
ap++;
4d1: 83 45 e8 04 addl $0x4,-0x18(%ebp)
4d5: e9 ec 00 00 00 jmp 5c6 <printf+0x193>
} else if(c == 'x' || c == 'p'){
4da: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
4de: 74 06 je 4e6 <printf+0xb3>
4e0: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
4e4: 75 2d jne 513 <printf+0xe0>
printint(fd, *ap, 16, 0);
4e6: 8b 45 e8 mov -0x18(%ebp),%eax
4e9: 8b 00 mov (%eax),%eax
4eb: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
4f2: 00
4f3: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
4fa: 00
4fb: 89 44 24 04 mov %eax,0x4(%esp)
4ff: 8b 45 08 mov 0x8(%ebp),%eax
502: 89 04 24 mov %eax,(%esp)
505: e8 71 fe ff ff call 37b <printint>
ap++;
50a: 83 45 e8 04 addl $0x4,-0x18(%ebp)
50e: e9 b3 00 00 00 jmp 5c6 <printf+0x193>
} else if(c == 's'){
513: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
517: 75 45 jne 55e <printf+0x12b>
s = (char*)*ap;
519: 8b 45 e8 mov -0x18(%ebp),%eax
51c: 8b 00 mov (%eax),%eax
51e: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
521: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
525: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
529: 75 09 jne 534 <printf+0x101>
s = "(null)";
52b: c7 45 f4 ff 07 00 00 movl $0x7ff,-0xc(%ebp)
while(*s != 0){
532: eb 1e jmp 552 <printf+0x11f>
534: eb 1c jmp 552 <printf+0x11f>
putc(fd, *s);
536: 8b 45 f4 mov -0xc(%ebp),%eax
539: 0f b6 00 movzbl (%eax),%eax
53c: 0f be c0 movsbl %al,%eax
53f: 89 44 24 04 mov %eax,0x4(%esp)
543: 8b 45 08 mov 0x8(%ebp),%eax
546: 89 04 24 mov %eax,(%esp)
549: e8 05 fe ff ff call 353 <putc>
s++;
54e: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
552: 8b 45 f4 mov -0xc(%ebp),%eax
555: 0f b6 00 movzbl (%eax),%eax
558: 84 c0 test %al,%al
55a: 75 da jne 536 <printf+0x103>
55c: eb 68 jmp 5c6 <printf+0x193>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
55e: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
562: 75 1d jne 581 <printf+0x14e>
putc(fd, *ap);
564: 8b 45 e8 mov -0x18(%ebp),%eax
567: 8b 00 mov (%eax),%eax
569: 0f be c0 movsbl %al,%eax
56c: 89 44 24 04 mov %eax,0x4(%esp)
570: 8b 45 08 mov 0x8(%ebp),%eax
573: 89 04 24 mov %eax,(%esp)
576: e8 d8 fd ff ff call 353 <putc>
ap++;
57b: 83 45 e8 04 addl $0x4,-0x18(%ebp)
57f: eb 45 jmp 5c6 <printf+0x193>
} else if(c == '%'){
581: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
585: 75 17 jne 59e <printf+0x16b>
putc(fd, c);
587: 8b 45 e4 mov -0x1c(%ebp),%eax
58a: 0f be c0 movsbl %al,%eax
58d: 89 44 24 04 mov %eax,0x4(%esp)
591: 8b 45 08 mov 0x8(%ebp),%eax
594: 89 04 24 mov %eax,(%esp)
597: e8 b7 fd ff ff call 353 <putc>
59c: eb 28 jmp 5c6 <printf+0x193>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
59e: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
5a5: 00
5a6: 8b 45 08 mov 0x8(%ebp),%eax
5a9: 89 04 24 mov %eax,(%esp)
5ac: e8 a2 fd ff ff call 353 <putc>
putc(fd, c);
5b1: 8b 45 e4 mov -0x1c(%ebp),%eax
5b4: 0f be c0 movsbl %al,%eax
5b7: 89 44 24 04 mov %eax,0x4(%esp)
5bb: 8b 45 08 mov 0x8(%ebp),%eax
5be: 89 04 24 mov %eax,(%esp)
5c1: e8 8d fd ff ff call 353 <putc>
}
state = 0;
5c6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
5cd: 83 45 f0 01 addl $0x1,-0x10(%ebp)
5d1: 8b 55 0c mov 0xc(%ebp),%edx
5d4: 8b 45 f0 mov -0x10(%ebp),%eax
5d7: 01 d0 add %edx,%eax
5d9: 0f b6 00 movzbl (%eax),%eax
5dc: 84 c0 test %al,%al
5de: 0f 85 71 fe ff ff jne 455 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
5e4: c9 leave
5e5: c3 ret
000005e6 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
5e6: 55 push %ebp
5e7: 89 e5 mov %esp,%ebp
5e9: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
5ec: 8b 45 08 mov 0x8(%ebp),%eax
5ef: 83 e8 08 sub $0x8,%eax
5f2: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5f5: a1 68 0a 00 00 mov 0xa68,%eax
5fa: 89 45 fc mov %eax,-0x4(%ebp)
5fd: eb 24 jmp 623 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5ff: 8b 45 fc mov -0x4(%ebp),%eax
602: 8b 00 mov (%eax),%eax
604: 3b 45 fc cmp -0x4(%ebp),%eax
607: 77 12 ja 61b <free+0x35>
609: 8b 45 f8 mov -0x8(%ebp),%eax
60c: 3b 45 fc cmp -0x4(%ebp),%eax
60f: 77 24 ja 635 <free+0x4f>
611: 8b 45 fc mov -0x4(%ebp),%eax
614: 8b 00 mov (%eax),%eax
616: 3b 45 f8 cmp -0x8(%ebp),%eax
619: 77 1a ja 635 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
61b: 8b 45 fc mov -0x4(%ebp),%eax
61e: 8b 00 mov (%eax),%eax
620: 89 45 fc mov %eax,-0x4(%ebp)
623: 8b 45 f8 mov -0x8(%ebp),%eax
626: 3b 45 fc cmp -0x4(%ebp),%eax
629: 76 d4 jbe 5ff <free+0x19>
62b: 8b 45 fc mov -0x4(%ebp),%eax
62e: 8b 00 mov (%eax),%eax
630: 3b 45 f8 cmp -0x8(%ebp),%eax
633: 76 ca jbe 5ff <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
635: 8b 45 f8 mov -0x8(%ebp),%eax
638: 8b 40 04 mov 0x4(%eax),%eax
63b: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
642: 8b 45 f8 mov -0x8(%ebp),%eax
645: 01 c2 add %eax,%edx
647: 8b 45 fc mov -0x4(%ebp),%eax
64a: 8b 00 mov (%eax),%eax
64c: 39 c2 cmp %eax,%edx
64e: 75 24 jne 674 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
650: 8b 45 f8 mov -0x8(%ebp),%eax
653: 8b 50 04 mov 0x4(%eax),%edx
656: 8b 45 fc mov -0x4(%ebp),%eax
659: 8b 00 mov (%eax),%eax
65b: 8b 40 04 mov 0x4(%eax),%eax
65e: 01 c2 add %eax,%edx
660: 8b 45 f8 mov -0x8(%ebp),%eax
663: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
666: 8b 45 fc mov -0x4(%ebp),%eax
669: 8b 00 mov (%eax),%eax
66b: 8b 10 mov (%eax),%edx
66d: 8b 45 f8 mov -0x8(%ebp),%eax
670: 89 10 mov %edx,(%eax)
672: eb 0a jmp 67e <free+0x98>
} else
bp->s.ptr = p->s.ptr;
674: 8b 45 fc mov -0x4(%ebp),%eax
677: 8b 10 mov (%eax),%edx
679: 8b 45 f8 mov -0x8(%ebp),%eax
67c: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
67e: 8b 45 fc mov -0x4(%ebp),%eax
681: 8b 40 04 mov 0x4(%eax),%eax
684: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
68b: 8b 45 fc mov -0x4(%ebp),%eax
68e: 01 d0 add %edx,%eax
690: 3b 45 f8 cmp -0x8(%ebp),%eax
693: 75 20 jne 6b5 <free+0xcf>
p->s.size += bp->s.size;
695: 8b 45 fc mov -0x4(%ebp),%eax
698: 8b 50 04 mov 0x4(%eax),%edx
69b: 8b 45 f8 mov -0x8(%ebp),%eax
69e: 8b 40 04 mov 0x4(%eax),%eax
6a1: 01 c2 add %eax,%edx
6a3: 8b 45 fc mov -0x4(%ebp),%eax
6a6: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
6a9: 8b 45 f8 mov -0x8(%ebp),%eax
6ac: 8b 10 mov (%eax),%edx
6ae: 8b 45 fc mov -0x4(%ebp),%eax
6b1: 89 10 mov %edx,(%eax)
6b3: eb 08 jmp 6bd <free+0xd7>
} else
p->s.ptr = bp;
6b5: 8b 45 fc mov -0x4(%ebp),%eax
6b8: 8b 55 f8 mov -0x8(%ebp),%edx
6bb: 89 10 mov %edx,(%eax)
freep = p;
6bd: 8b 45 fc mov -0x4(%ebp),%eax
6c0: a3 68 0a 00 00 mov %eax,0xa68
}
6c5: c9 leave
6c6: c3 ret
000006c7 <morecore>:
static Header*
morecore(uint nu)
{
6c7: 55 push %ebp
6c8: 89 e5 mov %esp,%ebp
6ca: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
6cd: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
6d4: 77 07 ja 6dd <morecore+0x16>
nu = 4096;
6d6: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
6dd: 8b 45 08 mov 0x8(%ebp),%eax
6e0: c1 e0 03 shl $0x3,%eax
6e3: 89 04 24 mov %eax,(%esp)
6e6: e8 10 fc ff ff call 2fb <sbrk>
6eb: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
6ee: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
6f2: 75 07 jne 6fb <morecore+0x34>
return 0;
6f4: b8 00 00 00 00 mov $0x0,%eax
6f9: eb 22 jmp 71d <morecore+0x56>
hp = (Header*)p;
6fb: 8b 45 f4 mov -0xc(%ebp),%eax
6fe: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
701: 8b 45 f0 mov -0x10(%ebp),%eax
704: 8b 55 08 mov 0x8(%ebp),%edx
707: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
70a: 8b 45 f0 mov -0x10(%ebp),%eax
70d: 83 c0 08 add $0x8,%eax
710: 89 04 24 mov %eax,(%esp)
713: e8 ce fe ff ff call 5e6 <free>
return freep;
718: a1 68 0a 00 00 mov 0xa68,%eax
}
71d: c9 leave
71e: c3 ret
0000071f <malloc>:
void*
malloc(uint nbytes)
{
71f: 55 push %ebp
720: 89 e5 mov %esp,%ebp
722: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
725: 8b 45 08 mov 0x8(%ebp),%eax
728: 83 c0 07 add $0x7,%eax
72b: c1 e8 03 shr $0x3,%eax
72e: 83 c0 01 add $0x1,%eax
731: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
734: a1 68 0a 00 00 mov 0xa68,%eax
739: 89 45 f0 mov %eax,-0x10(%ebp)
73c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
740: 75 23 jne 765 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
742: c7 45 f0 60 0a 00 00 movl $0xa60,-0x10(%ebp)
749: 8b 45 f0 mov -0x10(%ebp),%eax
74c: a3 68 0a 00 00 mov %eax,0xa68
751: a1 68 0a 00 00 mov 0xa68,%eax
756: a3 60 0a 00 00 mov %eax,0xa60
base.s.size = 0;
75b: c7 05 64 0a 00 00 00 movl $0x0,0xa64
762: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
765: 8b 45 f0 mov -0x10(%ebp),%eax
768: 8b 00 mov (%eax),%eax
76a: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
76d: 8b 45 f4 mov -0xc(%ebp),%eax
770: 8b 40 04 mov 0x4(%eax),%eax
773: 3b 45 ec cmp -0x14(%ebp),%eax
776: 72 4d jb 7c5 <malloc+0xa6>
if(p->s.size == nunits)
778: 8b 45 f4 mov -0xc(%ebp),%eax
77b: 8b 40 04 mov 0x4(%eax),%eax
77e: 3b 45 ec cmp -0x14(%ebp),%eax
781: 75 0c jne 78f <malloc+0x70>
prevp->s.ptr = p->s.ptr;
783: 8b 45 f4 mov -0xc(%ebp),%eax
786: 8b 10 mov (%eax),%edx
788: 8b 45 f0 mov -0x10(%ebp),%eax
78b: 89 10 mov %edx,(%eax)
78d: eb 26 jmp 7b5 <malloc+0x96>
else {
p->s.size -= nunits;
78f: 8b 45 f4 mov -0xc(%ebp),%eax
792: 8b 40 04 mov 0x4(%eax),%eax
795: 2b 45 ec sub -0x14(%ebp),%eax
798: 89 c2 mov %eax,%edx
79a: 8b 45 f4 mov -0xc(%ebp),%eax
79d: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
7a0: 8b 45 f4 mov -0xc(%ebp),%eax
7a3: 8b 40 04 mov 0x4(%eax),%eax
7a6: c1 e0 03 shl $0x3,%eax
7a9: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
7ac: 8b 45 f4 mov -0xc(%ebp),%eax
7af: 8b 55 ec mov -0x14(%ebp),%edx
7b2: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
7b5: 8b 45 f0 mov -0x10(%ebp),%eax
7b8: a3 68 0a 00 00 mov %eax,0xa68
return (void*)(p + 1);
7bd: 8b 45 f4 mov -0xc(%ebp),%eax
7c0: 83 c0 08 add $0x8,%eax
7c3: eb 38 jmp 7fd <malloc+0xde>
}
if(p == freep)
7c5: a1 68 0a 00 00 mov 0xa68,%eax
7ca: 39 45 f4 cmp %eax,-0xc(%ebp)
7cd: 75 1b jne 7ea <malloc+0xcb>
if((p = morecore(nunits)) == 0)
7cf: 8b 45 ec mov -0x14(%ebp),%eax
7d2: 89 04 24 mov %eax,(%esp)
7d5: e8 ed fe ff ff call 6c7 <morecore>
7da: 89 45 f4 mov %eax,-0xc(%ebp)
7dd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
7e1: 75 07 jne 7ea <malloc+0xcb>
return 0;
7e3: b8 00 00 00 00 mov $0x0,%eax
7e8: eb 13 jmp 7fd <malloc+0xde>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7ea: 8b 45 f4 mov -0xc(%ebp),%eax
7ed: 89 45 f0 mov %eax,-0x10(%ebp)
7f0: 8b 45 f4 mov -0xc(%ebp),%eax
7f3: 8b 00 mov (%eax),%eax
7f5: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
7f8: e9 70 ff ff ff jmp 76d <malloc+0x4e>
}
7fd: c9 leave
7fe: c3 ret
| 33.833613
| 60
| 0.425364
|
7a59fea12ae9d33b0cb5cd196b3b8ca887373c4c
| 435
|
asm
|
Assembly
|
oeis/288/A288838.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/288/A288838.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/288/A288838.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A288838: a(n) = (1/4!)*3^(n+2)*(n+7)*(n+2)*(n+1)*(n).
; Submitted by Jamie Morken(w3)
; 54,729,6075,40095,229635,1194102,5786802,26572050,116917020,496897335,2051893701,8269753401,32643763425,126557359740,482984209620,1817776934388,6757388169138,24843338857125,90429753439935,326206114635555,1167092987918319,4144371018322194
mov $1,$0
add $0,2
bin $0,2
add $1,2
seq $1,80420 ; a(n) = (n+1)*(n+6)*3^n/6.
mul $0,$1
div $0,6
mul $0,9
| 33.461538
| 239
| 0.721839
|
b6a064bc38ac132a631e86927c1aa9f82e2c7e70
| 4,929
|
asm
|
Assembly
|
lib/crt0.asm
|
cppchriscpp/ld38
|
fe2e11a2f1a1098c716289b444c867a8113c39ea
|
[
"MIT"
] | 4
|
2018-08-18T15:31:04.000Z
|
2021-03-28T22:21:15.000Z
|
lib/crt0.asm
|
cppchriscpp/missing-lands
|
fe2e11a2f1a1098c716289b444c867a8113c39ea
|
[
"MIT"
] | null | null | null |
lib/crt0.asm
|
cppchriscpp/missing-lands
|
fe2e11a2f1a1098c716289b444c867a8113c39ea
|
[
"MIT"
] | null | null | null |
; Startup code for cc65 and Shiru's NES library
; based on code by Groepaz/Hitmen <groepaz@gmx.net>, Ullrich von Bassewitz <uz@cc65.org>
FT_DPCM_OFF = $c000 ;$c000..$ffc0, 64-byte steps
FT_SFX_STREAMS = 4 ;number of sound effects played at once, 1..4
.define FT_DPCM_ENABLE 1 ;undefine to exclude all DMC code
.define FT_SFX_ENABLE 1 ;undefine to exclude all sound effects code
.include "lib/mmc1_macros.asm"
.export _exit,__STARTUP__:absolute=1
.export _FRAME_COUNTER
.import initlib,push0,popa,popax,_main,zerobss,copydata
; Linker generated symbols
.import __RAM_START__ ,__RAM_SIZE__
.import __ROM0_START__ ,__ROM0_SIZE__
.import __STARTUP_LOAD__,__STARTUP_RUN__,__STARTUP_SIZE__
.import __CODE_LOAD__ ,__CODE_RUN__ ,__CODE_SIZE__
.import __RODATA_LOAD__ ,__RODATA_RUN__ ,__RODATA_SIZE__
.import NES_MAPPER,NES_PRG_BANKS,NES_CHR_BANKS,NES_MIRRORING
.include "tools/cc65/asminc/zeropage.inc"
FT_BASE_ADR =$0100 ;page in RAM, should be $xx00
.define FT_THREAD 1 ;undefine if you call sound effects in the same thread as sound update
.define FT_PAL_SUPPORT 1 ;undefine to exclude PAL support
.define FT_NTSC_SUPPORT 1 ;undefine to exclude NTSC support
PPU_CTRL =$2000
PPU_MASK =$2001
PPU_STATUS =$2002
PPU_OAM_ADDR=$2003
PPU_OAM_DATA=$2004
PPU_SCROLL =$2005
PPU_ADDR =$2006
PPU_DATA =$2007
PPU_OAM_DMA =$4014
PPU_FRAMECNT=$4017
DMC_FREQ =$4010
CTRL_PORT1 =$4016
CTRL_PORT2 =$4017
OAM_BUF =$0200
PAL_BUF =$01c0
.segment "ZEROPAGE"
NTSC_MODE: .res 1
_FRAME_COUNTER:
FRAME_CNT1: .res 1
FRAME_CNT2: .res 1
VRAM_UPDATE: .res 1
NAME_UPD_ADR: .res 2
NAME_UPD_ENABLE: .res 1
PAL_UPDATE: .res 1
PAL_BG_PTR: .res 2
PAL_SPR_PTR: .res 2
SCROLL_X: .res 1
SCROLL_Y: .res 1
SCROLL_X1: .res 1
SCROLL_Y1: .res 1
PAD_STATE: .res 2 ;one byte per controller
PAD_STATEP: .res 2
PAD_STATET: .res 2
PPU_CTRL_VAR: .res 1
PPU_CTRL_VAR1: .res 1
PPU_MASK_VAR: .res 1
RAND_SEED: .res 2
BP_BANK: .res 1
BP_BANK_TEMP: .res 1
FT_TEMP: .res 3
TEMP: .res 11
PAD_BUF =TEMP+1
PTR =TEMP ;word
LEN =TEMP+2 ;word
NEXTSPR =TEMP+4
SCRX =TEMP+5
SCRY =TEMP+6
SRC =TEMP+7 ;word
DST =TEMP+9 ;word
RLE_LOW =TEMP
RLE_HIGH =TEMP+1
RLE_TAG =TEMP+2
RLE_BYTE =TEMP+3
.segment "HEADER"
.byte "NES",$1a
.byte <NES_PRG_BANKS
.byte <NES_CHR_BANKS
.byte $12
.byte 0
.res 8,0
.segment "STARTUP"
start:
_exit:
sei
ldx #$ff
txs
inx
stx PPU_MASK
stx DMC_FREQ
stx PPU_CTRL ;no NMI
initPPU:
bit PPU_STATUS
@1:
bit PPU_STATUS
bpl @1
@2:
bit PPU_STATUS
bpl @2
clearPalette:
lda #$3f
sta PPU_ADDR
stx PPU_ADDR
lda #$0f
ldx #$20
@1:
sta PPU_DATA
dex
bne @1
clearVRAM:
txa
ldy #$20
sty PPU_ADDR
sta PPU_ADDR
ldy #$10
@1:
sta PPU_DATA
inx
bne @1
dey
bne @1
clearRAM:
txa
@1:
sta $000,x
sta $100,x
sta $200,x
sta $300,x
sta $400,x
sta $500,x
sta $600,x
sta $700,x
inx
bne @1
lda #4
jsr _pal_bright
jsr _pal_clear
jsr _oam_clear
jsr zerobss
jsr copydata
lda #<(__RAM_START__+__RAM_SIZE__)
sta sp
lda #>(__RAM_START__+__RAM_SIZE__)
sta sp+1 ; Set argument stack ptr
jsr initlib
lda #%10000000
sta <PPU_CTRL_VAR
sta PPU_CTRL ;enable NMI
lda #%00000110
sta <PPU_MASK_VAR
waitSync3:
lda <FRAME_CNT1
@1:
cmp <FRAME_CNT1
beq @1
detectNTSC:
ldx #52 ;blargg's code
ldy #24
@1:
dex
bne @1
dey
bne @1
lda PPU_STATUS
and #$80
sta <NTSC_MODE
jsr _ppu_off
lda #0
ldx #0
jsr _set_vram_update
ldx #<music_data
ldy #>music_data
lda <NTSC_MODE
jsr FamiToneInit
.if(FT_SFX_ENABLE)
ldx #<sounds_data
ldy #>sounds_data
jsr FamiToneSfxInit
.endif
lda #$fd
sta <RAND_SEED
sta <RAND_SEED+1
lda #0
sta PPU_SCROLL
sta PPU_SCROLL
lda #%11111
mmc1_register_write MMC1_CTRL
lda #0
mmc1_register_write MMC1_PRG
mmc1_register_write MMC1_CHR0
jmp _main ;no parameters
.include "lib/neslib.asm"
.include "lib/boilerplate.asm"
.include "graphics/palettes.asm"
.include "levels/all.asm"
.segment "RODATA"
music_data:
.include "sound/music.s"
.if(FT_SFX_ENABLE)
sounds_data:
.include "sound/sfx.s"
.endif
.segment "SAMPLES"
;.incbin "music_dpcm.bin"
.segment "CHR_0"
.incbin "graphics/ascii.chr"
.segment "CHR_1"
.incbin "graphics/main.chr"
; MMC1 needs a reset stub in every bank that will put us into a known state. This defines it for all banks.
.repeat $0f, I
resetstub_in .concat("STUB_", .sprintf("%02X", I))
.endrepeat
resetstub_in "STUB_PRG"
; Throw a single jmp to reset in every bank other than the main PRG bank. This accomplishes 2 things:
; 1) Puts something in the bank, so we avoid warnings
; 2) If we somehow end up here by accident, we'll reset correctly.
.macro first_byte_reset_in segname
.segment segname
jmp start
.endmacro
.repeat $0f, I
first_byte_reset_in .concat("ROM_", .sprintf("%02X", I))
.endrepeat
| 17.355634
| 107
| 0.70562
|
191a2338b7779d3ea8e7fb2d8fc0eac5d7019299
| 791
|
asm
|
Assembly
|
emulator/test.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
emulator/test.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
emulator/test.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
; ******************************************************************************************************************
; ******************************************************************************************************************
; ******************************************************************************************************************
;
; Machine Language Monitor
;
; ******************************************************************************************************************
; ******************************************************************************************************************
; ******************************************************************************************************************
cpu sc/mp
org 0x0000
nop
nop
nop
| 43.944444
| 116
| 0.059418
|
749860430f716453ee86ef16fa83bba4009846f1
| 10,802
|
asm
|
Assembly
|
libsrc/stdio/ts2068/fputc_cons.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
libsrc/stdio/ts2068/fputc_cons.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
libsrc/stdio/ts2068/fputc_cons.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
;
; Spectrum C Library - TS2068 version
;
; Print character to the screen in either 32/64 col mode
;
; We will corrupt any register
;
; Scrolling is achieved by calling ROM routine $939
;
; We print over 24 lines at 64 columns
;
; djm 3/3/2000
;
;
; $Id: fputc_cons.asm,v 1.7 2012/05/04 09:06:57 stefano Exp $
;
XLIB fputc_cons
XREF call_rom3
LIB zx_rowtab
;
; Entry: a= char to print
;
.fputc_cons
in a,(255)
ld hl,hrgmode
ld (hl),0
and 7
cp 6
jr nz,normal
in a,(255)
ld (hrgmode_save),a
dec (hl)
ld hl,print32 ; with the 512 dots (64 cols) mode we print in 32 column mode..
ld (print1+1),hl
xor a ; .. with column increment of a single byte
ld (left2),a
ld (right2),a
.normal
ld hl,2
add hl,sp
ld a,(hl)
ex af,af'
ld a,(flags)
and a
jp z,putit_out1 ;no parameters pending
; Set up so dump into params so first param is at highest posn
ld l,a
ld h,0
ld de,params-1
add hl,de
dec a
ld (flags),a
ex af,af'
ld (hl),a
ex af,af'
and a
ret nz
ld hl,(flagrout)
jp (hl)
.putit_out1
ex af,af'
bit 7,a
jr z,putit_out2
; deal with UDGs here
sub 128
ld l,a
ld h,0
add hl,hl
add hl,hl
add hl,hl
.udgaddr ld de,65368
add hl,de
jp print32_entry
.putit_out2
cp 32
.print1
jp nc,print64
; Control characters
and 31
add a,a ;x2
ld l,a
ld h,0
ld de,code_table
add hl,de
ld e,(hl)
inc hl
ld d,(hl)
ld hl,(chrloc) ;most of them will need the position
push de
ret
;Normal print routine...
;Exit with carry set if OK..
.print64
ld l,a
ld h,0
add hl,hl
add hl,hl
add hl,hl
ld de,font-256
add hl,de
exx
;Get screen address in hl from
;64 column position in bc
ld bc,(chrloc)
srl c
ex af,af'
ld a,b
and 248
add a,64
ld h,a
ld a,b
and 7
rrca
rrca
rrca
add a,c
ld l,a
ex af,af'
ld a,@11110000
jr c,gotpos
ld a,@00001111
.gotpos ld c,a
exx
cpl
ld c,a
;c=char mask, hl=char addr
;c'=scr mask, hl'=scr addr
ld b,8
.char1 ld a,(hl)
.invers1 defb 0
and c
inc hl
exx ; screen
ld b,a
ld a,(hl)
and c
or b
ld (hl),a
inc h
exx
djnz char1
exx
ld a,h
dec a
rrca
rrca
rrca
and 3
or 88
ld h,a
ld a,(attr)
ld (hl),a
.cbak ld hl,(chrloc)
inc l
.posncheck
bit 6,l
jr z,char4
.cbak1 ld l,0
inc h
ld a,h
cp 24
jr nz,char4
call scrollup
ld hl,23*256
.char4 ld (chrloc),hl
ret
; 32 column print routine..quick 'n' dirty..we take
; x posn and divide by two to get our real position
; If HRG it works in 64 columns mode.
.print32
sub 32 ;subtract 32 to get space = 0
ld l,a
ld h,0
add hl,hl
add hl,hl
add hl,hl
.fontaddr
ld bc,15616
add hl,bc ; HL now points to the current char shape
.print32_entry
ld bc,(chrloc)
srl c
ex af,af'
ld a,b
and @11111000
add a,$40
ld d,a
ld a,b
and 7
rrca
rrca
rrca
add a,c
ld e,a
ex af,af'
jr nc,cry
ld a,(hrgmode)
and $20
add d
ld d,a
.cry
; Screen posn in de, now get font
ld b,8
.loop32
ld a,(hl)
.invers2 defb 0
ld (de),a
inc d ;down screen row
inc hl
djnz loop32
ld a,d
dec a
rrca
rrca
rrca
and 3
or 88
ld d,a
ld hl,(chrloc)
ld a,(hrgmode)
and a
jr nz,count64
ld a,(attr)
ld (de),a
inc l
.count64
inc l
jp posncheck
; Ooops..ain't written this yet!
; We should scroll the screen up one character here
; Blanking the bottom row..
.scrollup
ld a,(hrgmode)
and a
jr nz,hrgscroll
call call_rom3
defw $939
ret
.hrgscroll
ld ix,zx_rowtab
ld a,8
.outer_loop
push af
push ix
ld a,23
.inner_loop
ld e,(ix+16)
ld d,(ix+17)
ex de,hl
ld e,(ix+0)
ld d,(ix+1)
ld bc,32
ldir
; second display
dec de
dec hl
set 5,d
set 5,h
ld bc,32
lddr
ld bc,16
add ix,bc
dec a
jr nz,inner_loop
pop ix
pop af
inc ix
inc ix
dec a
jr nz,outer_loop
; clear
ld ix,zx_rowtab + (192 - 8) * 2
ld a,8
.clear_loop
push ix
ld e,(ix+0)
ld d,(ix+1)
ld h,d
ld l,e
ld (hl),0
inc de
ld bc,31
ldir
; second display
dec hl
dec de
set 5,d
set 5,h
ex de,hl
ld (hl),0
ld bc,31
lddr
pop ix
inc ix
inc ix
dec a
jr nz,clear_loop
ret
; This nastily inefficient table is the code table for the routines
; Done this way for future! Expansion
.code_table
defw noop ; 0 - NUL
defw switch ; 1 - SOH
defw setfont32 ; 2
defw setudg ; 3
defw noop ; 4
defw noop ; 5
defw noop ; 6
defw noop ; 7 - BEL
defw left ; 8 - BS
defw right ; 9 - HT
defw down ;10 - LF
defw up ;11 - UP
defw cls ;12 = FF (and HOME)
defw cr ;13 - CR (+NL)
defw noop ;14
defw noop ;15
defw setink ;16 - ink
defw setpaper ;17 - paper
defw setflash ;18 - flash
defw setbright ;19 - bright
defw setinverse ;20 - inverse
defw noop ;21 - over
defw setposn ;22
defw noop ;23
defw noop ;24
defw noop ;25
defw noop ;26
defw noop ;27
defw noop ;28
defw noop ;29
defw noop ;30
defw noop ;31
; And now the magic routines
; No operation
.noop
ret
; Move print position left
.left
ld a,l
and a
jr nz,doleft
ld l,63
jr up
.doleft
dec l
.left2 nop
ld (chrloc),hl
ret
;Move print position right
.right
ld a,l
cp 63
ret z
inc l
.right2 nop
ld (chrloc),hl
ret
;Move print position up
.up
ld a,h
and a
ret z
dec h
ld (chrloc),hl
ret
;Move print position down
.down
ld a,h
cp 23
ret z
inc h
ld (chrloc),hl
ret
; Clear screen and move to home
.cls
ld hl,0
ld (chrloc),hl
ld hl,16384
ld de,16385
ld bc,6144
ld (hl),l
ldir
ld a,(hrgmode)
and a
jr nz,hrgnoatt
ld a,(attr)
ld (hl),a
ld bc,767
ldir
ret
.hrgnoatt
ld hl,$6000
ld de,$6001
ld bc,6144
ld (hl),l
ldir
; no attributes in hrg mode
ret
;Move to new line
.cr
ld a,h
cp 23
jr nz,cr_1
call scrollup
ld h,22
.cr_1
inc h
ld l,0
ld (chrloc),hl
ret
; Set attributes etc
.doinverse
ld a,(params)
ld b,47 ;cpl
rrca
jr c,doinverse1
ld b,0 ;nop
.doinverse1
ld a,b
ld (invers1),a
ld (invers2),a
ret
.dobright
ld hl,attr
ld a,(params)
rrca
jr c,dobright1
res 6,(hl)
ret
.dobright1
set 6,(hl)
ret
.doflash
ld hl,attr
ld a,(params)
rrca
jr c,doflash1
res 7,(hl)
ret
.doflash1
set 7,(hl)
ret
.dopaper
ld hl,attr
ld a,(hl)
and @11000111
ld c,a
ld a,(params)
rlca
rlca
rlca
and @00111000
or c
ld (hl),a
ret
.doink
ld hl,attr
ld a,(hl)
and @11111000
ld c,a
ld a,(params)
and 7 ;doesn't matter what chars were used..
or c
ld (hl),a
ret
.dofont ld hl,(params)
ld (fontaddr+1),hl
ret
.doudg ld hl,(params)
ld (udgaddr+1),hl
ret
.setfont32
ld hl,dofont
ld a,2
jr setparams
.setudg
ld hl,doudg
ld a,2
jr setparams
.setinverse
ld hl,doinverse
jr setink1
.setbright
ld hl,dobright
jr setink1
.setflash
ld hl,doflash
jr setink1
.setpaper
ld hl,dopaper
jr setink1
.setink ld hl,doink
.setink1
ld a,1 ;number to expect
.setparams
ld (flags),a
ld (flagrout),hl
ret
; Set xy position
; Code 22,y,x (as per ZX)
.setposn
ld a,2 ;number to expect
ld hl,doposn
jr setparams
; Setting the position
; We only care
.doposn
ld hl,(params)
; ld de,$2020
; and a
; sbc hl,de
ld a,h ;y position
cp 24
ret nc
bit 6,l ;is x > 64
ret nz
ld a,(left2)
and a
jr z,no32mode
rl l
.no32mode
ld (chrloc),hl
ret
; Switch between 64 & 32 column text
.switch
ld a,1
ld (flags),a
ld hl,doswitch
ld (flagrout),hl
ret
.doswitch
ld a,(hrgmode_save)
out (255),a
xor a
ld (left2),a
ld (right2),a
ld a,(params)
ld hl,print64
ld (print1+1),hl
cp 64
ret z
.doswitch32
ld a,$2d
ld (left2),a
dec a
ld (right2),a
ld hl,print32
ld (print1+1),hl
xor a
out (255),a
ret
; Variables
; Because we're on a Spectrum we can scatter statics all over the place!
.hrgmode
defb 0
; keep video register when in hrg mode
.hrgmode_save
defb 0
.chrloc
defw 0
; Attribute to use
.attr defb 56
; Flags..used for incoming bit sequences
.flags
defb 0
; Routine to jump to when we have all the parameters
.flagrout
defw 0
; Buffer for reading in parameters - 5 should be enuff ATM?
.params
defs 5
; The font
.font
BINARY "stdio/spectrum/font64.bin"
| 16.618462
| 82
| 0.474727
|
3392d1acc3145f9ba9918bdc8f953daedf6e5f14
| 485
|
asm
|
Assembly
|
oeis/176/A176220.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/176/A176220.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/176/A176220.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A176220: Decimal expansion of (10+sqrt(110))/5.
; Submitted by Christian Krause
; 4,0,9,7,6,1,7,6,9,6,3,4,0,3,0,3,0,9,3,9,8,2,9,0,7,0,2,7,3,5,9,8,7,5,1,9,6,9,5,0,5,4,3,7,1,5,3,6,3,0,0,7,9,6,9,7,5,1,5,1,1,5,2,7,1,6,0,0,1,1,8,5,1,0,0,2,2,0,1,3,8,2,8,3,8,7,7,0,5,7,7,8,6,6,3,8,8,8,3,5
mov $2,1
mov $3,$0
mul $3,3
lpb $3
add $5,$2
add $5,$2
add $1,$5
mov $2,$5
add $2,$1
mul $2,5
sub $3,1
lpe
mov $1,4
add $1,$5
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
mov $0,$1
mod $0,10
| 19.4
| 201
| 0.536082
|
9cc668fbf593fead82316b83b1f16df893c15ecf
| 1,325
|
asm
|
Assembly
|
VC2010Samples/Compiler/MASM/EuclidStep2/euclid.asm
|
alonmm/VCSamples
|
6aff0b4902f5027164d593540fcaa6601a0407c3
|
[
"MIT"
] | 300
|
2019-05-09T05:32:33.000Z
|
2022-03-31T20:23:24.000Z
|
VC2010Samples/Compiler/MASM/EuclidStep2/euclid.asm
|
JaydenChou/VCSamples
|
9e1d4475555b76a17a3568369867f1d7b6cc6126
|
[
"MIT"
] | 9
|
2016-09-19T18:44:26.000Z
|
2018-10-26T10:20:05.000Z
|
VC2010Samples/Compiler/MASM/EuclidStep2/euclid.asm
|
JaydenChou/VCSamples
|
9e1d4475555b76a17a3568369867f1d7b6cc6126
|
[
"MIT"
] | 633
|
2019-05-08T07:34:12.000Z
|
2022-03-30T04:38:28.000Z
|
; Copyright (c) Microsoft Corporation. All rights reserved.
.386
.model flat, c
; Custom Build Step, including a listing file placed in intermediate directory
; but without Source Browser information
; debug:
; ml -c -Zi "-Fl$(IntDir)\$(InputName).lst" "-Fo$(IntDir)\$(InputName).obj" "$(InputPath)"
; release:
; ml -c "-Fl$(IntDir)\$(InputName).lst" "-Fo$(IntDir)\$(InputName).obj" "$(InputPath)"
; outputs:
; $(IntDir)\$(InputName).obj
; Custom Build Step, including a listing file placed in intermediate directory
; and Source Browser information also placed in intermediate directory
; debug:
; ml -c -Zi "-Fl$(IntDir)\$(InputName).lst" "-FR$(IntDir)\$(InputName).sbr" "-Fo$(IntDir)\$(InputName).obj" "$(InputPath)"
; release:
; ml -c "-Fl$(IntDir)\$(InputName).lst" "-FR$(IntDir)\$(InputName).sbr" "-Fo$(IntDir)\$(InputName).obj" "$(InputPath)"
; outputs:
; $(IntDir)\$(InputName).obj
; $(IntDir)\$(InputName).sbr
.code
; Euclid's algorithm finds the greatest common divisor by repeatedly
; subtracting the smaller number from the larger number until zero
; is reached. The number remaining is the greatest common divisor.
euclid PROC x:SDWORD, y:SDWORD
mov ecx, x
mov eax, y
@@:
cmp ecx, eax
jge noswap
xchg eax, ecx
noswap:
sub ecx, eax
jnz @B
; return value already in eax
RET
euclid ENDP
end
| 28.804348
| 122
| 0.695094
|
b1ceb4eabaef64c30775e4ebdf071d6cfb331fd6
| 655
|
asm
|
Assembly
|
oeis/198/A198392.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/198/A198392.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/198/A198392.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A198392: a(n) = (6*n*(3*n+7)+(2*n+13)*(-1)^n+3)/16 + 1.
; Submitted by Jamie Morken(s2)
; 2,4,12,18,31,41,59,73,96,114,142,164,197,223,261,291,334,368,416,454,507,549,607,653,716,766,834,888,961,1019,1097,1159,1242,1308,1396,1466,1559,1633,1731,1809,1912,1994,2102,2188,2301,2391,2509,2603,2726,2824,2952,3054,3187,3293,3431,3541,3684,3798,3946,4064,4217,4339,4497,4623,4786,4916,5084,5218,5391,5529,5707,5849,6032,6178,6366,6516,6709,6863,7061,7219,7422,7584,7792,7958,8171,8341,8559,8733,8956,9134,9362,9544,9777,9963,10201,10391,10634,10828,11076,11274
mov $1,8
add $1,$0
div $1,2
bin $1,2
add $1,$0
mov $2,$0
mul $2,$0
add $1,$2
mov $0,$1
sub $0,4
| 43.666667
| 467
| 0.708397
|
d38dedd10bc7823379b29d5cfb119bf0f5523dd4
| 676
|
asm
|
Assembly
|
programs/oeis/212/A212069.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/212/A212069.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/212/A212069.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A212069: Number of (w,x,y,z) with all terms in {1,...,n} and 3*w = x+y+z.
; 0,1,2,9,22,41,72,115,170,243,334,443,576,733,914,1125,1366,1637,1944,2287,2666,3087,3550,4055,4608,5209,5858,6561,7318,8129,9000,9931,10922,11979,13102,14291,15552,16885,18290,19773,21334,22973
mov $12,$0
mov $14,$0
lpb $14,1
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
lpb $11,1
mov $0,$9
sub $11,1
sub $0,$11
mov $2,$0
mul $0,2
div $2,2
mov $5,6
mov $7,6
lpb $2,1
div $0,6
mod $2,2
div $2,5
add $5,$7
mul $0,$5
lpe
mov $1,$0
div $1,2
add $10,$1
lpe
add $13,$10
lpe
mov $1,$13
| 18.777778
| 195
| 0.538462
|
b1ff1823b2485511d859040a5f9f4a0f023b29bf
| 512
|
asm
|
Assembly
|
programs/oeis/045/A045319.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/045/A045319.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/045/A045319.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A045319: Primes congruent to {1, 2, 3, 4} mod 5.
; 2,3,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547
mov $2,$0
lpb $0
mov $0,1
mov $1,$2
lpe
add $0,$1
seq $0,40 ; The prime numbers.
| 46.545455
| 374
| 0.689453
|
468b856b7f6bf9edbd8ea014b7f53bf09ab68f54
| 503
|
asm
|
Assembly
|
oeis/327/A327629.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/327/A327629.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/327/A327629.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A327629: Expansion of Sum_{k>=1} x^(k*(k + 1)/2) / (1 - x^(k*(k + 1)/2))^2.
; Submitted by Christian Krause
; 1,2,4,4,5,9,7,8,12,11,11,18,13,14,21,16,17,27,19,22,29,22,23,36,25,26,36,29,29,50,31,32,44,34,35,55,37,38,52,44,41,65,43,44,64,46,47,72,49,55,68,52,53,81,56,58,76,58,59,100,61,62,87,64,65,100,67,68,92,77
mov $4,$0
add $0,1
mov $1,$4
mov $2,$0
lpb $0
bin $0,2
mov $3,$2
dif $3,$0
mov $0,$3
cmp $3,$2
cmp $3,0
mul $3,$0
mov $0,$4
add $1,$3
sub $4,1
lpe
add $1,1
mov $0,$1
| 21.869565
| 205
| 0.562624
|
206ea4070426f75ea4dfdfdeabadc9ee89b51636
| 210
|
asm
|
Assembly
|
data/pokemon/dex_entries/umbreon.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
data/pokemon/dex_entries/umbreon.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
data/pokemon/dex_entries/umbreon.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
db "MOONLIGHT@" ; species name
dw 303, 600 ; height, weight
db "On the night of a"
next "full moon, or when"
next "it gets excited,"
page "the ring patterns"
next "on its body glow"
next "yellow.@"
| 19.090909
| 31
| 0.657143
|
e1e95361e262a00f1402f81fd032fdd63daea8da
| 149
|
asm
|
Assembly
|
ffight/lcs/1p/87.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 6
|
2020-10-14T15:29:10.000Z
|
2022-02-12T18:58:54.000Z
|
ffight/lcs/1p/87.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | null | null | null |
ffight/lcs/1p/87.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 1
|
2020-12-17T08:59:10.000Z
|
2020-12-17T08:59:10.000Z
|
copyright zengfr site:http://github.com/zengfr/romhack
001AD6 abcd -(A3), -(A1) [1p+87]
copyright zengfr site:http://github.com/zengfr/romhack
| 24.833333
| 54
| 0.724832
|
a4436d9af27f1c1fd264f646365001628afb3dfd
| 2,193
|
asm
|
Assembly
|
maps/Route21.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
maps/Route21.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
maps/Route21.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
object_const_def ; object_event constants
const ROUTE21_SWIMMER_GIRL
const ROUTE21_SWIMMER_GUY
const ROUTE21_FISHER
Route21_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerSwimmermSeth:
trainer SWIMMERM, SETH, EVENT_BEAT_SWIMMERM_SETH, SwimmermSethSeenText, SwimmermSethBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SwimmermSethAfterBattleText
waitbutton
closetext
end
TrainerSwimmerfNikki:
trainer SWIMMERF, NIKKI, EVENT_BEAT_SWIMMERF_NIKKI, SwimmerfNikkiSeenText, SwimmerfNikkiBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SwimmerfNikkiAfterBattleText
waitbutton
closetext
end
TrainerFisherArnold:
trainer FISHER, ARNOLD, EVENT_BEAT_FISHER_ARNOLD, FisherArnoldSeenText, FisherArnoldBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext FisherArnoldAfterBattleText
waitbutton
closetext
end
SwimmermSethSeenText:
text "Land ho! Gotta"
line "keep going!"
done
SwimmermSethBeatenText:
text "Glug…"
done
SwimmermSethAfterBattleText:
text "This arrogant guy"
line "was at CINNABAR's"
cont "volcano."
done
SwimmerfNikkiSeenText:
text "If I win, you have"
line "to help me with my"
cont "suntan lotion!"
done
SwimmerfNikkiBeatenText:
text "I'm worried about"
line "sunburn…"
done
SwimmerfNikkiAfterBattleText:
text "I have to watch"
line "out for blemishes"
cont "caused by the sun."
done
FisherArnoldSeenText:
text "I'm bored by fish-"
line "ing. Let's battle!"
done
FisherArnoldBeatenText:
text "Utter failure…"
done
FisherArnoldAfterBattleText:
text "I'll just go back"
line "to fishing…"
done
Route21_MapEvents:
db 0, 0 ; filler
db 0 ; warp events
db 0 ; coord events
db 0 ; bg events
db 3 ; object events
object_event 11, 16, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfNikki, -1
object_event 2, 30, SPRITE_SWIMMER_GUY, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerSwimmermSeth, -1
object_event 14, 22, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 1, TrainerFisherArnold, -1
| 21.291262
| 151
| 0.786594
|
84686e635045471344b4ea1a7ef7d2d4c4caac59
| 354
|
asm
|
Assembly
|
programs/oeis/034/A034257.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/034/A034257.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/034/A034257.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A034257: Maximal discrete supergroups of Gamma_0(n).
; 1,3,3,7,3,9,3,11,9,9
seq $0,253885 ; Permutation of even numbers: a(n) = A003961(n+1) - 1.
seq $0,1065 ; Sum of proper divisors (or aliquot parts) of n: sum of divisors of n that are less than n.
mul $0,2
mov $1,$0
add $1,3
lpb $1
add $0,1
div $1,2
sub $0,$1
lpe
sub $0,1
mul $0,2
add $0,1
| 20.823529
| 104
| 0.644068
|
28e800205360cd71d99c41c49b9d3e776627766b
| 5,683
|
asm
|
Assembly
|
boot/loader_utils.asm
|
blessingcharles/TOM_OS
|
334ee31b44e268b8b8ffacffc11a9a0b3661a638
|
[
"MIT"
] | 1
|
2021-04-06T11:00:24.000Z
|
2021-04-06T11:00:24.000Z
|
boot/loader_utils.asm
|
blessingcharles/TOM_OS
|
334ee31b44e268b8b8ffacffc11a9a0b3661a638
|
[
"MIT"
] | null | null | null |
boot/loader_utils.asm
|
blessingcharles/TOM_OS
|
334ee31b44e268b8b8ffacffc11a9a0b3661a638
|
[
"MIT"
] | null | null | null |
[BITS 16]
;---------------------------------------------------------------------------
; ########## LOADER UTILS ##########
; loadkernel
; loadinit
; loaduser1
; loaduser2
; longmodetests
; printc
; printnewline
; GetMemoryMap
; TestA20
; NotSupported/end
;----------------------------------------------------------------------------
;;loading above 1mb
loadkernel:
pusha
mov si,readblock
mov word[si],0x10 ;size 16 bytes
mov word[si+2],100 ;100 sectors for kernel in img
mov word[si+4],0 ;offset
mov word[si+6],0x1000 ; segment[0x1000] = 0x1000*0x10
mov dword[si+8],6 ;lba of 6 which means sector 7 in disk CHS[007]
mov dword[si+0xc],0 ; higher lba sets to 0
mov dl,[driveid]
mov ah,0x42
int 0x13
jz NotSupported
popa
ret
loadinit:
pusha
mov si,readblock
mov word[si],0x10 ;size 16 bytes
mov word[si+2],10 ;10 sectors for user in img
mov word[si+4],0 ;offset
mov word[si+6],0x2000 ; segment 0x2000
mov dword[si+8],106 ;lba of 106 which means sector 107 in disk
mov dword[si+0xc],0 ; higher lba sets to 0
mov dl,[driveid]
mov ah,0x42
int 0x13
jz NotSupported
popa
ret
loaduser1:
pusha
mov si,readblock
mov word[si],0x10 ;size 16 bytes
mov word[si+2],10 ;10 sectors for user in img
mov word[si+4],0 ;offset
mov word[si+6],0x3000 ; segment 0x3000
mov dword[si+8],116 ;lba of 106 which means sector 107 in disk
mov dword[si+0xc],0 ; higher lba sets to 0
mov dl,[driveid]
mov ah,0x42
int 0x13
jz NotSupported
popa
ret
loaduser2:
pusha
mov si,readblock
mov word[si],0x10 ;size 16 bytes
mov word[si+2],10 ;10 sectors for user in img
mov word[si+4],0 ;offset
mov word[si+6],0x4000 ; segment 0x3000
mov dword[si+8],126 ;lba of 106 which means sector 107 in disk
mov dword[si+0xc],0 ; higher lba sets to 0
mov dl,[driveid]
mov ah,0x42
int 0x13
jz NotSupported
popa
ret
longmodetests:
pusha
mov eax,0x80000000 ;testing for long mode
cpuid
cmp eax,0x80000001
jb NotSupported
mov eax,0x80000001
cpuid
test edx,(1<<29)
jz NotSupported
test edx,(1<<26)
jz NotSupported
popa
ret
;get memory map via the bios routine
;e820 is shorthand for the facility by which the BIOS of x86-based computer systems reports the memory map
GetMemoryMap:
pusha
mov eax,0xe820
mov edx,0x534d4150 ;ascii for SMAP
mov ecx,20 ;one memory block of size 20
mov dword[0x9000],0 ;count
mov edi,0x9008 ;destination addr 0x9008
xor ebx,ebx
int 0x15
jc NotSupported
;loop through to get all blocks of memory map
GetMemoryLoopInfo:
add edi,20 ;storing the next block at (0x901c) and looping
inc dword[0x9000]
test ebx,ebx
jz GetMemoryDone
mov eax,0xe820
mov edx,0x534d4150 ;ascii for SMAP
mov ecx,20
int 0x15
jnc GetMemoryLoopInfo ;if zeroflag is set return
GetMemoryDone:
popa
ret
; test if our address bus greater that 20 [enabled by default in motherboard]
; checking by storing a random value in 0x7c00(boot code) cuz it is not used anymore
;and comparing it with 0x107c00 if a20 not enables then address 0x107c00 is truncated to 0x7c00
TestA20:
pusha
mov ax,0xffff
mov es,ax ; LA PA
mov word[ds:0x7c00],0xa200 ;0:0x7c00 = 0*16 [shift by 4bits] + 0x7c00 = 0x7c00
cmp word[es:0x7c10],0xa200 ;0xffff:0x7c10 = 0xffff*16[shift by 4bits] + 0x7c10= 0x107c00 [if a20 if enables]
jne TestA20done
;may be if we are unlucky the junk in 0x107c00 is 0xa200
; then we need to do a another test WTF case
mov word[ds:0x7c00],0xb200
cmp word[es:0x7c10],0xb200
;if now also same then a20 is disabled
je NotSupported
TestA20done:
xor ax,ax
mov es,ax
popa
ret
;after switcing to protected mode we cant use bios routine
;so we use video memory at 0xb8000 (80*25) text mode
VideoModePrint:
pusha
mov ax,3 ; for setting text mode
int 0x10
mov si,videomodemsg
mov ax,0xb800
mov es,ax
xor di,di
mov cx,videomodemsglen ;for looping counter
; 0xb8000 contain char and 0xb8001 contains color where
; upper 4 bits for background and lower 4 bits for foregound
printmsg:
mov al,[si] ;storing a char in al
mov [es:di],al ;storing in video mode memory at 0xb8000
mov byte[es:di+1],0xa ;for green color
add di,2 ;offset++
add si,1 ;*str++
loop printmsg
popa
ret
;print a single char by looping though the string untill \0
;[ parameters bx=&str]
printc:
pusha
mov ah,0x0e ; ttymode
loop:
mov al,[bx] ; ah=*bx
cmp al,0 ; while(al!=0 loop through)
je endloop
int 0x10
add bx,1 ; bx++
jmp loop
endloop:
popa
;print newline
printnewline:
pusha
mov ah,0x0e ;set to tty
mov al,0x0a ;char newline
int 0x10
mov al,0x0d ;char carriage return
int 0x10
popa
ret
NotSupported:
end:
hlt
jmp end
| 26.432558
| 113
| 0.566954
|
7589ae6d1d45196a930687cc7397a14ec3f4c2fe
| 3,618
|
asm
|
Assembly
|
uuu/src/apps/games/boxed_in/control.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | 7
|
2019-03-04T08:53:33.000Z
|
2022-01-28T19:32:12.000Z
|
uuu/src/apps/games/boxed_in/control.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
uuu/src/apps/games/boxed_in/control.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
KeyboardProc:
pushad
xor ecx,ecx
xor edx,edx
mov cl,[PlayerX]
mov dl,[PlayerY]
lea esi,[edx * 9]
lea esi,[esi + esi + ecx]
add esi,[pleveldata]
xor ebx,ebx
xor ecx,ecx
cmp al,8
je Backspace
cmp al,'r'
je RestartLevel
cmp al,'q'
je near Quit
cmp al,'9'
je NextLevel
cmp al,'3'
je PrevLevel
cmp al,'8'
je near Up
cmp al,'2'
je near Down
cmp al,'6'
je near Right
cmp al,'4'
je near Left
jmp EndKeyboardProc
Backspace:
call RestoreLastMove
call Draw_level
call DrawMoveNumber
jmp EndKeyboardProc
RestartLevel:
call Unpack_level
call Draw_level
jmp EndKeyboardProc
NextLevel:
mov eax,[CurrentLevel]
cmp eax,NUMBERLEVELS - 1
je near EndKeyboardProc
inc DWORD [CurrentLevel]
call Unpack_level
call Draw_level
jmp EndKeyboardProc
PrevLevel:
mov eax,[CurrentLevel]
cmp eax,0
je near EndKeyboardProc
dec DWORD [CurrentLevel]
call Unpack_level
call Draw_level
jmp EndKeyboardProc
Up:
lea edi,[esi - 18]
lea edx,[esi - 36]
mov ecx,-1
jmp ProcessMove
Down:
lea edi,[esi + 18]
lea edx,[esi + 36]
mov ecx,1
jmp ProcessMove
Left:
lea edi,[esi - 1]
lea edx,[esi - 2]
mov ebx,-1
jmp ProcessMove
Right:
lea edi,[esi + 1]
lea edx,[esi + 2]
mov ebx,1
ProcessMove:
mov al,[edi]
cmp al,WALL
je near EndKeyboardProc
cmp al,BOX
je ProcessBox
cmp al,SET
je near ProcessSet
cmp al,TARGET
je ProcessTarget
ProcessEmpty:
call SaveMove
mov BYTE [edi],PLAYER_EMPTY
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
ProcessTarget:
call SaveMove
mov BYTE [edi],PLAYER_TARGET
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
ProcessBox:
mov al,[edx]
cmp al,WALL
je near EndKeyboardProc
cmp al,SET
je near EndKeyboardProc
cmp al,BOX
je near EndKeyboardProc
cmp al,TARGET
je ProcessBoxTarget
ProcessBoxEmpty:
call SaveMove
mov BYTE [edx],BOX
mov BYTE [edi],PLAYER_EMPTY
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
ProcessBoxTarget:
call SaveMove
mov BYTE [edx],SET
mov BYTE [edi],PLAYER_EMPTY
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
ProcessSet:
mov al,[edx]
cmp al,WALL
je near EndKeyboardProc
cmp al, SET
je near EndKeyboardProc
cmp al,BOX
je near EndKeyboardProc
cmp al,TARGET
je ProcessSetTarget
ProcessSetEmpty:
call SaveMove
mov BYTE [edx],BOX
mov BYTE [edi],PLAYER_TARGET
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
ProcessSetTarget:
call SaveMove
mov BYTE [edx],SET
mov BYTE [edi],PLAYER_TARGET
and BYTE [esi],11b
add DWORD [PlayerX],ebx
add DWORD [PlayerY],ecx
jmp RedrawLevel
LevelCompleted:
call Draw_level
mov eax,[CurrentLevel]
cmp eax,NUMBERLEVELS - 1
je GameWon
mov esi,NextLevelBlurb
mov edi,0xA0000 + (320*93) + 65
mov al,11
externfunc gfx.render.13h.string
externfunc debug.diable.wait
inc DWORD [CurrentLevel]
call Unpack_level
call Draw_level
jmp EndKeyboardProc
GameWon:
mov esi,GameWonBlurb
mov edi,0xA0000 + (320*93) + 65
mov al,11
externfunc gfx.render.13h.string
externfunc debug.diable.wait
Quit:
mov BYTE [QuitGame],1
jmp EndKeyboardProc
RedrawLevel:
call NumberBoxesSet
cmp cl,[NumberToSet]
je LevelCompleted
call Draw_level
inc DWORD [NumberMoves]
call DrawMoveNumber
EndKeyboardProc:
popad
ret
NumberMoves: DD 0
CurrentLevel: DD 0
NumberToSet: DB 0
PlayerX: DD 0
PlayerY: DD 0
QuitGame: DB 0
NextLevelBlurb: DB 'Press enter to proceed',10,' to the next level.',0
GameWonBlurb: DB ' Congratulations!',10,'You have beaten Blocked In!',0
| 18.746114
| 78
| 0.736595
|
ee4f1e4c14f905279b51b811827e5271a2cf91b0
| 2,843
|
asm
|
Assembly
|
data/tilesets/mart_collision.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
data/tilesets/mart_collision.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
data/tilesets/mart_collision.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
tilecoll WALL, WALL, WALL, WALL ; 00
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 01
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 02
tilecoll WALL, WALL, FLOOR, FLOOR ; 03
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 04
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 05
tilecoll FLOOR, FLOOR, FLOOR, WARP_CARPET_DOWN ; 06
tilecoll WALL, FLOOR, WALL, FLOOR ; 07
tilecoll WALL, WALL, FLOOR, COUNTER ; 08
tilecoll WALL, WALL, FLOOR, FLOOR ; 09
tilecoll WALL, WALL, COUNTER, FLOOR ; 0a
tilecoll WALL, FLOOR, WALL, FLOOR ; 0b
tilecoll FLOOR, COUNTER, FLOOR, FLOOR ; 0c
tilecoll COUNTER, COUNTER, FLOOR, FLOOR ; 0d
tilecoll COUNTER, FLOOR, FLOOR, FLOOR ; 0e
tilecoll FLOOR, WALL, WALL, WALL ; 0f
tilecoll COUNTER, COUNTER, COUNTER, FLOOR ; 10
tilecoll COUNTER, COUNTER, FLOOR, FLOOR ; 11
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 12
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 13
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 14
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 15
tilecoll WALL, WALL, FLOOR, FLOOR ; 16
tilecoll WALL, WALL, FLOOR, COUNTER ; 17
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 18
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 19
tilecoll COUNTER, COUNTER, COUNTER, FLOOR ; 1a
tilecoll COUNTER, COUNTER, FLOOR, COUNTER ; 1b
tilecoll WALL, WALL, WALL, WALL ; 1c
tilecoll WALL, WALL, WALL, WALL ; 1d
tilecoll FLOOR, WARP_CARPET_RIGHT, FLOOR, WARP_CARPET_RIGHT ; 1e
tilecoll WARP_CARPET_LEFT, FLOOR, WARP_CARPET_LEFT, FLOOR ; 1f
tilecoll FLOOR, WALL, FLOOR, WALL ; 20
tilecoll WALL, WALL, WALL, WALL ; 21
tilecoll COUNTER, FLOOR, COUNTER, FLOOR ; 22
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 23
tilecoll WALL, WALL, WALL, WALL ; 24
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, FLOOR ; 25
tilecoll WALL, WALL, FLOOR, FLOOR ; 26
tilecoll WALL, WALL, COUNTER, MART_SHELF ; 27
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 28
tilecoll WALL, FLOOR, FLOOR, FLOOR ; 29
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 2a
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 2b
tilecoll COUNTER, COUNTER, FLOOR, MART_SHELF ; 2c
tilecoll FLOOR, MART_SHELF, COUNTER, COUNTER ; 2d
tilecoll COUNTER, FLOOR, COUNTER, COUNTER ; 2e
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 2f
tilecoll WALL, WALL, WALL, WALL ; 30
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 31
tilecoll WALL, WALL, WALL, WALL ; 32
tilecoll WALL, FLOOR, WALL, WALL ; 33
tilecoll FLOOR, FLOOR, WALL, WALL ; 34
tilecoll FLOOR, WALL, WALL, WALL ; 35
tilecoll FLOOR, WALL, FLOOR, WALL ; 36
tilecoll FLOOR, WALL, FLOOR, WALL ; 37
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 38
tilecoll FLOOR, FLOOR, FLOOR, STAIRCASE ; 39
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 3a
tilecoll WALL, WALL, WALL, WALL ; 3b
tilecoll WALL, WALL, WALL, WALL ; 3c
tilecoll WALL, WALL, WALL, WALL ; 3d
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 3e
tilecoll WALL, WALL, WALL, WALL ; 3f
| 43.738462
| 65
| 0.729863
|
ec970575f544e4ffe0f0bf0add096d5375afc213
| 5,145
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_749.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_749.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_749.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x12b4d, %r14
nop
nop
nop
nop
add %r8, %r8
movb $0x61, (%r14)
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x18d03, %r8
nop
nop
nop
sub $19212, %r14
movups (%r8), %xmm3
vpextrq $0, %xmm3, %r13
dec %r13
lea addresses_A_ht+0x740d, %rsi
lea addresses_normal_ht+0x12bcd, %rdi
nop
nop
nop
nop
add %r13, %r13
mov $110, %rcx
rep movsq
nop
nop
and $44757, %rbx
lea addresses_A_ht+0x1ad4d, %rsi
lea addresses_normal_ht+0x11f05, %rdi
nop
nop
and $57417, %r14
mov $59, %rcx
rep movsq
nop
nop
nop
and $57747, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rbp
push %rcx
// Store
lea addresses_WT+0x1543d, %rcx
nop
inc %r14
mov $0x5152535455565758, %r12
movq %r12, %xmm3
movups %xmm3, (%rcx)
xor %rbp, %rbp
// Faulty Load
lea addresses_A+0x1854d, %r8
nop
cmp %r12, %r12
mov (%r8), %r11d
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 46.351351
| 2,999
| 0.660836
|
89ff74c4d183dec8ebf8ec516b4a139563ede661
| 334
|
asm
|
Assembly
|
tests/addr/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 414
|
2016-10-14T22:39:20.000Z
|
2022-03-30T07:52:44.000Z
|
tests/addr/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 100
|
2018-03-22T16:12:24.000Z
|
2022-03-26T09:19:23.000Z
|
tests/addr/5.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 47
|
2017-06-29T15:12:13.000Z
|
2022-03-10T04:50:51.000Z
|
#ruledef test
{
ld {x} => 0x55 @ x`8
}
#bankdef test { #addr 0x1_0000_0000_0000_0000, #outp 0 }
#ruledef test2
{
ld2 {x} => 0x55 @ x`128
}
ld2 $ ; = 0x55_0000_0000_0000_0001_0000_0000_0000_0000
#addr 0x1_0000_0000_0000_0020 ; = 0x00_0000_0000_0000_0000_0000_0000_0000
ld2 $ ; = 0x55_0000_0000_0000_0001_0000_0000_0000_0020
| 20.875
| 73
| 0.739521
|
25948bb5cf0ca1013f4c0711d612291172d3b101
| 195
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_aaddr2saddr_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_aaddr2saddr_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_aaddr2saddr_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *tshc_aaddr2saddr(void *aaddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_aaddr2saddr_fastcall
EXTERN asm_tshc_aaddr2saddr
defc _tshc_aaddr2saddr_fastcall = asm_tshc_aaddr2saddr
| 17.727273
| 54
| 0.866667
|
7488249dd0d2e3b52e23735daccf4fa48cea4a1b
| 94
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/tanh.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/tanh.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/tanh.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _tanh
EXTERN cm48_sdccix_tanh
defc _tanh = cm48_sdccix_tanh
| 10.444444
| 29
| 0.840426
|
1efdc45e9a02d16e5a3512076ccd64c0312c6991
| 319
|
asm
|
Assembly
|
programs/oeis/265/A265127.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/265/A265127.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/265/A265127.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A265127: a(n) = prime(n) * 2^n.
; 4,12,40,112,352,832,2176,4864,11776,29696,63488,151552,335872,704512,1540096,3473408,7733248,15990784,35127296,74448896,153092096,331350016,696254464,1493172224,3254779904,6777995264,13824425984,28722593792,58518929408,121332826112
seq $0,110295 ; a(n) = prime(n)*2^(n-1).
mul $0,2
| 53.166667
| 233
| 0.768025
|
f8cf5042ef7b61f52e39ecdc4ee3d994446287fa
| 269
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_aaddrcleft.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_aaddrcleft.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_aaddrcleft.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *zx_aaddrcleft(void *attraddr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_aaddrcleft
EXTERN asm_zx_aaddrcleft
defc zx_aaddrcleft = asm_zx_aaddrcleft
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _zx_aaddrcleft
defc _zx_aaddrcleft = zx_aaddrcleft
ENDIF
| 14.157895
| 38
| 0.832714
|
5d10f03b10fa5764c7e9932428e4c7b1bfc53672
| 310
|
asm
|
Assembly
|
programs/oeis/021/A021602.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/021/A021602.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/021/A021602.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A021602: Decimal expansion of 1/598.
; 0,0,1,6,7,2,2,4,0,8,0,2,6,7,5,5,8,5,2,8,4,2,8,0,9,3,6,4,5,4,8,4,9,4,9,8,3,2,7,7,5,9,1,9,7,3,2,4,4,1,4,7,1,5,7,1,9,0,6,3,5,4,5,1,5,0,5,0,1,6,7,2,2,4,0,8,0,2,6,7,5,5,8,5,2,8,4,2,8,0,9,3,6,4,5,4,8,4,9
add $0,1
mov $1,10
pow $1,$0
mul $1,6
div $1,3588
mod $1,10
mov $0,$1
| 28.181818
| 199
| 0.541935
|
b96654bcaa5c75dd3e4b7787b022f320ae2ffc6a
| 537
|
asm
|
Assembly
|
data/baseStats_original/growlithe.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
data/baseStats_original/growlithe.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
data/baseStats_original/growlithe.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
db DEX_GROWLITHE ; pokedex id
db 55 ; base hp
db 70 ; base attack
db 45 ; base defense
db 60 ; base speed
db 50 ; base special
db FIRE ; species type 1
db FIRE ; species type 2
db 190 ; catch rate
db 91 ; base exp yield
INCBIN "pic/ymon/growlithe.pic",0,1 ; 55, sprite dimensions
dw GrowlithePicFront
dw GrowlithePicBack
; attacks known at lvl 0
db BITE
db ROAR
db 0
db 0
db 5 ; growth rate
; learnset
tmlearn 6,8
tmlearn 9,10
tmlearn 20,23
tmlearn 28,31,32
tmlearn 33,34,38,39,40
tmlearn 44
tmlearn 50
db BANK(GrowlithePicFront)
| 18.517241
| 59
| 0.739292
|
75a29d77ae7adc703a71d496aee191f88ca9392b
| 9,015
|
asm
|
Assembly
|
6502/tetrominoes.asm
|
nikosev/gabrielsroka.github.io
|
6bbc83bfdb271cd85a9ffa827f7e187c2d352c6f
|
[
"MIT"
] | 70
|
2017-06-26T19:35:41.000Z
|
2022-03-13T07:25:39.000Z
|
6502/tetrominoes.asm
|
nikosev/gabrielsroka.github.io
|
6bbc83bfdb271cd85a9ffa827f7e187c2d352c6f
|
[
"MIT"
] | 24
|
2019-06-20T19:09:00.000Z
|
2022-03-05T05:08:25.000Z
|
6502/tetrominoes.asm
|
nikosev/gabrielsroka.github.io
|
6bbc83bfdb271cd85a9ffa827f7e187c2d352c6f
|
[
"MIT"
] | 26
|
2019-04-25T21:57:10.000Z
|
2022-03-14T16:34:33.000Z
|
; tetrominoes
; keys: W
; A S D
define startPage $03 ; screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define lastPage $06
define startTopOfPage $08
define start $88 ; height of 20
define nextrow $20
define bgColor $00 ; black
define fgColor $01 ; white
define blockLength $04
define keyCode $ff
define keyA $61
define keyD $64
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #start
sta screen
lda #startPage
sta page
lda #startTopOfPage
sta erase
lda #startPage
sta ePage
lda #startTopOfPage
sta topOfPage
loopRow:
ldy #blockLength
yLoopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
dey
bne yLoopBlock
lda screen ; save old location
sta erase
lda page
sta ePage
jsr sleep
jsr checkKeys
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
sleep:
ldy #$10
sleepMore:
ldx #0
sleepLoop:
nop
nop
dex
bne sleepLoop
dey
bne sleepMore
rts
checkKeys:
lda keyCode
cmp #keyD
beq onKeyD
cmp #keyA
bne skip
onKeyA:
dec screen
dec topOfPage
jmp clearKey
onKeyD:
inc screen
inc topOfPage
clearKey:
lda #$00
sta keyCode
skip:
rts
; tetrominoes
; keys: W
; A S D
define startPage $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define lastPage $06
define startTopOfPage $08
define start $88 ; height of 20
define nextrow $20
define bgColor $00 // black
define fgColor $01 // white
define blockLength $04
define keyCode $ff
define keyA $61
define keyD $64
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #start
sta screen
lda #startPage
sta page
lda #startTopOfPage
sta erase
lda #startPage
sta ePage
lda #startTopOfPage
sta topOfPage
loopRow:
ldy #blockLength
yLoopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
dey
bne yLoopBlock
lda screen ; save old location
sta erase
lda page
sta ePage
jsr sleep
jsr checkKeys
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
sleep:
ldy #$10
sleepMore:
ldx #0
sleepLoop:
nop
nop
dex
bne sleepLoop
dey
bne sleepMore
rts
checkKeys:
lda keyCode
cmp #keyD
beq onKeyD
cmp #keyA
bne skip
onKeyA:
dec screen
dec topOfPage
jmp clearKey
onKeyD:
inc screen
inc topOfPage
clearKey:
lda #$00
sta keyCode
skip:
rts
; tetrominoes
; keys: W
; A S D
define startPage $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define lastPage $06
define startTopOfPage $08
define start $88 ; height of 20
define nextrow $20
define bgColor $00 // black
define fgColor $01 // white
define blockLength $04
define keyCode $ff
define keyA $61
define keyD $64
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #startTopOfPage
sta topOfPage
lda #start
sta screen
lda #startPage
sta page
lda #startTopOfPage
sta erase
lda #startPage
sta ePage
loopRow:
ldy #blockLength
yLoopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
dey
bne yLoopBlock
lda screen ; save old location
sta erase
lda page
sta ePage
jsr sleep
jsr checkKeys
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
sleep:
ldy #$10
sleepMore:
ldx #0
sleepLoop:
nop
nop
dex
bne sleepLoop
dey
bne sleepMore
rts
checkKeys:
lda keyCode
cmp #keyD
beq onKeyD
cmp #keyA
bne skip
onKeyA:
dec screen
dec topOfPage
jmp clearKey
onKeyD:
inc screen
inc topOfPage
clearKey:
lda #$00
sta keyCode
skip:
rts
; tetrominoes
; keys: W
; A S D
define nextrow $20
define screenStartHi $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define bgColor $00 // black
define fgColor $01 // white
define lastPage $06
define startTopOfPage $08
define start $88 ; height of 20
define length $04
define keyCode $ff
define keyA $61
define keyD $64
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #startTopOfPage
sta topOfPage
lda #start
sta screen
lda #screenStartHi
sta page
lda #startTopOfPage
sta erase
lda #screenStartHi
sta ePage
loopRow:
ldy #$00
loopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
iny
cpy #length
bne loopBlock
lda screen ; save old location
sta erase
lda page
sta ePage
jsr sleep
jsr checkKeys
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
sleep:
ldy #$10
sleepMore:
ldx #0
sleepLoop:
nop
nop
dex
bne sleepLoop
dey
bne sleepMore
rts
checkKeys:
lda keyCode
cmp #keyD
beq onKeyD
cmp #keyA
bne skip
onKeyA:
dec screen
dec topOfPage
jmp clearKey
onKeyD:
inc screen
inc topOfPage
clearKey:
lda #$00
sta keyCode
skip:
rts
; tetrominoes
; keys: W A S D
define nextrow $20
define screenStartHi $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define bgColor $00 // black
define fgColor $01 // white
define lastPage $06
define startTopOfPage $08
define start $88 ; height of 20
define length $04
define keyCode $ff
define keyA $61
define keyD $64
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #startTopOfPage
sta topOfPage
lda #start
sta screen
lda #screenStartHi
sta page
lda #startTopOfPage
sta erase
lda #screenStartHi
sta ePage
loopRow:
ldy #$00
loopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
iny
cpy #length
bne loopBlock
jsr spinWheels
jsr keys
lda screen
sta erase
lda page
sta ePage
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
spinWheels:
ldy #$10
more:
ldx #0
spinloop:
nop
nop
dex
bne spinloop
dey
bne more
rts
keys:
lda keyCode
cmp #keyD
beq d
cmp #keyA
bne skip
a:
dec screen
dec erase
dec topOfPage
jmp clear
d:
inc screen
inc erase
inc topOfPage
clear:
lda #$00
sta keyCode
skip:
rts
; tetrominoes
; keys: W A S D
define nextrow $20
define screenStartHi $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define bgColor $00 // black
define fgColor $01 // white
define lastPage $06
define topOfPage $08
define start $88 ; height of 20
define length $04
define screen $0
define page $1
define erase $2
define ePage $3
define topOfPage $4
lda #$08
sta topOfPage
lda #start
sta screen
lda #screenStartHi
sta page
lda #topOfPage
sta erase
lda #screenStartHi
sta ePage
loopRow:
ldy #$00
loopBlock:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
iny
cpy #length
bne loopBlock
jsr spinWheels
jsr keys
lda screen
sta erase
lda page
sta ePage
lda #nextrow
clc
adc screen
sta screen
cmp topOfPage
bne loopRow
inc page
lda page
cmp #lastPage
bne loopRow
brk
spinWheels:
ldy #$10
more:
ldx #0
spinloop:
nop
nop
dex
bne spinloop
dey
bne more
rts
keys:
lda $ff
cmp #$61
beq a
cmp #$64
beq d
jmp skip
a:
dec screen
dec erase
dec topOfPage
jmp skip
d:
inc screen
inc erase
inc topOfPage
skip:
rts
define nextrow $20
define screenStartHi $03 // screen: $0200 to $05ff, 32 px * 32 px, 4 pages each 8 px tall
define bgColor $00 // black
define fgColor $01 // white
define lastPage $06
define topOfPage $10
define start $90 ; height of 20
define length $04
define screen $0
define page $1
define erase $2
define ePage $3
lda #start
sta screen
lda #screenStartHi
sta page
lda #topOfPage
sta erase
lda #screenStartHi
sta ePage
loop:
ldy #$00
next:
lda #fgColor
sta (screen),y
lda #bgColor
sta (erase),y
iny
cpy #length
bne next
jsr spinWheels
lda screen
sta erase
lda page
sta ePage
lda #nextrow
clc
adc screen
sta screen
brk
cmp #topOfPage
bne loop
inc page
lda page
cmp #lastPage
bne loop
brk
spinWheels:
ldx #0
spinloop:
nop
nop
dex
bne spinloop
rts
| 14.085938
| 90
| 0.636273
|
a50e91bc4a463dc71bddd58df490bc083b959681
| 4,567
|
asm
|
Assembly
|
Modules/nettle/arm/memxor.asm
|
blondfrogs/ravenwallet-ios
|
ebcaf881edb2b3d1588de200c4d2fff217c3061f
|
[
"MIT"
] | 278
|
2015-11-03T03:01:20.000Z
|
2022-01-20T18:21:05.000Z
|
Modules/nettle/arm/memxor.asm
|
blondfrogs/ravenwallet-ios
|
ebcaf881edb2b3d1588de200c4d2fff217c3061f
|
[
"MIT"
] | 374
|
2015-11-03T12:37:22.000Z
|
2021-12-17T14:18:08.000Z
|
Modules/nettle/arm/memxor.asm
|
blondfrogs/ravenwallet-ios
|
ebcaf881edb2b3d1588de200c4d2fff217c3061f
|
[
"MIT"
] | 96
|
2015-11-22T07:47:26.000Z
|
2022-01-20T19:52:19.000Z
|
C arm/memxor.asm
ifelse(<
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
>)
C Possible speedups:
C
C The ldm instruction can do load two registers per cycle,
C if the address is two-word aligned. Or three registers in two
C cycles, regardless of alignment.
C Register usage:
define(<DST>, <r0>)
define(<SRC>, <r1>)
define(<N>, <r2>)
define(<CNT>, <r6>)
define(<TNC>, <r12>)
.syntax unified
.file "memxor.asm"
.text
.arm
C memxor(void *dst, const void *src, size_t n)
.align 4
PROLOGUE(nettle_memxor)
cmp N, #0
beq .Lmemxor_done
cmp N, #7
bcs .Lmemxor_large
C Simple byte loop
.Lmemxor_bytes:
ldrb r3, [SRC], #+1
ldrb r12, [DST]
eor r3, r12
strb r3, [DST], #+1
subs N, #1
bne .Lmemxor_bytes
.Lmemxor_done:
bx lr
.Lmemxor_align_loop:
ldrb r3, [SRC], #+1
ldrb r12, [DST]
eor r3, r12
strb r3, [DST], #+1
sub N, #1
.Lmemxor_large:
tst DST, #3
bne .Lmemxor_align_loop
C We have at least 4 bytes left to do here.
sub N, #4
ands r3, SRC, #3
beq .Lmemxor_same
C Different alignment case.
C v original SRC
C +-------+------+
C |SRC |SRC+4 |
C +---+---+------+
C |DST |
C +-------+
C
C With little-endian, we need to do
C DST[i] ^= (SRC[i] >> CNT) ^ (SRC[i+1] << TNC)
push {r4,r5,r6}
lsl CNT, r3, #3
bic SRC, #3
rsb TNC, CNT, #32
ldr r4, [SRC], #+4
tst N, #4
itet eq
moveq r5, r4
subne N, #4
beq .Lmemxor_odd
.Lmemxor_word_loop:
ldr r5, [SRC], #+4
ldr r3, [DST]
eor r3, r3, r4, lsr CNT
eor r3, r3, r5, lsl TNC
str r3, [DST], #+4
.Lmemxor_odd:
ldr r4, [SRC], #+4
ldr r3, [DST]
eor r3, r3, r5, lsr CNT
eor r3, r3, r4, lsl TNC
str r3, [DST], #+4
subs N, #8
bcs .Lmemxor_word_loop
adds N, #8
beq .Lmemxor_odd_done
C We have TNC/8 left-over bytes in r4, high end
lsr r4, CNT
ldr r3, [DST]
eor r3, r4
pop {r4,r5,r6}
C Store bytes, one by one.
.Lmemxor_leftover:
strb r3, [DST], #+1
subs N, #1
beq .Lmemxor_done
subs TNC, #8
lsr r3, #8
bne .Lmemxor_leftover
b .Lmemxor_bytes
.Lmemxor_odd_done:
pop {r4,r5,r6}
bx lr
.Lmemxor_same:
push {r4,r5,r6,r7,r8,r10,r11,r14} C lr is the link register
subs N, #8
bcc .Lmemxor_same_end
ldmia SRC!, {r3, r4, r5}
C Keep address for loads in r14
mov r14, DST
ldmia r14!, {r6, r7, r8}
subs N, #12
eor r10, r3, r6
eor r11, r4, r7
eor r12, r5, r8
bcc .Lmemxor_same_final_store
subs N, #12
ldmia r14!, {r6, r7, r8}
bcc .Lmemxor_same_wind_down
C 6 cycles per iteration, 0.50 cycles/byte. For this speed,
C loop starts at offset 0x11c in the object file.
.Lmemxor_same_loop:
C r10-r12 contains values to be stored at DST
C r6-r8 contains values read from r14, in advance
ldmia SRC!, {r3, r4, r5}
subs N, #12
stmia DST!, {r10, r11, r12}
eor r10, r3, r6
eor r11, r4, r7
eor r12, r5, r8
ldmia r14!, {r6, r7, r8}
bcs .Lmemxor_same_loop
.Lmemxor_same_wind_down:
C Wind down code
ldmia SRC!, {r3, r4, r5}
stmia DST!, {r10, r11, r12}
eor r10, r3, r6
eor r11, r4, r7
eor r12, r5, r8
.Lmemxor_same_final_store:
stmia DST!, {r10, r11, r12}
.Lmemxor_same_end:
C We have 0-11 bytes left to do, and N holds number of bytes -12.
adds N, #4
bcc .Lmemxor_same_lt_8
C Do 8 bytes more, leftover is in N
ldmia SRC!, {r3, r4}
ldmia DST, {r6, r7}
eor r3, r6
eor r4, r7
stmia DST!, {r3, r4}
pop {r4,r5,r6,r7,r8,r10,r11,r14}
beq .Lmemxor_done
b .Lmemxor_bytes
.Lmemxor_same_lt_8:
pop {r4,r5,r6,r7,r8,r10,r11,r14}
adds N, #4
bcc .Lmemxor_same_lt_4
ldr r3, [SRC], #+4
ldr r12, [DST]
eor r3, r12
str r3, [DST], #+4
beq .Lmemxor_done
b .Lmemxor_bytes
.Lmemxor_same_lt_4:
adds N, #4
beq .Lmemxor_done
b .Lmemxor_bytes
EPILOGUE(nettle_memxor)
| 19.856522
| 72
| 0.662579
|
95a2c783a893c618d79da628ef2b7886c21bc51e
| 32
|
asm
|
Assembly
|
BootROMs/agb_boot.asm
|
stipton7960/SameBoy
|
3c49c2449ce1948e85baf7f7e32038c6750e4424
|
[
"MIT"
] | 1,044
|
2016-04-02T18:04:16.000Z
|
2022-03-31T16:48:38.000Z
|
BootROMs/agb_boot.asm
|
binarycounter/SameBoy
|
fe28e28e20ca5c78cac79601f2e32de856d95fd3
|
[
"MIT"
] | 376
|
2016-04-02T20:44:26.000Z
|
2022-03-31T05:22:39.000Z
|
BootROMs/agb_boot.asm
|
binarycounter/SameBoy
|
fe28e28e20ca5c78cac79601f2e32de856d95fd3
|
[
"MIT"
] | 180
|
2017-04-17T01:12:44.000Z
|
2022-03-30T07:58:06.000Z
|
AGB EQU 1
include "cgb_boot.asm"
| 16
| 22
| 0.78125
|
aa8ebce89ce83985ef65e83523001469f4fdd5b3
| 4,338
|
asm
|
Assembly
|
in/assembly.asm
|
orestarod/pl2vm_gc
|
ca0d1155ac76958cd41520cbce9bec532a265bcc
|
[
"Unlicense"
] | null | null | null |
in/assembly.asm
|
orestarod/pl2vm_gc
|
ca0d1155ac76958cd41520cbce9bec532a265bcc
|
[
"Unlicense"
] | null | null | null |
in/assembly.asm
|
orestarod/pl2vm_gc
|
ca0d1155ac76958cd41520cbce9bec532a265bcc
|
[
"Unlicense"
] | null | null | null |
Line 0:: jump :: (0x4b) 0x4b 0x4b
Line 0x3:: push1 :: 0
Line 0x5:: push1 :: 0xa
Line 0x7:: push1 :: 0x21
Line 0x9:: push1 :: 0x67
Line 0xb:: push1 :: 0x6e
Line 0xd:: push1 :: 0x69
Line 0xf:: push1 :: 0x6b
Line 0x11:: push1 :: 0x72
Line 0x13:: push1 :: 0x6f
Line 0x15:: push1 :: 0x77
Line 0x17:: push1 :: 0x20
Line 0x19:: push1 :: 0x74
Line 0x1b:: push1 :: 0x6f
Line 0x1d:: push1 :: 0x6e
Line 0x1f:: push1 :: 0x20
Line 0x21:: push1 :: 0x73
Line 0x23:: push1 :: 0x69
Line 0x25:: push1 :: 0x20
Line 0x27:: push1 :: 0x70
Line 0x29:: push1 :: 0x6d
Line 0x2b:: push1 :: 0x75
Line 0x2d:: push1 :: 0x6a
Line 0x2f:: push1 :: 0x20
Line 0x31:: push1 :: 0x3a
Line 0x33:: push1 :: 0x72
Line 0x35:: push1 :: 0x6f
Line 0x37:: push1 :: 0x72
Line 0x39:: push1 :: 0x72
Line 0x3b:: push1 :: 0x45
Line 0x3d:: dup :: 0
Line 0x3f:: jnz :: (0x46) 0x46 0x46
Line 0x42:: drop ::
Line 0x43:: jump :: (0x4a) 0x4a 0x4a
Line 0x46:: output ::
Line 0x47:: jump :: (0x3d) 0x3d 0x3d
Line 0x4a:: halt ::
Line 0x4b:: push4 :: (0x2838709) 0x9 0x9 0x9 0x9
Line 0x50:: push1 :: 0
Line 0x52:: push1 :: 0xa
Line 0x54:: push1 :: 0x21
Line 0x56:: push1 :: 0x64
Line 0x58:: push1 :: 0x6c
Line 0x5a:: push1 :: 0x72
Line 0x5c:: push1 :: 0x6f
Line 0x5e:: push1 :: 0x77
Line 0x60:: push1 :: 0x20
Line 0x62:: push1 :: 0x6f
Line 0x64:: push1 :: 0x6c
Line 0x66:: push1 :: 0x6c
Line 0x68:: push1 :: 0x65
Line 0x6a:: push1 :: 0x48
Line 0x6c:: dup :: 0
Line 0x6e:: jnz :: (0x75) 0x75 0x75
Line 0x71:: drop ::
Line 0x72:: jump :: (0x79) 0x79 0x79
Line 0x75:: output ::
Line 0x76:: jump :: (0x6c) 0x6c 0x6c
Line 0x79:: push1 :: 0x11
Line 0x7b:: push1 :: 0x2a
Line 0x7d:: output ::
Line 0x7e:: push1 :: 0x11
Line 0x80:: sub ::
Line 0x81:: dup :: 0
Line 0x83:: jnz :: (0x7b) 0x7b 0x7b
Line 0x86:: drop ::
Line 0x87:: push1 :: 0xa
Line 0x89:: output ::
Line 0x8a:: clock ::
Line 0x8b:: push4 :: (0x2838709) 0x9 0x9 0x9 0x9
Line 0x90:: eq ::
Line 0x91:: jnz :: (0xff) 0xffffffff 0xffffffff
Line 0x94:: push1 :: 0
Line 0x96:: push1 :: 0xa
Line 0x98:: push1 :: 0x21
Line 0x9a:: push1 :: 0x79
Line 0x9c:: push1 :: 0x6c
Line 0x9e:: push1 :: 0x72
Line 0xa0:: push1 :: 0x65
Line 0xa2:: push1 :: 0x70
Line 0xa4:: push1 :: 0x6f
Line 0xa6:: push1 :: 0x72
Line 0xa8:: push1 :: 0x70
Line 0xaa:: push1 :: 0x20
Line 0xac:: push1 :: 0x67
Line 0xae:: push1 :: 0x6e
Line 0xb0:: push1 :: 0x69
Line 0xb2:: push1 :: 0x6b
Line 0xb4:: push1 :: 0x72
Line 0xb6:: push1 :: 0x6f
Line 0xb8:: push1 :: 0x77
Line 0xba:: push1 :: 0x20
Line 0xbc:: push1 :: 0x74
Line 0xbe:: push1 :: 0x6f
Line 0xc0:: push1 :: 0x6e
Line 0xc2:: push1 :: 0x20
Line 0xc4:: push1 :: 0x73
Line 0xc6:: push1 :: 0x6e
Line 0xc8:: push1 :: 0x6f
Line 0xca:: push1 :: 0x69
Line 0xcc:: push1 :: 0x74
Line 0xce:: push1 :: 0x61
Line 0xd0:: push1 :: 0x72
Line 0xd2:: push1 :: 0x65
Line 0xd4:: push1 :: 0x70
Line 0xd6:: push1 :: 0x6f
Line 0xd8:: push1 :: 0x20
Line 0xda:: push1 :: 0x6b
Line 0xdc:: push1 :: 0x63
Line 0xde:: push1 :: 0x61
Line 0xe0:: push1 :: 0x74
Line 0xe2:: push1 :: 0x73
Line 0xe4:: push1 :: 0x20
Line 0xe6:: push1 :: 0x3a
Line 0xe8:: push1 :: 0x72
Line 0xea:: push1 :: 0x6f
Line 0xec:: push1 :: 0x72
Line 0xee:: push1 :: 0x72
Line 0xf0:: push1 :: 0x45
Line 0xf2:: dup :: 0
Line 0xf4:: jnz :: (0xfb) 0xfffffffb 0xfffffffb
Line 0xf7:: drop ::
Line 0xf8:: jump :: (0xff) 0xffffffff 0xffffffff
Line 0xfb:: output ::
Line 0xfc:: jump :: (0xf2) 0xfffffff2 0xfffffff2
Line 0xff:: halt ::
Line 0x100:: push1 :: 0
Line 0x102:: push1 :: 0xa
Line 0x104:: push1 :: 0x21
Line 0x106:: push1 :: 0x67
Line 0x108:: push1 :: 0x6e
Line 0x10a:: push1 :: 0x69
Line 0x10c:: push1 :: 0x6b
Line 0x10e:: push1 :: 0x72
Line 0x110:: push1 :: 0x6f
Line 0x112:: push1 :: 0x77
Line 0x114:: push1 :: 0x20
Line 0x116:: push1 :: 0x74
Line 0x118:: push1 :: 0x6f
Line 0x11a:: push1 :: 0x6e
Line 0x11c:: push1 :: 0x20
Line 0x11e:: push1 :: 0x73
Line 0x120:: push1 :: 0x69
Line 0x122:: push1 :: 0x20
Line 0x124:: push1 :: 0x74
Line 0x126:: push1 :: 0x6c
Line 0x128:: push1 :: 0x61
Line 0x12a:: push1 :: 0x68
Line 0x12c:: push1 :: 0x20
Line 0x12e:: push1 :: 0x3a
Line 0x130:: push1 :: 0x72
Line 0x132:: push1 :: 0x6f
Line 0x134:: push1 :: 0x72
Line 0x136:: push1 :: 0x72
Line 0x138:: push1 :: 0x45
Line 0x13a:: dup :: 0
Line 0x13c:: jnz :: (0x143) 0x43 0x43
Line 0x13f:: drop ::
Line 0x140:: jump :: (0x147) 0x47 0x47
Line 0x143:: output ::
Line 0x144:: jump :: (0x13a) 0x3a 0x3a
| 26.944099
| 48
| 0.653296
|
ce81dac8ee73be97465fe1a9051fe4e8114f868f
| 7,646
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1152.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1152.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1152.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16833, %r8
nop
nop
nop
dec %r12
movb $0x61, (%r8)
nop
nop
nop
sub %r13, %r13
lea addresses_WT_ht+0x1de33, %rsi
lea addresses_WC_ht+0x8a33, %rdi
and %rbp, %rbp
mov $75, %rcx
rep movsl
nop
nop
nop
sub %r8, %r8
lea addresses_WC_ht+0xd133, %r11
nop
nop
nop
nop
cmp %r13, %r13
mov $0x6162636465666768, %rbp
movq %rbp, (%r11)
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_normal_ht+0x19033, %rbp
nop
dec %rcx
mov $0x6162636465666768, %r11
movq %r11, %xmm3
vmovups %ymm3, (%rbp)
nop
add %rbp, %rbp
lea addresses_A_ht+0x8e07, %rsi
lea addresses_UC_ht+0x1b433, %rdi
nop
inc %rbp
mov $19, %rcx
rep movsb
nop
inc %r8
lea addresses_D_ht+0x44eb, %rsi
lea addresses_WC_ht+0x521f, %rdi
nop
nop
nop
nop
add $48316, %r11
mov $25, %rcx
rep movsq
nop
nop
nop
nop
sub $41523, %r12
lea addresses_D_ht+0x1cb3, %rcx
xor %r11, %r11
mov $0x6162636465666768, %rdi
movq %rdi, (%rcx)
nop
nop
cmp $3296, %rdi
lea addresses_WT_ht+0x72f3, %r11
nop
nop
nop
nop
nop
add $51501, %r12
mov $0x6162636465666768, %r8
movq %r8, %xmm3
movups %xmm3, (%r11)
nop
nop
inc %rcx
lea addresses_UC_ht+0x2af3, %rsi
lea addresses_UC_ht+0x3993, %rdi
nop
nop
nop
nop
inc %r12
mov $73, %rcx
rep movsw
nop
nop
add %r12, %r12
lea addresses_WT_ht+0x14cb3, %rdi
inc %rsi
mov (%rdi), %r8
nop
nop
nop
nop
nop
add $42244, %rsi
lea addresses_D_ht+0x17c1b, %r8
nop
nop
sub %r11, %r11
vmovups (%r8), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rcx
nop
nop
nop
xor %rcx, %rcx
lea addresses_WC_ht+0x16033, %rsi
lea addresses_WC_ht+0x8abb, %rdi
nop
nop
nop
nop
cmp $35829, %r11
mov $15, %rcx
rep movsl
nop
nop
nop
nop
xor $34009, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
// Store
lea addresses_UC+0xed93, %r10
nop
nop
sub %r15, %r15
mov $0x5152535455565758, %r8
movq %r8, %xmm6
vmovups %ymm6, (%r10)
nop
nop
nop
nop
cmp %r10, %r10
// Store
lea addresses_WT+0x126b3, %rcx
nop
nop
sub $27452, %r13
mov $0x5152535455565758, %r10
movq %r10, (%rcx)
nop
nop
nop
nop
nop
dec %rcx
// Faulty Load
mov $0x4295d80000000033, %r8
nop
nop
nop
nop
sub %r13, %r13
mov (%r8), %dx
lea oracles, %r8
and $0xff, %rdx
shlq $12, %rdx
mov (%r8,%rdx,1), %rdx
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 7}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_A_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 32.815451
| 2,999
| 0.658907
|
cc77915e87aaac141aa7792de7d35bafe3a087fe
| 2,312
|
asm
|
Assembly
|
lib/target/test/classic/test_crt0.asm
|
w5Mike/z88dk
|
f5090488e1d74ead8c865afe6df48231cd5c70ba
|
[
"ClArtistic"
] | null | null | null |
lib/target/test/classic/test_crt0.asm
|
w5Mike/z88dk
|
f5090488e1d74ead8c865afe6df48231cd5c70ba
|
[
"ClArtistic"
] | null | null | null |
lib/target/test/classic/test_crt0.asm
|
w5Mike/z88dk
|
f5090488e1d74ead8c865afe6df48231cd5c70ba
|
[
"ClArtistic"
] | null | null | null |
;
; Startup for test emulator
;
; $Id: test_crt0.asm,v 1.12 2016-06-21 20:49:07 dom Exp $
module test_crt0
INCLUDE "test_cmds.def"
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN _main ;main() is always external to crt0 code
EXTERN asm_im1_handler
PUBLIC cleanup ;jp'd to by exit()
PUBLIC l_dcal ;jp(hl)
defc TAR__clib_exit_stack_size = 32
defc TAR__register_sp = 65280
defc CRT_KEY_DEL = 127
defc __CPU_CLOCK = 4000000
IF !__CPU_RABBIT__ && !__CPU_GBZ80__
IF CRT_ORG_CODE = 0x0000
; We want to intercept rst38 to our interrupt routine
defc TAR__crt_enable_rst = $8080
EXTERN asm_im1_handler
defc _z80_rst_38h = asm_im1_handler
ENDIF
ENDIF
INCLUDE "crt/classic/crt_rules.inc"
IF !DEFINED_CRT_ORG_CODE
defc CRT_ORG_CODE = 0x0000
ENDIF
org CRT_ORG_CODE
IF CRT_ORG_CODE = 0x0000
if (ASMPC<>$0000)
defs CODE_ALIGNMENT_ERROR
endif
jp program
INCLUDE "crt/classic/crt_z80_rsts.asm"
ENDIF
program:
INCLUDE "crt/classic/crt_init_sp.asm"
INCLUDE "crt/classic/crt_init_atexit.asm"
call crt0_init_bss
IF __CPU_GBZ80__
ld hl,sp+0
ld d,h
ld e,l
ld hl,exitsp
ld a,l
ld (hl+),a
ld a,h
ld (hl+),a
ELSE
ld hl,0
add hl,sp
ld (exitsp),hl
ENDIF
IF !__CPU_R2K__
ei
ENDIF
; Optional definition for auto MALLOC init
; it assumes we have free space between the end of
; the compiled program and the stack pointer
IF DEFINED_USING_amalloc
INCLUDE "crt/classic/crt_init_amalloc.asm"
ENDIF
ld a,(argv_length)
and a
jp z,argv_done
ld c,a
ld b,0
ld hl,argv_start
add hl,bc ; now points to end of the command line
INCLUDE "crt/classic/crt_command_line.asm"
push hl ;argv
push bc ;argc
call _main
pop bc
pop bc
cleanup:
push hl
call crt0_exit
pop hl
ld a,CMD_EXIT ;exit
; Fall into SYSCALL
SYSCALL:
; a = command to execute
defb $ED, $FE ;trap
ret
l_dcal: jp (hl) ;Used for function pointer calls
INCLUDE "crt/classic/crt_runtime_selection.asm"
INCLUDE "crt/classic/crt_section.asm"
SECTION rodata_clib
end: defb 0 ; null file name
| 17.784615
| 73
| 0.66436
|
627a8ea7cd929492587c1defbe9b8b00115bb4c5
| 812
|
asm
|
Assembly
|
oeis/074/A074087.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/074/A074087.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/074/A074087.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A074087: Coefficient of q^1 in nu(n), where nu(0)=1, nu(1)=b and, for n>=2, nu(n)=b*nu(n-1)+lambda*(1+q+q^2+...+q^(n-2))*nu(n-2) with (b,lambda)=(2,3).
; Submitted by Jon Maiga
; 0,0,0,6,33,144,570,2118,7587,26448,90420,304470,1013061,3338112,10911150,35423862,114342855,367242336,1174368360,3741029094,11876859369,37591894320,118659631650,373630740966,1173847761003,3680409897264,11517829534620,35983288132278,112239262982157,349585984702368,1087362541374870,3377901385927830,10481145443193231,32485760185808832,100584252126114000,311133671084404422,961543757371400625,2969059504468763856,9160463210469977610,28241243722600990854,87003293441376146739,267848567144847962640
lpb $0
sub $0,1
add $2,$0
add $4,$2
mov $2,$3
add $2,$3
add $2,$3
mov $3,$4
sub $3,1
mul $4,2
lpe
mov $0,$2
div $0,2
| 45.111111
| 496
| 0.763547
|
64de46cb345d199ecde4a1f67df79489178f0147
| 2,424
|
asm
|
Assembly
|
rom.asm
|
pepijndevos/seqpu
|
597de914d6c0fe7d2450a1c69b431e7b73750c58
|
[
"Apache-2.0"
] | 13
|
2019-08-01T07:35:26.000Z
|
2022-02-28T21:10:42.000Z
|
rom.asm
|
pepijndevos/seqpu
|
597de914d6c0fe7d2450a1c69b431e7b73750c58
|
[
"Apache-2.0"
] | 2
|
2019-09-27T16:14:31.000Z
|
2021-10-14T20:53:23.000Z
|
rom.asm
|
pepijndevos/seqpu
|
597de914d6c0fe7d2450a1c69b431e7b73750c58
|
[
"Apache-2.0"
] | null | null | null |
%define slide_size 600
%define returnpointer 0x1ffe
%define slide_src 0x1ffd
%define slide_dest 0x1ffc
%define slide_end 0x1ffb
%define slide_index 0x1ffa
%define vram 0x2000
// sign extended to 0xffff
%define btnio 0x01ff
// fake button input
b a 1
b b btnio
xch b
st
// set slide_index to 0
//b a 0
//lit slide_index
//xch b
//st
// load slide 0
lit slides
b a
//lit 600
//add a
lit slide_src
xch b
st // store slide address
lit returnpointer
xch b
lit button_loop
b a
st // return address
lit loadSlide
b pc
// read buttons
button_loop:
lit returnpointer
xch b
lit releaseloop
b a
st // return address
b b btnio
xch b
ld
b a
eq a 0b01 // button 1
lit nextSlide
b pcc // nextSlide if button 1
eq a 0b10 // button 2
lit prevSlide
b pcc // prevSlide if button 1
lit button_loop
b pc // else loop
releaseloop:
// wair for a while
b a 0x1ff // set counter
waitloop:
sub a 1
gt a 0
lit waitloop
b pcc
// wait until button is released
b b btnio
xch b
ld
b a
eq a 0 // no buttons
lit released
b pcc // nextSlide if button 1
lit releaseloop
b pc // else loop
released:
lit returnpointer
xch b
lit button_loop // return to loop
b a
st // return address
lit loadSlide
b pc
// should never get here
lit end
end: b pc
loadSlide:
// set slide_dest
lit vram
b a
lit slide_dest
xch b
st
// set slide_end
lit slide_src
xch b
ld
b a
lit slide_size
add a
lit slide_end
xch b
st
lit slide_dest
xch b
ld // b=&dest
xch b
xch sp' // sp'=&dest
lit slide_src
xch b
ld // b=&source
b a
sub b 1 // pop pre-increments
xch b // sp=&source, sp'=&dest
copy_loop:
pop add 1
xch sp'
b a
push add 1
xch sp' // a=word, sp=&source++, sp'=&dest++
xch b
b a // a=&source
lit slide_end
xch b // a=&source, sp=slide_end, sp'=&dest
ld // a=&source, b=&end, sp'=&dest
eq a
lit copy_loop_end
b pcc // break loop if &source=&end
a b
xch b // sp=&source, sp'=&dest
lit copy_loop
b pc // loop
copy_loop_end:
lit returnpointer
xch b
ld
b pc
nextSlide:
lit slide_index
xch b
ld
b a // a=slide_index
lit slide_size
add a // a=idx+size
lit slide_index
xch b
st // store slide_index
lit slides
add a // a=slides+idx+size
lit slide_src
xch b
st // store slide_src
lit returnpointer
xch b
ld
b pc
prevSlide:
lit slide_index
xch b
ld
b a // a=slide_index
lit slide_size
sub a // a=idx-size
lit slide_index
xch b
st // store slide_index
lit slides
add a // a=slides+idx+size
lit slide_src
xch b
st // store slide_src
lit returnpointer
xch b
ld
b pc
slides:
| 12.825397
| 44
| 0.72071
|
d9bf00d7c6ea5a728ad5528cb8bc2e31cb3337c6
| 5,531
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_251.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xe5bd, %rax
nop
nop
nop
nop
cmp $16340, %r9
movups (%rax), %xmm0
vpextrq $0, %xmm0, %r14
xor $56411, %r9
lea addresses_UC_ht+0xf84d, %rsi
lea addresses_A_ht+0xe501, %rdi
nop
nop
nop
nop
cmp %r11, %r11
mov $12, %rcx
rep movsw
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WT_ht+0x170bd, %r11
cmp %rax, %rax
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
and $0xffffffffffffffc0, %r11
vmovaps %ymm1, (%r11)
cmp $21946, %rsi
lea addresses_UC_ht+0x107bd, %rsi
nop
nop
nop
and %r9, %r9
movups (%rsi), %xmm4
vpextrq $0, %xmm4, %rax
nop
add %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rsi
// Store
lea addresses_US+0x3dbd, %rbx
nop
nop
nop
nop
add %r14, %r14
mov $0x5152535455565758, %rbp
movq %rbp, %xmm0
movaps %xmm0, (%rbx)
nop
nop
nop
nop
nop
dec %r15
// Store
lea addresses_WT+0x718f, %rsi
nop
nop
nop
nop
cmp $55881, %r14
mov $0x5152535455565758, %rcx
movq %rcx, (%rsi)
nop
nop
sub $602, %rbp
// Faulty Load
lea addresses_UC+0x135bd, %r15
nop
nop
sub $56343, %rcx
vmovntdqa (%r15), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rbx
lea oracles, %r15
and $0xff, %rbx
shlq $12, %rbx
mov (%r15,%rbx,1), %rbx
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_US', 'AVXalign': True, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'same': True, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 32}}
{'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'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
*/
| 41.586466
| 2,999
| 0.659736
|
8461749767595aa19d4e1b9ec6df147983838a86
| 1,160
|
asm
|
Assembly
|
Assembly_Mips/hello_world.asm
|
pranesh-sp/hacktoberfest-1
|
da507fe356bce12a4ba23490f8e3c10f86858bce
|
[
"MIT"
] | null | null | null |
Assembly_Mips/hello_world.asm
|
pranesh-sp/hacktoberfest-1
|
da507fe356bce12a4ba23490f8e3c10f86858bce
|
[
"MIT"
] | null | null | null |
Assembly_Mips/hello_world.asm
|
pranesh-sp/hacktoberfest-1
|
da507fe356bce12a4ba23490f8e3c10f86858bce
|
[
"MIT"
] | null | null | null |
# Hi I love Hello World snippet, because coding for me is more than just words it is a expression of freedom and power
# and saying Hello to the World in Assembly Mips is so loving nice that I really enjoy, so here is my hello world.
# to run this code go to http://courses.missouristate.edu/kenvollmar/mars/
# download mars program (it is written in java, but it's ok)
.text # in assembly there is a guy named program counter bellow .text is the code
.globl main # set main as a global value
j main # jump to main
exit: # fuction exit
li $v0, 10 # prepare the program to end
syscall # execute instructions
main: # label main
li $v0, 4 # prepare screen to a string
la $a0, olah # load the string olah to the register $a0
syscall # execute
j exit # jump to exit
.data # in this part you write the variables to your code.
olah: .asciiz " \n Hello World \n I love you\n Thanks Hacktoberfest 2019\n"
| 46.4
| 118
| 0.575862
|
b7c03358fdc853669592d291c577485e350b98a0
| 2,393
|
asm
|
Assembly
|
subs/storeseq.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 28
|
2015-02-03T01:38:24.000Z
|
2022-03-23T05:48:24.000Z
|
subs/storeseq.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 20
|
2015-01-02T14:51:20.000Z
|
2021-01-09T21:37:19.000Z
|
subs/storeseq.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 9
|
2015-02-11T17:43:56.000Z
|
2019-09-05T11:07:02.000Z
|
TITLE STORESEQ - Copyright (c) SLR Systems 1994
INCLUDE MACROS
PUBLIC STORE_EAXECX_EDXEBX_RANDOM,STORE_EAXECX_EDX_SEQ
.DATA
EXTERNDEF OPTI_STOSD_SIZE:DWORD
.CODE ROOT_TEXT
externdef _checkpoint:proc
EXTERNDEF GET_NEW_LOG_BLK:PROC,ERR_ABORT:PROC
STORE_EAXECX_EDXEBX_RANDOM PROC
;
;ESI IS SOURCE STRING
;ECX IS BYTE COUNT TO WRITE
;EBX IS DATA-TYPE STRUCTURE TO USE
;EDI IS DESTINATION
;
;EAX IS SOURCE STRING
;ECX IS BYTE COUNT TO WRITE
;EDX IS DATA-TYPE STRUCTURE
;EBX IS TARGET ADDRESS
;
;STORE NEW HIGH FIRST
;
ASSUME EDX:PTR SEQ_STRUCT
PUSHM EDI,EBX
PUSH ESI
LEA ESI,[EBX+ECX]
MOV EDI,[EDX]._SEQ_PTR
CMP EDI,ESI
JAE SDBS_1
MOV [EDX]._SEQ_PTR,ESI
JMP SDBS_1
STORE_EAXECX_EDXEBX_RANDOM ENDP
STORE_EAXECX_EDX_SEQ PROC
;
;EAX IS SOURCE STRING
;ECX IS BYTE COUNT TO WRITE
;EDX IS DATA-TYPE STRUCTURE TO USE, SEQ_STRUCT*
;
PUSHM EDI,EBX
MOV EBX,[EDX]._SEQ_PTR
MOV EDI,ECX
ADD EDI,EBX
PUSH ESI
MOV [EDX]._SEQ_PTR,EDI
SDBS_1::
MOV EDI,EBX
SHR EDI,16-PAGE_SHIFT
AND EBX,PAGE_SIZE-1
MOV ESI,EAX
MOV EAX,PAGE_SIZE
; The size is set by the size of _SEQ_TABLE[] in common/macros.h and common/macros
cmp EDI,SEQ_TABLE_MAX
jb L100$
push EDI
call _checkpoint
add ESP,4
hlt
L100$:
LEA EDX,[EDX+EDI*4]._SEQ_TABLE
SUB EAX,EBX ;BYTES LEFT THIS BLOCK
ASSUME EDX:NOTHING
CMP EAX,ECX
MOV EDI,[EDX]
JC SDBS_TWO ;NOPE, NEED TWO
SDBS_TWO_1:
TEST EDI,EDI
JZ L4$
L1$:
ADD EDI,EBX
L2$:
OPTI_MOVSB
POPM ESI,EBX,EDI
RET
L4$:
MOV EDI,EBX
CALL GET_NEW_LOG_BLK
MOV [EDX],EAX
ADD EDI,EAX
GETT BL,STORE_DSSICX_USE_ZERO
OR BL,BL
JZ L2$
PUSHM EDI,ECX
MOV EDI,EAX
MOV ECX,OPTI_STOSD_SIZE
XOR EAX,EAX
REP STOSD
POPM ECX,EDI
JMP L2$
SDBS_TWO:
;
;OOPS, CROSSES A 16K BLOCK BOUNDARY... DO TWO MOVES
;
CALL SDBS_TWO_PROC
JMP SDBS_TWO_1
STORE_EAXECX_EDX_SEQ ENDP
SDBS_TWO_PROC PROC NEAR
;
;
;
SUB ECX,EAX
TEST EDI,EDI
PUSH ECX
JZ L4$
MOV ECX,EAX
ADD EDI,EBX
L1$:
ADD EDX,4
XOR EBX,EBX
OPTI_MOVSB
POP ECX
MOV EDI,[EDX]
RET
L4$:
MOV ECX,EAX
CALL GET_NEW_LOG_BLK
MOV [EDX],EAX
LEA EDI,[EAX+EBX]
GETT BL,STORE_DSSICX_USE_ZERO
OR BL,BL
JZ L1$
PUSHM EDI,ECX
MOV EDI,EAX
MOV ECX,OPTI_STOSD_SIZE
XOR EAX,EAX
REP STOSD
POPM ECX,EDI
JMP L1$
SDBS_TWO_PROC ENDP
END
| 12.463542
| 82
| 0.689511
|
1557516a262ab00959a2495f81e7537260081acd
| 1,061
|
asm
|
Assembly
|
_build/dispatcher/jmp_ippsSHA512GetTag_d1d769c8.asm
|
zyktrcn/ippcp
|
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
|
[
"Apache-2.0"
] | 1
|
2021-10-04T10:21:54.000Z
|
2021-10-04T10:21:54.000Z
|
_build/dispatcher/jmp_ippsSHA512GetTag_d1d769c8.asm
|
zyktrcn/ippcp
|
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
|
[
"Apache-2.0"
] | null | null | null |
_build/dispatcher/jmp_ippsSHA512GetTag_d1d769c8.asm
|
zyktrcn/ippcp
|
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
|
[
"Apache-2.0"
] | null | null | null |
extern m7_ippsSHA512GetTag:function
extern n8_ippsSHA512GetTag:function
extern y8_ippsSHA512GetTag:function
extern e9_ippsSHA512GetTag:function
extern l9_ippsSHA512GetTag:function
extern n0_ippsSHA512GetTag:function
extern k0_ippsSHA512GetTag:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsSHA512GetTag
.Larraddr_ippsSHA512GetTag:
dq m7_ippsSHA512GetTag
dq n8_ippsSHA512GetTag
dq y8_ippsSHA512GetTag
dq e9_ippsSHA512GetTag
dq l9_ippsSHA512GetTag
dq n0_ippsSHA512GetTag
dq k0_ippsSHA512GetTag
segment .text
global ippsSHA512GetTag:function (ippsSHA512GetTag.LEndippsSHA512GetTag - ippsSHA512GetTag)
.Lin_ippsSHA512GetTag:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsSHA512GetTag:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsSHA512GetTag]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsSHA512GetTag:
| 27.205128
| 91
| 0.792648
|
ebc98534d7905738c7cb69571d71741726850ca6
| 98
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log10.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log10.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/log10.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _log10
EXTERN cm48_sdcciy_log10
defc _log10 = cm48_sdcciy_log10
| 10.888889
| 31
| 0.846939
|
3da0f08c6ea7dfb64fb51032a971f31176f2a3d3
| 353
|
asm
|
Assembly
|
programs/oeis/334/A334603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/334/A334603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/334/A334603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A334603: Period length of the fraction 1/11^n for n >= 1.
; 2,22,242,2662,29282,322102,3543122,38974342,428717762,4715895382,51874849202,570623341222,6276856753442,69045424287862,759499667166482,8354496338831302,91899459727144322,1010894056998587542,11119834626984462962,122318180896829092582
mov $1,11
pow $1,$0
div $1,2
mul $1,4
add $1,2
mov $0,$1
| 35.3
| 234
| 0.807365
|
fa478dc97132ece52470d17bd4cf8d3831ca57f0
| 479
|
asm
|
Assembly
|
src/stdarg.asm
|
MasterLogick/VSBL
|
95205ff8fd856fa88b5770978d8149ba1b4579ed
|
[
"CC0-1.0"
] | null | null | null |
src/stdarg.asm
|
MasterLogick/VSBL
|
95205ff8fd856fa88b5770978d8149ba1b4579ed
|
[
"CC0-1.0"
] | null | null | null |
src/stdarg.asm
|
MasterLogick/VSBL
|
95205ff8fd856fa88b5770978d8149ba1b4579ed
|
[
"CC0-1.0"
] | null | null | null |
BITS 32
section .text
; void _pr_start_asm(pr_list *list, void *last_arg);
global _pr_start_asm
_pr_start_asm:
mov eax, [esp + 0x8]
add eax, 4
mov ebx, [esp + 0x4]
mov [ebx], eax
ret
.end:
size _pr_start_asm _pr_start_asm.end - _pr_start_asm
; uint32_t _pr_arg_asm(pr_list list, int i)
global _pr_arg_asm
_pr_arg_asm:
mov eax, [esp + 0x4]
mov ebx, [esp + 0x8]
mov eax, [eax + 4 * ebx]
ret
.end:
size _pr_arg_asm _pr_arg_asm.end - _pr_arg_asm
| 20.826087
| 52
| 0.680585
|
bc1839f679744389e2074325d16afb2871b25514
| 2,743
|
asm
|
Assembly
|
maps/PewterMuseum2F.asm
|
zavytar/pokecolorless
|
5fa4930f9f90acaff7ae62367e3d9feae0404464
|
[
"blessing"
] | null | null | null |
maps/PewterMuseum2F.asm
|
zavytar/pokecolorless
|
5fa4930f9f90acaff7ae62367e3d9feae0404464
|
[
"blessing"
] | null | null | null |
maps/PewterMuseum2F.asm
|
zavytar/pokecolorless
|
5fa4930f9f90acaff7ae62367e3d9feae0404464
|
[
"blessing"
] | null | null | null |
object_const_def ; object_event constants
const PEWTERMUSEUM2F_GRAMPS
const PEWTERMUSEUM2F_SCIENTIST
const PEWTERMUSEUM2F_COOLTRAINERM
const PEWTERMUSEUM2F_POKEFAN
const PEWTERMUSEUM2F_TWIN
PewterMuseum2F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
PewterMuseum2F_GrampsScript:
jumptextfaceplayer PewterMuseum2F_GrampsText
PewterMuseum2F_ScientistScript:
jumptextfaceplayer PewterMuseum2F_ScientistText
PewterMuseum2F_CooltrainerMScript:
jumptextfaceplayer PewterMuseum2F_CooltrainerMText
PewterMuseum2F_PokefanScript:
turnobject PEWTERMUSEUM2F_POKEFAN, RIGHT
opentext
writetext PewterMuseum2F_PokefanText
waitbutton
closetext
;PokefanMike:
faceplayer
opentext
trade NPC_TRADE_MIKE
waitbutton
closetext
end
PewterMuseum2F_TwinScript:
jumptextfaceplayer PewterMuseum2F_TwinText
PewterMuseum2F_SpaceShuttle:
jumptext PewterMuseum2F_SpaceShuttleText
PewterMuseum2F_MoonStone:
jumptext PewterMuseum2F_MoonStoneText
PewterMuseum2F_GrampsText:
text "July 20, 1969!"
para "The 1st lunar"
line "landing!"
para "I bought a color"
line "TV to watch it!"
done
PewterMuseum2F_ScientistText:
text "We have a space"
line "exhibit now."
done
PewterMuseum2F_CooltrainerMText:
text "MOON STONE?"
para "What's so special"
line "about it?"
done
PewterMuseum2F_PokefanText:
text "Yeah, a PIKACHU"
line "soon, I promise!"
done
PewterMuseum2F_TwinText:
text "I want a PIKACHU!"
line "It's so cute!"
para "I asked my Daddy"
line "to catch me one!"
done
PewterMuseum2F_SpaceShuttleText:
text "SPACE SHUTTLE"
done
PewterMuseum2F_MoonStoneText:
text "Meteorite that"
line "fell on MT.MOON."
para "Could it be a"
line "MOON STONE?"
done
PewterMuseum2F_MapEvents:
db 0, 0 ; filler
db 1 ; warp events
warp_event 6, 6, PEWTER_MUSEUM_1F, 3
db 0 ; coord events
db 2 ; bg events
bg_event 11, 2, BGEVENT_READ, PewterMuseum2F_SpaceShuttle
bg_event 2, 5, BGEVENT_READ, PewterMuseum2F_MoonStone
db 5 ; object events
object_event 4, 2, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, PewterMuseum2F_GrampsScript, -1
object_event 12, 3, SPRITE_SCIENTIST, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PewterMuseum2F_ScientistScript, -1
object_event 3, 6, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PewterMuseum2F_CooltrainerMScript, -1
object_event 11, 6, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PewterMuseum2F_PokefanScript, -1
object_event 12, 6, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, PewterMuseum2F_TwinScript, -1
| 24.274336
| 160
| 0.799125
|
e3ecb128a02959ae1a9ddd7f3915a2a65a39322d
| 324
|
asm
|
Assembly
|
programs/oeis/225/A225539.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/225/A225539.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/225/A225539.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A225539: Numbers n where 2^n and n have the same digital root.
; 5,16,23,34,41,52,59,70,77,88,95,106,113,124,131,142,149,160,167,178,185,196,203,214,221,232,239,250,257,268,275,286,293,304,311,322,329,340,347,358,365,376,383,394,401,412,419,430,437,448
add $0,3
mul $0,9
mov $1,-1
bin $1,$0
add $1,$0
sub $1,21
mov $0,$1
| 29.454545
| 189
| 0.685185
|
d8a1bc3ec09396a3c3ac21601b7fdde8fab951c0
| 278
|
asm
|
Assembly
|
programs/oeis/047/A047356.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/047/A047356.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/047/A047356.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A047356: Numbers that are congruent to {1, 3} mod 7.
; 1,3,8,10,15,17,22,24,29,31,36,38,43,45,50,52,57,59,64,66,71,73,78,80,85,87,92,94,99,101,106,108,113,115,120,122,127,129,134,136,141,143,148,150,155,157,162,164,169
mov $1,$0
mul $1,3
div $1,2
mul $1,14
div $1,6
add $1,1
| 27.8
| 165
| 0.661871
|
cc9bcb63f222921be515bc098a24af25ba260a7e
| 538
|
asm
|
Assembly
|
oeis/039/A039638.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/039/A039638.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/039/A039638.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A039638: Fixed point of "k -> k/2 or (k-1)/2 until result is prime", starting with prime(n)-1.
; Submitted by Jon Maiga
; 1,2,2,3,5,3,2,2,11,7,7,2,5,5,23,13,29,7,2,17,2,19,41,11,3,3,3,53,13,7,31,2,17,17,37,37,19,5,83,43,89,11,47,3,3,3,13,13,113,7,29,59,7,31,2,131,67,67,17,17,17,73,19,19,19,79,41,5,173,43,11,179,11,23,47,191,97,3,3,3,13,13,107,13,109,13,7,7,7,7,233,239,7,61,31,251,127,2,2,67
seq $0,40 ; The prime numbers.
sub $0,2
lpb $0
seq $0,66560 ; Smallest composite number divisible by n.
div $0,2
sub $0,1
lpe
add $0,1
| 41.384615
| 273
| 0.644981
|
08f1e380d225809cbbfb7ac7152e4436ec696c3c
| 40,869
|
asm
|
Assembly
|
pythtantable.asm
|
NotExactlySiev/psychofloat
|
4e6ee147e688d43c182f683f760e7a4a03620517
|
[
"CC0-1.0"
] | 1
|
2021-07-06T17:41:36.000Z
|
2021-07-06T17:41:36.000Z
|
pythtantable.asm
|
NotExactlySiev/psychofloat
|
4e6ee147e688d43c182f683f760e7a4a03620517
|
[
"CC0-1.0"
] | null | null | null |
pythtantable.asm
|
NotExactlySiev/psychofloat
|
4e6ee147e688d43c182f683f760e7a4a03620517
|
[
"CC0-1.0"
] | null | null | null |
; row 1
.byte $1, $6a
.byte $12, $e3, $d, $1c, $9, $fa, $8, $b, $6, $ba, $5, $c7, $5, $11, $4, $82, $4, $10, $3, $b1, $3, $63, $3, $21, $2, $e7, $2, $b6, $2, $8b
.byte $2, $64, $2, $43, $2, $24, $2, $9, $1, $ef, $1, $d9, $1, $c4, $1, $b2, $1, $a0, $1, $90, $1, $82, $1, $74, $1, $67, $1, $5b, $1, $50, $1, $46
.byte $1, $3c, $1, $32, $1, $2a, $1, $22, $1, $1a, $1, $12, $1, $b, $1, $5, $0, $fd, $0, $f7, $0, $f2, $0, $ec, $0, $e7, $0, $e2, $0, $dd, $0, $d8
.byte $0, $d4, $0, $d0, $0, $cc, $0, $c8, $0, $c4, $0, $c0, $0, $bd, $0, $ba, $0, $b6, $0, $b3, $0, $b0, $0, $ad, $0, $aa, $0, $a8, $0, $a5, $0, $a2
; row 2
.byte $2, $3c, $2, $d3
.byte $17, $f4, $12, $e3, $f, $80, $d, $1c, $b, $56, $9, $fa, $8, $e8, $8, $b, $7, $54, $6, $ba, $6, $38, $5, $c7, $5, $66, $5, $11
.byte $4, $c5, $4, $82, $4, $46, $4, $10, $3, $de, $3, $b1, $3, $88, $3, $63, $3, $40, $3, $21, $3, $3, $2, $e7, $2, $cd, $2, $b6, $2, $9f, $2, $8b
.byte $2, $77, $2, $64, $2, $53, $2, $43, $2, $33, $2, $24, $2, $16, $2, $9, $1, $fb, $1, $ef, $1, $e4, $1, $d9, $1, $ce, $1, $c4, $1, $bb, $1, $b2
.byte $1, $a9, $1, $a0, $1, $98, $1, $90, $1, $89, $1, $82, $1, $7b, $1, $74, $1, $6d, $1, $67, $1, $61, $1, $5b, $1, $56, $1, $50, $1, $4b, $1, $46
; row 3
.byte $3, $29, $3, $9a, $4, $3e
.byte $1a, $38, $16, $5, $12, $e3, $10, $7f, $e, $9d, $d, $1c, $b, $df, $a, $d8, $9, $fa, $9, $3d, $8, $99, $8, $b, $7, $8d
.byte $7, $1e, $6, $ba, $6, $61, $6, $11, $5, $c7, $5, $85, $5, $49, $5, $11, $4, $dd, $4, $ae, $4, $82, $4, $59, $4, $33, $4, $10, $3, $ed, $3, $ce
.byte $3, $b1, $3, $95, $3, $7b, $3, $63, $3, $4c, $3, $36, $3, $21, $3, $d, $2, $f9, $2, $e7, $2, $d6, $2, $c5, $2, $b6, $2, $a7, $2, $98, $2, $8b
.byte $2, $7d, $2, $71, $2, $64, $2, $59, $2, $4d, $2, $43, $2, $38, $2, $2e, $2, $24, $2, $1b, $2, $12, $2, $9, $2, $1, $1, $f7, $1, $ef, $1, $e8
; row 4
.byte $4, $1f, $4, $78, $5, $0, $5, $a7
.byte $1b, $7d, $17, $f4, $15, $27, $12, $e3, $11, $a, $f, $80, $e, $36, $d, $1c, $c, $29, $b, $56, $a, $9e, $9, $fa
.byte $9, $6a, $8, $e8, $8, $74, $8, $b, $7, $ab, $7, $54, $7, $4, $6, $ba, $6, $76, $6, $38, $5, $fd, $5, $c7, $5, $95, $5, $66, $5, $3a, $5, $11
.byte $4, $e9, $4, $c5, $4, $a2, $4, $82, $4, $63, $4, $46, $4, $2a, $4, $10, $3, $f5, $3, $de, $3, $c7, $3, $b1, $3, $9c, $3, $88, $3, $75, $3, $63
.byte $3, $51, $3, $40, $3, $30, $3, $21, $3, $12, $3, $3, $2, $f4, $2, $e7, $2, $da, $2, $cd, $2, $c1, $2, $b6, $2, $aa, $2, $9f, $2, $95, $2, $8b
; row 5
.byte $5, $19, $5, $62, $5, $d4, $6, $67, $7, $12
.byte $1c, $4e, $19, $45, $16, $c2, $14, $a9, $12, $e3, $11, $62, $10, $16, $e, $f5, $d, $f9, $d, $1c, $c, $57
.byte $b, $a7, $b, $a, $a, $7b, $9, $fa, $9, $86, $9, $1b, $8, $b8, $8, $5e, $8, $b, $7, $bd, $7, $75, $7, $33, $6, $f4, $6, $ba, $6, $83, $6, $50
.byte $6, $20, $5, $f2, $5, $c7, $5, $9f, $5, $79, $5, $54, $5, $32, $5, $11, $4, $f1, $4, $d3, $4, $b7, $4, $9c, $4, $82, $4, $69, $4, $51, $4, $3a
.byte $4, $25, $4, $10, $3, $fa, $3, $e7, $3, $d4, $3, $c2, $3, $b1, $3, $a0, $3, $90, $3, $80, $3, $71, $3, $63, $3, $55, $3, $47, $3, $3a, $3, $2d
; row 6
.byte $6, $15, $6, $53, $6, $b5, $7, $36, $7, $cf, $8, $7c
.byte $1c, $de, $1a, $38, $17, $f4, $16, $5, $14, $58, $12, $e3, $11, $9e, $10, $7f, $f, $80, $e, $9d
.byte $d, $d2, $d, $1c, $c, $76, $b, $df, $b, $56, $a, $d8, $a, $65, $9, $fa, $9, $98, $9, $3d, $8, $e8, $8, $99, $8, $50, $8, $b, $7, $c9, $7, $8d
.byte $7, $54, $7, $1e, $6, $ea, $6, $ba, $6, $8c, $6, $61, $6, $38, $6, $11, $5, $eb, $5, $c7, $5, $a5, $5, $85, $5, $66, $5, $49, $5, $2c, $5, $11
.byte $4, $f6, $4, $dd, $4, $c5, $4, $ae, $4, $97, $4, $82, $4, $6d, $4, $59, $4, $46, $4, $33, $4, $21, $4, $10, $3, $fe, $3, $ed, $3, $de, $3, $ce
; row 7
.byte $7, $12, $7, $47, $7, $9d, $8, $10, $8, $9a, $9, $38, $9, $e5
.byte $1d, $49, $1a, $ee, $18, $e1, $17, $17, $15, $84, $14, $20, $12, $e3, $11, $c9, $10, $cd
.byte $f, $e9, $f, $1c, $e, $61, $d, $b7, $d, $1c, $c, $8d, $c, $a, $b, $90, $b, $1f, $a, $b6, $a, $56, $9, $fa, $9, $a6, $9, $57, $9, $c, $8, $c5
.byte $8, $84, $8, $46, $8, $b, $7, $d2, $7, $9e, $7, $6c, $7, $3c, $7, $f, $6, $e3, $6, $ba, $6, $93, $6, $6d, $6, $49, $6, $27, $6, $6, $5, $e6
.byte $5, $c7, $5, $aa, $5, $8e, $5, $73, $5, $59, $5, $40, $5, $28, $5, $11, $4, $fa, $4, $e4, $4, $cf, $4, $bb, $4, $a7, $4, $94, $4, $82, $4, $70
; row 8
.byte $8, $10, $8, $3f, $8, $8b, $8, $f1, $9, $6f, $a, $0, $a, $a1, $b, $50
.byte $1d, $9b, $1b, $7d, $19, $9e, $17, $f4, $16, $79, $15, $27, $13, $f5, $12, $e3
.byte $11, $eb, $11, $a, $10, $3d, $f, $80, $e, $d4, $e, $36, $d, $a3, $d, $1c, $c, $9e, $c, $29, $b, $bc, $b, $56, $a, $f7, $a, $9e, $a, $4a, $9, $fa
.byte $9, $b0, $9, $6a, $9, $28, $8, $e8, $8, $ac, $8, $74, $8, $3e, $8, $b, $7, $d9, $7, $ab, $7, $7e, $7, $54, $7, $2b, $7, $4, $6, $de, $6, $ba
.byte $6, $97, $6, $76, $6, $57, $6, $38, $6, $1a, $5, $fd, $5, $e2, $5, $c7, $5, $ae, $5, $95, $5, $7d, $5, $66, $5, $50, $5, $3a, $5, $25, $5, $11
; row 9
.byte $9, $e, $9, $38, $9, $7c, $9, $d8, $a, $4b, $a, $d0, $b, $66, $c, $b, $c, $ba
.byte $1d, $db, $1b, $ef, $1a, $38, $18, $ab, $17, $47, $16, $5, $14, $e0
.byte $13, $d6, $12, $e3, $12, $6, $11, $3a, $10, $7f, $f, $d1, $f, $32, $e, $9d, $e, $14, $d, $93, $d, $1c, $c, $ab, $c, $42, $b, $df, $b, $83, $b, $2b
.byte $a, $d8, $a, $8b, $a, $41, $9, $fa, $9, $b8, $9, $79, $9, $3d, $9, $4, $8, $cd, $8, $99, $8, $68, $8, $38, $8, $b, $7, $de, $7, $b5, $7, $8d
.byte $7, $66, $7, $41, $7, $1e, $6, $fb, $6, $da, $6, $ba, $6, $9b, $6, $7e, $6, $61, $6, $45, $6, $2b, $6, $11, $5, $f7, $5, $df, $5, $c7, $5, $b1
; row 10
.byte $a, $d, $a, $32, $a, $70, $a, $c4, $b, $2e, $b, $a9, $c, $35, $c, $ce, $d, $74, $e, $24
.byte $1e, $10, $1c, $4e, $1a, $b6, $19, $45, $17, $f4, $16, $c2
.byte $15, $a9, $14, $a9, $13, $bd, $12, $e3, $12, $1b, $11, $62, $10, $b5, $10, $16, $f, $80, $e, $f5, $e, $73, $d, $f9, $d, $87, $d, $1c, $c, $b6, $c, $57
.byte $b, $fc, $b, $a7, $b, $56, $b, $a, $a, $c0, $a, $7b, $a, $3a, $9, $fa, $9, $bf, $9, $86, $9, $4f, $9, $1b, $8, $e8, $8, $b8, $8, $8a, $8, $5e
.byte $8, $34, $8, $b, $7, $e3, $7, $bd, $7, $99, $7, $75, $7, $54, $7, $33, $7, $13, $6, $f4, $6, $d6, $6, $ba, $6, $9e, $6, $83, $6, $6a, $6, $50
; row 11
.byte $b, $c, $b, $2e, $b, $66, $b, $b4, $c, $15, $c, $87, $d, $a, $d, $99, $e, $36, $e, $dd, $f, $8e
.byte $1e, $3b, $1c, $9c, $1b, $22, $19, $c7, $18, $8a
.byte $17, $66, $16, $59, $15, $61, $14, $7c, $13, $a8, $12, $e3, $12, $2d, $11, $82, $10, $e3, $10, $4e, $f, $c2, $f, $40, $e, $c5, $e, $51, $d, $e4, $d, $7d
.byte $d, $1c, $c, $bf, $c, $68, $c, $15, $b, $c5, $b, $7b, $b, $33, $a, $ee, $a, $ad, $a, $6f, $a, $34, $9, $fa, $9, $c4, $9, $90, $9, $5e, $9, $2e
.byte $8, $fe, $8, $d2, $8, $a7, $8, $7e, $8, $56, $8, $30, $8, $b, $7, $e6, $7, $c4, $7, $a2, $7, $82, $7, $63, $7, $45, $7, $27, $7, $b, $6, $ee
; row 12
.byte $c, $b, $c, $2a, $c, $5e, $c, $a6, $d, $0, $d, $6a, $d, $e4, $e, $6c, $f, $0, $f, $9e, $10, $47, $10, $f7
.byte $1e, $5f, $1c, $de, $1b, $7d, $1a, $38
.byte $19, $b, $17, $f4, $16, $f3, $16, $5, $15, $27, $14, $58, $13, $97, $12, $e3, $12, $3c, $11, $9e, $11, $a, $10, $7f, $f, $fb, $f, $80, $f, $c, $e, $9d
.byte $e, $36, $d, $d2, $d, $75, $d, $1c, $c, $c6, $c, $76, $c, $29, $b, $df, $b, $99, $b, $56, $b, $16, $a, $d8, $a, $9e, $a, $65, $a, $2f, $9, $fa
.byte $9, $c8, $9, $98, $9, $6a, $9, $3d, $9, $12, $8, $e8, $8, $c0, $8, $99, $8, $74, $8, $50, $8, $2d, $8, $b, $7, $e9, $7, $c9, $7, $ab, $7, $8d
; row 13
.byte $d, $a, $d, $27, $d, $57, $d, $99, $d, $ed, $e, $51, $e, $c3, $f, $43, $f, $cf, $10, $66, $11, $7, $11, $b0, $12, $62
.byte $1e, $7d, $1d, $18, $1b, $cc
.byte $1a, $99, $19, $7c, $18, $72, $17, $7b, $16, $95, $15, $be, $14, $f5, $14, $3a, $13, $89, $12, $e3, $12, $48, $11, $b5, $11, $2b, $10, $a8, $10, $2e, $f, $b8
.byte $f, $4a, $e, $e0, $e, $7d, $e, $1e, $d, $c3, $d, $6e, $d, $1c, $c, $cd, $c, $82, $c, $3b, $b, $f5, $b, $b4, $b, $75, $b, $39, $a, $fe, $a, $c6
.byte $a, $90, $a, $5d, $a, $2b, $9, $fa, $9, $cc, $9, $a0, $9, $74, $9, $4b, $9, $23, $8, $fb, $8, $d5, $8, $b1, $8, $8e, $8, $6b, $8, $4a, $8, $2a
; row 14
.byte $e, $9, $e, $24, $e, $51, $e, $8f, $e, $dd, $f, $3b, $f, $a6, $10, $20, $10, $a4, $11, $34, $11, $cd, $12, $70, $13, $1b, $13, $cc
.byte $1e, $98, $1d, $49
.byte $1c, $12, $1a, $ee, $19, $df, $18, $e1, $17, $f4, $17, $17, $16, $47, $15, $84, $14, $cc, $14, $20, $13, $7d, $12, $e3, $12, $53, $11, $c9, $11, $48, $10, $cd
.byte $10, $59, $f, $e9, $f, $80, $f, $1c, $e, $bc, $e, $61, $e, $b, $d, $b7, $d, $68, $d, $1c, $c, $d2, $c, $8d, $c, $4a, $c, $a, $b, $cb, $b, $90
.byte $b, $56, $b, $1f, $a, $e9, $a, $b6, $a, $85, $a, $56, $a, $28, $9, $fa, $9, $cf, $9, $a6, $9, $7e, $9, $57, $9, $31, $9, $c, $8, $e8, $8, $c5
; row 15
.byte $f, $8, $f, $22, $f, $4c, $f, $86, $f, $cf, $10, $28, $10, $8d, $11, $0, $11, $7e, $12, $7, $12, $99, $13, $35, $13, $d9, $14, $84, $15, $36
.byte $1e, $af
.byte $1d, $74, $1c, $4e, $1b, $3a, $1a, $38, $19, $45, $18, $61, $17, $8b, $16, $c2, $16, $5, $15, $52, $14, $a9, $14, $a, $13, $72, $12, $e3, $12, $5c, $11, $db
.byte $11, $62, $10, $ed, $10, $7f, $10, $16, $f, $b1, $f, $51, $e, $f5, $e, $9d, $e, $4a, $d, $f9, $d, $ac, $d, $63, $d, $1c, $c, $d7, $c, $96, $c, $57
.byte $c, $1a, $b, $df, $b, $a7, $b, $71, $b, $3d, $b, $a, $a, $d8, $a, $a9, $a, $7b, $a, $4f, $a, $25, $9, $fa, $9, $d2, $9, $ab, $9, $86, $9, $61
; row 16
.byte $10, $8, $10, $20, $10, $47, $10, $7e, $10, $c3, $11, $16, $11, $76, $11, $e3, $12, $5b, $12, $dd, $13, $6a, $14, $0, $14, $9d, $15, $42, $15, $ee, $16, $a0
.byte $1e, $c3, $1d, $9b, $1c, $84, $1b, $7d, $1a, $86, $19, $9e, $18, $c3, $17, $f4, $17, $32, $16, $79, $15, $cb, $15, $27, $14, $8a, $13, $f5, $13, $69, $12, $e3
.byte $12, $64, $11, $eb, $11, $78, $11, $a, $10, $a1, $10, $3d, $f, $dc, $f, $80, $f, $29, $e, $d4, $e, $83, $e, $36, $d, $ea, $d, $a3, $d, $5e, $d, $1c
.byte $c, $db, $c, $9e, $c, $62, $c, $29, $b, $f1, $b, $bc, $b, $88, $b, $56, $b, $26, $a, $f7, $a, $c9, $a, $9e, $a, $73, $a, $4a, $a, $22, $9, $fa
; row 17
.byte $11, $7, $11, $1e, $11, $43, $11, $76, $11, $b8, $12, $7, $12, $62, $12, $c9, $13, $3c, $13, $b8, $14, $3f, $14, $ce, $15, $66, $16, $6, $16, $ab, $17, $58
.byte $18, $b
.byte $1e, $d5, $1d, $bc, $1c, $b3, $1b, $b9, $1a, $cd, $19, $ee, $19, $1c, $18, $54, $17, $97, $16, $e4, $16, $3b, $15, $9a, $15, $1, $14, $6f, $13, $e5
.byte $13, $61, $12, $e3, $12, $6c, $11, $f9, $11, $8c, $11, $24, $10, $bf, $10, $5f, $10, $4, $f, $ab, $f, $57, $f, $6, $e, $b7, $e, $6c, $e, $24, $d, $dd
.byte $d, $9b, $d, $5a, $d, $1c, $c, $df, $c, $a5, $c, $6d, $c, $37, $c, $2, $b, $ce, $b, $9d, $b, $6e, $b, $40, $b, $13, $a, $e6, $a, $bc, $a, $93
; row 18
.byte $12, $7, $12, $1c, $12, $3f, $12, $70, $12, $ae, $12, $f8, $13, $50, $13, $b2, $14, $20, $14, $97, $15, $18, $15, $a1, $16, $34, $16, $cd, $17, $6e, $18, $15
.byte $18, $c2, $19, $74
.byte $1e, $e5, $1d, $db, $1c, $de, $1b, $ef, $1b, $e, $1a, $38, $19, $6c, $18, $ab, $17, $f4, $17, $47, $16, $a1, $16, $5, $15, $6f, $14, $e0
.byte $14, $58, $13, $d6, $13, $5a, $12, $e3, $12, $72, $12, $6, $11, $9e, $11, $3a, $10, $da, $10, $7f, $10, $27, $f, $d1, $f, $80, $f, $32, $e, $e6, $e, $9d
.byte $e, $58, $e, $14, $d, $d2, $d, $93, $d, $57, $d, $1c, $c, $e2, $c, $ab, $c, $76, $c, $42, $c, $11, $b, $df, $b, $b0, $b, $83, $b, $56, $b, $2b
; row 19
.byte $13, $7, $13, $1b, $13, $3c, $13, $6a, $13, $a5, $13, $ec, $14, $3f, $14, $9d, $15, $6, $15, $78, $15, $f3, $16, $78, $17, $6, $17, $99, $18, $35, $18, $d6
.byte $19, $7e, $1a, $2c, $1a, $de
.byte $1e, $f4, $1d, $f6, $1d, $6, $1c, $21, $1b, $48, $1a, $7a, $19, $b6, $18, $fb, $18, $4a, $17, $a1, $17, $1, $16, $67, $15, $d4
.byte $15, $49, $14, $c2, $14, $43, $13, $c8, $13, $54, $12, $e3, $12, $78, $12, $11, $11, $ae, $11, $4f, $10, $f3, $10, $9b, $10, $47, $f, $f5, $f, $a6, $f, $5b
.byte $f, $12, $e, $cb, $e, $87, $e, $46, $e, $6, $d, $c8, $d, $8d, $d, $53, $d, $1c, $c, $e5, $c, $b1, $c, $7e, $c, $4d, $c, $1e, $b, $ee, $b, $c1
; row 20
.byte $14, $6, $14, $19, $14, $39, $14, $65, $14, $9d, $14, $e1, $15, $30, $15, $8a, $15, $ee, $16, $5c, $16, $d2, $17, $53, $17, $da, $18, $69, $19, $0, $19, $9c
.byte $1a, $3f, $1a, $e7, $1b, $95, $1c, $48
.byte $1f, $2, $1e, $10, $1d, $29, $1c, $4e, $1b, $7d, $1a, $b6, $19, $f9, $19, $45, $18, $99, $17, $f4, $17, $58, $16, $c2
.byte $16, $33, $15, $a9, $15, $27, $14, $a9, $14, $31, $13, $bd, $13, $4e, $12, $e3, $12, $7d, $12, $1b, $11, $bc, $11, $62, $11, $a, $10, $b5, $10, $64, $10, $16
.byte $f, $c9, $f, $80, $f, $3a, $e, $f5, $e, $b3, $e, $73, $e, $36, $d, $f9, $d, $bf, $d, $87, $d, $51, $d, $1c, $c, $e8, $c, $b6, $c, $86, $c, $57
; row 21
.byte $15, $6, $15, $18, $15, $36, $15, $60, $15, $96, $15, $d6, $16, $23, $16, $78, $16, $d8, $17, $42, $17, $b4, $18, $30, $18, $b2, $19, $3d, $19, $ce, $1a, $66
.byte $1b, $5, $1b, $a8, $1c, $51, $1d, $0, $1d, $b2
.byte $1f, $d, $1e, $26, $1d, $49, $1c, $77, $1b, $ae, $1a, $ee, $1a, $38, $19, $89, $18, $e1, $18, $42, $17, $a9
.byte $17, $17, $16, $8b, $16, $5, $15, $84, $15, $8, $14, $91, $14, $20, $13, $b2, $13, $49, $12, $e3, $12, $82, $12, $25, $11, $c9, $11, $73, $11, $1f, $10, $cd
.byte $10, $7f, $10, $33, $f, $e9, $f, $a3, $f, $5e, $f, $1c, $e, $db, $e, $9d, $e, $61, $e, $27, $d, $ee, $d, $b7, $d, $82, $d, $4e, $d, $1c, $c, $ea
; row 22
.byte $16, $6, $16, $17, $16, $34, $16, $5c, $16, $8f, $16, $cd, $17, $16, $17, $68, $17, $c4, $18, $2a, $18, $98, $19, $f, $19, $8d, $1a, $14, $1a, $a0, $1b, $34
.byte $1b, $cd, $1c, $6c, $1d, $12, $1d, $bb, $1e, $6a, $1f, $1d
.byte $1f, $18, $1e, $3b, $1d, $67, $1c, $9c, $1b, $da, $1b, $22, $1a, $71, $19, $c7, $19, $25, $18, $8a
.byte $17, $f4, $17, $66, $16, $dc, $16, $59, $15, $da, $15, $61, $14, $ec, $14, $7c, $14, $11, $13, $a8, $13, $44, $12, $e3, $12, $86, $12, $2d, $11, $d5, $11, $82
.byte $11, $31, $10, $e3, $10, $97, $10, $4e, $10, $8, $f, $c2, $f, $80, $f, $40, $f, $2, $e, $c5, $e, $8a, $e, $51, $e, $1a, $d, $e4, $d, $b0, $d, $7d
; row 23
.byte $17, $6, $17, $16, $17, $32, $17, $58, $17, $89, $17, $c4, $18, $b, $18, $5a, $18, $b2, $19, $14, $19, $7e, $19, $f0, $1a, $6b, $1a, $ec, $1b, $75, $1c, $5
.byte $1c, $99, $1d, $35, $1d, $d4, $1e, $7a, $1f, $25, $1f, $d3, $20, $86
.byte $1f, $22, $1e, $4d, $1d, $82, $1c, $bf, $1c, $5, $1b, $51, $1a, $a6, $1a, $2, $19, $64
.byte $18, $cc, $18, $3b, $17, $af, $17, $2a, $16, $a8, $16, $2d, $15, $b5, $15, $43, $14, $d4, $14, $69, $14, $3, $13, $9f, $13, $40, $12, $e3, $12, $8a, $12, $35
.byte $11, $e1, $11, $90, $11, $43, $10, $f7, $10, $ae, $10, $67, $10, $23, $f, $e0, $f, $a0, $f, $61, $f, $25, $e, $e9, $e, $b0, $e, $79, $e, $43, $e, $e
; row 24
.byte $18, $5, $18, $15, $18, $30, $18, $54, $18, $83, $18, $bc, $19, $0, $19, $4c, $19, $a1, $1a, $0, $1a, $66, $1a, $d4, $1b, $4b, $1b, $c8, $1c, $4d, $1c, $d7
.byte $1d, $69, $1e, $0, $1e, $9c, $1f, $3d, $1f, $e3, $20, $8e, $21, $3e, $21, $f0
.byte $1f, $2b, $1e, $5f, $1d, $9b, $1c, $de, $1c, $2b, $1b, $7d, $1a, $d7, $1a, $38
.byte $19, $9e, $19, $b, $18, $7d, $17, $f4, $17, $71, $16, $f3, $16, $79, $16, $5, $15, $93, $15, $27, $14, $bd, $14, $58, $13, $f5, $13, $97, $13, $3c, $12, $e3
.byte $12, $8e, $12, $3c, $11, $eb, $11, $9e, $11, $53, $11, $a, $10, $c3, $10, $7f, $10, $3d, $f, $fb, $f, $bd, $f, $80, $f, $45, $f, $c, $e, $d4, $e, $9d
; row 25
.byte $19, $5, $19, $14, $19, $2e, $19, $51, $19, $7e, $19, $b5, $19, $f5, $1a, $3f, $1a, $92, $1a, $ec, $1b, $50, $1b, $ba, $1c, $2d, $1c, $a7, $1d, $27, $1d, $ae
.byte $1e, $3b, $1e, $cd, $1f, $66, $20, $4, $20, $a6, $21, $4d, $21, $f7, $22, $a7, $23, $5b
.byte $1f, $33, $1e, $6f, $1d, $b2, $1c, $fc, $1c, $4e, $1b, $a6, $1b, $5
.byte $1a, $6a, $19, $d4, $19, $45, $18, $ba, $18, $36, $17, $b5, $17, $3a, $16, $c2, $16, $4f, $15, $df, $15, $74, $15, $d, $14, $a9, $14, $48, $13, $ea, $13, $90
.byte $13, $39, $12, $e3, $12, $91, $12, $42, $11, $f4, $11, $aa, $11, $62, $11, $1b, $10, $d6, $10, $94, $10, $54, $10, $16, $f, $d8, $f, $9d, $f, $64, $f, $2c
; row 26
.byte $1a, $5, $1a, $14, $1a, $2c, $1a, $4e, $1a, $79, $1a, $ae, $1a, $ec, $1b, $34, $1b, $83, $1b, $da, $1c, $3b, $1c, $a2, $1d, $12, $1d, $87, $1e, $4, $1e, $87
.byte $1f, $10, $1f, $9f, $20, $34, $20, $cd, $21, $6b, $22, $f, $22, $b6, $23, $62, $24, $12, $24, $c4
.byte $1f, $3b, $1e, $7d, $1d, $c7, $1d, $18, $1c, $6f, $1b, $cc
.byte $1b, $30, $1a, $99, $1a, $8, $19, $7c, $18, $f4, $18, $72, $17, $f4, $17, $7b, $17, $7, $16, $95, $16, $28, $15, $be, $15, $58, $14, $f5, $14, $96, $14, $3a
.byte $13, $df, $13, $89, $13, $35, $12, $e3, $12, $94, $12, $48, $11, $fd, $11, $b5, $11, $6f, $11, $2b, $10, $e8, $10, $a8, $10, $6a, $10, $2e, $f, $f2, $f, $b8
; row 27
.byte $1b, $5, $1b, $13, $1b, $2a, $1b, $4b, $1b, $75, $1b, $a8, $1b, $e4, $1c, $29, $1c, $75, $1c, $ca, $1d, $27, $1d, $8b, $1d, $f6, $1e, $6a, $1e, $e2, $1f, $62
.byte $1f, $e7, $20, $73, $21, $4, $21, $99, $22, $34, $22, $d3, $23, $77, $24, $20, $24, $cb, $25, $7b, $26, $2f
.byte $1f, $42, $1e, $8b, $1d, $db, $1d, $32, $1c, $8e
.byte $1b, $ef, $1b, $58, $1a, $c5, $1a, $38, $19, $af, $19, $2b, $18, $ab, $18, $31, $17, $b9, $17, $47, $16, $d7, $16, $6c, $16, $5, $15, $a0, $15, $3f, $14, $e0
.byte $14, $84, $14, $2c, $13, $d6, $13, $83, $13, $32, $12, $e3, $12, $97, $12, $4e, $12, $6, $11, $c0, $11, $7c, $11, $3a, $10, $f9, $10, $bb, $10, $7f, $10, $44
; row 28
.byte $1c, $5, $1c, $12, $1c, $29, $1c, $48, $1c, $71, $1c, $a2, $1c, $dc, $1d, $1f, $1d, $69, $1d, $bb, $1e, $15, $1e, $76, $1e, $de, $1f, $4e, $1f, $c3, $20, $40
.byte $20, $c1, $21, $49, $21, $d6, $22, $68, $23, $0, $23, $9b, $24, $3c, $24, $e0, $25, $89, $26, $36, $26, $e5, $27, $98
.byte $1f, $49, $1e, $98, $1d, $ed, $1d, $49
.byte $1c, $aa, $1c, $12, $1b, $7d, $1a, $ee, $1a, $65, $19, $df, $19, $5e, $18, $e1, $18, $69, $17, $f4, $17, $84, $17, $17, $16, $ad, $16, $47, $15, $e3, $15, $84
.byte $15, $27, $14, $cc, $14, $75, $14, $20, $13, $cd, $13, $7d, $13, $2f, $12, $e3, $12, $9a, $12, $53, $12, $e, $11, $c9, $11, $88, $11, $48, $11, $a, $10, $cd
; row 29
.byte $1d, $4, $1d, $12, $1d, $27, $1d, $46, $1d, $6d, $1d, $9d, $1d, $d4, $1e, $15, $1e, $5d, $1e, $ac, $1f, $4, $1f, $62, $1f, $c7, $20, $34, $20, $a6, $21, $1f
.byte $21, $9d, $22, $22, $22, $ab, $23, $3a, $23, $cd, $24, $66, $25, $3, $25, $a4, $26, $4a, $26, $f2, $27, $9f, $28, $4f, $29, $3
.byte $1f, $4f, $1e, $a4, $1d, $fe
.byte $1d, $60, $1c, $c5, $1c, $31, $1b, $a0, $1b, $16, $1a, $8f, $1a, $d, $19, $8f, $19, $15, $18, $9f, $18, $2d, $17, $bd, $17, $53, $16, $ea, $16, $86, $16, $25
.byte $15, $c5, $15, $6a, $15, $11, $14, $ba, $14, $66, $14, $14, $13, $c4, $13, $77, $13, $2d, $12, $e3, $12, $9c, $12, $58, $12, $15, $11, $d3, $11, $93, $11, $55
; row 30
.byte $1e, $4, $1e, $11, $1e, $26, $1e, $44, $1e, $6a, $1e, $97, $1e, $cd, $1f, $c, $1f, $52, $1f, $9f, $1f, $f3, $20, $4f, $20, $b1, $21, $1b, $21, $8a, $22, $0
.byte $22, $7b, $22, $fb, $23, $82, $24, $e, $24, $9e, $25, $34, $25, $cd, $26, $6b, $27, $d, $27, $b2, $28, $5c, $29, $9, $29, $b9, $2a, $6d
.byte $1f, $55, $1e, $af
.byte $1e, $10, $1d, $74, $1c, $de, $1c, $4e, $1b, $c1, $1b, $3a, $1a, $b6, $1a, $38, $19, $bc, $19, $45, $18, $d1, $18, $61, $17, $f4, $17, $8b, $17, $25, $16, $c2
.byte $16, $62, $16, $5, $15, $a9, $15, $52, $14, $fb, $14, $a9, $14, $58, $14, $a, $13, $bd, $13, $72, $13, $2a, $12, $e3, $12, $9f, $12, $5c, $12, $1b, $11, $db
; row 31
.byte $1f, $4, $1f, $10, $1f, $25, $1f, $42, $1f, $66, $1f, $93, $1f, $c7, $20, $4, $20, $47, $20, $92, $20, $e4, $21, $3e, $21, $9d, $22, $4, $22, $70, $22, $e2
.byte $23, $5b, $23, $d8, $24, $5c, $24, $e3, $25, $71, $26, $3, $26, $99, $27, $34, $27, $d2, $28, $75, $29, $1c, $29, $c5, $2a, $73, $2b, $24, $2b, $d6
.byte $1f, $5a
.byte $1e, $b9, $1e, $1f, $1d, $88, $1c, $f6, $1c, $6a, $1b, $e1, $1b, $5d, $1a, $dc, $1a, $60, $19, $e7, $19, $73, $19, $2, $18, $93, $18, $29, $17, $c1, $17, $5d
.byte $16, $fb, $16, $9c, $16, $40, $15, $e6, $15, $90, $15, $3b, $14, $e9, $14, $99, $14, $4b, $13, $ff, $13, $b5, $13, $6e, $13, $28, $12, $e3, $12, $a1, $12, $60
; row 32
.byte $20, $4, $20, $10, $20, $24, $20, $40, $20, $63, $20, $8e, $20, $c1, $20, $fb, $21, $3e, $21, $86, $21, $d6, $22, $2d, $22, $8a, $22, $ed, $23, $57, $23, $c6
.byte $24, $3c, $24, $b6, $25, $37, $25, $bc, $26, $46, $26, $d4, $27, $68, $28, $0, $28, $9b, $29, $3b, $29, $de, $2a, $85, $2b, $2f, $2b, $dc, $2c, $8d, $2d, $41
.byte $1f, $5f, $1e, $c3, $1e, $2d, $1d, $9b, $1d, $d, $1c, $84, $1b, $fe, $1b, $7d, $1b, $1, $1a, $86, $1a, $11, $19, $9e, $19, $2f, $18, $c3, $18, $5a, $17, $f4
.byte $17, $92, $17, $32, $16, $d4, $16, $79, $16, $22, $15, $cb, $15, $78, $15, $27, $14, $d7, $14, $8a, $14, $3f, $13, $f5, $13, $ae, $13, $69, $13, $26, $12, $e3
; row 33
.byte $21, $4, $21, $f, $21, $23, $21, $3e, $21, $60, $21, $8a, $21, $bb, $21, $f4, $22, $34, $22, $7b, $22, $c8, $23, $1d, $23, $77, $23, $d8, $24, $40, $24, $ac
.byte $25, $1f, $25, $96, $26, $14, $26, $96, $27, $1d, $27, $a9, $28, $39, $28, $cd, $29, $66, $2a, $3, $2a, $a3, $2b, $47, $2b, $ee, $2c, $99, $2d, $47, $2d, $f7
.byte $2e, $ab
.byte $1f, $64, $1e, $cd, $1e, $3b, $1d, $ac, $1d, $23, $1c, $9c, $1c, $1b, $1b, $9c, $1b, $22, $1a, $ab, $1a, $38, $19, $c7, $19, $5a, $18, $f0, $18, $8a
.byte $18, $26, $17, $c4, $17, $66, $17, $a, $16, $b0, $16, $59, $16, $5, $15, $b2, $15, $61, $15, $13, $14, $c6, $14, $7c, $14, $34, $13, $ed, $13, $a8, $13, $65
; row 34
.byte $22, $4, $22, $f, $22, $22, $22, $3c, $22, $5d, $22, $86, $22, $b6, $22, $ed, $23, $2c, $23, $70, $23, $bb, $24, $e, $24, $66, $24, $c4, $25, $29, $25, $93
.byte $26, $3, $26, $78, $26, $f2, $27, $72, $27, $f5, $28, $7f, $29, $c, $29, $9d, $2a, $33, $2a, $cc, $2b, $6a, $2c, $c, $2c, $af, $2d, $57, $2e, $3, $2e, $b0
.byte $2f, $61, $30, $15
.byte $1f, $68, $1e, $d5, $1e, $47, $1d, $bc, $1d, $36, $1c, $b3, $1c, $35, $1b, $b9, $1b, $42, $1a, $cd, $1a, $5d, $19, $ee, $19, $84, $19, $1c
.byte $18, $b6, $18, $54, $17, $f4, $17, $97, $17, $3d, $16, $e4, $16, $8f, $16, $3b, $15, $e9, $15, $9a, $15, $4d, $15, $1, $14, $b7, $14, $6f, $14, $2a, $13, $e5
; row 35
.byte $23, $4, $23, $f, $23, $21, $23, $3a, $23, $5b, $23, $82, $23, $b1, $23, $e6, $24, $23, $24, $66, $24, $af, $25, $0, $25, $56, $25, $b2, $26, $14, $26, $7b
.byte $26, $e8, $27, $5b, $27, $d2, $28, $4f, $28, $d0, $29, $57, $29, $e1, $2a, $70, $2b, $3, $2b, $99, $2c, $34, $2c, $d2, $2d, $74, $2e, $19, $2e, $c0, $2f, $6c
.byte $30, $1b, $30, $cb, $31, $7f
.byte $1f, $6d, $1e, $dd, $1e, $53, $1d, $cc, $1d, $49, $1c, $c9, $1c, $4e, $1b, $d5, $1b, $60, $1a, $ee, $1a, $80, $1a, $14, $19, $ab
.byte $19, $45, $18, $e1, $18, $81, $18, $23, $17, $c7, $17, $6e, $17, $17, $16, $c2, $16, $6f, $16, $1f, $15, $d0, $15, $84, $15, $39, $14, $ef, $14, $a9, $14, $63
; row 36
.byte $24, $4, $24, $e, $24, $20, $24, $38, $24, $58, $24, $7f, $24, $ac, $24, $e0, $25, $1c, $25, $5d, $25, $a4, $25, $f2, $26, $46, $26, $a0, $27, $0, $27, $65
.byte $27, $cf, $28, $40, $28, $b4, $29, $2f, $29, $ad, $2a, $30, $2a, $b8, $2b, $44, $2b, $d3, $2c, $68, $2d, $0, $2d, $9b, $2e, $3a, $2e, $dc, $2f, $82, $30, $2a
.byte $30, $d5, $31, $84, $32, $35, $32, $e8
.byte $1f, $71, $1e, $e5, $1e, $5f, $1d, $db, $1d, $5b, $1c, $de, $1c, $66, $1b, $ef, $1b, $7d, $1b, $e, $1a, $a1, $1a, $38
.byte $19, $d0, $19, $6c, $19, $b, $18, $ab, $18, $4f, $17, $f4, $17, $9c, $17, $47, $16, $f3, $16, $a1, $16, $52, $16, $5, $15, $b8, $15, $6f, $15, $27, $14, $e0
; row 37
.byte $25, $3, $25, $e, $25, $1f, $25, $37, $25, $56, $25, $7b, $25, $a7, $25, $da, $26, $14, $26, $54, $26, $99, $26, $e5, $27, $37, $27, $8f, $27, $ec, $28, $4f
.byte $28, $b7, $29, $25, $29, $97, $2a, $f, $2a, $8b, $2b, $c, $2b, $90, $2c, $1a, $2c, $a7, $2d, $39, $2d, $cd, $2e, $66, $2f, $3, $2f, $a2, $30, $45, $30, $ea
.byte $31, $93, $32, $40, $32, $ed, $33, $9f, $34, $53
.byte $1f, $74, $1e, $ed, $1e, $69, $1d, $e9, $1d, $6c, $1c, $f2, $1c, $7c, $1c, $a, $1b, $99, $1b, $2c, $1a, $c1
.byte $1a, $5a, $19, $f4, $19, $92, $19, $32, $18, $d4, $18, $79, $18, $21, $17, $c9, $17, $75, $17, $23, $16, $d1, $16, $83, $16, $37, $15, $eb, $15, $a2, $15, $5b
; row 38
.byte $26, $3, $26, $d, $26, $1e, $26, $36, $26, $54, $26, $78, $26, $a3, $26, $d4, $27, $d, $27, $4b, $27, $8f, $27, $d9, $28, $29, $28, $7f, $28, $da, $29, $3b
.byte $29, $a0, $2a, $c, $2a, $7c, $2a, $f0, $2b, $6a, $2b, $e8, $2c, $6b, $2c, $f1, $2d, $7c, $2e, $b, $2e, $9d, $2f, $33, $2f, $cc, $30, $6a, $31, $a, $31, $ad
.byte $32, $54, $32, $fc, $33, $a9, $34, $58, $35, $a, $35, $bd
.byte $1f, $78, $1e, $f4, $1e, $74, $1d, $f6, $1d, $7c, $1d, $6, $1c, $92, $1c, $21, $1b, $b3, $1b, $48
.byte $1a, $df, $1a, $7a, $1a, $17, $19, $b6, $19, $58, $18, $fb, $18, $a2, $18, $4a, $17, $f4, $17, $a1, $17, $50, $17, $1, $16, $b2, $16, $67, $16, $1d, $15, $d4
; row 39
.byte $27, $3, $27, $d, $27, $1d, $27, $34, $27, $51, $27, $75, $27, $9f, $27, $cf, $28, $6, $28, $43, $28, $85, $28, $cd, $29, $1c, $29, $6f, $29, $c8, $2a, $27
.byte $2a, $8b, $2a, $f3, $2b, $61, $2b, $d3, $2c, $4b, $2c, $c6, $2d, $47, $2d, $ca, $2e, $53, $2e, $de, $2f, $6f, $30, $3, $30, $99, $31, $34, $31, $d1, $32, $72
.byte $33, $16, $33, $bd, $34, $67, $35, $13, $35, $c1, $36, $73, $37, $27
.byte $1f, $7b, $1e, $fa, $1e, $7d, $1e, $4, $1d, $8c, $1d, $18, $1c, $a6, $1c, $38, $1b, $cc
.byte $1b, $63, $1a, $fc, $1a, $99, $1a, $38, $19, $d8, $19, $7c, $19, $21, $18, $c8, $18, $72, $18, $1e, $17, $cb, $17, $7b, $17, $2d, $16, $e0, $16, $95, $16, $4c
; row 40
.byte $28, $3, $28, $d, $28, $1d, $28, $33, $28, $4f, $28, $72, $28, $9b, $28, $ca, $29, $0, $29, $3b, $29, $7c, $29, $c2, $2a, $f, $2a, $61, $2a, $b8, $2b, $15
.byte $2b, $76, $2b, $dc, $2c, $48, $2c, $b8, $2d, $2d, $2d, $a6, $2e, $24, $2e, $a5, $2f, $2b, $2f, $b4, $30, $42, $30, $d3, $31, $68, $32, $0, $32, $9b, $33, $39
.byte $33, $da, $34, $7f, $35, $26, $35, $d0, $36, $7d, $37, $2c, $37, $dd, $38, $91
.byte $1f, $7f, $1f, $2, $1e, $87, $1e, $10, $1d, $9b, $1d, $29, $1c, $ba, $1c, $4e
.byte $1b, $e4, $1b, $7d, $1b, $19, $1a, $b6, $1a, $57, $19, $f9, $19, $9e, $19, $45, $18, $ed, $18, $99, $18, $46, $17, $f4, $17, $a5, $17, $58, $17, $c, $16, $c2
; row 41
.byte $29, $3, $29, $c, $29, $1c, $29, $32, $29, $4d, $29, $6f, $29, $97, $29, $c5, $29, $f9, $2a, $33, $2a, $73, $2a, $b8, $2b, $3, $2b, $53, $2b, $a8, $2c, $3
.byte $2c, $62, $2c, $c6, $2d, $30, $2d, $9e, $2e, $11, $2e, $87, $2f, $3, $2f, $82, $30, $5, $30, $8c, $31, $17, $31, $a5, $32, $38, $32, $cd, $33, $66, $34, $2
.byte $34, $a1, $35, $43, $35, $e7, $36, $8f, $37, $3a, $37, $e6, $38, $95, $39, $47, $39, $fb
.byte $1f, $82, $1f, $8, $1e, $8f, $1e, $1b, $1d, $a9, $1d, $3a, $1c, $cd
.byte $1c, $63, $1b, $fb, $1b, $96, $1b, $34, $1a, $d3, $1a, $75, $1a, $19, $19, $bf, $19, $68, $19, $12, $18, $be, $18, $6c, $18, $1c, $17, $cd, $17, $81, $17, $37
; row 42
.byte $2a, $3, $2a, $c, $2a, $1b, $2a, $30, $2a, $4c, $2a, $6d, $2a, $94, $2a, $c1, $2a, $f3, $2b, $2c, $2b, $6a, $2b, $ae, $2b, $f6, $2c, $45, $2c, $99, $2c, $f1
.byte $2d, $4f, $2d, $b1, $2e, $19, $2e, $84, $2e, $f4, $2f, $69, $2f, $e2, $30, $5f, $30, $e0, $31, $65, $31, $ed, $32, $7a, $33, $a, $33, $9d, $34, $33, $34, $cc
.byte $35, $69, $36, $9, $36, $ab, $37, $51, $37, $f8, $38, $a3, $39, $50, $3a, $0, $3a, $b1, $3b, $65
.byte $1f, $85, $1f, $d, $1e, $98, $1e, $26, $1d, $b6, $1d, $49
.byte $1c, $de, $1c, $77, $1c, $12, $1b, $ae, $1b, $4d, $1a, $ee, $1a, $92, $1a, $38, $19, $df, $19, $89, $19, $34, $18, $e1, $18, $91, $18, $42, $17, $f4, $17, $a9
; row 43
.byte $2b, $3, $2b, $c, $2b, $1b, $2b, $2f, $2b, $4a, $2b, $6a, $2b, $90, $2b, $bc, $2b, $ee, $2c, $26, $2c, $62, $2c, $a4, $2c, $eb, $2d, $39, $2d, $8a, $2d, $e0
.byte $2e, $3d, $2e, $9d, $2f, $3, $2f, $6c, $2f, $da, $30, $4d, $30, $c3, $31, $3e, $31, $bd, $32, $40, $32, $c5, $33, $50, $33, $dd, $34, $6e, $35, $2, $35, $99
.byte $36, $34, $36, $d1, $37, $71, $38, $14, $38, $b9, $39, $62, $3a, $d, $3a, $ba, $3b, $6a, $3c, $1c, $3c, $cf
.byte $1f, $88, $1f, $13, $1e, $a0, $1e, $31, $1d, $c3
.byte $1d, $58, $1c, $ef, $1c, $8a, $1c, $27, $1b, $c5, $1b, $66, $1b, $9, $1a, $ad, $1a, $55, $19, $fd, $19, $a8, $19, $56, $19, $4, $18, $b4, $18, $66, $18, $1b
; row 44
.byte $2c, $3, $2c, $c, $2c, $1a, $2c, $2e, $2c, $48, $2c, $68, $2c, $8d, $2c, $b8, $2c, $e8, $2d, $1f, $2d, $5a, $2d, $9b, $2d, $e0, $2e, $2c, $2e, $7c, $2e, $d1
.byte $2f, $2b, $2f, $8a, $2f, $ec, $30, $55, $30, $c0, $31, $31, $31, $a5, $32, $1f, $32, $9b, $33, $1b, $33, $9f, $34, $27, $34, $b2, $35, $41, $35, $d2, $36, $67
.byte $37, $0, $37, $9a, $38, $39, $38, $d9, $39, $7d, $3a, $23, $3a, $cb, $3b, $76, $3c, $24, $3c, $d3, $3d, $85, $3e, $39
.byte $1f, $8a, $1f, $18, $1e, $a8, $1e, $3b
.byte $1d, $cf, $1d, $67, $1d, $1, $1c, $9c, $1c, $3b, $1b, $da, $1b, $7d, $1b, $22, $1a, $c8, $1a, $71, $1a, $1c, $19, $c7, $19, $75, $19, $25, $18, $d6, $18, $8a
; row 45
.byte $2d, $3, $2d, $b, $2d, $19, $2d, $2d, $2d, $47, $2d, $66, $2d, $8a, $2d, $b4, $2d, $e3, $2e, $19, $2e, $53, $2e, $92, $2e, $d6, $2f, $21, $2f, $6f, $2f, $c2
.byte $30, $1b, $30, $77, $30, $d8, $31, $3e, $31, $a8, $32, $17, $32, $89, $33, $0, $33, $7a, $33, $f8, $34, $7a, $35, $0, $35, $88, $36, $15, $36, $a4, $37, $38
.byte $37, $cd, $38, $66, $39, $2, $39, $a0, $3a, $42, $3a, $e5, $3b, $8c, $3c, $35, $3c, $e0, $3d, $8d, $3e, $3e, $3e, $ef, $3f, $a3
.byte $1f, $8d, $1f, $1d, $1e, $af
.byte $1e, $44, $1d, $db, $1d, $74, $1d, $11, $1c, $ae, $1c, $4e, $1b, $ef, $1b, $94, $1b, $3a, $1a, $e2, $1a, $8c, $1a, $38, $19, $e5, $19, $94, $19, $45, $18, $f7
; row 46
.byte $2e, $3, $2e, $b, $2e, $19, $2e, $2c, $2e, $45, $2e, $63, $2e, $87, $2e, $b0, $2e, $de, $2f, $13, $2f, $4c, $2f, $8a, $2f, $cc, $30, $15, $30, $62, $30, $b3
.byte $31, $a, $31, $65, $31, $c4, $32, $29, $32, $91, $32, $fc, $33, $6e, $33, $e2, $34, $5a, $34, $d6, $35, $56, $35, $d9, $36, $60, $36, $ea, $37, $78, $38, $9
.byte $38, $9c, $39, $33, $39, $cc, $3a, $69, $3b, $9, $3b, $aa, $3c, $4e, $3c, $f5, $3d, $9e, $3e, $4a, $3e, $f7, $3f, $a7, $40, $59, $41, $e
.byte $1f, $8f, $1f, $22
.byte $1e, $b6, $1e, $4d, $1d, $e6, $1d, $82, $1d, $20, $1c, $bf, $1c, $61, $1c, $5, $1b, $aa, $1b, $51, $1a, $fa, $1a, $a6, $1a, $53, $1a, $2, $19, $b2, $19, $64
; row 47
.byte $2f, $3, $2f, $b, $2f, $18, $2f, $2b, $2f, $44, $2f, $61, $2f, $84, $2f, $ac, $2f, $da, $30, $d, $30, $45, $30, $81, $30, $c3, $31, $a, $31, $56, $31, $a5
.byte $31, $fa, $32, $54, $32, $b1, $33, $14, $33, $7a, $33, $e4, $34, $53, $34, $c5, $35, $3c, $35, $b6, $36, $34, $36, $b5, $37, $3a, $37, $c1, $38, $4d, $38, $db
.byte $39, $6d, $3a, $2, $3a, $99, $3b, $34, $3b, $d0, $3c, $70, $3d, $13, $3d, $b7, $3e, $5e, $3f, $8, $3f, $b3, $40, $61, $41, $12, $41, $c3, $42, $77
.byte $1f, $92
.byte $1f, $27, $1e, $bd, $1e, $56, $1d, $f1, $1d, $8e, $1d, $2e, $1c, $cf, $1c, $72, $1c, $18, $1b, $bf, $1b, $68, $1b, $13, $1a, $bf, $1a, $6d, $1a, $1d, $19, $ce
; row 48
.byte $30, $3, $30, $b, $30, $18, $30, $2a, $30, $42, $30, $5f, $30, $81, $30, $a9, $30, $d5, $31, $8, $31, $3e, $31, $7a, $31, $ba, $32, $0, $32, $4a, $32, $98
.byte $32, $eb, $33, $43, $33, $9f, $34, $0, $34, $64, $34, $cc, $35, $3a, $35, $aa, $36, $1f, $36, $96, $37, $13, $37, $91, $38, $14, $38, $9a, $39, $24, $39, $b0
.byte $3a, $40, $3a, $d2, $3b, $67, $3c, $0, $3c, $9a, $3d, $38, $3d, $d8, $3e, $7b, $3f, $20, $3f, $c7, $40, $71, $41, $1d, $41, $cb, $42, $7b, $43, $2e, $43, $e1
.byte $1f, $94, $1f, $2b, $1e, $c3, $1e, $5f, $1d, $fb, $1d, $9b, $1d, $3c, $1c, $de, $1c, $84, $1c, $2b, $1b, $d3, $1b, $7d, $1b, $2a, $1a, $d7, $1a, $86, $1a, $38
; row 49
.byte $31, $3, $31, $a, $31, $17, $31, $2a, $31, $41, $31, $5d, $31, $7f, $31, $a5, $31, $d1, $32, $3, $32, $38, $32, $72, $32, $b1, $32, $f5, $33, $3e, $33, $8b
.byte $33, $dd, $34, $33, $34, $8d, $34, $ec, $35, $4f, $35, $b6, $36, $21, $36, $8f, $37, $2, $37, $78, $37, $f1, $38, $6f, $38, $ef, $39, $74, $39, $fb, $3a, $85
.byte $3b, $13, $3b, $a3, $3c, $37, $3c, $cd, $3d, $66, $3e, $2, $3e, $a0, $3f, $41, $3f, $e3, $40, $89, $41, $31, $41, $da, $42, $87, $43, $35, $43, $e5, $44, $97
.byte $45, $4c
.byte $1f, $96, $1f, $2f, $1e, $c9, $1e, $67, $1e, $6, $1d, $a6, $1d, $49, $1c, $ed, $1c, $94, $1c, $3d, $1b, $e6, $1b, $92, $1b, $40, $1a, $ee, $1a, $9f
; row 50
.byte $32, $3, $32, $a, $32, $17, $32, $29, $32, $40, $32, $5b, $32, $7c, $32, $a2, $32, $cd, $32, $fc, $33, $32, $33, $6b, $33, $a9, $33, $eb, $34, $33, $34, $7f
.byte $34, $cf, $35, $24, $35, $7d, $35, $d9, $36, $3b, $36, $a0, $37, $9, $37, $76, $37, $e6, $38, $5b, $38, $d2, $39, $4e, $39, $cc, $3a, $4f, $3a, $d4, $3b, $5d
.byte $3b, $e8, $3c, $77, $3d, $8, $3d, $9c, $3e, $33, $3e, $cc, $3f, $69, $40, $8, $40, $a8, $41, $4c, $41, $f1, $42, $9a, $43, $44, $43, $f0, $44, $9f, $45, $4f
.byte $46, $2, $46, $b5
.byte $1f, $98, $1f, $33, $1e, $cf, $1e, $6f, $1e, $10, $1d, $b2, $1d, $56, $1c, $fc, $1c, $a4, $1c, $4e, $1b, $f9, $1b, $a6, $1b, $55, $1b, $5
; row 51
.byte $33, $2, $33, $a, $33, $16, $33, $28, $33, $3e, $33, $5a, $33, $7a, $33, $9f, $33, $c9, $33, $f8, $34, $2c, $34, $64, $34, $a1, $34, $e2, $35, $29, $35, $73
.byte $35, $c1, $36, $15, $36, $6c, $36, $c7, $37, $27, $37, $8a, $37, $f1, $38, $5d, $38, $cb, $39, $3e, $39, $b4, $3a, $2e, $3a, $aa, $3b, $2b, $3b, $ae, $3c, $35
.byte $3c, $be, $3d, $4b, $3d, $da, $3e, $6d, $3f, $2, $3f, $99, $40, $34, $40, $d0, $41, $6f, $42, $11, $42, $b5, $43, $5b, $44, $4, $44, $ae, $45, $5a, $46, $9
.byte $46, $b9, $47, $6b, $48, $20
.byte $1f, $9a, $1f, $37, $1e, $d5, $1e, $76, $1e, $19, $1d, $bc, $1d, $63, $1d, $b, $1c, $b3, $1c, $5f, $1c, $c, $1b, $b9, $1b, $69
; row 52
.byte $34, $2, $34, $a, $34, $16, $34, $27, $34, $3d, $34, $58, $34, $78, $34, $9c, $34, $c5, $34, $f3, $35, $26, $35, $5d, $35, $99, $35, $d9, $36, $1f, $36, $67
.byte $36, $b5, $37, $7, $37, $5c, $37, $b6, $38, $14, $38, $76, $38, $db, $39, $45, $39, $b2, $3a, $23, $3a, $97, $3b, $f, $3b, $8a, $3c, $8, $3c, $8a, $3d, $f
.byte $3d, $96, $3e, $21, $3e, $ae, $3f, $3f, $3f, $d1, $40, $67, $41, $0, $41, $9a, $42, $38, $42, $d7, $43, $79, $44, $1e, $44, $c4, $45, $6d, $46, $18, $46, $c4
.byte $47, $73, $48, $23, $48, $d5, $49, $89
.byte $1f, $9c, $1f, $3b, $1e, $db, $1e, $7d, $1e, $22, $1d, $c7, $1d, $6f, $1d, $18, $1c, $c2, $1c, $6f, $1c, $1d, $1b, $cc
; row 53
.byte $35, $2, $35, $a, $35, $16, $35, $26, $35, $3c, $35, $56, $35, $75, $35, $99, $35, $c1, $35, $ee, $36, $21, $36, $57, $36, $92, $36, $d1, $37, $15, $37, $5c
.byte $37, $a8, $37, $f8, $38, $4d, $38, $a5, $39, $2, $39, $62, $39, $c6, $3a, $2e, $3a, $99, $3b, $9, $3b, $7b, $3b, $f0, $3c, $6a, $3c, $e6, $3d, $66, $3d, $e8
.byte $3e, $6f, $3e, $f7, $3f, $83, $40, $12, $40, $a3, $41, $37, $41, $cd, $42, $66, $43, $2, $43, $9f, $44, $40, $44, $e1, $45, $86, $46, $2d, $46, $d6, $47, $81
.byte $48, $2e, $48, $dc, $49, $8d, $4a, $40, $4a, $f3
.byte $1f, $9e, $1f, $3f, $1e, $e0, $1e, $84, $1e, $2a, $1d, $d1, $1d, $7a, $1d, $25, $1c, $d1, $1c, $7f, $1c, $2e
; row 54
.byte $36, $2, $36, $9, $36, $15, $36, $26, $36, $3b, $36, $55, $36, $73, $36, $96, $36, $be, $36, $ea, $37, $1c, $37, $51, $37, $8a, $37, $c8, $38, $b, $38, $52
.byte $38, $9c, $38, $eb, $39, $3e, $39, $95, $39, $f0, $3a, $4f, $3a, $b1, $3b, $18, $3b, $81, $3b, $ee, $3c, $5f, $3c, $d3, $3d, $4b, $3d, $c5, $3e, $44, $3e, $c4
.byte $3f, $49, $3f, $cf, $40, $59, $40, $e5, $41, $75, $42, $8, $42, $9c, $43, $33, $43, $cc, $44, $69, $45, $7, $45, $a7, $46, $4b, $46, $ef, $47, $96, $48, $40
.byte $48, $ea, $49, $97, $4a, $47, $4a, $f6, $4b, $a9, $4c, $5e
.byte $1f, $a0, $1f, $42, $1e, $e5, $1e, $8b, $1e, $33, $1d, $db, $1d, $85, $1d, $32, $1c, $de, $1c, $8e
; row 55
.byte $37, $2, $37, $9, $37, $15, $37, $25, $37, $3a, $37, $53, $37, $71, $37, $94, $37, $bb, $37, $e6, $38, $17, $38, $4b, $38, $83, $38, $c0, $39, $2, $39, $47
.byte $39, $91, $39, $de, $3a, $30, $3a, $85, $3a, $df, $3b, $3c, $3b, $9d, $3c, $2, $3c, $6a, $3c, $d5, $3d, $45, $3d, $b7, $3e, $2d, $3e, $a6, $3f, $22, $3f, $a1
.byte $40, $24, $40, $a8, $41, $31, $41, $bb, $42, $49, $42, $d9, $43, $6c, $44, $2, $44, $99, $45, $34, $45, $d0, $46, $6f, $47, $10, $47, $b3, $48, $58, $49, $0
.byte $49, $a9, $4a, $54, $4b, $2, $4b, $b0, $4c, $61, $4d, $14, $4d, $c7
.byte $1f, $a1, $1f, $45, $1e, $ea, $1e, $92, $1e, $3b, $1d, $e4, $1d, $90, $1d, $3e, $1c, $ec
; row 56
.byte $38, $2, $38, $9, $38, $14, $38, $24, $38, $39, $38, $52, $38, $6f, $38, $91, $38, $b7, $38, $e2, $39, $12, $39, $45, $39, $7d, $39, $b8, $39, $f8, $3a, $3d
.byte $3a, $85, $3a, $d2, $3b, $23, $3b, $76, $3b, $ce, $3c, $2a, $3c, $8a, $3c, $ec, $3d, $53, $3d, $bd, $3e, $2b, $3e, $9c, $3f, $10, $3f, $87, $40, $2, $40, $7f
.byte $41, $0, $41, $83, $42, $a, $42, $92, $43, $1e, $43, $ac, $44, $3e, $44, $d1, $45, $67, $46, $0, $46, $9a, $47, $38, $47, $d6, $48, $78, $49, $1c, $49, $c1
.byte $4a, $69, $4b, $13, $4b, $bd, $4c, $6b, $4d, $1a, $4d, $cb, $4e, $7d, $4f, $32
.byte $1f, $a3, $1f, $49, $1e, $ef, $1e, $98, $1e, $42, $1d, $ed, $1d, $9b, $1d, $49
; row 57
.byte $39, $2, $39, $9, $39, $14, $39, $24, $39, $38, $39, $50, $39, $6d, $39, $8e, $39, $b4, $39, $de, $3a, $d, $3a, $40, $3a, $76, $3a, $b1, $3a, $f0, $3b, $34
.byte $3b, $7b, $3b, $c6, $3c, $15, $3c, $68, $3c, $be, $3d, $19, $3d, $77, $3d, $d8, $3e, $3e, $3e, $a6, $3f, $12, $3f, $81, $3f, $f3, $40, $69, $40, $e2, $41, $5e
.byte $41, $dc, $42, $5e, $42, $e2, $43, $6a, $43, $f4, $44, $81, $45, $11, $45, $a2, $46, $37, $46, $cd, $47, $66, $48, $2, $48, $9f, $49, $3f, $49, $e0, $4a, $84
.byte $4b, $2a, $4b, $d2, $4c, $7c, $4d, $28, $4d, $d4, $4e, $84, $4f, $35, $4f, $e7, $50, $9c
.byte $1f, $a5, $1f, $4c, $1e, $f4, $1e, $9e, $1e, $4a, $1d, $f6, $1d, $a5
; row 58
.byte $3a, $2, $3a, $9, $3a, $14, $3a, $23, $3a, $37, $3a, $4f, $3a, $6b, $3a, $8c, $3a, $b1, $3a, $da, $3b, $9, $3b, $3a, $3b, $70, $3b, $aa, $3b, $e8, $3c, $2a
.byte $3c, $70, $3c, $ba, $3d, $8, $3d, $5a, $3d, $af, $3e, $8, $3e, $64, $3e, $c4, $3f, $28, $3f, $8f, $3f, $f9, $40, $67, $40, $d8, $41, $4c, $41, $c3, $42, $3e
.byte $42, $ba, $43, $3b, $43, $bd, $44, $43, $44, $cb, $45, $57, $45, $e4, $46, $74, $47, $7, $47, $9c, $48, $33, $48, $cc, $49, $69, $4a, $7, $4a, $a6, $4b, $49
.byte $4b, $ed, $4c, $93, $4d, $3c, $4d, $e5, $4e, $91, $4f, $3f, $4f, $ed, $50, $9f, $51, $52, $52, $6
.byte $1f, $a6, $1f, $4f, $1e, $f8, $1e, $a4, $1e, $51, $1d, $fe
; row 59
.byte $3b, $2, $3b, $9, $3b, $13, $3b, $23, $3b, $36, $3b, $4e, $3b, $6a, $3b, $8a, $3b, $ae, $3b, $d7, $3c, $4, $3c, $35, $3c, $6a, $3c, $a3, $3c, $e0, $3d, $21
.byte $3d, $66, $3d, $af, $3d, $fb, $3e, $4c, $3e, $a0, $3e, $f7, $3f, $53, $3f, $b1, $40, $14, $40, $79, $40, $e2, $41, $4e, $41, $bd, $42, $30, $42, $a5, $43, $1e
.byte $43, $99, $44, $18, $44, $99, $45, $1e, $45, $a4, $46, $2d, $46, $b9, $47, $48, $47, $d8, $48, $6c, $49, $2, $49, $99, $4a, $34, $4a, $cf, $4b, $6e, $4c, $f
.byte $4c, $b1, $4d, $56, $4d, $fc, $4e, $a4, $4f, $4f, $4f, $fa, $50, $a8, $51, $58, $52, $9, $52, $bb, $53, $70
.byte $1f, $a8, $1f, $52, $1e, $fc, $1e, $a9, $1e, $58
; row 60
.byte $3c, $2, $3c, $8, $3c, $13, $3c, $22, $3c, $35, $3c, $4c, $3c, $68, $3c, $87, $3c, $ab, $3c, $d3, $3d, $0, $3d, $30, $3d, $64, $3d, $9c, $3d, $d8, $3e, $19
.byte $3e, $5c, $3e, $a4, $3e, $ef, $3f, $3f, $3f, $91, $3f, $e7, $40, $42, $40, $9f, $41, $0, $41, $64, $41, $cb, $42, $36, $42, $a3, $43, $15, $43, $88, $44, $0
.byte $44, $79, $44, $f6, $45, $76, $45, $f8, $46, $7d, $47, $5, $47, $8f, $48, $1c, $48, $ab, $49, $3d, $49, $d0, $4a, $67, $4b, $0, $4b, $9a, $4c, $37, $4c, $d6
.byte $4d, $77, $4e, $1a, $4e, $be, $4f, $65, $50, $e, $50, $b8, $51, $64, $52, $13, $52, $c1, $53, $73, $54, $26, $54, $d9
.byte $1f, $a9, $1f, $55, $1f, $2, $1e, $af
; row 61
.byte $3d, $2, $3d, $8, $3d, $13, $3d, $21, $3d, $34, $3d, $4b, $3d, $66, $3d, $85, $3d, $a8, $3d, $d0, $3d, $fb, $3e, $2b, $3e, $5e, $3e, $95, $3e, $d0, $3f, $10
.byte $3f, $53, $3f, $99, $3f, $e3, $40, $32, $40, $83, $40, $d8, $41, $31, $41, $8d, $41, $ec, $42, $4f, $42, $b5, $43, $1e, $43, $8a, $43, $f9, $44, $6c, $44, $e1
.byte $45, $5a, $45, $d5, $46, $54, $46, $d4, $47, $58, $47, $dd, $48, $66, $48, $f1, $49, $7f, $4a, $10, $4a, $a1, $4b, $36, $4b, $cd, $4c, $66, $4d, $2, $4d, $9e
.byte $4e, $3e, $4e, $df, $4f, $82, $50, $28, $50, $ce, $51, $77, $52, $22, $52, $ce, $53, $7c, $54, $2c, $54, $dc, $55, $90, $56, $44
.byte $1f, $ab, $1f, $57, $1f, $6
; row 62
.byte $3e, $2, $3e, $8, $3e, $12, $3e, $21, $3e, $33, $3e, $4a, $3e, $64, $3e, $83, $3e, $a6, $3e, $cc, $3e, $f7, $3f, $26, $3f, $59, $3f, $8f, $3f, $c9, $40, $8
.byte $40, $4a, $40, $8f, $40, $d8, $41, $25, $41, $75, $41, $c9, $42, $21, $42, $7b, $42, $d9, $43, $3b, $43, $9f, $44, $7, $44, $72, $44, $e0, $45, $51, $45, $c5
.byte $46, $3c, $46, $b5, $47, $32, $47, $b1, $48, $33, $48, $b7, $49, $3f, $49, $c8, $4a, $54, $4a, $e2, $4b, $73, $4c, $7, $4c, $9b, $4d, $33, $4d, $cc, $4e, $68
.byte $4f, $6, $4f, $a6, $50, $48, $50, $eb, $51, $90, $52, $38, $52, $e0, $53, $8b, $54, $38, $54, $e5, $55, $95, $56, $47, $56, $f9, $57, $ae
.byte $1f, $ac, $1f, $5a
| 93.951724
| 165
| 0.394774
|
2077cdd87cbadd69a2f46969f6d712448ba993cb
| 2,976
|
asm
|
Assembly
|
main.asm
|
tavi-vi/GBLoudnessWar
|
69d60fa9c95ed5f64ad059725e34a91b0cb12c6a
|
[
"Unlicense"
] | 3
|
2021-12-16T14:43:37.000Z
|
2022-01-05T21:26:14.000Z
|
main.asm
|
tavi-vi/GBLoudnessWar
|
69d60fa9c95ed5f64ad059725e34a91b0cb12c6a
|
[
"Unlicense"
] | null | null | null |
main.asm
|
tavi-vi/GBLoudnessWar
|
69d60fa9c95ed5f64ad059725e34a91b0cb12c6a
|
[
"Unlicense"
] | null | null | null |
INCLUDE "gbhw.inc"
INCLUDE "song.inc"
MACRO SampleDelay
DEF DELAY SET 24
ASSERT FATAL, \1 <= DELAY
REPT (DELAY - \1)
nop
ENDR
ENDM
MACRO LoadSample
ld A, B ; 1
and A, %11000000 ; 2
srl A ; 2
ld [rAUD3LEVEL], A ; 4
sla B ; 2
sla B ; 2
ENDM
SECTION "start",ROM0[$0100]
nop
jp begin
ROM_HEADER ROM_MBC5, ROM_SIZE_4MBYTE, RAM_SIZE_0KBYTE
begin:
ld A, $80
ld [rAUDENA], A
ld A, %01110111
ld [rAUDVOL], A
ld A, %01000100
ld [rAUDTERM], A
ld A, $FF
ld [(_AUD3WAVERAM+$0)], A
ld [(_AUD3WAVERAM+$1)], A
ld [(_AUD3WAVERAM+$2)], A
ld [(_AUD3WAVERAM+$3)], A
ld [(_AUD3WAVERAM+$4)], A
ld [(_AUD3WAVERAM+$5)], A
ld [(_AUD3WAVERAM+$6)], A
ld [(_AUD3WAVERAM+$7)], A
ld [(_AUD3WAVERAM+$8)], A
ld [(_AUD3WAVERAM+$9)], A
ld [(_AUD3WAVERAM+$A)], A
ld [(_AUD3WAVERAM+$B)], A
ld [(_AUD3WAVERAM+$C)], A
ld [(_AUD3WAVERAM+$D)], A
ld [(_AUD3WAVERAM+$E)], A
ld [(_AUD3WAVERAM+$F)], A
ld A, $80
ld [rAUD3ENA], A
ld A, 0
ld [rAUD3LEVEL], A ; set 3rd channel volume to known value
ld A, 1
ld [rAUD3LOW], A
ld A, %10000000
ld [rAUD3HIGH], A
ld sp, $FFFF ; initialize stack pointer
ld A, 1
ld C, A
ld [ROM_BANK_NUMBER], A
ld A, 0
ld HL, $4000
ld B, [HL]
inc HL
.loop
; sample 1
LoadSample ; 13
SampleDelay 13
; sample 2
LoadSample ; 13
SampleDelay 13
; sample 3
LoadSample ; 13
ld E, [HL] ; 2
inc HL ; 2
ld D, $80 ; 2
SampleDelay 15
; sample 4
LoadSample ; 13
ld B, E ; 1
ld A, H ; 1
cp A, D ; 1
jr NZ, .notLastSample
.lastSample ; 2
ld DE, .cont ; 3
SampleDelay 21
; sample 5
LoadSample ; 13
ld A, SONG_BANKS ; 4
cp A, C ; 1
jr NZ, .notLastBank
; 2
ld DE, .quit ; 3
SampleDelay 23
; sample 6
LoadSample ; 13
SampleDelay 19
jr .lastBankFi ; 3
.notLastBank ; 3
inc C ; 1
SampleDelay 22
; sample 6
LoadSample ; 13
ld A, C ; 1
ld [ROM_BANK_NUMBER], A ; 4
ld H, $40 ; 2
SampleDelay 23
.lastBankFi
jr .lastSampleFi ; 3
.notLastSample ; 3
ld DE, .cont ; 3
SampleDelay 22
; sample 5
LoadSample ; 13
SampleDelay 13
; sample 6
LoadSample ; 13
SampleDelay 13
.lastSampleFi
; sample 7
LoadSample ; 13
push DE ; 4
ld E, [HL] ; 2
inc HL ; 2
SampleDelay 21
; sample 8
LoadSample ; 13
ld B, E ; 1
ret ; 4
.cont
SampleDelay 22
jp .loop ; 4
.quit
jr .quit
| 18.6
| 62
| 0.473118
|
e6534d6291e9c63bf58249935ef177316f481cc9
| 9,834
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_377.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_377.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_377.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x16202, %r12
nop
nop
nop
nop
nop
add %r13, %r13
movups (%r12), %xmm4
vpextrq $1, %xmm4, %rcx
nop
nop
xor $21023, %rax
lea addresses_WC_ht+0x1a602, %rsi
clflush (%rsi)
nop
nop
nop
xor $55360, %r12
mov (%rsi), %ax
xor $52616, %rax
lea addresses_normal_ht+0x6402, %rax
nop
nop
nop
nop
and %r9, %r9
and $0xffffffffffffffc0, %rax
vmovaps (%rax), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %r13
nop
xor %rsi, %rsi
lea addresses_A_ht+0x1d62, %rax
nop
nop
nop
nop
and $3856, %rdx
vmovups (%rax), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r9
nop
sub %r12, %r12
lea addresses_A_ht+0x4202, %rdx
clflush (%rdx)
nop
nop
nop
cmp $21858, %r12
movl $0x61626364, (%rdx)
nop
nop
cmp $35787, %r13
lea addresses_WT_ht+0x1002, %r9
nop
nop
nop
nop
nop
xor $65404, %rdx
movb $0x61, (%r9)
nop
nop
nop
nop
cmp $47121, %rsi
lea addresses_WT_ht+0x98a2, %rsi
nop
cmp %r9, %r9
movb $0x61, (%rsi)
nop
nop
xor %rax, %rax
lea addresses_A_ht+0xc582, %rax
nop
nop
nop
nop
and $41855, %rdx
movw $0x6162, (%rax)
nop
nop
nop
nop
lfence
lea addresses_normal_ht+0x4082, %r9
and $57361, %r12
vmovups (%r9), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdx
nop
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0xd3d2, %rsi
lea addresses_D_ht+0xc02, %rdi
nop
xor $1643, %r9
mov $97, %rcx
rep movsq
nop
nop
nop
add %r12, %r12
lea addresses_WT_ht+0x13682, %r12
nop
nop
nop
nop
nop
dec %rdx
mov $0x6162636465666768, %rsi
movq %rsi, (%r12)
nop
nop
nop
nop
add %r9, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_RW+0xd702, %rsi
lea addresses_WT+0xfa82, %rdi
nop
nop
inc %rax
mov $91, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rax, %rax
// Store
lea addresses_normal+0x10602, %rdi
nop
nop
nop
nop
cmp $30582, %r15
movw $0x5152, (%rdi)
nop
nop
add $35627, %rcx
// Store
lea addresses_A+0x8bf2, %rdi
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x5152535455565758, %r11
movq %r11, %xmm0
vmovups %ymm0, (%rdi)
xor $7916, %rsi
// Store
lea addresses_RW+0xfac2, %rdx
nop
nop
nop
nop
and $53149, %rcx
movw $0x5152, (%rdx)
nop
nop
and $42630, %r15
// Load
lea addresses_RW+0x1e562, %rdx
nop
nop
nop
inc %r11
mov (%rdx), %rdi
nop
nop
sub $14850, %rdi
// Store
lea addresses_normal+0x2c02, %r15
nop
inc %rcx
movb $0x51, (%r15)
nop
cmp %rdi, %rdi
// Store
lea addresses_WT+0x5486, %rax
clflush (%rax)
and $48624, %r15
mov $0x5152535455565758, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%rax)
nop
nop
cmp %rdi, %rdi
// Store
lea addresses_PSE+0xbe02, %rsi
nop
nop
nop
nop
dec %rdx
movb $0x51, (%rsi)
nop
nop
nop
nop
nop
cmp %r15, %r15
// Store
lea addresses_UC+0x1ee02, %rsi
nop
nop
sub $47731, %rax
mov $0x5152535455565758, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%rsi)
nop
nop
nop
inc %rdx
// Store
lea addresses_normal+0x10602, %rsi
nop
nop
nop
nop
nop
cmp %r11, %r11
mov $0x5152535455565758, %rax
movq %rax, (%rsi)
nop
nop
nop
nop
nop
xor $32985, %rcx
// Store
lea addresses_US+0x11ca2, %rdi
nop
nop
sub %r15, %r15
mov $0x5152535455565758, %rcx
movq %rcx, (%rdi)
nop
xor $21977, %rdi
// Load
lea addresses_US+0x3602, %rdx
xor %rax, %rax
movb (%rdx), %r11b
nop
nop
xor %r15, %r15
// Faulty Load
lea addresses_normal+0x10602, %rsi
nop
nop
nop
sub $62301, %r11
movb (%rsi), %dl
lea oracles, %r15
and $0xff, %rdx
shlq $12, %rdx
mov (%r15,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': True, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}}
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': True, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 32, 'NT': True, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 6}}
{'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
*/
| 28.258621
| 2,999
| 0.650397
|
1d15bae7e7c4bc74151d1f159dc4671059b90078
| 4,038
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1_535.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1_535.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1_535.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12e94, %rsi
nop
nop
nop
nop
xor %rax, %rax
mov (%rsi), %r12d
nop
nop
nop
nop
nop
cmp $60192, %rcx
lea addresses_normal_ht+0x11f74, %rsi
lea addresses_D_ht+0x4694, %rdi
clflush (%rdi)
nop
nop
nop
nop
and %r11, %r11
mov $96, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_WT_ht+0xe49, %r12
nop
nop
nop
nop
inc %rax
movw $0x6162, (%r12)
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x1adcc, %rsi
lea addresses_UC_ht+0x8f74, %rdi
add %r11, %r11
mov $101, %rcx
rep movsq
cmp $9883, %r12
lea addresses_normal_ht+0xaa74, %r11
nop
nop
nop
nop
sub %r8, %r8
movl $0x61626364, (%r11)
nop
nop
nop
nop
mfence
lea addresses_A_ht+0x1d774, %rax
add %r11, %r11
movl $0x61626364, (%rax)
nop
nop
inc %r12
lea addresses_WT_ht+0x1ab74, %r11
nop
inc %r8
mov $0x6162636465666768, %r12
movq %r12, %xmm1
vmovups %ymm1, (%r11)
nop
and %rax, %rax
lea addresses_UC_ht+0x8318, %rsi
nop
nop
cmp %r11, %r11
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
movups %xmm5, (%rsi)
and $41673, %r12
lea addresses_A_ht+0x17104, %r11
nop
dec %r8
and $0xffffffffffffffc0, %r11
vmovaps (%r11), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
nop
and $7768, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r9
push %rbp
push %rdx
push %rsi
// Store
lea addresses_WC+0x18474, %r10
nop
nop
nop
inc %r11
mov $0x5152535455565758, %rdx
movq %rdx, (%r10)
nop
nop
nop
nop
nop
sub $14326, %r10
// Store
lea addresses_UC+0xbd04, %r13
nop
nop
nop
and $10862, %rbp
movw $0x5152, (%r13)
nop
nop
nop
cmp %r10, %r10
// Store
mov $0x7af38b0000000374, %rdx
nop
nop
nop
nop
nop
sub $38437, %r13
mov $0x5152535455565758, %r10
movq %r10, (%rdx)
cmp %rsi, %rsi
// Faulty Load
lea addresses_normal+0x13b74, %r10
nop
nop
nop
nop
nop
dec %rsi
vmovups (%r10), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rbp
lea oracles, %r13
and $0xff, %rbp
shlq $12, %rbp
mov (%r13,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rbp
pop %r9
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': True, 'size': 8, 'NT': True, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, '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': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'34': 1}
34
*/
| 19.794118
| 152
| 0.651808
|
e43bd0d0a85fa6d69d0a00bf02acaa090e897cc1
| 23,849
|
asm
|
Assembly
|
forktest.asm
|
sloanetj/Xv6-Container-Support
|
80a58b9ac7ead24c63d67ee21ab6cdc72243ab76
|
[
"MIT-0"
] | null | null | null |
forktest.asm
|
sloanetj/Xv6-Container-Support
|
80a58b9ac7ead24c63d67ee21ab6cdc72243ab76
|
[
"MIT-0"
] | null | null | null |
forktest.asm
|
sloanetj/Xv6-Container-Support
|
80a58b9ac7ead24c63d67ee21ab6cdc72243ab76
|
[
"MIT-0"
] | null | null | null |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "fork test OK\n");
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 51 push %ecx
e: 83 ec 04 sub $0x4,%esp
forktest();
11: e8 3a 00 00 00 call 50 <forktest>
exit();
16: e8 a6 03 00 00 call 3c1 <exit>
1b: 66 90 xchg %ax,%ax
1d: 66 90 xchg %ax,%ax
1f: 90 nop
00000020 <printf>:
{
20: 55 push %ebp
21: 89 e5 mov %esp,%ebp
23: 53 push %ebx
24: 83 ec 10 sub $0x10,%esp
27: 8b 5d 0c mov 0xc(%ebp),%ebx
write(fd, s, strlen(s));
2a: 53 push %ebx
2b: e8 a0 01 00 00 call 1d0 <strlen>
30: 83 c4 0c add $0xc,%esp
33: 50 push %eax
34: 53 push %ebx
35: ff 75 08 pushl 0x8(%ebp)
38: e8 a4 03 00 00 call 3e1 <write>
}
3d: 83 c4 10 add $0x10,%esp
40: 8b 5d fc mov -0x4(%ebp),%ebx
43: c9 leave
44: c3 ret
45: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000050 <forktest>:
{
50: 55 push %ebp
51: 89 e5 mov %esp,%ebp
53: 53 push %ebx
for (n = 0; n < N; n++) {
54: 31 db xor %ebx,%ebx
{
56: 83 ec 10 sub $0x10,%esp
write(fd, s, strlen(s));
59: 68 bc 04 00 00 push $0x4bc
5e: e8 6d 01 00 00 call 1d0 <strlen>
63: 83 c4 0c add $0xc,%esp
66: 50 push %eax
67: 68 bc 04 00 00 push $0x4bc
6c: 6a 01 push $0x1
6e: e8 6e 03 00 00 call 3e1 <write>
73: 83 c4 10 add $0x10,%esp
76: eb 19 jmp 91 <forktest+0x41>
78: 90 nop
79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if (pid == 0) exit();
80: 0f 84 7c 00 00 00 je 102 <forktest+0xb2>
for (n = 0; n < N; n++) {
86: 83 c3 01 add $0x1,%ebx
89: 81 fb e8 03 00 00 cmp $0x3e8,%ebx
8f: 74 4f je e0 <forktest+0x90>
pid = fork();
91: e8 23 03 00 00 call 3b9 <fork>
if (pid < 0) break;
96: 85 c0 test %eax,%eax
98: 79 e6 jns 80 <forktest+0x30>
for (; n > 0; n--) {
9a: 85 db test %ebx,%ebx
9c: 74 10 je ae <forktest+0x5e>
9e: 66 90 xchg %ax,%ax
if (wait() < 0) {
a0: e8 24 03 00 00 call 3c9 <wait>
a5: 85 c0 test %eax,%eax
a7: 78 5e js 107 <forktest+0xb7>
for (; n > 0; n--) {
a9: 83 eb 01 sub $0x1,%ebx
ac: 75 f2 jne a0 <forktest+0x50>
if (wait() != -1) {
ae: e8 16 03 00 00 call 3c9 <wait>
b3: 83 f8 ff cmp $0xffffffff,%eax
b6: 75 71 jne 129 <forktest+0xd9>
write(fd, s, strlen(s));
b8: 83 ec 0c sub $0xc,%esp
bb: 68 ee 04 00 00 push $0x4ee
c0: e8 0b 01 00 00 call 1d0 <strlen>
c5: 83 c4 0c add $0xc,%esp
c8: 50 push %eax
c9: 68 ee 04 00 00 push $0x4ee
ce: 6a 01 push $0x1
d0: e8 0c 03 00 00 call 3e1 <write>
}
d5: 8b 5d fc mov -0x4(%ebp),%ebx
d8: c9 leave
d9: c3 ret
da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
write(fd, s, strlen(s));
e0: 83 ec 0c sub $0xc,%esp
e3: 68 fc 04 00 00 push $0x4fc
e8: e8 e3 00 00 00 call 1d0 <strlen>
ed: 83 c4 0c add $0xc,%esp
f0: 50 push %eax
f1: 68 fc 04 00 00 push $0x4fc
f6: 6a 01 push $0x1
f8: e8 e4 02 00 00 call 3e1 <write>
exit();
fd: e8 bf 02 00 00 call 3c1 <exit>
if (pid == 0) exit();
102: e8 ba 02 00 00 call 3c1 <exit>
write(fd, s, strlen(s));
107: 83 ec 0c sub $0xc,%esp
10a: 68 c7 04 00 00 push $0x4c7
10f: e8 bc 00 00 00 call 1d0 <strlen>
114: 83 c4 0c add $0xc,%esp
117: 50 push %eax
118: 68 c7 04 00 00 push $0x4c7
11d: 6a 01 push $0x1
11f: e8 bd 02 00 00 call 3e1 <write>
exit();
124: e8 98 02 00 00 call 3c1 <exit>
write(fd, s, strlen(s));
129: 83 ec 0c sub $0xc,%esp
12c: 68 db 04 00 00 push $0x4db
131: e8 9a 00 00 00 call 1d0 <strlen>
136: 83 c4 0c add $0xc,%esp
139: 50 push %eax
13a: 68 db 04 00 00 push $0x4db
13f: 6a 01 push $0x1
141: e8 9b 02 00 00 call 3e1 <write>
exit();
146: e8 76 02 00 00 call 3c1 <exit>
14b: 66 90 xchg %ax,%ax
14d: 66 90 xchg %ax,%ax
14f: 90 nop
00000150 <strcpy>:
#include "user.h"
#include "x86.h"
char *
strcpy(char *s, char *t)
{
150: 55 push %ebp
151: 89 e5 mov %esp,%ebp
153: 53 push %ebx
154: 8b 45 08 mov 0x8(%ebp),%eax
157: 8b 4d 0c mov 0xc(%ebp),%ecx
char *os;
os = s;
while ((*s++ = *t++) != 0)
15a: 89 c2 mov %eax,%edx
15c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
160: 83 c1 01 add $0x1,%ecx
163: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
167: 83 c2 01 add $0x1,%edx
16a: 84 db test %bl,%bl
16c: 88 5a ff mov %bl,-0x1(%edx)
16f: 75 ef jne 160 <strcpy+0x10>
;
return os;
}
171: 5b pop %ebx
172: 5d pop %ebp
173: c3 ret
174: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
17a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000180 <strcmp>:
int
strcmp(const char *p, const char *q)
{
180: 55 push %ebp
181: 89 e5 mov %esp,%ebp
183: 53 push %ebx
184: 8b 55 08 mov 0x8(%ebp),%edx
187: 8b 4d 0c mov 0xc(%ebp),%ecx
while (*p && *p == *q) p++, q++;
18a: 0f b6 02 movzbl (%edx),%eax
18d: 0f b6 19 movzbl (%ecx),%ebx
190: 84 c0 test %al,%al
192: 75 1c jne 1b0 <strcmp+0x30>
194: eb 2a jmp 1c0 <strcmp+0x40>
196: 8d 76 00 lea 0x0(%esi),%esi
199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
1a0: 83 c2 01 add $0x1,%edx
1a3: 0f b6 02 movzbl (%edx),%eax
1a6: 83 c1 01 add $0x1,%ecx
1a9: 0f b6 19 movzbl (%ecx),%ebx
1ac: 84 c0 test %al,%al
1ae: 74 10 je 1c0 <strcmp+0x40>
1b0: 38 d8 cmp %bl,%al
1b2: 74 ec je 1a0 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
1b4: 29 d8 sub %ebx,%eax
}
1b6: 5b pop %ebx
1b7: 5d pop %ebp
1b8: c3 ret
1b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1c0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
1c2: 29 d8 sub %ebx,%eax
}
1c4: 5b pop %ebx
1c5: 5d pop %ebp
1c6: c3 ret
1c7: 89 f6 mov %esi,%esi
1c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000001d0 <strlen>:
uint
strlen(char *s)
{
1d0: 55 push %ebp
1d1: 89 e5 mov %esp,%ebp
1d3: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for (n = 0; s[n]; n++)
1d6: 80 39 00 cmpb $0x0,(%ecx)
1d9: 74 15 je 1f0 <strlen+0x20>
1db: 31 d2 xor %edx,%edx
1dd: 8d 76 00 lea 0x0(%esi),%esi
1e0: 83 c2 01 add $0x1,%edx
1e3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
1e7: 89 d0 mov %edx,%eax
1e9: 75 f5 jne 1e0 <strlen+0x10>
;
return n;
}
1eb: 5d pop %ebp
1ec: c3 ret
1ed: 8d 76 00 lea 0x0(%esi),%esi
for (n = 0; s[n]; n++)
1f0: 31 c0 xor %eax,%eax
}
1f2: 5d pop %ebp
1f3: c3 ret
1f4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1fa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000200 <memset>:
void *
memset(void *dst, int c, uint n)
{
200: 55 push %ebp
201: 89 e5 mov %esp,%ebp
203: 57 push %edi
204: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" : "=D"(addr), "=c"(cnt) : "0"(addr), "1"(cnt), "a"(data) : "memory", "cc");
207: 8b 4d 10 mov 0x10(%ebp),%ecx
20a: 8b 45 0c mov 0xc(%ebp),%eax
20d: 89 d7 mov %edx,%edi
20f: fc cld
210: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
212: 89 d0 mov %edx,%eax
214: 5f pop %edi
215: 5d pop %ebp
216: c3 ret
217: 89 f6 mov %esi,%esi
219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000220 <strchr>:
char *
strchr(const char *s, char c)
{
220: 55 push %ebp
221: 89 e5 mov %esp,%ebp
223: 53 push %ebx
224: 8b 45 08 mov 0x8(%ebp),%eax
227: 8b 5d 0c mov 0xc(%ebp),%ebx
for (; *s; s++)
22a: 0f b6 10 movzbl (%eax),%edx
22d: 84 d2 test %dl,%dl
22f: 74 1d je 24e <strchr+0x2e>
if (*s == c) return (char *)s;
231: 38 d3 cmp %dl,%bl
233: 89 d9 mov %ebx,%ecx
235: 75 0d jne 244 <strchr+0x24>
237: eb 17 jmp 250 <strchr+0x30>
239: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
240: 38 ca cmp %cl,%dl
242: 74 0c je 250 <strchr+0x30>
for (; *s; s++)
244: 83 c0 01 add $0x1,%eax
247: 0f b6 10 movzbl (%eax),%edx
24a: 84 d2 test %dl,%dl
24c: 75 f2 jne 240 <strchr+0x20>
return 0;
24e: 31 c0 xor %eax,%eax
}
250: 5b pop %ebx
251: 5d pop %ebp
252: c3 ret
253: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000260 <gets>:
char *
gets(char *buf, int max)
{
260: 55 push %ebp
261: 89 e5 mov %esp,%ebp
263: 57 push %edi
264: 56 push %esi
265: 53 push %ebx
int i, cc;
char c;
for (i = 0; i + 1 < max;) {
266: 31 f6 xor %esi,%esi
268: 89 f3 mov %esi,%ebx
{
26a: 83 ec 1c sub $0x1c,%esp
26d: 8b 7d 08 mov 0x8(%ebp),%edi
for (i = 0; i + 1 < max;) {
270: eb 2f jmp 2a1 <gets+0x41>
272: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
278: 8d 45 e7 lea -0x19(%ebp),%eax
27b: 83 ec 04 sub $0x4,%esp
27e: 6a 01 push $0x1
280: 50 push %eax
281: 6a 00 push $0x0
283: e8 51 01 00 00 call 3d9 <read>
if (cc < 1) break;
288: 83 c4 10 add $0x10,%esp
28b: 85 c0 test %eax,%eax
28d: 7e 1c jle 2ab <gets+0x4b>
buf[i++] = c;
28f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
293: 83 c7 01 add $0x1,%edi
296: 88 47 ff mov %al,-0x1(%edi)
if (c == '\n' || c == '\r') break;
299: 3c 0a cmp $0xa,%al
29b: 74 23 je 2c0 <gets+0x60>
29d: 3c 0d cmp $0xd,%al
29f: 74 1f je 2c0 <gets+0x60>
for (i = 0; i + 1 < max;) {
2a1: 83 c3 01 add $0x1,%ebx
2a4: 3b 5d 0c cmp 0xc(%ebp),%ebx
2a7: 89 fe mov %edi,%esi
2a9: 7c cd jl 278 <gets+0x18>
2ab: 89 f3 mov %esi,%ebx
}
buf[i] = '\0';
return buf;
}
2ad: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
2b0: c6 03 00 movb $0x0,(%ebx)
}
2b3: 8d 65 f4 lea -0xc(%ebp),%esp
2b6: 5b pop %ebx
2b7: 5e pop %esi
2b8: 5f pop %edi
2b9: 5d pop %ebp
2ba: c3 ret
2bb: 90 nop
2bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
2c0: 8b 75 08 mov 0x8(%ebp),%esi
2c3: 8b 45 08 mov 0x8(%ebp),%eax
2c6: 01 de add %ebx,%esi
2c8: 89 f3 mov %esi,%ebx
buf[i] = '\0';
2ca: c6 03 00 movb $0x0,(%ebx)
}
2cd: 8d 65 f4 lea -0xc(%ebp),%esp
2d0: 5b pop %ebx
2d1: 5e pop %esi
2d2: 5f pop %edi
2d3: 5d pop %ebp
2d4: c3 ret
2d5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
2d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000002e0 <stat>:
int
stat(char *n, struct stat *st)
{
2e0: 55 push %ebp
2e1: 89 e5 mov %esp,%ebp
2e3: 56 push %esi
2e4: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
2e5: 83 ec 08 sub $0x8,%esp
2e8: 6a 00 push $0x0
2ea: ff 75 08 pushl 0x8(%ebp)
2ed: e8 0f 01 00 00 call 401 <open>
if (fd < 0) return -1;
2f2: 83 c4 10 add $0x10,%esp
2f5: 85 c0 test %eax,%eax
2f7: 78 27 js 320 <stat+0x40>
r = fstat(fd, st);
2f9: 83 ec 08 sub $0x8,%esp
2fc: ff 75 0c pushl 0xc(%ebp)
2ff: 89 c3 mov %eax,%ebx
301: 50 push %eax
302: e8 12 01 00 00 call 419 <fstat>
close(fd);
307: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
30a: 89 c6 mov %eax,%esi
close(fd);
30c: e8 d8 00 00 00 call 3e9 <close>
return r;
311: 83 c4 10 add $0x10,%esp
}
314: 8d 65 f8 lea -0x8(%ebp),%esp
317: 89 f0 mov %esi,%eax
319: 5b pop %ebx
31a: 5e pop %esi
31b: 5d pop %ebp
31c: c3 ret
31d: 8d 76 00 lea 0x0(%esi),%esi
if (fd < 0) return -1;
320: be ff ff ff ff mov $0xffffffff,%esi
325: eb ed jmp 314 <stat+0x34>
327: 89 f6 mov %esi,%esi
329: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000330 <atoi>:
int
atoi(const char *s)
{
330: 55 push %ebp
331: 89 e5 mov %esp,%ebp
333: 53 push %ebx
334: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
while ('0' <= *s && *s <= '9') n= n * 10 + *s++ - '0';
337: 0f be 11 movsbl (%ecx),%edx
33a: 8d 42 d0 lea -0x30(%edx),%eax
33d: 3c 09 cmp $0x9,%al
n = 0;
33f: b8 00 00 00 00 mov $0x0,%eax
while ('0' <= *s && *s <= '9') n= n * 10 + *s++ - '0';
344: 77 1f ja 365 <atoi+0x35>
346: 8d 76 00 lea 0x0(%esi),%esi
349: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
350: 8d 04 80 lea (%eax,%eax,4),%eax
353: 83 c1 01 add $0x1,%ecx
356: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
35a: 0f be 11 movsbl (%ecx),%edx
35d: 8d 5a d0 lea -0x30(%edx),%ebx
360: 80 fb 09 cmp $0x9,%bl
363: 76 eb jbe 350 <atoi+0x20>
return n;
}
365: 5b pop %ebx
366: 5d pop %ebp
367: c3 ret
368: 90 nop
369: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000370 <memmove>:
void *
memmove(void *vdst, void *vsrc, int n)
{
370: 55 push %ebp
371: 89 e5 mov %esp,%ebp
373: 56 push %esi
374: 53 push %ebx
375: 8b 5d 10 mov 0x10(%ebp),%ebx
378: 8b 45 08 mov 0x8(%ebp),%eax
37b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while (n-- > 0) *dst++= *src++;
37e: 85 db test %ebx,%ebx
380: 7e 14 jle 396 <memmove+0x26>
382: 31 d2 xor %edx,%edx
384: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
388: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
38c: 88 0c 10 mov %cl,(%eax,%edx,1)
38f: 83 c2 01 add $0x1,%edx
392: 39 d3 cmp %edx,%ebx
394: 75 f2 jne 388 <memmove+0x18>
return vdst;
}
396: 5b pop %ebx
397: 5e pop %esi
398: 5d pop %ebp
399: c3 ret
39a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
000003a0 <shm_get>:
char*
shm_get(char* name)
{
3a0: 55 push %ebp
3a1: 89 e5 mov %esp,%ebp
return shmget(name);
}
3a3: 5d pop %ebp
return shmget(name);
3a4: e9 00 01 00 00 jmp 4a9 <shmget>
3a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
000003b0 <shm_rem>:
int
shm_rem(char* name)
{
3b0: 55 push %ebp
3b1: 89 e5 mov %esp,%ebp
return shmrem(name);
}
3b3: 5d pop %ebp
return shmrem(name);
3b4: e9 f8 00 00 00 jmp 4b1 <shmrem>
000003b9 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3b9: b8 01 00 00 00 mov $0x1,%eax
3be: cd 40 int $0x40
3c0: c3 ret
000003c1 <exit>:
SYSCALL(exit)
3c1: b8 02 00 00 00 mov $0x2,%eax
3c6: cd 40 int $0x40
3c8: c3 ret
000003c9 <wait>:
SYSCALL(wait)
3c9: b8 03 00 00 00 mov $0x3,%eax
3ce: cd 40 int $0x40
3d0: c3 ret
000003d1 <pipe>:
SYSCALL(pipe)
3d1: b8 04 00 00 00 mov $0x4,%eax
3d6: cd 40 int $0x40
3d8: c3 ret
000003d9 <read>:
SYSCALL(read)
3d9: b8 05 00 00 00 mov $0x5,%eax
3de: cd 40 int $0x40
3e0: c3 ret
000003e1 <write>:
SYSCALL(write)
3e1: b8 10 00 00 00 mov $0x10,%eax
3e6: cd 40 int $0x40
3e8: c3 ret
000003e9 <close>:
SYSCALL(close)
3e9: b8 15 00 00 00 mov $0x15,%eax
3ee: cd 40 int $0x40
3f0: c3 ret
000003f1 <kill>:
SYSCALL(kill)
3f1: b8 06 00 00 00 mov $0x6,%eax
3f6: cd 40 int $0x40
3f8: c3 ret
000003f9 <exec>:
SYSCALL(exec)
3f9: b8 07 00 00 00 mov $0x7,%eax
3fe: cd 40 int $0x40
400: c3 ret
00000401 <open>:
SYSCALL(open)
401: b8 0f 00 00 00 mov $0xf,%eax
406: cd 40 int $0x40
408: c3 ret
00000409 <mknod>:
SYSCALL(mknod)
409: b8 11 00 00 00 mov $0x11,%eax
40e: cd 40 int $0x40
410: c3 ret
00000411 <unlink>:
SYSCALL(unlink)
411: b8 12 00 00 00 mov $0x12,%eax
416: cd 40 int $0x40
418: c3 ret
00000419 <fstat>:
SYSCALL(fstat)
419: b8 08 00 00 00 mov $0x8,%eax
41e: cd 40 int $0x40
420: c3 ret
00000421 <link>:
SYSCALL(link)
421: b8 13 00 00 00 mov $0x13,%eax
426: cd 40 int $0x40
428: c3 ret
00000429 <mkdir>:
SYSCALL(mkdir)
429: b8 14 00 00 00 mov $0x14,%eax
42e: cd 40 int $0x40
430: c3 ret
00000431 <chdir>:
SYSCALL(chdir)
431: b8 09 00 00 00 mov $0x9,%eax
436: cd 40 int $0x40
438: c3 ret
00000439 <dup>:
SYSCALL(dup)
439: b8 0a 00 00 00 mov $0xa,%eax
43e: cd 40 int $0x40
440: c3 ret
00000441 <getpid>:
SYSCALL(getpid)
441: b8 0b 00 00 00 mov $0xb,%eax
446: cd 40 int $0x40
448: c3 ret
00000449 <sbrk>:
SYSCALL(sbrk)
449: b8 0c 00 00 00 mov $0xc,%eax
44e: cd 40 int $0x40
450: c3 ret
00000451 <sleep>:
SYSCALL(sleep)
451: b8 0d 00 00 00 mov $0xd,%eax
456: cd 40 int $0x40
458: c3 ret
00000459 <uptime>:
SYSCALL(uptime)
459: b8 0e 00 00 00 mov $0xe,%eax
45e: cd 40 int $0x40
460: c3 ret
00000461 <mcreate>:
SYSCALL(mcreate)
461: b8 16 00 00 00 mov $0x16,%eax
466: cd 40 int $0x40
468: c3 ret
00000469 <mdelete>:
SYSCALL(mdelete)
469: b8 17 00 00 00 mov $0x17,%eax
46e: cd 40 int $0x40
470: c3 ret
00000471 <mlock>:
SYSCALL(mlock)
471: b8 18 00 00 00 mov $0x18,%eax
476: cd 40 int $0x40
478: c3 ret
00000479 <munlock>:
SYSCALL(munlock)
479: b8 19 00 00 00 mov $0x19,%eax
47e: cd 40 int $0x40
480: c3 ret
00000481 <waitcv>:
SYSCALL(waitcv)
481: b8 1a 00 00 00 mov $0x1a,%eax
486: cd 40 int $0x40
488: c3 ret
00000489 <signalcv>:
SYSCALL(signalcv)
489: b8 1b 00 00 00 mov $0x1b,%eax
48e: cd 40 int $0x40
490: c3 ret
00000491 <prio_set>:
SYSCALL(prio_set)
491: b8 1c 00 00 00 mov $0x1c,%eax
496: cd 40 int $0x40
498: c3 ret
00000499 <testpqeq>:
SYSCALL(testpqeq)
499: b8 1d 00 00 00 mov $0x1d,%eax
49e: cd 40 int $0x40
4a0: c3 ret
000004a1 <testpqdq>:
SYSCALL(testpqdq)
4a1: b8 1e 00 00 00 mov $0x1e,%eax
4a6: cd 40 int $0x40
4a8: c3 ret
000004a9 <shmget>:
SYSCALL(shmget)
4a9: b8 1f 00 00 00 mov $0x1f,%eax
4ae: cd 40 int $0x40
4b0: c3 ret
000004b1 <shmrem>:
4b1: b8 20 00 00 00 mov $0x20,%eax
4b6: cd 40 int $0x40
4b8: c3 ret
| 31.841121
| 106
| 0.418969
|
c2605e951d8099fdc26ed42231a57597357fd78a
| 1,269
|
asm
|
Assembly
|
IV Semester/Microprocessor_Lab/6A_Separate_Even_Odd/6A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | 2
|
2021-05-05T15:10:45.000Z
|
2021-06-14T20:24:50.000Z
|
IV Semester/Microprocessor_Lab/6A_Separate_Even_Odd/6A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | null | null | null |
IV Semester/Microprocessor_Lab/6A_Separate_Even_Odd/6A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | null | null | null |
.model small
.data
arr db 10,20,99,98,97,100
len db $-arr
n db 2
d dw 10
eve db 5 dup(?)
odd db 5 dup(?)
m1 db 10,13,'even array elements are $'
m2 db 10,13,'odd array elements are $'
.code
mov ax,@data
mov ds,ax
mov ax,00h
lea si,arr
lea di,eve
lea bx,odd
mov ch,00h
mov cl,len
l2:mov al,[si] ;checking if a number is odd or even
div n
cmp ah,00h
jz l1
mov al,[si] ;storing the number in odd array
mov [bx],al
inc bx
jmp lab
l1:mov al,[si]
mov [di],al ;storing the number in even array
inc di
lab:inc si
loop l2
lea di,eve
lea bx,odd
lea dx,m1
mov ah,09h
int 21h
l5:mov ah,[di]
cmp ah,00h
jz go
mov al,[di]
call printspace ;calling printspace procedure to print the space
call printf ;printing the values
inc di
jmp l5
go:lea dx,m2
mov ah,09h
int 21h
back:mov ah,[bx]
cmp ah,00h
jz exit
mov al,[bx]
call printspace
call printf
inc bx
jmp back
exit:mov ah,4ch
int 21h
printspace proc near
mov n,al
mov dl,' '
mov ah,02h
int 21h
mov ah,00h
mov al,n
ret
printspace endp
printf proc near
mov cx,00h
l3:mov dx,0000h
div d
push dx
inc cx
cmp ax,00h
jnz l3
l4:pop dx
add dl,30h
mov ah,02h
int 21h
loop l4
mov cx,00h
ret
printf endp
end
| 13.082474
| 71
| 0.643814
|
2530e2dd4c357255fa625b626688d31bbb17c838
| 633
|
asm
|
Assembly
|
sorting-algorithms/insertion.asm
|
informramiz/Assembly-Language-Programs
|
600d8f737a09ef4c133b686918501fba56dd586e
|
[
"Apache-2.0"
] | null | null | null |
sorting-algorithms/insertion.asm
|
informramiz/Assembly-Language-Programs
|
600d8f737a09ef4c133b686918501fba56dd586e
|
[
"Apache-2.0"
] | null | null | null |
sorting-algorithms/insertion.asm
|
informramiz/Assembly-Language-Programs
|
600d8f737a09ef4c133b686918501fba56dd586e
|
[
"Apache-2.0"
] | null | null | null |
INSERT_SORT PROC ;use bx and si as input and sort the string pointed by si
PUSH DI
PUSH SI
PUSH CX
PUSH DX
PUSH BX
DEC BX
MOV DI,1H
INSERT: ;main loop which runs untill string is sorted
MOV DL,STRING[DI]
MOV SI,DI
WHILE_: ;sorts a portion of string
CMP SI,0H
JE NEXT2
CMP STRING[SI-1],DL
JNG NEXT2
MOV DH,STRING[SI-1]
MOV STRING[SI],DH
DEC SI
JMP WHILE_
NEXT2:
MOV STRING[SI],DL
CALL ITERATION_PROC
INC DI
CMP DI,BX
JNG INSERT
POP BX
POP DX
POP CX
POP SI
POP DI
RET
INSERT_SORT ENDP
| 12.66
| 75
| 0.581359
|
b05660bd020987296df8b3bf52c6d8be860f5d2b
| 423
|
asm
|
Assembly
|
programs/oeis/181/A181527.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/181/A181527.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/181/A181527.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A181527: Binomial transform of A113127; (1, 1, 3, 7, 15, 31,...) convolved with (1, 3, 7, 15, 31, 63,...).
; 1,4,13,38,103,264,649,1546,3595,8204,18445,40974,90127,196624,426001,917522,1966099,4194324,8912917,18874390,39845911,83886104,176160793,369098778,771751963,1610612764,3355443229,6979321886,14495514655,30064771104,62277025825
add $0,1
mov $2,$0
lpb $0
sub $0,1
add $1,$2
sub $2,1
mul $2,2
lpe
mov $0,$1
| 32.538462
| 227
| 0.70922
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.