content stringlengths 23 1.05M |
|---|
SECTION code_fp_math16
PUBLIC polyf16
EXTERN cm16_sccz80_poly
defc polyf16 = cm16_sccz80_poly
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _polyf16
EXTERN cm16_sdcc_poly
defc _polyf16 = cm16_sdcc_poly
ENDIF
|
.global get_el
get_el:
mrs r1, cpsr
and r0, r1, #0x1f
bx lr
|
; WARNING: do not edit!
; Generated from openssl/crypto/aes/asm/aesni-sha1-x86_64.pl
;
; Copyright 2011-2020 The OpenSSL Project Authors. All Rights Reserved.
;
; Licensed under the OpenSSL license (the "License"). You may not use
; this file except in compliance with the License. You can obtain a copy
; in th... |
Map_3624D0: dc.w Frame_3624F4-Map_3624D0
dc.w Frame_36251A-Map_3624D0
dc.w Frame_36252E-Map_3624D0
dc.w Frame_362542-Map_3624D0
dc.w Frame_36254A-Map_3624D0
dc.w Frame_362552-Map_3624D0
dc.w Frame_36255A-Map_3624D0
dc.w Frame_362562-Map_3624D0
dc.w Frame_362570-Map_3624D0
dc.w Frame_36257E-Map_3624D0
... |
; Update all spikes
; Params:
; None
; Return:
; e -> The number of spikes after update
; Registers:
; af -> Not preserved
; bc -> Not preserved
; de -> Not preserved
; hl -> Not preserved
updateSpikes:
ld hl, NB_SPIKES
ld a, [hli]
and a
ret z
ld c, a
ld a, [CURRENT_SCROLL]
ld d, a
xor a
ld ... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson 9-pin printer driver for Zoomer
FILE: epson9zManager.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- ... |
MORPHGEN struct
rgen_addr dd ?
tgen_addr dd ?
cryptcode_addr dd ?
size_cryptcode dd ?
pa_buf_for_morph dd ?
va_buf_for_morph dd ?
buf_with_morph dd ?
size_morph dd ?
mapped_addr dd ... |
; interstitials are disabled in M.o.S II
; the interstitial types for interstitialActive
INTERSTITIAL_LIVELOST = $01
INTERSTITIAL_FADEOUT = $02
INTERSTITIAL_FADEIN = $03
INTERSTITIAL_FADEINPLAYER = $04
INTERSTITIAL_FAIRIESGODOWN = $05
INTERSTITIAL_FAIRIESGOUP = $06
INTERSTITIAL_LEVELCOMPLETED = $07
INTERSTITIALFLA... |
#Monta o sistema operacional conforme foi definido.
.text 0x0
#Boot
.include "boot/boot.asm"
#Kernel
.include "kernel/kernel.asm"
#COLOCAR 1 E SOMENTE 1 DOS ARQUIVOS DA PASTA main PARA FORA. O ARQUIVO DEVE FICAR AO LADO DE _root PARA FUNCIONAR.
#NO MARS: SETTINGS->'ASSEMBLE ALL FILES IN DERECTORY' DEVE ESTAR SELEC... |
OUTPUT "disp.bin"
ORG $8000
phase1_start:
PHASE $FFFF
longptr1: DB 'A'
longptr2: DB 'B'
longptr3: DB 'C'
UNPHASE
phase1_end:
normalmem: DB '_'
ORG $FFFF
phase2_start:
PHASE $FFFE
longptr4: DB '.D' ; disp FFFE..FFFF, but crossing real memory $10000
longptr5... |
; void in_WaitForKey(void)
; 09.2005 aralbrec
SECTION code_clib
PUBLIC in_WaitForKey
PUBLIC _in_WaitForKey
; uses : AF
.in_WaitForKey
._in_WaitForKey
xor a
in a,($b2)
and 127
cp 127
jr z, in_WaitForKey
ret
|
#include "kernel.inc"
#include "corelib.inc"
#include "expr.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 64
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "Calculator", 0
start:
kld(de, corelib_path)
pcall(loadLibrary)
pcall(getKeypadLock)... |
BITS 32
; egg:
; LL II M1 M2 M3 DD DD DD ... (LL * DD)
; LL == Size of eggs (same for all eggs)
; II == Index of egg (different for each egg)
; M1,M2,M3 == Marker byte (same for all eggs)
; DD == Data in egg (different for each egg)
marker equ 0x280876
egg_size equ 0x3
max_index equ 0x2
start:
XOR ... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; MOVSX32rr8
mov eax, 0x55555
mov ah, 0x3
;TEST_BEGIN_RECORDING
movsx eax, ah
;TEST_END_RECORDING
|
;
;
SECTION code_clib
PUBLIC conio_map_colour_firmware
PUBLIC cpc_set_ansi_palette
INCLUDE "target/cpc/def/cpcfirm.def"
EXTERN __CLIB_CONIO_NATIVE_COLOUR
; Map ANSI colours to firmware colours
conio_map_colour_firmware:
ld hl,ansipalette
do_mapping:
ld c,__CLIB_CONIO_NATIVE_COLOUR
rr... |
; Original address was $B079
; Pipe junction E2
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_D8
.byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_LOCKED
.byte LEVEL4_BGBANK_INDEX(3) | LEVEL4_INIT... |
;
; Copy a buffer of 8 graphics rows to the zx printer
;
; Stefano Bodrato, 2018
;
;
; $Id: zx_print_buf.asm $
;
SECTION code_clib
PUBLIC zx_print_buf
PUBLIC _zx_print_buf
PUBLIC zx_print_row
PUBLIC _zx_print_row
EXTERN zx_fast
EXTERN zx_slow
EXTERN call_rom3
.zx_print_buf
._zx_pri... |
Name: ys_exst.asm
Type: file
Size: 110384
Last-Modified: '2016-05-13T04:50:38Z'
SHA-1: 9CD36FCA8FA7CDCEFC2D49524BDF8BABB4392CF2
Description: null
|
extern m7_ippsCmpZero_BN:function
extern n8_ippsCmpZero_BN:function
extern y8_ippsCmpZero_BN:function
extern e9_ippsCmpZero_BN:function
extern l9_ippsCmpZero_BN:function
extern n0_ippsCmpZero_BN:function
extern k0_ippsCmpZero_BN:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
a... |
; Процедура инициализации для DLL
.386
.model flat, stdcall
option casemap: none
.code
DllMain proc hInstance:dword, reason:dword, lpReserved:dword
mov eax, -1
ret
DllMain endp
end DllMain |
addi $t3,$t1,10
addi $t4,$t2,20
add $t5,$t3,$t4
sub $t6,$t4,$t3
sw $t5,0($zero)
sw $t6,4($zero)
|
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%i... |
;
; Copyright (c) 2021 Alain (@AlainPlusPlus)
;
; Cascaron para juego de aventura de texto.
; Obtiene la tecla presionada por el usuario, reacciona a la opción y finaliza programa.
;
section .data ;declara variables inicializadas
ask db 'Pregunta/Acertijo',10,'¿Con [m]elon o con [s]andia?',10,'responde [m... |
push 0
push 1
st_em 0x0,2,0
push 0
push 1
sethi 0x0200
st_em 0x0,2,0
push 0
pull_cp 0
push 20
cmp_ule
bz 2
drop 0
halt
push 1
ld_em 0x0,2,0
push 1
add
push 1
st_em 0x0,2,0
push 1
sethi 0x0200
pull_cp 0
ld_em 0x0,2,0
push 1
add
pull 1
st_em 0x0,2,0
push 1
add
j -23 |
10 ORG 100H
20 JP MAIN
30REGOUT EQU 0BD03H
35INSLN EQU 0BE65H
40DSPDE EQU 0BFF1H
50INITSR EQU 0871AH
60OPENSR EQU 0BCE8H
70CLOSSR EQU 0BCEBH
80LRDSR EQU 0BD15H
90WAITK EQU 0BFCDH
100WSTSR EQU 0BFB2H
110MAIN: CALL INITSR
120 CALL OPENSR
121 LD DE, 0
122 CALL INSLN
123 LD DE, 00100H
124 CALL INSLN
125 LD DE, 00200H
126 C... |
strprint:;bx ist Nachricht, erste Speicheradresse dessen. / bx is the message
pusha;Alle Register auf Stack schieben /push all registers to stack
mov ah, 0x0e;Bios OP Code
strprint_loop:
mov al, [bx];
cmp al, 0;Untersuchen ob bei al 0 ist, wenn ja, Ende, wenn nein Ausgabe. /if al 0, if so, end, if not print out
jne st... |
CYY_TZHUAN_VICTOR_R1 dw 0
CYY_TZHUAN_VICTOR_R2 dw 0
; main
lda R1, 0
lda R2, 0
lda R3, 0
lda R4, 0
lda R5, 0
lda R6, 0
lda R7, 0
lda R8, 0
lda R9, 0
lda RA, 0
lda RB, 0
lda RC, 0
lda RD, 0
lda RE, 0
lda RF, 0
lda R1, 1
ld R2, 255
CYY_TZHUAN_VICTOR_LOOP ld RA, 255
st R1, CYY_TZHUAN_VICTOR_R1
st R2, ... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Buttons.inc"
#include "TestFixture.inc"
#include "../InitialiseAfterButtonsMock.inc"
radix decimal
InitialisationChainTest code
global testArrange
testArrange:
fcall initialiseInitialiseAfterButtonsMock
testAct:
fcall initialiseButtons
testAssert:
... |
global load_gdt
load_gdt:
lgdt [rdi] ; load GDT, rdi (1st argument) contains the gdt_ptr
mov ax, 0x30 ; TSS segment is 0x30
ltr ax ; load TSS
mov ax, 0x10 ; kernel data segment is 0x10
mov ds, ax ; load kernel data segment in data segment registers
mov es, ax
mo... |
; Sameboy CGB bootstrap ROM
; Todo: use friendly names for HW registers instead of magic numbers
; Todo: add support for games that assume DMG boot logo (Such as X), like the
; original boot ROM.
SECTION "BootCode", ROM0[$0]
Start:
; Init stack pointer
ld sp, $fffe
; Select RAM bank
ld a, 2
ldh [$70], a
... |
section reset
global main_main
reset:
jal main_main
section code
global bsp_putc
bsp_putc:
jr ra
|
; Startup Code for Xircom Rex 6000
;
; djm 6/3/2001
;
; $Id: rxl_crt0.asm,v 1.5 2009/06/22 21:20:05 dom Exp $
;
MODULE rex_crt0
INCLUDE "zcc_opt.def"
;--------
; Some scope declarations
;--------
XREF _main ;main() is always external to crt0
XREF _LibMain
XDEF _std_seed ;integer rand() seed
XDEF... |
;asmttpd - Web server for Linux written in amd64 assembly.
;Copyright (C) 2014 nemasu <nemasu@gmail.com>
;
;This file is part of asmttpd.
;
;asmttpd 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 versio... |
%ifndef TIME
%define TIME
time:
mov eax, 0
mov ah, 00h
int 1ah
;mov ax, dx
;shl eax, 16
mov ax, dx
;mov ax, 0
;mov al, dl
ret
%endif
|
# INPUT
# $a0: base address matrice
# $a1: dimensione matrice (righe)
# $a2: dimensione matrice (colonne)
# OUTPUT
# $v0: massimo tra i minimi su ogni riga
.data
arr: .space 256
.text
.globl maxmin
maxmin:
addi $sp, $sp, -24
# salvo $ra perche procedura non foglia
sw $ra, 0($sp)
# caller saved
sw $s0, 4($s... |
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
section .data
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
BUFFER_SIZE: equ 8*1024
IV dq 0x6a09e667f3bcc908, 0xbb67ae8584caa73b
dq 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1
dq 0x510e527fade682d1, 0x9b0568... |
; output file name and target machine should be defined in a Makefile
; formatted for the ACME assembler
;========================
; MATHS FUNCTIONS
;========================
; MATHS_Multiply8Bit
; multiplies 2 8 bit unsigned values together, returns 16 bit result
; PARAM1 - first value to be multiplied
;... |
; The first two bytes of a .prg file provide the loading address for the
; program (low byte, hi byte). We have to tell TASM to put those two bytes in
; first, i.e. at desired start address - 2.
.org $0801 - 2 ;*=$07FF
.BYTE $01, $08
; This byte array creates the BASIC line: 10 SYS (2304)
; at... |
.model small
.code
org 100h
JUSTIN:
call CHECK_MEMORY
jc GOTO_HOST_LOW
call JUMP_HIGH
call FIND_FILE
jc GOTO_HOST_HIGH
call INFECT_FILE
GOTO_HOST_HIGH:
mov di,100h
mov si, offset HOST
mov ax,ss
mov ds,ax
mov es,ax
push ax
push di
mov cx,sp
sub cx,offset HOST
rep movsb
retf
G... |
NEWCHARMAP baseball
charmap "ℙ", 1 ; pitcher
charmap "ℂ", 2 ; catcher
charmap "¹", 3 ; first
charmap "²", 4 ; second
charmap "³", 5 ; third
charmap "ş", 6 ; short
charmap "ļ", 7 ; left
charmap "ç", 8 ; center
charmap "ŗ", 9 ; right
charmap "◌", 10
charmap "⚾", 11
charmap "ț", 15 ; to
charmap "ᚠ", 16 ; age
charmap "↵", ... |
user/_ls: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <fmtname>:
#include "user/user.h"
#include "kernel/fs.h"
char*
fmtname(char *path)
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 ... |
; void __CALLEE__ sp1_IterateSprChar_callee(struct sp1_ss *s, void *hook1)
; 02.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_temp_sp1
PUBLIC sp1_IterateSprChar_callee
sp1_IterateSprChar_callee:
pop hl
pop ix
ex (sp),hl
INCLUDE "temp/sp1/zx/sprites/asm_sp1_IterateSprChar.asm"
|
extern _MessageBoxA ; Using external function from User32.dll
global _main
section .data
MESSAGE DB "This is a message.", 0
TITL DB "Title", 0 ; ,0 = Quebra de Linha
section .text
_main:
PUSH 0
PUSH TITL
PUSH MESSAGE
PUSH 0 ; -> NULL
CALL _MessageBoxA |
/* VMS dwarf2 exception handling section sequentializer.
Copyright (C) 2002, 2009 Free Software Foundation, Inc.
Contributed by Douglas B. Rupp (rupp@gnat.com).
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... |
stk 5
; prints 1111321
mbegin
mov r1, 5
mov r2, 5
le r1, r2
mov r2, 5
mov r2, 6
le r1, r2
and r1, r2
mend
add r1, .0
out r1
mbegin
mov r1, 4
mov r2, 2
le r1, r2
mend
add r1, .0
inc r1
out r1
mov r1, 9
^mod r1, 2
add r1, .0
out r1
^mov r1, 3
^mov r2, 2
^ne r1, r2
^mov r2, 3
^mov r3, 3
^ne r2, r3
log r2... |
%ifdef CONFIG
{
"RegData": {
"R15": "0x20"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
%macro cfmerge 0
; Get CF
sbb r14, r14
and r14, 1
; Merge in to results
shl r15, 1
or r15, r14
%endmacro
mov rdx, 0xe0000000
mov rax, 0xFFFFFFFF80000002
mov [rdx + 8 * 0], rax
mov [rdx + 8 * 1], rax
m... |
assume cs:code
code segment
start: mov al, 120
call showsin
mov ax, 4c00h
int 21h
showsin:
;description:display the value of sin(x),x in {0, 30, 60, 90, 120, 150, 180}
;params: (al)=x
;return: none
jmp short show
table dw ag0, ag30, ag60, ag90, ag120, ag150, ag180
ag0 db '0', 0
ag30 db '0.5', 0
ag60 db ... |
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0xfc, 0x3f, 0x0f, 0xc3, 0xf3, 0x0c, 0x3f, 0x0f, 0xcc
db 0x30, 0xfc, 0x00, 0x03, 0x00, 0xc3, 0x30, 0xcc, 0x33, 0x0c, 0xf0, 0x30
db 0xcc, 0x33, 0xc0... |
; Linebuf
; Line buffer handler
;
; 2017 Scott Lawrence
;
; This code is free for any use. MIT License, etc.
.module Linebuf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Line input routines
str_prompt: .asciz "? "
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; C... |
;This is our bootloader assembly code
Stage2Sector equ 0x7e0
TempKernelSector equ 0x3000
RootLoad equ 0x1000
FATLoad equ 0x6000
[org 0x7c00]
[bits 16]
jmp near boot_stage_1
;---------------------------------------------------------------------------------------
;times (0x3d-0x02) db 0
bpbOEM db "DummyBPB"
bpbBytes... |
SeafoamIslands4Object:
db $7d ; border block
db $7 ; warps
db $c, $5, $1, SEAFOAM_ISLANDS_3
db $6, $8, $2, SEAFOAM_ISLANDS_5
db $4, $19, $3, SEAFOAM_ISLANDS_5
db $3, $19, $4, SEAFOAM_ISLANDS_3
db $e, $19, $6, SEAFOAM_ISLANDS_3
db $11, $14, $0, SEAFOAM_ISLANDS_5
db $11, $15, $1, SEAFOAM_ISLANDS_5
db $0 ; sig... |
# Author : Tom Regan <noreply.tom.regan@gmail.com>
# Last modified : 2011-08-12
# Description : Does an O(n^2) sort on an unsorted list.
# Modifies : registers : $t(0..9)
# memory : Stack(40b)
Main: addi $t0, $zero, 7 # Store some values to be sorted
addi $t1, $zero, 5
... |
USE32
SUB EAX,[ESP]
SUB AL,[ECX*2]
SUB AX,[EBX*4]
SUB EAX,[EBP*8]
SUB EAX,[EBP]
SUB CH,[ESP+EBP]
SUB DX,[EBP+EBP]
SUB ESI,[EAX+ECX]
SUB [EAX+EBX],DH
SUB [ESI+EDI*2],DX
SUB [EAX+ECX*4],CX
SUB [EBP+ECX*8],ECX
SUB AX,[ESI+EDI*2+1FH]
SUB ECX,[ESI+EDI*8-1FH]
SUB [ESP+EBP*4+1FFFFFFH],BH
SUB [ESP+EBP*4-1FFFFFF... |
include 'loonyvm.inc'
; setup first task
mov r0, tasks
mov [r0 + TASK.State], 1
mov [r0 + TASK.Regs.IP], task1
mov [r0 + TASK.Regs.SP], 0x70000
; and second task
add r0, sizeof.TASK
mov [r0 + TASK.State], 1
mov [r0 + TASK.Regs.IP], task2
mov [r0 + TASK.Regs.SP], 0x77FFF
; set timer interrupt to 100hz
mov r0, 1
mov r... |
LIST P=16F877a
#include p16f877a.inc
BSF STATUS,RP0
BCF STATUS,RP1
MOVLW 0X00
MOVWF TRISB
BCF STATUS,RP0
BCF STATUS,RP1
LOOP:
MOVLW 0XFF
MOVWF PORTB
CALL DELAY
MOVLW 0X00
MOVWF PORTB
CALL DELAY
GOTO LOOP
DELAY:
MOVLW 0X05
MOVWF 0X30
LABEL1:
MOVLW 0XFF
MOVWF 0X31
LABEL2:
... |
PAGE ,132
VIRUS SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:VIRUS,DS:VIRUS
R1 EQU IDE-131H
R2 EQU BE1-1A3H
HOSSZ EQU VEG-KEZDET
ORG 100H
KEZDET EQU $
DB 1
CLI
MOV BP,SP
CALL IDE
IDE: POP BX ; A CIM VISSZAOLVASASA
SUB BX,131H
TEST CS:BYTE PTR [BX+KEZDET-R1],1
JZ INDIT
LEA SI,[BX+INDIT-R1]
MOV SP,OFFSET VEG-INDIT... |
section .text
global detect_high_memory
detect_high_memory:
xor ebx, ebx
xor bp, bp
mov edx, 0x53D4150 ;magic number
mov [es:di + 20], dword 1
mov eax 0xe820
mov ecx 24
int 0x15
jc short .failed ; function unsupported
mov edx, 0x53D4150 ;Apparently some bioses trash the register
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: nameManager.asm
AUTHOR: John Wedgwood, Feb 11, 1991
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date De... |
SilphCo8_h:
db FACILITY ; tileset
db SILPH_CO_8F_HEIGHT, SILPH_CO_8F_WIDTH ; dimensions (y, x)
dw SilphCo8Blocks, SilphCo8TextPointers, SilphCo8Script ; blocks, texts, scripts
db $00 ; connections
dw SilphCo8Object ; objects
|
;(C)2004 Ben Hencke
;This is a runtime if macro library. It compiles into
;real run-time evaluated nested if blocks. I use it for
;just about everything and I hope you will too.
;I tried to use nomenclature similar to mchips
;ie ifzf - check for z in f, not iffz - check f for z
;the skipping instructions have an 'if... |
; set cursor stuff:
ldi xr #0E ; Display on, cursor on, blink off : 00001110
jmp writeSet
; entry mode set
ldi xr #06 ; Increment and shift curosr, don't shift display, 00000110
jmp writeSet
; write fib
ldi xr 'F' ; print F
jmp writeChar
ldi xr 'i' ; print i
jmp writeChar
ldi xr 'b' ; print b
jmp writeCh... |
; Program 5.4
; while Loop - NASM (64-bit)
; Copyright (c) 2017 Hall & Slonka
SECTION .text
global _main
_main:
mov rax, 30
while_loop:
cmp rax, 50
jae done
inc rax
jmp while_loop
done:
mov rax, 60
xor rdi, rdi
syscall
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; File: gdt.asm
;; Copyright 2020-2021 Scott Maday
;; Check the LICENSE file that came with this program for licensing terms
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%include "gdt.inc"
SECTION .t... |
;Testname=unoptimized; Arguments=-O0 -fbin -obr3385573.bin; Files=stdout stderr br3385573.bin
;Testname=optimized; Arguments=-Ox -fbin -obr3385573.bin; Files=stdout stderr br3385573.bin
[bits 64]
vpmovsxbw ymm1, xmm2
vpsllw ymm1, ymm2, 3
vpslld ymm1, ymm2, 3
vpsllq ymm1, ymm2, 3
vpsrld ymm1, ymm2, 3... |
; Value macros
; Many arbitrary percentages are simple base-10 or base-16 values:
; - 10 = 4 percent
; - 15 = 6 percent
; - $10 = 6 percent + 1 = 7 percent - 1
; - 20 = 8 percent
; - 25 = 10 percent
; - 30 = 12 percent
; - 40 = 16 percent
; - 50 = 20 percent - 1
; - 60 = 24 percent - 1
; - 70 = 28 percent - 1... |
initSerial:
push bp
mov bp, sp
mov bx, [bp + 4]
;Disable all interrupts
mov dx, bx
inc dx
xor ax, ax
out dx, al
;Enable DLAB
mov dx, bx
add dx, 3
mov al, 0x80;habilitando ultimo bit do registrador
out dx, al
;Set divisor to 3
mov dx, bx
mov al, 3
out... |
;;
;; MEG-OS Zero Second boot loader
;;
;; Copyright (c) 2014-2017 MEG-OS project
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without modification,
;; are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above c... |
processor 6502
include ../vcs.h
SwitchPeriod = 121
SEG.U VARS
ORG $80
CtrlpfContents ds 1
FrameCounter ds 1
SEG CODE
org $F000
Start
SEI
CLD
LDX #$FF
TXS
LDA #0
ClearMem
STA 0,X
DEX
BNE ClearMem
LDA #%10100000
STA PF0
LDA #%01010101
STA PF1
LDA #%10101010
STA PF2
LDA #$1C
STA COLUP0
L... |
%ifndef disk_sect_start
%define disk_sect_start 3
%endif
%ifndef kern_sect_num
%define kern_sect_num 50
%endif
%include "arch/i686/bios_interrupts.asm"
MEM_MAP_START equ 0x800
KERNEL_OFFSET equ 0x1000 ; The same one we used when linking the kernel
STACK_BASE equ 0x9000
[org 0x7c00]
mov [BOOT_DRIVE], dl ; Remembe... |
include "../hardware.inc"
section "Input ROM", rom0
;; Clear out the input flags
InputInit::
xor a, a
ldh [hInput], a
ldh [hInputNext], a
ret
;; Updates the input variables in HRAM
InputUpdate::
ld c, low(rP1)
; Get the action buttons
ld a, P1F_GET_BTN
ldh [c], a
rept 4
ldh a, [... |
TITLE CVPUBALL - Copyright (c) SLR Systems 1994
INCLUDE MACROS
if fg_cvpack
INCLUDE SYMBOLS
INCLUDE MODULES
INCLUDE SEGMENTS
INCLUDE CVTYPES
INCLUDE SEGMSYMS
if fg_pe
INCLUDE PE_STRUC
endif
PUBLIC CV_PUBLICS_ALL_4
.DATA
EXTERNDEF CV_TEMP_RECORD:BYTE
EXTERNDEF CURNMOD_NUMBER:DWORD,CV_PUB_TX... |
; The Windozz Project
; Copyright (C) 2018-2019 by the Windozz authors.
bits 16
detect_memory:
; get the E820 memory map
mov di, e820_map+2
mov edx, 0x534D4150
xor ebx, ebx
.loop:
mov eax, 0xE820
mov ecx, 24
int 0x15
jc .check_error
cmp eax, 0x534D4150
jne .error
add wo... |
LIST P=PIC16F84A
INCLUDE "P16F84A.INC"
__CONFIG _HS_OSC
TMP0 EQU 0CH
TMP1 EQU 0DH
ORG 0H
MAIN
BSF STATUS, RP0
CLRF TRISB
MOVLW 01FH
MOVWF TRISA
BCF STATUS, RP0
CLRF PORTB
LOOP
MOVF PORTA, W
ANDLW B'00000001'
MOVWF TMP0
MOVF PORTA, W
ANDLW B'00000010'
MOVWF TMP1
BCF STATUS, C
RRF TMP1,... |
; FV-1 Testing
;
; Program: LFO Interpol Delay
;
; Interpolate a delay line using a sin lfo
;
skp run,main
wlds SIN0,0x1c4,0x7fff ; test signal in SIN0
wlds SIN1,0x071,0x7fff ; modulation signal in SIN1
main: cho rdal,SIN0 ; and load the test signal
wra 0,0.0 ; write into delay line
cho rda,SIN1,REG|COMPC,0x3... |
user/_primes: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
//primes.c
#include "kernel/types.h"
#include "user/user.h"
#include "kernel/stat.h"
int main(){
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,... |
frame 1, 12
setrepeat 2
frame 3, 06
frame 1, 06
dorepeat 2
frame 1, 30
endanim
|
global _start
section .data
codes: db '0123456789ABCDEF'
section .text
_start:
mov rax, 0x1122334455667788
mov rdi, 1
mov rdx, 1
mov rcx, 64
.loop:
push rax
sub rcx, 4
sar rax, cl
and rax, 0xf
lea rsi, [codes + rax]
push rcx
mov rax, 1
syscall
pop rcx
pop rax
test rcx, rcx
jnz .loop
mo... |
; int mtx_trylock_fastcall(mtx_t *m)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC _mtx_trylock_fastcall
EXTERN asm_mtx_trylock
defc _mtx_trylock_fastcall = asm_mtx_trylock
|
;fibonacci
;term is stored in reg d
;answer is shown in reg h
jmp start
;data
;code
start: nop
mvi d, 05h
mov e, d ;counter
mov a, e
cpi 02h
jz term12 ;if reg d is 2, result is 1
jc term12 ;if reg d is 1, result is 1
dcr e
dcr e ;minus two because I am skipping first 2 terms
mvi b, 01h
mvi c, 01h
loop: mov a, ... |
/// @file
/// Functions for performing input and output.
// Commodore 64 PRG executable file
.file [name="ducks-array.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Bas... |
; void *memcpy(void * restrict s1, const void * restrict s2, size_t n)
SECTION code_string
PUBLIC memcpy_callee
EXTERN asm_memcpy
memcpy_callee:
pop af
pop bc
pop hl
pop de
push af
jp asm_memcpy
|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>exit(status) -> str
Invokes the syscall exit.
See 'man 2 exit' for more information.
Arguments:
status(int): status
Returns:
void
</%docstring>
<%page args="status=0"/>
<%
abi = pwnlib.abi.A... |
; ra0 butonuna 2.3 sn'yi gecmeyen araliklarla basildiginda rb0'daki
; led'in devamli yanmasini saglar. Bu sureden saha uzun basildiginda WDT
; devreye girerek sistemi reset eder. Sistem reset olunca rb3'teki buzzer
; uyari sesi verir. sonra program sonsuz donguye girer. MCLR basarak
; harici reset atilir
;
L... |
; led_invaders.asm
; Animated space invaders-like aliens invade the TRS-80 screen. The aliens
; look strangly like LEDs due to my artwork.
;
; zmac led_invaders.asm
; trs80gp.exe -m1 zout/led_invaders.cmd
screen equ $3c00
org $5200
; Frame 1 of the ship animation: 3 characters X 2 lines.
; 0 1 1 1 1... |
Facings:
; entries correspond to FACING_* constants
dw FacingStepDown0
dw FacingStepDown1
dw FacingStepDown2
dw FacingStepDown3
dw FacingStepUp0
dw FacingStepUp1
dw FacingStepUp2
dw FacingStepUp3
dw FacingStepLeft0
dw FacingStepLeft1
dw FacingStepLeft2
dw FacingStepLeft3
dw FacingStepRight0
dw FacingStepR... |
subu $4,$4,$3
lh $4,6($0)
ori $6,$3,9026
srav $3,$3,$3
lhu $3,2($0)
srav $1,$5,$3
lw $4,16($0)
slt $4,$4,$3
srl $6,$3,1
addu $3,$1,$3
andi $1,$1,33910
subu $3,$5,$3
slti $1,$1,-26184
lbu $1,13($0)
addu $3,$3,$3
slt $3,$2,$3
addiu $5,$6,7231
subu $4,$3,$3
nor $0,$6,$3
srl $6,$2,12
addiu $3,$4,27210
sltiu $1,$5,21442
sw ... |
; @copyright
; Copyright (C) 2020 Assured Information Security, Inc.
;
; @copyright
; 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 right... |
; Test case:
ld a, #0203 & #00ff
ld (var), a
or a
jr nz, _sjasm_reusable_1_1
ld a, (#0203 & #ff00) >> 8
ld (var), a
_sjasm_reusable_1_1:
ld a, #0203 & #00ff
ld (var), a
or a
jr nz, _sjasm_reusable_1_2
ld a, (#0203 & #ff00) >> 8
ld (var), a
_sjasm_reusable_1_2:
loop:
jr loop
var:
db 0
|
; Day-33 Date-28/05/2021
; reverse order print of 8 chars/digits
.model small
.stack 100h
include 'emu8086.inc'
.data
n_line db 0ah,0dh,"$"
.code
main proc
mov ax,@data
mov ds,ax
mov dx,0
mov cx,8
mov ax,0
mov bx,0
@input:
mov ah,1
int 21h
;add ax,'0'
push ax
xor ax,a... |
; tdll.asm
;
; assemble with
; nasm -fobj tdll.asm
;
; link with
; alink -oPE -dll tdll win32.lib
; (win32.lib is available from my web page)
global start
global title1
export start
export title1
;these names are defined in win32.lib as the names of
;a stub proc, and the IAT entry name for MessageB... |
[org 0x7c00]
[bits 16]
entry:
; Disable interrupts and clear direction flag
cli
cld
; Set the A20 line
in al, 0x92
or al, 2
out 0x92, al
; Clear DS
xor ax, ax
mov ds, ax
; Load a 32-bit GDT
lgdt [ds:pm_gdt]
; Enable protected mode
mov eax, cr0
or eax, (1 << 0)
mov... |
_MomWakeUpText::
text "MOM: Right."
line "All kids leave"
cont "home someday."
cont "It said so on TV."
para "PROF.OAK, next"
line "door, is looking"
cont "for you."
done
_MomHealText1::
text "MOM: <PLAYER>, if"
line "you drive your"
cont "#MON too hard,"
cont "they'll dislike"
cont "you."
para "You sh... |
MOV AX,100h
MOV DS,AX
MOV AX,300h
MOV ES,AX
MOV SI,1000h
MOV DI,1000h
MOV CX,100h
MCyaraliyurek:
MOV AX,DS:[SI]
INC AX
MOV ES:[DI],AX
INC SI
INC SI
ADD DI,2
LOOP MCyaraliyurek |
.data
.code
foo proc
xor eax, eax
mov eax, 045h
ret
foo endp
end
|
Name: ppidrv.asm
Type: file
Size: 1962
Last-Modified: '1992-02-13T07:48:31Z'
SHA-1: 20AC40F03F114F1C168536CA7ABFC003E665DC6A
Description: null
|
%include 'textmode.h'
call draw_border
mov di, 160 * 2 + 8 ;where to place cursor
mov si, line01 ;fetch the text
mov ah, 0x0A ;color
call slide_line
mov di, 160 * 4 + 16 ;where to place cursor
mov si, line02 ;fetch the text
mov ah, 0x0E
call slide_line
mov di, 160 * 6 + 16 ;where to place cursor
mov si... |
.include "constants.inc"
.segment "CODE"
.import main
.export reset_handler
.proc reset_handler
SEI ; Disable all interrupts
CLD ; Disable decimal mode
LDX #$40
STX $4017 ; Disable APU frame IRQ
LDX #$FF
TXS ; Setup stack
INX ; Now X=0
STX PPUCTRL ; Disable NMI
S... |
; SYNTAX TEST "Packages/User/x86_64 Assembly.tmbundle/Syntaxes/Nasm Assembly.sublime-syntax"
%pragma
%pragma bluttan
%pragma bluttan blej
%pragma "Hej tomtegubbar"
%define PR asm foobar
%pragma PR
%pragma preproc
%pragma preproc tjo fidelittan preproc
%pragma dbg tjo fidelittan output
%pragma dbgdbg tjo fidelittan deb... |
frame 0, 06
frame 1, 06
frame 2, 20
frame 1, 06
frame 0, 16
frame 1, 03
frame 2, 04
frame 1, 03
endanim
|
;###############################################
;
; Copyright 2018-2019 0x8BitDev ( MIT license )
;
;###############################################
;
; Joypad functions
;
; the button constants
JPAD_BTN_A = %10000000
JPAD_BTN_B = %01000000
JPAD_BTN_SELECT = %00100000
JPAD_BTN_START = %00010000
JPAD_BTN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.