FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
osdev/script/user_program_dump at master · cstack/osdev · GitHub
cstack
/
osdev
Public
Notifications
You must be signed in to change notification settings
Fork
29
Star
253
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
osdev
/
script
/
user_program_dump
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
10 lines (7 loc) · 194 Bytes
Breadcrumbs
osdev
/
script
/
user_program_dump
Copy path
File metadata and controls
executable file
·
10 lines (7 loc) · 194 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby
raw
=
`xxd user_program.bin`
lines
=
raw
.
split
(
"
\n
"
)
formatted_lines
=
lines
.
map
do
|
line
|
line
[
9
,
41
]
.
tr
(
' '
,
''
)
end
puts
formatted_lines
.
join
(
""
)
.
gsub
(
/(.{2})/
,
'\1 '
)
Back
|
FazBrowse Home
|
New Git URL