• darklamer@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    It’s now been 18 years since the last time an employer paid me to write assembly, but it’s only been a year or so since the last time I had to read assembly at work (in order to verify what the compiler really was doing).

  • geekworking@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Look at mister fancy pants with and assembler.

    How about entering straight opcode, operand with only a hex keypad and two pairs of 7 segment LEDs. You can only see one set of numbers at a time. You had to write it out on paper to be able to keep track and count positions so you don’t use your spot.

    I had to do this as a project in school. Two 8088 units that we breadboarded to a UART that we used to drive a fiber optic link to communicate with each other with a basic protocol. All descrete components hand wired and coded.

    It made you tie all of skills together into a full system of hardware and software.

  • LavenderDay3544@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    OS and embedded dev here. I use assembly all the time. I’ve even worked on firmware that was entirely in assembly of strict requirements that couldn’t be met in C.

    Also even machine code hides a lot about how the underlying machine works so if you really want to do computing from scratch you really do hate to invent the universe because there’s abstractions all the way up the hardware stack just like there is in software.

  • fuy@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    For a university assignment, I built a compiler for x86; I cheated a bit by relying on LLVM, but it gave me a better understanding of the architecture. I also developed emulators for the NES (Ricoh 2A03) and RISC-V (RV32I) as a hobby. For the latter, I implemented it in FPGA.

  • r00ty@kbin.life
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I used to write z80 asm without an assembler back when I was a LOT younger. The ZX spectrum manual I had, had the full instruction list with the byte values.

    I think it was oddly easier than some higher level languages for some tasks.

    But, making changes was an utter nightmare.

  • JoYo 🇺🇸@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    I get the feeling that all of these assembly jokes are justifications to avoid learning assembly.

    You can still make syscalls in assembly. Assembly isnt magic. It isn’t starting from the creation of matter and energy, it’s just very specific code.

  • Cethin@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    Anyone who thinks OP asking about Assembly with this meme should play the game Turing Complete. It’s great. You have to design a computer all the way from the most basic logic gates (I think you only get a NAND gate to start), designing an ALU and CPU, creating your own machine language, and writing your own programs in the language you designed, and it’s all simulated the whole time. Machine language is pretty advanced as far as things go.

    • Cavemanfreak@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      We got to do something simular in uni. We modeled the CPU in VHDL and had to set up our own language, then we were to program a game for it. One of the most fun and interesting courses we got to do!

  • NocturnalMorning@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I learned assembly for a few weeks when I first started a new job once (didn’t even have anything to do with my job), and I always felt like my brain was tired after trying to write in assembly. Just took so much more mental concentration than writing in c for example.

  • MyNameIsRichard@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Only on the VIC20 and Atari STe. On the VIC20 you had to write the assembler, manually convert it to machine code and enter that into the computer. There was a cartridge with an assembler, debugger and an extra 3.5Kb memory for it but I never got one.

    • stanka@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      Vic 20 was my first. I watched my dad struggle with and eventually give up on assembly. Something-something and the microbots. I was fearful of it until I took Assembly at Uni. That 2nd/3rd year class was where the final puzzle piece of how computers work fell in place for me.

      My first job was writing assembly tests for a DSP hardware design team. Fell in love. Never looked back.

  • Jo Miran@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    In college back in 1991. Also had to do PASCAL and FORTRAN but thankfully those two were in a single course.

    • expatriado@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      I also took PASCAL in the 90s, but it is considered a high level language, and writes similarly to other high lvl languages, assembly has a very different syntax

      • Jo Miran@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        Oh, I know. I meant that we had to take courses on older languages as part of the curriculum. That was a funky little college program. The oddest experience for me was taking Python back in the day as the “new thing” then not seeing it again until it absolutely exploded ~10 years ago. That program is also why I ended up playing with Linux so early on. The professors truly seemed to have a passion for emerging technologies while not wanting anyone to forget what came before. Thankfully, no punch cards.

      • thejml@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        We used turbo pascal in school in the early 90’s. And it had assembly blocks… which I used copious amounts of because it was the only way to make the IBM PS/1’s do useful graphics.