content
stringlengths
23
1.05M
; int wv_priority_queue_shrink_to_fit_fastcall(wv_priority_queue_t *q) SECTION code_clib SECTION code_adt_wv_priority_queue PUBLIC _wv_priority_queue_shrink_to_fit_fastcall EXTERN asm_wv_priority_queue_shrink_to_fit defc _wv_priority_queue_shrink_to_fit_fastcall = asm_wv_priority_queue_shrink_to_fit
; @@@ void mikeos_print_newline(void); %include "os_vector.inc" section .text use16 global _mikeos_print_newline _mikeos_print_newline: mov bx, os_print_newline call bx ret
.686p .model flat, stdcall option casemap:none .code option prologue:none option epilogue:none get_frdepackersize proc export mov eax, unpacker_end - KKrunchyDepacker ret get_frdepackersize endp get_frdepackerptr proc export mov eax, KKrunchyDepacker ret get_frdepackerptr endp unpacker_start: KKru...
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA...
Sound3A_Header: smpsHeaderStartSong 2 smpsHeaderVoice Sound3A_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound3A_FM5, $00, $07 ; FM5 Data Sound3A_FM5: smpsSetvoice $00 dc.b nA3, $08 smpsStop Sound3A_Voices: ; Voice $00 ; $1C ; $2E, $02, $0F, $02, $1F, $1F, $...
; ; Startup for CP/M ; ; Stefano Bodrato - Apr. 2000 ; Apr. 2001: Added MS-DOS protection ; ; Dominic Morris - Jan. 2001: Added argc/argv support ; - Jan. 2001: Added in malloc routines ; - Jan. 2001: File support added ; ; $Id: cpm_crt0.asm,v 1.23 2015/01/21 07:05:00 stef...
GLOBAL throwInvalidOpcodeException GLOBAL throwDivisionByZeroException throwInvalidOpcodeException: ud2 ; Undefined instruction: raises invalid opcode ret throwDivisionByZeroException: mov rax, 0xFF mov cl, 0 div cl ret
;------------------------------------------------------------------------------ ; ; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Intel SHA Extensions optimized ...
PUBLIC testescape .testescape call 0xB815 ld hl, 1 ret nc jr z, noesc dec hl noesc: dec hl ret
.intel_syntax noprefix .macosx_version_min 10, 13 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 # ---------------------- .private_extern _inflate_table .globl _inflate_table _inflate_table: push ebp mov ebp, esp push ebx push edi push esi sub esp, 17...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1994 -- All Rights Reserved PROJECT: GEOS MODULE: Appl/Saver/Logo FILE: logo.asm AUTHOR: Don Reeves, Aug 16, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Dat...
#import "../common/common.asm" #import "../common/cia1_regs.asm" #import "../common/cia2_regs.asm" #import "../common/vic_regs.asm" #import "../common/key_consts.asm" #import "defs.asm" * = $0801 BasicUpstart(main) * = $C000 #import "main.asm" #import "init_clear_screen.asm" #import "blit_viewport.asm" #import "k...
; --------------------------------------------------------------------------- ; Sprite mappings - chaos emeralds on the ending sequence ; --------------------------------------------------------------------------- Map_ECha_internal: dc.w M_ECha_1-Map_ECha_internal dc.w M_ECha_2-Map_ECha_internal dc.w M_ECha_3-Map...
; ; Fast background save ; ; Generic version (just a bit slow) ; ; $Id: bksave.asm,v 1.7 2016-07-02 09:01:35 dom Exp $ ; IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION smc_clib PUBLIC bksave PUBLIC _bksave EXTERN pixeladdress .bksave ._bksave push ix ld hl,4 add...
MOV 0x70,#0x00 ;R0~R7 start addrss MOV 0x71,#0x20 ;indirect address for @Ri MOV 0x72,#0x40 ;indirect start value MOV 0xF0,#0x20 ; count MOV 0x7F,0x71 INIT: MOV R0,0x70 MOV @R0,0x71 MOV R0,0x71 MOV @R0,0x72 INC 0x70 INC 0x71 INC 0x72 DJNZ 0xF0,INIT MOV R0,0x7F MOV 0xD0,#0x00 MOV 0x60,@R0 MOV 0x61,@R1 ...
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; Registers UHCI_REGISTER_COMMAND = 0x0000 ; u16 UHCI_REGISTER_STATUS = 0x0002 ; u16 UHCI_REGISTER_IRQ = 0x0004 ; u16 UHCI_REGISTER_FRAME_NUMBER = 0x0006 ; u16 UHCI_REGISTER_FRAME_BASE = 0x0008 ; u32 UHCI_REGISTER_START_OF_FRAME = 0x000C ; u8 UHCI_REGIST...
;------------------------------------------------------------------------------------------------------- ; Copyright (C) Microsoft. All rights reserved. ; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. ;-------------------------------------------------------------...
frame 1, 06 frame 2, 09 frame 1, 25 frame 0, 25 frame 3, 10 setrepeat 4 frame 3, 04 frame 4, 04 dorepeat 6 endanim
.include "../../src/libs/cesplib_rars.asm" utest_draw_winner_X: jal winner.x li a7, 10 ecall .include "../../src/draw/winnerscreen.asm" .include "../../src/draw/draw_winnerscreen.asm" .include "../../src/draw/draw_blackscreen.asm" .include "../../src/draw/draw_X.asm" .include "../../src/draw/draw_O.asm" .include ".....
; DEBUG's CURRENT FORM WILL NO LONGER ; APPEAER IN OS3 debug.init : ret debug.println : cmp dword [DisplayMode], MODE_TEXT je TextMode.println ret debug.log.system : cmp dword [DisplayMode], MODE_TEXT je TextMode.println ret debug.log.info : cmp dword [DisplayMode], MODE_TEXT je TextMode.println ret debug....
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; ; ----- void __CALLEE__ drawb(int x, int y, int h, int v) ; ; $Id: drawb_callee.asm $ ; IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION code_graphics PUBLIC drawb_callee PUBLIC _drawb_calle...
VermilionGym_h: db GYM ; tileset db VERMILION_GYM_HEIGHT, VERMILION_GYM_WIDTH ; dimensions (y, x) dw VermilionGym_Blocks ; blocks dw VermilionGym_TextPointers ; texts dw VermilionGym_Script ; scripts db 0 ; connections dw VermilionGym_Object ; objects
; void w_array_destroy(w_array_t *a) SECTION code_clib SECTION code_adt_w_array PUBLIC _w_array_destroy EXTERN _b_array_destroy defc _w_array_destroy = _b_array_destroy
arch snes.cpu lorom // This skips the intro org $82eeda db $1f // Hijack init routine to autosave and set door flags org $828067 jsl introskip_doorflags // Set morph and missiles room state to always active org $8fe658 db $ea, $ea org $8fe65d db $ea, $ea org $80ff00 introskip_doorflags: // Do ...
MOV A,#0x01 SWAP A MOV A,#0x20 SWAP A MOV A,#0XFA SWAP A MOV A,#0X3C SWAP A
;************************************* ;Suma binaria de 16 bits ; ;Autor: Alfredo Orozco de la paz ; ;Fecha: 5 de marzo del 2012 ;************************************* ;Las direcciones de los operandos ;y de los resultados ocupan 2 bytes ;se resenrvan 2 bytes para cada variable. loc1 equ 019h loc2 equ 01b...
; SMS (QPC) Send serial data section comm xdef spp_sendser xref iob_gbps include 'dev8_smsq_qpc_keys' include 'dev8_keys_serparprt' include 'dev8_keys_k' include 'dev8_mac_assert' ;+++ ; This routine sets up messages to send serial data to the PC ; ; d1 c s port number ; ;--- spp_sendser move.l qpc_spp_li...
; Note: subtracting 32 will convert a character to ; uppercase .model small .stack 100h .data aString db "this is a string containing lowercase letters" strSize = ($ - aString) .code main proc mov ax,@data ; init data segment mov ds,ax mov si,offset aString mov cx,strSize L1: sub [s...
AREA ADD, CODE, READONLY ENTRY MOV R0, #0X00000003 MOV R1, #0X00000004 ADD R2, R0, R1 UP B UP END
Name: Doppler.asm Type: file Size: 9307 Last-Modified: '1992-07-01T15:00:00Z' SHA-1: E80042EFDD4DFCA63CD7B2884BD5A9ACF2B8F07D Description: null
;----------------------------------------------------------------------------------------------------- ; ; Frame oriented jingle processor ; ;----------------------------------------------------------------------------------------------------- ;-------------------------------------------- ; Play mulptiple tones...
; TP-EXO7: Reads two two-digit numbers and prints the sum on the next line. pile segment para stack 'pile' db 256 dup(0) pile ends data segment buf db 2+1, ?, 2 dup(?) ; maxLength+1 + actualLength + data msg db 13, 10, 'Entrez un nombre: $' res db 13, 10, 'Leur somme: $' err db 13, 10, 'ERROR: L...
[bits 32] global set_page_directory set_page_directory: mov eax, [esp + 4] mov cr3, eax ret global enable_paging enable_paging: mov eax, cr0 or eax, 0x80000001 mov cr0, eax ret global get_page_directory get_page_directory: mov eax, cr3 ret
TITLE COMMUNAL - Copyright (c) SLR Systems 1994 INCLUDE MACROS INCLUDE SYMBOLS INCLUDE SEGMENTS INCLUDE MODULES INCLUDE EXES PUBLIC DEFINE_COMMUNALS .DATA EXTERNDEF SEG_COMBINE:BYTE,PUB_SIZE:BYTE,PUB_TYPE:BYTE,SEG32_FLAGS:BYTE,EXETYPE_FLAG:BYTE EXTERNDEF PUB_CV:DWORD,CLASS_NAME_LINDEX:DWORD,CU...
; ;================================================================================================== ; RC2014 STANDARD CONFIGURATION ;================================================================================================== ; #include "cfg_rc.asm" ; CPUOSC .SET 7372800 ; CPU OSC FREQ DEFSERCFG .SE...
;add a series of 10 bytes stores in the memory from locations ;20,000H to 20,009. Store the result immediately after the series. CODE SEGMENT assume CS:Code mov ax,2000H mov ds,ax mov si,0000H ;starting offset address = 0000H mov cx,000AH ;10 bytes = 'A' mov ...
;; FILE MANAGER ;; data segment S1 db 'File' S2 db 'Directory' S3 db 'List' S4 db 'Exit' S5 db 'Cancel' S6 db 'Create' S7 db 'Delete' S11 db 'Create' S12 db 'View' S13 db 'Copy' S14 db 'Rename' S15 db 'Delete' S16 db 'Exit' S17 db 'Home' S21 db 'Create' S22 db 'Remove' S23 db 'ChangeDIR' S24 db '...
Parser: cmp bx, 1 je intt cmp bx, 2 je summ cmp bx, 3 je subb cmp bx, 4 je divv cmp bx, 5 je mull
; this function seems to be used only once ; it store the address of a row and column of the VRAM background map in hl ; INPUT: h - row, l - column, b - high byte of background tile map address in VRAM GetRowColAddressBgMap:: xor a srl h rr a srl h rr a srl h rr a or l ld l, a ld a, b or h ld h, a ret ; c...
00000000 E99D02 jmp 0x2a0 00000003 0000 add [bx+si],al 00000005 0000 add [bx+si],al 00000007 0000 add [bx+si],al 00000009 0000 add [bx+si],al 0000000B 00FF add bh,bh 0000000D FF00 inc word [bx+si] 0000000F 0000 ...
COMMENT @--------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All rights reserved PROJECT: MODULE: FILE: amateurPeanut.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ----...
db "FORBIDDEN@" ; species name db "It was formed by" next "uniting 108" next "spirits. It has" page "been bound to the" next "ODD KEYSTONE by a" next "mysterious spell.@"
; Device Driver Linkage Link In V2.00  1985 Tony Tebby QJUMP section iou xdef iou_ddlk xdef iou_svlk include 'dev8_keys_iod' include 'dev8_keys_qdos_sms' ;+++ ; General directory device driver link in. ; ; a3 c p pointer to linkage block ; ; status ...
[WiiULauncher0US] moduleMatches = 0x90DAC5CE ; Jump to title from Japanese video 0x34BA068 = b 0x34BA2C8 ; Jump to title from English video 0x34BA074 = b 0x34BA2C8 [WiiULauncher0EU] moduleMatches = 0x8F7D2702 ; Jump to title from Japanese video 0x34BA0F0 = b 0x34BA350 ; Jump to title from English video 0x34BA0FC =...
CheckFacingTileForStdScript:: ; Checks to see if the tile you're facing has a std script associated with it. If so, executes the script and returns carry. ld a, c ld de, 3 ld hl, TileCollisionStdScripts call IsInArray jr nc, .notintable ld a, jumpstd_command ld [wJumpStdScriptBuffer], a inc hl ld a, [hli] l...
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT ; ; Basic font definition ; ============================================================================= ; Font...
; list P = 16F876 ; include "p16f876.inc" errorlevel -(305), -(302), -(306) ; ; ---------------------------------------------- ; SET THIS Flag = 1 IF YOUR CODE USES INTERRUPTS ; ELSE, SET THIS FLAG = 0 ; ---------------------------------------------- ; INTERRUPTS = 0 ; ; -------------------...
// Write an 8085 assembly language program to multiply two 16-bit binary numbers LHLD 9000 SPHL LHLD 9002 XCHG LXI H,0000 LXI B,0000 LOOP: DAD SP JNC NOCARRY INX B NOCARRY: DCX D MOV A,E ORA D JNZ LOOP SHLD 9100 MOV L,C MOV H,B SHLD 9102 HLT
; uint in_JoySinclair1(void) ; 2002 aralbrec PUBLIC in_JoySinclair1 ; exit : HL = F000RLDU active high ; uses : AF,DE,HL .in_JoySinclair1 ld a,$ef in a,($fe) and $1f ld e,a ld d,0 ld hl,sinc1tbl add hl,de ld l,(hl) ld h,d ret .sinc1tbl defb $8f,$0f,$8e,$0e defb $8d,$0d,$8c,$0c ...
; vars.asm ; Copyright 2019-2020 Robin Verhagen-Guest ; ; 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...
; ; jfss2int-64.asm - accurate integer FDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice i...
TITLE XMM_INTERFACE.ASM NAME XMM_INTERFACE ;******************************************************************************* ; ; ; XMM C Interface Routines ; ; ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1988,1991 ; All Righ...
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 22/06/2006 ; ; Copy a variable from basic ; ; int __CALLEE__ zx_getstr_callee(char variable, char *value); ; ; ; $Id: zx_getstr_callee.asm,v 1.2 2007/10/18 10:12:40 stefano Exp $ ; XLIB zx_getstr_callee XDEF ASMDISP_ZX_GETSTR_CALLEE zx_getstr_callee: pop...
#To be inserted at 8013cea0 ############################# ##FPSHack_SlowLinkSwimSpeed## ############################# lfs f0, 0x000C (r3) #VANILLA lis r17, 0x817F lfs f17, 0x0004 (r17) fmuls f0, f0, f17
; THIS FILE AUTOGENERATED FROM asm-nseel-x86-gcc.c by a2x64.php %define EEL_F_SIZE 8 %define TARGET_X64 SECTION .text global nseel_asm_1pdd nseel_asm_1pdd: mov rdi, qword 0xFEFEFEFEFEFEFEFE %ifdef TARGET_X64 sub rsp, 128 fstp qword [rsp] movq xmm0, [rsp] %ifdef AMD64ABI mov r15, rsi c...
page ,132 if 0 /*++ Copyright (c) 1993 Microsoft Corporation Module Name: ints.asm Abstract: Contains handler for Windows protect-mode NetwareRequest function, exported by NETWARE.DRV. Code in this file access real mode memory via an LDT descriptor created especially for this pur...
# Author: Gurkamal Singh # Date: April 23, 2019 # Description: The MIPS version of "Hello World!" .data # Data Declarations...load string into memory asdf output_string: .asciiz "\nHello, World!\n" .text # Inst...
;------------------------------------------------------------------------- ; Native terminal i/o functionality for micro8085_cilb ; Functions below assumes support for INTEL 8085 "undocumented" opcodes SECTION code_clib EXTERN puartd EXTERN puartc PUBLIC _uart_putc ;--------------...
; MovRec macro ; ; ; ; !movrec rows,offsetx,offsety,filter ; ; useage ; ZP$FC < destination ; ZP$FD > destination ; ZP$FE < source ; ZP$FF > source ; LDX offsetx ; LDY offsety ; ;PUSH ZP$FC-$FF ;PUSH AXY ; ; !for ; LDA ZP$F...
; float log2(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccix_log2_fastcall EXTERN cm48_sdccixp_dx2m48, am48_log2, cm48_sdccixp_m482d cm48_sdccix_log2_fastcall: call cm48_sdccixp_dx2m48 call am48_log2 jp cm48_sdccixp_m482d
ORG 100h MOV AL, 5 ;AL = 4 SUB AL, -8 ;AL = contiene il risultato HLT
*NAME OC-6 (d_driver) *TIME:24.00 *EXPRESS *PAGE:999,LIST *LIBRA:23 *DISC:705/SYSTEM,LCROSS *FILE:LIB,67 *FILE:MEM,30,W *PERSO:67 *TAKE TAPE:67 * *DISC:705/SYSTEM,WORKIN * *FILE:LCROSS - PERSO ACCEMБЛEP+ЗAГPYЗЧИK+ЭMYЛЯTOP * *FILE:ASSEM - OПИCAHИE И TEKCTЫ ACCEMБЛEPA И ЗAГPYЗЧИKA * ...
DEFINE equs "mac: MACRO\nPRINTT \"Hello :D\\n\"\nENDM" DEFINE mac
lui $1,4552 ori $1,$1,50437 lui $2,21849 ori $2,$2,36461 lui $3,60219 ori $3,$3,8973 lui $4,7282 ori $4,$4,12197 lui $5,11373 ori $5,$5,65419 lui $6,9956 ori $6,$6,37351 mthi $1 mtlo $2 sec0: nop nop nop ori $2,$2,41130 sec1: nop nop subu $2,$2,$4 ori $3,$2,28258 sec2: nop nop sltiu $2,$2,7352 ori $5,$2,750...
# Simple input/output in MIIPS assembly # From: http://labs.cs.upt.ro/labs/so2/html/resources/nachos-doc/mipsf.html # Start .text segment (program code) .text .globl main main: # Print string msg1 li $v0,4 # print_string syscall code = 4 la $a0, msg1 # load the address of msg syscall # Get input A from use...
global test_case extern std.outsln %include "String.inc" section .text test_case: lea rax, [test_str] ; message call std.outsln ret section .data test_str_data: db "Bar" junk_data: db "junk" test_str: istruc String at String.pdata, dq test_str_data at String.length, dq 3 i...
Name: Object-p.asm Type: file Size: 22181 Last-Modified: '1992-07-29T15:00:00Z' SHA-1: 955C2029BA2A74E900A337A0C1F11D333584E5B9 Description: null
;// Include variables and constants that will be shared in the ;// C28x C-code and CLA assembly code. This is accomplished by ;// using .cdecls to include a C-code header file that contains ;// these variables and constants .cdecls C,LIST,"CLAShared.h" ;// To include an MDEBUGSTOP (CLA breakpoint) as the fi...
global read_port8 global write_port8 read_port8: mov edx, [esp + 4] in al, dx ret write_port8: mov edx, [esp + 4] mov al, [esp + 4 + 4] out dx, al ret
#include "cpu.asm" ; biggest = 0xfd ; second = 0xfe ; temp = 0xff reset: lda $1 sta 0xfd lda $0 sta 0xfe sta 0xff loop: lda 0xfd sta 0xff ; temp = biggest out add 0xfe ; if overflow jc reset sta 0xfd ; biggest = biggest + second lda 0xff sta 0xfe ; other = temp jmp loop
ori $1, $0, 9 ori $2, $0, 7 ori $3, $0, 2 ori $4, $0, 5 sw $3, 0($0) sw $2, 4($0) sw $4, 8($0) sw $4, 12($0) sw $4, 16($0) sw $1, 20($0) sw $4, 24($0) sw $4, 28($0) sw $4, 32($0) sw $1, 36($0) sw $1, 40($0) sw $3, 44($0) sw $1, 48($0) sw $3, 52($0) sw $2, 56($0) sw $2, 60($0) sw $4, 64($0) sw $2, 6...
lda {c1},x sec sbc {m2} sta {m1} lda {c1}+1,x sbc {m2}+1 sta {m1}+1
;Testname=test; Arguments=-fbin -ouscore.bin; Files=stdout stderr uscore.bin dd 0x1234_5678 dd 305_419_896 ; Same number as above it dd 0x1e16 ; NOT a floating-point number! dd 1e16h ; NOT a floating-point number! dd 1e16_h ; NOT a floating-point number! dd $1e16 ; NOT a floating-point number! dd $1e+16 ; ...
; ------------------------------------------------------------------------------------------------- ; intr/interrupt.asm ; ------------------------------------------------------------------------------------------------- [GLOBAL default_exception_handler] [GLOBAL default_interrupt_handler] [GLOBAL exception_handlers] ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Diablo Daisy Wheel driver FILE: diablo630Info.asm AUTHOR: Dave Durran, 27 Mar 1990 REVISION HISTORY: Name Date Description ---- --...
.file "test.c" .intel_syntax noprefix .text .type second_func, @function second_func: .LFB0: .cfi_startproc push ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 mov ebp, esp .cfi_def_cfa_register 5 call __x86.get_pc_thunk.ax add eax, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_ mov eax, DWORD PTR 8[ebp] mov edx, DWORD P...
DEVICE ZXSPECTRUM48 : ORG 0x8000 : DB "0123456789ABCDEF" ASSERT '10' = {0x8000} : ASSERT '2' = {b 0x8002} : ASSERT '3' = {b 0x8003} DB {B 0x800F} ; test big case "{B" (should work) ORG 0xFFFE : DB 254, 255 ASSERT 254 = {b 0xFFFE} : ASSERT 255 = {b 0xFFFF} : ASSERT 0xFF'FE = { 0xFF'FE } ...
global F global M section .text ; input: edi = n ; output: eax F: test edi, edi jnz .work mov eax, 1 ; eax = F(0) = 1 ret .work: push rdi ; save n dec edi ; edi = n-1 call F mov edi, eax ; edi = F(n-1) call M mov ebx, eax ; ebx = M(F(n-1)) pop rax ; ra...
Map_2PRetractingSpring_:dc.w word_23F5A-Map_2PRetractingSpring_ dc.w word_23F5C-Map_2PRetractingSpring_ dc.w word_23F64-Map_2PRetractingSpring_ dc.w word_23F64-Map_2PRetractingSpring_ Map_2PRetractingSpring_2: Map_2PRetractingSpring_2_:dc.w word_23F5A-Map_2PRetractingSpring_2_ dc.w word_23F6C-Map_2PRetractingS...
extern m7_ippsHashMethod_SHA512:function extern n8_ippsHashMethod_SHA512:function extern y8_ippsHashMethod_SHA512:function extern e9_ippsHashMethod_SHA512:function extern l9_ippsHashMethod_SHA512:function extern n0_ippsHashMethod_SHA512:function extern k0_ippsHashMethod_SHA512:function extern ippcpJumpIndexForMergedLib...
.text readValue: la $a0,prompt li,$v0,4 syscall li $v0,5 syscall la $t0, value sw $v0,0($t0) syscall .data prompt: .asciiz "Enter your Integer :" .align 2 #provide a align deractive for give a word boundary value: .space 20 #specify number of bytes to be allocated
.code ; void AVX2_Packed_Gather_Double_I32_(const double* src, double* des, const int32_t * indexes, const int64_t * merge) AVX2_Packed_Gather_Double_I32_ proc vmovups ymm0, ymmword ptr [rdx] ; des vmovdqu xmm1, xmmword ptr [r8] ; indexes vmovdqu ymm2, ymmword ptr [r9] ; merge ; Shift the merge items to high-order...
// push %%SEGMENT%%[%%INDEX%%] onto the stack @%%SEGMENT%% D=A @%%INDEX%% A=D+A D=M @SP A=M M=D @SP M=M+1
; A119479: Length of longest run of consecutive integers having exactly n divisors. ; 1,2,1,3,1,5,1,7,1,3,1 pow $0,2 mov $2,$0 lpb $0 div $0,2 add $3,$2 mov $4,$0 cmp $4,0 add $0,$4 gcd $0,$3 sub $2,1 mul $0,$2 add $1,7 lpe div $1,7 add $1,1 mov $0,$1
$variable0 $variable5 @label1 LOAD [$variable1] ACC @label2 LOAD [ACC] A COPY A B SET ACC #100 @label3 LOAD [$variable3] B LOAD [$variable0] C $variable4 // comment
; Test case: define kip "hoppa!" byte kip,0,0,kip byte "kip" define one 1 byte one define one 2 byte one define val 1 xdefine val val+1 ; c expands to 1+1 byte val define val 1 assign val val+1 ; c expands to 2 byte val
SECTION code_fp_am9511 PUBLIC cam32_sdcc___fs2slong EXTERN asm_am9511_f2slong EXTERN asm_sdcc_read1 .cam32_sdcc___fs2slong call asm_sdcc_read1 jp asm_am9511_f2slong
///StackArithmetic\SimpleAdd\SimpleAdd.asm /// @7 D=A @SP A=M M=D @SP M=M+1 @8 D=A @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M @SP A=M-1 M=M+D
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel Graphics FILE: graphicsSubString.asm AUTHOR: Jim DeFrisco, 31 January 1991 ROUTINES: Name Description ---- ----------- REVIS...
MOV 0x76,#0x3C MOV 0x2A,#0x24 MOV 0x5B,#0x68 MOV 0x41,#0x38 MOV 0x32,#0x64 MOV 0x34,#0x28 MOV 0x62,#0x7B MOV 0x54,#0x20 DB 0xA5 ADDC A,0x76 ;0x3C C = 0 AC = 0 ADDC A,0x2A ;0x60 C = 0 AC = 1 ADDC A,0x5B ;0xC8 C = 0 AC = 1 ADDC A,0x41 ;0x00 C = 1 Ac = 1 ADDC A,0x32 ;0x65 C = 0 AC = 0 ADDC A,0x34 ;0x8D C = 0 AC = 0 ADDC ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; zx spectrum ram model ;; ;; generated by target/zx/startup/zx_crt_ram.m4 ;; ;; ;; ;; 48k memory model (flat 64k address space) ;;...
; Copyright (c) 2019-2022 Andreas T Jonsson ; ; This software is provided 'as-is', without any express or implied ; warranty. In no event will the authors be held liable for any damages ; arising from the use of this software. ; ; Permission is granted to anyone to use this software for any purpose, ; including comme...
NOP LD 00000111 ; A MOV r1 r0 LD 00001000 ; B XOR ; r0 = r1 xor r0 = 0x0f LD 11111111 ; A MOV r1 r0 LD 11111111 ; B XOR ; r0 = r1 xor r0 = 0x00 LD 10101010 ; A MOV r1 r0 LD 10011100 ; B XOR ; r0 = r1 xor r0 = 0x36 NOP NOP NOP
.data message: .asciiz "Enter the value of Pi: " fzero: .float 0.0 .text lwc1 $f4, fzero # Display message li $v0, 4 la $a0, message syscall # Read a float li $v0, 6 syscall # Display value li $v0, 2 add.s $f12, $f4, $f0 syscall
.code ; void AVX512_Packed_Math_Short_(const ZmmVal * a, const ZmmVal * b, ZmmVal result[6]); AVX512_Packed_Math_Short_ proc vmovdqu16 zmm0, zmmword ptr [rcx] vmovdqu16 zmm1, zmmword ptr [rdx] ; Add (wraparound) vpaddw zmm2, zmm0, zmm1 vmovdqa64 zmmword ptr [r8], zmm2 ; Add with signed saturation vpaddsw zmm2,...
org $C000 ; Sprite offsets, used by the animation engine SPRITE_OFFSET_IDLE: EQU 0 SPRITE_OFFSET_TURN: EQU 96 SPRITE_OFFSET_WALK: EQU 192 SPRITE_OFFSET_FALL: EQU 768 SPRITE_OFFSET_CROUCH: EQU 960 SPRITE_OFFSET_UNSHEATHE: EQU 1248 SPRITE_OFFSET_IDLE_SWORD: EQU 1344 SPRITE_OFFSET_WALK_SWORD: EQU 1440 SPRITE_OFFSET...
; ; jdcolext.asm - colorspace conversion (64-bit SSE2) ; ; Copyright 2009, 2012 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, 2012, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see c...
; Draws a "frame block". Frame blocks are blocks of tiles that are put ; together to form frames in battle animations. DrawFrameBlock: ld l, c ld h, b ld a, [hli] ld [wNumFBTiles], a ld a, [wFBDestAddr + 1] ld e, a ld a, [wFBDestAddr] ld d, a xor a ld [wFBTileCounter], a ; loop counter .loop ld a, [wFBTileCo...
;/*++ ; ;Copyright (c) 2006, 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 License ;which accompanies this distribution. The full text of the license may be found at ...
_rm: file format elf32-littlearm Disassembly of section .text: 00000000 <main>: 0: e92d4800 push {fp, lr} 4: e28db004 add fp, sp, #4 8: e24dd010 sub sp, sp, #16 c: e50b0010 str r0, [fp, #-16] 10: e50b1014 str r1, [fp, #-20] ; 0xffffffec 14: e51b3010 ldr r3, [fp, #-1...