Skip to the content ForoHackers
Log inJoin

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

AssemblyComputer science educationInterpreters and virtual machines
#8738 · · Quote · Report

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 · · Quote · Report

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 · · Quote · Report

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

#8889 · · Quote · Report

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 · · Quote · Report

@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 · · Quote · Report

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

#8902 · · Quote · Report

@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 · · Quote · Report

@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 · · Quote · Report

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 · · Quote · Report

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.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply