SIMDE-ULL / SIMDE

Educational computer simulator on a mission to "superscalate" the study of computer architecture fundamentals
https://simde.net
GNU General Public License v3.0
13 stars 11 forks source link

Inconsistent Code Parser Error messages #76

Open endes0 opened 11 months ago

endes0 commented 11 months ago

It would be expected that the following codes, which have an erroneously written immediate value, have all the same type of error message.

1
   ADDI R0 R0 #0x0

1
   ADDI R0 R0 #0.0

1
   ADDI R0 R0 #(0)

1
   ADDI R0 R0 0

Instead, there are 3 types of error messages that are thrown:

Ideally, it should be only one error message, clearly indicating that the immediate value has a wrong format. Arguably, the worst one is the invalid instruction format, that unfortunately seems very common.

Also, this issue is intended for collecting feedbacks of other unclear messages and possible solutions.