PDA

View Full Version : Metodo in assembler mic-1


teo_smile89
07-09-2009, 12:28
Salve, sto facendo un progetto con il mic-1 e dovrei trasformare un numero big-endian dato in input a un numero little-endian, cioč devo ribaltare il numero a 8 bit x volta. Es.: 0x1245789A deve diventare 0x9A784512. Il mio problema č che non riesco a scrivere il metodo per shiftare il numero ed estrarlo una volta fatto l'and logico per isolare il numero; es.:
1245789A (A) and
000000FF (B)
---------
0000009A (A and B)

Dopo di questo passo non riesco a fare il metodo conclusivo, cioč in questo caso riuscire ad estrarre "9A" e metterlo nel TOS. Spero che possiate darmi una mano. Grazie!

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.