273
submitted 1 month ago* (last edited 1 month ago) by deathmetal27@lemmy.world to c/programmerhumor@lemmy.ml

What does your sleep paralysis demon ask you?

you are viewing a single comment's thread
view the rest of the comments
[-] velox_vulnus@lemmy.ml 11 points 1 month ago
[-] pewpew@feddit.it 10 points 1 month ago

idk it seem nobody has an answer. Can we just call it "mid-level"?

[-] istdaslol@feddit.org 5 points 1 month ago

Yes, es soon you start pointer arithmetic you dig your own grave. Hence low level

[-] HStone32@lemmy.world 2 points 1 month ago

Not when it was invented, no. Compared to today's stack-phobic languages? Certainly.

[-] linkhidalgogato@lemmy.ml 1 points 1 month ago

clearly not, but it is low-er level that other stuff

[-] lars@lemmy.sdf.org 1 points 1 month ago

I mean idfk how you’re planning on calling a.out without an even, stronger, lower-level language like Bash 3.

[-] mindbleach@sh.itjust.works 1 points 1 month ago

I'm writing an NES game in C and struggling with some nonsense that'd be trivial in ASM, so I'm recently inclined to say yes.

[-] brisk@aussie.zone 1 points 1 month ago

Can you just drop to assembly for what you want to do? Gnu compilers even have inline assembly, but with any compiler you should at least be able to built a separate, assembly, object file.

[-] mindbleach@sh.itjust.works 1 points 1 month ago

I can and have, and it's still a tremendous pain in the ass to launder the addresses for labels. The hottest loop in the game draws an arbitrary span of the same tile. It should be trivial to do a jump table - to grab an address from an array and go there. 13 tiles? goto jump[13]. (Or really some stack / return shenanigans, because the 6502 is odd.) But if there's any way to get cc65 to shove the location of an instruction into an array, I haven't found it.

this post was submitted on 26 Jul 2024
273 points (95.3% liked)

Programmer Humor

31969 readers
402 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS