Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Jakob Kirsch
bootOS
Commits
06e52e44
"README.md" did not exist on "5f3332e15cdfacfb1dfb0403bef2cc7d93cd7936"
Commit
06e52e44
authored
5 years ago
by
Jakob Kirsch
Browse files
Options
Downloads
Patches
Plain Diff
push
parent
0b1e184c
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
software_src/run32
+11
-5
11 additions, 5 deletions
software_src/run32
with
11 additions
and
5 deletions
software_src/
himem
→
software_src/
run32
+
11
−
5
View file @
06e52e44
...
@@ -6,17 +6,24 @@
...
@@ -6,17 +6,24 @@
[ORG 0xa200] ; add to offsets
[ORG 0xa200] ; add to offsets
start:
start:
xor ax, ax ; make it zero
xor ax, ax
; make it zero
mov ds, ax ; DS=0
mov ds, ax ; DS=0
mov ss, ax ; stack starts at seg 0
mov ss, ax ; stack starts at seg 0
mov sp, 0x7700 ;
20
00h past code start,
mov sp, 0x7700 ;
77
00h past code start,
; making the stack 7.5k in size
; making the stack 7.5k in size
mov si, 0x7c00
mov si, 0x7c00
mov di, 0xa200
mov di, 0xa200
mov cx, 0x0200
mov cx, 0x0200
rep movsb
rep movsb
jmp 0x0000:run
run:
mov al, "?"
int 0x26
mov bx, si
mov di, 0x7c00
int 0x23
jc run
cli ; no interrupts
cli ; no interrupts
push ds ; save real mode
push ds ; save real mode
...
@@ -41,8 +48,7 @@ pmode:
...
@@ -41,8 +48,7 @@ pmode:
mov cr0, eax ; by toggling bit again
mov cr0, eax ; by toggling bit again
jmp 0x0:huge_unreal
jmp 0x0:huge_unreal
huge_unreal:
huge_unreal:
jmp 0x0000:0x7c00
int 0x20
gdtinfo:
gdtinfo:
dw gdt_end - gdt - 1 ;last byte in table
dw gdt_end - gdt - 1 ;last byte in table
...
...
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