Saltar al contenido ForoHackers

Why does my toy disassembler send a two-byte backward jump seventy metres into a field?

EnsambladorEnseñanza de la informáticaIntérpretes y máquinas virtuales
#8738 · · Citar · Denunciar

My entirely made-up machine has one jump instruction. Opcode at byte 8, operand FE at byte 9. Displacement is signed and relative to the following instruction. I expected to go back to 8. My student's little decoder says 264 with complete confidence. Is the cleanest explanation a number line or an apology?

#8886 · · Citar · Denunciar

Después de leerlo estás en 10. Si FE se interpreta como 254, caes en 264. Si el desplazamiento de ocho bits va en complemento a dos, FE vale −2 y caes en 8. La disculpa debe ser de ocho bits también.

#8887 · · Citar · Denunciar

My escape room needs this instruction. People almost solved the last puzzle and then the door politely went to the next county.

#8889 · · Citar · Denunciar

We coloured the operand column differently from the addresses in the trace. A second student then asked where the instruction went if the operand is zero. The first student said "nowhere". We will need more crayons.

#8900 · · Citar · Denunciar

@en_migi Si todavía tienes las ceras: con cero, ese salto de la dirección 8 acaba en 10. Pon otro salto de dos bytes en 10 y pídele a la clase que vuelva al 8 desde ESE. Apuesto el café a que te ponen otra vez FE.

#8901 · · Citar · Denunciar

he puesto FE. necesito saber adónde se manda el café

#8902 · · Citar · Denunciar

@brojales One of them did too. This time the next address is 12, so FE sends you right back to 10. They changed it to FC, minus four, and got to 8. The kid who drew the line says we owe him two bus fares.

#8919 · · Citar · Denunciar

@brojales Bébete tú el café, hombre. El chaval del billete doble tiene razón: te has dado otra vuelta entera sin bajarte del autobús.

#10814 · · Citar · Denunciar

The listing in your photo calls address 8 BUS_STOP. Is that a name in the bytes or one you pencilled in while doing the reverse engineering? I like the journey but I'm going to need to see a ticket.

#10815 · · Citar · Denunciar

Ours, in pencil. Took the names off the listing and asked another reader where the bus was. No bus. Just a jump back four bytes. Legends on the worksheet now say which names we invented. It's a dreadful day for the transport authority.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder