Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sp-quiz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yannick Vollmer
sp-quiz
Commits
cbdc1b4b
Commit
cbdc1b4b
authored
1 year ago
by
Philip Kaluđerčić
Browse files
Options
Downloads
Patches
Plain Diff
Correct answer to the paging question
parent
a28ec355
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws15.q
+15
-13
15 additions, 13 deletions
ws15.q
with
15 additions
and
13 deletions
ws15.q
+
15
−
13
View file @
cbdc1b4b
...
...
@@ -202,25 +202,27 @@
|
einstufiger
Seitennummerierung
und
einer
Seitengr
öß
e
von
2048
Bytes
zu
|
folgender
logischer
Adresse
:
`0xba1d`
+
Seitennummer
`0xb`
,
Versatz
`0xa1d`.
-
Seitennummer
`0xb`
,
Versatz
`0xa1d`.
+
Seitennummer
`0x17`
,
Versatz
`0x21d`.
Ja
,
weil
In
bin
ä
r
:
(
0xba1d
&
(
2048
-
1
))
=
0x21d
(
0xba1d
&
~
(
2048
-
1
))
>>
11
=
0x17
-
`0xba1d`
ist
0b
1011101000011101
-
`0xb`
ist
`0b1011`
-
`0xa1d`
ist
`0b101000011101`
Die
Idee
hier
ist
,
dass
man
mit
einer
Seitengr
öß
e
von
2048
Byte
mit
11
Bit
addressieren
kann.
Die
ersten
11
Byte
von
Wenn
man
die
ersten
11
bit
abschneidet
(
weil
2
^
11
=
2048
)
,
sieht
man
wie
die
Addresse
zusammengesetzt
ist
:
0b
1011101000011101
=
0xba1d
~~~
1011101000011101
<-
Logische
Addresse
sind
0b
01000011101
=
0x21d
und
damit
bleiben
f
ü
r
die
Page
nummer
nur
noch
0b
10111
=
0x17
1011
<-
Page
Nummer
101000011101
<-
Page
Offset
~~~
-
Seitennummer
`0x17`
,
Versatz
`0x21d`.
-
Seitennummer
`0xba`
,
Versatz
`0x1d`.
-
Seitennummer
`0x2e`
,
Versatz
`0x21d`.
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment