repo_id stringlengths 5 115 | size int64 590 5.01M | file_path stringlengths 4 212 | content stringlengths 590 5.01M |
|---|---|---|---|
antlr/grammars-v4 | 3,145 | asm/pdp7/examples/bc.s | " bc
jmp start
rinit:
jms initio
jmp .+1 i
initio: 0
lac inter-1
dac fetch
jmp rinit
jms inter
inter: 0
las
and o17
sza
jms trace
lac pc i
dac instr
lac pc
and o10000
sna
jmp badpc
lac sp
and o17700
sad o17700
jmp badsp
and o10000
sna
jmp badsp
... |
antlr/grammars-v4 | 5,849 | asm/pdp7/examples/s1.s | " S1
.. = 0
t = 0
orig:
hlt " overwritten with interrupt return addr
jmp pibreak " dispatch to interrupt processing
. = orig+7
-1 " only ever set (to -1): never read?!
. = orig+020 " syscall (CAL) and user "interrupt" processing
1f " addr for "CAL I": store return here on "CAL"
iof " i... |
antlr/grammars-v4 | 1,309 | asm/pdp7/examples/chrm.s | " chrm: chrm dir file [file file ...]
"
" chdir into the named directory and unlink the files that are in there
"
" The code depends on a "dd" directory existing which holds the named dir
lac 017777 " Go to the argc
tad d5 " Skip past the argc and argv[0]
dac 1f " Save argv[1] in the chdir arg below
... |
antlr/grammars-v4 | 8,143 | asm/pdp7/examples/s5.s | "** 01-s1.pdf page 28
" s5
" read/write a process from/to swap space
" call:
" AC/ first word of process table
" jms dskswap; DSLD bits
dskswap: 0
cll; als 3 " get process disk address
dac 9f+t " save in t0
jms dsktrans; -64; userdata; 9f+t; dskswap " read/write user area
lac 9f+t " get swap add... |
antlr/grammars-v4 | 8,014 | asm/pdp7/examples/apr.s | " apr
lac 017777 i
sad d4
jmp nofiles
lac 017777
tad d1
dac name
jms connect
sys time
llss 9
ecla llss 3
tad o60
alss 9
dac snumb
ecla llss 3
tad o60
alss 9
dac snumb+1
ecla llss 3
tad o60
alss 9
dac snumb+2
lac d1
sys write; snumb; 3
lac d1
sy... |
antlr/grammars-v4 | 3,721 | asm/pdp7/examples/sop.s | "** 01-s1.pdf page 62
" sop
dac = 0040000 " MEM: deposit AC
jms = 0100000 " MEM: jump to subroutine
dzm = 0140000 " MEM: deposit zero to memory
lac = 0200000 " MEM: load AC
xor = 0240000 " MEM: XOR with AC
add = 0300000 " MEM: one's complement add
tad = 0340000 " MEM: two's complement add
xct = 0400000 ... |
antlr/grammars-v4 | 8,161 | asm/pdp7/examples/s3.s | "** 01-s1.pdf page 14
" s3
" search for user (process) table entry
" call:
" jms searchu; worker_routine_addr
" worker called with copy of a process table entry in "lu"
" can return directly (from caller of searchu)
" index location 8 points to next process table entry
searchu: 0
lac searchu i " fetch argu... |
antlr/grammars-v4 | 2,315 | asm/pdp7/examples/wktod.s | " Warren's version of od: od filename
"
main:
lac 017777 i " Do we have any arguments?
sad d4
jmp noarg " No, an error
lac 017777 " Move five words past the argument word count
tad d5 " so that AC points at the first argument
dac argptr
sys open; argptr:0; 0 " Open up the file, sa... |
antlr/grammars-v4 | 11,048 | asm/pdp7/examples/s2.s | "** 01-s1.pdf page 7
" s2
" file status (stat) system call
" AC/ pointer to status (inode) buffer + i-num (13 words)
" sys status; dir_name_ptr; file_name_ptr
" NO_DD version: sys status; file_name_ptr
.status:
jms arg " fetch directory name pointer
dac .+5
jms arg " fetch file name pointer
dac... |
antlr/grammars-v4 | 7,326 | asm/pdp7/examples/adm.s | " adm
lac 017777 i
sad d4
jmp nofiles
lac 017777
tad d1
dac name
jms connect
sys time
llss 9
ecla lls 3
tad o60
alss 9
dac snumb
ecla llss 3
tad o60
alss 9
dac snumb+1
ecla llss 3
tad o60
alss 9
dac snumb+2
lac d1
sys write; snumb; 3
lac d1
sys... |
antlr/grammars-v4 | 1,472 | asm/pdp7/examples/s9.s | "** 01-s1.pdf page 53
" s9 -- cold boot
. = coldentry+4
" zero i-list
dzm ii " Set ii to zero
jms copyz; dskbuf; 64 " Zero the 64-word dskbuf
1:
lac ii " Zero blocks 0 to 709
jms dskio; 07000
isz ii " Move up to next block number
-710
tad ii
sza
jmp 1b " Loop back until we reach bl... |
antlr/grammars-v4 | 6,704 | asm/pdp7/examples/s8.s | "** 01-s1.pdf page 48
" s8
" manifests
mnproc = 10 " number of processes
dspbsz = 270 " display buffer size
ndskbs = 4 " number of buffers at dskbs
" flags
.insys: 0 " "in system"
.int1: 0 " inode for user interrupt 1
.int2: 0 " inode for user interrupt 2
.ac: 0 " saved AC from Priotity Interrupt
.sav... |
antlr/grammars-v4 | 5,631 | asm/pdp7/examples/cas.s | "** 04-cas.pdf page 1
" cas
" Usage: cas [ input [ output ] ]
" graphics display character assembler???
narg = i 017777
lac 017777
tad d5
dac name1
tad d4
dac name2
lac narg " get arg count
sad d4 " 4?
jmp 1f " yes: default both to tty
sad d8 " 8?
jmp 2f " no: default i... |
antlr/grammars-v4 | 1,114 | asm/pdp7/examples/wktmv.s | " Warren's version of mv. mv file1 file2
main:
lac 017777 i " Load the pointer pointer in 017777
sad d8 " to see if we have two
jmp nofiles " No arguments, stop now
lac 017777 " Move five words past the argument word count
tad d5 " so that AC points at the first argument
... |
antlr/grammars-v4 | 2,398 | asm/pdp7/examples/chmod.s | " chmod: chmod mode file [file file ...]
"
" mode is an octal number
lac 017777 i " Have we got any arguments?
sad d4
jmp error " No, give an error
lac 017777
tad d4 " Skip past argc
dac 8 " and save the ptr to the octal value at location 8
tad d1 " Why only 1 here?
dac name " Save the ... |
antlr/grammars-v4 | 9,267 | asm/pdp7/examples/s7.s | "** 01-s1.pdf page 41
" s7
pibreak: " priority interrupt break processing "chain"
dac .ac " save interrupt AC
"** CROSSED OUT....
dpsf " skip on data phone flag set
jmp 1f " not set: check next device
dpcf " clear dataphone flag
dprs " read dataphone status
dac dpstat " save for user
... |
antlr/grammars-v4 | 7,037 | asm/pdp7/examples/wktls.s | " Warren's historic version of ls. ls [-l] [dirname]
"
" When -l is used, you see
"
" inum [dls][r-][w-][r-][w-] nlink uid size name
"
" with numbers in octal. All filenames need to be 8 characters
" long or less, or ls will crash when used with a7out.
main:
lac 017777 " Move five words past the argu... |
antlr/grammars-v4 | 23,172 | asm/pdp7/examples/as.s | "** 05-1-4.pdf page 32
" as
jms init1 " initialize for pass 1
assm1:
lac eofflg
sza " saw EOF?
jmp assm2 " no.
lac passno " yes
sza " pass==0?
jmp finis " no, pass 2: done
jms init2 " initialize for pass 2
assm2: " main loop
jms gchar " get character
sad d4 " co... |
antlr/grammars-v4 | 2,076 | asm/pdp7/examples/bl.s | " bl
jmp start
.array: .+1
s 2
n 8
n 7
-1
tad sp i
cma
tad lastv
dac lastv
lmq
lac sp
tad d1
dac sp i
isz sp
lacq
dac sp i
isz sp
jmp fetch
.read: .+1
s 2
n 8
n 7
lac sp
tad d1
dac sp i
isz sp
jms getc
dac sp i
isz sp
jmp fetch
.wri... |
antlr/grammars-v4 | 2,960 | asm/pdp7/examples/cp.s | " cp: cp file1 file2 [file3 file4 [file5 file6] ...]
"
" Copies in pairs: file1 to file2, file3 to file4 etc.
lac 017777 " Skip past argc and save
tad d1 " argv[0] (our name) into name2
dac name2 " We will skip past it later
loop:
lac 017777 i " Any arguments left?
sad d4
sys exit " 4 wo... |
antlr/grammars-v4 | 4,201 | asm/pdp7/examples/bi.s | " bi
start:
jms initio
-1
tad .main
dac pc
fetch:
lac pc i
lmq
and o17777
dac addr
cla; lls 4 " XXX replaced for now: ecla lls 4
tad .+3
dac .+1
jmp .. i
jmp . i
autop; binop; consop; ifop; etcop; setop; traop
unaop; extop; aryop
ifop:
-2
tad sp
dac sp
l... |
antlr/grammars-v4 | 4,460 | asm/pdp7/examples/wktdate.s | " Warren's date program.
sys time " Get time in sixtieths since beginning of year
cll
div; 216000 " Divide by number of sixtieths in an hour.
" At this point MQ=number of hours since the
" beginning of the year, and AC is the number
" of sixtieths since the last o'clock.
dac sixtieths " Save AC ... |
antlr/grammars-v4 | 14,403 | asm/pdp7/examples/pbsh.s | " -*-fundamental-*-
" pbsh -- a shell
" started by p budne 3/4/2016
" with code from init.s, cat.s and looking at the v1 (pdp-11) shell
" In particular, the newline/newcom/newarg/newchar processing loop(s)
" are copied from the v1 shell:
" 1. Redirection must occur at the start of a name (after whitespace)
" 2. In par... |
antlr/grammars-v4 | 3,235 | asm/pdp7/examples/brt.s | " brt
jmp start
" syscalls:
" .save: .+1
" .getuid: .+1
.open: .+1
s 2
n 8
n 7
lac sp i
dac 1f
isz sp
lac sp i
dac 2f
lac sp
tad d1
dac sp i
isz sp
sys open; 1:0; 2:0
dac sp i
isz sp
jmp fetch
.read: .+1
s 2
n 8
n 7
lac sp i
dac t1
isz sp
lac sp ... |
antlr/grammars-v4 | 2,596 | asm/pdp7/examples/wktcp.s | " Warren's cp program: cp arg1 arg2
main:
" Load the pointer pointer in 017777 to see if we have any arguments
lac 017777 i
sad d12
jmp 1f " We have 12 words, so we have 2 arguments
jmp argserror " Otherwise, print an error and exit
1: lac 017777 " Move five words past the argument word co... |
antlr/grammars-v4 | 1,177 | asm/pdp7/examples/wktln.s | " Warren's version of mv. mv file1 file2
main:
lac 017777 i " Load the pointer pointer in 017777
sad d12 " to see if we have three
jmp nofiles " Not enough arguments, stop now
lac 017777 " Move five words past the argument word count
tad d5 " so that AC points at the first a... |
antlr/grammars-v4 | 7,660 | asm/pdp7/examples/ds.s | " ds
lac 017777 i
sad d8
skp
sys exit
lac 017777
tad d5
dac .+3
law 017
sys creat; ..
dac fo
law 017
sys creat; scrname
spa
jms error
dac fso
sys open; scrname; 0
spa
jms error
dac fsi
sys chdir; dd
spa
jms error
lac d1
sys write; pass1; 1... |
antlr/grammars-v4 | 3,526 | asm/pdp7/examples/check.s | " check
lac d1
sys sysloc
dac iget
lac d2
sys sysloc
dac inode
lac d4
sys sysloc
dac nxfblk
tad d1
dac nfblks
tad d1
dac fblks
lac d5
sys sysloc
dac copy
lac d6
sys sysloc
dac copyz
lac d7
sys sysloc
dac betwen
lac d8
sys sysloc
dac dskrd
lac d10
sys sysloc
dac dskbuf
dac dskbuf1
dzm indircnt " Zero the co... |
antlr/grammars-v4 | 6,090 | asm/pdp7/examples/dmabs.s | " dmabs
" takes a list of files on command line and punches out each
" to paper tape with a "hardware read-in" (HRI) bootstrap
" program in front of them.
" Bob Supnik says:
" The PDP-7/9/15 hardware read-in used a simple format where
" the start address was specified in the address switches, and
" then 18b... |
antlr/grammars-v4 | 4,891 | asm/pdp7/examples/cat.s | " cat: cat arg1 [arg2 ...]
" Load the pointer pointer in 017777 to see if we have any arguments
lac 017777 i
sad d4 " Skip if we have more than four argument words
jmp nofiles " Only four argument words, so no arguments
lac 017777 " Move five words past the argument word count
tad d1 " so th... |
antlr/grammars-v4 | 1,657 | asm/asmRISCV/examples/Hello.S | .align 2
.include "cfg.inc"
.equ UART_REG_TXFIFO, 0
.section .text
.globl _start
_start:
csrr t0, mhartid # read hardware thread id (`hart` stands for `hardware thread`)
bnez t0, halt # run only on the first hardware thread (hartid == 0), halt all the other threads
... |
antlr/grammars-v4 | 1,432 | asm/asmRISCV/examples/Test.S | .attribute arch, rv64imafdc
# You can only use instructions from the i, m, a, f, d and c extensions.
memcpy_general:
add a5,a1,a2
beq a1,a5,.L2
add a2,a0,a2
mv a5,a0
.L3:
addi a1,a1,1
addi a5,a5,1
lbu a4,-1(a1)
sb a4,-1(a5)
bne a5,a2,.L3
.L2:
r... |
antonblanchard/chiselwatt | 2,401 | samples/hello_world/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,181 | rust_lib_demo/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,609 | hello_world/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,406 | litedram/gen-src/sdram_init/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 3,902 | tests/xics/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 1,880 | tests/privileged/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 3,471 | tests/reservation/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 4,373 | tests/misc/head.S | /* Copyright 2013-2014 IBM Corp.
* Copyrignt 2020 Shawn Anastasio
*
* 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 ... |
antonblanchard/microwatt | 3,272 | tests/mmu/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 1,171 | tests/pmu/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,446 | tests/illegal/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,386 | tests/fpu/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 5,080 | tests/modes/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 2,128 | tests/sc/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 4,036 | tests/trace/head.S | /* Copyright 2020 Paul Mackerras, IBM Corp.
*
* 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 ag... |
antonblanchard/microwatt | 2,222 | tests/spr_read/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 3,815 | tests/prefix/head.S | /* Copyright 2013-2014 IBM Corp.
* Copyright 2023 Paul Mackerras <paulus@ozlabs.org>.
*
* 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
*... |
antonblanchard/microwatt | 3,646 | tests/branch_alias/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 3,923 | tests/hash/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antonblanchard/microwatt | 3,061 | tests/decrementer/head.S | /* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
antoniogiacomelli/RK0 | 6,172 | arch/armv7m/kernel/src/klow.S | /* SPDX-License-Identifier: Apache-2.0 */
/******************************************************************************/
/** */
/** RK0 — Real-Time Kernel '0' */
/** Copyright (C) 2025 Antonio Giac... |
antoniogiacomelli/RK0 | 6,163 | arch/armv6m/kernel/src/klow.S | /* SPDX-License-Identifier: Apache-2.0 */
/******************************************************************************
*
* RK0 — Real-Time Kernel '0'
*
* Version : V0.8.0
* Architecture : ARMv6m
*
* Copyright (C) 2025 Antonio Giacomelli
*
* Licensed under the Apache Lice... |
AntonioND/gba-bootstrap | 2,962 | template_cxx/source/sys/gba_crt0.s | // SPDX-License-Identifier: CC0-1.0
//
// SPDX-FileContributor: Antonio Niño Díaz, 2022
.section .gba_crt0, "ax"
.global entrypoint
.cpu arm7tdmi
.arm
entrypoint:
b header_end
.fill 156, 1, 0 // Nintendo Logo
.fill 12, 1, 0 // Game Title
.fill 4, 1, 0 ... |
AntonioND/gba-bootstrap | 2,962 | template_c/source/sys/gba_crt0.s | // SPDX-License-Identifier: CC0-1.0
//
// SPDX-FileContributor: Antonio Niño Díaz, 2022
.section .gba_crt0, "ax"
.global entrypoint
.cpu arm7tdmi
.arm
entrypoint:
b header_end
.fill 156, 1, 0 // Nintendo Logo
.fill 12, 1, 0 // Game Title
.fill 4, 1, 0 ... |
AntonioND/gbt-player | 10,310 | gb/legacy_gbdk/gbdk_example/gbt_player.s | ;-------------------------------------------------------------------------------
;
; GBT Player v2.1.3
;
; SPDX-License-Identifier: MIT
;
; Copyright (c) 2009-2020, Antonio Niño Díaz <antonio_nd@outlook.com>
;
;-------------------------------------------------------------------------------
.NR10 = 0xFF10
.NR11 = 0xF... |
AntonioND/gbt-player | 21,937 | gb/legacy_gbdk/gbdk_example/gbt_player_bank1.s | ;-------------------------------------------------------------------------------
;
; GBT Player v2.1.3
;
; SPDX-License-Identifier: MIT
;
; Copyright (c) 2009-2020, Antonio Niño Díaz <antonio_nd@outlook.com>
;
;-------------------------------------------------------------------------------
.NR10 = 0xFF10
.NR11 = 0xF... |
AntonioND/libugba | 5,591 | source/gba/irq_handler.s | // SPDX-License-Identifier: MIT
//
// Copyright (c) 2020-2022 Antonio Niño Díaz
.section .iwram, "ax", %progbits
.code 32
.set MEM_IO_ADDR, 0x04000000
.set OFFSET_IE, 0x200
.set OFFSET_IF, 0x202
.set OFFSET_IME, 0x208
.global IRQ_GlobalInterruptHandler
IRQ_GlobalInterruptHandler:
// ... |
AntonioND/libugba | 2,962 | libsysgba/source/gba_crt0.s | // SPDX-License-Identifier: CC0-1.0
//
// SPDX-FileContributor: Antonio Niño Díaz, 2022
.section .gba_crt0, "ax"
.global entrypoint
.cpu arm7tdmi
.arm
entrypoint:
b header_end
.fill 156, 1, 0 // Nintendo Logo
.fill 12, 1, 0 // Game Title
.fill 4, 1, 0 ... |
AntonioND/giibiiadvance | 4,185 | tools/gba_mini_bios/bios.s |
@---------------------------------------------------------------------------------
.section .text,"ax",%progbits
.align 4
.code 32
.arm
.global main @ ------- DUMMY main()
main: b main
@---------------------------------------------------------------------------------
@---------------------------... |
AntonLydike/riscemu | 4,485 | riscemu/libc/stdlib.s | // A very basic implementation of a stdlib.h but in assembly.
// should(tm) work with riscemu.
//
// Copyright (c) 2023 Anton Lydike
// SPDX-License-Identifier: MIT
.data
_rand_seed:
.word 0x76767676
_atexit_calls:
// leave room for 8 atexit handlers here for now
.word 0x00, 0x00, 0x00, 0x00
.word 0x00, 0x00, 0... |
AntonLydike/riscemu | 4,751 | riscemu/libc/string.s | // string operations in RISC-V Assembly
//
// Copyright (c) 2023 Anton Lydike
// SPDX-License-Identifier: MIT
// Create NullPtr constant
.equ NULL, 0x00
.global NULL
.global strlen
// size_t libstr_strlen(char* str)
// return the length of str
.global strncpy
// char *strncpy(char *dest, const c... |
AntonLydike/riscemu | 2,823 | test/filecheck/libc/test-string.s | // RUN: python3 -m riscemu -v %s -o libc | filecheck %s
.data
data:
.byte 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88
.byte 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x00
dest:
.byte 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB
.byte 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB
small_... |
antons/dyld-shared-cache-big-sur | 9,217 | src/threadLocalHelpers.s | /*
* Copyright (c) 2010-2013 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... |
antons/dyld-shared-cache-big-sur | 2,014 | src/start_glue.s | /*
* Copyright (c) 2011 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compli... |
antons/dyld-shared-cache-big-sur | 9,441 | src/dyld_stub_binder.s | /*
* Copyright (c) 2008-2013 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... |
antons/dyld-shared-cache-big-sur | 7,125 | src/stub_binding_helper.s | /*
* Copyright (c) 1999-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exce... |
antons/dyld-shared-cache-big-sur | 9,268 | src/dyldStartup.s | /*
* Copyright (c) 1999-2011 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* co... |
AntonKast/LightZone | 42,842 | lightcrafts/jnisrc/tiff/zlib/zlib-1.2.3/contrib/inflate86/inffast.S | /*
* inffast.S is a hand tuned assembler version of:
*
* inffast.c -- fast decoding
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Copyright (C) 2003 Chris Anderson <christop@charm.net>
* Please use the copyright conditions above.
*
* This ver... |
AntonKast/LightZone | 9,238 | lightcrafts/jnisrc/tiff/zlib/zlib-1.2.3/contrib/asm686/match.S | /* match.s -- Pentium-Pro-optimized version of longest_match()
* Written for zlib 1.1.2
* Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License.
*/
#ifndef NO_UNDERLINE
#define match_init _... |
AntonKast/LightZone | 10,817 | lightcrafts/jnisrc/tiff/zlib/zlib-1.2.3/contrib/asm586/match.S | /* match.s -- Pentium-optimized version of longest_match()
* Written for zlib 1.1.2
* Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License.
*/
#ifndef NO_UNDERLINE
#define match_init _matc... |
anyakichi/CleanArchiver | 12,154 | zip/crc_i386.S | /*
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2000-Apr-09 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.org/... |
anyakichi/CleanArchiver | 14,169 | zip/match.S | /*
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2004-May-22 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, both of these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.... |
anyakichi/CleanArchiver | 4,634 | zip/human68k/match.s | *===========================================================================
* Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
*
* See the accompanying file LICENSE, version 1999-Oct-05 or later
* (the contents of which are also included in zip.h) for terms of use.
* If, for some reason, both of these files are... |
anyakichi/CleanArchiver | 4,143 | zip/human68k/crc_68.s | ;===========================================================================
; Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 2000-Apr-09 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, all these files are mis... |
anyakichi/CleanArchiver | 36,215 | zip/human68k/deflate.s | ;===========================================================================
; Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 1999-Oct-05 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, both of these files are... |
anyakichi/CleanArchiver | 4,391 | zip/acorn/sendbits.s | ;===========================================================================
; Copyright (c) 1990-2009 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 2009-Jan-2 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, all these files are miss... |
anyakichi/CleanArchiver | 9,060 | zip/acorn/match.s | #if defined(__aof__)
;===========================================================================
; Copyright (c) 1990-2009 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 2009-Jan-2 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, all... |
anyakichi/CleanArchiver | 2,523 | zip/qdos/crc68.s | ;===========================================================================
; Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 2000-Apr-09 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, all these files are mis... |
anyakichi/CleanArchiver | 3,087 | zip/qdos/config.s | ;===========================================================================
; Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 1999-Oct-05 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, both of these files are... |
anyakichi/CleanArchiver | 3,718 | zip/qdos/match.s | ;===========================================================================
; Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
;
; See the accompanying file LICENSE, version 1999-Oct-05 or later
; (the contents of which are also included in zip.h) for terms of use.
; If, for some reason, both of these files are... |
AnyBlox/anyblox | 204,553 | ebpf-decompress/src/bpf/packing.bpf.s | .text
.file "packing.bpf.c"
.file 0 "/home/mat/src/portable-decompress" "ebpf-decompress/src/bpf/packing.bpf.c" md5 0xb5ef7bd598f0de0e3bc499cea306dce7
.file 1 "./ebpf-decompress/src/bpf" "vmlinux.h" md5 0xd609f28e272dd8c860d6fdddd8b15647
.file 2 "./ebpf-decompress/src/bpf" "packing.bpf.c" md5 0xb5ef7bd598f0de0e3bc... |
AnyBlox/anyblox | 199,725 | ebpf-decompress/src/bpf/rle.bpf.s | .text
.file "rle.bpf.c"
.file 0 "/home/mat/src/portable-decompress" "ebpf-decompress/src/bpf/rle.bpf.c" md5 0xe62dfaa0f8e3da44093045b940730533
.file 1 "./ebpf-decompress/src/bpf" "vmlinux.h" md5 0xd609f28e272dd8c860d6fdddd8b15647
.file 2 "./ebpf-decompress/src/bpf" "rle.bpf.c" md5 0xe62dfaa0f8e3da44093045b94073053... |
ANYCUBIC-3D/Vyper | 2,348 | buildroot/share/PlatformIO/variants/MEEB_3DP/wirish/start.S | /******************************************************************************
* The MIT License
*
* Copyright (c) 2011 LeafLabs, LLC.
*
* 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 Softwar... |
ANYCUBIC-3D/Vyper | 2,348 | buildroot/share/PlatformIO/variants/CHITU_F103/wirish/start.S | /******************************************************************************
* The MIT License
*
* Copyright (c) 2011 LeafLabs, LLC.
*
* 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 Softwar... |
anydream/il2cpp | 1,922 | runtime/bdwgc/sparc_mach_dep.S | ! SPARCompiler 3.0 and later apparently no longer handles
! asm outside functions. So we need a separate .s file
! This is only set up for SunOS 5, not SunOS 4.
! Assumes this is called before the stack contents are
! examined.
.seg "text"
.globl GC_save_regs_in_stack
GC_save_regs_in_stack:
#if defined(__arch64__)... |
anvayabn/Z-stack | 2,794 | adapter/micro_thread/arch_ctx.S |
/**
* Tencent is pleased to support the open source community by making MSEC available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the GNU General Public License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
anvayabn/Z-stack | 2,204 | freebsd/kern/firmw.S | /*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2020 John Baldwin <jhb@FreeBSD.org>
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory (Department of Computer Science and
* Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part o... |
anvayabn/Z-stack | 6,505 | freebsd/i386/i386/copyout_fast.s | /*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2018 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by Konstantin Belousov <kib@FreeBSD.org>
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or witho... |
anvayabn/Z-stack | 16,687 | freebsd/i386/i386/exception.s | /*-
* Copyright (c) 1989, 1990 William F. Jolitz.
* Copyright (c) 1990 The Regents of the University of California.
* Copyright (c) 2007, 2018 The FreeBSD Foundation
* All rights reserved.
*
* Portions of this software were developed by A. Joseph Koshy under
* sponsorship from the FreeBSD Foundation and Google, ... |
anvayabn/Z-stack | 11,545 | freebsd/i386/i386/locore.s | /*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* William Jolitz.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
anvayabn/Z-stack | 2,688 | freebsd/i386/i386/atpic_vector.s | /*-
* Copyright (c) 1989, 1990 William F. Jolitz.
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions o... |
anvayabn/Z-stack | 11,326 | freebsd/i386/i386/support.s | /*-
* Copyright (c) 1993 The Regents of the University of California.
* All rights reserved.
*
* 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
... |
anvayabn/Z-stack | 4,070 | freebsd/i386/i386/bioscall.s | /*-
* Copyright (c) 1997 Jonathan Lemon
* All rights reserved.
*
* 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 cond... |
anvayabn/Z-stack | 6,938 | freebsd/i386/i386/apic_vector.s | /*-
* Copyright (c) 1989, 1990 William F. Jolitz.
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions o... |
anvayabn/Z-stack | 4,254 | freebsd/i386/i386/sigtramp.s | /*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* William Jolitz.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
anvayabn/Z-stack | 11,405 | freebsd/i386/i386/swtch.s | /*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* William Jolitz.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
anvayabn/Z-stack | 4,833 | freebsd/i386/i386/vm86bios.s | /*-
* Copyright (c) 1998 Jonathan Lemon
* All rights reserved.
*
* 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 cond... |
anvayabn/Z-stack | 6,717 | freebsd/i386/i386/mpboot.s | /*-
* Copyright (c) 1995 Jack F. Vogel
* All rights reserved.
*
* 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 condi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.