repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
cryptix-network/cryptix-miner-cpu
10,572
src/asm/keccakf1600_x86-64-mingw64.s
# Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl .text .def __KeccakF1600; .scl 3; .type 32; .endef .p2align 5 __KeccakF1600: .byte 0xf3,0x0f,0x1e,0xfa movq 60(%rdi),%rax movq 68(%rdi),%rbx movq 76(%rdi),%rcx movq 84(%rdi),%rdx movq 92(%rdi),%rbp jmp .Loop .p2align 5 .L...
cypppper/core-from-dust
12,192
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 52 .quad app_0_start .quad app_1_start .quad app_2_start .quad app_3_start .quad app_4_start .quad app_5_start .quad app_6_start .quad app_7_start .quad app_8_start .quad app_9_start .quad app_10_start ...
cypppper/core-from-dust
1,640
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose r...
Darokahn/blocks-language
1,234
assembly test stuff/asem.s
global _start .text: _start: push 42 call uitoa return: call print call end end: mov ebx, [esp+4] ; before operation: push exit code mov eax, 1 int 0x80 print: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 ret uitoa: ; +4: num ; -4: ...
dda119141/ultrascale_bootloader
4,222
src/main/xfsbl_exit.S
/****************************************************************************** * * Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT *******************************************************************************/ /**************************************************************...
dda119141/ultrascale_bootloader
2,107
src/lib/bootup/invalidate_caches.S
/****************************************************************************** * ******************************************************************************/ #include "xparameters.h" #include "bspconfig.h" .globl MMUTableL0 .globl MMUTableL1 .globl MMUTableL2 .section .boot,"ax" .global invalidate_dcaches inva...
dda119141/ultrascale_bootloader
2,008
src/lib/bootup/xil-crt0.S
/****************************************************************************** * Copyright (C) 2014 - 2022 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************************...
dda119141/ultrascale_bootloader
7,534
src/lib/bootup/asm_vectors.S
/****************************************************************************** * Copyright (c) 2014 - 2021 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************************...
dda119141/ultrascale_bootloader
7,832
src/lib/bootup/boot.S
/****************************************************************************** * Copyright (c) 2014 - 2022 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************************...
dda119141/ultrascale_bootloader
10,384
src/lib/bootup/xfsbl_translation_table_a53_64.S
/****************************************************************************** * * Copyright (c) 2014 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /****************************************************************...
dddimcha/embodiOS
5,453
src/embodi/compiler/native/boot.S
/* EMBODIOS Native Boot Code - Multiboot2 Compliant */ .section .multiboot2 .align 8 multiboot2_header: .long 0xe85250d6 /* Magic number */ .long 0 /* Architecture (i386) */ .long multiboot2_header_end - multiboot2_header .long -(0xe85250d6 + 0 + (multiboot2_he...
dddimcha/embodiOS
5,544
kernel/arch/x86_64/boot.S
/* EMBODIOS x86_64 Boot Code - Extended from compiler version */ .section .multiboot2 .align 8 multiboot2_header: .long 0xe85250d6 /* Magic number */ .long 0 /* Architecture (i386) */ .long multiboot2_header_end - multiboot2_header .long -(0xe85250d6 + 0 + (mul...
Deepdive543443/unsafe_asm
1,673
A32/Chapter6/lib/src/stddev.s
.text zero_double: .double 0.0 // void double_stddev(double *arr, int size, double *mean, double *std); .global double_stddev double_stddev: push {r4,r5} cmp r1,#0 ble fin // size > 0 mov ...
Deepdive543443/unsafe_asm
1,029
A32/Chapter2/lib/src/mul_asm.s
.text .global asm_mul // int asm_mul(int a, int b); asm_mul: /* It's okay to use r14 here. r14, a.k.a lr, is the link register that response to the function's call and return. r14 could also be use as a general purpose register. */ mul r0,r0,r1 bx r14 ...
Deepdive543443/unsafe_asm
1,303
A32/Chapter2/lib/src/shift_rotate.s
.text .global MovRegA MovRegA: // int MovRegA(unsigned int a, unsigned int *b); push {r4-r7} mov r7,r1 // Storing *b to r7 /* This part of code perform different form of shifting and two form of rotation. */ mov r2,r0,asr...
Deepdive543443/unsafe_asm
2,233
A32/Chapter3/4.LocalVarsFP/local_var_fp.s
.text .global local_vars_fp local_vars_fp: // int local_vars_fp(uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e); push {r4,fp,lr} // lr is used as a scratch register here mov fp,sp sub sp,#16 // [temp1, ...
Deepdive543443/unsafe_asm
2,200
A32/Chapter3/3.LocalVars/local_vars.s
.text .global local_vars local_vars: // int local_vars(uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e); push {r4,r5} sub sp,#16 // Allocate 5 32bits integers //[tmp1, tmp2, tmp3, tmp4, r4, r5, e] ...
Deepdive543443/unsafe_asm
1,250
A32/Chapter3/2.MixedInteger/sum_cube.s
.text .global sum_cube sum_cube: // int sum_cube(uint32_t a, uint16_t d, uint8_t g, uint8_t h, uint8_t i, uint16_t e, uint16_t f, uint32_t b, uint32_t c); push {r4} mul r4,r0,r0 // r0 = a * a; // mul r0,r0,r0 seems lead to some issue...
Deepdive543443/unsafe_asm
1,383
A32/Chapter4/5.ldmia/ldm.s
.text .global reverse_asm // void reverse_asm(int *dsr, int *src, int n);[r3=idx, r4-r7:load, r8-r11: store ip] reverse_asm: push {r4-r11} cmp r2,#0 // ble fin add r1,r2,lsl #2 sub r1,#...
Deepdive543443/unsafe_asm
1,570
A32/Chapter4/1.ArrayArithmetic/arr_sum.s
.text .global calc_sum_asm /* Slightly improved loop compare to C306 */ // int calc_sum_asm(int *nums, int n); [r0: ptr, r1 num, r2: cur_vals, r3: sum] calc_sum_asm: mov r3,#0 cmp r1,#0 ble Finish // Early stop ...
Deepdive543443/unsafe_asm
1,077
A32/Chapter4/3.Mat/mat_square.s
.text .global mat_square_asm // void mat_square_asm(int *dst_mat, int *src_mat, int width, int height);[r4=i, r5=j,r6=position,r7=cur_val] mat_square_asm: push {r4-r7} mov r6,#0 mov r4,#0 // int i = 0 loop_w: cmp r4,r...
Deepdive543443/unsafe_asm
3,760
A32/Chapter7/lib/src/vec_add.s
// The implementations below appear to have some misalign // with the ground truth results. Not an very successful approuch // Waiting for debugging in future .text zero_single: .single 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 // float sum_f32(float *src, int length); // r2=ptr, r3=idx, r4=qu...
Deepdive543443/unsafe_asm
1,882
A32/Chapter7/lib/src/vec_cops.s
// typedef { @ F32_CVT_I32 @ I32_CVT_F32 @ F32_CVT_U32 @ U32_CVT_F32 @ F32_CMP @ U32_CMP @ NUM_OPS // } cvtEnum; .text // Addr cvtEnum: .word F32_CVT_I32 // (0x0) .word I32_CVT_F32 // (0x4) .word F3...
defghij/disassembler
3,108
src/tests/files/file2.s
[BITS 32] ; nasm file2.s -o file2.o ; ndisasm -u file2.o > file2.out ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; xor eax, eax add eax, ecx add eax, edx push ebp mov ebp, esp push edx push ecx mov eax, 041424344h mov edx, dword [ dword ebp + 08...
DharitriOne/wasmer
1,732
lib/runtime-core/image-loading-linux-x86-64.s
# NOTE: Keep this consistent with `fault.rs`. .globl run_on_alternative_stack run_on_alternative_stack: # (stack_end, stack_begin) # We need to ensure 16-byte alignment here. pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rbp movq %rsp, -16(%rdi) leaq run_on_alternative_stack.returning(%rip), %rax movq...
DharitriOne/wasmer
1,732
lib/runtime-core/image-loading-freebsd-x86-64.s
# NOTE: Keep this consistent with `fault.rs`. .globl run_on_alternative_stack run_on_alternative_stack: # (stack_end, stack_begin) # We need to ensure 16-byte alignment here. pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rbp movq %rsp, -16(%rdi) leaq run_on_alternative_stack.returning(%rip), %rax movq...
DharitriOne/wasmer
1,735
lib/runtime-core/image-loading-macos-x86-64.s
# NOTE: Keep this consistent with `fault.rs`. .globl _run_on_alternative_stack _run_on_alternative_stack: # (stack_end, stack_begin) # We need to ensure 16-byte alignment here. pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rbp movq %rsp, -16(%rdi) leaq _run_on_alternative_stack.returning(%rip), %rax m...
diandianjunA/rCore_sys
1,494
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 7 .quad app_0_start .quad app_1_start .quad app_2_start .quad app_3_start .quad app_4_start .quad app_5_start .quad app_6_start .quad app_6_end .section .data .global app_0_start .global app_0_end ...
diandianjunA/rCore_sys
1,569
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltraps: # 进入__alltraps时,sp指向用户态的栈顶,sscratch寄存器指向应用地址空间中存放Trap上下文的位置 csrrw sp, sscratch, sp # 现在 sp 指向了TrapContext,sscrta...
Diff-fusion/dhm-2024
3,497
flag-generator-extended/deploy/challenge/main/ulp-fsm/decrypt.S
#include "sdkconfig.h" #include "soc/rtc_cntl_reg.h" #include "soc/rtc_io_reg.h" #include "soc/soc_ulp.h" #include "soc/sens_reg.h" .data key_add: .short 35835, 34792, 315, 58643, 57287, 19882, 28091, 14325 /* Define variables, which go into .bss section (zero-initialized data) */ .bss .global key key:...
dionysusliu/Snake-Compiler
15,048
runtime/compiled_code.s
section .text global start_here extern snake_error extern print_snake_val start_here: call main ret main: mov rax, 12 ;;; Let mov [rsp + -8], rax ;;; FunDefs103_body mov rax, [rsp + -8] ;;; Let mov [rsp + -16], rax mov rax, [rsp + -8] ;;; L...
diptobiswasanime4/Learn_Rust
9,700
basic_concepts/getting_started/hello_world/main.s
.text .def @feat.00; .scl 3; .type 0; .endef .globl @feat.00 .set @feat.00, 0 .file "main.aaccb3f0a8cfdec6-cgu.0" .def _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h4d28f88769ff0699E; .scl 3; .type 32; .endef .section .text,"xr",one_only,_ZN3std10sys_common9backtrace28__rust_begin_short_back...
EclesioMeloJunior/sand
1,311
aarch64.S
.data msg: .ascii "Sum = " .equ len, . - msg .bss buffer: .zero 16 .text .global _start .align 4 _start: mov x0, #5 mov x1, #10 add x2, x0, x1 adrp x0, buffer@PAGE add x0, x0, buffer@PAGEOFF mov x1, x2 bl itoa mov x0, #1 adrp x1, msg@PAGE add x1, x1, msg@PAGEOFF ...
edl-lang/edl
4,337
library/compiler-builtins/compiler-builtins/src/hexagon/dfsqrt.s
.text .global __hexagon_sqrtdf2 .type __hexagon_sqrtdf2,@function .global __hexagon_sqrt .type __hexagon_sqrt,@function .global __qdsp_sqrtdf2 ; .set __qdsp_sqrtdf2, __hexagon_sqrtdf2; .type __qdsp_sqrtdf2,@function .global __qdsp_sqrt ; .set __qdsp_sqrt, __hexagon_sqrt; .type __qdsp_sqrt,@function .global __he...
edl-lang/edl
3,885
library/compiler-builtins/compiler-builtins/src/hexagon/fastmath2_ldlib_asm.s
.text .global __hexagon_fast2ldadd_asm .type __hexagon_fast2ldadd_asm, @function __hexagon_fast2ldadd_asm: .falign { R4 = memw(r29+#8) R5 = memw(r29+#24) r7 = r0 } { R6 = sub(R4, R5):sat P0 = CMP.GT(R4, R5); if ( P0.new) R...
edl-lang/edl
4,378
library/compiler-builtins/compiler-builtins/src/hexagon/dfmul.s
.text .global __hexagon_muldf3 .type __hexagon_muldf3,@function .global __qdsp_muldf3 ; .set __qdsp_muldf3, __hexagon_muldf3 .global __hexagon_fast_muldf3 ; .set __hexagon_fast_muldf3, __hexagon_muldf3 .global __hexagon_fast2_muldf3 ; .set __hexagon_fast2_muldf3, __hexagon_muldf3 .p2align 5 __hexagon_muldf3: ...
edl-lang/edl
7,236
library/compiler-builtins/compiler-builtins/src/hexagon/dffma.s
.text .global __hexagon_fmadf4 .type __hexagon_fmadf4,@function .global __hexagon_fmadf5 .type __hexagon_fmadf5,@function .global __qdsp_fmadf5 ; .set __qdsp_fmadf5, __hexagon_fmadf5 .p2align 5 __hexagon_fmadf4: __hexagon_fmadf5: fma: { p0 = dfclass(r1:0,#2) p0 = dfclass(r3:2,#2) r13:12 = #0...
edl-lang/edl
4,801
library/compiler-builtins/compiler-builtins/src/hexagon/dfaddsub.s
.text .global __hexagon_adddf3 .global __hexagon_subdf3 .type __hexagon_adddf3, @function .type __hexagon_subdf3, @function .global __qdsp_adddf3 ; .set __qdsp_adddf3, __hexagon_adddf3 .global __hexagon_fast_adddf3 ; .set __hexagon_fast_adddf3, __hexagon_adddf3 .global __hexagon_fast2_adddf3 ; .set __hexagon_fast...
edl-lang/edl
1,295
library/compiler-builtins/compiler-builtins/src/hexagon/memcpy_forward_vp4cp4n2.s
.text .globl hexagon_memcpy_forward_vp4cp4n2 .balign 32 .type hexagon_memcpy_forward_vp4cp4n2,@function hexagon_memcpy_forward_vp4cp4n2: { r3 = sub(##4096, r1) r5 = lsr(r2, #3) } { r3 = extractu(r3, #10, #2) r4 = extractu(r3, #7, #5) } { r3 = minu(r2, r3) r4 = minu(...
edl-lang/edl
5,659
library/compiler-builtins/compiler-builtins/src/hexagon/dfdiv.s
.text .global __hexagon_divdf3 .type __hexagon_divdf3,@function .global __qdsp_divdf3 ; .set __qdsp_divdf3, __hexagon_divdf3 .global __hexagon_fast_divdf3 ; .set __hexagon_fast_divdf3, __hexagon_divdf3 .global __hexagon_fast2_divdf3 ; .set __hexagon_fast2_divdf3, __hexagon_divdf3 .p2align 5 __hexag...
edl-lang/edl
5,120
library/compiler-builtins/compiler-builtins/src/hexagon/fastmath2_dlib_asm.s
.text .global __hexagon_fast2_dadd_asm .type __hexagon_fast2_dadd_asm, @function __hexagon_fast2_dadd_asm: .falign { R7:6 = VABSDIFFH(R1:0, R3:2) R9 = #62 R4 = SXTH(R0) R5 = SXTH(R2) } { R6 = SXTH(R6) P0 = CMP.GT(R4, R5); ...
edl-lang/edl
11,809
library/std/src/sys/pal/sgx/abi/entry.S
/* This symbol is used at runtime to figure out the virtual address that the */ /* enclave is loaded at. */ .section absolute .global IMAGE_BASE IMAGE_BASE: .section ".note.x86_64-fortanix-unknown-sgx", "", @note .align 4 .long 1f - 0f /* name length (not including padding) */ .long 3f - 2f ...
ekene-e/MinimISA
1,670
chip8/cpu.s
; CPU management: functions to access registers and stack (kinda repetitive). ; cpu_getPC() -> r0 = PC cpu_getPC: leti r0 0x88080 ; PC getctr a0 r1 setctr a0 r0 readze a0 16 r0 setctr a0 r1 return ; cpu_setPC(r1 = new_pc) cpu_setPC: leti r0 0x88080 ; PC getctr a0 r2 setctr a0 r0 write a0 16 r1 setctr a0 r2...
ekene-e/MinimISA
8,811
chip8/main.s
; Main program main: ; PC = 0x200 leti r1 0x200 call cpu_setPC ; Clear the screen to black leti r1 0x0000 call clear_screen ; Load the character data in the beginning of the memory call load_hexa ; Set the frequency counter (limiter) to 0 leti r6 0x1450 leti r0 0 setctr a1 r6 write a1 8 r0 _von_neuman...
ekene-e/MinimISA
2,890
chip8/draw.s
; clear_screen() clear_screen: ; Load VRAM pointer and counter leti r0 0x100000 ; VRAM base leti r3 160 getctr a0 r2 setctr a0 r0 let r0 r1 shift left r0 16 or2 r1 r0 let r0 r1 shift left r0 32 or2 r1 r0 _clear_screen_loop: write a0 64 r1 write a0 64 r1 write a0 64 r1 write a0 64 r1 write a0 64 r1 w...
ekene-e/MinimISA
1,107
chip8/util.s
; Various utility functions ; mult(r1 = x, r2 = y) -> r0 = x * y mult: leti r0 0 _mult_nonzero: shift right r1 1 jumpif nc _mult_next add2 r0 r2 _mult_next: shift left r2 1 cmpi r1 0 jumpif nz _mult_nonzero return ; bcd(r1 = x) -> r0 = BCD representation of x (24 bits) bcd: push 64 r4 push 64 r5 push 64 ...
ekene-e/MinimISA
1,865
chip8/mem.s
; Memory management: basic memory access (CHIP-8 is basic in all regards). ; mem_opcode(r1 = PC) -> r0 = 16-bit opcode taken from PC mem_opcode: leti r0 0x80000 ; Start of memory shift left r1 3 add2 r0 r1 getctr a0 r1 setctr a0 r0 readze a0 16 r0 setctr a0 r1 return ; mem_dump(r1 = x) -> stores v0..vx at th...
ekene-e/MinimISA
7,096
prog/lib_font.s
;--- ; Font library ; No dependencies. 16-bit colors. ;--- ; putc() ; Puts a character on the screen; (x, y) is the coordinate of the top- ; left corner. ; ; @args x, y, c ; @stack color(16) putc: ; Quickly change coordinate system (before function starts) leti r0 122 sub3 r2 r0 r2 ; Get a pointer to the glyph da...
ekene-e/MinimISA
1,316
prog/mull.s
;-----------------------------------------------------------------------------; ; Signed 64 * 64 -> 128 multiplication ; ;-----------------------------------------------------------------------------; ; Initialization (program input) leti r0 -0x374bc563deb482 leti r1 0x97b6af21...
ekene-e/MinimISA
5,400
prog/lib_draw.s
;--- ; Drawing library ; All of the colors in this module are in 16-bit format. ;--- ; clear_screen() ; Clears the whole screen in an efficient way. ; ; @arg color clear_screen: ; Load VRAM pointer and counter leti r0 0x10000 leti r3 640 getctr a0 r2 setctr a0 r0 let r0 r1 shift left r0 16 or2 r1 r0 let r0 ...
ekene-e/MinimISA
6,174
prog/test_exhaust.s
; To test the instructions, execute the program step-by-step and check the ; values of the simulator's registers, PC and flags when suggested. ; Untested instructions: readze, readse, write, push (memory-related) ; Note: small values are represented as decimal; 64-bit values are hexadecimal ; let and leti leti r0 0 ...
ekene-e/MinimISA
1,843
prog/test_all.s
let r4 2 add r1 r2 add r1 r2 push 1 r4 sub r3 5 getctr sp r0 cmp r3 r5 shift left r5 3 push 0x40 r0 pop 0x20 r0 and r2 3 ; J'aime les nouilles add r2 r3 5 add r0 r0 add r0 2000 add r0 r0 r0 add r0 r0 2000 sub r0 r0 ...
ekene-e/MinimISA
1,950
prog/div.s
;-----------------------------------------------------------------------------; ; Signed 64 / 64 -> 64 division ; ;-----------------------------------------------------------------------------; ; Initialization (program input) leti r0 -0x538ba20c467c034b leti r1 0x6527db...
ekene-e/MinimISA
1,081
prog/muls.s
;-----------------------------------------------------------------------------; ; Signed 64 * 64 -> 64 multiplication ; ;-----------------------------------------------------------------------------; ; Initializing operands. leti r0 -0x738b6c leti r1 0xc4b3213e...
ekene-e/MinimISA
3,156
prog/drawing.s
;-----------------------------------------------------------------------------; ; Graphical rendering using memory-mapped video RAM ; ;-----------------------------------------------------------------------------; ; Specify an "entry point" jump main ; This file exposes the clear_screen, ...
ekureina/oxiv6
4,352
oxiv6-kernel/src/trampoline.S
# Copyright 2024 Claire Moore # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
EleisonC/Green-Thread-Library
1,112
src/krono_context/asm/aarch64.s
.global context_switch context_switch: ;Save callee-saved registers (x19 to x29) ;from the 'from' kronocontext (pointed to by x0) str x19, [x0, #0] str x20, [x0, #8] str x21, [x0, #16] str x22, [x0, #24] str x23, [x0, #32] str x24, [x0, #40] str x25, [x0, #48] str x26, [x0, #56] str x27, [x0, #64] str x28, ...
ElliotLockerman/pdp-11
3,058
examples/byte_queue.s
; Queue ; 0 buf: &u8 Underlying buffer. ; 2 head: u16 Index in to buf. ; 4 tail: u16 Index in to buf. ; 6 cap: u16 Length of buf in bytes. ; 10 len: u16 Number of elements in queue. QUEUE_BUF = 0 QUEUE_HEAD = 2 QUEUE_TAIL = 4 QUEUE_CAP = 6 Q...
ElliotLockerman/pdp-11
1,543
examples/timer_ticks.s
; timer_ticks.s ; Prints digits 0 - 9 (one every 2^8 ticks), followed by a newline, then halts. STACK_TOP = 150000 LKS = 177546 LKS_INT_ENB = 100 TPS = 177564 TPB = TPS + 2 TPS_READY_MASK = 177 . = 100 .word clock, 300 . = 400 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
ElliotLockerman/pdp-11
1,033
examples/echo_spin.s
STACK_TOP = 150000 . = 400 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; fn _start() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; _start: mov #STACK_TOP, sp mov #buf, r1 ; Main loop. 1: jsr pc, getc ; If we're...
ElliotLockerman/pdp-11
1,274
examples/teletype_spin.s
TPS = 177564 TPB = TPS + 2 TPS_READY_CMASK = 177 TKS = 177560 TKB = TKS + 2 TKS_DONE_CMASK = 177577 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; fn putc(r0 char: u8) ; Blocks until ready to print, then prints r0. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
ElliotLockerman/pdp-11
2,199
examples/fib.s
.even _start: mov #150000, sp mov #0, r1 1: ; Call fib. mov r1, r0 jsr pc, fib ; Print the result. jsr pc, printu ; Print a newline. mov #'\n, r0 jsr pc, putc ; Increment the induction variable and loop until it hits 10. inc r1 ...
ElliotLockerman/pdp-11
5,456
examples/echo_interrupt.s
STACK_TOP = 150000 TPS = 177564 TPB = TPS + 2 TPS_READY_CMASK = 177 TPS_INT_ENB = 100 TKS = 177560 TKB = TKS + 2 TKS_DONE_CMASK = 177577 TKS_INT_ENB = 100 LINE_LEN = 72. KEYBOARD_BUF_LEN = LINE_LEN + 1 LINE_BUF_LEN = LINE_LEN + 1 ; line + \n PRINT_BUF_LEN = LINE_L...
ElliotLockerman/pdp-11
3,546
examples/threads.s
; threads.s ; Two threads run concurrently and print their thread id. STACK_0 = 150000 STACK_1 = 140000 LKS = 177546 LKS_INT_ENB = 100 TPS = 177564 TPB = TPS + 2 TPS_READY_MASK = 177 STATUS = 177776; PRIO7 = 340 SWAP_PERIOD = 20 ; In ticks . = 100 .word clock, 300 ;...
ElliotLockerman/pdp-11
1,102
examples/hello.s
; hello.s ; Prints hello, world!\n . = 64 .word tp_ready, 200 . = 400 STACK_TOP = 150000 TPS = 177564 TPB = TPS + 2 TPS_READY_MASK = 177 TPS_INT_ENB = 100 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; fn _start() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
elmiliano/portfolio
25,888
fruit-rgb/Core/Startup/startup_stm32f767zitx.s
/** ****************************************************************************** * @file startup_stm32f767xx.s * @author MCD Application Team * @brief STM32F767xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
ElShroomster/bril_to_riscv
1,261
bril-riscv/riscv.S
# Function: main .main: # Arguments to main addi x2, x2, -8 addi x18, x0, 633 sw x18, 0(x2) addi x18, x0, 844 sw x18, 4(x2) addi x2, x2, -28 sw x1, 0(x2) addi x18, x0, 0 sw x18, 4(x2) lw x19, 32(x2) sw x19, 8(x2) lw x19, 28(x2) sw x19, 12(x2) .cmp.val: lw x19, 8(x2) lw x20, 12(x2) blt ...
ElSargo/wezpy
43,257
wezterm-src/deps/cairo/pixman/pixman/pixman-arm-simd-asm.S
/* * Copyright © 2012 Raspberry Pi Foundation * Copyright © 2012 RISC OS Open Ltd * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * cop...
ElSargo/wezpy
139,688
wezterm-src/deps/cairo/pixman/pixman/pixman-arma64-neon-asm.S
/* * Copyright © 2009 Nokia Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
ElSargo/wezpy
10,556
wezterm-src/deps/cairo/pixman/pixman/pixman-mips-memcpy-asm.S
/* * Copyright (c) 2012 * MIPS Technologies, Inc., California. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
ElSargo/wezpy
128,848
wezterm-src/deps/cairo/pixman/pixman/pixman-arm-neon-asm.S
/* * Copyright © 2009 Nokia Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
ElSargo/wezpy
45,185
wezterm-src/deps/cairo/pixman/pixman/pixman-arm-neon-asm-bilinear.S
/* * Copyright © 2011 SCore Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
ElSargo/wezpy
4,651
wezterm-src/deps/cairo/pixman/pixman/pixman-arm-simd-asm-scaled.S
/* * Copyright © 2008 Mozilla Corporation * Copyright © 2010 Nokia Corporation * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyri...
ElSargo/wezpy
43,532
wezterm-src/deps/cairo/pixman/pixman/pixman-arma64-neon-asm-bilinear.S
/* * Copyright © 2011 SCore Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
ElSargo/wezpy
120,733
wezterm-src/deps/cairo/pixman/pixman/pixman-mips-dspr2-asm.S
/* * Copyright (c) 2012 * MIPS Technologies, Inc., California. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
Erio-Harrison/rust-os
1,769
src/arch/riscv/kernelvec.S
.section .text # interrupts and exceptions while in supervisor # mode come here. .globl kernelvec .align 4 kernelvec: # make room to save registers. addi sp, sp, -256 # save the registers. sd ra, 0(sp) sd gp, 16(sp) sd tp, 24(sp) sd t0, 32(sp) sd t1, 40(...
Erio-Harrison/rust-os
3,036
src/arch/riscv/trampoline.S
.section trampsec .globl trampoline .globl usertrap trampoline: .align 4 .globl uservec uservec: # save user a0 in sscratch so # a0 can be used to get at TRAPFRAME. csrw sscratch, a0 # each process has a separate p->trapframe memory area, # but it's mapped to the same virtua...
esyywar/rust_books
9,889
chapter_1/hello_world/main.s
.file "main.4f53ca21a4bdf013-cgu.0" .section .text._ZN3std2rt10lang_start17hb927c81c6b10103cE,"ax",@progbits .hidden _ZN3std2rt10lang_start17hb927c81c6b10103cE .globl _ZN3std2rt10lang_start17hb927c81c6b10103cE .p2align 4 .type _ZN3std2rt10lang_start17hb927c81c6b10103cE,@function _ZN3std2rt10lang_start17hb927c81c6...
farlepet/rlboot
3,354
stage1/stage1.s
.code16 /* Source for boot sector. Must fit within 512 bytes. */ stack_top = 0x1000 /* Top of temporary stack (~2 KiB) */ IS_FLOPPY = 1 /* Need to reserve some bytes for the FAT12 data */ boot_sector_start: jmp start nop /* FAT header, bytes 3-29 */ fat.name: .ascii "lboot " /* 0x03 */...
farlepet/rlboot
1,328
src/intr/int_wrappers.s
.extern interrupt_wrapper .macro isr_wrapper num err .global isr_wrapper_\num .type isr_wrapper_\num, @function isr_wrapper_\num: .if !\err push $0 # Errcode .endif pusha push $\num call interrupt_wrapper addl $4, %esp # Interrupt number popa .i...
farlepet/rlboot
3,874
src/startup/startup.s
.code16 /* Entrypoint for stage 2 */ .section .entrypoint .extern ruststart .global start .type start, @function start: /* Print boot message */ movw $boot_message, %si call msg_print /* Switching to protected mode, following recommendations laid out in * Intel's Software Developer Manual, V...
farlepet/rlboot
3,367
src/bios/bios_asm.s
.code32 .extern bios_idt /* int bios_call(bios_call_t *) */ .global bios_call_asm .type bios_call_asm, @function bios_call_asm: pushal /* Save BIOS call parameter pointer */ movl 36(%esp), %eax movl %eax, (_bios_call_ptr) /* Save current IDTR and GDTR */ sidt (_saved_idtr) sgdt (_s...
fatiimajamiil/rustpad-custom
40,185
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/chacha-armv8-ios64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__) .section __TEXT,__const .align 5 Lsigma: .quad 0x3320646e61707865,0x6b20657479622d32 // en...
fatiimajamiil/rustpad-custom
18,316
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/aesni-gcm-x86_64-macosx.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__) .text .p2align 5 _aesni_ctr32_ghash_6x: vmovdqu 32(%r11),%xmm2 subq $6,%rdx vpxor %xmm...
fatiimajamiil/rustpad-custom
10,863
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/ghash-neon-armv8-win64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32) .text .globl gcm_init_neon .def gcm_init_neon .type 32 .endef .align 4 gcm_init_neon: AAR...
fatiimajamiil/rustpad-custom
190,544
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/chacha20_poly1305_x86_64-macosx.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__) .section __DATA,__const .p2align 6 chacha20_poly1305_constants: L$chacha20_consts: .byte 'e',...
fatiimajamiil/rustpad-custom
10,875
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/ghash-neon-armv8-ios64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__) .text .globl _gcm_init_neon .private_extern _gcm_init_neon .align 4 _gcm_init_neon: AARCH...
fatiimajamiil/rustpad-custom
17,785
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/bsaes-armv7-linux32.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_ARM) && defined(__ELF__) @ Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved. @ @ Licensed under the Apa...
fatiimajamiil/rustpad-custom
70,675
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/sha256-x86_64-elf.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__) .text .globl sha256_block_data_order_nohw .hidden sha256_block_data_order_nohw .type sha256_b...
fatiimajamiil/rustpad-custom
4,266
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/ghashv8-armx-linux64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__ELF__) #if __ARM_MAX_ARCH__>=7 .text .arch armv8-a+crypto .globl gcm_init_clmul .hidden gcm_init_clmu...
fatiimajamiil/rustpad-custom
4,229
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/x86-mont-elf.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86) && defined(__ELF__) .text .globl bn_mul_mont .hidden bn_mul_mont .type bn_mul_mont,@function .align 16 bn_mul_mont: .L...
fatiimajamiil/rustpad-custom
42,856
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/sha512-armv4-linux32.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_ARM) && defined(__ELF__) @ Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved. @ @ Licensed under the Apa...
fatiimajamiil/rustpad-custom
24,471
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/aes-gcm-avx2-x86_64-macosx.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__) .section __DATA,__const .p2align 4 L$bswap_mask: .quad 0x08090a0b0c0d0e0f, 0x00010203040506...
fatiimajamiil/rustpad-custom
20,965
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/aesni-x86_64-elf.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__) .text .type _aesni_encrypt2,@function .align 16 _aesni_encrypt2: .cfi_startproc movups (%rcx...
fatiimajamiil/rustpad-custom
11,047
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/vpaes-x86_64-macosx.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__APPLE__) .text .p2align 4 _vpaes_encrypt_core: movq %rdx,%r9 movq $16,%r11 movl ...
fatiimajamiil/rustpad-custom
78,605
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/p256-x86_64-asm-elf.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__ELF__) .text .section .rodata .align 64 .Lpoly: .quad 0xffffffffffffffff, 0x00000000ffffffff, 0x000...
fatiimajamiil/rustpad-custom
30,650
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/armv8-mont-win64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32) .text .globl bn_mul_mont_nohw .def bn_mul_mont_nohw .type 32 .endef .align 5 bn_mul_mont_n...
fatiimajamiil/rustpad-custom
73,987
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/chacha20_poly1305_armv8-win64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32) .section .rodata .align 7 Lchacha20_consts: .byte 'e','x','p','a','n','d',' ','3','2','-','b',...
fatiimajamiil/rustpad-custom
82,176
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/aesv8-gcm-armv8-win64.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(_WIN32) #if __ARM_MAX_ARCH__ >= 8 .arch armv8-a+crypto .text .globl aes_gcm_enc_kernel .def aes_gcm_e...
fatiimajamiil/rustpad-custom
60,192
.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.14/pregenerated/sha256-armv4-linux32.S
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #include <ring-core/asm_base.h> #if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_ARM) && defined(__ELF__) @ Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved. @ @ Licensed under the Apa...