and or
高中就学过的与或指令,与:全1出1,有0出0;或:全0出0,有1出1
ASCII
就是我们最熟悉的那种编码
字符型
汇编代码内用' '
包起来的内容就是字符型,编译器会将其编译成ASCII码。在程序开头定义字符型时可以用与数字型类似的方法,db(define bytes)
大小写转换
用ASCII码±20h就可以实现。但是书中提到了一种方法:大写字母的ASCII码第五位是0(位数从0开始算起),小写字母为1。这样无论原先是大写还是小写,将其第五位置0就必将变成大写,将其第五位置1就必将变成小写。而置0/1的方法就是and or
[bx + idata]
以指令mov ax,[bx+200]
为例,其相当于(ax)=((ds)*16+(bx)+200)
,段地址依旧在ds中,偏移地址直接用[bx + idata]
表示。
[bx + idata]的数组应用
可以用idata表示我们需要的起始偏移,再用bx来进行偏移。类似于C语言的a[i],b[i]
用汇编表示就是0[bx],5[bx]
SI & DI
功能与bx相近,但不能分成两个8位寄存器来使用。在数据的复制这方面可以提升效率
[bx + si] & [bx + di]
1 | mov ax,[bx + si] |
[bx + si + idata] & [bx + di + idata]
1 | mov ax,[bx + si + idata] |
这章内容比较简单,就写这些
最近我在做什么
在写这篇文章之前我决定先洗个澡,之后好好写一下最近发生的事。
So, firstly and undeniably, I came across a love. Yeah ah, it really surprised me a lot and I just can’t believe it. But it has literally happened and I accepted. Tbh, I really get confused at first and asked my “psycological teacher” HZN for help. Btw, I neither felt afraid of it nor want to escape. I just don’t know how to deal with it. I can convincely tell that I myself is a literally good people but I can’t say that I’m a good boyfriend. I think there is no need to present too much waste words in this blog, so I’ll be brief. Eventually, I chose to take it easy. I’ll try my best to balance my time of studying and accompanying my girl. That’s the reason why I don’t go to the Association these days.
OK,再来讲讲学习方面的,杭电助手技术部的一面我过了,二面是一个小开发任务,需要学习GO语言,emm,我觉得难度应该不会很大,只要再学学GO就可以做好。ddl是10.7。不算很紧张,应该能完成。
汇编语言按照要求还差4章,不过我并不是急功近利地再看,我虽说很想早点进提前批但是我更觉得把该学的学好才最重要。
原本就很紧张的时间也许会变得更紧张,但是我觉得我是能做好的。
也许辜负了当初立的规划,emm,但也还好吧,我在进步,罪不重。