Nicht eingeloggt.
Passwort vergessen?


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.



 Nach unten   Vorheriges Thema   Nächstes Thema

#1
XB and XH - Undefined behavior?
Geschrieben am: 22.04.2018 19:36
VUE(xpert)
Dabei seit 04.12.2012
418 Beiträge
CoderLong Time User (6 Years)
Nintendo added a handful of instructions to the stock V810 CPU when they made the NVC for Virtual Boy. Among them are XB (Exchange Byte) and XH (Exchange Halfword), which swap the lowest two bytes or both halfwords of a register, respectively.

These instructions are stored in instruction format II, which specifies two registers, but they only operate on one register, reg2. According to the development manual, if any register for reg1 other than r0 is used, the operation is undefined.

But for the life of me, I haven't been able to get any unusual results out of these instructions no matter which registers or input values I use. Does anyone have any information regarding cases where these instructions will misbehave?

For the time being, it looks like the register specified in the reg1 field is irrelevant.
Nach oben

 Nach oben   Vorheriges Thema   Nächstes Thema


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.