content stringlengths 23 1.05M |
|---|
; TEXT: Helmet names ($064354)
;
HelmetNames:
print "TEXT: Helmet names ($064354) -- is at $",pc
db "*Steel Helm*"
db "**Moon Helm*"
db "*Apollo Helm"
|
db KINGLER ; pokedex id
db 55 ; base hp
db 130 ; base attack
db 115 ; base defense
db 75 ; base speed
db 50 ; base special
db WATER ; species type 1
db WATER ; species type 2
db 60 ; catch rate
db 206 ; base exp yield
INCBIN "pic/gsmon/kingler.pic",0,1 ; 77, sprite dimensions
dw KinglerPicFront
dw KinglerPicBack
; atta... |
page 49,132
TITLE ssaid - Scan support for array id opcodes
;***
;ssaid.asm - Scan support for array id opcodes
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; This module contains the scanner dispatch routines for array id opcodes.
; These routines perform all tasks related to moving array id opc... |
; # cdecl
%include "lib/common_nasm.inc"
ENTRY
; Recursive factorial.
push dword 5
call factorial_rec_cdecl
; We must clean up the argument stack ourselves.
; This allows for varargs like `printf`.
add esp, 4
ASSERT_EQ eax, 120
push dword 1
call f... |
ori $1, $0, 1
ori $2, $0, 9
ori $3, $0, 9
ori $4, $0, 4
sw $3, 0($0)
sw $2, 4($0)
sw $3, 8($0)
sw $1, 12($0)
sw $1, 16($0)
sw $3, 20($0)
sw $2, 24($0)
sw $4, 28($0)
sw $1, 32($0)
sw $2, 36($0)
sw $3, 40($0)
sw $2, 44($0)
sw $4, 48($0)
sw $4, 52($0)
sw $1, 56($0)
sw $1, 60($0)
sw $3, 64($0)
sw $1, 68($0)
sw $1, 72($0)
s... |
GLOBAL write
GLOBAL read
GLOBAL DateTime
GLOBAL getMem
GLOBAL getReg
GLOBAL Clear
GLOBAL opCodeExc
write:
push rbp
mov rbp, rsp
push rdi
push rsi
push rdx
push rcx
mov rcx, rdx
mov rdx, rsi
mov rsi, rdi
mov rdi, 1
int 80h
pop rcx
pop rdx
pop rsi
pop rdi
... |
; ************ DESCRIZIONE SOTTOPROGRAMMA ************
Il seguente sottoprogramma denominato CONTA_MIN_UGU_MAG riceve:
- nel registro R0 l’indirizzo della prima cella di una zona di memoria contenente una sequenza di numeri
codificati in complemento a 2 su 16 bit. La sequenza, non ordinata, è terminata dal valore 0
... |
;===========================================================================
; main.asm
;===========================================================================
DEVICE ZXSPECTRUM48
; Interface II joystick ports.
PORT_IF2_JOY_0: equ 0xEFFE ; Keys: 6, 7, 8, 9, 0
;PORT_IF2_JOY_1: equ 0xF7FE ; Keys: 5, 4, 3, 2, 1... |
Route22Mons:
db $19
IF DEF(_BLUE)
db 2,NIDORAN_F
db 3,SPEAROW
db 3,RATTATA
db 4,NIDORAN_F
db 3,MANKEY
db 4,RATTATA
db 5,MANKEY
db 5,SPEAROW
db 3,NIDORAN_M
db 4,NIDORAN_M
ELSE
db 2,NIDORAN_M
db 3,SPEAROW
db 3,RATTATA
db 4,NIDORAN_M
db 3,MANKEY
db 4,RATTATA
db 5,MANKEY
db 5,SPEAROW
db 3,NIDORAN_F
db ... |
;
; OSCA C Library
;
; ANSI Video handling
;
; Scrollup
;
; Stefano Bodrato - June 2012
;
; $Id: f_ansi_scrollup.asm,v 1.1 2012/05/31 14:52:59 stefano Exp $
;
XLIB ansi_SCROLLUP
INCLUDE "flos.def"
.ansi_SCROLLUP
jp kjt_scroll_up
|
user/_stressfs: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/fs.h"
#include "kernel/fcntl.h"
int
main(int argc, char *argv[])
{
0: dd010113 addi sp,sp,-560
4: 22113423 sd ra,552(sp)
8: 22813023 sd s0,544(sp)
c: 2... |
.byte $01 ; Unknown purpose
.byte OBJ_GREENTROOPA, $1B, $16
.byte OBJ_GREENTROOPA, $1F, $0A
.byte OBJ_GREENTROOPA, $1F, $10
.byte OBJ_GREENTROOPA, $21, $10
.byte OBJ_GREENTROOPA, $28, $0C
.byte OBJ_GREENTROOPA, $2A, $0C
.byte OBJ_GREENTROOPA, $5C, $0B
.byte OBJ_GREENTROOPA, $5E, $0B
.byte OBJ_GREENTROOPA, $5... |
0x0000 (0x000000) 0x100C- f:00010 d: 12 | A = 12 (0x000C)
0x0001 (0x000002) 0x291E- f:00024 d: 286 | OR[286] = A
0x0002 (0x000004) 0x2118- f:00020 d: 280 | A = OR[280]
0x0003 (0x000006) 0x291F- f:00024 d: 287 | OR[287] = A
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tlLargeLineInfo.asm
AUTHOR: John Wedgwood, Dec 26, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Dat... |
#Emanuel Brici
#10/20/14
#Hailstone
.data
num: .word 7 #number that hailstone will run
count: .word 0 #numer of times hailstone ran
space: .asciiz " " # space to insert between numbers
head: .asciiz "The HailStone numbers are:\n"
newLine: .asciiz "\n"
secondHead: .asciiz "Number of iterations:"... |
SECTION code_fp_math32
PUBLIC sinh
EXTERN _m32_sinhf
defc sinh = _m32_sinhf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _sinh
EXTERN cm32_sdcc_sinh
defc _sinh = cm32_sdcc_sinh
ENDIF
|
; Commented assembler output for a formula "1+2".
; Can be compiled with
; nasm -f elf commented-example.asm
; ld -m elf_i386 commented-example.o commented-example
global _start
_start:
call real_start ; "Jump" over the convert proc. to get its address.
convert:
push edx
div_mul:
xor edx, edx
mov esi,... |
ldy #0
lda ({z2}),y
sta {m1}
iny
lda #0
sta {m1}+1
|
; A048893: Threshold function for orthogonal arrays of strength 2.
; 0,1,2,3,4,5,6,7,8,9,10,6,12,13,14,15,16,15,18,11,20,21,22
lpb $0
mov $2,$0
seq $2,48894 ; n - 1 - A048893(n).
add $3,$2
sub $0,$3
add $3,$0
lpe
|
; SHIFTKEY.Z80
;
; Tile Source File.
;
; Info:
; Section : Tiles
; Bank : 0
; Form : All tiles as one unit.
; Format : Gameboy 4 color.
; Compression : None.
; Counter : None.
; Tile size : 8 x 8
; Tiles ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Impex/UI
FILE: uiFormatListLow.asm
ROUTINES:
Name Description
---- -----------
FormatEnum Find all formats that we could translate
LocateL... |
.nds
.open "data/repack/arm9.bin",0x02000000
.org 0x0208821c
.area 0xc0
FONT_DATA:
.import "data/font_data.bin",0,0x5f
.align
GET_CHAR_WIDTH:
;Check if the character is ASCII
cmp r14,0x0
addlt r2,r2,6
blt GET_CHAR_WIDTH_RETURN
cmp r14,0x7f
addgt r2,r2,6
bgt GET_CHAR_WID... |
section .rodata
;; read only non executable data
section .data
;;writable non executable data
section .text
;; read only executable data
global rechner_const_asm
global rechner_add_asm
global rechner_sub_asm
global rechner_mul_asm
global rechner_sel_asm
rechne... |
;
; VGM RF5C68 chip
;
RF5C68: MACRO
super: Chip RF5C68_name, Header.rf5c68Clock, System_Return
ENDM
; ix = this
; iy = header
RF5C68_Construct: equ Chip_Construct
; jp Chip_Construct
; ix = this
RF5C68_Destruct: equ Chip_Destruct
; jp Chip_Destruct
;
SECTION RAM
RF5C68_instance: RF5C68
ENDS
RF5C68_name:
db "... |
SECTION code_himem
PUBLIC pointxy
.pointxy
defc NEEDpoint = 1
INCLUDE "target/lviv/graphics/pixel.inc"
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: (Generic) Font Installation
FILE: fontInstall.asm
AUTHOR: John D. Mitchell
REVISION HISTORY:
Name Date Description
---- ---- -----------
JDM 91.04.... |
;
; VGA ROM font, modified to ZX code page
;
; Extracted from: https://www.min.at/prinz/o/software/pixelfont/
;
SECTION rodata_font
SECTION rodata_font_8x10
PUBLIC _zx7_font_8x10_vga_rom
PUBLIC _zx7_font_8x10_vga_rom_end
_zx7_font_8x10_vga_rom:
BINARY "font_8x10_vga_rom.bin.zx7"
_zx7_font_8x10_vga_rom_end:
|
;
; HUC_BRAM.ASM - HuC Backup RAM Library
;
.bss
_bm_mpr4: .ds 1
_bm_error: .ds 1
.code
; NOTE: the BRAM format is as follows:
;
; BRAM bank header (0x10 bytes):
; ------------------------------
; - Header tag (4 bytes) = 'HUBM'
;
; - Pointer to 1st byte after BRAM (2 byte int)
; Note: relativ... |
;Testname=test; Arguments=-fbin -ofar64.bin; Files=stdout stderr far64.bin
; BR 2039212
bits 64
call qword far [rax]
jmp qword far [rax]
call dword far [rax]
jmp dword far [rax]
call far [rax]
jmp far [rax]
|
;
; Copyright (C) 2007-2012 Intel Corporation.
; SPDX-License-Identifier: MIT
;
PUBLIC ReadWriteFlags_asm
.686
.model flat, c
.code
ReadWriteFlags_asm PROC
pushfd
pop eax
mov eax, 0
add eax, eax
ret
ReadWriteFlags_asm ENDP
end |
[bits 16] ; tell assembler that we're in 16 bit mode
[org 0x7c00] ; organize from 0x7c00 memory location where BIOS will load
.start: ; start label from where our code starts
xor ax, ax ;set ax register to 0
mov ds, ax ;set data segment(ds) to 0
mov es, ax ;set extra segment(es) to 0
mo... |
;,; SC80_000
;,; <- ibpcaablocks
;,; <- player_ivars
;;,; <- player_songdata
!src "demosrc/smac.inc"
+s8bpc
+sAddr $900e
!byte $01,$18,$10
+sAddr chptr
!byte $04
!byte bass_misery-songdata
!byte drum_misery-songdata
!byte shap_start-songdata
!byte melo_start-songdata;muteseq-songdata
!byte muteseq-songdata;muteseq-son... |
.thumb
@.org 0x5C24
@This routine is passed Portrait Number
ldr r1, ShiftPortraitTable
@add ShiftPortraitTable to Portrait Number
@load the byte at that location
ldrb r0, [r1, r0]
bx r14
.align
ShiftPortraitTable:
|
; Simply find the 10001st prime.
global _start
extern printf
extern asm_prime
section .text
_start:
; rax is our counter `i`
; rbx holds the value of how many primes we are yet to find
mov eax, 3
mov ebx, 10000
_next_trial:
mov edi, e... |
.pc = $0801 "Basic Upstart"
:BasicUpstart(start)
.pc = $0810 "Program"
.import source "sub_mul.asm"
start: lda #3
sta sub_mul_int16_val1
lda #100
sta sub_mul_int16_val2
jsr sub_mul_int16
end: rts |
PikaPicAnimBGFramesPointers:
pikaanim_def: macro
\1_id: dw \1
endm
pikaanim_def PikaPicAnimBGFrames_0 ; 00
pikaanim_def PikaPicAnimBGFrames_1 ; 01
pikaanim_def PikaPicAnimBGFrames_2 ; 02
pikaanim_def PikaPicAnimBGFrames_3 ; 03
pikaanim_def PikaPicAnimBGFrames_4 ; 04
pikaanim_def PikaPicAnimBGFrames_5 ; 05
pika... |
// TODO Controller detection
scope SI {
Init:
jr ra
ls_gp(sw r0, si_completion_vector)
Interrupt:
ls_gp(lw k0, si_completion_vector)
beqz k0,+
ls_gp(sw r0, si_completion_vector)
// Schedule to run in the interrupt task
ls_gp(sw k0, si_callback)
lli k0, 1
sw k0, int_cb_needed (r0)
+
jr k1
nop
St... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_PF
;TEST_FILE_META_END
; AAS
mov al, 0x45
sub al, 0x23
;TEST_BEGIN_RECORDING
aas
;TEST_END_RECORDING
|
// from https://wiki.nesdev.com/w/index.php/PPU_palettes
macro pack_rgb(r, g, b, a) {
dh ((({r}*32+16)/256)<<11)|((({g}*32+16)/256)<<6)|((({b}*32+16)/256)<<1)|{a}
}
rgb_palette_lut:
pack_rgb( 84, 84, 84, 1) // 00
pack_rgb( 0, 30, 116, 1) // 01
pack_rgb( 8, 16, 144, 1) // 02
pack_rgb( 48, 0, 136, 1) // 03
... |
get_int10h_cursor_coordinates:
push ax
push bx
push cx
mov ah, 03h ; get cursor position
mov bh, 00h ; page 0
int 10h
pop cx
pop bx
pop ax
ret ; DH = row, DL = column
store_cursor_coordinates:
push dx
call get_int10h_cursor_coordinates
mov [cursor_row], dh
mov [cursor_column], dl
pop dx
ret
get_cursor... |
global sthrow
global throw
global gcmalloc
global __cxa_pure_virtual
extern kmain
MODULEALIGN equ 1<<0
MEMINFO equ 1<<1
FLAGS equ MODULEALIGN | MEMINFO
MAGIC equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)
section .text
align 4
dd MAGIC
dd FLAGS
... |
frame 1, 12
setrepeat 5
frame 2, 03
frame 3, 03
dorepeat 2
frame 4, 12
endanim
|
section .text
[bits 64]
%macro pushaq 0
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push rbp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
%endmacro
%macro popaq 0
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rdx... |
.include "m128def.inc"
.cseg
.org 0x00
ldi r16,$2E
ldi r17,$43
ldi r18,$62
ldi r19,$30
mul r16,r19
mov r3,r0
mov r2,r1
mul r16,r18
add r2,r0
mov r8,r1
mul r17,r19
adc r2,r0
adc r8,r1
mul r17,r18
adc r8,r0
clc
mov r9,r1
end: rjmp end |
SSAnne2FRooms_Object:
db $c ; border block
def_warps
warp 2, 5, 0, SS_ANNE_2F
warp 3, 5, 0, SS_ANNE_2F
warp 12, 5, 1, SS_ANNE_2F
warp 13, 5, 1, SS_ANNE_2F
warp 22, 5, 2, SS_ANNE_2F
warp 23, 5, 2, SS_ANNE_2F
warp 2, 15, 3, SS_ANNE_2F
warp 3, 15, 3, SS_ANNE_2F
warp 12, 15, 4, SS_ANNE_2F
warp 13, 15... |
MODULE __printf_print_aligned
SECTION code_clib
PUBLIC __printf_print_aligned
EXTERN __printf_doprint
EXTERN l_ge
EXTERN __printf_get_width
EXTERN __printf_is_padding_zero
EXTERN __printf_check_pad_right
; Entry: bc = buffer to print
; de = length of the buffer
__printf_print_aligned:
IF __CPU_INTEL__... |
; OS-BUNDLED UTILITY FUNCTIONS
; INCLUDED IN OSTEXT.ASM
; computes the length of a string
; a, b: string
; z: result
strlen:
push a, b, c
mw z, 0
.loop:
lw c, a, b
jeq c, 0, [.done]
add16 a, b, 1
add z, 1
jmp [.loop]
.done:
pop c, b, a
ret
; copies memory
; a, b: dst
; c, d: src
; z: len
memcpy:
p... |
; PresetsMenuAllbosskpdr:
; dw #presets_goto_allbosskpdr_crateria
; dw #presets_goto_allbosskpdr_brinstar
; dw #presets_goto_allbosskpdr_upper_norfair
; dw #presets_goto_allbosskpdr_wrecked_ship
; dw #presets_goto_allbosskpdr_maridia
; dw #presets_goto_allbosskpdr_upper_norfair_revisit
; dw ... |
10 ORG 100H
20 JP MAIN
30REGOUT EQU 0BD03H
40PUTSTR EQU 0BFF1H
50INKEY EQU 0BE53H
60PUTCHR EQU 0BE62H
70WAITK EQU 0BFCDH
80RPTCHR EQU 0BFEEH
90GPF EQU 0BFD0H
100LDPSTR EQU 0BD00H
110PSN: DB 0
120ADDR: DW 0
130RAMBUF: DEFS 128
135TEMP: DW 0
140MAIN: XOR A
150 LD (PSN),A
160 CALL CLS
170 LD HL,GREET
180 LD D,0 ; Y axis... |
.data
vertex: .space 32
map: .space 256
.text
main:
li $v0, 5
syscall
move $s0, $v0
li $v0, 5
syscall
move $s1, $v0
li $t0, 0
initial:
beq $t0, $s0, initial_end
sll $t1, $t0, 2
li $t2, 1
sw, $t2, vertex($t1)
addi, $t0, $t0, 1
j initial
initial_end:
li $t0, 0
make_map:
beq $t0, $s1, make_end
li $v0, 5... |
; unsigned char esx_ide_bank_alloc(unsigned char banktype)
SECTION code_esxdos
PUBLIC esx_ide_bank_alloc
EXTERN asm_esx_ide_bank_alloc
defc esx_ide_bank_alloc = asm_esx_ide_bank_alloc
|
L3gx.clearImage : ; L3gxImage image, int color
methodTraceEnter
pop dword [clearImage.retval]
pop dword [clearImage.color]
pop dword [clearImage.image]
pusha
mov ebx, [clearImage.image]
mov eax, [ebx+L3gxImage_data]
mov edx, [ebx+L3gxImage_w]
imul edx, [ebx+L3gxImage_h]
shl edx, 2 ; 4 bytes per pixel
m... |
%define KERNEL_DATA_SEGMENT 0x10
%define CODE_DATA_SEGMENT 0x08
[GLOBAL gdt_flush]
gdt_flush:
mov eax, [esp + 4]
lgdt [eax]
mov ax, KERNEL_DATA_SEGMENT
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp CODE_DATA_SEGMENT:flush
flush:
ret
|
; Copyright © 2021 by Brett Kuntz. All rights reserved.
.686p
.MMX
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32... |
;; MIDI Sample Application for OSZ
;; Copyright (c) 2019 MEG-OS project All rights reserved.
%include "osz.inc"
%define PORT_MPU 0x0330
[BITS 16]
[ORG 0x0100]
xor bp, bp
jmp _init
alignb 2
__bdos resw 1
_call_bdos:
jmp word [cs:__bdos]
; --------------------------------------------------------... |
!macro fn_plot .x, .y {
phx
phy
ldy #.x
ldx #.y
clc
jsr PLOT
ply
plx
}
!macro fn_locate .x, .y, .string_ptr {
lda #<.string_ptr
sta x16_r0_l
lda #>.string_ptr
sta x16_r0_h
lda #.x
sta x16_r1
lda #.y
sta x16_r1+1
jsr locate
}
!macro fn_print .string_... |
; void *w_vector_at(b_vector_t *v, size_t idx)
SECTION code_adt_w_vector
PUBLIC w_vector_at
EXTERN w_array_at
defc w_vector_at = w_array_at
|
ForestMons:
db $19
db 3,WEEDLE
db 7,KAKUNA
db 4,CATERPIE
db 9,BUTTERFREE
db 5,PIDGEY
db 6,VENONAT
db 9,BEEDRILL
db 7,METAPOD
db 8,YANMA
db 9,PIDGEOTTO
db $00
|
SECTION .text
GLOBAL test
test:
lea rax, [rax]
lea rax, [ 1*rax]
lea rax, [ 2*rax]
lea rax, [ 4*rax]
lea rax, [ 8*rax]
lea rax, [ 1*r10]
lea rax, [ 2*r11]
lea rax, [ 4*rcx]
lea eax, [ 8*eax] |
bits 64
default rel
segment .data
pHSHBqUvbJXbpund db "ahoj svete", 0xd, 0xa, 0
lKJRviUIFwbtUtXz db "enco jinehojdajsajsd", 0xd, 0xa, 0
segment .text
global main
extern _CRT_INIT
extern ExitProcess
extern printf
main:
push rbp
mov rbp, rsp
sub rsp, 32
lea rcx, [pHSHBqUvbJXbpund]
call printf
lea rcx, [lKJRviUIFwbtUtXz]
... |
;
; Z88dk Generic Floating Point Math Library
;
; Add bc ix de to FA
;
; $Id: fadd.asm,v 1.5 2016-06-21 21:16:49 dom Exp $:
SECTION code_fp
PUBLIC fadd
EXTERN ldbcfa
EXTERN ldfabc
EXTERN norma
EXTERN unpack
EXTERN rshift
EXTERN pack
EXTERN fradd
EXTERN rsh8
EXTERN fa
.fadd LD A... |
.model small
.stack 100h
.data
a DW 9
b DW 0
digit DW 10
.code
Insymbol PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH BP
MOV BP,SP
XOR DX,DX
XOR AX,AX
In_a:
MOV AH,01h
int 21h
CMP AL,13
JE In_end
MOV BL,AL
SUB BX,48
MOV AX,DX
MUL digit
ADD AX,BX
MOV DX,AX
JMP In... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Document
FILE: documentConvert.asm
AUTHOR: Jon Witort, September 2, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
jo... |
//static context
.org 0x80051B5C
addiu a0, r0, 0x1B74
.org 0x80051B74
addiu v0, r0, 0x15D0
//fix save warp
.org 0x800526B0
lb t6, 0x0067(a0)
addiu at, r0, 0x0043
//Tree Dying Sfx frame check
.org 0x800527EC
addiu at, r0, 0x021E
//Don't reset Farore's Wind
.org 0x80053254
nop
//Sheik talks triforce
.org 0x8005397C
... |
; unsigned char ulap_attr_from_pentp_penti(unsigned char pentp,unsigned char penti)
SECTION code_clib
SECTION code_arch
PUBLIC _ulap_attr_from_pentp_penti_callee
EXTERN asm_ulap_attr_from_pentp_penti
_ulap_attr_from_pentp_penti_callee:
pop hl
ex (sp),hl
jp asm_ulap_attr_from_pentp_penti
|
;
; Include code from halx86
; This is a cpp style symbolic link
MMTIMER equ 1
include ..\..\halmps\i386\mpclksup.asm
|
Name: Mdivtbl2.asm
Type: file
Size: 3947
Last-Modified: '1992-09-24T02:25:44Z'
SHA-1: 0CDA82757D0874DD89C4C9478AE9088DE2F49C12
Description: null
|
SECTION code_l
PUBLIC l_small_utob
l_small_utob:
; write unsigned binary number to ascii buffer
;
; enter : hl = unsigned integer
; de = char *buffer
; carry set to write leading zeroes
;
; exit : de = char *buffer (one byte past last char written)
; carry set if in ... |
[bits 64]
[section .text]
[default rel]
%line 1+0 ./some_filename
; program tst_wyjatki
global _start
_start:
XOR EBP, EBP
CALL main
XOR RAX, RAX
MOV RDI, RAX
MOV RAX, 60
SYSCALL
HLT
main:
PUSH rbp
MOV rbp, rsp
SUB RSP, 0x20
%line 2+0 some_filename
SUB RSP, 64
|
title llmul - long multiply routine
;***
;llmul.asm - long multiply routine
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; Defines long multiply routine
; Both signed and unsigned routines are the same, since multiply's
; work out the same in 2's complement... |
; AcessOS Microkernel Version
;
; desctab.asm
%include "arch/x86/common.inc.asm"
[BITS 32]
[section .data]
; IDT
ALIGN 8
[global gIDT]
gIDT:
; CS = 0x08, Type = 32-bit Interrupt (0xE = 1 110)
times 256 dd 0x00080000,0x00000E00
[global gIDTPtr]
gIDTPtr:
dw 256 * 16 - 1 ; Limit
dd gIDT ; Base
[section .text]
[gl... |
;msgbox.asm
;License: MIT (http://www.opensource.org/licenses/mit-license.php)
;compile ml64 /link /entry:main mgbox.asm
.code
;note: ExitProcess is forwarded
main proc
sub rsp, 28h ;reserve stack space for called functions
and rsp, 0fffffffffffffff0h ;make sure stack 16-byte aligned B
... |
extern m7_ippsHMAC_GetTag:function
extern n8_ippsHMAC_GetTag:function
extern y8_ippsHMAC_GetTag:function
extern e9_ippsHMAC_GetTag:function
extern l9_ippsHMAC_GetTag:function
extern n0_ippsHMAC_GetTag:function
extern k0_ippsHMAC_GetTag:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment ... |
* Open routine for pointer routines 1991 Tony Tebby
*
* 2004-03-19 1.01 Reserves sd.spcur more bytes (screen save area) for cdb (wl)
* 2016-04-16 1.02 Initialise alpha blending weight to 255 (opaque) (MK)
*
section driver
*
xdef pt_open
*
xref pt_wchka
xref pt_ptop
xref pt_mrall
xref pt_setq
xref pt_ca... |
; OBJECTIVE : To evaluate the expression- X+Y+24H-Z,
; where X, Y and Z are byte variabls.
; APPROACH : Use the binary addition and subtraction instructions.
; Data segment begins.
DATA SEGMENT
; Variable initialization.
X DB #15H
Y DB #30H
Z DB #10H
... |
print:
pusha ; push all registers to the stack
start:
mov al, [bx] ; pass the first char at bx to al
cmp al, 0 ; 0 means the end of string
je done
mov ah, 0x0e ; set high byte of register a to teletype mode, so BIOS will print al when
int 0x10 ; invoke the screen related interrupt ... |
db DEX_LICKITUNG ; pokedex id
db 90 ; base hp
db 55 ; base attack
db 75 ; base defense
db 30 ; base speed
db 60 ; base special
db NORMAL ; species type 1
db NORMAL ; species type 2
db 45 ; catch rate
db 127 ; base exp yield
INCBIN "pic/bmon/lickitung.pic",0,1 ; 77, sprite dimensions
dw LickitungPicFront
dw LickitungPic... |
;
; TI Gray Library Functions
;
; Written by Stefano Bodrato - Mar 2001
;
; $Id: grpage.asm,v 1.3 2015-01-19 01:32:49 pauloscustodio Exp $
;
;
; A trick to be used with the dafault graph functions
;
; IN: A=Page Number (0/1)
; all registers are saved
PUBLIC graypage
EXTERN base_gra... |
* Sprite move
*
* Mode 4
* +------|-----+
* |aaaaaaaa |
* |aaggggaa |
* |aaggggaa |
* |aaggaaaaaaaa|
* -aaaaaaaaggaa-
* | aaggggaa|
* | aaggggaa|
* | aaaaaaaa|
* +------|-----+
*
section sprite
xdef mes_move
include 'dev8_keys_sysspr'
mes_move
dc.b 0,sp.wmove
end
|
; Handwritten Assembly for Win x64 CooV4 support
.CODE
COO_internal_getThis PROC
mov rax, r10
ret
COO_internal_getThis ENDP
generic_stub PROC
call unique_label_JnMhnwRGLG
unique_label_JnMhnwRGLG:
pop QWORD PTR rax
shr rax, 5
shl rax, 5
mov r10,QWORD PTR 8[rax]
mov rax,QWORD PTR [rax]
jmp rax
generic_stub E... |
assume cs:codesg
assume ss:stacksg
stacksg segment stack
db 1 dup(0)
stacksg ends
codesg segment
start:
mov ax, 0123h
mov bx, 0456h
add ax, bx
mov ax, 4c00h
int 21h
codesg ends
end
|
start:
MOVE ra, 0
loop:
ADD ra, 1
COMP ra, 100
JIFZ :end
JUMP :loop
end:
HALT |
; half-row DEC HEX BIN
; Space...B 32766 7FFE 01111111 11111110
; Enter...H 49150 BFFE 10111111 11111110
; P...Y 57342 DFFE 11011111 11111110
; 0...6 61438 EFFE 11101111 11111110
; 1...5 63486 F7FE 11110111 11111110
; Q...T 64510 FBFE 11111011 11111110
; A...G 65022 FDFE 11111101 11111110
; CS...V 65278 FEFE 11111... |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Borja Merino (bmerinofe[at]gmail.com). [WinHttp stager (Http)]
; Version: 1.0 (January 2015)
; Size: 323 bytes
; Build: >build.py stager_reverse_winhttp_http
;----... |
.MODEL SMALL
.DATA
A DW 2220h,7770H,4440H,1110H,5550H
LEN DW ($-A)/2
.CODE
MOV AX,@DATA
MOV DS,AX
MOV CX,2
OUTLOOP: MOV DX,CX
DEC DX
MOV SI,DX
ADD SI,SI
MOV AX,A[SI]
INLOOP: CMP A[SI-2],AX
JBE INEXIT
MOV DI,A[SI-2] ;swaping
MOV A[SI],... |
.file "sha1-sha.asm"
.macro ROUND4 abcd, e0, e1, m0, m1, m2, m3, k
sha1nexte \m0, \e0
movdqa \abcd, \e1
sha1msg2 \m0, \m1
sha1rnds4 $\k, \e0, \abcd
sha1msg1 \m0, \m3
pxor \m0, \m2
.endm
.section .rdata,"dr"
.align 64
PSHUFFLE_BYTE_FLIP_MASK:
.quad 0x08090a0b0c0d0e0f
.quad 0x0001020304050607
UPPER_WOR... |
.file "linuxaudiodev.c"
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "open"
.LC2:
.string "read"
.LC3:
.string "write"
.LC4:
.string "setparameters"
.LC5:
.string "bufsize"
.LC6:
.string "obufcount"
.LC7:
.string "obuffree"
.LC8:
.string "flush"
.LC9:
.string "close"
.LC10:
.string "fileno"... |
;
; Copyright (c) 2013 kaytat
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute... |
include "msxdos.inc"
; extern uint8_t msxdosSetTime(uint8_t hour, uint8_t minutes, uint8_t seconds, uint8_t centiseconds);
PUBLIC _msxdosSetTime
_msxdosSetTime:
PUSH IX
LD IX, 0
ADD IX, SP
LD H, (IX+4) ; HOUR
LD L, (IX+5) ; MINUTES
LD D, (IX+6) ; SECONDS
LD E, (IX+7) ; CENTI-SECONDS
ld c, $2D
CALL BD... |
%macro eopProc 3
%define %%eopSegmentName %1
%define %%length %2
%define %%procName %3
%assign %%eopNumber %%eopSegmentName %+ _nextEopNumber
%assign %%off_start %%eopSegmentName %+ _nextEopStart
%assign %%off_end %%off_start + %%length
%define %%addr_start seg_ %+ %%eopSegmentName, %%off_start
%define ... |
[BITS 32]
GLOBAL api_end
[SECTION .text]
api_end: ; void api_end(void);
MOV EDX, 4
INT 0x40
|
; compile with nasm -felf64 foo.asm; ld foo.o -o foo.out
bits 64
section .data
should_not_trigger dq 0x0000000000000000
section .start
global _start
_start:
; generic push to make sure the tool is working
mov rax, 0xcafebabedeadbeef
push rax
; write to .data section, should not appear in json
mov [shoul... |
[org 0x7c00]
;; equ is used to set constants
CODE_SEG equ code_descriptor - gdt_start
DATA_SEG equ data_descriptor - gdt_start
KERNEL_LOCATION equ 0x1000
mov [BOOT_DISK], dl ;; saving boot disk number
;; set up segment registers and stack
xor ax, ax ;; reset ax
mov es, ax
mov ds, ax
mov bp, 0x8000 ;; set the stack s... |
.radix 16
start:
jmp begin
db 'IBM 3.3'
dw 200
db 2
dw 1
db 2
dw 70
dw 2D0
db 0FDh
dw 2
dw 9
dw 2
dw 0
work dd ?
count db ?
drive db ?
Fat_sec dw ?
old_boot dw 666d
flag db ?
sys_sec dw ?
;Simulate PUSHA
pusha:
pop word ptr cs:[sys_sec-start]
pushf
push ax
push bx
push cx
push dx
push si
pus... |
[bits 16]
switch_to_pm:
cli
lgdt [gdt_descriptor]
mov eax, cr0
or eax, 0x1
mov cr0, eax
jmp CodeSeg:init_protected_mode
[bits 32]
init_protected_mode:
mov ax, DataSeg
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov ebp, 0x90000
mov esp, ebp
call begin_protected_mode
begin_protected_mode:
call Ke... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Jedi
MODULE: Gadgets Library
FILE: uiTimeInputText.asm
AUTHOR: Jacob A. Gabrielson, Jan 10, 1995
ROUTINES:
Name Description
---- --... |
; Verifies BMI and BPL
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
bmi handleBMI ; Negative flag will be false, no branch
bmi handleBMI ; Negative flag will be true, branch
nop ; Padding in memory so the offset isn't zero
handleBMI:
lda #$42 ; Load something to prove... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Desktop/DeskDisplay
FILE: cNDPrimaryClass.asm
AUTHOR: David Litwin
ROUTINES:
REVISION HISTORY:
Name Date Description
---- ---- -----------
... |
#BLTZ BLEZ BGTZ BGEZ INSTRUCTIONS
#1 A=0
lui $1 0x0000
ori $1 0x0000
bltz $1 fail
sll $0 $0 0
blez $1 blg_jump1
sll $0 $0 0
j fail
sll $0 $0 0
blg_ret1:
bgtz $1 fail
sll $0 $0 0
bgez $1 blg_jump2
sll $0 $0 0
j fail
#2 A<0
blg_ret2:
lui $1 0xFFFF
ori $1 0xFFFF
bltz $1 blg_jump3
s... |
MODULE pc88_getmaxy
SECTION code_clib
PUBLIC getmaxy
PUBLIC _getmaxy
EXTERN __console_h
EXTERN __pc88_gfxmode
.getmaxy
._getmaxy
ld a,(__pc88_gfxmode)
ld hl,199
and a
ret z
; We must be in lores mode here
ld a,(__console_h)
a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.