Timeline for Will disassembling an 8080 program as Z80 code work?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 20 at 4:12 | comment | added | cjs | @lvd Correct, but the binary incompatibilities don't matter for the purposes of this question, since it's not about what happens when opcodes are executed, but essentially whether disassembly followed by reassembly would produce different results using Z80 syntax tools than using 8080 syntax tools. And that does work fine; see my answer for more details. | |
Apr 20 at 4:10 | answer | added | cjs | timeline score: 6 | |
Oct 5, 2021 at 15:37 | comment | added | lvd |
Z80 also has more flags in F, so the data pushed after other opcodes in OP: PUSH AF will differ. The last difference is that POP AF:PUSH AF in Z80 will preserve TOS completely, which is not the case for 8080.
|
|
Oct 5, 2021 at 15:35 | comment | added | lvd | @WillHartung yes this is exactly what I'm saying. P flag in 8080 is always a parity flag, while in Z80 it is overflow flag during additions/subtractions. | |
Oct 4, 2021 at 22:56 | comment | added | Will Hartung | @lvd You're saying that the Z80 doesn't execute 8080 instructions identically to a stock 8080? Does the P/V flag operate differently from the P flag when executing just 8080 instructions? Do you have a reference documenting the differences between 8080 instructions run on an 8080 and a Z80? | |
Oct 4, 2021 at 21:14 | answer | added | lvd | timeline score: 5 | |
Oct 4, 2021 at 21:06 | comment | added | lvd | Speaking rigorously, Z80 is NOT binary compatible with 8080. It has different flags (P/V instead of just 'parity', a bunch of some new ones and even two unused/undocumented bits in flag register) which is enough to say there's no (strict) binary compatibility. | |
May 19, 2020 at 3:26 | history | became hot network question | |||
May 18, 2020 at 19:47 | vote | accept | tobiasvl | ||
May 18, 2020 at 19:30 | answer | added | Raffzahn | timeline score: 21 | |
May 18, 2020 at 19:25 | history | asked | tobiasvl | CC BY-SA 4.0 |