content
stringlengths
23
1.05M
;; $Header: /cvsroot/uuu/dimension/app/base/dmesg/dmesg.asm,v 1.3 2002/08/11 07:42:45 lukas2000 Exp $ ;; Dmesg App ;; Copyright (C) 2001 - Phil Frost (indigo) ;; Distributed under BSD License ;; ; ----------------------------------- ...
extern m7_ippsBigNumInit:function extern n8_ippsBigNumInit:function extern y8_ippsBigNumInit:function extern e9_ippsBigNumInit:function extern l9_ippsBigNumInit:function extern n0_ippsBigNumInit:function extern k0_ippsBigNumInit:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data a...
Name: zel_char1.asm Type: file Size: 64395 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: BAEFB115514ACD76718A6FD79B69F8A43302A37D Description: null
; gut_exvt Check for one or two exceptions  Tony Tebby 1993 ; Check for bus error ; Check for illegal instruction section gen_util xdef gu_exvt xdef gu_wbuse xdef gu_rbuse xdef gu_exii xref sms_wbase include 'dev8_keys_68000' gbt_rba2 tst.b (a2) ; simple test for bus error rts gbt_wba2 ...
; RUN: llvm-ml -filetype=s %s /Fo - /Dtest1=def 2>&1 | FileCheck %s --implicit-check-not=warning: .code ; CHECK: :[[# @LINE + 1]]:1: warning: redefining 'test1', already defined on the command line test1 textequ <redef> end
pragma_memory-size := 0xff pragma_rng-seed := 0x5eed jmp @main puts: lsa -8 puts$loop: sta @puts$string-ptr swp lia jz @puts$return ptc lda @puts$string-ptr inc 4 jmp @puts$loop puts$return: mov '\n' ptc ret ...
dnl Intel mpn_add_n/mpn_sub_n optimised for Conroe, Nehalem. dnl Copyright 2006, 2007, 2011-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/or modify dnl it under the terms of either: dnl dnl * the GNU Le...
#To be inserted at 800f2620 ############################### ##FPSHack_TEST_SlowHookShotIn## ############################### lis r17, 0x817F lfs f17, 0x0004 (r17) #Load FloatSlowdown lfs f0, -0x5EE8 (rtoc) #Vanilla fmuls f0, f0, f17
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: Config Library MODULE: PrefContainerClass FILE: prefContainer.asm AUTHOR: Adam de Boor, Dec 3, 1992 ROUTINES: Name Description ---- ----------- REVI...
; non-NULL shellcode global _start section .text _start: ; execve(program, NULL, NULL) xor ecx, ecx xor edx, edx push edx ; push NULL onto stack push 0x68732f6e ; push 'n/sh' push 0x69622f2f ; push '//bi' mov ebx, esp ; get pointer to string on stack xor eax, eax mov al,...
ori $1,$0,2039 ori $2,$0,3934 j exit addu $3,$1,$2 exit: sw $3,0($0)
;***************************************************** ; Copyright 2020 David Aylaian ; https://github.com/davidaylaian/carbon/ ; ; Based off of code by Brandon Friesen that can be found at ; http://www.osdever.net/bkerndev/Docs/isrs.htm ; http://www.osdever.net/bkerndev/Docs/irqs.htm ;*********************************...
#import "common/lib/invoke.asm" /* * Installs subroutine that prints hex representation of given byte on the screen. * * Stack parameters (order of pushing): * bytePointerLo * bytePointerHi * screenLocationPointerLo * screenLocationPointerHi */ .namespace c64lib { outHex: { invokeStackBegin(returnPt...
DrawGame: ld de, (currDrawingBuffer) ; Display food, wood, stone etc placeholder ld hl, resources_offset ld bc, resources_width * resources_height ldir ld c, 17 ld a, 4 call _SetTextXY ld hl, (amount_of_wood) call _PrintUInt_5 ld hl, 78 ld (TextXPos_SMC), hl ld hl, (amount_of_food) call _PrintUInt_5 ld ...
db DEX_PHANPY ; pokedex id db 90 ; base hp db 60 ; base attack db 60 ; base defense db 45 ; base speed db 40 ; base special db GROUND ; species type 1 db GROUND ; species type 2 db 52 ; catch rate db 87 ; base exp yield INCBIN "pic/ymon/phanpy.pic",0,1 ; 55, sprite dimensions dw PhanpyPicFront dw PhanpyPicBack ; attack...
; ; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, ; are permitted provided that the following conditions are met: ; 1. Redistributions of source code must retain the above copyright notice, ; this list...
1REW EQU 1 LOL EQu 0 SECTION TeXt TESt: MACRO &A &B &C add &a copy &a, &b sub &c endmacro Macro2: MACRO add dois mult old_data endmacro INPUT OLD_DATA LOAD OLD_DATA ;sadjfslhaf L1: DIV DOIS STORE NEW_DATA MULT DOIS IF LOL STORE TMP_DATA IF 1REW LOAD OLD_DATA SUB TMP_DATA ; askfslfsad safdk STORE TMP_DATA OUTPUT ...
; TODO: UTILITIES ; Make sure ruledef has been included #include "../CESC16.cpu" ; Include OS routines #include "OS.inc" MAIN_PROGRAM:
.386P .model FLAT ; ; d_scana.s ; x86 assembly-language turbulent texture mapping code ; include qasm.inc include d_if.inc if id386 _DATA SEGMENT _DATA ENDS _TEXT SEGMENT ;---------------------------------------------------------------------- ; turbulent texture mapping code ;---------------...
[bits 64] get_thread equ 0x0100 kill_thread equ 0x0114 create_thread equ 0x0120 wait_for equ 0x0134 exit_process equ 0x0210 vm_protect equ 0x0408 vm_reserve equ 0x0410 vm_commit equ 0x0414 section .data fun: ; rdx as arg mov eax,kill_thread syscall mov edx,eax mov eax,exit_process syscall align 16 fun_size equ ($ -...
datos segment mensaje db "VIRUS",10,13,"$" ;Para imprimir $ pongo el ascii 24h tablahex db "ABCDEF" var2 db ? tua db "Tuanis",10,13,"$" FIL DB 20 COL DB 50 DIR DB 4 ASTERIX DB '*',0AH ; Fondo negro y asterisco verde CLARO PAUSA1 dw 1000 PAUSA2 dw 1000 ; En total hace de pausa 10000x2000=20 000...
; ; TBBlue / ZX Spectrum Next project ; Copyright (c) 2010-2019 ; ; RTC ACK - Victor Trucco and Tim Gilberts ; ; All rights reserved ; ; Redistribution and use in source and synthezised forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; Redistributions of source co...
; ------------------------------------------------------------------ ; Program to display logo ; ------------------------------------------------------------------ BITS 16 %INCLUDE "mikedev.inc" ORG 32768 main_start: call draw_background ; call os_file_selector ; Get filename ; jc near close...
;****************************************************************************************************** ; MAIN TRACK MUSIC DRIVER : this still has a LOT of debug stuff in it. ;------------------------------------------------------------------------------------------------------ psgMainDrive ;.....................
; A018522: Divisors of 567. ; Submitted by Jamie Morken(w3) ; 1,3,7,9,21,27,63,81,189,567 mov $1,$0 mov $2,1 lpb $0 sub $0,1 mov $4,$3 mul $3,$1 div $1,8 pow $3,$4 add $3,$2 add $4,1 add $2,$4 mul $2,$1 mul $4,3 add $2,$4 lpe mov $0,$4 div $0,3 mul $0,2 add $0,1
include 'ebc.inc' include 'efi.inc' include 'format.inc' include 'utf8.inc' format peebc efi ; PE executable format, EFI Byte Code entry efi_main struct EFI_GRAPHICS_OUTPUT_PROTOCOL QueryMode VOID_PTR SetMode VOID_PTR Blt VOID_PTR Mode VOID_PTR ends struct EFI_GRAPHICS_OUTPUT_B...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_printf_lld EXTERN __stdio_printf_number_tail_longlong __stdio_printf_lld: ; %lld, %lli converter called from vfprintf() ; ; enter : ix = FILE * ; hl = void *stack_param ; de = void *buffer_digits ; stack = buffer_digits, ...
; TEST_CALL_RET ; Tests for subroutine call and return instructions ; ; Stefan Wong 2020 ; Call instructions CNZ 0BEEFh CZ 0BEEFh CALL 0BEEFh CC 0BEEFh CPO 0BEEFh CPE 0BEEFh CP 0BEEFh CM 0BEEFh ; Return instructions RNZ RZ RET RNC RPO RPE RP RM
\ ****************************************************************************** \ \ ELECTRON ELITE DISC IMAGE SCRIPT \ \ Electron Elite was written by Ian Bell and David Braben and is copyright \ Acornsoft 1984 \ \ The code on this site has been disassembled from the version released on Ian \ Bell's personal website a...
; MASM Decision Directives (Section_6_7_1.asm) ; Examples from Sections 6.7.1 (Creating IF Statements) ; and 6.7.2 (Signed and Unsigned Comparisons) INCLUDE IRVINE32.inc INCLUDE macros.inc .data val1 DWORD 5 val2 SDWORD -1 result DWORD 0 .code main PROC ; Example 1 mov eax,6 .IF eax > val1 m...
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT ; ; Ethernet Functions ; ============================================================================= al...
ORG 0x100 MBR_SECTOR equ 0x19 MBR_ADDRESS equ 0x7c00 PASSWORD equ 0x9752 ;ASCII '123' ; Print 'Please, input password!' lea si, [enter_password_db] call print_string call new_line ; Read password string lea di, [password_db] mov cx, password_size_db call get_string call new_line ; Calculate and check t...
Name: ysm_init.asm Type: file Size: 14861 Last-Modified: '2016-05-13T04:52:57Z' SHA-1: D323129E688656B6D813415DF23738712CBEEC1A Description: null
org 00h ; ini: mov p3,#00h ; mov r0,#255 ; rep: mov p3,#01h ; mov p3,#02h ; mov p3,#01h ; djnz r0,rep call ini
.intel_syntax noprefix MFENCE MOV rax, [r14 + 128] MOV rax, [r14 + 128] MOV rax, [r14 + 128] MOV rax, [r14 + 128] MOV rax, [r14 + 128] MOV rax, [r14 + 128] MFENCE
ld r0, 0x7 ld r1, 0x1 sub r0, r1 ld r2, 0x4 add r0, r2 ld r3, 0x3 add r2, r3 add r1, r2 and r0, r1 add r3, r2 sub r0, r2 and r2, r3 add r0, r1 not r3 shrl r1 shra r3 shla r3 shll r0 cpy r2, r1 swap r0, r3
mov r0 2 mov r1 3 mov r2 2 mov r2 16 add r0 r1 sub r1 r0 mov r0 r2 add r0 r1
; ; feilipu, 2019 May ; ; 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/. ; ;------------------------------------------------------------------------- ; m32_fsmul32x32...
SECTION code_fp_am9511 PUBLIC cam32_sdcc_fmul10u EXTERN cam32_sdcc_read1, asm_am9511_fmul10u_fastcall .cam32_sdcc_fmul10u call cam32_sdcc_read1 jp asm_am9511_fmul10u_fastcall
db "MIME@" ; species name db "In an attempt to" next "confuse its enemy," next "it mimics the" page "enemy's movements." next "Then it wastes no" next "time in fleeing.@"
; int getc_unlocked(FILE *stream) SECTION code_stdio PUBLIC _getc_unlocked EXTERN _fgetc_unlocked defc _getc_unlocked = _fgetc_unlocked
; Original address was $BF9A ; End of 3-3 .word W303L ; Alternate level layout .word W303O ; Alternate object layout .byte LEVEL1_SIZE_03 | LEVEL1_YSTART_0F0 .byte LEVEL2_BGPAL_02 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_INDEX(1...
bits 64 global main section .text main: mov rax, [rsi] movsd xmm0, [rax] mov rax, [rax] movsd xmm0, [rax] vmovsd xmm0, [rax] vmovsd xmm0, [rcx] vmovsd xmm0, [rsi] vmovsd xmm8, [rsi] movsd xmm0, xmm1 vmovsd xmm0, xmm1, xmm2 ;vmovpd xmm0, xmm1 vaddsd xmm1, xmm1, xmm2 vaddsd xmm1, xmm9, xmm1 vaddsd xmm9, xmm1,...
-- 7 Billion Humans (2053) -- -- 16: Little Exterminator 2 -- -- Author: ansvonwa -- Size: 14 -- Speed: 9 step s step s step s a: step s if s != wall and s != hole: jump a endif pickup c step e step e step e b: step e if s == shredder: giveto s endif jump b
; Q 4> ; a> To store the elements of a given array in 2 separate arrays ; comprising of even and odd elements SW 2000h [2000h] = 2006h ; Address of source array A[] [2002h] = 2014h ; Address to even array E[] [2004h] = 2024h ; Address to odd array O[] [2006h] = 0006h ; A.length = 6 [2008h] = ...
;/* ----------------------------------------------------------------------- ; sysv.S - Copyright (c) 1998, 2008, 2011 Red Hat, Inc. ; Copyright (c) 2011 Plausible Labs Cooperative, Inc. ; ; ARM Foreign Function Interface ; ; Permission is hereby granted, free of charge, to any person obtaining ; a copy ...
.model tiny .code .386 org 100h _beg: jmp _start ; 1100100000100011 ; FEDCBA9876543210 msg_printers db "Number of printers installed . . . . . . . $" ; xx.............. msg_modem db "Internal modem installed . . . . . . . . . $" ; ..x............. msg_gameadpt db "Game adapter installed . . ....
; ; Win32.Idyll.1556 ; disassembly done by peon ; ; ; ; This is a noninteresting,nonresident infector of PE files. ; Infects files in the current directory.No payload or anything interesting. ; Assumed to be compiled with /m switch so NOP's after jumps included in the source. ; ; Sorry for the annoying lack of com...
; asmsyntax=apricos ; =================================== ; == == ; == ApricotOS Disk Storage == ; == Allocator == ; == == ; == Revision 1 == ; == == ; == (C) 2017 Nick Stones-Havas ...
CODE SEGMENT ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE PPIC_C EQU 1EH PPIC EQU 1CH PPIB EQU 1AH PPIA EQU 18H PPIC_C1 EQU 1FH PPIC1 EQU 1DH PPIB1 EQU 1BH PPIA1 EQU 19H ORG 1000H MOV AL,10000000B OUT PPIC_C,AL OUT PPIC_C1,AL MOV AL, 11111111B OUT PPIC,AL OUT PPIB,AL OUT PPIA1,AL MOV AL,1...
; Simulates a Mouse using Joystick Functions ; 02.2008 aralbrec PUBLIC INMouseSim EXTERN l_jpix ; enter: HL = struct in_UDM * ; exit : C = button state 11111MRL active low ; B = X coordinate (0..255) ; A = Y coordinate (0..191) ; used : AF,BC,DE,HL,IX ; note : last maxcount in struct in_UDM must be 255 ...
TITLE examenPasado.asm ; Ejemplo del segundo examen ; Irvine Library procedures and functions INCLUDE \masm32\Irvine\Irvine32.inc INCLUDELIB \masm32\Irvine\Irvine32.lib INCLUDELIB \masm32\Irvine\User32.lib INCLUDELIB \masm32\Irvine\Kernel32.lib ; End Irvine myNull=0 .DATA arrStr BYTE "on1", myNull BYTE "tw2...
AnthonyPhoneCalleeScript: gettrainername STRING_BUFFER_3, HIKER, ANTHONY2 checkflag ENGINE_ANTHONY iftrue .WantsBattle farscall PhoneScript_AnswerPhone_Male checkflag ENGINE_ANTHONY_FRIDAY_NIGHT iftrue .NotFriday readvar VAR_WEEKDAY ifnotequal FRIDAY, .NotFriday checktime NITE iftrue AnthonyFridayNight .NotF...
SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sccz80p_dswap EXTERN cm48_sccz80p_dcallee1_0, cm48_sccz80p_dpush_0 cm48_sccz80p_dswap: ; sccz80 float primitive ; Swap two floats. ; ; enter : AC'(BCDEHL') = double x (math48) ; stack = double y (sccz80), ret ; ; exit : AC'(B...
; Original address was $B332 ; Beginning of 7-6 .word W706_MazeL ; Alternate level layout .word W706_MazeO ; Alternate object layout .byte LEVEL1_SIZE_05 | LEVEL1_YSTART_140 .byte LEVEL2_BGPAL_02 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_08 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPE...
; Example program .ORIG x0276 BEGIN LD R2, VAL_A LD R3, VAL_B ADD R1, R2, R3 LEA R0, SPACE STR R1, R0, #4 BR BEGIN DONE BR DONE ; Data for the program SPACE .BLKW 7 VAL_A .FILL #9 GAP .BLKW 3 VAL_B .FILL #6 .END
; --------------------------------------------------------------------------- ; Object 57 - spiked balls (SYZ, LZ) ; --------------------------------------------------------------------------- SpikeBall: moveq #0,d0 move.b obRoutine(a0),d0 move.w SBall_Index(pc,d0.w),d1 jmp SBall_Index(pc,d1.w) ; =============...
;Programa que simula un cronometro que ;cuenta en decimas de segundo, al inicio ;muestra ceros y el conteo comienza cuando ;se presione el push button conectado al ;PA0 (bit 0 del PA del PPI), y termina de ;contar cuando se presione el push button ;conectado al PA1 (bit 1 del PA del PPI). ; ;El retardo de conte...
;Este codigo es el codigo de inicializacion de los Application Processors. ;Dado que inician en modo real, deben iniciar el procesador desde cero. global _start %define breakpoint xchg bx, bx BITS 16 section .text _start: jmp mr_ap_start ; data_area align 4 ap_full_code: dd 0xABBAABBA ; puntero al inicio del ...
; A182531: Extremal graph numbers for a triangle with an edge off it. ; 0,1,3,4,6,9,12,16,20,25,30,36,42,49,56,64,72,81,90,100,110,121,132,144,156,169,182,196,210,225,240,256,272 mov $1,$0 cmp $0,2 add $1,1 add $0,$1 mul $1,$0 mov $0,$1 div $0,4
// 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/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // // This program only...
.686 .model flat, c .const r4_MinFloat dword 0ff7fffffh r4_MaxFloat dword 7f7fffffh .code CalcMinMax proc push ebp mov ebp, esp xor eax, eax mov edx, [ebp+8] ; edx = a mov ecx, [ebp+12] ; ecx = n test ecx, ecx jle Done ; jump to Done if n <= 0 fld [r4_MinFloat] ; initial min value fld [r4_MaxFloat...
copyright zengfr site:http://github.com/zengfr/romhack 03395A move.b #$14, ($a9,A6) [enemy+A5] 033960 move.b #$5a, ($ac,A6) [enemy+A9] 0355F2 subq.b #1, ($a9,A6) 0355F6 bne $35634 [enemy+A9] 0355F8 move.b #$a, ($a9,A6) 0355FE move.b #$0, ($ad,A6) [enemy+A9] 035638 subq.b #1, ($a9,A6) 03563C bne ...
.text .globl main main: li $s0, 9 # n li $t1, 1 # contador li $s1, 1 # valor base fat: mul $s1, $s1, $t1 # multiplicacao addi $t1, $t1, 1 # incremento contador slt $t0, $s0, $t1 # cont < n beq $t0, $zero, fat # saindo do loop j end end: li $v0, 1 # call code para print int add $a0, $zero, $s1 # carreg...
.code ; void AVX_Packed_Y_Sum_Float_(const YmmVal & a, const YmmVal & b, YmmVal results[]) AVX_Packed_Y_Sum_Float_ proc xor rax, rax vmovaps ymm0, ymmword ptr [rcx] vmovaps ymm1, ymmword ptr [rdx] ; | 127 | 63 | 31 | 0 | 127 | 63 | 31 | 0 | ; ------------------------------------------------- ; | [3] | [2] |...
;;############################################################################# ;;! \file source/fft/RFFT_f32_twiddleFactors.asm ;; ;;! \brief Twiddle Factors for 1024-pt RFFT ;;! \author Vishal Coelho ;;! \date 23-Apr-2015 ;;! ;; ;; Group: C2000 ;; Target Family: C28x + FPU32 ;; ;;#########################...
format PE GUI 4.0 include 'win32ax.inc' entry start macro dzwiek arg1,arg2 { invoke Beep,arg1,arg2 } cze1 equ 37 cze2 equ 900 cze3 equ 1000 dlu1 equ 200 dlu2 equ 180 dlu3 equ 300 dlu4 equ 120 dlu5 equ 100 dlu6 equ 220 dlu7 equ 250 dlu8 equ 150 dlu9 equ 130 dlu10 equ 280 section '.data' data readable writeable hInstance...
;;; Test program of twi-controller.asm ;;; ;;- This program scans I²C devices and shows if a device on each address exists. ;;- ;;- To compile this file, the following files are required ;;- (These files are parts of the pAVRlib). ;;- ;;- - [[../twi-controller][twi-controller.asm]] ;;- - [[../usart][usart.asm]] ;;- - [...
;----------------------------------------------------------------------------- ; fpreset.asm - floating point unit reset ; Ported from Al Maromaty's free C Runtime Library ;----------------------------------------------------------------------------- SECTION .text global _fpreset ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1996 -- All Rights Reserved GEOWORKS CONFIDENTIAL PROJECT: MODULE: FILE: modemCManager.asm AUTHOR: Chris Thomas, Sep 23, 1996 ROUTINES: Name Description ---- ----------- REVISION HIS...
data export pm_stopspeed align 4 LABELV pm_stopspeed byte 4 1120403456 export pm_duckScale align 4 LABELV pm_duckScale byte 4 1048576000 export pm_swimScale align 4 LABELV pm_swimScale byte 4 1056964608 export pm_accelerate align 4 LABELV pm_accelerate byte 4 1092616192 export pm_airaccelerate align 4 LABELV pm_airacce...
%include "defines.inc" section .bss sum resb 1 section .data msg db "The sum is:", 0x2, 0xA, 0xD len equ $ - msg section .text global _start _start: sys_call SYS_WRITE, STDOUT, msg, len ; Example with numbers mov eax, 3 mov ebx, 4 add eax, ebx add eax, '0' ; Convert to A...
; ; Word: HALT ; Dictionary: ( - ) ; Date: 1st February 2018 ; Macro: No ; Notes: ; __Halt00: halt jr __Halt00
#Function to test the soundeffects .data sucess_label: .string "Programm terminated sucessfully \0" .text main: jal play_soundeffect jal play_sound_brass li a7, 4 la a0, sucess_label ecall li a7, 10 ecall .include "play_sound_win.asm" .include "play_soundeffect.asm"
.model small .data x db 00h y db 00h m1 db 10,13,'enter the x coordinate : $' m2 db 10,13,'enter the y coordinate : $' m3 db 'cursor $' .code mov ax,@data mov ds,ax mov ax,00h lea dx,m1 mov ah,09h int 21h call read ;reading x coordinate mov x,al lea dx,m2 mov ah,09h int 21h call read ;reading y coo...
Name: ys_w15.asm Type: file Size: 6153 Last-Modified: '2016-05-13T04:50:34Z' SHA-1: 0850968263BDEAD49BA475E3229C2C598F863DB6 Description: null
db "CHIMP@" ; species name db "It is very agile." next "Before going to" next "sleep, it will" page "extinguish the" next "flame on its tail" next "to prevent fires.@"
-- 7 Billion Humans (2053) -- -- 9: Dynamic Angles -- -- Author: tiansh -- Size: 5 -- Speed: 5 pickup s a: step s if nw == datacube: drop endif jump a
; ; ; Aquarius colours ; 0 = black ; 1 = red ; 2 = green ; 3 = yellow ; 4 = blue ; 5 = violet ; 6 = cyan ; 7 = white ; 8 = light grey ; 9 = blue green ; 10 = magenta ; 11 = dark blue ; 12 = light yellow ; 13 = light green ; 14 = orange ; 15 = dark gray SECTION code_clib PUBLIC generic_console_cls P...
define CLOCKS_PER_SEC 32768 define TMS_UTIME 0 define TMS_STIME 3 define TMS_CUTIME 6 define TMS_CSTIME 9 sysdef _clock clock: ld iy, (kthread_current) ld hl, (iy+KERNEL_THREAD_TIME) or a, a ret sysdef _times ; struct tms { ; clock_t tms_utime; /* user time */ ; clock_t tms_stime; /* system time */ ; clock_t t...
TITLE fibonacci.asm COMMENT ! Completes the following: a. fib(n) for n = 2, 3, ..., 10 using an array of the appropriate size and type. Declares a value for fib(0) and fib(1), but all remaining elements are calculated by the program. b. After the array is filled with required values, the program ...
; Arquivo: Abs.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; faz uma subtracao binaria do valor de : RAM[1] - RAM[0] gravando em RAM[2]. leaw $0, %A movw (%A), %S leaw $1, %A subw (%A), %S, %S leaw $2, %A movw %S, (%A)
; void *tshc_aaddrcright(void *aaddr) SECTION code_clib SECTION code_arch PUBLIC tshc_aaddrcright EXTERN zx_saddrcright defc tshc_aaddrcright = zx_saddrcright ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tshc_aaddrcright defc _tshc_aaddrcright = tshc_aaddrcright ENDIF
title "Call Out to User Mode" ;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt). ; If you do not agree to the terms, do not use the code. ; ; ; Module Name: ;...
global maxofthree section .text maxofthree: mov eax, [esp+4] mov ecx, [esp+8] mov edx, [esp+12] cmp eax, ecx cmovl eax, ecx cmp eax, edx cmovl eax, edx ret
* uti_timer_asm include dev8_keys_qdos_sms include dev8_keys_err include dev8_keys_atari include dev8_mac_xref section utility xdef ut_etime xdef ut_dtime ;+++ ; timer b ; ; Entry Exit ; D0.l error code ; D1.b timer mode preserved ; D2.b timer b data preserved ; A0.l address of int. routine preserve...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0 TITLE D:\scottsdocs\sourcecode\OpenGLboxes\code\box.cpp .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES END
stack push 1 push 2 stack push 3 stack pop stack push 5 stack pop pop push 6 stack pop pop stack
; sprite ; Displays a multi-colored sprite. .INCLUDE "../lib/header.asm" .INCLUDE "../lib/registers.asm" .INCLUDE "../lib/settings.asm" .INCLUDE "../lib/values.asm" .INCLUDE "../lib/initialization.asm" .BANK 0 .ORG 0 .SECTION "" Main: Reset ; Set accumulator register to 8-bit sep #$20 ; Create color p...
dnl AMD64 mpn_mul_1. dnl Copyright 2003-2005, 2007, 2008, 2012 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/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as pub...
ldhilo : MACRO ld HIGH(\1),LOW(\2) ENDM SECTION "r0", ROM0[$0] ld HIGH(af),a ld HIGH(bc),LOW(bc) ld LOW(bc),HIGH(bc) ld HIGH(de),LOW(de) ld LOW(de),HIGH(de) ldhilo hl, hl ld LOW(hl),HIGH(hl) db HIGH(label+$AB) db LOW(label+$AB) db HIGH($1234) db LOW($1234) SECTION "o",OAM DS $10 label:
SECTION code_font SECTION code_font_fzx PUBLIC __fzx_draw_xor __fzx_draw_xor: ; must not modify: ix, b, e, af', hl ; hl = screen address ; dca= bitmap bytes inc l inc l xor (hl) ld (hl),a ; third byte to screen dec l ld a,c xor (hl) ld (hl),a ...
; Copyright 2022 Andreas Herzig ; Licence: MIT [bits 32] [org 0x100000] [global _start] KSTACK_SIZE equ 4096 section .text _start: xor eax, eax ; Clear eax and ebx in the event xor ebx, ebx ; we are not loaded by GRUB. jmp kernel_start ; Jump over the multiboot header %include "src\multiboot1.asm" kern...
[BITS 64] SECTION .text ; read a byte from port ; or write a byte to port global kInPortByte, kOutPortByte ; function that reads one byte from port ; this function follows IA-32e mode function convention ; param: ; port address (word): memory address where data is stored ; return: ; a byte value from the port I/...
; USE ASCII INSTEAD OF HEX VALUES, ' ' space, '\b' backspace etc. ; MORE VARIABLES ; TRY TO CREATE A JUMP TABLE... Cursor_X db 1 Cursor_Y db 1 handle_keystroke: mov ah, 00h ; Get Keystroke (Blocking I think) return is in AL int 16h ; Keyboard Interrupt cmp al, 0Dh ; (A...
L0_MAP_WIDTH = 32 L0_MAP_HEIGHT = 32 L1_MAP_WIDTH = 64 L1_MAP_HEIGHT = 32 VIEWPORT_WIDTH = 28 VIEWPORT_HEIGHT = 28 TERRAIN_MAP_WIDTH = 1024 ; code in s_lander require this be multiple of 256 TERRAIN_HEIGHT_ADDR = $A000 TERRAIN_CHAR_ADDR = (TERRAIN_HEIGHT_ADDR + TERRAIN_MAP_WIDTH) TERRAIN_ORE_ADDR = (TERRAIN_CHAR_AD...
Sound_D6_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_D6_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM3, Sound_D6_FM3, $10, $04 ; FM3 Data Sound_D6_FM3: smpsSetvoice $00 smpsModSet $01, $01, $0C, $01 Sound_D6_Loop00: dc.b nC0, $08, nC0 smpsContinu...
; DOS base section V1.00  1997 Marcel Kilgus section base xref dos_init section header xref smsq_end header_base dc.l dos_initp-header_base ; length of header dc.l 0 ; module length unknown dc.l smsq_end-dos_initp ; loaded length dc.l 0 ; checksum dc.l 0 ; always select dc.b 1 ; one ...
%include '../util.asm' default rel section .text global _main ; ;rótulo no código é como se fosse funçao ;rótulo na área de dados é nome de variável ; _main: ;rotulo inicio do programa ;lea rdi, [fibonacci] mov qword [fibonacci], 0 mov qword [fibonacci+1*8],1 mov r10, 2 laco: lea r15, [fibonacci...
; money-run.asm - Avik Das ; ; A simple side-scroller, in which the character is asked to go from ; left to right, navigating over a series procedurally generated ; columns. ; ; The name is refers to the gameplay mechanic in which the player will ; be trying to collect money while avoiding getting stuck amongst the ; c...