摘要: 1. 实验任务1 task1.asm源码 1 assume cs:code, ds:data 2 3 data segment 4 x dw 1020h, 2240h, 9522h, 5060h, 3359h, 6652h, 2530h, 7031h 5 y dw 3210h, 5510h, 606 阅读全文
posted @ 2021-12-12 11:38 ╮君颜~ઇଓ 阅读(60) 评论(2) 推荐(0) 编辑
摘要: 实验任务2 Person.hpp源码 #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<fstream> #include<iomanip> #include<limits> usin 阅读全文
posted @ 2021-12-11 08:59 ╮君颜~ઇଓ 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 1. 实验任务1 task1.asm assume cs:code, ds:data data segment x db 1, 9, 3 len1 equ $ - x ;符号常量, $指下一个数据项的偏移地址 y dw 1, 9, 3 len2 equ $ - y data ends code se 阅读全文
posted @ 2021-12-02 23:16 ╮君颜~ઇଓ 阅读(33) 评论(1) 推荐(0) 编辑
摘要: 实验任务2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an in 阅读全文
posted @ 2021-11-24 22:39 ╮君颜~ઇଓ 阅读(29) 评论(2) 推荐(0) 编辑
摘要: 1. 实验任务1 • 任务1-1 task1_1.asm源码 assume ds:data, cs:code, ss:stack data segment db 16 dup(0) data ends stack segment db 16 dup(0) stack ends code segmen 阅读全文
posted @ 2021-11-12 09:59 ╮君颜~ઇଓ 阅读(26) 评论(3) 推荐(0) 编辑
摘要: 实验任务4 vector_int.hpp 1 #ifndef VECTOR_INT_HPP 2 #define VECTOR_INT_HPP 3 4 #include<iostream> 5 #include <cassert> 6 using std::cout; 7 using std::end 阅读全文
posted @ 2021-11-05 12:33 ╮君颜~ઇଓ 阅读(29) 评论(1) 推荐(0) 编辑
摘要: 实验任务5 Info.hpp 1 #ifndef INFO_HPP 2 #define INFO_HPP 3 4 #include <iostream> 5 #include <string> 6 using namespace std; 7 8 class Info{ 9 public: 10 I 阅读全文
posted @ 2021-10-27 20:27 ╮君颜~ઇଓ 阅读(26) 评论(1) 推荐(0) 编辑
摘要: 实验任务2 结论:不能修改 原因:8086PC机中地址C0000-FFFFF的内存单元是各类ROM地址空间,因此向地址C0000-FFFFF的内存单元中写入数据的操作是无效的,因为这等于改写只读存储器中的内容。 实验任务3 实验任务4 填空 push [0] (sp)= 002E push [2] 阅读全文
posted @ 2021-10-22 14:33 ╮君颜~ઇଓ 阅读(87) 评论(2) 推荐(0) 编辑
摘要: 实验任务3 1、程序源码 Complex.hpp 1 #ifndef COMPLEX_HPP 2 #define COMPLEX_HPP 3 4 #include<iostream> 5 #include<cmath> 6 using namespace std; 7 8 class Complex 阅读全文
posted @ 2021-10-22 09:35 ╮君颜~ઇଓ 阅读(39) 评论(0) 推荐(0) 编辑