content
stringlengths
23
1.05M
PAGE 58,132 ;****************************************************************************** TITLE SHADOW.ASM - Windows/386 NETBIOS SHADOW FOR REMOTE NETWORK ACCESS ;****************************************************************************** ; ; (C) Copyright MICROSOFT Corp., 1987-1993 ; ; Title: SHADOW.AS...
;+---------------------------------+ ;| ROUTINES - Video | ;+---------------------------------+ [bits 32] %define VIDMEM 0xB8000 ; Video memory address %define COLUMNS 80 %define ROWS 25 %define CHAR_ATTRIB 00000111b ; White in black CurX: db 0 CurY: db 0 ClrScreen: pusha ...
;; ;; Copyright (c) 2020, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the ...
section .data Number: db 42 section .bss StringBuffer: resb 32 section .text global _start EXTERN printText, printNewline, convertNumberToString, binaryLog, numberToBinaryString _start: nop mov al, [Number] mov rbx, StringBuffer call numberToBinaryString mov rcx, StringBuffer mov rdx, 32 call printText ...
.const u64 struct Lo dd ? Hi dd ? u64 ends .data ;/* S boxes */ TigerK1 label qword dq 002AAB17CF7E90C5Eh, 0AC424B03E243A8ECh, 072CD5BE30DD5FCD3h, 06D019B93F6F97F3Ah dq 0CD9978FFD21F9193h, 07573A1C9708029E2h, 0B164326B922A83C3h, 046883EEE04915870h dq 0EAACE3057103ECE6h, 0C54169B808A3535Ch, 04CE754918DDEC47Ch, 00AA2...
section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db 'Hello, world!',0xa len equ $ - msg
_LavenderMartText2:: text "I'm searching for" line "items that raise" cont "the abilities of" cont "#MON during a" cont "single battle." para "X ATTACK, X" line "DEFEND, X SPEED" cont "and X SPECIAL are" cont "what I'm after." para "Do you know where" line "I can get them?" done _LavenderMartReviveText::...
SECTION code_fp_math16 PUBLIC _mul2f16 EXTERN cm16_sdcc_mul2 defc _mul2f16 = cm16_sdcc_mul2
;File name hello.asm .MODEL SMALL .DATA mes db 'HelloWorld$' .STACK 100H .code MAIN PROC mov ax,@DATA mov ds,ax mov dx,offset mes mov ah,09h int 21h mov ax,4c00h int 21h MAIN ENDP END MAIN
; ; MicroChess ; (c) 1996-2002 Peter Jennings, peterj@benlo.com ; ; modified by Daryl Rictor to work over a serial terminal connection, August 2002. ; ; BOARD = $50 BK = $60 PIECE = $B0 SQUARE = $B1 SP2 = $B2 SP1 = $B3 INCHEK = $B4 STATE = $B5 MOVEN = $B6 REV = ...
#include "Platform.inc" radix decimal IsMotorVddEnabledDummy code global isMotorVddEnabled isMotorVddEnabled: retlw 0 end
; Copyright (c) 2021 github.com/System233 ; ; This software is released under the MIT License. ; https://opensource.org/licenses/MIT global x64call_exec global _x64call_exec global x64call_strcmp global _x64call_strcmp global x64call_isin32 global _x64call_isin32 global x64call_dlsym gl...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; Test32RR2 mov edi, 0x8 mov eax, 0x12 ;TEST_BEGIN_RECORDING test edi, eax ;TEST_END_RECORDING
; size_t ftog(float x, char *buf, uint16_t prec, uint16_t flag) SECTION code_clib SECTION code_stdlib PUBLIC ftog_callee EXTERN dtog_callee defc ftog_callee = dtog_callee
[bits 32] ; Define some constants VIDEO_MEMORY equ 0xb8000 WHITE_ON_BLACK equ 0x0f ; prints a null-terminated string pointed to by EDX print_string: pusha mov edx, VIDEO_MEMORY ; Set edx to the start of vid mem. .loop: mov al, [ebx] ; Store the char at EBX in AL mov ah, WHITE_ON_BLACK ;...
main.elf: file format elf32-avr Disassembly of section .text: 00000000 <__vectors>: __vectors(): ../../../../crt1/gcrt1.S:52 0: 0c 94 46 00 jmp 0x8c ; 0x8c <__ctors_end> ../../../../crt1/gcrt1.S:53 4: 0c 94 50 00 jmp 0xa0 ; 0xa0 <__bad_interrupt> ../../../../crt1/gcrt1.S:54 8: 0c 94 50 00 jmp 0xa0 ;...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_FPU_PE|FLAG_FPU_C1 ;TEST_FILE_META_END ; set up st0 to be 3.141593 FLDPI ;TEST_BEGIN_RECORDING lea rdi, [rsp-08] mov dword [rdi], 0x00000001 FIDIVR dword [rdi] mov edi, 0 ;TEST_END_RECORDING
; unsigned char esx_f_stat(unsigned char *filename,struct esx_stat *es) INCLUDE "config_private.inc" SECTION code_esxdos PUBLIC asm_esx_f_stat EXTERN error_znc EXTERN __esxdos_error_mc asm_esx_f_stat: ; enter : hl = char *filename ; de = struct esx_stat *es ; ; exit : success ; ; ...
; nasm -f bin bindsckcode2.asm ;open listener, bind stdin, stdout, stderr to connected sock ;syscall eax ebx,ecx,edx ;----------- ---- --------------------------------------------------------------- ;socketcall x066 socket=1,->[AF_INET=2,SOCK_STREAM=2,prot=0] ;socketcall x066 bind=2,->[sfd,->sadr=[0xff,2,hi,lo,...
PushD argument1 // [] -> [&arg1] LoadI // [&arg1] -> [arg1] PushD argument2 // [arg1] -> [arg1 &arg2] LoadI // [arg1 &arg2] -> [arg1 arg2] Multiply // [a1 a2] -> [a1*a2] PushD integer-format-string // [val] -> [val fmtStr] (where val = a1*a2) Printf // [val fmtStr] -> [] PushD newli...
TITLE txtmove.asm - Contains text manager's text movement functions ;====================================================================== ; Module: txtmove.asm - Contains text manager's text movement functions ; ; --------- --- ---- -- ---------- ---- ; COPYRIGHT (C) 1985 BY MICROSOFT, INC. ; --------- --- ---- -- ...
;=============================================================================== ; Copyright 2015-2019 Intel Corporation ; All Rights Reserved. ; ; If this software was obtained under the Intel Simplified Software License, ; the following terms apply: ; ; The source code, information and material ("Material") co...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. include <AsmMacros.inc> include AsmConstants.inc extern PreStubWorker:proc extern ProcessCLRExceptio...
; void *tshc_aaddrcup(void *saddr) SECTION code_clib SECTION code_arch PUBLIC tshc_aaddrcup EXTERN zx_saddrcup defc tshc_aaddrcup = zx_saddrcup
; FREE_FMFM AND ALFM keywords 1.00 (c) W. Lenerz 2017 ; 2018-12-10 1.01 make sure mem request is even (wl) - thanks to Martyn Hill. section procs xdef alfm xdef free_fmem xref ut_rtfd1 xref ut_gxin1 include dev8_keys_q68 include dev8_keys_err include dev8_keys_sbasic free_fmem lea ut_rtfd1,a2 ; float &...
SECTION code_fp_math48 PUBLIC cm48_sccz80p_dread1, cm48_sccz80p_dread1b EXTERN am48_dload, am48_dloadb ; read float from address in HL ; ; enter : hl = double * (math48 format) ; ; exit : AC' = double ; ; uses : af, bc, de, hl, EXX set active defc cm48_sccz80p_dread1 = am48_dload defc cm...
[bits 32] section .init global _init _init: push ebp mov ebp, esp section .fini global _fini _fini: push ebp mov ebp, esp
.segment "ZEROPAGE" nmi_ready: .res 1 palette_init: .res 1 scroll_y: .res 1 .segment "CODE" nmi: pha ; make sure we don't clobber the A register lda nmi_ready ; check the nmi_ready flag bne nmi_go ; if nmi_ready set to 1 we can execute the nmi code pla ...
; File: machine_low.asm ; ; Low level CPU handling functions. ; ; September 3, 2012 ; ---------------------------------------------------------------------- ; get_EFLAGS() ; ; Returns value of the EFLAGS status register. ; ; ---------------------------------------------------------------------- global _get_EFLAGS ; ...
; ; ; ; ; ; ; ; ; ; ; ; ; ; If the player has less than the customizable amount of coins, Guardian displays selected message ; and flings the player away with a sound. If the player has enough, Guardian takes that many coins ; away, plays "correct" sound, displays selected message, and allows access to blocked passagew...
bits 64 ; set architecture global strcspn:function ; export strcspn / RDI RSI s + reject parameters strcspn: xor RAX, RAX ; set result to 0 in case of non-match cmp RDI, 0 ; check if pointer null je .end .loop: ; lo...
; Making sure code blocks that look identical, but jump outside of themselves ; are not merged. loop: jr loop f1: jr z, f1sub or 1 f1skip: inc a ret f1sub: ld a, 2 or a jr z, f1skip inc a ret f2: jr z, f2sub or 2 f2skip: dec a ret f2sub: ld a, 2 or a j...
;------------------------ ; Boot loader messages ;------------------------ msg_real_mode: db "Started in 16-bit Real Mode", 0 msg_prot_mode: db "Successfully Switched into 32-bit Protected Mode", 0 msg_loading_kernel: db "Loading kernel from disk...", 0 msg_read_error: db "Error rea...
/* * c64lib/text/tiles-screen-shift.asm * * A library that supports drawing and 4-directional scrolling of 2x2 tile map using text modes * of VIC-II. All three text modes are supported. * * Color limitations: * - color RAM is configured per 2x2 tile * * Author: Maciej Malecki * License: MIT * (c): ...
; BIOS will load this to address 7c00 [org 0x7c00] mov ah, 0x0e mov al, [my_character] int 0x10 my_character: db 'X' jmp $ times (510-($-$$)) db 0 db 0x55, 0xaa
;; Blacklight OS standard input functions ;; (c) 2011 Troy Martin ; Blacklight OS is licensed under the Simplified BSD License (see license.txt) ; http://www.opensource.org/licenses/bsd-license.php ; IN: AX=array, BX=maximum number of characters to take ; OUT: AX=string, CX=total characters direct_input: push...
; ; Keyboard routines for the Robotron VEB KC85/2,3,4 ; ; By Stefano Bodrato - Oct. 2016 ; ; getk() Read key status ; ; ; $Id: getk.asm,v 1.2 2016-10-10 07:09:14 stefano Exp $ ; SECTION code_clib PUBLIC getk PUBLIC _getk INCLUDE "target/kc/def/caos.def" .getk ._getk ld ix,$1f0 ; ld l,0 call PV1 def...
; SMSQmulator Sampled Sound System v.2.03 ; based on ; Q40 SMSQ Sampled Sound System V2.00  1999 Tony Tebby ; 2.04 better way to get the size of sample in the queue. ; 2.03 totally revamped. I don't use the pointer any more, really, ; the data just gets shoved to java ; 2.02 2016 Oct 24 better way to kill...
1231: 55 push rbp 1232: 48 89 e5 mov rbp,rsp 1235: 48 83 ec 50 sub rsp,0x50 1239: 48 89 70 34 mov QWORD PTR [rbp-0x38],rdi 123d: 48 89 7b 4f mov QWORD PTR [rbp-0x40],rsi 1241: 48 89 55 b8 mov QWORD PTR [rbp-0x4...
; size_t w_vector_erase_range(w_vector_t *v, size_t idx_first, size_t idx_last) SECTION code_clib SECTION code_adt_w_vector PUBLIC w_vector_erase_range_callee EXTERN w_array_erase_range_callee defc w_vector_erase_range_callee = w_array_erase_range_callee
; ZEP1.ASM : [SwanSong] by [pAgE] ; Created wik the Phalcon/Skism Mass-Produced Code Generator ; from the configuration file skeleton.cfg .model tiny ; Handy directive .code ; Virus code segment org 100h ; COM file starting IP...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 93 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %74 OpExecutionMode %4 OriginUp...
INSERT_SORT PROC ;use bx and si as input and sort the string pointed by si PUSH DI PUSH SI PUSH CX PUSH DX PUSH BX DEC BX MOV DI,1H INSERT: ;main loop which runs untill string is sorted MOV DL,STRING[DI] MOV SI,DI WHILE_: ;sorts a portion of string CMP SI,0H JE NEXT2 ...
lxi H, FF00H ;Counter mov B, M inx H lxi D, FF24H loop: mov A, M stax D inx H dcx D dcr B jnz loop mov A, B stax D hlt
TITLE Demonstrate the AddTwo Procedure (AddTwo.asm) ; Last update: 8/30/01 INCLUDE Irvine32.inc .data sum DWORD ? .code main PROC call MySub ; Restore the stack after the call. ; This is what C/C++ programs do: call DumpRegs push 5 push 6 call AddTwo2 add esp,8 call DumpRegs INVOKE ExitProcess,0 mai...
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;;; ;;; 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...
RocketHideout4Script: call EnableAutoTextBoxDrawing ld hl, RocketHideout4TrainerHeader0 ld de, RocketHideout4ScriptPointers ld a, [wRocketHideout4CurScript] call ExecuteCurMapScriptInTable ld [wRocketHideout4CurScript], a ret RocketHideout4Script_45510: CheckAndResetEvent EVENT_6A0 call nz, RocketHideout4Scri...
.text lui $4,0x0002 lui $3,0x0001 addi $1,$0,1 addi $7,$0,0 inicio: lb $5,3($4) nop nop nop beq $5,$1,led1 lb $5,2,($4) nop nop nop beq $5,$1,led2 lb $5,1($4) nop nop nop beq $5,$1,led3 beq $0,$0,inicio led1: addi $7,$0,1 sb $1,1($3) j mantener led2: addi $7,$0,2 sb $1,2($3) j mantener led3: addi $7,$0,3 sb $1,3($3) m...
SECTION .text GLOBAL test test: pmullw xmm0, xmm0 pmullw xmm0, xmm1 pmullw xmm0, xmm2 pmullw xmm0, xmm3 pmullw xmm0, xmm4 pmullw xmm0, xmm5 pmullw xmm0, xmm6 pmullw xmm0, xmm7 pmullw xmm0, xmm8 pmullw xmm0, xmm9 pmullw xmm0, xmm10 pmullw xmm0, xmm11 pmullw xmm0, xmm12 pmullw xmm0, xmm13 pmullw xmm0, xmm14 pmullw xmm0, ...
.include "myTiny13.h" .equ LED,0 .equ TASTER,1 ;irq Vector .org 0x0000 rjmp Main .org 0x0010 Main: sbi DDRB,LED ; output cbi DDRB,TASTER ; input mainLoop: sbic PINB,TASTER ; skip toggle, if Taster is set rcall ToggleLED rjmp mainLoop ; alarm active (C=1) but Cable still connected ; subroutine ToggleLED...
_op_plus: pcall(fpAdd) ret _op_subtract: pcall(fpSub) ret _op_unary_plus: _op_unary_minus: _op_logical_not: _op_multiply: _op_divide: _op_modulo: _op_less_or_equal: _op_greater_or_equal: _op_less_than: _op_greater_than: _op_equal_to: _op_not_equal_to: _op_logical_and: _op_logical_or: ; TODO re...
SECTION code_clib SECTION code_stdlib PUBLIC __dtoa_print EXTERN __stdio_printf_sign_0, __dtoa_print_zeroes __dtoa_print: push hl ; save buf_dst ; bc = length of workspace ; de = workspace * ; hl = char *buf_dst ; ; (IX-...
; A283810: Numbers of variables for which the Shapiro inequality holds. ; 3,4,5,6,7,8,9,10,11,12,13,15,17,19,21,23 mov $2,$0 sub $2,4 mov $1,$0 mov $0,1 sub $2,6 add $1,$2 add $1,$0 lpb $0,1 sub $0,1 add $1,2 lpe
.data str: .asciiz "DWSE MOU ENAN ARITHMO\n" str1: .asciiz "GRAMMES: " str2: .asciiz "STHLES: " .text .globl main main: li $v0, 4 la $a0, str syscall li $v0,5 syscall la $a1, ($v0) li $v0, 4 la $a0, str syscall li $v0,5 syscall la $a2, ($v0) li $t1, 0 la $t2, ($a1) li $t4, 0 la $t5, ($a2) li $v0, 4 la $a0,...
-- 7 Billion Humans (2053) -- -- 48: Community Training Day -- -- Author: soerface -- Size: 6 -- Speed: 7 comment 0 if n != wall: listenfor go endif takefrom s mem1 = nearest shredder giveto mem1 tell everyone go DEFINE COMMENT 0 eJztj8FKQlEURde4iUSDQIwcNJAI8UlEREWEiEhDB9EgIvUlUSEvqpelbRpEA4lo1Ff0BX1BIwfS97S9 /kW4...
db "BONEKEEPER@" ; species name dw 303, 990 ; height, weight db "Somewhere in the" next "world is a ceme-" next "tery just for" page "MAROWAK. It gets" next "its bones from" next "those graves.@"
;----------------------------------------------------------- ; Filename: mouse_p1.asm ; Long name: Mouse routines for app page 1 ; Author: Kerm Martian aka Christopher Mitchell ; Last Update: Unknown ; ; Tab functions, mouse hook for GUI, InfoPop and MemoryPop-related ; code, and similar. ; ;Please consult license...
; Aula 02 - Estrutura dos Programas ; herdado de Aula 01 ; helloB.asm ; nasm -f elf64 helloB.asm ; ld helloB.o -o helloB.x section .data strOla : db "Ola", 10 strOlaL: equ $ - strOla section .text ; global _start mov rax, 60 mov rdi, 0 syscall _start: mov rax, 1 mov rdi, 1 lea...
section .data msg resb 32 db 10 hex_nums db '0123456789ABCDEF' xb dq 0FF0FEFCE5A07E1CBh , 0EC0ACFBD7107A1BBh xx resq 2 length dw 16 a1 equ 0 a2 equ 0 a3 equ 1 a4 equ 0 a equ a1 | (a2 << 2) | (a3 << 4) | (a4 << 6) section .text global main main: movdqu xmm1, [xb] pshufd xmm0, xmm1, a movdqu [xx], xmm0 ...
section .data text1 db "What's your name? " text2 db "Hello, " section .bss name resb 16 section .text global _start _start: call _printText1 call _getName call _printText2 call _printName mov rax, 60 ; sys_exit mov rdi, 0 ; return code syscall _getName: mov rax, 0 ; user input mov rdi, 0 mov rsi, ...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; Sbb32RR1 mov ecx, 0x1892 mov edx, 0x4 ;TEST_BEGIN_RECORDING sbb edx, ecx ;TEST_END_RECORDING
.data dqSendPacketFunction dq 0 dqSendActionFunction dq 0 .code MoveSendPacketAddress PROC mov dqSendPacketFunction, rcx ret MoveSendPacketAddress ENDP SetSendActionAddress PROC mov dqSendActionFunction, rcx ret SetSendActionAddress ENDP SendPacket PROC ; RCX = SendClass //CHECK THIS, IT MAY S...
PUBLIC txtoutput ; fastcall .txtoutput ld a, l jp 0xB833
SECTION "NintendoLogo", ROM0[$0104] DS 48, $00 SECTION "Title", ROM0[$0134] ; 01234567 DB "BUSTFREE" DS 8, $00 SECTION "NewLicenseeCode", ROM0[$0144] DS 2, $00 SECTION "SGBFlag", ROM0[$0146] DB $00 SECTION "CartridgeType", ROM0[$0147] DB $00 ; ROM only SECTION "ROMSize", ROM0[$0148] DB $00 ; 32kbyte SECTION "...
%include 'functions.asm' SECTION .text global _start _start: mov ecx, 0 ; Инициализация счетчика нулём nextNumber: inc ecx ; Инкремент счетчика на 1 mov eax, ecx call iprintLF ; Вызов функции itoa cmp ecx, 10 ; Текущий счетчик равен 10? jne nextNumb...
; ***************************************************************************** ; ***************************************************************************** ; ; Name: dim.asm ; Purpose: Array Dimension ; Created: 7th March 2020 ; Reviewed: 17th March 2020 ; Author: Paul Robson (paul@robsons.org.uk) ; ; *****...
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTMgrCsrPressureResponse, 6, Wintab, -, 184
;=============================================================================== ; ; $Workfile: PATBLT.ASM $ ; ; Contents: ; This file contains the assembly code for the pattern blit routine. ; ; Copyright (c) 1996, Cirrus Logic, Inc. ; ; $Log: X:/log/laguna/nt35/displays/cl546x/i386/PATBLT.ASM $ ; ; ...
; QXL extended colour mode section init xdef pt_xmodec ; check if mode can be set xdef pt_xmode ; set mode xdef qxl_xmode ; set QXL on mode change xref qxl_mess_add include 'dev8_keys_err' include 'dev8_keys_sys' include 'dev8_keys_con' include 'dev8_smsq_qxl_keys' include 'dev8_smsq_qxl_comm_keys' ...
SECTION code_clib SECTION code_threads_mutex PUBLIC asm_spinlock_release .asm_spinlock_release ; enter : hl = & spinlock ; ; exit : hl = & spinlock ; ; uses : none IF __CPU_INTEL__ dec (hl) ; atomic operation ret ELSE ld (hl),$fe ; atomic operation r...
;############## Comments ########################################################## ;; Registers for integers and pointers while passing arguments ;%rdi - canvas->line [first element of bitmap, upper-left corner] ;%rsi - canvas->w [width] ;%rdx - canvas->h [height] ;%rcx - zBuffer->line [first element of buffer wit...
;/*###### Copyright (c) 2013-2015 Ufasoft http://ufasoft.com mailto:support@ufasoft.com, Sergey Pavlov mailto:dev@ufasoft.com #### ;# # ;# See LICENSE for licensing information ...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_scanf_p EXTERN __stdio_scanf_x defc __stdio_scanf_p = __stdio_scanf_x ; %x, %p converter called from vfscanf() ; ; enter : ix = FILE * ; de = void *buffer ; bc = field width (0 means default) ; hl = int *p ; ; exit ...
; A268866: Records in A268865. ; Submitted by Jon Maiga ; 2,3,22,38,342,598,5462,9558,87382,152918,1398102,2446678,22369622,39146838 mov $2,$0 mod $2,2 sub $0,$2 lpb $0 sub $0,1 mul $2,4 add $2,4 lpe mov $0,$2 add $0,2
;------------------------------------------------------------- ; ; SINGLE THREAD FLOATING POINT MULTI-PRECISION CALCULATOR ; ; Calculation of Pi using Chudnovsky Formula ; ; File: calc-pi-ch.asm ; Module: calc.asm, calc.o ; Exec: calc-pi ; ; Created 01/02/2014 ; Last Edit 01/03/2015 ; ;---------------------------...
TITLE Summing a array ; Author: @LucasDavid ; ; Revision: INCLUDE Irvine32.inc .data vetor1 DWORD 10, 20, 30 .code main PROC mov eax, 0 mov esi, 0 LP: add eax, vetor1[esi] add esi, type vetor1 cmp esi, 3 *type vetor1 jne LP exit main ENDP END main
_start: push 21 call times2 mov ebx, eax mov eax, 1 int 0x80 times2: push ebp mov ebp, esp mov eax, [ebp+8] add eax, eax mov esp, ebp pop ebp ret
DEFAULT REL SECTION .text ; INTN ; EFIAPI ; SetMemoryEncDecHypercall3AsmStub ( ; IN UINTN HypercallNum, ; IN UINTN Arg1, ; IN UINTN Arg2, ; IN UINTN Arg3 ; ); global ASM_PFX(SetMemoryEncDecHypercall3AsmStub) ASM_PFX(SetMemoryEncDecHypercall3AsmStub): ; UEFI calling conventions require RBX to ...
; Taken from https://en.wikibooks.org/wiki/Super_NES_Programming/Initialization_Tutorial/Snes_Init ; Adjusted to work with ca65, and to suit to taste .smart .include "header.asm" .import __STACK_START__ .import __STACK_SIZE__ .segment "CODE" .a8 .i8 Init: sei ; Disabled interrupts clc ...
/* * c64lib/text/tiles-color-ram-shift.asm * * A library that supports drawing and 4-directional scrolling of 2x2 tile map using text modes * of VIC-II. All three text modes are supported. * * Color limitations: * - color RAM is configured per 2x2 tile * * Author: Maciej Malecki * License: MIT...
@0 @1 MOV UP, RIGHT MOV UP, DOWN @2 MOV LEFT, DOWN MOV 5, ACC SUB LEFT MOV ACC, DOWN @3 @4 NB: MOV UP, DOWN MOV -2, ACC ADD UP # H NL: JLZ EB MOV 1, RIGHT MOV -2, DOWN SUB 1 JMP NL EB: MOV 5, RIGHT MOV -3, DOWN @5 NB: MOV UP, DOWN MOV UP, ACC # 5-W SAV NL: JGZ EL MOV -4, DOWN ADD 4 JMP NL EL: SUB 5 MOV ACC, DOWN...
; HOTKEY get stuffer buffer V2.00  1988 Tony Tebby QJUMP section hotkey xdef hk_getpr xdef hk_getbf include 'dev8_ee_hk_data' include 'dev8_mac_assert' ;+++ ; Get stuffer buffer contents. This can get thus current string (d0=0) ; or the previous string (d0=-1)...
; float lgamma(float x) __z88dk_fastcall SECTION code_fp_math48 PUBLIC cm48_sdcciy_lgamma_fastcall EXTERN cm48_sdcciyp_dx2m48, am48_lgamma, cm48_sdcciyp_m482d cm48_sdcciy_lgamma_fastcall: call cm48_sdcciyp_dx2m48 call am48_lgamma jp cm48_sdcciyp_m482d
;;; ; Prints _int as a hexadecimal number. ; User uses the '.h' command to print the stack's top as a hexadecimal number. ;;; proc PrintHexa uses rax rcx rdx r14 , _int:QWORD ; _int saved in rcx local _array:QWORD, _rem:QWORD, _num:QWORD, _i:WORD mov [_num], rcx fastcall ArrayListCreate, 10 ; Creates au...
INCLUDE "./src/include/hardware.inc" ; $0040 - $0067: Interrupts /* Interrupts are used to call a given function when certain conditions are met. Interrupts & Handler Address: 1. VBlank (Handler Address: $0040, Highest Priority) 2. STAT (Handler Address: $0048) 3. Timer (Handler Address: $0050) 4...
bits 16 cpu 8086 org 0x100 align 16 %define VIDEO_MEM 0xb800 %macro set_text_mode 0 mov al, 0x03 int 0x10 %endmacro %define next_screen (80 * 25 * 2) %define row(r) (80 * (r) * 2) %define col(c) ((c) * 2) %define row_col(r, c) (row((r)) + col((c))) ; we are on second screen %macro set_playground_parts 5 ...
INCLUDE "config_private.inc" SECTION code_driver PUBLIC ide_read_byte ;Do a read bus cycle to the drive, using the 8255. ;input A = ide register address ;output A = lower byte read from IDE drive ide_read_byte: push bc push de ld d, a ;copy address to D ld bc, __IO_PIO_ID...
numberUTF16 proc t,dist mov edx,t .if edx>10ffffh ret .endif mov ebx,dist .if edx<=0ffffh mov eax,edx shr eax,8 mov BYTE ptr[ebx],al mov eax,edx and eax,0ffh inc ebx mov BYTE ptr[ebx],al inc ebx .else sub edx,010000h...
; ============================================================================= ; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems ; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT ; ; INIT ISA ; ============================================================================= init_isa: mov...
_v$ = 8 ; size = 4 void unique_epi32(std::vector<int,std::allocator<int> > &) PROC ; unique_epi32, COMDAT mov eax, DWORD PTR _v$[esp-4] push esi mov esi, DWORD PTR [eax+4] mov ecx, DWORD PTR [eax] cmp ecx, esi je ...
; SEE YOU AT THE PARTY RICHTER main: LDA 'H' STA D LDN A STD @A LDA 'e' STA D LDN A STD @A LDA 'l' STA D LDN A STD @A LDA 'l' STA D LDN A STD @A LDA 'o' STA D LDN A STD @A LDA ' ' STA D LDN A STD @A LDA 'W' STA D LDN A STD @A LDA 'o' STA D LDN A STD @A LDA 'r' STA D LDN A S...
naken_util - by Michael Kohn Joe Davisson Web: http://www.mikekohn.net/ Email: mike@mikekohn.net Version: October 30, 2017 Loaded hexfile E_W_ROUTINEs_8K_verL_1.0.hex from 0x01ea to 0x01ea Type help for a list of commands. Addr Opcode Instruction Cycl...
#!/usr/bin/sisa16_asm -run .ZERO_STACK_POINTER: astp;popa; //..include"libc.hasm" ..include"libc_pre.hasm" ..(2): ..dinclude"libc_pre.bin" .wait_time: 50 ..main(3): lrx0 %/krenel_boot%; proc_krenel; halt; ..(4): asm_begin_region_restriction; krenel_boot: la '\r'; putchar; alpush; //our loop! asciifun_loo...
;======================================================== COMMENT # DOS_SEEK.ASM Copyright (c) 1991 - Microsoft Corp. All rights reserved. Microsoft Confidential ================================================= Seeks to the specified offset in an open disk disk file. long _dos_seek( int Handle, long lOffse...
Name: Pochi.asm Type: file Size: 14027 Last-Modified: '2016-05-13T04:50:36Z' SHA-1: 6EC5F3BF43566550A2D37AB0A049DFE007505E2B Description: null
ORG 0x100 ld hl,hello_text ; 文字 ld b,12 ; 文字数 ld d,3 ; yカーソル座標 ld e,0 ; xカーソル座標 call 0xbff1 ; 文字列表示 ret hello_text: defb "Hello, World"
// Assembler: KickAssembler v4.19 BasicUpstart2(main) .var vic = $0000 .var screen = vic + $0400 .var lfsr_low = $80 .var lfsr_high = $81 .var lfsr_bit = $82 .var brkFile = createFile("breakpoints.txt") .macro break() { .eval brkFile.writeln("break " + toHexString(*)) } main: // initialize and show start state j...
COMMENT }*********************************************************************** Copyright (c) GeoWorks 1988 - All rights reserved PROJECT: PCGEOS MODULE: Windowing System FILE: winNotification AUTHOR: Doug Fults ROUTINES: Name description ---- ----------- May be called by a...
ADDI r0 1 ADDI r1 1 ADD r1 r0 # sum of 2 ADD r0 r1 # sum of 3 ADD r1 r0 # sum of 5 ADD r0 r1 # sum of 8 ADD r1 r0 # sum of 13 ADD r0 r1 # sum of 21
;----------------------------------------------- ; Decompresses a specific text sentence from a text bank ; input: ; - de: target destination of decompression ; - c: bank # ; - a: text # within the bank ; output: ; - de: pointer to copy the decompressed text to (ignored, hardcoded to text_buffer) get_text_from_bank_reu...