Location:
Search - MOV
Search list
Description: 利用D/A的通道A输出一正弦波
例:对A通道操作
MOV A, #80H #80H为要转换的数据
MOV DPTR, #0FA00H
MOVX @DPTR,A
-Using D/A output channels A case of a sine wave: A channel on the operation of MOV A,# 80H # 80H is the data to convert MOV DPTR,# 0FA00H MOVX @ DPTR, A
Platform: |
Size: 1024 |
Author: jiangcunan |
Hits:
Description: 利用D/A的通道A输出一正弦波
例:对A通道操作
MOV A, #80H #80H为要转换的数据
MOV DPTR, #0FA00H
MOVX @DPTR,A
-Using D/A output channels A case of a sine wave: A channel on the operation of MOV A,# 80H # 80H is the data to convert MOV DPTR,# 0FA00H MOVX @ DPTR, A
Platform: |
Size: 1024 |
Author: jiangcunan |
Hits:
Description: 8254调试代码CODE SEGMENT
ASSUME CS:CODE,DS:DATA
MOV DX,INTCSR_BYTE1
MOV AL,1FH
OUT DX,AL
MOV DX,INTCSR_BYTE2
MOV AL,3FH
OUT DX,AL
MOV DX,INTCSR_BYTE3
MOV AL,00H
OUT DX,AL-code of 8254CODE SEGMENT
ASSUME CS:CODE,DS:DATA
MOV DX,INTCSR_BYTE1
MOV AL,1FH
OUT DX,AL
MOV DX,INTCSR_BYTE2
MOV AL,3FH
OUT DX,AL
MOV DX,INTCSR_BYTE3
MOV AL,00H
OUT DX,AL
Platform: |
Size: 1024 |
Author: 郑宁 |
Hits:
Description: 8259A可编程中断控制器实验 单片的
pc机中断控制器8259A的地址为20H、21H。编程时要根据中断类型型号设置中断矢量,8259中断屏蔽寄存器IMR对应位要清零(允许中断),中断服务结束返回前要使用中断结束命令:
MOV AL,20H
OUT 20H,AL
中断结束返回dos时应将IMR对应位置1,以关闭中断。
-8259A programmable interrupt controller chip in the pc test machine interrupt controller 8259A of the address 20H, 21H. Programming model according to the type set interrupt vector interrupt, interrupt mask register IMR 8259 to clear the corresponding bit (to allow interrupt), interrupt service to return before the end of the end of the command is to be used: MOV AL, 20H OUT 20H, AL dos interrupt when the end of Return IMR should correspond to position 1, to close the break.
Platform: |
Size: 173056 |
Author: 方婷 |
Hits:
Description: image inpainting
-CS7495 Final Project
Sooraj Bhat
Object Removal by Exemplar-based Inpainting
USING THE CODE
Everything was done in Matlab and MEX (i.e. a C function callable from
Matlab). First, the C code needs to be compiled. At the Matlab
prompt, type:
mex bestexemplarhelper.c
You should then be able to run the following (which takes ~2mins on my
2GHz Pentium 4 laptop with 256MB of RAM):
[i1,i2,i3,c,d,mov] = inpaint( bungee0.png , bungee1.png ,[0 255 0])
A smaller run (~25 seconds) would be:
[i1,i2,i3,c,d,mov] = inpaint( bw0.png , bw2.png ,[0 255 0])
To visualize:
plotall
close movie(mov)
SAMPLE IMAGES & RESULTS
*0.png The original images ( bw and bungee )
*{1,2}.png The different fill region masks.
*P2.png Plots of confidence and data terms.
*P5.png Plots of original, fill region, inpainted images and
confidence and data terms.
Other images in the dir contain redundant information. I di
Platform: |
Size: 1769472 |
Author: majb |
Hits:
Description: DAC0832输出的是电流,要转换为电压,还必须经过一个外接的运算放大器,实验线路如图所示。-dat segment
import db input a 4 bit hex:$
output db the equal number=$
err db wrong number$
dat ends
cod segment
assume cs:cod,ds:dat
start: mov ax,dat
mov ds,ax
mov bx,0
call rec
call enter
call disp
rec proc
mov ah,1
int 21h
cmp al,odh
jz exit
cmp al,30h
jb err
cmp al,39h
jbe save
cmp al,
Platform: |
Size: 4096 |
Author: seguang |
Hits:
Description: 毕业设计 单片机数字时钟设计,共36页,12697字,附设计程序 摘要 近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正在不断地走向深入,由于- microcontroller based digital clock mcuwatch
Platform: |
Size: 2048 |
Author: 章辉明 |
Hits:
Description: 用英文演讲介绍如何拍一部电影,包括了拍摄的主要人员和剧本的创作-teach you how to make a film in English,including the main stuff and the creation of the play
Platform: |
Size: 5670912 |
Author: Senven |
Hits:
Description: #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <float.h>
unsigned __int64 mulmod(unsigned __int64 a, unsigned __int64 b, unsigned __int64 m)
{
static const double _2_64 = 18446744073709551616.0
unsigned __int64 rh, rl
__asm
{
xor edi,edi
mov eax,dword ptr [a]
mov ebx,dword ptr [b]
push eax
mov ecx,dword ptr [b+4]
mul ebx
mov dword ptr [rl],eax
mov dword ptr [rl+4],edx
pop eax
mul ecx
mov dword ptr [rh],edx
mov dword ptr [rh+4],edi
add dword ptr [rl+4],eax
adc dword ptr [rh],edi
mov eax,dword ptr [a+4]
mul ebx
Platform: |
Size: 9861120 |
Author: hh |
Hits:
Description: 八路跑马灯实验,程序简单,一目了然。适合初学者
Platform: |
Size: 1024 |
Author: 谢亚伟 |
Hits:
Description: section .data .data
mensaje db "Hola con NASM" mensaje: .ascii "hola con GAS\n"
mensaje_SIZE equ $ mensaje mensaje_SIZE = . mensaje
section .text .text
global _start .globl _start
_start: _start:
mov ecx, mensaje movl $mensaje, ecx
mov edx, mensaje_SIZE movl $mensaje_SIZE, edx
mov eax, 4 movl $4, eax
mov ebx, 1 movl $1, ebx
int 80h int $0x80
mov ebx,0 movl $0, ebx
mov eax,1 movl $1, eax
int 0x80 int $0x80
-section .data .data
mensaje db "Hola con NASM" mensaje: .ascii "hola con GAS\n"
mensaje_SIZE equ $ mensaje mensaje_SIZE = . mensaje
section .text .text
global _start .globl _start
_start: _start:
mov ecx, mensaje movl $mensaje, ecx
mov edx, mensaje_SIZE movl $mensaje_SIZE, edx
mov eax, 4 movl $4, eax
mov ebx, 1 movl $1, ebx
int 80h int $0x80
mov ebx,0 movl $0, ebx
mov eax,1 movl $1, eax
int 0x80 int $0x80
Platform: |
Size: 512000 |
Author: darick |
Hits:
Description: ORG 00H
START: MOV DPTR,#TAB1
MOV R0,#03
MOV R4,#0
MOV P1,#3
WAIT: MOV P1,R0 初始角度,0度
MOV P0,#0FFH
JNB P0.0,POS 判断键盘状态
JNB P0.1,NEG
SJMP WAIT
JUST: JB P0.1,NEG 首次按键处理
POS: MOV A,R4 正转9度
MOVC A,@A+DPTR
MOV P1,A
ACALL DELAY
INC R4
AJMP KEY
NEG: MOV R4,#6 反转9度
MOV A,R4
MOVC A,@A+DPTR
MOV P1,A
ACALL DELAY
AJMP KEY-dfad
Platform: |
Size: 28672 |
Author: PXH |
Hits:
Description: ADC EQU 35H
CLOCK BIT P2.4 定义ADC0808时钟位
ST BIT P2.5
EOC BIT P2.6
OE BIT P2.7
PWM BIT P3.7
ORG 00H
SJMP START
ORG 0BH
LJMP INT_T0
START: MOV TMOD,#02H
MOV TH0,#20
MOV TL0,#00H
MOV IE,#82H
SETB TR0
WAIT: CLR ST
SETB ST
CLR ST 启动AD转换
JNB EOC,$ 等待转换结束
SETB OE
MOV ADC,P1 读取AD转换结果
CLR OE
SETB PWM PWM输出
MOV A,ADC
LCALL DELAY
CLR PWM
MOV A,#255
SUBB A,ADC
LCALL DELAY
SJMP WAIT
INT_T0: CPL CLOCK 提供ADC0808时钟信号
RETI
DELAY: MOV R6,#1
D1: DJNZ R6,D1
DJNZ ACC,D1
RET
END-fgfdsg
Platform: |
Size: 48128 |
Author: PXH |
Hits:
Description: 基本INT 13H读写磁盘扇区
一、读磁盘
MOV AX,0201H
MOV BX,7C00H
MOV CX,0001H
MOV DX,0080H
INT 13H
INT 3H
二、写磁盘
MOV AX,0301H
MOV BX,7C00H
MOV CX,0001H
MOV DX,0080H
INT 13H
INT 3H
-Partition structure
Platform: |
Size: 22528 |
Author: 146 |
Hits:
Description: ALU
指令格式(16位) op DR SR fun
0--3 4—7 8--11 12--15
指令类 OP码 指令 FUN 功能描述
控制 0000 NOP 0000 空指令
HLT 0001 停机
有条件跳转 0010 JZ 0000 Z=1,跳转
JC 0001 C=1,跳转
JNC 0010 C=0,跳转
JNZ 0100 Z=0,跳转
Jump 0101 无条件跳转
LOAD 0011 [SR]->DR
STORE 0100 SR->[DR]
MOV(reg to reg) 0101 SR->DR
MOV(IMM to reg) 0110 IMM->DR
移位 0111 SHL 0000 逻辑左移/算术左移
SHR 0001 逻辑右移
SAR 0010 算术右移
RCL 0011 含进位的左循环移位
RCR 0100 含进位的右循环移位
ROL 0101 不含进位左循环移位
ROR 0111 不含进位右循环移位
算术类 1000 ADD 0000 DR+SR->DR
SUB 0001 DR-SR->DR
MUL 0010 DR*SR->DR,SR
DEC 0011 DR+1->DR
INC 0100 DR-1->DR
CMP 1000 DR-SR,比较
逻辑类 1001 AND 0000 DR and SR->DR
OR 0001 DR or SR->DR
XOR 0010 DR xor SR->DR
NOT 0100 /DR->DR
TEST 1000 DR and SR 测试
栈类 1010 POP 0000 DR入栈
PUSH 0001 出栈->DR
-It was writen by myself,and it is very easy!
Platform: |
Size: 1024 |
Author: 翟志强 |
Hits:
Description: USB的HID固件程序,单片机开发
Bus_Reset:
------------------------------------------------------------------
into Normal Mode, two NOPs are required.
------------------------------------------------------------------
b0bclr FSTPHX
nop
nop
b0bclr FCLKMD
---------------------------------------------------------------
NOTE!! Keep USB enable after Bus_reset and set USB address to 0
---------------------------------------------------------------
mov a, #0x80 enable USB & and set USB address = 0
b0mov UDA, a
clr UDP0 set FIFO address to EP0
clr UDP0_H
clr UDR0_R
clr UDR0_W
b0bclr bSetAddress bus reset clear bSet_address
b0bclr bSetAddressCmd
b0bclr bSuspend clear bSuspend flag
b0bclr bRemote_Wakeup
mov a, #PROTOCOL_initial_value
b0mov PROTOCOL, a
clr BSetConfiguration
clr UStatus
clr USB_HID_Status2
clr EP0OUT_CNT
clr USB_HID_Status
mov a, #0xf0
and USB_HID_Status, a-USB的HID固件程序,单片机开发
Bus_Reset:
------------------------------------------------------------------
into Normal Mode, two NOPs are required.
------------------------------------------------------------------
b0bclr FSTPHX
nop
nop
b0bclr FCLKMD
---------------------------------------------------------------
NOTE!! Keep USB enable after Bus_reset and set USB address to 0
---------------------------------------------------------------
mov a,#0x80 enable USB & and set USB address = 0
b0mov UDA, a
clr UDP0 set FIFO address to EP0
clr UDP0_H
clr UDR0_R
clr UDR0_W
b0bclr bSetAddress bus reset clear bSet_address
b0bclr bSetAddressCmd
b0bclr bSuspend clear bSuspend flag
b0bclr bRemote_Wakeup
mov a,#PROTOCOL_initial_value
b0mov PROTOCOL, a
clr BSetConfiguration
clr UStatus
clr USB_HID_Status2
clr EP0OUT_CNT
clr USB_HID_Status
mov a,#0xf0
and USB_HID_Status, a
Platform: |
Size: 113664 |
Author: tecwon |
Hits:
Description: PPT转视频可以自动将PowerPoint文件及动画转换成视频文件。 输入文件格式:ppt文件 输出视频格式:flv,swf,wmv,mp4,mpg,mov 输出分辨率:720×540,640×480,352×288 -PPT PowerPoint can automatically transfer video files to convert video files and animation. Input file format: ppt file output video format: flv, swf, wmv, mp4, mpg, mov output resolution: 720 × 540,640 × 480,352 × 288
Platform: |
Size: 1003520 |
Author: yuan |
Hits:
Description: 通过vc,MFC编程,实现是视频播放功能。能够播放avi,mov,mpg,mpeg格式的视频。界面特征:视屏播放于主窗体中,能够随着主窗体的放大和缩小而调整视频的大小。-movie player,can play these format:avi,mov,mpg,mpeg.
Platform: |
Size: 233472 |
Author: |
Hits:
Description: 截获CR3指令来防止读写进程内存。在KiSwapProcess和SwapContext中的mov cr3,eax指令前进行拦截。-The code intercepts CR3 to prevent read or write of process memory.
Platform: |
Size: 6144 |
Author: 王波 |
Hits:
Description: lab peogram CPU on kit Atera.
mov/ movi / add/ sub
lab 9 + lab 10
Platform: |
Size: 374784 |
Author: ichada |
Hits: