1
0
mirror of https://github.com/mre/mos6502.git synced 2024-06-12 09:29:30 +00:00
Commit Graph

32 Commits

Author SHA1 Message Date
Matthias
c58bba1f4c Code Cleanup
This adds some new directives for clippy and fixes all warnings.
Also updated the dependencies to their latest versions.
2024-04-26 12:03:56 +02:00
Sam M W
bf06ad8924 better commenting inside of AddressingMode enum 2024-04-24 15:41:25 +02:00
Sam M W
54dd0cd536 rename IndirectWithFix to Indirect 2024-04-24 15:41:25 +02:00
Sam M W
2444ef52d1 fix typo in comment 2024-04-24 15:41:25 +02:00
Sam M W
97d6b3fd89 split the Indirect addressing mode into BuggyIndirect and IndirectWithFix 2024-04-24 15:41:25 +02:00
omarandlorraine
11499b6bc8
Starting on implementing different variants (#88)
* start on separating 6502 variants from cpu itself

* add a single variant: the NMOS one

* get examples & tests running again

* Add the Revision A variant, one that has no ROR

* disable failing lint in build-time dependencies

* Variant with no decimal mode

* Revert "disable failing lint in build-time dependencies"

This reverts commit c87975e937.

* some doc comments

* specify the variant in unit test now the API has changed

---------

Co-authored-by: Sam M W <you@example.com>
2023-10-31 16:45:15 +01:00
Sam M W
672defd817 remove now dead code 2023-04-03 07:39:30 +01:00
Sam M W
12c901e8aa generic argument for CPU represents memory 2023-04-03 07:02:32 +01:00
Sam M W
a8dac6e805 extract memory functionality into a trait 2023-04-03 06:59:40 +01:00
Sam M W
f3f15de8cc remove memory.get_slice
real hardware won't have the ability to dive in and grab a slice from
memory
2023-04-03 05:50:13 +01:00
Matthias Endler
c3438c14e7
Make code more idiomatic (#61) 2023-03-20 14:11:44 +01:00
Sam M W
11e48c1691 add missing CLI instruction 2022-10-22 12:26:03 +01:00
Sam M W
d8a9558095 formatting 2022-10-18 13:37:06 +01:00
Sam M W
5290a9d61e zeropage wraparound test 2022-10-18 13:35:17 +01:00
Sam M W
3de8f9158d move tests and README away from Address 2022-10-18 10:01:55 +01:00
Sam M W
7328eb416a misc clippy fixes. 2022-10-18 09:38:05 +01:00
Sam M W
4b26e83529 remove Address and AddressDiff from equation 2022-10-18 06:57:59 +01:00
Matthias Endler
24973d7fbd Upgrade to Rust 2018 edition 2021-04-07 13:55:41 +02: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
Matthias Endler
2737471819 Rename machine to cpu and the crate to mos6502 2017-11-13 23:37:32 +01: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
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
c01995ba55 fix the build for namespaced enums 2014-11-20 18:33:23 -05:00
Andrew Keeton
bc1687c247 Make Address take i32 so relative addresses work. 2014-10-16 21:24:18 -04:00
Johannes Muenzel
70db1564a4 Change g_opcodes to OPCODES (style warning) 2014-10-07 00:07:09 -04:00
Johannes Muenzel
dae32caada Some cleanup. Enable experimental 'if let' Rust language feature 2014-10-04 16:47:42 -04:00
Johannes Muenzel
7adc2bbcb4 Use a table to look up the meaning of opcodes. Use common code for addressing modes. 2014-10-04 16:33:42 -04:00
Alex Weisberger
59132d0d8d Formatting 2014-10-01 18:43:57 -04:00
Alex Weisberger
3563f6362c get immediate operand when opcode is ADC Immediate 2014-10-01 18:40:58 -04:00
Johannes Muenzel
12f9b21bd0 Move files around to match the usual structure more 2014-10-01 00:17:33 -04:00