Welcome![Sign In][Sign Up]
Location:
Search - MOV

Search list

[assembly language闰年计算

Description:

 data segment    ;定义数据段

    infon db 0dh,0ah,'Please input a year: $'
    Y db 0dh,0ah,'This is a leap year! $'
    N db 0dh,0ah,'This is not a leap year! $'
    w dw 0
    buf db 8
        db ?
        db 8 dup(?)
data ends
 
stack segment stack
    db 200 dup(0)
stack ends
 
code segment
          assume ds:data,ss:stack,cs:code
    start:mov ax,data
          mov ds,ax
         
          lea dx,infon ;在屏幕上显示提示信息
          mov ah,9
          int 21h
 
          lea dx,buf    ;从键盘输入年份字符串
          mov ah,10
          int 21h
         
          mov cl, [buf+1]
          lea di,buf+2
          call datacate
          call ifyears
          jc a1
         
          lea dx,n
          mov ah,9
          int 21h
          jmp exit
    a1:   lea dx,y
          mov ah,9
          int 21h
    exit: mov ah,4ch
          int 21h
      
 
 
 datacate proc near;
          push cx;                                                      
          dec cx
          lea si,buf+2
     tt1: inc si
          loop tt1
          ;lea si,cx[di]
          pop cx
    
     
          mov dh,30h
          mov bl,10
          mov ax,1
      l1: push ax
          sub byte ptr [si],dh
          mul byte ptr [si]
          add w,ax
          pop ax
          mul bl
          dec si
          loop l1
          ret
 datacate endp
 
 
   ifyears proc near
           push bx
           push cx
           push dx
           mov ax,w
           mov   cx,ax
           mov dx,0
           mov bx,4
           div bx
           cmp dx,0
           jnz lab1
           mov   ax,cx
           mov bx,100
           div bx
           cmp dx,0
           jnz lab2
           mov ax,cx
           mov bx,400
           div bx
           cmp dx,0
           jz lab2
     lab1: clc
           jmp lab3
     lab2: stc
     lab3: pop dx
           pop cx
           pop bx
           ret
   ifyears endp
code ends
   end start
     




[广告] 2008年最受关注楼盘


Platform: | Size: 10752 | Author: jackdawson0@ | Hits:

[Program docHoltek指令集说明

Description: 指令寻址方式有下面5种: 1、立即寻址 此一寻址法是将立即的常数值紧跟在运算码(opcode)后,例如: MOV A,33H ADD A,33H 2、直接寻址 直接寻址的情况只允许在存储器之间作数据传送,例如: MOV [33H],A CLR [33H] 3、间接寻址 在间接寻址方式中,必定要使用到间接寻址暂存器(R0,R1),例如: MOV R0,A MOV A,R0 4、特殊暂存器寻址 此一寻址方式完全是针对某一暂存器作运算,例如: CLR WDT CLR WDT1 5、指针寻址 指针寻址只适用在配合做查表指令,例如: MOV A,02H MOV TBLP,A
Platform: | Size: 223730 | Author: Asunny | Hits:

[SourceCodeVMRPlayer-dshow

Description: 一款基于directshow的播放器插件,可以播放*.asf; *.avi; *.qt; *.mov; *.mpg; *.mpeg; *.m1v; *.wmv
Platform: | Size: 11968 | Author: luoyuanhhpp@gmail.com | Hits:

[SourceCode交通灯控制系统

Description: CODE SEGMENT ASSUME CS:CODE ORG 1000H START:MOV DX,73H MOV AL,80H OUT DX,AL
Platform: | Size: 477 | Author: liuhen | Hits:

[Program docspi

Description: ;################################################ ; Designed by CaoHai 10-23-2002 in SDUWHB ; ; Updated by CaoHai 12-12-2002 in SDUWHB ; ; Upgraded by CaoHai 22-12-2002 in SDUWHB ; ; Upgraded by CaoHai 05-05-2003 in SDUWHB ; ;################################################ ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ;标号定义 data_len equ 0ch ;温度数据长度 data_buf equ 50h ;温度数据缓冲区 ;虚拟引脚定义(For SPI BUS) vcs equ p1.0 ;片选线 vio equ p1.1 ;数据线 vsc equ p1.2 ;时钟线 ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ;================================================ ;模块GetData ;参数:无参数 ;功能:用spi总线从LM74温度传感器读取温度数据 ;返回:无 GetData: clr ea clr vcs setb vio mov r1,#08h clr vsc ;读符号位 nop nop nop setb vsc nop nop nop mov f0,vio read_bite: ;读数据 clr vsc nop nop nop setb vsc nop nop nop mov c,vio rlc a djnz r1,read_bite setb vcs ;转换数据 mov data_buf+1,#2bh jnb f0,fill_data dec a cpl a mov data_buf+1,#2bh fill_data: mov data_buf+2,#30h mov data_buf+3,#30h mov data_buf+4,#30h mov data_buf+5,#0a1h mov data_buf+6,#0e6h mov data_buf+7,#3bh mov data_buf+8,#20h mov data_buf+9,#30h mov data_buf+10,#30h mov data_buf+11,#31h mov data_buf+12,#7ch mov r0,#data_buf+4 divide_data: mov b,#0ah div ab mov r1,a mov a,b add a,#30h mov @r0,a dec r0 mov a,r1 jnz divide_data mov data_buf,#data_len setb ea ret
Platform: | Size: 2397 | Author: hencirl | Hits:

[VHDL-FPGA-Verilog8bit Cpu designing

Description: CPU具有的功能:能完成一些简单的指令 MOV AX,ADDRESS4 --将address4中的内容赋给AX寄存器(在8086/8088汇编语言中称这种寻址方式为直接寻址方式) ADD AX,ADDRESS4 -- 将address4中的内容加到AX寄存器中 SUB AX,ADDRESS4 -- 用address4中的内容减去AX寄存器中的内容 OUT -- 输出AX寄存器中的内容 HLT -- CPU停止运行
Platform: | Size: 103424 | Author: kinglord2006@sina.com | Hits:

[SCM温度检测部分单片机程序

Description: SRART: MOVX @R0,A 令ADC0809开始转换 WAIT: JB OP2.0,ADC 检测ADC0809转换完成否? CALL DISP 调用显示子程序 JMP WAIT ADC:MOVX A,@R0 将转换好的数据送入累加器 CALL L1 调用十进制转换子程序 MOV RI,#OFFH 显示延时-SRART : R0 MOVX @ A change began to make ADC0809 WAIT : JB OP2.0, ADC conversion completed testing ADC0809 not? CALL DISP show subroutine call JMP WAIT ADC : MOVX A, @ R0 good data will be converted into the accumulator CALL L1 metric conversion subroutine call MOV RI,# OFFH show Delay
Platform: | Size: 4096 | Author: 刘浪 | Hits:

[OpenGL program复件 MPlayer-1.0pre1

Description: Movie player for LINUX,是一个非常全能的播放器,支持包括most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV,DVD,DivX5,wma,ogg,wav,Realplayer8.0在内的许多种媒体格式,对输出的格式支持也非常好(X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib),是LINUX种看电影动画的首选。12月7号放出的版本。这个版本开始支持wmv/wma9了。-Movie player for LINUX is a very all-round player, including support most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, DVD, DivX5, wma, ogg, wav, Realplayer8.0 of many kinds of media formats, the output format support is also very good (X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib), LINUX species animated movie of choice. December 7 release version. This version of wmv/wma9 support.
Platform: | Size: 4191232 | Author: lucy | Hits:

[Multimedia Developlookit

Description: 1.可以查看的文本类型:"TXT"、"LOG"、"HTM"、"HTML"、"CFG"、"WIN"、"DOS"、"INC"、"YSL"、"ASC" 2.可以播放的声音类型:"WAV"、"SND"、"AIF"、"AU"、"MID"、"RMI"、"MP3"、"M3U"、"ASF"、"ASU" 3.可以播放的视频类:"DAT"、"AVI"、"MPG"、"M1V"、"MP2"、"MPA"、"MOV"、"QT" -1. View can type the text : "TXT", "LOG", "HTM", "HTML", "CFG", "WIN", "DOS", "INC", "said Natori," "ASC" 2. May to broadcast the voices of the type : "WAV", "SND", "AIF", "AU", "MID", "RMI", "MP3", "M3U", "ASF," "ASU" 3. playback of video category : "DAT", "AVI", "MPG", "disk", "MP2", "MPA", "MOV", "QT"
Platform: | Size: 684032 | Author: 朱纯余 | Hits:

[SCM红外遥控接收

Description: 红外遥控接收 ORG 0000H LJMP START 转入主程序 ORG 0010H START: MAIN: JNB P2.2,IR LJMP MAIN 以下为进入P3.2脚外部中断子程序,也就是解码程序 IR: MOV R6,#9 SB: ACALL DELAY882 调用882微秒延时子程序 JB P2.2,EXIT 延时882微秒后判断P3.2脚是否出现高电平如果有就退出解码程序 DJNZ R6, SB 重复10次,目的是检测在8820微秒内如果出现高电-infrared remote control receiver ORG 0000H LJMP START into main program ORG 0010H START : MAIN : JNB P2.2, IR LJMP MAIN below to enter P3.2 foot external interrupt subroutine, which is decoding procedures IR : MOV R6, SB# 9 : Calling ACALL DELAY882 882 microsecond delay subroutine JB P2.2, EXIT 882 microsecond delay after the judgment whether there P3.2 feet to I quit if decoding procedures DJNZ R6, SB repeated 10 times, the purpose is to test if within 8,820 microsecond high
Platform: | Size: 4096 | Author: | Hits:

[ELanguagegs02

Description:   原来一些32位版发表在 http://www.x86asm.com   因暂停。更新的版本改上传于你处。    在原来的基础上。 增加了简单的宏指令. 增加了链接分散的汇编文本能力. 增加了完全的32位寻址格式. 例如: MOV EAX,[9*EDX] 也即MOV EAX,[EDX+8*EDX] 又如 ADD [ESI+ECX+某单或四字节数],另某数 其中: 某单或四字节数,默认为单字节偏移.(有些会另外,如PUSH类默认为32位的四字节.) 可以用DW等指定为字节长如 ADD [ESI+ECX+DW 某数],WO 另某数或者 ADD WO [ESI+ECX+DW 某数],另某数   目前还属于简陋版的中文汇编编译器-some 32 original version published in http :// www.x86asm.com result of the suspension. The updated version upload change in you. In the original foundation. A simple macros. A compilation of links scattered text capabilities. A total of 32 addressable format. Cases such as : MOV EAX, [EDX* 9] that is MOV EAX, [EDX EDX* 8] Also ADD [ESI scanning of a single- or four bytes], and the other a few of which : a single- or four bytes, the default single-byte offset. (Some will Moreover, if PUSH default category for the 32 four-byte.) DW can be used as specified in bytes long as ADD [ESI EC DW certain X], WO a certain number or another WO ADD [ESI IR DW certain] a few others also belong to the Chinese version of the simple compilation compiler
Platform: | Size: 32768 | Author: 兰根顺 | Hits:

[OS programtabstrip显示器属性

Description: 关于显示输出 用 mov ah,02h int 21h 怎样才能输出大于10的数?请看一下我的程序,如果我输入十个a,就会出错。-on display output with mov ah, Check int 21 hours how to output more than 10 Look at the number of my procedure, if I enter a 10. will mistakes.
Platform: | Size: 1024 | Author: lp | Hits:

[GIS programMov&Rotate

Description: 用VB+AO实现不同时期两幅图的叠加,可用于土地利用的变更分析-With VB+ AO achieve different times of the superposition of Figure 2, can be used for land-use change analysis
Platform: | Size: 11264 | Author: 姜游余 | Hits:

[Software EngineeringW2502

Description: INTERNATIONAL ORGANISATION FOR STANDARDISATION ORGANISATION INTERNATIONALE DE NORMALISATION ISO/IEC JTC1/SC29/WG11 CODING OF MOVING PICTURES AND AUDIO-INTERNATIONAL ORGANIZATION FOR STANDARD ISATION ORGANIZATION INTERNATIONALE DE NORMA LISATION ISO/IEC JTC1/SC29/WG11 CODING OF MOV ING Pictures AND AUDIO
Platform: | Size: 1006592 | Author: eckuk | Hits:

[SCMram96

Description: --- -initial--- - MOVLA 00H IODIR PA IODIR PB IODIR PC MOVAM PA MOVAM BSR MOVAM STATUS MOVAM TMR0 MOVAM TMR1 MOVAM TMR2 ----------------------- MOVLA AAH 写入RAM的数据 MOVAM 08H MOVAM 09H MOVAM 0AH MOVAM 0BH MOVAM 0CH MOVAM 0DH MOVAM 0EH MOVAM 0FH MOVAM 10H MOVAM 11H MOVAM 12H MOVAM 13H ------------ MOVLA 00H IODI R PA IODIR PB IODIR PC MOVAM PA MOVAM BSR MOVAM STA TUS MOVAM TMR0 MOVAM TMR1 MOVAM TMR2----------------------- MOVLA initials into the RAM data MOVAM 08H MOV 7 AM MOVAM 0AH MOVAM 0BH MOVAM 0CH MOVAM 0DH MOV AM 0EH MOVAM 0FH MOVAM 10H 12H MOVAM 11-H MOVAM MOV AM 13H
Platform: | Size: 1024 | Author: frankyq | Hits:

[File FormatqiucktimeDoc

Description: 标准得quickTime 支持得mov视频文件格式. 包括:QTFileFormat,QuickTime5-standards in quickTime support in the mov video file format. Include : QTFileFormat, QuickTime5 etc.
Platform: | Size: 5556224 | Author: hlm | Hits:

[Picture Viewer5ActiveXMovie_SRC

Description: Using DirectShow to Play a Movie from Visual Basic:use Visual Basic as a movie player.we have built (in C++) an ActiveX control for Visual Basic that allows us to play any movie file (compatible with DirectShow). The ActiveX object also provides the complete interface for controlling the movie playback (Start, Stop, Pause, and a trackbar it also shows the current movie position and the total length of the movie). -Using DirectShow to Play a Movie from Visua l Basic : Visual Basic use as a movie player.we have built (in C) an ActiveX control for Visual Basic that a llows us to play any movie file (compatible with DirectShow). The ActiveX object also provides the complete interface for controlling the mov ie playback (Start, Stop, Pause, and a trackbar it also shows the current movie po sition and the total length of the movie).
Platform: | Size: 36864 | Author: au | Hits:

[ActiveX/DCOM/ATLATLMovie

Description: 一个使用ATL开发的视频播发组件,可以使用其嵌入在网页中播放avi文件.-a development of the use of ATL 0000 Video components, using their embedded in a website broadcast avi document.
Platform: | Size: 41984 | Author: 李滨 | Hits:

[DVDReJig05e_src

Description: 演示祛除DVD区码限制,以及将DVD视频光盘做成m2v和AC3和字幕sub文件的代码,是制作Dvd ripper工具的学习好资料-demonstration eliminate the DVD region coding, and to create DVD video discs mov and AC3 and subtitles sub document code, Dvd ripper is to produce tools to study information
Platform: | Size: 695296 | Author: 免战牌 | Hits:

[Special EffectsCQTMovieFile

Description: 介绍mov文件格式和操作,如何使用位图创建一个mov文件-introduced mov file format and operation, how to use the bitmap to create a document mov
Platform: | Size: 59392 | Author: anseum | Hits:
« 1 2 3 4 56 7 8 9 10 ... 16 »

CodeBus www.codebus.net