Re: Question about jumps



Herbert Kleebauer wrote:

There is no need to put read only data in the data segment,
it is best placed in the code segment.

Ok, I'm still not absolutely sure about the differences between the
segments yet.

C uses NULL terminated strings, bur we are in assembly (and here we
decide ourselves how to terminate an string). Redirect the output to a
file and look at the hex dump of the file, then you will see, the 0 is
written as part of the string to stdout.

I see. I thought it's the same in assembly. So the last character of the
$-equ string tells assembler the end of the string, is that right?

.



Relevant Pages

  • Re: Calculator
    ... Taking that string, you could create the code that I laid out for you. ... create a code segment and compile and run it). ... >>> I'm developing a user control with a textbox inside. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Question about jumps
    ... it is best placed in the code segment. ... decide ourselves how to terminate an string). ... an assembler which can generate a flat outputfile ... and execute the program. ...
    (alt.lang.asm)
  • Re: How to create a filter for Cinepak Codec by Radius
    ... Also i want to use this code segment for a multilingual ... What is you opinion on this? ... then you may be safe using the string ... There should be a unique CLSID for this filter. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How can I call IE from my eVB app?
    ... (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal ... lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, ByVal ... "Jeff Chan" wrote in message ... Is the code segment same as Visual Basic? ...
    (microsoft.public.pocketpc.developer)
  • Re: improve strlen
    ... The biggest optimization is that the code is bigger. ... each test string is tested ... The object on right side is type tree, ... The way I see it is that C is portable assembler, ...
    (comp.lang.asm.x86)