hexsha stringlengths 40 40 | size int64 6 1.05M | ext stringclasses 3 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 232 | max_stars_repo_name stringlengths 7 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 7 | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 232 | max_issues_repo_name stringlengths 7 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 7 | max_issues_count int64 1 37.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 232 | max_forks_repo_name stringlengths 7 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 7 | max_forks_count int64 1 12.6k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 6 1.05M | avg_line_length float64 1.16 19.7k | max_line_length int64 2 938k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c65b69b1ea4739b921af2662b777597d7f1eb5a9 | 3,505 | asm | Assembly | Library/Parse/parseError.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Parse/parseError.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Parse/parseError.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: parseError.asm
AUTHOR: John Wedgwood, Jan 24, 1991
ROUTINES:
Name Description
---- -----------
ParserErrorMessage Get an error message for a parser error.
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 1/24/91 Initial revision
DESCRIPTION:
$Id: parseError.asm,v 1.1 97/04/05 01:27:17 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ParserErrorCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ParserErrorMessage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Given that an error was generated, return a meaningful
error message.
CALLED BY: Global
PASS: ds:si = Pointer to the place to put the message
al = ParserScannerEvalError
RETURN: cx = length of the error message (not counting the null)
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 1/24/91 Initial version
witt 12/ 6/93 DBCS-ized
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ParserErrorMessage proc far
uses ax, bx, ds, es, di, si
.enter
EC < cmp al, ParserScannerEvaluatorError >
EC < ERROR_AE ILLEGAL_ERROR_CODE >
; mov bx, resid ErrorMessages
segmov es, ds ; es:di <- destination
mov di, si
clr ah ; ax <- error code
mov si, ax ; si <- error code
shl si, 1 ; si <- offset into chunks
add si, offset err_badNumber ; si <- chunk handle
; mov ax, bx ; ax <- resource ID
; mov bx, handle 0 ; bx <- handle of the geode
; call GeodeGetGeodeResourceHandle ; bx <- handle of the resource
mov bx, handle ErrorMessages
call MemLock ; ax <- seg addr of resource
mov ds, ax ; ds <- segment of resource
mov si, ds:[si] ; ds:si <- ptr to source
ChunkSizePtr ds, si, cx ; cx <- size of string
push cx ; Save size
rep movsb ; Move the data
pop cx ; Restore size
DBCS< shr cx, 1 ; cx <- string length >
dec cx ; Don't count NULL
call MemUnlock ; Unlock the resource
.leave
ret
ParserErrorMessage endp
;
; One ForceRef for every error message so that the assembler & linker don't
; complain that these symbols aren't accessed.
;
ForceRef err_badNumber
ForceRef err_badCellReference
ForceRef err_noCloseQuote
ForceRef err_columnTooLarge
ForceRef err_rowTooLarge
ForceRef err_general
ForceRef err_tooManyTokens
ForceRef err_expectedOpenParen
ForceRef err_expectedCloseParen
ForceRef err_badExpression
ForceRef err_expectedEOE
ForceRef err_missingCloseParen
ForceRef err_outOfStackSpace
ForceRef err_rowOutOfRange
ForceRef err_columnOutOfRange
ForceRef err_functionNoLongerExists
ForceRef err_illegalToken
ForceRef err_tooManyDependencies
ForceRef err_unknownIdentifier
ForceRef err_notEnoughNameSpace
ForceRef err_tooMuchNesting
ForceRef err_badArgCount
ForceRef err_wrongType
ForceRef err_divideByZero
ForceRef err_undefinedName
ForceRef err_circularRef
ForceRef err_circularDep
ForceRef err_circularNameRef
ForceRef err_genErr
ForceRef err_floatPosInfinity
ForceRef err_floatNegInfinity
ForceRef err_floatGenErr
ForceRef err_numOutOfRange
ParserErrorCode ends
| 26.55303 | 79 | 0.651641 |
2ddcfc24ed8332622ab7417c87b50bc776fcc5f7 | 506 | asm | Assembly | Assignment1/64_bit2.asm | scorpionhiccup/201301129_cloud_assignments | 741a7f4aa0007af85a450ca03b554bc1907f1ff8 | [
"Apache-2.0"
] | 1 | 2015-09-26T10:37:01.000Z | 2015-09-26T10:37:01.000Z | Assignment1/64_bit2.asm | scorpionhiccup/201301129_cloud_assignments | 741a7f4aa0007af85a450ca03b554bc1907f1ff8 | [
"Apache-2.0"
] | null | null | null | Assignment1/64_bit2.asm | scorpionhiccup/201301129_cloud_assignments | 741a7f4aa0007af85a450ca03b554bc1907f1ff8 | [
"Apache-2.0"
] | null | null | null | .file "prog.c"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl $1, -12(%rbp)
movl $2, -8(%rbp)
movl $3, -4(%rbp)
movl -8(%rbp), %eax
movl -12(%rbp), %edx
addl %edx, %eax
movl %eax, -4(%rbp)
movl $0, %eax
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4"
.section .note.GNU-stack,"",@progbits
| 17.448276 | 50 | 0.632411 |
ce5e880e09d8ba99435f7c9b8e9ec030a61d2a18 | 377 | asm | Assembly | oeis/044/A044077.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/044/A044077.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/044/A044077.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A044077: Numbers n such that string 0,0 occurs in the base 5 representation of n but not of n-1.
; Submitted by Jamie Morken(s4)
; 25,50,75,100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,625,675,700,725,750,775,800,825,850,875,900,925,950,975,1000,1025,1050,1075,1100,1125,1150
mov $2,$0
div $2,25
add $2,1
add $2,$0
mov $0,$2
mul $0,25
| 34.272727 | 185 | 0.713528 |
7ac082fa434e25dcbc12415f75614d3eb97c0d87 | 638 | asm | Assembly | oeis/207/A207832.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/207/A207832.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/207/A207832.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A207832: Numbers x such that 20*x^2+1 is a perfect square.
; 0,2,36,646,11592,208010,3732588,66978574,1201881744,21566892818,387002188980,6944472508822,124613502969816,2236098580947866,40125160954091772,720016798592704030,12920177213714580768,231843173048269749794,4160256937655140915524,74652781704744266729638,1339589813747741660217960,24037963865754605617193642,431343759769835159449267596,7740149711991278264469623086,138891351056073173601003947952,2492304169297325846553601440050,44722583696295792064363821972948,802514202364026931311995194073014
mul $0,6
mov $2,1
lpb $0
sub $0,2
add $1,$2
add $2,$1
lpe
div $1,4
mov $0,$1
| 49.076923 | 492 | 0.860502 |
7bdfe06a19c31f3a836b48c6c07a97dd39a5de53 | 4,346 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1563.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1563.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1563.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1d8c1, %rsi
lea addresses_UC_ht+0x11f83, %rdi
nop
nop
nop
nop
sub $53916, %r10
mov $42, %rcx
rep movsl
inc %r11
lea addresses_normal_ht+0x85c1, %rax
nop
nop
nop
cmp $60376, %r10
mov (%rax), %r11d
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %rax
push %rbp
push %rbx
push %rsi
// Faulty Load
lea addresses_D+0x15bc1, %rsi
clflush (%rsi)
nop
nop
xor $23495, %rbp
movups (%rsi), %xmm4
vpextrq $1, %xmm4, %rbx
lea oracles, %r14
and $0xff, %rbx
shlq $12, %rbx
mov (%r14,%rbx,1), %rbx
pop %rsi
pop %rbx
pop %rbp
pop %rax
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'same': True, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 57.946667 | 2,999 | 0.663139 |
219da98afa32ed46f33afb771f236d33d616e850 | 299 | asm | Assembly | oeis/255/A255843.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/255/A255843.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/255/A255843.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A255843: a(n) = 2*n^2 + 4.
; Submitted by Christian Krause
; 4,6,12,22,36,54,76,102,132,166,204,246,292,342,396,454,516,582,652,726,804,886,972,1062,1156,1254,1356,1462,1572,1686,1804,1926,2052,2182,2316,2454,2596,2742,2892,3046,3204,3366,3532,3702,3876,4054,4236,4422
pow $0,2
mul $0,2
add $0,4
| 37.375 | 209 | 0.715719 |
8919b1b188df30d6bea5d5665c0d296d31f8cce3 | 17,440 | asm | Assembly | assets/Destination/______NoPOPA_PUSHAV.asm | BeshoyMorad/The86-Pgame | 6e9e67aa100e6bd7c7601cb9c4441cf56b04a584 | [
"MIT"
] | 1 | 2022-02-19T17:25:08.000Z | 2022-02-19T17:25:08.000Z | assets/Destination/______NoPOPA_PUSHAV.asm | BeshoyMorad/The86-Pgame | 6e9e67aa100e6bd7c7601cb9c4441cf56b04a584 | [
"MIT"
] | null | null | null | assets/Destination/______NoPOPA_PUSHAV.asm | BeshoyMorad/The86-Pgame | 6e9e67aa100e6bd7c7601cb9c4441cf56b04a584 | [
"MIT"
] | null | null | null | .model small
.stack 64
.data
dummy db ?
registers dw 'ax','bx','cx','dx','si','di','bp','sp','ah','al','bh','bl','ch','cl','dh','dl'
registersOffsets dw 16 dup(00)
;string db " H e l lo Worl d $"
string db '[014fe213213213cd]$'
string2 db '[ 014f e2132aa132 13cd]$'
string3 db '[ 01n4f e2132aa132 13cd]$'
string4 db 'Hello world$'
string5 db '[000f]$'
flag db 0ffh
destination dw 00000
testString db 0000
.code
printChar MACRO char
mov ah,2h
mov dl,char
int 21h
ENDM
printString MACRO string
mov ah,9h
mov dx,offset string
int 21h
ENDM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Written by : - Abdelrahman Hamza 12-12-2021 ;;
; parameters : - two arrays 1) input array 2) output array ;;
; return : - fill output array with offsets of input array ;;
;A macro that fills registersOffsets array with offsets of registers array ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
offsetSetter MACRO InputRegisters, InputRegistersOffsets ;;
LOCAL offsetLoop16 ;;
LOCAL offsetLoop8 ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; loop 16 times => number of registers ;;
;set offsets of 16bit registers ;;
mov cx,16 ;;
; Loop start ;;
offsetLoop16: ;;
mov bx,cx ;;
mov ax,offset InputRegisters ;;
add ax,cx ;;
mov InputRegistersOffsets[bx],ax ;;
dec cx ;;
loop offsetLoop16 ;;
;;
;next two line Handels first 16bit register ;;
mov ax,offset InputRegisters ;;
mov InputRegistersOffsets,ax ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;set offsets of 8bit registers ;;
; cx only handels loop range ;;
mov cx,16 ;;
; bx iterates over offsetArray ;;
mov bx,16 ;;
; si iterates over registers ;;
mov si,0 ;;
; Loop start ;;
offsetLoop8: ;;
mov ax,offset InputRegisters ;;
add ax,si ;;
mov InputRegistersOffsets[bx],ax ;;
inc si ;;
add bx,2 ;;
dec cx ;;
loop offsetLoop8 ;;
ENDM ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Written by : - Abdelrahman Hamza 12-12-2021 ;;
; parameters : - string you want to remove all spaces from it ;;
; return : - Removes all spaces from this string ;;
;A macro that takes a string with spaces and remove all spaces from it ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
removeSpaces MACRO string ;;
LOCAL loopOverAllString ;;
LOCAL stringEnd ;;
LOCAL notSpace ;;
LOCAL innerLoopString ;;
LOCAL DontIncBX ;;
mov bx, string ;;
;;
;mov bx,offset string ;;
;iterate over all string ;;
loopOverAllString: ;;
;check end of string ;;
mov ah,'$' ;;
cmp [bx],ah ;;
jz stringEnd ;;
;check if space ;;
mov ah,' ' ;;
cmp [bx],ah ;;
jnz notSpace ;;
; if space what to do? ;;
mov si,bx ;;
innerLoopString: ;;
mov ah,'$' ;;
cmp [si],ah ;;
jz DontIncBX ;not increament bx if space ;;
mov ax,[si+1] ;;
mov [si],ax ;;
inc si ;;
jmp innerLoopString ;;
;;
notSpace: ;;
inc bx ;;
DontIncBX: ;;
jmp loopOverAllString ;;
;;
stringEnd: ;;
ENDM ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Written by : - Abdelrahman Hamza 12-12-2021 ;;
; parameters : - a number represented as a string you want to validate ;;
; return : - flag = 1 if not valid else not affect it ;;
;A macro that validate a number => has spaces and 0,1,...f ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
validateNumbers MACRO string,flag ;;
LOCAL validNumber ;;
LOCAL loopOverAllString ;;
LOCAL stringEnd ;;
LOCAL done ;;
push ax
push bx
push cx
push dx
push bp
push si
push di ;;
removeSpaces string ;;
pop di
pop si
pop bp
pop dx
pop cx
pop bx
pop ax ;;
mov bx,string ;;
;mov bx,offset string ;;
;;
loopOverAllString: ;;
mov ah,'$'
cmp [bx],ah ;;
jz stringEnd ;;
mov ax,[bx] ;;
mov ah,0 ;;
sub ax,'0' ;;
cmp ax,000Fh ;;
jbe validNumber ;;
mov ax,[bx] ;;
mov ah,0 ;;
sub ax,'a' ;;
cmp ax,0005h ;;
jbe validNumber ;;
mov flag,0001h ;;
jmp stringEnd ;;
validNumber: ;;
inc bx ;;
jmp loopOverAllString ;;
stringEnd: ;;
ENDM ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Written by : - Abdelrahman Hamza 12-12-2021 ;;
; parameters : - a number represented as a string you want to validate ;;
; return : - flag = 1 if not valid memory else not affect it ;;
;A macro that validate a number => has spaces and 0,1,...f ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
validateMemory MACRO string,flag,destination ;;
push ax
push bx
push cx
push dx
push bp
push si
push di ;;
mov bx,offset string ;;
removeSpaces bx ;;
pop di
pop si
pop bp
pop dx
pop cx
pop bx
pop ax ;;
mov bx,offset string ;;
mov si,offset string ;;
;;
GoToStringEnd: ;;
mov ah,'$' ;;
cmp [si],ah ;;
inc si ;;
mov ah,'$' ;;
cmp [si],ah ;;
jnz GoToStringEnd ;;
dec si ;;
;;
mov ah,'[' ;;
cmp [bx],ah ;;
jnz compareEnd ;;
mov ah,']' ;;
cmp [si],ah ;;
jnz notValidSquare ;;
jmp WithSquareBracktes ;;
compareEnd: ;;
mov ah,']' ;;
cmp [si],ah ;;
jz notValidSquare ;;
jmp noSqaure ;;
notValidSquare: mov flag,0001h ;;
jmp done ;;
WithSquareBracktes: ;;
inc bx ;;
mov ah,'$' ;;
mov [si],ah ;;
push ax
push bx
push cx
push dx
push bp
push si
push di ;;
validateNumbers bx,flag ;;
pop di
pop si
pop bp
pop dx
pop cx
pop bx
pop ax ;;
jmp done ;;
noSqaure: ;;
push ax
push bx
push cx
push dx
push bp
push si
push di ;;
validateNumbers bx,flag ;;
pop di
pop si
pop bp
pop dx
pop cx
pop bx
pop ax ;;
done: ;;
mov destination,bx ;;
ENDM ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
main proc far
mov ax,@data
mov ds,ax
mov es,ax
validateMemory string5,flag,destination
mov ah,9h
mov dx,destination
int 21h
hlt
main endp
end main | 63.188406 | 99 | 0.186468 |
f8167c66b85c55b738fc45943c2cea17dacbeb8d | 642 | asm | Assembly | oeis/130/A130102.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/130/A130102.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/130/A130102.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A130102: E.g.f.: (e^x - x)^2.
; 1,0,2,2,8,22,52,114,240,494,1004,2026,4072,8166,16356,32738,65504,131038,262108,524250,1048536,2097110,4194260,8388562,16777168,33554382,67108812,134217674,268435400,536870854,1073741764,2147483586,4294967232,8589934526,17179869116,34359738298,68719476664,137438953398,274877906868,549755813810,1099511627696,2199023255470,4398046511020,8796093022122,17592186044328,35184372088742,70368744177572,140737488355234,281474976710560,562949953421214,1125899906842524,2251799813685146,4503599627370392
mov $1,2
pow $1,$0
sub $1,$0
sub $1,$0
mul $1,2
lpb $0
mul $0,2
mov $1,$0
sub $0,4
lpe
div $1,2
mov $0,$1
| 40.125 | 496 | 0.799065 |
ef17e410bf97ca48a203482b4c8c5ff7e49ab80c | 147 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_mplay0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_mplay0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_mplay0.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_mplay0.asm
Type: file
Size: 43685
Last-Modified: '2016-05-13T04:50:33Z'
SHA-1: 8678B03BD6785EF98FBCD8E9BB97E9FDC3BE943F
Description: null
| 21 | 47 | 0.816327 |
354300e4de1b01fe0742a325d7a166e7fb61ff65 | 3,030 | asm | Assembly | libtool/src/gmp-6.1.2/mpn/x86/pentium4/sse2/bdiv_dbm1c.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 1,602 | 2015-01-06T11:26:31.000Z | 2022-03-30T06:17:21.000Z | libtool/src/gmp-6.1.2/mpn/x86/pentium4/sse2/bdiv_dbm1c.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | libtool/src/gmp-6.1.2/mpn/x86/pentium4/sse2/bdiv_dbm1c.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 498 | 2015-01-08T18:58:18.000Z | 2022-03-20T15:37:45.000Z | dnl Intel Atom mpn_bdiv_dbm1.
dnl Contributed to the GNU project by Torbjorn Granlund and Marco Bodrato.
dnl Copyright 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C cycles/limb
C P5 -
C P6 model 0-8,10-12 -
C P6 model 9 (Banias) 9.75
C P6 model 13 (Dothan)
C P4 model 0 (Willamette)
C P4 model 1 (?)
C P4 model 2 (Northwood) 8.25
C P4 model 3 (Prescott)
C P4 model 4 (Nocona)
C Intel Atom 8
C AMD K6 -
C AMD K7 -
C AMD K8
C AMD K10
C TODO: This code was optimised for atom-32, consider moving it back to atom
C dir(atom currently grabs this code), and write a 4-way version(7c/l).
defframe(PARAM_CARRY,20)
defframe(PARAM_MUL, 16)
defframe(PARAM_SIZE, 12)
defframe(PARAM_SRC, 8)
defframe(PARAM_DST, 4)
dnl re-use parameter space
define(SAVE_RP,`PARAM_MUL')
define(SAVE_UP,`PARAM_SIZE')
define(`rp', `%edi')
define(`up', `%esi')
define(`n', `%ecx')
define(`reg', `%edx')
define(`cy', `%eax') C contains the return value
ASM_START()
TEXT
ALIGN(16)
deflit(`FRAME',0)
PROLOGUE(mpn_bdiv_dbm1c)
mov PARAM_SIZE, n C size
mov up, SAVE_UP
mov PARAM_SRC, up
movd PARAM_MUL, %mm7
mov rp, SAVE_RP
mov PARAM_DST, rp
movd (up), %mm0
pmuludq %mm7, %mm0
shr n
mov PARAM_CARRY, cy
jz L(eq1)
movd 4(up), %mm1
jc L(odd)
lea 4(up), up
pmuludq %mm7, %mm1
movd %mm0, reg
psrlq $32, %mm0
sub reg, cy
movd %mm0, reg
movq %mm1, %mm0
dec n
mov cy, (rp)
lea 4(rp), rp
jz L(end)
C ALIGN(16)
L(top): movd 4(up), %mm1
sbb reg, cy
L(odd): movd %mm0, reg
psrlq $32, %mm0
pmuludq %mm7, %mm1
sub reg, cy
lea 8(up), up
movd %mm0, reg
movd (up), %mm0
mov cy, (rp)
sbb reg, cy
movd %mm1, reg
psrlq $32, %mm1
sub reg, cy
movd %mm1, reg
pmuludq %mm7, %mm0
dec n
mov cy, 4(rp)
lea 8(rp), rp
jnz L(top)
L(end): sbb reg, cy
L(eq1): movd %mm0, reg
psrlq $32, %mm0
mov SAVE_UP, up
sub reg, cy
movd %mm0, reg
emms
mov cy, (rp)
sbb reg, cy
mov SAVE_RP, rp
ret
EPILOGUE()
ASM_END()
| 21.338028 | 79 | 0.690429 |
d55236629ccc9aeea8f1c4944ea52b13eb81728c | 1,943 | asm | Assembly | misc/printStringPro.asm | a1393323447/x86-Assambely | 1daf3041fe6f44948925ceb7bb6668950dcbab25 | [
"MIT"
] | 3 | 2021-05-04T13:59:36.000Z | 2021-08-23T16:03:13.000Z | misc/printStringPro.asm | a1393323447/x86-Assambely | 1daf3041fe6f44948925ceb7bb6668950dcbab25 | [
"MIT"
] | null | null | null | misc/printStringPro.asm | a1393323447/x86-Assambely | 1daf3041fe6f44948925ceb7bb6668950dcbab25 | [
"MIT"
] | null | null | null | ; 改变光标位置 -> 通过写入显卡寄存器实现
; 显卡寄存器很多, 通过 0x3d4 端口下发显卡寄存器编号
; 再从 0x3d5 读写对应编号寄存器的值
; 光标的位置由两个寄存器的值决定: 0x0e(光标位置高 8 位) 0x0f(光标位置低 8 位)
; 一个屏幕一行可显示 80 个字符
; eg: 若算得的光标位置为 185, 185 / 80 = 2 .. 25
; 那么光标就在 2 行 25 列
;
; 0x0d: 回车 -> 光标位置回到行首
; 0x0a: 换行 -> 光标位置换到下一行, 不回到行首
SETCHAR equ 0x07
VIDEORAM equ 0xb800
NUL equ 0x00
section code align=16 vstart=0x7c00
main:
mov di, Hello
call PrintString
jmp End
PrintString:
.setup:
push ax
push bx
push cx
push dx
mov bh, SETCHAR
mov ax, VIDEORAM
mov ds, ax
xor si, si
.print:
mov bl, [es:di]
inc di
or bl, NUL
jz .return
cmp bl, 0x0d
jz .putCR
cmp bl, 0x0a
jz .putLF
mov [ds:si], bl
inc si
mov [ds:si], bh
inc si
jmp .print
.putCR:
mov bl, 160
mov ax, si
div bl
shr ax, 8 ; 余数从 ah 位移到 al 中
sub si, ax ; 退格
call SetCursor
jmp .print
.putLF:
add si, 160
call SetCursor
jmp .print
.return:
pop dx
pop cx
pop bx
pop ax
ret
SetCursor:
.setup:
push ax
push bx
push cx
push dx
mov ax, si
mov dx, 0 ; 商: ax, 余数: dx
mov bx, 2 ; 一定能被 2 整除
div bx
mov bx, ax
.set:
mov dx, 0x3d4
mov al, 0x0e
out dx, al
mov dx, 0x3d5
mov al, bh
out dx, al
mov dx, 0x3d4
mov al, 0x0f
out dx, al
mov dx, 0x3d5
mov al, bl
out dx, al
.return:
pop dx
pop cx
pop bx
pop ax
ret
Hello db 'Hello!'
db 0x0d, 0x0a
db 'This is a test!'
db 0x0a
db 'Woo!'
db 0x0d
db 'Ha Ha'
db 0x00
End:
jmp End
times 510-($-$$) db 0
db 0x55, 0xaa | 17.19469 | 50 | 0.467833 |
6205d14b0819934294ae863ab134cf6218a510e1 | 1,034 | asm | Assembly | s1/sfx-original/SndA3 - Death.asm | Cancer52/flamedriver | 9ee6cf02c137dcd63e85a559907284283421e7ba | [
"0BSD"
] | 9 | 2017-10-09T20:28:45.000Z | 2021-06-29T21:19:20.000Z | s1/sfx-original/SndA3 - Death.asm | Cancer52/flamedriver | 9ee6cf02c137dcd63e85a559907284283421e7ba | [
"0BSD"
] | 12 | 2018-08-01T13:52:20.000Z | 2022-02-21T02:19:37.000Z | s1/sfx-original/SndA3 - Death.asm | Cancer52/flamedriver | 9ee6cf02c137dcd63e85a559907284283421e7ba | [
"0BSD"
] | 2 | 2018-02-17T19:50:36.000Z | 2019-10-30T19:28:06.000Z | SndA3_Death_Header:
smpsHeaderStartSong 1
smpsHeaderVoice SndA3_Death_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, SndA3_Death_FM5, $F4, $00
; FM5 Data
SndA3_Death_FM5:
smpsSetvoice $00
dc.b nB3, $07, smpsNoAttack, nAb3
SndA3_Death_Loop00:
dc.b $01
smpsAlterVol $01
smpsLoop $00, $2F, SndA3_Death_Loop00
smpsStop
SndA3_Death_Voices:
; Voice $00
; $30
; $30, $30, $30, $30, $9E, $D8, $DC, $DC, $0E, $0A, $04, $05
; $08, $08, $08, $08, $BF, $BF, $BF, $BF, $14, $3C, $14, $80
smpsVcAlgorithm $00
smpsVcFeedback $06
smpsVcUnusedBits $00
smpsVcDetune $03, $03, $03, $03
smpsVcCoarseFreq $00, $00, $00, $00
smpsVcRateScale $03, $03, $03, $02
smpsVcAttackRate $1C, $1C, $18, $1E
smpsVcAmpMod $00, $00, $00, $00
smpsVcDecayRate1 $05, $04, $0A, $0E
smpsVcDecayRate2 $08, $08, $08, $08
smpsVcDecayLevel $0B, $0B, $0B, $0B
smpsVcReleaseRate $0F, $0F, $0F, $0F
smpsVcTotalLevel $00, $14, $3C, $14
| 26.512821 | 62 | 0.624758 |
8a858936102efe4a59d0504f8287b9b1ea095c47 | 210 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_mkdir_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_mkdir_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_mkdir_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; unsigned char esx_f_mkdir(unsigned char *pathname)
SECTION code_esxdos
PUBLIC _esx_f_mkdir_fastcall
EXTERN asm_esx_f_mkdir
_esx_f_mkdir_fastcall:
push iy
call asm_esx_f_mkdir
pop iy
ret
| 12.352941 | 52 | 0.77619 |
f25becbf49067b565f1e5005280635a194e2cee2 | 385 | asm | Assembly | programs/oeis/119/A119930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/119/A119930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/119/A119930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A119930: Sum of the numbers of the matrix A111490 along a boustrophedon path: a11, a11+a12, a11+a12+a21, etc.
; 1,2,3,4,6,7,8,9,11,12,13,15,18,20,21,22,23,24,27,29,30
mov $2,$0
mov $4,$0
add $4,1
lpb $4
mov $0,$2
sub $4,1
sub $0,$4
seq $0,48158 ; Triangular array T read by rows: T(n,k) = n mod k, for k=1,2,...,n, n=1,2,...
mov $3,$0
add $3,1
add $1,$3
lpe
mov $0,$1
| 22.647059 | 111 | 0.592208 |
b1673e26f9816d54b1a8cb603820594ec1796d54 | 450 | asm | Assembly | programs/oeis/054/A054074.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/054/A054074.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/054/A054074.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A054074: Position of n-th 1 in A054073.
; 1,2,5,8,13,18,24,32,40,50,60,71,84,97,112,127,144,161,179,199,219,241,263,286,311,336,363,390,419,448,478,510,542,576,610,645,682,719,758,797,837,879,921,965,1009,1055,1101,1148,1197
mov $2,$0
add $2,1
mov $5,$0
lpb $2
mov $0,$5
sub $2,1
sub $0,$2
sub $0,1
mov $3,$0
mov $4,$0
add $4,2
cal $4,285073 ; 0-limiting word of the morphism 0->10, 1-> 010.
add $3,1
add $3,$4
add $1,$3
lpe
| 22.5 | 184 | 0.62 |
72dfc108673706f03906d0b63f33b1d51e8f2758 | 52,404 | asm | Assembly | non_regression/other_x86_linux_15.o.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | 1 | 2021-02-28T21:31:18.000Z | 2021-02-28T21:31:18.000Z | non_regression/other_x86_linux_15.o.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | null | null | null | non_regression/other_x86_linux_15.o.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | null | null | null | .file "bufferobject.c"
.section .rodata.str1.1,"aMS",@progbits,1
.LC00000000.str1.1:
.string "read-only"
.LC0000000A.str1.1:
.string "read-write"
.LC00000015.str1.1:
.string "buffer()"
.LC0000001E.str1.1:
.string "O|ii:buffer"
.LC0000002A.str1.1:
.string "buffer object expected"
.LC00000041.str1.1:
.string "size must be zero or positive"
.LC0000005F.str1.1:
.string "buffer is read-only"
.LC00000073.str1.1:
.string "buffer index out of range"
.LC0000008D.str1.1:
.string "buffer"
# ----------------------
.section .rodata.str1.4,"aMS",@progbits,1
.LC00000000.str1.4:
.string "single-segment buffer object expected"
# ----------------------
.LC00000026.str1.4:
.value 0
.align 4
.LC00000028.str1.4:
.string "<%s buffer ptr %p, size %d at %p>"
# ----------------------
.LC0000004A.str1.4:
.value 0
.align 4
.LC0000004C.str1.4:
.string "<%s buffer for %p, size %d, offset %d at %p>"
# ----------------------
.LC00000079.str1.4:
.zero 3
.align 4
.LC0000007C.str1.4:
.string "offset must be zero or positive"
.LC0000009C.str1.4:
.string "accessing non-existent buffer segment"
# ----------------------
.LC000000C2.str1.4:
.value 0
.align 4
.LC000000C4.str1.4:
.string "buffer assignment index out of range"
# ----------------------
.LC000000E9.str1.4:
.zero 3
.align 4
.LC000000EC.str1.4:
.string "right operand must be a single byte"
.LC00000110.str1.4:
.string "right operand length must match slice length"
# ----------------------
.LC0000013D.str1.4:
.zero 3
.align 4
.LC00000140.str1.4:
.string "writable buffers are not hashable"
# ----------------------
.data
.globl PyBuffer_Type
.type PyBuffer_Type, @object
PyBuffer_Type:
.long 1
.long PyType_Type
.long 0
.long .LC0000008D.str1.1
.long 32
.long 0
.long buffer_dealloc
.zero 12
.long buffer_compare
.long buffer_repr
.long 0
.long buffer_as_sequence
.long 0
.long buffer_hash
.long 0
.long buffer_str
.long PyObject_GenericGetAttr
.long 0
.long buffer_as_buffer
.long 491
.long buffer_doc
.zero 64
.long buffer_new
.zero 32
.size PyBuffer_Type, 192
# ----------------------
.local buffer_as_buffer
.type buffer_as_buffer, @object
buffer_as_buffer:
.long buffer_getreadbuf
.long buffer_getwritebuf
.long buffer_getsegcount
.long buffer_getcharbuf
.size buffer_as_buffer, 16
# ----------------------
.LD000000D0:
.zero 16
# ----------------------
.local buffer_as_sequence
.type buffer_as_sequence, @object
buffer_as_sequence:
.long buffer_length
.long buffer_concat
.long buffer_repeat
.long buffer_item
.long buffer_slice
.long buffer_ass_item
.long buffer_ass_slice
.zero 12
.size buffer_as_sequence, 40
# ----------------------
.LD00000108:
.zero 24
# ----------------------
.local buffer_doc
.type buffer_doc, @object
buffer_doc:
.string "buffer(object [, offset[, size]])\n\nCreate a new buffer object which references the given object.\nThe buffer will reference a slice of the target object from the\nstart of the object (or at the specified offset). The slice will\nextend to the end of the target object (or with the specified size)."
.size buffer_doc, 295
# ----------------------
.text
.local buffer_repeat
.type buffer_repeat, @function
buffer_repeat:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $60, %esp
movl 80(%esp), %ebx
movl 84(%esp), %edi
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000110
.L0000001A:
movl 4(%eax), %edx
movl 80(%edx), %esi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%esi)
.L0000002E:
cmpl $1, %eax
jne .L000000F0
.L00000037:
movl 24(%ebx), %edx
movl 4(%esi), %eax
testl %edx, %edx
leal 44(%esp), %edx
cmovne (%esi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L0000005A:
testl %eax, %eax
js .L00000105
.L00000062:
movl 20(%ebx), %edx
movl %eax, %ecx
movl 16(%ebx), %ebp
cmpl %edx, %eax
cmovle %eax, %edx
addl %edx, 44(%esp)
cmpl $-1, %ebp
cmove %eax, %ebp
subl %edx, %ecx
leal (%ebp,%edx), %ebx
cmpl %ebx, %eax
cmovl %ecx, %ebp
.L00000084:
xorl %esi, %esi
testl %edi, %edi
cmovns %edi, %esi
movl %esi, %eax
imull %ebp, %eax
movl $0, (%esp)
movl %eax, 4(%esp)
call PyString_FromStringAndSize
.L000000A0:
testl %eax, %eax
movl %eax, 28(%esp)
je .L00000105
.L000000A8:
addl $20, %eax
testl %esi, %esi
movl %eax, 24(%esp)
je .L000000DE
.L000000B3:
movl %esi, %ebx
movl %eax, %edi
.p2align 3
.L000000B8:
movl 44(%esp), %eax
movl %edi, (%esp)
addl %ebp, %edi
movl %ebp, 8(%esp)
movl %eax, 4(%esp)
call memcpy
.L000000CE:
subl $1, %ebx
jne .L000000B8
.L000000D3:
imull %ebp, %esi
addl %esi, 24(%esp)
movl 24(%esp), %eax
.L000000DE:
movb $0, (%eax)
movl 28(%esp), %eax
addl $60, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L000000ED:
.p2align 3
.L000000F0:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000105:
addl $60, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L0000010F:
.p2align 3
.L00000110:
movl 12(%ebx), %eax
movl 16(%ebx), %ebp
movl %eax, 44(%esp)
jmp .L00000084
.size buffer_repeat, .-buffer_repeat
# ----------------------
.L0000011F:
.p2align 3
# ----------------------
.local buffer_repr
.type buffer_repr, @function
buffer_repr:
pushl %ebx
movl $.LC00000000.str1.1, %edx
subl $40, %esp
movl 48(%esp), %eax
movl 24(%eax), %ecx
testl %ecx, %ecx
movl $.LC0000000A.str1.1, %ecx
cmove %ecx, %edx
movl 8(%eax), %ecx
testl %ecx, %ecx
je .L00000170
.L00000141:
movl %eax, 20(%esp)
movl 20(%eax), %ebx
movl %ebx, 16(%esp)
movl 16(%eax), %eax
movl %ecx, 8(%esp)
movl %edx, 4(%esp)
movl $.LC0000004C.str1.4, (%esp)
movl %eax, 12(%esp)
call PyString_FromFormat
.L00000167:
addl $40, %esp
popl %ebx
ret
.L0000016C:
.p2align 3
.L00000170:
movl %eax, 16(%esp)
movl 16(%eax), %ecx
movl %ecx, 12(%esp)
movl 12(%eax), %eax
movl %edx, 4(%esp)
movl $.LC00000028.str1.4, (%esp)
movl %eax, 8(%esp)
call PyString_FromFormat
.L00000192:
addl $40, %esp
popl %ebx
ret
.size buffer_repr, .-buffer_repr
# ----------------------
.L00000197:
.p2align 4
# ----------------------
.local buffer_dealloc
.type buffer_dealloc, @function
buffer_dealloc:
pushl %ebx
subl $24, %esp
movl 32(%esp), %ebx
movl 8(%ebx), %eax
testl %eax, %eax
je .L000001C6
.L000001AF:
movl (%eax), %ecx
leal -1(%ecx), %edx
testl %edx, %edx
movl %edx, (%eax)
jne .L000001C6
.L000001BA:
movl 8(%ebx), %eax
movl 4(%eax), %edx
movl %eax, (%esp)
call *24(%edx)
.L000001C6:
movl %ebx, 32(%esp)
addl $24, %esp
popl %ebx
jmp PyObject_Free
.size buffer_dealloc, .-buffer_dealloc
# ----------------------
.L000001D3:
.p2align 4
# ----------------------
.local buffer_new
.type buffer_new, @function
buffer_new:
pushl %edi
pushl %esi
pushl %ebx
subl $48, %esp
movl 72(%esp), %eax
movl $.LC00000015.str1.1, (%esp)
movl $0, 40(%esp)
movl $-1, 44(%esp)
movl %eax, 4(%esp)
call _PyArg_NoKeywords
.L0000020A:
testl %eax, %eax
je .L00000320
.L00000212:
leal 44(%esp), %eax
movl %eax, 16(%esp)
leal 40(%esp), %eax
movl %eax, 12(%esp)
leal 36(%esp), %eax
movl %eax, 8(%esp)
movl 68(%esp), %eax
movl $.LC0000001E.str1.1, 4(%esp)
movl %eax, (%esp)
call PyArg_ParseTuple
.L0000023E:
testl %eax, %eax
je .L00000320
.L00000246:
movl 36(%esp), %ecx
movl 44(%esp), %edi
movl 40(%esp), %ebx
movl 4(%ecx), %edx
movl 80(%edx), %eax
testl %eax, %eax
je .L00000358
.L00000260:
movl (%eax), %esi
testl %esi, %esi
je .L00000358
.L0000026A:
movl 8(%eax), %eax
testl %eax, %eax
je .L00000358
.L00000275:
testl %ebx, %ebx
js .L00000308
.L0000027D:
cmpl $PyBuffer_Type, %edx
je .L000002E0
.L00000285:
cmpl $-1, %edi
jl .L00000338
.L0000028E:
movl %ecx, %esi
.L00000290:
movl PyBuffer_Type+16, %eax
movl %eax, (%esp)
call PyObject_Malloc
.L0000029D:
movl $PyBuffer_Type, 4(%esp)
movl %eax, (%esp)
call PyObject_Init
.L000002AD:
testl %eax, %eax
je .L00000320
.L000002B1:
addl $1, (%esi)
movl %esi, 8(%eax)
movl $0, 12(%eax)
movl %edi, 16(%eax)
movl %ebx, 20(%eax)
movl $1, 24(%eax)
movl $-1, 28(%eax)
addl $48, %esp
popl %ebx
popl %esi
popl %edi
ret
.L000002D9:
.p2align 4
.L000002E0:
movl 8(%ecx), %esi
testl %esi, %esi
je .L00000285
.L000002E7:
movl 16(%ecx), %eax
cmpl $-1, %eax
je .L00000330
.L000002EF:
xorl %edx, %edx
subl %ebx, %eax
cmovns %eax, %edx
cmpl %edx, %edi
jg .L000002FF
.L000002FA:
cmpl $-1, %edi
jne .L00000330
.L000002FF:
addl 20(%ecx), %ebx
movl %edx, %edi
.L00000304:
testl %ebx, %ebx
jns .L00000290
.L00000308:
movl PyExc_ValueError, %eax
movl $.LC0000007C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000031D:
.p2align 3
.L00000320:
xorl %eax, %eax
.L00000322:
addl $48, %esp
popl %ebx
popl %esi
popl %edi
ret
.L00000329:
.p2align 4
.L00000330:
addl 20(%ecx), %ebx
cmpl $-1, %edi
jge .L00000304
.L00000338:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000034D:
xorl %eax, %eax
jmp .L00000322
.L00000351:
.p2align 3
.L00000358:
movl PyExc_TypeError, %eax
movl $.LC0000002A.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000036D:
xorl %eax, %eax
jmp .L00000322
.size buffer_new, .-buffer_new
# ----------------------
.L00000371:
.p2align 4
# ----------------------
.local buffer_length
.type buffer_length, @function
buffer_length:
pushl %esi
pushl %ebx
subl $36, %esp
movl 48(%esp), %ebx
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000420
.L00000394:
movl 4(%eax), %edx
movl 80(%edx), %esi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%esi)
.L000003A8:
cmpl $1, %eax
jne .L00000400
.L000003AD:
movl 24(%ebx), %edx
movl 4(%esi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%esi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L000003D0:
testl %eax, %eax
js .L00000415
.L000003D4:
movl 20(%ebx), %ecx
movl %eax, %esi
movl 16(%ebx), %edx
cmpl %ecx, %eax
cmovle %eax, %ecx
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %esi
leal (%edx,%ecx), %ebx
cmpl %ebx, %eax
cmovl %esi, %edx
.L000003F1:
addl $36, %esp
movl %edx, %eax
popl %ebx
popl %esi
ret
.L000003F9:
.p2align 4
.L00000400:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000415:
addl $36, %esp
movl $-1, %eax
popl %ebx
popl %esi
ret
.L00000420:
movl 16(%ebx), %edx
jmp .L000003F1
.size buffer_length, .-buffer_length
# ----------------------
.L00000425:
.p2align 4
# ----------------------
.local buffer_getsegcount
.type buffer_getsegcount, @function
buffer_getsegcount:
pushl %edi
pushl %esi
pushl %ebx
subl $32, %esp
movl 48(%esp), %ebx
movl 52(%esp), %esi
movl 8(%ebx), %eax
testl %eax, %eax
je .L000004F0
.L00000449:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L0000045D:
cmpl $1, %eax
jne .L000004C8
.L00000462:
movl 24(%ebx), %edx
movl 4(%edi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000485:
testl %eax, %eax
js .L000004DD
.L00000489:
movl 20(%ebx), %ecx
movl %eax, %edi
movl 16(%ebx), %edx
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, 28(%esp)
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %edi
leal (%edx,%ecx), %ebx
cmpl %ebx, %eax
cmovl %edi, %edx
.L000004AA:
testl %esi, %esi
movl $1, %eax
je .L000004BA
.L000004B3:
movl %edx, (%esi)
movl $1, %eax
.L000004BA:
addl $32, %esp
popl %ebx
popl %esi
popl %edi
ret
.L000004C1:
.p2align 3
.L000004C8:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000004DD:
addl $32, %esp
movl $-1, %eax
popl %ebx
popl %esi
popl %edi
ret
.L000004E9:
.p2align 4
.L000004F0:
movl 12(%ebx), %eax
movl 16(%ebx), %edx
movl %eax, 28(%esp)
jmp .L000004AA
.size buffer_getsegcount, .-buffer_getsegcount
# ----------------------
.L000004FC:
.p2align 3
# ----------------------
.local buffer_getreadbuf
.type buffer_getreadbuf, @function
buffer_getreadbuf:
pushl %edi
pushl %esi
pushl %ebx
subl $16, %esp
movl 36(%esp), %ecx
movl 32(%esp), %ebx
movl 40(%esp), %esi
testl %ecx, %ecx
jne .L000005C8
.L0000051A:
movl 8(%ebx), %eax
testl %eax, %eax
je .L000005B8
.L00000525:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L00000539:
cmpl $1, %eax
jne .L00000590
.L0000053E:
movl 24(%ebx), %edx
movl 4(%edi), %eax
testl %edx, %edx
cmovne (%edi), %eax
movl %esi, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L0000055D:
testl %eax, %eax
js .L000005A5
.L00000561:
movl 20(%ebx), %ecx
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, (%esi)
movl %eax, %esi
movl 16(%ebx), %edx
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %esi
leal (%edx,%ecx), %ebx
cmpl %ebx, %eax
cmovl %esi, %edx
.L00000580:
movl %edx, %eax
.L00000582:
addl $16, %esp
popl %ebx
popl %esi
popl %edi
ret
.L00000589:
.p2align 4
.L00000590:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000005A5:
addl $16, %esp
movl $-1, %eax
popl %ebx
popl %esi
popl %edi
ret
.L000005B1:
.p2align 3
.L000005B8:
movl 12(%ebx), %eax
movl %eax, (%esi)
movl 16(%ebx), %edx
jmp .L00000580
.L000005C2:
.p2align 3
.L000005C8:
movl PyExc_SystemError, %eax
movl $.LC0000009C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000005DD:
movl $-1, %eax
jmp .L00000582
.size buffer_getreadbuf, .-buffer_getreadbuf
# ----------------------
.L000005E4:
.p2align 4
# ----------------------
.local buffer_getcharbuf
.type buffer_getcharbuf, @function
buffer_getcharbuf:
pushl %edi
pushl %esi
pushl %ebx
subl $32, %esp
movl 52(%esp), %ecx
movl 48(%esp), %ebx
testl %ecx, %ecx
jne .L000006B8
.L00000606:
movl 8(%ebx), %eax
testl %eax, %eax
je .L000006B0
.L00000611:
movl 4(%eax), %edx
movl 80(%edx), %esi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%esi)
.L00000625:
cmpl $1, %eax
jne .L00000688
.L0000062A:
movl 24(%ebx), %edx
movl 4(%esi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%esi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L0000064D:
testl %eax, %eax
js .L0000069D
.L00000651:
movl 20(%ebx), %ecx
movl %eax, %edi
movl 16(%ebx), %edx
movl 28(%esp), %esi
cmpl %ecx, %eax
cmovle %eax, %ecx
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %edi
leal (%edx,%ecx), %ebx
addl %ecx, %esi
cmpl %ebx, %eax
cmovl %edi, %edx
.L00000674:
movl 56(%esp), %eax
movl %esi, (%eax)
movl %edx, %eax
.L0000067C:
addl $32, %esp
popl %ebx
popl %esi
popl %edi
ret
.L00000683:
.p2align 3
.L00000688:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000069D:
addl $32, %esp
movl $-1, %eax
popl %ebx
popl %esi
popl %edi
ret
.L000006A9:
.p2align 4
.L000006B0:
movl 12(%ebx), %esi
movl 16(%ebx), %edx
jmp .L00000674
.L000006B8:
movl PyExc_SystemError, %eax
movl $.LC0000009C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000006CD:
movl $-1, %eax
jmp .L0000067C
.size buffer_getcharbuf, .-buffer_getcharbuf
# ----------------------
.L000006D4:
.p2align 4
# ----------------------
.local buffer_getwritebuf
.type buffer_getwritebuf, @function
buffer_getwritebuf:
pushl %edi
pushl %esi
pushl %ebx
subl $16, %esp
movl 32(%esp), %ebx
movl 40(%esp), %esi
movl 24(%ebx), %edi
testl %edi, %edi
jne .L000007B0
.L000006F9:
movl 36(%esp), %ecx
testl %ecx, %ecx
jne .L000007D0
.L00000705:
movl 8(%ebx), %eax
testl %eax, %eax
je .L000007A0
.L00000710:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L00000724:
cmpl $1, %eax
jne .L00000778
.L00000729:
movl 24(%ebx), %edx
movl 4(%edi), %eax
testl %edx, %edx
cmovne (%edi), %eax
movl %esi, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000748:
testl %eax, %eax
js .L0000078D
.L0000074C:
movl 20(%ebx), %ecx
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, (%esi)
movl %eax, %esi
movl 16(%ebx), %edx
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %esi
leal (%ecx,%edx), %ebx
cmpl %ebx, %eax
cmovl %esi, %edx
.L0000076B:
movl %edx, %eax
.L0000076D:
addl $16, %esp
popl %ebx
popl %esi
popl %edi
ret
.L00000774:
.p2align 3
.L00000778:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000078D:
addl $16, %esp
movl $-1, %eax
popl %ebx
popl %esi
popl %edi
ret
.L00000799:
.p2align 4
.L000007A0:
movl 12(%ebx), %eax
movl %eax, (%esi)
movl 16(%ebx), %edx
jmp .L0000076B
.L000007AA:
.p2align 3
.L000007B0:
movl PyExc_TypeError, %eax
movl $.LC0000005F.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000007C5:
movl $-1, %eax
jmp .L0000076D
.L000007CC:
.p2align 3
.L000007D0:
movl PyExc_SystemError, %eax
movl $.LC0000009C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000007E5:
movl $-1, %eax
jmp .L0000076D
.size buffer_getwritebuf, .-buffer_getwritebuf
# ----------------------
.L000007EC:
.p2align 3
# ----------------------
.local buffer_str
.type buffer_str, @function
buffer_str:
pushl %edi
pushl %esi
pushl %ebx
subl $32, %esp
movl 48(%esp), %ebx
movl 8(%ebx), %eax
testl %eax, %eax
je .L000008A0
.L00000805:
movl 4(%eax), %edx
movl 80(%edx), %esi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%esi)
.L00000819:
cmpl $1, %eax
jne .L00000880
.L0000081E:
movl 24(%ebx), %edx
movl 4(%esi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%esi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000841:
testl %eax, %eax
js .L00000895
.L00000845:
movl 20(%ebx), %ecx
movl %eax, %edi
movl 16(%ebx), %edx
movl 28(%esp), %esi
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, %esi
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %edi
leal (%edx,%ecx), %ebx
cmpl %ebx, %eax
movl %esi, 28(%esp)
cmovl %edi, %edx
.L0000086C:
movl %esi, (%esp)
movl %edx, 4(%esp)
call PyString_FromStringAndSize
.L00000878:
addl $32, %esp
popl %ebx
popl %esi
popl %edi
ret
.L0000087F:
.p2align 3
.L00000880:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000895:
addl $32, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
ret
.L0000089E:
.p2align 3
.L000008A0:
movl 12(%ebx), %esi
movl 16(%ebx), %edx
movl %esi, 28(%esp)
jmp .L0000086C
.size buffer_str, .-buffer_str
# ----------------------
.L000008AC:
.p2align 3
# ----------------------
.local buffer_item
.type buffer_item, @function
buffer_item:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %ebx
movl 68(%esp), %esi
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000978
.L000008CA:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L000008DE:
cmpl $1, %eax
jne .L00000958
.L000008E3:
movl 24(%ebx), %edx
movl 4(%edi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000906:
testl %eax, %eax
js .L0000096D
.L0000090A:
movl 20(%ebx), %ecx
movl %eax, %ebp
movl 16(%ebx), %edx
movl 28(%esp), %edi
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, %edi
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %ebp
leal (%edx,%ecx), %ebx
cmpl %ebx, %eax
movl %edi, 28(%esp)
cmovl %ebp, %edx
.L00000931:
testl %esi, %esi
js .L00000988
.L00000935:
cmpl %edx, %esi
jge .L00000988
.L00000939:
addl %edi, %esi
movl %esi, (%esp)
movl $1, 4(%esp)
call PyString_FromStringAndSize
.L0000094B:
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000953:
.p2align 3
.L00000958:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000096D:
addl $44, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000977:
.p2align 3
.L00000978:
movl 12(%ebx), %edi
movl 16(%ebx), %edx
movl %edi, 28(%esp)
jmp .L00000931
.L00000984:
.p2align 3
.L00000988:
movl PyExc_IndexError, %eax
movl $.LC00000073.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000099D:
addl $44, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.size buffer_item, .-buffer_item
# ----------------------
.L000009A7:
.p2align 4
# ----------------------
.local buffer_slice
.type buffer_slice, @function
buffer_slice:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %ebx
movl 68(%esp), %esi
movl 72(%esp), %ebp
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000A90
.L000009CE:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L000009E2:
cmpl $1, %eax
jne .L00000A70
.L000009EB:
movl 24(%ebx), %edx
movl 4(%edi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000A0E:
testl %eax, %eax
js .L00000A85
.L00000A12:
movl 20(%ebx), %ecx
movl 16(%ebx), %edx
movl 28(%esp), %edi
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, %edi
cmpl $-1, %edx
cmove %eax, %edx
leal (%edx,%ecx), %ebx
movl %ebx, 12(%esp)
movl %eax, %ebx
subl %ecx, %ebx
cmpl 12(%esp), %eax
movl %edi, 28(%esp)
cmovl %ebx, %edx
.L00000A3F:
xorl %eax, %eax
testl %esi, %esi
cmovs %eax, %esi
testl %ebp, %ebp
cmovs %eax, %ebp
cmpl %ebp, %edx
cmovg %ebp, %edx
cmpl %esi, %edx
cmovl %esi, %edx
subl %esi, %edx
addl %edi, %esi
movl %esi, (%esp)
movl %edx, 4(%esp)
call PyString_FromStringAndSize
.L00000A65:
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000A6D:
.p2align 3
.L00000A70:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000A85:
addl $44, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000A8F:
.p2align 3
.L00000A90:
movl 12(%ebx), %edi
movl 16(%ebx), %edx
movl %edi, 28(%esp)
jmp .L00000A3F
.size buffer_slice, .-buffer_slice
# ----------------------
.L00000A9C:
.p2align 3
# ----------------------
.local buffer_compare
.type buffer_compare, @function
buffer_compare:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %ebx
movl 68(%esp), %esi
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000C10
.L00000ABA:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L00000ACE:
cmpl $1, %eax
jne .L00000BD0
.L00000AD7:
movl 24(%ebx), %ecx
leal 24(%esp), %edx
movl 4(%edi), %eax
testl %ecx, %ecx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000AFA:
testl %eax, %eax
js .L00000BE5
.L00000B02:
movl 20(%ebx), %edx
movl %eax, %edi
movl 16(%ebx), %ebx
cmpl %edx, %eax
cmovle %eax, %edx
addl %edx, 24(%esp)
cmpl $-1, %ebx
cmove %eax, %ebx
subl %edx, %edi
leal (%ebx,%edx), %ecx
cmpl %ecx, %eax
movl 8(%esi), %eax
cmovl %edi, %ebx
testl %eax, %eax
je .L00000C25
.L00000B2E:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L00000B42:
cmpl $1, %eax
jne .L00000BD0
.L00000B4B:
movl 24(%esi), %edx
movl 4(%edi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%esi), %edx
movl %edx, (%esp)
call *%eax
.L00000B6E:
testl %eax, %eax
js .L00000BE5
.L00000B72:
movl 20(%esi), %edx
movl %eax, %ebp
movl 28(%esp), %ecx
movl 16(%esi), %esi
cmpl %edx, %eax
cmovle %eax, %edx
addl %edx, %ecx
cmpl $-1, %esi
cmove %eax, %esi
subl %edx, %ebp
leal (%esi,%edx), %edi
cmpl %edi, %eax
movl %ecx, 28(%esp)
cmovl %ebp, %esi
.L00000B99:
cmpl %ebx, %esi
movl %ebx, %eax
cmovle %esi, %eax
testl %eax, %eax
jle .L00000BF8
.L00000BA4:
movl %eax, 8(%esp)
movl 24(%esp), %eax
movl %ecx, 4(%esp)
movl %eax, (%esp)
call memcmp
.L00000BB8:
testl %eax, %eax
je .L00000BF8
.L00000BBC:
addl $44, %esp
sarl $31, %eax
popl %ebx
orl $1, %eax
popl %esi
popl %edi
popl %ebp
ret
.L00000BCA:
.p2align 3
.L00000BD0:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000BE5:
movl $-1, %eax
.L00000BEA:
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000BF2:
.p2align 3
.L00000BF8:
cmpl %ebx, %esi
movl $-1, %eax
jg .L00000BEA
.L00000C01:
xorl %eax, %eax
cmpl %esi, %ebx
setg %al
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000C10:
movl 12(%ebx), %eax
movl 16(%ebx), %ebx
movl %eax, 24(%esp)
movl 8(%esi), %eax
testl %eax, %eax
jne .L00000B2E
.L00000C25:
movl 12(%esi), %ecx
movl 16(%esi), %esi
movl %ecx, 28(%esp)
jmp .L00000B99
.size buffer_compare, .-buffer_compare
# ----------------------
.L00000C34:
.p2align 4
# ----------------------
.local buffer_ass_item
.type buffer_ass_item, @function
buffer_ass_item:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %ebx
movl 72(%esp), %edi
movl 24(%ebx), %esi
testl %esi, %esi
jne .L00000DD8
.L00000C5A:
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000D88
.L00000C65:
movl 4(%eax), %edx
movl 80(%edx), %ebp
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%ebp)
.L00000C79:
cmpl $1, %eax
jne .L00000D60
.L00000C82:
movl 24(%ebx), %ecx
leal 24(%esp), %edx
movl 4(%ebp), %eax
testl %ecx, %ecx
cmovne (%ebp), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L00000CA6:
testl %eax, %eax
js .L00000D75
.L00000CAE:
movl 20(%ebx), %ecx
movl %eax, %ebp
movl 16(%ebx), %edx
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, 24(%esp)
cmpl $-1, %edx
cmove %eax, %edx
subl %ecx, %ebp
leal (%ecx,%edx), %ebx
cmpl %ebx, %eax
cmovl %ebp, %edx
.L00000CCF:
movl 68(%esp), %eax
testl %eax, %eax
js .L00000DB8
.L00000CDB:
cmpl %edx, 68(%esp)
jge .L00000DB8
.L00000CE5:
testl %edi, %edi
je .L00000E18
.L00000CED:
movl 4(%edi), %eax
movl 80(%eax), %ebx
testl %ebx, %ebx
je .L00000E18
.L00000CFB:
movl (%ebx), %edx
testl %edx, %edx
je .L00000E18
.L00000D05:
movl 8(%ebx), %eax
testl %eax, %eax
je .L00000E18
.L00000D10:
movl $0, 4(%esp)
movl %edi, (%esp)
call *%eax
.L00000D1D:
cmpl $1, %eax
jne .L00000D98
.L00000D22:
leal 28(%esp), %eax
movl %eax, 8(%esp)
movl $0, 4(%esp)
movl %edi, (%esp)
call *(%ebx)
.L00000D37:
testl %eax, %eax
js .L00000D75
.L00000D3B:
cmpl $1, %eax
jne .L00000DF8
.L00000D44:
movl 28(%esp), %eax
movl 68(%esp), %ecx
movzbl (%eax), %edx
movl 24(%esp), %eax
movb %dl, (%eax,%ecx)
.L00000D56:
addl $44, %esp
movl %esi, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000D60:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000D75:
addl $44, %esp
movl $-1, %esi
popl %ebx
movl %esi, %eax
popl %esi
popl %edi
popl %ebp
ret
.L00000D84:
.p2align 3
.L00000D88:
movl 12(%ebx), %eax
movl 16(%ebx), %edx
movl %eax, 24(%esp)
jmp .L00000CCF
.L00000D97:
.p2align 3
.L00000D98:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000DB2:
jmp .L00000D56
.L00000DB4:
.p2align 3
.L00000DB8:
movl PyExc_IndexError, %eax
movl $-1, %esi
movl $.LC000000C4.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000DD2:
jmp .L00000D56
.L00000DD7:
.p2align 3
.L00000DD8:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC0000005F.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000DF2:
jmp .L00000D56
.L00000DF7:
.p2align 3
.L00000DF8:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC000000EC.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000E12:
jmp .L00000D56
.L00000E17:
.p2align 3
.L00000E18:
call PyErr_BadArgument
.L00000E1D:
movl $-1, %esi
jmp .L00000D56
.size buffer_ass_item, .-buffer_ass_item
# ----------------------
.L00000E27:
.p2align 4
# ----------------------
.local buffer_concat
.type buffer_concat, @function
buffer_concat:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 68(%esp), %ebx
movl 64(%esp), %edi
movl 4(%ebx), %eax
movl 80(%eax), %esi
testl %esi, %esi
je .L00000FC0
.L00000E4D:
movl (%esi), %ecx
testl %ecx, %ecx
je .L00000FC0
.L00000E57:
movl 8(%esi), %eax
testl %eax, %eax
je .L00000FC0
.L00000E62:
movl $0, 4(%esp)
movl %ebx, (%esp)
call *%eax
.L00000E6F:
cmpl $1, %eax
jne .L00000F90
.L00000E78:
movl 8(%edi), %eax
testl %eax, %eax
je .L00000FB0
.L00000E83:
movl 4(%eax), %edx
movl 80(%edx), %ebp
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%ebp)
.L00000E97:
cmpl $1, %eax
jne .L00000EF8
.L00000E9C:
movl 24(%edi), %edx
movl 4(%ebp), %eax
testl %edx, %edx
leal 24(%esp), %edx
cmovne (%ebp), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%edi), %edx
movl %edx, (%esp)
call *%eax
.L00000EC0:
testl %eax, %eax
js .L00000F0D
.L00000EC4:
movl 20(%edi), %edx
movl %eax, %ebp
movl 16(%edi), %edi
cmpl %edx, %eax
cmovle %eax, %edx
addl %edx, 24(%esp)
cmpl $-1, %edi
cmove %eax, %edi
subl %edx, %ebp
leal (%edi,%edx), %ecx
cmpl %ecx, %eax
cmovl %ebp, %edi
.L00000EE5:
testl %edi, %edi
jne .L00000F18
.L00000EE9:
addl $1, (%ebx)
movl %ebx, %eax
.L00000EEE:
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000EF6:
.p2align 3
.L00000EF8:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000F0D:
addl $44, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000F17:
.p2align 3
.L00000F18:
leal 28(%esp), %eax
movl %eax, 8(%esp)
movl $0, 4(%esp)
movl %ebx, (%esp)
call *(%esi)
.L00000F2D:
testl %eax, %eax
movl %eax, %esi
js .L00000F0D
.L00000F33:
leal (%eax,%edi), %ebp
movl %ebp, 4(%esp)
movl $0, (%esp)
call PyString_FromStringAndSize
.L00000F46:
movl %edi, 8(%esp)
leal 20(%eax), %edx
movl %eax, %ebx
movl 24(%esp), %eax
movl %edx, (%esp)
movl %edx, 12(%esp)
movl %eax, 4(%esp)
call memcpy
.L00000F63:
movl 12(%esp), %edx
movl 28(%esp), %eax
movl %esi, 8(%esp)
addl %edx, %edi
movl %edi, (%esp)
movl %eax, 4(%esp)
call memcpy
.L00000F7D:
movl %ebx, %eax
movb $0, 20(%ebx,%ebp)
addl $44, %esp
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000F8C:
.p2align 3
.L00000F90:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00000FA5:
addl $44, %esp
xorl %eax, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00000FAF:
.p2align 3
.L00000FB0:
movl 12(%edi), %eax
movl 16(%edi), %edi
movl %eax, 24(%esp)
jmp .L00000EE5
.L00000FBF:
.p2align 3
.L00000FC0:
call PyErr_BadArgument
.L00000FC5:
xorl %eax, %eax
jmp .L00000EEE
.size buffer_concat, .-buffer_concat
# ----------------------
.L00000FCC:
.p2align 3
# ----------------------
.local buffer_ass_slice
.type buffer_ass_slice, @function
buffer_ass_slice:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %ebx
movl 76(%esp), %edi
movl 24(%ebx), %esi
testl %esi, %esi
jne .L000011A8
.L00000FEA:
testl %edi, %edi
je .L00001198
.L00000FF2:
movl 4(%edi), %eax
movl 80(%eax), %ebp
testl %ebp, %ebp
je .L00001198
.L00001000:
movl (%ebp), %eax
testl %eax, %eax
je .L00001198
.L0000100B:
movl 8(%ebp), %eax
testl %eax, %eax
je .L00001198
.L00001016:
movl $0, 4(%esp)
movl %edi, (%esp)
call *%eax
.L00001023:
cmpl $1, %eax
jne .L00001158
.L0000102C:
movl 8(%ebx), %eax
testl %eax, %eax
je .L00001148
.L00001037:
movl 4(%eax), %edx
movl 80(%edx), %edx
movl $0, 4(%esp)
movl %eax, (%esp)
movl %edx, 12(%esp)
call *8(%edx)
.L0000104F:
movl 12(%esp), %edx
cmpl $1, %eax
jne .L00001120
.L0000105C:
movl 24(%ebx), %ecx
movl 4(%edx), %eax
testl %ecx, %ecx
cmovne (%edx), %eax
leal 24(%esp), %edx
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%ebx), %edx
movl %edx, (%esp)
call *%eax
.L0000107F:
testl %eax, %eax
js .L00001135
.L00001087:
movl 20(%ebx), %edx
movl 16(%ebx), %ebx
cmpl %edx, %eax
cmovle %eax, %edx
addl %edx, 24(%esp)
cmpl $-1, %ebx
cmove %eax, %ebx
leal (%ebx,%edx), %ecx
movl %ecx, 12(%esp)
movl %eax, %ecx
subl %edx, %ecx
cmpl 12(%esp), %eax
cmovl %ecx, %ebx
.L000010AE:
leal 28(%esp), %eax
movl %eax, 8(%esp)
movl $0, 4(%esp)
movl %edi, (%esp)
call *(%ebp)
.L000010C4:
testl %eax, %eax
js .L00001135
.L000010C8:
movl 68(%esp), %ecx
xorl %edx, %edx
testl %ecx, %ecx
js .L000010DD
.L000010D2:
cmpl 68(%esp), %ebx
movl %ebx, %edx
cmovg 68(%esp), %edx
.L000010DD:
xorl %ecx, %ecx
cmpl 72(%esp), %edx
jg .L000010F2
.L000010E5:
cmpl 72(%esp), %ebx
movl %ebx, %ecx
cmovg 72(%esp), %ecx
subl %edx, %ecx
.L000010F2:
cmpl %ecx, %eax
jne .L00001178
.L000010FA:
testl %eax, %eax
je .L00001116
.L000010FE:
movl %eax, 8(%esp)
movl 28(%esp), %eax
addl 24(%esp), %edx
movl %eax, 4(%esp)
movl %edx, (%esp)
call memcpy
.L00001116:
addl $44, %esp
movl %esi, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L00001120:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001135:
addl $44, %esp
movl $-1, %esi
popl %ebx
movl %esi, %eax
popl %esi
popl %edi
popl %ebp
ret
.L00001144:
.p2align 3
.L00001148:
movl 12(%ebx), %eax
movl 16(%ebx), %ebx
movl %eax, 24(%esp)
jmp .L000010AE
.L00001157:
.p2align 3
.L00001158:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001172:
jmp .L00001116
.L00001174:
.p2align 3
.L00001178:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC00000110.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001192:
jmp .L00001116
.L00001197:
.p2align 3
.L00001198:
call PyErr_BadArgument
.L0000119D:
movl $-1, %esi
jmp .L00001116
.L000011A7:
.p2align 3
.L000011A8:
movl PyExc_TypeError, %eax
movl $-1, %esi
movl $.LC0000005F.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000011C2:
jmp .L00001116
.size buffer_ass_slice, .-buffer_ass_slice
# ----------------------
.L000011C7:
.p2align 4
# ----------------------
.local buffer_hash
.type buffer_hash, @function
buffer_hash:
pushl %ebp
pushl %edi
pushl %esi
pushl %ebx
subl $44, %esp
movl 64(%esp), %esi
movl 28(%esi), %ebx
cmpl $-1, %ebx
je .L000011F0
.L000011E3:
addl $44, %esp
movl %ebx, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L000011ED:
.p2align 3
.L000011F0:
movl 24(%esi), %ecx
testl %ecx, %ecx
je .L000012DC
.L000011FB:
movl 8(%esi), %eax
testl %eax, %eax
je .L000012D0
.L00001206:
movl 4(%eax), %edx
movl 80(%edx), %edi
movl $0, 4(%esp)
movl %eax, (%esp)
call *8(%edi)
.L0000121A:
cmpl $1, %eax
jne .L000012B0
.L00001223:
movl 24(%esi), %edx
movl 4(%edi), %eax
testl %edx, %edx
leal 28(%esp), %edx
cmovne (%edi), %eax
movl %edx, 8(%esp)
movl $0, 4(%esp)
movl 8(%esi), %edx
movl %edx, (%esp)
call *%eax
.L00001246:
testl %eax, %eax
js .L000011E3
.L0000124A:
movl 20(%esi), %ecx
movl %eax, %ebp
movl 28(%esp), %edx
movl 16(%esi), %ebx
cmpl %ecx, %eax
cmovle %eax, %ecx
addl %ecx, %edx
cmpl $-1, %ebx
cmove %eax, %ebx
subl %ecx, %ebp
leal (%ebx,%ecx), %edi
cmpl %edi, %eax
movl %edx, 28(%esp)
cmovl %ebp, %ebx
.L00001271:
movzbl (%edx), %eax
sall $7, %eax
testl %ebx, %ebx
jle .L00001293
.L0000127B:
leal (%edx,%ebx), %edi
.p2align 3
.L00001280:
addl $1, %edx
imull $1000003, %eax, %ecx
movzbl -1(%edx), %eax
xorl %ecx, %eax
cmpl %edi, %edx
jne .L00001280
.L00001293:
xorl %ebx, %eax
movl $-2, %edx
cmpl $-1, %eax
cmove %edx, %eax
movl %eax, 28(%esi)
movl %eax, %ebx
addl $44, %esp
movl %ebx, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L000012AF:
.p2align 3
.L000012B0:
movl PyExc_TypeError, %eax
movl $.LC00000000.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000012C5:
addl $44, %esp
movl %ebx, %eax
popl %ebx
popl %esi
popl %edi
popl %ebp
ret
.L000012CF:
.p2align 3
.L000012D0:
movl 12(%esi), %edx
movl 16(%esi), %ebx
movl %edx, 28(%esp)
jmp .L00001271
.L000012DC:
movl PyExc_TypeError, %eax
movl $.LC00000140.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000012F1:
jmp .L000011E3
.size buffer_hash, .-buffer_hash
# ----------------------
.L000012F6:
.p2align 4
# ----------------------
.globl PyBuffer_FromObject
.type PyBuffer_FromObject, @function
PyBuffer_FromObject:
pushl %esi
pushl %ebx
subl $20, %esp
movl 32(%esp), %ecx
movl 36(%esp), %ebx
movl 4(%ecx), %edx
movl 80(%edx), %eax
testl %eax, %eax
je .L000013E0
.L0000131B:
movl (%eax), %esi
testl %esi, %esi
je .L000013E0
.L00001325:
movl 8(%eax), %eax
testl %eax, %eax
je .L000013E0
.L00001330:
testl %ebx, %ebx
js .L00001400
.L00001338:
cmpl $PyBuffer_Type, %edx
je .L00001350
.L00001340:
cmpl $-1, 40(%esp)
jl .L0000141D
.L0000134B:
movl %ecx, %esi
jmp .L00001392
.L0000134F:
.p2align 3
.L00001350:
movl 8(%ecx), %esi
testl %esi, %esi
je .L00001340
.L00001357:
movl 16(%ecx), %eax
cmpl $-1, %eax
je .L00001380
.L0000135F:
xorl %edx, %edx
subl %ebx, %eax
cmovns %eax, %edx
cmpl %edx, 40(%esp)
jg .L00001373
.L0000136C:
cmpl $-1, 40(%esp)
jne .L00001380
.L00001373:
addl 20(%ecx), %ebx
movl %edx, 40(%esp)
jmp .L0000138E
.L0000137C:
.p2align 3
.L00001380:
addl 20(%ecx), %ebx
cmpl $-1, 40(%esp)
jl .L0000141D
.L0000138E:
testl %ebx, %ebx
js .L00001400
.L00001392:
movl PyBuffer_Type+16, %eax
movl %eax, (%esp)
call PyObject_Malloc
.L0000139F:
movl $PyBuffer_Type, 4(%esp)
movl %eax, (%esp)
call PyObject_Init
.L000013AF:
testl %eax, %eax
je .L00001419
.L000013B3:
addl $1, (%esi)
movl %esi, 8(%eax)
movl 40(%esp), %esi
movl $0, 12(%eax)
movl %ebx, 20(%eax)
movl $1, 24(%eax)
movl %esi, 16(%eax)
movl $-1, 28(%eax)
.L000013D8:
addl $20, %esp
popl %ebx
popl %esi
ret
.L000013DE:
.p2align 3
.L000013E0:
movl PyExc_TypeError, %eax
movl $.LC0000002A.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000013F5:
xorl %eax, %eax
jmp .L000013D8
.L000013F9:
.p2align 4
.L00001400:
movl PyExc_ValueError, %eax
movl $.LC0000007C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001415:
xorl %eax, %eax
jmp .L000013D8
.L00001419:
xorl %eax, %eax
jmp .L000013D8
.L0000141D:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001432:
xorl %eax, %eax
jmp .L000013D8
.size PyBuffer_FromObject, .-PyBuffer_FromObject
# ----------------------
.L00001436:
.p2align 4
# ----------------------
.globl PyBuffer_FromReadWriteObject
.type PyBuffer_FromReadWriteObject, @function
PyBuffer_FromReadWriteObject:
pushl %esi
pushl %ebx
subl $20, %esp
movl 32(%esp), %ecx
movl 36(%esp), %ebx
movl 4(%ecx), %edx
movl 80(%edx), %eax
testl %eax, %eax
je .L00001520
.L0000145B:
movl 4(%eax), %esi
testl %esi, %esi
je .L00001520
.L00001466:
movl 8(%eax), %eax
testl %eax, %eax
je .L00001520
.L00001471:
testl %ebx, %ebx
js .L00001540
.L00001479:
cmpl $PyBuffer_Type, %edx
je .L00001490
.L00001481:
cmpl $-1, 40(%esp)
jl .L0000155D
.L0000148C:
movl %ecx, %esi
jmp .L000014D2
.L00001490:
movl 8(%ecx), %esi
testl %esi, %esi
je .L00001481
.L00001497:
movl 16(%ecx), %eax
cmpl $-1, %eax
je .L000014C0
.L0000149F:
xorl %edx, %edx
subl %ebx, %eax
cmovns %eax, %edx
cmpl %edx, 40(%esp)
jg .L000014B3
.L000014AC:
cmpl $-1, 40(%esp)
jne .L000014C0
.L000014B3:
addl 20(%ecx), %ebx
movl %edx, 40(%esp)
jmp .L000014CE
.L000014BC:
.p2align 3
.L000014C0:
addl 20(%ecx), %ebx
cmpl $-1, 40(%esp)
jl .L0000155D
.L000014CE:
testl %ebx, %ebx
js .L00001540
.L000014D2:
movl PyBuffer_Type+16, %eax
movl %eax, (%esp)
call PyObject_Malloc
.L000014DF:
movl $PyBuffer_Type, 4(%esp)
movl %eax, (%esp)
call PyObject_Init
.L000014EF:
testl %eax, %eax
je .L00001559
.L000014F3:
addl $1, (%esi)
movl %esi, 8(%eax)
movl 40(%esp), %esi
movl $0, 12(%eax)
movl %ebx, 20(%eax)
movl $0, 24(%eax)
movl %esi, 16(%eax)
movl $-1, 28(%eax)
.L00001518:
addl $20, %esp
popl %ebx
popl %esi
ret
.L0000151E:
.p2align 3
.L00001520:
movl PyExc_TypeError, %eax
movl $.LC0000002A.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001535:
xorl %eax, %eax
jmp .L00001518
.L00001539:
.p2align 4
.L00001540:
movl PyExc_ValueError, %eax
movl $.LC0000007C.str1.4, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001555:
xorl %eax, %eax
jmp .L00001518
.L00001559:
xorl %eax, %eax
jmp .L00001518
.L0000155D:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001572:
xorl %eax, %eax
jmp .L00001518
.size PyBuffer_FromReadWriteObject, .-PyBuffer_FromReadWriteObject
# ----------------------
.L00001576:
.p2align 4
# ----------------------
.globl PyBuffer_FromMemory
.type PyBuffer_FromMemory, @function
PyBuffer_FromMemory:
pushl %ebx
subl $24, %esp
movl 36(%esp), %ebx
cmpl $-1, %ebx
jl .L000015E8
.L0000158D:
movl PyBuffer_Type+16, %eax
movl %eax, (%esp)
call PyObject_Malloc
.L0000159A:
movl $PyBuffer_Type, 4(%esp)
movl %eax, (%esp)
call PyObject_Init
.L000015AA:
testl %eax, %eax
je .L000015E0
.L000015AE:
movl 32(%esp), %edx
movl $0, 8(%eax)
movl %ebx, 16(%eax)
movl $0, 20(%eax)
movl %edx, 12(%eax)
movl $1, 24(%eax)
movl $-1, 28(%eax)
.L000015D4:
addl $24, %esp
popl %ebx
ret
.L000015D9:
.p2align 4
.L000015E0:
xorl %eax, %eax
jmp .L000015D4
.L000015E4:
.p2align 3
.L000015E8:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L000015FD:
xorl %eax, %eax
jmp .L000015D4
.size PyBuffer_FromMemory, .-PyBuffer_FromMemory
# ----------------------
.L00001601:
.p2align 4
# ----------------------
.globl PyBuffer_FromReadWriteMemory
.type PyBuffer_FromReadWriteMemory, @function
PyBuffer_FromReadWriteMemory:
pushl %ebx
subl $24, %esp
movl 36(%esp), %ebx
cmpl $-1, %ebx
jl .L00001678
.L0000161D:
movl PyBuffer_Type+16, %eax
movl %eax, (%esp)
call PyObject_Malloc
.L0000162A:
movl $PyBuffer_Type, 4(%esp)
movl %eax, (%esp)
call PyObject_Init
.L0000163A:
testl %eax, %eax
je .L00001670
.L0000163E:
movl 32(%esp), %edx
movl $0, 8(%eax)
movl %ebx, 16(%eax)
movl $0, 20(%eax)
movl %edx, 12(%eax)
movl $0, 24(%eax)
movl $-1, 28(%eax)
.L00001664:
addl $24, %esp
popl %ebx
ret
.L00001669:
.p2align 4
.L00001670:
xorl %eax, %eax
jmp .L00001664
.L00001674:
.p2align 3
.L00001678:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L0000168D:
xorl %eax, %eax
jmp .L00001664
.size PyBuffer_FromReadWriteMemory, .-PyBuffer_FromReadWriteMemory
# ----------------------
.L00001691:
.p2align 4
# ----------------------
.globl PyBuffer_New
.type PyBuffer_New, @function
PyBuffer_New:
pushl %ebx
subl $24, %esp
movl 32(%esp), %ebx
testl %ebx, %ebx
js .L00001710
.L000016AC:
movl $2147483647, %eax
subl %ebx, %eax
cmpl $31, %eax
jbe .L00001700
.L000016B8:
leal 32(%ebx), %eax
movl %eax, (%esp)
call PyObject_Malloc
.L000016C3:
testl %eax, %eax
je .L00001700
.L000016C7:
leal 32(%eax), %edx
movl $PyBuffer_Type, 4(%eax)
movl $1, (%eax)
movl $0, 8(%eax)
movl %edx, 12(%eax)
movl %ebx, 16(%eax)
movl $0, 20(%eax)
movl $0, 24(%eax)
movl $-1, 28(%eax)
.L000016F9:
addl $24, %esp
popl %ebx
ret
.L000016FE:
.p2align 3
.L00001700:
addl $24, %esp
popl %ebx
jmp PyErr_NoMemory
.L00001709:
.p2align 4
.L00001710:
movl PyExc_ValueError, %eax
movl $.LC00000041.str1.1, 4(%esp)
movl %eax, (%esp)
call PyErr_SetString
.L00001725:
xorl %eax, %eax
jmp .L000016F9
.size PyBuffer_New, .-PyBuffer_New
# ----------------------
.ident "GCC: (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4"
.section .note.GNU-stack,"",@progbits
| 21.130645 | 310 | 0.530303 |
7b8b50b43b410b1d2aed9f9545b1e8bd8f384827 | 619 | asm | Assembly | programs/oeis/215/A215095.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/215/A215095.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/215/A215095.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A215095: a(0)=0, a(1)=1, a(n) = least k>a(n-1) such that k+a(n-2) is a Jacobsthal number.
; 0,1,3,4,8,17,35,68,136,273,547,1092,2184,4369,8739,17476,34952,69905,139811,279620,559240,1118481,2236963,4473924,8947848,17895697,35791395,71582788,143165576,286331153,572662307,1145324612,2290649224,4581298449,9162596899
mov $4,2
mov $6,$0
lpb $4
mov $0,$6
sub $4,1
add $0,$4
sub $0,1
mov $7,$0
mov $0,2
add $7,5
pow $0,$7
lpb $0
mov $3,$0
mov $0,0
sub $3,5
div $3,30
lpe
mov $2,$4
mov $5,$3
lpb $2
mov $1,$5
sub $2,1
lpe
lpe
lpb $6
sub $1,$5
mov $6,0
lpe
mov $0,$1
| 18.757576 | 224 | 0.609047 |
5d4e361e55150d09b26d7a4ae6b1a42a40fd707d | 765 | asm | Assembly | programs/oeis/128/A128969.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/128/A128969.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/128/A128969.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A128969: a(n) = (n^3 - n)*9^n.
; 0,486,17496,393660,7085880,111602610,1607077584,21695547384,278942752080,3451916556990,41422998683880,484649084601396,5551434969070536,62453643402043530,691794203838020640,7560322370515511280,81651481601567521824,872650209616752889494,9239825748883265888760,97018170363274291831980,1011031459575174199091160,10464175606603052960593506,107631520525059973308961776,1100776914460840636114381800,11199208607992900384815884400,113391987155928116396260829550,1142991230531755413274309161864,11473873506491852417869026586404,114738735064918524178690265864040,1143289538682581008780520863430970,11354047832433907949268620988555840,112405073541095688697759347786702816
add $0,2
mov $2,9
pow $2,$0
bin $0,3
mul $0,$2
div $0,729
mul $0,486
| 69.545455 | 661 | 0.890196 |
21f0b15247f085e115d8b4b4800af60feb27dba0 | 618 | asm | Assembly | oeis/136/A136336.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/136/A136336.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/136/A136336.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A136336: a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) for n>3.
; 1,2,4,7,15,27,59,107,235,427,939,1707,3755,6827,15019,27307,60075,109227,240299,436907,961195,1747627,3844779,6990507,15379115,27962027,61516459,111848107,246065835,447392427,984263339,1789569707,3937053355,7158278827,15748213419,28633115307,62992853675,114532461227,251971414699,458129844907,1007885658795,1832519379627,4031542635179,7330077518507,16126170540715,29320310074027,64504682162859,117281240296107,258018728651435,469124961184427,1032074914605739,1876499844737707,4128299658422955
mov $1,2
pow $1,$0
gcd $0,2
add $0,9
mul $0,$1
div $0,12
add $0,1
| 56.181818 | 494 | 0.81068 |
01a8d5725690a3cb62f2cb6bb6a6c4697a235539 | 415 | asm | Assembly | programs/oeis/335/A335741.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/335/A335741.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/335/A335741.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A335741: Number of Pell numbers (A000129) <= n.
; 1,2,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
mov $1,13
mov $3,1
lpb $0
mov $2,$0
add $0,3
add $1,7
mov $4,$2
mul $4,4
add $0,$4
sub $0,1
mov $5,$3
add $5,11
div $0,$5
lpe
sub $1,13
div $1,7
add $1,1
| 19.761905 | 189 | 0.513253 |
c520643526db43bd8a283670af1f923df590341f | 3,727 | asm | Assembly | Data/ships/Fer_De_Lance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 9 | 2021-09-29T22:08:15.000Z | 2022-03-23T05:35:43.000Z | Data/ships/Fer_De_Lance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-21T12:35:42.000Z | 2022-01-21T17:47:24.000Z | Data/ships/Fer_De_Lance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-15T10:13:49.000Z | 2022-01-15T10:13:49.000Z | Fer_De_Lance: DB $00
DW $0640
DW Fer_De_LanceEdges
DB Fer_De_LanceEdgesSize
DB $00, $1A
DB Fer_De_LanceVertSize /6
DB Fer_De_LanceVertSize
DB Fer_De_LanceEdgesCnt
DB $00, $00
DB Fer_De_LanceNormalsSize
DB $28, $A0, $1E
DW Fer_De_LanceNormals
DB $01, $12
DW Fer_De_LanceVertices
DB 0,0 ; Type and Tactics
DB ShipCanAnger
Fer_De_LanceVertices: DB $00, $0E, $6C, $5F, $01, $59
DB $28, $0E, $04, $FF, $12, $99
DB $0C, $0E, $34, $FF, $23, $99
DB $0C, $0E, $34, $7F, $34, $99
DB $28, $0E, $04, $7F, $45, $99
DB $28, $0E, $04, $BC, $01, $26
DB $0C, $02, $34, $BC, $23, $67
DB $0C, $02, $34, $3C, $34, $78
DB $28, $0E, $04, $3C, $04, $58
DB $00, $12, $14, $2F, $06, $78
DB $03, $0B, $61, $CB, $00, $00
DB $1A, $08, $12, $89, $00, $00
DB $10, $0E, $04, $AB, $00, $00
DB $03, $0B, $61, $4B, $00, $00
DB $1A, $08, $12, $09, $00, $00
DB $10, $0E, $04, $2B, $00, $00
DB $00, $0E, $14, $6C, $99, $99
DB $0E, $0E, $2C, $CC, $99, $99
DB $0E, $0E, $2C, $4C, $99, $99
Fer_De_LanceVertSize: equ $ - Fer_De_LanceVertices
Fer_De_LanceEdges: DB $1F, $19, $00, $04
DB $1F, $29, $04, $08
DB $1F, $39, $08, $0C
DB $1F, $49, $0C, $10
DB $1F, $59, $00, $10
DB $1C, $01, $00, $14
DB $1C, $26, $14, $18
DB $1C, $37, $18, $1C
DB $1C, $48, $1C, $20
DB $1C, $05, $00, $20
DB $0F, $06, $14, $24
DB $0B, $67, $18, $24
DB $0B, $78, $1C, $24
DB $0F, $08, $20, $24
DB $0E, $12, $04, $14
DB $0E, $23, $08, $18
DB $0E, $34, $0C, $1C
DB $0E, $45, $10, $20
DB $08, $00, $28, $2C
DB $09, $00, $2C, $30
DB $0B, $00, $28, $30
DB $08, $00, $34, $38
DB $09, $00, $38, $3C
DB $0B, $00, $34, $3C
DB $0C, $99, $40, $44
DB $0C, $99, $40, $48
DB $08, $99, $44, $48
Fer_De_LanceEdgesSize: equ $ - Fer_De_LanceEdges
Fer_De_LanceEdgesCnt: equ Fer_De_LanceEdgesSize/4
Fer_De_LanceNormals: DB $1C, $00, $18, $06
DB $9F, $44, $00, $18
DB $BF, $3F, $00, $25
DB $3F, $00, $00, $68
DB $3F, $3F, $00, $25
DB $1F, $44, $00, $18
DB $BC, $0C, $2E, $13
DB $3C, $00, $2D, $16
DB $3C, $0C, $2E, $13
DB $5F, $00, $1C, $00
Fer_De_LanceNormalsSize:equ $ - Fer_De_LanceNormals
Fer_De_LanceLen: equ $ - Fer_De_Lance
| 47.782051 | 70 | 0.309364 |
7a7c19817ce83e0d01a5c3b38b56c0d683fa6cbc | 325 | asm | Assembly | programs/oeis/270/A270809.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/270/A270809.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/270/A270809.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A270809: a(n) = n^3/3 - 7*n/3 + 4.
; 4,2,2,6,16,34,62,102,156,226,314,422,552,706,886,1094,1332,1602,1906,2246,2624,3042,3502,4006,4556,5154,5802,6502,7256,8066,8934,9862,10852,11906,13026,14214,15472,16802,18206,19686,21244,22882,24602,26406,28296,30274
mov $1,1
add $1,$0
bin $1,3
add $1,48
sub $1,$0
sub $1,46
mul $1,2
| 29.545455 | 219 | 0.692308 |
d03984a65392abfd0e95da079c2a35af8a4fd048 | 234 | asm | Assembly | data/maps/objects/CeladonMartElevator.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/objects/CeladonMartElevator.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/objects/CeladonMartElevator.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | CeladonMartElevator_Object:
db $f ; border block
def_warps
warp 1, 3, 5, CELADON_MART_1F
warp 2, 3, 5, CELADON_MART_1F
def_signs
sign 3, 0, 1 ; CeladonMartElevatorText1
def_objects
def_warps_to CELADON_MART_ELEVATOR
| 16.714286 | 42 | 0.75641 |
3b2d7936f9a400e834b25d383498822666c29b7c | 2,067 | asm | Assembly | src/sm/rewards.asm | PJBoy/alttp_sm_combo_randomizer_rom | 4f14c87227b512a864d1f298e4a6efe7cbc373b3 | [
"MIT"
] | 31 | 2018-05-03T06:43:23.000Z | 2021-07-16T13:17:01.000Z | src/sm/rewards.asm | PJBoy/alttp_sm_combo_randomizer_rom | 4f14c87227b512a864d1f298e4a6efe7cbc373b3 | [
"MIT"
] | 13 | 2018-05-08T20:15:54.000Z | 2022-01-20T21:28:53.000Z | src/sm/rewards.asm | PJBoy/alttp_sm_combo_randomizer_rom | 4f14c87227b512a864d1f298e4a6efe7cbc373b3 | [
"MIT"
] | 26 | 2018-05-04T12:25:41.000Z | 2022-03-23T20:27:57.000Z | ; $A7:C831 9F 28 D8 7E STA $7ED828,x[$7E:D828] ; Set Kraid as dead
; $A7:DB85 9F 28 D8 7E STA $7ED828,x[$7E:D82B] ; Set Phantoon as dead
; $A5:92DE 9F 28 D8 7E STA $7ED828,x[$7E:D82C] ; Set Draygon as dead
; $A6:C5E2 22 A6 81 80 JSL $8081A6[$80:81A6] ; Set Ridley as dead
; Hook Kraid death
org $e7c831
jsl boss_death_kraid
org $e7db85
jsl boss_death_phantoon
org $e592de
jsl boss_death_draygon
org $e6c5e2
jsl boss_death_ridley
org $cfa68f
dw $91d6 ; Disable G4 Statue Animations
; G4 opening is only triggered by the new event flags
org $d9f000
base $99f000
boss_death_kraid:
sta $7ed828,x ; Store actual boss kill flag
lda #$0000
jsr boss_death_reward
rtl
boss_death_phantoon:
sta $7ed828,x ; Store actual boss kill flag
lda #$0008
jsr boss_death_reward
rtl
boss_death_draygon:
sta $7ed828,x ; Store actual boss kill flag
lda #$0010
jsr boss_death_reward
rtl
boss_death_ridley:
jsl $8081a6 ; Store actual boss kill flag
lda #$0018
jsr boss_death_reward
rtl
boss_death_reward:
phx : php : tax
; Load boss reward type from table
%a8()
lda.l boss_rewards, x
sta $c7
beq .pendant
cmp #$40
beq .crystal
bra .smboss
.pendant
lda.l boss_rewards+$2, x
sta $c9
ora.l !SRAM_ALTTP_ITEM_BUF+$74
sta.l !SRAM_ALTTP_ITEM_BUF+$74
bra .exit
.crystal
lda.l boss_rewards+$2, x
sta $c9
ora.l !SRAM_ALTTP_ITEM_BUF+$7A
sta.l !SRAM_ALTTP_ITEM_BUF+$7A
bra .exit
.smboss
; Save to special event bits for boss tokens (not the actual boss kill flags that opens doors)
; Although in a future update adding the option of this also setting those flags should be a possibility
lda.l boss_rewards+$2, x
sta $c9
ora.l $7ed832
sta.l $7ed832
bra .exit
.exit
%ai16()
; Show message box
lda #$0063
jsl $858080
plp : plx
rts
| 22.714286 | 112 | 0.620223 |
f82f1ee4b6845197394667488ef5ac563888f9f0 | 6,965 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_720.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_720.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_720.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x15c96, %r12
nop
nop
nop
cmp $15045, %r11
mov $0x6162636465666768, %r8
movq %r8, %xmm2
vmovups %ymm2, (%r12)
nop
nop
nop
nop
dec %r9
lea addresses_UC_ht+0x62a6, %rdi
nop
nop
nop
dec %rax
mov $0x6162636465666768, %r8
movq %r8, %xmm0
vmovups %ymm0, (%rdi)
nop
sub %r8, %r8
lea addresses_UC_ht+0x1efa6, %r12
nop
sub %r8, %r8
movb (%r12), %r11b
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_WC_ht+0x44a6, %r12
nop
nop
nop
sub $16941, %rcx
movb $0x61, (%r12)
nop
nop
nop
nop
nop
add $55952, %r12
lea addresses_WC_ht+0x17786, %r12
nop
cmp $45683, %r9
mov (%r12), %edi
nop
nop
nop
nop
and $23125, %r11
lea addresses_WT_ht+0x18ba8, %rcx
and %r9, %r9
mov $0x6162636465666768, %r12
movq %r12, %xmm1
vmovups %ymm1, (%rcx)
nop
nop
nop
nop
nop
sub $58647, %rax
lea addresses_normal_ht+0xeffe, %r11
nop
dec %r8
movups (%r11), %xmm3
vpextrq $1, %xmm3, %r9
nop
xor %r9, %r9
lea addresses_normal_ht+0x1b812, %rax
nop
nop
nop
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %r8
movq %r8, (%rax)
cmp $19509, %rax
lea addresses_D_ht+0x19d26, %rax
nop
add $25031, %r9
vmovups (%rax), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %r12
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_A_ht+0x10a6, %rax
nop
nop
nop
cmp $57022, %r11
mov $0x6162636465666768, %rcx
movq %rcx, (%rax)
nop
cmp $9692, %rax
lea addresses_WC_ht+0x5d36, %r12
clflush (%r12)
nop
nop
xor %rax, %rax
movb $0x61, (%r12)
nop
nop
nop
nop
nop
xor $696, %r9
lea addresses_D_ht+0x1c7a6, %rsi
lea addresses_normal_ht+0xb2a0, %rdi
nop
nop
nop
nop
cmp $42661, %r11
mov $74, %rcx
rep movsl
nop
nop
and %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %rbp
push %rbx
push %rdi
push %rsi
// Faulty Load
lea addresses_WT+0x19ca6, %r13
nop
nop
nop
xor $24358, %rbp
movups (%r13), %xmm0
vpextrq $1, %xmm0, %rsi
lea oracles, %r13
and $0xff, %rsi
shlq $12, %rsi
mov (%r13,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rbx
pop %rbp
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 35.717949 | 2,999 | 0.656856 |
9d85161fb54b391f2e221306fbaed9f31820891d | 681 | asm | Assembly | oeis/020/A020982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/020/A020982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/020/A020982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A020982: Expansion of 1/((1-9*x)*(1-10*x)*(1-11*x)).
; Submitted by Jon Maiga
; 1,30,601,10050,151501,2135070,28702801,372684090,4712104501,58346365110,710428956601,8532288986130,101313313019101,1191569650755150,13901375026212001,161062105099480170,1855005974394615301,21254971083043769190,242453830195808469001,2754834466694836230210,31193760144511686173101,352146590687444936671230,3964749559442241802287601,44532478710787787315300250,499139367830973807879532501,5584071964251485213375925270,62366641869763297287444787801,695509712934368909624679154290
add $0,2
lpb $0
sub $0,1
max $2,26
mul $2,9
mul $3,11
add $3,$1
mul $1,10
add $1,$2
lpe
mov $0,$3
div $0,234
| 40.058824 | 476 | 0.819383 |
699343a9784ca851b9422babd1063d81c21f8c3b | 265 | asm | Assembly | src/boot/switch_pm.asm | C-McKinley/ColbyOS | e361781dfc293855c02d8ac66883d104f8309917 | [
"MIT"
] | null | null | null | src/boot/switch_pm.asm | C-McKinley/ColbyOS | e361781dfc293855c02d8ac66883d104f8309917 | [
"MIT"
] | null | null | null | src/boot/switch_pm.asm | C-McKinley/ColbyOS | e361781dfc293855c02d8ac66883d104f8309917 | [
"MIT"
] | null | null | null | [bits 16]
switch_to_pm:
cli
lgdt [gdt_descriptor]
mov eax, cr0
or eax, 0x1
mov cr0, eax
jmp CODE_SEG: init_pm
[bits 32]
init_pm:
mov ax, DATA_SEG
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ebp, 0x90000
mov esp, ebp
call BEGIN_PM
| 11.521739 | 22 | 0.671698 |
14cd7c0c82527f92421d57fc0599b6b4d056e515 | 1,008 | asm | Assembly | programs/oeis/017/A017619.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017619.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017619.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017619: a(n) = (12*n + 8)^3.
; 512,8000,32768,85184,175616,314432,512000,778688,1124864,1560896,2097152,2744000,3511808,4410944,5451776,6644672,8000000,9528128,11239424,13144256,15252992,17576000,20123648,22906304,25934336,29218112,32768000,36594368,40707584,45118016,49836032,54872000,60236288,65939264,71991296,78402752,85184000,92345408,99897344,107850176,116214272,125000000,134217728,143877824,153990656,164566592,175616000,187149248,199176704,211708736,224755712,238328000,252435968,267089984,282300416,298077632,314432000,331373888,348913664,367061696,385828352,405224000,425259008,445943744,467288576,489303872,512000000,535387328,559476224,584277056,609800192,636056000,663054848,690807104,719323136,748613312,778688000,809557568,841232384,873722816,907039232,941192000,976191488,1012048064,1048772096,1086373952,1124864000,1164252608,1204550144,1245766976,1287913472,1331000000,1375036928,1420034624,1466003456,1512953792,1560896000,1609840448,1659797504,1710777536
mul $0,12
add $0,8
pow $0,3
| 144 | 946 | 0.868056 |
17b8ba0fe1a4735cde2ec2fc2d6c1cc2050f5c70 | 2,185 | asm | Assembly | src/splash/interrupts.asm | endstation/golf | 5784b06e5b025c7c52b9b6ebcba2c62592730804 | [
"BSD-2-Clause"
] | 1 | 2022-02-13T16:09:18.000Z | 2022-02-13T16:09:18.000Z | src/splash/interrupts.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | null | null | null | src/splash/interrupts.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | 1 | 2022-02-12T23:40:10.000Z | 2022-02-12T23:40:10.000Z | ; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
; *****************
; *** CONSTANTS ***
; *****************
interrupts_c_SPLIT = $fa
; *****************
; *** VARIABLES ***
; *****************
; *******************
; ****** MACROS *****
; *******************
; *******************
; *** SUBROUTINES ***
; *******************
!zone {
interrupts_s_cb
lda VICIRQ
bpl interrupts_clean_up
jsr splash_s_update
; jmp interrupts_reset
; end sub interrupts_s_cb
} ; !zone
; **************************************************
; NOTE: this is 'jmp'd to by the callback (cb) routines.
!zone {
interrupts_reset
lda #interrupts_c_SPLIT
sta RASTER
+utils_m_clear_raster_bit9
; Release latch.
asl VICIRQ
; NOTE: will often jump straight to here.
interrupts_clean_up
; Pull registers off of stack and restore.
pla
tay
pla
tax
pla
rti
; end sub interrupts_reset
} ; !zone
; **************************************************
!zone {
interrupts_s_uninstall
sei
lda #0
sta IRQMSK
cli
rts
; end sub interrupts_s_uninstall
} ; !zone
; **************************************************
!zone {
interrupts_s_install
sei
lda #<interrupts_s_cb
sta CINV
lda #>interrupts_s_cb
sta CINV+1
; Enable raster interrupts.
lda #$01
sta IRQMSK
; Turn off CIA interrupts.
lda #$7f
sta $dc0d
lda #interrupts_c_SPLIT
sta RASTER
+utils_m_clear_raster_bit9
cli
rts
; end sub interrupts_s_install
} ; !zone
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
| 19.508929 | 56 | 0.360183 |
afeca8d442000c3abc7ad6db5c3e80812e9fcb55 | 27,917 | asm | Assembly | 8088/cga/interlace/mandala1.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 92 | 2015-04-10T17:45:11.000Z | 2022-03-30T17:58:51.000Z | 8088/cga/interlace/mandala1.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 2 | 2017-11-05T07:21:35.000Z | 2018-11-04T23:36:13.000Z | 8088/cga/interlace/mandala1.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 18 | 2015-04-11T20:32:44.000Z | 2021-11-06T05:19:57.000Z | org 0
%include "../../defaults_common.asm"
%define bin
%ifdef bin
%macro outputCharacter 0
int 0x65
%endmacro
%else
%macro outputCharacter 0
call doPrintCharacter
%endmacro
%endif
..start:
; mov ax,0x40
; mov ds,ax
;checkMotorShutoff:
; cmp byte[0x40],0
; je noMotorShutoff
; mov byte[0x40],1
; jmp checkMotorShutoff
;noMotorShutoff:
; mov dx,0x3b8
; mov al,29
; out dx,al
;
; mov dl,0xb4
; ; 0xff Horizontal Total 38 38 71 71 38 38 38 61
; mov ax,0x6100
; out dx,ax
;
; ; 0xff Horizontal Displayed 28 28 50 50 28 28 28 50
; mov ax,0x5001
; out dx,ax
;
; ; 0xff Horizontal Sync Position 2d 2d 5a 5a 2d 2d 2d 52
; mov ax,0x5202
; out dx,ax
;
; ; 0x0f Horizontal Sync Width 0a 0a 0a 0a 0a 0a 0a 0f
; mov ax,0x0f03
; out dx,ax
;
; ; 0x7f Vertical Total 1f 1f 1f 1f 7f 7f 7f 19
; mov ax,0x1904
; out dx,ax
;
; ; 0x1f Vertical Total Adjust 06 06 06 06 06 06 06 06
; mov ax,0x0605
; out dx,ax
;
; ; 0x7f Vertical Displayed 19 19 19 19 64 64 64 19
; mov ax,0x1906
; out dx,ax
;
; ; 0x7f Vertical Sync Position 1c 1c 1c 1c 70 70 70 19
; mov ax,0x1907
; out dx,ax
;
; ; 0x03 Interlace Mode 02 02 02 02 02 02 02 02
; mov ax,0x0208
; out dx,ax
;
; ; 0x1f Max Scan Line Address 07 07 07 07 01 01 01 0d
; mov ax,0x0d09
; out dx,ax
;
; ; Cursor Start 06 06 06 06 06 06 06 0b
; ; 0x1f Cursor Start 6 6 6 6 6 6 6 0b
; ; 0x60 Cursor Mode 0 0 0 0 0 0 0 0
; mov ax,0x0b0a
; out dx,ax
;
; ; 0x1f Cursor End 07 07 07 07 07 07 07 0c
; mov ax,0x0c0b
; out dx,ax
;
; ; 0x3f Start Address (H) 00 00 00 00 00 00 00 00
; mov ax,0x000c
; out dx,ax
;
; ; 0xff Start Address (L) 00 00 00 00 00 00 00 00
; mov ax,0x000d
; out dx,ax
;
; ; 0x3f Cursor (H) 00 00 00 00 00 00 00 00
; mov ax,0x000e
; out dx,ax
;
; ; 0xff Cursor (L) 00 00 00 00 00 00 00 00
; mov ax,0x000f
; out dx,ax
;
; ; mov ax,0xb000
;; mov es,ax
;; xor di,di
;; mov cx,80*25
;; rep stosw
;
;
; in al,0x61
; or al,0x80
; mov [cs:port61high+1],al
; and al,0x7f
; mov [cs:port61low+1],al
;
; xor ax,ax
; mov ds,ax
; mov ax,[0x20]
; mov [cs:oldInterrupt8],ax
; mov ax,[0x22]
; mov [cs:oldInterrupt8+2],ax
;
; in al,0x21
; mov [cs:imr],al
; mov al,0xfe ; Enable IRQ0 (timer), disable all others
; out 0x21,al
;
; Determine phase
lockstep 1
mov ax,cs
mov es,ax
mov ds,ax
mov ss,ax
mov sp,stackTop
mov di,data2
in al,0x61
or al,3
out 0x61,al
mov al,TIMER2 | BOTH | MODE2 | BINARY
out 0x43,al
mov dx,0x42
mov al,0
out dx,al
out dx,al
%rep 5
readPIT16 2
stosw
%endrep
refreshOn
mov ax,'0'
mov di,[data2+8]
mov si,[data2+6]
mov bx,[data2+4]
mov cx,[data2+2]
mov dx,[data2]
sub dx,cx
sub dx,20
jnz notPhase0
add ax,1
notPhase0:
sub cx,bx
sub cx,20
jnz notPhase1
add ax,2
notPhase1:
sub bx,si
sub bx,20
jnz notPhase2
add ax,4
notPhase2:
sub si,di
sub si,20
jnz notPhase3
add ax,8
notPhase3:
mov [phase],al
mov di,startAddresses
mov ax,cs
mov es,ax
mov ax,-1
mov cx,102
initAddressesLoopTop:
stosw
add ax,40
loop initAddressesLoopTop
mov cx,101
initAddressesLoopTop2:
sub ax,40
stosw
loop initAddressesLoopTop2
mov cx,101
inc ax
initAddressesLoopTop3:
stosw
add ax,40
loop initAddressesLoopTop3
mov cx,101
initAddressesLoopTop4:
sub ax,40
stosw
loop initAddressesLoopTop4
; mov di,rasterData
; xor ax,ax
; mov cx,405
;initRastersLoopTop:
;; stosb
;; inc ax
; loop initRastersLoopTop
;
call copyImageData
; ISAV code starts here.
startISAV:
push ds
; Mode 09
; 1 +HRES 1
; 2 +GRPH 0
; 4 +BW 0
; 8 +VIDEO ENABLE 8
; 0x10 +1BPP 0
; 0x20 +ENABLE BLINK 0
mov dx,0x3d8
mov al,0x0a ;0x09
out dx,al
; Palette 00
; 1 +OVERSCAN B 0
; 2 +OVERSCAN G 2
; 4 +OVERSCAN R 4
; 8 +OVERSCAN I 0
; 0x10 +BACKGROUND I 0
; 0x20 +COLOR SEL 0
inc dx
mov al,0
out dx,al
mov dx,0x3d4
; 0xff Horizontal Total 38
mov ax,0x3800
out dx,ax
; 0xff Horizontal Displayed 28
mov ax,0x2801
out dx,ax
; 0xff Horizontal Sync Position 2d
mov ax,0x2d02
out dx,ax
; 0x0f Horizontal Sync Width 0a
mov ax,0x0a03
out dx,ax
; 0x7f Vertical Total 01 vertical total = 2 rows
mov ax,0x0104
out dx,ax
; 0x1f Vertical Total Adjust 00 vertical total adjust = 0
mov ax,0x0005
out dx,ax
; 0x7f Vertical Displayed 01 vertical displayed = 1
mov ax,0x0106
out dx,ax
; 0x7f Vertical Sync Position 1c vertical sync position = 28 rows
mov ax,0x1707
out dx,ax
; 0x03 Interlace Mode 00 0 = non interlaced, 1 = interlace sync, 3 = interlace sync and video
mov ax,0x0008
out dx,ax
; 0x1f Max Scan Line Address 00 scanlines per row = 1
mov ax,0x0009
out dx,ax
; Cursor Start 06
; 0x1f Cursor Start 6
; 0x60 Cursor Mode 0
mov ax,0x060a
out dx,ax
; 0x1f Cursor End 08
mov ax,0x080b
out dx,ax
; 0x3f Start Address (H) 00
mov ax,0x000c
out dx,ax
; 0xff Start Address (L) 00
mov ax,0x000d
out dx,ax
; 0x3f Cursor (H) 03
mov ax,0x030e
out dx,ax
; 0xff Cursor (L) c0
mov ax,0xc00f
out dx,ax
mov dl,0xda
cli
mov al,TIMER1 | LSB | MODE2 | BINARY
out 0x43,al
mov al,19
out 0x41,al ; Timer 1 rate
mov al,0x34
out 0x43,al
mov al,0
out 0x40,al
out 0x40,al
mov al,76*2 + 1
out 0x40,al
mov al,0
out 0x40,al
xor ax,ax
mov ds,ax
mov ax,[0x20]
mov [cs:originalInterrupt8],ax
mov ax,[0x22]
mov [cs:originalInterrupt8+2],ax
mov word[0x20],int8_oe0
mov [0x22],cs
in al,0x21
mov [cs:originalIMR],al
mov al,0xfe
out 0x21,al
sti
setupLoop:
hlt
jmp setupLoop
; Step 0 - don't do anything (we've just completed wait for CRTC stabilization)
int8_oe0:
mov word[0x20],int8_oe1
mov al,0x20
out 0x20,al
iret
; Step 1, wait until display is disabled, then change interrupts
int8_oe1:
in al,dx
test al,1
jz .noInterruptChange ; jump if not -DISPEN, finish if -DISPEN
mov word[0x20],int8_oe2
.noInterruptChange:
mov al,0x20
out 0x20,al
iret
; Step 2, wait until display is enabled - then we'll be at the start of the active area
int8_oe2:
in al,dx
test al,1
jnz .noInterruptChange ; jump if -DISPEN, finish if +DISPEN
mov word[0x20],int8_oe3
mov cx,2
.noInterruptChange:
mov al,0x20
out 0x20,al
iret
; Step 3 - this interrupt occurs one timer cycle into the active area.
; The pattern of scanlines on the screen is +-+-- As the interrupt runs every other scanline, the pattern of scanlines in terms of what is seen from the interrupt is ++---.
int8_oe3:
mov dl,0xd4
mov ax,0x0308 ; Set interlace mode to ISAV
out dx,ax
mov dl,0xda
loop .noInterruptChange
mov word[0x20],int8_oe4
.noInterruptChange:
mov al,76*2
out 0x40,al
mov al,0
out 0x40,al
mov al,0x20
out 0x20,al
iret
; Step 4 - this interrupt occurs two timer cycles into the active area.
int8_oe4:
in al,dx
test al,1
jnz .noInterruptChange ; jump if -DISPEN, finish if +DISPEN
mov word[0x20],int8_oe5
.noInterruptChange:
mov al,0x20
out 0x20,al
iret
; Step 5
int8_oe5:
in al,dx
test al,1
jz .noInterruptChange ; jump if not -DISPEN, finish if -DISPEN (i.e. scanline 4)
mov word[0x20],int8_oe6
mov al,76*2 - 3
out 0x40,al
mov al,0
out 0x40,al
.noInterruptChange:
mov al,0x20
out 0x20,al
iret
; Step 6. This occurs on scanline 1. The next interrupt will be on scanline 3.
int8_oe6:
mov word[0x20],int8_oe7
mov al,76*2
out 0x40,al
mov al,0
out 0x40,al
mov al,0x20
out 0x20,al
iret
; Step 7. This occurs on scanline 3 (one timer cycle before the active area starts). The next interrupt will be on scanline 0.
int8_oe7:
mov word[0x20],int8_oe8
mov al,0x20
out 0x20,al
iret
; Step 8 - scanline 0, next interrupt on scanline 2
int8_oe8:
mov al,(20*76) & 0xff
out 0x40,al
mov al,(20*76) >> 8
out 0x40,al
mov word[0x20],int8_oe9
mov dl,0xd4
mov al,0x20
out 0x20,al
add sp,6
sti
pop ds
ret
; Step 9 - initial short (odd) field
int8_oe9:
push ax
push dx
mov dx,0x3d4
mov ax,0x0309 ; Scanlines per row = 4 (2 on each field)
out dx,ax
mov ax,0x0106 ; Vertical displayed = 1 row (actually 2)
out dx,ax
mov ax,0x0304 ; Vertical total = 4 rows
out dx,ax
mov ax,0x0305 ; Vertical total adjust = 3
out dx,ax
pop dx
mov al,(224*76 - 20) & 0xff
out 0x40,al
mov al,(224*76 - 20) >> 8
out 0x40,al
; mov al,[cs:originalIMR]
; out 0x21,al
push ds
xor ax,ax
mov ds,ax
mov word[0x20],int8_oe10
pop ds
mov al,0x20
out 0x20,al
pop ax
iret
; Step 10 - set up CRTC registers for full screen - scanline 0
int8_oe10:
push ax
push dx
mov dx,0x3d4
mov ax,0x0709 ; Scanlines per row = 8 (4 on each field)
out dx,ax
mov ax,0x1906 ; Vertical displayed = 25 rows (actually 50)
out dx,ax
mov ax,0x1f04 ; Vertical total = 32 rows (actually 64)
out dx,ax
mov ax,0x0605 ; Vertical total adjust = 6
out dx,ax
mov al,(76) & 0xff
out 0x40,al
mov al,(76) >> 8
out 0x40,al
xor ax,ax
mov ds,ax
mov word[0x20],int8_isav1
mov al,0x20
out 0x20,al
sti
hlt
; ; Final 0 - scanline 224
;int8_isav0:
; push ax
; push dx
; mov dx,0x3d4
;
; mov al,0xfe
; out 0x21,al
;
; mov al,(76) & 0xff
; out 0x40,al
; mov al,(76) >> 8
; out 0x40,al
;
; push ds
; xor ax,ax
; mov ds,ax
; mov word[0x20],int8_isav1
;
; mov al,0x20
; out 0x20,al
; sti
; hlt
; Final 1 - scanline 225
int8_isav1:
isav1_patch:
mov ax,0x1102 ; Horizontal sync position early
out dx,ax
mov word[0x20],int8_isav2
mov al,0x20
out 0x20,al
sti
hlt
; Final 2 - scanline 226
int8_isav2:
isav2_patch:
mov ax,0x2d02 ; Horizontal sync position normal
out dx,ax
mov word[0x20],int8_isav3
mov al,0x20
out 0x20,al
sti
hlt
; Final 3 - scanline 227
int8_isav3:
mov word[0x20],int8_isav4
mov al,0x20
out 0x20,al
sti
hlt
; Final 4 - scanline 228
int8_isav4:
isav4_patch:
mov ax,0x1102 ; Horizontal sync position early
out dx,ax
mov al,(33*76) & 0xff
out 0x40,al
mov al,(33*76) >> 8
out 0x40,al
mov word[0x20],int8_isav5
mov al,0x20
out 0x20,al
sti
hlt
; Final 5 - scanline 229
int8_isav5:
isav5_patch:
mov ax,0x2d02 ; Horizontal sync position normal
out dx,ax
mov al,(264*76) & 0xff
out 0x40,al
mov al,(264*76) >> 8
out 0x40,al
mov word[0x20],int8_field1
mov al,0x20
out 0x20,al
sti
hlt
; Field 1: 2 rows per frame, 1 scanline per row
int8_field1:
mov ax,cs
mov ds,ax
mov ss,ax
mov sp,startAddresses+203*2
mov dx,0x3d4
; mov ax,0x0009 ; 1 scanline per row
; out dx,ax
mov bp,0x2801 ;0x5001 (left horizontal displayed = 40)
mov di,0x0c00 ;0x1900 (right horizontal total = 13)
mov ax,0x2b02 ;0x5702 (left horizontal sync position = 43)
mov si,sampleData+203
mov bx,rasterData-sampleData
mov es,ax
; Scanlines -1..200
%macro scanline 2
mov al,0x00
out dx,ax ; e Horizontal Total left 0x2b00 44 0x5700 88
mov ax,0x0102 ;0x0202
out dx,ax ; f Horizontal Sync Position right 0x0102 1 0x0202 2
pop cx
mov al,0x0c
mov ah,ch
out dx,ax
inc ax
mov ah,cl
out dx,ax
lodsb
out 0xe0,al
%if %1 == -1
mov ax,(%2 << 8) + 0x04
out dx,ax ; Vertical Total
times 3 nop
%elif %1 == 201-%2
; %if %2 == 1
mov ax,0x3d04 ; Vertical Total 0x3d04 62 (1 for scanlines -1 and 200, 60 for scanlines 201-260)
; %else
; mov ax,0x1d04 ; Vertical Total 0x1d04 64 (1 for scanlines -1 and 200, 62 for scanlines 201-260)
; %endif
out dx,ax
times 3 nop
%else
mov al,[bx+si]
mov dl,0xd9
out dx,al
mov dl,0xd4
%endif
mov ax,0x0101
out dx,ax ; b Horizontal Displayed right 0x0101 1 0x0101 1
xchg ax,di
out dx,ax ; a Horizontal Total right 0x0c00 13 0x1900 26
xchg ax,di
xchg ax,bp
out dx,ax ; d Horizontal Displayed left 0x2801 40 0x5001 80
xchg ax,bp
mov ax,es
out dx,ax ; c Horizontal Sync Position left 0x2b02 43 0x5702 87
%endmacro
%assign i -1
%rep 202
scanline i,1
%assign i i+1
%endrep
; Scanline 201
mov ax,0x3800 ;0x7100
out dx,ax ; e Horizontal Total left 0x3800 57 0x7100 114
mov ax,0x2d02 ;0x5a02
out dx,ax ; f Horizontal Sync Position right 0x2d02 45 0x5a02 90
; mov ax,0x3d04 ; Vertical total
; out dx,ax
; mov ax,0x1707 ; Vertical sync position
; out dx,ax
mov sp,stackTop
; TODO: We are now free to do per-frame vertical-overscan stuff
; with no special timing requirements except:
; HLT before overscan is over
; Sound (if in use)
; mov bp,cs
; mov es,bp
; mov di,startAddresses
xor ax,ax
mov ds,ax
mov word[0x20],int8_field0
mov ax,cs
mov ds,ax
; inc word[frameCount]
; jnz noFrameCountCarry
; inc word[frameCount+2]
;noFrameCountCarry:
mov ax,[cs:adjustPeriod]
mov bx,[cs:lastAdjustPeriod]
mov [cs:lastAdjustPeriod],ax
sub ax,bx
add ax,224*76
mov [cs:patchDriftLow+1],al
mov [cs:patchDriftHigh+1],ah
patchDriftLow:
mov al,(224*76) & 0xff
out 0x40,al
patchDriftHigh:
mov al,(224*76) >> 8
out 0x40,al
mov dx,0x3d9
mov al,2
out dx,al
call doKeyboard
mov al,0x20
out 0x20,al
sti
hlt
int8_field0:
mov ax,cs
mov ds,ax
mov ss,ax
mov sp,startAddresses
mov dx,0x3d4
mov ax,0x0109 ; 2 scanlines per row
out dx,ax
mov bp,0x2801 ;0x5001 (left horizontal displayed = 40)
mov di,0x0c00 ;0x1900 (right horizontal total = 13)
mov ax,0x2b02 ;0x5702 (left horizontal sync position = 43)
mov si,sampleData
mov bx,rasterData-sampleData
mov es,ax
; Scanlines -1..201
%assign i -1
%rep 203
scanline i,0
%assign i i+1
%endrep
; Scanline 202
mov ax,0x3800 ;0x7100
out dx,ax ; e Horizontal Total left 0x3800 57 0x7100 114
mov ax,0x2d02 ;0x5a02
out dx,ax ; f Horizontal Sync Position right 0x2d02 45 0x5a02 90
mov ax,0x0009 ; 1 scanline per row
out dx,ax
; mov ax,0x3d04 ; Vertical total
; out dx,ax
; mov ax,0x1707 ; Vertical sync position
; out dx,ax
mov sp,stackTop
; TODO: We are now free to do per-frame vertical-overscan stuff
; with no special timing requirements except:
; HLT before overscan is over
; Sound (if in use)
mov bp,cs
mov es,bp
mov di,startAddresses
xor ax,ax
mov ds,ax
mov word[0x20],int8_isav1
; inc word[frameCount]
; jnz noFrameCountCarry
; inc word[frameCount+2]
;noFrameCountCarry:
mov al,(76) & 0xff
out 0x40,al
mov al,(76) >> 8
out 0x40,al
mov dx,0x3d9
mov al,1
out dx,al
; call doKeyboard
xor ax,ax
mov ds,ax
mov dx,0x3d4
mov al,0x20
out 0x20,al
sti
hlt
; jmp doneFrame
;restart:
; call startISAV
; lockstep 1
;; safeRefreshOff
;
; ; Mode
; ; 1 +HRES
; ; 2 +GRPH
; ; 4 +BW
; ; 8 +VIDEO ENABLE
; ; 0x10 +1BPP
; ; 0x20 +ENABLE BLINK
; mov dx,0x3d8
; mov al,0x1a ; 0x1b
; out dx,al
;
; ; Palette
; ; 1 +OVERSCAN B
; ; 2 +OVERSCAN G
; ; 4 +OVERSCAN R
; ; 8 +OVERSCAN I
; ; 0x10 +BACKGROUND I
; ; 0x20 +COLOR SEL
; inc dx
; mov al,0x0f
; out dx,al
;
; mov dl,0xd4
; mov ax,0x3800 ; Horizontal total 0x7100
; out dx,ax
; mov ax,0x2801 ; Horizontal displayed 0x5001
; out dx,ax
; mov ax,0x2d02 ; Horizontal sync position 0x5a02
; out dx,ax
; mov ax,0x0a03 ; Horizontal sync width 0x0f03
; out dx,ax
; mov ax,0x1f04 ; Vertical total
; out dx,ax
; mov ax,0x0005 ; Vertical total adjust
; out dx,ax
; mov ax,0x0106 ; Vertical displayed
; out dx,ax
; mov ax,0x0c07 ; Vertical sync position
; out dx,ax
; mov ax,0x0008 ; Interlace mode
; out dx,ax
; mov ax,0x0109 ; Maximum scanline address
; out dx,ax
; mov ax,0x060a
; out dx,ax
; mov ax,0x070b
; out dx,ax
; mov ax,0x000c
; out dx,ax
; inc ax
; out dx,ax
; mov ax,0x3f0e
; out dx,ax
; mov ax,0xff0f
; out dx,ax
; mov dl,0xda
; waitForNoVerticalSync
; waitForVerticalSync
;; waitForDisplayEnable
; mov ax,0x0104
; mov dl,0xd4
; out dx,ax
;
; writePIT16 0, 2, 2 ; Ensure IRQ0 pending
;
; xor ax,ax
; mov ds,ax
; mov word[0x20],interrupt8h0
; mov [0x22],cs
;
;; mov dl,0xd9
;; mov al,0x0e
;; out dx,al
;
; mov dl,0xda
; waitForDisplayDisable
; waitForDisplayEnable
;
;; mov dl,0xd9
;; mov al,0x0d
;; out dx,al
;
; cmp byte[cs:cgaCrtcPhase],1
; jne noSwitchPhase
; mov dl,0xd4
; mov ax,0x3900 ;0x7200
; out dx,ax
; mov dl,0xda
; waitForDisplayDisable
; waitForDisplayEnable
; mov dl,0xd4
; mov ax,0x3800 ;0x7100
; out dx,ax
; mov dl,0xda
; waitForDisplayDisable
; waitForDisplayEnable
;noSwitchPhase:
;
;; mov dl,0xd9
;; mov al,0x0c
;; out dx,al
;
; waitForDisplayDisable
; waitForDisplayEnable
;
;; mov dl,0xd9
;; mov al,1
;; out dx,al
;
;
; writePIT16 0, 2, 31
;
; sti
; hlt
;interrupt8h0:
;; mov al,2
;; out dx,al
;
; mov al,75 ; Now counting down from 31
; out 0x40,al
; mov al,0
; out 0x40,al
; mov word[0x20],interrupt8h1
; mov al,0x20
; out 0x20,al
; sti
; hlt
;
;interrupt8h1:
;; mov al,3
;; out dx,al
;; inc dx
;
; in al,dx ; Now counting down from 75
; test al,1
; jz .noInterruptChange ; jump if +DISPEN, finish if -DISPEN
; mov word[0x20],interrupt8h2
;.noInterruptChange:
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8h2:
;; dec dx
;; mov al,4
;; out dx,al
;
; mov ax,[cs:refreshPhase] ; We're still counting down from 75
; out 0x40,al
; mov al,ah
; out 0x40,al
; mov word[0x20],interrupt8h3
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8h3:
;; mov al,5
;; out dx,al
;
; mov word[0x20],interrupt8h4 ; We're still counting down from refreshPhase
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8h4:
;; mov al,6
;; out dx,al
;
; refreshOn 19 ; refreshPhase has happened, restart refresh
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
;
; mov dl,0xd4
; mov ax,0x3f04
; out dx,ax
;
; mov dl,0xda
; waitForNoVerticalSync
; waitForVerticalSync
;
; waitForDisplayEnable
;
; writePIT16 0, 2, 76*64 - 1 ; Start counting down after display enable starts
;
; mov word[0x20],interrupt8a
;
; sti
; hlt
;interrupt8a:
;; dec dx
;; mov al,7
;; out dx,al
;; inc dx
;
; in al,dx
; test al,1
; jz .noInterruptChange ; jump if +DISPEN, finish if -DISPEN
; mov word[0x20],interrupt8b
;.noInterruptChange:
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8b:
;; dec dx
;; mov al,8
;; out dx,al
;
; mov ax,[cs:adjustPeriod] ; We're still counting down from 76*64 - 1
; out 0x40,al
; mov al,ah
; out 0x40,al
; mov word[0x20],interrupt8c
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8c:
;; mov al,9
;; out dx,al
;
; mov ax,(76*262) & 0xff ; We're still counting down from adjustPeriod
; out 0x40,al
; mov al,(76*262) >> 8
; out 0x40,al
; cmp byte[cs:stableImage],0
; je .notStableImage
; mov word[0x20],interrupt8stable
; jmp .doneImageSelect
;.notStableImage:
; mov word[0x20],interrupt8
;.doneImageSelect:
; mov al,0x20
; out 0x20,al
; mov sp,stackTop
; sti
; hlt
;
;interrupt8:
;interrupt8stable:
; initCGA 0x0a
; mov dl,0xd9
; %rep 3800
; out dx,al
; inc ax
; %endrep
;interrupt8numbers:
; mov ax,cs
; mov ds,ax
; jmp endOfFrame
doKeyboard:
in al,0x60
xchg ax,bx
; Acknowledge the previous byte
port61high:
mov al,0xcf
out 0x61,al
port61low:
mov al,0x4f
out 0x61,al
cmp bl,0x4b ; left
je moveLeft
cmp bl,0x4d ; right
je moveRight
cmp bl,0x48 ; up
je moveUp
cmp bl,0x50 ; down
je moveDown
cmp bl,0x4a ; keypad-
je decreaseRefreshPhase
cmp bl,0x2c ; z
je decreaseRefreshPhase
cmp bl,0x4e ; keypad+
je increaseRefreshPhase
cmp bl,0x2d ; x
je increaseRefreshPhase
; cmp bl,0x39 ; space
; je switchCgaCrtcPhase
; cmp bl,0x1f ; s
; je switchImage
; cmp bl,0x31 ; n
; je toggleNumbersScreen
cmp bl,1 ; esc
je tearDown2
ret
tearDown2:
jmp tearDown
moveLeft:
dec word[adjustPeriod]
jmp doneFrame
moveRight:
inc word[adjustPeriod]
jmp doneFrame
moveUp:
sub word[adjustPeriod],76
jmp doneFrame
moveDown:
add word[adjustPeriod],76
jmp doneFrame
decreaseRefreshPhase:
dec word[refreshPhase]
cmp word[refreshPhase],64-1
jne .done
mov word[refreshPhase],64+18
.done:
jmp doneFrame
increaseRefreshPhase:
inc word[refreshPhase]
cmp word[refreshPhase],64+19
jne .done
mov word[refreshPhase],64+0
.done:
jmp doneFrame
;switchCgaCrtcPhase:
; xor byte[cgaCrtcPhase],1
; jmp doneFrame
;switchImage:
; xor byte[stableImage],1
; cmp byte[numbersMode],0
; jne .noCopyImageData
; call copyImageData
;.noCopyImageData:
; jmp doneFrame
;toggleNumbersScreen:
; xor byte[numbersMode],1
; cmp byte[numbersMode],0
; je leavingNumbersMode
;
; initCGA 9
; call copyImageData
;
; jmp doneFrame
;leavingNumbersMode:
; call copyImageData
doneFrame:
; mov ax,0xb000
; call printNumbers
%ifdef bin
; mov al,0xfc ; Enable IRQ0 (timer), disable all others
; out 0x21,al
mov ax,[cs:phase]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov ax,[cs:adjustPeriod]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov ax,[cs:refreshPhase]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
; mov ax,[cs:cgaCrtcPhase]
; outputHex
; mov al,13
; outputCharacter
; mov al,10
; outputCharacter
; mov al,0xfe ; Enable IRQ0 (timer), disable all others
; out 0x21,al
%endif
; cmp byte[numbersMode],0
; jne doNumbersMode
; Not numbers mode, update numbers on MDA only
; jmp restart
;doNumbersMode:
; mov ax,0xb800
; call printNumbers
; xor ax,ax
; mov ds,ax
; mov word[0x20],interrupt8numbers
ret
tearDown:
mov al,TIMER1 | LSB | MODE2 | BINARY
out 0x43,al
mov al,18
out 0x41,al ; Timer 1 rate
xor ax,ax
mov ds,ax
mov ax,[cs:originalInterrupt8]
mov [0x20],ax
mov ax,[cs:originalInterrupt8+2]
mov [0x22],ax
in al,0x61
and al,0xfc
out 0x61,al
mov ax,cs
mov ds,ax
mov al,[originalIMR]
out 0x21,al
writePIT16 0, 2, 0
mov ax,3
int 0x10
sti
mov ax,cs
mov ds,ax
mov al,[phase]
outputCharacter
; mov ax,19912
; mul word[frameCount]
; mov cx,dx
; mov ax,19912
; mul word[frameCount+2]
; add ax,cx
; adc dx,0
; mov cx,0x40
; mov ds,cx
; add [0x6c],ax
; adc [0x6e],dx
;dateLoop:
; cmp word[0x6c],0x18
; jb doneDateLoop
; cmp word[0x6e],0xb0
; jb doneDateLoop
; mov byte[0x70],1
; sub word[0x6c],0xb0
; sbb word[0x6e],0x18
; jmp dateLoop
;doneDateLoop:
exit:
mov ax,0x4c00
int 0x21
copyImageData:
mov ax,0xb800
mov es,ax
mov ax,cs
mov ds,ax
xor di,di
cld
; cmp byte[stableImage],0
; jne clearVRAM
; cmp byte[numbersMode],0
; jne clearVRAM
mov si,vramData
mov cx,4096+4080
rep movsw
ret
;clearVRAM:
; xor ax,ax
; mov cx,8192
; rep stosw
; ret
;printNybble:
; and al,0xf
; cmp al,10
; jge .letters
; add al,'0'
; jmp printCharacter
;.letters:
; add al,'A'-10
;
;printCharacter:
; mov ah,7
; stosw
; ret
;
;printHex:
; push ax
; mov al,ah
; mov cl,4
; shr al,cl
; call printNybble
; pop ax
; push ax
; mov al,ah
; call printNybble
; pop ax
; push ax
; mov cl,4
; shr al,cl
; call printNybble
; pop ax
; call printNybble
; ret
;
;printNumbers:
; mov es,ax
; xor di,di
; mov ax,[phase]
; call printNybble
; mov di,160
; mov ax,[adjustPeriod]
; call printHex
; mov di,320
; mov ax,[refreshPhase]
; call printHex
; mov di,480
; mov ax,[cgaCrtcPhase]
; call printNybble
; ret
;
;dummyInterrupt8:
; push ax
; mov al,0x20
; out 0x20,al
; pop ax
; iret
;
;doPrintCharacter:
; push ax
; push bx
; push cx
; push dx
; push si
; push di
; push bp
; mov dl,al
; mov ah,2
; int 0x21
; pop bp
; pop di
; pop si
; pop dx
; pop cx
; pop bx
; pop ax
; ret
; Returns the CGA to normal mode
stopISAV:
cli
xor ax,ax
mov ds,ax
mov ax,[cs:originalInterrupt8]
mov [8*4],ax
mov ax,[cs:originalInterrupt8+2]
mov [8*4+2],ax
mov al,0x34
out 0x43,al
mov al,0
out 0x40,al
out 0x40,al
sti
; Set the CGA back to a normal mode so we don't risk breaking anything
mov ax,3
int 0x10
ret
;frameCount: dw 0, 0
;oldInterrupt8: dw 0, 0
;imr: db 0
phase: dw 0
lastAdjustPeriod: dw 0x142a
adjustPeriod: dw 0x142a
refreshPhase: dw 0x0045
;cgaCrtcPhase: dw 0
;numbersMode: dw 0
;stableImage: dw 0
originalInterrupt8:
dw 0, 0
originalIMR:
db 0
timerCount:
dw 0
startAddresses:
times 405 dw 0
rasterData:
times 405 db 0x0f
sampleData:
times 405 db 38
data2:
times 5 dw 0
vramData:
incbin "..\..\..\..\Pictures\reenigne\cga2ntsc\mandala-4241838_203_out.dat"
;segment stack stack
times 128 dw 0
stackTop:
;0 is default
;
; 0- 1 broken sync
; 2- 4 ok (even lines = bank 0)
; 5-11 broken sync
;12-14 broken stability
;15-17 hardly anything, unstable
;18-20 broken sync
;21-25 hardly anything, unstable
;26-33 broken sync
;34-36 ok (even lines = bank 0)
;37-39 advance 1 character per scanline
;40-42 ok (even lines = bank 0)
;43-52 broken sync
;53-55 hardly anything, unstable
;56-56 broken sync
;57-61 hardly anything, unstable
;62-68 broken sync
;69-71 1 column, broken sync
;72-72 ok (even lines = bank 0)
;73-74 hardly anything, unstable
;75-
;142c odd lines
;Field 0: (102 VRAM lines used, 203 scanlines)
; 0
; 1
; ...
; 100
; 101
; 100
; ...
; 1
; 0
;
;Field 1: (101 VRAM lines used, 202 scanlines)
; 0.5
; 1.5
; ...
; 100.5
; 100.5
; ...
; 1.5
; 0.5
;
;Total 405 scanlines
; Frame structure
; hsync left on vsync start
; hsync right on vsync start
; hsync left on vsync end
; hsync right on vsync end
; field 1
; field 0
| 17.861164 | 174 | 0.601605 |
bbf150f8576c40757ad87094a65c949d7d641fe9 | 17,973 | asm | Assembly | ioq3/build/release-js-js/baseq3/ui/ui_options.asm | RawTechnique/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 1 | 2021-12-31T10:26:58.000Z | 2021-12-31T10:26:58.000Z | ioq3/build/release-js-js/baseq3/ui/ui_options.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 28 | 2019-03-05T20:45:07.000Z | 2019-03-05T20:45:57.000Z | ioq3/build/release-js-js/baseq3/ui/ui_options.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | null | null | null | code
proc Options_Event 8 0
ADDRFP4 4
INDIRI4
CNSTI4 3
EQI4 $70
ADDRGP4 $69
JUMPV
LABELV $70
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 10
LTI4 $72
ADDRLP4 0
INDIRI4
CNSTI4 14
GTI4 $72
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $80-40
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $80
address $75
address $76
address $77
address $78
address $79
code
LABELV $75
ADDRGP4 UI_GraphicsOptionsMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $76
ADDRGP4 UI_DisplayOptionsMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $77
ADDRGP4 UI_SoundOptionsMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $78
ADDRGP4 UI_NetworkOptionsMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $79
ADDRGP4 UI_PopMenu
CALLV
pop
LABELV $72
LABELV $73
LABELV $69
endproc Options_Event 8 0
export SystemConfig_Cache
proc SystemConfig_Cache 0 4
ADDRGP4 $83
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $84
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $85
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $86
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
LABELV $82
endproc SystemConfig_Cache 0 4
export Options_MenuInit
proc Options_MenuInit 3088 12
ADDRGP4 s_options
ARGP4
CNSTI4 0
ARGI4
CNSTU4 912
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRGP4 SystemConfig_Cache
CALLV
pop
ADDRGP4 s_options+276
CNSTI4 1
ASGNI4
ADDRLP4 4
ARGP4
ADDRGP4 trap_GetClientState
CALLV
pop
ADDRLP4 4
INDIRI4
CNSTI4 5
LTI4 $89
ADDRGP4 s_options+280
CNSTI4 0
ASGNI4
ADDRGP4 $90
JUMPV
LABELV $89
ADDRGP4 s_options+280
CNSTI4 1
ASGNI4
LABELV $90
ADDRGP4 s_options+288
CNSTI4 10
ASGNI4
ADDRGP4 s_options+288+44
CNSTU4 8
ASGNU4
ADDRGP4 s_options+288+12
CNSTI4 320
ASGNI4
ADDRGP4 s_options+288+16
CNSTI4 16
ASGNI4
ADDRGP4 s_options+288+60
ADDRGP4 $102
ASGNP4
ADDRGP4 s_options+288+68
ADDRGP4 color_white
ASGNP4
ADDRGP4 s_options+288+64
CNSTI4 1
ASGNI4
ADDRGP4 s_options+360
CNSTI4 6
ASGNI4
ADDRGP4 s_options+360+4
ADDRGP4 $83
ASGNP4
ADDRGP4 s_options+360+44
CNSTU4 16384
ASGNU4
ADDRGP4 s_options+360+12
CNSTI4 8
ASGNI4
ADDRGP4 s_options+360+16
CNSTI4 76
ASGNI4
ADDRGP4 s_options+360+76
CNSTI4 256
ASGNI4
ADDRGP4 s_options+360+80
CNSTI4 334
ASGNI4
ADDRGP4 s_options+448
CNSTI4 6
ASGNI4
ADDRGP4 s_options+448+4
ADDRGP4 $84
ASGNP4
ADDRGP4 s_options+448+44
CNSTU4 16384
ASGNU4
ADDRGP4 s_options+448+12
CNSTI4 376
ASGNI4
ADDRGP4 s_options+448+16
CNSTI4 76
ASGNI4
ADDRGP4 s_options+448+76
CNSTI4 256
ASGNI4
ADDRGP4 s_options+448+80
CNSTI4 334
ASGNI4
ADDRLP4 0
CNSTI4 168
ASGNI4
ADDRGP4 s_options+536
CNSTI4 9
ASGNI4
ADDRGP4 s_options+536+44
CNSTU4 264
ASGNU4
ADDRGP4 s_options+536+48
ADDRGP4 Options_Event
ASGNP4
ADDRGP4 s_options+536+8
CNSTI4 10
ASGNI4
ADDRGP4 s_options+536+12
CNSTI4 320
ASGNI4
ADDRGP4 s_options+536+16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRGP4 s_options+536+60
ADDRGP4 $146
ASGNP4
ADDRGP4 s_options+536+68
ADDRGP4 color_red
ASGNP4
ADDRGP4 s_options+536+64
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 34
ADDI4
ASGNI4
ADDRGP4 s_options+608
CNSTI4 9
ASGNI4
ADDRGP4 s_options+608+44
CNSTU4 264
ASGNU4
ADDRGP4 s_options+608+48
ADDRGP4 Options_Event
ASGNP4
ADDRGP4 s_options+608+8
CNSTI4 11
ASGNI4
ADDRGP4 s_options+608+12
CNSTI4 320
ASGNI4
ADDRGP4 s_options+608+16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRGP4 s_options+608+60
ADDRGP4 $164
ASGNP4
ADDRGP4 s_options+608+68
ADDRGP4 color_red
ASGNP4
ADDRGP4 s_options+608+64
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 34
ADDI4
ASGNI4
ADDRGP4 s_options+680
CNSTI4 9
ASGNI4
ADDRGP4 s_options+680+44
CNSTU4 264
ASGNU4
ADDRGP4 s_options+680+48
ADDRGP4 Options_Event
ASGNP4
ADDRGP4 s_options+680+8
CNSTI4 12
ASGNI4
ADDRGP4 s_options+680+12
CNSTI4 320
ASGNI4
ADDRGP4 s_options+680+16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRGP4 s_options+680+60
ADDRGP4 $182
ASGNP4
ADDRGP4 s_options+680+68
ADDRGP4 color_red
ASGNP4
ADDRGP4 s_options+680+64
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 34
ADDI4
ASGNI4
ADDRGP4 s_options+752
CNSTI4 9
ASGNI4
ADDRGP4 s_options+752+44
CNSTU4 264
ASGNU4
ADDRGP4 s_options+752+48
ADDRGP4 Options_Event
ASGNP4
ADDRGP4 s_options+752+8
CNSTI4 13
ASGNI4
ADDRGP4 s_options+752+12
CNSTI4 320
ASGNI4
ADDRGP4 s_options+752+16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRGP4 s_options+752+60
ADDRGP4 $200
ASGNP4
ADDRGP4 s_options+752+68
ADDRGP4 color_red
ASGNP4
ADDRGP4 s_options+752+64
CNSTI4 1
ASGNI4
ADDRGP4 s_options+824
CNSTI4 6
ASGNI4
ADDRGP4 s_options+824+4
ADDRGP4 $85
ASGNP4
ADDRGP4 s_options+824+44
CNSTU4 260
ASGNU4
ADDRGP4 s_options+824+48
ADDRGP4 Options_Event
ASGNP4
ADDRGP4 s_options+824+8
CNSTI4 14
ASGNI4
ADDRGP4 s_options+824+12
CNSTI4 0
ASGNI4
ADDRGP4 s_options+824+16
CNSTI4 416
ASGNI4
ADDRGP4 s_options+824+76
CNSTI4 128
ASGNI4
ADDRGP4 s_options+824+80
CNSTI4 64
ASGNI4
ADDRGP4 s_options+824+60
ADDRGP4 $86
ASGNP4
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+288
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+360
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+448
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+536
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+608
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+680
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+752
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 s_options+824
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
LABELV $87
endproc Options_MenuInit 3088 12
export UI_SystemConfigMenu
proc UI_SystemConfigMenu 0 4
ADDRGP4 Options_MenuInit
CALLV
pop
ADDRGP4 s_options
ARGP4
ADDRGP4 UI_PushMenu
CALLV
pop
LABELV $232
endproc UI_SystemConfigMenu 0 4
bss
align 4
LABELV s_options
skip 912
import UI_RankStatusMenu
import RankStatus_Cache
import UI_SignupMenu
import Signup_Cache
import UI_LoginMenu
import Login_Cache
import UI_RankingsMenu
import Rankings_Cache
import Rankings_DrawPassword
import Rankings_DrawName
import Rankings_DrawText
import UI_InitGameinfo
import UI_SPUnlockMedals_f
import UI_SPUnlock_f
import UI_GetAwardLevel
import UI_LogAwardData
import UI_NewGame
import UI_GetCurrentGame
import UI_CanShowTierVideo
import UI_ShowTierVideo
import UI_TierCompleted
import UI_SetBestScore
import UI_GetBestScore
import UI_GetNumBots
import UI_GetBotInfoByName
import UI_GetBotInfoByNumber
import UI_GetNumSPTiers
import UI_GetNumSPArenas
import UI_GetNumArenas
import UI_GetSpecialArenaInfo
import UI_GetArenaInfoByMap
import UI_GetArenaInfoByNumber
import UI_NetworkOptionsMenu
import UI_NetworkOptionsMenu_Cache
import UI_SoundOptionsMenu
import UI_SoundOptionsMenu_Cache
import UI_DisplayOptionsMenu
import UI_DisplayOptionsMenu_Cache
import UI_SaveConfigMenu
import UI_SaveConfigMenu_Cache
import UI_LoadConfigMenu
import UI_LoadConfig_Cache
import UI_TeamOrdersMenu_Cache
import UI_TeamOrdersMenu_f
import UI_TeamOrdersMenu
import UI_RemoveBotsMenu
import UI_RemoveBots_Cache
import UI_AddBotsMenu
import UI_AddBots_Cache
import trap_SetPbClStatus
import trap_VerifyCDKey
import trap_SetCDKey
import trap_GetCDKey
import trap_MemoryRemaining
import trap_LAN_GetPingInfo
import trap_LAN_GetPing
import trap_LAN_ClearPing
import trap_LAN_ServerStatus
import trap_LAN_GetPingQueueCount
import trap_LAN_GetServerInfo
import trap_LAN_GetServerAddressString
import trap_LAN_GetServerCount
import trap_GetConfigString
import trap_GetGlconfig
import trap_GetClientState
import trap_GetClipboardData
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_ClearStates
import trap_Key_SetOverstrikeMode
import trap_Key_GetOverstrikeMode
import trap_Key_IsDown
import trap_Key_SetBinding
import trap_Key_GetBindingBuf
import trap_Key_KeynumToStringBuf
import trap_S_RegisterSound
import trap_S_StartLocalSound
import trap_CM_LerpTag
import trap_UpdateScreen
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_AddLightToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_R_RegisterShaderNoMip
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Cmd_ExecuteText
import trap_Argv
import trap_Argc
import trap_Cvar_InfoStringBuffer
import trap_Cvar_Create
import trap_Cvar_Reset
import trap_Cvar_SetValue
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import UI_SPSkillMenu_Cache
import UI_SPSkillMenu
import UI_SPPostgameMenu_f
import UI_SPPostgameMenu_Cache
import UI_SPArena_Start
import UI_SPLevelMenu_ReInit
import UI_SPLevelMenu_f
import UI_SPLevelMenu
import UI_SPLevelMenu_Cache
import uis
import m_entersound
import UI_StartDemoLoop
import UI_Cvar_VariableString
import UI_Argv
import UI_ForceMenuOff
import UI_PopMenu
import UI_PushMenu
import UI_SetActiveMenu
import UI_IsFullscreen
import UI_DrawTextBox
import UI_AdjustFrom640
import UI_CursorInRect
import UI_DrawChar
import UI_DrawString
import UI_ProportionalStringWidth
import UI_DrawProportionalString_AutoWrapped
import UI_DrawProportionalString
import UI_ProportionalSizeScale
import UI_DrawBannerString
import UI_LerpColor
import UI_SetColor
import UI_UpdateScreen
import UI_DrawRect
import UI_FillRect
import UI_DrawHandlePic
import UI_DrawNamedPic
import UI_ClampCvar
import UI_ConsoleCommand
import UI_Refresh
import UI_MouseEvent
import UI_KeyEvent
import UI_Shutdown
import UI_Init
import UI_RegisterClientModelname
import UI_PlayerInfo_SetInfo
import UI_PlayerInfo_SetModel
import UI_DrawPlayer
import DriverInfo_Cache
import GraphicsOptions_Cache
import UI_GraphicsOptionsMenu
import ServerInfo_Cache
import UI_ServerInfoMenu
import UI_BotSelectMenu_Cache
import UI_BotSelectMenu
import ServerOptions_Cache
import StartServer_Cache
import UI_StartServerMenu
import ArenaServers_Cache
import UI_ArenaServersMenu
import SpecifyServer_Cache
import UI_SpecifyServerMenu
import SpecifyLeague_Cache
import UI_SpecifyLeagueMenu
import Preferences_Cache
import UI_PreferencesMenu
import PlayerSettings_Cache
import UI_PlayerSettingsMenu
import PlayerModel_Cache
import UI_PlayerModelMenu
import UI_CDKeyMenu_f
import UI_CDKeyMenu_Cache
import UI_CDKeyMenu
import UI_ModsMenu_Cache
import UI_ModsMenu
import UI_CinematicsMenu_Cache
import UI_CinematicsMenu_f
import UI_CinematicsMenu
import Demos_Cache
import UI_DemosMenu
import Controls_Cache
import UI_ControlsMenu
import UI_DrawConnectScreen
import TeamMain_Cache
import UI_TeamMainMenu
import UI_SetupMenu
import UI_SetupMenu_Cache
import UI_Message
import UI_ConfirmMenu_Style
import UI_ConfirmMenu
import ConfirmMenu_Cache
import UI_InGameMenu
import InGame_Cache
import UI_CreditMenu
import UI_UpdateCvars
import UI_RegisterCvars
import UI_MainMenu
import MainMenu_Cache
import MenuField_Key
import MenuField_Draw
import MenuField_Init
import MField_Draw
import MField_CharEvent
import MField_KeyDownEvent
import MField_Clear
import ui_medalSounds
import ui_medalPicNames
import ui_medalNames
import text_color_highlight
import text_color_normal
import text_color_disabled
import listbar_color
import list_color
import name_color
import color_dim
import color_red
import color_orange
import color_blue
import color_yellow
import color_white
import color_black
import menu_dim_color
import menu_black_color
import menu_red_color
import menu_highlight_color
import menu_dark_color
import menu_grayed_color
import menu_text_color
import weaponChangeSound
import menu_null_sound
import menu_buzz_sound
import menu_out_sound
import menu_move_sound
import menu_in_sound
import ScrollList_Key
import ScrollList_Draw
import Bitmap_Draw
import Bitmap_Init
import Menu_DefaultKey
import Menu_SetCursorToItem
import Menu_SetCursor
import Menu_ActivateItem
import Menu_ItemAtCursor
import Menu_Draw
import Menu_AdjustCursor
import Menu_AddItem
import Menu_Focus
import Menu_Cache
import ui_ioq3
import ui_cdkeychecked
import ui_cdkey
import ui_server16
import ui_server15
import ui_server14
import ui_server13
import ui_server12
import ui_server11
import ui_server10
import ui_server9
import ui_server8
import ui_server7
import ui_server6
import ui_server5
import ui_server4
import ui_server3
import ui_server2
import ui_server1
import ui_marks
import ui_drawCrosshairNames
import ui_drawCrosshair
import ui_brassTime
import ui_browserShowEmpty
import ui_browserShowFull
import ui_browserSortKey
import ui_browserGameType
import ui_browserMaster
import ui_spSelection
import ui_spSkill
import ui_spVideos
import ui_spAwards
import ui_spScores5
import ui_spScores4
import ui_spScores3
import ui_spScores2
import ui_spScores1
import ui_botsFile
import ui_arenasFile
import ui_ctf_friendly
import ui_ctf_timelimit
import ui_ctf_capturelimit
import ui_team_friendly
import ui_team_timelimit
import ui_team_fraglimit
import ui_tourney_timelimit
import ui_tourney_fraglimit
import ui_ffa_timelimit
import ui_ffa_fraglimit
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $200
byte 1 78
byte 1 69
byte 1 84
byte 1 87
byte 1 79
byte 1 82
byte 1 75
byte 1 0
align 1
LABELV $182
byte 1 83
byte 1 79
byte 1 85
byte 1 78
byte 1 68
byte 1 0
align 1
LABELV $164
byte 1 68
byte 1 73
byte 1 83
byte 1 80
byte 1 76
byte 1 65
byte 1 89
byte 1 0
align 1
LABELV $146
byte 1 71
byte 1 82
byte 1 65
byte 1 80
byte 1 72
byte 1 73
byte 1 67
byte 1 83
byte 1 0
align 1
LABELV $102
byte 1 83
byte 1 89
byte 1 83
byte 1 84
byte 1 69
byte 1 77
byte 1 32
byte 1 83
byte 1 69
byte 1 84
byte 1 85
byte 1 80
byte 1 0
align 1
LABELV $86
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $85
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $84
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 102
byte 1 114
byte 1 97
byte 1 109
byte 1 101
byte 1 49
byte 1 95
byte 1 114
byte 1 0
align 1
LABELV $83
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 102
byte 1 114
byte 1 97
byte 1 109
byte 1 101
byte 1 50
byte 1 95
byte 1 108
byte 1 0
| 17.084601 | 45 | 0.875146 |
5a6b24c3d4f586ecbfd385cb5df08f7263bd1d66 | 5,220 | asm | Assembly | graphicscard.asm | peter-mount/teletextc64 | e06b3dbeae10b21ae31d656601dcfe5cdb0e071e | [
"Apache-2.0"
] | 1 | 2021-04-06T12:21:35.000Z | 2021-04-06T12:21:35.000Z | graphicscard.asm | peter-mount/teletextc64 | e06b3dbeae10b21ae31d656601dcfe5cdb0e071e | [
"Apache-2.0"
] | null | null | null | graphicscard.asm | peter-mount/teletextc64 | e06b3dbeae10b21ae31d656601dcfe5cdb0e071e | [
"Apache-2.0"
] | null | null | null | ; **********************************************************************
; Splash loading page
; 1K for holding screen chars for refresh
;
; Copyright 2021 Peter Mount
;
; 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.
; **********************************************************************
CPU 0 ; 6502
start = &0400 ; Base of Teletext screen
ORG start-2 ; Start 2 bytes earlier so we can inject the load address for the prg file format
GUARD start+(25*40) ; Guard against going over teletext screen size
EQUW start ; Load address 0400 in prg file format
; Each line must be 40 bytes long
; A usual thing in teletext, a status line & double height text as a banner
EQUS 134, "Project Area51 ",130,"v0.01"
EQUS 132, 157, 135, 141, " Teletext ASCII Graphics Mode "
EQUS 132, 157, 135, 141, " Teletext ASCII Graphics Mode "
EQUS " "
EQUS " 0 1 2 3 4 5 6 7 8 9 A B C D E F "
EQUS " 2x ", 151, &20, &20, &21, &20, &22, &20, &23, &20, &24, &20, &25, &20, &26, &20, &27, &20, &28, &20, &29, &20, &2a, &20, &2b, &20, &2c, &20, &2d, &20, &2e, &20, &2f, " "
EQUS " 3x ", 151, &30, &20, &31, &20, &32, &20, &33, &20, &34, &20, &35, &20, &36, &20, &37, &20, &38, &20, &39, &20, &3a, &20, &3b, &20, &3c, &20, &3d, &20, &3e, &20, &3f, " "
EQUS " 4x ", 151, &40, &20, &41, &20, &42, &20, &43, &20, &44, &20, &45, &20, &46, &20, &47, &20, &48, &20, &49, &20, &4a, &20, &4b, &20, &4c, &20, &4d, &20, &4e, &20, &4f, " "
EQUS " 5x ", 151, &50, &20, &51, &20, &52, &20, &53, &20, &54, &20, &55, &20, &56, &20, &57, &20, &58, &20, &59, &20, &5a, &20, &5b, &20, &5c, &20, &5d, &20, &5e, &20, &5f, " "
EQUS " 6x ", 151, &60, &20, &61, &20, &62, &20, &63, &20, &64, &20, &65, &20, &66, &20, &67, &20, &68, &20, &69, &20, &6a, &20, &6b, &20, &6c, &20, &6d, &20, &6e, &20, &6f, " "
EQUS " 7x ", 151, &70, &20, &71, &20, &72, &20, &73, &20, &74, &20, &75, &20, &76, &20, &77, &20, &78, &20, &79, &20, &7a, &20, &7b, &20, &7c, &20, &7d, &20, &7e, &20, &7f, " "
EQUS " Ax", 151, &20, &a0, &20, &a1, &20, &a2, &20, &a3, &20, &a4, &20, &a5, &20, &a6, &20, &a7, &20, &a8, &20, &a9, &20, &aa, &20, &ab, &20, &ac, &20, &ad, &20, &ae, &20, &af, " "
EQUS " Bx", 151, &20, &b0, &20, &b1, &20, &b2, &20, &b3, &20, &b4, &20, &b5, &20, &b6, &20, &b7, &20, &b8, &20, &b9, &20, &ba, &20, &bb, &20, &bc, &20, &bd, &20, &be, &20, &bf, " "
EQUS " Cx", 151, &20, &c0, &20, &c1, &20, &c2, &20, &c3, &20, &c4, &20, &c5, &20, &c6, &20, &c7, &20, &c8, &20, &c9, &20, &ca, &20, &cb, &20, &cc, &20, &cd, &20, &ce, &20, &cf, " "
EQUS " Dx", 151, &20, &d0, &20, &d1, &20, &d2, &20, &d3, &20, &d4, &20, &d5, &20, &d6, &20, &d7, &20, &d8, &20, &d9, &20, &da, &20, &db, &20, &dc, &20, &dd, &20, &de, &20, &df, " "
EQUS " Ex", 151, &20, &e0, &20, &e1, &20, &e2, &20, &e3, &20, &e4, &20, &e5, &20, &e6, &20, &e7, &20, &e8, &20, &e9, &20, &ea, &20, &eb, &20, &ec, &20, &ed, &20, &ee, &20, &ef, " "
EQUS " Fx", 151, &20, &f0, &20, &f1, &20, &f2, &20, &f3, &20, &f4, &20, &f5, &20, &f6, &20, &f7, &20, &f8, &20, &f9, &20, &fa, &20, &fb, &20, &fc, &20, &fd, &20, &fe, &20, &ff, " "
EQUS " Ax", 151, 154, &a0, &20, &a1, &20, &a2, &20, &a3, &20, &a4, &20, &a5, &20, &a6, &20, &a7, &20, &a8, &20, &a9, &20, &aa, &20, &ab, &20, &ac, &20, &ad, &20, &ae, &20, &af, " "
EQUS " Bx", 151, 154, &b0, &20, &b1, &20, &b2, &20, &b3, &20, &b4, &20, &b5, &20, &b6, &20, &b7, &20, &b8, &20, &b9, &20, &ba, &20, &bb, &20, &bc, &20, &bd, &20, &be, &20, &bf, " "
EQUS " Cx", 151, 154, &c0, &20, &c1, &20, &c2, &20, &c3, &20, &c4, &20, &c5, &20, &c6, &20, &c7, &20, &c8, &20, &c9, &20, &ca, &20, &cb, &20, &cc, &20, &cd, &20, &ce, &20, &cf, " "
EQUS " Dx", 151, 154, &d0, &20, &d1, &20, &d2, &20, &d3, &20, &d4, &20, &d5, &20, &d6, &20, &d7, &20, &d8, &20, &d9, &20, &da, &20, &db, &20, &dc, &20, &dd, &20, &de, &20, &df, " "
EQUS " Ex", 151, 154, &e0, &20, &e1, &20, &e2, &20, &e3, &20, &e4, &20, &e5, &20, &e6, &20, &e7, &20, &e8, &20, &e9, &20, &ea, &20, &eb, &20, &ec, &20, &ed, &20, &ee, &20, &ef, " "
EQUS " Fx", 151, 154, &f0, &20, &f1, &20, &f2, &20, &f3, &20, &f4, &20, &f5, &20, &f6, &20, &f7, &20, &f8, &20, &f9, &20, &fa, &20, &fb, &20, &fc, &20, &fd, &20, &fe, &20, &ff, " "
EQUS " "
; Bottom "status" line, used for fast text nav etc.
; Here a (C) on bottom left & url on right to test we
; show the bottom of the screen correctly
EQUS "(C) 2021 Peter Mount Area51.dev"
.end
SAVE "graphicscard.prg", start-2, end
| 88.474576 | 187 | 0.456513 |
64d50fd36bc0137e2693b5c9270b1d4d4c31c9f5 | 1,325 | asm | Assembly | tests/z80/op_IX_BIT_DDCB.asm | cizo2000/sjasmplus | 615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4 | [
"BSD-3-Clause"
] | 220 | 2016-10-22T19:44:39.000Z | 2022-03-29T20:57:04.000Z | tests/z80/op_IX_BIT_DDCB.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 153 | 2018-05-07T10:31:23.000Z | 2022-03-30T04:35:59.000Z | tests/z80/op_IX_BIT_DDCB.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 51 | 2016-05-12T21:27:36.000Z | 2022-03-27T15:16:16.000Z | OUTPUT "op_IX_BIT_DDCB.bin"
;;; generate shift instructions: #DDCBFF00 .. #DDCBFF3F ("ix-1" = FF index byte)
LUA ALLPASS
instructions = { 'rlc', 'rrc', 'rl', 'rr', 'sla', 'sra', 'sli', 'srl' }
registers = { '(ix-1),b', '(ix-1),c', '(ix-1),d', '(ix-1),e', '(ix-1),h', '(ix-1),l', '(ix-1)', '(ix-1),a' }
for ii = 1, #instructions do
for rr = 1, #registers do
instruction = instructions[ii]..' '..registers[rr]
_pc(instruction)
end
end
ENDLUA
;;; generate `bit` instructions: #DDCBFF46 .. #DDCBFF7E (two: {#x6, #xE})
LUA ALLPASS
for bb = 0, 7 do
instruction = 'bit '..bb..',(ix-1)'
_pc(instruction)
end
ENDLUA
;;; generate `res` + `set` instructions: #DDCB1180 .. #DDCB11FF ("ix+17" = 11 index byte)
LUA ALLPASS
instructions = { 'res', 'set' }
registers = { '(ix+17),b', '(ix+17),c', '(ix+17),d', '(ix+17),e', '(ix+17),h', '(ix+17),l', '(ix+17)', '(ix+17),a' }
for ii = 1, #instructions do
for bb = 0, 7 do
for rr = 1, #registers do
instruction = instructions[ii]..' '..bb..','..registers[rr]
_pc(instruction)
end
end
end
ENDLUA
| 36.805556 | 124 | 0.463396 |
b92a229aa37ce1675fe22938b02e1abb70aabe9b | 73 | asm | Assembly | gfx/pokemon/vaporeon/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/vaporeon/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/vaporeon/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | frame 0, 04
setrepeat 3
frame 1, 10
frame 2, 10
dorepeat 2
endanim
| 10.428571 | 12 | 0.684932 |
db42ca67d136b22b64c38d8677770bda4d853fec | 996 | asm | Assembly | programs/oeis/135/A135037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/135/A135037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/135/A135037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A135037: Sums of the products of n consecutive triples of numbers.
; 0,60,396,1386,3570,7650,14490,25116,40716,62640,92400,131670,182286,246246,325710,423000,540600,681156,847476,1042530,1269450,1531530,1832226,2175156,2564100,3003000,3495960,4047246,4661286,5342670,6096150,6926640,7839216,8839116,9931740,11122650,12417570,13822386,15343146,16986060,18757500,20664000,22712256,24909126,27261630,29776950,32462430,35325576,38374056,41615700,45058500,48710610,52580346,56676186,61006770,65580900,70407540,75495816,80855016,86494590,92424150,98653470,105192486,112051296,119240160,126769500,134649900,142892106,151507026,160505730,169899450,179699580,189917676,200565456,211654800,223197750,235206510,247693446,260671086,274152120,288149400,302675940,317744916,333369666,349563690,366340650,383714370,401698836,420308196,439556760,459459000,480029550,501283206,523234926,545899830,569293200,593430480,618327276,643999356,670462650
mul $0,3
add $0,3
bin $0,2
sub $0,1
bin $0,2
div $0,9
mul $0,6
| 90.545455 | 862 | 0.853414 |
b0709f8ffba90e2469f80481c2add724619c726b | 8,563 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_1946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_1946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_1946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x3d16, %r8
nop
inc %r10
movb $0x61, (%r8)
nop
nop
xor %r13, %r13
lea addresses_D_ht+0x1725e, %rsi
lea addresses_WC_ht+0xda16, %rdi
xor %r15, %r15
mov $7, %rcx
rep movsw
nop
lfence
lea addresses_WT_ht+0xfc16, %rdx
nop
nop
sub %rsi, %rsi
movl $0x61626364, (%rdx)
nop
cmp $8245, %r8
lea addresses_WC_ht+0x14c16, %rsi
lea addresses_D_ht+0x6a16, %rdi
cmp %rdx, %rdx
mov $94, %rcx
rep movsw
nop
nop
add $9879, %r10
lea addresses_WT_ht+0x8616, %rsi
lea addresses_WC_ht+0x16c56, %rdi
nop
nop
nop
nop
nop
dec %rdx
mov $57, %rcx
rep movsb
sub %r8, %r8
lea addresses_WT_ht+0x93be, %rsi
lea addresses_D_ht+0x1c216, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $29815, %r8
mov $20, %rcx
rep movsw
mfence
lea addresses_WT_ht+0xaa96, %r8
nop
and %rdi, %rdi
movups (%r8), %xmm2
vpextrq $0, %xmm2, %r15
nop
nop
nop
nop
add %r10, %r10
lea addresses_WC_ht+0xf616, %r8
nop
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
vmovups %ymm7, (%r8)
nop
cmp %r13, %r13
lea addresses_normal_ht+0x9896, %rsi
lea addresses_UC_ht+0xce16, %rdi
nop
nop
nop
nop
nop
dec %r15
mov $43, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %rdx
lea addresses_A_ht+0x16c96, %r15
clflush (%r15)
nop
nop
nop
xor %r13, %r13
mov $0x6162636465666768, %r8
movq %r8, %xmm5
movups %xmm5, (%r15)
cmp %r15, %r15
lea addresses_D_ht+0x57e6, %r8
nop
nop
and %rsi, %rsi
movb (%r8), %cl
nop
nop
nop
nop
nop
sub $50893, %rsi
lea addresses_WT_ht+0xb516, %r8
nop
xor $6633, %rcx
movb (%r8), %r13b
nop
nop
nop
and %rcx, %rcx
lea addresses_normal_ht+0x19516, %rsi
lea addresses_WC_ht+0x1b5c0, %rdi
nop
nop
nop
add %r10, %r10
mov $66, %rcx
rep movsw
nop
nop
xor $8532, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %r9
push %rcx
push %rdx
push %rsi
// Store
lea addresses_normal+0x10416, %rdx
nop
nop
nop
and $47631, %r14
mov $0x5152535455565758, %rsi
movq %rsi, (%rdx)
nop
nop
nop
nop
nop
xor %r12, %r12
// Load
lea addresses_WC+0x3016, %r12
nop
nop
nop
nop
nop
cmp $10497, %rcx
mov (%r12), %r15
sub $34889, %r12
// Store
lea addresses_WC+0x168ca, %rsi
cmp $461, %r9
mov $0x5152535455565758, %rcx
movq %rcx, (%rsi)
nop
nop
nop
xor $12092, %rdx
// Store
mov $0x57355700000004f6, %rdx
nop
nop
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %r12
movq %r12, %xmm7
movups %xmm7, (%rdx)
nop
nop
add %r12, %r12
// Store
lea addresses_WT+0xc966, %r15
clflush (%r15)
nop
sub $51412, %rdx
movw $0x5152, (%r15)
nop
nop
dec %rcx
// Faulty Load
mov $0x48794f0000000e16, %r9
nop
nop
sub %r15, %r15
mov (%r9), %r14
lea oracles, %r12
and $0xff, %r14
shlq $12, %r14
mov (%r12,%r14,1), %r14
pop %rsi
pop %rdx
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_NC', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 32.191729 | 2,999 | 0.654794 |
fffa3551769e55b43585d945fd12403cc209443d | 1,413 | asm | Assembly | KongMacros.asm | HonkeyKong/libKong | acf23cb015d3004f6bab63681f0cd6a86716e875 | [
"MIT"
] | 1 | 2018-02-10T20:55:28.000Z | 2018-02-10T20:55:28.000Z | KongMacros.asm | HonkeyKong/libKong | acf23cb015d3004f6bab63681f0cd6a86716e875 | [
"MIT"
] | null | null | null | KongMacros.asm | HonkeyKong/libKong | acf23cb015d3004f6bab63681f0cd6a86716e875 | [
"MIT"
] | null | null | null | ; PPU Macros
; This is just a simple way to send configuration info
; to the PPU, best used in combination with the aliases
; defined for configuration in KongPPU. Just OR them
; together to flip the necessary bits for your setup.
.macro ConfigurePPU ; `ConfigurePPU configBits
JSR WaitVBlank
LDA #_1
STA PPUControl1
.macend
; Background Palette loading macro
.macro LoadBGPalette ; `LoadBGPalette address
`setPPU BGPalette
LDX #$00
_BGpaletteLoop:
LDA _1, x ;load palette byte
STA VRAMIO ;write to PPU
INX ;set index to next byte
CPX #$10
BNE _BGpaletteLoop ;if x = $10, 16 bytes copied, all done
.macend
; Sprite Palette loading macro
.macro LoadSpritePalette ; `LoadSpritePalette address
`setPPU SpritePalette
LDX #$00
_SprpaletteLoop:
LDA _1, x ;load palette byte
STA VRAMIO ;write to PPU
INX ;set index to next byte
CPX #$10
BNE _SprpaletteLoop ;if x = $10, 16 bytes copied, all done
.macend
; This macro sets the 16-bit I/O address for the PPU.
.macro setPPU ; `setPPU address
LDA PPUStatus ; read PPU status to reset the high/low latch
LDA #>_1
STA VRAMAddr ; write the high byte of nametable address
LDA #<_1
STA VRAMAddr ; write the low byte of nametable address
.macend
| 31.4 | 70 | 0.644728 |
c690060db57ff27d3d8401ed0e01440dcd4a4b96 | 106 | asm | Assembly | day22/app/crack6.asm | itiB/hariboteOS_30days | f04fccc0f394f3f1687c547e65658af429898f48 | [
"MIT"
] | 1 | 2020-02-16T05:07:34.000Z | 2020-02-16T05:07:34.000Z | day23/app/crack6.asm | itiB/hariboteOS_30days | f04fccc0f394f3f1687c547e65658af429898f48 | [
"MIT"
] | null | null | null | day23/app/crack6.asm | itiB/hariboteOS_30days | f04fccc0f394f3f1687c547e65658af429898f48 | [
"MIT"
] | null | null | null | [CPU 486]
[BITS 32]
MOV EDX, 123456789
INT 0x40
MOV EDX, 4
INT 0x40 | 15.142857 | 27 | 0.45283 |
d9a901c3ffe2f3d4816bba13fd8260a668e7c4f6 | 7,671 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_312.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_312.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_312.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x9c18, %r14
nop
nop
nop
nop
xor %rbx, %rbx
movups (%r14), %xmm0
vpextrq $1, %xmm0, %r10
nop
nop
nop
nop
xor $28887, %rsi
lea addresses_WC_ht+0x1dd88, %rbp
nop
nop
and $59800, %rax
movw $0x6162, (%rbp)
nop
nop
nop
nop
nop
inc %rax
lea addresses_D_ht+0xec18, %rsi
lea addresses_WT_ht+0xd018, %rdi
nop
nop
add %rax, %rax
mov $73, %rcx
rep movsw
nop
nop
xor %rsi, %rsi
lea addresses_WT_ht+0xfa18, %r10
nop
nop
nop
nop
xor %rdi, %rdi
mov (%r10), %ax
nop
nop
nop
add $39904, %rcx
lea addresses_normal_ht+0xda18, %rsi
lea addresses_UC_ht+0x13418, %rdi
nop
nop
and $37695, %rax
mov $5, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r14
lea addresses_A_ht+0x414b, %rsi
nop
nop
nop
nop
nop
and $54005, %r10
movw $0x6162, (%rsi)
nop
nop
nop
nop
inc %rcx
lea addresses_UC_ht+0x14e98, %rsi
nop
nop
nop
nop
nop
and %rdi, %rdi
movw $0x6162, (%rsi)
nop
nop
nop
xor $49642, %rsi
lea addresses_WC_ht+0x18a8, %rcx
nop
nop
nop
nop
cmp %r14, %r14
mov (%rcx), %r10d
nop
nop
cmp %rcx, %rcx
lea addresses_UC_ht+0x9018, %rcx
sub %rax, %rax
movups (%rcx), %xmm6
vpextrq $1, %xmm6, %rdi
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_A_ht+0x6d18, %r14
clflush (%r14)
add $13509, %r10
mov $0x6162636465666768, %rbx
movq %rbx, (%r14)
nop
nop
nop
nop
inc %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_D+0x12e98, %r9
nop
nop
nop
cmp %rbp, %rbp
mov (%r9), %r10
nop
nop
nop
dec %r11
// Store
mov $0x18, %r13
nop
nop
and %rax, %rax
movw $0x5152, (%r13)
nop
nop
cmp %rdx, %rdx
// Store
lea addresses_WT+0x14718, %r10
nop
nop
nop
nop
nop
xor $24663, %r9
movb $0x51, (%r10)
nop
nop
nop
nop
nop
add $50845, %r10
// Store
lea addresses_WC+0xdc00, %r11
sub $59007, %r13
movb $0x51, (%r11)
nop
nop
nop
nop
and %r10, %r10
// REPMOV
lea addresses_WT+0x5622, %rsi
lea addresses_WC+0x1ac08, %rdi
sub %r10, %r10
mov $8, %rcx
rep movsl
nop
nop
nop
nop
add $61790, %rbp
// Faulty Load
lea addresses_WT+0x16818, %rsi
inc %r11
movb (%rsi), %dl
lea oracles, %rdi
and $0xff, %rdx
shlq $12, %rdx
mov (%rdi,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 7}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_P', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 10, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 7}, 'OP': 'STOR'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 30.320158 | 2,999 | 0.651545 |
b293f246fc1716fe1a7a8788c978776cd1147baf | 5,414 | asm | Assembly | src/arch/x86_64/boot.asm | SnowFlakeOS/SnowFlake-Swift | df96da58740150ef8781739a79014799cc82846a | [
"BSD-3-Clause"
] | 3 | 2018-09-28T09:42:31.000Z | 2020-12-13T17:18:26.000Z | src/arch/x86_64/boot.asm | SnowFlakeOS/SnowFlake-Swift | df96da58740150ef8781739a79014799cc82846a | [
"BSD-3-Clause"
] | null | null | null | src/arch/x86_64/boot.asm | SnowFlakeOS/SnowFlake-Swift | df96da58740150ef8781739a79014799cc82846a | [
"BSD-3-Clause"
] | 1 | 2018-05-07T06:45:59.000Z | 2018-05-07T06:45:59.000Z | org 0x7c00
use16
; initialize cs
jmp 0:start
start:
; initialize data segments
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; initialize stack
mov sp, 0x7bfe
; load main kernel code
mov ah, 2 ; read
mov al, 16 ; 16 sectors (8 KiB)
mov ch, 0 ; cylinder & 0xff
mov cl, 2 ; sector | ((cylinder >> 2) & 0xc0)
mov dh, 0 ; head
mov bx, kernel ; read buffer
int 0x13
mov si, could_not_read_disk
jc error_bios
; enable A20 line
mov ax, 0x2401
int 0x15
mov si, could_not_enable_a20
jc error_bios
; read memory map
mov di, memory_map
xor ebx, ebx
xor bp, bp
.memory_map_loop:
mov edx, 0x534d4150
mov eax, 0xe820
mov ecx, 24
int 0x15
jc .memory_map_done
test ebx, ebx
jz .memory_map_done
add di, 24
inc bp
cmp di, memory_map_end
jb .memory_map_loop
.memory_map_done:
mov [memory_map_count], bp
; tell BIOS we intend to run in long mode
mov ax, 0xec00
mov bl, 2
int 0x15
; load protected mode GDT and a null IDT (we don't need interrupts)
cli
lgdt [gdtr32]
lidt [idtr32]
; set protected mode bit of cr0
mov eax, cr0
or eax, 1
mov cr0, eax
; far jump to load CS with 32 bit segment
jmp 0x08:protected_mode
error_bios: ; pass msg in SI
.loop:
lodsb
or al, al
jz .end
mov ah, 0x0e
int 0x10
jmp .loop
.end:
cli
hlt
use32
error: ; pass msg in ESI
mov edi, 0xb8000
mov ah, 0x4f ; white on red
.loop:
lodsb
or al, al
jz .end
stosw
jmp .loop
.end:
cli
hlt
protected_mode:
; load all the other segments with 32 bit data segments
mov eax, 0x10
mov ds, eax
mov es, eax
; check if extended processor information is supported by cpuid
mov eax, 0x80000000
cpuid
mov esi, no_extended_processor_information
cmp eax, 0x80000001
jb error
; check if long mode is supported
mov eax, 0x80000001
cpuid
mov esi, no_long_mode
test edx, 1 << 29
jz error
; zero out page mapping tables (contiguity assumed)
xor eax, eax
mov edi, pml4
mov ecx, (6 * 0x1000) / 4
rep stosd
; identity map first 2MiB of physical memory
mov dword [pml4], pdp | PAGE_PRESENT | PAGE_WRITABLE
mov dword [pdp], pd | PAGE_PRESENT | PAGE_WRITABLE
mov dword [pd], 0x0 | PAGE_PRESENT | PAGE_WRITABLE | PAGE_HUGE
; load PML4 into CR3
mov eax, pml4
mov cr3, eax
; enable physical address extensions
mov eax, cr4
or eax, 1 << 5
mov cr4, eax
; enable long mode
mov ecx, 0xc0000080
rdmsr
or eax, 1 << 8
wrmsr
; enable paging
mov eax, cr0
or eax, 1 << 31
mov cr0, eax
; load 64 bit GDT
lgdt [gdtr64]
; reload code segment
jmp 0x08:long_mode
long_mode:
use64 ; 🎉
; map kernel in at 0xffff_ff00_0000_0000
mov qword [pml4 + 510 * 8], pdp_high | PAGE_PRESENT | PAGE_WRITABLE
mov qword [pdp_high], pd_high | PAGE_PRESENT | PAGE_WRITABLE
mov qword [pd_high], pt_high | PAGE_PRESENT | PAGE_WRITABLE
mov qword [pt_high + 0 * 8], kernel + (0 * 4096) | PAGE_PRESENT | PAGE_WRITABLE
mov qword [pt_high + 1 * 8], kernel + (1 * 4096) | PAGE_PRESENT | PAGE_WRITABLE
mov qword [pt_high + 511 * 8], kernel_stack | PAGE_PRESENT | PAGE_WRITABLE
; recursively map PML4
mov qword [pml4 + 511 * 8], pml4 | PAGE_PRESENT | PAGE_WRITABLE
; jump to into higher half kernel
; need to use an indirect jmp because relative jumps are only 32 bit
mov rax, 0xffff_ff00_0000_0000
jmp rax
could_not_read_disk db "E1", 0
could_not_enable_a20 db "E2", 0
could_not_read_memory_map db "E3", 0
no_extended_processor_information db "E4", 0
no_long_mode db "E5", 0
gdtr32:
dw (gdt32.end - gdt32) - 1 ; size
dd gdt32 ; offset
idtr32:
dw 0
dd 0
gdt32:
; null entry
dq 0
; code entry
dw 0xffff ; limit 0:15
dw 0x0000 ; base 0:15
db 0x00 ; base 16:23
db 0b10011010 ; access byte - code
db 0xcf ; flags/(limit 16:19). 4 KB granularity + 32 bit mode flags
db 0x00 ; base 24:31
; data entry
dw 0xffff ; limit 0:15
dw 0x0000 ; base 0:15
db 0x00 ; base 16:23
db 0b10010010 ; access byte - data
db 0xcf ; flags/(limit 16:19). 4 KB granularity + 32 bit mode flags
db 0x00 ; base 24:31
.end:
gdtr64:
dw (gdt64.end - gdt64) - 1 ; size
dd gdt64 ; offset
gdt64:
; null entry
dq 0
; code entry
dq GDT64_DESCRIPTOR | GDT64_PRESENT | GDT64_READWRITE | GDT64_EXECUTABLE | GDT64_64BIT
; data entry
dq GDT64_DESCRIPTOR | GDT64_PRESENT | GDT64_READWRITE
.end:
; GDT flags
GDT64_DESCRIPTOR equ 1 << 44
GDT64_PRESENT equ 1 << 47
GDT64_READWRITE equ 1 << 41
GDT64_EXECUTABLE equ 1 << 43
GDT64_64BIT equ 1 << 53
; paging flags
PAGE_PRESENT equ 1 << 0
PAGE_WRITABLE equ 1 << 1
PAGE_HUGE equ 1 << 7
; long mode page tables (contiguity assumed):
pml4 equ 0x1000
pdp equ 0x2000
pd equ 0x3000
pdp_high equ 0x4000
pd_high equ 0x5000
pt_high equ 0x6000
; memory map:
memory_map_count equ 0x8000
memory_map equ 0x8008
memory_map_end equ 0x8ff8
; kernel:
kernel_stack equ 0x9000
kernel equ 0xa000
times 510-($-$$) db 0
db 0x55
db 0xaa
| 22.188525 | 90 | 0.627263 |
21c6af4c8c263f72640aa6077c83e017a5f53e88 | 436 | asm | Assembly | programs/oeis/273/A273129.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/273/A273129.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/273/A273129.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A273129: The Rote-Fibonacci infinite sequence.
; 0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,1
add $0,2
cal $0,195121 ; a(n) = 2*n - floor(n/r), where r = (1 + sqrt(5))/2 (the golden ratio).
gcd $0,2
mov $1,$0
sub $1,1
| 48.444444 | 261 | 0.543578 |
30b298b21133906ffe128de3afaa29503d4bfe1a | 279 | asm | Assembly | programs/oeis/244/A244975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/244/A244975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/244/A244975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A244975: (7^n - 2*n - 1)/4.
; 0,1,11,84,598,4199,29409,205882,1441196,10088397,70618807,494331680,3460321794,24222252595,169555768205,1186890377478,8308232642392,58157628496793,407103399477603,2849723796343276,19948066574402990
mov $1,7
pow $1,$0
sub $1,$0
sub $1,$0
div $1,4
| 31 | 199 | 0.770609 |
3f69cedcbc81a2f54af4b21c0f1af2da689dcf0c | 551 | asm | Assembly | oeis/064/A064750.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/064/A064750.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/064/A064750.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A064750: a(n) = n*12^n + 1.
; 1,13,289,5185,82945,1244161,17915905,250822657,3439853569,46438023169,619173642241,8173092077569,106993205379073,1390911669927937,17974858503684097,231105323618795521,2958148142320582657,37716388814587428865,479219999055934390273,6070119988041835610113,76675199848949502443521,966107518096763730788353,12145351656073601187053569,152368957139832451255762945,1907924332881380259202596865,23849054161017253240032460801,297636195929495320435605110785,3709004903121403223889848303617
mov $2,12
pow $2,$0
mul $0,$2
add $0,1
| 68.875 | 480 | 0.882033 |
b94e8690007a9e9f02ad0f9492cefe6ccb14720c | 666 | asm | Assembly | oeis/051/A051687.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/051/A051687.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/051/A051687.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A051687: a(n) = (5*n+6)(!^5)/6, related to A008548 ((5*n+1)(!^5) quintic, or 5-factorials).
; 1,11,176,3696,96096,2978976,107243136,4396968576,202260554496,10315288279296,577656143640576,35237024762075136,2325643634296958976,165120698035084087296,12549173050666390634496,1016483017103977641394176,87417539470942077159899136,7954996091855729021550821376,763679624818149986068878852096,77131642106633148592956764061696,8175954063303113750853416990539776,907530901026645626344729285949915136,105273584519090892655988597170190155776,12738103726809998011374620257593008848896
add $0,1
mov $1,2
mov $2,1
lpb $0
sub $0,1
add $2,5
mul $1,$2
lpe
mov $0,$1
div $0,12
| 47.571429 | 478 | 0.833333 |
b1ec02fc64c198a8d547200575a5d23233fb8260 | 662 | asm | Assembly | smsq/sms/arpa.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/sms/arpa.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/sms/arpa.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Allocate in Resident Procedure Area!!! V2.01 1986 Tony Tebby QJUMP
*
section sms
*
xdef sms_arpa
*
xref mem_atpa allocate in tpa
xref sms_rte return
*
include dev8_keys_chp
include dev8_keys_sys
*
* d0 r out of memory
* d1 cr space required / space allocated
* a0 r space allocated
*
* all other registers preserved
*
sms_arpa
move.l sp,sys_psf(a6) set stack frame (for move superBASIC)
moveq #chp.len,d7
add.l d7,d1 allocate extra for header
bsr.l mem_atpa
bne.s sar_exit ... oops
clr.l chp_ownr(a0) set owner
sub.l d7,d1 set actual space available
add.l d7,a0 and point to it
moveq #0,d0 ok
sar_exit
bra.l sms_rte
end
| 20.6875 | 75 | 0.717523 |
9cb8f0560eb7b8332a858896542262b319cafb9c | 8,315 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_251.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_251.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_251.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x8bda, %r15
nop
nop
nop
nop
nop
dec %rdi
and $0xffffffffffffffc0, %r15
vmovaps (%r15), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %r13
nop
dec %rcx
lea addresses_normal_ht+0x7f5a, %rdi
nop
nop
nop
nop
nop
xor %r12, %r12
movups (%rdi), %xmm3
vpextrq $0, %xmm3, %r11
nop
nop
xor $10339, %r15
lea addresses_UC_ht+0xa006, %rsi
lea addresses_WC_ht+0x144da, %rdi
clflush (%rdi)
nop
nop
nop
add %rdx, %rdx
mov $16, %rcx
rep movsw
inc %r13
lea addresses_WT_ht+0xf6da, %rdi
nop
nop
nop
nop
nop
cmp %r12, %r12
mov $0x6162636465666768, %r11
movq %r11, %xmm0
and $0xffffffffffffffc0, %rdi
vmovaps %ymm0, (%rdi)
nop
nop
inc %rdx
lea addresses_WC_ht+0x4322, %r15
nop
nop
nop
sub %r11, %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm2
movups %xmm2, (%r15)
nop
nop
xor %r12, %r12
lea addresses_WC_ht+0x150ba, %r11
nop
nop
nop
nop
nop
sub $52873, %rdi
mov (%r11), %r15w
nop
nop
nop
nop
dec %r13
lea addresses_WT_ht+0x13eda, %rsi
lea addresses_WC_ht+0x46da, %rdi
nop
nop
nop
nop
and $56371, %rdx
mov $29, %rcx
rep movsq
nop
nop
cmp %rcx, %rcx
lea addresses_UC_ht+0x1ce7a, %rsi
lea addresses_D_ht+0x963e, %rdi
nop
nop
nop
inc %r12
mov $51, %rcx
rep movsq
nop
nop
nop
nop
add $403, %r12
lea addresses_WT_ht+0x1331a, %r12
nop
and $32019, %r15
mov (%r12), %r13d
nop
nop
nop
add $42427, %rcx
lea addresses_WT_ht+0x186da, %rsi
lea addresses_UC_ht+0x5af2, %rdi
nop
nop
nop
nop
xor %r11, %r11
mov $110, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0xa3b2, %r12
nop
nop
nop
nop
cmp %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
vmovups %ymm6, (%r12)
nop
nop
nop
and %rdx, %rdx
lea addresses_UC_ht+0x1ecb6, %r15
nop
nop
nop
and $25696, %rdx
vmovups (%r15), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r13
nop
nop
sub $33694, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_WC+0x36da, %rsi
lea addresses_UC+0x3fca, %rdi
nop
nop
nop
nop
add %r12, %r12
mov $122, %rcx
rep movsb
// Exception!!!
nop
nop
mov (0), %r10
add %r10, %r10
// Store
lea addresses_WC+0x96da, %r12
clflush (%r12)
nop
nop
dec %rdx
movb $0x51, (%r12)
and %rbx, %rbx
// Store
lea addresses_UC+0x1b07e, %rsi
nop
nop
nop
sub $52143, %r10
mov $0x5152535455565758, %rcx
movq %rcx, %xmm4
vmovaps %ymm4, (%rsi)
and $49574, %rdx
// Store
mov $0xda, %rbx
cmp $48488, %rdx
mov $0x5152535455565758, %rsi
movq %rsi, %xmm4
vmovaps %ymm4, (%rbx)
inc %rbx
// Faulty Load
lea addresses_D+0xaeda, %r12
and %rsi, %rsi
mov (%r12), %ecx
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'same': True, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 31.496212 | 2,999 | 0.657005 |
850bfd56af7c2dfa875e279fb15419689177e27c | 370 | asm | Assembly | oeis/119/A119702.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/119/A119702.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/119/A119702.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A119702: n^2*binomial(2*n, n)*Fibonacci(n).
; Submitted by Jamie Morken(s3.)
; 0,2,24,360,3360,31500,266112,2186184,17297280,133899480,1016158000,7596797208,56073378816,409544426200,2964295807200,21289879620000,151876184302080,1077036279535260,7597848475324800,53348055809155800,373012706986920000
mov $1,$0
pow $0,2
seq $1,119692 ; Binomial(2*n,n)*fib(n).
mul $0,$1
| 41.111111 | 220 | 0.789189 |
e2a30cd341c88c9549baa01b36e172e5edc41fb2 | 314 | asm | Assembly | programs/oeis/308/A308602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/308/A308602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/308/A308602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A308602: Number of (not necessarily maximum) cliques in the n-cycle graph.
; 8,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133
mul $0,2
trn $0,1
add $0,8
| 44.857143 | 208 | 0.691083 |
031bdb37bf9329a40996e0dc8cf632118c7732ad | 455 | asm | Assembly | oeis/064/A064183.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/064/A064183.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/064/A064183.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A064183: Define a pair of sequences by p(0) = 0, q(0) = p(1) = q(1) = 1, q(n+1) = p(n)*q(n-1), p(n+1) = q(n+1) + q(n) for n > 0; then a(n) = q(n) and A064526(n) = p(n).
; Submitted by Jon Maiga
; 1,1,1,2,3,10,39,490,20631,10349290,213941840151,2214253254659846890,473721461633379426414550183191,1048939288228833100615882755549676600679754298090
sub $0,2
mov $1,1
mov $2,1
lpb $0
sub $0,1
mov $3,$2
mov $2,$1
add $1,$3
mul $1,$3
lpe
mov $0,$1
| 28.4375 | 170 | 0.635165 |
abb930c6ebf4cb8a4246c92a85ca313c4dffe916 | 365 | asm | Assembly | oeis/193/A193632.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/193/A193632.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/193/A193632.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A193632: Triangle: T(n,k)=C(4n-1,2k), 0<=k<=n.
; Submitted by Christian Krause
; 1,1,3,1,21,35,1,55,330,462,1,105,1365,5005,6435,1,171,3876,27132,75582,92378,1,253,8855,100947,490314,1144066,1352078,1,351,17550,296010,2220075,8436285,17383860,20058300,1,465,31465,736281,7888725
lpb $0
add $1,4
sub $2,1
add $0,$2
lpe
mul $0,2
sub $1,1
bin $1,$0
mov $0,$1
| 26.071429 | 199 | 0.690411 |
8913ab2537e26de50a0f0a986ea7052ddd695cdb | 605 | asm | Assembly | programs/oeis/127/A127981.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/127/A127981.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/127/A127981.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A127981: a(n) = (n + 1/3)*2^(n-1) - 1/2 + (-1)^(n-1)*(1/6).
; 1,4,13,34,85,202,469,1066,2389,5290,11605,25258,54613,117418,251221,535210,1135957,2402986,5068117,10660522,22369621,46836394,97867093,204122794,425022805,883600042,1834308949,3802835626,7874106709,16285084330,33643910485,69435304618,143165576533,294921087658,607022044501,1248403827370,2565527131477,5268493216426,10811864339797,22173484493482,45446480614741,93091984485034,190582015481173,389960123984554,797512434013525,1630209240115882,3330787224409429,6802311937174186
mov $1,$0
mul $1,3
add $1,4
mov $2,2
pow $2,$0
mul $1,$2
div $1,3
| 55 | 475 | 0.798347 |
c737e2bb815abbde103ac53a0b2da88fd46e7258 | 158 | asm | Assembly | r5asm/test/module4.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | r5asm/test/module4.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | r5asm/test/module4.asm | walter-artica/r5asm | acfc448cbfcb09ed8f34e6c805bfbffe9bd32abc | [
"MIT"
] | null | null | null | .code
mov R2, 0x3FC4 ;switches
mov R3, 0x3FD0 ;rleds
mov R4, 0x3FD4 ;gleds
loop:
ldw R8, R2, 0
stw R8, R3, 0
not R8
stw R8, R4, 0
bra loop
| 14.363636 | 28 | 0.601266 |
74660517c5d4136c746ba4bcd1b9a8f29430809a | 4,385 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1319.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1319.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1319.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rcx
lea addresses_WT_ht+0xf17b, %r11
nop
nop
nop
add %rbx, %rbx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
and $0xffffffffffffffc0, %r11
movntdq %xmm3, (%r11)
nop
nop
nop
nop
nop
xor %r9, %r9
lea addresses_A_ht+0x2521, %r14
sub %rcx, %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm0
and $0xffffffffffffffc0, %r14
vmovaps %ymm0, (%r14)
add %r9, %r9
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rsi
// Faulty Load
lea addresses_WC+0x9221, %rsi
nop
dec %r15
movb (%rsi), %r9b
lea oracles, %rax
and $0xff, %r9
shlq $12, %r9
mov (%rax,%r9,1), %r9
pop %rsi
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, '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
*/
| 56.948052 | 2,999 | 0.663398 |
bccaa2f2623666e6e9b3d34dd3012695cbf048ad | 213 | asm | Assembly | example.asm | kspalaiologos/cursed-asm | abb1ec73de3840a6d5b31c612f26dd38f3dc4d71 | [
"CC0-1.0"
] | 6 | 2020-08-11T20:28:41.000Z | 2022-03-30T12:56:40.000Z | example.asm | kspalaiologos/cursed-asm | abb1ec73de3840a6d5b31c612f26dd38f3dc4d71 | [
"CC0-1.0"
] | null | null | null | example.asm | kspalaiologos/cursed-asm | abb1ec73de3840a6d5b31c612f26dd38f3dc4d71 | [
"CC0-1.0"
] | null | null | null |
.globl main
.data
.str:
.string "cursed lol"
.text
main:
subq $8, %rsp
mov esi, 1337
movl $.str, %edi
xor eax, eax
call printf
xor eax, eax
addq $8, %rsp
ret
| 13.3125 | 25 | 0.497653 |
ea543f71b846cd019bfc06df433c861e57e5e916 | 1,973 | asm | Assembly | 1571/64tass/patch.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | 23 | 2015-03-23T15:16:57.000Z | 2022-03-18T12:43:42.000Z | 1571/64tass/patch.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | null | null | null | 1571/64tass/patch.asm | silverdr/assembly | c2851f7033223e089285dce22443b7e219ed4f61 | [
"Unlicense"
] | 8 | 2016-04-13T11:19:35.000Z | 2021-12-22T07:39:00.000Z |
dchksum .byte $ff
jnmi jmp (vnmi)
pea7a sta ledprt
sta ddrb2
jmp rea7d
slowd txa ; only affect .a
ldx #5 ; insert 20us of delay with this routine
- dex
bne -
tax
rts
patch4 jsr clklo
jmp dathi
nnmi .proc
lda cmdbuf+2 ; new nmi routine check for
cmp #'-'
beq m1 ; if ui- then no delay
sec
sbc #'+'
bne jnmi ; if not ui+ then must be a real ui command
m1 sta slflag ; set/clr slow flag
rts
.pend
patch5 stx ddra1
lda #2
jmp ptch22
ptch22r lda #$1a
sta ddrb1
jmp dkit10
patch6
- lda pb
and #1
bne -
lda #1
sta timer1
jmp acptr.rptch6
patch7 lda #255
sta ftnum
lda pota1
and #$20
bne +
lda #36
.byte skip2
+ lda #71
sta maxtrk
jmp ptch28
patch9 .proc
tya
pha
ldy #100
- lda pota1
ror a
php
lda pota1
ror a
ror a
plp
and #$80
bcc +
bpl m2
bmi m1
+ bmi m2
m1 dey
bne -
bcs m2
lda dskcnt
and #3
bne m2
lda adrsed
bne m2
pla
tay
lda #0
sta steps
jmp end33
m2 pla
tay
inc steps
ldx dskcnt
dex
jmp pppppp
.pend
ptch10 jsr cntint
lda #5
sta cpmit
lda #<irq
sta irqjmp
lda #>irq
sta irqjmp+1
lda #36
sta maxtrk
clc
jmp set_side
ptch11 sta nodrv
jmp setlds
ptch12 sta adrsed
jmp hedoff
ptch13 jsr hedoff
lda #0
sta adrsed
rts
ptch15 ldy lindx
jmp rndget
| 16.04065 | 67 | 0.4222 |
080628a3500328e4bc109228d00a102a3410a839 | 238 | asm | Assembly | src/intel/tools/tests/gen7.5/else.asm | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | src/intel/tools/tests/gen7.5/else.asm | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | src/intel/tools/tests/gen7.5/else.asm | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | else(8) JIP: 4 { align16 1Q };
else(8) JIP: 72 { align1 1Q };
else(16) JIP: 72 { align1 1H };
| 59.5 | 79 | 0.231092 |
9d712280ed6d23ce24023b2682ab79d0d514999b | 1,856 | asm | Assembly | hex2pet.asm | JimmyDansbo/cx16stuff | e052dfcb98a3b2418bc80586173d9f83488593a6 | [
"Unlicense"
] | null | null | null | hex2pet.asm | JimmyDansbo/cx16stuff | e052dfcb98a3b2418bc80586173d9f83488593a6 | [
"Unlicense"
] | null | null | null | hex2pet.asm | JimmyDansbo/cx16stuff | e052dfcb98a3b2418bc80586173d9f83488593a6 | [
"Unlicense"
] | 1 | 2019-11-23T23:43:23.000Z | 2019-11-23T23:43:23.000Z | !cpu w65c02
!src "cx16.inc"
+SYS_LINE
Main:
; Use Wozniak inspired function to print hex-string
lda #$7C
jsr Hex_to_pet_calc
lda #13
jsr CHROUT
; Use a lookup table to print hex-string
lda #$3E
jsr Hex_to_pet_tbl
lda #13
jsr CHROUT
rts
; *****************************************************************************
; Print a byte in .A as a hexadecimal string.
; Uses .A, .X and calls the CHROUT/BSOUT C64 KERNAL API
; This is very inspired by the PRBYTE function in wozmon code for Apple 1
; *****************************************************************************
Hex_to_pet_calc:
tax ; Save .A for low nibble
lsr
lsr
lsr
lsr ; High nibble to low nibble
jsr @print_hex ; Print hex-digit
txa ; Restore .A
and #$0F ; Mask low nibble for hex print
@print_hex:
ora #$30 ; Convert to petscii
cmp #$3A ; Is it a decimal number
bcc @do_print ; Yes, print it
adc #6 ; Otherwise add offset for letters A-F
@do_print:
jsr CHROUT ; Print the character to screen
rts
; *****************************************************************************
; Print a byte in .A as a hexadecimal string.
; Uses .A, .X, .Y and calls the CHROUT/BSOUT C64 KERNAL API
; This function uses a 16-byte table for the actual conversion. It takes up
; more memory, but executes faster.
; *****************************************************************************
Hex_to_pet_tbl:
tax ; Save .A for low nibble
lsr
lsr
lsr
lsr ; High nibble to low nibble
tay ; Copy nibble to .Y to use as index
lda Hex_table,y ; Load character from Hex_table
jsr CHROUT ; Print the caracter to screen
txa ; Restore .A
and #$0F ; Mask low nibble for hex print
tay ; Copy nibble to .Y to use as index
lda Hex_table,y ; Load character from Hex table
jsr CHROUT ; Print the caracter to screen
rts
Hex_table:
!pet "0123456789abcdef"
| 28.121212 | 79 | 0.58944 |
70b7de5d5d0f18dbc88a4cf4ceb595ac7154da2a | 480 | asm | Assembly | solutions/63 - Defrag Disordered/size-33_speed-25.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 45 | 2018-09-05T04:56:59.000Z | 2021-11-22T08:57:26.000Z | solutions/63 - Defrag Disordered/size-33_speed-25.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 36 | 2018-09-01T11:34:26.000Z | 2021-05-19T23:20:49.000Z | solutions/63 - Defrag Disordered/size-33_speed-25.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 36 | 2018-09-01T07:44:19.000Z | 2021-09-10T19:07:35.000Z | -- 7 Billion Humans (2053) --
-- 63: Defrag Disordered --
-- Author: soerface
-- Size: 33
-- Speed: 25
mem1 = nearest datacube
pickup mem1
step n
step n
step n
a:
step n
if n != hole:
jump a
endif
b:
c:
if c == nothing:
drop
jump d
endif
if e != hole:
step e
jump b
endif
step s
e:
f:
if c == nothing:
drop
jump g
endif
if w != hole:
step w
jump f
endif
step s
jump c
d:
g:
step s
step s
step s
h:
if c == nothing:
step w
jump h
endif
pickup c
step n
step n
jump e
| 8.421053 | 29 | 0.6375 |
f3e9020d377d525983267e477bd56c4d4d33ff04 | 31,495 | asm | Assembly | src/sprite_esqueleto.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | src/sprite_esqueleto.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | src/sprite_esqueleto.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | ; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_idle.sev:
DEFB 0 ,0 ,0
DEFB 0 ,30 ,0
DEFB 0 ,63 ,0
DEFB 0 ,114 ,0
DEFB 0 ,82 ,0
DEFB 0 ,13 ,0
DEFB 0 ,31 ,0
DEFB 0 ,10 ,0
DEFB 0 ,192 ,0
DEFB 1 ,142 ,64
DEFB 1 ,53 ,0
DEFB 3 ,4 ,64
DEFB 2 ,53 ,0
DEFB 6 ,4 ,8
DEFB 4 ,48 ,80
DEFB 0 ,1 ,200
DEFB 4 ,7 ,144
DEFB 4 ,31 ,160
DEFB 4 ,127 ,0
DEFB 3 ,28 ,0
DEFB 3 ,0 ,0
DEFB 8 ,36 ,0
DEFB 0 ,34 ,128
DEFB 0 ,33 ,64
DEFB 0 ,80 ,128
DEFB 0 ,33 ,0
DEFB 0 ,0 ,0
DEFB 0 ,65 ,0
DEFB 0 ,66 ,0
DEFB 0 ,132 ,0
DEFB 1 ,138 ,0
DEFB 0 ,113 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_gira.sev:
DEFB 0 ,0 ,0
DEFB 0 ,62 ,0
DEFB 0 ,127 ,0
DEFB 0 ,201 ,128
DEFB 0 ,201 ,128
DEFB 0 ,54 ,0
DEFB 0 ,62 ,0
DEFB 6 ,20 ,48
DEFB 22 ,193 ,180
DEFB 16 ,28 ,4
DEFB 52 ,235 ,214
DEFB 52 ,8 ,22
DEFB 56 ,235 ,142
DEFB 56 ,8 ,14
DEFB 56 ,119 ,14
DEFB 60 ,0 ,30
DEFB 24 ,54 ,12
DEFB 6 ,127 ,48
DEFB 6 ,182 ,176
DEFB 0 ,182 ,128
DEFB 0 ,128 ,128
DEFB 0 ,128 ,128
DEFB 0 ,128 ,128
DEFB 1 ,65 ,64
DEFB 0 ,128 ,128
DEFB 1 ,0 ,64
DEFB 1 ,0 ,64
DEFB 1 ,0 ,64
DEFB 1 ,0 ,64
DEFB 1 ,0 ,64
DEFB 1 ,128 ,192
DEFB 3 ,193 ,224
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_camina.sev:
DEFB 0 ,0 ,0
DEFB 0 ,30 ,0
DEFB 0 ,63 ,0
DEFB 0 ,114 ,0
DEFB 0 ,82 ,0
DEFB 0 ,13 ,0
DEFB 0 ,31 ,0
DEFB 0 ,10 ,0
DEFB 0 ,192 ,0
DEFB 1 ,142 ,64
DEFB 1 ,117 ,0
DEFB 3 ,4 ,64
DEFB 2 ,117 ,0
DEFB 6 ,4 ,8
DEFB 4 ,48 ,80
DEFB 0 ,1 ,200
DEFB 4 ,7 ,144
DEFB 4 ,31 ,160
DEFB 4 ,127 ,0
DEFB 3 ,28 ,0
DEFB 3 ,0 ,0
DEFB 8 ,36 ,0
DEFB 0 ,34 ,128
DEFB 0 ,33 ,64
DEFB 0 ,80 ,128
DEFB 0 ,34 ,0
DEFB 0 ,4 ,0
DEFB 0 ,72 ,0
DEFB 0 ,64 ,0
DEFB 0 ,133 ,0
DEFB 1 ,128 ,0
DEFB 0 ,120 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,1 ,224
DEFB 0 ,3 ,240
DEFB 0 ,7 ,32
DEFB 0 ,5 ,32
DEFB 0 ,0 ,208
DEFB 0 ,1 ,240
DEFB 0 ,6 ,160
DEFB 0 ,6 ,2
DEFB 0 ,8 ,115
DEFB 0 ,11 ,167
DEFB 0 ,8 ,39
DEFB 0 ,11 ,175
DEFB 0 ,16 ,47
DEFB 0 ,14 ,158
DEFB 0 ,1 ,28
DEFB 0 ,0 ,209
DEFB 0 ,2 ,202
DEFB 0 ,0 ,20
DEFB 0 ,0 ,192
DEFB 0 ,2 ,0
DEFB 0 ,2 ,16
DEFB 0 ,4 ,8
DEFB 0 ,4 ,4
DEFB 0 ,10 ,0
DEFB 0 ,20 ,2
DEFB 0 ,32 ,4
DEFB 0 ,64 ,8
DEFB 1 ,128 ,16
DEFB 0 ,192 ,42
DEFB 0 ,56 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,30 ,32
DEFB 0 ,63 ,48
DEFB 0 ,114 ,56
DEFB 0 ,82 ,56
DEFB 0 ,13 ,120
DEFB 0 ,223 ,120
DEFB 0 ,202 ,120
DEFB 0 ,0 ,240
DEFB 0 ,76 ,224
DEFB 0 ,84 ,192
DEFB 2 ,68 ,0
DEFB 4 ,65 ,128
DEFB 2 ,61 ,136
DEFB 0 ,0 ,16
DEFB 0 ,1 ,40
DEFB 0 ,224 ,80
DEFB 0 ,116 ,160
DEFB 1 ,180 ,0
DEFB 0 ,136 ,0
DEFB 0 ,96 ,0
DEFB 0 ,52 ,0
DEFB 0 ,26 ,0
DEFB 2 ,9 ,0
DEFB 3 ,244 ,0
DEFB 1 ,9 ,0
DEFB 1 ,2 ,0
DEFB 2 ,4 ,0
DEFB 2 ,8 ,0
DEFB 0 ,21 ,0
DEFB 0 ,0 ,0
DEFB 0 ,1 ,224
DEFB 0 ,3 ,240
DEFB 0 ,7 ,32
DEFB 0 ,5 ,32
DEFB 0 ,0 ,208
DEFB 0 ,1 ,240
DEFB 0 ,24 ,160
DEFB 0 ,24 ,8
DEFB 0 ,0 ,228
DEFB 0 ,23 ,80
DEFB 0 ,16 ,68
DEFB 0 ,39 ,80
DEFB 0 ,32 ,66
DEFB 0 ,19 ,14
DEFB 0 ,8 ,62
DEFB 0 ,0 ,252
DEFB 0 ,6 ,120
DEFB 0 ,22 ,1
DEFB 0 ,0 ,234
DEFB 0 ,0 ,69
DEFB 0 ,7 ,0
DEFB 0 ,0 ,224
DEFB 0 ,0 ,24
DEFB 0 ,0 ,20
DEFB 0 ,2 ,24
DEFB 0 ,4 ,32
DEFB 0 ,0 ,64
DEFB 0 ,1 ,128
DEFB 0 ,0 ,96
DEFB 0 ,8 ,16
DEFB 0 ,21 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,30 ,0
DEFB 0 ,63 ,0
DEFB 0 ,114 ,0
DEFB 0 ,82 ,0
DEFB 0 ,13 ,4
DEFB 0 ,31 ,2
DEFB 1 ,138 ,4
DEFB 1 ,128 ,66
DEFB 2 ,14 ,165
DEFB 2 ,117 ,74
DEFB 4 ,4 ,5
DEFB 4 ,117 ,74
DEFB 8 ,4 ,36
DEFB 16 ,53 ,80
DEFB 8 ,0 ,0
DEFB 4 ,7 ,224
DEFB 3 ,127 ,192
DEFB 11 ,31 ,128
DEFB 0 ,6 ,0
DEFB 0 ,32 ,0
DEFB 0 ,12 ,0
DEFB 0 ,3 ,64
DEFB 0 ,32 ,160
DEFB 0 ,64 ,64
DEFB 0 ,0 ,128
DEFB 1 ,1 ,0
DEFB 2 ,1 ,0
DEFB 20 ,2 ,0
DEFB 8 ,5 ,224
DEFB 5 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,1 ,228
DEFB 0 ,3 ,242
DEFB 0 ,7 ,37
DEFB 0 ,5 ,34
DEFB 0 ,0 ,213
DEFB 0 ,25 ,242
DEFB 0 ,24 ,161
DEFB 0 ,32 ,10
DEFB 0 ,64 ,225
DEFB 0 ,143 ,82
DEFB 1 ,0 ,68
DEFB 2 ,15 ,82
DEFB 1 ,0 ,69
DEFB 0 ,135 ,16
DEFB 2 ,192 ,0
DEFB 0 ,223 ,248
DEFB 0 ,15 ,240
DEFB 0 ,3 ,192
DEFB 0 ,0 ,0
DEFB 0 ,1 ,128
DEFB 0 ,0 ,96
DEFB 0 ,0 ,16
DEFB 0 ,16 ,40
DEFB 0 ,10 ,144
DEFB 0 ,16 ,32
DEFB 0 ,0 ,64
DEFB 0 ,16 ,64
DEFB 0 ,0 ,128
DEFB 0 ,1 ,248
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_cae.sev:
DEFB 32 ,4 ,0
DEFB 56 ,2 ,0
DEFB 28 ,5 ,0
DEFB 28 ,2 ,0
DEFB 28 ,5 ,0
DEFB 29 ,242 ,0
DEFB 13 ,249 ,0
DEFB 13 ,144 ,0
DEFB 9 ,146 ,0
DEFB 96 ,233 ,0
DEFB 140 ,114 ,0
DEFB 108 ,80 ,0
DEFB 1 ,136 ,0
DEFB 8 ,32 ,0
DEFB 3 ,168 ,0
DEFB 0 ,32 ,0
DEFB 1 ,168 ,0
DEFB 0 ,2 ,128
DEFB 0 ,20 ,64
DEFB 1 ,248 ,0
DEFB 6 ,208 ,128
DEFB 2 ,129 ,0
DEFB 1 ,2 ,0
DEFB 0 ,132 ,0
DEFB 0 ,66 ,0
DEFB 0 ,161 ,0
DEFB 0 ,64 ,0
DEFB 0 ,64 ,0
DEFB 0 ,66 ,0
DEFB 0 ,68 ,0
DEFB 0 ,56 ,0
DEFB 0 ,32 ,0
DEFB 128 ,0 ,128
DEFB 192 ,0 ,64
DEFB 224 ,0 ,32
DEFB 240 ,0 ,80
DEFB 240 ,0 ,32
DEFB 112 ,0 ,80
DEFB 96 ,0 ,32
DEFB 96 ,30 ,16
DEFB 0 ,63 ,32
DEFB 96 ,114 ,8
DEFB 96 ,82 ,20
DEFB 14 ,13 ,8
DEFB 32 ,223 ,32
DEFB 0 ,202 ,64
DEFB 0 ,0 ,0
DEFB 0 ,245 ,0
DEFB 0 ,4 ,0
DEFB 0 ,245 ,0
DEFB 0 ,4 ,0
DEFB 0 ,117 ,0
DEFB 1 ,0 ,0
DEFB 1 ,191 ,0
DEFB 0 ,18 ,0
DEFB 0 ,192 ,128
DEFB 0 ,48 ,64
DEFB 0 ,40 ,128
DEFB 0 ,17 ,0
DEFB 0 ,32 ,0
DEFB 0 ,68 ,0
DEFB 0 ,138 ,0
DEFB 1 ,129 ,0
DEFB 3 ,240 ,128
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_agacha.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,120
DEFB 0 ,0 ,252
DEFB 0 ,1 ,200
DEFB 0 ,5 ,72
DEFB 0 ,20 ,52
DEFB 0 ,83 ,124
DEFB 1 ,75 ,40
DEFB 1 ,168 ,128
DEFB 2 ,18 ,18
DEFB 1 ,130 ,16
DEFB 0 ,98 ,50
DEFB 0 ,18 ,57
DEFB 0 ,40 ,58
DEFB 0 ,50 ,113
DEFB 0 ,65 ,114
DEFB 0 ,129 ,100
DEFB 1 ,128 ,136
DEFB 3 ,240 ,196
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,120
DEFB 0 ,0 ,252
DEFB 0 ,5 ,200
DEFB 0 ,85 ,72
DEFB 1 ,84 ,52
DEFB 3 ,43 ,124
DEFB 2 ,84 ,40
DEFB 1 ,36 ,144
DEFB 0 ,133 ,154
DEFB 0 ,72 ,57
DEFB 0 ,36 ,58
DEFB 0 ,52 ,121
DEFB 0 ,2 ,114
DEFB 0 ,66 ,228
DEFB 0 ,128 ,136
DEFB 1 ,130 ,32
DEFB 3 ,243 ,16
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,30 ,0
DEFB 0 ,63 ,0
DEFB 0 ,114 ,0
DEFB 0 ,82 ,0
DEFB 0 ,13 ,0
DEFB 1 ,159 ,0
DEFB 1 ,138 ,0
DEFB 0 ,0 ,0
DEFB 1 ,117 ,0
DEFB 1 ,4 ,0
DEFB 2 ,117 ,0
DEFB 2 ,4 ,0
DEFB 1 ,53 ,64
DEFB 0 ,128 ,0
DEFB 1 ,111 ,249
DEFB 3 ,55 ,242
DEFB 2 ,131 ,196
DEFB 0 ,96 ,0
DEFB 0 ,18 ,128
DEFB 0 ,49 ,0
DEFB 0 ,66 ,0
DEFB 0 ,64 ,0
DEFB 0 ,130 ,0
DEFB 1 ,132 ,0
DEFB 3 ,242 ,160
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_saca_espada.sev:
DEFB 8 ,0 ,32
DEFB 12 ,0 ,16
DEFB 14 ,31 ,40
DEFB 14 ,50 ,20
DEFB 15 ,119 ,136
DEFB 7 ,120 ,84
DEFB 7 ,96 ,136
DEFB 7 ,113 ,20
DEFB 6 ,8 ,136
DEFB 54 ,71 ,16
DEFB 68 ,24 ,0
DEFB 49 ,234 ,16
DEFB 12 ,8 ,40
DEFB 13 ,234 ,16
DEFB 0 ,8 ,0
DEFB 4 ,244 ,0
DEFB 0 ,0 ,0
DEFB 0 ,227 ,0
DEFB 1 ,118 ,0
DEFB 1 ,137 ,0
DEFB 0 ,128 ,0
DEFB 0 ,128 ,128
DEFB 0 ,64 ,0
DEFB 0 ,64 ,128
DEFB 0 ,64 ,64
DEFB 0 ,160 ,160
DEFB 1 ,64 ,64
DEFB 1 ,0 ,128
DEFB 2 ,1 ,0
DEFB 2 ,2 ,0
DEFB 4 ,4 ,0
DEFB 15 ,138 ,160
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_idle_espada.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 4 ,7 ,136
DEFB 6 ,15 ,196
DEFB 7 ,29 ,202
DEFB 7 ,20 ,132
DEFB 7 ,131 ,74
DEFB 7 ,167 ,196
DEFB 3 ,162 ,138
DEFB 3 ,128 ,4
DEFB 3 ,7 ,8
DEFB 3 ,58 ,128
DEFB 2 ,66 ,8
DEFB 0 ,61 ,20
DEFB 6 ,4 ,8
DEFB 6 ,58 ,0
DEFB 0 ,0 ,0
DEFB 4 ,123 ,0
DEFB 1 ,186 ,64
DEFB 1 ,132 ,0
DEFB 0 ,128 ,64
DEFB 1 ,0 ,32
DEFB 2 ,0 ,16
DEFB 4 ,0 ,40
DEFB 10 ,0 ,16
DEFB 5 ,0 ,32
DEFB 0 ,128 ,64
DEFB 0 ,64 ,128
DEFB 0 ,193 ,80
DEFB 15 ,226 ,168
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_camina_espada.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,4
DEFB 0 ,1 ,226
DEFB 1 ,3 ,245
DEFB 1 ,135 ,114
DEFB 1 ,197 ,37
DEFB 1 ,192 ,210
DEFB 1 ,233 ,245
DEFB 1 ,232 ,162
DEFB 0 ,224 ,4
DEFB 0 ,225 ,192
DEFB 0 ,206 ,164
DEFB 0 ,208 ,130
DEFB 0 ,143 ,68
DEFB 0 ,1 ,0
DEFB 1 ,134 ,128
DEFB 1 ,152 ,0
DEFB 0 ,46 ,0
DEFB 1 ,38 ,192
DEFB 0 ,33 ,160
DEFB 0 ,32 ,32
DEFB 0 ,32 ,16
DEFB 0 ,64 ,16
DEFB 0 ,160 ,32
DEFB 0 ,90 ,80
DEFB 0 ,6 ,32
DEFB 0 ,2 ,64
DEFB 0 ,2 ,128
DEFB 0 ,4 ,80
DEFB 0 ,56 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,64 ,120
DEFB 0 ,96 ,252
DEFB 0 ,113 ,221
DEFB 0 ,113 ,72
DEFB 0 ,120 ,53
DEFB 0 ,122 ,124
DEFB 0 ,58 ,41
DEFB 0 ,56 ,2
DEFB 0 ,48 ,112
DEFB 0 ,51 ,168
DEFB 0 ,36 ,32
DEFB 0 ,3 ,210
DEFB 0 ,96 ,68
DEFB 0 ,99 ,160
DEFB 0 ,0 ,0
DEFB 0 ,71 ,176
DEFB 0 ,27 ,168
DEFB 0 ,8 ,80
DEFB 0 ,12 ,16
DEFB 0 ,10 ,32
DEFB 0 ,6 ,32
DEFB 0 ,2 ,80
DEFB 0 ,2 ,32
DEFB 0 ,1 ,0
DEFB 0 ,1 ,128
DEFB 0 ,0 ,192
DEFB 0 ,3 ,16
DEFB 0 ,14 ,40
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 16 ,0 ,0
DEFB 24 ,30 ,0
DEFB 28 ,63 ,64
DEFB 28 ,119 ,32
DEFB 30 ,82 ,80
DEFB 30 ,13 ,32
DEFB 14 ,159 ,80
DEFB 14 ,138 ,32
DEFB 12 ,0 ,80
DEFB 12 ,28 ,32
DEFB 8 ,234 ,64
DEFB 1 ,8 ,0
DEFB 24 ,244 ,64
DEFB 24 ,16 ,160
DEFB 0 ,232 ,64
DEFB 16 ,0 ,0
DEFB 1 ,236 ,0
DEFB 6 ,233 ,0
DEFB 6 ,16 ,0
DEFB 2 ,1 ,0
DEFB 4 ,0 ,128
DEFB 4 ,0 ,64
DEFB 8 ,0 ,160
DEFB 20 ,0 ,64
DEFB 11 ,0 ,128
DEFB 0 ,129 ,0
DEFB 0 ,98 ,0
DEFB 0 ,129 ,80
DEFB 15 ,0 ,40
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_golpealto.sev:
DEFB 0 ,255 ,96
DEFB 1 ,254 ,104
DEFB 3 ,240 ,0
DEFB 3 ,128 ,64
DEFB 4 ,0 ,72
DEFB 0 ,3 ,68
DEFB 0 ,7 ,32
DEFB 0 ,13 ,164
DEFB 0 ,2 ,32
DEFB 0 ,24 ,196
DEFB 0 ,27 ,8
DEFB 0 ,64 ,96
DEFB 0 ,95 ,64
DEFB 0 ,1 ,0
DEFB 0 ,29 ,0
DEFB 0 ,2 ,0
DEFB 0 ,12 ,0
DEFB 0 ,1 ,0
DEFB 0 ,18 ,0
DEFB 0 ,57 ,0
DEFB 0 ,90 ,80
DEFB 0 ,100 ,8
DEFB 0 ,32 ,20
DEFB 0 ,32 ,8
DEFB 0 ,32 ,0
DEFB 0 ,32 ,32
DEFB 0 ,80 ,0
DEFB 0 ,160 ,34
DEFB 1 ,0 ,68
DEFB 1 ,0 ,40
DEFB 3 ,128 ,64
DEFB 7 ,240 ,0
DEFB 0 ,2 ,170
DEFB 0 ,8 ,5
DEFB 0 ,33 ,240
DEFB 0 ,131 ,248
DEFB 0 ,3 ,168
DEFB 0 ,3 ,100
DEFB 0 ,1 ,184
DEFB 0 ,0 ,76
DEFB 0 ,5 ,160
DEFB 0 ,13 ,152
DEFB 0 ,8 ,0
DEFB 0 ,2 ,0
DEFB 0 ,2 ,64
DEFB 0 ,4 ,192
DEFB 0 ,4 ,128
DEFB 0 ,9 ,0
DEFB 0 ,16 ,0
DEFB 0 ,16 ,0
DEFB 0 ,47 ,232
DEFB 0 ,200 ,20
DEFB 0 ,193 ,8
DEFB 0 ,0 ,16
DEFB 0 ,65 ,2
DEFB 0 ,196 ,85
DEFB 0 ,234 ,170
DEFB 0 ,229 ,85
DEFB 0 ,242 ,170
DEFB 0 ,241 ,85
DEFB 0 ,120 ,170
DEFB 0 ,124 ,85
DEFB 0 ,62 ,42
DEFB 0 ,95 ,133
DEFB 170 ,0 ,0
DEFB 85 ,64 ,0
DEFB 170 ,168 ,0
DEFB 85 ,84 ,0
DEFB 10 ,170 ,128
DEFB 1 ,85 ,64
DEFB 0 ,170 ,160
DEFB 0 ,85 ,80
DEFB 0 ,42 ,168
DEFB 0 ,21 ,84
DEFB 0 ,10 ,168
DEFB 0 ,21 ,84
DEFB 0 ,10 ,170
DEFB 0 ,5 ,84
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,42 ,170
DEFB 1 ,85 ,84
DEFB 2 ,170 ,170
DEFB 21 ,85 ,84
DEFB 170 ,170 ,168
DEFB 85 ,85 ,80
DEFB 170 ,170 ,160
DEFB 85 ,85 ,64
DEFB 170 ,170 ,128
DEFB 85 ,85 ,0
DEFB 170 ,170 ,0
DEFB 85 ,80 ,0
DEFB 170 ,128 ,0
DEFB 80 ,0 ,0
DEFB 0 ,0 ,0
DEFB 120 ,21 ,0
DEFB 254 ,10 ,128
DEFB 63 ,5 ,64
DEFB 15 ,0 ,160
DEFB 7 ,128 ,64
DEFB 35 ,128 ,32
DEFB 81 ,7 ,128
DEFB 40 ,207 ,208
DEFB 84 ,221 ,200
DEFB 169 ,20 ,144
DEFB 80 ,3 ,72
DEFB 168 ,199 ,196
DEFB 83 ,194 ,170
DEFB 160 ,56 ,0
DEFB 80 ,2 ,0
DEFB 32 ,61 ,0
DEFB 80 ,4 ,0
DEFB 32 ,58 ,0
DEFB 16 ,0 ,0
DEFB 40 ,123 ,0
DEFB 17 ,186 ,64
DEFB 9 ,132 ,0
DEFB 0 ,128 ,64
DEFB 1 ,0 ,32
DEFB 2 ,0 ,16
DEFB 4 ,0 ,40
DEFB 10 ,0 ,16
DEFB 5 ,0 ,32
DEFB 0 ,128 ,128
DEFB 0 ,193 ,80
DEFB 15 ,226 ,168
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_golpeadelante.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,60 ,0
DEFB 0 ,126 ,0
DEFB 0 ,238 ,0
DEFB 0 ,164 ,0
DEFB 0 ,30 ,0
DEFB 6 ,62 ,0
DEFB 6 ,20 ,128
DEFB 1 ,128 ,64
DEFB 0 ,96 ,168
DEFB 1 ,158 ,4
DEFB 0 ,0 ,1
DEFB 15 ,255 ,236
DEFB 1 ,255 ,12
DEFB 0 ,0 ,0
DEFB 0 ,8 ,0
DEFB 0 ,226 ,0
DEFB 0 ,118 ,0
DEFB 1 ,180 ,0
DEFB 1 ,137 ,0
DEFB 0 ,96 ,128
DEFB 0 ,24 ,64
DEFB 0 ,6 ,32
DEFB 0 ,5 ,80
DEFB 0 ,10 ,32
DEFB 0 ,48 ,64
DEFB 0 ,64 ,128
DEFB 1 ,129 ,0
DEFB 3 ,250 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,124
DEFB 0 ,0 ,254
DEFB 0 ,0 ,234
DEFB 0 ,0 ,217
DEFB 10 ,0 ,110
DEFB 5 ,80 ,19
DEFB 0 ,10 ,64
DEFB 255 ,224 ,27
DEFB 127 ,204 ,187
DEFB 31 ,22 ,56
DEFB 0 ,22 ,145
DEFB 0 ,16 ,1
DEFB 0 ,3 ,92
DEFB 0 ,0 ,0
DEFB 0 ,3 ,80
DEFB 0 ,0 ,0
DEFB 0 ,6 ,176
DEFB 0 ,6 ,48
DEFB 0 ,2 ,172
DEFB 0 ,8 ,8
DEFB 0 ,2 ,16
DEFB 0 ,0 ,144
DEFB 0 ,0 ,16
DEFB 0 ,0 ,16
DEFB 0 ,0 ,40
DEFB 0 ,49 ,208
DEFB 0 ,31 ,0
DEFB 0 ,8 ,8
DEFB 0 ,16 ,16
DEFB 0 ,32 ,160
DEFB 0 ,25 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 85 ,85 ,80
DEFB 10 ,170 ,170
DEFB 0 ,85 ,85
DEFB 0 ,2 ,170
DEFB 0 ,85 ,85
DEFB 10 ,170 ,170
DEFB 85 ,85 ,80
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,15 ,128
DEFB 0 ,31 ,192
DEFB 0 ,29 ,64
DEFB 0 ,27 ,32
DEFB 0 ,13 ,192
DEFB 0 ,2 ,96
DEFB 0 ,16 ,0
DEFB 62 ,131 ,0
DEFB 13 ,37 ,126
DEFB 3 ,140 ,1
DEFB 1 ,174 ,42
DEFB 4 ,4 ,0
DEFB 1 ,174 ,0
DEFB 8 ,1 ,0
DEFB 0 ,214 ,0
DEFB 0 ,0 ,0
DEFB 0 ,19 ,0
DEFB 0 ,199 ,0
DEFB 0 ,234 ,128
DEFB 1 ,116 ,192
DEFB 0 ,0 ,48
DEFB 0 ,128 ,12
DEFB 0 ,64 ,2
DEFB 0 ,16 ,5
DEFB 0 ,8 ,2
DEFB 0 ,20 ,12
DEFB 0 ,8 ,48
DEFB 0 ,32 ,80
DEFB 0 ,64 ,8
DEFB 0 ,128 ,6
DEFB 1 ,84 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_comboadelante.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,60 ,0
DEFB 0 ,126 ,0
DEFB 0 ,238 ,0
DEFB 0 ,164 ,0
DEFB 0 ,30 ,0
DEFB 6 ,62 ,0
DEFB 6 ,20 ,128
DEFB 1 ,128 ,64
DEFB 0 ,96 ,168
DEFB 1 ,158 ,4
DEFB 0 ,0 ,1
DEFB 15 ,255 ,236
DEFB 1 ,255 ,12
DEFB 0 ,0 ,0
DEFB 0 ,8 ,0
DEFB 0 ,226 ,0
DEFB 0 ,118 ,0
DEFB 1 ,180 ,0
DEFB 1 ,137 ,0
DEFB 0 ,96 ,128
DEFB 0 ,24 ,64
DEFB 0 ,6 ,32
DEFB 0 ,5 ,80
DEFB 0 ,10 ,32
DEFB 0 ,48 ,64
DEFB 0 ,64 ,128
DEFB 1 ,129 ,0
DEFB 3 ,250 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 85 ,85 ,80
DEFB 10 ,170 ,170
DEFB 0 ,85 ,85
DEFB 0 ,2 ,170
DEFB 0 ,85 ,85
DEFB 10 ,170 ,170
DEFB 85 ,85 ,80
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_golpebajo.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,60 ,0
DEFB 0 ,126 ,0
DEFB 0 ,238 ,0
DEFB 0 ,164 ,0
DEFB 6 ,26 ,0
DEFB 6 ,62 ,0
DEFB 0 ,148 ,128
DEFB 2 ,0 ,64
DEFB 1 ,192 ,32
DEFB 0 ,62 ,16
DEFB 0 ,1 ,168
DEFB 0 ,126 ,144
DEFB 3 ,252 ,0
DEFB 7 ,192 ,0
DEFB 0 ,0 ,0
DEFB 0 ,113 ,128
DEFB 0 ,187 ,0
DEFB 0 ,196 ,32
DEFB 6 ,32 ,80
DEFB 7 ,16 ,32
DEFB 6 ,200 ,64
DEFB 4 ,52 ,128
DEFB 4 ,9 ,0
DEFB 3 ,2 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 16 ,0 ,0
DEFB 40 ,0 ,0
DEFB 4 ,60 ,170
DEFB 226 ,126 ,85
DEFB 120 ,238 ,42
DEFB 124 ,164 ,85
DEFB 48 ,26 ,10
DEFB 6 ,190 ,192
DEFB 6 ,20 ,64
DEFB 1 ,192 ,128
DEFB 0 ,62 ,0
DEFB 1 ,0 ,0
DEFB 0 ,4 ,0
DEFB 0 ,245 ,0
DEFB 0 ,4 ,0
DEFB 0 ,122 ,0
DEFB 0 ,0 ,42
DEFB 0 ,113 ,128
DEFB 0 ,187 ,0
DEFB 0 ,196 ,32
DEFB 6 ,32 ,80
DEFB 7 ,16 ,32
DEFB 6 ,200 ,64
DEFB 4 ,52 ,128
DEFB 4 ,9 ,0
DEFB 3 ,2 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 170 ,0 ,0
DEFB 85 ,80 ,0
DEFB 170 ,170 ,128
DEFB 85 ,85 ,80
DEFB 170 ,170 ,168
DEFB 1 ,85 ,84
DEFB 0 ,10 ,170
DEFB 0 ,5 ,84
DEFB 0 ,2 ,170
DEFB 0 ,1 ,84
DEFB 0 ,2 ,170
DEFB 0 ,5 ,84
DEFB 0 ,42 ,160
DEFB 85 ,85 ,0
DEFB 170 ,160 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,7 ,132
DEFB 0 ,15 ,208
DEFB 0 ,29 ,212
DEFB 0 ,20 ,154
DEFB 0 ,3 ,88
DEFB 1 ,167 ,218
DEFB 1 ,146 ,157
DEFB 0 ,64 ,28
DEFB 0 ,71 ,29
DEFB 0 ,34 ,156
DEFB 0 ,18 ,29
DEFB 0 ,82 ,154
DEFB 0 ,8 ,24
DEFB 0 ,102 ,20
DEFB 0 ,1 ,128
DEFB 0 ,112 ,122
DEFB 0 ,187 ,24
DEFB 0 ,222 ,2
DEFB 0 ,68 ,16
DEFB 0 ,32 ,128
DEFB 0 ,16 ,64
DEFB 0 ,8 ,32
DEFB 6 ,4 ,80
DEFB 7 ,202 ,32
DEFB 6 ,52 ,64
DEFB 4 ,0 ,128
DEFB 2 ,1 ,0
DEFB 1 ,130 ,168
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_golpeatras.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,60 ,0
DEFB 0 ,126 ,0
DEFB 0 ,238 ,0
DEFB 0 ,164 ,0
DEFB 0 ,30 ,0
DEFB 6 ,62 ,0
DEFB 6 ,20 ,128
DEFB 1 ,128 ,64
DEFB 0 ,96 ,168
DEFB 1 ,158 ,4
DEFB 0 ,0 ,1
DEFB 15 ,255 ,236
DEFB 1 ,255 ,12
DEFB 0 ,0 ,0
DEFB 0 ,8 ,0
DEFB 0 ,226 ,0
DEFB 0 ,118 ,0
DEFB 1 ,180 ,0
DEFB 1 ,137 ,0
DEFB 0 ,96 ,128
DEFB 0 ,24 ,64
DEFB 0 ,6 ,32
DEFB 0 ,5 ,80
DEFB 0 ,10 ,32
DEFB 0 ,48 ,64
DEFB 0 ,64 ,128
DEFB 1 ,129 ,0
DEFB 3 ,250 ,168
DEFB 0 ,0 ,0
DEFB 0 ,0 ,124
DEFB 0 ,0 ,254
DEFB 0 ,0 ,234
DEFB 0 ,0 ,217
DEFB 10 ,0 ,110
DEFB 5 ,80 ,19
DEFB 0 ,10 ,64
DEFB 255 ,224 ,27
DEFB 127 ,204 ,187
DEFB 31 ,22 ,56
DEFB 0 ,22 ,145
DEFB 0 ,16 ,1
DEFB 0 ,3 ,92
DEFB 0 ,0 ,0
DEFB 0 ,3 ,80
DEFB 0 ,0 ,0
DEFB 0 ,6 ,176
DEFB 0 ,6 ,48
DEFB 0 ,2 ,172
DEFB 0 ,8 ,8
DEFB 0 ,2 ,16
DEFB 0 ,0 ,144
DEFB 0 ,0 ,16
DEFB 0 ,0 ,16
DEFB 0 ,0 ,40
DEFB 0 ,49 ,208
DEFB 0 ,31 ,0
DEFB 0 ,8 ,8
DEFB 0 ,16 ,16
DEFB 0 ,32 ,160
DEFB 0 ,25 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 85 ,85 ,80
DEFB 10 ,170 ,170
DEFB 0 ,85 ,85
DEFB 0 ,2 ,170
DEFB 0 ,85 ,85
DEFB 10 ,170 ,170
DEFB 85 ,85 ,80
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,15 ,128
DEFB 0 ,31 ,192
DEFB 0 ,29 ,64
DEFB 0 ,27 ,32
DEFB 0 ,13 ,192
DEFB 0 ,2 ,96
DEFB 0 ,16 ,0
DEFB 62 ,131 ,0
DEFB 13 ,37 ,126
DEFB 3 ,140 ,1
DEFB 1 ,174 ,42
DEFB 4 ,4 ,0
DEFB 1 ,174 ,0
DEFB 8 ,1 ,0
DEFB 0 ,214 ,0
DEFB 0 ,0 ,0
DEFB 0 ,19 ,0
DEFB 0 ,199 ,0
DEFB 0 ,234 ,128
DEFB 1 ,116 ,192
DEFB 0 ,0 ,48
DEFB 0 ,128 ,12
DEFB 0 ,64 ,2
DEFB 0 ,16 ,5
DEFB 0 ,8 ,2
DEFB 0 ,20 ,12
DEFB 0 ,8 ,48
DEFB 0 ,32 ,80
DEFB 0 ,64 ,8
DEFB 0 ,128 ,6
DEFB 1 ,84 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_espada_ouch.sev:
DEFB 32 ,0 ,64
DEFB 48 ,0 ,32
DEFB 48 ,248 ,80
DEFB 57 ,144 ,32
DEFB 59 ,188 ,80
DEFB 59 ,194 ,0
DEFB 59 ,4 ,0
DEFB 57 ,136 ,32
DEFB 56 ,68 ,2
DEFB 58 ,56 ,32
DEFB 49 ,128 ,68
DEFB 48 ,112 ,16
DEFB 39 ,168 ,160
DEFB 0 ,33 ,10
DEFB 119 ,168 ,160
DEFB 112 ,32 ,0
DEFB 115 ,210 ,136
DEFB 0 ,0 ,36
DEFB 33 ,136 ,16
DEFB 3 ,216 ,0
DEFB 4 ,226 ,0
DEFB 6 ,0 ,160
DEFB 1 ,128 ,80
DEFB 0 ,96 ,32
DEFB 0 ,24 ,64
DEFB 0 ,20 ,128
DEFB 0 ,41 ,0
DEFB 0 ,66 ,0
DEFB 0 ,129 ,80
DEFB 3 ,0 ,0
DEFB 1 ,192 ,0
DEFB 0 ,240 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
esqueleto_muere.sev:
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,56 ,0
DEFB 2 ,124 ,4
DEFB 32 ,146 ,4
DEFB 2 ,146 ,6
DEFB 8 ,108 ,6
DEFB 2 ,56 ,7
DEFB 87 ,84 ,7
DEFB 66 ,1 ,135
DEFB 192 ,57 ,134
DEFB 204 ,214 ,70
DEFB 236 ,16 ,64
DEFB 224 ,124 ,44
DEFB 232 ,16 ,44
DEFB 104 ,40 ,16
DEFB 8 ,0 ,16
DEFB 48 ,238 ,0
DEFB 49 ,109 ,0
DEFB 9 ,17 ,0
DEFB 0 ,130 ,0
DEFB 0 ,130 ,0
DEFB 0 ,130 ,0
DEFB 0 ,68 ,0
DEFB 0 ,68 ,0
DEFB 0 ,130 ,0
DEFB 0 ,130 ,0
DEFB 1 ,1 ,0
DEFB 1 ,1 ,0
DEFB 3 ,1 ,128
DEFB 7 ,239 ,192
DEFB 2 ,0 ,0
DEFB 0 ,48 ,0
DEFB 0 ,74 ,0
DEFB 130 ,204 ,0
DEFB 0 ,246 ,0
DEFB 32 ,204 ,128
DEFB 0 ,74 ,8
DEFB 0 ,48 ,128
DEFB 0 ,0 ,32
DEFB 66 ,0 ,132
DEFB 0 ,1 ,212
DEFB 0 ,0 ,134
DEFB 0 ,0 ,38
DEFB 16 ,0 ,135
DEFB 0 ,56 ,7
DEFB 2 ,214 ,135
DEFB 64 ,17 ,134
DEFB 64 ,124 ,70
DEFB 192 ,16 ,64
DEFB 204 ,40 ,44
DEFB 236 ,0 ,44
DEFB 224 ,238 ,16
DEFB 233 ,109 ,16
DEFB 105 ,17 ,0
DEFB 8 ,130 ,0
DEFB 48 ,68 ,0
DEFB 48 ,40 ,0
DEFB 8 ,68 ,0
DEFB 0 ,130 ,0
DEFB 1 ,1 ,0
DEFB 3 ,1 ,128
DEFB 7 ,239 ,192
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,128
DEFB 0 ,0 ,2
DEFB 0 ,0 ,0
DEFB 0 ,0 ,128
DEFB 0 ,0 ,16
DEFB 0 ,0 ,0
DEFB 0 ,84 ,0
DEFB 0 ,56 ,132
DEFB 0 ,108 ,0
DEFB 0 ,146 ,0
DEFB 0 ,146 ,16
DEFB 0 ,124 ,0
DEFB 0 ,56 ,128
DEFB 0 ,0 ,2
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,128
DEFB 0 ,56 ,0
DEFB 0 ,214 ,0
DEFB 0 ,16 ,48
DEFB 0 ,124 ,49
DEFB 24 ,16 ,35
DEFB 24 ,40 ,35
DEFB 4 ,0 ,38
DEFB 2 ,238 ,70
DEFB 225 ,109 ,78
DEFB 125 ,82 ,92
DEFB 63 ,133 ,32
DEFB 0 ,111 ,192
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,1 ,128
DEFB 0 ,10 ,64
DEFB 0 ,38 ,96
DEFB 0 ,77 ,224
DEFB 0 ,198 ,96
DEFB 1 ,42 ,80
DEFB 10 ,81 ,152
DEFB 24 ,0 ,32
DEFB 4 ,238 ,64
DEFB 2 ,108 ,255
DEFB 255 ,145 ,62
DEFB 31 ,239 ,216
| 20.477893 | 72 | 0.478425 |
d218534abceed3c42d708fe76990e202c327820d | 1,794 | asm | Assembly | programs/oeis/249/A249453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/249/A249453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/249/A249453.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A249453: a(0) = 4; for n>0, a(n) = a(n-1) + 2^n - 3.
; 4,3,4,9,22,51,112,237,490,999,2020,4065,8158,16347,32728,65493,131026,262095,524236,1048521,2097094,4194243,8388544,16777149,33554362,67108791,134217652,268435377,536870830,1073741739,2147483560,4294967205,8589934498,17179869087,34359738268,68719476633,137438953366,274877906835,549755813776,1099511627661,2199023255434,4398046510983,8796093022084,17592186044289,35184372088702,70368744177531,140737488355192,281474976710517,562949953421170,1125899906842479,2251799813685100,4503599627370345,9007199254740838,18014398509481827,36028797018963808,72057594037927773,144115188075855706,288230376151711575,576460752303423316,1152921504606846801,2305843009213693774,4611686018427387723,9223372036854775624,18446744073709551429,36893488147419103042,73786976294838206271,147573952589676412732,295147905179352825657,590295810358705651510,1180591620717411303219,2361183241434822606640,4722366482869645213485,9444732965739290427178,18889465931478580854567,37778931862957161709348,75557863725914323418913,151115727451828646838046,302231454903657293676315,604462909807314587352856,1208925819614629174705941,2417851639229258349412114,4835703278458516698824463,9671406556917033397649164,19342813113834066795298569,38685626227668133590597382,77371252455336267181195011,154742504910672534362390272,309485009821345068724780797,618970019642690137449561850,1237940039285380274899123959,2475880078570760549798248180,4951760157141521099596496625,9903520314283042199192993518,19807040628566084398385987307,39614081257132168796771974888,79228162514264337593543950053,158456325028528675187087900386,316912650057057350374175801055,633825300114114700748351602396,1267650600228229401496703205081
mov $1,2
pow $1,$0
sub $1,$0
sub $0,$1
sub $1,$0
add $1,2
mov $0,$1
| 163.090909 | 1,669 | 0.906355 |
9619044a2a3107c4937cc6364fd8a95ee954883f | 6,450 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_528.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_528.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_528.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1574b, %rax
nop
nop
nop
xor $8119, %r11
movw $0x6162, (%rax)
nop
nop
and $26057, %r13
lea addresses_A_ht+0x19f4b, %rdx
nop
nop
add $16007, %r9
movb $0x61, (%rdx)
cmp $28125, %rdx
lea addresses_D_ht+0x1dfcb, %r8
nop
sub %rax, %rax
vmovups (%r8), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %r12
nop
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_UC_ht+0x24b, %r13
nop
nop
sub $33187, %r8
movw $0x6162, (%r13)
nop
cmp %r11, %r11
lea addresses_WT_ht+0x9f4b, %rsi
lea addresses_WC_ht+0x120a3, %rdi
nop
nop
nop
nop
cmp %r11, %r11
mov $27, %rcx
rep movsb
nop
nop
nop
sub %r12, %r12
lea addresses_WC_ht+0x12f4b, %rdi
nop
inc %r8
mov (%rdi), %rsi
nop
nop
dec %rax
lea addresses_A_ht+0x5cb, %rsi
lea addresses_WT_ht+0x1a90f, %rdi
nop
dec %r9
mov $82, %rcx
rep movsq
nop
nop
nop
nop
and $60764, %rcx
lea addresses_WT_ht+0xf74b, %r11
nop
nop
dec %r13
movups (%r11), %xmm1
vpextrq $0, %xmm1, %rax
xor $11616, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rax
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x15b4b, %rsi
lea addresses_A+0x1a7f3, %rdi
cmp $22255, %r10
mov $39, %rcx
rep movsq
nop
nop
nop
nop
sub $16717, %rsi
// Store
lea addresses_WC+0x172b, %r11
xor $37046, %rax
movw $0x5152, (%r11)
nop
dec %rsi
// Faulty Load
lea addresses_UC+0xa74b, %rax
nop
nop
nop
sub %r11, %r11
vmovups (%rax), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rdi
lea oracles, %rsi
and $0xff, %rdi
shlq $12, %rdi
mov (%rsi,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_RW'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}, 'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 38.392857 | 2,999 | 0.655969 |
86566ca263aedb3abb383cabecd366c694774265 | 2,356 | asm | Assembly | asm/tests/manual/branch.asm | ZopharsDomain/PCX86-JAVASCRIPT-jemul8 | 0c4828db606f9163e833258b77db8ebf3da09388 | [
"MIT"
] | 67 | 2015-01-04T14:55:27.000Z | 2022-01-05T05:41:55.000Z | asm/tests/manual/branch.asm | ZopharsDomain/PCX86-JAVASCRIPT-jemul8 | 0c4828db606f9163e833258b77db8ebf3da09388 | [
"MIT"
] | 3 | 2015-09-26T19:37:17.000Z | 2021-11-23T00:37:30.000Z | asm/tests/manual/branch.asm | ZopharsDomain/PCX86-JAVASCRIPT-jemul8 | 0c4828db606f9163e833258b77db8ebf3da09388 | [
"MIT"
] | 14 | 2015-01-17T11:32:49.000Z | 2021-12-26T12:47:22.000Z | ; branch.asm - A program to test the Intel 8086 CPU's
; various conditional branching operations. Designed to
; verify corrent functionality of my 8086 PC emulator, Fake86.
org 500h
%ifdef COMMENT
jmp 0x07C0:start
start:
cli
; update DS to be 7C0 instead of 0
push CS
pop DS
; update ES also
push CS
pop ES
%endif
; create stack
mov ax, 0x0000
mov ss, ax
mov sp, 0xFFFD
; ==== Start of code ====
mov si, banner
call printmsg
testjc:
mov si, strjc
call printmsg
call blankflags
call setcf
jc testjc2
call fail
jmp testjnc
testjc2:
call blankflags
mov bx, testjnc
push bx
jc fail
pop bx ;not used, just cleaning up the stack
call pass
testjnc:
finished:
ret
pass:
mov si, strgood
call printmsg
ret
fail:
mov si, strfail
call printmsg
ret
blankflags:
xor ax, ax
push ax
popf
ret
setcf:
stc
ret
setof:
pushf
pop ax
or ah, 00001000b
push ax
popf
ret
setsf:
pushf
pop ax
or al, 10000000b
push ax
popf
ret
setzf:
pushf
pop ax
or al, 01000000b
push ax
popf
ret
setpf:
pushf
pop ax
or al, 00000100b
push ax
popf
ret
printmsg:
mov ah, 0Eh
cld
lodsb
cmp al, 0
jz done
int 10h
jmp printmsg
done:
ret
banner db '8086 CPU conditional branch test utility',13,10
db 'Written on 3/4/2011 by Mike Chambers',13,10,13,10,0
strjc db 'Testing JC/JB/JNAE (jump if CF=1)... ',0
strjnc db 'Testing JNC/JNB/JAE (jump if CF=0)... ',0
strjz db 'Testing JZ/JE (jump if ZF=1)... ',0
strjnz db 'Testing JNZ/JNE (jump if ZF=0)... ',0
strjs db 'Testing JS (jump if SF=1)... ',0
strjns db 'Testing JNS (jump if SF=0)... ',0
strjo db 'Testing JO (jump if OF=1)... ',0
strjno db 'Testing JNO (jump if OF=0)... ',0
strjp db 'Testing JP/JPE (jump if PF=1)... ',0
strjnp db 'Testing JNP/JPO (jump if PF=0)... ',0
strja db 'Testing JA/JNBE (jump if CF=0 and ZF=0)... ',0
strjbe db 'Testing JBE/JNA (jump if CF=1 or ZF=1)... ',0
strjg db 'Testing JG/JNLE (jump if SF=OF and ZF=0)... ',0
strjge db 'Testing JGE/JNL (jump if SF=OF)... ',0
strjl db 'Testing JL/JNGE (jump if SF<>OF)... ',0
strjle db 'Testing JLE/JNG (jump if SF<>OF or ZF=1)... ',0
strgood db 'passed!',13,10,0
strfail db 'FAILED!',13,10,0
; ==== End of code ====
; Make the file 512 bytes long
;TIMES 510-($-$$) DB 0
; Add the boot signature
;dw 0AA55h
| 16.591549 | 63 | 0.646859 |
b2865a4fb8f8d3123450c991bff64bbf0f5d6aba | 367 | asm | Assembly | programs/oeis/213/A213045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/213/A213045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/213/A213045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A213045: Number of (w,x,y) with all terms in {0,...,n} and 2|w-x|>max(w,x,y)-min(w,x,y).
; 0,4,14,36,72,128,206,312,448,620,830,1084,1384,1736,2142,2608,3136,3732,4398,5140,5960,6864,7854,8936,10112,11388,12766,14252,15848,17560,19390,21344,23424,25636,27982,30468,33096,35872,38798,41880
mul $0,4
add $0,4
mov $1,$0
bin $0,3
add $0,$1
div $0,8
mul $0,6
div $0,12
| 30.583333 | 199 | 0.683924 |
203f55982f363a5c0f1f91de2b9ea9414b7293fc | 240 | asm | Assembly | libsrc/_DEVELOPMENT/string/c/sccz80/strlcat_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strlcat_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/_DEVELOPMENT/string/c/sccz80/strlcat_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z |
; size_t strlcat(char * restrict s1, const char * restrict s2, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC strlcat_callee
EXTERN asm_strlcat
strlcat_callee:
pop hl
pop bc
pop de
ex (sp),hl
jp asm_strlcat
| 12.631579 | 72 | 0.716667 |
2270daaafe31dbb085033f52936b6758e525bf72 | 106 | asm | Assembly | src/float.asm | MrPivato/mips_files | f0782d70a810b9fdb8923fc1f3d8882b021d079b | [
"MIT"
] | null | null | null | src/float.asm | MrPivato/mips_files | f0782d70a810b9fdb8923fc1f3d8882b021d079b | [
"MIT"
] | null | null | null | src/float.asm | MrPivato/mips_files | f0782d70a810b9fdb8923fc1f3d8882b021d079b | [
"MIT"
] | null | null | null | .data
pi: .float 3.141592 # floats must be loaded to coproc 1
.text
li $v0, 2
lwc1 $f12, pi
syscall | 17.666667 | 56 | 0.660377 |
fe6c65235531bbea2ea03a295825343cfb21b531 | 1,131 | asm | Assembly | source/simd_test/dot_avx_asm_x64.asm | sgryjp/simd_test | 11a154d055f8442468ad6fbff9a9f69a6f3d9f37 | [
"MIT"
] | null | null | null | source/simd_test/dot_avx_asm_x64.asm | sgryjp/simd_test | 11a154d055f8442468ad6fbff9a9f69a6f3d9f37 | [
"MIT"
] | null | null | null | source/simd_test/dot_avx_asm_x64.asm | sgryjp/simd_test | 11a154d055f8442468ad6fbff9a9f69a6f3d9f37 | [
"MIT"
] | null | null | null | ; float __fastcall dot_avx_asm(const float *a, const float *b, size_t len);
;
public dot_avx_asm
.code
dot_avx_asm PROC
; x64 calling convension:
; - rcx ... a (1st argument)
; - rdx ... b (2nd argument)
; - r8d ... len (3rd argument)
; - xmm0 ... return value (for float type)
mov r10, rsp ; secure RSP to R10
and rsp, 18446744073709551584 ; 0xFFFFFFFFFFFFFFE0... discarding lower 32 bits to align
sub rsp, 32 ; allocate `float accum[8];`
mov r9, rsp ; R9= accum
vxorps ymm0, ymm0, ymm0 ; nullify ymm0 register
mov rax, 0 ; using RAX as offset
multiplication:
vmovaps ymm1, YMMWORD PTR [rcx+rax] ; ymm0[0:7]= a[0:7]
vdpps ymm1, ymm1, YMMWORD PTR [rdx+rax], 241 ; (ymm0[0:1], ymm0[4:5])= dot(ymm0[0:7], b[0:7], 0xf1) <_mm_dp_ps>
vextractf128 xmm2, ymm1, 1 ; ymm2[0:3]= ymm1[4:7]
addss xmm0, xmm1 ; ymm0[0:1]+=ymm1[0:1]
addss xmm0, xmm2 ; ymm0[0:1]+=ymm2[0:1]
add rax, 32 ; a+= 32; b+= 32
sub r8d, 8 ; len-= 8
jne multiplication ; if (len != 0) goto multiplication
mov rsp, r10
ret 0
dot_avx_asm endp
end
| 29.763158 | 114 | 0.60389 |
9856b233adc1ea8ff63f4e8fb250acfab3d2b273 | 248 | asm | Assembly | programs/oeis/090/A090650.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/090/A090650.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/090/A090650.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A090650: n^(n+6).
; 1,256,19683,1048576,48828125,2176782336,96889010407,4398046511104,205891132094649,10000000000000000,505447028499293771,26623333280885243904,1461920290375446110677,83668255425284801560576
mov $1,$0
add $0,1
add $1,7
pow $0,$1
| 31 | 188 | 0.818548 |
b7019d6b4310d05a235ca855fe83e38f3ee33722 | 708 | asm | Assembly | oeis/077/A077996.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077996.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077996.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077996: Expansion of (1-x)/(1-2*x-x^2-2*x^3).
; Submitted by Jamie Morken(s1)
; 1,1,3,9,23,61,163,433,1151,3061,8139,21641,57543,153005,406835,1081761,2876367,7648165,20336219,54073337,143779223,382304221,1016534339,2702931345,7187005471,19110010965,50812890091,135109802089,359252516199,955240614669,2539953349715,6753652346497,17957739272047,47749037590021,126963119145083,337590754424281,897642703173687,2386802399061821,6346429010145891,16874945825700977,44869925459671487,119307654765335733,317235126641744907,843517758968168521,2242885954108753415,5963759920469165165
mul $0,2
mov $1,1
mov $2,1
lpb $0
sub $0,2
sub $1,$3
add $2,$3
add $3,$1
add $1,$2
add $1,$2
mul $3,2
lpe
mov $0,$2
| 39.333333 | 495 | 0.793785 |
058a9d8ff14f4de86809d67a1ffe9b9ed41b9590 | 1,405 | asm | Assembly | comUI.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | comUI.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | comUI.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | NAME COMUI
$INCLUDE(ace.inc)
$INCLUDE(serial.inc)
CGROUP GROUP CODE
DGROUP GROUP DATA, STACK
CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CGROUP
ASSUME DS:DGROUP
EXTRN DispInit:NEAR
EXTRN InitKey:NEAR
EXTRN InitParallel:NEAR
EXTRN InitSerial:NEAR
EXTRN InitCS:NEAR
EXTRN InitTimer2:NEAR
EXTRN InitIllegalEvH:NEAR
EXTRN InitSrlEvH:NEAR
EXTRN InitIOEvH:NEAR
EXTRN DebugReset:NEAR
EXTRN Command:NEAR
START:
MAIN:
MOV AX, DGROUP ;initialize the stack pointer
MOV SS, AX
MOV SP, OFFSET(DGROUP:TopOfStack)
MOV AX, DGROUP ;initialize the data segment
MOV DS, AX
CALL InitCS ;set up chip selects (does not setup LCS/UCS)
CALL InitIllegalEvH ;hook all event handlers
CALL InitIOEvH
CALL InitSrlEvH
CALL InitTimer2
CALL DispInit ;initialize the display
CALL InitKey ;initialize the keypad
MOV AX, SERIAL_BR_DFLTDVSR ;set a baud rate
MOV BL, ACE_LCR_PAR_OFF ;no parity
CALL InitSerial ;initialize the serial port
STI
loopforever:
CALL DebugReset ;serial debug mode off on first-boot
CALL Command
JMP loopforever
CODE ENDS
DATA SEGMENT PUBLIC 'DATA'
DATA ENDS
STACK SEGMENT STACK 'STACK'
DB 80 DUP ('Stack ') ;240 words
TopOfStack LABEL WORD
STACK ENDS
END START
| 18.486842 | 67 | 0.659786 |
2f85cfb2ed95d83e98df5c9ceea4892f693a9715 | 1,375 | asm | Assembly | src/getshort.asm | mp81ss/dos16lfn | 0ac1d38bc2eb0edf91a4dce356111231966acd06 | [
"BSD-3-Clause"
] | 2 | 2017-12-07T03:11:32.000Z | 2022-03-01T00:46:49.000Z | src/getshort.asm | mp81ss/dos16lfn | 0ac1d38bc2eb0edf91a4dce356111231966acd06 | [
"BSD-3-Clause"
] | null | null | null | src/getshort.asm | mp81ss/dos16lfn | 0ac1d38bc2eb0edf91a4dce356111231966acd06 | [
"BSD-3-Clause"
] | null | null | null | .8086
.model large, C
include dos16l_.inc
; int get_short16l(char* short_name, unsigned int len, const char* long_name);
public get_short16l
.CODE
get_short16l PROC p_short:DWORD, len:WORD, p_long:DWORD
IS_NULL_PTR p_short
mov ax, 9
je short f_end
IS_NULL_PTR p_long
mov ax, 9
je short f_end
push si
push di
push ds
push es
lds si, [p_long]
.IF [len] >= SHORT_BUFFER_SIZE
les di, [p_short]
.ELSE
mov ax, SEG main_buffer
mov es, ax
mov di, OFFSET main_buffer
.ENDIF
mov cx, 8001h
stc
DOSW 7160h
.IF !CARRY?
xor ax, ax
.IF [len] < SHORT_BUFFER_SIZE
mov ax, SEG main_buffer
mov ds, ax
mov si, OFFSET main_buffer
STR_LEN
.IF cx > [len]
mov ax, 18h
.ELSE
TRANSFER_TO p_short
xor ax, ax
.ENDIF
.ENDIF
.ENDIF
pop es
pop ds
pop di
pop si
f_end:
ret
get_short16l ENDP
END
| 22.916667 | 79 | 0.419636 |
6b57677408f8150108ae89ba1ec2af6cece077c1 | 2,572 | asm | Assembly | CS61/cs61_labs/lab-8-Kuzame/lab08_ex1.asm | Kuzame/CS61 | d384dd8170e86464d15c7c02745e33113537c832 | [
"Apache-2.0"
] | 1 | 2018-10-12T20:39:46.000Z | 2018-10-12T20:39:46.000Z | CS61/cs61_labs/lab-8-Kuzame/lab08_ex1.asm | Kuzame/CS61 | d384dd8170e86464d15c7c02745e33113537c832 | [
"Apache-2.0"
] | null | null | null | CS61/cs61_labs/lab-8-Kuzame/lab08_ex1.asm | Kuzame/CS61 | d384dd8170e86464d15c7c02745e33113537c832 | [
"Apache-2.0"
] | null | null | null | ;=================================================
; Name: Adrian Harminto
; Email: aharm002@ucr.edu
;
; Lab: lab 8
; Lab section: 24
; TA: Bryan Marsh
;=================================================
;--------------------------------------------------------------------------------------------------
; Subroutine: SUB_IS_A_PALINDROME
; Parameter (R0): The address of a string
; Parameter (R5): The number of characters in the array.
; Postcondition: The subroutine has determined whether the string at (R0) is
; a palindrome or not, and returned a flag to that effect.
; Return Value: R4 {1 if the string is a palindrome, 0 otherwise}
;--------------------------------
.ORIG x3000
LD R0, string_data
JSR sub_get_string
HALT
sub_get_string .FILL x3800
string_data .FILL x5000
;-------------------------- sub_get_string ------------------------------
;---------------------------------------------------------------------------------
; Subroutine: SUB_GET_STRING
; Parameter (R0): The address of where to start storing the string
; Postcondition: The subroutine has allowed the user to input a string,
; terminated by the [ENTER] key, and has stored it in an array
; that starts at (R0) and is NULL-terminated.
; Return Value: R5 The number of non-sentinel characters read from the user
;---------------------------------------------------------------------------------
.ORIG x3800
; restoring data
ST R0, BACKUP_R0_3800
ST R1, BACKUP_R1_3800
ST R2, BACKUP_R2_3800
ST R3, BACKUP_R3_3800
ST R4, BACKUP_R4_3800
ST R5, BACKUP_R5_3800
ST R6, BACKUP_R6_3800
ST R7, BACKUP_R7_3800
ADD R4, R0, #0 ; R4 Preserve the original address here for printing
ADD R5, R0, #0 ; R5 will use address and add characters to it
ADD R6, R0, #0 ; R5 minus the original address (R6) to count number of characters
NOT R6, R6
ADD R6, R6, #1
Loop
GETC
OUT
BRz END_LOOP
STR R0, R5, #0
ADD R5, R5, #1
ADD R1, R0, #-10
BRnp Loop
ADD R5, R5, #-1
ADD R5, R5, R6
END_LOOP
LEA R0, NEWLINE
PUTS
ADD R0, R4, #0
PUTS
LEA R0, NEWLINE
PUTS
; restoring data
LD R0, BACKUP_R0_3800
LD R1, BACKUP_R1_3800
LD R2, BACKUP_R2_3800
LD R3, BACKUP_R3_3800
LD R4, BACKUP_R4_3800
;LD R5, BACKUP_R5_3800
LD R6, BACKUP_R6_3800
LD R7, BACKUP_R7_3800
; returning
RET
NEWLINE .STRINGZ "\n"
BACKUP_R0_3800 .BLKW #1
BACKUP_R1_3800 .BLKW #1
BACKUP_R2_3800 .BLKW #1
BACKUP_R3_3800 .BLKW #1
BACKUP_R4_3800 .BLKW #1
BACKUP_R5_3800 .BLKW #1
BACKUP_R6_3800 .BLKW #1
BACKUP_R7_3800 .BLKW #1
.ORIG x5000
.end
| 25.215686 | 100 | 0.58437 |
e72453575f524d0aafbf588dddfab5485bf2aad3 | 252 | asm | Assembly | asm/test.asm | liuyic00/leros | ba72f456dea08933780ce3e999d65a8bc14d0550 | [
"BSD-2-Clause"
] | null | null | null | asm/test.asm | liuyic00/leros | ba72f456dea08933780ce3e999d65a8bc14d0550 | [
"BSD-2-Clause"
] | null | null | null | asm/test.asm | liuyic00/leros | ba72f456dea08933780ce3e999d65a8bc14d0550 | [
"BSD-2-Clause"
] | null | null | null | // Test code
// first instruction is not executed
nop
// second instruction is executed twice
// Test jal for function calls
//
// jump and link has one cycle delay
// for target address in accu
//
start:
load 1
store r1
store r2
store r3
end:
| 13.263158 | 39 | 0.706349 |
0de6c5a272a88c1e16ec2d32e6bdc153caad5424 | 605 | asm | Assembly | libsrc/stdio/sprinter/fputc_cons.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/stdio/sprinter/fputc_cons.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | libsrc/stdio/sprinter/fputc_cons.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | ;
; Small C+ Library Functions
;
; Renamed once more and rechristened for ANSIstdio
;
; This outputs a character to the console
;
; 1/4/2000 (Original Aug 98)
;
;
;
; $Id: fputc_cons.asm,v 1.2 2002/10/02 11:21:55 dom Exp $
;
XLIB fputc_cons ;Print char
.fputc_cons
ld hl,2
add hl,sp
ld a,(hl)
cp 8
jr nz,fputc_cons1
ld c,$53 ;CURSOR
rst $10
ld a,e
and a
ret z
dec e
ld c,$52 ;LOCATE
rst $10
ret
.fputc_cons1
cp 13
jr nz,fputc_cons2
ld a,10
ld c,$5b ;PUTCHAR
rst $10
ld a,13
.fputc_cons2
ld c,$5b ;PUTCHAR
rst $10
ret
| 13.75 | 57 | 0.596694 |
df7e29d68d103c70d33eff735d57ba3f631fda90 | 18,366 | asm | Assembly | base/mvdm/sim16/sim16.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/mvdm/sim16/sim16.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/mvdm/sim16/sim16.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ;******************************************************************************
;
; Simulator 16
;
; Author : Chandan Chauhan
;
; Date : 1/28/91
;
;******************************************************************************
include incs.inc ; segment definitions
MAXSIZE EQU 1024 ; 1k length
Arg1 EQU [bp+6]
Arg2 EQU [bp+8]
WOW32_Buffer EQU [bp+6] ; buffer address
WOW32_Size EQU [bp+8] ; length of VDM memory
WOW32_Off EQU [bp+10] ; off of VDM memory
WOW32_Sel EQU [bp+12] ; sel of VDM memory
WOWStackNP EQU [bp+6] ; WOWStack
WOWStackOff EQU [bp+6]
WOWStackSel EQU [bp+8]
extrn Initialize:near
MAIN_DATA SEGMENT
PUBLIC TransmitPkt, ReceivePkt, ReceivePktPtr, RespPkt, ToWOW32Pkt
PUBLIC ACKPkt, NAKPkt, GetMemPkt, SetMemPkt, WAKEUPPkt
PUBLIC fReceive, fRxCount, fRxError, RxPktLen
PUBLIC fTxCount, fTransmitting
PUBLIC fInitTime
PUBLIC VDMAddress
PUBLIC WOWStack, WOW32Buffer
Reserved DB 16 DUP (0) ; reserved
TransmitPkt DD -1 ; packet being transmitted
TransmitPktLen DW 0 ; packet being transmitted
TransmitPktPtr DW 0 ; byte to Tx
ReceivePkt DB MAXSIZE DUP (0FFh) ; packet being received
ReceivePktPtr DW 0 ; packet being received
RespPkt DB MAXSIZE DUP (0FFh) ; packet being transmitted
ToWOW32Pkt DB 9 DUP (?) ; ToWOW32 packet
DB 0
WAKEUPPkt DB 9 DUP (0) ; WAKEUP packet
DB 0
ACKPkt DB 5 DUP (?) ; ACK packet
DB 0
NAKPkt DB 5 DUP (?) ; NAK packet
DB 0
GetMemPkt DB MAXSIZE DUP (?) ;***************
SetMemPkt DB MAXSIZE DUP (?) ;***************
VDMAddress DD -1 ; stores VDM sel:off
VDMLength DW -1 ; number of bytes
WOW32Buffer DD -1 ; ptr caller's buffer
WOWStack DD -1 ; ptr to caller's WOWStack
fTxCount DW 0
fTransmitting DW 0
fReceive DW 0
fRxCount DW 0
fRxError DW 0
fInitTime DW 0
fInitDLL DW 0
RxPktLen DW 0
Stack DW 256 DUP (?)
StackTop DW ?
OldSS DW ?
OldSP DW ?
Scratch DW ?
fStackUse DW -1
IntRoutines LABEL WORD
DW COMISR_MSR
DW COMISR_Transmit
DW COMISR_Receive
DW COMISR_LSR
HelloString DB cr, lf, 'WOW Simulator *****', cr, lf, lf
DB 'Hello, this is a test string !!!!!!!!!!', cr, lf
HelloStringLen EQU $ - HelloString
MAIN_DATA ENDS
MAIN_CODE SEGMENT
ASSUME CS:MAIN_CODE, DS:MAIN_DATA, ES:NOTHING
;*****************************************************************************
; S I M U L A T O R L A Y E R
;*****************************************************************************
;*****************************************************************************
;
; Sim32SendSim16
;
;*****************************************************************************
;***************
PROCEDURE Sim32SendSim16 PUBLIC, FAR
push bp ; save stack frame
mov bp, sp
pusha ; temps...
push ds ; temps...
push es ; temps...
mov bx, ds
mov ax, SEG MAIN_DATA
mov ds, ax
mov si, OFFSET WAKEUPPkt ; DS:SI -> WAKEUP packet
mov ax, WOWStackNP
mov WOWStack._off, ax
mov WOWStack._sel, bx
cmp fInitTime, 0
je Sim32SendSim16_Init
les bx, WOWStack ; ES:BX -> SS:SP of WOW VDM task
mov ax, es:[bx]._off ; get SP
mov [si].MEM_OFF, ax
mov ax, es:[bx]._sel ; get SS
mov [si].MEM_SEL, ax
call Xceive
Sim32SendSim16_Ret:
les bx, WOWStack ; ES:BX -> SS:SP of WOW VDM task
mov di, OFFSET ReceivePkt
mov ax, [di].ToWOW32_OFF
mov es:[bx]._off, ax
mov ax, [di].ToWOW32_SEL
mov es:[bx]._sel, ax
pop es ; temps...
pop ds ; temps...
popa ; temps...
mov sp, bp
pop bp
ret 2
Sim32SendSim16_Init:
call Receive
inc fInitTime
call Initialize
jmp SHORT Sim32SendSim16_Ret
Sim32SendSim16 ENDP
;*****************************************************************************
;
; Sim32GetVDMMemory
;
;*****************************************************************************
;***************
PROCEDURE Sim32GetVDMMemory PUBLIC, FAR
push bp ; save stack frame
mov bp, sp
pusha ; temps...
push ds ; temps...
push es ; temps...
mov bx, ds
mov ax, SEG MAIN_DATA
mov ds, ax
mov si, OFFSET GetMemPkt ; DS:SI -> ToWOW32 packet
mov ax, WOW32_Buffer ; get buffer's address
mov WOW32Buffer._off, ax
mov ax, bx
mov WOW32Buffer._sel, ax
mov ax, WOW32_Off
mov [si].MEM_OFF, ax
mov ax, WOW32_Sel
mov [si].MEM_SEL, ax
mov cx, WOW32_Size ; get the length
cmp cx, 3B6h
jg Sim32GetMem_Error
mov [si].MEM_LENGTH, cx
call Xceive ; send GetMem packet and pickup
; the response
mov cx, WOW32_Size
les di, WOW32Buffer ; ES:DI -> WOW32 buffer
mov si, OFFSET ReceivePkt+4
rep movsb
pop es ; temps...
pop ds ; temps...
popa ; temps...
mov sp, bp
pop bp
ret 8
Sim32GetMem_Error:
int 3
Sim32GetVDMMemory ENDP
;*****************************************************************************
;
; Sim32SetVDMMemory
;
;*****************************************************************************
;***************
PROCEDURE Sim32SetVDMMemory PUBLIC, FAR
push bp ; save stack frame
mov bp, sp
pusha ; temps...
push ds ; temps...
push es ; temps...
mov bx, ds
mov ax, SEG MAIN_DATA
mov ds, ax
mov di, OFFSET SetMemPkt ; DS:DI -> SetMem packet
mov ax, WOW32_Buffer ; get buffer's address
mov WOW32Buffer._off, ax
mov ax, bx
mov WOW32Buffer._sel, ax
mov ax, WOW32_Off
mov [di].MEM_OFF, ax
mov ax, WOW32_Sel
mov [di].MEM_SEL, ax
mov cx, WOW32_Size
cmp cx, 3B6h
jg Sim32SetMem_Error
mov [di].MEM_LENGTH, cx
mov bx, 11
add bx, cx
mov [di].Len, bx
add di, 0Ah
mov bx, ds
mov es, bx
lds si, WOW32Buffer ; DS:SI -> Buffer
rep movsb
mov BYTE PTR es:[di], EOT
mov ds, bx
mov si, OFFSET SetMemPkt ; DS:SI -> SetMem packet
call Xceive
pop es ; temps...
pop ds ; temps...
popa ; temps...
mov sp, bp
pop bp
ret 8
Sim32SetMem_Error:
int 3
Sim32SetVDMMemory ENDP
;*****************************************************************************
;
; Sim16SendSim32
;
;*****************************************************************************
PROCEDURE Sim16SendSim32 PUBLIC, FAR
push bp ; save stack frame
mov bp, sp
pusha ; temps...
push ds ; temps...
push es ; temps...
mov bx, ds
mov ax, SEG MAIN_DATA
mov ds, ax
mov si, OFFSET ToWOW32Pkt ; DS:SI -> ToWOW32 packet
cmp fInitDLL, 0
jne @f
pusha
call Initialize
popa
inc fInitDLL
@@:
; prepare ToWOW32 packet
mov ax, WOWStackOff
mov [si].ToWOW32_OFF, ax ;
mov ax, WOWStackSel
mov [si].ToWOW32_SEL, ax ;
; send it
call Xceive ; send ToWOW32 packet and pick up
; the response
Sim16SendSim32_Loop:
mov di, OFFSET Receivepkt
mov ax, [di].MEM_OFF ; get sel:off and length from
mov VDMAddress._off, ax ; packet
mov ax, [di].MEM_SEL
mov VDMAddress._sel, ax
mov ax, [di].MEM_LENGTH
mov VDMLength, ax
Sim16SendSim32_GetMem:
cmp [di].Command, GETMEM
jne Sim16SendSim32_SetMem
call GetVDMMemory ; get vdm memory
call Xceive ; send response and get next packet
jmp SHORT Sim16SendSim32_Loop
Sim16SendSim32_SetMem:
cmp [di].Command, SETMEM
jne Sim16SendSim32_PszLen
call SetVDMMemory ; get vdm memory
call Xceive ; send response and get next packet
jmp SHORT Sim16SendSim32_Loop
Sim16SendSim32_PszLen:
cmp [di].Command, PSZ
jne Sim16SendSim32_WakeUp
call PszLen
call Xceive ; send response and get next packet
jmp SHORT Sim16SendSim32_Loop
Sim16SendSim32_WakeUp:
cmp [di].Command, WAKEUP
jne Sim16SendSim32_Error
Sim16SendSim32_Done:
pop es ; temps...
pop ds ; temps...
popa ; temps...
IFDEF STACKSWITCH
cli
mov sp, VDMAddress._off
mov ss, VDMAddress._sel ; could be a task switch !
sub sp, 8
sti
ENDIF
pop bp
ret 4
Sim16SendSim32_Error:
int 3
mov si, OFFSET NAKPkt
call Xceive
jmp SHORT Sim16SendSim32_Loop
Sim16SendSim32 ENDP
;*****************************************************************************
;
; GetVDMMemory
;
;*****************************************************************************
PROCEDURE GetVDMMemory, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
push di
push es
push ds
mov ax, ds
mov es, ax
mov di, OFFSET RespPkt+4 ; ES:DI -> Response Packet
mov cx, VDMLength
lds si, VDMAddress ; DS:SI -> memory to get
rep movsb
pop ds
pop es
pop di
mov si, OFFSET RespPkt ; DS:SI -> Resp packet
mov ax, si
mov cx, VDMLength
add cx, 5
mov [si].Len, cx
add si, cx
dec si
mov [si], BYTE PTR EOT
mov si, ax ; DS:SI -> Resp packet
ret
GetVDMMemory ENDP
;*****************************************************************************
;
; SetVDMMemory
;
;*****************************************************************************
PROCEDURE SetVDMMemory, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
push di
push es
lea si, ReceivePkt.DataM ; DS:SI -> Data to set
mov cx, VDMLength
les di, VDMAddress ; DS:SI -> memory to set
rep movsb
mov si, OFFSET RespPkt ; DS:DI -> Response Packet
mov [si].Len, 7
mov [si].MEM_OFF, 0AAh
mov BYTE PTR [si].MEM_SEL, EOT
pop es
pop di
ret
SetVDMMemory ENDP
;*****************************************************************************
;
; PszLen
;
; This routine returns the length of the null terminated string
; address specified by VDMAddress.
;
;*****************************************************************************
PROCEDURE PszLen, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
push di
push es
les di, VDMAddress ; ES:DI -> String
mov cx, 0FFFFh
sub ax, ax ; look for null
repne scasb
jnz PszLen_Notfound
xor cx, 0FFFFh ; CX = length of string
mov si, OFFSET RespPkt ; DS:DI -> Response Packet
mov [si].Len, 7
mov [si].MEM_OFF, cx
mov BYTE PTR [si].MEM_SEL, EOT
pop es
pop di
ret
PszLen_Notfound:
int 3
pop es
pop di
ret
PszLen ENDP
;*****************************************************************************
; T R A N S P O R T L A Y E R
;*****************************************************************************
;*****************************************************************************
;
; Xceive - TransCeive
;
; DS:SI -> Packet to be transmitted
;
;*****************************************************************************
PROCEDURE Xceive, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
mov RxPktLen, -1
mov ReceivePktPtr, 0
mov fReceive, 0
mov fRxCount, 0
mov fRxError, 0
call StartTransmitter
Xceive_Loop:
cmp fReceive, 0
je Xceive_Loop
mov fReceive, 0
cmp fRxError, 0
jne Xceive_NAK
cmp ReceivePkt, SOH
jne Xceive_NAK
mov bx, ReceivePkt.Len
dec bx
cmp ReceivePkt.[bx], EOT
jne Xceive_NAK
xor ax, ax
ret
Xceive_NAK:
cmp fRxCount, MAXCOUNT
jg Xceive_Error
inc fRxCount
mov si, OFFSET NAKPkt
jmp SHORT Xceive_Loop
Xceive_Error:
int 3
mov ax, 1
ret
Xceive ENDP
;*****************************************************************************
;
; Receive
;
;*****************************************************************************
PROCEDURE Receive, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
mov RxPktLen, -1
mov ReceivePktPtr, 0
mov fReceive, 0
mov fRxCount, 0
Receive_Loop:
cmp fReceive, 0
je Receive_Loop
mov fReceive, 0
cmp fRxError, 0
jne Receive_NAK
xor ax, ax
ret
Receive_NAK:
cmp fRxCount, MAXCOUNT
jg Receive_Error
inc fRxCount
mov si, OFFSET NAKPkt
call StartTransmitter
jmp SHORT Receive
Receive_Error:
int 3
mov ax, 1
ret
Receive ENDP
;*****************************************************************************
; S E R I A L D R I V E R
;*****************************************************************************
;*****************************************************************************
;
; Start Transmitter
;
;*****************************************************************************
PROCEDURE StartTransmitter, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
StartTransmitter_Loop:
cmp fTransmitting, 1
je StartTransmitter_Loop
mov TransmitPkt._sel, ds
mov TransmitPkt._off, si
mov ax, [si].Len ; get packet length
mov TransmitPktLen, ax
mov TransmitPktPtr, 0
mov fTransmitting, 1
cmp TransmitPktLen, 0
je StartTransmitter_Ret
mov dx, SERIALPORT ; COM1 or COM2
mov dl, IER ; turn on interrupts on 8250
in al, dx
DELAY
or al, TxInt
out dx, al
DELAY
StartTransmitter_Ret:
ret
StartTransmitter ENDP
;*****************************************************************************
;
; Interrupt Routine
;
;*****************************************************************************
PUBLIC COMISR, COMISR_LSR, COMISR_Receive, COMISR_Transmit, COMISR_MSR
COMISR:
push ax
push ds
mov ax, SEG DGROUP
mov ds, ax
DISABLE
call NewStack
pusha
push es
COMISR_More:
mov dx, SERIALPORT
mov dl, IIR
in al, dx
test al, IntPending ; is int pending ?
jnz COMISR_Ret ; no int is pending
xor ah, ah
mov di, ax
shr di, 1
add di, di
jmp [di].IntRoutines ; service int
COMISR_LSR:
INT3
mov fRxError, 1
mov dx, SERIALPORT
mov dl, LSR
in al, dx
DELAY
jmp SHORT COMISR_More
COMISR_Receive:
mov dx, SERIALPORT
in al, dx
DELAY
mov bx, ReceivePktPtr
mov [bx].ReceivePkt, al
inc ReceivePktPtr
cmp bx, 03
jne COMISR_ReceiveNext
mov ax, WORD PTR ReceivePkt+2
dec ax
mov RxPktLen, ax
COMISR_ReceiveNext:
cmp bx, RxPktLen
jne @f
mov fReceive, 1 ; receive Done !
@@:
jmp SHORT COMISR_More
COMISR_Transmit:
cmp TransmitPktLen, 0
jne COMISR_Send
mov dx, SERIALPORT
mov dl, IER ; turn off interrupts on 8250
in al, dx
DELAY
and al, NOT TxInt
out dx, al
DELAY
mov fTransmitting, 0
jmp SHORT COMISR_More
COMISR_Send:
les bx, DWORD PTR TransmitPkt
mov di, TransmitPktPtr
mov al, BYTE PTR es:[bx][di]
mov dx, SERIALPORT
out dx, al
DELAY
inc TransmitPktPtr
dec TransmitPktLen
jmp COMISR_More
COMISR_MSR:
INT3
mov fRxError, 1
mov dx, SERIALPORT
mov dl, MSR
in al, dx
DELAY
jmp COMISR_More
COMISR_Ret:
DELAY
pop es
popa
call OldStack
DISABLE
mov al, EOI
out PIC, al
pop ds
pop ax
iret
;*****************************************************************************
;
; New Stack
;
;*****************************************************************************
PROCEDURE NewStack, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
inc fStackUse
jnz NewStack_Ret
pop Scratch
mov OldSS, ss
mov OldSP, sp
push ds
pop ss
mov sp, OFFSET StackTop
push Scratch
NewStack_Ret:
ret
NewStack ENDP
;*****************************************************************************
;
; Old Stack
;
;*****************************************************************************
PROCEDURE OldStack, PUBLIC
ASSUME CS:MAIN_CODE, DS:DGROUP
DISABLE
cmp fStackUse, 0
jne OldStack_Ret
pop Scratch
mov ss, OldSS
mov sp, OldSP
push Scratch
OldStack_Ret:
dec fStackUse
ENABLE
ret
OldStack ENDP
MAIN_CODE ENDS
END
| 20.226872 | 80 | 0.451432 |
bfe03cd38512cde1d65df8ce0a0c9d2379db2acc | 265 | asm | Assembly | _anim/obj08.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 2 | 2020-04-09T19:36:35.000Z | 2021-01-05T14:20:17.000Z | _anim/obj08.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | null | null | null | _anim/obj08.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 1 | 2020-06-17T14:16:35.000Z | 2020-06-17T14:16:35.000Z | ; ---------------------------------------------------------------------------
; Animation script - water splash (LZ)
; ---------------------------------------------------------------------------
dc.w byte_145C6-Ani_obj08
byte_145C6: dc.b 4, 0, 1, 2, $FC, 0
even | 44.166667 | 77 | 0.279245 |
6af85e989ec768cf850171f72590288973e2543b | 678 | asm | Assembly | oeis/021/A021134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/021/A021134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/021/A021134.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A021134: Expansion of 1/((1-x)(1-2x)(1-5x)(1-9x)).
; Submitted by Jon Maiga
; 1,17,200,2050,19731,184047,1688890,15362600,139076861,1255760077,11322184380,102001381950,918521058391,8269232646107,74435809450670,669985863300100,6030190661052321,54273305406490137,488467695944031760,4396248999925437050,39566439681476786651,356098950544034540167,3204895521950036551650,28844084532818974192800,259596884971714027429381,2336372585627142612444197,21027356375052865474114340,189246222897518699346047350,1703216083687882845046388511,15328945141242018361151050227
add $0,2
lpb $0
sub $0,1
add $2,2
mul $2,5
sub $2,9
mul $3,9
add $3,$1
mul $1,2
add $1,$2
lpe
mov $0,$3
| 39.882353 | 478 | 0.815634 |
3587e61239ea4967a5ecf614c8665372d0af7a17 | 3,462 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_645_1222.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_645_1222.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_645_1222.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rdi
push %rdx
lea addresses_UC_ht+0x71b, %r10
and $13371, %r14
mov (%r10), %di
nop
nop
sub %rdx, %rdx
pop %rdx
pop %rdi
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %rax
push %rdi
push %rsi
// Store
lea addresses_WT+0x57df, %rax
add %rsi, %rsi
movw $0x5152, (%rax)
nop
nop
nop
and %r8, %r8
// Store
lea addresses_RW+0x4567, %r10
nop
nop
nop
sub %r13, %r13
mov $0x5152535455565758, %rdi
movq %rdi, %xmm3
movntdq %xmm3, (%r10)
nop
nop
nop
nop
inc %rsi
// Faulty Load
lea addresses_US+0x10d67, %r10
nop
add $5069, %r13
movups (%r10), %xmm2
vpextrq $0, %xmm2, %rsi
lea oracles, %r13
and $0xff, %rsi
shlq $12, %rsi
mov (%r13,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rax
pop %r8
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_RW', 'size': 16, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': True, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 645}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 40.729412 | 1,934 | 0.655402 |
f414fe772ac2d446e835b5fa48dec8d0ab1039ad | 536 | asm | Assembly | programs/oeis/286/A286686.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/286/A286686.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/286/A286686.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A286686: Positions of 0 in A286685; complement of A286687.
; 1,3,6,7,9,12,13,15,17,20,21,23,26,27,29,31,34,35,37,40,41,43,46,47,49,51,54,55,57,60,61,63,65,68,69,71,74,75,77,80,81,83,85,88,89,91,94,95,97,99,102,103,105,108,109,111,113,116,117,119,122,123,125,128,129,131,133,136,137,139,142,143,145,147,150,151,153,156,157,159,162,163,165,167,170,171,173,176,177,179,181,184,185,187,190,191,193,195,198,199
mov $1,$0
seq $0,289001 ; Fixed point of the mapping 00->0010, 01->001, 10->010, starting with 00.
mul $1,2
add $0,$1
add $0,1
| 59.555556 | 346 | 0.697761 |
18c406a341f2eedbb0579636350ba5600578aee1 | 6,219 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2510.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2510.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2510.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1e23a, %rbp
sub $54279, %r13
mov (%rbp), %rdx
nop
add $3466, %r12
lea addresses_A_ht+0x13a72, %r11
nop
nop
nop
nop
nop
sub $21159, %r9
mov $0x6162636465666768, %rdi
movq %rdi, (%r11)
nop
nop
nop
sub $51282, %r13
lea addresses_WC_ht+0x4a07, %r12
and %rbp, %rbp
movb $0x61, (%r12)
nop
nop
add %rbp, %rbp
lea addresses_WC_ht+0x15424, %r13
nop
cmp $31601, %r9
mov $0x6162636465666768, %r11
movq %r11, %xmm4
and $0xffffffffffffffc0, %r13
vmovaps %ymm4, (%r13)
nop
nop
nop
nop
nop
xor %r12, %r12
lea addresses_WC_ht+0x1dbfa, %r12
nop
cmp $62418, %rdx
mov (%r12), %r9d
nop
nop
nop
nop
add $14096, %r13
lea addresses_normal_ht+0x1af3a, %rsi
lea addresses_WC_ht+0x1e2fa, %rdi
nop
nop
nop
nop
nop
inc %rbp
mov $61, %rcx
rep movsb
nop
nop
nop
add $41402, %rdi
lea addresses_A_ht+0x1273a, %r11
clflush (%r11)
nop
nop
and %rdx, %rdx
mov (%r11), %r9
nop
nop
nop
nop
sub $36757, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r8
push %r9
push %rax
push %rdx
// Store
lea addresses_normal+0x112ba, %r8
inc %r13
mov $0x5152535455565758, %r14
movq %r14, %xmm7
movups %xmm7, (%r8)
sub $28731, %r8
// Store
lea addresses_normal+0xd8b2, %r12
nop
nop
add %r9, %r9
mov $0x5152535455565758, %rdx
movq %rdx, %xmm2
vmovups %ymm2, (%r12)
nop
nop
nop
nop
nop
cmp %r9, %r9
// Faulty Load
lea addresses_RW+0x1b73a, %r13
nop
cmp $52798, %r12
movb (%r13), %r8b
lea oracles, %rax
and $0xff, %r8
shlq $12, %r8
mov (%rax,%r8,1), %r8
pop %rdx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 37.920732 | 2,999 | 0.658144 |
25d8e9fcdd76f23a6e84152c2640be647528e63c | 96 | asm | Assembly | examples/memory.asm | lnsp/govm | 600cb722a4d1fe74f1c2cdb365f8647af4603cbf | [
"MIT"
] | 2 | 2018-07-09T21:43:33.000Z | 2021-10-05T20:49:07.000Z | examples/memory.asm | lnsp/gvm | 600cb722a4d1fe74f1c2cdb365f8647af4603cbf | [
"MIT"
] | null | null | null | examples/memory.asm | lnsp/gvm | 600cb722a4d1fe74f1c2cdb365f8647af4603cbf | [
"MIT"
] | 1 | 2017-11-27T21:41:17.000Z | 2017-11-27T21:41:17.000Z | ; testing memory access
JMP main
addr:
DB 0x2004
main:
MOV addr AX
MOV 0x0016 [AX]
JMP addr
| 10.666667 | 23 | 0.71875 |
10ad14a06c55f30020f77068daad73c934ebeb5b | 3,309 | asm | Assembly | Version-3/boot/boot.asm | AaronV77/Friday | 1f4c32a01859738b8b7193f655322ac5454e4d52 | [
"MIT"
] | null | null | null | Version-3/boot/boot.asm | AaronV77/Friday | 1f4c32a01859738b8b7193f655322ac5454e4d52 | [
"MIT"
] | null | null | null | Version-3/boot/boot.asm | AaronV77/Friday | 1f4c32a01859738b8b7193f655322ac5454e4d52 | [
"MIT"
] | null | null | null | ; This file is the starting point to the whole operating system. This file
; - is what will be loaded when the BIOS reads from the disk and will be
; - put into memory at 0x7C00. The system will start out in real mode, then
; - load some more sectors off the hard drive, enter either protected or
; - long mode, and then start running our kernel. This file is using other
; - files in this directory that are included at the bottom of this file.
[org 0x7C00] ; Sets the offset to which all absolute addresses will be relative to.
[bits 16] ; Tell the assembler that we are in real mode (16-bit).
KERNEL_OFFSET equ 0x1000 ; Create a variable that will point to our kernel_entry file to start
; - running our kernel. This address is hard coded in the linking of the system.
mov [BOOT_DRIVE], dl ; Save the disk number if something changes the dl register.
mov bp, 0x9000 ; Create a stack that expands from 0x1000 to 0x9000 so that our kernel has some memory to use.
mov sp, bp ; Move our stack pointer to be at the high end of the datastructure. Remember that the stack
; - will grow to lower memory address rather than higher memory addresses.
call load_kernel_into_memory ; Call the procedure to load more sectors from disk into memory.
call switch_to_pm ; Call the procedure to enter protected mode (32-bit).
jmp $ ; Loop infinitely if we come back from the previous procedure.
load_kernel_into_memory:
pusha ; Store all the general purpose registers (edi,esi,ebp,esp,ebx,edx,ecx,eax).
mov bx, KERNEL_OFFSET ; Store the location of where we want to load our sectors into memory.
mov dh, 33
mov dl, [BOOT_DRIVE] ; Move the disk number into the dl register.
call disk_read ; Call the procdeure to read the sectors from the disk.
popa ; Restore all the previous general purpose registers (edi,esi,ebp,esp,ebx,edx,ecx,eax).
ret ; Exit this procedure.
[bits 32] ; Now that we have entered either protected or long mode we will tell our assembler to use 32-bits.
begin_pm:
call execute_kernel ; Call the procedure to run our kernel.
jmp $ ; Loop infinitely if we come back from the previous procedure.
execute_kernel:
call KERNEL_OFFSET ; Call the procedure at the 0x1000 address witch should be our kernel_entry "_start"
; - procedure.
jmp $ ; Loop infinitely if we come back from the previous procedure.
BOOT_DRIVE: db 0 ; Create a vairable that is one byte for our boot drive structure.
%include "boot/disk_read.asm"
%include "boot/global_descriptor_table.asm"
%include "boot/switch_to_protected_mode.asm"
%include "boot/print_newline.asm"
%include "boot/print_string.asm"
times 510-($-$$) db 0 ; How this works is that it takes the bootloaders starting address and subtract it by the last
; - address (which ever instruction was ran last.) and then pad what ever is remaining with zeros.
; - Why we use 510 as our last pointer is because the bootloader is 512 bytes and we have to use a
; - double word ( 2 bytes ) to show the ending of our boot sector.
dw 0xAA55 ; the standard PC boot signature that tells the BIOS that this
; - sector is bootable.(base)
| 56.084746 | 130 | 0.711695 |
114e8e632645ad4b27a7b49bf98521108d3b1cca | 7,927 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16111_577.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16111_577.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16111_577.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x7544, %rsi
lea addresses_A_ht+0x16584, %rdi
nop
nop
nop
nop
add $52560, %rbx
mov $111, %rcx
rep movsl
nop
inc %rdx
lea addresses_D_ht+0x1ea84, %rbp
nop
nop
nop
inc %r14
mov (%rbp), %si
nop
nop
nop
and %rdi, %rdi
lea addresses_D_ht+0x16004, %rsi
lea addresses_WT_ht+0x18004, %rdi
clflush (%rsi)
nop
add $50330, %rax
mov $105, %rcx
rep movsq
add $54373, %rax
lea addresses_WC_ht+0x90a4, %rsi
lea addresses_UC_ht+0xe104, %rdi
clflush (%rdi)
nop
nop
nop
nop
cmp %rbp, %rbp
mov $49, %rcx
rep movsq
nop
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0x8404, %r14
nop
nop
nop
nop
add $6968, %rbp
mov $0x6162636465666768, %rax
movq %rax, (%r14)
nop
nop
nop
nop
nop
and $62500, %rsi
lea addresses_normal_ht+0x10944, %rsi
nop
nop
nop
nop
nop
and %rbx, %rbx
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
dec %rsi
lea addresses_D_ht+0x1d7b0, %r14
nop
nop
dec %rcx
movb (%r14), %dl
nop
nop
nop
nop
add $142, %rdx
lea addresses_WC_ht+0xdcdc, %rbx
nop
nop
and $59402, %rdi
movl $0x61626364, (%rbx)
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_WC_ht+0x5804, %rbp
nop
nop
cmp $54445, %rdx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
and $0xffffffffffffffc0, %rbp
vmovntdq %ymm1, (%rbp)
nop
xor $55558, %rsi
lea addresses_A_ht+0x15c04, %rsi
lea addresses_WC_ht+0x15804, %rdi
clflush (%rdi)
cmp $37851, %rbx
mov $95, %rcx
rep movsb
nop
nop
nop
nop
xor $21503, %rdx
lea addresses_normal_ht+0x35c, %rsi
lea addresses_WT_ht+0xaa64, %rdi
inc %r14
mov $5, %rcx
rep movsq
nop
xor %rdx, %rdx
lea addresses_D_ht+0xeb84, %rdi
nop
nop
nop
add $49890, %rbx
mov $0x6162636465666768, %rax
movq %rax, (%rdi)
nop
nop
nop
nop
nop
and %r14, %r14
lea addresses_UC_ht+0xa180, %rsi
lea addresses_normal_ht+0x3604, %rdi
nop
cmp %rax, %rax
mov $0, %rcx
rep movsb
nop
xor $1550, %rbx
lea addresses_UC_ht+0xf804, %r14
nop
nop
nop
and $36039, %rdx
movw $0x6162, (%r14)
nop
inc %rbp
lea addresses_D_ht+0xcf44, %rdi
nop
nop
nop
nop
nop
add %rsi, %rsi
movb (%rdi), %al
nop
nop
nop
nop
cmp $4011, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_UC+0xf804, %rdx
nop
nop
nop
nop
nop
xor %r10, %r10
vmovups (%rdx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rcx
lea oracles, %r10
and $0xff, %rcx
shlq $12, %rcx
mov (%r10,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'00': 16111}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.029167 | 2,999 | 0.66078 |
101df25434c35ba6f9b83c46681b0ef1b3012813 | 1,686 | asm | Assembly | programs/oeis/154/A154262.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/154/A154262.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/154/A154262.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A154262: a(n) = 9*n^2 - 10*n + 3.
; 3,2,19,54,107,178,267,374,499,642,803,982,1179,1394,1627,1878,2147,2434,2739,3062,3403,3762,4139,4534,4947,5378,5827,6294,6779,7282,7803,8342,8899,9474,10067,10678,11307,11954,12619,13302,14003,14722,15459,16214,16987,17778,18587,19414,20259,21122,22003,22902,23819,24754,25707,26678,27667,28674,29699,30742,31803,32882,33979,35094,36227,37378,38547,39734,40939,42162,43403,44662,45939,47234,48547,49878,51227,52594,53979,55382,56803,58242,59699,61174,62667,64178,65707,67254,68819,70402,72003,73622,75259,76914,78587,80278,81987,83714,85459,87222,89003,90802,92619,94454,96307,98178,100067,101974,103899,105842,107803,109782,111779,113794,115827,117878,119947,122034,124139,126262,128403,130562,132739,134934,137147,139378,141627,143894,146179,148482,150803,153142,155499,157874,160267,162678,165107,167554,170019,172502,175003,177522,180059,182614,185187,187778,190387,193014,195659,198322,201003,203702,206419,209154,211907,214678,217467,220274,223099,225942,228803,231682,234579,237494,240427,243378,246347,249334,252339,255362,258403,261462,264539,267634,270747,273878,277027,280194,283379,286582,289803,293042,296299,299574,302867,306178,309507,312854,316219,319602,323003,326422,329859,333314,336787,340278,343787,347314,350859,354422,358003,361602,365219,368854,372507,376178,379867,383574,387299,391042,394803,398582,402379,406194,410027,413878,417747,421634,425539,429462,433403,437362,441339,445334,449347,453378,457427,461494,465579,469682,473803,477942,482099,486274,490467,494678,498907,503154,507419,511702,516003,520322,524659,529014,533387,537778,542187,546614,551059,555522
mul $0,9
sub $0,5
pow $0,2
mov $1,$0
add $1,2
div $1,9
| 168.6 | 1,593 | 0.82325 |
4cef47952f38fda8680d9ca0cc748463888097d6 | 614 | asm | Assembly | src/main/resources/Examples/Demos/Rainbow.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 3 | 2020-11-04T00:03:41.000Z | 2020-11-30T00:35:39.000Z | src/main/resources/Examples/Demos/Rainbow.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 27 | 2020-09-01T00:44:10.000Z | 2021-05-10T15:59:46.000Z | src/main/resources/Examples/Demos/Rainbow.asm | jimw278/MIPS | 13d666f46ad945f038514768d975150d89cd612b | [
"Apache-2.0"
] | 1 | 2020-12-05T00:14:11.000Z | 2020-12-05T00:14:11.000Z |
#definline push $a
add $4, $0, $a
sw $a, main $a
addi $29, $29, 1
#endinline
#definline pushAndJump address
push $4
j address
#endinline
#define size 5
#define reg $6
#define reg $7
main:
addi $4, $0, 480
addi $5, $0, 320
trap 150 ; set screen size
mult $4, $5
mflo $6
addi $7, $0, 255
div $6, $7
mflo $7
mult $4, $5
mflo $8
addi $9, $0, 0
addi $5, $0, 255
addi $5, $5, 1
loop:
addi $4, $9, 0
add $5, $0, $7
div $4, $5
mflo $4
jal colorWheel
addi $4, $9, 0
trap 152
addi $9, $9, 1
beq $9, $8, end
j loop
end:
trap 153
trap 0
colorWheel:
addi $5, $0, 255
addi $6, $5, 0
trap 155
addi $5, $4, 0
jr $31 | 10.77193 | 31 | 0.594463 |
55c930a8e2852312f78203fc1ad200b2908d22c4 | 5,226 | asm | Assembly | Appl/Art/Decks/GeoDeck/LMDiamond8.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Art/Decks/GeoDeck/LMDiamond8.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Art/Decks/GeoDeck/LMDiamond8.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | LMDiamond8 label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x03, 0xe0, 0xfa, 0x00
db 0x01, 0x07, 0xf0, 0xfc, 0x00, 0x01, 0x04, 0x00
db 0x01, 0x0e, 0x38, 0xfc, 0x00, 0x01, 0x0e, 0x00
db 0x01, 0x0c, 0x18, 0xfc, 0x00, 0x01, 0x1b, 0x00
db 0x01, 0x0c, 0x18, 0xfc, 0x00, 0x01, 0x35, 0x80
db 0x01, 0x0e, 0x38, 0xfc, 0x00, 0x01, 0x2a, 0x80
db 0x01, 0x07, 0xf0, 0xfc, 0x00, 0x01, 0x55, 0x40
db 0x08, 0x07, 0xf0, 0x00, 0x80, 0x00, 0x02, 0x00,
0x2a, 0x80
db 0x08, 0x0e, 0x38, 0x01, 0xc0, 0x00, 0x07, 0x00,
0x35, 0x80
db 0x08, 0x0c, 0x18, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x1b, 0x00
db 0x08, 0x0c, 0x18, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x0e, 0x00
db 0x08, 0x0c, 0x18, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x04, 0x00
db 0x08, 0x0e, 0x38, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x00, 0x00
db 0x08, 0x07, 0xf0, 0x15, 0x54, 0x00, 0x55, 0x50,
0x00, 0x00
db 0x08, 0x03, 0xe0, 0x2a, 0xaa, 0x00, 0xaa, 0xa8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x15, 0x54, 0x00, 0x55, 0x50,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0xf8, 0x00
db 0xfd, 0x00, 0x00, 0x10, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x38, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x6c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xd6, 0xfd, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xab, 0xfd, 0x00
db 0xfe, 0x00, 0x02, 0x03, 0x55, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x02, 0xaa, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x05, 0x55, 0x40, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x02, 0xaa, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x03, 0x55, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xab, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xd6, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x6c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x38, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x10, 0xfd, 0x00
db 0xf8, 0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x15, 0x54, 0x00, 0x55, 0x50,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x2a, 0xaa, 0x00, 0xaa, 0xa8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x15, 0x54, 0x00, 0x55, 0x50,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0xf8, 0x00
db 0xfd, 0x00, 0x00, 0x10, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x38, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x6c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xd6, 0xfd, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xab, 0xfd, 0x00
db 0xfe, 0x00, 0x02, 0x03, 0x55, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x02, 0xaa, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x05, 0x55, 0x40, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x02, 0xaa, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x03, 0x55, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xab, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xd6, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x6c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x38, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x10, 0xfd, 0x00
db 0xf8, 0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x15, 0x54, 0x00, 0x55, 0x50,
0x0f, 0x80
db 0x08, 0x00, 0x00, 0x2a, 0xaa, 0x00, 0xaa, 0xa8,
0x1f, 0xc0
db 0x08, 0x00, 0x00, 0x15, 0x54, 0x00, 0x55, 0x50,
0x38, 0xe0
db 0x08, 0x00, 0x40, 0x1a, 0xac, 0x00, 0x6a, 0xb0,
0x30, 0x60
db 0x08, 0x00, 0xe0, 0x0d, 0x58, 0x00, 0x35, 0x60,
0x30, 0x60
db 0x08, 0x01, 0xb0, 0x06, 0xb0, 0x00, 0x1a, 0xc0,
0x30, 0x60
db 0x08, 0x03, 0x58, 0x03, 0x60, 0x00, 0x0d, 0x80,
0x38, 0xe0
db 0x08, 0x02, 0xa8, 0x01, 0xc0, 0x00, 0x07, 0x00,
0x1f, 0xc0
db 0x08, 0x05, 0x54, 0x00, 0x80, 0x00, 0x02, 0x00,
0x1f, 0xc0
db 0x01, 0x02, 0xa8, 0xfc, 0x00, 0x01, 0x38, 0xe0
db 0x01, 0x03, 0x58, 0xfc, 0x00, 0x01, 0x30, 0x60
db 0x01, 0x01, 0xb0, 0xfc, 0x00, 0x01, 0x30, 0x60
db 0x01, 0x00, 0xe0, 0xfc, 0x00, 0x01, 0x38, 0xe0
db 0x01, 0x00, 0x40, 0xfc, 0x00, 0x01, 0x1f, 0xc0
db 0xfa, 0x00, 0x01, 0x0f, 0x80
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
| 36.041379 | 53 | 0.634711 |
d4a239606e1d9b7aef49b7720c085dca3a4c3dc5 | 713 | asm | Assembly | programs/oeis/192/A192002.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/192/A192002.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/192/A192002.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A192002: Counting sequence for Wythoff AB-numbers smaller than n.
; 0,0,0,1,1,1,1,1,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,6,6,6,6,6,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,11,11,11,11,11,12,12,12,12,12,13,13,13,14,14,14,14,14,15,15,15,16,16,16,16,16,17,17,17,17,17,18,18,18,19,19,19,19,19,20,20,20,21,21,21
mov $2,$0
add $2,1
mov $6,$0
lpb $2
mov $0,$6
sub $2,1
sub $0,$2
add $5,1
lpb $5
sub $5,1
cal $0,120614 ; a(n) = g(n+1) - g(n) where g(k) = floor(phi*floor(k/phi)) and phi = (1+sqrt(5))/2.
add $0,2
cal $0,10054 ; a(n) = 1 if n is a triangular number, otherwise 0.
mov $3,10
mov $4,1
mul $4,$0
mul $3,$4
mov $0,$3
lpe
mov $4,$0
div $4,10
add $1,$4
lpe
sub $1,1
| 25.464286 | 229 | 0.5554 |
a1e6323d4f5765a44e93336c3734500421fd3fde | 791 | asm | Assembly | programs/oeis/111/A111089.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/111/A111089.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/111/A111089.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A111089: Largest prime factor of 2n.
; 2,2,3,2,5,3,7,2,3,5,11,3,13,7,5,2,17,3,19,5,7,11,23,3,5,13,3,7,29,5,31,2,11,17,7,3,37,19,13,5,41,7,43,11,5,23,47,3,7,5,17,13,53,3,11,7,19,29,59,5,61,31,7,2,13,11,67,17,23,7,71,3,73,37,5,19,11,13,79,5,3,41,83,7
mov $36,$0
mov $38,2
lpb $38
clr $0,36
mov $0,$36
sub $38,1
add $0,$38
sub $0,1
mov $30,$0
mov $32,$0
lpb $32
clr $0,30
mov $0,$30
sub $32,1
sub $0,$32
add $1,$0
cal $0,52126 ; a(1) = 1; for n>1, a(n)=n/(largest prime dividing n).
div $1,$0
add $1,29
mul $1,50
mov $2,$1
mul $2,2
mov $1,$2
sub $1,2900
div $1,101
add $31,$1
lpe
mov $1,$31
mov $39,$38
lpb $39
mov $37,$1
sub $39,1
lpe
lpe
lpb $36
mov $36,0
sub $37,$1
lpe
mov $1,$37
add $1,2
| 17.977273 | 211 | 0.519595 |
166e593afa145468f0f78f36d1d6f86e21523190 | 699 | asm | Assembly | oeis/015/A015253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/015/A015253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/015/A015253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A015253: Gaussian binomial coefficient [ n,2 ] for q = -4.
; Submitted by Jamie Morken(s2)
; 1,13,221,3485,55965,894621,14317213,229062301,3665049245,58640578205,938250090141,15011998086813,240191982810781,3843071671285405,61489146955314845,983826350426044061,15741221610252678813,251859545750298965661,4029752732059759031965,64476043712736242185885,1031616699404659484276381,16505867190471033311213213,264093875047550606728246941,4225502000760753412656608925,67608032012172279782487111325,1081728512194755575799868307101,17307656195116092815677594810013,276922499121857470639322709374621
add $0,4
mov $1,-4
pow $1,$0
add $1,4
div $1,20
add $1,1
pow $1,2
mov $0,$1
sub $0,196
div $0,192
add $0,1
| 43.6875 | 497 | 0.848355 |
2920418f56f6a54cb34775e5b6e7ae3a951737d3 | 543 | asm | Assembly | Vezba 10/9/program.asm | KristianKalamin/Programski-Prevodioci-Domaci | 8e97173f0fbcd21acc12d1c8a04945b989be1dc3 | [
"MIT"
] | 1 | 2021-02-02T11:35:42.000Z | 2021-02-02T11:35:42.000Z | Vezba 10/9/program.asm | KristianKalamin/Programski-Prevodioci-Domaci | 8e97173f0fbcd21acc12d1c8a04945b989be1dc3 | [
"MIT"
] | null | null | null | Vezba 10/9/program.asm | KristianKalamin/Programski-Prevodioci-Domaci | 8e97173f0fbcd21acc12d1c8a04945b989be1dc3 | [
"MIT"
] | null | null | null |
main:
PUSH %14
MOV %15,%14
SUBS %15,$12,%15
@main_body:
MOV $1,-4(%14)
MOV $2,-8(%14)
MOV $4,-12(%14)
@if0:
CMPS -4(%14),$1
JNE @false0
@true0:
CMPS -12(%14),$3
JLES @false0
@true1:
ADDS -8(%14),$1,%0
MOV %0,-4(%14)
JMP @exit0
@false0:
@exit0:
@if1:
CMPS -4(%14),$1
JEQ @true2
CMPS -12(%14),-8(%14)
JNE @false1
@true2:
ADDS -12(%14),$2,%0
MOV %0,-4(%14)
JMP @exit1
@false1:
@exit1:
MOV -4(%14),%13
JMP @main_exit
@main_exit:
MOV %14,%15
POP %14
RET | 14.289474 | 25 | 0.489871 |
b689966c5e2629008320c23f645b57bafb49d70a | 680 | asm | Assembly | oeis/006/A006218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/006/A006218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/006/A006218.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A006218: a(n) = Sum_{k=1..n} floor(n/k); also Sum_{k=1..n} d(k), where d = number of divisors (A000005); also number of solutions to x*y = z with 1 <= x,y,z <= n.
; Submitted by Jamie Morken(s4)
; 0,1,3,5,8,10,14,16,20,23,27,29,35,37,41,45,50,52,58,60,66,70,74,76,84,87,91,95,101,103,111,113,119,123,127,131,140,142,146,150,158,160,168,170,176,182,186,188,198,201,207,211,217,219,227,231,239,243,247,249,261,263,267,273,280,284,292,294,300,304,312,314,326,328,332,338,344,348,356,358,368,373,377,379,391,395,399,403,411,413,425,429,435,439,443,447,459,461,467,473
mov $2,$0
lpb $0
mov $0,$2
add $1,1
add $3,1
div $0,$3
sub $0,$3
add $1,$0
add $1,$0
lpe
mov $0,$1
| 42.5 | 368 | 0.651471 |
85be06a2ff0ef048b983da1cf9894d3ec5fdecab | 554 | asm | Assembly | libsrc/_DEVELOPMENT/adt/ba_stack/z80/asm_ba_stack_destroy.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/adt/ba_stack/z80/asm_ba_stack_destroy.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/adt/ba_stack/z80/asm_ba_stack_destroy.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; ===============================================================
; Mar 2014
; ===============================================================
;
; void ba_stack_destroy(ba_stack_t *s)
;
; Zero the stack structure.
; stack.capacity = 0 ensures no stack operations can be performed.
;
; ===============================================================
SECTION code_clib
SECTION code_adt_ba_stack
PUBLIC asm_ba_stack_destroy
EXTERN asm_b_array_destroy
defc asm_ba_stack_destroy = asm_b_array_destroy
; enter : hl = stack *
;
; uses : af, hl
| 22.16 | 66 | 0.478339 |
cb99ece7963c856734c6a54b576bc7a32d13854f | 216 | asm | Assembly | 072-assembler-2/asdf.asm | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 152 | 2016-02-04T10:40:46.000Z | 2022-03-03T18:25:54.000Z | 072-assembler-2/asdf.asm | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 4 | 2016-03-11T23:49:46.000Z | 2017-06-16T18:58:53.000Z | 072-assembler-2/asdf.asm | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 48 | 2016-01-31T19:13:36.000Z | 2021-09-03T19:50:17.000Z | !org 0x1234
# asdf
dd label1, label2
:label1
db "a" # asdf
db 1, 2, 3
dw 1234, 0x123
dw label1, label2
:label2
dd 0x12345678 # asdf
dq 0x1625376123786162
dw 01234
dw label1, label2
db 1
nop
nop
int3
nop
| 8 | 21 | 0.689815 |
3da59ae14fb87eec3290e8d24dfd09991a92e64d | 8,025 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1274.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1274.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1274.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14490, %r12
nop
nop
nop
and $40763, %r13
mov $0x6162636465666768, %r14
movq %r14, %xmm1
vmovups %ymm1, (%r12)
nop
xor %rdi, %rdi
lea addresses_normal_ht+0x171e2, %rsi
lea addresses_WC_ht+0xdb0, %rdi
nop
and %r8, %r8
mov $123, %rcx
rep movsl
and $42653, %rsi
lea addresses_WT_ht+0x8890, %rsi
lea addresses_A_ht+0x15090, %rdi
nop
nop
nop
nop
nop
and $27936, %r13
mov $35, %rcx
rep movsl
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0x11490, %r8
nop
nop
nop
nop
nop
and $15903, %rcx
movw $0x6162, (%r8)
nop
add $51815, %rcx
lea addresses_D_ht+0xad90, %rdi
dec %rsi
mov (%rdi), %r13w
nop
nop
nop
cmp %r14, %r14
lea addresses_normal_ht+0x3548, %rdi
nop
nop
sub %rcx, %rcx
vmovups (%rdi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %r13
nop
nop
nop
nop
sub $50117, %r13
lea addresses_D_ht+0x10fa8, %r12
nop
nop
nop
nop
and $62335, %rsi
movb $0x61, (%r12)
nop
nop
cmp $18235, %rdi
lea addresses_WC_ht+0x4490, %r12
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
and $0xffffffffffffffc0, %r12
movntdq %xmm1, (%r12)
nop
nop
nop
nop
dec %r12
lea addresses_WC_ht+0x4f90, %r12
nop
nop
nop
add %rsi, %rsi
mov (%r12), %r13w
nop
nop
nop
add $13092, %rcx
lea addresses_WC_ht+0xc610, %rsi
lea addresses_D_ht+0xc2b8, %rdi
nop
nop
nop
cmp $15306, %r10
mov $121, %rcx
rep movsw
nop
nop
inc %r8
lea addresses_UC_ht+0x354a, %r10
nop
nop
nop
xor $4802, %r14
vmovups (%r10), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r13
add %r10, %r10
lea addresses_WC_ht+0xb658, %r10
xor %rdi, %rdi
movl $0x61626364, (%r10)
nop
nop
nop
sub $26027, %r14
lea addresses_WC_ht+0x19ad0, %r14
nop
nop
nop
nop
add $35879, %r13
mov (%r14), %si
nop
xor $42545, %r13
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %rax
push %rdi
push %rsi
// Load
lea addresses_A+0xbc60, %rdi
nop
nop
add %rax, %rax
movups (%rdi), %xmm5
vpextrq $1, %xmm5, %r15
sub $30176, %rax
// Store
lea addresses_RW+0x87f0, %rdi
nop
dec %r10
movb $0x51, (%rdi)
nop
nop
nop
nop
and %rax, %rax
// Store
lea addresses_UC+0x137c8, %r12
nop
nop
cmp $46926, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm1
vmovups %ymm1, (%r12)
nop
nop
and %r12, %r12
// Faulty Load
lea addresses_PSE+0x1bc90, %r12
inc %rax
movntdqa (%r12), %xmm2
vpextrq $1, %xmm2, %r15
lea oracles, %r12
and $0xff, %r15
shlq $12, %r15
mov (%r12,%r15,1), %r15
pop %rsi
pop %rdi
pop %rax
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}}
{'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
*/
| 33.860759 | 2,999 | 0.655576 |
2c530a8f3a1aebe640de6b97586dd04e3d93c77e | 642 | asm | Assembly | oeis/080/A080960.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/080/A080960.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/080/A080960.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A080960: Third binomial transform of A010685 (period 2: repeat 1,4).
; 1,7,34,148,616,2512,10144,40768,163456,654592,2619904,10482688,41936896,167759872,671064064,2684305408,10737319936,42949476352,171798298624,687193980928,2748777496576,10995113132032,43980458819584,175921847861248,703687416610816,2814749716774912,11258998967762944,45035996072378368,180143984692166656,720575939573972992,2882303759906504704,11529215042847244288,46116860177831428096,184467440724210614272,737869762922612260864,2951479051741988651008,11805916207071033819136,47223664828490293706752
seq $0,153894 ; a(n) = 5*2^n - 1.
bin $0,2
div $0,15
mul $0,3
add $0,1
| 71.333333 | 498 | 0.85514 |
20af537662519cf0f94bccedbb13747e37da8a26 | 534 | asm | Assembly | oeis/178/A178131.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/178/A178131.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/178/A178131.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A178131: Decimal expansion of (11+3*sqrt(21))/17.
; Submitted by Christian Krause
; 1,4,5,5,7,4,8,6,5,2,0,5,1,0,3,0,5,8,9,3,9,7,8,9,0,6,8,1,2,4,6,1,1,9,1,4,5,1,1,4,9,0,4,1,0,1,7,8,2,5,8,3,2,7,6,9,3,0,6,8,9,7,8,6,5,7,1,8,0,0,3,1,0,3,9,0,7,8,3,0,9,7,6,3,6,0,6,3,8,0,4,6,1,6,4,9,0,2,9,9
mov $1,1
mov $3,$0
mul $3,4
lpb $3
add $6,$2
add $1,$6
add $2,$5
add $1,$2
add $2,$1
mul $1,2
sub $3,1
mov $5,$6
mul $5,2
add $5,$2
add $6,$5
lpe
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
mod $0,10
| 18.413793 | 201 | 0.526217 |
e2e5d56ccb72094b214ecf44d8f2113718710325 | 5,879 | asm | Assembly | Engine/ObjectManagement/DeleteObject.asm | wide-dot/thomson-to8-game-engine | f305368ff28fba6e6bd03d0138a36ff5ea67e925 | [
"Apache-2.0"
] | 11 | 2021-09-07T18:45:06.000Z | 2022-02-15T06:36:19.000Z | Engine/ObjectManagement/DeleteObject.asm | dougmasten/thomson-to8-game-engine | b1f29e3b650e2296a5058570173e1c9068bccbe4 | [
"Apache-2.0"
] | null | null | null | Engine/ObjectManagement/DeleteObject.asm | dougmasten/thomson-to8-game-engine | b1f29e3b650e2296a5058570173e1c9068bccbe4 | [
"Apache-2.0"
] | 1 | 2021-11-22T08:43:52.000Z | 2021-11-22T08:43:52.000Z | * ---------------------------------------------------------------------------
* DeleteObject
* ------------
* Subroutine to delete an object.
* If the object is rendered as a sprite it will be deleted by EraseSprites
* routine
*
* DeleteObject
* input REG : [u] object pointer (OST)
*
* DeleteObject_x
* input REG : [x] object pointer (OST)
* ---------------------------------------------------------------------------
*; ---------------------------------------------------------------------------
*; Subroutine to delete an object
*; ---------------------------------------------------------------------------
*
*; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
*
*; freeObject:
DeleteObject_x *DeleteObject:
pshs d,x,u * movea.l a0,a1
leau ,x *; sub_164E8:
bra DOB_Start
DeleteObject_return
puls d,x,u,pc ; rts
DeleteObject *DeleteObject2:
pshs d,x,u
lda render_flags,u
anda #render_todelete_mask
bne DeleteObject_return ; branch if already registred for deletion
DOB_Start
lda rsv_prev_render_flags_0,u
bpl DOB_RemoveFromDPSB0 ; branch if not onscreen on buffer 0
DOB_ToDeleteFlag0
lda render_flags,u
ora #render_todelete_mask
sta render_flags,u ; set todelete flag, object will be deleted after sprite erase
DOB_Unset0
ldx Lst_Priority_Unset_0 ; add object to unset list on buffer 0
stu ,x
leax 2,x
stx Lst_Priority_Unset_0
DOB_TestOnscreen1
lda rsv_prev_render_flags_1,u
bpl DOB_RemoveFromDPSB1 ; branch if not onscreen on buffer 1
DOB_ToDeleteFlag1
lda render_flags,u
ora #render_todelete_mask
sta render_flags,u ; set todelete flag, object will be deleted after sprite erase
DOB_Unset1
ldx Lst_Priority_Unset_1 ; add object to unset list on buffer 1
stu ,x
leax 2,x
stx Lst_Priority_Unset_1
puls d,x,u,pc ; rts
DOB_RemoveFromDPSB0
ldd rsv_priority_prev_obj_0,u ; remove object from DSP on buffer 0
bne DOB_ChainPrevB0
lda rsv_priority_0,u
lsla
ldy #Tbl_Priority_First_Entry_0
leay a,y
ldd rsv_priority_next_obj_0,u
std ,y
bra DOB_CheckPrioNextB0
DOB_ChainPrevB0
ldd rsv_priority_next_obj_0,u
ldy rsv_priority_prev_obj_0,u
std rsv_priority_next_obj_0,y
DOB_CheckPrioNextB0
ldd rsv_priority_next_obj_0,u
bne DOB_ChainNextB0
lda rsv_priority_0,u
lsla
ldy #Tbl_Priority_Last_Entry_0
leay a,y
ldd rsv_priority_prev_obj_0,u
std ,y
bra DOB_TestOnscreen1
DOB_ChainNextB0
ldd rsv_priority_prev_obj_0,u
ldy rsv_priority_next_obj_0,u
std rsv_priority_prev_obj_0,y
bra DOB_TestOnscreen1
DOB_RemoveFromDPSB1
ldd rsv_priority_prev_obj_1,u
bne DOB_ChainPrevB1
lda rsv_priority_1,u
lsla
ldy #Tbl_Priority_First_Entry_1
leay a,y
ldd rsv_priority_next_obj_1,u
std ,y
bra DOB_CheckPrioNextB1
DOB_ChainPrevB1
ldd rsv_priority_next_obj_1,u
ldy rsv_priority_prev_obj_1,u
std rsv_priority_next_obj_1,y
DOB_CheckPrioNextB1
ldd rsv_priority_next_obj_1,u
bne DOB_ChainNextB1
lda rsv_priority_1,u
lsla
ldy #Tbl_Priority_Last_Entry_1
leay a,y
ldd rsv_priority_prev_obj_1,u
std ,y
lda rsv_prev_render_flags_0,u
bmi DOB_rts ; branch if onscreen on buffer 0 (do not erase object)
jsr ClearObj ; this object is not onscreen anymore, clear this object now
DOB_rts *
puls d,x,u,pc
DOB_ChainNextB1
ldd rsv_priority_prev_obj_1,u
ldy rsv_priority_next_obj_1,u
std rsv_priority_prev_obj_1,y
lda rsv_prev_render_flags_0,u
bmi DOB_rts ; branch if onscreen on buffer 0 (do not erase object)
jsr ClearObj ; this object is not onscreen anymore, clear this object now
puls d,x,u,pc
* moveq #0,d1
*
* moveq #bytesToLcnt(next_object),d0 ; we want to clear up to the next object
* ; delete the object by setting all of its bytes to 0
*- move.l d1,(a1)+
* dbf d0,-
* if object_size&3
* move.w d1,(a1)+
* endif
*
* rts
*; End of function DeleteObject2 | 37.929032 | 121 | 0.452458 |
5522759fa62f99ba750b1e68fcc78b79f40a84b1 | 8,732 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1444.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1444.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1444.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xb1f2, %rsi
lea addresses_WC_ht+0x7a6a, %rdi
nop
add %r14, %r14
mov $81, %rcx
rep movsb
nop
nop
nop
nop
and $5965, %r14
lea addresses_WC_ht+0x7902, %rsi
lea addresses_D_ht+0x18d02, %rdi
nop
nop
dec %r12
mov $114, %rcx
rep movsl
nop
cmp $23154, %rdi
lea addresses_D_ht+0x1294c, %rsi
lea addresses_WT_ht+0x1772, %rdi
nop
cmp %r15, %r15
mov $76, %rcx
rep movsl
nop
nop
xor $56731, %r15
lea addresses_UC_ht+0x1eb2e, %rdi
clflush (%rdi)
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r12
movq %r12, %xmm6
vmovups %ymm6, (%rdi)
nop
and $32029, %r15
lea addresses_UC_ht+0xbff4, %rdi
clflush (%rdi)
nop
cmp $5022, %r8
mov $0x6162636465666768, %r12
movq %r12, %xmm2
vmovups %ymm2, (%rdi)
nop
nop
inc %r15
lea addresses_normal_ht+0x15c02, %rsi
lea addresses_normal_ht+0x1b042, %rdi
clflush (%rsi)
nop
nop
nop
add %r15, %r15
mov $114, %rcx
rep movsq
nop
nop
inc %r12
lea addresses_WC_ht+0x12702, %r12
nop
nop
nop
cmp $32261, %r8
and $0xffffffffffffffc0, %r12
vmovntdqa (%r12), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %rcx
xor $29089, %r12
lea addresses_UC_ht+0x15c2, %rsi
lea addresses_normal_ht+0x7182, %rdi
nop
add $23877, %r14
mov $113, %rcx
rep movsl
nop
xor %rdi, %rdi
lea addresses_normal_ht+0x3b06, %r8
nop
sub $489, %rsi
movl $0x61626364, (%r8)
nop
nop
cmp %r14, %r14
lea addresses_WC_ht+0x10902, %rsi
lea addresses_A_ht+0x5102, %rdi
dec %r12
mov $23, %rcx
rep movsw
add %rcx, %rcx
lea addresses_WT_ht+0x1a7e2, %rsi
lea addresses_UC_ht+0x15402, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
xor $13957, %rax
mov $43, %rcx
rep movsl
nop
nop
nop
cmp %r14, %r14
lea addresses_WC_ht+0x1c702, %r8
nop
nop
nop
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%r8)
nop
cmp %rdi, %rdi
lea addresses_WC_ht+0x18292, %rsi
lea addresses_WC_ht+0x1927a, %rdi
nop
nop
nop
nop
xor $15706, %r8
mov $9, %rcx
rep movsw
nop
nop
nop
xor $48768, %r14
lea addresses_UC_ht+0x16102, %rax
and $57771, %r14
and $0xffffffffffffffc0, %rax
movaps (%rax), %xmm4
vpextrq $1, %xmm4, %r12
nop
nop
nop
nop
sub $28736, %rcx
lea addresses_WC_ht+0x1efa2, %r8
nop
nop
nop
nop
nop
sub $59191, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%r8)
nop
nop
nop
nop
and $13452, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdx
// Store
lea addresses_RW+0x8402, %r12
nop
nop
add %r13, %r13
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
movups %xmm1, (%r12)
nop
nop
nop
nop
nop
sub %r12, %r12
// Load
lea addresses_normal+0x7902, %rbp
nop
nop
nop
nop
nop
inc %rdx
mov (%rbp), %r12
// Exception!!!
mov (0), %r13
nop
cmp $11854, %rdx
// Faulty Load
lea addresses_PSE+0x16902, %r13
nop
sub $9917, %r12
movb (%r13), %r10b
lea oracles, %r15
and $0xff, %r10
shlq $12, %r10
mov (%r15,%r10,1), %r10
pop %rdx
pop %rcx
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': True, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'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
*/
| 33.075758 | 2,999 | 0.661361 |
6626b99008b23f2710adad5a5a436d3c1791f42b | 408 | asm | Assembly | oeis/020/A020115.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/020/A020115.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/020/A020115.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A020115: Ceiling of GAMMA(n+7/8)/GAMMA(7/8).
; Submitted by Jon Maiga
; 1,1,2,5,19,90,524,3599,28342,251532,2483878,27012164,320769441,4129906549,57302453361,852373993745,13531437150693,228343001917932,4081631159283028,77040788131467136,1531185664112909315
max $0,1
mov $1,1
mov $3,1
lpb $0
mul $1,3
mov $2,$0
sub $0,1
mul $2,24
sub $2,3
mul $1,$2
mul $3,72
lpe
div $1,$3
mov $0,$1
add $0,1
| 20.4 | 186 | 0.705882 |
63fc7a81cd8b30022730a3ff466adaa2ad7ea92a | 379 | asm | Assembly | programs/oeis/115/A115285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/115/A115285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/115/A115285.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A115285: Diagonal sums of correlation triangle for 1,3,4,4,4,...(A113311).
; 1,3,7,14,23,35,50,67,87,110,135,163,194,227,263,302,343,387,434,483,535,590,647,707,770,835,903,974,1047,1123,1202,1283,1367,1454,1543,1635,1730,1827,1927,2030,2135,2243,2354,2467,2583,2702,2823,2947,3074
mov $2,$0
pow $2,2
mul $2,2
mov $1,$2
add $1,2
mov $2,4
sub $2,$1
div $2,3
sub $2,1
add $1,$2
| 27.071429 | 206 | 0.688654 |
ea3301f8b962300244d1d6bc43b8b2693a67ab0c | 675 | asm | Assembly | libsrc/target/ondra/graphics/w_pixeladdress.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/ondra/graphics/w_pixeladdress.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/ondra/graphics/w_pixeladdress.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
PUBLIC w_pixeladdress
INCLUDE "graphics/grafix.inc"
; Get absolute pixel address in map of virtual (x,y) coordinate.
; in: (x,y) coordinate of pixel (hl,de)
;
; out: de = address of pixel byte
; a = bit number of byte where pixel is to be placed
; fz = 1 if bit number is 0 of pixel position
.w_pixeladdress
ld a,e
cpl
rrca
ld e,a
ld a,l ;Save pixel
srl h ;Divide by 8
rr l
srl h
rr l
srl h
rr l
ld h,a ;Save pixel
ld a,l
cpl
ld d,a
ld a,h
cpl
and 7
ret
| 18.243243 | 65 | 0.499259 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.