范文无忧网范文学习范文大全

电子日历时钟系统程序汇编语言

02月23日 编辑 fanwen51.com

[单片机 C语言程序]P1=1<<j++;这句错了,<&lt;这个是左移,而不是循环左移 改为这样就可以了 #include <reg52.h> #include<intrins.h> typedef unsigned int uint16; typedef unsigned char uint8;...+阅读

data segment

db "00/00/00 00:00:00",'$'

data ends

codesg segment

assume cs:codesg,ds:data

start:

mov ax,data

mov ds,ax

mov cx,6

mov bx,0

mov ah,0

mov al,9

s:

push cx

push ax

out 70h,al

in al,71h

mov ah,al

mov cl,4

shr ah,cl

and al,00001111b

add ah,30h

add al,30h

mov byte ptr ds:[bx],ah

mov byte ptr ds:[bx+1],al

pop ax

cmp al,4

jna s1

jmp short s2

s1:

dec al

s2:

cmp al,7

jne ok

sub al,2

ok:

dec al

add bx,3

pop cx

loop s

mov dx,0

mov ah,9

int 21h

mov ax,4c00h

int 21h

codesg ends

end start

延伸阅读:

属于高级程序设计语言的是选择B主要语言 ① APT( Automatically Pro-grammed Tools)——自动数控程序。第一个专用语言,用于数控机床加工,1956。 ②FORTRAN(FORmula TRANslation)——公式翻译程序设计...

C语言程序设计题目#include char *strcpy(char *d,char *s) { char *p=d; while(*p++=*s++); return d; } char *strcat(char *d,char *s) { char *p=d; for(;*p;p++); strcpy(p,s); return d...

C语言程序设计试题结果 1 1 2 3 5 8 13 21 就是 第一次循环 屏幕上输出 1 1 1 + 1 = 2 1 + 2 = 3 第二次 屏幕上输出 2 3 2 + 3 = 5 3 + 5 = 8 第三次 屏幕上输出 5 8 5 + 8 = 13 13 + 8 = 21...

系统任务管理器程序MSDN 里面有这些东西……可以自己查一下 BOOL OpenProcessToken( HANDLEProcessHandle,DWORDDesiredAccess,PHANDLETokenHandle ); BOOL GetTokenInformation( HANDLETokenH...

利用单片机DS1302芯片编制数字时钟程序:能计算2100之前的秒我也是用ds1302芯片来做电子钟的#include#include#define uchar unsigned char#define uint unsigned intsbit sda=P1^0;sbit clk=P1^1;sbit rst=P1^2;sbit rs=P2^0;sbit rw...

如何用C语言编译学生成绩管理系统设计一个成绩管理程序分别用函#include "stdafx。h"#include "stdio。h"#include "string。h"int main(int argc, char* argv[]){ struct days { int year; int mon; int day; }; struct max { int num; char n...

汇编程序设计如何进阶你为什么要学汇编语言,汇编语言属于低级计算机语言,只有从事计算机病毒分析,嵌入式系统等比较高端的程序员才需要掌握的。初学程序设计,应该从高级语言学起,首先是结构化编程语言...

C语言程序编程题#include<stdio.h> #include<math.h> void main() { int i,shu1,shu2,ping1,ping2; for(i=1;i<100000;i++){ shu1=i+100; shu2=i+168; ping1=sqrt(shu1); ping2=sqrt(shu2);...

C语言编程序题#include <stdio.h> float add(float x,float y) {return x+y;} float sub(float x,float y) {return x-y;} float mul(float x,float y) {return x*y;} float div(float x,...

推荐阅读
图文推荐
栏目列表