自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 编制一个程序把BX寄存器内的二进制数用十六进制的形式在屏幕上显示出来

代码:code segment assume cs:codestart: mov bx,1234H sub ax,ax mov ch,4rotate: mov cl,4 rol bx,cl mov al,bl and al,0fH add al,30H cmp al,3aH jl print add al,7Hprint: mov dl,al mov a

2016-10-30 15:53:17 9966 1

原创 汇编程序——在屏幕上显示一个字符串“Hello”

源代码:data segmentstring db 'Hello',13,10,'$' ;字符串以’$’符号结尾,以单引号括起来data endscode segmentDD assume cs:code,ds:data start: ;程序的入口地址 push ds ;save old data segment sub ax,ax ;ax寄存器清零,

2016-10-23 17:55:14 24518 3

原创 汇编程序——把数据段中的串string1传送到附加段的string2中

源代码:data segment ;定义数据段string1 db ‘assembly language’data endsextra segment ;定义附加段string2 db 17 dup(?)extra segmentcode segment ;定义代码段 assume cs:code,ds:data,es:extrastart: pu

2016-10-23 17:47:18 9147 1

原创 汇编语言:顺序和分支程序设计

内容1:编程将内存数据段字节单元INDAT存放的一个数n(假设0≤ n ≤9 ),以十进制形式在屏幕上显示出来。data segmentindat db 8data endscode segment assume cs:code,ds:datastart: mov ax,data mov ds,ax mov dl,indat add dl,30h mov ah,2

2016-10-23 10:45:12 6368

原创 win64环境下运行汇编程序

因为masm.exe和link.exe文件只有win32位下才能直接运行。在64位系统下就会报错:系统不兼容但是,我们不能因为这个就放弃学汇编程序首先,我们需要准备dos—box软件,直接搜dos-box。安装运行。然后在电脑磁盘上建立一个文件夹,例如:在E盘上建立一个文件huibain,这个文件夹里有一个文件夹masm5.0,文件里有masm.exe,link.exe,debug.e

2016-10-22 20:00:56 2683

原创 数学训练----数论F - Farey Sequence

DescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 F2 = {1/2}F3 = {1/3, 1/2, 2/3}F4 = {1/4, 1/3, 1/2, 2/3, 3/4}F5 = {1/5,

2016-10-16 16:32:51 857

原创 数学训练----数论HDU 2588 - GCD

DescriptionThe greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the largest divisor common to a and b,For example,(1,2)=1,(12,18)=6.(a,b) can be easily

2016-10-16 11:10:13 434

原创 数学训练----数论-寒假安排

DescriptionOne day I was shopping in the supermarket. There was a cashier counting coins seriously when a little kid running and singing "门前大桥下游过一群鸭,快来快来 数一数,二四六七八". And then the cashier put the

2016-10-14 16:41:39 366

原创 数学训练----数论Sum

DescriptionInput2Output2Hint1. For N = 2, S(1) = S(2) = 1.2. The input file consists of multiple test cases.题目分析:这道题就是x1+x2+x3+···+xn=N,求有几种组合方法。利用数学方法中的“隔板法”,不难知道结果就是C

2016-10-13 13:30:10 818

原创 任意进制转换

代码:每组输入数据共有三行,第一行是一个正整数,表示需要转换的数的进制n(2≤n≤16),第二行是一个n进制数,若n>10则用大写字母A~F表示数码10~15,并且该n进制数对应的十进制的值不超过1000000000,第三行也是一个正整数,表示转换之后的数的进制m(2≤m≤16)。16FF2#include #include #include using namespac

2016-10-04 17:07:20 803

原创 数码管动态显示123456

先上代码:#include #define uchar unsigned char #define uint unsigned intsbit SegSel=P2^6; //段选sbit BitSel=P2^7; //位选unsigned char code table[]={ 0x3f,0x06,0x5b,0x

2016-10-02 14:41:28 15340 1

指纹识别数据集

指纹识别数据集。可以编写代码用本数据集进行测试,从而验证代码。

2018-08-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除