content stringlengths 23 1.05M |
|---|
;------------------------------------------------------------------------------
; bios.asm
; CP/M 2.2 BIOS based on cbios
;
; Copyright (c) 2021 4sun5bu
;------------------------------------------------------------------------------
.z280p
IOPAGE .equ 0x08 ; I/O Page Register
CT1CNF .equ 0xe8 ; C/T1 Configuratio... |
;-------------------------------------------------------------------------------
; intterrupt.nasm - hardware and software interrupt handling.
;-------------------------------------------------------------------------------
module kernel.interrupt
%include "sys.ah"
%include "errors.ah"
%include "thread.ah"
%include "... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1985-1991
; * All Rights Reserved.
; */
;----------------------------------------------------------------------------;
; This file has utility programs which are invoked mostly from WO... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Graphics
FILE: Graphics/graphicsLine.asm
AUTHOR: Jim DeFrisco
ROUTINES:
Name Description
---- -----------
GBL GrDrawLine Draw a line
... |
; 10 SYS (49152)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28, $34, $39, $31, $35, $32, $29, $00, $00, $00
*=$c000
jsr $e544 ; clear the screen
ldx #$54 ; load 84 into the x register ('t')
txa ; transfer x register to the accumulator
... |
;
; Copyright (C) 2019 Assured Information Security, Inc.
;
; 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... |
.data
.include "../global_constants.asm"
.text
jal start_test
################################################################################################
# Code of verification.asm changed to work with unittest
verifyRight:
addi sp, sp, -12
sw ra, 0(sp)
sw t6, 4(sp)
sw t0, 8(sp)
li ... |
; Tell NASM where the kernel expects to be loaded into
[org 0x1000]
; using 32-bit protected mode
[bits 32]
jmp _main
_main:
; Clear the screen
call clear_screen
; Write loaded message at (0x0, 0x0)
mov eax, 0x0
mov edx, 0x0
call get_offset
mov ebx, MSG_KERNEL_LOADED
call kprint_at
; Write inital message a... |
; name: COMMENTS - different kind of placing for comments
; code: "90B8004C90"
; Test comment, firstline
nop
tommi: mov ax,0x4c00 ; Test comment, after line
; Test comment, individual line
nop
; Test comment last line
; Test comment after some NEWLINEs
|
@0
@1
S:
MOV RIGHT, ACC
JGZ DIS
MOV UP, DOWN
JMP S
DIS:
MOV NIL, DOWN
MOV UP, NIL
@2
MOV UP, ACC
MOV ACC, LEFT
MOV ACC, RIGHT
@3
S:
MOV LEFT, ACC
JLZ DIS
MOV UP, DOWN
JMP S
DIS:
MOV NIL, DOWN
MOV UP, NIL
@4
@5
MOV UP, RIGHT
@6
MOV LEFT, ACC
ADD RIGHT
MOV ACC, DOWN
@7
MOV UP, LEFT
@8
@9
MOV UP, DOWN
@10
|
%include "macros.inc"
global _getSurrenderIndex
segment .rodata align=16
align 16
zeroDot001 dq 0.001
align 16
zeroDot2 dq 0.2
zeroDot4 dq 0.4
align 16
zeroDot6 dq 0.6
align 16
zeroDot8 dq 0.8
align 16
one dq 1.0
align 16
oneDot1 dq 1.1
align 16
oneDot2 dq 1.2
align 16
twoDot59 dq 2.59
segme... |
# @created by Le Nhut Nam
# @ vn.hcmus.fit.sv18120061.computerarchitecture.mips
# Nhap mo so nguyen n, tinh tong tu 1 den n
.data
tb1: .asciiz "Nhap vao mot so: "
tb2: .asciiz "Tong tu 1 den "
tb3: .asciiz " la: "
.text
# Xuat tb1
li $v0, 4
la $a0, tb1
syscall
addi $v0, $zero, 5
syscall
# Luu v0 vao s0
add $... |
;This file demonstrates many of the differences between NASM version X and NASM
;version 0.97
;
; changed.asm is copyright (C) 1998 John S. Fine
;
; It may be redistributed under the same conditions as NASM as described in
; LICENSE file in the NASM archive
;_________________________________
;
; nasm changed.asm -l ... |
; adder
SECTION .data
var1: dq 1
var2: dq 2
var3: dq 0
SECTION .text
global _start
_start:
mov rax,rax
mov rax,[var1]
add rax,[var2]
mov rax, [var3]
mov ecx, [var3]
mov rdi, 1 ; File handle 1 is stdout
mov rsi, [var3] ; Addres of string to output
mov rdx, 12 ; Siz... |
.MODEL SMALL
.STACK 100H
.DATA
CR EQU 0DH
LF EQU 0AH
MSG1 DB 'ENTER A LOWER CASE LETTER: $'
MSG2 DB 0DH,0AH, 'IN UPPER CASE ITS IS: '
CHAR DB ?,'$'
.CODE
MAIN PROC
;INITALIZE DS
MOV AX, @DATA
MOV DS,AX
;print user prompt
LEA DX,MSG1
MOV AH,9
INT 21H
;input a char and cover t... |
COMMENT *
Zakolesnik Maksim IU7-43
Составить программу сортировки массива символов поиском максимального
элемента и его индекса, использовать косвенно регистровую адресацию.
*
StkSeg SEGMENT PARA STACK 'STACK' ; Начало сегмента стека
DB 64h DUP (?) ; Выделение 64 байт памяти
StkSeg ... |
; minimal monitor for EhBASIC and Briel Superboard /// or Ohio Scientic Superboard II/Challenger 1P
.include "basic.asm"
; OSI Defines
CURPOS = $0200 ; ROM BASIC cursor position
LOADFLAG = $0203 ; ROM BASIC LOAD flag
SAVEFLAG = $0205 ; ROM BASIC SAVE flag
KBD = $DF00 ; OSI polled ... |
;; -*- nasm -*-
%define SYS_WRITE 1
%define SYS_READ 0
%define SYS_EXIT 60
%define STDIN 0
%define STDOUT 1
%define STDERR 2
section .bss
strbuf: resb 1024
cmdbuf: resb 1024
cmdidx: resq 1
section .rodata
code_add:
pop rax
add [rsp], rax
.len: equ $ - code_add
code_sub:
pop rax
... |
00: NUM 19 -- jump address
01: LDN 31 -- Accumulator := -A
02: STO 31 -- Store as -A
03: LDN 31 -- Accumulator := -(-A) i.e., +A
04: SUB 30 -- Subtract B*2^n ; Accumulator = A - B*2^n
05: SKN -- Skip if (A-B*2^n) is Negative
06: JMP 0 -- otherwise go to line 20 ( A-B*2^n >= 0 )
07: LDN 31 -- Accum... |
; unsigned char esx_f_opendir_ex(unsigned char *dirname,uint8_t mode)
SECTION code_esxdos
PUBLIC _esx_f_opendir_ex_callee
PUBLIC l0_esx_f_opendir_ex_callee
EXTERN asm_esx_f_opendir_ex
_esx_f_opendir_ex_callee:
pop af
pop hl
dec sp
pop bc
push af
l0_esx_f_opendir_ex_callee:
push iy
call a... |
SECTION "Header", ROM0[$100]
; This is your ROM's entry point
; You have 4 bytes of code to do... something
di
jp $A000
; Make sure to allocate some space for the header, so no important
; code gets put there and later overwritten by RGBFIX.
; RGBFIX is designed to operate over a zero-filled header... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: printcomEpsonLQText.asm
AUTHOR: Dave Durran
ROUTINES:
REVISION HISTORY:
Name Date Description
---- ---- ---------... |
%macro coreloop 1
.count_%+1:
.no_run_before_%+1:
.broken_run_before_%-1:
%endmacro
label:
coreloop z
coreloop nz
|
;; learntris implementation in nasm-flavored assembly
%include 'freebsdx64.asm'
section .bss
iobuf: resb 64
section .text
global _start
_start:
sys.read STDIN, iobuf, 64
sys.write STDOUT, iobuf, 64
sys.exit
|
SECTION code_driver
PUBLIC ide_test_error
EXTERN __IO_IDE_ERROR, __IO_IDE_ALT_STATUS
EXTERN ide_read_byte
;------------------------------------------------------------------------------
; IDE internal subroutines
;
; These routines talk to the drive, using the low level I/O.
; Normally a program should not call t... |
global mainCRTStartup
extern GetStdHandle
extern CreateFileA
extern CloseHandle
extern ReadFile
extern WriteFile
extern GetCommandLineW
extern CommandLineToArgvW
extern ExitProcess
%define GENERIC_READ 0x80000000
%define GENERIC_WRITE ... |
.Data
a DB 0ah
b DB 21h
minimo DB ?
.Code
mov al, a
; salto condizionato se a<b
cmp al, b
jl then
; se la condizione e' falsa esgui questo
mov minimo,ah
jmp endif
then:
mov ah, b
mov minimo,al
endif:
hlt |
; subanimations
const_value = $D8
; special effects, prefaced with "SE" for "Special Effect"
const SE_WAVY_SCREEN ; $D8 used in Psywave/Night Shade/Psychic etc.
const SE_SUBSTITUTE_MON ; $D9 used in Substitute (turns the pokemon into a mini sprite)
const SE_SHAKE_BACK_AND_FORTH ; $DA ... |
/* **********************************************************
* Copyright (c) 2011-2015 Google, Inc. All rights reserved.
* Copyright (c) 2001-2010 VMware, Inc. All rights reserved.
* ********************************************************** */
/*
* Redistribution and use in source and binary forms, with or wit... |
SECTION "mgblib", ROMX
INCLUDE "mgblib/src/hardware.inc"
INCLUDE "mgblib/src/macros.asm"
enable_cgb_mode
INCLUDE "mgblib/src/old_skool_outline_thick.asm"
INCLUDE "mgblib/src/display.asm"
SECTION "stat_int", ROM0[$48]
jp hl
SECTION "boot", ROM0[$100]
nop
jp M... |
section .text code
; uint64_t fnv1a_64(const char *data, size_t size)
global fnv1a_64_asm
fnv1a_64_asm:
%push fnv1a_64
%define aData rcx
%define aSize rdx
%define lHash r8
mov lHash, 0CBF29CE484222325h
mov r9, 100000001B3h
xor rax, rax
add rdx, aData
; TODO: Maybe (especially since size is constan... |
aLine 0
gNewVPtr nextPtr
gMoveNext nextPtr, Root
gBne Root, null, 3
aLine 1
Exception EMPTY_LIST
aLine 3
gBne nextPtr, null, 9
aLine 4
nDelete Root
aLine 5
gMove Root, null
aLine 6
gDelete nextPtr
aStd
Halt
aLine 8
gNew delPtr
gMove delPtr, nextPtr
gMoveNext nextPtr, delPtr
aLine 9
gBeq nextPtr, null, 5
aLine 1... |
comment !
-=[ s4tanic0d3 ]=-
After more than 10 years I decided to create another crackme, the third one. Enjoy :)
You can find my previous crackme at:
- http://crackmes.cf/users/s4tan/crackme1_s4tan/ (2009)
- http://crackmes.cf/users/s4tan/s4tanic0de/ (2009)
2020 (C) Antonio 's4tan' Parata
!
.686
.model flat, std... |
// Test provided by Karu
// Generic Test (+)-(-)=(+)
lbi r1, 0x39
lbi r2, 0xf4
sub r3, r2, r1
halt
|
.globl main
.text
main:
addi $a0 $zero 100
sw $a0 0($sp)
addi $sp $sp -4
addi $a0 $zero 123
lw $t1 4($sp)
addi $sp $sp 4
sub $a0 $a0 $t1
sw $a0 0($sp)
addi $sp $sp -4
addi $a0 $zero 456
lw $t1 4($sp)
addi $sp $sp 4
add $a0 $a0 $t1
li $v0, 10
syscall
|
; data for default hidden/shown
; objects for each map ($00-$F8)
; Table of 2-Byte pointers, one pointer per map,
; goes up to Map_F7, ends with $FFFF.
; points to table listing all missable object in the area
MapHSPointers:
dw MapHS00
dw MapHS01
dw MapHS02
dw MapHS03
dw MapHSXX
dw MapHSXX
dw MapHSXX
dw MapHSX... |
; Performance for copying a 100000 bytes buffer for all the versions (lower is better) :
; 386 : 32210/10185 = 3.16
; SSE : 11108/10042 = 1.11
; std version : 10086/10036 = 1.00
; SSE2 : 10380/10607 = 0.98
; AVX : 7632/9294 = 0.82
; Calculated by using the clocks taken by the algorithm divided by the clocks taken... |
Music_JohtoWildBattle:
musicheader 3, 1, Music_JohtoWildBattle_Ch1
musicheader 1, 2, Music_JohtoWildBattle_Ch2
musicheader 1, 3, Music_JohtoWildBattle_Ch3
Music_JohtoWildBattle_Ch1:
tempo 104
volume $77
dutycycle $3
tone $0002
vibrato $12, $15
Music_JohtoWildBattleNight_branch_f5ddb:
notetype $c, $b2
octave ... |
global main
extern printf
section .text
main:
push ebp
mov ebp, esp
push message
call printf
add esp, 4 ; quita parametros de la pila
pop ebp
ret
message:
db 'Hello, World!',10,0c |
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
a:
INBOX
COPYTO 0
JUMPZ e
COPYFROM 9
COPYTO 2
INBOX
COPYTO 1
JUMPZ l
SUB 0
JUMPN c
COMMENT 3
b:
COPYFROM 1
ADD 2
COPYTO 2
BUMPDN 0
JUMPZ f
COPYFROM 1
ADD ... |
.data
matrixA: .space 256
matrixB: .space 256
matrixC: .space 256
str_enter: .asciiz "\n"
str_space: .asciiz " "
.macro print_int(%x)
li $v0, 1
add $a0, $zero, %x
syscall
.end_macro
.macro print_str(%x)
li $v0, 4
add $a0, $zero, %x
syscall
.end_macro
.macro scan_int()
li $v0, 5
syscall
.end_macro
.macro cal... |
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
Bri_MoveSonic:
moveq #0,d0
move.b $3F(a0),d0
move.b $29(a0,d0.w),d0
lsl.w #6,d0
addi.l #v_objspace&$FFFFFF,d0
movea.l d0,a2
lea (v_player).w,a1
move.w obY(a2),d0
subq.w #8,d0
moveq #0,d1
move.b obHeight(a1),d1
sub.w ... |
incsrc ./menu.asm
incsrc ./rupee.asm
incsrc ./gravity.asm
incsrc ./power.asm
incsrc ./guardfire.asm
incsrc ./light.asm
incsrc ./getitem.asm
|
; was there a DO event ?
include win1_keys_wstatus
include win1_keys_qdos_pt
section utility
xdef xwm_done ; you DID it
;+++
; was there a DO event ?
; (it gets cleared)
;
; Entry Exit
; a1 status area preserved... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.50727.42
TITLE c:\Documents and Settings\Michael\Desktop\bte_lighter\Demos\Demo_8_new\SysCore\Kernel\DebugDisplay.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?tbuf@@3PADA ; tbuf
PUBLIC ?vi... |
;
; Z88 Graphics Functions
;
; Written around the Interlogic Standard Library
;
; $Id: getmaxx.asm $
;
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC getmaxx
PUBLIC _getmaxx
PUBLIC _gsx_maxx
PUB... |
; Original address was $B51E
; World 5 "Sand castle" second part
.word W5T4L ; Alternate level layout
.word W5T4O ; Alternate object layout
.byte LEVEL1_SIZE_02 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_13 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byt... |
bits 64
global _syscall
_syscall:
mov r9, r8
mov r8, rcx
syscall
ret |
;; (c) Copyright Kevin Thacker 2015-2016
;; This code is part of the Arnold emulator distribution.
;; This code is free to distribute without modification
;; this copyright header must be retained.
org &4000
scr_set_mode equ &bc0e
txt_output equ &bb5a
scr_set_border equ &bc38
km_wait_char equ &bb06
start:
ld a,2
cal... |
; BLOCK 2 patched_screaming_wings.xex
org $02E2
.word L_B700
|
bits 32
section .text
global kbd_int
extern cpp_kbd_handler
kbd_int:
cli
pusha ; make sure you don't damage current state
call cpp_kbd_handler
mov al,20h
out 20h,al ; acknowledge the interrupt to the PIC
popa ; restore state
sti
iret ... |
SetDefaultNames:
ld a, [wLetterPrintingDelayFlags]
push af
ld a, [wOptions]
push af
ld a, [wd732]
push af
ld hl, wPlayerName
ld bc, wBoxDataEnd - wPlayerName
xor a
call FillMemory
ld hl, wSpriteStateData1
ld bc, $200
xor a
call FillMemory
pop af
ld [wd732], a
pop af
ld [wOptions], a
pop af
ld [wLett... |
; Generated by RasFntCv (build Tue May 1 23:18:59 2018)
Codepage: dw 437
Glyph00: ; Null
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
d... |
Map_228394: dc.w Frame_22839A-Map_228394 ; ...
dc.w Frame_2283A8-Map_228394
dc.w Frame_2283B0-Map_228394
Frame_22839A: dc.w 2
dc.b $FC, $C, 0,$36,$FF,$E4
dc.b $FC, 8, 0,$36, 0, 4
Frame_2283A8: dc.w 1
dc.b $FC, $C, 0,$36,$FF,$E4
Frame_2283B0: dc.w 1
dc.b $FC, 8, 0,$36, 0, 4
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: Condo viewer
MODULE: navigation controller
FILE: conNav.asm
AUTHOR: Jonathan Magasin, May 4, 1994
ROUTINES:
Name Description
---- -----------
INT CNC... |
mov r1, $(signed(-3))
mov r2, $(signed(-2))
s06 r1, r2
eq r1, 3
add r1, .0
out r1
mov r1, $(signed(-3))
mov r2, $(signed(2))
s06 r1, r2
eq r1, $(0xB)
add r1, .0
out r1
mov r1, $(signed(3))
mov r2, $(signed(-2))
s06 r1, r2
eq r1, $(0xA)
add r1, .0
out r1
mov r1, $(signed(3))
mov r2, $(signed(2))
s06 r1, r2
eq r1... |
@111 // push constant 111
D=A
@SP
A=M
M=D
@SP
M=M+1
@333 // push constant 333
D=A
@SP
A=M
M=D
@SP
M=M+1
@888 // push constant 888
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 8
M=M-1
A=M
D=M
@StaticTest.8
M=D
@SP // pop static 3
M=M-1
A=M
D=M
@StaticTest.3
M=D
@SP // pop static 1
M=M-1
A=M
D=M
@StaticTest.1
M=D
@StaticT... |
;******************************************************************************
; BIOS_jblks.asm
;
; BIOS Jumpblocks
; for dastaZ80's dzOS
; by David Asta (Apr 2019)
;
; Version 1.0.0
; Created on 25 Apr 2019
; Last Modification 25 Apr 2019
;******************************************************************************... |
#baseAddr 0000
j start; //0
add $zero, $zero, $zero; //4
add $zero, $zero, $zero; //8
add $zero, $zero, $zero; //C
add $zero, $zero, $zero; //10
add $zero, $zero, $zero; //14
add $zero, $zero, $zero; //18
add $zero, $zero, $zero; //1C
start:
lui $v1, f000; //r3=F0000000
lui $a0, e000; //r4=E0000000
lui $t0, 8000; //r8=... |
VbeGraphicModeStart db 0x01
; 그래픽 모드 시작 여부
; 1 : 그래픽 모드
; 0 : 텍스트 모드
VbeGraphicModeXResolution equ 1024
VbeGraphicModeYResolution equ 768
VbeGraphicModeColorBits equ 32
VbeInfoState equ 0x7000
VbeInfoLoadError equ 0x004F
VbeInfoBlock ... |
;Este codigo es el codigo de inicializacion de los Application Processors.
;Dado que inician en modo real, deben iniciar el procesador desde cero.
BITS 16
section .text
global mp_ap_start
jmp mp_ap_start
iniciando_mr_msg db 'Hola! Soy un core...'
iniciando_mr_len equ $ - iniciando_mr_msg
mp_ap_start:
;Imprimir ... |
;GoldOS 4.0 Sound Functions
;
;Roy Procell
;10/30/2017
;
;Functions:
;os_speaker_on
;os_speaker_off
;==================
;os_speaker_on
;Sets a tone on the PC speaker
;IN: AX: tone frequency
;OUT: Nothing
;==================
os_speaker_on:
push ax
mov al, 0xB6
out 43h, al
pop ax
out 42h, al
mov al, ah
out 42h, a... |
;; (c) Copyright Kevin Thacker 2015-2016
;; This code is part of the Arnold emulator distribution.
;; This code is free to distribute without modification
;; this copyright header must be retained.
org &4000
km_wait_char equ &bb06
txt_output equ &bb5a
scr_set_mode equ &bc0e
scr_set_border equ &bc38
start:
ld a,2
call... |
From smtp Tue Feb 7 13:15 EST 1995
Received: from lynx.dac.neu.edu by POBOX.jwu.edu; Tue, 7 Feb 95 13:15 EST
Received: by lynx.dac.neu.edu (8.6.9/8.6.9)
id NAA16239 for joshuaw@pobox.jwu.edu; Tue, 7 Feb 1995 13:17:17 -0500
Date: Tue, 7 Feb 1995 13:17:17 -0500
From: lynx.dac.neu.edu!ekilby (Eric Kilby)
Content-L... |
; Check if directory is empty V2.00 1989 Tony Tebby QJUMP
section iou
xdef iou_ckde
xref iou_fmlw
include 'dev8_keys_iod'
include 'dev8_keys_err'
include 'dev8_keys_chn'
include 'dev8_keys_hdr'
;+++
; Check if directory is empty
;
; d6 cr ... |
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
PUBLIC longjmp64
PUBLIC _setjmp3
PUBLIC modInternal
.data?
.code
_setjmp3 : ; proc jmp_buf : qword arg : qword
; R... |
INCLUDE "gbhw.inc"
;Header
SECTION "Vblank",ROM0[$0040]
nop
reti
SECTION "Input",ROM0[$0060]
call test
reti
SECTION "start",ROM0[$0100]
nop
jp boot
ROM_HEADER ROM_MBC1_RAM_BAT, ROM_SIZE_64KBYTE, RAM_SIZE_8KBYTE
boot:
di
;set audio to ON
ld a, %10000000
ld [rAUDENA], a
ld a, %01110111
ld [... |
; void *bit_play_tritone_di_fastcall(void *song)
SECTION code_sound_bit
PUBLIC _bit_play_tritone_di_fastcall
EXTERN asm_bit_play_tritone_di
defc _bit_play_tritone_di_fastcall = asm_bit_play_tritone_di
|
; vim: ft=nasm ai
[BITS 32]
global asm_segment_regs_flush
[SECTION .text]
asm_segment_regs_flush:
mov eax, 0x10
mov ds, eax
mov es, eax
mov fs, eax
mov gs, eax
mov ss, eax
pop eax
push dword 0x08
push eax
retf
|
<%
from pwnlib.shellcraft import mips
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="string, append_null=True"/>
<%docstring>
Thin wrapper around :func:`pwnlib.shellcraft.mips.pushstr`, which sets
`context.os` to `'linux'` before calling.
Example:
... |
;;; Segment 216E (216E:0000)
;; fn216E_0000: 216E:0000
;; Called from:
;; 0CE0:1015 (in fn0CE0_08FC)
;; 226D:05B7 (in fn226D_057F)
;; 2425:0271 (in fn2425_01E8)
;; 2476:0023 (in fn2476_000A)
;; 2476:0047 (in fn2476_000A)
;; 2476:006B (in fn2476_000A)
;; 2476:008F (in fn2476_000A)
;; 2... |
; *****************************************************************************
; * Provide SIMD optimizations for add_residual functions for HEVC decoding
; * Copyright (c) 2014 Pierre-Edouard LEPERE
; *
; * This file is part of FFmpeg.
; *
; * FFmpeg is free software; you can redistribute it and/or
; * modify it unde... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
; FIXME: possible optimizations.
; After calling spr_calc_dx/dy, won't always need to call a corresponding
; spr_move routine. Store dx/dy value in accumulator at end of initial
; routine to allow user to check it quickly for zero?!
; After a spr_move routine, up... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: nontsShutdown.asm
AUTHOR: Adam de Boor, May 11, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date... |
; The Comdex exibit guide program
; For the Fall 1991 Comdex Las Vegas Convention
;
;
; A short description of the program:
;
; It only affects .exe files.
; Comdex attaches itself to the end of the programs it affects.
;
; When an affected file is run, Comdex copies itself to top of
; ... |
segment .text
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 4
push dword 0
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
segment .rodata
align 4
_L1:
db "AA", 0
segment .text
push dword $_L1
call prints
add esp, 4
call println
lea eax, [ebp+-4]
push eax
po... |
%include "defaults_bin.asm"
mov al,0xf
mov bl,0xf
imul bl
jo foo
outputCharacter 'N'
foo:
outputCharacter '$'
complete
|
proc imp.msvcrt.dll!fwrite Label_004028A4
attrs [[jumponly]]
# call_from : 00401C20
Label_004028A4:
004028A4: FF 25 E8 61 40 00 : jmp dword [0x4061e8]
end proc
|
100: LD SP, #4000
108: LD R1, #0
116: ST a, R1
124: LD R2, #0
132: ST b, R2
140: LD R3, #0
148: ST c, R3
156: LD R4, #0
164: ST d, R4
172: LD R5, #0
180: ST e, R5
function main
1000: MUL R6, R2, R3
1008: MUL R7, R5, #2
1016: DIV R8, R7, #3
1024: MUL R9, R8, R1
1032: MOD R10, R9, #3
1040: ADD R11, R6, R10
1048: ST a, R... |
.org 0
.thumb
LoopParent:
push {lr}
mov r2,pc
add r2, #(LoopTable - Subtract) @need to double check here
Subtract:
bl MainLoop
pop {r0}
bx r0
MainLoop:
push {r4-r6,lr}
mov r4,r0
mov r5,r1
mov r6,r2
StartLoop:
ldr r2,[r6]
cmp r2,#0 @end of loop?
beq EndLoop
mov r0,#1
orr r2,r0 @in case you forgot the +1... get rid of ... |
[bits 64]
section .data
msg: db "Hello, World!", 10
t_sec: dq 4
t_usec: dq 0
global _start
_fork:
mov rax, 11
int 0x80
ret
section .text
_start:
call _fork
call _fork
call _fork
LOOP_START:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, 14
int 0x80
mov rdi, t_sec
mov rax, 46
int 0x80
jmp LOOP_START
|
EXTRN sEnter:BYTE
PUBLIC PR_print10
Code SEGMENT PUBLIC 'CODE'
ASSUME CS:Code
PR_print10 PROC NEAR
Begin:
PUSH BP
MOV BP,SP
PUSH BX
MOV AX,[BP+4]
MOV BX,10
PUSH AX
Loop1:
MOV DX,0
DIV BX
MOV CX, AX ;сохраним значение AX (целая часть)
MOV AH,2 ... |
;*!
;* \copy
;* Copyright (c) 2004-2013, Cisco Systems
;* 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 abo... |
dnl ARM mpn_addmul_1 -- Multiply a limb vector with a limb and add the result
dnl to a second limb vector.
dnl Copyright 1998, 2000, 2001, 2003 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... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_kk_McMillen
_ff_kk_McMillen:
BINARY "font/fzx/fonts/kk/McMillen.fzx"
|
; sccz80 crt0 library - 8080 version
SECTION code_crt0_sccz80
PUBLIC l_long_ne
EXTERN l_long_ucmp
l_long_ne:
call l_long_ucmp
ld hl,1
scf
ret nz
dec hl
and a
ret
|
MtMoon3Script:
call EnableAutoTextBoxDrawing
ld hl, MtMoon3TrainerHeader0
ld de, MtMoon3ScriptPointers
ld a, [wMtMoon3CurScript]
call ExecuteCurMapScriptInTable
ld [wMtMoon3CurScript], a
CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
ret z
ld hl, CoordsData_49d37
call ArePlayerCoordsInArray
jr nc, .asm_49d31
... |
title BootWare Boot PROM (C) Lanworks Technologies Inc.
subttl 3C5x9 EtherLink III
page 80,132
;************************************************************************
;* NAD5x9.ASM
;* - Contains modules supporting the NetPC UNDI API for 3Com 5x9 family
;*
;* Modules included:-
;* NADInit
;* NADReset
;*... |
.code
xInString proc lpStr:DWORD,lpSrc:DWORD
LOCAL buffer[256]:BYTE
push esi
push edi
mov esi,lpSrc
lea edi,buffer
InStr0:
mov al,[esi]
cmp al,'a'
jl @f
cmp al,'z'
jg @f
and al,5Fh
@@:
mov [edi],al
inc esi
inc edi
or al,al
jne InStr0
mov edi,lpStr
dec edi
I... |
.text
.globl _start
_start:
/* The index of the LED group to start on - this isn't random */
mov r0, #4
/* Set LED groups as outputs */
bl enable_led_group
/* Continue lighting up on group 2 */
mov r0, #2
b light_loop
enable_led_group:
/* Set GPIO pins 2,3,4 to outputs */
mov r1, #(1 << 6 | 1 << 9 | 1 <<... |
; void *memalign_unlocked(size_t alignment, size_t size)
PUBLIC memalign_unlocked_callee
EXTERN aligned_alloc_unlocked_callee
defc memalign_unlocked_callee = aligned_alloc_unlocked_callee
INCLUDE "alloc/malloc/z80/asm_memalign_unlocked.asm"
|
/*****************************************************************************
* pixel.asm: sparc pixel metrics
*****************************************************************************
* Copyright (C) 2005-2014 x264 project
*
* Authors: Phil Jensen <philj@csufresno.edu>
*
* This program is free software; yo... |
Name: kart-calc-e.asm
Type: file
Size: 24421
Last-Modified: '1992-11-18T00:54:39Z'
SHA-1: 7D33EC78B1770292DF44929C6E68D92FFF8F65AC
Description: null
|
MODULE move_win
PUBLIC move_win
PUBLIC _move_win
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; void __LIB__ move_win(uint8_t x, uint8_t y) __smallc NONBANKED;
move_win:
_move_win:
ld hl,sp+4
LD A,(HL)
LDH (WX),A
ld hl,sp+2
... |
_main:
;RbotController.c,30 :: void main(){
;RbotController.c,31 :: setup();
CALL _setup+0
;RbotController.c,32 :: while(1){
L_main0:
;RbotController.c,33 :: servo();
CALL _servo+0
;RbotController.c,34 :: motion();
CALL _motion+0
;RbotController.c,35 :: watcher();
CALL ... |
RockTunnelB1F_Object:
db $3 ; border block
def_warps
warp 33, 25, 4, ROCK_TUNNEL_1F
warp 27, 3, 5, ROCK_TUNNEL_1F
warp 23, 11, 6, ROCK_TUNNEL_1F
warp 3, 3, 7, ROCK_TUNNEL_1F
def_signs
def_objects
object SPRITE_COOLTRAINER_F, 11, 13, STAY, DOWN, 1, OPP_JR_TRAINER_F, 9
object SPRITE_HIKER, 6, 10, STAY, DO... |
.model small
.data
notification db 'Insert option number$'
multPrompt db '1.Multiply$'
divPrompt db '2.Divide$'
num1Prompt db 'Insert first number: $'
num2Prompt db 'Insert second number: $'
inputerror_message db 'ERROR: Invalid input$'
num1 db 00h ;Will store first input number ... |
start:
ldx #0
c:lda bottombar,x
cmp #$ff
beq init
sta $4e0,x
sta $5e0,x
inx
jmp c
init:
jsr initDraw
lda #0
sta $10 ; scrptr
sta $11 ; txtptr
loop:
jsr drawMain
jsr putfont
jsr scrollarea
jmp loop
scrollarea:
ldx #0
g:lda $521,x
sta $520,x
lda $541,x
sta $540,x
lda $561,x
sta... |
copyright zengfr site:http://github.com/zengfr/romhack
0039FE movem.l D0-D3, -(A6)
003A02 movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
057A50 move.b #$1, ($4a,A6) [weapon+86]
057A56 move.l ($a,A6), ($e,A6) [weapon+4A]
057B22 clr.b ($2f,A6) [weapon+4A]
057C12 move.l ($e,A6), ($a,A6)
057C42 move.b #$2,... |
start:
ldi r1, 8192
add r0, r1, 0
syscall SetGlobalMemory
cmp r0, r1
jeq success
ret
success:
xor r0, r0, r0
add r2, r2, 1
cycle:
add r4, r2, r3
store r4, r0
add r0, r0, 4
add r2, r4, 0
add r4, r2, r3
store r4, r0
add r0, r0, 4
add r3, r4, 0
cmp r0, r1
jls cycle
ret
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.