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

disassembler issues #3

Closed wesch closed 5 months ago

wesch commented 5 months ago

DD R7,R1(R5) (0x41c10015) Opmode 4 is correct 0x41c14015 Opmode 5 should give ADDH --> instead ADD R7,R1(R5) 0x41c18015 Opmode 6 should give ADDB --> instead ADD R7,R1(R5)

ADD R7,23(R8) (0x41c2002e) Opmode 8 is correct ADD R7,2071(S8, R1) (0x41c2102e) Opmode 8 seg = 1 ???

ADDH R7,23(R9) (0x41c2402e) Opmode 9 should be ADD R7,23(R9) (0x41c2402e)

HFF-Git commented 5 months ago

Worked the examples, fixed the issues in the disassembler…

Viele Grüsse, Helmut

Am 26.03.2024 um 18:33 schrieb WolfgangE @.***>:

DD R7,R1(R5) (0x41c10015) Opmode 4 is correct 0x41c14015 Opmode 5 should give ADD.H --> instead ADD R7,R1(R5) 0x41c18015 Opmode 6 should give ADD.B --> instead ADD R7,R1(R5)

ADD R7,23(R8) (0x41c2002e) Opmode 8 is correct ADD R7,2071(S8, R1) (0x41c2102e) Opmode 8 seg = 1 ???

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

wesch commented 5 months ago

SOLL: ADD R5,100(S2,R12) # Opmode 12 dis 0x414320C8 Ergebnis: ADD r5,4196(s2,r12) ????

HFF-Git commented 5 months ago

Fixed. Accidentally encoded indexed as 14-bit field instead of 12-bit field.

Am 28.03.2024 um 11:02 schrieb WolfgangE @.***>:

SOLL: ADD R5,100(S2,R12) # Opmode 12 dis 0x414320C8 Ergebnis: ADD r5,4196(s2,r12) ????

— Reply to this email directly, view it on GitHub https://github.com/HFF-Git/VCPU-32/issues/3#issuecomment-2024820881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP7SZJB7PRVSPEXEUILBVMLY2PMBZAVCNFSM6AAAAABFJMK34OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUHAZDAOBYGE. You are receiving this because you commented.