content
stringlengths
23
1.05M
# Who: Taylor Thurlow # What: project4.asm # Why: Practicing usage of the stack # When: 30 May 2017 # How: Prompts for integers, stores them in the stack sorted, and finally # prints them in order. .data prompt_quantity: .asciiz "Please enter the desired number of integers [1,100]: " prompt_integer: .asciiz ...
; 实验8 assume cs:code code segment mov ax, 4c00H int 21H start: mov ax, 0 s : nop nop mov di, offset s mov si, offset s2 mov ax, cs:[si] mov cs:[di], ax ; 这里的其实是把s2的地址给了s s0: jmp short s s1: mov ax, 0 int 21H mov ax, 0 s2: jmp short s1 nop code e...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: helpControl.asm AUTHOR: Gene Anderson, Oct 22, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date De...
.include "constants.inc" .include "header.inc" .segment "CODE" .proc irq_handler RTI .endproc .proc nmi_handler LDA #$00 STA OAMADDR LDA #$02 STA OAMDMA LDA #$00 STA $2005 STA $2005 RTI .endproc .import reset_handler .import load_background_01 .segment "RODATA" palettes: ; background palettes, mo...
.model small .data .code main proc mov ax,000AH mov bl,02H div bl endp end main
!cpu w65c02 !src "cx16.inc" +SYS_LINE !src "vera0.9.inc" !src "farbranch.inc" !src "globals.inc" !src "functions.inc" !src "levelfuncs.inc" GATE_SELECT=0 GATE_PLACE=1 WIRE_START=2 WIRE_END=3 CLEAR=4 OUTPUT=5 ARROW_UP=$91 ARROW_DOWN=$11 ARROW_LEFT=$9D ARROW_RIGHT=$1D TABULATOR=$09 ENTER=$0D SPACE=$20 ESCAPE=$03 jm...
// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License...
############################################################################### # Copyright 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") containe...
; A230900: a(n) = 2^Lucas(n). ; 4,2,8,16,128,2048,262144,536870912,140737488355328,75557863725914323419136 seq $0,32 ; Lucas numbers beginning at 2: L(n) = L(n-1) + L(n-2), L(0) = 2, L(1) = 1. seq $0,79 ; Powers of 2: a(n) = 2^n.
; void __CALLEE__ sp1_IterateSprChar_callee(struct sp1_ss *s, void *hook1) ; 02.2006 aralbrec, Sprite Pack v3.0 ; sinclair zx version SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_IterateSprChar_callee EXTERN asm_sp1_IterateSprChar sp1_IterateSprChar_callee: pop hl pop ix ex (sp),hl jp asm_sp1_It...
.586 .MODEL flat,stdcall option casemap:none include windows.inc include user32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib kernel32.lib includelib msvcrt.lib .data .code ;Define function addx proc uses esi ecx add esi,ecx mov eax,esi ret addx endp main PROC ;call function ...
list p = 16f877a #include p16f877a.inc __CONFIG _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _BOREN_OFF & _LVP_OFF & _CPD_OFF & _WRT_OFF & _CP_OFF ORG 0 D1 equ h'20' ; Delay variable D2 equ h'21' ; Delay variable D3 equ h'22' ; Delay variable SECOND equ h'23' ; variable for second MINUTE equ h...
; ============================================================================= ; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems ; Copyright (C) 2008-2012 Return Infinity -- see LICENSE.TXT ; ; Interrupts ; ============================================================================= ; --...
; A096446: Number of reduced primitive positive definite binary quadratic forms of determinant n. ; 1,1,2,1,2,2,2,3,2,2,4,2 mov $2,$0 lpb $0 mov $0,$2 div $0,2 add $1,1 bin $2,2 add $3,1 div $0,$3 lpb $1,2 sub $0,$3 add $1,$0 dif $1,6 div $2,2 mov $3,$2 lpe mul $3,2 add $4,1 lpe...
GetFirstPokemonHappiness: ld hl, wPartyMon1Happiness ld bc, PARTYMON_STRUCT_LENGTH ld de, wPartySpecies .loop ld a, [de] cp EGG jr nz, .done inc de add hl, bc jr .loop .done ld [wNamedObjectIndexBuffer], a ld a, [hl] ld [wScriptVar], a call GetPokemonName jp CopyPokemonName_Buffer1_Buffer3 CheckFirstMon...
[BITS 64] [EXTERN _GLOBAL_OFFSET_TABLE_] [EXTERN __preinit_array_start] [EXTERN __preinit_array_end] [EXTERN __init_array_start] [EXTERN __init_array_end] [EXTERN __fini_array_start] [EXTERN __fini_array_end] [EXTERN _main] ;[EXTERN __cxa_finalize] [SECTION .text.startup] [GLOBAL _start:function (_start.end - _sta...
; ; 6 5 0 2 F U N C T I O N A L T E S T ; ; Copyright (C) 2012-2015 Klaus Dormann ; ; This program is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) an...
# Simple jump example JMP Main # Skip here PUSH 12 PUSH 6 ADD SYS 3 #Execute here Main: PUSH 100 SYS 3 HLT
BattleCommand_StartSandstorm: ; startsandstorm ld a, [wBattleWeather] cp WEATHER_SANDSTORM jr z, .failed ld a, WEATHER_SANDSTORM ld [wBattleWeather], a ld a, 5 ld [wWeatherCount], a call AnimateCurrentMove ld hl, SandstormBrewedText jp StdBattleTextbox .failed call AnimateFailedMove jp PrintButItFailed
# x86 mpn_divrem_1 -- mpn by limb division extending to fractional quotient. # # cycles/limb # K7 42 # K6 20 # P6 40 # P5 44 # 486 approx 43 maybe # Copyright (C) 1999, 2000 Free Software Foundation, Inc. # # This file is part of the GNU MP Library. # # The GNU MP Library is free s...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" ; Makes the game dump global variables to the log file when a game is over. ; Author: Rampastring sstring str_GlobalVariables, "Global variables: %s" ; Hack Do_Win to call our function hack 0x005DC966 call 0x00643F20 ; ThemeCl...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // POSITION 0 xyz 0 NONE float xyz // /...
; Filename: bindtcp.asm ; Author: Reuben Sammut ; SLAE ID: 510 global _start section .text _start: ; create socket xor eax, eax cdq ; extend sign of eax to edx (edx = 0) mov ebx, eax mov al, 0x66 ; socketcall mov bl, 0x1 ; cmd = socket (1) push edx ; protocol = 0 push 0x1 ; type = SOCK_STREAM (...
SECTION code_clib PUBLIC pointxy EXTERN pointxy_MODE0 EXTERN pointxy_MODE1 EXTERN __gal_mode pointxy: ld a,(__gal_mode) cp 1 jp z,pointxy_MODE1 and a ret nz jp pointxy_MODE0
;;; Programming the PC Speaker the normal way ;;; ;;; Plays the C Major scale by setting approprate frequencies on the ;;; Programmable Interrupt Timer's channel 2. ;;; ;;; Target frequencies were computed by selecting from the values ;;; computed by these list comprehensions: ;;; ;;; freqs = [220 * 2**(c/12.0) for c ...
;ASTER 06/03/2009 1245 ;TO BE ASSEMBLED IN KEIL MICROVISION V3.60 ;ARTIFICIAL INTELLIGENCE ;MICROCOMPUTER B SERVO ;----------------------------------------------------------------------------------------------------------- ;SET THE ASSEMBLER FOR AT89S52 $NOMOD51 $INCLUDE (AT89X52.h) ;------------------------------...
;name: wordbcd2bin.asm ; ;description: wordbcd2bin: packed bcd word to binary conversion. ; ;use: ;packed bcd: mov rdi,packedbcd ; call wordbcd2bin ; ;build: nasm -felf64 wordbcd2bin.asm -o wordbcd2bin.o bits 64 global wordbcd2bin section .text wordbcd2bin: ;convert packed bcd in AX to ...
; Sets paper color in ATTR_P permanently ; Parameter: Paper color in A register #include once <const.asm> PAPER: PROC LOCAL __SET_PAPER LOCAL __SET_PAPER2 ld de, ATTR_P __SET_PAPER: cp 8 jr nz, __SET_PAPER2 inc de ld a, (de) or 038h ld (de), a ret ; Another entry. This will set the paper color at loc...
;entete extrn lirent:proc extrn ecrent:proc extrn ecrbool:proc extrn ecrch:proc extrn ligsuiv:proc .model SMALL .586 .DATA FALSE EQU 0 TRUE EQU -1 .CODE debut : STARTUPCODE ;ouvrePrinc 6 mov bp,sp sub sp,6 ;ecrireChaine "x=" .DATA mess0 DB "x=$" .CODE lea dx, mess0 push dx call ecrch ;lireEnt -2 lea dx,[bp-2] push dx c...
bsize equ 0x1 ; byte wsize equ 0x2 ; word lsize equ 0x4 ; long word tsize equ 0x20 ; tile psize equ 0x40 ; palette LibraryData: vblank_counter equ 0x00FF0000 ; l hblank_counter equ (vblank_counter+lsize) ; l i0 equ (hblank_counter+lsize) ; l i1 equ (i0+lsize) ; l i2 equ (i1+lsi...
SECTION rodata_font SECTION rodata_font_8x8 PUBLIC _font_8x8_clairsys_bold PUBLIC _font_8x8_clairsys_bold_end _font_8x8_clairsys_bold: IF __CPU_GBZ80__ INCLUDE "target/gb/fonts/lower.asm" ENDIF BINARY "font_8x8_clairsys_bold.bin" _font_8x8_clairsys_bold_end:
Name: kart-ppu-e.asm Type: file Size: 21805 Last-Modified: '1992-08-06T07:17:26Z' SHA-1: AA2583A85AD0CA8E78FB0C2DF00B0D88643EC766 Description: null
;* RNG-UCITY ;* (Adapted) Copyright (c) 2019 Szieberth Ádám ;* Derived from the µCity 1.2 ([UCITY]) source code with the following LICENSE ;* which also applies to this file: ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;* Copyright (c) 2017-2018 Antonio Niño Díaz (AntonioND/SkyLyra...
; 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...
str_end: .asciiz "perfect-squares ended" _start: mov r0, 1 # teste comentario mov r2, 8 mov r1, 1 mov r4, data loop: mul r5, r1, r1 store [r4], r5 add r4, r4, r0 add r1, r1, r0 cmp_neq r3, r1, r2 jump_cond r3, loop end: mov r0, 1 mov r1, str_end syscall mov r0, 0 syscall data: .data 10
page ,132 title crt0fp - floating point not loaded trap ;*** ;crt0fp.asm - floating point not loaded trap ; ; Copyright (c) 1986-1988, Microsoft Corporation, All Rights Reserved ; ;Purpose: ; To trap certain cases where certain necessary floating-point ; software is not loaded. Two specific cases are when 87.LIB ; i...
.text .globl func .def func; .scl 2; .type 32; .endef .seh_proc func func: .seh_pushframe @code subq $24, %rsp .seh_stackalloc 24 movq %rsi, 16(%rsp) .seh_savereg %rsi, 16 movups %xmm8, (%rsp) .seh_savexmm %xmm8, 0 pushq %rbx .seh_pushreg %rbx mov %rsp, %rbx ....
include io.h cr equ 10 lf equ 13 .model small .Stack 200h .Data newline db cr, lf, 0 number_prompt1 db cr, lf, 'Enter Number one :', 0 number_prompt2 db cr, lf, 'Enter Number two :', 0 number_prompt3 db cr, lf, 'Enter Number three :', 0 number_one db 10 dup(?) number_two db ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: os2Utils.asm AUTHOR: Adam de Boor, Jun 21, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Des...
db "BRUTAL@" ; species name db "It can swim at" next "speeds of 75 mph" next "by jetting" page "seawater through" next "its body. It's the" next "bandit of the sea.@"
/* Copyright 2014 Peter Goodman, all rights reserved. */ #include "arch/x86-64/asm/include.asm.inc" START_FILE_INTEL DECLARE_FUNC(granary_enter_direct_edge) DECLARE_FUNC(granary_enter_indirect_edge) // Context switch into granary. // // Note: We assume flags are save before this function is invoked. // // Note: On ...
; Program to illustrate high-speed text-drawing operation of write mode 3 of the VGA. ; Draws a string of 8x14 characters at arbitrary locations without disturbing the background, ; using VGA's 8x14 ROM font. ; Designed for use with modes 0Dh, 0Eh, 0Fh, 10h, and 12h. ; Runs only on VGAs (in Models 50 & up and IBM Di...
macro CreateRcon target, [char] { mov byte [target], char inc target } ;dynamically generate the rcon in memory ;uses hard coded values, no algorithm proc createRcon rcon_ptr:DWORD push eax mov eax, [rcon_ptr] CreateRcon eax, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c...
_KogaBeforeBattleText:: text "KOGA: Fwahahaha!" para "A mere child like" line "you dares to" cont "challenge me?" para "Very well, I" line "shall show you" cont "true terror as a" cont "ninja master!" para "You shall feel" line "the despair of" cont "poison and sleep" cont "techniques!" done _ReceivedS...
; ; long fdtell(int fd) ; ; Return position in file ; ; Not written as yet! ; ; $Id: fdtell.asm,v 1.4 2009/06/22 21:44:16 dom Exp $ XLIB fdtell INCLUDE "p3dos.def" XREF dodos .fdtell pop hl ;ret address pop bc ;lower 8 is file handle push bc push hl ld b,c ld iy,DOS_GET_POSITION call dodos ld d...
dnl X86-64 mpn_mul_1 optimised for Intel Sandy Bridge. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2003-2005, 2007, 2008, 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 m...
; ; Startup for the s1mp3 players ; GLOBAL _main ; defc CRT_ORG_BSS = 0x7000 defc CRT_ORG_CODE = 0x0000 defc TAR__clib_exit_stack_size = 0 defc TAR__register_sp = 0x4000 defc CONSOLE_COLUMNS = 16 defc CONSOLE_ROWS = 4 INCLUDE "zcc_opt.def" INCLUDE "crt/classic/crt_rules.in...
86_Header: sHeaderInit ; Z80 offset is $CE20 sHeaderPatch 86_Patches sHeaderTick $01 sHeaderCh $02 sHeaderSFX $80, $05, 86_FM5, $FA, $00 sHeaderSFX $80, $C0, 86_PSG3, $04, $00 86_FM5: sPatFM $00 dc.b nA5, $04 86_Loop1: dc.b nEb6, $02 saVolFM $05 sLoop $00, $05, 86_Loop1 sStop 86_PSG3: ssModZ80 $...
org 100h MOV CL,012H MOV DL,0CAH ADD CL,DL ret
; TEST ; a = 0x0C ; b = 0x5C ; c = 0x27 jmp [test] chars: @db '\f' @db '\\', '\'' test: lw a, [(chars + 0)] lw b, [(chars + 1)] lw c, [(chars + 2)] halt
; ************************************************** ; SMSlib - C programming library for the SMS/GG ; ( part of devkitSMS - github.com/sverx/devkitSMS ) ; ************************************************** INCLUDE "SMSlib_private.inc" SECTION code_clib SECTION code_SMSlib PUBLIC asm_SMSlib_reserveSprite EXTERN err...
;---------------------------------------------------------------------------- ; 9432UMAC.ASM ; ; (C) Lanworks Technologies Inc. 1995. All rights reserved. ; ;$History: 9432UMAC.ASM $ ; ; ***************** Version 1 ***************** ; User: Paul Cowan Date: 26/08/98 Time: 9:40a ; Created in $/Client B...
.ORIG x1234 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R6, #0 LDW R0, R0, #0 LDW R1, R0, #0 LDW R2, R1, #0 LDW R3, R2, #0 LDW R4, R3, #0 LDW R5, R4, #0 LDW R6, R5, #0 LDW R0, R6, #0 LDW R1, R0, #0 LDW R2, R1, #0 .END
; void readString(byte* str, int maxLen) readString: push bp mov bp, sp push r0 push r1 push r2 push r3 ; enable cursor mov r0, 1 mov r1, 1 int 6 mov r1, [bp + 8] ; str mov r2, [bp + 12] ; maxLen xor r3, r3 ; len dec r2 ; space for null .block: ; ...
ifndef ??version ?debug macro endm $comm macro name,dist,size,count comm dist name:BYTE:count*size endm else $comm macro name,dist,size,count comm dist name[size]:BYTE:count endm endif ?debug S "dload.c" ?debug C E9C8A27C2F07646C6F61642E63 ?debug C E90008A41415433A5C54435C494E434C5544455C7374646...
db "EMOTION@" ; species name db "It has a psychic" next "power that enables" next "it to distort" page "space around it" next "and see into the" next "near future.@"
#ruledef test { ld1 {x: i8} => 0xaa @ x ld2 {x: s8} => 0xbb @ x ld3 {x: u8} => 0xcc @ x } ld1 "abc" ; error: failed / error: out of range ld2 "ã" ; error: failed / error: out of range ld3 "ü" ; error: failed / error: out of range
;; ;; Test of context-local labels ;; bits 64 extern everywhere ; Test of extern -> global promotion, too extern tjosan here: jz .there %push foo jo %$mordor hlt %$mordor: nop %pop .there: ret everywhere: ret global everywhere tjosan: ret
_MoveReminderGreetingText:: text "Everyone calls me" line "the MOVE MANIAC!" para "But I much prefer" line "MOVE REMINDER." para "I know every" line "single move that" cont "#MON learn" cont "growing up." para "For ¥500, I can" line "make a #MON" cont "remember a move." done _MoveReminderSaidYesText:: ...
// seed 1 lbi r0, 14 // icount 0 slbi r0, 11 // icount 1 lbi r1, 245 // icount 2 slbi r1, 73 // icount 3 lbi r2, 201 // icount 4 slbi r2, 216 // icount 5 lbi r3, 252 // icount 6 slbi r3, 190 // icount 7 lbi r4, 214 // icount 8 slbi r4, 25 // icount 9 lbi r5, 78 // icount 10 slbi r5, 133 // icount 11 lbi r6, 17 // icoun...
MODULE _sprintf SECTION code_clib PUBLIC _sprintf EXTERN asm_printf EXTERN sprintf_outc ;sdcc version ;sprintf(buf,fmt,...) _sprintf: ld hl,2 add hl,sp ;points to buf IF !__CPU_INTEL__ push ix ;save callers ENDIF ld bc,65535 push bc ld c,(hl) ;buf inc hl ld b,(hl) inc hl push bc ex de,hl ld hl...
; Copyright (c) 2018 M D ; ; This software is released under the MIT License. ; https://opensource.org/licenses/MIT [extern isr_handler] [extern irq_handler] isr_common_stub: pusha mov ax, ds push eax mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax push esp cld call isr_handler pop eax ...
; "Rorschach test" ; Not at all what it was supposed to be, ; but it turns out pretty cool and can ; create some interesting patterns. lda #8 tax dr: sta $3cb,x sta $40b,x dex bpl dr sta $3f3 sta $3eb lda #1 sta $3ec ldx #255 mk: lda $fe sta $1200,x lda $fe sta $1300,x lda $fe sta $...
MODULE printf SECTION code_clib PUBLIC printf EXTERN asm_printf EXTERN printf_outc EXTERN __sgoioblk EXTERN fputc_callee ; sccz80 version ;void printf(char *fmt,...) ;{ ; int *ct; ; ct= (getarg()*2)+&fmt-4; ; ; printf1(fp, print_func, sccz80_delta, *ct,ct-1); ;} printf: ld l,a ld h...
data SEGMENT p_n DB cr, lf, 'Enter n: ',0 p_res DB cr, lf, 'The factorial is: ',0 tmpstr DW 40 DUP (?) data ENDS code SEGMENT ASSUME cs:code, ds:data start: mov ax, data mov ds, ax ;input n1 output p_n inputs tmpstr, 10 atoi tmpstr ;initialize mov bx, ax ...
ORG 7c00h ; Permet de faire une partition bootable MOV AH, 0h MOV AL, 13h ; mode video 320*200 256 couleurs INT 10h ; Permet l'affichage JMP InitCouleurTouche ;On commence par l'affichage des touches ;;;;;;;;;; Les differentes notes de musiques ;;;;;;;;; DO_NOTE: MOV AL, 182 OUT 4...
; Dummy function to keep rest of libs happy ; ; $Id: close.asm,v 1.5 2016-03-06 21:39:54 dom Exp $ ; SECTION code_clib INCLUDE "target/test/def/test_cmds.def" PUBLIC close PUBLIC _close .close ._close pop hl pop bc push bc push hl ld b,c ld a,CMD_CLOSEF rst 16 ret
; Original address was $AFEE ; 7-2 .word W301_ExitL ; Alternate level layout .word W301_ExitO ; Alternate object layout .byte LEVEL1_SIZE_08 | LEVEL1_YSTART_070 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDE...
; $Id: EMAllA.asm $ ;; @file ; EM Assembly Routines. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General...
; ; MC6840 PLAY ; Universal Minitor for 6502 ; CPU 6502 TARGET: EQU "6502" ; ;;; Functions low function x,(x & 255) high function x,(x >> 8) ; STROUT EQU $FF98 PT0 EQU $28 ; ; MC6840 PTM Address ; ORG $8030 PTM_CR13 RMB 1 PTM_CR2 RMB 1 PTM_MSBT1 RMB 1 PTM_T1LSB RMB 1 PTM_MSBT2 RMB 1 ...
;TODO convert to att assembly BITS 32 ALIGN 4 global gdt_flush extern gdtpointer gdt_flush: ; Load the GDT lgdt [gdtpointer] ; Flush the values to 0x10 mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:flush2 flush2: ret
;;; Segment 16C6 (16C6:0000) 16C6:0000 0A 16 48 16 0A 16 48 16 ..H...H. ;; fn16C6_0008: 16C6:0008 ;; Called from: ;; 268D:0168 (in main) fn16C6_0008 proc xor cl,cl pushf pop bx mov ax,bx and ah,0Fh push ax popf pushf pop ax and ah,0F0h cmp ah,0F0h jz 0069h l16C6_001D: ...
; ; Grundy Newbrain Specific libraries ; ; Stefano Bodrato - 29/05/2007 ; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; close an open file ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; int close(int handle); ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
@256 D=A //D = 256 @SP M=D //M[SP] = 256 //push returnAddress @returnAddress0 D=A //D=returnAddress0 @SP A=M //A = @SP M=D //M[A] = value to push @SP M=M+1 //sp+1 //push LCL @LCL D=M //D=LCL @SP A=M //A = @SP M=D //M[A] = value to push @SP M=M+1 //sp+1 //push ARG @ARG D=M //D=ARG @SP A=M //A = @SP...
INCLUDE Irvine32.inc INCLUDE Macros.inc .data array DWORD 4 DUP(?) rowSize = ($ - array) DWORD 4 DUP(?) DWORD 4 DUP(?) DWORD 4 DUP(?) siz WORD 4 overhund DWORD 16 DUP(?) rowIndex DWORD ? colIndex DWORD ? sum DWORD 0 cout DWORD 0; count DWORD 1 num DWORD 0 .code ;================...
lda {c2},x sta {c1},y lda {c2}+1,x sta {c1}+1,y
;pmem.asm ;Physical memory access ;Bryan E. Topp <betopp@betopp.com> 2021 section .text bits 64 extern hal_spl_lock extern hal_spl_unlock pmem_map: cmp RDI, [pmem_last] je .done ;Page number of window mov RAX, pmem_window shr RAX, 12 and RAX, 0x1FF ;PTE for frame we want to write to mov RCX, RDI and RCX,...
SYSTEM_APPLE_II = 0 SYSTEM_ATARI_2600 = 1 SYSTEM_ATARI_800 = 2 SYSTEM_COMMODORE_VIC = 3 SYSTEM_MICRO_BBC = 4 SYSTEM_COMMODORE_64 = 5 SYSTEM_NES = 6 SYSTEM_ATARI_5200 = 7 SYSTEM_ATARI_7800 = 8 SYSTEM_ATARI_LYNX = 9
;************************************************************************** ; _FindMSMouse Source Code ; ; This routine determines if the version number passed to it is newer than ; the currently install Microsoft mouse driver. If it isn't then 0 is ; returned otherwise a non-zero value is returned. ; ; This routine i...
; ****************************************************************************** ; ****************************************************************************** ; ; Name : generate.asm ; Purpose : Generate code ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 27th October 2019 ; ; ********************...
.export div .include "utils/reg.inc" ; r0L - value ; r1L - divisor ; when finished gREG::r0H will contain the mod value .proc div DIV = REG::r0L; MOD = REG::r0H; DIVISOR = REG::r1L; stz MOD clc ldx #8 @loop: rol DIV rol MOD lda MOD sec sbc DIVISOR bcc @ignore ; carry clear in...
Route19Mons: db $00 db $05 db 5,TENTACOOL db 10,TENTACOOL db 15,WOOPER db 5,MARILL db 10,CHINCHOU db 15,MARILL db 20,TENTACOOL db 30,AZUMARILL db 35,TENTACOOL db 40,TENTACOOL
TITLE uiutil.asm - low level utilities for SHELL ;*** ;uiutil.asm ; ; Copyright <C> 1985-1988, Microsoft Corporation ; ;Purpose: ; Support routines needed by user-interface. ; ; ;******************************************************************************* .xlist include version.inc .list include cw/version.i...
;************************************************************************** ;* MEMMAN.ASM ;* ;* Returns information about the VMM. ;* ;************************************************************************** INCLUDE TOOLPRIV.INC sBegin CODE assumes CS,CODE ; MemManInfo ; ; ...
;Logical Operations lda 2000 mov b,a lda 2001 ana b; and operation sta 2010 lda 2001 ora b; or operation sta 2011 lda 2001 xra b; xor operation sta 2012 lda 2001 cma; 1's complement sta 2013 lda 2001 cmp b; comparing a with b sta 2014 lda 2001 rrc; rotate accumulator right without carry sta 2015 lda 2001 rlc; rotate a...
bits 64 ;; IO routines, which must use registers per system call ABI. ;; These are not involved in pure computation. ; Call write(1, &out_byte, 1) and return to no-regs code. syscall_output: mov rax, 1 mov rdi, 1 mov rsi, out_byte mov rdx, 1 syscall jmp [cont_zero] ; Call read(0, &finish_inp...
[section .text] global start [bits 32] start: ; Setup a kernel stack mov esp, stack_top push ebx push eax ; mov ebx, 0xb8000 ; mov al, '!' ; mov ah, 0x1F ; mov [ebx], ax ; jmp $ [extern kernel_init] call kernel_init cli .halt: hlt jmp .halt [section .bss] align 4096 ; align 16 stack_bo...
; enter a password, returns an encoded password ; x86_64 assembly intel syntax ; 64 bits linux syscalls %include "module.asm" LEN equ 100 section .data ligne db " -------------------------------------", 10, 0 description db " | Encodage de chaines de caractères |", 10, 0 strInput db "Entrez un mot de p...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_printf_lp EXTERN __stdio_printf_lx __stdio_printf_lp: ; %lp converter called from vfprintf() ; ; enter : ix = FILE * ; hl = void *stack_param ; de = void *buffer_digits ; stack = buffer_digits, width, precision ; ; ...
; Use and Free Menu Extension  1990 Jochen Merz V0.01 section utility include dev8_keys_wman include dev8_keys_wstatus include dev8_keys_qdos_sms include dev8_keys_err include dev8_keys_thg include dev8_mac_xref xdef ut_usmen ; use MENUS xdef ut_frmen ; free MENUS xdef ut_usscp ; use SCRAP xdef ut_f...
org 0000h LJMP START ;Pula incondicionalmente para START MOV R7, #0 org 0003h INT_TEMP0: INC R7;complementa P1.0 MOV P1, R7 CLR IE0 RETI ;Retorna da interrupção org 0013h INT_TEMP1: DEC R7;complementa P1.0 MOV P1, R7 CLR IE1 RETI ;Retorna da interrupção org 0080h START: SETB EA ;Habilita as interrupções SET...
ori $1, $0, 6 ori $2, $0, 5 ori $3, $0, 9 ori $4, $0, 7 sw $1, 0($0) sw $3, 4($0) sw $3, 8($0) sw $1, 12($0) sw $2, 16($0) sw $1, 20($0) sw $3, 24($0) sw $3, 28($0) sw $2, 32($0) sw $1, 36($0) sw $2, 40($0) sw $3, 44($0) sw $2, 48($0) sw $3, 52($0) sw $2, 56($0) sw $1, 60($0) sw $2, 64($0) sw $1, 68($0) sw $2, 72($0) s...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Bitmap FILE: pointerImages.asm AUTHOR: Jon Witort, 28 Aug 1992 REVISION HISTORY: Name Date Description ---- ---- ----------- jon 28 aug 92 ...
;; ;; Copyright (c) 2019, 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 ...
PUBLIC _fdatestamp ; Fastcall ._fdatestamp call 0xB8C9 ld hl, 0 ret c dec hl ret
sll $4,$3,0 sb $6,0($0) or $3,$3,$3 addiu $1,$1,-24809 xor $5,$3,$3 addu $6,$4,$3 or $0,$4,$3 xori $3,$4,61609 sltiu $5,$3,30313 lhu $5,4($0) and $3,$5,$3 sb $3,12($0) subu $4,$1,$3 ori $1,$3,14451 lh $4,2($0) srav $3,$4,$3 subu $1,$1,$3 lb $3,5($0) nor $3,$0,$3 addu $3,$3,$3 nor $3,$4,$3 sll $1,$4,22 lh $4,12($0) slti...
.byte $01 ; Unknown purpose .byte OBJ_ENEMYSUN, $02, $11 .byte OBJ_PARAGOOMBAWITHMICROS, $2E, $05 .byte OBJ_VENUSFIRETRAP, $3A, $0A .byte OBJ_VENUSFIRETRAP, $40, $0A .byte OBJ_VENUSFIRETRAP, $46, $0A .byte OBJ_VENUSFIRETRAP, $50, $0B .byte OBJ_VENUSFIRETRAP, $56, $0F .byte OBJ_VENUSFIRETRAP, $5C, $13 .byte O...
%macro STRING 2 %1 db %2, 0 %1_length equ $ - %1 - 1 %endmacro
WiltonPhoneCalleeScript: gettrainername STRING_BUFFER_3, FISHER, WILTON1 checkflag ENGINE_WILTON iftrue .WantsBattle farscall PhoneScript_AnswerPhone_Male checkflag ENGINE_WILTON_THURSDAY_MORNING iftrue .NotThursday checkflag ENGINE_WILTON_HAS_ITEM iftrue .HasItem readvar VAR_WEEKDAY ifnotequal THURSDAY, .Not...
;; xOS -- libxwidget 1 ;; Copyright (c) 2017 by Omar Mohammad. use32 ; component IDs XWIDGET_CPNT_NONE = 0x00 XWIDGET_CPNT_BUTTON = 0x01 XWIDGET_CPNT_LABEL = 0x02 XWIDGET_CPNT_TEXTBOX = 0x03 XWIDGET_CPNT_WINDOW = 0x04 XWIDGET_CPNT_GBUTTON = 0x05 ; ; typedef struct window_component ; { ; u8 id; // XWIDGET_C...