Commit Graph

30 Commits

Author SHA1 Message Date
Matthias Endler 467b3ff436
Code Cleanup (#97)
This adds some new directives for clippy and fixes all warnings.
Also updated the dependencies to their latest versions.
2024-04-27 19:51:39 +01:00
omarandlorraine aa1a47a76f
Fix addition and subtraction (#72)
* extract decimal logic into separate function

* squash me

* I think we should be doing unsigned arithmetic here

* squash me

* remove unused function

* update the sign checks

* cargo fmt

* get tests to compile again

* get tests passing again

* squash me

* remove pointless conversion from u8 to u8

* cargo fmt

* accumulator is now u8

* add adc test from solid65

* pass the new test

---------

Co-authored-by: Sam M W <you@example.com>
2023-06-29 12:13:49 +02:00
dependabot[bot] fdf71425d3
Bump bitflags from 1.3.2 to 2.0.2 (#60)
* Bump bitflags from 1.3.2 to 2.0.2

Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.0.2.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.0.2)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Derive `Copy` and other traits for `Status`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias <matthias-endler@gmx.net>
2023-03-20 14:58:45 +01:00
Matthias Endler c3438c14e7
Make code more idiomatic (#61) 2023-03-20 14:11:44 +01:00
omarandlorraine 32f925feb2
Merge branch 'master' into incdec 2022-10-21 09:10:18 +01:00
Sam M W 665ee4193d x and y are now unsigned and there's less casting all over 2022-10-20 09:42:17 +01:00
Sam M W 89d6e66e11 whitespace 2022-10-18 10:39:29 +01:00
Sam M W 8c6591f6a4 remove last of Address and AddressDiff 2022-10-18 10:10:38 +01:00
Sam M W 4b26e83529 remove Address and AddressDiff from equation 2022-10-18 06:57:59 +01:00
Matthias 363dc47755 Format code 2022-06-07 19:30:29 +02:00
Matthias 6fdd561b02
Remove unnecessary fixme comment (#37) 2021-05-16 17:21:56 +02:00
Matthias Endler 24973d7fbd Upgrade to Rust 2018 edition 2021-04-07 13:55:41 +02:00
Sam M W b566265dbb Don't panic on stack over- and underflow 2021-01-30 15:11:02 +00:00
Andrey Kutejko cb8800689f Make changes suggested by Clippy and few more 2019-10-06 23:23:38 +02:00
Andrey Kutejko cb2658f3e3 update bitflags 2019-10-06 18:56:51 +02:00
Stefano Probst 8239b298cb Simplify some expressions by using the assign op pattern.
See also https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#assign_op_pattern
2018-10-30 12:40:41 +01:00
Stefano Probst 7df3f75934 More stable future for this project. Change some casts from `as` to a `TYPE::from(x)` style so that the compile can warn us in the future for some things.
See also https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#cast_lossless
2018-10-30 12:32:36 +01:00
kzzt ddfb3a3b29 ran clippy and renamed main.rs to mos6502.rs 2018-10-25 13:29:38 -05:00
Matthias Endler 0a3f628168 Fix compilation with latest rustc 2017-08-08 23:24:41 +02:00
Andrew Keeton 82e2cac30c Fix build. 2015-02-12 17:13:13 -05:00
Andrew Keeton 404f8ba1e8 Fix build. 2015-01-29 16:28:53 -05:00
Andrew Keeton 5e4dc965bf Fix breaking changes. 2015-01-17 17:53:21 -05:00
Johannes Muenzel 3355699a94 Fix the build 2014-12-18 17:57:42 -05:00
Johannes Muenzel 99abf0aa53 Implement rest of shifts/rotates, and push/pull for accumulator and flags 2014-11-02 21:56:02 -05:00
Johannes Muenzel 8545ea5597 Implement subtract-with-carry and flag setting and clearing instructions 2014-11-02 14:23:38 -05:00
Andrew Keeton d70915ad0f Compile tests. 2014-10-16 22:11:16 -04:00
Andrew Keeton bc1687c247 Make Address take i32 so relative addresses work. 2014-10-16 21:24:18 -04:00
Alex Weisberger 34cd5edd44 compiler fixes, static -> const 2014-10-16 18:50:45 -04:00
Alex Weisberger 6321266179 Remove numerous warnings from bitflags! expanding to non-uppercase static constants. 2014-10-08 00:07:43 -04:00
Johannes Muenzel 12f9b21bd0 Move files around to match the usual structure more 2014-10-01 00:17:33 -04:00