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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc564612ec2cb56d74a7586bd00702f20be12c95 | 3,967 | asm | Assembly | 4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter14/bootloader/BootLoader.asm | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | 4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter14/bootloader/BootLoader.asm | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | 4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter14/bootloader/BootLoader.asm | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z |
BootLoader.om: file format elf32-tradbigmips
Disassembly of section .text:
30000000 <_start>:
30000000: 3c011000 lui at,0x1000
30000004: 34210003 ori at,at,0x3
30000008: 34020080 li v0,0x80
3000000c: a0220000 sb v0,0(at)
30000010: 3c011000 lui at,0x1000
30000014: 34210001 ori at,at,0x1
30000018: 34020000 li v0,0x0
3000001c: a0220000 sb v0,0(at)
30000020: 3c011000 lui at,0x1000
30000024: 34210000 ori at,at,0x0
30000028: 340200b0 li v0,0xb0
3000002c: a0220000 sb v0,0(at)
30000030: 3c011000 lui at,0x1000
30000034: 34210003 ori at,at,0x3
30000038: 34020003 li v0,0x3
3000003c: a0220000 sb v0,0(at)
30000040: 3c012000 lui at,0x2000
30000044: 34210008 ori at,at,0x8
30000048: 3c02ffff lui v0,0xffff
3000004c: 3442ffff ori v0,v0,0xffff
30000050: ac220000 sw v0,0(at)
30000054: 3c012000 lui at,0x2000
30000058: 3421000c ori at,at,0xc
3000005c: 3c020000 lui v0,0x0
30000060: 34420000 ori v0,v0,0x0
30000064: ac220000 sw v0,0(at)
30000068 <_waiting_sdram_init_done>:
30000068: 3c012000 lui at,0x2000
3000006c: 34210000 ori at,at,0x0
30000070: 8c240000 lw a0,0(at)
30000074: 00042402 srl a0,a0,0x10
30000078: 30840001 andi a0,a0,0x1
3000007c: 1080fffa beqz a0,30000068 <_waiting_sdram_init_done>
30000080: 00000000 nop
30000084: 24010001 li at,1
30000088: 3c023000 lui v0,0x3000
3000008c: 24420150 addiu v0,v0,336
30000090: 3c033000 lui v1,0x3000
30000094: 24630169 addiu v1,v1,361
30000098: 80650000 lb a1,0(v1)
3000009c: 80440000 lb a0,0(v0)
300000a0: 0c000049 jal 30000124 <_print>
300000a4: 20420001 addi v0,v0,1
300000a8: 14a0fffc bnez a1,3000009c <_waiting_sdram_init_done+0x34>
300000ac: 00a12823 subu a1,a1,at
300000b0: 24050004 li a1,4
300000b4: 3c013000 lui at,0x3000
300000b8: 34210300 ori at,at,0x300
300000bc: 8c210000 lw at,0(at)
300000c0: 00000000 nop
300000c4: 3c020000 lui v0,0x0
300000c8: 3c033000 lui v1,0x3000
300000cc: 34630304 ori v1,v1,0x304
300000d0: 8c640000 lw a0,0(v1)
300000d4: 00000000 nop
300000d8: ac440000 sw a0,0(v0)
300000dc: 20420004 addi v0,v0,4
300000e0: 20630004 addi v1,v1,4
300000e4: 00000000 nop
300000e8: 0421fff9 bgez at,300000d0 <_waiting_sdram_init_done+0x68>
300000ec: 00250823 subu at,at,a1
300000f0: 24010001 li at,1
300000f4: 3c023000 lui v0,0x3000
300000f8: 2442016a addiu v0,v0,362
300000fc: 3c033000 lui v1,0x3000
30000100: 24630185 addiu v1,v1,389
30000104: 80650000 lb a1,0(v1)
30000108: 80440000 lb a0,0(v0)
3000010c: 0c000049 jal 30000124 <_print>
30000110: 20420001 addi v0,v0,1
30000114: 14a0fffc bnez a1,30000108 <_waiting_sdram_init_done+0xa0>
30000118: 00a12822 sub a1,a1,at
3000011c: 00000008 jr zero
30000120: 00000000 nop
30000124 <_print>:
30000124: 3c061000 lui a2,0x1000
30000128: 34c60000 ori a2,a2,0x0
3000012c: a0c40000 sb a0,0(a2)
30000130 <_waiting_transmit_done>:
30000130: 3c061000 lui a2,0x1000
30000134: 34c60005 ori a2,a2,0x5
30000138: 80c70000 lb a3,0(a2)
3000013c: 30e70020 andi a3,a3,0x20
30000140: 10e0fffb beqz a3,30000130 <_waiting_transmit_done>
30000144: 00000000 nop
30000148: 03e00008 jr ra
3000014c: 00000000 nop
Disassembly of section .data:
30000150 <_BootBeginInfoStr>:
30000150: 4c6f6164 0x4c6f6164
30000154: 696e6720 0x696e6720
30000158: 4f532069 c3 0x1532069
3000015c: 6e746f20 0x6e746f20
30000160: 53445241 beql k0,a0,30014a68 <_ram_end+0x148d8>
30000164: 4d2e2e2e 0x4d2e2e2e
30000168: 0a1a4c6f j 386931bc <_ram_end+0x869302c>
30000169 <_BootBeginInfoStrLen>:
30000169: 1a4c 6f61 jal 3649bd84 <_ram_end+0x649bbf4>
3000016a <_BootEndInfoStr>:
3000016a: 4c6f6164 0x4c6f6164
3000016e: 204f5320 addi t7,v0,21280
30000172: 696e746f 0x696e746f
30000176: 20534452 addi s3,v0,17490
3000017a: 414d2044 0x414d2044
3000017e: 4f4e4521 c3 0x14e4521
30000182: 21210a1c addi at,t1,2588
30000185 <_BootEndInfoStrLen>:
30000185: Address 0x0000000030000185 is out of bounds.
Disassembly of section .reginfo:
00000000 <_ram_end-0x30000190>:
0: 900000fe lbu zero,254(zero)
...
| 30.992188 | 68 | 0.780691 |
1dc8a8512537120a13053eec1fe9a0fe51ce93aa | 666 | asm | Assembly | src/coreclr/nativeaot/Runtime/amd64/GC.asm | pyracanda/runtime | 72bee25ab532a4d0636118ec2ed3eabf3fd55245 | [
"MIT"
] | 9,402 | 2019-11-25T23:26:24.000Z | 2022-03-31T23:19:41.000Z | src/coreclr/nativeaot/Runtime/amd64/GC.asm | pyracanda/runtime | 72bee25ab532a4d0636118ec2ed3eabf3fd55245 | [
"MIT"
] | 37,522 | 2019-11-25T23:30:32.000Z | 2022-03-31T23:58:30.000Z | src/coreclr/nativeaot/Runtime/amd64/GC.asm | pyracanda/runtime | 72bee25ab532a4d0636118ec2ed3eabf3fd55245 | [
"MIT"
] | 3,629 | 2019-11-25T23:29:16.000Z | 2022-03-31T21:52:28.000Z | ;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
include AsmMacros.inc
;; extern "C" DWORD __stdcall xmmYmmStateSupport();
LEAF_ENTRY xmmYmmStateSupport, _TEXT
mov ecx, 0 ; Specify xcr0
xgetbv ; result in EDX:EAX
and eax, 06H
cmp eax, 06H ; check OS has enabled both XMM and YMM state support
jne not_supported
mov eax, 1
jmp done
not_supported:
mov eax, 0
done:
ret
LEAF_END xmmYmmStateSupport, _TEXT
end
| 30.272727 | 93 | 0.578078 |
8e21102f7895346f44b052c686444e9378bc7778 | 1,703 | asm | Assembly | externals/mpir-3.0.0/mpn/x86_64/k8/k10/hamdist.asm | JaminChan/eos_win | c03e57151cfe152d0d3120abb13226f4df74f37e | [
"MIT"
] | 12 | 2021-09-29T14:50:06.000Z | 2022-03-31T15:01:21.000Z | externals/mpir-3.0.0/mpn/x86_64/k8/k10/hamdist.asm | JaminChan/eos_win | c03e57151cfe152d0d3120abb13226f4df74f37e | [
"MIT"
] | 15 | 2021-12-24T22:53:49.000Z | 2021-12-25T10:03:13.000Z | LibSource/mpir/mpn/x86_64/k8/k10/hamdist.asm | ekzyis/CrypTool-2 | 1af234b4f74486fbfeb3b3c49228cc36533a8c89 | [
"Apache-2.0"
] | 10 | 2021-10-17T19:46:51.000Z | 2022-03-18T02:57:57.000Z | dnl mpn_hamdist
dnl Copyright 2010 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the License, or (at
dnl your option) any later version.
dnl The MPIR 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 Lesser General Public
dnl License for more details.
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with the MPIR Library; see the file COPYING.LIB. If not, write
dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, USA.
include(`../config.m4')
ASM_START()
PROLOGUE(mpn_hamdist)
xor %eax,%eax
lea -24(%rdi,%rdx,8),%rdi
lea -24(%rsi,%rdx,8),%rsi
mov $3,%rcx
sub %rdx,%rcx
jnc skiplp
ALIGN(16)
lp: mov (%rdi,%rcx,8),%r8
mov 8(%rdi,%rcx,8),%r9
xor (%rsi,%rcx,8),%r8
mov 16(%rdi,%rcx,8),%r10
popcnt %r8,%r8
xor 8(%rsi,%rcx,8),%r9
xor 16(%rsi,%rcx,8),%r10
popcnt %r9,%r9
mov 24(%rdi,%rcx,8),%r11
add %r8,%rax
popcnt %r10,%r10
xor 24(%rsi,%rcx,8),%r11
add %r9,%rax
popcnt %r11,%r11
add %r10,%rax
add %r11,%rax
add $4,%rcx
jnc lp
skiplp:
cmp $2,%rcx
ja case0
je case1
jp case2
case3: mov (%rdi),%r8
xor (%rsi),%r8
popcnt %r8,%r8
add %r8,%rax
case2: mov 8(%rdi),%r8
xor 8(%rsi),%r8
popcnt %r8,%r8
add %r8,%rax
case1: mov 16(%rdi),%r8
xor 16(%rsi),%r8
popcnt %r8,%r8
add %r8,%rax
case0: ret
EPILOGUE()
| 24.328571 | 79 | 0.699941 |
b7d902160c7e2096610f4957f294869349c20cfb | 353 | asm | Assembly | oeis/138/A138029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/138/A138029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/138/A138029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A138029: Main diagonal of A138028; the most significant digit of n^(n-1).
; 1,2,9,6,6,7,1,2,4,1,2,7,2,7,2,1,4,2,1,5,2,1,9,5,3,2,1,1,8,6,5,4,3,3,3,2,2,2,2,3,3,3,4,4,5,6,8,1,1,1,2,3,4,6,9,1,2,3,5,8,1,2,3,6,1,1,3,5,1,2,3,7,1,2,5,1,2,4,1,2,4,1,2,5,1,2,6,1,3,8,2,5,1,3,8,2,5,1,3,1
mov $3,$0
add $0,1
pow $0,$3
lpb $0
mov $2,$0
div $0,10
lpe
mov $0,$2
| 29.416667 | 201 | 0.549575 |
6200e22633e5f60d94431c7dffc7eb136155f1fd | 436 | asm | Assembly | ex3.asm | robjpar/nasm-sasm | 20e64c2fbc70b5c5dffdac67ab591bf5f3fc9279 | [
"MIT"
] | null | null | null | ex3.asm | robjpar/nasm-sasm | 20e64c2fbc70b5c5dffdac67ab591bf5f3fc9279 | [
"MIT"
] | null | null | null | ex3.asm | robjpar/nasm-sasm | 20e64c2fbc70b5c5dffdac67ab591bf5f3fc9279 | [
"MIT"
] | null | null | null | ; nasm -f elf32 ex3.asm -o ex3.o
; gcc -m32 ex3.o -o ex3.out
; ./ex3.out
; echo $?
global main
section .text
main:
mov ebp, esp; for correct debugging
mov eax, 1 ; exit call
mov ebx, 42 ; exit status
mov ecx, 101; 101
cmp ecx, 100; comapare ecx = 101 to 100
jl skip ; jump to skip if less (ecx = 101 not less than 100)
mov ebx, 13 ; exit status
skip:
int 0x80 ; system call
| 18.956522 | 68 | 0.584862 |
8135c4692253dfd3c80d852aef7df568f023593c | 517 | asm | Assembly | oeis/019/A019739.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/019/A019739.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/019/A019739.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A019739: Decimal expansion of e/2.
; Submitted by Christian Krause
; 1,3,5,9,1,4,0,9,1,4,2,2,9,5,2,2,6,1,7,6,8,0,1,4,3,7,3,5,6,7,6,3,3,1,2,4,8,8,7,8,6,2,3,5,4,6,8,4,9,9,7,9,7,8,7,4,8,3,4,8,3,8,1,3,8,6,2,0,3,8,3,1,5,1,7,6,7,7,3,7,9,7,2,8,5,6,9,1,0,8,9,2,6,2,5,8,3,2,1,3
mov $1,2
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $2,$3
add $1,$2
add $7,1
mov $5,$7
div $5,3
mov $4,$5
cmp $4,0
add $5,$4
div $1,$5
div $2,$5
sub $3,1
lpe
mul $2,2
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
mov $0,$1
mod $0,10
| 17.827586 | 201 | 0.526112 |
2e63a2181bd3c2314389db1e87814dceb86ae99e | 722 | asm | Assembly | oeis/154/A154347.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/154/A154347.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/154/A154347.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A154347: a(n) = ( (7 + 2*sqrt(2))^n - (7 - 2*sqrt(2))^n )/(4*sqrt(2)).
; Submitted by Christian Krause
; 1,14,155,1596,15989,158410,1562191,15375864,151212265,1486561286,14612155139,143621159220,1411597868381,13873902629314,136359124206775,1340197731092976,13172044142823889,129460511024722430,1272393344490334571,12505625870851064364,122910635067811183685,1208018230244462932666,11872919185642222526239,116692121158968135128040,1146900009614222768216761,11272223167081425214785014,110788223944956819510102995,1088873985379057039335256356,10701918613563568950779366189,105183027189348626698165616050
mov $1,6
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,7
mul $3,8
add $3,$1
mul $1,6
add $1,$2
lpe
mov $0,$3
| 42.470588 | 496 | 0.801939 |
2adf24a5df636f9dd9262f450c1d17cc8dedbee7 | 9,032 | asm | Assembly | Transynther/x86/_processed/NC/_ht_zr_un_/i7-7700_9_0x48.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/_ht_zr_un_/i7-7700_9_0x48.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/_ht_zr_un_/i7-7700_9_0x48.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 %r11
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x9d1d, %rsi
lea addresses_D_ht+0x1da5d, %rdi
nop
nop
nop
nop
nop
inc %r15
mov $52, %rcx
rep movsw
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_normal_ht+0x1b23d, %rdx
and $47810, %r9
movb $0x61, (%rdx)
xor %r15, %r15
lea addresses_UC_ht+0x10905, %r15
nop
nop
nop
nop
and $51354, %rdx
vmovups (%r15), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %rbx
nop
add %rbx, %rbx
lea addresses_WC_ht+0xd34b, %rdx
nop
nop
nop
nop
nop
inc %rcx
movb $0x61, (%rdx)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0xd19d, %r9
nop
nop
nop
nop
inc %rbx
mov (%r9), %rdx
nop
nop
nop
cmp %rdi, %rdi
lea addresses_D_ht+0x1439d, %rsi
lea addresses_A_ht+0x259d, %rdi
nop
sub %rbx, %rbx
mov $94, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_WC_ht+0x1a19d, %rsi
lea addresses_UC_ht+0x1919d, %rdi
nop
nop
nop
nop
cmp %r11, %r11
mov $105, %rcx
rep movsl
nop
add $12184, %rbx
lea addresses_D_ht+0x11c07, %r9
nop
nop
sub $50140, %rdx
mov (%r9), %ecx
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WC_ht+0x8fed, %r15
nop
nop
cmp %rdi, %rdi
movb (%r15), %cl
nop
nop
nop
and $55571, %rdx
lea addresses_WC_ht+0x4f9d, %rsi
nop
nop
nop
nop
add $48362, %r15
vmovups (%rsi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rcx
add %rcx, %rcx
lea addresses_WT_ht+0x1677, %rsi
lea addresses_normal_ht+0x9d9d, %rdi
nop
nop
nop
inc %r9
mov $13, %rcx
rep movsq
nop
nop
nop
nop
sub $28690, %rcx
lea addresses_WT_ht+0x1799d, %r9
nop
and $22845, %rcx
mov (%r9), %rbx
sub $26414, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %r8
push %rax
push %rcx
// Load
lea addresses_normal+0x607d, %r15
nop
cmp %r13, %r13
mov (%r15), %r8
nop
nop
and %r12, %r12
// Store
lea addresses_normal+0x1d99d, %r12
nop
nop
xor $61570, %r13
mov $0x5152535455565758, %r8
movq %r8, %xmm1
vmovups %ymm1, (%r12)
nop
nop
nop
nop
add $38001, %r15
// Load
lea addresses_WC+0x76e9, %rax
nop
nop
nop
add $56999, %rcx
movups (%rax), %xmm3
vpextrq $0, %xmm3, %r12
xor $60891, %r13
// Store
lea addresses_UC+0xa83d, %r8
nop
nop
nop
nop
and %r13, %r13
mov $0x5152535455565758, %r15
movq %r15, %xmm5
movups %xmm5, (%r8)
inc %rcx
// Store
mov $0x1e4217000000099d, %r8
nop
nop
nop
nop
dec %r15
movb $0x51, (%r8)
add %r15, %r15
// Store
mov $0xc7df9000000059d, %rax
nop
nop
and $9300, %r10
movw $0x5152, (%rax)
nop
nop
nop
nop
inc %rax
// Load
lea addresses_RW+0xdfbd, %r10
add $30957, %rcx
mov (%r10), %r15
nop
nop
nop
add $38747, %r15
// Load
lea addresses_US+0x1399d, %rax
and %r10, %r10
mov (%rax), %r13d
nop
nop
nop
xor $20429, %r13
// Faulty Load
mov $0xc7df9000000059d, %rcx
nop
nop
nop
xor %r8, %r8
movups (%rcx), %xmm6
vpextrq $1, %xmm6, %r12
lea oracles, %rax
and $0xff, %r12
shlq $12, %r12
mov (%rax,%r12,1), %r12
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}}
{'6e': 2, '08': 3, '00': 19056, 'f6': 1, 'ff': 37, '49': 1330, '40': 1, '15': 1, '6c': 11, '46': 1386, '25': 1}
00 6c 6c 6c 6c 6c 6c 6c 6c 6c 6c 6c 49 49 49 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 00 46 00 46 46 46 46 46 46 46 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 46 49 49 49 49 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 00 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 49 49 00 00 00 00 00 00 00 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 30.931507 | 2,999 | 0.647143 |
f7f15d5e183f4df7ccae421196d5288af7b5859b | 4,722 | asm | Assembly | fs/tifs.asm | TheMachine02/Sorcery | ee657f5a64049bee0c947add7ff2cb92d7281ec1 | [
"MIT"
] | 14 | 2020-05-27T13:20:35.000Z | 2022-02-10T01:19:54.000Z | fs/tifs.asm | TheMachine02/Sorcery | ee657f5a64049bee0c947add7ff2cb92d7281ec1 | [
"MIT"
] | 10 | 2020-06-12T20:53:03.000Z | 2021-03-21T23:11:44.000Z | fs/tifs.asm | TheMachine02/Sorcery | ee657f5a64049bee0c947add7ff2cb92d7281ec1 | [
"MIT"
] | 84 | 2020-06-11T06:27:03.000Z | 2021-05-29T17:06:24.000Z | define TIFS_SECTOR_FLAG $F0
define TIFS_SECTOR_BASE $0C0000
define TIFS_SECTOR_COUNT $34
; valid 0FCh
; valid 0FFh
; valid 0F0h
define TIFS_FILE_VALID $FC
define TIFS_FILE_DELETED $F0
define TIFS_FILE_CORRUPTED $FE
define TIFS_FILE_FLAG 0
define TIFS_FILE_SIZE 1 ; doesnt take in count the small offset, so base size off the next adress of this field
define TIFS_FILE_TYPE 3
define TIFS_FILE_ATTRIBUTE 4
define TIFS_FILE_VERSION 5
define TIFS_FILE_ADRESS 6
define TIFS_FILE_NAME_SIZE 9
define TIFS_FILE_NAME 10
define TIFS_TYPE_GDB 1
define TIFS_TYPE_STRING 4
define TIFS_TYPE_EXE 5
define TIFS_TYPE_PROT_EXE 6
define TIFS_TYPE_PICTURE 7
define TIFS_TYPE_APPV 21
define TIFS_TYPE_GROUP 23
define TIFS_TYPE_IMAGE 26
tifs:
.phy_mem_ops:
jp .phy_read
ret
dl $0
jp .phy_sync
ret ; phy_read_inode (from backing device) ; not supported
dl $0
ret ; phy_sync_inode ; not supported (no inode data written)
dl $00
jp .phy_destroy
.phy_read:
ldir
ret
.phy_sync:
; tifs work by finding a free spot somewhere and write the file here (also droping the previous file)
; if all spot are filed, garbage collect and retry (kinda inefficient indeed)
ret
.phy_destroy:
; marking the variable as removed in flash
; iy = inode
; reading the first value of the first block is okay since tifs write file in-order
ld ix, (iy+KERNEL_VFS_INODE_DMA_DATA)
ld ix, (ix+KERNEL_VFS_INODE_DMA_POINTER)
; hl is pointer to flash memory
; back search the begin of the variable
lea hl, ix-3
lea de, ix-9
.field_search:
; search the TIFS_FILE_ADRESS field by checking if de = bc
ld bc, (hl)
ex de, hl
or a, a
sbc hl, bc
add hl, bc
dec hl
dec de
jr nz, .field_search
; hl is the TIFS_FILE_ADRESS, bc is the base adress
; so write $F0 to bc adress with flash routine
ld de, .delete_byte
or a, a
sbc hl, hl
add hl, bc
ex de, hl
ld bc, 1
jp flash.phy_write
.delete_byte:
db $F0
.path:
db "/tifs/", 0
.mount:
ld hl, kmem_cache_s16
call kmem.cache_alloc
ret c
; this will be our temporary buffer for path
ex de, hl
ld iy, 0
lea bc, iy+6
add iy, de
push de
ld hl, .path
ldir
ld hl, .path
ld c, KERNEL_VFS_PERMISSION_RWX
call kvfs.mkdir
pop iy
ret c
; goes each page and search
ld b, TIFS_SECTOR_COUNT
ld hl, TIFS_SECTOR_BASE
.mount_parse:
push bc
; create an inode for each file found and fill it
ld a, (hl)
cp a, TIFS_SECTOR_FLAG
jr nz, .mount_invalid_sector
inc hl
push hl
.mount_parse_sector:
ld a, (hl)
; unexpected value, quit current sector
inc hl
inc.s bc
ld c, (hl)
inc hl
ld b, (hl)
inc hl
cp a, TIFS_FILE_VALID
jr z, .mount_add_file
; mount_skip_file
add hl, bc
cp a, TIFS_FILE_DELETED
jr z, .mount_parse_sector
pop hl
.mount_invalid_sector:
ld bc, 65536
add hl, bc
ld h, b
ld l, c
pop bc
djnz .mount_parse
lea hl, iy+0
jp kfree
.mount_add_file:
push hl
add hl, bc
ex (sp), hl
ld a, (hl) ; file type
ld bc, 6
add hl, bc
; goes directly to NAME
ld c, (hl)
; size name
inc c
dec c
jr z, .mount_strange_file
; copy file name to our temporary buffer
lea de, iy+6
inc hl
ldir
; blit a zero to be a null terminated string \*/
ex de, hl
ld (hl), c
ex de, hl
; iy is our file name, let's create inode
; a = file type, hl = data
; offset based on the type ?
ld c, (hl)
inc hl
ld b, (hl)
cp a, TIFS_TYPE_APPV
jr z, .mount_appv
cp a, TIFS_TYPE_EXE
jr z, .mount_exec
cp a, TIFS_TYPE_PROT_EXE
; unknown file type for now
jr nz, .mount_strange_file
.mount_exec:
inc hl
dec.s bc
dec bc
push bc
; skip $EF7B identifier of 8xp exectuable
inc hl
ld bc, KERNEL_VFS_PERMISSION_RX
.mount_create_inode:
inc hl
push hl
lea hl, iy+0
ld a, KERNEL_VFS_TYPE_FILE or KERNEL_VFS_CAPABILITY_DMA
push hl
call kvfs.inode_create
pop ix
pop de
pop hl
jr c, .mount_error_file
push ix
; fill in the inode
; size is hl, start of data is de
; allocate indirect block and fill them with data
ld (iy+KERNEL_VFS_INODE_SIZE), hl
ld bc, .phy_mem_ops
ld (iy+KERNEL_VFS_INODE_OP), bc
pea iy+KERNEL_VFS_INODE_ATOMIC_LOCK
call .mount_data
pop hl
; and let go of the lock
; lea hl, iy+KERNEL_VFS_INODE_ATOMIC_LOCK
call atomic_rw.unlock_write
pop iy
.mount_strange_file:
pop hl
jp .mount_parse_sector
.mount_error_file:
pop hl
pop hl
pop bc
ret
.mount_appv:
push bc
; RO fs for now
ld bc, KERNEL_VFS_PERMISSION_R
jr .mount_create_inode
.mount_data:
; hl is size of file, de is disk adress, iy is inode
lea iy, iy+KERNEL_VFS_INODE_DATA
ld bc, 1024
.do_data:
push hl
ld hl, kmem_cache_s64
call kmem.cache_alloc
ld (iy+0), hl
ld ix, (iy+0)
lea iy, iy+3
pop hl
ld a, 16
.do_data_inner:
ld (ix+1), de
lea ix, ix+4
ex de, hl
add hl, bc
ex de, hl
sbc hl, bc
ret c
dec a
jr nz, .do_data_inner
jr .do_data
| 19.117409 | 113 | 0.728505 |
da9ea93d0a8bf511ab19b325b6306e417f388773 | 175 | asm | Assembly | libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; void z80_delay_tstate(uint tstates)
SECTION code_clib
SECTION code_z80
PUBLIC z80_delay_tstate
EXTERN asm_z80_delay_tstate
defc z80_delay_tstate = asm_z80_delay_tstate
| 14.583333 | 44 | 0.857143 |
29dcb6584df6bfbe15ecf81afc62c25d721aefe0 | 695 | asm | Assembly | src/arch/x86_64/multiboot_header.asm | PizzasBear/mxos | 119f01719752a52ddd9d582ddde47eb826829fdb | [
"Apache-2.0"
] | 3 | 2021-12-04T08:05:16.000Z | 2022-01-22T10:42:57.000Z | src/arch/x86_64/multiboot_header.asm | PizzasBear/MxOS | 119f01719752a52ddd9d582ddde47eb826829fdb | [
"Apache-2.0"
] | null | null | null | src/arch/x86_64/multiboot_header.asm | PizzasBear/MxOS | 119f01719752a52ddd9d582ddde47eb826829fdb | [
"Apache-2.0"
] | null | null | null | section .multiboot_header
MAGIC equ 0xe85250d6
ARCH equ 0x0
header_start:
dd MAGIC ; magic number (multiboot 2)
dd ARCH ; architecture 0 (protected mode i386)
dd header_end - header_start ; header length
; checksum
dd (1 << 32) - (MAGIC + ARCH + (header_end - header_start))
; ; framebuffer tag
; align 8 ; tags should be 64-bit aligned
; dw 5 ; type
; dw 0 ; flags
; dd 20 ; size
; dd 0 ; width
; dd 0 ; height
; dd 32 ; depth (bits per pixel)
; required end tag
align 8 ; tags should be 64-bit aligned
dw 0 ; type
dw 0 ; flags
dd 8 ; size
header_end:
| 24.821429 | 71 | 0.558273 |
73b1f0f2eeba528c9bb229641f3b5d8cd83ae047 | 1,420 | asm | Assembly | 5-27-IP-93-Uzunlu/5-27-IP-93-Uzunlu.asm | pinhanderler/SystemProgramming | 1654ceb875bf2986280476d0c133650a84aa00e1 | [
"MIT"
] | null | null | null | 5-27-IP-93-Uzunlu/5-27-IP-93-Uzunlu.asm | pinhanderler/SystemProgramming | 1654ceb875bf2986280476d0c133650a84aa00e1 | [
"MIT"
] | null | null | null | 5-27-IP-93-Uzunlu/5-27-IP-93-Uzunlu.asm | pinhanderler/SystemProgramming | 1654ceb875bf2986280476d0c133650a84aa00e1 | [
"MIT"
] | null | null | null | .386
.model flat,stdcall
option casemap:none
include C:\masm32\include\windows.inc
include C:\masm32\include\kernel32.inc
includelib C:\masm32\lib\kernel32.lib
include C:\masm32\include\user32.inc
includelib C:\masm32\lib\user32.lib
.data?
value dd ?
.data
MsgBoxCaption db "Lab 6",0
MsgBoxText db "a=%i, b=%i, d=%i",13,
"The value is %i",0
MsgBoxError db "Division by zero",0
array_a dd -1, 2, 4, -6, -1
array_b dd 2, -1, -3, 2, -5
array_d dd 2, 7, -1, 7, -5
buf db 128 dup (?)
.code
start:
mov edi, 0
loop_start:
mov eax, 4
imul array_a[edi*4]
mov ebx, array_d[edi*4]
sub ebx, eax
imul ebx, array_a[edi*4]
sub ebx, 53
mov eax, array_a[edi*4]
imul array_b[edi*4]
inc eax
imul array_a[edi*4]
cmp eax, 0
jz error
xchg eax, ebx
cdq
idiv ebx
test eax, 1
jz evenj
mov ebx,5
imul ebx
jmp fin
evenj:
cdq
mov ebx,2
idiv ebx
fin:
mov value, eax
invoke wsprintf, addr buf, addr MsgBoxText, array_a[edi*4], array_b[edi*4], array_d[edi*4], value
invoke MessageBox, NULL, addr buf, addr MsgBoxCaption, MB_OK
jmp repeat_point
error:
invoke MessageBox, NULL, addr MsgBoxError, addr MsgBoxCaption, MB_OK
repeat_point:
inc edi
cmp edi, 5
jnz loop_start
invoke ExitProcess, NULL
end start | 20.882353 | 102 | 0.606338 |
8c9ae6cd75d88022d5b4f8f46b5984e797f3b80a | 7,905 | asm | Assembly | u7-common/patch-conversationKeys.asm | JohnGlassmyer/UltimaHacks | f9a114e00c4a1edf1ac7792b465feff2c9b88ced | [
"MIT"
] | 68 | 2018-03-04T22:34:22.000Z | 2022-03-10T15:18:32.000Z | u7-common/patch-conversationKeys.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 19 | 2018-11-20T04:06:49.000Z | 2021-11-08T16:37:10.000Z | u7-common/patch-conversationKeys.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 4 | 2020-09-01T17:57:36.000Z | 2022-01-04T20:51:11.000Z | ; Allow advancing through conversation dialogue as well as text of books,
; scrolls, and signs with Enter or other keys.
; Also, select conversation options using Tab and other keys.
[bits 16]
startPatch EXE_LENGTH, conversationKeys
startBlockAt addr_textLoop_procStart
push cs
call calcJump(off_prepareConversationGump)
; signLoop (below) jumps here to also use this key/mouse loop
off_textLoop_fromSignLoop EQU block_currentOffset
; assume that the player advances text by mouse, not by key
mov byte [dseg_conversationKeys_usedKeyInTextLoop], 0
; disable key-mouse, as it would interfere
mov byte [dseg_isKeyMouseEnabled], 0
.loopStart:
callFunctionsInLoop
; end loop if pressed Ctrl
callFromOverlay getCtrlStatus
cmp al, [dseg_previousCtrlStatus]
jg .endedByKey
; end loop of pressed Enter or Space
push 1
callFromOverlay pollKey
pop cx
cmp ax, 13
je .endedByKey
cmp ax, ' '
je .endedByKey
; end loop if MB1 pressed or double-clicked (as in original game)
callFromOverlay updateAndGetMouseState
mov bx, ax
cmp byte [bx+MouseState_button], 1
jne .notClick
mov al, [bx+MouseState_action]
cmp al, MouseAction_PRESS
je .endLoop
cmp al, MouseAction_DOUBLE_CLICK
je .endLoop
.notClick:
jmp .loopStart
.endedByKey:
; record that the player used a keypress to advance text
mov byte [dseg_conversationKeys_usedKeyInTextLoop], 1
.endLoop:
retf
times 0 nop
endBlockAt off_textLoop_procEnd
startBlockAt addr_optionsLoop_beforeLoop
; if the player advanced preceding text by key rather by mouse, then
; position the cursor to the left of conversation options in order
; to prevent the player from accidentally selecting an option by key.
; this allows the player to advance quickly through dialogue without
; risk of skipping through the succeeding options prompt.
cmp byte [dseg_conversationKeys_usedKeyInTextLoop], 1
jne .afterPreparingCursor
mov bx, [dseg_pn_conversationGump]
add bx, ConversationGump_optionsGump + ConversationOptionsGump_xyBounds
mov ax, [bx+XyBounds_minY]
add ax, 4
push ax ; toLeftOfOptions_y
mov ax, [bx+XyBounds_minX]
sub ax, 6
push ax ; toLeftOfOptions_x
callFromOverlay setMouseCursorPosition
pop cx
pop cx
callFromOverlay copyFrameBuffer
.afterPreparingCursor:
; prepare to move by key to first or last conversation option
mov byte [dseg_conversationKeys_optionIndex], -1
; disable key-mouse, as it would interfere
mov byte [dseg_isKeyMouseEnabled], 0
.loopStart:
callFromOverlay playAmbientSounds
callFromOverlay cyclePalette
; don't filter mouse events; let the conversation gump receive them all
callFromOverlay updateAndGetMouseState
push ax
mov bx, [dseg_pn_conversationGump]
push bx
mov bx, [bx+0xC]
call far [bx+8]
pop cx
pop cx
test al, al
jz .loopStart
;fall through
times 3 nop
endBlockAt off_optionsLoop_loopEnd
startBlockAt addr_ConversationGump_checkGumpBounds
%define .reg_pn_mouseState di
mov word [dseg_conversationKeys_keyCode], 0
; pressed Enter or Space?
push 1
callFromOverlay pollKey
pop cx
cmp ax, 13
je .fakeClick
cmp ax, ' '
je .fakeClick
mov [dseg_conversationKeys_keyCode], ax
; pressed Ctrl?
callFromOverlay getCtrlStatus
mov al, [dseg_previousCtrlStatus]
cmp byte [dseg_ctrlStatus], al
jg .fakeClick
jmp .afterFakeClick
.fakeClick:
mov byte [.reg_pn_mouseState+MouseState_action], MouseAction_PRESS
mov byte [dseg_conversationKeys_mouseEvent+MouseState_rawAction], \
MouseRawAction_RELEASE
push word dseg_conversationKeys_mouseEvent
callFromOverlay enqueueMouseEvent
pop cx
.afterFakeClick:
; let the options gump receive all mouse events, including fake clicks
jmp calcJump(off_ConversationGump_callOptionsGump)
; =========
%macro defineOptionKey 2
%assign %%keyCode %1
%assign %%direction %2
dw %%keyCode
db %%direction
%endmacro
off_optionKeys EQU block_currentOffset
defineOptionKey 9, 1 ; Tab
defineOptionKey 0x14D, 1 ; Right
defineOptionKey 0x14B, -1 ; Left
defineOptionKey 0x10F, -1 ; Shift+Tab
defineOptionKey '`', -1 ; backquote
off_optionKeys_end EQU block_currentOffset
endBlockAt off_ConversationGump_callOptionsGump
startBlockAt addr_OptionsGump_checkGumpBounds
; checking gump bounds here is redundant because the bounds of the
; individual options are checked below. so instead we can use
; this space to move the cursor in response to key-presses.
%assign .arg_pn_mouseState 0x08
%define .reg_pn_this si
call calcJump(off_OptionsGump_selectOptionByKeyCode)
test ax, ax
jz .afterMovingCursor
.moveCursor:
push 0
push word dseg_yellowTextPrinter
callFromOverlay TextPrinter_getLineHeight
pop cx
pop cx
mov dx, ax
movzx bx, [dseg_conversationKeys_optionIndex]
shl bx, 1
add bx, dseg_conversationOptionCoords
; y
movzx ax, [bx+ConversationOptionCoords_line]
sub ax, [.reg_pn_this+0x17]
imul dx
add ax, [.reg_pn_this+0x10]
add ax, 4
push ax
; x
movzx ax, [bx+ConversationOptionCoords_x]
add ax, [.reg_pn_this+0xE]
add ax, 3
push ax
callFromOverlay setMouseCursorPosition
pop cx
pop cx
callFromOverlay copyFrameBuffer
.afterMovingCursor:
mov bx, [bp+.arg_pn_mouseState]
cmp byte [bx+MouseState_button], 1
jne calcJump(off_OptionsGump_notInBounds)
mov al, [bx+MouseState_action]
cmp al, MouseAction_PRESS
jz calcJump(off_OptionsGump_considerOptions)
cmp al, MouseAction_DOUBLE_CLICK
jz calcJump(off_OptionsGump_considerOptions)
; fall through
times 26 nop
endBlockAt off_OptionsGump_notInBounds
startBlockAt addr_OptionsGump_checkOptionBounds
%assign .arg_pn_mouseState 0x08
%define .reg_pn_xyBounds di
mov bx, [bp+.arg_pn_mouseState]
mov ax, [bx+MouseState_xx]
shr ax, 1
cmp ax, [.reg_pn_xyBounds+XyBounds_minX]
jb .nope
cmp ax, [.reg_pn_xyBounds+XyBounds_maxX]
ja .nope
mov ax, [bx+MouseState_y]
cmp ax, [.reg_pn_xyBounds+XyBounds_minY]
jb .nope
cmp ax, [.reg_pn_xyBounds+XyBounds_maxY]
ja .nope
jmp calcJump(off_OptionsGump_withinOptionBounds)
.nope:
jmp calcJump(off_OptionsGump_forOption)
; =========
off_OptionsGump_selectOptionByKeyCode EQU block_currentOffset
mov ax, [dseg_conversationKeys_keyCode]
mov bx, off_optionKeys
.forOptionKey:
cmp ax, [cs:bx]
jnz .notThisOptionKey
mov al, [cs:bx+2]
jmp .haveDirection
.notThisOptionKey:
add bx, 3
cmp bx, off_optionKeys_end
jb .forOptionKey
jmp .returnZero
.haveDirection:
cmp byte [dseg_conversationKeys_optionIndex], 0
jge .alreadyInitialized
; first movement will be to first or last option
inc al
shr al, 1
dec al
jmp .modulo
.alreadyInitialized:
; bound index to [0, options.size)
add al, [dseg_conversationKeys_optionIndex]
.modulo:
mov bl, byte [dseg_conversationOptionList+ConversationOptions_SIZE]
add al, bl
cbw
div bl
mov [dseg_conversationKeys_optionIndex], ah
mov ax, 1
jmp .endProc
.returnZero:
xor ax, ax
.endProc:
retn
endBlockAt off_OptionsGump_withinOptionBounds
startBlockAt addr_signLoop_start
; not enough space here to check for key-presses, but enough to jump
; into the conversation text loop, which has been been patched (above)
; to check for those key-presses (and which is, fortunately, in the
; same overlay segment).
; prepare for textLoop's epilogue/retf
push bp
push si
push cs
push off_signLoop_returnFromTextLoop
jmp calcJump(off_textLoop_fromSignLoop)
; textLoop will return here and close the Sign display
off_signLoop_returnFromTextLoop EQU block_currentOffset
endBlockAt off_signLoop_end
endPatch
| 24.858491 | 74 | 0.742062 |
606364dc7736ea51b36afa6b927262ea8c83ef2d | 868 | asm | Assembly | oeis/082/A082548.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/082/A082548.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/082/A082548.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A082548: a(n) is the number of values of k such that k can be expressed as the sum of distinct primes with largest prime in the sum equal to prime(n).
; Submitted by Jon Maiga
; 1,2,4,7,12,23,36,53,72,95,124,155,192,233,276,323,376,435,496,563,634,707,786,869,958,1055,1156,1259,1366,1475,1588,1715,1846,1983,2122,2271,2422,2579,2742,2909,3082,3261,3442,3633,3826,4023,4222,4433,4656,4883,5112,5345,5584,5825,6076,6333,6596,6865,7136,7413,7694,7977,8270,8577,8888,9201,9518,9849,10186,10533,10882,11235,11594,11961,12334,12713,13096,13485,13882,14283,14692,15111,15532,15963,16396,16835,17278,17727,18184,18645,19108,19575,20054,20541,21032,21531,22034,22543,23064,23587
mov $1,-7
lpb $0
mov $3,$2
lpb $3
add $2,1
mov $4,$1
gcd $4,$2
cmp $4,1
cmp $4,0
sub $3,$4
lpe
sub $0,1
add $2,1
mul $1,$2
add $5,$2
lpe
mov $0,$5
add $0,1
| 37.73913 | 494 | 0.703917 |
6a4578acd2fb1944d03d50a0a64fc69ef11378c5 | 1,570 | asm | Assembly | code/include/macros.asm | sttng/merken-revision-2020 | c58ead89f9e00d5aa0ed306a1b1b750635bac6a6 | [
"MIT"
] | 31 | 2020-04-14T02:16:23.000Z | 2022-01-12T19:55:18.000Z | code/include/macros.asm | sttng/merken-revision-2020 | c58ead89f9e00d5aa0ed306a1b1b750635bac6a6 | [
"MIT"
] | null | null | null | code/include/macros.asm | sttng/merken-revision-2020 | c58ead89f9e00d5aa0ed306a1b1b750635bac6a6 | [
"MIT"
] | 2 | 2021-05-14T10:28:00.000Z | 2021-12-05T01:40:59.000Z | if !def(_MACROS_)
_MACROS_ equ 1
ORG: MACRO
SECTION "ORG_\@", ROM0[\1]
ENDM
INCLUDE_ASSET: MACRO
\1:
incbin \2
ENDM
PUT_TEXT_LOGO: MACRO
LOGO_X set \1
LOGO_Y set \2
LOGO_W set \3
CHAR_START set \4
ld a,CHAR_START+0
ld [SPRITE0_TILE],a
ld a, LOGO_X + LOGO_W * 0
ld [SPRITE0_X], a
ld a, LOGO_Y
ld [SPRITE0_Y], a
ld a,CHAR_START+1
ld [SPRITE1_TILE],a
ld a, LOGO_X + LOGO_W * 1
ld [SPRITE1_X], a
ld a, LOGO_Y
ld [SPRITE1_Y], a
ld a,CHAR_START+2
ld [SPRITE2_TILE],a
ld a, LOGO_X + LOGO_W * 2
ld [SPRITE2_X], a
ld a, LOGO_Y
ld [SPRITE2_Y], a
ld a,CHAR_START+3
ld [SPRITE3_TILE],a
ld a, LOGO_X + LOGO_W * 3
ld [SPRITE3_X], a
ld a, LOGO_Y
ld [SPRITE3_Y], a
ld a,CHAR_START+4
ld [SPRITE4_TILE],a
ld a, LOGO_X + LOGO_W * 4
ld [SPRITE4_X], a
ld a, LOGO_Y
ld [SPRITE4_Y], a
ld a,CHAR_START+3
ld [SPRITE5_TILE],a
ld a, LOGO_X + LOGO_W * 5
ld [SPRITE5_X], a
ld a, LOGO_Y
ld [SPRITE5_Y], a
ld a,CHAR_START+5
ld [SPRITE6_TILE],a
ld a, LOGO_X + LOGO_W * 6
ld [SPRITE6_X], a
ld a, LOGO_Y
ld [SPRITE6_Y], a
ld a,CHAR_START+4
ld [SPRITE7_TILE],a
ld a, LOGO_X + LOGO_W * 7
ld [SPRITE7_X], a
ld a, LOGO_Y
ld [SPRITE7_Y], a
ld a,CHAR_START+6
ld [SPRITE8_TILE],a
ld a, LOGO_X + LOGO_W * 8
ld [SPRITE8_X], a
ld a, LOGO_Y
ld [SPRITE8_Y], a
ld a,$FF
ld [OBJP0],a
; Enable Sprites
ld a,[LCDC]
set 1,a
ld [LCDC],a
ENDM
endc | 16.88172 | 30 | 0.573248 |
13ec24d9e3fd09c3b0cb8452aea373c88496d9e4 | 68 | asm | Assembly | src/main/fragment/mos6502-common/pwuc1_derefidx_vbuyy=pwuc1_derefidx_vbuxx_plus_vbuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/pwuc1_derefidx_vbuyy=pwuc1_derefidx_vbuxx_plus_vbuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/pwuc1_derefidx_vbuyy=pwuc1_derefidx_vbuxx_plus_vbuc2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | clc
lda {c1},x
adc #{c2}
sta {c1},y
lda {c1}+1,x
adc #0
sta {c1}+1,y | 9.714286 | 12 | 0.558824 |
12c538e080697898fdb5eee90a5d96586d723eb3 | 2,897 | asm | Assembly | src/tokens.asm | POBIX/asm-lang | 818a839b6e714da3a4aef1c1470ec9a73e283aa2 | [
"MIT"
] | 1 | 2021-06-29T08:55:23.000Z | 2021-06-29T08:55:23.000Z | src/tokens.asm | POBIX/asm-lang | 818a839b6e714da3a4aef1c1470ec9a73e283aa2 | [
"MIT"
] | null | null | null | src/tokens.asm | POBIX/asm-lang | 818a839b6e714da3a4aef1c1470ec9a73e283aa2 | [
"MIT"
] | null | null | null | ; apparently, an enum's size is a double word. so use db, not the actual name.
enum _TOKEN_ {
TOK_ANY = -1,
TOK_NONE,
TOK_FUNC,
TOK_SEMICOL,
TOK_SET,
TOK_ASSIGN,
TOK_LBRACE,
TOK_RBRACE,
TOK_LPAREN,
TOK_RPAREN,
TOK_CALL,
TOK_DATA,
TOK_VAR,
TOK_COLON,
TOK_IF,
TOK_ELSE,
TOK_GREATER,
TOK_LESSER,
TOK_EQUAL,
TOK_NOTEQUAL,
TOK_GREATEQ,
TOK_LESSEQ,
TOK_INC,
TOK_DEC,
TOK_WHILE,
TOK_ADD,
TOK_SUB,
TOK_DIV,
TOK_MOD,
TOK_MUL,
TOK_MATH,
TOK_COMMENT,
TOK_COMMA,
TOK_LOCAL,
TOK_RETURN,
TOK_BREAK,
TOK_ASM,
TOK_ARROW,
TOK_CONTINUE,
TOK_EOF,
TOK_LAST ; used to know how many tokens we have
}
dataseg
tokens dw 2 * TOK_LAST dup(TOK_NONE)
separators db " ;':={}[](),.+-*/",'"',9,10,13,0
double_toks db "+-*/=&|<>!",0
callers dw 2 * TOK_LAST dup(-1)
codeseg
macro make_caller t, func
mov [callers + 2 * t], offset func
endm
macro make_token tok, string, func
dataseg
tok&_id db string,0
codeseg
mov [tokens + 2 * tok], offset tok&_id
make_caller tok func
endm
; void init_tokens()
proc init_tokens
push ax
push bx
xor ah, ah
make_caller TOK_NONE null
make_caller TOK_EOF _parse_eof
make_token TOK_FUNC "func" _parse_func
make_token TOK_SEMICOL ";" _parse_semicol
make_token TOK_SET "set" _parse_set
make_token TOK_ASSIGN "=" null
make_token TOK_LBRACE "{" _parse_lbrace
make_token TOK_RBRACE "}" _parse_rbrace
make_token TOK_LPAREN "(" null
make_token TOK_RPAREN ")" null
make_token TOK_CALL "call", _parse_call
make_token TOK_DATA "data" _parse_data
make_token TOK_VAR "var" _parse_var
make_token TOK_COLON ":" null
make_token TOK_IF "if" _parse_if
make_token TOK_ELSE "else" _parse_else
make_token TOK_GREATER ">" null
make_token TOK_LESSER "<" null
make_token TOK_EQUAL "==" null
make_token TOK_NOTEQUAL "!=" null
make_token TOK_GREATEQ ">=" null
make_token TOK_LESSEQ "<=" null
make_token TOK_INC "inc" _parse_inc
make_token TOK_DEC "dec" _parse_dec
make_token TOK_WHILE "while" _parse_while
make_token TOK_ADD "+" null
make_token TOK_SUB "-" null
make_token TOK_DIV "/" null
make_token TOK_MOD "%" null
make_token TOK_MUL "*" null
make_token TOK_MATH "math" _parse_math
make_token TOK_COMMENT "//" _parse_comment
make_token TOK_COMMA "," null
make_token TOK_LOCAL "local" _parse_local
make_token TOK_RETURN "return" _parse_return
make_token TOK_BREAK "break" _parse_break
make_token TOK_ASM "asm" _parse_asm
make_token TOK_ARROW "->" null
make_token TOK_CONTINUE "continue" _parse_continue
pop bx
pop ax
ret
endp
enum _TYPE_ {
TYPE_INT,
TYPE_STR,
TYPE_CHAR,
TYPE_BOOL,
TYPE_VOID
}
| 22.632813 | 78 | 0.667932 |
49a4a94f41eb53741efb9627c59333e9a26a6721 | 5,558 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_1889.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_1889.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_1889.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x114c1, %r9
nop
nop
inc %r13
movw $0x6162, (%r9)
add $25532, %rcx
lea addresses_WC_ht+0x29c7, %rsi
lea addresses_WT_ht+0x1249a, %rdi
nop
nop
nop
cmp %r11, %r11
mov $78, %rcx
rep movsb
nop
nop
nop
nop
dec %rcx
lea addresses_A_ht+0x789b, %rcx
nop
nop
xor %rsi, %rsi
movw $0x6162, (%rcx)
nop
nop
nop
cmp $11311, %rcx
lea addresses_A_ht+0x1094f, %r11
nop
nop
nop
nop
nop
sub $55036, %r8
mov $0x6162636465666768, %r9
movq %r9, %xmm0
vmovups %ymm0, (%r11)
nop
cmp $10501, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
// Load
lea addresses_US+0x644f, %r10
nop
nop
nop
sub %rdx, %rdx
mov (%r10), %edi
nop
nop
nop
and %r10, %r10
// Store
mov $0xe4f, %rcx
nop
nop
nop
nop
dec %r12
movb $0x51, (%rcx)
nop
cmp %r10, %r10
// Store
mov $0x6738330000000fef, %rdi
clflush (%rdi)
nop
nop
nop
nop
cmp %r10, %r10
movl $0x51525354, (%rdi)
nop
nop
nop
add %rcx, %rcx
// Faulty Load
mov $0xfc5a6000000084f, %rdx
nop
nop
nop
nop
dec %r10
mov (%rdx), %ebp
lea oracles, %rdx
and $0xff, %rbp
shlq $12, %rbp
mov (%rdx,%rbp,1), %rbp
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 5}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 8}}
{'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
*/
| 38.597222 | 2,999 | 0.655092 |
36cfed0a8de0ae8f2f1d1e63bad435f6383352c5 | 9,962 | asm | Assembly | fiat-amd64/65.58_ratio11142_seed2396663595229043_square_p256.asm | dderjoel/fiat-crypto | 57a9612577d766a0ae83169ea9517bfa7f01ea4e | [
"BSD-1-Clause",
"Apache-2.0",
"MIT-0",
"MIT"
] | 491 | 2015-11-25T23:44:39.000Z | 2022-03-29T17:31:21.000Z | fiat-amd64/65.58_ratio11142_seed2396663595229043_square_p256.asm | dderjoel/fiat-crypto | 57a9612577d766a0ae83169ea9517bfa7f01ea4e | [
"BSD-1-Clause",
"Apache-2.0",
"MIT-0",
"MIT"
] | 755 | 2016-02-02T14:03:05.000Z | 2022-03-31T16:47:23.000Z | fiat-amd64/65.58_ratio11142_seed2396663595229043_square_p256.asm | dderjoel/fiat-crypto | 57a9612577d766a0ae83169ea9517bfa7f01ea4e | [
"BSD-1-Clause",
"Apache-2.0",
"MIT-0",
"MIT"
] | 117 | 2015-10-25T16:28:15.000Z | 2022-02-08T23:01:09.000Z | SECTION .text
GLOBAL square_p256
square_p256:
sub rsp, 0x98 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x68 ], rbx; saving to stack
mov [ rsp + 0x70 ], rbp; saving to stack
mov [ rsp + 0x78 ], r12; saving to stack
mov [ rsp + 0x80 ], r13; saving to stack
mov [ rsp + 0x88 ], r14; saving to stack
mov [ rsp + 0x90 ], r15; saving to stack
mov rax, [ rsi + 0x0 ]; load m64 x4 to register64
mov r10, [ rsi + 0x8 ]; load m64 x1 to register64
mov rdx, rax; x4 to rdx
mulx rax, r11, [ rsi + 0x8 ]; x10, x9<- x4 * arg1[1]
mulx rbx, rbp, [ rsi + 0x0 ]; x12, x11<- x4 * arg1[0]
xor r12, r12
adox r11, rbx
mov r13, rdx; preserving value of x4 into a new reg
mov rdx, [ rsi + 0x0 ]; saving arg1[0] in rdx.
mulx r14, r15, r10; x46, x45<- x1 * arg1[0]
mov rdx, 0xffffffff ; moving imm to reg
mulx rcx, r8, rbp; x23, x22<- x11 * 0xffffffff
mov r9, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r9; 0xffffffffffffffff, swapping with 0xffffffff, which is currently in rdx
mulx rbx, r12, rbp; x25, x24<- x11 * 0xffffffffffffffff
adcx r8, rbx
setc bl; spill CF x27 to reg (rbx)
clc;
adcx r12, rbp
adcx r8, r11
setc r12b; spill CF x32 to reg (r12)
clc;
adcx r15, r8
mulx r11, r8, r15; x69, x68<- x54 * 0xffffffffffffffff
mov r9, rdx; preserving value of 0xffffffffffffffff into a new reg
mov rdx, [ rsi + 0x10 ]; saving arg1[2] in rdx.
mov [ rsp + 0x0 ], rdi; spilling out1 to mem
mov [ rsp + 0x8 ], r11; spilling x69 to mem
mulx rdi, r11, r13; x8, x7<- x4 * arg1[2]
adox r11, rax
mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx
mulx rax, r9, r10; x44, x43<- x1 * arg1[1]
movzx rdx, bl; x28, copying x27 here, cause x27 is needed in a reg for other than x28, namely all: , x28, size: 1
lea rdx, [ rdx + rcx ]
seto cl; spill OF x16 to reg (rcx)
mov rbx, 0x0 ; moving imm to reg
dec rbx; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx r12, r12b
adox r12, rbx; loading flag
adox r11, rdx
seto r12b; spill OF x34 to reg (r12)
inc rbx; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox r9, r14
mov r14, 0xffffffff ; moving imm to reg
mov rdx, r14; 0xffffffff to rdx
mulx r14, rbx, r15; x67, x66<- x54 * 0xffffffff
mov rdx, [ rsi + 0x10 ]; load m64 x2 to register64
adcx r9, r11
setc r11b; spill CF x57 to reg (r11)
clc;
adcx r8, r15
mov byte [ rsp + 0x10 ], r11b; spilling byte x57 to mem
mulx r8, r11, [ rsi + 0x0 ]; x91, x90<- x2 * arg1[0]
mov [ rsp + 0x18 ], r8; spilling x91 to mem
seto r8b; spill OF x48 to reg (r8)
mov [ rsp + 0x20 ], rax; spilling x44 to mem
mov rax, -0x2 ; moving imm to reg
inc rax; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox rbx, [ rsp + 0x8 ]
adcx rbx, r9
setc r9b; spill CF x76 to reg (r9)
clc;
adcx r11, rbx
mov rbx, 0x0 ; moving imm to reg
adox r14, rbx
mov rbx, rdx; preserving value of x2 into a new reg
mov rdx, [ rsi + 0x18 ]; saving arg1[3] in rdx.
mulx r13, rax, r13; x6, x5<- x4 * arg1[3]
mov rdx, 0xffffffffffffffff ; moving imm to reg
mov [ rsp + 0x28 ], r14; spilling x72 to mem
mov byte [ rsp + 0x30 ], r9b; spilling byte x76 to mem
mulx r14, r9, r11; x114, x113<- x99 * 0xffffffffffffffff
mov rdx, 0xffffffff00000001 ; moving imm to reg
mov [ rsp + 0x38 ], r14; spilling x114 to mem
mulx rbp, r14, rbp; x21, x20<- x11 * 0xffffffff00000001
mov rdx, 0x0 ; moving imm to reg
dec rdx; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rcx, cl
adox rcx, rdx; loading flag
adox rdi, rax
setc cl; spill CF x100 to reg (rcx)
clc;
adcx r9, r11
setc r9b; spill CF x119 to reg (r9)
clc;
movzx r12, r12b
adcx r12, rdx; loading flag
adcx rdi, r14
mov rdx, r10; x1 to rdx
mulx r10, r12, [ rsi + 0x10 ]; x42, x41<- x1 * arg1[2]
mulx rdx, rax, [ rsi + 0x18 ]; x40, x39<- x1 * arg1[3]
setc r14b; spill CF x36 to reg (r14)
clc;
mov [ rsp + 0x40 ], rdx; spilling x40 to mem
mov rdx, -0x1 ; moving imm to reg
movzx r8, r8b
adcx r8, rdx; loading flag
adcx r12, [ rsp + 0x20 ]
adcx rax, r10
setc r8b; spill CF x52 to reg (r8)
movzx r10, byte [ rsp + 0x10 ]; load byte memx57 to register64
clc;
adcx r10, rdx; loading flag
adcx rdi, r12
mov rdx, [ rsi + 0x8 ]; arg1[1] to rdx
mulx r10, r12, rbx; x89, x88<- x2 * arg1[1]
mov rdx, 0xffffffff ; moving imm to reg
mov byte [ rsp + 0x48 ], r8b; spilling byte x52 to mem
mov [ rsp + 0x50 ], r10; spilling x89 to mem
mulx r8, r10, r11; x112, x111<- x99 * 0xffffffff
mov rdx, 0x0 ; moving imm to reg
adox r13, rdx
dec rdx; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
movzx r14, r14b
adox r14, rdx; loading flag
adox r13, rbp
seto bpl; spill OF x38 to reg (rbp)
inc rdx; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox r12, [ rsp + 0x18 ]
adcx rax, r13
seto r14b; spill OF x93 to reg (r14)
movzx r13, byte [ rsp + 0x30 ]; load byte memx76 to register64
dec rdx; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
adox r13, rdx; loading flag
adox rdi, [ rsp + 0x28 ]
setc r13b; spill CF x61 to reg (r13)
clc;
movzx rcx, cl
adcx rcx, rdx; loading flag
adcx rdi, r12
setc cl; spill CF x102 to reg (rcx)
clc;
adcx r10, [ rsp + 0x38 ]
mov rdx, rbx; x2 to rdx
mulx rbx, r12, [ rsi + 0x10 ]; x87, x86<- x2 * arg1[2]
mov byte [ rsp + 0x58 ], cl; spilling byte x102 to mem
mov rcx, 0xffffffff00000001 ; moving imm to reg
xchg rdx, r15; x54, swapping with x2, which is currently in rdx
mov byte [ rsp + 0x60 ], bpl; spilling byte x38 to mem
mulx rdx, rbp, rcx; x65, x64<- x54 * 0xffffffff00000001
mov rcx, 0x0 ; moving imm to reg
adcx r8, rcx
adox rbp, rax
clc;
mov rax, -0x1 ; moving imm to reg
movzx r9, r9b
adcx r9, rax; loading flag
adcx rdi, r10
setc r9b; spill CF x121 to reg (r9)
clc;
movzx r14, r14b
adcx r14, rax; loading flag
adcx r12, [ rsp + 0x50 ]
mov r14, rdx; preserving value of x65 into a new reg
mov rdx, [ rsi + 0x18 ]; saving arg1[3] in rdx.
mulx r15, r10, r15; x85, x84<- x2 * arg1[3]
adcx r10, rbx
adcx r15, rcx
movzx rdx, byte [ rsp + 0x48 ]; x53, copying x52 here, cause x52 is needed in a reg for other than x53, namely all: , x53, size: 1
mov rbx, [ rsp + 0x40 ]; load m64 x40 to register64
lea rdx, [ rdx + rbx ]; r8/64 + m8
clc;
movzx rbx, byte [ rsp + 0x60 ]; load byte memx38 to register64
movzx r13, r13b
adcx r13, rax; loading flag
adcx rdx, rbx
mov rbx, [ rsi + 0x18 ]; load m64 x3 to register64
adox r14, rdx
setc r13b; spill CF x63 to reg (r13)
movzx rdx, byte [ rsp + 0x58 ]; load byte memx102 to register64
clc;
adcx rdx, rax; loading flag
adcx rbp, r12
adcx r10, r14
mov rdx, 0xffffffff00000001 ; moving imm to reg
mulx r11, r12, r11; x110, x109<- x99 * 0xffffffff00000001
movzx r14, r13b; x83, copying x63 here, cause x63 is needed in a reg for other than x83, namely all: , x83, size: 1
adox r14, rcx
dec rcx; OF<-0x0, preserve CF (debug: state 1(0x0) (thanks Paul))
movzx r9, r9b
adox r9, rcx; loading flag
adox rbp, r8
adox r12, r10
xchg rdx, rbx; x3, swapping with 0xffffffff00000001, which is currently in rdx
mulx rax, r8, [ rsi + 0x18 ]; x130, x129<- x3 * arg1[3]
mulx r9, r13, [ rsi + 0x0 ]; x136, x135<- x3 * arg1[0]
mulx r10, rcx, [ rsi + 0x10 ]; x132, x131<- x3 * arg1[2]
adcx r15, r14
adox r11, r15
seto r14b; spill OF x128 to reg (r14)
adc r14b, 0x0
movzx r14, r14b
mulx rdx, r15, [ rsi + 0x8 ]; x134, x133<- x3 * arg1[1]
adox r13, rdi
adcx r15, r9
adcx rcx, rdx
adcx r8, r10
adox r15, rbp
mov rdi, 0xffffffff ; moving imm to reg
mov rdx, r13; x144 to rdx
mulx r13, rbp, rdi; x157, x156<- x144 * 0xffffffff
mov r9, 0xffffffffffffffff ; moving imm to reg
mulx r10, rdi, r9; x159, x158<- x144 * 0xffffffffffffffff
mov r9, 0x0 ; moving imm to reg
adcx rax, r9
clc;
adcx rbp, r10
adox rcx, r12
adcx r13, r9
clc;
adcx rdi, rdx
adcx rbp, r15
adcx r13, rcx
mulx rdx, r12, rbx; x155, x154<- x144 * 0xffffffff00000001
adox r8, r11
adcx r12, r8
movzx r11, r14b; x152, copying x128 here, cause x128 is needed in a reg for other than x152, namely all: , x152--x153, size: 1
adox r11, rax
adcx rdx, r11
setc r14b; spill CF x172 to reg (r14)
seto r15b; spill OF x153 to reg (r15)
mov r10, rbp; x174, copying x165 here, cause x165 is needed in a reg for other than x174, namely all: , x184, x174--x175, size: 2
mov rax, 0xffffffffffffffff ; moving imm to reg
sub r10, rax
mov rcx, r13; x176, copying x167 here, cause x167 is needed in a reg for other than x176, namely all: , x176--x177, x185, size: 2
mov r8, 0xffffffff ; moving imm to reg
sbb rcx, r8
movzx r11, r14b; x173, copying x172 here, cause x172 is needed in a reg for other than x173, namely all: , x173, size: 1
movzx r15, r15b
lea r11, [ r11 + r15 ]
mov r15, r12; x178, copying x169 here, cause x169 is needed in a reg for other than x178, namely all: , x178--x179, x186, size: 2
sbb r15, 0x00000000
mov r14, rdx; x180, copying x171 here, cause x171 is needed in a reg for other than x180, namely all: , x187, x180--x181, size: 2
sbb r14, rbx
sbb r11, 0x00000000
cmovc r14, rdx; if CF, x187<- x171 (nzVar)
cmovc r10, rbp; if CF, x184<- x165 (nzVar)
cmovc rcx, r13; if CF, x185<- x167 (nzVar)
mov r11, [ rsp + 0x0 ]; load m64 out1 to register64
mov [ r11 + 0x0 ], r10; out1[0] = x184
mov [ r11 + 0x18 ], r14; out1[3] = x187
cmovc r15, r12; if CF, x186<- x169 (nzVar)
mov [ r11 + 0x8 ], rcx; out1[1] = x185
mov [ r11 + 0x10 ], r15; out1[2] = x186
mov rbx, [ rsp + 0x68 ]; restoring from stack
mov rbp, [ rsp + 0x70 ]; restoring from stack
mov r12, [ rsp + 0x78 ]; restoring from stack
mov r13, [ rsp + 0x80 ]; restoring from stack
mov r14, [ rsp + 0x88 ]; restoring from stack
mov r15, [ rsp + 0x90 ]; restoring from stack
add rsp, 0x98
ret
; cpu Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
; clocked at 2600 MHz
; first cyclecount 87.165, best 63.865671641791046, lastGood 65.58208955223881
; seed 2396663595229043
; CC / CFLAGS clang / -march=native -mtune=native -O3
; time needed: 1054290 ms / 60000 runs=> 17.5715ms/run
; Time spent for assembling and measureing (initial batch_size=134, initial num_batches=101): 262928 ms
; Ratio (time for assembling + measure)/(total runtime for 60000runs): 0.24938868812186402
; number reverted permutation/ tried permutation: 23981 / 29873 =80.277%
; number reverted decision/ tried decision: 22355 / 30128 =74.200% | 36.625 | 130 | 0.684903 |
a8cf114952ec59d25107b76391f4ce613e79f03b | 741 | asm | Assembly | oeis/054/A054557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054557: Number of labeled pure 2-complexes on n nodes (0-simplexes) with 5 2-simplexes and 10 1-simplexes.
; Submitted by Christian Krause
; 72,4824,32256,127008,378000,940464,2062368,4115232,7629336,13333320,22198176,35485632,54800928,82149984,120000960,171350208,239792616,329596344,445781952,594205920,781648560,1015906320,1305888480,1661718240,2094838200,2618120232,3245979744,3994494336,4881526848,5926852800,7152292224,8581845888,10241835912,12161050776,14370894720,16905541536,19802092752,23100740208,26844933024,31081548960,35861070168,41237763336,47269864224,54019766592,61554215520,69944505120,79266680640,89601744960,101035869480
mov $2,$0
mul $0,61
add $0,7
add $2,5
mov $1,$2
bin $1,5
mul $0,$1
sub $0,$1
div $0,6
mul $0,72
| 49.4 | 501 | 0.82726 |
6e3d78894504728fcaec0f547d907a28b5e8657a | 1,178 | asm | Assembly | source/add-ons/ColorCurves/Colorcurves_x86.asm | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 2 | 2020-10-05T14:18:09.000Z | 2021-08-05T02:56:43.000Z | source/add-ons/ColorCurves/Colorcurves_x86.asm | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 26 | 2017-01-10T19:54:10.000Z | 2020-12-17T07:28:57.000Z | source/add-ons/ColorCurves/Colorcurves_x86.asm | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 5 | 2017-12-14T18:46:08.000Z | 2020-12-13T18:22:34.000Z | ; gamma_MMX.asm - assemble with NAsm.
BITS 32
GLOBAL gamma_x86
SECTION .text
; table needs to have _four_ tables, shifted in place.
; i.e. 0000 0000 0000 aaaa (256 entries)
; 0000 0000 rrrr 0000 (256 entries)
; 0000 gggg 0000 0000 (256 entries)
; bbbb 0000 0000 0000 (256 entries)
; prototype gamma_x86 (uint32 *s, uint32 *d, uint32 *table, uint32 count)
gamma_x86:
push ebx
push ebp
mov esi, [esp + 12] ; source pointer
mov edi, [esp + 16] ; dest pointer
mov ebp, [esp + 20] ; table pointer
mov ecx, [esp + 24] ; # pixels
.loop:
mov ebx, [esi] ; get pixel (ARGB)
mov eax, ebx
mov edx, 0;
shr eax, 24 ; eax = 000A
or edx, [ebp+4*eax] ; edx = a000
mov eax, ebx;
shr eax, 16 ; eax = 00AR
and eax, 0xFF; ; eax = 000R
or edx, [ebp+4*eax+1024] ; edx = ar00
mov eax, ebx
shr eax, 8 ; eax = 0ARG
and eax, 0xFF ; eax = 000G
or edx, [ebp+4*eax+2048] ; edx = arg0
mov al, bl ; eax = 000R
or edx, [ebp+4*eax+3072] ; edx = argb
mov [edi], edx ; store result
add esi, 4
add edi, 4
loop .loop
pop ebp
pop ebx
ret
| 22.226415 | 73 | 0.566214 |
1044328decf34c898c7dcddcfc54727174c76613 | 380 | asm | Assembly | programs/oeis/216/A216110.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/216/A216110.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/216/A216110.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A216110: The Wiener index of the meta-polyphenyl chain with n hexagons (see the Dou et al. and the Deng references).
; 27,198,621,1404,2655,4482,6993,10296,14499,19710,26037,33588,42471,52794,64665,78192,93483,110646,129789,151020,174447,200178,228321,258984,292275,328302,367173,408996,453879,501930
sub $2,$0
add $0,2
sub $2,$0
mul $0,$2
add $0,1
mul $0,$2
div $0,2
mul $0,9
| 31.666667 | 183 | 0.744737 |
0d9794f59bcccd18d82d89e205b716abb9df7067 | 658 | asm | Assembly | oeis/165/A165938.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/165/A165938.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/165/A165938.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A165938: a(n) = A002203(n^2) for n>=1.
; Submitted by Jamie Morken(s2)
; 2,34,2786,1331714,3710155682,60245508192802,5701755387019728962,3145168096065837266706434,10111847525912679844192131854786,189482250299273866835746159841800035874,20694642381734231604510939638726181796865594402,13173424557983611746410772403568606757345762479183884802,48875455975201235587378509634892358202932754562611969253735499362,1056901042361630676856188897702148066697468948716132620217557922298313722914,133207660524443922501561982779843102253202723333113645650242111956617617724204501408386
add $0,1
pow $0,2
sub $0,1
seq $0,78057 ; Expansion of (1+x)/(1-2*x-x^2).
mul $0,2
| 65.8 | 500 | 0.878419 |
d1ca5c2278193a100cd976f721bfe7dd51ba89ef | 635 | a51 | Assembly | E3/E3.a51 | JDong-chen/51singleChipC_Experiment_Code | 0548bcaca22dd7b7befaf8b613a7ffb1b0856077 | [
"MIT"
] | null | null | null | E3/E3.a51 | JDong-chen/51singleChipC_Experiment_Code | 0548bcaca22dd7b7befaf8b613a7ffb1b0856077 | [
"MIT"
] | null | null | null | E3/E3.a51 | JDong-chen/51singleChipC_Experiment_Code | 0548bcaca22dd7b7befaf8b613a7ffb1b0856077 | [
"MIT"
] | null | null | null | org 0000H
ajmp main
org 30H
main: mov P0, #00000011B
lcall delay
mov P0, #10011111B
lcall delay
mov P0, #00100101B
lcall delay
mov P0, #00001101B
lcall delay
mov P0, #10011001B
lcall delay
mov P0, #01001001B
lcall delay
mov P0, #01000001B
lcall delay
mov P0, #00011111B
lcall delay
mov P0, #00000001B
lcall delay
mov P0, #00001001B
lcall delay
ajmp main
delay: mov r4,#8
l3: mov r2,#00H
l1: mov r3,#00H
l2: djnz r3,l2
djnz r2,l1
djnz r4,l3
ret
end | 18.142857 | 24 | 0.530709 |
7e5a3291fe613b89b1e31183fec6a64c3ca1d793 | 6,574 | asm | Assembly | target/asm/empty-sub-test.asm | chriscamacho/emu68k | 5fc9e79e42b2023277dfa49e7faa7898d0d8ed96 | [
"MIT"
] | 8 | 2020-08-29T21:17:23.000Z | 2021-12-28T19:35:59.000Z | target/asm/empty-sub-test.asm | chriscamacho/emu68k | 5fc9e79e42b2023277dfa49e7faa7898d0d8ed96 | [
"MIT"
] | null | null | null | target/asm/empty-sub-test.asm | chriscamacho/emu68k | 5fc9e79e42b2023277dfa49e7faa7898d0d8ed96 | [
"MIT"
] | 1 | 2021-11-02T20:46:48.000Z | 2021-11-02T20:46:48.000Z | stackSize equ 512
; dc.l end+stackSize ; start up SP
dc.l stack
dc.l start ; start up PC
; started off as a dreamcast vector table
; dc.l 0x0 /* Initial Stack Address */
; dc.l START /* Start of program Code */
dc.l BUS_E_INT /* Bus error */
dc.l ADRS_E_INT /* Address error */
dc.l INT /* Illegal instruction */
dc.l INT /* Division by zero */
dc.l INT /* CHK exception */
dc.l INT /* TRAPV exception */
dc.l INT /* Privilage violation */
dc.l INT /* TRACE exception */
dc.l INT /* Line-A emulator */
dc.l INT /* Line-F emulator */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Co-processor protocol violation */
dc.l INT /* Format error */
dc.l INT /* Uninitialized Interrupt */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Spurious Interrupt */
dc.l INT /* IRQ Level 1 */
dc.l INT /* IRQ Level 2 (EXT Interrupt) */
dc.l INT /* IRQ Level 3 */
dc.l INT /* IRQ Level 4 (VDP Horizontal Interrupt) */
dc.l INT /* IRQ Level 5 */
dc.l INT /* IRQ Level 6 (VDP Vertical Interrupt) */
dc.l INT /* IRQ Level 7 */
dc.l INT /* TRAP #00 Exception */
dc.l INT /* TRAP #01 Exception */
dc.l INT /* TRAP #02 Exception */
dc.l INT /* TRAP #03 Exception */
dc.l INT /* TRAP #04 Exception */
dc.l INT /* TRAP #05 Exception */
dc.l INT /* TRAP #06 Exception */
dc.l INT /* TRAP #07 Exception */
dc.l INT /* TRAP #08 Exception */
dc.l INT /* TRAP #09 Exception */
dc.l INT /* TRAP #10 Exception */
dc.l INT /* TRAP #11 Exception */
dc.l INT /* TRAP #12 Exception */
dc.l INT /* TRAP #13 Exception */
dc.l INT /* TRAP #14 Exception */
dc.l INT /* TRAP #15 Exception */
dc.l INT /* (FP) Branch or Set on Unordered Condition */
dc.l INT /* (FP) Inexact Result */
dc.l INT /* (FP) Divide by Zero */
dc.l INT /* (FP) Underflow */
dc.l INT /* (FP) Operand Error */
dc.l INT /* (FP) Overflow */
dc.l INT /* (FP) Signaling NAN */
dc.l INT /* (FP) Unimplemented Data Type */
dc.l INT /* MMU Configuration Error */
dc.l INT /* MMU Illegal Operation Error */
dc.l INT /* MMU Access Violation Error */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
dc.l INT /* Reserved (NOT USED) */
rorg $1000
INT:
jmp INT
BUS_E_INT: ; Bus Error Exception
illegal
ADRS_E_INT: ; Address Error Exception
; TODO !
move.w (A7)+,D0
move.l (A7)+,D1 ; missing a word ?
; draw bombs here ;)
move #end+stackSize,SP
jmp start
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
dc.l $a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5,$a5a5a5a5
stack:
dc.l $FF00FF00,$FF00FF00,$FF00FF00,$FF00FF00,$FF00FF00,$FF00FF00,$FF00FF00,$FF00FF00
varA:
dc.w $0102
varB:
dc.w $0304
oops:
dc.l $fffffff0
start:
;move.l #res4,A0
;add.l #1,A0
;move.w (A0),D0 ; do a bus error
move.w (varA),-(A7)
move.w (varB),-(A7)
move.l #$7ac71e55,d0 ; to show unharmed after jsr
move.l #$beefdead,d1
; movea.l oops,A7
jsr test
done:
bra done
bra start
test:
movem.l d0-d1,-(A7)
move.w 14(A7),d0 ; +8 saved regs +4 ret address +2 2nd param
move.w 12(A7),d1 ; +8 saved regs +4 ret address
; use a stack frame here if extra local vars needed...
movem.l (A7)+,d0-d1 ; restore regs
add.l #4,A7 ; +8 is correct but there is return address
move.l -4(A7),(A7) ; correct for params put return address
rts
end:
| 42.96732 | 93 | 0.503955 |
0fd2de098248f098fa5e2740178c9aa8ff136f8f | 256 | asm | Assembly | text/maps/route_18_gate_upstairs.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | text/maps/Route18Gate2F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | text/maps/Route18Gate2F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | _Route18GateUpstairsText_49993::
text "Looked into the"
line "binoculars."
para "PALLET TOWN is in"
line "the west!"
done
_Route18GateUpstairsText_4999f::
text "Looked into the"
line "binoculars."
para "There are people"
line "swimming!"
done
| 16 | 32 | 0.738281 |
9b2a4f6ff12fb550e1d8a2f0cc3bb1c2d8670410 | 93 | asm | Assembly | test/test_mov.asm | kjkszpj/arch8 | de693867721c5b3a2093c29d359b41065099e321 | [
"MIT"
] | 1 | 2018-07-10T08:21:29.000Z | 2018-07-10T08:21:29.000Z | test/test_mov.asm | kjkszpj/arch8 | de693867721c5b3a2093c29d359b41065099e321 | [
"MIT"
] | null | null | null | test/test_mov.asm | kjkszpj/arch8 | de693867721c5b3a2093c29d359b41065099e321 | [
"MIT"
] | null | null | null | nop
nop
mov a0, #42
mov a1, #33
mov @a0, a1
mov a2, @a0
mov @a0, a0
mov a0, @a0
mov a1, @a0 | 8.454545 | 11 | 0.591398 |
506428d1dd3371e9415a483b37e0a7747bb9bca9 | 253 | asm | Assembly | libsrc/_DEVELOPMENT/adt/p_list/c/sccz80/p_list_remove_after_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_list/c/sccz80/p_list_remove_after_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_list/c/sccz80/p_list_remove_after_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void *p_list_remove_after(p_list_t *list, void *list_item)
SECTION code_adt_p_list
PUBLIC p_list_remove_after_callee
p_list_remove_after_callee:
pop af
pop hl
pop bc
push af
INCLUDE "adt/p_list/z80/asm_p_list_remove_after.asm"
| 15.8125 | 60 | 0.766798 |
6b621d3b4e3be381d5b09dee81bd79ca5f92964f | 1,329 | asm | Assembly | sw/552tests/rand_simple/t_3_btr.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/552tests/rand_simple/t_3_btr.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/552tests/rand_simple/t_3_btr.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // seed 3
lbi r0, 90 // icount 0
slbi r0, 189 // icount 1
lbi r1, 38 // icount 2
slbi r1, 158 // icount 3
lbi r2, 72 // icount 4
slbi r2, 120 // icount 5
lbi r3, 138 // icount 6
slbi r3, 7 // icount 7
lbi r4, 23 // icount 8
slbi r4, 183 // icount 9
lbi r5, 71 // icount 10
slbi r5, 173 // icount 11
lbi r6, 90 // icount 12
slbi r6, 163 // icount 13
lbi r7, 131 // icount 14
slbi r7, 17 // icount 15
nop // to align branch icount 16
btr r7, r3 // icount 17
nop // to align branch icount 18
btr r7, r0 // icount 19
nop // to align branch icount 20
btr r2, r5 // icount 21
nop // to align branch icount 22
btr r6, r6 // icount 23
nop // to align branch icount 24
btr r7, r7 // icount 25
nop // to align branch icount 26
btr r5, r6 // icount 27
nop // to align branch icount 28
btr r1, r5 // icount 29
nop // to align branch icount 30
btr r3, r5 // icount 31
nop // to align branch icount 32
btr r7, r4 // icount 33
nop // to align branch icount 34
btr r2, r0 // icount 35
nop // to align branch icount 36
btr r7, r5 // icount 37
nop // to align branch icount 38
btr r0, r4 // icount 39
nop // to align branch icount 40
btr r4, r2 // icount 41
nop // to align branch icount 42
btr r0, r6 // icount 43
nop // to align branch icount 44
btr r6, r4 // icount 45
nop // to align branch icount 46
btr r6, r6 // icount 47
halt // icount 48
| 26.058824 | 32 | 0.666667 |
0f86e7822d810b8d6da91ba26ce8088f84103a03 | 3,616 | asm | Assembly | Ejemplos/mikroBasic/ServoPot/ServoADC.asm | DAFRELECTRONICS/ThunderBolt-Nova | ae8faa47958e86e31e90db24b55800edf308482c | [
"MIT"
] | null | null | null | Ejemplos/mikroBasic/ServoPot/ServoADC.asm | DAFRELECTRONICS/ThunderBolt-Nova | ae8faa47958e86e31e90db24b55800edf308482c | [
"MIT"
] | null | null | null | Ejemplos/mikroBasic/ServoPot/ServoADC.asm | DAFRELECTRONICS/ThunderBolt-Nova | ae8faa47958e86e31e90db24b55800edf308482c | [
"MIT"
] | null | null | null |
_servo:
;ServoADC.mbas,7 :: dim i as byte
;ServoADC.mbas,8 :: if angulo <= 0 then
MOVLW 0
MOVWF R0
MOVF FARG_servo_angulo+1, 0
SUBWF R0, 0
BTFSS STATUS+0, 2
GOTO L__servo21
MOVF FARG_servo_angulo+0, 0
SUBLW 0
L__servo21:
BTFSS STATUS+0, 0
GOTO L__servo2
;ServoADC.mbas,9 :: angulo = 0
CLRF FARG_servo_angulo+0
CLRF FARG_servo_angulo+1
L__servo2:
;ServoADC.mbas,12 :: if angulo >= 180 then
MOVLW 0
SUBWF FARG_servo_angulo+1, 0
BTFSS STATUS+0, 2
GOTO L__servo22
MOVLW 180
SUBWF FARG_servo_angulo+0, 0
L__servo22:
BTFSS STATUS+0, 0
GOTO L__servo5
;ServoADC.mbas,13 :: angulo = 180
MOVLW 180
MOVWF FARG_servo_angulo+0
MOVLW 0
MOVWF FARG_servo_angulo+1
L__servo5:
;ServoADC.mbas,16 :: ServoPin = 1
BSF LATC+0, 5
;ServoADC.mbas,18 :: delay_us(600)
MOVLW 10
MOVWF R12, 0
MOVLW 88
MOVWF R13, 0
L__servo7:
DECFSZ R13, 1, 1
BRA L__servo7
DECFSZ R12, 1, 1
BRA L__servo7
NOP
;ServoADC.mbas,20 :: for i = 0 to angulo step 1
CLRF R1
L__servo8:
MOVLW 0
SUBWF FARG_servo_angulo+1, 0
BTFSS STATUS+0, 2
GOTO L__servo23
MOVF R1, 0
SUBWF FARG_servo_angulo+0, 0
L__servo23:
BTFSS STATUS+0, 0
GOTO L__servo12
;ServoADC.mbas,21 :: delay_us(8)
MOVLW 31
MOVWF R13, 0
L__servo13:
DECFSZ R13, 1, 1
BRA L__servo13
NOP
NOP
;ServoADC.mbas,22 :: next i
MOVLW 0
XORWF FARG_servo_angulo+1, 0
BTFSS STATUS+0, 2
GOTO L__servo24
MOVF FARG_servo_angulo+0, 0
XORWF R1, 0
L__servo24:
BTFSC STATUS+0, 2
GOTO L__servo12
INCF R1, 1
GOTO L__servo8
L__servo12:
;ServoADC.mbas,24 :: ServoPin = 0
BCF LATC+0, 5
;ServoADC.mbas,26 :: end sub
L_end_servo:
RETURN 0
; end of _servo
_main:
;ServoADC.mbas,31 :: org 0x1000
;ServoADC.mbas,34 :: TRISB.4 = 1
BSF TRISB+0, 4
;ServoADC.mbas,35 :: TRISC.5 = 0
BCF TRISC+0, 5
;ServoADC.mbas,36 :: ADC_Init_Advanced(_ADC_INTERNAL_REF)
CLRF FARG_ADC_Init_Advanced_reference+0
CALL _ADC_Init_Advanced+0, 0
;ServoADC.mbas,38 :: loop:
L__main_loop:
;ServoADC.mbas,39 :: x = ADC_Get_Sample(10)
MOVLW 10
MOVWF FARG_ADC_Get_Sample_channel+0
CALL _ADC_Get_Sample+0, 0
MOVF R0, 0
MOVWF _x+0
MOVF R1, 0
MOVWF _x+1
;ServoADC.mbas,40 :: x = x>>2
MOVF R0, 0
MOVWF R2
MOVF R1, 0
MOVWF R3
RRCF R3, 1
RRCF R2, 1
BCF R3, 7
RRCF R3, 1
RRCF R2, 1
BCF R3, 7
MOVF R2, 0
MOVWF _x+0
MOVF R3, 0
MOVWF _x+1
;ServoADC.mbas,41 :: servo(x)
MOVF R2, 0
MOVWF FARG_servo_angulo+0
MOVF R3, 0
MOVWF FARG_servo_angulo+1
CALL _servo+0, 0
;ServoADC.mbas,42 :: delay_ms(20)
MOVLW 2
MOVWF R11, 0
MOVLW 56
MOVWF R12, 0
MOVLW 173
MOVWF R13, 0
L__main16:
DECFSZ R13, 1, 1
BRA L__main16
DECFSZ R12, 1, 1
BRA L__main16
DECFSZ R11, 1, 1
BRA L__main16
;ServoADC.mbas,44 :: if porta.3 = 0 then
BTFSC PORTA+0, 3
GOTO L__main18
;ServoADC.mbas,45 :: asm goto 0x30 end asm
GOTO 48
L__main18:
;ServoADC.mbas,48 :: goto loop
GOTO L__main_loop
L_end_main:
GOTO $+0
; end of _main
| 23.179487 | 59 | 0.561947 |
c705372e6db9c0ef1ad67ccf2a8085379731fdc4 | 81 | asm | Assembly | SCS3211/Excercises/ex02.asm | UdeshUK/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | 6 | 2018-06-13T16:11:41.000Z | 2019-04-27T10:30:35.000Z | SCS3211/Excercises/ex02.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | SCS3211/Excercises/ex02.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | .text
li $t0,4
li $t1,5
add $a0,$t0,$t1
li $v0,1
syscall
li $v0,10
syscall | 10.125 | 16 | 0.592593 |
6b14c2958d8f8f51276e6e867da9555b14934189 | 436 | asm | Assembly | oeis/025/A025959.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/025/A025959.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/025/A025959.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A025959: Expansion of 1/((1-2x)(1-4x)(1-5x)(1-7x)).
; Submitted by Jon Maiga
; 1,18,209,1998,17157,137970,1063273,7962966,58471853,423482202,3037367697,21634921854,153344743189,1083048862914,7630057197881,53656123623462,376830071424765,2644030889883306,18539455617424225
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
mul $1,2
sub $2,1
sub $0,$2
seq $0,18209 ; Expansion of 1/((1-4x)(1-5x)(1-7x)).
add $1,$0
lpe
mov $0,$1
| 25.647059 | 193 | 0.699541 |
eb1ce28744ea543074000bac8e3e4c7d0a968885 | 53 | asm | Assembly | test/p10.asm | slcz/hummingbird | 8f5d0695a6b6460b1eeaa0e1c520abf6527c0492 | [
"Apache-2.0"
] | null | null | null | test/p10.asm | slcz/hummingbird | 8f5d0695a6b6460b1eeaa0e1c520abf6527c0492 | [
"Apache-2.0"
] | null | null | null | test/p10.asm | slcz/hummingbird | 8f5d0695a6b6460b1eeaa0e1c520abf6527c0492 | [
"Apache-2.0"
] | null | null | null | #include "hi.asm"
li(0x5a)
sub 2f
// b5
hlt
2:
0xa5
| 5.888889 | 17 | 0.622642 |
129943419ba63a14e85ac336053f4903861082d0 | 319 | asm | Assembly | oeis/021/A021698.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/021/A021698.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/021/A021698.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A021698: Decimal expansion of 1/694.
; Submitted by Jon Maiga
; 0,0,1,4,4,0,9,2,2,1,9,0,2,0,1,7,2,9,1,0,6,6,2,8,2,4,2,0,7,4,9,2,7,9,5,3,8,9,0,4,8,9,9,1,3,5,4,4,6,6,8,5,8,7,8,9,6,2,5,3,6,0,2,3,0,5,4,7,5,5,0,4,3,2,2,7,6,6,5,7,0,6,0,5,1,8,7,3,1,9,8,8,4,7,2,6,2,2,4
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,347
mod $0,10
| 39.875 | 199 | 0.554859 |
4012c2e8cb7d167cd32f9572586d5820627dda8a | 4,784 | asm | Assembly | data/types/type_matchups.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/types/type_matchups.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/types/type_matchups.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | ;Lines beginning with a semicolon (like this one) are Comments, and not part of the game. Information in such lines represent pieces which existed in vanilla, but have been
;removed or replaced by this hack.
;When counting lines, note that there are 14 blank lines
TypeEffects:
; attacker, defender, *=
db SOUND, GHOST, NO_EFFECT
db SOUND, ROCK, NOT_VERY_EFFECTIVE
db SOUND, FIGHTING, NOT_VERY_EFFECTIVE
db SOUND, PSYCHIC_TYPE, SUPER_EFFECTIVE
db FIRE, FIRE, NOT_VERY_EFFECTIVE
db FIRE, WATER, NOT_VERY_EFFECTIVE
db FIRE, ROCK, NOT_VERY_EFFECTIVE
db FIRE, DRAGON, NOT_VERY_EFFECTIVE
db FIRE, GRASS, SUPER_EFFECTIVE
db FIRE, ICE, SUPER_EFFECTIVE
db FIRE, BUG, SUPER_EFFECTIVE
db WATER, GRASS, NOT_VERY_EFFECTIVE
db WATER, WATER, NOT_VERY_EFFECTIVE
db WATER, DRAGON, NOT_VERY_EFFECTIVE
;db WATER, GROUND, SUPER_EFFECTIVE
db WATER, ROCK, SUPER_EFFECTIVE
db WATER, FIRE, SUPER_EFFECTIVE
db WATER, POISON, SUPER_EFFECTIVE
db ELECTRIC, GROUND, NO_EFFECT
db ELECTRIC, ELECTRIC, NOT_VERY_EFFECTIVE
db ELECTRIC, GRASS, NOT_VERY_EFFECTIVE
db ELECTRIC, DRAGON, NOT_VERY_EFFECTIVE
db ELECTRIC, FLYING, SUPER_EFFECTIVE
db ELECTRIC, WATER, SUPER_EFFECTIVE
db GRASS, BUG, NOT_VERY_EFFECTIVE
;db GRASS, POISON, NOT_VERY_EFFECTIVE
db GRASS, FLYING, NOT_VERY_EFFECTIVE
;db GRASS, GRASS, NOT_VERY_EFFECTIVE
db GRASS, FIRE, NOT_VERY_EFFECTIVE
db GRASS, DRAGON, NOT_VERY_EFFECTIVE
db GRASS, GROUND, SUPER_EFFECTIVE
;db GRASS, ROCK, SUPER_EFFECTIVE
db GRASS, WATER, SUPER_EFFECTIVE
db ICE, ICE, NOT_VERY_EFFECTIVE
db ICE, WATER, NOT_VERY_EFFECTIVE
db ICE, GRASS, SUPER_EFFECTIVE
db ICE, GROUND, SUPER_EFFECTIVE
db ICE, FLYING, SUPER_EFFECTIVE
;db ICE, DRAGON, SUPER_EFFECTIVE
db ICE, SOUND, SUPER_EFFECTIVE
db FIGHTING, GHOST, NO_EFFECT
db FIGHTING, POISON, NOT_VERY_EFFECTIVE
db FIGHTING, FLYING, NOT_VERY_EFFECTIVE
db FIGHTING, PSYCHIC_TYPE, NOT_VERY_EFFECTIVE
db FIGHTING, BUG, NOT_VERY_EFFECTIVE
db FIGHTING, ROCK, SUPER_EFFECTIVE
;db FIGHTING, SOUND, SUPER_EFFECTIVE
db FIGHTING, ICE, SUPER_EFFECTIVE
db POISON, POISON, NOT_VERY_EFFECTIVE
db POISON, GROUND, NOT_VERY_EFFECTIVE
db POISON, ROCK, NOT_VERY_EFFECTIVE
db POISON, GHOST, NOT_VERY_EFFECTIVE
db POISON, BUG, SUPER_EFFECTIVE
db POISON, GRASS, SUPER_EFFECTIVE
db POISON, FLYING, SUPER_EFFECTIVE
db GROUND, FLYING, NO_EFFECT
db GROUND, GRASS, NOT_VERY_EFFECTIVE
db GROUND, BUG, NOT_VERY_EFFECTIVE
;db GROUND, ROCK, SUPER_EFFECTIVE
db GROUND, ROCK, NOT_VERY_EFFECTIVE
db GROUND, POISON, SUPER_EFFECTIVE
;db GROUND, FIRE, SUPER_EFFECTIVE
db GROUND, SOUND, SUPER_EFFECTIVE
db GROUND, ELECTRIC, SUPER_EFFECTIVE
db FLYING, ROCK, NOT_VERY_EFFECTIVE
db FLYING, ELECTRIC, NOT_VERY_EFFECTIVE
db FLYING, FIGHTING, SUPER_EFFECTIVE
db FLYING, BUG, SUPER_EFFECTIVE
db FLYING, GRASS, SUPER_EFFECTIVE
db PSYCHIC_TYPE, PSYCHIC_TYPE, NOT_VERY_EFFECTIVE
db PSYCHIC_TYPE, DRAGON, NOT_VERY_EFFECTIVE
db PSYCHIC_TYPE, FIGHTING, SUPER_EFFECTIVE
db PSYCHIC_TYPE, POISON, SUPER_EFFECTIVE
db BUG, FIRE, NOT_VERY_EFFECTIVE
db BUG, FIGHTING, NOT_VERY_EFFECTIVE
db BUG, FLYING, NOT_VERY_EFFECTIVE
db BUG, GHOST, NOT_VERY_EFFECTIVE
db BUG, POISON, SUPER_EFFECTIVE
db BUG, GRASS, SUPER_EFFECTIVE
db BUG, PSYCHIC_TYPE, SUPER_EFFECTIVE
db ROCK, FIGHTING, NOT_VERY_EFFECTIVE
db ROCK, GROUND, NOT_VERY_EFFECTIVE
db ROCK, FIRE, SUPER_EFFECTIVE
db ROCK, FLYING, SUPER_EFFECTIVE
db ROCK, BUG, SUPER_EFFECTIVE
db ROCK, ICE, SUPER_EFFECTIVE
db GHOST, SOUND, NO_EFFECT
;db GHOST, PSYCHIC_TYPE, NO_EFFECT
db GHOST, PSYCHIC_TYPE, SUPER_EFFECTIVE
db GHOST, GHOST, SUPER_EFFECTIVE
db DRAGON, DRAGON, SUPER_EFFECTIVE
db -1 ; end
| 42.336283 | 172 | 0.605142 |
5f5fc242cafa7965169abd1eb112c5a029502382 | 182 | asm | Assembly | pkgs/tools/yasm/src/libyasm/tests/strucsize.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | pkgs/tools/yasm/src/libyasm/tests/strucsize.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | pkgs/tools/yasm/src/libyasm/tests/strucsize.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | struc TST1
.a resd 2
endstruc
struc TST2
.b resb TST1_size
endstruc
tst2:
istruc TST2
at TST2.b
istruc TST1
at TST1.a
dd 1, 2
iend
iend
dw TST1_size
dw TST2_size
| 7.583333 | 21 | 0.692308 |
7d252bb2d43192549c6f95e2a9ac96932c97fb3f | 774 | asm | Assembly | Tests/Z80 Programs/testZ80AsmTestMem/testZ80AsmTestMem.asm | Simulators/PiBusRaider | ec091f3c74ea25c3287d26d990ff5d1b90e97e92 | [
"MIT"
] | 7 | 2021-01-23T04:37:18.000Z | 2022-01-08T04:44:00.000Z | Tests/Z80 Programs/testZ80AsmTestMem/testZ80AsmTestMem.asm | Simulators/PiBusRaider | ec091f3c74ea25c3287d26d990ff5d1b90e97e92 | [
"MIT"
] | 3 | 2021-04-01T11:28:31.000Z | 2021-05-10T09:56:05.000Z | Tests/Z80 Programs/testZ80AsmTestMem/testZ80AsmTestMem.asm | robdobsn/BusRaider | 691e7882a06408208ca2abece5e7c4bcb4b4fa45 | [
"MIT"
] | null | null | null |
org 0
ld sp,0x0000
ld hl,0x3c00
ld de,0x3c01
ld (hl),0x20
ld bc,0x3ff
ldir
ld hl,0x4000
ld bc,0x1000
ld a,0x21
loophere:
cpi
jp nz, notCorrect
jp po, doneLoop
inc a
jp loophere
doneLoop:
ld de, 0x3c00
ld a, 0x31
ld (de),a
loopforever:
jp loopforever
notCorrect:
dec hl
ld de, 0x3c00
ld b, a
push bc
ld a, 0x33
ld (de), a
inc de
inc de
ld a, h
call dispHexAtDE
ld a, l
call dispHexAtDE
inc de
ld a, (hl)
call dispHexAtDE
inc de
pop bc
ld a, b
call dispHexAtDE
jp loopforever
dispHexAtDE:
ld b, a
push bc
sra a
sra a
sra a
sra a
and a, 0x0f
call getNibble
ld (de),a
inc de
pop bc
ld a,b
and a,0x0f
call getNibble
ld (de), a
inc de
ret
getNibble:
add a, 0x30
cp a, 0x3a
jp c, done
add a, 0x7
done:
ret
| 9.439024 | 18 | 0.652455 |
f0868cb234a3850658db624a87eee9534d1268ca | 268 | asm | Assembly | src/util/oli/qdos/kill.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/oli/qdos/kill.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/oli/qdos/kill.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | ; Kill current job
section utility
xdef ut_kill,gu_die
include win1_keys_qdos_sms
;+++
; Kill current job
;---
ut_kill
gu_die
moveq #0,d3
moveq #-1,d1
moveq #sms.frjb,d0
trap #do.sms2
end
| 14.105263 | 34 | 0.522388 |
67fb4364fd3a62ff135a1f2ee28790065c86aece | 728 | asm | Assembly | 3/01.asm | Changlon/x86Assembly | f363aaad6231f27d2e27e05be2c765e7be34099c | [
"MIT"
] | null | null | null | 3/01.asm | Changlon/x86Assembly | f363aaad6231f27d2e27e05be2c765e7be34099c | [
"MIT"
] | null | null | null | 3/01.asm | Changlon/x86Assembly | f363aaad6231f27d2e27e05be2c765e7be34099c | [
"MIT"
] | null | null | null |
; neg r/ m
; 如果是 0000 0001 (1) 则 neg 之后变为 1111 1111 (-1)
; 如果是 1111 1111 (-1) 则 neg之后变为 0000 0001 (1)
;idiv 有符号除法指令
; idiv r/m
; cbw 将al中的有符号数扩展到ax al = fd(-3) ax = fffd (-3)
; cwde 将ax中的有符号数扩展到eax
; cdqe 将eax中的有符号数扩展到rax
; cwd 将ax中的有符号数扩展到dx:ax中
; cdq 将eax中的有符号数扩展到edx:eax中
; cdo 将rax中的有符号数扩展到rdx:rax中
;标志寄存器
; cf 表示进位 ,产生进位或借位 1 否则 0
; pf 表示低八位1的奇偶性, 低八位有偶数个1,则为1,否则为0
; of 溢出标志,有符号运算溢出为1,否则为0
; zf 零标志,运算结果为0 则为1
; sf 符号标志位, 0表示正数 1表示负数
; af 算数操作在结果的位3产生进位或借位,标志位1,否则0
;1111 1000+
;0000 1000=
;0000 0000
; js jns 根据sf标志位转移 (sf = 1)
; jz jnz
; jo jno
; ...
;条件转移指令
; cmp r/m,r/m/imm 相当于sub比较 影响标志位
;例子
; cmp dh, 0
; jl negb 小于则转移 (sf!=of) 有符号数比较
; cmp dh,0x80
; jae negb
;jcxz cx寄存器为 0 转移
| 14.27451 | 48 | 0.65522 |
0f1451dc499f494786e1710f096111f137ebe722 | 798 | asm | Assembly | Driver/Printer/PrintCom/printcomCapslCursor.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/PrintCom/printcomCapslCursor.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/PrintCom/printcomCapslCursor.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 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: LBP print driver
FILE: printcomCapslCursor.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 6/92 Initial 2.0 revision
DESCRIPTION:
This file contains most of the code to implement the LBP
print driver cursor movement support
$Id: printcomCapslCursor.asm,v 1.1 97/04/18 11:50:47 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
include Cursor/cursorConvert300.asm
include Cursor/cursorPCLCommon.asm
include Cursor/cursorSetCursorCapsl.asm
| 23.470588 | 79 | 0.561404 |
9f03e321d3ee46c77346a4132787ced72733a3ff | 429 | asm | Assembly | oeis/073/A073358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/073/A073358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/073/A073358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A073358: Binomial transform, alternating in sign, of the tribonacci numbers.
; Submitted by Jamie Morken(s4)
; 0,-1,-1,-2,-2,-2,0,4,12,24,40,56,64,48,-16,-160,-416,-800,-1280,-1728,-1856,-1152,1152,6016,14336,26368,40704,52736,52736,24064,-57344,-220160,-488448,-862208,-1284096,-1591296,-1458176,-348160
mov $2,1
lpb $0
sub $0,1
mul $2,2
add $3,$1
mov $4,$1
mov $1,$3
sub $3,$2
mov $2,$4
lpe
mov $0,$3
div $0,2
| 25.235294 | 195 | 0.65035 |
a1a072d466ddc83e2a2da88b12f16b3c4efe03bb | 640 | asm | Assembly | 4e04.asm | sqph/td-micl | fbd130a6a741a38945c80bd8a1c2cfa7105754bd | [
"Unlicense"
] | null | null | null | 4e04.asm | sqph/td-micl | fbd130a6a741a38945c80bd8a1c2cfa7105754bd | [
"Unlicense"
] | null | null | null | 4e04.asm | sqph/td-micl | fbd130a6a741a38945c80bd8a1c2cfa7105754bd | [
"Unlicense"
] | null | null | null | ; 4e04.asm
global main
section .data
b1 DB 0
b2 DB 0
b3 DB 0
b4 DB 0
section .rodata
nb DD 0x12345678
section .text
main:
mov eax, b1 ; adresse de b1 pour débugger
mov bl, [nb+3] ; on met le byte de poids fort (0x12) dans b1
mov [b1], bl ; il faut procéder en 2 étapes
mov bl, [nb+2] ; on met le byte 0x34 dans b2
mov [b2], bl
mov bl, [nb+1] ; on met le byte 0x56 dans b3
mov [b3], bl
mov bl, [nb] ; on met le byte de poids faible (0x78) dans b4
mov [b4], bl
;fin
mov eax, 1
mov ebx, 0
int 0x80
| 18.823529 | 79 | 0.523438 |
f610245900093c7bb5b0fc75696a4d19f605c2fc | 6,766 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3109.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_3109.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_3109.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1b2f2, %rsi
lea addresses_WC_ht+0x3832, %rdi
clflush (%rsi)
nop
inc %rbp
mov $110, %rcx
rep movsq
dec %rdx
lea addresses_A_ht+0x11432, %r12
nop
nop
add $54094, %rbp
vmovups (%r12), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdx
add %rsi, %rsi
lea addresses_WC_ht+0x14132, %rsi
lea addresses_WT_ht+0x118a2, %rdi
nop
nop
xor $52890, %rax
mov $103, %rcx
rep movsw
nop
nop
nop
xor %rbp, %rbp
lea addresses_WC_ht+0x17b52, %rdx
nop
nop
nop
xor $40465, %r12
mov (%rdx), %ax
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_A_ht+0x5632, %r12
nop
nop
nop
cmp %rcx, %rcx
mov (%r12), %rax
nop
xor $17516, %rdx
lea addresses_UC_ht+0xa04a, %rsi
lea addresses_D_ht+0x15032, %rdi
xor $36951, %rbx
mov $36, %rcx
rep movsl
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_D_ht+0x1d432, %rax
nop
nop
nop
nop
dec %r12
mov (%rax), %rbx
nop
nop
nop
nop
dec %rdi
lea addresses_WC_ht+0x2032, %rax
nop
nop
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%rax)
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x1118e, %rsi
lea addresses_UC_ht+0x1d832, %rdi
nop
nop
nop
nop
nop
add %rbx, %rbx
mov $73, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x15832, %r8
nop
xor $55790, %r9
movw $0x5152, (%r8)
nop
nop
nop
nop
nop
dec %rcx
// Store
mov $0xc82, %r14
dec %rcx
movw $0x5152, (%r14)
cmp %rcx, %rcx
// Faulty Load
lea addresses_PSE+0x15832, %r8
clflush (%r8)
nop
cmp $45284, %rbx
vmovups (%r8), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rcx
lea oracles, %r14
and $0xff, %rcx
shlq $12, %rcx
mov (%r14,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'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
*/
| 35.798942 | 2,999 | 0.656813 |
600fac60cad8c379ea9e1d9dcaa4d76dfb66bd27 | 708 | asm | Assembly | oeis/077/A077977.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077977.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077977.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077977: Expansion of 1/(1+x+2*x^2-2*x^3).
; Submitted by Jamie Morken(s2)
; 1,-1,-1,5,-5,-7,27,-23,-45,145,-101,-279,771,-415,-1685,4057,-1517,-9967,21115,-4215,-57949,108609,-1141,-331975,551475,110193,-1877093,2759657,1214915,-10488415,13577899,9828761,-57961389,65459665,70120635,-316962743,307640803,466525953,-1715733045,1397962745,2966555251,-9193946831,6056761819,18264242345,-48765659645,24350698593,109709105387,-255941821863,85225008275,646076846225,-1328410506501,206706830601,3742267874851,-6812502549055,-258619539445,21368160387257,-34475926406477
mov $1,2
mov $3,2
lpb $0
sub $0,1
mul $2,2
sub $3,$1
add $1,$3
add $2,$3
add $1,$2
sub $2,$1
add $3,$2
lpe
mov $0,$3
div $0,2
| 37.263158 | 487 | 0.733051 |
5f0d75520f92aede73926b8be18877143e002f4b | 1,526 | asm | Assembly | pypy/lang/gameboy/rom/rom5/rom5.asm | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/lang/gameboy/rom/rom5/rom5.asm | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/lang/gameboy/rom/rom5/rom5.asm | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | ; ==========================================================================
; ROM5
; ==========================================================================
; First we includ the Gameboy Hardware Definitions
; into our assembly file, so that we get some nice
; constants and macros available.
INCLUDE "../include/gbhd.inc"
; Start a section at address $100.
SECTION "Main code section", HOME[$100]
; Start with a nop and a jump
nop
jp main
; Create a ROM header (NO MBC)
ROM_HEADER ROM_NOMBC, ROM_SIZE_32KBYTE, RAM_SIZE_0KBYTE
; --------------------------------------------------------------------------
; Main code entry point
; --------------------------------------------------------------------------
main:
; Disable interupts
di
; Test 1: The simple loop
xor a
.loop1:
dec a
jp NZ, .loop1
db $dd ; dbg
; Test 2: The loop with relative conditional jump
xor a
.loop2:
add a, 1
jr NC, .loop2
db $dd ; dbg
; Test 3: The loop again, but different somehow
xor a
.loop3:
inc a
jp NC, .loop3
db $dd ; dbg
; Stop CPU
db $76 ; halt (instruction coded as data because RGBASM adds a nop after a halt)
db $76 ; halt
; Put $ff in a to indicate that stop did not work
ld a, $ff
; Breakpoint
db $dd ; dbg
; Just do the hangup here
.hangup:
jp .hangup
| 23.84375 | 86 | 0.442333 |
2ad25b3401a020ac7304489bb0a8b294107740d1 | 1,217 | asm | Assembly | Laburi/Lab5/2-3-strings/strings.asm | DanBrezeanu/IOCLA | 1a22cc2949afc72818289f47288e32004f633fd1 | [
"MIT"
] | 2 | 2019-11-18T15:56:21.000Z | 2020-01-18T01:22:37.000Z | Laburi/Lab5/2-3-strings/strings.asm | zatbogdan99/IOCLA | 3d499ad18624f571e6c49ff891649a05ac9908e4 | [
"MIT"
] | null | null | null | Laburi/Lab5/2-3-strings/strings.asm | zatbogdan99/IOCLA | 3d499ad18624f571e6c49ff891649a05ac9908e4 | [
"MIT"
] | null | null | null | %include "io.inc"
section .data
string db "Lorem ipsum dolor sit amet.i", 0
print_strlen db "strlen: ", 10, 0
print_occ db "occurences of `i`:", 10, 0
occurences dd 0
length dd 0
char db 'i'
section .text
global CMAIN
CMAIN:
mov ebp, esp; for correct debugging
push ebp
mov ebp, esp
; TODO1: compute the length of a string
mov al, 0 ; \0
mov edi, string
cld
repne scasb
; TODO1: save the result in at address length
sub edi, string
dec edi
mov [length], edi
; print the result of strlen
PRINT_STRING print_strlen
PRINT_UDEC 4, [length]
NEWLINE
; TODO2: compute the number of occurences
xor eax, eax
mov al, [char] ; 'i'
mov ecx, edi
lea edx, [string + edi]
mov edi, string
xor ebx, ebx
; TODO2: save the result in at address occurences
find_i:
repne scasb
cmp al, byte [edi - 1]
jnz loop_back
inc ebx
loop_back:
cmp edi, edx
je print
jmp find_i
print:
; print the number of occurences of the char
mov [occurences], ebx
PRINT_STRING print_occ
PRINT_UDEC 4, [occurences]
NEWLINE
xor eax, eax
leave
ret
| 17.637681 | 53 | 0.608874 |
40c6d536e179d83d9c9852d8ef4ef877675bb63a | 438 | asm | Assembly | oeis/271/A271567.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/271/A271567.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/271/A271567.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A271567: Convolution of nonzero triangular numbers (A000217) and nonzero tetradecagonal numbers (A051866).
; Submitted by Jon Maiga
; 1,17,87,287,742,1638,3234,5874,9999,16159,25025,37401,54236,76636,105876,143412,190893,250173,323323,412643,520674,650210,804310,986310,1199835,1448811,1737477,2070397,2452472,2888952,3385448,3947944,4582809,5296809,6097119
mov $1,$0
add $0,4
bin $0,$1
mul $1,12
add $1,5
mul $0,$1
mul $0,2
div $0,10
| 33.692308 | 225 | 0.773973 |
63223c67ce7d7a8671eb998db3fbf7356ac501d6 | 1,056 | asm | Assembly | software/minol/source/commands/clear.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/clear.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/clear.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | ; ****************************************************************************************************************
; ****************************************************************************************************************
;
; CLEAR
;
; ****************************************************************************************************************
; ****************************************************************************************************************
jmp CCL_Over
; ****************************************************************************************************************
; CLEAR command
; ****************************************************************************************************************
CMD_Clear:
lpi p3,Variables ; point P3 to variables
ldi 26 ; loop counter to 26
st -1(p2)
CCL_Loop:
ldi 0x00 ; clear a variable
st @1(p3)
dld -1(p2) ; done all
jnz CCL_Loop ; loop back
scl ; no error
CCL_Over: | 40.615385 | 114 | 0.168561 |
ea40896f92bc03f147eca800cfa033e0c6a7146a | 294 | asm | Assembly | libsrc/spectrum/zx_colour.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/spectrum/zx_colour.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/spectrum/zx_colour.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ; 09.2009 stefano
; void __FASTCALL__ zx_colour(uchar colour)
XLIB zx_colour
.zx_colour
ld a,l
ld d,l
ld e,l
ld hl,0
ld b,48
add hl,sp
ld sp,16384+6912
.clrloop
push de
push de
push de
push de
push de
push de
push de
push de
djnz clrloop
ld sp,hl
ret
| 10.137931 | 43 | 0.639456 |
615ebacd5f21a45f8ba1fb4a52689c1fa29aeddf | 323 | asm | Assembly | oeis/021/A021241.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | oeis/021/A021241.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | oeis/021/A021241.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021241: Decimal expansion of 1/237.
; 0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0,9,2,8,2,7,0,0,4,2,1,9,4,0
add $0,1
mov $2,1
lpb $0
sub $0,1
mul $2,10
lpe
div $2,237
mov $0,$2
mod $0,10
| 24.846154 | 199 | 0.5387 |
4002782a3f253024514866de4bf8850426ce0035 | 7,223 | asm | Assembly | rom/example/sprite.asm | novoru/GBR | 2d4a2c2c5740e0b6064a86d5aea29829c2ea9f3b | [
"MIT"
] | null | null | null | rom/example/sprite.asm | novoru/GBR | 2d4a2c2c5740e0b6064a86d5aea29829c2ea9f3b | [
"MIT"
] | null | null | null | rom/example/sprite.asm | novoru/GBR | 2d4a2c2c5740e0b6064a86d5aea29829c2ea9f3b | [
"MIT"
] | null | null | null | ; -----------------------------------------------------------------------------
; Example: Single, d-pad moveable sprite
; -----------------------------------------------------------------------------
; Font comes from ZX Spectrum - https://en.wikipedia.org/wiki/ZX_Spectrum_character_set
; More examples by tmk @ https://github.com/gitendo/helloworld
; -----------------------------------------------------------------------------
INCLUDE "hardware.inc" ; system defines
SECTION "VBL",ROM0[$0040] ; vblank interrupt handler
jp vbl
SECTION "Start",ROM0[$100] ; start vector, followed by header data applied by rgbfix.exe
nop
jp start
SECTION "Example",ROM0[$150] ; code starts here
start:
di ; disable interrupts
ld sp,$E000 ; setup stack
.wait_vbl ; wait for vblank to properly disable lcd
ld a,[rLY]
cp $90
jr nz,.wait_vbl
xor a
ld [rIF],a ; reset important registers
ld [rLCDC],a
ld [rSTAT],a
ld [rSCX],a
ld [rSCY],a
ld [rLYC],a
ld [rIE],a
ld hl,_RAM ; clear ram (fill with a which is 0 here)
ld bc,$2000-2 ; watch out for stack ;)
call fill
ld hl,_HRAM ; clear hram
ld c,$80 ; a = 0, b = 0 here, so let's save a byte and 4 cycles (ld c,$80 - 2/8 vs ld bc,$80 - 3/12)
call fill
ld hl,_VRAM ; clear vram
ld b,$18 ; a = 0, bc should be $1800; c = 0 here, so..
call fill
ld a,2 ; tile number to fill the _SCRN0 with - tiles 0, 1 are used for sprite, rest is empty
; no need to setup hl since _SCRN0 ($9800) and _SCRN1 ($9C00) are part of _VRAM, just continue
ld b,8 ; bc should be $800 (_SCRN0/1 are 32*32 bytes); c = 0 here, so..
call fill
ld a,%01101100 ; bits: 7-6 = 1st color, 5-4 = 2nd, 3-2 = 3rd and 1-0 = 4th color
; color values: 00 - light, 01 - gray, 10 - dark gray, 11 - dark
ld [rBGP],a ; bg palette
ld [rOBP0],a ; obj palettes
ld [rOBP1],a
ld hl,heart ; tiles used as sprites
ld de,_VRAM
ld bc,32 ; two tiles, 16 bytes each
call copy
ld c,$80 ; dma sub will be copied to _HRAM, at $FF80
ld b,dma_sub_end-dma_sub_start ; size of dma sub, which is 10 bytes
ld hl,dma_sub_start ; dma sub code to be copied
.copy
ld a,[hl+]
ld [c],a
inc c
dec b
jr nz,.copy
ld a,80 ; OAM table mirror is located at $C000, let's set up 1st sprite
ld [$C000],a ; y coordinate
ld a,84
ld [$C001],a ; x coordinate
; sprite will use tile 0 and no attributes, we already zeroed whole RAM so no need to do it again
ld a,IEF_VBLANK ; set up vblank interrupt
ld [rIE],a
ld a,LCDCF_ON | LCDCF_BG8000 | LCDCF_BG9800 | LCDCF_OBJ8 | LCDCF_OBJON | LCDCF_WINOFF | LCDCF_BGON
; lcd setup: tiles at $8000, map at $9800, 8x8 sprites (enabled), no window, etc.
ld [rLCDC],a ; enable lcd
ei ; enable interrupts
.loop
halt ; save battery
; nop ; nop after halt is mandatory but rgbasm takes care of it :)
call read_keys ; read joypad
ld hl,$C000
.btn_a
bit 0,b ; is button a pressed ? (bit must be 1)
jr z,.btn_b ; no, check other key (apparently it's 0)
ld l,2 ; hl = $C002 which is 1st sprite in OAM table mirror, located at $C000
xor a ; change sprite to tile 0
ld [hl],a
.btn_b
bit 1,b ; ...
jr z,.right
ld l,2
ld a,1 ; change sprite to tile 1
ld [hl],a
.right
bit 4,b
jr z,.left
ld l,1 ; x coordinate
inc [hl] ; increase
.left
bit 5,b
jr z,.up
ld l,1 ; x coordinate
dec [hl] ; decrease
.up
bit 6,b
jr z,.down
ld l,0 ; y coordinate
dec [hl] ; decrease
.down
bit 7,b
jr z,.loop
ld l,0 ; y coordinate
inc [hl] ; increase
jr .loop ; endless loop
vbl:
call $FF80 ; copy OAM mirror table using DMA
reti
;-------------------------------------------------------------------------------
read_keys:
;-------------------------------------------------------------------------------
; this function returns two different values in b and c registers:
; b - returns raw state (pressing key triggers given action continuously as long as it's pressed - it does not prevent bouncing)
; c - returns debounced state (pressing key triggers given action only once - key must be released and pressed again)
ld a,$20 ; read P15 - returns a, b, select, start
ldh [rP1],a
ldh a,[rP1] ; mandatory
ldh a,[rP1]
cpl ; rP1 returns not pressed keys as 1 and pressed as 0, invert it to make result more readable
and $0f ; lower nibble has a, b, select, start state
swap a
ld b,a
ld a,$10 ; read P14 - returns up, down, left, right
ldh [rP1],a
ldh a,[rP1] ; mandatory
ldh a,[rP1]
ldh a,[rP1]
ldh a,[rP1]
ldh a,[rP1]
ldh a,[rP1]
cpl ; rP1 returns not pressed keys as 1 and pressed as 0, invert it to make result more readable
and $0f ; lower nibble has up, down, left, right state
or b ; combine P15 and P14 states in one byte
ld b,a ; store it
ldh a,[previous] ; this is when important part begins, load previous P15 & P14 state
xor b ; result will be 0 if it's the same as current read
and b ; keep buttons that were pressed during this read only
ldh [current],a ; store final result in variable and register
ld c,a
ld a,b ; current P15 & P14 state will be previous in next read
ldh [previous],a
ld a,$30 ; reset rP1
ldh [rP1],a
ret
;-------------------------------------------------------------------------------
copy:
;-------------------------------------------------------------------------------
; hl - source address
; de - destination
; bc - size
inc b
inc c
jr .skip
.copy
ld a,[hl+]
ld [de],a
inc de
.skip
dec c
jr nz,.copy
dec b
jr nz,.copy
ret
;-------------------------------------------------------------------------------
fill:
;-------------------------------------------------------------------------------
; a - byte to fill with
; hl - destination address
; bc - size of area to fill
inc b
inc c
jr .skip
.fill
ld [hl+],a
.skip
dec c
jr nz,.fill
dec b
jr nz,.fill
ret
;-------------------------------------------------------------------------------
dma_sub_start:
;-------------------------------------------------------------------------------
db $3E,$C0 ; ld a,$C0 ; OAM table mirror in RAM at $C000 (high byte)
db $E0,$46 ; ld [rDMA],a
db $3E,$28 ; ld a,40 ; delay = 160 cycles
;.copy
db $3D ; dec a
db $20,$FD ; jr nz,.copy
db $C9 ; ret
dma_sub_end:
;-------------------------------------------------------------------------------
heart:
db $00,$6C,$6C,$92,$3C,$82,$7C,$C2,$7C,$82,$38,$44,$10,$28,$00,$10 ; 1st heart tile
db $6C,$6C,$FE,$FE,$FE,$FE,$FE,$FE,$FE,$FE,$7C,$7C,$38,$38,$10,$10 ; 2nd heart tile
;-------------------------------------------------------------------------------
SECTION "Variables",HRAM[$FF8A] ; $FF80 - $FF89 is taken by dma_sub function
current: DS 1 ; usually you read keys state and store it into variable for further processing
previous: DS 1 ; this is previous keys state used by debouncing part of read_keys function
| 29.125 | 128 | 0.527343 |
0da1b39fe18e343f10091a5affebba15cc06a32b | 1,064 | asm | Assembly | sfn-cdc.asm | paulmcq/SpaceFillName | 832d6eccf0d0a4ef4d1bac4be049e71642b347b9 | [
"MIT"
] | null | null | null | sfn-cdc.asm | paulmcq/SpaceFillName | 832d6eccf0d0a4ef4d1bac4be049e71642b347b9 | [
"MIT"
] | null | null | null | sfn-cdc.asm | paulmcq/SpaceFillName | 832d6eccf0d0a4ef4d1bac4be049e71642b347b9 | [
"MIT"
] | null | null | null | * 20200627, PHM: downloaded from page 17, COMCSFN, of
* http://s3data.computerhistory.org/chess/chess.sourcecode.102645430.pdf
*** SFN - SPACE FILL NAME.
* G. R. MANSFIELD. 12/08/69.
* ADAPTED FROM ROUTINE DEVELOPED AT PURDUE UNIVERSITY.
* REVISED - 03/27/74. C. G. FILSTEAD.
SFN SPACE 4
*** SFN APPENDS SPACE CODES (55) TO A WORD.
*
* ENTRY (X1) = NAME LEFT JUSTIFIED, ZERO FILL.
* (B1) = 1.
*
* EXIT (X6) = NAME SPACE FILLED.
*
* USES A2, X2.
*
* CALLS NONE.
*
SFN EQ *+1S17 ENTRY/EXIT
SA2 =40404040404040404040B
* EXAMPLE: LET X1 = 0102 0304 0500 0000 0000
MX6 -1
IX6 X1+X6 0102 0304 0477 7777 7777
BX6 -X6+X1 7777 7777 7700 0000 0000
BX2 -X6*X2 0000 0000 0040 4040 4040
BX6 X2
LX6 -3 0000 0000 0004 0404 0404
BX2 X2+X6 0000 0000 0044 4444 4444
BX6 X1+X2 0102 0304 0544 4444 4444
LX2 -2 0000 0000 0011 1111 1111
BX6 X6+X2 0102 0304 0555 5555 5555
EQ SFN RETURN
| 26.6 | 74 | 0.578947 |
5c3fc0e936468f8eabec09a11169c9f0202fae24 | 7,403 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_2501.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_2501.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_2501.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 %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1a3f8, %r12
nop
nop
nop
add %rbp, %rbp
mov (%r12), %r9d
nop
nop
add %r11, %r11
lea addresses_UC_ht+0x14738, %rsi
lea addresses_UC_ht+0x10ff8, %rdi
sub %rax, %rax
mov $71, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $15426, %r11
lea addresses_A_ht+0x1c2b8, %rsi
dec %rcx
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
sub $28526, %r11
lea addresses_WT_ht+0xc7f8, %r12
nop
xor %rcx, %rcx
vmovups (%r12), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
nop
add %r11, %r11
lea addresses_WT_ht+0x19538, %rdi
nop
dec %rcx
movups (%rdi), %xmm1
vpextrq $1, %xmm1, %r9
nop
inc %r12
lea addresses_UC_ht+0xdc18, %rsi
and $12180, %rcx
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
inc %rcx
lea addresses_normal_ht+0x3bf8, %rsi
lea addresses_normal_ht+0x18ef8, %rdi
nop
nop
nop
nop
nop
sub $50349, %r9
mov $59, %rcx
rep movsl
and $51599, %r11
lea addresses_WC_ht+0x10fd0, %rax
nop
nop
nop
nop
add $46107, %r9
mov $0x6162636465666768, %r11
movq %r11, %xmm7
movups %xmm7, (%rax)
xor %rax, %rax
lea addresses_D_ht+0x105f8, %r12
and %rcx, %rcx
movb (%r12), %r11b
and %rbp, %rbp
lea addresses_WC_ht+0x12300, %r12
nop
nop
nop
cmp $4334, %r9
movb $0x61, (%r12)
xor $27521, %rcx
lea addresses_normal_ht+0x53f8, %rsi
lea addresses_WT_ht+0x4ff8, %rdi
sub %rbp, %rbp
mov $41, %rcx
rep movsw
nop
nop
nop
nop
nop
and $55596, %r12
lea addresses_A_ht+0xc78, %rsi
lea addresses_WT_ht+0x174f8, %rdi
nop
nop
nop
nop
nop
and $48058, %r9
mov $23, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x2258, %rdi
xor $57200, %r12
mov (%rdi), %r11d
nop
nop
nop
add %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r9
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_WT+0xb2f8, %rax
nop
nop
nop
nop
nop
and $42486, %rdi
movl $0x51525354, (%rax)
nop
nop
nop
cmp %rbp, %rbp
// Faulty Load
lea addresses_PSE+0xc7f8, %rdi
dec %r12
mov (%rdi), %r9w
lea oracles, %rdi
and $0xff, %r9
shlq $12, %r9
mov (%rdi,%r9,1), %r9
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
| 36.112195 | 2,999 | 0.65595 |
2a76c019366f512ec935ea2ff38c79c6796b5f67 | 218 | asm | Assembly | MIPS04/desvios.asm | elisionara/ASM | 93e84a31ff10f57b4ffaad09a681307adba0cede | [
"Apache-2.0"
] | null | null | null | MIPS04/desvios.asm | elisionara/ASM | 93e84a31ff10f57b4ffaad09a681307adba0cede | [
"Apache-2.0"
] | null | null | null | MIPS04/desvios.asm | elisionara/ASM | 93e84a31ff10f57b4ffaad09a681307adba0cede | [
"Apache-2.0"
] | null | null | null | .text
main:
li $s3, 2
li $s4, 4
#desvia para L2 se s0 = s1
beq $s0, $s1, L2
# Executa se x != y
sub $s2, $s3, $s4
L2 : add $s2, $s4, $s4 # Executa se x = y
move $a0, $s2
li $v0, 1
syscall
| 12.111111 | 45 | 0.490826 |
6d28f515cb531f903493bdaf1fc0a9aea190b49c | 485 | asm | Assembly | oeis/339/A339965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/339/A339965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/339/A339965.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A339965: a(n) = sigma(n) / gcd(sigma(n),n+1).
; Submitted by Christian Krause
; 1,1,1,7,1,12,1,5,13,18,1,28,1,8,3,31,1,39,1,2,16,36,1,12,31,14,10,56,1,72,1,21,24,54,4,91,1,20,7,90,1,96,1,28,39,72,1,124,57,31,18,98,1,24,9,40,40,90,1,168,1,32,13,127,14,144,1,42,48,144,1,195,1,38,31,20,16,168,1,62,121,126,1,224,54,44,15,180,1,18,28,56,64,144,5,252,1,19,39,217
mov $1,$0
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
add $1,2
gcd $1,$0
dif $0,$1
| 48.5 | 280 | 0.630928 |
43d14a2cb12980d02feb87f4241f56ea3a61f0a5 | 98 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/cos_fastcall.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/cos_fastcall.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/cos_fastcall.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math16
PUBLIC _cosf16_fastcall
EXTERN cosf16
defc _cosf16_fastcall = cosf16
| 14 | 31 | 0.826531 |
3c2b011ca87190bb13fc9c1a33a7e09b9eb65143 | 501 | asm | Assembly | programs/oeis/195/A195121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/195/A195121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/195/A195121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A195121: a(n) = 2*n - floor(n/r), where r = (1 + sqrt(5))/2 (the golden ratio).
; 0,2,3,5,6,7,9,10,12,13,14,16,17,18,20,21,23,24,25,27,28,30,31,32,34,35,36,38,39,41,42,43,45,46,47,49,50,52,53,54,56,57,59,60,61,63,64,65,67,68,70,71,72,74,75,77,78,79,81,82,83,85,86,88,89,90,92,93,94,96,97,99,100,101,103,104,106,107,108,110,111,112,114,115,117,118,119,121,122,123,125,126,128,129,130,132,133,135,136,137
mov $1,$0
seq $1,60143 ; a(n) = floor(n/tau), where tau = (1 + sqrt(5))/2.
sub $1,$0
sub $0,$1
| 62.625 | 322 | 0.630739 |
3cac96cfd2b4b90d532eef99f30931e35d6818df | 1,188 | asm | Assembly | example/4_range.asm | ndf-zz/fv1build | 4257fa41fd86090594f964a7997309dcbe461b4b | [
"CC0-1.0"
] | 3 | 2019-10-21T05:34:46.000Z | 2020-08-26T12:08:37.000Z | example/4_range.asm | ndf-zz/fv1build | 4257fa41fd86090594f964a7997309dcbe461b4b | [
"CC0-1.0"
] | 1 | 2020-06-20T23:50:38.000Z | 2020-06-21T04:31:36.000Z | example/4_range.asm | ndf-zz/fv1build | 4257fa41fd86090594f964a7997309dcbe461b4b | [
"CC0-1.0"
] | 1 | 2019-11-26T09:48:08.000Z | 2019-11-26T09:48:08.000Z | ; FV-1 Testing Bank
;
; Check behaviour of FV-1 against documentation
;
; Program 4 : Output Range
;
; Manually sweep output over all values
;
; Expected output: sawtooth with period 2**24/fs (~512s)
; Waveform parameters
equ maxval 0x7fffff ; ACC maximum
equ minval 0x800000 ; ACC minimum
equ incval 0x1 ; per sample increment
; Registers
equ PREV REG0 ; last output
equ CUR REG1 ; next output
equ MAX REG3 ; reg to store maxval
equ MIN REG4 ; reg ro store minval
equ INC REG5 ; reg to store incval
; Prepare constants
skp RUN,main
clr
or maxval
wrax MAX,0.0
or minval
wrax MIN,0.0
or incval
wrax INC,0.0
main: ldax PREV ; read previous output
xor maxval ; compare with maximum value
skp ZRO,tomin ; if PREV was as max, change to MIN
incr: ldax INC ; load increment into ACC
rdax PREV,1.0 ; load acc with PREV + INC
wrax CUR,0.0 ; store to CUR and clear ACC
skp ZRO,output ; skip to output
tomin: ldax MIN ; load minimum val into ACC
wrax CUR,0.0 ; store minimum in CUR and clear ACC
skp ZRO,output ; skip to output
output: ldax CUR ; load the computed value into ACC
wrax PREV,1.0 ; store value in PREV register
wrax DACL,0.0 ; output value to DAC
| 23.76 | 56 | 0.723906 |
0b9bd1be3a23f9ae02affd67cad0b19ac892e77e | 179 | asm | Assembly | data/pokemon/dex_entries/staraptor.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/dex_entries/staraptor.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/dex_entries/staraptor.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | db "PREDATOR@" ; species name
db "When STARAVIA"
next "evolve into"
next "STARAPTOR, they"
page "leave the flock to"
next "live alone. They"
next "have sturdy wings.@"
| 17.9 | 30 | 0.675978 |
4243eaf6c34d26168b73f7e4b95c9e26d5b7f83d | 6,387 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1259.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1259.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1259.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 %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x10e50, %rsi
nop
nop
nop
cmp $27094, %r13
mov (%rsi), %di
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_WT_ht+0x94d0, %rbx
clflush (%rbx)
nop
nop
nop
cmp $5119, %r13
movups (%rbx), %xmm7
vpextrq $1, %xmm7, %rcx
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x1ddd0, %r9
nop
nop
nop
nop
nop
inc %r10
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%r9)
nop
add $9045, %rsi
lea addresses_UC_ht+0x119fa, %r10
nop
nop
nop
nop
sub %rsi, %rsi
movl $0x61626364, (%r10)
nop
nop
add $22477, %rsi
lea addresses_WC_ht+0x5cd0, %rsi
lea addresses_WT_ht+0xb4d0, %rdi
clflush (%rsi)
nop
xor %r13, %r13
mov $50, %rcx
rep movsq
xor %r13, %r13
lea addresses_UC_ht+0xfbd0, %r13
nop
nop
nop
nop
and $19947, %r10
movb (%r13), %cl
nop
nop
nop
dec %r13
lea addresses_D_ht+0x1c702, %r10
nop
nop
nop
cmp $33471, %rsi
movups (%r10), %xmm4
vpextrq $0, %xmm4, %rdi
nop
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_normal_ht+0x196c8, %rsi
nop
nop
cmp %rcx, %rcx
mov (%rsi), %r9
nop
cmp $65192, %r13
lea addresses_D_ht+0x150d0, %r13
nop
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, (%r13)
nop
nop
nop
nop
and $53685, %rbx
lea addresses_WT_ht+0xf4cd, %rcx
nop
nop
nop
nop
nop
xor %r9, %r9
mov (%rcx), %r13d
nop
nop
nop
nop
nop
sub $38132, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %rcx
push %rdi
push %rsi
// Faulty Load
lea addresses_normal+0x1cd0, %r15
nop
nop
nop
nop
nop
and %rcx, %rcx
mov (%r15), %r8d
lea oracles, %r15
and $0xff, %r8
shlq $12, %r8
mov (%r15,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 11}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 1}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 10}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 0}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 35.681564 | 2,999 | 0.657429 |
7d2a879488211dcc50e598d402b2f411a3e6b1d2 | 407 | asm | Assembly | oeis/335/A335259.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/335/A335259.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/335/A335259.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A335259: Triangle read by rows: T(n,k) = k^ceiling(n/k) for 1 <= k <= n.
; Submitted by Jon Maiga
; 1,1,2,1,4,3,1,4,9,4,1,8,9,16,5,1,8,9,16,25,6,1,16,27,16,25,36,7,1,16,27,16,25,36,49,8,1,32,27,64,25,36,49,64,9,1,32,81,64,25,36,49,64,81,10,1,64,81,64,125,36,49,64,81,100,11,1,64,81,64,125,36,49,64,81,100,121,12
lpb $0
add $2,1
sub $0,$2
lpe
mov $1,$0
add $1,1
div $2,$1
add $2,1
pow $1,$2
mov $0,$1
| 27.133333 | 213 | 0.599509 |
9b397e6006775da4efade0429d18e6014bc1f029 | 683 | asm | Assembly | oeis/022/A022725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/022/A022725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/022/A022725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A022725: Expansion of 1/((1-x)*(1-5*x)*(1-8*x)*(1-12*x)).
; Submitted by Jamie Morken(s3)
; 1,26,455,6760,92301,1200966,15177955,188364020,2310685001,28133195506,340850357055,4116281407680,49604299052101,596924491783646,7176484756065755,86224982057057740,1035557295293705601,12433548582070885386,149257476061593552055,1791528881194923954200,21501860041194787637501,258050428825229500900726,3096830015530122643583955,37163759158281581979057060,445979501749245671766319801,5351869156162410595183109666,64223350957183272563326449455,770687580161387259875105246320
add $0,2
lpb $0
sub $0,1
add $2,1
mul $2,8
mul $3,12
add $3,$1
mul $1,5
add $1,$2
lpe
mov $0,$3
div $0,8
| 40.176471 | 470 | 0.811127 |
37cafee45a82901831f6f93d0e6c789f305ab291 | 460 | asm | Assembly | programs/oeis/162/A162630.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/162/A162630.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/162/A162630.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A162630: Triangle read by rows in which row n lists the number of states of the subshells of the n-th shell of the nuclear shell model ordered by energy level in increasing order.
; 2,4,2,6,2,4,8,4,2,6,10,6,2,4,8,12,8,4,2,6,10,14,10,6,2,4,8,12,16,12,8,4,2,6,10,14,18,14,10,6,2,4,8,12,16,20,16,12,8,4,2,6,10,14,18,22,18,14,10,6,2,4,8,12,16,20,24,20,16,12,8,4,2
mul $0,2
seq $0,4737 ; Concatenation of sequences (1,2,...,n-1,n,n-1,...,1) for n >= 1.
mul $0,2
| 65.714286 | 181 | 0.66087 |
e5bba7554b50e1d0d5b8c2fb0e24a67c84ce4902 | 2,254 | asm | Assembly | src/kernel/kernel.mem.asm | asmCcoder/dzOS | 0c7e1540d8cb61830855cfcc71ecf3394dcb7e3c | [
"MIT"
] | 1 | 2021-08-30T02:50:56.000Z | 2021-08-30T02:50:56.000Z | src/kernel/kernel.mem.asm | dasta400/dzOS | 0c7e1540d8cb61830855cfcc71ecf3394dcb7e3c | [
"MIT"
] | null | null | null | src/kernel/kernel.mem.asm | dasta400/dzOS | 0c7e1540d8cb61830855cfcc71ecf3394dcb7e3c | [
"MIT"
] | null | null | null | ;******************************************************************************
; kernel.mem.asm
;
; Kernel's Memory routines
; for dastaZ80's dzOS
; by David Asta (May 2019)
;
; Version 1.0.0
; Created on 08 May 2019
; Last Modification 08 May 2019
;******************************************************************************
; CHANGELOG
; -
;******************************************************************************
; --------------------------- LICENSE NOTICE ----------------------------------
; This file is part of dzOS
; Copyright (C) 2017-2018 David Asta
; dzOS is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
; dzOS is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
; You should have received a copy of the GNU General Public License
; along with dzOS. If not, see <http://www.gnu.org/licenses/>.
; -----------------------------------------------------------------------------
;==============================================================================
; Memory Routines
;==============================================================================
;------------------------------------------------------------------------------
F_KRN_SETMEMRNG: .EXPORT F_KRN_SETMEMRNG
; Sets a value in a memory position range
; IN <= HL contains the start position
; DE contains the end position.
; A value to set
; The routine will go from HL to DE and store in each position whatever value
; is in register A.
setmemrng_loop:
ld (hl), a ; put register A content in address pointed by HL
inc hl ; HL pointed + 1
push hl ; store HL value in Stack, because SBC destroys it
sbc hl, de ; substract DE from HL
jp z, end_setmemrng_loop ; if we reach the end position, jump out
pop hl ; restore HL value from Stack
jp setmemrng_loop ; no at end yet, continue loop
end_setmemrng_loop:
pop hl ; restore HL value from Stack
ret | 41.740741 | 79 | 0.523957 |
59bf21607847c0f578a98739dacaae7aa409e3ba | 87 | asm | Assembly | u7si/eop-target.asm | JohnGlassmyer/UltimaHacks | f9a114e00c4a1edf1ac7792b465feff2c9b88ced | [
"MIT"
] | 68 | 2018-03-04T22:34:22.000Z | 2022-03-10T15:18:32.000Z | u7si/eop-target.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 19 | 2018-11-20T04:06:49.000Z | 2021-11-08T16:37:10.000Z | u7si/eop-target.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 4 | 2020-09-01T17:57:36.000Z | 2022-01-04T20:51:11.000Z | %include "include/u7si-all-includes.asm"
%include "../u7-common/patch-eop-target.asm"
| 21.75 | 44 | 0.735632 |
30a1b7cac8eb6f408092c208e9da598066b5a3e1 | 274 | asm | Assembly | pwnlib/shellcraft/templates/aarch64/linux/fstat64.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 325 | 2016-01-25T08:38:06.000Z | 2022-03-30T14:31:50.000Z | pwnlib/shellcraft/templates/aarch64/linux/fstat64.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 8 | 2016-08-23T10:15:27.000Z | 2019-01-16T02:49:34.000Z | pwnlib/shellcraft/templates/aarch64/linux/fstat64.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 71 | 2016-07-13T10:03:52.000Z | 2022-01-10T11:57:34.000Z | <%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="fd, buf"/>
<%docstring>
Invokes the syscall fstat64. See 'man 2 fstat64' for more information.
Arguments:
fd(int): fd
buf(stat64): buf
</%docstring>
${syscall('SYS_fstat64', fd, buf)}
| 19.571429 | 71 | 0.667883 |
d698c82785ae7e431d93f054dac5395e491bf14d | 635 | asm | Assembly | oeis/097/A097836.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097836.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097836.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097836: Chebyshev polynomials S(n,51).
; Submitted by Jon Maiga
; 1,51,2600,132549,6757399,344494800,17562477401,895341852651,45644872007800,2326993130545149,118631004785794799,6047854250944989600,308321935793408674801,15718370871212897425251,801328592496064360013000,40852039846428069463237749,2082652703575335478265112199,106174435842495681322057484400,5412813575263704411946666592201,275947317902606429327957938717851,14067900399457664191313908208018200,717186973054438267327681360670210349,36562467725376893969520435485972709599
add $0,1
mov $2,1
lpb $0
sub $0,1
mov $1,$3
mul $1,49
add $2,$1
add $3,$2
lpe
mov $0,$3
| 42.333333 | 468 | 0.853543 |
0541d220ab53023abb785ded6c5404a568e4dec1 | 263 | a51 | Assembly | a51test/(C2)CLR_bit.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(C2)CLR_bit.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(C2)CLR_bit.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | MOV 0x20,#0xF0
MOV 0x2F,#0xA0
MOV 0x22,#0xFF
MOV 0x24,#0xE2
MOV 0xE0,#0x30
MOV 0xF0,#0x0F
MOV 0x80,#0xFF
CLR 0x07 ;0x20.7 0x70
CLR 0x7D ;0x2F.5 0x80
CLR 0x12 ;0x22.2 0xFB
CLR 0x21 ;0x24.1 0xE0
CLR 0xE4 ;0xE0.4 0x20
CLR 0xF2 ;0xF0.2 0x0B
CLR 0x87 ;0x80.7 0x7F
| 16.4375 | 22 | 0.718631 |
e92dc50149bee8f668070fbd63540760b60cddad | 719 | asm | Assembly | programs/oeis/256/A256266.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/256/A256266.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/256/A256266.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A256266: Total number of ON states after n generations of cellular automaton based on triangles (see Comments lines for definition).
; 0,6,18,24,48,66,78,84,132,174,210,240,264,282,294,300,396,486,570,648,720,786,846,900,948,990,1026,1056,1080,1098,1110,1116,1308,1494,1674,1848,2016,2178,2334,2484,2628,2766,2898,3024,3144,3258,3366,3468,3564,3654,3738,3816,3888,3954,4014,4068,4116,4158,4194,4224,4248
mov $9,$0
mov $11,$0
lpb $11,1
clr $0,9
mov $0,$9
sub $11,1
sub $0,$11
mul $0,8
mov $2,$0
div $2,2
lpb $2,1
add $1,7
sub $3,7
trn $6,$3
lpb $6,1
mov $3,$1
sub $6,$6
lpe
sub $2,1
add $6,5
lpe
mov $1,$3
div $1,28
mul $1,6
add $10,$1
lpe
mov $1,$10
| 23.193548 | 270 | 0.630042 |
d3d9cda92bc69630357f29b00229e29c4f0b652d | 483 | asm | Assembly | oeis/217/A217052.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/217/A217052.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/217/A217052.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A217052: a(n) = 3*a(n-1) + 24*a(n-2) + a(n-3), with a(0)=a(1)=1, and a(2)=19.
; Submitted by Jon Maiga
; 1,1,19,82,703,4096,29242,186733,1266103,8309143,55500634,367187437,2441886670,16193659132,107553444913,713750040577,4738726458775,31453733795086,208804386436435,1386041496850144,9200883498819958,61076450807299765,405436597890428431
mul $0,3
mov $1,-1
lpb $0
sub $0,1
add $2,$1
add $2,$1
sub $1,$2
add $1,$3
add $3,$2
add $2,$1
add $3,1
lpe
mov $0,$3
add $0,1
| 25.421053 | 233 | 0.687371 |
6adeb7c2cc7d5860a622a4c2427b7aab731886fb | 7,198 | asm | Assembly | source/features/graphics.asm | shoaib-jamal/MichalOS | beb0ed824ae7c2eef63c5a1659b576332e732cda | [
"BSD-3-Clause"
] | 14 | 2021-04-23T15:31:04.000Z | 2022-03-16T01:18:22.000Z | source/features/graphics.asm | shoaib-jamal/MichalOS | beb0ed824ae7c2eef63c5a1659b576332e732cda | [
"BSD-3-Clause"
] | 4 | 2021-03-30T15:51:42.000Z | 2021-12-31T22:55:22.000Z | source/features/graphics.asm | shoaib-jamal/MichalOS | beb0ed824ae7c2eef63c5a1659b576332e732cda | [
"BSD-3-Clause"
] | 3 | 2021-03-30T13:47:02.000Z | 2021-11-07T02:53:02.000Z | ; ==================================================================
; MichalOS Graphics functions
; ==================================================================
; Puts a pixel on the screen.
; IN: AL = Color; BH = Page; CX = X position; DX = Y position
; OUT: nothing
os_put_pixel:
pusha
mov ah, 0Ch
int 10h
popa
ret
; Gets a pixel from the screen.
; IN: BH = Page; CX = X position; DX = Y position
; OUT: AL = Color
os_get_pixel:
pusha
mov ah, 0Dh
int 10h
mov [.tmp_byte], al
popa
mov al, [.tmp_byte]
ret
.tmp_byte db 0
; ==================================================================
; TachyonOS -- The TachyonOS Operating System kernel
; Copyright (C) 2013 TachyonOS Developers -- see doc/LICENCE.TXT
;
; GRAPHICS ROUTINES
; ==================================================================
os_set_pixel:
pusha
mov dx, cx
mov cx, ax
mov al, bl
mov bh, 0
call os_put_pixel
popa
ret
; Implementation of Bresenham's line algorithm. Translated from an implementation in C (http://www.edepot.com/linebresenham.html)
; IN: CX=X1, DX=Y1, SI=X2, DI=Y2, BL=colour
; OUT: None, registers preserved
os_draw_line:
pusha ; Save parameters
xor ax, ax ; Clear variables
mov di, .x1
mov cx, 11
rep stosw
popa ; Restore and save parameters
pusha
mov [.x1], cx ; Save points
mov [.x], cx
mov [.y1], dx
mov [.y], dx
mov [.x2], si
mov [.y2], di
mov [.colour], bl ; Save the colour
mov bx, [.x2]
mov ax, [.x1]
cmp bx, ax
jl .x1gtx2
sub bx, ax
mov [.dx], bx
mov ax, 1
mov [.incx], ax
jmp .test2
.x1gtx2:
sub ax, bx
mov [.dx], ax
mov ax, -1
mov [.incx], ax
.test2:
mov bx, [.y2]
mov ax, [.y1]
cmp bx, ax
jl .y1gty2
sub bx, ax
mov [.dy], bx
mov ax, 1
mov [.incy], ax
jmp .test3
.y1gty2:
sub ax, bx
mov [.dy], ax
mov ax, -1
mov [.incy], ax
.test3:
mov bx, [.dx]
mov ax, [.dy]
cmp bx, ax
jl .dygtdx
mov ax, [.dy]
shl ax, 1
mov [.dy], ax
mov bx, [.dx]
sub ax, bx
mov [.balance], ax
shl bx, 1
mov [.dx], bx
.xloop:
mov ax, [.x]
mov bx, [.x2]
cmp ax, bx
je .done
mov ax, [.x]
mov cx, [.y]
mov bl, [.colour]
call os_set_pixel
xor si, si
mov di, [.balance]
cmp di, si
jl .xloop1
mov ax, [.y]
mov bx, [.incy]
add ax, bx
mov [.y], ax
mov ax, [.balance]
mov bx, [.dx]
sub ax, bx
mov [.balance], ax
.xloop1:
mov ax, [.balance]
mov bx, [.dy]
add ax, bx
mov [.balance], ax
mov ax, [.x]
mov bx, [.incx]
add ax, bx
mov [.x], ax
jmp .xloop
.dygtdx:
mov ax, [.dx]
shl ax, 1
mov [.dx], ax
mov bx, [.dy]
sub ax, bx
mov [.balance], ax
shl bx, 1
mov [.dy], bx
.yloop:
mov ax, [.y]
mov bx, [.y2]
cmp ax, bx
je .done
mov ax, [.x]
mov cx, [.y]
mov bl, [.colour]
call os_set_pixel
xor si, si
mov di, [.balance]
cmp di, si
jl .yloop1
mov ax, [.x]
mov bx, [.incx]
add ax, bx
mov [.x], ax
mov ax, [.balance]
mov bx, [.dy]
sub ax, bx
mov [.balance], ax
.yloop1:
mov ax, [.balance]
mov bx, [.dx]
add ax, bx
mov [.balance], ax
mov ax, [.y]
mov bx, [.incy]
add ax, bx
mov [.y], ax
jmp .yloop
.done:
mov ax, [.x]
mov cx, [.y]
mov bl, [.colour]
call os_set_pixel
popa
ret
.x1 dw 0
.y1 dw 0
.x2 dw 0
.y2 dw 0
.x dw 0
.y dw 0
.dx dw 0
.dy dw 0
.incx dw 0
.incy dw 0
.balance dw 0
.colour db 0
.pad db 0
; Draw (straight) rectangle
; IN: CX=X1, DX=Y1, SI=X2, DI=Y2, BL=colour, CF = set if filled or clear if not
; OUT: None, registers preserved
os_draw_rectangle:
pusha
pushf
mov word [.x1], cx
mov word [.y1], dx
mov word [.x2], si
mov word [.y2], di
popf
jnc .draw_line
jmp .fill_shape
.draw_line:
; top line
mov cx, [.x1]
mov dx, [.y1]
mov si, [.x2]
mov di, [.y1]
call os_draw_line
; left line
mov cx, [.x1]
mov dx, [.y1]
mov si, [.x1]
mov di, [.y2]
call os_draw_line
; right line
mov cx, [.x2]
mov dx, [.y1]
mov si, [.x2]
mov di, [.y2]
call os_draw_line
; bottom line
mov cx, [.x1]
mov dx, [.y2]
mov si, [.x2]
mov di, [.y2]
call os_draw_line
jmp .finished_fill
.fill_shape:
mov al, bl
cmp cx, si ; Is X1 smaller than X2?
jl .x_good
xchg cx, si ; If not, exchange them
.x_good:
cmp dx, di ; Is Y1 smaller than Y2?
jl .y_good
xchg dx, di ; If not, exchange them
.y_good:
mov [.x1], cx
mov bh, 0
.x_loop:
call os_put_pixel
inc cx
cmp cx, si
jl .x_loop
inc dx
mov cx, [.x1]
cmp dx, di
jl .x_loop
.finished_fill:
popa
ret
.x1 dw 0
.x2 dw 0
.y1 dw 0
.y2 dw 0
; Draw freeform shape
; IN: BH = number of points, BL = colour, SI = location of shape points data
; OUT: None, registers preserved
; DATA FORMAT: x1, y1, x2, y2, x3, y3, etc
os_draw_polygon:
pusha
dec bh
mov byte [.points], bh
mov word ax, [fs:si]
add si, 2
mov word [.xi], ax
mov word [.xl], ax
mov word ax, [fs:si]
add si, 2
mov word [.yi], ax
mov word [.yl], ax
.draw_points:
mov cx, [.xl]
mov dx, [.yl]
mov word ax, [fs:si]
add si, 2
mov word [.xl], ax
mov word ax, [fs:si]
add si, 2
mov word [.yl], ax
push si
mov si, [.xl]
mov di, [.yl]
call os_draw_line
pop si
dec byte [.points]
cmp byte [.points], 0
jne .draw_points
mov cx, [.xl]
mov dx, [.yl]
mov si, [.xi]
mov di, [.yi]
call os_draw_line
popa
ret
.xi dw 0
.yi dw 0
.xl dw 0
.yl dw 0
.points db 0
; Clear the screen by setting all pixels to a single colour
; BL = colour to set
os_clear_graphics:
pusha
push es
mov ax, 0xA000
mov es, ax
mov al, bl
mov di, 0
mov cx, 64000
rep stosb
pop es
popa
ret
; ----------------------------------------
; os_draw_circle -- draw a circular shape
; IN: AL = colour, BX = radius, CX = middle X, DX = middle y
os_draw_circle:
pusha
mov [.colour], al
mov [.radius], bx
mov [.x0], cx
mov [.y0], dx
mov [.x], bx
mov word [.y], 0
mov ax, 1
shl bx, 1
sub ax, bx
mov [.xChange], ax
mov word [.yChange], 0
mov word [.radiusError], 0
.next_point:
mov cx, [.x]
mov dx, [.y]
cmp cx, dx
jl .finish
;ax bx - function points
;cx = x
;dx = y
;si = -x
;di = -y
mov si, cx
xor si, 0xFFFF
inc si
mov di, dx
xor di, 0xFFFF
inc di
; (x + x0, y + y0)
mov ax, cx
mov bx, dx
call .draw_point
; (y + x0, x + y0)
xchg ax, bx
call .draw_point
; (-x + x0, y + y0)
mov ax, si
mov bx, dx
call .draw_point
; (-y + x0, x + y0)
mov ax, di
mov bx, cx
call .draw_point
; (-x + x0, -y + y0)
mov ax, si
mov bx, di
call .draw_point
; (-y + x0, -x + y0)
xchg ax, bx
call .draw_point
; (x + x0, -y + y0)
mov ax, cx
mov bx, di
call .draw_point
; (y + x0, -x + y0)
mov ax, dx
mov bx, si
call .draw_point
inc word [.y]
mov ax, [.yChange]
add [.radiusError], ax
add word [.yChange], 2
mov ax, [.radiusError]
shl ax, 1
add ax, [.xChange]
cmp ax, 0
jle .next_point
dec word [.x]
mov ax, [.xChange]
add [.radiusError], ax
add word [.xChange], 2
jmp .next_point
.draw_point:
; AX = X, BX = Y
pusha
add ax, [.x0]
add bx, [.y0]
mov cx, bx
mov bl, [.colour]
call os_set_pixel
popa
ret
.finish:
popa
ret
.colour db 0
.x0 dw 0
.y0 dw 0
.radius dw 0
.x dw 0
.y dw 0
.xChange dw 0
.yChange dw 0
.radiusError dw 0
| 13.815739 | 129 | 0.557099 |
f7cd1490b8c3fa62553bb174d7f5d65fcb055fec | 502 | asm | Assembly | programs/oeis/198/A198759.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/198/A198759.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/198/A198759.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A198759: The number of pairs of braces to note the properly nested set with n elements.
; 1,2,4,7,11,15,20,25,30,36,42,48,54,60,66,73,80,87,94,101,108,115,122,129,136,143,150,158,166,174,182,190,198,206,214,222,230,238,246,254,262,270,278,286,294,302,310,318,326,334,342
mov $4,$0
add $4,1
mov $5,$0
lpb $4,1
mov $0,$5
sub $4,1
sub $0,$4
trn $0,1
add $0,1
add $0,$3
sub $0,$3
mov $2,2
mov $3,1
lpb $0,1
add $2,1
div $0,$2
add $3,2
add $0,$3
lpe
add $1,$0
lpe
| 20.08 | 182 | 0.599602 |
f2fdbf25d13b54fd7aa33befc85ea272fdea15b5 | 479 | asm | Assembly | oeis/315/A315655.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/315/A315655.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/315/A315655.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A315655: Coordination sequence Gal.6.644.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Jamie Morken(s3)
; 1,6,12,16,22,28,34,40,46,50,56,62,68,74,78,84,90,96,102,108,112,118,124,130,136,140,146,152,158,164,170,174,180,186,192,198,202,208,214,220,226,232,236,242,248,254,260,264,270,276
mov $1,$0
mul $0,9
add $0,5
div $0,11
mul $1,53
sub $1,6
div $1,11
add $1,1
add $0,$1
| 34.214286 | 181 | 0.713987 |
90215d030c111b6803977678d1eaae61324426a9 | 6,949 | asm | Assembly | global_ow_code/ow_main.asm | Atari2/WhiteSnake | a69b56bbf4389b25b193b1fa8813ac8c5d393677 | [
"MIT"
] | null | null | null | global_ow_code/ow_main.asm | Atari2/WhiteSnake | a69b56bbf4389b25b193b1fa8813ac8c5d393677 | [
"MIT"
] | 1 | 2020-06-27T09:12:40.000Z | 2020-07-03T23:21:26.000Z | global_ow_code/ow_main.asm | Atari2/WhiteSnake | a69b56bbf4389b25b193b1fa8813ac8c5d393677 | [
"MIT"
] | null | null | null | incsrc "defines.asm"
org read3($0EF55D)
map_offsets:
org $00A165
JML ow_sprite_load_gm
org $04DBA3
JMP.w ow_sprite_load_sm
org $009AA4
BRA $02 : NOP #2
org $04F675
padbyte $EA : pad $04F6F8
org $04F675|!BankB
autoclean dl ow_sprite_init_ptrs
autoclean dl spawn_sprite
ow_sprite_load_main:
if !SA1
LDA.b #.main
STA $3180
LDA.b #.main>>8
STA $3181
LDA.b #.main>>16
STA $3182
JSR $1E80
RTS
endif
.main
PHB
LDA.l $0EF55E
BEQ .end_spawning
LDX $0DB3|!addr
LDA $1F11|!addr,x
ASL : TAX
REP #$21
LDA.w #map_offsets
ADC.l map_offsets,x
STA $6B
LDY.b #map_offsets>>16
STY $6D
LDY #$00
.sprite_load_loop
LDA [$6B], y
BEQ .end_spawning
AND #$007F
STA $00
LDA [$6B],y
AND #$1F80
XBA : ROL
ASL #3
STA $02
INY
LDA [$6B],y
AND #$07E0
LSR #2
STA $04
LDA [$6B],y
AND #$F800
XBA
STA $06
INY
LDA [$6B],y
STA $08
JSL spawn_sprite
BCC .end_spawning
INY
BRA .sprite_load_loop
.end_spawning
SEP #$20
PLB
if !SA1
RTL
else
RTS
endif
warnpc $04F6F8|!BankB
org $04F76E|!BankB
run_ow_sprite:
PHB
REP #$21
LDA #!oam_start
STA !ow_sprite_oam
LDA #!oam_start_p
STA !ow_sprite_oam_p
LDX.b #!OwSprSize*2-2
- LDA !ow_sprite_num,x
BEQ .no_sprite
LDA !ow_sprite_init,x
BNE +
JSR execute_ow_sprite_init
INC !ow_sprite_init,x
BRA .no_sprite
+
JSR execute_ow_sprite
.no_sprite
DEX #2
BPL -
SEP #$20
PLB
return:
RTS
execute_ow_sprite:
STX !ow_sprite_index
LDA !ow_sprite_timer_1,x ; \
BEQ + ; |
DEC !ow_sprite_timer_1,x ; |
+ ; |
LDA !ow_sprite_timer_2,x ; | Decrease Timers (unless already zero)
BEQ + ; |
DEC !ow_sprite_timer_2,x ; |
+ ; |
LDA !ow_sprite_timer_3,x ; |
BEQ + ; |
DEC !ow_sprite_timer_3,x ; |
+ ; /
LDA !ow_sprite_num,x ; \
ASL ; | Sprite number times 3 in x
ADC !ow_sprite_num,x ; |
TXY ; |
TAX ; /
LDA.l ow_sprite_main_ptrs-3,x ; \
STA $00 ; | Get sprite main pointer in $00
SEP #$20 ; | sprite number 00 is <end> so the table...
LDA.l ow_sprite_main_ptrs-1,x ; | ... is actually 1 indexed (hence those subtractions)
STA $02 ; /
PHA ; \
PLB ; | Setup bank (value still in A)
REP #$20 ; | A in 16 bit
TYX ; / Restore X with sprite index.
PHK ; \
PEA.w return-1 ; | workaround for JSL [$0000]
JML.w [!Base1] ; /
execute_ow_sprite_init:
STX !ow_sprite_index
LDA !ow_sprite_num,x ; \
ASL ; | Sprite number times 3 in x
ADC !ow_sprite_num,x ; |
TXY ; |
TAX ; /
LDA.l ow_sprite_init_ptrs-3,x ; \
STA $00 ; | Get sprite init pointer in $00
SEP #$20 ; | sprite number 00 is <end> so the table...
LDA.l ow_sprite_init_ptrs-1,x ; | ... is actually 1 indexed (hence those subtractions)
STA $02 ; /
PHA ; \
PLB ; | Setup bank (value still in A)
REP #$20 ; | A in 16 bit
TYX ; / Restore X with sprite index.
PHK ; \
PEA.w return-1 ; | workaround for JSL [$0000]
JML.w [!Base1] ; /
math pri off
clear_ram:
REP #$30
LDX.w #!OwSprSize*2*21+4
- STZ !ow_sprite_num,x
DEX #2
BPL -
SEP #$30
RTS
;---
ow_sprite_load:
.gm
JSR ow_sprite_load_main
JSL $04D6E9|!BankB
JML $00A169|!BankB
.sm
PHX
JSR clear_ram
JSR ow_sprite_load_main
PLX
LDA $1F11|!Base2,x
JMP $DBA6
warnpc $04F928|!BankB ; This warnpc can be moved MUCH further. I just put it here since I'm too lazy to count where.
; And besides, it's more than enough space.
freedata
print pc
ow_sprite_init_ptrs:
incbin "global_ow_code/_OverworldInitPtr.bin"
print pc
ow_sprite_main_ptrs:
incbin "global_ow_code/_OverworldMainPtr.bin"
freecode
spawn_sprite:
LDX.b #!OwSprSize*2-2
-
LDA !ow_sprite_num,x ;
BEQ .found_slot ; If zero then the slot is unused, so jump to found_slot subroutine.
DEX #2 ; Decrease Y by 2 for next loop
BPL - ; If we're not past Y=0 yet, keep going.
CLC ; Clear Carry since we couldn't find a slot
RTL ;
.found_slot
LDA $00 ; \
STA !ow_sprite_num,x ; |
LDA $02 ; |
STA !ow_sprite_x_pos,x ; |
LDA $04 ; | Move data from $00-$08 to their respective addresses.
STA !ow_sprite_y_pos,x ; |
LDA $06 ; |
STA !ow_sprite_z_pos,x ; |
LDA $08 ; |
AND #$00FF ; |
STA !ow_sprite_extra_bits,x ; /
STZ !ow_sprite_speed_x,x ; \
STZ !ow_sprite_speed_x_acc,x ; |
STZ !ow_sprite_speed_y,x ; |
STZ !ow_sprite_speed_y_acc,x ; |
STZ !ow_sprite_speed_z,x ; |
STZ !ow_sprite_speed_z_acc,x ; |
STZ !ow_sprite_timer_1,x ; | Clear other tables
STZ !ow_sprite_timer_2,x ; |
STZ !ow_sprite_timer_3,x ; |
STZ !ow_sprite_misc_1,x ; |
STZ !ow_sprite_misc_2,x ; |
STZ !ow_sprite_misc_3,x ; |
STZ !ow_sprite_misc_4,x ; |
STZ !ow_sprite_misc_5,x ; /
SEC ; Set Carry to indicate we found a slot
RTL
pushpc ; Move these OAM mirrors somewhere else; fixes the overworld border sometimes breaking
org $0485F5 ; Too lazy to fix the OAM routine itself :shrug:
STA $0210|!Base2,x
org $0485FF
STA $0211|!Base2,x
org $048604
STA $0212|!Base2,x
org $048609
STA $0213|!Base2,x
org $048610
STA $0424|!Base2,x
org $04EC3A
STA $0200|!Base2,y
org $04EC43
STA $0201|!Base2,y
org $04EC48
STA $0202|!Base2,y
org $04EC4E
STA $0203|!Base2,y
org $04EC5A
STZ $0420|!Base2
STZ $0421|!Base2
STZ $0422|!Base2
STZ $0423|!Base2
pullpc | 24.044983 | 126 | 0.493884 |
b17aa8cfbe699d22ab0c07f0a64fe1d7f5a1fe74 | 521 | asm | Assembly | Assembly/NMI_hook.asm | CaitSith2/Enemizer | 53be2143063c5ca03216f76821ebbbce67313e34 | [
"WTFPL"
] | 2 | 2020-06-21T14:38:23.000Z | 2021-02-03T00:43:49.000Z | Assembly/NMI_hook.asm | CaitSith2/Enemizer | 53be2143063c5ca03216f76821ebbbce67313e34 | [
"WTFPL"
] | 5 | 2020-07-16T22:12:30.000Z | 2020-08-31T22:11:54.000Z | Assembly/NMI_hook.asm | CaitSith2/Enemizer | 53be2143063c5ca03216f76821ebbbce67313e34 | [
"WTFPL"
] | 2 | 2020-07-16T22:34:11.000Z | 2020-11-18T19:39:50.000Z | ;================================================================================
; NMI Hook
;--------------------------------------------------------------------------------
; rando already hooks the Bank00.asm : 164 (PHA : PHX : PHY : PHD : PHB) so we have to hook after that
org $0080D0 ; <- D0 - Bank00.asm : 164-167 (PHB, LDA.w #$0000)
JML.l NMIHookAction
org $0080D5 ; <- D5 - Bank00.asm : 164-167 (PHB, LDA.w #$0000)
NMIHookReturn:
;--------------------------------------------------------------------------------
| 52.1 | 102 | 0.347409 |
e8bdec26237d690b585bc72cef9f0f5c55a36d3a | 6,642 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_611.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_611.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_611.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 %r14
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x3c2c, %r14
nop
nop
nop
nop
sub $53548, %r9
vmovups (%r14), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r15
nop
nop
nop
nop
sub $21243, %rbx
lea addresses_normal_ht+0x11e1c, %r10
nop
xor %rax, %rax
vmovups (%r10), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %r14
nop
nop
sub $43294, %r9
lea addresses_UC_ht+0x1db7c, %r14
nop
nop
nop
nop
nop
inc %r12
movw $0x6162, (%r14)
nop
nop
add $21793, %rbx
lea addresses_UC_ht+0x1a40c, %rsi
lea addresses_normal_ht+0x38cc, %rdi
and $57161, %r12
mov $0, %rcx
rep movsb
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x1d4c, %r12
clflush (%r12)
nop
nop
nop
xor $36846, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%r12)
and %r15, %r15
lea addresses_WC_ht+0x454c, %rsi
add $20004, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
vmovups %ymm1, (%rsi)
nop
nop
nop
add %r12, %r12
lea addresses_A_ht+0x1aa4c, %r9
nop
nop
nop
nop
nop
inc %rcx
movl $0x61626364, (%r9)
nop
nop
nop
nop
nop
inc %r14
lea addresses_A_ht+0x1ed4c, %rcx
nop
add $56278, %r14
mov (%rcx), %eax
nop
nop
nop
nop
add $42614, %r14
lea addresses_UC_ht+0x1074c, %rax
nop
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
and $0xffffffffffffffc0, %rax
vmovntdq %ymm6, (%rax)
nop
nop
dec %rbx
lea addresses_D_ht+0x16a4c, %rsi
lea addresses_D_ht+0x16060, %rdi
sub $37189, %r12
mov $51, %rcx
rep movsb
nop
nop
nop
nop
dec %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %rax
push %rbp
push %rbx
push %rcx
// Faulty Load
lea addresses_A+0x1854c, %rbx
nop
nop
nop
nop
nop
and $64140, %rbp
movups (%rbx), %xmm1
vpextrq $0, %xmm1, %rcx
lea oracles, %r15
and $0xff, %rcx
shlq $12, %rcx
mov (%r15,%rcx,1), %rcx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 36.097826 | 2,999 | 0.660945 |
7685d52f6ef8665cbb6f4258a70a04daf9159799 | 6,940 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_316.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_316.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_316.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 %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1ae58, %rdx
nop
nop
nop
xor %rcx, %rcx
movb (%rdx), %r9b
nop
nop
nop
nop
dec %r8
lea addresses_A_ht+0x4c58, %r9
and %rcx, %rcx
mov (%r9), %si
nop
nop
nop
nop
nop
sub $7936, %r8
lea addresses_WC_ht+0xf908, %rsi
lea addresses_D_ht+0xa128, %rdi
nop
nop
nop
dec %r8
mov $12, %rcx
rep movsl
nop
nop
nop
nop
xor $58481, %rcx
lea addresses_WC_ht+0xe858, %rsi
nop
nop
nop
nop
and %r9, %r9
movl $0x61626364, (%rsi)
sub %r8, %r8
lea addresses_D_ht+0x7b58, %rsi
lea addresses_WT_ht+0x11b74, %rdi
nop
nop
cmp %rax, %rax
mov $7, %rcx
rep movsb
nop
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0x140e8, %rsi
lea addresses_WT_ht+0x16458, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %r12
mov $57, %rcx
rep movsl
nop
nop
nop
nop
xor %r8, %r8
lea addresses_WT_ht+0x1e298, %rsi
sub %r12, %r12
mov $0x6162636465666768, %r8
movq %r8, %xmm1
vmovups %ymm1, (%rsi)
add $16071, %r8
lea addresses_UC_ht+0x10858, %rcx
clflush (%rcx)
sub $36784, %r12
movups (%rcx), %xmm3
vpextrq $0, %xmm3, %rax
nop
nop
and %r8, %r8
lea addresses_D_ht+0x8a48, %rax
nop
nop
nop
nop
nop
add $4614, %r8
mov (%rax), %dx
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0x1cfc8, %rax
cmp $27500, %r12
movw $0x6162, (%rax)
nop
nop
nop
nop
nop
inc %rdi
lea addresses_A_ht+0x14c58, %rdx
nop
nop
cmp %rsi, %rsi
and $0xffffffffffffffc0, %rdx
movaps (%rdx), %xmm5
vpextrq $0, %xmm5, %r12
nop
nop
nop
cmp $53127, %rdi
lea addresses_A_ht+0xcbd8, %rsi
lea addresses_WC_ht+0x5cd8, %rdi
nop
nop
nop
nop
cmp $50014, %r8
mov $111, %rcx
rep movsw
nop
nop
nop
nop
sub %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rdi
push %rsi
// Faulty Load
lea addresses_UC+0x18458, %rsi
nop
nop
nop
nop
nop
and %r12, %r12
mov (%rsi), %r8d
lea oracles, %r12
and $0xff, %r8
shlq $12, %r8
mov (%r12,%r8,1), %r8
pop %rsi
pop %rdi
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_A_ht'}, 'dst': {'same': True, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'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
*/
| 35.228426 | 2,999 | 0.655908 |
e8b56bae7b00456078b90da01eb157b5f9795630 | 86 | asm | Assembly | gfx/pokemon/egg/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/egg/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/egg/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | setrepeat 2
frame 1, 04
frame 0, 04
frame 2, 04
frame 0, 04
dorepeat 1
endanim
| 10.75 | 12 | 0.674419 |
4a1599e94681a12e8d5bc2ace9dcd9df851be588 | 780 | asm | Assembly | programs/oeis/155/A155658.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/155/A155658.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/155/A155658.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A155658: a(n) = 11^n + 7^n - 1.
; 1,17,169,1673,17041,177857,1889209,20310713,220123681,2398301297,26219899849,287288997353,3152269663921,34619601154337,380428056656089,4181995730925593,45982962794141761,505679659013280977,5561545727090141929,61170489343599919433,672829787198857621201,7400808490122243385217,81406659207888344101369,895457612002577453162873,9849924257038991661126241,108348400502503386006731057,1191827041253058590214438409,13110059903862293901341599913,144210396093035778777637040881,1586312517077247387594163542497,17449424808226698010816891617049,191943582733132515349953456334553,2111378778962929529466261559509121,23225162150881527848446291933403537,255476752735721927503131114719061289
mov $1,7
pow $1,$0
mov $2,11
pow $2,$0
add $1,$2
mov $0,$1
sub $0,1
| 70.909091 | 676 | 0.885897 |
16601f41c0707fe692040eb9906918c8d96c17a9 | 12,371 | asm | Assembly | P6/data_P6_2/ALUTest131.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/ALUTest131.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest131.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | addiu $4,$5,-6452
addu $1,$5,$3
sllv $1,$3,$3
addu $1,$2,$3
slt $4,$3,$3
lw $6,0($0)
addu $3,$1,$3
srl $3,$2,22
or $3,$3,$3
lhu $1,10($0)
xor $1,$1,$3
or $3,$5,$3
slt $3,$4,$3
sllv $0,$4,$3
slt $3,$3,$3
slti $5,$0,-31984
sb $1,5($0)
sltu $4,$4,$3
lb $6,5($0)
sltu $3,$3,$3
slt $4,$3,$3
addu $1,$1,$3
sll $6,$6,15
sb $4,2($0)
and $3,$3,$3
and $6,$6,$3
lbu $1,8($0)
subu $0,$0,$3
sh $3,16($0)
sh $3,6($0)
lhu $6,4($0)
sltu $4,$4,$3
sw $3,12($0)
addiu $4,$4,-18455
addiu $5,$3,28039
addiu $1,$5,-14260
addiu $3,$1,22617
srav $3,$2,$3
sllv $3,$3,$3
sltiu $6,$3,12114
sh $1,8($0)
srlv $5,$4,$3
lh $1,16($0)
sltu $6,$3,$3
sll $5,$5,17
xor $1,$3,$3
lw $3,0($0)
addiu $3,$3,-24086
addiu $6,$4,-24421
or $0,$3,$3
sh $3,16($0)
subu $3,$3,$3
sll $4,$5,11
lh $4,4($0)
xori $6,$6,41872
srl $5,$3,20
xor $3,$3,$3
srl $4,$3,27
sllv $4,$3,$3
sb $1,5($0)
andi $3,$2,19871
and $1,$1,$3
sh $6,6($0)
sb $0,4($0)
addu $3,$3,$3
nor $3,$4,$3
lw $4,8($0)
srav $4,$3,$3
andi $3,$1,50645
sllv $4,$5,$3
sltu $6,$4,$3
sw $0,16($0)
slt $3,$3,$3
addu $3,$3,$3
nor $1,$3,$3
slt $3,$4,$3
subu $3,$1,$3
slti $6,$6,26049
slt $1,$5,$3
sltu $5,$1,$3
ori $3,$5,13316
sra $3,$0,16
or $3,$3,$3
sltu $6,$6,$3
xor $3,$4,$3
sll $4,$3,2
nor $1,$4,$3
addiu $3,$3,22911
addiu $3,$3,29794
lbu $6,8($0)
addu $6,$3,$3
srlv $1,$5,$3
xor $4,$3,$3
srav $4,$3,$3
lb $1,14($0)
or $3,$5,$3
or $3,$6,$3
addu $5,$5,$3
sllv $1,$1,$3
subu $3,$2,$3
sltiu $5,$3,4037
lb $4,10($0)
lbu $3,5($0)
sll $0,$3,17
nor $3,$3,$3
sra $4,$3,17
sllv $3,$1,$3
sw $4,0($0)
lh $5,0($0)
and $0,$5,$3
lb $5,16($0)
sltu $3,$6,$3
ori $1,$1,15482
sra $3,$3,4
slt $6,$5,$3
sltu $1,$3,$3
nor $4,$1,$3
addu $3,$1,$3
sltiu $3,$3,9601
xori $4,$5,52440
xor $2,$2,$3
sb $4,9($0)
andi $4,$3,39415
lh $3,10($0)
andi $4,$4,54899
nor $1,$1,$3
lb $4,11($0)
lh $3,14($0)
addiu $0,$4,-30509
lhu $0,0($0)
xori $3,$3,21053
xori $1,$1,4015
addiu $4,$1,3158
srl $1,$3,15
lhu $4,0($0)
and $4,$4,$3
sw $0,12($0)
sltu $6,$3,$3
sltiu $4,$4,24180
addu $1,$3,$3
andi $5,$3,37851
sw $0,8($0)
lb $1,3($0)
srl $4,$3,9
xor $5,$3,$3
and $3,$4,$3
lb $4,14($0)
slt $6,$2,$3
lhu $3,12($0)
xori $6,$5,52309
sllv $6,$6,$3
sw $6,0($0)
sw $4,8($0)
srl $4,$4,24
addu $3,$3,$3
addu $1,$3,$3
nor $3,$1,$3
srav $3,$0,$3
slt $6,$4,$3
addu $0,$4,$3
subu $3,$5,$3
slt $3,$4,$3
lb $1,0($0)
lb $0,5($0)
or $6,$4,$3
sh $5,12($0)
sltu $5,$1,$3
sw $0,12($0)
sra $4,$4,1
sb $0,3($0)
or $1,$4,$3
nor $6,$4,$3
xor $4,$3,$3
sll $1,$1,25
slti $6,$3,16603
subu $4,$4,$3
lb $3,16($0)
sw $4,16($0)
srav $4,$5,$3
subu $3,$3,$3
or $3,$3,$3
sll $3,$3,24
srlv $5,$3,$3
sh $3,8($0)
sltu $3,$3,$3
lhu $3,10($0)
lw $4,0($0)
ori $3,$3,30688
sltiu $3,$6,-14537
sw $3,4($0)
andi $5,$5,65273
lh $5,0($0)
and $3,$3,$3
xori $1,$1,54544
lw $5,12($0)
subu $5,$6,$3
slt $3,$0,$3
subu $4,$3,$3
subu $6,$6,$3
lb $0,8($0)
slt $1,$0,$3
sh $5,2($0)
addiu $6,$4,-26308
addu $5,$5,$3
sllv $3,$4,$3
sll $5,$5,13
andi $3,$3,26919
srav $0,$4,$3
ori $5,$3,45813
lw $4,0($0)
addu $6,$4,$3
slt $6,$4,$3
slti $3,$6,-29379
addu $5,$5,$3
nor $0,$1,$3
sll $4,$1,19
andi $4,$4,15218
slti $0,$0,30467
lbu $3,8($0)
xori $3,$5,18622
srl $0,$1,13
subu $3,$6,$3
subu $1,$4,$3
sw $3,12($0)
srl $3,$3,5
andi $3,$3,25434
lh $5,4($0)
sb $1,13($0)
xori $1,$1,4725
sw $0,16($0)
addiu $3,$4,-4210
lh $4,10($0)
srlv $4,$3,$3
sh $1,4($0)
andi $3,$0,16032
or $3,$1,$3
lb $3,11($0)
addu $3,$5,$3
sltu $1,$1,$3
ori $3,$4,5467
sltu $0,$3,$3
sllv $3,$1,$3
nor $3,$4,$3
lw $3,16($0)
addiu $3,$4,31522
addu $3,$4,$3
srlv $4,$4,$3
lb $4,13($0)
addu $6,$4,$3
srl $6,$3,29
sllv $1,$5,$3
or $4,$0,$3
sltu $6,$5,$3
or $3,$3,$3
subu $4,$5,$3
slt $3,$0,$3
lbu $6,3($0)
sb $1,6($0)
slti $4,$4,18634
srlv $5,$5,$3
lhu $3,8($0)
subu $3,$3,$3
lbu $3,6($0)
or $3,$3,$3
srlv $3,$3,$3
sw $3,8($0)
subu $1,$1,$3
addu $3,$5,$3
sb $5,2($0)
subu $3,$4,$3
addu $3,$5,$3
sw $1,12($0)
sh $3,12($0)
subu $5,$5,$3
nor $4,$1,$3
srl $5,$1,5
subu $5,$3,$3
xor $3,$4,$3
lb $3,8($0)
addiu $4,$4,12532
sltu $6,$3,$3
sltiu $3,$4,-8501
sltu $3,$1,$3
and $3,$3,$3
lb $4,10($0)
sltu $3,$1,$3
sw $4,8($0)
sh $6,6($0)
ori $0,$0,42106
lw $3,0($0)
lw $5,16($0)
lhu $3,2($0)
srlv $3,$1,$3
slti $3,$4,-7166
srav $5,$0,$3
subu $3,$5,$3
nor $3,$4,$3
subu $3,$3,$3
srav $3,$2,$3
sltu $1,$5,$3
sltu $1,$4,$3
xori $3,$3,16380
nor $1,$1,$3
subu $3,$3,$3
addiu $5,$6,-22260
sh $4,2($0)
andi $0,$0,3159
sh $1,10($0)
lb $3,14($0)
xor $4,$4,$3
addiu $4,$4,23291
ori $4,$4,27161
sh $0,16($0)
sw $5,16($0)
srav $5,$3,$3
sh $4,4($0)
xori $1,$4,55134
or $5,$5,$3
sll $6,$6,24
addiu $3,$0,11179
ori $4,$6,62938
srav $0,$1,$3
sltu $3,$2,$3
sllv $5,$3,$3
addiu $5,$5,28913
sltiu $3,$5,-14574
ori $4,$1,31379
xor $5,$1,$3
srlv $6,$4,$3
addu $4,$5,$3
sll $5,$5,25
lhu $5,2($0)
srl $4,$4,29
lhu $4,10($0)
addiu $4,$4,23600
addu $0,$3,$3
addu $4,$4,$3
slt $4,$4,$3
sltiu $5,$1,-12649
ori $1,$1,3033
addu $5,$0,$3
srlv $3,$4,$3
addu $6,$6,$3
srlv $3,$4,$3
lhu $3,6($0)
sw $4,0($0)
sb $0,2($0)
lh $4,14($0)
lb $5,9($0)
sll $1,$1,6
sh $6,12($0)
or $6,$3,$3
subu $3,$5,$3
and $4,$1,$3
or $3,$3,$3
xor $0,$0,$3
sb $1,0($0)
sll $4,$4,28
sw $4,8($0)
sll $0,$5,18
subu $5,$4,$3
sltu $4,$2,$3
xor $3,$3,$3
sllv $2,$2,$3
sw $5,16($0)
sltu $4,$5,$3
sll $3,$2,3
addu $4,$1,$3
sll $4,$3,2
andi $3,$3,30295
subu $5,$3,$3
addiu $1,$3,2874
subu $5,$5,$3
addu $0,$6,$3
sll $3,$3,15
subu $3,$3,$3
and $5,$3,$3
srl $4,$3,28
sllv $3,$3,$3
xor $1,$4,$3
sh $1,4($0)
addu $1,$1,$3
addiu $6,$3,-8621
lb $4,11($0)
sll $1,$4,10
srl $6,$1,30
addu $3,$5,$3
andi $3,$5,48922
srlv $5,$4,$3
lh $1,0($0)
slt $0,$1,$3
slti $1,$4,16541
addu $1,$5,$3
sb $4,12($0)
srlv $4,$1,$3
sb $3,15($0)
xori $4,$1,61324
addiu $5,$1,-10185
sh $3,0($0)
sh $3,4($0)
lb $3,8($0)
slt $5,$5,$3
lh $3,12($0)
lbu $5,4($0)
lb $4,14($0)
andi $6,$3,44066
lw $5,16($0)
sra $1,$4,20
or $0,$4,$3
sb $1,14($0)
slt $4,$3,$3
srav $6,$4,$3
sw $6,8($0)
xor $3,$3,$3
srlv $5,$3,$3
lw $1,12($0)
srlv $3,$4,$3
addu $3,$4,$3
srl $3,$3,30
and $1,$5,$3
ori $3,$3,43771
sb $4,10($0)
addu $3,$3,$3
addiu $3,$4,25154
srlv $6,$3,$3
sb $1,13($0)
sltiu $5,$4,-28377
lhu $3,4($0)
sw $1,16($0)
srl $3,$3,9
addiu $1,$4,-4728
sb $5,4($0)
slt $3,$3,$3
sllv $3,$0,$3
and $1,$5,$3
lb $3,4($0)
sb $5,4($0)
andi $1,$1,19596
ori $6,$3,49559
andi $1,$4,25889
slt $6,$4,$3
or $4,$4,$3
ori $5,$4,30696
addiu $0,$4,11681
sltu $1,$3,$3
slti $4,$3,-18829
ori $4,$6,54787
andi $4,$4,50693
srlv $5,$3,$3
lw $3,0($0)
lh $0,12($0)
andi $3,$6,30796
srav $3,$5,$3
lhu $3,0($0)
addiu $1,$1,-20406
sra $1,$4,14
subu $3,$5,$3
sh $5,10($0)
sltu $4,$5,$3
sllv $5,$0,$3
srlv $0,$0,$3
sh $2,6($0)
srav $1,$1,$3
sra $1,$1,1
andi $4,$6,6741
xor $4,$3,$3
and $0,$0,$3
addu $5,$5,$3
xori $3,$1,19248
andi $5,$5,51692
subu $5,$5,$3
lhu $5,6($0)
srav $6,$6,$3
slt $3,$3,$3
sw $3,4($0)
and $5,$0,$3
xori $3,$3,64374
nor $3,$5,$3
sb $3,11($0)
lw $4,16($0)
srl $6,$6,30
sra $0,$0,15
andi $4,$3,52159
addiu $6,$1,-575
srlv $6,$4,$3
sltu $0,$3,$3
addu $4,$3,$3
srlv $3,$3,$3
sllv $1,$5,$3
sll $0,$0,15
subu $4,$3,$3
and $0,$3,$3
subu $4,$2,$3
lbu $3,7($0)
sra $3,$4,8
sltiu $3,$4,29733
sllv $4,$3,$3
sb $5,3($0)
sll $3,$3,14
subu $3,$3,$3
sh $5,8($0)
addiu $4,$3,2093
lw $0,12($0)
lb $1,3($0)
sltu $6,$2,$3
sh $5,12($0)
lbu $0,1($0)
addu $3,$3,$3
srav $3,$4,$3
lhu $0,8($0)
slti $6,$1,11753
slti $3,$3,-13155
subu $5,$0,$3
sra $3,$3,8
addu $6,$4,$3
sw $5,8($0)
xori $1,$5,36275
slt $5,$3,$3
andi $3,$3,45087
lw $1,12($0)
sb $3,16($0)
andi $1,$5,55147
srlv $3,$3,$3
and $0,$3,$3
slt $3,$3,$3
xor $6,$2,$3
addu $0,$0,$3
lw $4,8($0)
lbu $5,4($0)
slti $5,$1,2036
lhu $0,16($0)
slt $5,$0,$3
srav $3,$3,$3
lb $4,6($0)
sh $3,6($0)
lbu $4,16($0)
srav $3,$5,$3
sll $1,$4,18
nor $4,$3,$3
srlv $3,$4,$3
srlv $3,$2,$3
lhu $3,8($0)
addiu $1,$1,-3583
slt $5,$6,$3
subu $1,$1,$3
nor $4,$4,$3
slti $1,$6,18885
lbu $4,14($0)
subu $1,$3,$3
slt $0,$0,$3
sw $5,0($0)
lb $1,5($0)
srav $4,$4,$3
slt $4,$4,$3
srl $3,$6,1
or $3,$4,$3
or $5,$1,$3
lw $3,12($0)
subu $1,$1,$3
subu $3,$3,$3
slti $5,$5,5251
srlv $1,$1,$3
subu $5,$5,$3
subu $1,$1,$3
or $3,$0,$3
or $4,$4,$3
lw $3,16($0)
sllv $3,$3,$3
sb $1,5($0)
slt $4,$6,$3
srav $3,$3,$3
nor $1,$4,$3
srav $3,$3,$3
addu $3,$3,$3
srlv $3,$4,$3
slti $1,$2,14473
nor $1,$3,$3
sllv $6,$4,$3
ori $4,$3,53271
sb $3,12($0)
sw $1,4($0)
sltu $5,$3,$3
sb $1,6($0)
srav $3,$4,$3
addu $5,$3,$3
sllv $4,$4,$3
sra $1,$1,6
sltu $4,$4,$3
or $4,$4,$3
sra $3,$5,17
xori $4,$4,9211
lhu $5,6($0)
sh $5,0($0)
xor $3,$3,$3
ori $1,$5,48685
addu $3,$2,$3
srl $4,$4,22
slti $5,$6,29302
or $1,$4,$3
srlv $0,$4,$3
addiu $1,$1,-10903
lw $1,4($0)
sll $4,$4,18
and $5,$3,$3
and $3,$4,$3
addiu $1,$3,-14725
addiu $3,$3,2527
sll $5,$5,18
lw $3,0($0)
sltiu $3,$3,-30129
lb $3,7($0)
lh $4,14($0)
addu $5,$0,$3
sll $5,$6,5
xori $5,$5,27576
slt $3,$3,$3
sh $3,12($0)
srl $1,$1,18
sllv $3,$3,$3
sltiu $3,$3,8525
sll $5,$1,24
addu $0,$5,$3
lh $4,10($0)
srl $3,$3,19
sltu $1,$1,$3
sra $5,$5,25
slt $3,$5,$3
ori $5,$3,43232
srav $4,$3,$3
andi $4,$4,56259
xori $6,$3,31839
lw $1,8($0)
sltu $3,$3,$3
slt $3,$4,$3
sll $5,$5,28
slt $3,$3,$3
lh $6,12($0)
and $4,$5,$3
srl $3,$5,8
and $3,$3,$3
and $1,$1,$3
sw $1,12($0)
or $3,$3,$3
sll $5,$5,26
ori $5,$2,34861
addu $0,$0,$3
lhu $5,10($0)
sltu $5,$5,$3
slt $4,$6,$3
nor $4,$3,$3
slt $5,$5,$3
sw $4,0($0)
addiu $1,$3,-10960
srlv $1,$3,$3
and $3,$3,$3
lbu $5,7($0)
and $4,$1,$3
sh $5,12($0)
lb $3,4($0)
lw $3,12($0)
addiu $1,$3,19000
sra $3,$3,18
srl $4,$4,17
lbu $0,4($0)
lbu $1,0($0)
slt $3,$3,$3
and $3,$3,$3
subu $6,$1,$3
lb $4,13($0)
sh $5,16($0)
xor $5,$5,$3
lw $3,4($0)
addu $3,$3,$3
and $1,$1,$3
and $5,$6,$3
nor $5,$4,$3
slt $4,$4,$3
srav $4,$1,$3
sllv $1,$5,$3
sh $4,8($0)
srl $3,$1,9
subu $3,$3,$3
addiu $5,$6,-9058
nor $3,$4,$3
subu $0,$5,$3
lhu $3,14($0)
sll $1,$4,28
ori $4,$4,59999
srl $5,$3,11
addiu $0,$3,-14650
lhu $3,8($0)
sltu $4,$4,$3
sll $4,$3,27
or $4,$3,$3
addiu $6,$6,26166
sw $3,4($0)
sltu $1,$0,$3
slt $4,$0,$3
ori $4,$5,23898
nor $0,$0,$3
lb $3,16($0)
sllv $1,$5,$3
sw $4,0($0)
subu $5,$5,$3
xor $4,$4,$3
sltiu $1,$0,-4148
lhu $3,6($0)
lb $3,0($0)
sb $5,7($0)
xori $1,$3,62592
lb $3,13($0)
addu $0,$1,$3
sltu $0,$0,$3
lw $5,0($0)
and $4,$4,$3
sllv $4,$4,$3
sb $4,12($0)
sltiu $4,$4,-18431
addu $5,$4,$3
slt $3,$4,$3
srl $0,$1,22
addu $3,$3,$3
xor $1,$0,$3
addu $1,$1,$3
addu $3,$5,$3
ori $1,$3,61090
subu $0,$5,$3
sll $3,$0,11
sllv $4,$3,$3
xor $5,$4,$3
and $1,$3,$3
sb $5,0($0)
nor $3,$3,$3
lh $3,8($0)
xor $3,$3,$3
srl $3,$4,31
slt $3,$3,$3
slt $3,$1,$3
lbu $4,14($0)
addiu $3,$0,25031
slt $4,$3,$3
sll $1,$3,7
or $5,$3,$3
srlv $1,$3,$3
sh $4,12($0)
lhu $1,8($0)
or $4,$4,$3
andi $3,$0,47703
xori $6,$5,60298
subu $5,$5,$3
xor $4,$4,$3
sra $4,$3,6
ori $3,$3,51632
srav $6,$5,$3
lw $5,8($0)
lhu $6,10($0)
lbu $4,1($0)
xor $1,$4,$3
xor $6,$3,$3
srl $1,$1,3
lbu $1,12($0)
lbu $0,3($0)
and $1,$3,$3
lh $6,2($0)
lb $0,13($0)
sll $4,$4,26
slti $4,$6,-17523
sb $4,9($0)
srl $1,$1,25
addiu $3,$3,-24463
andi $1,$4,36768
and $1,$5,$3
sllv $2,$2,$3
sb $4,2($0)
and $3,$4,$3
slt $4,$5,$3
ori $3,$3,53722
srlv $5,$0,$3
sll $3,$4,8
lhu $6,6($0)
xori $3,$3,58427
andi $1,$3,60953
srlv $3,$3,$3
nor $5,$3,$3
nor $3,$5,$3
slti $6,$3,9459
addiu $3,$3,17637
nor $4,$3,$3
srlv $4,$4,$3
xor $4,$6,$3
srav $3,$3,$3
lhu $3,6($0)
addiu $5,$5,3772
addu $0,$5,$3
ori $5,$5,54158
srlv $4,$4,$3
sltiu $4,$4,17716
addiu $4,$3,-27714
addu $1,$3,$3
addiu $4,$3,3904
sltu $4,$1,$3
andi $6,$6,55237
lhu $3,6($0)
andi $1,$3,2107
lbu $1,16($0)
sll $5,$0,11
xor $4,$1,$3
lbu $4,13($0)
lw $3,8($0)
sw $0,12($0)
lbu $3,11($0)
sh $3,14($0)
subu $4,$5,$3
andi $0,$4,34539
sh $3,2($0)
sra $3,$3,10
lw $6,0($0)
subu $0,$5,$3
or $0,$4,$3
subu $4,$6,$3
srl $1,$3,6
slt $4,$4,$3
nor $4,$3,$3
addu $5,$3,$3
sltu $5,$3,$3
sllv $3,$0,$3
sll $5,$3,0
lw $3,12($0)
slt $1,$3,$3
addiu $4,$5,19548
addiu $4,$4,-4672
sltiu $4,$3,-6889
sltiu $4,$1,24252
nor $4,$1,$3
ori $0,$2,5127
addu $4,$1,$3
addu $3,$3,$3
xori $4,$1,19269
sll $6,$3,9
nor $5,$3,$3
sltiu $3,$3,5136
addiu $1,$1,3796
srl $4,$0,10
addu $3,$3,$3
addu $3,$3,$3
sltu $1,$3,$3
sb $1,6($0)
andi $1,$1,48492
srlv $4,$4,$3
lbu $1,0($0)
slti $3,$6,11764
subu $1,$4,$3
srl $4,$2,26
sb $6,6($0)
sra $3,$4,1
sh $4,6($0)
srl $3,$2,2
srlv $4,$4,$3
sltiu $4,$0,25430
lb $5,1($0)
slti $3,$3,3757
and $3,$3,$3
addiu $4,$5,-30941
addiu $1,$1,-13300
sw $5,12($0)
or $3,$4,$3
sw $3,12($0)
slt $3,$0,$3
and $4,$4,$3
addu $5,$5,$3
and $4,$5,$3
slti $4,$3,-14932
addiu $0,$0,-31737
and $5,$5,$3
lh $5,14($0)
subu $3,$3,$3
subu $6,$6,$3
srl $6,$0,7
subu $4,$4,$3
addu $1,$3,$3
addiu $2,$2,-19591
addiu $1,$3,-2129
sh $4,6($0)
addu $4,$4,$3
srl $3,$1,10
xori $0,$6,47620
lh $6,0($0)
xor $3,$6,$3
| 13.915636 | 18 | 0.514752 |
a5ce72bec8a06ca3a43293f4c42d7f9fa6503859 | 382 | asm | Assembly | oeis/027/A027176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/027/A027176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/027/A027176.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A027176: a(n) = A027170(2n-1, n-2).
; Submitted by Jon Maiga
; 7,43,185,740,2900,11293,43897,170608,663438,2582058,10058862,39225116,153111686,598228961,2339499161,9157016216,35870666366,140623656686,551684484386,2165796506636,8507878418516,33441451138598
mul $0,2
mov $1,$0
div $0,2
add $1,3
mov $2,$1
bin $1,$0
add $0,1
add $2,2
bin $2,$0
mul $2,2
add $2,$1
mov $0,$2
sub $0,4
| 21.222222 | 194 | 0.722513 |
03ffcd10d6509f5bde75293f61af04b5a362f96b | 2,442 | asm | Assembly | bootloader/stage1/mbr.asm | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | 87 | 2019-08-24T16:10:35.000Z | 2022-03-24T15:28:47.000Z | bootloader/stage1/mbr.asm | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | null | null | null | bootloader/stage1/mbr.asm | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | 5 | 2019-10-31T17:43:36.000Z | 2021-01-17T18:58:57.000Z | %include "defines.asm"
%define SEG_INC_ON_READ ((MAX_SECTORS * BLOCK_SIZE) / 0x10)
[org 0x7c00]
; This code will be placed at 0x7c00 in memory and can only be
; 0x1BB bytes long (443)
section .text
[bits 16]
_start:
mov [BOOT_DRIVE], dl ; save the boot disk
; Set up the stack
mov bp, 0x9000 ; stack size will be 4.5 KB
mov sp, bp
; kernel is supposed to reenable interrupts
; Now we gotta copy the second stage into memory and jump to it
; Check whether bios has LBA extended mode
mov ah, 0x41
mov bx, 0x55aa
mov dl, [BOOT_DRIVE]
int 0x13
jc .errorNoBios
; Loading the second stage
call load_second_stage
mov bx, init_sec
call print
call print_newline
; Now jumping to the second stage entry point
push word [BOOT_DRIVE]
jmp SECOND_STAGE_ENTRY
;jmp (SECOND_STAGE_ENTRY / 0x10):(SECOND_STAGE_ENTRY % 0x10)
.errorNoBios:
mov bx, biosNoExtended
call print
jmp $
load_second_stage:
mov word [high_tloc], (SECOND_STAGE_ENTRY / 0x10)
mov dword [low_lba], 1
; Set the loop counter
mov cx, (SECOND_STAGE_SIZE / SEG_INC_ON_READ + 1)
; A simple loop
.reading_loop:
; Check whether we should leave the loop
cmp cx, 0
jz .end
; If not then decrease loop counter (cx)
dec cx
cmp cx, 5
jnz .cont
jmp $
.cont:
; Setting up some regissters for the read
mov di, 0
mov si, DISK_ADDRESS_PKT
mov ah, 0x42
mov dl, [BOOT_DRIVE]
mov byte [DISK_ADDRESS_PKT], 0x10
mov word [blkcnt], MAX_SECTORS
mov word [low_tloc], 0
mov word [high_lba], 0
; call bios function
int 0x13
jc .readerror
; Updating values after read
mov bx, [low_lba]
add bx, MAX_SECTORS
mov [low_lba], bx
mov bx, [high_tloc]
add bx, SEG_INC_ON_READ
mov [high_tloc], bx
mov word dx, [high_tloc]
call print_hex
call print_newline
; Loop again
jmp .reading_loop
.readerror:
xor dx, dx
mov dh, ah
call print_hex
mov bx, readerror
call print
jmp $
.end:
ret
; includes
%include "./stage1/print.asm"
DISK_ADDRESS_PKT:
db 0x10 ; size of packet (16 bytes)
db 0
blkcnt: dw MAX_SECTORS
low_tloc: dw 0
high_tloc: dw (SECOND_STAGE_ENTRY / 0x10)
low_lba: dd 1
high_lba: dd 0
biosNoExtended: db "Bios does not support int13 extensions", 0x0
init_sec: db "Initializing second stage", 0x0
readerror: db " <- readerror", 0x0
ran: db " ran ", 0x0
BOOT_DRIVE: db 0x80
| 18.223881 | 65 | 0.676904 |
abe73673aec8d76fc5c7ae25da2f1eab9316dbe4 | 153 | asm | Assembly | sw/552tests/inst_tests/unaligned/jal_34.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/552tests/inst_tests/unaligned/jal_34.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/552tests/inst_tests/unaligned/jal_34.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // Original test: ./ullmer/hw4/problem6/jal_3.asm
// Author: ullmer
// Test source code follows
//tests jump and link
//with unaligned target
jal 593
| 17 | 49 | 0.72549 |
6516096c064192bbca79040f0992be81c1908e36 | 565 | asm | Assembly | programs/oeis/099/A099121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/099/A099121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/099/A099121.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A099121: Number of orbits of the wreath product of S_n with S_n on n X n matrices over {0,1,2}.
; 1,3,21,220,3060,53130,1107568,26978328,752538150,23667689815,828931106355,32006008361808,1350990969850340,61902409203193230,3060335715568296000,162392216278033616560,9206887338937200407418,555476984964439251664995,35536646803724119572028300,2403042167569352122703370600,171269143995104127989665699050,12832413319490100185605420936128,1008397078700499943119444597233976,82931889575125856304770873839233600
mov $1,$0
sub $2,$0
sub $0,$2
bin $2,2
add $0,$2
bin $0,$1
| 56.5 | 406 | 0.853097 |
b116a41edc51d1be7e94b4525c6c52b974a5c84e | 21,332 | asm | Assembly | lib/target/zx81/classic/zx81_hrg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | lib/target/zx81/classic/zx81_hrg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | lib/target/zx81/classic/zx81_hrg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; CRT0 for the ZX81 - HIGH RESOLUTION MODE (WRX trick by Wilf Rigter)
;
; This code comes from the 'HRG_Tool' by Matthias Swatosch
; The Chroma81 version is also derived by the "SPONZY" ZX Spectrum emulator by Zsolt
; (adapted to Chroma81 and z88dk by Kmurta and Olofsen)
;
; Display handler modifications to preserve IY and 64 row mode by Stefano Bodrato
;
;
; - - - - - - -
;
; $Id: zx81_hrg.def,v 1.26 2015-01-23 07:30:51 stefano Exp $
;
; - - - - - - -
PUBLIC hrg_on
PUBLIC _hrg_on
PUBLIC hrg_off
PUBLIC _hrg_off
PUBLIC HRG_LineStart
PUBLIC HRG_handler
PUBLIC zx_blank
PUBLIC _zx_blank
PUBLIC zx_noblank
PUBLIC _zx_noblank
PUBLIC zx_fast
PUBLIC _zx_fast
PUBLIC zx_slow
PUBLIC _zx_slow
IF (((startup>=5)&(startup<13))|(startup>=25))
IF ((startup=7)|(startup=27))
IF DEFINED_MEM8K
DEFC TOPOFRAM = $6000
DEFC BASE_VRAM = $5000
DEFC NEW_RAMTOP = $4F80
ELSE
DEFC TOPOFRAM = $8000
DEFC BASE_VRAM = $7000
DEFC NEW_RAMTOP = $6F80
ENDIF
DEFC WHOLEMEM = 4096+128 ; size of graphics map in grayscale mode
ELSE
IF DEFINED_MEM8K
DEFC TOPOFRAM = $6000
DEFC BASE_VRAM = $5800
DEFC NEW_RAMTOP = $5780
ELSE
DEFC TOPOFRAM = $8000
DEFC BASE_VRAM = $7800
DEFC NEW_RAMTOP = $7780
ENDIF
DEFC WHOLEMEM = 2048+128 ; size of graphics map in 256x64 mode
ENDIF
ELSE
IF DEFINED_MEM8K
DEFC TOPOFRAM = $6000
DEFC BASE_VRAM = $4800
DEFC NEW_RAMTOP = $4780
ELSE
DEFC TOPOFRAM = $8000
DEFC BASE_VRAM = $6800
DEFC NEW_RAMTOP = $6780
ENDIF
DEFC WHOLEMEM = 6144+128 ; size of graphics map in 256x192 mode
ENDIF
IF ((startup=3)|(startup=5)|(startup=23)|(startup=25))
hrgbrkflag:
defb 0
ENDIF
;--------------------------------------------------------------
;--------------------------------------------------------------
;------------------------------------------
;
; ZX81 system variables
;
;------------------------------------------
;DEFC ERR_NR = 16384 ;byte one less than the report code
;DEFC FLAGS = 16385 ;byte flags to control the BASIC system.
;DEFC MODE = 16390 ;byte Specified K, L, F or G cursor.
;DEFC PPC = 16391 ;word Line number of statement currently being executed
DEFC ERR_SP = 16386 ;word Address of first item on machine stack (after GOSUB returns).
DEFC RAMTOP = 16388 ;word Address of first byte above BASIC system area.
;----------------------------------------------------------------
;
; Enter in FAST mode
;
;----------------------------------------------------------------
zx_fast:
_zx_fast:
call restore81
jp $F23 ; FAST !
;----------------------------------------------------------------
;
; Switch to HRG mode
; "base_graphics" has to point to a reasonable adress
;
;----------------------------------------------------------------
zx_slow:
_zx_slow:
hrg_on:
_hrg_on:
call restore81
call $F2B ; SLOW
IF !DEFINED_hrgpage
ld hl,(base_graphics)
ld a,h
or l
call z,HRG_Interface_BaseRamtop ; if zero, make space and adjust ramtop for 16K
ENDIF
IF ((startup=7)|(startup=27))
ld hl,(base_graphics)
ld (graybit1),hl
ld de,2048
add hl,de
ld (graybit2),hl
ld (current_graphics),hl
ENDIF
zx_noblank:
_zx_noblank:
ld hl,HRG_handler ; starts the hires mode when JP (IX) is made
;----------------------------------------------------------------
;
; Sync display before mode switching
;
;----------------------------------------------------------------
HRG_Sync:
push hl
ld a,(16443) ; test CDFLAG
and 128 ; is in FAST mode ?
jr z,nosync
ld hl,$4034 ; FRAMES counter
ld a,(hl) ; get old FRAMES
HRG_Sync1:
cp (hl) ; compare to new FRAMES
jp z,HRG_Sync1 ; exit after a change is detected
nosync:
pop hl
push hl
ld (HRG_handler_patch+2),hl
pop iy
ret
zx_blank:
_zx_blank:
ld hl,HRG_BlankHandler
jr HRG_Sync
;----------------------------------------------------------------
;
; Switch to TXT mode
;
;----------------------------------------------------------------
hrg_off:
_hrg_off:
IF DEFINED_noslowfix
jp zx_fast
ELSE
call hrg_on ; restore registers and make sure we are in SLOW mode
ld hl,L0281 ; switch back to text (fixed video routine)
call HRG_Sync
ld a,$1e
ld i,a
ret
INCLUDE "target/zx81/classic/zx81_altint_core.asm"
ENDIF
;----------------------------------------------------------------
;
; Entry for the HRG handler in blank mode
;
;----------------------------------------------------------------
HRG_BlankHandler:
IF (((startup>=5)&(startup<13))|(startup>=25))
ld a,107 ; 52 + 55
;ld a,200 ; tweaked for speed
ELSE
ld a,247 ; 192+55
;ld a,255 ; tweaked for speed
ENDIF
ld (16424),a ; MARGIN will ..cover the whole screen !
jp HRG_postproc
;----------------------------------------------------------------
;
; This is the HRG handler
;
;----------------------------------------------------------------
;calculation of label above 32k
HRG_handler:
IF (startup>=23) ; CHROMA_81
ld bc,0 ; delay fine tuning here! Do not change!
ld bc,0
ld bc,0
nop
ELSE ; WRX
ld b,6 ; delay sets the left edge of the screen
HRG_wait_left:
djnz HRG_wait_left ; delay loop
ld hl,0 ; delay fine tuning here! Do not change!
nop ; delay fine tuning here! Do not change!
; (Originally the delay was obtained setting B to 7)
dec b ; make Z flag=0
ENDIF
IF ((startup=7)|(startup=27))
ld hl,(current_graphics)
ELSE
ld hl,(base_graphics)
ENDIF
IF (startup>=23) ; CHROMA_81
ld (SAVE_SP),sp
ld sp,HRG_STACK
ld iy,HRG_LineStart+$8000
ret
ELSE ; WRX
ld de,32 ; 32 bytes offset is added to HL for next hline
IF (((startup>=5)&(startup<13))|(startup>=25))
ld b,64 ; 64 lines per hires screen
ELSE
ld b,192 ; 192 lines per hires screen
ENDIF
HRG_outloop:
ld a,h ; get HGR address MSB from HL
ld i,a ; load MSB into I register which is RFSH address MSB
ld a,l ; get HGR address LSB from HL
call HRG_LineStart+$8000
add hl,de ; add 32 to HL to point to next hline
dec b ; decrement line counter
jp nz,HRG_outloop ; test for last line
ENDIF
; -------------------------------------------------------
;
HRG_postproc:
IF (startup>=23) ; CHROMA_81
ld sp,(SAVE_SP)
ENDIF
;call $0292 ; return to application program
; Different from original call to keep IY unchanged
; and to eventually add blank lines
ld iy,pointedbyix ; in ROM we'd have had a POP IX and JP IX as a 'return'
ld a,(16424) ; 33 or 19 blank lines in bottom MARGIN
; this idea comes from the Wilf Rigter's WRX1K hi-resolution implementation
; if we run in 64 lines mode we need to increase the number of border's lines
IF (((startup>=5)&(startup<13))|(startup>=25))
add 140 ; more blank lines for fast application code and correct sync
; Siegfried Engel reports that values between 80 and 159 worked
; fine on both a normal TV and an LCD one
ENDIF
ld c,a ; load C with MARGIN
;ld a,(16443) ; test CDFLAG
;and 128
;bit 7,a
and a ; setting zero flag is enough,
; ..we know MARGIN will always be > 0 ;)
jp $29b ; save blank lines, start NMI, POP registers and RETURN
pointedbyix:
push ix
ld ix,16384
call $0220 ; first PUSH register, then do VSYNC and get KEYBD
IF ((startup=3)|(startup=5))
call $0F46 ; check break (space) key
jp c,nobrkk
ld a,(hrgbrkflag) ; set to '0' if program isn't running
and a
jr z,nobrkk
SCF
nobrkk:
ENDIF
pop ix
IF ((startup=3)|(startup=5))
jp c,nobrkk2
ld a,$1e ; the I register is restored with the MSB address
ld i,a ; of the ROM pattern table in case of BREAK key down
jp $02A4
nobrkk2:
ENDIF
ld hl,($4034) ; FRAMES, used also by clock handler
dec hl
ld ($4034),hl
IF ((startup=7)|(startup=27))
ld hl,gcount
;res 7,(hl)
inc (hl)
ld a,(hl)
dec a
jp z,Display_pic1
dec a
jp z,Display_pic2
ld (hl),0
Display_pic1:
ld hl,(graybit1)
jp setpage
Display_pic2:
ld hl,(graybit2)
setpage:
ld (current_graphics),hl
ENDIF
HRG_handler_patch:
ld iy,HRG_handler ; reload vector if no BREAK or else SINCLAIR video
jp $02A4 ; now return to BASIC and other application programs
;----------------------------------------------------------------
; Variables for grayscale graphics
;----------------------------------------------------------------
IF ((startup=7)|(startup=27))
PUBLIC graybit1
PUBLIC graybit2
gcount:
defb 0
current_graphics:
defw 0
graybit1:
defw 0
graybit2:
defw 0
ENDIF
;----------------------------------------------------------------
;
; This is a dummy-line used for HRG output
;
;----------------------------------------------------------------
IF (startup<13)
HRG_LineStart:
ld r,a ; load LSB to R register which is RFSH address LSB
defb 0, 0, 0, 0 ; 32 NOPs = 32x8 bits = 256 pixels each HLINE
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret nz ; always returns because Z flag=0
ELSE ; CHROMA_81
HRG_LineStart:
ld r,a ; load LSB to R register which is RFSH address LSB
defb 0, 0, 0, 0 ; 32 NOPs = 32x8 bits = 256 pixels each HLINE
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart01:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart02:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart03:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart04:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart05:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart06:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart07:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart08:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart09:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0a:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0b:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0c:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0d:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0e:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart0f:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart10:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart11:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart12:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart13:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart14:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart15:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart16:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_LineStart17:
ld r,a
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
defb 0, 0, 0, 0
ret
HRG_STACK:
defw HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart01+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart02+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart03+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart04+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart05+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart06+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart07+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart08+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart09+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0a+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0b+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0c+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0d+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0e+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart0f+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart10+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart11+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart12+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart13+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart14+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart15+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart16+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRGRB,HRG_LineStart17+$8000,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA,HRGRA
defw HRG_postproc
SAVE_SP:
defw 0
HRGRA:
ld de,32
ld de,32
nop
ld a,h
ld i,a
ld a,l
add hl,de
jp (iy)
HRGRB:
pop iy
ld de,32
ld a,h
ld i,a
ld a,l
add hl,de
jp (iy)
ENDIF
;----------------------------------------------------------------
;
; End of HRG handler
;
;----------------------------------------------------------------
IF !DEFINED_hrgpage
;--------------------------------------------------------------
;
; HRG_Interface_BaseRamtop
;
; checks if RAMTOP is set to 16k ram pack
; if so it lowers RAMTOP, copies stack and adapts all
; needed variables so that the program can continue with
; no need to issue a NEW command to redirect pointers.
; HRG base is set to the location over RAMTOP
;
;--------------------------------------------------------------
HRG_Interface_BaseRamtop:
ld hl,(RAMTOP)
ld de,TOPOFRAM ;is RAMTOP in original 8k/16k position?
xor a
sbc hl,de
ld a,h
or l
jr z,HRG_Interface_BaseRamtopModify
ld hl,(RAMTOP)
ld de,NEW_RAMTOP ;is RAMTOP already lowered?
xor a
sbc hl,de
ld a,h
or l ;no, so this is a problem!
jr nz,HRG_Interface_BaseRamError
ld hl,BASE_VRAM ;yes, then set base_graphics
ld (base_graphics),hl
ret
HRG_Interface_BaseRamtopModify:
ld hl,BASE_VRAM
ld (base_graphics),hl
ld hl,NEW_RAMTOP ;lower RAMTOP
ld (RAMTOP),hl
ld hl,(ERR_SP)
ld de,WHOLEMEM
xor a
sbc hl,de
ld (ERR_SP),hl ;lower ERR_SP
ld hl,$0000
add hl,sp ;load SP into HL
push hl ; *** stack pointer
ld de,TOPOFRAM ;prepare to copy the stack
ex de,hl
xor a
sbc hl,de
ld de,$0040
add hl,de ;stackdeepth in HL
push hl
pop bc ;stackdeepth in BC
ld hl,TOPOFRAM-1 ;make a copy of the stack
ld de,NEW_RAMTOP-1
lddr
pop hl ; *** stackpointer in HL
ld de,WHOLEMEM
xor a
sbc hl,de ;lower the stackpointer
ld sp,hl ;WOW!
HRG_Interface_BaseRamError:
;rst $08 ;error
;defb $1a ;type R
; Nothig is as expected: let's put graphics just above the actual RAMTOP
; and cross fingers
ld hl,(RAMTOP)
ld (base_graphics),hl
ret
ENDIF
| 26.142157 | 93 | 0.473186 |
1ae851e5f2aa189cdf282079b1c0ca69c0bcdae1 | 1,413 | asm | Assembly | programs/oeis/087/A087475.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/087/A087475.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/087/A087475.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A087475: a(n) = n^2 + 4.
; 4,5,8,13,20,29,40,53,68,85,104,125,148,173,200,229,260,293,328,365,404,445,488,533,580,629,680,733,788,845,904,965,1028,1093,1160,1229,1300,1373,1448,1525,1604,1685,1768,1853,1940,2029,2120,2213,2308,2405,2504,2605,2708,2813,2920,3029,3140,3253,3368,3485,3604,3725,3848,3973,4100,4229,4360,4493,4628,4765,4904,5045,5188,5333,5480,5629,5780,5933,6088,6245,6404,6565,6728,6893,7060,7229,7400,7573,7748,7925,8104,8285,8468,8653,8840,9029,9220,9413,9608,9805,10004,10205,10408,10613,10820,11029,11240,11453,11668,11885,12104,12325,12548,12773,13000,13229,13460,13693,13928,14165,14404,14645,14888,15133,15380,15629,15880,16133,16388,16645,16904,17165,17428,17693,17960,18229,18500,18773,19048,19325,19604,19885,20168,20453,20740,21029,21320,21613,21908,22205,22504,22805,23108,23413,23720,24029,24340,24653,24968,25285,25604,25925,26248,26573,26900,27229,27560,27893,28228,28565,28904,29245,29588,29933,30280,30629,30980,31333,31688,32045,32404,32765,33128,33493,33860,34229,34600,34973,35348,35725,36104,36485,36868,37253,37640,38029,38420,38813,39208,39605,40004,40405,40808,41213,41620,42029,42440,42853,43268,43685,44104,44525,44948,45373,45800,46229,46660,47093,47528,47965,48404,48845,49288,49733,50180,50629,51080,51533,51988,52445,52904,53365,53828,54293,54760,55229,55700,56173,56648,57125,57604,58085,58568,59053,59540,60029,60520,61013,61508,62005
mov $1,$0
pow $1,2
add $1,4
| 201.857143 | 1,356 | 0.801132 |
153c53a8d9d1618abf2def76d31a2a5e2e136f5e | 610 | asm | Assembly | oeis/180/A180846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/180/A180846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/180/A180846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A180846: a(n) = (81^n - 2^n)/79.
; 0,1,83,6727,544895,44136511,3575057423,289579651327,23455951757615,1899932092367071,153894499481733263,12465454458020395327,1009701811099652023535,81785846699071813910431,6624653582624816926753103,536596940192610171067017727,43464352155601423856428468655,3520612524603715332370706026591,285169614492900941922027188284943,23098738773924976295684202251342527,1870997840687923079950420382359268975,151550825095721769475984050971101835551,12275616832753463327554708128659250776783
mov $2,32741
lpb $0
sub $0,1
mul $2,81
add $1,$2
mul $1,2
lpe
mov $0,$1
div $0,5304042
| 46.923077 | 478 | 0.857377 |
20fae939d5b1dbae25523ac894ee92ee55b97704 | 14,005 | asm | Assembly | tests/altium_crap/Soft Designs/Legacy/3rd PB/Memec Virtex2P4 dev board/Message/Message.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | 1 | 2020-06-08T11:17:46.000Z | 2020-06-08T11:17:46.000Z | tests/altium_crap/Soft Designs/Legacy/3rd PB/Memec Virtex2P4 dev board/Message/Message.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | tests/altium_crap/Soft Designs/Legacy/3rd PB/Memec Virtex2P4 dev board/Message/Message.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | ;...............................................................................
PortAsInput .equ 0xFF
PortAsOutput .equ 0x0
KeyPad .equ PORTC ; Out on the TRIS Lines used as ouputs
LCD_CTRL .equ PORTB ; LCD control lines interface
LCD_DATA .equ PORTA ; LCD data lines interface (bidirectional)
; LCD_CTRL control bits
LCD_E .equ LCD_CTRL.0 ; LCD Enable control line
LCD_RS .equ LCD_CTRL.1 ; LCD Register-Select control line
; LCD commands:
LCD_ClearScreen .equ 0x01
LCD_ReturnHome .equ 0x02
LCD_SetEntryMode .equ 0x04
LCD_SetDisplayMode .equ 0x08
LCD_SetCursorMode .equ 0x10
LCD_SetFunction .equ 0x20
LCD_SetCharMapAddress .equ 0x40
LCD_SetDisplayAddress .equ 0x80
; LCD EntryMode masks:
LCD_ShiftDisplay .equ 0x01
LCD_ShiftIncrement .equ 0x02
; LCD DisplayMode masks:
LCD_BlinkingOn .equ 0x01
LCD_BlinkingOff .equ 0x00
LCD_ShowCursor .equ 0x02
LCD_HideCursor .equ 0x00
LCD_DisplayOn .equ 0x04
LCD_DisplayOff .equ 0x00
; Pushbuttons
PUSH1 .equ KeyPad.1
PUSH2 .equ KeyPad.2
PUSH3 .equ KeyPad.3
; LEDS
LED1 .equ LCD_CTRL.4
LED2 .equ LCD_CTRL.5
LED3 .equ LCD_CTRL.6
LED4 .equ LCD_CTRL.7
; Flash Rate
Refresh .equ 0x0A
;...............................................................................
.section data, data
; Data used:
Temp .dsb 1 ; Tempory which may be used for *any* leaf function
CountInner .dsb 1 ; Storage needed by Delay100us
CountOuter .dsb 1 ; Storage needed by Delay100us
CountInner_2 .dsb 1
CountOuter_2 .dsb 1
StringOffset .dsb 1 ; String lookup table offset
;...............................................................................
.section Entry, Code, at(0)
__start: ; Entrypoint of hardware
GJMP Main
;...............................................................................
.section displayer, code, inpage ; inpage allows for interesting optimizations for
; jumps and call within this section. However it is
; required NOT to change the code-pagebits directly.
; For calls and jumps out of the scope of the section,
; CALL/LCALL and GOTO/LJMP must be used.
; Also the section must fit in one page (512 instr.)
;...............................................................................
; ump table for CALLs
; CALL instruction only allows 8 bit address so use a jump table
; CALL the Jump table which does a GOTO the address
;...............................................................................
DisplayStartupMessage: GOTO Do_DisplayStartupMessage
LCD_Initialize: GOTO Do_LCD_Initialize
DisplayNext: GOTO Do_DisplayNext
ClearDisplay: GOTO Do_ClearDisplay
;...............................................................................
; Lookup tables:
;...............................................................................
Lookup_StartupString1:
ADDWF PCL,f
RETLW 'Altium',0
Lookup_StartupString2:
ADDWF PCL,f
RETLW 'LiveDesign!',0
; Not used in this program......
Lookup_StartupString3: ;
ADDWF PCL,f ;
RETLW 'JTAG',0 ;
;...............................
Lookup_StartupString4:
ADDWF PCL,f
RETLW 'Enabled',0
Lookup_StartupString5:
ADDWF PCL,f
RETLW 'NEXAR',0
Lookup_LDLogoTop:
ADDWF PCL,f
RETLW 0x00,0x01,0x02,0x03
Lookup_LDLogoBot:
ADDWF PCL,f
RETLW 0x04,0x05,0x06,0x07
;...............................................................................
; Custom Character Elements for mini LD logo
;...............................................................................
Lookup_LDLogo_elements:
ADDWF PCL,f
RETLW 0x00,0x01,0x03,0x06,0x06,0x0C,0x0C,0x18,\
0x0F,0x10,0x00,0x08,0x08,0x08,0x10,0x10,\
0x00,0x18,0x00,0x07,0x04,0x04,0x08,0x08,\
0x10,0x0C,0x06,0x03,0x13,0x13,0x13,0x13,\
0x19,0x19,0x1B,0x18,0x18,0x0C,0x06,0x01,\
0x00,0x00,0x1E,0x00,0x00,0x01,0x00,0x10,\
0x11,0x12,0x1E,0x00,0x00,0x00,0x18,0x07,\
0x03,0x03,0x03,0x06,0x06,0x0C,0x18,0x00
;...............................................................................
; Delay100us:
; This function will consume (W * (99 * 4 + 4)) + 3 == (W * 400) + 3 cycles
; At 40Mhz processor clock, this will generate a W * 100 uSecs software delay
; Note: if W is zero, the function will consume (256 * 400) + 3 cycles
;...............................................................................
Delay100us:
MOVWF CountOuter
LoopOuter:
MOVLW 99
MOVWF CountInner
LoopInner:
NOP
NOP
DECFSZ CountInner,f
GOTO LoopInner
DECFSZ CountOuter,f
GOTO LoopOuter
RETLW 0
;...............................................................................
; LongDelay: Approximately W * 100 * 100 * 100us
;...............................................................................
LongDelay:
MOVWF CountOuter_2
LoopOuter2:
MOVLW 99
MOVWF CountInner_2
LoopInner2:
MOVLW 100
CALL Delay100us
DECFSZ CountInner_2,f
GOTO LoopInner2
DECFSZ CountOuter_2,f
GOTO LoopOuter2
RETLW 0
;...............................................................................
; Sends command to LCD
; Required command must be in W
;...............................................................................
LCD_SendCommand:
MOVWF Temp ; Store command in temp
BCF LCD_RS ; Set for Command - RS Low
BSF LCD_E ; Enable LCD 0 Set E High
NOP
MOVF Temp, W
MOVWF LCD_DATA ; Send data to LCD
NOP
BCF LCD_E ; Disable LCD - Set Enable Low
RETLW 0
;...............................................................................
; Sends character to LCD
; Required character must be in W
;...............................................................................
LCD_SendCharacter:
MOVWF Temp ; Command to send is in W
BSF LCD_RS ; Set For Data - RS High
BSF LCD_E ; Enable LCD 0 Set E High
NOP
MOVF Temp, W
MOVWF LCD_DATA ; Send data to LCD
NOP
BCF LCD_E ; Disable LCD - Set Enable Low
RETLW 0
;...............................................................................
; Clears the Display
;...............................................................................
Do_ClearDisplay:
MOVLW 20
CALL Delay100us
MOVLW LCD_ClearScreen
CALL LCD_SendCommand
BSF LED4
RETLW 0
;...............................................................................
; Displays the initial startup message to the LCD
;...............................................................................
Do_DisplayStartupMessage:
MOVLW LCD_SetDisplayAddress | 0x00 ; Cursor to position 7 in first row
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #16
MOVLW 20 ; 20 x 100uS = 2.0ms delay
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_StartupString1 ; get the byte at offset W
.gen IF <NOT>W
.gen BREAK
.gen ENDIF
CALL LCD_SendCharacter
.gen ENDFOR
MOVLW 20
CALL Delay100us
MOVLW LCD_SetDisplayAddress | 0x40 ; Cursor to position 0 in Second row
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #16
MOVLW 20
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_StartupString5 ; get the byte at offset W
.gen IF <NOT>W
.gen BREAK
.gen ENDIF
CALL LCD_SendCharacter
.gen ENDFOR
BCF LED2
MOVLW 20
CALL Delay100us
RETLW 0
;...............................................................................
; LCD Initialisiation code to be executed after power-up (i.e.: before any other
; subroutines are used). Always CALL from top level only
;...............................................................................
Do_LCD_Initialize:
BCF LCD_E ; Disable LCD - Set Enable Low
BCF LCD_RS ; Set For Command RS Low
MOVLW 1
CALL LongDelay
MOVLW 0x38
CALL LCD_SendCommand ; 8-bit-interface, 2-lines
MOVLW 1 ; Provide plenty of delay to support
CALL LongDelay ; write-only mode to slow LCDs
MOVLW LCD_SetDisplayMode | LCD_BlinkingOff | LCD_HideCursor | LCD_DisplayOff
CALL LCD_SendCommand
MOVLW 200
CALL Delay100us
MOVLW LCD_ClearScreen
CALL LCD_SendCommand
MOVLW 200
CALL Delay100us
MOVLW LCD_ReturnHome
CALL LCD_SendCommand
MOVLW 200
CALL Delay100us
MOVLW LCD_SetDisplayMode | LCD_DisplayOn
CALL LCD_SendCommand
MOVLW 200
CALL Delay100us
MOVLW LCD_SetEntryMode | LCD_ShiftIncrement
CALL LCD_SendCommand
RETLW 0
;...............................................................................
; Load the custom characters into the CGRAM (character map)
;...............................................................................
LDLogo_setup:
MOVLW 50
CALL Delay100us
MOVLW LCD_SetCharMapAddress
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #64
MOVLW 50
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_LDLogo_elements
CALL LCD_SendCharacter
.gen ENDFOR
RETLW 0
;...............................................................................
; DO_DisplayNext - updates the LCD with the next message
;...............................................................................
Do_DisplayNext:
BSF LED2
MOVLW 50
CALL Delay100us
MOVLW LCD_SetDisplayAddress | 0x00 ; Cursor to position 0 in first row
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #4 ; Display upper four custom chars.
MOVLW 50
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_LDLogoTop
CALL LCD_SendCharacter
.gen ENDFOR
MOVLW 50
CALL Delay100us
MOVLW LCD_SetDisplayAddress | 0x40
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #4 ; Display lower four custom chars.
MOVLW 50
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_LDLogoBot
CALL LCD_SendCharacter
.gen ENDFOR
MOVLW 50
CALL Delay100us
MOVLW LCD_SetDisplayAddress | 0x06 ; Cursor to position 7 in first row
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #16
MOVLW 50
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_StartupString2
.gen IF <NOT>W
.gen BREAK
.gen ENDIF
CALL LCD_SendCharacter
.gen ENDFOR
MOVLW 50
CALL Delay100us
MOVLW LCD_SetDisplayAddress | 0x47
CALL LCD_SendCommand
.gen FOR StringOffset = #0 TO #16
MOVLW 50
CALL Delay100us
MOVF StringOffset,W
CALL Lookup_StartupString4
.gen IF <NOT>W
.gen BREAK
.gen ENDIF
CALL LCD_SendCharacter
.gen ENDFOR
MOVLW 50
CALL Delay100us
RETLW 0
;...............................................................................
; Main initialisation
;...............................................................................
Main:
MOVLW PortAsOutput
TRIS LCD_DATA ; Set LCD Port To Outputs
MOVLW PortAsOutput
TRIS LCD_CTRL ; Set Port B IO for LCD control,
; and LEDs.
CALL LCD_Initialize
CALL DisplayStartupMessage
BSF LED1
BSF LED2
MOVLW 5
CALL LongDelay
CALL LDLogo_setup
CALL ClearDisplay
BCF LED4
BSF LED3
BCF LED2
BSF LED1
CALL DisplayNext
;...............................................................................
; Main Loop scans (at approx. 2Hz) the puchbuttons and alternately flashes
; the LEDs.
;...............................................................................
MainLoop:
BTFSS PUSH3
CALL DisplayStartupMessage
BTFSS PUSH2
CALL DisplayNext
BTFSS PUSH1
CALL ClearDisplay
MOVLW 1
CALL LongDelay
BCF LED4
BSF LED3
MOVLW 1
CALL LongDelay
BSF LED4
BCF LED3
GOTO MainLoop
;...............................................................................
.END
| 30.916115 | 98 | 0.453624 |
d7d4b5c148659e5ad02ca4a9d992e71f4b7d3da3 | 6,461 | asm | Assembly | demos/renesas/rza2m-ebk/e2studio/generate/compiler/asm/mmu_operation.asm | JiGoRo1969/ROS2_RZA2M_MoveIt1 | 90dde764e0f2935db66c6b51b30c0bf8a7ce1ab0 | [
"MIT"
] | 3 | 2019-11-14T08:41:29.000Z | 2020-07-15T23:55:55.000Z | demos/renesas/rza2m-ebk/e2studio/generate/compiler/asm/mmu_operation.asm | JiGoRo1969/ROS2_RZA2M_MoveIt1 | 90dde764e0f2935db66c6b51b30c0bf8a7ce1ab0 | [
"MIT"
] | null | null | null | demos/renesas/rza2m-ebk/e2studio/generate/compiler/asm/mmu_operation.asm | JiGoRo1969/ROS2_RZA2M_MoveIt1 | 90dde764e0f2935db66c6b51b30c0bf8a7ce1ab0 | [
"MIT"
] | null | null | null | @/*******************************************************************************
@* DISCLAIMER
@* This software is supplied by Renesas Electronics Corporation and is only
@* intended for use with Renesas products. No other uses are authorized. This
@* software is owned by Renesas Electronics Corporation and is protected under
@* all applicable laws, including copyright laws.
@* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
@* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
@* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
@* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
@* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
@* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
@* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
@* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
@* Renesas reserves the right, without notice, to make changes to this software
@* and to discontinue the availability of this software. By using this software,
@* you agree to the additional terms and conditions found by accessing the
@* following link:
@* http://www.renesas.com/disclaimer
@* Copyright (C) 2018 Renesas Electronics Corporation. All rights reserved.
@*******************************************************************************/
@/*******************************************************************************
@* File Name : mmu_operation.asm
@* Description : TTB initialize
@*******************************************************************************/
.section .text.mmu
.arm
@******************************************************************************
@ Function Name : r_mmu_get_ttbcr
@ Description : Get TTBCR register
@******************************************************************************
.section .text.r_mmu_get_ttbcr
.global r_mmu_get_ttbcr
.type r_mmu_get_ttbcr,%function
.func r_mmu_get_ttbcr
r_mmu_get_ttbcr:
MRC p15, 0, r0, c2, c0, 2 @;; TTBCR
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_set_ttbcr
@ Description : Set TTBCR register
@******************************************************************************
.section .text.r_mmu_set_ttbcr
.global r_mmu_set_ttbcr
.type r_mmu_set_ttbcr,%function
.func r_mmu_set_ttbcr
r_mmu_set_ttbcr:
MCR p15, 0, r0, c2, c0, 2 @;; TTBCR
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_get_ttbr0
@ Description : Set TTBR0 register
@******************************************************************************
.section .text.r_mmu_get_ttbr0
.global r_mmu_get_ttbr0
.type r_mmu_get_ttbr0,%function
.func r_mmu_get_ttbr0
r_mmu_get_ttbr0:
MRC p15, 0, r0, c2, c0, 0 @;; TTBR0
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_set_ttbr0
@ Description : Set TTBR0 register
@******************************************************************************
.section .text.r_mmu_set_ttbr0
.global r_mmu_set_ttbr0
.type r_mmu_set_ttbr0,%function
.func r_mmu_set_ttbr0
r_mmu_set_ttbr0:
MCR p15, 0, r0, c2, c0, 0 @;; TTBR0
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_get_dacr
@ Description : Get DACR register
@******************************************************************************
.section .text.r_mmu_get_dacr
.global r_mmu_get_dacr
.type r_mmu_get_dacr,%function
.func r_mmu_get_dacr
r_mmu_get_dacr:
MRC p15, 0, r0, c3, c0, 0 @;; DACR
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_set_dacr
@ Description : Set DACR register
@******************************************************************************
.section .text.r_mmu_set_dacr
.global r_mmu_set_dacr
.type r_mmu_set_dacr,%function
.func r_mmu_set_dacr
r_mmu_set_dacr:
MCR p15, 0, r0, c3, c0, 0 @;; DACR
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_get_sctlr
@ Description : Get SCTLR register
@******************************************************************************
.section .text.r_mmu_get_sctlr
.global r_mmu_get_sctlr
.type r_mmu_get_sctlr,%function
.func r_mmu_get_sctlr
r_mmu_get_sctlr:
MRC p15, 0, r0, c1, c0, 0 @;; SCTLR
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_set_sctlr
@ Description : Set SCTLR register
@******************************************************************************
.section .text.r_mmu_set_sctlr
.global r_mmu_set_sctlr
.type r_mmu_set_sctlr,%function
.func r_mmu_set_sctlr
r_mmu_set_sctlr:
MCR p15, 0, r0, c1, c0, 0 @;; SCTLR
ISB
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_tlbiall
@ Description : TLBIALL
@******************************************************************************
.section .text.r_mmu_tlbiall
.global r_mmu_tlbiall
.type r_mmu_tlbiall,%function
.func r_mmu_tlbiall
r_mmu_tlbiall:
MCR p15, 0, r0, c8, c7, 0 @;; TLBIALL
ISB
BX LR
.endfunc
@******************************************************************************
@ Function Name : r_mmu_tlbimvaa
@ Description : TLBIMVAA
@******************************************************************************
.section .text.r_mmu_tlbimvaa
.global r_mmu_tlbimvaa
.type r_mmu_tlbimvaa,%function
.func r_mmu_tlbimvaa
r_mmu_tlbimvaa:
MCR p15, 0, r0, c8, c7, 3 @;; TLBIMVAA
ISB
BX LR
.endfunc
.END
| 32.144279 | 82 | 0.465098 |
d0d2c5a7be9a585ee633536104997687a71ef83f | 216 | asm | Assembly | VirtualMachine/Win32/VMTests/assProg2.asm | ObjectPascalInterpreter/BookPart_3 | 95150d4d02f7e13e5b1ebb58c249073a384f2a0a | [
"Apache-2.0"
] | 8 | 2021-11-07T22:45:25.000Z | 2022-03-12T21:38:53.000Z | VirtualMachine/Win32/VMTests/assProg2.asm | Irwin1985/BookPart_2 | 4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf | [
"Apache-2.0"
] | 4 | 2021-09-23T02:13:55.000Z | 2021-12-07T06:08:17.000Z | VirtualMachine/Win32/VMTests/assProg2.asm | Irwin1985/BookPart_2 | 4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf | [
"Apache-2.0"
] | 4 | 2021-11-24T17:24:56.000Z | 2021-12-21T04:56:58.000Z | # Evaluate an expression (2+7)*4/2
#
pushi 2
jmp l2
l1: pushi 2
pushi 7
add
pushi 4
mult
pushi 2
divide
jmp l3
l2: jmp l1
l3: halt
| 14.4 | 35 | 0.425926 |
d0ebe601b27f1196e028561f3163e03a5d4c1de4 | 381 | asm | Assembly | programs/oeis/087/A087620.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/087/A087620.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/087/A087620.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A087620: #{0<=k<=n: k*n is divisible by 4}.
; 1,1,2,1,5,2,4,2,9,3,6,3,13,4,8,4,17,5,10,5,21,6,12,6,25,7,14,7,29,8,16,8,33,9,18,9,37,10,20,10,41,11,22,11,45,12,24,12,49,13,26,13,53,14,28,14,57,15,30,15,61,16,32,16,65,17,34,17,69,18,36,18,73,19,38,19,77,20,40,20,81,21,42,21,85,22,44,22,89,23,46,23,93,24,48,24,97,25,50,25
mov $1,4
gcd $1,$0
mul $1,$0
div $1,4
add $1,1
mov $0,$1
| 38.1 | 276 | 0.606299 |
65770b98181651977c05885cedae6c3cb8ab1977 | 290 | asm | Assembly | programs/oeis/133/A133877.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/133/A133877.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/133/A133877.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A133877: n modulo 7 repeated 7 times.
; 1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,0,0,0,0,0,0,0,1,1,1,1,1,1,1
mov $1,$0
div $1,7
add $1,1
mod $1,7
| 36.25 | 211 | 0.531034 |
747e283562f84a7c0e7dcc95d63fdda7e16cb7bc | 153 | asm | Assembly | src/PJ/rexlib/stdiolib/fread.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 119 | 2015-01-10T15:13:50.000Z | 2022-01-24T04:54:34.000Z | src/PJ/rexlib/stdiolib/fread.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 6 | 2015-10-22T20:14:59.000Z | 2021-07-10T03:25:21.000Z | src/PJ/rexlib/stdiolib/fread.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 27 | 2015-04-24T22:55:30.000Z | 2022-01-21T13:54:00.000Z | include stdiolib.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
STDIOLIB_JUMP fread siol_fread
code ends
end
| 12.75 | 31 | 0.732026 |
e6ba686d275dca4b87ff448eeb00876bdef42b34 | 21,773 | asm | Assembly | test/rorx.asm | killvxk/AssemblyLine | 2a20ec925532875c2f3bb5d423eb38a00bc5c91d | [
"Apache-2.0"
] | 147 | 2021-09-01T03:52:49.000Z | 2022-03-30T16:59:58.000Z | test/rorx.asm | killvxk/AssemblyLine | 2a20ec925532875c2f3bb5d423eb38a00bc5c91d | [
"Apache-2.0"
] | 7 | 2021-09-10T07:03:36.000Z | 2022-03-03T23:30:58.000Z | test/rorx.asm | killvxk/AssemblyLine | 2a20ec925532875c2f3bb5d423eb38a00bc5c91d | [
"Apache-2.0"
] | 19 | 2021-09-09T10:54:44.000Z | 2022-03-18T19:56:45.000Z | SECTION .text
GLOBAL test
test:
rorx rax, rax, 0x3c
rorx rax, rbx, 0x3c
rorx rax, rcx, 0x3c
rorx rax, rdx, 0x3c
rorx rax, rdi, 0x3c
rorx rax, r8, 0x3c
rorx rax, r9, 0x3c
rorx rax, r10, 0x3c
rorx rax, r11, 0x3c
rorx rax, r12, 0x3c
rorx rax, r13, 0x3c
rorx rax, r14, 0x3c
rorx rax, r15, 0x3c
rorx rax, rsp, 0x3c
rorx rax, rsi, 0x3c
rorx rax, rbp, 0x3c
rorx rbx, rax, 0x3c
rorx rbx, rbx, 0x3c
rorx rbx, rcx, 0x3c
rorx rbx, rdx, 0x3c
rorx rbx, rdi, 0x3c
rorx rbx, r8, 0x3c
rorx rbx, r9, 0x3c
rorx rbx, r10, 0x3c
rorx rbx, r11, 0x3c
rorx rbx, r12, 0x3c
rorx rbx, r13, 0x3c
rorx rbx, r14, 0x3c
rorx rbx, r15, 0x3c
rorx rbx, rsp, 0x3c
rorx rbx, rsi, 0x3c
rorx rbx, rbp, 0x3c
rorx rcx, rax, 0x3c
rorx rcx, rbx, 0x3c
rorx rcx, rcx, 0x3c
rorx rcx, rdx, 0x3c
rorx rcx, rdi, 0x3c
rorx rcx, r8, 0x3c
rorx rcx, r9, 0x3c
rorx rcx, r10, 0x3c
rorx rcx, r11, 0x0
rorx rcx, r12, 0x0
rorx rcx, r13, 0x0
rorx rcx, r14, 0x0
rorx rcx, r15, 0x0
rorx rcx, rsp, 0x0
rorx rcx, rsi, 0x0
rorx rcx, rbp, 0x0
rorx rdx, rax, 0x0
rorx rdx, rbx, 0x0
rorx rdx, rcx, 0x0
rorx rdx, rdx, 0x0
rorx rdx, rdi, 0x0
rorx rdx, r8, 0x0
rorx rdx, r9, 0x0
rorx rdx, r10, 0x0
rorx rdx, r11, 0x0
rorx rdx, r12, 0x0
rorx rdx, r13, 0x0
rorx rdx, r14, 0x0
rorx rdx, r15, 0x0
rorx rdx, rsp, 0x0
rorx rdx, rsi, 0x0
rorx rdx, rbp, 0x0
rorx rdi, rax, 0x0
rorx rdi, rbx, 0x5e
rorx rdi, rcx, 0x5e
rorx rdi, rdx, 0x5e
rorx rdi, rdi, 0x5e
rorx rdi, r8, 0x5e
rorx rdi, r9, 0x5e
rorx rdi, r10, 0x5e
rorx rdi, r11, 0x5e
rorx rdi, r12, 0x5e
rorx rdi, r13, 0x5e
rorx rdi, r14, 0x5e
rorx rdi, r15, 0x5e
rorx rdi, rsp, 0x5e
rorx rdi, rsi, 0x5e
rorx rdi, rbp, 0x5e
rorx r8, rax, 0x5e
rorx r8, rbx, 0x5e
rorx r8, rcx, 0x5e
rorx r8, rdx, 0x5e
rorx r8, rdi, 0x5e
rorx r8, r8, 0x5e
rorx r8, r9, 0x5e
rorx r8, r10, 0x5e
rorx r8, r11, 0x5e
rorx r8, r12, 0x5e
rorx r8, r13, 0x5e
rorx r8, r14, 0x5e
rorx r8, r15, 0x5e
rorx r8, rsp, 0x5e
rorx r8, rsi, 0x5e
rorx r8, rbp, 0x5e
rorx r9, rax, 0x5e
rorx r9, rbx, 0x5e
rorx r9, rcx, 0x5e
rorx r9, rdx, 0x5e
rorx r9, rdi, 0x5e
rorx r9, r8, 0x5e
rorx r9, r9, 0x5e
rorx r9, r10, 0x5e
rorx r9, r11, 0x5e
rorx r9, r12, 0x5e
rorx r9, r13, 0x5e
rorx r9, r14, 0x5e
rorx r9, r15, 0x5e
rorx r9, rsp, 0x5e
rorx r9, rsi, 0x5e
rorx r9, rbp, 0x5e
rorx r10, rax, 0x5e
rorx r10, rbx, 0x5e
rorx r10, rcx, 0x5e
rorx r10, rdx, 0x5e
rorx r10, rdi, 0x5e
rorx r10, r8, 0x5e
rorx r10, r9, 0x5e
rorx r10, r10, 0x18
rorx r10, r11, 0x18
rorx r10, r12, 0x18
rorx r10, r13, 0x18
rorx r10, r14, 0x18
rorx r10, r15, 0x18
rorx r10, rsp, 0x18
rorx r10, rsi, 0x18
rorx r10, rbp, 0x18
rorx r11, rax, 0x18
rorx r11, rbx, 0x18
rorx r11, rcx, 0x18
rorx r11, rdx, 0x18
rorx r11, rdi, 0x18
rorx r11, r8, 0x18
rorx r11, r9, 0x18
rorx r11, r10, 0x18
rorx r11, r11, 0x18
rorx r11, r12, 0x18
rorx r11, r13, 0x18
rorx r11, r14, 0x18
rorx r11, r15, 0x18
rorx r11, rsp, 0x18
rorx r11, rsi, 0x18
rorx r11, rbp, 0x18
rorx r12, rax, 0x18
rorx r12, rbx, 0x18
rorx r12, rcx, 0x18
rorx r12, rdx, 0x18
rorx r12, rdi, 0x18
rorx r12, r8, 0x18
rorx r12, r9, 0x18
rorx r12, r10, 0x18
rorx r12, r11, 0x18
rorx r12, r12, 0x18
rorx r12, r13, 0x18
rorx r12, r14, 0x18
rorx r12, r15, 0x18
rorx r12, rsp, 0x18
rorx r12, rsi, 0x18
rorx r12, rbp, 0x18
rorx r13, rax, 0x18
rorx r13, rbx, 0x18
rorx r13, rcx, 0x18
rorx r13, rdx, 0x18
rorx r13, rdi, 0x18
rorx r13, r8, 0x18
rorx r13, r9, 0x18
rorx r13, r10, 0x18
rorx r13, r11, 0x18
rorx r13, r12, 0x18
rorx r13, r13, 0x18
rorx r13, r14, 0x18
rorx r13, r15, 0x18
rorx r13, rsp, 0x18
rorx r13, rsi, 0x18
rorx r13, rbp, 0x18
rorx r14, rax, 0x18
rorx r14, rbx, 0x18
rorx r14, rcx, 0x18
rorx r14, rdx, 0x18
rorx r14, rdi, 0x18
rorx r14, r8, 0x18
rorx r14, r9, 0x18
rorx r14, r10, 0x18
rorx r14, r11, 0x18
rorx r14, r12, 0x18
rorx r14, r13, 0x18
rorx r14, r14, 0x18
rorx r14, r15, 0x18
rorx r14, rsp, 0x18
rorx r14, rsi, 0x18
rorx r14, rbp, 0x18
rorx r15, rax, 0x18
rorx r15, rbx, 0x18
rorx r15, rcx, 0x18
rorx r15, rdx, 0x18
rorx r15, rdi, 0x18
rorx r15, r8, 0x18
rorx r15, r9, 0x18
rorx r15, r10, 0x18
rorx r15, r11, 0x18
rorx r15, r12, 0x18
rorx r15, r13, 0x18
rorx r15, r14, 0x18
rorx r15, r15, 0x18
rorx r15, rsp, 0x18
rorx r15, rsi, 0x18
rorx r15, rbp, 0x18
rorx rsp, rax, 0x18
rorx rsp, rbx, 0x18
rorx rsp, rcx, 0x18
rorx rsp, rdx, 0x18
rorx rsp, rdi, 0x18
rorx rsp, r8, 0x18
rorx rsp, r9, 0x18
rorx rsp, r10, 0x18
rorx rsp, r11, 0x18
rorx rsp, r12, 0x18
rorx rsp, r13, 0x18
rorx rsp, r14, 0x18
rorx rsp, r15, 0x18
rorx rsp, rsp, 0x18
rorx rsp, rsi, 0x18
rorx rsp, rbp, 0x18
rorx rsi, rax, 0x18
rorx rsi, rbx, 0x18
rorx rsi, rcx, 0x18
rorx rsi, rdx, 0x18
rorx rsi, rdi, 0x18
rorx rsi, r8, 0x18
rorx rsi, r9, 0x18
rorx rsi, r10, 0x18
rorx rsi, r11, 0x18
rorx rsi, r12, 0x18
rorx rsi, r13, 0x18
rorx rsi, r14, 0x18
rorx rsi, r15, 0x18
rorx rsi, rsp, 0x18
rorx rsi, rsi, 0x18
rorx rsi, rbp, 0x18
rorx rbp, rax, 0x18
rorx rbp, rbx, 0x18
rorx rbp, rcx, 0x18
rorx rbp, rdx, 0x18
rorx rbp, rdi, 0x18
rorx rbp, r8, 0x18
rorx rbp, r9, 0x18
rorx rbp, r10, 0x18
rorx rbp, r11, 0x18
rorx rbp, r12, 0x1d
rorx rbp, r13, 0x1d
rorx rbp, r14, 0x1d
rorx rbp, r15, 0x1d
rorx rbp, rsp, 0x1d
rorx rbp, rsi, 0x1d
rorx rbp, rbp, 0x1d
rorx rax, [rax], 0xa8
rorx rax, [rbx], 0xa8
rorx rax, [rcx], 0xa8
rorx rax, [rdx], 0xa8
rorx rax, [rdi], 0xa8
rorx rax, [r8], 0xa8
rorx rax, [r9], 0xa8
rorx rax, [r10], 0xa8
rorx rax, [r11], 0xa8
rorx rax, [r12], 0xa8
rorx rax, [r13], 0xa8
rorx rax, [r14], 0xa8
rorx rax, [r15], 0xa8
rorx rax, [rsp], 0xa8
rorx rax, [rsi], 0xa8
rorx rax, [rbp], 0xa8
rorx rbx, [rax], 0xa8
rorx rbx, [rbx], 0xa8
rorx rbx, [rcx], 0xa8
rorx rbx, [rdx], 0xa8
rorx rbx, [rdi], 0xa8
rorx rbx, [r8], 0xa8
rorx rbx, [r9], 0xa8
rorx rbx, [r10], 0xa8
rorx rbx, [r11], 0xa8
rorx rbx, [r12], 0xa8
rorx rbx, [r13], 0xa8
rorx rbx, [r14], 0xa8
rorx rbx, [r15], 0xa8
rorx rbx, [rsp], 0xa8
rorx rbx, [rsi], 0xa8
rorx rbx, [rbp], 0xa8
rorx rcx, [rax], 0xa8
rorx rcx, [rbx], 0xa8
rorx rcx, [rcx], 0xa8
rorx rcx, [rdx], 0xa8
rorx rcx, [rdi], 0xa8
rorx rcx, [r8], 0xa8
rorx rcx, [r9], 0xa8
rorx rcx, [r10], 0xa8
rorx rcx, [r11], 0xa8
rorx rcx, [r12], 0xa8
rorx rcx, [r13], 0xa8
rorx rcx, [r14], 0xa8
rorx rcx, [r15], 0xa8
rorx rcx, [rsp], 0x5e
rorx rcx, [rsi], 0x5e
rorx rcx, [rbp], 0x5e
rorx rdx, [rax], 0x5e
rorx rdx, [rbx], 0x5e
rorx rdx, [rcx], 0x5e
rorx rdx, [rdx], 0x5e
rorx rdx, [rdi], 0x5e
rorx rdx, [r8], 0x5e
rorx rdx, [r9], 0x5e
rorx rdx, [r10], 0x5e
rorx rdx, [r11], 0x5e
rorx rdx, [r12], 0x5e
rorx rdx, [r13], 0x5e
rorx rdx, [r14], 0x5e
rorx rdx, [r15], 0x5e
rorx rdx, [rsp], 0x5e
rorx rdx, [rsi], 0x5e
rorx rdx, [rbp], 0x5e
rorx rdi, [rax], 0x5e
rorx rdi, [rbx], 0x65
rorx rdi, [rcx], 0x65
rorx rdi, [rdx], 0x65
rorx rdi, [rdi], 0x65
rorx rdi, [r8], 0x65
rorx rdi, [r9], 0x65
rorx rdi, [r10], 0x65
rorx rdi, [r11], 0x65
rorx rdi, [r12], 0x65
rorx rdi, [r13], 0x65
rorx rdi, [r14], 0x65
rorx rdi, [r15], 0x65
rorx rdi, [rsp], 0x65
rorx rdi, [rsi], 0x65
rorx rdi, [rbp], 0x65
rorx r8, [rax], 0x65
rorx r8, [rbx], 0x65
rorx r8, [rcx], 0x65
rorx r8, [rdx], 0x65
rorx r8, [rdi], 0x65
rorx r8, [r8], 0x65
rorx r8, [r9], 0x65
rorx r8, [r10], 0x65
rorx r8, [r11], 0x65
rorx r8, [r12], 0x65
rorx r8, [r13], 0x65
rorx r8, [r14], 0x65
rorx r8, [r15], 0x65
rorx r8, [rsp], 0x65
rorx r8, [rsi], 0x65
rorx r8, [rbp], 0x65
rorx r9, [rax], 0x65
rorx r9, [rbx], 0x5e
rorx r9, [rcx], 0x65
rorx r9, [rdx], 0x65
rorx r9, [rdi], 0x65
rorx r9, [r8], 0x65
rorx r9, [r9], 0x65
rorx r9, [r10], 0x65
rorx r9, [r11], 0x65
rorx r9, [r12], 0x65
rorx r9, [r13], 0x65
rorx r9, [r14], 0x65
rorx r9, [r15], 0x65
rorx r9, [rsp], 0x65
rorx r9, [rsi], 0x65
rorx r9, [rbp], 0x65
rorx r10, [rax], 0x65
rorx r10, [rbx], 0x65
rorx r10, [rcx], 0x65
rorx r10, [rdx], 0x65
rorx r10, [rdi], 0x65
rorx r10, [r8], 0x65
rorx r10, [r9], 0x65
rorx r10, [r10], 0x65
rorx r10, [r11], 0x65
rorx r10, [r12], 0x65
rorx r10, [r13], 0x65
rorx r10, [r14], 0x65
rorx r10, [r15], 0x65
rorx r10, [rsp], 0x65
rorx r10, [rsi], 0x65
rorx r10, [rbp], 0x65
rorx r11, [rax], 0x65
rorx r11, [rbx], 0x65
rorx r11, [rcx], 0x65
rorx r11, [rdx], 0x65
rorx r11, [rdi], 0x65
rorx r11, [r8], 0x65
rorx r11, [r9], 0x65
rorx r11, [r10], 0x65
rorx r11, [r11], 0x65
rorx r11, [r12], 0x65
rorx r11, [r13], 0x65
rorx r11, [r14], 0x65
rorx r11, [r15], 0x65
rorx r11, [rsp], 0x65
rorx r11, [rsi], 0x65
rorx r11, [rbp], 0x65
rorx r12, [rax], 0x65
rorx r12, [rbx], 0x65
rorx r12, [rcx], 0x65
rorx r12, [rdx], 0x65
rorx r12, [rdi], 0x65
rorx r12, [r8], 0x65
rorx r12, [r9], 0x65
rorx r12, [r10], 0x65
rorx r12, [r11], 0x65
rorx r12, [r12], 0x65
rorx r12, [r13], 0x65
rorx r12, [r14], 0x65
rorx r12, [r15], 0x65
rorx r12, [rsp], 0x65
rorx r12, [rsi], 0x65
rorx r12, [rbp], 0x65
rorx r13, [rax], 0x65
rorx r13, [rbx], 0x65
rorx r13, [rcx], 0x65
rorx r13, [rdx], 0x65
rorx r13, [rdi], 0x65
rorx r13, [r8], 0x65
rorx r13, [r9], 0x65
rorx r13, [r10], 0x65
rorx r13, [r11], 0x65
rorx r13, [r12], 0x65
rorx r13, [r13], 0x65
rorx r13, [r14], 0x65
rorx r13, [r15], 0x5e
rorx r13, [rsp], 0x5e
rorx r13, [rsi], 0x5e
rorx r13, [rbp], 0x5e
rorx r14, [rax], 0x5e
rorx r14, [rbx], 0x5e
rorx r14, [rcx], 0x5e
rorx r14, [rdx], 0x5e
rorx r14, [rdi], 0x5e
rorx r14, [r8], 0x5e
rorx r14, [r9], 0x5e
rorx r14, [r10], 0x5e
rorx r14, [r11], 0x5e
rorx r14, [r12], 0x5e
rorx r14, [r13], 0x5e
rorx r14, [r14], 0x5e
rorx r14, [r15], 0x5e
rorx r14, [rsp], 0x5e
rorx r14, [rsi], 0x5e
rorx r14, [rbp], 0x5e
rorx r15, [rax], 0x5e
rorx r15, [rbx], 0x5e
rorx r15, [rcx], 0x5e
rorx r15, [rdx], 0x5e
rorx r15, [rdi], 0x5e
rorx r15, [r8], 0x5e
rorx r15, [r9], 0x5e
rorx r15, [r10], 0x5e
rorx r15, [r11], 0x5e
rorx r15, [r12], 0x5e
rorx r15, [r13], 0x5e
rorx r15, [r14], 0x5e
rorx r15, [r15], 0x5e
rorx r15, [rsp], 0x5e
rorx r15, [rsi], 0x5e
rorx r15, [rbp], 0x5e
rorx rsp, [rax], 0x5e
rorx rsp, [rbx], 0x5e
rorx rsp, [rcx], 0x5e
rorx rsp, [rdx], 0x5e
rorx rsp, [rdi], 0x5e
rorx rsp, [r8], 0x5e
rorx rsp, [r9], 0x5e
rorx rsp, [r10], 0x5e
rorx rsp, [r11], 0x5e
rorx rsp, [r12], 0x5e
rorx rsp, [r13], 0x5e
rorx rsp, [r14], 0x5e
rorx rsp, [r15], 0x5e
rorx rsp, [rsp], 0x5e
rorx rsp, [rsi], 0x5e
rorx rsp, [rbp], 0x5e
rorx rsi, [rax], 0x5e
rorx rsi, [rbx], 0x5e
rorx rsi, [rcx], 0x5e
rorx rsi, [rdx], 0x5e
rorx rsi, [rdi], 0x5e
rorx rsi, [r8], 0x5e
rorx rsi, [r9], 0x5e
rorx rsi, [r10], 0x5e
rorx rsi, [r11], 0x5e
rorx rsi, [r12], 0x5e
rorx rsi, [r13], 0x5e
rorx rsi, [r14], 0x5e
rorx rsi, [r15], 0x5e
rorx rsi, [rsp], 0x5e
rorx rsi, [rsi], 0x5e
rorx rsi, [rbp], 0x5e
rorx rbp, [rax], 0x5e
rorx rbp, [rbx], 0x5e
rorx rbp, [rcx], 0x5e
rorx rbp, [rdx], 0x5e
rorx rbp, [rdi], 0x5e
rorx rbp, [r8], 0x5e
rorx rbp, [r9], 0x5e
rorx rbp, [r10], 0x5e
rorx rbp, [r11], 0x5e
rorx rbp, [r12], 0x5e
rorx rbp, [r13], 0x5e
rorx rbp, [r14], 0x5e
rorx rbp, [r15], 0x5e
rorx rbp, [rsp], 0x5e
rorx rbp, [rsi], 0x5e
rorx rbp, [rbp], 0x5e
rorx eax, eax, 0xfe
rorx eax, ebx, 0xfe
rorx eax, ecx, 0xfe
rorx eax, edx, 0xfe
rorx eax, edi, 0xfe
rorx eax, r8d, 0xfe
rorx eax, r9d, 0xfe
rorx eax, r10d, 0xfe
rorx eax, r11d, 0xfe
rorx eax, r12d, 0xfe
rorx eax, r13d, 0xfe
rorx eax, r14d, 0xfe
rorx eax, r15d, 0xfe
rorx eax, esp, 0xfe
rorx eax, esi, 0xfe
rorx eax, ebp, 0xfe
rorx ebx, eax, 0xfe
rorx ebx, ebx, 0xfe
rorx ebx, ecx, 0xfe
rorx ebx, edx, 0xfe
rorx ebx, edi, 0xfe
rorx ebx, r8d, 0xfe
rorx ebx, r9d, 0xfe
rorx ebx, r10d, 0xfe
rorx ebx, r11d, 0xfe
rorx ebx, r12d, 0xfe
rorx ebx, r13d, 0xfe
rorx ebx, r14d, 0xfe
rorx ebx, r15d, 0xfe
rorx ebx, esp, 0xfe
rorx ebx, esi, 0xfe
rorx ebx, ebp, 0xfe
rorx ecx, eax, 0xfe
rorx ecx, ebx, 0xfe
rorx ecx, ecx, 0xfe
rorx ecx, edx, 0xfe
rorx ecx, edi, 0xfe
rorx ecx, r8d, 0xfe
rorx ecx, r9d, 0xfe
rorx ecx, r10d, 0xfe
rorx ecx, r11d, 0xfe
rorx ecx, r12d, 0xfe
rorx ecx, r13d, 0xfe
rorx ecx, r14d, 0xfe
rorx ecx, r15d, 0xfe
rorx ecx, esp, 0xfe
rorx ecx, esi, 0xfe
rorx ecx, ebp, 0xfe
rorx edx, eax, 0xfe
rorx edx, ebx, 0xea
rorx edx, ecx, 0xea
rorx edx, edx, 0xea
rorx edx, edi, 0xea
rorx edx, r8d, 0xea
rorx edx, r9d, 0xea
rorx edx, r10d, 0xea
rorx edx, r11d, 0xea
rorx edx, r12d, 0xea
rorx edx, r13d, 0xea
rorx edx, r14d, 0xea
rorx edx, r15d, 0xea
rorx edx, esp, 0xea
rorx edx, esi, 0xea
rorx edx, ebp, 0xea
rorx edi, eax, 0xea
rorx edi, ebx, 0xea
rorx edi, ecx, 0xea
rorx edi, edx, 0xea
rorx edi, edi, 0xea
rorx edi, r8d, 0xea
rorx edi, r9d, 0xea
rorx edi, r10d, 0xea
rorx edi, r11d, 0xea
rorx edi, r12d, 0xea
rorx edi, r13d, 0xea
rorx edi, r14d, 0xea
rorx edi, r15d, 0xea
rorx edi, esp, 0xea
rorx edi, esi, 0xea
rorx edi, ebp, 0xea
rorx r8d, eax, 0xea
rorx r8d, ebx, 0xea
rorx r8d, ecx, 0xea
rorx r8d, edx, 0xea
rorx r8d, edi, 0xea
rorx r8d, r8d, 0xea
rorx r8d, r9d, 0xea
rorx r8d, r10d, 0xea
rorx r8d, r11d, 0xea
rorx r8d, r12d, 0xea
rorx r8d, r13d, 0xea
rorx r8d, r14d, 0xea
rorx r8d, r15d, 0xea
rorx r8d, esp, 0xea
rorx r8d, esi, 0xea
rorx r8d, ebp, 0xea
rorx r9d, eax, 0xea
rorx r9d, ebx, 0xea
rorx r9d, ecx, 0xea
rorx r9d, edx, 0xea
rorx r9d, edi, 0xea
rorx r9d, r8d, 0xea
rorx r9d, r9d, 0xea
rorx r9d, r10d, 0xea
rorx r9d, r11d, 0xea
rorx r9d, r12d, 0xea
rorx r9d, r13d, 0xea
rorx r9d, r14d, 0xea
rorx r9d, r15d, 0xea
rorx r9d, esp, 0xea
rorx r9d, esi, 0xea
rorx r9d, ebp, 0xea
rorx r10d, eax, 0xea
rorx r10d, ebx, 0xea
rorx r10d, ecx, 0xea
rorx r10d, edx, 0xea
rorx r10d, edi, 0xea
rorx r10d, r8d, 0xea
rorx r10d, r9d, 0xea
rorx r10d, r10d, 0xea
rorx r10d, r11d, 0x4d
rorx r10d, r12d, 0x4d
rorx r10d, r13d, 0x4d
rorx r10d, r14d, 0x4d
rorx r10d, r15d, 0x4d
rorx r10d, esp, 0x4d
rorx r10d, esi, 0x4d
rorx r10d, ebp, 0x4d
rorx r11d, eax, 0x4d
rorx r11d, ebx, 0x4d
rorx r11d, ecx, 0x4d
rorx r11d, edx, 0x4d
rorx r11d, edi, 0x4d
rorx r11d, r8d, 0x4d
rorx r11d, r9d, 0x4d
rorx r11d, r10d, 0x4d
rorx r11d, r11d, 0x4d
rorx r11d, r12d, 0x4d
rorx r11d, r13d, 0x4d
rorx r11d, r14d, 0x4d
rorx r11d, r15d, 0x4d
rorx r11d, esp, 0x4d
rorx r11d, esi, 0x4d
rorx r11d, ebp, 0x4d
rorx r12d, eax, 0x4d
rorx r12d, ebx, 0x4d
rorx r12d, ecx, 0x4d
rorx r12d, edx, 0x4d
rorx r12d, edi, 0x4d
rorx r12d, r8d, 0x4d
rorx r12d, r9d, 0x4d
rorx r12d, r10d, 0x4d
rorx r12d, r11d, 0x4d
rorx r12d, r12d, 0x4d
rorx r12d, r13d, 0x4d
rorx r12d, r14d, 0x4d
rorx r12d, r15d, 0x4d
rorx r12d, esp, 0x4d
rorx r12d, esi, 0x4d
rorx r12d, ebp, 0x4d
rorx r13d, eax, 0x4d
rorx r13d, ebx, 0x4d
rorx r13d, ecx, 0x4d
rorx r13d, edx, 0x4d
rorx r13d, edi, 0x4d
rorx r13d, r8d, 0x4d
rorx r13d, r9d, 0x4d
rorx r13d, r10d, 0x4d
rorx r13d, r11d, 0x4d
rorx r13d, r12d, 0x4d
rorx r13d, r13d, 0x4d
rorx r13d, r14d, 0x4d
rorx r13d, r15d, 0x4d
rorx r13d, esp, 0x4d
rorx r13d, esi, 0x4d
rorx r13d, ebp, 0x4d
rorx r14d, eax, 0x4d
rorx r14d, ebx, 0x4d
rorx r14d, ecx, 0x4d
rorx r14d, edx, 0x4d
rorx r14d, edi, 0x4d
rorx r14d, r8d, 0x4d
rorx r14d, r9d, 0x4d
rorx r14d, r10d, 0x4d
rorx r14d, r11d, 0x4d
rorx r14d, r12d, 0x4d
rorx r14d, r13d, 0x4d
rorx r14d, r14d, 0x4d
rorx r14d, r15d, 0x4d
rorx r14d, esp, 0x4d
rorx r14d, esi, 0x4d
rorx r14d, ebp, 0x4d
rorx r15d, eax, 0x4d
rorx r15d, ebx, 0x4d
rorx r15d, ecx, 0x4d
rorx r15d, edx, 0x4d
rorx r15d, edi, 0x4d
rorx r15d, r8d, 0x4d
rorx r15d, r9d, 0x4d
rorx r15d, r10d, 0x4d
rorx r15d, r11d, 0x4d
rorx r15d, r12d, 0x4d
rorx r15d, r13d, 0x4d
rorx r15d, r14d, 0x4d
rorx r15d, r15d, 0x4d
rorx r15d, esp, 0x4d
rorx r15d, esi, 0x4d
rorx r15d, ebp, 0x4d
rorx esp, eax, 0x4d
rorx esp, ebx, 0x4d
rorx esp, ecx, 0x4d
rorx esp, edx, 0x4d
rorx esp, edi, 0x4d
rorx esp, r8d, 0x4d
rorx esp, r9d, 0x4d
rorx esp, r10d, 0x4d
rorx esp, r11d, 0x4d
rorx esp, r12d, 0x4d
rorx esp, r13d, 0x4d
rorx esp, r14d, 0x4d
rorx esp, r15d, 0x4d
rorx esp, esp, 0x4d
rorx esp, esi, 0x4d
rorx esp, ebp, 0x4d
rorx esi, eax, 0x4d
rorx esi, ebx, 0x4d
rorx esi, ecx, 0x4d
rorx esi, edx, 0x4d
rorx esi, edi, 0x4d
rorx esi, r8d, 0x23
rorx esi, r9d, 0x23
rorx esi, r10d, 0x23
rorx esi, r11d, 0x23
rorx esi, r12d, 0x23
rorx esi, r13d, 0x23
rorx esi, r14d, 0x23
rorx esi, r15d, 0x23
rorx esi, esp, 0x23
rorx esi, esi, 0x23
rorx esi, ebp, 0x23
rorx ebp, eax, 0x23
rorx ebp, ebx, 0x23
rorx ebp, ecx, 0x23
rorx ebp, edx, 0x23
rorx ebp, edi, 0x23
rorx ebp, r8d, 0x23
rorx ebp, r9d, 0x23
rorx ebp, r10d, 0x23
rorx ebp, r11d, 0x23
rorx ebp, r12d, 0x23
rorx ebp, r13d, 0x23
rorx ebp, r14d, 0x23
rorx ebp, r15d, 0x23
rorx ebp, esp, 0x23
rorx ebp, esi, 0x23
rorx ebp, ebp, 0x23
rorx eax, [eax], 0x34
rorx eax, [ebx], 0x34
rorx eax, [ecx], 0x34
rorx eax, [edx], 0x34
rorx eax, [edi], 0x34
rorx eax, [r8d], 0x34
rorx eax, [r9d], 0x34
rorx eax, [r10d], 0x34
rorx eax, [r11d], 0x34
rorx eax, [r12d], 0x34
rorx eax, [r13d], 0x34
rorx eax, [r14d], 0x34
rorx eax, [r15d], 0x34
rorx eax, [esp], 0x34
rorx eax, [esi], 0x34
rorx eax, [ebp], 0x34
rorx ebx, [eax], 0x34
rorx ebx, [ebx], 0x34
rorx ebx, [ecx], 0x34
rorx ebx, [edx], 0x34
rorx ebx, [edi], 0x34
rorx ebx, [r8d], 0x34
rorx ebx, [r9d], 0x34
rorx ebx, [r10d], 0x34
rorx ebx, [r11d], 0x34
rorx ebx, [r12d], 0x34
rorx ebx, [r13d], 0x34
rorx ebx, [r14d], 0x34
rorx ebx, [r15d], 0x34
rorx ebx, [esp], 0x34
rorx ebx, [esi], 0x34
rorx ebx, [ebp], 0x34
rorx ecx, [eax], 0x34
rorx ecx, [ebx], 0x34
rorx ecx, [ecx], 0x34
rorx ecx, [edx], 0x34
rorx ecx, [edi], 0x34
rorx ecx, [r8d], 0x34
rorx ecx, [r9d], 0x34
rorx ecx, [r10d], 0x34
rorx ecx, [r11d], 0x34
rorx ecx, [r12d], 0x34
rorx ecx, [r13d], 0x34
rorx ecx, [r14d], 0x34
rorx ecx, [r15d], 0x34
rorx ecx, [esp], 0x34
rorx ecx, [esi], 0x34
rorx ecx, [ebp], 0x34
rorx edx, [eax], 0x34
rorx edx, [ebx], 0x34
rorx edx, [ecx], 0x34
rorx edx, [edx], 0x71
rorx edx, [edi], 0x71
rorx edx, [r8d], 0x71
rorx edx, [r9d], 0x71
rorx edx, [r10d], 0x71
rorx edx, [r11d], 0x71
rorx edx, [r12d], 0x71
rorx edx, [r13d], 0x71
rorx edx, [r14d], 0x71
rorx edx, [r15d], 0x71
rorx edx, [esp], 0x71
rorx edx, [esi], 0x71
rorx edx, [ebp], 0x71
rorx edi, [eax], 0x71
rorx edi, [ebx], 0x71
rorx edi, [ecx], 0x71
rorx edi, [edx], 0x71
rorx edi, [edi], 0x71
rorx edi, [r8d], 0x71
rorx edi, [r9d], 0x71
rorx edi, [r10d], 0x71
rorx edi, [r11d], 0x71
rorx edi, [r12d], 0x71
rorx edi, [r13d], 0x71
rorx edi, [r14d], 0x71
rorx edi, [r15d], 0x71
rorx edi, [esp], 0x71
rorx edi, [esi], 0x71
rorx edi, [ebp], 0x71
rorx r8d, [eax], 0x71
rorx r8d, [ebx], 0x71
rorx r8d, [ecx], 0x71
rorx r8d, [edx], 0x71
rorx r8d, [edi], 0x71
rorx r8d, [r8d], 0x71
rorx r8d, [r9d], 0x71
rorx r8d, [r10d], 0x71
rorx r8d, [r11d], 0x71
rorx r8d, [r12d], 0x71
rorx r8d, [r13d], 0x71
rorx r8d, [r14d], 0x71
rorx r8d, [r15d], 0x71
rorx r8d, [esp], 0x71
rorx r8d, [esi], 0x71
rorx r8d, [ebp], 0x71
rorx r9d, [eax], 0x71
rorx r9d, [ebx], 0x71
rorx r9d, [ecx], 0x71
rorx r9d, [edx], 0x71
rorx r9d, [edi], 0x71
rorx r9d, [r8d], 0x71
rorx r9d, [r9d], 0x71
rorx r9d, [r10d], 0x71
rorx r9d, [r11d], 0x71
rorx r9d, [r12d], 0x71
rorx r9d, [r13d], 0x71
rorx r9d, [r14d], 0x71
rorx r9d, [r15d], 0x71
rorx r9d, [esp], 0x71
rorx r9d, [esi], 0x71
rorx r9d, [ebp], 0x71
rorx r10d, [eax], 0x71
rorx r10d, [ebx], 0x71
rorx r10d, [ecx], 0x71
rorx r10d, [edx], 0x71
rorx r10d, [edi], 0x71
rorx r10d, [r8d], 0x71
rorx r10d, [r9d], 0x71
rorx r10d, [r10d], 0x71
rorx r10d, [r11d], 0x71
rorx r10d, [r12d], 0x71
rorx r10d, [r13d], 0x71
rorx r10d, [r14d], 0x71
rorx r10d, [r15d], 0x71
rorx r10d, [esp], 0x71
rorx r10d, [esi], 0x71
rorx r10d, [ebp], 0x71
rorx r11d, [eax], 0x71
rorx r11d, [ebx], 0x71
rorx r11d, [ecx], 0x71
rorx r11d, [edx], 0x71
rorx r11d, [edi], 0x71
rorx r11d, [r8d], 0x71
rorx r11d, [r9d], 0x71
rorx r11d, [r10d], 0x71
rorx r11d, [r11d], 0x71
rorx r11d, [r12d], 0x71
rorx r11d, [r13d], 0x71
rorx r11d, [r14d], 0x71
rorx r11d, [r15d], 0x71
rorx r11d, [esp], 0x71
rorx r11d, [esi], 0x71
rorx r11d, [ebp], 0x71
rorx r12d, [eax], 0x71
rorx r12d, [ebx], 0x71
rorx r12d, [ecx], 0x71
rorx r12d, [edx], 0x71
rorx r12d, [edi], 0x71
rorx r12d, [r8d], 0x71
rorx r12d, [r9d], 0x71
rorx r12d, [r10d], 0x71
rorx r12d, [r11d], 0x71
rorx r12d, [r12d], 0x71
rorx r12d, [r13d], 0x71
rorx r12d, [r14d], 0x71
rorx r12d, [r15d], 0x71
rorx r12d, [esp], 0x71
rorx r12d, [esi], 0x71
rorx r12d, [ebp], 0x71
rorx r13d, [eax], 0x71
rorx r13d, [ebx], 0x71
rorx r13d, [ecx], 0x71
rorx r13d, [edx], 0x71
rorx r13d, [edi], 0x71
rorx r13d, [r8d], 0x71
rorx r13d, [r9d], 0x71
rorx r13d, [r10d], 0x71
rorx r13d, [r11d], 0x71
rorx r13d, [r12d], 0x71
rorx r13d, [r13d], 0x71
rorx r13d, [r14d], 0x71
rorx r13d, [r15d], 0x71
rorx r13d, [esp], 0x71
rorx r13d, [esi], 0x71
rorx r13d, [ebp], 0x71
rorx r14d, [eax], 0x71
rorx r14d, [ebx], 0x71
rorx r14d, [ecx], 0x71
rorx r14d, [edx], 0x71
rorx r14d, [edi], 0x71
rorx r14d, [r8d], 0x71
rorx r14d, [r9d], 0x71
rorx r14d, [r10d], 0x71
rorx r14d, [r11d], 0x71
rorx r14d, [r12d], 0x71
rorx r14d, [r13d], 0x71
rorx r14d, [r14d], 0xfd
rorx r14d, [r15d], 0xfd
rorx r14d, [esp], 0xfd
rorx r14d, [esi], 0xfd
rorx r14d, [ebp], 0xfd
rorx r15d, [eax], 0xfd
rorx r15d, [ebx], 0xfd
rorx r15d, [ecx], 0xfd
rorx r15d, [edx], 0xfd
rorx r15d, [edi], 0xfd
rorx r15d, [r8d], 0xfd
rorx r15d, [r9d], 0xfd
rorx r15d, [r10d], 0xfd
rorx r15d, [r11d], 0xfd
rorx r15d, [r12d], 0xfd
rorx r15d, [r13d], 0xfd
rorx r15d, [r14d], 0xfd
rorx r15d, [r15d], 0xfd
rorx r15d, [esp], 0xfd
rorx r15d, [esi], 0xfd
rorx r15d, [ebp], 0xfd
rorx esp, [eax], 0xfd
rorx esp, [ebx], 0xfd
rorx esp, [ecx], 0xfd
rorx esp, [edx], 0xfd
rorx esp, [edi], 0xfd
rorx esp, [r8d], 0xfd
rorx esp, [r9d], 0xfd
rorx esp, [r10d], 0xfd
rorx esp, [r11d], 0xfd
rorx esp, [r12d], 0xfd
rorx esp, [r13d], 0xfd
rorx esp, [r14d], 0xfd
rorx esp, [r15d], 0xfd
rorx esp, [esp], 0xfd
rorx esp, [esi], 0xfd
rorx esp, [ebp], 0xfd
rorx esi, [eax], 0xfd
rorx esi, [ebx], 0xfd
rorx esi, [ecx], 0xfd
rorx esi, [edx], 0xfd
rorx esi, [edi], 0xfd
rorx esi, [r8d], 0xfd
rorx esi, [r9d], 0xfd
rorx esi, [r10d], 0xfd
rorx esi, [r11d], 0xfd
rorx esi, [r12d], 0xfd
rorx esi, [r13d], 0xfd
rorx esi, [r14d], 0xfd
rorx esi, [r15d], 0xfd
rorx esi, [esp], 0xfd
rorx esi, [esi], 0xfd
rorx esi, [ebp], 0xfd
rorx ebp, [eax], 0xfd
rorx ebp, [ebx], 0xfd
rorx ebp, [ecx], 0xfd
rorx ebp, [edx], 0xfd
rorx ebp, [edi], 0xfd
rorx ebp, [r8d], 0xfd
rorx ebp, [r9d], 0xfd
rorx ebp, [r10d], 0xfd
rorx ebp, [r11d], 0xfd
rorx ebp, [r12d], 0xfd
rorx ebp, [r13d], 0xfd
rorx ebp, [r14d], 0xfd
rorx ebp, [r15d], 0xfd
rorx ebp, [esp], 0xfd
rorx ebp, [esi], 0xfd
rorx ebp, [ebp], 0xfd
| 21.05706 | 23 | 0.670188 |
911eb013b91b0ad4597ca8ffd6ef9102b2f11ed3 | 89 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math32
PUBLIC _sin
EXTERN cm32_sdcc_sin
defc _sin = cm32_sdcc_sin
| 11.125 | 26 | 0.797753 |
38076c20b9f719bf1b1928ee7d9d63d329d50053 | 854 | asm | Assembly | libsrc/stdio_new/buf/slbb0/slbb0_appendchar.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/stdio_new/buf/slbb0/slbb0_appendchar.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/stdio_new/buf/slbb0/slbb0_appendchar.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ; slbb0_appendchar
; 08.2009 aralbrec
XLIB slbb0_appendchar
XDEF slbb0_appendchar_lib
; append the char to the end of the buffer
;
; enter : hl = & struct slbb
; d = char to insert
; uses : af, hl
; exit : carry set = success
; carry reset = buffer full
.slbb0_appendchar
ld a,(hl) ; a = end
inc (hl) ; end++
inc hl
cp (hl) ; compare to len
jr nc, full ; return if buffer full
.slbb0_appendchar_lib
inc hl
add a,(hl) ; add LSB of buffer address
inc hl
ld h,(hl)
ld l,a
jp nc, noinc
inc h
.noinc ; hl = end of buffer
ld (hl),d ; write char
scf ; success!
ret
.full
dec hl
dec (hl) ; fix end
ret
| 19.409091 | 58 | 0.480094 |
bf4344e71d6d25f64e3e11992b26e27f06824e53 | 1,066 | asm | Assembly | programs/oeis/274/A274701.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/274/A274701.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/274/A274701.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A274701: First differences of A259280.
; 1,2,1,2,2,2,3,2,3,2,3,3,3,3,3,4,3,4,3,4,3,4,4,4,4,4,4,4,5,4,5,4,5,4,5,4,5,5,5,5,5,5,5,5,5,6,5,6,5,6,5,6,5,6,5,6,6,6,6,6,6,6,6,6,6,6,7,6,7,6,7,6,7,6,7,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,10,11,10,11,10,11,10,11,10,11,10,11,10,11,10,11,10,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,12,11,12,11,12,11,12,11,12,11,12,11,12,11,12,11,12
mov $4,2
mov $7,$0
lpb $4,1
mov $0,$7
sub $4,1
add $0,$4
sub $0,1
mov $2,$0
lpb $2,1
sub $0,$2
mov $5,2
mov $6,$2
mov $8,1
lpb $5,1
mov $2,1
sub $5,$8
add $0,$5
lpe
lpb $6,1
add $0,$6
add $8,1
trn $6,$8
lpe
sub $2,1
lpe
div $0,2
mov $3,$4
mov $8,$0
lpb $3,1
mov $1,$8
sub $3,1
lpe
lpe
lpb $7,1
sub $1,$8
mov $7,0
lpe
add $1,1
| 25.380952 | 589 | 0.514071 |
aac8c56fd55ef84c6125379c053121b14ff5ffcd | 759 | asm | Assembly | ASM/src/state.asm | ActuallyAdasi/OoT-Randomizer | 909dff2ba6fb1ebb29d79e1ede47138d36e256d5 | [
"MIT"
] | 289 | 2018-04-22T15:57:39.000Z | 2022-02-24T02:25:22.000Z | ASM/src/state.asm | ActuallyAdasi/OoT-Randomizer | 909dff2ba6fb1ebb29d79e1ede47138d36e256d5 | [
"MIT"
] | 197 | 2018-04-29T19:31:28.000Z | 2022-01-23T09:11:43.000Z | ASM/src/state.asm | ActuallyAdasi/OoT-Randomizer | 909dff2ba6fb1ebb29d79e1ede47138d36e256d5 | [
"MIT"
] | 161 | 2018-03-29T20:53:51.000Z | 2022-03-28T02:28:11.000Z | ;==================================================================================================
; Global variable storage for new code
;==================================================================================================
; Stores the item and player to give to
PLAYER_OVERRIDE_DATA:
.word 0x00000000, 0x00000000
; Stores the ITEM_DATA row of the current extended item.
EXTENDED_ITEM_DATA:
.word 0x00000000, 0x00000000, 0x00000000, 0x00000000
PENDING_SPECIAL_ITEM:
.byte 0x00
.byte 0x00
.byte 0x00
PENDING_SPECIAL_ITEM_END:
.byte 0x00
.align 4
TIME_TRAVEL_SAVED_EQUIPS:
.word 0x00000000 ; B and C buttons
.word 0x00000000 ; C button indexes
.halfword 0x0000 ; Equipment
.halfword 0x0000 ; Owned equipment
.align 4 | 29.192308 | 100 | 0.565217 |
a0e06ecd434d9ad71976ba608fe8125ca556cae1 | 569 | asm | Assembly | programs/oeis/063/A063223.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/063/A063223.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/063/A063223.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A063223: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 59 ).
; 5,14,24,34,44,52,64,72,82,92,102,110,122,130,140,150,160,168,180,188,198,208,218,226,238,246,256,266,276,284,296,304,314,324,334,342,354,362,372,382,392,400,412,420,430,440,450,458,470,478
mov $1,2
mov $4,1
mov $5,$0
mov $6,$0
add $0,1
lpb $0
sub $5,$4
add $5,$1
add $1,$0
mov $0,0
add $1,$5
add $1,3
div $1,6
add $2,20
mov $4,2
mul $4,$1
mov $7,$5
mod $7,2
add $7,$4
add $0,$7
sub $0,1
mov $1,$2
mov $4,9
lpe
add $0,4
mov $3,$6
mul $3,9
add $0,$3
| 17.78125 | 190 | 0.599297 |
28f7fd798ec2b9a566db6b91f2d6b3585fd94156 | 2,025 | asm | Assembly | programs/oeis/305/A305264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/305/A305264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/305/A305264.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A305264: a(n) = 836*2^n - 771.
; 65,901,2573,5917,12605,25981,52733,106237,213245,427261,855293,1711357,3423485,6847741,13696253,27393277,54787325,109575421,219151613,438303997,876608765,1753218301,3506437373,7012875517,14025751805,28051504381,56103009533,112206019837,224412040445,448824081661,897648164093,1795296328957,3590592658685,7181185318141,14362370637053,28724741274877,57449482550525,114898965101821,229797930204413,459595860409597,919191720819965,1838383441640701,3676766883282173,7353533766565117,14707067533131005,29414135066262781,58828270132526333,117656540265053437,235313080530107645,470626161060216061,941252322120432893,1882504644240866557,3765009288481733885,7530018576963468541,15060037153926937853,30120074307853876477,60240148615707753725,120480297231415508221,240960594462831017213,481921188925662035197,963842377851324071165,1927684755702648143101,3855369511405296286973,7710739022810592574717,15421478045621185150205,30842956091242370301181,61685912182484740603133,123371824364969481207037,246743648729938962414845,493487297459877924830461,986974594919755849661693,1973949189839511699324157,3947898379679023398649085,7895796759358046797298941,15791593518716093594598653,31583187037432187189198077,63166374074864374378396925,126332748149728748756794621,252665496299457497513590013,505330992598914995027180797,1010661985197829990054362365,2021323970395659980108725501,4042647940791319960217451773,8085295881582639920434904317,16170591763165279840869809405,32341183526330559681739619581,64682367052661119363479239933,129364734105322238726958480637,258729468210644477453916962045,517458936421288954907833924861,1034917872842577909815667850493,2069835745685155819631335701757,4139671491370311639262671404285,8279342982740623278525342809341,16558685965481246557050685619453,33117371930962493114101371239677,66234743861924986228202742480125,132469487723849972456405484961021,264938975447699944912810969922813,529877950895399889825621939846397
mov $1,2
pow $1,$0
sub $1,1
mul $1,836
add $1,65
mov $0,$1
| 202.5 | 1,931 | 0.928395 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.