Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created February 8, 2010 00:07
Show Gist options
  • Save abuiles/297773 to your computer and use it in GitHub Desktop.
Save abuiles/297773 to your computer and use it in GitHub Desktop.
〖A396〗_16-〖B401〗_16 (Tenga en cuenta en hacerlo como lo hace el computador y variables de 16 bits)
Respuesta = EF95
〖A396〗_16 = 1010001110010110 = -23658
〖B401〗_16 = 1011010000000001 = -19455
Como 〖B401〗_16 es un numero negativo, y (-*- = + ) , entonces lo cambiamos por su representación positiva.
19455 = 0100101111111111 = 4BFF
Luego nuestra resta inicial se convertiría en = 〖A396〗_16+〖4BFF〗_16
Realizamos la operación :
1010001110010110
0100101111111111
1110111110010101 = -4203 = EF95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment