content
stringlengths
23
1.05M
global _start %include "socklib.inc" %include "filelib.inc" %define fileNotFound 0 %define fileFound 1 %define respCodeSz 6 %define defaultBuffSz 4000 section .data reqStr: db "Request recieved for ", 0x0 .len: equ $ - reqStr doneStr: db "...done!", 0xa, 0x0 .len: equ $ - doneStr errStr: db "...oh ...
; Test case: ; - lines 4-6 should not be optimized pop bc ld d,b ld e,c ld (var1),de ld (var2),bc var1: dw 0 var2: dw 0
; void *tshc_aaddrpup(void *aaddr) SECTION code_clib SECTION code_arch PUBLIC tshc_aaddrpup EXTERN zx_saddrpup defc tshc_aaddrpup = zx_saddrpup ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tshc_aaddrpup defc _tshc_aaddrpup = tshc_aaddrpup ENDIF
SECTION code_clib SECTION code_l_sccz80 PUBLIC dpush2 EXTERN fa ;------------------------------------------------------ ; Push FA onto stack under ret address and stacked word ;------------------------------------------------------ dpush2: pop de ;save return address pop bc ;sav...
; int __FASTCALL__ fclose(FILE *stream) ; 07.2009 aralbrec PUBLIC fclose PUBLIC ASMDISP_FCLOSE, LIBDISP_FCLOSE, LIBDISP2_FCLOSE EXTERN fflush, close, stdio_free, l_jpix, stdio_descendchain EXTERN stdio_findfilestruct, stdio_findfdstruct, stdio_error_ebadf_mc EXTERN LIBDISP_CLOSE, LIBDISP2_CLOSE, ASMDISP_FFLUSH INCLU...
; DEV Extension procedures section procs xdef dev_xprocs xref dev_tnam include 'dev8_mac_thg' dev_xprocs prc_stt dev_tnam prc_def {USE },Dev_use prc_def {LIST},Dev_list prc_end end
;;; Code for handling scripted events SequenceFrame: subroutine ldx sqtimer dex beq .advance stx sqtimer rts .advance .checkseq ldy sqidx lda sequence,y bne .nend ; are we in a sequence? rts .nend bmi .getmem ; is it just a simple set/offset? ...
;******************************************************************************* ; ramdisk.nasm - RAM disk driver module ; Copyright (c) 2002 RET & COM Research. ;******************************************************************************* module ramdisk %include "sys.ah" %include "errors.ah" library kernel exter...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2007, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. Th...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Edward Di Geronimo Jr. All rights reserved. PROJECT: Native ethernet support MODULE: Ethernet packet driver FILE: ethodiArp.asm AUTHOR: Edward Di Geronimo Jr. ROUTINES: Name Description ---- ---------...
%ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 $@feat.00 equ 1 section .text code align=64 %else section .text code %endif global _padlock_capability align 16 _padlock_capability: L$_padlock_capability_begin: push ebx pushfd pop eax mov ecx,eax xor eax,2097152 ...
text: $93 18 5 "NOW PLAYING FROM TAPE:" 13 13 13 " " 18 5"\"OHNE DICH\"" 13 13 " VOCALS/LYRICS/CODE:" 13 " SVEN MICHAEL KLOSE" 13 " (PIXEL@HUGBOX.ORG)" 13 13 " GUITAR/BASS/DRUMS:" 13 " LUKAS RAMOLLA" 13 13 "REWIND OR FORWARD THE" 13 "TAPE IF YOU...
* Spreadsheet 12/05-92 O.Fink * - scrap handling include win1_keys_wwork include win1_keys_wstatus include win1_keys_qdos_io include win1_keys_err include win1_spread_keys include win1_mac_oli section prog xdef fil_scrp ;+++ ; put marked block into scrap ; ; error codes: err.nf o...
db 1,1,3,4,4,2,2,0,2,1,2,0,0,3,3,2 db 0,2,2,2,0,2,3,2,2,0,2,0,0,2,3,2 db 1,0,1,2,0,1,2,3,2,2,3,3,2,0,2,0 db 0,2,2,1,2,3,4,4,3,0,4,4,0,2,0,1 db 3,1,0,3,2,0,0,2,3,3,3,2,4,2,3,2 db 2,2,0,4,2,4,2,3,2,1,1,2,3,1,0,1 db 3,1,4,0,1,2,0,4,3,3,1,1,0,4,1,2 db 1,1,0,1,2,3,4,4,2,0,4,3,2,4,4,0 db 0,3,0,2,2,1,1,0,4,2,2,2,1,3...
section .text ; int64 double2fixed(double n, int8 scale) global double2fixed ; double fixed2double(int64 n, int8 scale) global fixed2double ; int64 int2fixed(int64 n, int8 scale) global int2fixed ; int64 fixed2int(int64 n, int8 scale) global fixed2int ; int64 fraction(int64 n, int8...
SECTION code_clib PUBLIC sleep PUBLIC _sleep EXTERN msleep sleep: _sleep: ld a,h or l ret z push hl ld hl,1000 call msleep pop hl dec hl jr sleep
SECTION code_clib SECTION code_stdio PUBLIC __stdio_scanf_number_head EXTERN __stdio_recv_input_eat_ws_repeat, __stdio_recv_input_eatc __stdio_scanf_number_head: ; enter : bc = field width (0 means use default) ; de = void *buffer ; a = char buffer_len ; hl = int (*qualify)(cha...
RocketHideout3Object: db $2e ; border block db $2 ; warps db $6, $19, $1, ROCKET_HIDEOUT_2 db $12, $13, $0, ROCKET_HIDEOUT_4 db $0 ; signs db $4 ; objects object SPRITE_ROCKET, $a, $16, STAY, RIGHT, $1, OPP_ROCKET, $e object SPRITE_ROCKET, $1a, $c, STAY, UP, $2, OPP_ROCKET, $f object SPRITE_BALL, $1a, $11, ...
HazeEffect_: ld a, $7 ; store 7 on every stat mod ld hl, wPlayerMonAttackMod call ResetStatMods ld hl, wEnemyMonAttackMod call ResetStatMods ; copy unmodified stats to battle stats ld hl, wPlayerMonUnmodifiedAttack ld de, wBattleMonAttack call ResetStats ld hl, wEnemyMonUnmodifiedAttack ld de, wEnemyMonAttack...
.data newLine: .asciiz "\n" .text main: addi $s0, $zero, 10 jal increaseMyRegister # function call #print a new line li $v0,4 la $a0, newLine syscall #print value li $v0,1 move $a0, $s0 syscall li $v0, 10 syscall increaseMyRegister: addi $sp, $sp, -4 # allocate 4 bytes, to allo...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/CSpec FILE: cspecList.asm ROUTINES: Name Description ---- ----------- GLB OLBuildList Convert a generic list to the OL equivalen...
; *** text *** ; -------------------- [ Routine: print_char ] -------------------- ; ----------------------- prints a character ---------------------- ; IN: al = character to print print_char: mov ah, 0x0e int 0x10 ret ; -------------------- [ Routine: print_char_at_cursor ] -------------------- ; -------------...
; Test all illegal RMW opcodes (DCP,ISC,RLA,RRA,SLO,SRE) in all of their ; addressing modes (6 * 7 = 42). Test ISC and RRA in decimal mode as well. ; ; Expected Result: SP = $81 ; ; After the test the stack should look like this: ; ; 0 1 2 3 4 5 6 7 8 9 A B C D E F ; 0180 00 34 0F 4C B5 D5 4E...
;---------------------------------------------------- ; interupts.asm : interruption vectors ; ; (c) 2007 Vincent 'MooZ' Cruz ; ; Interruption vectors for each of the pce ; interruptions. ; ; LICENCE: not my fault if anything burns ; ;;--------------------------------------------------------------------- ;...
;================================================= ; Name: Adrian Harminto ; Email: aharm002@ucr.edu ; ; Assignment name: Assignment 3 ; Lab section: 24 ; ; I hereby certify that I have not received assistance on this assignment, ; or used code, from ANY outside source other than the instruction team. ; ;==...
$8000 78 SEI $8001 d8 CLD $8002 a2 00 LDX #$00 $8004 86 70 STX $70 $8006 86 72 STX $72 $8008 86 71 STX $71 $800a 86 73 STX $73 $800c 9a TXS $800d a9 20 LDA #$20 $800f 9d 00 02 STA $0200,X $8012 9d 00 03 STA $0300,X $8015 9d 00 04 STA $0400,X $8018 e8 INX $8019 d0 f4 BNE $f4 ...
Name: sfxdos..asm Type: file Size: 11129 Last-Modified: '1991-10-30T08:41:36Z' SHA-1: C360110AFEC4E69D6A7D9240D62F463F441D9F7E Description: null
// Original test: ./lena/hw4/problem6/jalr_1.asm // Author: lena // Test source code follows //test that jalr returns to proper instruction with offset jal 4 halt nop addi r1, r7, 2 jalr r1, -2
.MODEL TINY .DATA DAT1 DB 20H PREV DB 00H .CODE .STARTUP ;SETTING THE DISPLAY MODE MOV AL, 3 MOV AH, 0 INT 10H MOV AH, 2 ;SETTING THE CURSOR POSITION MOV BH, 0 MOV DX, 0 ;SETTING THE ROW AND COLUMN TO ZERO INT 10H MOV AL, DAT1 MOV AH, 09H MOV BH,0 MOV CX,13*80 MOV B...
; compile dengan cara ; nasm -f elf32 -o namafile.o namafile.asm ; ld -m elf_i386 -o namafile namafile.o ; ./namafile section .text global _start _start: mov edx, len ; panjang dari pesan mov ecx, msg ; pesan yang akan di write mov ebx, 1 ; stdout mov eax, 4 ; sys_wri...
;;;;;;; webvars.asm ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Copyright (c) 2000 G. Adam Stanislav ; 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 s...
/ RISC-V assembly code to implement a function int foo(void) { return 2; } / .foo: addi x5, x0, 2 jalr x0, 0(x1) .main: addi x6, x0, 3 jal x1, .foo add x7, x5, x6 .print x7 end
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; Serial libraries ; ; ; ------ ; $Id: ozserialin.asm,v 1.3 2016/06/27 21:25:36 dom Exp $ ; SECTION code_clib PUBLIC ozserialin PUBLIC _ozserialin ozserialin: _ozserialin: in ...
org 7c3eh call enter_vga ;*************** ;* LET'S GET FREAKY mov al,64h mov cx,0c82h ;lappy: rep stosb ; loop lappy ; mov al,32h mov cx,0780h ;lappy2: rep stosb ; loop lappy2 ;*************** ;* DECODER ;* decoder: ;es should be set up by enter_vga mov si,disk xor di,di ;zero di for 0,0 xy mov cx,33h...
.section "smsspec.console.data" free .asciitable map " " to "~" = 0 .enda smsspec.console.data.heading: .asc "SMSSpec" .db $ff ; terminator byte smsspec.console.data.allTestsPassed: .asc "All tests passed!" .db $ff ; terminator byte smsspec.palette_data: ...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ;TEST_BEGIN_RECORDING lea rdi, [rsp-0xc] mov word [rdi], 0x2 FILD word [rdi] mov word [rdi], 0x5 FILD word [rdi] ; get remainder of 5/2 FPREM mov edi, 0 ;TEST_END_RECORDING
; Ti82 interrupt 'wrapper' - by Henk Poley ;----------------------------------------------------------------------------- ; The z88dk makes extensively use of the shadow registers (EXX and EX AF,AF) ; The Ti82 system interrupt doesn't preserve (any of) these regs and ; could thus crash your program. The workaround is ...
%ifdef CONFIG { "RegData": { "XMM0": ["0x4142434445464748", "0x7172737475767778"], "XMM1": ["0x0000414200004546", "0x0000717200007576"], "XMM2": ["0x0", "0x0"], "XMM3": ["0x4142434445464748", "0x7172737475767778"], "XMM4": ["0x0000414200004546", "0x0000717200007576"], "XMM5": ["0x0", "0x...
MOV SI,1000 MOV DI,2000 MOV CX,0F MOV AL,[SI] MOV [DI],AL INC SI INC DI LOOP 109
;DecHex Binary Color ;0 0 0000 Black ;1 1 0001 Blue ;2 2 0010 Green ;3 3 0011 Cyan ;4 4 0100 Red ;5 5 0101 Magenta ;6 6 0110 Brown ;7 7 0111 Light Gray ;8 8 1000 Dark Gray ;9 9 1001 Light Blue ;10 A 1010 Light Green ;11 B 1011 Light Cyan ;12 C 1100 Light Red ;13 D 1101 Light Magenta ;14 E 1110 Yellow ;1...
scr_clear: lda #scr_clear_char ldx #0 // `wis' alle karakters door alles te vullen met spaties !l: sta $0400, x sta $0500, x sta $0600, x sta $06e8, x inx bne !l- // verander kleur van alle karakters lda #scr_clear_color ldx #0 !l: sta $d800, x sta $d900, x sta $da00, x sta $dae8, x inx bne !l- rts
.byte $01 ; Unknown purpose .byte OBJ_REDTROOPA, $1D, $15 .byte OBJ_FLYINGREDPARATROOPA, $29, $16 .byte OBJ_REDTROOPA, $37, $13 .byte OBJ_REDTROOPA, $38, $18 .byte $FF ; Terminator
; ; 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 of...
db DEX_EKANS ; pokedex id db 35 ; base hp db 60 ; base attack db 44 ; base defense db 55 ; base speed db 40 ; base special db POISON ; species type 1 db POISON ; species type 2 db 255 ; catch rate db 62 ; base exp yield INCBIN "pic/ymon/ekans.pic",0,1 ; 55, sprite dimensions dw EkansPicFront dw EkansPicBack ; attacks k...
Name: effect.asm Type: file Size: 61229 Last-Modified: '1993-07-20T07:13:22Z' SHA-1: 269E3A56B08A6A3D7892BE1015827C4AE1E20564 Description: null
; ; This file is a part of Pcompress, a chunked parallel multi- ; algorithm lossless compression and decompression program. ; ; Copyright (C) 2012-2013 Moinak Ghosh. All rights reserved. ; Use is subject to license terms. ; ; This program is free software; you can redistribute it and/or ; modify it under the terms of t...
include "reg.inc" section "header", rom0[$0100] nop jp main ds $4C section "main", rom0 main: xor a, a ld [REG_LCDC], a ld a, $93 ld [REG_BGP], a ld [REG_OBP0], a ld a, $03 ld [REG_IE], a call random_init call tiles_init call oam_init call background_init call player_init...
org 0x100 cpu 8086 mov si,0x81 searchArgLoop: lodsb cmp al,0x20 je searchArgLoop dec si mov [startOfArg + 1],si searchLoop: lodsb cmp al,0x20 je foundEnd cmp al,0x0d jne searchLoop foundEnd: dec si mov byte[si],0 cmp si,0x81 je error ; Load data file mov ax,0x3d00 startOfArg: mov...
.model small .STACK .DATA array db 7,20,4,3,100 N db 5 .CODE .STARTUP mov cx,00 mov cl,N mov al,array[si] max: cmp al,array[si] jle ahead mov al,array[si] ahead: inc si loop max END
; 11.4 ; Write a program that fills each screen cell with a random character in a random color. Extra: ; Assign a 50% probability that the color of any character will be red. .386 .model flat, STDCALL option casemap:none include irvine32.inc ;include windows.inc ;include kernel32.inc .data charToPrint BYTE ? color...
; q13.asm ; display all numeric data input by user, filter out all other characters .MODEL SMALL .STACK 100 .DATA INPROMPT DB "Please enter any data and press enter >> $" OUTPROMPT DB "The numerical value is >> $" NL DB 13, 10, "$" KBINPUT LABEL BYTE MAXC DB 50 ...
; ; Copy the graphics from screen to the zx printer ; It can be used for any redefined (or not) pseudo-graphics, fonts and characters. ; ; Traps the BREAK key to avoid an unwanted C program termination, etc.. ; ; Stefano Bodrato, 2018 ; ; ; $Id: zx_hardcopy.asm $ ; SECTION code_clib PUBLIC zx_hardcopy PUBL...
$INCLUDE(port_cpu.inc) .PUBLIC _cpu_first_task_start .PUBLIC _task_switch .PUBLIC _cpu_intrpt_switch .EXTERN _g_preferred_ready_task .EXTERN _g_active_task .EXTERN _sys_isr_enter .EXTERN _sys_isr_exit .SECTION .text,TEXT _cpu_first_task_start: ...
copyright zengfr site:http://github.com/zengfr/romhack 0143C8 sub.b ($4c,A0,D0.w), D6 0143CC bcs $14348 [123p+ 4C, enemy+4C, enemy+4D] 014666 sub.b ($4c,A0,D0.w), D6 01466A bcs $14348 [123p+ 4C, 123p+ 4D, enemy+4C, enemy+4D] copyright zengfr site:http://github.com/zengfr/romhack
Map_22A310: dc.w Frame_22A388-Map_22A310 dc.w Frame_22A396-Map_22A310 dc.w Frame_22A350-Map_22A310 dc.w Frame_22A35E-Map_22A310 dc.w Frame_22A36C-Map_22A310 dc.w Frame_22A37A-Map_22A310 dc.w Frame_22A37A-Map_22A310 dc.w Frame_22A37A-Map_22A310 dc.w Frame_22A37A-Map_22A310 dc.w Frame_22A37A-Map_22A310 ...
BITS 32 global _start section .text _start: mov esi, _virus mov edi, virus mov ecx, code_size cld rep movsb mov eax, virus lea ebx, [eax + (virus_data - _virus)] mov [eax + fix_vd], ebx jmp virus _virus: align 1024 mov ebp, strict dword 0 fix_vd equ $ - 4 - _virus mov eax, [ebp + (v...
.text li $12, 0x0c01 mtc0 $12, $12 li $1, 500 li $2, 9 sw $1, 0x7f04($0) sw $2, 0x7f00($0) li $1, 1000 sw $1, 0x7f14($0) sw $2, 0x7f10($0) lw $1, 0x7f00($0) lw $1, 0x7f04($0) lw $1, 0x7f10($0) lw $1, 0x7f14($0) li $1, 0 li $2, 0 for: ori $3, $3, 0 beq $1, $0, for nop beq $2, $0, for nop lw $1, 0x7f00($0) lw $1, 0...
Map_360400: dc.w Frame_360416-Map_360400 ; ... dc.w Frame_36042A-Map_360400 dc.w Frame_36043E-Map_360400 dc.w Frame_360452-Map_360400 dc.w Frame_360466-Map_360400 dc.w Frame_36047A-Map_360400 dc.w Frame_360482-Map_360400 dc.w Frame_36048A-Map_360400 dc.w Frame_360492-Map_360400 dc.w Frame_36049A-Map_3...
; int __CALLEE__ adt_QueuePushBack_callee(struct adt_Queue *q, void *item) ; 09.2005 aralbrec PUBLIC adt_QueuePushBack_callee PUBLIC ASMDISP_ADT_QUEUEPUSHBACK_CALLEE EXTERN _u_malloc .adt_QueuePushBack_callee pop hl pop de ex (sp),hl .asmentry ; enter: HL = struct adt_Queue * ; DE = item ; exit : ...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.5.0 #9253 (Jun 20 2015) (MINGW64) ; This file was generated Thu Aug 18 09:46:52 2016 ;-------------------------------------------------------- ; PIC16 port for the Microchip 16-bit core micros...
///////////////////////////////////////////////////////////////////////// // // // my_asm(peasm) v0.2 for win32 // // assembler to x86 machine code compiler written in Delphi // // ...
SECTION code_fp_math16 PUBLIC l_f16_neg PUBLIC negf16 EXTERN asm_f16_neg defc l_f16_neg = asm_f16_neg defc negf16 = asm_f16_neg ; SDCC bridge for Classic IF __CLASSIC PUBLIC _negf16 defc _negf16 = negf16 ENDIF
page ,132 title cmiscdat - miscellaneous C run-time data ;*** ;cmiscdat.asm - miscellaneous C run-time data ; ; Copyright (c) 1987-1988, Microsoft Corporation, All Rights Reserved ; ;Purpose: ; Includes floating point conversion table (for C float output), ; a data structure used by signal/exec to tell if a SIGINT ha...
; BSD 3-Clause License ; ; Copyright (c) 2020, k4m1 <k4m1@protonmail.com> ; All rights reserved. ; ; 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 no...
# Multiplies the values in x and y and displays the result init: LDA x STA product # Initialize product with value of x loop: LDA y SUB one # Subtract 1 from y STA y JZ halt # Halt if y is now zero LDA product ADD x STA product # Add x to product JMP loop halt: OUT HLT one: 1 # Constant 1 x: 4 y: ...
;[]-----------------------------------------------------------------[] ;| DATE.ASM -- string to date-time convertiong functions | ;[]-----------------------------------------------------------------[] ; ; $Copyright: 2005$ ; $Revision: 1.1.1.1 $ ; ;AnsiString __fastcall AnsiString(const DateTime &value) ...
;;; eflags carry flag %define eflags_cf 0x0001 ;;; eflags parity flag %define eflags_pf 0x0004 ;;; eflags adjust flag %define eflags_af 0x0010 ;;; eflags zero flag %define eflags_zf 0x0040 ;;; eflags sign flag %define eflags_sf 0x0080 ;;; eflags trap flag %define eflags_tf 0x0100 ;;; eflags interrupt enable flag %def...
UndergroundPathRoute8_Object: db $a ; border block db 3 ; warps warp 3, 7, 4, -1 warp 4, 7, 4, -1 warp 4, 4, 1, UNDERGROUND_PATH_WEST_EAST db 0 ; signs db 1 ; objects object SPRITE_GIRL, 3, 4, STAY, NONE, 1 ; person ; warp-to warp_to 3, 7, UNDERGROUND_PATH_ROUTE_8_WIDTH warp_to 4, 7, UNDERGROUND_PATH_ROU...
; F-Zero Climax Translation by Normmatt .align 4 StoryEpisode10PointerList: .word Episode10_Line1 .word Episode10_Line2 .word Episode10_Line3 .word Episode10_Line4 .word Episode10_Line5 .word Episode10_Line6 .word Episode10_Line7 .word Episode10_Line8 .word Episode10_Line9 .word Episode10_Line10 .word Epis...
copyright zengfr site:http://github.com/zengfr/romhack 00A2C6 dbra D0, $a2c0 00A382 dbra D0, $a37c 00A6BE clr.w ($a2,A6) 00A6C2 clr.b ($a0,A6) 00A862 clr.w ($a2,A6) 00A866 clr.b ($a0,A6) 00BA50 rts 00BC34 bra $be08 00BC3C clr.b ($a0,A6) [1p+A2] 00BDE4 clr.w ($a2,A6) 00BDE8 clr....
; 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. ; *********************************************************************** ; File: PInvokeStubs.asm ; ; ****************...
push_and_call macro push ax push bx call ncr pop bx pop ax endm exit macro mov ah, 4ch int 21h endm .model small .stack 64 .data n_value db 6 r_value db 3 result db 0 .code mov ax, @data mov ds, ax mov al, n_value mov bl, r_value call ncr exit ...
; ; Windows-NT MVDM Japanese DOS/V Font driver ; .286 include struc.inc include ntfont.inc include vint.inc NO_ERROR equ 00h IRREGAL_FONT_TYPE equ 01h IRREGAL_BL equ 02h IRREGAL_FONT_SIZE equ 03h IRREGAL_CODE_PAGE equ 04h IRREGAL_CODE_NUMBER equ 05h READ_ONLY_FONT equ 06h FONT_ENABLE equ 0001h...
; ; Win32.VxersPELoaderTool ; ; This code by itself its not a virus, but it will help ;) ; ; This code without WormBinary really is nothing. It doesnt infect or propagate in any ; manner.This code consist of a PE loader that will load a PE file. This PE loader will ; receive some parameters that will do it lot o...
* Sprite cellcopy * * Mode 4 * +|-------------------+ * -wwwwwwwwwww - * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrwwrrrw | * |wrrrwaawwrw | * |wrrrrwwaaww www | * |wrrrrrrwwaawwaawwwww| * |wwwwwwwwwwwaaaawrrrw| * | waaaaaawrrrw| * | wwwwwwwwrrrw| * | wrrrrrrrrrw| * ...
; z_address !byte 0,0,0 ; z_address_temp !byte 0 set_z_address stx z_address + 2 sta z_address + 1 lda #$0 sta z_address rts +make_acorn_screen_hole dec_z_address pha dec z_address + 2 lda z_address + 2 cmp #$ff bne + dec z_address + 1 lda z_address + 1 cmp #$ff ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: prefmous.asm AUTHOR: Gene Anderson, Aug 25, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descr...
; ==================================================== ; ; MCU: PIC16F84A ; CLOCK: 4MHz ; ; Author: https://github.com/Guilherme-De-Marchi ; Date: 10-21 ; ; ==================================================== ; ; ; ---------------- Circuit commands ------------------ ; ; This PIC will be part of a circui...
;************************************************************** ; SVP Tests ;************************************************************** ; by Javi Taiyou ;************************************************************** ; This sample is a way to run basic code tests on the SVP ; in order to find out more about its beh...
; 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. ; ==++== ; ; ; ==--== ; ; *** NOTE: If you make changes to this file, propagate the changes to ; dbghe...
global thread_main extern malloc extern free extern fopen extern fclose extern fscanf extern printf extern perror default rel %include "cabna/sys/iface.nasm" %assign board_dim 9 %assign board_size board_dim * board_dim struc element .value: resd 1 .potentials: resd 1 endstruc section .data amount_...
; fastcall ABI: ; return = eax ; arguments = ecx,edx ; non-volatile registers = ebp,esi,edi,ebx co_swap_fastcall(to = ecx, from = edx): mov [edx],esp mov esp,[ecx] pop eax mov [edx+ 4],ebp mov [edx+ 8],esi mov [edx+12],edi mov [edx+16],ebx mov ebp,[ecx+ 4] mov esi,[ecx+ 8] mov ed...
;; Fastasia sound cell ;; Copyright 2001 Phil Frost ;; Distributed under the BSD license ;; * provided functions * ;; ;; __play_sound single_shot 5500 1 ;; __play_sound stream 5500 2 ;; __install_check sb 5570 1 ;; __set_sample_rate noclass 5571 0 ;; __set_speaker enable 5560 1 ;; __set_speaker disable 5560 2 ;...
shl(1) a0<1>UW a0<0,1,0>UW 0x0002UW { align1 WE_all 1N }; shl(1) g12.2<1>UD g12.2<0,1,0>UD 0x0000000cUD { align1 WE_all 1N }; shl(8) g87<1>.xD g4<0>.zD 0x00000004UD { align16 1Q }; shl(8) g13<1>.xyD g5.4<0>.zwwwD g6<0>.xyyyUD { al...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: trSmallGet.asm AUTHOR: John Wedgwood, Feb 12, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date De...
;start.asm bits 32 extern main global _start section .text _start: lea eax, [esp + 4] mov ecx, [esp] lea edx, [eax + ecx * 4 + 4] push edx push eax push ecx call main add esp, 12 mov ebx, eax mov eax, 1 int 0x80
; -------------------------------------------------------------- ; 作者:彭剑桥 ; 创建时间:2019-09-10 20:00 Feb. ; 编辑环境: OS: Deepin 15.9.1 unstable ; Kernel: x86_64 Linux 4.15.0-29deepin-generic ; 功能:操作系统内核加载程序,用于在磁盘中寻找系统内核并将其载入内存,然后 ; 将系统控制权转交给内核 ; -------------------------------------------------------------- ; ...
; ; ANSI Video handling for the MSX ; ; Handles colors ; ; Scrollup ; ; Stefano Bodrato - Sept. 2017 ; ; $Id: f_ansi_scrollup_nobios.asm $ ; SECTION code_clib PUBLIC ansi_SCROLLUP EXTERN msx_attr EXTERN LDIRVM EXTERN LDIRMV EXTERN FILVRM .ansi_SCROLLUP push ix ld b,23 ld hl,256 .scloop push ...
; line: 'important to me.' ; size in bytes: 17 line_0: db #10,#79,#7f,#86,#84,#8a,#8e,#69,#82,#8e,#00,#8e,#84,#00,#7f,#71 db #14 end_line_0: ; line: 'I don't need this diary anymore...' ; size in bytes: 35 line_1: db #22,#3b,#00,#6f,#84,#82,#08,#8e,#00,#82,#71,#71,#6f,#00,#8e,#77 db #79,#8c,#00,#6f,#79,...
SHOT_ATTRIBUTE macro db 0 ; 0: disable, 1: enable dw 0 ; delta X dw 0 ; X position dw 0 ; delta Y dw 0 ; Y position db 0 ; animation counter 0...15 dw 0 ; reserved dw 0 ; reserved dw 0 ; reserved endm shot_table: repeat I, 32 SHOT_ATTRIBUTE endr dw 1
.MODEL small ;************************************************* ; Filename: hpscan16.asm ; Purpose: Stub DOS Device Driver. Pass device ; "HPSCAN" requests to the VDD, hpscan32.dll. ; Environment: MSDOS, Windows NT. ; (C) Hewlett-Packard Company 1993. ;************************************************* INCLU...
; ; Small C+ Compiler ; ; Long Support Library ; ; 1/3/99 djm ; This routine is used to push longs on the stack for a ; call to a function defined as a pointer. To make the ; routine shorter (by one byte) we could use ix - pop ix/jp(ix) ; but we'd lose 6T - give me you...
NUM1 DATA 50H NUM2 DATA 51H OUT1 DATA 53H OUT2 DATA 54H ORG 0000H AJMP START ORG 0100H START: MOV NUM1, #12H ;NUM1 = 12H MOV NUM2, #21H ;NUM2 = 21H MOV A, NUM1 ;A 赋值为NUM1 ADD A, NUM2 ;A 值为 NUM1 + NUM2 MOV OUT1, A ;OUT1 = NUM1 + NUM2 加法完成 ...
; hello2-DOS.asm - single-segment, 16-bit "hello world" program ; ; This demonstrates single-character output as well as string output ; via DOS services ; ; assemble with "nasm -f bin -o hi.com hello2-DOS.asm" org 0x100 ; .com files always start 256 bytes into the segment ; int 21h is going to want.....
# test source file for assembling to MACH-O # build with : # yasm -f macho machotest.asm # gcc -o machotest machotest.c machotest.o # This file should test the following: # [1] Define and export a global text-section symbol # [2] Define and export a global data-section symbol # [3] Define and export a global BS...
// Write an 8085 assembly language program to store the data type FFH in the memory location 9000H LXI H,9000 MVI M,FF HLT
CeladonMart3Script: jp EnableAutoTextBoxDrawing CeladonMart3TextPointers: dw CeladonMart3Text1 dw CeladonMart3Text2 dw CeladonMart3Text3 dw CeladonMart3Text4 dw CeladonMart3Text5 dw CeladonMart3Text6 dw CeladonMart3Text7 dw CeladonMart3Text8 dw CeladonMart3Text9 dw CeladonMart3Text10 dw CeladonMart3Text11 ...
#include "Platform.inc" radix decimal ClockRam udata global clockYearBcd global clockMonthBcd global clockDayBcd global clockHourBcd global clockMinuteBcd global clockSecondBcd global clockFlags global dayOfYearHigh global dayOfYearLow clockYearBcd res 1 clockMonthBcd res 1 clockDayBcd res 1 clockHourBcd ...
; Original address was $B787 ; 8-1 .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_11 | LEVEL1_YSTART_180 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_INDEX(1) | LEVEL4_INITACT_NOTHING ...
; ;================================================================================================== ; ENCODE 32-BIT VALUES TO A 5-BIT SHIFT-ENCODED VALUE ;================================================================================================== ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...