content
stringlengths
23
1.05M
; ASM source file created by SevenuP v1.20 ; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Sort Priorities: X char, Char line, Y char ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No barbaro_idle: DE...
; Directives: https://docs.oracle.com/cd/E26502_01/html/E28388/eoiyg.html .section __TEXT,__text,regular,pure_instructions .build_version macos, 11, 0 sdk_version 11, 1 .globl _main ## -- Begin function main ; Align bytes to 2^4 = 16 bytes. 0x90 is a NOP instruction .p2align 4, 0x90 _main: ...
db "LOUD NOISE@" ; species name db "Its roar in battle" next "shakes the ground" next "like a tremor--" page "or like an" next "earthquake has" next "struck.@"
; Copy Uppercase and Space Fill Name V1.00  1990 Tony Tebby QJUMP section procs xdef pr_upcpy xref cv_upstr include 'dev8_keys_err' ;+++ ; Copy uppercase and space fill name ; ; d1 c s max length of name ; a1 cu pointer to destination (preserved if nam...
include "macro_blake2b.asm" macro RecordRdtsc { rdtsc mov rcx, [rbp+EH.debugptr] mov [rcx], eax mov [rcx+4], edx add rcx, 8 mov [rbp+EH.debugptr], rcx } macro Record reg1 { mov rcx, [rbp+EH.debugptr] mov [rcx], reg1 add rcx, 8 mov [rbp+EH.debugptr], rcx } EhSolver: mov rcx, rdi mov rdx, rsi push r15 push r14 push r1...
bits 64 section .text extern asm_to_cxx_trampoline global bootstrap64 bootstrap64: ; From here on out, we are running instructions ; within the higher half (0xffffffff80000000 ... ) ; Load in the segment descriptor mov ax, 0x10 mov ds, ax mov es, ax mov ss, ax ; Allocate a stack ...
; CISP 310 - Michael Dinh ; Midterm 1 - Question 7 ; 11/01/2020 INCLUDE io.h .DATA ; program variables prompt BYTE "Enter a number.", 0 string BYTE 40 DUP (?) resultLb BYTE "The largest value was", 0 largest BYTE 11 DUP (?) .CODE MainProc PROC ; reserve stack space sub rsp, 120 ; si...
;;; ands (register) ;;; tst ;;; sf 1 1 0 | 0 0 1 0 | 0 N ;;; sf = 0 __0x62_ands: ret ;;; sf 1 1 0 | 1 0 1 1 | 1 ;;; where sf = 0 __0x6b_cmp: ret ;;; x 1 1 0 | 1 0 0 0 | 1 1 ;;; where x = 0 __0x6c_ldp: ret ;;; x 1 1 0 | 1 0 0 0 | 1 1 ;;; where x = 0 __0x6d_ldp: ret
%include "defs.asm" ;************************* memmove64.asm *********************************** ; Author: Agner Fog ; Date created: 2008-07-18 ; Last modified: 2016-11-16 (patched version with AVX512 support removed) ; Description: ; Faster version of the standard memmove function: ; void *...
.nds .relativeinclude on .erroronwarning on .open "ftc/arm9.bin", 02000000h ; Changes the game initialization code to load a new overlay (85) in addition to the ones in the original game. ; To fit our new code we need to make some space. We replace lines like ldr r4, =26h with mov r0, 26h so that a constant pool isn...
.byte $01 ; Unknown purpose .byte $25, $02, $02 .byte $FF ; Terminator
; 2e03.asm global main section .text main: nop mov al, 'd' ; on charge une lettre minuscule dans AL btr ax, 5 ; 'Bit Test and Reset(?)' sur bit #5 ; Seulement sur 16 ou 32 bits! -> AX nop ; ne fait rien ;fin ...
lfont_table: .db $07,$52,$03,$33,$50,$98,$49,$80,$40,$96,$49,$89,$92,$72,$00,$20 ; 0000 .db $91,$51,$11,$13,$4D,$80,$40,$91,$51,$8A,$8A,$64,$80,$40,$11,$11 ; 0010 .db $55,$95,$4A,$80,$48,$8C,$4E,$8C,$88,$60,$84,$0E,$1F,$2E,$4E,$80 ; 0020 .db $40,$80,$40,$8E,$CE,$9F,$4E,$64,$02,$45,$04,$24,$44,$94,$48,$80 ; 0030 .db $5...
#include p16f883.inc __config H'2007', 0x23F4 __config H'2008', 0X3EFF ERRORLEVEL -302 ; CONFIG1 ; 15 0 not used ; 14 0 not used ; 13 1 Debug not implemented ; 12 0 LVP not implemented 2 ; 11 0 Fail safe monitor disabled ; 10 0 IESO Disabled ; 9 1 Brown-out reset enabled...
; FunWithStack.asm ; By Abatchy ; ; nasm -felf32 FunWithStack.asm && ld -o FunWithStack FunWithStack.o && gdb ./FunWithStack ; --------------------------------------------------------------------------------------- global _start section .text _start: mov eax, 0xb00b1e5 ; (。 ㅅ 。) push ax ; (esp...
Name: set_bg2_usa.asm Type: file Size: 46345 Last-Modified: '2000-11-08T02:03:12Z' SHA-1: C59F77951DFEEA99B40B39BC11BCBEED33663675 Description: null
NOP ; 00 LD BC,1234H ; 01 3412 LD (BC),A ; 02 INC BC ; 03 INC B ; 04 DEC B ; 05 LD B,56H ; 06 56 RLCA ; 07 EX AF,AF' ; 08 ADD HL,BC ; 09 LD A,(BC) ; 0A DEC BC ; 0B INC C ; 0C DEC C ; 0D LD C,56H ; 0E 56 RRCA ; 0F DJNZ $ ; 10 FE LD DE,1234H ; 11 3412 LD (DE),A ; 12 INC DE ; 13 ...
;Writing assembly code is an art of composing instructions one after another ;bulshit kurrr żadna art japierpapier aaaaaaaaaaaaaaa bits 64 default rel global main extern printf extern scanf section .data fmt_intro db 'Enter the numbers (k, x): ', 0 fmt_i_k db 'i = %i, k = %i',10,0 fmt_sc...
Route2Gate_Object: db $a ; border block def_warps warp 4, 0, 3, LAST_MAP warp 5, 0, 3, LAST_MAP warp 4, 7, 4, LAST_MAP warp 5, 7, 4, LAST_MAP def_signs def_objects object SPRITE_SCIENTIST, 1, 4, STAY, LEFT, 1 ; person object SPRITE_YOUNGSTER, 5, 4, WALK, LEFT_RIGHT, 2 ; person def_warps_to ROUTE_...
user/_schedulertest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #define NFORK 10 #define IO 5 int main() { 0: 7139 addi sp,sp,-64 2: fc06 sd ra,56(sp) 4: f822 sd s0,48(sp) 6: f426 sd s1,40(sp...
section .text global centuryFromYear centuryFromYear: ; int centuryFromYear(int year) ; input: edi = year ; output: rax mov ecx,99 mov eax,ecx add eax,edi inc ecx ; ecx := 100 xor edx,edx div ecx ret
.CODE ; Literally the contents of RtlCaptureContext from ntoskrnl ArchCaptureContext PROC ; Floating point reigsters pushfq ; Low GP registers mov [rcx+078h], rax mov [rcx+080h], rcx mov [rcx+088h], rdx mov [rcx+0B8h], r8 mov [rcx+0C0h], r9 mov [rcx+0C8h], r10 mov [rcx+0D0h], r11 ; Low XMM Registers mov...
; factorial example for a number stored in dl org 100h mov al, 1 mov dl, 4 mov cx, dx l0: mul cl loop l0 hlt
;; BR 3392399 ; All of these should be the same value... %macro fp 1 %1 0.5 %1 5e-1 %1 0x1.0p-1 %1 0x0.8p0 %1 0x0.8 %1 0x8p-4 %1 0x.8 %1 0x1p-1 %1 0x0.1p3 %1 0x0.01p7 %1 0x0.01p7 %1 0x0.001p11 %endmacro fp do fp dt fp dq fp dd fp dw fp dd
; void zx_cls_fastcall(uchar attr) SECTION code_arch PUBLIC _zx_cls_fastcall _zx_cls_fastcall: INCLUDE "arch/zx/misc/z80/asm_zx_cls.asm"
Name: maths.asm Type: file Size: 2607 Last-Modified: '1992-12-16T01:18:50Z' SHA-1: 592947A8CD347CD63A2C2E4E650A191EAB80E555 Description: null
0x0000 (0x000000) 0x0400- f:00002 d: 0 | I = 0 0x0001 (0x000002) 0x0000- f:00000 d: 0 | PASS 0x0002 (0x000004) 0x2082- f:00020 d: 130 | A = OR[130] 0x0003 (0x000006) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007) ...
; Z80 source code for the ZX Protracker 3 player ; (from the Vortex Tracker 2 package) org 0x4000 ; z80dasm 1.1.2 ; command line: z80dasm --origin=49152 -l pt3_player.bin Release EQU "7" ld hl,MDLADDR jr pt3_init jp play jr mute setup: db 0 CrPsPtr: dw 0 ;Identifier db "=VTII PT3 Player r.",Release,"=" chec...
C nettle, low-level cryptographics library C C Copyright (C) 2005, Niels Möller C C The nettle library is free software; you can redistribute it and/or modify C it under the terms of the GNU Lesser General Public License as published by C the Free Software Foundation; either version 2.1 of the License, or (at your C...
lui $3, 203 lui $4, 203 beq $3,$4 next ori $5,123 ori $6,123 next: jal end ori $8,$31,0 ori $9,$31,0 end: ori $10,$31,0
; error processing ; controller errors ; 0 (1) no error ; 20 (2) can't find block header ; 21 (3) no synch character ; 22 (4) data block not present ; 23 (5) checksum error in data ; 24 (16) byte decoding error ; 25 (7) write-verify error ; 26 (8) write w/ write protect on ; 27 (9) checksum error in ...
# programa que pide y tres valores a b y c. Muestra pro pantalla si c esta entre a y b. o si no esta entre a y b. .data cadena1: .asciiz "Introduce el limite inferior: " cadena2: .asciiz "Introduce el limite superior: " cadena3: .asciiz "Introduce el valor: " cadena4: .asciiz "dentro" cadena5: .asciiz "fuera"...
// // This file is part of www.nand2tetris.org // // and the book "The Elements of Computing Systems" // // by Nisan and Schocken, MIT Press. // // File name: projects/07/MemoryAccess/BasicTest/BasicTest.vm // // // Executes pop and push commands using the virtual memory segments. // push constant 10 @10...
MODULE msx_crt0 defc crt0 = 1 INCLUDE "zcc_opt.def" EXTERN _main PUBLIC cleanup PUBLIC l_dcal PUBLIC msxbios defc CONSOLE_COLUMNS = 32 defc CONSOLE_ROWS = 24 defc __CPU_CLOCK = 3580000 IF (!DEFINED_startup || (startup=1)) INCLUDE "target/msx/classic/ra...
.386P .model FLAT ; ; d_draw16.s ; x86 assembly-language horizontal 8-bpp span-drawing code, with 16-pixel ; subdivision. ; include qasm.inc include d_if.inc if id386 ;---------------------------------------------------------------------- ; 8-bpp horizontal span drawing code for polygons, with no tra...
bits 64 section .text global load_gdt global read_tr global read_rsp read_tr: xor rax, rax str rax ret read_rsp: mov rax, rsp ret load_gdt: lgdt [rdi] mov ax, 0x43 ltr ax mov ax, 0x08 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax pop rdi mov rax, 0x10 push rax push rdi db 0x48 retf
; get applcation subwindow address from menu number section utility include win1_mac_oli include win1_keys_wwork include win1_keys_err xdef xwm_awadr ;+++ ; get applcation subwindow address from menu number ; ; Entry Exit ; d0.l menu subwindow nr ??? ; a3 subwindow wwork ; a4 wwork preserved ;--- xwm_a...
%include "defines.inc" section .bss fd_out resb 1 ; File descriptor is ID of file fd_in resb 1 buffer resb 30 section .data file_name db "test.txt", 0x0 msg_done db "Written to file", 0xA, 0xD len_done equ $ - msg_done msg_err db "File cannot be open!", 0xA, 0xD len_err equ $ - msg...
SECTION .text GLOBAL test test: pmuldq xmm0, xmm0 pmuldq xmm0, xmm1 pmuldq xmm0, xmm2 pmuldq xmm0, xmm3 pmuldq xmm0, xmm4 pmuldq xmm0, xmm5 pmuldq xmm0, xmm6 pmuldq xmm0, xmm7 pmuldq xmm0, xmm8 pmuldq xmm0, xmm9 pmuldq xmm0, xmm10 pmuldq xmm0, xmm11 pmuldq xmm0, xmm12 pmuldq xmm0, xmm13 pmuldq xmm0, xmm14 pmuldq xmm0, ...
b Lmain L0: sw $ra, ($sp) L1: lw $t1, -16($s0) sw $t1, -20($s0) L2: lw $t1, -12($sp) lw $t0, -4($sp) addi $t0, $t0, -16 lw $t0, ($t0) sw $t1, ($t0) L3: lw $ra, ($sp) jr $ra L4: sw $ra, ($sp) L5: li $t1, 2 sw $t1, -16($s0) L6: addi $fp, $sp, 16 lw $t0, -12($sp) sw $t0, -12($fp) L...
ALIGN 16 mode0d db 256 dup(0) mode0e db 256 dup(0) mode13 db 256 dup(0) vid_oldint dd 0 vid_curmode dw -1 vid_intti PROC NEAR cmp ah,0fh je @@f cmp ah,0 je @@1 @@nn: jmp cs:vid_oldint @@f: cmp cs:vid_curmode,-1 je @@nn mov ax,cs:vid_curmode mov ah,40 mov bh,0 iret @@1: nop ; cmp al,13h ...
; ; File: asm_main.asm ; Name: Angel Acosta ; Email: acostaa126247@student.vvc.edu ; Description: Multiply each element in the array. %include "asm_io.inc" ; ; initialized data is put in the .data segment ; segment .data array dw 1,2,3,4,5 ; uninitialized data is put in the .bss segment ; segment .bss ; ; code is ...
obj/user/softint: file format elf32-i386 Disassembly of section .text: 00800020 <_start>: // starts us running when we are initially loaded into a new environment. .text .globl _start _start: // See if we were started with arguments on the stack cmpl $USTACKTOP, %esp 800020: 81 fc 00 e0 bf ee cmp $0x...
; --------------------------------------------------------------------------- ; Object 61 - blocks (LZ) ; --------------------------------------------------------------------------- LabyrinthBlock: moveq #0,d0 move.b obRoutine(a0),d0 move.w LBlk_Index(pc,d0.w),d1 jmp LBlk_Index(pc,d1.w) ; =====================...
; =============================================================== ; --------------------------------------------------------------- ; Error handling and debugging modules ; 2016-2017, Vladikcomper ; --------------------------------------------------------------- ; String formatters : Decimal number ; -----------------...
PewterHouse2_h: db HOUSE ; tileset db PEWTER_HOUSE_2_HEIGHT, PEWTER_HOUSE_2_WIDTH ; dimensions (y, x) dw PewterHouse2Blocks, PewterHouse2TextPointers, PewterHouse2Script ; blocks, texts, scripts db $00 ; connections dw PewterHouse2Object ; objects
[bits 32] %define ERROR_CODE nop %define ZERO push 0 ;extern put_str extern idt_table section .data global intr_entry_table intr_entry_table: %macro VECTOR 2 section .text intr%1entry: %2 push ds push es push fs push gs pushad mov al,0x20 out 0xa0,al out 0x20,al push %1 call [idt_table+%1*4] jmp intr_e...
.gba .create "out.bin",0 .area 0x8 .fill 0x8 .close .endarea .macro myopen,offset .open "out2.bin",offset .endmacro .area 0x8 myopen 4 .endarea .close
; Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. ; ; This file is part of the GNU MP Library. ; ; The GNU MP Library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either versi...
.section .text .global __alltraps .intel_syntax noprefix __alltraps: push rax push rcx push rdx push rdi push rsi push r8 push r9 push r10 push r11 push rbx push rbp push r12 push r13 push r14 push r15 # push fs.base xor rax, rax mov ecx, 0xC000...
section .text align=64 foo: nop nop nop ret section .data align=64 bar: db 0, 1, 2 section .text align=32 baz: nop nop nop ret
; @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2 ; @license MIT ; @version 0.0.1 section .data a11 db 32 section .bss z11 resb 3 section .text global _start _start: mov rax,200 call itoa mov rax,60 xor rdi,rdi syscall itoa: mov r14,1 mov rbx,rax mov r15,0 mov r8,48 mov [...
.include "punkpc.s" punkpc ppc # Special Hitbox Angle: 367 v2.1.0 # authors: @["sushie"] # description: Pulls victims towards the center of collided hitbox and adjusts launch speed gecko 2147924120 regs (r31), rFighterData lbz r0, 11084(rFighterData) rlwinm. r0, r0, 0, 16 beq OriginalExit_8006BE00 prolog xTempCurrentFr...
addi r1 r0 80 sw r0 8(r0) tty r1 halt #should print nothing :)
.section .text.entry .globl _start # 目前 _start 的功能:将预留的栈空间写入 $sp,然后跳转至 rust_main _start: la sp, boot_stack_top call rust_main # 回忆:bss 段是 ELF 文件中只记录长度,而全部初始化为 0 的一段内存空间 # 这里声明字段 .bss.stack 作为操作系统启动时的栈 .section .bss.stack .global boot_stack boot_stack: # 16K 启动栈大小 .space 4096 * 1...
; int sscanf(const char *s, const char *format, ...) SECTION code_clib SECTION code_stdio PUBLIC sscanf EXTERN asm_sscanf defc sscanf = asm_sscanf
!ifndef is_main !eof ; "Data Rain" ; Original song by Vincent Foulon m_datarain: !byte N_RTM, 12 !byte N_INS, 0, I_SHORT_PULSE !byte N_INS, 1, I_TINY_SAW !byte N_INS, 2, I_LONG_PULSE !byte N_INS, 3, I_TINY_SAW m_datarain_1: !byte N_VOI, 2 !byte N_JMS, <m_datarain_s1, >m_datarain_s1 !by...
;------------------------------------------------------------------------------ ; @file ; Intel TDX routines ; ; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ %d...
; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --implicit-check-not=error: .code t1: ; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number mov eax, 120b ; CHECK: :[[# @LINE + 1]]:10: error: invalid binary number mov eax, 120y .radix 11 ; CHECK: :[[# @LINE + 1]]:10: error: invalid base-11 nu...
; Calling a subroutine in 64-bit mode (CallProc_64.asm) extrn ExitProcess: PROC .code main proc sub rsp,8 ; align the stack pointer sub rsp,20h ; reserve 32 bytes for shadow parameters mov rcx,1 ; pass four parameters, in order mov rdx,2 mov r8,3 mov r9,4 call AddFour ; lo...
.MODEL SMALL .STACK 100H .DATA MSD DB "ACCIE$" .CODE MAIN PROC MOV AX,@DATA MOV DS,AX LEA DX,MSD MOV AH,9 INT 21H MOV DL,0DH INT 21H MOV AH,2 MOV CX,256 MOV DL,0 PRINT_TUCK: INT 21H INC DL DEC CX JNZ PRINT_TUCK MOV AH,4CH INT 21H MAIN ENDP END MAIN
; ; Allow selection of the library functions at linktime ; ; Included by crt0 files ; ; scanf format picker ; Compatibility with the new library format picker. The classic library ; implements several of these together so there's an element of grouping. ; ; Default is to enable all converters except for float. ; ; ...
nop nop mov a0, #42 mov a1, #33 mov a2, #0 add a2, a0 add a2, a1 mov a2, #0 add a2, a0 sub a2, a1 mov a2, #0 add a2, a0 mov @a1, a1 mov a2, @a1 adc a2, @a1 mov a2, #0 add a2, a0 asr a2 mov a2, #0 add a2, a0 or a2, #10 st a2, 7E20h inc 7E20h ld a2, 7E20h
copyright zengfr site:http://github.com/zengfr/romhack 003DAC move.b #$3, ($3f,A3) [enemy+3C] 003DB2 tst.w ($18,A3) [enemy+3F] 007340 move.b ($b,A2), ($3f,A3) [boss+16, enemy+16] 007346 bmi $746c [boss+3F, enemy+3F] 00738A move.b ($b,A2), ($3f,A3) [enemy+16] 007390 bmi $746c [enemy+3F] 0073D8 move.b...
section .data ; standard constants LF equ 10 NULL equ 0 TRUE equ 1 FALSE equ 0 EXIT_SUCCESS equ 0 STDIN equ 0 ;standard input STDOUT equ 1 ; standard output STDERR equ 2 ; standard error SYS_read equ 0 SYS_write equ 1 SYS_open equ 2 SYS_close equ 3 SYS_fork equ 57 SYS_exit equ 60 SYS_creat equ 85 SYS_time equ 201 ;...
section .init ; crtend.o .init pop rbp ret section .fini ; crtend.o .fini pop rbp ret
;L0106.asm ;Abe Pralle 3.4.2000 INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" STATE_TALKED EQU 2 ;--------------------------------------------------------------------- SECTION "LevelsSection0106",ROMX ;--------------------------------------------------------------------- dialog: L0106_heysonny_gtx: INCBIN...
GLOBAL _zerodiv GLOBAL _invalidOpcode section .text _zerodiv : mov rax,0 div rax ret _invalidOpcode : ud2 ret
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: Config MODULE: FILE: uiNoGraphicsText.asm AUTHOR: Andrew Wilson, Dec 14, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Dat...
; ; feilipu, 2020 January ; ; 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/. ; ;------------------------------------------------------------------------------ ; ; Usi...
; Language Preference V2.00  1986 Tony Tebby section sms xdef sms_pref include 'dev8_keys_sys' include 'dev8_keys_ldm' include 'dev8_mac_assert' ;+++ ; Find preferred language dependent module ; ; d0 c s module type required LSW, group MSW ; d1 c p language number required or 0 ; d2 c p language name ...
@7 D=A @0 A=M M=D @0 M=M+1 @8 D=A @0 A=M M=D @0 M=M+1 @0 M=M-1 A=M D=M @0 M=M-1 A=M D=D+M M=D @0 M=M+1 (END) @END 0;JMP
include 'emu8086.inc' print "Enter a Uppercase Letter: " mov ah,1 int 21h sub al,'A'' add al,'a' printn "" print "Lower Case: " mov ah,2 mov dl,al int 21h
; -Wall and -Wno-all test OPT -Wall ; enable all extra warnings abs: ld hl,abs DEVICE ZXSPECTRUMNEXT, $8000 DEVICE NOSLOT64K, $8000 DEVICE ZXSPECTRUM48, $8000 : DEVICE ZXSPECTRUM48, $8001 DISP 123 : ORG 345 : ENT ORG 123, 0 IF fwd_ref_label : ENDIF ; it's W_EARLY warning, emitted b...
ldi $s0, 100 ldi $s1, 512 or $s0, $s1 wp $rr, 3 ldi $s0, 100 ldi $s1, 1024 or $s0, $s1 wp $rr, 3 ldi $s0, 2 ldi $s1, 1536 or $s0, $s1 wp $rr, 3 ldi $s0, 200 ldi $s1, 2560 or $s0, $s1 wp $rr, 3 ldi $s0, 200 ldi $s1, 2560 or $s0, $s1 wp $rr, 3 ldi $s0, 200 ldi $s1, 3072 or $s0, $s1 wp $rr, 3 ldi $...
; 6x8 bitmap font by Oleg Kosenkov ; Source: https://github.com/idispatch/raster-fonts/blob/master/font-6x8.c ; code=0, hex=0x00, ascii="^@" defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000...
; int p_forward_list_alt_empty(p_forward_list_alt_t *list) SECTION code_clib SECTION code_adt_p_forward_list_alt PUBLIC _p_forward_list_alt_empty EXTERN _p_forward_list_empty defc _p_forward_list_alt_empty = _p_forward_list_empty
section .data znak db "",0 section .text global _start: _start: mov rax, 3 mov rbx, 0 mov rcx, znak mov rdx, 1 int 80h cmp byte [znak], "k" jne _start mov rax, 1 mov rbx, 0 int 80h
; Moving around 8 bit and 16 bit subsections of eax, ebx, and ecx ; Swap 32, then 16, then upper 8, then lower 8 bit registers SECTION .data SECTION .text global _start _start: nop mov eax,0h mov ebx,0ffffffffh xchg eax,ebx xchg ax,bx xchg ah,bh xchg al,bl mov eax,1 ; Code for ...
lui $1,5982 ori $1,$1,36320 lui $2,35431 ori $2,$2,5181 lui $3,52919 ori $3,$3,63700 lui $4,14611 ori $4,$4,3086 lui $5,53179 ori $5,$5,43137 lui $6,21540 ori $6,$6,37227 mthi $1 mtlo $2 sec0: nop nop nop bgtz $4,yes0 nop no0:addiu $k1,$k1,1 yes0:addiu $k0,$k0,1 sec1: nop nop sltu $4,$3,$6 bgtz $4,yes1 nop n...
;TASM program to add 2 16-bit numbers .model Small .data ;s1 dw 13, 10, "Enter 1st no", '$' ;s2 dw 13, 10, "Enter 2nd no", '$' s1 dw 0111h s2 dw 0234h s3 db 13, 10, "Answer", '$' num dw ? .code mov ax, @data mov ds, ax main proc extrn readsint :near, writesint :near ;io.asm ; lea dx, s1 ; mov ah, 09h ; int 21h ; ca...
; Expand line of BASIC  1992 Tony Tebby section sbas xdef sb_expnd ; QL compatibility vector xdef sb_expln xdef sb_list xdef sb_lista xref sbp_keyt xref sbp_symt xref sbp_opt xref sbp_mont xref sbp_sept xref sb_lfind xref sb_rar32 xref gu_smul xref cr_fpdec xref cr_iwdec xref cr_ilhex xref cr_...
Name: Round-j.asm Type: file Size: 10233 Last-Modified: '1992-07-14T23:56:58Z' SHA-1: 2939724A81177999D19A3CDA64AFB917DB003EEB Description: null
C x86_64/memxor3.asm ifelse(< Copyright (C) 2010, 2014 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either v...
bipush 21 istore x bipush 12 rep bipush 3 iadd istore y iload y iload x if_icmpeq fim iload y goto rep fim nop
growth_rate: MACRO ; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5] dn \1, \2 if \3 < 0 db -\3 | $80 ; signed magnitude else db \3 endc db \4, \5 ENDM GrowthRateTable: ; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm) table_width 4, GrowthRateTable growth_rate 1, 1, 0, 0, 0 ; Medium F...
%include "includes/io.inc" extern getAST extern freeAST section .bss; La aceasta adresa, scheletul stocheaza radacina arborelui root: resd 1 section .text; evaluate expresion eval: push ebp mov ebp, esp xor ecx, ecx xor ebx, ebx mov ecx, [ebp+8] ; operatia din root mov eax, [ecx+4] ...
#DEFINE equ .equ #DEFINE EQU .equ #define bcall(xxxx) rst 28h \ .dw xxxx _VPutMap EQU 455Eh _SFont_Len EQU 4786h _CreateAppVar EQU 4E6Ah _LoadPattern EQU 4CB1h ;A=char, fracDrawLFont,(iy+fontFlags): 1=large,0=small _GrBufClr EQU 4BD0h _GrBufCpy EQU 486Ah _ChkFindSym EQU 42F1h _DelVarArc EQU 4FC6h _ClrLCDFull EQU 4...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. default rel %define XMMWORD %define YMMWORD %define ZMMWORD %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif section .text code align=64 global CRYPTO_rdrand ALIGN 16 CRYPT...
name 'Q3-addition' .model small .data val1 db ? val2 db 23 str1 db 0ah,0dh ,"val1= (-al+bl)-val2=> $ " .code mov ax ,DATA mov ds,ax ;calculation mov al,17 mov bl,29 sub bl,al sub bl,val2 mov val1,bl ;print mov ah,02h mov dl,va...
LCHeartQ label byte word C_BLACK Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK> db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0 db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0 db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc db 0x01, 0xd0, 0x0f, 0xe1, 0xff, 0x01, 0x00, 0xd0 db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc db...
#include "Platform.inc" #include "FarCalls.inc" #include "TailCalls.inc" #include "../Smps.inc" #include "../Adc.inc" #include "Motor.inc" #include "States.inc" radix decimal MOTOR_TRIS_MASK equ (1 << MOTOR_VDD_EN_PIN_TRIS) | (1 << MOTOR_PWMA_PIN_TRIS) | (1 << MOTOR_PWMB_PIN_TRIS) MOTOR_PORT_MASK equ (1 << MO...
; Comparing Strings (Compare.asm) ; This program tests the Str_compare procedure, ; which compares two null-terminated strings. INCLUDE Irvine32.inc Str_compare PROTO, string1:PTR BYTE, string2:PTR BYTE .data string_1 BYTE "ABCDEFG",0 string_2 BYTE "ABCDEFG",0 string_3 BYTE 0 str...
;-------------------------------------------------------------- ; Part of this code comes from the 'HRG_Tool' ; by Matthias Swatosch ;-------------------------------------------------------------- PUBLIC pixeladdress EXTERN base_graphics ; ; $Id: pixladdr.asm,v 1.5 2015/01/19 01:32:52 pauloscustodio Exp $ ; ; *...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: commom print driver routines FILE: rotate8Back.asm AUTHOR: Dave Durran 28 Feb 1992 ROUTINES: Name Description ---- ----------...
SECTION code_driver PUBLIC asm_lcd_get_vram_addr EXTERN LCD_VRAM EXTERN CONSOLE_ROWS EXTERN CONSOLE_COLUMNS ; Get the address of the char location in the VRAM ; Entry: c = x ; b = y ; Exit: hl = vram address ; ; Preserves: de asm_lcd_get_vram_addr: push de ld hl,LCD_VRAM - CONSOLE_COLUMNS ld de,CONSOLE_...
COMMENT @----------------------------------------------------------------------- Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: formatMain.asm AUTHOR: Cheng, 4/92 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ...
; 0112 - STA Indirect Plus Y .segment "VECTORS" .word $eaea .word init .word $eaea .segment "ZEROPAGE" .word $3000 ; Location of number, y gets added to this .code init: sta ($00),y ; Positive non-zero number case, memory location doesn't wrap zero page. y will be $01. sta ($00),y ; Zero number case, mem...
;; ;; Upcaste Performance Libraries ;; Copyright (C) 2012-2013 Jesse W. Towner ;; ;; 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 limitatio...
; ; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD"). ; ; This library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either version 2.1 of the ; License, or (at your option) any lat...