content stringlengths 23 1.05M |
|---|
Route3Mons:
db $14
db 8,SPEAROW
db 9,SPEAROW
db 9,MANKEY
db 10,RATTATA
db 8,SANDSHREW
db 10,RATTATA
db 10,SANDSHREW
db 12,MURKROW
db 11,JIGGLYPUFF
db 12,HOOTHOOT
db $00
|
;
; Extracted from cephes-math
;
; Cephes is a C language library for special functions of mathematical physics
; and related items of interest to scientists and engineers.
; https://fossies.org/
;
; Coefficients from lolremez, to make use of additional accuracy in
; calculation from 32-bit mantissa poly() function.
;
... |
; double __FASTCALL__ sin(double x)
SECTION code_fp_math48
PUBLIC cm48_sccz80_sin
EXTERN am48_sin
defc cm48_sccz80_sin = am48_sin
|
.text
.globl main
main:
li $a0 6
li $s0 0
jal fibonacci
move $a0 $v0
li $v0 1
syscall
exit:
li $v0 10
syscall |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SgemmKernelAvx512F.asm
;
; Abstract:
;
; This module implements the kernels for the single precision matrix/matrix
; multiply operation (SGEMM).
;
; This implementation uses AVX512F instruc... |
; void spinlock_acquire(char *spinlock)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC _spinlock_acquire
EXTERN asm_spinlock_acquire
_spinlock_acquire:
pop af
pop hl
push hl
push af
jp asm_spinlock_acquire
|
.DATA 0x0000 #;数据段定义开始
DELAY: .word 0x003F9409 #;延时计数的时钟周期,针对本CPU时钟周期是60ns,需要消耗8333333个时钟周期才到0.5秒
LED0: .word 0x00000000 # ;通过指令的执行实际的延时计数值只需要4166665个(003F9409H)即可,因为指令执行本
LED2: .word 0x00008001 # ;身就消耗时钟周期
LED4: .word 0x0000C003
LED6: .word 0x0000E007
LED8: .word 0x0000F00F... |
; Startup for VZ200/300
;
; Stefano Bodrato - Apr. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: vz_crt0.asm,v 1.17 2015/01/26 16:50:29 stefano Exp $
;
MODULE vz_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
INCLUDE "... |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
section .text code align=64
EXTERN OPENSSL_ia32cap_P
g... |
ori $28, $0, 0
ori $29, $0, 0
ori $3, $0, 0
sw $3, 8($3)
addu $22, $28, $3
ori $3, $0, 0
lw $22, 12($3)
ori $22, $0, 0
sw $22, 8($22)
j label1
addu $28, $28, $28
ori $28, $22, 20836
label1: ori $28, $28, 14936
subu $22, $22, $28
ori $28, $0, 0
lw $3, 0($28)
jal label2
ori $22, $0, 16
addu $3, $22, $22
label2: addu $22,... |
DiglettsCaveWildMons:
def_grass_wildmons 20 ; encounter rate
db 23, DIGLETT
db 24, DIGLETT
db 21, DIGLETT
db 25, DIGLETT
db 21, DIGLETT
db 20, DIGLETT
db 26, DIGLETT
db 27, DIGLETT
db 34, DUGTRIO
db 36, DUGTRIO
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
; SwitchUpperLower.asm - exchanges the upper and lower words in a doubleword variable named three
INCLUDE Irvine32.inc
.386
.model flat, stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
.data
three DWORD "w x",0
.code
main PROC
mov ecx, three
mov ax, WORD PTR three
mov bx,... |
; NEC PC8001 graphics library
; by Stefano Bodrato, 2018
SECTION code_clib
PUBLIC cleargraphics
PUBLIC _cleargraphics
EXTERN pc88bios
;
; $Id: clsgraph.asm $
;
; ******************************************************************
;
; Clear graphics area, i.e. reset all bits and sets graphics mode
;
; Design ... |
;Name: jsonobject.asm
;
;Build: nasm -felf64 downloadfile.asm -l downloadfile.lst -o downloadfile.o
; ld -s -melf_x86_64 -o downloadfile downloadfile.o
;
;Description: reply data in the form of a JSON object.
bits 64
[list -]
%include "unistd.inc"
[list +]
section .rodata
; this... |
; GDT
gdt_start:
; start with a null 8 byte
dd 0x0 ; 4 byte
dd 0x0 ; 4 byte
gdt_code:
dw 0xffff ; segment length, bits 0 - 15
dw 0x0 ; segment base, bits 0 - 15
db 0x0 ; segment base bits 16 - 23
db 10011010b ; flags(8 bits)
db 11001111b ; flags(4 bits) + s... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1981-1991
; * All Rights Reserved.
; */
page ,160
title non-contiguous io.sys loader (msload)
; =========================================================================
; NOTE: The ... |
;**************************************************************************
;* TASK2.ASM
;*
;* Assembly support for the task enumeration routines.
;*
;**************************************************************************
INCLUDE TOOLPRIV.INC
PMODE32 = 0
PMODE = 0
SWAPPRO = 0
I... |
.orig x3000
LEA R0, MSG
PUTS
AND R0, R0, #0
LOOP:
AND R2, R2, #0
ADD R2, R2, #-9
ADD R0, R0, #1
ADD R2, R2, R0
BRn LOOP
LD R1, ascii
ADD R0, R0, R1
OUT
HALT
MSG: .stringz "Hello, \n\tthis is a test message.\n"
ascii: .fill x30
.... |
<% from pwnlib.shellcraft import i386, pretty %>
<%page args="in_fd = 'ebp', size = 0x800, allocate_stack = True"/>
<%docstring> Reads to the stack from a directory.
Args:
in_fd (int/str): File descriptor to be read from.
size (int): Buffer size.
allocate_stack (bool): allocate 'size' bytes on the stack.
... |
SECTION code_fp_math16
PUBLIC ___h2sint
PUBLIC _i16_f16
EXTERN cm16_sdcc___h2sint
defc ___h2sint = cm16_sdcc___h2sint
defc _i16_f16 = cm16_sdcc___h2sint
|
;--------------------------------------------------------------
; This code comes from the 'HRG_Tool'
; by Matthias Swatosch
;--------------------------------------------------------------
;
; Fast CLS for hi-rez ZX81
;
; Stefano - 10/1/2007
;
;
; $Id: _clg_hr.asm,v 1.1 2007/10/02 11:20:24 stefan... |
.data
stack:.space 10000
space:.asciiz " "
nl:.asciiz "\n"
.text
la $s0,stack
li $v0,5
syscall
add $s1,$zero,$v0 # n
li $v0,5
syscall
add $s2,$zero,$v0 # m
li $t0,1 # i
li $t1,1 # j
loop:
li $v0,5
syscall
bnez $v0,save
updatej:
addi $t1,$t1,1
bgt $t1,$s2,updatei
j loop
updatei:
li $t1,1
addi $t0,... |
; 1 "dct64_mmx.S"
; 1 "<built-in>"
; 1 "<command line>"
; 1 "dct64_mmx.S"
; 9 "dct64_mmx.S"
; 1 "mangle.h" 1
; 13 "mangle.h"
; 1 "config.h" 1
; 14 "mangle.h" 2
; 1 "intsym.h" 1
; 15 "mangle.h" 2
; 10 "dct64_mmx.S" 2
%include "asm_nasm.inc"
_sym_mangle costab_mmxsse
_sym_mangle dct64_mmx
_sym_mangle dct64_MMX
EXTERN ... |
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC cleargraphics
PUBLIC _cleargraphics
;
; $Id: clsgraph.asm $
;
; ******************************************************************
;
; Clear graphics area, i.e. reset all bits in graphics
;
; Design & programming by Gunther Strube,... |
; How to compile
; $ nasm -f elf64 house-robber.asm && ld -m elf_x86_64 -dynamic-linker \
; /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o \
; /usr/lib/x86_64-linux-gnu/crti.o house-robber.o /usr/lib/x86_64-linux-gnu/crtn.o -lc -o house-robber
;
; Based on Golang solution
extern printf
... |
BITS 32
section .data
section .text
global _start
_start:
push ebp
mov ebp, esp
xor eax, eax
mov byte al, 0x08
sub esp, eax
xor eax, eax
mov byte [ebp-0x08], 0x63
mov byte [ebp-0x07], 0x6d
mov byte [ebp-0x06], 0x64
mov byte [ebp-0x05], 0x2e
mov byte [ebp-0x04], 0x65
mov byte [ebp-0x03], 0x78
mov byte [ebp-0x02], 0x... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: print drivers
FILE: graphicsHi8IntXY.asm
AUTHOR: Dave Durran 1 March 1990
ROUTINES:
Name Description
---- -----------
REV... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
; Melvin's awesome ext2 bootloader
; I'm not really good at assembly, there are MANY ways to improve this!
; MIT License, Copyright (c) 2020 Marvin Borner
; Definitions
; General configurations
; TODO: Find out why 2560x1600 doesn't work
%define VIDEO_WIDTH 1920
%define VIDEO_HEIGHT 1200
%define VIDEO_BPP 4
; Boot c... |
; Author: Alexander Sharikhin nihirash
; License: https://github.com/nihirash/internet-nextplorer/blob/89baa64d974e2d916862280a9ec2f52247923172/LICENSE
; By them a coffee :-)
MODULE Uart
UART_RxD EQU $143B ; Used to set the baudrate
UART_TxD EQU $133B ; Reads status
UART_Sel EQU $153B ; Select... |
;------------------------------------------------------------------------------
; @file
; A minimal Int10h stub that allows the Windows 2008 R2 SP1 UEFI guest's buggy,
; default VGA driver to switch to 1024x768x32.
;
; Copyright (C) 2020, Rebecca Cran <rebecca@bsdio.com>
; Copyright (C) 2015, Nahanni Systems, Inc... |
user/_wc: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
0: 7119 addi sp,sp,-128
2: fc86 sd ra,120(sp)
4: f8a2 sd s0,112(sp)
6: f4a6 sd s1,104(sp)
8: ... |
#ruledef test
{
ld {val} => 0x00 @ val`8
ld x => 0xff @ 0x00
}
ld x ; = 0xff00
x = 0x55 |
.data
frameBuffer:.space 0x80000 ; frame buffer address
bmp: .word 0x10000100
bmpwidth: .word 256
bmpheight: .word 2
color: .word 0xFFFFFF
pixeldot: .word 2
#lines: .float
.text
main:
la
la $s0, 100
la $s1, 80
la $s2, 150
la $s3, 120
la $t0, pixeldot
move $s1, $t1
move... |
dnl SPARC 64-bit mpn_mul_1 -- Multiply a limb vector with a limb and
dnl store the result to a second limb vector.
dnl Copyright (C) 1998, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under... |
global strcmp
; Compare a string with another. Strings pointed to by HL and DE
strcmp:
ld a, (de)
cpi
ret nz
and a ; at the null?
ret z
inc de
jr strcmp |
// Adds up two numbers
// RAM[2] = RAM[0] + RAM[1]
// Usage: put the values you which to add in RAM[0] and RAM[1]
@R0
D=M
@R1
D=D+M
@R2
M=D
(END)
@END
0; JMP |
.ifndef GRAPHICS_ASM
GRAPHICS_ASM=1
.include "vera.inc"
;=================================================
;=================================================
;
; General-purpose graphics routines
;
;-------------------------------------------------
;=================================================
; graphics_fade... |
; void bv_stack_clear(bv_stack_t *s)
SECTION code_clib
SECTION code_adt_bv_stack
PUBLIC _bv_stack_clear
EXTERN _b_vector_clear
defc _bv_stack_clear = _b_vector_clear
|
; hello_world.asm
; prints hello, world! using syscall
; Hudson Schumaker
; SchumakerTeam Lab
extern printf
section .data
msg db 'Hello, Windows World!',0
fmt db "Windows 10 says: %s",10,0
section .text
global main
main:
push rbp
mov rbp, rsp
mov rcx, fmt
mov rdx, msg
sub rsp... |
; A171608: Triangle by columns, T(n,k); (...n, (n+1)) preceded by (n-1) zeros, as an infinite lower triangular matrix
; Submitted by Christian Krause
; 1,2,0,0,2,0,0,3,0,0,0,0,3,0,0,0,0,4,0,0,0,0,0,0,4,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,6,0,0,0,0
lpb $0
add $1,$2
sub $0,$1
sub $0,1
cmp $2,0
mul ... |
;
; More TIKI-100 graphics routines
; by Frode van der Meeren
;
; void __FASTCALL__ gr_vscroll(int lines)
; void __FASTCALL__ gr_vscroll_abs(int lines)
;
; Scroll display any number of lines, or set it to
; an absolute line number.
;
; Changelog:
;
; v1.0 - FrodeM
; * Added relative and absolute vertica... |
.CODE
;
;RETURN AX(DECIMAL INPUT)
;
DECIMAL_INPUT PROC
;
;SAVING CONTENT OF REGISTERS
;
PUSH BX
PUSH CX
PUSH DX
PUSH SI
PUSH DI
PUSH BP
DECIMAL_INPUT_OUTTER_LOOP:
XOR BX, BX ;FIRST TIME MUL WILL RESULT IN ZERO TO ADD
XOR CX, CX ;USE TO CHECK WETHER NUMBER IS POSITIVE OR NEGATIVE
MOV AH,... |
;---------------------------
; test for fmul/fmuls/fmulsu
;---------------------------
ldi r16,0x1f
ldi r18,0x3f
ldi r20,0x8f
ldi r23,0xaf
ldi r17,0xb0
ldi r19,0x40
ldi r21,0x90
ldi r22,0x20
fmul r16,r22
movw r14,r0
fmul r18,r21
movw r12,r0
fmul r20,r19
... |
; Rectangle, Intervals and Points
; 05.2006 aralbrec
SECTION code_clib
PUBLIC RIsIvalInIval8
; Determine if two 8-bit intervals intersect. Intervals
; can wrap across 0-255 boundary. Amazingly this test
; reduces to detecting whether either of the start points
; of each interval lie in the other interval.
;
; ente... |
; Interface tables: 0/0 (NaN%)
; Virtual methods: 0 / 0
; generated code sizes (bytes): 5316 (incl. 4206 user, 730 helpers, 12 vtables, 368 lits); src size 0
; assembly: 3859 lines; density: 27.49 bytes/stmt; (153 stmts)
; total bytes: 220356 (90.8% of 237.0k flash with 22332 free)
; peep hole pass: 80 instructions rem... |
ori $1, $0, 14
ori $2, $0, 12
ori $3, $0, 7
ori $4, $0, 6
sw $2, 0($0)
sw $3, 4($0)
sw $2, 8($0)
sw $4, 12($0)
sw $2, 16($0)
sw $3, 20($0)
sw $4, 24($0)
sw $3, 28($0)
sw $4, 32($0)
sw $3, 36($0)
sw $2, 40($0)
sw $4, 44($0)
sw $4, 48($0)
sw $4, 52($0)
sw $1, 56($0)
sw $3, 60($0)
sw $4, 64($0)
sw $4,... |
nam test_program
org $0
* The entry point of the program
l_start
jmp l_test_aba_adc
* Test the ABA and ADC instructions
l_test_aba_adc
adcb #$f0
adcb #$10
adcb #$00
cmpb #$01
bne l_aba_adc_error
aba
cmpb #$01
bne l_aba_adc_error
bra l_aba_adc_end
l_aba_adc_error
jmp l_error
l_aba_adc_end
jmp l_test_a... |
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bitfx_1
EXTERN asm_bit_beep_raw
_bitfx_1:
; Laser repeat sound
ld b,1
fx5_1:
push bc
ld de,6
ld hl,1200
fx5_2:
push de
push hl
call asm_bit_beep_raw
pop hl
pop de
ld bc,100
or a
sbc hl,bc
jr nc, ... |
ori $ra,$ra,0xf
mfhi $2
mtlo $3
sb $3,13($0)
addiu $3,$5,-13656
addiu $3,$3,10192
mthi $4
ori $0,$1,24132
multu $6,$4
sb $3,15($0)
mflo $3
mult $4,$2
multu $1,$1
lui $4,58102
mfhi $5
addu $4,$4,$4
mflo $5
lui $2,33465
sb $0,0($0)
div $4,$ra
mult $2,$2
mtlo $1
mthi $1
addiu $4,$2,-15148
srav $6,$6,$2
mfhi $5
lb $5,10($0... |
page 62,132
FONT1 SEGMENT COMMON
FONT1 ENDS
;
FONT2 SEGMENT COMMON
FONT2 ENDS
;
FONT3 SEGMENT COMMON
FONT3 ENDS
;
FONTS SEGMENT COMMON
FONTS ENDS
;
DSPACE SEGMENT PUBLIC
DSBUF DB 64000 DUP(?) ;DISPLAY SPACE
DSPACE ENDS
;
DSCODE SEGMENT PUBLIC
ASSUME CS:DSCODE, ES:DSPACE
;
NDON DW 1
ND... |
LCPyramid label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK>
db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0
db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0
db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc
db 0x01, 0xd0, 0x03, 0xfe, 0xbb, 0x00, 0xbf, 0xfd,
0xbb, 0x02, 0xfb, 0xbf, 0xbb, 0xf5, 0x... |
Music_LookHiker:
musicheader 4, 1, Music_LookHiker_Ch1
musicheader 1, 2, Music_LookHiker_Ch2
musicheader 1, 3, Music_LookHiker_Ch3
musicheader 1, 4, Music_LookHiker_Ch4
Music_LookHiker_Ch1:
tempo 132
volume $77
tone $0001
vibrato $12, $24
dutycycle $2
stereopanning $f
notetype $c, $68
octave 3
note F#, 2
... |
/*
* TAY.asm
*
* Created: 5/13/2018 5:34:16 PM
* Author: ROTP
*/
TAY_implied: ;UNTESTED
swapPCwithTEMPPC
MOV YR, AR
updateNZfromREGISTER YR
ADIW ZH:ZL, 1
RET |
;******************************************************************
;* Main routine
;******************************************************************
org $2000
lds #STACK
jsr HW_INIT
jsr INIT
loc
loop_c`:
jsr MODO_CONFIG
tst NumVueltas
beq loop_c`
loop_m`:
brset PTH,$C0,race`
bclr PIEH,... |
DOSSEG
.MODEL small
.CODE
PUBLIC _cga_draw_vline
_cga_draw_vline PROC
ARG buff:DWORD, x:WORD, y0:WORD, y1:WORD, colour:BYTE
; draw a line from (x, y0) - (x, y1) including endpoints in the give colour (0-3)
push bp
mov bp, sp
push di
push si
push ds
les di, buff ; ... |
splash_c_PIXELS
;; Multipaint machine = 0 (c64)
;; bitmap
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,255,255,255
!byte 255,255,255,255,255,2... |
;.include "./m328Pdef.inc"
.device ATmega328P
start:
ldi r23, 0b00000001
ldi r24, 0b00000011
sts 0x24, r24 ; direction
loop:
sts 0x25, r23 ; LED on
eor r23, r24 ; Flip the bits
; delay 1sec
ldi r18, 41
ldi r19, 150
ldi r20, 128
L1:
dec r20
brne L1
dec r19
brne L1
dec r18
brne L1
rjmp loop... |
ori $t0, $0, 0xcaca
sb $t0, 0($0)
sb $t0, 1($0)
lhu $t1, 0($0)
#slt $t3, $t0, $t1
bne $t3, $0, ACA
ori $t2, $0, 0xfafa
sw $t2, 4($0)
ACA:
hlt
|
; *******************************************************************************************
; *******************************************************************************************
;
; Name : arraydef.asm
; Purpose : Array creation
; Date : 26th August 2019
; Author : Paul Robson (paul@robsons.org.uk)
;
... |
//////////////////////////////////////////////////////////////////////////////
// nv_rand_macs.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
/////////////////////////////////////////////////////////////////////////////
// contains inline macros for random numbers
// importing... |
size_word: equ 2
size_long: equ 4
size_ram_b: equ $FFFF0000
size_ram_w: equ size_ram_b / size_word
size_ram_l: equ size_ram_b / size_long
ram_end: equ ram_start + size_ram_b
|
.nds
.relativeinclude on
.erroronwarning on
; Makes the entire map visible but greyed out from the start.
.open "ftc/arm9.bin", 02000000h
.org 0x020220C4
; Make the game not care if you have the map items and just always draw unvisited tiles.
mov r1, r8
nop
.org 0x02024BE8
; Makes rooms never be counted as ... |
.MODEL SMALL
.STACK 100H
.DATA
MSG1 DB 'Please Enter 1st No: $'
MSG2 DB 'Please Enter 2nd No: $'
MSG3 DB 'Subtraction is: $'
MSG4 DB 'The result is Positive$'
MSG5 DB 'The result is Negative$'
MSG6 DB 'The result is Zero$'
A DB 00h
B DB 00h
res DB 00h
.CODE
MAIN PROC
MOV AX,@DATA ; adreesing data segment
MOV DS,... |
include ksamd64.inc
EXTERNDEF ?Te@rdtable@CryptoPP@@3PA_KA:FAR
EXTERNDEF ?g_cacheLineSize@CryptoPP@@3IA:FAR
EXTERNDEF ?SHA256_K@CryptoPP@@3QBIB:FAR
.CODE
ALIGN 8
Baseline_Add PROC
lea rdx, [rdx+8*rcx]
lea r8, [r8+8*rcx]
lea r9, [r9+8*rcx]
neg rcx ; rcx is negative index
jz $1@Baseline_Add
mov rax... |
;*
;* COW : Character Oriented Windows
;*
;* gwinterf.asm : Global memory allocator - Windows interface procs
.xlist
include kernel.inc
include galloc.inc
.list
IFDEF DEBUG
CheckHeap MACRO n
local ok
cmp fCheckCwHeap,0
je ok
cCall CheckGlobalHeap
or ax,ax
jz ok
push ax
push dx
cCall <far ptr PrintGlobal... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Flash.inc"
#include "Lcd.inc"
#include "States.inc"
#include "Ui.inc"
#include "WaitButtonPressState.inc"
radix decimal
defineUiState UI_STATE_ADJUSTSETTINGS
fcall isLcdIdle
xorlw 0
btfsc STATUS, Z
returnFromUiState
loadFlashAddressOf scree... |
.feature c_comments
.linecont +
.define NO_CHR_BANK 255
.segment "ZEROPAGE"
nmiChrTileBank: .res 1
.exportzp nmiChrTileBank
.segment "CODE"
.export _set_prg_bank, _get_prg_bank, _set_chr_bank_0, _set_chr_bank_1
.export _set_nmi_chr_tile_bank, _unset_nmi_chr_tile_bank
.export _set_mirroring
_set_prg_bank:
... |
lui $1,18686
ori $1,$1,11560
lui $2,40406
ori $2,$2,9896
lui $3,52470
ori $3,$3,4627
lui $4,60572
ori $4,$4,28496
lui $5,10816
ori $5,$5,56283
lui $6,61316
ori $6,$6,56128
mthi $1
mtlo $2
sec0:
nop
nop
nop
xor $4,$6,$6
sec1:
nop
nop
addu $6,$3,$2
xor $3,$6,$6
sec2:
nop
nop
lui $6,56581
xor $3,$6,$6
sec3:
n... |
; unsigned char esx_f_rewinddir(unsigned char handle)
SECTION code_esxdos
PUBLIC esx_f_rewinddir
EXTERN asm_esx_f_rewinddir
defc esx_f_rewinddir = asm_esx_f_rewinddir
|
.MODEL SMALL
.STACK 100H
PRINT MACRO MSG
LEA DX,MSG
MOV AH,9
INT 21H
ENDM
READ MACRO
MOV AH,1
INT 21H
ENDM
.DATA
MSG1 DB 13,10,"Enter Digit:$"
MSG2 DB 13,10,"Number is Odd$"
MSG3 DB 13,10,"Number is Even$"
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
PRINT MSG1
REA... |
59_Header:
sHeaderInit ; Z80 offset is $C68E
sHeaderPatch 59_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $02, 59_FM3, $10, $08
59_FM3:
sPatFM $00
ssModZ80 $01, $01, $31, $20
dc.b nA1, $12, nBb1, $11, nB1, $10, nC2, $0F
dc.b nCs2, $0E, nD2, $0D, nEb2, $0C, nE2, $0B
dc.b nF2, $0A, nFs2, $08, $0... |
preset_prkd_bombs_elevator:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $AB58 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $DF45 ; MDB
dl $7E079F : db $02 : dw $0006 ; Region
dl $7E07C3 : db $02 : dw $E22A ; GFX... |
; ---------------------------------------------------------------------------
; Object 16 - harpoon (LZ)
; ---------------------------------------------------------------------------
Harpoon:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Harp_Index(pc,d0.w),d1
jmp Harp_Index(pc,d1.w)
; ===========================... |
; -------------------------------------------------------------
;
$INCLUDE "Common\8052.mc"
; -------------------------------------------------------------
; Program start
; -------------------------------------------------------------
ORG 00h
;-------Define Inputs and outputs------
MOV P2,#00h
MOV P3,#0FFh
MOV ... |
; Generated by PSoC Designer 5.4.3191
;
; =============================================================================
; FILENAME: PSoCConfigTBL.asm
;
; Copyright (c) Cypress Semiconductor 2013. All Rights Reserved.
;
; NOTES:
; Do not modify this file. It is generated by PSoC Designer each time the
; ge... |
.global loadGDT
.section .text
loadGDT:
# load the gdt stuff
jmp $0x08, $reloadCS
reloadCS:
movw $0x10, %ax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
mov %ax, %ss
ret |
#Troy Frazier
#CS 3340.003
# Graph Movement
# From a simple undireced/direced graph which is represented as an adjacency matrix...
# Find the possible moves that each node can make in an x amount of turns.
# Graph input is taken from Graph.txt.
# Boolean matrix multiplication is used to find the possible moves
#Curre... |
hw1.q3.avr: file format elf32-avr
Disassembly of section .data:
00800100 <__data_start>:
800100: 68 65 ori r22, 0x58 ; 88
// ll
800102: 6c 6c ori r22, 0xCC ; 204
800104: 6f 20 and r6, r15
800106: 77 6f ori r23, 0xF7 ; 247
800108: 72 6c ori r23, 0xC2 ; 194
80010a:... |
;
; ZX81 libraries - Stefano
;
;----------------------------------------------------------------
;
; $Id: zx_cls.asm,v 1.8 2015/08/07 06:23:58 stefano Exp $
;
;----------------------------------------------------------------
;
; ROM mode CLS.. useful to expand collapsed display file
;
;---------------------------------... |
#include "Platform.inc"
#include "States.inc"
radix decimal
defineMotorState MOTOR_STATE_IDLE
returnFromMotorState
end
|
; Input
_gr_input_buffer rb 256 ; Max input = 255
_gr_input_char_count db 0 ; Current character count
; Output
_gr_output_buffer rb 65535 ; Max output = 65535
_gr_output_char_count dw 0 ; Current character cou... |
dnl mpn_popcount
dnl Copyright 2010 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the... |
nor $1,$4,$3
sltiu $4,$4,-32187
addu $3,$3,$3
xor $3,$0,$3
subu $4,$1,$3
sb $1,10($0)
sltu $5,$4,$3
slt $3,$5,$3
sb $5,4($0)
sw $4,16($0)
slti $1,$5,6892
nor $4,$1,$3
lb $1,3($0)
or $3,$5,$3
lh $3,8($0)
addu $3,$1,$3
sra $3,$3,0
addu $3,$3,$3
subu $0,$1,$3
ori $3,$4,15821
sh $4,10($0)
srav $5,$4,$3
subu $3,$3,$3
or $4,... |
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $00000000
dc.l $000... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x414141414141FFFF",
"RBX": "0x00000000FFFFFFFF",
"RDX": "0xFFFFFFFFFFFFFFFF",
"RSI": "0x42424242424242FF"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4141414141418000
mov rbx, 0x80000000
mov rdx, 0x8000000000000000
mov rsi, 0x4242424242424280
mov cl, 7
sar sil,... |
;;
;
; Name: stager_sock_reverse
; Qualities: Can Have Nulls
; Platforms: MacOS X / PPC
; Authors: H D Moore <hdm [at] metasploit.com>
; Version: $Revision: 1612 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrigh... |
/
/ Basic I/O Routine Vectors - Page 0
/
*0050
GetChar, XGetChar
Type, XType
/
/ Code Segment - Page 1
/
*0200
Main, cla cll / clear AC and link
kcc / reset keyboard
tls / rest printer
...
jms i GetChar / read a character
dca Hold / store it
... |
;--------------------------------------------------------------------------------
; OnLoadOW
;--------------------------------------------------------------------------------
;OnLoadMap:
; LDA OverworldEventDataWRAM+$5B ; thing we wrote over
;RTL
;------------------------------------------------------------------------... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: nimbusBitmaps.asm
AUTHOR: Gene Anderson, May 27, 1990
ROUTINES:
Name Description
---- -----------
AllocBMap Allocate a bitmap
B... |
global _start
section .data
msgEven db 'Event number!', 0xA
msgEvenLen equ $ - msgEven
msgOdd db 'Odd number!', 0xA
msgOddLen equ $ - msgOdd
section .text
_start:
mov ax, 0x8 ; move 0x8 to ax
and ax, 0x1 ; and ax with 0x1
jz even ; If Zero Flag is set jump to even
; Print odd msg
mov eax, 4
mov ebx, 1
m... |
; Utility open a file using parameter 1994 Tony Tebby
section utils
xdef ut_fopen open key in d3, retry key in d7
xdef ut_fopin open for input (data default)
xdef ut_fopnp open with prompt if exists
xref ut_gtnm1 get a name
xref ut_opdefx open with default if required
xref ut_fhead read file header
inclu... |
SwapTextboxPalettes::
hlcoord 0, 0
decoord 0, 0, wAttrMap
ld b, SCREEN_HEIGHT
.loop
push bc
ld c, SCREEN_WIDTH
.innerloop
ld a, [hl]
push hl
srl a
jr c, .UpperNybble
ld hl, wTilesetPalettes
add [hl]
ld l, a
ld a, [wTilesetPalettes + 1]
adc 0
ld h, a
ld a, [hl]
and $f
jr .next
.UpperNybble:
ld hl, wT... |
[bits 16]
[org 0x7c00]
start: jmp begin
nop
%assign _bytes_per_sector 512
%assign _sectors_per_cluster 1
%assign _reserved_sectors 1
%assign _number_of_FATs 2
%assign _root_entries 224
%assign _total_sectors 2880
%assign _media 0xf8
%assign _sectors_per_FAT 9
%assign _sectors_per_track 18
%assign _heads_... |
org 0h
start:
ld hl, src
ld de, trg
loop:
ld a, (hl)
ld (de), a
cp 0
jr z, end
inc hl
inc de
jr loop
end:
nop
defs 4
src:
defb "Hello World!", 0
defs 3
trg:
defs 10h
defb 0 |
TITLE ReadWriteExample (G6P4.asm) ; OF DOOM(ED GRADES)
; CSC 323 - Group 6 - Assignment 4: Network Simulator
; Author: Robert Krency, kre1188@calu.edu
; Author: Anthony Stepich, ste4864@calu.edu
; Author: Camden Kovach, kov2428@calu.edu
; This program is an example of reading and writing a file
INCLUDE Irvine32.... |
ori $ra,$ra,0xf
mfhi $3
addu $0,$4,$1
mult $6,$0
sll $5,$6,5
ori $2,$2,6805
addiu $4,$5,-20729
mthi $6
sll $6,$6,3
multu $0,$1
lui $1,48016
div $1,$ra
srav $5,$1,$1
sb $1,12($0)
lb $1,14($0)
sb $5,6($0)
addu $5,$4,$5
addiu $1,$4,6057
srav $4,$4,$1
div $5,$ra
addu $4,$4,$4
mfhi $5
multu $1,$1
lb $6,9($0)
mtlo $5
lb $5,0... |
.data
vetor: .word 0:3
temp: .word 2
.text
la $s0,vetor
la $s1,temp
lw $t5,0($s1)
sw $t5,0($s0)
lw $t0,0($s0)
mul $t0,$t0,$t5
sw $t0,4($s0)
lw $t0,0($s0)
lw $t1,4($s0)
mul $t1,$t1,$t5
add $t0,$t0,$t1
sw $t0,8($s0)
|
MODULE receive_byte
PUBLIC receive_byte
PUBLIC _receive_byte
EXTERN __io_status
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
;; Send byte in __io_out to the serial port
receive_byte:
_receive_byte:
LD A,IO_RECEIVING
LD (... |
BITS 32
global _main
extern _printf
section .text
_main:
push msg
call _printf
add esp,4
ret
section .data
msg: db 'Hello world',10,0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.