练习1: 源码如下: assume cs:codecode segmentmov ah,2mov dl,3add dl,30hint 21h mov ah,2mov dl,6add dl,30hint 21h mov ah,4chint 21hcode endsend masm编译结果: link结 ...
分类:
其他好文 时间:
2018-11-18 16:07:50
阅读次数:
172
1、首先我们写一段简单的汇编语言源程序 assume cs:code code segment mov ax,0123h mov bx,0456h add ax,bx add ax,ax mov ax,4c00h int21h code ends end 那么该程序中出现了什么呢 (1)伪指令 1) ...
分类:
编程语言 时间:
2018-11-17 16:16:04
阅读次数:
216
一、实验结论 1.实验内容1 综合使用 loop,[bx],编写完整汇编程序,实现向内存 b800:07b8 开始的连续 16 个 字单元重复填充字数据0403H。 (1)代码如下: assume cs:codecode segment mov ax,0b800h mov ds,ax mov ax, ...
分类:
其他好文 时间:
2018-11-17 01:11:38
阅读次数:
215
练习一 assume cs:codecode segment mov ah,2 mov dl,3 add dl,30h int 21h mov ah,2 mov dl,6 add dl,30h int 21h mov ah,4ch int 21hcode endsend 对以上代码进行汇编、连接、调 ...
分类:
其他好文 时间:
2018-11-15 22:31:20
阅读次数:
159
assume cs:code,ds:data data segment db 'Beginners All-purpose Symbolic Instruction Code.',0 data ends code segment begin: mov ax,data mov ds,ax mov si... ...
分类:
其他好文 时间:
2018-11-12 13:53:59
阅读次数:
713
1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo ...
分类:
其他好文 时间:
2018-11-12 11:14:27
阅读次数:
100
Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. For example, ...
分类:
其他好文 时间:
2018-11-07 14:04:34
阅读次数:
200
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 查找最长的回文子串,这道 ...
分类:
其他好文 时间:
2018-11-06 00:54:27
阅读次数:
110
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2018-11-05 22:24:22
阅读次数:
176
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...
分类:
其他好文 时间:
2018-11-05 19:13:32
阅读次数:
193