this post was submitted on 17 Oct 2024
831 points (98.9% liked)

RetroGaming

19335 readers
1195 users here now

Vintage gaming community.

Rules:

  1. Be kind.
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 7 hours ago (2 children)
[–] [email protected] 1 points 15 minutes 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.

[–] [email protected] 3 points 5 hours ago

Glory to you... abd your hoooouse!