marhel / r68k

A m68k emulator in rust - let r68k = musashi.clone();
MIT License
72 stars 7 forks source link

Implemented SUBQ #64

Closed emoon closed 8 years ago

emoon commented 8 years ago

Passes all the qc tests

Closes https://github.com/marhel/r68k/issues/50

marhel commented 8 years ago

Thanks! I didn't know you could write dst.wrapping_sub(src), I assume it's the less verbose equivalent of (Wrapping(dst) - Wrapping(src)).0that I used in the ADD/CMP implementation?

emoon commented 8 years ago

Yeah, I prefer that notation because I think it's a bit clear.

emoon commented 8 years ago

Can read more on it here https://doc.rust-lang.org/std/primitive.u32.html#method.wrapping_add