Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
80d5939c
Verified
Commit
80d5939c
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
chore: initial Bees code structure
parent
da22ba9a
No related branches found
No related tags found
1 merge request
!31
System state save
Pipeline
#3202
passed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib.rs
+1
-0
1 addition, 0 deletions
src/lib.rs
src/state.rs
+50
-0
50 additions, 0 deletions
src/state.rs
with
51 additions
and
0 deletions
src/lib.rs
+
1
−
0
View file @
80d5939c
...
...
@@ -15,6 +15,7 @@ pub mod pad;
pub
mod
ppu
;
pub
mod
rom
;
pub
mod
serial
;
pub
mod
state
;
pub
mod
test
;
pub
mod
timer
;
pub
mod
util
;
This diff is collapsed.
Click to expand it.
src/state.rs
0 → 100644
+
50
−
0
View file @
80d5939c
#[repr(packed)]
pub
struct
BeesBlock
{
pub
magic
:
u32
,
pub
size
:
u32
,
}
#[repr(packed)]
pub
struct
BeesBuffer
{
pub
size
:
u32
,
pub
offset
:
u32
,
}
#[repr(packed)]
pub
struct
BeesFooter
{
pub
start_offset
:
u32
,
pub
magic
:
u32
,
}
#[repr(packed)]
pub
struct
BeesCore
{
pub
header
:
BeesBlock
,
pub
major
:
u16
,
pub
minor
:
u16
,
pub
model
:
u32
,
pub
pc
:
u16
,
pub
af
:
u16
,
pub
bc
:
u16
,
pub
de
:
u16
,
pub
hl
:
u16
,
pub
sp
:
u16
,
pub
ime
:
u8
,
pub
ie
:
u8
,
// 0 = running; 1 = halted; 2 = stopped
pub
execution_mode
:
u8
,
_padding
:
u8
,
pub
io_registers
:
[
u8
;
0x80
],
pub
ram
:
BeesBuffer
,
pub
vram
:
BeesBuffer
,
pub
mbc_ram
:
BeesBuffer
,
pub
oam
:
BeesBuffer
,
pub
hram
:
BeesBuffer
,
pub
background_palettes
:
BeesBuffer
,
pub
object_palettes
:
BeesBuffer
,
}
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