Commit graph

51 commits

Author SHA1 Message Date
Martin Löffler 074c1dd5ff
cpudiag, fix dumb bugs 2023-01-29 01:41:51 +01:00
Martin Löffler 6955ca49ee
input/output instructions 2023-01-29 00:33:18 +01:00
Martin Löffler a97824b26e
memory mapping 2023-01-28 23:43:16 +01:00
Martin Löffler 465aadd54e
branching instructions
that's all of the 8080 instruction set besides the I/O instructions

god bless
2023-01-28 07:31:19 +01:00
Martin Löffler 01b87ade6d
16-bit exchange instructions 2023-01-28 06:26:37 +01:00
Martin Löffler 8b86db359e
stack instructions 2023-01-28 05:52:44 +01:00
Martin Löffler 6d26e7de54
fix memory related bugs
god fucking damnit that's not how the program counter works lea
2023-01-28 05:24:15 +01:00
Martin Löffler 8a1c99ee39
reading and writing words at addresses 2023-01-28 05:13:10 +01:00
Martin Löffler eb993eb1b4
shld and lhld 2023-01-26 06:57:46 +01:00
Martin Löffler 2fff8d2448
accumulator transfer instructions 2023-01-26 06:02:11 +01:00
Martin Löffler 6abdd5dff3
move instructions 2023-01-26 05:30:14 +01:00
Martin Löffler ed05dd5d30
accumulator rotate instructions
that's the rest of the arithmetics
2023-01-26 04:51:55 +01:00
Martin Löffler 08a15a2e51
fix wrong registers being parsed from instructions 2023-01-26 04:29:58 +01:00
Martin Löffler d8cf03afa1
carry and complement instructions 2023-01-26 04:23:56 +01:00
Martin Löffler cb26b0ff77
compare instructions 2023-01-26 04:16:02 +01:00
Martin Löffler c61c814e55
bitwise instructions 2023-01-26 03:52:50 +01:00
Martin Löffler c29389d3eb
subtraction 2023-01-26 03:04:12 +01:00
Martin Löffler 51d2e29775
better addition and cc setting 2023-01-26 00:30:30 +01:00
Martin Löffler b9c5f33d93
compact down add instructions 2023-01-25 23:57:48 +01:00
Martin Löffler d186950e99
16-bit increment and decrement 2023-01-25 23:44:10 +01:00
Martin Löffler c35340ecce
register pair manipulation functions 2023-01-25 23:26:16 +01:00
Martin Löffler 4017733dce
add extra derives on structs and enums 2023-01-25 22:56:19 +01:00
Martin Löffler 1b7b942dff
special instructions should come first 2023-01-25 22:48:25 +01:00
Martin Löffler 7737ab8de5
appease clippy 2023-01-25 22:45:50 +01:00
Martin Löffler 17a8509898
enable formatting and clippy in vscode 2023-01-25 22:42:27 +01:00
Lea 2586942d5c
begone test 2023-01-25 20:29:00 +01:00
Lea 27c6c10c1f
INR and DCR 2023-01-25 20:18:31 +01:00
Lea d7871531ea
declutter main.rs 2023-01-25 19:52:25 +01:00
Lea 22e0217890
print emulator state as hex 2023-01-25 19:40:31 +01:00
Lea 14d04d32ee
adjustable memory size 2023-01-25 19:33:56 +01:00
Lea 1f98c57eb0
add EI, DI, HLT 2023-01-25 19:30:02 +01:00
Lea 1398de8181
mfw overflowing_add 2023-01-25 19:12:14 +01:00
Lea 5be0da1a90
turns out 8 bit processors process 8 bit numbers 2023-01-25 19:08:00 +01:00
Lea cf4565c36b
Add ACI, DAD 2023-01-25 16:24:39 +01:00
Lea 45b4ea8dea
add ADC 2023-01-25 15:57:31 +01:00
Lea 03c2249416
remove ac flag 2023-01-25 15:34:39 +01:00
Lea 06447c917a
implement ADI 2023-01-25 15:32:39 +01:00
Lea a867c30f16
add emulator, implement ADD and NOP instruction 2023-01-25 15:24:22 +01:00
Lea 09e60b33f3
Display memory location next to instructions 2023-01-25 10:39:14 +01:00
Lea 44930070c2
Add assembled rom 2023-01-25 10:38:30 +01:00
Lea 430080da98
#0x -> #$ 2023-01-25 09:55:42 +01:00
Lea 17eda9133e
decompiler -> disassembler 2023-01-24 11:50:54 +01:00
Lea 06b9cab76a Merge pull request 'apply cargo formatting, inline format macro, fix instructions for 0xb0-0xbf' (#1) from lucy/invadeez:master into master
Reviewed-on: Lea/invadeez#1
2023-01-24 10:46:50 +00:00
BlackDemonFire d011b257ba
apply cargo formatting, inline format macro, fix instructions for 0xb0-0xbf 2023-01-24 11:32:52 +01:00
Martin Löffler 351ce267da
take file path as arg 2023-01-24 00:24:25 +01:00
Lea b02e8e7672 gitea web editor is fucked on mobile 2023-01-23 22:20:30 +00:00
Lea 320c7c3e7f stupidity 2023-01-23 22:18:27 +00:00
Lea 2f17b16b16
mood 2023-01-23 22:02:21 +01:00
Lea b42d9ed744
delete rom/invaders 2023-01-23 21:54:42 +01:00
Lea 41368e48a6
implemented all instructions i think? 2023-01-23 21:46:56 +01:00