← Home ← Back to /g/

Thread 106976245

40 posts 6 images /g/
Anonymous No.106976245 [Report] >>106976496 >>106977152 >>106977490 >>106977994 >>106978367 >>106980998 >>106981315 >>106981398 >>106981751 >>106982549 >>106982816 >>106983714 >>106983726
snake.asm
Let me guess, you need more
Anonymous No.106976496 [Report] >>106976515 >>106976569 >>106976642 >>106978121 >>106980998 >>106982544 >>106982799 >>106983664
>>106976245 (OP)
only 6 people alive can read this
Anonymous No.106976515 [Report]
>>106976496
which is funny because its probably one of the easiest languages to read.
just think about how dude could make roller coaster tycoon by himself with just this language and some books.
Anonymous No.106976569 [Report]
>>106976496
>only 6 people alive are real programmers
Anonymous No.106976642 [Report]
>>106976496
there are only 7 people on the planet
Anonymous No.106977152 [Report] >>106977351 >>106980232 >>106981736 >>106982446
>>106976245 (OP)
bro I wrote a for loop generator because it started to get tedious every time I wanted to iterate over an array.
Anonymous No.106977351 [Report] >>106980193
>>106977152
Why not just use rust?
Anonymous No.106977490 [Report]
>>106976245 (OP)
https://www.chessprogramming.org/BootChess
Anonymous No.106977550 [Report]
I refuse to write in assembly unless it's PDP-11 and I haven't found any computers with the PDP-11 instruction set yet.
Anonymous No.106977994 [Report]
>>106976245 (OP)
There's like 0 (zero) usecase for asm except for a few parts of a kernel development
Anonymous No.106978121 [Report] >>106980998
>>106976496
good morning saar
Anonymous No.106978367 [Report] >>106978533 >>106980229 >>106985112
>>106976245 (OP)
which version of assembly is this?
x86??
nasm?
intel?
linux?
meme?

there's so many languages and no standard to tard wrangle them in.

the one job the government has, which is to set standards and ensure its regulation, it doesn't do.
Anonymous No.106978533 [Report]
>>106978367
fuck off commie
Anonymous No.106980193 [Report]
>>106977351
I'm not a pedophile.
Anonymous No.106980229 [Report]
>>106978367
too busy implementing hidden instructions for the ime
Anonymous No.106980232 [Report] >>106981134 >>106981736
>>106977152
Wait wtf this is unironically clever
Anonymous No.106980998 [Report] >>106981037
>>106976245 (OP)
>Read scancode
Well now you have to make a library call(on windows, atleast) in a user program that will make the right syscall to look up the right drivers, which will handle the interface from the right io port (for ps2) or memory mapped port. Many layers of abstraction over and under assembly.

Back in the early DOS days and before, the computer architect did very little beyond what the ISA advertised, just some pipelining, and the OS didn't get involved in I/O if you decided to do it directly. That was low level, no abstraction software or hardware side. Assembly programming is no longer low level today (atleast user side. Kernel level still is on software side.).

>>106976496
Pretty sure you're just illiterate

>>106978121
I'm a jeet and I can understand it just fine. Stop making up a spook in your head, anon.
Anonymous No.106981037 [Report]
>>106980998
architecture*

And not like architecture wasn't there desu, just not on microprocessors.
Anonymous No.106981134 [Report] >>106981736
>>106980232
https://github.com/aussie114/c_tools
I'm pretty lazy.
Anonymous No.106981315 [Report]
>>106976245 (OP)
But how do you draw it on the screen?
Anonymous No.106981398 [Report] >>106982509
>>106976245 (OP)
Why the fuck do assembly programmers put so many comments? It's like looking at my jeet professor's Java all over again.
Anonymous No.106981736 [Report] >>106981990
>>106977152
>>106980232
>>106981134
Have you actually never heard of code snippets?
/g/ really is nocode these days
Anonymous No.106981751 [Report] >>106981764
>>106976245 (OP)
> xchg ax, dx ; swap AX and DX
Literal retard
Anonymous No.106981764 [Report]
>>106981751
int main(int argc, char *argv[]) /* main function */
{
int x = 0; /* initialize an integer echs to zero */
Anonymous No.106981990 [Report] >>106982215
>>106981736
Sounds like some jeet shit.
Anonymous No.106982215 [Report]
>>106981990
>I'm going to reinvent the wheel because I'm lazy but also clueless
>wheels are jeet shit
Anonymous No.106982446 [Report]
>>106977152
ultisnips
it's a dsl for creating these with keybinding management (in insert mode)
Anonymous No.106982509 [Report] >>106983703
>>106981398
Because assembly is less self explanatory in what you are doing and why.
Anonymous No.106982544 [Report]
>>106976496
what do you mean? in college they made us as homework code space invaders in assembly back in 2010, we werent even a computer or programming major
Anonymous No.106982549 [Report] >>106982728
>>106976245 (OP)
Once your snake is more than 2 blocks in length, if you try to reverse direction you die.
Anonymous No.106982728 [Report] >>106982772
>>106982549
in real life?
Anonymous No.106982772 [Report]
>>106982728
Yes, only ever thrust forward
Anonymous No.106982799 [Report]
>>106976496
It's pretty readable imo and i don't actually write x86 assembly.
Anonymous No.106982816 [Report]
>>106976245 (OP)
Why does my back hole always feel like it's being pounded?
Anonymous No.106983664 [Report]
>>106976496
Assembly is a standard part of an ABET accredited CS program.
Pretty sure even the EEs at my uni did some uC stuff with it.
Not even a difficult thing to learn. What's more confusing is the memory layout that actually gets produced on assembly. Still don't really understand linker script sections.
Anonymous No.106983703 [Report]
>>106982509
It's just fine. A few extra comments are necessary but commenting every line like this is retarded.
Anonymous No.106983714 [Report]
>>106976245 (OP)
What's with all the unnecessary text on the right?
Anonymous No.106983724 [Report]
>xchg ax, dx
>; swap AX and DX
F
thank you for your service
F
F
F
F
F
Anonymous No.106983726 [Report]
>>106976245 (OP)
>I found a way to make my snake game 1 byte smaller. In exchange, it's completely unrecognizable, but I think the trade off was worth it.

(It's actually really cool)
Anonymous No.106985112 [Report]
>>106978367
>linux?
is there a specific syntax for linux ? Because calling conventions for subs and system calls aren't.