HFF-Git / VCPU-32

This is a vintage design CPU with 32-bits. See the document in the VCPU-32-Documentation folder for a more detailed description.
GNU General Public License v3.0
0 stars 0 forks source link

Instruction Issues #12

Open wesch opened 2 months ago

wesch commented 2 months ago

dis 0xC1E800E4 should give LDB.X r7, r14(s2, r4) but gives LDB.X r7, r2(s14, r4) by the way: the .X is not needed because the format is anyway different

dis 0xC5C200E4 should give ST 0xe(r4), r7 but gives ST 0xe(r4), r4 would be nice if offset is decimal...

dis 0xE9C000E4 should give PRB.I r7, (r4) but gives PRB.R r7, (r4), 0

HFF-Git commented 2 months ago

See comments below:

Am 11.06.2024 um 18:31 schrieb WolfgangE @.***>:

dis 0xC1E800E4 should give LDB.X r7, r14(s2, r4) but gives LDB.X r7, r2(s14, r4) by the way: the .X is not needed because the format is anyway different

Fixed. Two fields were mixed up. Removed the „.X“ output.

dis 0xC5C200E4 should give ST 0xe(r4), r7 but gives ST 0xe(r4), r4 would be nice if offset is decimal...

Fixed. The output is decimal now. And also prints correctly: ST 7 (R4), R7

dis 0xE9C000E4 should give PRB.I r7, (r4) but gives PRB.R r7, (r4), 0

Fixed. The output should be: PRB.RI r7, (r4), 0 (0xe9c000e4) and is now.

— Reply to this email directly, view it on GitHub https://github.com/HFF-Git/VCPU-32/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP7SZJFRBAFJATUI5KCUONDZG4Q4NAVCNFSM6AAAAABJEWDWHCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DMOBUGIZDCOI. You are receiving this because you are subscribed to this thread.