flat assembler
Message board for the users of flat assembler.
Index
> Windows > Collecting console user input |
Author |
|
system error 02 Jul 2017, 07:25
'KERNEL32.DLL' should be 'kernel32.dll'. Use lowe-case.
|
|||
02 Jul 2017, 07:25 |
|
Furs 02 Jul 2017, 10:47
'KERNEL32.DLL' is perfectly fine as Windows is case insensitive.
What's wrong is Code: import KERNEL32 |
|||
02 Jul 2017, 10:47 |
|
sinsi 02 Jul 2017, 11:09
I think using C calling convention needs cinvoke rather than invoke as well.
|
|||
02 Jul 2017, 11:09 |
|
Picnic 02 Jul 2017, 11:30
also, reserve some local memory for the buffer.
Code: buff db 256 dup ? |
|||
02 Jul 2017, 11:30 |
|
Mondragon 04 Jul 2017, 08:28
You guys are heroes. I think I've got enough to just go down the fasm docs and hopefully figure some more out.
ASM is definitely something else, but it's so much fun! By the way, is using C funcs or API calls like this the way most assembly programmers would handle this sort of thing or is there a better way? |
|||
04 Jul 2017, 08:28 |
|
system error 04 Jul 2017, 10:43
For new ASM programmers, access to APIs or 3rd party libraries is required as a tool of proofs only. C funcs are not requirement but to see what you've done to the registers, you need something like "printf" to confirm the effects of instructions that you composing. Some people prefer the debuggers.
My personal opinion is that ASM is best used if you want to talk to / interface the CPU directly albeit the noises coming from the OS's 'protectionism', calling conventions and other high-level stuff that have nothing to do with the instructions and the real CPU works. I'll leave that to high-level languages if I want to make 'apps' and projects. ASM is something different, requires different set of thinking, skills and approach. You'll understand HLL much much better if you see it from ASM point of view. ASM builds strong characters . FASM's own design is reflecting that exactly. But be warned, FASM board is extremely low-level (as in machine) and comes with colorful languages, too! Keep practicing, young padawan and welcome aboard |
|||
04 Jul 2017, 10:43 |
|
Furs 04 Jul 2017, 11:43
system error wrote: You'll understand HLL much much better if you see it from ASM point of view. It sickens me to see HLL advocates teach "newbies" abstractions and all sorts of this kind of bullshit, no wonder so many people cannot understand pointers or find them "complicated" to use and prefer to "abstract" them away with crappy classes in C++. It's not even about asm vs HLL, but about the mindset. The flat memory model (what pointers are in C/C++) is really simple by itself, and since everyone is taught arrays before pointers, it is even easier to understand. But of course, this is why HLL morons suck at teaching anything. Instead of "keeping it simple" they start with bullshit like phone addresses or other crap! WTF just tell them it's a fucking number in a RAM array. Oh I forgot some people think that not teaching about bits to new programmers is a "good" way of teaching, because bit manipulations are placed at the end (building blocks of everything) of the course cause they're "omg complex for newbies". Pathetic to me. |
|||
04 Jul 2017, 11:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.