content stringlengths 23 1.05M |
|---|
//push ARG 1
@1
D=A
@ARG
A=M+D
D=M
@SP
A=M
M=D
@SP
M=M+1
//pointer
@THAT
D=A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
//push const 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop THAT 0
@THAT
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
//push const 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop THAT 1
@THAT
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M... |
%include "io.inc"
section .text
global CMAIN
CMAIN:
mov eax, 7 ; incarca in registrul eax valoarea 7
mov ebx, 8 ; incarca in registrul ebx valoarea 8
add eax, ebx ; aduna valoarea ce se afla in registrul eax
; cu valoarea ce se afla in registrul ebx si
... |
MOD_A: BEGIN
MOD_B: EXTERN
PUBLIC FAT
PUBLIC N
SECTION TEXT
INPUT N ;0
LOAD N ;2
FAT: SUB ONE ;44
JMPZ FIM ;6
JMP MOD_B ;8
FIM: OUTPUT N ;10
STOP ;12
SECTION DATA
N: SPACE ;13
ONE: CONST 0x01 ;14
END
|
/*
* LCD_CDM-16100 Display Demo Board
*
* org: 10/07/2014
* auth: Nels "Chip" Pearson
*
* Target: LCD_CDM-116100 Demo Board w/ LCD display and keypad I/O, 8MHz w/65ms reset delay, RSTDISBL
*
* Resources
* SRAM
*
* IO
*
*/
.equ LED_GREEN = PORTB6
.equ LED_RED = PORTB7
.equ LED_YELLOW = PORTB0
.DSEG
le... |
;------------------------------------------------------------------------------
;
; ArmRndr() for AArch64
;
; Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
#include "Ba... |
SECTION rodata_font
SECTION rodata_font_8x8
PUBLIC _font_8x8_bbc_system
PUBLIC _font_8x8_bbc_system_end
_font_8x8_bbc_system:
IF __CPU_GBZ80__
INCLUDE "target/gb/fonts/lower.asm"
ENDIF
BINARY "font_8x8_bbc_system.bin"
_font_8x8_bbc_system_end:
|
OPTION DOTNAME
.text$ SEGMENT ALIGN(64) 'CODE'
PUBLIC RC4
ALIGN 16
RC4 PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_RC4::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
or rsi,rsi
jne $L$entry
mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
mov rsi,QWORD ... |
;* IMDEA NETWORKS Institute: This file has been modified and it is part of the OpenVLC's source codes
.asg 32, PRU0_R31_VEC_VALID ;* allows notification of program completion
;*#define PRU_EVTOUT_0 3
.asg 3, PRU_EVTOUT_0 ;* the event number that is sent back
.cdecls "main_pru1.c"
.clink
.global START1
ST... |
SECTION code_fp_math32
PUBLIC atan
EXTERN _m32_atanf
defc atan = _m32_atanf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _atan
EXTERN cm32_sdcc_atan
defc _atan = cm32_sdcc_atan
ENDIF
|
; PROLOGUE(mpn_umul_ppmm)
; Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
;
; The MPIR Library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of the
;... |
; nasm -f elf64 max_load_capacity_plus_bswap.asm
; gcc max_load_capacity_plus_bswap.o
GLOBAL main
main:
xor rax,rax
push rax
push rbx
push rdi
; set number of iterations
mov rdi, 1000
; allocate array on the stack
sub rsp, 64
; uncomment for running under IACA
; mov ebx, 111 ; Start marker bytes
; db 0x64, 0x67,... |
default rel
section .text
global _0x90_nop
global _0x91_xchg_eax
global _0x92_xchg_eax
global _0x93_xchg_eax
global _0x94_xchg_eax
global _0x95_xchg_eax
global _0x96_xchg_eax
global _0x97_xchg_eax
global _0x98_convert
global _0x99_convert
global _0x9a_lcall
global _0x9b_fwait
global _0x9c_pushf
global... |
SelectQuantityToToss:
ld hl, TossItem_MenuHeader
call LoadMenuHeader
call Toss_Sell_Loop
ret
SelectQuantityToBuy:
farcall GetItemPrice
RooftopSale_SelectQuantityToBuy:
ld a, d
ld [wBuffer1], a
ld a, e
ld [wBuffer2], a
ld hl, BuyItem_MenuHeader
call LoadMenuHeader
call Toss_Sell_Loop
ret
SelectQuantityToS... |
DATAS SEGMENT
;此处输入数据段代码
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
mov AX,DATAS
mov DS,AX
;此处输入代码段代码
mov ah, 01h
int 21h
mov ah, 02h
mov dl,al
int 21h
mov AH,4CH
int 21H
CODES ENDS
END START |
.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
;Define function by directive
myFunc PROTO dwExitCode:DWORD
.data
.code
main PROC
;INVOKE
INVOKE ExitProcess,0
;INVOKE... |
45_Header:
sHeaderInit ; Z80 offset is $C377
sHeaderPatch 45_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 45_FM5, $00, $05
45_FM5:
sPatFM $00
dc.b nEb3, $1B
sStop
45_Patches:
; Patch $00
; $03
; $32, $04, $70, $03, $1F, $1F, $1F, $1F
; $00, $00, $00, $00, $00, $0D, $0C, $0B
; $0F, $0... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="cmd, vararg"/>
<%docstring>
Invokes the syscall ulimit. See 'man 2 ulimit' for more information.
Arguments:
cmd(int): cmd
vararg(int): vararg
</%docstring>
${syscall('SYS_ulimit', cmd, vararg)}
|
; slbb0_resetbuf
; 08.2009 aralbrec
PUBLIC slbb0_resetbuf
; reset the linear buffer to empty
;
; enter : hl = & struct slbb
; uses : none
.slbb0_resetbuf
ld (hl),0 ; end = 0
ret
|
; COPYRIGHT (c) 1995,99 XDS. All Rights Reserved.
; COPYRIGHT (c) 2002 Excelsior LLC. All Rights Reserved.
cpu 386
bits 32
%ifdef OS2
group DGROUP _DATA
section _DATA use32 align=4 FLAT public 'DATA'
%else
group DGROUP _DATA
section _DATA use32 a... |
copyright zengfr site:http://github.com/zengfr/romhack
03C696 clr.b ($ab,A6) [enemy+AE]
03C69A clr.b ($80,A6) [enemy+AB]
03C69E tst.b ($ab,A6) [enemy+80]
03C6A2 beq $3c6aa
03C6D0 move.b #$1, ($ab,A6)
03C6D6 subq.b #1, ($80,A6) [enemy+AB]
059448 tst.b ($ab,A6)
05944C bne $5a04e [enemy+AB]
0... |
#include "Platform.inc"
#include "PollChain.inc"
radix decimal
PollAfterDoorDummy code
global POLL_AFTER_DOOR
POLL_AFTER_DOOR:
return
end
|
//load mp3 trigger address in r3
//in address 65527
LUI 255 R3
ORI 247 R3
//check to see if pillsong is playing
//LOAD PILL FLAG FROM MEMORY
//IN ADDRESS 13318 IN R4
LUI 52 R4
ORI 6 R4
//LOAD BLANK SONG MEMORY ADDRESS
MOV R4 R5
ADDI 1 R5
//LOAD blank FLAG
LOAD R6 R5
CMPI 1 R6
BEQ RETURN_FROM_PILL_SONG_METHOD
//CHEC... |
; Copyright 2017 The Crashpad Authors. All rights reserved.
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicabl... |
ori $ra,$ra,0xf
div $5,$ra
lb $6,10($0)
srav $5,$4,$3
sb $3,6($0)
mflo $6
lui $0,11410
sll $4,$6,10
mflo $1
mthi $4
addiu $5,$5,-27019
divu $6,$ra
addiu $6,$6,-7427
mfhi $5
srav $4,$4,$3
mflo $2
mflo $3
ori $0,$4,33277
lb $2,16($0)
srav $3,$5,$3
addiu $1,$5,-5015
mfhi $4
mthi $1
mfhi $5
mtlo $4
srav $4,$5,$3
mult $4,$3... |
bcc clrflg
setflg ldx lindx
ora filtyp,x
bne clrf10
clrflg ldx lindx
eor #$ff
and filtyp,x
clrf10 sta filtyp,x
rts
tstflg ldx lindx
and filtyp,x
rts
tstwrt jsr getact
tax
lda lstjob,x
and #all-bit0
cmp ... |
LMClub7 label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x0f, 0xf8, 0xfa, 0x00
db 0x01, 0x0f, 0xf8, 0xfc, 0x00, 0x01, 0x1c, 0x00
db 0x01, 0x0c, 0x18, 0xfc, 0x00, 0x01, 0x2e, 0x00
db 0x01, 0x0c, 0x38, 0xfc, 0x00, 0x01, 0x3... |
; MMURTL Operating System Source Code
; Written by Richard A. Burgess
; This code is released to the public domain.
; "Share and enjoy....." ;)
.DATA
EXTRN _AllocExch FWORD
EXTRN _InitDevDr FWORD
EXTRN _UnMaskIRQ FWORD
EXTRN _MaskIRQ FWORD
EXTRN _SetIRQVector FWORD
EXTRN _EndOfIRQ FW... |
BluesHouseObject:
db $0A ; border block
db $2 ; warps
db $7, $2, $1, $FF
db $7, $3, $1, $FF
db $0 ; signs
db $3 ; objects
object SPRITE_DAISY, $2, $3, STAY, RIGHT, $81, $0 ; Daisy, sitting by map
object SPRITE_DAISY, $6, $4, WALK, $1, $82, $0 ; Daisy, walking around
object SPRITE_BOOK_MAP_DEX, $3, $3, STAY,... |
SFX_Battle_2B_Ch4:
dutycycle 210
unknownsfx0x20 3, 129, 0, 3
unknownsfx0x20 3, 193, 0, 4
unknownsfx0x20 3, 241, 0, 5
unknownsfx0x20 3, 177, 0, 4
unknownsfx0x20 3, 113, 0, 3
loopchannel 5, SFX_Battle_2B_Ch4
unknownsfx0x20 8, 129, 0, 4
endchannel
SFX_Battle_2B_Ch7:
unknownnoise0x20 3, 98, 34
unknownnoise0x20... |
; ACSI Specific Routines 1990 Tony Tebby QJUMP
section dv3
xdef ac_ckrdy ; check drive ready
xdef ac_lock ; lock door
xdef ac_unlock ; unlock door
xdef ac_ststp ; start / stop
xdef ac_cmdn ; command, no parameters
xdef ac_cmdr ; command to read sector
xdef ac_cmdw ; command to wri... |
; 7 - Frase con offset
; López Garay Luis Felipe
; 15211312
; 27 de Septiembre del 2018
.Model small
.Stack 64
.Data
frase db "Ensamblado con ensamblador!", 10, 13, "$"
.Code
mov ax,@Data
mov ds,ax
mov dx,offset frase
mov ah,09h
int 21h
.Exit
end
|
LJMP START
P5 EQU 0F8H
P7 EQU 0DBH
ORG 0100H
START:
MOV DPTR, #80EBH //0
MOV A, #30H
MOVX @DPTR, A
MOV DPTR, #8077H //1
MOV A, #31H
MOVX @DPTR, A
MOV DPTR, #807BH //2
MOV A, #32H
MOVX @DPTR, A
MOV DPTR, #807DH //3
MOV A, #33H
MOVX @DPTR, A
MOV DPTR, #80B7H //4
MOV A, #34H
MOVX @DPTR,... |
* 32-bit integer arithmetic v0.01 Mar 1988 J.R.Oakley QJUMP
*
section cv
*
include 'dev8_keys_68000'
*
xdef cv_uldiv
xdef cv_sldiv
xdef cv_ulmul
xdef cv_slmul
*+++
* Divide a 32-bit signed dividend by a 32-bit signed divisor, giving
* similar quotient and remainder. The rules are that the remainder has
* t... |
;= test: defines fixed digit
;= bin: b8ff1231c0
[bits 16]
mov ax, test2
xor ax, ax
test2 equ 0x12FF
;= test: handles negative numbers
;= bin: b8feff31c0
[bits 16]
mov ax, test2
xor ax, ax
test2 equ -0x2
;= test: handles negative implicit expressions
;= bin: 8d450e
entry_size: equ 16
lea ax,[di-(2-entry_size)]
;= tes... |
; @@@ void mikeos_string_chomp(char *string);
%include "os_vector.inc"
section .text
use16
global _mikeos_string_chomp
_mikeos_string_chomp:
mov bx, sp
mov ax, [ss:bx + 2]
mov bx, os_string_chomp
call bx
ret
|
10 ORG 100H
20PUTSTR EQU 0BFF1H
30WAITK EQU 0BFCDH
40RPTCHR EQU 0BFEEH
50 CALL CLS
60 LD HL,GREET
70 CALL STRLN
80 LD DE,0000H
90 CALL PUTSTR
100 LD A,2
110 OUT (60H),A
120 LD A,1
130 OUT (74H),A
140 LD A,0
150 OUT (73H),A
160 LD A,1
170 OUT (73H),A
180 LD A,0
190 OUT (73H),A
200 LD A,0DH
210 OUT (70H),A
220 LD A,4EH
2... |
DATA SEGMENT
HOUR DB 0
MINUTE DB 0
SECOND DB 0
HRCH DB 0
HRCL DB 0
MNCH DB 0
MNCL DB 0
SCCH DB 0
SCCL DB 0
MSG DB 'Please Input Initialized time:$'
BUFFER DB 7,9 DUP(?)
WINDOW DB 32 DUP(20H),'****************',32 DUP(20H)
DB 32 DUP(20H),'* ... |
; ---------------
; Compiler Flags
; ---------------
!ORIGINAL_MESSAGE_TEXT ?= 0
; ----
; RAM
; ----
!ram_load_preset = $7FFB00
!ram_gametime_room = $7FFB02
!ram_last_gametime_room = $7FFB04
!ram_realtime_room = $7FFB06
!ram_last_realtime_room = $7FFB08
!ram_last_room_lag = $7FFB0A
!ram_last_door_lag_frames = $7FFB0... |
.macosx_version_min 10, 13
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
# ----------------------
.private_extern _inflate_table
.globl _inflate_table
_inflate_table:
pushq %rbp
Lcfi0:
Lcfi1:
movq %rsp, %rbp
Lcfi2:
pushq %r15
pushq %r14
pushq %r13
pushq %r12... |
; DCL_PID_L2.asm - Parallel PID controller
;
; Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
; ALL RIGHTS RESERVED
.if __TI_EABI__
.asg DCL_runPID_L2, _DCL_runPID_L2
.endif
.global _DCL_runPID_L2
.def __cla_DCL_runPID_L2_sp
SIZEOF_LFRAME .set 10
LFRAME_MR3 .set 0
LFRAME_V5 .s... |
frame 2, 12
frame 0, 12
frame 2, 16
setrepeat 3
frame 0, 08
frame 1, 08
dorepeat 4
endanim
|
copyright zengfr site:http://github.com/zengfr/romhack
0039FA movem.l D0-D3, -(A6)
0039FE movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
027240 move.w (A0), ($52,A6) [enemy+50]
027244 tst.b ($36,A6) [enemy+52]
027556 clr.w ($52,A6)
02755A move.w ($a,A6), D0
027580 move.w ($18,PC,D0.w), ($52,A6) [ene... |
TITLE ECE291:MP3-Constants
COMMENT % TRON LiteCycle Game Constant Declarations
%
;====== Constants =========================================================
;ASCII values for common characters
BEEP EQU 7
CR EQU 13
LF EQU 10
ESCKEY EQU 27
SPACE EQU 32
;Player 1 keyboard control scan c... |
printf:
pusha
mov ah, 0x0e ; Teletype output function
str_loop:
mov al, [si] ; Load a character byte to al
cmp al, 0
jne print_char ; if al != 0, jmp to print_char
popa
ret
print_char:
int 0x10 ; 0x10 interrupt
inc si ; add 1 to si
jmp str_loop
|
.model flat, c
_TEXT SEGMENT
Addition PROC, Argument1:DWORD, Argument2:DWORD
xor eax, eax ; 0 out EAX
mov eax, Argument1 ; Move first argument in EAX
add eax, Argument2 ; Addition
ret
Addition ENDP
_TEXT ENDS
End |
<%
from pwnlib.shellcraft import common
from pwnlib import constants
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
from pwnlib.log import getLogger
from pwnlib.shellcraft.registers import arm as regs
log = getLogger('pwnlib.shellcraft.arm.mov')
%>
<%page args=... |
; Setup name of NUL Channel V2.00 1996 Tony Tebby
section nul
xdef nul_cnam
xref nul_name
xref nul_parm
include 'dev8_keys_err'
include 'dev8_iod_nul_data'
include 'dev8_mac_assert'
;+++
; Set up nul channel name in (a1)
;---
nul_cnam
move.w d2,d4
subq.w #5,d4 ; space for name
ble.s ncn_ipar ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT:
MODULE:
FILE: uiEMOM.asm
AUTHOR: Adam de Boor, Sep 14, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
COMMENT @----------------------------------------------------------------------
Copyright (c) Berkeley Softworks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonDesktop/CBitmap
FILE: cbitmapManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 8/89 Initial ve... |
; ===========================================================================
; * S1HS - Hack configuration file *
; ===========================================================================
; This file is generated by S1HS to configure the hack.
; Note: this file is getti... |
global _dump_registers
_dump_registers:
push bp
mov bp, sp
call os_dump_registers
pop bp
ret
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: parseError.asm
AUTHOR: John Wedgwood, Jan 24, 1991
ROUTINES:
Name Description
---- -----------
ParserErrorMessage Get an... |
SECTION rodata_clib
PUBLIC textpixl
EXTERN base_graphics
; 32 16
; 8 4
; 2 1
; If pixel > 32 then 191 - value
textpixl:
;
;
; .. X. .X XX
; .. .. .. ..
; .. .. .. ..
defb 192, 193, 194, 195
; .. X. .X XX
; X. X. X. X.
; .. .. .. ..
defb 196, 197,... |
MonPartyData:
; MON = 0
; BALL_M = 1
; HELIX = 2
; FAIRY = 3
; BIRD_M = 4
; WATER = 5
; BUG = 6
; GRASS = 7
; SNAKE = 8
; QUADRUPED = 9
; PIKACHU = A
dn SPRITE_GRASS, SPRITE_GRASS ;Bulbasaur/Ivysaur
dn SPRITE_GRASS, SPRITE_MON ;Venusaur/Charmander
dn SPRITE_MON, SPRITE_MON... |
; PPU registers
PPUCTRL = $2000
PPUMASK = $2001
PPUSTATUS = $2002
OAMADDR = $2003
OAMDATA = $2004
PPUSCROLL = $2005
PPUADDR = $2006
PPUDATA = $2007
OAMDMA = $4014
; APU registers
APU_PULSE1CTRL = $4000
APU_PULSE1RAMP = $4001
APU_PULSE1FTUNE = $4002
APU_PULSE1CTUNE = $4003
APU_PULSE2CTRL = $4004
APU_PULSE2RAM... |
; Assembly code for Windows.
; run either by ml.exe (32 bit) or ml64.exe
IFDEF RAX
INCLUDE "platforms/switch_x64_msvc.asm"
ELSE
INCLUDE "platforms/switch_x86_msvc.asm"
ENDIF |
; 0 - PUSH constant 5
leaw $5, %A
movw %A, %S
leaw $SP, %A
movw (%A), %D
movw %D, %A
movw %S, (%A)
leaw $SP, %A
movw (%A), %A
incw %A
movw %A, %S
leaw $SP, %A
movw %S, (%A)
; 1 - PUSH constant 9
leaw $9, %A
movw %A, %S
leaw $SP, %A
movw (%A), %D
movw %D, %A
movw %S, (%A)
leaw $SP, %A
movw (%A), %A
incw %A
movw %A, %S
l... |
;
; ZX 81 specific routines
; by Stefano Bodrato, Oct 2007
;
; int __FASTCALL__ zx_line(int line);
;
; Execute a single BASIC program line.
; Returns with BASIC error code.
; 0=OK,... -1=no program lines found
;
; $Id: zx_line.asm,v 1.2 2015/01/19 01:33:26 pauloscustodio Exp $
;
PUBLIC zx_line
EXTERN restore81
; ente... |
// 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.)
// Put your code here.
// R0=3... |
;*
;* COW : Character Oriented Windows
;*
;* gmemory3.asm : Global memory for DOS 3
;* * NOTE : the old size of the block is stored in the last 2 bytes
;* * of the MSDOS arena !!
TITLE GMEMORY - Windows interface to DOS memory management DOS 3
.xlist
include kernel.inc
.list
sBegin KERNEL
assumes CS,KERNEL
... |
[XCX_MOVESPEED]
moduleMatches = 0xF882D5CF, 0x30B6E091, 0xAB97DE6B ; 1.0.1E, 1.0.2U, 1.0.1U
.origin = codecave
VarSpeed:
.float $mod ; dash speed (smallest means fastest, default is 1.0)
_setSpeed:
lis r3, VarSpeed@ha
lfs f13, VarSpeed@l(r3)
fdivs f1, f1, f13
lwz r3, 0(r31)
blr
[XCX_MOVESPEED... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 247
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %35 %71
OpExecutionMode %4 Ori... |
; A275379: Number of prime factors (with multiplicity) of generalized Fermat number 6^(2^n) + 1.
; 1,1,1,2,3,3,3,7,3,5
lpb $0
mul $0,2
mov $2,$0
lpb $1,2
mul $2,2
mod $2,10
add $5,50
lpe
div $0,10
mul $5,2
lpe
add $3,$5
mov $1,$3
div $1,100
add $1,1
mov $0,$1
|
.386P
.model flat
public _main
extern _puts:near
.code
_main: push offset message
call _puts
pop eax
xor eax, eax
retn
.data
message byte ' *Notices Bulge*', 10
byte '__ ___ _ _ _ _ _', 10
byte 92, ' ', 92, ' / / |__ ... |
ASSUME CS:CODE,DS:DATA
DATA SEGMENT
msg db 'Hello! This is int0_test!$'
DATA ENDS
CODE SEGMENT
start:
mov ax, 1000h
mov bl, 0
div bl ; 寄存器AX中的值除以寄存器BL中的值,结果中商存入AL,余数存入AH
mov ah,4ch
int 21h
CODE ENDS
END START |
song336restored_pri equ 100
song336restored_rev equ 0
song336restored_mvl equ 127
song336restored_key equ 0
song336restored_tbs equ 1
song336restored_exg equ 0
song336restored_cmp equ 1
.align 4
;**************** Track 1 (Midi-Chn.7) ****************;
@song336restored_1:
.byte KEYSH , song336restored_ke... |
;Toggling PORTB in Assembly Language for Dragon12 Plus Trainer Board
;with HCS12 Serial Monitor Program installed. This code is for CodeWarrior IDE
;In Dragon12+ RAM address is from $1000-3FFF
;We use RAM addresses starting at $1000 for scratch pad (variables) and $3FFF for Stack
;Make sure you are in HCS12 Serial M... |
.globl main
.data
str: .asciiz "Ah!"
.text
break 0
main:
la $t0, gdt
add $t1, $t0, 32
li $t2, 0xff
inc:
sb $t2, 0($t0)
add $t0, $t0, 1
bne $t0, $t1, inc
li $v0, 4
la $a0, str
syscall
|
D,JMP //111
D,JLT //100
D,JLE //110
D,JEQ //010
D,JNE //101
D,JGT //001
D,JGE //011 |
; -------------------------------------------------------------------
; Simple program to exit the Elf/OS and return to the STG ROM
; Copyright 2021 by Gaston Williams
; -------------------------------------------------------------------
; Based on software written by Michael H Riley
; Thanks to the author for making t... |
Map_HyperSonic_1948C: dc.w word_19498-Map_HyperSonic_1948C
dc.w word_194A0-Map_HyperSonic_1948C
dc.w word_194A8-Map_HyperSonic_1948C
dc.w word_194B6-Map_HyperSonic_1948C
dc.w word_194BE-Map_HyperSonic_1948C
dc.w word_194C6-Map_HyperSonic_1948C
word_19498: dc.w 1 ; DATA XREF: ROM:0001948Co
dc.b $F8, 5... |
DIM equ 8
.model small
.stack
.data
valore dw 1, 2, 5, 10, 20, 50, 100, 200
monete db 100, 23, 17, 0, 79, 48, 170, 211
euro dw ?
cent dw ?
.code
.startup
mov ax,0
mov dx,0
mov cx,0
mov dx,0
mov di,0
mov si,0
ciclo:
mov al, monete[di]
mov ah,0
mul valore[si]
add bx,ax
adc cx,dx
inc ... |
;Phase Squeek aka TOUPEE (Totally Overpowered, Utterly Pointless Extreme Engine)
;version 0.1
;ZX Spectrum beeper engine
;by utz 08'2016 * www.irrlichtproject.de
BORDER equ #ff
noise equ #2175
include "freqtab.asm" ;note name equates, can be omitted
org origin
init
ei ;detect kempston
halt
in a,(#1f)
inc a
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: ffile.ldf
FILE: ffmanagerManager.asm
AUTHOR: Jeremy Dashe, Jan 24, 1992
ROUTINES:
Name Description
---- -----------
FlatFileEntry Ent... |
########################################################
# FileName : common-sse3.asm
# Author : DingJing
# Mail : dingjing@live.cn
# Created Time : 2022年01月06日 星期四 11时59分01秒
########################################################
.data
.balign 16
vectorA: .float 1.2, 3.4, 5.6, 7.8
vectorB: .float 7.... |
; ---------------------------------------------------------------------------
; Sprite mappings - Newtron enemy (GHZ)
; ---------------------------------------------------------------------------
dc.w byte_DF58-Map_obj42, byte_DF68-Map_obj42
dc.w byte_DF78-Map_obj42, byte_DF88-Map_obj42
dc.w byte_DF9D-Map_obj42, ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: cgaStringTab.asm
AUTHOR: Jim DeFrisco, 8/1/90
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 8/1/9... |
.MODEL small
.STACK
.DATA
VAR DW ? ;non sono sicuro che sia init a 0
.CODE
.STARTUP
MOV VAR, 0 ;posso verificare che e' init a 0
mov var, 15
.EXIT
END |
SECTION code_driver
PUBLIC lcd_putchar
PUBLIC _lcd_putchar
PUBLIC asm_lcd_putchar
EXTERN __console_x
EXTERN asm_lcd_get_ddram_addr
EXTERN asm_lcd_get_vram_addr
EXTERN asm_lcd_write_control
EXTERN asm_lcd_write_data
INCLUDE "hd44780.def"
lcd_putchar:
_lcd_putchar:
pop bc
pop hl
push hl
push bc
ld bc,(__conso... |
# Si scriva il codice Assembly che effettui:
# A[99] = 5 + B[i] + C
#
# Inizializzazione dei registri indirizzi:
# i vettori A e B contengono 100 elementi, ogni elemento è un intero a 32 bit;
# variabili C e i sono interi a 32 bit.
#
# Inizializzazione dei valori dati in memoria:
# i = 3, C = 2, B[i] = 10.
.data
A: ... |
ShipBank2Label: DB "ShipBank2 "
|
; UMR2
; copyright John Staskevich, 2017
; john@codeandcopper.com
;
; This work is licensed under a Creative Commons Attribution 4.0 International License.
; http://creativecommons.org/licenses/by/4.0/
;
; boot.asm
;
; Board initialization
;
list p=16F1939
#include <p16f1939.inc>
#include <umr2.inc>
... |
global _start
section .data
msg db "Hello, world!", 0x0a
len equ $ - msg
section .text
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg
mov edx, len
int 0x80
mov eax, 1
mov ebx, 0
int 0x80
|
ori $ra,$ra,0xf
mflo $6
mthi $0
srav $0,$6,$2
ori $4,$5,38212
mflo $5
mthi $4
mtlo $4
sb $3,15($0)
mflo $0
ori $0,$4,30354
div $6,$ra
mthi $1
sll $5,$3,1
lb $4,16($0)
lb $4,1($0)
mflo $4
lui $0,42531
ori $2,$2,37357
sb $5,1($0)
mfhi $5
divu $2,$ra
div $5,$ra
lui $2,20042
addiu $3,$1,-14581
srav $0,$4,$3
addu $4,$3,$3
s... |
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@0
D=D+A
@pop_address
M=D
@SP
M=M-1
A=M
D=M
@pop_address
A=M
M=D
(LOOP_START)
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
A=M
D=A+D
@SP
A=M
M=D
@SP
M=M+... |
# add test cases to data section
.data
str1: .asciiz "Jane Doe"
str2: .asciiz "Jane Doe"
str3: .asciiz "Jane Does"
.text:
main:
la $a0, str1
la $a1, str2
jal str_equals
#write test code
move $a0, $v0
li $v0, 1
syscall
li $a0, 10
li $v0, 11
syscall
la $a0, str1
la $a1, str3
jal str_equals
#write test code... |
; Copyright (c) 2018, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
; ATtiny13/044
; Simple blinky with timer overflow (assembler version, 28 bytes of program flash).
.nolist
.include "tn13def.inc"
.list
; define constnt
.equ LED_PIN = PB0 ; use PB0 as LED pin
; define register
.def tmp = r16 ; define r16 as... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Screen Dumps -- Bmp Format
FILE: bmp.asm
AUTHOR: Adam de Boor, Dec 4, 1989
ROUTINES:
Name Description
---- -----------
BMPProl... |
MOV 0x20,#0xFE
MOV 0x21,#0xFD
MOV 0x22,#0xFB
MOV 0x23,#0xF7
MOV 0x24,#0xEF
MOV 0x25,#0xDF
MOV 0x26,#0xBF
MOV 0x27,#0x7F
MOV 0x28,#0xFE
MOV 0x29,#0xFD
MOV 0x2A,#0xFB
MOV 0x2B,#0xF7
MOV 0x2C,#0xEF
MOV 0x2D,#0xDF
MOV 0x2E,#0xBF
MOV 0x2F,#0x7F
LJMP L15
L0:
MOV A,#00
LJMP FINAL
L1:
MOV A,#0x01
JNB 0x21.1,L0
... |
push 0
push 0
sethi 0x0200
st_ra 0x0
push 0
pull_cp 0
push 10
cmp_ule
bz 2
drop 0
halt
push 0
sethi 0x0200
ld_ra 0x0
push 1
add
push 0
sethi 0x0200
st_ra 0x0
push 1
add
j -17
|
; __FASTCALL__ routine which
; loads a 32 bits integer into DE,HL
; stored at position pointed by POINTER HL
; DE,HL <-- (HL)
__ILOAD32:
ld e, (hl)
inc hl
ld d, (hl)
inc hl
ld a, (hl)
inc hl
ld h, (hl)
ld l, a
ex de, hl
ret
|
includelib legacy_stdio_definitions.lib
extrn printf:near
.data
option casemap:none
public g
g QWORD 4;
.code
;;;;;;;;;;;;
public min
min: mov rax, rcx ; v = a
cmp rax, rdx
jle min0
mov rax, rdx
min0: mov rsi, r8
cmp rax, rsi
jle min1
mov rax, r8
min1: ret 0;
;;;;;;;;;... |
MOV 0xF0,#0x20
INIT:
MOV 0x00,A ; use R0 to r/w indirect address
MOV @R0,A
INC A
DJNZ 0xF0,INIT
MOV 0xD0,#0x00
MOV A,@R0
NOP
NOP
MOV A,@R1
NOP
NOP
MOV 0xD0,#0x08
MOV A,@R0
NOP
NOP
MOV A,@R1
NOP
NOP
MOV 0xD0,#0x10
MOV A,@R0
NOP
NOP
MOV A,@R1
NOP
NOP
MOV 0xD0,#0x18
MOV A,@R0
NOP
NOP
MOV A,@R1
NOP
NOP |
cpu 186
org 0xC000
section TEXT
handle_res:
handle_res_lcl:
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
jmp handle_res_lcl
x:
TI... |
dividing macro
idiv divider_2
push ax
inc counter
mov ah, 0
endm
print macro
pop ax
add ah, 48
mov dl, ah
mov ah, 02h
int 21h
endm
print_str macro string
mov ah_buff, ah
mov w_buff, dx
mov ah, 09h
mov dx, offset string
int 21h
mov ah, ah_buff
mov dx,... |
#To be inserted at 8026f0b8
#############################
##FPSHack_SlowCutSetTimeVar##
#############################
lis r3, 0x8027 #Vanilla
lis r17, 0x817F
lfs f17, 0x0004 (r17)
fmuls f0, f0, f17 |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: importMain.asm
AUTHOR: Maryann Simmons, Jul 13, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date... |
EXTERN bCheckDebugDashSwitch:QWORD
.data
speedMulti DWORD 40A00000h
pWorldChrManDbg QWORD 144768F98h
.code
tCheckDebugDashSwitch PROC
movss dword ptr [rsi+8], xmm6
movaps xmm7, xmm6
movss xmm8, [speedMulti]
mov rcx, [pWorldChrManDbg]
mov rcx, [rcx]
mov rax, [rcx+150h]
test rax, rax
jne loc_140B62A48
mov ra... |
.data
prompt: .asciiz "Enter string:\n"
buf: .space 100
.text
.globl main
main:
# Show the prompt
li $v0, 4
la $a0, prompt
syscall
# Read the string
li $v0, 8
la $a0, buf
li $a1, 100
syscall
# Some useful values
li $t0, 'a'
li $t1, 'z'
li $t2, 0x20
la $t3, buf # $t3 - pointer to current char
loop... |
page 49,132
TITLE exif - executors for IF and ELSE, DO/LOOP, and WHILE/WEND varients
;***
;exif - executors for IF and ELSE, DO/LOOP, and WHILE/WEND varients
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Executors for IF and ELSE varients.
; Also contains Executors for WHILE/WEND, and DO/LOOP varients
;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.