Re: C# programmer wants to learn assembly?? plz help



Frank Kotler wrote:
Herbert Kleebauer wrote:

Your refusal to use a linker puts you uncomfortably close to the RasAsm
camp. At least, *I* wouldn't be comfortable there!

I don't refuse to use a linker. In your code you used:

extern WriteFile
import WriteFile kernel32.dll
call [WriteFile]

Did you never want to know what this exactly means? The
assembler/linker somehow transfers this information from
the assembler source file into the executable output file.
For example, how does the assembler/linker determine
the memory address which is used in the "call [WriteFile]"
instruction? Or how is the information "import WriteFile kernel32.dll"
stored in the exe file. To understand this, you can either write
your own assembler and linker or generate the binary manually byte
by byte. I used the second way, because it's much easier. But
this is only for understanding and not producing an application.
For an application I most certainly would use a linker but also most
certainly would not use an assembler but a HLL compiler. That's the
same with the graphics output in Linux using the X server. I want to
understand how it works. But if I had to write a graphics application
for Linux I most certainly would use one of the HL tool kits and
not open a unix domain socket to connect to the X server. But even
if you use such a tool kit, I think it is useful to know, that an
image has to be transferred in 16 kbyte pieces with socket send
commands to the video ram.
.



Relevant Pages

  • Re: C# programmer wants to learn assembly?? plz help
    ... I don't refuse to use a linker. ... import WriteFile kernel32.dll ... the assembler source file into the executable output file. ... for Linux I most certainly would use one of the HL tool kits and ...
    (alt.lang.asm)
  • Re: PIC Assembler.
    ... Imagine the simplest linker case. ... The assembler is ... these notes and modify this initially blank sheet. ... bytes and writes these as type strings into the OBJ file. ...
    (sci.electronics.basics)
  • Re: PIC Assembler.
    ... Imagine the simplest linker case. ... The assembler is ... these notes and modify this initially blank sheet. ... bytes and writes these as type strings into the OBJ file. ...
    (sci.electronics.basics)
  • Re: C- Syntax to allocate Global variables to consecutive memory locations
    ... define link-time constants. ... it depends upon the linker to provide ... c is where the compiler generates a definition of ... In the assembly language case I mentioned, the assembler is perfectly ...
    (comp.arch.embedded)
  • Re: 2500AD Z80 Tools Rev 3.00d for CP/M available
    ... Linker tools for CP/M to CP/M-centric websites. ... CP/M 2.2 system and common emulators (requires a Z80 cpu). ... it will be nearly impossible to use the assembler! ...
    (comp.os.cpm)