Rock Tripe
en.wikipedia.org3 pointsby Sil_E_Goose0 comments
tell me the number that is in R3 after this "Flux Assembly" program:
MOV 7, R1
MOV 2, R2
ADD R1, R2, R3
The number that is in R3 after this "Flux Assembly" program is 9. The program
first uses the MOV op code to move the value of 7 into the register R1, and
the value of 2 into the register R2. It then uses the ADD op code to add the
values of R1 and R2 and store the result in R3. Since 7 + 2 = 9, the value
that is stored in R3 is 9.
Pretty interesting, but most assembly languages are similar enough. How about a really wacky fictional assembly language? ChatGPT then gave me "Zany Assembly" which included the following op code: SPAZZ: This opcode causes the processor to randomly select and execute one of
the next five instructions in the program. It has no operands and the syntax
is simply "SPAZZ."
I then tried to "run" a simple program: what are the the contents of R1 after this Zany Assembly program is run?
SPAZZ
MOV 33, R1
MOV 8989, R1
MOV 173, R1
MOV 20, R1
MOV 8, R1
The contents of R1 after this Zany Assembly program is run are unpredictable.
The program uses the SPAZZ op code at the beginning, which causes the
processor to randomly select and execute one of the next five instructions in
the program. This means that the contents of R1 after the program is run could
be any of the values that are moved into it by the MOV op codes. It could be
33, 8989, 173, 20, or 8, depending on which instruction is selected and
executed by the SPAZZ op code.
I was impressed (and this was after it unsurprisingly failed at Conway's game of life!)
- I have 8 years of professional software engineering experience spanning large defense contractors, small startups, and most recently running a small development consultancy.
- In my current role, I've worked on a wide range of projects including backend systems, mobile applications, data pipelines and predictive modeling, and many production applications built around Ethereum.
- For the past two years I've also been doing ML research focused on mechanistic interpretability and LLM evaluations.
- Open to general SWE, ML/AI engineering, or anything in between. Full-time or contract both work for me. My contact info is on the resume site.
Github: https://github.com/nnebp
Clickable resume link: https://public-resume-dpd.pages.dev/