Skip to content

Commit 79e977b

Browse files
committed
😃 初步整理了大二上的资源,以及目录分类
1 parent 0f8c97b commit 79e977b

File tree

586 files changed

+37941
-8450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

586 files changed

+37941
-8450
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

公选课/计算机系统详解(csapp)/students/mbinary/PB16030899 -朱河勤-csapp-bomb-lab-report.md

+428

大二上/ICS/T.BIN

-4,097
This file was deleted.

大二上/ICS/T.hex

-4,097
This file was deleted.

大二上/ICS/T.obj

-8 KB
Binary file not shown.

大二上/ICS/hm_lab/hw01.pdf

49.5 KB
Binary file not shown.

大二上/ICS/hm_lab/hw02.pdf

516 KB
Binary file not shown.

大二上/ICS/hm_lab/hw03.pdf

690 KB
Binary file not shown.

大二上/ICS/hm_lab/hw04.pdf

324 KB
Binary file not shown.

大二上/ICS/hm_lab/hw05.pdf

376 KB
Binary file not shown.
File renamed without changes.

大二上/ICS/hm_lab/lab02.pdf

625 KB
Binary file not shown.

大二上/ICS/hm_lab/lab04.pdf

403 KB
Binary file not shown.

大二上/ICS/hm_lab/lab05.pdf

685 KB
Binary file not shown.

大二上/ICS/hm_lab/lab3.pdf

381 KB
Binary file not shown.

大二上/ICS/hm_lab/lab5.PNG

66.2 KB

大二上/ICS/hm_lab/sol01.pdf

140 KB
Binary file not shown.

大二上/ICS/hm_lab/sol02.pdf

872 KB
Binary file not shown.

大二上/ICS/hm_lab/sol03.pdf

978 KB
Binary file not shown.

大二上/ICS/hm_lab/sol04.pdf

541 KB
Binary file not shown.

大二上/ICS/hm_lab/sol05.pdf

540 KB
Binary file not shown.

大二上/ICS/hm_lab/sol06.pdf

461 KB
Binary file not shown.

大二上/ICS/ics小抄.pdf

558 KB
Binary file not shown.

大二上/ICS/lab03.asm

-64
This file was deleted.

大二上/ICS/lab03test.asm

-43
This file was deleted.

大二上/ICS/lab06test.txt

Whitespace-only changes.

大二上/ICS/lab2.asm

-149
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

大二上/ICS/ppt/ICS16-Ch 5.ppsx

2.71 MB
Binary file not shown.

大二上/ICS/ppt/ICS17-Ch 2.ppsx

827 KB
Binary file not shown.

大二上/ICS/ppt/ICS17-Ch 3.ppt

2.46 MB
Binary file not shown.

大二上/ICS/ppt/ICS17-Ch 4.ppt

1.9 MB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Files included:
2+
3+
ExtensionReadMe.txt - this file
4+
LC3Extension.h - A reusable header defining all necessary functions and constants
5+
ExtensionSample.vcproj - A Microsoft Visual Studio .NET project file for building the sample
6+
ExtensionSample.cpp - A sample extension for the simulator
7+
ExtensionTest.asm - A sample LC-3 program that takes advantage of the sample extension
8+
9+
What is an extension?
10+
An extension lets you add new functionality to the LC3 simulator. An extension
11+
is a DLL that exports two methods: FireInterrupt3 and ExecuteReservedOpcode3.
12+
The simulator calls these methods at the appropriate time during the instruction
13+
cycle to allow the extension to implement interrupts and/or to provide an
14+
implementation for the reserved opcode in the LC3 ISA.
15+
16+
What must you implement?
17+
Your DLL must export FireInterrupt3 and ExecuteReservedOpcode3. The function
18+
prototypes are defined in LC3Extension.h along with other constants that may be
19+
useful in writing your extension. A sample project is also included that
20+
implements both of these functions. LC3Extension.h is designed to be resused
21+
in your own extension. Each of these methods takes callback methods to
22+
read and write to the various memory addresses and registers in the LC3 memory
23+
space at the time of the call.
24+
25+
ExecuteReservedOpcode3 takes a callback for reading and writing values to the
26+
LC3 memory space. An implementation will typically use these callbacks to get
27+
the bits of the current instruction then perform some custom operation given
28+
those bits.
29+
30+
FireInterrupt3 returns the interrupt vector for the interrupt that should be
31+
fired. If no interrupt should be fired, the method returns NO_INTERRUPT.
32+
This method takes only the read callback and therefore can not write to the
33+
LC3 memory space. Any modifications should be performed by the executing
34+
program in the interrupt handler. It is often the case that the interrupt
35+
handler will make use of the reserved opcode to make further calls into the
36+
extension.
37+
38+
The sample program
39+
The included sample program can be compiled with Microsoft Visual Studio .Net.
40+
It implements an interrupt, x0081, as a one second timer. The simulator
41+
calls FireInterrupt3 each time through the instruction cycle in which no
42+
interrupt handler is executing. The sample extension keeps track of the
43+
amount of time since it last fired the interrupt. If more than one second
44+
has passed, it fires the interrupt again.
45+
46+
The accompanying LC3 application implements an interrupt handler for interrupt
47+
x0081. The handler executes an instruction that uses the reserved opcode.
48+
The extension has defined the opcode to return a random number from 0 to 9
49+
in the register defined in bits 9 to 11 of the instruction. The LC3 program
50+
then writes that value to the console in the interrupt handler.
51+
52+
Recommendations for your extensions
53+
Don't cache the callback pointers you receive during the extension calls.
54+
They should not be saved and used in other threads after your extension
55+
returns. They may also change from one call to the next.
56+
57+
The LC3 has been designed to operate on all 32 bit Windows operating systems
58+
with a minimum of access rights. As a result, the simulator does not access
59+
the registry or require any type of installation. It's expected that
60+
the simulator will run in a variety of environments, from personal computers
61+
to university networks. Therefore it interacts as little as possible with
62+
permissioned system resources and does not take advantage of any functionality
63+
available only in more recent operating systems. Please keep this in mind
64+
when considering who will use your extension and how you intend to
65+
distribute it.

0 commit comments

Comments
 (0)