• 4 Posts
  • 49 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle
  • Yeah over simplifying it a bit, and that’s funny that the stupid thing I found wasn’t even stupid enough.

    But was mostly trying to impart that we should be happy for modern languages, because for every line you write in a modern language, it’ll do a dozen things on the back end for you that in assembly you’d need to do by hand.


  • ericbomb@lemmy.worldtoRetroGaming@lemmy.worldHow hard could it be?
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    18 days ago

    To send the point home even more, this is how in python you make a line of text display:

    print("Hello World")

    This is the same thing, in assembly (According to a blog I found. I can’t read this. I am not build better.)

      org  0x100        ; .com files always start 256 bytes into the segment
    
        ; int 21h is going to want...
    
        mov  dx, msg      ; the address of or message in dx
        mov  ah, 9        ; ah=9 - "print string" sub-function
        int  0x21         ; call dos services
    
        mov  ah, 0x4c     ; "terminate program" sub-function
        int  0x21         ; call dos services
    
        msg  db 'Hello, World!', 0x0d, 0x0a, '$'   ; $-terminated message
    

    But python turns that cute little line up top, into that mess at the bottom.

    I like python. Python is cute. Anyone can read python.




  • Haha makes sense! I forgot I posted it, but as an experiment I actually did this just to see how hard it is.

    https://lemmy.world/post/17890870

    But I mean the main things you need are calories, vitamins, and complete proteins. Flour is the cheapest calorie you can get in the US, so cooking your own biscuits, tortillas, sour dough, and gravy will always be the most calories for your buck.

    Soy is a complete protein by itself, but rice and beans together are as well. Rice and beans is also a king of calories per price, so there is a reason I put it on there, and a reason you are alive it sounds like it!

    The last thing is vitamins from veggies/fruit. In my post I used small amounts of dried fruit in oatmeal, peas in gravy, then tomato sauce. So getting a mix cheap frozen/canned/dried fruit then having a bit of that each day will help. As will making gravies/sauces with different veggies/stir fries.

    I was able to do it under $2, and I might try it again with all different meals to try and make sure I can practice what I preach. I make one off cheap meals a lot, but don’t always do a full day.


  • Hey if you have a legal place to hunt, go wild!

    Buying anything but the cheapest of meats these days is eye watering. I’m not one for hunting, but I keep debating going foraging since I live near mountains in Utah. Spend the day hiking in nice weather and end the day with food you normally wouldn’t have? Sounds like a good day.